Imported Upstream version 2.6.0p1
[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.0p1"
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     if test "$libcurl_feature_SSL" != "yes" ||
27794        test "$libcurl_protocol_HTTPS" != "yes"; then
27795         s3_ssl=no
27796     else
27797         s3_ssl=yes
27798     fi
27799
27800     # Check whether --enable-s3-device was given.
27801 if test "${enable_s3_device+set}" = set; then
27802   enableval=$enable_s3_device;  WANT_S3_DEVICE=$enableval
27803 else
27804    WANT_S3_DEVICE=maybe
27805 fi
27806
27807
27808     { echo "$as_me:$LINENO: checking whether to include the Amazon S3 device" >&5
27809 echo $ECHO_N "checking whether to include the Amazon S3 device... $ECHO_C" >&6; }
27810     # if the user didn't specify 'no', then check for support
27811     if test x"$WANT_S3_DEVICE" != x"no"; then
27812         if test x"$HAVE_CURL" = x"yes" -a x"$HAVE_HMAC" = x"yes"; then
27813             WANT_S3_DEVICE=yes
27814         else
27815             # no support -- if the user explicitly enabled the device,
27816             # then this is an error
27817             if test x"$WANT_S3_DEVICE" = x"yes"; then
27818                 { echo "$as_me:$LINENO: result: no" >&5
27819 echo "${ECHO_T}no" >&6; }
27820                 { { echo "$as_me:$LINENO: error: Cannot build the Amazon S3 device: one or more prerequisites are missing." >&5
27821 echo "$as_me: error: Cannot build the Amazon S3 device: one or more prerequisites are missing." >&2;}
27822    { (exit 1); exit 1; }; }
27823             else
27824                 WANT_S3_DEVICE=no
27825             fi
27826         fi
27827     fi
27828     { echo "$as_me:$LINENO: result: $WANT_S3_DEVICE" >&5
27829 echo "${ECHO_T}$WANT_S3_DEVICE" >&6; }
27830
27831      if test x"$WANT_S3_DEVICE" = x"yes"; then
27832   WANT_S3_DEVICE_TRUE=
27833   WANT_S3_DEVICE_FALSE='#'
27834 else
27835   WANT_S3_DEVICE_TRUE='#'
27836   WANT_S3_DEVICE_FALSE=
27837 fi
27838
27839
27840     # Now handle any setup for S3, if we want it.
27841     if test x"$WANT_S3_DEVICE" = x"yes"; then
27842
27843 cat >>confdefs.h <<\_ACEOF
27844 #define WANT_S3_DEVICE
27845 _ACEOF
27846
27847         if test x"$s3_ssl" = x"no"; then
27848
27849     { echo "$as_me:$LINENO: WARNING: Encryption support is not available for S3; requests will be sent in plaintext." >&5
27850 echo "$as_me: WARNING: Encryption support is not available for S3; requests will be sent in plaintext." >&2;}
27851
27852
27853     cat <<AAW_EOF >>config.warnings
27854 Encryption support is not available for S3; requests will be sent in plaintext.
27855 AAW_EOF
27856
27857
27858         fi
27859     fi
27860
27861
27862     # Check whether --enable-devpay was given.
27863 if test "${enable_devpay+set}" = set; then
27864   enableval=$enable_devpay; WANT_DEVPAY=$enableval
27865 else
27866   WANT_DEVPAY=no
27867 fi
27868
27869
27870     { echo "$as_me:$LINENO: checking whether to include the Amazon S3 device's DevPay support" >&5
27871 echo $ECHO_N "checking whether to include the Amazon S3 device's DevPay support... $ECHO_C" >&6; }
27872     if test x"$WANT_DEVPAY" = x"yes"; then
27873         if test x"$WANT_S3_DEVICE" != x"yes"; then
27874             { echo "$as_me:$LINENO: result: no" >&5
27875 echo "${ECHO_T}no" >&6; }
27876             { { echo "$as_me:$LINENO: error: DevPay support requires the S3 device (--enable-s3-device)" >&5
27877 echo "$as_me: error: DevPay support requires the S3 device (--enable-s3-device)" >&2;}
27878    { (exit 1); exit 1; }; }
27879         fi
27880
27881         if test "$s3_ssl" != "yes"; then
27882             { echo "$as_me:$LINENO: result: no" >&5
27883 echo "${ECHO_T}no" >&6; }
27884             { { echo "$as_me:$LINENO: error: Cannot use devpay without HTTPS/SSL support in libcurl." >&5
27885 echo "$as_me: error: Cannot use devpay without HTTPS/SSL support in libcurl." >&2;}
27886    { (exit 1); exit 1; }; }
27887         fi
27888
27889
27890 cat >>confdefs.h <<\_ACEOF
27891 #define WANT_DEVPAY
27892 _ACEOF
27893
27894     fi
27895     { echo "$as_me:$LINENO: result: $WANT_DEVPAY" >&5
27896 echo "${ECHO_T}$WANT_DEVPAY" >&6; }
27897
27898      if test "$WANT_DEVPAY" = "yes"; then
27899   WANT_DEVPAY_TRUE=
27900   WANT_DEVPAY_FALSE='#'
27901 else
27902   WANT_DEVPAY_TRUE='#'
27903   WANT_DEVPAY_FALSE=
27904 fi
27905
27906
27907
27908
27909
27910
27911 for ac_header in \
27912         linux/zftape.h \
27913         sys/tape.h \
27914         sys/mtio.h \
27915
27916 do
27917 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27918 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27919   { echo "$as_me:$LINENO: checking for $ac_header" >&5
27920 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27921 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27922   echo $ECHO_N "(cached) $ECHO_C" >&6
27923 fi
27924 ac_res=`eval echo '${'$as_ac_Header'}'`
27925                { echo "$as_me:$LINENO: result: $ac_res" >&5
27926 echo "${ECHO_T}$ac_res" >&6; }
27927 else
27928   # Is the header compilable?
27929 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27930 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27931 cat >conftest.$ac_ext <<_ACEOF
27932 /* confdefs.h.  */
27933 _ACEOF
27934 cat confdefs.h >>conftest.$ac_ext
27935 cat >>conftest.$ac_ext <<_ACEOF
27936 /* end confdefs.h.  */
27937 $ac_includes_default
27938 #include <$ac_header>
27939 _ACEOF
27940 rm -f conftest.$ac_objext
27941 if { (ac_try="$ac_compile"
27942 case "(($ac_try" in
27943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27944   *) ac_try_echo=$ac_try;;
27945 esac
27946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27947   (eval "$ac_compile") 2>conftest.er1
27948   ac_status=$?
27949   grep -v '^ *+' conftest.er1 >conftest.err
27950   rm -f conftest.er1
27951   cat conftest.err >&5
27952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27953   (exit $ac_status); } && {
27954          test -z "$ac_c_werror_flag" ||
27955          test ! -s conftest.err
27956        } && test -s conftest.$ac_objext; then
27957   ac_header_compiler=yes
27958 else
27959   echo "$as_me: failed program was:" >&5
27960 sed 's/^/| /' conftest.$ac_ext >&5
27961
27962         ac_header_compiler=no
27963 fi
27964
27965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27966 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27967 echo "${ECHO_T}$ac_header_compiler" >&6; }
27968
27969 # Is the header present?
27970 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27971 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27972 cat >conftest.$ac_ext <<_ACEOF
27973 /* confdefs.h.  */
27974 _ACEOF
27975 cat confdefs.h >>conftest.$ac_ext
27976 cat >>conftest.$ac_ext <<_ACEOF
27977 /* end confdefs.h.  */
27978 #include <$ac_header>
27979 _ACEOF
27980 if { (ac_try="$ac_cpp conftest.$ac_ext"
27981 case "(($ac_try" in
27982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27983   *) ac_try_echo=$ac_try;;
27984 esac
27985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27986   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27987   ac_status=$?
27988   grep -v '^ *+' conftest.er1 >conftest.err
27989   rm -f conftest.er1
27990   cat conftest.err >&5
27991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27992   (exit $ac_status); } >/dev/null && {
27993          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27994          test ! -s conftest.err
27995        }; then
27996   ac_header_preproc=yes
27997 else
27998   echo "$as_me: failed program was:" >&5
27999 sed 's/^/| /' conftest.$ac_ext >&5
28000
28001   ac_header_preproc=no
28002 fi
28003
28004 rm -f conftest.err conftest.$ac_ext
28005 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28006 echo "${ECHO_T}$ac_header_preproc" >&6; }
28007
28008 # So?  What about this header?
28009 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28010   yes:no: )
28011     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28012 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28013     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28014 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28015     ac_header_preproc=yes
28016     ;;
28017   no:yes:* )
28018     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28019 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28020     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28021 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28022     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28023 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28024     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28025 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28026     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28027 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28028     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28029 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28030
28031     ;;
28032 esac
28033 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28034 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28035 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28036   echo $ECHO_N "(cached) $ECHO_C" >&6
28037 else
28038   eval "$as_ac_Header=\$ac_header_preproc"
28039 fi
28040 ac_res=`eval echo '${'$as_ac_Header'}'`
28041                { echo "$as_me:$LINENO: result: $ac_res" >&5
28042 echo "${ECHO_T}$ac_res" >&6; }
28043
28044 fi
28045 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28046   cat >>confdefs.h <<_ACEOF
28047 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28048 _ACEOF
28049
28050 fi
28051
28052 done
28053
28054
28055     # check for MTIOCTOP, an indicator of POSIX tape support
28056     { echo "$as_me:$LINENO: checking for MTIOCTOP" >&5
28057 echo $ECHO_N "checking for MTIOCTOP... $ECHO_C" >&6; }
28058 if test "${amanda_cv_HAVE_MTIOCTOP+set}" = set; then
28059   echo $ECHO_N "(cached) $ECHO_C" >&6
28060 else
28061
28062         cat >conftest.$ac_ext <<_ACEOF
28063 /* confdefs.h.  */
28064 _ACEOF
28065 cat confdefs.h >>conftest.$ac_ext
28066 cat >>conftest.$ac_ext <<_ACEOF
28067 /* end confdefs.h.  */
28068
28069 #ifdef HAVE_SYS_TAPE_H
28070 # include <sys/tape.h>
28071 #endif
28072 #ifdef HAVE_SYS_MTIO_H
28073 # include <sys/mtio.h>
28074 #endif
28075 #ifndef MTIOCTOP
28076 #error MTIOCTOP not defined
28077 #endif
28078
28079 int
28080 main ()
28081 {
28082  int dummy = 0;
28083   ;
28084   return 0;
28085 }
28086 _ACEOF
28087 rm -f conftest.$ac_objext
28088 if { (ac_try="$ac_compile"
28089 case "(($ac_try" in
28090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28091   *) ac_try_echo=$ac_try;;
28092 esac
28093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28094   (eval "$ac_compile") 2>conftest.er1
28095   ac_status=$?
28096   grep -v '^ *+' conftest.er1 >conftest.err
28097   rm -f conftest.er1
28098   cat conftest.err >&5
28099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28100   (exit $ac_status); } && {
28101          test -z "$ac_c_werror_flag" ||
28102          test ! -s conftest.err
28103        } && test -s conftest.$ac_objext; then
28104   amanda_cv_HAVE_MTIOCTOP=yes
28105 else
28106   echo "$as_me: failed program was:" >&5
28107 sed 's/^/| /' conftest.$ac_ext >&5
28108
28109         amanda_cv_HAVE_MTIOCTOP=no
28110 fi
28111
28112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28113
28114         HAVE_MTIOCTOP=$amanda_cv_HAVE_MTIOCTOP
28115
28116 fi
28117 { echo "$as_me:$LINENO: result: $amanda_cv_HAVE_MTIOCTOP" >&5
28118 echo "${ECHO_T}$amanda_cv_HAVE_MTIOCTOP" >&6; }
28119
28120     # decide which tape device to compile (arranged in such a way that
28121     # only one actually gets compiled)
28122     case "$target" in
28123       *-ibm-aix*) aix_tapeio=yes ;;
28124       *-sysv4.2uw2*) uware_tapeio=yes ;;
28125       *-sco3.2v5*) xenix_tapeio=yes ;;
28126       i386-pc-isc4*) xenix_tapeio=yes ;;
28127     esac
28128
28129     # maybe we have no tape device at all (e.g., Mac OS X)?
28130     if test -n "$xenix_tapeio" ||
28131        test -n "$aix_tapeio" ||
28132        test -n "$uware_tapeio" ||
28133        test -n "$HAVE_MTIOCTOP"; then
28134         want_tape_device=yes
28135
28136 cat >>confdefs.h <<\_ACEOF
28137 #define WANT_TAPE_DEVICE 1
28138 _ACEOF
28139
28140     fi
28141
28142      if test -n "$xenix_tapeio"; then
28143   WANT_TAPE_XENIX_TRUE=
28144   WANT_TAPE_XENIX_FALSE='#'
28145 else
28146   WANT_TAPE_XENIX_TRUE='#'
28147   WANT_TAPE_XENIX_FALSE=
28148 fi
28149
28150      if test -n "$aix_tapeio"; then
28151   WANT_TAPE_AIX_TRUE=
28152   WANT_TAPE_AIX_FALSE='#'
28153 else
28154   WANT_TAPE_AIX_TRUE='#'
28155   WANT_TAPE_AIX_FALSE=
28156 fi
28157
28158      if test -n "$uware_tapeio"; then
28159   WANT_TAPE_UWARE_TRUE=
28160   WANT_TAPE_UWARE_FALSE='#'
28161 else
28162   WANT_TAPE_UWARE_TRUE='#'
28163   WANT_TAPE_UWARE_FALSE=
28164 fi
28165
28166      if test -n "$HAVE_MTIOCTOP"; then
28167   WANT_TAPE_POSIX_TRUE=
28168   WANT_TAPE_POSIX_FALSE='#'
28169 else
28170   WANT_TAPE_POSIX_TRUE='#'
28171   WANT_TAPE_POSIX_FALSE=
28172 fi
28173
28174      if test -n "$want_tape_device"; then
28175   WANT_TAPE_DEVICE_TRUE=
28176   WANT_TAPE_DEVICE_FALSE='#'
28177 else
28178   WANT_TAPE_DEVICE_TRUE='#'
28179   WANT_TAPE_DEVICE_FALSE=
28180 fi
28181
28182
28183     if test -n "$xenix_tapeio"; then
28184
28185 cat >>confdefs.h <<\_ACEOF
28186 #define WANT_TAPE_XENIX 1
28187 _ACEOF
28188
28189     fi
28190
28191     if test -n "$aix_tapeio"; then
28192
28193 cat >>confdefs.h <<\_ACEOF
28194 #define WANT_TAPE_AIX 1
28195 _ACEOF
28196
28197     fi
28198
28199     if test -n "$uware_tapeio"; then
28200
28201 cat >>confdefs.h <<\_ACEOF
28202 #define WANT_TAPE_UWARE 1
28203 _ACEOF
28204
28205     fi
28206
28207     #
28208     # Check for various "mt status" related structure elements.
28209     #
28210     { echo "$as_me:$LINENO: checking for mt_flags mtget structure element" >&5
28211 echo $ECHO_N "checking for mt_flags mtget structure element... $ECHO_C" >&6; }
28212     cat >conftest.$ac_ext <<_ACEOF
28213 /* confdefs.h.  */
28214 _ACEOF
28215 cat confdefs.h >>conftest.$ac_ext
28216 cat >>conftest.$ac_ext <<_ACEOF
28217 /* end confdefs.h.  */
28218
28219 #include <stdio.h>
28220 #include <sys/types.h>
28221 #include <sys/mtio.h>
28222
28223 int
28224 main ()
28225 {
28226
28227             struct mtget buf;
28228             long ds;
28229
28230             ds = buf.mt_flags;
28231
28232   ;
28233   return 0;
28234 }
28235 _ACEOF
28236 rm -f conftest.$ac_objext
28237 if { (ac_try="$ac_compile"
28238 case "(($ac_try" in
28239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28240   *) ac_try_echo=$ac_try;;
28241 esac
28242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28243   (eval "$ac_compile") 2>conftest.er1
28244   ac_status=$?
28245   grep -v '^ *+' conftest.er1 >conftest.err
28246   rm -f conftest.er1
28247   cat conftest.err >&5
28248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28249   (exit $ac_status); } && {
28250          test -z "$ac_c_werror_flag" ||
28251          test ! -s conftest.err
28252        } && test -s conftest.$ac_objext; then
28253
28254             { echo "$as_me:$LINENO: result: yes" >&5
28255 echo "${ECHO_T}yes" >&6; }
28256
28257 cat >>confdefs.h <<\_ACEOF
28258 #define HAVE_MT_FLAGS 1
28259 _ACEOF
28260
28261
28262 else
28263   echo "$as_me: failed program was:" >&5
28264 sed 's/^/| /' conftest.$ac_ext >&5
28265
28266
28267             { echo "$as_me:$LINENO: result: no" >&5
28268 echo "${ECHO_T}no" >&6; }
28269
28270 fi
28271
28272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28273
28274     { echo "$as_me:$LINENO: checking for mt_fileno mtget structure element" >&5
28275 echo $ECHO_N "checking for mt_fileno mtget structure element... $ECHO_C" >&6; }
28276     mt_fileno_result="found"
28277     cat >conftest.$ac_ext <<_ACEOF
28278 /* confdefs.h.  */
28279 _ACEOF
28280 cat confdefs.h >>conftest.$ac_ext
28281 cat >>conftest.$ac_ext <<_ACEOF
28282 /* end confdefs.h.  */
28283
28284 #include <stdio.h>
28285 #include <sys/types.h>
28286 #include <sys/mtio.h>
28287
28288 int
28289 main ()
28290 {
28291
28292             struct mtget buf;
28293             long ds;
28294
28295             ds = buf.mt_fileno;
28296
28297   ;
28298   return 0;
28299 }
28300 _ACEOF
28301 rm -f conftest.$ac_objext
28302 if { (ac_try="$ac_compile"
28303 case "(($ac_try" in
28304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28305   *) ac_try_echo=$ac_try;;
28306 esac
28307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28308   (eval "$ac_compile") 2>conftest.er1
28309   ac_status=$?
28310   grep -v '^ *+' conftest.er1 >conftest.err
28311   rm -f conftest.er1
28312   cat conftest.err >&5
28313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28314   (exit $ac_status); } && {
28315          test -z "$ac_c_werror_flag" ||
28316          test ! -s conftest.err
28317        } && test -s conftest.$ac_objext; then
28318
28319             { echo "$as_me:$LINENO: result: yes" >&5
28320 echo "${ECHO_T}yes" >&6; }
28321
28322 cat >>confdefs.h <<\_ACEOF
28323 #define HAVE_MT_FILENO 1
28324 _ACEOF
28325
28326
28327 else
28328   echo "$as_me: failed program was:" >&5
28329 sed 's/^/| /' conftest.$ac_ext >&5
28330
28331
28332             { echo "$as_me:$LINENO: result: no" >&5
28333 echo "${ECHO_T}no" >&6; }
28334
28335 fi
28336
28337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28338
28339     { echo "$as_me:$LINENO: checking for mt_blkno mtget structure element" >&5
28340 echo $ECHO_N "checking for mt_blkno mtget structure element... $ECHO_C" >&6; }
28341     cat >conftest.$ac_ext <<_ACEOF
28342 /* confdefs.h.  */
28343 _ACEOF
28344 cat confdefs.h >>conftest.$ac_ext
28345 cat >>conftest.$ac_ext <<_ACEOF
28346 /* end confdefs.h.  */
28347
28348 #include <stdio.h>
28349 #include <sys/types.h>
28350 #include <sys/mtio.h>
28351
28352 int
28353 main ()
28354 {
28355
28356             struct mtget buf;
28357             long ds;
28358
28359             ds = buf.mt_blkno;
28360
28361   ;
28362   return 0;
28363 }
28364 _ACEOF
28365 rm -f conftest.$ac_objext
28366 if { (ac_try="$ac_compile"
28367 case "(($ac_try" in
28368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28369   *) ac_try_echo=$ac_try;;
28370 esac
28371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28372   (eval "$ac_compile") 2>conftest.er1
28373   ac_status=$?
28374   grep -v '^ *+' conftest.er1 >conftest.err
28375   rm -f conftest.er1
28376   cat conftest.err >&5
28377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28378   (exit $ac_status); } && {
28379          test -z "$ac_c_werror_flag" ||
28380          test ! -s conftest.err
28381        } && test -s conftest.$ac_objext; then
28382
28383             { echo "$as_me:$LINENO: result: yes" >&5
28384 echo "${ECHO_T}yes" >&6; }
28385
28386 cat >>confdefs.h <<\_ACEOF
28387 #define HAVE_MT_BLKNO 1
28388 _ACEOF
28389
28390
28391 else
28392   echo "$as_me: failed program was:" >&5
28393 sed 's/^/| /' conftest.$ac_ext >&5
28394
28395
28396             { echo "$as_me:$LINENO: result: no" >&5
28397 echo "${ECHO_T}no" >&6; }
28398
28399 fi
28400
28401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28402
28403     { echo "$as_me:$LINENO: checking for mt_dsreg mtget structure element" >&5
28404 echo $ECHO_N "checking for mt_dsreg mtget structure element... $ECHO_C" >&6; }
28405     cat >conftest.$ac_ext <<_ACEOF
28406 /* confdefs.h.  */
28407 _ACEOF
28408 cat confdefs.h >>conftest.$ac_ext
28409 cat >>conftest.$ac_ext <<_ACEOF
28410 /* end confdefs.h.  */
28411
28412 #include <stdio.h>
28413 #include <sys/types.h>
28414 #include <sys/mtio.h>
28415
28416 int
28417 main ()
28418 {
28419
28420             struct mtget buf;
28421             long ds;
28422
28423             ds = buf.mt_dsreg;
28424
28425   ;
28426   return 0;
28427 }
28428 _ACEOF
28429 rm -f conftest.$ac_objext
28430 if { (ac_try="$ac_compile"
28431 case "(($ac_try" in
28432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28433   *) ac_try_echo=$ac_try;;
28434 esac
28435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28436   (eval "$ac_compile") 2>conftest.er1
28437   ac_status=$?
28438   grep -v '^ *+' conftest.er1 >conftest.err
28439   rm -f conftest.er1
28440   cat conftest.err >&5
28441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28442   (exit $ac_status); } && {
28443          test -z "$ac_c_werror_flag" ||
28444          test ! -s conftest.err
28445        } && test -s conftest.$ac_objext; then
28446
28447             { echo "$as_me:$LINENO: result: yes" >&5
28448 echo "${ECHO_T}yes" >&6; }
28449
28450 cat >>confdefs.h <<\_ACEOF
28451 #define HAVE_MT_DSREG 1
28452 _ACEOF
28453
28454
28455 else
28456   echo "$as_me: failed program was:" >&5
28457 sed 's/^/| /' conftest.$ac_ext >&5
28458
28459
28460             { echo "$as_me:$LINENO: result: no" >&5
28461 echo "${ECHO_T}no" >&6; }
28462
28463 fi
28464
28465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28466
28467     { echo "$as_me:$LINENO: checking for mt_erreg mtget structure element" >&5
28468 echo $ECHO_N "checking for mt_erreg mtget structure element... $ECHO_C" >&6; }
28469     cat >conftest.$ac_ext <<_ACEOF
28470 /* confdefs.h.  */
28471 _ACEOF
28472 cat confdefs.h >>conftest.$ac_ext
28473 cat >>conftest.$ac_ext <<_ACEOF
28474 /* end confdefs.h.  */
28475
28476 #include <stdio.h>
28477 #include <sys/types.h>
28478 #include <sys/mtio.h>
28479
28480 int
28481 main ()
28482 {
28483
28484             struct mtget buf;
28485             long ds;
28486
28487             ds = buf.mt_erreg;
28488
28489   ;
28490   return 0;
28491 }
28492 _ACEOF
28493 rm -f conftest.$ac_objext
28494 if { (ac_try="$ac_compile"
28495 case "(($ac_try" in
28496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28497   *) ac_try_echo=$ac_try;;
28498 esac
28499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28500   (eval "$ac_compile") 2>conftest.er1
28501   ac_status=$?
28502   grep -v '^ *+' conftest.er1 >conftest.err
28503   rm -f conftest.er1
28504   cat conftest.err >&5
28505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28506   (exit $ac_status); } && {
28507          test -z "$ac_c_werror_flag" ||
28508          test ! -s conftest.err
28509        } && test -s conftest.$ac_objext; then
28510
28511             { echo "$as_me:$LINENO: result: yes" >&5
28512 echo "${ECHO_T}yes" >&6; }
28513
28514 cat >>confdefs.h <<\_ACEOF
28515 #define HAVE_MT_ERREG 1
28516 _ACEOF
28517
28518
28519 else
28520   echo "$as_me: failed program was:" >&5
28521 sed 's/^/| /' conftest.$ac_ext >&5
28522
28523
28524             { echo "$as_me:$LINENO: result: no" >&5
28525 echo "${ECHO_T}no" >&6; }
28526
28527 fi
28528
28529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28530
28531
28532 #
28533 # Security (authentication) mechansims
28534 #
28535
28536     BSD_SECURITY="yes"
28537
28538 # Check whether --with-bsd-security was given.
28539 if test "${with_bsd_security+set}" = set; then
28540   withval=$with_bsd_security;
28541             case "$withval" in
28542                 n | no) BSD_SECURITY=no ;;
28543                 y |  ye | yes) ;;
28544                 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --without-bsd-security." >&5
28545 echo "$as_me: error: *** You must not supply an argument to --without-bsd-security." >&2;}
28546    { (exit 1); exit 1; }; }
28547                     ;;
28548             esac
28549
28550 fi
28551
28552
28553     USE_AMANDAHOSTS=yes
28554
28555 # Check whether --with-amandahosts was given.
28556 if test "${with_amandahosts+set}" = set; then
28557   withval=$with_amandahosts;
28558             case "$withval" in
28559                 n | no ) USE_AMANDAHOSTS="no" ;;
28560                 y |  ye | yes) : ;;
28561                 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --without-amandahosts option." >&5
28562 echo "$as_me: error: *** You must not supply an argument to --without-amandahosts option." >&2;}
28563    { (exit 1); exit 1; }; }
28564                   ;;
28565             esac
28566
28567
28568 fi
28569
28570
28571     if test "x$BSD_SECURITY" = "xyes"; then
28572
28573 cat >>confdefs.h <<\_ACEOF
28574 #define BSD_SECURITY 1
28575 _ACEOF
28576
28577         if test "x$USE_AMANDAHOSTS" = "xyes"; then
28578
28579 cat >>confdefs.h <<\_ACEOF
28580 #define USE_AMANDAHOSTS 1
28581 _ACEOF
28582
28583         fi
28584     fi
28585
28586      if test x"$BSD_SECURITY" = x"yes"; then
28587   WANT_BSD_SECURITY_TRUE=
28588   WANT_BSD_SECURITY_FALSE='#'
28589 else
28590   WANT_BSD_SECURITY_TRUE='#'
28591   WANT_BSD_SECURITY_FALSE=
28592 fi
28593
28594
28595
28596     BSDTCP_SECURITY="no"
28597
28598 # Check whether --with-bsdtcp-security was given.
28599 if test "${with_bsdtcp_security+set}" = set; then
28600   withval=$with_bsdtcp_security;
28601             case "$withval" in
28602                 n | no) : ;;
28603                 y |  ye | yes) BSDTCP_SECURITY=yes ;;
28604                 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-bsdtcp-security." >&5
28605 echo "$as_me: error: *** You must not supply an argument to --with-bsdtcp-security." >&2;}
28606    { (exit 1); exit 1; }; }
28607               ;;
28608             esac
28609
28610 fi
28611
28612
28613     if test "x$BSDTCP_SECURITY" = "xyes"; then
28614
28615 cat >>confdefs.h <<\_ACEOF
28616 #define BSDTCP_SECURITY 1
28617 _ACEOF
28618
28619     fi
28620      if test x"$BSDTCP_SECURITY" = x"yes"; then
28621   WANT_BSDTCP_SECURITY_TRUE=
28622   WANT_BSDTCP_SECURITY_FALSE='#'
28623 else
28624   WANT_BSDTCP_SECURITY_TRUE='#'
28625   WANT_BSDTCP_SECURITY_FALSE=
28626 fi
28627
28628
28629
28630     BSDUDP_SECURITY="no"
28631
28632 # Check whether --with-bsdudp-security was given.
28633 if test "${with_bsdudp_security+set}" = set; then
28634   withval=$with_bsdudp_security;
28635             case "$withval" in
28636                 n | no) : ;;
28637                 y |  ye | yes) BSDUDP_SECURITY=yes ;;
28638                 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-bsdudp-security." >&5
28639 echo "$as_me: error: *** You must not supply an argument to --with-bsdudp-security." >&2;}
28640    { (exit 1); exit 1; }; }
28641               ;;
28642             esac
28643
28644 fi
28645
28646
28647     if test "x$BSDUDP_SECURITY" = "xyes"; then
28648
28649 cat >>confdefs.h <<\_ACEOF
28650 #define BSDUDP_SECURITY 1
28651 _ACEOF
28652
28653     fi
28654      if test x"$BSDUDP_SECURITY" = x"yes"; then
28655   WANT_BSDUDP_SECURITY_TRUE=
28656   WANT_BSDUDP_SECURITY_FALSE='#'
28657 else
28658   WANT_BSDUDP_SECURITY_TRUE='#'
28659   WANT_BSDUDP_SECURITY_FALSE=
28660 fi
28661
28662
28663
28664     RSH_SECURITY=no
28665
28666 # Check whether --with-rsh-security was given.
28667 if test "${with_rsh_security+set}" = set; then
28668   withval=$with_rsh_security;
28669             case "$withval" in
28670                 n | no) : ;;
28671                 y |  ye | yes) RSH_SECURITY=yes ;;
28672                 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-rsh-security." >&5
28673 echo "$as_me: error: *** You must not supply an argument to --with-rsh-security." >&2;}
28674    { (exit 1); exit 1; }; }
28675               ;;
28676             esac
28677
28678 fi
28679
28680
28681     if test "x$RSH_SECURITY" = "xyes"; then
28682
28683 cat >>confdefs.h <<\_ACEOF
28684 #define RSH_SECURITY 1
28685 _ACEOF
28686
28687     fi
28688      if test x"$RSH_SECURITY" = x"yes"; then
28689   WANT_RSH_SECURITY_TRUE=
28690   WANT_RSH_SECURITY_FALSE='#'
28691 else
28692   WANT_RSH_SECURITY_TRUE='#'
28693   WANT_RSH_SECURITY_FALSE=
28694 fi
28695
28696
28697
28698     SSH_SECURITY=no
28699
28700 # Check whether --with-ssh-security was given.
28701 if test "${with_ssh_security+set}" = set; then
28702   withval=$with_ssh_security;
28703             case "$withval" in
28704                 n | no) : ;;
28705                 y |  ye | yes) SSH_SECURITY=yes ;;
28706                 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-ssh-security." >&5
28707 echo "$as_me: error: *** You must not supply an argument to --with-ssh-security." >&2;}
28708    { (exit 1); exit 1; }; }
28709               ;;
28710             esac
28711
28712 fi
28713
28714
28715     if test "x$SSH_SECURITY" = "xyes"; then
28716         # find the SSH binary
28717         for ac_prog in ssh
28718 do
28719   # Extract the first word of "$ac_prog", so it can be a program name with args.
28720 set dummy $ac_prog; ac_word=$2
28721 { echo "$as_me:$LINENO: checking for $ac_word" >&5
28722 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28723 if test "${ac_cv_path_SSH+set}" = set; then
28724   echo $ECHO_N "(cached) $ECHO_C" >&6
28725 else
28726   case $SSH in
28727   [\\/]* | ?:[\\/]*)
28728   ac_cv_path_SSH="$SSH" # Let the user override the test with a path.
28729   ;;
28730   *)
28731   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28732 for as_dir in $LOCSYSPATH
28733 do
28734   IFS=$as_save_IFS
28735   test -z "$as_dir" && as_dir=.
28736   for ac_exec_ext in '' $ac_executable_extensions; do
28737   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28738     ac_cv_path_SSH="$as_dir/$ac_word$ac_exec_ext"
28739     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28740     break 2
28741   fi
28742 done
28743 done
28744 IFS=$as_save_IFS
28745
28746   ;;
28747 esac
28748 fi
28749 SSH=$ac_cv_path_SSH
28750 if test -n "$SSH"; then
28751   { echo "$as_me:$LINENO: result: $SSH" >&5
28752 echo "${ECHO_T}$SSH" >&6; }
28753 else
28754   { echo "$as_me:$LINENO: result: no" >&5
28755 echo "${ECHO_T}no" >&6; }
28756 fi
28757
28758
28759   test -n "$SSH" && break
28760 done
28761
28762
28763         # see what options we should use
28764
28765 # Check whether --with-ssh-options was given.
28766 if test "${with_ssh_options+set}" = set; then
28767   withval=$with_ssh_options;  SSH_OPTIONS="$withval"
28768 else
28769    SSH_OPTIONS=''
28770
28771 fi
28772
28773
28774         case "$SSH_OPTIONS" in
28775             y | ye | yes | n | no)
28776                 { { echo "$as_me:$LINENO: error: *** You must supply an argument to --with-ssh-options." >&5
28777 echo "$as_me: error: *** You must supply an argument to --with-ssh-options." >&2;}
28778    { (exit 1); exit 1; }; };;
28779             *) : ;;
28780         esac
28781
28782         { echo "$as_me:$LINENO: checking SSH options" >&5
28783 echo $ECHO_N "checking SSH options... $ECHO_C" >&6; }
28784         # if we didn't get SSH options from the user, figure them out for ourselves
28785         if test -z "$SSH_OPTIONS"; then
28786             case `$SSH -V 2>&1` in
28787                 OpenSSH*) SSH_OPTIONS='-x -o BatchMode=yes -o PreferredAuthentications=publickey';;
28788                 *) SSH_OPTIONS='-x -o BatchMode=yes' ;;
28789             esac
28790         fi
28791
28792         # now convert that to a comma-separated list of C strings
28793         eval "set dummy ${SSH_OPTIONS}"; shift
28794         SSH_OPTIONS=''
28795         for i in "${@}"; do
28796             quoted="\"`echo "$i" | sed -e 's/\"/\\\"/'`\""
28797             SSH_OPTIONS="${SSH_OPTIONS}${SSH_OPTIONS:+, }$quoted";
28798         done
28799         { echo "$as_me:$LINENO: result: $SSH_OPTIONS" >&5
28800 echo "${ECHO_T}$SSH_OPTIONS" >&6; }
28801
28802         # finally, make the various outputs for all of this
28803
28804 cat >>confdefs.h <<\_ACEOF
28805 #define SSH_SECURITY 1
28806 _ACEOF
28807
28808
28809 cat >>confdefs.h <<_ACEOF
28810 #define SSH "$SSH"
28811 _ACEOF
28812
28813
28814 cat >>confdefs.h <<_ACEOF
28815 #define SSH_OPTIONS $SSH_OPTIONS
28816 _ACEOF
28817
28818     fi
28819      if test x"$SSH_SECURITY" = x"yes"; then
28820   WANT_SSH_SECURITY_TRUE=
28821   WANT_SSH_SECURITY_FALSE='#'
28822 else
28823   WANT_SSH_SECURITY_TRUE='#'
28824   WANT_SSH_SECURITY_FALSE=
28825 fi
28826
28827
28828
28829     # Specify --with-krb4-security if Kerberos software is in somewhere
28830     # other than the listed KRB4_SPOTS.  We only compile kerberos support in
28831     # if the right files are there.
28832
28833     : ${KRB4_SPOTS="/usr/kerberos /usr/cygnus /usr /opt/kerberos"}
28834
28835     KRB4_SECURITY="no"
28836
28837 # Check whether --with-krb4-security was given.
28838 if test "${with_krb4_security+set}" = set; then
28839   withval=$with_krb4_security;
28840             case "$withval" in
28841                 n | no) ;;
28842                 y | ye | yes) KRB4_SECURITY="yes" ;;
28843                 *) KRB4_SPOTS="$KRB4_SECURITY"
28844                    KRB4_SECURITY="yes"
28845                    ;;
28846             esac
28847
28848 fi
28849
28850
28851     # check the remaining, subsidiary options
28852
28853     { echo "$as_me:$LINENO: checking host principal" >&5
28854 echo $ECHO_N "checking host principal... $ECHO_C" >&6; }
28855
28856 # Check whether --with-server-principal was given.
28857 if test "${with_server_principal+set}" = set; then
28858   withval=$with_server_principal;
28859             case "$withval" in
28860                 "" | y | ye | yes | n | no)
28861                     { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-server-principal option." >&5
28862 echo "$as_me: error: *** You must supply an argument to the --with-server-principal option." >&2;}
28863    { (exit 1); exit 1; }; }
28864                   ;;
28865                 *) SERVER_HOST_PRINCIPAL="$withval" ;;
28866             esac
28867
28868 else
28869    : ${SERVER_HOST_PRINCIPAL="amanda"}
28870
28871 fi
28872
28873     { echo "$as_me:$LINENO: result: $SERVER_HOST_PRINCIPAL" >&5
28874 echo "${ECHO_T}$SERVER_HOST_PRINCIPAL" >&6; }
28875
28876     { echo "$as_me:$LINENO: checking server host instance" >&5
28877 echo $ECHO_N "checking server host instance... $ECHO_C" >&6; }
28878
28879 # Check whether --with-server-instance was given.
28880 if test "${with_server_instance+set}" = set; then
28881   withval=$with_server_instance;
28882             case "$withval" in
28883                 "" | y | ye | yes | n | no)
28884                     { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-server-instance option." >&5
28885 echo "$as_me: error: *** You must supply an argument to the --with-server-instance option." >&2;}
28886    { (exit 1); exit 1; }; }
28887                   ;;
28888                 *) SERVER_HOST_INSTANCE="$withval" ;;
28889             esac
28890
28891 else
28892    : ${SERVER_HOST_INSTANCE="amanda"}
28893
28894 fi
28895
28896     { echo "$as_me:$LINENO: result: $SERVER_HOST_INSTANCE" >&5
28897 echo "${ECHO_T}$SERVER_HOST_INSTANCE" >&6; }
28898
28899     { echo "$as_me:$LINENO: checking server host key file" >&5
28900 echo $ECHO_N "checking server host key file... $ECHO_C" >&6; }
28901
28902 # Check whether --with-server-keyfile was given.
28903 if test "${with_server_keyfile+set}" = set; then
28904   withval=$with_server_keyfile;
28905             case "$withval" in
28906                 "" | y | ye | yes | n | no)
28907                     { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-server-keyfile option." >&5
28908 echo "$as_me: error: *** You must supply an argument to the --with-server-keyfile option." >&2;}
28909    { (exit 1); exit 1; }; }
28910                   ;;
28911                 *) SERVER_HOST_KEY_FILE="$withval" ;;
28912             esac
28913
28914 else
28915    : ${SERVER_HOST_KEY_FILE="/.amanda"}
28916
28917 fi
28918
28919     { echo "$as_me:$LINENO: result: $SERVER_HOST_KEY_FILE" >&5
28920 echo "${ECHO_T}$SERVER_HOST_KEY_FILE" >&6; }
28921
28922     { echo "$as_me:$LINENO: checking client host principle" >&5
28923 echo $ECHO_N "checking client host principle... $ECHO_C" >&6; }
28924
28925 # Check whether --with-client-principal was given.
28926 if test "${with_client_principal+set}" = set; then
28927   withval=$with_client_principal;
28928             case "$withval" in
28929                 "" | y | ye | yes | n | no)
28930                     { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-client-principal option." >&5
28931 echo "$as_me: error: *** You must supply an argument to the --with-client-principal option." >&2;}
28932    { (exit 1); exit 1; }; }
28933                   ;;
28934                 *) CLIENT_HOST_PRINCIPAL="$withval" ;;
28935             esac
28936
28937 else
28938    : ${CLIENT_HOST_PRINCIPAL="rcmd"}
28939
28940 fi
28941
28942     { echo "$as_me:$LINENO: result: $CLIENT_HOST_PRINCIPAL" >&5
28943 echo "${ECHO_T}$CLIENT_HOST_PRINCIPAL" >&6; }
28944
28945     { echo "$as_me:$LINENO: checking client host instance" >&5
28946 echo $ECHO_N "checking client host instance... $ECHO_C" >&6; }
28947
28948 # Check whether --with-client-instance was given.
28949 if test "${with_client_instance+set}" = set; then
28950   withval=$with_client_instance;
28951             case "$withval" in
28952                 "" | y | ye | yes | n | no)
28953                     { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-client-instance option." >&5
28954 echo "$as_me: error: *** You must supply an argument to the --with-client-instance option." >&2;}
28955    { (exit 1); exit 1; }; }
28956                   ;;
28957                 *) CLIENT_HOST_INSTANCE="$withval" ;;
28958             esac
28959
28960 else
28961    : ${CLIENT_HOST_INSTANCE=HOSTNAME_INSTANCE}
28962
28963 fi
28964
28965     { echo "$as_me:$LINENO: result: $CLIENT_HOST_INSTANCE" >&5
28966 echo "${ECHO_T}$CLIENT_HOST_INSTANCE" >&6; }
28967
28968     { echo "$as_me:$LINENO: checking client host key file" >&5
28969 echo $ECHO_N "checking client host key file... $ECHO_C" >&6; }
28970
28971 # Check whether --with-client-keyfile was given.
28972 if test "${with_client_keyfile+set}" = set; then
28973   withval=$with_client_keyfile;
28974             case "$withval" in
28975                 "" | y | ye | yes | n | no)
28976                     { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-client-keyfile option." >&5
28977 echo "$as_me: error: *** You must supply an argument to the --with-client-keyfile option." >&2;}
28978    { (exit 1); exit 1; }; }
28979                   ;;
28980                 *) CLIENT_HOST_KEY_FILE="$withval" ;;
28981             esac
28982
28983 else
28984    : ${CLIENT_HOST_KEY_FILE=KEYFILE}
28985
28986 fi
28987
28988     # Assume it's either KEYFILE (defined in krb.h), or a string filename...
28989     if test "x$CLIENT_HOST_KEY_FILE" != "xKEYFILE"; then
28990       # add quotes
28991       CLIENT_HOST_KEY_FILE="\"$CLIENT_HOST_KEY_FILE\""
28992     fi
28993     { echo "$as_me:$LINENO: result: $CLIENT_HOST_KEY_FILE" >&5
28994 echo "${ECHO_T}$CLIENT_HOST_KEY_FILE" >&6; }
28995
28996     { echo "$as_me:$LINENO: checking ticket lifetime" >&5
28997 echo $ECHO_N "checking ticket lifetime... $ECHO_C" >&6; }
28998
28999 # Check whether --with-ticket-lifetime was given.
29000 if test "${with_ticket_lifetime+set}" = set; then
29001   withval=$with_ticket_lifetime;
29002             case "$withval" in
29003             "" | y | ye | yes | n | no)
29004                 { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-ticket-lifetime option." >&5
29005 echo "$as_me: error: *** You must supply an argument to the --with-ticket-lifetime option." >&2;}
29006    { (exit 1); exit 1; }; }
29007               ;;
29008             *) TICKET_LIFETIME="$withval" ;;
29009             esac
29010
29011 else
29012    : ${TICKET_LIFETIME=128}
29013
29014 fi
29015
29016     { echo "$as_me:$LINENO: result: $TICKET_LIFETIME" >&5
29017 echo "${ECHO_T}$TICKET_LIFETIME" >&6; }
29018
29019
29020     if test "x${KRB4_SECURITY}" = "xyes"; then
29021         { echo "$as_me:$LINENO: checking for Kerberos and Amanda kerberos4 bits" >&5
29022 echo $ECHO_N "checking for Kerberos and Amanda kerberos4 bits... $ECHO_C" >&6; }
29023         found="no"
29024         for dir in $KRB4_SPOTS; do
29025             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
29026                 #
29027                 # This is the original Kerberos 4.
29028                 #
29029                 { echo "$as_me:$LINENO: result: found in $dir" >&5
29030 echo "${ECHO_T}found in $dir" >&6; }
29031                 found="yes"
29032
29033                 #
29034                 # This handles BSD/OS.
29035                 #
29036                 if test -d $dir/include/kerberosIV ; then
29037                     CPPFLAGS="$CPPFLAGS -I$dir/include/kerberosIV"
29038
29039                 else
29040                     CPPFLAGS="$CPPFLAGS -I$dir/include"
29041
29042                 fi
29043                 LDFLAGS="$LDFLAGS -L$dir/lib"
29044
29045                 LIBS="-lkrb -ldes $LIBS"
29046
29047                 if test -f ${dir}/lib/libcom_err.a; then
29048                     LIBS="-lcom_err $LIBS"
29049
29050                 fi
29051                 break
29052             elif test \( -f ${dir}/lib/libkrb4.a -o -f ${dir}/lib/libkrb4.so \) &&
29053                  test \( -f ${dir}/lib/libcrypto.a -o -f ${dir}/lib/libcrypto.so \) &&
29054                  test \( -f ${dir}/lib/libdes425.a -o -f ${dir}/lib/libdes425.so \) ; then
29055                 #
29056                 # This is Kerberos 5 with Kerberos 4 back-support.
29057                 #
29058                 { echo "$as_me:$LINENO: result: found in $dir" >&5
29059 echo "${ECHO_T}found in $dir" >&6; }
29060                 found="yes"
29061                 CPPFLAGS="$CPPFLAGS -I$dir/include -I$dir/include/kerberosIV"
29062
29063                 LDFLAGS="$LDFLAGS -L$dir/lib"
29064
29065                 if test \( -f ${dir}/lib/libkrb5.a -o -f ${dir}/lib/libkrb5.so \) &&
29066                    test \( -f ${dir}/lib/libcom_err.a -o -f ${dir}/lib/libcom_err.so \) ; then
29067                     LIBS="-lkrb4 -lkrb5 -lcrypto -ldes425 -lcom_err $LIBS"
29068
29069                 else
29070                     LIBS="-lkrb4 -lcrypto -ldes425 $LIBS"
29071
29072                 fi
29073                 break
29074             fi
29075         done
29076
29077         if test "x$found" = "xno" ; then
29078             { echo "$as_me:$LINENO: result: no libraries found" >&5
29079 echo "${ECHO_T}no libraries found" >&6; }
29080
29081     { echo "$as_me:$LINENO: WARNING: No Kerberos IV libraries were found on your system; disabling krb4-security" >&5
29082 echo "$as_me: WARNING: No Kerberos IV libraries were found on your system; disabling krb4-security" >&2;}
29083
29084
29085     cat <<AAW_EOF >>config.warnings
29086 No Kerberos IV libraries were found on your system; disabling krb4-security
29087 AAW_EOF
29088
29089
29090             KRB4_SECURITY="no"
29091         else
29092
29093 cat >>confdefs.h <<\_ACEOF
29094 #define KRB4_SECURITY 1
29095 _ACEOF
29096
29097
29098 cat >>confdefs.h <<_ACEOF
29099 #define SERVER_HOST_PRINCIPAL "$SERVER_HOST_PRINCIPAL"
29100 _ACEOF
29101
29102
29103 cat >>confdefs.h <<_ACEOF
29104 #define SERVER_HOST_INSTANCE "$SERVER_HOST_INSTANCE"
29105 _ACEOF
29106
29107
29108 cat >>confdefs.h <<_ACEOF
29109 #define SERVER_HOST_KEY_FILE "$SERVER_HOST_KEY_FILE"
29110 _ACEOF
29111
29112
29113 cat >>confdefs.h <<_ACEOF
29114 #define CLIENT_HOST_PRINCIPAL "$CLIENT_HOST_PRINCIPAL"
29115 _ACEOF
29116
29117
29118 cat >>confdefs.h <<_ACEOF
29119 #define CLIENT_HOST_INSTANCE $CLIENT_HOST_INSTANCE
29120 _ACEOF
29121
29122
29123 cat >>confdefs.h <<_ACEOF
29124 #define CLIENT_HOST_KEY_FILE $CLIENT_HOST_KEY_FILE
29125 _ACEOF
29126
29127
29128 cat >>confdefs.h <<_ACEOF
29129 #define TICKET_LIFETIME $TICKET_LIFETIME
29130 _ACEOF
29131
29132         fi
29133     fi
29134      if test x"$KRB4_SECURITY" = x"yes"; then
29135   WANT_KRB4_SECURITY_TRUE=
29136   WANT_KRB4_SECURITY_FALSE='#'
29137 else
29138   WANT_KRB4_SECURITY_TRUE='#'
29139   WANT_KRB4_SECURITY_FALSE=
29140 fi
29141
29142
29143
29144     # Specify --with-krb5-security if Kerberos software is in somewhere
29145     # other than the listed KRB5_SPOTS.  We only compile kerberos support in
29146     # if the right files are there.
29147
29148     KRB5_SECURITY="no"
29149     : ${KRB5_SPOTS="/usr/kerberos /usr/cygnus /usr /opt/kerberos"}
29150
29151
29152 # Check whether --with-krb5-security was given.
29153 if test "${with_krb5_security+set}" = set; then
29154   withval=$with_krb5_security;
29155             case "$withval" in
29156                 n | no) KRB5_SECURITY=no ;;
29157                 y | ye | yes) KRB5_SECURITY=yes ;;
29158                 *) KRB5_SPOTS="$KRB5_SECURITY"
29159                    KRB5_SECURITY=yes
29160                    ;;
29161             esac
29162
29163
29164 fi
29165
29166
29167     if test "x$KRB5_SECURITY" = "xyes"; then
29168         # if found, force the static versions of these libs (.a) by linking directly
29169         # with the .a files.  I don't know how to get -R dependancies checked
29170         # in autoconf at this time. -kashmir
29171         { echo "$as_me:$LINENO: checking for Kerberos V libraries" >&5
29172 echo $ECHO_N "checking for Kerberos V libraries... $ECHO_C" >&6; }
29173         KRB5_DIR_FOUND=""
29174         for dir in $KRB5_SPOTS; do
29175           for lib in lib lib64; do
29176             k5libdir=${dir}/${lib}
29177             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
29178                 if test -f ${k5libdir}/libk5crypto.a -o -f ${k5libdir}/libk5crypto.so; then
29179                     K5CRYPTO=-lk5crypto
29180                 elif test -f ${k5libdir}/libcrypto.a -o -f ${k5libdir}/libcrypto.so; then
29181                     K5CRYPTO=-lcrypto
29182                 else
29183                     K5CRYPTO=""
29184                 fi
29185                 if test -f ${k5libdir}/libkrb5support.a -o -f ${k5libdir}/libkrb5support.so; then
29186                     K5SUPPORT=-lkrb5support
29187                 else
29188                     K5SUPPORT=""
29189                 fi
29190                 KRB5_DIR_FOUND=$dir
29191                 KRB5_LIBDIR_FOUND=$k5libdir
29192                 LIBS="-lgssapi_krb5 -lkrb5 $K5CRYPTO $K5SUPPORT -lcom_err $LIBS"
29193
29194                 break
29195             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
29196                 LIBS="-lgssapi -lkrb5 -lasn1 $LIBS"
29197
29198                 CPPFLAGS="$CPPFLAGS -DKRB5_HEIMDAL_INCLUDES"
29199
29200                 break
29201             fi
29202           done
29203         done
29204
29205         if test "$KRB5_DIR_FOUND"; then
29206             { echo "$as_me:$LINENO: result: found in $KRB5_DIR_FOUND" >&5
29207 echo "${ECHO_T}found in $KRB5_DIR_FOUND" >&6; }
29208             #
29209             # some OS's, such as NetBSD, stick krb5 includes out of the way...
29210             # should probably just use autoconf to look for various include
29211             # options and set them, but don't quite want to do that until I've
29212             # dug into it a bit more.
29213             #
29214             if test -d "$KRB5_DIR_FOUND/krb5" ; then
29215                 CPPFLAGS="$CPPFLAGS -I$KRB5_DIR_FOUND/include/krb5"
29216
29217             else
29218                 CPPFLAGS="$CPPFLAGS -I$KRB5_DIR_FOUND/include"
29219
29220             fi
29221
29222 { echo "$as_me:$LINENO: checking for main in -lkrb5support" >&5
29223 echo $ECHO_N "checking for main in -lkrb5support... $ECHO_C" >&6; }
29224 if test "${ac_cv_lib_krb5support_main+set}" = set; then
29225   echo $ECHO_N "(cached) $ECHO_C" >&6
29226 else
29227   ac_check_lib_save_LIBS=$LIBS
29228 LIBS="-lkrb5support  $LIBS"
29229 cat >conftest.$ac_ext <<_ACEOF
29230 /* confdefs.h.  */
29231 _ACEOF
29232 cat confdefs.h >>conftest.$ac_ext
29233 cat >>conftest.$ac_ext <<_ACEOF
29234 /* end confdefs.h.  */
29235
29236
29237 int
29238 main ()
29239 {
29240 return main ();
29241   ;
29242   return 0;
29243 }
29244 _ACEOF
29245 rm -f conftest.$ac_objext conftest$ac_exeext
29246 if { (ac_try="$ac_link"
29247 case "(($ac_try" in
29248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29249   *) ac_try_echo=$ac_try;;
29250 esac
29251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29252   (eval "$ac_link") 2>conftest.er1
29253   ac_status=$?
29254   grep -v '^ *+' conftest.er1 >conftest.err
29255   rm -f conftest.er1
29256   cat conftest.err >&5
29257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29258   (exit $ac_status); } && {
29259          test -z "$ac_c_werror_flag" ||
29260          test ! -s conftest.err
29261        } && test -s conftest$ac_exeext &&
29262        $as_test_x conftest$ac_exeext; then
29263   ac_cv_lib_krb5support_main=yes
29264 else
29265   echo "$as_me: failed program was:" >&5
29266 sed 's/^/| /' conftest.$ac_ext >&5
29267
29268         ac_cv_lib_krb5support_main=no
29269 fi
29270
29271 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29272       conftest$ac_exeext conftest.$ac_ext
29273 LIBS=$ac_check_lib_save_LIBS
29274 fi
29275 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb5support_main" >&5
29276 echo "${ECHO_T}$ac_cv_lib_krb5support_main" >&6; }
29277 if test $ac_cv_lib_krb5support_main = yes; then
29278   cat >>confdefs.h <<_ACEOF
29279 #define HAVE_LIBKRB5SUPPORT 1
29280 _ACEOF
29281
29282   LIBS="-lkrb5support $LIBS"
29283
29284 fi
29285
29286             LDFLAGS="$LDFLAGS -L$KRB5_LIBDIR_FOUND"
29287
29288
29289
29290 cat >>confdefs.h <<\_ACEOF
29291 #define KRB5_SECURITY 1
29292 _ACEOF
29293
29294         else
29295             { echo "$as_me:$LINENO: result: no krb5 system libraries found" >&5
29296 echo "${ECHO_T}no krb5 system libraries found" >&6; }
29297             { { echo "$as_me:$LINENO: error: No Kerberos V libraries were found on your system; krb5-security cannot be enabled" >&5
29298 echo "$as_me: error: No Kerberos V libraries were found on your system; krb5-security cannot be enabled" >&2;}
29299    { (exit 1); exit 1; }; }
29300             KRB5_SECURITY="no"
29301         fi
29302     fi
29303
29304      if test x"$KRB5_SECURITY" = x"yes"; then
29305   WANT_KRB5_SECURITY_TRUE=
29306   WANT_KRB5_SECURITY_FALSE='#'
29307 else
29308   WANT_KRB5_SECURITY_TRUE='#'
29309   WANT_KRB5_SECURITY_FALSE=
29310 fi
29311
29312
29313
29314 #
29315 # Dumpers
29316 #
29317
29318
29319
29320     for ac_prog in xfsdump
29321 do
29322   # Extract the first word of "$ac_prog", so it can be a program name with args.
29323 set dummy $ac_prog; ac_word=$2
29324 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29325 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29326 if test "${ac_cv_path_XFSDUMP+set}" = set; then
29327   echo $ECHO_N "(cached) $ECHO_C" >&6
29328 else
29329   case $XFSDUMP in
29330   [\\/]* | ?:[\\/]*)
29331   ac_cv_path_XFSDUMP="$XFSDUMP" # Let the user override the test with a path.
29332   ;;
29333   *)
29334   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29335 for as_dir in $SYSLOCPATH
29336 do
29337   IFS=$as_save_IFS
29338   test -z "$as_dir" && as_dir=.
29339   for ac_exec_ext in '' $ac_executable_extensions; do
29340   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29341     ac_cv_path_XFSDUMP="$as_dir/$ac_word$ac_exec_ext"
29342     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29343     break 2
29344   fi
29345 done
29346 done
29347 IFS=$as_save_IFS
29348
29349   ;;
29350 esac
29351 fi
29352 XFSDUMP=$ac_cv_path_XFSDUMP
29353 if test -n "$XFSDUMP"; then
29354   { echo "$as_me:$LINENO: result: $XFSDUMP" >&5
29355 echo "${ECHO_T}$XFSDUMP" >&6; }
29356 else
29357   { echo "$as_me:$LINENO: result: no" >&5
29358 echo "${ECHO_T}no" >&6; }
29359 fi
29360
29361
29362   test -n "$XFSDUMP" && break
29363 done
29364
29365     for ac_prog in xfsrestore
29366 do
29367   # Extract the first word of "$ac_prog", so it can be a program name with args.
29368 set dummy $ac_prog; ac_word=$2
29369 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29370 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29371 if test "${ac_cv_path_XFSRESTORE+set}" = set; then
29372   echo $ECHO_N "(cached) $ECHO_C" >&6
29373 else
29374   case $XFSRESTORE in
29375   [\\/]* | ?:[\\/]*)
29376   ac_cv_path_XFSRESTORE="$XFSRESTORE" # Let the user override the test with a path.
29377   ;;
29378   *)
29379   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29380 for as_dir in $SYSLOCPATH
29381 do
29382   IFS=$as_save_IFS
29383   test -z "$as_dir" && as_dir=.
29384   for ac_exec_ext in '' $ac_executable_extensions; do
29385   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29386     ac_cv_path_XFSRESTORE="$as_dir/$ac_word$ac_exec_ext"
29387     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29388     break 2
29389   fi
29390 done
29391 done
29392 IFS=$as_save_IFS
29393
29394   ;;
29395 esac
29396 fi
29397 XFSRESTORE=$ac_cv_path_XFSRESTORE
29398 if test -n "$XFSRESTORE"; then
29399   { echo "$as_me:$LINENO: result: $XFSRESTORE" >&5
29400 echo "${ECHO_T}$XFSRESTORE" >&6; }
29401 else
29402   { echo "$as_me:$LINENO: result: no" >&5
29403 echo "${ECHO_T}no" >&6; }
29404 fi
29405
29406
29407   test -n "$XFSRESTORE" && break
29408 done
29409
29410     if test "$XFSDUMP" -a "$XFSRESTORE"; then
29411
29412 cat >>confdefs.h <<_ACEOF
29413 #define XFSDUMP "$XFSDUMP"
29414 _ACEOF
29415
29416
29417 cat >>confdefs.h <<_ACEOF
29418 #define XFSRESTORE "$XFSRESTORE"
29419 _ACEOF
29420
29421
29422     { 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
29423 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;}
29424
29425
29426     cat <<AAW_EOF >>config.warnings
29427 xfsdump causes the setuid-root rundump program to be enabled.  To disable it, just #undef XFSDUMP in config/config.h
29428 AAW_EOF
29429
29430
29431     fi
29432
29433
29434
29435
29436     # Extract the first word of "vxdump", so it can be a program name with args.
29437 set dummy vxdump; ac_word=$2
29438 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29439 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29440 if test "${ac_cv_path_VXDUMP+set}" = set; then
29441   echo $ECHO_N "(cached) $ECHO_C" >&6
29442 else
29443   case $VXDUMP in
29444   [\\/]* | ?:[\\/]*)
29445   ac_cv_path_VXDUMP="$VXDUMP" # Let the user override the test with a path.
29446   ;;
29447   *)
29448   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29449 as_dummy="$SYSLOCPATH:/usr/lib/fs/vxfs"
29450 for as_dir in $as_dummy
29451 do
29452   IFS=$as_save_IFS
29453   test -z "$as_dir" && as_dir=.
29454   for ac_exec_ext in '' $ac_executable_extensions; do
29455   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29456     ac_cv_path_VXDUMP="$as_dir/$ac_word$ac_exec_ext"
29457     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29458     break 2
29459   fi
29460 done
29461 done
29462 IFS=$as_save_IFS
29463
29464   ;;
29465 esac
29466 fi
29467 VXDUMP=$ac_cv_path_VXDUMP
29468 if test -n "$VXDUMP"; then
29469   { echo "$as_me:$LINENO: result: $VXDUMP" >&5
29470 echo "${ECHO_T}$VXDUMP" >&6; }
29471 else
29472   { echo "$as_me:$LINENO: result: no" >&5
29473 echo "${ECHO_T}no" >&6; }
29474 fi
29475
29476
29477     # Extract the first word of "vxrestore", so it can be a program name with args.
29478 set dummy vxrestore; ac_word=$2
29479 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29480 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29481 if test "${ac_cv_path_VXRESTORE+set}" = set; then
29482   echo $ECHO_N "(cached) $ECHO_C" >&6
29483 else
29484   case $VXRESTORE in
29485   [\\/]* | ?:[\\/]*)
29486   ac_cv_path_VXRESTORE="$VXRESTORE" # Let the user override the test with a path.
29487   ;;
29488   *)
29489   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29490 as_dummy="$SYSLOCPATH:/usr/lib/fs/vxfs"
29491 for as_dir in $as_dummy
29492 do
29493   IFS=$as_save_IFS
29494   test -z "$as_dir" && as_dir=.
29495   for ac_exec_ext in '' $ac_executable_extensions; do
29496   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29497     ac_cv_path_VXRESTORE="$as_dir/$ac_word$ac_exec_ext"
29498     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29499     break 2
29500   fi
29501 done
29502 done
29503 IFS=$as_save_IFS
29504
29505   ;;
29506 esac
29507 fi
29508 VXRESTORE=$ac_cv_path_VXRESTORE
29509 if test -n "$VXRESTORE"; then
29510   { echo "$as_me:$LINENO: result: $VXRESTORE" >&5
29511 echo "${ECHO_T}$VXRESTORE" >&6; }
29512 else
29513   { echo "$as_me:$LINENO: result: no" >&5
29514 echo "${ECHO_T}no" >&6; }
29515 fi
29516
29517
29518     if test "$VXDUMP" -a "$VXRESTORE"; then
29519
29520 cat >>confdefs.h <<_ACEOF
29521 #define VXDUMP "$VXDUMP"
29522 _ACEOF
29523
29524
29525 cat >>confdefs.h <<_ACEOF
29526 #define VXRESTORE "$VXRESTORE"
29527 _ACEOF
29528
29529     fi
29530
29531
29532
29533
29534     # Extract the first word of "vdump", so it can be a program name with args.
29535 set dummy vdump; ac_word=$2
29536 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29537 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29538 if test "${ac_cv_path_VDUMP+set}" = set; then
29539   echo $ECHO_N "(cached) $ECHO_C" >&6
29540 else
29541   case $VDUMP in
29542   [\\/]* | ?:[\\/]*)
29543   ac_cv_path_VDUMP="$VDUMP" # Let the user override the test with a path.
29544   ;;
29545   *)
29546   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29547 for as_dir in $SYSLOCPATH
29548 do
29549   IFS=$as_save_IFS
29550   test -z "$as_dir" && as_dir=.
29551   for ac_exec_ext in '' $ac_executable_extensions; do
29552   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29553     ac_cv_path_VDUMP="$as_dir/$ac_word$ac_exec_ext"
29554     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29555     break 2
29556   fi
29557 done
29558 done
29559 IFS=$as_save_IFS
29560
29561   ;;
29562 esac
29563 fi
29564 VDUMP=$ac_cv_path_VDUMP
29565 if test -n "$VDUMP"; then
29566   { echo "$as_me:$LINENO: result: $VDUMP" >&5
29567 echo "${ECHO_T}$VDUMP" >&6; }
29568 else
29569   { echo "$as_me:$LINENO: result: no" >&5
29570 echo "${ECHO_T}no" >&6; }
29571 fi
29572
29573
29574     # Extract the first word of "vrestore", so it can be a program name with args.
29575 set dummy vrestore; ac_word=$2
29576 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29577 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29578 if test "${ac_cv_path_VRESTORE+set}" = set; then
29579   echo $ECHO_N "(cached) $ECHO_C" >&6
29580 else
29581   case $VRESTORE in
29582   [\\/]* | ?:[\\/]*)
29583   ac_cv_path_VRESTORE="$VRESTORE" # Let the user override the test with a path.
29584   ;;
29585   *)
29586   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29587 for as_dir in $SYSLOCPATH
29588 do
29589   IFS=$as_save_IFS
29590   test -z "$as_dir" && as_dir=.
29591   for ac_exec_ext in '' $ac_executable_extensions; do
29592   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29593     ac_cv_path_VRESTORE="$as_dir/$ac_word$ac_exec_ext"
29594     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29595     break 2
29596   fi
29597 done
29598 done
29599 IFS=$as_save_IFS
29600
29601   ;;
29602 esac
29603 fi
29604 VRESTORE=$ac_cv_path_VRESTORE
29605 if test -n "$VRESTORE"; then
29606   { echo "$as_me:$LINENO: result: $VRESTORE" >&5
29607 echo "${ECHO_T}$VRESTORE" >&6; }
29608 else
29609   { echo "$as_me:$LINENO: result: no" >&5
29610 echo "${ECHO_T}no" >&6; }
29611 fi
29612
29613
29614     if test "$VDUMP" -a "$VRESTORE"; then
29615
29616 cat >>confdefs.h <<_ACEOF
29617 #define VDUMP "$VDUMP"
29618 _ACEOF
29619
29620
29621 cat >>confdefs.h <<_ACEOF
29622 #define VRESTORE "$VRESTORE"
29623 _ACEOF
29624
29625     fi
29626
29627
29628
29629     # Extract the first word of "grep", so it can be a program name with args.
29630 set dummy grep; ac_word=$2
29631 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29632 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29633 if test "${ac_cv_path_GREP+set}" = set; then
29634   echo $ECHO_N "(cached) $ECHO_C" >&6
29635 else
29636   case $GREP in
29637   [\\/]* | ?:[\\/]*)
29638   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
29639   ;;
29640   *)
29641   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29642 for as_dir in $LOCSYSPATH
29643 do
29644   IFS=$as_save_IFS
29645   test -z "$as_dir" && as_dir=.
29646   for ac_exec_ext in '' $ac_executable_extensions; do
29647   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29648     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
29649     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29650     break 2
29651   fi
29652 done
29653 done
29654 IFS=$as_save_IFS
29655
29656   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
29657   ;;
29658 esac
29659 fi
29660 GREP=$ac_cv_path_GREP
29661 if test -n "$GREP"; then
29662   { echo "$as_me:$LINENO: result: $GREP" >&5
29663 echo "${ECHO_T}$GREP" >&6; }
29664 else
29665   { echo "$as_me:$LINENO: result: no" >&5
29666 echo "${ECHO_T}no" >&6; }
29667 fi
29668
29669
29670
29671 cat >>confdefs.h <<_ACEOF
29672 #define GREP "$GREP"
29673 _ACEOF
29674
29675
29676
29677
29678
29679
29680     # Set the order of dump programs to look for.  Finding the proper file
29681     # system dumping program is problematic.  Some systems, notably HP-UX
29682     # and AIX, have both the backup and dump programs.  HP-UX can't use the
29683     # the backup program while AIX systems can't use the dump program.  So
29684     # a variable is set up here to specify the order of dump programs to
29685     # search for on the system.
29686     DUMP_PROGRAMS="ufsdump dump backup"
29687     dump_returns_1=
29688     case "$target" in
29689         *-dg-*)
29690             DUMP_PROGRAMS="dump "$DUMP_PROGRAMS
29691             dump_returns_1=yes
29692             ;;
29693       *-ibm-aix*)
29694             DUMP_PROGRAMS="backup "$DUMP_PROGRAMS
29695
29696 cat >>confdefs.h <<\_ACEOF
29697 #define AIX_BACKUP 1
29698 _ACEOF
29699
29700             ;;
29701       *-ultrix*)
29702             dump_returns_1=yes
29703             ;;
29704     esac
29705
29706     if test -n "$dump_returns_1"; then
29707
29708 cat >>confdefs.h <<\_ACEOF
29709 #define DUMP_RETURNS_1 1
29710 _ACEOF
29711
29712     fi
29713
29714     for ac_prog in $DUMP_PROGRAMS
29715 do
29716   # Extract the first word of "$ac_prog", so it can be a program name with args.
29717 set dummy $ac_prog; ac_word=$2
29718 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29719 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29720 if test "${ac_cv_path_DUMP+set}" = set; then
29721   echo $ECHO_N "(cached) $ECHO_C" >&6
29722 else
29723   case $DUMP in
29724   [\\/]* | ?:[\\/]*)
29725   ac_cv_path_DUMP="$DUMP" # Let the user override the test with a path.
29726   ;;
29727   *)
29728   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29729 for as_dir in $SYSLOCPATH
29730 do
29731   IFS=$as_save_IFS
29732   test -z "$as_dir" && as_dir=.
29733   for ac_exec_ext in '' $ac_executable_extensions; do
29734   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29735     ac_cv_path_DUMP="$as_dir/$ac_word$ac_exec_ext"
29736     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29737     break 2
29738   fi
29739 done
29740 done
29741 IFS=$as_save_IFS
29742
29743   ;;
29744 esac
29745 fi
29746 DUMP=$ac_cv_path_DUMP
29747 if test -n "$DUMP"; then
29748   { echo "$as_me:$LINENO: result: $DUMP" >&5
29749 echo "${ECHO_T}$DUMP" >&6; }
29750 else
29751   { echo "$as_me:$LINENO: result: no" >&5
29752 echo "${ECHO_T}no" >&6; }
29753 fi
29754
29755
29756   test -n "$DUMP" && break
29757 done
29758
29759     for ac_prog in ufsrestore restore
29760 do
29761   # Extract the first word of "$ac_prog", so it can be a program name with args.
29762 set dummy $ac_prog; ac_word=$2
29763 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29764 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29765 if test "${ac_cv_path_RESTORE+set}" = set; then
29766   echo $ECHO_N "(cached) $ECHO_C" >&6
29767 else
29768   case $RESTORE in
29769   [\\/]* | ?:[\\/]*)
29770   ac_cv_path_RESTORE="$RESTORE" # Let the user override the test with a path.
29771   ;;
29772   *)
29773   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29774 for as_dir in $SYSLOCPATH
29775 do
29776   IFS=$as_save_IFS
29777   test -z "$as_dir" && as_dir=.
29778   for ac_exec_ext in '' $ac_executable_extensions; do
29779   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29780     ac_cv_path_RESTORE="$as_dir/$ac_word$ac_exec_ext"
29781     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29782     break 2
29783   fi
29784 done
29785 done
29786 IFS=$as_save_IFS
29787
29788   ;;
29789 esac
29790 fi
29791 RESTORE=$ac_cv_path_RESTORE
29792 if test -n "$RESTORE"; then
29793   { echo "$as_me:$LINENO: result: $RESTORE" >&5
29794 echo "${ECHO_T}$RESTORE" >&6; }
29795 else
29796   { echo "$as_me:$LINENO: result: no" >&5
29797 echo "${ECHO_T}no" >&6; }
29798 fi
29799
29800
29801   test -n "$RESTORE" && break
29802 done
29803
29804
29805     # newer versions of GNU tar include a program named 'backup' which
29806     # does *not* implement the expected 'dump' interface.  Detect that here
29807     # and pretend we never saw it.
29808     if test -n "$DUMP"; then
29809       if test "`basename $DUMP`" = "backup"; then
29810         backup_gnutar=`$DUMP --version | $GREP "GNU tar"`
29811         if test $? -eq 0; then
29812           DUMP=
29813         fi
29814       fi
29815     fi
29816
29817     if test "$DUMP" -a "$RESTORE"; then
29818
29819 cat >>confdefs.h <<_ACEOF
29820 #define DUMP "$DUMP"
29821 _ACEOF
29822
29823
29824 cat >>confdefs.h <<_ACEOF
29825 #define RESTORE "$RESTORE"
29826 _ACEOF
29827
29828
29829         # check for an estimate flag
29830         if test -x $DUMP; then
29831             { echo "$as_me:$LINENO: checking whether $DUMP supports -E or -S for estimates" >&5
29832 echo $ECHO_N "checking whether $DUMP supports -E or -S for estimates... $ECHO_C" >&6; }
29833 if test "${amanda_cv_dump_estimate+set}" = set; then
29834   echo $ECHO_N "(cached) $ECHO_C" >&6
29835 else
29836
29837                     case "$DUMP" in
29838                     *dump)
29839                         { ac_try='$DUMP 9Ef /dev/null /dev/null/invalid/fs 2>&1
29840                             | $GREP -v Dumping
29841                             | $GREP -v Date
29842                             | $GREP -v Label >conftest.d-E 2>&1'
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); }; }
29848                         cat conftest.d-E >&5
29849                         { ac_try='$DUMP 9Sf /dev/null /dev/null/invalid/fs 2>&1
29850                             | $GREP -v Dumping
29851                             | $GREP -v Date
29852                             | $GREP -v Label >conftest.d-S 2>&1'
29853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29854   (eval $ac_try) 2>&5
29855   ac_status=$?
29856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29857   (exit $ac_status); }; }
29858                         cat conftest.d-S >&5
29859                         { ac_try='$DUMP 9f /dev/null /dev/null/invalid/fs 2>&1
29860                             | $GREP -v Dumping
29861                             | $GREP -v Date
29862                             | $GREP -v Label >conftest.d 2>&1'
29863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29864   (eval $ac_try) 2>&5
29865   ac_status=$?
29866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29867   (exit $ac_status); }; }
29868                         cat conftest.d >&5
29869                         if { ac_try='cmp conftest.d-E conftest.d 1>&2'
29870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29871   (eval $ac_try) 2>&5
29872   ac_status=$?
29873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29874   (exit $ac_status); }; }; then
29875                             amanda_cv_dump_estimate=E
29876                         elif { ac_try='cmp conftest.d-S conftest.d 1>&2'
29877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29878   (eval $ac_try) 2>&5
29879   ac_status=$?
29880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29881   (exit $ac_status); }; }; then
29882                             amanda_cv_dump_estimate=S
29883                         else
29884                             amanda_cv_dump_estimate=no
29885                         fi
29886                         rm -f conftest.d conftest.d-E conftest.d-S
29887                       ;;
29888                     *) amanda_cv_dump_estimate=no
29889                       ;;
29890                     esac
29891
29892 fi
29893 { echo "$as_me:$LINENO: result: $amanda_cv_dump_estimate" >&5
29894 echo "${ECHO_T}$amanda_cv_dump_estimate" >&6; }
29895         else
29896
29897     { echo "$as_me:$LINENO: WARNING: $DUMP is not executable, cannot run -E/-S test" >&5
29898 echo "$as_me: WARNING: $DUMP is not executable, cannot run -E/-S test" >&2;}
29899
29900
29901     cat <<AAW_EOF >>config.warnings
29902 $DUMP is not executable, cannot run -E/-S test
29903 AAW_EOF
29904
29905
29906             amanda_cv_dump_estimate=no
29907         fi
29908         if test "x$amanda_cv_dump_estimate" != xno; then
29909
29910 cat >>confdefs.h <<_ACEOF
29911 #define HAVE_DUMP_ESTIMATE "$amanda_cv_dump_estimate"
29912 _ACEOF
29913
29914         fi
29915
29916
29917 # Check whether --with-dump-honor-nodump was given.
29918 if test "${with_dump_honor_nodump+set}" = set; then
29919   withval=$with_dump_honor_nodump;
29920             if test -x $DUMP; then
29921                 { echo "$as_me:$LINENO: checking whether $DUMP supports -h (honor nodump flag)" >&5
29922 echo $ECHO_N "checking whether $DUMP supports -h (honor nodump flag)... $ECHO_C" >&6; }
29923 if test "${amanda_cv_honor_nodump+set}" = set; then
29924   echo $ECHO_N "(cached) $ECHO_C" >&6
29925 else
29926
29927                     case "$DUMP" in
29928                     *dump)
29929                         { ac_try='$DUMP 9hf 0 /dev/null /dev/null/invalid/fs 2>&1
29930                             | $GREP -v Dumping
29931                             | $GREP -v Date
29932                             | $GREP -v Label >conftest.d-h 2>&1'
29933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29934   (eval $ac_try) 2>&5
29935   ac_status=$?
29936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29937   (exit $ac_status); }; }
29938                         cat conftest.d-h >&5
29939                         { ac_try='$DUMP 9f /dev/null /dev/null/invalid/fs 2>&1
29940                             | $GREP -v Dumping
29941                             | $GREP -v Date
29942                             | $GREP -v Label >conftest.d 2>&1'
29943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29944   (eval $ac_try) 2>&5
29945   ac_status=$?
29946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29947   (exit $ac_status); }; }
29948                         cat conftest.d >&5
29949                         if { ac_try='diff conftest.d-h conftest.d 1>&2'
29950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29951   (eval $ac_try) 2>&5
29952   ac_status=$?
29953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29954   (exit $ac_status); }; }; then
29955                             amanda_cv_honor_nodump=yes
29956                         else
29957                             amanda_cv_honor_nodump=no
29958                         fi
29959                         rm -f conftest.d conftest.d-h
29960                       ;;
29961                     *) amanda_cv_honor_nodump=no
29962                       ;;
29963                     esac
29964
29965 fi
29966 { echo "$as_me:$LINENO: result: $amanda_cv_honor_nodump" >&5
29967 echo "${ECHO_T}$amanda_cv_honor_nodump" >&6; }
29968             else
29969
29970     { echo "$as_me:$LINENO: WARNING: $DUMP is not executable, cannot run -h test" >&5
29971 echo "$as_me: WARNING: $DUMP is not executable, cannot run -h test" >&2;}
29972
29973
29974     cat <<AAW_EOF >>config.warnings
29975 $DUMP is not executable, cannot run -h test
29976 AAW_EOF
29977
29978
29979                 amanda_cv_honor_nodump=no
29980             fi
29981             if test "x$amanda_cv_honor_nodump" = xyes; then
29982
29983 cat >>confdefs.h <<\_ACEOF
29984 #define HAVE_HONOR_NODUMP 1
29985 _ACEOF
29986
29987             fi
29988
29989 fi
29990
29991     fi
29992
29993
29994
29995
29996     # call with
29997
29998 # Check whether --with-gnutar was given.
29999 if test "${with_gnutar+set}" = set; then
30000   withval=$with_gnutar;
30001             # check withval
30002             case "$withval" in
30003                 /*) GNUTAR="$withval";;
30004                 y|ye|yes) :;;
30005                 n|no) GNUTAR=no ;;
30006                 *)  { { echo "$as_me:$LINENO: error: *** You must supply a full pathname to --with-gnutar" >&5
30007 echo "$as_me: error: *** You must supply a full pathname to --with-gnutar" >&2;}
30008    { (exit 1); exit 1; }; };;
30009             esac
30010             # done
30011
30012
30013 fi
30014
30015
30016     if test "x$GNUTAR" = "xno"; then
30017         GNUTAR=
30018     else
30019         for gnutar_name in gtar gnutar tar; do
30020             for ac_prog in $gnutar_name
30021 do
30022   # Extract the first word of "$ac_prog", so it can be a program name with args.
30023 set dummy $ac_prog; ac_word=$2
30024 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30025 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30026 if test "${ac_cv_path_GNUTAR+set}" = set; then
30027   echo $ECHO_N "(cached) $ECHO_C" >&6
30028 else
30029   case $GNUTAR in
30030   [\\/]* | ?:[\\/]*)
30031   ac_cv_path_GNUTAR="$GNUTAR" # Let the user override the test with a path.
30032   ;;
30033   *)
30034   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30035 for as_dir in $LOCSYSPATH
30036 do
30037   IFS=$as_save_IFS
30038   test -z "$as_dir" && as_dir=.
30039   for ac_exec_ext in '' $ac_executable_extensions; do
30040   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30041     ac_cv_path_GNUTAR="$as_dir/$ac_word$ac_exec_ext"
30042     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30043     break 2
30044   fi
30045 done
30046 done
30047 IFS=$as_save_IFS
30048
30049   ;;
30050 esac
30051 fi
30052 GNUTAR=$ac_cv_path_GNUTAR
30053 if test -n "$GNUTAR"; then
30054   { echo "$as_me:$LINENO: result: $GNUTAR" >&5
30055 echo "${ECHO_T}$GNUTAR" >&6; }
30056 else
30057   { echo "$as_me:$LINENO: result: no" >&5
30058 echo "${ECHO_T}no" >&6; }
30059 fi
30060
30061
30062   test -n "$GNUTAR" && break
30063 done
30064
30065             if test -n "$GNUTAR"; then
30066               case "`\"$GNUTAR\" --version 2>&1`" in
30067                *GNU*tar* | *Free*paxutils* )
30068                             # OK, it is GNU tar
30069                             break
30070                             ;;
30071                *)
30072                             # warning..
30073
30074     { echo "$as_me:$LINENO: WARNING: $GNUTAR is not GNU tar, so it will not be used." >&5
30075 echo "$as_me: WARNING: $GNUTAR is not GNU tar, so it will not be used." >&2;}
30076
30077
30078     cat <<AAW_EOF >>config.warnings
30079 $GNUTAR is not GNU tar, so it will not be used.
30080 AAW_EOF
30081
30082
30083                             # reset the cache for GNUTAR so AC_PATH_PROGS will search again
30084                             GNUTAR=''
30085                             unset ac_cv_path_GNUTAR
30086                             ;;
30087               esac
30088             fi
30089         done
30090     fi
30091
30092     if test "x$GNUTAR" != "x"; then
30093         # define unquoted
30094
30095 cat >>confdefs.h <<_ACEOF
30096 #define GNUTAR "$GNUTAR"
30097 _ACEOF
30098
30099     fi
30100
30101
30102
30103
30104
30105
30106
30107 # Check whether --with-smbclient was given.
30108 if test "${with_smbclient+set}" = set; then
30109   withval=$with_smbclient;
30110             case "$withval" in
30111                 /*) SAMBA_CLIENT="$withval";;
30112                 y|ye|yes) :;;
30113                 n|no) SAMBA_CLIENT=no ;;
30114                 *)  { { echo "$as_me:$LINENO: error: *** You must supply a full pathname to --with-smbclient" >&5
30115 echo "$as_me: error: *** You must supply a full pathname to --with-smbclient" >&2;}
30116    { (exit 1); exit 1; }; };;
30117             esac
30118
30119
30120 fi
30121
30122
30123
30124 # Check whether --with-samba-user was given.
30125 if test "${with_samba_user+set}" = set; then
30126   withval=$with_samba_user;  { { echo "$as_me:$LINENO: error: --with-samba-user is no longer supported; place username in 'amandapass'" >&5
30127 echo "$as_me: error: --with-samba-user is no longer supported; place username in 'amandapass'" >&2;}
30128    { (exit 1); exit 1; }; }
30129
30130 fi
30131
30132
30133     if test "x$SAMBA_CLIENT" != "xno"; then
30134       # Extract the first word of "smbclient", so it can be a program name with args.
30135 set dummy smbclient; ac_word=$2
30136 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30138 if test "${ac_cv_path_SAMBA_CLIENT+set}" = set; then
30139   echo $ECHO_N "(cached) $ECHO_C" >&6
30140 else
30141   case $SAMBA_CLIENT in
30142   [\\/]* | ?:[\\/]*)
30143   ac_cv_path_SAMBA_CLIENT="$SAMBA_CLIENT" # Let the user override the test with a path.
30144   ;;
30145   *)
30146   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30147 for as_dir in $LOCSYSPATH
30148 do
30149   IFS=$as_save_IFS
30150   test -z "$as_dir" && as_dir=.
30151   for ac_exec_ext in '' $ac_executable_extensions; do
30152   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30153     ac_cv_path_SAMBA_CLIENT="$as_dir/$ac_word$ac_exec_ext"
30154     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30155     break 2
30156   fi
30157 done
30158 done
30159 IFS=$as_save_IFS
30160
30161   ;;
30162 esac
30163 fi
30164 SAMBA_CLIENT=$ac_cv_path_SAMBA_CLIENT
30165 if test -n "$SAMBA_CLIENT"; then
30166   { echo "$as_me:$LINENO: result: $SAMBA_CLIENT" >&5
30167 echo "${ECHO_T}$SAMBA_CLIENT" >&6; }
30168 else
30169   { echo "$as_me:$LINENO: result: no" >&5
30170 echo "${ECHO_T}no" >&6; }
30171 fi
30172
30173
30174       smbversion=0
30175       if test ! -z "$SAMBA_CLIENT"; then
30176         case "`\"$SAMBA_CLIENT\" '\\\\not.a.host.name\\notashare' -U nosuchuser -N -Tx /dev/null 2>&1`" in
30177         *"Unknown host"*)
30178                       smbversion=1
30179                       ;;
30180         *"Connection to not.a.host.name failed"*)
30181                       smbversion=2
30182                       ;;
30183         *)
30184
30185     { echo "$as_me:$LINENO: WARNING: $SAMBA_CLIENT does not seem to be smbclient, so it will not be used." >&5
30186 echo "$as_me: WARNING: $SAMBA_CLIENT does not seem to be smbclient, so it will not be used." >&2;}
30187
30188
30189     cat <<AAW_EOF >>config.warnings
30190 $SAMBA_CLIENT does not seem to be smbclient, so it will not be used.
30191 AAW_EOF
30192
30193
30194                       SAMBA_CLIENT=
30195                       ;;
30196         esac
30197         if test -n "$SAMBA_CLIENT"; then
30198
30199 cat >>confdefs.h <<_ACEOF
30200 #define SAMBA_CLIENT "$SAMBA_CLIENT"
30201 _ACEOF
30202
30203
30204 cat >>confdefs.h <<_ACEOF
30205 #define SAMBA_VERSION $smbversion
30206 _ACEOF
30207
30208         fi
30209       fi
30210     fi
30211
30212      if test -n "$SAMBA_CLIENT"; then
30213   WANT_SAMBA_TRUE=
30214   WANT_SAMBA_FALSE='#'
30215 else
30216   WANT_SAMBA_TRUE='#'
30217   WANT_SAMBA_FALSE=
30218 fi
30219
30220
30221
30222     USE_RUNDUMP=no
30223
30224     # some systems require rundump unconditionally
30225     case "$target" in
30226         *-ultrix*) USE_RUNDUMP=yes ;;
30227         *-dg-*) USE_RUNDUMP=yes ;;
30228     esac
30229
30230
30231 # Check whether --with-rundump was given.
30232 if test "${with_rundump+set}" = set; then
30233   withval=$with_rundump;
30234         case "$withval" in
30235             n | no) USE_RUNDUMP=no ;;
30236             y | ye | yes) USE_RUNDUMP=yes ;;
30237             *) { { echo "$as_me:$LINENO: error: You must not supply an argument to --with-rundump option." >&5
30238 echo "$as_me: error: You must not supply an argument to --with-rundump option." >&2;}
30239    { (exit 1); exit 1; }; };;
30240         esac
30241
30242 fi
30243
30244
30245     if test x"$USE_RUNDUMP" = x"yes"; then
30246
30247 cat >>confdefs.h <<\_ACEOF
30248 #define USE_RUNDUMP 1
30249 _ACEOF
30250
30251     fi
30252
30253
30254 #
30255 # Look for other programs Amanda will use
30256 #
30257
30258
30259     # Extract the first word of "grep", so it can be a program name with args.
30260 set dummy grep; ac_word=$2
30261 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30262 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30263 if test "${ac_cv_path_GREP+set}" = set; then
30264   echo $ECHO_N "(cached) $ECHO_C" >&6
30265 else
30266   case $GREP in
30267   [\\/]* | ?:[\\/]*)
30268   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
30269   ;;
30270   *)
30271   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30272 for as_dir in $LOCSYSPATH
30273 do
30274   IFS=$as_save_IFS
30275   test -z "$as_dir" && as_dir=.
30276   for ac_exec_ext in '' $ac_executable_extensions; do
30277   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30278     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
30279     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30280     break 2
30281   fi
30282 done
30283 done
30284 IFS=$as_save_IFS
30285
30286   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
30287   ;;
30288 esac
30289 fi
30290 GREP=$ac_cv_path_GREP
30291 if test -n "$GREP"; then
30292   { echo "$as_me:$LINENO: result: $GREP" >&5
30293 echo "${ECHO_T}$GREP" >&6; }
30294 else
30295   { echo "$as_me:$LINENO: result: no" >&5
30296 echo "${ECHO_T}no" >&6; }
30297 fi
30298
30299
30300
30301 cat >>confdefs.h <<_ACEOF
30302 #define GREP "$GREP"
30303 _ACEOF
30304
30305
30306 { echo "$as_me:$LINENO: checking for egrep" >&5
30307 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
30308 if test "${ac_cv_path_EGREP+set}" = set; then
30309   echo $ECHO_N "(cached) $ECHO_C" >&6
30310 else
30311   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
30312    then ac_cv_path_EGREP="$GREP -E"
30313    else
30314      # Extract the first word of "egrep" to use in msg output
30315 if test -z "$EGREP"; then
30316 set dummy egrep; ac_prog_name=$2
30317 if test "${ac_cv_path_EGREP+set}" = set; then
30318   echo $ECHO_N "(cached) $ECHO_C" >&6
30319 else
30320   ac_path_EGREP_found=false
30321 # Loop through the user's path and test for each of PROGNAME-LIST
30322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30323 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
30324 do
30325   IFS=$as_save_IFS
30326   test -z "$as_dir" && as_dir=.
30327   for ac_prog in egrep; do
30328   for ac_exec_ext in '' $ac_executable_extensions; do
30329     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
30330     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
30331     # Check for GNU ac_path_EGREP and select it if it is found.
30332   # Check for GNU $ac_path_EGREP
30333 case `"$ac_path_EGREP" --version 2>&1` in
30334 *GNU*)
30335   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
30336 *)
30337   ac_count=0
30338   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
30339   while :
30340   do
30341     cat "conftest.in" "conftest.in" >"conftest.tmp"
30342     mv "conftest.tmp" "conftest.in"
30343     cp "conftest.in" "conftest.nl"
30344     echo 'EGREP' >> "conftest.nl"
30345     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
30346     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
30347     ac_count=`expr $ac_count + 1`
30348     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
30349       # Best one so far, save it but keep looking for a better one
30350       ac_cv_path_EGREP="$ac_path_EGREP"
30351       ac_path_EGREP_max=$ac_count
30352     fi
30353     # 10*(2^10) chars as input seems more than enough
30354     test $ac_count -gt 10 && break
30355   done
30356   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
30357 esac
30358
30359
30360     $ac_path_EGREP_found && break 3
30361   done
30362 done
30363
30364 done
30365 IFS=$as_save_IFS
30366
30367
30368 fi
30369
30370 EGREP="$ac_cv_path_EGREP"
30371 if test -z "$EGREP"; then
30372   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
30373 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
30374    { (exit 1); exit 1; }; }
30375 fi
30376
30377 else
30378   ac_cv_path_EGREP=$EGREP
30379 fi
30380
30381
30382    fi
30383 fi
30384 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
30385 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
30386  EGREP="$ac_cv_path_EGREP"
30387
30388
30389
30390
30391
30392
30393     # Extract the first word of "lint", so it can be a program name with args.
30394 set dummy lint; ac_word=$2
30395 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30396 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30397 if test "${ac_cv_path_AMLINT+set}" = set; then
30398   echo $ECHO_N "(cached) $ECHO_C" >&6
30399 else
30400   case $AMLINT in
30401   [\\/]* | ?:[\\/]*)
30402   ac_cv_path_AMLINT="$AMLINT" # Let the user override the test with a path.
30403   ;;
30404   *)
30405   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30406 as_dummy="/opt/SUNWspro/bin:$SYSLOCPATH"
30407 for as_dir in $as_dummy
30408 do
30409   IFS=$as_save_IFS
30410   test -z "$as_dir" && as_dir=.
30411   for ac_exec_ext in '' $ac_executable_extensions; do
30412   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30413     ac_cv_path_AMLINT="$as_dir/$ac_word$ac_exec_ext"
30414     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30415     break 2
30416   fi
30417 done
30418 done
30419 IFS=$as_save_IFS
30420
30421   ;;
30422 esac
30423 fi
30424 AMLINT=$ac_cv_path_AMLINT
30425 if test -n "$AMLINT"; then
30426   { echo "$as_me:$LINENO: result: $AMLINT" >&5
30427 echo "${ECHO_T}$AMLINT" >&6; }
30428 else
30429   { echo "$as_me:$LINENO: result: no" >&5
30430 echo "${ECHO_T}no" >&6; }
30431 fi
30432
30433
30434     if test ! -z "$AMLINT"; then
30435       $AMLINT -flags 2>&1 | $GREP -- '-errfmt=' > /dev/null
30436       if test $? -eq 0; then
30437         AMLINTFLAGS="-n -s -u -m -x"
30438         AMLINTFLAGS="$AMLINTFLAGS -errchk=%all"
30439         AMLINTFLAGS="$AMLINTFLAGS -errfmt=macro"
30440         AMLINTFLAGS="$AMLINTFLAGS -errhdr=no%/usr/include"
30441         AMLINTFLAGS="$AMLINTFLAGS -errhdr=%user"
30442         AMLINTFLAGS="$AMLINTFLAGS -errsecurity=extended"
30443         AMLINTFLAGS="$AMLINTFLAGS -errtags=yes"
30444         AMLINTFLAGS="$AMLINTFLAGS -Ncheck=%all"
30445         AMLINTFLAGS="$AMLINTFLAGS -Nlevel=2"
30446         AMLINTFLAGS="$AMLINTFLAGS -erroff=E_ASGN_NEVER_USED"
30447         AMLINTFLAGS="$AMLINTFLAGS,E_ASGN_RESET"
30448         AMLINTFLAGS="$AMLINTFLAGS,E_CAST_INT_CONST_TO_SMALL_INT"
30449         AMLINTFLAGS="$AMLINTFLAGS,E_CAST_INT_TO_SMALL_INT"
30450         AMLINTFLAGS="$AMLINTFLAGS,E_CAST_UINT_TO_SIGNED_INT"
30451         AMLINTFLAGS="$AMLINTFLAGS,E_CONSTANT_CONDITION"
30452         AMLINTFLAGS="$AMLINTFLAGS,E_ENUM_UNUSE"
30453         AMLINTFLAGS="$AMLINTFLAGS,E_EXPR_NULL_EFFECT"
30454         AMLINTFLAGS="$AMLINTFLAGS,E_FUNC_RET_ALWAYS_IGNOR"
30455         AMLINTFLAGS="$AMLINTFLAGS,E_FUNC_RET_MAYBE_IGNORED"
30456         AMLINTFLAGS="$AMLINTFLAGS,E_H_C_CHECK0"
30457         AMLINTFLAGS="$AMLINTFLAGS,E_H_C_CHECK1"
30458         AMLINTFLAGS="$AMLINTFLAGS,E_H_C_CHECK2"
30459         AMLINTFLAGS="$AMLINTFLAGS,E_INCL_MNUSD"
30460         AMLINTFLAGS="$AMLINTFLAGS,E_INCL_NUSD"
30461         AMLINTFLAGS="$AMLINTFLAGS,E_MCR_NODIFF"
30462         AMLINTFLAGS="$AMLINTFLAGS,E_NAME_MULTIPLY_DEF"
30463         AMLINTFLAGS="$AMLINTFLAGS,E_P_REF_NULL_PSBL"
30464         AMLINTFLAGS="$AMLINTFLAGS,E_P_REF_SUSP"
30465         AMLINTFLAGS="$AMLINTFLAGS,E_PTRDIFF_OVERFLOW"
30466         AMLINTFLAGS="$AMLINTFLAGS,E_P_USE_NULL_PSBL"
30467         AMLINTFLAGS="$AMLINTFLAGS,E_P_USE_SUSP"
30468         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_ACCESS_WARN"
30469         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_CHDIR_WARN"
30470         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_CHMOD_WARN"
30471         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_CREAT_WITHOUT_EXCL"
30472         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_EXEC_PATH"
30473         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_EXEC_WARN"
30474         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_FOPEN_MODE"
30475         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_GETENV_WARN"
30476         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_MKDIR_WARN"
30477         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_PRINTF_VAR_FMT"
30478         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_RAND_WARN"
30479         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_SCANF_VAR_FMT"
30480         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_SELECT_WARN"
30481         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_SHELL_WARN"
30482         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_STRNCPY_WARN"
30483         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_UMASK_WARN"
30484         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_USE_AFTER_STAT"
30485         AMLINTFLAGS="$AMLINTFLAGS,E_SIGN_EXTENSION_PSBL"
30486         AMLINTFLAGS="$AMLINTFLAGS,E_TYPEDEF_UNUSE"
30487         AMLINTFLAGS="$AMLINTFLAGS,E_UNCAL_F"
30488       else
30489         AMLINTFLAGS=""
30490       fi
30491     else
30492       # Extract the first word of "splint", so it can be a program name with args.
30493 set dummy splint; ac_word=$2
30494 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30495 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30496 if test "${ac_cv_path_AMLINT+set}" = set; then
30497   echo $ECHO_N "(cached) $ECHO_C" >&6
30498 else
30499   case $AMLINT in
30500   [\\/]* | ?:[\\/]*)
30501   ac_cv_path_AMLINT="$AMLINT" # Let the user override the test with a path.
30502   ;;
30503   *)
30504   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30505 for as_dir in $SYSLOCPATH
30506 do
30507   IFS=$as_save_IFS
30508   test -z "$as_dir" && as_dir=.
30509   for ac_exec_ext in '' $ac_executable_extensions; do
30510   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30511     ac_cv_path_AMLINT="$as_dir/$ac_word$ac_exec_ext"
30512     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30513     break 2
30514   fi
30515 done
30516 done
30517 IFS=$as_save_IFS
30518
30519   ;;
30520 esac
30521 fi
30522 AMLINT=$ac_cv_path_AMLINT
30523 if test -n "$AMLINT"; then
30524   { echo "$as_me:$LINENO: result: $AMLINT" >&5
30525 echo "${ECHO_T}$AMLINT" >&6; }
30526 else
30527   { echo "$as_me:$LINENO: result: no" >&5
30528 echo "${ECHO_T}no" >&6; }
30529 fi
30530
30531
30532       if test ! -z "$AMLINT"; then
30533         AMLINT="splint"
30534       else
30535         AMLINT='echo "Error: LINT is not installed" ; false'
30536       fi
30537       AMLINTFLAGS='+show-scan +unixlib -weak -globs +usedef +usereleased +impouts -paramimptemp -varuse -warnposix -redef -preproc -fixedformalarray -retval -unrecog -usevarargs -formatcode'
30538     fi
30539
30540
30541 for ac_prog in flex lex
30542 do
30543   # Extract the first word of "$ac_prog", so it can be a program name with args.
30544 set dummy $ac_prog; ac_word=$2
30545 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30546 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30547 if test "${ac_cv_prog_LEX+set}" = set; then
30548   echo $ECHO_N "(cached) $ECHO_C" >&6
30549 else
30550   if test -n "$LEX"; then
30551   ac_cv_prog_LEX="$LEX" # Let the user override the test.
30552 else
30553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30554 for as_dir in $PATH
30555 do
30556   IFS=$as_save_IFS
30557   test -z "$as_dir" && as_dir=.
30558   for ac_exec_ext in '' $ac_executable_extensions; do
30559   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30560     ac_cv_prog_LEX="$ac_prog"
30561     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30562     break 2
30563   fi
30564 done
30565 done
30566 IFS=$as_save_IFS
30567
30568 fi
30569 fi
30570 LEX=$ac_cv_prog_LEX
30571 if test -n "$LEX"; then
30572   { echo "$as_me:$LINENO: result: $LEX" >&5
30573 echo "${ECHO_T}$LEX" >&6; }
30574 else
30575   { echo "$as_me:$LINENO: result: no" >&5
30576 echo "${ECHO_T}no" >&6; }
30577 fi
30578
30579
30580   test -n "$LEX" && break
30581 done
30582 test -n "$LEX" || LEX=":"
30583
30584 if test "x$LEX" != "x:"; then
30585   cat >conftest.l <<_ACEOF
30586 %%
30587 a { ECHO; }
30588 b { REJECT; }
30589 c { yymore (); }
30590 d { yyless (1); }
30591 e { yyless (input () != 0); }
30592 f { unput (yytext[0]); }
30593 . { BEGIN INITIAL; }
30594 %%
30595 #ifdef YYTEXT_POINTER
30596 extern char *yytext;
30597 #endif
30598 int
30599 main (void)
30600 {
30601   return ! yylex () + ! yywrap ();
30602 }
30603 _ACEOF
30604 { (ac_try="$LEX conftest.l"
30605 case "(($ac_try" in
30606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30607   *) ac_try_echo=$ac_try;;
30608 esac
30609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30610   (eval "$LEX conftest.l") 2>&5
30611   ac_status=$?
30612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30613   (exit $ac_status); }
30614 { echo "$as_me:$LINENO: checking lex output file root" >&5
30615 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
30616 if test "${ac_cv_prog_lex_root+set}" = set; then
30617   echo $ECHO_N "(cached) $ECHO_C" >&6
30618 else
30619
30620 if test -f lex.yy.c; then
30621   ac_cv_prog_lex_root=lex.yy
30622 elif test -f lexyy.c; then
30623   ac_cv_prog_lex_root=lexyy
30624 else
30625   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
30626 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
30627    { (exit 1); exit 1; }; }
30628 fi
30629 fi
30630 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
30631 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
30632 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
30633
30634 if test -z "${LEXLIB+set}"; then
30635   { echo "$as_me:$LINENO: checking lex library" >&5
30636 echo $ECHO_N "checking lex library... $ECHO_C" >&6; }
30637 if test "${ac_cv_lib_lex+set}" = set; then
30638   echo $ECHO_N "(cached) $ECHO_C" >&6
30639 else
30640
30641     ac_save_LIBS=$LIBS
30642     ac_cv_lib_lex='none needed'
30643     for ac_lib in '' -lfl -ll; do
30644       LIBS="$ac_lib $ac_save_LIBS"
30645       cat >conftest.$ac_ext <<_ACEOF
30646 `cat $LEX_OUTPUT_ROOT.c`
30647 _ACEOF
30648 rm -f conftest.$ac_objext conftest$ac_exeext
30649 if { (ac_try="$ac_link"
30650 case "(($ac_try" in
30651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30652   *) ac_try_echo=$ac_try;;
30653 esac
30654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30655   (eval "$ac_link") 2>conftest.er1
30656   ac_status=$?
30657   grep -v '^ *+' conftest.er1 >conftest.err
30658   rm -f conftest.er1
30659   cat conftest.err >&5
30660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30661   (exit $ac_status); } && {
30662          test -z "$ac_c_werror_flag" ||
30663          test ! -s conftest.err
30664        } && test -s conftest$ac_exeext &&
30665        $as_test_x conftest$ac_exeext; then
30666   ac_cv_lib_lex=$ac_lib
30667 else
30668   echo "$as_me: failed program was:" >&5
30669 sed 's/^/| /' conftest.$ac_ext >&5
30670
30671
30672 fi
30673
30674 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30675       conftest$ac_exeext conftest.$ac_ext
30676       test "$ac_cv_lib_lex" != 'none needed' && break
30677     done
30678     LIBS=$ac_save_LIBS
30679
30680 fi
30681 { echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
30682 echo "${ECHO_T}$ac_cv_lib_lex" >&6; }
30683   test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
30684 fi
30685
30686
30687 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
30688 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
30689 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
30690   echo $ECHO_N "(cached) $ECHO_C" >&6
30691 else
30692   # POSIX says lex can declare yytext either as a pointer or an array; the
30693 # default is implementation-dependent.  Figure out which it is, since
30694 # not all implementations provide the %pointer and %array declarations.
30695 ac_cv_prog_lex_yytext_pointer=no
30696 ac_save_LIBS=$LIBS
30697 LIBS="$LEXLIB $ac_save_LIBS"
30698 cat >conftest.$ac_ext <<_ACEOF
30699 #define YYTEXT_POINTER 1
30700 `cat $LEX_OUTPUT_ROOT.c`
30701 _ACEOF
30702 rm -f conftest.$ac_objext conftest$ac_exeext
30703 if { (ac_try="$ac_link"
30704 case "(($ac_try" in
30705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30706   *) ac_try_echo=$ac_try;;
30707 esac
30708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30709   (eval "$ac_link") 2>conftest.er1
30710   ac_status=$?
30711   grep -v '^ *+' conftest.er1 >conftest.err
30712   rm -f conftest.er1
30713   cat conftest.err >&5
30714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30715   (exit $ac_status); } && {
30716          test -z "$ac_c_werror_flag" ||
30717          test ! -s conftest.err
30718        } && test -s conftest$ac_exeext &&
30719        $as_test_x conftest$ac_exeext; then
30720   ac_cv_prog_lex_yytext_pointer=yes
30721 else
30722   echo "$as_me: failed program was:" >&5
30723 sed 's/^/| /' conftest.$ac_ext >&5
30724
30725
30726 fi
30727
30728 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30729       conftest$ac_exeext conftest.$ac_ext
30730 LIBS=$ac_save_LIBS
30731
30732 fi
30733 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
30734 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
30735 if test $ac_cv_prog_lex_yytext_pointer = yes; then
30736
30737 cat >>confdefs.h <<\_ACEOF
30738 #define YYTEXT_POINTER 1
30739 _ACEOF
30740
30741 fi
30742 rm -f conftest.l $LEX_OUTPUT_ROOT.c
30743
30744 fi
30745 if test "$LEX" = :; then
30746   LEX=${am_missing_run}flex
30747 fi
30748
30749
30750     # Extract the first word of "ar", so it can be a program name with args.
30751 set dummy ar; ac_word=$2
30752 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30753 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30754 if test "${ac_cv_path_AR+set}" = set; then
30755   echo $ECHO_N "(cached) $ECHO_C" >&6
30756 else
30757   case $AR in
30758   [\\/]* | ?:[\\/]*)
30759   ac_cv_path_AR="$AR" # Let the user override the test with a path.
30760   ;;
30761   *)
30762   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30763 for as_dir in $LOCSYSPATH
30764 do
30765   IFS=$as_save_IFS
30766   test -z "$as_dir" && as_dir=.
30767   for ac_exec_ext in '' $ac_executable_extensions; do
30768   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30769     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
30770     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30771     break 2
30772   fi
30773 done
30774 done
30775 IFS=$as_save_IFS
30776
30777   ;;
30778 esac
30779 fi
30780 AR=$ac_cv_path_AR
30781 if test -n "$AR"; then
30782   { echo "$as_me:$LINENO: result: $AR" >&5
30783 echo "${ECHO_T}$AR" >&6; }
30784 else
30785   { echo "$as_me:$LINENO: result: no" >&5
30786 echo "${ECHO_T}no" >&6; }
30787 fi
30788
30789
30790
30791
30792
30793     # Extract the first word of "gettext", so it can be a program name with args.
30794 set dummy gettext; ac_word=$2
30795 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30796 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30797 if test "${ac_cv_path_GETTEXT+set}" = set; then
30798   echo $ECHO_N "(cached) $ECHO_C" >&6
30799 else
30800   case $GETTEXT in
30801   [\\/]* | ?:[\\/]*)
30802   ac_cv_path_GETTEXT="$GETTEXT" # Let the user override the test with a path.
30803   ;;
30804   *)
30805   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30806 for as_dir in $LOCSYSPATH
30807 do
30808   IFS=$as_save_IFS
30809   test -z "$as_dir" && as_dir=.
30810   for ac_exec_ext in '' $ac_executable_extensions; do
30811   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30812     ac_cv_path_GETTEXT="$as_dir/$ac_word$ac_exec_ext"
30813     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30814     break 2
30815   fi
30816 done
30817 done
30818 IFS=$as_save_IFS
30819
30820   ;;
30821 esac
30822 fi
30823 GETTEXT=$ac_cv_path_GETTEXT
30824 if test -n "$GETTEXT"; then
30825   { echo "$as_me:$LINENO: result: $GETTEXT" >&5
30826 echo "${ECHO_T}$GETTEXT" >&6; }
30827 else
30828   { echo "$as_me:$LINENO: result: no" >&5
30829 echo "${ECHO_T}no" >&6; }
30830 fi
30831
30832
30833
30834 for ac_prog in gawk mawk nawk awk
30835 do
30836   # Extract the first word of "$ac_prog", so it can be a program name with args.
30837 set dummy $ac_prog; ac_word=$2
30838 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30839 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30840 if test "${ac_cv_prog_AWK+set}" = set; then
30841   echo $ECHO_N "(cached) $ECHO_C" >&6
30842 else
30843   if test -n "$AWK"; then
30844   ac_cv_prog_AWK="$AWK" # Let the user override the test.
30845 else
30846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30847 for as_dir in $PATH
30848 do
30849   IFS=$as_save_IFS
30850   test -z "$as_dir" && as_dir=.
30851   for ac_exec_ext in '' $ac_executable_extensions; do
30852   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30853     ac_cv_prog_AWK="$ac_prog"
30854     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30855     break 2
30856   fi
30857 done
30858 done
30859 IFS=$as_save_IFS
30860
30861 fi
30862 fi
30863 AWK=$ac_cv_prog_AWK
30864 if test -n "$AWK"; then
30865   { echo "$as_me:$LINENO: result: $AWK" >&5
30866 echo "${ECHO_T}$AWK" >&6; }
30867 else
30868   { echo "$as_me:$LINENO: result: no" >&5
30869 echo "${ECHO_T}no" >&6; }
30870 fi
30871
30872
30873   test -n "$AWK" && break
30874 done
30875
30876 for ac_prog in 'bison -y' byacc
30877 do
30878   # Extract the first word of "$ac_prog", so it can be a program name with args.
30879 set dummy $ac_prog; ac_word=$2
30880 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30881 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30882 if test "${ac_cv_prog_YACC+set}" = set; then
30883   echo $ECHO_N "(cached) $ECHO_C" >&6
30884 else
30885   if test -n "$YACC"; then
30886   ac_cv_prog_YACC="$YACC" # Let the user override the test.
30887 else
30888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30889 for as_dir in $PATH
30890 do
30891   IFS=$as_save_IFS
30892   test -z "$as_dir" && as_dir=.
30893   for ac_exec_ext in '' $ac_executable_extensions; do
30894   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30895     ac_cv_prog_YACC="$ac_prog"
30896     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30897     break 2
30898   fi
30899 done
30900 done
30901 IFS=$as_save_IFS
30902
30903 fi
30904 fi
30905 YACC=$ac_cv_prog_YACC
30906 if test -n "$YACC"; then
30907   { echo "$as_me:$LINENO: result: $YACC" >&5
30908 echo "${ECHO_T}$YACC" >&6; }
30909 else
30910   { echo "$as_me:$LINENO: result: no" >&5
30911 echo "${ECHO_T}no" >&6; }
30912 fi
30913
30914
30915   test -n "$YACC" && break
30916 done
30917 test -n "$YACC" || YACC="yacc"
30918
30919 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
30920 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
30921 if test -z "$MKDIR_P"; then
30922   if test "${ac_cv_path_mkdir+set}" = set; then
30923   echo $ECHO_N "(cached) $ECHO_C" >&6
30924 else
30925   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30926 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
30927 do
30928   IFS=$as_save_IFS
30929   test -z "$as_dir" && as_dir=.
30930   for ac_prog in mkdir gmkdir; do
30931          for ac_exec_ext in '' $ac_executable_extensions; do
30932            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
30933            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
30934              'mkdir (GNU coreutils) '* | \
30935              'mkdir (coreutils) '* | \
30936              'mkdir (fileutils) '4.1*)
30937                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
30938                break 3;;
30939            esac
30940          done
30941        done
30942 done
30943 IFS=$as_save_IFS
30944
30945 fi
30946
30947   if test "${ac_cv_path_mkdir+set}" = set; then
30948     MKDIR_P="$ac_cv_path_mkdir -p"
30949   else
30950     # As a last resort, use the slow shell script.  Don't cache a
30951     # value for MKDIR_P within a source directory, because that will
30952     # break other packages using the cache if that directory is
30953     # removed, or if the value is a relative name.
30954     test -d ./--version && rmdir ./--version
30955     MKDIR_P="$ac_install_sh -d"
30956   fi
30957 fi
30958 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
30959 echo "${ECHO_T}$MKDIR_P" >&6; }
30960
30961
30962
30963     # Extract the first word of "dd", so it can be a program name with args.
30964 set dummy dd; ac_word=$2
30965 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30966 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30967 if test "${ac_cv_path_DD+set}" = set; then
30968   echo $ECHO_N "(cached) $ECHO_C" >&6
30969 else
30970   case $DD in
30971   [\\/]* | ?:[\\/]*)
30972   ac_cv_path_DD="$DD" # Let the user override the test with a path.
30973   ;;
30974   *)
30975   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30976 for as_dir in $LOCSYSPATH
30977 do
30978   IFS=$as_save_IFS
30979   test -z "$as_dir" && as_dir=.
30980   for ac_exec_ext in '' $ac_executable_extensions; do
30981   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30982     ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
30983     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30984     break 2
30985   fi
30986 done
30987 done
30988 IFS=$as_save_IFS
30989
30990   ;;
30991 esac
30992 fi
30993 DD=$ac_cv_path_DD
30994 if test -n "$DD"; then
30995   { echo "$as_me:$LINENO: result: $DD" >&5
30996 echo "${ECHO_T}$DD" >&6; }
30997 else
30998   { echo "$as_me:$LINENO: result: no" >&5
30999 echo "${ECHO_T}no" >&6; }
31000 fi
31001
31002
31003
31004
31005
31006     # Extract the first word of "bash", so it can be a program name with args.
31007 set dummy bash; ac_word=$2
31008 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31009 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31010 if test "${ac_cv_path_BASH+set}" = set; then
31011   echo $ECHO_N "(cached) $ECHO_C" >&6
31012 else
31013   case $BASH in
31014   [\\/]* | ?:[\\/]*)
31015   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
31016   ;;
31017   *)
31018   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31019 for as_dir in $SYSPATH
31020 do
31021   IFS=$as_save_IFS
31022   test -z "$as_dir" && as_dir=.
31023   for ac_exec_ext in '' $ac_executable_extensions; do
31024   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31025     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
31026     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31027     break 2
31028   fi
31029 done
31030 done
31031 IFS=$as_save_IFS
31032
31033   ;;
31034 esac
31035 fi
31036 BASH=$ac_cv_path_BASH
31037 if test -n "$BASH"; then
31038   { echo "$as_me:$LINENO: result: $BASH" >&5
31039 echo "${ECHO_T}$BASH" >&6; }
31040 else
31041   { echo "$as_me:$LINENO: result: no" >&5
31042 echo "${ECHO_T}no" >&6; }
31043 fi
31044
31045
31046
31047
31048
31049
31050
31051     # Extract the first word of "sort", so it can be a program name with args.
31052 set dummy sort; ac_word=$2
31053 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31054 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31055 if test "${ac_cv_path_SORT+set}" = set; then
31056   echo $ECHO_N "(cached) $ECHO_C" >&6
31057 else
31058   case $SORT in
31059   [\\/]* | ?:[\\/]*)
31060   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
31061   ;;
31062   *)
31063   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31064 for as_dir in $LOCSYSPATH
31065 do
31066   IFS=$as_save_IFS
31067   test -z "$as_dir" && as_dir=.
31068   for ac_exec_ext in '' $ac_executable_extensions; do
31069   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31070     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
31071     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31072     break 2
31073   fi
31074 done
31075 done
31076 IFS=$as_save_IFS
31077
31078   test -z "$ac_cv_path_SORT" && ac_cv_path_SORT="NONE"
31079   ;;
31080 esac
31081 fi
31082 SORT=$ac_cv_path_SORT
31083 if test -n "$SORT"; then
31084   { echo "$as_me:$LINENO: result: $SORT" >&5
31085 echo "${ECHO_T}$SORT" >&6; }
31086 else
31087   { echo "$as_me:$LINENO: result: no" >&5
31088 echo "${ECHO_T}no" >&6; }
31089 fi
31090
31091
31092
31093     # sort is only needed in the server build
31094     if test x"$SORT" = x"NONE" && $WANT_SERVER; then
31095         { { echo "$as_me:$LINENO: error: Set SORT to the path of the sort program." >&5
31096 echo "$as_me: error: Set SORT to the path of the sort program." >&2;}
31097    { (exit 1); exit 1; }; }
31098     fi
31099
31100
31101 cat >>confdefs.h <<_ACEOF
31102 #define SORT_PATH "$SORT"
31103 _ACEOF
31104
31105
31106
31107
31108     for ac_prog in Mail mailx mail
31109 do
31110   # Extract the first word of "$ac_prog", so it can be a program name with args.
31111 set dummy $ac_prog; ac_word=$2
31112 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31113 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31114 if test "${ac_cv_path_MAILER+set}" = set; then
31115   echo $ECHO_N "(cached) $ECHO_C" >&6
31116 else
31117   case $MAILER in
31118   [\\/]* | ?:[\\/]*)
31119   ac_cv_path_MAILER="$MAILER" # Let the user override the test with a path.
31120   ;;
31121   *)
31122   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31123 for as_dir in $PATH
31124 do
31125   IFS=$as_save_IFS
31126   test -z "$as_dir" && as_dir=.
31127   for ac_exec_ext in '' $ac_executable_extensions; do
31128   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31129     ac_cv_path_MAILER="$as_dir/$ac_word$ac_exec_ext"
31130     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31131     break 2
31132   fi
31133 done
31134 done
31135 IFS=$as_save_IFS
31136
31137   ;;
31138 esac
31139 fi
31140 MAILER=$ac_cv_path_MAILER
31141 if test -n "$MAILER"; then
31142   { echo "$as_me:$LINENO: result: $MAILER" >&5
31143 echo "${ECHO_T}$MAILER" >&6; }
31144 else
31145   { echo "$as_me:$LINENO: result: no" >&5
31146 echo "${ECHO_T}no" >&6; }
31147 fi
31148
31149
31150   test -n "$MAILER" && break
31151 done
31152 test -n "$MAILER" || MAILER="NONE"
31153
31154     if test x"$MAILER" = x"NONE"; then
31155
31156     { echo "$as_me:$LINENO: WARNING: WARNING: Amanda cannot send mail reports without a mailer." >&5
31157 echo "$as_me: WARNING: WARNING: Amanda cannot send mail reports without a mailer." >&2;}
31158
31159
31160     cat <<AAW_EOF >>config.warnings
31161 WARNING: Amanda cannot send mail reports without a mailer.
31162 AAW_EOF
31163
31164
31165     else
31166
31167 cat >>confdefs.h <<_ACEOF
31168 #define MAILER "$MAILER"
31169 _ACEOF
31170
31171     fi
31172
31173
31174
31175     # Extract the first word of "mt", so it can be a program name with args.
31176 set dummy mt; ac_word=$2
31177 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31178 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31179 if test "${ac_cv_path_MT+set}" = set; then
31180   echo $ECHO_N "(cached) $ECHO_C" >&6
31181 else
31182   case $MT in
31183   [\\/]* | ?:[\\/]*)
31184   ac_cv_path_MT="$MT" # Let the user override the test with a path.
31185   ;;
31186   *)
31187   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31188 for as_dir in $LOCSYSPATH
31189 do
31190   IFS=$as_save_IFS
31191   test -z "$as_dir" && as_dir=.
31192   for ac_exec_ext in '' $ac_executable_extensions; do
31193   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31194     ac_cv_path_MT="$as_dir/$ac_word$ac_exec_ext"
31195     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31196     break 2
31197   fi
31198 done
31199 done
31200 IFS=$as_save_IFS
31201
31202   test -z "$ac_cv_path_MT" && ac_cv_path_MT="mt"
31203   ;;
31204 esac
31205 fi
31206 MT=$ac_cv_path_MT
31207 if test -n "$MT"; then
31208   { echo "$as_me:$LINENO: result: $MT" >&5
31209 echo "${ECHO_T}$MT" >&6; }
31210 else
31211   { echo "$as_me:$LINENO: result: no" >&5
31212 echo "${ECHO_T}no" >&6; }
31213 fi
31214
31215
31216
31217     case "$target" in
31218         *-hp-*) MT_FILE_FLAG="-t" ;;
31219         *) MT_FILE_FLAG="-f" ;;
31220     esac
31221
31222
31223
31224 cat >>confdefs.h <<_ACEOF
31225 #define MT_FILE_FLAG "$MT_FILE_FLAG"
31226 _ACEOF
31227
31228
31229
31230
31231
31232     for ac_prog in lpr lp
31233 do
31234   # Extract the first word of "$ac_prog", so it can be a program name with args.
31235 set dummy $ac_prog; ac_word=$2
31236 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31237 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31238 if test "${ac_cv_path_PRINT+set}" = set; then
31239   echo $ECHO_N "(cached) $ECHO_C" >&6
31240 else
31241   case $PRINT in
31242   [\\/]* | ?:[\\/]*)
31243   ac_cv_path_PRINT="$PRINT" # Let the user override the test with a path.
31244   ;;
31245   *)
31246   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31247 for as_dir in $PATH
31248 do
31249   IFS=$as_save_IFS
31250   test -z "$as_dir" && as_dir=.
31251   for ac_exec_ext in '' $ac_executable_extensions; do
31252   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31253     ac_cv_path_PRINT="$as_dir/$ac_word$ac_exec_ext"
31254     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31255     break 2
31256   fi
31257 done
31258 done
31259 IFS=$as_save_IFS
31260
31261   ;;
31262 esac
31263 fi
31264 PRINT=$ac_cv_path_PRINT
31265 if test -n "$PRINT"; then
31266   { echo "$as_me:$LINENO: result: $PRINT" >&5
31267 echo "${ECHO_T}$PRINT" >&6; }
31268 else
31269   { echo "$as_me:$LINENO: result: no" >&5
31270 echo "${ECHO_T}no" >&6; }
31271 fi
31272
31273
31274   test -n "$PRINT" && break
31275 done
31276
31277     if test ! -z "$PRINT"; then
31278
31279 cat >>confdefs.h <<_ACEOF
31280 #define LPRCMD "$PRINT"
31281 _ACEOF
31282
31283
31284         { echo "$as_me:$LINENO: checking which flag to use to select a printer" >&5
31285 echo $ECHO_N "checking which flag to use to select a printer... $ECHO_C" >&6; }
31286 if test "${amanda_cv_printer_flag+set}" = set; then
31287   echo $ECHO_N "(cached) $ECHO_C" >&6
31288 else
31289
31290             amanda_cv_printer_flag=$PRINTER_FLAG
31291             case "$PRINT" in
31292                 lpr|*/lpr) amanda_cv_printer_flag="-P";;
31293                 lp|*/lp) amanda_cv_printer_flag="-d";;
31294             esac
31295
31296 fi
31297 { echo "$as_me:$LINENO: result: $amanda_cv_printer_flag" >&5
31298 echo "${ECHO_T}$amanda_cv_printer_flag" >&6; }
31299         if test ! -z "$amanda_cv_printer_flag"; then
31300
31301 cat >>confdefs.h <<_ACEOF
31302 #define LPRFLAG "$amanda_cv_printer_flag"
31303 _ACEOF
31304
31305         else
31306
31307     { echo "$as_me:$LINENO: WARNING: WARNING: amanda will always print to the default printer" >&5
31308 echo "$as_me: WARNING: WARNING: amanda will always print to the default printer" >&2;}
31309
31310
31311     cat <<AAW_EOF >>config.warnings
31312 WARNING: amanda will always print to the default printer
31313 AAW_EOF
31314
31315
31316         fi
31317     fi
31318
31319
31320
31321     # Extract the first word of "pcat", so it can be a program name with args.
31322 set dummy pcat; ac_word=$2
31323 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31324 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31325 if test "${ac_cv_path_PCAT+set}" = set; then
31326   echo $ECHO_N "(cached) $ECHO_C" >&6
31327 else
31328   case $PCAT in
31329   [\\/]* | ?:[\\/]*)
31330   ac_cv_path_PCAT="$PCAT" # Let the user override the test with a path.
31331   ;;
31332   *)
31333   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31334 for as_dir in $LOCSYSPATH
31335 do
31336   IFS=$as_save_IFS
31337   test -z "$as_dir" && as_dir=.
31338   for ac_exec_ext in '' $ac_executable_extensions; do
31339   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31340     ac_cv_path_PCAT="$as_dir/$ac_word$ac_exec_ext"
31341     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31342     break 2
31343   fi
31344 done
31345 done
31346 IFS=$as_save_IFS
31347
31348   ;;
31349 esac
31350 fi
31351 PCAT=$ac_cv_path_PCAT
31352 if test -n "$PCAT"; then
31353   { echo "$as_me:$LINENO: result: $PCAT" >&5
31354 echo "${ECHO_T}$PCAT" >&6; }
31355 else
31356   { echo "$as_me:$LINENO: result: no" >&5
31357 echo "${ECHO_T}no" >&6; }
31358 fi
31359
31360
31361
31362
31363
31364     for ac_prog in perl5 perl
31365 do
31366   # Extract the first word of "$ac_prog", so it can be a program name with args.
31367 set dummy $ac_prog; ac_word=$2
31368 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31369 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31370 if test "${ac_cv_path_PERL+set}" = set; then
31371   echo $ECHO_N "(cached) $ECHO_C" >&6
31372 else
31373   case $PERL in
31374   [\\/]* | ?:[\\/]*)
31375   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
31376   ;;
31377   *)
31378   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31379 for as_dir in $LOCSYSPATH
31380 do
31381   IFS=$as_save_IFS
31382   test -z "$as_dir" && as_dir=.
31383   for ac_exec_ext in '' $ac_executable_extensions; do
31384   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31385     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
31386     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31387     break 2
31388   fi
31389 done
31390 done
31391 IFS=$as_save_IFS
31392
31393   ;;
31394 esac
31395 fi
31396 PERL=$ac_cv_path_PERL
31397 if test -n "$PERL"; then
31398   { echo "$as_me:$LINENO: result: $PERL" >&5
31399 echo "${ECHO_T}$PERL" >&6; }
31400 else
31401   { echo "$as_me:$LINENO: result: no" >&5
31402 echo "${ECHO_T}no" >&6; }
31403 fi
31404
31405
31406   test -n "$PERL" && break
31407 done
31408
31409
31410     # Make sure we have perl
31411 if test -z "$PERL"; then
31412 # Extract the first word of "perl", so it can be a program name with args.
31413 set dummy perl; ac_word=$2
31414 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31415 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31416 if test "${ac_cv_prog_PERL+set}" = set; then
31417   echo $ECHO_N "(cached) $ECHO_C" >&6
31418 else
31419   if test -n "$PERL"; then
31420   ac_cv_prog_PERL="$PERL" # Let the user override the test.
31421 else
31422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31423 for as_dir in $PATH
31424 do
31425   IFS=$as_save_IFS
31426   test -z "$as_dir" && as_dir=.
31427   for ac_exec_ext in '' $ac_executable_extensions; do
31428   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31429     ac_cv_prog_PERL="perl"
31430     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31431     break 2
31432   fi
31433 done
31434 done
31435 IFS=$as_save_IFS
31436
31437 fi
31438 fi
31439 PERL=$ac_cv_prog_PERL
31440 if test -n "$PERL"; then
31441   { echo "$as_me:$LINENO: result: $PERL" >&5
31442 echo "${ECHO_T}$PERL" >&6; }
31443 else
31444   { echo "$as_me:$LINENO: result: no" >&5
31445 echo "${ECHO_T}no" >&6; }
31446 fi
31447
31448
31449 fi
31450
31451 # Check if version of Perl is sufficient
31452 ac_perl_version="5.6.0"
31453
31454 if test "x$PERL" != "x"; then
31455   { echo "$as_me:$LINENO: checking for perl version greater than or equal to $ac_perl_version" >&5
31456 echo $ECHO_N "checking for perl version greater than or equal to $ac_perl_version... $ECHO_C" >&6; }
31457   # NB: It would be nice to log the error if there is one, but we cannot rely
31458   # on autoconf internals
31459   $PERL -e "use $ac_perl_version;" > /dev/null 2>&1
31460   if test $? -ne 0; then
31461     { echo "$as_me:$LINENO: result: no" >&5
31462 echo "${ECHO_T}no" >&6; };
31463
31464         { { echo "$as_me:$LINENO: error: Amanda requires at least perl 5.6.0" >&5
31465 echo "$as_me: error: Amanda requires at least perl 5.6.0" >&2;}
31466    { (exit 1); exit 1; }; }
31467
31468   else
31469     { echo "$as_me:$LINENO: result: ok" >&5
31470 echo "${ECHO_T}ok" >&6; };
31471
31472   fi
31473 else
31474   { echo "$as_me:$LINENO: WARNING: could not find perl" >&5
31475 echo "$as_me: WARNING: could not find perl" >&2;}
31476 fi
31477
31478
31479
31480
31481     for ac_prog in swig
31482 do
31483   # Extract the first word of "$ac_prog", so it can be a program name with args.
31484 set dummy $ac_prog; ac_word=$2
31485 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31486 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31487 if test "${ac_cv_path_SWIG+set}" = set; then
31488   echo $ECHO_N "(cached) $ECHO_C" >&6
31489 else
31490   case $SWIG in
31491   [\\/]* | ?:[\\/]*)
31492   ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
31493   ;;
31494   *)
31495   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31496 for as_dir in $LOCSYSPATH
31497 do
31498   IFS=$as_save_IFS
31499   test -z "$as_dir" && as_dir=.
31500   for ac_exec_ext in '' $ac_executable_extensions; do
31501   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31502     ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
31503     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31504     break 2
31505   fi
31506 done
31507 done
31508 IFS=$as_save_IFS
31509
31510   ;;
31511 esac
31512 fi
31513 SWIG=$ac_cv_path_SWIG
31514 if test -n "$SWIG"; then
31515   { echo "$as_me:$LINENO: result: $SWIG" >&5
31516 echo "${ECHO_T}$SWIG" >&6; }
31517 else
31518   { echo "$as_me:$LINENO: result: no" >&5
31519 echo "${ECHO_T}no" >&6; }
31520 fi
31521
31522
31523   test -n "$SWIG" && break
31524 done
31525
31526
31527
31528         # Extract the first word of "swig", so it can be a program name with args.
31529 set dummy swig; ac_word=$2
31530 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31531 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31532 if test "${ac_cv_path_SWIG+set}" = set; then
31533   echo $ECHO_N "(cached) $ECHO_C" >&6
31534 else
31535   case $SWIG in
31536   [\\/]* | ?:[\\/]*)
31537   ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
31538   ;;
31539   *)
31540   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31541 for as_dir in $PATH
31542 do
31543   IFS=$as_save_IFS
31544   test -z "$as_dir" && as_dir=.
31545   for ac_exec_ext in '' $ac_executable_extensions; do
31546   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31547     ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
31548     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31549     break 2
31550   fi
31551 done
31552 done
31553 IFS=$as_save_IFS
31554
31555   ;;
31556 esac
31557 fi
31558 SWIG=$ac_cv_path_SWIG
31559 if test -n "$SWIG"; then
31560   { echo "$as_me:$LINENO: result: $SWIG" >&5
31561 echo "${ECHO_T}$SWIG" >&6; }
31562 else
31563   { echo "$as_me:$LINENO: result: no" >&5
31564 echo "${ECHO_T}no" >&6; }
31565 fi
31566
31567
31568         if test -z "$SWIG" ; then
31569                 SWIG='echo "Error: SWIG is not installed. You should look at http://www.swig.org" ; false'
31570         elif test -n "1.3.28" ; then
31571                 { echo "$as_me:$LINENO: checking for SWIG version" >&5
31572 echo $ECHO_N "checking for SWIG version... $ECHO_C" >&6; }
31573                 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'`
31574                 { echo "$as_me:$LINENO: result: $swig_version" >&5
31575 echo "${ECHO_T}$swig_version" >&6; }
31576                 if test -n "$swig_version" ; then
31577                         # Calculate the required version number components
31578                         required=1.3.28
31579                         required_major=`echo $required | sed 's/[^0-9].*//'`
31580                         if test -z "$required_major" ; then
31581                                 required_major=0
31582                         fi
31583                         required=`echo $required | sed 's/[0-9]*[^0-9]//'`
31584                         required_minor=`echo $required | sed 's/[^0-9].*//'`
31585                         if test -z "$required_minor" ; then
31586                                 required_minor=0
31587                         fi
31588                         required=`echo $required | sed 's/[0-9]*[^0-9]//'`
31589                         required_patch=`echo $required | sed 's/[^0-9].*//'`
31590                         if test -z "$required_patch" ; then
31591                                 required_patch=0
31592                         fi
31593                         # Calculate the available version number components
31594                         available=$swig_version
31595                         available_major=`echo $available | sed 's/[^0-9].*//'`
31596                         if test -z "$available_major" ; then
31597                                 available_major=0
31598                         fi
31599                         available=`echo $available | sed 's/[0-9]*[^0-9]//'`
31600                         available_minor=`echo $available | sed 's/[^0-9].*//'`
31601                         if test -z "$available_minor" ; then
31602                                 available_minor=0
31603                         fi
31604                         available=`echo $available | sed 's/[0-9]*[^0-9]//'`
31605                         available_patch=`echo $available | sed 's/[^0-9].*//'`
31606                         if test -z "$available_patch" ; then
31607                                 available_patch=0
31608                         fi
31609                         if test $available_major -ne $required_major \
31610                                 -o $available_minor -ne $required_minor \
31611                                 -o $available_patch -lt $required_patch ; then
31612                                 SWIG='echo "Error: SWIG version >= 1.3.28 is required.  You have '"$swig_version"'.  You should look at http://www.swig.org" ; false'
31613                         else
31614                                 SWIG_LIB=`$SWIG -swiglib`
31615                         fi
31616                 else
31617                         SWIG='echo "Error: Cannot determine SWIG version.  You should look at http://www.swig.org" ; false'
31618                 fi
31619         fi
31620
31621
31622
31623
31624
31625 #
31626 # Compiler / system characteristics
31627 #
31628
31629 #
31630 # compiler
31631 #
31632 if test $ac_cv_c_compiler_gnu = yes; then
31633     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
31634 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
31635 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
31636   echo $ECHO_N "(cached) $ECHO_C" >&6
31637 else
31638     ac_pattern="Autoconf.*'x'"
31639   cat >conftest.$ac_ext <<_ACEOF
31640 /* confdefs.h.  */
31641 _ACEOF
31642 cat confdefs.h >>conftest.$ac_ext
31643 cat >>conftest.$ac_ext <<_ACEOF
31644 /* end confdefs.h.  */
31645 #include <sgtty.h>
31646 Autoconf TIOCGETP
31647 _ACEOF
31648 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31649   $EGREP "$ac_pattern" >/dev/null 2>&1; then
31650   ac_cv_prog_gcc_traditional=yes
31651 else
31652   ac_cv_prog_gcc_traditional=no
31653 fi
31654 rm -f conftest*
31655
31656
31657   if test $ac_cv_prog_gcc_traditional = no; then
31658     cat >conftest.$ac_ext <<_ACEOF
31659 /* confdefs.h.  */
31660 _ACEOF
31661 cat confdefs.h >>conftest.$ac_ext
31662 cat >>conftest.$ac_ext <<_ACEOF
31663 /* end confdefs.h.  */
31664 #include <termio.h>
31665 Autoconf TCGETA
31666 _ACEOF
31667 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31668   $EGREP "$ac_pattern" >/dev/null 2>&1; then
31669   ac_cv_prog_gcc_traditional=yes
31670 fi
31671 rm -f conftest*
31672
31673   fi
31674 fi
31675 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
31676 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
31677   if test $ac_cv_prog_gcc_traditional = yes; then
31678     CC="$CC -traditional"
31679   fi
31680 fi
31681
31682 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
31683 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
31684 if test "${ac_cv_c_const+set}" = set; then
31685   echo $ECHO_N "(cached) $ECHO_C" >&6
31686 else
31687   cat >conftest.$ac_ext <<_ACEOF
31688 /* confdefs.h.  */
31689 _ACEOF
31690 cat confdefs.h >>conftest.$ac_ext
31691 cat >>conftest.$ac_ext <<_ACEOF
31692 /* end confdefs.h.  */
31693
31694 int
31695 main ()
31696 {
31697 /* FIXME: Include the comments suggested by Paul. */
31698 #ifndef __cplusplus
31699   /* Ultrix mips cc rejects this.  */
31700   typedef int charset[2];
31701   const charset cs;
31702   /* SunOS 4.1.1 cc rejects this.  */
31703   char const *const *pcpcc;
31704   char **ppc;
31705   /* NEC SVR4.0.2 mips cc rejects this.  */
31706   struct point {int x, y;};
31707   static struct point const zero = {0,0};
31708   /* AIX XL C 1.02.0.0 rejects this.
31709      It does not let you subtract one const X* pointer from another in
31710      an arm of an if-expression whose if-part is not a constant
31711      expression */
31712   const char *g = "string";
31713   pcpcc = &g + (g ? g-g : 0);
31714   /* HPUX 7.0 cc rejects these. */
31715   ++pcpcc;
31716   ppc = (char**) pcpcc;
31717   pcpcc = (char const *const *) ppc;
31718   { /* SCO 3.2v4 cc rejects this.  */
31719     char *t;
31720     char const *s = 0 ? (char *) 0 : (char const *) 0;
31721
31722     *t++ = 0;
31723     if (s) return 0;
31724   }
31725   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
31726     int x[] = {25, 17};
31727     const int *foo = &x[0];
31728     ++foo;
31729   }
31730   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
31731     typedef const int *iptr;
31732     iptr p = 0;
31733     ++p;
31734   }
31735   { /* AIX XL C 1.02.0.0 rejects this saying
31736        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
31737     struct s { int j; const int *ap[3]; };
31738     struct s *b; b->j = 5;
31739   }
31740   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
31741     const int foo = 10;
31742     if (!foo) return 0;
31743   }
31744   return !cs[0] && !zero.x;
31745 #endif
31746
31747   ;
31748   return 0;
31749 }
31750 _ACEOF
31751 rm -f conftest.$ac_objext
31752 if { (ac_try="$ac_compile"
31753 case "(($ac_try" in
31754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31755   *) ac_try_echo=$ac_try;;
31756 esac
31757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31758   (eval "$ac_compile") 2>conftest.er1
31759   ac_status=$?
31760   grep -v '^ *+' conftest.er1 >conftest.err
31761   rm -f conftest.er1
31762   cat conftest.err >&5
31763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31764   (exit $ac_status); } && {
31765          test -z "$ac_c_werror_flag" ||
31766          test ! -s conftest.err
31767        } && test -s conftest.$ac_objext; then
31768   ac_cv_c_const=yes
31769 else
31770   echo "$as_me: failed program was:" >&5
31771 sed 's/^/| /' conftest.$ac_ext >&5
31772
31773         ac_cv_c_const=no
31774 fi
31775
31776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31777 fi
31778 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
31779 echo "${ECHO_T}$ac_cv_c_const" >&6; }
31780 if test $ac_cv_c_const = no; then
31781
31782 cat >>confdefs.h <<\_ACEOF
31783 #define const
31784 _ACEOF
31785
31786 fi
31787
31788 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
31789 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
31790 if test "${ac_cv_c_bigendian+set}" = set; then
31791   echo $ECHO_N "(cached) $ECHO_C" >&6
31792 else
31793   # See if sys/param.h defines the BYTE_ORDER macro.
31794 cat >conftest.$ac_ext <<_ACEOF
31795 /* confdefs.h.  */
31796 _ACEOF
31797 cat confdefs.h >>conftest.$ac_ext
31798 cat >>conftest.$ac_ext <<_ACEOF
31799 /* end confdefs.h.  */
31800 #include <sys/types.h>
31801 #include <sys/param.h>
31802
31803 int
31804 main ()
31805 {
31806 #if  ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
31807         && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
31808  bogus endian macros
31809 #endif
31810
31811   ;
31812   return 0;
31813 }
31814 _ACEOF
31815 rm -f conftest.$ac_objext
31816 if { (ac_try="$ac_compile"
31817 case "(($ac_try" in
31818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31819   *) ac_try_echo=$ac_try;;
31820 esac
31821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31822   (eval "$ac_compile") 2>conftest.er1
31823   ac_status=$?
31824   grep -v '^ *+' conftest.er1 >conftest.err
31825   rm -f conftest.er1
31826   cat conftest.err >&5
31827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31828   (exit $ac_status); } && {
31829          test -z "$ac_c_werror_flag" ||
31830          test ! -s conftest.err
31831        } && test -s conftest.$ac_objext; then
31832   # It does; now see whether it defined to BIG_ENDIAN or not.
31833 cat >conftest.$ac_ext <<_ACEOF
31834 /* confdefs.h.  */
31835 _ACEOF
31836 cat confdefs.h >>conftest.$ac_ext
31837 cat >>conftest.$ac_ext <<_ACEOF
31838 /* end confdefs.h.  */
31839 #include <sys/types.h>
31840 #include <sys/param.h>
31841
31842 int
31843 main ()
31844 {
31845 #if BYTE_ORDER != BIG_ENDIAN
31846  not big endian
31847 #endif
31848
31849   ;
31850   return 0;
31851 }
31852 _ACEOF
31853 rm -f conftest.$ac_objext
31854 if { (ac_try="$ac_compile"
31855 case "(($ac_try" in
31856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31857   *) ac_try_echo=$ac_try;;
31858 esac
31859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31860   (eval "$ac_compile") 2>conftest.er1
31861   ac_status=$?
31862   grep -v '^ *+' conftest.er1 >conftest.err
31863   rm -f conftest.er1
31864   cat conftest.err >&5
31865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31866   (exit $ac_status); } && {
31867          test -z "$ac_c_werror_flag" ||
31868          test ! -s conftest.err
31869        } && test -s conftest.$ac_objext; then
31870   ac_cv_c_bigendian=yes
31871 else
31872   echo "$as_me: failed program was:" >&5
31873 sed 's/^/| /' conftest.$ac_ext >&5
31874
31875         ac_cv_c_bigendian=no
31876 fi
31877
31878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31879 else
31880   echo "$as_me: failed program was:" >&5
31881 sed 's/^/| /' conftest.$ac_ext >&5
31882
31883         # It does not; compile a test program.
31884 if test "$cross_compiling" = yes; then
31885   # try to guess the endianness by grepping values into an object file
31886   ac_cv_c_bigendian=unknown
31887   cat >conftest.$ac_ext <<_ACEOF
31888 /* confdefs.h.  */
31889 _ACEOF
31890 cat confdefs.h >>conftest.$ac_ext
31891 cat >>conftest.$ac_ext <<_ACEOF
31892 /* end confdefs.h.  */
31893 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
31894 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
31895 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
31896 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
31897 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
31898 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
31899 int
31900 main ()
31901 {
31902  _ascii (); _ebcdic ();
31903   ;
31904   return 0;
31905 }
31906 _ACEOF
31907 rm -f conftest.$ac_objext
31908 if { (ac_try="$ac_compile"
31909 case "(($ac_try" in
31910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31911   *) ac_try_echo=$ac_try;;
31912 esac
31913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31914   (eval "$ac_compile") 2>conftest.er1
31915   ac_status=$?
31916   grep -v '^ *+' conftest.er1 >conftest.err
31917   rm -f conftest.er1
31918   cat conftest.err >&5
31919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31920   (exit $ac_status); } && {
31921          test -z "$ac_c_werror_flag" ||
31922          test ! -s conftest.err
31923        } && test -s conftest.$ac_objext; then
31924   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
31925   ac_cv_c_bigendian=yes
31926 fi
31927 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
31928   if test "$ac_cv_c_bigendian" = unknown; then
31929     ac_cv_c_bigendian=no
31930   else
31931     # finding both strings is unlikely to happen, but who knows?
31932     ac_cv_c_bigendian=unknown
31933   fi
31934 fi
31935 else
31936   echo "$as_me: failed program was:" >&5
31937 sed 's/^/| /' conftest.$ac_ext >&5
31938
31939
31940 fi
31941
31942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31943 else
31944   cat >conftest.$ac_ext <<_ACEOF
31945 /* confdefs.h.  */
31946 _ACEOF
31947 cat confdefs.h >>conftest.$ac_ext
31948 cat >>conftest.$ac_ext <<_ACEOF
31949 /* end confdefs.h.  */
31950 $ac_includes_default
31951 int
31952 main ()
31953 {
31954
31955   /* Are we little or big endian?  From Harbison&Steele.  */
31956   union
31957   {
31958     long int l;
31959     char c[sizeof (long int)];
31960   } u;
31961   u.l = 1;
31962   return u.c[sizeof (long int) - 1] == 1;
31963
31964   ;
31965   return 0;
31966 }
31967 _ACEOF
31968 rm -f conftest$ac_exeext
31969 if { (ac_try="$ac_link"
31970 case "(($ac_try" in
31971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31972   *) ac_try_echo=$ac_try;;
31973 esac
31974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31975   (eval "$ac_link") 2>&5
31976   ac_status=$?
31977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31978   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31979   { (case "(($ac_try" in
31980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31981   *) ac_try_echo=$ac_try;;
31982 esac
31983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31984   (eval "$ac_try") 2>&5
31985   ac_status=$?
31986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31987   (exit $ac_status); }; }; then
31988   ac_cv_c_bigendian=no
31989 else
31990   echo "$as_me: program exited with status $ac_status" >&5
31991 echo "$as_me: failed program was:" >&5
31992 sed 's/^/| /' conftest.$ac_ext >&5
31993
31994 ( exit $ac_status )
31995 ac_cv_c_bigendian=yes
31996 fi
31997 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31998 fi
31999
32000
32001 fi
32002
32003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32004 fi
32005 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
32006 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
32007 case $ac_cv_c_bigendian in
32008   yes)
32009
32010 cat >>confdefs.h <<\_ACEOF
32011 #define WORDS_BIGENDIAN 1
32012 _ACEOF
32013  ;;
32014   no)
32015      ;;
32016   *)
32017     { { echo "$as_me:$LINENO: error: unknown endianness
32018 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
32019 echo "$as_me: error: unknown endianness
32020 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
32021    { (exit 1); exit 1; }; } ;;
32022 esac
32023
32024
32025 # GCC_COMPILER is needed in the gnulib Makefile to silence errors
32026  if test "x$GCC" = "xyes"; then
32027   GCC_COMPILER_TRUE=
32028   GCC_COMPILER_FALSE='#'
32029 else
32030   GCC_COMPILER_TRUE='#'
32031   GCC_COMPILER_FALSE=
32032 fi
32033
32034
32035 #
32036 # Warnings
32037 #
32038
32039
32040
32041
32042     { echo "$as_me:$LINENO: checking for gcc flag -Wparentheses" >&5
32043 echo $ECHO_N "checking for gcc flag -Wparentheses... $ECHO_C" >&6; }
32044     if test "x$GCC" = "xyes"; then
32045                 $CC -v --help 2>&1 | $EGREP -- '[^[:alnum:]]-Wparentheses[^[:alnum:]-]' 2>&1 > /dev/null
32046                 if test $? -eq 0; then
32047             found_warning=yes
32048             { echo "$as_me:$LINENO: result: yes" >&5
32049 echo "${ECHO_T}yes" >&6; }
32050         else
32051             found_warning=no
32052             { echo "$as_me:$LINENO: result: no" >&5
32053 echo "${ECHO_T}no" >&6; }
32054         fi
32055     else
32056         found_warning=no
32057         { echo "$as_me:$LINENO: result: no (not using gcc)" >&5
32058 echo "${ECHO_T}no (not using gcc)" >&6; }
32059     fi
32060
32061     if test x"$found_warning" = x"yes"; then
32062         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wparentheses"
32063
32064
32065     else
32066         :
32067     fi
32068
32069
32070
32071
32072
32073
32074     { echo "$as_me:$LINENO: checking for gcc flag -Wdeclaration-after-statement" >&5
32075 echo $ECHO_N "checking for gcc flag -Wdeclaration-after-statement... $ECHO_C" >&6; }
32076     if test "x$GCC" = "xyes"; then
32077                 $CC -v --help 2>&1 | $EGREP -- '[^[:alnum:]]-Wdeclaration-after-statement[^[:alnum:]-]' 2>&1 > /dev/null
32078                 if test $? -eq 0; then
32079             found_warning=yes
32080             { echo "$as_me:$LINENO: result: yes" >&5
32081 echo "${ECHO_T}yes" >&6; }
32082         else
32083             found_warning=no
32084             { echo "$as_me:$LINENO: result: no" >&5
32085 echo "${ECHO_T}no" >&6; }
32086         fi
32087     else
32088         found_warning=no
32089         { echo "$as_me:$LINENO: result: no (not using gcc)" >&5
32090 echo "${ECHO_T}no (not using gcc)" >&6; }
32091     fi
32092
32093     if test x"$found_warning" = x"yes"; then
32094         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wdeclaration-after-statement"
32095
32096
32097     else
32098         :
32099     fi
32100
32101
32102
32103
32104
32105
32106     { echo "$as_me:$LINENO: checking for gcc flag -Wmissing-prototypes" >&5
32107 echo $ECHO_N "checking for gcc flag -Wmissing-prototypes... $ECHO_C" >&6; }
32108     if test "x$GCC" = "xyes"; then
32109                 $CC -v --help 2>&1 | $EGREP -- '[^[:alnum:]]-Wmissing-prototypes[^[:alnum:]-]' 2>&1 > /dev/null
32110                 if test $? -eq 0; then
32111             found_warning=yes
32112             { echo "$as_me:$LINENO: result: yes" >&5
32113 echo "${ECHO_T}yes" >&6; }
32114         else
32115             found_warning=no
32116             { echo "$as_me:$LINENO: result: no" >&5
32117 echo "${ECHO_T}no" >&6; }
32118         fi
32119     else
32120         found_warning=no
32121         { echo "$as_me:$LINENO: result: no (not using gcc)" >&5
32122 echo "${ECHO_T}no (not using gcc)" >&6; }
32123     fi
32124
32125     if test x"$found_warning" = x"yes"; then
32126         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wmissing-prototypes"
32127
32128
32129     else
32130         :
32131     fi
32132
32133
32134
32135
32136
32137
32138     { echo "$as_me:$LINENO: checking for gcc flag -Wstrict-prototypes" >&5
32139 echo $ECHO_N "checking for gcc flag -Wstrict-prototypes... $ECHO_C" >&6; }
32140     if test "x$GCC" = "xyes"; then
32141                 $CC -v --help 2>&1 | $EGREP -- '[^[:alnum:]]-Wstrict-prototypes[^[:alnum:]-]' 2>&1 > /dev/null
32142                 if test $? -eq 0; then
32143             found_warning=yes
32144             { echo "$as_me:$LINENO: result: yes" >&5
32145 echo "${ECHO_T}yes" >&6; }
32146         else
32147             found_warning=no
32148             { echo "$as_me:$LINENO: result: no" >&5
32149 echo "${ECHO_T}no" >&6; }
32150         fi
32151     else
32152         found_warning=no
32153         { echo "$as_me:$LINENO: result: no (not using gcc)" >&5
32154 echo "${ECHO_T}no (not using gcc)" >&6; }
32155     fi
32156
32157     if test x"$found_warning" = x"yes"; then
32158         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wstrict-prototypes"
32159
32160
32161     else
32162         :
32163     fi
32164
32165
32166
32167
32168
32169
32170     { echo "$as_me:$LINENO: checking for gcc flag -Wmissing-declarations" >&5
32171 echo $ECHO_N "checking for gcc flag -Wmissing-declarations... $ECHO_C" >&6; }
32172     if test "x$GCC" = "xyes"; then
32173                 $CC -v --help 2>&1 | $EGREP -- '[^[:alnum:]]-Wmissing-declarations[^[:alnum:]-]' 2>&1 > /dev/null
32174                 if test $? -eq 0; then
32175             found_warning=yes
32176             { echo "$as_me:$LINENO: result: yes" >&5
32177 echo "${ECHO_T}yes" >&6; }
32178         else
32179             found_warning=no
32180             { echo "$as_me:$LINENO: result: no" >&5
32181 echo "${ECHO_T}no" >&6; }
32182         fi
32183     else
32184         found_warning=no
32185         { echo "$as_me:$LINENO: result: no (not using gcc)" >&5
32186 echo "${ECHO_T}no (not using gcc)" >&6; }
32187     fi
32188
32189     if test x"$found_warning" = x"yes"; then
32190         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wmissing-declarations"
32191
32192
32193     else
32194         :
32195     fi
32196
32197
32198
32199
32200
32201
32202     { echo "$as_me:$LINENO: checking for gcc flag -Wformat" >&5
32203 echo $ECHO_N "checking for gcc flag -Wformat... $ECHO_C" >&6; }
32204     if test "x$GCC" = "xyes"; then
32205                 $CC -v --help 2>&1 | $EGREP -- '[^[:alnum:]]-Wformat[^[:alnum:]-]' 2>&1 > /dev/null
32206                 if test $? -eq 0; then
32207             found_warning=yes
32208             { echo "$as_me:$LINENO: result: yes" >&5
32209 echo "${ECHO_T}yes" >&6; }
32210         else
32211             found_warning=no
32212             { echo "$as_me:$LINENO: result: no" >&5
32213 echo "${ECHO_T}no" >&6; }
32214         fi
32215     else
32216         found_warning=no
32217         { echo "$as_me:$LINENO: result: no (not using gcc)" >&5
32218 echo "${ECHO_T}no (not using gcc)" >&6; }
32219     fi
32220
32221     if test x"$found_warning" = x"yes"; then
32222         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wformat"
32223
32224
32225     else
32226         :
32227     fi
32228
32229
32230
32231
32232
32233
32234     { echo "$as_me:$LINENO: checking for gcc flag -Wsign-compare" >&5
32235 echo $ECHO_N "checking for gcc flag -Wsign-compare... $ECHO_C" >&6; }
32236     if test "x$GCC" = "xyes"; then
32237                 $CC -v --help 2>&1 | $EGREP -- '[^[:alnum:]]-Wsign-compare[^[:alnum:]-]' 2>&1 > /dev/null
32238                 if test $? -eq 0; then
32239             found_warning=yes
32240             { echo "$as_me:$LINENO: result: yes" >&5
32241 echo "${ECHO_T}yes" >&6; }
32242         else
32243             found_warning=no
32244             { echo "$as_me:$LINENO: result: no" >&5
32245 echo "${ECHO_T}no" >&6; }
32246         fi
32247     else
32248         found_warning=no
32249         { echo "$as_me:$LINENO: result: no (not using gcc)" >&5
32250 echo "${ECHO_T}no (not using gcc)" >&6; }
32251     fi
32252
32253     if test x"$found_warning" = x"yes"; then
32254         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wsign-compare"
32255
32256
32257     else
32258         :
32259     fi
32260
32261
32262
32263
32264
32265
32266     { echo "$as_me:$LINENO: checking for gcc flag -Wfloat-equal" >&5
32267 echo $ECHO_N "checking for gcc flag -Wfloat-equal... $ECHO_C" >&6; }
32268     if test "x$GCC" = "xyes"; then
32269                 $CC -v --help 2>&1 | $EGREP -- '[^[:alnum:]]-Wfloat-equal[^[:alnum:]-]' 2>&1 > /dev/null
32270                 if test $? -eq 0; then
32271             found_warning=yes
32272             { echo "$as_me:$LINENO: result: yes" >&5
32273 echo "${ECHO_T}yes" >&6; }
32274         else
32275             found_warning=no
32276             { echo "$as_me:$LINENO: result: no" >&5
32277 echo "${ECHO_T}no" >&6; }
32278         fi
32279     else
32280         found_warning=no
32281         { echo "$as_me:$LINENO: result: no (not using gcc)" >&5
32282 echo "${ECHO_T}no (not using gcc)" >&6; }
32283     fi
32284
32285     if test x"$found_warning" = x"yes"; then
32286         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wfloat-equal"
32287
32288
32289     else
32290         :
32291     fi
32292
32293
32294
32295
32296
32297
32298     { echo "$as_me:$LINENO: checking for gcc flag -Wold-style-definition" >&5
32299 echo $ECHO_N "checking for gcc flag -Wold-style-definition... $ECHO_C" >&6; }
32300     if test "x$GCC" = "xyes"; then
32301                 $CC -v --help 2>&1 | $EGREP -- '[^[:alnum:]]-Wold-style-definition[^[:alnum:]-]' 2>&1 > /dev/null
32302                 if test $? -eq 0; then
32303             found_warning=yes
32304             { echo "$as_me:$LINENO: result: yes" >&5
32305 echo "${ECHO_T}yes" >&6; }
32306         else
32307             found_warning=no
32308             { echo "$as_me:$LINENO: result: no" >&5
32309 echo "${ECHO_T}no" >&6; }
32310         fi
32311     else
32312         found_warning=no
32313         { echo "$as_me:$LINENO: result: no (not using gcc)" >&5
32314 echo "${ECHO_T}no (not using gcc)" >&6; }
32315     fi
32316
32317     if test x"$found_warning" = x"yes"; then
32318         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wold-style-definition"
32319
32320
32321     else
32322         :
32323     fi
32324
32325
32326
32327     # test for -W'warning', then add the 'no-' version.
32328
32329
32330
32331     { echo "$as_me:$LINENO: checking for gcc flag -Wstrict-aliasing" >&5
32332 echo $ECHO_N "checking for gcc flag -Wstrict-aliasing... $ECHO_C" >&6; }
32333     if test "x$GCC" = "xyes"; then
32334                 $CC -v --help 2>&1 | $EGREP -- '[^[:alnum:]]-Wstrict-aliasing[^[:alnum:]-]' 2>&1 > /dev/null
32335                 if test $? -eq 0; then
32336             found_warning=yes
32337             { echo "$as_me:$LINENO: result: yes" >&5
32338 echo "${ECHO_T}yes" >&6; }
32339         else
32340             found_warning=no
32341             { echo "$as_me:$LINENO: result: no" >&5
32342 echo "${ECHO_T}no" >&6; }
32343         fi
32344     else
32345         found_warning=no
32346         { echo "$as_me:$LINENO: result: no (not using gcc)" >&5
32347 echo "${ECHO_T}no (not using gcc)" >&6; }
32348     fi
32349
32350     if test x"$found_warning" = x"yes"; then
32351         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wno-strict-aliasing"
32352
32353
32354     else
32355         :
32356     fi
32357
32358
32359
32360     # test for -W'warning', then add the 'no-' version.
32361
32362
32363
32364     { echo "$as_me:$LINENO: checking for gcc flag -Wunknown-pragmas" >&5
32365 echo $ECHO_N "checking for gcc flag -Wunknown-pragmas... $ECHO_C" >&6; }
32366     if test "x$GCC" = "xyes"; then
32367                 $CC -v --help 2>&1 | $EGREP -- '[^[:alnum:]]-Wunknown-pragmas[^[:alnum:]-]' 2>&1 > /dev/null
32368                 if test $? -eq 0; then
32369             found_warning=yes
32370             { echo "$as_me:$LINENO: result: yes" >&5
32371 echo "${ECHO_T}yes" >&6; }
32372         else
32373             found_warning=no
32374             { echo "$as_me:$LINENO: result: no" >&5
32375 echo "${ECHO_T}no" >&6; }
32376         fi
32377     else
32378         found_warning=no
32379         { echo "$as_me:$LINENO: result: no (not using gcc)" >&5
32380 echo "${ECHO_T}no (not using gcc)" >&6; }
32381     fi
32382
32383     if test x"$found_warning" = x"yes"; then
32384         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wno-unknown-pragmas"
32385
32386
32387     else
32388         :
32389     fi
32390
32391
32392
32393
32394 #
32395 # Libtool
32396 #
32397 # Check whether --enable-shared was given.
32398 if test "${enable_shared+set}" = set; then
32399   enableval=$enable_shared; p=${PACKAGE-default}
32400     case $enableval in
32401     yes) enable_shared=yes ;;
32402     no) enable_shared=no ;;
32403     *)
32404       enable_shared=no
32405       # Look at the argument we got.  We use all the common list separators.
32406       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
32407       for pkg in $enableval; do
32408         IFS="$lt_save_ifs"
32409         if test "X$pkg" = "X$p"; then
32410           enable_shared=yes
32411         fi
32412       done
32413       IFS="$lt_save_ifs"
32414       ;;
32415     esac
32416 else
32417   enable_shared=yes
32418 fi
32419
32420
32421 # Check whether --enable-static was given.
32422 if test "${enable_static+set}" = set; then
32423   enableval=$enable_static; p=${PACKAGE-default}
32424     case $enableval in
32425     yes) enable_static=yes ;;
32426     no) enable_static=no ;;
32427     *)
32428      enable_static=no
32429       # Look at the argument we got.  We use all the common list separators.
32430       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
32431       for pkg in $enableval; do
32432         IFS="$lt_save_ifs"
32433         if test "X$pkg" = "X$p"; then
32434           enable_static=yes
32435         fi
32436       done
32437       IFS="$lt_save_ifs"
32438       ;;
32439     esac
32440 else
32441   enable_static=yes
32442 fi
32443
32444
32445 # Check whether --enable-fast-install was given.
32446 if test "${enable_fast_install+set}" = set; then
32447   enableval=$enable_fast_install; p=${PACKAGE-default}
32448     case $enableval in
32449     yes) enable_fast_install=yes ;;
32450     no) enable_fast_install=no ;;
32451     *)
32452       enable_fast_install=no
32453       # Look at the argument we got.  We use all the common list separators.
32454       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
32455       for pkg in $enableval; do
32456         IFS="$lt_save_ifs"
32457         if test "X$pkg" = "X$p"; then
32458           enable_fast_install=yes
32459         fi
32460       done
32461       IFS="$lt_save_ifs"
32462       ;;
32463     esac
32464 else
32465   enable_fast_install=yes
32466 fi
32467
32468
32469 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
32470 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
32471 if test "${lt_cv_path_SED+set}" = set; then
32472   echo $ECHO_N "(cached) $ECHO_C" >&6
32473 else
32474   # Loop through the user's path and test for sed and gsed.
32475 # Then use that list of sed's as ones to test for truncation.
32476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32477 for as_dir in $PATH
32478 do
32479   IFS=$as_save_IFS
32480   test -z "$as_dir" && as_dir=.
32481   for lt_ac_prog in sed gsed; do
32482     for ac_exec_ext in '' $ac_executable_extensions; do
32483       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
32484         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
32485       fi
32486     done
32487   done
32488 done
32489 lt_ac_max=0
32490 lt_ac_count=0
32491 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
32492 # along with /bin/sed that truncates output.
32493 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
32494   test ! -f $lt_ac_sed && continue
32495   cat /dev/null > conftest.in
32496   lt_ac_count=0
32497   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
32498   # Check for GNU sed and select it if it is found.
32499   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
32500     lt_cv_path_SED=$lt_ac_sed
32501     break
32502   fi
32503   while true; do
32504     cat conftest.in conftest.in >conftest.tmp
32505     mv conftest.tmp conftest.in
32506     cp conftest.in conftest.nl
32507     echo >>conftest.nl
32508     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
32509     cmp -s conftest.out conftest.nl || break
32510     # 10000 chars as input seems more than enough
32511     test $lt_ac_count -gt 10 && break
32512     lt_ac_count=`expr $lt_ac_count + 1`
32513     if test $lt_ac_count -gt $lt_ac_max; then
32514       lt_ac_max=$lt_ac_count
32515       lt_cv_path_SED=$lt_ac_sed
32516     fi
32517   done
32518 done
32519
32520 fi
32521
32522 SED=$lt_cv_path_SED
32523 { echo "$as_me:$LINENO: result: $SED" >&5
32524 echo "${ECHO_T}$SED" >&6; }
32525
32526
32527 # Check whether --with-gnu-ld was given.
32528 if test "${with_gnu_ld+set}" = set; then
32529   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
32530 else
32531   with_gnu_ld=no
32532 fi
32533
32534 ac_prog=ld
32535 if test "$GCC" = yes; then
32536   # Check if gcc -print-prog-name=ld gives a path.
32537   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
32538 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
32539   case $host in
32540   *-*-mingw*)
32541     # gcc leaves a trailing carriage return which upsets mingw
32542     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
32543   *)
32544     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
32545   esac
32546   case $ac_prog in
32547     # Accept absolute paths.
32548     [\\/]* | ?:[\\/]*)
32549       re_direlt='/[^/][^/]*/\.\./'
32550       # Canonicalize the pathname of ld
32551       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
32552       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
32553         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
32554       done
32555       test -z "$LD" && LD="$ac_prog"
32556       ;;
32557   "")
32558     # If it fails, then pretend we aren't using GCC.
32559     ac_prog=ld
32560     ;;
32561   *)
32562     # If it is relative, then search for the first ld in PATH.
32563     with_gnu_ld=unknown
32564     ;;
32565   esac
32566 elif test "$with_gnu_ld" = yes; then
32567   { echo "$as_me:$LINENO: checking for GNU ld" >&5
32568 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
32569 else
32570   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
32571 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
32572 fi
32573 if test "${lt_cv_path_LD+set}" = set; then
32574   echo $ECHO_N "(cached) $ECHO_C" >&6
32575 else
32576   if test -z "$LD"; then
32577   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
32578   for ac_dir in $PATH; do
32579     IFS="$lt_save_ifs"
32580     test -z "$ac_dir" && ac_dir=.
32581     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
32582       lt_cv_path_LD="$ac_dir/$ac_prog"
32583       # Check to see if the program is GNU ld.  I'd rather use --version,
32584       # but apparently some variants of GNU ld only accept -v.
32585       # Break only if it was the GNU/non-GNU ld that we prefer.
32586       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
32587       *GNU* | *'with BFD'*)
32588         test "$with_gnu_ld" != no && break
32589         ;;
32590       *)
32591         test "$with_gnu_ld" != yes && break
32592         ;;
32593       esac
32594     fi
32595   done
32596   IFS="$lt_save_ifs"
32597 else
32598   lt_cv_path_LD="$LD" # Let the user override the test with a path.
32599 fi
32600 fi
32601
32602 LD="$lt_cv_path_LD"
32603 if test -n "$LD"; then
32604   { echo "$as_me:$LINENO: result: $LD" >&5
32605 echo "${ECHO_T}$LD" >&6; }
32606 else
32607   { echo "$as_me:$LINENO: result: no" >&5
32608 echo "${ECHO_T}no" >&6; }
32609 fi
32610 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
32611 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
32612    { (exit 1); exit 1; }; }
32613 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
32614 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
32615 if test "${lt_cv_prog_gnu_ld+set}" = set; then
32616   echo $ECHO_N "(cached) $ECHO_C" >&6
32617 else
32618   # I'd rather use --version here, but apparently some GNU lds only accept -v.
32619 case `$LD -v 2>&1 </dev/null` in
32620 *GNU* | *'with BFD'*)
32621   lt_cv_prog_gnu_ld=yes
32622   ;;
32623 *)
32624   lt_cv_prog_gnu_ld=no
32625   ;;
32626 esac
32627 fi
32628 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
32629 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
32630 with_gnu_ld=$lt_cv_prog_gnu_ld
32631
32632
32633 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
32634 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
32635 if test "${lt_cv_ld_reload_flag+set}" = set; then
32636   echo $ECHO_N "(cached) $ECHO_C" >&6
32637 else
32638   lt_cv_ld_reload_flag='-r'
32639 fi
32640 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
32641 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
32642 reload_flag=$lt_cv_ld_reload_flag
32643 case $reload_flag in
32644 "" | " "*) ;;
32645 *) reload_flag=" $reload_flag" ;;
32646 esac
32647 reload_cmds='$LD$reload_flag -o $output$reload_objs'
32648 case $host_os in
32649   darwin*)
32650     if test "$GCC" = yes; then
32651       reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
32652     else
32653       reload_cmds='$LD$reload_flag -o $output$reload_objs'
32654     fi
32655     ;;
32656 esac
32657
32658 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
32659 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
32660 if test "${lt_cv_path_NM+set}" = set; then
32661   echo $ECHO_N "(cached) $ECHO_C" >&6
32662 else
32663   if test -n "$NM"; then
32664   # Let the user override the test.
32665   lt_cv_path_NM="$NM"
32666 else
32667   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
32668   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
32669     IFS="$lt_save_ifs"
32670     test -z "$ac_dir" && ac_dir=.
32671     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
32672     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
32673       # Check to see if the nm accepts a BSD-compat flag.
32674       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
32675       #   nm: unknown option "B" ignored
32676       # Tru64's nm complains that /dev/null is an invalid object file
32677       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
32678       */dev/null* | *'Invalid file or object type'*)
32679         lt_cv_path_NM="$tmp_nm -B"
32680         break
32681         ;;
32682       *)
32683         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
32684         */dev/null*)
32685           lt_cv_path_NM="$tmp_nm -p"
32686           break
32687           ;;
32688         *)
32689           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
32690           continue # so that we can try to find one that supports BSD flags
32691           ;;
32692         esac
32693       esac
32694     fi
32695   done
32696   IFS="$lt_save_ifs"
32697   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
32698 fi
32699 fi
32700 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
32701 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
32702 NM="$lt_cv_path_NM"
32703
32704 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
32705 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
32706 LN_S=$as_ln_s
32707 if test "$LN_S" = "ln -s"; then
32708   { echo "$as_me:$LINENO: result: yes" >&5
32709 echo "${ECHO_T}yes" >&6; }
32710 else
32711   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
32712 echo "${ECHO_T}no, using $LN_S" >&6; }
32713 fi
32714
32715 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
32716 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
32717 if test "${lt_cv_deplibs_check_method+set}" = set; then
32718   echo $ECHO_N "(cached) $ECHO_C" >&6
32719 else
32720   lt_cv_file_magic_cmd='$MAGIC_CMD'
32721 lt_cv_file_magic_test_file=
32722 lt_cv_deplibs_check_method='unknown'
32723 # Need to set the preceding variable on all platforms that support
32724 # interlibrary dependencies.
32725 # 'none' -- dependencies not supported.
32726 # `unknown' -- same as none, but documents that we really don't know.
32727 # 'pass_all' -- all dependencies passed with no checks.
32728 # 'test_compile' -- check by making test program.
32729 # 'file_magic [[regex]]' -- check by looking for files in library path
32730 # which responds to the $file_magic_cmd with a given extended regex.
32731 # If you have `file' or equivalent on your system and you're not sure
32732 # whether `pass_all' will *always* work, you probably want this one.
32733
32734 case $host_os in
32735 aix4* | aix5*)
32736   lt_cv_deplibs_check_method=pass_all
32737   ;;
32738
32739 beos*)
32740   lt_cv_deplibs_check_method=pass_all
32741   ;;
32742
32743 bsdi[45]*)
32744   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
32745   lt_cv_file_magic_cmd='/usr/bin/file -L'
32746   lt_cv_file_magic_test_file=/shlib/libc.so
32747   ;;
32748
32749 cygwin*)
32750   # func_win32_libid is a shell function defined in ltmain.sh
32751   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
32752   lt_cv_file_magic_cmd='func_win32_libid'
32753   ;;
32754
32755 mingw* | pw32*)
32756   # Base MSYS/MinGW do not provide the 'file' command needed by
32757   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
32758   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
32759   lt_cv_file_magic_cmd='$OBJDUMP -f'
32760   ;;
32761
32762 darwin* | rhapsody*)
32763   lt_cv_deplibs_check_method=pass_all
32764   ;;
32765
32766 freebsd* | kfreebsd*-gnu | dragonfly*)
32767   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
32768     case $host_cpu in
32769     i*86 )
32770       # Not sure whether the presence of OpenBSD here was a mistake.
32771       # Let's accept both of them until this is cleared up.
32772       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
32773       lt_cv_file_magic_cmd=/usr/bin/file
32774       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
32775       ;;
32776     esac
32777   else
32778     lt_cv_deplibs_check_method=pass_all
32779   fi
32780   ;;
32781
32782 gnu*)
32783   lt_cv_deplibs_check_method=pass_all
32784   ;;
32785
32786 hpux10.20* | hpux11*)
32787   lt_cv_file_magic_cmd=/usr/bin/file
32788   case $host_cpu in
32789   ia64*)
32790     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
32791     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
32792     ;;
32793   hppa*64*)
32794     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]'
32795     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
32796     ;;
32797   *)
32798     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
32799     lt_cv_file_magic_test_file=/usr/lib/libc.sl
32800     ;;
32801   esac
32802   ;;
32803
32804 irix5* | irix6* | nonstopux*)
32805   case $LD in
32806   *-32|*"-32 ") libmagic=32-bit;;
32807   *-n32|*"-n32 ") libmagic=N32;;
32808   *-64|*"-64 ") libmagic=64-bit;;
32809   *) libmagic=never-match;;
32810   esac
32811   lt_cv_deplibs_check_method=pass_all
32812   ;;
32813
32814 # This must be Linux ELF.
32815 linux*)
32816   lt_cv_deplibs_check_method=pass_all
32817   ;;
32818
32819 netbsd*)
32820   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
32821     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
32822   else
32823     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
32824   fi
32825   ;;
32826
32827 newos6*)
32828   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
32829   lt_cv_file_magic_cmd=/usr/bin/file
32830   lt_cv_file_magic_test_file=/usr/lib/libnls.so
32831   ;;
32832
32833 nto-qnx*)
32834   lt_cv_deplibs_check_method=unknown
32835   ;;
32836
32837 openbsd*)
32838   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
32839     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
32840   else
32841     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
32842   fi
32843   ;;
32844
32845 osf3* | osf4* | osf5*)
32846   lt_cv_deplibs_check_method=pass_all
32847   ;;
32848
32849 sco3.2v5*)
32850   lt_cv_deplibs_check_method=pass_all
32851   ;;
32852
32853 solaris*)
32854   lt_cv_deplibs_check_method=pass_all
32855   ;;
32856
32857 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
32858   case $host_vendor in
32859   motorola)
32860     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]'
32861     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
32862     ;;
32863   ncr)
32864     lt_cv_deplibs_check_method=pass_all
32865     ;;
32866   sequent)
32867     lt_cv_file_magic_cmd='/bin/file'
32868     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
32869     ;;
32870   sni)
32871     lt_cv_file_magic_cmd='/bin/file'
32872     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
32873     lt_cv_file_magic_test_file=/lib/libc.so
32874     ;;
32875   siemens)
32876     lt_cv_deplibs_check_method=pass_all
32877     ;;
32878   esac
32879   ;;
32880
32881 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
32882   lt_cv_deplibs_check_method=pass_all
32883   ;;
32884 esac
32885
32886 fi
32887 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
32888 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
32889 file_magic_cmd=$lt_cv_file_magic_cmd
32890 deplibs_check_method=$lt_cv_deplibs_check_method
32891 test -z "$deplibs_check_method" && deplibs_check_method=unknown
32892
32893
32894 # If no C compiler was specified, use CC.
32895 LTCC=${LTCC-"$CC"}
32896
32897 # Allow CC to be a program name with arguments.
32898 compiler=$CC
32899
32900 # Check whether --enable-libtool-lock was given.
32901 if test "${enable_libtool_lock+set}" = set; then
32902   enableval=$enable_libtool_lock;
32903 fi
32904
32905 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
32906
32907 # Some flags need to be propagated to the compiler or linker for good
32908 # libtool support.
32909 case $host in
32910 ia64-*-hpux*)
32911   # Find out which ABI we are using.
32912   echo 'int i;' > conftest.$ac_ext
32913   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32914   (eval $ac_compile) 2>&5
32915   ac_status=$?
32916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32917   (exit $ac_status); }; then
32918     case `/usr/bin/file conftest.$ac_objext` in
32919     *ELF-32*)
32920       HPUX_IA64_MODE="32"
32921       ;;
32922     *ELF-64*)
32923       HPUX_IA64_MODE="64"
32924       ;;
32925     esac
32926   fi
32927   rm -rf conftest*
32928   ;;
32929 *-*-irix6*)
32930   # Find out which ABI we are using.
32931   echo '#line 32931 "configure"' > conftest.$ac_ext
32932   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32933   (eval $ac_compile) 2>&5
32934   ac_status=$?
32935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32936   (exit $ac_status); }; then
32937    if test "$lt_cv_prog_gnu_ld" = yes; then
32938     case `/usr/bin/file conftest.$ac_objext` in
32939     *32-bit*)
32940       LD="${LD-ld} -melf32bsmip"
32941       ;;
32942     *N32*)
32943       LD="${LD-ld} -melf32bmipn32"
32944       ;;
32945     *64-bit*)
32946       LD="${LD-ld} -melf64bmip"
32947       ;;
32948     esac
32949    else
32950     case `/usr/bin/file conftest.$ac_objext` in
32951     *32-bit*)
32952       LD="${LD-ld} -32"
32953       ;;
32954     *N32*)
32955       LD="${LD-ld} -n32"
32956       ;;
32957     *64-bit*)
32958       LD="${LD-ld} -64"
32959       ;;
32960     esac
32961    fi
32962   fi
32963   rm -rf conftest*
32964   ;;
32965
32966 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
32967   # Find out which ABI we are using.
32968   echo 'int i;' > conftest.$ac_ext
32969   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32970   (eval $ac_compile) 2>&5
32971   ac_status=$?
32972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32973   (exit $ac_status); }; then
32974     case `/usr/bin/file conftest.o` in
32975     *32-bit*)
32976       case $host in
32977         x86_64-*linux*)
32978           LD="${LD-ld} -m elf_i386"
32979           ;;
32980         ppc64-*linux*|powerpc64-*linux*)
32981           LD="${LD-ld} -m elf32ppclinux"
32982           ;;
32983         s390x-*linux*)
32984           LD="${LD-ld} -m elf_s390"
32985           ;;
32986         sparc64-*linux*)
32987           LD="${LD-ld} -m elf32_sparc"
32988           ;;
32989       esac
32990       ;;
32991     *64-bit*)
32992       case $host in
32993         x86_64-*linux*)
32994           LD="${LD-ld} -m elf_x86_64"
32995           ;;
32996         ppc*-*linux*|powerpc*-*linux*)
32997           LD="${LD-ld} -m elf64ppc"
32998           ;;
32999         s390*-*linux*)
33000           LD="${LD-ld} -m elf64_s390"
33001           ;;
33002         sparc*-*linux*)
33003           LD="${LD-ld} -m elf64_sparc"
33004           ;;
33005       esac
33006       ;;
33007     esac
33008   fi
33009   rm -rf conftest*
33010   ;;
33011
33012 *-*-sco3.2v5*)
33013   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
33014   SAVE_CFLAGS="$CFLAGS"
33015   CFLAGS="$CFLAGS -belf"
33016   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
33017 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
33018 if test "${lt_cv_cc_needs_belf+set}" = set; then
33019   echo $ECHO_N "(cached) $ECHO_C" >&6
33020 else
33021   ac_ext=c
33022 ac_cpp='$CPP $CPPFLAGS'
33023 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33024 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33025 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33026
33027      cat >conftest.$ac_ext <<_ACEOF
33028 /* confdefs.h.  */
33029 _ACEOF
33030 cat confdefs.h >>conftest.$ac_ext
33031 cat >>conftest.$ac_ext <<_ACEOF
33032 /* end confdefs.h.  */
33033
33034 int
33035 main ()
33036 {
33037
33038   ;
33039   return 0;
33040 }
33041 _ACEOF
33042 rm -f conftest.$ac_objext conftest$ac_exeext
33043 if { (ac_try="$ac_link"
33044 case "(($ac_try" in
33045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33046   *) ac_try_echo=$ac_try;;
33047 esac
33048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33049   (eval "$ac_link") 2>conftest.er1
33050   ac_status=$?
33051   grep -v '^ *+' conftest.er1 >conftest.err
33052   rm -f conftest.er1
33053   cat conftest.err >&5
33054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33055   (exit $ac_status); } && {
33056          test -z "$ac_c_werror_flag" ||
33057          test ! -s conftest.err
33058        } && test -s conftest$ac_exeext &&
33059        $as_test_x conftest$ac_exeext; then
33060   lt_cv_cc_needs_belf=yes
33061 else
33062   echo "$as_me: failed program was:" >&5
33063 sed 's/^/| /' conftest.$ac_ext >&5
33064
33065         lt_cv_cc_needs_belf=no
33066 fi
33067
33068 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33069       conftest$ac_exeext conftest.$ac_ext
33070      ac_ext=c
33071 ac_cpp='$CPP $CPPFLAGS'
33072 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33073 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33074 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33075
33076 fi
33077 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
33078 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
33079   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
33080     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
33081     CFLAGS="$SAVE_CFLAGS"
33082   fi
33083   ;;
33084
33085 esac
33086
33087 need_locks="$enable_libtool_lock"
33088
33089
33090
33091 for ac_header in dlfcn.h
33092 do
33093 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33094 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33095   { echo "$as_me:$LINENO: checking for $ac_header" >&5
33096 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33097 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33098   echo $ECHO_N "(cached) $ECHO_C" >&6
33099 fi
33100 ac_res=`eval echo '${'$as_ac_Header'}'`
33101                { echo "$as_me:$LINENO: result: $ac_res" >&5
33102 echo "${ECHO_T}$ac_res" >&6; }
33103 else
33104   # Is the header compilable?
33105 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
33106 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
33107 cat >conftest.$ac_ext <<_ACEOF
33108 /* confdefs.h.  */
33109 _ACEOF
33110 cat confdefs.h >>conftest.$ac_ext
33111 cat >>conftest.$ac_ext <<_ACEOF
33112 /* end confdefs.h.  */
33113 $ac_includes_default
33114 #include <$ac_header>
33115 _ACEOF
33116 rm -f conftest.$ac_objext
33117 if { (ac_try="$ac_compile"
33118 case "(($ac_try" in
33119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33120   *) ac_try_echo=$ac_try;;
33121 esac
33122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33123   (eval "$ac_compile") 2>conftest.er1
33124   ac_status=$?
33125   grep -v '^ *+' conftest.er1 >conftest.err
33126   rm -f conftest.er1
33127   cat conftest.err >&5
33128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33129   (exit $ac_status); } && {
33130          test -z "$ac_c_werror_flag" ||
33131          test ! -s conftest.err
33132        } && test -s conftest.$ac_objext; then
33133   ac_header_compiler=yes
33134 else
33135   echo "$as_me: failed program was:" >&5
33136 sed 's/^/| /' conftest.$ac_ext >&5
33137
33138         ac_header_compiler=no
33139 fi
33140
33141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33142 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33143 echo "${ECHO_T}$ac_header_compiler" >&6; }
33144
33145 # Is the header present?
33146 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
33147 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
33148 cat >conftest.$ac_ext <<_ACEOF
33149 /* confdefs.h.  */
33150 _ACEOF
33151 cat confdefs.h >>conftest.$ac_ext
33152 cat >>conftest.$ac_ext <<_ACEOF
33153 /* end confdefs.h.  */
33154 #include <$ac_header>
33155 _ACEOF
33156 if { (ac_try="$ac_cpp conftest.$ac_ext"
33157 case "(($ac_try" in
33158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33159   *) ac_try_echo=$ac_try;;
33160 esac
33161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33162   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33163   ac_status=$?
33164   grep -v '^ *+' conftest.er1 >conftest.err
33165   rm -f conftest.er1
33166   cat conftest.err >&5
33167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33168   (exit $ac_status); } >/dev/null && {
33169          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33170          test ! -s conftest.err
33171        }; then
33172   ac_header_preproc=yes
33173 else
33174   echo "$as_me: failed program was:" >&5
33175 sed 's/^/| /' conftest.$ac_ext >&5
33176
33177   ac_header_preproc=no
33178 fi
33179
33180 rm -f conftest.err conftest.$ac_ext
33181 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33182 echo "${ECHO_T}$ac_header_preproc" >&6; }
33183
33184 # So?  What about this header?
33185 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33186   yes:no: )
33187     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33188 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33189     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33190 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33191     ac_header_preproc=yes
33192     ;;
33193   no:yes:* )
33194     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33195 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33196     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
33197 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
33198     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33199 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33200     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
33201 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
33202     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33203 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33204     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33205 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33206
33207     ;;
33208 esac
33209 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33210 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33211 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33212   echo $ECHO_N "(cached) $ECHO_C" >&6
33213 else
33214   eval "$as_ac_Header=\$ac_header_preproc"
33215 fi
33216 ac_res=`eval echo '${'$as_ac_Header'}'`
33217                { echo "$as_me:$LINENO: result: $ac_res" >&5
33218 echo "${ECHO_T}$ac_res" >&6; }
33219
33220 fi
33221 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33222   cat >>confdefs.h <<_ACEOF
33223 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33224 _ACEOF
33225
33226 fi
33227
33228 done
33229
33230 ac_ext=cpp
33231 ac_cpp='$CXXCPP $CPPFLAGS'
33232 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33233 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33234 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33235 if test -z "$CXX"; then
33236   if test -n "$CCC"; then
33237     CXX=$CCC
33238   else
33239     if test -n "$ac_tool_prefix"; then
33240   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
33241   do
33242     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
33243 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
33244 { echo "$as_me:$LINENO: checking for $ac_word" >&5
33245 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
33246 if test "${ac_cv_prog_CXX+set}" = set; then
33247   echo $ECHO_N "(cached) $ECHO_C" >&6
33248 else
33249   if test -n "$CXX"; then
33250   ac_cv_prog_CXX="$CXX" # Let the user override the test.
33251 else
33252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33253 for as_dir in $PATH
33254 do
33255   IFS=$as_save_IFS
33256   test -z "$as_dir" && as_dir=.
33257   for ac_exec_ext in '' $ac_executable_extensions; do
33258   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33259     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
33260     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33261     break 2
33262   fi
33263 done
33264 done
33265 IFS=$as_save_IFS
33266
33267 fi
33268 fi
33269 CXX=$ac_cv_prog_CXX
33270 if test -n "$CXX"; then
33271   { echo "$as_me:$LINENO: result: $CXX" >&5
33272 echo "${ECHO_T}$CXX" >&6; }
33273 else
33274   { echo "$as_me:$LINENO: result: no" >&5
33275 echo "${ECHO_T}no" >&6; }
33276 fi
33277
33278
33279     test -n "$CXX" && break
33280   done
33281 fi
33282 if test -z "$CXX"; then
33283   ac_ct_CXX=$CXX
33284   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
33285 do
33286   # Extract the first word of "$ac_prog", so it can be a program name with args.
33287 set dummy $ac_prog; ac_word=$2
33288 { echo "$as_me:$LINENO: checking for $ac_word" >&5
33289 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
33290 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
33291   echo $ECHO_N "(cached) $ECHO_C" >&6
33292 else
33293   if test -n "$ac_ct_CXX"; then
33294   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
33295 else
33296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33297 for as_dir in $PATH
33298 do
33299   IFS=$as_save_IFS
33300   test -z "$as_dir" && as_dir=.
33301   for ac_exec_ext in '' $ac_executable_extensions; do
33302   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33303     ac_cv_prog_ac_ct_CXX="$ac_prog"
33304     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33305     break 2
33306   fi
33307 done
33308 done
33309 IFS=$as_save_IFS
33310
33311 fi
33312 fi
33313 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
33314 if test -n "$ac_ct_CXX"; then
33315   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
33316 echo "${ECHO_T}$ac_ct_CXX" >&6; }
33317 else
33318   { echo "$as_me:$LINENO: result: no" >&5
33319 echo "${ECHO_T}no" >&6; }
33320 fi
33321
33322
33323   test -n "$ac_ct_CXX" && break
33324 done
33325
33326   if test "x$ac_ct_CXX" = x; then
33327     CXX="g++"
33328   else
33329     case $cross_compiling:$ac_tool_warned in
33330 yes:)
33331 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
33332 whose name does not start with the host triplet.  If you think this
33333 configuration is useful to you, please write to autoconf@gnu.org." >&5
33334 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
33335 whose name does not start with the host triplet.  If you think this
33336 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
33337 ac_tool_warned=yes ;;
33338 esac
33339     CXX=$ac_ct_CXX
33340   fi
33341 fi
33342
33343   fi
33344 fi
33345 # Provide some information about the compiler.
33346 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
33347 ac_compiler=`set X $ac_compile; echo $2`
33348 { (ac_try="$ac_compiler --version >&5"
33349 case "(($ac_try" in
33350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33351   *) ac_try_echo=$ac_try;;
33352 esac
33353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33354   (eval "$ac_compiler --version >&5") 2>&5
33355   ac_status=$?
33356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33357   (exit $ac_status); }
33358 { (ac_try="$ac_compiler -v >&5"
33359 case "(($ac_try" in
33360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33361   *) ac_try_echo=$ac_try;;
33362 esac
33363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33364   (eval "$ac_compiler -v >&5") 2>&5
33365   ac_status=$?
33366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33367   (exit $ac_status); }
33368 { (ac_try="$ac_compiler -V >&5"
33369 case "(($ac_try" in
33370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33371   *) ac_try_echo=$ac_try;;
33372 esac
33373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33374   (eval "$ac_compiler -V >&5") 2>&5
33375   ac_status=$?
33376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33377   (exit $ac_status); }
33378
33379 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
33380 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
33381 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
33382   echo $ECHO_N "(cached) $ECHO_C" >&6
33383 else
33384   cat >conftest.$ac_ext <<_ACEOF
33385 /* confdefs.h.  */
33386 _ACEOF
33387 cat confdefs.h >>conftest.$ac_ext
33388 cat >>conftest.$ac_ext <<_ACEOF
33389 /* end confdefs.h.  */
33390
33391 int
33392 main ()
33393 {
33394 #ifndef __GNUC__
33395        choke me
33396 #endif
33397
33398   ;
33399   return 0;
33400 }
33401 _ACEOF
33402 rm -f conftest.$ac_objext
33403 if { (ac_try="$ac_compile"
33404 case "(($ac_try" in
33405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33406   *) ac_try_echo=$ac_try;;
33407 esac
33408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33409   (eval "$ac_compile") 2>conftest.er1
33410   ac_status=$?
33411   grep -v '^ *+' conftest.er1 >conftest.err
33412   rm -f conftest.er1
33413   cat conftest.err >&5
33414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33415   (exit $ac_status); } && {
33416          test -z "$ac_cxx_werror_flag" ||
33417          test ! -s conftest.err
33418        } && test -s conftest.$ac_objext; then
33419   ac_compiler_gnu=yes
33420 else
33421   echo "$as_me: failed program was:" >&5
33422 sed 's/^/| /' conftest.$ac_ext >&5
33423
33424         ac_compiler_gnu=no
33425 fi
33426
33427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33428 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
33429
33430 fi
33431 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
33432 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
33433 GXX=`test $ac_compiler_gnu = yes && echo yes`
33434 ac_test_CXXFLAGS=${CXXFLAGS+set}
33435 ac_save_CXXFLAGS=$CXXFLAGS
33436 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
33437 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
33438 if test "${ac_cv_prog_cxx_g+set}" = set; then
33439   echo $ECHO_N "(cached) $ECHO_C" >&6
33440 else
33441   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
33442    ac_cxx_werror_flag=yes
33443    ac_cv_prog_cxx_g=no
33444    CXXFLAGS="-g"
33445    cat >conftest.$ac_ext <<_ACEOF
33446 /* confdefs.h.  */
33447 _ACEOF
33448 cat confdefs.h >>conftest.$ac_ext
33449 cat >>conftest.$ac_ext <<_ACEOF
33450 /* end confdefs.h.  */
33451
33452 int
33453 main ()
33454 {
33455
33456   ;
33457   return 0;
33458 }
33459 _ACEOF
33460 rm -f conftest.$ac_objext
33461 if { (ac_try="$ac_compile"
33462 case "(($ac_try" in
33463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33464   *) ac_try_echo=$ac_try;;
33465 esac
33466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33467   (eval "$ac_compile") 2>conftest.er1
33468   ac_status=$?
33469   grep -v '^ *+' conftest.er1 >conftest.err
33470   rm -f conftest.er1
33471   cat conftest.err >&5
33472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33473   (exit $ac_status); } && {
33474          test -z "$ac_cxx_werror_flag" ||
33475          test ! -s conftest.err
33476        } && test -s conftest.$ac_objext; then
33477   ac_cv_prog_cxx_g=yes
33478 else
33479   echo "$as_me: failed program was:" >&5
33480 sed 's/^/| /' conftest.$ac_ext >&5
33481
33482         CXXFLAGS=""
33483       cat >conftest.$ac_ext <<_ACEOF
33484 /* confdefs.h.  */
33485 _ACEOF
33486 cat confdefs.h >>conftest.$ac_ext
33487 cat >>conftest.$ac_ext <<_ACEOF
33488 /* end confdefs.h.  */
33489
33490 int
33491 main ()
33492 {
33493
33494   ;
33495   return 0;
33496 }
33497 _ACEOF
33498 rm -f conftest.$ac_objext
33499 if { (ac_try="$ac_compile"
33500 case "(($ac_try" in
33501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33502   *) ac_try_echo=$ac_try;;
33503 esac
33504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33505   (eval "$ac_compile") 2>conftest.er1
33506   ac_status=$?
33507   grep -v '^ *+' conftest.er1 >conftest.err
33508   rm -f conftest.er1
33509   cat conftest.err >&5
33510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33511   (exit $ac_status); } && {
33512          test -z "$ac_cxx_werror_flag" ||
33513          test ! -s conftest.err
33514        } && test -s conftest.$ac_objext; then
33515   :
33516 else
33517   echo "$as_me: failed program was:" >&5
33518 sed 's/^/| /' conftest.$ac_ext >&5
33519
33520         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
33521          CXXFLAGS="-g"
33522          cat >conftest.$ac_ext <<_ACEOF
33523 /* confdefs.h.  */
33524 _ACEOF
33525 cat confdefs.h >>conftest.$ac_ext
33526 cat >>conftest.$ac_ext <<_ACEOF
33527 /* end confdefs.h.  */
33528
33529 int
33530 main ()
33531 {
33532
33533   ;
33534   return 0;
33535 }
33536 _ACEOF
33537 rm -f conftest.$ac_objext
33538 if { (ac_try="$ac_compile"
33539 case "(($ac_try" in
33540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33541   *) ac_try_echo=$ac_try;;
33542 esac
33543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33544   (eval "$ac_compile") 2>conftest.er1
33545   ac_status=$?
33546   grep -v '^ *+' conftest.er1 >conftest.err
33547   rm -f conftest.er1
33548   cat conftest.err >&5
33549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33550   (exit $ac_status); } && {
33551          test -z "$ac_cxx_werror_flag" ||
33552          test ! -s conftest.err
33553        } && test -s conftest.$ac_objext; then
33554   ac_cv_prog_cxx_g=yes
33555 else
33556   echo "$as_me: failed program was:" >&5
33557 sed 's/^/| /' conftest.$ac_ext >&5
33558
33559
33560 fi
33561
33562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33563 fi
33564
33565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33566 fi
33567
33568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33569    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
33570 fi
33571 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
33572 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
33573 if test "$ac_test_CXXFLAGS" = set; then
33574   CXXFLAGS=$ac_save_CXXFLAGS
33575 elif test $ac_cv_prog_cxx_g = yes; then
33576   if test "$GXX" = yes; then
33577     CXXFLAGS="-g -O2"
33578   else
33579     CXXFLAGS="-g"
33580   fi
33581 else
33582   if test "$GXX" = yes; then
33583     CXXFLAGS="-O2"
33584   else
33585     CXXFLAGS=
33586   fi
33587 fi
33588 ac_ext=cpp
33589 ac_cpp='$CXXCPP $CPPFLAGS'
33590 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33591 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33592 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33593
33594 depcc="$CXX"  am_compiler_list=
33595
33596 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
33597 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
33598 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
33599   echo $ECHO_N "(cached) $ECHO_C" >&6
33600 else
33601   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
33602   # We make a subdir and do the tests there.  Otherwise we can end up
33603   # making bogus files that we don't know about and never remove.  For
33604   # instance it was reported that on HP-UX the gcc test will end up
33605   # making a dummy file named `D' -- because `-MD' means `put the output
33606   # in D'.
33607   mkdir conftest.dir
33608   # Copy depcomp to subdir because otherwise we won't find it if we're
33609   # using a relative directory.
33610   cp "$am_depcomp" conftest.dir
33611   cd conftest.dir
33612   # We will build objects and dependencies in a subdirectory because
33613   # it helps to detect inapplicable dependency modes.  For instance
33614   # both Tru64's cc and ICC support -MD to output dependencies as a
33615   # side effect of compilation, but ICC will put the dependencies in
33616   # the current directory while Tru64 will put them in the object
33617   # directory.
33618   mkdir sub
33619
33620   am_cv_CXX_dependencies_compiler_type=none
33621   if test "$am_compiler_list" = ""; then
33622      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
33623   fi
33624   for depmode in $am_compiler_list; do
33625     # Setup a source with many dependencies, because some compilers
33626     # like to wrap large dependency lists on column 80 (with \), and
33627     # we should not choose a depcomp mode which is confused by this.
33628     #
33629     # We need to recreate these files for each test, as the compiler may
33630     # overwrite some of them when testing with obscure command lines.
33631     # This happens at least with the AIX C compiler.
33632     : > sub/conftest.c
33633     for i in 1 2 3 4 5 6; do
33634       echo '#include "conftst'$i'.h"' >> sub/conftest.c
33635       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
33636       # Solaris 8's {/usr,}/bin/sh.
33637       touch sub/conftst$i.h
33638     done
33639     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
33640
33641     case $depmode in
33642     nosideeffect)
33643       # after this tag, mechanisms are not by side-effect, so they'll
33644       # only be used when explicitly requested
33645       if test "x$enable_dependency_tracking" = xyes; then
33646         continue
33647       else
33648         break
33649       fi
33650       ;;
33651     none) break ;;
33652     esac
33653     # We check with `-c' and `-o' for the sake of the "dashmstdout"
33654     # mode.  It turns out that the SunPro C++ compiler does not properly
33655     # handle `-M -o', and we need to detect this.
33656     if depmode=$depmode \
33657        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
33658        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
33659        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
33660          >/dev/null 2>conftest.err &&
33661        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
33662        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
33663        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
33664        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
33665       # icc doesn't choke on unknown options, it will just issue warnings
33666       # or remarks (even with -Werror).  So we grep stderr for any message
33667       # that says an option was ignored or not supported.
33668       # When given -MP, icc 7.0 and 7.1 complain thusly:
33669       #   icc: Command line warning: ignoring option '-M'; no argument required
33670       # The diagnosis changed in icc 8.0:
33671       #   icc: Command line remark: option '-MP' not supported
33672       if (grep 'ignoring option' conftest.err ||
33673           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
33674         am_cv_CXX_dependencies_compiler_type=$depmode
33675         break
33676       fi
33677     fi
33678   done
33679
33680   cd ..
33681   rm -rf conftest.dir
33682 else
33683   am_cv_CXX_dependencies_compiler_type=none
33684 fi
33685
33686 fi
33687 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
33688 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
33689 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
33690
33691  if
33692   test "x$enable_dependency_tracking" != xno \
33693   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
33694   am__fastdepCXX_TRUE=
33695   am__fastdepCXX_FALSE='#'
33696 else
33697   am__fastdepCXX_TRUE='#'
33698   am__fastdepCXX_FALSE=
33699 fi
33700
33701
33702
33703
33704 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
33705     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
33706     (test "X$CXX" != "Xg++"))) ; then
33707   ac_ext=cpp
33708 ac_cpp='$CXXCPP $CPPFLAGS'
33709 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33710 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33711 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33712 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
33713 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
33714 if test -z "$CXXCPP"; then
33715   if test "${ac_cv_prog_CXXCPP+set}" = set; then
33716   echo $ECHO_N "(cached) $ECHO_C" >&6
33717 else
33718       # Double quotes because CXXCPP needs to be expanded
33719     for CXXCPP in "$CXX -E" "/lib/cpp"
33720     do
33721       ac_preproc_ok=false
33722 for ac_cxx_preproc_warn_flag in '' yes
33723 do
33724   # Use a header file that comes with gcc, so configuring glibc
33725   # with a fresh cross-compiler works.
33726   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33727   # <limits.h> exists even on freestanding compilers.
33728   # On the NeXT, cc -E runs the code through the compiler's parser,
33729   # not just through cpp. "Syntax error" is here to catch this case.
33730   cat >conftest.$ac_ext <<_ACEOF
33731 /* confdefs.h.  */
33732 _ACEOF
33733 cat confdefs.h >>conftest.$ac_ext
33734 cat >>conftest.$ac_ext <<_ACEOF
33735 /* end confdefs.h.  */
33736 #ifdef __STDC__
33737 # include <limits.h>
33738 #else
33739 # include <assert.h>
33740 #endif
33741                      Syntax error
33742 _ACEOF
33743 if { (ac_try="$ac_cpp conftest.$ac_ext"
33744 case "(($ac_try" in
33745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33746   *) ac_try_echo=$ac_try;;
33747 esac
33748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33749   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33750   ac_status=$?
33751   grep -v '^ *+' conftest.er1 >conftest.err
33752   rm -f conftest.er1
33753   cat conftest.err >&5
33754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33755   (exit $ac_status); } >/dev/null && {
33756          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
33757          test ! -s conftest.err
33758        }; then
33759   :
33760 else
33761   echo "$as_me: failed program was:" >&5
33762 sed 's/^/| /' conftest.$ac_ext >&5
33763
33764   # Broken: fails on valid input.
33765 continue
33766 fi
33767
33768 rm -f conftest.err conftest.$ac_ext
33769
33770   # OK, works on sane cases.  Now check whether nonexistent headers
33771   # can be detected and how.
33772   cat >conftest.$ac_ext <<_ACEOF
33773 /* confdefs.h.  */
33774 _ACEOF
33775 cat confdefs.h >>conftest.$ac_ext
33776 cat >>conftest.$ac_ext <<_ACEOF
33777 /* end confdefs.h.  */
33778 #include <ac_nonexistent.h>
33779 _ACEOF
33780 if { (ac_try="$ac_cpp conftest.$ac_ext"
33781 case "(($ac_try" in
33782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33783   *) ac_try_echo=$ac_try;;
33784 esac
33785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33786   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33787   ac_status=$?
33788   grep -v '^ *+' conftest.er1 >conftest.err
33789   rm -f conftest.er1
33790   cat conftest.err >&5
33791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33792   (exit $ac_status); } >/dev/null && {
33793          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
33794          test ! -s conftest.err
33795        }; then
33796   # Broken: success on invalid input.
33797 continue
33798 else
33799   echo "$as_me: failed program was:" >&5
33800 sed 's/^/| /' conftest.$ac_ext >&5
33801
33802   # Passes both tests.
33803 ac_preproc_ok=:
33804 break
33805 fi
33806
33807 rm -f conftest.err conftest.$ac_ext
33808
33809 done
33810 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
33811 rm -f conftest.err conftest.$ac_ext
33812 if $ac_preproc_ok; then
33813   break
33814 fi
33815
33816     done
33817     ac_cv_prog_CXXCPP=$CXXCPP
33818
33819 fi
33820   CXXCPP=$ac_cv_prog_CXXCPP
33821 else
33822   ac_cv_prog_CXXCPP=$CXXCPP
33823 fi
33824 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
33825 echo "${ECHO_T}$CXXCPP" >&6; }
33826 ac_preproc_ok=false
33827 for ac_cxx_preproc_warn_flag in '' yes
33828 do
33829   # Use a header file that comes with gcc, so configuring glibc
33830   # with a fresh cross-compiler works.
33831   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33832   # <limits.h> exists even on freestanding compilers.
33833   # On the NeXT, cc -E runs the code through the compiler's parser,
33834   # not just through cpp. "Syntax error" is here to catch this case.
33835   cat >conftest.$ac_ext <<_ACEOF
33836 /* confdefs.h.  */
33837 _ACEOF
33838 cat confdefs.h >>conftest.$ac_ext
33839 cat >>conftest.$ac_ext <<_ACEOF
33840 /* end confdefs.h.  */
33841 #ifdef __STDC__
33842 # include <limits.h>
33843 #else
33844 # include <assert.h>
33845 #endif
33846                      Syntax error
33847 _ACEOF
33848 if { (ac_try="$ac_cpp conftest.$ac_ext"
33849 case "(($ac_try" in
33850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33851   *) ac_try_echo=$ac_try;;
33852 esac
33853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33854   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33855   ac_status=$?
33856   grep -v '^ *+' conftest.er1 >conftest.err
33857   rm -f conftest.er1
33858   cat conftest.err >&5
33859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33860   (exit $ac_status); } >/dev/null && {
33861          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
33862          test ! -s conftest.err
33863        }; then
33864   :
33865 else
33866   echo "$as_me: failed program was:" >&5
33867 sed 's/^/| /' conftest.$ac_ext >&5
33868
33869   # Broken: fails on valid input.
33870 continue
33871 fi
33872
33873 rm -f conftest.err conftest.$ac_ext
33874
33875   # OK, works on sane cases.  Now check whether nonexistent headers
33876   # can be detected and how.
33877   cat >conftest.$ac_ext <<_ACEOF
33878 /* confdefs.h.  */
33879 _ACEOF
33880 cat confdefs.h >>conftest.$ac_ext
33881 cat >>conftest.$ac_ext <<_ACEOF
33882 /* end confdefs.h.  */
33883 #include <ac_nonexistent.h>
33884 _ACEOF
33885 if { (ac_try="$ac_cpp conftest.$ac_ext"
33886 case "(($ac_try" in
33887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33888   *) ac_try_echo=$ac_try;;
33889 esac
33890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33891   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33892   ac_status=$?
33893   grep -v '^ *+' conftest.er1 >conftest.err
33894   rm -f conftest.er1
33895   cat conftest.err >&5
33896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33897   (exit $ac_status); } >/dev/null && {
33898          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
33899          test ! -s conftest.err
33900        }; then
33901   # Broken: success on invalid input.
33902 continue
33903 else
33904   echo "$as_me: failed program was:" >&5
33905 sed 's/^/| /' conftest.$ac_ext >&5
33906
33907   # Passes both tests.
33908 ac_preproc_ok=:
33909 break
33910 fi
33911
33912 rm -f conftest.err conftest.$ac_ext
33913
33914 done
33915 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
33916 rm -f conftest.err conftest.$ac_ext
33917 if $ac_preproc_ok; then
33918   :
33919 else
33920   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
33921 See \`config.log' for more details." >&5
33922 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
33923 See \`config.log' for more details." >&2;}
33924    { (exit 1); exit 1; }; }
33925 fi
33926
33927 ac_ext=cpp
33928 ac_cpp='$CXXCPP $CPPFLAGS'
33929 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33930 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33931 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33932
33933 fi
33934
33935
33936 ac_ext=f
33937 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
33938 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33939 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
33940 if test -n "$ac_tool_prefix"; then
33941   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
33942   do
33943     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
33944 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
33945 { echo "$as_me:$LINENO: checking for $ac_word" >&5
33946 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
33947 if test "${ac_cv_prog_F77+set}" = set; then
33948   echo $ECHO_N "(cached) $ECHO_C" >&6
33949 else
33950   if test -n "$F77"; then
33951   ac_cv_prog_F77="$F77" # Let the user override the test.
33952 else
33953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33954 for as_dir in $PATH
33955 do
33956   IFS=$as_save_IFS
33957   test -z "$as_dir" && as_dir=.
33958   for ac_exec_ext in '' $ac_executable_extensions; do
33959   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33960     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
33961     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33962     break 2
33963   fi
33964 done
33965 done
33966 IFS=$as_save_IFS
33967
33968 fi
33969 fi
33970 F77=$ac_cv_prog_F77
33971 if test -n "$F77"; then
33972   { echo "$as_me:$LINENO: result: $F77" >&5
33973 echo "${ECHO_T}$F77" >&6; }
33974 else
33975   { echo "$as_me:$LINENO: result: no" >&5
33976 echo "${ECHO_T}no" >&6; }
33977 fi
33978
33979
33980     test -n "$F77" && break
33981   done
33982 fi
33983 if test -z "$F77"; then
33984   ac_ct_F77=$F77
33985   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
33986 do
33987   # Extract the first word of "$ac_prog", so it can be a program name with args.
33988 set dummy $ac_prog; ac_word=$2
33989 { echo "$as_me:$LINENO: checking for $ac_word" >&5
33990 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
33991 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
33992   echo $ECHO_N "(cached) $ECHO_C" >&6
33993 else
33994   if test -n "$ac_ct_F77"; then
33995   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
33996 else
33997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33998 for as_dir in $PATH
33999 do
34000   IFS=$as_save_IFS
34001   test -z "$as_dir" && as_dir=.
34002   for ac_exec_ext in '' $ac_executable_extensions; do
34003   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34004     ac_cv_prog_ac_ct_F77="$ac_prog"
34005     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34006     break 2
34007   fi
34008 done
34009 done
34010 IFS=$as_save_IFS
34011
34012 fi
34013 fi
34014 ac_ct_F77=$ac_cv_prog_ac_ct_F77
34015 if test -n "$ac_ct_F77"; then
34016   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
34017 echo "${ECHO_T}$ac_ct_F77" >&6; }
34018 else
34019   { echo "$as_me:$LINENO: result: no" >&5
34020 echo "${ECHO_T}no" >&6; }
34021 fi
34022
34023
34024   test -n "$ac_ct_F77" && break
34025 done
34026
34027   if test "x$ac_ct_F77" = x; then
34028     F77=""
34029   else
34030     case $cross_compiling:$ac_tool_warned in
34031 yes:)
34032 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
34033 whose name does not start with the host triplet.  If you think this
34034 configuration is useful to you, please write to autoconf@gnu.org." >&5
34035 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
34036 whose name does not start with the host triplet.  If you think this
34037 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
34038 ac_tool_warned=yes ;;
34039 esac
34040     F77=$ac_ct_F77
34041   fi
34042 fi
34043
34044
34045 # Provide some information about the compiler.
34046 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
34047 ac_compiler=`set X $ac_compile; echo $2`
34048 { (ac_try="$ac_compiler --version >&5"
34049 case "(($ac_try" in
34050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34051   *) ac_try_echo=$ac_try;;
34052 esac
34053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34054   (eval "$ac_compiler --version >&5") 2>&5
34055   ac_status=$?
34056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34057   (exit $ac_status); }
34058 { (ac_try="$ac_compiler -v >&5"
34059 case "(($ac_try" in
34060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34061   *) ac_try_echo=$ac_try;;
34062 esac
34063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34064   (eval "$ac_compiler -v >&5") 2>&5
34065   ac_status=$?
34066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34067   (exit $ac_status); }
34068 { (ac_try="$ac_compiler -V >&5"
34069 case "(($ac_try" in
34070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34071   *) ac_try_echo=$ac_try;;
34072 esac
34073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34074   (eval "$ac_compiler -V >&5") 2>&5
34075   ac_status=$?
34076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34077   (exit $ac_status); }
34078 rm -f a.out
34079
34080 # If we don't use `.F' as extension, the preprocessor is not run on the
34081 # input file.  (Note that this only needs to work for GNU compilers.)
34082 ac_save_ext=$ac_ext
34083 ac_ext=F
34084 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
34085 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
34086 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
34087   echo $ECHO_N "(cached) $ECHO_C" >&6
34088 else
34089   cat >conftest.$ac_ext <<_ACEOF
34090       program main
34091 #ifndef __GNUC__
34092        choke me
34093 #endif
34094
34095       end
34096 _ACEOF
34097 rm -f conftest.$ac_objext
34098 if { (ac_try="$ac_compile"
34099 case "(($ac_try" in
34100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34101   *) ac_try_echo=$ac_try;;
34102 esac
34103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34104   (eval "$ac_compile") 2>conftest.er1
34105   ac_status=$?
34106   grep -v '^ *+' conftest.er1 >conftest.err
34107   rm -f conftest.er1
34108   cat conftest.err >&5
34109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34110   (exit $ac_status); } && {
34111          test -z "$ac_f77_werror_flag" ||
34112          test ! -s conftest.err
34113        } && test -s conftest.$ac_objext; then
34114   ac_compiler_gnu=yes
34115 else
34116   echo "$as_me: failed program was:" >&5
34117 sed 's/^/| /' conftest.$ac_ext >&5
34118
34119         ac_compiler_gnu=no
34120 fi
34121
34122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34123 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
34124
34125 fi
34126 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
34127 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
34128 ac_ext=$ac_save_ext
34129 ac_test_FFLAGS=${FFLAGS+set}
34130 ac_save_FFLAGS=$FFLAGS
34131 FFLAGS=
34132 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
34133 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
34134 if test "${ac_cv_prog_f77_g+set}" = set; then
34135   echo $ECHO_N "(cached) $ECHO_C" >&6
34136 else
34137   FFLAGS=-g
34138 cat >conftest.$ac_ext <<_ACEOF
34139       program main
34140
34141       end
34142 _ACEOF
34143 rm -f conftest.$ac_objext
34144 if { (ac_try="$ac_compile"
34145 case "(($ac_try" in
34146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34147   *) ac_try_echo=$ac_try;;
34148 esac
34149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34150   (eval "$ac_compile") 2>conftest.er1
34151   ac_status=$?
34152   grep -v '^ *+' conftest.er1 >conftest.err
34153   rm -f conftest.er1
34154   cat conftest.err >&5
34155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34156   (exit $ac_status); } && {
34157          test -z "$ac_f77_werror_flag" ||
34158          test ! -s conftest.err
34159        } && test -s conftest.$ac_objext; then
34160   ac_cv_prog_f77_g=yes
34161 else
34162   echo "$as_me: failed program was:" >&5
34163 sed 's/^/| /' conftest.$ac_ext >&5
34164
34165         ac_cv_prog_f77_g=no
34166 fi
34167
34168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34169
34170 fi
34171 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
34172 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
34173 if test "$ac_test_FFLAGS" = set; then
34174   FFLAGS=$ac_save_FFLAGS
34175 elif test $ac_cv_prog_f77_g = yes; then
34176   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
34177     FFLAGS="-g -O2"
34178   else
34179     FFLAGS="-g"
34180   fi
34181 else
34182   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
34183     FFLAGS="-O2"
34184   else
34185     FFLAGS=
34186   fi
34187 fi
34188
34189 G77=`test $ac_compiler_gnu = yes && echo yes`
34190 ac_ext=c
34191 ac_cpp='$CPP $CPPFLAGS'
34192 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34193 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34194 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34195
34196
34197
34198 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
34199
34200 # find the maximum length of command line arguments
34201 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
34202 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
34203 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
34204   echo $ECHO_N "(cached) $ECHO_C" >&6
34205 else
34206     i=0
34207   teststring="ABCD"
34208
34209   case $build_os in
34210   msdosdjgpp*)
34211     # On DJGPP, this test can blow up pretty badly due to problems in libc
34212     # (any single argument exceeding 2000 bytes causes a buffer overrun
34213     # during glob expansion).  Even if it were fixed, the result of this
34214     # check would be larger than it should be.
34215     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
34216     ;;
34217
34218   gnu*)
34219     # Under GNU Hurd, this test is not required because there is
34220     # no limit to the length of command line arguments.
34221     # Libtool will interpret -1 as no limit whatsoever
34222     lt_cv_sys_max_cmd_len=-1;
34223     ;;
34224
34225   cygwin* | mingw*)
34226     # On Win9x/ME, this test blows up -- it succeeds, but takes
34227     # about 5 minutes as the teststring grows exponentially.
34228     # Worse, since 9x/ME are not pre-emptively multitasking,
34229     # you end up with a "frozen" computer, even though with patience
34230     # the test eventually succeeds (with a max line length of 256k).
34231     # Instead, let's just punt: use the minimum linelength reported by
34232     # all of the supported platforms: 8192 (on NT/2K/XP).
34233     lt_cv_sys_max_cmd_len=8192;
34234     ;;
34235
34236   amigaos*)
34237     # On AmigaOS with pdksh, this test takes hours, literally.
34238     # So we just punt and use a minimum line length of 8192.
34239     lt_cv_sys_max_cmd_len=8192;
34240     ;;
34241
34242   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
34243     # This has been around since 386BSD, at least.  Likely further.
34244     if test -x /sbin/sysctl; then
34245       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
34246     elif test -x /usr/sbin/sysctl; then
34247       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
34248     else
34249       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
34250     fi
34251     # And add a safety zone
34252     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
34253     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
34254     ;;
34255   osf*)
34256     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
34257     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
34258     # nice to cause kernel panics so lets avoid the loop below.
34259     # First set a reasonable default.
34260     lt_cv_sys_max_cmd_len=16384
34261     #
34262     if test -x /sbin/sysconfig; then
34263       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
34264         *1*) lt_cv_sys_max_cmd_len=-1 ;;
34265       esac
34266     fi
34267     ;;
34268   *)
34269     # If test is not a shell built-in, we'll probably end up computing a
34270     # maximum length that is only half of the actual maximum length, but
34271     # we can't tell.
34272     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
34273     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
34274                = "XX$teststring") >/dev/null 2>&1 &&
34275             new_result=`expr "X$teststring" : ".*" 2>&1` &&
34276             lt_cv_sys_max_cmd_len=$new_result &&
34277             test $i != 17 # 1/2 MB should be enough
34278     do
34279       i=`expr $i + 1`
34280       teststring=$teststring$teststring
34281     done
34282     teststring=
34283     # Add a significant safety factor because C++ compilers can tack on massive
34284     # amounts of additional arguments before passing them to the linker.
34285     # It appears as though 1/2 is a usable value.
34286     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
34287     ;;
34288   esac
34289
34290 fi
34291
34292 if test -n $lt_cv_sys_max_cmd_len ; then
34293   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
34294 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
34295 else
34296   { echo "$as_me:$LINENO: result: none" >&5
34297 echo "${ECHO_T}none" >&6; }
34298 fi
34299
34300
34301
34302
34303 # Check for command to grab the raw symbol name followed by C symbol from nm.
34304 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
34305 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
34306 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
34307   echo $ECHO_N "(cached) $ECHO_C" >&6
34308 else
34309
34310 # These are sane defaults that work on at least a few old systems.
34311 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
34312
34313 # Character class describing NM global symbol codes.
34314 symcode='[BCDEGRST]'
34315
34316 # Regexp to match symbols that can be accessed directly from C.
34317 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
34318
34319 # Transform an extracted symbol line into a proper C declaration
34320 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
34321
34322 # Transform an extracted symbol line into symbol name and symbol address
34323 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'"
34324
34325 # Define system-specific variables.
34326 case $host_os in
34327 aix*)
34328   symcode='[BCDT]'
34329   ;;
34330 cygwin* | mingw* | pw32*)
34331   symcode='[ABCDGISTW]'
34332   ;;
34333 hpux*) # Its linker distinguishes data from code symbols
34334   if test "$host_cpu" = ia64; then
34335     symcode='[ABCDEGRST]'
34336   fi
34337   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
34338   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'"
34339   ;;
34340 linux*)
34341   if test "$host_cpu" = ia64; then
34342     symcode='[ABCDGIRSTW]'
34343     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
34344     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'"
34345   fi
34346   ;;
34347 irix* | nonstopux*)
34348   symcode='[BCDEGRST]'
34349   ;;
34350 osf*)
34351   symcode='[BCDEGQRST]'
34352   ;;
34353 solaris* | sysv5*)
34354   symcode='[BDRT]'
34355   ;;
34356 sysv4)
34357   symcode='[DFNSTU]'
34358   ;;
34359 esac
34360
34361 # Handle CRLF in mingw tool chain
34362 opt_cr=
34363 case $build_os in
34364 mingw*)
34365   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
34366   ;;
34367 esac
34368
34369 # If we're using GNU nm, then use its standard symbol codes.
34370 case `$NM -V 2>&1` in
34371 *GNU* | *'with BFD'*)
34372   symcode='[ABCDGIRSTW]' ;;
34373 esac
34374
34375 # Try without a prefix undercore, then with it.
34376 for ac_symprfx in "" "_"; do
34377
34378   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
34379   symxfrm="\\1 $ac_symprfx\\2 \\2"
34380
34381   # Write the raw and C identifiers.
34382   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
34383
34384   # Check to see that the pipe works correctly.
34385   pipe_works=no
34386
34387   rm -f conftest*
34388   cat > conftest.$ac_ext <<EOF
34389 #ifdef __cplusplus
34390 extern "C" {
34391 #endif
34392 char nm_test_var;
34393 void nm_test_func(){}
34394 #ifdef __cplusplus
34395 }
34396 #endif
34397 int main(){nm_test_var='a';nm_test_func();return(0);}
34398 EOF
34399
34400   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34401   (eval $ac_compile) 2>&5
34402   ac_status=$?
34403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34404   (exit $ac_status); }; then
34405     # Now try to grab the symbols.
34406     nlist=conftest.nm
34407     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
34408   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
34409   ac_status=$?
34410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34411   (exit $ac_status); } && test -s "$nlist"; then
34412       # Try sorting and uniquifying the output.
34413       if sort "$nlist" | uniq > "$nlist"T; then
34414         mv -f "$nlist"T "$nlist"
34415       else
34416         rm -f "$nlist"T
34417       fi
34418
34419       # Make sure that we snagged all the symbols we need.
34420       if grep ' nm_test_var$' "$nlist" >/dev/null; then
34421         if grep ' nm_test_func$' "$nlist" >/dev/null; then
34422           cat <<EOF > conftest.$ac_ext
34423 #ifdef __cplusplus
34424 extern "C" {
34425 #endif
34426
34427 EOF
34428           # Now generate the symbol file.
34429           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
34430
34431           cat <<EOF >> conftest.$ac_ext
34432 #if defined (__STDC__) && __STDC__
34433 # define lt_ptr_t void *
34434 #else
34435 # define lt_ptr_t char *
34436 # define const
34437 #endif
34438
34439 /* The mapping between symbol names and symbols. */
34440 const struct {
34441   const char *name;
34442   lt_ptr_t address;
34443 }
34444 lt_preloaded_symbols[] =
34445 {
34446 EOF
34447           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
34448           cat <<\EOF >> conftest.$ac_ext
34449   {0, (lt_ptr_t) 0}
34450 };
34451
34452 #ifdef __cplusplus
34453 }
34454 #endif
34455 EOF
34456           # Now try linking the two files.
34457           mv conftest.$ac_objext conftstm.$ac_objext
34458           lt_save_LIBS="$LIBS"
34459           lt_save_CFLAGS="$CFLAGS"
34460           LIBS="conftstm.$ac_objext"
34461           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
34462           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34463   (eval $ac_link) 2>&5
34464   ac_status=$?
34465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34466   (exit $ac_status); } && test -s conftest${ac_exeext}; then
34467             pipe_works=yes
34468           fi
34469           LIBS="$lt_save_LIBS"
34470           CFLAGS="$lt_save_CFLAGS"
34471         else
34472           echo "cannot find nm_test_func in $nlist" >&5
34473         fi
34474       else
34475         echo "cannot find nm_test_var in $nlist" >&5
34476       fi
34477     else
34478       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
34479     fi
34480   else
34481     echo "$progname: failed program was:" >&5
34482     cat conftest.$ac_ext >&5
34483   fi
34484   rm -f conftest* conftst*
34485
34486   # Do not use the global_symbol_pipe unless it works.
34487   if test "$pipe_works" = yes; then
34488     break
34489   else
34490     lt_cv_sys_global_symbol_pipe=
34491   fi
34492 done
34493
34494 fi
34495
34496 if test -z "$lt_cv_sys_global_symbol_pipe"; then
34497   lt_cv_sys_global_symbol_to_cdecl=
34498 fi
34499 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
34500   { echo "$as_me:$LINENO: result: failed" >&5
34501 echo "${ECHO_T}failed" >&6; }
34502 else
34503   { echo "$as_me:$LINENO: result: ok" >&5
34504 echo "${ECHO_T}ok" >&6; }
34505 fi
34506
34507 { echo "$as_me:$LINENO: checking for objdir" >&5
34508 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
34509 if test "${lt_cv_objdir+set}" = set; then
34510   echo $ECHO_N "(cached) $ECHO_C" >&6
34511 else
34512   rm -f .libs 2>/dev/null
34513 mkdir .libs 2>/dev/null
34514 if test -d .libs; then
34515   lt_cv_objdir=.libs
34516 else
34517   # MS-DOS does not allow filenames that begin with a dot.
34518   lt_cv_objdir=_libs
34519 fi
34520 rmdir .libs 2>/dev/null
34521 fi
34522 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
34523 echo "${ECHO_T}$lt_cv_objdir" >&6; }
34524 objdir=$lt_cv_objdir
34525
34526
34527
34528
34529
34530 case $host_os in
34531 aix3*)
34532   # AIX sometimes has problems with the GCC collect2 program.  For some
34533   # reason, if we set the COLLECT_NAMES environment variable, the problems
34534   # vanish in a puff of smoke.
34535   if test "X${COLLECT_NAMES+set}" != Xset; then
34536     COLLECT_NAMES=
34537     export COLLECT_NAMES
34538   fi
34539   ;;
34540 esac
34541
34542 # Sed substitution that helps us do robust quoting.  It backslashifies
34543 # metacharacters that are still active within double-quoted strings.
34544 Xsed='sed -e 1s/^X//'
34545 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
34546
34547 # Same as above, but do not quote variable references.
34548 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
34549
34550 # Sed substitution to delay expansion of an escaped shell variable in a
34551 # double_quote_subst'ed string.
34552 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
34553
34554 # Sed substitution to avoid accidental globbing in evaled expressions
34555 no_glob_subst='s/\*/\\\*/g'
34556
34557 # Constants:
34558 rm="rm -f"
34559
34560 # Global variables:
34561 default_ofile=libtool
34562 can_build_shared=yes
34563
34564 # All known linkers require a `.a' archive for static linking (except MSVC,
34565 # which needs '.lib').
34566 libext=a
34567 ltmain="$ac_aux_dir/ltmain.sh"
34568 ofile="$default_ofile"
34569 with_gnu_ld="$lt_cv_prog_gnu_ld"
34570
34571 if test -n "$ac_tool_prefix"; then
34572   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
34573 set dummy ${ac_tool_prefix}ar; ac_word=$2
34574 { echo "$as_me:$LINENO: checking for $ac_word" >&5
34575 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
34576 if test "${ac_cv_prog_AR+set}" = set; then
34577   echo $ECHO_N "(cached) $ECHO_C" >&6
34578 else
34579   if test -n "$AR"; then
34580   ac_cv_prog_AR="$AR" # Let the user override the test.
34581 else
34582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34583 for as_dir in $PATH
34584 do
34585   IFS=$as_save_IFS
34586   test -z "$as_dir" && as_dir=.
34587   for ac_exec_ext in '' $ac_executable_extensions; do
34588   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34589     ac_cv_prog_AR="${ac_tool_prefix}ar"
34590     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34591     break 2
34592   fi
34593 done
34594 done
34595 IFS=$as_save_IFS
34596
34597 fi
34598 fi
34599 AR=$ac_cv_prog_AR
34600 if test -n "$AR"; then
34601   { echo "$as_me:$LINENO: result: $AR" >&5
34602 echo "${ECHO_T}$AR" >&6; }
34603 else
34604   { echo "$as_me:$LINENO: result: no" >&5
34605 echo "${ECHO_T}no" >&6; }
34606 fi
34607
34608
34609 fi
34610 if test -z "$ac_cv_prog_AR"; then
34611   ac_ct_AR=$AR
34612   # Extract the first word of "ar", so it can be a program name with args.
34613 set dummy ar; ac_word=$2
34614 { echo "$as_me:$LINENO: checking for $ac_word" >&5
34615 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
34616 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
34617   echo $ECHO_N "(cached) $ECHO_C" >&6
34618 else
34619   if test -n "$ac_ct_AR"; then
34620   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
34621 else
34622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34623 for as_dir in $PATH
34624 do
34625   IFS=$as_save_IFS
34626   test -z "$as_dir" && as_dir=.
34627   for ac_exec_ext in '' $ac_executable_extensions; do
34628   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34629     ac_cv_prog_ac_ct_AR="ar"
34630     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34631     break 2
34632   fi
34633 done
34634 done
34635 IFS=$as_save_IFS
34636
34637 fi
34638 fi
34639 ac_ct_AR=$ac_cv_prog_ac_ct_AR
34640 if test -n "$ac_ct_AR"; then
34641   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
34642 echo "${ECHO_T}$ac_ct_AR" >&6; }
34643 else
34644   { echo "$as_me:$LINENO: result: no" >&5
34645 echo "${ECHO_T}no" >&6; }
34646 fi
34647
34648   if test "x$ac_ct_AR" = x; then
34649     AR="false"
34650   else
34651     case $cross_compiling:$ac_tool_warned in
34652 yes:)
34653 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
34654 whose name does not start with the host triplet.  If you think this
34655 configuration is useful to you, please write to autoconf@gnu.org." >&5
34656 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
34657 whose name does not start with the host triplet.  If you think this
34658 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
34659 ac_tool_warned=yes ;;
34660 esac
34661     AR=$ac_ct_AR
34662   fi
34663 else
34664   AR="$ac_cv_prog_AR"
34665 fi
34666
34667 if test -n "$ac_tool_prefix"; then
34668   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
34669 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
34670 { echo "$as_me:$LINENO: checking for $ac_word" >&5
34671 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
34672 if test "${ac_cv_prog_RANLIB+set}" = set; then
34673   echo $ECHO_N "(cached) $ECHO_C" >&6
34674 else
34675   if test -n "$RANLIB"; then
34676   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
34677 else
34678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34679 for as_dir in $PATH
34680 do
34681   IFS=$as_save_IFS
34682   test -z "$as_dir" && as_dir=.
34683   for ac_exec_ext in '' $ac_executable_extensions; do
34684   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34685     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
34686     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34687     break 2
34688   fi
34689 done
34690 done
34691 IFS=$as_save_IFS
34692
34693 fi
34694 fi
34695 RANLIB=$ac_cv_prog_RANLIB
34696 if test -n "$RANLIB"; then
34697   { echo "$as_me:$LINENO: result: $RANLIB" >&5
34698 echo "${ECHO_T}$RANLIB" >&6; }
34699 else
34700   { echo "$as_me:$LINENO: result: no" >&5
34701 echo "${ECHO_T}no" >&6; }
34702 fi
34703
34704
34705 fi
34706 if test -z "$ac_cv_prog_RANLIB"; then
34707   ac_ct_RANLIB=$RANLIB
34708   # Extract the first word of "ranlib", so it can be a program name with args.
34709 set dummy ranlib; ac_word=$2
34710 { echo "$as_me:$LINENO: checking for $ac_word" >&5
34711 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
34712 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
34713   echo $ECHO_N "(cached) $ECHO_C" >&6
34714 else
34715   if test -n "$ac_ct_RANLIB"; then
34716   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
34717 else
34718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34719 for as_dir in $PATH
34720 do
34721   IFS=$as_save_IFS
34722   test -z "$as_dir" && as_dir=.
34723   for ac_exec_ext in '' $ac_executable_extensions; do
34724   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34725     ac_cv_prog_ac_ct_RANLIB="ranlib"
34726     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34727     break 2
34728   fi
34729 done
34730 done
34731 IFS=$as_save_IFS
34732
34733 fi
34734 fi
34735 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
34736 if test -n "$ac_ct_RANLIB"; then
34737   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
34738 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
34739 else
34740   { echo "$as_me:$LINENO: result: no" >&5
34741 echo "${ECHO_T}no" >&6; }
34742 fi
34743
34744   if test "x$ac_ct_RANLIB" = x; then
34745     RANLIB=":"
34746   else
34747     case $cross_compiling:$ac_tool_warned in
34748 yes:)
34749 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
34750 whose name does not start with the host triplet.  If you think this
34751 configuration is useful to you, please write to autoconf@gnu.org." >&5
34752 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
34753 whose name does not start with the host triplet.  If you think this
34754 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
34755 ac_tool_warned=yes ;;
34756 esac
34757     RANLIB=$ac_ct_RANLIB
34758   fi
34759 else
34760   RANLIB="$ac_cv_prog_RANLIB"
34761 fi
34762
34763 if test -n "$ac_tool_prefix"; then
34764   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
34765 set dummy ${ac_tool_prefix}strip; ac_word=$2
34766 { echo "$as_me:$LINENO: checking for $ac_word" >&5
34767 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
34768 if test "${ac_cv_prog_STRIP+set}" = set; then
34769   echo $ECHO_N "(cached) $ECHO_C" >&6
34770 else
34771   if test -n "$STRIP"; then
34772   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
34773 else
34774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34775 for as_dir in $PATH
34776 do
34777   IFS=$as_save_IFS
34778   test -z "$as_dir" && as_dir=.
34779   for ac_exec_ext in '' $ac_executable_extensions; do
34780   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34781     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
34782     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34783     break 2
34784   fi
34785 done
34786 done
34787 IFS=$as_save_IFS
34788
34789 fi
34790 fi
34791 STRIP=$ac_cv_prog_STRIP
34792 if test -n "$STRIP"; then
34793   { echo "$as_me:$LINENO: result: $STRIP" >&5
34794 echo "${ECHO_T}$STRIP" >&6; }
34795 else
34796   { echo "$as_me:$LINENO: result: no" >&5
34797 echo "${ECHO_T}no" >&6; }
34798 fi
34799
34800
34801 fi
34802 if test -z "$ac_cv_prog_STRIP"; then
34803   ac_ct_STRIP=$STRIP
34804   # Extract the first word of "strip", so it can be a program name with args.
34805 set dummy strip; ac_word=$2
34806 { echo "$as_me:$LINENO: checking for $ac_word" >&5
34807 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
34808 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
34809   echo $ECHO_N "(cached) $ECHO_C" >&6
34810 else
34811   if test -n "$ac_ct_STRIP"; then
34812   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
34813 else
34814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34815 for as_dir in $PATH
34816 do
34817   IFS=$as_save_IFS
34818   test -z "$as_dir" && as_dir=.
34819   for ac_exec_ext in '' $ac_executable_extensions; do
34820   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34821     ac_cv_prog_ac_ct_STRIP="strip"
34822     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34823     break 2
34824   fi
34825 done
34826 done
34827 IFS=$as_save_IFS
34828
34829 fi
34830 fi
34831 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
34832 if test -n "$ac_ct_STRIP"; then
34833   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
34834 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
34835 else
34836   { echo "$as_me:$LINENO: result: no" >&5
34837 echo "${ECHO_T}no" >&6; }
34838 fi
34839
34840   if test "x$ac_ct_STRIP" = x; then
34841     STRIP=":"
34842   else
34843     case $cross_compiling:$ac_tool_warned in
34844 yes:)
34845 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
34846 whose name does not start with the host triplet.  If you think this
34847 configuration is useful to you, please write to autoconf@gnu.org." >&5
34848 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
34849 whose name does not start with the host triplet.  If you think this
34850 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
34851 ac_tool_warned=yes ;;
34852 esac
34853     STRIP=$ac_ct_STRIP
34854   fi
34855 else
34856   STRIP="$ac_cv_prog_STRIP"
34857 fi
34858
34859
34860 old_CC="$CC"
34861 old_CFLAGS="$CFLAGS"
34862
34863 # Set sane defaults for various variables
34864 test -z "$AR" && AR=ar
34865 test -z "$AR_FLAGS" && AR_FLAGS=cru
34866 test -z "$AS" && AS=as
34867 test -z "$CC" && CC=cc
34868 test -z "$LTCC" && LTCC=$CC
34869 test -z "$DLLTOOL" && DLLTOOL=dlltool
34870 test -z "$LD" && LD=ld
34871 test -z "$LN_S" && LN_S="ln -s"
34872 test -z "$MAGIC_CMD" && MAGIC_CMD=file
34873 test -z "$NM" && NM=nm
34874 test -z "$SED" && SED=sed
34875 test -z "$OBJDUMP" && OBJDUMP=objdump
34876 test -z "$RANLIB" && RANLIB=:
34877 test -z "$STRIP" && STRIP=:
34878 test -z "$ac_objext" && ac_objext=o
34879
34880 # Determine commands to create old-style static archives.
34881 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
34882 old_postinstall_cmds='chmod 644 $oldlib'
34883 old_postuninstall_cmds=
34884
34885 if test -n "$RANLIB"; then
34886   case $host_os in
34887   openbsd*)
34888     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
34889     ;;
34890   *)
34891     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
34892     ;;
34893   esac
34894   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
34895 fi
34896
34897 for cc_temp in $compiler""; do
34898   case $cc_temp in
34899     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
34900     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
34901     \-*) ;;
34902     *) break;;
34903   esac
34904 done
34905 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
34906
34907
34908 # Only perform the check for file, if the check method requires it
34909 case $deplibs_check_method in
34910 file_magic*)
34911   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
34912     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
34913 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
34914 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
34915   echo $ECHO_N "(cached) $ECHO_C" >&6
34916 else
34917   case $MAGIC_CMD in
34918 [\\/*] |  ?:[\\/]*)
34919   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
34920   ;;
34921 *)
34922   lt_save_MAGIC_CMD="$MAGIC_CMD"
34923   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
34924   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
34925   for ac_dir in $ac_dummy; do
34926     IFS="$lt_save_ifs"
34927     test -z "$ac_dir" && ac_dir=.
34928     if test -f $ac_dir/${ac_tool_prefix}file; then
34929       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
34930       if test -n "$file_magic_test_file"; then
34931         case $deplibs_check_method in
34932         "file_magic "*)
34933           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
34934           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
34935           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
34936             $EGREP "$file_magic_regex" > /dev/null; then
34937             :
34938           else
34939             cat <<EOF 1>&2
34940
34941 *** Warning: the command libtool uses to detect shared libraries,
34942 *** $file_magic_cmd, produces output that libtool cannot recognize.
34943 *** The result is that libtool may fail to recognize shared libraries
34944 *** as such.  This will affect the creation of libtool libraries that
34945 *** depend on shared libraries, but programs linked with such libtool
34946 *** libraries will work regardless of this problem.  Nevertheless, you
34947 *** may want to report the problem to your system manager and/or to
34948 *** bug-libtool@gnu.org
34949
34950 EOF
34951           fi ;;
34952         esac
34953       fi
34954       break
34955     fi
34956   done
34957   IFS="$lt_save_ifs"
34958   MAGIC_CMD="$lt_save_MAGIC_CMD"
34959   ;;
34960 esac
34961 fi
34962
34963 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
34964 if test -n "$MAGIC_CMD"; then
34965   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
34966 echo "${ECHO_T}$MAGIC_CMD" >&6; }
34967 else
34968   { echo "$as_me:$LINENO: result: no" >&5
34969 echo "${ECHO_T}no" >&6; }
34970 fi
34971
34972 if test -z "$lt_cv_path_MAGIC_CMD"; then
34973   if test -n "$ac_tool_prefix"; then
34974     { echo "$as_me:$LINENO: checking for file" >&5
34975 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
34976 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
34977   echo $ECHO_N "(cached) $ECHO_C" >&6
34978 else
34979   case $MAGIC_CMD in
34980 [\\/*] |  ?:[\\/]*)
34981   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
34982   ;;
34983 *)
34984   lt_save_MAGIC_CMD="$MAGIC_CMD"
34985   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
34986   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
34987   for ac_dir in $ac_dummy; do
34988     IFS="$lt_save_ifs"
34989     test -z "$ac_dir" && ac_dir=.
34990     if test -f $ac_dir/file; then
34991       lt_cv_path_MAGIC_CMD="$ac_dir/file"
34992       if test -n "$file_magic_test_file"; then
34993         case $deplibs_check_method in
34994         "file_magic "*)
34995           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
34996           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
34997           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
34998             $EGREP "$file_magic_regex" > /dev/null; then
34999             :
35000           else
35001             cat <<EOF 1>&2
35002
35003 *** Warning: the command libtool uses to detect shared libraries,
35004 *** $file_magic_cmd, produces output that libtool cannot recognize.
35005 *** The result is that libtool may fail to recognize shared libraries
35006 *** as such.  This will affect the creation of libtool libraries that
35007 *** depend on shared libraries, but programs linked with such libtool
35008 *** libraries will work regardless of this problem.  Nevertheless, you
35009 *** may want to report the problem to your system manager and/or to
35010 *** bug-libtool@gnu.org
35011
35012 EOF
35013           fi ;;
35014         esac
35015       fi
35016       break
35017     fi
35018   done
35019   IFS="$lt_save_ifs"
35020   MAGIC_CMD="$lt_save_MAGIC_CMD"
35021   ;;
35022 esac
35023 fi
35024
35025 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
35026 if test -n "$MAGIC_CMD"; then
35027   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
35028 echo "${ECHO_T}$MAGIC_CMD" >&6; }
35029 else
35030   { echo "$as_me:$LINENO: result: no" >&5
35031 echo "${ECHO_T}no" >&6; }
35032 fi
35033
35034   else
35035     MAGIC_CMD=:
35036   fi
35037 fi
35038
35039   fi
35040   ;;
35041 esac
35042
35043 enable_dlopen=no
35044 enable_win32_dll=no
35045
35046 # Check whether --enable-libtool-lock was given.
35047 if test "${enable_libtool_lock+set}" = set; then
35048   enableval=$enable_libtool_lock;
35049 fi
35050
35051 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
35052
35053
35054 # Check whether --with-pic was given.
35055 if test "${with_pic+set}" = set; then
35056   withval=$with_pic; pic_mode="$withval"
35057 else
35058   pic_mode=default
35059 fi
35060
35061 test -z "$pic_mode" && pic_mode=default
35062
35063 # Use C for the default configuration in the libtool script
35064 tagname=
35065 lt_save_CC="$CC"
35066 ac_ext=c
35067 ac_cpp='$CPP $CPPFLAGS'
35068 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35069 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35070 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35071
35072
35073 # Source file extension for C test sources.
35074 ac_ext=c
35075
35076 # Object file extension for compiled C test sources.
35077 objext=o
35078 objext=$objext
35079
35080 # Code to be used in simple compile tests
35081 lt_simple_compile_test_code="int some_variable = 0;\n"
35082
35083 # Code to be used in simple link tests
35084 lt_simple_link_test_code='int main(){return(0);}\n'
35085
35086
35087 # If no C compiler was specified, use CC.
35088 LTCC=${LTCC-"$CC"}
35089
35090 # Allow CC to be a program name with arguments.
35091 compiler=$CC
35092
35093
35094 # save warnings/boilerplate of simple test code
35095 ac_outfile=conftest.$ac_objext
35096 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
35097 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
35098 _lt_compiler_boilerplate=`cat conftest.err`
35099 $rm conftest*
35100
35101 ac_outfile=conftest.$ac_objext
35102 printf "$lt_simple_link_test_code" >conftest.$ac_ext
35103 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
35104 _lt_linker_boilerplate=`cat conftest.err`
35105 $rm conftest*
35106
35107
35108 #
35109 # Check for any special shared library compilation flags.
35110 #
35111 lt_prog_cc_shlib=
35112 if test "$GCC" = no; then
35113   case $host_os in
35114   sco3.2v5*)
35115     lt_prog_cc_shlib='-belf'
35116     ;;
35117   esac
35118 fi
35119 if test -n "$lt_prog_cc_shlib"; then
35120
35121     { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
35122 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
35123
35124
35125     cat <<AAW_EOF >>config.warnings
35126 \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries
35127 AAW_EOF
35128
35129
35130   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
35131   else
35132
35133     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
35134 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
35135
35136
35137     cat <<AAW_EOF >>config.warnings
35138 add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure
35139 AAW_EOF
35140
35141
35142     lt_cv_prog_cc_can_build_shared=no
35143   fi
35144 fi
35145
35146
35147 #
35148 # Check to make sure the static flag actually works.
35149 #
35150 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
35151 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6; }
35152 if test "${lt_prog_compiler_static_works+set}" = set; then
35153   echo $ECHO_N "(cached) $ECHO_C" >&6
35154 else
35155   lt_prog_compiler_static_works=no
35156    save_LDFLAGS="$LDFLAGS"
35157    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
35158    printf "$lt_simple_link_test_code" > conftest.$ac_ext
35159    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
35160      # The linker can only warn and ignore the option if not recognized
35161      # So say no if there are warnings
35162      if test -s conftest.err; then
35163        # Append any errors to the config.log.
35164        cat conftest.err 1>&5
35165        $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
35166        $SED '/^$/d' conftest.err >conftest.er2
35167        if diff conftest.exp conftest.er2 >/dev/null; then
35168          lt_prog_compiler_static_works=yes
35169        fi
35170      else
35171        lt_prog_compiler_static_works=yes
35172      fi
35173    fi
35174    $rm conftest*
35175    LDFLAGS="$save_LDFLAGS"
35176
35177 fi
35178 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
35179 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
35180
35181 if test x"$lt_prog_compiler_static_works" = xyes; then
35182     :
35183 else
35184     lt_prog_compiler_static=
35185 fi
35186
35187
35188
35189 ## CAVEAT EMPTOR:
35190 ## There is no encapsulation within the following macros, do not change
35191 ## the running order or otherwise move them around unless you know exactly
35192 ## what you are doing...
35193
35194 lt_prog_compiler_no_builtin_flag=
35195
35196 if test "$GCC" = yes; then
35197   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
35198
35199
35200 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
35201 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
35202 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
35203   echo $ECHO_N "(cached) $ECHO_C" >&6
35204 else
35205   lt_cv_prog_compiler_rtti_exceptions=no
35206   ac_outfile=conftest.$ac_objext
35207    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
35208    lt_compiler_flag="-fno-rtti -fno-exceptions"
35209    # Insert the option either (1) after the last *FLAGS variable, or
35210    # (2) before a word containing "conftest.", or (3) at the end.
35211    # Note that $ac_compile itself does not contain backslashes and begins
35212    # with a dollar sign (not a hyphen), so the echo should work correctly.
35213    # The option is referenced via a variable to avoid confusing sed.
35214    lt_compile=`echo "$ac_compile" | $SED \
35215    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
35216    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
35217    -e 's:$: $lt_compiler_flag:'`
35218    (eval echo "\"\$as_me:35218: $lt_compile\"" >&5)
35219    (eval "$lt_compile" 2>conftest.err)
35220    ac_status=$?
35221    cat conftest.err >&5
35222    echo "$as_me:35222: \$? = $ac_status" >&5
35223    if (exit $ac_status) && test -s "$ac_outfile"; then
35224      # The compiler can only warn and ignore the option if not recognized
35225      # So say no if there are warnings other than the usual output.
35226      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
35227      $SED '/^$/d' conftest.err >conftest.er2
35228      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
35229        lt_cv_prog_compiler_rtti_exceptions=yes
35230      fi
35231    fi
35232    $rm conftest*
35233
35234 fi
35235 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
35236 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
35237
35238 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
35239     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
35240 else
35241     :
35242 fi
35243
35244 fi
35245
35246 lt_prog_compiler_wl=
35247 lt_prog_compiler_pic=
35248 lt_prog_compiler_static=
35249
35250 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
35251 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
35252
35253   if test "$GCC" = yes; then
35254     lt_prog_compiler_wl='-Wl,'
35255     lt_prog_compiler_static='-static'
35256
35257     case $host_os in
35258       aix*)
35259       # All AIX code is PIC.
35260       if test "$host_cpu" = ia64; then
35261         # AIX 5 now supports IA64 processor
35262         lt_prog_compiler_static='-Bstatic'
35263       fi
35264       ;;
35265
35266     amigaos*)
35267       # FIXME: we need at least 68020 code to build shared libraries, but
35268       # adding the `-m68020' flag to GCC prevents building anything better,
35269       # like `-m68040'.
35270       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
35271       ;;
35272
35273     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
35274       # PIC is the default for these OSes.
35275       ;;
35276
35277     mingw* | pw32* | os2*)
35278       # This hack is so that the source file can tell whether it is being
35279       # built for inclusion in a dll (and should export symbols for example).
35280       lt_prog_compiler_pic='-DDLL_EXPORT'
35281       ;;
35282
35283     darwin* | rhapsody*)
35284       # PIC is the default on this platform
35285       # Common symbols not allowed in MH_DYLIB files
35286       lt_prog_compiler_pic='-fno-common'
35287       ;;
35288
35289     msdosdjgpp*)
35290       # Just because we use GCC doesn't mean we suddenly get shared libraries
35291       # on systems that don't support them.
35292       lt_prog_compiler_can_build_shared=no
35293       enable_shared=no
35294       ;;
35295
35296     sysv4*MP*)
35297       if test -d /usr/nec; then
35298         lt_prog_compiler_pic=-Kconform_pic
35299       fi
35300       ;;
35301
35302     hpux*)
35303       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
35304       # not for PA HP-UX.
35305       case $host_cpu in
35306       hppa*64*|ia64*)
35307         # +Z the default
35308         ;;
35309       *)
35310         lt_prog_compiler_pic='-fPIC'
35311         ;;
35312       esac
35313       ;;
35314
35315     *)
35316       lt_prog_compiler_pic='-fPIC'
35317       ;;
35318     esac
35319   else
35320     # PORTME Check for flag to pass linker flags through the system compiler.
35321     case $host_os in
35322     aix*)
35323       lt_prog_compiler_wl='-Wl,'
35324       if test "$host_cpu" = ia64; then
35325         # AIX 5 now supports IA64 processor
35326         lt_prog_compiler_static='-Bstatic'
35327       else
35328         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
35329       fi
35330       ;;
35331       darwin*)
35332         # PIC is the default on this platform
35333         # Common symbols not allowed in MH_DYLIB files
35334        case $cc_basename in
35335          xlc*)
35336          lt_prog_compiler_pic='-qnocommon'
35337          lt_prog_compiler_wl='-Wl,'
35338          ;;
35339        esac
35340        ;;
35341
35342     mingw* | pw32* | os2*)
35343       # This hack is so that the source file can tell whether it is being
35344       # built for inclusion in a dll (and should export symbols for example).
35345       lt_prog_compiler_pic='-DDLL_EXPORT'
35346       ;;
35347
35348     hpux9* | hpux10* | hpux11*)
35349       lt_prog_compiler_wl='-Wl,'
35350       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
35351       # not for PA HP-UX.
35352       case $host_cpu in
35353       hppa*64*|ia64*)
35354         # +Z the default
35355         ;;
35356       *)
35357         lt_prog_compiler_pic='+Z'
35358         ;;
35359       esac
35360       # Is there a better lt_prog_compiler_static that works with the bundled CC?
35361       lt_prog_compiler_static='${wl}-a ${wl}archive'
35362       ;;
35363
35364     irix5* | irix6* | nonstopux*)
35365       lt_prog_compiler_wl='-Wl,'
35366       # PIC (with -KPIC) is the default.
35367       lt_prog_compiler_static='-non_shared'
35368       ;;
35369
35370     newsos6)
35371       lt_prog_compiler_pic='-KPIC'
35372       lt_prog_compiler_static='-Bstatic'
35373       ;;
35374
35375     linux*)
35376       case $cc_basename in
35377       icc* | ecc*)
35378         lt_prog_compiler_wl='-Wl,'
35379         lt_prog_compiler_pic='-KPIC'
35380         lt_prog_compiler_static='-static'
35381         ;;
35382       pgcc* | pgf77* | pgf90* | pgf95*)
35383         # Portland Group compilers (*not* the Pentium gcc compiler,
35384         # which looks to be a dead project)
35385         lt_prog_compiler_wl='-Wl,'
35386         lt_prog_compiler_pic='-fpic'
35387         lt_prog_compiler_static='-Bstatic'
35388         ;;
35389       ccc*)
35390         lt_prog_compiler_wl='-Wl,'
35391         # All Alpha code is PIC.
35392         lt_prog_compiler_static='-non_shared'
35393         ;;
35394       esac
35395       ;;
35396
35397     osf3* | osf4* | osf5*)
35398       lt_prog_compiler_wl='-Wl,'
35399       # All OSF/1 code is PIC.
35400       lt_prog_compiler_static='-non_shared'
35401       ;;
35402
35403     sco3.2v5*)
35404       lt_prog_compiler_pic='-Kpic'
35405       lt_prog_compiler_static='-dn'
35406       ;;
35407
35408     solaris*)
35409       lt_prog_compiler_pic='-KPIC'
35410       lt_prog_compiler_static='-Bstatic'
35411       case $cc_basename in
35412       f77* | f90* | f95*)
35413         lt_prog_compiler_wl='-Qoption ld ';;
35414       *)
35415         lt_prog_compiler_wl='-Wl,';;
35416       esac
35417       ;;
35418
35419     sunos4*)
35420       lt_prog_compiler_wl='-Qoption ld '
35421       lt_prog_compiler_pic='-PIC'
35422       lt_prog_compiler_static='-Bstatic'
35423       ;;
35424
35425     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
35426       lt_prog_compiler_wl='-Wl,'
35427       lt_prog_compiler_pic='-KPIC'
35428       lt_prog_compiler_static='-Bstatic'
35429       ;;
35430
35431     sysv4*MP*)
35432       if test -d /usr/nec ;then
35433         lt_prog_compiler_pic='-Kconform_pic'
35434         lt_prog_compiler_static='-Bstatic'
35435       fi
35436       ;;
35437
35438     unicos*)
35439       lt_prog_compiler_wl='-Wl,'
35440       lt_prog_compiler_can_build_shared=no
35441       ;;
35442
35443     uts4*)
35444       lt_prog_compiler_pic='-pic'
35445       lt_prog_compiler_static='-Bstatic'
35446       ;;
35447
35448     *)
35449       lt_prog_compiler_can_build_shared=no
35450       ;;
35451     esac
35452   fi
35453
35454 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
35455 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
35456
35457 #
35458 # Check to make sure the PIC flag actually works.
35459 #
35460 if test -n "$lt_prog_compiler_pic"; then
35461
35462 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
35463 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
35464 if test "${lt_prog_compiler_pic_works+set}" = set; then
35465   echo $ECHO_N "(cached) $ECHO_C" >&6
35466 else
35467   lt_prog_compiler_pic_works=no
35468   ac_outfile=conftest.$ac_objext
35469    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
35470    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
35471    # Insert the option either (1) after the last *FLAGS variable, or
35472    # (2) before a word containing "conftest.", or (3) at the end.
35473    # Note that $ac_compile itself does not contain backslashes and begins
35474    # with a dollar sign (not a hyphen), so the echo should work correctly.
35475    # The option is referenced via a variable to avoid confusing sed.
35476    lt_compile=`echo "$ac_compile" | $SED \
35477    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
35478    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
35479    -e 's:$: $lt_compiler_flag:'`
35480    (eval echo "\"\$as_me:35480: $lt_compile\"" >&5)
35481    (eval "$lt_compile" 2>conftest.err)
35482    ac_status=$?
35483    cat conftest.err >&5
35484    echo "$as_me:35484: \$? = $ac_status" >&5
35485    if (exit $ac_status) && test -s "$ac_outfile"; then
35486      # The compiler can only warn and ignore the option if not recognized
35487      # So say no if there are warnings other than the usual output.
35488      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
35489      $SED '/^$/d' conftest.err >conftest.er2
35490      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
35491        lt_prog_compiler_pic_works=yes
35492      fi
35493    fi
35494    $rm conftest*
35495
35496 fi
35497 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
35498 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
35499
35500 if test x"$lt_prog_compiler_pic_works" = xyes; then
35501     case $lt_prog_compiler_pic in
35502      "" | " "*) ;;
35503      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
35504      esac
35505 else
35506     lt_prog_compiler_pic=
35507      lt_prog_compiler_can_build_shared=no
35508 fi
35509
35510 fi
35511 case $host_os in
35512   # For platforms which do not support PIC, -DPIC is meaningless:
35513   *djgpp*)
35514     lt_prog_compiler_pic=
35515     ;;
35516   *)
35517     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
35518     ;;
35519 esac
35520
35521 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
35522 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
35523 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
35524   echo $ECHO_N "(cached) $ECHO_C" >&6
35525 else
35526   lt_cv_prog_compiler_c_o=no
35527    $rm -r conftest 2>/dev/null
35528    mkdir conftest
35529    cd conftest
35530    mkdir out
35531    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
35532
35533    lt_compiler_flag="-o out/conftest2.$ac_objext"
35534    # Insert the option either (1) after the last *FLAGS variable, or
35535    # (2) before a word containing "conftest.", or (3) at the end.
35536    # Note that $ac_compile itself does not contain backslashes and begins
35537    # with a dollar sign (not a hyphen), so the echo should work correctly.
35538    lt_compile=`echo "$ac_compile" | $SED \
35539    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
35540    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
35541    -e 's:$: $lt_compiler_flag:'`
35542    (eval echo "\"\$as_me:35542: $lt_compile\"" >&5)
35543    (eval "$lt_compile" 2>out/conftest.err)
35544    ac_status=$?
35545    cat out/conftest.err >&5
35546    echo "$as_me:35546: \$? = $ac_status" >&5
35547    if (exit $ac_status) && test -s out/conftest2.$ac_objext
35548    then
35549      # The compiler can only warn and ignore the option if not recognized
35550      # So say no if there are warnings
35551      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
35552      $SED '/^$/d' out/conftest.err >out/conftest.er2
35553      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
35554        lt_cv_prog_compiler_c_o=yes
35555      fi
35556    fi
35557    chmod u+w . 2>&5
35558    $rm conftest*
35559    # SGI C++ compiler will create directory out/ii_files/ for
35560    # template instantiation
35561    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
35562    $rm out/* && rmdir out
35563    cd ..
35564    rmdir conftest
35565    $rm conftest*
35566
35567 fi
35568 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
35569 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
35570
35571
35572 hard_links="nottested"
35573 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
35574   # do not overwrite the value of need_locks provided by the user
35575   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
35576 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
35577   hard_links=yes
35578   $rm conftest*
35579   ln conftest.a conftest.b 2>/dev/null && hard_links=no
35580   touch conftest.a
35581   ln conftest.a conftest.b 2>&5 || hard_links=no
35582   ln conftest.a conftest.b 2>/dev/null && hard_links=no
35583   { echo "$as_me:$LINENO: result: $hard_links" >&5
35584 echo "${ECHO_T}$hard_links" >&6; }
35585   if test "$hard_links" = no; then
35586
35587     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
35588 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
35589
35590
35591     cat <<AAW_EOF >>config.warnings
35592 \`$CC' does not support \`-c -o', so \`make -j' may be unsafe
35593 AAW_EOF
35594
35595
35596     need_locks=warn
35597   fi
35598 else
35599   need_locks=no
35600 fi
35601
35602 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
35603 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
35604
35605   runpath_var=
35606   allow_undefined_flag=
35607   enable_shared_with_static_runtimes=no
35608   archive_cmds=
35609   archive_expsym_cmds=
35610   old_archive_From_new_cmds=
35611   old_archive_from_expsyms_cmds=
35612   export_dynamic_flag_spec=
35613   whole_archive_flag_spec=
35614   thread_safe_flag_spec=
35615   hardcode_libdir_flag_spec=
35616   hardcode_libdir_flag_spec_ld=
35617   hardcode_libdir_separator=
35618   hardcode_direct=no
35619   hardcode_minus_L=no
35620   hardcode_shlibpath_var=unsupported
35621   link_all_deplibs=unknown
35622   hardcode_automatic=no
35623   module_cmds=
35624   module_expsym_cmds=
35625   always_export_symbols=no
35626   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
35627   # include_expsyms should be a list of space-separated symbols to be *always*
35628   # included in the symbol list
35629   include_expsyms=
35630   # exclude_expsyms can be an extended regexp of symbols to exclude
35631   # it will be wrapped by ` (' and `)$', so one must not match beginning or
35632   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
35633   # as well as any symbol that contains `d'.
35634   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
35635   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
35636   # platforms (ab)use it in PIC code, but their linkers get confused if
35637   # the symbol is explicitly referenced.  Since portable code cannot
35638   # rely on this symbol name, it's probably fine to never include it in
35639   # preloaded symbol tables.
35640   extract_expsyms_cmds=
35641   # Just being paranoid about ensuring that cc_basename is set.
35642   for cc_temp in $compiler""; do
35643   case $cc_temp in
35644     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
35645     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
35646     \-*) ;;
35647     *) break;;
35648   esac
35649 done
35650 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
35651
35652   case $host_os in
35653   cygwin* | mingw* | pw32*)
35654     # FIXME: the MSVC++ port hasn't been tested in a loooong time
35655     # When not using gcc, we currently assume that we are using
35656     # Microsoft Visual C++.
35657     if test "$GCC" != yes; then
35658       with_gnu_ld=no
35659     fi
35660     ;;
35661   openbsd*)
35662     with_gnu_ld=no
35663     ;;
35664   esac
35665
35666   ld_shlibs=yes
35667   if test "$with_gnu_ld" = yes; then
35668     # If archive_cmds runs LD, not CC, wlarc should be empty
35669     wlarc='${wl}'
35670
35671     # Set some defaults for GNU ld with shared library support. These
35672     # are reset later if shared libraries are not supported. Putting them
35673     # here allows them to be overridden if necessary.
35674     runpath_var=LD_RUN_PATH
35675     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
35676     export_dynamic_flag_spec='${wl}--export-dynamic'
35677     # ancient GNU ld didn't support --whole-archive et. al.
35678     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
35679         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
35680       else
35681         whole_archive_flag_spec=
35682     fi
35683     supports_anon_versioning=no
35684     case `$LD -v 2>/dev/null` in
35685       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
35686       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
35687       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
35688       *\ 2.11.*) ;; # other 2.11 versions
35689       *) supports_anon_versioning=yes ;;
35690     esac
35691
35692     # See if GNU ld supports shared libraries.
35693     case $host_os in
35694     aix3* | aix4* | aix5*)
35695       # On AIX/PPC, the GNU linker is very broken
35696       if test "$host_cpu" != ia64; then
35697         ld_shlibs=no
35698         cat <<EOF 1>&2
35699
35700 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
35701 *** to be unable to reliably create shared libraries on AIX.
35702 *** Therefore, libtool is disabling shared libraries support.  If you
35703 *** really care for shared libraries, you may want to modify your PATH
35704 *** so that a non-GNU linker is found, and then restart.
35705
35706 EOF
35707       fi
35708       ;;
35709
35710     amigaos*)
35711       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)'
35712       hardcode_libdir_flag_spec='-L$libdir'
35713       hardcode_minus_L=yes
35714
35715       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
35716       # that the semantics of dynamic libraries on AmigaOS, at least up
35717       # to version 4, is to share data among multiple programs linked
35718       # with the same dynamic library.  Since this doesn't match the
35719       # behavior of shared libraries on other platforms, we can't use
35720       # them.
35721       ld_shlibs=no
35722       ;;
35723
35724     beos*)
35725       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
35726         allow_undefined_flag=unsupported
35727         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
35728         # support --undefined.  This deserves some investigation.  FIXME
35729         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
35730       else
35731         ld_shlibs=no
35732       fi
35733       ;;
35734
35735     cygwin* | mingw* | pw32*)
35736       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
35737       # as there is no search path for DLLs.
35738       hardcode_libdir_flag_spec='-L$libdir'
35739       allow_undefined_flag=unsupported
35740       always_export_symbols=no
35741       enable_shared_with_static_runtimes=yes
35742       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
35743
35744       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
35745         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
35746         # If the export-symbols file already is a .def file (1st line
35747         # is EXPORTS), use it as is; otherwise, prepend...
35748         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
35749           cp $export_symbols $output_objdir/$soname.def;
35750         else
35751           echo EXPORTS > $output_objdir/$soname.def;
35752           cat $export_symbols >> $output_objdir/$soname.def;
35753         fi~
35754         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
35755       else
35756         ld_shlibs=no
35757       fi
35758       ;;
35759
35760     linux*)
35761       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
35762         tmp_addflag=
35763         case $cc_basename,$host_cpu in
35764         pgcc*)                          # Portland Group C compiler
35765           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'
35766           tmp_addflag=' $pic_flag'
35767           ;;
35768         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
35769           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'
35770           tmp_addflag=' $pic_flag -Mnomain' ;;
35771         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
35772           tmp_addflag=' -i_dynamic' ;;
35773         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
35774           tmp_addflag=' -i_dynamic -nofor_main' ;;
35775         ifc* | ifort*)                  # Intel Fortran compiler
35776           tmp_addflag=' -nofor_main' ;;
35777         esac
35778         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
35779
35780         if test $supports_anon_versioning = yes; then
35781           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
35782   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
35783   $echo "local: *; };" >> $output_objdir/$libname.ver~
35784           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
35785         fi
35786       else
35787         ld_shlibs=no
35788       fi
35789       ;;
35790
35791     netbsd*)
35792       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
35793         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
35794         wlarc=
35795       else
35796         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
35797         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
35798       fi
35799       ;;
35800
35801     solaris* | sysv5*)
35802       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
35803         ld_shlibs=no
35804         cat <<EOF 1>&2
35805
35806 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
35807 *** create shared libraries on Solaris systems.  Therefore, libtool
35808 *** is disabling shared libraries support.  We urge you to upgrade GNU
35809 *** binutils to release 2.9.1 or newer.  Another option is to modify
35810 *** your PATH or compiler configuration so that the native linker is
35811 *** used, and then restart.
35812
35813 EOF
35814       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
35815         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
35816         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
35817       else
35818         ld_shlibs=no
35819       fi
35820       ;;
35821
35822     sunos4*)
35823       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
35824       wlarc=
35825       hardcode_direct=yes
35826       hardcode_shlibpath_var=no
35827       ;;
35828
35829     *)
35830       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
35831         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
35832         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
35833       else
35834         ld_shlibs=no
35835       fi
35836       ;;
35837     esac
35838
35839     if test "$ld_shlibs" = no; then
35840       runpath_var=
35841       hardcode_libdir_flag_spec=
35842       export_dynamic_flag_spec=
35843       whole_archive_flag_spec=
35844     fi
35845   else
35846     # PORTME fill in a description of your system's linker (not GNU ld)
35847     case $host_os in
35848     aix3*)
35849       allow_undefined_flag=unsupported
35850       always_export_symbols=yes
35851       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'
35852       # Note: this linker hardcodes the directories in LIBPATH if there
35853       # are no directories specified by -L.
35854       hardcode_minus_L=yes
35855       if test "$GCC" = yes && test -z "$link_static_flag"; then
35856         # Neither direct hardcoding nor static linking is supported with a
35857         # broken collect2.
35858         hardcode_direct=unsupported
35859       fi
35860       ;;
35861
35862     aix4* | aix5*)
35863       if test "$host_cpu" = ia64; then
35864         # On IA64, the linker does run time linking by default, so we don't
35865         # have to do anything special.
35866         aix_use_runtimelinking=no
35867         exp_sym_flag='-Bexport'
35868         no_entry_flag=""
35869       else
35870         # If we're using GNU nm, then we don't want the "-C" option.
35871         # -C means demangle to AIX nm, but means don't demangle with GNU nm
35872         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
35873           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'
35874         else
35875           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'
35876         fi
35877         aix_use_runtimelinking=no
35878
35879         # Test if we are trying to use run time linking or normal
35880         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
35881         # need to do runtime linking.
35882         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
35883           for ld_flag in $LDFLAGS; do
35884           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
35885             aix_use_runtimelinking=yes
35886             break
35887           fi
35888           done
35889         esac
35890
35891         exp_sym_flag='-bexport'
35892         no_entry_flag='-bnoentry'
35893       fi
35894
35895       # When large executables or shared objects are built, AIX ld can
35896       # have problems creating the table of contents.  If linking a library
35897       # or program results in "error TOC overflow" add -mminimal-toc to
35898       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
35899       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
35900
35901       archive_cmds=''
35902       hardcode_direct=yes
35903       hardcode_libdir_separator=':'
35904       link_all_deplibs=yes
35905
35906       if test "$GCC" = yes; then
35907         case $host_os in aix4.[012]|aix4.[012].*)
35908         # We only want to do this on AIX 4.2 and lower, the check
35909         # below for broken collect2 doesn't work under 4.3+
35910           collect2name=`${CC} -print-prog-name=collect2`
35911           if test -f "$collect2name" && \
35912            strings "$collect2name" | grep resolve_lib_name >/dev/null
35913           then
35914           # We have reworked collect2
35915           hardcode_direct=yes
35916           else
35917           # We have old collect2
35918           hardcode_direct=unsupported
35919           # It fails to find uninstalled libraries when the uninstalled
35920           # path is not listed in the libpath.  Setting hardcode_minus_L
35921           # to unsupported forces relinking
35922           hardcode_minus_L=yes
35923           hardcode_libdir_flag_spec='-L$libdir'
35924           hardcode_libdir_separator=
35925           fi
35926         esac
35927         shared_flag='-shared'
35928         if test "$aix_use_runtimelinking" = yes; then
35929           shared_flag="$shared_flag "'${wl}-G'
35930         fi
35931       else
35932         # not using gcc
35933         if test "$host_cpu" = ia64; then
35934         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
35935         # chokes on -Wl,-G. The following line is correct:
35936           shared_flag='-G'
35937         else
35938         if test "$aix_use_runtimelinking" = yes; then
35939             shared_flag='${wl}-G'
35940           else
35941             shared_flag='${wl}-bM:SRE'
35942         fi
35943         fi
35944       fi
35945
35946       # It seems that -bexpall does not export symbols beginning with
35947       # underscore (_), so it is better to generate a list of symbols to export.
35948       always_export_symbols=yes
35949       if test "$aix_use_runtimelinking" = yes; then
35950         # Warning - without using the other runtime loading flags (-brtl),
35951         # -berok will link without error, but may produce a broken library.
35952         allow_undefined_flag='-berok'
35953        # Determine the default libpath from the value encoded in an empty executable.
35954        cat >conftest.$ac_ext <<_ACEOF
35955 /* confdefs.h.  */
35956 _ACEOF
35957 cat confdefs.h >>conftest.$ac_ext
35958 cat >>conftest.$ac_ext <<_ACEOF
35959 /* end confdefs.h.  */
35960
35961 int
35962 main ()
35963 {
35964
35965   ;
35966   return 0;
35967 }
35968 _ACEOF
35969 rm -f conftest.$ac_objext conftest$ac_exeext
35970 if { (ac_try="$ac_link"
35971 case "(($ac_try" in
35972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35973   *) ac_try_echo=$ac_try;;
35974 esac
35975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35976   (eval "$ac_link") 2>conftest.er1
35977   ac_status=$?
35978   grep -v '^ *+' conftest.er1 >conftest.err
35979   rm -f conftest.er1
35980   cat conftest.err >&5
35981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35982   (exit $ac_status); } && {
35983          test -z "$ac_c_werror_flag" ||
35984          test ! -s conftest.err
35985        } && test -s conftest$ac_exeext &&
35986        $as_test_x conftest$ac_exeext; then
35987
35988 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
35989 }'`
35990 # Check for a 64-bit object if we didn't find anything.
35991 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; }
35992 }'`; fi
35993 else
35994   echo "$as_me: failed program was:" >&5
35995 sed 's/^/| /' conftest.$ac_ext >&5
35996
35997
35998 fi
35999
36000 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36001       conftest$ac_exeext conftest.$ac_ext
36002 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
36003
36004        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
36005         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"
36006        else
36007         if test "$host_cpu" = ia64; then
36008           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
36009           allow_undefined_flag="-z nodefs"
36010           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"
36011         else
36012          # Determine the default libpath from the value encoded in an empty executable.
36013          cat >conftest.$ac_ext <<_ACEOF
36014 /* confdefs.h.  */
36015 _ACEOF
36016 cat confdefs.h >>conftest.$ac_ext
36017 cat >>conftest.$ac_ext <<_ACEOF
36018 /* end confdefs.h.  */
36019
36020 int
36021 main ()
36022 {
36023
36024   ;
36025   return 0;
36026 }
36027 _ACEOF
36028 rm -f conftest.$ac_objext conftest$ac_exeext
36029 if { (ac_try="$ac_link"
36030 case "(($ac_try" in
36031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36032   *) ac_try_echo=$ac_try;;
36033 esac
36034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36035   (eval "$ac_link") 2>conftest.er1
36036   ac_status=$?
36037   grep -v '^ *+' conftest.er1 >conftest.err
36038   rm -f conftest.er1
36039   cat conftest.err >&5
36040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36041   (exit $ac_status); } && {
36042          test -z "$ac_c_werror_flag" ||
36043          test ! -s conftest.err
36044        } && test -s conftest$ac_exeext &&
36045        $as_test_x conftest$ac_exeext; then
36046
36047 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
36048 }'`
36049 # Check for a 64-bit object if we didn't find anything.
36050 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; }
36051 }'`; fi
36052 else
36053   echo "$as_me: failed program was:" >&5
36054 sed 's/^/| /' conftest.$ac_ext >&5
36055
36056
36057 fi
36058
36059 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36060       conftest$ac_exeext conftest.$ac_ext
36061 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
36062
36063          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
36064           # Warning - without using the other run time loading flags,
36065           # -berok will link without error, but may produce a broken library.
36066           no_undefined_flag=' ${wl}-bernotok'
36067           allow_undefined_flag=' ${wl}-berok'
36068           # -bexpall does not export symbols beginning with underscore (_)
36069           always_export_symbols=yes
36070           # Exported symbols can be pulled into shared objects from archives
36071           whole_archive_flag_spec=' '
36072           archive_cmds_need_lc=yes
36073           # This is similar to how AIX traditionally builds its shared libraries.
36074           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'
36075         fi
36076       fi
36077       ;;
36078
36079     amigaos*)
36080       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)'
36081       hardcode_libdir_flag_spec='-L$libdir'
36082       hardcode_minus_L=yes
36083       # see comment about different semantics on the GNU ld section
36084       ld_shlibs=no
36085       ;;
36086
36087     bsdi[45]*)
36088       export_dynamic_flag_spec=-rdynamic
36089       ;;
36090
36091     cygwin* | mingw* | pw32*)
36092       # When not using gcc, we currently assume that we are using
36093       # Microsoft Visual C++.
36094       # hardcode_libdir_flag_spec is actually meaningless, as there is
36095       # no search path for DLLs.
36096       hardcode_libdir_flag_spec=' '
36097       allow_undefined_flag=unsupported
36098       # Tell ltmain to make .lib files, not .a files.
36099       libext=lib
36100       # Tell ltmain to make .dll files, not .so files.
36101       shrext_cmds=".dll"
36102       # FIXME: Setting linknames here is a bad hack.
36103       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
36104       # The linker will automatically build a .lib file if we build a DLL.
36105       old_archive_From_new_cmds='true'
36106       # FIXME: Should let the user specify the lib program.
36107       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
36108       fix_srcfile_path='`cygpath -w "$srcfile"`'
36109       enable_shared_with_static_runtimes=yes
36110       ;;
36111
36112     darwin* | rhapsody*)
36113       case $host_os in
36114         rhapsody* | darwin1.[012])
36115          allow_undefined_flag='${wl}-undefined ${wl}suppress'
36116          ;;
36117        *) # Darwin 1.3 on
36118          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
36119            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
36120          else
36121            case ${MACOSX_DEPLOYMENT_TARGET} in
36122              10.[012])
36123                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
36124                ;;
36125              10.*)
36126                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
36127                ;;
36128            esac
36129          fi
36130          ;;
36131       esac
36132       archive_cmds_need_lc=no
36133       hardcode_direct=no
36134       hardcode_automatic=yes
36135       hardcode_shlibpath_var=unsupported
36136       whole_archive_flag_spec=''
36137       link_all_deplibs=yes
36138     if test "$GCC" = yes ; then
36139         output_verbose_link_cmd='echo'
36140         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
36141       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
36142       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
36143       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}'
36144       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}'
36145     else
36146       case $cc_basename in
36147         xlc*)
36148          output_verbose_link_cmd='echo'
36149          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
36150          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
36151           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
36152          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}'
36153           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}'
36154           ;;
36155        *)
36156          ld_shlibs=no
36157           ;;
36158       esac
36159     fi
36160       ;;
36161
36162     dgux*)
36163       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
36164       hardcode_libdir_flag_spec='-L$libdir'
36165       hardcode_shlibpath_var=no
36166       ;;
36167
36168     freebsd1*)
36169       ld_shlibs=no
36170       ;;
36171
36172     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
36173     # support.  Future versions do this automatically, but an explicit c++rt0.o
36174     # does not break anything, and helps significantly (at the cost of a little
36175     # extra space).
36176     freebsd2.2*)
36177       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
36178       hardcode_libdir_flag_spec='-R$libdir'
36179       hardcode_direct=yes
36180       hardcode_shlibpath_var=no
36181       ;;
36182
36183     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
36184     freebsd2*)
36185       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
36186       hardcode_direct=yes
36187       hardcode_minus_L=yes
36188       hardcode_shlibpath_var=no
36189       ;;
36190
36191     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
36192     freebsd* | kfreebsd*-gnu | dragonfly*)
36193       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
36194       hardcode_libdir_flag_spec='-R$libdir'
36195       hardcode_direct=yes
36196       hardcode_shlibpath_var=no
36197       ;;
36198
36199     hpux9*)
36200       if test "$GCC" = yes; then
36201         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'
36202       else
36203         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'
36204       fi
36205       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
36206       hardcode_libdir_separator=:
36207       hardcode_direct=yes
36208
36209       # hardcode_minus_L: Not really in the search PATH,
36210       # but as the default location of the library.
36211       hardcode_minus_L=yes
36212       export_dynamic_flag_spec='${wl}-E'
36213       ;;
36214
36215     hpux10* | hpux11*)
36216       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
36217         case $host_cpu in
36218         hppa*64*|ia64*)
36219           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
36220           ;;
36221         *)
36222           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
36223           ;;
36224         esac
36225       else
36226         case $host_cpu in
36227         hppa*64*|ia64*)
36228           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
36229           ;;
36230         *)
36231           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
36232           ;;
36233         esac
36234       fi
36235       if test "$with_gnu_ld" = no; then
36236         case $host_cpu in
36237         hppa*64*)
36238           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
36239           hardcode_libdir_flag_spec_ld='+b $libdir'
36240           hardcode_libdir_separator=:
36241           hardcode_direct=no
36242           hardcode_shlibpath_var=no
36243           ;;
36244         ia64*)
36245           hardcode_libdir_flag_spec='-L$libdir'
36246           hardcode_direct=no
36247           hardcode_shlibpath_var=no
36248
36249           # hardcode_minus_L: Not really in the search PATH,
36250           # but as the default location of the library.
36251           hardcode_minus_L=yes
36252           ;;
36253         *)
36254           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
36255           hardcode_libdir_separator=:
36256           hardcode_direct=yes
36257           export_dynamic_flag_spec='${wl}-E'
36258
36259           # hardcode_minus_L: Not really in the search PATH,
36260           # but as the default location of the library.
36261           hardcode_minus_L=yes
36262           ;;
36263         esac
36264       fi
36265       ;;
36266
36267     irix5* | irix6* | nonstopux*)
36268       if test "$GCC" = yes; then
36269         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'
36270       else
36271         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'
36272         hardcode_libdir_flag_spec_ld='-rpath $libdir'
36273       fi
36274       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
36275       hardcode_libdir_separator=:
36276       link_all_deplibs=yes
36277       ;;
36278
36279     netbsd*)
36280       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
36281         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
36282       else
36283         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
36284       fi
36285       hardcode_libdir_flag_spec='-R$libdir'
36286       hardcode_direct=yes
36287       hardcode_shlibpath_var=no
36288       ;;
36289
36290     newsos6)
36291       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
36292       hardcode_direct=yes
36293       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
36294       hardcode_libdir_separator=:
36295       hardcode_shlibpath_var=no
36296       ;;
36297
36298     openbsd*)
36299       hardcode_direct=yes
36300       hardcode_shlibpath_var=no
36301       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
36302         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
36303         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
36304         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
36305         export_dynamic_flag_spec='${wl}-E'
36306       else
36307        case $host_os in
36308          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
36309            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
36310            hardcode_libdir_flag_spec='-R$libdir'
36311            ;;
36312          *)
36313            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
36314            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
36315            ;;
36316        esac
36317       fi
36318       ;;
36319
36320     os2*)
36321       hardcode_libdir_flag_spec='-L$libdir'
36322       hardcode_minus_L=yes
36323       allow_undefined_flag=unsupported
36324       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'
36325       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
36326       ;;
36327
36328     osf3*)
36329       if test "$GCC" = yes; then
36330         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
36331         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'
36332       else
36333         allow_undefined_flag=' -expect_unresolved \*'
36334         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'
36335       fi
36336       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
36337       hardcode_libdir_separator=:
36338       ;;
36339
36340     osf4* | osf5*)      # as osf3* with the addition of -msym flag
36341       if test "$GCC" = yes; then
36342         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
36343         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'
36344         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
36345       else
36346         allow_undefined_flag=' -expect_unresolved \*'
36347         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'
36348         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
36349         $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'
36350
36351         # Both c and cxx compiler support -rpath directly
36352         hardcode_libdir_flag_spec='-rpath $libdir'
36353       fi
36354       hardcode_libdir_separator=:
36355       ;;
36356
36357     sco3.2v5*)
36358       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
36359       hardcode_shlibpath_var=no
36360       export_dynamic_flag_spec='${wl}-Bexport'
36361       runpath_var=LD_RUN_PATH
36362       hardcode_runpath_var=yes
36363       ;;
36364
36365     solaris*)
36366       no_undefined_flag=' -z text'
36367       if test "x$archive_cmds" = "x"; then
36368         if test "$GCC" = yes; then
36369           wlarc='${wl}'
36370           if $CC -v --help 2>/dev/null | grep -- -shared  > /dev/null 2> /dev/null; then
36371             archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
36372             archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
36373             $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
36374           else
36375             archive_cmds='$CC ${wl}-G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
36376             archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
36377             $CC ${wl}-G ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
36378           fi
36379         else
36380           wlarc=''
36381           lt_prog_compiler_static='-static'
36382           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
36383           archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
36384           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
36385           lt_prog_compiler_static='-static'
36386         fi
36387       fi
36388       hardcode_libdir_flag_spec='-R$libdir'
36389       hardcode_shlibpath_var=no
36390       case $host_os in
36391       solaris2.[0-5] | solaris2.[0-5].*) ;;
36392       *)
36393         # The compiler driver will combine linker options so we
36394         # cannot just pass the convience library names through
36395         # without $wl, iff we do not link with $LD.
36396         # Luckily, gcc supports the same syntax we need for Sun Studio.
36397         # Supported since Solaris 2.6 (maybe 2.5.1?)
36398         case $wlarc in
36399         '')
36400           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
36401         *)
36402           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' ;;
36403         esac ;;
36404       esac
36405       link_all_deplibs=yes
36406       ;;
36407
36408     sunos4*)
36409       if test "x$host_vendor" = xsequent; then
36410         # Use $CC to link under sequent, because it throws in some extra .o
36411         # files that make .init and .fini sections work.
36412         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
36413       else
36414         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
36415       fi
36416       hardcode_libdir_flag_spec='-L$libdir'
36417       hardcode_direct=yes
36418       hardcode_minus_L=yes
36419       hardcode_shlibpath_var=no
36420       ;;
36421
36422     sysv4)
36423       case $host_vendor in
36424         sni)
36425           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
36426           hardcode_direct=yes # is this really true???
36427         ;;
36428         siemens)
36429           ## LD is ld it makes a PLAMLIB
36430           ## CC just makes a GrossModule.
36431           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
36432           reload_cmds='$CC -r -o $output$reload_objs'
36433           hardcode_direct=no
36434         ;;
36435         motorola)
36436           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
36437           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
36438         ;;
36439       esac
36440       runpath_var='LD_RUN_PATH'
36441       hardcode_shlibpath_var=no
36442       ;;
36443
36444     sysv4.3*)
36445       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
36446       hardcode_shlibpath_var=no
36447       export_dynamic_flag_spec='-Bexport'
36448       ;;
36449
36450     sysv4*MP*)
36451       if test -d /usr/nec; then
36452         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
36453         hardcode_shlibpath_var=no
36454         runpath_var=LD_RUN_PATH
36455         hardcode_runpath_var=yes
36456         ld_shlibs=yes
36457       fi
36458       ;;
36459
36460     sysv4.2uw2*)
36461       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
36462       hardcode_direct=yes
36463       hardcode_minus_L=no
36464       hardcode_shlibpath_var=no
36465       hardcode_runpath_var=yes
36466       runpath_var=LD_RUN_PATH
36467       ;;
36468
36469    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
36470       no_undefined_flag='${wl}-z ${wl}text'
36471       if test "$GCC" = yes; then
36472         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
36473       else
36474         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
36475       fi
36476       runpath_var='LD_RUN_PATH'
36477       hardcode_shlibpath_var=no
36478       ;;
36479
36480     sysv5*)
36481       no_undefined_flag=' -z text'
36482       # $CC -shared without GNU ld will not create a library from C++
36483       # object files and a static libstdc++, better avoid it by now
36484       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
36485       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
36486                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
36487       hardcode_libdir_flag_spec=
36488       hardcode_shlibpath_var=no
36489       runpath_var='LD_RUN_PATH'
36490       ;;
36491
36492     uts4*)
36493       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
36494       hardcode_libdir_flag_spec='-L$libdir'
36495       hardcode_shlibpath_var=no
36496       ;;
36497
36498     *)
36499       ld_shlibs=no
36500       ;;
36501     esac
36502   fi
36503
36504 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
36505 echo "${ECHO_T}$ld_shlibs" >&6; }
36506 test "$ld_shlibs" = no && can_build_shared=no
36507
36508 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
36509 if test "$GCC" = yes; then
36510   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
36511 fi
36512
36513 #
36514 # Do we need to explicitly link libc?
36515 #
36516 case "x$archive_cmds_need_lc" in
36517 x|xyes)
36518   # Assume -lc should be added
36519   archive_cmds_need_lc=yes
36520
36521   if test "$enable_shared" = yes && test "$GCC" = yes; then
36522     case $archive_cmds in
36523     *'~'*)
36524       # FIXME: we may have to deal with multi-command sequences.
36525       ;;
36526     '$CC '*)
36527       # Test whether the compiler implicitly links with -lc since on some
36528       # systems, -lgcc has to come before -lc. If gcc already passes -lc
36529       # to ld, don't add -lc before -lgcc.
36530       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
36531 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
36532       $rm conftest*
36533       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
36534
36535       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36536   (eval $ac_compile) 2>&5
36537   ac_status=$?
36538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36539   (exit $ac_status); } 2>conftest.err; then
36540         soname=conftest
36541         lib=conftest
36542         libobjs=conftest.$ac_objext
36543         deplibs=
36544         wl=$lt_prog_compiler_wl
36545         compiler_flags=-v
36546         linker_flags=-v
36547         verstring=
36548         output_objdir=.
36549         libname=conftest
36550         lt_save_allow_undefined_flag=$allow_undefined_flag
36551         allow_undefined_flag=
36552         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
36553   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
36554   ac_status=$?
36555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36556   (exit $ac_status); }
36557         then
36558           archive_cmds_need_lc=no
36559         else
36560           archive_cmds_need_lc=yes
36561         fi
36562         allow_undefined_flag=$lt_save_allow_undefined_flag
36563       else
36564         cat conftest.err 1>&5
36565       fi
36566       $rm conftest*
36567       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
36568 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
36569       ;;
36570     esac
36571   fi
36572   ;;
36573 esac
36574
36575 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
36576 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
36577 library_names_spec=
36578 libname_spec='lib$name'
36579 soname_spec=
36580 shrext_cmds=".so"
36581 postinstall_cmds=
36582 postuninstall_cmds=
36583 finish_cmds=
36584 finish_eval=
36585 shlibpath_var=
36586 shlibpath_overrides_runpath=unknown
36587 version_type=none
36588 dynamic_linker="$host_os ld.so"
36589 sys_lib_dlsearch_path_spec="/lib /usr/lib"
36590 if test "$GCC" = yes; then
36591   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
36592   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
36593     # if the path contains ";" then we assume it to be the separator
36594     # otherwise default to the standard path separator (i.e. ":") - it is
36595     # assumed that no part of a normal pathname contains ";" but that should
36596     # okay in the real world where ";" in dirpaths is itself problematic.
36597     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
36598   else
36599     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
36600   fi
36601 else
36602   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
36603 fi
36604 need_lib_prefix=unknown
36605 hardcode_into_libs=no
36606
36607 # when you set need_version to no, make sure it does not cause -set_version
36608 # flags to be left without arguments
36609 need_version=unknown
36610
36611 case $host_os in
36612 aix3*)
36613   version_type=linux
36614   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
36615   shlibpath_var=LIBPATH
36616
36617   # AIX 3 has no versioning support, so we append a major version to the name.
36618   soname_spec='${libname}${release}${shared_ext}$major'
36619   ;;
36620
36621 aix4* | aix5*)
36622   version_type=linux
36623   need_lib_prefix=no
36624   need_version=no
36625   hardcode_into_libs=yes
36626   if test "$host_cpu" = ia64; then
36627     # AIX 5 supports IA64
36628     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
36629     shlibpath_var=LD_LIBRARY_PATH
36630   else
36631     # With GCC up to 2.95.x, collect2 would create an import file
36632     # for dependence libraries.  The import file would start with
36633     # the line `#! .'.  This would cause the generated library to
36634     # depend on `.', always an invalid library.  This was fixed in
36635     # development snapshots of GCC prior to 3.0.
36636     case $host_os in
36637       aix4 | aix4.[01] | aix4.[01].*)
36638       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
36639            echo ' yes '
36640            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
36641         :
36642       else
36643         can_build_shared=no
36644       fi
36645       ;;
36646     esac
36647     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
36648     # soname into executable. Probably we can add versioning support to
36649     # collect2, so additional links can be useful in future.
36650     if test "$aix_use_runtimelinking" = yes; then
36651       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
36652       # instead of lib<name>.a to let people know that these are not
36653       # typical AIX shared libraries.
36654       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
36655     else
36656       # We preserve .a as extension for shared libraries through AIX4.2
36657       # and later when we are not doing run time linking.
36658       library_names_spec='${libname}${release}.a $libname.a'
36659       soname_spec='${libname}${release}${shared_ext}$major'
36660     fi
36661     shlibpath_var=LIBPATH
36662   fi
36663   ;;
36664
36665 amigaos*)
36666   library_names_spec='$libname.ixlibrary $libname.a'
36667   # Create ${libname}_ixlibrary.a entries in /sys/libs.
36668   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'
36669   ;;
36670
36671 beos*)
36672   library_names_spec='${libname}${shared_ext}'
36673   dynamic_linker="$host_os ld.so"
36674   shlibpath_var=LIBRARY_PATH
36675   ;;
36676
36677 bsdi[45]*)
36678   version_type=linux
36679   need_version=no
36680   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
36681   soname_spec='${libname}${release}${shared_ext}$major'
36682   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
36683   shlibpath_var=LD_LIBRARY_PATH
36684   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
36685   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
36686   # the default ld.so.conf also contains /usr/contrib/lib and
36687   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
36688   # libtool to hard-code these into programs
36689   ;;
36690
36691 cygwin* | mingw* | pw32*)
36692   version_type=windows
36693   shrext_cmds=".dll"
36694   need_version=no
36695   need_lib_prefix=no
36696
36697   case $GCC,$host_os in
36698   yes,cygwin* | yes,mingw* | yes,pw32*)
36699     library_names_spec='$libname.dll.a'
36700     # DLL is installed to $(libdir)/../bin by postinstall_cmds
36701     postinstall_cmds='base_file=`basename \${file}`~
36702       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
36703       dldir=$destdir/`dirname \$dlpath`~
36704       test -d \$dldir || mkdir -p \$dldir~
36705       $install_prog $dir/$dlname \$dldir/$dlname~
36706       chmod a+x \$dldir/$dlname'
36707     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
36708       dlpath=$dir/\$dldll~
36709        $rm \$dlpath'
36710     shlibpath_overrides_runpath=yes
36711
36712     case $host_os in
36713     cygwin*)
36714       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
36715       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
36716       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
36717       ;;
36718     mingw*)
36719       # MinGW DLLs use traditional 'lib' prefix
36720       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
36721       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
36722       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
36723         # It is most probably a Windows format PATH printed by
36724         # mingw gcc, but we are running on Cygwin. Gcc prints its search
36725         # path with ; separators, and with drive letters. We can handle the
36726         # drive letters (cygwin fileutils understands them), so leave them,
36727         # especially as we might pass files found there to a mingw objdump,
36728         # which wouldn't understand a cygwinified path. Ahh.
36729         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
36730       else
36731         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
36732       fi
36733       ;;
36734     pw32*)
36735       # pw32 DLLs use 'pw' prefix rather than 'lib'
36736       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
36737       ;;
36738     esac
36739     ;;
36740
36741   *)
36742     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
36743     ;;
36744   esac
36745   dynamic_linker='Win32 ld.exe'
36746   # FIXME: first we should search . and the directory the executable is in
36747   shlibpath_var=PATH
36748   ;;
36749
36750 darwin* | rhapsody*)
36751   dynamic_linker="$host_os dyld"
36752   version_type=darwin
36753   need_lib_prefix=no
36754   need_version=no
36755   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
36756   soname_spec='${libname}${release}${major}$shared_ext'
36757   shlibpath_overrides_runpath=yes
36758   shlibpath_var=DYLD_LIBRARY_PATH
36759   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
36760   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
36761   if test "$GCC" = yes; then
36762     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"`
36763   else
36764     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
36765   fi
36766   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
36767   ;;
36768
36769 dgux*)
36770   version_type=linux
36771   need_lib_prefix=no
36772   need_version=no
36773   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
36774   soname_spec='${libname}${release}${shared_ext}$major'
36775   shlibpath_var=LD_LIBRARY_PATH
36776   ;;
36777
36778 freebsd1*)
36779   dynamic_linker=no
36780   ;;
36781
36782 kfreebsd*-gnu)
36783   version_type=linux
36784   need_lib_prefix=no
36785   need_version=no
36786   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
36787   soname_spec='${libname}${release}${shared_ext}$major'
36788   shlibpath_var=LD_LIBRARY_PATH
36789   shlibpath_overrides_runpath=no
36790   hardcode_into_libs=yes
36791   dynamic_linker='GNU ld.so'
36792   ;;
36793
36794 freebsd* | dragonfly*)
36795   # DragonFly does not have aout.  When/if they implement a new
36796   # versioning mechanism, adjust this.
36797   if test -x /usr/bin/objformat; then
36798     objformat=`/usr/bin/objformat`
36799   else
36800     case $host_os in
36801     freebsd[123]*) objformat=aout ;;
36802     *) objformat=elf ;;
36803     esac
36804   fi
36805   version_type=freebsd-$objformat
36806   case $version_type in
36807     freebsd-elf*)
36808       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
36809       need_version=no
36810       need_lib_prefix=no
36811       ;;
36812     freebsd-*)
36813       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
36814       need_version=yes
36815       ;;
36816   esac
36817   shlibpath_var=LD_LIBRARY_PATH
36818   case $host_os in
36819   freebsd2*)
36820     shlibpath_overrides_runpath=yes
36821     ;;
36822   freebsd3.[01]* | freebsdelf3.[01]*)
36823     shlibpath_overrides_runpath=yes
36824     hardcode_into_libs=yes
36825     ;;
36826   *) # from 3.2 on
36827     shlibpath_overrides_runpath=no
36828     hardcode_into_libs=yes
36829     ;;
36830   esac
36831   ;;
36832
36833 gnu*)
36834   version_type=linux
36835   need_lib_prefix=no
36836   need_version=no
36837   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
36838   soname_spec='${libname}${release}${shared_ext}$major'
36839   shlibpath_var=LD_LIBRARY_PATH
36840   hardcode_into_libs=yes
36841   ;;
36842
36843 hpux9* | hpux10* | hpux11*)
36844   # Give a soname corresponding to the major version so that dld.sl refuses to
36845   # link against other versions.
36846   version_type=sunos
36847   need_lib_prefix=no
36848   need_version=no
36849   case $host_cpu in
36850   ia64*)
36851     shrext_cmds='.so'
36852     hardcode_into_libs=yes
36853     dynamic_linker="$host_os dld.so"
36854     shlibpath_var=LD_LIBRARY_PATH
36855     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
36856     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
36857     soname_spec='${libname}${release}${shared_ext}$major'
36858     if test "X$HPUX_IA64_MODE" = X32; then
36859       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
36860     else
36861       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
36862     fi
36863     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
36864     ;;
36865    hppa*64*)
36866      shrext_cmds='.sl'
36867      hardcode_into_libs=yes
36868      dynamic_linker="$host_os dld.sl"
36869      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
36870      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
36871      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
36872      soname_spec='${libname}${release}${shared_ext}$major'
36873      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
36874      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
36875      ;;
36876    *)
36877     shrext_cmds='.sl'
36878     dynamic_linker="$host_os dld.sl"
36879     shlibpath_var=SHLIB_PATH
36880     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
36881     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
36882     soname_spec='${libname}${release}${shared_ext}$major'
36883     ;;
36884   esac
36885   # HP-UX runs *really* slowly unless shared libraries are mode 555.
36886   postinstall_cmds='chmod 555 $lib'
36887   ;;
36888
36889 irix5* | irix6* | nonstopux*)
36890   case $host_os in
36891     nonstopux*) version_type=nonstopux ;;
36892     *)
36893         if test "$lt_cv_prog_gnu_ld" = yes; then
36894                 version_type=linux
36895         else
36896                 version_type=irix
36897         fi ;;
36898   esac
36899   need_lib_prefix=no
36900   need_version=no
36901   soname_spec='${libname}${release}${shared_ext}$major'
36902   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
36903   case $host_os in
36904   irix5* | nonstopux*)
36905     libsuff= shlibsuff=
36906     ;;
36907   *)
36908     case $LD in # libtool.m4 will add one of these switches to LD
36909     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
36910       libsuff= shlibsuff= libmagic=32-bit;;
36911     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
36912       libsuff=32 shlibsuff=N32 libmagic=N32;;
36913     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
36914       libsuff=64 shlibsuff=64 libmagic=64-bit;;
36915     *) libsuff= shlibsuff= libmagic=never-match;;
36916     esac
36917     ;;
36918   esac
36919   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
36920   shlibpath_overrides_runpath=no
36921   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
36922   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
36923   hardcode_into_libs=yes
36924   ;;
36925
36926 # No shared lib support for Linux oldld, aout, or coff.
36927 linux*oldld* | linux*aout* | linux*coff*)
36928   dynamic_linker=no
36929   ;;
36930
36931 # This must be Linux ELF.
36932 linux*)
36933   version_type=linux
36934   need_lib_prefix=no
36935   need_version=no
36936   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
36937   soname_spec='${libname}${release}${shared_ext}$major'
36938   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
36939   shlibpath_var=LD_LIBRARY_PATH
36940   shlibpath_overrides_runpath=no
36941   # This implies no fast_install, which is unacceptable.
36942   # Some rework will be needed to allow for fast_install
36943   # before this can be enabled.
36944   hardcode_into_libs=yes
36945
36946   # Append ld.so.conf contents to the search path
36947   if test -f /etc/ld.so.conf; then
36948     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' ' '`
36949     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
36950   fi
36951
36952   # We used to test for /lib/ld.so.1 and disable shared libraries on
36953   # powerpc, because MkLinux only supported shared libraries with the
36954   # GNU dynamic linker.  Since this was broken with cross compilers,
36955   # most powerpc-linux boxes support dynamic linking these days and
36956   # people can always --disable-shared, the test was removed, and we
36957   # assume the GNU/Linux dynamic linker is in use.
36958   dynamic_linker='GNU/Linux ld.so'
36959   ;;
36960
36961 knetbsd*-gnu)
36962   version_type=linux
36963   need_lib_prefix=no
36964   need_version=no
36965   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
36966   soname_spec='${libname}${release}${shared_ext}$major'
36967   shlibpath_var=LD_LIBRARY_PATH
36968   shlibpath_overrides_runpath=no
36969   hardcode_into_libs=yes
36970   dynamic_linker='GNU ld.so'
36971   ;;
36972
36973 netbsd*)
36974   version_type=sunos
36975   need_lib_prefix=no
36976   need_version=no
36977   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
36978     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
36979     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
36980     dynamic_linker='NetBSD (a.out) ld.so'
36981   else
36982     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
36983     soname_spec='${libname}${release}${shared_ext}$major'
36984     dynamic_linker='NetBSD ld.elf_so'
36985   fi
36986   shlibpath_var=LD_LIBRARY_PATH
36987   shlibpath_overrides_runpath=yes
36988   hardcode_into_libs=yes
36989   ;;
36990
36991 newsos6)
36992   version_type=linux
36993   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
36994   shlibpath_var=LD_LIBRARY_PATH
36995   shlibpath_overrides_runpath=yes
36996   ;;
36997
36998 nto-qnx*)
36999   version_type=linux
37000   need_lib_prefix=no
37001   need_version=no
37002   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
37003   soname_spec='${libname}${release}${shared_ext}$major'
37004   shlibpath_var=LD_LIBRARY_PATH
37005   shlibpath_overrides_runpath=yes
37006   ;;
37007
37008 openbsd*)
37009   version_type=sunos
37010   need_lib_prefix=no
37011   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
37012   case $host_os in
37013     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
37014     *)                         need_version=no  ;;
37015   esac
37016   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
37017   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
37018   shlibpath_var=LD_LIBRARY_PATH
37019   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
37020     case $host_os in
37021       openbsd2.[89] | openbsd2.[89].*)
37022         shlibpath_overrides_runpath=no
37023         ;;
37024       *)
37025         shlibpath_overrides_runpath=yes
37026         ;;
37027       esac
37028   else
37029     shlibpath_overrides_runpath=yes
37030   fi
37031   ;;
37032
37033 os2*)
37034   libname_spec='$name'
37035   shrext_cmds=".dll"
37036   need_lib_prefix=no
37037   library_names_spec='$libname${shared_ext} $libname.a'
37038   dynamic_linker='OS/2 ld.exe'
37039   shlibpath_var=LIBPATH
37040   ;;
37041
37042 osf3* | osf4* | osf5*)
37043   version_type=osf
37044   need_lib_prefix=no
37045   need_version=no
37046   soname_spec='${libname}${release}${shared_ext}$major'
37047   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
37048   shlibpath_var=LD_LIBRARY_PATH
37049   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
37050   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
37051   ;;
37052
37053 sco3.2v5*)
37054   version_type=osf
37055   soname_spec='${libname}${release}${shared_ext}$major'
37056   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
37057   shlibpath_var=LD_LIBRARY_PATH
37058   ;;
37059
37060 solaris*)
37061   version_type=linux
37062   need_lib_prefix=no
37063   need_version=no
37064   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
37065   soname_spec='${libname}${release}${shared_ext}$major'
37066   shlibpath_var=LD_LIBRARY_PATH
37067   shlibpath_overrides_runpath=yes
37068   hardcode_into_libs=yes
37069   # ldd complains unless libraries are executable
37070   postinstall_cmds='chmod +x $lib'
37071   ;;
37072
37073 sunos4*)
37074   version_type=sunos
37075   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
37076   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
37077   shlibpath_var=LD_LIBRARY_PATH
37078   shlibpath_overrides_runpath=yes
37079   if test "$with_gnu_ld" = yes; then
37080     need_lib_prefix=no
37081   fi
37082   need_version=yes
37083   ;;
37084
37085 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
37086   version_type=linux
37087   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
37088   soname_spec='${libname}${release}${shared_ext}$major'
37089   shlibpath_var=LD_LIBRARY_PATH
37090   case $host_vendor in
37091     sni)
37092       shlibpath_overrides_runpath=no
37093       need_lib_prefix=no
37094       export_dynamic_flag_spec='${wl}-Blargedynsym'
37095       runpath_var=LD_RUN_PATH
37096       ;;
37097     siemens)
37098       need_lib_prefix=no
37099       ;;
37100     motorola)
37101       need_lib_prefix=no
37102       need_version=no
37103       shlibpath_overrides_runpath=no
37104       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
37105       ;;
37106   esac
37107   ;;
37108
37109 sysv4*MP*)
37110   if test -d /usr/nec ;then
37111     version_type=linux
37112     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
37113     soname_spec='$libname${shared_ext}.$major'
37114     shlibpath_var=LD_LIBRARY_PATH
37115   fi
37116   ;;
37117
37118 uts4*)
37119   version_type=linux
37120   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
37121   soname_spec='${libname}${release}${shared_ext}$major'
37122   shlibpath_var=LD_LIBRARY_PATH
37123   ;;
37124
37125 *)
37126   dynamic_linker=no
37127   ;;
37128 esac
37129 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
37130 echo "${ECHO_T}$dynamic_linker" >&6; }
37131 test "$dynamic_linker" = no && can_build_shared=no
37132
37133 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
37134 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
37135 hardcode_action=
37136 if test -n "$hardcode_libdir_flag_spec" || \
37137    test -n "$runpath_var" || \
37138    test "X$hardcode_automatic" = "Xyes" ; then
37139
37140   # We can hardcode non-existant directories.
37141   if test "$hardcode_direct" != no &&
37142      # If the only mechanism to avoid hardcoding is shlibpath_var, we
37143      # have to relink, otherwise we might link with an installed library
37144      # when we should be linking with a yet-to-be-installed one
37145      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
37146      test "$hardcode_minus_L" != no; then
37147     # Linking always hardcodes the temporary library directory.
37148     hardcode_action=relink
37149   else
37150     # We can link without hardcoding, and we can hardcode nonexisting dirs.
37151     hardcode_action=immediate
37152   fi
37153 else
37154   # We cannot hardcode anything, or else we can only hardcode existing
37155   # directories.
37156   hardcode_action=unsupported
37157 fi
37158 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
37159 echo "${ECHO_T}$hardcode_action" >&6; }
37160
37161 if test "$hardcode_action" = relink; then
37162   # Fast installation is not supported
37163   enable_fast_install=no
37164 elif test "$shlibpath_overrides_runpath" = yes ||
37165      test "$enable_shared" = no; then
37166   # Fast installation is not necessary
37167   enable_fast_install=needless
37168 fi
37169
37170 striplib=
37171 old_striplib=
37172 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
37173 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
37174 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
37175   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
37176   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
37177   { echo "$as_me:$LINENO: result: yes" >&5
37178 echo "${ECHO_T}yes" >&6; }
37179 else
37180 # FIXME - insert some real tests, host_os isn't really good enough
37181   case $host_os in
37182    darwin*)
37183        if test -n "$STRIP" ; then
37184          striplib="$STRIP -x"
37185          { echo "$as_me:$LINENO: result: yes" >&5
37186 echo "${ECHO_T}yes" >&6; }
37187        else
37188   { echo "$as_me:$LINENO: result: no" >&5
37189 echo "${ECHO_T}no" >&6; }
37190 fi
37191        ;;
37192    *)
37193   { echo "$as_me:$LINENO: result: no" >&5
37194 echo "${ECHO_T}no" >&6; }
37195     ;;
37196   esac
37197 fi
37198
37199 if test "x$enable_dlopen" != xyes; then
37200   enable_dlopen=unknown
37201   enable_dlopen_self=unknown
37202   enable_dlopen_self_static=unknown
37203 else
37204   lt_cv_dlopen=no
37205   lt_cv_dlopen_libs=
37206
37207   case $host_os in
37208   beos*)
37209     lt_cv_dlopen="load_add_on"
37210     lt_cv_dlopen_libs=
37211     lt_cv_dlopen_self=yes
37212     ;;
37213
37214   mingw* | pw32*)
37215     lt_cv_dlopen="LoadLibrary"
37216     lt_cv_dlopen_libs=
37217    ;;
37218
37219   cygwin*)
37220     lt_cv_dlopen="dlopen"
37221     lt_cv_dlopen_libs=
37222    ;;
37223
37224   darwin*)
37225   # if libdl is installed we need to link against it
37226     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
37227 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
37228 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
37229   echo $ECHO_N "(cached) $ECHO_C" >&6
37230 else
37231   ac_check_lib_save_LIBS=$LIBS
37232 LIBS="-ldl  $LIBS"
37233 cat >conftest.$ac_ext <<_ACEOF
37234 /* confdefs.h.  */
37235 _ACEOF
37236 cat confdefs.h >>conftest.$ac_ext
37237 cat >>conftest.$ac_ext <<_ACEOF
37238 /* end confdefs.h.  */
37239
37240 /* Override any GCC internal prototype to avoid an error.
37241    Use char because int might match the return type of a GCC
37242    builtin and then its argument prototype would still apply.  */
37243 #ifdef __cplusplus
37244 extern "C"
37245 #endif
37246 char dlopen ();
37247 int
37248 main ()
37249 {
37250 return dlopen ();
37251   ;
37252   return 0;
37253 }
37254 _ACEOF
37255 rm -f conftest.$ac_objext conftest$ac_exeext
37256 if { (ac_try="$ac_link"
37257 case "(($ac_try" in
37258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37259   *) ac_try_echo=$ac_try;;
37260 esac
37261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37262   (eval "$ac_link") 2>conftest.er1
37263   ac_status=$?
37264   grep -v '^ *+' conftest.er1 >conftest.err
37265   rm -f conftest.er1
37266   cat conftest.err >&5
37267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37268   (exit $ac_status); } && {
37269          test -z "$ac_c_werror_flag" ||
37270          test ! -s conftest.err
37271        } && test -s conftest$ac_exeext &&
37272        $as_test_x conftest$ac_exeext; then
37273   ac_cv_lib_dl_dlopen=yes
37274 else
37275   echo "$as_me: failed program was:" >&5
37276 sed 's/^/| /' conftest.$ac_ext >&5
37277
37278         ac_cv_lib_dl_dlopen=no
37279 fi
37280
37281 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37282       conftest$ac_exeext conftest.$ac_ext
37283 LIBS=$ac_check_lib_save_LIBS
37284 fi
37285 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
37286 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
37287 if test $ac_cv_lib_dl_dlopen = yes; then
37288   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
37289 else
37290
37291     lt_cv_dlopen="dyld"
37292     lt_cv_dlopen_libs=
37293     lt_cv_dlopen_self=yes
37294
37295 fi
37296
37297    ;;
37298
37299   *)
37300     { echo "$as_me:$LINENO: checking for shl_load" >&5
37301 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
37302 if test "${ac_cv_func_shl_load+set}" = set; then
37303   echo $ECHO_N "(cached) $ECHO_C" >&6
37304 else
37305   cat >conftest.$ac_ext <<_ACEOF
37306 /* confdefs.h.  */
37307 _ACEOF
37308 cat confdefs.h >>conftest.$ac_ext
37309 cat >>conftest.$ac_ext <<_ACEOF
37310 /* end confdefs.h.  */
37311 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
37312    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37313 #define shl_load innocuous_shl_load
37314
37315 /* System header to define __stub macros and hopefully few prototypes,
37316     which can conflict with char shl_load (); below.
37317     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37318     <limits.h> exists even on freestanding compilers.  */
37319
37320 #ifdef __STDC__
37321 # include <limits.h>
37322 #else
37323 # include <assert.h>
37324 #endif
37325
37326 #undef shl_load
37327
37328 /* Override any GCC internal prototype to avoid an error.
37329    Use char because int might match the return type of a GCC
37330    builtin and then its argument prototype would still apply.  */
37331 #ifdef __cplusplus
37332 extern "C"
37333 #endif
37334 char shl_load ();
37335 /* The GNU C library defines this for functions which it implements
37336     to always fail with ENOSYS.  Some functions are actually named
37337     something starting with __ and the normal name is an alias.  */
37338 #if defined __stub_shl_load || defined __stub___shl_load
37339 choke me
37340 #endif
37341
37342 int
37343 main ()
37344 {
37345 return shl_load ();
37346   ;
37347   return 0;
37348 }
37349 _ACEOF
37350 rm -f conftest.$ac_objext conftest$ac_exeext
37351 if { (ac_try="$ac_link"
37352 case "(($ac_try" in
37353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37354   *) ac_try_echo=$ac_try;;
37355 esac
37356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37357   (eval "$ac_link") 2>conftest.er1
37358   ac_status=$?
37359   grep -v '^ *+' conftest.er1 >conftest.err
37360   rm -f conftest.er1
37361   cat conftest.err >&5
37362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37363   (exit $ac_status); } && {
37364          test -z "$ac_c_werror_flag" ||
37365          test ! -s conftest.err
37366        } && test -s conftest$ac_exeext &&
37367        $as_test_x conftest$ac_exeext; then
37368   ac_cv_func_shl_load=yes
37369 else
37370   echo "$as_me: failed program was:" >&5
37371 sed 's/^/| /' conftest.$ac_ext >&5
37372
37373         ac_cv_func_shl_load=no
37374 fi
37375
37376 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37377       conftest$ac_exeext conftest.$ac_ext
37378 fi
37379 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
37380 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
37381 if test $ac_cv_func_shl_load = yes; then
37382   lt_cv_dlopen="shl_load"
37383 else
37384   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
37385 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
37386 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
37387   echo $ECHO_N "(cached) $ECHO_C" >&6
37388 else
37389   ac_check_lib_save_LIBS=$LIBS
37390 LIBS="-ldld  $LIBS"
37391 cat >conftest.$ac_ext <<_ACEOF
37392 /* confdefs.h.  */
37393 _ACEOF
37394 cat confdefs.h >>conftest.$ac_ext
37395 cat >>conftest.$ac_ext <<_ACEOF
37396 /* end confdefs.h.  */
37397
37398 /* Override any GCC internal prototype to avoid an error.
37399    Use char because int might match the return type of a GCC
37400    builtin and then its argument prototype would still apply.  */
37401 #ifdef __cplusplus
37402 extern "C"
37403 #endif
37404 char shl_load ();
37405 int
37406 main ()
37407 {
37408 return shl_load ();
37409   ;
37410   return 0;
37411 }
37412 _ACEOF
37413 rm -f conftest.$ac_objext conftest$ac_exeext
37414 if { (ac_try="$ac_link"
37415 case "(($ac_try" in
37416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37417   *) ac_try_echo=$ac_try;;
37418 esac
37419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37420   (eval "$ac_link") 2>conftest.er1
37421   ac_status=$?
37422   grep -v '^ *+' conftest.er1 >conftest.err
37423   rm -f conftest.er1
37424   cat conftest.err >&5
37425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37426   (exit $ac_status); } && {
37427          test -z "$ac_c_werror_flag" ||
37428          test ! -s conftest.err
37429        } && test -s conftest$ac_exeext &&
37430        $as_test_x conftest$ac_exeext; then
37431   ac_cv_lib_dld_shl_load=yes
37432 else
37433   echo "$as_me: failed program was:" >&5
37434 sed 's/^/| /' conftest.$ac_ext >&5
37435
37436         ac_cv_lib_dld_shl_load=no
37437 fi
37438
37439 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37440       conftest$ac_exeext conftest.$ac_ext
37441 LIBS=$ac_check_lib_save_LIBS
37442 fi
37443 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
37444 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
37445 if test $ac_cv_lib_dld_shl_load = yes; then
37446   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
37447 else
37448   { echo "$as_me:$LINENO: checking for dlopen" >&5
37449 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
37450 if test "${ac_cv_func_dlopen+set}" = set; then
37451   echo $ECHO_N "(cached) $ECHO_C" >&6
37452 else
37453   cat >conftest.$ac_ext <<_ACEOF
37454 /* confdefs.h.  */
37455 _ACEOF
37456 cat confdefs.h >>conftest.$ac_ext
37457 cat >>conftest.$ac_ext <<_ACEOF
37458 /* end confdefs.h.  */
37459 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
37460    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37461 #define dlopen innocuous_dlopen
37462
37463 /* System header to define __stub macros and hopefully few prototypes,
37464     which can conflict with char dlopen (); below.
37465     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37466     <limits.h> exists even on freestanding compilers.  */
37467
37468 #ifdef __STDC__
37469 # include <limits.h>
37470 #else
37471 # include <assert.h>
37472 #endif
37473
37474 #undef dlopen
37475
37476 /* Override any GCC internal prototype to avoid an error.
37477    Use char because int might match the return type of a GCC
37478    builtin and then its argument prototype would still apply.  */
37479 #ifdef __cplusplus
37480 extern "C"
37481 #endif
37482 char dlopen ();
37483 /* The GNU C library defines this for functions which it implements
37484     to always fail with ENOSYS.  Some functions are actually named
37485     something starting with __ and the normal name is an alias.  */
37486 #if defined __stub_dlopen || defined __stub___dlopen
37487 choke me
37488 #endif
37489
37490 int
37491 main ()
37492 {
37493 return dlopen ();
37494   ;
37495   return 0;
37496 }
37497 _ACEOF
37498 rm -f conftest.$ac_objext conftest$ac_exeext
37499 if { (ac_try="$ac_link"
37500 case "(($ac_try" in
37501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37502   *) ac_try_echo=$ac_try;;
37503 esac
37504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37505   (eval "$ac_link") 2>conftest.er1
37506   ac_status=$?
37507   grep -v '^ *+' conftest.er1 >conftest.err
37508   rm -f conftest.er1
37509   cat conftest.err >&5
37510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37511   (exit $ac_status); } && {
37512          test -z "$ac_c_werror_flag" ||
37513          test ! -s conftest.err
37514        } && test -s conftest$ac_exeext &&
37515        $as_test_x conftest$ac_exeext; then
37516   ac_cv_func_dlopen=yes
37517 else
37518   echo "$as_me: failed program was:" >&5
37519 sed 's/^/| /' conftest.$ac_ext >&5
37520
37521         ac_cv_func_dlopen=no
37522 fi
37523
37524 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37525       conftest$ac_exeext conftest.$ac_ext
37526 fi
37527 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
37528 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
37529 if test $ac_cv_func_dlopen = yes; then
37530   lt_cv_dlopen="dlopen"
37531 else
37532   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
37533 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
37534 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
37535   echo $ECHO_N "(cached) $ECHO_C" >&6
37536 else
37537   ac_check_lib_save_LIBS=$LIBS
37538 LIBS="-ldl  $LIBS"
37539 cat >conftest.$ac_ext <<_ACEOF
37540 /* confdefs.h.  */
37541 _ACEOF
37542 cat confdefs.h >>conftest.$ac_ext
37543 cat >>conftest.$ac_ext <<_ACEOF
37544 /* end confdefs.h.  */
37545
37546 /* Override any GCC internal prototype to avoid an error.
37547    Use char because int might match the return type of a GCC
37548    builtin and then its argument prototype would still apply.  */
37549 #ifdef __cplusplus
37550 extern "C"
37551 #endif
37552 char dlopen ();
37553 int
37554 main ()
37555 {
37556 return dlopen ();
37557   ;
37558   return 0;
37559 }
37560 _ACEOF
37561 rm -f conftest.$ac_objext conftest$ac_exeext
37562 if { (ac_try="$ac_link"
37563 case "(($ac_try" in
37564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37565   *) ac_try_echo=$ac_try;;
37566 esac
37567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37568   (eval "$ac_link") 2>conftest.er1
37569   ac_status=$?
37570   grep -v '^ *+' conftest.er1 >conftest.err
37571   rm -f conftest.er1
37572   cat conftest.err >&5
37573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37574   (exit $ac_status); } && {
37575          test -z "$ac_c_werror_flag" ||
37576          test ! -s conftest.err
37577        } && test -s conftest$ac_exeext &&
37578        $as_test_x conftest$ac_exeext; then
37579   ac_cv_lib_dl_dlopen=yes
37580 else
37581   echo "$as_me: failed program was:" >&5
37582 sed 's/^/| /' conftest.$ac_ext >&5
37583
37584         ac_cv_lib_dl_dlopen=no
37585 fi
37586
37587 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37588       conftest$ac_exeext conftest.$ac_ext
37589 LIBS=$ac_check_lib_save_LIBS
37590 fi
37591 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
37592 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
37593 if test $ac_cv_lib_dl_dlopen = yes; then
37594   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
37595 else
37596   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
37597 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
37598 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
37599   echo $ECHO_N "(cached) $ECHO_C" >&6
37600 else
37601   ac_check_lib_save_LIBS=$LIBS
37602 LIBS="-lsvld  $LIBS"
37603 cat >conftest.$ac_ext <<_ACEOF
37604 /* confdefs.h.  */
37605 _ACEOF
37606 cat confdefs.h >>conftest.$ac_ext
37607 cat >>conftest.$ac_ext <<_ACEOF
37608 /* end confdefs.h.  */
37609
37610 /* Override any GCC internal prototype to avoid an error.
37611    Use char because int might match the return type of a GCC
37612    builtin and then its argument prototype would still apply.  */
37613 #ifdef __cplusplus
37614 extern "C"
37615 #endif
37616 char dlopen ();
37617 int
37618 main ()
37619 {
37620 return dlopen ();
37621   ;
37622   return 0;
37623 }
37624 _ACEOF
37625 rm -f conftest.$ac_objext conftest$ac_exeext
37626 if { (ac_try="$ac_link"
37627 case "(($ac_try" in
37628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37629   *) ac_try_echo=$ac_try;;
37630 esac
37631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37632   (eval "$ac_link") 2>conftest.er1
37633   ac_status=$?
37634   grep -v '^ *+' conftest.er1 >conftest.err
37635   rm -f conftest.er1
37636   cat conftest.err >&5
37637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37638   (exit $ac_status); } && {
37639          test -z "$ac_c_werror_flag" ||
37640          test ! -s conftest.err
37641        } && test -s conftest$ac_exeext &&
37642        $as_test_x conftest$ac_exeext; then
37643   ac_cv_lib_svld_dlopen=yes
37644 else
37645   echo "$as_me: failed program was:" >&5
37646 sed 's/^/| /' conftest.$ac_ext >&5
37647
37648         ac_cv_lib_svld_dlopen=no
37649 fi
37650
37651 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37652       conftest$ac_exeext conftest.$ac_ext
37653 LIBS=$ac_check_lib_save_LIBS
37654 fi
37655 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
37656 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
37657 if test $ac_cv_lib_svld_dlopen = yes; then
37658   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
37659 else
37660   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
37661 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
37662 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
37663   echo $ECHO_N "(cached) $ECHO_C" >&6
37664 else
37665   ac_check_lib_save_LIBS=$LIBS
37666 LIBS="-ldld  $LIBS"
37667 cat >conftest.$ac_ext <<_ACEOF
37668 /* confdefs.h.  */
37669 _ACEOF
37670 cat confdefs.h >>conftest.$ac_ext
37671 cat >>conftest.$ac_ext <<_ACEOF
37672 /* end confdefs.h.  */
37673
37674 /* Override any GCC internal prototype to avoid an error.
37675    Use char because int might match the return type of a GCC
37676    builtin and then its argument prototype would still apply.  */
37677 #ifdef __cplusplus
37678 extern "C"
37679 #endif
37680 char dld_link ();
37681 int
37682 main ()
37683 {
37684 return dld_link ();
37685   ;
37686   return 0;
37687 }
37688 _ACEOF
37689 rm -f conftest.$ac_objext conftest$ac_exeext
37690 if { (ac_try="$ac_link"
37691 case "(($ac_try" in
37692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37693   *) ac_try_echo=$ac_try;;
37694 esac
37695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37696   (eval "$ac_link") 2>conftest.er1
37697   ac_status=$?
37698   grep -v '^ *+' conftest.er1 >conftest.err
37699   rm -f conftest.er1
37700   cat conftest.err >&5
37701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37702   (exit $ac_status); } && {
37703          test -z "$ac_c_werror_flag" ||
37704          test ! -s conftest.err
37705        } && test -s conftest$ac_exeext &&
37706        $as_test_x conftest$ac_exeext; then
37707   ac_cv_lib_dld_dld_link=yes
37708 else
37709   echo "$as_me: failed program was:" >&5
37710 sed 's/^/| /' conftest.$ac_ext >&5
37711
37712         ac_cv_lib_dld_dld_link=no
37713 fi
37714
37715 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37716       conftest$ac_exeext conftest.$ac_ext
37717 LIBS=$ac_check_lib_save_LIBS
37718 fi
37719 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
37720 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
37721 if test $ac_cv_lib_dld_dld_link = yes; then
37722   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
37723 fi
37724
37725
37726 fi
37727
37728
37729 fi
37730
37731
37732 fi
37733
37734
37735 fi
37736
37737
37738 fi
37739
37740     ;;
37741   esac
37742
37743   if test "x$lt_cv_dlopen" != xno; then
37744     enable_dlopen=yes
37745   else
37746     enable_dlopen=no
37747   fi
37748
37749   case $lt_cv_dlopen in
37750   dlopen)
37751     save_CPPFLAGS="$CPPFLAGS"
37752     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
37753
37754     save_LDFLAGS="$LDFLAGS"
37755     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
37756
37757     save_LIBS="$LIBS"
37758     LIBS="$lt_cv_dlopen_libs $LIBS"
37759
37760     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
37761 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
37762 if test "${lt_cv_dlopen_self+set}" = set; then
37763   echo $ECHO_N "(cached) $ECHO_C" >&6
37764 else
37765           if test "$cross_compiling" = yes; then :
37766   lt_cv_dlopen_self=cross
37767 else
37768   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
37769   lt_status=$lt_dlunknown
37770   cat > conftest.$ac_ext <<EOF
37771 #line 37771 "configure"
37772 #include "confdefs.h"
37773
37774 #if HAVE_DLFCN_H
37775 #include <dlfcn.h>
37776 #endif
37777
37778 #include <stdio.h>
37779
37780 #ifdef RTLD_GLOBAL
37781 #  define LT_DLGLOBAL           RTLD_GLOBAL
37782 #else
37783 #  ifdef DL_GLOBAL
37784 #    define LT_DLGLOBAL         DL_GLOBAL
37785 #  else
37786 #    define LT_DLGLOBAL         0
37787 #  endif
37788 #endif
37789
37790 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
37791    find out it does not work in some platform. */
37792 #ifndef LT_DLLAZY_OR_NOW
37793 #  ifdef RTLD_LAZY
37794 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
37795 #  else
37796 #    ifdef DL_LAZY
37797 #      define LT_DLLAZY_OR_NOW          DL_LAZY
37798 #    else
37799 #      ifdef RTLD_NOW
37800 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
37801 #      else
37802 #        ifdef DL_NOW
37803 #          define LT_DLLAZY_OR_NOW      DL_NOW
37804 #        else
37805 #          define LT_DLLAZY_OR_NOW      0
37806 #        endif
37807 #      endif
37808 #    endif
37809 #  endif
37810 #endif
37811
37812 #ifdef __cplusplus
37813 extern "C" void exit (int);
37814 #endif
37815
37816 void fnord() { int i=42;}
37817 int main ()
37818 {
37819   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
37820   int status = $lt_dlunknown;
37821
37822   if (self)
37823     {
37824       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
37825       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
37826       /* dlclose (self); */
37827     }
37828
37829     exit (status);
37830 }
37831 EOF
37832   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37833   (eval $ac_link) 2>&5
37834   ac_status=$?
37835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37836   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
37837     (./conftest; exit; ) >&5 2>/dev/null
37838     lt_status=$?
37839     case x$lt_status in
37840       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
37841       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
37842       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
37843     esac
37844   else :
37845     # compilation failed
37846     lt_cv_dlopen_self=no
37847   fi
37848 fi
37849 rm -fr conftest*
37850
37851
37852 fi
37853 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
37854 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
37855
37856     if test "x$lt_cv_dlopen_self" = xyes; then
37857       LDFLAGS="$LDFLAGS $link_static_flag"
37858       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
37859 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
37860 if test "${lt_cv_dlopen_self_static+set}" = set; then
37861   echo $ECHO_N "(cached) $ECHO_C" >&6
37862 else
37863           if test "$cross_compiling" = yes; then :
37864   lt_cv_dlopen_self_static=cross
37865 else
37866   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
37867   lt_status=$lt_dlunknown
37868   cat > conftest.$ac_ext <<EOF
37869 #line 37869 "configure"
37870 #include "confdefs.h"
37871
37872 #if HAVE_DLFCN_H
37873 #include <dlfcn.h>
37874 #endif
37875
37876 #include <stdio.h>
37877
37878 #ifdef RTLD_GLOBAL
37879 #  define LT_DLGLOBAL           RTLD_GLOBAL
37880 #else
37881 #  ifdef DL_GLOBAL
37882 #    define LT_DLGLOBAL         DL_GLOBAL
37883 #  else
37884 #    define LT_DLGLOBAL         0
37885 #  endif
37886 #endif
37887
37888 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
37889    find out it does not work in some platform. */
37890 #ifndef LT_DLLAZY_OR_NOW
37891 #  ifdef RTLD_LAZY
37892 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
37893 #  else
37894 #    ifdef DL_LAZY
37895 #      define LT_DLLAZY_OR_NOW          DL_LAZY
37896 #    else
37897 #      ifdef RTLD_NOW
37898 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
37899 #      else
37900 #        ifdef DL_NOW
37901 #          define LT_DLLAZY_OR_NOW      DL_NOW
37902 #        else
37903 #          define LT_DLLAZY_OR_NOW      0
37904 #        endif
37905 #      endif
37906 #    endif
37907 #  endif
37908 #endif
37909
37910 #ifdef __cplusplus
37911 extern "C" void exit (int);
37912 #endif
37913
37914 void fnord() { int i=42;}
37915 int main ()
37916 {
37917   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
37918   int status = $lt_dlunknown;
37919
37920   if (self)
37921     {
37922       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
37923       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
37924       /* dlclose (self); */
37925     }
37926
37927     exit (status);
37928 }
37929 EOF
37930   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37931   (eval $ac_link) 2>&5
37932   ac_status=$?
37933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37934   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
37935     (./conftest; exit; ) >&5 2>/dev/null
37936     lt_status=$?
37937     case x$lt_status in
37938       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
37939       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
37940       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
37941     esac
37942   else :
37943     # compilation failed
37944     lt_cv_dlopen_self_static=no
37945   fi
37946 fi
37947 rm -fr conftest*
37948
37949
37950 fi
37951 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
37952 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
37953     fi
37954
37955     CPPFLAGS="$save_CPPFLAGS"
37956     LDFLAGS="$save_LDFLAGS"
37957     LIBS="$save_LIBS"
37958     ;;
37959   esac
37960
37961   case $lt_cv_dlopen_self in
37962   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
37963   *) enable_dlopen_self=unknown ;;
37964   esac
37965
37966   case $lt_cv_dlopen_self_static in
37967   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
37968   *) enable_dlopen_self_static=unknown ;;
37969   esac
37970 fi
37971
37972
37973 # Report which librarie types wil actually be built
37974 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
37975 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
37976 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
37977 echo "${ECHO_T}$can_build_shared" >&6; }
37978
37979 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
37980 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
37981 test "$can_build_shared" = "no" && enable_shared=no
37982
37983 # On AIX, shared libraries and static libraries use the same namespace, and
37984 # are all built from PIC.
37985 case $host_os in
37986 aix3*)
37987   test "$enable_shared" = yes && enable_static=no
37988   if test -n "$RANLIB"; then
37989     archive_cmds="$archive_cmds~\$RANLIB \$lib"
37990     postinstall_cmds='$RANLIB $lib'
37991   fi
37992   ;;
37993
37994 aix4* | aix5*)
37995   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
37996     test "$enable_shared" = yes && enable_static=no
37997   fi
37998     ;;
37999 esac
38000 { echo "$as_me:$LINENO: result: $enable_shared" >&5
38001 echo "${ECHO_T}$enable_shared" >&6; }
38002
38003 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
38004 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
38005 # Make sure either enable_shared or enable_static is yes.
38006 test "$enable_shared" = yes || enable_static=yes
38007 { echo "$as_me:$LINENO: result: $enable_static" >&5
38008 echo "${ECHO_T}$enable_static" >&6; }
38009
38010 # The else clause should only fire when bootstrapping the
38011 # libtool distribution, otherwise you forgot to ship ltmain.sh
38012 # with your package, and you will get complaints that there are
38013 # no rules to generate ltmain.sh.
38014 if test -f "$ltmain"; then
38015   # See if we are running on zsh, and set the options which allow our commands through
38016   # without removal of \ escapes.
38017   if test -n "${ZSH_VERSION+set}" ; then
38018     setopt NO_GLOB_SUBST
38019   fi
38020   # Now quote all the things that may contain metacharacters while being
38021   # careful not to overquote the AC_SUBSTed values.  We take copies of the
38022   # variables and quote the copies for generation of the libtool script.
38023   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
38024     SED SHELL STRIP \
38025     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
38026     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
38027     deplibs_check_method reload_flag reload_cmds need_locks \
38028     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
38029     lt_cv_sys_global_symbol_to_c_name_address \
38030     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
38031     old_postinstall_cmds old_postuninstall_cmds \
38032     compiler \
38033     CC \
38034     LD \
38035     lt_prog_compiler_wl \
38036     lt_prog_compiler_pic \
38037     lt_prog_compiler_static \
38038     lt_prog_compiler_no_builtin_flag \
38039     export_dynamic_flag_spec \
38040     thread_safe_flag_spec \
38041     whole_archive_flag_spec \
38042     enable_shared_with_static_runtimes \
38043     old_archive_cmds \
38044     old_archive_from_new_cmds \
38045     predep_objects \
38046     postdep_objects \
38047     predeps \
38048     postdeps \
38049     compiler_lib_search_path \
38050     archive_cmds \
38051     archive_expsym_cmds \
38052     postinstall_cmds \
38053     postuninstall_cmds \
38054     old_archive_from_expsyms_cmds \
38055     allow_undefined_flag \
38056     no_undefined_flag \
38057     export_symbols_cmds \
38058     hardcode_libdir_flag_spec \
38059     hardcode_libdir_flag_spec_ld \
38060     hardcode_libdir_separator \
38061     hardcode_automatic \
38062     module_cmds \
38063     module_expsym_cmds \
38064     lt_cv_prog_compiler_c_o \
38065     exclude_expsyms \
38066     include_expsyms; do
38067
38068     case $var in
38069     old_archive_cmds | \
38070     old_archive_from_new_cmds | \
38071     archive_cmds | \
38072     archive_expsym_cmds | \
38073     module_cmds | \
38074     module_expsym_cmds | \
38075     old_archive_from_expsyms_cmds | \
38076     export_symbols_cmds | \
38077     extract_expsyms_cmds | reload_cmds | finish_cmds | \
38078     postinstall_cmds | postuninstall_cmds | \
38079     old_postinstall_cmds | old_postuninstall_cmds | \
38080     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
38081       # Double-quote double-evaled strings.
38082       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
38083       ;;
38084     *)
38085       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
38086       ;;
38087     esac
38088   done
38089
38090   case $lt_echo in
38091   *'\$0 --fallback-echo"')
38092     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
38093     ;;
38094   esac
38095
38096 cfgfile="${ofile}T"
38097   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
38098   $rm -f "$cfgfile"
38099   { echo "$as_me:$LINENO: creating $ofile" >&5
38100 echo "$as_me: creating $ofile" >&6;}
38101
38102   cat <<__EOF__ >> "$cfgfile"
38103 #! $SHELL
38104
38105 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
38106 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
38107 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
38108 #
38109 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
38110 # Free Software Foundation, Inc.
38111 #
38112 # This file is part of GNU Libtool:
38113 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
38114 #
38115 # This program is free software; you can redistribute it and/or modify
38116 # it under the terms of the GNU General Public License as published by
38117 # the Free Software Foundation; either version 2 of the License, or
38118 # (at your option) any later version.
38119 #
38120 # This program is distributed in the hope that it will be useful, but
38121 # WITHOUT ANY WARRANTY; without even the implied warranty of
38122 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
38123 # General Public License for more details.
38124 #
38125 # You should have received a copy of the GNU General Public License
38126 # along with this program; if not, write to the Free Software
38127 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
38128 #
38129 # As a special exception to the GNU General Public License, if you
38130 # distribute this file as part of a program that contains a
38131 # configuration script generated by Autoconf, you may include it under
38132 # the same distribution terms that you use for the rest of that program.
38133
38134 # A sed program that does not truncate output.
38135 SED=$lt_SED
38136
38137 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
38138 Xsed="$SED -e 1s/^X//"
38139
38140 # The HP-UX ksh and POSIX shell print the target directory to stdout
38141 # if CDPATH is set.
38142 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
38143
38144 # The names of the tagged configurations supported by this script.
38145 available_tags=
38146
38147 # ### BEGIN LIBTOOL CONFIG
38148
38149 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
38150
38151 # Shell to use when invoking shell scripts.
38152 SHELL=$lt_SHELL
38153
38154 # Whether or not to build shared libraries.
38155 build_libtool_libs=$enable_shared
38156
38157 # Whether or not to build static libraries.
38158 build_old_libs=$enable_static
38159
38160 # Whether or not to add -lc for building shared libraries.
38161 build_libtool_need_lc=$archive_cmds_need_lc
38162
38163 # Whether or not to disallow shared libs when runtime libs are static
38164 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
38165
38166 # Whether or not to optimize for fast installation.
38167 fast_install=$enable_fast_install
38168
38169 # The host system.
38170 host_alias=$host_alias
38171 host=$host
38172 host_os=$host_os
38173
38174 # The build system.
38175 build_alias=$build_alias
38176 build=$build
38177 build_os=$build_os
38178
38179 # An echo program that does not interpret backslashes.
38180 echo=$lt_echo
38181
38182 # The archiver.
38183 AR=$lt_AR
38184 AR_FLAGS=$lt_AR_FLAGS
38185
38186 # A C compiler.
38187 LTCC=$lt_LTCC
38188
38189 # A language-specific compiler.
38190 CC=$lt_compiler
38191
38192 # Is the compiler the GNU C compiler?
38193 with_gcc=$GCC
38194
38195 # An ERE matcher.
38196 EGREP=$lt_EGREP
38197
38198 # The linker used to build libraries.
38199 LD=$lt_LD
38200
38201 # Whether we need hard or soft links.
38202 LN_S=$lt_LN_S
38203
38204 # A BSD-compatible nm program.
38205 NM=$lt_NM
38206
38207 # A symbol stripping program
38208 STRIP=$lt_STRIP
38209
38210 # Used to examine libraries when file_magic_cmd begins "file"
38211 MAGIC_CMD=$MAGIC_CMD
38212
38213 # Used on cygwin: DLL creation program.
38214 DLLTOOL="$DLLTOOL"
38215
38216 # Used on cygwin: object dumper.
38217 OBJDUMP="$OBJDUMP"
38218
38219 # Used on cygwin: assembler.
38220 AS="$AS"
38221
38222 # The name of the directory that contains temporary libtool files.
38223 objdir=$objdir
38224
38225 # How to create reloadable object files.
38226 reload_flag=$lt_reload_flag
38227 reload_cmds=$lt_reload_cmds
38228
38229 # How to pass a linker flag through the compiler.
38230 wl=$lt_lt_prog_compiler_wl
38231
38232 # Object file suffix (normally "o").
38233 objext="$ac_objext"
38234
38235 # Old archive suffix (normally "a").
38236 libext="$libext"
38237
38238 # Shared library suffix (normally ".so").
38239 shrext_cmds='$shrext_cmds'
38240
38241 # Executable file suffix (normally "").
38242 exeext="$exeext"
38243
38244 # Additional compiler flags for building library objects.
38245 pic_flag=$lt_lt_prog_compiler_pic
38246 pic_mode=$pic_mode
38247
38248 # What is the maximum length of a command?
38249 max_cmd_len=$lt_cv_sys_max_cmd_len
38250
38251 # Does compiler simultaneously support -c and -o options?
38252 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
38253
38254 # Must we lock files when doing compilation?
38255 need_locks=$lt_need_locks
38256
38257 # Do we need the lib prefix for modules?
38258 need_lib_prefix=$need_lib_prefix
38259
38260 # Do we need a version for libraries?
38261 need_version=$need_version
38262
38263 # Whether dlopen is supported.
38264 dlopen_support=$enable_dlopen
38265
38266 # Whether dlopen of programs is supported.
38267 dlopen_self=$enable_dlopen_self
38268
38269 # Whether dlopen of statically linked programs is supported.
38270 dlopen_self_static=$enable_dlopen_self_static
38271
38272 # Compiler flag to prevent dynamic linking.
38273 link_static_flag=$lt_lt_prog_compiler_static
38274
38275 # Compiler flag to turn off builtin functions.
38276 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
38277
38278 # Compiler flag to allow reflexive dlopens.
38279 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
38280
38281 # Compiler flag to generate shared objects directly from archives.
38282 whole_archive_flag_spec=$lt_whole_archive_flag_spec
38283
38284 # Compiler flag to generate thread-safe objects.
38285 thread_safe_flag_spec=$lt_thread_safe_flag_spec
38286
38287 # Library versioning type.
38288 version_type=$version_type
38289
38290 # Format of library name prefix.
38291 libname_spec=$lt_libname_spec
38292
38293 # List of archive names.  First name is the real one, the rest are links.
38294 # The last name is the one that the linker finds with -lNAME.
38295 library_names_spec=$lt_library_names_spec
38296
38297 # The coded name of the library, if different from the real name.
38298 soname_spec=$lt_soname_spec
38299
38300 # Commands used to build and install an old-style archive.
38301 RANLIB=$lt_RANLIB
38302 old_archive_cmds=$lt_old_archive_cmds
38303 old_postinstall_cmds=$lt_old_postinstall_cmds
38304 old_postuninstall_cmds=$lt_old_postuninstall_cmds
38305
38306 # Create an old-style archive from a shared archive.
38307 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
38308
38309 # Create a temporary old-style archive to link instead of a shared archive.
38310 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
38311
38312 # Commands used to build and install a shared archive.
38313 archive_cmds=$lt_archive_cmds
38314 archive_expsym_cmds=$lt_archive_expsym_cmds
38315 postinstall_cmds=$lt_postinstall_cmds
38316 postuninstall_cmds=$lt_postuninstall_cmds
38317
38318 # Commands used to build a loadable module (assumed same as above if empty)
38319 module_cmds=$lt_module_cmds
38320 module_expsym_cmds=$lt_module_expsym_cmds
38321
38322 # Commands to strip libraries.
38323 old_striplib=$lt_old_striplib
38324 striplib=$lt_striplib
38325
38326 # Dependencies to place before the objects being linked to create a
38327 # shared library.
38328 predep_objects=$lt_predep_objects
38329
38330 # Dependencies to place after the objects being linked to create a
38331 # shared library.
38332 postdep_objects=$lt_postdep_objects
38333
38334 # Dependencies to place before the objects being linked to create a
38335 # shared library.
38336 predeps=$lt_predeps
38337
38338 # Dependencies to place after the objects being linked to create a
38339 # shared library.
38340 postdeps=$lt_postdeps
38341
38342 # The library search path used internally by the compiler when linking
38343 # a shared library.
38344 compiler_lib_search_path=$lt_compiler_lib_search_path
38345
38346 # Method to check whether dependent libraries are shared objects.
38347 deplibs_check_method=$lt_deplibs_check_method
38348
38349 # Command to use when deplibs_check_method == file_magic.
38350 file_magic_cmd=$lt_file_magic_cmd
38351
38352 # Flag that allows shared libraries with undefined symbols to be built.
38353 allow_undefined_flag=$lt_allow_undefined_flag
38354
38355 # Flag that forces no undefined symbols.
38356 no_undefined_flag=$lt_no_undefined_flag
38357
38358 # Commands used to finish a libtool library installation in a directory.
38359 finish_cmds=$lt_finish_cmds
38360
38361 # Same as above, but a single script fragment to be evaled but not shown.
38362 finish_eval=$lt_finish_eval
38363
38364 # Take the output of nm and produce a listing of raw symbols and C names.
38365 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
38366
38367 # Transform the output of nm in a proper C declaration
38368 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
38369
38370 # Transform the output of nm in a C name address pair
38371 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
38372
38373 # This is the shared library runtime path variable.
38374 runpath_var=$runpath_var
38375
38376 # This is the shared library path variable.
38377 shlibpath_var=$shlibpath_var
38378
38379 # Is shlibpath searched before the hard-coded library search path?
38380 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
38381
38382 # How to hardcode a shared library path into an executable.
38383 hardcode_action=$hardcode_action
38384
38385 # Whether we should hardcode library paths into libraries.
38386 hardcode_into_libs=$hardcode_into_libs
38387
38388 # Flag to hardcode \$libdir into a binary during linking.
38389 # This must work even if \$libdir does not exist.
38390 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
38391
38392 # If ld is used when linking, flag to hardcode \$libdir into
38393 # a binary during linking. This must work even if \$libdir does
38394 # not exist.
38395 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
38396
38397 # Whether we need a single -rpath flag with a separated argument.
38398 hardcode_libdir_separator=$lt_hardcode_libdir_separator
38399
38400 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
38401 # resulting binary.
38402 hardcode_direct=$hardcode_direct
38403
38404 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
38405 # resulting binary.
38406 hardcode_minus_L=$hardcode_minus_L
38407
38408 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
38409 # the resulting binary.
38410 hardcode_shlibpath_var=$hardcode_shlibpath_var
38411
38412 # Set to yes if building a shared library automatically hardcodes DIR into the library
38413 # and all subsequent libraries and executables linked against it.
38414 hardcode_automatic=$hardcode_automatic
38415
38416 # Variables whose values should be saved in libtool wrapper scripts and
38417 # restored at relink time.
38418 variables_saved_for_relink="$variables_saved_for_relink"
38419
38420 # Whether libtool must link a program against all its dependency libraries.
38421 link_all_deplibs=$link_all_deplibs
38422
38423 # Compile-time system search path for libraries
38424 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
38425
38426 # Run-time system search path for libraries
38427 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
38428
38429 # Fix the shell variable \$srcfile for the compiler.
38430 fix_srcfile_path="$fix_srcfile_path"
38431
38432 # Set to yes if exported symbols are required.
38433 always_export_symbols=$always_export_symbols
38434
38435 # The commands to list exported symbols.
38436 export_symbols_cmds=$lt_export_symbols_cmds
38437
38438 # The commands to extract the exported symbol list from a shared archive.
38439 extract_expsyms_cmds=$lt_extract_expsyms_cmds
38440
38441 # Symbols that should not be listed in the preloaded symbols.
38442 exclude_expsyms=$lt_exclude_expsyms
38443
38444 # Symbols that must always be exported.
38445 include_expsyms=$lt_include_expsyms
38446
38447 # ### END LIBTOOL CONFIG
38448
38449 __EOF__
38450
38451
38452   case $host_os in
38453   aix3*)
38454     cat <<\EOF >> "$cfgfile"
38455
38456 # AIX sometimes has problems with the GCC collect2 program.  For some
38457 # reason, if we set the COLLECT_NAMES environment variable, the problems
38458 # vanish in a puff of smoke.
38459 if test "X${COLLECT_NAMES+set}" != Xset; then
38460   COLLECT_NAMES=
38461   export COLLECT_NAMES
38462 fi
38463 EOF
38464     ;;
38465   esac
38466
38467   # We use sed instead of cat because bash on DJGPP gets confused if
38468   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
38469   # text mode, it properly converts lines to CR/LF.  This bash problem
38470   # is reportedly fixed, but why not run on old versions too?
38471   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
38472
38473   mv -f "$cfgfile" "$ofile" || \
38474     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
38475   chmod +x "$ofile"
38476
38477 else
38478   # If there is no Makefile yet, we rely on a make rule to execute
38479   # `config.status --recheck' to rerun these tests and create the
38480   # libtool script then.
38481   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
38482   if test -f "$ltmain_in"; then
38483     test -f Makefile && make "$ltmain"
38484   fi
38485 fi
38486
38487
38488 ac_ext=c
38489 ac_cpp='$CPP $CPPFLAGS'
38490 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38491 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38492 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38493
38494 CC="$lt_save_CC"
38495
38496
38497 # Check whether --with-tags was given.
38498 if test "${with_tags+set}" = set; then
38499   withval=$with_tags; tagnames="$withval"
38500 fi
38501
38502
38503 if test -f "$ltmain" && test -n "$tagnames"; then
38504   if test ! -f "${ofile}"; then
38505
38506     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
38507 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
38508
38509
38510     cat <<AAW_EOF >>config.warnings
38511 output file \`$ofile' does not exist
38512 AAW_EOF
38513
38514
38515   fi
38516
38517   if test -z "$LTCC"; then
38518     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
38519     if test -z "$LTCC"; then
38520
38521     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
38522 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
38523
38524
38525     cat <<AAW_EOF >>config.warnings
38526 output file \`$ofile' does not look like a libtool script
38527 AAW_EOF
38528
38529
38530     else
38531
38532     { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
38533 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
38534
38535
38536     cat <<AAW_EOF >>config.warnings
38537 using \`LTCC=$LTCC', extracted from \`$ofile'
38538 AAW_EOF
38539
38540
38541     fi
38542   fi
38543
38544   # Extract list of available tagged configurations in $ofile.
38545   # Note that this assumes the entire list is on one line.
38546   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
38547
38548   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
38549   for tagname in $tagnames; do
38550     IFS="$lt_save_ifs"
38551     # Check whether tagname contains only valid characters
38552     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
38553     "") ;;
38554     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
38555 echo "$as_me: error: invalid tag name: $tagname" >&2;}
38556    { (exit 1); exit 1; }; }
38557         ;;
38558     esac
38559
38560     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
38561     then
38562       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
38563 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
38564    { (exit 1); exit 1; }; }
38565     fi
38566
38567     # Update the list of available tags.
38568     if test -n "$tagname"; then
38569       echo appending configuration tag \"$tagname\" to $ofile
38570
38571       case $tagname in
38572       CXX)
38573         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
38574             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
38575             (test "X$CXX" != "Xg++"))) ; then
38576           ac_ext=cpp
38577 ac_cpp='$CXXCPP $CPPFLAGS'
38578 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38579 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38580 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38581
38582
38583
38584
38585 archive_cmds_need_lc_CXX=no
38586 allow_undefined_flag_CXX=
38587 always_export_symbols_CXX=no
38588 archive_expsym_cmds_CXX=
38589 export_dynamic_flag_spec_CXX=
38590 hardcode_direct_CXX=no
38591 hardcode_libdir_flag_spec_CXX=
38592 hardcode_libdir_flag_spec_ld_CXX=
38593 hardcode_libdir_separator_CXX=
38594 hardcode_minus_L_CXX=no
38595 hardcode_automatic_CXX=no
38596 module_cmds_CXX=
38597 module_expsym_cmds_CXX=
38598 link_all_deplibs_CXX=unknown
38599 old_archive_cmds_CXX=$old_archive_cmds
38600 no_undefined_flag_CXX=
38601 whole_archive_flag_spec_CXX=
38602 enable_shared_with_static_runtimes_CXX=no
38603
38604 # Dependencies to place before and after the object being linked:
38605 predep_objects_CXX=
38606 postdep_objects_CXX=
38607 predeps_CXX=
38608 postdeps_CXX=
38609 compiler_lib_search_path_CXX=
38610
38611 # Source file extension for C++ test sources.
38612 ac_ext=cpp
38613
38614 # Object file extension for compiled C++ test sources.
38615 objext=o
38616 objext_CXX=$objext
38617
38618 # Code to be used in simple compile tests
38619 lt_simple_compile_test_code="int some_variable = 0;\n"
38620
38621 # Code to be used in simple link tests
38622 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
38623
38624 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
38625
38626 # If no C compiler was specified, use CC.
38627 LTCC=${LTCC-"$CC"}
38628
38629 # Allow CC to be a program name with arguments.
38630 compiler=$CC
38631
38632
38633 # save warnings/boilerplate of simple test code
38634 ac_outfile=conftest.$ac_objext
38635 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
38636 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
38637 _lt_compiler_boilerplate=`cat conftest.err`
38638 $rm conftest*
38639
38640 ac_outfile=conftest.$ac_objext
38641 printf "$lt_simple_link_test_code" >conftest.$ac_ext
38642 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
38643 _lt_linker_boilerplate=`cat conftest.err`
38644 $rm conftest*
38645
38646
38647 # Allow CC to be a program name with arguments.
38648 lt_save_CC=$CC
38649 lt_save_LD=$LD
38650 lt_save_GCC=$GCC
38651 GCC=$GXX
38652 lt_save_with_gnu_ld=$with_gnu_ld
38653 lt_save_path_LD=$lt_cv_path_LD
38654 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
38655   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
38656 else
38657   unset lt_cv_prog_gnu_ld
38658 fi
38659 if test -n "${lt_cv_path_LDCXX+set}"; then
38660   lt_cv_path_LD=$lt_cv_path_LDCXX
38661 else
38662   unset lt_cv_path_LD
38663 fi
38664 test -z "${LDCXX+set}" || LD=$LDCXX
38665 CC=${CXX-"c++"}
38666 compiler=$CC
38667 compiler_CXX=$CC
38668 for cc_temp in $compiler""; do
38669   case $cc_temp in
38670     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
38671     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
38672     \-*) ;;
38673     *) break;;
38674   esac
38675 done
38676 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
38677
38678
38679 # We don't want -fno-exception wen compiling C++ code, so set the
38680 # no_builtin_flag separately
38681 if test "$GXX" = yes; then
38682   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
38683 else
38684   lt_prog_compiler_no_builtin_flag_CXX=
38685 fi
38686
38687 if test "$GXX" = yes; then
38688   # Set up default GNU C++ configuration
38689
38690
38691 # Check whether --with-gnu-ld was given.
38692 if test "${with_gnu_ld+set}" = set; then
38693   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
38694 else
38695   with_gnu_ld=no
38696 fi
38697
38698 ac_prog=ld
38699 if test "$GCC" = yes; then
38700   # Check if gcc -print-prog-name=ld gives a path.
38701   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
38702 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
38703   case $host in
38704   *-*-mingw*)
38705     # gcc leaves a trailing carriage return which upsets mingw
38706     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
38707   *)
38708     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
38709   esac
38710   case $ac_prog in
38711     # Accept absolute paths.
38712     [\\/]* | ?:[\\/]*)
38713       re_direlt='/[^/][^/]*/\.\./'
38714       # Canonicalize the pathname of ld
38715       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
38716       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
38717         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
38718       done
38719       test -z "$LD" && LD="$ac_prog"
38720       ;;
38721   "")
38722     # If it fails, then pretend we aren't using GCC.
38723     ac_prog=ld
38724     ;;
38725   *)
38726     # If it is relative, then search for the first ld in PATH.
38727     with_gnu_ld=unknown
38728     ;;
38729   esac
38730 elif test "$with_gnu_ld" = yes; then
38731   { echo "$as_me:$LINENO: checking for GNU ld" >&5
38732 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
38733 else
38734   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
38735 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
38736 fi
38737 if test "${lt_cv_path_LD+set}" = set; then
38738   echo $ECHO_N "(cached) $ECHO_C" >&6
38739 else
38740   if test -z "$LD"; then
38741   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
38742   for ac_dir in $PATH; do
38743     IFS="$lt_save_ifs"
38744     test -z "$ac_dir" && ac_dir=.
38745     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
38746       lt_cv_path_LD="$ac_dir/$ac_prog"
38747       # Check to see if the program is GNU ld.  I'd rather use --version,
38748       # but apparently some variants of GNU ld only accept -v.
38749       # Break only if it was the GNU/non-GNU ld that we prefer.
38750       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
38751       *GNU* | *'with BFD'*)
38752         test "$with_gnu_ld" != no && break
38753         ;;
38754       *)
38755         test "$with_gnu_ld" != yes && break
38756         ;;
38757       esac
38758     fi
38759   done
38760   IFS="$lt_save_ifs"
38761 else
38762   lt_cv_path_LD="$LD" # Let the user override the test with a path.
38763 fi
38764 fi
38765
38766 LD="$lt_cv_path_LD"
38767 if test -n "$LD"; then
38768   { echo "$as_me:$LINENO: result: $LD" >&5
38769 echo "${ECHO_T}$LD" >&6; }
38770 else
38771   { echo "$as_me:$LINENO: result: no" >&5
38772 echo "${ECHO_T}no" >&6; }
38773 fi
38774 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
38775 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
38776    { (exit 1); exit 1; }; }
38777 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
38778 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
38779 if test "${lt_cv_prog_gnu_ld+set}" = set; then
38780   echo $ECHO_N "(cached) $ECHO_C" >&6
38781 else
38782   # I'd rather use --version here, but apparently some GNU lds only accept -v.
38783 case `$LD -v 2>&1 </dev/null` in
38784 *GNU* | *'with BFD'*)
38785   lt_cv_prog_gnu_ld=yes
38786   ;;
38787 *)
38788   lt_cv_prog_gnu_ld=no
38789   ;;
38790 esac
38791 fi
38792 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
38793 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
38794 with_gnu_ld=$lt_cv_prog_gnu_ld
38795
38796
38797
38798   # Check if GNU C++ uses GNU ld as the underlying linker, since the
38799   # archiving commands below assume that GNU ld is being used.
38800   if test "$with_gnu_ld" = yes; then
38801     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
38802     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'
38803
38804     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
38805     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
38806
38807     # If archive_cmds runs LD, not CC, wlarc should be empty
38808     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
38809     #     investigate it a little bit more. (MM)
38810     wlarc='${wl}'
38811
38812     # ancient GNU ld didn't support --whole-archive et. al.
38813     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
38814         grep 'no-whole-archive' > /dev/null; then
38815       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
38816     else
38817       whole_archive_flag_spec_CXX=
38818     fi
38819   else
38820     with_gnu_ld=no
38821     wlarc=
38822
38823     # A generic and very simple default shared library creation
38824     # command for GNU C++ for the case where it uses the native
38825     # linker, instead of GNU ld.  If possible, this setting should
38826     # overridden to take advantage of the native linker features on
38827     # the platform it is being used on.
38828     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
38829   fi
38830
38831   # Commands to make compiler produce verbose output that lists
38832   # what "hidden" libraries, object files and flags are used when
38833   # linking a shared library.
38834   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
38835
38836 else
38837   GXX=no
38838   with_gnu_ld=no
38839   wlarc=
38840 fi
38841
38842 # PORTME: fill in a description of your system's C++ link characteristics
38843 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
38844 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
38845 ld_shlibs_CXX=yes
38846 case $host_os in
38847   aix3*)
38848     # FIXME: insert proper C++ library support
38849     ld_shlibs_CXX=no
38850     ;;
38851   aix4* | aix5*)
38852     if test "$host_cpu" = ia64; then
38853       # On IA64, the linker does run time linking by default, so we don't
38854       # have to do anything special.
38855       aix_use_runtimelinking=no
38856       exp_sym_flag='-Bexport'
38857       no_entry_flag=""
38858     else
38859       aix_use_runtimelinking=no
38860
38861       # Test if we are trying to use run time linking or normal
38862       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
38863       # need to do runtime linking.
38864       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
38865         for ld_flag in $LDFLAGS; do
38866           case $ld_flag in
38867           *-brtl*)
38868             aix_use_runtimelinking=yes
38869             break
38870             ;;
38871           esac
38872         done
38873       esac
38874
38875       exp_sym_flag='-bexport'
38876       no_entry_flag='-bnoentry'
38877     fi
38878
38879     # When large executables or shared objects are built, AIX ld can
38880     # have problems creating the table of contents.  If linking a library
38881     # or program results in "error TOC overflow" add -mminimal-toc to
38882     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
38883     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
38884
38885     archive_cmds_CXX=''
38886     hardcode_direct_CXX=yes
38887     hardcode_libdir_separator_CXX=':'
38888     link_all_deplibs_CXX=yes
38889
38890     if test "$GXX" = yes; then
38891       case $host_os in aix4.[012]|aix4.[012].*)
38892       # We only want to do this on AIX 4.2 and lower, the check
38893       # below for broken collect2 doesn't work under 4.3+
38894         collect2name=`${CC} -print-prog-name=collect2`
38895         if test -f "$collect2name" && \
38896            strings "$collect2name" | grep resolve_lib_name >/dev/null
38897         then
38898           # We have reworked collect2
38899           hardcode_direct_CXX=yes
38900         else
38901           # We have old collect2
38902           hardcode_direct_CXX=unsupported
38903           # It fails to find uninstalled libraries when the uninstalled
38904           # path is not listed in the libpath.  Setting hardcode_minus_L
38905           # to unsupported forces relinking
38906           hardcode_minus_L_CXX=yes
38907           hardcode_libdir_flag_spec_CXX='-L$libdir'
38908           hardcode_libdir_separator_CXX=
38909         fi
38910       esac
38911       shared_flag='-shared'
38912       if test "$aix_use_runtimelinking" = yes; then
38913         shared_flag="$shared_flag "'${wl}-G'
38914       fi
38915     else
38916       # not using gcc
38917       if test "$host_cpu" = ia64; then
38918         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
38919         # chokes on -Wl,-G. The following line is correct:
38920         shared_flag='-G'
38921       else
38922         if test "$aix_use_runtimelinking" = yes; then
38923           shared_flag='${wl}-G'
38924         else
38925           shared_flag='${wl}-bM:SRE'
38926         fi
38927       fi
38928     fi
38929
38930     # It seems that -bexpall does not export symbols beginning with
38931     # underscore (_), so it is better to generate a list of symbols to export.
38932     always_export_symbols_CXX=yes
38933     if test "$aix_use_runtimelinking" = yes; then
38934       # Warning - without using the other runtime loading flags (-brtl),
38935       # -berok will link without error, but may produce a broken library.
38936       allow_undefined_flag_CXX='-berok'
38937       # Determine the default libpath from the value encoded in an empty executable.
38938       cat >conftest.$ac_ext <<_ACEOF
38939 /* confdefs.h.  */
38940 _ACEOF
38941 cat confdefs.h >>conftest.$ac_ext
38942 cat >>conftest.$ac_ext <<_ACEOF
38943 /* end confdefs.h.  */
38944
38945 int
38946 main ()
38947 {
38948
38949   ;
38950   return 0;
38951 }
38952 _ACEOF
38953 rm -f conftest.$ac_objext conftest$ac_exeext
38954 if { (ac_try="$ac_link"
38955 case "(($ac_try" in
38956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38957   *) ac_try_echo=$ac_try;;
38958 esac
38959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38960   (eval "$ac_link") 2>conftest.er1
38961   ac_status=$?
38962   grep -v '^ *+' conftest.er1 >conftest.err
38963   rm -f conftest.er1
38964   cat conftest.err >&5
38965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38966   (exit $ac_status); } && {
38967          test -z "$ac_cxx_werror_flag" ||
38968          test ! -s conftest.err
38969        } && test -s conftest$ac_exeext &&
38970        $as_test_x conftest$ac_exeext; then
38971
38972 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
38973 }'`
38974 # Check for a 64-bit object if we didn't find anything.
38975 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; }
38976 }'`; fi
38977 else
38978   echo "$as_me: failed program was:" >&5
38979 sed 's/^/| /' conftest.$ac_ext >&5
38980
38981
38982 fi
38983
38984 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38985       conftest$ac_exeext conftest.$ac_ext
38986 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
38987
38988       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
38989
38990       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"
38991      else
38992       if test "$host_cpu" = ia64; then
38993         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
38994         allow_undefined_flag_CXX="-z nodefs"
38995         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"
38996       else
38997         # Determine the default libpath from the value encoded in an empty executable.
38998         cat >conftest.$ac_ext <<_ACEOF
38999 /* confdefs.h.  */
39000 _ACEOF
39001 cat confdefs.h >>conftest.$ac_ext
39002 cat >>conftest.$ac_ext <<_ACEOF
39003 /* end confdefs.h.  */
39004
39005 int
39006 main ()
39007 {
39008
39009   ;
39010   return 0;
39011 }
39012 _ACEOF
39013 rm -f conftest.$ac_objext conftest$ac_exeext
39014 if { (ac_try="$ac_link"
39015 case "(($ac_try" in
39016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39017   *) ac_try_echo=$ac_try;;
39018 esac
39019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39020   (eval "$ac_link") 2>conftest.er1
39021   ac_status=$?
39022   grep -v '^ *+' conftest.er1 >conftest.err
39023   rm -f conftest.er1
39024   cat conftest.err >&5
39025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39026   (exit $ac_status); } && {
39027          test -z "$ac_cxx_werror_flag" ||
39028          test ! -s conftest.err
39029        } && test -s conftest$ac_exeext &&
39030        $as_test_x conftest$ac_exeext; then
39031
39032 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
39033 }'`
39034 # Check for a 64-bit object if we didn't find anything.
39035 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; }
39036 }'`; fi
39037 else
39038   echo "$as_me: failed program was:" >&5
39039 sed 's/^/| /' conftest.$ac_ext >&5
39040
39041
39042 fi
39043
39044 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39045       conftest$ac_exeext conftest.$ac_ext
39046 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
39047
39048         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
39049         # Warning - without using the other run time loading flags,
39050         # -berok will link without error, but may produce a broken library.
39051         no_undefined_flag_CXX=' ${wl}-bernotok'
39052         allow_undefined_flag_CXX=' ${wl}-berok'
39053         # -bexpall does not export symbols beginning with underscore (_)
39054         always_export_symbols_CXX=yes
39055         # Exported symbols can be pulled into shared objects from archives
39056         whole_archive_flag_spec_CXX=' '
39057         archive_cmds_need_lc_CXX=yes
39058         # This is similar to how AIX traditionally builds its shared libraries.
39059         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'
39060       fi
39061     fi
39062     ;;
39063   chorus*)
39064     case $cc_basename in
39065       *)
39066         # FIXME: insert proper C++ library support
39067         ld_shlibs_CXX=no
39068         ;;
39069     esac
39070     ;;
39071
39072
39073   cygwin* | mingw* | pw32*)
39074     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
39075     # as there is no search path for DLLs.
39076     hardcode_libdir_flag_spec_CXX='-L$libdir'
39077     allow_undefined_flag_CXX=unsupported
39078     always_export_symbols_CXX=no
39079     enable_shared_with_static_runtimes_CXX=yes
39080
39081     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
39082       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'
39083       # If the export-symbols file already is a .def file (1st line
39084       # is EXPORTS), use it as is; otherwise, prepend...
39085       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
39086         cp $export_symbols $output_objdir/$soname.def;
39087       else
39088         echo EXPORTS > $output_objdir/$soname.def;
39089         cat $export_symbols >> $output_objdir/$soname.def;
39090       fi~
39091       $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'
39092     else
39093       ld_shlibs_CXX=no
39094     fi
39095   ;;
39096       darwin* | rhapsody*)
39097         case $host_os in
39098         rhapsody* | darwin1.[012])
39099          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
39100          ;;
39101        *) # Darwin 1.3 on
39102          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
39103            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
39104          else
39105            case ${MACOSX_DEPLOYMENT_TARGET} in
39106              10.[012])
39107                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
39108                ;;
39109              10.*)
39110                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
39111                ;;
39112            esac
39113          fi
39114          ;;
39115         esac
39116       archive_cmds_need_lc_CXX=no
39117       hardcode_direct_CXX=no
39118       hardcode_automatic_CXX=yes
39119       hardcode_shlibpath_var_CXX=unsupported
39120       whole_archive_flag_spec_CXX=''
39121       link_all_deplibs_CXX=yes
39122
39123     if test "$GXX" = yes ; then
39124       lt_int_apple_cc_single_mod=no
39125       output_verbose_link_cmd='echo'
39126       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
39127        lt_int_apple_cc_single_mod=yes
39128       fi
39129       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
39130        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
39131       else
39132           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'
39133         fi
39134         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
39135         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
39136           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
39137             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}'
39138           else
39139             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}'
39140           fi
39141             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}'
39142       else
39143       case $cc_basename in
39144         xlc*)
39145          output_verbose_link_cmd='echo'
39146           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'
39147           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
39148           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
39149           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}'
39150           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}'
39151           ;;
39152        *)
39153          ld_shlibs_CXX=no
39154           ;;
39155       esac
39156       fi
39157         ;;
39158
39159   dgux*)
39160     case $cc_basename in
39161       ec++*)
39162         # FIXME: insert proper C++ library support
39163         ld_shlibs_CXX=no
39164         ;;
39165       ghcx*)
39166         # Green Hills C++ Compiler
39167         # FIXME: insert proper C++ library support
39168         ld_shlibs_CXX=no
39169         ;;
39170       *)
39171         # FIXME: insert proper C++ library support
39172         ld_shlibs_CXX=no
39173         ;;
39174     esac
39175     ;;
39176   freebsd[12]*)
39177     # C++ shared libraries reported to be fairly broken before switch to ELF
39178     ld_shlibs_CXX=no
39179     ;;
39180   freebsd-elf*)
39181     archive_cmds_need_lc_CXX=no
39182     ;;
39183   freebsd* | kfreebsd*-gnu | dragonfly*)
39184     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
39185     # conventions
39186     ld_shlibs_CXX=yes
39187     ;;
39188   gnu*)
39189     ;;
39190   hpux9*)
39191     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
39192     hardcode_libdir_separator_CXX=:
39193     export_dynamic_flag_spec_CXX='${wl}-E'
39194     hardcode_direct_CXX=yes
39195     hardcode_minus_L_CXX=yes # Not in the search PATH,
39196                                 # but as the default
39197                                 # location of the library.
39198
39199     case $cc_basename in
39200     CC*)
39201       # FIXME: insert proper C++ library support
39202       ld_shlibs_CXX=no
39203       ;;
39204     aCC*)
39205       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'
39206       # Commands to make compiler produce verbose output that lists
39207       # what "hidden" libraries, object files and flags are used when
39208       # linking a shared library.
39209       #
39210       # There doesn't appear to be a way to prevent this compiler from
39211       # explicitly linking system object files so we need to strip them
39212       # from the output so that they don't get included in the library
39213       # dependencies.
39214       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'
39215       ;;
39216     *)
39217       if test "$GXX" = yes; then
39218         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'
39219       else
39220         # FIXME: insert proper C++ library support
39221         ld_shlibs_CXX=no
39222       fi
39223       ;;
39224     esac
39225     ;;
39226   hpux10*|hpux11*)
39227     if test $with_gnu_ld = no; then
39228       case $host_cpu in
39229       hppa*64*)
39230         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
39231         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
39232         hardcode_libdir_separator_CXX=:
39233         ;;
39234       ia64*)
39235         hardcode_libdir_flag_spec_CXX='-L$libdir'
39236         ;;
39237       *)
39238         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
39239         hardcode_libdir_separator_CXX=:
39240         export_dynamic_flag_spec_CXX='${wl}-E'
39241         ;;
39242       esac
39243     fi
39244     case $host_cpu in
39245     hppa*64*)
39246       hardcode_direct_CXX=no
39247       hardcode_shlibpath_var_CXX=no
39248       ;;
39249     ia64*)
39250       hardcode_direct_CXX=no
39251       hardcode_shlibpath_var_CXX=no
39252       hardcode_minus_L_CXX=yes # Not in the search PATH,
39253                                               # but as the default
39254                                               # location of the library.
39255       ;;
39256     *)
39257       hardcode_direct_CXX=yes
39258       hardcode_minus_L_CXX=yes # Not in the search PATH,
39259                                               # but as the default
39260                                               # location of the library.
39261       ;;
39262     esac
39263
39264     case $cc_basename in
39265       CC*)
39266         # FIXME: insert proper C++ library support
39267         ld_shlibs_CXX=no
39268         ;;
39269       aCC*)
39270         case $host_cpu in
39271         hppa*64*|ia64*)
39272           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
39273           ;;
39274         *)
39275           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
39276           ;;
39277         esac
39278         # Commands to make compiler produce verbose output that lists
39279         # what "hidden" libraries, object files and flags are used when
39280         # linking a shared library.
39281         #
39282         # There doesn't appear to be a way to prevent this compiler from
39283         # explicitly linking system object files so we need to strip them
39284         # from the output so that they don't get included in the library
39285         # dependencies.
39286         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'
39287         ;;
39288       *)
39289         if test "$GXX" = yes; then
39290           if test $with_gnu_ld = no; then
39291             case $host_cpu in
39292             ia64*|hppa*64*)
39293               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
39294               ;;
39295             *)
39296               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'
39297               ;;
39298             esac
39299           fi
39300         else
39301           # FIXME: insert proper C++ library support
39302           ld_shlibs_CXX=no
39303         fi
39304         ;;
39305     esac
39306     ;;
39307   irix5* | irix6*)
39308     case $cc_basename in
39309       CC*)
39310         # SGI C++
39311         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'
39312
39313         # Archives containing C++ object files must be created using
39314         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
39315         # necessary to make sure instantiated templates are included
39316         # in the archive.
39317         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
39318         ;;
39319       *)
39320         if test "$GXX" = yes; then
39321           if test "$with_gnu_ld" = no; then
39322             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'
39323           else
39324             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'
39325           fi
39326         fi
39327         link_all_deplibs_CXX=yes
39328         ;;
39329     esac
39330     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
39331     hardcode_libdir_separator_CXX=:
39332     ;;
39333   linux*)
39334     case $cc_basename in
39335       KCC*)
39336         # Kuck and Associates, Inc. (KAI) C++ Compiler
39337
39338         # KCC will only create a shared library if the output file
39339         # ends with ".so" (or ".sl" for HP-UX), so rename the library
39340         # to its proper name (with version) after linking.
39341         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'
39342         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'
39343         # Commands to make compiler produce verbose output that lists
39344         # what "hidden" libraries, object files and flags are used when
39345         # linking a shared library.
39346         #
39347         # There doesn't appear to be a way to prevent this compiler from
39348         # explicitly linking system object files so we need to strip them
39349         # from the output so that they don't get included in the library
39350         # dependencies.
39351         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'
39352
39353         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
39354         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
39355
39356         # Archives containing C++ object files must be created using
39357         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
39358         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
39359         ;;
39360       icpc*)
39361         # Intel C++
39362         with_gnu_ld=yes
39363         # version 8.0 and above of icpc choke on multiply defined symbols
39364         # if we add $predep_objects and $postdep_objects, however 7.1 and
39365         # earlier do not add the objects themselves.
39366         case `$CC -V 2>&1` in
39367         *"Version 7."*)
39368           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
39369           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'
39370           ;;
39371         *)  # Version 8.0 or newer
39372           tmp_idyn=
39373           case $host_cpu in
39374             ia64*) tmp_idyn=' -i_dynamic';;
39375           esac
39376           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
39377           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'
39378           ;;
39379         esac
39380         archive_cmds_need_lc_CXX=no
39381         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
39382         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
39383         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
39384         ;;
39385       pgCC*)
39386         # Portland Group C++ compiler
39387         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
39388         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'
39389
39390         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
39391         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
39392         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'
39393         ;;
39394       cxx*)
39395         # Compaq C++
39396         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
39397         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'
39398
39399         runpath_var=LD_RUN_PATH
39400         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
39401         hardcode_libdir_separator_CXX=:
39402
39403         # Commands to make compiler produce verbose output that lists
39404         # what "hidden" libraries, object files and flags are used when
39405         # linking a shared library.
39406         #
39407         # There doesn't appear to be a way to prevent this compiler from
39408         # explicitly linking system object files so we need to strip them
39409         # from the output so that they don't get included in the library
39410         # dependencies.
39411         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'
39412         ;;
39413     esac
39414     ;;
39415   lynxos*)
39416     # FIXME: insert proper C++ library support
39417     ld_shlibs_CXX=no
39418     ;;
39419   m88k*)
39420     # FIXME: insert proper C++ library support
39421     ld_shlibs_CXX=no
39422     ;;
39423   mvs*)
39424     case $cc_basename in
39425       cxx*)
39426         # FIXME: insert proper C++ library support
39427         ld_shlibs_CXX=no
39428         ;;
39429       *)
39430         # FIXME: insert proper C++ library support
39431         ld_shlibs_CXX=no
39432         ;;
39433     esac
39434     ;;
39435   netbsd*)
39436     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
39437       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
39438       wlarc=
39439       hardcode_libdir_flag_spec_CXX='-R$libdir'
39440       hardcode_direct_CXX=yes
39441       hardcode_shlibpath_var_CXX=no
39442     fi
39443     # Workaround some broken pre-1.5 toolchains
39444     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
39445     ;;
39446   openbsd2*)
39447     # C++ shared libraries are fairly broken
39448     ld_shlibs_CXX=no
39449     ;;
39450   openbsd*)
39451     hardcode_direct_CXX=yes
39452     hardcode_shlibpath_var_CXX=no
39453     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
39454     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
39455     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
39456       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
39457       export_dynamic_flag_spec_CXX='${wl}-E'
39458       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
39459     fi
39460     output_verbose_link_cmd='echo'
39461     ;;
39462   osf3*)
39463     case $cc_basename in
39464       KCC*)
39465         # Kuck and Associates, Inc. (KAI) C++ Compiler
39466
39467         # KCC will only create a shared library if the output file
39468         # ends with ".so" (or ".sl" for HP-UX), so rename the library
39469         # to its proper name (with version) after linking.
39470         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'
39471
39472         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
39473         hardcode_libdir_separator_CXX=:
39474
39475         # Archives containing C++ object files must be created using
39476         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
39477         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
39478
39479         ;;
39480       RCC*)
39481         # Rational C++ 2.4.1
39482         # FIXME: insert proper C++ library support
39483         ld_shlibs_CXX=no
39484         ;;
39485       cxx*)
39486         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
39487         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'
39488
39489         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
39490         hardcode_libdir_separator_CXX=:
39491
39492         # Commands to make compiler produce verbose output that lists
39493         # what "hidden" libraries, object files and flags are used when
39494         # linking a shared library.
39495         #
39496         # There doesn't appear to be a way to prevent this compiler from
39497         # explicitly linking system object files so we need to strip them
39498         # from the output so that they don't get included in the library
39499         # dependencies.
39500         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'
39501         ;;
39502       *)
39503         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
39504           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
39505           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'
39506
39507           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
39508           hardcode_libdir_separator_CXX=:
39509
39510           # Commands to make compiler produce verbose output that lists
39511           # what "hidden" libraries, object files and flags are used when
39512           # linking a shared library.
39513           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
39514
39515         else
39516           # FIXME: insert proper C++ library support
39517           ld_shlibs_CXX=no
39518         fi
39519         ;;
39520     esac
39521     ;;
39522   osf4* | osf5*)
39523     case $cc_basename in
39524       KCC*)
39525         # Kuck and Associates, Inc. (KAI) C++ Compiler
39526
39527         # KCC will only create a shared library if the output file
39528         # ends with ".so" (or ".sl" for HP-UX), so rename the library
39529         # to its proper name (with version) after linking.
39530         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'
39531
39532         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
39533         hardcode_libdir_separator_CXX=:
39534
39535         # Archives containing C++ object files must be created using
39536         # the KAI C++ compiler.
39537         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
39538         ;;
39539       RCC*)
39540         # Rational C++ 2.4.1
39541         # FIXME: insert proper C++ library support
39542         ld_shlibs_CXX=no
39543         ;;
39544       cxx*)
39545         allow_undefined_flag_CXX=' -expect_unresolved \*'
39546         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'
39547         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
39548           echo "-hidden">> $lib.exp~
39549           $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~
39550           $rm $lib.exp'
39551
39552         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
39553         hardcode_libdir_separator_CXX=:
39554
39555         # Commands to make compiler produce verbose output that lists
39556         # what "hidden" libraries, object files and flags are used when
39557         # linking a shared library.
39558         #
39559         # There doesn't appear to be a way to prevent this compiler from
39560         # explicitly linking system object files so we need to strip them
39561         # from the output so that they don't get included in the library
39562         # dependencies.
39563         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'
39564         ;;
39565       *)
39566         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
39567           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
39568          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'
39569
39570           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
39571           hardcode_libdir_separator_CXX=:
39572
39573           # Commands to make compiler produce verbose output that lists
39574           # what "hidden" libraries, object files and flags are used when
39575           # linking a shared library.
39576           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
39577
39578         else
39579           # FIXME: insert proper C++ library support
39580           ld_shlibs_CXX=no
39581         fi
39582         ;;
39583     esac
39584     ;;
39585   psos*)
39586     # FIXME: insert proper C++ library support
39587     ld_shlibs_CXX=no
39588     ;;
39589   sco*)
39590     archive_cmds_need_lc_CXX=no
39591     case $cc_basename in
39592       CC*)
39593         # FIXME: insert proper C++ library support
39594         ld_shlibs_CXX=no
39595         ;;
39596       *)
39597         # FIXME: insert proper C++ library support
39598         ld_shlibs_CXX=no
39599         ;;
39600     esac
39601     ;;
39602   sunos4*)
39603     case $cc_basename in
39604       CC*)
39605         # Sun C++ 4.x
39606         # FIXME: insert proper C++ library support
39607         ld_shlibs_CXX=no
39608         ;;
39609       lcc*)
39610         # Lucid
39611         # FIXME: insert proper C++ library support
39612         ld_shlibs_CXX=no
39613         ;;
39614       *)
39615         # FIXME: insert proper C++ library support
39616         ld_shlibs_CXX=no
39617         ;;
39618     esac
39619     ;;
39620   solaris*)
39621     case $cc_basename in
39622       CC*)
39623         # Sun C++ 4.2, 5.x and Centerline C++
39624         archive_cmds_need_lc_CXX=yes
39625         no_undefined_flag_CXX=' -zdefs'
39626         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
39627         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
39628         $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'
39629
39630         hardcode_libdir_flag_spec_CXX='-R$libdir'
39631         hardcode_shlibpath_var_CXX=no
39632         case $host_os in
39633           solaris2.[0-5] | solaris2.[0-5].*) ;;
39634           *)
39635             # The C++ compiler is used as linker so we must use $wl
39636             # flag to pass the commands to the underlying system
39637             # linker. We must also pass each convience library through
39638             # to the system linker between allextract/defaultextract.
39639             # The C++ compiler will combine linker options so we
39640             # cannot just pass the convience library names through
39641             # without $wl.
39642             # Supported since Solaris 2.6 (maybe 2.5.1?)
39643             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'
39644             ;;
39645         esac
39646         link_all_deplibs_CXX=yes
39647
39648         output_verbose_link_cmd='echo'
39649
39650         # Archives containing C++ object files must be created using
39651         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
39652         # necessary to make sure instantiated templates are included
39653         # in the archive.
39654         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
39655         ;;
39656       gcx*)
39657         # Green Hills C++ Compiler
39658         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
39659
39660         # The C++ compiler must be used to create the archive.
39661         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
39662         ;;
39663       *)
39664         # GNU C++ compiler with Solaris linker
39665         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
39666           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
39667           if $CC --version | grep -v '^2\.7' > /dev/null; then
39668             if $CC -v --help 2>/dev/null | grep -- -shared  > /dev/null 2> /dev/null; then
39669               archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
39670               archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
39671                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
39672
39673               # Commands to make compiler produce verbose output that lists
39674               # what "hidden" libraries, object files and flags are used when
39675               # linking a shared library.
39676               output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
39677               lt_prog_compiler_static_CXX='-static'
39678             else
39679               archive_cmds_CXX='$CC ${wl}-G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
39680               archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
39681                 $CC ${wl}-G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
39682
39683               # Commands to make compiler produce verbose output that lists
39684               # what "hidden" libraries, object files and flags are used when
39685               # linking a shared library.
39686               output_verbose_link_cmd="$CC ${wl}-G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
39687               lt_prog_compiler_static_CXX='${wl}-Bstatic'
39688             fi
39689           else
39690             # g++ 2.7 appears to require `-G' NOT `-shared' on this
39691             # platform.
39692             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
39693             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
39694                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
39695
39696             # Commands to make compiler produce verbose output that lists
39697             # what "hidden" libraries, object files and flags are used when
39698             # linking a shared library.
39699             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
39700           fi
39701
39702           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
39703         fi
39704         ;;
39705     esac
39706     ;;
39707   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
39708     archive_cmds_need_lc_CXX=no
39709     ;;
39710   tandem*)
39711     case $cc_basename in
39712       NCC*)
39713         # NonStop-UX NCC 3.20
39714         # FIXME: insert proper C++ library support
39715         ld_shlibs_CXX=no
39716         ;;
39717       *)
39718         # FIXME: insert proper C++ library support
39719         ld_shlibs_CXX=no
39720         ;;
39721     esac
39722     ;;
39723   vxworks*)
39724     # FIXME: insert proper C++ library support
39725     ld_shlibs_CXX=no
39726     ;;
39727   *)
39728     # FIXME: insert proper C++ library support
39729     ld_shlibs_CXX=no
39730     ;;
39731 esac
39732 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
39733 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
39734 test "$ld_shlibs_CXX" = no && can_build_shared=no
39735
39736 GCC_CXX="$GXX"
39737 LD_CXX="$LD"
39738
39739 ## CAVEAT EMPTOR:
39740 ## There is no encapsulation within the following macros, do not change
39741 ## the running order or otherwise move them around unless you know exactly
39742 ## what you are doing...
39743
39744 cat > conftest.$ac_ext <<EOF
39745 class Foo
39746 {
39747 public:
39748   Foo (void) { a = 0; }
39749 private:
39750   int a;
39751 };
39752 EOF
39753
39754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39755   (eval $ac_compile) 2>&5
39756   ac_status=$?
39757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39758   (exit $ac_status); }; then
39759   # Parse the compiler output and extract the necessary
39760   # objects, libraries and library flags.
39761
39762   # Sentinel used to keep track of whether or not we are before
39763   # the conftest object file.
39764   pre_test_object_deps_done=no
39765
39766   # The `*' in the case matches for architectures that use `case' in
39767   # $output_verbose_cmd can trigger glob expansion during the loop
39768   # eval without this substitution.
39769   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
39770
39771   for p in `eval $output_verbose_link_cmd`; do
39772     case $p in
39773
39774     -L* | -R* | -l*)
39775        # Some compilers place space between "-{L,R}" and the path.
39776        # Remove the space.
39777        if test $p = "-L" \
39778           || test $p = "-R"; then
39779          prev=$p
39780          continue
39781        else
39782          prev=
39783        fi
39784
39785        if test "$pre_test_object_deps_done" = no; then
39786          case $p in
39787          -L* | -R*)
39788            # Internal compiler library paths should come after those
39789            # provided the user.  The postdeps already come after the
39790            # user supplied libs so there is no need to process them.
39791            if test -z "$compiler_lib_search_path_CXX"; then
39792              compiler_lib_search_path_CXX="${prev}${p}"
39793            else
39794              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
39795            fi
39796            ;;
39797          # The "-l" case would never come before the object being
39798          # linked, so don't bother handling this case.
39799          esac
39800        else
39801          if test -z "$postdeps_CXX"; then
39802            postdeps_CXX="${prev}${p}"
39803          else
39804            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
39805          fi
39806        fi
39807        ;;
39808
39809     *.$objext)
39810        # This assumes that the test object file only shows up
39811        # once in the compiler output.
39812        if test "$p" = "conftest.$objext"; then
39813          pre_test_object_deps_done=yes
39814          continue
39815        fi
39816
39817        if test "$pre_test_object_deps_done" = no; then
39818          if test -z "$predep_objects_CXX"; then
39819            predep_objects_CXX="$p"
39820          else
39821            predep_objects_CXX="$predep_objects_CXX $p"
39822          fi
39823        else
39824          if test -z "$postdep_objects_CXX"; then
39825            postdep_objects_CXX="$p"
39826          else
39827            postdep_objects_CXX="$postdep_objects_CXX $p"
39828          fi
39829        fi
39830        ;;
39831
39832     *) ;; # Ignore the rest.
39833
39834     esac
39835   done
39836
39837   # Clean up.
39838   rm -f a.out a.exe
39839 else
39840   echo "libtool.m4: error: problem compiling CXX test program"
39841 fi
39842
39843 $rm -f confest.$objext
39844
39845 # PORTME: override above test on systems where it is broken
39846 case $host_os in
39847 solaris*)
39848   case $cc_basename in
39849   CC*)
39850     # Adding this requires a known-good setup of shared libraries for
39851     # Sun compiler versions before 5.6, else PIC objects from an old
39852     # archive will be linked into the output, leading to subtle bugs.
39853     postdeps_CXX='-lCstd -lCrun'
39854     ;;
39855   esac
39856 esac
39857
39858
39859 case " $postdeps_CXX " in
39860 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
39861 esac
39862
39863 lt_prog_compiler_wl_CXX=
39864 lt_prog_compiler_pic_CXX=
39865 lt_prog_compiler_static_CXX=
39866
39867 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
39868 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
39869
39870   # C++ specific cases for pic, static, wl, etc.
39871   if test "$GXX" = yes; then
39872     lt_prog_compiler_wl_CXX='-Wl,'
39873     lt_prog_compiler_static_CXX='-static'
39874
39875     case $host_os in
39876     aix*)
39877       # All AIX code is PIC.
39878       if test "$host_cpu" = ia64; then
39879         # AIX 5 now supports IA64 processor
39880         lt_prog_compiler_static_CXX='-Bstatic'
39881       fi
39882       ;;
39883     amigaos*)
39884       # FIXME: we need at least 68020 code to build shared libraries, but
39885       # adding the `-m68020' flag to GCC prevents building anything better,
39886       # like `-m68040'.
39887       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
39888       ;;
39889     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
39890       # PIC is the default for these OSes.
39891       ;;
39892     mingw* | os2* | pw32*)
39893       # This hack is so that the source file can tell whether it is being
39894       # built for inclusion in a dll (and should export symbols for example).
39895       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
39896       ;;
39897     darwin* | rhapsody*)
39898       # PIC is the default on this platform
39899       # Common symbols not allowed in MH_DYLIB files
39900       lt_prog_compiler_pic_CXX='-fno-common'
39901       ;;
39902     *djgpp*)
39903       # DJGPP does not support shared libraries at all
39904       lt_prog_compiler_pic_CXX=
39905       ;;
39906     sysv4*MP*)
39907       if test -d /usr/nec; then
39908         lt_prog_compiler_pic_CXX=-Kconform_pic
39909       fi
39910       ;;
39911     hpux*)
39912       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
39913       # not for PA HP-UX.
39914       case $host_cpu in
39915       hppa*64*|ia64*)
39916         ;;
39917       *)
39918         lt_prog_compiler_pic_CXX='-fPIC'
39919         ;;
39920       esac
39921       ;;
39922     *)
39923       lt_prog_compiler_pic_CXX='-fPIC'
39924       ;;
39925     esac
39926   else
39927     case $host_os in
39928       aix4* | aix5*)
39929         # All AIX code is PIC.
39930         if test "$host_cpu" = ia64; then
39931           # AIX 5 now supports IA64 processor
39932           lt_prog_compiler_static_CXX='-Bstatic'
39933         else
39934           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
39935         fi
39936         ;;
39937       chorus*)
39938         case $cc_basename in
39939         cxch68*)
39940           # Green Hills C++ Compiler
39941           # _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"
39942           ;;
39943         esac
39944         ;;
39945        darwin*)
39946          # PIC is the default on this platform
39947          # Common symbols not allowed in MH_DYLIB files
39948          case $cc_basename in
39949            xlc*)
39950            lt_prog_compiler_pic_CXX='-qnocommon'
39951            lt_prog_compiler_wl_CXX='-Wl,'
39952            ;;
39953          esac
39954        ;;
39955       dgux*)
39956         case $cc_basename in
39957           ec++*)
39958             lt_prog_compiler_pic_CXX='-KPIC'
39959             ;;
39960           ghcx*)
39961             # Green Hills C++ Compiler
39962             lt_prog_compiler_pic_CXX='-pic'
39963             ;;
39964           *)
39965             ;;
39966         esac
39967         ;;
39968       freebsd* | kfreebsd*-gnu | dragonfly*)
39969         # FreeBSD uses GNU C++
39970         ;;
39971       hpux9* | hpux10* | hpux11*)
39972         case $cc_basename in
39973           CC*)
39974             lt_prog_compiler_wl_CXX='-Wl,'
39975             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
39976             if test "$host_cpu" != ia64; then
39977               lt_prog_compiler_pic_CXX='+Z'
39978             fi
39979             ;;
39980           aCC*)
39981             lt_prog_compiler_wl_CXX='-Wl,'
39982             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
39983             case $host_cpu in
39984             hppa*64*|ia64*)
39985               # +Z the default
39986               ;;
39987             *)
39988               lt_prog_compiler_pic_CXX='+Z'
39989               ;;
39990             esac
39991             ;;
39992           *)
39993             ;;
39994         esac
39995         ;;
39996       irix5* | irix6* | nonstopux*)
39997         case $cc_basename in
39998           CC*)
39999             lt_prog_compiler_wl_CXX='-Wl,'
40000             lt_prog_compiler_static_CXX='-non_shared'
40001             # CC pic flag -KPIC is the default.
40002             ;;
40003           *)
40004             ;;
40005         esac
40006         ;;
40007       linux*)
40008         case $cc_basename in
40009           KCC*)
40010             # KAI C++ Compiler
40011             lt_prog_compiler_wl_CXX='--backend -Wl,'
40012             lt_prog_compiler_pic_CXX='-fPIC'
40013             ;;
40014           icpc* | ecpc*)
40015             # Intel C++
40016             lt_prog_compiler_wl_CXX='-Wl,'
40017             lt_prog_compiler_pic_CXX='-KPIC'
40018             lt_prog_compiler_static_CXX='-static'
40019             ;;
40020           pgCC*)
40021             # Portland Group C++ compiler.
40022             lt_prog_compiler_wl_CXX='-Wl,'
40023             lt_prog_compiler_pic_CXX='-fpic'
40024             lt_prog_compiler_static_CXX='-Bstatic'
40025             ;;
40026           cxx*)
40027             # Compaq C++
40028             # Make sure the PIC flag is empty.  It appears that all Alpha
40029             # Linux and Compaq Tru64 Unix objects are PIC.
40030             lt_prog_compiler_pic_CXX=
40031             lt_prog_compiler_static_CXX='-non_shared'
40032             ;;
40033           *)
40034             ;;
40035         esac
40036         ;;
40037       lynxos*)
40038         ;;
40039       m88k*)
40040         ;;
40041       mvs*)
40042         case $cc_basename in
40043           cxx*)
40044             lt_prog_compiler_pic_CXX='-W c,exportall'
40045             ;;
40046           *)
40047             ;;
40048         esac
40049         ;;
40050       netbsd*)
40051         ;;
40052       osf3* | osf4* | osf5*)
40053         case $cc_basename in
40054           KCC*)
40055             lt_prog_compiler_wl_CXX='--backend -Wl,'
40056             ;;
40057           RCC*)
40058             # Rational C++ 2.4.1
40059             lt_prog_compiler_pic_CXX='-pic'
40060             ;;
40061           cxx*)
40062             # Digital/Compaq C++
40063             lt_prog_compiler_wl_CXX='-Wl,'
40064             # Make sure the PIC flag is empty.  It appears that all Alpha
40065             # Linux and Compaq Tru64 Unix objects are PIC.
40066             lt_prog_compiler_pic_CXX=
40067             lt_prog_compiler_static_CXX='-non_shared'
40068             ;;
40069           *)
40070             ;;
40071         esac
40072         ;;
40073       psos*)
40074         ;;
40075       sco*)
40076         case $cc_basename in
40077           CC*)
40078             lt_prog_compiler_pic_CXX='-fPIC'
40079             ;;
40080           *)
40081             ;;
40082         esac
40083         ;;
40084       solaris*)
40085         case $cc_basename in
40086           CC*)
40087             # Sun C++ 4.2, 5.x and Centerline C++
40088             lt_prog_compiler_pic_CXX='-KPIC'
40089             lt_prog_compiler_static_CXX='-Bstatic'
40090             lt_prog_compiler_wl_CXX='-Qoption ld '
40091             ;;
40092           gcx*)
40093             # Green Hills C++ Compiler
40094             lt_prog_compiler_pic_CXX='-PIC'
40095             ;;
40096           *)
40097             if $CC -v --help 2>/dev/null | grep -- -static  > /dev/null 2> /dev/null; then
40098               lt_prog_compiler_static_CXX='-static'
40099             else
40100               # GCC with Sun linker
40101               lt_prog_compiler_pic_CXX='-KPIC'
40102               lt_prog_compiler_static_CXX='${wl}-Bstatic'
40103             fi
40104             ;;
40105         esac
40106         ;;
40107       sunos4*)
40108         case $cc_basename in
40109           CC*)
40110             # Sun C++ 4.x
40111             lt_prog_compiler_pic_CXX='-pic'
40112             lt_prog_compiler_static_CXX='-Bstatic'
40113             ;;
40114           lcc*)
40115             # Lucid
40116             lt_prog_compiler_pic_CXX='-pic'
40117             ;;
40118           *)
40119             ;;
40120         esac
40121         ;;
40122       tandem*)
40123         case $cc_basename in
40124           NCC*)
40125             # NonStop-UX NCC 3.20
40126             lt_prog_compiler_pic_CXX='-KPIC'
40127             ;;
40128           *)
40129             ;;
40130         esac
40131         ;;
40132       unixware*)
40133         ;;
40134       vxworks*)
40135         ;;
40136       *)
40137         lt_prog_compiler_can_build_shared_CXX=no
40138         ;;
40139     esac
40140   fi
40141
40142 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
40143 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
40144
40145 #
40146 # Check to make sure the PIC flag actually works.
40147 #
40148 if test -n "$lt_prog_compiler_pic_CXX"; then
40149
40150 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
40151 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
40152 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
40153   echo $ECHO_N "(cached) $ECHO_C" >&6
40154 else
40155   lt_prog_compiler_pic_works_CXX=no
40156   ac_outfile=conftest.$ac_objext
40157    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
40158    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
40159    # Insert the option either (1) after the last *FLAGS variable, or
40160    # (2) before a word containing "conftest.", or (3) at the end.
40161    # Note that $ac_compile itself does not contain backslashes and begins
40162    # with a dollar sign (not a hyphen), so the echo should work correctly.
40163    # The option is referenced via a variable to avoid confusing sed.
40164    lt_compile=`echo "$ac_compile" | $SED \
40165    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
40166    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
40167    -e 's:$: $lt_compiler_flag:'`
40168    (eval echo "\"\$as_me:40168: $lt_compile\"" >&5)
40169    (eval "$lt_compile" 2>conftest.err)
40170    ac_status=$?
40171    cat conftest.err >&5
40172    echo "$as_me:40172: \$? = $ac_status" >&5
40173    if (exit $ac_status) && test -s "$ac_outfile"; then
40174      # The compiler can only warn and ignore the option if not recognized
40175      # So say no if there are warnings other than the usual output.
40176      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
40177      $SED '/^$/d' conftest.err >conftest.er2
40178      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
40179        lt_prog_compiler_pic_works_CXX=yes
40180      fi
40181    fi
40182    $rm conftest*
40183
40184 fi
40185 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
40186 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
40187
40188 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
40189     case $lt_prog_compiler_pic_CXX in
40190      "" | " "*) ;;
40191      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
40192      esac
40193 else
40194     lt_prog_compiler_pic_CXX=
40195      lt_prog_compiler_can_build_shared_CXX=no
40196 fi
40197
40198 fi
40199 case $host_os in
40200   # For platforms which do not support PIC, -DPIC is meaningless:
40201   *djgpp*)
40202     lt_prog_compiler_pic_CXX=
40203     ;;
40204   *)
40205     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
40206     ;;
40207 esac
40208
40209 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
40210 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
40211 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
40212   echo $ECHO_N "(cached) $ECHO_C" >&6
40213 else
40214   lt_cv_prog_compiler_c_o_CXX=no
40215    $rm -r conftest 2>/dev/null
40216    mkdir conftest
40217    cd conftest
40218    mkdir out
40219    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
40220
40221    lt_compiler_flag="-o out/conftest2.$ac_objext"
40222    # Insert the option either (1) after the last *FLAGS variable, or
40223    # (2) before a word containing "conftest.", or (3) at the end.
40224    # Note that $ac_compile itself does not contain backslashes and begins
40225    # with a dollar sign (not a hyphen), so the echo should work correctly.
40226    lt_compile=`echo "$ac_compile" | $SED \
40227    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
40228    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
40229    -e 's:$: $lt_compiler_flag:'`
40230    (eval echo "\"\$as_me:40230: $lt_compile\"" >&5)
40231    (eval "$lt_compile" 2>out/conftest.err)
40232    ac_status=$?
40233    cat out/conftest.err >&5
40234    echo "$as_me:40234: \$? = $ac_status" >&5
40235    if (exit $ac_status) && test -s out/conftest2.$ac_objext
40236    then
40237      # The compiler can only warn and ignore the option if not recognized
40238      # So say no if there are warnings
40239      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
40240      $SED '/^$/d' out/conftest.err >out/conftest.er2
40241      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
40242        lt_cv_prog_compiler_c_o_CXX=yes
40243      fi
40244    fi
40245    chmod u+w . 2>&5
40246    $rm conftest*
40247    # SGI C++ compiler will create directory out/ii_files/ for
40248    # template instantiation
40249    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
40250    $rm out/* && rmdir out
40251    cd ..
40252    rmdir conftest
40253    $rm conftest*
40254
40255 fi
40256 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
40257 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
40258
40259
40260 hard_links="nottested"
40261 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
40262   # do not overwrite the value of need_locks provided by the user
40263   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
40264 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
40265   hard_links=yes
40266   $rm conftest*
40267   ln conftest.a conftest.b 2>/dev/null && hard_links=no
40268   touch conftest.a
40269   ln conftest.a conftest.b 2>&5 || hard_links=no
40270   ln conftest.a conftest.b 2>/dev/null && hard_links=no
40271   { echo "$as_me:$LINENO: result: $hard_links" >&5
40272 echo "${ECHO_T}$hard_links" >&6; }
40273   if test "$hard_links" = no; then
40274
40275     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
40276 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
40277
40278
40279     cat <<AAW_EOF >>config.warnings
40280 \`$CC' does not support \`-c -o', so \`make -j' may be unsafe
40281 AAW_EOF
40282
40283
40284     need_locks=warn
40285   fi
40286 else
40287   need_locks=no
40288 fi
40289
40290 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
40291 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
40292
40293   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
40294   case $host_os in
40295   aix4* | aix5*)
40296     # If we're using GNU nm, then we don't want the "-C" option.
40297     # -C means demangle to AIX nm, but means don't demangle with GNU nm
40298     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
40299       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'
40300     else
40301       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'
40302     fi
40303     ;;
40304   pw32*)
40305     export_symbols_cmds_CXX="$ltdll_cmds"
40306   ;;
40307   cygwin* | mingw*)
40308     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'
40309   ;;
40310   *)
40311     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
40312   ;;
40313   esac
40314
40315 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
40316 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
40317 test "$ld_shlibs_CXX" = no && can_build_shared=no
40318
40319 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
40320 if test "$GCC" = yes; then
40321   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
40322 fi
40323
40324 #
40325 # Do we need to explicitly link libc?
40326 #
40327 case "x$archive_cmds_need_lc_CXX" in
40328 x|xyes)
40329   # Assume -lc should be added
40330   archive_cmds_need_lc_CXX=yes
40331
40332   if test "$enable_shared" = yes && test "$GCC" = yes; then
40333     case $archive_cmds_CXX in
40334     *'~'*)
40335       # FIXME: we may have to deal with multi-command sequences.
40336       ;;
40337     '$CC '*)
40338       # Test whether the compiler implicitly links with -lc since on some
40339       # systems, -lgcc has to come before -lc. If gcc already passes -lc
40340       # to ld, don't add -lc before -lgcc.
40341       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
40342 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
40343       $rm conftest*
40344       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
40345
40346       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40347   (eval $ac_compile) 2>&5
40348   ac_status=$?
40349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40350   (exit $ac_status); } 2>conftest.err; then
40351         soname=conftest
40352         lib=conftest
40353         libobjs=conftest.$ac_objext
40354         deplibs=
40355         wl=$lt_prog_compiler_wl_CXX
40356         compiler_flags=-v
40357         linker_flags=-v
40358         verstring=
40359         output_objdir=.
40360         libname=conftest
40361         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
40362         allow_undefined_flag_CXX=
40363         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
40364   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
40365   ac_status=$?
40366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40367   (exit $ac_status); }
40368         then
40369           archive_cmds_need_lc_CXX=no
40370         else
40371           archive_cmds_need_lc_CXX=yes
40372         fi
40373         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
40374       else
40375         cat conftest.err 1>&5
40376       fi
40377       $rm conftest*
40378       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
40379 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
40380       ;;
40381     esac
40382   fi
40383   ;;
40384 esac
40385
40386 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
40387 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
40388 library_names_spec=
40389 libname_spec='lib$name'
40390 soname_spec=
40391 shrext_cmds=".so"
40392 postinstall_cmds=
40393 postuninstall_cmds=
40394 finish_cmds=
40395 finish_eval=
40396 shlibpath_var=
40397 shlibpath_overrides_runpath=unknown
40398 version_type=none
40399 dynamic_linker="$host_os ld.so"
40400 sys_lib_dlsearch_path_spec="/lib /usr/lib"
40401 if test "$GCC" = yes; then
40402   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
40403   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
40404     # if the path contains ";" then we assume it to be the separator
40405     # otherwise default to the standard path separator (i.e. ":") - it is
40406     # assumed that no part of a normal pathname contains ";" but that should
40407     # okay in the real world where ";" in dirpaths is itself problematic.
40408     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
40409   else
40410     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
40411   fi
40412 else
40413   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
40414 fi
40415 need_lib_prefix=unknown
40416 hardcode_into_libs=no
40417
40418 # when you set need_version to no, make sure it does not cause -set_version
40419 # flags to be left without arguments
40420 need_version=unknown
40421
40422 case $host_os in
40423 aix3*)
40424   version_type=linux
40425   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
40426   shlibpath_var=LIBPATH
40427
40428   # AIX 3 has no versioning support, so we append a major version to the name.
40429   soname_spec='${libname}${release}${shared_ext}$major'
40430   ;;
40431
40432 aix4* | aix5*)
40433   version_type=linux
40434   need_lib_prefix=no
40435   need_version=no
40436   hardcode_into_libs=yes
40437   if test "$host_cpu" = ia64; then
40438     # AIX 5 supports IA64
40439     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
40440     shlibpath_var=LD_LIBRARY_PATH
40441   else
40442     # With GCC up to 2.95.x, collect2 would create an import file
40443     # for dependence libraries.  The import file would start with
40444     # the line `#! .'.  This would cause the generated library to
40445     # depend on `.', always an invalid library.  This was fixed in
40446     # development snapshots of GCC prior to 3.0.
40447     case $host_os in
40448       aix4 | aix4.[01] | aix4.[01].*)
40449       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
40450            echo ' yes '
40451            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
40452         :
40453       else
40454         can_build_shared=no
40455       fi
40456       ;;
40457     esac
40458     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
40459     # soname into executable. Probably we can add versioning support to
40460     # collect2, so additional links can be useful in future.
40461     if test "$aix_use_runtimelinking" = yes; then
40462       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
40463       # instead of lib<name>.a to let people know that these are not
40464       # typical AIX shared libraries.
40465       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
40466     else
40467       # We preserve .a as extension for shared libraries through AIX4.2
40468       # and later when we are not doing run time linking.
40469       library_names_spec='${libname}${release}.a $libname.a'
40470       soname_spec='${libname}${release}${shared_ext}$major'
40471     fi
40472     shlibpath_var=LIBPATH
40473   fi
40474   ;;
40475
40476 amigaos*)
40477   library_names_spec='$libname.ixlibrary $libname.a'
40478   # Create ${libname}_ixlibrary.a entries in /sys/libs.
40479   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'
40480   ;;
40481
40482 beos*)
40483   library_names_spec='${libname}${shared_ext}'
40484   dynamic_linker="$host_os ld.so"
40485   shlibpath_var=LIBRARY_PATH
40486   ;;
40487
40488 bsdi[45]*)
40489   version_type=linux
40490   need_version=no
40491   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
40492   soname_spec='${libname}${release}${shared_ext}$major'
40493   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
40494   shlibpath_var=LD_LIBRARY_PATH
40495   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
40496   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
40497   # the default ld.so.conf also contains /usr/contrib/lib and
40498   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
40499   # libtool to hard-code these into programs
40500   ;;
40501
40502 cygwin* | mingw* | pw32*)
40503   version_type=windows
40504   shrext_cmds=".dll"
40505   need_version=no
40506   need_lib_prefix=no
40507
40508   case $GCC,$host_os in
40509   yes,cygwin* | yes,mingw* | yes,pw32*)
40510     library_names_spec='$libname.dll.a'
40511     # DLL is installed to $(libdir)/../bin by postinstall_cmds
40512     postinstall_cmds='base_file=`basename \${file}`~
40513       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
40514       dldir=$destdir/`dirname \$dlpath`~
40515       test -d \$dldir || mkdir -p \$dldir~
40516       $install_prog $dir/$dlname \$dldir/$dlname~
40517       chmod a+x \$dldir/$dlname'
40518     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
40519       dlpath=$dir/\$dldll~
40520        $rm \$dlpath'
40521     shlibpath_overrides_runpath=yes
40522
40523     case $host_os in
40524     cygwin*)
40525       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
40526       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
40527       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
40528       ;;
40529     mingw*)
40530       # MinGW DLLs use traditional 'lib' prefix
40531       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
40532       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
40533       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
40534         # It is most probably a Windows format PATH printed by
40535         # mingw gcc, but we are running on Cygwin. Gcc prints its search
40536         # path with ; separators, and with drive letters. We can handle the
40537         # drive letters (cygwin fileutils understands them), so leave them,
40538         # especially as we might pass files found there to a mingw objdump,
40539         # which wouldn't understand a cygwinified path. Ahh.
40540         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
40541       else
40542         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
40543       fi
40544       ;;
40545     pw32*)
40546       # pw32 DLLs use 'pw' prefix rather than 'lib'
40547       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
40548       ;;
40549     esac
40550     ;;
40551
40552   *)
40553     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
40554     ;;
40555   esac
40556   dynamic_linker='Win32 ld.exe'
40557   # FIXME: first we should search . and the directory the executable is in
40558   shlibpath_var=PATH
40559   ;;
40560
40561 darwin* | rhapsody*)
40562   dynamic_linker="$host_os dyld"
40563   version_type=darwin
40564   need_lib_prefix=no
40565   need_version=no
40566   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
40567   soname_spec='${libname}${release}${major}$shared_ext'
40568   shlibpath_overrides_runpath=yes
40569   shlibpath_var=DYLD_LIBRARY_PATH
40570   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
40571   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
40572   if test "$GCC" = yes; then
40573     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"`
40574   else
40575     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
40576   fi
40577   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
40578   ;;
40579
40580 dgux*)
40581   version_type=linux
40582   need_lib_prefix=no
40583   need_version=no
40584   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
40585   soname_spec='${libname}${release}${shared_ext}$major'
40586   shlibpath_var=LD_LIBRARY_PATH
40587   ;;
40588
40589 freebsd1*)
40590   dynamic_linker=no
40591   ;;
40592
40593 kfreebsd*-gnu)
40594   version_type=linux
40595   need_lib_prefix=no
40596   need_version=no
40597   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
40598   soname_spec='${libname}${release}${shared_ext}$major'
40599   shlibpath_var=LD_LIBRARY_PATH
40600   shlibpath_overrides_runpath=no
40601   hardcode_into_libs=yes
40602   dynamic_linker='GNU ld.so'
40603   ;;
40604
40605 freebsd* | dragonfly*)
40606   # DragonFly does not have aout.  When/if they implement a new
40607   # versioning mechanism, adjust this.
40608   if test -x /usr/bin/objformat; then
40609     objformat=`/usr/bin/objformat`
40610   else
40611     case $host_os in
40612     freebsd[123]*) objformat=aout ;;
40613     *) objformat=elf ;;
40614     esac
40615   fi
40616   version_type=freebsd-$objformat
40617   case $version_type in
40618     freebsd-elf*)
40619       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
40620       need_version=no
40621       need_lib_prefix=no
40622       ;;
40623     freebsd-*)
40624       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
40625       need_version=yes
40626       ;;
40627   esac
40628   shlibpath_var=LD_LIBRARY_PATH
40629   case $host_os in
40630   freebsd2*)
40631     shlibpath_overrides_runpath=yes
40632     ;;
40633   freebsd3.[01]* | freebsdelf3.[01]*)
40634     shlibpath_overrides_runpath=yes
40635     hardcode_into_libs=yes
40636     ;;
40637   *) # from 3.2 on
40638     shlibpath_overrides_runpath=no
40639     hardcode_into_libs=yes
40640     ;;
40641   esac
40642   ;;
40643
40644 gnu*)
40645   version_type=linux
40646   need_lib_prefix=no
40647   need_version=no
40648   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
40649   soname_spec='${libname}${release}${shared_ext}$major'
40650   shlibpath_var=LD_LIBRARY_PATH
40651   hardcode_into_libs=yes
40652   ;;
40653
40654 hpux9* | hpux10* | hpux11*)
40655   # Give a soname corresponding to the major version so that dld.sl refuses to
40656   # link against other versions.
40657   version_type=sunos
40658   need_lib_prefix=no
40659   need_version=no
40660   case $host_cpu in
40661   ia64*)
40662     shrext_cmds='.so'
40663     hardcode_into_libs=yes
40664     dynamic_linker="$host_os dld.so"
40665     shlibpath_var=LD_LIBRARY_PATH
40666     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
40667     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
40668     soname_spec='${libname}${release}${shared_ext}$major'
40669     if test "X$HPUX_IA64_MODE" = X32; then
40670       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
40671     else
40672       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
40673     fi
40674     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
40675     ;;
40676    hppa*64*)
40677      shrext_cmds='.sl'
40678      hardcode_into_libs=yes
40679      dynamic_linker="$host_os dld.sl"
40680      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
40681      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
40682      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
40683      soname_spec='${libname}${release}${shared_ext}$major'
40684      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
40685      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
40686      ;;
40687    *)
40688     shrext_cmds='.sl'
40689     dynamic_linker="$host_os dld.sl"
40690     shlibpath_var=SHLIB_PATH
40691     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
40692     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
40693     soname_spec='${libname}${release}${shared_ext}$major'
40694     ;;
40695   esac
40696   # HP-UX runs *really* slowly unless shared libraries are mode 555.
40697   postinstall_cmds='chmod 555 $lib'
40698   ;;
40699
40700 irix5* | irix6* | nonstopux*)
40701   case $host_os in
40702     nonstopux*) version_type=nonstopux ;;
40703     *)
40704         if test "$lt_cv_prog_gnu_ld" = yes; then
40705                 version_type=linux
40706         else
40707                 version_type=irix
40708         fi ;;
40709   esac
40710   need_lib_prefix=no
40711   need_version=no
40712   soname_spec='${libname}${release}${shared_ext}$major'
40713   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
40714   case $host_os in
40715   irix5* | nonstopux*)
40716     libsuff= shlibsuff=
40717     ;;
40718   *)
40719     case $LD in # libtool.m4 will add one of these switches to LD
40720     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
40721       libsuff= shlibsuff= libmagic=32-bit;;
40722     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
40723       libsuff=32 shlibsuff=N32 libmagic=N32;;
40724     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
40725       libsuff=64 shlibsuff=64 libmagic=64-bit;;
40726     *) libsuff= shlibsuff= libmagic=never-match;;
40727     esac
40728     ;;
40729   esac
40730   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
40731   shlibpath_overrides_runpath=no
40732   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
40733   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
40734   hardcode_into_libs=yes
40735   ;;
40736
40737 # No shared lib support for Linux oldld, aout, or coff.
40738 linux*oldld* | linux*aout* | linux*coff*)
40739   dynamic_linker=no
40740   ;;
40741
40742 # This must be Linux ELF.
40743 linux*)
40744   version_type=linux
40745   need_lib_prefix=no
40746   need_version=no
40747   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
40748   soname_spec='${libname}${release}${shared_ext}$major'
40749   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
40750   shlibpath_var=LD_LIBRARY_PATH
40751   shlibpath_overrides_runpath=no
40752   # This implies no fast_install, which is unacceptable.
40753   # Some rework will be needed to allow for fast_install
40754   # before this can be enabled.
40755   hardcode_into_libs=yes
40756
40757   # Append ld.so.conf contents to the search path
40758   if test -f /etc/ld.so.conf; then
40759     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' ' '`
40760     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
40761   fi
40762
40763   # We used to test for /lib/ld.so.1 and disable shared libraries on
40764   # powerpc, because MkLinux only supported shared libraries with the
40765   # GNU dynamic linker.  Since this was broken with cross compilers,
40766   # most powerpc-linux boxes support dynamic linking these days and
40767   # people can always --disable-shared, the test was removed, and we
40768   # assume the GNU/Linux dynamic linker is in use.
40769   dynamic_linker='GNU/Linux ld.so'
40770   ;;
40771
40772 knetbsd*-gnu)
40773   version_type=linux
40774   need_lib_prefix=no
40775   need_version=no
40776   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
40777   soname_spec='${libname}${release}${shared_ext}$major'
40778   shlibpath_var=LD_LIBRARY_PATH
40779   shlibpath_overrides_runpath=no
40780   hardcode_into_libs=yes
40781   dynamic_linker='GNU ld.so'
40782   ;;
40783
40784 netbsd*)
40785   version_type=sunos
40786   need_lib_prefix=no
40787   need_version=no
40788   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
40789     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
40790     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
40791     dynamic_linker='NetBSD (a.out) ld.so'
40792   else
40793     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
40794     soname_spec='${libname}${release}${shared_ext}$major'
40795     dynamic_linker='NetBSD ld.elf_so'
40796   fi
40797   shlibpath_var=LD_LIBRARY_PATH
40798   shlibpath_overrides_runpath=yes
40799   hardcode_into_libs=yes
40800   ;;
40801
40802 newsos6)
40803   version_type=linux
40804   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
40805   shlibpath_var=LD_LIBRARY_PATH
40806   shlibpath_overrides_runpath=yes
40807   ;;
40808
40809 nto-qnx*)
40810   version_type=linux
40811   need_lib_prefix=no
40812   need_version=no
40813   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
40814   soname_spec='${libname}${release}${shared_ext}$major'
40815   shlibpath_var=LD_LIBRARY_PATH
40816   shlibpath_overrides_runpath=yes
40817   ;;
40818
40819 openbsd*)
40820   version_type=sunos
40821   need_lib_prefix=no
40822   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
40823   case $host_os in
40824     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
40825     *)                         need_version=no  ;;
40826   esac
40827   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
40828   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
40829   shlibpath_var=LD_LIBRARY_PATH
40830   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
40831     case $host_os in
40832       openbsd2.[89] | openbsd2.[89].*)
40833         shlibpath_overrides_runpath=no
40834         ;;
40835       *)
40836         shlibpath_overrides_runpath=yes
40837         ;;
40838       esac
40839   else
40840     shlibpath_overrides_runpath=yes
40841   fi
40842   ;;
40843
40844 os2*)
40845   libname_spec='$name'
40846   shrext_cmds=".dll"
40847   need_lib_prefix=no
40848   library_names_spec='$libname${shared_ext} $libname.a'
40849   dynamic_linker='OS/2 ld.exe'
40850   shlibpath_var=LIBPATH
40851   ;;
40852
40853 osf3* | osf4* | osf5*)
40854   version_type=osf
40855   need_lib_prefix=no
40856   need_version=no
40857   soname_spec='${libname}${release}${shared_ext}$major'
40858   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
40859   shlibpath_var=LD_LIBRARY_PATH
40860   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
40861   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
40862   ;;
40863
40864 sco3.2v5*)
40865   version_type=osf
40866   soname_spec='${libname}${release}${shared_ext}$major'
40867   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
40868   shlibpath_var=LD_LIBRARY_PATH
40869   ;;
40870
40871 solaris*)
40872   version_type=linux
40873   need_lib_prefix=no
40874   need_version=no
40875   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
40876   soname_spec='${libname}${release}${shared_ext}$major'
40877   shlibpath_var=LD_LIBRARY_PATH
40878   shlibpath_overrides_runpath=yes
40879   hardcode_into_libs=yes
40880   # ldd complains unless libraries are executable
40881   postinstall_cmds='chmod +x $lib'
40882   ;;
40883
40884 sunos4*)
40885   version_type=sunos
40886   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
40887   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
40888   shlibpath_var=LD_LIBRARY_PATH
40889   shlibpath_overrides_runpath=yes
40890   if test "$with_gnu_ld" = yes; then
40891     need_lib_prefix=no
40892   fi
40893   need_version=yes
40894   ;;
40895
40896 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
40897   version_type=linux
40898   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
40899   soname_spec='${libname}${release}${shared_ext}$major'
40900   shlibpath_var=LD_LIBRARY_PATH
40901   case $host_vendor in
40902     sni)
40903       shlibpath_overrides_runpath=no
40904       need_lib_prefix=no
40905       export_dynamic_flag_spec='${wl}-Blargedynsym'
40906       runpath_var=LD_RUN_PATH
40907       ;;
40908     siemens)
40909       need_lib_prefix=no
40910       ;;
40911     motorola)
40912       need_lib_prefix=no
40913       need_version=no
40914       shlibpath_overrides_runpath=no
40915       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
40916       ;;
40917   esac
40918   ;;
40919
40920 sysv4*MP*)
40921   if test -d /usr/nec ;then
40922     version_type=linux
40923     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
40924     soname_spec='$libname${shared_ext}.$major'
40925     shlibpath_var=LD_LIBRARY_PATH
40926   fi
40927   ;;
40928
40929 uts4*)
40930   version_type=linux
40931   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
40932   soname_spec='${libname}${release}${shared_ext}$major'
40933   shlibpath_var=LD_LIBRARY_PATH
40934   ;;
40935
40936 *)
40937   dynamic_linker=no
40938   ;;
40939 esac
40940 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
40941 echo "${ECHO_T}$dynamic_linker" >&6; }
40942 test "$dynamic_linker" = no && can_build_shared=no
40943
40944 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
40945 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
40946 hardcode_action_CXX=
40947 if test -n "$hardcode_libdir_flag_spec_CXX" || \
40948    test -n "$runpath_var_CXX" || \
40949    test "X$hardcode_automatic_CXX" = "Xyes" ; then
40950
40951   # We can hardcode non-existant directories.
40952   if test "$hardcode_direct_CXX" != no &&
40953      # If the only mechanism to avoid hardcoding is shlibpath_var, we
40954      # have to relink, otherwise we might link with an installed library
40955      # when we should be linking with a yet-to-be-installed one
40956      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
40957      test "$hardcode_minus_L_CXX" != no; then
40958     # Linking always hardcodes the temporary library directory.
40959     hardcode_action_CXX=relink
40960   else
40961     # We can link without hardcoding, and we can hardcode nonexisting dirs.
40962     hardcode_action_CXX=immediate
40963   fi
40964 else
40965   # We cannot hardcode anything, or else we can only hardcode existing
40966   # directories.
40967   hardcode_action_CXX=unsupported
40968 fi
40969 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
40970 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
40971
40972 if test "$hardcode_action_CXX" = relink; then
40973   # Fast installation is not supported
40974   enable_fast_install=no
40975 elif test "$shlibpath_overrides_runpath" = yes ||
40976      test "$enable_shared" = no; then
40977   # Fast installation is not necessary
40978   enable_fast_install=needless
40979 fi
40980
40981 striplib=
40982 old_striplib=
40983 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
40984 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
40985 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
40986   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
40987   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
40988   { echo "$as_me:$LINENO: result: yes" >&5
40989 echo "${ECHO_T}yes" >&6; }
40990 else
40991 # FIXME - insert some real tests, host_os isn't really good enough
40992   case $host_os in
40993    darwin*)
40994        if test -n "$STRIP" ; then
40995          striplib="$STRIP -x"
40996          { echo "$as_me:$LINENO: result: yes" >&5
40997 echo "${ECHO_T}yes" >&6; }
40998        else
40999   { echo "$as_me:$LINENO: result: no" >&5
41000 echo "${ECHO_T}no" >&6; }
41001 fi
41002        ;;
41003    *)
41004   { echo "$as_me:$LINENO: result: no" >&5
41005 echo "${ECHO_T}no" >&6; }
41006     ;;
41007   esac
41008 fi
41009
41010 if test "x$enable_dlopen" != xyes; then
41011   enable_dlopen=unknown
41012   enable_dlopen_self=unknown
41013   enable_dlopen_self_static=unknown
41014 else
41015   lt_cv_dlopen=no
41016   lt_cv_dlopen_libs=
41017
41018   case $host_os in
41019   beos*)
41020     lt_cv_dlopen="load_add_on"
41021     lt_cv_dlopen_libs=
41022     lt_cv_dlopen_self=yes
41023     ;;
41024
41025   mingw* | pw32*)
41026     lt_cv_dlopen="LoadLibrary"
41027     lt_cv_dlopen_libs=
41028    ;;
41029
41030   cygwin*)
41031     lt_cv_dlopen="dlopen"
41032     lt_cv_dlopen_libs=
41033    ;;
41034
41035   darwin*)
41036   # if libdl is installed we need to link against it
41037     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
41038 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
41039 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
41040   echo $ECHO_N "(cached) $ECHO_C" >&6
41041 else
41042   ac_check_lib_save_LIBS=$LIBS
41043 LIBS="-ldl  $LIBS"
41044 cat >conftest.$ac_ext <<_ACEOF
41045 /* confdefs.h.  */
41046 _ACEOF
41047 cat confdefs.h >>conftest.$ac_ext
41048 cat >>conftest.$ac_ext <<_ACEOF
41049 /* end confdefs.h.  */
41050
41051 /* Override any GCC internal prototype to avoid an error.
41052    Use char because int might match the return type of a GCC
41053    builtin and then its argument prototype would still apply.  */
41054 #ifdef __cplusplus
41055 extern "C"
41056 #endif
41057 char dlopen ();
41058 int
41059 main ()
41060 {
41061 return dlopen ();
41062   ;
41063   return 0;
41064 }
41065 _ACEOF
41066 rm -f conftest.$ac_objext conftest$ac_exeext
41067 if { (ac_try="$ac_link"
41068 case "(($ac_try" in
41069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41070   *) ac_try_echo=$ac_try;;
41071 esac
41072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41073   (eval "$ac_link") 2>conftest.er1
41074   ac_status=$?
41075   grep -v '^ *+' conftest.er1 >conftest.err
41076   rm -f conftest.er1
41077   cat conftest.err >&5
41078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41079   (exit $ac_status); } && {
41080          test -z "$ac_cxx_werror_flag" ||
41081          test ! -s conftest.err
41082        } && test -s conftest$ac_exeext &&
41083        $as_test_x conftest$ac_exeext; then
41084   ac_cv_lib_dl_dlopen=yes
41085 else
41086   echo "$as_me: failed program was:" >&5
41087 sed 's/^/| /' conftest.$ac_ext >&5
41088
41089         ac_cv_lib_dl_dlopen=no
41090 fi
41091
41092 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41093       conftest$ac_exeext conftest.$ac_ext
41094 LIBS=$ac_check_lib_save_LIBS
41095 fi
41096 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
41097 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
41098 if test $ac_cv_lib_dl_dlopen = yes; then
41099   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
41100 else
41101
41102     lt_cv_dlopen="dyld"
41103     lt_cv_dlopen_libs=
41104     lt_cv_dlopen_self=yes
41105
41106 fi
41107
41108    ;;
41109
41110   *)
41111     { echo "$as_me:$LINENO: checking for shl_load" >&5
41112 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
41113 if test "${ac_cv_func_shl_load+set}" = set; then
41114   echo $ECHO_N "(cached) $ECHO_C" >&6
41115 else
41116   cat >conftest.$ac_ext <<_ACEOF
41117 /* confdefs.h.  */
41118 _ACEOF
41119 cat confdefs.h >>conftest.$ac_ext
41120 cat >>conftest.$ac_ext <<_ACEOF
41121 /* end confdefs.h.  */
41122 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
41123    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41124 #define shl_load innocuous_shl_load
41125
41126 /* System header to define __stub macros and hopefully few prototypes,
41127     which can conflict with char shl_load (); below.
41128     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41129     <limits.h> exists even on freestanding compilers.  */
41130
41131 #ifdef __STDC__
41132 # include <limits.h>
41133 #else
41134 # include <assert.h>
41135 #endif
41136
41137 #undef shl_load
41138
41139 /* Override any GCC internal prototype to avoid an error.
41140    Use char because int might match the return type of a GCC
41141    builtin and then its argument prototype would still apply.  */
41142 #ifdef __cplusplus
41143 extern "C"
41144 #endif
41145 char shl_load ();
41146 /* The GNU C library defines this for functions which it implements
41147     to always fail with ENOSYS.  Some functions are actually named
41148     something starting with __ and the normal name is an alias.  */
41149 #if defined __stub_shl_load || defined __stub___shl_load
41150 choke me
41151 #endif
41152
41153 int
41154 main ()
41155 {
41156 return shl_load ();
41157   ;
41158   return 0;
41159 }
41160 _ACEOF
41161 rm -f conftest.$ac_objext conftest$ac_exeext
41162 if { (ac_try="$ac_link"
41163 case "(($ac_try" in
41164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41165   *) ac_try_echo=$ac_try;;
41166 esac
41167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41168   (eval "$ac_link") 2>conftest.er1
41169   ac_status=$?
41170   grep -v '^ *+' conftest.er1 >conftest.err
41171   rm -f conftest.er1
41172   cat conftest.err >&5
41173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41174   (exit $ac_status); } && {
41175          test -z "$ac_cxx_werror_flag" ||
41176          test ! -s conftest.err
41177        } && test -s conftest$ac_exeext &&
41178        $as_test_x conftest$ac_exeext; then
41179   ac_cv_func_shl_load=yes
41180 else
41181   echo "$as_me: failed program was:" >&5
41182 sed 's/^/| /' conftest.$ac_ext >&5
41183
41184         ac_cv_func_shl_load=no
41185 fi
41186
41187 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41188       conftest$ac_exeext conftest.$ac_ext
41189 fi
41190 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
41191 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
41192 if test $ac_cv_func_shl_load = yes; then
41193   lt_cv_dlopen="shl_load"
41194 else
41195   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
41196 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
41197 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
41198   echo $ECHO_N "(cached) $ECHO_C" >&6
41199 else
41200   ac_check_lib_save_LIBS=$LIBS
41201 LIBS="-ldld  $LIBS"
41202 cat >conftest.$ac_ext <<_ACEOF
41203 /* confdefs.h.  */
41204 _ACEOF
41205 cat confdefs.h >>conftest.$ac_ext
41206 cat >>conftest.$ac_ext <<_ACEOF
41207 /* end confdefs.h.  */
41208
41209 /* Override any GCC internal prototype to avoid an error.
41210    Use char because int might match the return type of a GCC
41211    builtin and then its argument prototype would still apply.  */
41212 #ifdef __cplusplus
41213 extern "C"
41214 #endif
41215 char shl_load ();
41216 int
41217 main ()
41218 {
41219 return shl_load ();
41220   ;
41221   return 0;
41222 }
41223 _ACEOF
41224 rm -f conftest.$ac_objext conftest$ac_exeext
41225 if { (ac_try="$ac_link"
41226 case "(($ac_try" in
41227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41228   *) ac_try_echo=$ac_try;;
41229 esac
41230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41231   (eval "$ac_link") 2>conftest.er1
41232   ac_status=$?
41233   grep -v '^ *+' conftest.er1 >conftest.err
41234   rm -f conftest.er1
41235   cat conftest.err >&5
41236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41237   (exit $ac_status); } && {
41238          test -z "$ac_cxx_werror_flag" ||
41239          test ! -s conftest.err
41240        } && test -s conftest$ac_exeext &&
41241        $as_test_x conftest$ac_exeext; then
41242   ac_cv_lib_dld_shl_load=yes
41243 else
41244   echo "$as_me: failed program was:" >&5
41245 sed 's/^/| /' conftest.$ac_ext >&5
41246
41247         ac_cv_lib_dld_shl_load=no
41248 fi
41249
41250 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41251       conftest$ac_exeext conftest.$ac_ext
41252 LIBS=$ac_check_lib_save_LIBS
41253 fi
41254 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
41255 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
41256 if test $ac_cv_lib_dld_shl_load = yes; then
41257   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
41258 else
41259   { echo "$as_me:$LINENO: checking for dlopen" >&5
41260 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
41261 if test "${ac_cv_func_dlopen+set}" = set; then
41262   echo $ECHO_N "(cached) $ECHO_C" >&6
41263 else
41264   cat >conftest.$ac_ext <<_ACEOF
41265 /* confdefs.h.  */
41266 _ACEOF
41267 cat confdefs.h >>conftest.$ac_ext
41268 cat >>conftest.$ac_ext <<_ACEOF
41269 /* end confdefs.h.  */
41270 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
41271    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41272 #define dlopen innocuous_dlopen
41273
41274 /* System header to define __stub macros and hopefully few prototypes,
41275     which can conflict with char dlopen (); below.
41276     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41277     <limits.h> exists even on freestanding compilers.  */
41278
41279 #ifdef __STDC__
41280 # include <limits.h>
41281 #else
41282 # include <assert.h>
41283 #endif
41284
41285 #undef dlopen
41286
41287 /* Override any GCC internal prototype to avoid an error.
41288    Use char because int might match the return type of a GCC
41289    builtin and then its argument prototype would still apply.  */
41290 #ifdef __cplusplus
41291 extern "C"
41292 #endif
41293 char dlopen ();
41294 /* The GNU C library defines this for functions which it implements
41295     to always fail with ENOSYS.  Some functions are actually named
41296     something starting with __ and the normal name is an alias.  */
41297 #if defined __stub_dlopen || defined __stub___dlopen
41298 choke me
41299 #endif
41300
41301 int
41302 main ()
41303 {
41304 return dlopen ();
41305   ;
41306   return 0;
41307 }
41308 _ACEOF
41309 rm -f conftest.$ac_objext conftest$ac_exeext
41310 if { (ac_try="$ac_link"
41311 case "(($ac_try" in
41312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41313   *) ac_try_echo=$ac_try;;
41314 esac
41315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41316   (eval "$ac_link") 2>conftest.er1
41317   ac_status=$?
41318   grep -v '^ *+' conftest.er1 >conftest.err
41319   rm -f conftest.er1
41320   cat conftest.err >&5
41321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41322   (exit $ac_status); } && {
41323          test -z "$ac_cxx_werror_flag" ||
41324          test ! -s conftest.err
41325        } && test -s conftest$ac_exeext &&
41326        $as_test_x conftest$ac_exeext; then
41327   ac_cv_func_dlopen=yes
41328 else
41329   echo "$as_me: failed program was:" >&5
41330 sed 's/^/| /' conftest.$ac_ext >&5
41331
41332         ac_cv_func_dlopen=no
41333 fi
41334
41335 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41336       conftest$ac_exeext conftest.$ac_ext
41337 fi
41338 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
41339 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
41340 if test $ac_cv_func_dlopen = yes; then
41341   lt_cv_dlopen="dlopen"
41342 else
41343   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
41344 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
41345 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
41346   echo $ECHO_N "(cached) $ECHO_C" >&6
41347 else
41348   ac_check_lib_save_LIBS=$LIBS
41349 LIBS="-ldl  $LIBS"
41350 cat >conftest.$ac_ext <<_ACEOF
41351 /* confdefs.h.  */
41352 _ACEOF
41353 cat confdefs.h >>conftest.$ac_ext
41354 cat >>conftest.$ac_ext <<_ACEOF
41355 /* end confdefs.h.  */
41356
41357 /* Override any GCC internal prototype to avoid an error.
41358    Use char because int might match the return type of a GCC
41359    builtin and then its argument prototype would still apply.  */
41360 #ifdef __cplusplus
41361 extern "C"
41362 #endif
41363 char dlopen ();
41364 int
41365 main ()
41366 {
41367 return dlopen ();
41368   ;
41369   return 0;
41370 }
41371 _ACEOF
41372 rm -f conftest.$ac_objext conftest$ac_exeext
41373 if { (ac_try="$ac_link"
41374 case "(($ac_try" in
41375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41376   *) ac_try_echo=$ac_try;;
41377 esac
41378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41379   (eval "$ac_link") 2>conftest.er1
41380   ac_status=$?
41381   grep -v '^ *+' conftest.er1 >conftest.err
41382   rm -f conftest.er1
41383   cat conftest.err >&5
41384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41385   (exit $ac_status); } && {
41386          test -z "$ac_cxx_werror_flag" ||
41387          test ! -s conftest.err
41388        } && test -s conftest$ac_exeext &&
41389        $as_test_x conftest$ac_exeext; then
41390   ac_cv_lib_dl_dlopen=yes
41391 else
41392   echo "$as_me: failed program was:" >&5
41393 sed 's/^/| /' conftest.$ac_ext >&5
41394
41395         ac_cv_lib_dl_dlopen=no
41396 fi
41397
41398 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41399       conftest$ac_exeext conftest.$ac_ext
41400 LIBS=$ac_check_lib_save_LIBS
41401 fi
41402 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
41403 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
41404 if test $ac_cv_lib_dl_dlopen = yes; then
41405   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
41406 else
41407   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
41408 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
41409 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
41410   echo $ECHO_N "(cached) $ECHO_C" >&6
41411 else
41412   ac_check_lib_save_LIBS=$LIBS
41413 LIBS="-lsvld  $LIBS"
41414 cat >conftest.$ac_ext <<_ACEOF
41415 /* confdefs.h.  */
41416 _ACEOF
41417 cat confdefs.h >>conftest.$ac_ext
41418 cat >>conftest.$ac_ext <<_ACEOF
41419 /* end confdefs.h.  */
41420
41421 /* Override any GCC internal prototype to avoid an error.
41422    Use char because int might match the return type of a GCC
41423    builtin and then its argument prototype would still apply.  */
41424 #ifdef __cplusplus
41425 extern "C"
41426 #endif
41427 char dlopen ();
41428 int
41429 main ()
41430 {
41431 return dlopen ();
41432   ;
41433   return 0;
41434 }
41435 _ACEOF
41436 rm -f conftest.$ac_objext conftest$ac_exeext
41437 if { (ac_try="$ac_link"
41438 case "(($ac_try" in
41439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41440   *) ac_try_echo=$ac_try;;
41441 esac
41442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41443   (eval "$ac_link") 2>conftest.er1
41444   ac_status=$?
41445   grep -v '^ *+' conftest.er1 >conftest.err
41446   rm -f conftest.er1
41447   cat conftest.err >&5
41448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41449   (exit $ac_status); } && {
41450          test -z "$ac_cxx_werror_flag" ||
41451          test ! -s conftest.err
41452        } && test -s conftest$ac_exeext &&
41453        $as_test_x conftest$ac_exeext; then
41454   ac_cv_lib_svld_dlopen=yes
41455 else
41456   echo "$as_me: failed program was:" >&5
41457 sed 's/^/| /' conftest.$ac_ext >&5
41458
41459         ac_cv_lib_svld_dlopen=no
41460 fi
41461
41462 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41463       conftest$ac_exeext conftest.$ac_ext
41464 LIBS=$ac_check_lib_save_LIBS
41465 fi
41466 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
41467 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
41468 if test $ac_cv_lib_svld_dlopen = yes; then
41469   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
41470 else
41471   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
41472 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
41473 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
41474   echo $ECHO_N "(cached) $ECHO_C" >&6
41475 else
41476   ac_check_lib_save_LIBS=$LIBS
41477 LIBS="-ldld  $LIBS"
41478 cat >conftest.$ac_ext <<_ACEOF
41479 /* confdefs.h.  */
41480 _ACEOF
41481 cat confdefs.h >>conftest.$ac_ext
41482 cat >>conftest.$ac_ext <<_ACEOF
41483 /* end confdefs.h.  */
41484
41485 /* Override any GCC internal prototype to avoid an error.
41486    Use char because int might match the return type of a GCC
41487    builtin and then its argument prototype would still apply.  */
41488 #ifdef __cplusplus
41489 extern "C"
41490 #endif
41491 char dld_link ();
41492 int
41493 main ()
41494 {
41495 return dld_link ();
41496   ;
41497   return 0;
41498 }
41499 _ACEOF
41500 rm -f conftest.$ac_objext conftest$ac_exeext
41501 if { (ac_try="$ac_link"
41502 case "(($ac_try" in
41503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41504   *) ac_try_echo=$ac_try;;
41505 esac
41506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41507   (eval "$ac_link") 2>conftest.er1
41508   ac_status=$?
41509   grep -v '^ *+' conftest.er1 >conftest.err
41510   rm -f conftest.er1
41511   cat conftest.err >&5
41512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41513   (exit $ac_status); } && {
41514          test -z "$ac_cxx_werror_flag" ||
41515          test ! -s conftest.err
41516        } && test -s conftest$ac_exeext &&
41517        $as_test_x conftest$ac_exeext; then
41518   ac_cv_lib_dld_dld_link=yes
41519 else
41520   echo "$as_me: failed program was:" >&5
41521 sed 's/^/| /' conftest.$ac_ext >&5
41522
41523         ac_cv_lib_dld_dld_link=no
41524 fi
41525
41526 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41527       conftest$ac_exeext conftest.$ac_ext
41528 LIBS=$ac_check_lib_save_LIBS
41529 fi
41530 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
41531 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
41532 if test $ac_cv_lib_dld_dld_link = yes; then
41533   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
41534 fi
41535
41536
41537 fi
41538
41539
41540 fi
41541
41542
41543 fi
41544
41545
41546 fi
41547
41548
41549 fi
41550
41551     ;;
41552   esac
41553
41554   if test "x$lt_cv_dlopen" != xno; then
41555     enable_dlopen=yes
41556   else
41557     enable_dlopen=no
41558   fi
41559
41560   case $lt_cv_dlopen in
41561   dlopen)
41562     save_CPPFLAGS="$CPPFLAGS"
41563     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
41564
41565     save_LDFLAGS="$LDFLAGS"
41566     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
41567
41568     save_LIBS="$LIBS"
41569     LIBS="$lt_cv_dlopen_libs $LIBS"
41570
41571     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
41572 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
41573 if test "${lt_cv_dlopen_self+set}" = set; then
41574   echo $ECHO_N "(cached) $ECHO_C" >&6
41575 else
41576           if test "$cross_compiling" = yes; then :
41577   lt_cv_dlopen_self=cross
41578 else
41579   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
41580   lt_status=$lt_dlunknown
41581   cat > conftest.$ac_ext <<EOF
41582 #line 41582 "configure"
41583 #include "confdefs.h"
41584
41585 #if HAVE_DLFCN_H
41586 #include <dlfcn.h>
41587 #endif
41588
41589 #include <stdio.h>
41590
41591 #ifdef RTLD_GLOBAL
41592 #  define LT_DLGLOBAL           RTLD_GLOBAL
41593 #else
41594 #  ifdef DL_GLOBAL
41595 #    define LT_DLGLOBAL         DL_GLOBAL
41596 #  else
41597 #    define LT_DLGLOBAL         0
41598 #  endif
41599 #endif
41600
41601 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
41602    find out it does not work in some platform. */
41603 #ifndef LT_DLLAZY_OR_NOW
41604 #  ifdef RTLD_LAZY
41605 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
41606 #  else
41607 #    ifdef DL_LAZY
41608 #      define LT_DLLAZY_OR_NOW          DL_LAZY
41609 #    else
41610 #      ifdef RTLD_NOW
41611 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
41612 #      else
41613 #        ifdef DL_NOW
41614 #          define LT_DLLAZY_OR_NOW      DL_NOW
41615 #        else
41616 #          define LT_DLLAZY_OR_NOW      0
41617 #        endif
41618 #      endif
41619 #    endif
41620 #  endif
41621 #endif
41622
41623 #ifdef __cplusplus
41624 extern "C" void exit (int);
41625 #endif
41626
41627 void fnord() { int i=42;}
41628 int main ()
41629 {
41630   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
41631   int status = $lt_dlunknown;
41632
41633   if (self)
41634     {
41635       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
41636       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
41637       /* dlclose (self); */
41638     }
41639
41640     exit (status);
41641 }
41642 EOF
41643   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41644   (eval $ac_link) 2>&5
41645   ac_status=$?
41646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41647   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
41648     (./conftest; exit; ) >&5 2>/dev/null
41649     lt_status=$?
41650     case x$lt_status in
41651       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
41652       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
41653       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
41654     esac
41655   else :
41656     # compilation failed
41657     lt_cv_dlopen_self=no
41658   fi
41659 fi
41660 rm -fr conftest*
41661
41662
41663 fi
41664 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
41665 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
41666
41667     if test "x$lt_cv_dlopen_self" = xyes; then
41668       LDFLAGS="$LDFLAGS $link_static_flag"
41669       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
41670 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
41671 if test "${lt_cv_dlopen_self_static+set}" = set; then
41672   echo $ECHO_N "(cached) $ECHO_C" >&6
41673 else
41674           if test "$cross_compiling" = yes; then :
41675   lt_cv_dlopen_self_static=cross
41676 else
41677   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
41678   lt_status=$lt_dlunknown
41679   cat > conftest.$ac_ext <<EOF
41680 #line 41680 "configure"
41681 #include "confdefs.h"
41682
41683 #if HAVE_DLFCN_H
41684 #include <dlfcn.h>
41685 #endif
41686
41687 #include <stdio.h>
41688
41689 #ifdef RTLD_GLOBAL
41690 #  define LT_DLGLOBAL           RTLD_GLOBAL
41691 #else
41692 #  ifdef DL_GLOBAL
41693 #    define LT_DLGLOBAL         DL_GLOBAL
41694 #  else
41695 #    define LT_DLGLOBAL         0
41696 #  endif
41697 #endif
41698
41699 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
41700    find out it does not work in some platform. */
41701 #ifndef LT_DLLAZY_OR_NOW
41702 #  ifdef RTLD_LAZY
41703 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
41704 #  else
41705 #    ifdef DL_LAZY
41706 #      define LT_DLLAZY_OR_NOW          DL_LAZY
41707 #    else
41708 #      ifdef RTLD_NOW
41709 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
41710 #      else
41711 #        ifdef DL_NOW
41712 #          define LT_DLLAZY_OR_NOW      DL_NOW
41713 #        else
41714 #          define LT_DLLAZY_OR_NOW      0
41715 #        endif
41716 #      endif
41717 #    endif
41718 #  endif
41719 #endif
41720
41721 #ifdef __cplusplus
41722 extern "C" void exit (int);
41723 #endif
41724
41725 void fnord() { int i=42;}
41726 int main ()
41727 {
41728   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
41729   int status = $lt_dlunknown;
41730
41731   if (self)
41732     {
41733       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
41734       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
41735       /* dlclose (self); */
41736     }
41737
41738     exit (status);
41739 }
41740 EOF
41741   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41742   (eval $ac_link) 2>&5
41743   ac_status=$?
41744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41745   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
41746     (./conftest; exit; ) >&5 2>/dev/null
41747     lt_status=$?
41748     case x$lt_status in
41749       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
41750       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
41751       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
41752     esac
41753   else :
41754     # compilation failed
41755     lt_cv_dlopen_self_static=no
41756   fi
41757 fi
41758 rm -fr conftest*
41759
41760
41761 fi
41762 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
41763 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
41764     fi
41765
41766     CPPFLAGS="$save_CPPFLAGS"
41767     LDFLAGS="$save_LDFLAGS"
41768     LIBS="$save_LIBS"
41769     ;;
41770   esac
41771
41772   case $lt_cv_dlopen_self in
41773   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
41774   *) enable_dlopen_self=unknown ;;
41775   esac
41776
41777   case $lt_cv_dlopen_self_static in
41778   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
41779   *) enable_dlopen_self_static=unknown ;;
41780   esac
41781 fi
41782
41783
41784 # The else clause should only fire when bootstrapping the
41785 # libtool distribution, otherwise you forgot to ship ltmain.sh
41786 # with your package, and you will get complaints that there are
41787 # no rules to generate ltmain.sh.
41788 if test -f "$ltmain"; then
41789   # See if we are running on zsh, and set the options which allow our commands through
41790   # without removal of \ escapes.
41791   if test -n "${ZSH_VERSION+set}" ; then
41792     setopt NO_GLOB_SUBST
41793   fi
41794   # Now quote all the things that may contain metacharacters while being
41795   # careful not to overquote the AC_SUBSTed values.  We take copies of the
41796   # variables and quote the copies for generation of the libtool script.
41797   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
41798     SED SHELL STRIP \
41799     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
41800     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
41801     deplibs_check_method reload_flag reload_cmds need_locks \
41802     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
41803     lt_cv_sys_global_symbol_to_c_name_address \
41804     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
41805     old_postinstall_cmds old_postuninstall_cmds \
41806     compiler_CXX \
41807     CC_CXX \
41808     LD_CXX \
41809     lt_prog_compiler_wl_CXX \
41810     lt_prog_compiler_pic_CXX \
41811     lt_prog_compiler_static_CXX \
41812     lt_prog_compiler_no_builtin_flag_CXX \
41813     export_dynamic_flag_spec_CXX \
41814     thread_safe_flag_spec_CXX \
41815     whole_archive_flag_spec_CXX \
41816     enable_shared_with_static_runtimes_CXX \
41817     old_archive_cmds_CXX \
41818     old_archive_from_new_cmds_CXX \
41819     predep_objects_CXX \
41820     postdep_objects_CXX \
41821     predeps_CXX \
41822     postdeps_CXX \
41823     compiler_lib_search_path_CXX \
41824     archive_cmds_CXX \
41825     archive_expsym_cmds_CXX \
41826     postinstall_cmds_CXX \
41827     postuninstall_cmds_CXX \
41828     old_archive_from_expsyms_cmds_CXX \
41829     allow_undefined_flag_CXX \
41830     no_undefined_flag_CXX \
41831     export_symbols_cmds_CXX \
41832     hardcode_libdir_flag_spec_CXX \
41833     hardcode_libdir_flag_spec_ld_CXX \
41834     hardcode_libdir_separator_CXX \
41835     hardcode_automatic_CXX \
41836     module_cmds_CXX \
41837     module_expsym_cmds_CXX \
41838     lt_cv_prog_compiler_c_o_CXX \
41839     exclude_expsyms_CXX \
41840     include_expsyms_CXX; do
41841
41842     case $var in
41843     old_archive_cmds_CXX | \
41844     old_archive_from_new_cmds_CXX | \
41845     archive_cmds_CXX | \
41846     archive_expsym_cmds_CXX | \
41847     module_cmds_CXX | \
41848     module_expsym_cmds_CXX | \
41849     old_archive_from_expsyms_cmds_CXX | \
41850     export_symbols_cmds_CXX | \
41851     extract_expsyms_cmds | reload_cmds | finish_cmds | \
41852     postinstall_cmds | postuninstall_cmds | \
41853     old_postinstall_cmds | old_postuninstall_cmds | \
41854     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
41855       # Double-quote double-evaled strings.
41856       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
41857       ;;
41858     *)
41859       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
41860       ;;
41861     esac
41862   done
41863
41864   case $lt_echo in
41865   *'\$0 --fallback-echo"')
41866     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
41867     ;;
41868   esac
41869
41870 cfgfile="$ofile"
41871
41872   cat <<__EOF__ >> "$cfgfile"
41873 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
41874
41875 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
41876
41877 # Shell to use when invoking shell scripts.
41878 SHELL=$lt_SHELL
41879
41880 # Whether or not to build shared libraries.
41881 build_libtool_libs=$enable_shared
41882
41883 # Whether or not to build static libraries.
41884 build_old_libs=$enable_static
41885
41886 # Whether or not to add -lc for building shared libraries.
41887 build_libtool_need_lc=$archive_cmds_need_lc_CXX
41888
41889 # Whether or not to disallow shared libs when runtime libs are static
41890 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
41891
41892 # Whether or not to optimize for fast installation.
41893 fast_install=$enable_fast_install
41894
41895 # The host system.
41896 host_alias=$host_alias
41897 host=$host
41898 host_os=$host_os
41899
41900 # The build system.
41901 build_alias=$build_alias
41902 build=$build
41903 build_os=$build_os
41904
41905 # An echo program that does not interpret backslashes.
41906 echo=$lt_echo
41907
41908 # The archiver.
41909 AR=$lt_AR
41910 AR_FLAGS=$lt_AR_FLAGS
41911
41912 # A C compiler.
41913 LTCC=$lt_LTCC
41914
41915 # A language-specific compiler.
41916 CC=$lt_compiler_CXX
41917
41918 # Is the compiler the GNU C compiler?
41919 with_gcc=$GCC_CXX
41920
41921 # An ERE matcher.
41922 EGREP=$lt_EGREP
41923
41924 # The linker used to build libraries.
41925 LD=$lt_LD_CXX
41926
41927 # Whether we need hard or soft links.
41928 LN_S=$lt_LN_S
41929
41930 # A BSD-compatible nm program.
41931 NM=$lt_NM
41932
41933 # A symbol stripping program
41934 STRIP=$lt_STRIP
41935
41936 # Used to examine libraries when file_magic_cmd begins "file"
41937 MAGIC_CMD=$MAGIC_CMD
41938
41939 # Used on cygwin: DLL creation program.
41940 DLLTOOL="$DLLTOOL"
41941
41942 # Used on cygwin: object dumper.
41943 OBJDUMP="$OBJDUMP"
41944
41945 # Used on cygwin: assembler.
41946 AS="$AS"
41947
41948 # The name of the directory that contains temporary libtool files.
41949 objdir=$objdir
41950
41951 # How to create reloadable object files.
41952 reload_flag=$lt_reload_flag
41953 reload_cmds=$lt_reload_cmds
41954
41955 # How to pass a linker flag through the compiler.
41956 wl=$lt_lt_prog_compiler_wl_CXX
41957
41958 # Object file suffix (normally "o").
41959 objext="$ac_objext"
41960
41961 # Old archive suffix (normally "a").
41962 libext="$libext"
41963
41964 # Shared library suffix (normally ".so").
41965 shrext_cmds='$shrext_cmds'
41966
41967 # Executable file suffix (normally "").
41968 exeext="$exeext"
41969
41970 # Additional compiler flags for building library objects.
41971 pic_flag=$lt_lt_prog_compiler_pic_CXX
41972 pic_mode=$pic_mode
41973
41974 # What is the maximum length of a command?
41975 max_cmd_len=$lt_cv_sys_max_cmd_len
41976
41977 # Does compiler simultaneously support -c and -o options?
41978 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
41979
41980 # Must we lock files when doing compilation?
41981 need_locks=$lt_need_locks
41982
41983 # Do we need the lib prefix for modules?
41984 need_lib_prefix=$need_lib_prefix
41985
41986 # Do we need a version for libraries?
41987 need_version=$need_version
41988
41989 # Whether dlopen is supported.
41990 dlopen_support=$enable_dlopen
41991
41992 # Whether dlopen of programs is supported.
41993 dlopen_self=$enable_dlopen_self
41994
41995 # Whether dlopen of statically linked programs is supported.
41996 dlopen_self_static=$enable_dlopen_self_static
41997
41998 # Compiler flag to prevent dynamic linking.
41999 link_static_flag=$lt_lt_prog_compiler_static_CXX
42000
42001 # Compiler flag to turn off builtin functions.
42002 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
42003
42004 # Compiler flag to allow reflexive dlopens.
42005 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
42006
42007 # Compiler flag to generate shared objects directly from archives.
42008 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
42009
42010 # Compiler flag to generate thread-safe objects.
42011 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
42012
42013 # Library versioning type.
42014 version_type=$version_type
42015
42016 # Format of library name prefix.
42017 libname_spec=$lt_libname_spec
42018
42019 # List of archive names.  First name is the real one, the rest are links.
42020 # The last name is the one that the linker finds with -lNAME.
42021 library_names_spec=$lt_library_names_spec
42022
42023 # The coded name of the library, if different from the real name.
42024 soname_spec=$lt_soname_spec
42025
42026 # Commands used to build and install an old-style archive.
42027 RANLIB=$lt_RANLIB
42028 old_archive_cmds=$lt_old_archive_cmds_CXX
42029 old_postinstall_cmds=$lt_old_postinstall_cmds
42030 old_postuninstall_cmds=$lt_old_postuninstall_cmds
42031
42032 # Create an old-style archive from a shared archive.
42033 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
42034
42035 # Create a temporary old-style archive to link instead of a shared archive.
42036 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
42037
42038 # Commands used to build and install a shared archive.
42039 archive_cmds=$lt_archive_cmds_CXX
42040 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
42041 postinstall_cmds=$lt_postinstall_cmds
42042 postuninstall_cmds=$lt_postuninstall_cmds
42043
42044 # Commands used to build a loadable module (assumed same as above if empty)
42045 module_cmds=$lt_module_cmds_CXX
42046 module_expsym_cmds=$lt_module_expsym_cmds_CXX
42047
42048 # Commands to strip libraries.
42049 old_striplib=$lt_old_striplib
42050 striplib=$lt_striplib
42051
42052 # Dependencies to place before the objects being linked to create a
42053 # shared library.
42054 predep_objects=$lt_predep_objects_CXX
42055
42056 # Dependencies to place after the objects being linked to create a
42057 # shared library.
42058 postdep_objects=$lt_postdep_objects_CXX
42059
42060 # Dependencies to place before the objects being linked to create a
42061 # shared library.
42062 predeps=$lt_predeps_CXX
42063
42064 # Dependencies to place after the objects being linked to create a
42065 # shared library.
42066 postdeps=$lt_postdeps_CXX
42067
42068 # The library search path used internally by the compiler when linking
42069 # a shared library.
42070 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
42071
42072 # Method to check whether dependent libraries are shared objects.
42073 deplibs_check_method=$lt_deplibs_check_method
42074
42075 # Command to use when deplibs_check_method == file_magic.
42076 file_magic_cmd=$lt_file_magic_cmd
42077
42078 # Flag that allows shared libraries with undefined symbols to be built.
42079 allow_undefined_flag=$lt_allow_undefined_flag_CXX
42080
42081 # Flag that forces no undefined symbols.
42082 no_undefined_flag=$lt_no_undefined_flag_CXX
42083
42084 # Commands used to finish a libtool library installation in a directory.
42085 finish_cmds=$lt_finish_cmds
42086
42087 # Same as above, but a single script fragment to be evaled but not shown.
42088 finish_eval=$lt_finish_eval
42089
42090 # Take the output of nm and produce a listing of raw symbols and C names.
42091 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
42092
42093 # Transform the output of nm in a proper C declaration
42094 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
42095
42096 # Transform the output of nm in a C name address pair
42097 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
42098
42099 # This is the shared library runtime path variable.
42100 runpath_var=$runpath_var
42101
42102 # This is the shared library path variable.
42103 shlibpath_var=$shlibpath_var
42104
42105 # Is shlibpath searched before the hard-coded library search path?
42106 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
42107
42108 # How to hardcode a shared library path into an executable.
42109 hardcode_action=$hardcode_action_CXX
42110
42111 # Whether we should hardcode library paths into libraries.
42112 hardcode_into_libs=$hardcode_into_libs
42113
42114 # Flag to hardcode \$libdir into a binary during linking.
42115 # This must work even if \$libdir does not exist.
42116 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
42117
42118 # If ld is used when linking, flag to hardcode \$libdir into
42119 # a binary during linking. This must work even if \$libdir does
42120 # not exist.
42121 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
42122
42123 # Whether we need a single -rpath flag with a separated argument.
42124 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
42125
42126 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
42127 # resulting binary.
42128 hardcode_direct=$hardcode_direct_CXX
42129
42130 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
42131 # resulting binary.
42132 hardcode_minus_L=$hardcode_minus_L_CXX
42133
42134 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
42135 # the resulting binary.
42136 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
42137
42138 # Set to yes if building a shared library automatically hardcodes DIR into the library
42139 # and all subsequent libraries and executables linked against it.
42140 hardcode_automatic=$hardcode_automatic_CXX
42141
42142 # Variables whose values should be saved in libtool wrapper scripts and
42143 # restored at relink time.
42144 variables_saved_for_relink="$variables_saved_for_relink"
42145
42146 # Whether libtool must link a program against all its dependency libraries.
42147 link_all_deplibs=$link_all_deplibs_CXX
42148
42149 # Compile-time system search path for libraries
42150 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
42151
42152 # Run-time system search path for libraries
42153 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
42154
42155 # Fix the shell variable \$srcfile for the compiler.
42156 fix_srcfile_path="$fix_srcfile_path_CXX"
42157
42158 # Set to yes if exported symbols are required.
42159 always_export_symbols=$always_export_symbols_CXX
42160
42161 # The commands to list exported symbols.
42162 export_symbols_cmds=$lt_export_symbols_cmds_CXX
42163
42164 # The commands to extract the exported symbol list from a shared archive.
42165 extract_expsyms_cmds=$lt_extract_expsyms_cmds
42166
42167 # Symbols that should not be listed in the preloaded symbols.
42168 exclude_expsyms=$lt_exclude_expsyms_CXX
42169
42170 # Symbols that must always be exported.
42171 include_expsyms=$lt_include_expsyms_CXX
42172
42173 # ### END LIBTOOL TAG CONFIG: $tagname
42174
42175 __EOF__
42176
42177
42178 else
42179   # If there is no Makefile yet, we rely on a make rule to execute
42180   # `config.status --recheck' to rerun these tests and create the
42181   # libtool script then.
42182   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
42183   if test -f "$ltmain_in"; then
42184     test -f Makefile && make "$ltmain"
42185   fi
42186 fi
42187
42188
42189 ac_ext=c
42190 ac_cpp='$CPP $CPPFLAGS'
42191 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42192 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42193 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42194
42195 CC=$lt_save_CC
42196 LDCXX=$LD
42197 LD=$lt_save_LD
42198 GCC=$lt_save_GCC
42199 with_gnu_ldcxx=$with_gnu_ld
42200 with_gnu_ld=$lt_save_with_gnu_ld
42201 lt_cv_path_LDCXX=$lt_cv_path_LD
42202 lt_cv_path_LD=$lt_save_path_LD
42203 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
42204 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
42205
42206         else
42207           tagname=""
42208         fi
42209         ;;
42210
42211       F77)
42212         if test -n "$F77" && test "X$F77" != "Xno"; then
42213
42214 ac_ext=f
42215 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
42216 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42217 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
42218
42219
42220 archive_cmds_need_lc_F77=no
42221 allow_undefined_flag_F77=
42222 always_export_symbols_F77=no
42223 archive_expsym_cmds_F77=
42224 export_dynamic_flag_spec_F77=
42225 hardcode_direct_F77=no
42226 hardcode_libdir_flag_spec_F77=
42227 hardcode_libdir_flag_spec_ld_F77=
42228 hardcode_libdir_separator_F77=
42229 hardcode_minus_L_F77=no
42230 hardcode_automatic_F77=no
42231 module_cmds_F77=
42232 module_expsym_cmds_F77=
42233 link_all_deplibs_F77=unknown
42234 old_archive_cmds_F77=$old_archive_cmds
42235 no_undefined_flag_F77=
42236 whole_archive_flag_spec_F77=
42237 enable_shared_with_static_runtimes_F77=no
42238
42239 # Source file extension for f77 test sources.
42240 ac_ext=f
42241
42242 # Object file extension for compiled f77 test sources.
42243 objext=o
42244 objext_F77=$objext
42245
42246 # Code to be used in simple compile tests
42247 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
42248
42249 # Code to be used in simple link tests
42250 lt_simple_link_test_code="      program t\n      end\n"
42251
42252 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
42253
42254 # If no C compiler was specified, use CC.
42255 LTCC=${LTCC-"$CC"}
42256
42257 # Allow CC to be a program name with arguments.
42258 compiler=$CC
42259
42260
42261 # save warnings/boilerplate of simple test code
42262 ac_outfile=conftest.$ac_objext
42263 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
42264 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
42265 _lt_compiler_boilerplate=`cat conftest.err`
42266 $rm conftest*
42267
42268 ac_outfile=conftest.$ac_objext
42269 printf "$lt_simple_link_test_code" >conftest.$ac_ext
42270 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
42271 _lt_linker_boilerplate=`cat conftest.err`
42272 $rm conftest*
42273
42274
42275 # Allow CC to be a program name with arguments.
42276 lt_save_CC="$CC"
42277 CC=${F77-"f77"}
42278 compiler=$CC
42279 compiler_F77=$CC
42280 for cc_temp in $compiler""; do
42281   case $cc_temp in
42282     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
42283     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
42284     \-*) ;;
42285     *) break;;
42286   esac
42287 done
42288 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
42289
42290
42291 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
42292 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
42293 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
42294 echo "${ECHO_T}$can_build_shared" >&6; }
42295
42296 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
42297 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
42298 test "$can_build_shared" = "no" && enable_shared=no
42299
42300 # On AIX, shared libraries and static libraries use the same namespace, and
42301 # are all built from PIC.
42302 case $host_os in
42303 aix3*)
42304   test "$enable_shared" = yes && enable_static=no
42305   if test -n "$RANLIB"; then
42306     archive_cmds="$archive_cmds~\$RANLIB \$lib"
42307     postinstall_cmds='$RANLIB $lib'
42308   fi
42309   ;;
42310 aix4* | aix5*)
42311   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
42312     test "$enable_shared" = yes && enable_static=no
42313   fi
42314   ;;
42315 esac
42316 { echo "$as_me:$LINENO: result: $enable_shared" >&5
42317 echo "${ECHO_T}$enable_shared" >&6; }
42318
42319 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
42320 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
42321 # Make sure either enable_shared or enable_static is yes.
42322 test "$enable_shared" = yes || enable_static=yes
42323 { echo "$as_me:$LINENO: result: $enable_static" >&5
42324 echo "${ECHO_T}$enable_static" >&6; }
42325
42326 test "$ld_shlibs_F77" = no && can_build_shared=no
42327
42328 GCC_F77="$G77"
42329 LD_F77="$LD"
42330
42331 lt_prog_compiler_wl_F77=
42332 lt_prog_compiler_pic_F77=
42333 lt_prog_compiler_static_F77=
42334
42335 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
42336 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
42337
42338   if test "$GCC" = yes; then
42339     lt_prog_compiler_wl_F77='-Wl,'
42340     lt_prog_compiler_static_F77='-static'
42341
42342     case $host_os in
42343       aix*)
42344       # All AIX code is PIC.
42345       if test "$host_cpu" = ia64; then
42346         # AIX 5 now supports IA64 processor
42347         lt_prog_compiler_static_F77='-Bstatic'
42348       fi
42349       ;;
42350
42351     amigaos*)
42352       # FIXME: we need at least 68020 code to build shared libraries, but
42353       # adding the `-m68020' flag to GCC prevents building anything better,
42354       # like `-m68040'.
42355       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
42356       ;;
42357
42358     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
42359       # PIC is the default for these OSes.
42360       ;;
42361
42362     mingw* | pw32* | os2*)
42363       # This hack is so that the source file can tell whether it is being
42364       # built for inclusion in a dll (and should export symbols for example).
42365       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
42366       ;;
42367
42368     darwin* | rhapsody*)
42369       # PIC is the default on this platform
42370       # Common symbols not allowed in MH_DYLIB files
42371       lt_prog_compiler_pic_F77='-fno-common'
42372       ;;
42373
42374     msdosdjgpp*)
42375       # Just because we use GCC doesn't mean we suddenly get shared libraries
42376       # on systems that don't support them.
42377       lt_prog_compiler_can_build_shared_F77=no
42378       enable_shared=no
42379       ;;
42380
42381     sysv4*MP*)
42382       if test -d /usr/nec; then
42383         lt_prog_compiler_pic_F77=-Kconform_pic
42384       fi
42385       ;;
42386
42387     hpux*)
42388       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
42389       # not for PA HP-UX.
42390       case $host_cpu in
42391       hppa*64*|ia64*)
42392         # +Z the default
42393         ;;
42394       *)
42395         lt_prog_compiler_pic_F77='-fPIC'
42396         ;;
42397       esac
42398       ;;
42399
42400     *)
42401       lt_prog_compiler_pic_F77='-fPIC'
42402       ;;
42403     esac
42404   else
42405     # PORTME Check for flag to pass linker flags through the system compiler.
42406     case $host_os in
42407     aix*)
42408       lt_prog_compiler_wl_F77='-Wl,'
42409       if test "$host_cpu" = ia64; then
42410         # AIX 5 now supports IA64 processor
42411         lt_prog_compiler_static_F77='-Bstatic'
42412       else
42413         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
42414       fi
42415       ;;
42416       darwin*)
42417         # PIC is the default on this platform
42418         # Common symbols not allowed in MH_DYLIB files
42419        case $cc_basename in
42420          xlc*)
42421          lt_prog_compiler_pic_F77='-qnocommon'
42422          lt_prog_compiler_wl_F77='-Wl,'
42423          ;;
42424        esac
42425        ;;
42426
42427     mingw* | pw32* | os2*)
42428       # This hack is so that the source file can tell whether it is being
42429       # built for inclusion in a dll (and should export symbols for example).
42430       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
42431       ;;
42432
42433     hpux9* | hpux10* | hpux11*)
42434       lt_prog_compiler_wl_F77='-Wl,'
42435       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
42436       # not for PA HP-UX.
42437       case $host_cpu in
42438       hppa*64*|ia64*)
42439         # +Z the default
42440         ;;
42441       *)
42442         lt_prog_compiler_pic_F77='+Z'
42443         ;;
42444       esac
42445       # Is there a better lt_prog_compiler_static that works with the bundled CC?
42446       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
42447       ;;
42448
42449     irix5* | irix6* | nonstopux*)
42450       lt_prog_compiler_wl_F77='-Wl,'
42451       # PIC (with -KPIC) is the default.
42452       lt_prog_compiler_static_F77='-non_shared'
42453       ;;
42454
42455     newsos6)
42456       lt_prog_compiler_pic_F77='-KPIC'
42457       lt_prog_compiler_static_F77='-Bstatic'
42458       ;;
42459
42460     linux*)
42461       case $cc_basename in
42462       icc* | ecc*)
42463         lt_prog_compiler_wl_F77='-Wl,'
42464         lt_prog_compiler_pic_F77='-KPIC'
42465         lt_prog_compiler_static_F77='-static'
42466         ;;
42467       pgcc* | pgf77* | pgf90* | pgf95*)
42468         # Portland Group compilers (*not* the Pentium gcc compiler,
42469         # which looks to be a dead project)
42470         lt_prog_compiler_wl_F77='-Wl,'
42471         lt_prog_compiler_pic_F77='-fpic'
42472         lt_prog_compiler_static_F77='-Bstatic'
42473         ;;
42474       ccc*)
42475         lt_prog_compiler_wl_F77='-Wl,'
42476         # All Alpha code is PIC.
42477         lt_prog_compiler_static_F77='-non_shared'
42478         ;;
42479       esac
42480       ;;
42481
42482     osf3* | osf4* | osf5*)
42483       lt_prog_compiler_wl_F77='-Wl,'
42484       # All OSF/1 code is PIC.
42485       lt_prog_compiler_static_F77='-non_shared'
42486       ;;
42487
42488     sco3.2v5*)
42489       lt_prog_compiler_pic_F77='-Kpic'
42490       lt_prog_compiler_static_F77='-dn'
42491       ;;
42492
42493     solaris*)
42494       lt_prog_compiler_pic_F77='-KPIC'
42495       lt_prog_compiler_static_F77='-Bstatic'
42496       case $cc_basename in
42497       f77* | f90* | f95*)
42498         lt_prog_compiler_wl_F77='-Qoption ld ';;
42499       *)
42500         lt_prog_compiler_wl_F77='-Wl,';;
42501       esac
42502       ;;
42503
42504     sunos4*)
42505       lt_prog_compiler_wl_F77='-Qoption ld '
42506       lt_prog_compiler_pic_F77='-PIC'
42507       lt_prog_compiler_static_F77='-Bstatic'
42508       ;;
42509
42510     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
42511       lt_prog_compiler_wl_F77='-Wl,'
42512       lt_prog_compiler_pic_F77='-KPIC'
42513       lt_prog_compiler_static_F77='-Bstatic'
42514       ;;
42515
42516     sysv4*MP*)
42517       if test -d /usr/nec ;then
42518         lt_prog_compiler_pic_F77='-Kconform_pic'
42519         lt_prog_compiler_static_F77='-Bstatic'
42520       fi
42521       ;;
42522
42523     unicos*)
42524       lt_prog_compiler_wl_F77='-Wl,'
42525       lt_prog_compiler_can_build_shared_F77=no
42526       ;;
42527
42528     uts4*)
42529       lt_prog_compiler_pic_F77='-pic'
42530       lt_prog_compiler_static_F77='-Bstatic'
42531       ;;
42532
42533     *)
42534       lt_prog_compiler_can_build_shared_F77=no
42535       ;;
42536     esac
42537   fi
42538
42539 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
42540 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
42541
42542 #
42543 # Check to make sure the PIC flag actually works.
42544 #
42545 if test -n "$lt_prog_compiler_pic_F77"; then
42546
42547 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
42548 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
42549 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
42550   echo $ECHO_N "(cached) $ECHO_C" >&6
42551 else
42552   lt_prog_compiler_pic_works_F77=no
42553   ac_outfile=conftest.$ac_objext
42554    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
42555    lt_compiler_flag="$lt_prog_compiler_pic_F77"
42556    # Insert the option either (1) after the last *FLAGS variable, or
42557    # (2) before a word containing "conftest.", or (3) at the end.
42558    # Note that $ac_compile itself does not contain backslashes and begins
42559    # with a dollar sign (not a hyphen), so the echo should work correctly.
42560    # The option is referenced via a variable to avoid confusing sed.
42561    lt_compile=`echo "$ac_compile" | $SED \
42562    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
42563    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
42564    -e 's:$: $lt_compiler_flag:'`
42565    (eval echo "\"\$as_me:42565: $lt_compile\"" >&5)
42566    (eval "$lt_compile" 2>conftest.err)
42567    ac_status=$?
42568    cat conftest.err >&5
42569    echo "$as_me:42569: \$? = $ac_status" >&5
42570    if (exit $ac_status) && test -s "$ac_outfile"; then
42571      # The compiler can only warn and ignore the option if not recognized
42572      # So say no if there are warnings other than the usual output.
42573      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
42574      $SED '/^$/d' conftest.err >conftest.er2
42575      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
42576        lt_prog_compiler_pic_works_F77=yes
42577      fi
42578    fi
42579    $rm conftest*
42580
42581 fi
42582 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
42583 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
42584
42585 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
42586     case $lt_prog_compiler_pic_F77 in
42587      "" | " "*) ;;
42588      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
42589      esac
42590 else
42591     lt_prog_compiler_pic_F77=
42592      lt_prog_compiler_can_build_shared_F77=no
42593 fi
42594
42595 fi
42596 case $host_os in
42597   # For platforms which do not support PIC, -DPIC is meaningless:
42598   *djgpp*)
42599     lt_prog_compiler_pic_F77=
42600     ;;
42601   *)
42602     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
42603     ;;
42604 esac
42605
42606 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
42607 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
42608 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
42609   echo $ECHO_N "(cached) $ECHO_C" >&6
42610 else
42611   lt_cv_prog_compiler_c_o_F77=no
42612    $rm -r conftest 2>/dev/null
42613    mkdir conftest
42614    cd conftest
42615    mkdir out
42616    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
42617
42618    lt_compiler_flag="-o out/conftest2.$ac_objext"
42619    # Insert the option either (1) after the last *FLAGS variable, or
42620    # (2) before a word containing "conftest.", or (3) at the end.
42621    # Note that $ac_compile itself does not contain backslashes and begins
42622    # with a dollar sign (not a hyphen), so the echo should work correctly.
42623    lt_compile=`echo "$ac_compile" | $SED \
42624    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
42625    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
42626    -e 's:$: $lt_compiler_flag:'`
42627    (eval echo "\"\$as_me:42627: $lt_compile\"" >&5)
42628    (eval "$lt_compile" 2>out/conftest.err)
42629    ac_status=$?
42630    cat out/conftest.err >&5
42631    echo "$as_me:42631: \$? = $ac_status" >&5
42632    if (exit $ac_status) && test -s out/conftest2.$ac_objext
42633    then
42634      # The compiler can only warn and ignore the option if not recognized
42635      # So say no if there are warnings
42636      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
42637      $SED '/^$/d' out/conftest.err >out/conftest.er2
42638      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
42639        lt_cv_prog_compiler_c_o_F77=yes
42640      fi
42641    fi
42642    chmod u+w . 2>&5
42643    $rm conftest*
42644    # SGI C++ compiler will create directory out/ii_files/ for
42645    # template instantiation
42646    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
42647    $rm out/* && rmdir out
42648    cd ..
42649    rmdir conftest
42650    $rm conftest*
42651
42652 fi
42653 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
42654 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
42655
42656
42657 hard_links="nottested"
42658 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
42659   # do not overwrite the value of need_locks provided by the user
42660   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
42661 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
42662   hard_links=yes
42663   $rm conftest*
42664   ln conftest.a conftest.b 2>/dev/null && hard_links=no
42665   touch conftest.a
42666   ln conftest.a conftest.b 2>&5 || hard_links=no
42667   ln conftest.a conftest.b 2>/dev/null && hard_links=no
42668   { echo "$as_me:$LINENO: result: $hard_links" >&5
42669 echo "${ECHO_T}$hard_links" >&6; }
42670   if test "$hard_links" = no; then
42671
42672     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
42673 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
42674
42675
42676     cat <<AAW_EOF >>config.warnings
42677 \`$CC' does not support \`-c -o', so \`make -j' may be unsafe
42678 AAW_EOF
42679
42680
42681     need_locks=warn
42682   fi
42683 else
42684   need_locks=no
42685 fi
42686
42687 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
42688 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
42689
42690   runpath_var=
42691   allow_undefined_flag_F77=
42692   enable_shared_with_static_runtimes_F77=no
42693   archive_cmds_F77=
42694   archive_expsym_cmds_F77=
42695   old_archive_From_new_cmds_F77=
42696   old_archive_from_expsyms_cmds_F77=
42697   export_dynamic_flag_spec_F77=
42698   whole_archive_flag_spec_F77=
42699   thread_safe_flag_spec_F77=
42700   hardcode_libdir_flag_spec_F77=
42701   hardcode_libdir_flag_spec_ld_F77=
42702   hardcode_libdir_separator_F77=
42703   hardcode_direct_F77=no
42704   hardcode_minus_L_F77=no
42705   hardcode_shlibpath_var_F77=unsupported
42706   link_all_deplibs_F77=unknown
42707   hardcode_automatic_F77=no
42708   module_cmds_F77=
42709   module_expsym_cmds_F77=
42710   always_export_symbols_F77=no
42711   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
42712   # include_expsyms should be a list of space-separated symbols to be *always*
42713   # included in the symbol list
42714   include_expsyms_F77=
42715   # exclude_expsyms can be an extended regexp of symbols to exclude
42716   # it will be wrapped by ` (' and `)$', so one must not match beginning or
42717   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
42718   # as well as any symbol that contains `d'.
42719   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
42720   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
42721   # platforms (ab)use it in PIC code, but their linkers get confused if
42722   # the symbol is explicitly referenced.  Since portable code cannot
42723   # rely on this symbol name, it's probably fine to never include it in
42724   # preloaded symbol tables.
42725   extract_expsyms_cmds=
42726   # Just being paranoid about ensuring that cc_basename is set.
42727   for cc_temp in $compiler""; do
42728   case $cc_temp in
42729     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
42730     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
42731     \-*) ;;
42732     *) break;;
42733   esac
42734 done
42735 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
42736
42737   case $host_os in
42738   cygwin* | mingw* | pw32*)
42739     # FIXME: the MSVC++ port hasn't been tested in a loooong time
42740     # When not using gcc, we currently assume that we are using
42741     # Microsoft Visual C++.
42742     if test "$GCC" != yes; then
42743       with_gnu_ld=no
42744     fi
42745     ;;
42746   openbsd*)
42747     with_gnu_ld=no
42748     ;;
42749   esac
42750
42751   ld_shlibs_F77=yes
42752   if test "$with_gnu_ld" = yes; then
42753     # If archive_cmds runs LD, not CC, wlarc should be empty
42754     wlarc='${wl}'
42755
42756     # Set some defaults for GNU ld with shared library support. These
42757     # are reset later if shared libraries are not supported. Putting them
42758     # here allows them to be overridden if necessary.
42759     runpath_var=LD_RUN_PATH
42760     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
42761     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
42762     # ancient GNU ld didn't support --whole-archive et. al.
42763     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
42764         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
42765       else
42766         whole_archive_flag_spec_F77=
42767     fi
42768     supports_anon_versioning=no
42769     case `$LD -v 2>/dev/null` in
42770       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
42771       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
42772       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
42773       *\ 2.11.*) ;; # other 2.11 versions
42774       *) supports_anon_versioning=yes ;;
42775     esac
42776
42777     # See if GNU ld supports shared libraries.
42778     case $host_os in
42779     aix3* | aix4* | aix5*)
42780       # On AIX/PPC, the GNU linker is very broken
42781       if test "$host_cpu" != ia64; then
42782         ld_shlibs_F77=no
42783         cat <<EOF 1>&2
42784
42785 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
42786 *** to be unable to reliably create shared libraries on AIX.
42787 *** Therefore, libtool is disabling shared libraries support.  If you
42788 *** really care for shared libraries, you may want to modify your PATH
42789 *** so that a non-GNU linker is found, and then restart.
42790
42791 EOF
42792       fi
42793       ;;
42794
42795     amigaos*)
42796       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)'
42797       hardcode_libdir_flag_spec_F77='-L$libdir'
42798       hardcode_minus_L_F77=yes
42799
42800       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
42801       # that the semantics of dynamic libraries on AmigaOS, at least up
42802       # to version 4, is to share data among multiple programs linked
42803       # with the same dynamic library.  Since this doesn't match the
42804       # behavior of shared libraries on other platforms, we can't use
42805       # them.
42806       ld_shlibs_F77=no
42807       ;;
42808
42809     beos*)
42810       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
42811         allow_undefined_flag_F77=unsupported
42812         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
42813         # support --undefined.  This deserves some investigation.  FIXME
42814         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
42815       else
42816         ld_shlibs_F77=no
42817       fi
42818       ;;
42819
42820     cygwin* | mingw* | pw32*)
42821       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
42822       # as there is no search path for DLLs.
42823       hardcode_libdir_flag_spec_F77='-L$libdir'
42824       allow_undefined_flag_F77=unsupported
42825       always_export_symbols_F77=no
42826       enable_shared_with_static_runtimes_F77=yes
42827       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
42828
42829       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
42830         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
42831         # If the export-symbols file already is a .def file (1st line
42832         # is EXPORTS), use it as is; otherwise, prepend...
42833         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
42834           cp $export_symbols $output_objdir/$soname.def;
42835         else
42836           echo EXPORTS > $output_objdir/$soname.def;
42837           cat $export_symbols >> $output_objdir/$soname.def;
42838         fi~
42839         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
42840       else
42841         ld_shlibs_F77=no
42842       fi
42843       ;;
42844
42845     linux*)
42846       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
42847         tmp_addflag=
42848         case $cc_basename,$host_cpu in
42849         pgcc*)                          # Portland Group C compiler
42850           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'
42851           tmp_addflag=' $pic_flag'
42852           ;;
42853         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
42854           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'
42855           tmp_addflag=' $pic_flag -Mnomain' ;;
42856         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
42857           tmp_addflag=' -i_dynamic' ;;
42858         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
42859           tmp_addflag=' -i_dynamic -nofor_main' ;;
42860         ifc* | ifort*)                  # Intel Fortran compiler
42861           tmp_addflag=' -nofor_main' ;;
42862         esac
42863         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
42864
42865         if test $supports_anon_versioning = yes; then
42866           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
42867   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
42868   $echo "local: *; };" >> $output_objdir/$libname.ver~
42869           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
42870         fi
42871       else
42872         ld_shlibs_F77=no
42873       fi
42874       ;;
42875
42876     netbsd*)
42877       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
42878         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
42879         wlarc=
42880       else
42881         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
42882         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
42883       fi
42884       ;;
42885
42886     solaris* | sysv5*)
42887       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
42888         ld_shlibs_F77=no
42889         cat <<EOF 1>&2
42890
42891 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
42892 *** create shared libraries on Solaris systems.  Therefore, libtool
42893 *** is disabling shared libraries support.  We urge you to upgrade GNU
42894 *** binutils to release 2.9.1 or newer.  Another option is to modify
42895 *** your PATH or compiler configuration so that the native linker is
42896 *** used, and then restart.
42897
42898 EOF
42899       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
42900         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
42901         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
42902       else
42903         ld_shlibs_F77=no
42904       fi
42905       ;;
42906
42907     sunos4*)
42908       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
42909       wlarc=
42910       hardcode_direct_F77=yes
42911       hardcode_shlibpath_var_F77=no
42912       ;;
42913
42914     *)
42915       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
42916         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
42917         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
42918       else
42919         ld_shlibs_F77=no
42920       fi
42921       ;;
42922     esac
42923
42924     if test "$ld_shlibs_F77" = no; then
42925       runpath_var=
42926       hardcode_libdir_flag_spec_F77=
42927       export_dynamic_flag_spec_F77=
42928       whole_archive_flag_spec_F77=
42929     fi
42930   else
42931     # PORTME fill in a description of your system's linker (not GNU ld)
42932     case $host_os in
42933     aix3*)
42934       allow_undefined_flag_F77=unsupported
42935       always_export_symbols_F77=yes
42936       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'
42937       # Note: this linker hardcodes the directories in LIBPATH if there
42938       # are no directories specified by -L.
42939       hardcode_minus_L_F77=yes
42940       if test "$GCC" = yes && test -z "$link_static_flag"; then
42941         # Neither direct hardcoding nor static linking is supported with a
42942         # broken collect2.
42943         hardcode_direct_F77=unsupported
42944       fi
42945       ;;
42946
42947     aix4* | aix5*)
42948       if test "$host_cpu" = ia64; then
42949         # On IA64, the linker does run time linking by default, so we don't
42950         # have to do anything special.
42951         aix_use_runtimelinking=no
42952         exp_sym_flag='-Bexport'
42953         no_entry_flag=""
42954       else
42955         # If we're using GNU nm, then we don't want the "-C" option.
42956         # -C means demangle to AIX nm, but means don't demangle with GNU nm
42957         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
42958           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'
42959         else
42960           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'
42961         fi
42962         aix_use_runtimelinking=no
42963
42964         # Test if we are trying to use run time linking or normal
42965         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
42966         # need to do runtime linking.
42967         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
42968           for ld_flag in $LDFLAGS; do
42969           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
42970             aix_use_runtimelinking=yes
42971             break
42972           fi
42973           done
42974         esac
42975
42976         exp_sym_flag='-bexport'
42977         no_entry_flag='-bnoentry'
42978       fi
42979
42980       # When large executables or shared objects are built, AIX ld can
42981       # have problems creating the table of contents.  If linking a library
42982       # or program results in "error TOC overflow" add -mminimal-toc to
42983       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
42984       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
42985
42986       archive_cmds_F77=''
42987       hardcode_direct_F77=yes
42988       hardcode_libdir_separator_F77=':'
42989       link_all_deplibs_F77=yes
42990
42991       if test "$GCC" = yes; then
42992         case $host_os in aix4.[012]|aix4.[012].*)
42993         # We only want to do this on AIX 4.2 and lower, the check
42994         # below for broken collect2 doesn't work under 4.3+
42995           collect2name=`${CC} -print-prog-name=collect2`
42996           if test -f "$collect2name" && \
42997            strings "$collect2name" | grep resolve_lib_name >/dev/null
42998           then
42999           # We have reworked collect2
43000           hardcode_direct_F77=yes
43001           else
43002           # We have old collect2
43003           hardcode_direct_F77=unsupported
43004           # It fails to find uninstalled libraries when the uninstalled
43005           # path is not listed in the libpath.  Setting hardcode_minus_L
43006           # to unsupported forces relinking
43007           hardcode_minus_L_F77=yes
43008           hardcode_libdir_flag_spec_F77='-L$libdir'
43009           hardcode_libdir_separator_F77=
43010           fi
43011         esac
43012         shared_flag='-shared'
43013         if test "$aix_use_runtimelinking" = yes; then
43014           shared_flag="$shared_flag "'${wl}-G'
43015         fi
43016       else
43017         # not using gcc
43018         if test "$host_cpu" = ia64; then
43019         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
43020         # chokes on -Wl,-G. The following line is correct:
43021           shared_flag='-G'
43022         else
43023         if test "$aix_use_runtimelinking" = yes; then
43024             shared_flag='${wl}-G'
43025           else
43026             shared_flag='${wl}-bM:SRE'
43027         fi
43028         fi
43029       fi
43030
43031       # It seems that -bexpall does not export symbols beginning with
43032       # underscore (_), so it is better to generate a list of symbols to export.
43033       always_export_symbols_F77=yes
43034       if test "$aix_use_runtimelinking" = yes; then
43035         # Warning - without using the other runtime loading flags (-brtl),
43036         # -berok will link without error, but may produce a broken library.
43037         allow_undefined_flag_F77='-berok'
43038        # Determine the default libpath from the value encoded in an empty executable.
43039        cat >conftest.$ac_ext <<_ACEOF
43040       program main
43041
43042       end
43043 _ACEOF
43044 rm -f conftest.$ac_objext conftest$ac_exeext
43045 if { (ac_try="$ac_link"
43046 case "(($ac_try" in
43047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43048   *) ac_try_echo=$ac_try;;
43049 esac
43050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43051   (eval "$ac_link") 2>conftest.er1
43052   ac_status=$?
43053   grep -v '^ *+' conftest.er1 >conftest.err
43054   rm -f conftest.er1
43055   cat conftest.err >&5
43056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43057   (exit $ac_status); } && {
43058          test -z "$ac_f77_werror_flag" ||
43059          test ! -s conftest.err
43060        } && test -s conftest$ac_exeext &&
43061        $as_test_x conftest$ac_exeext; then
43062
43063 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
43064 }'`
43065 # Check for a 64-bit object if we didn't find anything.
43066 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; }
43067 }'`; fi
43068 else
43069   echo "$as_me: failed program was:" >&5
43070 sed 's/^/| /' conftest.$ac_ext >&5
43071
43072
43073 fi
43074
43075 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43076       conftest$ac_exeext conftest.$ac_ext
43077 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
43078
43079        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
43080         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"
43081        else
43082         if test "$host_cpu" = ia64; then
43083           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
43084           allow_undefined_flag_F77="-z nodefs"
43085           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"
43086         else
43087          # Determine the default libpath from the value encoded in an empty executable.
43088          cat >conftest.$ac_ext <<_ACEOF
43089       program main
43090
43091       end
43092 _ACEOF
43093 rm -f conftest.$ac_objext conftest$ac_exeext
43094 if { (ac_try="$ac_link"
43095 case "(($ac_try" in
43096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43097   *) ac_try_echo=$ac_try;;
43098 esac
43099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43100   (eval "$ac_link") 2>conftest.er1
43101   ac_status=$?
43102   grep -v '^ *+' conftest.er1 >conftest.err
43103   rm -f conftest.er1
43104   cat conftest.err >&5
43105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43106   (exit $ac_status); } && {
43107          test -z "$ac_f77_werror_flag" ||
43108          test ! -s conftest.err
43109        } && test -s conftest$ac_exeext &&
43110        $as_test_x conftest$ac_exeext; then
43111
43112 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
43113 }'`
43114 # Check for a 64-bit object if we didn't find anything.
43115 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; }
43116 }'`; fi
43117 else
43118   echo "$as_me: failed program was:" >&5
43119 sed 's/^/| /' conftest.$ac_ext >&5
43120
43121
43122 fi
43123
43124 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43125       conftest$ac_exeext conftest.$ac_ext
43126 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
43127
43128          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
43129           # Warning - without using the other run time loading flags,
43130           # -berok will link without error, but may produce a broken library.
43131           no_undefined_flag_F77=' ${wl}-bernotok'
43132           allow_undefined_flag_F77=' ${wl}-berok'
43133           # -bexpall does not export symbols beginning with underscore (_)
43134           always_export_symbols_F77=yes
43135           # Exported symbols can be pulled into shared objects from archives
43136           whole_archive_flag_spec_F77=' '
43137           archive_cmds_need_lc_F77=yes
43138           # This is similar to how AIX traditionally builds its shared libraries.
43139           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'
43140         fi
43141       fi
43142       ;;
43143
43144     amigaos*)
43145       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)'
43146       hardcode_libdir_flag_spec_F77='-L$libdir'
43147       hardcode_minus_L_F77=yes
43148       # see comment about different semantics on the GNU ld section
43149       ld_shlibs_F77=no
43150       ;;
43151
43152     bsdi[45]*)
43153       export_dynamic_flag_spec_F77=-rdynamic
43154       ;;
43155
43156     cygwin* | mingw* | pw32*)
43157       # When not using gcc, we currently assume that we are using
43158       # Microsoft Visual C++.
43159       # hardcode_libdir_flag_spec is actually meaningless, as there is
43160       # no search path for DLLs.
43161       hardcode_libdir_flag_spec_F77=' '
43162       allow_undefined_flag_F77=unsupported
43163       # Tell ltmain to make .lib files, not .a files.
43164       libext=lib
43165       # Tell ltmain to make .dll files, not .so files.
43166       shrext_cmds=".dll"
43167       # FIXME: Setting linknames here is a bad hack.
43168       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
43169       # The linker will automatically build a .lib file if we build a DLL.
43170       old_archive_From_new_cmds_F77='true'
43171       # FIXME: Should let the user specify the lib program.
43172       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
43173       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
43174       enable_shared_with_static_runtimes_F77=yes
43175       ;;
43176
43177     darwin* | rhapsody*)
43178       case $host_os in
43179         rhapsody* | darwin1.[012])
43180          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
43181          ;;
43182        *) # Darwin 1.3 on
43183          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
43184            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
43185          else
43186            case ${MACOSX_DEPLOYMENT_TARGET} in
43187              10.[012])
43188                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
43189                ;;
43190              10.*)
43191                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
43192                ;;
43193            esac
43194          fi
43195          ;;
43196       esac
43197       archive_cmds_need_lc_F77=no
43198       hardcode_direct_F77=no
43199       hardcode_automatic_F77=yes
43200       hardcode_shlibpath_var_F77=unsupported
43201       whole_archive_flag_spec_F77=''
43202       link_all_deplibs_F77=yes
43203     if test "$GCC" = yes ; then
43204         output_verbose_link_cmd='echo'
43205         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
43206       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
43207       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
43208       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}'
43209       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}'
43210     else
43211       case $cc_basename in
43212         xlc*)
43213          output_verbose_link_cmd='echo'
43214          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
43215          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
43216           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
43217          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}'
43218           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}'
43219           ;;
43220        *)
43221          ld_shlibs_F77=no
43222           ;;
43223       esac
43224     fi
43225       ;;
43226
43227     dgux*)
43228       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
43229       hardcode_libdir_flag_spec_F77='-L$libdir'
43230       hardcode_shlibpath_var_F77=no
43231       ;;
43232
43233     freebsd1*)
43234       ld_shlibs_F77=no
43235       ;;
43236
43237     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
43238     # support.  Future versions do this automatically, but an explicit c++rt0.o
43239     # does not break anything, and helps significantly (at the cost of a little
43240     # extra space).
43241     freebsd2.2*)
43242       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
43243       hardcode_libdir_flag_spec_F77='-R$libdir'
43244       hardcode_direct_F77=yes
43245       hardcode_shlibpath_var_F77=no
43246       ;;
43247
43248     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
43249     freebsd2*)
43250       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
43251       hardcode_direct_F77=yes
43252       hardcode_minus_L_F77=yes
43253       hardcode_shlibpath_var_F77=no
43254       ;;
43255
43256     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
43257     freebsd* | kfreebsd*-gnu | dragonfly*)
43258       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
43259       hardcode_libdir_flag_spec_F77='-R$libdir'
43260       hardcode_direct_F77=yes
43261       hardcode_shlibpath_var_F77=no
43262       ;;
43263
43264     hpux9*)
43265       if test "$GCC" = yes; then
43266         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'
43267       else
43268         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'
43269       fi
43270       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
43271       hardcode_libdir_separator_F77=:
43272       hardcode_direct_F77=yes
43273
43274       # hardcode_minus_L: Not really in the search PATH,
43275       # but as the default location of the library.
43276       hardcode_minus_L_F77=yes
43277       export_dynamic_flag_spec_F77='${wl}-E'
43278       ;;
43279
43280     hpux10* | hpux11*)
43281       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
43282         case $host_cpu in
43283         hppa*64*|ia64*)
43284           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
43285           ;;
43286         *)
43287           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
43288           ;;
43289         esac
43290       else
43291         case $host_cpu in
43292         hppa*64*|ia64*)
43293           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
43294           ;;
43295         *)
43296           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
43297           ;;
43298         esac
43299       fi
43300       if test "$with_gnu_ld" = no; then
43301         case $host_cpu in
43302         hppa*64*)
43303           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
43304           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
43305           hardcode_libdir_separator_F77=:
43306           hardcode_direct_F77=no
43307           hardcode_shlibpath_var_F77=no
43308           ;;
43309         ia64*)
43310           hardcode_libdir_flag_spec_F77='-L$libdir'
43311           hardcode_direct_F77=no
43312           hardcode_shlibpath_var_F77=no
43313
43314           # hardcode_minus_L: Not really in the search PATH,
43315           # but as the default location of the library.
43316           hardcode_minus_L_F77=yes
43317           ;;
43318         *)
43319           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
43320           hardcode_libdir_separator_F77=:
43321           hardcode_direct_F77=yes
43322           export_dynamic_flag_spec_F77='${wl}-E'
43323
43324           # hardcode_minus_L: Not really in the search PATH,
43325           # but as the default location of the library.
43326           hardcode_minus_L_F77=yes
43327           ;;
43328         esac
43329       fi
43330       ;;
43331
43332     irix5* | irix6* | nonstopux*)
43333       if test "$GCC" = yes; then
43334         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'
43335       else
43336         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'
43337         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
43338       fi
43339       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
43340       hardcode_libdir_separator_F77=:
43341       link_all_deplibs_F77=yes
43342       ;;
43343
43344     netbsd*)
43345       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
43346         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
43347       else
43348         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
43349       fi
43350       hardcode_libdir_flag_spec_F77='-R$libdir'
43351       hardcode_direct_F77=yes
43352       hardcode_shlibpath_var_F77=no
43353       ;;
43354
43355     newsos6)
43356       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
43357       hardcode_direct_F77=yes
43358       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
43359       hardcode_libdir_separator_F77=:
43360       hardcode_shlibpath_var_F77=no
43361       ;;
43362
43363     openbsd*)
43364       hardcode_direct_F77=yes
43365       hardcode_shlibpath_var_F77=no
43366       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
43367         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
43368         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
43369         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
43370         export_dynamic_flag_spec_F77='${wl}-E'
43371       else
43372        case $host_os in
43373          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
43374            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
43375            hardcode_libdir_flag_spec_F77='-R$libdir'
43376            ;;
43377          *)
43378            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
43379            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
43380            ;;
43381        esac
43382       fi
43383       ;;
43384
43385     os2*)
43386       hardcode_libdir_flag_spec_F77='-L$libdir'
43387       hardcode_minus_L_F77=yes
43388       allow_undefined_flag_F77=unsupported
43389       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'
43390       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
43391       ;;
43392
43393     osf3*)
43394       if test "$GCC" = yes; then
43395         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
43396         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'
43397       else
43398         allow_undefined_flag_F77=' -expect_unresolved \*'
43399         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'
43400       fi
43401       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
43402       hardcode_libdir_separator_F77=:
43403       ;;
43404
43405     osf4* | osf5*)      # as osf3* with the addition of -msym flag
43406       if test "$GCC" = yes; then
43407         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
43408         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'
43409         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
43410       else
43411         allow_undefined_flag_F77=' -expect_unresolved \*'
43412         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'
43413         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~
43414         $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'
43415
43416         # Both c and cxx compiler support -rpath directly
43417         hardcode_libdir_flag_spec_F77='-rpath $libdir'
43418       fi
43419       hardcode_libdir_separator_F77=:
43420       ;;
43421
43422     sco3.2v5*)
43423       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
43424       hardcode_shlibpath_var_F77=no
43425       export_dynamic_flag_spec_F77='${wl}-Bexport'
43426       runpath_var=LD_RUN_PATH
43427       hardcode_runpath_var=yes
43428       ;;
43429
43430     solaris*)
43431       no_undefined_flag_F77=' -z text'
43432       if test "x$archive_cmds" = "x"; then
43433         if test "$GCC" = yes; then
43434           wlarc='${wl}'
43435           if $CC -v --help 2>/dev/null | grep -- -shared  > /dev/null 2> /dev/null; then
43436             archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
43437             archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
43438             $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
43439           else
43440             archive_cmds_F77='$CC ${wl}-G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
43441             archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
43442             $CC ${wl}-G ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
43443           fi
43444         else
43445           wlarc=''
43446           lt_prog_compiler_static_F77='-static'
43447           archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
43448           archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
43449           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
43450           lt_prog_compiler_static_F77='-static'
43451         fi
43452       fi
43453       hardcode_libdir_flag_spec_F77='-R$libdir'
43454       hardcode_shlibpath_var_F77=no
43455       case $host_os in
43456       solaris2.[0-5] | solaris2.[0-5].*) ;;
43457       *)
43458         # The compiler driver will combine linker options so we
43459         # cannot just pass the convience library names through
43460         # without $wl, iff we do not link with $LD.
43461         # Luckily, gcc supports the same syntax we need for Sun Studio.
43462         # Supported since Solaris 2.6 (maybe 2.5.1?)
43463         case $wlarc in
43464         '')
43465           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
43466         *)
43467           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' ;;
43468         esac ;;
43469       esac
43470       link_all_deplibs_F77=yes
43471       ;;
43472
43473     sunos4*)
43474       if test "x$host_vendor" = xsequent; then
43475         # Use $CC to link under sequent, because it throws in some extra .o
43476         # files that make .init and .fini sections work.
43477         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
43478       else
43479         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
43480       fi
43481       hardcode_libdir_flag_spec_F77='-L$libdir'
43482       hardcode_direct_F77=yes
43483       hardcode_minus_L_F77=yes
43484       hardcode_shlibpath_var_F77=no
43485       ;;
43486
43487     sysv4)
43488       case $host_vendor in
43489         sni)
43490           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
43491           hardcode_direct_F77=yes # is this really true???
43492         ;;
43493         siemens)
43494           ## LD is ld it makes a PLAMLIB
43495           ## CC just makes a GrossModule.
43496           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
43497           reload_cmds_F77='$CC -r -o $output$reload_objs'
43498           hardcode_direct_F77=no
43499         ;;
43500         motorola)
43501           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
43502           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
43503         ;;
43504       esac
43505       runpath_var='LD_RUN_PATH'
43506       hardcode_shlibpath_var_F77=no
43507       ;;
43508
43509     sysv4.3*)
43510       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
43511       hardcode_shlibpath_var_F77=no
43512       export_dynamic_flag_spec_F77='-Bexport'
43513       ;;
43514
43515     sysv4*MP*)
43516       if test -d /usr/nec; then
43517         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
43518         hardcode_shlibpath_var_F77=no
43519         runpath_var=LD_RUN_PATH
43520         hardcode_runpath_var=yes
43521         ld_shlibs_F77=yes
43522       fi
43523       ;;
43524
43525     sysv4.2uw2*)
43526       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
43527       hardcode_direct_F77=yes
43528       hardcode_minus_L_F77=no
43529       hardcode_shlibpath_var_F77=no
43530       hardcode_runpath_var=yes
43531       runpath_var=LD_RUN_PATH
43532       ;;
43533
43534    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
43535       no_undefined_flag_F77='${wl}-z ${wl}text'
43536       if test "$GCC" = yes; then
43537         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
43538       else
43539         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
43540       fi
43541       runpath_var='LD_RUN_PATH'
43542       hardcode_shlibpath_var_F77=no
43543       ;;
43544
43545     sysv5*)
43546       no_undefined_flag_F77=' -z text'
43547       # $CC -shared without GNU ld will not create a library from C++
43548       # object files and a static libstdc++, better avoid it by now
43549       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
43550       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
43551                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
43552       hardcode_libdir_flag_spec_F77=
43553       hardcode_shlibpath_var_F77=no
43554       runpath_var='LD_RUN_PATH'
43555       ;;
43556
43557     uts4*)
43558       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
43559       hardcode_libdir_flag_spec_F77='-L$libdir'
43560       hardcode_shlibpath_var_F77=no
43561       ;;
43562
43563     *)
43564       ld_shlibs_F77=no
43565       ;;
43566     esac
43567   fi
43568
43569 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
43570 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
43571 test "$ld_shlibs_F77" = no && can_build_shared=no
43572
43573 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
43574 if test "$GCC" = yes; then
43575   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
43576 fi
43577
43578 #
43579 # Do we need to explicitly link libc?
43580 #
43581 case "x$archive_cmds_need_lc_F77" in
43582 x|xyes)
43583   # Assume -lc should be added
43584   archive_cmds_need_lc_F77=yes
43585
43586   if test "$enable_shared" = yes && test "$GCC" = yes; then
43587     case $archive_cmds_F77 in
43588     *'~'*)
43589       # FIXME: we may have to deal with multi-command sequences.
43590       ;;
43591     '$CC '*)
43592       # Test whether the compiler implicitly links with -lc since on some
43593       # systems, -lgcc has to come before -lc. If gcc already passes -lc
43594       # to ld, don't add -lc before -lgcc.
43595       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
43596 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
43597       $rm conftest*
43598       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
43599
43600       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43601   (eval $ac_compile) 2>&5
43602   ac_status=$?
43603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43604   (exit $ac_status); } 2>conftest.err; then
43605         soname=conftest
43606         lib=conftest
43607         libobjs=conftest.$ac_objext
43608         deplibs=
43609         wl=$lt_prog_compiler_wl_F77
43610         compiler_flags=-v
43611         linker_flags=-v
43612         verstring=
43613         output_objdir=.
43614         libname=conftest
43615         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
43616         allow_undefined_flag_F77=
43617         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
43618   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
43619   ac_status=$?
43620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43621   (exit $ac_status); }
43622         then
43623           archive_cmds_need_lc_F77=no
43624         else
43625           archive_cmds_need_lc_F77=yes
43626         fi
43627         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
43628       else
43629         cat conftest.err 1>&5
43630       fi
43631       $rm conftest*
43632       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
43633 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
43634       ;;
43635     esac
43636   fi
43637   ;;
43638 esac
43639
43640 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
43641 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
43642 library_names_spec=
43643 libname_spec='lib$name'
43644 soname_spec=
43645 shrext_cmds=".so"
43646 postinstall_cmds=
43647 postuninstall_cmds=
43648 finish_cmds=
43649 finish_eval=
43650 shlibpath_var=
43651 shlibpath_overrides_runpath=unknown
43652 version_type=none
43653 dynamic_linker="$host_os ld.so"
43654 sys_lib_dlsearch_path_spec="/lib /usr/lib"
43655 if test "$GCC" = yes; then
43656   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
43657   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
43658     # if the path contains ";" then we assume it to be the separator
43659     # otherwise default to the standard path separator (i.e. ":") - it is
43660     # assumed that no part of a normal pathname contains ";" but that should
43661     # okay in the real world where ";" in dirpaths is itself problematic.
43662     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
43663   else
43664     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
43665   fi
43666 else
43667   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
43668 fi
43669 need_lib_prefix=unknown
43670 hardcode_into_libs=no
43671
43672 # when you set need_version to no, make sure it does not cause -set_version
43673 # flags to be left without arguments
43674 need_version=unknown
43675
43676 case $host_os in
43677 aix3*)
43678   version_type=linux
43679   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
43680   shlibpath_var=LIBPATH
43681
43682   # AIX 3 has no versioning support, so we append a major version to the name.
43683   soname_spec='${libname}${release}${shared_ext}$major'
43684   ;;
43685
43686 aix4* | aix5*)
43687   version_type=linux
43688   need_lib_prefix=no
43689   need_version=no
43690   hardcode_into_libs=yes
43691   if test "$host_cpu" = ia64; then
43692     # AIX 5 supports IA64
43693     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
43694     shlibpath_var=LD_LIBRARY_PATH
43695   else
43696     # With GCC up to 2.95.x, collect2 would create an import file
43697     # for dependence libraries.  The import file would start with
43698     # the line `#! .'.  This would cause the generated library to
43699     # depend on `.', always an invalid library.  This was fixed in
43700     # development snapshots of GCC prior to 3.0.
43701     case $host_os in
43702       aix4 | aix4.[01] | aix4.[01].*)
43703       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
43704            echo ' yes '
43705            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
43706         :
43707       else
43708         can_build_shared=no
43709       fi
43710       ;;
43711     esac
43712     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
43713     # soname into executable. Probably we can add versioning support to
43714     # collect2, so additional links can be useful in future.
43715     if test "$aix_use_runtimelinking" = yes; then
43716       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
43717       # instead of lib<name>.a to let people know that these are not
43718       # typical AIX shared libraries.
43719       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
43720     else
43721       # We preserve .a as extension for shared libraries through AIX4.2
43722       # and later when we are not doing run time linking.
43723       library_names_spec='${libname}${release}.a $libname.a'
43724       soname_spec='${libname}${release}${shared_ext}$major'
43725     fi
43726     shlibpath_var=LIBPATH
43727   fi
43728   ;;
43729
43730 amigaos*)
43731   library_names_spec='$libname.ixlibrary $libname.a'
43732   # Create ${libname}_ixlibrary.a entries in /sys/libs.
43733   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'
43734   ;;
43735
43736 beos*)
43737   library_names_spec='${libname}${shared_ext}'
43738   dynamic_linker="$host_os ld.so"
43739   shlibpath_var=LIBRARY_PATH
43740   ;;
43741
43742 bsdi[45]*)
43743   version_type=linux
43744   need_version=no
43745   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
43746   soname_spec='${libname}${release}${shared_ext}$major'
43747   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
43748   shlibpath_var=LD_LIBRARY_PATH
43749   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
43750   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
43751   # the default ld.so.conf also contains /usr/contrib/lib and
43752   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
43753   # libtool to hard-code these into programs
43754   ;;
43755
43756 cygwin* | mingw* | pw32*)
43757   version_type=windows
43758   shrext_cmds=".dll"
43759   need_version=no
43760   need_lib_prefix=no
43761
43762   case $GCC,$host_os in
43763   yes,cygwin* | yes,mingw* | yes,pw32*)
43764     library_names_spec='$libname.dll.a'
43765     # DLL is installed to $(libdir)/../bin by postinstall_cmds
43766     postinstall_cmds='base_file=`basename \${file}`~
43767       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
43768       dldir=$destdir/`dirname \$dlpath`~
43769       test -d \$dldir || mkdir -p \$dldir~
43770       $install_prog $dir/$dlname \$dldir/$dlname~
43771       chmod a+x \$dldir/$dlname'
43772     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
43773       dlpath=$dir/\$dldll~
43774        $rm \$dlpath'
43775     shlibpath_overrides_runpath=yes
43776
43777     case $host_os in
43778     cygwin*)
43779       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
43780       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
43781       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
43782       ;;
43783     mingw*)
43784       # MinGW DLLs use traditional 'lib' prefix
43785       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
43786       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
43787       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
43788         # It is most probably a Windows format PATH printed by
43789         # mingw gcc, but we are running on Cygwin. Gcc prints its search
43790         # path with ; separators, and with drive letters. We can handle the
43791         # drive letters (cygwin fileutils understands them), so leave them,
43792         # especially as we might pass files found there to a mingw objdump,
43793         # which wouldn't understand a cygwinified path. Ahh.
43794         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
43795       else
43796         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
43797       fi
43798       ;;
43799     pw32*)
43800       # pw32 DLLs use 'pw' prefix rather than 'lib'
43801       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
43802       ;;
43803     esac
43804     ;;
43805
43806   *)
43807     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
43808     ;;
43809   esac
43810   dynamic_linker='Win32 ld.exe'
43811   # FIXME: first we should search . and the directory the executable is in
43812   shlibpath_var=PATH
43813   ;;
43814
43815 darwin* | rhapsody*)
43816   dynamic_linker="$host_os dyld"
43817   version_type=darwin
43818   need_lib_prefix=no
43819   need_version=no
43820   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
43821   soname_spec='${libname}${release}${major}$shared_ext'
43822   shlibpath_overrides_runpath=yes
43823   shlibpath_var=DYLD_LIBRARY_PATH
43824   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
43825   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
43826   if test "$GCC" = yes; then
43827     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"`
43828   else
43829     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
43830   fi
43831   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
43832   ;;
43833
43834 dgux*)
43835   version_type=linux
43836   need_lib_prefix=no
43837   need_version=no
43838   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
43839   soname_spec='${libname}${release}${shared_ext}$major'
43840   shlibpath_var=LD_LIBRARY_PATH
43841   ;;
43842
43843 freebsd1*)
43844   dynamic_linker=no
43845   ;;
43846
43847 kfreebsd*-gnu)
43848   version_type=linux
43849   need_lib_prefix=no
43850   need_version=no
43851   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
43852   soname_spec='${libname}${release}${shared_ext}$major'
43853   shlibpath_var=LD_LIBRARY_PATH
43854   shlibpath_overrides_runpath=no
43855   hardcode_into_libs=yes
43856   dynamic_linker='GNU ld.so'
43857   ;;
43858
43859 freebsd* | dragonfly*)
43860   # DragonFly does not have aout.  When/if they implement a new
43861   # versioning mechanism, adjust this.
43862   if test -x /usr/bin/objformat; then
43863     objformat=`/usr/bin/objformat`
43864   else
43865     case $host_os in
43866     freebsd[123]*) objformat=aout ;;
43867     *) objformat=elf ;;
43868     esac
43869   fi
43870   version_type=freebsd-$objformat
43871   case $version_type in
43872     freebsd-elf*)
43873       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
43874       need_version=no
43875       need_lib_prefix=no
43876       ;;
43877     freebsd-*)
43878       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
43879       need_version=yes
43880       ;;
43881   esac
43882   shlibpath_var=LD_LIBRARY_PATH
43883   case $host_os in
43884   freebsd2*)
43885     shlibpath_overrides_runpath=yes
43886     ;;
43887   freebsd3.[01]* | freebsdelf3.[01]*)
43888     shlibpath_overrides_runpath=yes
43889     hardcode_into_libs=yes
43890     ;;
43891   *) # from 3.2 on
43892     shlibpath_overrides_runpath=no
43893     hardcode_into_libs=yes
43894     ;;
43895   esac
43896   ;;
43897
43898 gnu*)
43899   version_type=linux
43900   need_lib_prefix=no
43901   need_version=no
43902   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
43903   soname_spec='${libname}${release}${shared_ext}$major'
43904   shlibpath_var=LD_LIBRARY_PATH
43905   hardcode_into_libs=yes
43906   ;;
43907
43908 hpux9* | hpux10* | hpux11*)
43909   # Give a soname corresponding to the major version so that dld.sl refuses to
43910   # link against other versions.
43911   version_type=sunos
43912   need_lib_prefix=no
43913   need_version=no
43914   case $host_cpu in
43915   ia64*)
43916     shrext_cmds='.so'
43917     hardcode_into_libs=yes
43918     dynamic_linker="$host_os dld.so"
43919     shlibpath_var=LD_LIBRARY_PATH
43920     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
43921     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
43922     soname_spec='${libname}${release}${shared_ext}$major'
43923     if test "X$HPUX_IA64_MODE" = X32; then
43924       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
43925     else
43926       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
43927     fi
43928     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
43929     ;;
43930    hppa*64*)
43931      shrext_cmds='.sl'
43932      hardcode_into_libs=yes
43933      dynamic_linker="$host_os dld.sl"
43934      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
43935      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
43936      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
43937      soname_spec='${libname}${release}${shared_ext}$major'
43938      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
43939      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
43940      ;;
43941    *)
43942     shrext_cmds='.sl'
43943     dynamic_linker="$host_os dld.sl"
43944     shlibpath_var=SHLIB_PATH
43945     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
43946     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
43947     soname_spec='${libname}${release}${shared_ext}$major'
43948     ;;
43949   esac
43950   # HP-UX runs *really* slowly unless shared libraries are mode 555.
43951   postinstall_cmds='chmod 555 $lib'
43952   ;;
43953
43954 irix5* | irix6* | nonstopux*)
43955   case $host_os in
43956     nonstopux*) version_type=nonstopux ;;
43957     *)
43958         if test "$lt_cv_prog_gnu_ld" = yes; then
43959                 version_type=linux
43960         else
43961                 version_type=irix
43962         fi ;;
43963   esac
43964   need_lib_prefix=no
43965   need_version=no
43966   soname_spec='${libname}${release}${shared_ext}$major'
43967   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
43968   case $host_os in
43969   irix5* | nonstopux*)
43970     libsuff= shlibsuff=
43971     ;;
43972   *)
43973     case $LD in # libtool.m4 will add one of these switches to LD
43974     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
43975       libsuff= shlibsuff= libmagic=32-bit;;
43976     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
43977       libsuff=32 shlibsuff=N32 libmagic=N32;;
43978     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
43979       libsuff=64 shlibsuff=64 libmagic=64-bit;;
43980     *) libsuff= shlibsuff= libmagic=never-match;;
43981     esac
43982     ;;
43983   esac
43984   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
43985   shlibpath_overrides_runpath=no
43986   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
43987   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
43988   hardcode_into_libs=yes
43989   ;;
43990
43991 # No shared lib support for Linux oldld, aout, or coff.
43992 linux*oldld* | linux*aout* | linux*coff*)
43993   dynamic_linker=no
43994   ;;
43995
43996 # This must be Linux ELF.
43997 linux*)
43998   version_type=linux
43999   need_lib_prefix=no
44000   need_version=no
44001   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
44002   soname_spec='${libname}${release}${shared_ext}$major'
44003   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
44004   shlibpath_var=LD_LIBRARY_PATH
44005   shlibpath_overrides_runpath=no
44006   # This implies no fast_install, which is unacceptable.
44007   # Some rework will be needed to allow for fast_install
44008   # before this can be enabled.
44009   hardcode_into_libs=yes
44010
44011   # Append ld.so.conf contents to the search path
44012   if test -f /etc/ld.so.conf; then
44013     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' ' '`
44014     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
44015   fi
44016
44017   # We used to test for /lib/ld.so.1 and disable shared libraries on
44018   # powerpc, because MkLinux only supported shared libraries with the
44019   # GNU dynamic linker.  Since this was broken with cross compilers,
44020   # most powerpc-linux boxes support dynamic linking these days and
44021   # people can always --disable-shared, the test was removed, and we
44022   # assume the GNU/Linux dynamic linker is in use.
44023   dynamic_linker='GNU/Linux ld.so'
44024   ;;
44025
44026 knetbsd*-gnu)
44027   version_type=linux
44028   need_lib_prefix=no
44029   need_version=no
44030   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
44031   soname_spec='${libname}${release}${shared_ext}$major'
44032   shlibpath_var=LD_LIBRARY_PATH
44033   shlibpath_overrides_runpath=no
44034   hardcode_into_libs=yes
44035   dynamic_linker='GNU ld.so'
44036   ;;
44037
44038 netbsd*)
44039   version_type=sunos
44040   need_lib_prefix=no
44041   need_version=no
44042   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
44043     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
44044     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
44045     dynamic_linker='NetBSD (a.out) ld.so'
44046   else
44047     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
44048     soname_spec='${libname}${release}${shared_ext}$major'
44049     dynamic_linker='NetBSD ld.elf_so'
44050   fi
44051   shlibpath_var=LD_LIBRARY_PATH
44052   shlibpath_overrides_runpath=yes
44053   hardcode_into_libs=yes
44054   ;;
44055
44056 newsos6)
44057   version_type=linux
44058   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
44059   shlibpath_var=LD_LIBRARY_PATH
44060   shlibpath_overrides_runpath=yes
44061   ;;
44062
44063 nto-qnx*)
44064   version_type=linux
44065   need_lib_prefix=no
44066   need_version=no
44067   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
44068   soname_spec='${libname}${release}${shared_ext}$major'
44069   shlibpath_var=LD_LIBRARY_PATH
44070   shlibpath_overrides_runpath=yes
44071   ;;
44072
44073 openbsd*)
44074   version_type=sunos
44075   need_lib_prefix=no
44076   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
44077   case $host_os in
44078     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
44079     *)                         need_version=no  ;;
44080   esac
44081   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
44082   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
44083   shlibpath_var=LD_LIBRARY_PATH
44084   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
44085     case $host_os in
44086       openbsd2.[89] | openbsd2.[89].*)
44087         shlibpath_overrides_runpath=no
44088         ;;
44089       *)
44090         shlibpath_overrides_runpath=yes
44091         ;;
44092       esac
44093   else
44094     shlibpath_overrides_runpath=yes
44095   fi
44096   ;;
44097
44098 os2*)
44099   libname_spec='$name'
44100   shrext_cmds=".dll"
44101   need_lib_prefix=no
44102   library_names_spec='$libname${shared_ext} $libname.a'
44103   dynamic_linker='OS/2 ld.exe'
44104   shlibpath_var=LIBPATH
44105   ;;
44106
44107 osf3* | osf4* | osf5*)
44108   version_type=osf
44109   need_lib_prefix=no
44110   need_version=no
44111   soname_spec='${libname}${release}${shared_ext}$major'
44112   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
44113   shlibpath_var=LD_LIBRARY_PATH
44114   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
44115   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
44116   ;;
44117
44118 sco3.2v5*)
44119   version_type=osf
44120   soname_spec='${libname}${release}${shared_ext}$major'
44121   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
44122   shlibpath_var=LD_LIBRARY_PATH
44123   ;;
44124
44125 solaris*)
44126   version_type=linux
44127   need_lib_prefix=no
44128   need_version=no
44129   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
44130   soname_spec='${libname}${release}${shared_ext}$major'
44131   shlibpath_var=LD_LIBRARY_PATH
44132   shlibpath_overrides_runpath=yes
44133   hardcode_into_libs=yes
44134   # ldd complains unless libraries are executable
44135   postinstall_cmds='chmod +x $lib'
44136   ;;
44137
44138 sunos4*)
44139   version_type=sunos
44140   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
44141   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
44142   shlibpath_var=LD_LIBRARY_PATH
44143   shlibpath_overrides_runpath=yes
44144   if test "$with_gnu_ld" = yes; then
44145     need_lib_prefix=no
44146   fi
44147   need_version=yes
44148   ;;
44149
44150 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
44151   version_type=linux
44152   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
44153   soname_spec='${libname}${release}${shared_ext}$major'
44154   shlibpath_var=LD_LIBRARY_PATH
44155   case $host_vendor in
44156     sni)
44157       shlibpath_overrides_runpath=no
44158       need_lib_prefix=no
44159       export_dynamic_flag_spec='${wl}-Blargedynsym'
44160       runpath_var=LD_RUN_PATH
44161       ;;
44162     siemens)
44163       need_lib_prefix=no
44164       ;;
44165     motorola)
44166       need_lib_prefix=no
44167       need_version=no
44168       shlibpath_overrides_runpath=no
44169       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
44170       ;;
44171   esac
44172   ;;
44173
44174 sysv4*MP*)
44175   if test -d /usr/nec ;then
44176     version_type=linux
44177     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
44178     soname_spec='$libname${shared_ext}.$major'
44179     shlibpath_var=LD_LIBRARY_PATH
44180   fi
44181   ;;
44182
44183 uts4*)
44184   version_type=linux
44185   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
44186   soname_spec='${libname}${release}${shared_ext}$major'
44187   shlibpath_var=LD_LIBRARY_PATH
44188   ;;
44189
44190 *)
44191   dynamic_linker=no
44192   ;;
44193 esac
44194 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
44195 echo "${ECHO_T}$dynamic_linker" >&6; }
44196 test "$dynamic_linker" = no && can_build_shared=no
44197
44198 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
44199 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
44200 hardcode_action_F77=
44201 if test -n "$hardcode_libdir_flag_spec_F77" || \
44202    test -n "$runpath_var_F77" || \
44203    test "X$hardcode_automatic_F77" = "Xyes" ; then
44204
44205   # We can hardcode non-existant directories.
44206   if test "$hardcode_direct_F77" != no &&
44207      # If the only mechanism to avoid hardcoding is shlibpath_var, we
44208      # have to relink, otherwise we might link with an installed library
44209      # when we should be linking with a yet-to-be-installed one
44210      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
44211      test "$hardcode_minus_L_F77" != no; then
44212     # Linking always hardcodes the temporary library directory.
44213     hardcode_action_F77=relink
44214   else
44215     # We can link without hardcoding, and we can hardcode nonexisting dirs.
44216     hardcode_action_F77=immediate
44217   fi
44218 else
44219   # We cannot hardcode anything, or else we can only hardcode existing
44220   # directories.
44221   hardcode_action_F77=unsupported
44222 fi
44223 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
44224 echo "${ECHO_T}$hardcode_action_F77" >&6; }
44225
44226 if test "$hardcode_action_F77" = relink; then
44227   # Fast installation is not supported
44228   enable_fast_install=no
44229 elif test "$shlibpath_overrides_runpath" = yes ||
44230      test "$enable_shared" = no; then
44231   # Fast installation is not necessary
44232   enable_fast_install=needless
44233 fi
44234
44235 striplib=
44236 old_striplib=
44237 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
44238 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
44239 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
44240   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
44241   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
44242   { echo "$as_me:$LINENO: result: yes" >&5
44243 echo "${ECHO_T}yes" >&6; }
44244 else
44245 # FIXME - insert some real tests, host_os isn't really good enough
44246   case $host_os in
44247    darwin*)
44248        if test -n "$STRIP" ; then
44249          striplib="$STRIP -x"
44250          { echo "$as_me:$LINENO: result: yes" >&5
44251 echo "${ECHO_T}yes" >&6; }
44252        else
44253   { echo "$as_me:$LINENO: result: no" >&5
44254 echo "${ECHO_T}no" >&6; }
44255 fi
44256        ;;
44257    *)
44258   { echo "$as_me:$LINENO: result: no" >&5
44259 echo "${ECHO_T}no" >&6; }
44260     ;;
44261   esac
44262 fi
44263
44264
44265
44266 # The else clause should only fire when bootstrapping the
44267 # libtool distribution, otherwise you forgot to ship ltmain.sh
44268 # with your package, and you will get complaints that there are
44269 # no rules to generate ltmain.sh.
44270 if test -f "$ltmain"; then
44271   # See if we are running on zsh, and set the options which allow our commands through
44272   # without removal of \ escapes.
44273   if test -n "${ZSH_VERSION+set}" ; then
44274     setopt NO_GLOB_SUBST
44275   fi
44276   # Now quote all the things that may contain metacharacters while being
44277   # careful not to overquote the AC_SUBSTed values.  We take copies of the
44278   # variables and quote the copies for generation of the libtool script.
44279   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
44280     SED SHELL STRIP \
44281     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
44282     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
44283     deplibs_check_method reload_flag reload_cmds need_locks \
44284     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
44285     lt_cv_sys_global_symbol_to_c_name_address \
44286     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
44287     old_postinstall_cmds old_postuninstall_cmds \
44288     compiler_F77 \
44289     CC_F77 \
44290     LD_F77 \
44291     lt_prog_compiler_wl_F77 \
44292     lt_prog_compiler_pic_F77 \
44293     lt_prog_compiler_static_F77 \
44294     lt_prog_compiler_no_builtin_flag_F77 \
44295     export_dynamic_flag_spec_F77 \
44296     thread_safe_flag_spec_F77 \
44297     whole_archive_flag_spec_F77 \
44298     enable_shared_with_static_runtimes_F77 \
44299     old_archive_cmds_F77 \
44300     old_archive_from_new_cmds_F77 \
44301     predep_objects_F77 \
44302     postdep_objects_F77 \
44303     predeps_F77 \
44304     postdeps_F77 \
44305     compiler_lib_search_path_F77 \
44306     archive_cmds_F77 \
44307     archive_expsym_cmds_F77 \
44308     postinstall_cmds_F77 \
44309     postuninstall_cmds_F77 \
44310     old_archive_from_expsyms_cmds_F77 \
44311     allow_undefined_flag_F77 \
44312     no_undefined_flag_F77 \
44313     export_symbols_cmds_F77 \
44314     hardcode_libdir_flag_spec_F77 \
44315     hardcode_libdir_flag_spec_ld_F77 \
44316     hardcode_libdir_separator_F77 \
44317     hardcode_automatic_F77 \
44318     module_cmds_F77 \
44319     module_expsym_cmds_F77 \
44320     lt_cv_prog_compiler_c_o_F77 \
44321     exclude_expsyms_F77 \
44322     include_expsyms_F77; do
44323
44324     case $var in
44325     old_archive_cmds_F77 | \
44326     old_archive_from_new_cmds_F77 | \
44327     archive_cmds_F77 | \
44328     archive_expsym_cmds_F77 | \
44329     module_cmds_F77 | \
44330     module_expsym_cmds_F77 | \
44331     old_archive_from_expsyms_cmds_F77 | \
44332     export_symbols_cmds_F77 | \
44333     extract_expsyms_cmds | reload_cmds | finish_cmds | \
44334     postinstall_cmds | postuninstall_cmds | \
44335     old_postinstall_cmds | old_postuninstall_cmds | \
44336     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
44337       # Double-quote double-evaled strings.
44338       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
44339       ;;
44340     *)
44341       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
44342       ;;
44343     esac
44344   done
44345
44346   case $lt_echo in
44347   *'\$0 --fallback-echo"')
44348     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
44349     ;;
44350   esac
44351
44352 cfgfile="$ofile"
44353
44354   cat <<__EOF__ >> "$cfgfile"
44355 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
44356
44357 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
44358
44359 # Shell to use when invoking shell scripts.
44360 SHELL=$lt_SHELL
44361
44362 # Whether or not to build shared libraries.
44363 build_libtool_libs=$enable_shared
44364
44365 # Whether or not to build static libraries.
44366 build_old_libs=$enable_static
44367
44368 # Whether or not to add -lc for building shared libraries.
44369 build_libtool_need_lc=$archive_cmds_need_lc_F77
44370
44371 # Whether or not to disallow shared libs when runtime libs are static
44372 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
44373
44374 # Whether or not to optimize for fast installation.
44375 fast_install=$enable_fast_install
44376
44377 # The host system.
44378 host_alias=$host_alias
44379 host=$host
44380 host_os=$host_os
44381
44382 # The build system.
44383 build_alias=$build_alias
44384 build=$build
44385 build_os=$build_os
44386
44387 # An echo program that does not interpret backslashes.
44388 echo=$lt_echo
44389
44390 # The archiver.
44391 AR=$lt_AR
44392 AR_FLAGS=$lt_AR_FLAGS
44393
44394 # A C compiler.
44395 LTCC=$lt_LTCC
44396
44397 # A language-specific compiler.
44398 CC=$lt_compiler_F77
44399
44400 # Is the compiler the GNU C compiler?
44401 with_gcc=$GCC_F77
44402
44403 # An ERE matcher.
44404 EGREP=$lt_EGREP
44405
44406 # The linker used to build libraries.
44407 LD=$lt_LD_F77
44408
44409 # Whether we need hard or soft links.
44410 LN_S=$lt_LN_S
44411
44412 # A BSD-compatible nm program.
44413 NM=$lt_NM
44414
44415 # A symbol stripping program
44416 STRIP=$lt_STRIP
44417
44418 # Used to examine libraries when file_magic_cmd begins "file"
44419 MAGIC_CMD=$MAGIC_CMD
44420
44421 # Used on cygwin: DLL creation program.
44422 DLLTOOL="$DLLTOOL"
44423
44424 # Used on cygwin: object dumper.
44425 OBJDUMP="$OBJDUMP"
44426
44427 # Used on cygwin: assembler.
44428 AS="$AS"
44429
44430 # The name of the directory that contains temporary libtool files.
44431 objdir=$objdir
44432
44433 # How to create reloadable object files.
44434 reload_flag=$lt_reload_flag
44435 reload_cmds=$lt_reload_cmds
44436
44437 # How to pass a linker flag through the compiler.
44438 wl=$lt_lt_prog_compiler_wl_F77
44439
44440 # Object file suffix (normally "o").
44441 objext="$ac_objext"
44442
44443 # Old archive suffix (normally "a").
44444 libext="$libext"
44445
44446 # Shared library suffix (normally ".so").
44447 shrext_cmds='$shrext_cmds'
44448
44449 # Executable file suffix (normally "").
44450 exeext="$exeext"
44451
44452 # Additional compiler flags for building library objects.
44453 pic_flag=$lt_lt_prog_compiler_pic_F77
44454 pic_mode=$pic_mode
44455
44456 # What is the maximum length of a command?
44457 max_cmd_len=$lt_cv_sys_max_cmd_len
44458
44459 # Does compiler simultaneously support -c and -o options?
44460 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
44461
44462 # Must we lock files when doing compilation?
44463 need_locks=$lt_need_locks
44464
44465 # Do we need the lib prefix for modules?
44466 need_lib_prefix=$need_lib_prefix
44467
44468 # Do we need a version for libraries?
44469 need_version=$need_version
44470
44471 # Whether dlopen is supported.
44472 dlopen_support=$enable_dlopen
44473
44474 # Whether dlopen of programs is supported.
44475 dlopen_self=$enable_dlopen_self
44476
44477 # Whether dlopen of statically linked programs is supported.
44478 dlopen_self_static=$enable_dlopen_self_static
44479
44480 # Compiler flag to prevent dynamic linking.
44481 link_static_flag=$lt_lt_prog_compiler_static_F77
44482
44483 # Compiler flag to turn off builtin functions.
44484 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
44485
44486 # Compiler flag to allow reflexive dlopens.
44487 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
44488
44489 # Compiler flag to generate shared objects directly from archives.
44490 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
44491
44492 # Compiler flag to generate thread-safe objects.
44493 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
44494
44495 # Library versioning type.
44496 version_type=$version_type
44497
44498 # Format of library name prefix.
44499 libname_spec=$lt_libname_spec
44500
44501 # List of archive names.  First name is the real one, the rest are links.
44502 # The last name is the one that the linker finds with -lNAME.
44503 library_names_spec=$lt_library_names_spec
44504
44505 # The coded name of the library, if different from the real name.
44506 soname_spec=$lt_soname_spec
44507
44508 # Commands used to build and install an old-style archive.
44509 RANLIB=$lt_RANLIB
44510 old_archive_cmds=$lt_old_archive_cmds_F77
44511 old_postinstall_cmds=$lt_old_postinstall_cmds
44512 old_postuninstall_cmds=$lt_old_postuninstall_cmds
44513
44514 # Create an old-style archive from a shared archive.
44515 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
44516
44517 # Create a temporary old-style archive to link instead of a shared archive.
44518 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
44519
44520 # Commands used to build and install a shared archive.
44521 archive_cmds=$lt_archive_cmds_F77
44522 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
44523 postinstall_cmds=$lt_postinstall_cmds
44524 postuninstall_cmds=$lt_postuninstall_cmds
44525
44526 # Commands used to build a loadable module (assumed same as above if empty)
44527 module_cmds=$lt_module_cmds_F77
44528 module_expsym_cmds=$lt_module_expsym_cmds_F77
44529
44530 # Commands to strip libraries.
44531 old_striplib=$lt_old_striplib
44532 striplib=$lt_striplib
44533
44534 # Dependencies to place before the objects being linked to create a
44535 # shared library.
44536 predep_objects=$lt_predep_objects_F77
44537
44538 # Dependencies to place after the objects being linked to create a
44539 # shared library.
44540 postdep_objects=$lt_postdep_objects_F77
44541
44542 # Dependencies to place before the objects being linked to create a
44543 # shared library.
44544 predeps=$lt_predeps_F77
44545
44546 # Dependencies to place after the objects being linked to create a
44547 # shared library.
44548 postdeps=$lt_postdeps_F77
44549
44550 # The library search path used internally by the compiler when linking
44551 # a shared library.
44552 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
44553
44554 # Method to check whether dependent libraries are shared objects.
44555 deplibs_check_method=$lt_deplibs_check_method
44556
44557 # Command to use when deplibs_check_method == file_magic.
44558 file_magic_cmd=$lt_file_magic_cmd
44559
44560 # Flag that allows shared libraries with undefined symbols to be built.
44561 allow_undefined_flag=$lt_allow_undefined_flag_F77
44562
44563 # Flag that forces no undefined symbols.
44564 no_undefined_flag=$lt_no_undefined_flag_F77
44565
44566 # Commands used to finish a libtool library installation in a directory.
44567 finish_cmds=$lt_finish_cmds
44568
44569 # Same as above, but a single script fragment to be evaled but not shown.
44570 finish_eval=$lt_finish_eval
44571
44572 # Take the output of nm and produce a listing of raw symbols and C names.
44573 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
44574
44575 # Transform the output of nm in a proper C declaration
44576 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
44577
44578 # Transform the output of nm in a C name address pair
44579 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
44580
44581 # This is the shared library runtime path variable.
44582 runpath_var=$runpath_var
44583
44584 # This is the shared library path variable.
44585 shlibpath_var=$shlibpath_var
44586
44587 # Is shlibpath searched before the hard-coded library search path?
44588 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
44589
44590 # How to hardcode a shared library path into an executable.
44591 hardcode_action=$hardcode_action_F77
44592
44593 # Whether we should hardcode library paths into libraries.
44594 hardcode_into_libs=$hardcode_into_libs
44595
44596 # Flag to hardcode \$libdir into a binary during linking.
44597 # This must work even if \$libdir does not exist.
44598 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
44599
44600 # If ld is used when linking, flag to hardcode \$libdir into
44601 # a binary during linking. This must work even if \$libdir does
44602 # not exist.
44603 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
44604
44605 # Whether we need a single -rpath flag with a separated argument.
44606 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
44607
44608 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
44609 # resulting binary.
44610 hardcode_direct=$hardcode_direct_F77
44611
44612 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
44613 # resulting binary.
44614 hardcode_minus_L=$hardcode_minus_L_F77
44615
44616 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
44617 # the resulting binary.
44618 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
44619
44620 # Set to yes if building a shared library automatically hardcodes DIR into the library
44621 # and all subsequent libraries and executables linked against it.
44622 hardcode_automatic=$hardcode_automatic_F77
44623
44624 # Variables whose values should be saved in libtool wrapper scripts and
44625 # restored at relink time.
44626 variables_saved_for_relink="$variables_saved_for_relink"
44627
44628 # Whether libtool must link a program against all its dependency libraries.
44629 link_all_deplibs=$link_all_deplibs_F77
44630
44631 # Compile-time system search path for libraries
44632 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
44633
44634 # Run-time system search path for libraries
44635 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
44636
44637 # Fix the shell variable \$srcfile for the compiler.
44638 fix_srcfile_path="$fix_srcfile_path_F77"
44639
44640 # Set to yes if exported symbols are required.
44641 always_export_symbols=$always_export_symbols_F77
44642
44643 # The commands to list exported symbols.
44644 export_symbols_cmds=$lt_export_symbols_cmds_F77
44645
44646 # The commands to extract the exported symbol list from a shared archive.
44647 extract_expsyms_cmds=$lt_extract_expsyms_cmds
44648
44649 # Symbols that should not be listed in the preloaded symbols.
44650 exclude_expsyms=$lt_exclude_expsyms_F77
44651
44652 # Symbols that must always be exported.
44653 include_expsyms=$lt_include_expsyms_F77
44654
44655 # ### END LIBTOOL TAG CONFIG: $tagname
44656
44657 __EOF__
44658
44659
44660 else
44661   # If there is no Makefile yet, we rely on a make rule to execute
44662   # `config.status --recheck' to rerun these tests and create the
44663   # libtool script then.
44664   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
44665   if test -f "$ltmain_in"; then
44666     test -f Makefile && make "$ltmain"
44667   fi
44668 fi
44669
44670
44671 ac_ext=c
44672 ac_cpp='$CPP $CPPFLAGS'
44673 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44674 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44675 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44676
44677 CC="$lt_save_CC"
44678
44679         else
44680           tagname=""
44681         fi
44682         ;;
44683
44684       GCJ)
44685         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
44686
44687
44688 # Source file extension for Java test sources.
44689 ac_ext=java
44690
44691 # Object file extension for compiled Java test sources.
44692 objext=o
44693 objext_GCJ=$objext
44694
44695 # Code to be used in simple compile tests
44696 lt_simple_compile_test_code="class foo {}\n"
44697
44698 # Code to be used in simple link tests
44699 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
44700
44701 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
44702
44703 # If no C compiler was specified, use CC.
44704 LTCC=${LTCC-"$CC"}
44705
44706 # Allow CC to be a program name with arguments.
44707 compiler=$CC
44708
44709
44710 # save warnings/boilerplate of simple test code
44711 ac_outfile=conftest.$ac_objext
44712 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
44713 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
44714 _lt_compiler_boilerplate=`cat conftest.err`
44715 $rm conftest*
44716
44717 ac_outfile=conftest.$ac_objext
44718 printf "$lt_simple_link_test_code" >conftest.$ac_ext
44719 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
44720 _lt_linker_boilerplate=`cat conftest.err`
44721 $rm conftest*
44722
44723
44724 # Allow CC to be a program name with arguments.
44725 lt_save_CC="$CC"
44726 CC=${GCJ-"gcj"}
44727 compiler=$CC
44728 compiler_GCJ=$CC
44729 for cc_temp in $compiler""; do
44730   case $cc_temp in
44731     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
44732     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
44733     \-*) ;;
44734     *) break;;
44735   esac
44736 done
44737 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
44738
44739
44740 # GCJ did not exist at the time GCC didn't implicitly link libc in.
44741 archive_cmds_need_lc_GCJ=no
44742
44743 old_archive_cmds_GCJ=$old_archive_cmds
44744
44745 ## CAVEAT EMPTOR:
44746 ## There is no encapsulation within the following macros, do not change
44747 ## the running order or otherwise move them around unless you know exactly
44748 ## what you are doing...
44749
44750 lt_prog_compiler_no_builtin_flag_GCJ=
44751
44752 if test "$GCC" = yes; then
44753   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
44754
44755
44756 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
44757 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
44758 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
44759   echo $ECHO_N "(cached) $ECHO_C" >&6
44760 else
44761   lt_cv_prog_compiler_rtti_exceptions=no
44762   ac_outfile=conftest.$ac_objext
44763    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
44764    lt_compiler_flag="-fno-rtti -fno-exceptions"
44765    # Insert the option either (1) after the last *FLAGS variable, or
44766    # (2) before a word containing "conftest.", or (3) at the end.
44767    # Note that $ac_compile itself does not contain backslashes and begins
44768    # with a dollar sign (not a hyphen), so the echo should work correctly.
44769    # The option is referenced via a variable to avoid confusing sed.
44770    lt_compile=`echo "$ac_compile" | $SED \
44771    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
44772    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
44773    -e 's:$: $lt_compiler_flag:'`
44774    (eval echo "\"\$as_me:44774: $lt_compile\"" >&5)
44775    (eval "$lt_compile" 2>conftest.err)
44776    ac_status=$?
44777    cat conftest.err >&5
44778    echo "$as_me:44778: \$? = $ac_status" >&5
44779    if (exit $ac_status) && test -s "$ac_outfile"; then
44780      # The compiler can only warn and ignore the option if not recognized
44781      # So say no if there are warnings other than the usual output.
44782      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
44783      $SED '/^$/d' conftest.err >conftest.er2
44784      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
44785        lt_cv_prog_compiler_rtti_exceptions=yes
44786      fi
44787    fi
44788    $rm conftest*
44789
44790 fi
44791 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
44792 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
44793
44794 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
44795     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
44796 else
44797     :
44798 fi
44799
44800 fi
44801
44802 lt_prog_compiler_wl_GCJ=
44803 lt_prog_compiler_pic_GCJ=
44804 lt_prog_compiler_static_GCJ=
44805
44806 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
44807 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
44808
44809   if test "$GCC" = yes; then
44810     lt_prog_compiler_wl_GCJ='-Wl,'
44811     lt_prog_compiler_static_GCJ='-static'
44812
44813     case $host_os in
44814       aix*)
44815       # All AIX code is PIC.
44816       if test "$host_cpu" = ia64; then
44817         # AIX 5 now supports IA64 processor
44818         lt_prog_compiler_static_GCJ='-Bstatic'
44819       fi
44820       ;;
44821
44822     amigaos*)
44823       # FIXME: we need at least 68020 code to build shared libraries, but
44824       # adding the `-m68020' flag to GCC prevents building anything better,
44825       # like `-m68040'.
44826       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
44827       ;;
44828
44829     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
44830       # PIC is the default for these OSes.
44831       ;;
44832
44833     mingw* | pw32* | os2*)
44834       # This hack is so that the source file can tell whether it is being
44835       # built for inclusion in a dll (and should export symbols for example).
44836       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
44837       ;;
44838
44839     darwin* | rhapsody*)
44840       # PIC is the default on this platform
44841       # Common symbols not allowed in MH_DYLIB files
44842       lt_prog_compiler_pic_GCJ='-fno-common'
44843       ;;
44844
44845     msdosdjgpp*)
44846       # Just because we use GCC doesn't mean we suddenly get shared libraries
44847       # on systems that don't support them.
44848       lt_prog_compiler_can_build_shared_GCJ=no
44849       enable_shared=no
44850       ;;
44851
44852     sysv4*MP*)
44853       if test -d /usr/nec; then
44854         lt_prog_compiler_pic_GCJ=-Kconform_pic
44855       fi
44856       ;;
44857
44858     hpux*)
44859       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
44860       # not for PA HP-UX.
44861       case $host_cpu in
44862       hppa*64*|ia64*)
44863         # +Z the default
44864         ;;
44865       *)
44866         lt_prog_compiler_pic_GCJ='-fPIC'
44867         ;;
44868       esac
44869       ;;
44870
44871     *)
44872       lt_prog_compiler_pic_GCJ='-fPIC'
44873       ;;
44874     esac
44875   else
44876     # PORTME Check for flag to pass linker flags through the system compiler.
44877     case $host_os in
44878     aix*)
44879       lt_prog_compiler_wl_GCJ='-Wl,'
44880       if test "$host_cpu" = ia64; then
44881         # AIX 5 now supports IA64 processor
44882         lt_prog_compiler_static_GCJ='-Bstatic'
44883       else
44884         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
44885       fi
44886       ;;
44887       darwin*)
44888         # PIC is the default on this platform
44889         # Common symbols not allowed in MH_DYLIB files
44890        case $cc_basename in
44891          xlc*)
44892          lt_prog_compiler_pic_GCJ='-qnocommon'
44893          lt_prog_compiler_wl_GCJ='-Wl,'
44894          ;;
44895        esac
44896        ;;
44897
44898     mingw* | pw32* | os2*)
44899       # This hack is so that the source file can tell whether it is being
44900       # built for inclusion in a dll (and should export symbols for example).
44901       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
44902       ;;
44903
44904     hpux9* | hpux10* | hpux11*)
44905       lt_prog_compiler_wl_GCJ='-Wl,'
44906       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
44907       # not for PA HP-UX.
44908       case $host_cpu in
44909       hppa*64*|ia64*)
44910         # +Z the default
44911         ;;
44912       *)
44913         lt_prog_compiler_pic_GCJ='+Z'
44914         ;;
44915       esac
44916       # Is there a better lt_prog_compiler_static that works with the bundled CC?
44917       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
44918       ;;
44919
44920     irix5* | irix6* | nonstopux*)
44921       lt_prog_compiler_wl_GCJ='-Wl,'
44922       # PIC (with -KPIC) is the default.
44923       lt_prog_compiler_static_GCJ='-non_shared'
44924       ;;
44925
44926     newsos6)
44927       lt_prog_compiler_pic_GCJ='-KPIC'
44928       lt_prog_compiler_static_GCJ='-Bstatic'
44929       ;;
44930
44931     linux*)
44932       case $cc_basename in
44933       icc* | ecc*)
44934         lt_prog_compiler_wl_GCJ='-Wl,'
44935         lt_prog_compiler_pic_GCJ='-KPIC'
44936         lt_prog_compiler_static_GCJ='-static'
44937         ;;
44938       pgcc* | pgf77* | pgf90* | pgf95*)
44939         # Portland Group compilers (*not* the Pentium gcc compiler,
44940         # which looks to be a dead project)
44941         lt_prog_compiler_wl_GCJ='-Wl,'
44942         lt_prog_compiler_pic_GCJ='-fpic'
44943         lt_prog_compiler_static_GCJ='-Bstatic'
44944         ;;
44945       ccc*)
44946         lt_prog_compiler_wl_GCJ='-Wl,'
44947         # All Alpha code is PIC.
44948         lt_prog_compiler_static_GCJ='-non_shared'
44949         ;;
44950       esac
44951       ;;
44952
44953     osf3* | osf4* | osf5*)
44954       lt_prog_compiler_wl_GCJ='-Wl,'
44955       # All OSF/1 code is PIC.
44956       lt_prog_compiler_static_GCJ='-non_shared'
44957       ;;
44958
44959     sco3.2v5*)
44960       lt_prog_compiler_pic_GCJ='-Kpic'
44961       lt_prog_compiler_static_GCJ='-dn'
44962       ;;
44963
44964     solaris*)
44965       lt_prog_compiler_pic_GCJ='-KPIC'
44966       lt_prog_compiler_static_GCJ='-Bstatic'
44967       case $cc_basename in
44968       f77* | f90* | f95*)
44969         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
44970       *)
44971         lt_prog_compiler_wl_GCJ='-Wl,';;
44972       esac
44973       ;;
44974
44975     sunos4*)
44976       lt_prog_compiler_wl_GCJ='-Qoption ld '
44977       lt_prog_compiler_pic_GCJ='-PIC'
44978       lt_prog_compiler_static_GCJ='-Bstatic'
44979       ;;
44980
44981     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
44982       lt_prog_compiler_wl_GCJ='-Wl,'
44983       lt_prog_compiler_pic_GCJ='-KPIC'
44984       lt_prog_compiler_static_GCJ='-Bstatic'
44985       ;;
44986
44987     sysv4*MP*)
44988       if test -d /usr/nec ;then
44989         lt_prog_compiler_pic_GCJ='-Kconform_pic'
44990         lt_prog_compiler_static_GCJ='-Bstatic'
44991       fi
44992       ;;
44993
44994     unicos*)
44995       lt_prog_compiler_wl_GCJ='-Wl,'
44996       lt_prog_compiler_can_build_shared_GCJ=no
44997       ;;
44998
44999     uts4*)
45000       lt_prog_compiler_pic_GCJ='-pic'
45001       lt_prog_compiler_static_GCJ='-Bstatic'
45002       ;;
45003
45004     *)
45005       lt_prog_compiler_can_build_shared_GCJ=no
45006       ;;
45007     esac
45008   fi
45009
45010 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
45011 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
45012
45013 #
45014 # Check to make sure the PIC flag actually works.
45015 #
45016 if test -n "$lt_prog_compiler_pic_GCJ"; then
45017
45018 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
45019 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
45020 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
45021   echo $ECHO_N "(cached) $ECHO_C" >&6
45022 else
45023   lt_prog_compiler_pic_works_GCJ=no
45024   ac_outfile=conftest.$ac_objext
45025    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
45026    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
45027    # Insert the option either (1) after the last *FLAGS variable, or
45028    # (2) before a word containing "conftest.", or (3) at the end.
45029    # Note that $ac_compile itself does not contain backslashes and begins
45030    # with a dollar sign (not a hyphen), so the echo should work correctly.
45031    # The option is referenced via a variable to avoid confusing sed.
45032    lt_compile=`echo "$ac_compile" | $SED \
45033    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
45034    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
45035    -e 's:$: $lt_compiler_flag:'`
45036    (eval echo "\"\$as_me:45036: $lt_compile\"" >&5)
45037    (eval "$lt_compile" 2>conftest.err)
45038    ac_status=$?
45039    cat conftest.err >&5
45040    echo "$as_me:45040: \$? = $ac_status" >&5
45041    if (exit $ac_status) && test -s "$ac_outfile"; then
45042      # The compiler can only warn and ignore the option if not recognized
45043      # So say no if there are warnings other than the usual output.
45044      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
45045      $SED '/^$/d' conftest.err >conftest.er2
45046      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
45047        lt_prog_compiler_pic_works_GCJ=yes
45048      fi
45049    fi
45050    $rm conftest*
45051
45052 fi
45053 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
45054 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
45055
45056 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
45057     case $lt_prog_compiler_pic_GCJ in
45058      "" | " "*) ;;
45059      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
45060      esac
45061 else
45062     lt_prog_compiler_pic_GCJ=
45063      lt_prog_compiler_can_build_shared_GCJ=no
45064 fi
45065
45066 fi
45067 case $host_os in
45068   # For platforms which do not support PIC, -DPIC is meaningless:
45069   *djgpp*)
45070     lt_prog_compiler_pic_GCJ=
45071     ;;
45072   *)
45073     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
45074     ;;
45075 esac
45076
45077 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
45078 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
45079 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
45080   echo $ECHO_N "(cached) $ECHO_C" >&6
45081 else
45082   lt_cv_prog_compiler_c_o_GCJ=no
45083    $rm -r conftest 2>/dev/null
45084    mkdir conftest
45085    cd conftest
45086    mkdir out
45087    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
45088
45089    lt_compiler_flag="-o out/conftest2.$ac_objext"
45090    # Insert the option either (1) after the last *FLAGS variable, or
45091    # (2) before a word containing "conftest.", or (3) at the end.
45092    # Note that $ac_compile itself does not contain backslashes and begins
45093    # with a dollar sign (not a hyphen), so the echo should work correctly.
45094    lt_compile=`echo "$ac_compile" | $SED \
45095    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
45096    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
45097    -e 's:$: $lt_compiler_flag:'`
45098    (eval echo "\"\$as_me:45098: $lt_compile\"" >&5)
45099    (eval "$lt_compile" 2>out/conftest.err)
45100    ac_status=$?
45101    cat out/conftest.err >&5
45102    echo "$as_me:45102: \$? = $ac_status" >&5
45103    if (exit $ac_status) && test -s out/conftest2.$ac_objext
45104    then
45105      # The compiler can only warn and ignore the option if not recognized
45106      # So say no if there are warnings
45107      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
45108      $SED '/^$/d' out/conftest.err >out/conftest.er2
45109      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
45110        lt_cv_prog_compiler_c_o_GCJ=yes
45111      fi
45112    fi
45113    chmod u+w . 2>&5
45114    $rm conftest*
45115    # SGI C++ compiler will create directory out/ii_files/ for
45116    # template instantiation
45117    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
45118    $rm out/* && rmdir out
45119    cd ..
45120    rmdir conftest
45121    $rm conftest*
45122
45123 fi
45124 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
45125 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
45126
45127
45128 hard_links="nottested"
45129 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
45130   # do not overwrite the value of need_locks provided by the user
45131   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
45132 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
45133   hard_links=yes
45134   $rm conftest*
45135   ln conftest.a conftest.b 2>/dev/null && hard_links=no
45136   touch conftest.a
45137   ln conftest.a conftest.b 2>&5 || hard_links=no
45138   ln conftest.a conftest.b 2>/dev/null && hard_links=no
45139   { echo "$as_me:$LINENO: result: $hard_links" >&5
45140 echo "${ECHO_T}$hard_links" >&6; }
45141   if test "$hard_links" = no; then
45142
45143     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
45144 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
45145
45146
45147     cat <<AAW_EOF >>config.warnings
45148 \`$CC' does not support \`-c -o', so \`make -j' may be unsafe
45149 AAW_EOF
45150
45151
45152     need_locks=warn
45153   fi
45154 else
45155   need_locks=no
45156 fi
45157
45158 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
45159 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
45160
45161   runpath_var=
45162   allow_undefined_flag_GCJ=
45163   enable_shared_with_static_runtimes_GCJ=no
45164   archive_cmds_GCJ=
45165   archive_expsym_cmds_GCJ=
45166   old_archive_From_new_cmds_GCJ=
45167   old_archive_from_expsyms_cmds_GCJ=
45168   export_dynamic_flag_spec_GCJ=
45169   whole_archive_flag_spec_GCJ=
45170   thread_safe_flag_spec_GCJ=
45171   hardcode_libdir_flag_spec_GCJ=
45172   hardcode_libdir_flag_spec_ld_GCJ=
45173   hardcode_libdir_separator_GCJ=
45174   hardcode_direct_GCJ=no
45175   hardcode_minus_L_GCJ=no
45176   hardcode_shlibpath_var_GCJ=unsupported
45177   link_all_deplibs_GCJ=unknown
45178   hardcode_automatic_GCJ=no
45179   module_cmds_GCJ=
45180   module_expsym_cmds_GCJ=
45181   always_export_symbols_GCJ=no
45182   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
45183   # include_expsyms should be a list of space-separated symbols to be *always*
45184   # included in the symbol list
45185   include_expsyms_GCJ=
45186   # exclude_expsyms can be an extended regexp of symbols to exclude
45187   # it will be wrapped by ` (' and `)$', so one must not match beginning or
45188   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
45189   # as well as any symbol that contains `d'.
45190   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
45191   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
45192   # platforms (ab)use it in PIC code, but their linkers get confused if
45193   # the symbol is explicitly referenced.  Since portable code cannot
45194   # rely on this symbol name, it's probably fine to never include it in
45195   # preloaded symbol tables.
45196   extract_expsyms_cmds=
45197   # Just being paranoid about ensuring that cc_basename is set.
45198   for cc_temp in $compiler""; do
45199   case $cc_temp in
45200     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
45201     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
45202     \-*) ;;
45203     *) break;;
45204   esac
45205 done
45206 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
45207
45208   case $host_os in
45209   cygwin* | mingw* | pw32*)
45210     # FIXME: the MSVC++ port hasn't been tested in a loooong time
45211     # When not using gcc, we currently assume that we are using
45212     # Microsoft Visual C++.
45213     if test "$GCC" != yes; then
45214       with_gnu_ld=no
45215     fi
45216     ;;
45217   openbsd*)
45218     with_gnu_ld=no
45219     ;;
45220   esac
45221
45222   ld_shlibs_GCJ=yes
45223   if test "$with_gnu_ld" = yes; then
45224     # If archive_cmds runs LD, not CC, wlarc should be empty
45225     wlarc='${wl}'
45226
45227     # Set some defaults for GNU ld with shared library support. These
45228     # are reset later if shared libraries are not supported. Putting them
45229     # here allows them to be overridden if necessary.
45230     runpath_var=LD_RUN_PATH
45231     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
45232     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
45233     # ancient GNU ld didn't support --whole-archive et. al.
45234     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
45235         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
45236       else
45237         whole_archive_flag_spec_GCJ=
45238     fi
45239     supports_anon_versioning=no
45240     case `$LD -v 2>/dev/null` in
45241       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
45242       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
45243       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
45244       *\ 2.11.*) ;; # other 2.11 versions
45245       *) supports_anon_versioning=yes ;;
45246     esac
45247
45248     # See if GNU ld supports shared libraries.
45249     case $host_os in
45250     aix3* | aix4* | aix5*)
45251       # On AIX/PPC, the GNU linker is very broken
45252       if test "$host_cpu" != ia64; then
45253         ld_shlibs_GCJ=no
45254         cat <<EOF 1>&2
45255
45256 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
45257 *** to be unable to reliably create shared libraries on AIX.
45258 *** Therefore, libtool is disabling shared libraries support.  If you
45259 *** really care for shared libraries, you may want to modify your PATH
45260 *** so that a non-GNU linker is found, and then restart.
45261
45262 EOF
45263       fi
45264       ;;
45265
45266     amigaos*)
45267       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)'
45268       hardcode_libdir_flag_spec_GCJ='-L$libdir'
45269       hardcode_minus_L_GCJ=yes
45270
45271       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
45272       # that the semantics of dynamic libraries on AmigaOS, at least up
45273       # to version 4, is to share data among multiple programs linked
45274       # with the same dynamic library.  Since this doesn't match the
45275       # behavior of shared libraries on other platforms, we can't use
45276       # them.
45277       ld_shlibs_GCJ=no
45278       ;;
45279
45280     beos*)
45281       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
45282         allow_undefined_flag_GCJ=unsupported
45283         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
45284         # support --undefined.  This deserves some investigation.  FIXME
45285         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
45286       else
45287         ld_shlibs_GCJ=no
45288       fi
45289       ;;
45290
45291     cygwin* | mingw* | pw32*)
45292       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
45293       # as there is no search path for DLLs.
45294       hardcode_libdir_flag_spec_GCJ='-L$libdir'
45295       allow_undefined_flag_GCJ=unsupported
45296       always_export_symbols_GCJ=no
45297       enable_shared_with_static_runtimes_GCJ=yes
45298       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
45299
45300       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
45301         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
45302         # If the export-symbols file already is a .def file (1st line
45303         # is EXPORTS), use it as is; otherwise, prepend...
45304         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
45305           cp $export_symbols $output_objdir/$soname.def;
45306         else
45307           echo EXPORTS > $output_objdir/$soname.def;
45308           cat $export_symbols >> $output_objdir/$soname.def;
45309         fi~
45310         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
45311       else
45312         ld_shlibs_GCJ=no
45313       fi
45314       ;;
45315
45316     linux*)
45317       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
45318         tmp_addflag=
45319         case $cc_basename,$host_cpu in
45320         pgcc*)                          # Portland Group C compiler
45321           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'
45322           tmp_addflag=' $pic_flag'
45323           ;;
45324         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
45325           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'
45326           tmp_addflag=' $pic_flag -Mnomain' ;;
45327         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
45328           tmp_addflag=' -i_dynamic' ;;
45329         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
45330           tmp_addflag=' -i_dynamic -nofor_main' ;;
45331         ifc* | ifort*)                  # Intel Fortran compiler
45332           tmp_addflag=' -nofor_main' ;;
45333         esac
45334         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
45335
45336         if test $supports_anon_versioning = yes; then
45337           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
45338   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
45339   $echo "local: *; };" >> $output_objdir/$libname.ver~
45340           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
45341         fi
45342       else
45343         ld_shlibs_GCJ=no
45344       fi
45345       ;;
45346
45347     netbsd*)
45348       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
45349         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
45350         wlarc=
45351       else
45352         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
45353         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
45354       fi
45355       ;;
45356
45357     solaris* | sysv5*)
45358       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
45359         ld_shlibs_GCJ=no
45360         cat <<EOF 1>&2
45361
45362 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
45363 *** create shared libraries on Solaris systems.  Therefore, libtool
45364 *** is disabling shared libraries support.  We urge you to upgrade GNU
45365 *** binutils to release 2.9.1 or newer.  Another option is to modify
45366 *** your PATH or compiler configuration so that the native linker is
45367 *** used, and then restart.
45368
45369 EOF
45370       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
45371         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
45372         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
45373       else
45374         ld_shlibs_GCJ=no
45375       fi
45376       ;;
45377
45378     sunos4*)
45379       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
45380       wlarc=
45381       hardcode_direct_GCJ=yes
45382       hardcode_shlibpath_var_GCJ=no
45383       ;;
45384
45385     *)
45386       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
45387         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
45388         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
45389       else
45390         ld_shlibs_GCJ=no
45391       fi
45392       ;;
45393     esac
45394
45395     if test "$ld_shlibs_GCJ" = no; then
45396       runpath_var=
45397       hardcode_libdir_flag_spec_GCJ=
45398       export_dynamic_flag_spec_GCJ=
45399       whole_archive_flag_spec_GCJ=
45400     fi
45401   else
45402     # PORTME fill in a description of your system's linker (not GNU ld)
45403     case $host_os in
45404     aix3*)
45405       allow_undefined_flag_GCJ=unsupported
45406       always_export_symbols_GCJ=yes
45407       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'
45408       # Note: this linker hardcodes the directories in LIBPATH if there
45409       # are no directories specified by -L.
45410       hardcode_minus_L_GCJ=yes
45411       if test "$GCC" = yes && test -z "$link_static_flag"; then
45412         # Neither direct hardcoding nor static linking is supported with a
45413         # broken collect2.
45414         hardcode_direct_GCJ=unsupported
45415       fi
45416       ;;
45417
45418     aix4* | aix5*)
45419       if test "$host_cpu" = ia64; then
45420         # On IA64, the linker does run time linking by default, so we don't
45421         # have to do anything special.
45422         aix_use_runtimelinking=no
45423         exp_sym_flag='-Bexport'
45424         no_entry_flag=""
45425       else
45426         # If we're using GNU nm, then we don't want the "-C" option.
45427         # -C means demangle to AIX nm, but means don't demangle with GNU nm
45428         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
45429           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'
45430         else
45431           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'
45432         fi
45433         aix_use_runtimelinking=no
45434
45435         # Test if we are trying to use run time linking or normal
45436         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
45437         # need to do runtime linking.
45438         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
45439           for ld_flag in $LDFLAGS; do
45440           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
45441             aix_use_runtimelinking=yes
45442             break
45443           fi
45444           done
45445         esac
45446
45447         exp_sym_flag='-bexport'
45448         no_entry_flag='-bnoentry'
45449       fi
45450
45451       # When large executables or shared objects are built, AIX ld can
45452       # have problems creating the table of contents.  If linking a library
45453       # or program results in "error TOC overflow" add -mminimal-toc to
45454       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
45455       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
45456
45457       archive_cmds_GCJ=''
45458       hardcode_direct_GCJ=yes
45459       hardcode_libdir_separator_GCJ=':'
45460       link_all_deplibs_GCJ=yes
45461
45462       if test "$GCC" = yes; then
45463         case $host_os in aix4.[012]|aix4.[012].*)
45464         # We only want to do this on AIX 4.2 and lower, the check
45465         # below for broken collect2 doesn't work under 4.3+
45466           collect2name=`${CC} -print-prog-name=collect2`
45467           if test -f "$collect2name" && \
45468            strings "$collect2name" | grep resolve_lib_name >/dev/null
45469           then
45470           # We have reworked collect2
45471           hardcode_direct_GCJ=yes
45472           else
45473           # We have old collect2
45474           hardcode_direct_GCJ=unsupported
45475           # It fails to find uninstalled libraries when the uninstalled
45476           # path is not listed in the libpath.  Setting hardcode_minus_L
45477           # to unsupported forces relinking
45478           hardcode_minus_L_GCJ=yes
45479           hardcode_libdir_flag_spec_GCJ='-L$libdir'
45480           hardcode_libdir_separator_GCJ=
45481           fi
45482         esac
45483         shared_flag='-shared'
45484         if test "$aix_use_runtimelinking" = yes; then
45485           shared_flag="$shared_flag "'${wl}-G'
45486         fi
45487       else
45488         # not using gcc
45489         if test "$host_cpu" = ia64; then
45490         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
45491         # chokes on -Wl,-G. The following line is correct:
45492           shared_flag='-G'
45493         else
45494         if test "$aix_use_runtimelinking" = yes; then
45495             shared_flag='${wl}-G'
45496           else
45497             shared_flag='${wl}-bM:SRE'
45498         fi
45499         fi
45500       fi
45501
45502       # It seems that -bexpall does not export symbols beginning with
45503       # underscore (_), so it is better to generate a list of symbols to export.
45504       always_export_symbols_GCJ=yes
45505       if test "$aix_use_runtimelinking" = yes; then
45506         # Warning - without using the other runtime loading flags (-brtl),
45507         # -berok will link without error, but may produce a broken library.
45508         allow_undefined_flag_GCJ='-berok'
45509        # Determine the default libpath from the value encoded in an empty executable.
45510        cat >conftest.$ac_ext <<_ACEOF
45511 /* confdefs.h.  */
45512 _ACEOF
45513 cat confdefs.h >>conftest.$ac_ext
45514 cat >>conftest.$ac_ext <<_ACEOF
45515 /* end confdefs.h.  */
45516
45517 int
45518 main ()
45519 {
45520
45521   ;
45522   return 0;
45523 }
45524 _ACEOF
45525 rm -f conftest.$ac_objext conftest$ac_exeext
45526 if { (ac_try="$ac_link"
45527 case "(($ac_try" in
45528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45529   *) ac_try_echo=$ac_try;;
45530 esac
45531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45532   (eval "$ac_link") 2>conftest.er1
45533   ac_status=$?
45534   grep -v '^ *+' conftest.er1 >conftest.err
45535   rm -f conftest.er1
45536   cat conftest.err >&5
45537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45538   (exit $ac_status); } && {
45539          test -z "$ac_c_werror_flag" ||
45540          test ! -s conftest.err
45541        } && test -s conftest$ac_exeext &&
45542        $as_test_x conftest$ac_exeext; then
45543
45544 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
45545 }'`
45546 # Check for a 64-bit object if we didn't find anything.
45547 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; }
45548 }'`; fi
45549 else
45550   echo "$as_me: failed program was:" >&5
45551 sed 's/^/| /' conftest.$ac_ext >&5
45552
45553
45554 fi
45555
45556 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45557       conftest$ac_exeext conftest.$ac_ext
45558 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
45559
45560        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
45561         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"
45562        else
45563         if test "$host_cpu" = ia64; then
45564           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
45565           allow_undefined_flag_GCJ="-z nodefs"
45566           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"
45567         else
45568          # Determine the default libpath from the value encoded in an empty executable.
45569          cat >conftest.$ac_ext <<_ACEOF
45570 /* confdefs.h.  */
45571 _ACEOF
45572 cat confdefs.h >>conftest.$ac_ext
45573 cat >>conftest.$ac_ext <<_ACEOF
45574 /* end confdefs.h.  */
45575
45576 int
45577 main ()
45578 {
45579
45580   ;
45581   return 0;
45582 }
45583 _ACEOF
45584 rm -f conftest.$ac_objext conftest$ac_exeext
45585 if { (ac_try="$ac_link"
45586 case "(($ac_try" in
45587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45588   *) ac_try_echo=$ac_try;;
45589 esac
45590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45591   (eval "$ac_link") 2>conftest.er1
45592   ac_status=$?
45593   grep -v '^ *+' conftest.er1 >conftest.err
45594   rm -f conftest.er1
45595   cat conftest.err >&5
45596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45597   (exit $ac_status); } && {
45598          test -z "$ac_c_werror_flag" ||
45599          test ! -s conftest.err
45600        } && test -s conftest$ac_exeext &&
45601        $as_test_x conftest$ac_exeext; then
45602
45603 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
45604 }'`
45605 # Check for a 64-bit object if we didn't find anything.
45606 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; }
45607 }'`; fi
45608 else
45609   echo "$as_me: failed program was:" >&5
45610 sed 's/^/| /' conftest.$ac_ext >&5
45611
45612
45613 fi
45614
45615 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45616       conftest$ac_exeext conftest.$ac_ext
45617 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
45618
45619          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
45620           # Warning - without using the other run time loading flags,
45621           # -berok will link without error, but may produce a broken library.
45622           no_undefined_flag_GCJ=' ${wl}-bernotok'
45623           allow_undefined_flag_GCJ=' ${wl}-berok'
45624           # -bexpall does not export symbols beginning with underscore (_)
45625           always_export_symbols_GCJ=yes
45626           # Exported symbols can be pulled into shared objects from archives
45627           whole_archive_flag_spec_GCJ=' '
45628           archive_cmds_need_lc_GCJ=yes
45629           # This is similar to how AIX traditionally builds its shared libraries.
45630           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'
45631         fi
45632       fi
45633       ;;
45634
45635     amigaos*)
45636       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)'
45637       hardcode_libdir_flag_spec_GCJ='-L$libdir'
45638       hardcode_minus_L_GCJ=yes
45639       # see comment about different semantics on the GNU ld section
45640       ld_shlibs_GCJ=no
45641       ;;
45642
45643     bsdi[45]*)
45644       export_dynamic_flag_spec_GCJ=-rdynamic
45645       ;;
45646
45647     cygwin* | mingw* | pw32*)
45648       # When not using gcc, we currently assume that we are using
45649       # Microsoft Visual C++.
45650       # hardcode_libdir_flag_spec is actually meaningless, as there is
45651       # no search path for DLLs.
45652       hardcode_libdir_flag_spec_GCJ=' '
45653       allow_undefined_flag_GCJ=unsupported
45654       # Tell ltmain to make .lib files, not .a files.
45655       libext=lib
45656       # Tell ltmain to make .dll files, not .so files.
45657       shrext_cmds=".dll"
45658       # FIXME: Setting linknames here is a bad hack.
45659       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
45660       # The linker will automatically build a .lib file if we build a DLL.
45661       old_archive_From_new_cmds_GCJ='true'
45662       # FIXME: Should let the user specify the lib program.
45663       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
45664       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
45665       enable_shared_with_static_runtimes_GCJ=yes
45666       ;;
45667
45668     darwin* | rhapsody*)
45669       case $host_os in
45670         rhapsody* | darwin1.[012])
45671          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
45672          ;;
45673        *) # Darwin 1.3 on
45674          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
45675            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
45676          else
45677            case ${MACOSX_DEPLOYMENT_TARGET} in
45678              10.[012])
45679                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
45680                ;;
45681              10.*)
45682                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
45683                ;;
45684            esac
45685          fi
45686          ;;
45687       esac
45688       archive_cmds_need_lc_GCJ=no
45689       hardcode_direct_GCJ=no
45690       hardcode_automatic_GCJ=yes
45691       hardcode_shlibpath_var_GCJ=unsupported
45692       whole_archive_flag_spec_GCJ=''
45693       link_all_deplibs_GCJ=yes
45694     if test "$GCC" = yes ; then
45695         output_verbose_link_cmd='echo'
45696         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
45697       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
45698       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
45699       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}'
45700       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}'
45701     else
45702       case $cc_basename in
45703         xlc*)
45704          output_verbose_link_cmd='echo'
45705          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
45706          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
45707           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
45708          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}'
45709           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}'
45710           ;;
45711        *)
45712          ld_shlibs_GCJ=no
45713           ;;
45714       esac
45715     fi
45716       ;;
45717
45718     dgux*)
45719       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
45720       hardcode_libdir_flag_spec_GCJ='-L$libdir'
45721       hardcode_shlibpath_var_GCJ=no
45722       ;;
45723
45724     freebsd1*)
45725       ld_shlibs_GCJ=no
45726       ;;
45727
45728     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
45729     # support.  Future versions do this automatically, but an explicit c++rt0.o
45730     # does not break anything, and helps significantly (at the cost of a little
45731     # extra space).
45732     freebsd2.2*)
45733       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
45734       hardcode_libdir_flag_spec_GCJ='-R$libdir'
45735       hardcode_direct_GCJ=yes
45736       hardcode_shlibpath_var_GCJ=no
45737       ;;
45738
45739     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
45740     freebsd2*)
45741       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
45742       hardcode_direct_GCJ=yes
45743       hardcode_minus_L_GCJ=yes
45744       hardcode_shlibpath_var_GCJ=no
45745       ;;
45746
45747     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
45748     freebsd* | kfreebsd*-gnu | dragonfly*)
45749       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
45750       hardcode_libdir_flag_spec_GCJ='-R$libdir'
45751       hardcode_direct_GCJ=yes
45752       hardcode_shlibpath_var_GCJ=no
45753       ;;
45754
45755     hpux9*)
45756       if test "$GCC" = yes; then
45757         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'
45758       else
45759         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'
45760       fi
45761       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
45762       hardcode_libdir_separator_GCJ=:
45763       hardcode_direct_GCJ=yes
45764
45765       # hardcode_minus_L: Not really in the search PATH,
45766       # but as the default location of the library.
45767       hardcode_minus_L_GCJ=yes
45768       export_dynamic_flag_spec_GCJ='${wl}-E'
45769       ;;
45770
45771     hpux10* | hpux11*)
45772       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
45773         case $host_cpu in
45774         hppa*64*|ia64*)
45775           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
45776           ;;
45777         *)
45778           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
45779           ;;
45780         esac
45781       else
45782         case $host_cpu in
45783         hppa*64*|ia64*)
45784           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
45785           ;;
45786         *)
45787           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
45788           ;;
45789         esac
45790       fi
45791       if test "$with_gnu_ld" = no; then
45792         case $host_cpu in
45793         hppa*64*)
45794           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
45795           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
45796           hardcode_libdir_separator_GCJ=:
45797           hardcode_direct_GCJ=no
45798           hardcode_shlibpath_var_GCJ=no
45799           ;;
45800         ia64*)
45801           hardcode_libdir_flag_spec_GCJ='-L$libdir'
45802           hardcode_direct_GCJ=no
45803           hardcode_shlibpath_var_GCJ=no
45804
45805           # hardcode_minus_L: Not really in the search PATH,
45806           # but as the default location of the library.
45807           hardcode_minus_L_GCJ=yes
45808           ;;
45809         *)
45810           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
45811           hardcode_libdir_separator_GCJ=:
45812           hardcode_direct_GCJ=yes
45813           export_dynamic_flag_spec_GCJ='${wl}-E'
45814
45815           # hardcode_minus_L: Not really in the search PATH,
45816           # but as the default location of the library.
45817           hardcode_minus_L_GCJ=yes
45818           ;;
45819         esac
45820       fi
45821       ;;
45822
45823     irix5* | irix6* | nonstopux*)
45824       if test "$GCC" = yes; then
45825         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'
45826       else
45827         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'
45828         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
45829       fi
45830       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
45831       hardcode_libdir_separator_GCJ=:
45832       link_all_deplibs_GCJ=yes
45833       ;;
45834
45835     netbsd*)
45836       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
45837         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
45838       else
45839         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
45840       fi
45841       hardcode_libdir_flag_spec_GCJ='-R$libdir'
45842       hardcode_direct_GCJ=yes
45843       hardcode_shlibpath_var_GCJ=no
45844       ;;
45845
45846     newsos6)
45847       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
45848       hardcode_direct_GCJ=yes
45849       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
45850       hardcode_libdir_separator_GCJ=:
45851       hardcode_shlibpath_var_GCJ=no
45852       ;;
45853
45854     openbsd*)
45855       hardcode_direct_GCJ=yes
45856       hardcode_shlibpath_var_GCJ=no
45857       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
45858         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
45859         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
45860         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
45861         export_dynamic_flag_spec_GCJ='${wl}-E'
45862       else
45863        case $host_os in
45864          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
45865            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
45866            hardcode_libdir_flag_spec_GCJ='-R$libdir'
45867            ;;
45868          *)
45869            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
45870            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
45871            ;;
45872        esac
45873       fi
45874       ;;
45875
45876     os2*)
45877       hardcode_libdir_flag_spec_GCJ='-L$libdir'
45878       hardcode_minus_L_GCJ=yes
45879       allow_undefined_flag_GCJ=unsupported
45880       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'
45881       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
45882       ;;
45883
45884     osf3*)
45885       if test "$GCC" = yes; then
45886         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
45887         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'
45888       else
45889         allow_undefined_flag_GCJ=' -expect_unresolved \*'
45890         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'
45891       fi
45892       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
45893       hardcode_libdir_separator_GCJ=:
45894       ;;
45895
45896     osf4* | osf5*)      # as osf3* with the addition of -msym flag
45897       if test "$GCC" = yes; then
45898         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
45899         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'
45900         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
45901       else
45902         allow_undefined_flag_GCJ=' -expect_unresolved \*'
45903         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'
45904         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~
45905         $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'
45906
45907         # Both c and cxx compiler support -rpath directly
45908         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
45909       fi
45910       hardcode_libdir_separator_GCJ=:
45911       ;;
45912
45913     sco3.2v5*)
45914       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
45915       hardcode_shlibpath_var_GCJ=no
45916       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
45917       runpath_var=LD_RUN_PATH
45918       hardcode_runpath_var=yes
45919       ;;
45920
45921     solaris*)
45922       no_undefined_flag_GCJ=' -z text'
45923       if test "x$archive_cmds" = "x"; then
45924         if test "$GCC" = yes; then
45925           wlarc='${wl}'
45926           if $CC -v --help 2>/dev/null | grep -- -shared  > /dev/null 2> /dev/null; then
45927             archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
45928             archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
45929             $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
45930           else
45931             archive_cmds_GCJ='$CC ${wl}-G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
45932             archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
45933             $CC ${wl}-G ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
45934           fi
45935         else
45936           wlarc=''
45937           lt_prog_compiler_static_GCJ='-static'
45938           archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
45939           archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
45940           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
45941           lt_prog_compiler_static_GCJ='-static'
45942         fi
45943       fi
45944       hardcode_libdir_flag_spec_GCJ='-R$libdir'
45945       hardcode_shlibpath_var_GCJ=no
45946       case $host_os in
45947       solaris2.[0-5] | solaris2.[0-5].*) ;;
45948       *)
45949         # The compiler driver will combine linker options so we
45950         # cannot just pass the convience library names through
45951         # without $wl, iff we do not link with $LD.
45952         # Luckily, gcc supports the same syntax we need for Sun Studio.
45953         # Supported since Solaris 2.6 (maybe 2.5.1?)
45954         case $wlarc in
45955         '')
45956           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
45957         *)
45958           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' ;;
45959         esac ;;
45960       esac
45961       link_all_deplibs_GCJ=yes
45962       ;;
45963
45964     sunos4*)
45965       if test "x$host_vendor" = xsequent; then
45966         # Use $CC to link under sequent, because it throws in some extra .o
45967         # files that make .init and .fini sections work.
45968         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
45969       else
45970         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
45971       fi
45972       hardcode_libdir_flag_spec_GCJ='-L$libdir'
45973       hardcode_direct_GCJ=yes
45974       hardcode_minus_L_GCJ=yes
45975       hardcode_shlibpath_var_GCJ=no
45976       ;;
45977
45978     sysv4)
45979       case $host_vendor in
45980         sni)
45981           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
45982           hardcode_direct_GCJ=yes # is this really true???
45983         ;;
45984         siemens)
45985           ## LD is ld it makes a PLAMLIB
45986           ## CC just makes a GrossModule.
45987           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
45988           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
45989           hardcode_direct_GCJ=no
45990         ;;
45991         motorola)
45992           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
45993           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
45994         ;;
45995       esac
45996       runpath_var='LD_RUN_PATH'
45997       hardcode_shlibpath_var_GCJ=no
45998       ;;
45999
46000     sysv4.3*)
46001       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
46002       hardcode_shlibpath_var_GCJ=no
46003       export_dynamic_flag_spec_GCJ='-Bexport'
46004       ;;
46005
46006     sysv4*MP*)
46007       if test -d /usr/nec; then
46008         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
46009         hardcode_shlibpath_var_GCJ=no
46010         runpath_var=LD_RUN_PATH
46011         hardcode_runpath_var=yes
46012         ld_shlibs_GCJ=yes
46013       fi
46014       ;;
46015
46016     sysv4.2uw2*)
46017       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
46018       hardcode_direct_GCJ=yes
46019       hardcode_minus_L_GCJ=no
46020       hardcode_shlibpath_var_GCJ=no
46021       hardcode_runpath_var=yes
46022       runpath_var=LD_RUN_PATH
46023       ;;
46024
46025    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
46026       no_undefined_flag_GCJ='${wl}-z ${wl}text'
46027       if test "$GCC" = yes; then
46028         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
46029       else
46030         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
46031       fi
46032       runpath_var='LD_RUN_PATH'
46033       hardcode_shlibpath_var_GCJ=no
46034       ;;
46035
46036     sysv5*)
46037       no_undefined_flag_GCJ=' -z text'
46038       # $CC -shared without GNU ld will not create a library from C++
46039       # object files and a static libstdc++, better avoid it by now
46040       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
46041       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
46042                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
46043       hardcode_libdir_flag_spec_GCJ=
46044       hardcode_shlibpath_var_GCJ=no
46045       runpath_var='LD_RUN_PATH'
46046       ;;
46047
46048     uts4*)
46049       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
46050       hardcode_libdir_flag_spec_GCJ='-L$libdir'
46051       hardcode_shlibpath_var_GCJ=no
46052       ;;
46053
46054     *)
46055       ld_shlibs_GCJ=no
46056       ;;
46057     esac
46058   fi
46059
46060 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
46061 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
46062 test "$ld_shlibs_GCJ" = no && can_build_shared=no
46063
46064 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
46065 if test "$GCC" = yes; then
46066   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
46067 fi
46068
46069 #
46070 # Do we need to explicitly link libc?
46071 #
46072 case "x$archive_cmds_need_lc_GCJ" in
46073 x|xyes)
46074   # Assume -lc should be added
46075   archive_cmds_need_lc_GCJ=yes
46076
46077   if test "$enable_shared" = yes && test "$GCC" = yes; then
46078     case $archive_cmds_GCJ in
46079     *'~'*)
46080       # FIXME: we may have to deal with multi-command sequences.
46081       ;;
46082     '$CC '*)
46083       # Test whether the compiler implicitly links with -lc since on some
46084       # systems, -lgcc has to come before -lc. If gcc already passes -lc
46085       # to ld, don't add -lc before -lgcc.
46086       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
46087 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
46088       $rm conftest*
46089       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
46090
46091       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46092   (eval $ac_compile) 2>&5
46093   ac_status=$?
46094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46095   (exit $ac_status); } 2>conftest.err; then
46096         soname=conftest
46097         lib=conftest
46098         libobjs=conftest.$ac_objext
46099         deplibs=
46100         wl=$lt_prog_compiler_wl_GCJ
46101         compiler_flags=-v
46102         linker_flags=-v
46103         verstring=
46104         output_objdir=.
46105         libname=conftest
46106         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
46107         allow_undefined_flag_GCJ=
46108         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
46109   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
46110   ac_status=$?
46111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46112   (exit $ac_status); }
46113         then
46114           archive_cmds_need_lc_GCJ=no
46115         else
46116           archive_cmds_need_lc_GCJ=yes
46117         fi
46118         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
46119       else
46120         cat conftest.err 1>&5
46121       fi
46122       $rm conftest*
46123       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
46124 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
46125       ;;
46126     esac
46127   fi
46128   ;;
46129 esac
46130
46131 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
46132 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
46133 library_names_spec=
46134 libname_spec='lib$name'
46135 soname_spec=
46136 shrext_cmds=".so"
46137 postinstall_cmds=
46138 postuninstall_cmds=
46139 finish_cmds=
46140 finish_eval=
46141 shlibpath_var=
46142 shlibpath_overrides_runpath=unknown
46143 version_type=none
46144 dynamic_linker="$host_os ld.so"
46145 sys_lib_dlsearch_path_spec="/lib /usr/lib"
46146 if test "$GCC" = yes; then
46147   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
46148   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
46149     # if the path contains ";" then we assume it to be the separator
46150     # otherwise default to the standard path separator (i.e. ":") - it is
46151     # assumed that no part of a normal pathname contains ";" but that should
46152     # okay in the real world where ";" in dirpaths is itself problematic.
46153     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
46154   else
46155     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
46156   fi
46157 else
46158   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
46159 fi
46160 need_lib_prefix=unknown
46161 hardcode_into_libs=no
46162
46163 # when you set need_version to no, make sure it does not cause -set_version
46164 # flags to be left without arguments
46165 need_version=unknown
46166
46167 case $host_os in
46168 aix3*)
46169   version_type=linux
46170   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
46171   shlibpath_var=LIBPATH
46172
46173   # AIX 3 has no versioning support, so we append a major version to the name.
46174   soname_spec='${libname}${release}${shared_ext}$major'
46175   ;;
46176
46177 aix4* | aix5*)
46178   version_type=linux
46179   need_lib_prefix=no
46180   need_version=no
46181   hardcode_into_libs=yes
46182   if test "$host_cpu" = ia64; then
46183     # AIX 5 supports IA64
46184     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
46185     shlibpath_var=LD_LIBRARY_PATH
46186   else
46187     # With GCC up to 2.95.x, collect2 would create an import file
46188     # for dependence libraries.  The import file would start with
46189     # the line `#! .'.  This would cause the generated library to
46190     # depend on `.', always an invalid library.  This was fixed in
46191     # development snapshots of GCC prior to 3.0.
46192     case $host_os in
46193       aix4 | aix4.[01] | aix4.[01].*)
46194       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
46195            echo ' yes '
46196            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
46197         :
46198       else
46199         can_build_shared=no
46200       fi
46201       ;;
46202     esac
46203     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
46204     # soname into executable. Probably we can add versioning support to
46205     # collect2, so additional links can be useful in future.
46206     if test "$aix_use_runtimelinking" = yes; then
46207       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
46208       # instead of lib<name>.a to let people know that these are not
46209       # typical AIX shared libraries.
46210       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
46211     else
46212       # We preserve .a as extension for shared libraries through AIX4.2
46213       # and later when we are not doing run time linking.
46214       library_names_spec='${libname}${release}.a $libname.a'
46215       soname_spec='${libname}${release}${shared_ext}$major'
46216     fi
46217     shlibpath_var=LIBPATH
46218   fi
46219   ;;
46220
46221 amigaos*)
46222   library_names_spec='$libname.ixlibrary $libname.a'
46223   # Create ${libname}_ixlibrary.a entries in /sys/libs.
46224   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'
46225   ;;
46226
46227 beos*)
46228   library_names_spec='${libname}${shared_ext}'
46229   dynamic_linker="$host_os ld.so"
46230   shlibpath_var=LIBRARY_PATH
46231   ;;
46232
46233 bsdi[45]*)
46234   version_type=linux
46235   need_version=no
46236   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
46237   soname_spec='${libname}${release}${shared_ext}$major'
46238   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
46239   shlibpath_var=LD_LIBRARY_PATH
46240   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
46241   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
46242   # the default ld.so.conf also contains /usr/contrib/lib and
46243   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
46244   # libtool to hard-code these into programs
46245   ;;
46246
46247 cygwin* | mingw* | pw32*)
46248   version_type=windows
46249   shrext_cmds=".dll"
46250   need_version=no
46251   need_lib_prefix=no
46252
46253   case $GCC,$host_os in
46254   yes,cygwin* | yes,mingw* | yes,pw32*)
46255     library_names_spec='$libname.dll.a'
46256     # DLL is installed to $(libdir)/../bin by postinstall_cmds
46257     postinstall_cmds='base_file=`basename \${file}`~
46258       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
46259       dldir=$destdir/`dirname \$dlpath`~
46260       test -d \$dldir || mkdir -p \$dldir~
46261       $install_prog $dir/$dlname \$dldir/$dlname~
46262       chmod a+x \$dldir/$dlname'
46263     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
46264       dlpath=$dir/\$dldll~
46265        $rm \$dlpath'
46266     shlibpath_overrides_runpath=yes
46267
46268     case $host_os in
46269     cygwin*)
46270       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
46271       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
46272       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
46273       ;;
46274     mingw*)
46275       # MinGW DLLs use traditional 'lib' prefix
46276       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
46277       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
46278       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
46279         # It is most probably a Windows format PATH printed by
46280         # mingw gcc, but we are running on Cygwin. Gcc prints its search
46281         # path with ; separators, and with drive letters. We can handle the
46282         # drive letters (cygwin fileutils understands them), so leave them,
46283         # especially as we might pass files found there to a mingw objdump,
46284         # which wouldn't understand a cygwinified path. Ahh.
46285         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
46286       else
46287         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
46288       fi
46289       ;;
46290     pw32*)
46291       # pw32 DLLs use 'pw' prefix rather than 'lib'
46292       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
46293       ;;
46294     esac
46295     ;;
46296
46297   *)
46298     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
46299     ;;
46300   esac
46301   dynamic_linker='Win32 ld.exe'
46302   # FIXME: first we should search . and the directory the executable is in
46303   shlibpath_var=PATH
46304   ;;
46305
46306 darwin* | rhapsody*)
46307   dynamic_linker="$host_os dyld"
46308   version_type=darwin
46309   need_lib_prefix=no
46310   need_version=no
46311   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
46312   soname_spec='${libname}${release}${major}$shared_ext'
46313   shlibpath_overrides_runpath=yes
46314   shlibpath_var=DYLD_LIBRARY_PATH
46315   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
46316   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
46317   if test "$GCC" = yes; then
46318     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"`
46319   else
46320     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
46321   fi
46322   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
46323   ;;
46324
46325 dgux*)
46326   version_type=linux
46327   need_lib_prefix=no
46328   need_version=no
46329   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
46330   soname_spec='${libname}${release}${shared_ext}$major'
46331   shlibpath_var=LD_LIBRARY_PATH
46332   ;;
46333
46334 freebsd1*)
46335   dynamic_linker=no
46336   ;;
46337
46338 kfreebsd*-gnu)
46339   version_type=linux
46340   need_lib_prefix=no
46341   need_version=no
46342   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
46343   soname_spec='${libname}${release}${shared_ext}$major'
46344   shlibpath_var=LD_LIBRARY_PATH
46345   shlibpath_overrides_runpath=no
46346   hardcode_into_libs=yes
46347   dynamic_linker='GNU ld.so'
46348   ;;
46349
46350 freebsd* | dragonfly*)
46351   # DragonFly does not have aout.  When/if they implement a new
46352   # versioning mechanism, adjust this.
46353   if test -x /usr/bin/objformat; then
46354     objformat=`/usr/bin/objformat`
46355   else
46356     case $host_os in
46357     freebsd[123]*) objformat=aout ;;
46358     *) objformat=elf ;;
46359     esac
46360   fi
46361   version_type=freebsd-$objformat
46362   case $version_type in
46363     freebsd-elf*)
46364       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
46365       need_version=no
46366       need_lib_prefix=no
46367       ;;
46368     freebsd-*)
46369       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
46370       need_version=yes
46371       ;;
46372   esac
46373   shlibpath_var=LD_LIBRARY_PATH
46374   case $host_os in
46375   freebsd2*)
46376     shlibpath_overrides_runpath=yes
46377     ;;
46378   freebsd3.[01]* | freebsdelf3.[01]*)
46379     shlibpath_overrides_runpath=yes
46380     hardcode_into_libs=yes
46381     ;;
46382   *) # from 3.2 on
46383     shlibpath_overrides_runpath=no
46384     hardcode_into_libs=yes
46385     ;;
46386   esac
46387   ;;
46388
46389 gnu*)
46390   version_type=linux
46391   need_lib_prefix=no
46392   need_version=no
46393   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
46394   soname_spec='${libname}${release}${shared_ext}$major'
46395   shlibpath_var=LD_LIBRARY_PATH
46396   hardcode_into_libs=yes
46397   ;;
46398
46399 hpux9* | hpux10* | hpux11*)
46400   # Give a soname corresponding to the major version so that dld.sl refuses to
46401   # link against other versions.
46402   version_type=sunos
46403   need_lib_prefix=no
46404   need_version=no
46405   case $host_cpu in
46406   ia64*)
46407     shrext_cmds='.so'
46408     hardcode_into_libs=yes
46409     dynamic_linker="$host_os dld.so"
46410     shlibpath_var=LD_LIBRARY_PATH
46411     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
46412     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
46413     soname_spec='${libname}${release}${shared_ext}$major'
46414     if test "X$HPUX_IA64_MODE" = X32; then
46415       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
46416     else
46417       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
46418     fi
46419     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
46420     ;;
46421    hppa*64*)
46422      shrext_cmds='.sl'
46423      hardcode_into_libs=yes
46424      dynamic_linker="$host_os dld.sl"
46425      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
46426      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
46427      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
46428      soname_spec='${libname}${release}${shared_ext}$major'
46429      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
46430      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
46431      ;;
46432    *)
46433     shrext_cmds='.sl'
46434     dynamic_linker="$host_os dld.sl"
46435     shlibpath_var=SHLIB_PATH
46436     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
46437     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
46438     soname_spec='${libname}${release}${shared_ext}$major'
46439     ;;
46440   esac
46441   # HP-UX runs *really* slowly unless shared libraries are mode 555.
46442   postinstall_cmds='chmod 555 $lib'
46443   ;;
46444
46445 irix5* | irix6* | nonstopux*)
46446   case $host_os in
46447     nonstopux*) version_type=nonstopux ;;
46448     *)
46449         if test "$lt_cv_prog_gnu_ld" = yes; then
46450                 version_type=linux
46451         else
46452                 version_type=irix
46453         fi ;;
46454   esac
46455   need_lib_prefix=no
46456   need_version=no
46457   soname_spec='${libname}${release}${shared_ext}$major'
46458   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
46459   case $host_os in
46460   irix5* | nonstopux*)
46461     libsuff= shlibsuff=
46462     ;;
46463   *)
46464     case $LD in # libtool.m4 will add one of these switches to LD
46465     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
46466       libsuff= shlibsuff= libmagic=32-bit;;
46467     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
46468       libsuff=32 shlibsuff=N32 libmagic=N32;;
46469     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
46470       libsuff=64 shlibsuff=64 libmagic=64-bit;;
46471     *) libsuff= shlibsuff= libmagic=never-match;;
46472     esac
46473     ;;
46474   esac
46475   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
46476   shlibpath_overrides_runpath=no
46477   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
46478   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
46479   hardcode_into_libs=yes
46480   ;;
46481
46482 # No shared lib support for Linux oldld, aout, or coff.
46483 linux*oldld* | linux*aout* | linux*coff*)
46484   dynamic_linker=no
46485   ;;
46486
46487 # This must be Linux ELF.
46488 linux*)
46489   version_type=linux
46490   need_lib_prefix=no
46491   need_version=no
46492   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
46493   soname_spec='${libname}${release}${shared_ext}$major'
46494   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
46495   shlibpath_var=LD_LIBRARY_PATH
46496   shlibpath_overrides_runpath=no
46497   # This implies no fast_install, which is unacceptable.
46498   # Some rework will be needed to allow for fast_install
46499   # before this can be enabled.
46500   hardcode_into_libs=yes
46501
46502   # Append ld.so.conf contents to the search path
46503   if test -f /etc/ld.so.conf; then
46504     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' ' '`
46505     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
46506   fi
46507
46508   # We used to test for /lib/ld.so.1 and disable shared libraries on
46509   # powerpc, because MkLinux only supported shared libraries with the
46510   # GNU dynamic linker.  Since this was broken with cross compilers,
46511   # most powerpc-linux boxes support dynamic linking these days and
46512   # people can always --disable-shared, the test was removed, and we
46513   # assume the GNU/Linux dynamic linker is in use.
46514   dynamic_linker='GNU/Linux ld.so'
46515   ;;
46516
46517 knetbsd*-gnu)
46518   version_type=linux
46519   need_lib_prefix=no
46520   need_version=no
46521   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
46522   soname_spec='${libname}${release}${shared_ext}$major'
46523   shlibpath_var=LD_LIBRARY_PATH
46524   shlibpath_overrides_runpath=no
46525   hardcode_into_libs=yes
46526   dynamic_linker='GNU ld.so'
46527   ;;
46528
46529 netbsd*)
46530   version_type=sunos
46531   need_lib_prefix=no
46532   need_version=no
46533   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
46534     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
46535     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
46536     dynamic_linker='NetBSD (a.out) ld.so'
46537   else
46538     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
46539     soname_spec='${libname}${release}${shared_ext}$major'
46540     dynamic_linker='NetBSD ld.elf_so'
46541   fi
46542   shlibpath_var=LD_LIBRARY_PATH
46543   shlibpath_overrides_runpath=yes
46544   hardcode_into_libs=yes
46545   ;;
46546
46547 newsos6)
46548   version_type=linux
46549   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
46550   shlibpath_var=LD_LIBRARY_PATH
46551   shlibpath_overrides_runpath=yes
46552   ;;
46553
46554 nto-qnx*)
46555   version_type=linux
46556   need_lib_prefix=no
46557   need_version=no
46558   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
46559   soname_spec='${libname}${release}${shared_ext}$major'
46560   shlibpath_var=LD_LIBRARY_PATH
46561   shlibpath_overrides_runpath=yes
46562   ;;
46563
46564 openbsd*)
46565   version_type=sunos
46566   need_lib_prefix=no
46567   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
46568   case $host_os in
46569     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
46570     *)                         need_version=no  ;;
46571   esac
46572   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
46573   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
46574   shlibpath_var=LD_LIBRARY_PATH
46575   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
46576     case $host_os in
46577       openbsd2.[89] | openbsd2.[89].*)
46578         shlibpath_overrides_runpath=no
46579         ;;
46580       *)
46581         shlibpath_overrides_runpath=yes
46582         ;;
46583       esac
46584   else
46585     shlibpath_overrides_runpath=yes
46586   fi
46587   ;;
46588
46589 os2*)
46590   libname_spec='$name'
46591   shrext_cmds=".dll"
46592   need_lib_prefix=no
46593   library_names_spec='$libname${shared_ext} $libname.a'
46594   dynamic_linker='OS/2 ld.exe'
46595   shlibpath_var=LIBPATH
46596   ;;
46597
46598 osf3* | osf4* | osf5*)
46599   version_type=osf
46600   need_lib_prefix=no
46601   need_version=no
46602   soname_spec='${libname}${release}${shared_ext}$major'
46603   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
46604   shlibpath_var=LD_LIBRARY_PATH
46605   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
46606   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
46607   ;;
46608
46609 sco3.2v5*)
46610   version_type=osf
46611   soname_spec='${libname}${release}${shared_ext}$major'
46612   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
46613   shlibpath_var=LD_LIBRARY_PATH
46614   ;;
46615
46616 solaris*)
46617   version_type=linux
46618   need_lib_prefix=no
46619   need_version=no
46620   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
46621   soname_spec='${libname}${release}${shared_ext}$major'
46622   shlibpath_var=LD_LIBRARY_PATH
46623   shlibpath_overrides_runpath=yes
46624   hardcode_into_libs=yes
46625   # ldd complains unless libraries are executable
46626   postinstall_cmds='chmod +x $lib'
46627   ;;
46628
46629 sunos4*)
46630   version_type=sunos
46631   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
46632   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
46633   shlibpath_var=LD_LIBRARY_PATH
46634   shlibpath_overrides_runpath=yes
46635   if test "$with_gnu_ld" = yes; then
46636     need_lib_prefix=no
46637   fi
46638   need_version=yes
46639   ;;
46640
46641 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
46642   version_type=linux
46643   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
46644   soname_spec='${libname}${release}${shared_ext}$major'
46645   shlibpath_var=LD_LIBRARY_PATH
46646   case $host_vendor in
46647     sni)
46648       shlibpath_overrides_runpath=no
46649       need_lib_prefix=no
46650       export_dynamic_flag_spec='${wl}-Blargedynsym'
46651       runpath_var=LD_RUN_PATH
46652       ;;
46653     siemens)
46654       need_lib_prefix=no
46655       ;;
46656     motorola)
46657       need_lib_prefix=no
46658       need_version=no
46659       shlibpath_overrides_runpath=no
46660       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
46661       ;;
46662   esac
46663   ;;
46664
46665 sysv4*MP*)
46666   if test -d /usr/nec ;then
46667     version_type=linux
46668     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
46669     soname_spec='$libname${shared_ext}.$major'
46670     shlibpath_var=LD_LIBRARY_PATH
46671   fi
46672   ;;
46673
46674 uts4*)
46675   version_type=linux
46676   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
46677   soname_spec='${libname}${release}${shared_ext}$major'
46678   shlibpath_var=LD_LIBRARY_PATH
46679   ;;
46680
46681 *)
46682   dynamic_linker=no
46683   ;;
46684 esac
46685 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
46686 echo "${ECHO_T}$dynamic_linker" >&6; }
46687 test "$dynamic_linker" = no && can_build_shared=no
46688
46689 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
46690 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
46691 hardcode_action_GCJ=
46692 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
46693    test -n "$runpath_var_GCJ" || \
46694    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
46695
46696   # We can hardcode non-existant directories.
46697   if test "$hardcode_direct_GCJ" != no &&
46698      # If the only mechanism to avoid hardcoding is shlibpath_var, we
46699      # have to relink, otherwise we might link with an installed library
46700      # when we should be linking with a yet-to-be-installed one
46701      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
46702      test "$hardcode_minus_L_GCJ" != no; then
46703     # Linking always hardcodes the temporary library directory.
46704     hardcode_action_GCJ=relink
46705   else
46706     # We can link without hardcoding, and we can hardcode nonexisting dirs.
46707     hardcode_action_GCJ=immediate
46708   fi
46709 else
46710   # We cannot hardcode anything, or else we can only hardcode existing
46711   # directories.
46712   hardcode_action_GCJ=unsupported
46713 fi
46714 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
46715 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
46716
46717 if test "$hardcode_action_GCJ" = relink; then
46718   # Fast installation is not supported
46719   enable_fast_install=no
46720 elif test "$shlibpath_overrides_runpath" = yes ||
46721      test "$enable_shared" = no; then
46722   # Fast installation is not necessary
46723   enable_fast_install=needless
46724 fi
46725
46726 striplib=
46727 old_striplib=
46728 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
46729 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
46730 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
46731   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
46732   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
46733   { echo "$as_me:$LINENO: result: yes" >&5
46734 echo "${ECHO_T}yes" >&6; }
46735 else
46736 # FIXME - insert some real tests, host_os isn't really good enough
46737   case $host_os in
46738    darwin*)
46739        if test -n "$STRIP" ; then
46740          striplib="$STRIP -x"
46741          { echo "$as_me:$LINENO: result: yes" >&5
46742 echo "${ECHO_T}yes" >&6; }
46743        else
46744   { echo "$as_me:$LINENO: result: no" >&5
46745 echo "${ECHO_T}no" >&6; }
46746 fi
46747        ;;
46748    *)
46749   { echo "$as_me:$LINENO: result: no" >&5
46750 echo "${ECHO_T}no" >&6; }
46751     ;;
46752   esac
46753 fi
46754
46755 if test "x$enable_dlopen" != xyes; then
46756   enable_dlopen=unknown
46757   enable_dlopen_self=unknown
46758   enable_dlopen_self_static=unknown
46759 else
46760   lt_cv_dlopen=no
46761   lt_cv_dlopen_libs=
46762
46763   case $host_os in
46764   beos*)
46765     lt_cv_dlopen="load_add_on"
46766     lt_cv_dlopen_libs=
46767     lt_cv_dlopen_self=yes
46768     ;;
46769
46770   mingw* | pw32*)
46771     lt_cv_dlopen="LoadLibrary"
46772     lt_cv_dlopen_libs=
46773    ;;
46774
46775   cygwin*)
46776     lt_cv_dlopen="dlopen"
46777     lt_cv_dlopen_libs=
46778    ;;
46779
46780   darwin*)
46781   # if libdl is installed we need to link against it
46782     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
46783 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
46784 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
46785   echo $ECHO_N "(cached) $ECHO_C" >&6
46786 else
46787   ac_check_lib_save_LIBS=$LIBS
46788 LIBS="-ldl  $LIBS"
46789 cat >conftest.$ac_ext <<_ACEOF
46790 /* confdefs.h.  */
46791 _ACEOF
46792 cat confdefs.h >>conftest.$ac_ext
46793 cat >>conftest.$ac_ext <<_ACEOF
46794 /* end confdefs.h.  */
46795
46796 /* Override any GCC internal prototype to avoid an error.
46797    Use char because int might match the return type of a GCC
46798    builtin and then its argument prototype would still apply.  */
46799 #ifdef __cplusplus
46800 extern "C"
46801 #endif
46802 char dlopen ();
46803 int
46804 main ()
46805 {
46806 return dlopen ();
46807   ;
46808   return 0;
46809 }
46810 _ACEOF
46811 rm -f conftest.$ac_objext conftest$ac_exeext
46812 if { (ac_try="$ac_link"
46813 case "(($ac_try" in
46814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46815   *) ac_try_echo=$ac_try;;
46816 esac
46817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46818   (eval "$ac_link") 2>conftest.er1
46819   ac_status=$?
46820   grep -v '^ *+' conftest.er1 >conftest.err
46821   rm -f conftest.er1
46822   cat conftest.err >&5
46823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46824   (exit $ac_status); } && {
46825          test -z "$ac_c_werror_flag" ||
46826          test ! -s conftest.err
46827        } && test -s conftest$ac_exeext &&
46828        $as_test_x conftest$ac_exeext; then
46829   ac_cv_lib_dl_dlopen=yes
46830 else
46831   echo "$as_me: failed program was:" >&5
46832 sed 's/^/| /' conftest.$ac_ext >&5
46833
46834         ac_cv_lib_dl_dlopen=no
46835 fi
46836
46837 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46838       conftest$ac_exeext conftest.$ac_ext
46839 LIBS=$ac_check_lib_save_LIBS
46840 fi
46841 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
46842 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
46843 if test $ac_cv_lib_dl_dlopen = yes; then
46844   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
46845 else
46846
46847     lt_cv_dlopen="dyld"
46848     lt_cv_dlopen_libs=
46849     lt_cv_dlopen_self=yes
46850
46851 fi
46852
46853    ;;
46854
46855   *)
46856     { echo "$as_me:$LINENO: checking for shl_load" >&5
46857 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
46858 if test "${ac_cv_func_shl_load+set}" = set; then
46859   echo $ECHO_N "(cached) $ECHO_C" >&6
46860 else
46861   cat >conftest.$ac_ext <<_ACEOF
46862 /* confdefs.h.  */
46863 _ACEOF
46864 cat confdefs.h >>conftest.$ac_ext
46865 cat >>conftest.$ac_ext <<_ACEOF
46866 /* end confdefs.h.  */
46867 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
46868    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46869 #define shl_load innocuous_shl_load
46870
46871 /* System header to define __stub macros and hopefully few prototypes,
46872     which can conflict with char shl_load (); below.
46873     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46874     <limits.h> exists even on freestanding compilers.  */
46875
46876 #ifdef __STDC__
46877 # include <limits.h>
46878 #else
46879 # include <assert.h>
46880 #endif
46881
46882 #undef shl_load
46883
46884 /* Override any GCC internal prototype to avoid an error.
46885    Use char because int might match the return type of a GCC
46886    builtin and then its argument prototype would still apply.  */
46887 #ifdef __cplusplus
46888 extern "C"
46889 #endif
46890 char shl_load ();
46891 /* The GNU C library defines this for functions which it implements
46892     to always fail with ENOSYS.  Some functions are actually named
46893     something starting with __ and the normal name is an alias.  */
46894 #if defined __stub_shl_load || defined __stub___shl_load
46895 choke me
46896 #endif
46897
46898 int
46899 main ()
46900 {
46901 return shl_load ();
46902   ;
46903   return 0;
46904 }
46905 _ACEOF
46906 rm -f conftest.$ac_objext conftest$ac_exeext
46907 if { (ac_try="$ac_link"
46908 case "(($ac_try" in
46909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46910   *) ac_try_echo=$ac_try;;
46911 esac
46912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46913   (eval "$ac_link") 2>conftest.er1
46914   ac_status=$?
46915   grep -v '^ *+' conftest.er1 >conftest.err
46916   rm -f conftest.er1
46917   cat conftest.err >&5
46918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46919   (exit $ac_status); } && {
46920          test -z "$ac_c_werror_flag" ||
46921          test ! -s conftest.err
46922        } && test -s conftest$ac_exeext &&
46923        $as_test_x conftest$ac_exeext; then
46924   ac_cv_func_shl_load=yes
46925 else
46926   echo "$as_me: failed program was:" >&5
46927 sed 's/^/| /' conftest.$ac_ext >&5
46928
46929         ac_cv_func_shl_load=no
46930 fi
46931
46932 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46933       conftest$ac_exeext conftest.$ac_ext
46934 fi
46935 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
46936 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
46937 if test $ac_cv_func_shl_load = yes; then
46938   lt_cv_dlopen="shl_load"
46939 else
46940   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
46941 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
46942 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
46943   echo $ECHO_N "(cached) $ECHO_C" >&6
46944 else
46945   ac_check_lib_save_LIBS=$LIBS
46946 LIBS="-ldld  $LIBS"
46947 cat >conftest.$ac_ext <<_ACEOF
46948 /* confdefs.h.  */
46949 _ACEOF
46950 cat confdefs.h >>conftest.$ac_ext
46951 cat >>conftest.$ac_ext <<_ACEOF
46952 /* end confdefs.h.  */
46953
46954 /* Override any GCC internal prototype to avoid an error.
46955    Use char because int might match the return type of a GCC
46956    builtin and then its argument prototype would still apply.  */
46957 #ifdef __cplusplus
46958 extern "C"
46959 #endif
46960 char shl_load ();
46961 int
46962 main ()
46963 {
46964 return shl_load ();
46965   ;
46966   return 0;
46967 }
46968 _ACEOF
46969 rm -f conftest.$ac_objext conftest$ac_exeext
46970 if { (ac_try="$ac_link"
46971 case "(($ac_try" in
46972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46973   *) ac_try_echo=$ac_try;;
46974 esac
46975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46976   (eval "$ac_link") 2>conftest.er1
46977   ac_status=$?
46978   grep -v '^ *+' conftest.er1 >conftest.err
46979   rm -f conftest.er1
46980   cat conftest.err >&5
46981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46982   (exit $ac_status); } && {
46983          test -z "$ac_c_werror_flag" ||
46984          test ! -s conftest.err
46985        } && test -s conftest$ac_exeext &&
46986        $as_test_x conftest$ac_exeext; then
46987   ac_cv_lib_dld_shl_load=yes
46988 else
46989   echo "$as_me: failed program was:" >&5
46990 sed 's/^/| /' conftest.$ac_ext >&5
46991
46992         ac_cv_lib_dld_shl_load=no
46993 fi
46994
46995 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46996       conftest$ac_exeext conftest.$ac_ext
46997 LIBS=$ac_check_lib_save_LIBS
46998 fi
46999 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
47000 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
47001 if test $ac_cv_lib_dld_shl_load = yes; then
47002   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
47003 else
47004   { echo "$as_me:$LINENO: checking for dlopen" >&5
47005 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
47006 if test "${ac_cv_func_dlopen+set}" = set; then
47007   echo $ECHO_N "(cached) $ECHO_C" >&6
47008 else
47009   cat >conftest.$ac_ext <<_ACEOF
47010 /* confdefs.h.  */
47011 _ACEOF
47012 cat confdefs.h >>conftest.$ac_ext
47013 cat >>conftest.$ac_ext <<_ACEOF
47014 /* end confdefs.h.  */
47015 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
47016    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
47017 #define dlopen innocuous_dlopen
47018
47019 /* System header to define __stub macros and hopefully few prototypes,
47020     which can conflict with char dlopen (); below.
47021     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47022     <limits.h> exists even on freestanding compilers.  */
47023
47024 #ifdef __STDC__
47025 # include <limits.h>
47026 #else
47027 # include <assert.h>
47028 #endif
47029
47030 #undef dlopen
47031
47032 /* Override any GCC internal prototype to avoid an error.
47033    Use char because int might match the return type of a GCC
47034    builtin and then its argument prototype would still apply.  */
47035 #ifdef __cplusplus
47036 extern "C"
47037 #endif
47038 char dlopen ();
47039 /* The GNU C library defines this for functions which it implements
47040     to always fail with ENOSYS.  Some functions are actually named
47041     something starting with __ and the normal name is an alias.  */
47042 #if defined __stub_dlopen || defined __stub___dlopen
47043 choke me
47044 #endif
47045
47046 int
47047 main ()
47048 {
47049 return dlopen ();
47050   ;
47051   return 0;
47052 }
47053 _ACEOF
47054 rm -f conftest.$ac_objext conftest$ac_exeext
47055 if { (ac_try="$ac_link"
47056 case "(($ac_try" in
47057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47058   *) ac_try_echo=$ac_try;;
47059 esac
47060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47061   (eval "$ac_link") 2>conftest.er1
47062   ac_status=$?
47063   grep -v '^ *+' conftest.er1 >conftest.err
47064   rm -f conftest.er1
47065   cat conftest.err >&5
47066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47067   (exit $ac_status); } && {
47068          test -z "$ac_c_werror_flag" ||
47069          test ! -s conftest.err
47070        } && test -s conftest$ac_exeext &&
47071        $as_test_x conftest$ac_exeext; then
47072   ac_cv_func_dlopen=yes
47073 else
47074   echo "$as_me: failed program was:" >&5
47075 sed 's/^/| /' conftest.$ac_ext >&5
47076
47077         ac_cv_func_dlopen=no
47078 fi
47079
47080 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
47081       conftest$ac_exeext conftest.$ac_ext
47082 fi
47083 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
47084 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
47085 if test $ac_cv_func_dlopen = yes; then
47086   lt_cv_dlopen="dlopen"
47087 else
47088   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
47089 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
47090 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
47091   echo $ECHO_N "(cached) $ECHO_C" >&6
47092 else
47093   ac_check_lib_save_LIBS=$LIBS
47094 LIBS="-ldl  $LIBS"
47095 cat >conftest.$ac_ext <<_ACEOF
47096 /* confdefs.h.  */
47097 _ACEOF
47098 cat confdefs.h >>conftest.$ac_ext
47099 cat >>conftest.$ac_ext <<_ACEOF
47100 /* end confdefs.h.  */
47101
47102 /* Override any GCC internal prototype to avoid an error.
47103    Use char because int might match the return type of a GCC
47104    builtin and then its argument prototype would still apply.  */
47105 #ifdef __cplusplus
47106 extern "C"
47107 #endif
47108 char dlopen ();
47109 int
47110 main ()
47111 {
47112 return dlopen ();
47113   ;
47114   return 0;
47115 }
47116 _ACEOF
47117 rm -f conftest.$ac_objext conftest$ac_exeext
47118 if { (ac_try="$ac_link"
47119 case "(($ac_try" in
47120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47121   *) ac_try_echo=$ac_try;;
47122 esac
47123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47124   (eval "$ac_link") 2>conftest.er1
47125   ac_status=$?
47126   grep -v '^ *+' conftest.er1 >conftest.err
47127   rm -f conftest.er1
47128   cat conftest.err >&5
47129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47130   (exit $ac_status); } && {
47131          test -z "$ac_c_werror_flag" ||
47132          test ! -s conftest.err
47133        } && test -s conftest$ac_exeext &&
47134        $as_test_x conftest$ac_exeext; then
47135   ac_cv_lib_dl_dlopen=yes
47136 else
47137   echo "$as_me: failed program was:" >&5
47138 sed 's/^/| /' conftest.$ac_ext >&5
47139
47140         ac_cv_lib_dl_dlopen=no
47141 fi
47142
47143 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
47144       conftest$ac_exeext conftest.$ac_ext
47145 LIBS=$ac_check_lib_save_LIBS
47146 fi
47147 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
47148 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
47149 if test $ac_cv_lib_dl_dlopen = yes; then
47150   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
47151 else
47152   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
47153 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
47154 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
47155   echo $ECHO_N "(cached) $ECHO_C" >&6
47156 else
47157   ac_check_lib_save_LIBS=$LIBS
47158 LIBS="-lsvld  $LIBS"
47159 cat >conftest.$ac_ext <<_ACEOF
47160 /* confdefs.h.  */
47161 _ACEOF
47162 cat confdefs.h >>conftest.$ac_ext
47163 cat >>conftest.$ac_ext <<_ACEOF
47164 /* end confdefs.h.  */
47165
47166 /* Override any GCC internal prototype to avoid an error.
47167    Use char because int might match the return type of a GCC
47168    builtin and then its argument prototype would still apply.  */
47169 #ifdef __cplusplus
47170 extern "C"
47171 #endif
47172 char dlopen ();
47173 int
47174 main ()
47175 {
47176 return dlopen ();
47177   ;
47178   return 0;
47179 }
47180 _ACEOF
47181 rm -f conftest.$ac_objext conftest$ac_exeext
47182 if { (ac_try="$ac_link"
47183 case "(($ac_try" in
47184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47185   *) ac_try_echo=$ac_try;;
47186 esac
47187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47188   (eval "$ac_link") 2>conftest.er1
47189   ac_status=$?
47190   grep -v '^ *+' conftest.er1 >conftest.err
47191   rm -f conftest.er1
47192   cat conftest.err >&5
47193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47194   (exit $ac_status); } && {
47195          test -z "$ac_c_werror_flag" ||
47196          test ! -s conftest.err
47197        } && test -s conftest$ac_exeext &&
47198        $as_test_x conftest$ac_exeext; then
47199   ac_cv_lib_svld_dlopen=yes
47200 else
47201   echo "$as_me: failed program was:" >&5
47202 sed 's/^/| /' conftest.$ac_ext >&5
47203
47204         ac_cv_lib_svld_dlopen=no
47205 fi
47206
47207 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
47208       conftest$ac_exeext conftest.$ac_ext
47209 LIBS=$ac_check_lib_save_LIBS
47210 fi
47211 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
47212 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
47213 if test $ac_cv_lib_svld_dlopen = yes; then
47214   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
47215 else
47216   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
47217 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
47218 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
47219   echo $ECHO_N "(cached) $ECHO_C" >&6
47220 else
47221   ac_check_lib_save_LIBS=$LIBS
47222 LIBS="-ldld  $LIBS"
47223 cat >conftest.$ac_ext <<_ACEOF
47224 /* confdefs.h.  */
47225 _ACEOF
47226 cat confdefs.h >>conftest.$ac_ext
47227 cat >>conftest.$ac_ext <<_ACEOF
47228 /* end confdefs.h.  */
47229
47230 /* Override any GCC internal prototype to avoid an error.
47231    Use char because int might match the return type of a GCC
47232    builtin and then its argument prototype would still apply.  */
47233 #ifdef __cplusplus
47234 extern "C"
47235 #endif
47236 char dld_link ();
47237 int
47238 main ()
47239 {
47240 return dld_link ();
47241   ;
47242   return 0;
47243 }
47244 _ACEOF
47245 rm -f conftest.$ac_objext conftest$ac_exeext
47246 if { (ac_try="$ac_link"
47247 case "(($ac_try" in
47248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47249   *) ac_try_echo=$ac_try;;
47250 esac
47251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47252   (eval "$ac_link") 2>conftest.er1
47253   ac_status=$?
47254   grep -v '^ *+' conftest.er1 >conftest.err
47255   rm -f conftest.er1
47256   cat conftest.err >&5
47257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47258   (exit $ac_status); } && {
47259          test -z "$ac_c_werror_flag" ||
47260          test ! -s conftest.err
47261        } && test -s conftest$ac_exeext &&
47262        $as_test_x conftest$ac_exeext; then
47263   ac_cv_lib_dld_dld_link=yes
47264 else
47265   echo "$as_me: failed program was:" >&5
47266 sed 's/^/| /' conftest.$ac_ext >&5
47267
47268         ac_cv_lib_dld_dld_link=no
47269 fi
47270
47271 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
47272       conftest$ac_exeext conftest.$ac_ext
47273 LIBS=$ac_check_lib_save_LIBS
47274 fi
47275 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
47276 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
47277 if test $ac_cv_lib_dld_dld_link = yes; then
47278   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
47279 fi
47280
47281
47282 fi
47283
47284
47285 fi
47286
47287
47288 fi
47289
47290
47291 fi
47292
47293
47294 fi
47295
47296     ;;
47297   esac
47298
47299   if test "x$lt_cv_dlopen" != xno; then
47300     enable_dlopen=yes
47301   else
47302     enable_dlopen=no
47303   fi
47304
47305   case $lt_cv_dlopen in
47306   dlopen)
47307     save_CPPFLAGS="$CPPFLAGS"
47308     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
47309
47310     save_LDFLAGS="$LDFLAGS"
47311     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
47312
47313     save_LIBS="$LIBS"
47314     LIBS="$lt_cv_dlopen_libs $LIBS"
47315
47316     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
47317 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
47318 if test "${lt_cv_dlopen_self+set}" = set; then
47319   echo $ECHO_N "(cached) $ECHO_C" >&6
47320 else
47321           if test "$cross_compiling" = yes; then :
47322   lt_cv_dlopen_self=cross
47323 else
47324   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
47325   lt_status=$lt_dlunknown
47326   cat > conftest.$ac_ext <<EOF
47327 #line 47327 "configure"
47328 #include "confdefs.h"
47329
47330 #if HAVE_DLFCN_H
47331 #include <dlfcn.h>
47332 #endif
47333
47334 #include <stdio.h>
47335
47336 #ifdef RTLD_GLOBAL
47337 #  define LT_DLGLOBAL           RTLD_GLOBAL
47338 #else
47339 #  ifdef DL_GLOBAL
47340 #    define LT_DLGLOBAL         DL_GLOBAL
47341 #  else
47342 #    define LT_DLGLOBAL         0
47343 #  endif
47344 #endif
47345
47346 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
47347    find out it does not work in some platform. */
47348 #ifndef LT_DLLAZY_OR_NOW
47349 #  ifdef RTLD_LAZY
47350 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
47351 #  else
47352 #    ifdef DL_LAZY
47353 #      define LT_DLLAZY_OR_NOW          DL_LAZY
47354 #    else
47355 #      ifdef RTLD_NOW
47356 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
47357 #      else
47358 #        ifdef DL_NOW
47359 #          define LT_DLLAZY_OR_NOW      DL_NOW
47360 #        else
47361 #          define LT_DLLAZY_OR_NOW      0
47362 #        endif
47363 #      endif
47364 #    endif
47365 #  endif
47366 #endif
47367
47368 #ifdef __cplusplus
47369 extern "C" void exit (int);
47370 #endif
47371
47372 void fnord() { int i=42;}
47373 int main ()
47374 {
47375   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
47376   int status = $lt_dlunknown;
47377
47378   if (self)
47379     {
47380       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
47381       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
47382       /* dlclose (self); */
47383     }
47384
47385     exit (status);
47386 }
47387 EOF
47388   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47389   (eval $ac_link) 2>&5
47390   ac_status=$?
47391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47392   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
47393     (./conftest; exit; ) >&5 2>/dev/null
47394     lt_status=$?
47395     case x$lt_status in
47396       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
47397       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
47398       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
47399     esac
47400   else :
47401     # compilation failed
47402     lt_cv_dlopen_self=no
47403   fi
47404 fi
47405 rm -fr conftest*
47406
47407
47408 fi
47409 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
47410 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
47411
47412     if test "x$lt_cv_dlopen_self" = xyes; then
47413       LDFLAGS="$LDFLAGS $link_static_flag"
47414       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
47415 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
47416 if test "${lt_cv_dlopen_self_static+set}" = set; then
47417   echo $ECHO_N "(cached) $ECHO_C" >&6
47418 else
47419           if test "$cross_compiling" = yes; then :
47420   lt_cv_dlopen_self_static=cross
47421 else
47422   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
47423   lt_status=$lt_dlunknown
47424   cat > conftest.$ac_ext <<EOF
47425 #line 47425 "configure"
47426 #include "confdefs.h"
47427
47428 #if HAVE_DLFCN_H
47429 #include <dlfcn.h>
47430 #endif
47431
47432 #include <stdio.h>
47433
47434 #ifdef RTLD_GLOBAL
47435 #  define LT_DLGLOBAL           RTLD_GLOBAL
47436 #else
47437 #  ifdef DL_GLOBAL
47438 #    define LT_DLGLOBAL         DL_GLOBAL
47439 #  else
47440 #    define LT_DLGLOBAL         0
47441 #  endif
47442 #endif
47443
47444 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
47445    find out it does not work in some platform. */
47446 #ifndef LT_DLLAZY_OR_NOW
47447 #  ifdef RTLD_LAZY
47448 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
47449 #  else
47450 #    ifdef DL_LAZY
47451 #      define LT_DLLAZY_OR_NOW          DL_LAZY
47452 #    else
47453 #      ifdef RTLD_NOW
47454 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
47455 #      else
47456 #        ifdef DL_NOW
47457 #          define LT_DLLAZY_OR_NOW      DL_NOW
47458 #        else
47459 #          define LT_DLLAZY_OR_NOW      0
47460 #        endif
47461 #      endif
47462 #    endif
47463 #  endif
47464 #endif
47465
47466 #ifdef __cplusplus
47467 extern "C" void exit (int);
47468 #endif
47469
47470 void fnord() { int i=42;}
47471 int main ()
47472 {
47473   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
47474   int status = $lt_dlunknown;
47475
47476   if (self)
47477     {
47478       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
47479       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
47480       /* dlclose (self); */
47481     }
47482
47483     exit (status);
47484 }
47485 EOF
47486   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47487   (eval $ac_link) 2>&5
47488   ac_status=$?
47489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47490   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
47491     (./conftest; exit; ) >&5 2>/dev/null
47492     lt_status=$?
47493     case x$lt_status in
47494       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
47495       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
47496       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
47497     esac
47498   else :
47499     # compilation failed
47500     lt_cv_dlopen_self_static=no
47501   fi
47502 fi
47503 rm -fr conftest*
47504
47505
47506 fi
47507 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
47508 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
47509     fi
47510
47511     CPPFLAGS="$save_CPPFLAGS"
47512     LDFLAGS="$save_LDFLAGS"
47513     LIBS="$save_LIBS"
47514     ;;
47515   esac
47516
47517   case $lt_cv_dlopen_self in
47518   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
47519   *) enable_dlopen_self=unknown ;;
47520   esac
47521
47522   case $lt_cv_dlopen_self_static in
47523   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
47524   *) enable_dlopen_self_static=unknown ;;
47525   esac
47526 fi
47527
47528
47529 # The else clause should only fire when bootstrapping the
47530 # libtool distribution, otherwise you forgot to ship ltmain.sh
47531 # with your package, and you will get complaints that there are
47532 # no rules to generate ltmain.sh.
47533 if test -f "$ltmain"; then
47534   # See if we are running on zsh, and set the options which allow our commands through
47535   # without removal of \ escapes.
47536   if test -n "${ZSH_VERSION+set}" ; then
47537     setopt NO_GLOB_SUBST
47538   fi
47539   # Now quote all the things that may contain metacharacters while being
47540   # careful not to overquote the AC_SUBSTed values.  We take copies of the
47541   # variables and quote the copies for generation of the libtool script.
47542   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
47543     SED SHELL STRIP \
47544     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
47545     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
47546     deplibs_check_method reload_flag reload_cmds need_locks \
47547     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
47548     lt_cv_sys_global_symbol_to_c_name_address \
47549     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
47550     old_postinstall_cmds old_postuninstall_cmds \
47551     compiler_GCJ \
47552     CC_GCJ \
47553     LD_GCJ \
47554     lt_prog_compiler_wl_GCJ \
47555     lt_prog_compiler_pic_GCJ \
47556     lt_prog_compiler_static_GCJ \
47557     lt_prog_compiler_no_builtin_flag_GCJ \
47558     export_dynamic_flag_spec_GCJ \
47559     thread_safe_flag_spec_GCJ \
47560     whole_archive_flag_spec_GCJ \
47561     enable_shared_with_static_runtimes_GCJ \
47562     old_archive_cmds_GCJ \
47563     old_archive_from_new_cmds_GCJ \
47564     predep_objects_GCJ \
47565     postdep_objects_GCJ \
47566     predeps_GCJ \
47567     postdeps_GCJ \
47568     compiler_lib_search_path_GCJ \
47569     archive_cmds_GCJ \
47570     archive_expsym_cmds_GCJ \
47571     postinstall_cmds_GCJ \
47572     postuninstall_cmds_GCJ \
47573     old_archive_from_expsyms_cmds_GCJ \
47574     allow_undefined_flag_GCJ \
47575     no_undefined_flag_GCJ \
47576     export_symbols_cmds_GCJ \
47577     hardcode_libdir_flag_spec_GCJ \
47578     hardcode_libdir_flag_spec_ld_GCJ \
47579     hardcode_libdir_separator_GCJ \
47580     hardcode_automatic_GCJ \
47581     module_cmds_GCJ \
47582     module_expsym_cmds_GCJ \
47583     lt_cv_prog_compiler_c_o_GCJ \
47584     exclude_expsyms_GCJ \
47585     include_expsyms_GCJ; do
47586
47587     case $var in
47588     old_archive_cmds_GCJ | \
47589     old_archive_from_new_cmds_GCJ | \
47590     archive_cmds_GCJ | \
47591     archive_expsym_cmds_GCJ | \
47592     module_cmds_GCJ | \
47593     module_expsym_cmds_GCJ | \
47594     old_archive_from_expsyms_cmds_GCJ | \
47595     export_symbols_cmds_GCJ | \
47596     extract_expsyms_cmds | reload_cmds | finish_cmds | \
47597     postinstall_cmds | postuninstall_cmds | \
47598     old_postinstall_cmds | old_postuninstall_cmds | \
47599     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
47600       # Double-quote double-evaled strings.
47601       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
47602       ;;
47603     *)
47604       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
47605       ;;
47606     esac
47607   done
47608
47609   case $lt_echo in
47610   *'\$0 --fallback-echo"')
47611     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
47612     ;;
47613   esac
47614
47615 cfgfile="$ofile"
47616
47617   cat <<__EOF__ >> "$cfgfile"
47618 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
47619
47620 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
47621
47622 # Shell to use when invoking shell scripts.
47623 SHELL=$lt_SHELL
47624
47625 # Whether or not to build shared libraries.
47626 build_libtool_libs=$enable_shared
47627
47628 # Whether or not to build static libraries.
47629 build_old_libs=$enable_static
47630
47631 # Whether or not to add -lc for building shared libraries.
47632 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
47633
47634 # Whether or not to disallow shared libs when runtime libs are static
47635 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
47636
47637 # Whether or not to optimize for fast installation.
47638 fast_install=$enable_fast_install
47639
47640 # The host system.
47641 host_alias=$host_alias
47642 host=$host
47643 host_os=$host_os
47644
47645 # The build system.
47646 build_alias=$build_alias
47647 build=$build
47648 build_os=$build_os
47649
47650 # An echo program that does not interpret backslashes.
47651 echo=$lt_echo
47652
47653 # The archiver.
47654 AR=$lt_AR
47655 AR_FLAGS=$lt_AR_FLAGS
47656
47657 # A C compiler.
47658 LTCC=$lt_LTCC
47659
47660 # A language-specific compiler.
47661 CC=$lt_compiler_GCJ
47662
47663 # Is the compiler the GNU C compiler?
47664 with_gcc=$GCC_GCJ
47665
47666 # An ERE matcher.
47667 EGREP=$lt_EGREP
47668
47669 # The linker used to build libraries.
47670 LD=$lt_LD_GCJ
47671
47672 # Whether we need hard or soft links.
47673 LN_S=$lt_LN_S
47674
47675 # A BSD-compatible nm program.
47676 NM=$lt_NM
47677
47678 # A symbol stripping program
47679 STRIP=$lt_STRIP
47680
47681 # Used to examine libraries when file_magic_cmd begins "file"
47682 MAGIC_CMD=$MAGIC_CMD
47683
47684 # Used on cygwin: DLL creation program.
47685 DLLTOOL="$DLLTOOL"
47686
47687 # Used on cygwin: object dumper.
47688 OBJDUMP="$OBJDUMP"
47689
47690 # Used on cygwin: assembler.
47691 AS="$AS"
47692
47693 # The name of the directory that contains temporary libtool files.
47694 objdir=$objdir
47695
47696 # How to create reloadable object files.
47697 reload_flag=$lt_reload_flag
47698 reload_cmds=$lt_reload_cmds
47699
47700 # How to pass a linker flag through the compiler.
47701 wl=$lt_lt_prog_compiler_wl_GCJ
47702
47703 # Object file suffix (normally "o").
47704 objext="$ac_objext"
47705
47706 # Old archive suffix (normally "a").
47707 libext="$libext"
47708
47709 # Shared library suffix (normally ".so").
47710 shrext_cmds='$shrext_cmds'
47711
47712 # Executable file suffix (normally "").
47713 exeext="$exeext"
47714
47715 # Additional compiler flags for building library objects.
47716 pic_flag=$lt_lt_prog_compiler_pic_GCJ
47717 pic_mode=$pic_mode
47718
47719 # What is the maximum length of a command?
47720 max_cmd_len=$lt_cv_sys_max_cmd_len
47721
47722 # Does compiler simultaneously support -c and -o options?
47723 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
47724
47725 # Must we lock files when doing compilation?
47726 need_locks=$lt_need_locks
47727
47728 # Do we need the lib prefix for modules?
47729 need_lib_prefix=$need_lib_prefix
47730
47731 # Do we need a version for libraries?
47732 need_version=$need_version
47733
47734 # Whether dlopen is supported.
47735 dlopen_support=$enable_dlopen
47736
47737 # Whether dlopen of programs is supported.
47738 dlopen_self=$enable_dlopen_self
47739
47740 # Whether dlopen of statically linked programs is supported.
47741 dlopen_self_static=$enable_dlopen_self_static
47742
47743 # Compiler flag to prevent dynamic linking.
47744 link_static_flag=$lt_lt_prog_compiler_static_GCJ
47745
47746 # Compiler flag to turn off builtin functions.
47747 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
47748
47749 # Compiler flag to allow reflexive dlopens.
47750 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
47751
47752 # Compiler flag to generate shared objects directly from archives.
47753 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
47754
47755 # Compiler flag to generate thread-safe objects.
47756 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
47757
47758 # Library versioning type.
47759 version_type=$version_type
47760
47761 # Format of library name prefix.
47762 libname_spec=$lt_libname_spec
47763
47764 # List of archive names.  First name is the real one, the rest are links.
47765 # The last name is the one that the linker finds with -lNAME.
47766 library_names_spec=$lt_library_names_spec
47767
47768 # The coded name of the library, if different from the real name.
47769 soname_spec=$lt_soname_spec
47770
47771 # Commands used to build and install an old-style archive.
47772 RANLIB=$lt_RANLIB
47773 old_archive_cmds=$lt_old_archive_cmds_GCJ
47774 old_postinstall_cmds=$lt_old_postinstall_cmds
47775 old_postuninstall_cmds=$lt_old_postuninstall_cmds
47776
47777 # Create an old-style archive from a shared archive.
47778 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
47779
47780 # Create a temporary old-style archive to link instead of a shared archive.
47781 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
47782
47783 # Commands used to build and install a shared archive.
47784 archive_cmds=$lt_archive_cmds_GCJ
47785 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
47786 postinstall_cmds=$lt_postinstall_cmds
47787 postuninstall_cmds=$lt_postuninstall_cmds
47788
47789 # Commands used to build a loadable module (assumed same as above if empty)
47790 module_cmds=$lt_module_cmds_GCJ
47791 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
47792
47793 # Commands to strip libraries.
47794 old_striplib=$lt_old_striplib
47795 striplib=$lt_striplib
47796
47797 # Dependencies to place before the objects being linked to create a
47798 # shared library.
47799 predep_objects=$lt_predep_objects_GCJ
47800
47801 # Dependencies to place after the objects being linked to create a
47802 # shared library.
47803 postdep_objects=$lt_postdep_objects_GCJ
47804
47805 # Dependencies to place before the objects being linked to create a
47806 # shared library.
47807 predeps=$lt_predeps_GCJ
47808
47809 # Dependencies to place after the objects being linked to create a
47810 # shared library.
47811 postdeps=$lt_postdeps_GCJ
47812
47813 # The library search path used internally by the compiler when linking
47814 # a shared library.
47815 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
47816
47817 # Method to check whether dependent libraries are shared objects.
47818 deplibs_check_method=$lt_deplibs_check_method
47819
47820 # Command to use when deplibs_check_method == file_magic.
47821 file_magic_cmd=$lt_file_magic_cmd
47822
47823 # Flag that allows shared libraries with undefined symbols to be built.
47824 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
47825
47826 # Flag that forces no undefined symbols.
47827 no_undefined_flag=$lt_no_undefined_flag_GCJ
47828
47829 # Commands used to finish a libtool library installation in a directory.
47830 finish_cmds=$lt_finish_cmds
47831
47832 # Same as above, but a single script fragment to be evaled but not shown.
47833 finish_eval=$lt_finish_eval
47834
47835 # Take the output of nm and produce a listing of raw symbols and C names.
47836 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
47837
47838 # Transform the output of nm in a proper C declaration
47839 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
47840
47841 # Transform the output of nm in a C name address pair
47842 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
47843
47844 # This is the shared library runtime path variable.
47845 runpath_var=$runpath_var
47846
47847 # This is the shared library path variable.
47848 shlibpath_var=$shlibpath_var
47849
47850 # Is shlibpath searched before the hard-coded library search path?
47851 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
47852
47853 # How to hardcode a shared library path into an executable.
47854 hardcode_action=$hardcode_action_GCJ
47855
47856 # Whether we should hardcode library paths into libraries.
47857 hardcode_into_libs=$hardcode_into_libs
47858
47859 # Flag to hardcode \$libdir into a binary during linking.
47860 # This must work even if \$libdir does not exist.
47861 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
47862
47863 # If ld is used when linking, flag to hardcode \$libdir into
47864 # a binary during linking. This must work even if \$libdir does
47865 # not exist.
47866 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
47867
47868 # Whether we need a single -rpath flag with a separated argument.
47869 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
47870
47871 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
47872 # resulting binary.
47873 hardcode_direct=$hardcode_direct_GCJ
47874
47875 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
47876 # resulting binary.
47877 hardcode_minus_L=$hardcode_minus_L_GCJ
47878
47879 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
47880 # the resulting binary.
47881 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
47882
47883 # Set to yes if building a shared library automatically hardcodes DIR into the library
47884 # and all subsequent libraries and executables linked against it.
47885 hardcode_automatic=$hardcode_automatic_GCJ
47886
47887 # Variables whose values should be saved in libtool wrapper scripts and
47888 # restored at relink time.
47889 variables_saved_for_relink="$variables_saved_for_relink"
47890
47891 # Whether libtool must link a program against all its dependency libraries.
47892 link_all_deplibs=$link_all_deplibs_GCJ
47893
47894 # Compile-time system search path for libraries
47895 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
47896
47897 # Run-time system search path for libraries
47898 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
47899
47900 # Fix the shell variable \$srcfile for the compiler.
47901 fix_srcfile_path="$fix_srcfile_path_GCJ"
47902
47903 # Set to yes if exported symbols are required.
47904 always_export_symbols=$always_export_symbols_GCJ
47905
47906 # The commands to list exported symbols.
47907 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
47908
47909 # The commands to extract the exported symbol list from a shared archive.
47910 extract_expsyms_cmds=$lt_extract_expsyms_cmds
47911
47912 # Symbols that should not be listed in the preloaded symbols.
47913 exclude_expsyms=$lt_exclude_expsyms_GCJ
47914
47915 # Symbols that must always be exported.
47916 include_expsyms=$lt_include_expsyms_GCJ
47917
47918 # ### END LIBTOOL TAG CONFIG: $tagname
47919
47920 __EOF__
47921
47922
47923 else
47924   # If there is no Makefile yet, we rely on a make rule to execute
47925   # `config.status --recheck' to rerun these tests and create the
47926   # libtool script then.
47927   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
47928   if test -f "$ltmain_in"; then
47929     test -f Makefile && make "$ltmain"
47930   fi
47931 fi
47932
47933
47934 ac_ext=c
47935 ac_cpp='$CPP $CPPFLAGS'
47936 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47937 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47938 ac_compiler_gnu=$ac_cv_c_compiler_gnu
47939
47940 CC="$lt_save_CC"
47941
47942         else
47943           tagname=""
47944         fi
47945         ;;
47946
47947       RC)
47948
47949
47950 # Source file extension for RC test sources.
47951 ac_ext=rc
47952
47953 # Object file extension for compiled RC test sources.
47954 objext=o
47955 objext_RC=$objext
47956
47957 # Code to be used in simple compile tests
47958 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
47959
47960 # Code to be used in simple link tests
47961 lt_simple_link_test_code="$lt_simple_compile_test_code"
47962
47963 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
47964
47965 # If no C compiler was specified, use CC.
47966 LTCC=${LTCC-"$CC"}
47967
47968 # Allow CC to be a program name with arguments.
47969 compiler=$CC
47970
47971
47972 # save warnings/boilerplate of simple test code
47973 ac_outfile=conftest.$ac_objext
47974 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
47975 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
47976 _lt_compiler_boilerplate=`cat conftest.err`
47977 $rm conftest*
47978
47979 ac_outfile=conftest.$ac_objext
47980 printf "$lt_simple_link_test_code" >conftest.$ac_ext
47981 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
47982 _lt_linker_boilerplate=`cat conftest.err`
47983 $rm conftest*
47984
47985
47986 # Allow CC to be a program name with arguments.
47987 lt_save_CC="$CC"
47988 CC=${RC-"windres"}
47989 compiler=$CC
47990 compiler_RC=$CC
47991 for cc_temp in $compiler""; do
47992   case $cc_temp in
47993     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
47994     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
47995     \-*) ;;
47996     *) break;;
47997   esac
47998 done
47999 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
48000
48001 lt_cv_prog_compiler_c_o_RC=yes
48002
48003 # The else clause should only fire when bootstrapping the
48004 # libtool distribution, otherwise you forgot to ship ltmain.sh
48005 # with your package, and you will get complaints that there are
48006 # no rules to generate ltmain.sh.
48007 if test -f "$ltmain"; then
48008   # See if we are running on zsh, and set the options which allow our commands through
48009   # without removal of \ escapes.
48010   if test -n "${ZSH_VERSION+set}" ; then
48011     setopt NO_GLOB_SUBST
48012   fi
48013   # Now quote all the things that may contain metacharacters while being
48014   # careful not to overquote the AC_SUBSTed values.  We take copies of the
48015   # variables and quote the copies for generation of the libtool script.
48016   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
48017     SED SHELL STRIP \
48018     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
48019     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
48020     deplibs_check_method reload_flag reload_cmds need_locks \
48021     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
48022     lt_cv_sys_global_symbol_to_c_name_address \
48023     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
48024     old_postinstall_cmds old_postuninstall_cmds \
48025     compiler_RC \
48026     CC_RC \
48027     LD_RC \
48028     lt_prog_compiler_wl_RC \
48029     lt_prog_compiler_pic_RC \
48030     lt_prog_compiler_static_RC \
48031     lt_prog_compiler_no_builtin_flag_RC \
48032     export_dynamic_flag_spec_RC \
48033     thread_safe_flag_spec_RC \
48034     whole_archive_flag_spec_RC \
48035     enable_shared_with_static_runtimes_RC \
48036     old_archive_cmds_RC \
48037     old_archive_from_new_cmds_RC \
48038     predep_objects_RC \
48039     postdep_objects_RC \
48040     predeps_RC \
48041     postdeps_RC \
48042     compiler_lib_search_path_RC \
48043     archive_cmds_RC \
48044     archive_expsym_cmds_RC \
48045     postinstall_cmds_RC \
48046     postuninstall_cmds_RC \
48047     old_archive_from_expsyms_cmds_RC \
48048     allow_undefined_flag_RC \
48049     no_undefined_flag_RC \
48050     export_symbols_cmds_RC \
48051     hardcode_libdir_flag_spec_RC \
48052     hardcode_libdir_flag_spec_ld_RC \
48053     hardcode_libdir_separator_RC \
48054     hardcode_automatic_RC \
48055     module_cmds_RC \
48056     module_expsym_cmds_RC \
48057     lt_cv_prog_compiler_c_o_RC \
48058     exclude_expsyms_RC \
48059     include_expsyms_RC; do
48060
48061     case $var in
48062     old_archive_cmds_RC | \
48063     old_archive_from_new_cmds_RC | \
48064     archive_cmds_RC | \
48065     archive_expsym_cmds_RC | \
48066     module_cmds_RC | \
48067     module_expsym_cmds_RC | \
48068     old_archive_from_expsyms_cmds_RC | \
48069     export_symbols_cmds_RC | \
48070     extract_expsyms_cmds | reload_cmds | finish_cmds | \
48071     postinstall_cmds | postuninstall_cmds | \
48072     old_postinstall_cmds | old_postuninstall_cmds | \
48073     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
48074       # Double-quote double-evaled strings.
48075       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
48076       ;;
48077     *)
48078       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
48079       ;;
48080     esac
48081   done
48082
48083   case $lt_echo in
48084   *'\$0 --fallback-echo"')
48085     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
48086     ;;
48087   esac
48088
48089 cfgfile="$ofile"
48090
48091   cat <<__EOF__ >> "$cfgfile"
48092 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
48093
48094 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
48095
48096 # Shell to use when invoking shell scripts.
48097 SHELL=$lt_SHELL
48098
48099 # Whether or not to build shared libraries.
48100 build_libtool_libs=$enable_shared
48101
48102 # Whether or not to build static libraries.
48103 build_old_libs=$enable_static
48104
48105 # Whether or not to add -lc for building shared libraries.
48106 build_libtool_need_lc=$archive_cmds_need_lc_RC
48107
48108 # Whether or not to disallow shared libs when runtime libs are static
48109 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
48110
48111 # Whether or not to optimize for fast installation.
48112 fast_install=$enable_fast_install
48113
48114 # The host system.
48115 host_alias=$host_alias
48116 host=$host
48117 host_os=$host_os
48118
48119 # The build system.
48120 build_alias=$build_alias
48121 build=$build
48122 build_os=$build_os
48123
48124 # An echo program that does not interpret backslashes.
48125 echo=$lt_echo
48126
48127 # The archiver.
48128 AR=$lt_AR
48129 AR_FLAGS=$lt_AR_FLAGS
48130
48131 # A C compiler.
48132 LTCC=$lt_LTCC
48133
48134 # A language-specific compiler.
48135 CC=$lt_compiler_RC
48136
48137 # Is the compiler the GNU C compiler?
48138 with_gcc=$GCC_RC
48139
48140 # An ERE matcher.
48141 EGREP=$lt_EGREP
48142
48143 # The linker used to build libraries.
48144 LD=$lt_LD_RC
48145
48146 # Whether we need hard or soft links.
48147 LN_S=$lt_LN_S
48148
48149 # A BSD-compatible nm program.
48150 NM=$lt_NM
48151
48152 # A symbol stripping program
48153 STRIP=$lt_STRIP
48154
48155 # Used to examine libraries when file_magic_cmd begins "file"
48156 MAGIC_CMD=$MAGIC_CMD
48157
48158 # Used on cygwin: DLL creation program.
48159 DLLTOOL="$DLLTOOL"
48160
48161 # Used on cygwin: object dumper.
48162 OBJDUMP="$OBJDUMP"
48163
48164 # Used on cygwin: assembler.
48165 AS="$AS"
48166
48167 # The name of the directory that contains temporary libtool files.
48168 objdir=$objdir
48169
48170 # How to create reloadable object files.
48171 reload_flag=$lt_reload_flag
48172 reload_cmds=$lt_reload_cmds
48173
48174 # How to pass a linker flag through the compiler.
48175 wl=$lt_lt_prog_compiler_wl_RC
48176
48177 # Object file suffix (normally "o").
48178 objext="$ac_objext"
48179
48180 # Old archive suffix (normally "a").
48181 libext="$libext"
48182
48183 # Shared library suffix (normally ".so").
48184 shrext_cmds='$shrext_cmds'
48185
48186 # Executable file suffix (normally "").
48187 exeext="$exeext"
48188
48189 # Additional compiler flags for building library objects.
48190 pic_flag=$lt_lt_prog_compiler_pic_RC
48191 pic_mode=$pic_mode
48192
48193 # What is the maximum length of a command?
48194 max_cmd_len=$lt_cv_sys_max_cmd_len
48195
48196 # Does compiler simultaneously support -c and -o options?
48197 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
48198
48199 # Must we lock files when doing compilation?
48200 need_locks=$lt_need_locks
48201
48202 # Do we need the lib prefix for modules?
48203 need_lib_prefix=$need_lib_prefix
48204
48205 # Do we need a version for libraries?
48206 need_version=$need_version
48207
48208 # Whether dlopen is supported.
48209 dlopen_support=$enable_dlopen
48210
48211 # Whether dlopen of programs is supported.
48212 dlopen_self=$enable_dlopen_self
48213
48214 # Whether dlopen of statically linked programs is supported.
48215 dlopen_self_static=$enable_dlopen_self_static
48216
48217 # Compiler flag to prevent dynamic linking.
48218 link_static_flag=$lt_lt_prog_compiler_static_RC
48219
48220 # Compiler flag to turn off builtin functions.
48221 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
48222
48223 # Compiler flag to allow reflexive dlopens.
48224 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
48225
48226 # Compiler flag to generate shared objects directly from archives.
48227 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
48228
48229 # Compiler flag to generate thread-safe objects.
48230 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
48231
48232 # Library versioning type.
48233 version_type=$version_type
48234
48235 # Format of library name prefix.
48236 libname_spec=$lt_libname_spec
48237
48238 # List of archive names.  First name is the real one, the rest are links.
48239 # The last name is the one that the linker finds with -lNAME.
48240 library_names_spec=$lt_library_names_spec
48241
48242 # The coded name of the library, if different from the real name.
48243 soname_spec=$lt_soname_spec
48244
48245 # Commands used to build and install an old-style archive.
48246 RANLIB=$lt_RANLIB
48247 old_archive_cmds=$lt_old_archive_cmds_RC
48248 old_postinstall_cmds=$lt_old_postinstall_cmds
48249 old_postuninstall_cmds=$lt_old_postuninstall_cmds
48250
48251 # Create an old-style archive from a shared archive.
48252 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
48253
48254 # Create a temporary old-style archive to link instead of a shared archive.
48255 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
48256
48257 # Commands used to build and install a shared archive.
48258 archive_cmds=$lt_archive_cmds_RC
48259 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
48260 postinstall_cmds=$lt_postinstall_cmds
48261 postuninstall_cmds=$lt_postuninstall_cmds
48262
48263 # Commands used to build a loadable module (assumed same as above if empty)
48264 module_cmds=$lt_module_cmds_RC
48265 module_expsym_cmds=$lt_module_expsym_cmds_RC
48266
48267 # Commands to strip libraries.
48268 old_striplib=$lt_old_striplib
48269 striplib=$lt_striplib
48270
48271 # Dependencies to place before the objects being linked to create a
48272 # shared library.
48273 predep_objects=$lt_predep_objects_RC
48274
48275 # Dependencies to place after the objects being linked to create a
48276 # shared library.
48277 postdep_objects=$lt_postdep_objects_RC
48278
48279 # Dependencies to place before the objects being linked to create a
48280 # shared library.
48281 predeps=$lt_predeps_RC
48282
48283 # Dependencies to place after the objects being linked to create a
48284 # shared library.
48285 postdeps=$lt_postdeps_RC
48286
48287 # The library search path used internally by the compiler when linking
48288 # a shared library.
48289 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
48290
48291 # Method to check whether dependent libraries are shared objects.
48292 deplibs_check_method=$lt_deplibs_check_method
48293
48294 # Command to use when deplibs_check_method == file_magic.
48295 file_magic_cmd=$lt_file_magic_cmd
48296
48297 # Flag that allows shared libraries with undefined symbols to be built.
48298 allow_undefined_flag=$lt_allow_undefined_flag_RC
48299
48300 # Flag that forces no undefined symbols.
48301 no_undefined_flag=$lt_no_undefined_flag_RC
48302
48303 # Commands used to finish a libtool library installation in a directory.
48304 finish_cmds=$lt_finish_cmds
48305
48306 # Same as above, but a single script fragment to be evaled but not shown.
48307 finish_eval=$lt_finish_eval
48308
48309 # Take the output of nm and produce a listing of raw symbols and C names.
48310 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
48311
48312 # Transform the output of nm in a proper C declaration
48313 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
48314
48315 # Transform the output of nm in a C name address pair
48316 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
48317
48318 # This is the shared library runtime path variable.
48319 runpath_var=$runpath_var
48320
48321 # This is the shared library path variable.
48322 shlibpath_var=$shlibpath_var
48323
48324 # Is shlibpath searched before the hard-coded library search path?
48325 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
48326
48327 # How to hardcode a shared library path into an executable.
48328 hardcode_action=$hardcode_action_RC
48329
48330 # Whether we should hardcode library paths into libraries.
48331 hardcode_into_libs=$hardcode_into_libs
48332
48333 # Flag to hardcode \$libdir into a binary during linking.
48334 # This must work even if \$libdir does not exist.
48335 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
48336
48337 # If ld is used when linking, flag to hardcode \$libdir into
48338 # a binary during linking. This must work even if \$libdir does
48339 # not exist.
48340 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
48341
48342 # Whether we need a single -rpath flag with a separated argument.
48343 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
48344
48345 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
48346 # resulting binary.
48347 hardcode_direct=$hardcode_direct_RC
48348
48349 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
48350 # resulting binary.
48351 hardcode_minus_L=$hardcode_minus_L_RC
48352
48353 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
48354 # the resulting binary.
48355 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
48356
48357 # Set to yes if building a shared library automatically hardcodes DIR into the library
48358 # and all subsequent libraries and executables linked against it.
48359 hardcode_automatic=$hardcode_automatic_RC
48360
48361 # Variables whose values should be saved in libtool wrapper scripts and
48362 # restored at relink time.
48363 variables_saved_for_relink="$variables_saved_for_relink"
48364
48365 # Whether libtool must link a program against all its dependency libraries.
48366 link_all_deplibs=$link_all_deplibs_RC
48367
48368 # Compile-time system search path for libraries
48369 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
48370
48371 # Run-time system search path for libraries
48372 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
48373
48374 # Fix the shell variable \$srcfile for the compiler.
48375 fix_srcfile_path="$fix_srcfile_path_RC"
48376
48377 # Set to yes if exported symbols are required.
48378 always_export_symbols=$always_export_symbols_RC
48379
48380 # The commands to list exported symbols.
48381 export_symbols_cmds=$lt_export_symbols_cmds_RC
48382
48383 # The commands to extract the exported symbol list from a shared archive.
48384 extract_expsyms_cmds=$lt_extract_expsyms_cmds
48385
48386 # Symbols that should not be listed in the preloaded symbols.
48387 exclude_expsyms=$lt_exclude_expsyms_RC
48388
48389 # Symbols that must always be exported.
48390 include_expsyms=$lt_include_expsyms_RC
48391
48392 # ### END LIBTOOL TAG CONFIG: $tagname
48393
48394 __EOF__
48395
48396
48397 else
48398   # If there is no Makefile yet, we rely on a make rule to execute
48399   # `config.status --recheck' to rerun these tests and create the
48400   # libtool script then.
48401   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
48402   if test -f "$ltmain_in"; then
48403     test -f Makefile && make "$ltmain"
48404   fi
48405 fi
48406
48407
48408 ac_ext=c
48409 ac_cpp='$CPP $CPPFLAGS'
48410 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48411 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48412 ac_compiler_gnu=$ac_cv_c_compiler_gnu
48413
48414 CC="$lt_save_CC"
48415
48416         ;;
48417
48418       *)
48419         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
48420 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
48421    { (exit 1); exit 1; }; }
48422         ;;
48423       esac
48424
48425       # Append the new tag name to the list of available tags.
48426       if test -n "$tagname" ; then
48427       available_tags="$available_tags $tagname"
48428     fi
48429     fi
48430   done
48431   IFS="$lt_save_ifs"
48432
48433   # Now substitute the updated list of available tags.
48434   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
48435     mv "${ofile}T" "$ofile"
48436     chmod +x "$ofile"
48437   else
48438     rm -f "${ofile}T"
48439     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
48440 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
48441    { (exit 1); exit 1; }; }
48442   fi
48443 fi
48444
48445
48446
48447 # This can be used to rebuild libtool when needed
48448 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
48449
48450 # Always use our own libtool.
48451 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
48452
48453 # Prevent multiple expansion
48454
48455
48456
48457
48458
48459
48460
48461
48462
48463
48464
48465
48466
48467
48468
48469
48470
48471
48472
48473
48474
48475
48476     # Check whether --enable-static-binary was given.
48477 if test "${enable_static_binary+set}" = set; then
48478   enableval=$enable_static_binary;
48479             case "$withval" in
48480             "" | y | ye | yes)
48481                 AMANDA_STATIC_LDFLAGS=-static
48482                 if test x"$enable_static" = x"no"; then
48483                         { { echo "$as_me:$LINENO: error: *** --enable-static-binary is incompatible with --disable-static" >&5
48484 echo "$as_me: error: *** --enable-static-binary is incompatible with --disable-static" >&2;}
48485    { (exit 1); exit 1; }; }
48486                 fi
48487                 ;;
48488             *n | no)
48489                 AMANDA_STATIC_LDFLAGS=
48490                 ;;
48491             esac
48492
48493 fi
48494
48495
48496
48497
48498 #
48499 # headers
48500 #
48501 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
48502 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
48503 if test "${ac_cv_header_stdc+set}" = set; then
48504   echo $ECHO_N "(cached) $ECHO_C" >&6
48505 else
48506   cat >conftest.$ac_ext <<_ACEOF
48507 /* confdefs.h.  */
48508 _ACEOF
48509 cat confdefs.h >>conftest.$ac_ext
48510 cat >>conftest.$ac_ext <<_ACEOF
48511 /* end confdefs.h.  */
48512 #include <stdlib.h>
48513 #include <stdarg.h>
48514 #include <string.h>
48515 #include <float.h>
48516
48517 int
48518 main ()
48519 {
48520
48521   ;
48522   return 0;
48523 }
48524 _ACEOF
48525 rm -f conftest.$ac_objext
48526 if { (ac_try="$ac_compile"
48527 case "(($ac_try" in
48528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48529   *) ac_try_echo=$ac_try;;
48530 esac
48531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48532   (eval "$ac_compile") 2>conftest.er1
48533   ac_status=$?
48534   grep -v '^ *+' conftest.er1 >conftest.err
48535   rm -f conftest.er1
48536   cat conftest.err >&5
48537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48538   (exit $ac_status); } && {
48539          test -z "$ac_c_werror_flag" ||
48540          test ! -s conftest.err
48541        } && test -s conftest.$ac_objext; then
48542   ac_cv_header_stdc=yes
48543 else
48544   echo "$as_me: failed program was:" >&5
48545 sed 's/^/| /' conftest.$ac_ext >&5
48546
48547         ac_cv_header_stdc=no
48548 fi
48549
48550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48551
48552 if test $ac_cv_header_stdc = yes; then
48553   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
48554   cat >conftest.$ac_ext <<_ACEOF
48555 /* confdefs.h.  */
48556 _ACEOF
48557 cat confdefs.h >>conftest.$ac_ext
48558 cat >>conftest.$ac_ext <<_ACEOF
48559 /* end confdefs.h.  */
48560 #include <string.h>
48561
48562 _ACEOF
48563 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48564   $EGREP "memchr" >/dev/null 2>&1; then
48565   :
48566 else
48567   ac_cv_header_stdc=no
48568 fi
48569 rm -f conftest*
48570
48571 fi
48572
48573 if test $ac_cv_header_stdc = yes; then
48574   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
48575   cat >conftest.$ac_ext <<_ACEOF
48576 /* confdefs.h.  */
48577 _ACEOF
48578 cat confdefs.h >>conftest.$ac_ext
48579 cat >>conftest.$ac_ext <<_ACEOF
48580 /* end confdefs.h.  */
48581 #include <stdlib.h>
48582
48583 _ACEOF
48584 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48585   $EGREP "free" >/dev/null 2>&1; then
48586   :
48587 else
48588   ac_cv_header_stdc=no
48589 fi
48590 rm -f conftest*
48591
48592 fi
48593
48594 if test $ac_cv_header_stdc = yes; then
48595   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
48596   if test "$cross_compiling" = yes; then
48597   :
48598 else
48599   cat >conftest.$ac_ext <<_ACEOF
48600 /* confdefs.h.  */
48601 _ACEOF
48602 cat confdefs.h >>conftest.$ac_ext
48603 cat >>conftest.$ac_ext <<_ACEOF
48604 /* end confdefs.h.  */
48605 #include <ctype.h>
48606 #include <stdlib.h>
48607 #if ((' ' & 0x0FF) == 0x020)
48608 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
48609 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
48610 #else
48611 # define ISLOWER(c) \
48612                    (('a' <= (c) && (c) <= 'i') \
48613                      || ('j' <= (c) && (c) <= 'r') \
48614                      || ('s' <= (c) && (c) <= 'z'))
48615 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
48616 #endif
48617
48618 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
48619 int
48620 main ()
48621 {
48622   int i;
48623   for (i = 0; i < 256; i++)
48624     if (XOR (islower (i), ISLOWER (i))
48625         || toupper (i) != TOUPPER (i))
48626       return 2;
48627   return 0;
48628 }
48629 _ACEOF
48630 rm -f conftest$ac_exeext
48631 if { (ac_try="$ac_link"
48632 case "(($ac_try" in
48633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48634   *) ac_try_echo=$ac_try;;
48635 esac
48636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48637   (eval "$ac_link") 2>&5
48638   ac_status=$?
48639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48640   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
48641   { (case "(($ac_try" in
48642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48643   *) ac_try_echo=$ac_try;;
48644 esac
48645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48646   (eval "$ac_try") 2>&5
48647   ac_status=$?
48648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48649   (exit $ac_status); }; }; then
48650   :
48651 else
48652   echo "$as_me: program exited with status $ac_status" >&5
48653 echo "$as_me: failed program was:" >&5
48654 sed 's/^/| /' conftest.$ac_ext >&5
48655
48656 ( exit $ac_status )
48657 ac_cv_header_stdc=no
48658 fi
48659 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
48660 fi
48661
48662
48663 fi
48664 fi
48665 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
48666 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
48667 if test $ac_cv_header_stdc = yes; then
48668
48669 cat >>confdefs.h <<\_ACEOF
48670 #define STDC_HEADERS 1
48671 _ACEOF
48672
48673 fi
48674
48675 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
48676 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
48677 if test "${ac_cv_header_time+set}" = set; then
48678   echo $ECHO_N "(cached) $ECHO_C" >&6
48679 else
48680   cat >conftest.$ac_ext <<_ACEOF
48681 /* confdefs.h.  */
48682 _ACEOF
48683 cat confdefs.h >>conftest.$ac_ext
48684 cat >>conftest.$ac_ext <<_ACEOF
48685 /* end confdefs.h.  */
48686 #include <sys/types.h>
48687 #include <sys/time.h>
48688 #include <time.h>
48689
48690 int
48691 main ()
48692 {
48693 if ((struct tm *) 0)
48694 return 0;
48695   ;
48696   return 0;
48697 }
48698 _ACEOF
48699 rm -f conftest.$ac_objext
48700 if { (ac_try="$ac_compile"
48701 case "(($ac_try" in
48702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48703   *) ac_try_echo=$ac_try;;
48704 esac
48705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48706   (eval "$ac_compile") 2>conftest.er1
48707   ac_status=$?
48708   grep -v '^ *+' conftest.er1 >conftest.err
48709   rm -f conftest.er1
48710   cat conftest.err >&5
48711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48712   (exit $ac_status); } && {
48713          test -z "$ac_c_werror_flag" ||
48714          test ! -s conftest.err
48715        } && test -s conftest.$ac_objext; then
48716   ac_cv_header_time=yes
48717 else
48718   echo "$as_me: failed program was:" >&5
48719 sed 's/^/| /' conftest.$ac_ext >&5
48720
48721         ac_cv_header_time=no
48722 fi
48723
48724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48725 fi
48726 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
48727 echo "${ECHO_T}$ac_cv_header_time" >&6; }
48728 if test $ac_cv_header_time = yes; then
48729
48730 cat >>confdefs.h <<\_ACEOF
48731 #define TIME_WITH_SYS_TIME 1
48732 _ACEOF
48733
48734 fi
48735
48736
48737
48738
48739
48740
48741
48742
48743
48744
48745
48746
48747
48748
48749
48750
48751
48752
48753
48754
48755
48756
48757
48758
48759
48760
48761 for ac_header in arpa/inet.h \
48762         grp.h \
48763         libc.h \
48764         libgen.h \
48765         limits.h \
48766         math.h \
48767         netdb.h \
48768         netinet/in.h \
48769         stdarg.h \
48770         stdlib.h \
48771         string.h \
48772         strings.h \
48773         sys/file.h \
48774         sys/ioctl.h \
48775         sys/ipc.h \
48776         sys/mntent.h \
48777         sys/param.h \
48778         sys/select.h \
48779         sys/stat.h \
48780         sys/shm.h \
48781         sys/time.h \
48782         sys/types.h \
48783         sys/uio.h \
48784         syslog.h \
48785         unistd.h \
48786
48787 do
48788 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
48789 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
48790   { echo "$as_me:$LINENO: checking for $ac_header" >&5
48791 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
48792 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
48793   echo $ECHO_N "(cached) $ECHO_C" >&6
48794 fi
48795 ac_res=`eval echo '${'$as_ac_Header'}'`
48796                { echo "$as_me:$LINENO: result: $ac_res" >&5
48797 echo "${ECHO_T}$ac_res" >&6; }
48798 else
48799   # Is the header compilable?
48800 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
48801 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
48802 cat >conftest.$ac_ext <<_ACEOF
48803 /* confdefs.h.  */
48804 _ACEOF
48805 cat confdefs.h >>conftest.$ac_ext
48806 cat >>conftest.$ac_ext <<_ACEOF
48807 /* end confdefs.h.  */
48808 $ac_includes_default
48809 #include <$ac_header>
48810 _ACEOF
48811 rm -f conftest.$ac_objext
48812 if { (ac_try="$ac_compile"
48813 case "(($ac_try" in
48814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48815   *) ac_try_echo=$ac_try;;
48816 esac
48817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48818   (eval "$ac_compile") 2>conftest.er1
48819   ac_status=$?
48820   grep -v '^ *+' conftest.er1 >conftest.err
48821   rm -f conftest.er1
48822   cat conftest.err >&5
48823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48824   (exit $ac_status); } && {
48825          test -z "$ac_c_werror_flag" ||
48826          test ! -s conftest.err
48827        } && test -s conftest.$ac_objext; then
48828   ac_header_compiler=yes
48829 else
48830   echo "$as_me: failed program was:" >&5
48831 sed 's/^/| /' conftest.$ac_ext >&5
48832
48833         ac_header_compiler=no
48834 fi
48835
48836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48837 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
48838 echo "${ECHO_T}$ac_header_compiler" >&6; }
48839
48840 # Is the header present?
48841 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
48842 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
48843 cat >conftest.$ac_ext <<_ACEOF
48844 /* confdefs.h.  */
48845 _ACEOF
48846 cat confdefs.h >>conftest.$ac_ext
48847 cat >>conftest.$ac_ext <<_ACEOF
48848 /* end confdefs.h.  */
48849 #include <$ac_header>
48850 _ACEOF
48851 if { (ac_try="$ac_cpp conftest.$ac_ext"
48852 case "(($ac_try" in
48853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48854   *) ac_try_echo=$ac_try;;
48855 esac
48856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48857   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
48858   ac_status=$?
48859   grep -v '^ *+' conftest.er1 >conftest.err
48860   rm -f conftest.er1
48861   cat conftest.err >&5
48862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48863   (exit $ac_status); } >/dev/null && {
48864          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
48865          test ! -s conftest.err
48866        }; then
48867   ac_header_preproc=yes
48868 else
48869   echo "$as_me: failed program was:" >&5
48870 sed 's/^/| /' conftest.$ac_ext >&5
48871
48872   ac_header_preproc=no
48873 fi
48874
48875 rm -f conftest.err conftest.$ac_ext
48876 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
48877 echo "${ECHO_T}$ac_header_preproc" >&6; }
48878
48879 # So?  What about this header?
48880 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
48881   yes:no: )
48882     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
48883 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
48884     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
48885 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
48886     ac_header_preproc=yes
48887     ;;
48888   no:yes:* )
48889     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
48890 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
48891     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
48892 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
48893     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
48894 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
48895     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
48896 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
48897     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
48898 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
48899     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
48900 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
48901
48902     ;;
48903 esac
48904 { echo "$as_me:$LINENO: checking for $ac_header" >&5
48905 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
48906 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
48907   echo $ECHO_N "(cached) $ECHO_C" >&6
48908 else
48909   eval "$as_ac_Header=\$ac_header_preproc"
48910 fi
48911 ac_res=`eval echo '${'$as_ac_Header'}'`
48912                { echo "$as_me:$LINENO: result: $ac_res" >&5
48913 echo "${ECHO_T}$ac_res" >&6; }
48914
48915 fi
48916 if test `eval echo '${'$as_ac_Header'}'` = yes; then
48917   cat >>confdefs.h <<_ACEOF
48918 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
48919 _ACEOF
48920
48921 fi
48922
48923 done
48924
48925
48926 #
48927 # Types
48928 #
48929 { echo "$as_me:$LINENO: checking if sockaddr_storage struct exists" >&5
48930 echo $ECHO_N "checking if sockaddr_storage struct exists... $ECHO_C" >&6; }
48931     if test "${ac_cv_has_sockaddr_storage+set}" = set; then
48932   echo $ECHO_N "(cached) $ECHO_C" >&6
48933 else
48934   cat >conftest.$ac_ext <<_ACEOF
48935 /* confdefs.h.  */
48936 _ACEOF
48937 cat confdefs.h >>conftest.$ac_ext
48938 cat >>conftest.$ac_ext <<_ACEOF
48939 /* end confdefs.h.  */
48940
48941 #       include <sys/types.h>
48942 #       include <sys/socket.h>
48943 int
48944 main ()
48945 {
48946 u_int i = sizeof (struct sockaddr_storage)
48947   ;
48948   return 0;
48949 }
48950 _ACEOF
48951 rm -f conftest.$ac_objext
48952 if { (ac_try="$ac_compile"
48953 case "(($ac_try" in
48954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48955   *) ac_try_echo=$ac_try;;
48956 esac
48957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48958   (eval "$ac_compile") 2>conftest.er1
48959   ac_status=$?
48960   grep -v '^ *+' conftest.er1 >conftest.err
48961   rm -f conftest.er1
48962   cat conftest.err >&5
48963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48964   (exit $ac_status); } && {
48965          test -z "$ac_c_werror_flag" ||
48966          test ! -s conftest.err
48967        } && test -s conftest.$ac_objext; then
48968   ac_cv_has_sockaddr_storage=yes
48969 else
48970   echo "$as_me: failed program was:" >&5
48971 sed 's/^/| /' conftest.$ac_ext >&5
48972
48973         ac_cv_has_sockaddr_storage=no
48974 fi
48975
48976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48977 fi
48978
48979     { echo "$as_me:$LINENO: result: $ac_cv_has_sockaddr_storage" >&5
48980 echo "${ECHO_T}$ac_cv_has_sockaddr_storage" >&6; }
48981     if test $ac_cv_has_sockaddr_storage = yes ; then
48982
48983 cat >>confdefs.h <<\_ACEOF
48984 #define HAVE_SOCKADDR_STORAGE 1
48985 _ACEOF
48986
48987     fi
48988 { echo "$as_me:$LINENO: checking for int" >&5
48989 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
48990 if test "${ac_cv_type_int+set}" = set; then
48991   echo $ECHO_N "(cached) $ECHO_C" >&6
48992 else
48993   cat >conftest.$ac_ext <<_ACEOF
48994 /* confdefs.h.  */
48995 _ACEOF
48996 cat confdefs.h >>conftest.$ac_ext
48997 cat >>conftest.$ac_ext <<_ACEOF
48998 /* end confdefs.h.  */
48999 $ac_includes_default
49000 typedef int ac__type_new_;
49001 int
49002 main ()
49003 {
49004 if ((ac__type_new_ *) 0)
49005   return 0;
49006 if (sizeof (ac__type_new_))
49007   return 0;
49008   ;
49009   return 0;
49010 }
49011 _ACEOF
49012 rm -f conftest.$ac_objext
49013 if { (ac_try="$ac_compile"
49014 case "(($ac_try" in
49015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49016   *) ac_try_echo=$ac_try;;
49017 esac
49018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49019   (eval "$ac_compile") 2>conftest.er1
49020   ac_status=$?
49021   grep -v '^ *+' conftest.er1 >conftest.err
49022   rm -f conftest.er1
49023   cat conftest.err >&5
49024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49025   (exit $ac_status); } && {
49026          test -z "$ac_c_werror_flag" ||
49027          test ! -s conftest.err
49028        } && test -s conftest.$ac_objext; then
49029   ac_cv_type_int=yes
49030 else
49031   echo "$as_me: failed program was:" >&5
49032 sed 's/^/| /' conftest.$ac_ext >&5
49033
49034         ac_cv_type_int=no
49035 fi
49036
49037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49038 fi
49039 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
49040 echo "${ECHO_T}$ac_cv_type_int" >&6; }
49041
49042 # The cast to long int works around a bug in the HP C Compiler
49043 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
49044 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
49045 # This bug is HP SR number 8606223364.
49046 { echo "$as_me:$LINENO: checking size of int" >&5
49047 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
49048 if test "${ac_cv_sizeof_int+set}" = set; then
49049   echo $ECHO_N "(cached) $ECHO_C" >&6
49050 else
49051   if test "$cross_compiling" = yes; then
49052   # Depending upon the size, compute the lo and hi bounds.
49053 cat >conftest.$ac_ext <<_ACEOF
49054 /* confdefs.h.  */
49055 _ACEOF
49056 cat confdefs.h >>conftest.$ac_ext
49057 cat >>conftest.$ac_ext <<_ACEOF
49058 /* end confdefs.h.  */
49059 $ac_includes_default
49060    typedef int ac__type_sizeof_;
49061 int
49062 main ()
49063 {
49064 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
49065 test_array [0] = 0
49066
49067   ;
49068   return 0;
49069 }
49070 _ACEOF
49071 rm -f conftest.$ac_objext
49072 if { (ac_try="$ac_compile"
49073 case "(($ac_try" in
49074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49075   *) ac_try_echo=$ac_try;;
49076 esac
49077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49078   (eval "$ac_compile") 2>conftest.er1
49079   ac_status=$?
49080   grep -v '^ *+' conftest.er1 >conftest.err
49081   rm -f conftest.er1
49082   cat conftest.err >&5
49083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49084   (exit $ac_status); } && {
49085          test -z "$ac_c_werror_flag" ||
49086          test ! -s conftest.err
49087        } && test -s conftest.$ac_objext; then
49088   ac_lo=0 ac_mid=0
49089   while :; do
49090     cat >conftest.$ac_ext <<_ACEOF
49091 /* confdefs.h.  */
49092 _ACEOF
49093 cat confdefs.h >>conftest.$ac_ext
49094 cat >>conftest.$ac_ext <<_ACEOF
49095 /* end confdefs.h.  */
49096 $ac_includes_default
49097    typedef int ac__type_sizeof_;
49098 int
49099 main ()
49100 {
49101 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
49102 test_array [0] = 0
49103
49104   ;
49105   return 0;
49106 }
49107 _ACEOF
49108 rm -f conftest.$ac_objext
49109 if { (ac_try="$ac_compile"
49110 case "(($ac_try" in
49111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49112   *) ac_try_echo=$ac_try;;
49113 esac
49114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49115   (eval "$ac_compile") 2>conftest.er1
49116   ac_status=$?
49117   grep -v '^ *+' conftest.er1 >conftest.err
49118   rm -f conftest.er1
49119   cat conftest.err >&5
49120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49121   (exit $ac_status); } && {
49122          test -z "$ac_c_werror_flag" ||
49123          test ! -s conftest.err
49124        } && test -s conftest.$ac_objext; then
49125   ac_hi=$ac_mid; break
49126 else
49127   echo "$as_me: failed program was:" >&5
49128 sed 's/^/| /' conftest.$ac_ext >&5
49129
49130         ac_lo=`expr $ac_mid + 1`
49131                         if test $ac_lo -le $ac_mid; then
49132                           ac_lo= ac_hi=
49133                           break
49134                         fi
49135                         ac_mid=`expr 2 '*' $ac_mid + 1`
49136 fi
49137
49138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49139   done
49140 else
49141   echo "$as_me: failed program was:" >&5
49142 sed 's/^/| /' conftest.$ac_ext >&5
49143
49144         cat >conftest.$ac_ext <<_ACEOF
49145 /* confdefs.h.  */
49146 _ACEOF
49147 cat confdefs.h >>conftest.$ac_ext
49148 cat >>conftest.$ac_ext <<_ACEOF
49149 /* end confdefs.h.  */
49150 $ac_includes_default
49151    typedef int ac__type_sizeof_;
49152 int
49153 main ()
49154 {
49155 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
49156 test_array [0] = 0
49157
49158   ;
49159   return 0;
49160 }
49161 _ACEOF
49162 rm -f conftest.$ac_objext
49163 if { (ac_try="$ac_compile"
49164 case "(($ac_try" in
49165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49166   *) ac_try_echo=$ac_try;;
49167 esac
49168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49169   (eval "$ac_compile") 2>conftest.er1
49170   ac_status=$?
49171   grep -v '^ *+' conftest.er1 >conftest.err
49172   rm -f conftest.er1
49173   cat conftest.err >&5
49174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49175   (exit $ac_status); } && {
49176          test -z "$ac_c_werror_flag" ||
49177          test ! -s conftest.err
49178        } && test -s conftest.$ac_objext; then
49179   ac_hi=-1 ac_mid=-1
49180   while :; do
49181     cat >conftest.$ac_ext <<_ACEOF
49182 /* confdefs.h.  */
49183 _ACEOF
49184 cat confdefs.h >>conftest.$ac_ext
49185 cat >>conftest.$ac_ext <<_ACEOF
49186 /* end confdefs.h.  */
49187 $ac_includes_default
49188    typedef int ac__type_sizeof_;
49189 int
49190 main ()
49191 {
49192 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
49193 test_array [0] = 0
49194
49195   ;
49196   return 0;
49197 }
49198 _ACEOF
49199 rm -f conftest.$ac_objext
49200 if { (ac_try="$ac_compile"
49201 case "(($ac_try" in
49202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49203   *) ac_try_echo=$ac_try;;
49204 esac
49205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49206   (eval "$ac_compile") 2>conftest.er1
49207   ac_status=$?
49208   grep -v '^ *+' conftest.er1 >conftest.err
49209   rm -f conftest.er1
49210   cat conftest.err >&5
49211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49212   (exit $ac_status); } && {
49213          test -z "$ac_c_werror_flag" ||
49214          test ! -s conftest.err
49215        } && test -s conftest.$ac_objext; then
49216   ac_lo=$ac_mid; break
49217 else
49218   echo "$as_me: failed program was:" >&5
49219 sed 's/^/| /' conftest.$ac_ext >&5
49220
49221         ac_hi=`expr '(' $ac_mid ')' - 1`
49222                         if test $ac_mid -le $ac_hi; then
49223                           ac_lo= ac_hi=
49224                           break
49225                         fi
49226                         ac_mid=`expr 2 '*' $ac_mid`
49227 fi
49228
49229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49230   done
49231 else
49232   echo "$as_me: failed program was:" >&5
49233 sed 's/^/| /' conftest.$ac_ext >&5
49234
49235         ac_lo= ac_hi=
49236 fi
49237
49238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49239 fi
49240
49241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49242 # Binary search between lo and hi bounds.
49243 while test "x$ac_lo" != "x$ac_hi"; do
49244   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
49245   cat >conftest.$ac_ext <<_ACEOF
49246 /* confdefs.h.  */
49247 _ACEOF
49248 cat confdefs.h >>conftest.$ac_ext
49249 cat >>conftest.$ac_ext <<_ACEOF
49250 /* end confdefs.h.  */
49251 $ac_includes_default
49252    typedef int ac__type_sizeof_;
49253 int
49254 main ()
49255 {
49256 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
49257 test_array [0] = 0
49258
49259   ;
49260   return 0;
49261 }
49262 _ACEOF
49263 rm -f conftest.$ac_objext
49264 if { (ac_try="$ac_compile"
49265 case "(($ac_try" in
49266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49267   *) ac_try_echo=$ac_try;;
49268 esac
49269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49270   (eval "$ac_compile") 2>conftest.er1
49271   ac_status=$?
49272   grep -v '^ *+' conftest.er1 >conftest.err
49273   rm -f conftest.er1
49274   cat conftest.err >&5
49275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49276   (exit $ac_status); } && {
49277          test -z "$ac_c_werror_flag" ||
49278          test ! -s conftest.err
49279        } && test -s conftest.$ac_objext; then
49280   ac_hi=$ac_mid
49281 else
49282   echo "$as_me: failed program was:" >&5
49283 sed 's/^/| /' conftest.$ac_ext >&5
49284
49285         ac_lo=`expr '(' $ac_mid ')' + 1`
49286 fi
49287
49288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49289 done
49290 case $ac_lo in
49291 ?*) ac_cv_sizeof_int=$ac_lo;;
49292 '') if test "$ac_cv_type_int" = yes; then
49293      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
49294 See \`config.log' for more details." >&5
49295 echo "$as_me: error: cannot compute sizeof (int)
49296 See \`config.log' for more details." >&2;}
49297    { (exit 77); exit 77; }; }
49298    else
49299      ac_cv_sizeof_int=0
49300    fi ;;
49301 esac
49302 else
49303   cat >conftest.$ac_ext <<_ACEOF
49304 /* confdefs.h.  */
49305 _ACEOF
49306 cat confdefs.h >>conftest.$ac_ext
49307 cat >>conftest.$ac_ext <<_ACEOF
49308 /* end confdefs.h.  */
49309 $ac_includes_default
49310    typedef int ac__type_sizeof_;
49311 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
49312 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
49313 #include <stdio.h>
49314 #include <stdlib.h>
49315 int
49316 main ()
49317 {
49318
49319   FILE *f = fopen ("conftest.val", "w");
49320   if (! f)
49321     return 1;
49322   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
49323     {
49324       long int i = longval ();
49325       if (i != ((long int) (sizeof (ac__type_sizeof_))))
49326         return 1;
49327       fprintf (f, "%ld\n", i);
49328     }
49329   else
49330     {
49331       unsigned long int i = ulongval ();
49332       if (i != ((long int) (sizeof (ac__type_sizeof_))))
49333         return 1;
49334       fprintf (f, "%lu\n", i);
49335     }
49336   return ferror (f) || fclose (f) != 0;
49337
49338   ;
49339   return 0;
49340 }
49341 _ACEOF
49342 rm -f conftest$ac_exeext
49343 if { (ac_try="$ac_link"
49344 case "(($ac_try" in
49345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49346   *) ac_try_echo=$ac_try;;
49347 esac
49348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49349   (eval "$ac_link") 2>&5
49350   ac_status=$?
49351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49352   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
49353   { (case "(($ac_try" in
49354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49355   *) ac_try_echo=$ac_try;;
49356 esac
49357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49358   (eval "$ac_try") 2>&5
49359   ac_status=$?
49360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49361   (exit $ac_status); }; }; then
49362   ac_cv_sizeof_int=`cat conftest.val`
49363 else
49364   echo "$as_me: program exited with status $ac_status" >&5
49365 echo "$as_me: failed program was:" >&5
49366 sed 's/^/| /' conftest.$ac_ext >&5
49367
49368 ( exit $ac_status )
49369 if test "$ac_cv_type_int" = yes; then
49370      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
49371 See \`config.log' for more details." >&5
49372 echo "$as_me: error: cannot compute sizeof (int)
49373 See \`config.log' for more details." >&2;}
49374    { (exit 77); exit 77; }; }
49375    else
49376      ac_cv_sizeof_int=0
49377    fi
49378 fi
49379 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
49380 fi
49381 rm -f conftest.val
49382 fi
49383 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
49384 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
49385
49386
49387
49388 cat >>confdefs.h <<_ACEOF
49389 #define SIZEOF_INT $ac_cv_sizeof_int
49390 _ACEOF
49391
49392
49393 { echo "$as_me:$LINENO: checking for long" >&5
49394 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
49395 if test "${ac_cv_type_long+set}" = set; then
49396   echo $ECHO_N "(cached) $ECHO_C" >&6
49397 else
49398   cat >conftest.$ac_ext <<_ACEOF
49399 /* confdefs.h.  */
49400 _ACEOF
49401 cat confdefs.h >>conftest.$ac_ext
49402 cat >>conftest.$ac_ext <<_ACEOF
49403 /* end confdefs.h.  */
49404 $ac_includes_default
49405 typedef long ac__type_new_;
49406 int
49407 main ()
49408 {
49409 if ((ac__type_new_ *) 0)
49410   return 0;
49411 if (sizeof (ac__type_new_))
49412   return 0;
49413   ;
49414   return 0;
49415 }
49416 _ACEOF
49417 rm -f conftest.$ac_objext
49418 if { (ac_try="$ac_compile"
49419 case "(($ac_try" in
49420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49421   *) ac_try_echo=$ac_try;;
49422 esac
49423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49424   (eval "$ac_compile") 2>conftest.er1
49425   ac_status=$?
49426   grep -v '^ *+' conftest.er1 >conftest.err
49427   rm -f conftest.er1
49428   cat conftest.err >&5
49429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49430   (exit $ac_status); } && {
49431          test -z "$ac_c_werror_flag" ||
49432          test ! -s conftest.err
49433        } && test -s conftest.$ac_objext; then
49434   ac_cv_type_long=yes
49435 else
49436   echo "$as_me: failed program was:" >&5
49437 sed 's/^/| /' conftest.$ac_ext >&5
49438
49439         ac_cv_type_long=no
49440 fi
49441
49442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49443 fi
49444 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
49445 echo "${ECHO_T}$ac_cv_type_long" >&6; }
49446
49447 # The cast to long int works around a bug in the HP C Compiler
49448 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
49449 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
49450 # This bug is HP SR number 8606223364.
49451 { echo "$as_me:$LINENO: checking size of long" >&5
49452 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
49453 if test "${ac_cv_sizeof_long+set}" = set; then
49454   echo $ECHO_N "(cached) $ECHO_C" >&6
49455 else
49456   if test "$cross_compiling" = yes; then
49457   # Depending upon the size, compute the lo and hi bounds.
49458 cat >conftest.$ac_ext <<_ACEOF
49459 /* confdefs.h.  */
49460 _ACEOF
49461 cat confdefs.h >>conftest.$ac_ext
49462 cat >>conftest.$ac_ext <<_ACEOF
49463 /* end confdefs.h.  */
49464 $ac_includes_default
49465    typedef long ac__type_sizeof_;
49466 int
49467 main ()
49468 {
49469 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
49470 test_array [0] = 0
49471
49472   ;
49473   return 0;
49474 }
49475 _ACEOF
49476 rm -f conftest.$ac_objext
49477 if { (ac_try="$ac_compile"
49478 case "(($ac_try" in
49479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49480   *) ac_try_echo=$ac_try;;
49481 esac
49482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49483   (eval "$ac_compile") 2>conftest.er1
49484   ac_status=$?
49485   grep -v '^ *+' conftest.er1 >conftest.err
49486   rm -f conftest.er1
49487   cat conftest.err >&5
49488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49489   (exit $ac_status); } && {
49490          test -z "$ac_c_werror_flag" ||
49491          test ! -s conftest.err
49492        } && test -s conftest.$ac_objext; then
49493   ac_lo=0 ac_mid=0
49494   while :; do
49495     cat >conftest.$ac_ext <<_ACEOF
49496 /* confdefs.h.  */
49497 _ACEOF
49498 cat confdefs.h >>conftest.$ac_ext
49499 cat >>conftest.$ac_ext <<_ACEOF
49500 /* end confdefs.h.  */
49501 $ac_includes_default
49502    typedef long ac__type_sizeof_;
49503 int
49504 main ()
49505 {
49506 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
49507 test_array [0] = 0
49508
49509   ;
49510   return 0;
49511 }
49512 _ACEOF
49513 rm -f conftest.$ac_objext
49514 if { (ac_try="$ac_compile"
49515 case "(($ac_try" in
49516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49517   *) ac_try_echo=$ac_try;;
49518 esac
49519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49520   (eval "$ac_compile") 2>conftest.er1
49521   ac_status=$?
49522   grep -v '^ *+' conftest.er1 >conftest.err
49523   rm -f conftest.er1
49524   cat conftest.err >&5
49525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49526   (exit $ac_status); } && {
49527          test -z "$ac_c_werror_flag" ||
49528          test ! -s conftest.err
49529        } && test -s conftest.$ac_objext; then
49530   ac_hi=$ac_mid; break
49531 else
49532   echo "$as_me: failed program was:" >&5
49533 sed 's/^/| /' conftest.$ac_ext >&5
49534
49535         ac_lo=`expr $ac_mid + 1`
49536                         if test $ac_lo -le $ac_mid; then
49537                           ac_lo= ac_hi=
49538                           break
49539                         fi
49540                         ac_mid=`expr 2 '*' $ac_mid + 1`
49541 fi
49542
49543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49544   done
49545 else
49546   echo "$as_me: failed program was:" >&5
49547 sed 's/^/| /' conftest.$ac_ext >&5
49548
49549         cat >conftest.$ac_ext <<_ACEOF
49550 /* confdefs.h.  */
49551 _ACEOF
49552 cat confdefs.h >>conftest.$ac_ext
49553 cat >>conftest.$ac_ext <<_ACEOF
49554 /* end confdefs.h.  */
49555 $ac_includes_default
49556    typedef long ac__type_sizeof_;
49557 int
49558 main ()
49559 {
49560 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
49561 test_array [0] = 0
49562
49563   ;
49564   return 0;
49565 }
49566 _ACEOF
49567 rm -f conftest.$ac_objext
49568 if { (ac_try="$ac_compile"
49569 case "(($ac_try" in
49570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49571   *) ac_try_echo=$ac_try;;
49572 esac
49573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49574   (eval "$ac_compile") 2>conftest.er1
49575   ac_status=$?
49576   grep -v '^ *+' conftest.er1 >conftest.err
49577   rm -f conftest.er1
49578   cat conftest.err >&5
49579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49580   (exit $ac_status); } && {
49581          test -z "$ac_c_werror_flag" ||
49582          test ! -s conftest.err
49583        } && test -s conftest.$ac_objext; then
49584   ac_hi=-1 ac_mid=-1
49585   while :; do
49586     cat >conftest.$ac_ext <<_ACEOF
49587 /* confdefs.h.  */
49588 _ACEOF
49589 cat confdefs.h >>conftest.$ac_ext
49590 cat >>conftest.$ac_ext <<_ACEOF
49591 /* end confdefs.h.  */
49592 $ac_includes_default
49593    typedef long ac__type_sizeof_;
49594 int
49595 main ()
49596 {
49597 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
49598 test_array [0] = 0
49599
49600   ;
49601   return 0;
49602 }
49603 _ACEOF
49604 rm -f conftest.$ac_objext
49605 if { (ac_try="$ac_compile"
49606 case "(($ac_try" in
49607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49608   *) ac_try_echo=$ac_try;;
49609 esac
49610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49611   (eval "$ac_compile") 2>conftest.er1
49612   ac_status=$?
49613   grep -v '^ *+' conftest.er1 >conftest.err
49614   rm -f conftest.er1
49615   cat conftest.err >&5
49616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49617   (exit $ac_status); } && {
49618          test -z "$ac_c_werror_flag" ||
49619          test ! -s conftest.err
49620        } && test -s conftest.$ac_objext; then
49621   ac_lo=$ac_mid; break
49622 else
49623   echo "$as_me: failed program was:" >&5
49624 sed 's/^/| /' conftest.$ac_ext >&5
49625
49626         ac_hi=`expr '(' $ac_mid ')' - 1`
49627                         if test $ac_mid -le $ac_hi; then
49628                           ac_lo= ac_hi=
49629                           break
49630                         fi
49631                         ac_mid=`expr 2 '*' $ac_mid`
49632 fi
49633
49634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49635   done
49636 else
49637   echo "$as_me: failed program was:" >&5
49638 sed 's/^/| /' conftest.$ac_ext >&5
49639
49640         ac_lo= ac_hi=
49641 fi
49642
49643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49644 fi
49645
49646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49647 # Binary search between lo and hi bounds.
49648 while test "x$ac_lo" != "x$ac_hi"; do
49649   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
49650   cat >conftest.$ac_ext <<_ACEOF
49651 /* confdefs.h.  */
49652 _ACEOF
49653 cat confdefs.h >>conftest.$ac_ext
49654 cat >>conftest.$ac_ext <<_ACEOF
49655 /* end confdefs.h.  */
49656 $ac_includes_default
49657    typedef long ac__type_sizeof_;
49658 int
49659 main ()
49660 {
49661 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
49662 test_array [0] = 0
49663
49664   ;
49665   return 0;
49666 }
49667 _ACEOF
49668 rm -f conftest.$ac_objext
49669 if { (ac_try="$ac_compile"
49670 case "(($ac_try" in
49671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49672   *) ac_try_echo=$ac_try;;
49673 esac
49674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49675   (eval "$ac_compile") 2>conftest.er1
49676   ac_status=$?
49677   grep -v '^ *+' conftest.er1 >conftest.err
49678   rm -f conftest.er1
49679   cat conftest.err >&5
49680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49681   (exit $ac_status); } && {
49682          test -z "$ac_c_werror_flag" ||
49683          test ! -s conftest.err
49684        } && test -s conftest.$ac_objext; then
49685   ac_hi=$ac_mid
49686 else
49687   echo "$as_me: failed program was:" >&5
49688 sed 's/^/| /' conftest.$ac_ext >&5
49689
49690         ac_lo=`expr '(' $ac_mid ')' + 1`
49691 fi
49692
49693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49694 done
49695 case $ac_lo in
49696 ?*) ac_cv_sizeof_long=$ac_lo;;
49697 '') if test "$ac_cv_type_long" = yes; then
49698      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
49699 See \`config.log' for more details." >&5
49700 echo "$as_me: error: cannot compute sizeof (long)
49701 See \`config.log' for more details." >&2;}
49702    { (exit 77); exit 77; }; }
49703    else
49704      ac_cv_sizeof_long=0
49705    fi ;;
49706 esac
49707 else
49708   cat >conftest.$ac_ext <<_ACEOF
49709 /* confdefs.h.  */
49710 _ACEOF
49711 cat confdefs.h >>conftest.$ac_ext
49712 cat >>conftest.$ac_ext <<_ACEOF
49713 /* end confdefs.h.  */
49714 $ac_includes_default
49715    typedef long ac__type_sizeof_;
49716 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
49717 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
49718 #include <stdio.h>
49719 #include <stdlib.h>
49720 int
49721 main ()
49722 {
49723
49724   FILE *f = fopen ("conftest.val", "w");
49725   if (! f)
49726     return 1;
49727   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
49728     {
49729       long int i = longval ();
49730       if (i != ((long int) (sizeof (ac__type_sizeof_))))
49731         return 1;
49732       fprintf (f, "%ld\n", i);
49733     }
49734   else
49735     {
49736       unsigned long int i = ulongval ();
49737       if (i != ((long int) (sizeof (ac__type_sizeof_))))
49738         return 1;
49739       fprintf (f, "%lu\n", i);
49740     }
49741   return ferror (f) || fclose (f) != 0;
49742
49743   ;
49744   return 0;
49745 }
49746 _ACEOF
49747 rm -f conftest$ac_exeext
49748 if { (ac_try="$ac_link"
49749 case "(($ac_try" in
49750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49751   *) ac_try_echo=$ac_try;;
49752 esac
49753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49754   (eval "$ac_link") 2>&5
49755   ac_status=$?
49756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49757   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
49758   { (case "(($ac_try" in
49759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49760   *) ac_try_echo=$ac_try;;
49761 esac
49762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49763   (eval "$ac_try") 2>&5
49764   ac_status=$?
49765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49766   (exit $ac_status); }; }; then
49767   ac_cv_sizeof_long=`cat conftest.val`
49768 else
49769   echo "$as_me: program exited with status $ac_status" >&5
49770 echo "$as_me: failed program was:" >&5
49771 sed 's/^/| /' conftest.$ac_ext >&5
49772
49773 ( exit $ac_status )
49774 if test "$ac_cv_type_long" = yes; then
49775      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
49776 See \`config.log' for more details." >&5
49777 echo "$as_me: error: cannot compute sizeof (long)
49778 See \`config.log' for more details." >&2;}
49779    { (exit 77); exit 77; }; }
49780    else
49781      ac_cv_sizeof_long=0
49782    fi
49783 fi
49784 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
49785 fi
49786 rm -f conftest.val
49787 fi
49788 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
49789 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
49790
49791
49792
49793 cat >>confdefs.h <<_ACEOF
49794 #define SIZEOF_LONG $ac_cv_sizeof_long
49795 _ACEOF
49796
49797
49798 { echo "$as_me:$LINENO: checking for long long" >&5
49799 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
49800 if test "${ac_cv_type_long_long+set}" = set; then
49801   echo $ECHO_N "(cached) $ECHO_C" >&6
49802 else
49803   cat >conftest.$ac_ext <<_ACEOF
49804 /* confdefs.h.  */
49805 _ACEOF
49806 cat confdefs.h >>conftest.$ac_ext
49807 cat >>conftest.$ac_ext <<_ACEOF
49808 /* end confdefs.h.  */
49809 $ac_includes_default
49810 typedef long long ac__type_new_;
49811 int
49812 main ()
49813 {
49814 if ((ac__type_new_ *) 0)
49815   return 0;
49816 if (sizeof (ac__type_new_))
49817   return 0;
49818   ;
49819   return 0;
49820 }
49821 _ACEOF
49822 rm -f conftest.$ac_objext
49823 if { (ac_try="$ac_compile"
49824 case "(($ac_try" in
49825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49826   *) ac_try_echo=$ac_try;;
49827 esac
49828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49829   (eval "$ac_compile") 2>conftest.er1
49830   ac_status=$?
49831   grep -v '^ *+' conftest.er1 >conftest.err
49832   rm -f conftest.er1
49833   cat conftest.err >&5
49834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49835   (exit $ac_status); } && {
49836          test -z "$ac_c_werror_flag" ||
49837          test ! -s conftest.err
49838        } && test -s conftest.$ac_objext; then
49839   ac_cv_type_long_long=yes
49840 else
49841   echo "$as_me: failed program was:" >&5
49842 sed 's/^/| /' conftest.$ac_ext >&5
49843
49844         ac_cv_type_long_long=no
49845 fi
49846
49847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49848 fi
49849 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
49850 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
49851
49852 # The cast to long int works around a bug in the HP C Compiler
49853 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
49854 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
49855 # This bug is HP SR number 8606223364.
49856 { echo "$as_me:$LINENO: checking size of long long" >&5
49857 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
49858 if test "${ac_cv_sizeof_long_long+set}" = set; then
49859   echo $ECHO_N "(cached) $ECHO_C" >&6
49860 else
49861   if test "$cross_compiling" = yes; then
49862   # Depending upon the size, compute the lo and hi bounds.
49863 cat >conftest.$ac_ext <<_ACEOF
49864 /* confdefs.h.  */
49865 _ACEOF
49866 cat confdefs.h >>conftest.$ac_ext
49867 cat >>conftest.$ac_ext <<_ACEOF
49868 /* end confdefs.h.  */
49869 $ac_includes_default
49870    typedef long long ac__type_sizeof_;
49871 int
49872 main ()
49873 {
49874 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
49875 test_array [0] = 0
49876
49877   ;
49878   return 0;
49879 }
49880 _ACEOF
49881 rm -f conftest.$ac_objext
49882 if { (ac_try="$ac_compile"
49883 case "(($ac_try" in
49884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49885   *) ac_try_echo=$ac_try;;
49886 esac
49887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49888   (eval "$ac_compile") 2>conftest.er1
49889   ac_status=$?
49890   grep -v '^ *+' conftest.er1 >conftest.err
49891   rm -f conftest.er1
49892   cat conftest.err >&5
49893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49894   (exit $ac_status); } && {
49895          test -z "$ac_c_werror_flag" ||
49896          test ! -s conftest.err
49897        } && test -s conftest.$ac_objext; then
49898   ac_lo=0 ac_mid=0
49899   while :; do
49900     cat >conftest.$ac_ext <<_ACEOF
49901 /* confdefs.h.  */
49902 _ACEOF
49903 cat confdefs.h >>conftest.$ac_ext
49904 cat >>conftest.$ac_ext <<_ACEOF
49905 /* end confdefs.h.  */
49906 $ac_includes_default
49907    typedef long long ac__type_sizeof_;
49908 int
49909 main ()
49910 {
49911 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
49912 test_array [0] = 0
49913
49914   ;
49915   return 0;
49916 }
49917 _ACEOF
49918 rm -f conftest.$ac_objext
49919 if { (ac_try="$ac_compile"
49920 case "(($ac_try" in
49921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49922   *) ac_try_echo=$ac_try;;
49923 esac
49924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49925   (eval "$ac_compile") 2>conftest.er1
49926   ac_status=$?
49927   grep -v '^ *+' conftest.er1 >conftest.err
49928   rm -f conftest.er1
49929   cat conftest.err >&5
49930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49931   (exit $ac_status); } && {
49932          test -z "$ac_c_werror_flag" ||
49933          test ! -s conftest.err
49934        } && test -s conftest.$ac_objext; then
49935   ac_hi=$ac_mid; break
49936 else
49937   echo "$as_me: failed program was:" >&5
49938 sed 's/^/| /' conftest.$ac_ext >&5
49939
49940         ac_lo=`expr $ac_mid + 1`
49941                         if test $ac_lo -le $ac_mid; then
49942                           ac_lo= ac_hi=
49943                           break
49944                         fi
49945                         ac_mid=`expr 2 '*' $ac_mid + 1`
49946 fi
49947
49948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49949   done
49950 else
49951   echo "$as_me: failed program was:" >&5
49952 sed 's/^/| /' conftest.$ac_ext >&5
49953
49954         cat >conftest.$ac_ext <<_ACEOF
49955 /* confdefs.h.  */
49956 _ACEOF
49957 cat confdefs.h >>conftest.$ac_ext
49958 cat >>conftest.$ac_ext <<_ACEOF
49959 /* end confdefs.h.  */
49960 $ac_includes_default
49961    typedef long long ac__type_sizeof_;
49962 int
49963 main ()
49964 {
49965 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
49966 test_array [0] = 0
49967
49968   ;
49969   return 0;
49970 }
49971 _ACEOF
49972 rm -f conftest.$ac_objext
49973 if { (ac_try="$ac_compile"
49974 case "(($ac_try" in
49975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49976   *) ac_try_echo=$ac_try;;
49977 esac
49978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49979   (eval "$ac_compile") 2>conftest.er1
49980   ac_status=$?
49981   grep -v '^ *+' conftest.er1 >conftest.err
49982   rm -f conftest.er1
49983   cat conftest.err >&5
49984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49985   (exit $ac_status); } && {
49986          test -z "$ac_c_werror_flag" ||
49987          test ! -s conftest.err
49988        } && test -s conftest.$ac_objext; then
49989   ac_hi=-1 ac_mid=-1
49990   while :; do
49991     cat >conftest.$ac_ext <<_ACEOF
49992 /* confdefs.h.  */
49993 _ACEOF
49994 cat confdefs.h >>conftest.$ac_ext
49995 cat >>conftest.$ac_ext <<_ACEOF
49996 /* end confdefs.h.  */
49997 $ac_includes_default
49998    typedef long long ac__type_sizeof_;
49999 int
50000 main ()
50001 {
50002 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
50003 test_array [0] = 0
50004
50005   ;
50006   return 0;
50007 }
50008 _ACEOF
50009 rm -f conftest.$ac_objext
50010 if { (ac_try="$ac_compile"
50011 case "(($ac_try" in
50012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50013   *) ac_try_echo=$ac_try;;
50014 esac
50015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50016   (eval "$ac_compile") 2>conftest.er1
50017   ac_status=$?
50018   grep -v '^ *+' conftest.er1 >conftest.err
50019   rm -f conftest.er1
50020   cat conftest.err >&5
50021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50022   (exit $ac_status); } && {
50023          test -z "$ac_c_werror_flag" ||
50024          test ! -s conftest.err
50025        } && test -s conftest.$ac_objext; then
50026   ac_lo=$ac_mid; break
50027 else
50028   echo "$as_me: failed program was:" >&5
50029 sed 's/^/| /' conftest.$ac_ext >&5
50030
50031         ac_hi=`expr '(' $ac_mid ')' - 1`
50032                         if test $ac_mid -le $ac_hi; then
50033                           ac_lo= ac_hi=
50034                           break
50035                         fi
50036                         ac_mid=`expr 2 '*' $ac_mid`
50037 fi
50038
50039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50040   done
50041 else
50042   echo "$as_me: failed program was:" >&5
50043 sed 's/^/| /' conftest.$ac_ext >&5
50044
50045         ac_lo= ac_hi=
50046 fi
50047
50048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50049 fi
50050
50051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50052 # Binary search between lo and hi bounds.
50053 while test "x$ac_lo" != "x$ac_hi"; do
50054   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
50055   cat >conftest.$ac_ext <<_ACEOF
50056 /* confdefs.h.  */
50057 _ACEOF
50058 cat confdefs.h >>conftest.$ac_ext
50059 cat >>conftest.$ac_ext <<_ACEOF
50060 /* end confdefs.h.  */
50061 $ac_includes_default
50062    typedef long long ac__type_sizeof_;
50063 int
50064 main ()
50065 {
50066 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
50067 test_array [0] = 0
50068
50069   ;
50070   return 0;
50071 }
50072 _ACEOF
50073 rm -f conftest.$ac_objext
50074 if { (ac_try="$ac_compile"
50075 case "(($ac_try" in
50076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50077   *) ac_try_echo=$ac_try;;
50078 esac
50079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50080   (eval "$ac_compile") 2>conftest.er1
50081   ac_status=$?
50082   grep -v '^ *+' conftest.er1 >conftest.err
50083   rm -f conftest.er1
50084   cat conftest.err >&5
50085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50086   (exit $ac_status); } && {
50087          test -z "$ac_c_werror_flag" ||
50088          test ! -s conftest.err
50089        } && test -s conftest.$ac_objext; then
50090   ac_hi=$ac_mid
50091 else
50092   echo "$as_me: failed program was:" >&5
50093 sed 's/^/| /' conftest.$ac_ext >&5
50094
50095         ac_lo=`expr '(' $ac_mid ')' + 1`
50096 fi
50097
50098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50099 done
50100 case $ac_lo in
50101 ?*) ac_cv_sizeof_long_long=$ac_lo;;
50102 '') if test "$ac_cv_type_long_long" = yes; then
50103      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
50104 See \`config.log' for more details." >&5
50105 echo "$as_me: error: cannot compute sizeof (long long)
50106 See \`config.log' for more details." >&2;}
50107    { (exit 77); exit 77; }; }
50108    else
50109      ac_cv_sizeof_long_long=0
50110    fi ;;
50111 esac
50112 else
50113   cat >conftest.$ac_ext <<_ACEOF
50114 /* confdefs.h.  */
50115 _ACEOF
50116 cat confdefs.h >>conftest.$ac_ext
50117 cat >>conftest.$ac_ext <<_ACEOF
50118 /* end confdefs.h.  */
50119 $ac_includes_default
50120    typedef long long ac__type_sizeof_;
50121 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
50122 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
50123 #include <stdio.h>
50124 #include <stdlib.h>
50125 int
50126 main ()
50127 {
50128
50129   FILE *f = fopen ("conftest.val", "w");
50130   if (! f)
50131     return 1;
50132   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
50133     {
50134       long int i = longval ();
50135       if (i != ((long int) (sizeof (ac__type_sizeof_))))
50136         return 1;
50137       fprintf (f, "%ld\n", i);
50138     }
50139   else
50140     {
50141       unsigned long int i = ulongval ();
50142       if (i != ((long int) (sizeof (ac__type_sizeof_))))
50143         return 1;
50144       fprintf (f, "%lu\n", i);
50145     }
50146   return ferror (f) || fclose (f) != 0;
50147
50148   ;
50149   return 0;
50150 }
50151 _ACEOF
50152 rm -f conftest$ac_exeext
50153 if { (ac_try="$ac_link"
50154 case "(($ac_try" in
50155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50156   *) ac_try_echo=$ac_try;;
50157 esac
50158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50159   (eval "$ac_link") 2>&5
50160   ac_status=$?
50161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50162   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
50163   { (case "(($ac_try" in
50164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50165   *) ac_try_echo=$ac_try;;
50166 esac
50167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50168   (eval "$ac_try") 2>&5
50169   ac_status=$?
50170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50171   (exit $ac_status); }; }; then
50172   ac_cv_sizeof_long_long=`cat conftest.val`
50173 else
50174   echo "$as_me: program exited with status $ac_status" >&5
50175 echo "$as_me: failed program was:" >&5
50176 sed 's/^/| /' conftest.$ac_ext >&5
50177
50178 ( exit $ac_status )
50179 if test "$ac_cv_type_long_long" = yes; then
50180      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
50181 See \`config.log' for more details." >&5
50182 echo "$as_me: error: cannot compute sizeof (long long)
50183 See \`config.log' for more details." >&2;}
50184    { (exit 77); exit 77; }; }
50185    else
50186      ac_cv_sizeof_long_long=0
50187    fi
50188 fi
50189 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
50190 fi
50191 rm -f conftest.val
50192 fi
50193 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
50194 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
50195
50196
50197
50198 cat >>confdefs.h <<_ACEOF
50199 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
50200 _ACEOF
50201
50202
50203 { echo "$as_me:$LINENO: checking for intmax_t" >&5
50204 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
50205 if test "${ac_cv_type_intmax_t+set}" = set; then
50206   echo $ECHO_N "(cached) $ECHO_C" >&6
50207 else
50208   cat >conftest.$ac_ext <<_ACEOF
50209 /* confdefs.h.  */
50210 _ACEOF
50211 cat confdefs.h >>conftest.$ac_ext
50212 cat >>conftest.$ac_ext <<_ACEOF
50213 /* end confdefs.h.  */
50214 $ac_includes_default
50215 typedef intmax_t ac__type_new_;
50216 int
50217 main ()
50218 {
50219 if ((ac__type_new_ *) 0)
50220   return 0;
50221 if (sizeof (ac__type_new_))
50222   return 0;
50223   ;
50224   return 0;
50225 }
50226 _ACEOF
50227 rm -f conftest.$ac_objext
50228 if { (ac_try="$ac_compile"
50229 case "(($ac_try" in
50230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50231   *) ac_try_echo=$ac_try;;
50232 esac
50233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50234   (eval "$ac_compile") 2>conftest.er1
50235   ac_status=$?
50236   grep -v '^ *+' conftest.er1 >conftest.err
50237   rm -f conftest.er1
50238   cat conftest.err >&5
50239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50240   (exit $ac_status); } && {
50241          test -z "$ac_c_werror_flag" ||
50242          test ! -s conftest.err
50243        } && test -s conftest.$ac_objext; then
50244   ac_cv_type_intmax_t=yes
50245 else
50246   echo "$as_me: failed program was:" >&5
50247 sed 's/^/| /' conftest.$ac_ext >&5
50248
50249         ac_cv_type_intmax_t=no
50250 fi
50251
50252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50253 fi
50254 { echo "$as_me:$LINENO: result: $ac_cv_type_intmax_t" >&5
50255 echo "${ECHO_T}$ac_cv_type_intmax_t" >&6; }
50256
50257 # The cast to long int works around a bug in the HP C Compiler
50258 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
50259 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
50260 # This bug is HP SR number 8606223364.
50261 { echo "$as_me:$LINENO: checking size of intmax_t" >&5
50262 echo $ECHO_N "checking size of intmax_t... $ECHO_C" >&6; }
50263 if test "${ac_cv_sizeof_intmax_t+set}" = set; then
50264   echo $ECHO_N "(cached) $ECHO_C" >&6
50265 else
50266   if test "$cross_compiling" = yes; then
50267   # Depending upon the size, compute the lo and hi bounds.
50268 cat >conftest.$ac_ext <<_ACEOF
50269 /* confdefs.h.  */
50270 _ACEOF
50271 cat confdefs.h >>conftest.$ac_ext
50272 cat >>conftest.$ac_ext <<_ACEOF
50273 /* end confdefs.h.  */
50274 $ac_includes_default
50275    typedef intmax_t ac__type_sizeof_;
50276 int
50277 main ()
50278 {
50279 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
50280 test_array [0] = 0
50281
50282   ;
50283   return 0;
50284 }
50285 _ACEOF
50286 rm -f conftest.$ac_objext
50287 if { (ac_try="$ac_compile"
50288 case "(($ac_try" in
50289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50290   *) ac_try_echo=$ac_try;;
50291 esac
50292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50293   (eval "$ac_compile") 2>conftest.er1
50294   ac_status=$?
50295   grep -v '^ *+' conftest.er1 >conftest.err
50296   rm -f conftest.er1
50297   cat conftest.err >&5
50298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50299   (exit $ac_status); } && {
50300          test -z "$ac_c_werror_flag" ||
50301          test ! -s conftest.err
50302        } && test -s conftest.$ac_objext; then
50303   ac_lo=0 ac_mid=0
50304   while :; do
50305     cat >conftest.$ac_ext <<_ACEOF
50306 /* confdefs.h.  */
50307 _ACEOF
50308 cat confdefs.h >>conftest.$ac_ext
50309 cat >>conftest.$ac_ext <<_ACEOF
50310 /* end confdefs.h.  */
50311 $ac_includes_default
50312    typedef intmax_t ac__type_sizeof_;
50313 int
50314 main ()
50315 {
50316 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
50317 test_array [0] = 0
50318
50319   ;
50320   return 0;
50321 }
50322 _ACEOF
50323 rm -f conftest.$ac_objext
50324 if { (ac_try="$ac_compile"
50325 case "(($ac_try" in
50326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50327   *) ac_try_echo=$ac_try;;
50328 esac
50329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50330   (eval "$ac_compile") 2>conftest.er1
50331   ac_status=$?
50332   grep -v '^ *+' conftest.er1 >conftest.err
50333   rm -f conftest.er1
50334   cat conftest.err >&5
50335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50336   (exit $ac_status); } && {
50337          test -z "$ac_c_werror_flag" ||
50338          test ! -s conftest.err
50339        } && test -s conftest.$ac_objext; then
50340   ac_hi=$ac_mid; break
50341 else
50342   echo "$as_me: failed program was:" >&5
50343 sed 's/^/| /' conftest.$ac_ext >&5
50344
50345         ac_lo=`expr $ac_mid + 1`
50346                         if test $ac_lo -le $ac_mid; then
50347                           ac_lo= ac_hi=
50348                           break
50349                         fi
50350                         ac_mid=`expr 2 '*' $ac_mid + 1`
50351 fi
50352
50353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50354   done
50355 else
50356   echo "$as_me: failed program was:" >&5
50357 sed 's/^/| /' conftest.$ac_ext >&5
50358
50359         cat >conftest.$ac_ext <<_ACEOF
50360 /* confdefs.h.  */
50361 _ACEOF
50362 cat confdefs.h >>conftest.$ac_ext
50363 cat >>conftest.$ac_ext <<_ACEOF
50364 /* end confdefs.h.  */
50365 $ac_includes_default
50366    typedef intmax_t ac__type_sizeof_;
50367 int
50368 main ()
50369 {
50370 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
50371 test_array [0] = 0
50372
50373   ;
50374   return 0;
50375 }
50376 _ACEOF
50377 rm -f conftest.$ac_objext
50378 if { (ac_try="$ac_compile"
50379 case "(($ac_try" in
50380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50381   *) ac_try_echo=$ac_try;;
50382 esac
50383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50384   (eval "$ac_compile") 2>conftest.er1
50385   ac_status=$?
50386   grep -v '^ *+' conftest.er1 >conftest.err
50387   rm -f conftest.er1
50388   cat conftest.err >&5
50389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50390   (exit $ac_status); } && {
50391          test -z "$ac_c_werror_flag" ||
50392          test ! -s conftest.err
50393        } && test -s conftest.$ac_objext; then
50394   ac_hi=-1 ac_mid=-1
50395   while :; do
50396     cat >conftest.$ac_ext <<_ACEOF
50397 /* confdefs.h.  */
50398 _ACEOF
50399 cat confdefs.h >>conftest.$ac_ext
50400 cat >>conftest.$ac_ext <<_ACEOF
50401 /* end confdefs.h.  */
50402 $ac_includes_default
50403    typedef intmax_t ac__type_sizeof_;
50404 int
50405 main ()
50406 {
50407 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
50408 test_array [0] = 0
50409
50410   ;
50411   return 0;
50412 }
50413 _ACEOF
50414 rm -f conftest.$ac_objext
50415 if { (ac_try="$ac_compile"
50416 case "(($ac_try" in
50417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50418   *) ac_try_echo=$ac_try;;
50419 esac
50420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50421   (eval "$ac_compile") 2>conftest.er1
50422   ac_status=$?
50423   grep -v '^ *+' conftest.er1 >conftest.err
50424   rm -f conftest.er1
50425   cat conftest.err >&5
50426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50427   (exit $ac_status); } && {
50428          test -z "$ac_c_werror_flag" ||
50429          test ! -s conftest.err
50430        } && test -s conftest.$ac_objext; then
50431   ac_lo=$ac_mid; break
50432 else
50433   echo "$as_me: failed program was:" >&5
50434 sed 's/^/| /' conftest.$ac_ext >&5
50435
50436         ac_hi=`expr '(' $ac_mid ')' - 1`
50437                         if test $ac_mid -le $ac_hi; then
50438                           ac_lo= ac_hi=
50439                           break
50440                         fi
50441                         ac_mid=`expr 2 '*' $ac_mid`
50442 fi
50443
50444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50445   done
50446 else
50447   echo "$as_me: failed program was:" >&5
50448 sed 's/^/| /' conftest.$ac_ext >&5
50449
50450         ac_lo= ac_hi=
50451 fi
50452
50453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50454 fi
50455
50456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50457 # Binary search between lo and hi bounds.
50458 while test "x$ac_lo" != "x$ac_hi"; do
50459   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
50460   cat >conftest.$ac_ext <<_ACEOF
50461 /* confdefs.h.  */
50462 _ACEOF
50463 cat confdefs.h >>conftest.$ac_ext
50464 cat >>conftest.$ac_ext <<_ACEOF
50465 /* end confdefs.h.  */
50466 $ac_includes_default
50467    typedef intmax_t ac__type_sizeof_;
50468 int
50469 main ()
50470 {
50471 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
50472 test_array [0] = 0
50473
50474   ;
50475   return 0;
50476 }
50477 _ACEOF
50478 rm -f conftest.$ac_objext
50479 if { (ac_try="$ac_compile"
50480 case "(($ac_try" in
50481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50482   *) ac_try_echo=$ac_try;;
50483 esac
50484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50485   (eval "$ac_compile") 2>conftest.er1
50486   ac_status=$?
50487   grep -v '^ *+' conftest.er1 >conftest.err
50488   rm -f conftest.er1
50489   cat conftest.err >&5
50490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50491   (exit $ac_status); } && {
50492          test -z "$ac_c_werror_flag" ||
50493          test ! -s conftest.err
50494        } && test -s conftest.$ac_objext; then
50495   ac_hi=$ac_mid
50496 else
50497   echo "$as_me: failed program was:" >&5
50498 sed 's/^/| /' conftest.$ac_ext >&5
50499
50500         ac_lo=`expr '(' $ac_mid ')' + 1`
50501 fi
50502
50503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50504 done
50505 case $ac_lo in
50506 ?*) ac_cv_sizeof_intmax_t=$ac_lo;;
50507 '') if test "$ac_cv_type_intmax_t" = yes; then
50508      { { echo "$as_me:$LINENO: error: cannot compute sizeof (intmax_t)
50509 See \`config.log' for more details." >&5
50510 echo "$as_me: error: cannot compute sizeof (intmax_t)
50511 See \`config.log' for more details." >&2;}
50512    { (exit 77); exit 77; }; }
50513    else
50514      ac_cv_sizeof_intmax_t=0
50515    fi ;;
50516 esac
50517 else
50518   cat >conftest.$ac_ext <<_ACEOF
50519 /* confdefs.h.  */
50520 _ACEOF
50521 cat confdefs.h >>conftest.$ac_ext
50522 cat >>conftest.$ac_ext <<_ACEOF
50523 /* end confdefs.h.  */
50524 $ac_includes_default
50525    typedef intmax_t ac__type_sizeof_;
50526 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
50527 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
50528 #include <stdio.h>
50529 #include <stdlib.h>
50530 int
50531 main ()
50532 {
50533
50534   FILE *f = fopen ("conftest.val", "w");
50535   if (! f)
50536     return 1;
50537   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
50538     {
50539       long int i = longval ();
50540       if (i != ((long int) (sizeof (ac__type_sizeof_))))
50541         return 1;
50542       fprintf (f, "%ld\n", i);
50543     }
50544   else
50545     {
50546       unsigned long int i = ulongval ();
50547       if (i != ((long int) (sizeof (ac__type_sizeof_))))
50548         return 1;
50549       fprintf (f, "%lu\n", i);
50550     }
50551   return ferror (f) || fclose (f) != 0;
50552
50553   ;
50554   return 0;
50555 }
50556 _ACEOF
50557 rm -f conftest$ac_exeext
50558 if { (ac_try="$ac_link"
50559 case "(($ac_try" in
50560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50561   *) ac_try_echo=$ac_try;;
50562 esac
50563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50564   (eval "$ac_link") 2>&5
50565   ac_status=$?
50566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50567   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
50568   { (case "(($ac_try" in
50569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50570   *) ac_try_echo=$ac_try;;
50571 esac
50572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50573   (eval "$ac_try") 2>&5
50574   ac_status=$?
50575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50576   (exit $ac_status); }; }; then
50577   ac_cv_sizeof_intmax_t=`cat conftest.val`
50578 else
50579   echo "$as_me: program exited with status $ac_status" >&5
50580 echo "$as_me: failed program was:" >&5
50581 sed 's/^/| /' conftest.$ac_ext >&5
50582
50583 ( exit $ac_status )
50584 if test "$ac_cv_type_intmax_t" = yes; then
50585      { { echo "$as_me:$LINENO: error: cannot compute sizeof (intmax_t)
50586 See \`config.log' for more details." >&5
50587 echo "$as_me: error: cannot compute sizeof (intmax_t)
50588 See \`config.log' for more details." >&2;}
50589    { (exit 77); exit 77; }; }
50590    else
50591      ac_cv_sizeof_intmax_t=0
50592    fi
50593 fi
50594 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
50595 fi
50596 rm -f conftest.val
50597 fi
50598 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_intmax_t" >&5
50599 echo "${ECHO_T}$ac_cv_sizeof_intmax_t" >&6; }
50600
50601
50602
50603 cat >>confdefs.h <<_ACEOF
50604 #define SIZEOF_INTMAX_T $ac_cv_sizeof_intmax_t
50605 _ACEOF
50606
50607
50608 { echo "$as_me:$LINENO: checking for off_t" >&5
50609 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
50610 if test "${ac_cv_type_off_t+set}" = set; then
50611   echo $ECHO_N "(cached) $ECHO_C" >&6
50612 else
50613   cat >conftest.$ac_ext <<_ACEOF
50614 /* confdefs.h.  */
50615 _ACEOF
50616 cat confdefs.h >>conftest.$ac_ext
50617 cat >>conftest.$ac_ext <<_ACEOF
50618 /* end confdefs.h.  */
50619 $ac_includes_default
50620 typedef off_t ac__type_new_;
50621 int
50622 main ()
50623 {
50624 if ((ac__type_new_ *) 0)
50625   return 0;
50626 if (sizeof (ac__type_new_))
50627   return 0;
50628   ;
50629   return 0;
50630 }
50631 _ACEOF
50632 rm -f conftest.$ac_objext
50633 if { (ac_try="$ac_compile"
50634 case "(($ac_try" in
50635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50636   *) ac_try_echo=$ac_try;;
50637 esac
50638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50639   (eval "$ac_compile") 2>conftest.er1
50640   ac_status=$?
50641   grep -v '^ *+' conftest.er1 >conftest.err
50642   rm -f conftest.er1
50643   cat conftest.err >&5
50644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50645   (exit $ac_status); } && {
50646          test -z "$ac_c_werror_flag" ||
50647          test ! -s conftest.err
50648        } && test -s conftest.$ac_objext; then
50649   ac_cv_type_off_t=yes
50650 else
50651   echo "$as_me: failed program was:" >&5
50652 sed 's/^/| /' conftest.$ac_ext >&5
50653
50654         ac_cv_type_off_t=no
50655 fi
50656
50657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50658 fi
50659 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
50660 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
50661
50662 # The cast to long int works around a bug in the HP C Compiler
50663 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
50664 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
50665 # This bug is HP SR number 8606223364.
50666 { echo "$as_me:$LINENO: checking size of off_t" >&5
50667 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6; }
50668 if test "${ac_cv_sizeof_off_t+set}" = set; then
50669   echo $ECHO_N "(cached) $ECHO_C" >&6
50670 else
50671   if test "$cross_compiling" = yes; then
50672   # Depending upon the size, compute the lo and hi bounds.
50673 cat >conftest.$ac_ext <<_ACEOF
50674 /* confdefs.h.  */
50675 _ACEOF
50676 cat confdefs.h >>conftest.$ac_ext
50677 cat >>conftest.$ac_ext <<_ACEOF
50678 /* end confdefs.h.  */
50679 $ac_includes_default
50680    typedef off_t ac__type_sizeof_;
50681 int
50682 main ()
50683 {
50684 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
50685 test_array [0] = 0
50686
50687   ;
50688   return 0;
50689 }
50690 _ACEOF
50691 rm -f conftest.$ac_objext
50692 if { (ac_try="$ac_compile"
50693 case "(($ac_try" in
50694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50695   *) ac_try_echo=$ac_try;;
50696 esac
50697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50698   (eval "$ac_compile") 2>conftest.er1
50699   ac_status=$?
50700   grep -v '^ *+' conftest.er1 >conftest.err
50701   rm -f conftest.er1
50702   cat conftest.err >&5
50703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50704   (exit $ac_status); } && {
50705          test -z "$ac_c_werror_flag" ||
50706          test ! -s conftest.err
50707        } && test -s conftest.$ac_objext; then
50708   ac_lo=0 ac_mid=0
50709   while :; do
50710     cat >conftest.$ac_ext <<_ACEOF
50711 /* confdefs.h.  */
50712 _ACEOF
50713 cat confdefs.h >>conftest.$ac_ext
50714 cat >>conftest.$ac_ext <<_ACEOF
50715 /* end confdefs.h.  */
50716 $ac_includes_default
50717    typedef off_t ac__type_sizeof_;
50718 int
50719 main ()
50720 {
50721 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
50722 test_array [0] = 0
50723
50724   ;
50725   return 0;
50726 }
50727 _ACEOF
50728 rm -f conftest.$ac_objext
50729 if { (ac_try="$ac_compile"
50730 case "(($ac_try" in
50731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50732   *) ac_try_echo=$ac_try;;
50733 esac
50734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50735   (eval "$ac_compile") 2>conftest.er1
50736   ac_status=$?
50737   grep -v '^ *+' conftest.er1 >conftest.err
50738   rm -f conftest.er1
50739   cat conftest.err >&5
50740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50741   (exit $ac_status); } && {
50742          test -z "$ac_c_werror_flag" ||
50743          test ! -s conftest.err
50744        } && test -s conftest.$ac_objext; then
50745   ac_hi=$ac_mid; break
50746 else
50747   echo "$as_me: failed program was:" >&5
50748 sed 's/^/| /' conftest.$ac_ext >&5
50749
50750         ac_lo=`expr $ac_mid + 1`
50751                         if test $ac_lo -le $ac_mid; then
50752                           ac_lo= ac_hi=
50753                           break
50754                         fi
50755                         ac_mid=`expr 2 '*' $ac_mid + 1`
50756 fi
50757
50758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50759   done
50760 else
50761   echo "$as_me: failed program was:" >&5
50762 sed 's/^/| /' conftest.$ac_ext >&5
50763
50764         cat >conftest.$ac_ext <<_ACEOF
50765 /* confdefs.h.  */
50766 _ACEOF
50767 cat confdefs.h >>conftest.$ac_ext
50768 cat >>conftest.$ac_ext <<_ACEOF
50769 /* end confdefs.h.  */
50770 $ac_includes_default
50771    typedef off_t ac__type_sizeof_;
50772 int
50773 main ()
50774 {
50775 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
50776 test_array [0] = 0
50777
50778   ;
50779   return 0;
50780 }
50781 _ACEOF
50782 rm -f conftest.$ac_objext
50783 if { (ac_try="$ac_compile"
50784 case "(($ac_try" in
50785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50786   *) ac_try_echo=$ac_try;;
50787 esac
50788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50789   (eval "$ac_compile") 2>conftest.er1
50790   ac_status=$?
50791   grep -v '^ *+' conftest.er1 >conftest.err
50792   rm -f conftest.er1
50793   cat conftest.err >&5
50794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50795   (exit $ac_status); } && {
50796          test -z "$ac_c_werror_flag" ||
50797          test ! -s conftest.err
50798        } && test -s conftest.$ac_objext; then
50799   ac_hi=-1 ac_mid=-1
50800   while :; do
50801     cat >conftest.$ac_ext <<_ACEOF
50802 /* confdefs.h.  */
50803 _ACEOF
50804 cat confdefs.h >>conftest.$ac_ext
50805 cat >>conftest.$ac_ext <<_ACEOF
50806 /* end confdefs.h.  */
50807 $ac_includes_default
50808    typedef off_t ac__type_sizeof_;
50809 int
50810 main ()
50811 {
50812 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
50813 test_array [0] = 0
50814
50815   ;
50816   return 0;
50817 }
50818 _ACEOF
50819 rm -f conftest.$ac_objext
50820 if { (ac_try="$ac_compile"
50821 case "(($ac_try" in
50822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50823   *) ac_try_echo=$ac_try;;
50824 esac
50825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50826   (eval "$ac_compile") 2>conftest.er1
50827   ac_status=$?
50828   grep -v '^ *+' conftest.er1 >conftest.err
50829   rm -f conftest.er1
50830   cat conftest.err >&5
50831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50832   (exit $ac_status); } && {
50833          test -z "$ac_c_werror_flag" ||
50834          test ! -s conftest.err
50835        } && test -s conftest.$ac_objext; then
50836   ac_lo=$ac_mid; break
50837 else
50838   echo "$as_me: failed program was:" >&5
50839 sed 's/^/| /' conftest.$ac_ext >&5
50840
50841         ac_hi=`expr '(' $ac_mid ')' - 1`
50842                         if test $ac_mid -le $ac_hi; then
50843                           ac_lo= ac_hi=
50844                           break
50845                         fi
50846                         ac_mid=`expr 2 '*' $ac_mid`
50847 fi
50848
50849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50850   done
50851 else
50852   echo "$as_me: failed program was:" >&5
50853 sed 's/^/| /' conftest.$ac_ext >&5
50854
50855         ac_lo= ac_hi=
50856 fi
50857
50858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50859 fi
50860
50861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50862 # Binary search between lo and hi bounds.
50863 while test "x$ac_lo" != "x$ac_hi"; do
50864   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
50865   cat >conftest.$ac_ext <<_ACEOF
50866 /* confdefs.h.  */
50867 _ACEOF
50868 cat confdefs.h >>conftest.$ac_ext
50869 cat >>conftest.$ac_ext <<_ACEOF
50870 /* end confdefs.h.  */
50871 $ac_includes_default
50872    typedef off_t ac__type_sizeof_;
50873 int
50874 main ()
50875 {
50876 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
50877 test_array [0] = 0
50878
50879   ;
50880   return 0;
50881 }
50882 _ACEOF
50883 rm -f conftest.$ac_objext
50884 if { (ac_try="$ac_compile"
50885 case "(($ac_try" in
50886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50887   *) ac_try_echo=$ac_try;;
50888 esac
50889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50890   (eval "$ac_compile") 2>conftest.er1
50891   ac_status=$?
50892   grep -v '^ *+' conftest.er1 >conftest.err
50893   rm -f conftest.er1
50894   cat conftest.err >&5
50895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50896   (exit $ac_status); } && {
50897          test -z "$ac_c_werror_flag" ||
50898          test ! -s conftest.err
50899        } && test -s conftest.$ac_objext; then
50900   ac_hi=$ac_mid
50901 else
50902   echo "$as_me: failed program was:" >&5
50903 sed 's/^/| /' conftest.$ac_ext >&5
50904
50905         ac_lo=`expr '(' $ac_mid ')' + 1`
50906 fi
50907
50908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50909 done
50910 case $ac_lo in
50911 ?*) ac_cv_sizeof_off_t=$ac_lo;;
50912 '') if test "$ac_cv_type_off_t" = yes; then
50913      { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
50914 See \`config.log' for more details." >&5
50915 echo "$as_me: error: cannot compute sizeof (off_t)
50916 See \`config.log' for more details." >&2;}
50917    { (exit 77); exit 77; }; }
50918    else
50919      ac_cv_sizeof_off_t=0
50920    fi ;;
50921 esac
50922 else
50923   cat >conftest.$ac_ext <<_ACEOF
50924 /* confdefs.h.  */
50925 _ACEOF
50926 cat confdefs.h >>conftest.$ac_ext
50927 cat >>conftest.$ac_ext <<_ACEOF
50928 /* end confdefs.h.  */
50929 $ac_includes_default
50930    typedef off_t ac__type_sizeof_;
50931 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
50932 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
50933 #include <stdio.h>
50934 #include <stdlib.h>
50935 int
50936 main ()
50937 {
50938
50939   FILE *f = fopen ("conftest.val", "w");
50940   if (! f)
50941     return 1;
50942   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
50943     {
50944       long int i = longval ();
50945       if (i != ((long int) (sizeof (ac__type_sizeof_))))
50946         return 1;
50947       fprintf (f, "%ld\n", i);
50948     }
50949   else
50950     {
50951       unsigned long int i = ulongval ();
50952       if (i != ((long int) (sizeof (ac__type_sizeof_))))
50953         return 1;
50954       fprintf (f, "%lu\n", i);
50955     }
50956   return ferror (f) || fclose (f) != 0;
50957
50958   ;
50959   return 0;
50960 }
50961 _ACEOF
50962 rm -f conftest$ac_exeext
50963 if { (ac_try="$ac_link"
50964 case "(($ac_try" in
50965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50966   *) ac_try_echo=$ac_try;;
50967 esac
50968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50969   (eval "$ac_link") 2>&5
50970   ac_status=$?
50971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50972   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
50973   { (case "(($ac_try" in
50974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50975   *) ac_try_echo=$ac_try;;
50976 esac
50977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50978   (eval "$ac_try") 2>&5
50979   ac_status=$?
50980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50981   (exit $ac_status); }; }; then
50982   ac_cv_sizeof_off_t=`cat conftest.val`
50983 else
50984   echo "$as_me: program exited with status $ac_status" >&5
50985 echo "$as_me: failed program was:" >&5
50986 sed 's/^/| /' conftest.$ac_ext >&5
50987
50988 ( exit $ac_status )
50989 if test "$ac_cv_type_off_t" = yes; then
50990      { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
50991 See \`config.log' for more details." >&5
50992 echo "$as_me: error: cannot compute sizeof (off_t)
50993 See \`config.log' for more details." >&2;}
50994    { (exit 77); exit 77; }; }
50995    else
50996      ac_cv_sizeof_off_t=0
50997    fi
50998 fi
50999 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
51000 fi
51001 rm -f conftest.val
51002 fi
51003 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
51004 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; }
51005
51006
51007
51008 cat >>confdefs.h <<_ACEOF
51009 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
51010 _ACEOF
51011
51012
51013 { echo "$as_me:$LINENO: checking for size_t" >&5
51014 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
51015 if test "${ac_cv_type_size_t+set}" = set; then
51016   echo $ECHO_N "(cached) $ECHO_C" >&6
51017 else
51018   cat >conftest.$ac_ext <<_ACEOF
51019 /* confdefs.h.  */
51020 _ACEOF
51021 cat confdefs.h >>conftest.$ac_ext
51022 cat >>conftest.$ac_ext <<_ACEOF
51023 /* end confdefs.h.  */
51024 $ac_includes_default
51025 typedef size_t ac__type_new_;
51026 int
51027 main ()
51028 {
51029 if ((ac__type_new_ *) 0)
51030   return 0;
51031 if (sizeof (ac__type_new_))
51032   return 0;
51033   ;
51034   return 0;
51035 }
51036 _ACEOF
51037 rm -f conftest.$ac_objext
51038 if { (ac_try="$ac_compile"
51039 case "(($ac_try" in
51040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51041   *) ac_try_echo=$ac_try;;
51042 esac
51043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51044   (eval "$ac_compile") 2>conftest.er1
51045   ac_status=$?
51046   grep -v '^ *+' conftest.er1 >conftest.err
51047   rm -f conftest.er1
51048   cat conftest.err >&5
51049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51050   (exit $ac_status); } && {
51051          test -z "$ac_c_werror_flag" ||
51052          test ! -s conftest.err
51053        } && test -s conftest.$ac_objext; then
51054   ac_cv_type_size_t=yes
51055 else
51056   echo "$as_me: failed program was:" >&5
51057 sed 's/^/| /' conftest.$ac_ext >&5
51058
51059         ac_cv_type_size_t=no
51060 fi
51061
51062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51063 fi
51064 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
51065 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
51066
51067 # The cast to long int works around a bug in the HP C Compiler
51068 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
51069 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
51070 # This bug is HP SR number 8606223364.
51071 { echo "$as_me:$LINENO: checking size of size_t" >&5
51072 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
51073 if test "${ac_cv_sizeof_size_t+set}" = set; then
51074   echo $ECHO_N "(cached) $ECHO_C" >&6
51075 else
51076   if test "$cross_compiling" = yes; then
51077   # Depending upon the size, compute the lo and hi bounds.
51078 cat >conftest.$ac_ext <<_ACEOF
51079 /* confdefs.h.  */
51080 _ACEOF
51081 cat confdefs.h >>conftest.$ac_ext
51082 cat >>conftest.$ac_ext <<_ACEOF
51083 /* end confdefs.h.  */
51084 $ac_includes_default
51085    typedef size_t ac__type_sizeof_;
51086 int
51087 main ()
51088 {
51089 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
51090 test_array [0] = 0
51091
51092   ;
51093   return 0;
51094 }
51095 _ACEOF
51096 rm -f conftest.$ac_objext
51097 if { (ac_try="$ac_compile"
51098 case "(($ac_try" in
51099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51100   *) ac_try_echo=$ac_try;;
51101 esac
51102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51103   (eval "$ac_compile") 2>conftest.er1
51104   ac_status=$?
51105   grep -v '^ *+' conftest.er1 >conftest.err
51106   rm -f conftest.er1
51107   cat conftest.err >&5
51108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51109   (exit $ac_status); } && {
51110          test -z "$ac_c_werror_flag" ||
51111          test ! -s conftest.err
51112        } && test -s conftest.$ac_objext; then
51113   ac_lo=0 ac_mid=0
51114   while :; do
51115     cat >conftest.$ac_ext <<_ACEOF
51116 /* confdefs.h.  */
51117 _ACEOF
51118 cat confdefs.h >>conftest.$ac_ext
51119 cat >>conftest.$ac_ext <<_ACEOF
51120 /* end confdefs.h.  */
51121 $ac_includes_default
51122    typedef size_t ac__type_sizeof_;
51123 int
51124 main ()
51125 {
51126 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
51127 test_array [0] = 0
51128
51129   ;
51130   return 0;
51131 }
51132 _ACEOF
51133 rm -f conftest.$ac_objext
51134 if { (ac_try="$ac_compile"
51135 case "(($ac_try" in
51136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51137   *) ac_try_echo=$ac_try;;
51138 esac
51139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51140   (eval "$ac_compile") 2>conftest.er1
51141   ac_status=$?
51142   grep -v '^ *+' conftest.er1 >conftest.err
51143   rm -f conftest.er1
51144   cat conftest.err >&5
51145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51146   (exit $ac_status); } && {
51147          test -z "$ac_c_werror_flag" ||
51148          test ! -s conftest.err
51149        } && test -s conftest.$ac_objext; then
51150   ac_hi=$ac_mid; break
51151 else
51152   echo "$as_me: failed program was:" >&5
51153 sed 's/^/| /' conftest.$ac_ext >&5
51154
51155         ac_lo=`expr $ac_mid + 1`
51156                         if test $ac_lo -le $ac_mid; then
51157                           ac_lo= ac_hi=
51158                           break
51159                         fi
51160                         ac_mid=`expr 2 '*' $ac_mid + 1`
51161 fi
51162
51163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51164   done
51165 else
51166   echo "$as_me: failed program was:" >&5
51167 sed 's/^/| /' conftest.$ac_ext >&5
51168
51169         cat >conftest.$ac_ext <<_ACEOF
51170 /* confdefs.h.  */
51171 _ACEOF
51172 cat confdefs.h >>conftest.$ac_ext
51173 cat >>conftest.$ac_ext <<_ACEOF
51174 /* end confdefs.h.  */
51175 $ac_includes_default
51176    typedef size_t ac__type_sizeof_;
51177 int
51178 main ()
51179 {
51180 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
51181 test_array [0] = 0
51182
51183   ;
51184   return 0;
51185 }
51186 _ACEOF
51187 rm -f conftest.$ac_objext
51188 if { (ac_try="$ac_compile"
51189 case "(($ac_try" in
51190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51191   *) ac_try_echo=$ac_try;;
51192 esac
51193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51194   (eval "$ac_compile") 2>conftest.er1
51195   ac_status=$?
51196   grep -v '^ *+' conftest.er1 >conftest.err
51197   rm -f conftest.er1
51198   cat conftest.err >&5
51199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51200   (exit $ac_status); } && {
51201          test -z "$ac_c_werror_flag" ||
51202          test ! -s conftest.err
51203        } && test -s conftest.$ac_objext; then
51204   ac_hi=-1 ac_mid=-1
51205   while :; do
51206     cat >conftest.$ac_ext <<_ACEOF
51207 /* confdefs.h.  */
51208 _ACEOF
51209 cat confdefs.h >>conftest.$ac_ext
51210 cat >>conftest.$ac_ext <<_ACEOF
51211 /* end confdefs.h.  */
51212 $ac_includes_default
51213    typedef size_t ac__type_sizeof_;
51214 int
51215 main ()
51216 {
51217 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
51218 test_array [0] = 0
51219
51220   ;
51221   return 0;
51222 }
51223 _ACEOF
51224 rm -f conftest.$ac_objext
51225 if { (ac_try="$ac_compile"
51226 case "(($ac_try" in
51227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51228   *) ac_try_echo=$ac_try;;
51229 esac
51230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51231   (eval "$ac_compile") 2>conftest.er1
51232   ac_status=$?
51233   grep -v '^ *+' conftest.er1 >conftest.err
51234   rm -f conftest.er1
51235   cat conftest.err >&5
51236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51237   (exit $ac_status); } && {
51238          test -z "$ac_c_werror_flag" ||
51239          test ! -s conftest.err
51240        } && test -s conftest.$ac_objext; then
51241   ac_lo=$ac_mid; break
51242 else
51243   echo "$as_me: failed program was:" >&5
51244 sed 's/^/| /' conftest.$ac_ext >&5
51245
51246         ac_hi=`expr '(' $ac_mid ')' - 1`
51247                         if test $ac_mid -le $ac_hi; then
51248                           ac_lo= ac_hi=
51249                           break
51250                         fi
51251                         ac_mid=`expr 2 '*' $ac_mid`
51252 fi
51253
51254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51255   done
51256 else
51257   echo "$as_me: failed program was:" >&5
51258 sed 's/^/| /' conftest.$ac_ext >&5
51259
51260         ac_lo= ac_hi=
51261 fi
51262
51263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51264 fi
51265
51266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51267 # Binary search between lo and hi bounds.
51268 while test "x$ac_lo" != "x$ac_hi"; do
51269   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
51270   cat >conftest.$ac_ext <<_ACEOF
51271 /* confdefs.h.  */
51272 _ACEOF
51273 cat confdefs.h >>conftest.$ac_ext
51274 cat >>conftest.$ac_ext <<_ACEOF
51275 /* end confdefs.h.  */
51276 $ac_includes_default
51277    typedef size_t ac__type_sizeof_;
51278 int
51279 main ()
51280 {
51281 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
51282 test_array [0] = 0
51283
51284   ;
51285   return 0;
51286 }
51287 _ACEOF
51288 rm -f conftest.$ac_objext
51289 if { (ac_try="$ac_compile"
51290 case "(($ac_try" in
51291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51292   *) ac_try_echo=$ac_try;;
51293 esac
51294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51295   (eval "$ac_compile") 2>conftest.er1
51296   ac_status=$?
51297   grep -v '^ *+' conftest.er1 >conftest.err
51298   rm -f conftest.er1
51299   cat conftest.err >&5
51300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51301   (exit $ac_status); } && {
51302          test -z "$ac_c_werror_flag" ||
51303          test ! -s conftest.err
51304        } && test -s conftest.$ac_objext; then
51305   ac_hi=$ac_mid
51306 else
51307   echo "$as_me: failed program was:" >&5
51308 sed 's/^/| /' conftest.$ac_ext >&5
51309
51310         ac_lo=`expr '(' $ac_mid ')' + 1`
51311 fi
51312
51313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51314 done
51315 case $ac_lo in
51316 ?*) ac_cv_sizeof_size_t=$ac_lo;;
51317 '') if test "$ac_cv_type_size_t" = yes; then
51318      { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
51319 See \`config.log' for more details." >&5
51320 echo "$as_me: error: cannot compute sizeof (size_t)
51321 See \`config.log' for more details." >&2;}
51322    { (exit 77); exit 77; }; }
51323    else
51324      ac_cv_sizeof_size_t=0
51325    fi ;;
51326 esac
51327 else
51328   cat >conftest.$ac_ext <<_ACEOF
51329 /* confdefs.h.  */
51330 _ACEOF
51331 cat confdefs.h >>conftest.$ac_ext
51332 cat >>conftest.$ac_ext <<_ACEOF
51333 /* end confdefs.h.  */
51334 $ac_includes_default
51335    typedef size_t ac__type_sizeof_;
51336 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
51337 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
51338 #include <stdio.h>
51339 #include <stdlib.h>
51340 int
51341 main ()
51342 {
51343
51344   FILE *f = fopen ("conftest.val", "w");
51345   if (! f)
51346     return 1;
51347   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
51348     {
51349       long int i = longval ();
51350       if (i != ((long int) (sizeof (ac__type_sizeof_))))
51351         return 1;
51352       fprintf (f, "%ld\n", i);
51353     }
51354   else
51355     {
51356       unsigned long int i = ulongval ();
51357       if (i != ((long int) (sizeof (ac__type_sizeof_))))
51358         return 1;
51359       fprintf (f, "%lu\n", i);
51360     }
51361   return ferror (f) || fclose (f) != 0;
51362
51363   ;
51364   return 0;
51365 }
51366 _ACEOF
51367 rm -f conftest$ac_exeext
51368 if { (ac_try="$ac_link"
51369 case "(($ac_try" in
51370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51371   *) ac_try_echo=$ac_try;;
51372 esac
51373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51374   (eval "$ac_link") 2>&5
51375   ac_status=$?
51376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51377   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
51378   { (case "(($ac_try" in
51379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51380   *) ac_try_echo=$ac_try;;
51381 esac
51382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51383   (eval "$ac_try") 2>&5
51384   ac_status=$?
51385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51386   (exit $ac_status); }; }; then
51387   ac_cv_sizeof_size_t=`cat conftest.val`
51388 else
51389   echo "$as_me: program exited with status $ac_status" >&5
51390 echo "$as_me: failed program was:" >&5
51391 sed 's/^/| /' conftest.$ac_ext >&5
51392
51393 ( exit $ac_status )
51394 if test "$ac_cv_type_size_t" = yes; then
51395      { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
51396 See \`config.log' for more details." >&5
51397 echo "$as_me: error: cannot compute sizeof (size_t)
51398 See \`config.log' for more details." >&2;}
51399    { (exit 77); exit 77; }; }
51400    else
51401      ac_cv_sizeof_size_t=0
51402    fi
51403 fi
51404 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
51405 fi
51406 rm -f conftest.val
51407 fi
51408 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
51409 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
51410
51411
51412
51413 cat >>confdefs.h <<_ACEOF
51414 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
51415 _ACEOF
51416
51417
51418 { echo "$as_me:$LINENO: checking for ssize_t" >&5
51419 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
51420 if test "${ac_cv_type_ssize_t+set}" = set; then
51421   echo $ECHO_N "(cached) $ECHO_C" >&6
51422 else
51423   cat >conftest.$ac_ext <<_ACEOF
51424 /* confdefs.h.  */
51425 _ACEOF
51426 cat confdefs.h >>conftest.$ac_ext
51427 cat >>conftest.$ac_ext <<_ACEOF
51428 /* end confdefs.h.  */
51429 $ac_includes_default
51430 typedef ssize_t ac__type_new_;
51431 int
51432 main ()
51433 {
51434 if ((ac__type_new_ *) 0)
51435   return 0;
51436 if (sizeof (ac__type_new_))
51437   return 0;
51438   ;
51439   return 0;
51440 }
51441 _ACEOF
51442 rm -f conftest.$ac_objext
51443 if { (ac_try="$ac_compile"
51444 case "(($ac_try" in
51445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51446   *) ac_try_echo=$ac_try;;
51447 esac
51448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51449   (eval "$ac_compile") 2>conftest.er1
51450   ac_status=$?
51451   grep -v '^ *+' conftest.er1 >conftest.err
51452   rm -f conftest.er1
51453   cat conftest.err >&5
51454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51455   (exit $ac_status); } && {
51456          test -z "$ac_c_werror_flag" ||
51457          test ! -s conftest.err
51458        } && test -s conftest.$ac_objext; then
51459   ac_cv_type_ssize_t=yes
51460 else
51461   echo "$as_me: failed program was:" >&5
51462 sed 's/^/| /' conftest.$ac_ext >&5
51463
51464         ac_cv_type_ssize_t=no
51465 fi
51466
51467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51468 fi
51469 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
51470 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
51471
51472 # The cast to long int works around a bug in the HP C Compiler
51473 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
51474 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
51475 # This bug is HP SR number 8606223364.
51476 { echo "$as_me:$LINENO: checking size of ssize_t" >&5
51477 echo $ECHO_N "checking size of ssize_t... $ECHO_C" >&6; }
51478 if test "${ac_cv_sizeof_ssize_t+set}" = set; then
51479   echo $ECHO_N "(cached) $ECHO_C" >&6
51480 else
51481   if test "$cross_compiling" = yes; then
51482   # Depending upon the size, compute the lo and hi bounds.
51483 cat >conftest.$ac_ext <<_ACEOF
51484 /* confdefs.h.  */
51485 _ACEOF
51486 cat confdefs.h >>conftest.$ac_ext
51487 cat >>conftest.$ac_ext <<_ACEOF
51488 /* end confdefs.h.  */
51489 $ac_includes_default
51490    typedef ssize_t ac__type_sizeof_;
51491 int
51492 main ()
51493 {
51494 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
51495 test_array [0] = 0
51496
51497   ;
51498   return 0;
51499 }
51500 _ACEOF
51501 rm -f conftest.$ac_objext
51502 if { (ac_try="$ac_compile"
51503 case "(($ac_try" in
51504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51505   *) ac_try_echo=$ac_try;;
51506 esac
51507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51508   (eval "$ac_compile") 2>conftest.er1
51509   ac_status=$?
51510   grep -v '^ *+' conftest.er1 >conftest.err
51511   rm -f conftest.er1
51512   cat conftest.err >&5
51513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51514   (exit $ac_status); } && {
51515          test -z "$ac_c_werror_flag" ||
51516          test ! -s conftest.err
51517        } && test -s conftest.$ac_objext; then
51518   ac_lo=0 ac_mid=0
51519   while :; do
51520     cat >conftest.$ac_ext <<_ACEOF
51521 /* confdefs.h.  */
51522 _ACEOF
51523 cat confdefs.h >>conftest.$ac_ext
51524 cat >>conftest.$ac_ext <<_ACEOF
51525 /* end confdefs.h.  */
51526 $ac_includes_default
51527    typedef ssize_t ac__type_sizeof_;
51528 int
51529 main ()
51530 {
51531 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
51532 test_array [0] = 0
51533
51534   ;
51535   return 0;
51536 }
51537 _ACEOF
51538 rm -f conftest.$ac_objext
51539 if { (ac_try="$ac_compile"
51540 case "(($ac_try" in
51541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51542   *) ac_try_echo=$ac_try;;
51543 esac
51544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51545   (eval "$ac_compile") 2>conftest.er1
51546   ac_status=$?
51547   grep -v '^ *+' conftest.er1 >conftest.err
51548   rm -f conftest.er1
51549   cat conftest.err >&5
51550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51551   (exit $ac_status); } && {
51552          test -z "$ac_c_werror_flag" ||
51553          test ! -s conftest.err
51554        } && test -s conftest.$ac_objext; then
51555   ac_hi=$ac_mid; break
51556 else
51557   echo "$as_me: failed program was:" >&5
51558 sed 's/^/| /' conftest.$ac_ext >&5
51559
51560         ac_lo=`expr $ac_mid + 1`
51561                         if test $ac_lo -le $ac_mid; then
51562                           ac_lo= ac_hi=
51563                           break
51564                         fi
51565                         ac_mid=`expr 2 '*' $ac_mid + 1`
51566 fi
51567
51568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51569   done
51570 else
51571   echo "$as_me: failed program was:" >&5
51572 sed 's/^/| /' conftest.$ac_ext >&5
51573
51574         cat >conftest.$ac_ext <<_ACEOF
51575 /* confdefs.h.  */
51576 _ACEOF
51577 cat confdefs.h >>conftest.$ac_ext
51578 cat >>conftest.$ac_ext <<_ACEOF
51579 /* end confdefs.h.  */
51580 $ac_includes_default
51581    typedef ssize_t ac__type_sizeof_;
51582 int
51583 main ()
51584 {
51585 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
51586 test_array [0] = 0
51587
51588   ;
51589   return 0;
51590 }
51591 _ACEOF
51592 rm -f conftest.$ac_objext
51593 if { (ac_try="$ac_compile"
51594 case "(($ac_try" in
51595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51596   *) ac_try_echo=$ac_try;;
51597 esac
51598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51599   (eval "$ac_compile") 2>conftest.er1
51600   ac_status=$?
51601   grep -v '^ *+' conftest.er1 >conftest.err
51602   rm -f conftest.er1
51603   cat conftest.err >&5
51604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51605   (exit $ac_status); } && {
51606          test -z "$ac_c_werror_flag" ||
51607          test ! -s conftest.err
51608        } && test -s conftest.$ac_objext; then
51609   ac_hi=-1 ac_mid=-1
51610   while :; do
51611     cat >conftest.$ac_ext <<_ACEOF
51612 /* confdefs.h.  */
51613 _ACEOF
51614 cat confdefs.h >>conftest.$ac_ext
51615 cat >>conftest.$ac_ext <<_ACEOF
51616 /* end confdefs.h.  */
51617 $ac_includes_default
51618    typedef ssize_t ac__type_sizeof_;
51619 int
51620 main ()
51621 {
51622 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
51623 test_array [0] = 0
51624
51625   ;
51626   return 0;
51627 }
51628 _ACEOF
51629 rm -f conftest.$ac_objext
51630 if { (ac_try="$ac_compile"
51631 case "(($ac_try" in
51632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51633   *) ac_try_echo=$ac_try;;
51634 esac
51635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51636   (eval "$ac_compile") 2>conftest.er1
51637   ac_status=$?
51638   grep -v '^ *+' conftest.er1 >conftest.err
51639   rm -f conftest.er1
51640   cat conftest.err >&5
51641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51642   (exit $ac_status); } && {
51643          test -z "$ac_c_werror_flag" ||
51644          test ! -s conftest.err
51645        } && test -s conftest.$ac_objext; then
51646   ac_lo=$ac_mid; break
51647 else
51648   echo "$as_me: failed program was:" >&5
51649 sed 's/^/| /' conftest.$ac_ext >&5
51650
51651         ac_hi=`expr '(' $ac_mid ')' - 1`
51652                         if test $ac_mid -le $ac_hi; then
51653                           ac_lo= ac_hi=
51654                           break
51655                         fi
51656                         ac_mid=`expr 2 '*' $ac_mid`
51657 fi
51658
51659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51660   done
51661 else
51662   echo "$as_me: failed program was:" >&5
51663 sed 's/^/| /' conftest.$ac_ext >&5
51664
51665         ac_lo= ac_hi=
51666 fi
51667
51668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51669 fi
51670
51671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51672 # Binary search between lo and hi bounds.
51673 while test "x$ac_lo" != "x$ac_hi"; do
51674   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
51675   cat >conftest.$ac_ext <<_ACEOF
51676 /* confdefs.h.  */
51677 _ACEOF
51678 cat confdefs.h >>conftest.$ac_ext
51679 cat >>conftest.$ac_ext <<_ACEOF
51680 /* end confdefs.h.  */
51681 $ac_includes_default
51682    typedef ssize_t ac__type_sizeof_;
51683 int
51684 main ()
51685 {
51686 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
51687 test_array [0] = 0
51688
51689   ;
51690   return 0;
51691 }
51692 _ACEOF
51693 rm -f conftest.$ac_objext
51694 if { (ac_try="$ac_compile"
51695 case "(($ac_try" in
51696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51697   *) ac_try_echo=$ac_try;;
51698 esac
51699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51700   (eval "$ac_compile") 2>conftest.er1
51701   ac_status=$?
51702   grep -v '^ *+' conftest.er1 >conftest.err
51703   rm -f conftest.er1
51704   cat conftest.err >&5
51705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51706   (exit $ac_status); } && {
51707          test -z "$ac_c_werror_flag" ||
51708          test ! -s conftest.err
51709        } && test -s conftest.$ac_objext; then
51710   ac_hi=$ac_mid
51711 else
51712   echo "$as_me: failed program was:" >&5
51713 sed 's/^/| /' conftest.$ac_ext >&5
51714
51715         ac_lo=`expr '(' $ac_mid ')' + 1`
51716 fi
51717
51718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51719 done
51720 case $ac_lo in
51721 ?*) ac_cv_sizeof_ssize_t=$ac_lo;;
51722 '') if test "$ac_cv_type_ssize_t" = yes; then
51723      { { echo "$as_me:$LINENO: error: cannot compute sizeof (ssize_t)
51724 See \`config.log' for more details." >&5
51725 echo "$as_me: error: cannot compute sizeof (ssize_t)
51726 See \`config.log' for more details." >&2;}
51727    { (exit 77); exit 77; }; }
51728    else
51729      ac_cv_sizeof_ssize_t=0
51730    fi ;;
51731 esac
51732 else
51733   cat >conftest.$ac_ext <<_ACEOF
51734 /* confdefs.h.  */
51735 _ACEOF
51736 cat confdefs.h >>conftest.$ac_ext
51737 cat >>conftest.$ac_ext <<_ACEOF
51738 /* end confdefs.h.  */
51739 $ac_includes_default
51740    typedef ssize_t ac__type_sizeof_;
51741 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
51742 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
51743 #include <stdio.h>
51744 #include <stdlib.h>
51745 int
51746 main ()
51747 {
51748
51749   FILE *f = fopen ("conftest.val", "w");
51750   if (! f)
51751     return 1;
51752   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
51753     {
51754       long int i = longval ();
51755       if (i != ((long int) (sizeof (ac__type_sizeof_))))
51756         return 1;
51757       fprintf (f, "%ld\n", i);
51758     }
51759   else
51760     {
51761       unsigned long int i = ulongval ();
51762       if (i != ((long int) (sizeof (ac__type_sizeof_))))
51763         return 1;
51764       fprintf (f, "%lu\n", i);
51765     }
51766   return ferror (f) || fclose (f) != 0;
51767
51768   ;
51769   return 0;
51770 }
51771 _ACEOF
51772 rm -f conftest$ac_exeext
51773 if { (ac_try="$ac_link"
51774 case "(($ac_try" in
51775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51776   *) ac_try_echo=$ac_try;;
51777 esac
51778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51779   (eval "$ac_link") 2>&5
51780   ac_status=$?
51781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51782   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
51783   { (case "(($ac_try" in
51784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51785   *) ac_try_echo=$ac_try;;
51786 esac
51787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51788   (eval "$ac_try") 2>&5
51789   ac_status=$?
51790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51791   (exit $ac_status); }; }; then
51792   ac_cv_sizeof_ssize_t=`cat conftest.val`
51793 else
51794   echo "$as_me: program exited with status $ac_status" >&5
51795 echo "$as_me: failed program was:" >&5
51796 sed 's/^/| /' conftest.$ac_ext >&5
51797
51798 ( exit $ac_status )
51799 if test "$ac_cv_type_ssize_t" = yes; then
51800      { { echo "$as_me:$LINENO: error: cannot compute sizeof (ssize_t)
51801 See \`config.log' for more details." >&5
51802 echo "$as_me: error: cannot compute sizeof (ssize_t)
51803 See \`config.log' for more details." >&2;}
51804    { (exit 77); exit 77; }; }
51805    else
51806      ac_cv_sizeof_ssize_t=0
51807    fi
51808 fi
51809 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
51810 fi
51811 rm -f conftest.val
51812 fi
51813 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_ssize_t" >&5
51814 echo "${ECHO_T}$ac_cv_sizeof_ssize_t" >&6; }
51815
51816
51817
51818 cat >>confdefs.h <<_ACEOF
51819 #define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
51820 _ACEOF
51821
51822
51823 { echo "$as_me:$LINENO: checking for time_t" >&5
51824 echo $ECHO_N "checking for time_t... $ECHO_C" >&6; }
51825 if test "${ac_cv_type_time_t+set}" = set; then
51826   echo $ECHO_N "(cached) $ECHO_C" >&6
51827 else
51828   cat >conftest.$ac_ext <<_ACEOF
51829 /* confdefs.h.  */
51830 _ACEOF
51831 cat confdefs.h >>conftest.$ac_ext
51832 cat >>conftest.$ac_ext <<_ACEOF
51833 /* end confdefs.h.  */
51834 $ac_includes_default
51835 typedef time_t ac__type_new_;
51836 int
51837 main ()
51838 {
51839 if ((ac__type_new_ *) 0)
51840   return 0;
51841 if (sizeof (ac__type_new_))
51842   return 0;
51843   ;
51844   return 0;
51845 }
51846 _ACEOF
51847 rm -f conftest.$ac_objext
51848 if { (ac_try="$ac_compile"
51849 case "(($ac_try" in
51850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51851   *) ac_try_echo=$ac_try;;
51852 esac
51853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51854   (eval "$ac_compile") 2>conftest.er1
51855   ac_status=$?
51856   grep -v '^ *+' conftest.er1 >conftest.err
51857   rm -f conftest.er1
51858   cat conftest.err >&5
51859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51860   (exit $ac_status); } && {
51861          test -z "$ac_c_werror_flag" ||
51862          test ! -s conftest.err
51863        } && test -s conftest.$ac_objext; then
51864   ac_cv_type_time_t=yes
51865 else
51866   echo "$as_me: failed program was:" >&5
51867 sed 's/^/| /' conftest.$ac_ext >&5
51868
51869         ac_cv_type_time_t=no
51870 fi
51871
51872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51873 fi
51874 { echo "$as_me:$LINENO: result: $ac_cv_type_time_t" >&5
51875 echo "${ECHO_T}$ac_cv_type_time_t" >&6; }
51876
51877 # The cast to long int works around a bug in the HP C Compiler
51878 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
51879 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
51880 # This bug is HP SR number 8606223364.
51881 { echo "$as_me:$LINENO: checking size of time_t" >&5
51882 echo $ECHO_N "checking size of time_t... $ECHO_C" >&6; }
51883 if test "${ac_cv_sizeof_time_t+set}" = set; then
51884   echo $ECHO_N "(cached) $ECHO_C" >&6
51885 else
51886   if test "$cross_compiling" = yes; then
51887   # Depending upon the size, compute the lo and hi bounds.
51888 cat >conftest.$ac_ext <<_ACEOF
51889 /* confdefs.h.  */
51890 _ACEOF
51891 cat confdefs.h >>conftest.$ac_ext
51892 cat >>conftest.$ac_ext <<_ACEOF
51893 /* end confdefs.h.  */
51894 $ac_includes_default
51895    typedef time_t ac__type_sizeof_;
51896 int
51897 main ()
51898 {
51899 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
51900 test_array [0] = 0
51901
51902   ;
51903   return 0;
51904 }
51905 _ACEOF
51906 rm -f conftest.$ac_objext
51907 if { (ac_try="$ac_compile"
51908 case "(($ac_try" in
51909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51910   *) ac_try_echo=$ac_try;;
51911 esac
51912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51913   (eval "$ac_compile") 2>conftest.er1
51914   ac_status=$?
51915   grep -v '^ *+' conftest.er1 >conftest.err
51916   rm -f conftest.er1
51917   cat conftest.err >&5
51918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51919   (exit $ac_status); } && {
51920          test -z "$ac_c_werror_flag" ||
51921          test ! -s conftest.err
51922        } && test -s conftest.$ac_objext; then
51923   ac_lo=0 ac_mid=0
51924   while :; do
51925     cat >conftest.$ac_ext <<_ACEOF
51926 /* confdefs.h.  */
51927 _ACEOF
51928 cat confdefs.h >>conftest.$ac_ext
51929 cat >>conftest.$ac_ext <<_ACEOF
51930 /* end confdefs.h.  */
51931 $ac_includes_default
51932    typedef time_t ac__type_sizeof_;
51933 int
51934 main ()
51935 {
51936 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
51937 test_array [0] = 0
51938
51939   ;
51940   return 0;
51941 }
51942 _ACEOF
51943 rm -f conftest.$ac_objext
51944 if { (ac_try="$ac_compile"
51945 case "(($ac_try" in
51946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51947   *) ac_try_echo=$ac_try;;
51948 esac
51949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51950   (eval "$ac_compile") 2>conftest.er1
51951   ac_status=$?
51952   grep -v '^ *+' conftest.er1 >conftest.err
51953   rm -f conftest.er1
51954   cat conftest.err >&5
51955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51956   (exit $ac_status); } && {
51957          test -z "$ac_c_werror_flag" ||
51958          test ! -s conftest.err
51959        } && test -s conftest.$ac_objext; then
51960   ac_hi=$ac_mid; break
51961 else
51962   echo "$as_me: failed program was:" >&5
51963 sed 's/^/| /' conftest.$ac_ext >&5
51964
51965         ac_lo=`expr $ac_mid + 1`
51966                         if test $ac_lo -le $ac_mid; then
51967                           ac_lo= ac_hi=
51968                           break
51969                         fi
51970                         ac_mid=`expr 2 '*' $ac_mid + 1`
51971 fi
51972
51973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51974   done
51975 else
51976   echo "$as_me: failed program was:" >&5
51977 sed 's/^/| /' conftest.$ac_ext >&5
51978
51979         cat >conftest.$ac_ext <<_ACEOF
51980 /* confdefs.h.  */
51981 _ACEOF
51982 cat confdefs.h >>conftest.$ac_ext
51983 cat >>conftest.$ac_ext <<_ACEOF
51984 /* end confdefs.h.  */
51985 $ac_includes_default
51986    typedef time_t ac__type_sizeof_;
51987 int
51988 main ()
51989 {
51990 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
51991 test_array [0] = 0
51992
51993   ;
51994   return 0;
51995 }
51996 _ACEOF
51997 rm -f conftest.$ac_objext
51998 if { (ac_try="$ac_compile"
51999 case "(($ac_try" in
52000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52001   *) ac_try_echo=$ac_try;;
52002 esac
52003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52004   (eval "$ac_compile") 2>conftest.er1
52005   ac_status=$?
52006   grep -v '^ *+' conftest.er1 >conftest.err
52007   rm -f conftest.er1
52008   cat conftest.err >&5
52009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52010   (exit $ac_status); } && {
52011          test -z "$ac_c_werror_flag" ||
52012          test ! -s conftest.err
52013        } && test -s conftest.$ac_objext; then
52014   ac_hi=-1 ac_mid=-1
52015   while :; do
52016     cat >conftest.$ac_ext <<_ACEOF
52017 /* confdefs.h.  */
52018 _ACEOF
52019 cat confdefs.h >>conftest.$ac_ext
52020 cat >>conftest.$ac_ext <<_ACEOF
52021 /* end confdefs.h.  */
52022 $ac_includes_default
52023    typedef time_t ac__type_sizeof_;
52024 int
52025 main ()
52026 {
52027 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
52028 test_array [0] = 0
52029
52030   ;
52031   return 0;
52032 }
52033 _ACEOF
52034 rm -f conftest.$ac_objext
52035 if { (ac_try="$ac_compile"
52036 case "(($ac_try" in
52037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52038   *) ac_try_echo=$ac_try;;
52039 esac
52040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52041   (eval "$ac_compile") 2>conftest.er1
52042   ac_status=$?
52043   grep -v '^ *+' conftest.er1 >conftest.err
52044   rm -f conftest.er1
52045   cat conftest.err >&5
52046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52047   (exit $ac_status); } && {
52048          test -z "$ac_c_werror_flag" ||
52049          test ! -s conftest.err
52050        } && test -s conftest.$ac_objext; then
52051   ac_lo=$ac_mid; break
52052 else
52053   echo "$as_me: failed program was:" >&5
52054 sed 's/^/| /' conftest.$ac_ext >&5
52055
52056         ac_hi=`expr '(' $ac_mid ')' - 1`
52057                         if test $ac_mid -le $ac_hi; then
52058                           ac_lo= ac_hi=
52059                           break
52060                         fi
52061                         ac_mid=`expr 2 '*' $ac_mid`
52062 fi
52063
52064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52065   done
52066 else
52067   echo "$as_me: failed program was:" >&5
52068 sed 's/^/| /' conftest.$ac_ext >&5
52069
52070         ac_lo= ac_hi=
52071 fi
52072
52073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52074 fi
52075
52076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52077 # Binary search between lo and hi bounds.
52078 while test "x$ac_lo" != "x$ac_hi"; do
52079   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
52080   cat >conftest.$ac_ext <<_ACEOF
52081 /* confdefs.h.  */
52082 _ACEOF
52083 cat confdefs.h >>conftest.$ac_ext
52084 cat >>conftest.$ac_ext <<_ACEOF
52085 /* end confdefs.h.  */
52086 $ac_includes_default
52087    typedef time_t ac__type_sizeof_;
52088 int
52089 main ()
52090 {
52091 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
52092 test_array [0] = 0
52093
52094   ;
52095   return 0;
52096 }
52097 _ACEOF
52098 rm -f conftest.$ac_objext
52099 if { (ac_try="$ac_compile"
52100 case "(($ac_try" in
52101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52102   *) ac_try_echo=$ac_try;;
52103 esac
52104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52105   (eval "$ac_compile") 2>conftest.er1
52106   ac_status=$?
52107   grep -v '^ *+' conftest.er1 >conftest.err
52108   rm -f conftest.er1
52109   cat conftest.err >&5
52110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52111   (exit $ac_status); } && {
52112          test -z "$ac_c_werror_flag" ||
52113          test ! -s conftest.err
52114        } && test -s conftest.$ac_objext; then
52115   ac_hi=$ac_mid
52116 else
52117   echo "$as_me: failed program was:" >&5
52118 sed 's/^/| /' conftest.$ac_ext >&5
52119
52120         ac_lo=`expr '(' $ac_mid ')' + 1`
52121 fi
52122
52123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52124 done
52125 case $ac_lo in
52126 ?*) ac_cv_sizeof_time_t=$ac_lo;;
52127 '') if test "$ac_cv_type_time_t" = yes; then
52128      { { echo "$as_me:$LINENO: error: cannot compute sizeof (time_t)
52129 See \`config.log' for more details." >&5
52130 echo "$as_me: error: cannot compute sizeof (time_t)
52131 See \`config.log' for more details." >&2;}
52132    { (exit 77); exit 77; }; }
52133    else
52134      ac_cv_sizeof_time_t=0
52135    fi ;;
52136 esac
52137 else
52138   cat >conftest.$ac_ext <<_ACEOF
52139 /* confdefs.h.  */
52140 _ACEOF
52141 cat confdefs.h >>conftest.$ac_ext
52142 cat >>conftest.$ac_ext <<_ACEOF
52143 /* end confdefs.h.  */
52144 $ac_includes_default
52145    typedef time_t ac__type_sizeof_;
52146 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
52147 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
52148 #include <stdio.h>
52149 #include <stdlib.h>
52150 int
52151 main ()
52152 {
52153
52154   FILE *f = fopen ("conftest.val", "w");
52155   if (! f)
52156     return 1;
52157   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
52158     {
52159       long int i = longval ();
52160       if (i != ((long int) (sizeof (ac__type_sizeof_))))
52161         return 1;
52162       fprintf (f, "%ld\n", i);
52163     }
52164   else
52165     {
52166       unsigned long int i = ulongval ();
52167       if (i != ((long int) (sizeof (ac__type_sizeof_))))
52168         return 1;
52169       fprintf (f, "%lu\n", i);
52170     }
52171   return ferror (f) || fclose (f) != 0;
52172
52173   ;
52174   return 0;
52175 }
52176 _ACEOF
52177 rm -f conftest$ac_exeext
52178 if { (ac_try="$ac_link"
52179 case "(($ac_try" in
52180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52181   *) ac_try_echo=$ac_try;;
52182 esac
52183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52184   (eval "$ac_link") 2>&5
52185   ac_status=$?
52186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52187   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
52188   { (case "(($ac_try" in
52189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52190   *) ac_try_echo=$ac_try;;
52191 esac
52192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52193   (eval "$ac_try") 2>&5
52194   ac_status=$?
52195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52196   (exit $ac_status); }; }; then
52197   ac_cv_sizeof_time_t=`cat conftest.val`
52198 else
52199   echo "$as_me: program exited with status $ac_status" >&5
52200 echo "$as_me: failed program was:" >&5
52201 sed 's/^/| /' conftest.$ac_ext >&5
52202
52203 ( exit $ac_status )
52204 if test "$ac_cv_type_time_t" = yes; then
52205      { { echo "$as_me:$LINENO: error: cannot compute sizeof (time_t)
52206 See \`config.log' for more details." >&5
52207 echo "$as_me: error: cannot compute sizeof (time_t)
52208 See \`config.log' for more details." >&2;}
52209    { (exit 77); exit 77; }; }
52210    else
52211      ac_cv_sizeof_time_t=0
52212    fi
52213 fi
52214 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
52215 fi
52216 rm -f conftest.val
52217 fi
52218 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
52219 echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6; }
52220
52221
52222
52223 cat >>confdefs.h <<_ACEOF
52224 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
52225 _ACEOF
52226
52227
52228 { echo "$as_me:$LINENO: checking for off_t" >&5
52229 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
52230 if test "${ac_cv_type_off_t+set}" = set; then
52231   echo $ECHO_N "(cached) $ECHO_C" >&6
52232 else
52233   cat >conftest.$ac_ext <<_ACEOF
52234 /* confdefs.h.  */
52235 _ACEOF
52236 cat confdefs.h >>conftest.$ac_ext
52237 cat >>conftest.$ac_ext <<_ACEOF
52238 /* end confdefs.h.  */
52239 $ac_includes_default
52240 typedef off_t ac__type_new_;
52241 int
52242 main ()
52243 {
52244 if ((ac__type_new_ *) 0)
52245   return 0;
52246 if (sizeof (ac__type_new_))
52247   return 0;
52248   ;
52249   return 0;
52250 }
52251 _ACEOF
52252 rm -f conftest.$ac_objext
52253 if { (ac_try="$ac_compile"
52254 case "(($ac_try" in
52255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52256   *) ac_try_echo=$ac_try;;
52257 esac
52258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52259   (eval "$ac_compile") 2>conftest.er1
52260   ac_status=$?
52261   grep -v '^ *+' conftest.er1 >conftest.err
52262   rm -f conftest.er1
52263   cat conftest.err >&5
52264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52265   (exit $ac_status); } && {
52266          test -z "$ac_c_werror_flag" ||
52267          test ! -s conftest.err
52268        } && test -s conftest.$ac_objext; then
52269   ac_cv_type_off_t=yes
52270 else
52271   echo "$as_me: failed program was:" >&5
52272 sed 's/^/| /' conftest.$ac_ext >&5
52273
52274         ac_cv_type_off_t=no
52275 fi
52276
52277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52278 fi
52279 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
52280 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
52281 if test $ac_cv_type_off_t = yes; then
52282   :
52283 else
52284
52285 cat >>confdefs.h <<_ACEOF
52286 #define off_t long int
52287 _ACEOF
52288
52289 fi
52290
52291 { echo "$as_me:$LINENO: checking for pid_t" >&5
52292 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
52293 if test "${ac_cv_type_pid_t+set}" = set; then
52294   echo $ECHO_N "(cached) $ECHO_C" >&6
52295 else
52296   cat >conftest.$ac_ext <<_ACEOF
52297 /* confdefs.h.  */
52298 _ACEOF
52299 cat confdefs.h >>conftest.$ac_ext
52300 cat >>conftest.$ac_ext <<_ACEOF
52301 /* end confdefs.h.  */
52302 $ac_includes_default
52303 typedef pid_t ac__type_new_;
52304 int
52305 main ()
52306 {
52307 if ((ac__type_new_ *) 0)
52308   return 0;
52309 if (sizeof (ac__type_new_))
52310   return 0;
52311   ;
52312   return 0;
52313 }
52314 _ACEOF
52315 rm -f conftest.$ac_objext
52316 if { (ac_try="$ac_compile"
52317 case "(($ac_try" in
52318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52319   *) ac_try_echo=$ac_try;;
52320 esac
52321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52322   (eval "$ac_compile") 2>conftest.er1
52323   ac_status=$?
52324   grep -v '^ *+' conftest.er1 >conftest.err
52325   rm -f conftest.er1
52326   cat conftest.err >&5
52327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52328   (exit $ac_status); } && {
52329          test -z "$ac_c_werror_flag" ||
52330          test ! -s conftest.err
52331        } && test -s conftest.$ac_objext; then
52332   ac_cv_type_pid_t=yes
52333 else
52334   echo "$as_me: failed program was:" >&5
52335 sed 's/^/| /' conftest.$ac_ext >&5
52336
52337         ac_cv_type_pid_t=no
52338 fi
52339
52340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52341 fi
52342 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
52343 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
52344 if test $ac_cv_type_pid_t = yes; then
52345   :
52346 else
52347
52348 cat >>confdefs.h <<_ACEOF
52349 #define pid_t int
52350 _ACEOF
52351
52352 fi
52353
52354 { echo "$as_me:$LINENO: checking for size_t" >&5
52355 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
52356 if test "${ac_cv_type_size_t+set}" = set; then
52357   echo $ECHO_N "(cached) $ECHO_C" >&6
52358 else
52359   cat >conftest.$ac_ext <<_ACEOF
52360 /* confdefs.h.  */
52361 _ACEOF
52362 cat confdefs.h >>conftest.$ac_ext
52363 cat >>conftest.$ac_ext <<_ACEOF
52364 /* end confdefs.h.  */
52365 $ac_includes_default
52366 typedef size_t ac__type_new_;
52367 int
52368 main ()
52369 {
52370 if ((ac__type_new_ *) 0)
52371   return 0;
52372 if (sizeof (ac__type_new_))
52373   return 0;
52374   ;
52375   return 0;
52376 }
52377 _ACEOF
52378 rm -f conftest.$ac_objext
52379 if { (ac_try="$ac_compile"
52380 case "(($ac_try" in
52381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52382   *) ac_try_echo=$ac_try;;
52383 esac
52384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52385   (eval "$ac_compile") 2>conftest.er1
52386   ac_status=$?
52387   grep -v '^ *+' conftest.er1 >conftest.err
52388   rm -f conftest.er1
52389   cat conftest.err >&5
52390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52391   (exit $ac_status); } && {
52392          test -z "$ac_c_werror_flag" ||
52393          test ! -s conftest.err
52394        } && test -s conftest.$ac_objext; then
52395   ac_cv_type_size_t=yes
52396 else
52397   echo "$as_me: failed program was:" >&5
52398 sed 's/^/| /' conftest.$ac_ext >&5
52399
52400         ac_cv_type_size_t=no
52401 fi
52402
52403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52404 fi
52405 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
52406 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
52407 if test $ac_cv_type_size_t = yes; then
52408   :
52409 else
52410
52411 cat >>confdefs.h <<_ACEOF
52412 #define size_t unsigned int
52413 _ACEOF
52414
52415 fi
52416
52417 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
52418 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
52419 if test "${ac_cv_type_uid_t+set}" = set; then
52420   echo $ECHO_N "(cached) $ECHO_C" >&6
52421 else
52422   cat >conftest.$ac_ext <<_ACEOF
52423 /* confdefs.h.  */
52424 _ACEOF
52425 cat confdefs.h >>conftest.$ac_ext
52426 cat >>conftest.$ac_ext <<_ACEOF
52427 /* end confdefs.h.  */
52428 #include <sys/types.h>
52429
52430 _ACEOF
52431 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
52432   $EGREP "uid_t" >/dev/null 2>&1; then
52433   ac_cv_type_uid_t=yes
52434 else
52435   ac_cv_type_uid_t=no
52436 fi
52437 rm -f conftest*
52438
52439 fi
52440 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
52441 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
52442 if test $ac_cv_type_uid_t = no; then
52443
52444 cat >>confdefs.h <<\_ACEOF
52445 #define uid_t int
52446 _ACEOF
52447
52448
52449 cat >>confdefs.h <<\_ACEOF
52450 #define gid_t int
52451 _ACEOF
52452
52453 fi
52454
52455 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
52456 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
52457 if test "${ac_cv_type_signal+set}" = set; then
52458   echo $ECHO_N "(cached) $ECHO_C" >&6
52459 else
52460   cat >conftest.$ac_ext <<_ACEOF
52461 /* confdefs.h.  */
52462 _ACEOF
52463 cat confdefs.h >>conftest.$ac_ext
52464 cat >>conftest.$ac_ext <<_ACEOF
52465 /* end confdefs.h.  */
52466 #include <sys/types.h>
52467 #include <signal.h>
52468
52469 int
52470 main ()
52471 {
52472 return *(signal (0, 0)) (0) == 1;
52473   ;
52474   return 0;
52475 }
52476 _ACEOF
52477 rm -f conftest.$ac_objext
52478 if { (ac_try="$ac_compile"
52479 case "(($ac_try" in
52480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52481   *) ac_try_echo=$ac_try;;
52482 esac
52483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52484   (eval "$ac_compile") 2>conftest.er1
52485   ac_status=$?
52486   grep -v '^ *+' conftest.er1 >conftest.err
52487   rm -f conftest.er1
52488   cat conftest.err >&5
52489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52490   (exit $ac_status); } && {
52491          test -z "$ac_c_werror_flag" ||
52492          test ! -s conftest.err
52493        } && test -s conftest.$ac_objext; then
52494   ac_cv_type_signal=int
52495 else
52496   echo "$as_me: failed program was:" >&5
52497 sed 's/^/| /' conftest.$ac_ext >&5
52498
52499         ac_cv_type_signal=void
52500 fi
52501
52502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52503 fi
52504 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
52505 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
52506
52507 cat >>confdefs.h <<_ACEOF
52508 #define RETSIGTYPE $ac_cv_type_signal
52509 _ACEOF
52510
52511
52512 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
52513 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
52514 if test "${ac_cv_struct_tm+set}" = set; then
52515   echo $ECHO_N "(cached) $ECHO_C" >&6
52516 else
52517   cat >conftest.$ac_ext <<_ACEOF
52518 /* confdefs.h.  */
52519 _ACEOF
52520 cat confdefs.h >>conftest.$ac_ext
52521 cat >>conftest.$ac_ext <<_ACEOF
52522 /* end confdefs.h.  */
52523 #include <sys/types.h>
52524 #include <time.h>
52525
52526 int
52527 main ()
52528 {
52529 struct tm tm;
52530                                      int *p = &tm.tm_sec;
52531                                      return !p;
52532   ;
52533   return 0;
52534 }
52535 _ACEOF
52536 rm -f conftest.$ac_objext
52537 if { (ac_try="$ac_compile"
52538 case "(($ac_try" in
52539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52540   *) ac_try_echo=$ac_try;;
52541 esac
52542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52543   (eval "$ac_compile") 2>conftest.er1
52544   ac_status=$?
52545   grep -v '^ *+' conftest.er1 >conftest.err
52546   rm -f conftest.er1
52547   cat conftest.err >&5
52548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52549   (exit $ac_status); } && {
52550          test -z "$ac_c_werror_flag" ||
52551          test ! -s conftest.err
52552        } && test -s conftest.$ac_objext; then
52553   ac_cv_struct_tm=time.h
52554 else
52555   echo "$as_me: failed program was:" >&5
52556 sed 's/^/| /' conftest.$ac_ext >&5
52557
52558         ac_cv_struct_tm=sys/time.h
52559 fi
52560
52561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52562 fi
52563 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
52564 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
52565 if test $ac_cv_struct_tm = sys/time.h; then
52566
52567 cat >>confdefs.h <<\_ACEOF
52568 #define TM_IN_SYS_TIME 1
52569 _ACEOF
52570
52571 fi
52572
52573
52574
52575     { echo "$as_me:$LINENO: checking for socklen_t" >&5
52576 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
52577 if test "${ac_cv_type_socklen_t+set}" = set; then
52578   echo $ECHO_N "(cached) $ECHO_C" >&6
52579 else
52580   cat >conftest.$ac_ext <<_ACEOF
52581 /* confdefs.h.  */
52582 _ACEOF
52583 cat confdefs.h >>conftest.$ac_ext
52584 cat >>conftest.$ac_ext <<_ACEOF
52585 /* end confdefs.h.  */
52586
52587 #ifdef STDC_HEADERS
52588 #include <stdlib.h>
52589 #include <stddef.h>
52590 #endif
52591 #include <sys/socket.h>
52592
52593
52594
52595 typedef socklen_t ac__type_new_;
52596 int
52597 main ()
52598 {
52599 if ((ac__type_new_ *) 0)
52600   return 0;
52601 if (sizeof (ac__type_new_))
52602   return 0;
52603   ;
52604   return 0;
52605 }
52606 _ACEOF
52607 rm -f conftest.$ac_objext
52608 if { (ac_try="$ac_compile"
52609 case "(($ac_try" in
52610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52611   *) ac_try_echo=$ac_try;;
52612 esac
52613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52614   (eval "$ac_compile") 2>conftest.er1
52615   ac_status=$?
52616   grep -v '^ *+' conftest.er1 >conftest.err
52617   rm -f conftest.er1
52618   cat conftest.err >&5
52619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52620   (exit $ac_status); } && {
52621          test -z "$ac_c_werror_flag" ||
52622          test ! -s conftest.err
52623        } && test -s conftest.$ac_objext; then
52624   ac_cv_type_socklen_t=yes
52625 else
52626   echo "$as_me: failed program was:" >&5
52627 sed 's/^/| /' conftest.$ac_ext >&5
52628
52629         ac_cv_type_socklen_t=no
52630 fi
52631
52632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52633 fi
52634 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
52635 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
52636 if test $ac_cv_type_socklen_t = yes; then
52637   :
52638 else
52639
52640
52641 cat >>confdefs.h <<\_ACEOF
52642 #define socklen_t int
52643 _ACEOF
52644
52645
52646 fi
52647
52648
52649
52650
52651     { echo "$as_me:$LINENO: checking for sa_family_t" >&5
52652 echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6; }
52653 if test "${ac_cv_type_sa_family_t+set}" = set; then
52654   echo $ECHO_N "(cached) $ECHO_C" >&6
52655 else
52656   cat >conftest.$ac_ext <<_ACEOF
52657 /* confdefs.h.  */
52658 _ACEOF
52659 cat confdefs.h >>conftest.$ac_ext
52660 cat >>conftest.$ac_ext <<_ACEOF
52661 /* end confdefs.h.  */
52662
52663 #ifdef STDC_HEADERS
52664 #include <stdlib.h>
52665 #include <stddef.h>
52666 #endif
52667 #include <sys/socket.h>
52668
52669
52670
52671 typedef sa_family_t ac__type_new_;
52672 int
52673 main ()
52674 {
52675 if ((ac__type_new_ *) 0)
52676   return 0;
52677 if (sizeof (ac__type_new_))
52678   return 0;
52679   ;
52680   return 0;
52681 }
52682 _ACEOF
52683 rm -f conftest.$ac_objext
52684 if { (ac_try="$ac_compile"
52685 case "(($ac_try" in
52686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52687   *) ac_try_echo=$ac_try;;
52688 esac
52689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52690   (eval "$ac_compile") 2>conftest.er1
52691   ac_status=$?
52692   grep -v '^ *+' conftest.er1 >conftest.err
52693   rm -f conftest.er1
52694   cat conftest.err >&5
52695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52696   (exit $ac_status); } && {
52697          test -z "$ac_c_werror_flag" ||
52698          test ! -s conftest.err
52699        } && test -s conftest.$ac_objext; then
52700   ac_cv_type_sa_family_t=yes
52701 else
52702   echo "$as_me: failed program was:" >&5
52703 sed 's/^/| /' conftest.$ac_ext >&5
52704
52705         ac_cv_type_sa_family_t=no
52706 fi
52707
52708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52709 fi
52710 { echo "$as_me:$LINENO: result: $ac_cv_type_sa_family_t" >&5
52711 echo "${ECHO_T}$ac_cv_type_sa_family_t" >&6; }
52712 if test $ac_cv_type_sa_family_t = yes; then
52713   :
52714 else
52715
52716
52717 cat >>confdefs.h <<\_ACEOF
52718 #define sa_family_t unsigned short
52719 _ACEOF
52720
52721
52722 fi
52723
52724
52725
52726
52727     { echo "$as_me:$LINENO: checking for in_port_t" >&5
52728 echo $ECHO_N "checking for in_port_t... $ECHO_C" >&6; }
52729 if test "${ac_cv_type_in_port_t+set}" = set; then
52730   echo $ECHO_N "(cached) $ECHO_C" >&6
52731 else
52732   cat >conftest.$ac_ext <<_ACEOF
52733 /* confdefs.h.  */
52734 _ACEOF
52735 cat confdefs.h >>conftest.$ac_ext
52736 cat >>conftest.$ac_ext <<_ACEOF
52737 /* end confdefs.h.  */
52738
52739 #ifdef STDC_HEADERS
52740 #include <stdlib.h>
52741 #include <stddef.h>
52742 #endif
52743 #include <netinet/in.h>
52744
52745
52746
52747 typedef in_port_t ac__type_new_;
52748 int
52749 main ()
52750 {
52751 if ((ac__type_new_ *) 0)
52752   return 0;
52753 if (sizeof (ac__type_new_))
52754   return 0;
52755   ;
52756   return 0;
52757 }
52758 _ACEOF
52759 rm -f conftest.$ac_objext
52760 if { (ac_try="$ac_compile"
52761 case "(($ac_try" in
52762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52763   *) ac_try_echo=$ac_try;;
52764 esac
52765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52766   (eval "$ac_compile") 2>conftest.er1
52767   ac_status=$?
52768   grep -v '^ *+' conftest.er1 >conftest.err
52769   rm -f conftest.er1
52770   cat conftest.err >&5
52771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52772   (exit $ac_status); } && {
52773          test -z "$ac_c_werror_flag" ||
52774          test ! -s conftest.err
52775        } && test -s conftest.$ac_objext; then
52776   ac_cv_type_in_port_t=yes
52777 else
52778   echo "$as_me: failed program was:" >&5
52779 sed 's/^/| /' conftest.$ac_ext >&5
52780
52781         ac_cv_type_in_port_t=no
52782 fi
52783
52784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52785 fi
52786 { echo "$as_me:$LINENO: result: $ac_cv_type_in_port_t" >&5
52787 echo "${ECHO_T}$ac_cv_type_in_port_t" >&6; }
52788 if test $ac_cv_type_in_port_t = yes; then
52789   :
52790 else
52791
52792
52793 cat >>confdefs.h <<\_ACEOF
52794 #define in_port_t unsigned short
52795 _ACEOF
52796
52797
52798 fi
52799
52800
52801
52802
52803
52804
52805 for ac_header in sys/wait.h wait.h
52806 do
52807 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
52808 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
52809   { echo "$as_me:$LINENO: checking for $ac_header" >&5
52810 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
52811 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
52812   echo $ECHO_N "(cached) $ECHO_C" >&6
52813 fi
52814 ac_res=`eval echo '${'$as_ac_Header'}'`
52815                { echo "$as_me:$LINENO: result: $ac_res" >&5
52816 echo "${ECHO_T}$ac_res" >&6; }
52817 else
52818   # Is the header compilable?
52819 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
52820 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
52821 cat >conftest.$ac_ext <<_ACEOF
52822 /* confdefs.h.  */
52823 _ACEOF
52824 cat confdefs.h >>conftest.$ac_ext
52825 cat >>conftest.$ac_ext <<_ACEOF
52826 /* end confdefs.h.  */
52827 $ac_includes_default
52828 #include <$ac_header>
52829 _ACEOF
52830 rm -f conftest.$ac_objext
52831 if { (ac_try="$ac_compile"
52832 case "(($ac_try" in
52833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52834   *) ac_try_echo=$ac_try;;
52835 esac
52836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52837   (eval "$ac_compile") 2>conftest.er1
52838   ac_status=$?
52839   grep -v '^ *+' conftest.er1 >conftest.err
52840   rm -f conftest.er1
52841   cat conftest.err >&5
52842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52843   (exit $ac_status); } && {
52844          test -z "$ac_c_werror_flag" ||
52845          test ! -s conftest.err
52846        } && test -s conftest.$ac_objext; then
52847   ac_header_compiler=yes
52848 else
52849   echo "$as_me: failed program was:" >&5
52850 sed 's/^/| /' conftest.$ac_ext >&5
52851
52852         ac_header_compiler=no
52853 fi
52854
52855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52856 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
52857 echo "${ECHO_T}$ac_header_compiler" >&6; }
52858
52859 # Is the header present?
52860 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
52861 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
52862 cat >conftest.$ac_ext <<_ACEOF
52863 /* confdefs.h.  */
52864 _ACEOF
52865 cat confdefs.h >>conftest.$ac_ext
52866 cat >>conftest.$ac_ext <<_ACEOF
52867 /* end confdefs.h.  */
52868 #include <$ac_header>
52869 _ACEOF
52870 if { (ac_try="$ac_cpp conftest.$ac_ext"
52871 case "(($ac_try" in
52872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52873   *) ac_try_echo=$ac_try;;
52874 esac
52875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52876   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
52877   ac_status=$?
52878   grep -v '^ *+' conftest.er1 >conftest.err
52879   rm -f conftest.er1
52880   cat conftest.err >&5
52881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52882   (exit $ac_status); } >/dev/null && {
52883          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
52884          test ! -s conftest.err
52885        }; then
52886   ac_header_preproc=yes
52887 else
52888   echo "$as_me: failed program was:" >&5
52889 sed 's/^/| /' conftest.$ac_ext >&5
52890
52891   ac_header_preproc=no
52892 fi
52893
52894 rm -f conftest.err conftest.$ac_ext
52895 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
52896 echo "${ECHO_T}$ac_header_preproc" >&6; }
52897
52898 # So?  What about this header?
52899 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
52900   yes:no: )
52901     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
52902 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
52903     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
52904 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
52905     ac_header_preproc=yes
52906     ;;
52907   no:yes:* )
52908     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
52909 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
52910     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
52911 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
52912     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
52913 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
52914     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
52915 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
52916     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
52917 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
52918     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
52919 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
52920
52921     ;;
52922 esac
52923 { echo "$as_me:$LINENO: checking for $ac_header" >&5
52924 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
52925 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
52926   echo $ECHO_N "(cached) $ECHO_C" >&6
52927 else
52928   eval "$as_ac_Header=\$ac_header_preproc"
52929 fi
52930 ac_res=`eval echo '${'$as_ac_Header'}'`
52931                { echo "$as_me:$LINENO: result: $ac_res" >&5
52932 echo "${ECHO_T}$ac_res" >&6; }
52933
52934 fi
52935 if test `eval echo '${'$as_ac_Header'}'` = yes; then
52936   cat >>confdefs.h <<_ACEOF
52937 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
52938 _ACEOF
52939
52940 fi
52941
52942 done
52943
52944     { echo "$as_me:$LINENO: checking whether wait uses union wait" >&5
52945 echo $ECHO_N "checking whether wait uses union wait... $ECHO_C" >&6; }
52946 if test "${cf_cv_arg_union_wait+set}" = set; then
52947   echo $ECHO_N "(cached) $ECHO_C" >&6
52948 else
52949
52950         cat >conftest.$ac_ext <<_ACEOF
52951 /* confdefs.h.  */
52952 _ACEOF
52953 cat confdefs.h >>conftest.$ac_ext
52954 cat >>conftest.$ac_ext <<_ACEOF
52955 /* end confdefs.h.  */
52956
52957 #include <sys/types.h>
52958
52959 #if HAVE_SYS_WAIT_H
52960 # include <sys/wait.h>
52961 #else
52962 # if HAVE_WAIT_H
52963 #  include <wait.h>
52964 # endif
52965 #endif
52966
52967 #ifdef __STDC__
52968 pid_t wait(union wait *);
52969 #endif
52970
52971 int
52972 main ()
52973 {
52974
52975   union wait x; int i;
52976   wait(&x); i = WIFEXITED(x)
52977
52978   ;
52979   return 0;
52980 }
52981 _ACEOF
52982 rm -f conftest.$ac_objext
52983 if { (ac_try="$ac_compile"
52984 case "(($ac_try" in
52985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52986   *) ac_try_echo=$ac_try;;
52987 esac
52988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52989   (eval "$ac_compile") 2>conftest.er1
52990   ac_status=$?
52991   grep -v '^ *+' conftest.er1 >conftest.err
52992   rm -f conftest.er1
52993   cat conftest.err >&5
52994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52995   (exit $ac_status); } && {
52996          test -z "$ac_c_werror_flag" ||
52997          test ! -s conftest.err
52998        } && test -s conftest.$ac_objext; then
52999   cf_cv_arg_union_wait=yes
53000 else
53001   echo "$as_me: failed program was:" >&5
53002 sed 's/^/| /' conftest.$ac_ext >&5
53003
53004         cf_cv_arg_union_wait=no
53005 fi
53006
53007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53008 fi
53009 { echo "$as_me:$LINENO: result: $cf_cv_arg_union_wait" >&5
53010 echo "${ECHO_T}$cf_cv_arg_union_wait" >&6; }
53011     if test $cf_cv_arg_union_wait = yes; then
53012
53013 cat >>confdefs.h <<\_ACEOF
53014 #define WAIT_USES_UNION 1
53015 _ACEOF
53016
53017     fi
53018
53019
53020
53021
53022
53023 for ac_header in sys/wait.h wait.h
53024 do
53025 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
53026 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
53027   { echo "$as_me:$LINENO: checking for $ac_header" >&5
53028 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
53029 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
53030   echo $ECHO_N "(cached) $ECHO_C" >&6
53031 fi
53032 ac_res=`eval echo '${'$as_ac_Header'}'`
53033                { echo "$as_me:$LINENO: result: $ac_res" >&5
53034 echo "${ECHO_T}$ac_res" >&6; }
53035 else
53036   # Is the header compilable?
53037 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
53038 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
53039 cat >conftest.$ac_ext <<_ACEOF
53040 /* confdefs.h.  */
53041 _ACEOF
53042 cat confdefs.h >>conftest.$ac_ext
53043 cat >>conftest.$ac_ext <<_ACEOF
53044 /* end confdefs.h.  */
53045 $ac_includes_default
53046 #include <$ac_header>
53047 _ACEOF
53048 rm -f conftest.$ac_objext
53049 if { (ac_try="$ac_compile"
53050 case "(($ac_try" in
53051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53052   *) ac_try_echo=$ac_try;;
53053 esac
53054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53055   (eval "$ac_compile") 2>conftest.er1
53056   ac_status=$?
53057   grep -v '^ *+' conftest.er1 >conftest.err
53058   rm -f conftest.er1
53059   cat conftest.err >&5
53060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53061   (exit $ac_status); } && {
53062          test -z "$ac_c_werror_flag" ||
53063          test ! -s conftest.err
53064        } && test -s conftest.$ac_objext; then
53065   ac_header_compiler=yes
53066 else
53067   echo "$as_me: failed program was:" >&5
53068 sed 's/^/| /' conftest.$ac_ext >&5
53069
53070         ac_header_compiler=no
53071 fi
53072
53073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53074 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
53075 echo "${ECHO_T}$ac_header_compiler" >&6; }
53076
53077 # Is the header present?
53078 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
53079 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
53080 cat >conftest.$ac_ext <<_ACEOF
53081 /* confdefs.h.  */
53082 _ACEOF
53083 cat confdefs.h >>conftest.$ac_ext
53084 cat >>conftest.$ac_ext <<_ACEOF
53085 /* end confdefs.h.  */
53086 #include <$ac_header>
53087 _ACEOF
53088 if { (ac_try="$ac_cpp conftest.$ac_ext"
53089 case "(($ac_try" in
53090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53091   *) ac_try_echo=$ac_try;;
53092 esac
53093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53094   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
53095   ac_status=$?
53096   grep -v '^ *+' conftest.er1 >conftest.err
53097   rm -f conftest.er1
53098   cat conftest.err >&5
53099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53100   (exit $ac_status); } >/dev/null && {
53101          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
53102          test ! -s conftest.err
53103        }; then
53104   ac_header_preproc=yes
53105 else
53106   echo "$as_me: failed program was:" >&5
53107 sed 's/^/| /' conftest.$ac_ext >&5
53108
53109   ac_header_preproc=no
53110 fi
53111
53112 rm -f conftest.err conftest.$ac_ext
53113 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
53114 echo "${ECHO_T}$ac_header_preproc" >&6; }
53115
53116 # So?  What about this header?
53117 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
53118   yes:no: )
53119     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
53120 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
53121     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
53122 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
53123     ac_header_preproc=yes
53124     ;;
53125   no:yes:* )
53126     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
53127 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
53128     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
53129 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
53130     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
53131 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
53132     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
53133 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
53134     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
53135 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
53136     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
53137 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
53138
53139     ;;
53140 esac
53141 { echo "$as_me:$LINENO: checking for $ac_header" >&5
53142 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
53143 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
53144   echo $ECHO_N "(cached) $ECHO_C" >&6
53145 else
53146   eval "$as_ac_Header=\$ac_header_preproc"
53147 fi
53148 ac_res=`eval echo '${'$as_ac_Header'}'`
53149                { echo "$as_me:$LINENO: result: $ac_res" >&5
53150 echo "${ECHO_T}$ac_res" >&6; }
53151
53152 fi
53153 if test `eval echo '${'$as_ac_Header'}'` = yes; then
53154   cat >>confdefs.h <<_ACEOF
53155 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
53156 _ACEOF
53157
53158 fi
53159
53160 done
53161
53162     { echo "$as_me:$LINENO: checking whether wait uses int" >&5
53163 echo $ECHO_N "checking whether wait uses int... $ECHO_C" >&6; }
53164 if test "${cf_cv_arg_int+set}" = set; then
53165   echo $ECHO_N "(cached) $ECHO_C" >&6
53166 else
53167
53168         cat >conftest.$ac_ext <<_ACEOF
53169 /* confdefs.h.  */
53170 _ACEOF
53171 cat confdefs.h >>conftest.$ac_ext
53172 cat >>conftest.$ac_ext <<_ACEOF
53173 /* end confdefs.h.  */
53174
53175 #include <sys/types.h>
53176
53177 #if HAVE_SYS_WAIT_H
53178 # include <sys/wait.h>
53179 #else
53180 # if HAVE_WAIT_H
53181 #  include <wait.h>
53182 # endif
53183 #endif
53184
53185 #ifdef __STDC__
53186 pid_t wait(int *);
53187 #endif
53188
53189 int
53190 main ()
53191 {
53192
53193   int x; int i;
53194   wait(&x); i = WIFEXITED(x)
53195
53196   ;
53197   return 0;
53198 }
53199 _ACEOF
53200 rm -f conftest.$ac_objext
53201 if { (ac_try="$ac_compile"
53202 case "(($ac_try" in
53203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53204   *) ac_try_echo=$ac_try;;
53205 esac
53206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53207   (eval "$ac_compile") 2>conftest.er1
53208   ac_status=$?
53209   grep -v '^ *+' conftest.er1 >conftest.err
53210   rm -f conftest.er1
53211   cat conftest.err >&5
53212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53213   (exit $ac_status); } && {
53214          test -z "$ac_c_werror_flag" ||
53215          test ! -s conftest.err
53216        } && test -s conftest.$ac_objext; then
53217   cf_cv_arg_int=yes
53218 else
53219   echo "$as_me: failed program was:" >&5
53220 sed 's/^/| /' conftest.$ac_ext >&5
53221
53222         cf_cv_arg_int=no
53223 fi
53224
53225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53226 fi
53227 { echo "$as_me:$LINENO: result: $cf_cv_arg_int" >&5
53228 echo "${ECHO_T}$cf_cv_arg_int" >&6; }
53229 if test $cf_cv_arg_int = yes; then
53230
53231 cat >>confdefs.h <<\_ACEOF
53232 #define WAIT_USES_INT 1
53233 _ACEOF
53234
53235 fi
53236
53237
53238 #
53239 # Libraries
53240 #
53241 # cur_colr is on some HP's
53242
53243 { echo "$as_me:$LINENO: checking for main in -lcur_colr" >&5
53244 echo $ECHO_N "checking for main in -lcur_colr... $ECHO_C" >&6; }
53245 if test "${ac_cv_lib_cur_colr_main+set}" = set; then
53246   echo $ECHO_N "(cached) $ECHO_C" >&6
53247 else
53248   ac_check_lib_save_LIBS=$LIBS
53249 LIBS="-lcur_colr  $LIBS"
53250 cat >conftest.$ac_ext <<_ACEOF
53251 /* confdefs.h.  */
53252 _ACEOF
53253 cat confdefs.h >>conftest.$ac_ext
53254 cat >>conftest.$ac_ext <<_ACEOF
53255 /* end confdefs.h.  */
53256
53257
53258 int
53259 main ()
53260 {
53261 return main ();
53262   ;
53263   return 0;
53264 }
53265 _ACEOF
53266 rm -f conftest.$ac_objext conftest$ac_exeext
53267 if { (ac_try="$ac_link"
53268 case "(($ac_try" in
53269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53270   *) ac_try_echo=$ac_try;;
53271 esac
53272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53273   (eval "$ac_link") 2>conftest.er1
53274   ac_status=$?
53275   grep -v '^ *+' conftest.er1 >conftest.err
53276   rm -f conftest.er1
53277   cat conftest.err >&5
53278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53279   (exit $ac_status); } && {
53280          test -z "$ac_c_werror_flag" ||
53281          test ! -s conftest.err
53282        } && test -s conftest$ac_exeext &&
53283        $as_test_x conftest$ac_exeext; then
53284   ac_cv_lib_cur_colr_main=yes
53285 else
53286   echo "$as_me: failed program was:" >&5
53287 sed 's/^/| /' conftest.$ac_ext >&5
53288
53289         ac_cv_lib_cur_colr_main=no
53290 fi
53291
53292 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
53293       conftest$ac_exeext conftest.$ac_ext
53294 LIBS=$ac_check_lib_save_LIBS
53295 fi
53296 { echo "$as_me:$LINENO: result: $ac_cv_lib_cur_colr_main" >&5
53297 echo "${ECHO_T}$ac_cv_lib_cur_colr_main" >&6; }
53298 if test $ac_cv_lib_cur_colr_main = yes; then
53299   cat >>confdefs.h <<_ACEOF
53300 #define HAVE_LIBCUR_COLR 1
53301 _ACEOF
53302
53303   LIBS="-lcur_colr $LIBS"
53304
53305 fi
53306
53307
53308 { echo "$as_me:$LINENO: checking for main in -lintl" >&5
53309 echo $ECHO_N "checking for main in -lintl... $ECHO_C" >&6; }
53310 if test "${ac_cv_lib_intl_main+set}" = set; then
53311   echo $ECHO_N "(cached) $ECHO_C" >&6
53312 else
53313   ac_check_lib_save_LIBS=$LIBS
53314 LIBS="-lintl  $LIBS"
53315 cat >conftest.$ac_ext <<_ACEOF
53316 /* confdefs.h.  */
53317 _ACEOF
53318 cat confdefs.h >>conftest.$ac_ext
53319 cat >>conftest.$ac_ext <<_ACEOF
53320 /* end confdefs.h.  */
53321
53322
53323 int
53324 main ()
53325 {
53326 return main ();
53327   ;
53328   return 0;
53329 }
53330 _ACEOF
53331 rm -f conftest.$ac_objext conftest$ac_exeext
53332 if { (ac_try="$ac_link"
53333 case "(($ac_try" in
53334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53335   *) ac_try_echo=$ac_try;;
53336 esac
53337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53338   (eval "$ac_link") 2>conftest.er1
53339   ac_status=$?
53340   grep -v '^ *+' conftest.er1 >conftest.err
53341   rm -f conftest.er1
53342   cat conftest.err >&5
53343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53344   (exit $ac_status); } && {
53345          test -z "$ac_c_werror_flag" ||
53346          test ! -s conftest.err
53347        } && test -s conftest$ac_exeext &&
53348        $as_test_x conftest$ac_exeext; then
53349   ac_cv_lib_intl_main=yes
53350 else
53351   echo "$as_me: failed program was:" >&5
53352 sed 's/^/| /' conftest.$ac_ext >&5
53353
53354         ac_cv_lib_intl_main=no
53355 fi
53356
53357 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
53358       conftest$ac_exeext conftest.$ac_ext
53359 LIBS=$ac_check_lib_save_LIBS
53360 fi
53361 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_main" >&5
53362 echo "${ECHO_T}$ac_cv_lib_intl_main" >&6; }
53363 if test $ac_cv_lib_intl_main = yes; then
53364   cat >>confdefs.h <<_ACEOF
53365 #define HAVE_LIBINTL 1
53366 _ACEOF
53367
53368   LIBS="-lintl $LIBS"
53369
53370 fi
53371
53372
53373     # Make sure we don't use -lnsl and -lsun on Irix systems.
53374     case "$target" in
53375         *sgi-irix*)
53376
53377 { echo "$as_me:$LINENO: checking for main in -lsocket" >&5
53378 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6; }
53379 if test "${ac_cv_lib_socket_main+set}" = set; then
53380   echo $ECHO_N "(cached) $ECHO_C" >&6
53381 else
53382   ac_check_lib_save_LIBS=$LIBS
53383 LIBS="-lsocket  $LIBS"
53384 cat >conftest.$ac_ext <<_ACEOF
53385 /* confdefs.h.  */
53386 _ACEOF
53387 cat confdefs.h >>conftest.$ac_ext
53388 cat >>conftest.$ac_ext <<_ACEOF
53389 /* end confdefs.h.  */
53390
53391
53392 int
53393 main ()
53394 {
53395 return main ();
53396   ;
53397   return 0;
53398 }
53399 _ACEOF
53400 rm -f conftest.$ac_objext conftest$ac_exeext
53401 if { (ac_try="$ac_link"
53402 case "(($ac_try" in
53403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53404   *) ac_try_echo=$ac_try;;
53405 esac
53406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53407   (eval "$ac_link") 2>conftest.er1
53408   ac_status=$?
53409   grep -v '^ *+' conftest.er1 >conftest.err
53410   rm -f conftest.er1
53411   cat conftest.err >&5
53412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53413   (exit $ac_status); } && {
53414          test -z "$ac_c_werror_flag" ||
53415          test ! -s conftest.err
53416        } && test -s conftest$ac_exeext &&
53417        $as_test_x conftest$ac_exeext; then
53418   ac_cv_lib_socket_main=yes
53419 else
53420   echo "$as_me: failed program was:" >&5
53421 sed 's/^/| /' conftest.$ac_ext >&5
53422
53423         ac_cv_lib_socket_main=no
53424 fi
53425
53426 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
53427       conftest$ac_exeext conftest.$ac_ext
53428 LIBS=$ac_check_lib_save_LIBS
53429 fi
53430 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
53431 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6; }
53432 if test $ac_cv_lib_socket_main = yes; then
53433   cat >>confdefs.h <<_ACEOF
53434 #define HAVE_LIBSOCKET 1
53435 _ACEOF
53436
53437   LIBS="-lsocket $LIBS"
53438
53439 fi
53440
53441                             ;;
53442         *)
53443
53444 { echo "$as_me:$LINENO: checking for main in -lresolv" >&5
53445 echo $ECHO_N "checking for main in -lresolv... $ECHO_C" >&6; }
53446 if test "${ac_cv_lib_resolv_main+set}" = set; then
53447   echo $ECHO_N "(cached) $ECHO_C" >&6
53448 else
53449   ac_check_lib_save_LIBS=$LIBS
53450 LIBS="-lresolv  $LIBS"
53451 cat >conftest.$ac_ext <<_ACEOF
53452 /* confdefs.h.  */
53453 _ACEOF
53454 cat confdefs.h >>conftest.$ac_ext
53455 cat >>conftest.$ac_ext <<_ACEOF
53456 /* end confdefs.h.  */
53457
53458
53459 int
53460 main ()
53461 {
53462 return main ();
53463   ;
53464   return 0;
53465 }
53466 _ACEOF
53467 rm -f conftest.$ac_objext conftest$ac_exeext
53468 if { (ac_try="$ac_link"
53469 case "(($ac_try" in
53470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53471   *) ac_try_echo=$ac_try;;
53472 esac
53473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53474   (eval "$ac_link") 2>conftest.er1
53475   ac_status=$?
53476   grep -v '^ *+' conftest.er1 >conftest.err
53477   rm -f conftest.er1
53478   cat conftest.err >&5
53479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53480   (exit $ac_status); } && {
53481          test -z "$ac_c_werror_flag" ||
53482          test ! -s conftest.err
53483        } && test -s conftest$ac_exeext &&
53484        $as_test_x conftest$ac_exeext; then
53485   ac_cv_lib_resolv_main=yes
53486 else
53487   echo "$as_me: failed program was:" >&5
53488 sed 's/^/| /' conftest.$ac_ext >&5
53489
53490         ac_cv_lib_resolv_main=no
53491 fi
53492
53493 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
53494       conftest$ac_exeext conftest.$ac_ext
53495 LIBS=$ac_check_lib_save_LIBS
53496 fi
53497 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_main" >&5
53498 echo "${ECHO_T}$ac_cv_lib_resolv_main" >&6; }
53499 if test $ac_cv_lib_resolv_main = yes; then
53500   cat >>confdefs.h <<_ACEOF
53501 #define HAVE_LIBRESOLV 1
53502 _ACEOF
53503
53504   LIBS="-lresolv $LIBS"
53505
53506 fi
53507
53508
53509 { echo "$as_me:$LINENO: checking for main in -lnsl" >&5
53510 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6; }
53511 if test "${ac_cv_lib_nsl_main+set}" = set; then
53512   echo $ECHO_N "(cached) $ECHO_C" >&6
53513 else
53514   ac_check_lib_save_LIBS=$LIBS
53515 LIBS="-lnsl  $LIBS"
53516 cat >conftest.$ac_ext <<_ACEOF
53517 /* confdefs.h.  */
53518 _ACEOF
53519 cat confdefs.h >>conftest.$ac_ext
53520 cat >>conftest.$ac_ext <<_ACEOF
53521 /* end confdefs.h.  */
53522
53523
53524 int
53525 main ()
53526 {
53527 return main ();
53528   ;
53529   return 0;
53530 }
53531 _ACEOF
53532 rm -f conftest.$ac_objext conftest$ac_exeext
53533 if { (ac_try="$ac_link"
53534 case "(($ac_try" in
53535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53536   *) ac_try_echo=$ac_try;;
53537 esac
53538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53539   (eval "$ac_link") 2>conftest.er1
53540   ac_status=$?
53541   grep -v '^ *+' conftest.er1 >conftest.err
53542   rm -f conftest.er1
53543   cat conftest.err >&5
53544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53545   (exit $ac_status); } && {
53546          test -z "$ac_c_werror_flag" ||
53547          test ! -s conftest.err
53548        } && test -s conftest$ac_exeext &&
53549        $as_test_x conftest$ac_exeext; then
53550   ac_cv_lib_nsl_main=yes
53551 else
53552   echo "$as_me: failed program was:" >&5
53553 sed 's/^/| /' conftest.$ac_ext >&5
53554
53555         ac_cv_lib_nsl_main=no
53556 fi
53557
53558 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
53559       conftest$ac_exeext conftest.$ac_ext
53560 LIBS=$ac_check_lib_save_LIBS
53561 fi
53562 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
53563 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6; }
53564 if test $ac_cv_lib_nsl_main = yes; then
53565   cat >>confdefs.h <<_ACEOF
53566 #define HAVE_LIBNSL 1
53567 _ACEOF
53568
53569   LIBS="-lnsl $LIBS"
53570
53571 fi
53572
53573
53574 { echo "$as_me:$LINENO: checking for main in -lsocket" >&5
53575 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6; }
53576 if test "${ac_cv_lib_socket_main+set}" = set; then
53577   echo $ECHO_N "(cached) $ECHO_C" >&6
53578 else
53579   ac_check_lib_save_LIBS=$LIBS
53580 LIBS="-lsocket  $LIBS"
53581 cat >conftest.$ac_ext <<_ACEOF
53582 /* confdefs.h.  */
53583 _ACEOF
53584 cat confdefs.h >>conftest.$ac_ext
53585 cat >>conftest.$ac_ext <<_ACEOF
53586 /* end confdefs.h.  */
53587
53588
53589 int
53590 main ()
53591 {
53592 return main ();
53593   ;
53594   return 0;
53595 }
53596 _ACEOF
53597 rm -f conftest.$ac_objext conftest$ac_exeext
53598 if { (ac_try="$ac_link"
53599 case "(($ac_try" in
53600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53601   *) ac_try_echo=$ac_try;;
53602 esac
53603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53604   (eval "$ac_link") 2>conftest.er1
53605   ac_status=$?
53606   grep -v '^ *+' conftest.er1 >conftest.err
53607   rm -f conftest.er1
53608   cat conftest.err >&5
53609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53610   (exit $ac_status); } && {
53611          test -z "$ac_c_werror_flag" ||
53612          test ! -s conftest.err
53613        } && test -s conftest$ac_exeext &&
53614        $as_test_x conftest$ac_exeext; then
53615   ac_cv_lib_socket_main=yes
53616 else
53617   echo "$as_me: failed program was:" >&5
53618 sed 's/^/| /' conftest.$ac_ext >&5
53619
53620         ac_cv_lib_socket_main=no
53621 fi
53622
53623 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
53624       conftest$ac_exeext conftest.$ac_ext
53625 LIBS=$ac_check_lib_save_LIBS
53626 fi
53627 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
53628 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6; }
53629 if test $ac_cv_lib_socket_main = yes; then
53630   cat >>confdefs.h <<_ACEOF
53631 #define HAVE_LIBSOCKET 1
53632 _ACEOF
53633
53634   LIBS="-lsocket $LIBS"
53635
53636 fi
53637
53638
53639 { echo "$as_me:$LINENO: checking for main in -lsun" >&5
53640 echo $ECHO_N "checking for main in -lsun... $ECHO_C" >&6; }
53641 if test "${ac_cv_lib_sun_main+set}" = set; then
53642   echo $ECHO_N "(cached) $ECHO_C" >&6
53643 else
53644   ac_check_lib_save_LIBS=$LIBS
53645 LIBS="-lsun  $LIBS"
53646 cat >conftest.$ac_ext <<_ACEOF
53647 /* confdefs.h.  */
53648 _ACEOF
53649 cat confdefs.h >>conftest.$ac_ext
53650 cat >>conftest.$ac_ext <<_ACEOF
53651 /* end confdefs.h.  */
53652
53653
53654 int
53655 main ()
53656 {
53657 return main ();
53658   ;
53659   return 0;
53660 }
53661 _ACEOF
53662 rm -f conftest.$ac_objext conftest$ac_exeext
53663 if { (ac_try="$ac_link"
53664 case "(($ac_try" in
53665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53666   *) ac_try_echo=$ac_try;;
53667 esac
53668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53669   (eval "$ac_link") 2>conftest.er1
53670   ac_status=$?
53671   grep -v '^ *+' conftest.er1 >conftest.err
53672   rm -f conftest.er1
53673   cat conftest.err >&5
53674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53675   (exit $ac_status); } && {
53676          test -z "$ac_c_werror_flag" ||
53677          test ! -s conftest.err
53678        } && test -s conftest$ac_exeext &&
53679        $as_test_x conftest$ac_exeext; then
53680   ac_cv_lib_sun_main=yes
53681 else
53682   echo "$as_me: failed program was:" >&5
53683 sed 's/^/| /' conftest.$ac_ext >&5
53684
53685         ac_cv_lib_sun_main=no
53686 fi
53687
53688 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
53689       conftest$ac_exeext conftest.$ac_ext
53690 LIBS=$ac_check_lib_save_LIBS
53691 fi
53692 { echo "$as_me:$LINENO: result: $ac_cv_lib_sun_main" >&5
53693 echo "${ECHO_T}$ac_cv_lib_sun_main" >&6; }
53694 if test $ac_cv_lib_sun_main = yes; then
53695   cat >>confdefs.h <<_ACEOF
53696 #define HAVE_LIBSUN 1
53697 _ACEOF
53698
53699   LIBS="-lsun $LIBS"
53700
53701 fi
53702
53703                             ;;
53704     esac
53705
53706
53707     # search for pkg-config, which the glib configuration uses, adding a few
53708     # system-specific search paths.
53709     # Extract the first word of "pkg-config", so it can be a program name with args.
53710 set dummy pkg-config; ac_word=$2
53711 { echo "$as_me:$LINENO: checking for $ac_word" >&5
53712 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
53713 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
53714   echo $ECHO_N "(cached) $ECHO_C" >&6
53715 else
53716   case $PKG_CONFIG in
53717   [\\/]* | ?:[\\/]*)
53718   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
53719   ;;
53720   *)
53721   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
53722 as_dummy="$LOCSYSPATH:/opt/csw/bin:/usr/local/bin:/opt/local/bin"
53723 for as_dir in $as_dummy
53724 do
53725   IFS=$as_save_IFS
53726   test -z "$as_dir" && as_dir=.
53727   for ac_exec_ext in '' $ac_executable_extensions; do
53728   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
53729     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
53730     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
53731     break 2
53732   fi
53733 done
53734 done
53735 IFS=$as_save_IFS
53736
53737   ;;
53738 esac
53739 fi
53740 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
53741 if test -n "$PKG_CONFIG"; then
53742   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
53743 echo "${ECHO_T}$PKG_CONFIG" >&6; }
53744 else
53745   { echo "$as_me:$LINENO: result: no" >&5
53746 echo "${ECHO_T}no" >&6; }
53747 fi
53748
53749
53750
53751     case "$target" in
53752         sparc-sun-solaris2.8) # Solaris 8
53753             # give the linker a runtime search path; pkg-config doesn't supply this.
53754             # Users could also specify this with LD_LIBRARY_PATH to both ./configure
53755             # and make.  Adding this support here makes straight './configure; make'
53756             # "just work" on Solaris 8
53757             if test -n "$PKG_CONFIG"; then
53758                 glib_R_flag=`$PKG_CONFIG glib-2.0 --libs-only-L 2>/dev/null | sed -e 's/-L/-R/g'`
53759                 LDFLAGS="$LDFLAGS $glib_R_flag"
53760             fi
53761             ;;
53762     esac
53763
53764     # Check whether --enable-glibtest was given.
53765 if test "${enable_glibtest+set}" = set; then
53766   enableval=$enable_glibtest;
53767 else
53768   enable_glibtest=yes
53769 fi
53770
53771
53772   pkg_config_args=glib-2.0
53773   for module in . gmodule gobject gthread
53774   do
53775       case "$module" in
53776          gmodule)
53777              pkg_config_args="$pkg_config_args gmodule-2.0"
53778          ;;
53779          gmodule-no-export)
53780              pkg_config_args="$pkg_config_args gmodule-no-export-2.0"
53781          ;;
53782          gobject)
53783              pkg_config_args="$pkg_config_args gobject-2.0"
53784          ;;
53785          gthread)
53786              pkg_config_args="$pkg_config_args gthread-2.0"
53787          ;;
53788       esac
53789   done
53790
53791
53792
53793 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
53794         if test -n "$ac_tool_prefix"; then
53795   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
53796 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
53797 { echo "$as_me:$LINENO: checking for $ac_word" >&5
53798 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
53799 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
53800   echo $ECHO_N "(cached) $ECHO_C" >&6
53801 else
53802   case $PKG_CONFIG in
53803   [\\/]* | ?:[\\/]*)
53804   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
53805   ;;
53806   *)
53807   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
53808 for as_dir in $PATH
53809 do
53810   IFS=$as_save_IFS
53811   test -z "$as_dir" && as_dir=.
53812   for ac_exec_ext in '' $ac_executable_extensions; do
53813   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
53814     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
53815     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
53816     break 2
53817   fi
53818 done
53819 done
53820 IFS=$as_save_IFS
53821
53822   ;;
53823 esac
53824 fi
53825 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
53826 if test -n "$PKG_CONFIG"; then
53827   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
53828 echo "${ECHO_T}$PKG_CONFIG" >&6; }
53829 else
53830   { echo "$as_me:$LINENO: result: no" >&5
53831 echo "${ECHO_T}no" >&6; }
53832 fi
53833
53834
53835 fi
53836 if test -z "$ac_cv_path_PKG_CONFIG"; then
53837   ac_pt_PKG_CONFIG=$PKG_CONFIG
53838   # Extract the first word of "pkg-config", so it can be a program name with args.
53839 set dummy pkg-config; ac_word=$2
53840 { echo "$as_me:$LINENO: checking for $ac_word" >&5
53841 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
53842 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
53843   echo $ECHO_N "(cached) $ECHO_C" >&6
53844 else
53845   case $ac_pt_PKG_CONFIG in
53846   [\\/]* | ?:[\\/]*)
53847   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
53848   ;;
53849   *)
53850   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
53851 for as_dir in $PATH
53852 do
53853   IFS=$as_save_IFS
53854   test -z "$as_dir" && as_dir=.
53855   for ac_exec_ext in '' $ac_executable_extensions; do
53856   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
53857     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
53858     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
53859     break 2
53860   fi
53861 done
53862 done
53863 IFS=$as_save_IFS
53864
53865   ;;
53866 esac
53867 fi
53868 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
53869 if test -n "$ac_pt_PKG_CONFIG"; then
53870   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
53871 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
53872 else
53873   { echo "$as_me:$LINENO: result: no" >&5
53874 echo "${ECHO_T}no" >&6; }
53875 fi
53876
53877   if test "x$ac_pt_PKG_CONFIG" = x; then
53878     PKG_CONFIG=""
53879   else
53880     case $cross_compiling:$ac_tool_warned in
53881 yes:)
53882 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
53883 whose name does not start with the host triplet.  If you think this
53884 configuration is useful to you, please write to autoconf@gnu.org." >&5
53885 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
53886 whose name does not start with the host triplet.  If you think this
53887 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
53888 ac_tool_warned=yes ;;
53889 esac
53890     PKG_CONFIG=$ac_pt_PKG_CONFIG
53891   fi
53892 else
53893   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
53894 fi
53895
53896 fi
53897 if test -n "$PKG_CONFIG"; then
53898         _pkg_min_version=0.16
53899         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
53900 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
53901         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
53902                 { echo "$as_me:$LINENO: result: yes" >&5
53903 echo "${ECHO_T}yes" >&6; }
53904         else
53905                 { echo "$as_me:$LINENO: result: no" >&5
53906 echo "${ECHO_T}no" >&6; }
53907                 PKG_CONFIG=""
53908         fi
53909
53910 fi
53911
53912   no_glib=""
53913
53914   if test "x$PKG_CONFIG" = x ; then
53915     no_glib=yes
53916     PKG_CONFIG=no
53917   fi
53918
53919   min_glib_version=2.2.0
53920   { echo "$as_me:$LINENO: checking for GLIB - version >= $min_glib_version" >&5
53921 echo $ECHO_N "checking for GLIB - version >= $min_glib_version... $ECHO_C" >&6; }
53922
53923   if test x$PKG_CONFIG != xno ; then
53924     ## don't try to run the test against uninstalled libtool libs
53925     if $PKG_CONFIG --uninstalled $pkg_config_args; then
53926           echo "Will use uninstalled version of GLib found in PKG_CONFIG_PATH"
53927           enable_glibtest=no
53928     fi
53929
53930     if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then
53931           :
53932     else
53933           no_glib=yes
53934     fi
53935   fi
53936
53937   if test x"$no_glib" = x ; then
53938     GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`
53939     GOBJECT_QUERY=`$PKG_CONFIG --variable=gobject_query glib-2.0`
53940     GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
53941
53942     GLIB_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args`
53943     GLIB_LIBS=`$PKG_CONFIG --libs $pkg_config_args`
53944     glib_config_major_version=`$PKG_CONFIG --modversion glib-2.0 | \
53945            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
53946     glib_config_minor_version=`$PKG_CONFIG --modversion glib-2.0 | \
53947            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
53948     glib_config_micro_version=`$PKG_CONFIG --modversion glib-2.0 | \
53949            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
53950     if test "x$enable_glibtest" = "xyes" ; then
53951       ac_save_CFLAGS="$CFLAGS"
53952       ac_save_LIBS="$LIBS"
53953       CFLAGS="$CFLAGS $GLIB_CFLAGS"
53954       LIBS="$GLIB_LIBS $LIBS"
53955       rm -f conf.glibtest
53956       if test "$cross_compiling" = yes; then
53957   echo $ac_n "cross compiling; assumed OK... $ac_c"
53958 else
53959   cat >conftest.$ac_ext <<_ACEOF
53960 /* confdefs.h.  */
53961 _ACEOF
53962 cat confdefs.h >>conftest.$ac_ext
53963 cat >>conftest.$ac_ext <<_ACEOF
53964 /* end confdefs.h.  */
53965
53966 #include <glib.h>
53967 #include <stdio.h>
53968 #include <stdlib.h>
53969
53970 int
53971 main ()
53972 {
53973   int major, minor, micro;
53974   char *tmp_version;
53975
53976   system ("touch conf.glibtest");
53977
53978   /* HP/UX 9 (%@#!) writes to sscanf strings */
53979   tmp_version = g_strdup("$min_glib_version");
53980   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
53981      printf("%s, bad version string\n", "$min_glib_version");
53982      exit(1);
53983    }
53984
53985   if ((glib_major_version != $glib_config_major_version) ||
53986       (glib_minor_version != $glib_config_minor_version) ||
53987       (glib_micro_version != $glib_config_micro_version))
53988     {
53989       printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
53990              $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
53991              glib_major_version, glib_minor_version, glib_micro_version);
53992       printf ("*** was found! If pkg-config was correct, then it is best\n");
53993       printf ("*** to remove the old version of GLib. You may also be able to fix the error\n");
53994       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
53995       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
53996       printf("*** required on your system.\n");
53997       printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
53998       printf("*** to point to the correct configuration files\n");
53999     }
54000   else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
54001            (glib_minor_version != GLIB_MINOR_VERSION) ||
54002            (glib_micro_version != GLIB_MICRO_VERSION))
54003     {
54004       printf("*** GLIB header files (version %d.%d.%d) do not match\n",
54005              GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
54006       printf("*** library (version %d.%d.%d)\n",
54007              glib_major_version, glib_minor_version, glib_micro_version);
54008     }
54009   else
54010     {
54011       if ((glib_major_version > major) ||
54012         ((glib_major_version == major) && (glib_minor_version > minor)) ||
54013         ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
54014       {
54015         return 0;
54016        }
54017      else
54018       {
54019         printf("\n*** An old version of GLIB (%d.%d.%d) was found.\n",
54020                glib_major_version, glib_minor_version, glib_micro_version);
54021         printf("*** You need a version of GLIB newer than %d.%d.%d. The latest version of\n",
54022                major, minor, micro);
54023         printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
54024         printf("***\n");
54025         printf("*** If you have already installed a sufficiently new version, this error\n");
54026         printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
54027         printf("*** being found. The easiest way to fix this is to remove the old version\n");
54028         printf("*** of GLIB, but you can also set the PKG_CONFIG environment to point to the\n");
54029         printf("*** correct copy of pkg-config. (In this case, you will have to\n");
54030         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
54031         printf("*** so that the correct libraries are found at run-time))\n");
54032       }
54033     }
54034   return 1;
54035 }
54036
54037 _ACEOF
54038 rm -f conftest$ac_exeext
54039 if { (ac_try="$ac_link"
54040 case "(($ac_try" in
54041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54042   *) ac_try_echo=$ac_try;;
54043 esac
54044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54045   (eval "$ac_link") 2>&5
54046   ac_status=$?
54047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54048   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
54049   { (case "(($ac_try" in
54050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54051   *) ac_try_echo=$ac_try;;
54052 esac
54053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54054   (eval "$ac_try") 2>&5
54055   ac_status=$?
54056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54057   (exit $ac_status); }; }; then
54058   :
54059 else
54060   echo "$as_me: program exited with status $ac_status" >&5
54061 echo "$as_me: failed program was:" >&5
54062 sed 's/^/| /' conftest.$ac_ext >&5
54063
54064 ( exit $ac_status )
54065 no_glib=yes
54066 fi
54067 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
54068 fi
54069
54070
54071        CFLAGS="$ac_save_CFLAGS"
54072        LIBS="$ac_save_LIBS"
54073      fi
54074   fi
54075   if test "x$no_glib" = x ; then
54076      { echo "$as_me:$LINENO: result: yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&5
54077 echo "${ECHO_T}yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&6; }
54078      :
54079   else
54080      { echo "$as_me:$LINENO: result: no" >&5
54081 echo "${ECHO_T}no" >&6; }
54082      if test "$PKG_CONFIG" = "no" ; then
54083        echo "*** A new enough version of pkg-config was not found."
54084        echo "*** See http://www.freedesktop.org/software/pkgconfig/"
54085      else
54086        if test -f conf.glibtest ; then
54087         :
54088        else
54089           echo "*** Could not run GLIB test program, checking why..."
54090           ac_save_CFLAGS="$CFLAGS"
54091           ac_save_LIBS="$LIBS"
54092           CFLAGS="$CFLAGS $GLIB_CFLAGS"
54093           LIBS="$LIBS $GLIB_LIBS"
54094           cat >conftest.$ac_ext <<_ACEOF
54095 /* confdefs.h.  */
54096 _ACEOF
54097 cat confdefs.h >>conftest.$ac_ext
54098 cat >>conftest.$ac_ext <<_ACEOF
54099 /* end confdefs.h.  */
54100
54101 #include <glib.h>
54102 #include <stdio.h>
54103
54104 int
54105 main ()
54106 {
54107  return ((glib_major_version) || (glib_minor_version) || (glib_micro_version));
54108   ;
54109   return 0;
54110 }
54111 _ACEOF
54112 rm -f conftest.$ac_objext conftest$ac_exeext
54113 if { (ac_try="$ac_link"
54114 case "(($ac_try" in
54115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54116   *) ac_try_echo=$ac_try;;
54117 esac
54118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54119   (eval "$ac_link") 2>conftest.er1
54120   ac_status=$?
54121   grep -v '^ *+' conftest.er1 >conftest.err
54122   rm -f conftest.er1
54123   cat conftest.err >&5
54124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54125   (exit $ac_status); } && {
54126          test -z "$ac_c_werror_flag" ||
54127          test ! -s conftest.err
54128        } && test -s conftest$ac_exeext &&
54129        $as_test_x conftest$ac_exeext; then
54130    echo "*** The test program compiled, but did not run. This usually means"
54131           echo "*** that the run-time linker is not finding GLIB or finding the wrong"
54132           echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
54133           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
54134           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
54135           echo "*** is required on your system"
54136           echo "***"
54137           echo "*** If you have an old version installed, it is best to remove it, although"
54138           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
54139 else
54140   echo "$as_me: failed program was:" >&5
54141 sed 's/^/| /' conftest.$ac_ext >&5
54142
54143          echo "*** The test program failed to compile or link. See the file config.log for the"
54144           echo "*** exact error that occured. This usually means GLIB is incorrectly installed."
54145 fi
54146
54147 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
54148       conftest$ac_exeext conftest.$ac_ext
54149           CFLAGS="$ac_save_CFLAGS"
54150           LIBS="$ac_save_LIBS"
54151        fi
54152      fi
54153      GLIB_CFLAGS=""
54154      GLIB_LIBS=""
54155      GLIB_GENMARSHAL=""
54156      GOBJECT_QUERY=""
54157      GLIB_MKENUMS=""
54158
54159         { { echo "$as_me:$LINENO: error: glib not found or too old; See http://wiki.zmanda.com/index.php/Installation for help" >&5
54160 echo "$as_me: error: glib not found or too old; See http://wiki.zmanda.com/index.php/Installation for help" >&2;}
54161    { (exit 1); exit 1; }; }
54162
54163   fi
54164
54165
54166
54167
54168
54169   rm -f conf.glibtest
54170
54171     CFLAGS="$CFLAGS $GLIB_CFLAGS"
54172
54173     CPPFLAGS="$CPPFLAGS $GLIB_CPPFLAGS"
54174
54175     LIBS="$GLIB_LIBS $LIBS"
54176
54177
54178
54179
54180 # Check whether --with-readline was given.
54181 if test "${with_readline+set}" = set; then
54182   withval=$with_readline;
54183             case "$withval" in
54184                 y | ye | yes | n | no) : ;;
54185                 *) { { echo "$as_me:$LINENO: error: *** --with-readline does not take a value" >&5
54186 echo "$as_me: error: *** --with-readline does not take a value" >&2;}
54187    { (exit 1); exit 1; }; }
54188             esac
54189             want_readline="$withval"
54190
54191 else
54192
54193             want_readline="maybe" # meaning "only if we can find it"
54194
54195 fi
54196
54197
54198     # unless the user said "no", look for readline.
54199     if test x"$want_readline" != x"no"; then
54200         # we need a tgetent() somewhere..
54201         proceed="false"
54202         { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
54203 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
54204 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
54205   echo $ECHO_N "(cached) $ECHO_C" >&6
54206 else
54207   ac_check_lib_save_LIBS=$LIBS
54208 LIBS="-ltermcap  $LIBS"
54209 cat >conftest.$ac_ext <<_ACEOF
54210 /* confdefs.h.  */
54211 _ACEOF
54212 cat confdefs.h >>conftest.$ac_ext
54213 cat >>conftest.$ac_ext <<_ACEOF
54214 /* end confdefs.h.  */
54215
54216 /* Override any GCC internal prototype to avoid an error.
54217    Use char because int might match the return type of a GCC
54218    builtin and then its argument prototype would still apply.  */
54219 #ifdef __cplusplus
54220 extern "C"
54221 #endif
54222 char tgetent ();
54223 int
54224 main ()
54225 {
54226 return tgetent ();
54227   ;
54228   return 0;
54229 }
54230 _ACEOF
54231 rm -f conftest.$ac_objext conftest$ac_exeext
54232 if { (ac_try="$ac_link"
54233 case "(($ac_try" in
54234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54235   *) ac_try_echo=$ac_try;;
54236 esac
54237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54238   (eval "$ac_link") 2>conftest.er1
54239   ac_status=$?
54240   grep -v '^ *+' conftest.er1 >conftest.err
54241   rm -f conftest.er1
54242   cat conftest.err >&5
54243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54244   (exit $ac_status); } && {
54245          test -z "$ac_c_werror_flag" ||
54246          test ! -s conftest.err
54247        } && test -s conftest$ac_exeext &&
54248        $as_test_x conftest$ac_exeext; then
54249   ac_cv_lib_termcap_tgetent=yes
54250 else
54251   echo "$as_me: failed program was:" >&5
54252 sed 's/^/| /' conftest.$ac_ext >&5
54253
54254         ac_cv_lib_termcap_tgetent=no
54255 fi
54256
54257 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
54258       conftest$ac_exeext conftest.$ac_ext
54259 LIBS=$ac_check_lib_save_LIBS
54260 fi
54261 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
54262 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
54263 if test $ac_cv_lib_termcap_tgetent = yes; then
54264
54265             READLINE_LIBS="-ltermcap"
54266             proceed="true"
54267
54268 else
54269
54270             { echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
54271 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6; }
54272 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
54273   echo $ECHO_N "(cached) $ECHO_C" >&6
54274 else
54275   ac_check_lib_save_LIBS=$LIBS
54276 LIBS="-lcurses  $LIBS"
54277 cat >conftest.$ac_ext <<_ACEOF
54278 /* confdefs.h.  */
54279 _ACEOF
54280 cat confdefs.h >>conftest.$ac_ext
54281 cat >>conftest.$ac_ext <<_ACEOF
54282 /* end confdefs.h.  */
54283
54284 /* Override any GCC internal prototype to avoid an error.
54285    Use char because int might match the return type of a GCC
54286    builtin and then its argument prototype would still apply.  */
54287 #ifdef __cplusplus
54288 extern "C"
54289 #endif
54290 char tgetent ();
54291 int
54292 main ()
54293 {
54294 return tgetent ();
54295   ;
54296   return 0;
54297 }
54298 _ACEOF
54299 rm -f conftest.$ac_objext conftest$ac_exeext
54300 if { (ac_try="$ac_link"
54301 case "(($ac_try" in
54302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54303   *) ac_try_echo=$ac_try;;
54304 esac
54305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54306   (eval "$ac_link") 2>conftest.er1
54307   ac_status=$?
54308   grep -v '^ *+' conftest.er1 >conftest.err
54309   rm -f conftest.er1
54310   cat conftest.err >&5
54311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54312   (exit $ac_status); } && {
54313          test -z "$ac_c_werror_flag" ||
54314          test ! -s conftest.err
54315        } && test -s conftest$ac_exeext &&
54316        $as_test_x conftest$ac_exeext; then
54317   ac_cv_lib_curses_tgetent=yes
54318 else
54319   echo "$as_me: failed program was:" >&5
54320 sed 's/^/| /' conftest.$ac_ext >&5
54321
54322         ac_cv_lib_curses_tgetent=no
54323 fi
54324
54325 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
54326       conftest$ac_exeext conftest.$ac_ext
54327 LIBS=$ac_check_lib_save_LIBS
54328 fi
54329 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
54330 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6; }
54331 if test $ac_cv_lib_curses_tgetent = yes; then
54332
54333                 READLINE_LIBS="-lcurses"
54334                 proceed="true"
54335
54336 else
54337
54338                 { echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
54339 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6; }
54340 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
54341   echo $ECHO_N "(cached) $ECHO_C" >&6
54342 else
54343   ac_check_lib_save_LIBS=$LIBS
54344 LIBS="-lncurses  $LIBS"
54345 cat >conftest.$ac_ext <<_ACEOF
54346 /* confdefs.h.  */
54347 _ACEOF
54348 cat confdefs.h >>conftest.$ac_ext
54349 cat >>conftest.$ac_ext <<_ACEOF
54350 /* end confdefs.h.  */
54351
54352 /* Override any GCC internal prototype to avoid an error.
54353    Use char because int might match the return type of a GCC
54354    builtin and then its argument prototype would still apply.  */
54355 #ifdef __cplusplus
54356 extern "C"
54357 #endif
54358 char tgetent ();
54359 int
54360 main ()
54361 {
54362 return tgetent ();
54363   ;
54364   return 0;
54365 }
54366 _ACEOF
54367 rm -f conftest.$ac_objext conftest$ac_exeext
54368 if { (ac_try="$ac_link"
54369 case "(($ac_try" in
54370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54371   *) ac_try_echo=$ac_try;;
54372 esac
54373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54374   (eval "$ac_link") 2>conftest.er1
54375   ac_status=$?
54376   grep -v '^ *+' conftest.er1 >conftest.err
54377   rm -f conftest.er1
54378   cat conftest.err >&5
54379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54380   (exit $ac_status); } && {
54381          test -z "$ac_c_werror_flag" ||
54382          test ! -s conftest.err
54383        } && test -s conftest$ac_exeext &&
54384        $as_test_x conftest$ac_exeext; then
54385   ac_cv_lib_ncurses_tgetent=yes
54386 else
54387   echo "$as_me: failed program was:" >&5
54388 sed 's/^/| /' conftest.$ac_ext >&5
54389
54390         ac_cv_lib_ncurses_tgetent=no
54391 fi
54392
54393 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
54394       conftest$ac_exeext conftest.$ac_ext
54395 LIBS=$ac_check_lib_save_LIBS
54396 fi
54397 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
54398 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6; }
54399 if test $ac_cv_lib_ncurses_tgetent = yes; then
54400
54401                     READLINE_LIBS="-lncurses"
54402                     proceed="true"
54403
54404 fi
54405
54406
54407 fi
54408
54409
54410 fi
54411
54412
54413         if $proceed; then
54414             proceed="false"
54415
54416
54417
54418
54419 for ac_header in history.h readline.h readline/history.h readline/readline.h
54420 do
54421 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
54422 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
54423   { echo "$as_me:$LINENO: checking for $ac_header" >&5
54424 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
54425 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
54426   echo $ECHO_N "(cached) $ECHO_C" >&6
54427 fi
54428 ac_res=`eval echo '${'$as_ac_Header'}'`
54429                { echo "$as_me:$LINENO: result: $ac_res" >&5
54430 echo "${ECHO_T}$ac_res" >&6; }
54431 else
54432   # Is the header compilable?
54433 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
54434 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
54435 cat >conftest.$ac_ext <<_ACEOF
54436 /* confdefs.h.  */
54437 _ACEOF
54438 cat confdefs.h >>conftest.$ac_ext
54439 cat >>conftest.$ac_ext <<_ACEOF
54440 /* end confdefs.h.  */
54441 $ac_includes_default
54442 #include <$ac_header>
54443 _ACEOF
54444 rm -f conftest.$ac_objext
54445 if { (ac_try="$ac_compile"
54446 case "(($ac_try" in
54447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54448   *) ac_try_echo=$ac_try;;
54449 esac
54450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54451   (eval "$ac_compile") 2>conftest.er1
54452   ac_status=$?
54453   grep -v '^ *+' conftest.er1 >conftest.err
54454   rm -f conftest.er1
54455   cat conftest.err >&5
54456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54457   (exit $ac_status); } && {
54458          test -z "$ac_c_werror_flag" ||
54459          test ! -s conftest.err
54460        } && test -s conftest.$ac_objext; then
54461   ac_header_compiler=yes
54462 else
54463   echo "$as_me: failed program was:" >&5
54464 sed 's/^/| /' conftest.$ac_ext >&5
54465
54466         ac_header_compiler=no
54467 fi
54468
54469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54470 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
54471 echo "${ECHO_T}$ac_header_compiler" >&6; }
54472
54473 # Is the header present?
54474 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
54475 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
54476 cat >conftest.$ac_ext <<_ACEOF
54477 /* confdefs.h.  */
54478 _ACEOF
54479 cat confdefs.h >>conftest.$ac_ext
54480 cat >>conftest.$ac_ext <<_ACEOF
54481 /* end confdefs.h.  */
54482 #include <$ac_header>
54483 _ACEOF
54484 if { (ac_try="$ac_cpp conftest.$ac_ext"
54485 case "(($ac_try" in
54486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54487   *) ac_try_echo=$ac_try;;
54488 esac
54489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54490   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
54491   ac_status=$?
54492   grep -v '^ *+' conftest.er1 >conftest.err
54493   rm -f conftest.er1
54494   cat conftest.err >&5
54495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54496   (exit $ac_status); } >/dev/null && {
54497          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
54498          test ! -s conftest.err
54499        }; then
54500   ac_header_preproc=yes
54501 else
54502   echo "$as_me: failed program was:" >&5
54503 sed 's/^/| /' conftest.$ac_ext >&5
54504
54505   ac_header_preproc=no
54506 fi
54507
54508 rm -f conftest.err conftest.$ac_ext
54509 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
54510 echo "${ECHO_T}$ac_header_preproc" >&6; }
54511
54512 # So?  What about this header?
54513 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
54514   yes:no: )
54515     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
54516 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
54517     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
54518 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
54519     ac_header_preproc=yes
54520     ;;
54521   no:yes:* )
54522     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
54523 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
54524     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
54525 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
54526     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
54527 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
54528     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
54529 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
54530     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
54531 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
54532     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
54533 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
54534
54535     ;;
54536 esac
54537 { echo "$as_me:$LINENO: checking for $ac_header" >&5
54538 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
54539 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
54540   echo $ECHO_N "(cached) $ECHO_C" >&6
54541 else
54542   eval "$as_ac_Header=\$ac_header_preproc"
54543 fi
54544 ac_res=`eval echo '${'$as_ac_Header'}'`
54545                { echo "$as_me:$LINENO: result: $ac_res" >&5
54546 echo "${ECHO_T}$ac_res" >&6; }
54547
54548 fi
54549 if test `eval echo '${'$as_ac_Header'}'` = yes; then
54550   cat >>confdefs.h <<_ACEOF
54551 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
54552 _ACEOF
54553
54554                 # found at least one of the headers, so we can proceed.
54555                 proceed="true"
54556
54557 fi
54558
54559 done
54560
54561         fi
54562
54563         if $proceed; then
54564             proceed="false"
54565             { echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
54566 echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6; }
54567 if test "${ac_cv_lib_readline_readline+set}" = set; then
54568   echo $ECHO_N "(cached) $ECHO_C" >&6
54569 else
54570   ac_check_lib_save_LIBS=$LIBS
54571 LIBS="-lreadline $READLINE_LIBS $LIBS"
54572 cat >conftest.$ac_ext <<_ACEOF
54573 /* confdefs.h.  */
54574 _ACEOF
54575 cat confdefs.h >>conftest.$ac_ext
54576 cat >>conftest.$ac_ext <<_ACEOF
54577 /* end confdefs.h.  */
54578
54579 /* Override any GCC internal prototype to avoid an error.
54580    Use char because int might match the return type of a GCC
54581    builtin and then its argument prototype would still apply.  */
54582 #ifdef __cplusplus
54583 extern "C"
54584 #endif
54585 char readline ();
54586 int
54587 main ()
54588 {
54589 return readline ();
54590   ;
54591   return 0;
54592 }
54593 _ACEOF
54594 rm -f conftest.$ac_objext conftest$ac_exeext
54595 if { (ac_try="$ac_link"
54596 case "(($ac_try" in
54597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54598   *) ac_try_echo=$ac_try;;
54599 esac
54600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54601   (eval "$ac_link") 2>conftest.er1
54602   ac_status=$?
54603   grep -v '^ *+' conftest.er1 >conftest.err
54604   rm -f conftest.er1
54605   cat conftest.err >&5
54606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54607   (exit $ac_status); } && {
54608          test -z "$ac_c_werror_flag" ||
54609          test ! -s conftest.err
54610        } && test -s conftest$ac_exeext &&
54611        $as_test_x conftest$ac_exeext; then
54612   ac_cv_lib_readline_readline=yes
54613 else
54614   echo "$as_me: failed program was:" >&5
54615 sed 's/^/| /' conftest.$ac_ext >&5
54616
54617         ac_cv_lib_readline_readline=no
54618 fi
54619
54620 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
54621       conftest$ac_exeext conftest.$ac_ext
54622 LIBS=$ac_check_lib_save_LIBS
54623 fi
54624 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
54625 echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6; }
54626 if test $ac_cv_lib_readline_readline = yes; then
54627
54628                 READLINE_LIBS="-lreadline $READLINE_LIBS"
54629                 proceed="true"
54630
54631 fi
54632
54633         fi
54634
54635         if $proceed; then
54636             # we have readline!
54637
54638 cat >>confdefs.h <<\_ACEOF
54639 #define HAVE_READLINE 1
54640 _ACEOF
54641
54642         else
54643             # no readline.  if the user *really* wanted it, bail out.
54644             if test x"$want_readline" = x"yes"; then
54645                 { { echo "$as_me:$LINENO: error: *** No readline implementation found.  Try using --with-libraries and --with-includes" >&5
54646 echo "$as_me: error: *** No readline implementation found.  Try using --with-libraries and --with-includes" >&2;}
54647    { (exit 1); exit 1; }; }
54648             fi
54649             READLINE_LIBS=""
54650         fi
54651     fi
54652
54653
54654
54655 { echo "$as_me:$LINENO: checking for modf in -lm" >&5
54656 echo $ECHO_N "checking for modf in -lm... $ECHO_C" >&6; }
54657 if test "${ac_cv_lib_m_modf+set}" = set; then
54658   echo $ECHO_N "(cached) $ECHO_C" >&6
54659 else
54660   ac_check_lib_save_LIBS=$LIBS
54661 LIBS="-lm  $LIBS"
54662 cat >conftest.$ac_ext <<_ACEOF
54663 /* confdefs.h.  */
54664 _ACEOF
54665 cat confdefs.h >>conftest.$ac_ext
54666 cat >>conftest.$ac_ext <<_ACEOF
54667 /* end confdefs.h.  */
54668
54669 /* Override any GCC internal prototype to avoid an error.
54670    Use char because int might match the return type of a GCC
54671    builtin and then its argument prototype would still apply.  */
54672 #ifdef __cplusplus
54673 extern "C"
54674 #endif
54675 char modf ();
54676 int
54677 main ()
54678 {
54679 return modf ();
54680   ;
54681   return 0;
54682 }
54683 _ACEOF
54684 rm -f conftest.$ac_objext conftest$ac_exeext
54685 if { (ac_try="$ac_link"
54686 case "(($ac_try" in
54687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54688   *) ac_try_echo=$ac_try;;
54689 esac
54690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54691   (eval "$ac_link") 2>conftest.er1
54692   ac_status=$?
54693   grep -v '^ *+' conftest.er1 >conftest.err
54694   rm -f conftest.er1
54695   cat conftest.err >&5
54696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54697   (exit $ac_status); } && {
54698          test -z "$ac_c_werror_flag" ||
54699          test ! -s conftest.err
54700        } && test -s conftest$ac_exeext &&
54701        $as_test_x conftest$ac_exeext; then
54702   ac_cv_lib_m_modf=yes
54703 else
54704   echo "$as_me: failed program was:" >&5
54705 sed 's/^/| /' conftest.$ac_ext >&5
54706
54707         ac_cv_lib_m_modf=no
54708 fi
54709
54710 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
54711       conftest$ac_exeext conftest.$ac_ext
54712 LIBS=$ac_check_lib_save_LIBS
54713 fi
54714 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_modf" >&5
54715 echo "${ECHO_T}$ac_cv_lib_m_modf" >&6; }
54716 if test $ac_cv_lib_m_modf = yes; then
54717   cat >>confdefs.h <<_ACEOF
54718 #define HAVE_LIBM 1
54719 _ACEOF
54720
54721   LIBS="-lm $LIBS"
54722
54723 fi
54724
54725
54726 #
54727 # Declarations
54728 #
54729 # Checks for library functions and if the function is declared in
54730 # an appropriate header file.  Functions which exist, but for which
54731 # no declaration is available, are declared in common-src/amanda.h.
54732 # It's not clear that any existing system implements but does not
54733 # declare common functions such as these.
54734 #
54735
54736 ice_have_accept=no
54737
54738 for ac_func in accept
54739 do
54740 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
54741 { echo "$as_me:$LINENO: checking for $ac_func" >&5
54742 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
54743 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
54744   echo $ECHO_N "(cached) $ECHO_C" >&6
54745 else
54746   cat >conftest.$ac_ext <<_ACEOF
54747 /* confdefs.h.  */
54748 _ACEOF
54749 cat confdefs.h >>conftest.$ac_ext
54750 cat >>conftest.$ac_ext <<_ACEOF
54751 /* end confdefs.h.  */
54752 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
54753    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
54754 #define $ac_func innocuous_$ac_func
54755
54756 /* System header to define __stub macros and hopefully few prototypes,
54757     which can conflict with char $ac_func (); below.
54758     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
54759     <limits.h> exists even on freestanding compilers.  */
54760
54761 #ifdef __STDC__
54762 # include <limits.h>
54763 #else
54764 # include <assert.h>
54765 #endif
54766
54767 #undef $ac_func
54768
54769 /* Override any GCC internal prototype to avoid an error.
54770    Use char because int might match the return type of a GCC
54771    builtin and then its argument prototype would still apply.  */
54772 #ifdef __cplusplus
54773 extern "C"
54774 #endif
54775 char $ac_func ();
54776 /* The GNU C library defines this for functions which it implements
54777     to always fail with ENOSYS.  Some functions are actually named
54778     something starting with __ and the normal name is an alias.  */
54779 #if defined __stub_$ac_func || defined __stub___$ac_func
54780 choke me
54781 #endif
54782
54783 int
54784 main ()
54785 {
54786 return $ac_func ();
54787   ;
54788   return 0;
54789 }
54790 _ACEOF
54791 rm -f conftest.$ac_objext conftest$ac_exeext
54792 if { (ac_try="$ac_link"
54793 case "(($ac_try" in
54794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54795   *) ac_try_echo=$ac_try;;
54796 esac
54797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54798   (eval "$ac_link") 2>conftest.er1
54799   ac_status=$?
54800   grep -v '^ *+' conftest.er1 >conftest.err
54801   rm -f conftest.er1
54802   cat conftest.err >&5
54803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54804   (exit $ac_status); } && {
54805          test -z "$ac_c_werror_flag" ||
54806          test ! -s conftest.err
54807        } && test -s conftest$ac_exeext &&
54808        $as_test_x conftest$ac_exeext; then
54809   eval "$as_ac_var=yes"
54810 else
54811   echo "$as_me: failed program was:" >&5
54812 sed 's/^/| /' conftest.$ac_ext >&5
54813
54814         eval "$as_ac_var=no"
54815 fi
54816
54817 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
54818       conftest$ac_exeext conftest.$ac_ext
54819 fi
54820 ac_res=`eval echo '${'$as_ac_var'}'`
54821                { echo "$as_me:$LINENO: result: $ac_res" >&5
54822 echo "${ECHO_T}$ac_res" >&6; }
54823 if test `eval echo '${'$as_ac_var'}'` = yes; then
54824   cat >>confdefs.h <<_ACEOF
54825 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
54826 _ACEOF
54827  ice_have_accept=yes
54828 fi
54829 done
54830
54831 if test "${ice_have_accept}" = yes; then
54832 { echo "$as_me:$LINENO: checking for accept declaration in sys/types.h sys/socket.h" >&5
54833 echo $ECHO_N "checking for accept declaration in sys/types.h sys/socket.h... $ECHO_C" >&6; }
54834 if test "${ice_cv_have_accept_decl+set}" = set; then
54835   echo $ECHO_N "(cached) $ECHO_C" >&6
54836 else
54837
54838 ice_cv_have_accept_decl=no
54839 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
54840 ice_re_word='(^|[^a-zA-Z0-9_])'
54841 for header in sys/types.h sys/socket.h; do
54842 # Check for ordinary declaration
54843 cat >conftest.$ac_ext <<_ACEOF
54844 /* confdefs.h.  */
54845 _ACEOF
54846 cat confdefs.h >>conftest.$ac_ext
54847 cat >>conftest.$ac_ext <<_ACEOF
54848 /* end confdefs.h.  */
54849 #include <$header>
54850
54851 _ACEOF
54852 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
54853   $EGREP "${ice_re_word}accept[         ]*\(" >/dev/null 2>&1; then
54854   ice_cv_have_accept_decl=yes
54855 fi
54856 rm -f conftest*
54857
54858 if test "$ice_cv_have_accept_decl" = yes; then
54859         break
54860 fi
54861 # Check for "fixed" declaration like "getpid _PARAMS((int))"
54862 cat >conftest.$ac_ext <<_ACEOF
54863 /* confdefs.h.  */
54864 _ACEOF
54865 cat confdefs.h >>conftest.$ac_ext
54866 cat >>conftest.$ac_ext <<_ACEOF
54867 /* end confdefs.h.  */
54868 #include <$header>
54869
54870 _ACEOF
54871 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
54872   $EGREP "${ice_re_word}accept[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
54873   ice_cv_have_accept_decl=yes
54874 fi
54875 rm -f conftest*
54876
54877 if test "$ice_cv_have_accept_decl" = yes; then
54878         break
54879 fi
54880 done
54881
54882 fi
54883
54884 { echo "$as_me:$LINENO: result: $ice_cv_have_accept_decl" >&5
54885 echo "${ECHO_T}$ice_cv_have_accept_decl" >&6; }
54886 if test "$ice_cv_have_accept_decl" = yes; then
54887
54888 cat >>confdefs.h <<_ACEOF
54889 #define HAVE_ACCEPT_DECL 1
54890 _ACEOF
54891
54892 fi
54893 fi
54894
54895 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
54896 # for constant arguments.  Useless!
54897 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
54898 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
54899 if test "${ac_cv_working_alloca_h+set}" = set; then
54900   echo $ECHO_N "(cached) $ECHO_C" >&6
54901 else
54902   cat >conftest.$ac_ext <<_ACEOF
54903 /* confdefs.h.  */
54904 _ACEOF
54905 cat confdefs.h >>conftest.$ac_ext
54906 cat >>conftest.$ac_ext <<_ACEOF
54907 /* end confdefs.h.  */
54908 #include <alloca.h>
54909 int
54910 main ()
54911 {
54912 char *p = (char *) alloca (2 * sizeof (int));
54913                           if (p) return 0;
54914   ;
54915   return 0;
54916 }
54917 _ACEOF
54918 rm -f conftest.$ac_objext conftest$ac_exeext
54919 if { (ac_try="$ac_link"
54920 case "(($ac_try" in
54921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54922   *) ac_try_echo=$ac_try;;
54923 esac
54924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54925   (eval "$ac_link") 2>conftest.er1
54926   ac_status=$?
54927   grep -v '^ *+' conftest.er1 >conftest.err
54928   rm -f conftest.er1
54929   cat conftest.err >&5
54930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54931   (exit $ac_status); } && {
54932          test -z "$ac_c_werror_flag" ||
54933          test ! -s conftest.err
54934        } && test -s conftest$ac_exeext &&
54935        $as_test_x conftest$ac_exeext; then
54936   ac_cv_working_alloca_h=yes
54937 else
54938   echo "$as_me: failed program was:" >&5
54939 sed 's/^/| /' conftest.$ac_ext >&5
54940
54941         ac_cv_working_alloca_h=no
54942 fi
54943
54944 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
54945       conftest$ac_exeext conftest.$ac_ext
54946 fi
54947 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
54948 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
54949 if test $ac_cv_working_alloca_h = yes; then
54950
54951 cat >>confdefs.h <<\_ACEOF
54952 #define HAVE_ALLOCA_H 1
54953 _ACEOF
54954
54955 fi
54956
54957 { echo "$as_me:$LINENO: checking for alloca" >&5
54958 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
54959 if test "${ac_cv_func_alloca_works+set}" = set; then
54960   echo $ECHO_N "(cached) $ECHO_C" >&6
54961 else
54962   cat >conftest.$ac_ext <<_ACEOF
54963 /* confdefs.h.  */
54964 _ACEOF
54965 cat confdefs.h >>conftest.$ac_ext
54966 cat >>conftest.$ac_ext <<_ACEOF
54967 /* end confdefs.h.  */
54968 #ifdef __GNUC__
54969 # define alloca __builtin_alloca
54970 #else
54971 # ifdef _MSC_VER
54972 #  include <malloc.h>
54973 #  define alloca _alloca
54974 # else
54975 #  ifdef HAVE_ALLOCA_H
54976 #   include <alloca.h>
54977 #  else
54978 #   ifdef _AIX
54979  #pragma alloca
54980 #   else
54981 #    ifndef alloca /* predefined by HP cc +Olibcalls */
54982 char *alloca ();
54983 #    endif
54984 #   endif
54985 #  endif
54986 # endif
54987 #endif
54988
54989 int
54990 main ()
54991 {
54992 char *p = (char *) alloca (1);
54993                                     if (p) return 0;
54994   ;
54995   return 0;
54996 }
54997 _ACEOF
54998 rm -f conftest.$ac_objext conftest$ac_exeext
54999 if { (ac_try="$ac_link"
55000 case "(($ac_try" in
55001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55002   *) ac_try_echo=$ac_try;;
55003 esac
55004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
55005   (eval "$ac_link") 2>conftest.er1
55006   ac_status=$?
55007   grep -v '^ *+' conftest.er1 >conftest.err
55008   rm -f conftest.er1
55009   cat conftest.err >&5
55010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55011   (exit $ac_status); } && {
55012          test -z "$ac_c_werror_flag" ||
55013          test ! -s conftest.err
55014        } && test -s conftest$ac_exeext &&
55015        $as_test_x conftest$ac_exeext; then
55016   ac_cv_func_alloca_works=yes
55017 else
55018   echo "$as_me: failed program was:" >&5
55019 sed 's/^/| /' conftest.$ac_ext >&5
55020
55021         ac_cv_func_alloca_works=no
55022 fi
55023
55024 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
55025       conftest$ac_exeext conftest.$ac_ext
55026 fi
55027 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
55028 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
55029
55030 if test $ac_cv_func_alloca_works = yes; then
55031
55032 cat >>confdefs.h <<\_ACEOF
55033 #define HAVE_ALLOCA 1
55034 _ACEOF
55035
55036 else
55037   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
55038 # that cause trouble.  Some versions do not even contain alloca or
55039 # contain a buggy version.  If you still want to use their alloca,
55040 # use ar to extract alloca.o from them instead of compiling alloca.c.
55041
55042 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
55043
55044 cat >>confdefs.h <<\_ACEOF
55045 #define C_ALLOCA 1
55046 _ACEOF
55047
55048
55049 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
55050 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
55051 if test "${ac_cv_os_cray+set}" = set; then
55052   echo $ECHO_N "(cached) $ECHO_C" >&6
55053 else
55054   cat >conftest.$ac_ext <<_ACEOF
55055 /* confdefs.h.  */
55056 _ACEOF
55057 cat confdefs.h >>conftest.$ac_ext
55058 cat >>conftest.$ac_ext <<_ACEOF
55059 /* end confdefs.h.  */
55060 #if defined CRAY && ! defined CRAY2
55061 webecray
55062 #else
55063 wenotbecray
55064 #endif
55065
55066 _ACEOF
55067 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
55068   $EGREP "webecray" >/dev/null 2>&1; then
55069   ac_cv_os_cray=yes
55070 else
55071   ac_cv_os_cray=no
55072 fi
55073 rm -f conftest*
55074
55075 fi
55076 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
55077 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
55078 if test $ac_cv_os_cray = yes; then
55079   for ac_func in _getb67 GETB67 getb67; do
55080     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
55081 { echo "$as_me:$LINENO: checking for $ac_func" >&5
55082 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
55083 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
55084   echo $ECHO_N "(cached) $ECHO_C" >&6
55085 else
55086   cat >conftest.$ac_ext <<_ACEOF
55087 /* confdefs.h.  */
55088 _ACEOF
55089 cat confdefs.h >>conftest.$ac_ext
55090 cat >>conftest.$ac_ext <<_ACEOF
55091 /* end confdefs.h.  */
55092 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
55093    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
55094 #define $ac_func innocuous_$ac_func
55095
55096 /* System header to define __stub macros and hopefully few prototypes,
55097     which can conflict with char $ac_func (); below.
55098     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
55099     <limits.h> exists even on freestanding compilers.  */
55100
55101 #ifdef __STDC__
55102 # include <limits.h>
55103 #else
55104 # include <assert.h>
55105 #endif
55106
55107 #undef $ac_func
55108
55109 /* Override any GCC internal prototype to avoid an error.
55110    Use char because int might match the return type of a GCC
55111    builtin and then its argument prototype would still apply.  */
55112 #ifdef __cplusplus
55113 extern "C"
55114 #endif
55115 char $ac_func ();
55116 /* The GNU C library defines this for functions which it implements
55117     to always fail with ENOSYS.  Some functions are actually named
55118     something starting with __ and the normal name is an alias.  */
55119 #if defined __stub_$ac_func || defined __stub___$ac_func
55120 choke me
55121 #endif
55122
55123 int
55124 main ()
55125 {
55126 return $ac_func ();
55127   ;
55128   return 0;
55129 }
55130 _ACEOF
55131 rm -f conftest.$ac_objext conftest$ac_exeext
55132 if { (ac_try="$ac_link"
55133 case "(($ac_try" in
55134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55135   *) ac_try_echo=$ac_try;;
55136 esac
55137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
55138   (eval "$ac_link") 2>conftest.er1
55139   ac_status=$?
55140   grep -v '^ *+' conftest.er1 >conftest.err
55141   rm -f conftest.er1
55142   cat conftest.err >&5
55143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55144   (exit $ac_status); } && {
55145          test -z "$ac_c_werror_flag" ||
55146          test ! -s conftest.err
55147        } && test -s conftest$ac_exeext &&
55148        $as_test_x conftest$ac_exeext; then
55149   eval "$as_ac_var=yes"
55150 else
55151   echo "$as_me: failed program was:" >&5
55152 sed 's/^/| /' conftest.$ac_ext >&5
55153
55154         eval "$as_ac_var=no"
55155 fi
55156
55157 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
55158       conftest$ac_exeext conftest.$ac_ext
55159 fi
55160 ac_res=`eval echo '${'$as_ac_var'}'`
55161                { echo "$as_me:$LINENO: result: $ac_res" >&5
55162 echo "${ECHO_T}$ac_res" >&6; }
55163 if test `eval echo '${'$as_ac_var'}'` = yes; then
55164
55165 cat >>confdefs.h <<_ACEOF
55166 #define CRAY_STACKSEG_END $ac_func
55167 _ACEOF
55168
55169     break
55170 fi
55171
55172   done
55173 fi
55174
55175 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
55176 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
55177 if test "${ac_cv_c_stack_direction+set}" = set; then
55178   echo $ECHO_N "(cached) $ECHO_C" >&6
55179 else
55180   if test "$cross_compiling" = yes; then
55181   ac_cv_c_stack_direction=0
55182 else
55183   cat >conftest.$ac_ext <<_ACEOF
55184 /* confdefs.h.  */
55185 _ACEOF
55186 cat confdefs.h >>conftest.$ac_ext
55187 cat >>conftest.$ac_ext <<_ACEOF
55188 /* end confdefs.h.  */
55189 $ac_includes_default
55190 int
55191 find_stack_direction ()
55192 {
55193   static char *addr = 0;
55194   auto char dummy;
55195   if (addr == 0)
55196     {
55197       addr = &dummy;
55198       return find_stack_direction ();
55199     }
55200   else
55201     return (&dummy > addr) ? 1 : -1;
55202 }
55203
55204 int
55205 main ()
55206 {
55207   return find_stack_direction () < 0;
55208 }
55209 _ACEOF
55210 rm -f conftest$ac_exeext
55211 if { (ac_try="$ac_link"
55212 case "(($ac_try" in
55213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55214   *) ac_try_echo=$ac_try;;
55215 esac
55216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
55217   (eval "$ac_link") 2>&5
55218   ac_status=$?
55219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55220   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
55221   { (case "(($ac_try" in
55222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55223   *) ac_try_echo=$ac_try;;
55224 esac
55225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
55226   (eval "$ac_try") 2>&5
55227   ac_status=$?
55228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55229   (exit $ac_status); }; }; then
55230   ac_cv_c_stack_direction=1
55231 else
55232   echo "$as_me: program exited with status $ac_status" >&5
55233 echo "$as_me: failed program was:" >&5
55234 sed 's/^/| /' conftest.$ac_ext >&5
55235
55236 ( exit $ac_status )
55237 ac_cv_c_stack_direction=-1
55238 fi
55239 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
55240 fi
55241
55242
55243 fi
55244 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
55245 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
55246
55247 cat >>confdefs.h <<_ACEOF
55248 #define STACK_DIRECTION $ac_cv_c_stack_direction
55249 _ACEOF
55250
55251
55252 fi
55253
55254
55255 for ac_func in atexit
55256 do
55257 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
55258 { echo "$as_me:$LINENO: checking for $ac_func" >&5
55259 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
55260 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
55261   echo $ECHO_N "(cached) $ECHO_C" >&6
55262 else
55263   cat >conftest.$ac_ext <<_ACEOF
55264 /* confdefs.h.  */
55265 _ACEOF
55266 cat confdefs.h >>conftest.$ac_ext
55267 cat >>conftest.$ac_ext <<_ACEOF
55268 /* end confdefs.h.  */
55269 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
55270    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
55271 #define $ac_func innocuous_$ac_func
55272
55273 /* System header to define __stub macros and hopefully few prototypes,
55274     which can conflict with char $ac_func (); below.
55275     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
55276     <limits.h> exists even on freestanding compilers.  */
55277
55278 #ifdef __STDC__
55279 # include <limits.h>
55280 #else
55281 # include <assert.h>
55282 #endif
55283
55284 #undef $ac_func
55285
55286 /* Override any GCC internal prototype to avoid an error.
55287    Use char because int might match the return type of a GCC
55288    builtin and then its argument prototype would still apply.  */
55289 #ifdef __cplusplus
55290 extern "C"
55291 #endif
55292 char $ac_func ();
55293 /* The GNU C library defines this for functions which it implements
55294     to always fail with ENOSYS.  Some functions are actually named
55295     something starting with __ and the normal name is an alias.  */
55296 #if defined __stub_$ac_func || defined __stub___$ac_func
55297 choke me
55298 #endif
55299
55300 int
55301 main ()
55302 {
55303 return $ac_func ();
55304   ;
55305   return 0;
55306 }
55307 _ACEOF
55308 rm -f conftest.$ac_objext conftest$ac_exeext
55309 if { (ac_try="$ac_link"
55310 case "(($ac_try" in
55311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55312   *) ac_try_echo=$ac_try;;
55313 esac
55314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
55315   (eval "$ac_link") 2>conftest.er1
55316   ac_status=$?
55317   grep -v '^ *+' conftest.er1 >conftest.err
55318   rm -f conftest.er1
55319   cat conftest.err >&5
55320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55321   (exit $ac_status); } && {
55322          test -z "$ac_c_werror_flag" ||
55323          test ! -s conftest.err
55324        } && test -s conftest$ac_exeext &&
55325        $as_test_x conftest$ac_exeext; then
55326   eval "$as_ac_var=yes"
55327 else
55328   echo "$as_me: failed program was:" >&5
55329 sed 's/^/| /' conftest.$ac_ext >&5
55330
55331         eval "$as_ac_var=no"
55332 fi
55333
55334 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
55335       conftest$ac_exeext conftest.$ac_ext
55336 fi
55337 ac_res=`eval echo '${'$as_ac_var'}'`
55338                { echo "$as_me:$LINENO: result: $ac_res" >&5
55339 echo "${ECHO_T}$ac_res" >&6; }
55340 if test `eval echo '${'$as_ac_var'}'` = yes; then
55341   cat >>confdefs.h <<_ACEOF
55342 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
55343 _ACEOF
55344
55345 fi
55346 done
55347
55348
55349 ice_have_atof=no
55350
55351 for ac_func in atof
55352 do
55353 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
55354 { echo "$as_me:$LINENO: checking for $ac_func" >&5
55355 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
55356 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
55357   echo $ECHO_N "(cached) $ECHO_C" >&6
55358 else
55359   cat >conftest.$ac_ext <<_ACEOF
55360 /* confdefs.h.  */
55361 _ACEOF
55362 cat confdefs.h >>conftest.$ac_ext
55363 cat >>conftest.$ac_ext <<_ACEOF
55364 /* end confdefs.h.  */
55365 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
55366    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
55367 #define $ac_func innocuous_$ac_func
55368
55369 /* System header to define __stub macros and hopefully few prototypes,
55370     which can conflict with char $ac_func (); below.
55371     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
55372     <limits.h> exists even on freestanding compilers.  */
55373
55374 #ifdef __STDC__
55375 # include <limits.h>
55376 #else
55377 # include <assert.h>
55378 #endif
55379
55380 #undef $ac_func
55381
55382 /* Override any GCC internal prototype to avoid an error.
55383    Use char because int might match the return type of a GCC
55384    builtin and then its argument prototype would still apply.  */
55385 #ifdef __cplusplus
55386 extern "C"
55387 #endif
55388 char $ac_func ();
55389 /* The GNU C library defines this for functions which it implements
55390     to always fail with ENOSYS.  Some functions are actually named
55391     something starting with __ and the normal name is an alias.  */
55392 #if defined __stub_$ac_func || defined __stub___$ac_func
55393 choke me
55394 #endif
55395
55396 int
55397 main ()
55398 {
55399 return $ac_func ();
55400   ;
55401   return 0;
55402 }
55403 _ACEOF
55404 rm -f conftest.$ac_objext conftest$ac_exeext
55405 if { (ac_try="$ac_link"
55406 case "(($ac_try" in
55407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55408   *) ac_try_echo=$ac_try;;
55409 esac
55410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
55411   (eval "$ac_link") 2>conftest.er1
55412   ac_status=$?
55413   grep -v '^ *+' conftest.er1 >conftest.err
55414   rm -f conftest.er1
55415   cat conftest.err >&5
55416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55417   (exit $ac_status); } && {
55418          test -z "$ac_c_werror_flag" ||
55419          test ! -s conftest.err
55420        } && test -s conftest$ac_exeext &&
55421        $as_test_x conftest$ac_exeext; then
55422   eval "$as_ac_var=yes"
55423 else
55424   echo "$as_me: failed program was:" >&5
55425 sed 's/^/| /' conftest.$ac_ext >&5
55426
55427         eval "$as_ac_var=no"
55428 fi
55429
55430 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
55431       conftest$ac_exeext conftest.$ac_ext
55432 fi
55433 ac_res=`eval echo '${'$as_ac_var'}'`
55434                { echo "$as_me:$LINENO: result: $ac_res" >&5
55435 echo "${ECHO_T}$ac_res" >&6; }
55436 if test `eval echo '${'$as_ac_var'}'` = yes; then
55437   cat >>confdefs.h <<_ACEOF
55438 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
55439 _ACEOF
55440  ice_have_atof=yes
55441 fi
55442 done
55443
55444 if test "${ice_have_atof}" = yes; then
55445 { echo "$as_me:$LINENO: checking for atof declaration in stdlib.h" >&5
55446 echo $ECHO_N "checking for atof declaration in stdlib.h... $ECHO_C" >&6; }
55447 if test "${ice_cv_have_atof_decl+set}" = set; then
55448   echo $ECHO_N "(cached) $ECHO_C" >&6
55449 else
55450
55451 ice_cv_have_atof_decl=no
55452 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
55453 ice_re_word='(^|[^a-zA-Z0-9_])'
55454 for header in stdlib.h; do
55455 # Check for ordinary declaration
55456 cat >conftest.$ac_ext <<_ACEOF
55457 /* confdefs.h.  */
55458 _ACEOF
55459 cat confdefs.h >>conftest.$ac_ext
55460 cat >>conftest.$ac_ext <<_ACEOF
55461 /* end confdefs.h.  */
55462 #include <$header>
55463
55464 _ACEOF
55465 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
55466   $EGREP "${ice_re_word}atof[   ]*\(" >/dev/null 2>&1; then
55467   ice_cv_have_atof_decl=yes
55468 fi
55469 rm -f conftest*
55470
55471 if test "$ice_cv_have_atof_decl" = yes; then
55472         break
55473 fi
55474 # Check for "fixed" declaration like "getpid _PARAMS((int))"
55475 cat >conftest.$ac_ext <<_ACEOF
55476 /* confdefs.h.  */
55477 _ACEOF
55478 cat confdefs.h >>conftest.$ac_ext
55479 cat >>conftest.$ac_ext <<_ACEOF
55480 /* end confdefs.h.  */
55481 #include <$header>
55482
55483 _ACEOF
55484 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
55485   $EGREP "${ice_re_word}atof[   ]*$ice_re_params\(\(" >/dev/null 2>&1; then
55486   ice_cv_have_atof_decl=yes
55487 fi
55488 rm -f conftest*
55489
55490 if test "$ice_cv_have_atof_decl" = yes; then
55491         break
55492 fi
55493 done
55494
55495 fi
55496
55497 { echo "$as_me:$LINENO: result: $ice_cv_have_atof_decl" >&5
55498 echo "${ECHO_T}$ice_cv_have_atof_decl" >&6; }
55499 if test "$ice_cv_have_atof_decl" = yes; then
55500
55501 cat >>confdefs.h <<_ACEOF
55502 #define HAVE_ATOF_DECL 1
55503 _ACEOF
55504
55505 fi
55506 fi
55507
55508
55509 ice_have_atol=no
55510
55511 for ac_func in atol
55512 do
55513 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
55514 { echo "$as_me:$LINENO: checking for $ac_func" >&5
55515 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
55516 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
55517   echo $ECHO_N "(cached) $ECHO_C" >&6
55518 else
55519   cat >conftest.$ac_ext <<_ACEOF
55520 /* confdefs.h.  */
55521 _ACEOF
55522 cat confdefs.h >>conftest.$ac_ext
55523 cat >>conftest.$ac_ext <<_ACEOF
55524 /* end confdefs.h.  */
55525 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
55526    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
55527 #define $ac_func innocuous_$ac_func
55528
55529 /* System header to define __stub macros and hopefully few prototypes,
55530     which can conflict with char $ac_func (); below.
55531     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
55532     <limits.h> exists even on freestanding compilers.  */
55533
55534 #ifdef __STDC__
55535 # include <limits.h>
55536 #else
55537 # include <assert.h>
55538 #endif
55539
55540 #undef $ac_func
55541
55542 /* Override any GCC internal prototype to avoid an error.
55543    Use char because int might match the return type of a GCC
55544    builtin and then its argument prototype would still apply.  */
55545 #ifdef __cplusplus
55546 extern "C"
55547 #endif
55548 char $ac_func ();
55549 /* The GNU C library defines this for functions which it implements
55550     to always fail with ENOSYS.  Some functions are actually named
55551     something starting with __ and the normal name is an alias.  */
55552 #if defined __stub_$ac_func || defined __stub___$ac_func
55553 choke me
55554 #endif
55555
55556 int
55557 main ()
55558 {
55559 return $ac_func ();
55560   ;
55561   return 0;
55562 }
55563 _ACEOF
55564 rm -f conftest.$ac_objext conftest$ac_exeext
55565 if { (ac_try="$ac_link"
55566 case "(($ac_try" in
55567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55568   *) ac_try_echo=$ac_try;;
55569 esac
55570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
55571   (eval "$ac_link") 2>conftest.er1
55572   ac_status=$?
55573   grep -v '^ *+' conftest.er1 >conftest.err
55574   rm -f conftest.er1
55575   cat conftest.err >&5
55576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55577   (exit $ac_status); } && {
55578          test -z "$ac_c_werror_flag" ||
55579          test ! -s conftest.err
55580        } && test -s conftest$ac_exeext &&
55581        $as_test_x conftest$ac_exeext; then
55582   eval "$as_ac_var=yes"
55583 else
55584   echo "$as_me: failed program was:" >&5
55585 sed 's/^/| /' conftest.$ac_ext >&5
55586
55587         eval "$as_ac_var=no"
55588 fi
55589
55590 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
55591       conftest$ac_exeext conftest.$ac_ext
55592 fi
55593 ac_res=`eval echo '${'$as_ac_var'}'`
55594                { echo "$as_me:$LINENO: result: $ac_res" >&5
55595 echo "${ECHO_T}$ac_res" >&6; }
55596 if test `eval echo '${'$as_ac_var'}'` = yes; then
55597   cat >>confdefs.h <<_ACEOF
55598 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
55599 _ACEOF
55600  ice_have_atol=yes
55601 fi
55602 done
55603
55604 if test "${ice_have_atol}" = yes; then
55605 { echo "$as_me:$LINENO: checking for atol declaration in stdlib.h" >&5
55606 echo $ECHO_N "checking for atol declaration in stdlib.h... $ECHO_C" >&6; }
55607 if test "${ice_cv_have_atol_decl+set}" = set; then
55608   echo $ECHO_N "(cached) $ECHO_C" >&6
55609 else
55610
55611 ice_cv_have_atol_decl=no
55612 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
55613 ice_re_word='(^|[^a-zA-Z0-9_])'
55614 for header in stdlib.h; do
55615 # Check for ordinary declaration
55616 cat >conftest.$ac_ext <<_ACEOF
55617 /* confdefs.h.  */
55618 _ACEOF
55619 cat confdefs.h >>conftest.$ac_ext
55620 cat >>conftest.$ac_ext <<_ACEOF
55621 /* end confdefs.h.  */
55622 #include <$header>
55623
55624 _ACEOF
55625 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
55626   $EGREP "${ice_re_word}atol[   ]*\(" >/dev/null 2>&1; then
55627   ice_cv_have_atol_decl=yes
55628 fi
55629 rm -f conftest*
55630
55631 if test "$ice_cv_have_atol_decl" = yes; then
55632         break
55633 fi
55634 # Check for "fixed" declaration like "getpid _PARAMS((int))"
55635 cat >conftest.$ac_ext <<_ACEOF
55636 /* confdefs.h.  */
55637 _ACEOF
55638 cat confdefs.h >>conftest.$ac_ext
55639 cat >>conftest.$ac_ext <<_ACEOF
55640 /* end confdefs.h.  */
55641 #include <$header>
55642
55643 _ACEOF
55644 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
55645   $EGREP "${ice_re_word}atol[   ]*$ice_re_params\(\(" >/dev/null 2>&1; then
55646   ice_cv_have_atol_decl=yes
55647 fi
55648 rm -f conftest*
55649
55650 if test "$ice_cv_have_atol_decl" = yes; then
55651         break
55652 fi
55653 done
55654
55655 fi
55656
55657 { echo "$as_me:$LINENO: result: $ice_cv_have_atol_decl" >&5
55658 echo "${ECHO_T}$ice_cv_have_atol_decl" >&6; }
55659 if test "$ice_cv_have_atol_decl" = yes; then
55660
55661 cat >>confdefs.h <<_ACEOF
55662 #define HAVE_ATOL_DECL 1
55663 _ACEOF
55664
55665 fi
55666 fi
55667
55668
55669 ice_have_atoll=no
55670
55671 for ac_func in atoll
55672 do
55673 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
55674 { echo "$as_me:$LINENO: checking for $ac_func" >&5
55675 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
55676 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
55677   echo $ECHO_N "(cached) $ECHO_C" >&6
55678 else
55679   cat >conftest.$ac_ext <<_ACEOF
55680 /* confdefs.h.  */
55681 _ACEOF
55682 cat confdefs.h >>conftest.$ac_ext
55683 cat >>conftest.$ac_ext <<_ACEOF
55684 /* end confdefs.h.  */
55685 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
55686    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
55687 #define $ac_func innocuous_$ac_func
55688
55689 /* System header to define __stub macros and hopefully few prototypes,
55690     which can conflict with char $ac_func (); below.
55691     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
55692     <limits.h> exists even on freestanding compilers.  */
55693
55694 #ifdef __STDC__
55695 # include <limits.h>
55696 #else
55697 # include <assert.h>
55698 #endif
55699
55700 #undef $ac_func
55701
55702 /* Override any GCC internal prototype to avoid an error.
55703    Use char because int might match the return type of a GCC
55704    builtin and then its argument prototype would still apply.  */
55705 #ifdef __cplusplus
55706 extern "C"
55707 #endif
55708 char $ac_func ();
55709 /* The GNU C library defines this for functions which it implements
55710     to always fail with ENOSYS.  Some functions are actually named
55711     something starting with __ and the normal name is an alias.  */
55712 #if defined __stub_$ac_func || defined __stub___$ac_func
55713 choke me
55714 #endif
55715
55716 int
55717 main ()
55718 {
55719 return $ac_func ();
55720   ;
55721   return 0;
55722 }
55723 _ACEOF
55724 rm -f conftest.$ac_objext conftest$ac_exeext
55725 if { (ac_try="$ac_link"
55726 case "(($ac_try" in
55727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55728   *) ac_try_echo=$ac_try;;
55729 esac
55730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
55731   (eval "$ac_link") 2>conftest.er1
55732   ac_status=$?
55733   grep -v '^ *+' conftest.er1 >conftest.err
55734   rm -f conftest.er1
55735   cat conftest.err >&5
55736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55737   (exit $ac_status); } && {
55738          test -z "$ac_c_werror_flag" ||
55739          test ! -s conftest.err
55740        } && test -s conftest$ac_exeext &&
55741        $as_test_x conftest$ac_exeext; then
55742   eval "$as_ac_var=yes"
55743 else
55744   echo "$as_me: failed program was:" >&5
55745 sed 's/^/| /' conftest.$ac_ext >&5
55746
55747         eval "$as_ac_var=no"
55748 fi
55749
55750 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
55751       conftest$ac_exeext conftest.$ac_ext
55752 fi
55753 ac_res=`eval echo '${'$as_ac_var'}'`
55754                { echo "$as_me:$LINENO: result: $ac_res" >&5
55755 echo "${ECHO_T}$ac_res" >&6; }
55756 if test `eval echo '${'$as_ac_var'}'` = yes; then
55757   cat >>confdefs.h <<_ACEOF
55758 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
55759 _ACEOF
55760  ice_have_atoll=yes
55761 fi
55762 done
55763
55764 if test "${ice_have_atoll}" = yes; then
55765 { echo "$as_me:$LINENO: checking for atoll declaration in stdlib.h" >&5
55766 echo $ECHO_N "checking for atoll declaration in stdlib.h... $ECHO_C" >&6; }
55767 if test "${ice_cv_have_atoll_decl+set}" = set; then
55768   echo $ECHO_N "(cached) $ECHO_C" >&6
55769 else
55770
55771 ice_cv_have_atoll_decl=no
55772 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
55773 ice_re_word='(^|[^a-zA-Z0-9_])'
55774 for header in stdlib.h; do
55775 # Check for ordinary declaration
55776 cat >conftest.$ac_ext <<_ACEOF
55777 /* confdefs.h.  */
55778 _ACEOF
55779 cat confdefs.h >>conftest.$ac_ext
55780 cat >>conftest.$ac_ext <<_ACEOF
55781 /* end confdefs.h.  */
55782 #include <$header>
55783
55784 _ACEOF
55785 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
55786   $EGREP "${ice_re_word}atoll[  ]*\(" >/dev/null 2>&1; then
55787   ice_cv_have_atoll_decl=yes
55788 fi
55789 rm -f conftest*
55790
55791 if test "$ice_cv_have_atoll_decl" = yes; then
55792         break
55793 fi
55794 # Check for "fixed" declaration like "getpid _PARAMS((int))"
55795 cat >conftest.$ac_ext <<_ACEOF
55796 /* confdefs.h.  */
55797 _ACEOF
55798 cat confdefs.h >>conftest.$ac_ext
55799 cat >>conftest.$ac_ext <<_ACEOF
55800 /* end confdefs.h.  */
55801 #include <$header>
55802
55803 _ACEOF
55804 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
55805   $EGREP "${ice_re_word}atoll[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
55806   ice_cv_have_atoll_decl=yes
55807 fi
55808 rm -f conftest*
55809
55810 if test "$ice_cv_have_atoll_decl" = yes; then
55811         break
55812 fi
55813 done
55814
55815 fi
55816
55817 { echo "$as_me:$LINENO: result: $ice_cv_have_atoll_decl" >&5
55818 echo "${ECHO_T}$ice_cv_have_atoll_decl" >&6; }
55819 if test "$ice_cv_have_atoll_decl" = yes; then
55820
55821 cat >>confdefs.h <<_ACEOF
55822 #define HAVE_ATOLL_DECL 1
55823 _ACEOF
55824
55825 fi
55826 fi
55827
55828
55829 ice_have_strtol=no
55830
55831 for ac_func in strtol
55832 do
55833 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
55834 { echo "$as_me:$LINENO: checking for $ac_func" >&5
55835 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
55836 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
55837   echo $ECHO_N "(cached) $ECHO_C" >&6
55838 else
55839   cat >conftest.$ac_ext <<_ACEOF
55840 /* confdefs.h.  */
55841 _ACEOF
55842 cat confdefs.h >>conftest.$ac_ext
55843 cat >>conftest.$ac_ext <<_ACEOF
55844 /* end confdefs.h.  */
55845 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
55846    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
55847 #define $ac_func innocuous_$ac_func
55848
55849 /* System header to define __stub macros and hopefully few prototypes,
55850     which can conflict with char $ac_func (); below.
55851     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
55852     <limits.h> exists even on freestanding compilers.  */
55853
55854 #ifdef __STDC__
55855 # include <limits.h>
55856 #else
55857 # include <assert.h>
55858 #endif
55859
55860 #undef $ac_func
55861
55862 /* Override any GCC internal prototype to avoid an error.
55863    Use char because int might match the return type of a GCC
55864    builtin and then its argument prototype would still apply.  */
55865 #ifdef __cplusplus
55866 extern "C"
55867 #endif
55868 char $ac_func ();
55869 /* The GNU C library defines this for functions which it implements
55870     to always fail with ENOSYS.  Some functions are actually named
55871     something starting with __ and the normal name is an alias.  */
55872 #if defined __stub_$ac_func || defined __stub___$ac_func
55873 choke me
55874 #endif
55875
55876 int
55877 main ()
55878 {
55879 return $ac_func ();
55880   ;
55881   return 0;
55882 }
55883 _ACEOF
55884 rm -f conftest.$ac_objext conftest$ac_exeext
55885 if { (ac_try="$ac_link"
55886 case "(($ac_try" in
55887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55888   *) ac_try_echo=$ac_try;;
55889 esac
55890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
55891   (eval "$ac_link") 2>conftest.er1
55892   ac_status=$?
55893   grep -v '^ *+' conftest.er1 >conftest.err
55894   rm -f conftest.er1
55895   cat conftest.err >&5
55896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55897   (exit $ac_status); } && {
55898          test -z "$ac_c_werror_flag" ||
55899          test ! -s conftest.err
55900        } && test -s conftest$ac_exeext &&
55901        $as_test_x conftest$ac_exeext; then
55902   eval "$as_ac_var=yes"
55903 else
55904   echo "$as_me: failed program was:" >&5
55905 sed 's/^/| /' conftest.$ac_ext >&5
55906
55907         eval "$as_ac_var=no"
55908 fi
55909
55910 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
55911       conftest$ac_exeext conftest.$ac_ext
55912 fi
55913 ac_res=`eval echo '${'$as_ac_var'}'`
55914                { echo "$as_me:$LINENO: result: $ac_res" >&5
55915 echo "${ECHO_T}$ac_res" >&6; }
55916 if test `eval echo '${'$as_ac_var'}'` = yes; then
55917   cat >>confdefs.h <<_ACEOF
55918 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
55919 _ACEOF
55920  ice_have_strtol=yes
55921 fi
55922 done
55923
55924 if test "${ice_have_strtol}" = yes; then
55925 { echo "$as_me:$LINENO: checking for strtol declaration in stdlib.h" >&5
55926 echo $ECHO_N "checking for strtol declaration in stdlib.h... $ECHO_C" >&6; }
55927 if test "${ice_cv_have_strtol_decl+set}" = set; then
55928   echo $ECHO_N "(cached) $ECHO_C" >&6
55929 else
55930
55931 ice_cv_have_strtol_decl=no
55932 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
55933 ice_re_word='(^|[^a-zA-Z0-9_])'
55934 for header in stdlib.h; do
55935 # Check for ordinary declaration
55936 cat >conftest.$ac_ext <<_ACEOF
55937 /* confdefs.h.  */
55938 _ACEOF
55939 cat confdefs.h >>conftest.$ac_ext
55940 cat >>conftest.$ac_ext <<_ACEOF
55941 /* end confdefs.h.  */
55942 #include <$header>
55943
55944 _ACEOF
55945 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
55946   $EGREP "${ice_re_word}strtol[         ]*\(" >/dev/null 2>&1; then
55947   ice_cv_have_strtol_decl=yes
55948 fi
55949 rm -f conftest*
55950
55951 if test "$ice_cv_have_strtol_decl" = yes; then
55952         break
55953 fi
55954 # Check for "fixed" declaration like "getpid _PARAMS((int))"
55955 cat >conftest.$ac_ext <<_ACEOF
55956 /* confdefs.h.  */
55957 _ACEOF
55958 cat confdefs.h >>conftest.$ac_ext
55959 cat >>conftest.$ac_ext <<_ACEOF
55960 /* end confdefs.h.  */
55961 #include <$header>
55962
55963 _ACEOF
55964 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
55965   $EGREP "${ice_re_word}strtol[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
55966   ice_cv_have_strtol_decl=yes
55967 fi
55968 rm -f conftest*
55969
55970 if test "$ice_cv_have_strtol_decl" = yes; then
55971         break
55972 fi
55973 done
55974
55975 fi
55976
55977 { echo "$as_me:$LINENO: result: $ice_cv_have_strtol_decl" >&5
55978 echo "${ECHO_T}$ice_cv_have_strtol_decl" >&6; }
55979 if test "$ice_cv_have_strtol_decl" = yes; then
55980
55981 cat >>confdefs.h <<_ACEOF
55982 #define HAVE_STRTOL_DECL 1
55983 _ACEOF
55984
55985 fi
55986 fi
55987
55988
55989 ice_have_strtoll=no
55990
55991 for ac_func in strtoll
55992 do
55993 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
55994 { echo "$as_me:$LINENO: checking for $ac_func" >&5
55995 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
55996 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
55997   echo $ECHO_N "(cached) $ECHO_C" >&6
55998 else
55999   cat >conftest.$ac_ext <<_ACEOF
56000 /* confdefs.h.  */
56001 _ACEOF
56002 cat confdefs.h >>conftest.$ac_ext
56003 cat >>conftest.$ac_ext <<_ACEOF
56004 /* end confdefs.h.  */
56005 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
56006    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
56007 #define $ac_func innocuous_$ac_func
56008
56009 /* System header to define __stub macros and hopefully few prototypes,
56010     which can conflict with char $ac_func (); below.
56011     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
56012     <limits.h> exists even on freestanding compilers.  */
56013
56014 #ifdef __STDC__
56015 # include <limits.h>
56016 #else
56017 # include <assert.h>
56018 #endif
56019
56020 #undef $ac_func
56021
56022 /* Override any GCC internal prototype to avoid an error.
56023    Use char because int might match the return type of a GCC
56024    builtin and then its argument prototype would still apply.  */
56025 #ifdef __cplusplus
56026 extern "C"
56027 #endif
56028 char $ac_func ();
56029 /* The GNU C library defines this for functions which it implements
56030     to always fail with ENOSYS.  Some functions are actually named
56031     something starting with __ and the normal name is an alias.  */
56032 #if defined __stub_$ac_func || defined __stub___$ac_func
56033 choke me
56034 #endif
56035
56036 int
56037 main ()
56038 {
56039 return $ac_func ();
56040   ;
56041   return 0;
56042 }
56043 _ACEOF
56044 rm -f conftest.$ac_objext conftest$ac_exeext
56045 if { (ac_try="$ac_link"
56046 case "(($ac_try" in
56047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56048   *) ac_try_echo=$ac_try;;
56049 esac
56050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
56051   (eval "$ac_link") 2>conftest.er1
56052   ac_status=$?
56053   grep -v '^ *+' conftest.er1 >conftest.err
56054   rm -f conftest.er1
56055   cat conftest.err >&5
56056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56057   (exit $ac_status); } && {
56058          test -z "$ac_c_werror_flag" ||
56059          test ! -s conftest.err
56060        } && test -s conftest$ac_exeext &&
56061        $as_test_x conftest$ac_exeext; then
56062   eval "$as_ac_var=yes"
56063 else
56064   echo "$as_me: failed program was:" >&5
56065 sed 's/^/| /' conftest.$ac_ext >&5
56066
56067         eval "$as_ac_var=no"
56068 fi
56069
56070 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
56071       conftest$ac_exeext conftest.$ac_ext
56072 fi
56073 ac_res=`eval echo '${'$as_ac_var'}'`
56074                { echo "$as_me:$LINENO: result: $ac_res" >&5
56075 echo "${ECHO_T}$ac_res" >&6; }
56076 if test `eval echo '${'$as_ac_var'}'` = yes; then
56077   cat >>confdefs.h <<_ACEOF
56078 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
56079 _ACEOF
56080  ice_have_strtoll=yes
56081 fi
56082 done
56083
56084 if test "${ice_have_strtoll}" = yes; then
56085 { echo "$as_me:$LINENO: checking for strtoll declaration in stdlib.h" >&5
56086 echo $ECHO_N "checking for strtoll declaration in stdlib.h... $ECHO_C" >&6; }
56087 if test "${ice_cv_have_strtoll_decl+set}" = set; then
56088   echo $ECHO_N "(cached) $ECHO_C" >&6
56089 else
56090
56091 ice_cv_have_strtoll_decl=no
56092 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
56093 ice_re_word='(^|[^a-zA-Z0-9_])'
56094 for header in stdlib.h; do
56095 # Check for ordinary declaration
56096 cat >conftest.$ac_ext <<_ACEOF
56097 /* confdefs.h.  */
56098 _ACEOF
56099 cat confdefs.h >>conftest.$ac_ext
56100 cat >>conftest.$ac_ext <<_ACEOF
56101 /* end confdefs.h.  */
56102 #include <$header>
56103
56104 _ACEOF
56105 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
56106   $EGREP "${ice_re_word}strtoll[        ]*\(" >/dev/null 2>&1; then
56107   ice_cv_have_strtoll_decl=yes
56108 fi
56109 rm -f conftest*
56110
56111 if test "$ice_cv_have_strtoll_decl" = yes; then
56112         break
56113 fi
56114 # Check for "fixed" declaration like "getpid _PARAMS((int))"
56115 cat >conftest.$ac_ext <<_ACEOF
56116 /* confdefs.h.  */
56117 _ACEOF
56118 cat confdefs.h >>conftest.$ac_ext
56119 cat >>conftest.$ac_ext <<_ACEOF
56120 /* end confdefs.h.  */
56121 #include <$header>
56122
56123 _ACEOF
56124 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
56125   $EGREP "${ice_re_word}strtoll[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
56126   ice_cv_have_strtoll_decl=yes
56127 fi
56128 rm -f conftest*
56129
56130 if test "$ice_cv_have_strtoll_decl" = yes; then
56131         break
56132 fi
56133 done
56134
56135 fi
56136
56137 { echo "$as_me:$LINENO: result: $ice_cv_have_strtoll_decl" >&5
56138 echo "${ECHO_T}$ice_cv_have_strtoll_decl" >&6; }
56139 if test "$ice_cv_have_strtoll_decl" = yes; then
56140
56141 cat >>confdefs.h <<_ACEOF
56142 #define HAVE_STRTOLL_DECL 1
56143 _ACEOF
56144
56145 fi
56146 fi
56147
56148
56149 for ac_func in basename
56150 do
56151 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
56152 { echo "$as_me:$LINENO: checking for $ac_func" >&5
56153 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
56154 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
56155   echo $ECHO_N "(cached) $ECHO_C" >&6
56156 else
56157   cat >conftest.$ac_ext <<_ACEOF
56158 /* confdefs.h.  */
56159 _ACEOF
56160 cat confdefs.h >>conftest.$ac_ext
56161 cat >>conftest.$ac_ext <<_ACEOF
56162 /* end confdefs.h.  */
56163 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
56164    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
56165 #define $ac_func innocuous_$ac_func
56166
56167 /* System header to define __stub macros and hopefully few prototypes,
56168     which can conflict with char $ac_func (); below.
56169     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
56170     <limits.h> exists even on freestanding compilers.  */
56171
56172 #ifdef __STDC__
56173 # include <limits.h>
56174 #else
56175 # include <assert.h>
56176 #endif
56177
56178 #undef $ac_func
56179
56180 /* Override any GCC internal prototype to avoid an error.
56181    Use char because int might match the return type of a GCC
56182    builtin and then its argument prototype would still apply.  */
56183 #ifdef __cplusplus
56184 extern "C"
56185 #endif
56186 char $ac_func ();
56187 /* The GNU C library defines this for functions which it implements
56188     to always fail with ENOSYS.  Some functions are actually named
56189     something starting with __ and the normal name is an alias.  */
56190 #if defined __stub_$ac_func || defined __stub___$ac_func
56191 choke me
56192 #endif
56193
56194 int
56195 main ()
56196 {
56197 return $ac_func ();
56198   ;
56199   return 0;
56200 }
56201 _ACEOF
56202 rm -f conftest.$ac_objext conftest$ac_exeext
56203 if { (ac_try="$ac_link"
56204 case "(($ac_try" in
56205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56206   *) ac_try_echo=$ac_try;;
56207 esac
56208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
56209   (eval "$ac_link") 2>conftest.er1
56210   ac_status=$?
56211   grep -v '^ *+' conftest.er1 >conftest.err
56212   rm -f conftest.er1
56213   cat conftest.err >&5
56214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56215   (exit $ac_status); } && {
56216          test -z "$ac_c_werror_flag" ||
56217          test ! -s conftest.err
56218        } && test -s conftest$ac_exeext &&
56219        $as_test_x conftest$ac_exeext; then
56220   eval "$as_ac_var=yes"
56221 else
56222   echo "$as_me: failed program was:" >&5
56223 sed 's/^/| /' conftest.$ac_ext >&5
56224
56225         eval "$as_ac_var=no"
56226 fi
56227
56228 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
56229       conftest$ac_exeext conftest.$ac_ext
56230 fi
56231 ac_res=`eval echo '${'$as_ac_var'}'`
56232                { echo "$as_me:$LINENO: result: $ac_res" >&5
56233 echo "${ECHO_T}$ac_res" >&6; }
56234 if test `eval echo '${'$as_ac_var'}'` = yes; then
56235   cat >>confdefs.h <<_ACEOF
56236 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
56237 _ACEOF
56238
56239 fi
56240 done
56241
56242
56243 ice_have_bind=no
56244
56245 for ac_func in bind
56246 do
56247 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
56248 { echo "$as_me:$LINENO: checking for $ac_func" >&5
56249 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
56250 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
56251   echo $ECHO_N "(cached) $ECHO_C" >&6
56252 else
56253   cat >conftest.$ac_ext <<_ACEOF
56254 /* confdefs.h.  */
56255 _ACEOF
56256 cat confdefs.h >>conftest.$ac_ext
56257 cat >>conftest.$ac_ext <<_ACEOF
56258 /* end confdefs.h.  */
56259 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
56260    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
56261 #define $ac_func innocuous_$ac_func
56262
56263 /* System header to define __stub macros and hopefully few prototypes,
56264     which can conflict with char $ac_func (); below.
56265     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
56266     <limits.h> exists even on freestanding compilers.  */
56267
56268 #ifdef __STDC__
56269 # include <limits.h>
56270 #else
56271 # include <assert.h>
56272 #endif
56273
56274 #undef $ac_func
56275
56276 /* Override any GCC internal prototype to avoid an error.
56277    Use char because int might match the return type of a GCC
56278    builtin and then its argument prototype would still apply.  */
56279 #ifdef __cplusplus
56280 extern "C"
56281 #endif
56282 char $ac_func ();
56283 /* The GNU C library defines this for functions which it implements
56284     to always fail with ENOSYS.  Some functions are actually named
56285     something starting with __ and the normal name is an alias.  */
56286 #if defined __stub_$ac_func || defined __stub___$ac_func
56287 choke me
56288 #endif
56289
56290 int
56291 main ()
56292 {
56293 return $ac_func ();
56294   ;
56295   return 0;
56296 }
56297 _ACEOF
56298 rm -f conftest.$ac_objext conftest$ac_exeext
56299 if { (ac_try="$ac_link"
56300 case "(($ac_try" in
56301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56302   *) ac_try_echo=$ac_try;;
56303 esac
56304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
56305   (eval "$ac_link") 2>conftest.er1
56306   ac_status=$?
56307   grep -v '^ *+' conftest.er1 >conftest.err
56308   rm -f conftest.er1
56309   cat conftest.err >&5
56310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56311   (exit $ac_status); } && {
56312          test -z "$ac_c_werror_flag" ||
56313          test ! -s conftest.err
56314        } && test -s conftest$ac_exeext &&
56315        $as_test_x conftest$ac_exeext; then
56316   eval "$as_ac_var=yes"
56317 else
56318   echo "$as_me: failed program was:" >&5
56319 sed 's/^/| /' conftest.$ac_ext >&5
56320
56321         eval "$as_ac_var=no"
56322 fi
56323
56324 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
56325       conftest$ac_exeext conftest.$ac_ext
56326 fi
56327 ac_res=`eval echo '${'$as_ac_var'}'`
56328                { echo "$as_me:$LINENO: result: $ac_res" >&5
56329 echo "${ECHO_T}$ac_res" >&6; }
56330 if test `eval echo '${'$as_ac_var'}'` = yes; then
56331   cat >>confdefs.h <<_ACEOF
56332 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
56333 _ACEOF
56334  ice_have_bind=yes
56335 fi
56336 done
56337
56338 if test "${ice_have_bind}" = yes; then
56339 { echo "$as_me:$LINENO: checking for bind declaration in sys/types.h sys/socket.h" >&5
56340 echo $ECHO_N "checking for bind declaration in sys/types.h sys/socket.h... $ECHO_C" >&6; }
56341 if test "${ice_cv_have_bind_decl+set}" = set; then
56342   echo $ECHO_N "(cached) $ECHO_C" >&6
56343 else
56344
56345 ice_cv_have_bind_decl=no
56346 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
56347 ice_re_word='(^|[^a-zA-Z0-9_])'
56348 for header in sys/types.h sys/socket.h; do
56349 # Check for ordinary declaration
56350 cat >conftest.$ac_ext <<_ACEOF
56351 /* confdefs.h.  */
56352 _ACEOF
56353 cat confdefs.h >>conftest.$ac_ext
56354 cat >>conftest.$ac_ext <<_ACEOF
56355 /* end confdefs.h.  */
56356 #include <$header>
56357
56358 _ACEOF
56359 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
56360   $EGREP "${ice_re_word}bind[   ]*\(" >/dev/null 2>&1; then
56361   ice_cv_have_bind_decl=yes
56362 fi
56363 rm -f conftest*
56364
56365 if test "$ice_cv_have_bind_decl" = yes; then
56366         break
56367 fi
56368 # Check for "fixed" declaration like "getpid _PARAMS((int))"
56369 cat >conftest.$ac_ext <<_ACEOF
56370 /* confdefs.h.  */
56371 _ACEOF
56372 cat confdefs.h >>conftest.$ac_ext
56373 cat >>conftest.$ac_ext <<_ACEOF
56374 /* end confdefs.h.  */
56375 #include <$header>
56376
56377 _ACEOF
56378 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
56379   $EGREP "${ice_re_word}bind[   ]*$ice_re_params\(\(" >/dev/null 2>&1; then
56380   ice_cv_have_bind_decl=yes
56381 fi
56382 rm -f conftest*
56383
56384 if test "$ice_cv_have_bind_decl" = yes; then
56385         break
56386 fi
56387 done
56388
56389 fi
56390
56391 { echo "$as_me:$LINENO: result: $ice_cv_have_bind_decl" >&5
56392 echo "${ECHO_T}$ice_cv_have_bind_decl" >&6; }
56393 if test "$ice_cv_have_bind_decl" = yes; then
56394
56395 cat >>confdefs.h <<_ACEOF
56396 #define HAVE_BIND_DECL 1
56397 _ACEOF
56398
56399 fi
56400 fi
56401
56402
56403 ice_have_bcopy=no
56404
56405 for ac_func in bcopy
56406 do
56407 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
56408 { echo "$as_me:$LINENO: checking for $ac_func" >&5
56409 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
56410 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
56411   echo $ECHO_N "(cached) $ECHO_C" >&6
56412 else
56413   cat >conftest.$ac_ext <<_ACEOF
56414 /* confdefs.h.  */
56415 _ACEOF
56416 cat confdefs.h >>conftest.$ac_ext
56417 cat >>conftest.$ac_ext <<_ACEOF
56418 /* end confdefs.h.  */
56419 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
56420    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
56421 #define $ac_func innocuous_$ac_func
56422
56423 /* System header to define __stub macros and hopefully few prototypes,
56424     which can conflict with char $ac_func (); below.
56425     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
56426     <limits.h> exists even on freestanding compilers.  */
56427
56428 #ifdef __STDC__
56429 # include <limits.h>
56430 #else
56431 # include <assert.h>
56432 #endif
56433
56434 #undef $ac_func
56435
56436 /* Override any GCC internal prototype to avoid an error.
56437    Use char because int might match the return type of a GCC
56438    builtin and then its argument prototype would still apply.  */
56439 #ifdef __cplusplus
56440 extern "C"
56441 #endif
56442 char $ac_func ();
56443 /* The GNU C library defines this for functions which it implements
56444     to always fail with ENOSYS.  Some functions are actually named
56445     something starting with __ and the normal name is an alias.  */
56446 #if defined __stub_$ac_func || defined __stub___$ac_func
56447 choke me
56448 #endif
56449
56450 int
56451 main ()
56452 {
56453 return $ac_func ();
56454   ;
56455   return 0;
56456 }
56457 _ACEOF
56458 rm -f conftest.$ac_objext conftest$ac_exeext
56459 if { (ac_try="$ac_link"
56460 case "(($ac_try" in
56461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56462   *) ac_try_echo=$ac_try;;
56463 esac
56464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
56465   (eval "$ac_link") 2>conftest.er1
56466   ac_status=$?
56467   grep -v '^ *+' conftest.er1 >conftest.err
56468   rm -f conftest.er1
56469   cat conftest.err >&5
56470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56471   (exit $ac_status); } && {
56472          test -z "$ac_c_werror_flag" ||
56473          test ! -s conftest.err
56474        } && test -s conftest$ac_exeext &&
56475        $as_test_x conftest$ac_exeext; then
56476   eval "$as_ac_var=yes"
56477 else
56478   echo "$as_me: failed program was:" >&5
56479 sed 's/^/| /' conftest.$ac_ext >&5
56480
56481         eval "$as_ac_var=no"
56482 fi
56483
56484 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
56485       conftest$ac_exeext conftest.$ac_ext
56486 fi
56487 ac_res=`eval echo '${'$as_ac_var'}'`
56488                { echo "$as_me:$LINENO: result: $ac_res" >&5
56489 echo "${ECHO_T}$ac_res" >&6; }
56490 if test `eval echo '${'$as_ac_var'}'` = yes; then
56491   cat >>confdefs.h <<_ACEOF
56492 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
56493 _ACEOF
56494  ice_have_bcopy=yes
56495 fi
56496 done
56497
56498 if test "${ice_have_bcopy}" = yes; then
56499 { echo "$as_me:$LINENO: checking for bcopy declaration in string.h strings.h stdlib.h" >&5
56500 echo $ECHO_N "checking for bcopy declaration in string.h strings.h stdlib.h... $ECHO_C" >&6; }
56501 if test "${ice_cv_have_bcopy_decl+set}" = set; then
56502   echo $ECHO_N "(cached) $ECHO_C" >&6
56503 else
56504
56505 ice_cv_have_bcopy_decl=no
56506 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
56507 ice_re_word='(^|[^a-zA-Z0-9_])'
56508 for header in string.h strings.h stdlib.h; do
56509 # Check for ordinary declaration
56510 cat >conftest.$ac_ext <<_ACEOF
56511 /* confdefs.h.  */
56512 _ACEOF
56513 cat confdefs.h >>conftest.$ac_ext
56514 cat >>conftest.$ac_ext <<_ACEOF
56515 /* end confdefs.h.  */
56516 #include <$header>
56517
56518 _ACEOF
56519 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
56520   $EGREP "${ice_re_word}bcopy[  ]*\(" >/dev/null 2>&1; then
56521   ice_cv_have_bcopy_decl=yes
56522 fi
56523 rm -f conftest*
56524
56525 if test "$ice_cv_have_bcopy_decl" = yes; then
56526         break
56527 fi
56528 # Check for "fixed" declaration like "getpid _PARAMS((int))"
56529 cat >conftest.$ac_ext <<_ACEOF
56530 /* confdefs.h.  */
56531 _ACEOF
56532 cat confdefs.h >>conftest.$ac_ext
56533 cat >>conftest.$ac_ext <<_ACEOF
56534 /* end confdefs.h.  */
56535 #include <$header>
56536
56537 _ACEOF
56538 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
56539   $EGREP "${ice_re_word}bcopy[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
56540   ice_cv_have_bcopy_decl=yes
56541 fi
56542 rm -f conftest*
56543
56544 if test "$ice_cv_have_bcopy_decl" = yes; then
56545         break
56546 fi
56547 done
56548
56549 fi
56550
56551 { echo "$as_me:$LINENO: result: $ice_cv_have_bcopy_decl" >&5
56552 echo "${ECHO_T}$ice_cv_have_bcopy_decl" >&6; }
56553 if test "$ice_cv_have_bcopy_decl" = yes; then
56554
56555 cat >>confdefs.h <<_ACEOF
56556 #define HAVE_BCOPY_DECL 1
56557 _ACEOF
56558
56559 fi
56560 fi
56561
56562
56563 ice_have_bzero=no
56564
56565 for ac_func in bzero
56566 do
56567 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
56568 { echo "$as_me:$LINENO: checking for $ac_func" >&5
56569 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
56570 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
56571   echo $ECHO_N "(cached) $ECHO_C" >&6
56572 else
56573   cat >conftest.$ac_ext <<_ACEOF
56574 /* confdefs.h.  */
56575 _ACEOF
56576 cat confdefs.h >>conftest.$ac_ext
56577 cat >>conftest.$ac_ext <<_ACEOF
56578 /* end confdefs.h.  */
56579 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
56580    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
56581 #define $ac_func innocuous_$ac_func
56582
56583 /* System header to define __stub macros and hopefully few prototypes,
56584     which can conflict with char $ac_func (); below.
56585     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
56586     <limits.h> exists even on freestanding compilers.  */
56587
56588 #ifdef __STDC__
56589 # include <limits.h>
56590 #else
56591 # include <assert.h>
56592 #endif
56593
56594 #undef $ac_func
56595
56596 /* Override any GCC internal prototype to avoid an error.
56597    Use char because int might match the return type of a GCC
56598    builtin and then its argument prototype would still apply.  */
56599 #ifdef __cplusplus
56600 extern "C"
56601 #endif
56602 char $ac_func ();
56603 /* The GNU C library defines this for functions which it implements
56604     to always fail with ENOSYS.  Some functions are actually named
56605     something starting with __ and the normal name is an alias.  */
56606 #if defined __stub_$ac_func || defined __stub___$ac_func
56607 choke me
56608 #endif
56609
56610 int
56611 main ()
56612 {
56613 return $ac_func ();
56614   ;
56615   return 0;
56616 }
56617 _ACEOF
56618 rm -f conftest.$ac_objext conftest$ac_exeext
56619 if { (ac_try="$ac_link"
56620 case "(($ac_try" in
56621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56622   *) ac_try_echo=$ac_try;;
56623 esac
56624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
56625   (eval "$ac_link") 2>conftest.er1
56626   ac_status=$?
56627   grep -v '^ *+' conftest.er1 >conftest.err
56628   rm -f conftest.er1
56629   cat conftest.err >&5
56630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56631   (exit $ac_status); } && {
56632          test -z "$ac_c_werror_flag" ||
56633          test ! -s conftest.err
56634        } && test -s conftest$ac_exeext &&
56635        $as_test_x conftest$ac_exeext; then
56636   eval "$as_ac_var=yes"
56637 else
56638   echo "$as_me: failed program was:" >&5
56639 sed 's/^/| /' conftest.$ac_ext >&5
56640
56641         eval "$as_ac_var=no"
56642 fi
56643
56644 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
56645       conftest$ac_exeext conftest.$ac_ext
56646 fi
56647 ac_res=`eval echo '${'$as_ac_var'}'`
56648                { echo "$as_me:$LINENO: result: $ac_res" >&5
56649 echo "${ECHO_T}$ac_res" >&6; }
56650 if test `eval echo '${'$as_ac_var'}'` = yes; then
56651   cat >>confdefs.h <<_ACEOF
56652 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
56653 _ACEOF
56654  ice_have_bzero=yes
56655 fi
56656 done
56657
56658 if test "${ice_have_bzero}" = yes; then
56659 { echo "$as_me:$LINENO: checking for bzero declaration in string.h strings.h stdlib.h" >&5
56660 echo $ECHO_N "checking for bzero declaration in string.h strings.h stdlib.h... $ECHO_C" >&6; }
56661 if test "${ice_cv_have_bzero_decl+set}" = set; then
56662   echo $ECHO_N "(cached) $ECHO_C" >&6
56663 else
56664
56665 ice_cv_have_bzero_decl=no
56666 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
56667 ice_re_word='(^|[^a-zA-Z0-9_])'
56668 for header in string.h strings.h stdlib.h; do
56669 # Check for ordinary declaration
56670 cat >conftest.$ac_ext <<_ACEOF
56671 /* confdefs.h.  */
56672 _ACEOF
56673 cat confdefs.h >>conftest.$ac_ext
56674 cat >>conftest.$ac_ext <<_ACEOF
56675 /* end confdefs.h.  */
56676 #include <$header>
56677
56678 _ACEOF
56679 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
56680   $EGREP "${ice_re_word}bzero[  ]*\(" >/dev/null 2>&1; then
56681   ice_cv_have_bzero_decl=yes
56682 fi
56683 rm -f conftest*
56684
56685 if test "$ice_cv_have_bzero_decl" = yes; then
56686         break
56687 fi
56688 # Check for "fixed" declaration like "getpid _PARAMS((int))"
56689 cat >conftest.$ac_ext <<_ACEOF
56690 /* confdefs.h.  */
56691 _ACEOF
56692 cat confdefs.h >>conftest.$ac_ext
56693 cat >>conftest.$ac_ext <<_ACEOF
56694 /* end confdefs.h.  */
56695 #include <$header>
56696
56697 _ACEOF
56698 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
56699   $EGREP "${ice_re_word}bzero[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
56700   ice_cv_have_bzero_decl=yes
56701 fi
56702 rm -f conftest*
56703
56704 if test "$ice_cv_have_bzero_decl" = yes; then
56705         break
56706 fi
56707 done
56708
56709 fi
56710
56711 { echo "$as_me:$LINENO: result: $ice_cv_have_bzero_decl" >&5
56712 echo "${ECHO_T}$ice_cv_have_bzero_decl" >&6; }
56713 if test "$ice_cv_have_bzero_decl" = yes; then
56714
56715 cat >>confdefs.h <<_ACEOF
56716 #define HAVE_BZERO_DECL 1
56717 _ACEOF
56718
56719 fi
56720 fi
56721
56722 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
56723 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
56724 if test "${ac_cv_func_closedir_void+set}" = set; then
56725   echo $ECHO_N "(cached) $ECHO_C" >&6
56726 else
56727   if test "$cross_compiling" = yes; then
56728   ac_cv_func_closedir_void=yes
56729 else
56730   cat >conftest.$ac_ext <<_ACEOF
56731 /* confdefs.h.  */
56732 _ACEOF
56733 cat confdefs.h >>conftest.$ac_ext
56734 cat >>conftest.$ac_ext <<_ACEOF
56735 /* end confdefs.h.  */
56736 $ac_includes_default
56737 #include <$ac_header_dirent>
56738 #ifndef __cplusplus
56739 int closedir ();
56740 #endif
56741
56742 int
56743 main ()
56744 {
56745 return closedir (opendir (".")) != 0;
56746   ;
56747   return 0;
56748 }
56749 _ACEOF
56750 rm -f conftest$ac_exeext
56751 if { (ac_try="$ac_link"
56752 case "(($ac_try" in
56753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56754   *) ac_try_echo=$ac_try;;
56755 esac
56756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
56757   (eval "$ac_link") 2>&5
56758   ac_status=$?
56759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56760   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
56761   { (case "(($ac_try" in
56762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56763   *) ac_try_echo=$ac_try;;
56764 esac
56765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
56766   (eval "$ac_try") 2>&5
56767   ac_status=$?
56768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56769   (exit $ac_status); }; }; then
56770   ac_cv_func_closedir_void=no
56771 else
56772   echo "$as_me: program exited with status $ac_status" >&5
56773 echo "$as_me: failed program was:" >&5
56774 sed 's/^/| /' conftest.$ac_ext >&5
56775
56776 ( exit $ac_status )
56777 ac_cv_func_closedir_void=yes
56778 fi
56779 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
56780 fi
56781
56782
56783 fi
56784 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
56785 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
56786 if test $ac_cv_func_closedir_void = yes; then
56787
56788 cat >>confdefs.h <<\_ACEOF
56789 #define CLOSEDIR_VOID 1
56790 _ACEOF
56791
56792 fi
56793
56794
56795 ice_have_closelog=no
56796
56797 for ac_func in closelog
56798 do
56799 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
56800 { echo "$as_me:$LINENO: checking for $ac_func" >&5
56801 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
56802 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
56803   echo $ECHO_N "(cached) $ECHO_C" >&6
56804 else
56805   cat >conftest.$ac_ext <<_ACEOF
56806 /* confdefs.h.  */
56807 _ACEOF
56808 cat confdefs.h >>conftest.$ac_ext
56809 cat >>conftest.$ac_ext <<_ACEOF
56810 /* end confdefs.h.  */
56811 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
56812    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
56813 #define $ac_func innocuous_$ac_func
56814
56815 /* System header to define __stub macros and hopefully few prototypes,
56816     which can conflict with char $ac_func (); below.
56817     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
56818     <limits.h> exists even on freestanding compilers.  */
56819
56820 #ifdef __STDC__
56821 # include <limits.h>
56822 #else
56823 # include <assert.h>
56824 #endif
56825
56826 #undef $ac_func
56827
56828 /* Override any GCC internal prototype to avoid an error.
56829    Use char because int might match the return type of a GCC
56830    builtin and then its argument prototype would still apply.  */
56831 #ifdef __cplusplus
56832 extern "C"
56833 #endif
56834 char $ac_func ();
56835 /* The GNU C library defines this for functions which it implements
56836     to always fail with ENOSYS.  Some functions are actually named
56837     something starting with __ and the normal name is an alias.  */
56838 #if defined __stub_$ac_func || defined __stub___$ac_func
56839 choke me
56840 #endif
56841
56842 int
56843 main ()
56844 {
56845 return $ac_func ();
56846   ;
56847   return 0;
56848 }
56849 _ACEOF
56850 rm -f conftest.$ac_objext conftest$ac_exeext
56851 if { (ac_try="$ac_link"
56852 case "(($ac_try" in
56853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56854   *) ac_try_echo=$ac_try;;
56855 esac
56856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
56857   (eval "$ac_link") 2>conftest.er1
56858   ac_status=$?
56859   grep -v '^ *+' conftest.er1 >conftest.err
56860   rm -f conftest.er1
56861   cat conftest.err >&5
56862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56863   (exit $ac_status); } && {
56864          test -z "$ac_c_werror_flag" ||
56865          test ! -s conftest.err
56866        } && test -s conftest$ac_exeext &&
56867        $as_test_x conftest$ac_exeext; then
56868   eval "$as_ac_var=yes"
56869 else
56870   echo "$as_me: failed program was:" >&5
56871 sed 's/^/| /' conftest.$ac_ext >&5
56872
56873         eval "$as_ac_var=no"
56874 fi
56875
56876 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
56877       conftest$ac_exeext conftest.$ac_ext
56878 fi
56879 ac_res=`eval echo '${'$as_ac_var'}'`
56880                { echo "$as_me:$LINENO: result: $ac_res" >&5
56881 echo "${ECHO_T}$ac_res" >&6; }
56882 if test `eval echo '${'$as_ac_var'}'` = yes; then
56883   cat >>confdefs.h <<_ACEOF
56884 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
56885 _ACEOF
56886  ice_have_closelog=yes
56887 fi
56888 done
56889
56890 if test "${ice_have_closelog}" = yes; then
56891 { echo "$as_me:$LINENO: checking for closelog declaration in syslog.h" >&5
56892 echo $ECHO_N "checking for closelog declaration in syslog.h... $ECHO_C" >&6; }
56893 if test "${ice_cv_have_closelog_decl+set}" = set; then
56894   echo $ECHO_N "(cached) $ECHO_C" >&6
56895 else
56896
56897 ice_cv_have_closelog_decl=no
56898 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
56899 ice_re_word='(^|[^a-zA-Z0-9_])'
56900 for header in syslog.h; do
56901 # Check for ordinary declaration
56902 cat >conftest.$ac_ext <<_ACEOF
56903 /* confdefs.h.  */
56904 _ACEOF
56905 cat confdefs.h >>conftest.$ac_ext
56906 cat >>conftest.$ac_ext <<_ACEOF
56907 /* end confdefs.h.  */
56908 #include <$header>
56909
56910 _ACEOF
56911 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
56912   $EGREP "${ice_re_word}closelog[       ]*\(" >/dev/null 2>&1; then
56913   ice_cv_have_closelog_decl=yes
56914 fi
56915 rm -f conftest*
56916
56917 if test "$ice_cv_have_closelog_decl" = yes; then
56918         break
56919 fi
56920 # Check for "fixed" declaration like "getpid _PARAMS((int))"
56921 cat >conftest.$ac_ext <<_ACEOF
56922 /* confdefs.h.  */
56923 _ACEOF
56924 cat confdefs.h >>conftest.$ac_ext
56925 cat >>conftest.$ac_ext <<_ACEOF
56926 /* end confdefs.h.  */
56927 #include <$header>
56928
56929 _ACEOF
56930 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
56931   $EGREP "${ice_re_word}closelog[       ]*$ice_re_params\(\(" >/dev/null 2>&1; then
56932   ice_cv_have_closelog_decl=yes
56933 fi
56934 rm -f conftest*
56935
56936 if test "$ice_cv_have_closelog_decl" = yes; then
56937         break
56938 fi
56939 done
56940
56941 fi
56942
56943 { echo "$as_me:$LINENO: result: $ice_cv_have_closelog_decl" >&5
56944 echo "${ECHO_T}$ice_cv_have_closelog_decl" >&6; }
56945 if test "$ice_cv_have_closelog_decl" = yes; then
56946
56947 cat >>confdefs.h <<_ACEOF
56948 #define HAVE_CLOSELOG_DECL 1
56949 _ACEOF
56950
56951 fi
56952 fi
56953
56954
56955 ice_have_connect=no
56956
56957 for ac_func in connect
56958 do
56959 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
56960 { echo "$as_me:$LINENO: checking for $ac_func" >&5
56961 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
56962 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
56963   echo $ECHO_N "(cached) $ECHO_C" >&6
56964 else
56965   cat >conftest.$ac_ext <<_ACEOF
56966 /* confdefs.h.  */
56967 _ACEOF
56968 cat confdefs.h >>conftest.$ac_ext
56969 cat >>conftest.$ac_ext <<_ACEOF
56970 /* end confdefs.h.  */
56971 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
56972    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
56973 #define $ac_func innocuous_$ac_func
56974
56975 /* System header to define __stub macros and hopefully few prototypes,
56976     which can conflict with char $ac_func (); below.
56977     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
56978     <limits.h> exists even on freestanding compilers.  */
56979
56980 #ifdef __STDC__
56981 # include <limits.h>
56982 #else
56983 # include <assert.h>
56984 #endif
56985
56986 #undef $ac_func
56987
56988 /* Override any GCC internal prototype to avoid an error.
56989    Use char because int might match the return type of a GCC
56990    builtin and then its argument prototype would still apply.  */
56991 #ifdef __cplusplus
56992 extern "C"
56993 #endif
56994 char $ac_func ();
56995 /* The GNU C library defines this for functions which it implements
56996     to always fail with ENOSYS.  Some functions are actually named
56997     something starting with __ and the normal name is an alias.  */
56998 #if defined __stub_$ac_func || defined __stub___$ac_func
56999 choke me
57000 #endif
57001
57002 int
57003 main ()
57004 {
57005 return $ac_func ();
57006   ;
57007   return 0;
57008 }
57009 _ACEOF
57010 rm -f conftest.$ac_objext conftest$ac_exeext
57011 if { (ac_try="$ac_link"
57012 case "(($ac_try" in
57013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57014   *) ac_try_echo=$ac_try;;
57015 esac
57016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
57017   (eval "$ac_link") 2>conftest.er1
57018   ac_status=$?
57019   grep -v '^ *+' conftest.er1 >conftest.err
57020   rm -f conftest.er1
57021   cat conftest.err >&5
57022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57023   (exit $ac_status); } && {
57024          test -z "$ac_c_werror_flag" ||
57025          test ! -s conftest.err
57026        } && test -s conftest$ac_exeext &&
57027        $as_test_x conftest$ac_exeext; then
57028   eval "$as_ac_var=yes"
57029 else
57030   echo "$as_me: failed program was:" >&5
57031 sed 's/^/| /' conftest.$ac_ext >&5
57032
57033         eval "$as_ac_var=no"
57034 fi
57035
57036 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
57037       conftest$ac_exeext conftest.$ac_ext
57038 fi
57039 ac_res=`eval echo '${'$as_ac_var'}'`
57040                { echo "$as_me:$LINENO: result: $ac_res" >&5
57041 echo "${ECHO_T}$ac_res" >&6; }
57042 if test `eval echo '${'$as_ac_var'}'` = yes; then
57043   cat >>confdefs.h <<_ACEOF
57044 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
57045 _ACEOF
57046  ice_have_connect=yes
57047 fi
57048 done
57049
57050 if test "${ice_have_connect}" = yes; then
57051 { echo "$as_me:$LINENO: checking for connect declaration in sys/types.h sys/socket.h" >&5
57052 echo $ECHO_N "checking for connect declaration in sys/types.h sys/socket.h... $ECHO_C" >&6; }
57053 if test "${ice_cv_have_connect_decl+set}" = set; then
57054   echo $ECHO_N "(cached) $ECHO_C" >&6
57055 else
57056
57057 ice_cv_have_connect_decl=no
57058 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
57059 ice_re_word='(^|[^a-zA-Z0-9_])'
57060 for header in sys/types.h sys/socket.h; do
57061 # Check for ordinary declaration
57062 cat >conftest.$ac_ext <<_ACEOF
57063 /* confdefs.h.  */
57064 _ACEOF
57065 cat confdefs.h >>conftest.$ac_ext
57066 cat >>conftest.$ac_ext <<_ACEOF
57067 /* end confdefs.h.  */
57068 #include <$header>
57069
57070 _ACEOF
57071 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
57072   $EGREP "${ice_re_word}connect[        ]*\(" >/dev/null 2>&1; then
57073   ice_cv_have_connect_decl=yes
57074 fi
57075 rm -f conftest*
57076
57077 if test "$ice_cv_have_connect_decl" = yes; then
57078         break
57079 fi
57080 # Check for "fixed" declaration like "getpid _PARAMS((int))"
57081 cat >conftest.$ac_ext <<_ACEOF
57082 /* confdefs.h.  */
57083 _ACEOF
57084 cat confdefs.h >>conftest.$ac_ext
57085 cat >>conftest.$ac_ext <<_ACEOF
57086 /* end confdefs.h.  */
57087 #include <$header>
57088
57089 _ACEOF
57090 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
57091   $EGREP "${ice_re_word}connect[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
57092   ice_cv_have_connect_decl=yes
57093 fi
57094 rm -f conftest*
57095
57096 if test "$ice_cv_have_connect_decl" = yes; then
57097         break
57098 fi
57099 done
57100
57101 fi
57102
57103 { echo "$as_me:$LINENO: result: $ice_cv_have_connect_decl" >&5
57104 echo "${ECHO_T}$ice_cv_have_connect_decl" >&6; }
57105 if test "$ice_cv_have_connect_decl" = yes; then
57106
57107 cat >>confdefs.h <<_ACEOF
57108 #define HAVE_CONNECT_DECL 1
57109 _ACEOF
57110
57111 fi
57112 fi
57113
57114
57115 ice_have_fclose=no
57116
57117 for ac_func in fclose
57118 do
57119 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
57120 { echo "$as_me:$LINENO: checking for $ac_func" >&5
57121 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
57122 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
57123   echo $ECHO_N "(cached) $ECHO_C" >&6
57124 else
57125   cat >conftest.$ac_ext <<_ACEOF
57126 /* confdefs.h.  */
57127 _ACEOF
57128 cat confdefs.h >>conftest.$ac_ext
57129 cat >>conftest.$ac_ext <<_ACEOF
57130 /* end confdefs.h.  */
57131 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
57132    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
57133 #define $ac_func innocuous_$ac_func
57134
57135 /* System header to define __stub macros and hopefully few prototypes,
57136     which can conflict with char $ac_func (); below.
57137     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
57138     <limits.h> exists even on freestanding compilers.  */
57139
57140 #ifdef __STDC__
57141 # include <limits.h>
57142 #else
57143 # include <assert.h>
57144 #endif
57145
57146 #undef $ac_func
57147
57148 /* Override any GCC internal prototype to avoid an error.
57149    Use char because int might match the return type of a GCC
57150    builtin and then its argument prototype would still apply.  */
57151 #ifdef __cplusplus
57152 extern "C"
57153 #endif
57154 char $ac_func ();
57155 /* The GNU C library defines this for functions which it implements
57156     to always fail with ENOSYS.  Some functions are actually named
57157     something starting with __ and the normal name is an alias.  */
57158 #if defined __stub_$ac_func || defined __stub___$ac_func
57159 choke me
57160 #endif
57161
57162 int
57163 main ()
57164 {
57165 return $ac_func ();
57166   ;
57167   return 0;
57168 }
57169 _ACEOF
57170 rm -f conftest.$ac_objext conftest$ac_exeext
57171 if { (ac_try="$ac_link"
57172 case "(($ac_try" in
57173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57174   *) ac_try_echo=$ac_try;;
57175 esac
57176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
57177   (eval "$ac_link") 2>conftest.er1
57178   ac_status=$?
57179   grep -v '^ *+' conftest.er1 >conftest.err
57180   rm -f conftest.er1
57181   cat conftest.err >&5
57182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57183   (exit $ac_status); } && {
57184          test -z "$ac_c_werror_flag" ||
57185          test ! -s conftest.err
57186        } && test -s conftest$ac_exeext &&
57187        $as_test_x conftest$ac_exeext; then
57188   eval "$as_ac_var=yes"
57189 else
57190   echo "$as_me: failed program was:" >&5
57191 sed 's/^/| /' conftest.$ac_ext >&5
57192
57193         eval "$as_ac_var=no"
57194 fi
57195
57196 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
57197       conftest$ac_exeext conftest.$ac_ext
57198 fi
57199 ac_res=`eval echo '${'$as_ac_var'}'`
57200                { echo "$as_me:$LINENO: result: $ac_res" >&5
57201 echo "${ECHO_T}$ac_res" >&6; }
57202 if test `eval echo '${'$as_ac_var'}'` = yes; then
57203   cat >>confdefs.h <<_ACEOF
57204 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
57205 _ACEOF
57206  ice_have_fclose=yes
57207 fi
57208 done
57209
57210 if test "${ice_have_fclose}" = yes; then
57211 { echo "$as_me:$LINENO: checking for fclose declaration in stdio.h" >&5
57212 echo $ECHO_N "checking for fclose declaration in stdio.h... $ECHO_C" >&6; }
57213 if test "${ice_cv_have_fclose_decl+set}" = set; then
57214   echo $ECHO_N "(cached) $ECHO_C" >&6
57215 else
57216
57217 ice_cv_have_fclose_decl=no
57218 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
57219 ice_re_word='(^|[^a-zA-Z0-9_])'
57220 for header in stdio.h; do
57221 # Check for ordinary declaration
57222 cat >conftest.$ac_ext <<_ACEOF
57223 /* confdefs.h.  */
57224 _ACEOF
57225 cat confdefs.h >>conftest.$ac_ext
57226 cat >>conftest.$ac_ext <<_ACEOF
57227 /* end confdefs.h.  */
57228 #include <$header>
57229
57230 _ACEOF
57231 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
57232   $EGREP "${ice_re_word}fclose[         ]*\(" >/dev/null 2>&1; then
57233   ice_cv_have_fclose_decl=yes
57234 fi
57235 rm -f conftest*
57236
57237 if test "$ice_cv_have_fclose_decl" = yes; then
57238         break
57239 fi
57240 # Check for "fixed" declaration like "getpid _PARAMS((int))"
57241 cat >conftest.$ac_ext <<_ACEOF
57242 /* confdefs.h.  */
57243 _ACEOF
57244 cat confdefs.h >>conftest.$ac_ext
57245 cat >>conftest.$ac_ext <<_ACEOF
57246 /* end confdefs.h.  */
57247 #include <$header>
57248
57249 _ACEOF
57250 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
57251   $EGREP "${ice_re_word}fclose[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
57252   ice_cv_have_fclose_decl=yes
57253 fi
57254 rm -f conftest*
57255
57256 if test "$ice_cv_have_fclose_decl" = yes; then
57257         break
57258 fi
57259 done
57260
57261 fi
57262
57263 { echo "$as_me:$LINENO: result: $ice_cv_have_fclose_decl" >&5
57264 echo "${ECHO_T}$ice_cv_have_fclose_decl" >&6; }
57265 if test "$ice_cv_have_fclose_decl" = yes; then
57266
57267 cat >>confdefs.h <<_ACEOF
57268 #define HAVE_FCLOSE_DECL 1
57269 _ACEOF
57270
57271 fi
57272 fi
57273
57274
57275 ice_have_fflush=no
57276
57277 for ac_func in fflush
57278 do
57279 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
57280 { echo "$as_me:$LINENO: checking for $ac_func" >&5
57281 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
57282 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
57283   echo $ECHO_N "(cached) $ECHO_C" >&6
57284 else
57285   cat >conftest.$ac_ext <<_ACEOF
57286 /* confdefs.h.  */
57287 _ACEOF
57288 cat confdefs.h >>conftest.$ac_ext
57289 cat >>conftest.$ac_ext <<_ACEOF
57290 /* end confdefs.h.  */
57291 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
57292    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
57293 #define $ac_func innocuous_$ac_func
57294
57295 /* System header to define __stub macros and hopefully few prototypes,
57296     which can conflict with char $ac_func (); below.
57297     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
57298     <limits.h> exists even on freestanding compilers.  */
57299
57300 #ifdef __STDC__
57301 # include <limits.h>
57302 #else
57303 # include <assert.h>
57304 #endif
57305
57306 #undef $ac_func
57307
57308 /* Override any GCC internal prototype to avoid an error.
57309    Use char because int might match the return type of a GCC
57310    builtin and then its argument prototype would still apply.  */
57311 #ifdef __cplusplus
57312 extern "C"
57313 #endif
57314 char $ac_func ();
57315 /* The GNU C library defines this for functions which it implements
57316     to always fail with ENOSYS.  Some functions are actually named
57317     something starting with __ and the normal name is an alias.  */
57318 #if defined __stub_$ac_func || defined __stub___$ac_func
57319 choke me
57320 #endif
57321
57322 int
57323 main ()
57324 {
57325 return $ac_func ();
57326   ;
57327   return 0;
57328 }
57329 _ACEOF
57330 rm -f conftest.$ac_objext conftest$ac_exeext
57331 if { (ac_try="$ac_link"
57332 case "(($ac_try" in
57333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57334   *) ac_try_echo=$ac_try;;
57335 esac
57336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
57337   (eval "$ac_link") 2>conftest.er1
57338   ac_status=$?
57339   grep -v '^ *+' conftest.er1 >conftest.err
57340   rm -f conftest.er1
57341   cat conftest.err >&5
57342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57343   (exit $ac_status); } && {
57344          test -z "$ac_c_werror_flag" ||
57345          test ! -s conftest.err
57346        } && test -s conftest$ac_exeext &&
57347        $as_test_x conftest$ac_exeext; then
57348   eval "$as_ac_var=yes"
57349 else
57350   echo "$as_me: failed program was:" >&5
57351 sed 's/^/| /' conftest.$ac_ext >&5
57352
57353         eval "$as_ac_var=no"
57354 fi
57355
57356 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
57357       conftest$ac_exeext conftest.$ac_ext
57358 fi
57359 ac_res=`eval echo '${'$as_ac_var'}'`
57360                { echo "$as_me:$LINENO: result: $ac_res" >&5
57361 echo "${ECHO_T}$ac_res" >&6; }
57362 if test `eval echo '${'$as_ac_var'}'` = yes; then
57363   cat >>confdefs.h <<_ACEOF
57364 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
57365 _ACEOF
57366  ice_have_fflush=yes
57367 fi
57368 done
57369
57370 if test "${ice_have_fflush}" = yes; then
57371 { echo "$as_me:$LINENO: checking for fflush declaration in stdio.h" >&5
57372 echo $ECHO_N "checking for fflush declaration in stdio.h... $ECHO_C" >&6; }
57373 if test "${ice_cv_have_fflush_decl+set}" = set; then
57374   echo $ECHO_N "(cached) $ECHO_C" >&6
57375 else
57376
57377 ice_cv_have_fflush_decl=no
57378 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
57379 ice_re_word='(^|[^a-zA-Z0-9_])'
57380 for header in stdio.h; do
57381 # Check for ordinary declaration
57382 cat >conftest.$ac_ext <<_ACEOF
57383 /* confdefs.h.  */
57384 _ACEOF
57385 cat confdefs.h >>conftest.$ac_ext
57386 cat >>conftest.$ac_ext <<_ACEOF
57387 /* end confdefs.h.  */
57388 #include <$header>
57389
57390 _ACEOF
57391 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
57392   $EGREP "${ice_re_word}fflush[         ]*\(" >/dev/null 2>&1; then
57393   ice_cv_have_fflush_decl=yes
57394 fi
57395 rm -f conftest*
57396
57397 if test "$ice_cv_have_fflush_decl" = yes; then
57398         break
57399 fi
57400 # Check for "fixed" declaration like "getpid _PARAMS((int))"
57401 cat >conftest.$ac_ext <<_ACEOF
57402 /* confdefs.h.  */
57403 _ACEOF
57404 cat confdefs.h >>conftest.$ac_ext
57405 cat >>conftest.$ac_ext <<_ACEOF
57406 /* end confdefs.h.  */
57407 #include <$header>
57408
57409 _ACEOF
57410 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
57411   $EGREP "${ice_re_word}fflush[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
57412   ice_cv_have_fflush_decl=yes
57413 fi
57414 rm -f conftest*
57415
57416 if test "$ice_cv_have_fflush_decl" = yes; then
57417         break
57418 fi
57419 done
57420
57421 fi
57422
57423 { echo "$as_me:$LINENO: result: $ice_cv_have_fflush_decl" >&5
57424 echo "${ECHO_T}$ice_cv_have_fflush_decl" >&6; }
57425 if test "$ice_cv_have_fflush_decl" = yes; then
57426
57427 cat >>confdefs.h <<_ACEOF
57428 #define HAVE_FFLUSH_DECL 1
57429 _ACEOF
57430
57431 fi
57432 fi
57433
57434
57435 ice_have_fprintf=no
57436
57437 for ac_func in fprintf
57438 do
57439 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
57440 { echo "$as_me:$LINENO: checking for $ac_func" >&5
57441 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
57442 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
57443   echo $ECHO_N "(cached) $ECHO_C" >&6
57444 else
57445   cat >conftest.$ac_ext <<_ACEOF
57446 /* confdefs.h.  */
57447 _ACEOF
57448 cat confdefs.h >>conftest.$ac_ext
57449 cat >>conftest.$ac_ext <<_ACEOF
57450 /* end confdefs.h.  */
57451 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
57452    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
57453 #define $ac_func innocuous_$ac_func
57454
57455 /* System header to define __stub macros and hopefully few prototypes,
57456     which can conflict with char $ac_func (); below.
57457     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
57458     <limits.h> exists even on freestanding compilers.  */
57459
57460 #ifdef __STDC__
57461 # include <limits.h>
57462 #else
57463 # include <assert.h>
57464 #endif
57465
57466 #undef $ac_func
57467
57468 /* Override any GCC internal prototype to avoid an error.
57469    Use char because int might match the return type of a GCC
57470    builtin and then its argument prototype would still apply.  */
57471 #ifdef __cplusplus
57472 extern "C"
57473 #endif
57474 char $ac_func ();
57475 /* The GNU C library defines this for functions which it implements
57476     to always fail with ENOSYS.  Some functions are actually named
57477     something starting with __ and the normal name is an alias.  */
57478 #if defined __stub_$ac_func || defined __stub___$ac_func
57479 choke me
57480 #endif
57481
57482 int
57483 main ()
57484 {
57485 return $ac_func ();
57486   ;
57487   return 0;
57488 }
57489 _ACEOF
57490 rm -f conftest.$ac_objext conftest$ac_exeext
57491 if { (ac_try="$ac_link"
57492 case "(($ac_try" in
57493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57494   *) ac_try_echo=$ac_try;;
57495 esac
57496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
57497   (eval "$ac_link") 2>conftest.er1
57498   ac_status=$?
57499   grep -v '^ *+' conftest.er1 >conftest.err
57500   rm -f conftest.er1
57501   cat conftest.err >&5
57502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57503   (exit $ac_status); } && {
57504          test -z "$ac_c_werror_flag" ||
57505          test ! -s conftest.err
57506        } && test -s conftest$ac_exeext &&
57507        $as_test_x conftest$ac_exeext; then
57508   eval "$as_ac_var=yes"
57509 else
57510   echo "$as_me: failed program was:" >&5
57511 sed 's/^/| /' conftest.$ac_ext >&5
57512
57513         eval "$as_ac_var=no"
57514 fi
57515
57516 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
57517       conftest$ac_exeext conftest.$ac_ext
57518 fi
57519 ac_res=`eval echo '${'$as_ac_var'}'`
57520                { echo "$as_me:$LINENO: result: $ac_res" >&5
57521 echo "${ECHO_T}$ac_res" >&6; }
57522 if test `eval echo '${'$as_ac_var'}'` = yes; then
57523   cat >>confdefs.h <<_ACEOF
57524 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
57525 _ACEOF
57526  ice_have_fprintf=yes
57527 fi
57528 done
57529
57530 if test "${ice_have_fprintf}" = yes; then
57531 { echo "$as_me:$LINENO: checking for fprintf declaration in stdio.h" >&5
57532 echo $ECHO_N "checking for fprintf declaration in stdio.h... $ECHO_C" >&6; }
57533 if test "${ice_cv_have_fprintf_decl+set}" = set; then
57534   echo $ECHO_N "(cached) $ECHO_C" >&6
57535 else
57536
57537 ice_cv_have_fprintf_decl=no
57538 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
57539 ice_re_word='(^|[^a-zA-Z0-9_])'
57540 for header in stdio.h; do
57541 # Check for ordinary declaration
57542 cat >conftest.$ac_ext <<_ACEOF
57543 /* confdefs.h.  */
57544 _ACEOF
57545 cat confdefs.h >>conftest.$ac_ext
57546 cat >>conftest.$ac_ext <<_ACEOF
57547 /* end confdefs.h.  */
57548 #include <$header>
57549
57550 _ACEOF
57551 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
57552   $EGREP "${ice_re_word}fprintf[        ]*\(" >/dev/null 2>&1; then
57553   ice_cv_have_fprintf_decl=yes
57554 fi
57555 rm -f conftest*
57556
57557 if test "$ice_cv_have_fprintf_decl" = yes; then
57558         break
57559 fi
57560 # Check for "fixed" declaration like "getpid _PARAMS((int))"
57561 cat >conftest.$ac_ext <<_ACEOF
57562 /* confdefs.h.  */
57563 _ACEOF
57564 cat confdefs.h >>conftest.$ac_ext
57565 cat >>conftest.$ac_ext <<_ACEOF
57566 /* end confdefs.h.  */
57567 #include <$header>
57568
57569 _ACEOF
57570 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
57571   $EGREP "${ice_re_word}fprintf[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
57572   ice_cv_have_fprintf_decl=yes
57573 fi
57574 rm -f conftest*
57575
57576 if test "$ice_cv_have_fprintf_decl" = yes; then
57577         break
57578 fi
57579 done
57580
57581 fi
57582
57583 { echo "$as_me:$LINENO: result: $ice_cv_have_fprintf_decl" >&5
57584 echo "${ECHO_T}$ice_cv_have_fprintf_decl" >&6; }
57585 if test "$ice_cv_have_fprintf_decl" = yes; then
57586
57587 cat >>confdefs.h <<_ACEOF
57588 #define HAVE_FPRINTF_DECL 1
57589 _ACEOF
57590
57591 fi
57592 fi
57593
57594
57595 ice_have_fputc=no
57596
57597 for ac_func in fputc
57598 do
57599 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
57600 { echo "$as_me:$LINENO: checking for $ac_func" >&5
57601 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
57602 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
57603   echo $ECHO_N "(cached) $ECHO_C" >&6
57604 else
57605   cat >conftest.$ac_ext <<_ACEOF
57606 /* confdefs.h.  */
57607 _ACEOF
57608 cat confdefs.h >>conftest.$ac_ext
57609 cat >>conftest.$ac_ext <<_ACEOF
57610 /* end confdefs.h.  */
57611 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
57612    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
57613 #define $ac_func innocuous_$ac_func
57614
57615 /* System header to define __stub macros and hopefully few prototypes,
57616     which can conflict with char $ac_func (); below.
57617     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
57618     <limits.h> exists even on freestanding compilers.  */
57619
57620 #ifdef __STDC__
57621 # include <limits.h>
57622 #else
57623 # include <assert.h>
57624 #endif
57625
57626 #undef $ac_func
57627
57628 /* Override any GCC internal prototype to avoid an error.
57629    Use char because int might match the return type of a GCC
57630    builtin and then its argument prototype would still apply.  */
57631 #ifdef __cplusplus
57632 extern "C"
57633 #endif
57634 char $ac_func ();
57635 /* The GNU C library defines this for functions which it implements
57636     to always fail with ENOSYS.  Some functions are actually named
57637     something starting with __ and the normal name is an alias.  */
57638 #if defined __stub_$ac_func || defined __stub___$ac_func
57639 choke me
57640 #endif
57641
57642 int
57643 main ()
57644 {
57645 return $ac_func ();
57646   ;
57647   return 0;
57648 }
57649 _ACEOF
57650 rm -f conftest.$ac_objext conftest$ac_exeext
57651 if { (ac_try="$ac_link"
57652 case "(($ac_try" in
57653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57654   *) ac_try_echo=$ac_try;;
57655 esac
57656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
57657   (eval "$ac_link") 2>conftest.er1
57658   ac_status=$?
57659   grep -v '^ *+' conftest.er1 >conftest.err
57660   rm -f conftest.er1
57661   cat conftest.err >&5
57662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57663   (exit $ac_status); } && {
57664          test -z "$ac_c_werror_flag" ||
57665          test ! -s conftest.err
57666        } && test -s conftest$ac_exeext &&
57667        $as_test_x conftest$ac_exeext; then
57668   eval "$as_ac_var=yes"
57669 else
57670   echo "$as_me: failed program was:" >&5
57671 sed 's/^/| /' conftest.$ac_ext >&5
57672
57673         eval "$as_ac_var=no"
57674 fi
57675
57676 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
57677       conftest$ac_exeext conftest.$ac_ext
57678 fi
57679 ac_res=`eval echo '${'$as_ac_var'}'`
57680                { echo "$as_me:$LINENO: result: $ac_res" >&5
57681 echo "${ECHO_T}$ac_res" >&6; }
57682 if test `eval echo '${'$as_ac_var'}'` = yes; then
57683   cat >>confdefs.h <<_ACEOF
57684 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
57685 _ACEOF
57686  ice_have_fputc=yes
57687 fi
57688 done
57689
57690 if test "${ice_have_fputc}" = yes; then
57691 { echo "$as_me:$LINENO: checking for fputc declaration in stdio.h" >&5
57692 echo $ECHO_N "checking for fputc declaration in stdio.h... $ECHO_C" >&6; }
57693 if test "${ice_cv_have_fputc_decl+set}" = set; then
57694   echo $ECHO_N "(cached) $ECHO_C" >&6
57695 else
57696
57697 ice_cv_have_fputc_decl=no
57698 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
57699 ice_re_word='(^|[^a-zA-Z0-9_])'
57700 for header in stdio.h; do
57701 # Check for ordinary declaration
57702 cat >conftest.$ac_ext <<_ACEOF
57703 /* confdefs.h.  */
57704 _ACEOF
57705 cat confdefs.h >>conftest.$ac_ext
57706 cat >>conftest.$ac_ext <<_ACEOF
57707 /* end confdefs.h.  */
57708 #include <$header>
57709
57710 _ACEOF
57711 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
57712   $EGREP "${ice_re_word}fputc[  ]*\(" >/dev/null 2>&1; then
57713   ice_cv_have_fputc_decl=yes
57714 fi
57715 rm -f conftest*
57716
57717 if test "$ice_cv_have_fputc_decl" = yes; then
57718         break
57719 fi
57720 # Check for "fixed" declaration like "getpid _PARAMS((int))"
57721 cat >conftest.$ac_ext <<_ACEOF
57722 /* confdefs.h.  */
57723 _ACEOF
57724 cat confdefs.h >>conftest.$ac_ext
57725 cat >>conftest.$ac_ext <<_ACEOF
57726 /* end confdefs.h.  */
57727 #include <$header>
57728
57729 _ACEOF
57730 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
57731   $EGREP "${ice_re_word}fputc[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
57732   ice_cv_have_fputc_decl=yes
57733 fi
57734 rm -f conftest*
57735
57736 if test "$ice_cv_have_fputc_decl" = yes; then
57737         break
57738 fi
57739 done
57740
57741 fi
57742
57743 { echo "$as_me:$LINENO: result: $ice_cv_have_fputc_decl" >&5
57744 echo "${ECHO_T}$ice_cv_have_fputc_decl" >&6; }
57745 if test "$ice_cv_have_fputc_decl" = yes; then
57746
57747 cat >>confdefs.h <<_ACEOF
57748 #define HAVE_FPUTC_DECL 1
57749 _ACEOF
57750
57751 fi
57752 fi
57753
57754
57755 ice_have_fputs=no
57756
57757 for ac_func in fputs
57758 do
57759 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
57760 { echo "$as_me:$LINENO: checking for $ac_func" >&5
57761 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
57762 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
57763   echo $ECHO_N "(cached) $ECHO_C" >&6
57764 else
57765   cat >conftest.$ac_ext <<_ACEOF
57766 /* confdefs.h.  */
57767 _ACEOF
57768 cat confdefs.h >>conftest.$ac_ext
57769 cat >>conftest.$ac_ext <<_ACEOF
57770 /* end confdefs.h.  */
57771 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
57772    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
57773 #define $ac_func innocuous_$ac_func
57774
57775 /* System header to define __stub macros and hopefully few prototypes,
57776     which can conflict with char $ac_func (); below.
57777     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
57778     <limits.h> exists even on freestanding compilers.  */
57779
57780 #ifdef __STDC__
57781 # include <limits.h>
57782 #else
57783 # include <assert.h>
57784 #endif
57785
57786 #undef $ac_func
57787
57788 /* Override any GCC internal prototype to avoid an error.
57789    Use char because int might match the return type of a GCC
57790    builtin and then its argument prototype would still apply.  */
57791 #ifdef __cplusplus
57792 extern "C"
57793 #endif
57794 char $ac_func ();
57795 /* The GNU C library defines this for functions which it implements
57796     to always fail with ENOSYS.  Some functions are actually named
57797     something starting with __ and the normal name is an alias.  */
57798 #if defined __stub_$ac_func || defined __stub___$ac_func
57799 choke me
57800 #endif
57801
57802 int
57803 main ()
57804 {
57805 return $ac_func ();
57806   ;
57807   return 0;
57808 }
57809 _ACEOF
57810 rm -f conftest.$ac_objext conftest$ac_exeext
57811 if { (ac_try="$ac_link"
57812 case "(($ac_try" in
57813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57814   *) ac_try_echo=$ac_try;;
57815 esac
57816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
57817   (eval "$ac_link") 2>conftest.er1
57818   ac_status=$?
57819   grep -v '^ *+' conftest.er1 >conftest.err
57820   rm -f conftest.er1
57821   cat conftest.err >&5
57822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57823   (exit $ac_status); } && {
57824          test -z "$ac_c_werror_flag" ||
57825          test ! -s conftest.err
57826        } && test -s conftest$ac_exeext &&
57827        $as_test_x conftest$ac_exeext; then
57828   eval "$as_ac_var=yes"
57829 else
57830   echo "$as_me: failed program was:" >&5
57831 sed 's/^/| /' conftest.$ac_ext >&5
57832
57833         eval "$as_ac_var=no"
57834 fi
57835
57836 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
57837       conftest$ac_exeext conftest.$ac_ext
57838 fi
57839 ac_res=`eval echo '${'$as_ac_var'}'`
57840                { echo "$as_me:$LINENO: result: $ac_res" >&5
57841 echo "${ECHO_T}$ac_res" >&6; }
57842 if test `eval echo '${'$as_ac_var'}'` = yes; then
57843   cat >>confdefs.h <<_ACEOF
57844 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
57845 _ACEOF
57846  ice_have_fputs=yes
57847 fi
57848 done
57849
57850 if test "${ice_have_fputs}" = yes; then
57851 { echo "$as_me:$LINENO: checking for fputs declaration in stdio.h" >&5
57852 echo $ECHO_N "checking for fputs declaration in stdio.h... $ECHO_C" >&6; }
57853 if test "${ice_cv_have_fputs_decl+set}" = set; then
57854   echo $ECHO_N "(cached) $ECHO_C" >&6
57855 else
57856
57857 ice_cv_have_fputs_decl=no
57858 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
57859 ice_re_word='(^|[^a-zA-Z0-9_])'
57860 for header in stdio.h; do
57861 # Check for ordinary declaration
57862 cat >conftest.$ac_ext <<_ACEOF
57863 /* confdefs.h.  */
57864 _ACEOF
57865 cat confdefs.h >>conftest.$ac_ext
57866 cat >>conftest.$ac_ext <<_ACEOF
57867 /* end confdefs.h.  */
57868 #include <$header>
57869
57870 _ACEOF
57871 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
57872   $EGREP "${ice_re_word}fputs[  ]*\(" >/dev/null 2>&1; then
57873   ice_cv_have_fputs_decl=yes
57874 fi
57875 rm -f conftest*
57876
57877 if test "$ice_cv_have_fputs_decl" = yes; then
57878         break
57879 fi
57880 # Check for "fixed" declaration like "getpid _PARAMS((int))"
57881 cat >conftest.$ac_ext <<_ACEOF
57882 /* confdefs.h.  */
57883 _ACEOF
57884 cat confdefs.h >>conftest.$ac_ext
57885 cat >>conftest.$ac_ext <<_ACEOF
57886 /* end confdefs.h.  */
57887 #include <$header>
57888
57889 _ACEOF
57890 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
57891   $EGREP "${ice_re_word}fputs[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
57892   ice_cv_have_fputs_decl=yes
57893 fi
57894 rm -f conftest*
57895
57896 if test "$ice_cv_have_fputs_decl" = yes; then
57897         break
57898 fi
57899 done
57900
57901 fi
57902
57903 { echo "$as_me:$LINENO: result: $ice_cv_have_fputs_decl" >&5
57904 echo "${ECHO_T}$ice_cv_have_fputs_decl" >&6; }
57905 if test "$ice_cv_have_fputs_decl" = yes; then
57906
57907 cat >>confdefs.h <<_ACEOF
57908 #define HAVE_FPUTS_DECL 1
57909 _ACEOF
57910
57911 fi
57912 fi
57913
57914
57915 ice_have_fread=no
57916
57917 for ac_func in fread
57918 do
57919 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
57920 { echo "$as_me:$LINENO: checking for $ac_func" >&5
57921 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
57922 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
57923   echo $ECHO_N "(cached) $ECHO_C" >&6
57924 else
57925   cat >conftest.$ac_ext <<_ACEOF
57926 /* confdefs.h.  */
57927 _ACEOF
57928 cat confdefs.h >>conftest.$ac_ext
57929 cat >>conftest.$ac_ext <<_ACEOF
57930 /* end confdefs.h.  */
57931 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
57932    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
57933 #define $ac_func innocuous_$ac_func
57934
57935 /* System header to define __stub macros and hopefully few prototypes,
57936     which can conflict with char $ac_func (); below.
57937     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
57938     <limits.h> exists even on freestanding compilers.  */
57939
57940 #ifdef __STDC__
57941 # include <limits.h>
57942 #else
57943 # include <assert.h>
57944 #endif
57945
57946 #undef $ac_func
57947
57948 /* Override any GCC internal prototype to avoid an error.
57949    Use char because int might match the return type of a GCC
57950    builtin and then its argument prototype would still apply.  */
57951 #ifdef __cplusplus
57952 extern "C"
57953 #endif
57954 char $ac_func ();
57955 /* The GNU C library defines this for functions which it implements
57956     to always fail with ENOSYS.  Some functions are actually named
57957     something starting with __ and the normal name is an alias.  */
57958 #if defined __stub_$ac_func || defined __stub___$ac_func
57959 choke me
57960 #endif
57961
57962 int
57963 main ()
57964 {
57965 return $ac_func ();
57966   ;
57967   return 0;
57968 }
57969 _ACEOF
57970 rm -f conftest.$ac_objext conftest$ac_exeext
57971 if { (ac_try="$ac_link"
57972 case "(($ac_try" in
57973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57974   *) ac_try_echo=$ac_try;;
57975 esac
57976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
57977   (eval "$ac_link") 2>conftest.er1
57978   ac_status=$?
57979   grep -v '^ *+' conftest.er1 >conftest.err
57980   rm -f conftest.er1
57981   cat conftest.err >&5
57982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57983   (exit $ac_status); } && {
57984          test -z "$ac_c_werror_flag" ||
57985          test ! -s conftest.err
57986        } && test -s conftest$ac_exeext &&
57987        $as_test_x conftest$ac_exeext; then
57988   eval "$as_ac_var=yes"
57989 else
57990   echo "$as_me: failed program was:" >&5
57991 sed 's/^/| /' conftest.$ac_ext >&5
57992
57993         eval "$as_ac_var=no"
57994 fi
57995
57996 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
57997       conftest$ac_exeext conftest.$ac_ext
57998 fi
57999 ac_res=`eval echo '${'$as_ac_var'}'`
58000                { echo "$as_me:$LINENO: result: $ac_res" >&5
58001 echo "${ECHO_T}$ac_res" >&6; }
58002 if test `eval echo '${'$as_ac_var'}'` = yes; then
58003   cat >>confdefs.h <<_ACEOF
58004 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
58005 _ACEOF
58006  ice_have_fread=yes
58007 fi
58008 done
58009
58010 if test "${ice_have_fread}" = yes; then
58011 { echo "$as_me:$LINENO: checking for fread declaration in stdio.h stdlib.h" >&5
58012 echo $ECHO_N "checking for fread declaration in stdio.h stdlib.h... $ECHO_C" >&6; }
58013 if test "${ice_cv_have_fread_decl+set}" = set; then
58014   echo $ECHO_N "(cached) $ECHO_C" >&6
58015 else
58016
58017 ice_cv_have_fread_decl=no
58018 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
58019 ice_re_word='(^|[^a-zA-Z0-9_])'
58020 for header in stdio.h stdlib.h; do
58021 # Check for ordinary declaration
58022 cat >conftest.$ac_ext <<_ACEOF
58023 /* confdefs.h.  */
58024 _ACEOF
58025 cat confdefs.h >>conftest.$ac_ext
58026 cat >>conftest.$ac_ext <<_ACEOF
58027 /* end confdefs.h.  */
58028 #include <$header>
58029
58030 _ACEOF
58031 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
58032   $EGREP "${ice_re_word}fread[  ]*\(" >/dev/null 2>&1; then
58033   ice_cv_have_fread_decl=yes
58034 fi
58035 rm -f conftest*
58036
58037 if test "$ice_cv_have_fread_decl" = yes; then
58038         break
58039 fi
58040 # Check for "fixed" declaration like "getpid _PARAMS((int))"
58041 cat >conftest.$ac_ext <<_ACEOF
58042 /* confdefs.h.  */
58043 _ACEOF
58044 cat confdefs.h >>conftest.$ac_ext
58045 cat >>conftest.$ac_ext <<_ACEOF
58046 /* end confdefs.h.  */
58047 #include <$header>
58048
58049 _ACEOF
58050 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
58051   $EGREP "${ice_re_word}fread[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
58052   ice_cv_have_fread_decl=yes
58053 fi
58054 rm -f conftest*
58055
58056 if test "$ice_cv_have_fread_decl" = yes; then
58057         break
58058 fi
58059 done
58060
58061 fi
58062
58063 { echo "$as_me:$LINENO: result: $ice_cv_have_fread_decl" >&5
58064 echo "${ECHO_T}$ice_cv_have_fread_decl" >&6; }
58065 if test "$ice_cv_have_fread_decl" = yes; then
58066
58067 cat >>confdefs.h <<_ACEOF
58068 #define HAVE_FREAD_DECL 1
58069 _ACEOF
58070
58071 fi
58072 fi
58073
58074
58075 ice_have_fseek=no
58076
58077 for ac_func in fseek
58078 do
58079 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
58080 { echo "$as_me:$LINENO: checking for $ac_func" >&5
58081 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
58082 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
58083   echo $ECHO_N "(cached) $ECHO_C" >&6
58084 else
58085   cat >conftest.$ac_ext <<_ACEOF
58086 /* confdefs.h.  */
58087 _ACEOF
58088 cat confdefs.h >>conftest.$ac_ext
58089 cat >>conftest.$ac_ext <<_ACEOF
58090 /* end confdefs.h.  */
58091 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
58092    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
58093 #define $ac_func innocuous_$ac_func
58094
58095 /* System header to define __stub macros and hopefully few prototypes,
58096     which can conflict with char $ac_func (); below.
58097     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
58098     <limits.h> exists even on freestanding compilers.  */
58099
58100 #ifdef __STDC__
58101 # include <limits.h>
58102 #else
58103 # include <assert.h>
58104 #endif
58105
58106 #undef $ac_func
58107
58108 /* Override any GCC internal prototype to avoid an error.
58109    Use char because int might match the return type of a GCC
58110    builtin and then its argument prototype would still apply.  */
58111 #ifdef __cplusplus
58112 extern "C"
58113 #endif
58114 char $ac_func ();
58115 /* The GNU C library defines this for functions which it implements
58116     to always fail with ENOSYS.  Some functions are actually named
58117     something starting with __ and the normal name is an alias.  */
58118 #if defined __stub_$ac_func || defined __stub___$ac_func
58119 choke me
58120 #endif
58121
58122 int
58123 main ()
58124 {
58125 return $ac_func ();
58126   ;
58127   return 0;
58128 }
58129 _ACEOF
58130 rm -f conftest.$ac_objext conftest$ac_exeext
58131 if { (ac_try="$ac_link"
58132 case "(($ac_try" in
58133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58134   *) ac_try_echo=$ac_try;;
58135 esac
58136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58137   (eval "$ac_link") 2>conftest.er1
58138   ac_status=$?
58139   grep -v '^ *+' conftest.er1 >conftest.err
58140   rm -f conftest.er1
58141   cat conftest.err >&5
58142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58143   (exit $ac_status); } && {
58144          test -z "$ac_c_werror_flag" ||
58145          test ! -s conftest.err
58146        } && test -s conftest$ac_exeext &&
58147        $as_test_x conftest$ac_exeext; then
58148   eval "$as_ac_var=yes"
58149 else
58150   echo "$as_me: failed program was:" >&5
58151 sed 's/^/| /' conftest.$ac_ext >&5
58152
58153         eval "$as_ac_var=no"
58154 fi
58155
58156 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
58157       conftest$ac_exeext conftest.$ac_ext
58158 fi
58159 ac_res=`eval echo '${'$as_ac_var'}'`
58160                { echo "$as_me:$LINENO: result: $ac_res" >&5
58161 echo "${ECHO_T}$ac_res" >&6; }
58162 if test `eval echo '${'$as_ac_var'}'` = yes; then
58163   cat >>confdefs.h <<_ACEOF
58164 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
58165 _ACEOF
58166  ice_have_fseek=yes
58167 fi
58168 done
58169
58170 if test "${ice_have_fseek}" = yes; then
58171 { echo "$as_me:$LINENO: checking for fseek declaration in stdio.h" >&5
58172 echo $ECHO_N "checking for fseek declaration in stdio.h... $ECHO_C" >&6; }
58173 if test "${ice_cv_have_fseek_decl+set}" = set; then
58174   echo $ECHO_N "(cached) $ECHO_C" >&6
58175 else
58176
58177 ice_cv_have_fseek_decl=no
58178 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
58179 ice_re_word='(^|[^a-zA-Z0-9_])'
58180 for header in stdio.h; do
58181 # Check for ordinary declaration
58182 cat >conftest.$ac_ext <<_ACEOF
58183 /* confdefs.h.  */
58184 _ACEOF
58185 cat confdefs.h >>conftest.$ac_ext
58186 cat >>conftest.$ac_ext <<_ACEOF
58187 /* end confdefs.h.  */
58188 #include <$header>
58189
58190 _ACEOF
58191 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
58192   $EGREP "${ice_re_word}fseek[  ]*\(" >/dev/null 2>&1; then
58193   ice_cv_have_fseek_decl=yes
58194 fi
58195 rm -f conftest*
58196
58197 if test "$ice_cv_have_fseek_decl" = yes; then
58198         break
58199 fi
58200 # Check for "fixed" declaration like "getpid _PARAMS((int))"
58201 cat >conftest.$ac_ext <<_ACEOF
58202 /* confdefs.h.  */
58203 _ACEOF
58204 cat confdefs.h >>conftest.$ac_ext
58205 cat >>conftest.$ac_ext <<_ACEOF
58206 /* end confdefs.h.  */
58207 #include <$header>
58208
58209 _ACEOF
58210 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
58211   $EGREP "${ice_re_word}fseek[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
58212   ice_cv_have_fseek_decl=yes
58213 fi
58214 rm -f conftest*
58215
58216 if test "$ice_cv_have_fseek_decl" = yes; then
58217         break
58218 fi
58219 done
58220
58221 fi
58222
58223 { echo "$as_me:$LINENO: result: $ice_cv_have_fseek_decl" >&5
58224 echo "${ECHO_T}$ice_cv_have_fseek_decl" >&6; }
58225 if test "$ice_cv_have_fseek_decl" = yes; then
58226
58227 cat >>confdefs.h <<_ACEOF
58228 #define HAVE_FSEEK_DECL 1
58229 _ACEOF
58230
58231 fi
58232 fi
58233
58234
58235 ice_have_fwrite=no
58236
58237 for ac_func in fwrite
58238 do
58239 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
58240 { echo "$as_me:$LINENO: checking for $ac_func" >&5
58241 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
58242 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
58243   echo $ECHO_N "(cached) $ECHO_C" >&6
58244 else
58245   cat >conftest.$ac_ext <<_ACEOF
58246 /* confdefs.h.  */
58247 _ACEOF
58248 cat confdefs.h >>conftest.$ac_ext
58249 cat >>conftest.$ac_ext <<_ACEOF
58250 /* end confdefs.h.  */
58251 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
58252    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
58253 #define $ac_func innocuous_$ac_func
58254
58255 /* System header to define __stub macros and hopefully few prototypes,
58256     which can conflict with char $ac_func (); below.
58257     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
58258     <limits.h> exists even on freestanding compilers.  */
58259
58260 #ifdef __STDC__
58261 # include <limits.h>
58262 #else
58263 # include <assert.h>
58264 #endif
58265
58266 #undef $ac_func
58267
58268 /* Override any GCC internal prototype to avoid an error.
58269    Use char because int might match the return type of a GCC
58270    builtin and then its argument prototype would still apply.  */
58271 #ifdef __cplusplus
58272 extern "C"
58273 #endif
58274 char $ac_func ();
58275 /* The GNU C library defines this for functions which it implements
58276     to always fail with ENOSYS.  Some functions are actually named
58277     something starting with __ and the normal name is an alias.  */
58278 #if defined __stub_$ac_func || defined __stub___$ac_func
58279 choke me
58280 #endif
58281
58282 int
58283 main ()
58284 {
58285 return $ac_func ();
58286   ;
58287   return 0;
58288 }
58289 _ACEOF
58290 rm -f conftest.$ac_objext conftest$ac_exeext
58291 if { (ac_try="$ac_link"
58292 case "(($ac_try" in
58293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58294   *) ac_try_echo=$ac_try;;
58295 esac
58296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58297   (eval "$ac_link") 2>conftest.er1
58298   ac_status=$?
58299   grep -v '^ *+' conftest.er1 >conftest.err
58300   rm -f conftest.er1
58301   cat conftest.err >&5
58302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58303   (exit $ac_status); } && {
58304          test -z "$ac_c_werror_flag" ||
58305          test ! -s conftest.err
58306        } && test -s conftest$ac_exeext &&
58307        $as_test_x conftest$ac_exeext; then
58308   eval "$as_ac_var=yes"
58309 else
58310   echo "$as_me: failed program was:" >&5
58311 sed 's/^/| /' conftest.$ac_ext >&5
58312
58313         eval "$as_ac_var=no"
58314 fi
58315
58316 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
58317       conftest$ac_exeext conftest.$ac_ext
58318 fi
58319 ac_res=`eval echo '${'$as_ac_var'}'`
58320                { echo "$as_me:$LINENO: result: $ac_res" >&5
58321 echo "${ECHO_T}$ac_res" >&6; }
58322 if test `eval echo '${'$as_ac_var'}'` = yes; then
58323   cat >>confdefs.h <<_ACEOF
58324 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
58325 _ACEOF
58326  ice_have_fwrite=yes
58327 fi
58328 done
58329
58330 if test "${ice_have_fwrite}" = yes; then
58331 { echo "$as_me:$LINENO: checking for fwrite declaration in stdio.h stdlib.h" >&5
58332 echo $ECHO_N "checking for fwrite declaration in stdio.h stdlib.h... $ECHO_C" >&6; }
58333 if test "${ice_cv_have_fwrite_decl+set}" = set; then
58334   echo $ECHO_N "(cached) $ECHO_C" >&6
58335 else
58336
58337 ice_cv_have_fwrite_decl=no
58338 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
58339 ice_re_word='(^|[^a-zA-Z0-9_])'
58340 for header in stdio.h stdlib.h; do
58341 # Check for ordinary declaration
58342 cat >conftest.$ac_ext <<_ACEOF
58343 /* confdefs.h.  */
58344 _ACEOF
58345 cat confdefs.h >>conftest.$ac_ext
58346 cat >>conftest.$ac_ext <<_ACEOF
58347 /* end confdefs.h.  */
58348 #include <$header>
58349
58350 _ACEOF
58351 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
58352   $EGREP "${ice_re_word}fwrite[         ]*\(" >/dev/null 2>&1; then
58353   ice_cv_have_fwrite_decl=yes
58354 fi
58355 rm -f conftest*
58356
58357 if test "$ice_cv_have_fwrite_decl" = yes; then
58358         break
58359 fi
58360 # Check for "fixed" declaration like "getpid _PARAMS((int))"
58361 cat >conftest.$ac_ext <<_ACEOF
58362 /* confdefs.h.  */
58363 _ACEOF
58364 cat confdefs.h >>conftest.$ac_ext
58365 cat >>conftest.$ac_ext <<_ACEOF
58366 /* end confdefs.h.  */
58367 #include <$header>
58368
58369 _ACEOF
58370 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
58371   $EGREP "${ice_re_word}fwrite[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
58372   ice_cv_have_fwrite_decl=yes
58373 fi
58374 rm -f conftest*
58375
58376 if test "$ice_cv_have_fwrite_decl" = yes; then
58377         break
58378 fi
58379 done
58380
58381 fi
58382
58383 { echo "$as_me:$LINENO: result: $ice_cv_have_fwrite_decl" >&5
58384 echo "${ECHO_T}$ice_cv_have_fwrite_decl" >&6; }
58385 if test "$ice_cv_have_fwrite_decl" = yes; then
58386
58387 cat >>confdefs.h <<_ACEOF
58388 #define HAVE_FWRITE_DECL 1
58389 _ACEOF
58390
58391 fi
58392 fi
58393
58394
58395 ice_have_gethostname=no
58396
58397 for ac_func in gethostname
58398 do
58399 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
58400 { echo "$as_me:$LINENO: checking for $ac_func" >&5
58401 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
58402 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
58403   echo $ECHO_N "(cached) $ECHO_C" >&6
58404 else
58405   cat >conftest.$ac_ext <<_ACEOF
58406 /* confdefs.h.  */
58407 _ACEOF
58408 cat confdefs.h >>conftest.$ac_ext
58409 cat >>conftest.$ac_ext <<_ACEOF
58410 /* end confdefs.h.  */
58411 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
58412    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
58413 #define $ac_func innocuous_$ac_func
58414
58415 /* System header to define __stub macros and hopefully few prototypes,
58416     which can conflict with char $ac_func (); below.
58417     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
58418     <limits.h> exists even on freestanding compilers.  */
58419
58420 #ifdef __STDC__
58421 # include <limits.h>
58422 #else
58423 # include <assert.h>
58424 #endif
58425
58426 #undef $ac_func
58427
58428 /* Override any GCC internal prototype to avoid an error.
58429    Use char because int might match the return type of a GCC
58430    builtin and then its argument prototype would still apply.  */
58431 #ifdef __cplusplus
58432 extern "C"
58433 #endif
58434 char $ac_func ();
58435 /* The GNU C library defines this for functions which it implements
58436     to always fail with ENOSYS.  Some functions are actually named
58437     something starting with __ and the normal name is an alias.  */
58438 #if defined __stub_$ac_func || defined __stub___$ac_func
58439 choke me
58440 #endif
58441
58442 int
58443 main ()
58444 {
58445 return $ac_func ();
58446   ;
58447   return 0;
58448 }
58449 _ACEOF
58450 rm -f conftest.$ac_objext conftest$ac_exeext
58451 if { (ac_try="$ac_link"
58452 case "(($ac_try" in
58453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58454   *) ac_try_echo=$ac_try;;
58455 esac
58456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58457   (eval "$ac_link") 2>conftest.er1
58458   ac_status=$?
58459   grep -v '^ *+' conftest.er1 >conftest.err
58460   rm -f conftest.er1
58461   cat conftest.err >&5
58462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58463   (exit $ac_status); } && {
58464          test -z "$ac_c_werror_flag" ||
58465          test ! -s conftest.err
58466        } && test -s conftest$ac_exeext &&
58467        $as_test_x conftest$ac_exeext; then
58468   eval "$as_ac_var=yes"
58469 else
58470   echo "$as_me: failed program was:" >&5
58471 sed 's/^/| /' conftest.$ac_ext >&5
58472
58473         eval "$as_ac_var=no"
58474 fi
58475
58476 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
58477       conftest$ac_exeext conftest.$ac_ext
58478 fi
58479 ac_res=`eval echo '${'$as_ac_var'}'`
58480                { echo "$as_me:$LINENO: result: $ac_res" >&5
58481 echo "${ECHO_T}$ac_res" >&6; }
58482 if test `eval echo '${'$as_ac_var'}'` = yes; then
58483   cat >>confdefs.h <<_ACEOF
58484 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
58485 _ACEOF
58486  ice_have_gethostname=yes
58487 fi
58488 done
58489
58490 if test "${ice_have_gethostname}" = yes; then
58491 { echo "$as_me:$LINENO: checking for gethostname declaration in unistd.h" >&5
58492 echo $ECHO_N "checking for gethostname declaration in unistd.h... $ECHO_C" >&6; }
58493 if test "${ice_cv_have_gethostname_decl+set}" = set; then
58494   echo $ECHO_N "(cached) $ECHO_C" >&6
58495 else
58496
58497 ice_cv_have_gethostname_decl=no
58498 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
58499 ice_re_word='(^|[^a-zA-Z0-9_])'
58500 for header in unistd.h; do
58501 # Check for ordinary declaration
58502 cat >conftest.$ac_ext <<_ACEOF
58503 /* confdefs.h.  */
58504 _ACEOF
58505 cat confdefs.h >>conftest.$ac_ext
58506 cat >>conftest.$ac_ext <<_ACEOF
58507 /* end confdefs.h.  */
58508 #include <$header>
58509
58510 _ACEOF
58511 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
58512   $EGREP "${ice_re_word}gethostname[    ]*\(" >/dev/null 2>&1; then
58513   ice_cv_have_gethostname_decl=yes
58514 fi
58515 rm -f conftest*
58516
58517 if test "$ice_cv_have_gethostname_decl" = yes; then
58518         break
58519 fi
58520 # Check for "fixed" declaration like "getpid _PARAMS((int))"
58521 cat >conftest.$ac_ext <<_ACEOF
58522 /* confdefs.h.  */
58523 _ACEOF
58524 cat confdefs.h >>conftest.$ac_ext
58525 cat >>conftest.$ac_ext <<_ACEOF
58526 /* end confdefs.h.  */
58527 #include <$header>
58528
58529 _ACEOF
58530 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
58531   $EGREP "${ice_re_word}gethostname[    ]*$ice_re_params\(\(" >/dev/null 2>&1; then
58532   ice_cv_have_gethostname_decl=yes
58533 fi
58534 rm -f conftest*
58535
58536 if test "$ice_cv_have_gethostname_decl" = yes; then
58537         break
58538 fi
58539 done
58540
58541 fi
58542
58543 { echo "$as_me:$LINENO: result: $ice_cv_have_gethostname_decl" >&5
58544 echo "${ECHO_T}$ice_cv_have_gethostname_decl" >&6; }
58545 if test "$ice_cv_have_gethostname_decl" = yes; then
58546
58547 cat >>confdefs.h <<_ACEOF
58548 #define HAVE_GETHOSTNAME_DECL 1
58549 _ACEOF
58550
58551 fi
58552 fi
58553
58554
58555 ice_have_getopt=no
58556
58557 for ac_func in getopt
58558 do
58559 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
58560 { echo "$as_me:$LINENO: checking for $ac_func" >&5
58561 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
58562 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
58563   echo $ECHO_N "(cached) $ECHO_C" >&6
58564 else
58565   cat >conftest.$ac_ext <<_ACEOF
58566 /* confdefs.h.  */
58567 _ACEOF
58568 cat confdefs.h >>conftest.$ac_ext
58569 cat >>conftest.$ac_ext <<_ACEOF
58570 /* end confdefs.h.  */
58571 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
58572    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
58573 #define $ac_func innocuous_$ac_func
58574
58575 /* System header to define __stub macros and hopefully few prototypes,
58576     which can conflict with char $ac_func (); below.
58577     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
58578     <limits.h> exists even on freestanding compilers.  */
58579
58580 #ifdef __STDC__
58581 # include <limits.h>
58582 #else
58583 # include <assert.h>
58584 #endif
58585
58586 #undef $ac_func
58587
58588 /* Override any GCC internal prototype to avoid an error.
58589    Use char because int might match the return type of a GCC
58590    builtin and then its argument prototype would still apply.  */
58591 #ifdef __cplusplus
58592 extern "C"
58593 #endif
58594 char $ac_func ();
58595 /* The GNU C library defines this for functions which it implements
58596     to always fail with ENOSYS.  Some functions are actually named
58597     something starting with __ and the normal name is an alias.  */
58598 #if defined __stub_$ac_func || defined __stub___$ac_func
58599 choke me
58600 #endif
58601
58602 int
58603 main ()
58604 {
58605 return $ac_func ();
58606   ;
58607   return 0;
58608 }
58609 _ACEOF
58610 rm -f conftest.$ac_objext conftest$ac_exeext
58611 if { (ac_try="$ac_link"
58612 case "(($ac_try" in
58613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58614   *) ac_try_echo=$ac_try;;
58615 esac
58616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58617   (eval "$ac_link") 2>conftest.er1
58618   ac_status=$?
58619   grep -v '^ *+' conftest.er1 >conftest.err
58620   rm -f conftest.er1
58621   cat conftest.err >&5
58622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58623   (exit $ac_status); } && {
58624          test -z "$ac_c_werror_flag" ||
58625          test ! -s conftest.err
58626        } && test -s conftest$ac_exeext &&
58627        $as_test_x conftest$ac_exeext; then
58628   eval "$as_ac_var=yes"
58629 else
58630   echo "$as_me: failed program was:" >&5
58631 sed 's/^/| /' conftest.$ac_ext >&5
58632
58633         eval "$as_ac_var=no"
58634 fi
58635
58636 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
58637       conftest$ac_exeext conftest.$ac_ext
58638 fi
58639 ac_res=`eval echo '${'$as_ac_var'}'`
58640                { echo "$as_me:$LINENO: result: $ac_res" >&5
58641 echo "${ECHO_T}$ac_res" >&6; }
58642 if test `eval echo '${'$as_ac_var'}'` = yes; then
58643   cat >>confdefs.h <<_ACEOF
58644 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
58645 _ACEOF
58646  ice_have_getopt=yes
58647 fi
58648 done
58649
58650 if test "${ice_have_getopt}" = yes; then
58651 { echo "$as_me:$LINENO: checking for getopt declaration in stdlib.h unistd.h libc.h" >&5
58652 echo $ECHO_N "checking for getopt declaration in stdlib.h unistd.h libc.h... $ECHO_C" >&6; }
58653 if test "${ice_cv_have_getopt_decl+set}" = set; then
58654   echo $ECHO_N "(cached) $ECHO_C" >&6
58655 else
58656
58657 ice_cv_have_getopt_decl=no
58658 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
58659 ice_re_word='(^|[^a-zA-Z0-9_])'
58660 for header in stdlib.h unistd.h libc.h; do
58661 # Check for ordinary declaration
58662 cat >conftest.$ac_ext <<_ACEOF
58663 /* confdefs.h.  */
58664 _ACEOF
58665 cat confdefs.h >>conftest.$ac_ext
58666 cat >>conftest.$ac_ext <<_ACEOF
58667 /* end confdefs.h.  */
58668 #include <$header>
58669
58670 _ACEOF
58671 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
58672   $EGREP "${ice_re_word}getopt[         ]*\(" >/dev/null 2>&1; then
58673   ice_cv_have_getopt_decl=yes
58674 fi
58675 rm -f conftest*
58676
58677 if test "$ice_cv_have_getopt_decl" = yes; then
58678         break
58679 fi
58680 # Check for "fixed" declaration like "getpid _PARAMS((int))"
58681 cat >conftest.$ac_ext <<_ACEOF
58682 /* confdefs.h.  */
58683 _ACEOF
58684 cat confdefs.h >>conftest.$ac_ext
58685 cat >>conftest.$ac_ext <<_ACEOF
58686 /* end confdefs.h.  */
58687 #include <$header>
58688
58689 _ACEOF
58690 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
58691   $EGREP "${ice_re_word}getopt[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
58692   ice_cv_have_getopt_decl=yes
58693 fi
58694 rm -f conftest*
58695
58696 if test "$ice_cv_have_getopt_decl" = yes; then
58697         break
58698 fi
58699 done
58700
58701 fi
58702
58703 { echo "$as_me:$LINENO: result: $ice_cv_have_getopt_decl" >&5
58704 echo "${ECHO_T}$ice_cv_have_getopt_decl" >&6; }
58705 if test "$ice_cv_have_getopt_decl" = yes; then
58706
58707 cat >>confdefs.h <<_ACEOF
58708 #define HAVE_GETOPT_DECL 1
58709 _ACEOF
58710
58711 fi
58712 fi
58713
58714
58715 ice_have_getpeername=no
58716
58717 for ac_func in getpeername
58718 do
58719 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
58720 { echo "$as_me:$LINENO: checking for $ac_func" >&5
58721 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
58722 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
58723   echo $ECHO_N "(cached) $ECHO_C" >&6
58724 else
58725   cat >conftest.$ac_ext <<_ACEOF
58726 /* confdefs.h.  */
58727 _ACEOF
58728 cat confdefs.h >>conftest.$ac_ext
58729 cat >>conftest.$ac_ext <<_ACEOF
58730 /* end confdefs.h.  */
58731 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
58732    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
58733 #define $ac_func innocuous_$ac_func
58734
58735 /* System header to define __stub macros and hopefully few prototypes,
58736     which can conflict with char $ac_func (); below.
58737     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
58738     <limits.h> exists even on freestanding compilers.  */
58739
58740 #ifdef __STDC__
58741 # include <limits.h>
58742 #else
58743 # include <assert.h>
58744 #endif
58745
58746 #undef $ac_func
58747
58748 /* Override any GCC internal prototype to avoid an error.
58749    Use char because int might match the return type of a GCC
58750    builtin and then its argument prototype would still apply.  */
58751 #ifdef __cplusplus
58752 extern "C"
58753 #endif
58754 char $ac_func ();
58755 /* The GNU C library defines this for functions which it implements
58756     to always fail with ENOSYS.  Some functions are actually named
58757     something starting with __ and the normal name is an alias.  */
58758 #if defined __stub_$ac_func || defined __stub___$ac_func
58759 choke me
58760 #endif
58761
58762 int
58763 main ()
58764 {
58765 return $ac_func ();
58766   ;
58767   return 0;
58768 }
58769 _ACEOF
58770 rm -f conftest.$ac_objext conftest$ac_exeext
58771 if { (ac_try="$ac_link"
58772 case "(($ac_try" in
58773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58774   *) ac_try_echo=$ac_try;;
58775 esac
58776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58777   (eval "$ac_link") 2>conftest.er1
58778   ac_status=$?
58779   grep -v '^ *+' conftest.er1 >conftest.err
58780   rm -f conftest.er1
58781   cat conftest.err >&5
58782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58783   (exit $ac_status); } && {
58784          test -z "$ac_c_werror_flag" ||
58785          test ! -s conftest.err
58786        } && test -s conftest$ac_exeext &&
58787        $as_test_x conftest$ac_exeext; then
58788   eval "$as_ac_var=yes"
58789 else
58790   echo "$as_me: failed program was:" >&5
58791 sed 's/^/| /' conftest.$ac_ext >&5
58792
58793         eval "$as_ac_var=no"
58794 fi
58795
58796 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
58797       conftest$ac_exeext conftest.$ac_ext
58798 fi
58799 ac_res=`eval echo '${'$as_ac_var'}'`
58800                { echo "$as_me:$LINENO: result: $ac_res" >&5
58801 echo "${ECHO_T}$ac_res" >&6; }
58802 if test `eval echo '${'$as_ac_var'}'` = yes; then
58803   cat >>confdefs.h <<_ACEOF
58804 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
58805 _ACEOF
58806  ice_have_getpeername=yes
58807 fi
58808 done
58809
58810 if test "${ice_have_getpeername}" = yes; then
58811 { echo "$as_me:$LINENO: checking for getpeername declaration in sys/types.h sys/socket.h" >&5
58812 echo $ECHO_N "checking for getpeername declaration in sys/types.h sys/socket.h... $ECHO_C" >&6; }
58813 if test "${ice_cv_have_getpeername_decl+set}" = set; then
58814   echo $ECHO_N "(cached) $ECHO_C" >&6
58815 else
58816
58817 ice_cv_have_getpeername_decl=no
58818 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
58819 ice_re_word='(^|[^a-zA-Z0-9_])'
58820 for header in sys/types.h sys/socket.h; do
58821 # Check for ordinary declaration
58822 cat >conftest.$ac_ext <<_ACEOF
58823 /* confdefs.h.  */
58824 _ACEOF
58825 cat confdefs.h >>conftest.$ac_ext
58826 cat >>conftest.$ac_ext <<_ACEOF
58827 /* end confdefs.h.  */
58828 #include <$header>
58829
58830 _ACEOF
58831 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
58832   $EGREP "${ice_re_word}getpeername[    ]*\(" >/dev/null 2>&1; then
58833   ice_cv_have_getpeername_decl=yes
58834 fi
58835 rm -f conftest*
58836
58837 if test "$ice_cv_have_getpeername_decl" = yes; then
58838         break
58839 fi
58840 # Check for "fixed" declaration like "getpid _PARAMS((int))"
58841 cat >conftest.$ac_ext <<_ACEOF
58842 /* confdefs.h.  */
58843 _ACEOF
58844 cat confdefs.h >>conftest.$ac_ext
58845 cat >>conftest.$ac_ext <<_ACEOF
58846 /* end confdefs.h.  */
58847 #include <$header>
58848
58849 _ACEOF
58850 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
58851   $EGREP "${ice_re_word}getpeername[    ]*$ice_re_params\(\(" >/dev/null 2>&1; then
58852   ice_cv_have_getpeername_decl=yes
58853 fi
58854 rm -f conftest*
58855
58856 if test "$ice_cv_have_getpeername_decl" = yes; then
58857         break
58858 fi
58859 done
58860
58861 fi
58862
58863 { echo "$as_me:$LINENO: result: $ice_cv_have_getpeername_decl" >&5
58864 echo "${ECHO_T}$ice_cv_have_getpeername_decl" >&6; }
58865 if test "$ice_cv_have_getpeername_decl" = yes; then
58866
58867 cat >>confdefs.h <<_ACEOF
58868 #define HAVE_GETPEERNAME_DECL 1
58869 _ACEOF
58870
58871 fi
58872 fi
58873
58874 { echo "$as_me:$LINENO: checking for getpgrp" >&5
58875 echo $ECHO_N "checking for getpgrp... $ECHO_C" >&6; }
58876 if test "${ac_cv_func_getpgrp+set}" = set; then
58877   echo $ECHO_N "(cached) $ECHO_C" >&6
58878 else
58879   cat >conftest.$ac_ext <<_ACEOF
58880 /* confdefs.h.  */
58881 _ACEOF
58882 cat confdefs.h >>conftest.$ac_ext
58883 cat >>conftest.$ac_ext <<_ACEOF
58884 /* end confdefs.h.  */
58885 /* Define getpgrp to an innocuous variant, in case <limits.h> declares getpgrp.
58886    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
58887 #define getpgrp innocuous_getpgrp
58888
58889 /* System header to define __stub macros and hopefully few prototypes,
58890     which can conflict with char getpgrp (); below.
58891     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
58892     <limits.h> exists even on freestanding compilers.  */
58893
58894 #ifdef __STDC__
58895 # include <limits.h>
58896 #else
58897 # include <assert.h>
58898 #endif
58899
58900 #undef getpgrp
58901
58902 /* Override any GCC internal prototype to avoid an error.
58903    Use char because int might match the return type of a GCC
58904    builtin and then its argument prototype would still apply.  */
58905 #ifdef __cplusplus
58906 extern "C"
58907 #endif
58908 char getpgrp ();
58909 /* The GNU C library defines this for functions which it implements
58910     to always fail with ENOSYS.  Some functions are actually named
58911     something starting with __ and the normal name is an alias.  */
58912 #if defined __stub_getpgrp || defined __stub___getpgrp
58913 choke me
58914 #endif
58915
58916 int
58917 main ()
58918 {
58919 return getpgrp ();
58920   ;
58921   return 0;
58922 }
58923 _ACEOF
58924 rm -f conftest.$ac_objext conftest$ac_exeext
58925 if { (ac_try="$ac_link"
58926 case "(($ac_try" in
58927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58928   *) ac_try_echo=$ac_try;;
58929 esac
58930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58931   (eval "$ac_link") 2>conftest.er1
58932   ac_status=$?
58933   grep -v '^ *+' conftest.er1 >conftest.err
58934   rm -f conftest.er1
58935   cat conftest.err >&5
58936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58937   (exit $ac_status); } && {
58938          test -z "$ac_c_werror_flag" ||
58939          test ! -s conftest.err
58940        } && test -s conftest$ac_exeext &&
58941        $as_test_x conftest$ac_exeext; then
58942   ac_cv_func_getpgrp=yes
58943 else
58944   echo "$as_me: failed program was:" >&5
58945 sed 's/^/| /' conftest.$ac_ext >&5
58946
58947         ac_cv_func_getpgrp=no
58948 fi
58949
58950 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
58951       conftest$ac_exeext conftest.$ac_ext
58952 fi
58953 { echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp" >&5
58954 echo "${ECHO_T}$ac_cv_func_getpgrp" >&6; }
58955
58956 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
58957 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6; }
58958 if test "${ac_cv_func_getpgrp_void+set}" = set; then
58959   echo $ECHO_N "(cached) $ECHO_C" >&6
58960 else
58961   # Use it with a single arg.
58962 cat >conftest.$ac_ext <<_ACEOF
58963 /* confdefs.h.  */
58964 _ACEOF
58965 cat confdefs.h >>conftest.$ac_ext
58966 cat >>conftest.$ac_ext <<_ACEOF
58967 /* end confdefs.h.  */
58968 $ac_includes_default
58969 int
58970 main ()
58971 {
58972 getpgrp (0);
58973   ;
58974   return 0;
58975 }
58976 _ACEOF
58977 rm -f conftest.$ac_objext
58978 if { (ac_try="$ac_compile"
58979 case "(($ac_try" in
58980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58981   *) ac_try_echo=$ac_try;;
58982 esac
58983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58984   (eval "$ac_compile") 2>conftest.er1
58985   ac_status=$?
58986   grep -v '^ *+' conftest.er1 >conftest.err
58987   rm -f conftest.er1
58988   cat conftest.err >&5
58989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58990   (exit $ac_status); } && {
58991          test -z "$ac_c_werror_flag" ||
58992          test ! -s conftest.err
58993        } && test -s conftest.$ac_objext; then
58994   ac_cv_func_getpgrp_void=no
58995 else
58996   echo "$as_me: failed program was:" >&5
58997 sed 's/^/| /' conftest.$ac_ext >&5
58998
58999         ac_cv_func_getpgrp_void=yes
59000 fi
59001
59002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
59003
59004 fi
59005 { echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
59006 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
59007 if test $ac_cv_func_getpgrp_void = yes; then
59008
59009 cat >>confdefs.h <<\_ACEOF
59010 #define GETPGRP_VOID 1
59011 _ACEOF
59012
59013 fi
59014
59015
59016 ice_have_getsockname=no
59017
59018 for ac_func in getsockname
59019 do
59020 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
59021 { echo "$as_me:$LINENO: checking for $ac_func" >&5
59022 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
59023 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
59024   echo $ECHO_N "(cached) $ECHO_C" >&6
59025 else
59026   cat >conftest.$ac_ext <<_ACEOF
59027 /* confdefs.h.  */
59028 _ACEOF
59029 cat confdefs.h >>conftest.$ac_ext
59030 cat >>conftest.$ac_ext <<_ACEOF
59031 /* end confdefs.h.  */
59032 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
59033    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
59034 #define $ac_func innocuous_$ac_func
59035
59036 /* System header to define __stub macros and hopefully few prototypes,
59037     which can conflict with char $ac_func (); below.
59038     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
59039     <limits.h> exists even on freestanding compilers.  */
59040
59041 #ifdef __STDC__
59042 # include <limits.h>
59043 #else
59044 # include <assert.h>
59045 #endif
59046
59047 #undef $ac_func
59048
59049 /* Override any GCC internal prototype to avoid an error.
59050    Use char because int might match the return type of a GCC
59051    builtin and then its argument prototype would still apply.  */
59052 #ifdef __cplusplus
59053 extern "C"
59054 #endif
59055 char $ac_func ();
59056 /* The GNU C library defines this for functions which it implements
59057     to always fail with ENOSYS.  Some functions are actually named
59058     something starting with __ and the normal name is an alias.  */
59059 #if defined __stub_$ac_func || defined __stub___$ac_func
59060 choke me
59061 #endif
59062
59063 int
59064 main ()
59065 {
59066 return $ac_func ();
59067   ;
59068   return 0;
59069 }
59070 _ACEOF
59071 rm -f conftest.$ac_objext conftest$ac_exeext
59072 if { (ac_try="$ac_link"
59073 case "(($ac_try" in
59074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59075   *) ac_try_echo=$ac_try;;
59076 esac
59077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
59078   (eval "$ac_link") 2>conftest.er1
59079   ac_status=$?
59080   grep -v '^ *+' conftest.er1 >conftest.err
59081   rm -f conftest.er1
59082   cat conftest.err >&5
59083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59084   (exit $ac_status); } && {
59085          test -z "$ac_c_werror_flag" ||
59086          test ! -s conftest.err
59087        } && test -s conftest$ac_exeext &&
59088        $as_test_x conftest$ac_exeext; then
59089   eval "$as_ac_var=yes"
59090 else
59091   echo "$as_me: failed program was:" >&5
59092 sed 's/^/| /' conftest.$ac_ext >&5
59093
59094         eval "$as_ac_var=no"
59095 fi
59096
59097 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
59098       conftest$ac_exeext conftest.$ac_ext
59099 fi
59100 ac_res=`eval echo '${'$as_ac_var'}'`
59101                { echo "$as_me:$LINENO: result: $ac_res" >&5
59102 echo "${ECHO_T}$ac_res" >&6; }
59103 if test `eval echo '${'$as_ac_var'}'` = yes; then
59104   cat >>confdefs.h <<_ACEOF
59105 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
59106 _ACEOF
59107  ice_have_getsockname=yes
59108 fi
59109 done
59110
59111 if test "${ice_have_getsockname}" = yes; then
59112 { echo "$as_me:$LINENO: checking for getsockname declaration in sys/types.h sys/socket.h" >&5
59113 echo $ECHO_N "checking for getsockname declaration in sys/types.h sys/socket.h... $ECHO_C" >&6; }
59114 if test "${ice_cv_have_getsockname_decl+set}" = set; then
59115   echo $ECHO_N "(cached) $ECHO_C" >&6
59116 else
59117
59118 ice_cv_have_getsockname_decl=no
59119 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
59120 ice_re_word='(^|[^a-zA-Z0-9_])'
59121 for header in sys/types.h sys/socket.h; do
59122 # Check for ordinary declaration
59123 cat >conftest.$ac_ext <<_ACEOF
59124 /* confdefs.h.  */
59125 _ACEOF
59126 cat confdefs.h >>conftest.$ac_ext
59127 cat >>conftest.$ac_ext <<_ACEOF
59128 /* end confdefs.h.  */
59129 #include <$header>
59130
59131 _ACEOF
59132 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
59133   $EGREP "${ice_re_word}getsockname[    ]*\(" >/dev/null 2>&1; then
59134   ice_cv_have_getsockname_decl=yes
59135 fi
59136 rm -f conftest*
59137
59138 if test "$ice_cv_have_getsockname_decl" = yes; then
59139         break
59140 fi
59141 # Check for "fixed" declaration like "getpid _PARAMS((int))"
59142 cat >conftest.$ac_ext <<_ACEOF
59143 /* confdefs.h.  */
59144 _ACEOF
59145 cat confdefs.h >>conftest.$ac_ext
59146 cat >>conftest.$ac_ext <<_ACEOF
59147 /* end confdefs.h.  */
59148 #include <$header>
59149
59150 _ACEOF
59151 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
59152   $EGREP "${ice_re_word}getsockname[    ]*$ice_re_params\(\(" >/dev/null 2>&1; then
59153   ice_cv_have_getsockname_decl=yes
59154 fi
59155 rm -f conftest*
59156
59157 if test "$ice_cv_have_getsockname_decl" = yes; then
59158         break
59159 fi
59160 done
59161
59162 fi
59163
59164 { echo "$as_me:$LINENO: result: $ice_cv_have_getsockname_decl" >&5
59165 echo "${ECHO_T}$ice_cv_have_getsockname_decl" >&6; }
59166 if test "$ice_cv_have_getsockname_decl" = yes; then
59167
59168 cat >>confdefs.h <<_ACEOF
59169 #define HAVE_GETSOCKNAME_DECL 1
59170 _ACEOF
59171
59172 fi
59173 fi
59174
59175
59176 ice_have_getsockopt=no
59177
59178 for ac_func in getsockopt
59179 do
59180 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
59181 { echo "$as_me:$LINENO: checking for $ac_func" >&5
59182 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
59183 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
59184   echo $ECHO_N "(cached) $ECHO_C" >&6
59185 else
59186   cat >conftest.$ac_ext <<_ACEOF
59187 /* confdefs.h.  */
59188 _ACEOF
59189 cat confdefs.h >>conftest.$ac_ext
59190 cat >>conftest.$ac_ext <<_ACEOF
59191 /* end confdefs.h.  */
59192 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
59193    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
59194 #define $ac_func innocuous_$ac_func
59195
59196 /* System header to define __stub macros and hopefully few prototypes,
59197     which can conflict with char $ac_func (); below.
59198     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
59199     <limits.h> exists even on freestanding compilers.  */
59200
59201 #ifdef __STDC__
59202 # include <limits.h>
59203 #else
59204 # include <assert.h>
59205 #endif
59206
59207 #undef $ac_func
59208
59209 /* Override any GCC internal prototype to avoid an error.
59210    Use char because int might match the return type of a GCC
59211    builtin and then its argument prototype would still apply.  */
59212 #ifdef __cplusplus
59213 extern "C"
59214 #endif
59215 char $ac_func ();
59216 /* The GNU C library defines this for functions which it implements
59217     to always fail with ENOSYS.  Some functions are actually named
59218     something starting with __ and the normal name is an alias.  */
59219 #if defined __stub_$ac_func || defined __stub___$ac_func
59220 choke me
59221 #endif
59222
59223 int
59224 main ()
59225 {
59226 return $ac_func ();
59227   ;
59228   return 0;
59229 }
59230 _ACEOF
59231 rm -f conftest.$ac_objext conftest$ac_exeext
59232 if { (ac_try="$ac_link"
59233 case "(($ac_try" in
59234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59235   *) ac_try_echo=$ac_try;;
59236 esac
59237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
59238   (eval "$ac_link") 2>conftest.er1
59239   ac_status=$?
59240   grep -v '^ *+' conftest.er1 >conftest.err
59241   rm -f conftest.er1
59242   cat conftest.err >&5
59243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59244   (exit $ac_status); } && {
59245          test -z "$ac_c_werror_flag" ||
59246          test ! -s conftest.err
59247        } && test -s conftest$ac_exeext &&
59248        $as_test_x conftest$ac_exeext; then
59249   eval "$as_ac_var=yes"
59250 else
59251   echo "$as_me: failed program was:" >&5
59252 sed 's/^/| /' conftest.$ac_ext >&5
59253
59254         eval "$as_ac_var=no"
59255 fi
59256
59257 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
59258       conftest$ac_exeext conftest.$ac_ext
59259 fi
59260 ac_res=`eval echo '${'$as_ac_var'}'`
59261                { echo "$as_me:$LINENO: result: $ac_res" >&5
59262 echo "${ECHO_T}$ac_res" >&6; }
59263 if test `eval echo '${'$as_ac_var'}'` = yes; then
59264   cat >>confdefs.h <<_ACEOF
59265 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
59266 _ACEOF
59267  ice_have_getsockopt=yes
59268 fi
59269 done
59270
59271 if test "${ice_have_getsockopt}" = yes; then
59272 { echo "$as_me:$LINENO: checking for getsockopt declaration in sys/types.h sys/socket.h" >&5
59273 echo $ECHO_N "checking for getsockopt declaration in sys/types.h sys/socket.h... $ECHO_C" >&6; }
59274 if test "${ice_cv_have_getsockopt_decl+set}" = set; then
59275   echo $ECHO_N "(cached) $ECHO_C" >&6
59276 else
59277
59278 ice_cv_have_getsockopt_decl=no
59279 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
59280 ice_re_word='(^|[^a-zA-Z0-9_])'
59281 for header in sys/types.h sys/socket.h; do
59282 # Check for ordinary declaration
59283 cat >conftest.$ac_ext <<_ACEOF
59284 /* confdefs.h.  */
59285 _ACEOF
59286 cat confdefs.h >>conftest.$ac_ext
59287 cat >>conftest.$ac_ext <<_ACEOF
59288 /* end confdefs.h.  */
59289 #include <$header>
59290
59291 _ACEOF
59292 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
59293   $EGREP "${ice_re_word}getsockopt[     ]*\(" >/dev/null 2>&1; then
59294   ice_cv_have_getsockopt_decl=yes
59295 fi
59296 rm -f conftest*
59297
59298 if test "$ice_cv_have_getsockopt_decl" = yes; then
59299         break
59300 fi
59301 # Check for "fixed" declaration like "getpid _PARAMS((int))"
59302 cat >conftest.$ac_ext <<_ACEOF
59303 /* confdefs.h.  */
59304 _ACEOF
59305 cat confdefs.h >>conftest.$ac_ext
59306 cat >>conftest.$ac_ext <<_ACEOF
59307 /* end confdefs.h.  */
59308 #include <$header>
59309
59310 _ACEOF
59311 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
59312   $EGREP "${ice_re_word}getsockopt[     ]*$ice_re_params\(\(" >/dev/null 2>&1; then
59313   ice_cv_have_getsockopt_decl=yes
59314 fi
59315 rm -f conftest*
59316
59317 if test "$ice_cv_have_getsockopt_decl" = yes; then
59318         break
59319 fi
59320 done
59321
59322 fi
59323
59324 { echo "$as_me:$LINENO: result: $ice_cv_have_getsockopt_decl" >&5
59325 echo "${ECHO_T}$ice_cv_have_getsockopt_decl" >&6; }
59326 if test "$ice_cv_have_getsockopt_decl" = yes; then
59327
59328 cat >>confdefs.h <<_ACEOF
59329 #define HAVE_GETSOCKOPT_DECL 1
59330 _ACEOF
59331
59332 fi
59333 fi
59334
59335
59336 ice_have_initgroups=no
59337
59338 for ac_func in initgroups
59339 do
59340 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
59341 { echo "$as_me:$LINENO: checking for $ac_func" >&5
59342 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
59343 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
59344   echo $ECHO_N "(cached) $ECHO_C" >&6
59345 else
59346   cat >conftest.$ac_ext <<_ACEOF
59347 /* confdefs.h.  */
59348 _ACEOF
59349 cat confdefs.h >>conftest.$ac_ext
59350 cat >>conftest.$ac_ext <<_ACEOF
59351 /* end confdefs.h.  */
59352 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
59353    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
59354 #define $ac_func innocuous_$ac_func
59355
59356 /* System header to define __stub macros and hopefully few prototypes,
59357     which can conflict with char $ac_func (); below.
59358     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
59359     <limits.h> exists even on freestanding compilers.  */
59360
59361 #ifdef __STDC__
59362 # include <limits.h>
59363 #else
59364 # include <assert.h>
59365 #endif
59366
59367 #undef $ac_func
59368
59369 /* Override any GCC internal prototype to avoid an error.
59370    Use char because int might match the return type of a GCC
59371    builtin and then its argument prototype would still apply.  */
59372 #ifdef __cplusplus
59373 extern "C"
59374 #endif
59375 char $ac_func ();
59376 /* The GNU C library defines this for functions which it implements
59377     to always fail with ENOSYS.  Some functions are actually named
59378     something starting with __ and the normal name is an alias.  */
59379 #if defined __stub_$ac_func || defined __stub___$ac_func
59380 choke me
59381 #endif
59382
59383 int
59384 main ()
59385 {
59386 return $ac_func ();
59387   ;
59388   return 0;
59389 }
59390 _ACEOF
59391 rm -f conftest.$ac_objext conftest$ac_exeext
59392 if { (ac_try="$ac_link"
59393 case "(($ac_try" in
59394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59395   *) ac_try_echo=$ac_try;;
59396 esac
59397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
59398   (eval "$ac_link") 2>conftest.er1
59399   ac_status=$?
59400   grep -v '^ *+' conftest.er1 >conftest.err
59401   rm -f conftest.er1
59402   cat conftest.err >&5
59403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59404   (exit $ac_status); } && {
59405          test -z "$ac_c_werror_flag" ||
59406          test ! -s conftest.err
59407        } && test -s conftest$ac_exeext &&
59408        $as_test_x conftest$ac_exeext; then
59409   eval "$as_ac_var=yes"
59410 else
59411   echo "$as_me: failed program was:" >&5
59412 sed 's/^/| /' conftest.$ac_ext >&5
59413
59414         eval "$as_ac_var=no"
59415 fi
59416
59417 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
59418       conftest$ac_exeext conftest.$ac_ext
59419 fi
59420 ac_res=`eval echo '${'$as_ac_var'}'`
59421                { echo "$as_me:$LINENO: result: $ac_res" >&5
59422 echo "${ECHO_T}$ac_res" >&6; }
59423 if test `eval echo '${'$as_ac_var'}'` = yes; then
59424   cat >>confdefs.h <<_ACEOF
59425 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
59426 _ACEOF
59427  ice_have_initgroups=yes
59428 fi
59429 done
59430
59431 if test "${ice_have_initgroups}" = yes; then
59432 { echo "$as_me:$LINENO: checking for initgroups declaration in grp.h sys/types.h unistd.h libc.h" >&5
59433 echo $ECHO_N "checking for initgroups declaration in grp.h sys/types.h unistd.h libc.h... $ECHO_C" >&6; }
59434 if test "${ice_cv_have_initgroups_decl+set}" = set; then
59435   echo $ECHO_N "(cached) $ECHO_C" >&6
59436 else
59437
59438 ice_cv_have_initgroups_decl=no
59439 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
59440 ice_re_word='(^|[^a-zA-Z0-9_])'
59441 for header in grp.h sys/types.h unistd.h libc.h; do
59442 # Check for ordinary declaration
59443 cat >conftest.$ac_ext <<_ACEOF
59444 /* confdefs.h.  */
59445 _ACEOF
59446 cat confdefs.h >>conftest.$ac_ext
59447 cat >>conftest.$ac_ext <<_ACEOF
59448 /* end confdefs.h.  */
59449 #include <$header>
59450
59451 _ACEOF
59452 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
59453   $EGREP "${ice_re_word}initgroups[     ]*\(" >/dev/null 2>&1; then
59454   ice_cv_have_initgroups_decl=yes
59455 fi
59456 rm -f conftest*
59457
59458 if test "$ice_cv_have_initgroups_decl" = yes; then
59459         break
59460 fi
59461 # Check for "fixed" declaration like "getpid _PARAMS((int))"
59462 cat >conftest.$ac_ext <<_ACEOF
59463 /* confdefs.h.  */
59464 _ACEOF
59465 cat confdefs.h >>conftest.$ac_ext
59466 cat >>conftest.$ac_ext <<_ACEOF
59467 /* end confdefs.h.  */
59468 #include <$header>
59469
59470 _ACEOF
59471 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
59472   $EGREP "${ice_re_word}initgroups[     ]*$ice_re_params\(\(" >/dev/null 2>&1; then
59473   ice_cv_have_initgroups_decl=yes
59474 fi
59475 rm -f conftest*
59476
59477 if test "$ice_cv_have_initgroups_decl" = yes; then
59478         break
59479 fi
59480 done
59481
59482 fi
59483
59484 { echo "$as_me:$LINENO: result: $ice_cv_have_initgroups_decl" >&5
59485 echo "${ECHO_T}$ice_cv_have_initgroups_decl" >&6; }
59486 if test "$ice_cv_have_initgroups_decl" = yes; then
59487
59488 cat >>confdefs.h <<_ACEOF
59489 #define HAVE_INITGROUPS_DECL 1
59490 _ACEOF
59491
59492 fi
59493 fi
59494
59495
59496 ice_have_ioctl=no
59497
59498 for ac_func in ioctl
59499 do
59500 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
59501 { echo "$as_me:$LINENO: checking for $ac_func" >&5
59502 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
59503 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
59504   echo $ECHO_N "(cached) $ECHO_C" >&6
59505 else
59506   cat >conftest.$ac_ext <<_ACEOF
59507 /* confdefs.h.  */
59508 _ACEOF
59509 cat confdefs.h >>conftest.$ac_ext
59510 cat >>conftest.$ac_ext <<_ACEOF
59511 /* end confdefs.h.  */
59512 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
59513    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
59514 #define $ac_func innocuous_$ac_func
59515
59516 /* System header to define __stub macros and hopefully few prototypes,
59517     which can conflict with char $ac_func (); below.
59518     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
59519     <limits.h> exists even on freestanding compilers.  */
59520
59521 #ifdef __STDC__
59522 # include <limits.h>
59523 #else
59524 # include <assert.h>
59525 #endif
59526
59527 #undef $ac_func
59528
59529 /* Override any GCC internal prototype to avoid an error.
59530    Use char because int might match the return type of a GCC
59531    builtin and then its argument prototype would still apply.  */
59532 #ifdef __cplusplus
59533 extern "C"
59534 #endif
59535 char $ac_func ();
59536 /* The GNU C library defines this for functions which it implements
59537     to always fail with ENOSYS.  Some functions are actually named
59538     something starting with __ and the normal name is an alias.  */
59539 #if defined __stub_$ac_func || defined __stub___$ac_func
59540 choke me
59541 #endif
59542
59543 int
59544 main ()
59545 {
59546 return $ac_func ();
59547   ;
59548   return 0;
59549 }
59550 _ACEOF
59551 rm -f conftest.$ac_objext conftest$ac_exeext
59552 if { (ac_try="$ac_link"
59553 case "(($ac_try" in
59554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59555   *) ac_try_echo=$ac_try;;
59556 esac
59557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
59558   (eval "$ac_link") 2>conftest.er1
59559   ac_status=$?
59560   grep -v '^ *+' conftest.er1 >conftest.err
59561   rm -f conftest.er1
59562   cat conftest.err >&5
59563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59564   (exit $ac_status); } && {
59565          test -z "$ac_c_werror_flag" ||
59566          test ! -s conftest.err
59567        } && test -s conftest$ac_exeext &&
59568        $as_test_x conftest$ac_exeext; then
59569   eval "$as_ac_var=yes"
59570 else
59571   echo "$as_me: failed program was:" >&5
59572 sed 's/^/| /' conftest.$ac_ext >&5
59573
59574         eval "$as_ac_var=no"
59575 fi
59576
59577 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
59578       conftest$ac_exeext conftest.$ac_ext
59579 fi
59580 ac_res=`eval echo '${'$as_ac_var'}'`
59581                { echo "$as_me:$LINENO: result: $ac_res" >&5
59582 echo "${ECHO_T}$ac_res" >&6; }
59583 if test `eval echo '${'$as_ac_var'}'` = yes; then
59584   cat >>confdefs.h <<_ACEOF
59585 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
59586 _ACEOF
59587  ice_have_ioctl=yes
59588 fi
59589 done
59590
59591 if test "${ice_have_ioctl}" = yes; then
59592 { echo "$as_me:$LINENO: checking for ioctl declaration in sys/ioctl.h unistd.h libc.h" >&5
59593 echo $ECHO_N "checking for ioctl declaration in sys/ioctl.h unistd.h libc.h... $ECHO_C" >&6; }
59594 if test "${ice_cv_have_ioctl_decl+set}" = set; then
59595   echo $ECHO_N "(cached) $ECHO_C" >&6
59596 else
59597
59598 ice_cv_have_ioctl_decl=no
59599 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
59600 ice_re_word='(^|[^a-zA-Z0-9_])'
59601 for header in sys/ioctl.h unistd.h libc.h; do
59602 # Check for ordinary declaration
59603 cat >conftest.$ac_ext <<_ACEOF
59604 /* confdefs.h.  */
59605 _ACEOF
59606 cat confdefs.h >>conftest.$ac_ext
59607 cat >>conftest.$ac_ext <<_ACEOF
59608 /* end confdefs.h.  */
59609 #include <$header>
59610
59611 _ACEOF
59612 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
59613   $EGREP "${ice_re_word}ioctl[  ]*\(" >/dev/null 2>&1; then
59614   ice_cv_have_ioctl_decl=yes
59615 fi
59616 rm -f conftest*
59617
59618 if test "$ice_cv_have_ioctl_decl" = yes; then
59619         break
59620 fi
59621 # Check for "fixed" declaration like "getpid _PARAMS((int))"
59622 cat >conftest.$ac_ext <<_ACEOF
59623 /* confdefs.h.  */
59624 _ACEOF
59625 cat confdefs.h >>conftest.$ac_ext
59626 cat >>conftest.$ac_ext <<_ACEOF
59627 /* end confdefs.h.  */
59628 #include <$header>
59629
59630 _ACEOF
59631 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
59632   $EGREP "${ice_re_word}ioctl[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
59633   ice_cv_have_ioctl_decl=yes
59634 fi
59635 rm -f conftest*
59636
59637 if test "$ice_cv_have_ioctl_decl" = yes; then
59638         break
59639 fi
59640 done
59641
59642 fi
59643
59644 { echo "$as_me:$LINENO: result: $ice_cv_have_ioctl_decl" >&5
59645 echo "${ECHO_T}$ice_cv_have_ioctl_decl" >&6; }
59646 if test "$ice_cv_have_ioctl_decl" = yes; then
59647
59648 cat >>confdefs.h <<_ACEOF
59649 #define HAVE_IOCTL_DECL 1
59650 _ACEOF
59651
59652 fi
59653 fi
59654
59655
59656 ice_have_isnormal=no
59657
59658 for ac_func in isnormal
59659 do
59660 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
59661 { echo "$as_me:$LINENO: checking for $ac_func" >&5
59662 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
59663 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
59664   echo $ECHO_N "(cached) $ECHO_C" >&6
59665 else
59666   cat >conftest.$ac_ext <<_ACEOF
59667 /* confdefs.h.  */
59668 _ACEOF
59669 cat confdefs.h >>conftest.$ac_ext
59670 cat >>conftest.$ac_ext <<_ACEOF
59671 /* end confdefs.h.  */
59672 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
59673    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
59674 #define $ac_func innocuous_$ac_func
59675
59676 /* System header to define __stub macros and hopefully few prototypes,
59677     which can conflict with char $ac_func (); below.
59678     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
59679     <limits.h> exists even on freestanding compilers.  */
59680
59681 #ifdef __STDC__
59682 # include <limits.h>
59683 #else
59684 # include <assert.h>
59685 #endif
59686
59687 #undef $ac_func
59688
59689 /* Override any GCC internal prototype to avoid an error.
59690    Use char because int might match the return type of a GCC
59691    builtin and then its argument prototype would still apply.  */
59692 #ifdef __cplusplus
59693 extern "C"
59694 #endif
59695 char $ac_func ();
59696 /* The GNU C library defines this for functions which it implements
59697     to always fail with ENOSYS.  Some functions are actually named
59698     something starting with __ and the normal name is an alias.  */
59699 #if defined __stub_$ac_func || defined __stub___$ac_func
59700 choke me
59701 #endif
59702
59703 int
59704 main ()
59705 {
59706 return $ac_func ();
59707   ;
59708   return 0;
59709 }
59710 _ACEOF
59711 rm -f conftest.$ac_objext conftest$ac_exeext
59712 if { (ac_try="$ac_link"
59713 case "(($ac_try" in
59714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59715   *) ac_try_echo=$ac_try;;
59716 esac
59717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
59718   (eval "$ac_link") 2>conftest.er1
59719   ac_status=$?
59720   grep -v '^ *+' conftest.er1 >conftest.err
59721   rm -f conftest.er1
59722   cat conftest.err >&5
59723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59724   (exit $ac_status); } && {
59725          test -z "$ac_c_werror_flag" ||
59726          test ! -s conftest.err
59727        } && test -s conftest$ac_exeext &&
59728        $as_test_x conftest$ac_exeext; then
59729   eval "$as_ac_var=yes"
59730 else
59731   echo "$as_me: failed program was:" >&5
59732 sed 's/^/| /' conftest.$ac_ext >&5
59733
59734         eval "$as_ac_var=no"
59735 fi
59736
59737 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
59738       conftest$ac_exeext conftest.$ac_ext
59739 fi
59740 ac_res=`eval echo '${'$as_ac_var'}'`
59741                { echo "$as_me:$LINENO: result: $ac_res" >&5
59742 echo "${ECHO_T}$ac_res" >&6; }
59743 if test `eval echo '${'$as_ac_var'}'` = yes; then
59744   cat >>confdefs.h <<_ACEOF
59745 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
59746 _ACEOF
59747  ice_have_isnormal=yes
59748 fi
59749 done
59750
59751 if test "${ice_have_isnormal}" = yes; then
59752 { echo "$as_me:$LINENO: checking for isnormal declaration in math.h" >&5
59753 echo $ECHO_N "checking for isnormal declaration in math.h... $ECHO_C" >&6; }
59754 if test "${ice_cv_have_isnormal_decl+set}" = set; then
59755   echo $ECHO_N "(cached) $ECHO_C" >&6
59756 else
59757
59758 ice_cv_have_isnormal_decl=no
59759 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
59760 ice_re_word='(^|[^a-zA-Z0-9_])'
59761 for header in math.h; do
59762 # Check for ordinary declaration
59763 cat >conftest.$ac_ext <<_ACEOF
59764 /* confdefs.h.  */
59765 _ACEOF
59766 cat confdefs.h >>conftest.$ac_ext
59767 cat >>conftest.$ac_ext <<_ACEOF
59768 /* end confdefs.h.  */
59769 #include <$header>
59770
59771 _ACEOF
59772 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
59773   $EGREP "${ice_re_word}isnormal[       ]*\(" >/dev/null 2>&1; then
59774   ice_cv_have_isnormal_decl=yes
59775 fi
59776 rm -f conftest*
59777
59778 if test "$ice_cv_have_isnormal_decl" = yes; then
59779         break
59780 fi
59781 # Check for "fixed" declaration like "getpid _PARAMS((int))"
59782 cat >conftest.$ac_ext <<_ACEOF
59783 /* confdefs.h.  */
59784 _ACEOF
59785 cat confdefs.h >>conftest.$ac_ext
59786 cat >>conftest.$ac_ext <<_ACEOF
59787 /* end confdefs.h.  */
59788 #include <$header>
59789
59790 _ACEOF
59791 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
59792   $EGREP "${ice_re_word}isnormal[       ]*$ice_re_params\(\(" >/dev/null 2>&1; then
59793   ice_cv_have_isnormal_decl=yes
59794 fi
59795 rm -f conftest*
59796
59797 if test "$ice_cv_have_isnormal_decl" = yes; then
59798         break
59799 fi
59800 done
59801
59802 fi
59803
59804 { echo "$as_me:$LINENO: result: $ice_cv_have_isnormal_decl" >&5
59805 echo "${ECHO_T}$ice_cv_have_isnormal_decl" >&6; }
59806 if test "$ice_cv_have_isnormal_decl" = yes; then
59807
59808 cat >>confdefs.h <<_ACEOF
59809 #define HAVE_ISNORMAL_DECL 1
59810 _ACEOF
59811
59812 fi
59813 fi
59814
59815
59816 ice_have_listen=no
59817
59818 for ac_func in listen
59819 do
59820 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
59821 { echo "$as_me:$LINENO: checking for $ac_func" >&5
59822 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
59823 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
59824   echo $ECHO_N "(cached) $ECHO_C" >&6
59825 else
59826   cat >conftest.$ac_ext <<_ACEOF
59827 /* confdefs.h.  */
59828 _ACEOF
59829 cat confdefs.h >>conftest.$ac_ext
59830 cat >>conftest.$ac_ext <<_ACEOF
59831 /* end confdefs.h.  */
59832 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
59833    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
59834 #define $ac_func innocuous_$ac_func
59835
59836 /* System header to define __stub macros and hopefully few prototypes,
59837     which can conflict with char $ac_func (); below.
59838     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
59839     <limits.h> exists even on freestanding compilers.  */
59840
59841 #ifdef __STDC__
59842 # include <limits.h>
59843 #else
59844 # include <assert.h>
59845 #endif
59846
59847 #undef $ac_func
59848
59849 /* Override any GCC internal prototype to avoid an error.
59850    Use char because int might match the return type of a GCC
59851    builtin and then its argument prototype would still apply.  */
59852 #ifdef __cplusplus
59853 extern "C"
59854 #endif
59855 char $ac_func ();
59856 /* The GNU C library defines this for functions which it implements
59857     to always fail with ENOSYS.  Some functions are actually named
59858     something starting with __ and the normal name is an alias.  */
59859 #if defined __stub_$ac_func || defined __stub___$ac_func
59860 choke me
59861 #endif
59862
59863 int
59864 main ()
59865 {
59866 return $ac_func ();
59867   ;
59868   return 0;
59869 }
59870 _ACEOF
59871 rm -f conftest.$ac_objext conftest$ac_exeext
59872 if { (ac_try="$ac_link"
59873 case "(($ac_try" in
59874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59875   *) ac_try_echo=$ac_try;;
59876 esac
59877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
59878   (eval "$ac_link") 2>conftest.er1
59879   ac_status=$?
59880   grep -v '^ *+' conftest.er1 >conftest.err
59881   rm -f conftest.er1
59882   cat conftest.err >&5
59883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59884   (exit $ac_status); } && {
59885          test -z "$ac_c_werror_flag" ||
59886          test ! -s conftest.err
59887        } && test -s conftest$ac_exeext &&
59888        $as_test_x conftest$ac_exeext; then
59889   eval "$as_ac_var=yes"
59890 else
59891   echo "$as_me: failed program was:" >&5
59892 sed 's/^/| /' conftest.$ac_ext >&5
59893
59894         eval "$as_ac_var=no"
59895 fi
59896
59897 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
59898       conftest$ac_exeext conftest.$ac_ext
59899 fi
59900 ac_res=`eval echo '${'$as_ac_var'}'`
59901                { echo "$as_me:$LINENO: result: $ac_res" >&5
59902 echo "${ECHO_T}$ac_res" >&6; }
59903 if test `eval echo '${'$as_ac_var'}'` = yes; then
59904   cat >>confdefs.h <<_ACEOF
59905 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
59906 _ACEOF
59907  ice_have_listen=yes
59908 fi
59909 done
59910
59911 if test "${ice_have_listen}" = yes; then
59912 { echo "$as_me:$LINENO: checking for listen declaration in sys/types.h sys/socket.h" >&5
59913 echo $ECHO_N "checking for listen declaration in sys/types.h sys/socket.h... $ECHO_C" >&6; }
59914 if test "${ice_cv_have_listen_decl+set}" = set; then
59915   echo $ECHO_N "(cached) $ECHO_C" >&6
59916 else
59917
59918 ice_cv_have_listen_decl=no
59919 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
59920 ice_re_word='(^|[^a-zA-Z0-9_])'
59921 for header in sys/types.h sys/socket.h; do
59922 # Check for ordinary declaration
59923 cat >conftest.$ac_ext <<_ACEOF
59924 /* confdefs.h.  */
59925 _ACEOF
59926 cat confdefs.h >>conftest.$ac_ext
59927 cat >>conftest.$ac_ext <<_ACEOF
59928 /* end confdefs.h.  */
59929 #include <$header>
59930
59931 _ACEOF
59932 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
59933   $EGREP "${ice_re_word}listen[         ]*\(" >/dev/null 2>&1; then
59934   ice_cv_have_listen_decl=yes
59935 fi
59936 rm -f conftest*
59937
59938 if test "$ice_cv_have_listen_decl" = yes; then
59939         break
59940 fi
59941 # Check for "fixed" declaration like "getpid _PARAMS((int))"
59942 cat >conftest.$ac_ext <<_ACEOF
59943 /* confdefs.h.  */
59944 _ACEOF
59945 cat confdefs.h >>conftest.$ac_ext
59946 cat >>conftest.$ac_ext <<_ACEOF
59947 /* end confdefs.h.  */
59948 #include <$header>
59949
59950 _ACEOF
59951 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
59952   $EGREP "${ice_re_word}listen[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
59953   ice_cv_have_listen_decl=yes
59954 fi
59955 rm -f conftest*
59956
59957 if test "$ice_cv_have_listen_decl" = yes; then
59958         break
59959 fi
59960 done
59961
59962 fi
59963
59964 { echo "$as_me:$LINENO: result: $ice_cv_have_listen_decl" >&5
59965 echo "${ECHO_T}$ice_cv_have_listen_decl" >&6; }
59966 if test "$ice_cv_have_listen_decl" = yes; then
59967
59968 cat >>confdefs.h <<_ACEOF
59969 #define HAVE_LISTEN_DECL 1
59970 _ACEOF
59971
59972 fi
59973 fi
59974
59975
59976 ice_have_lstat=no
59977
59978 for ac_func in lstat
59979 do
59980 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
59981 { echo "$as_me:$LINENO: checking for $ac_func" >&5
59982 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
59983 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
59984   echo $ECHO_N "(cached) $ECHO_C" >&6
59985 else
59986   cat >conftest.$ac_ext <<_ACEOF
59987 /* confdefs.h.  */
59988 _ACEOF
59989 cat confdefs.h >>conftest.$ac_ext
59990 cat >>conftest.$ac_ext <<_ACEOF
59991 /* end confdefs.h.  */
59992 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
59993    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
59994 #define $ac_func innocuous_$ac_func
59995
59996 /* System header to define __stub macros and hopefully few prototypes,
59997     which can conflict with char $ac_func (); below.
59998     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
59999     <limits.h> exists even on freestanding compilers.  */
60000
60001 #ifdef __STDC__
60002 # include <limits.h>
60003 #else
60004 # include <assert.h>
60005 #endif
60006
60007 #undef $ac_func
60008
60009 /* Override any GCC internal prototype to avoid an error.
60010    Use char because int might match the return type of a GCC
60011    builtin and then its argument prototype would still apply.  */
60012 #ifdef __cplusplus
60013 extern "C"
60014 #endif
60015 char $ac_func ();
60016 /* The GNU C library defines this for functions which it implements
60017     to always fail with ENOSYS.  Some functions are actually named
60018     something starting with __ and the normal name is an alias.  */
60019 #if defined __stub_$ac_func || defined __stub___$ac_func
60020 choke me
60021 #endif
60022
60023 int
60024 main ()
60025 {
60026 return $ac_func ();
60027   ;
60028   return 0;
60029 }
60030 _ACEOF
60031 rm -f conftest.$ac_objext conftest$ac_exeext
60032 if { (ac_try="$ac_link"
60033 case "(($ac_try" in
60034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60035   *) ac_try_echo=$ac_try;;
60036 esac
60037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
60038   (eval "$ac_link") 2>conftest.er1
60039   ac_status=$?
60040   grep -v '^ *+' conftest.er1 >conftest.err
60041   rm -f conftest.er1
60042   cat conftest.err >&5
60043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
60044   (exit $ac_status); } && {
60045          test -z "$ac_c_werror_flag" ||
60046          test ! -s conftest.err
60047        } && test -s conftest$ac_exeext &&
60048        $as_test_x conftest$ac_exeext; then
60049   eval "$as_ac_var=yes"
60050 else
60051   echo "$as_me: failed program was:" >&5
60052 sed 's/^/| /' conftest.$ac_ext >&5
60053
60054         eval "$as_ac_var=no"
60055 fi
60056
60057 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
60058       conftest$ac_exeext conftest.$ac_ext
60059 fi
60060 ac_res=`eval echo '${'$as_ac_var'}'`
60061                { echo "$as_me:$LINENO: result: $ac_res" >&5
60062 echo "${ECHO_T}$ac_res" >&6; }
60063 if test `eval echo '${'$as_ac_var'}'` = yes; then
60064   cat >>confdefs.h <<_ACEOF
60065 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
60066 _ACEOF
60067  ice_have_lstat=yes
60068 fi
60069 done
60070
60071 if test "${ice_have_lstat}" = yes; then
60072 { echo "$as_me:$LINENO: checking for lstat declaration in sys/types.h sys/stat.h" >&5
60073 echo $ECHO_N "checking for lstat declaration in sys/types.h sys/stat.h... $ECHO_C" >&6; }
60074 if test "${ice_cv_have_lstat_decl+set}" = set; then
60075   echo $ECHO_N "(cached) $ECHO_C" >&6
60076 else
60077
60078 ice_cv_have_lstat_decl=no
60079 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
60080 ice_re_word='(^|[^a-zA-Z0-9_])'
60081 for header in sys/types.h sys/stat.h; do
60082 # Check for ordinary declaration
60083 cat >conftest.$ac_ext <<_ACEOF
60084 /* confdefs.h.  */
60085 _ACEOF
60086 cat confdefs.h >>conftest.$ac_ext
60087 cat >>conftest.$ac_ext <<_ACEOF
60088 /* end confdefs.h.  */
60089 #include <$header>
60090
60091 _ACEOF
60092 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60093   $EGREP "${ice_re_word}lstat[  ]*\(" >/dev/null 2>&1; then
60094   ice_cv_have_lstat_decl=yes
60095 fi
60096 rm -f conftest*
60097
60098 if test "$ice_cv_have_lstat_decl" = yes; then
60099         break
60100 fi
60101 # Check for "fixed" declaration like "getpid _PARAMS((int))"
60102 cat >conftest.$ac_ext <<_ACEOF
60103 /* confdefs.h.  */
60104 _ACEOF
60105 cat confdefs.h >>conftest.$ac_ext
60106 cat >>conftest.$ac_ext <<_ACEOF
60107 /* end confdefs.h.  */
60108 #include <$header>
60109
60110 _ACEOF
60111 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60112   $EGREP "${ice_re_word}lstat[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
60113   ice_cv_have_lstat_decl=yes
60114 fi
60115 rm -f conftest*
60116
60117 if test "$ice_cv_have_lstat_decl" = yes; then
60118         break
60119 fi
60120 done
60121
60122 fi
60123
60124 { echo "$as_me:$LINENO: result: $ice_cv_have_lstat_decl" >&5
60125 echo "${ECHO_T}$ice_cv_have_lstat_decl" >&6; }
60126 if test "$ice_cv_have_lstat_decl" = yes; then
60127
60128 cat >>confdefs.h <<_ACEOF
60129 #define HAVE_LSTAT_DECL 1
60130 _ACEOF
60131
60132 fi
60133 fi
60134
60135
60136 ice_have_malloc=no
60137
60138 for ac_func in malloc
60139 do
60140 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
60141 { echo "$as_me:$LINENO: checking for $ac_func" >&5
60142 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
60143 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
60144   echo $ECHO_N "(cached) $ECHO_C" >&6
60145 else
60146   cat >conftest.$ac_ext <<_ACEOF
60147 /* confdefs.h.  */
60148 _ACEOF
60149 cat confdefs.h >>conftest.$ac_ext
60150 cat >>conftest.$ac_ext <<_ACEOF
60151 /* end confdefs.h.  */
60152 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
60153    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
60154 #define $ac_func innocuous_$ac_func
60155
60156 /* System header to define __stub macros and hopefully few prototypes,
60157     which can conflict with char $ac_func (); below.
60158     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
60159     <limits.h> exists even on freestanding compilers.  */
60160
60161 #ifdef __STDC__
60162 # include <limits.h>
60163 #else
60164 # include <assert.h>
60165 #endif
60166
60167 #undef $ac_func
60168
60169 /* Override any GCC internal prototype to avoid an error.
60170    Use char because int might match the return type of a GCC
60171    builtin and then its argument prototype would still apply.  */
60172 #ifdef __cplusplus
60173 extern "C"
60174 #endif
60175 char $ac_func ();
60176 /* The GNU C library defines this for functions which it implements
60177     to always fail with ENOSYS.  Some functions are actually named
60178     something starting with __ and the normal name is an alias.  */
60179 #if defined __stub_$ac_func || defined __stub___$ac_func
60180 choke me
60181 #endif
60182
60183 int
60184 main ()
60185 {
60186 return $ac_func ();
60187   ;
60188   return 0;
60189 }
60190 _ACEOF
60191 rm -f conftest.$ac_objext conftest$ac_exeext
60192 if { (ac_try="$ac_link"
60193 case "(($ac_try" in
60194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60195   *) ac_try_echo=$ac_try;;
60196 esac
60197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
60198   (eval "$ac_link") 2>conftest.er1
60199   ac_status=$?
60200   grep -v '^ *+' conftest.er1 >conftest.err
60201   rm -f conftest.er1
60202   cat conftest.err >&5
60203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
60204   (exit $ac_status); } && {
60205          test -z "$ac_c_werror_flag" ||
60206          test ! -s conftest.err
60207        } && test -s conftest$ac_exeext &&
60208        $as_test_x conftest$ac_exeext; then
60209   eval "$as_ac_var=yes"
60210 else
60211   echo "$as_me: failed program was:" >&5
60212 sed 's/^/| /' conftest.$ac_ext >&5
60213
60214         eval "$as_ac_var=no"
60215 fi
60216
60217 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
60218       conftest$ac_exeext conftest.$ac_ext
60219 fi
60220 ac_res=`eval echo '${'$as_ac_var'}'`
60221                { echo "$as_me:$LINENO: result: $ac_res" >&5
60222 echo "${ECHO_T}$ac_res" >&6; }
60223 if test `eval echo '${'$as_ac_var'}'` = yes; then
60224   cat >>confdefs.h <<_ACEOF
60225 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
60226 _ACEOF
60227  ice_have_malloc=yes
60228 fi
60229 done
60230
60231 if test "${ice_have_malloc}" = yes; then
60232 { echo "$as_me:$LINENO: checking for malloc declaration in stdlib.h" >&5
60233 echo $ECHO_N "checking for malloc declaration in stdlib.h... $ECHO_C" >&6; }
60234 if test "${ice_cv_have_malloc_decl+set}" = set; then
60235   echo $ECHO_N "(cached) $ECHO_C" >&6
60236 else
60237
60238 ice_cv_have_malloc_decl=no
60239 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
60240 ice_re_word='(^|[^a-zA-Z0-9_])'
60241 for header in stdlib.h; do
60242 # Check for ordinary declaration
60243 cat >conftest.$ac_ext <<_ACEOF
60244 /* confdefs.h.  */
60245 _ACEOF
60246 cat confdefs.h >>conftest.$ac_ext
60247 cat >>conftest.$ac_ext <<_ACEOF
60248 /* end confdefs.h.  */
60249 #include <$header>
60250
60251 _ACEOF
60252 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60253   $EGREP "${ice_re_word}malloc[         ]*\(" >/dev/null 2>&1; then
60254   ice_cv_have_malloc_decl=yes
60255 fi
60256 rm -f conftest*
60257
60258 if test "$ice_cv_have_malloc_decl" = yes; then
60259         break
60260 fi
60261 # Check for "fixed" declaration like "getpid _PARAMS((int))"
60262 cat >conftest.$ac_ext <<_ACEOF
60263 /* confdefs.h.  */
60264 _ACEOF
60265 cat confdefs.h >>conftest.$ac_ext
60266 cat >>conftest.$ac_ext <<_ACEOF
60267 /* end confdefs.h.  */
60268 #include <$header>
60269
60270 _ACEOF
60271 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60272   $EGREP "${ice_re_word}malloc[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
60273   ice_cv_have_malloc_decl=yes
60274 fi
60275 rm -f conftest*
60276
60277 if test "$ice_cv_have_malloc_decl" = yes; then
60278         break
60279 fi
60280 done
60281
60282 fi
60283
60284 { echo "$as_me:$LINENO: result: $ice_cv_have_malloc_decl" >&5
60285 echo "${ECHO_T}$ice_cv_have_malloc_decl" >&6; }
60286 if test "$ice_cv_have_malloc_decl" = yes; then
60287
60288 cat >>confdefs.h <<_ACEOF
60289 #define HAVE_MALLOC_DECL 1
60290 _ACEOF
60291
60292 fi
60293 fi
60294
60295
60296 ice_have_memmove=no
60297
60298 for ac_func in memmove
60299 do
60300 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
60301 { echo "$as_me:$LINENO: checking for $ac_func" >&5
60302 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
60303 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
60304   echo $ECHO_N "(cached) $ECHO_C" >&6
60305 else
60306   cat >conftest.$ac_ext <<_ACEOF
60307 /* confdefs.h.  */
60308 _ACEOF
60309 cat confdefs.h >>conftest.$ac_ext
60310 cat >>conftest.$ac_ext <<_ACEOF
60311 /* end confdefs.h.  */
60312 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
60313    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
60314 #define $ac_func innocuous_$ac_func
60315
60316 /* System header to define __stub macros and hopefully few prototypes,
60317     which can conflict with char $ac_func (); below.
60318     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
60319     <limits.h> exists even on freestanding compilers.  */
60320
60321 #ifdef __STDC__
60322 # include <limits.h>
60323 #else
60324 # include <assert.h>
60325 #endif
60326
60327 #undef $ac_func
60328
60329 /* Override any GCC internal prototype to avoid an error.
60330    Use char because int might match the return type of a GCC
60331    builtin and then its argument prototype would still apply.  */
60332 #ifdef __cplusplus
60333 extern "C"
60334 #endif
60335 char $ac_func ();
60336 /* The GNU C library defines this for functions which it implements
60337     to always fail with ENOSYS.  Some functions are actually named
60338     something starting with __ and the normal name is an alias.  */
60339 #if defined __stub_$ac_func || defined __stub___$ac_func
60340 choke me
60341 #endif
60342
60343 int
60344 main ()
60345 {
60346 return $ac_func ();
60347   ;
60348   return 0;
60349 }
60350 _ACEOF
60351 rm -f conftest.$ac_objext conftest$ac_exeext
60352 if { (ac_try="$ac_link"
60353 case "(($ac_try" in
60354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60355   *) ac_try_echo=$ac_try;;
60356 esac
60357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
60358   (eval "$ac_link") 2>conftest.er1
60359   ac_status=$?
60360   grep -v '^ *+' conftest.er1 >conftest.err
60361   rm -f conftest.er1
60362   cat conftest.err >&5
60363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
60364   (exit $ac_status); } && {
60365          test -z "$ac_c_werror_flag" ||
60366          test ! -s conftest.err
60367        } && test -s conftest$ac_exeext &&
60368        $as_test_x conftest$ac_exeext; then
60369   eval "$as_ac_var=yes"
60370 else
60371   echo "$as_me: failed program was:" >&5
60372 sed 's/^/| /' conftest.$ac_ext >&5
60373
60374         eval "$as_ac_var=no"
60375 fi
60376
60377 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
60378       conftest$ac_exeext conftest.$ac_ext
60379 fi
60380 ac_res=`eval echo '${'$as_ac_var'}'`
60381                { echo "$as_me:$LINENO: result: $ac_res" >&5
60382 echo "${ECHO_T}$ac_res" >&6; }
60383 if test `eval echo '${'$as_ac_var'}'` = yes; then
60384   cat >>confdefs.h <<_ACEOF
60385 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
60386 _ACEOF
60387  ice_have_memmove=yes
60388 fi
60389 done
60390
60391 if test "${ice_have_memmove}" = yes; then
60392 { echo "$as_me:$LINENO: checking for memmove declaration in string.h strings.h" >&5
60393 echo $ECHO_N "checking for memmove declaration in string.h strings.h... $ECHO_C" >&6; }
60394 if test "${ice_cv_have_memmove_decl+set}" = set; then
60395   echo $ECHO_N "(cached) $ECHO_C" >&6
60396 else
60397
60398 ice_cv_have_memmove_decl=no
60399 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
60400 ice_re_word='(^|[^a-zA-Z0-9_])'
60401 for header in string.h strings.h; do
60402 # Check for ordinary declaration
60403 cat >conftest.$ac_ext <<_ACEOF
60404 /* confdefs.h.  */
60405 _ACEOF
60406 cat confdefs.h >>conftest.$ac_ext
60407 cat >>conftest.$ac_ext <<_ACEOF
60408 /* end confdefs.h.  */
60409 #include <$header>
60410
60411 _ACEOF
60412 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60413   $EGREP "${ice_re_word}memmove[        ]*\(" >/dev/null 2>&1; then
60414   ice_cv_have_memmove_decl=yes
60415 fi
60416 rm -f conftest*
60417
60418 if test "$ice_cv_have_memmove_decl" = yes; then
60419         break
60420 fi
60421 # Check for "fixed" declaration like "getpid _PARAMS((int))"
60422 cat >conftest.$ac_ext <<_ACEOF
60423 /* confdefs.h.  */
60424 _ACEOF
60425 cat confdefs.h >>conftest.$ac_ext
60426 cat >>conftest.$ac_ext <<_ACEOF
60427 /* end confdefs.h.  */
60428 #include <$header>
60429
60430 _ACEOF
60431 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60432   $EGREP "${ice_re_word}memmove[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
60433   ice_cv_have_memmove_decl=yes
60434 fi
60435 rm -f conftest*
60436
60437 if test "$ice_cv_have_memmove_decl" = yes; then
60438         break
60439 fi
60440 done
60441
60442 fi
60443
60444 { echo "$as_me:$LINENO: result: $ice_cv_have_memmove_decl" >&5
60445 echo "${ECHO_T}$ice_cv_have_memmove_decl" >&6; }
60446 if test "$ice_cv_have_memmove_decl" = yes; then
60447
60448 cat >>confdefs.h <<_ACEOF
60449 #define HAVE_MEMMOVE_DECL 1
60450 _ACEOF
60451
60452 fi
60453 fi
60454
60455
60456 ice_have_memset=no
60457
60458 for ac_func in memset
60459 do
60460 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
60461 { echo "$as_me:$LINENO: checking for $ac_func" >&5
60462 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
60463 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
60464   echo $ECHO_N "(cached) $ECHO_C" >&6
60465 else
60466   cat >conftest.$ac_ext <<_ACEOF
60467 /* confdefs.h.  */
60468 _ACEOF
60469 cat confdefs.h >>conftest.$ac_ext
60470 cat >>conftest.$ac_ext <<_ACEOF
60471 /* end confdefs.h.  */
60472 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
60473    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
60474 #define $ac_func innocuous_$ac_func
60475
60476 /* System header to define __stub macros and hopefully few prototypes,
60477     which can conflict with char $ac_func (); below.
60478     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
60479     <limits.h> exists even on freestanding compilers.  */
60480
60481 #ifdef __STDC__
60482 # include <limits.h>
60483 #else
60484 # include <assert.h>
60485 #endif
60486
60487 #undef $ac_func
60488
60489 /* Override any GCC internal prototype to avoid an error.
60490    Use char because int might match the return type of a GCC
60491    builtin and then its argument prototype would still apply.  */
60492 #ifdef __cplusplus
60493 extern "C"
60494 #endif
60495 char $ac_func ();
60496 /* The GNU C library defines this for functions which it implements
60497     to always fail with ENOSYS.  Some functions are actually named
60498     something starting with __ and the normal name is an alias.  */
60499 #if defined __stub_$ac_func || defined __stub___$ac_func
60500 choke me
60501 #endif
60502
60503 int
60504 main ()
60505 {
60506 return $ac_func ();
60507   ;
60508   return 0;
60509 }
60510 _ACEOF
60511 rm -f conftest.$ac_objext conftest$ac_exeext
60512 if { (ac_try="$ac_link"
60513 case "(($ac_try" in
60514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60515   *) ac_try_echo=$ac_try;;
60516 esac
60517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
60518   (eval "$ac_link") 2>conftest.er1
60519   ac_status=$?
60520   grep -v '^ *+' conftest.er1 >conftest.err
60521   rm -f conftest.er1
60522   cat conftest.err >&5
60523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
60524   (exit $ac_status); } && {
60525          test -z "$ac_c_werror_flag" ||
60526          test ! -s conftest.err
60527        } && test -s conftest$ac_exeext &&
60528        $as_test_x conftest$ac_exeext; then
60529   eval "$as_ac_var=yes"
60530 else
60531   echo "$as_me: failed program was:" >&5
60532 sed 's/^/| /' conftest.$ac_ext >&5
60533
60534         eval "$as_ac_var=no"
60535 fi
60536
60537 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
60538       conftest$ac_exeext conftest.$ac_ext
60539 fi
60540 ac_res=`eval echo '${'$as_ac_var'}'`
60541                { echo "$as_me:$LINENO: result: $ac_res" >&5
60542 echo "${ECHO_T}$ac_res" >&6; }
60543 if test `eval echo '${'$as_ac_var'}'` = yes; then
60544   cat >>confdefs.h <<_ACEOF
60545 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
60546 _ACEOF
60547  ice_have_memset=yes
60548 fi
60549 done
60550
60551 if test "${ice_have_memset}" = yes; then
60552 { echo "$as_me:$LINENO: checking for memset declaration in string.h strings.h" >&5
60553 echo $ECHO_N "checking for memset declaration in string.h strings.h... $ECHO_C" >&6; }
60554 if test "${ice_cv_have_memset_decl+set}" = set; then
60555   echo $ECHO_N "(cached) $ECHO_C" >&6
60556 else
60557
60558 ice_cv_have_memset_decl=no
60559 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
60560 ice_re_word='(^|[^a-zA-Z0-9_])'
60561 for header in string.h strings.h; do
60562 # Check for ordinary declaration
60563 cat >conftest.$ac_ext <<_ACEOF
60564 /* confdefs.h.  */
60565 _ACEOF
60566 cat confdefs.h >>conftest.$ac_ext
60567 cat >>conftest.$ac_ext <<_ACEOF
60568 /* end confdefs.h.  */
60569 #include <$header>
60570
60571 _ACEOF
60572 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60573   $EGREP "${ice_re_word}memset[         ]*\(" >/dev/null 2>&1; then
60574   ice_cv_have_memset_decl=yes
60575 fi
60576 rm -f conftest*
60577
60578 if test "$ice_cv_have_memset_decl" = yes; then
60579         break
60580 fi
60581 # Check for "fixed" declaration like "getpid _PARAMS((int))"
60582 cat >conftest.$ac_ext <<_ACEOF
60583 /* confdefs.h.  */
60584 _ACEOF
60585 cat confdefs.h >>conftest.$ac_ext
60586 cat >>conftest.$ac_ext <<_ACEOF
60587 /* end confdefs.h.  */
60588 #include <$header>
60589
60590 _ACEOF
60591 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60592   $EGREP "${ice_re_word}memset[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
60593   ice_cv_have_memset_decl=yes
60594 fi
60595 rm -f conftest*
60596
60597 if test "$ice_cv_have_memset_decl" = yes; then
60598         break
60599 fi
60600 done
60601
60602 fi
60603
60604 { echo "$as_me:$LINENO: result: $ice_cv_have_memset_decl" >&5
60605 echo "${ECHO_T}$ice_cv_have_memset_decl" >&6; }
60606 if test "$ice_cv_have_memset_decl" = yes; then
60607
60608 cat >>confdefs.h <<_ACEOF
60609 #define HAVE_MEMSET_DECL 1
60610 _ACEOF
60611
60612 fi
60613 fi
60614
60615
60616 ice_have_mkstemp=no
60617
60618 for ac_func in mkstemp
60619 do
60620 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
60621 { echo "$as_me:$LINENO: checking for $ac_func" >&5
60622 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
60623 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
60624   echo $ECHO_N "(cached) $ECHO_C" >&6
60625 else
60626   cat >conftest.$ac_ext <<_ACEOF
60627 /* confdefs.h.  */
60628 _ACEOF
60629 cat confdefs.h >>conftest.$ac_ext
60630 cat >>conftest.$ac_ext <<_ACEOF
60631 /* end confdefs.h.  */
60632 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
60633    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
60634 #define $ac_func innocuous_$ac_func
60635
60636 /* System header to define __stub macros and hopefully few prototypes,
60637     which can conflict with char $ac_func (); below.
60638     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
60639     <limits.h> exists even on freestanding compilers.  */
60640
60641 #ifdef __STDC__
60642 # include <limits.h>
60643 #else
60644 # include <assert.h>
60645 #endif
60646
60647 #undef $ac_func
60648
60649 /* Override any GCC internal prototype to avoid an error.
60650    Use char because int might match the return type of a GCC
60651    builtin and then its argument prototype would still apply.  */
60652 #ifdef __cplusplus
60653 extern "C"
60654 #endif
60655 char $ac_func ();
60656 /* The GNU C library defines this for functions which it implements
60657     to always fail with ENOSYS.  Some functions are actually named
60658     something starting with __ and the normal name is an alias.  */
60659 #if defined __stub_$ac_func || defined __stub___$ac_func
60660 choke me
60661 #endif
60662
60663 int
60664 main ()
60665 {
60666 return $ac_func ();
60667   ;
60668   return 0;
60669 }
60670 _ACEOF
60671 rm -f conftest.$ac_objext conftest$ac_exeext
60672 if { (ac_try="$ac_link"
60673 case "(($ac_try" in
60674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60675   *) ac_try_echo=$ac_try;;
60676 esac
60677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
60678   (eval "$ac_link") 2>conftest.er1
60679   ac_status=$?
60680   grep -v '^ *+' conftest.er1 >conftest.err
60681   rm -f conftest.er1
60682   cat conftest.err >&5
60683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
60684   (exit $ac_status); } && {
60685          test -z "$ac_c_werror_flag" ||
60686          test ! -s conftest.err
60687        } && test -s conftest$ac_exeext &&
60688        $as_test_x conftest$ac_exeext; then
60689   eval "$as_ac_var=yes"
60690 else
60691   echo "$as_me: failed program was:" >&5
60692 sed 's/^/| /' conftest.$ac_ext >&5
60693
60694         eval "$as_ac_var=no"
60695 fi
60696
60697 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
60698       conftest$ac_exeext conftest.$ac_ext
60699 fi
60700 ac_res=`eval echo '${'$as_ac_var'}'`
60701                { echo "$as_me:$LINENO: result: $ac_res" >&5
60702 echo "${ECHO_T}$ac_res" >&6; }
60703 if test `eval echo '${'$as_ac_var'}'` = yes; then
60704   cat >>confdefs.h <<_ACEOF
60705 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
60706 _ACEOF
60707  ice_have_mkstemp=yes
60708 fi
60709 done
60710
60711 if test "${ice_have_mkstemp}" = yes; then
60712 { echo "$as_me:$LINENO: checking for mkstemp declaration in stdlib.h" >&5
60713 echo $ECHO_N "checking for mkstemp declaration in stdlib.h... $ECHO_C" >&6; }
60714 if test "${ice_cv_have_mkstemp_decl+set}" = set; then
60715   echo $ECHO_N "(cached) $ECHO_C" >&6
60716 else
60717
60718 ice_cv_have_mkstemp_decl=no
60719 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
60720 ice_re_word='(^|[^a-zA-Z0-9_])'
60721 for header in stdlib.h; do
60722 # Check for ordinary declaration
60723 cat >conftest.$ac_ext <<_ACEOF
60724 /* confdefs.h.  */
60725 _ACEOF
60726 cat confdefs.h >>conftest.$ac_ext
60727 cat >>conftest.$ac_ext <<_ACEOF
60728 /* end confdefs.h.  */
60729 #include <$header>
60730
60731 _ACEOF
60732 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60733   $EGREP "${ice_re_word}mkstemp[        ]*\(" >/dev/null 2>&1; then
60734   ice_cv_have_mkstemp_decl=yes
60735 fi
60736 rm -f conftest*
60737
60738 if test "$ice_cv_have_mkstemp_decl" = yes; then
60739         break
60740 fi
60741 # Check for "fixed" declaration like "getpid _PARAMS((int))"
60742 cat >conftest.$ac_ext <<_ACEOF
60743 /* confdefs.h.  */
60744 _ACEOF
60745 cat confdefs.h >>conftest.$ac_ext
60746 cat >>conftest.$ac_ext <<_ACEOF
60747 /* end confdefs.h.  */
60748 #include <$header>
60749
60750 _ACEOF
60751 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60752   $EGREP "${ice_re_word}mkstemp[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
60753   ice_cv_have_mkstemp_decl=yes
60754 fi
60755 rm -f conftest*
60756
60757 if test "$ice_cv_have_mkstemp_decl" = yes; then
60758         break
60759 fi
60760 done
60761
60762 fi
60763
60764 { echo "$as_me:$LINENO: result: $ice_cv_have_mkstemp_decl" >&5
60765 echo "${ECHO_T}$ice_cv_have_mkstemp_decl" >&6; }
60766 if test "$ice_cv_have_mkstemp_decl" = yes; then
60767
60768 cat >>confdefs.h <<_ACEOF
60769 #define HAVE_MKSTEMP_DECL 1
60770 _ACEOF
60771
60772 fi
60773 fi
60774
60775
60776 ice_have_mktemp=no
60777
60778 for ac_func in mktemp
60779 do
60780 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
60781 { echo "$as_me:$LINENO: checking for $ac_func" >&5
60782 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
60783 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
60784   echo $ECHO_N "(cached) $ECHO_C" >&6
60785 else
60786   cat >conftest.$ac_ext <<_ACEOF
60787 /* confdefs.h.  */
60788 _ACEOF
60789 cat confdefs.h >>conftest.$ac_ext
60790 cat >>conftest.$ac_ext <<_ACEOF
60791 /* end confdefs.h.  */
60792 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
60793    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
60794 #define $ac_func innocuous_$ac_func
60795
60796 /* System header to define __stub macros and hopefully few prototypes,
60797     which can conflict with char $ac_func (); below.
60798     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
60799     <limits.h> exists even on freestanding compilers.  */
60800
60801 #ifdef __STDC__
60802 # include <limits.h>
60803 #else
60804 # include <assert.h>
60805 #endif
60806
60807 #undef $ac_func
60808
60809 /* Override any GCC internal prototype to avoid an error.
60810    Use char because int might match the return type of a GCC
60811    builtin and then its argument prototype would still apply.  */
60812 #ifdef __cplusplus
60813 extern "C"
60814 #endif
60815 char $ac_func ();
60816 /* The GNU C library defines this for functions which it implements
60817     to always fail with ENOSYS.  Some functions are actually named
60818     something starting with __ and the normal name is an alias.  */
60819 #if defined __stub_$ac_func || defined __stub___$ac_func
60820 choke me
60821 #endif
60822
60823 int
60824 main ()
60825 {
60826 return $ac_func ();
60827   ;
60828   return 0;
60829 }
60830 _ACEOF
60831 rm -f conftest.$ac_objext conftest$ac_exeext
60832 if { (ac_try="$ac_link"
60833 case "(($ac_try" in
60834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60835   *) ac_try_echo=$ac_try;;
60836 esac
60837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
60838   (eval "$ac_link") 2>conftest.er1
60839   ac_status=$?
60840   grep -v '^ *+' conftest.er1 >conftest.err
60841   rm -f conftest.er1
60842   cat conftest.err >&5
60843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
60844   (exit $ac_status); } && {
60845          test -z "$ac_c_werror_flag" ||
60846          test ! -s conftest.err
60847        } && test -s conftest$ac_exeext &&
60848        $as_test_x conftest$ac_exeext; then
60849   eval "$as_ac_var=yes"
60850 else
60851   echo "$as_me: failed program was:" >&5
60852 sed 's/^/| /' conftest.$ac_ext >&5
60853
60854         eval "$as_ac_var=no"
60855 fi
60856
60857 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
60858       conftest$ac_exeext conftest.$ac_ext
60859 fi
60860 ac_res=`eval echo '${'$as_ac_var'}'`
60861                { echo "$as_me:$LINENO: result: $ac_res" >&5
60862 echo "${ECHO_T}$ac_res" >&6; }
60863 if test `eval echo '${'$as_ac_var'}'` = yes; then
60864   cat >>confdefs.h <<_ACEOF
60865 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
60866 _ACEOF
60867  ice_have_mktemp=yes
60868 fi
60869 done
60870
60871 if test "${ice_have_mktemp}" = yes; then
60872 { echo "$as_me:$LINENO: checking for mktemp declaration in stdlib.h" >&5
60873 echo $ECHO_N "checking for mktemp declaration in stdlib.h... $ECHO_C" >&6; }
60874 if test "${ice_cv_have_mktemp_decl+set}" = set; then
60875   echo $ECHO_N "(cached) $ECHO_C" >&6
60876 else
60877
60878 ice_cv_have_mktemp_decl=no
60879 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
60880 ice_re_word='(^|[^a-zA-Z0-9_])'
60881 for header in stdlib.h; do
60882 # Check for ordinary declaration
60883 cat >conftest.$ac_ext <<_ACEOF
60884 /* confdefs.h.  */
60885 _ACEOF
60886 cat confdefs.h >>conftest.$ac_ext
60887 cat >>conftest.$ac_ext <<_ACEOF
60888 /* end confdefs.h.  */
60889 #include <$header>
60890
60891 _ACEOF
60892 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60893   $EGREP "${ice_re_word}mktemp[         ]*\(" >/dev/null 2>&1; then
60894   ice_cv_have_mktemp_decl=yes
60895 fi
60896 rm -f conftest*
60897
60898 if test "$ice_cv_have_mktemp_decl" = yes; then
60899         break
60900 fi
60901 # Check for "fixed" declaration like "getpid _PARAMS((int))"
60902 cat >conftest.$ac_ext <<_ACEOF
60903 /* confdefs.h.  */
60904 _ACEOF
60905 cat confdefs.h >>conftest.$ac_ext
60906 cat >>conftest.$ac_ext <<_ACEOF
60907 /* end confdefs.h.  */
60908 #include <$header>
60909
60910 _ACEOF
60911 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60912   $EGREP "${ice_re_word}mktemp[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
60913   ice_cv_have_mktemp_decl=yes
60914 fi
60915 rm -f conftest*
60916
60917 if test "$ice_cv_have_mktemp_decl" = yes; then
60918         break
60919 fi
60920 done
60921
60922 fi
60923
60924 { echo "$as_me:$LINENO: result: $ice_cv_have_mktemp_decl" >&5
60925 echo "${ECHO_T}$ice_cv_have_mktemp_decl" >&6; }
60926 if test "$ice_cv_have_mktemp_decl" = yes; then
60927
60928 cat >>confdefs.h <<_ACEOF
60929 #define HAVE_MKTEMP_DECL 1
60930 _ACEOF
60931
60932 fi
60933 fi
60934
60935
60936 ice_have_mktime=no
60937
60938 for ac_func in mktime
60939 do
60940 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
60941 { echo "$as_me:$LINENO: checking for $ac_func" >&5
60942 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
60943 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
60944   echo $ECHO_N "(cached) $ECHO_C" >&6
60945 else
60946   cat >conftest.$ac_ext <<_ACEOF
60947 /* confdefs.h.  */
60948 _ACEOF
60949 cat confdefs.h >>conftest.$ac_ext
60950 cat >>conftest.$ac_ext <<_ACEOF
60951 /* end confdefs.h.  */
60952 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
60953    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
60954 #define $ac_func innocuous_$ac_func
60955
60956 /* System header to define __stub macros and hopefully few prototypes,
60957     which can conflict with char $ac_func (); below.
60958     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
60959     <limits.h> exists even on freestanding compilers.  */
60960
60961 #ifdef __STDC__
60962 # include <limits.h>
60963 #else
60964 # include <assert.h>
60965 #endif
60966
60967 #undef $ac_func
60968
60969 /* Override any GCC internal prototype to avoid an error.
60970    Use char because int might match the return type of a GCC
60971    builtin and then its argument prototype would still apply.  */
60972 #ifdef __cplusplus
60973 extern "C"
60974 #endif
60975 char $ac_func ();
60976 /* The GNU C library defines this for functions which it implements
60977     to always fail with ENOSYS.  Some functions are actually named
60978     something starting with __ and the normal name is an alias.  */
60979 #if defined __stub_$ac_func || defined __stub___$ac_func
60980 choke me
60981 #endif
60982
60983 int
60984 main ()
60985 {
60986 return $ac_func ();
60987   ;
60988   return 0;
60989 }
60990 _ACEOF
60991 rm -f conftest.$ac_objext conftest$ac_exeext
60992 if { (ac_try="$ac_link"
60993 case "(($ac_try" in
60994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60995   *) ac_try_echo=$ac_try;;
60996 esac
60997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
60998   (eval "$ac_link") 2>conftest.er1
60999   ac_status=$?
61000   grep -v '^ *+' conftest.er1 >conftest.err
61001   rm -f conftest.er1
61002   cat conftest.err >&5
61003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
61004   (exit $ac_status); } && {
61005          test -z "$ac_c_werror_flag" ||
61006          test ! -s conftest.err
61007        } && test -s conftest$ac_exeext &&
61008        $as_test_x conftest$ac_exeext; then
61009   eval "$as_ac_var=yes"
61010 else
61011   echo "$as_me: failed program was:" >&5
61012 sed 's/^/| /' conftest.$ac_ext >&5
61013
61014         eval "$as_ac_var=no"
61015 fi
61016
61017 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
61018       conftest$ac_exeext conftest.$ac_ext
61019 fi
61020 ac_res=`eval echo '${'$as_ac_var'}'`
61021                { echo "$as_me:$LINENO: result: $ac_res" >&5
61022 echo "${ECHO_T}$ac_res" >&6; }
61023 if test `eval echo '${'$as_ac_var'}'` = yes; then
61024   cat >>confdefs.h <<_ACEOF
61025 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
61026 _ACEOF
61027  ice_have_mktime=yes
61028 fi
61029 done
61030
61031 if test "${ice_have_mktime}" = yes; then
61032 { echo "$as_me:$LINENO: checking for mktime declaration in time.h sys/time.h" >&5
61033 echo $ECHO_N "checking for mktime declaration in time.h sys/time.h... $ECHO_C" >&6; }
61034 if test "${ice_cv_have_mktime_decl+set}" = set; then
61035   echo $ECHO_N "(cached) $ECHO_C" >&6
61036 else
61037
61038 ice_cv_have_mktime_decl=no
61039 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
61040 ice_re_word='(^|[^a-zA-Z0-9_])'
61041 for header in time.h sys/time.h; do
61042 # Check for ordinary declaration
61043 cat >conftest.$ac_ext <<_ACEOF
61044 /* confdefs.h.  */
61045 _ACEOF
61046 cat confdefs.h >>conftest.$ac_ext
61047 cat >>conftest.$ac_ext <<_ACEOF
61048 /* end confdefs.h.  */
61049 #include <$header>
61050
61051 _ACEOF
61052 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61053   $EGREP "${ice_re_word}mktime[         ]*\(" >/dev/null 2>&1; then
61054   ice_cv_have_mktime_decl=yes
61055 fi
61056 rm -f conftest*
61057
61058 if test "$ice_cv_have_mktime_decl" = yes; then
61059         break
61060 fi
61061 # Check for "fixed" declaration like "getpid _PARAMS((int))"
61062 cat >conftest.$ac_ext <<_ACEOF
61063 /* confdefs.h.  */
61064 _ACEOF
61065 cat confdefs.h >>conftest.$ac_ext
61066 cat >>conftest.$ac_ext <<_ACEOF
61067 /* end confdefs.h.  */
61068 #include <$header>
61069
61070 _ACEOF
61071 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61072   $EGREP "${ice_re_word}mktime[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
61073   ice_cv_have_mktime_decl=yes
61074 fi
61075 rm -f conftest*
61076
61077 if test "$ice_cv_have_mktime_decl" = yes; then
61078         break
61079 fi
61080 done
61081
61082 fi
61083
61084 { echo "$as_me:$LINENO: result: $ice_cv_have_mktime_decl" >&5
61085 echo "${ECHO_T}$ice_cv_have_mktime_decl" >&6; }
61086 if test "$ice_cv_have_mktime_decl" = yes; then
61087
61088 cat >>confdefs.h <<_ACEOF
61089 #define HAVE_MKTIME_DECL 1
61090 _ACEOF
61091
61092 fi
61093 fi
61094
61095
61096 for ac_func in on_exit
61097 do
61098 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
61099 { echo "$as_me:$LINENO: checking for $ac_func" >&5
61100 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
61101 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
61102   echo $ECHO_N "(cached) $ECHO_C" >&6
61103 else
61104   cat >conftest.$ac_ext <<_ACEOF
61105 /* confdefs.h.  */
61106 _ACEOF
61107 cat confdefs.h >>conftest.$ac_ext
61108 cat >>conftest.$ac_ext <<_ACEOF
61109 /* end confdefs.h.  */
61110 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
61111    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
61112 #define $ac_func innocuous_$ac_func
61113
61114 /* System header to define __stub macros and hopefully few prototypes,
61115     which can conflict with char $ac_func (); below.
61116     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
61117     <limits.h> exists even on freestanding compilers.  */
61118
61119 #ifdef __STDC__
61120 # include <limits.h>
61121 #else
61122 # include <assert.h>
61123 #endif
61124
61125 #undef $ac_func
61126
61127 /* Override any GCC internal prototype to avoid an error.
61128    Use char because int might match the return type of a GCC
61129    builtin and then its argument prototype would still apply.  */
61130 #ifdef __cplusplus
61131 extern "C"
61132 #endif
61133 char $ac_func ();
61134 /* The GNU C library defines this for functions which it implements
61135     to always fail with ENOSYS.  Some functions are actually named
61136     something starting with __ and the normal name is an alias.  */
61137 #if defined __stub_$ac_func || defined __stub___$ac_func
61138 choke me
61139 #endif
61140
61141 int
61142 main ()
61143 {
61144 return $ac_func ();
61145   ;
61146   return 0;
61147 }
61148 _ACEOF
61149 rm -f conftest.$ac_objext conftest$ac_exeext
61150 if { (ac_try="$ac_link"
61151 case "(($ac_try" in
61152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61153   *) ac_try_echo=$ac_try;;
61154 esac
61155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
61156   (eval "$ac_link") 2>conftest.er1
61157   ac_status=$?
61158   grep -v '^ *+' conftest.er1 >conftest.err
61159   rm -f conftest.er1
61160   cat conftest.err >&5
61161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
61162   (exit $ac_status); } && {
61163          test -z "$ac_c_werror_flag" ||
61164          test ! -s conftest.err
61165        } && test -s conftest$ac_exeext &&
61166        $as_test_x conftest$ac_exeext; then
61167   eval "$as_ac_var=yes"
61168 else
61169   echo "$as_me: failed program was:" >&5
61170 sed 's/^/| /' conftest.$ac_ext >&5
61171
61172         eval "$as_ac_var=no"
61173 fi
61174
61175 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
61176       conftest$ac_exeext conftest.$ac_ext
61177 fi
61178 ac_res=`eval echo '${'$as_ac_var'}'`
61179                { echo "$as_me:$LINENO: result: $ac_res" >&5
61180 echo "${ECHO_T}$ac_res" >&6; }
61181 if test `eval echo '${'$as_ac_var'}'` = yes; then
61182   cat >>confdefs.h <<_ACEOF
61183 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
61184 _ACEOF
61185
61186 fi
61187 done
61188
61189
61190 ice_have_openlog=no
61191
61192 for ac_func in openlog
61193 do
61194 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
61195 { echo "$as_me:$LINENO: checking for $ac_func" >&5
61196 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
61197 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
61198   echo $ECHO_N "(cached) $ECHO_C" >&6
61199 else
61200   cat >conftest.$ac_ext <<_ACEOF
61201 /* confdefs.h.  */
61202 _ACEOF
61203 cat confdefs.h >>conftest.$ac_ext
61204 cat >>conftest.$ac_ext <<_ACEOF
61205 /* end confdefs.h.  */
61206 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
61207    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
61208 #define $ac_func innocuous_$ac_func
61209
61210 /* System header to define __stub macros and hopefully few prototypes,
61211     which can conflict with char $ac_func (); below.
61212     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
61213     <limits.h> exists even on freestanding compilers.  */
61214
61215 #ifdef __STDC__
61216 # include <limits.h>
61217 #else
61218 # include <assert.h>
61219 #endif
61220
61221 #undef $ac_func
61222
61223 /* Override any GCC internal prototype to avoid an error.
61224    Use char because int might match the return type of a GCC
61225    builtin and then its argument prototype would still apply.  */
61226 #ifdef __cplusplus
61227 extern "C"
61228 #endif
61229 char $ac_func ();
61230 /* The GNU C library defines this for functions which it implements
61231     to always fail with ENOSYS.  Some functions are actually named
61232     something starting with __ and the normal name is an alias.  */
61233 #if defined __stub_$ac_func || defined __stub___$ac_func
61234 choke me
61235 #endif
61236
61237 int
61238 main ()
61239 {
61240 return $ac_func ();
61241   ;
61242   return 0;
61243 }
61244 _ACEOF
61245 rm -f conftest.$ac_objext conftest$ac_exeext
61246 if { (ac_try="$ac_link"
61247 case "(($ac_try" in
61248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61249   *) ac_try_echo=$ac_try;;
61250 esac
61251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
61252   (eval "$ac_link") 2>conftest.er1
61253   ac_status=$?
61254   grep -v '^ *+' conftest.er1 >conftest.err
61255   rm -f conftest.er1
61256   cat conftest.err >&5
61257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
61258   (exit $ac_status); } && {
61259          test -z "$ac_c_werror_flag" ||
61260          test ! -s conftest.err
61261        } && test -s conftest$ac_exeext &&
61262        $as_test_x conftest$ac_exeext; then
61263   eval "$as_ac_var=yes"
61264 else
61265   echo "$as_me: failed program was:" >&5
61266 sed 's/^/| /' conftest.$ac_ext >&5
61267
61268         eval "$as_ac_var=no"
61269 fi
61270
61271 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
61272       conftest$ac_exeext conftest.$ac_ext
61273 fi
61274 ac_res=`eval echo '${'$as_ac_var'}'`
61275                { echo "$as_me:$LINENO: result: $ac_res" >&5
61276 echo "${ECHO_T}$ac_res" >&6; }
61277 if test `eval echo '${'$as_ac_var'}'` = yes; then
61278   cat >>confdefs.h <<_ACEOF
61279 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
61280 _ACEOF
61281  ice_have_openlog=yes
61282 fi
61283 done
61284
61285 if test "${ice_have_openlog}" = yes; then
61286 { echo "$as_me:$LINENO: checking for openlog declaration in syslog.h" >&5
61287 echo $ECHO_N "checking for openlog declaration in syslog.h... $ECHO_C" >&6; }
61288 if test "${ice_cv_have_openlog_decl+set}" = set; then
61289   echo $ECHO_N "(cached) $ECHO_C" >&6
61290 else
61291
61292 ice_cv_have_openlog_decl=no
61293 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
61294 ice_re_word='(^|[^a-zA-Z0-9_])'
61295 for header in syslog.h; do
61296 # Check for ordinary declaration
61297 cat >conftest.$ac_ext <<_ACEOF
61298 /* confdefs.h.  */
61299 _ACEOF
61300 cat confdefs.h >>conftest.$ac_ext
61301 cat >>conftest.$ac_ext <<_ACEOF
61302 /* end confdefs.h.  */
61303 #include <$header>
61304
61305 _ACEOF
61306 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61307   $EGREP "${ice_re_word}openlog[        ]*\(" >/dev/null 2>&1; then
61308   ice_cv_have_openlog_decl=yes
61309 fi
61310 rm -f conftest*
61311
61312 if test "$ice_cv_have_openlog_decl" = yes; then
61313         break
61314 fi
61315 # Check for "fixed" declaration like "getpid _PARAMS((int))"
61316 cat >conftest.$ac_ext <<_ACEOF
61317 /* confdefs.h.  */
61318 _ACEOF
61319 cat confdefs.h >>conftest.$ac_ext
61320 cat >>conftest.$ac_ext <<_ACEOF
61321 /* end confdefs.h.  */
61322 #include <$header>
61323
61324 _ACEOF
61325 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61326   $EGREP "${ice_re_word}openlog[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
61327   ice_cv_have_openlog_decl=yes
61328 fi
61329 rm -f conftest*
61330
61331 if test "$ice_cv_have_openlog_decl" = yes; then
61332         break
61333 fi
61334 done
61335
61336 fi
61337
61338 { echo "$as_me:$LINENO: result: $ice_cv_have_openlog_decl" >&5
61339 echo "${ECHO_T}$ice_cv_have_openlog_decl" >&6; }
61340 if test "$ice_cv_have_openlog_decl" = yes; then
61341
61342 cat >>confdefs.h <<_ACEOF
61343 #define HAVE_OPENLOG_DECL 1
61344 _ACEOF
61345
61346 fi
61347 fi
61348
61349
61350 ice_have_pclose=no
61351
61352 for ac_func in pclose
61353 do
61354 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
61355 { echo "$as_me:$LINENO: checking for $ac_func" >&5
61356 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
61357 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
61358   echo $ECHO_N "(cached) $ECHO_C" >&6
61359 else
61360   cat >conftest.$ac_ext <<_ACEOF
61361 /* confdefs.h.  */
61362 _ACEOF
61363 cat confdefs.h >>conftest.$ac_ext
61364 cat >>conftest.$ac_ext <<_ACEOF
61365 /* end confdefs.h.  */
61366 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
61367    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
61368 #define $ac_func innocuous_$ac_func
61369
61370 /* System header to define __stub macros and hopefully few prototypes,
61371     which can conflict with char $ac_func (); below.
61372     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
61373     <limits.h> exists even on freestanding compilers.  */
61374
61375 #ifdef __STDC__
61376 # include <limits.h>
61377 #else
61378 # include <assert.h>
61379 #endif
61380
61381 #undef $ac_func
61382
61383 /* Override any GCC internal prototype to avoid an error.
61384    Use char because int might match the return type of a GCC
61385    builtin and then its argument prototype would still apply.  */
61386 #ifdef __cplusplus
61387 extern "C"
61388 #endif
61389 char $ac_func ();
61390 /* The GNU C library defines this for functions which it implements
61391     to always fail with ENOSYS.  Some functions are actually named
61392     something starting with __ and the normal name is an alias.  */
61393 #if defined __stub_$ac_func || defined __stub___$ac_func
61394 choke me
61395 #endif
61396
61397 int
61398 main ()
61399 {
61400 return $ac_func ();
61401   ;
61402   return 0;
61403 }
61404 _ACEOF
61405 rm -f conftest.$ac_objext conftest$ac_exeext
61406 if { (ac_try="$ac_link"
61407 case "(($ac_try" in
61408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61409   *) ac_try_echo=$ac_try;;
61410 esac
61411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
61412   (eval "$ac_link") 2>conftest.er1
61413   ac_status=$?
61414   grep -v '^ *+' conftest.er1 >conftest.err
61415   rm -f conftest.er1
61416   cat conftest.err >&5
61417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
61418   (exit $ac_status); } && {
61419          test -z "$ac_c_werror_flag" ||
61420          test ! -s conftest.err
61421        } && test -s conftest$ac_exeext &&
61422        $as_test_x conftest$ac_exeext; then
61423   eval "$as_ac_var=yes"
61424 else
61425   echo "$as_me: failed program was:" >&5
61426 sed 's/^/| /' conftest.$ac_ext >&5
61427
61428         eval "$as_ac_var=no"
61429 fi
61430
61431 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
61432       conftest$ac_exeext conftest.$ac_ext
61433 fi
61434 ac_res=`eval echo '${'$as_ac_var'}'`
61435                { echo "$as_me:$LINENO: result: $ac_res" >&5
61436 echo "${ECHO_T}$ac_res" >&6; }
61437 if test `eval echo '${'$as_ac_var'}'` = yes; then
61438   cat >>confdefs.h <<_ACEOF
61439 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
61440 _ACEOF
61441  ice_have_pclose=yes
61442 fi
61443 done
61444
61445 if test "${ice_have_pclose}" = yes; then
61446 { echo "$as_me:$LINENO: checking for pclose declaration in stdio.h" >&5
61447 echo $ECHO_N "checking for pclose declaration in stdio.h... $ECHO_C" >&6; }
61448 if test "${ice_cv_have_pclose_decl+set}" = set; then
61449   echo $ECHO_N "(cached) $ECHO_C" >&6
61450 else
61451
61452 ice_cv_have_pclose_decl=no
61453 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
61454 ice_re_word='(^|[^a-zA-Z0-9_])'
61455 for header in stdio.h; do
61456 # Check for ordinary declaration
61457 cat >conftest.$ac_ext <<_ACEOF
61458 /* confdefs.h.  */
61459 _ACEOF
61460 cat confdefs.h >>conftest.$ac_ext
61461 cat >>conftest.$ac_ext <<_ACEOF
61462 /* end confdefs.h.  */
61463 #include <$header>
61464
61465 _ACEOF
61466 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61467   $EGREP "${ice_re_word}pclose[         ]*\(" >/dev/null 2>&1; then
61468   ice_cv_have_pclose_decl=yes
61469 fi
61470 rm -f conftest*
61471
61472 if test "$ice_cv_have_pclose_decl" = yes; then
61473         break
61474 fi
61475 # Check for "fixed" declaration like "getpid _PARAMS((int))"
61476 cat >conftest.$ac_ext <<_ACEOF
61477 /* confdefs.h.  */
61478 _ACEOF
61479 cat confdefs.h >>conftest.$ac_ext
61480 cat >>conftest.$ac_ext <<_ACEOF
61481 /* end confdefs.h.  */
61482 #include <$header>
61483
61484 _ACEOF
61485 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61486   $EGREP "${ice_re_word}pclose[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
61487   ice_cv_have_pclose_decl=yes
61488 fi
61489 rm -f conftest*
61490
61491 if test "$ice_cv_have_pclose_decl" = yes; then
61492         break
61493 fi
61494 done
61495
61496 fi
61497
61498 { echo "$as_me:$LINENO: result: $ice_cv_have_pclose_decl" >&5
61499 echo "${ECHO_T}$ice_cv_have_pclose_decl" >&6; }
61500 if test "$ice_cv_have_pclose_decl" = yes; then
61501
61502 cat >>confdefs.h <<_ACEOF
61503 #define HAVE_PCLOSE_DECL 1
61504 _ACEOF
61505
61506 fi
61507 fi
61508
61509
61510 ice_have_perror=no
61511
61512 for ac_func in perror
61513 do
61514 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
61515 { echo "$as_me:$LINENO: checking for $ac_func" >&5
61516 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
61517 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
61518   echo $ECHO_N "(cached) $ECHO_C" >&6
61519 else
61520   cat >conftest.$ac_ext <<_ACEOF
61521 /* confdefs.h.  */
61522 _ACEOF
61523 cat confdefs.h >>conftest.$ac_ext
61524 cat >>conftest.$ac_ext <<_ACEOF
61525 /* end confdefs.h.  */
61526 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
61527    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
61528 #define $ac_func innocuous_$ac_func
61529
61530 /* System header to define __stub macros and hopefully few prototypes,
61531     which can conflict with char $ac_func (); below.
61532     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
61533     <limits.h> exists even on freestanding compilers.  */
61534
61535 #ifdef __STDC__
61536 # include <limits.h>
61537 #else
61538 # include <assert.h>
61539 #endif
61540
61541 #undef $ac_func
61542
61543 /* Override any GCC internal prototype to avoid an error.
61544    Use char because int might match the return type of a GCC
61545    builtin and then its argument prototype would still apply.  */
61546 #ifdef __cplusplus
61547 extern "C"
61548 #endif
61549 char $ac_func ();
61550 /* The GNU C library defines this for functions which it implements
61551     to always fail with ENOSYS.  Some functions are actually named
61552     something starting with __ and the normal name is an alias.  */
61553 #if defined __stub_$ac_func || defined __stub___$ac_func
61554 choke me
61555 #endif
61556
61557 int
61558 main ()
61559 {
61560 return $ac_func ();
61561   ;
61562   return 0;
61563 }
61564 _ACEOF
61565 rm -f conftest.$ac_objext conftest$ac_exeext
61566 if { (ac_try="$ac_link"
61567 case "(($ac_try" in
61568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61569   *) ac_try_echo=$ac_try;;
61570 esac
61571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
61572   (eval "$ac_link") 2>conftest.er1
61573   ac_status=$?
61574   grep -v '^ *+' conftest.er1 >conftest.err
61575   rm -f conftest.er1
61576   cat conftest.err >&5
61577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
61578   (exit $ac_status); } && {
61579          test -z "$ac_c_werror_flag" ||
61580          test ! -s conftest.err
61581        } && test -s conftest$ac_exeext &&
61582        $as_test_x conftest$ac_exeext; then
61583   eval "$as_ac_var=yes"
61584 else
61585   echo "$as_me: failed program was:" >&5
61586 sed 's/^/| /' conftest.$ac_ext >&5
61587
61588         eval "$as_ac_var=no"
61589 fi
61590
61591 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
61592       conftest$ac_exeext conftest.$ac_ext
61593 fi
61594 ac_res=`eval echo '${'$as_ac_var'}'`
61595                { echo "$as_me:$LINENO: result: $ac_res" >&5
61596 echo "${ECHO_T}$ac_res" >&6; }
61597 if test `eval echo '${'$as_ac_var'}'` = yes; then
61598   cat >>confdefs.h <<_ACEOF
61599 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
61600 _ACEOF
61601  ice_have_perror=yes
61602 fi
61603 done
61604
61605 if test "${ice_have_perror}" = yes; then
61606 { echo "$as_me:$LINENO: checking for perror declaration in stdio.h" >&5
61607 echo $ECHO_N "checking for perror declaration in stdio.h... $ECHO_C" >&6; }
61608 if test "${ice_cv_have_perror_decl+set}" = set; then
61609   echo $ECHO_N "(cached) $ECHO_C" >&6
61610 else
61611
61612 ice_cv_have_perror_decl=no
61613 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
61614 ice_re_word='(^|[^a-zA-Z0-9_])'
61615 for header in stdio.h; do
61616 # Check for ordinary declaration
61617 cat >conftest.$ac_ext <<_ACEOF
61618 /* confdefs.h.  */
61619 _ACEOF
61620 cat confdefs.h >>conftest.$ac_ext
61621 cat >>conftest.$ac_ext <<_ACEOF
61622 /* end confdefs.h.  */
61623 #include <$header>
61624
61625 _ACEOF
61626 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61627   $EGREP "${ice_re_word}perror[         ]*\(" >/dev/null 2>&1; then
61628   ice_cv_have_perror_decl=yes
61629 fi
61630 rm -f conftest*
61631
61632 if test "$ice_cv_have_perror_decl" = yes; then
61633         break
61634 fi
61635 # Check for "fixed" declaration like "getpid _PARAMS((int))"
61636 cat >conftest.$ac_ext <<_ACEOF
61637 /* confdefs.h.  */
61638 _ACEOF
61639 cat confdefs.h >>conftest.$ac_ext
61640 cat >>conftest.$ac_ext <<_ACEOF
61641 /* end confdefs.h.  */
61642 #include <$header>
61643
61644 _ACEOF
61645 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61646   $EGREP "${ice_re_word}perror[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
61647   ice_cv_have_perror_decl=yes
61648 fi
61649 rm -f conftest*
61650
61651 if test "$ice_cv_have_perror_decl" = yes; then
61652         break
61653 fi
61654 done
61655
61656 fi
61657
61658 { echo "$as_me:$LINENO: result: $ice_cv_have_perror_decl" >&5
61659 echo "${ECHO_T}$ice_cv_have_perror_decl" >&6; }
61660 if test "$ice_cv_have_perror_decl" = yes; then
61661
61662 cat >>confdefs.h <<_ACEOF
61663 #define HAVE_PERROR_DECL 1
61664 _ACEOF
61665
61666 fi
61667 fi
61668
61669
61670 ice_have_printf=no
61671
61672 for ac_func in printf
61673 do
61674 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
61675 { echo "$as_me:$LINENO: checking for $ac_func" >&5
61676 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
61677 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
61678   echo $ECHO_N "(cached) $ECHO_C" >&6
61679 else
61680   cat >conftest.$ac_ext <<_ACEOF
61681 /* confdefs.h.  */
61682 _ACEOF
61683 cat confdefs.h >>conftest.$ac_ext
61684 cat >>conftest.$ac_ext <<_ACEOF
61685 /* end confdefs.h.  */
61686 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
61687    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
61688 #define $ac_func innocuous_$ac_func
61689
61690 /* System header to define __stub macros and hopefully few prototypes,
61691     which can conflict with char $ac_func (); below.
61692     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
61693     <limits.h> exists even on freestanding compilers.  */
61694
61695 #ifdef __STDC__
61696 # include <limits.h>
61697 #else
61698 # include <assert.h>
61699 #endif
61700
61701 #undef $ac_func
61702
61703 /* Override any GCC internal prototype to avoid an error.
61704    Use char because int might match the return type of a GCC
61705    builtin and then its argument prototype would still apply.  */
61706 #ifdef __cplusplus
61707 extern "C"
61708 #endif
61709 char $ac_func ();
61710 /* The GNU C library defines this for functions which it implements
61711     to always fail with ENOSYS.  Some functions are actually named
61712     something starting with __ and the normal name is an alias.  */
61713 #if defined __stub_$ac_func || defined __stub___$ac_func
61714 choke me
61715 #endif
61716
61717 int
61718 main ()
61719 {
61720 return $ac_func ();
61721   ;
61722   return 0;
61723 }
61724 _ACEOF
61725 rm -f conftest.$ac_objext conftest$ac_exeext
61726 if { (ac_try="$ac_link"
61727 case "(($ac_try" in
61728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61729   *) ac_try_echo=$ac_try;;
61730 esac
61731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
61732   (eval "$ac_link") 2>conftest.er1
61733   ac_status=$?
61734   grep -v '^ *+' conftest.er1 >conftest.err
61735   rm -f conftest.er1
61736   cat conftest.err >&5
61737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
61738   (exit $ac_status); } && {
61739          test -z "$ac_c_werror_flag" ||
61740          test ! -s conftest.err
61741        } && test -s conftest$ac_exeext &&
61742        $as_test_x conftest$ac_exeext; then
61743   eval "$as_ac_var=yes"
61744 else
61745   echo "$as_me: failed program was:" >&5
61746 sed 's/^/| /' conftest.$ac_ext >&5
61747
61748         eval "$as_ac_var=no"
61749 fi
61750
61751 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
61752       conftest$ac_exeext conftest.$ac_ext
61753 fi
61754 ac_res=`eval echo '${'$as_ac_var'}'`
61755                { echo "$as_me:$LINENO: result: $ac_res" >&5
61756 echo "${ECHO_T}$ac_res" >&6; }
61757 if test `eval echo '${'$as_ac_var'}'` = yes; then
61758   cat >>confdefs.h <<_ACEOF
61759 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
61760 _ACEOF
61761  ice_have_printf=yes
61762 fi
61763 done
61764
61765 if test "${ice_have_printf}" = yes; then
61766 { echo "$as_me:$LINENO: checking for printf declaration in stdio.h" >&5
61767 echo $ECHO_N "checking for printf declaration in stdio.h... $ECHO_C" >&6; }
61768 if test "${ice_cv_have_printf_decl+set}" = set; then
61769   echo $ECHO_N "(cached) $ECHO_C" >&6
61770 else
61771
61772 ice_cv_have_printf_decl=no
61773 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
61774 ice_re_word='(^|[^a-zA-Z0-9_])'
61775 for header in stdio.h; do
61776 # Check for ordinary declaration
61777 cat >conftest.$ac_ext <<_ACEOF
61778 /* confdefs.h.  */
61779 _ACEOF
61780 cat confdefs.h >>conftest.$ac_ext
61781 cat >>conftest.$ac_ext <<_ACEOF
61782 /* end confdefs.h.  */
61783 #include <$header>
61784
61785 _ACEOF
61786 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61787   $EGREP "${ice_re_word}printf[         ]*\(" >/dev/null 2>&1; then
61788   ice_cv_have_printf_decl=yes
61789 fi
61790 rm -f conftest*
61791
61792 if test "$ice_cv_have_printf_decl" = yes; then
61793         break
61794 fi
61795 # Check for "fixed" declaration like "getpid _PARAMS((int))"
61796 cat >conftest.$ac_ext <<_ACEOF
61797 /* confdefs.h.  */
61798 _ACEOF
61799 cat confdefs.h >>conftest.$ac_ext
61800 cat >>conftest.$ac_ext <<_ACEOF
61801 /* end confdefs.h.  */
61802 #include <$header>
61803
61804 _ACEOF
61805 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61806   $EGREP "${ice_re_word}printf[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
61807   ice_cv_have_printf_decl=yes
61808 fi
61809 rm -f conftest*
61810
61811 if test "$ice_cv_have_printf_decl" = yes; then
61812         break
61813 fi
61814 done
61815
61816 fi
61817
61818 { echo "$as_me:$LINENO: result: $ice_cv_have_printf_decl" >&5
61819 echo "${ECHO_T}$ice_cv_have_printf_decl" >&6; }
61820 if test "$ice_cv_have_printf_decl" = yes; then
61821
61822 cat >>confdefs.h <<_ACEOF
61823 #define HAVE_PRINTF_DECL 1
61824 _ACEOF
61825
61826 fi
61827 fi
61828
61829
61830 for ac_func in putenv
61831 do
61832 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
61833 { echo "$as_me:$LINENO: checking for $ac_func" >&5
61834 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
61835 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
61836   echo $ECHO_N "(cached) $ECHO_C" >&6
61837 else
61838   cat >conftest.$ac_ext <<_ACEOF
61839 /* confdefs.h.  */
61840 _ACEOF
61841 cat confdefs.h >>conftest.$ac_ext
61842 cat >>conftest.$ac_ext <<_ACEOF
61843 /* end confdefs.h.  */
61844 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
61845    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
61846 #define $ac_func innocuous_$ac_func
61847
61848 /* System header to define __stub macros and hopefully few prototypes,
61849     which can conflict with char $ac_func (); below.
61850     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
61851     <limits.h> exists even on freestanding compilers.  */
61852
61853 #ifdef __STDC__
61854 # include <limits.h>
61855 #else
61856 # include <assert.h>
61857 #endif
61858
61859 #undef $ac_func
61860
61861 /* Override any GCC internal prototype to avoid an error.
61862    Use char because int might match the return type of a GCC
61863    builtin and then its argument prototype would still apply.  */
61864 #ifdef __cplusplus
61865 extern "C"
61866 #endif
61867 char $ac_func ();
61868 /* The GNU C library defines this for functions which it implements
61869     to always fail with ENOSYS.  Some functions are actually named
61870     something starting with __ and the normal name is an alias.  */
61871 #if defined __stub_$ac_func || defined __stub___$ac_func
61872 choke me
61873 #endif
61874
61875 int
61876 main ()
61877 {
61878 return $ac_func ();
61879   ;
61880   return 0;
61881 }
61882 _ACEOF
61883 rm -f conftest.$ac_objext conftest$ac_exeext
61884 if { (ac_try="$ac_link"
61885 case "(($ac_try" in
61886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61887   *) ac_try_echo=$ac_try;;
61888 esac
61889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
61890   (eval "$ac_link") 2>conftest.er1
61891   ac_status=$?
61892   grep -v '^ *+' conftest.er1 >conftest.err
61893   rm -f conftest.er1
61894   cat conftest.err >&5
61895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
61896   (exit $ac_status); } && {
61897          test -z "$ac_c_werror_flag" ||
61898          test ! -s conftest.err
61899        } && test -s conftest$ac_exeext &&
61900        $as_test_x conftest$ac_exeext; then
61901   eval "$as_ac_var=yes"
61902 else
61903   echo "$as_me: failed program was:" >&5
61904 sed 's/^/| /' conftest.$ac_ext >&5
61905
61906         eval "$as_ac_var=no"
61907 fi
61908
61909 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
61910       conftest$ac_exeext conftest.$ac_ext
61911 fi
61912 ac_res=`eval echo '${'$as_ac_var'}'`
61913                { echo "$as_me:$LINENO: result: $ac_res" >&5
61914 echo "${ECHO_T}$ac_res" >&6; }
61915 if test `eval echo '${'$as_ac_var'}'` = yes; then
61916   cat >>confdefs.h <<_ACEOF
61917 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
61918 _ACEOF
61919
61920 fi
61921 done
61922
61923
61924 ice_have_puts=no
61925
61926 for ac_func in puts
61927 do
61928 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
61929 { echo "$as_me:$LINENO: checking for $ac_func" >&5
61930 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
61931 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
61932   echo $ECHO_N "(cached) $ECHO_C" >&6
61933 else
61934   cat >conftest.$ac_ext <<_ACEOF
61935 /* confdefs.h.  */
61936 _ACEOF
61937 cat confdefs.h >>conftest.$ac_ext
61938 cat >>conftest.$ac_ext <<_ACEOF
61939 /* end confdefs.h.  */
61940 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
61941    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
61942 #define $ac_func innocuous_$ac_func
61943
61944 /* System header to define __stub macros and hopefully few prototypes,
61945     which can conflict with char $ac_func (); below.
61946     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
61947     <limits.h> exists even on freestanding compilers.  */
61948
61949 #ifdef __STDC__
61950 # include <limits.h>
61951 #else
61952 # include <assert.h>
61953 #endif
61954
61955 #undef $ac_func
61956
61957 /* Override any GCC internal prototype to avoid an error.
61958    Use char because int might match the return type of a GCC
61959    builtin and then its argument prototype would still apply.  */
61960 #ifdef __cplusplus
61961 extern "C"
61962 #endif
61963 char $ac_func ();
61964 /* The GNU C library defines this for functions which it implements
61965     to always fail with ENOSYS.  Some functions are actually named
61966     something starting with __ and the normal name is an alias.  */
61967 #if defined __stub_$ac_func || defined __stub___$ac_func
61968 choke me
61969 #endif
61970
61971 int
61972 main ()
61973 {
61974 return $ac_func ();
61975   ;
61976   return 0;
61977 }
61978 _ACEOF
61979 rm -f conftest.$ac_objext conftest$ac_exeext
61980 if { (ac_try="$ac_link"
61981 case "(($ac_try" in
61982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61983   *) ac_try_echo=$ac_try;;
61984 esac
61985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
61986   (eval "$ac_link") 2>conftest.er1
61987   ac_status=$?
61988   grep -v '^ *+' conftest.er1 >conftest.err
61989   rm -f conftest.er1
61990   cat conftest.err >&5
61991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
61992   (exit $ac_status); } && {
61993          test -z "$ac_c_werror_flag" ||
61994          test ! -s conftest.err
61995        } && test -s conftest$ac_exeext &&
61996        $as_test_x conftest$ac_exeext; then
61997   eval "$as_ac_var=yes"
61998 else
61999   echo "$as_me: failed program was:" >&5
62000 sed 's/^/| /' conftest.$ac_ext >&5
62001
62002         eval "$as_ac_var=no"
62003 fi
62004
62005 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
62006       conftest$ac_exeext conftest.$ac_ext
62007 fi
62008 ac_res=`eval echo '${'$as_ac_var'}'`
62009                { echo "$as_me:$LINENO: result: $ac_res" >&5
62010 echo "${ECHO_T}$ac_res" >&6; }
62011 if test `eval echo '${'$as_ac_var'}'` = yes; then
62012   cat >>confdefs.h <<_ACEOF
62013 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
62014 _ACEOF
62015  ice_have_puts=yes
62016 fi
62017 done
62018
62019 if test "${ice_have_puts}" = yes; then
62020 { echo "$as_me:$LINENO: checking for puts declaration in stdio.h" >&5
62021 echo $ECHO_N "checking for puts declaration in stdio.h... $ECHO_C" >&6; }
62022 if test "${ice_cv_have_puts_decl+set}" = set; then
62023   echo $ECHO_N "(cached) $ECHO_C" >&6
62024 else
62025
62026 ice_cv_have_puts_decl=no
62027 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
62028 ice_re_word='(^|[^a-zA-Z0-9_])'
62029 for header in stdio.h; do
62030 # Check for ordinary declaration
62031 cat >conftest.$ac_ext <<_ACEOF
62032 /* confdefs.h.  */
62033 _ACEOF
62034 cat confdefs.h >>conftest.$ac_ext
62035 cat >>conftest.$ac_ext <<_ACEOF
62036 /* end confdefs.h.  */
62037 #include <$header>
62038
62039 _ACEOF
62040 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
62041   $EGREP "${ice_re_word}puts[   ]*\(" >/dev/null 2>&1; then
62042   ice_cv_have_puts_decl=yes
62043 fi
62044 rm -f conftest*
62045
62046 if test "$ice_cv_have_puts_decl" = yes; then
62047         break
62048 fi
62049 # Check for "fixed" declaration like "getpid _PARAMS((int))"
62050 cat >conftest.$ac_ext <<_ACEOF
62051 /* confdefs.h.  */
62052 _ACEOF
62053 cat confdefs.h >>conftest.$ac_ext
62054 cat >>conftest.$ac_ext <<_ACEOF
62055 /* end confdefs.h.  */
62056 #include <$header>
62057
62058 _ACEOF
62059 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
62060   $EGREP "${ice_re_word}puts[   ]*$ice_re_params\(\(" >/dev/null 2>&1; then
62061   ice_cv_have_puts_decl=yes
62062 fi
62063 rm -f conftest*
62064
62065 if test "$ice_cv_have_puts_decl" = yes; then
62066         break
62067 fi
62068 done
62069
62070 fi
62071
62072 { echo "$as_me:$LINENO: result: $ice_cv_have_puts_decl" >&5
62073 echo "${ECHO_T}$ice_cv_have_puts_decl" >&6; }
62074 if test "$ice_cv_have_puts_decl" = yes; then
62075
62076 cat >>confdefs.h <<_ACEOF
62077 #define HAVE_PUTS_DECL 1
62078 _ACEOF
62079
62080 fi
62081 fi
62082
62083
62084 ice_have_realloc=no
62085
62086 for ac_func in realloc
62087 do
62088 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
62089 { echo "$as_me:$LINENO: checking for $ac_func" >&5
62090 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
62091 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
62092   echo $ECHO_N "(cached) $ECHO_C" >&6
62093 else
62094   cat >conftest.$ac_ext <<_ACEOF
62095 /* confdefs.h.  */
62096 _ACEOF
62097 cat confdefs.h >>conftest.$ac_ext
62098 cat >>conftest.$ac_ext <<_ACEOF
62099 /* end confdefs.h.  */
62100 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
62101    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
62102 #define $ac_func innocuous_$ac_func
62103
62104 /* System header to define __stub macros and hopefully few prototypes,
62105     which can conflict with char $ac_func (); below.
62106     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
62107     <limits.h> exists even on freestanding compilers.  */
62108
62109 #ifdef __STDC__
62110 # include <limits.h>
62111 #else
62112 # include <assert.h>
62113 #endif
62114
62115 #undef $ac_func
62116
62117 /* Override any GCC internal prototype to avoid an error.
62118    Use char because int might match the return type of a GCC
62119    builtin and then its argument prototype would still apply.  */
62120 #ifdef __cplusplus
62121 extern "C"
62122 #endif
62123 char $ac_func ();
62124 /* The GNU C library defines this for functions which it implements
62125     to always fail with ENOSYS.  Some functions are actually named
62126     something starting with __ and the normal name is an alias.  */
62127 #if defined __stub_$ac_func || defined __stub___$ac_func
62128 choke me
62129 #endif
62130
62131 int
62132 main ()
62133 {
62134 return $ac_func ();
62135   ;
62136   return 0;
62137 }
62138 _ACEOF
62139 rm -f conftest.$ac_objext conftest$ac_exeext
62140 if { (ac_try="$ac_link"
62141 case "(($ac_try" in
62142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62143   *) ac_try_echo=$ac_try;;
62144 esac
62145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
62146   (eval "$ac_link") 2>conftest.er1
62147   ac_status=$?
62148   grep -v '^ *+' conftest.er1 >conftest.err
62149   rm -f conftest.er1
62150   cat conftest.err >&5
62151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
62152   (exit $ac_status); } && {
62153          test -z "$ac_c_werror_flag" ||
62154          test ! -s conftest.err
62155        } && test -s conftest$ac_exeext &&
62156        $as_test_x conftest$ac_exeext; then
62157   eval "$as_ac_var=yes"
62158 else
62159   echo "$as_me: failed program was:" >&5
62160 sed 's/^/| /' conftest.$ac_ext >&5
62161
62162         eval "$as_ac_var=no"
62163 fi
62164
62165 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
62166       conftest$ac_exeext conftest.$ac_ext
62167 fi
62168 ac_res=`eval echo '${'$as_ac_var'}'`
62169                { echo "$as_me:$LINENO: result: $ac_res" >&5
62170 echo "${ECHO_T}$ac_res" >&6; }
62171 if test `eval echo '${'$as_ac_var'}'` = yes; then
62172   cat >>confdefs.h <<_ACEOF
62173 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
62174 _ACEOF
62175  ice_have_realloc=yes
62176 fi
62177 done
62178
62179 if test "${ice_have_realloc}" = yes; then
62180 { echo "$as_me:$LINENO: checking for realloc declaration in stdlib.h" >&5
62181 echo $ECHO_N "checking for realloc declaration in stdlib.h... $ECHO_C" >&6; }
62182 if test "${ice_cv_have_realloc_decl+set}" = set; then
62183   echo $ECHO_N "(cached) $ECHO_C" >&6
62184 else
62185
62186 ice_cv_have_realloc_decl=no
62187 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
62188 ice_re_word='(^|[^a-zA-Z0-9_])'
62189 for header in stdlib.h; do
62190 # Check for ordinary declaration
62191 cat >conftest.$ac_ext <<_ACEOF
62192 /* confdefs.h.  */
62193 _ACEOF
62194 cat confdefs.h >>conftest.$ac_ext
62195 cat >>conftest.$ac_ext <<_ACEOF
62196 /* end confdefs.h.  */
62197 #include <$header>
62198
62199 _ACEOF
62200 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
62201   $EGREP "${ice_re_word}realloc[        ]*\(" >/dev/null 2>&1; then
62202   ice_cv_have_realloc_decl=yes
62203 fi
62204 rm -f conftest*
62205
62206 if test "$ice_cv_have_realloc_decl" = yes; then
62207         break
62208 fi
62209 # Check for "fixed" declaration like "getpid _PARAMS((int))"
62210 cat >conftest.$ac_ext <<_ACEOF
62211 /* confdefs.h.  */
62212 _ACEOF
62213 cat confdefs.h >>conftest.$ac_ext
62214 cat >>conftest.$ac_ext <<_ACEOF
62215 /* end confdefs.h.  */
62216 #include <$header>
62217
62218 _ACEOF
62219 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
62220   $EGREP "${ice_re_word}realloc[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
62221   ice_cv_have_realloc_decl=yes
62222 fi
62223 rm -f conftest*
62224
62225 if test "$ice_cv_have_realloc_decl" = yes; then
62226         break
62227 fi
62228 done
62229
62230 fi
62231
62232 { echo "$as_me:$LINENO: result: $ice_cv_have_realloc_decl" >&5
62233 echo "${ECHO_T}$ice_cv_have_realloc_decl" >&6; }
62234 if test "$ice_cv_have_realloc_decl" = yes; then
62235
62236 cat >>confdefs.h <<_ACEOF
62237 #define HAVE_REALLOC_DECL 1
62238 _ACEOF
62239
62240 fi
62241 fi
62242
62243
62244 ice_have_recvfrom=no
62245
62246 for ac_func in recvfrom
62247 do
62248 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
62249 { echo "$as_me:$LINENO: checking for $ac_func" >&5
62250 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
62251 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
62252   echo $ECHO_N "(cached) $ECHO_C" >&6
62253 else
62254   cat >conftest.$ac_ext <<_ACEOF
62255 /* confdefs.h.  */
62256 _ACEOF
62257 cat confdefs.h >>conftest.$ac_ext
62258 cat >>conftest.$ac_ext <<_ACEOF
62259 /* end confdefs.h.  */
62260 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
62261    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
62262 #define $ac_func innocuous_$ac_func
62263
62264 /* System header to define __stub macros and hopefully few prototypes,
62265     which can conflict with char $ac_func (); below.
62266     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
62267     <limits.h> exists even on freestanding compilers.  */
62268
62269 #ifdef __STDC__
62270 # include <limits.h>
62271 #else
62272 # include <assert.h>
62273 #endif
62274
62275 #undef $ac_func
62276
62277 /* Override any GCC internal prototype to avoid an error.
62278    Use char because int might match the return type of a GCC
62279    builtin and then its argument prototype would still apply.  */
62280 #ifdef __cplusplus
62281 extern "C"
62282 #endif
62283 char $ac_func ();
62284 /* The GNU C library defines this for functions which it implements
62285     to always fail with ENOSYS.  Some functions are actually named
62286     something starting with __ and the normal name is an alias.  */
62287 #if defined __stub_$ac_func || defined __stub___$ac_func
62288 choke me
62289 #endif
62290
62291 int
62292 main ()
62293 {
62294 return $ac_func ();
62295   ;
62296   return 0;
62297 }
62298 _ACEOF
62299 rm -f conftest.$ac_objext conftest$ac_exeext
62300 if { (ac_try="$ac_link"
62301 case "(($ac_try" in
62302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62303   *) ac_try_echo=$ac_try;;
62304 esac
62305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
62306   (eval "$ac_link") 2>conftest.er1
62307   ac_status=$?
62308   grep -v '^ *+' conftest.er1 >conftest.err
62309   rm -f conftest.er1
62310   cat conftest.err >&5
62311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
62312   (exit $ac_status); } && {
62313          test -z "$ac_c_werror_flag" ||
62314          test ! -s conftest.err
62315        } && test -s conftest$ac_exeext &&
62316        $as_test_x conftest$ac_exeext; then
62317   eval "$as_ac_var=yes"
62318 else
62319   echo "$as_me: failed program was:" >&5
62320 sed 's/^/| /' conftest.$ac_ext >&5
62321
62322         eval "$as_ac_var=no"
62323 fi
62324
62325 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
62326       conftest$ac_exeext conftest.$ac_ext
62327 fi
62328 ac_res=`eval echo '${'$as_ac_var'}'`
62329                { echo "$as_me:$LINENO: result: $ac_res" >&5
62330 echo "${ECHO_T}$ac_res" >&6; }
62331 if test `eval echo '${'$as_ac_var'}'` = yes; then
62332   cat >>confdefs.h <<_ACEOF
62333 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
62334 _ACEOF
62335  ice_have_recvfrom=yes
62336 fi
62337 done
62338
62339 if test "${ice_have_recvfrom}" = yes; then
62340 { echo "$as_me:$LINENO: checking for recvfrom declaration in sys/types.h sys/socket.h" >&5
62341 echo $ECHO_N "checking for recvfrom declaration in sys/types.h sys/socket.h... $ECHO_C" >&6; }
62342 if test "${ice_cv_have_recvfrom_decl+set}" = set; then
62343   echo $ECHO_N "(cached) $ECHO_C" >&6
62344 else
62345
62346 ice_cv_have_recvfrom_decl=no
62347 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
62348 ice_re_word='(^|[^a-zA-Z0-9_])'
62349 for header in sys/types.h sys/socket.h; do
62350 # Check for ordinary declaration
62351 cat >conftest.$ac_ext <<_ACEOF
62352 /* confdefs.h.  */
62353 _ACEOF
62354 cat confdefs.h >>conftest.$ac_ext
62355 cat >>conftest.$ac_ext <<_ACEOF
62356 /* end confdefs.h.  */
62357 #include <$header>
62358
62359 _ACEOF
62360 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
62361   $EGREP "${ice_re_word}recvfrom[       ]*\(" >/dev/null 2>&1; then
62362   ice_cv_have_recvfrom_decl=yes
62363 fi
62364 rm -f conftest*
62365
62366 if test "$ice_cv_have_recvfrom_decl" = yes; then
62367         break
62368 fi
62369 # Check for "fixed" declaration like "getpid _PARAMS((int))"
62370 cat >conftest.$ac_ext <<_ACEOF
62371 /* confdefs.h.  */
62372 _ACEOF
62373 cat confdefs.h >>conftest.$ac_ext
62374 cat >>conftest.$ac_ext <<_ACEOF
62375 /* end confdefs.h.  */
62376 #include <$header>
62377
62378 _ACEOF
62379 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
62380   $EGREP "${ice_re_word}recvfrom[       ]*$ice_re_params\(\(" >/dev/null 2>&1; then
62381   ice_cv_have_recvfrom_decl=yes
62382 fi
62383 rm -f conftest*
62384
62385 if test "$ice_cv_have_recvfrom_decl" = yes; then
62386         break
62387 fi
62388 done
62389
62390 fi
62391
62392 { echo "$as_me:$LINENO: result: $ice_cv_have_recvfrom_decl" >&5
62393 echo "${ECHO_T}$ice_cv_have_recvfrom_decl" >&6; }
62394 if test "$ice_cv_have_recvfrom_decl" = yes; then
62395
62396 cat >>confdefs.h <<_ACEOF
62397 #define HAVE_RECVFROM_DECL 1
62398 _ACEOF
62399
62400 fi
62401 fi
62402
62403
62404 ice_have_remove=no
62405
62406 for ac_func in remove
62407 do
62408 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
62409 { echo "$as_me:$LINENO: checking for $ac_func" >&5
62410 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
62411 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
62412   echo $ECHO_N "(cached) $ECHO_C" >&6
62413 else
62414   cat >conftest.$ac_ext <<_ACEOF
62415 /* confdefs.h.  */
62416 _ACEOF
62417 cat confdefs.h >>conftest.$ac_ext
62418 cat >>conftest.$ac_ext <<_ACEOF
62419 /* end confdefs.h.  */
62420 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
62421    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
62422 #define $ac_func innocuous_$ac_func
62423
62424 /* System header to define __stub macros and hopefully few prototypes,
62425     which can conflict with char $ac_func (); below.
62426     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
62427     <limits.h> exists even on freestanding compilers.  */
62428
62429 #ifdef __STDC__
62430 # include <limits.h>
62431 #else
62432 # include <assert.h>
62433 #endif
62434
62435 #undef $ac_func
62436
62437 /* Override any GCC internal prototype to avoid an error.
62438    Use char because int might match the return type of a GCC
62439    builtin and then its argument prototype would still apply.  */
62440 #ifdef __cplusplus
62441 extern "C"
62442 #endif
62443 char $ac_func ();
62444 /* The GNU C library defines this for functions which it implements
62445     to always fail with ENOSYS.  Some functions are actually named
62446     something starting with __ and the normal name is an alias.  */
62447 #if defined __stub_$ac_func || defined __stub___$ac_func
62448 choke me
62449 #endif
62450
62451 int
62452 main ()
62453 {
62454 return $ac_func ();
62455   ;
62456   return 0;
62457 }
62458 _ACEOF
62459 rm -f conftest.$ac_objext conftest$ac_exeext
62460 if { (ac_try="$ac_link"
62461 case "(($ac_try" in
62462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62463   *) ac_try_echo=$ac_try;;
62464 esac
62465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
62466   (eval "$ac_link") 2>conftest.er1
62467   ac_status=$?
62468   grep -v '^ *+' conftest.er1 >conftest.err
62469   rm -f conftest.er1
62470   cat conftest.err >&5
62471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
62472   (exit $ac_status); } && {
62473          test -z "$ac_c_werror_flag" ||
62474          test ! -s conftest.err
62475        } && test -s conftest$ac_exeext &&
62476        $as_test_x conftest$ac_exeext; then
62477   eval "$as_ac_var=yes"
62478 else
62479   echo "$as_me: failed program was:" >&5
62480 sed 's/^/| /' conftest.$ac_ext >&5
62481
62482         eval "$as_ac_var=no"
62483 fi
62484
62485 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
62486       conftest$ac_exeext conftest.$ac_ext
62487 fi
62488 ac_res=`eval echo '${'$as_ac_var'}'`
62489                { echo "$as_me:$LINENO: result: $ac_res" >&5
62490 echo "${ECHO_T}$ac_res" >&6; }
62491 if test `eval echo '${'$as_ac_var'}'` = yes; then
62492   cat >>confdefs.h <<_ACEOF
62493 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
62494 _ACEOF
62495  ice_have_remove=yes
62496 fi
62497 done
62498
62499 if test "${ice_have_remove}" = yes; then
62500 { echo "$as_me:$LINENO: checking for remove declaration in stdio.h" >&5
62501 echo $ECHO_N "checking for remove declaration in stdio.h... $ECHO_C" >&6; }
62502 if test "${ice_cv_have_remove_decl+set}" = set; then
62503   echo $ECHO_N "(cached) $ECHO_C" >&6
62504 else
62505
62506 ice_cv_have_remove_decl=no
62507 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
62508 ice_re_word='(^|[^a-zA-Z0-9_])'
62509 for header in stdio.h; do
62510 # Check for ordinary declaration
62511 cat >conftest.$ac_ext <<_ACEOF
62512 /* confdefs.h.  */
62513 _ACEOF
62514 cat confdefs.h >>conftest.$ac_ext
62515 cat >>conftest.$ac_ext <<_ACEOF
62516 /* end confdefs.h.  */
62517 #include <$header>
62518
62519 _ACEOF
62520 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
62521   $EGREP "${ice_re_word}remove[         ]*\(" >/dev/null 2>&1; then
62522   ice_cv_have_remove_decl=yes
62523 fi
62524 rm -f conftest*
62525
62526 if test "$ice_cv_have_remove_decl" = yes; then
62527         break
62528 fi
62529 # Check for "fixed" declaration like "getpid _PARAMS((int))"
62530 cat >conftest.$ac_ext <<_ACEOF
62531 /* confdefs.h.  */
62532 _ACEOF
62533 cat confdefs.h >>conftest.$ac_ext
62534 cat >>conftest.$ac_ext <<_ACEOF
62535 /* end confdefs.h.  */
62536 #include <$header>
62537
62538 _ACEOF
62539 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
62540   $EGREP "${ice_re_word}remove[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
62541   ice_cv_have_remove_decl=yes
62542 fi
62543 rm -f conftest*
62544
62545 if test "$ice_cv_have_remove_decl" = yes; then
62546         break
62547 fi
62548 done
62549
62550 fi
62551
62552 { echo "$as_me:$LINENO: result: $ice_cv_have_remove_decl" >&5
62553 echo "${ECHO_T}$ice_cv_have_remove_decl" >&6; }
62554 if test "$ice_cv_have_remove_decl" = yes; then
62555
62556 cat >>confdefs.h <<_ACEOF
62557 #define HAVE_REMOVE_DECL 1
62558 _ACEOF
62559
62560 fi
62561 fi
62562
62563
62564 ice_have_rename=no
62565
62566 for ac_func in rename
62567 do
62568 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
62569 { echo "$as_me:$LINENO: checking for $ac_func" >&5
62570 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
62571 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
62572   echo $ECHO_N "(cached) $ECHO_C" >&6
62573 else
62574   cat >conftest.$ac_ext <<_ACEOF
62575 /* confdefs.h.  */
62576 _ACEOF
62577 cat confdefs.h >>conftest.$ac_ext
62578 cat >>conftest.$ac_ext <<_ACEOF
62579 /* end confdefs.h.  */
62580 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
62581    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
62582 #define $ac_func innocuous_$ac_func
62583
62584 /* System header to define __stub macros and hopefully few prototypes,
62585     which can conflict with char $ac_func (); below.
62586     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
62587     <limits.h> exists even on freestanding compilers.  */
62588
62589 #ifdef __STDC__
62590 # include <limits.h>
62591 #else
62592 # include <assert.h>
62593 #endif
62594
62595 #undef $ac_func
62596
62597 /* Override any GCC internal prototype to avoid an error.
62598    Use char because int might match the return type of a GCC
62599    builtin and then its argument prototype would still apply.  */
62600 #ifdef __cplusplus
62601 extern "C"
62602 #endif
62603 char $ac_func ();
62604 /* The GNU C library defines this for functions which it implements
62605     to always fail with ENOSYS.  Some functions are actually named
62606     something starting with __ and the normal name is an alias.  */
62607 #if defined __stub_$ac_func || defined __stub___$ac_func
62608 choke me
62609 #endif
62610
62611 int
62612 main ()
62613 {
62614 return $ac_func ();
62615   ;
62616   return 0;
62617 }
62618 _ACEOF
62619 rm -f conftest.$ac_objext conftest$ac_exeext
62620 if { (ac_try="$ac_link"
62621 case "(($ac_try" in
62622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62623   *) ac_try_echo=$ac_try;;
62624 esac
62625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
62626   (eval "$ac_link") 2>conftest.er1
62627   ac_status=$?
62628   grep -v '^ *+' conftest.er1 >conftest.err
62629   rm -f conftest.er1
62630   cat conftest.err >&5
62631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
62632   (exit $ac_status); } && {
62633          test -z "$ac_c_werror_flag" ||
62634          test ! -s conftest.err
62635        } && test -s conftest$ac_exeext &&
62636        $as_test_x conftest$ac_exeext; then
62637   eval "$as_ac_var=yes"
62638 else
62639   echo "$as_me: failed program was:" >&5
62640 sed 's/^/| /' conftest.$ac_ext >&5
62641
62642         eval "$as_ac_var=no"
62643 fi
62644
62645 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
62646       conftest$ac_exeext conftest.$ac_ext
62647 fi
62648 ac_res=`eval echo '${'$as_ac_var'}'`
62649                { echo "$as_me:$LINENO: result: $ac_res" >&5
62650 echo "${ECHO_T}$ac_res" >&6; }
62651 if test `eval echo '${'$as_ac_var'}'` = yes; then
62652   cat >>confdefs.h <<_ACEOF
62653 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
62654 _ACEOF
62655  ice_have_rename=yes
62656 fi
62657 done
62658
62659 if test "${ice_have_rename}" = yes; then
62660 { echo "$as_me:$LINENO: checking for rename declaration in stdio.h" >&5
62661 echo $ECHO_N "checking for rename declaration in stdio.h... $ECHO_C" >&6; }
62662 if test "${ice_cv_have_rename_decl+set}" = set; then
62663   echo $ECHO_N "(cached) $ECHO_C" >&6
62664 else
62665
62666 ice_cv_have_rename_decl=no
62667 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
62668 ice_re_word='(^|[^a-zA-Z0-9_])'
62669 for header in stdio.h; do
62670 # Check for ordinary declaration
62671 cat >conftest.$ac_ext <<_ACEOF
62672 /* confdefs.h.  */
62673 _ACEOF
62674 cat confdefs.h >>conftest.$ac_ext
62675 cat >>conftest.$ac_ext <<_ACEOF
62676 /* end confdefs.h.  */
62677 #include <$header>
62678
62679 _ACEOF
62680 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
62681   $EGREP "${ice_re_word}rename[         ]*\(" >/dev/null 2>&1; then
62682   ice_cv_have_rename_decl=yes
62683 fi
62684 rm -f conftest*
62685
62686 if test "$ice_cv_have_rename_decl" = yes; then
62687         break
62688 fi
62689 # Check for "fixed" declaration like "getpid _PARAMS((int))"
62690 cat >conftest.$ac_ext <<_ACEOF
62691 /* confdefs.h.  */
62692 _ACEOF
62693 cat confdefs.h >>conftest.$ac_ext
62694 cat >>conftest.$ac_ext <<_ACEOF
62695 /* end confdefs.h.  */
62696 #include <$header>
62697
62698 _ACEOF
62699 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
62700   $EGREP "${ice_re_word}rename[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
62701   ice_cv_have_rename_decl=yes
62702 fi
62703 rm -f conftest*
62704
62705 if test "$ice_cv_have_rename_decl" = yes; then
62706         break
62707 fi
62708 done
62709
62710 fi
62711
62712 { echo "$as_me:$LINENO: result: $ice_cv_have_rename_decl" >&5
62713 echo "${ECHO_T}$ice_cv_have_rename_decl" >&6; }
62714 if test "$ice_cv_have_rename_decl" = yes; then
62715
62716 cat >>confdefs.h <<_ACEOF
62717 #define HAVE_RENAME_DECL 1
62718 _ACEOF
62719
62720 fi
62721 fi
62722
62723
62724 ice_have_rewind=no
62725
62726 for ac_func in rewind
62727 do
62728 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
62729 { echo "$as_me:$LINENO: checking for $ac_func" >&5
62730 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
62731 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
62732   echo $ECHO_N "(cached) $ECHO_C" >&6
62733 else
62734   cat >conftest.$ac_ext <<_ACEOF
62735 /* confdefs.h.  */
62736 _ACEOF
62737 cat confdefs.h >>conftest.$ac_ext
62738 cat >>conftest.$ac_ext <<_ACEOF
62739 /* end confdefs.h.  */
62740 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
62741    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
62742 #define $ac_func innocuous_$ac_func
62743
62744 /* System header to define __stub macros and hopefully few prototypes,
62745     which can conflict with char $ac_func (); below.
62746     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
62747     <limits.h> exists even on freestanding compilers.  */
62748
62749 #ifdef __STDC__
62750 # include <limits.h>
62751 #else
62752 # include <assert.h>
62753 #endif
62754
62755 #undef $ac_func
62756
62757 /* Override any GCC internal prototype to avoid an error.
62758    Use char because int might match the return type of a GCC
62759    builtin and then its argument prototype would still apply.  */
62760 #ifdef __cplusplus
62761 extern "C"
62762 #endif
62763 char $ac_func ();
62764 /* The GNU C library defines this for functions which it implements
62765     to always fail with ENOSYS.  Some functions are actually named
62766     something starting with __ and the normal name is an alias.  */
62767 #if defined __stub_$ac_func || defined __stub___$ac_func
62768 choke me
62769 #endif
62770
62771 int
62772 main ()
62773 {
62774 return $ac_func ();
62775   ;
62776   return 0;
62777 }
62778 _ACEOF
62779 rm -f conftest.$ac_objext conftest$ac_exeext
62780 if { (ac_try="$ac_link"
62781 case "(($ac_try" in
62782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62783   *) ac_try_echo=$ac_try;;
62784 esac
62785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
62786   (eval "$ac_link") 2>conftest.er1
62787   ac_status=$?
62788   grep -v '^ *+' conftest.er1 >conftest.err
62789   rm -f conftest.er1
62790   cat conftest.err >&5
62791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
62792   (exit $ac_status); } && {
62793          test -z "$ac_c_werror_flag" ||
62794          test ! -s conftest.err
62795        } && test -s conftest$ac_exeext &&
62796        $as_test_x conftest$ac_exeext; then
62797   eval "$as_ac_var=yes"
62798 else
62799   echo "$as_me: failed program was:" >&5
62800 sed 's/^/| /' conftest.$ac_ext >&5
62801
62802         eval "$as_ac_var=no"
62803 fi
62804
62805 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
62806       conftest$ac_exeext conftest.$ac_ext
62807 fi
62808 ac_res=`eval echo '${'$as_ac_var'}'`
62809                { echo "$as_me:$LINENO: result: $ac_res" >&5
62810 echo "${ECHO_T}$ac_res" >&6; }
62811 if test `eval echo '${'$as_ac_var'}'` = yes; then
62812   cat >>confdefs.h <<_ACEOF
62813 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
62814 _ACEOF
62815  ice_have_rewind=yes
62816 fi
62817 done
62818
62819 if test "${ice_have_rewind}" = yes; then
62820 { echo "$as_me:$LINENO: checking for rewind declaration in stdio.h" >&5
62821 echo $ECHO_N "checking for rewind declaration in stdio.h... $ECHO_C" >&6; }
62822 if test "${ice_cv_have_rewind_decl+set}" = set; then
62823   echo $ECHO_N "(cached) $ECHO_C" >&6
62824 else
62825
62826 ice_cv_have_rewind_decl=no
62827 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
62828 ice_re_word='(^|[^a-zA-Z0-9_])'
62829 for header in stdio.h; do
62830 # Check for ordinary declaration
62831 cat >conftest.$ac_ext <<_ACEOF
62832 /* confdefs.h.  */
62833 _ACEOF
62834 cat confdefs.h >>conftest.$ac_ext
62835 cat >>conftest.$ac_ext <<_ACEOF
62836 /* end confdefs.h.  */
62837 #include <$header>
62838
62839 _ACEOF
62840 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
62841   $EGREP "${ice_re_word}rewind[         ]*\(" >/dev/null 2>&1; then
62842   ice_cv_have_rewind_decl=yes
62843 fi
62844 rm -f conftest*
62845
62846 if test "$ice_cv_have_rewind_decl" = yes; then
62847         break
62848 fi
62849 # Check for "fixed" declaration like "getpid _PARAMS((int))"
62850 cat >conftest.$ac_ext <<_ACEOF
62851 /* confdefs.h.  */
62852 _ACEOF
62853 cat confdefs.h >>conftest.$ac_ext
62854 cat >>conftest.$ac_ext <<_ACEOF
62855 /* end confdefs.h.  */
62856 #include <$header>
62857
62858 _ACEOF
62859 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
62860   $EGREP "${ice_re_word}rewind[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
62861   ice_cv_have_rewind_decl=yes
62862 fi
62863 rm -f conftest*
62864
62865 if test "$ice_cv_have_rewind_decl" = yes; then
62866         break
62867 fi
62868 done
62869
62870 fi
62871
62872 { echo "$as_me:$LINENO: result: $ice_cv_have_rewind_decl" >&5
62873 echo "${ECHO_T}$ice_cv_have_rewind_decl" >&6; }
62874 if test "$ice_cv_have_rewind_decl" = yes; then
62875
62876 cat >>confdefs.h <<_ACEOF
62877 #define HAVE_REWIND_DECL 1
62878 _ACEOF
62879
62880 fi
62881 fi
62882
62883
62884 ice_have_ruserok=no
62885
62886 for ac_func in ruserok
62887 do
62888 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
62889 { echo "$as_me:$LINENO: checking for $ac_func" >&5
62890 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
62891 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
62892   echo $ECHO_N "(cached) $ECHO_C" >&6
62893 else
62894   cat >conftest.$ac_ext <<_ACEOF
62895 /* confdefs.h.  */
62896 _ACEOF
62897 cat confdefs.h >>conftest.$ac_ext
62898 cat >>conftest.$ac_ext <<_ACEOF
62899 /* end confdefs.h.  */
62900 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
62901    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
62902 #define $ac_func innocuous_$ac_func
62903
62904 /* System header to define __stub macros and hopefully few prototypes,
62905     which can conflict with char $ac_func (); below.
62906     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
62907     <limits.h> exists even on freestanding compilers.  */
62908
62909 #ifdef __STDC__
62910 # include <limits.h>
62911 #else
62912 # include <assert.h>
62913 #endif
62914
62915 #undef $ac_func
62916
62917 /* Override any GCC internal prototype to avoid an error.
62918    Use char because int might match the return type of a GCC
62919    builtin and then its argument prototype would still apply.  */
62920 #ifdef __cplusplus
62921 extern "C"
62922 #endif
62923 char $ac_func ();
62924 /* The GNU C library defines this for functions which it implements
62925     to always fail with ENOSYS.  Some functions are actually named
62926     something starting with __ and the normal name is an alias.  */
62927 #if defined __stub_$ac_func || defined __stub___$ac_func
62928 choke me
62929 #endif
62930
62931 int
62932 main ()
62933 {
62934 return $ac_func ();
62935   ;
62936   return 0;
62937 }
62938 _ACEOF
62939 rm -f conftest.$ac_objext conftest$ac_exeext
62940 if { (ac_try="$ac_link"
62941 case "(($ac_try" in
62942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62943   *) ac_try_echo=$ac_try;;
62944 esac
62945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
62946   (eval "$ac_link") 2>conftest.er1
62947   ac_status=$?
62948   grep -v '^ *+' conftest.er1 >conftest.err
62949   rm -f conftest.er1
62950   cat conftest.err >&5
62951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
62952   (exit $ac_status); } && {
62953          test -z "$ac_c_werror_flag" ||
62954          test ! -s conftest.err
62955        } && test -s conftest$ac_exeext &&
62956        $as_test_x conftest$ac_exeext; then
62957   eval "$as_ac_var=yes"
62958 else
62959   echo "$as_me: failed program was:" >&5
62960 sed 's/^/| /' conftest.$ac_ext >&5
62961
62962         eval "$as_ac_var=no"
62963 fi
62964
62965 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
62966       conftest$ac_exeext conftest.$ac_ext
62967 fi
62968 ac_res=`eval echo '${'$as_ac_var'}'`
62969                { echo "$as_me:$LINENO: result: $ac_res" >&5
62970 echo "${ECHO_T}$ac_res" >&6; }
62971 if test `eval echo '${'$as_ac_var'}'` = yes; then
62972   cat >>confdefs.h <<_ACEOF
62973 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
62974 _ACEOF
62975  ice_have_ruserok=yes
62976 fi
62977 done
62978
62979 if test "${ice_have_ruserok}" = yes; then
62980 { echo "$as_me:$LINENO: checking for ruserok declaration in netdb.h sys/socket.h libc.h unistd.h" >&5
62981 echo $ECHO_N "checking for ruserok declaration in netdb.h sys/socket.h libc.h unistd.h... $ECHO_C" >&6; }
62982 if test "${ice_cv_have_ruserok_decl+set}" = set; then
62983   echo $ECHO_N "(cached) $ECHO_C" >&6
62984 else
62985
62986 ice_cv_have_ruserok_decl=no
62987 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
62988 ice_re_word='(^|[^a-zA-Z0-9_])'
62989 for header in netdb.h sys/socket.h libc.h unistd.h; do
62990 # Check for ordinary declaration
62991 cat >conftest.$ac_ext <<_ACEOF
62992 /* confdefs.h.  */
62993 _ACEOF
62994 cat confdefs.h >>conftest.$ac_ext
62995 cat >>conftest.$ac_ext <<_ACEOF
62996 /* end confdefs.h.  */
62997 #include <$header>
62998
62999 _ACEOF
63000 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
63001   $EGREP "${ice_re_word}ruserok[        ]*\(" >/dev/null 2>&1; then
63002   ice_cv_have_ruserok_decl=yes
63003 fi
63004 rm -f conftest*
63005
63006 if test "$ice_cv_have_ruserok_decl" = yes; then
63007         break
63008 fi
63009 # Check for "fixed" declaration like "getpid _PARAMS((int))"
63010 cat >conftest.$ac_ext <<_ACEOF
63011 /* confdefs.h.  */
63012 _ACEOF
63013 cat confdefs.h >>conftest.$ac_ext
63014 cat >>conftest.$ac_ext <<_ACEOF
63015 /* end confdefs.h.  */
63016 #include <$header>
63017
63018 _ACEOF
63019 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
63020   $EGREP "${ice_re_word}ruserok[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
63021   ice_cv_have_ruserok_decl=yes
63022 fi
63023 rm -f conftest*
63024
63025 if test "$ice_cv_have_ruserok_decl" = yes; then
63026         break
63027 fi
63028 done
63029
63030 fi
63031
63032 { echo "$as_me:$LINENO: result: $ice_cv_have_ruserok_decl" >&5
63033 echo "${ECHO_T}$ice_cv_have_ruserok_decl" >&6; }
63034 if test "$ice_cv_have_ruserok_decl" = yes; then
63035
63036 cat >>confdefs.h <<_ACEOF
63037 #define HAVE_RUSEROK_DECL 1
63038 _ACEOF
63039
63040 fi
63041 fi
63042
63043
63044 ice_have_select=no
63045
63046 for ac_func in select
63047 do
63048 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
63049 { echo "$as_me:$LINENO: checking for $ac_func" >&5
63050 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
63051 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
63052   echo $ECHO_N "(cached) $ECHO_C" >&6
63053 else
63054   cat >conftest.$ac_ext <<_ACEOF
63055 /* confdefs.h.  */
63056 _ACEOF
63057 cat confdefs.h >>conftest.$ac_ext
63058 cat >>conftest.$ac_ext <<_ACEOF
63059 /* end confdefs.h.  */
63060 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
63061    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
63062 #define $ac_func innocuous_$ac_func
63063
63064 /* System header to define __stub macros and hopefully few prototypes,
63065     which can conflict with char $ac_func (); below.
63066     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
63067     <limits.h> exists even on freestanding compilers.  */
63068
63069 #ifdef __STDC__
63070 # include <limits.h>
63071 #else
63072 # include <assert.h>
63073 #endif
63074
63075 #undef $ac_func
63076
63077 /* Override any GCC internal prototype to avoid an error.
63078    Use char because int might match the return type of a GCC
63079    builtin and then its argument prototype would still apply.  */
63080 #ifdef __cplusplus
63081 extern "C"
63082 #endif
63083 char $ac_func ();
63084 /* The GNU C library defines this for functions which it implements
63085     to always fail with ENOSYS.  Some functions are actually named
63086     something starting with __ and the normal name is an alias.  */
63087 #if defined __stub_$ac_func || defined __stub___$ac_func
63088 choke me
63089 #endif
63090
63091 int
63092 main ()
63093 {
63094 return $ac_func ();
63095   ;
63096   return 0;
63097 }
63098 _ACEOF
63099 rm -f conftest.$ac_objext conftest$ac_exeext
63100 if { (ac_try="$ac_link"
63101 case "(($ac_try" in
63102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
63103   *) ac_try_echo=$ac_try;;
63104 esac
63105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
63106   (eval "$ac_link") 2>conftest.er1
63107   ac_status=$?
63108   grep -v '^ *+' conftest.er1 >conftest.err
63109   rm -f conftest.er1
63110   cat conftest.err >&5
63111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
63112   (exit $ac_status); } && {
63113          test -z "$ac_c_werror_flag" ||
63114          test ! -s conftest.err
63115        } && test -s conftest$ac_exeext &&
63116        $as_test_x conftest$ac_exeext; then
63117   eval "$as_ac_var=yes"
63118 else
63119   echo "$as_me: failed program was:" >&5
63120 sed 's/^/| /' conftest.$ac_ext >&5
63121
63122         eval "$as_ac_var=no"
63123 fi
63124
63125 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
63126       conftest$ac_exeext conftest.$ac_ext
63127 fi
63128 ac_res=`eval echo '${'$as_ac_var'}'`
63129                { echo "$as_me:$LINENO: result: $ac_res" >&5
63130 echo "${ECHO_T}$ac_res" >&6; }
63131 if test `eval echo '${'$as_ac_var'}'` = yes; then
63132   cat >>confdefs.h <<_ACEOF
63133 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
63134 _ACEOF
63135  ice_have_select=yes
63136 fi
63137 done
63138
63139 if test "${ice_have_select}" = yes; then
63140 { echo "$as_me:$LINENO: checking for select declaration in sys/types.h sys/socket.h sys/select.h time.h sys/time.h" >&5
63141 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; }
63142 if test "${ice_cv_have_select_decl+set}" = set; then
63143   echo $ECHO_N "(cached) $ECHO_C" >&6
63144 else
63145
63146 ice_cv_have_select_decl=no
63147 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
63148 ice_re_word='(^|[^a-zA-Z0-9_])'
63149 for header in sys/types.h sys/socket.h sys/select.h time.h sys/time.h; do
63150 # Check for ordinary declaration
63151 cat >conftest.$ac_ext <<_ACEOF
63152 /* confdefs.h.  */
63153 _ACEOF
63154 cat confdefs.h >>conftest.$ac_ext
63155 cat >>conftest.$ac_ext <<_ACEOF
63156 /* end confdefs.h.  */
63157 #include <$header>
63158
63159 _ACEOF
63160 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
63161   $EGREP "${ice_re_word}select[         ]*\(" >/dev/null 2>&1; then
63162   ice_cv_have_select_decl=yes
63163 fi
63164 rm -f conftest*
63165
63166 if test "$ice_cv_have_select_decl" = yes; then
63167         break
63168 fi
63169 # Check for "fixed" declaration like "getpid _PARAMS((int))"
63170 cat >conftest.$ac_ext <<_ACEOF
63171 /* confdefs.h.  */
63172 _ACEOF
63173 cat confdefs.h >>conftest.$ac_ext
63174 cat >>conftest.$ac_ext <<_ACEOF
63175 /* end confdefs.h.  */
63176 #include <$header>
63177
63178 _ACEOF
63179 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
63180   $EGREP "${ice_re_word}select[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
63181   ice_cv_have_select_decl=yes
63182 fi
63183 rm -f conftest*
63184
63185 if test "$ice_cv_have_select_decl" = yes; then
63186         break
63187 fi
63188 done
63189
63190 fi
63191
63192 { echo "$as_me:$LINENO: result: $ice_cv_have_select_decl" >&5
63193 echo "${ECHO_T}$ice_cv_have_select_decl" >&6; }
63194 if test "$ice_cv_have_select_decl" = yes; then
63195
63196 cat >>confdefs.h <<_ACEOF
63197 #define HAVE_SELECT_DECL 1
63198 _ACEOF
63199
63200 fi
63201 fi
63202
63203
63204
63205
63206
63207
63208
63209
63210 for ac_header in sys/time.h \
63211             sys/types.h \
63212             sys/select.h \
63213             sys/socket.h \
63214             unistd.h \
63215
63216 do
63217 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
63218 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
63219   { echo "$as_me:$LINENO: checking for $ac_header" >&5
63220 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
63221 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
63222   echo $ECHO_N "(cached) $ECHO_C" >&6
63223 fi
63224 ac_res=`eval echo '${'$as_ac_Header'}'`
63225                { echo "$as_me:$LINENO: result: $ac_res" >&5
63226 echo "${ECHO_T}$ac_res" >&6; }
63227 else
63228   # Is the header compilable?
63229 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
63230 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
63231 cat >conftest.$ac_ext <<_ACEOF
63232 /* confdefs.h.  */
63233 _ACEOF
63234 cat confdefs.h >>conftest.$ac_ext
63235 cat >>conftest.$ac_ext <<_ACEOF
63236 /* end confdefs.h.  */
63237 $ac_includes_default
63238 #include <$ac_header>
63239 _ACEOF
63240 rm -f conftest.$ac_objext
63241 if { (ac_try="$ac_compile"
63242 case "(($ac_try" in
63243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
63244   *) ac_try_echo=$ac_try;;
63245 esac
63246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
63247   (eval "$ac_compile") 2>conftest.er1
63248   ac_status=$?
63249   grep -v '^ *+' conftest.er1 >conftest.err
63250   rm -f conftest.er1
63251   cat conftest.err >&5
63252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
63253   (exit $ac_status); } && {
63254          test -z "$ac_c_werror_flag" ||
63255          test ! -s conftest.err
63256        } && test -s conftest.$ac_objext; then
63257   ac_header_compiler=yes
63258 else
63259   echo "$as_me: failed program was:" >&5
63260 sed 's/^/| /' conftest.$ac_ext >&5
63261
63262         ac_header_compiler=no
63263 fi
63264
63265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
63266 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
63267 echo "${ECHO_T}$ac_header_compiler" >&6; }
63268
63269 # Is the header present?
63270 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
63271 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
63272 cat >conftest.$ac_ext <<_ACEOF
63273 /* confdefs.h.  */
63274 _ACEOF
63275 cat confdefs.h >>conftest.$ac_ext
63276 cat >>conftest.$ac_ext <<_ACEOF
63277 /* end confdefs.h.  */
63278 #include <$ac_header>
63279 _ACEOF
63280 if { (ac_try="$ac_cpp conftest.$ac_ext"
63281 case "(($ac_try" in
63282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
63283   *) ac_try_echo=$ac_try;;
63284 esac
63285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
63286   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
63287   ac_status=$?
63288   grep -v '^ *+' conftest.er1 >conftest.err
63289   rm -f conftest.er1
63290   cat conftest.err >&5
63291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
63292   (exit $ac_status); } >/dev/null && {
63293          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
63294          test ! -s conftest.err
63295        }; then
63296   ac_header_preproc=yes
63297 else
63298   echo "$as_me: failed program was:" >&5
63299 sed 's/^/| /' conftest.$ac_ext >&5
63300
63301   ac_header_preproc=no
63302 fi
63303
63304 rm -f conftest.err conftest.$ac_ext
63305 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
63306 echo "${ECHO_T}$ac_header_preproc" >&6; }
63307
63308 # So?  What about this header?
63309 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
63310   yes:no: )
63311     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
63312 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
63313     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
63314 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
63315     ac_header_preproc=yes
63316     ;;
63317   no:yes:* )
63318     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
63319 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
63320     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
63321 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
63322     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
63323 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
63324     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
63325 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
63326     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
63327 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
63328     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
63329 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
63330
63331     ;;
63332 esac
63333 { echo "$as_me:$LINENO: checking for $ac_header" >&5
63334 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
63335 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
63336   echo $ECHO_N "(cached) $ECHO_C" >&6
63337 else
63338   eval "$as_ac_Header=\$ac_header_preproc"
63339 fi
63340 ac_res=`eval echo '${'$as_ac_Header'}'`
63341                { echo "$as_me:$LINENO: result: $ac_res" >&5
63342 echo "${ECHO_T}$ac_res" >&6; }
63343
63344 fi
63345 if test `eval echo '${'$as_ac_Header'}'` = yes; then
63346   cat >>confdefs.h <<_ACEOF
63347 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
63348 _ACEOF
63349
63350 fi
63351
63352 done
63353
63354
63355         { echo "$as_me:$LINENO: checking for select() argument type" >&5
63356 echo $ECHO_N "checking for select() argument type... $ECHO_C" >&6; }
63357 if test "${amanda_cv_select_arg_type+set}" = set; then
63358   echo $ECHO_N "(cached) $ECHO_C" >&6
63359 else
63360
63361                 rm -f conftest.c
63362                 cat <<EOF >conftest.$ac_ext
63363 #include "confdefs.h"
63364 #ifdef TIME_WITH_SYS_TIME
63365 #  include <sys/time.h>
63366 #  include <time.h>
63367 #else
63368 #  ifdef HAVE_SYS_TIME_H
63369 #    include <sys/time.h>
63370 #  else
63371 #    include <time.h>
63372 #  endif
63373 #endif
63374 #ifdef HAVE_SYS_TYPES_H
63375 # include <sys/types.h>
63376 #endif
63377 #ifdef HAVE_SYS_SELECT_H
63378 #  include <sys/select.h>
63379 #endif
63380 #ifdef HAVE_SYS_SOCKET_H
63381 #  include <sys/socket.h>
63382 #endif
63383 #ifdef HAVE_UNISTD_H
63384 # include <unistd.h>
63385 #endif
63386
63387 int main()
63388 {
63389 #ifdef FD_SET_POINTER
63390         (void)select(0, (fd_set *) 0, (fd_set *) 0, (fd_set *) 0, 0);
63391 #else
63392         (void)select(0, (int *) 0, (int *) 0, (int *) 0, 0);
63393 #endif
63394         return 0;
63395 }
63396 EOF
63397
63398                 # Figure out the select argument type by first trying to
63399                 # compile with the fd_set argument.  If the compile fails,
63400                 # then we know to use the int.  If it suceeds, then try to
63401                 # use the int.  If the int fails, then use fd_set.  If
63402                 # both suceeed, then do a line count on the number of
63403                 # lines that the compiler spit out, assuming that the
63404                 # compile outputing more lines had more errors.
63405                 amanda_cv_select_arg_type=no
63406                 select_compile="${CC-cc} -c $CFLAGS $CPPFLAGS"
63407                 $select_compile -DFD_SET_POINTER conftest.$ac_ext 1>conftest.fd_set 2>&1
63408                 if test $? -ne 0; then
63409                     amanda_cv_select_arg_type=int
63410                 fi
63411                 if test "$amanda_cv_select_arg_type" = no; then
63412                     $select_compile conftest.$ac_ext 1>conftest.int 2>&1
63413                     if test $? -ne 0; then
63414                         amanda_cv_select_arg_type=fd_set
63415                     fi
63416                 fi
63417                 if test "$amanda_cv_select_arg_type" = no; then
63418                     wc_fdset=`wc -l <conftest.fd_set`
63419                     wc_int=`wc -l <conftest.int`
63420                     if test "$wc_fdset" -le "$wc_int"; then
63421                         amanda_cv_select_arg_type=fd_set
63422                     else
63423                         amanda_cv_select_arg_type=int
63424                     fi
63425                 fi
63426                 rm -f conftest*
63427
63428
63429 fi
63430 { echo "$as_me:$LINENO: result: $amanda_cv_select_arg_type" >&5
63431 echo "${ECHO_T}$amanda_cv_select_arg_type" >&6; }
63432
63433 cat >>confdefs.h <<_ACEOF
63434 #define SELECT_ARG_TYPE $amanda_cv_select_arg_type
63435 _ACEOF
63436
63437
63438
63439
63440 ice_have_sendto=no
63441
63442 for ac_func in sendto
63443 do
63444 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
63445 { echo "$as_me:$LINENO: checking for $ac_func" >&5
63446 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
63447 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
63448   echo $ECHO_N "(cached) $ECHO_C" >&6
63449 else
63450   cat >conftest.$ac_ext <<_ACEOF
63451 /* confdefs.h.  */
63452 _ACEOF
63453 cat confdefs.h >>conftest.$ac_ext
63454 cat >>conftest.$ac_ext <<_ACEOF
63455 /* end confdefs.h.  */
63456 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
63457    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
63458 #define $ac_func innocuous_$ac_func
63459
63460 /* System header to define __stub macros and hopefully few prototypes,
63461     which can conflict with char $ac_func (); below.
63462     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
63463     <limits.h> exists even on freestanding compilers.  */
63464
63465 #ifdef __STDC__
63466 # include <limits.h>
63467 #else
63468 # include <assert.h>
63469 #endif
63470
63471 #undef $ac_func
63472
63473 /* Override any GCC internal prototype to avoid an error.
63474    Use char because int might match the return type of a GCC
63475    builtin and then its argument prototype would still apply.  */
63476 #ifdef __cplusplus
63477 extern "C"
63478 #endif
63479 char $ac_func ();
63480 /* The GNU C library defines this for functions which it implements
63481     to always fail with ENOSYS.  Some functions are actually named
63482     something starting with __ and the normal name is an alias.  */
63483 #if defined __stub_$ac_func || defined __stub___$ac_func
63484 choke me
63485 #endif
63486
63487 int
63488 main ()
63489 {
63490 return $ac_func ();
63491   ;
63492   return 0;
63493 }
63494 _ACEOF
63495 rm -f conftest.$ac_objext conftest$ac_exeext
63496 if { (ac_try="$ac_link"
63497 case "(($ac_try" in
63498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
63499   *) ac_try_echo=$ac_try;;
63500 esac
63501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
63502   (eval "$ac_link") 2>conftest.er1
63503   ac_status=$?
63504   grep -v '^ *+' conftest.er1 >conftest.err
63505   rm -f conftest.er1
63506   cat conftest.err >&5
63507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
63508   (exit $ac_status); } && {
63509          test -z "$ac_c_werror_flag" ||
63510          test ! -s conftest.err
63511        } && test -s conftest$ac_exeext &&
63512        $as_test_x conftest$ac_exeext; then
63513   eval "$as_ac_var=yes"
63514 else
63515   echo "$as_me: failed program was:" >&5
63516 sed 's/^/| /' conftest.$ac_ext >&5
63517
63518         eval "$as_ac_var=no"
63519 fi
63520
63521 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
63522       conftest$ac_exeext conftest.$ac_ext
63523 fi
63524 ac_res=`eval echo '${'$as_ac_var'}'`
63525                { echo "$as_me:$LINENO: result: $ac_res" >&5
63526 echo "${ECHO_T}$ac_res" >&6; }
63527 if test `eval echo '${'$as_ac_var'}'` = yes; then
63528   cat >>confdefs.h <<_ACEOF
63529 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
63530 _ACEOF
63531  ice_have_sendto=yes
63532 fi
63533 done
63534
63535 if test "${ice_have_sendto}" = yes; then
63536 { echo "$as_me:$LINENO: checking for sendto declaration in sys/types.h sys/socket.h" >&5
63537 echo $ECHO_N "checking for sendto declaration in sys/types.h sys/socket.h... $ECHO_C" >&6; }
63538 if test "${ice_cv_have_sendto_decl+set}" = set; then
63539   echo $ECHO_N "(cached) $ECHO_C" >&6
63540 else
63541
63542 ice_cv_have_sendto_decl=no
63543 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
63544 ice_re_word='(^|[^a-zA-Z0-9_])'
63545 for header in sys/types.h sys/socket.h; do
63546 # Check for ordinary declaration
63547 cat >conftest.$ac_ext <<_ACEOF
63548 /* confdefs.h.  */
63549 _ACEOF
63550 cat confdefs.h >>conftest.$ac_ext
63551 cat >>conftest.$ac_ext <<_ACEOF
63552 /* end confdefs.h.  */
63553 #include <$header>
63554
63555 _ACEOF
63556 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
63557   $EGREP "${ice_re_word}sendto[         ]*\(" >/dev/null 2>&1; then
63558   ice_cv_have_sendto_decl=yes
63559 fi
63560 rm -f conftest*
63561
63562 if test "$ice_cv_have_sendto_decl" = yes; then
63563         break
63564 fi
63565 # Check for "fixed" declaration like "getpid _PARAMS((int))"
63566 cat >conftest.$ac_ext <<_ACEOF
63567 /* confdefs.h.  */
63568 _ACEOF
63569 cat confdefs.h >>conftest.$ac_ext
63570 cat >>conftest.$ac_ext <<_ACEOF
63571 /* end confdefs.h.  */
63572 #include <$header>
63573
63574 _ACEOF
63575 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
63576   $EGREP "${ice_re_word}sendto[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
63577   ice_cv_have_sendto_decl=yes
63578 fi
63579 rm -f conftest*
63580
63581 if test "$ice_cv_have_sendto_decl" = yes; then
63582         break
63583 fi
63584 done
63585
63586 fi
63587
63588 { echo "$as_me:$LINENO: result: $ice_cv_have_sendto_decl" >&5
63589 echo "${ECHO_T}$ice_cv_have_sendto_decl" >&6; }
63590 if test "$ice_cv_have_sendto_decl" = yes; then
63591
63592 cat >>confdefs.h <<_ACEOF
63593 #define HAVE_SENDTO_DECL 1
63594 _ACEOF
63595
63596 fi
63597 fi
63598
63599
63600 ice_have_setegid=no
63601
63602 for ac_func in setegid
63603 do
63604 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
63605 { echo "$as_me:$LINENO: checking for $ac_func" >&5
63606 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
63607 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
63608   echo $ECHO_N "(cached) $ECHO_C" >&6
63609 else
63610   cat >conftest.$ac_ext <<_ACEOF
63611 /* confdefs.h.  */
63612 _ACEOF
63613 cat confdefs.h >>conftest.$ac_ext
63614 cat >>conftest.$ac_ext <<_ACEOF
63615 /* end confdefs.h.  */
63616 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
63617    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
63618 #define $ac_func innocuous_$ac_func
63619
63620 /* System header to define __stub macros and hopefully few prototypes,
63621     which can conflict with char $ac_func (); below.
63622     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
63623     <limits.h> exists even on freestanding compilers.  */
63624
63625 #ifdef __STDC__
63626 # include <limits.h>
63627 #else
63628 # include <assert.h>
63629 #endif
63630
63631 #undef $ac_func
63632
63633 /* Override any GCC internal prototype to avoid an error.
63634    Use char because int might match the return type of a GCC
63635    builtin and then its argument prototype would still apply.  */
63636 #ifdef __cplusplus
63637 extern "C"
63638 #endif
63639 char $ac_func ();
63640 /* The GNU C library defines this for functions which it implements
63641     to always fail with ENOSYS.  Some functions are actually named
63642     something starting with __ and the normal name is an alias.  */
63643 #if defined __stub_$ac_func || defined __stub___$ac_func
63644 choke me
63645 #endif
63646
63647 int
63648 main ()
63649 {
63650 return $ac_func ();
63651   ;
63652   return 0;
63653 }
63654 _ACEOF
63655 rm -f conftest.$ac_objext conftest$ac_exeext
63656 if { (ac_try="$ac_link"
63657 case "(($ac_try" in
63658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
63659   *) ac_try_echo=$ac_try;;
63660 esac
63661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
63662   (eval "$ac_link") 2>conftest.er1
63663   ac_status=$?
63664   grep -v '^ *+' conftest.er1 >conftest.err
63665   rm -f conftest.er1
63666   cat conftest.err >&5
63667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
63668   (exit $ac_status); } && {
63669          test -z "$ac_c_werror_flag" ||
63670          test ! -s conftest.err
63671        } && test -s conftest$ac_exeext &&
63672        $as_test_x conftest$ac_exeext; then
63673   eval "$as_ac_var=yes"
63674 else
63675   echo "$as_me: failed program was:" >&5
63676 sed 's/^/| /' conftest.$ac_ext >&5
63677
63678         eval "$as_ac_var=no"
63679 fi
63680
63681 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
63682       conftest$ac_exeext conftest.$ac_ext
63683 fi
63684 ac_res=`eval echo '${'$as_ac_var'}'`
63685                { echo "$as_me:$LINENO: result: $ac_res" >&5
63686 echo "${ECHO_T}$ac_res" >&6; }
63687 if test `eval echo '${'$as_ac_var'}'` = yes; then
63688   cat >>confdefs.h <<_ACEOF
63689 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
63690 _ACEOF
63691  ice_have_setegid=yes
63692 fi
63693 done
63694
63695 if test "${ice_have_setegid}" = yes; then
63696 { echo "$as_me:$LINENO: checking for setegid declaration in unistd.h" >&5
63697 echo $ECHO_N "checking for setegid declaration in unistd.h... $ECHO_C" >&6; }
63698 if test "${ice_cv_have_setegid_decl+set}" = set; then
63699   echo $ECHO_N "(cached) $ECHO_C" >&6
63700 else
63701
63702 ice_cv_have_setegid_decl=no
63703 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
63704 ice_re_word='(^|[^a-zA-Z0-9_])'
63705 for header in unistd.h; do
63706 # Check for ordinary declaration
63707 cat >conftest.$ac_ext <<_ACEOF
63708 /* confdefs.h.  */
63709 _ACEOF
63710 cat confdefs.h >>conftest.$ac_ext
63711 cat >>conftest.$ac_ext <<_ACEOF
63712 /* end confdefs.h.  */
63713 #include <$header>
63714
63715 _ACEOF
63716 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
63717   $EGREP "${ice_re_word}setegid[        ]*\(" >/dev/null 2>&1; then
63718   ice_cv_have_setegid_decl=yes
63719 fi
63720 rm -f conftest*
63721
63722 if test "$ice_cv_have_setegid_decl" = yes; then
63723         break
63724 fi
63725 # Check for "fixed" declaration like "getpid _PARAMS((int))"
63726 cat >conftest.$ac_ext <<_ACEOF
63727 /* confdefs.h.  */
63728 _ACEOF
63729 cat confdefs.h >>conftest.$ac_ext
63730 cat >>conftest.$ac_ext <<_ACEOF
63731 /* end confdefs.h.  */
63732 #include <$header>
63733
63734 _ACEOF
63735 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
63736   $EGREP "${ice_re_word}setegid[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
63737   ice_cv_have_setegid_decl=yes
63738 fi
63739 rm -f conftest*
63740
63741 if test "$ice_cv_have_setegid_decl" = yes; then
63742         break
63743 fi
63744 done
63745
63746 fi
63747
63748 { echo "$as_me:$LINENO: result: $ice_cv_have_setegid_decl" >&5
63749 echo "${ECHO_T}$ice_cv_have_setegid_decl" >&6; }
63750 if test "$ice_cv_have_setegid_decl" = yes; then
63751
63752 cat >>confdefs.h <<_ACEOF
63753 #define HAVE_SETEGID_DECL 1
63754 _ACEOF
63755
63756 fi
63757 fi
63758
63759
63760 ice_have_seteuid=no
63761
63762 for ac_func in seteuid
63763 do
63764 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
63765 { echo "$as_me:$LINENO: checking for $ac_func" >&5
63766 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
63767 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
63768   echo $ECHO_N "(cached) $ECHO_C" >&6
63769 else
63770   cat >conftest.$ac_ext <<_ACEOF
63771 /* confdefs.h.  */
63772 _ACEOF
63773 cat confdefs.h >>conftest.$ac_ext
63774 cat >>conftest.$ac_ext <<_ACEOF
63775 /* end confdefs.h.  */
63776 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
63777    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
63778 #define $ac_func innocuous_$ac_func
63779
63780 /* System header to define __stub macros and hopefully few prototypes,
63781     which can conflict with char $ac_func (); below.
63782     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
63783     <limits.h> exists even on freestanding compilers.  */
63784
63785 #ifdef __STDC__
63786 # include <limits.h>
63787 #else
63788 # include <assert.h>
63789 #endif
63790
63791 #undef $ac_func
63792
63793 /* Override any GCC internal prototype to avoid an error.
63794    Use char because int might match the return type of a GCC
63795    builtin and then its argument prototype would still apply.  */
63796 #ifdef __cplusplus
63797 extern "C"
63798 #endif
63799 char $ac_func ();
63800 /* The GNU C library defines this for functions which it implements
63801     to always fail with ENOSYS.  Some functions are actually named
63802     something starting with __ and the normal name is an alias.  */
63803 #if defined __stub_$ac_func || defined __stub___$ac_func
63804 choke me
63805 #endif
63806
63807 int
63808 main ()
63809 {
63810 return $ac_func ();
63811   ;
63812   return 0;
63813 }
63814 _ACEOF
63815 rm -f conftest.$ac_objext conftest$ac_exeext
63816 if { (ac_try="$ac_link"
63817 case "(($ac_try" in
63818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
63819   *) ac_try_echo=$ac_try;;
63820 esac
63821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
63822   (eval "$ac_link") 2>conftest.er1
63823   ac_status=$?
63824   grep -v '^ *+' conftest.er1 >conftest.err
63825   rm -f conftest.er1
63826   cat conftest.err >&5
63827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
63828   (exit $ac_status); } && {
63829          test -z "$ac_c_werror_flag" ||
63830          test ! -s conftest.err
63831        } && test -s conftest$ac_exeext &&
63832        $as_test_x conftest$ac_exeext; then
63833   eval "$as_ac_var=yes"
63834 else
63835   echo "$as_me: failed program was:" >&5
63836 sed 's/^/| /' conftest.$ac_ext >&5
63837
63838         eval "$as_ac_var=no"
63839 fi
63840
63841 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
63842       conftest$ac_exeext conftest.$ac_ext
63843 fi
63844 ac_res=`eval echo '${'$as_ac_var'}'`
63845                { echo "$as_me:$LINENO: result: $ac_res" >&5
63846 echo "${ECHO_T}$ac_res" >&6; }
63847 if test `eval echo '${'$as_ac_var'}'` = yes; then
63848   cat >>confdefs.h <<_ACEOF
63849 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
63850 _ACEOF
63851  ice_have_seteuid=yes
63852 fi
63853 done
63854
63855 if test "${ice_have_seteuid}" = yes; then
63856 { echo "$as_me:$LINENO: checking for seteuid declaration in unistd.h" >&5
63857 echo $ECHO_N "checking for seteuid declaration in unistd.h... $ECHO_C" >&6; }
63858 if test "${ice_cv_have_seteuid_decl+set}" = set; then
63859   echo $ECHO_N "(cached) $ECHO_C" >&6
63860 else
63861
63862 ice_cv_have_seteuid_decl=no
63863 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
63864 ice_re_word='(^|[^a-zA-Z0-9_])'
63865 for header in unistd.h; do
63866 # Check for ordinary declaration
63867 cat >conftest.$ac_ext <<_ACEOF
63868 /* confdefs.h.  */
63869 _ACEOF
63870 cat confdefs.h >>conftest.$ac_ext
63871 cat >>conftest.$ac_ext <<_ACEOF
63872 /* end confdefs.h.  */
63873 #include <$header>
63874
63875 _ACEOF
63876 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
63877   $EGREP "${ice_re_word}seteuid[        ]*\(" >/dev/null 2>&1; then
63878   ice_cv_have_seteuid_decl=yes
63879 fi
63880 rm -f conftest*
63881
63882 if test "$ice_cv_have_seteuid_decl" = yes; then
63883         break
63884 fi
63885 # Check for "fixed" declaration like "getpid _PARAMS((int))"
63886 cat >conftest.$ac_ext <<_ACEOF
63887 /* confdefs.h.  */
63888 _ACEOF
63889 cat confdefs.h >>conftest.$ac_ext
63890 cat >>conftest.$ac_ext <<_ACEOF
63891 /* end confdefs.h.  */
63892 #include <$header>
63893
63894 _ACEOF
63895 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
63896   $EGREP "${ice_re_word}seteuid[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
63897   ice_cv_have_seteuid_decl=yes
63898 fi
63899 rm -f conftest*
63900
63901 if test "$ice_cv_have_seteuid_decl" = yes; then
63902         break
63903 fi
63904 done
63905
63906 fi
63907
63908 { echo "$as_me:$LINENO: result: $ice_cv_have_seteuid_decl" >&5
63909 echo "${ECHO_T}$ice_cv_have_seteuid_decl" >&6; }
63910 if test "$ice_cv_have_seteuid_decl" = yes; then
63911
63912 cat >>confdefs.h <<_ACEOF
63913 #define HAVE_SETEUID_DECL 1
63914 _ACEOF
63915
63916 fi
63917 fi
63918
63919
63920 ice_have_setresgid=no
63921
63922 for ac_func in setresgid
63923 do
63924 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
63925 { echo "$as_me:$LINENO: checking for $ac_func" >&5
63926 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
63927 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
63928   echo $ECHO_N "(cached) $ECHO_C" >&6
63929 else
63930   cat >conftest.$ac_ext <<_ACEOF
63931 /* confdefs.h.  */
63932 _ACEOF
63933 cat confdefs.h >>conftest.$ac_ext
63934 cat >>conftest.$ac_ext <<_ACEOF
63935 /* end confdefs.h.  */
63936 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
63937    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
63938 #define $ac_func innocuous_$ac_func
63939
63940 /* System header to define __stub macros and hopefully few prototypes,
63941     which can conflict with char $ac_func (); below.
63942     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
63943     <limits.h> exists even on freestanding compilers.  */
63944
63945 #ifdef __STDC__
63946 # include <limits.h>
63947 #else
63948 # include <assert.h>
63949 #endif
63950
63951 #undef $ac_func
63952
63953 /* Override any GCC internal prototype to avoid an error.
63954    Use char because int might match the return type of a GCC
63955    builtin and then its argument prototype would still apply.  */
63956 #ifdef __cplusplus
63957 extern "C"
63958 #endif
63959 char $ac_func ();
63960 /* The GNU C library defines this for functions which it implements
63961     to always fail with ENOSYS.  Some functions are actually named
63962     something starting with __ and the normal name is an alias.  */
63963 #if defined __stub_$ac_func || defined __stub___$ac_func
63964 choke me
63965 #endif
63966
63967 int
63968 main ()
63969 {
63970 return $ac_func ();
63971   ;
63972   return 0;
63973 }
63974 _ACEOF
63975 rm -f conftest.$ac_objext conftest$ac_exeext
63976 if { (ac_try="$ac_link"
63977 case "(($ac_try" in
63978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
63979   *) ac_try_echo=$ac_try;;
63980 esac
63981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
63982   (eval "$ac_link") 2>conftest.er1
63983   ac_status=$?
63984   grep -v '^ *+' conftest.er1 >conftest.err
63985   rm -f conftest.er1
63986   cat conftest.err >&5
63987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
63988   (exit $ac_status); } && {
63989          test -z "$ac_c_werror_flag" ||
63990          test ! -s conftest.err
63991        } && test -s conftest$ac_exeext &&
63992        $as_test_x conftest$ac_exeext; then
63993   eval "$as_ac_var=yes"
63994 else
63995   echo "$as_me: failed program was:" >&5
63996 sed 's/^/| /' conftest.$ac_ext >&5
63997
63998         eval "$as_ac_var=no"
63999 fi
64000
64001 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
64002       conftest$ac_exeext conftest.$ac_ext
64003 fi
64004 ac_res=`eval echo '${'$as_ac_var'}'`
64005                { echo "$as_me:$LINENO: result: $ac_res" >&5
64006 echo "${ECHO_T}$ac_res" >&6; }
64007 if test `eval echo '${'$as_ac_var'}'` = yes; then
64008   cat >>confdefs.h <<_ACEOF
64009 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
64010 _ACEOF
64011  ice_have_setresgid=yes
64012 fi
64013 done
64014
64015 if test "${ice_have_setresgid}" = yes; then
64016 { echo "$as_me:$LINENO: checking for setresgid declaration in unistd.h" >&5
64017 echo $ECHO_N "checking for setresgid declaration in unistd.h... $ECHO_C" >&6; }
64018 if test "${ice_cv_have_setresgid_decl+set}" = set; then
64019   echo $ECHO_N "(cached) $ECHO_C" >&6
64020 else
64021
64022 ice_cv_have_setresgid_decl=no
64023 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
64024 ice_re_word='(^|[^a-zA-Z0-9_])'
64025 for header in unistd.h; do
64026 # Check for ordinary declaration
64027 cat >conftest.$ac_ext <<_ACEOF
64028 /* confdefs.h.  */
64029 _ACEOF
64030 cat confdefs.h >>conftest.$ac_ext
64031 cat >>conftest.$ac_ext <<_ACEOF
64032 /* end confdefs.h.  */
64033 #include <$header>
64034
64035 _ACEOF
64036 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
64037   $EGREP "${ice_re_word}setresgid[      ]*\(" >/dev/null 2>&1; then
64038   ice_cv_have_setresgid_decl=yes
64039 fi
64040 rm -f conftest*
64041
64042 if test "$ice_cv_have_setresgid_decl" = yes; then
64043         break
64044 fi
64045 # Check for "fixed" declaration like "getpid _PARAMS((int))"
64046 cat >conftest.$ac_ext <<_ACEOF
64047 /* confdefs.h.  */
64048 _ACEOF
64049 cat confdefs.h >>conftest.$ac_ext
64050 cat >>conftest.$ac_ext <<_ACEOF
64051 /* end confdefs.h.  */
64052 #include <$header>
64053
64054 _ACEOF
64055 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
64056   $EGREP "${ice_re_word}setresgid[      ]*$ice_re_params\(\(" >/dev/null 2>&1; then
64057   ice_cv_have_setresgid_decl=yes
64058 fi
64059 rm -f conftest*
64060
64061 if test "$ice_cv_have_setresgid_decl" = yes; then
64062         break
64063 fi
64064 done
64065
64066 fi
64067
64068 { echo "$as_me:$LINENO: result: $ice_cv_have_setresgid_decl" >&5
64069 echo "${ECHO_T}$ice_cv_have_setresgid_decl" >&6; }
64070 if test "$ice_cv_have_setresgid_decl" = yes; then
64071
64072 cat >>confdefs.h <<_ACEOF
64073 #define HAVE_SETRESGID_DECL 1
64074 _ACEOF
64075
64076 fi
64077 fi
64078
64079
64080 ice_have_setresuid=no
64081
64082 for ac_func in setresuid
64083 do
64084 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
64085 { echo "$as_me:$LINENO: checking for $ac_func" >&5
64086 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
64087 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
64088   echo $ECHO_N "(cached) $ECHO_C" >&6
64089 else
64090   cat >conftest.$ac_ext <<_ACEOF
64091 /* confdefs.h.  */
64092 _ACEOF
64093 cat confdefs.h >>conftest.$ac_ext
64094 cat >>conftest.$ac_ext <<_ACEOF
64095 /* end confdefs.h.  */
64096 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
64097    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
64098 #define $ac_func innocuous_$ac_func
64099
64100 /* System header to define __stub macros and hopefully few prototypes,
64101     which can conflict with char $ac_func (); below.
64102     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
64103     <limits.h> exists even on freestanding compilers.  */
64104
64105 #ifdef __STDC__
64106 # include <limits.h>
64107 #else
64108 # include <assert.h>
64109 #endif
64110
64111 #undef $ac_func
64112
64113 /* Override any GCC internal prototype to avoid an error.
64114    Use char because int might match the return type of a GCC
64115    builtin and then its argument prototype would still apply.  */
64116 #ifdef __cplusplus
64117 extern "C"
64118 #endif
64119 char $ac_func ();
64120 /* The GNU C library defines this for functions which it implements
64121     to always fail with ENOSYS.  Some functions are actually named
64122     something starting with __ and the normal name is an alias.  */
64123 #if defined __stub_$ac_func || defined __stub___$ac_func
64124 choke me
64125 #endif
64126
64127 int
64128 main ()
64129 {
64130 return $ac_func ();
64131   ;
64132   return 0;
64133 }
64134 _ACEOF
64135 rm -f conftest.$ac_objext conftest$ac_exeext
64136 if { (ac_try="$ac_link"
64137 case "(($ac_try" in
64138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
64139   *) ac_try_echo=$ac_try;;
64140 esac
64141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
64142   (eval "$ac_link") 2>conftest.er1
64143   ac_status=$?
64144   grep -v '^ *+' conftest.er1 >conftest.err
64145   rm -f conftest.er1
64146   cat conftest.err >&5
64147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
64148   (exit $ac_status); } && {
64149          test -z "$ac_c_werror_flag" ||
64150          test ! -s conftest.err
64151        } && test -s conftest$ac_exeext &&
64152        $as_test_x conftest$ac_exeext; then
64153   eval "$as_ac_var=yes"
64154 else
64155   echo "$as_me: failed program was:" >&5
64156 sed 's/^/| /' conftest.$ac_ext >&5
64157
64158         eval "$as_ac_var=no"
64159 fi
64160
64161 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
64162       conftest$ac_exeext conftest.$ac_ext
64163 fi
64164 ac_res=`eval echo '${'$as_ac_var'}'`
64165                { echo "$as_me:$LINENO: result: $ac_res" >&5
64166 echo "${ECHO_T}$ac_res" >&6; }
64167 if test `eval echo '${'$as_ac_var'}'` = yes; then
64168   cat >>confdefs.h <<_ACEOF
64169 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
64170 _ACEOF
64171  ice_have_setresuid=yes
64172 fi
64173 done
64174
64175 if test "${ice_have_setresuid}" = yes; then
64176 { echo "$as_me:$LINENO: checking for setresuid declaration in unistd.h" >&5
64177 echo $ECHO_N "checking for setresuid declaration in unistd.h... $ECHO_C" >&6; }
64178 if test "${ice_cv_have_setresuid_decl+set}" = set; then
64179   echo $ECHO_N "(cached) $ECHO_C" >&6
64180 else
64181
64182 ice_cv_have_setresuid_decl=no
64183 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
64184 ice_re_word='(^|[^a-zA-Z0-9_])'
64185 for header in unistd.h; do
64186 # Check for ordinary declaration
64187 cat >conftest.$ac_ext <<_ACEOF
64188 /* confdefs.h.  */
64189 _ACEOF
64190 cat confdefs.h >>conftest.$ac_ext
64191 cat >>conftest.$ac_ext <<_ACEOF
64192 /* end confdefs.h.  */
64193 #include <$header>
64194
64195 _ACEOF
64196 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
64197   $EGREP "${ice_re_word}setresuid[      ]*\(" >/dev/null 2>&1; then
64198   ice_cv_have_setresuid_decl=yes
64199 fi
64200 rm -f conftest*
64201
64202 if test "$ice_cv_have_setresuid_decl" = yes; then
64203         break
64204 fi
64205 # Check for "fixed" declaration like "getpid _PARAMS((int))"
64206 cat >conftest.$ac_ext <<_ACEOF
64207 /* confdefs.h.  */
64208 _ACEOF
64209 cat confdefs.h >>conftest.$ac_ext
64210 cat >>conftest.$ac_ext <<_ACEOF
64211 /* end confdefs.h.  */
64212 #include <$header>
64213
64214 _ACEOF
64215 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
64216   $EGREP "${ice_re_word}setresuid[      ]*$ice_re_params\(\(" >/dev/null 2>&1; then
64217   ice_cv_have_setresuid_decl=yes
64218 fi
64219 rm -f conftest*
64220
64221 if test "$ice_cv_have_setresuid_decl" = yes; then
64222         break
64223 fi
64224 done
64225
64226 fi
64227
64228 { echo "$as_me:$LINENO: result: $ice_cv_have_setresuid_decl" >&5
64229 echo "${ECHO_T}$ice_cv_have_setresuid_decl" >&6; }
64230 if test "$ice_cv_have_setresuid_decl" = yes; then
64231
64232 cat >>confdefs.h <<_ACEOF
64233 #define HAVE_SETRESUID_DECL 1
64234 _ACEOF
64235
64236 fi
64237 fi
64238
64239
64240 for ac_func in shquote
64241 do
64242 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
64243 { echo "$as_me:$LINENO: checking for $ac_func" >&5
64244 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
64245 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
64246   echo $ECHO_N "(cached) $ECHO_C" >&6
64247 else
64248   cat >conftest.$ac_ext <<_ACEOF
64249 /* confdefs.h.  */
64250 _ACEOF
64251 cat confdefs.h >>conftest.$ac_ext
64252 cat >>conftest.$ac_ext <<_ACEOF
64253 /* end confdefs.h.  */
64254 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
64255    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
64256 #define $ac_func innocuous_$ac_func
64257
64258 /* System header to define __stub macros and hopefully few prototypes,
64259     which can conflict with char $ac_func (); below.
64260     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
64261     <limits.h> exists even on freestanding compilers.  */
64262
64263 #ifdef __STDC__
64264 # include <limits.h>
64265 #else
64266 # include <assert.h>
64267 #endif
64268
64269 #undef $ac_func
64270
64271 /* Override any GCC internal prototype to avoid an error.
64272    Use char because int might match the return type of a GCC
64273    builtin and then its argument prototype would still apply.  */
64274 #ifdef __cplusplus
64275 extern "C"
64276 #endif
64277 char $ac_func ();
64278 /* The GNU C library defines this for functions which it implements
64279     to always fail with ENOSYS.  Some functions are actually named
64280     something starting with __ and the normal name is an alias.  */
64281 #if defined __stub_$ac_func || defined __stub___$ac_func
64282 choke me
64283 #endif
64284
64285 int
64286 main ()
64287 {
64288 return $ac_func ();
64289   ;
64290   return 0;
64291 }
64292 _ACEOF
64293 rm -f conftest.$ac_objext conftest$ac_exeext
64294 if { (ac_try="$ac_link"
64295 case "(($ac_try" in
64296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
64297   *) ac_try_echo=$ac_try;;
64298 esac
64299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
64300   (eval "$ac_link") 2>conftest.er1
64301   ac_status=$?
64302   grep -v '^ *+' conftest.er1 >conftest.err
64303   rm -f conftest.er1
64304   cat conftest.err >&5
64305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
64306   (exit $ac_status); } && {
64307          test -z "$ac_c_werror_flag" ||
64308          test ! -s conftest.err
64309        } && test -s conftest$ac_exeext &&
64310        $as_test_x conftest$ac_exeext; then
64311   eval "$as_ac_var=yes"
64312 else
64313   echo "$as_me: failed program was:" >&5
64314 sed 's/^/| /' conftest.$ac_ext >&5
64315
64316         eval "$as_ac_var=no"
64317 fi
64318
64319 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
64320       conftest$ac_exeext conftest.$ac_ext
64321 fi
64322 ac_res=`eval echo '${'$as_ac_var'}'`
64323                { echo "$as_me:$LINENO: result: $ac_res" >&5
64324 echo "${ECHO_T}$ac_res" >&6; }
64325 if test `eval echo '${'$as_ac_var'}'` = yes; then
64326   cat >>confdefs.h <<_ACEOF
64327 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
64328 _ACEOF
64329
64330 fi
64331 done
64332
64333
64334 ice_have_snprintf=no
64335
64336 for ac_func in snprintf
64337 do
64338 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
64339 { echo "$as_me:$LINENO: checking for $ac_func" >&5
64340 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
64341 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
64342   echo $ECHO_N "(cached) $ECHO_C" >&6
64343 else
64344   cat >conftest.$ac_ext <<_ACEOF
64345 /* confdefs.h.  */
64346 _ACEOF
64347 cat confdefs.h >>conftest.$ac_ext
64348 cat >>conftest.$ac_ext <<_ACEOF
64349 /* end confdefs.h.  */
64350 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
64351    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
64352 #define $ac_func innocuous_$ac_func
64353
64354 /* System header to define __stub macros and hopefully few prototypes,
64355     which can conflict with char $ac_func (); below.
64356     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
64357     <limits.h> exists even on freestanding compilers.  */
64358
64359 #ifdef __STDC__
64360 # include <limits.h>
64361 #else
64362 # include <assert.h>
64363 #endif
64364
64365 #undef $ac_func
64366
64367 /* Override any GCC internal prototype to avoid an error.
64368    Use char because int might match the return type of a GCC
64369    builtin and then its argument prototype would still apply.  */
64370 #ifdef __cplusplus
64371 extern "C"
64372 #endif
64373 char $ac_func ();
64374 /* The GNU C library defines this for functions which it implements
64375     to always fail with ENOSYS.  Some functions are actually named
64376     something starting with __ and the normal name is an alias.  */
64377 #if defined __stub_$ac_func || defined __stub___$ac_func
64378 choke me
64379 #endif
64380
64381 int
64382 main ()
64383 {
64384 return $ac_func ();
64385   ;
64386   return 0;
64387 }
64388 _ACEOF
64389 rm -f conftest.$ac_objext conftest$ac_exeext
64390 if { (ac_try="$ac_link"
64391 case "(($ac_try" in
64392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
64393   *) ac_try_echo=$ac_try;;
64394 esac
64395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
64396   (eval "$ac_link") 2>conftest.er1
64397   ac_status=$?
64398   grep -v '^ *+' conftest.er1 >conftest.err
64399   rm -f conftest.er1
64400   cat conftest.err >&5
64401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
64402   (exit $ac_status); } && {
64403          test -z "$ac_c_werror_flag" ||
64404          test ! -s conftest.err
64405        } && test -s conftest$ac_exeext &&
64406        $as_test_x conftest$ac_exeext; then
64407   eval "$as_ac_var=yes"
64408 else
64409   echo "$as_me: failed program was:" >&5
64410 sed 's/^/| /' conftest.$ac_ext >&5
64411
64412         eval "$as_ac_var=no"
64413 fi
64414
64415 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
64416       conftest$ac_exeext conftest.$ac_ext
64417 fi
64418 ac_res=`eval echo '${'$as_ac_var'}'`
64419                { echo "$as_me:$LINENO: result: $ac_res" >&5
64420 echo "${ECHO_T}$ac_res" >&6; }
64421 if test `eval echo '${'$as_ac_var'}'` = yes; then
64422   cat >>confdefs.h <<_ACEOF
64423 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
64424 _ACEOF
64425  ice_have_snprintf=yes
64426 fi
64427 done
64428
64429 if test "${ice_have_snprintf}" = yes; then
64430 { echo "$as_me:$LINENO: checking for snprintf declaration in stdio.h" >&5
64431 echo $ECHO_N "checking for snprintf declaration in stdio.h... $ECHO_C" >&6; }
64432 if test "${ice_cv_have_snprintf_decl+set}" = set; then
64433   echo $ECHO_N "(cached) $ECHO_C" >&6
64434 else
64435
64436 ice_cv_have_snprintf_decl=no
64437 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
64438 ice_re_word='(^|[^a-zA-Z0-9_])'
64439 for header in stdio.h; do
64440 # Check for ordinary declaration
64441 cat >conftest.$ac_ext <<_ACEOF
64442 /* confdefs.h.  */
64443 _ACEOF
64444 cat confdefs.h >>conftest.$ac_ext
64445 cat >>conftest.$ac_ext <<_ACEOF
64446 /* end confdefs.h.  */
64447 #include <$header>
64448
64449 _ACEOF
64450 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
64451   $EGREP "${ice_re_word}snprintf[       ]*\(" >/dev/null 2>&1; then
64452   ice_cv_have_snprintf_decl=yes
64453 fi
64454 rm -f conftest*
64455
64456 if test "$ice_cv_have_snprintf_decl" = yes; then
64457         break
64458 fi
64459 # Check for "fixed" declaration like "getpid _PARAMS((int))"
64460 cat >conftest.$ac_ext <<_ACEOF
64461 /* confdefs.h.  */
64462 _ACEOF
64463 cat confdefs.h >>conftest.$ac_ext
64464 cat >>conftest.$ac_ext <<_ACEOF
64465 /* end confdefs.h.  */
64466 #include <$header>
64467
64468 _ACEOF
64469 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
64470   $EGREP "${ice_re_word}snprintf[       ]*$ice_re_params\(\(" >/dev/null 2>&1; then
64471   ice_cv_have_snprintf_decl=yes
64472 fi
64473 rm -f conftest*
64474
64475 if test "$ice_cv_have_snprintf_decl" = yes; then
64476         break
64477 fi
64478 done
64479
64480 fi
64481
64482 { echo "$as_me:$LINENO: result: $ice_cv_have_snprintf_decl" >&5
64483 echo "${ECHO_T}$ice_cv_have_snprintf_decl" >&6; }
64484 if test "$ice_cv_have_snprintf_decl" = yes; then
64485
64486 cat >>confdefs.h <<_ACEOF
64487 #define HAVE_SNPRINTF_DECL 1
64488 _ACEOF
64489
64490 fi
64491 fi
64492
64493
64494 ice_have_vsnprintf=no
64495
64496 for ac_func in vsnprintf
64497 do
64498 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
64499 { echo "$as_me:$LINENO: checking for $ac_func" >&5
64500 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
64501 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
64502   echo $ECHO_N "(cached) $ECHO_C" >&6
64503 else
64504   cat >conftest.$ac_ext <<_ACEOF
64505 /* confdefs.h.  */
64506 _ACEOF
64507 cat confdefs.h >>conftest.$ac_ext
64508 cat >>conftest.$ac_ext <<_ACEOF
64509 /* end confdefs.h.  */
64510 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
64511    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
64512 #define $ac_func innocuous_$ac_func
64513
64514 /* System header to define __stub macros and hopefully few prototypes,
64515     which can conflict with char $ac_func (); below.
64516     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
64517     <limits.h> exists even on freestanding compilers.  */
64518
64519 #ifdef __STDC__
64520 # include <limits.h>
64521 #else
64522 # include <assert.h>
64523 #endif
64524
64525 #undef $ac_func
64526
64527 /* Override any GCC internal prototype to avoid an error.
64528    Use char because int might match the return type of a GCC
64529    builtin and then its argument prototype would still apply.  */
64530 #ifdef __cplusplus
64531 extern "C"
64532 #endif
64533 char $ac_func ();
64534 /* The GNU C library defines this for functions which it implements
64535     to always fail with ENOSYS.  Some functions are actually named
64536     something starting with __ and the normal name is an alias.  */
64537 #if defined __stub_$ac_func || defined __stub___$ac_func
64538 choke me
64539 #endif
64540
64541 int
64542 main ()
64543 {
64544 return $ac_func ();
64545   ;
64546   return 0;
64547 }
64548 _ACEOF
64549 rm -f conftest.$ac_objext conftest$ac_exeext
64550 if { (ac_try="$ac_link"
64551 case "(($ac_try" in
64552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
64553   *) ac_try_echo=$ac_try;;
64554 esac
64555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
64556   (eval "$ac_link") 2>conftest.er1
64557   ac_status=$?
64558   grep -v '^ *+' conftest.er1 >conftest.err
64559   rm -f conftest.er1
64560   cat conftest.err >&5
64561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
64562   (exit $ac_status); } && {
64563          test -z "$ac_c_werror_flag" ||
64564          test ! -s conftest.err
64565        } && test -s conftest$ac_exeext &&
64566        $as_test_x conftest$ac_exeext; then
64567   eval "$as_ac_var=yes"
64568 else
64569   echo "$as_me: failed program was:" >&5
64570 sed 's/^/| /' conftest.$ac_ext >&5
64571
64572         eval "$as_ac_var=no"
64573 fi
64574
64575 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
64576       conftest$ac_exeext conftest.$ac_ext
64577 fi
64578 ac_res=`eval echo '${'$as_ac_var'}'`
64579                { echo "$as_me:$LINENO: result: $ac_res" >&5
64580 echo "${ECHO_T}$ac_res" >&6; }
64581 if test `eval echo '${'$as_ac_var'}'` = yes; then
64582   cat >>confdefs.h <<_ACEOF
64583 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
64584 _ACEOF
64585  ice_have_vsnprintf=yes
64586 fi
64587 done
64588
64589 if test "${ice_have_vsnprintf}" = yes; then
64590 { echo "$as_me:$LINENO: checking for vsnprintf declaration in stdio.h" >&5
64591 echo $ECHO_N "checking for vsnprintf declaration in stdio.h... $ECHO_C" >&6; }
64592 if test "${ice_cv_have_vsnprintf_decl+set}" = set; then
64593   echo $ECHO_N "(cached) $ECHO_C" >&6
64594 else
64595
64596 ice_cv_have_vsnprintf_decl=no
64597 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
64598 ice_re_word='(^|[^a-zA-Z0-9_])'
64599 for header in stdio.h; do
64600 # Check for ordinary declaration
64601 cat >conftest.$ac_ext <<_ACEOF
64602 /* confdefs.h.  */
64603 _ACEOF
64604 cat confdefs.h >>conftest.$ac_ext
64605 cat >>conftest.$ac_ext <<_ACEOF
64606 /* end confdefs.h.  */
64607 #include <$header>
64608
64609 _ACEOF
64610 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
64611   $EGREP "${ice_re_word}vsnprintf[      ]*\(" >/dev/null 2>&1; then
64612   ice_cv_have_vsnprintf_decl=yes
64613 fi
64614 rm -f conftest*
64615
64616 if test "$ice_cv_have_vsnprintf_decl" = yes; then
64617         break
64618 fi
64619 # Check for "fixed" declaration like "getpid _PARAMS((int))"
64620 cat >conftest.$ac_ext <<_ACEOF
64621 /* confdefs.h.  */
64622 _ACEOF
64623 cat confdefs.h >>conftest.$ac_ext
64624 cat >>conftest.$ac_ext <<_ACEOF
64625 /* end confdefs.h.  */
64626 #include <$header>
64627
64628 _ACEOF
64629 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
64630   $EGREP "${ice_re_word}vsnprintf[      ]*$ice_re_params\(\(" >/dev/null 2>&1; then
64631   ice_cv_have_vsnprintf_decl=yes
64632 fi
64633 rm -f conftest*
64634
64635 if test "$ice_cv_have_vsnprintf_decl" = yes; then
64636         break
64637 fi
64638 done
64639
64640 fi
64641
64642 { echo "$as_me:$LINENO: result: $ice_cv_have_vsnprintf_decl" >&5
64643 echo "${ECHO_T}$ice_cv_have_vsnprintf_decl" >&6; }
64644 if test "$ice_cv_have_vsnprintf_decl" = yes; then
64645
64646 cat >>confdefs.h <<_ACEOF
64647 #define HAVE_VSNPRINTF_DECL 1
64648 _ACEOF
64649
64650 fi
64651 fi
64652
64653
64654     { echo "$as_me:$LINENO: checking for setpgid" >&5
64655 echo $ECHO_N "checking for setpgid... $ECHO_C" >&6; }
64656 if test "${ac_cv_func_setpgid+set}" = set; then
64657   echo $ECHO_N "(cached) $ECHO_C" >&6
64658 else
64659   cat >conftest.$ac_ext <<_ACEOF
64660 /* confdefs.h.  */
64661 _ACEOF
64662 cat confdefs.h >>conftest.$ac_ext
64663 cat >>conftest.$ac_ext <<_ACEOF
64664 /* end confdefs.h.  */
64665 /* Define setpgid to an innocuous variant, in case <limits.h> declares setpgid.
64666    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
64667 #define setpgid innocuous_setpgid
64668
64669 /* System header to define __stub macros and hopefully few prototypes,
64670     which can conflict with char setpgid (); below.
64671     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
64672     <limits.h> exists even on freestanding compilers.  */
64673
64674 #ifdef __STDC__
64675 # include <limits.h>
64676 #else
64677 # include <assert.h>
64678 #endif
64679
64680 #undef setpgid
64681
64682 /* Override any GCC internal prototype to avoid an error.
64683    Use char because int might match the return type of a GCC
64684    builtin and then its argument prototype would still apply.  */
64685 #ifdef __cplusplus
64686 extern "C"
64687 #endif
64688 char setpgid ();
64689 /* The GNU C library defines this for functions which it implements
64690     to always fail with ENOSYS.  Some functions are actually named
64691     something starting with __ and the normal name is an alias.  */
64692 #if defined __stub_setpgid || defined __stub___setpgid
64693 choke me
64694 #endif
64695
64696 int
64697 main ()
64698 {
64699 return setpgid ();
64700   ;
64701   return 0;
64702 }
64703 _ACEOF
64704 rm -f conftest.$ac_objext conftest$ac_exeext
64705 if { (ac_try="$ac_link"
64706 case "(($ac_try" in
64707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
64708   *) ac_try_echo=$ac_try;;
64709 esac
64710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
64711   (eval "$ac_link") 2>conftest.er1
64712   ac_status=$?
64713   grep -v '^ *+' conftest.er1 >conftest.err
64714   rm -f conftest.er1
64715   cat conftest.err >&5
64716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
64717   (exit $ac_status); } && {
64718          test -z "$ac_c_werror_flag" ||
64719          test ! -s conftest.err
64720        } && test -s conftest$ac_exeext &&
64721        $as_test_x conftest$ac_exeext; then
64722   ac_cv_func_setpgid=yes
64723 else
64724   echo "$as_me: failed program was:" >&5
64725 sed 's/^/| /' conftest.$ac_ext >&5
64726
64727         ac_cv_func_setpgid=no
64728 fi
64729
64730 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
64731       conftest$ac_exeext conftest.$ac_ext
64732 fi
64733 { echo "$as_me:$LINENO: result: $ac_cv_func_setpgid" >&5
64734 echo "${ECHO_T}$ac_cv_func_setpgid" >&6; }
64735 if test $ac_cv_func_setpgid = yes; then
64736
64737
64738 cat >>confdefs.h <<\_ACEOF
64739 #define HAVE_SETPGID 1
64740 _ACEOF
64741
64742
64743 ice_have_setpgid=no
64744
64745 for ac_func in setpgid
64746 do
64747 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
64748 { echo "$as_me:$LINENO: checking for $ac_func" >&5
64749 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
64750 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
64751   echo $ECHO_N "(cached) $ECHO_C" >&6
64752 else
64753   cat >conftest.$ac_ext <<_ACEOF
64754 /* confdefs.h.  */
64755 _ACEOF
64756 cat confdefs.h >>conftest.$ac_ext
64757 cat >>conftest.$ac_ext <<_ACEOF
64758 /* end confdefs.h.  */
64759 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
64760    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
64761 #define $ac_func innocuous_$ac_func
64762
64763 /* System header to define __stub macros and hopefully few prototypes,
64764     which can conflict with char $ac_func (); below.
64765     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
64766     <limits.h> exists even on freestanding compilers.  */
64767
64768 #ifdef __STDC__
64769 # include <limits.h>
64770 #else
64771 # include <assert.h>
64772 #endif
64773
64774 #undef $ac_func
64775
64776 /* Override any GCC internal prototype to avoid an error.
64777    Use char because int might match the return type of a GCC
64778    builtin and then its argument prototype would still apply.  */
64779 #ifdef __cplusplus
64780 extern "C"
64781 #endif
64782 char $ac_func ();
64783 /* The GNU C library defines this for functions which it implements
64784     to always fail with ENOSYS.  Some functions are actually named
64785     something starting with __ and the normal name is an alias.  */
64786 #if defined __stub_$ac_func || defined __stub___$ac_func
64787 choke me
64788 #endif
64789
64790 int
64791 main ()
64792 {
64793 return $ac_func ();
64794   ;
64795   return 0;
64796 }
64797 _ACEOF
64798 rm -f conftest.$ac_objext conftest$ac_exeext
64799 if { (ac_try="$ac_link"
64800 case "(($ac_try" in
64801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
64802   *) ac_try_echo=$ac_try;;
64803 esac
64804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
64805   (eval "$ac_link") 2>conftest.er1
64806   ac_status=$?
64807   grep -v '^ *+' conftest.er1 >conftest.err
64808   rm -f conftest.er1
64809   cat conftest.err >&5
64810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
64811   (exit $ac_status); } && {
64812          test -z "$ac_c_werror_flag" ||
64813          test ! -s conftest.err
64814        } && test -s conftest$ac_exeext &&
64815        $as_test_x conftest$ac_exeext; then
64816   eval "$as_ac_var=yes"
64817 else
64818   echo "$as_me: failed program was:" >&5
64819 sed 's/^/| /' conftest.$ac_ext >&5
64820
64821         eval "$as_ac_var=no"
64822 fi
64823
64824 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
64825       conftest$ac_exeext conftest.$ac_ext
64826 fi
64827 ac_res=`eval echo '${'$as_ac_var'}'`
64828                { echo "$as_me:$LINENO: result: $ac_res" >&5
64829 echo "${ECHO_T}$ac_res" >&6; }
64830 if test `eval echo '${'$as_ac_var'}'` = yes; then
64831   cat >>confdefs.h <<_ACEOF
64832 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
64833 _ACEOF
64834  ice_have_setpgid=yes
64835 fi
64836 done
64837
64838 if test "${ice_have_setpgid}" = yes; then
64839 { echo "$as_me:$LINENO: checking for setpgid declaration in sys/types.h unistd.h" >&5
64840 echo $ECHO_N "checking for setpgid declaration in sys/types.h unistd.h... $ECHO_C" >&6; }
64841 if test "${ice_cv_have_setpgid_decl+set}" = set; then
64842   echo $ECHO_N "(cached) $ECHO_C" >&6
64843 else
64844
64845 ice_cv_have_setpgid_decl=no
64846 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
64847 ice_re_word='(^|[^a-zA-Z0-9_])'
64848 for header in sys/types.h unistd.h; do
64849 # Check for ordinary declaration
64850 cat >conftest.$ac_ext <<_ACEOF
64851 /* confdefs.h.  */
64852 _ACEOF
64853 cat confdefs.h >>conftest.$ac_ext
64854 cat >>conftest.$ac_ext <<_ACEOF
64855 /* end confdefs.h.  */
64856 #include <$header>
64857
64858 _ACEOF
64859 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
64860   $EGREP "${ice_re_word}setpgid[        ]*\(" >/dev/null 2>&1; then
64861   ice_cv_have_setpgid_decl=yes
64862 fi
64863 rm -f conftest*
64864
64865 if test "$ice_cv_have_setpgid_decl" = yes; then
64866         break
64867 fi
64868 # Check for "fixed" declaration like "getpid _PARAMS((int))"
64869 cat >conftest.$ac_ext <<_ACEOF
64870 /* confdefs.h.  */
64871 _ACEOF
64872 cat confdefs.h >>conftest.$ac_ext
64873 cat >>conftest.$ac_ext <<_ACEOF
64874 /* end confdefs.h.  */
64875 #include <$header>
64876
64877 _ACEOF
64878 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
64879   $EGREP "${ice_re_word}setpgid[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
64880   ice_cv_have_setpgid_decl=yes
64881 fi
64882 rm -f conftest*
64883
64884 if test "$ice_cv_have_setpgid_decl" = yes; then
64885         break
64886 fi
64887 done
64888
64889 fi
64890
64891 { echo "$as_me:$LINENO: result: $ice_cv_have_setpgid_decl" >&5
64892 echo "${ECHO_T}$ice_cv_have_setpgid_decl" >&6; }
64893 if test "$ice_cv_have_setpgid_decl" = yes; then
64894
64895 cat >>confdefs.h <<_ACEOF
64896 #define HAVE_SETPGID_DECL 1
64897 _ACEOF
64898
64899 fi
64900 fi
64901
64902
64903 fi
64904
64905
64906 { echo "$as_me:$LINENO: checking for setpgrp" >&5
64907 echo $ECHO_N "checking for setpgrp... $ECHO_C" >&6; }
64908 if test "${ac_cv_func_setpgrp+set}" = set; then
64909   echo $ECHO_N "(cached) $ECHO_C" >&6
64910 else
64911   cat >conftest.$ac_ext <<_ACEOF
64912 /* confdefs.h.  */
64913 _ACEOF
64914 cat confdefs.h >>conftest.$ac_ext
64915 cat >>conftest.$ac_ext <<_ACEOF
64916 /* end confdefs.h.  */
64917 /* Define setpgrp to an innocuous variant, in case <limits.h> declares setpgrp.
64918    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
64919 #define setpgrp innocuous_setpgrp
64920
64921 /* System header to define __stub macros and hopefully few prototypes,
64922     which can conflict with char setpgrp (); below.
64923     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
64924     <limits.h> exists even on freestanding compilers.  */
64925
64926 #ifdef __STDC__
64927 # include <limits.h>
64928 #else
64929 # include <assert.h>
64930 #endif
64931
64932 #undef setpgrp
64933
64934 /* Override any GCC internal prototype to avoid an error.
64935    Use char because int might match the return type of a GCC
64936    builtin and then its argument prototype would still apply.  */
64937 #ifdef __cplusplus
64938 extern "C"
64939 #endif
64940 char setpgrp ();
64941 /* The GNU C library defines this for functions which it implements
64942     to always fail with ENOSYS.  Some functions are actually named
64943     something starting with __ and the normal name is an alias.  */
64944 #if defined __stub_setpgrp || defined __stub___setpgrp
64945 choke me
64946 #endif
64947
64948 int
64949 main ()
64950 {
64951 return setpgrp ();
64952   ;
64953   return 0;
64954 }
64955 _ACEOF
64956 rm -f conftest.$ac_objext conftest$ac_exeext
64957 if { (ac_try="$ac_link"
64958 case "(($ac_try" in
64959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
64960   *) ac_try_echo=$ac_try;;
64961 esac
64962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
64963   (eval "$ac_link") 2>conftest.er1
64964   ac_status=$?
64965   grep -v '^ *+' conftest.er1 >conftest.err
64966   rm -f conftest.er1
64967   cat conftest.err >&5
64968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
64969   (exit $ac_status); } && {
64970          test -z "$ac_c_werror_flag" ||
64971          test ! -s conftest.err
64972        } && test -s conftest$ac_exeext &&
64973        $as_test_x conftest$ac_exeext; then
64974   ac_cv_func_setpgrp=yes
64975 else
64976   echo "$as_me: failed program was:" >&5
64977 sed 's/^/| /' conftest.$ac_ext >&5
64978
64979         ac_cv_func_setpgrp=no
64980 fi
64981
64982 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
64983       conftest$ac_exeext conftest.$ac_ext
64984 fi
64985 { echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp" >&5
64986 echo "${ECHO_T}$ac_cv_func_setpgrp" >&6; }
64987 if test $ac_cv_func_setpgrp = yes; then
64988   { echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
64989 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6; }
64990 if test "${ac_cv_func_setpgrp_void+set}" = set; then
64991   echo $ECHO_N "(cached) $ECHO_C" >&6
64992 else
64993   if test "$cross_compiling" = yes; then
64994   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
64995 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
64996    { (exit 1); exit 1; }; }
64997 else
64998   cat >conftest.$ac_ext <<_ACEOF
64999 /* confdefs.h.  */
65000 _ACEOF
65001 cat confdefs.h >>conftest.$ac_ext
65002 cat >>conftest.$ac_ext <<_ACEOF
65003 /* end confdefs.h.  */
65004 $ac_includes_default
65005 int
65006 main ()
65007 {
65008 /* If this system has a BSD-style setpgrp which takes arguments,
65009   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
65010   exit successfully. */
65011   return setpgrp (1,1) != -1;
65012   ;
65013   return 0;
65014 }
65015 _ACEOF
65016 rm -f conftest$ac_exeext
65017 if { (ac_try="$ac_link"
65018 case "(($ac_try" in
65019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
65020   *) ac_try_echo=$ac_try;;
65021 esac
65022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
65023   (eval "$ac_link") 2>&5
65024   ac_status=$?
65025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
65026   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
65027   { (case "(($ac_try" in
65028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
65029   *) ac_try_echo=$ac_try;;
65030 esac
65031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
65032   (eval "$ac_try") 2>&5
65033   ac_status=$?
65034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
65035   (exit $ac_status); }; }; then
65036   ac_cv_func_setpgrp_void=no
65037 else
65038   echo "$as_me: program exited with status $ac_status" >&5
65039 echo "$as_me: failed program was:" >&5
65040 sed 's/^/| /' conftest.$ac_ext >&5
65041
65042 ( exit $ac_status )
65043 ac_cv_func_setpgrp_void=yes
65044 fi
65045 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
65046 fi
65047
65048
65049 fi
65050 { echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
65051 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6; }
65052 if test $ac_cv_func_setpgrp_void = yes; then
65053
65054 cat >>confdefs.h <<\_ACEOF
65055 #define SETPGRP_VOID 1
65056 _ACEOF
65057
65058 fi
65059
65060 fi
65061
65062
65063 ice_have_setpgrp=no
65064
65065 for ac_func in setpgrp
65066 do
65067 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
65068 { echo "$as_me:$LINENO: checking for $ac_func" >&5
65069 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
65070 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
65071   echo $ECHO_N "(cached) $ECHO_C" >&6
65072 else
65073   cat >conftest.$ac_ext <<_ACEOF
65074 /* confdefs.h.  */
65075 _ACEOF
65076 cat confdefs.h >>conftest.$ac_ext
65077 cat >>conftest.$ac_ext <<_ACEOF
65078 /* end confdefs.h.  */
65079 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
65080    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
65081 #define $ac_func innocuous_$ac_func
65082
65083 /* System header to define __stub macros and hopefully few prototypes,
65084     which can conflict with char $ac_func (); below.
65085     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
65086     <limits.h> exists even on freestanding compilers.  */
65087
65088 #ifdef __STDC__
65089 # include <limits.h>
65090 #else
65091 # include <assert.h>
65092 #endif
65093
65094 #undef $ac_func
65095
65096 /* Override any GCC internal prototype to avoid an error.
65097    Use char because int might match the return type of a GCC
65098    builtin and then its argument prototype would still apply.  */
65099 #ifdef __cplusplus
65100 extern "C"
65101 #endif
65102 char $ac_func ();
65103 /* The GNU C library defines this for functions which it implements
65104     to always fail with ENOSYS.  Some functions are actually named
65105     something starting with __ and the normal name is an alias.  */
65106 #if defined __stub_$ac_func || defined __stub___$ac_func
65107 choke me
65108 #endif
65109
65110 int
65111 main ()
65112 {
65113 return $ac_func ();
65114   ;
65115   return 0;
65116 }
65117 _ACEOF
65118 rm -f conftest.$ac_objext conftest$ac_exeext
65119 if { (ac_try="$ac_link"
65120 case "(($ac_try" in
65121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
65122   *) ac_try_echo=$ac_try;;
65123 esac
65124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
65125   (eval "$ac_link") 2>conftest.er1
65126   ac_status=$?
65127   grep -v '^ *+' conftest.er1 >conftest.err
65128   rm -f conftest.er1
65129   cat conftest.err >&5
65130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
65131   (exit $ac_status); } && {
65132          test -z "$ac_c_werror_flag" ||
65133          test ! -s conftest.err
65134        } && test -s conftest$ac_exeext &&
65135        $as_test_x conftest$ac_exeext; then
65136   eval "$as_ac_var=yes"
65137 else
65138   echo "$as_me: failed program was:" >&5
65139 sed 's/^/| /' conftest.$ac_ext >&5
65140
65141         eval "$as_ac_var=no"
65142 fi
65143
65144 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
65145       conftest$ac_exeext conftest.$ac_ext
65146 fi
65147 ac_res=`eval echo '${'$as_ac_var'}'`
65148                { echo "$as_me:$LINENO: result: $ac_res" >&5
65149 echo "${ECHO_T}$ac_res" >&6; }
65150 if test `eval echo '${'$as_ac_var'}'` = yes; then
65151   cat >>confdefs.h <<_ACEOF
65152 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
65153 _ACEOF
65154  ice_have_setpgrp=yes
65155 fi
65156 done
65157
65158 if test "${ice_have_setpgrp}" = yes; then
65159 { echo "$as_me:$LINENO: checking for setpgrp declaration in sys/types.h unistd.h libc.h" >&5
65160 echo $ECHO_N "checking for setpgrp declaration in sys/types.h unistd.h libc.h... $ECHO_C" >&6; }
65161 if test "${ice_cv_have_setpgrp_decl+set}" = set; then
65162   echo $ECHO_N "(cached) $ECHO_C" >&6
65163 else
65164
65165 ice_cv_have_setpgrp_decl=no
65166 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
65167 ice_re_word='(^|[^a-zA-Z0-9_])'
65168 for header in sys/types.h unistd.h libc.h; do
65169 # Check for ordinary declaration
65170 cat >conftest.$ac_ext <<_ACEOF
65171 /* confdefs.h.  */
65172 _ACEOF
65173 cat confdefs.h >>conftest.$ac_ext
65174 cat >>conftest.$ac_ext <<_ACEOF
65175 /* end confdefs.h.  */
65176 #include <$header>
65177
65178 _ACEOF
65179 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
65180   $EGREP "${ice_re_word}setpgrp[        ]*\(" >/dev/null 2>&1; then
65181   ice_cv_have_setpgrp_decl=yes
65182 fi
65183 rm -f conftest*
65184
65185 if test "$ice_cv_have_setpgrp_decl" = yes; then
65186         break
65187 fi
65188 # Check for "fixed" declaration like "getpid _PARAMS((int))"
65189 cat >conftest.$ac_ext <<_ACEOF
65190 /* confdefs.h.  */
65191 _ACEOF
65192 cat confdefs.h >>conftest.$ac_ext
65193 cat >>conftest.$ac_ext <<_ACEOF
65194 /* end confdefs.h.  */
65195 #include <$header>
65196
65197 _ACEOF
65198 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
65199   $EGREP "${ice_re_word}setpgrp[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
65200   ice_cv_have_setpgrp_decl=yes
65201 fi
65202 rm -f conftest*
65203
65204 if test "$ice_cv_have_setpgrp_decl" = yes; then
65205         break
65206 fi
65207 done
65208
65209 fi
65210
65211 { echo "$as_me:$LINENO: result: $ice_cv_have_setpgrp_decl" >&5
65212 echo "${ECHO_T}$ice_cv_have_setpgrp_decl" >&6; }
65213 if test "$ice_cv_have_setpgrp_decl" = yes; then
65214
65215 cat >>confdefs.h <<_ACEOF
65216 #define HAVE_SETPGRP_DECL 1
65217 _ACEOF
65218
65219 fi
65220 fi
65221
65222
65223 ice_have_setsockopt=no
65224
65225 for ac_func in setsockopt
65226 do
65227 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
65228 { echo "$as_me:$LINENO: checking for $ac_func" >&5
65229 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
65230 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
65231   echo $ECHO_N "(cached) $ECHO_C" >&6
65232 else
65233   cat >conftest.$ac_ext <<_ACEOF
65234 /* confdefs.h.  */
65235 _ACEOF
65236 cat confdefs.h >>conftest.$ac_ext
65237 cat >>conftest.$ac_ext <<_ACEOF
65238 /* end confdefs.h.  */
65239 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
65240    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
65241 #define $ac_func innocuous_$ac_func
65242
65243 /* System header to define __stub macros and hopefully few prototypes,
65244     which can conflict with char $ac_func (); below.
65245     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
65246     <limits.h> exists even on freestanding compilers.  */
65247
65248 #ifdef __STDC__
65249 # include <limits.h>
65250 #else
65251 # include <assert.h>
65252 #endif
65253
65254 #undef $ac_func
65255
65256 /* Override any GCC internal prototype to avoid an error.
65257    Use char because int might match the return type of a GCC
65258    builtin and then its argument prototype would still apply.  */
65259 #ifdef __cplusplus
65260 extern "C"
65261 #endif
65262 char $ac_func ();
65263 /* The GNU C library defines this for functions which it implements
65264     to always fail with ENOSYS.  Some functions are actually named
65265     something starting with __ and the normal name is an alias.  */
65266 #if defined __stub_$ac_func || defined __stub___$ac_func
65267 choke me
65268 #endif
65269
65270 int
65271 main ()
65272 {
65273 return $ac_func ();
65274   ;
65275   return 0;
65276 }
65277 _ACEOF
65278 rm -f conftest.$ac_objext conftest$ac_exeext
65279 if { (ac_try="$ac_link"
65280 case "(($ac_try" in
65281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
65282   *) ac_try_echo=$ac_try;;
65283 esac
65284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
65285   (eval "$ac_link") 2>conftest.er1
65286   ac_status=$?
65287   grep -v '^ *+' conftest.er1 >conftest.err
65288   rm -f conftest.er1
65289   cat conftest.err >&5
65290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
65291   (exit $ac_status); } && {
65292          test -z "$ac_c_werror_flag" ||
65293          test ! -s conftest.err
65294        } && test -s conftest$ac_exeext &&
65295        $as_test_x conftest$ac_exeext; then
65296   eval "$as_ac_var=yes"
65297 else
65298   echo "$as_me: failed program was:" >&5
65299 sed 's/^/| /' conftest.$ac_ext >&5
65300
65301         eval "$as_ac_var=no"
65302 fi
65303
65304 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
65305       conftest$ac_exeext conftest.$ac_ext
65306 fi
65307 ac_res=`eval echo '${'$as_ac_var'}'`
65308                { echo "$as_me:$LINENO: result: $ac_res" >&5
65309 echo "${ECHO_T}$ac_res" >&6; }
65310 if test `eval echo '${'$as_ac_var'}'` = yes; then
65311   cat >>confdefs.h <<_ACEOF
65312 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
65313 _ACEOF
65314  ice_have_setsockopt=yes
65315 fi
65316 done
65317
65318 if test "${ice_have_setsockopt}" = yes; then
65319 { echo "$as_me:$LINENO: checking for setsockopt declaration in sys/types.h sys/socket.h" >&5
65320 echo $ECHO_N "checking for setsockopt declaration in sys/types.h sys/socket.h... $ECHO_C" >&6; }
65321 if test "${ice_cv_have_setsockopt_decl+set}" = set; then
65322   echo $ECHO_N "(cached) $ECHO_C" >&6
65323 else
65324
65325 ice_cv_have_setsockopt_decl=no
65326 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
65327 ice_re_word='(^|[^a-zA-Z0-9_])'
65328 for header in sys/types.h sys/socket.h; do
65329 # Check for ordinary declaration
65330 cat >conftest.$ac_ext <<_ACEOF
65331 /* confdefs.h.  */
65332 _ACEOF
65333 cat confdefs.h >>conftest.$ac_ext
65334 cat >>conftest.$ac_ext <<_ACEOF
65335 /* end confdefs.h.  */
65336 #include <$header>
65337
65338 _ACEOF
65339 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
65340   $EGREP "${ice_re_word}setsockopt[     ]*\(" >/dev/null 2>&1; then
65341   ice_cv_have_setsockopt_decl=yes
65342 fi
65343 rm -f conftest*
65344
65345 if test "$ice_cv_have_setsockopt_decl" = yes; then
65346         break
65347 fi
65348 # Check for "fixed" declaration like "getpid _PARAMS((int))"
65349 cat >conftest.$ac_ext <<_ACEOF
65350 /* confdefs.h.  */
65351 _ACEOF
65352 cat confdefs.h >>conftest.$ac_ext
65353 cat >>conftest.$ac_ext <<_ACEOF
65354 /* end confdefs.h.  */
65355 #include <$header>
65356
65357 _ACEOF
65358 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
65359   $EGREP "${ice_re_word}setsockopt[     ]*$ice_re_params\(\(" >/dev/null 2>&1; then
65360   ice_cv_have_setsockopt_decl=yes
65361 fi
65362 rm -f conftest*
65363
65364 if test "$ice_cv_have_setsockopt_decl" = yes; then
65365         break
65366 fi
65367 done
65368
65369 fi
65370
65371 { echo "$as_me:$LINENO: result: $ice_cv_have_setsockopt_decl" >&5
65372 echo "${ECHO_T}$ice_cv_have_setsockopt_decl" >&6; }
65373 if test "$ice_cv_have_setsockopt_decl" = yes; then
65374
65375 cat >>confdefs.h <<_ACEOF
65376 #define HAVE_SETSOCKOPT_DECL 1
65377 _ACEOF
65378
65379 fi
65380 fi
65381
65382
65383
65384
65385 for ac_func in sigaction sigemptyset sigvec
65386 do
65387 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
65388 { echo "$as_me:$LINENO: checking for $ac_func" >&5
65389 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
65390 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
65391   echo $ECHO_N "(cached) $ECHO_C" >&6
65392 else
65393   cat >conftest.$ac_ext <<_ACEOF
65394 /* confdefs.h.  */
65395 _ACEOF
65396 cat confdefs.h >>conftest.$ac_ext
65397 cat >>conftest.$ac_ext <<_ACEOF
65398 /* end confdefs.h.  */
65399 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
65400    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
65401 #define $ac_func innocuous_$ac_func
65402
65403 /* System header to define __stub macros and hopefully few prototypes,
65404     which can conflict with char $ac_func (); below.
65405     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
65406     <limits.h> exists even on freestanding compilers.  */
65407
65408 #ifdef __STDC__
65409 # include <limits.h>
65410 #else
65411 # include <assert.h>
65412 #endif
65413
65414 #undef $ac_func
65415
65416 /* Override any GCC internal prototype to avoid an error.
65417    Use char because int might match the return type of a GCC
65418    builtin and then its argument prototype would still apply.  */
65419 #ifdef __cplusplus
65420 extern "C"
65421 #endif
65422 char $ac_func ();
65423 /* The GNU C library defines this for functions which it implements
65424     to always fail with ENOSYS.  Some functions are actually named
65425     something starting with __ and the normal name is an alias.  */
65426 #if defined __stub_$ac_func || defined __stub___$ac_func
65427 choke me
65428 #endif
65429
65430 int
65431 main ()
65432 {
65433 return $ac_func ();
65434   ;
65435   return 0;
65436 }
65437 _ACEOF
65438 rm -f conftest.$ac_objext conftest$ac_exeext
65439 if { (ac_try="$ac_link"
65440 case "(($ac_try" in
65441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
65442   *) ac_try_echo=$ac_try;;
65443 esac
65444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
65445   (eval "$ac_link") 2>conftest.er1
65446   ac_status=$?
65447   grep -v '^ *+' conftest.er1 >conftest.err
65448   rm -f conftest.er1
65449   cat conftest.err >&5
65450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
65451   (exit $ac_status); } && {
65452          test -z "$ac_c_werror_flag" ||
65453          test ! -s conftest.err
65454        } && test -s conftest$ac_exeext &&
65455        $as_test_x conftest$ac_exeext; then
65456   eval "$as_ac_var=yes"
65457 else
65458   echo "$as_me: failed program was:" >&5
65459 sed 's/^/| /' conftest.$ac_ext >&5
65460
65461         eval "$as_ac_var=no"
65462 fi
65463
65464 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
65465       conftest$ac_exeext conftest.$ac_ext
65466 fi
65467 ac_res=`eval echo '${'$as_ac_var'}'`
65468                { echo "$as_me:$LINENO: result: $ac_res" >&5
65469 echo "${ECHO_T}$ac_res" >&6; }
65470 if test `eval echo '${'$as_ac_var'}'` = yes; then
65471   cat >>confdefs.h <<_ACEOF
65472 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
65473 _ACEOF
65474
65475 fi
65476 done
65477
65478
65479 ice_have_socket=no
65480
65481 for ac_func in socket
65482 do
65483 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
65484 { echo "$as_me:$LINENO: checking for $ac_func" >&5
65485 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
65486 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
65487   echo $ECHO_N "(cached) $ECHO_C" >&6
65488 else
65489   cat >conftest.$ac_ext <<_ACEOF
65490 /* confdefs.h.  */
65491 _ACEOF
65492 cat confdefs.h >>conftest.$ac_ext
65493 cat >>conftest.$ac_ext <<_ACEOF
65494 /* end confdefs.h.  */
65495 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
65496    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
65497 #define $ac_func innocuous_$ac_func
65498
65499 /* System header to define __stub macros and hopefully few prototypes,
65500     which can conflict with char $ac_func (); below.
65501     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
65502     <limits.h> exists even on freestanding compilers.  */
65503
65504 #ifdef __STDC__
65505 # include <limits.h>
65506 #else
65507 # include <assert.h>
65508 #endif
65509
65510 #undef $ac_func
65511
65512 /* Override any GCC internal prototype to avoid an error.
65513    Use char because int might match the return type of a GCC
65514    builtin and then its argument prototype would still apply.  */
65515 #ifdef __cplusplus
65516 extern "C"
65517 #endif
65518 char $ac_func ();
65519 /* The GNU C library defines this for functions which it implements
65520     to always fail with ENOSYS.  Some functions are actually named
65521     something starting with __ and the normal name is an alias.  */
65522 #if defined __stub_$ac_func || defined __stub___$ac_func
65523 choke me
65524 #endif
65525
65526 int
65527 main ()
65528 {
65529 return $ac_func ();
65530   ;
65531   return 0;
65532 }
65533 _ACEOF
65534 rm -f conftest.$ac_objext conftest$ac_exeext
65535 if { (ac_try="$ac_link"
65536 case "(($ac_try" in
65537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
65538   *) ac_try_echo=$ac_try;;
65539 esac
65540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
65541   (eval "$ac_link") 2>conftest.er1
65542   ac_status=$?
65543   grep -v '^ *+' conftest.er1 >conftest.err
65544   rm -f conftest.er1
65545   cat conftest.err >&5
65546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
65547   (exit $ac_status); } && {
65548          test -z "$ac_c_werror_flag" ||
65549          test ! -s conftest.err
65550        } && test -s conftest$ac_exeext &&
65551        $as_test_x conftest$ac_exeext; then
65552   eval "$as_ac_var=yes"
65553 else
65554   echo "$as_me: failed program was:" >&5
65555 sed 's/^/| /' conftest.$ac_ext >&5
65556
65557         eval "$as_ac_var=no"
65558 fi
65559
65560 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
65561       conftest$ac_exeext conftest.$ac_ext
65562 fi
65563 ac_res=`eval echo '${'$as_ac_var'}'`
65564                { echo "$as_me:$LINENO: result: $ac_res" >&5
65565 echo "${ECHO_T}$ac_res" >&6; }
65566 if test `eval echo '${'$as_ac_var'}'` = yes; then
65567   cat >>confdefs.h <<_ACEOF
65568 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
65569 _ACEOF
65570  ice_have_socket=yes
65571 fi
65572 done
65573
65574 if test "${ice_have_socket}" = yes; then
65575 { echo "$as_me:$LINENO: checking for socket declaration in sys/types.h sys/socket.h" >&5
65576 echo $ECHO_N "checking for socket declaration in sys/types.h sys/socket.h... $ECHO_C" >&6; }
65577 if test "${ice_cv_have_socket_decl+set}" = set; then
65578   echo $ECHO_N "(cached) $ECHO_C" >&6
65579 else
65580
65581 ice_cv_have_socket_decl=no
65582 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
65583 ice_re_word='(^|[^a-zA-Z0-9_])'
65584 for header in sys/types.h sys/socket.h; do
65585 # Check for ordinary declaration
65586 cat >conftest.$ac_ext <<_ACEOF
65587 /* confdefs.h.  */
65588 _ACEOF
65589 cat confdefs.h >>conftest.$ac_ext
65590 cat >>conftest.$ac_ext <<_ACEOF
65591 /* end confdefs.h.  */
65592 #include <$header>
65593
65594 _ACEOF
65595 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
65596   $EGREP "${ice_re_word}socket[         ]*\(" >/dev/null 2>&1; then
65597   ice_cv_have_socket_decl=yes
65598 fi
65599 rm -f conftest*
65600
65601 if test "$ice_cv_have_socket_decl" = yes; then
65602         break
65603 fi
65604 # Check for "fixed" declaration like "getpid _PARAMS((int))"
65605 cat >conftest.$ac_ext <<_ACEOF
65606 /* confdefs.h.  */
65607 _ACEOF
65608 cat confdefs.h >>conftest.$ac_ext
65609 cat >>conftest.$ac_ext <<_ACEOF
65610 /* end confdefs.h.  */
65611 #include <$header>
65612
65613 _ACEOF
65614 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
65615   $EGREP "${ice_re_word}socket[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
65616   ice_cv_have_socket_decl=yes
65617 fi
65618 rm -f conftest*
65619
65620 if test "$ice_cv_have_socket_decl" = yes; then
65621         break
65622 fi
65623 done
65624
65625 fi
65626
65627 { echo "$as_me:$LINENO: result: $ice_cv_have_socket_decl" >&5
65628 echo "${ECHO_T}$ice_cv_have_socket_decl" >&6; }
65629 if test "$ice_cv_have_socket_decl" = yes; then
65630
65631 cat >>confdefs.h <<_ACEOF
65632 #define HAVE_SOCKET_DECL 1
65633 _ACEOF
65634
65635 fi
65636 fi
65637
65638
65639 ice_have_socketpair=no
65640
65641 for ac_func in socketpair
65642 do
65643 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
65644 { echo "$as_me:$LINENO: checking for $ac_func" >&5
65645 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
65646 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
65647   echo $ECHO_N "(cached) $ECHO_C" >&6
65648 else
65649   cat >conftest.$ac_ext <<_ACEOF
65650 /* confdefs.h.  */
65651 _ACEOF
65652 cat confdefs.h >>conftest.$ac_ext
65653 cat >>conftest.$ac_ext <<_ACEOF
65654 /* end confdefs.h.  */
65655 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
65656    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
65657 #define $ac_func innocuous_$ac_func
65658
65659 /* System header to define __stub macros and hopefully few prototypes,
65660     which can conflict with char $ac_func (); below.
65661     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
65662     <limits.h> exists even on freestanding compilers.  */
65663
65664 #ifdef __STDC__
65665 # include <limits.h>
65666 #else
65667 # include <assert.h>
65668 #endif
65669
65670 #undef $ac_func
65671
65672 /* Override any GCC internal prototype to avoid an error.
65673    Use char because int might match the return type of a GCC
65674    builtin and then its argument prototype would still apply.  */
65675 #ifdef __cplusplus
65676 extern "C"
65677 #endif
65678 char $ac_func ();
65679 /* The GNU C library defines this for functions which it implements
65680     to always fail with ENOSYS.  Some functions are actually named
65681     something starting with __ and the normal name is an alias.  */
65682 #if defined __stub_$ac_func || defined __stub___$ac_func
65683 choke me
65684 #endif
65685
65686 int
65687 main ()
65688 {
65689 return $ac_func ();
65690   ;
65691   return 0;
65692 }
65693 _ACEOF
65694 rm -f conftest.$ac_objext conftest$ac_exeext
65695 if { (ac_try="$ac_link"
65696 case "(($ac_try" in
65697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
65698   *) ac_try_echo=$ac_try;;
65699 esac
65700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
65701   (eval "$ac_link") 2>conftest.er1
65702   ac_status=$?
65703   grep -v '^ *+' conftest.er1 >conftest.err
65704   rm -f conftest.er1
65705   cat conftest.err >&5
65706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
65707   (exit $ac_status); } && {
65708          test -z "$ac_c_werror_flag" ||
65709          test ! -s conftest.err
65710        } && test -s conftest$ac_exeext &&
65711        $as_test_x conftest$ac_exeext; then
65712   eval "$as_ac_var=yes"
65713 else
65714   echo "$as_me: failed program was:" >&5
65715 sed 's/^/| /' conftest.$ac_ext >&5
65716
65717         eval "$as_ac_var=no"
65718 fi
65719
65720 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
65721       conftest$ac_exeext conftest.$ac_ext
65722 fi
65723 ac_res=`eval echo '${'$as_ac_var'}'`
65724                { echo "$as_me:$LINENO: result: $ac_res" >&5
65725 echo "${ECHO_T}$ac_res" >&6; }
65726 if test `eval echo '${'$as_ac_var'}'` = yes; then
65727   cat >>confdefs.h <<_ACEOF
65728 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
65729 _ACEOF
65730  ice_have_socketpair=yes
65731 fi
65732 done
65733
65734 if test "${ice_have_socketpair}" = yes; then
65735 { echo "$as_me:$LINENO: checking for socketpair declaration in sys/types.h sys/socket.h" >&5
65736 echo $ECHO_N "checking for socketpair declaration in sys/types.h sys/socket.h... $ECHO_C" >&6; }
65737 if test "${ice_cv_have_socketpair_decl+set}" = set; then
65738   echo $ECHO_N "(cached) $ECHO_C" >&6
65739 else
65740
65741 ice_cv_have_socketpair_decl=no
65742 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
65743 ice_re_word='(^|[^a-zA-Z0-9_])'
65744 for header in sys/types.h sys/socket.h; do
65745 # Check for ordinary declaration
65746 cat >conftest.$ac_ext <<_ACEOF
65747 /* confdefs.h.  */
65748 _ACEOF
65749 cat confdefs.h >>conftest.$ac_ext
65750 cat >>conftest.$ac_ext <<_ACEOF
65751 /* end confdefs.h.  */
65752 #include <$header>
65753
65754 _ACEOF
65755 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
65756   $EGREP "${ice_re_word}socketpair[     ]*\(" >/dev/null 2>&1; then
65757   ice_cv_have_socketpair_decl=yes
65758 fi
65759 rm -f conftest*
65760
65761 if test "$ice_cv_have_socketpair_decl" = yes; then
65762         break
65763 fi
65764 # Check for "fixed" declaration like "getpid _PARAMS((int))"
65765 cat >conftest.$ac_ext <<_ACEOF
65766 /* confdefs.h.  */
65767 _ACEOF
65768 cat confdefs.h >>conftest.$ac_ext
65769 cat >>conftest.$ac_ext <<_ACEOF
65770 /* end confdefs.h.  */
65771 #include <$header>
65772
65773 _ACEOF
65774 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
65775   $EGREP "${ice_re_word}socketpair[     ]*$ice_re_params\(\(" >/dev/null 2>&1; then
65776   ice_cv_have_socketpair_decl=yes
65777 fi
65778 rm -f conftest*
65779
65780 if test "$ice_cv_have_socketpair_decl" = yes; then
65781         break
65782 fi
65783 done
65784
65785 fi
65786
65787 { echo "$as_me:$LINENO: result: $ice_cv_have_socketpair_decl" >&5
65788 echo "${ECHO_T}$ice_cv_have_socketpair_decl" >&6; }
65789 if test "$ice_cv_have_socketpair_decl" = yes; then
65790
65791 cat >>confdefs.h <<_ACEOF
65792 #define HAVE_SOCKETPAIR_DECL 1
65793 _ACEOF
65794
65795 fi
65796 fi
65797
65798
65799 ice_have_sscanf=no
65800
65801 for ac_func in sscanf
65802 do
65803 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
65804 { echo "$as_me:$LINENO: checking for $ac_func" >&5
65805 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
65806 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
65807   echo $ECHO_N "(cached) $ECHO_C" >&6
65808 else
65809   cat >conftest.$ac_ext <<_ACEOF
65810 /* confdefs.h.  */
65811 _ACEOF
65812 cat confdefs.h >>conftest.$ac_ext
65813 cat >>conftest.$ac_ext <<_ACEOF
65814 /* end confdefs.h.  */
65815 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
65816    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
65817 #define $ac_func innocuous_$ac_func
65818
65819 /* System header to define __stub macros and hopefully few prototypes,
65820     which can conflict with char $ac_func (); below.
65821     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
65822     <limits.h> exists even on freestanding compilers.  */
65823
65824 #ifdef __STDC__
65825 # include <limits.h>
65826 #else
65827 # include <assert.h>
65828 #endif
65829
65830 #undef $ac_func
65831
65832 /* Override any GCC internal prototype to avoid an error.
65833    Use char because int might match the return type of a GCC
65834    builtin and then its argument prototype would still apply.  */
65835 #ifdef __cplusplus
65836 extern "C"
65837 #endif
65838 char $ac_func ();
65839 /* The GNU C library defines this for functions which it implements
65840     to always fail with ENOSYS.  Some functions are actually named
65841     something starting with __ and the normal name is an alias.  */
65842 #if defined __stub_$ac_func || defined __stub___$ac_func
65843 choke me
65844 #endif
65845
65846 int
65847 main ()
65848 {
65849 return $ac_func ();
65850   ;
65851   return 0;
65852 }
65853 _ACEOF
65854 rm -f conftest.$ac_objext conftest$ac_exeext
65855 if { (ac_try="$ac_link"
65856 case "(($ac_try" in
65857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
65858   *) ac_try_echo=$ac_try;;
65859 esac
65860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
65861   (eval "$ac_link") 2>conftest.er1
65862   ac_status=$?
65863   grep -v '^ *+' conftest.er1 >conftest.err
65864   rm -f conftest.er1
65865   cat conftest.err >&5
65866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
65867   (exit $ac_status); } && {
65868          test -z "$ac_c_werror_flag" ||
65869          test ! -s conftest.err
65870        } && test -s conftest$ac_exeext &&
65871        $as_test_x conftest$ac_exeext; then
65872   eval "$as_ac_var=yes"
65873 else
65874   echo "$as_me: failed program was:" >&5
65875 sed 's/^/| /' conftest.$ac_ext >&5
65876
65877         eval "$as_ac_var=no"
65878 fi
65879
65880 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
65881       conftest$ac_exeext conftest.$ac_ext
65882 fi
65883 ac_res=`eval echo '${'$as_ac_var'}'`
65884                { echo "$as_me:$LINENO: result: $ac_res" >&5
65885 echo "${ECHO_T}$ac_res" >&6; }
65886 if test `eval echo '${'$as_ac_var'}'` = yes; then
65887   cat >>confdefs.h <<_ACEOF
65888 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
65889 _ACEOF
65890  ice_have_sscanf=yes
65891 fi
65892 done
65893
65894 if test "${ice_have_sscanf}" = yes; then
65895 { echo "$as_me:$LINENO: checking for sscanf declaration in stdio.h" >&5
65896 echo $ECHO_N "checking for sscanf declaration in stdio.h... $ECHO_C" >&6; }
65897 if test "${ice_cv_have_sscanf_decl+set}" = set; then
65898   echo $ECHO_N "(cached) $ECHO_C" >&6
65899 else
65900
65901 ice_cv_have_sscanf_decl=no
65902 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
65903 ice_re_word='(^|[^a-zA-Z0-9_])'
65904 for header in stdio.h; do
65905 # Check for ordinary declaration
65906 cat >conftest.$ac_ext <<_ACEOF
65907 /* confdefs.h.  */
65908 _ACEOF
65909 cat confdefs.h >>conftest.$ac_ext
65910 cat >>conftest.$ac_ext <<_ACEOF
65911 /* end confdefs.h.  */
65912 #include <$header>
65913
65914 _ACEOF
65915 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
65916   $EGREP "${ice_re_word}sscanf[         ]*\(" >/dev/null 2>&1; then
65917   ice_cv_have_sscanf_decl=yes
65918 fi
65919 rm -f conftest*
65920
65921 if test "$ice_cv_have_sscanf_decl" = yes; then
65922         break
65923 fi
65924 # Check for "fixed" declaration like "getpid _PARAMS((int))"
65925 cat >conftest.$ac_ext <<_ACEOF
65926 /* confdefs.h.  */
65927 _ACEOF
65928 cat confdefs.h >>conftest.$ac_ext
65929 cat >>conftest.$ac_ext <<_ACEOF
65930 /* end confdefs.h.  */
65931 #include <$header>
65932
65933 _ACEOF
65934 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
65935   $EGREP "${ice_re_word}sscanf[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
65936   ice_cv_have_sscanf_decl=yes
65937 fi
65938 rm -f conftest*
65939
65940 if test "$ice_cv_have_sscanf_decl" = yes; then
65941         break
65942 fi
65943 done
65944
65945 fi
65946
65947 { echo "$as_me:$LINENO: result: $ice_cv_have_sscanf_decl" >&5
65948 echo "${ECHO_T}$ice_cv_have_sscanf_decl" >&6; }
65949 if test "$ice_cv_have_sscanf_decl" = yes; then
65950
65951 cat >>confdefs.h <<_ACEOF
65952 #define HAVE_SSCANF_DECL 1
65953 _ACEOF
65954
65955 fi
65956 fi
65957
65958
65959 ice_have_strerror=no
65960
65961 for ac_func in strerror
65962 do
65963 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
65964 { echo "$as_me:$LINENO: checking for $ac_func" >&5
65965 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
65966 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
65967   echo $ECHO_N "(cached) $ECHO_C" >&6
65968 else
65969   cat >conftest.$ac_ext <<_ACEOF
65970 /* confdefs.h.  */
65971 _ACEOF
65972 cat confdefs.h >>conftest.$ac_ext
65973 cat >>conftest.$ac_ext <<_ACEOF
65974 /* end confdefs.h.  */
65975 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
65976    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
65977 #define $ac_func innocuous_$ac_func
65978
65979 /* System header to define __stub macros and hopefully few prototypes,
65980     which can conflict with char $ac_func (); below.
65981     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
65982     <limits.h> exists even on freestanding compilers.  */
65983
65984 #ifdef __STDC__
65985 # include <limits.h>
65986 #else
65987 # include <assert.h>
65988 #endif
65989
65990 #undef $ac_func
65991
65992 /* Override any GCC internal prototype to avoid an error.
65993    Use char because int might match the return type of a GCC
65994    builtin and then its argument prototype would still apply.  */
65995 #ifdef __cplusplus
65996 extern "C"
65997 #endif
65998 char $ac_func ();
65999 /* The GNU C library defines this for functions which it implements
66000     to always fail with ENOSYS.  Some functions are actually named
66001     something starting with __ and the normal name is an alias.  */
66002 #if defined __stub_$ac_func || defined __stub___$ac_func
66003 choke me
66004 #endif
66005
66006 int
66007 main ()
66008 {
66009 return $ac_func ();
66010   ;
66011   return 0;
66012 }
66013 _ACEOF
66014 rm -f conftest.$ac_objext conftest$ac_exeext
66015 if { (ac_try="$ac_link"
66016 case "(($ac_try" in
66017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
66018   *) ac_try_echo=$ac_try;;
66019 esac
66020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
66021   (eval "$ac_link") 2>conftest.er1
66022   ac_status=$?
66023   grep -v '^ *+' conftest.er1 >conftest.err
66024   rm -f conftest.er1
66025   cat conftest.err >&5
66026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
66027   (exit $ac_status); } && {
66028          test -z "$ac_c_werror_flag" ||
66029          test ! -s conftest.err
66030        } && test -s conftest$ac_exeext &&
66031        $as_test_x conftest$ac_exeext; then
66032   eval "$as_ac_var=yes"
66033 else
66034   echo "$as_me: failed program was:" >&5
66035 sed 's/^/| /' conftest.$ac_ext >&5
66036
66037         eval "$as_ac_var=no"
66038 fi
66039
66040 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
66041       conftest$ac_exeext conftest.$ac_ext
66042 fi
66043 ac_res=`eval echo '${'$as_ac_var'}'`
66044                { echo "$as_me:$LINENO: result: $ac_res" >&5
66045 echo "${ECHO_T}$ac_res" >&6; }
66046 if test `eval echo '${'$as_ac_var'}'` = yes; then
66047   cat >>confdefs.h <<_ACEOF
66048 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
66049 _ACEOF
66050  ice_have_strerror=yes
66051 fi
66052 done
66053
66054 if test "${ice_have_strerror}" = yes; then
66055 { echo "$as_me:$LINENO: checking for strerror declaration in string.h strings.h" >&5
66056 echo $ECHO_N "checking for strerror declaration in string.h strings.h... $ECHO_C" >&6; }
66057 if test "${ice_cv_have_strerror_decl+set}" = set; then
66058   echo $ECHO_N "(cached) $ECHO_C" >&6
66059 else
66060
66061 ice_cv_have_strerror_decl=no
66062 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
66063 ice_re_word='(^|[^a-zA-Z0-9_])'
66064 for header in string.h strings.h; do
66065 # Check for ordinary declaration
66066 cat >conftest.$ac_ext <<_ACEOF
66067 /* confdefs.h.  */
66068 _ACEOF
66069 cat confdefs.h >>conftest.$ac_ext
66070 cat >>conftest.$ac_ext <<_ACEOF
66071 /* end confdefs.h.  */
66072 #include <$header>
66073
66074 _ACEOF
66075 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
66076   $EGREP "${ice_re_word}strerror[       ]*\(" >/dev/null 2>&1; then
66077   ice_cv_have_strerror_decl=yes
66078 fi
66079 rm -f conftest*
66080
66081 if test "$ice_cv_have_strerror_decl" = yes; then
66082         break
66083 fi
66084 # Check for "fixed" declaration like "getpid _PARAMS((int))"
66085 cat >conftest.$ac_ext <<_ACEOF
66086 /* confdefs.h.  */
66087 _ACEOF
66088 cat confdefs.h >>conftest.$ac_ext
66089 cat >>conftest.$ac_ext <<_ACEOF
66090 /* end confdefs.h.  */
66091 #include <$header>
66092
66093 _ACEOF
66094 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
66095   $EGREP "${ice_re_word}strerror[       ]*$ice_re_params\(\(" >/dev/null 2>&1; then
66096   ice_cv_have_strerror_decl=yes
66097 fi
66098 rm -f conftest*
66099
66100 if test "$ice_cv_have_strerror_decl" = yes; then
66101         break
66102 fi
66103 done
66104
66105 fi
66106
66107 { echo "$as_me:$LINENO: result: $ice_cv_have_strerror_decl" >&5
66108 echo "${ECHO_T}$ice_cv_have_strerror_decl" >&6; }
66109 if test "$ice_cv_have_strerror_decl" = yes; then
66110
66111 cat >>confdefs.h <<_ACEOF
66112 #define HAVE_STRERROR_DECL 1
66113 _ACEOF
66114
66115 fi
66116 fi
66117
66118
66119 for ac_func in strftime
66120 do
66121 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
66122 { echo "$as_me:$LINENO: checking for $ac_func" >&5
66123 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
66124 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
66125   echo $ECHO_N "(cached) $ECHO_C" >&6
66126 else
66127   cat >conftest.$ac_ext <<_ACEOF
66128 /* confdefs.h.  */
66129 _ACEOF
66130 cat confdefs.h >>conftest.$ac_ext
66131 cat >>conftest.$ac_ext <<_ACEOF
66132 /* end confdefs.h.  */
66133 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
66134    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
66135 #define $ac_func innocuous_$ac_func
66136
66137 /* System header to define __stub macros and hopefully few prototypes,
66138     which can conflict with char $ac_func (); below.
66139     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
66140     <limits.h> exists even on freestanding compilers.  */
66141
66142 #ifdef __STDC__
66143 # include <limits.h>
66144 #else
66145 # include <assert.h>
66146 #endif
66147
66148 #undef $ac_func
66149
66150 /* Override any GCC internal prototype to avoid an error.
66151    Use char because int might match the return type of a GCC
66152    builtin and then its argument prototype would still apply.  */
66153 #ifdef __cplusplus
66154 extern "C"
66155 #endif
66156 char $ac_func ();
66157 /* The GNU C library defines this for functions which it implements
66158     to always fail with ENOSYS.  Some functions are actually named
66159     something starting with __ and the normal name is an alias.  */
66160 #if defined __stub_$ac_func || defined __stub___$ac_func
66161 choke me
66162 #endif
66163
66164 int
66165 main ()
66166 {
66167 return $ac_func ();
66168   ;
66169   return 0;
66170 }
66171 _ACEOF
66172 rm -f conftest.$ac_objext conftest$ac_exeext
66173 if { (ac_try="$ac_link"
66174 case "(($ac_try" in
66175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
66176   *) ac_try_echo=$ac_try;;
66177 esac
66178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
66179   (eval "$ac_link") 2>conftest.er1
66180   ac_status=$?
66181   grep -v '^ *+' conftest.er1 >conftest.err
66182   rm -f conftest.er1
66183   cat conftest.err >&5
66184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
66185   (exit $ac_status); } && {
66186          test -z "$ac_c_werror_flag" ||
66187          test ! -s conftest.err
66188        } && test -s conftest$ac_exeext &&
66189        $as_test_x conftest$ac_exeext; then
66190   eval "$as_ac_var=yes"
66191 else
66192   echo "$as_me: failed program was:" >&5
66193 sed 's/^/| /' conftest.$ac_ext >&5
66194
66195         eval "$as_ac_var=no"
66196 fi
66197
66198 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
66199       conftest$ac_exeext conftest.$ac_ext
66200 fi
66201 ac_res=`eval echo '${'$as_ac_var'}'`
66202                { echo "$as_me:$LINENO: result: $ac_res" >&5
66203 echo "${ECHO_T}$ac_res" >&6; }
66204 if test `eval echo '${'$as_ac_var'}'` = yes; then
66205   cat >>confdefs.h <<_ACEOF
66206 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
66207 _ACEOF
66208
66209 else
66210   # strftime is in -lintl on SCO UNIX.
66211 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
66212 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
66213 if test "${ac_cv_lib_intl_strftime+set}" = set; then
66214   echo $ECHO_N "(cached) $ECHO_C" >&6
66215 else
66216   ac_check_lib_save_LIBS=$LIBS
66217 LIBS="-lintl  $LIBS"
66218 cat >conftest.$ac_ext <<_ACEOF
66219 /* confdefs.h.  */
66220 _ACEOF
66221 cat confdefs.h >>conftest.$ac_ext
66222 cat >>conftest.$ac_ext <<_ACEOF
66223 /* end confdefs.h.  */
66224
66225 /* Override any GCC internal prototype to avoid an error.
66226    Use char because int might match the return type of a GCC
66227    builtin and then its argument prototype would still apply.  */
66228 #ifdef __cplusplus
66229 extern "C"
66230 #endif
66231 char strftime ();
66232 int
66233 main ()
66234 {
66235 return strftime ();
66236   ;
66237   return 0;
66238 }
66239 _ACEOF
66240 rm -f conftest.$ac_objext conftest$ac_exeext
66241 if { (ac_try="$ac_link"
66242 case "(($ac_try" in
66243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
66244   *) ac_try_echo=$ac_try;;
66245 esac
66246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
66247   (eval "$ac_link") 2>conftest.er1
66248   ac_status=$?
66249   grep -v '^ *+' conftest.er1 >conftest.err
66250   rm -f conftest.er1
66251   cat conftest.err >&5
66252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
66253   (exit $ac_status); } && {
66254          test -z "$ac_c_werror_flag" ||
66255          test ! -s conftest.err
66256        } && test -s conftest$ac_exeext &&
66257        $as_test_x conftest$ac_exeext; then
66258   ac_cv_lib_intl_strftime=yes
66259 else
66260   echo "$as_me: failed program was:" >&5
66261 sed 's/^/| /' conftest.$ac_ext >&5
66262
66263         ac_cv_lib_intl_strftime=no
66264 fi
66265
66266 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
66267       conftest$ac_exeext conftest.$ac_ext
66268 LIBS=$ac_check_lib_save_LIBS
66269 fi
66270 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
66271 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
66272 if test $ac_cv_lib_intl_strftime = yes; then
66273   cat >>confdefs.h <<\_ACEOF
66274 #define HAVE_STRFTIME 1
66275 _ACEOF
66276
66277 LIBS="-lintl $LIBS"
66278 fi
66279
66280 fi
66281 done
66282
66283
66284 ice_have_strftime=no
66285
66286 for ac_func in strftime
66287 do
66288 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
66289 { echo "$as_me:$LINENO: checking for $ac_func" >&5
66290 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
66291 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
66292   echo $ECHO_N "(cached) $ECHO_C" >&6
66293 else
66294   cat >conftest.$ac_ext <<_ACEOF
66295 /* confdefs.h.  */
66296 _ACEOF
66297 cat confdefs.h >>conftest.$ac_ext
66298 cat >>conftest.$ac_ext <<_ACEOF
66299 /* end confdefs.h.  */
66300 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
66301    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
66302 #define $ac_func innocuous_$ac_func
66303
66304 /* System header to define __stub macros and hopefully few prototypes,
66305     which can conflict with char $ac_func (); below.
66306     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
66307     <limits.h> exists even on freestanding compilers.  */
66308
66309 #ifdef __STDC__
66310 # include <limits.h>
66311 #else
66312 # include <assert.h>
66313 #endif
66314
66315 #undef $ac_func
66316
66317 /* Override any GCC internal prototype to avoid an error.
66318    Use char because int might match the return type of a GCC
66319    builtin and then its argument prototype would still apply.  */
66320 #ifdef __cplusplus
66321 extern "C"
66322 #endif
66323 char $ac_func ();
66324 /* The GNU C library defines this for functions which it implements
66325     to always fail with ENOSYS.  Some functions are actually named
66326     something starting with __ and the normal name is an alias.  */
66327 #if defined __stub_$ac_func || defined __stub___$ac_func
66328 choke me
66329 #endif
66330
66331 int
66332 main ()
66333 {
66334 return $ac_func ();
66335   ;
66336   return 0;
66337 }
66338 _ACEOF
66339 rm -f conftest.$ac_objext conftest$ac_exeext
66340 if { (ac_try="$ac_link"
66341 case "(($ac_try" in
66342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
66343   *) ac_try_echo=$ac_try;;
66344 esac
66345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
66346   (eval "$ac_link") 2>conftest.er1
66347   ac_status=$?
66348   grep -v '^ *+' conftest.er1 >conftest.err
66349   rm -f conftest.er1
66350   cat conftest.err >&5
66351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
66352   (exit $ac_status); } && {
66353          test -z "$ac_c_werror_flag" ||
66354          test ! -s conftest.err
66355        } && test -s conftest$ac_exeext &&
66356        $as_test_x conftest$ac_exeext; then
66357   eval "$as_ac_var=yes"
66358 else
66359   echo "$as_me: failed program was:" >&5
66360 sed 's/^/| /' conftest.$ac_ext >&5
66361
66362         eval "$as_ac_var=no"
66363 fi
66364
66365 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
66366       conftest$ac_exeext conftest.$ac_ext
66367 fi
66368 ac_res=`eval echo '${'$as_ac_var'}'`
66369                { echo "$as_me:$LINENO: result: $ac_res" >&5
66370 echo "${ECHO_T}$ac_res" >&6; }
66371 if test `eval echo '${'$as_ac_var'}'` = yes; then
66372   cat >>confdefs.h <<_ACEOF
66373 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
66374 _ACEOF
66375  ice_have_strftime=yes
66376 fi
66377 done
66378
66379 if test "${ice_have_strftime}" = yes; then
66380 { echo "$as_me:$LINENO: checking for strftime declaration in time.h sys/time.h" >&5
66381 echo $ECHO_N "checking for strftime declaration in time.h sys/time.h... $ECHO_C" >&6; }
66382 if test "${ice_cv_have_strftime_decl+set}" = set; then
66383   echo $ECHO_N "(cached) $ECHO_C" >&6
66384 else
66385
66386 ice_cv_have_strftime_decl=no
66387 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
66388 ice_re_word='(^|[^a-zA-Z0-9_])'
66389 for header in time.h sys/time.h; do
66390 # Check for ordinary declaration
66391 cat >conftest.$ac_ext <<_ACEOF
66392 /* confdefs.h.  */
66393 _ACEOF
66394 cat confdefs.h >>conftest.$ac_ext
66395 cat >>conftest.$ac_ext <<_ACEOF
66396 /* end confdefs.h.  */
66397 #include <$header>
66398
66399 _ACEOF
66400 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
66401   $EGREP "${ice_re_word}strftime[       ]*\(" >/dev/null 2>&1; then
66402   ice_cv_have_strftime_decl=yes
66403 fi
66404 rm -f conftest*
66405
66406 if test "$ice_cv_have_strftime_decl" = yes; then
66407         break
66408 fi
66409 # Check for "fixed" declaration like "getpid _PARAMS((int))"
66410 cat >conftest.$ac_ext <<_ACEOF
66411 /* confdefs.h.  */
66412 _ACEOF
66413 cat confdefs.h >>conftest.$ac_ext
66414 cat >>conftest.$ac_ext <<_ACEOF
66415 /* end confdefs.h.  */
66416 #include <$header>
66417
66418 _ACEOF
66419 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
66420   $EGREP "${ice_re_word}strftime[       ]*$ice_re_params\(\(" >/dev/null 2>&1; then
66421   ice_cv_have_strftime_decl=yes
66422 fi
66423 rm -f conftest*
66424
66425 if test "$ice_cv_have_strftime_decl" = yes; then
66426         break
66427 fi
66428 done
66429
66430 fi
66431
66432 { echo "$as_me:$LINENO: result: $ice_cv_have_strftime_decl" >&5
66433 echo "${ECHO_T}$ice_cv_have_strftime_decl" >&6; }
66434 if test "$ice_cv_have_strftime_decl" = yes; then
66435
66436 cat >>confdefs.h <<_ACEOF
66437 #define HAVE_STRFTIME_DECL 1
66438 _ACEOF
66439
66440 fi
66441 fi
66442
66443
66444 ice_have_strncasecmp=no
66445
66446 for ac_func in strncasecmp
66447 do
66448 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
66449 { echo "$as_me:$LINENO: checking for $ac_func" >&5
66450 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
66451 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
66452   echo $ECHO_N "(cached) $ECHO_C" >&6
66453 else
66454   cat >conftest.$ac_ext <<_ACEOF
66455 /* confdefs.h.  */
66456 _ACEOF
66457 cat confdefs.h >>conftest.$ac_ext
66458 cat >>conftest.$ac_ext <<_ACEOF
66459 /* end confdefs.h.  */
66460 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
66461    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
66462 #define $ac_func innocuous_$ac_func
66463
66464 /* System header to define __stub macros and hopefully few prototypes,
66465     which can conflict with char $ac_func (); below.
66466     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
66467     <limits.h> exists even on freestanding compilers.  */
66468
66469 #ifdef __STDC__
66470 # include <limits.h>
66471 #else
66472 # include <assert.h>
66473 #endif
66474
66475 #undef $ac_func
66476
66477 /* Override any GCC internal prototype to avoid an error.
66478    Use char because int might match the return type of a GCC
66479    builtin and then its argument prototype would still apply.  */
66480 #ifdef __cplusplus
66481 extern "C"
66482 #endif
66483 char $ac_func ();
66484 /* The GNU C library defines this for functions which it implements
66485     to always fail with ENOSYS.  Some functions are actually named
66486     something starting with __ and the normal name is an alias.  */
66487 #if defined __stub_$ac_func || defined __stub___$ac_func
66488 choke me
66489 #endif
66490
66491 int
66492 main ()
66493 {
66494 return $ac_func ();
66495   ;
66496   return 0;
66497 }
66498 _ACEOF
66499 rm -f conftest.$ac_objext conftest$ac_exeext
66500 if { (ac_try="$ac_link"
66501 case "(($ac_try" in
66502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
66503   *) ac_try_echo=$ac_try;;
66504 esac
66505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
66506   (eval "$ac_link") 2>conftest.er1
66507   ac_status=$?
66508   grep -v '^ *+' conftest.er1 >conftest.err
66509   rm -f conftest.er1
66510   cat conftest.err >&5
66511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
66512   (exit $ac_status); } && {
66513          test -z "$ac_c_werror_flag" ||
66514          test ! -s conftest.err
66515        } && test -s conftest$ac_exeext &&
66516        $as_test_x conftest$ac_exeext; then
66517   eval "$as_ac_var=yes"
66518 else
66519   echo "$as_me: failed program was:" >&5
66520 sed 's/^/| /' conftest.$ac_ext >&5
66521
66522         eval "$as_ac_var=no"
66523 fi
66524
66525 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
66526       conftest$ac_exeext conftest.$ac_ext
66527 fi
66528 ac_res=`eval echo '${'$as_ac_var'}'`
66529                { echo "$as_me:$LINENO: result: $ac_res" >&5
66530 echo "${ECHO_T}$ac_res" >&6; }
66531 if test `eval echo '${'$as_ac_var'}'` = yes; then
66532   cat >>confdefs.h <<_ACEOF
66533 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
66534 _ACEOF
66535  ice_have_strncasecmp=yes
66536 fi
66537 done
66538
66539 if test "${ice_have_strncasecmp}" = yes; then
66540 { echo "$as_me:$LINENO: checking for strncasecmp declaration in string.h strings.h" >&5
66541 echo $ECHO_N "checking for strncasecmp declaration in string.h strings.h... $ECHO_C" >&6; }
66542 if test "${ice_cv_have_strncasecmp_decl+set}" = set; then
66543   echo $ECHO_N "(cached) $ECHO_C" >&6
66544 else
66545
66546 ice_cv_have_strncasecmp_decl=no
66547 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
66548 ice_re_word='(^|[^a-zA-Z0-9_])'
66549 for header in string.h strings.h; do
66550 # Check for ordinary declaration
66551 cat >conftest.$ac_ext <<_ACEOF
66552 /* confdefs.h.  */
66553 _ACEOF
66554 cat confdefs.h >>conftest.$ac_ext
66555 cat >>conftest.$ac_ext <<_ACEOF
66556 /* end confdefs.h.  */
66557 #include <$header>
66558
66559 _ACEOF
66560 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
66561   $EGREP "${ice_re_word}strncasecmp[    ]*\(" >/dev/null 2>&1; then
66562   ice_cv_have_strncasecmp_decl=yes
66563 fi
66564 rm -f conftest*
66565
66566 if test "$ice_cv_have_strncasecmp_decl" = yes; then
66567         break
66568 fi
66569 # Check for "fixed" declaration like "getpid _PARAMS((int))"
66570 cat >conftest.$ac_ext <<_ACEOF
66571 /* confdefs.h.  */
66572 _ACEOF
66573 cat confdefs.h >>conftest.$ac_ext
66574 cat >>conftest.$ac_ext <<_ACEOF
66575 /* end confdefs.h.  */
66576 #include <$header>
66577
66578 _ACEOF
66579 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
66580   $EGREP "${ice_re_word}strncasecmp[    ]*$ice_re_params\(\(" >/dev/null 2>&1; then
66581   ice_cv_have_strncasecmp_decl=yes
66582 fi
66583 rm -f conftest*
66584
66585 if test "$ice_cv_have_strncasecmp_decl" = yes; then
66586         break
66587 fi
66588 done
66589
66590 fi
66591
66592 { echo "$as_me:$LINENO: result: $ice_cv_have_strncasecmp_decl" >&5
66593 echo "${ECHO_T}$ice_cv_have_strncasecmp_decl" >&6; }
66594 if test "$ice_cv_have_strncasecmp_decl" = yes; then
66595
66596 cat >>confdefs.h <<_ACEOF
66597 #define HAVE_STRNCASECMP_DECL 1
66598 _ACEOF
66599
66600 fi
66601 fi
66602
66603
66604 ice_have_syslog=no
66605
66606 for ac_func in syslog
66607 do
66608 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
66609 { echo "$as_me:$LINENO: checking for $ac_func" >&5
66610 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
66611 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
66612   echo $ECHO_N "(cached) $ECHO_C" >&6
66613 else
66614   cat >conftest.$ac_ext <<_ACEOF
66615 /* confdefs.h.  */
66616 _ACEOF
66617 cat confdefs.h >>conftest.$ac_ext
66618 cat >>conftest.$ac_ext <<_ACEOF
66619 /* end confdefs.h.  */
66620 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
66621    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
66622 #define $ac_func innocuous_$ac_func
66623
66624 /* System header to define __stub macros and hopefully few prototypes,
66625     which can conflict with char $ac_func (); below.
66626     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
66627     <limits.h> exists even on freestanding compilers.  */
66628
66629 #ifdef __STDC__
66630 # include <limits.h>
66631 #else
66632 # include <assert.h>
66633 #endif
66634
66635 #undef $ac_func
66636
66637 /* Override any GCC internal prototype to avoid an error.
66638    Use char because int might match the return type of a GCC
66639    builtin and then its argument prototype would still apply.  */
66640 #ifdef __cplusplus
66641 extern "C"
66642 #endif
66643 char $ac_func ();
66644 /* The GNU C library defines this for functions which it implements
66645     to always fail with ENOSYS.  Some functions are actually named
66646     something starting with __ and the normal name is an alias.  */
66647 #if defined __stub_$ac_func || defined __stub___$ac_func
66648 choke me
66649 #endif
66650
66651 int
66652 main ()
66653 {
66654 return $ac_func ();
66655   ;
66656   return 0;
66657 }
66658 _ACEOF
66659 rm -f conftest.$ac_objext conftest$ac_exeext
66660 if { (ac_try="$ac_link"
66661 case "(($ac_try" in
66662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
66663   *) ac_try_echo=$ac_try;;
66664 esac
66665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
66666   (eval "$ac_link") 2>conftest.er1
66667   ac_status=$?
66668   grep -v '^ *+' conftest.er1 >conftest.err
66669   rm -f conftest.er1
66670   cat conftest.err >&5
66671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
66672   (exit $ac_status); } && {
66673          test -z "$ac_c_werror_flag" ||
66674          test ! -s conftest.err
66675        } && test -s conftest$ac_exeext &&
66676        $as_test_x conftest$ac_exeext; then
66677   eval "$as_ac_var=yes"
66678 else
66679   echo "$as_me: failed program was:" >&5
66680 sed 's/^/| /' conftest.$ac_ext >&5
66681
66682         eval "$as_ac_var=no"
66683 fi
66684
66685 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
66686       conftest$ac_exeext conftest.$ac_ext
66687 fi
66688 ac_res=`eval echo '${'$as_ac_var'}'`
66689                { echo "$as_me:$LINENO: result: $ac_res" >&5
66690 echo "${ECHO_T}$ac_res" >&6; }
66691 if test `eval echo '${'$as_ac_var'}'` = yes; then
66692   cat >>confdefs.h <<_ACEOF
66693 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
66694 _ACEOF
66695  ice_have_syslog=yes
66696 fi
66697 done
66698
66699 if test "${ice_have_syslog}" = yes; then
66700 { echo "$as_me:$LINENO: checking for syslog declaration in syslog.h" >&5
66701 echo $ECHO_N "checking for syslog declaration in syslog.h... $ECHO_C" >&6; }
66702 if test "${ice_cv_have_syslog_decl+set}" = set; then
66703   echo $ECHO_N "(cached) $ECHO_C" >&6
66704 else
66705
66706 ice_cv_have_syslog_decl=no
66707 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
66708 ice_re_word='(^|[^a-zA-Z0-9_])'
66709 for header in syslog.h; do
66710 # Check for ordinary declaration
66711 cat >conftest.$ac_ext <<_ACEOF
66712 /* confdefs.h.  */
66713 _ACEOF
66714 cat confdefs.h >>conftest.$ac_ext
66715 cat >>conftest.$ac_ext <<_ACEOF
66716 /* end confdefs.h.  */
66717 #include <$header>
66718
66719 _ACEOF
66720 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
66721   $EGREP "${ice_re_word}syslog[         ]*\(" >/dev/null 2>&1; then
66722   ice_cv_have_syslog_decl=yes
66723 fi
66724 rm -f conftest*
66725
66726 if test "$ice_cv_have_syslog_decl" = yes; then
66727         break
66728 fi
66729 # Check for "fixed" declaration like "getpid _PARAMS((int))"
66730 cat >conftest.$ac_ext <<_ACEOF
66731 /* confdefs.h.  */
66732 _ACEOF
66733 cat confdefs.h >>conftest.$ac_ext
66734 cat >>conftest.$ac_ext <<_ACEOF
66735 /* end confdefs.h.  */
66736 #include <$header>
66737
66738 _ACEOF
66739 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
66740   $EGREP "${ice_re_word}syslog[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
66741   ice_cv_have_syslog_decl=yes
66742 fi
66743 rm -f conftest*
66744
66745 if test "$ice_cv_have_syslog_decl" = yes; then
66746         break
66747 fi
66748 done
66749
66750 fi
66751
66752 { echo "$as_me:$LINENO: result: $ice_cv_have_syslog_decl" >&5
66753 echo "${ECHO_T}$ice_cv_have_syslog_decl" >&6; }
66754 if test "$ice_cv_have_syslog_decl" = yes; then
66755
66756 cat >>confdefs.h <<_ACEOF
66757 #define HAVE_SYSLOG_DECL 1
66758 _ACEOF
66759
66760 fi
66761 fi
66762
66763
66764 ice_have_system=no
66765
66766 for ac_func in system
66767 do
66768 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
66769 { echo "$as_me:$LINENO: checking for $ac_func" >&5
66770 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
66771 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
66772   echo $ECHO_N "(cached) $ECHO_C" >&6
66773 else
66774   cat >conftest.$ac_ext <<_ACEOF
66775 /* confdefs.h.  */
66776 _ACEOF
66777 cat confdefs.h >>conftest.$ac_ext
66778 cat >>conftest.$ac_ext <<_ACEOF
66779 /* end confdefs.h.  */
66780 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
66781    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
66782 #define $ac_func innocuous_$ac_func
66783
66784 /* System header to define __stub macros and hopefully few prototypes,
66785     which can conflict with char $ac_func (); below.
66786     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
66787     <limits.h> exists even on freestanding compilers.  */
66788
66789 #ifdef __STDC__
66790 # include <limits.h>
66791 #else
66792 # include <assert.h>
66793 #endif
66794
66795 #undef $ac_func
66796
66797 /* Override any GCC internal prototype to avoid an error.
66798    Use char because int might match the return type of a GCC
66799    builtin and then its argument prototype would still apply.  */
66800 #ifdef __cplusplus
66801 extern "C"
66802 #endif
66803 char $ac_func ();
66804 /* The GNU C library defines this for functions which it implements
66805     to always fail with ENOSYS.  Some functions are actually named
66806     something starting with __ and the normal name is an alias.  */
66807 #if defined __stub_$ac_func || defined __stub___$ac_func
66808 choke me
66809 #endif
66810
66811 int
66812 main ()
66813 {
66814 return $ac_func ();
66815   ;
66816   return 0;
66817 }
66818 _ACEOF
66819 rm -f conftest.$ac_objext conftest$ac_exeext
66820 if { (ac_try="$ac_link"
66821 case "(($ac_try" in
66822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
66823   *) ac_try_echo=$ac_try;;
66824 esac
66825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
66826   (eval "$ac_link") 2>conftest.er1
66827   ac_status=$?
66828   grep -v '^ *+' conftest.er1 >conftest.err
66829   rm -f conftest.er1
66830   cat conftest.err >&5
66831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
66832   (exit $ac_status); } && {
66833          test -z "$ac_c_werror_flag" ||
66834          test ! -s conftest.err
66835        } && test -s conftest$ac_exeext &&
66836        $as_test_x conftest$ac_exeext; then
66837   eval "$as_ac_var=yes"
66838 else
66839   echo "$as_me: failed program was:" >&5
66840 sed 's/^/| /' conftest.$ac_ext >&5
66841
66842         eval "$as_ac_var=no"
66843 fi
66844
66845 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
66846       conftest$ac_exeext conftest.$ac_ext
66847 fi
66848 ac_res=`eval echo '${'$as_ac_var'}'`
66849                { echo "$as_me:$LINENO: result: $ac_res" >&5
66850 echo "${ECHO_T}$ac_res" >&6; }
66851 if test `eval echo '${'$as_ac_var'}'` = yes; then
66852   cat >>confdefs.h <<_ACEOF
66853 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
66854 _ACEOF
66855  ice_have_system=yes
66856 fi
66857 done
66858
66859 if test "${ice_have_system}" = yes; then
66860 { echo "$as_me:$LINENO: checking for system declaration in stdlib.h" >&5
66861 echo $ECHO_N "checking for system declaration in stdlib.h... $ECHO_C" >&6; }
66862 if test "${ice_cv_have_system_decl+set}" = set; then
66863   echo $ECHO_N "(cached) $ECHO_C" >&6
66864 else
66865
66866 ice_cv_have_system_decl=no
66867 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
66868 ice_re_word='(^|[^a-zA-Z0-9_])'
66869 for header in stdlib.h; do
66870 # Check for ordinary declaration
66871 cat >conftest.$ac_ext <<_ACEOF
66872 /* confdefs.h.  */
66873 _ACEOF
66874 cat confdefs.h >>conftest.$ac_ext
66875 cat >>conftest.$ac_ext <<_ACEOF
66876 /* end confdefs.h.  */
66877 #include <$header>
66878
66879 _ACEOF
66880 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
66881   $EGREP "${ice_re_word}system[         ]*\(" >/dev/null 2>&1; then
66882   ice_cv_have_system_decl=yes
66883 fi
66884 rm -f conftest*
66885
66886 if test "$ice_cv_have_system_decl" = yes; then
66887         break
66888 fi
66889 # Check for "fixed" declaration like "getpid _PARAMS((int))"
66890 cat >conftest.$ac_ext <<_ACEOF
66891 /* confdefs.h.  */
66892 _ACEOF
66893 cat confdefs.h >>conftest.$ac_ext
66894 cat >>conftest.$ac_ext <<_ACEOF
66895 /* end confdefs.h.  */
66896 #include <$header>
66897
66898 _ACEOF
66899 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
66900   $EGREP "${ice_re_word}system[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
66901   ice_cv_have_system_decl=yes
66902 fi
66903 rm -f conftest*
66904
66905 if test "$ice_cv_have_system_decl" = yes; then
66906         break
66907 fi
66908 done
66909
66910 fi
66911
66912 { echo "$as_me:$LINENO: result: $ice_cv_have_system_decl" >&5
66913 echo "${ECHO_T}$ice_cv_have_system_decl" >&6; }
66914 if test "$ice_cv_have_system_decl" = yes; then
66915
66916 cat >>confdefs.h <<_ACEOF
66917 #define HAVE_SYSTEM_DECL 1
66918 _ACEOF
66919
66920 fi
66921 fi
66922
66923
66924 ice_have_time=no
66925
66926 for ac_func in time
66927 do
66928 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
66929 { echo "$as_me:$LINENO: checking for $ac_func" >&5
66930 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
66931 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
66932   echo $ECHO_N "(cached) $ECHO_C" >&6
66933 else
66934   cat >conftest.$ac_ext <<_ACEOF
66935 /* confdefs.h.  */
66936 _ACEOF
66937 cat confdefs.h >>conftest.$ac_ext
66938 cat >>conftest.$ac_ext <<_ACEOF
66939 /* end confdefs.h.  */
66940 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
66941    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
66942 #define $ac_func innocuous_$ac_func
66943
66944 /* System header to define __stub macros and hopefully few prototypes,
66945     which can conflict with char $ac_func (); below.
66946     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
66947     <limits.h> exists even on freestanding compilers.  */
66948
66949 #ifdef __STDC__
66950 # include <limits.h>
66951 #else
66952 # include <assert.h>
66953 #endif
66954
66955 #undef $ac_func
66956
66957 /* Override any GCC internal prototype to avoid an error.
66958    Use char because int might match the return type of a GCC
66959    builtin and then its argument prototype would still apply.  */
66960 #ifdef __cplusplus
66961 extern "C"
66962 #endif
66963 char $ac_func ();
66964 /* The GNU C library defines this for functions which it implements
66965     to always fail with ENOSYS.  Some functions are actually named
66966     something starting with __ and the normal name is an alias.  */
66967 #if defined __stub_$ac_func || defined __stub___$ac_func
66968 choke me
66969 #endif
66970
66971 int
66972 main ()
66973 {
66974 return $ac_func ();
66975   ;
66976   return 0;
66977 }
66978 _ACEOF
66979 rm -f conftest.$ac_objext conftest$ac_exeext
66980 if { (ac_try="$ac_link"
66981 case "(($ac_try" in
66982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
66983   *) ac_try_echo=$ac_try;;
66984 esac
66985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
66986   (eval "$ac_link") 2>conftest.er1
66987   ac_status=$?
66988   grep -v '^ *+' conftest.er1 >conftest.err
66989   rm -f conftest.er1
66990   cat conftest.err >&5
66991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
66992   (exit $ac_status); } && {
66993          test -z "$ac_c_werror_flag" ||
66994          test ! -s conftest.err
66995        } && test -s conftest$ac_exeext &&
66996        $as_test_x conftest$ac_exeext; then
66997   eval "$as_ac_var=yes"
66998 else
66999   echo "$as_me: failed program was:" >&5
67000 sed 's/^/| /' conftest.$ac_ext >&5
67001
67002         eval "$as_ac_var=no"
67003 fi
67004
67005 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
67006       conftest$ac_exeext conftest.$ac_ext
67007 fi
67008 ac_res=`eval echo '${'$as_ac_var'}'`
67009                { echo "$as_me:$LINENO: result: $ac_res" >&5
67010 echo "${ECHO_T}$ac_res" >&6; }
67011 if test `eval echo '${'$as_ac_var'}'` = yes; then
67012   cat >>confdefs.h <<_ACEOF
67013 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
67014 _ACEOF
67015  ice_have_time=yes
67016 fi
67017 done
67018
67019 if test "${ice_have_time}" = yes; then
67020 { echo "$as_me:$LINENO: checking for time declaration in time.h sys/time.h" >&5
67021 echo $ECHO_N "checking for time declaration in time.h sys/time.h... $ECHO_C" >&6; }
67022 if test "${ice_cv_have_time_decl+set}" = set; then
67023   echo $ECHO_N "(cached) $ECHO_C" >&6
67024 else
67025
67026 ice_cv_have_time_decl=no
67027 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
67028 ice_re_word='(^|[^a-zA-Z0-9_])'
67029 for header in time.h sys/time.h; do
67030 # Check for ordinary declaration
67031 cat >conftest.$ac_ext <<_ACEOF
67032 /* confdefs.h.  */
67033 _ACEOF
67034 cat confdefs.h >>conftest.$ac_ext
67035 cat >>conftest.$ac_ext <<_ACEOF
67036 /* end confdefs.h.  */
67037 #include <$header>
67038
67039 _ACEOF
67040 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
67041   $EGREP "${ice_re_word}time[   ]*\(" >/dev/null 2>&1; then
67042   ice_cv_have_time_decl=yes
67043 fi
67044 rm -f conftest*
67045
67046 if test "$ice_cv_have_time_decl" = yes; then
67047         break
67048 fi
67049 # Check for "fixed" declaration like "getpid _PARAMS((int))"
67050 cat >conftest.$ac_ext <<_ACEOF
67051 /* confdefs.h.  */
67052 _ACEOF
67053 cat confdefs.h >>conftest.$ac_ext
67054 cat >>conftest.$ac_ext <<_ACEOF
67055 /* end confdefs.h.  */
67056 #include <$header>
67057
67058 _ACEOF
67059 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
67060   $EGREP "${ice_re_word}time[   ]*$ice_re_params\(\(" >/dev/null 2>&1; then
67061   ice_cv_have_time_decl=yes
67062 fi
67063 rm -f conftest*
67064
67065 if test "$ice_cv_have_time_decl" = yes; then
67066         break
67067 fi
67068 done
67069
67070 fi
67071
67072 { echo "$as_me:$LINENO: result: $ice_cv_have_time_decl" >&5
67073 echo "${ECHO_T}$ice_cv_have_time_decl" >&6; }
67074 if test "$ice_cv_have_time_decl" = yes; then
67075
67076 cat >>confdefs.h <<_ACEOF
67077 #define HAVE_TIME_DECL 1
67078 _ACEOF
67079
67080 fi
67081 fi
67082
67083
67084 ice_have_tolower=no
67085
67086 for ac_func in tolower
67087 do
67088 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
67089 { echo "$as_me:$LINENO: checking for $ac_func" >&5
67090 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
67091 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
67092   echo $ECHO_N "(cached) $ECHO_C" >&6
67093 else
67094   cat >conftest.$ac_ext <<_ACEOF
67095 /* confdefs.h.  */
67096 _ACEOF
67097 cat confdefs.h >>conftest.$ac_ext
67098 cat >>conftest.$ac_ext <<_ACEOF
67099 /* end confdefs.h.  */
67100 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
67101    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
67102 #define $ac_func innocuous_$ac_func
67103
67104 /* System header to define __stub macros and hopefully few prototypes,
67105     which can conflict with char $ac_func (); below.
67106     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
67107     <limits.h> exists even on freestanding compilers.  */
67108
67109 #ifdef __STDC__
67110 # include <limits.h>
67111 #else
67112 # include <assert.h>
67113 #endif
67114
67115 #undef $ac_func
67116
67117 /* Override any GCC internal prototype to avoid an error.
67118    Use char because int might match the return type of a GCC
67119    builtin and then its argument prototype would still apply.  */
67120 #ifdef __cplusplus
67121 extern "C"
67122 #endif
67123 char $ac_func ();
67124 /* The GNU C library defines this for functions which it implements
67125     to always fail with ENOSYS.  Some functions are actually named
67126     something starting with __ and the normal name is an alias.  */
67127 #if defined __stub_$ac_func || defined __stub___$ac_func
67128 choke me
67129 #endif
67130
67131 int
67132 main ()
67133 {
67134 return $ac_func ();
67135   ;
67136   return 0;
67137 }
67138 _ACEOF
67139 rm -f conftest.$ac_objext conftest$ac_exeext
67140 if { (ac_try="$ac_link"
67141 case "(($ac_try" in
67142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
67143   *) ac_try_echo=$ac_try;;
67144 esac
67145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
67146   (eval "$ac_link") 2>conftest.er1
67147   ac_status=$?
67148   grep -v '^ *+' conftest.er1 >conftest.err
67149   rm -f conftest.er1
67150   cat conftest.err >&5
67151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
67152   (exit $ac_status); } && {
67153          test -z "$ac_c_werror_flag" ||
67154          test ! -s conftest.err
67155        } && test -s conftest$ac_exeext &&
67156        $as_test_x conftest$ac_exeext; then
67157   eval "$as_ac_var=yes"
67158 else
67159   echo "$as_me: failed program was:" >&5
67160 sed 's/^/| /' conftest.$ac_ext >&5
67161
67162         eval "$as_ac_var=no"
67163 fi
67164
67165 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
67166       conftest$ac_exeext conftest.$ac_ext
67167 fi
67168 ac_res=`eval echo '${'$as_ac_var'}'`
67169                { echo "$as_me:$LINENO: result: $ac_res" >&5
67170 echo "${ECHO_T}$ac_res" >&6; }
67171 if test `eval echo '${'$as_ac_var'}'` = yes; then
67172   cat >>confdefs.h <<_ACEOF
67173 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
67174 _ACEOF
67175  ice_have_tolower=yes
67176 fi
67177 done
67178
67179 if test "${ice_have_tolower}" = yes; then
67180 { echo "$as_me:$LINENO: checking for tolower declaration in ctype.h" >&5
67181 echo $ECHO_N "checking for tolower declaration in ctype.h... $ECHO_C" >&6; }
67182 if test "${ice_cv_have_tolower_decl+set}" = set; then
67183   echo $ECHO_N "(cached) $ECHO_C" >&6
67184 else
67185
67186 ice_cv_have_tolower_decl=no
67187 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
67188 ice_re_word='(^|[^a-zA-Z0-9_])'
67189 for header in ctype.h; do
67190 # Check for ordinary declaration
67191 cat >conftest.$ac_ext <<_ACEOF
67192 /* confdefs.h.  */
67193 _ACEOF
67194 cat confdefs.h >>conftest.$ac_ext
67195 cat >>conftest.$ac_ext <<_ACEOF
67196 /* end confdefs.h.  */
67197 #include <$header>
67198
67199 _ACEOF
67200 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
67201   $EGREP "${ice_re_word}tolower[        ]*\(" >/dev/null 2>&1; then
67202   ice_cv_have_tolower_decl=yes
67203 fi
67204 rm -f conftest*
67205
67206 if test "$ice_cv_have_tolower_decl" = yes; then
67207         break
67208 fi
67209 # Check for "fixed" declaration like "getpid _PARAMS((int))"
67210 cat >conftest.$ac_ext <<_ACEOF
67211 /* confdefs.h.  */
67212 _ACEOF
67213 cat confdefs.h >>conftest.$ac_ext
67214 cat >>conftest.$ac_ext <<_ACEOF
67215 /* end confdefs.h.  */
67216 #include <$header>
67217
67218 _ACEOF
67219 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
67220   $EGREP "${ice_re_word}tolower[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
67221   ice_cv_have_tolower_decl=yes
67222 fi
67223 rm -f conftest*
67224
67225 if test "$ice_cv_have_tolower_decl" = yes; then
67226         break
67227 fi
67228 done
67229
67230 fi
67231
67232 { echo "$as_me:$LINENO: result: $ice_cv_have_tolower_decl" >&5
67233 echo "${ECHO_T}$ice_cv_have_tolower_decl" >&6; }
67234 if test "$ice_cv_have_tolower_decl" = yes; then
67235
67236 cat >>confdefs.h <<_ACEOF
67237 #define HAVE_TOLOWER_DECL 1
67238 _ACEOF
67239
67240 fi
67241 fi
67242
67243
67244 ice_have_toupper=no
67245
67246 for ac_func in toupper
67247 do
67248 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
67249 { echo "$as_me:$LINENO: checking for $ac_func" >&5
67250 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
67251 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
67252   echo $ECHO_N "(cached) $ECHO_C" >&6
67253 else
67254   cat >conftest.$ac_ext <<_ACEOF
67255 /* confdefs.h.  */
67256 _ACEOF
67257 cat confdefs.h >>conftest.$ac_ext
67258 cat >>conftest.$ac_ext <<_ACEOF
67259 /* end confdefs.h.  */
67260 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
67261    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
67262 #define $ac_func innocuous_$ac_func
67263
67264 /* System header to define __stub macros and hopefully few prototypes,
67265     which can conflict with char $ac_func (); below.
67266     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
67267     <limits.h> exists even on freestanding compilers.  */
67268
67269 #ifdef __STDC__
67270 # include <limits.h>
67271 #else
67272 # include <assert.h>
67273 #endif
67274
67275 #undef $ac_func
67276
67277 /* Override any GCC internal prototype to avoid an error.
67278    Use char because int might match the return type of a GCC
67279    builtin and then its argument prototype would still apply.  */
67280 #ifdef __cplusplus
67281 extern "C"
67282 #endif
67283 char $ac_func ();
67284 /* The GNU C library defines this for functions which it implements
67285     to always fail with ENOSYS.  Some functions are actually named
67286     something starting with __ and the normal name is an alias.  */
67287 #if defined __stub_$ac_func || defined __stub___$ac_func
67288 choke me
67289 #endif
67290
67291 int
67292 main ()
67293 {
67294 return $ac_func ();
67295   ;
67296   return 0;
67297 }
67298 _ACEOF
67299 rm -f conftest.$ac_objext conftest$ac_exeext
67300 if { (ac_try="$ac_link"
67301 case "(($ac_try" in
67302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
67303   *) ac_try_echo=$ac_try;;
67304 esac
67305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
67306   (eval "$ac_link") 2>conftest.er1
67307   ac_status=$?
67308   grep -v '^ *+' conftest.er1 >conftest.err
67309   rm -f conftest.er1
67310   cat conftest.err >&5
67311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
67312   (exit $ac_status); } && {
67313          test -z "$ac_c_werror_flag" ||
67314          test ! -s conftest.err
67315        } && test -s conftest$ac_exeext &&
67316        $as_test_x conftest$ac_exeext; then
67317   eval "$as_ac_var=yes"
67318 else
67319   echo "$as_me: failed program was:" >&5
67320 sed 's/^/| /' conftest.$ac_ext >&5
67321
67322         eval "$as_ac_var=no"
67323 fi
67324
67325 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
67326       conftest$ac_exeext conftest.$ac_ext
67327 fi
67328 ac_res=`eval echo '${'$as_ac_var'}'`
67329                { echo "$as_me:$LINENO: result: $ac_res" >&5
67330 echo "${ECHO_T}$ac_res" >&6; }
67331 if test `eval echo '${'$as_ac_var'}'` = yes; then
67332   cat >>confdefs.h <<_ACEOF
67333 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
67334 _ACEOF
67335  ice_have_toupper=yes
67336 fi
67337 done
67338
67339 if test "${ice_have_toupper}" = yes; then
67340 { echo "$as_me:$LINENO: checking for toupper declaration in ctype.h" >&5
67341 echo $ECHO_N "checking for toupper declaration in ctype.h... $ECHO_C" >&6; }
67342 if test "${ice_cv_have_toupper_decl+set}" = set; then
67343   echo $ECHO_N "(cached) $ECHO_C" >&6
67344 else
67345
67346 ice_cv_have_toupper_decl=no
67347 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
67348 ice_re_word='(^|[^a-zA-Z0-9_])'
67349 for header in ctype.h; do
67350 # Check for ordinary declaration
67351 cat >conftest.$ac_ext <<_ACEOF
67352 /* confdefs.h.  */
67353 _ACEOF
67354 cat confdefs.h >>conftest.$ac_ext
67355 cat >>conftest.$ac_ext <<_ACEOF
67356 /* end confdefs.h.  */
67357 #include <$header>
67358
67359 _ACEOF
67360 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
67361   $EGREP "${ice_re_word}toupper[        ]*\(" >/dev/null 2>&1; then
67362   ice_cv_have_toupper_decl=yes
67363 fi
67364 rm -f conftest*
67365
67366 if test "$ice_cv_have_toupper_decl" = yes; then
67367         break
67368 fi
67369 # Check for "fixed" declaration like "getpid _PARAMS((int))"
67370 cat >conftest.$ac_ext <<_ACEOF
67371 /* confdefs.h.  */
67372 _ACEOF
67373 cat confdefs.h >>conftest.$ac_ext
67374 cat >>conftest.$ac_ext <<_ACEOF
67375 /* end confdefs.h.  */
67376 #include <$header>
67377
67378 _ACEOF
67379 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
67380   $EGREP "${ice_re_word}toupper[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
67381   ice_cv_have_toupper_decl=yes
67382 fi
67383 rm -f conftest*
67384
67385 if test "$ice_cv_have_toupper_decl" = yes; then
67386         break
67387 fi
67388 done
67389
67390 fi
67391
67392 { echo "$as_me:$LINENO: result: $ice_cv_have_toupper_decl" >&5
67393 echo "${ECHO_T}$ice_cv_have_toupper_decl" >&6; }
67394 if test "$ice_cv_have_toupper_decl" = yes; then
67395
67396 cat >>confdefs.h <<_ACEOF
67397 #define HAVE_TOUPPER_DECL 1
67398 _ACEOF
67399
67400 fi
67401 fi
67402
67403
67404 ice_have_ungetc=no
67405
67406 for ac_func in ungetc
67407 do
67408 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
67409 { echo "$as_me:$LINENO: checking for $ac_func" >&5
67410 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
67411 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
67412   echo $ECHO_N "(cached) $ECHO_C" >&6
67413 else
67414   cat >conftest.$ac_ext <<_ACEOF
67415 /* confdefs.h.  */
67416 _ACEOF
67417 cat confdefs.h >>conftest.$ac_ext
67418 cat >>conftest.$ac_ext <<_ACEOF
67419 /* end confdefs.h.  */
67420 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
67421    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
67422 #define $ac_func innocuous_$ac_func
67423
67424 /* System header to define __stub macros and hopefully few prototypes,
67425     which can conflict with char $ac_func (); below.
67426     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
67427     <limits.h> exists even on freestanding compilers.  */
67428
67429 #ifdef __STDC__
67430 # include <limits.h>
67431 #else
67432 # include <assert.h>
67433 #endif
67434
67435 #undef $ac_func
67436
67437 /* Override any GCC internal prototype to avoid an error.
67438    Use char because int might match the return type of a GCC
67439    builtin and then its argument prototype would still apply.  */
67440 #ifdef __cplusplus
67441 extern "C"
67442 #endif
67443 char $ac_func ();
67444 /* The GNU C library defines this for functions which it implements
67445     to always fail with ENOSYS.  Some functions are actually named
67446     something starting with __ and the normal name is an alias.  */
67447 #if defined __stub_$ac_func || defined __stub___$ac_func
67448 choke me
67449 #endif
67450
67451 int
67452 main ()
67453 {
67454 return $ac_func ();
67455   ;
67456   return 0;
67457 }
67458 _ACEOF
67459 rm -f conftest.$ac_objext conftest$ac_exeext
67460 if { (ac_try="$ac_link"
67461 case "(($ac_try" in
67462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
67463   *) ac_try_echo=$ac_try;;
67464 esac
67465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
67466   (eval "$ac_link") 2>conftest.er1
67467   ac_status=$?
67468   grep -v '^ *+' conftest.er1 >conftest.err
67469   rm -f conftest.er1
67470   cat conftest.err >&5
67471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
67472   (exit $ac_status); } && {
67473          test -z "$ac_c_werror_flag" ||
67474          test ! -s conftest.err
67475        } && test -s conftest$ac_exeext &&
67476        $as_test_x conftest$ac_exeext; then
67477   eval "$as_ac_var=yes"
67478 else
67479   echo "$as_me: failed program was:" >&5
67480 sed 's/^/| /' conftest.$ac_ext >&5
67481
67482         eval "$as_ac_var=no"
67483 fi
67484
67485 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
67486       conftest$ac_exeext conftest.$ac_ext
67487 fi
67488 ac_res=`eval echo '${'$as_ac_var'}'`
67489                { echo "$as_me:$LINENO: result: $ac_res" >&5
67490 echo "${ECHO_T}$ac_res" >&6; }
67491 if test `eval echo '${'$as_ac_var'}'` = yes; then
67492   cat >>confdefs.h <<_ACEOF
67493 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
67494 _ACEOF
67495  ice_have_ungetc=yes
67496 fi
67497 done
67498
67499 if test "${ice_have_ungetc}" = yes; then
67500 { echo "$as_me:$LINENO: checking for ungetc declaration in stdio.h" >&5
67501 echo $ECHO_N "checking for ungetc declaration in stdio.h... $ECHO_C" >&6; }
67502 if test "${ice_cv_have_ungetc_decl+set}" = set; then
67503   echo $ECHO_N "(cached) $ECHO_C" >&6
67504 else
67505
67506 ice_cv_have_ungetc_decl=no
67507 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
67508 ice_re_word='(^|[^a-zA-Z0-9_])'
67509 for header in stdio.h; do
67510 # Check for ordinary declaration
67511 cat >conftest.$ac_ext <<_ACEOF
67512 /* confdefs.h.  */
67513 _ACEOF
67514 cat confdefs.h >>conftest.$ac_ext
67515 cat >>conftest.$ac_ext <<_ACEOF
67516 /* end confdefs.h.  */
67517 #include <$header>
67518
67519 _ACEOF
67520 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
67521   $EGREP "${ice_re_word}ungetc[         ]*\(" >/dev/null 2>&1; then
67522   ice_cv_have_ungetc_decl=yes
67523 fi
67524 rm -f conftest*
67525
67526 if test "$ice_cv_have_ungetc_decl" = yes; then
67527         break
67528 fi
67529 # Check for "fixed" declaration like "getpid _PARAMS((int))"
67530 cat >conftest.$ac_ext <<_ACEOF
67531 /* confdefs.h.  */
67532 _ACEOF
67533 cat confdefs.h >>conftest.$ac_ext
67534 cat >>conftest.$ac_ext <<_ACEOF
67535 /* end confdefs.h.  */
67536 #include <$header>
67537
67538 _ACEOF
67539 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
67540   $EGREP "${ice_re_word}ungetc[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
67541   ice_cv_have_ungetc_decl=yes
67542 fi
67543 rm -f conftest*
67544
67545 if test "$ice_cv_have_ungetc_decl" = yes; then
67546         break
67547 fi
67548 done
67549
67550 fi
67551
67552 { echo "$as_me:$LINENO: result: $ice_cv_have_ungetc_decl" >&5
67553 echo "${ECHO_T}$ice_cv_have_ungetc_decl" >&6; }
67554 if test "$ice_cv_have_ungetc_decl" = yes; then
67555
67556 cat >>confdefs.h <<_ACEOF
67557 #define HAVE_UNGETC_DECL 1
67558 _ACEOF
67559
67560 fi
67561 fi
67562
67563
67564 ice_have_vfprintf=no
67565
67566 for ac_func in vfprintf
67567 do
67568 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
67569 { echo "$as_me:$LINENO: checking for $ac_func" >&5
67570 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
67571 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
67572   echo $ECHO_N "(cached) $ECHO_C" >&6
67573 else
67574   cat >conftest.$ac_ext <<_ACEOF
67575 /* confdefs.h.  */
67576 _ACEOF
67577 cat confdefs.h >>conftest.$ac_ext
67578 cat >>conftest.$ac_ext <<_ACEOF
67579 /* end confdefs.h.  */
67580 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
67581    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
67582 #define $ac_func innocuous_$ac_func
67583
67584 /* System header to define __stub macros and hopefully few prototypes,
67585     which can conflict with char $ac_func (); below.
67586     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
67587     <limits.h> exists even on freestanding compilers.  */
67588
67589 #ifdef __STDC__
67590 # include <limits.h>
67591 #else
67592 # include <assert.h>
67593 #endif
67594
67595 #undef $ac_func
67596
67597 /* Override any GCC internal prototype to avoid an error.
67598    Use char because int might match the return type of a GCC
67599    builtin and then its argument prototype would still apply.  */
67600 #ifdef __cplusplus
67601 extern "C"
67602 #endif
67603 char $ac_func ();
67604 /* The GNU C library defines this for functions which it implements
67605     to always fail with ENOSYS.  Some functions are actually named
67606     something starting with __ and the normal name is an alias.  */
67607 #if defined __stub_$ac_func || defined __stub___$ac_func
67608 choke me
67609 #endif
67610
67611 int
67612 main ()
67613 {
67614 return $ac_func ();
67615   ;
67616   return 0;
67617 }
67618 _ACEOF
67619 rm -f conftest.$ac_objext conftest$ac_exeext
67620 if { (ac_try="$ac_link"
67621 case "(($ac_try" in
67622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
67623   *) ac_try_echo=$ac_try;;
67624 esac
67625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
67626   (eval "$ac_link") 2>conftest.er1
67627   ac_status=$?
67628   grep -v '^ *+' conftest.er1 >conftest.err
67629   rm -f conftest.er1
67630   cat conftest.err >&5
67631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
67632   (exit $ac_status); } && {
67633          test -z "$ac_c_werror_flag" ||
67634          test ! -s conftest.err
67635        } && test -s conftest$ac_exeext &&
67636        $as_test_x conftest$ac_exeext; then
67637   eval "$as_ac_var=yes"
67638 else
67639   echo "$as_me: failed program was:" >&5
67640 sed 's/^/| /' conftest.$ac_ext >&5
67641
67642         eval "$as_ac_var=no"
67643 fi
67644
67645 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
67646       conftest$ac_exeext conftest.$ac_ext
67647 fi
67648 ac_res=`eval echo '${'$as_ac_var'}'`
67649                { echo "$as_me:$LINENO: result: $ac_res" >&5
67650 echo "${ECHO_T}$ac_res" >&6; }
67651 if test `eval echo '${'$as_ac_var'}'` = yes; then
67652   cat >>confdefs.h <<_ACEOF
67653 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
67654 _ACEOF
67655  ice_have_vfprintf=yes
67656 fi
67657 done
67658
67659 if test "${ice_have_vfprintf}" = yes; then
67660 { echo "$as_me:$LINENO: checking for vfprintf declaration in stdio.h stdlib.h" >&5
67661 echo $ECHO_N "checking for vfprintf declaration in stdio.h stdlib.h... $ECHO_C" >&6; }
67662 if test "${ice_cv_have_vfprintf_decl+set}" = set; then
67663   echo $ECHO_N "(cached) $ECHO_C" >&6
67664 else
67665
67666 ice_cv_have_vfprintf_decl=no
67667 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
67668 ice_re_word='(^|[^a-zA-Z0-9_])'
67669 for header in stdio.h stdlib.h; do
67670 # Check for ordinary declaration
67671 cat >conftest.$ac_ext <<_ACEOF
67672 /* confdefs.h.  */
67673 _ACEOF
67674 cat confdefs.h >>conftest.$ac_ext
67675 cat >>conftest.$ac_ext <<_ACEOF
67676 /* end confdefs.h.  */
67677 #include <$header>
67678
67679 _ACEOF
67680 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
67681   $EGREP "${ice_re_word}vfprintf[       ]*\(" >/dev/null 2>&1; then
67682   ice_cv_have_vfprintf_decl=yes
67683 fi
67684 rm -f conftest*
67685
67686 if test "$ice_cv_have_vfprintf_decl" = yes; then
67687         break
67688 fi
67689 # Check for "fixed" declaration like "getpid _PARAMS((int))"
67690 cat >conftest.$ac_ext <<_ACEOF
67691 /* confdefs.h.  */
67692 _ACEOF
67693 cat confdefs.h >>conftest.$ac_ext
67694 cat >>conftest.$ac_ext <<_ACEOF
67695 /* end confdefs.h.  */
67696 #include <$header>
67697
67698 _ACEOF
67699 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
67700   $EGREP "${ice_re_word}vfprintf[       ]*$ice_re_params\(\(" >/dev/null 2>&1; then
67701   ice_cv_have_vfprintf_decl=yes
67702 fi
67703 rm -f conftest*
67704
67705 if test "$ice_cv_have_vfprintf_decl" = yes; then
67706         break
67707 fi
67708 done
67709
67710 fi
67711
67712 { echo "$as_me:$LINENO: result: $ice_cv_have_vfprintf_decl" >&5
67713 echo "${ECHO_T}$ice_cv_have_vfprintf_decl" >&6; }
67714 if test "$ice_cv_have_vfprintf_decl" = yes; then
67715
67716 cat >>confdefs.h <<_ACEOF
67717 #define HAVE_VFPRINTF_DECL 1
67718 _ACEOF
67719
67720 fi
67721 fi
67722
67723
67724 ice_have_vprintf=no
67725
67726 for ac_func in vprintf
67727 do
67728 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
67729 { echo "$as_me:$LINENO: checking for $ac_func" >&5
67730 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
67731 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
67732   echo $ECHO_N "(cached) $ECHO_C" >&6
67733 else
67734   cat >conftest.$ac_ext <<_ACEOF
67735 /* confdefs.h.  */
67736 _ACEOF
67737 cat confdefs.h >>conftest.$ac_ext
67738 cat >>conftest.$ac_ext <<_ACEOF
67739 /* end confdefs.h.  */
67740 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
67741    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
67742 #define $ac_func innocuous_$ac_func
67743
67744 /* System header to define __stub macros and hopefully few prototypes,
67745     which can conflict with char $ac_func (); below.
67746     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
67747     <limits.h> exists even on freestanding compilers.  */
67748
67749 #ifdef __STDC__
67750 # include <limits.h>
67751 #else
67752 # include <assert.h>
67753 #endif
67754
67755 #undef $ac_func
67756
67757 /* Override any GCC internal prototype to avoid an error.
67758    Use char because int might match the return type of a GCC
67759    builtin and then its argument prototype would still apply.  */
67760 #ifdef __cplusplus
67761 extern "C"
67762 #endif
67763 char $ac_func ();
67764 /* The GNU C library defines this for functions which it implements
67765     to always fail with ENOSYS.  Some functions are actually named
67766     something starting with __ and the normal name is an alias.  */
67767 #if defined __stub_$ac_func || defined __stub___$ac_func
67768 choke me
67769 #endif
67770
67771 int
67772 main ()
67773 {
67774 return $ac_func ();
67775   ;
67776   return 0;
67777 }
67778 _ACEOF
67779 rm -f conftest.$ac_objext conftest$ac_exeext
67780 if { (ac_try="$ac_link"
67781 case "(($ac_try" in
67782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
67783   *) ac_try_echo=$ac_try;;
67784 esac
67785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
67786   (eval "$ac_link") 2>conftest.er1
67787   ac_status=$?
67788   grep -v '^ *+' conftest.er1 >conftest.err
67789   rm -f conftest.er1
67790   cat conftest.err >&5
67791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
67792   (exit $ac_status); } && {
67793          test -z "$ac_c_werror_flag" ||
67794          test ! -s conftest.err
67795        } && test -s conftest$ac_exeext &&
67796        $as_test_x conftest$ac_exeext; then
67797   eval "$as_ac_var=yes"
67798 else
67799   echo "$as_me: failed program was:" >&5
67800 sed 's/^/| /' conftest.$ac_ext >&5
67801
67802         eval "$as_ac_var=no"
67803 fi
67804
67805 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
67806       conftest$ac_exeext conftest.$ac_ext
67807 fi
67808 ac_res=`eval echo '${'$as_ac_var'}'`
67809                { echo "$as_me:$LINENO: result: $ac_res" >&5
67810 echo "${ECHO_T}$ac_res" >&6; }
67811 if test `eval echo '${'$as_ac_var'}'` = yes; then
67812   cat >>confdefs.h <<_ACEOF
67813 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
67814 _ACEOF
67815  ice_have_vprintf=yes
67816 fi
67817 done
67818
67819 if test "${ice_have_vprintf}" = yes; then
67820 { echo "$as_me:$LINENO: checking for vprintf declaration in stdio.h stdlib.h" >&5
67821 echo $ECHO_N "checking for vprintf declaration in stdio.h stdlib.h... $ECHO_C" >&6; }
67822 if test "${ice_cv_have_vprintf_decl+set}" = set; then
67823   echo $ECHO_N "(cached) $ECHO_C" >&6
67824 else
67825
67826 ice_cv_have_vprintf_decl=no
67827 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
67828 ice_re_word='(^|[^a-zA-Z0-9_])'
67829 for header in stdio.h stdlib.h; do
67830 # Check for ordinary declaration
67831 cat >conftest.$ac_ext <<_ACEOF
67832 /* confdefs.h.  */
67833 _ACEOF
67834 cat confdefs.h >>conftest.$ac_ext
67835 cat >>conftest.$ac_ext <<_ACEOF
67836 /* end confdefs.h.  */
67837 #include <$header>
67838
67839 _ACEOF
67840 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
67841   $EGREP "${ice_re_word}vprintf[        ]*\(" >/dev/null 2>&1; then
67842   ice_cv_have_vprintf_decl=yes
67843 fi
67844 rm -f conftest*
67845
67846 if test "$ice_cv_have_vprintf_decl" = yes; then
67847         break
67848 fi
67849 # Check for "fixed" declaration like "getpid _PARAMS((int))"
67850 cat >conftest.$ac_ext <<_ACEOF
67851 /* confdefs.h.  */
67852 _ACEOF
67853 cat confdefs.h >>conftest.$ac_ext
67854 cat >>conftest.$ac_ext <<_ACEOF
67855 /* end confdefs.h.  */
67856 #include <$header>
67857
67858 _ACEOF
67859 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
67860   $EGREP "${ice_re_word}vprintf[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
67861   ice_cv_have_vprintf_decl=yes
67862 fi
67863 rm -f conftest*
67864
67865 if test "$ice_cv_have_vprintf_decl" = yes; then
67866         break
67867 fi
67868 done
67869
67870 fi
67871
67872 { echo "$as_me:$LINENO: result: $ice_cv_have_vprintf_decl" >&5
67873 echo "${ECHO_T}$ice_cv_have_vprintf_decl" >&6; }
67874 if test "$ice_cv_have_vprintf_decl" = yes; then
67875
67876 cat >>confdefs.h <<_ACEOF
67877 #define HAVE_VPRINTF_DECL 1
67878 _ACEOF
67879
67880 fi
67881 fi
67882
67883 { echo "$as_me:$LINENO: checking for wait4" >&5
67884 echo $ECHO_N "checking for wait4... $ECHO_C" >&6; }
67885 if test "${ac_cv_func_wait4+set}" = set; then
67886   echo $ECHO_N "(cached) $ECHO_C" >&6
67887 else
67888   cat >conftest.$ac_ext <<_ACEOF
67889 /* confdefs.h.  */
67890 _ACEOF
67891 cat confdefs.h >>conftest.$ac_ext
67892 cat >>conftest.$ac_ext <<_ACEOF
67893 /* end confdefs.h.  */
67894 /* Define wait4 to an innocuous variant, in case <limits.h> declares wait4.
67895    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
67896 #define wait4 innocuous_wait4
67897
67898 /* System header to define __stub macros and hopefully few prototypes,
67899     which can conflict with char wait4 (); below.
67900     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
67901     <limits.h> exists even on freestanding compilers.  */
67902
67903 #ifdef __STDC__
67904 # include <limits.h>
67905 #else
67906 # include <assert.h>
67907 #endif
67908
67909 #undef wait4
67910
67911 /* Override any GCC internal prototype to avoid an error.
67912    Use char because int might match the return type of a GCC
67913    builtin and then its argument prototype would still apply.  */
67914 #ifdef __cplusplus
67915 extern "C"
67916 #endif
67917 char wait4 ();
67918 /* The GNU C library defines this for functions which it implements
67919     to always fail with ENOSYS.  Some functions are actually named
67920     something starting with __ and the normal name is an alias.  */
67921 #if defined __stub_wait4 || defined __stub___wait4
67922 choke me
67923 #endif
67924
67925 int
67926 main ()
67927 {
67928 return wait4 ();
67929   ;
67930   return 0;
67931 }
67932 _ACEOF
67933 rm -f conftest.$ac_objext conftest$ac_exeext
67934 if { (ac_try="$ac_link"
67935 case "(($ac_try" in
67936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
67937   *) ac_try_echo=$ac_try;;
67938 esac
67939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
67940   (eval "$ac_link") 2>conftest.er1
67941   ac_status=$?
67942   grep -v '^ *+' conftest.er1 >conftest.err
67943   rm -f conftest.er1
67944   cat conftest.err >&5
67945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
67946   (exit $ac_status); } && {
67947          test -z "$ac_c_werror_flag" ||
67948          test ! -s conftest.err
67949        } && test -s conftest$ac_exeext &&
67950        $as_test_x conftest$ac_exeext; then
67951   ac_cv_func_wait4=yes
67952 else
67953   echo "$as_me: failed program was:" >&5
67954 sed 's/^/| /' conftest.$ac_ext >&5
67955
67956         ac_cv_func_wait4=no
67957 fi
67958
67959 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
67960       conftest$ac_exeext conftest.$ac_ext
67961 fi
67962 { echo "$as_me:$LINENO: result: $ac_cv_func_wait4" >&5
67963 echo "${ECHO_T}$ac_cv_func_wait4" >&6; }
67964
67965
67966 ice_have_writev=no
67967
67968 for ac_func in writev
67969 do
67970 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
67971 { echo "$as_me:$LINENO: checking for $ac_func" >&5
67972 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
67973 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
67974   echo $ECHO_N "(cached) $ECHO_C" >&6
67975 else
67976   cat >conftest.$ac_ext <<_ACEOF
67977 /* confdefs.h.  */
67978 _ACEOF
67979 cat confdefs.h >>conftest.$ac_ext
67980 cat >>conftest.$ac_ext <<_ACEOF
67981 /* end confdefs.h.  */
67982 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
67983    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
67984 #define $ac_func innocuous_$ac_func
67985
67986 /* System header to define __stub macros and hopefully few prototypes,
67987     which can conflict with char $ac_func (); below.
67988     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
67989     <limits.h> exists even on freestanding compilers.  */
67990
67991 #ifdef __STDC__
67992 # include <limits.h>
67993 #else
67994 # include <assert.h>
67995 #endif
67996
67997 #undef $ac_func
67998
67999 /* Override any GCC internal prototype to avoid an error.
68000    Use char because int might match the return type of a GCC
68001    builtin and then its argument prototype would still apply.  */
68002 #ifdef __cplusplus
68003 extern "C"
68004 #endif
68005 char $ac_func ();
68006 /* The GNU C library defines this for functions which it implements
68007     to always fail with ENOSYS.  Some functions are actually named
68008     something starting with __ and the normal name is an alias.  */
68009 #if defined __stub_$ac_func || defined __stub___$ac_func
68010 choke me
68011 #endif
68012
68013 int
68014 main ()
68015 {
68016 return $ac_func ();
68017   ;
68018   return 0;
68019 }
68020 _ACEOF
68021 rm -f conftest.$ac_objext conftest$ac_exeext
68022 if { (ac_try="$ac_link"
68023 case "(($ac_try" in
68024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
68025   *) ac_try_echo=$ac_try;;
68026 esac
68027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
68028   (eval "$ac_link") 2>conftest.er1
68029   ac_status=$?
68030   grep -v '^ *+' conftest.er1 >conftest.err
68031   rm -f conftest.er1
68032   cat conftest.err >&5
68033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
68034   (exit $ac_status); } && {
68035          test -z "$ac_c_werror_flag" ||
68036          test ! -s conftest.err
68037        } && test -s conftest$ac_exeext &&
68038        $as_test_x conftest$ac_exeext; then
68039   eval "$as_ac_var=yes"
68040 else
68041   echo "$as_me: failed program was:" >&5
68042 sed 's/^/| /' conftest.$ac_ext >&5
68043
68044         eval "$as_ac_var=no"
68045 fi
68046
68047 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
68048       conftest$ac_exeext conftest.$ac_ext
68049 fi
68050 ac_res=`eval echo '${'$as_ac_var'}'`
68051                { echo "$as_me:$LINENO: result: $ac_res" >&5
68052 echo "${ECHO_T}$ac_res" >&6; }
68053 if test `eval echo '${'$as_ac_var'}'` = yes; then
68054   cat >>confdefs.h <<_ACEOF
68055 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
68056 _ACEOF
68057  ice_have_writev=yes
68058 fi
68059 done
68060
68061 if test "${ice_have_writev}" = yes; then
68062 { echo "$as_me:$LINENO: checking for writev declaration in unistd.h sys/uio.h" >&5
68063 echo $ECHO_N "checking for writev declaration in unistd.h sys/uio.h... $ECHO_C" >&6; }
68064 if test "${ice_cv_have_writev_decl+set}" = set; then
68065   echo $ECHO_N "(cached) $ECHO_C" >&6
68066 else
68067
68068 ice_cv_have_writev_decl=no
68069 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
68070 ice_re_word='(^|[^a-zA-Z0-9_])'
68071 for header in unistd.h sys/uio.h; do
68072 # Check for ordinary declaration
68073 cat >conftest.$ac_ext <<_ACEOF
68074 /* confdefs.h.  */
68075 _ACEOF
68076 cat confdefs.h >>conftest.$ac_ext
68077 cat >>conftest.$ac_ext <<_ACEOF
68078 /* end confdefs.h.  */
68079 #include <$header>
68080
68081 _ACEOF
68082 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
68083   $EGREP "${ice_re_word}writev[         ]*\(" >/dev/null 2>&1; then
68084   ice_cv_have_writev_decl=yes
68085 fi
68086 rm -f conftest*
68087
68088 if test "$ice_cv_have_writev_decl" = yes; then
68089         break
68090 fi
68091 # Check for "fixed" declaration like "getpid _PARAMS((int))"
68092 cat >conftest.$ac_ext <<_ACEOF
68093 /* confdefs.h.  */
68094 _ACEOF
68095 cat confdefs.h >>conftest.$ac_ext
68096 cat >>conftest.$ac_ext <<_ACEOF
68097 /* end confdefs.h.  */
68098 #include <$header>
68099
68100 _ACEOF
68101 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
68102   $EGREP "${ice_re_word}writev[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
68103   ice_cv_have_writev_decl=yes
68104 fi
68105 rm -f conftest*
68106
68107 if test "$ice_cv_have_writev_decl" = yes; then
68108         break
68109 fi
68110 done
68111
68112 fi
68113
68114 { echo "$as_me:$LINENO: result: $ice_cv_have_writev_decl" >&5
68115 echo "${ECHO_T}$ice_cv_have_writev_decl" >&6; }
68116 if test "$ice_cv_have_writev_decl" = yes; then
68117
68118 cat >>confdefs.h <<_ACEOF
68119 #define HAVE_WRITEV_DECL 1
68120 _ACEOF
68121
68122 fi
68123 fi
68124
68125
68126 ice_have_strcasecmp=no
68127
68128 for ac_func in strcasecmp
68129 do
68130 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
68131 { echo "$as_me:$LINENO: checking for $ac_func" >&5
68132 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
68133 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
68134   echo $ECHO_N "(cached) $ECHO_C" >&6
68135 else
68136   cat >conftest.$ac_ext <<_ACEOF
68137 /* confdefs.h.  */
68138 _ACEOF
68139 cat confdefs.h >>conftest.$ac_ext
68140 cat >>conftest.$ac_ext <<_ACEOF
68141 /* end confdefs.h.  */
68142 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
68143    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
68144 #define $ac_func innocuous_$ac_func
68145
68146 /* System header to define __stub macros and hopefully few prototypes,
68147     which can conflict with char $ac_func (); below.
68148     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
68149     <limits.h> exists even on freestanding compilers.  */
68150
68151 #ifdef __STDC__
68152 # include <limits.h>
68153 #else
68154 # include <assert.h>
68155 #endif
68156
68157 #undef $ac_func
68158
68159 /* Override any GCC internal prototype to avoid an error.
68160    Use char because int might match the return type of a GCC
68161    builtin and then its argument prototype would still apply.  */
68162 #ifdef __cplusplus
68163 extern "C"
68164 #endif
68165 char $ac_func ();
68166 /* The GNU C library defines this for functions which it implements
68167     to always fail with ENOSYS.  Some functions are actually named
68168     something starting with __ and the normal name is an alias.  */
68169 #if defined __stub_$ac_func || defined __stub___$ac_func
68170 choke me
68171 #endif
68172
68173 int
68174 main ()
68175 {
68176 return $ac_func ();
68177   ;
68178   return 0;
68179 }
68180 _ACEOF
68181 rm -f conftest.$ac_objext conftest$ac_exeext
68182 if { (ac_try="$ac_link"
68183 case "(($ac_try" in
68184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
68185   *) ac_try_echo=$ac_try;;
68186 esac
68187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
68188   (eval "$ac_link") 2>conftest.er1
68189   ac_status=$?
68190   grep -v '^ *+' conftest.er1 >conftest.err
68191   rm -f conftest.er1
68192   cat conftest.err >&5
68193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
68194   (exit $ac_status); } && {
68195          test -z "$ac_c_werror_flag" ||
68196          test ! -s conftest.err
68197        } && test -s conftest$ac_exeext &&
68198        $as_test_x conftest$ac_exeext; then
68199   eval "$as_ac_var=yes"
68200 else
68201   echo "$as_me: failed program was:" >&5
68202 sed 's/^/| /' conftest.$ac_ext >&5
68203
68204         eval "$as_ac_var=no"
68205 fi
68206
68207 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
68208       conftest$ac_exeext conftest.$ac_ext
68209 fi
68210 ac_res=`eval echo '${'$as_ac_var'}'`
68211                { echo "$as_me:$LINENO: result: $ac_res" >&5
68212 echo "${ECHO_T}$ac_res" >&6; }
68213 if test `eval echo '${'$as_ac_var'}'` = yes; then
68214   cat >>confdefs.h <<_ACEOF
68215 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
68216 _ACEOF
68217  ice_have_strcasecmp=yes
68218 fi
68219 done
68220
68221 if test "${ice_have_strcasecmp}" = yes; then
68222 { echo "$as_me:$LINENO: checking for strcasecmp declaration in string.h strings.h" >&5
68223 echo $ECHO_N "checking for strcasecmp declaration in string.h strings.h... $ECHO_C" >&6; }
68224 if test "${ice_cv_have_strcasecmp_decl+set}" = set; then
68225   echo $ECHO_N "(cached) $ECHO_C" >&6
68226 else
68227
68228 ice_cv_have_strcasecmp_decl=no
68229 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
68230 ice_re_word='(^|[^a-zA-Z0-9_])'
68231 for header in string.h strings.h; do
68232 # Check for ordinary declaration
68233 cat >conftest.$ac_ext <<_ACEOF
68234 /* confdefs.h.  */
68235 _ACEOF
68236 cat confdefs.h >>conftest.$ac_ext
68237 cat >>conftest.$ac_ext <<_ACEOF
68238 /* end confdefs.h.  */
68239 #include <$header>
68240
68241 _ACEOF
68242 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
68243   $EGREP "${ice_re_word}strcasecmp[     ]*\(" >/dev/null 2>&1; then
68244   ice_cv_have_strcasecmp_decl=yes
68245 fi
68246 rm -f conftest*
68247
68248 if test "$ice_cv_have_strcasecmp_decl" = yes; then
68249         break
68250 fi
68251 # Check for "fixed" declaration like "getpid _PARAMS((int))"
68252 cat >conftest.$ac_ext <<_ACEOF
68253 /* confdefs.h.  */
68254 _ACEOF
68255 cat confdefs.h >>conftest.$ac_ext
68256 cat >>conftest.$ac_ext <<_ACEOF
68257 /* end confdefs.h.  */
68258 #include <$header>
68259
68260 _ACEOF
68261 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
68262   $EGREP "${ice_re_word}strcasecmp[     ]*$ice_re_params\(\(" >/dev/null 2>&1; then
68263   ice_cv_have_strcasecmp_decl=yes
68264 fi
68265 rm -f conftest*
68266
68267 if test "$ice_cv_have_strcasecmp_decl" = yes; then
68268         break
68269 fi
68270 done
68271
68272 fi
68273
68274 { echo "$as_me:$LINENO: result: $ice_cv_have_strcasecmp_decl" >&5
68275 echo "${ECHO_T}$ice_cv_have_strcasecmp_decl" >&6; }
68276 if test "$ice_cv_have_strcasecmp_decl" = yes; then
68277
68278 cat >>confdefs.h <<_ACEOF
68279 #define HAVE_STRCASECMP_DECL 1
68280 _ACEOF
68281
68282 fi
68283 fi
68284
68285
68286
68287 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"
68288
68289
68290 cat >confcache <<\_ACEOF
68291 # This file is a shell script that caches the results of configure
68292 # tests run on this system so they can be shared between configure
68293 # scripts and configure runs, see configure's option --config-cache.
68294 # It is not useful on other systems.  If it contains results you don't
68295 # want to keep, you may remove or edit it.
68296 #
68297 # config.status only pays attention to the cache file if you give it
68298 # the --recheck option to rerun configure.
68299 #
68300 # `ac_cv_env_foo' variables (set or unset) will be overridden when
68301 # loading this file, other *unset* `ac_cv_foo' will be assigned the
68302 # following values.
68303
68304 _ACEOF
68305
68306 # The following way of writing the cache mishandles newlines in values,
68307 # but we know of no workaround that is simple, portable, and efficient.
68308 # So, we kill variables containing newlines.
68309 # Ultrix sh set writes to stderr and can't be redirected directly,
68310 # and sets the high bit in the cache file unless we assign to the vars.
68311 (
68312   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
68313     eval ac_val=\$$ac_var
68314     case $ac_val in #(
68315     *${as_nl}*)
68316       case $ac_var in #(
68317       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
68318 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
68319       esac
68320       case $ac_var in #(
68321       _ | IFS | as_nl) ;; #(
68322       *) $as_unset $ac_var ;;
68323       esac ;;
68324     esac
68325   done
68326
68327   (set) 2>&1 |
68328     case $as_nl`(ac_space=' '; set) 2>&1` in #(
68329     *${as_nl}ac_space=\ *)
68330       # `set' does not quote correctly, so add quotes (double-quote
68331       # substitution turns \\\\ into \\, and sed turns \\ into \).
68332       sed -n \
68333         "s/'/'\\\\''/g;
68334           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
68335       ;; #(
68336     *)
68337       # `set' quotes correctly as required by POSIX, so do not add quotes.
68338       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
68339       ;;
68340     esac |
68341     sort
68342 ) |
68343   sed '
68344      /^ac_cv_env_/b end
68345      t clear
68346      :clear
68347      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
68348      t end
68349      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
68350      :end' >>confcache
68351 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
68352   if test -w "$cache_file"; then
68353     test "x$cache_file" != "x/dev/null" &&
68354       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
68355 echo "$as_me: updating cache $cache_file" >&6;}
68356     cat confcache >$cache_file
68357   else
68358     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
68359 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
68360   fi
68361 fi
68362 rm -f confcache
68363
68364 test "x$prefix" = xNONE && prefix=$ac_default_prefix
68365 # Let make expand exec_prefix.
68366 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
68367
68368 DEFS=-DHAVE_CONFIG_H
68369
68370 ac_libobjs=
68371 ac_ltlibobjs=
68372 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
68373   # 1. Remove the extension, and $U if already installed.
68374   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
68375   ac_i=`echo "$ac_i" | sed "$ac_script"`
68376   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
68377   #    will be set to the directory where LIBOBJS objects are built.
68378   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
68379   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
68380 done
68381 LIBOBJS=$ac_libobjs
68382
68383 LTLIBOBJS=$ac_ltlibobjs
68384
68385
68386 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
68387   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
68388 Usually this means the macro was only invoked conditionally." >&5
68389 echo "$as_me: error: conditional \"AMDEP\" was never defined.
68390 Usually this means the macro was only invoked conditionally." >&2;}
68391    { (exit 1); exit 1; }; }
68392 fi
68393 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
68394   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
68395 Usually this means the macro was only invoked conditionally." >&5
68396 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
68397 Usually this means the macro was only invoked conditionally." >&2;}
68398    { (exit 1); exit 1; }; }
68399 fi
68400 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
68401   { { echo "$as_me:$LINENO: error: conditional \"GL_COND_LIBTOOL\" was never defined.
68402 Usually this means the macro was only invoked conditionally." >&5
68403 echo "$as_me: error: conditional \"GL_COND_LIBTOOL\" was never defined.
68404 Usually this means the macro was only invoked conditionally." >&2;}
68405    { (exit 1); exit 1; }; }
68406 fi
68407
68408     gl_libobjs=
68409     gl_ltlibobjs=
68410     if test -n "$gl_LIBOBJS"; then
68411       # Remove the extension.
68412       sed_drop_objext='s/\.o$//;s/\.obj$//'
68413       for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
68414         gl_libobjs="$gl_libobjs $i.$ac_objext"
68415         gl_ltlibobjs="$gl_ltlibobjs $i.lo"
68416       done
68417     fi
68418     gl_LIBOBJS=$gl_libobjs
68419
68420     gl_LTLIBOBJS=$gl_ltlibobjs
68421
68422
68423 if test -z "${WANT_SETUID_CLIENT_TRUE}" && test -z "${WANT_SETUID_CLIENT_FALSE}"; then
68424   { { echo "$as_me:$LINENO: error: conditional \"WANT_SETUID_CLIENT\" was never defined.
68425 Usually this means the macro was only invoked conditionally." >&5
68426 echo "$as_me: error: conditional \"WANT_SETUID_CLIENT\" was never defined.
68427 Usually this means the macro was only invoked conditionally." >&2;}
68428    { (exit 1); exit 1; }; }
68429 fi
68430 if test -z "${WANT_INSTALLPERMS_TRUE}" && test -z "${WANT_INSTALLPERMS_FALSE}"; then
68431   { { echo "$as_me:$LINENO: error: conditional \"WANT_INSTALLPERMS\" was never defined.
68432 Usually this means the macro was only invoked conditionally." >&5
68433 echo "$as_me: error: conditional \"WANT_INSTALLPERMS\" was never defined.
68434 Usually this means the macro was only invoked conditionally." >&2;}
68435    { (exit 1); exit 1; }; }
68436 fi
68437 if test -z "${WANT_CLIENT_TRUE}" && test -z "${WANT_CLIENT_FALSE}"; then
68438   { { echo "$as_me:$LINENO: error: conditional \"WANT_CLIENT\" was never defined.
68439 Usually this means the macro was only invoked conditionally." >&5
68440 echo "$as_me: error: conditional \"WANT_CLIENT\" was never defined.
68441 Usually this means the macro was only invoked conditionally." >&2;}
68442    { (exit 1); exit 1; }; }
68443 fi
68444 if test -z "${WANT_RESTORE_TRUE}" && test -z "${WANT_RESTORE_FALSE}"; then
68445   { { echo "$as_me:$LINENO: error: conditional \"WANT_RESTORE\" was never defined.
68446 Usually this means the macro was only invoked conditionally." >&5
68447 echo "$as_me: error: conditional \"WANT_RESTORE\" was never defined.
68448 Usually this means the macro was only invoked conditionally." >&2;}
68449    { (exit 1); exit 1; }; }
68450 fi
68451 if test -z "${WANT_SERVER_TRUE}" && test -z "${WANT_SERVER_FALSE}"; then
68452   { { echo "$as_me:$LINENO: error: conditional \"WANT_SERVER\" was never defined.
68453 Usually this means the macro was only invoked conditionally." >&5
68454 echo "$as_me: error: conditional \"WANT_SERVER\" was never defined.
68455 Usually this means the macro was only invoked conditionally." >&2;}
68456    { (exit 1); exit 1; }; }
68457 fi
68458 if test -z "${WANT_RECOVER_TRUE}" && test -z "${WANT_RECOVER_FALSE}"; then
68459   { { echo "$as_me:$LINENO: error: conditional \"WANT_RECOVER\" was never defined.
68460 Usually this means the macro was only invoked conditionally." >&5
68461 echo "$as_me: error: conditional \"WANT_RECOVER\" was never defined.
68462 Usually this means the macro was only invoked conditionally." >&2;}
68463    { (exit 1); exit 1; }; }
68464 fi
68465 if test -z "${WANT_TAPE_TRUE}" && test -z "${WANT_TAPE_FALSE}"; then
68466   { { echo "$as_me:$LINENO: error: conditional \"WANT_TAPE\" was never defined.
68467 Usually this means the macro was only invoked conditionally." >&5
68468 echo "$as_me: error: conditional \"WANT_TAPE\" was never defined.
68469 Usually this means the macro was only invoked conditionally." >&2;}
68470    { (exit 1); exit 1; }; }
68471 fi
68472 if test -z "${WANT_AMPLOT_TRUE}" && test -z "${WANT_AMPLOT_FALSE}"; then
68473   { { echo "$as_me:$LINENO: error: conditional \"WANT_AMPLOT\" was never defined.
68474 Usually this means the macro was only invoked conditionally." >&5
68475 echo "$as_me: error: conditional \"WANT_AMPLOT\" was never defined.
68476 Usually this means the macro was only invoked conditionally." >&2;}
68477    { (exit 1); exit 1; }; }
68478 fi
68479 if test -z "${ENABLE_MANPAGE_BUILD_TRUE}" && test -z "${ENABLE_MANPAGE_BUILD_FALSE}"; then
68480   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_MANPAGE_BUILD\" was never defined.
68481 Usually this means the macro was only invoked conditionally." >&5
68482 echo "$as_me: error: conditional \"ENABLE_MANPAGE_BUILD\" was never defined.
68483 Usually this means the macro was only invoked conditionally." >&2;}
68484    { (exit 1); exit 1; }; }
68485 fi
68486 if test -z "${WANT_CHG_SCSI_TRUE}" && test -z "${WANT_CHG_SCSI_FALSE}"; then
68487   { { echo "$as_me:$LINENO: error: conditional \"WANT_CHG_SCSI\" was never defined.
68488 Usually this means the macro was only invoked conditionally." >&5
68489 echo "$as_me: error: conditional \"WANT_CHG_SCSI\" was never defined.
68490 Usually this means the macro was only invoked conditionally." >&2;}
68491    { (exit 1); exit 1; }; }
68492 fi
68493 if test -z "${WANT_SCSI_LINUX_TRUE}" && test -z "${WANT_SCSI_LINUX_FALSE}"; then
68494   { { echo "$as_me:$LINENO: error: conditional \"WANT_SCSI_LINUX\" was never defined.
68495 Usually this means the macro was only invoked conditionally." >&5
68496 echo "$as_me: error: conditional \"WANT_SCSI_LINUX\" was never defined.
68497 Usually this means the macro was only invoked conditionally." >&2;}
68498    { (exit 1); exit 1; }; }
68499 fi
68500 if test -z "${WANT_SCSI_HPUX_NEW_TRUE}" && test -z "${WANT_SCSI_HPUX_NEW_FALSE}"; then
68501   { { echo "$as_me:$LINENO: error: conditional \"WANT_SCSI_HPUX_NEW\" was never defined.
68502 Usually this means the macro was only invoked conditionally." >&5
68503 echo "$as_me: error: conditional \"WANT_SCSI_HPUX_NEW\" was never defined.
68504 Usually this means the macro was only invoked conditionally." >&2;}
68505    { (exit 1); exit 1; }; }
68506 fi
68507 if test -z "${WANT_SCSI_IRIX_TRUE}" && test -z "${WANT_SCSI_IRIX_FALSE}"; then
68508   { { echo "$as_me:$LINENO: error: conditional \"WANT_SCSI_IRIX\" was never defined.
68509 Usually this means the macro was only invoked conditionally." >&5
68510 echo "$as_me: error: conditional \"WANT_SCSI_IRIX\" was never defined.
68511 Usually this means the macro was only invoked conditionally." >&2;}
68512    { (exit 1); exit 1; }; }
68513 fi
68514 if test -z "${WANT_SCSI_SOLARIS_TRUE}" && test -z "${WANT_SCSI_SOLARIS_FALSE}"; then
68515   { { echo "$as_me:$LINENO: error: conditional \"WANT_SCSI_SOLARIS\" was never defined.
68516 Usually this means the macro was only invoked conditionally." >&5
68517 echo "$as_me: error: conditional \"WANT_SCSI_SOLARIS\" was never defined.
68518 Usually this means the macro was only invoked conditionally." >&2;}
68519    { (exit 1); exit 1; }; }
68520 fi
68521 if test -z "${WANT_SCSI_AIX_TRUE}" && test -z "${WANT_SCSI_AIX_FALSE}"; then
68522   { { echo "$as_me:$LINENO: error: conditional \"WANT_SCSI_AIX\" was never defined.
68523 Usually this means the macro was only invoked conditionally." >&5
68524 echo "$as_me: error: conditional \"WANT_SCSI_AIX\" was never defined.
68525 Usually this means the macro was only invoked conditionally." >&2;}
68526    { (exit 1); exit 1; }; }
68527 fi
68528 if test -z "${WANT_SCSI_CAM_TRUE}" && test -z "${WANT_SCSI_CAM_FALSE}"; then
68529   { { echo "$as_me:$LINENO: error: conditional \"WANT_SCSI_CAM\" was never defined.
68530 Usually this means the macro was only invoked conditionally." >&5
68531 echo "$as_me: error: conditional \"WANT_SCSI_CAM\" was never defined.
68532 Usually this means the macro was only invoked conditionally." >&2;}
68533    { (exit 1); exit 1; }; }
68534 fi
68535 if test -z "${WANT_SCSI_BSD_TRUE}" && test -z "${WANT_SCSI_BSD_FALSE}"; then
68536   { { echo "$as_me:$LINENO: error: conditional \"WANT_SCSI_BSD\" was never defined.
68537 Usually this means the macro was only invoked conditionally." >&5
68538 echo "$as_me: error: conditional \"WANT_SCSI_BSD\" was never defined.
68539 Usually this means the macro was only invoked conditionally." >&2;}
68540    { (exit 1); exit 1; }; }
68541 fi
68542 if test -z "${WANT_CHG_SCSI_CHIO_TRUE}" && test -z "${WANT_CHG_SCSI_CHIO_FALSE}"; then
68543   { { echo "$as_me:$LINENO: error: conditional \"WANT_CHG_SCSI_CHIO\" was never defined.
68544 Usually this means the macro was only invoked conditionally." >&5
68545 echo "$as_me: error: conditional \"WANT_CHG_SCSI_CHIO\" was never defined.
68546 Usually this means the macro was only invoked conditionally." >&2;}
68547    { (exit 1); exit 1; }; }
68548 fi
68549 if test -z "${WANT_SCSI_HPUX_TRUE}" && test -z "${WANT_SCSI_HPUX_FALSE}"; then
68550   { { echo "$as_me:$LINENO: error: conditional \"WANT_SCSI_HPUX\" was never defined.
68551 Usually this means the macro was only invoked conditionally." >&5
68552 echo "$as_me: error: conditional \"WANT_SCSI_HPUX\" was never defined.
68553 Usually this means the macro was only invoked conditionally." >&2;}
68554    { (exit 1); exit 1; }; }
68555 fi
68556 if test -z "${WANT_SCSI_CHIO_TRUE}" && test -z "${WANT_SCSI_CHIO_FALSE}"; then
68557   { { echo "$as_me:$LINENO: error: conditional \"WANT_SCSI_CHIO\" was never defined.
68558 Usually this means the macro was only invoked conditionally." >&5
68559 echo "$as_me: error: conditional \"WANT_SCSI_CHIO\" was never defined.
68560 Usually this means the macro was only invoked conditionally." >&2;}
68561    { (exit 1); exit 1; }; }
68562 fi
68563 if test -z "${WANT_AMFLOCK_POSIX_TRUE}" && test -z "${WANT_AMFLOCK_POSIX_FALSE}"; then
68564   { { echo "$as_me:$LINENO: error: conditional \"WANT_AMFLOCK_POSIX\" was never defined.
68565 Usually this means the macro was only invoked conditionally." >&5
68566 echo "$as_me: error: conditional \"WANT_AMFLOCK_POSIX\" was never defined.
68567 Usually this means the macro was only invoked conditionally." >&2;}
68568    { (exit 1); exit 1; }; }
68569 fi
68570 if test -z "${WANT_AMFLOCK_FLOCK_TRUE}" && test -z "${WANT_AMFLOCK_FLOCK_FALSE}"; then
68571   { { echo "$as_me:$LINENO: error: conditional \"WANT_AMFLOCK_FLOCK\" was never defined.
68572 Usually this means the macro was only invoked conditionally." >&5
68573 echo "$as_me: error: conditional \"WANT_AMFLOCK_FLOCK\" was never defined.
68574 Usually this means the macro was only invoked conditionally." >&2;}
68575    { (exit 1); exit 1; }; }
68576 fi
68577 if test -z "${WANT_AMFLOCK_LOCKF_TRUE}" && test -z "${WANT_AMFLOCK_LOCKF_FALSE}"; then
68578   { { echo "$as_me:$LINENO: error: conditional \"WANT_AMFLOCK_LOCKF\" was never defined.
68579 Usually this means the macro was only invoked conditionally." >&5
68580 echo "$as_me: error: conditional \"WANT_AMFLOCK_LOCKF\" was never defined.
68581 Usually this means the macro was only invoked conditionally." >&2;}
68582    { (exit 1); exit 1; }; }
68583 fi
68584 if test -z "${WANT_AMFLOCK_LNLOCK_TRUE}" && test -z "${WANT_AMFLOCK_LNLOCK_FALSE}"; then
68585   { { echo "$as_me:$LINENO: error: conditional \"WANT_AMFLOCK_LNLOCK\" was never defined.
68586 Usually this means the macro was only invoked conditionally." >&5
68587 echo "$as_me: error: conditional \"WANT_AMFLOCK_LNLOCK\" was never defined.
68588 Usually this means the macro was only invoked conditionally." >&2;}
68589    { (exit 1); exit 1; }; }
68590 fi
68591 if test -z "${WANT_CYGWIN_COPY_PERL_DLL_TRUE}" && test -z "${WANT_CYGWIN_COPY_PERL_DLL_FALSE}"; then
68592   { { echo "$as_me:$LINENO: error: conditional \"WANT_CYGWIN_COPY_PERL_DLL\" was never defined.
68593 Usually this means the macro was only invoked conditionally." >&5
68594 echo "$as_me: error: conditional \"WANT_CYGWIN_COPY_PERL_DLL\" was never defined.
68595 Usually this means the macro was only invoked conditionally." >&2;}
68596    { (exit 1); exit 1; }; }
68597 fi
68598 if test -z "${WANT_S3_DEVICE_TRUE}" && test -z "${WANT_S3_DEVICE_FALSE}"; then
68599   { { echo "$as_me:$LINENO: error: conditional \"WANT_S3_DEVICE\" was never defined.
68600 Usually this means the macro was only invoked conditionally." >&5
68601 echo "$as_me: error: conditional \"WANT_S3_DEVICE\" was never defined.
68602 Usually this means the macro was only invoked conditionally." >&2;}
68603    { (exit 1); exit 1; }; }
68604 fi
68605 if test -z "${WANT_DEVPAY_TRUE}" && test -z "${WANT_DEVPAY_FALSE}"; then
68606   { { echo "$as_me:$LINENO: error: conditional \"WANT_DEVPAY\" was never defined.
68607 Usually this means the macro was only invoked conditionally." >&5
68608 echo "$as_me: error: conditional \"WANT_DEVPAY\" was never defined.
68609 Usually this means the macro was only invoked conditionally." >&2;}
68610    { (exit 1); exit 1; }; }
68611 fi
68612 if test -z "${WANT_TAPE_XENIX_TRUE}" && test -z "${WANT_TAPE_XENIX_FALSE}"; then
68613   { { echo "$as_me:$LINENO: error: conditional \"WANT_TAPE_XENIX\" was never defined.
68614 Usually this means the macro was only invoked conditionally." >&5
68615 echo "$as_me: error: conditional \"WANT_TAPE_XENIX\" was never defined.
68616 Usually this means the macro was only invoked conditionally." >&2;}
68617    { (exit 1); exit 1; }; }
68618 fi
68619 if test -z "${WANT_TAPE_AIX_TRUE}" && test -z "${WANT_TAPE_AIX_FALSE}"; then
68620   { { echo "$as_me:$LINENO: error: conditional \"WANT_TAPE_AIX\" was never defined.
68621 Usually this means the macro was only invoked conditionally." >&5
68622 echo "$as_me: error: conditional \"WANT_TAPE_AIX\" was never defined.
68623 Usually this means the macro was only invoked conditionally." >&2;}
68624    { (exit 1); exit 1; }; }
68625 fi
68626 if test -z "${WANT_TAPE_UWARE_TRUE}" && test -z "${WANT_TAPE_UWARE_FALSE}"; then
68627   { { echo "$as_me:$LINENO: error: conditional \"WANT_TAPE_UWARE\" was never defined.
68628 Usually this means the macro was only invoked conditionally." >&5
68629 echo "$as_me: error: conditional \"WANT_TAPE_UWARE\" was never defined.
68630 Usually this means the macro was only invoked conditionally." >&2;}
68631    { (exit 1); exit 1; }; }
68632 fi
68633 if test -z "${WANT_TAPE_POSIX_TRUE}" && test -z "${WANT_TAPE_POSIX_FALSE}"; then
68634   { { echo "$as_me:$LINENO: error: conditional \"WANT_TAPE_POSIX\" was never defined.
68635 Usually this means the macro was only invoked conditionally." >&5
68636 echo "$as_me: error: conditional \"WANT_TAPE_POSIX\" was never defined.
68637 Usually this means the macro was only invoked conditionally." >&2;}
68638    { (exit 1); exit 1; }; }
68639 fi
68640 if test -z "${WANT_TAPE_DEVICE_TRUE}" && test -z "${WANT_TAPE_DEVICE_FALSE}"; then
68641   { { echo "$as_me:$LINENO: error: conditional \"WANT_TAPE_DEVICE\" was never defined.
68642 Usually this means the macro was only invoked conditionally." >&5
68643 echo "$as_me: error: conditional \"WANT_TAPE_DEVICE\" was never defined.
68644 Usually this means the macro was only invoked conditionally." >&2;}
68645    { (exit 1); exit 1; }; }
68646 fi
68647 if test -z "${WANT_BSD_SECURITY_TRUE}" && test -z "${WANT_BSD_SECURITY_FALSE}"; then
68648   { { echo "$as_me:$LINENO: error: conditional \"WANT_BSD_SECURITY\" was never defined.
68649 Usually this means the macro was only invoked conditionally." >&5
68650 echo "$as_me: error: conditional \"WANT_BSD_SECURITY\" was never defined.
68651 Usually this means the macro was only invoked conditionally." >&2;}
68652    { (exit 1); exit 1; }; }
68653 fi
68654 if test -z "${WANT_BSDTCP_SECURITY_TRUE}" && test -z "${WANT_BSDTCP_SECURITY_FALSE}"; then
68655   { { echo "$as_me:$LINENO: error: conditional \"WANT_BSDTCP_SECURITY\" was never defined.
68656 Usually this means the macro was only invoked conditionally." >&5
68657 echo "$as_me: error: conditional \"WANT_BSDTCP_SECURITY\" was never defined.
68658 Usually this means the macro was only invoked conditionally." >&2;}
68659    { (exit 1); exit 1; }; }
68660 fi
68661 if test -z "${WANT_BSDUDP_SECURITY_TRUE}" && test -z "${WANT_BSDUDP_SECURITY_FALSE}"; then
68662   { { echo "$as_me:$LINENO: error: conditional \"WANT_BSDUDP_SECURITY\" was never defined.
68663 Usually this means the macro was only invoked conditionally." >&5
68664 echo "$as_me: error: conditional \"WANT_BSDUDP_SECURITY\" was never defined.
68665 Usually this means the macro was only invoked conditionally." >&2;}
68666    { (exit 1); exit 1; }; }
68667 fi
68668 if test -z "${WANT_RSH_SECURITY_TRUE}" && test -z "${WANT_RSH_SECURITY_FALSE}"; then
68669   { { echo "$as_me:$LINENO: error: conditional \"WANT_RSH_SECURITY\" was never defined.
68670 Usually this means the macro was only invoked conditionally." >&5
68671 echo "$as_me: error: conditional \"WANT_RSH_SECURITY\" was never defined.
68672 Usually this means the macro was only invoked conditionally." >&2;}
68673    { (exit 1); exit 1; }; }
68674 fi
68675 if test -z "${WANT_SSH_SECURITY_TRUE}" && test -z "${WANT_SSH_SECURITY_FALSE}"; then
68676   { { echo "$as_me:$LINENO: error: conditional \"WANT_SSH_SECURITY\" was never defined.
68677 Usually this means the macro was only invoked conditionally." >&5
68678 echo "$as_me: error: conditional \"WANT_SSH_SECURITY\" was never defined.
68679 Usually this means the macro was only invoked conditionally." >&2;}
68680    { (exit 1); exit 1; }; }
68681 fi
68682 if test -z "${WANT_KRB4_SECURITY_TRUE}" && test -z "${WANT_KRB4_SECURITY_FALSE}"; then
68683   { { echo "$as_me:$LINENO: error: conditional \"WANT_KRB4_SECURITY\" was never defined.
68684 Usually this means the macro was only invoked conditionally." >&5
68685 echo "$as_me: error: conditional \"WANT_KRB4_SECURITY\" was never defined.
68686 Usually this means the macro was only invoked conditionally." >&2;}
68687    { (exit 1); exit 1; }; }
68688 fi
68689 if test -z "${WANT_KRB5_SECURITY_TRUE}" && test -z "${WANT_KRB5_SECURITY_FALSE}"; then
68690   { { echo "$as_me:$LINENO: error: conditional \"WANT_KRB5_SECURITY\" was never defined.
68691 Usually this means the macro was only invoked conditionally." >&5
68692 echo "$as_me: error: conditional \"WANT_KRB5_SECURITY\" was never defined.
68693 Usually this means the macro was only invoked conditionally." >&2;}
68694    { (exit 1); exit 1; }; }
68695 fi
68696 if test -z "${WANT_SAMBA_TRUE}" && test -z "${WANT_SAMBA_FALSE}"; then
68697   { { echo "$as_me:$LINENO: error: conditional \"WANT_SAMBA\" was never defined.
68698 Usually this means the macro was only invoked conditionally." >&5
68699 echo "$as_me: error: conditional \"WANT_SAMBA\" was never defined.
68700 Usually this means the macro was only invoked conditionally." >&2;}
68701    { (exit 1); exit 1; }; }
68702 fi
68703 if test -z "${GCC_COMPILER_TRUE}" && test -z "${GCC_COMPILER_FALSE}"; then
68704   { { echo "$as_me:$LINENO: error: conditional \"GCC_COMPILER\" was never defined.
68705 Usually this means the macro was only invoked conditionally." >&5
68706 echo "$as_me: error: conditional \"GCC_COMPILER\" was never defined.
68707 Usually this means the macro was only invoked conditionally." >&2;}
68708    { (exit 1); exit 1; }; }
68709 fi
68710 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
68711   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
68712 Usually this means the macro was only invoked conditionally." >&5
68713 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
68714 Usually this means the macro was only invoked conditionally." >&2;}
68715    { (exit 1); exit 1; }; }
68716 fi
68717
68718 : ${CONFIG_STATUS=./config.status}
68719 ac_clean_files_save=$ac_clean_files
68720 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
68721 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
68722 echo "$as_me: creating $CONFIG_STATUS" >&6;}
68723 cat >$CONFIG_STATUS <<_ACEOF
68724 #! $SHELL
68725 # Generated by $as_me.
68726 # Run this file to recreate the current configuration.
68727 # Compiler output produced by configure, useful for debugging
68728 # configure, is in config.log if it exists.
68729
68730 debug=false
68731 ac_cs_recheck=false
68732 ac_cs_silent=false
68733 SHELL=\${CONFIG_SHELL-$SHELL}
68734 _ACEOF
68735
68736 cat >>$CONFIG_STATUS <<\_ACEOF
68737 ## --------------------- ##
68738 ## M4sh Initialization.  ##
68739 ## --------------------- ##
68740
68741 # Be more Bourne compatible
68742 DUALCASE=1; export DUALCASE # for MKS sh
68743 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
68744   emulate sh
68745   NULLCMD=:
68746   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
68747   # is contrary to our usage.  Disable this feature.
68748   alias -g '${1+"$@"}'='"$@"'
68749   setopt NO_GLOB_SUBST
68750 else
68751   case `(set -o) 2>/dev/null` in
68752   *posix*) set -o posix ;;
68753 esac
68754
68755 fi
68756
68757
68758
68759
68760 # PATH needs CR
68761 # Avoid depending upon Character Ranges.
68762 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
68763 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
68764 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
68765 as_cr_digits='0123456789'
68766 as_cr_alnum=$as_cr_Letters$as_cr_digits
68767
68768 # The user is always right.
68769 if test "${PATH_SEPARATOR+set}" != set; then
68770   echo "#! /bin/sh" >conf$$.sh
68771   echo  "exit 0"   >>conf$$.sh
68772   chmod +x conf$$.sh
68773   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
68774     PATH_SEPARATOR=';'
68775   else
68776     PATH_SEPARATOR=:
68777   fi
68778   rm -f conf$$.sh
68779 fi
68780
68781 # Support unset when possible.
68782 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
68783   as_unset=unset
68784 else
68785   as_unset=false
68786 fi
68787
68788
68789 # IFS
68790 # We need space, tab and new line, in precisely that order.  Quoting is
68791 # there to prevent editors from complaining about space-tab.
68792 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
68793 # splitting by setting IFS to empty value.)
68794 as_nl='
68795 '
68796 IFS=" ""        $as_nl"
68797
68798 # Find who we are.  Look in the path if we contain no directory separator.
68799 case $0 in
68800   *[\\/]* ) as_myself=$0 ;;
68801   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
68802 for as_dir in $PATH
68803 do
68804   IFS=$as_save_IFS
68805   test -z "$as_dir" && as_dir=.
68806   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
68807 done
68808 IFS=$as_save_IFS
68809
68810      ;;
68811 esac
68812 # We did not find ourselves, most probably we were run as `sh COMMAND'
68813 # in which case we are not to be found in the path.
68814 if test "x$as_myself" = x; then
68815   as_myself=$0
68816 fi
68817 if test ! -f "$as_myself"; then
68818   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
68819   { (exit 1); exit 1; }
68820 fi
68821
68822 # Work around bugs in pre-3.0 UWIN ksh.
68823 for as_var in ENV MAIL MAILPATH
68824 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
68825 done
68826 PS1='$ '
68827 PS2='> '
68828 PS4='+ '
68829
68830 # NLS nuisances.
68831 for as_var in \
68832   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
68833   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
68834   LC_TELEPHONE LC_TIME
68835 do
68836   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
68837     eval $as_var=C; export $as_var
68838   else
68839     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
68840   fi
68841 done
68842
68843 # Required to use basename.
68844 if expr a : '\(a\)' >/dev/null 2>&1 &&
68845    test "X`expr 00001 : '.*\(...\)'`" = X001; then
68846   as_expr=expr
68847 else
68848   as_expr=false
68849 fi
68850
68851 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
68852   as_basename=basename
68853 else
68854   as_basename=false
68855 fi
68856
68857
68858 # Name of the executable.
68859 as_me=`$as_basename -- "$0" ||
68860 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68861          X"$0" : 'X\(//\)$' \| \
68862          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
68863 echo X/"$0" |
68864     sed '/^.*\/\([^/][^/]*\)\/*$/{
68865             s//\1/
68866             q
68867           }
68868           /^X\/\(\/\/\)$/{
68869             s//\1/
68870             q
68871           }
68872           /^X\/\(\/\).*/{
68873             s//\1/
68874             q
68875           }
68876           s/.*/./; q'`
68877
68878 # CDPATH.
68879 $as_unset CDPATH
68880
68881
68882
68883   as_lineno_1=$LINENO
68884   as_lineno_2=$LINENO
68885   test "x$as_lineno_1" != "x$as_lineno_2" &&
68886   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
68887
68888   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
68889   # uniformly replaced by the line number.  The first 'sed' inserts a
68890   # line-number line after each line using $LINENO; the second 'sed'
68891   # does the real work.  The second script uses 'N' to pair each
68892   # line-number line with the line containing $LINENO, and appends
68893   # trailing '-' during substitution so that $LINENO is not a special
68894   # case at line end.
68895   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
68896   # scripts with optimization help from Paolo Bonzini.  Blame Lee
68897   # E. McMahon (1931-1989) for sed's syntax.  :-)
68898   sed -n '
68899     p
68900     /[$]LINENO/=
68901   ' <$as_myself |
68902     sed '
68903       s/[$]LINENO.*/&-/
68904       t lineno
68905       b
68906       :lineno
68907       N
68908       :loop
68909       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
68910       t loop
68911       s/-\n.*//
68912     ' >$as_me.lineno &&
68913   chmod +x "$as_me.lineno" ||
68914     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
68915    { (exit 1); exit 1; }; }
68916
68917   # Don't try to exec as it changes $[0], causing all sort of problems
68918   # (the dirname of $[0] is not the place where we might find the
68919   # original and so on.  Autoconf is especially sensitive to this).
68920   . "./$as_me.lineno"
68921   # Exit status is that of the last command.
68922   exit
68923 }
68924
68925
68926 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
68927   as_dirname=dirname
68928 else
68929   as_dirname=false
68930 fi
68931
68932 ECHO_C= ECHO_N= ECHO_T=
68933 case `echo -n x` in
68934 -n*)
68935   case `echo 'x\c'` in
68936   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
68937   *)   ECHO_C='\c';;
68938   esac;;
68939 *)
68940   ECHO_N='-n';;
68941 esac
68942
68943 if expr a : '\(a\)' >/dev/null 2>&1 &&
68944    test "X`expr 00001 : '.*\(...\)'`" = X001; then
68945   as_expr=expr
68946 else
68947   as_expr=false
68948 fi
68949
68950 rm -f conf$$ conf$$.exe conf$$.file
68951 if test -d conf$$.dir; then
68952   rm -f conf$$.dir/conf$$.file
68953 else
68954   rm -f conf$$.dir
68955   mkdir conf$$.dir
68956 fi
68957 echo >conf$$.file
68958 if ln -s conf$$.file conf$$ 2>/dev/null; then
68959   as_ln_s='ln -s'
68960   # ... but there are two gotchas:
68961   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
68962   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
68963   # In both cases, we have to default to `cp -p'.
68964   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
68965     as_ln_s='cp -p'
68966 elif ln conf$$.file conf$$ 2>/dev/null; then
68967   as_ln_s=ln
68968 else
68969   as_ln_s='cp -p'
68970 fi
68971 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
68972 rmdir conf$$.dir 2>/dev/null
68973
68974 if mkdir -p . 2>/dev/null; then
68975   as_mkdir_p=:
68976 else
68977   test -d ./-p && rmdir ./-p
68978   as_mkdir_p=false
68979 fi
68980
68981 if test -x / >/dev/null 2>&1; then
68982   as_test_x='test -x'
68983 else
68984   if ls -dL / >/dev/null 2>&1; then
68985     as_ls_L_option=L
68986   else
68987     as_ls_L_option=
68988   fi
68989   as_test_x='
68990     eval sh -c '\''
68991       if test -d "$1"; then
68992         test -d "$1/.";
68993       else
68994         case $1 in
68995         -*)set "./$1";;
68996         esac;
68997         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
68998         ???[sx]*):;;*)false;;esac;fi
68999     '\'' sh
69000   '
69001 fi
69002 as_executable_p=$as_test_x
69003
69004 # Sed expression to map a string onto a valid CPP name.
69005 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
69006
69007 # Sed expression to map a string onto a valid variable name.
69008 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
69009
69010
69011 exec 6>&1
69012
69013 # Save the log message, to keep $[0] and so on meaningful, and to
69014 # report actual input values of CONFIG_FILES etc. instead of their
69015 # values after options handling.
69016 ac_log="
69017 This file was extended by $as_me, which was
69018 generated by GNU Autoconf 2.61.  Invocation command line was
69019
69020   CONFIG_FILES    = $CONFIG_FILES
69021   CONFIG_HEADERS  = $CONFIG_HEADERS
69022   CONFIG_LINKS    = $CONFIG_LINKS
69023   CONFIG_COMMANDS = $CONFIG_COMMANDS
69024   $ $0 $@
69025
69026 on `(hostname || uname -n) 2>/dev/null | sed 1q`
69027 "
69028
69029 _ACEOF
69030
69031 cat >>$CONFIG_STATUS <<_ACEOF
69032 # Files that config.status was made for.
69033 config_files="$ac_config_files"
69034 config_headers="$ac_config_headers"
69035 config_commands="$ac_config_commands"
69036
69037 _ACEOF
69038
69039 cat >>$CONFIG_STATUS <<\_ACEOF
69040 ac_cs_usage="\
69041 \`$as_me' instantiates files from templates according to the
69042 current configuration.
69043
69044 Usage: $0 [OPTIONS] [FILE]...
69045
69046   -h, --help       print this help, then exit
69047   -V, --version    print version number and configuration settings, then exit
69048   -q, --quiet      do not print progress messages
69049   -d, --debug      don't remove temporary files
69050       --recheck    update $as_me by reconfiguring in the same conditions
69051   --file=FILE[:TEMPLATE]
69052                    instantiate the configuration file FILE
69053   --header=FILE[:TEMPLATE]
69054                    instantiate the configuration header FILE
69055
69056 Configuration files:
69057 $config_files
69058
69059 Configuration headers:
69060 $config_headers
69061
69062 Configuration commands:
69063 $config_commands
69064
69065 Report bugs to <bug-autoconf@gnu.org>."
69066
69067 _ACEOF
69068 cat >>$CONFIG_STATUS <<_ACEOF
69069 ac_cs_version="\\
69070 config.status
69071 configured by $0, generated by GNU Autoconf 2.61,
69072   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
69073
69074 Copyright (C) 2006 Free Software Foundation, Inc.
69075 This config.status script is free software; the Free Software Foundation
69076 gives unlimited permission to copy, distribute and modify it."
69077
69078 ac_pwd='$ac_pwd'
69079 srcdir='$srcdir'
69080 INSTALL='$INSTALL'
69081 MKDIR_P='$MKDIR_P'
69082 _ACEOF
69083
69084 cat >>$CONFIG_STATUS <<\_ACEOF
69085 # If no file are specified by the user, then we need to provide default
69086 # value.  By we need to know if files were specified by the user.
69087 ac_need_defaults=:
69088 while test $# != 0
69089 do
69090   case $1 in
69091   --*=*)
69092     ac_option=`expr "X$1" : 'X\([^=]*\)='`
69093     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
69094     ac_shift=:
69095     ;;
69096   *)
69097     ac_option=$1
69098     ac_optarg=$2
69099     ac_shift=shift
69100     ;;
69101   esac
69102
69103   case $ac_option in
69104   # Handling of the options.
69105   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
69106     ac_cs_recheck=: ;;
69107   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
69108     echo "$ac_cs_version"; exit ;;
69109   --debug | --debu | --deb | --de | --d | -d )
69110     debug=: ;;
69111   --file | --fil | --fi | --f )
69112     $ac_shift
69113     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
69114     ac_need_defaults=false;;
69115   --header | --heade | --head | --hea )
69116     $ac_shift
69117     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
69118     ac_need_defaults=false;;
69119   --he | --h)
69120     # Conflict between --help and --header
69121     { echo "$as_me: error: ambiguous option: $1
69122 Try \`$0 --help' for more information." >&2
69123    { (exit 1); exit 1; }; };;
69124   --help | --hel | -h )
69125     echo "$ac_cs_usage"; exit ;;
69126   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
69127   | -silent | --silent | --silen | --sile | --sil | --si | --s)
69128     ac_cs_silent=: ;;
69129
69130   # This is an error.
69131   -*) { echo "$as_me: error: unrecognized option: $1
69132 Try \`$0 --help' for more information." >&2
69133    { (exit 1); exit 1; }; } ;;
69134
69135   *) ac_config_targets="$ac_config_targets $1"
69136      ac_need_defaults=false ;;
69137
69138   esac
69139   shift
69140 done
69141
69142 ac_configure_extra_args=
69143
69144 if $ac_cs_silent; then
69145   exec 6>/dev/null
69146   ac_configure_extra_args="$ac_configure_extra_args --silent"
69147 fi
69148
69149 _ACEOF
69150 cat >>$CONFIG_STATUS <<_ACEOF
69151 if \$ac_cs_recheck; then
69152   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
69153   CONFIG_SHELL=$SHELL
69154   export CONFIG_SHELL
69155   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
69156 fi
69157
69158 _ACEOF
69159 cat >>$CONFIG_STATUS <<\_ACEOF
69160 exec 5>>config.log
69161 {
69162   echo
69163   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
69164 ## Running $as_me. ##
69165 _ASBOX
69166   echo "$ac_log"
69167 } >&5
69168
69169 _ACEOF
69170 cat >>$CONFIG_STATUS <<_ACEOF
69171 #
69172 # INIT-COMMANDS
69173 #
69174 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
69175 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
69176     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
69177     # from automake < 1.5.
69178     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
69179     # Capture the value of LINGUAS because we need it to compute CATALOGS.
69180     LINGUAS="${LINGUAS-%UNSET%}"
69181
69182
69183 _ACEOF
69184
69185 cat >>$CONFIG_STATUS <<\_ACEOF
69186
69187 # Handling of arguments.
69188 for ac_config_target in $ac_config_targets
69189 do
69190   case $ac_config_target in
69191     "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
69192     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
69193     "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
69194     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
69195     "amandad-src/Makefile") CONFIG_FILES="$CONFIG_FILES amandad-src/Makefile" ;;
69196     "amplot/Makefile") CONFIG_FILES="$CONFIG_FILES amplot/Makefile" ;;
69197     "changer-src/Makefile") CONFIG_FILES="$CONFIG_FILES changer-src/Makefile" ;;
69198     "client-src/Makefile") CONFIG_FILES="$CONFIG_FILES client-src/Makefile" ;;
69199     "common-src/Makefile") CONFIG_FILES="$CONFIG_FILES common-src/Makefile" ;;
69200     "common-src/versuff.c") CONFIG_FILES="$CONFIG_FILES common-src/versuff.c" ;;
69201     "config/Makefile") CONFIG_FILES="$CONFIG_FILES config/Makefile" ;;
69202     "device-src/Makefile") CONFIG_FILES="$CONFIG_FILES device-src/Makefile" ;;
69203     "device-src/tests/Makefile") CONFIG_FILES="$CONFIG_FILES device-src/tests/Makefile" ;;
69204     "dumper-src/Makefile") CONFIG_FILES="$CONFIG_FILES dumper-src/Makefile" ;;
69205     "example/Makefile") CONFIG_FILES="$CONFIG_FILES example/Makefile" ;;
69206     "example/amanda-client.conf") CONFIG_FILES="$CONFIG_FILES example/amanda-client.conf" ;;
69207     "example/amanda.conf") CONFIG_FILES="$CONFIG_FILES example/amanda.conf" ;;
69208     "example/chg-mcutil.conf") CONFIG_FILES="$CONFIG_FILES example/chg-mcutil.conf" ;;
69209     "example/template.d/amanda-S3.conf") CONFIG_FILES="$CONFIG_FILES example/template.d/amanda-S3.conf" ;;
69210     "example/template.d/advanced.conf") CONFIG_FILES="$CONFIG_FILES example/template.d/advanced.conf" ;;
69211     "example/template.d/amanda-harddisk.conf") CONFIG_FILES="$CONFIG_FILES example/template.d/amanda-harddisk.conf" ;;
69212     "example/template.d/amanda-single-tape.conf") CONFIG_FILES="$CONFIG_FILES example/template.d/amanda-single-tape.conf" ;;
69213     "example/template.d/amanda-tape-changer.conf") CONFIG_FILES="$CONFIG_FILES example/template.d/amanda-tape-changer.conf" ;;
69214     "gnulib/Makefile") CONFIG_FILES="$CONFIG_FILES gnulib/Makefile" ;;
69215     "installcheck/Makefile") CONFIG_FILES="$CONFIG_FILES installcheck/Makefile" ;;
69216     "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
69217     "oldrecover-src/Makefile") CONFIG_FILES="$CONFIG_FILES oldrecover-src/Makefile" ;;
69218     "packaging/Makefile") CONFIG_FILES="$CONFIG_FILES packaging/Makefile" ;;
69219     "perl/Makefile") CONFIG_FILES="$CONFIG_FILES perl/Makefile" ;;
69220     "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
69221     "recover-src/Makefile") CONFIG_FILES="$CONFIG_FILES recover-src/Makefile" ;;
69222     "restore-src/Makefile") CONFIG_FILES="$CONFIG_FILES restore-src/Makefile" ;;
69223     "server-src/Makefile") CONFIG_FILES="$CONFIG_FILES server-src/Makefile" ;;
69224     "tape-src/Makefile") CONFIG_FILES="$CONFIG_FILES tape-src/Makefile" ;;
69225
69226   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
69227 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
69228    { (exit 1); exit 1; }; };;
69229   esac
69230 done
69231
69232
69233 # If the user did not use the arguments to specify the items to instantiate,
69234 # then the envvar interface is used.  Set only those that are not.
69235 # We use the long form for the default assignment because of an extremely
69236 # bizarre bug on SunOS 4.1.3.
69237 if $ac_need_defaults; then
69238   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
69239   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
69240   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
69241 fi
69242
69243 # Have a temporary directory for convenience.  Make it in the build tree
69244 # simply because there is no reason against having it here, and in addition,
69245 # creating and moving files from /tmp can sometimes cause problems.
69246 # Hook for its removal unless debugging.
69247 # Note that there is a small window in which the directory will not be cleaned:
69248 # after its creation but before its name has been assigned to `$tmp'.
69249 $debug ||
69250 {
69251   tmp=
69252   trap 'exit_status=$?
69253   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
69254 ' 0
69255   trap '{ (exit 1); exit 1; }' 1 2 13 15
69256 }
69257 # Create a (secure) tmp directory for tmp files.
69258
69259 {
69260   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
69261   test -n "$tmp" && test -d "$tmp"
69262 }  ||
69263 {
69264   tmp=./conf$$-$RANDOM
69265   (umask 077 && mkdir "$tmp")
69266 } ||
69267 {
69268    echo "$me: cannot create a temporary directory in ." >&2
69269    { (exit 1); exit 1; }
69270 }
69271
69272 #
69273 # Set up the sed scripts for CONFIG_FILES section.
69274 #
69275
69276 # No need to generate the scripts if there are no CONFIG_FILES.
69277 # This happens for instance when ./config.status config.h
69278 if test -n "$CONFIG_FILES"; then
69279
69280 _ACEOF
69281
69282
69283
69284 ac_delim='%!_!# '
69285 for ac_last_try in false false false false false :; do
69286   cat >conf$$subs.sed <<_ACEOF
69287 SHELL!$SHELL$ac_delim
69288 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
69289 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
69290 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
69291 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
69292 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
69293 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
69294 exec_prefix!$exec_prefix$ac_delim
69295 prefix!$prefix$ac_delim
69296 program_transform_name!$program_transform_name$ac_delim
69297 bindir!$bindir$ac_delim
69298 sbindir!$sbindir$ac_delim
69299 libexecdir!$libexecdir$ac_delim
69300 datarootdir!$datarootdir$ac_delim
69301 datadir!$datadir$ac_delim
69302 sysconfdir!$sysconfdir$ac_delim
69303 sharedstatedir!$sharedstatedir$ac_delim
69304 localstatedir!$localstatedir$ac_delim
69305 includedir!$includedir$ac_delim
69306 oldincludedir!$oldincludedir$ac_delim
69307 docdir!$docdir$ac_delim
69308 infodir!$infodir$ac_delim
69309 htmldir!$htmldir$ac_delim
69310 dvidir!$dvidir$ac_delim
69311 pdfdir!$pdfdir$ac_delim
69312 psdir!$psdir$ac_delim
69313 libdir!$libdir$ac_delim
69314 localedir!$localedir$ac_delim
69315 mandir!$mandir$ac_delim
69316 DEFS!$DEFS$ac_delim
69317 ECHO_C!$ECHO_C$ac_delim
69318 ECHO_N!$ECHO_N$ac_delim
69319 ECHO_T!$ECHO_T$ac_delim
69320 LIBS!$LIBS$ac_delim
69321 build_alias!$build_alias$ac_delim
69322 host_alias!$host_alias$ac_delim
69323 target_alias!$target_alias$ac_delim
69324 build!$build$ac_delim
69325 build_cpu!$build_cpu$ac_delim
69326 build_vendor!$build_vendor$ac_delim
69327 build_os!$build_os$ac_delim
69328 host!$host$ac_delim
69329 host_cpu!$host_cpu$ac_delim
69330 host_vendor!$host_vendor$ac_delim
69331 host_os!$host_os$ac_delim
69332 target!$target$ac_delim
69333 target_cpu!$target_cpu$ac_delim
69334 target_vendor!$target_vendor$ac_delim
69335 target_os!$target_os$ac_delim
69336 PACKAGE!$PACKAGE$ac_delim
69337 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
69338 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
69339 INSTALL_DATA!$INSTALL_DATA$ac_delim
69340 am__isrc!$am__isrc$ac_delim
69341 CYGPATH_W!$CYGPATH_W$ac_delim
69342 VERSION!$VERSION$ac_delim
69343 ACLOCAL!$ACLOCAL$ac_delim
69344 AUTOCONF!$AUTOCONF$ac_delim
69345 AUTOMAKE!$AUTOMAKE$ac_delim
69346 AUTOHEADER!$AUTOHEADER$ac_delim
69347 MAKEINFO!$MAKEINFO$ac_delim
69348 install_sh!$install_sh$ac_delim
69349 STRIP!$STRIP$ac_delim
69350 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
69351 mkdir_p!$mkdir_p$ac_delim
69352 AWK!$AWK$ac_delim
69353 SET_MAKE!$SET_MAKE$ac_delim
69354 am__leading_dot!$am__leading_dot$ac_delim
69355 AMTAR!$AMTAR$ac_delim
69356 am__tar!$am__tar$ac_delim
69357 am__untar!$am__untar$ac_delim
69358 SNAPSHOT_STAMP!$SNAPSHOT_STAMP$ac_delim
69359 VERSION_MAJOR!$VERSION_MAJOR$ac_delim
69360 VERSION_MINOR!$VERSION_MINOR$ac_delim
69361 VERSION_PATCH!$VERSION_PATCH$ac_delim
69362 VERSION_COMMENT!$VERSION_COMMENT$ac_delim
69363 VERSION_SUFFIX!$VERSION_SUFFIX$ac_delim
69364 CC!$CC$ac_delim
69365 CFLAGS!$CFLAGS$ac_delim
69366 LDFLAGS!$LDFLAGS$ac_delim
69367 CPPFLAGS!$CPPFLAGS$ac_delim
69368 ac_ct_CC!$ac_ct_CC$ac_delim
69369 EXEEXT!$EXEEXT$ac_delim
69370 OBJEXT!$OBJEXT$ac_delim
69371 DEPDIR!$DEPDIR$ac_delim
69372 am__include!$am__include$ac_delim
69373 am__quote!$am__quote$ac_delim
69374 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
69375 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
69376 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
69377 CCDEPMODE!$CCDEPMODE$ac_delim
69378 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
69379 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
69380 RANLIB!$RANLIB$ac_delim
69381 CPP!$CPP$ac_delim
69382 GREP!$GREP$ac_delim
69383 EGREP!$EGREP$ac_delim
69384 _ACEOF
69385
69386   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
69387     break
69388   elif $ac_last_try; then
69389     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
69390 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
69391    { (exit 1); exit 1; }; }
69392   else
69393     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
69394   fi
69395 done
69396
69397 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
69398 if test -n "$ac_eof"; then
69399   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
69400   ac_eof=`expr $ac_eof + 1`
69401 fi
69402
69403 cat >>$CONFIG_STATUS <<_ACEOF
69404 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
69405 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
69406 _ACEOF
69407 sed '
69408 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
69409 s/^/s,@/; s/!/@,|#_!!_#|/
69410 :n
69411 t n
69412 s/'"$ac_delim"'$/,g/; t
69413 s/$/\\/; p
69414 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
69415 ' >>$CONFIG_STATUS <conf$$subs.sed
69416 rm -f conf$$subs.sed
69417 cat >>$CONFIG_STATUS <<_ACEOF
69418 CEOF$ac_eof
69419 _ACEOF
69420
69421
69422 ac_delim='%!_!# '
69423 for ac_last_try in false false false false false :; do
69424   cat >conf$$subs.sed <<_ACEOF
69425 GL_COND_LIBTOOL_TRUE!$GL_COND_LIBTOOL_TRUE$ac_delim
69426 GL_COND_LIBTOOL_FALSE!$GL_COND_LIBTOOL_FALSE$ac_delim
69427 ALLOCA!$ALLOCA$ac_delim
69428 ALLOCA_H!$ALLOCA_H$ac_delim
69429 ARPA_INET_H!$ARPA_INET_H$ac_delim
69430 INCLUDE_NEXT!$INCLUDE_NEXT$ac_delim
69431 NEXT_FLOAT_H!$NEXT_FLOAT_H$ac_delim
69432 FLOAT_H!$FLOAT_H$ac_delim
69433 NEXT_SYS_SOCKET_H!$NEXT_SYS_SOCKET_H$ac_delim
69434 HAVE_SYS_SOCKET_H!$HAVE_SYS_SOCKET_H$ac_delim
69435 HAVE_WINSOCK2_H!$HAVE_WINSOCK2_H$ac_delim
69436 HAVE_WS2TCPIP_H!$HAVE_WS2TCPIP_H$ac_delim
69437 SYS_SOCKET_H!$SYS_SOCKET_H$ac_delim
69438 LIBINTL!$LIBINTL$ac_delim
69439 LTLIBINTL!$LTLIBINTL$ac_delim
69440 NEXT_SYS_TIME_H!$NEXT_SYS_TIME_H$ac_delim
69441 HAVE_SYS_TIME_H!$HAVE_SYS_TIME_H$ac_delim
69442 HAVE_STRUCT_TIMEVAL!$HAVE_STRUCT_TIMEVAL$ac_delim
69443 REPLACE_GETTIMEOFDAY!$REPLACE_GETTIMEOFDAY$ac_delim
69444 SYS_TIME_H!$SYS_TIME_H$ac_delim
69445 LIBPTH!$LIBPTH$ac_delim
69446 LTLIBPTH!$LTLIBPTH$ac_delim
69447 LIBTHREAD!$LIBTHREAD$ac_delim
69448 LTLIBTHREAD!$LTLIBTHREAD$ac_delim
69449 LIBMULTITHREAD!$LIBMULTITHREAD$ac_delim
69450 LTLIBMULTITHREAD!$LTLIBMULTITHREAD$ac_delim
69451 HAVE_MALLOC_POSIX!$HAVE_MALLOC_POSIX$ac_delim
69452 GNULIB_MALLOC_POSIX!$GNULIB_MALLOC_POSIX$ac_delim
69453 GNULIB_REALLOC_POSIX!$GNULIB_REALLOC_POSIX$ac_delim
69454 GNULIB_CALLOC_POSIX!$GNULIB_CALLOC_POSIX$ac_delim
69455 GNULIB_GETSUBOPT!$GNULIB_GETSUBOPT$ac_delim
69456 GNULIB_MKDTEMP!$GNULIB_MKDTEMP$ac_delim
69457 GNULIB_MKSTEMP!$GNULIB_MKSTEMP$ac_delim
69458 HAVE_CALLOC_POSIX!$HAVE_CALLOC_POSIX$ac_delim
69459 HAVE_GETSUBOPT!$HAVE_GETSUBOPT$ac_delim
69460 HAVE_MKDTEMP!$HAVE_MKDTEMP$ac_delim
69461 HAVE_REALLOC_POSIX!$HAVE_REALLOC_POSIX$ac_delim
69462 REPLACE_MKSTEMP!$REPLACE_MKSTEMP$ac_delim
69463 NEXT_NETINET_IN_H!$NEXT_NETINET_IN_H$ac_delim
69464 HAVE_NETINET_IN_H!$HAVE_NETINET_IN_H$ac_delim
69465 NETINET_IN_H!$NETINET_IN_H$ac_delim
69466 GNULIB_FPRINTF_POSIX!$GNULIB_FPRINTF_POSIX$ac_delim
69467 GNULIB_PRINTF_POSIX!$GNULIB_PRINTF_POSIX$ac_delim
69468 GNULIB_SNPRINTF!$GNULIB_SNPRINTF$ac_delim
69469 GNULIB_SPRINTF_POSIX!$GNULIB_SPRINTF_POSIX$ac_delim
69470 GNULIB_VFPRINTF_POSIX!$GNULIB_VFPRINTF_POSIX$ac_delim
69471 GNULIB_VPRINTF_POSIX!$GNULIB_VPRINTF_POSIX$ac_delim
69472 GNULIB_VSNPRINTF!$GNULIB_VSNPRINTF$ac_delim
69473 GNULIB_VSPRINTF_POSIX!$GNULIB_VSPRINTF_POSIX$ac_delim
69474 GNULIB_VASPRINTF!$GNULIB_VASPRINTF$ac_delim
69475 GNULIB_FSEEK!$GNULIB_FSEEK$ac_delim
69476 GNULIB_FSEEKO!$GNULIB_FSEEKO$ac_delim
69477 GNULIB_FTELL!$GNULIB_FTELL$ac_delim
69478 GNULIB_FTELLO!$GNULIB_FTELLO$ac_delim
69479 GNULIB_FFLUSH!$GNULIB_FFLUSH$ac_delim
69480 GNULIB_GETDELIM!$GNULIB_GETDELIM$ac_delim
69481 GNULIB_GETLINE!$GNULIB_GETLINE$ac_delim
69482 REPLACE_FPRINTF!$REPLACE_FPRINTF$ac_delim
69483 REPLACE_VFPRINTF!$REPLACE_VFPRINTF$ac_delim
69484 REPLACE_PRINTF!$REPLACE_PRINTF$ac_delim
69485 REPLACE_VPRINTF!$REPLACE_VPRINTF$ac_delim
69486 REPLACE_SNPRINTF!$REPLACE_SNPRINTF$ac_delim
69487 HAVE_DECL_SNPRINTF!$HAVE_DECL_SNPRINTF$ac_delim
69488 REPLACE_VSNPRINTF!$REPLACE_VSNPRINTF$ac_delim
69489 HAVE_DECL_VSNPRINTF!$HAVE_DECL_VSNPRINTF$ac_delim
69490 REPLACE_SPRINTF!$REPLACE_SPRINTF$ac_delim
69491 REPLACE_VSPRINTF!$REPLACE_VSPRINTF$ac_delim
69492 HAVE_VASPRINTF!$HAVE_VASPRINTF$ac_delim
69493 REPLACE_VASPRINTF!$REPLACE_VASPRINTF$ac_delim
69494 HAVE_FSEEKO!$HAVE_FSEEKO$ac_delim
69495 REPLACE_FSEEKO!$REPLACE_FSEEKO$ac_delim
69496 REPLACE_FSEEK!$REPLACE_FSEEK$ac_delim
69497 HAVE_FTELLO!$HAVE_FTELLO$ac_delim
69498 REPLACE_FTELLO!$REPLACE_FTELLO$ac_delim
69499 REPLACE_FTELL!$REPLACE_FTELL$ac_delim
69500 REPLACE_FFLUSH!$REPLACE_FFLUSH$ac_delim
69501 HAVE_DECL_GETDELIM!$HAVE_DECL_GETDELIM$ac_delim
69502 HAVE_DECL_GETLINE!$HAVE_DECL_GETLINE$ac_delim
69503 REPLACE_GETLINE!$REPLACE_GETLINE$ac_delim
69504 STDBOOL_H!$STDBOOL_H$ac_delim
69505 HAVE__BOOL!$HAVE__BOOL$ac_delim
69506 HAVE_LONG_LONG_INT!$HAVE_LONG_LONG_INT$ac_delim
69507 HAVE_UNSIGNED_LONG_LONG_INT!$HAVE_UNSIGNED_LONG_LONG_INT$ac_delim
69508 HAVE_INTTYPES_H!$HAVE_INTTYPES_H$ac_delim
69509 HAVE_SYS_TYPES_H!$HAVE_SYS_TYPES_H$ac_delim
69510 NEXT_STDINT_H!$NEXT_STDINT_H$ac_delim
69511 HAVE_STDINT_H!$HAVE_STDINT_H$ac_delim
69512 HAVE_SYS_INTTYPES_H!$HAVE_SYS_INTTYPES_H$ac_delim
69513 HAVE_SYS_BITYPES_H!$HAVE_SYS_BITYPES_H$ac_delim
69514 BITSIZEOF_PTRDIFF_T!$BITSIZEOF_PTRDIFF_T$ac_delim
69515 BITSIZEOF_SIG_ATOMIC_T!$BITSIZEOF_SIG_ATOMIC_T$ac_delim
69516 BITSIZEOF_SIZE_T!$BITSIZEOF_SIZE_T$ac_delim
69517 BITSIZEOF_WCHAR_T!$BITSIZEOF_WCHAR_T$ac_delim
69518 BITSIZEOF_WINT_T!$BITSIZEOF_WINT_T$ac_delim
69519 HAVE_SIGNED_SIG_ATOMIC_T!$HAVE_SIGNED_SIG_ATOMIC_T$ac_delim
69520 HAVE_SIGNED_WCHAR_T!$HAVE_SIGNED_WCHAR_T$ac_delim
69521 HAVE_SIGNED_WINT_T!$HAVE_SIGNED_WINT_T$ac_delim
69522 _ACEOF
69523
69524   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
69525     break
69526   elif $ac_last_try; then
69527     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
69528 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
69529    { (exit 1); exit 1; }; }
69530   else
69531     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
69532   fi
69533 done
69534
69535 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
69536 if test -n "$ac_eof"; then
69537   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
69538   ac_eof=`expr $ac_eof + 1`
69539 fi
69540
69541 cat >>$CONFIG_STATUS <<_ACEOF
69542 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
69543 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
69544 _ACEOF
69545 sed '
69546 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
69547 s/^/s,@/; s/!/@,|#_!!_#|/
69548 :n
69549 t n
69550 s/'"$ac_delim"'$/,g/; t
69551 s/$/\\/; p
69552 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
69553 ' >>$CONFIG_STATUS <conf$$subs.sed
69554 rm -f conf$$subs.sed
69555 cat >>$CONFIG_STATUS <<_ACEOF
69556 CEOF$ac_eof
69557 _ACEOF
69558
69559
69560 ac_delim='%!_!# '
69561 for ac_last_try in false false false false false :; do
69562   cat >conf$$subs.sed <<_ACEOF
69563 PTRDIFF_T_SUFFIX!$PTRDIFF_T_SUFFIX$ac_delim
69564 SIG_ATOMIC_T_SUFFIX!$SIG_ATOMIC_T_SUFFIX$ac_delim
69565 SIZE_T_SUFFIX!$SIZE_T_SUFFIX$ac_delim
69566 WCHAR_T_SUFFIX!$WCHAR_T_SUFFIX$ac_delim
69567 WINT_T_SUFFIX!$WINT_T_SUFFIX$ac_delim
69568 STDINT_H!$STDINT_H$ac_delim
69569 NEXT_STDIO_H!$NEXT_STDIO_H$ac_delim
69570 NEXT_STDLIB_H!$NEXT_STDLIB_H$ac_delim
69571 GNULIB_MEMMEM!$GNULIB_MEMMEM$ac_delim
69572 GNULIB_MEMPCPY!$GNULIB_MEMPCPY$ac_delim
69573 GNULIB_MEMRCHR!$GNULIB_MEMRCHR$ac_delim
69574 GNULIB_STPCPY!$GNULIB_STPCPY$ac_delim
69575 GNULIB_STPNCPY!$GNULIB_STPNCPY$ac_delim
69576 GNULIB_STRCHRNUL!$GNULIB_STRCHRNUL$ac_delim
69577 GNULIB_STRDUP!$GNULIB_STRDUP$ac_delim
69578 GNULIB_STRNDUP!$GNULIB_STRNDUP$ac_delim
69579 GNULIB_STRNLEN!$GNULIB_STRNLEN$ac_delim
69580 GNULIB_STRPBRK!$GNULIB_STRPBRK$ac_delim
69581 GNULIB_STRSEP!$GNULIB_STRSEP$ac_delim
69582 GNULIB_STRCASESTR!$GNULIB_STRCASESTR$ac_delim
69583 GNULIB_STRTOK_R!$GNULIB_STRTOK_R$ac_delim
69584 GNULIB_MBSLEN!$GNULIB_MBSLEN$ac_delim
69585 GNULIB_MBSNLEN!$GNULIB_MBSNLEN$ac_delim
69586 GNULIB_MBSCHR!$GNULIB_MBSCHR$ac_delim
69587 GNULIB_MBSRCHR!$GNULIB_MBSRCHR$ac_delim
69588 GNULIB_MBSSTR!$GNULIB_MBSSTR$ac_delim
69589 GNULIB_MBSCASECMP!$GNULIB_MBSCASECMP$ac_delim
69590 GNULIB_MBSNCASECMP!$GNULIB_MBSNCASECMP$ac_delim
69591 GNULIB_MBSPCASECMP!$GNULIB_MBSPCASECMP$ac_delim
69592 GNULIB_MBSCASESTR!$GNULIB_MBSCASESTR$ac_delim
69593 GNULIB_MBSCSPN!$GNULIB_MBSCSPN$ac_delim
69594 GNULIB_MBSPBRK!$GNULIB_MBSPBRK$ac_delim
69595 GNULIB_MBSSPN!$GNULIB_MBSSPN$ac_delim
69596 GNULIB_MBSSEP!$GNULIB_MBSSEP$ac_delim
69597 GNULIB_MBSTOK_R!$GNULIB_MBSTOK_R$ac_delim
69598 HAVE_DECL_MEMMEM!$HAVE_DECL_MEMMEM$ac_delim
69599 HAVE_MEMPCPY!$HAVE_MEMPCPY$ac_delim
69600 HAVE_DECL_MEMRCHR!$HAVE_DECL_MEMRCHR$ac_delim
69601 HAVE_STPCPY!$HAVE_STPCPY$ac_delim
69602 HAVE_STPNCPY!$HAVE_STPNCPY$ac_delim
69603 HAVE_STRCASECMP!$HAVE_STRCASECMP$ac_delim
69604 HAVE_DECL_STRNCASECMP!$HAVE_DECL_STRNCASECMP$ac_delim
69605 HAVE_STRCHRNUL!$HAVE_STRCHRNUL$ac_delim
69606 HAVE_DECL_STRDUP!$HAVE_DECL_STRDUP$ac_delim
69607 HAVE_STRNDUP!$HAVE_STRNDUP$ac_delim
69608 HAVE_DECL_STRNDUP!$HAVE_DECL_STRNDUP$ac_delim
69609 HAVE_DECL_STRNLEN!$HAVE_DECL_STRNLEN$ac_delim
69610 HAVE_STRPBRK!$HAVE_STRPBRK$ac_delim
69611 HAVE_STRSEP!$HAVE_STRSEP$ac_delim
69612 HAVE_STRCASESTR!$HAVE_STRCASESTR$ac_delim
69613 HAVE_DECL_STRTOK_R!$HAVE_DECL_STRTOK_R$ac_delim
69614 NEXT_STRING_H!$NEXT_STRING_H$ac_delim
69615 HAVE_LSTAT!$HAVE_LSTAT$ac_delim
69616 HAVE_DECL_MKDIR!$HAVE_DECL_MKDIR$ac_delim
69617 HAVE_IO_H!$HAVE_IO_H$ac_delim
69618 NEXT_SYS_STAT_H!$NEXT_SYS_STAT_H$ac_delim
69619 SYS_STAT_H!$SYS_STAT_H$ac_delim
69620 GNULIB_CHOWN!$GNULIB_CHOWN$ac_delim
69621 GNULIB_DUP2!$GNULIB_DUP2$ac_delim
69622 GNULIB_FCHDIR!$GNULIB_FCHDIR$ac_delim
69623 GNULIB_FTRUNCATE!$GNULIB_FTRUNCATE$ac_delim
69624 GNULIB_GETCWD!$GNULIB_GETCWD$ac_delim
69625 GNULIB_GETLOGIN_R!$GNULIB_GETLOGIN_R$ac_delim
69626 GNULIB_LCHOWN!$GNULIB_LCHOWN$ac_delim
69627 GNULIB_LSEEK!$GNULIB_LSEEK$ac_delim
69628 GNULIB_READLINK!$GNULIB_READLINK$ac_delim
69629 GNULIB_SLEEP!$GNULIB_SLEEP$ac_delim
69630 HAVE_DUP2!$HAVE_DUP2$ac_delim
69631 HAVE_FTRUNCATE!$HAVE_FTRUNCATE$ac_delim
69632 HAVE_READLINK!$HAVE_READLINK$ac_delim
69633 HAVE_SLEEP!$HAVE_SLEEP$ac_delim
69634 HAVE_DECL_GETLOGIN_R!$HAVE_DECL_GETLOGIN_R$ac_delim
69635 REPLACE_CHOWN!$REPLACE_CHOWN$ac_delim
69636 REPLACE_FCHDIR!$REPLACE_FCHDIR$ac_delim
69637 REPLACE_GETCWD!$REPLACE_GETCWD$ac_delim
69638 REPLACE_LCHOWN!$REPLACE_LCHOWN$ac_delim
69639 REPLACE_LSEEK!$REPLACE_LSEEK$ac_delim
69640 NEXT_UNISTD_H!$NEXT_UNISTD_H$ac_delim
69641 HAVE_UNISTD_H!$HAVE_UNISTD_H$ac_delim
69642 EOVERFLOW!$EOVERFLOW$ac_delim
69643 CFLAG_VISIBILITY!$CFLAG_VISIBILITY$ac_delim
69644 HAVE_VISIBILITY!$HAVE_VISIBILITY$ac_delim
69645 GNULIB_WCWIDTH!$GNULIB_WCWIDTH$ac_delim
69646 HAVE_DECL_WCWIDTH!$HAVE_DECL_WCWIDTH$ac_delim
69647 REPLACE_WCWIDTH!$REPLACE_WCWIDTH$ac_delim
69648 WCHAR_H!$WCHAR_H$ac_delim
69649 HAVE_WCHAR_H!$HAVE_WCHAR_H$ac_delim
69650 NEXT_WCHAR_H!$NEXT_WCHAR_H$ac_delim
69651 AMANDA_WARNING_CFLAGS!$AMANDA_WARNING_CFLAGS$ac_delim
69652 CLIENT_LOGIN!$CLIENT_LOGIN$ac_delim
69653 SETUID_GROUP!$SETUID_GROUP$ac_delim
69654 CONFIG_DIR!$CONFIG_DIR$ac_delim
69655 USE_VERSION_SUFFIXES!$USE_VERSION_SUFFIXES$ac_delim
69656 GNUTAR_LISTED_INCREMENTAL_DIR!$GNUTAR_LISTED_INCREMENTAL_DIR$ac_delim
69657 AMANDA_TMPDIR!$AMANDA_TMPDIR$ac_delim
69658 BINARY_OWNER!$BINARY_OWNER$ac_delim
69659 MAXTAPEBLOCKSIZE!$MAXTAPEBLOCKSIZE$ac_delim
69660 _ACEOF
69661
69662   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
69663     break
69664   elif $ac_last_try; then
69665     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
69666 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
69667    { (exit 1); exit 1; }; }
69668   else
69669     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
69670   fi
69671 done
69672
69673 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
69674 if test -n "$ac_eof"; then
69675   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
69676   ac_eof=`expr $ac_eof + 1`
69677 fi
69678
69679 cat >>$CONFIG_STATUS <<_ACEOF
69680 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
69681 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
69682 _ACEOF
69683 sed '
69684 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
69685 s/^/s,@/; s/!/@,|#_!!_#|/
69686 :n
69687 t n
69688 s/'"$ac_delim"'$/,g/; t
69689 s/$/\\/; p
69690 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
69691 ' >>$CONFIG_STATUS <conf$$subs.sed
69692 rm -f conf$$subs.sed
69693 cat >>$CONFIG_STATUS <<_ACEOF
69694 CEOF$ac_eof
69695 _ACEOF
69696
69697
69698 ac_delim='%!_!# '
69699 for ac_last_try in false false false false false :; do
69700   cat >conf$$subs.sed <<_ACEOF
69701 AMANDA_DBGDIR!$AMANDA_DBGDIR$ac_delim
69702 AMANDA_DEBUG_DAYS!$AMANDA_DEBUG_DAYS$ac_delim
69703 SERVICE_SUFFIX!$SERVICE_SUFFIX$ac_delim
69704 WANT_SETUID_CLIENT_TRUE!$WANT_SETUID_CLIENT_TRUE$ac_delim
69705 WANT_SETUID_CLIENT_FALSE!$WANT_SETUID_CLIENT_FALSE$ac_delim
69706 WANT_INSTALLPERMS_TRUE!$WANT_INSTALLPERMS_TRUE$ac_delim
69707 WANT_INSTALLPERMS_FALSE!$WANT_INSTALLPERMS_FALSE$ac_delim
69708 WANT_CLIENT_TRUE!$WANT_CLIENT_TRUE$ac_delim
69709 WANT_CLIENT_FALSE!$WANT_CLIENT_FALSE$ac_delim
69710 WANT_RESTORE_TRUE!$WANT_RESTORE_TRUE$ac_delim
69711 WANT_RESTORE_FALSE!$WANT_RESTORE_FALSE$ac_delim
69712 WANT_SERVER_TRUE!$WANT_SERVER_TRUE$ac_delim
69713 WANT_SERVER_FALSE!$WANT_SERVER_FALSE$ac_delim
69714 WANT_RECOVER_TRUE!$WANT_RECOVER_TRUE$ac_delim
69715 WANT_RECOVER_FALSE!$WANT_RECOVER_FALSE$ac_delim
69716 WANT_TAPE_TRUE!$WANT_TAPE_TRUE$ac_delim
69717 WANT_TAPE_FALSE!$WANT_TAPE_FALSE$ac_delim
69718 GNUPLOT!$GNUPLOT$ac_delim
69719 PCAT!$PCAT$ac_delim
69720 COMPRESS!$COMPRESS$ac_delim
69721 GZIP!$GZIP$ac_delim
69722 AMPLOT_COMPRESS!$AMPLOT_COMPRESS$ac_delim
69723 AMPLOT_CAT_GZIP!$AMPLOT_CAT_GZIP$ac_delim
69724 AMPLOT_CAT_COMPRESS!$AMPLOT_CAT_COMPRESS$ac_delim
69725 AMPLOT_CAT_PACK!$AMPLOT_CAT_PACK$ac_delim
69726 WANT_AMPLOT_TRUE!$WANT_AMPLOT_TRUE$ac_delim
69727 WANT_AMPLOT_FALSE!$WANT_AMPLOT_FALSE$ac_delim
69728 XSLTPROC_FLAGS!$XSLTPROC_FLAGS$ac_delim
69729 XSLTPROC!$XSLTPROC$ac_delim
69730 ENABLE_MANPAGE_BUILD_TRUE!$ENABLE_MANPAGE_BUILD_TRUE$ac_delim
69731 ENABLE_MANPAGE_BUILD_FALSE!$ENABLE_MANPAGE_BUILD_FALSE$ac_delim
69732 XSLREL!$XSLREL$ac_delim
69733 DOC_BUILD_DATE!$DOC_BUILD_DATE$ac_delim
69734 DEFAULT_SERVER!$DEFAULT_SERVER$ac_delim
69735 DEFAULT_CONFIG!$DEFAULT_CONFIG$ac_delim
69736 DEFAULT_TAPE_SERVER!$DEFAULT_TAPE_SERVER$ac_delim
69737 DEFAULT_TAPE_DEVICE!$DEFAULT_TAPE_DEVICE$ac_delim
69738 EXAMPLE_TAPEDEV!$EXAMPLE_TAPEDEV$ac_delim
69739 DEFAULT_CHANGER_DEVICE!$DEFAULT_CHANGER_DEVICE$ac_delim
69740 DEFAULT_AMANDATES_FILE!$DEFAULT_AMANDATES_FILE$ac_delim
69741 GETCONF!$GETCONF$ac_delim
69742 CHIO!$CHIO$ac_delim
69743 CHS!$CHS$ac_delim
69744 MTX!$MTX$ac_delim
69745 MCUTIL!$MCUTIL$ac_delim
69746 WANT_CHG_SCSI_TRUE!$WANT_CHG_SCSI_TRUE$ac_delim
69747 WANT_CHG_SCSI_FALSE!$WANT_CHG_SCSI_FALSE$ac_delim
69748 WANT_SCSI_LINUX_TRUE!$WANT_SCSI_LINUX_TRUE$ac_delim
69749 WANT_SCSI_LINUX_FALSE!$WANT_SCSI_LINUX_FALSE$ac_delim
69750 WANT_SCSI_HPUX_NEW_TRUE!$WANT_SCSI_HPUX_NEW_TRUE$ac_delim
69751 WANT_SCSI_HPUX_NEW_FALSE!$WANT_SCSI_HPUX_NEW_FALSE$ac_delim
69752 WANT_SCSI_IRIX_TRUE!$WANT_SCSI_IRIX_TRUE$ac_delim
69753 WANT_SCSI_IRIX_FALSE!$WANT_SCSI_IRIX_FALSE$ac_delim
69754 WANT_SCSI_SOLARIS_TRUE!$WANT_SCSI_SOLARIS_TRUE$ac_delim
69755 WANT_SCSI_SOLARIS_FALSE!$WANT_SCSI_SOLARIS_FALSE$ac_delim
69756 WANT_SCSI_AIX_TRUE!$WANT_SCSI_AIX_TRUE$ac_delim
69757 WANT_SCSI_AIX_FALSE!$WANT_SCSI_AIX_FALSE$ac_delim
69758 WANT_SCSI_CAM_TRUE!$WANT_SCSI_CAM_TRUE$ac_delim
69759 WANT_SCSI_CAM_FALSE!$WANT_SCSI_CAM_FALSE$ac_delim
69760 WANT_SCSI_BSD_TRUE!$WANT_SCSI_BSD_TRUE$ac_delim
69761 WANT_SCSI_BSD_FALSE!$WANT_SCSI_BSD_FALSE$ac_delim
69762 WANT_CHG_SCSI_CHIO_TRUE!$WANT_CHG_SCSI_CHIO_TRUE$ac_delim
69763 WANT_CHG_SCSI_CHIO_FALSE!$WANT_CHG_SCSI_CHIO_FALSE$ac_delim
69764 WANT_SCSI_HPUX_TRUE!$WANT_SCSI_HPUX_TRUE$ac_delim
69765 WANT_SCSI_HPUX_FALSE!$WANT_SCSI_HPUX_FALSE$ac_delim
69766 WANT_SCSI_CHIO_TRUE!$WANT_SCSI_CHIO_TRUE$ac_delim
69767 WANT_SCSI_CHIO_FALSE!$WANT_SCSI_CHIO_FALSE$ac_delim
69768 WANT_AMFLOCK_POSIX_TRUE!$WANT_AMFLOCK_POSIX_TRUE$ac_delim
69769 WANT_AMFLOCK_POSIX_FALSE!$WANT_AMFLOCK_POSIX_FALSE$ac_delim
69770 WANT_AMFLOCK_FLOCK_TRUE!$WANT_AMFLOCK_FLOCK_TRUE$ac_delim
69771 WANT_AMFLOCK_FLOCK_FALSE!$WANT_AMFLOCK_FLOCK_FALSE$ac_delim
69772 WANT_AMFLOCK_LOCKF_TRUE!$WANT_AMFLOCK_LOCKF_TRUE$ac_delim
69773 WANT_AMFLOCK_LOCKF_FALSE!$WANT_AMFLOCK_LOCKF_FALSE$ac_delim
69774 WANT_AMFLOCK_LNLOCK_TRUE!$WANT_AMFLOCK_LNLOCK_TRUE$ac_delim
69775 WANT_AMFLOCK_LNLOCK_FALSE!$WANT_AMFLOCK_LNLOCK_FALSE$ac_delim
69776 SWIG!$SWIG$ac_delim
69777 SWIG_LIB!$SWIG_LIB$ac_delim
69778 PERL!$PERL$ac_delim
69779 PERL_INC!$PERL_INC$ac_delim
69780 WANT_CYGWIN_COPY_PERL_DLL_TRUE!$WANT_CYGWIN_COPY_PERL_DLL_TRUE$ac_delim
69781 WANT_CYGWIN_COPY_PERL_DLL_FALSE!$WANT_CYGWIN_COPY_PERL_DLL_FALSE$ac_delim
69782 PERLEXTLIBS!$PERLEXTLIBS$ac_delim
69783 CAT!$CAT$ac_delim
69784 CLIENT_SCRIPTS_OPT!$CLIENT_SCRIPTS_OPT$ac_delim
69785 amlibdir!$amlibdir$ac_delim
69786 amlibexecdir!$amlibexecdir$ac_delim
69787 amincludedir!$amincludedir$ac_delim
69788 amperldir!$amperldir$ac_delim
69789 DUMPER_DIR!$DUMPER_DIR$ac_delim
69790 MSGFMT!$MSGFMT$ac_delim
69791 GETTEXT!$GETTEXT$ac_delim
69792 USE_NLS!$USE_NLS$ac_delim
69793 GMSGFMT!$GMSGFMT$ac_delim
69794 MSGFMT_015!$MSGFMT_015$ac_delim
69795 GMSGFMT_015!$GMSGFMT_015$ac_delim
69796 XGETTEXT!$XGETTEXT$ac_delim
69797 XGETTEXT_015!$XGETTEXT_015$ac_delim
69798 _ACEOF
69799
69800   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
69801     break
69802   elif $ac_last_try; then
69803     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
69804 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
69805    { (exit 1); exit 1; }; }
69806   else
69807     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
69808   fi
69809 done
69810
69811 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
69812 if test -n "$ac_eof"; then
69813   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
69814   ac_eof=`expr $ac_eof + 1`
69815 fi
69816
69817 cat >>$CONFIG_STATUS <<_ACEOF
69818 cat >"\$tmp/subs-4.sed" <<\CEOF$ac_eof
69819 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
69820 _ACEOF
69821 sed '
69822 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
69823 s/^/s,@/; s/!/@,|#_!!_#|/
69824 :n
69825 t n
69826 s/'"$ac_delim"'$/,g/; t
69827 s/$/\\/; p
69828 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
69829 ' >>$CONFIG_STATUS <conf$$subs.sed
69830 rm -f conf$$subs.sed
69831 cat >>$CONFIG_STATUS <<_ACEOF
69832 CEOF$ac_eof
69833 _ACEOF
69834
69835
69836 ac_delim='%!_!# '
69837 for ac_last_try in false false false false false :; do
69838   cat >conf$$subs.sed <<_ACEOF
69839 MSGMERGE!$MSGMERGE$ac_delim
69840 INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
69841 LIBICONV!$LIBICONV$ac_delim
69842 LTLIBICONV!$LTLIBICONV$ac_delim
69843 INTLLIBS!$INTLLIBS$ac_delim
69844 POSUB!$POSUB$ac_delim
69845 CURL_CONFIG!$CURL_CONFIG$ac_delim
69846 _libcurl_config!$_libcurl_config$ac_delim
69847 LIBCURL_CPPFLAGS!$LIBCURL_CPPFLAGS$ac_delim
69848 LIBCURL!$LIBCURL$ac_delim
69849 WANT_S3_DEVICE_TRUE!$WANT_S3_DEVICE_TRUE$ac_delim
69850 WANT_S3_DEVICE_FALSE!$WANT_S3_DEVICE_FALSE$ac_delim
69851 WANT_DEVPAY_TRUE!$WANT_DEVPAY_TRUE$ac_delim
69852 WANT_DEVPAY_FALSE!$WANT_DEVPAY_FALSE$ac_delim
69853 WANT_TAPE_XENIX_TRUE!$WANT_TAPE_XENIX_TRUE$ac_delim
69854 WANT_TAPE_XENIX_FALSE!$WANT_TAPE_XENIX_FALSE$ac_delim
69855 WANT_TAPE_AIX_TRUE!$WANT_TAPE_AIX_TRUE$ac_delim
69856 WANT_TAPE_AIX_FALSE!$WANT_TAPE_AIX_FALSE$ac_delim
69857 WANT_TAPE_UWARE_TRUE!$WANT_TAPE_UWARE_TRUE$ac_delim
69858 WANT_TAPE_UWARE_FALSE!$WANT_TAPE_UWARE_FALSE$ac_delim
69859 WANT_TAPE_POSIX_TRUE!$WANT_TAPE_POSIX_TRUE$ac_delim
69860 WANT_TAPE_POSIX_FALSE!$WANT_TAPE_POSIX_FALSE$ac_delim
69861 WANT_TAPE_DEVICE_TRUE!$WANT_TAPE_DEVICE_TRUE$ac_delim
69862 WANT_TAPE_DEVICE_FALSE!$WANT_TAPE_DEVICE_FALSE$ac_delim
69863 WANT_BSD_SECURITY_TRUE!$WANT_BSD_SECURITY_TRUE$ac_delim
69864 WANT_BSD_SECURITY_FALSE!$WANT_BSD_SECURITY_FALSE$ac_delim
69865 WANT_BSDTCP_SECURITY_TRUE!$WANT_BSDTCP_SECURITY_TRUE$ac_delim
69866 WANT_BSDTCP_SECURITY_FALSE!$WANT_BSDTCP_SECURITY_FALSE$ac_delim
69867 WANT_BSDUDP_SECURITY_TRUE!$WANT_BSDUDP_SECURITY_TRUE$ac_delim
69868 WANT_BSDUDP_SECURITY_FALSE!$WANT_BSDUDP_SECURITY_FALSE$ac_delim
69869 WANT_RSH_SECURITY_TRUE!$WANT_RSH_SECURITY_TRUE$ac_delim
69870 WANT_RSH_SECURITY_FALSE!$WANT_RSH_SECURITY_FALSE$ac_delim
69871 SSH!$SSH$ac_delim
69872 WANT_SSH_SECURITY_TRUE!$WANT_SSH_SECURITY_TRUE$ac_delim
69873 WANT_SSH_SECURITY_FALSE!$WANT_SSH_SECURITY_FALSE$ac_delim
69874 WANT_KRB4_SECURITY_TRUE!$WANT_KRB4_SECURITY_TRUE$ac_delim
69875 WANT_KRB4_SECURITY_FALSE!$WANT_KRB4_SECURITY_FALSE$ac_delim
69876 WANT_KRB5_SECURITY_TRUE!$WANT_KRB5_SECURITY_TRUE$ac_delim
69877 WANT_KRB5_SECURITY_FALSE!$WANT_KRB5_SECURITY_FALSE$ac_delim
69878 XFSDUMP!$XFSDUMP$ac_delim
69879 XFSRESTORE!$XFSRESTORE$ac_delim
69880 VXDUMP!$VXDUMP$ac_delim
69881 VXRESTORE!$VXRESTORE$ac_delim
69882 VDUMP!$VDUMP$ac_delim
69883 VRESTORE!$VRESTORE$ac_delim
69884 DUMP!$DUMP$ac_delim
69885 RESTORE!$RESTORE$ac_delim
69886 GNUTAR!$GNUTAR$ac_delim
69887 SAMBA_CLIENT!$SAMBA_CLIENT$ac_delim
69888 WANT_SAMBA_TRUE!$WANT_SAMBA_TRUE$ac_delim
69889 WANT_SAMBA_FALSE!$WANT_SAMBA_FALSE$ac_delim
69890 AMLINT!$AMLINT$ac_delim
69891 AMLINTFLAGS!$AMLINTFLAGS$ac_delim
69892 LEX!$LEX$ac_delim
69893 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
69894 LEXLIB!$LEXLIB$ac_delim
69895 AR!$AR$ac_delim
69896 YACC!$YACC$ac_delim
69897 YFLAGS!$YFLAGS$ac_delim
69898 DD!$DD$ac_delim
69899 BASH!$BASH$ac_delim
69900 SORT!$SORT$ac_delim
69901 MAILER!$MAILER$ac_delim
69902 MT!$MT$ac_delim
69903 MT_FILE_FLAG!$MT_FILE_FLAG$ac_delim
69904 PRINT!$PRINT$ac_delim
69905 GCC_COMPILER_TRUE!$GCC_COMPILER_TRUE$ac_delim
69906 GCC_COMPILER_FALSE!$GCC_COMPILER_FALSE$ac_delim
69907 LN_S!$LN_S$ac_delim
69908 ECHO!$ECHO$ac_delim
69909 CXX!$CXX$ac_delim
69910 CXXFLAGS!$CXXFLAGS$ac_delim
69911 ac_ct_CXX!$ac_ct_CXX$ac_delim
69912 CXXDEPMODE!$CXXDEPMODE$ac_delim
69913 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
69914 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
69915 CXXCPP!$CXXCPP$ac_delim
69916 F77!$F77$ac_delim
69917 FFLAGS!$FFLAGS$ac_delim
69918 ac_ct_F77!$ac_ct_F77$ac_delim
69919 LIBTOOL!$LIBTOOL$ac_delim
69920 LIBTOOL_DEPS!$LIBTOOL_DEPS$ac_delim
69921 AMANDA_STATIC_LDFLAGS!$AMANDA_STATIC_LDFLAGS$ac_delim
69922 PKG_CONFIG!$PKG_CONFIG$ac_delim
69923 GLIB_CFLAGS!$GLIB_CFLAGS$ac_delim
69924 GLIB_LIBS!$GLIB_LIBS$ac_delim
69925 GLIB_GENMARSHAL!$GLIB_GENMARSHAL$ac_delim
69926 GOBJECT_QUERY!$GOBJECT_QUERY$ac_delim
69927 GLIB_MKENUMS!$GLIB_MKENUMS$ac_delim
69928 READLINE_LIBS!$READLINE_LIBS$ac_delim
69929 LIBOBJS!$LIBOBJS$ac_delim
69930 LTLIBOBJS!$LTLIBOBJS$ac_delim
69931 gl_LIBOBJS!$gl_LIBOBJS$ac_delim
69932 gl_LTLIBOBJS!$gl_LTLIBOBJS$ac_delim
69933 _ACEOF
69934
69935   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
69936     break
69937   elif $ac_last_try; then
69938     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
69939 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
69940    { (exit 1); exit 1; }; }
69941   else
69942     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
69943   fi
69944 done
69945
69946 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
69947 if test -n "$ac_eof"; then
69948   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
69949   ac_eof=`expr $ac_eof + 1`
69950 fi
69951
69952 cat >>$CONFIG_STATUS <<_ACEOF
69953 cat >"\$tmp/subs-5.sed" <<\CEOF$ac_eof
69954 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
69955 _ACEOF
69956 sed '
69957 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
69958 s/^/s,@/; s/!/@,|#_!!_#|/
69959 :n
69960 t n
69961 s/'"$ac_delim"'$/,g/; t
69962 s/$/\\/; p
69963 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
69964 ' >>$CONFIG_STATUS <conf$$subs.sed
69965 rm -f conf$$subs.sed
69966 cat >>$CONFIG_STATUS <<_ACEOF
69967 :end
69968 s/|#_!!_#|//g
69969 CEOF$ac_eof
69970 _ACEOF
69971
69972
69973 # VPATH may cause trouble with some makes, so we remove $(srcdir),
69974 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
69975 # trailing colons and then remove the whole line if VPATH becomes empty
69976 # (actually we leave an empty line to preserve line numbers).
69977 if test "x$srcdir" = x.; then
69978   ac_vpsub='/^[  ]*VPATH[        ]*=/{
69979 s/:*\$(srcdir):*/:/
69980 s/:*\${srcdir}:*/:/
69981 s/:*@srcdir@:*/:/
69982 s/^\([^=]*=[     ]*\):*/\1/
69983 s/:*$//
69984 s/^[^=]*=[       ]*$//
69985 }'
69986 fi
69987
69988 cat >>$CONFIG_STATUS <<\_ACEOF
69989 fi # test -n "$CONFIG_FILES"
69990
69991
69992 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
69993 do
69994   case $ac_tag in
69995   :[FHLC]) ac_mode=$ac_tag; continue;;
69996   esac
69997   case $ac_mode$ac_tag in
69998   :[FHL]*:*);;
69999   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
70000 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
70001    { (exit 1); exit 1; }; };;
70002   :[FH]-) ac_tag=-:-;;
70003   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
70004   esac
70005   ac_save_IFS=$IFS
70006   IFS=:
70007   set x $ac_tag
70008   IFS=$ac_save_IFS
70009   shift
70010   ac_file=$1
70011   shift
70012
70013   case $ac_mode in
70014   :L) ac_source=$1;;
70015   :[FH])
70016     ac_file_inputs=
70017     for ac_f
70018     do
70019       case $ac_f in
70020       -) ac_f="$tmp/stdin";;
70021       *) # Look for the file first in the build tree, then in the source tree
70022          # (if the path is not absolute).  The absolute path cannot be DOS-style,
70023          # because $ac_f cannot contain `:'.
70024          test -f "$ac_f" ||
70025            case $ac_f in
70026            [\\/$]*) false;;
70027            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
70028            esac ||
70029            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
70030 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
70031    { (exit 1); exit 1; }; };;
70032       esac
70033       ac_file_inputs="$ac_file_inputs $ac_f"
70034     done
70035
70036     # Let's still pretend it is `configure' which instantiates (i.e., don't
70037     # use $as_me), people would be surprised to read:
70038     #    /* config.h.  Generated by config.status.  */
70039     configure_input="Generated from "`IFS=:
70040           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
70041     if test x"$ac_file" != x-; then
70042       configure_input="$ac_file.  $configure_input"
70043       { echo "$as_me:$LINENO: creating $ac_file" >&5
70044 echo "$as_me: creating $ac_file" >&6;}
70045     fi
70046
70047     case $ac_tag in
70048     *:-:* | *:-) cat >"$tmp/stdin";;
70049     esac
70050     ;;
70051   esac
70052
70053   ac_dir=`$as_dirname -- "$ac_file" ||
70054 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
70055          X"$ac_file" : 'X\(//\)[^/]' \| \
70056          X"$ac_file" : 'X\(//\)$' \| \
70057          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
70058 echo X"$ac_file" |
70059     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
70060             s//\1/
70061             q
70062           }
70063           /^X\(\/\/\)[^/].*/{
70064             s//\1/
70065             q
70066           }
70067           /^X\(\/\/\)$/{
70068             s//\1/
70069             q
70070           }
70071           /^X\(\/\).*/{
70072             s//\1/
70073             q
70074           }
70075           s/.*/./; q'`
70076   { as_dir="$ac_dir"
70077   case $as_dir in #(
70078   -*) as_dir=./$as_dir;;
70079   esac
70080   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
70081     as_dirs=
70082     while :; do
70083       case $as_dir in #(
70084       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
70085       *) as_qdir=$as_dir;;
70086       esac
70087       as_dirs="'$as_qdir' $as_dirs"
70088       as_dir=`$as_dirname -- "$as_dir" ||
70089 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
70090          X"$as_dir" : 'X\(//\)[^/]' \| \
70091          X"$as_dir" : 'X\(//\)$' \| \
70092          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
70093 echo X"$as_dir" |
70094     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
70095             s//\1/
70096             q
70097           }
70098           /^X\(\/\/\)[^/].*/{
70099             s//\1/
70100             q
70101           }
70102           /^X\(\/\/\)$/{
70103             s//\1/
70104             q
70105           }
70106           /^X\(\/\).*/{
70107             s//\1/
70108             q
70109           }
70110           s/.*/./; q'`
70111       test -d "$as_dir" && break
70112     done
70113     test -z "$as_dirs" || eval "mkdir $as_dirs"
70114   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
70115 echo "$as_me: error: cannot create directory $as_dir" >&2;}
70116    { (exit 1); exit 1; }; }; }
70117   ac_builddir=.
70118
70119 case "$ac_dir" in
70120 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
70121 *)
70122   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
70123   # A ".." for each directory in $ac_dir_suffix.
70124   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
70125   case $ac_top_builddir_sub in
70126   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
70127   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
70128   esac ;;
70129 esac
70130 ac_abs_top_builddir=$ac_pwd
70131 ac_abs_builddir=$ac_pwd$ac_dir_suffix
70132 # for backward compatibility:
70133 ac_top_builddir=$ac_top_build_prefix
70134
70135 case $srcdir in
70136   .)  # We are building in place.
70137     ac_srcdir=.
70138     ac_top_srcdir=$ac_top_builddir_sub
70139     ac_abs_top_srcdir=$ac_pwd ;;
70140   [\\/]* | ?:[\\/]* )  # Absolute name.
70141     ac_srcdir=$srcdir$ac_dir_suffix;
70142     ac_top_srcdir=$srcdir
70143     ac_abs_top_srcdir=$srcdir ;;
70144   *) # Relative name.
70145     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
70146     ac_top_srcdir=$ac_top_build_prefix$srcdir
70147     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
70148 esac
70149 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
70150
70151
70152   case $ac_mode in
70153   :F)
70154   #
70155   # CONFIG_FILE
70156   #
70157
70158   case $INSTALL in
70159   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
70160   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
70161   esac
70162   ac_MKDIR_P=$MKDIR_P
70163   case $MKDIR_P in
70164   [\\/$]* | ?:[\\/]* ) ;;
70165   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
70166   esac
70167 _ACEOF
70168
70169 cat >>$CONFIG_STATUS <<\_ACEOF
70170 # If the template does not know about datarootdir, expand it.
70171 # FIXME: This hack should be removed a few years after 2.60.
70172 ac_datarootdir_hack=; ac_datarootdir_seen=
70173
70174 case `sed -n '/datarootdir/ {
70175   p
70176   q
70177 }
70178 /@datadir@/p
70179 /@docdir@/p
70180 /@infodir@/p
70181 /@localedir@/p
70182 /@mandir@/p
70183 ' $ac_file_inputs` in
70184 *datarootdir*) ac_datarootdir_seen=yes;;
70185 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
70186   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
70187 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
70188 _ACEOF
70189 cat >>$CONFIG_STATUS <<_ACEOF
70190   ac_datarootdir_hack='
70191   s&@datadir@&$datadir&g
70192   s&@docdir@&$docdir&g
70193   s&@infodir@&$infodir&g
70194   s&@localedir@&$localedir&g
70195   s&@mandir@&$mandir&g
70196     s&\\\${datarootdir}&$datarootdir&g' ;;
70197 esac
70198 _ACEOF
70199
70200 # Neutralize VPATH when `$srcdir' = `.'.
70201 # Shell code in configure.ac might set extrasub.
70202 # FIXME: do we really want to maintain this feature?
70203 cat >>$CONFIG_STATUS <<_ACEOF
70204   sed "$ac_vpsub
70205 $extrasub
70206 _ACEOF
70207 cat >>$CONFIG_STATUS <<\_ACEOF
70208 :t
70209 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
70210 s&@configure_input@&$configure_input&;t t
70211 s&@top_builddir@&$ac_top_builddir_sub&;t t
70212 s&@srcdir@&$ac_srcdir&;t t
70213 s&@abs_srcdir@&$ac_abs_srcdir&;t t
70214 s&@top_srcdir@&$ac_top_srcdir&;t t
70215 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
70216 s&@builddir@&$ac_builddir&;t t
70217 s&@abs_builddir@&$ac_abs_builddir&;t t
70218 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
70219 s&@INSTALL@&$ac_INSTALL&;t t
70220 s&@MKDIR_P@&$ac_MKDIR_P&;t t
70221 $ac_datarootdir_hack
70222 " $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
70223
70224 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
70225   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
70226   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
70227   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
70228 which seems to be undefined.  Please make sure it is defined." >&5
70229 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
70230 which seems to be undefined.  Please make sure it is defined." >&2;}
70231
70232   rm -f "$tmp/stdin"
70233   case $ac_file in
70234   -) cat "$tmp/out"; rm -f "$tmp/out";;
70235   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
70236   esac
70237  ;;
70238   :H)
70239   #
70240   # CONFIG_HEADER
70241   #
70242 _ACEOF
70243
70244 # Transform confdefs.h into a sed script `conftest.defines', that
70245 # substitutes the proper values into config.h.in to produce config.h.
70246 rm -f conftest.defines conftest.tail
70247 # First, append a space to every undef/define line, to ease matching.
70248 echo 's/$/ /' >conftest.defines
70249 # Then, protect against being on the right side of a sed subst, or in
70250 # an unquoted here document, in config.status.  If some macros were
70251 # called several times there might be several #defines for the same
70252 # symbol, which is useless.  But do not sort them, since the last
70253 # AC_DEFINE must be honored.
70254 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
70255 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
70256 # NAME is the cpp macro being defined, VALUE is the value it is being given.
70257 # PARAMS is the parameter list in the macro definition--in most cases, it's
70258 # just an empty string.
70259 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
70260 ac_dB='\\)[      (].*,\\1define\\2'
70261 ac_dC=' '
70262 ac_dD=' ,'
70263
70264 uniq confdefs.h |
70265   sed -n '
70266         t rset
70267         :rset
70268         s/^[     ]*#[    ]*define[       ][      ]*//
70269         t ok
70270         d
70271         :ok
70272         s/[\\&,]/\\&/g
70273         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
70274         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
70275   ' >>conftest.defines
70276
70277 # Remove the space that was appended to ease matching.
70278 # Then replace #undef with comments.  This is necessary, for
70279 # example, in the case of _POSIX_SOURCE, which is predefined and required
70280 # on some systems where configure will not decide to define it.
70281 # (The regexp can be short, since the line contains either #define or #undef.)
70282 echo 's/ $//
70283 s,^[     #]*u.*,/* & */,' >>conftest.defines
70284
70285 # Break up conftest.defines:
70286 ac_max_sed_lines=50
70287
70288 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
70289 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
70290 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
70291 # et cetera.
70292 ac_in='$ac_file_inputs'
70293 ac_out='"$tmp/out1"'
70294 ac_nxt='"$tmp/out2"'
70295
70296 while :
70297 do
70298   # Write a here document:
70299     cat >>$CONFIG_STATUS <<_ACEOF
70300     # First, check the format of the line:
70301     cat >"\$tmp/defines.sed" <<\\CEOF
70302 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
70303 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
70304 b
70305 :def
70306 _ACEOF
70307   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
70308   echo 'CEOF
70309     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
70310   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
70311   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
70312   grep . conftest.tail >/dev/null || break
70313   rm -f conftest.defines
70314   mv conftest.tail conftest.defines
70315 done
70316 rm -f conftest.defines conftest.tail
70317
70318 echo "ac_result=$ac_in" >>$CONFIG_STATUS
70319 cat >>$CONFIG_STATUS <<\_ACEOF
70320   if test x"$ac_file" != x-; then
70321     echo "/* $configure_input  */" >"$tmp/config.h"
70322     cat "$ac_result" >>"$tmp/config.h"
70323     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
70324       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
70325 echo "$as_me: $ac_file is unchanged" >&6;}
70326     else
70327       rm -f $ac_file
70328       mv "$tmp/config.h" $ac_file
70329     fi
70330   else
70331     echo "/* $configure_input  */"
70332     cat "$ac_result"
70333   fi
70334   rm -f "$tmp/out12"
70335 # Compute $ac_file's index in $config_headers.
70336 _am_stamp_count=1
70337 for _am_header in $config_headers :; do
70338   case $_am_header in
70339     $ac_file | $ac_file:* )
70340       break ;;
70341     * )
70342       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
70343   esac
70344 done
70345 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
70346 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
70347          X$ac_file : 'X\(//\)[^/]' \| \
70348          X$ac_file : 'X\(//\)$' \| \
70349          X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
70350 echo X$ac_file |
70351     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
70352             s//\1/
70353             q
70354           }
70355           /^X\(\/\/\)[^/].*/{
70356             s//\1/
70357             q
70358           }
70359           /^X\(\/\/\)$/{
70360             s//\1/
70361             q
70362           }
70363           /^X\(\/\).*/{
70364             s//\1/
70365             q
70366           }
70367           s/.*/./; q'`/stamp-h$_am_stamp_count
70368  ;;
70369
70370   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
70371 echo "$as_me: executing $ac_file commands" >&6;}
70372  ;;
70373   esac
70374
70375
70376   case $ac_file$ac_mode in
70377     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
70378   # Strip MF so we end up with the name of the file.
70379   mf=`echo "$mf" | sed -e 's/:.*$//'`
70380   # Check whether this is an Automake generated Makefile or not.
70381   # We used to match only the files named `Makefile.in', but
70382   # some people rename them; so instead we look at the file content.
70383   # Grep'ing the first line is not enough: some people post-process
70384   # each Makefile.in and add a new line on top of each file to say so.
70385   # Grep'ing the whole file is not good either: AIX grep has a line
70386   # limit of 2048, but all sed's we know have understand at least 4000.
70387   if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
70388     dirpart=`$as_dirname -- "$mf" ||
70389 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
70390          X"$mf" : 'X\(//\)[^/]' \| \
70391          X"$mf" : 'X\(//\)$' \| \
70392          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
70393 echo X"$mf" |
70394     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
70395             s//\1/
70396             q
70397           }
70398           /^X\(\/\/\)[^/].*/{
70399             s//\1/
70400             q
70401           }
70402           /^X\(\/\/\)$/{
70403             s//\1/
70404             q
70405           }
70406           /^X\(\/\).*/{
70407             s//\1/
70408             q
70409           }
70410           s/.*/./; q'`
70411   else
70412     continue
70413   fi
70414   # Extract the definition of DEPDIR, am__include, and am__quote
70415   # from the Makefile without running `make'.
70416   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
70417   test -z "$DEPDIR" && continue
70418   am__include=`sed -n 's/^am__include = //p' < "$mf"`
70419   test -z "am__include" && continue
70420   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
70421   # When using ansi2knr, U may be empty or an underscore; expand it
70422   U=`sed -n 's/^U = //p' < "$mf"`
70423   # Find all dependency output files, they are included files with
70424   # $(DEPDIR) in their names.  We invoke sed twice because it is the
70425   # simplest approach to changing $(DEPDIR) to its actual value in the
70426   # expansion.
70427   for file in `sed -n "
70428     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
70429        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
70430     # Make sure the directory exists.
70431     test -f "$dirpart/$file" && continue
70432     fdir=`$as_dirname -- "$file" ||
70433 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
70434          X"$file" : 'X\(//\)[^/]' \| \
70435          X"$file" : 'X\(//\)$' \| \
70436          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
70437 echo X"$file" |
70438     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
70439             s//\1/
70440             q
70441           }
70442           /^X\(\/\/\)[^/].*/{
70443             s//\1/
70444             q
70445           }
70446           /^X\(\/\/\)$/{
70447             s//\1/
70448             q
70449           }
70450           /^X\(\/\).*/{
70451             s//\1/
70452             q
70453           }
70454           s/.*/./; q'`
70455     { as_dir=$dirpart/$fdir
70456   case $as_dir in #(
70457   -*) as_dir=./$as_dir;;
70458   esac
70459   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
70460     as_dirs=
70461     while :; do
70462       case $as_dir in #(
70463       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
70464       *) as_qdir=$as_dir;;
70465       esac
70466       as_dirs="'$as_qdir' $as_dirs"
70467       as_dir=`$as_dirname -- "$as_dir" ||
70468 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
70469          X"$as_dir" : 'X\(//\)[^/]' \| \
70470          X"$as_dir" : 'X\(//\)$' \| \
70471          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
70472 echo X"$as_dir" |
70473     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
70474             s//\1/
70475             q
70476           }
70477           /^X\(\/\/\)[^/].*/{
70478             s//\1/
70479             q
70480           }
70481           /^X\(\/\/\)$/{
70482             s//\1/
70483             q
70484           }
70485           /^X\(\/\).*/{
70486             s//\1/
70487             q
70488           }
70489           s/.*/./; q'`
70490       test -d "$as_dir" && break
70491     done
70492     test -z "$as_dirs" || eval "mkdir $as_dirs"
70493   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
70494 echo "$as_me: error: cannot create directory $as_dir" >&2;}
70495    { (exit 1); exit 1; }; }; }
70496     # echo "creating $dirpart/$file"
70497     echo '# dummy' > "$dirpart/$file"
70498   done
70499 done
70500  ;;
70501     "po-directories":C)
70502     for ac_file in $CONFIG_FILES; do
70503       # Support "outfile[:infile[:infile...]]"
70504       case "$ac_file" in
70505         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
70506       esac
70507       # PO directories have a Makefile.in generated from Makefile.in.in.
70508       case "$ac_file" in */Makefile.in)
70509         # Adjust a relative srcdir.
70510         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
70511         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
70512         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
70513         # In autoconf-2.13 it is called $ac_given_srcdir.
70514         # In autoconf-2.50 it is called $srcdir.
70515         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
70516         case "$ac_given_srcdir" in
70517           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
70518           /*) top_srcdir="$ac_given_srcdir" ;;
70519           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
70520         esac
70521         # Treat a directory as a PO directory if and only if it has a
70522         # POTFILES.in file. This allows packages to have multiple PO
70523         # directories under different names or in different locations.
70524         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
70525           rm -f "$ac_dir/POTFILES"
70526           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
70527           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
70528           POMAKEFILEDEPS="POTFILES.in"
70529           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
70530           # on $ac_dir but don't depend on user-specified configuration
70531           # parameters.
70532           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
70533             # The LINGUAS file contains the set of available languages.
70534             if test -n "$OBSOLETE_ALL_LINGUAS"; then
70535               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
70536             fi
70537             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
70538             # Hide the ALL_LINGUAS assigment from automake < 1.5.
70539             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
70540             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
70541           else
70542             # The set of available languages was given in configure.in.
70543             # Hide the ALL_LINGUAS assigment from automake < 1.5.
70544             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
70545           fi
70546           # Compute POFILES
70547           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
70548           # Compute UPDATEPOFILES
70549           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
70550           # Compute DUMMYPOFILES
70551           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
70552           # Compute GMOFILES
70553           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
70554           case "$ac_given_srcdir" in
70555             .) srcdirpre= ;;
70556             *) srcdirpre='$(srcdir)/' ;;
70557           esac
70558           POFILES=
70559           UPDATEPOFILES=
70560           DUMMYPOFILES=
70561           GMOFILES=
70562           for lang in $ALL_LINGUAS; do
70563             POFILES="$POFILES $srcdirpre$lang.po"
70564             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
70565             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
70566             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
70567           done
70568           # CATALOGS depends on both $ac_dir and the user's LINGUAS
70569           # environment variable.
70570           INST_LINGUAS=
70571           if test -n "$ALL_LINGUAS"; then
70572             for presentlang in $ALL_LINGUAS; do
70573               useit=no
70574               if test "%UNSET%" != "$LINGUAS"; then
70575                 desiredlanguages="$LINGUAS"
70576               else
70577                 desiredlanguages="$ALL_LINGUAS"
70578               fi
70579               for desiredlang in $desiredlanguages; do
70580                 # Use the presentlang catalog if desiredlang is
70581                 #   a. equal to presentlang, or
70582                 #   b. a variant of presentlang (because in this case,
70583                 #      presentlang can be used as a fallback for messages
70584                 #      which are not translated in the desiredlang catalog).
70585                 case "$desiredlang" in
70586                   "$presentlang"*) useit=yes;;
70587                 esac
70588               done
70589               if test $useit = yes; then
70590                 INST_LINGUAS="$INST_LINGUAS $presentlang"
70591               fi
70592             done
70593           fi
70594           CATALOGS=
70595           if test -n "$INST_LINGUAS"; then
70596             for lang in $INST_LINGUAS; do
70597               CATALOGS="$CATALOGS $lang.gmo"
70598             done
70599           fi
70600           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
70601           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"
70602           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
70603             if test -f "$f"; then
70604               case "$f" in
70605                 *.orig | *.bak | *~) ;;
70606                 *) cat "$f" >> "$ac_dir/Makefile" ;;
70607               esac
70608             fi
70609           done
70610         fi
70611         ;;
70612       esac
70613     done ;;
70614
70615   esac
70616 done # for ac_tag
70617
70618
70619 { (exit 0); exit 0; }
70620 _ACEOF
70621 chmod +x $CONFIG_STATUS
70622 ac_clean_files=$ac_clean_files_save
70623
70624
70625 # configure is writing to config.log, and then calls config.status.
70626 # config.status does its own redirection, appending to config.log.
70627 # Unfortunately, on DOS this fails, as config.log is still kept open
70628 # by configure, so config.status won't be able to write to it; its
70629 # output is simply discarded.  So we exec the FD to /dev/null,
70630 # effectively closing config.log, so it can be properly (re)opened and
70631 # appended to by config.status.  When coming back to configure, we
70632 # need to make the FD available again.
70633 if test "$no_create" != yes; then
70634   ac_cs_success=:
70635   ac_config_status_args=
70636   test "$silent" = yes &&
70637     ac_config_status_args="$ac_config_status_args --quiet"
70638   exec 5>/dev/null
70639   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
70640   exec 5>>config.log
70641   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
70642   # would make configure fail if this is the last instruction.
70643   $ac_cs_success || { (exit 1); exit 1; }
70644 fi
70645
70646
70647
70648
70649
70650     # Extract the first word of "svn", so it can be a program name with args.
70651 set dummy svn; ac_word=$2
70652 { echo "$as_me:$LINENO: checking for $ac_word" >&5
70653 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
70654 if test "${ac_cv_path_SVN+set}" = set; then
70655   echo $ECHO_N "(cached) $ECHO_C" >&6
70656 else
70657   case $SVN in
70658   [\\/]* | ?:[\\/]*)
70659   ac_cv_path_SVN="$SVN" # Let the user override the test with a path.
70660   ;;
70661   *)
70662   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
70663 for as_dir in $LOCSYSPATH
70664 do
70665   IFS=$as_save_IFS
70666   test -z "$as_dir" && as_dir=.
70667   for ac_exec_ext in '' $ac_executable_extensions; do
70668   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
70669     ac_cv_path_SVN="$as_dir/$ac_word$ac_exec_ext"
70670     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
70671     break 2
70672   fi
70673 done
70674 done
70675 IFS=$as_save_IFS
70676
70677   ;;
70678 esac
70679 fi
70680 SVN=$ac_cv_path_SVN
70681 if test -n "$SVN"; then
70682   { echo "$as_me:$LINENO: result: $SVN" >&5
70683 echo "${ECHO_T}$SVN" >&6; }
70684 else
70685   { echo "$as_me:$LINENO: result: no" >&5
70686 echo "${ECHO_T}no" >&6; }
70687 fi
70688
70689
70690     { echo "$as_me:$LINENO: checking Subversion revision information" >&5
70691 echo $ECHO_N "checking Subversion revision information... $ECHO_C" >&6; }
70692     if test -d $srcdir/.svn && test -n "$SVN" && (cd $srcdir > /dev/null ; $SVN info . ) > conftemp.svn; then
70693         rev=`$GREP Revision: conftemp.svn|cut -d: -f 2|cut -c2-`
70694         url=`$GREP URL: conftemp.svn|cut -d: -f 2-|cut -c2-`
70695         ( echo '#define BUILT_REV "'$rev'"'
70696           echo '#define BUILT_BRANCH "'`basename "$url"`'"'
70697         ) > common-src/svn-info.h
70698
70699         { echo "$as_me:$LINENO: result: updated" >&5
70700 echo "${ECHO_T}updated" >&6; }
70701     else
70702         # Makefiles will be upset if the file doesn't exist, so double-check
70703         if test -f common-src/svn-info.h; then
70704             : # all good
70705             { echo "$as_me:$LINENO: result: not changed" >&5
70706 echo "${ECHO_T}not changed" >&6; }
70707         else
70708             echo '/* no information available */' > common-src/svn-info.h
70709             { echo "$as_me:$LINENO: result: not available" >&5
70710 echo "${ECHO_T}not available" >&6; }
70711         fi
70712     fi
70713
70714     rm -f conftemp.svn
70715
70716
70717
70718     echo "Compiler Flags:"
70719     echo "  CFLAGS: ${CFLAGS-(none)}"
70720     echo "  CPPFLAGS: ${CPPFLAGS-(none)}"
70721     echo "  LDFLAGS: ${LDFLAGS-(none)}"
70722     echo "  LIBS: ${LIBS-(none)}"
70723
70724
70725     components=''
70726     if $WANT_SERVER; then
70727         components="$components server";
70728     else
70729         components="$components (no server)";
70730     fi
70731     if $WANT_RESTORE; then
70732         components="$components restore";
70733     else
70734         components="$components (no restore)";
70735     fi
70736     if $WANT_CLIENT; then
70737         components="$components client";
70738     else
70739         components="$components (no client)";
70740     fi
70741     if $WANT_RECOVER; then
70742         components="$components amrecover";
70743     else
70744         components="$components (no amrecover)";
70745     fi
70746
70747     echo "Amanda Components: $components"
70748
70749
70750     echo "Working IPv6:" $WORKING_IPV6
70751
70752
70753     echo "Build documentation:" $ENABLE_MANPAGE_BUILD
70754
70755
70756     echo "Directories:"
70757     echo "  Perl modules (amperldir): $amperldir"
70758     echo "  Dumper: $DUMPER_DIR"
70759     echo "  Configuration: $CONFIG_DIR"
70760     echo "  GNU Tar lists: $GNUTAR_LISTED_INCREMENTAL_DIR"
70761     echo "  Temporary: $AMANDA_TMPDIR"
70762
70763     if test -f config.warnings; then
70764         echo "WARNINGS:"
70765         cat config.warnings | sed -e 's/^/  /g'
70766         rm config.warnings
70767     fi
70768