Imported Upstream version 2.6.0
[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.0"
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         # call ac_path_progs
30018         for ac_prog in gtar gnutar tar
30019 do
30020   # Extract the first word of "$ac_prog", so it can be a program name with args.
30021 set dummy $ac_prog; ac_word=$2
30022 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30023 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30024 if test "${ac_cv_path_GNUTAR+set}" = set; then
30025   echo $ECHO_N "(cached) $ECHO_C" >&6
30026 else
30027   case $GNUTAR in
30028   [\\/]* | ?:[\\/]*)
30029   ac_cv_path_GNUTAR="$GNUTAR" # Let the user override the test with a path.
30030   ;;
30031   *)
30032   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30033 for as_dir in $LOCSYSPATH
30034 do
30035   IFS=$as_save_IFS
30036   test -z "$as_dir" && as_dir=.
30037   for ac_exec_ext in '' $ac_executable_extensions; do
30038   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30039     ac_cv_path_GNUTAR="$as_dir/$ac_word$ac_exec_ext"
30040     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30041     break 2
30042   fi
30043 done
30044 done
30045 IFS=$as_save_IFS
30046
30047   ;;
30048 esac
30049 fi
30050 GNUTAR=$ac_cv_path_GNUTAR
30051 if test -n "$GNUTAR"; then
30052   { echo "$as_me:$LINENO: result: $GNUTAR" >&5
30053 echo "${ECHO_T}$GNUTAR" >&6; }
30054 else
30055   { echo "$as_me:$LINENO: result: no" >&5
30056 echo "${ECHO_T}no" >&6; }
30057 fi
30058
30059
30060   test -n "$GNUTAR" && break
30061 done
30062
30063     else
30064         GNUTAR=
30065     fi
30066
30067     if test ! -z "$GNUTAR"; then
30068       case "`\"$GNUTAR\" --version 2>&1`" in
30069        *GNU*tar* | *Free*paxutils* ) : # OK, it is GNU tar
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                     GNUTAR=''
30084                     ;;
30085       esac
30086     fi
30087
30088     if test "x$GNUTAR" != "x"; then
30089         # define unquoted
30090
30091 cat >>confdefs.h <<_ACEOF
30092 #define GNUTAR "$GNUTAR"
30093 _ACEOF
30094
30095     fi
30096
30097
30098
30099
30100
30101
30102
30103 # Check whether --with-smbclient was given.
30104 if test "${with_smbclient+set}" = set; then
30105   withval=$with_smbclient;
30106             case "$withval" in
30107                 /*) SAMBA_CLIENT="$withval";;
30108                 y|ye|yes) :;;
30109                 n|no) SAMBA_CLIENT=no ;;
30110                 *)  { { echo "$as_me:$LINENO: error: *** You must supply a full pathname to --with-smbclient" >&5
30111 echo "$as_me: error: *** You must supply a full pathname to --with-smbclient" >&2;}
30112    { (exit 1); exit 1; }; };;
30113             esac
30114
30115
30116 fi
30117
30118
30119
30120 # Check whether --with-samba-user was given.
30121 if test "${with_samba_user+set}" = set; then
30122   withval=$with_samba_user;  { { echo "$as_me:$LINENO: error: --with-samba-user is no longer supported; place username in 'amandapass'" >&5
30123 echo "$as_me: error: --with-samba-user is no longer supported; place username in 'amandapass'" >&2;}
30124    { (exit 1); exit 1; }; }
30125
30126 fi
30127
30128
30129     if test "x$SAMBA_CLIENT" != "xno"; then
30130       # Extract the first word of "smbclient", so it can be a program name with args.
30131 set dummy smbclient; ac_word=$2
30132 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30133 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30134 if test "${ac_cv_path_SAMBA_CLIENT+set}" = set; then
30135   echo $ECHO_N "(cached) $ECHO_C" >&6
30136 else
30137   case $SAMBA_CLIENT in
30138   [\\/]* | ?:[\\/]*)
30139   ac_cv_path_SAMBA_CLIENT="$SAMBA_CLIENT" # Let the user override the test with a path.
30140   ;;
30141   *)
30142   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30143 for as_dir in $LOCSYSPATH
30144 do
30145   IFS=$as_save_IFS
30146   test -z "$as_dir" && as_dir=.
30147   for ac_exec_ext in '' $ac_executable_extensions; do
30148   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30149     ac_cv_path_SAMBA_CLIENT="$as_dir/$ac_word$ac_exec_ext"
30150     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30151     break 2
30152   fi
30153 done
30154 done
30155 IFS=$as_save_IFS
30156
30157   ;;
30158 esac
30159 fi
30160 SAMBA_CLIENT=$ac_cv_path_SAMBA_CLIENT
30161 if test -n "$SAMBA_CLIENT"; then
30162   { echo "$as_me:$LINENO: result: $SAMBA_CLIENT" >&5
30163 echo "${ECHO_T}$SAMBA_CLIENT" >&6; }
30164 else
30165   { echo "$as_me:$LINENO: result: no" >&5
30166 echo "${ECHO_T}no" >&6; }
30167 fi
30168
30169
30170       smbversion=0
30171       if test ! -z "$SAMBA_CLIENT"; then
30172         case "`\"$SAMBA_CLIENT\" '\\\\not.a.host.name\\notashare' -U nosuchuser -N -Tx /dev/null 2>&1`" in
30173         *"Unknown host"*)
30174                       smbversion=1
30175                       ;;
30176         *"Connection to not.a.host.name failed"*)
30177                       smbversion=2
30178                       ;;
30179         *)
30180
30181     { echo "$as_me:$LINENO: WARNING: $SAMBA_CLIENT does not seem to be smbclient, so it will not be used." >&5
30182 echo "$as_me: WARNING: $SAMBA_CLIENT does not seem to be smbclient, so it will not be used." >&2;}
30183
30184
30185     cat <<AAW_EOF >>config.warnings
30186 $SAMBA_CLIENT does not seem to be smbclient, so it will not be used.
30187 AAW_EOF
30188
30189
30190                       SAMBA_CLIENT=
30191                       ;;
30192         esac
30193         if test -n "$SAMBA_CLIENT"; then
30194
30195 cat >>confdefs.h <<_ACEOF
30196 #define SAMBA_CLIENT "$SAMBA_CLIENT"
30197 _ACEOF
30198
30199
30200 cat >>confdefs.h <<_ACEOF
30201 #define SAMBA_VERSION $smbversion
30202 _ACEOF
30203
30204         fi
30205       fi
30206     fi
30207
30208      if test -n "$SAMBA_CLIENT"; then
30209   WANT_SAMBA_TRUE=
30210   WANT_SAMBA_FALSE='#'
30211 else
30212   WANT_SAMBA_TRUE='#'
30213   WANT_SAMBA_FALSE=
30214 fi
30215
30216
30217
30218     USE_RUNDUMP=no
30219
30220     # some systems require rundump unconditionally
30221     case "$target" in
30222         *-ultrix*) USE_RUNDUMP=yes ;;
30223         *-dg-*) USE_RUNDUMP=yes ;;
30224     esac
30225
30226
30227 # Check whether --with-rundump was given.
30228 if test "${with_rundump+set}" = set; then
30229   withval=$with_rundump;
30230         case "$withval" in
30231             n | no) USE_RUNDUMP=no ;;
30232             y | ye | yes) USE_RUNDUMP=yes ;;
30233             *) { { echo "$as_me:$LINENO: error: You must not supply an argument to --with-rundump option." >&5
30234 echo "$as_me: error: You must not supply an argument to --with-rundump option." >&2;}
30235    { (exit 1); exit 1; }; };;
30236         esac
30237
30238 fi
30239
30240
30241     if test x"$USE_RUNDUMP" = x"yes"; then
30242
30243 cat >>confdefs.h <<\_ACEOF
30244 #define USE_RUNDUMP 1
30245 _ACEOF
30246
30247     fi
30248
30249
30250 #
30251 # Look for other programs Amanda will use
30252 #
30253
30254
30255     # Extract the first word of "grep", so it can be a program name with args.
30256 set dummy grep; ac_word=$2
30257 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30258 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30259 if test "${ac_cv_path_GREP+set}" = set; then
30260   echo $ECHO_N "(cached) $ECHO_C" >&6
30261 else
30262   case $GREP in
30263   [\\/]* | ?:[\\/]*)
30264   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
30265   ;;
30266   *)
30267   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30268 for as_dir in $LOCSYSPATH
30269 do
30270   IFS=$as_save_IFS
30271   test -z "$as_dir" && as_dir=.
30272   for ac_exec_ext in '' $ac_executable_extensions; do
30273   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30274     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
30275     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30276     break 2
30277   fi
30278 done
30279 done
30280 IFS=$as_save_IFS
30281
30282   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
30283   ;;
30284 esac
30285 fi
30286 GREP=$ac_cv_path_GREP
30287 if test -n "$GREP"; then
30288   { echo "$as_me:$LINENO: result: $GREP" >&5
30289 echo "${ECHO_T}$GREP" >&6; }
30290 else
30291   { echo "$as_me:$LINENO: result: no" >&5
30292 echo "${ECHO_T}no" >&6; }
30293 fi
30294
30295
30296
30297 cat >>confdefs.h <<_ACEOF
30298 #define GREP "$GREP"
30299 _ACEOF
30300
30301
30302 { echo "$as_me:$LINENO: checking for egrep" >&5
30303 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
30304 if test "${ac_cv_path_EGREP+set}" = set; then
30305   echo $ECHO_N "(cached) $ECHO_C" >&6
30306 else
30307   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
30308    then ac_cv_path_EGREP="$GREP -E"
30309    else
30310      # Extract the first word of "egrep" to use in msg output
30311 if test -z "$EGREP"; then
30312 set dummy egrep; ac_prog_name=$2
30313 if test "${ac_cv_path_EGREP+set}" = set; then
30314   echo $ECHO_N "(cached) $ECHO_C" >&6
30315 else
30316   ac_path_EGREP_found=false
30317 # Loop through the user's path and test for each of PROGNAME-LIST
30318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30319 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
30320 do
30321   IFS=$as_save_IFS
30322   test -z "$as_dir" && as_dir=.
30323   for ac_prog in egrep; do
30324   for ac_exec_ext in '' $ac_executable_extensions; do
30325     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
30326     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
30327     # Check for GNU ac_path_EGREP and select it if it is found.
30328   # Check for GNU $ac_path_EGREP
30329 case `"$ac_path_EGREP" --version 2>&1` in
30330 *GNU*)
30331   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
30332 *)
30333   ac_count=0
30334   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
30335   while :
30336   do
30337     cat "conftest.in" "conftest.in" >"conftest.tmp"
30338     mv "conftest.tmp" "conftest.in"
30339     cp "conftest.in" "conftest.nl"
30340     echo 'EGREP' >> "conftest.nl"
30341     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
30342     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
30343     ac_count=`expr $ac_count + 1`
30344     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
30345       # Best one so far, save it but keep looking for a better one
30346       ac_cv_path_EGREP="$ac_path_EGREP"
30347       ac_path_EGREP_max=$ac_count
30348     fi
30349     # 10*(2^10) chars as input seems more than enough
30350     test $ac_count -gt 10 && break
30351   done
30352   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
30353 esac
30354
30355
30356     $ac_path_EGREP_found && break 3
30357   done
30358 done
30359
30360 done
30361 IFS=$as_save_IFS
30362
30363
30364 fi
30365
30366 EGREP="$ac_cv_path_EGREP"
30367 if test -z "$EGREP"; then
30368   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
30369 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
30370    { (exit 1); exit 1; }; }
30371 fi
30372
30373 else
30374   ac_cv_path_EGREP=$EGREP
30375 fi
30376
30377
30378    fi
30379 fi
30380 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
30381 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
30382  EGREP="$ac_cv_path_EGREP"
30383
30384
30385
30386
30387
30388
30389     # Extract the first word of "lint", so it can be a program name with args.
30390 set dummy lint; ac_word=$2
30391 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30392 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30393 if test "${ac_cv_path_AMLINT+set}" = set; then
30394   echo $ECHO_N "(cached) $ECHO_C" >&6
30395 else
30396   case $AMLINT in
30397   [\\/]* | ?:[\\/]*)
30398   ac_cv_path_AMLINT="$AMLINT" # Let the user override the test with a path.
30399   ;;
30400   *)
30401   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30402 as_dummy="/opt/SUNWspro/bin:$SYSLOCPATH"
30403 for as_dir in $as_dummy
30404 do
30405   IFS=$as_save_IFS
30406   test -z "$as_dir" && as_dir=.
30407   for ac_exec_ext in '' $ac_executable_extensions; do
30408   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30409     ac_cv_path_AMLINT="$as_dir/$ac_word$ac_exec_ext"
30410     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30411     break 2
30412   fi
30413 done
30414 done
30415 IFS=$as_save_IFS
30416
30417   ;;
30418 esac
30419 fi
30420 AMLINT=$ac_cv_path_AMLINT
30421 if test -n "$AMLINT"; then
30422   { echo "$as_me:$LINENO: result: $AMLINT" >&5
30423 echo "${ECHO_T}$AMLINT" >&6; }
30424 else
30425   { echo "$as_me:$LINENO: result: no" >&5
30426 echo "${ECHO_T}no" >&6; }
30427 fi
30428
30429
30430     if test ! -z "$AMLINT"; then
30431       $AMLINT -flags 2>&1 | $GREP -- '-errfmt=' > /dev/null
30432       if test $? -eq 0; then
30433         AMLINTFLAGS="-n -s -u -m -x"
30434         AMLINTFLAGS="$AMLINTFLAGS -errchk=%all"
30435         AMLINTFLAGS="$AMLINTFLAGS -errfmt=macro"
30436         AMLINTFLAGS="$AMLINTFLAGS -errhdr=no%/usr/include"
30437         AMLINTFLAGS="$AMLINTFLAGS -errhdr=%user"
30438         AMLINTFLAGS="$AMLINTFLAGS -errsecurity=extended"
30439         AMLINTFLAGS="$AMLINTFLAGS -errtags=yes"
30440         AMLINTFLAGS="$AMLINTFLAGS -Ncheck=%all"
30441         AMLINTFLAGS="$AMLINTFLAGS -Nlevel=2"
30442         AMLINTFLAGS="$AMLINTFLAGS -erroff=E_ASGN_NEVER_USED"
30443         AMLINTFLAGS="$AMLINTFLAGS,E_ASGN_RESET"
30444         AMLINTFLAGS="$AMLINTFLAGS,E_CAST_INT_CONST_TO_SMALL_INT"
30445         AMLINTFLAGS="$AMLINTFLAGS,E_CAST_INT_TO_SMALL_INT"
30446         AMLINTFLAGS="$AMLINTFLAGS,E_CAST_UINT_TO_SIGNED_INT"
30447         AMLINTFLAGS="$AMLINTFLAGS,E_CONSTANT_CONDITION"
30448         AMLINTFLAGS="$AMLINTFLAGS,E_ENUM_UNUSE"
30449         AMLINTFLAGS="$AMLINTFLAGS,E_EXPR_NULL_EFFECT"
30450         AMLINTFLAGS="$AMLINTFLAGS,E_FUNC_RET_ALWAYS_IGNOR"
30451         AMLINTFLAGS="$AMLINTFLAGS,E_FUNC_RET_MAYBE_IGNORED"
30452         AMLINTFLAGS="$AMLINTFLAGS,E_H_C_CHECK0"
30453         AMLINTFLAGS="$AMLINTFLAGS,E_H_C_CHECK1"
30454         AMLINTFLAGS="$AMLINTFLAGS,E_H_C_CHECK2"
30455         AMLINTFLAGS="$AMLINTFLAGS,E_INCL_MNUSD"
30456         AMLINTFLAGS="$AMLINTFLAGS,E_INCL_NUSD"
30457         AMLINTFLAGS="$AMLINTFLAGS,E_MCR_NODIFF"
30458         AMLINTFLAGS="$AMLINTFLAGS,E_NAME_MULTIPLY_DEF"
30459         AMLINTFLAGS="$AMLINTFLAGS,E_P_REF_NULL_PSBL"
30460         AMLINTFLAGS="$AMLINTFLAGS,E_P_REF_SUSP"
30461         AMLINTFLAGS="$AMLINTFLAGS,E_PTRDIFF_OVERFLOW"
30462         AMLINTFLAGS="$AMLINTFLAGS,E_P_USE_NULL_PSBL"
30463         AMLINTFLAGS="$AMLINTFLAGS,E_P_USE_SUSP"
30464         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_ACCESS_WARN"
30465         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_CHDIR_WARN"
30466         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_CHMOD_WARN"
30467         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_CREAT_WITHOUT_EXCL"
30468         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_EXEC_PATH"
30469         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_EXEC_WARN"
30470         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_FOPEN_MODE"
30471         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_GETENV_WARN"
30472         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_MKDIR_WARN"
30473         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_PRINTF_VAR_FMT"
30474         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_RAND_WARN"
30475         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_SCANF_VAR_FMT"
30476         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_SELECT_WARN"
30477         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_SHELL_WARN"
30478         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_STRNCPY_WARN"
30479         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_UMASK_WARN"
30480         AMLINTFLAGS="$AMLINTFLAGS,E_SEC_USE_AFTER_STAT"
30481         AMLINTFLAGS="$AMLINTFLAGS,E_SIGN_EXTENSION_PSBL"
30482         AMLINTFLAGS="$AMLINTFLAGS,E_TYPEDEF_UNUSE"
30483         AMLINTFLAGS="$AMLINTFLAGS,E_UNCAL_F"
30484       else
30485         AMLINTFLAGS=""
30486       fi
30487     else
30488       # Extract the first word of "splint", so it can be a program name with args.
30489 set dummy splint; ac_word=$2
30490 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30491 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30492 if test "${ac_cv_path_AMLINT+set}" = set; then
30493   echo $ECHO_N "(cached) $ECHO_C" >&6
30494 else
30495   case $AMLINT in
30496   [\\/]* | ?:[\\/]*)
30497   ac_cv_path_AMLINT="$AMLINT" # Let the user override the test with a path.
30498   ;;
30499   *)
30500   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30501 for as_dir in $SYSLOCPATH
30502 do
30503   IFS=$as_save_IFS
30504   test -z "$as_dir" && as_dir=.
30505   for ac_exec_ext in '' $ac_executable_extensions; do
30506   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30507     ac_cv_path_AMLINT="$as_dir/$ac_word$ac_exec_ext"
30508     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30509     break 2
30510   fi
30511 done
30512 done
30513 IFS=$as_save_IFS
30514
30515   ;;
30516 esac
30517 fi
30518 AMLINT=$ac_cv_path_AMLINT
30519 if test -n "$AMLINT"; then
30520   { echo "$as_me:$LINENO: result: $AMLINT" >&5
30521 echo "${ECHO_T}$AMLINT" >&6; }
30522 else
30523   { echo "$as_me:$LINENO: result: no" >&5
30524 echo "${ECHO_T}no" >&6; }
30525 fi
30526
30527
30528       if test ! -z "$AMLINT"; then
30529         AMLINT="splint"
30530       else
30531         AMLINT='echo "Error: LINT is not installed" ; false'
30532       fi
30533       AMLINTFLAGS='+show-scan +unixlib -weak -globs +usedef +usereleased +impouts -paramimptemp -varuse -warnposix -redef -preproc -fixedformalarray -retval -unrecog -usevarargs -formatcode'
30534     fi
30535
30536
30537 for ac_prog in flex lex
30538 do
30539   # Extract the first word of "$ac_prog", so it can be a program name with args.
30540 set dummy $ac_prog; ac_word=$2
30541 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30542 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30543 if test "${ac_cv_prog_LEX+set}" = set; then
30544   echo $ECHO_N "(cached) $ECHO_C" >&6
30545 else
30546   if test -n "$LEX"; then
30547   ac_cv_prog_LEX="$LEX" # Let the user override the test.
30548 else
30549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30550 for as_dir in $PATH
30551 do
30552   IFS=$as_save_IFS
30553   test -z "$as_dir" && as_dir=.
30554   for ac_exec_ext in '' $ac_executable_extensions; do
30555   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30556     ac_cv_prog_LEX="$ac_prog"
30557     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30558     break 2
30559   fi
30560 done
30561 done
30562 IFS=$as_save_IFS
30563
30564 fi
30565 fi
30566 LEX=$ac_cv_prog_LEX
30567 if test -n "$LEX"; then
30568   { echo "$as_me:$LINENO: result: $LEX" >&5
30569 echo "${ECHO_T}$LEX" >&6; }
30570 else
30571   { echo "$as_me:$LINENO: result: no" >&5
30572 echo "${ECHO_T}no" >&6; }
30573 fi
30574
30575
30576   test -n "$LEX" && break
30577 done
30578 test -n "$LEX" || LEX=":"
30579
30580 if test "x$LEX" != "x:"; then
30581   cat >conftest.l <<_ACEOF
30582 %%
30583 a { ECHO; }
30584 b { REJECT; }
30585 c { yymore (); }
30586 d { yyless (1); }
30587 e { yyless (input () != 0); }
30588 f { unput (yytext[0]); }
30589 . { BEGIN INITIAL; }
30590 %%
30591 #ifdef YYTEXT_POINTER
30592 extern char *yytext;
30593 #endif
30594 int
30595 main (void)
30596 {
30597   return ! yylex () + ! yywrap ();
30598 }
30599 _ACEOF
30600 { (ac_try="$LEX conftest.l"
30601 case "(($ac_try" in
30602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30603   *) ac_try_echo=$ac_try;;
30604 esac
30605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30606   (eval "$LEX conftest.l") 2>&5
30607   ac_status=$?
30608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30609   (exit $ac_status); }
30610 { echo "$as_me:$LINENO: checking lex output file root" >&5
30611 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
30612 if test "${ac_cv_prog_lex_root+set}" = set; then
30613   echo $ECHO_N "(cached) $ECHO_C" >&6
30614 else
30615
30616 if test -f lex.yy.c; then
30617   ac_cv_prog_lex_root=lex.yy
30618 elif test -f lexyy.c; then
30619   ac_cv_prog_lex_root=lexyy
30620 else
30621   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
30622 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
30623    { (exit 1); exit 1; }; }
30624 fi
30625 fi
30626 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
30627 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
30628 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
30629
30630 if test -z "${LEXLIB+set}"; then
30631   { echo "$as_me:$LINENO: checking lex library" >&5
30632 echo $ECHO_N "checking lex library... $ECHO_C" >&6; }
30633 if test "${ac_cv_lib_lex+set}" = set; then
30634   echo $ECHO_N "(cached) $ECHO_C" >&6
30635 else
30636
30637     ac_save_LIBS=$LIBS
30638     ac_cv_lib_lex='none needed'
30639     for ac_lib in '' -lfl -ll; do
30640       LIBS="$ac_lib $ac_save_LIBS"
30641       cat >conftest.$ac_ext <<_ACEOF
30642 `cat $LEX_OUTPUT_ROOT.c`
30643 _ACEOF
30644 rm -f conftest.$ac_objext conftest$ac_exeext
30645 if { (ac_try="$ac_link"
30646 case "(($ac_try" in
30647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30648   *) ac_try_echo=$ac_try;;
30649 esac
30650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30651   (eval "$ac_link") 2>conftest.er1
30652   ac_status=$?
30653   grep -v '^ *+' conftest.er1 >conftest.err
30654   rm -f conftest.er1
30655   cat conftest.err >&5
30656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30657   (exit $ac_status); } && {
30658          test -z "$ac_c_werror_flag" ||
30659          test ! -s conftest.err
30660        } && test -s conftest$ac_exeext &&
30661        $as_test_x conftest$ac_exeext; then
30662   ac_cv_lib_lex=$ac_lib
30663 else
30664   echo "$as_me: failed program was:" >&5
30665 sed 's/^/| /' conftest.$ac_ext >&5
30666
30667
30668 fi
30669
30670 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30671       conftest$ac_exeext conftest.$ac_ext
30672       test "$ac_cv_lib_lex" != 'none needed' && break
30673     done
30674     LIBS=$ac_save_LIBS
30675
30676 fi
30677 { echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
30678 echo "${ECHO_T}$ac_cv_lib_lex" >&6; }
30679   test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
30680 fi
30681
30682
30683 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
30684 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
30685 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
30686   echo $ECHO_N "(cached) $ECHO_C" >&6
30687 else
30688   # POSIX says lex can declare yytext either as a pointer or an array; the
30689 # default is implementation-dependent.  Figure out which it is, since
30690 # not all implementations provide the %pointer and %array declarations.
30691 ac_cv_prog_lex_yytext_pointer=no
30692 ac_save_LIBS=$LIBS
30693 LIBS="$LEXLIB $ac_save_LIBS"
30694 cat >conftest.$ac_ext <<_ACEOF
30695 #define YYTEXT_POINTER 1
30696 `cat $LEX_OUTPUT_ROOT.c`
30697 _ACEOF
30698 rm -f conftest.$ac_objext conftest$ac_exeext
30699 if { (ac_try="$ac_link"
30700 case "(($ac_try" in
30701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30702   *) ac_try_echo=$ac_try;;
30703 esac
30704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30705   (eval "$ac_link") 2>conftest.er1
30706   ac_status=$?
30707   grep -v '^ *+' conftest.er1 >conftest.err
30708   rm -f conftest.er1
30709   cat conftest.err >&5
30710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30711   (exit $ac_status); } && {
30712          test -z "$ac_c_werror_flag" ||
30713          test ! -s conftest.err
30714        } && test -s conftest$ac_exeext &&
30715        $as_test_x conftest$ac_exeext; then
30716   ac_cv_prog_lex_yytext_pointer=yes
30717 else
30718   echo "$as_me: failed program was:" >&5
30719 sed 's/^/| /' conftest.$ac_ext >&5
30720
30721
30722 fi
30723
30724 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30725       conftest$ac_exeext conftest.$ac_ext
30726 LIBS=$ac_save_LIBS
30727
30728 fi
30729 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
30730 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
30731 if test $ac_cv_prog_lex_yytext_pointer = yes; then
30732
30733 cat >>confdefs.h <<\_ACEOF
30734 #define YYTEXT_POINTER 1
30735 _ACEOF
30736
30737 fi
30738 rm -f conftest.l $LEX_OUTPUT_ROOT.c
30739
30740 fi
30741 if test "$LEX" = :; then
30742   LEX=${am_missing_run}flex
30743 fi
30744
30745
30746     # Extract the first word of "ar", so it can be a program name with args.
30747 set dummy ar; ac_word=$2
30748 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30749 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30750 if test "${ac_cv_path_AR+set}" = set; then
30751   echo $ECHO_N "(cached) $ECHO_C" >&6
30752 else
30753   case $AR in
30754   [\\/]* | ?:[\\/]*)
30755   ac_cv_path_AR="$AR" # Let the user override the test with a path.
30756   ;;
30757   *)
30758   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30759 for as_dir in $LOCSYSPATH
30760 do
30761   IFS=$as_save_IFS
30762   test -z "$as_dir" && as_dir=.
30763   for ac_exec_ext in '' $ac_executable_extensions; do
30764   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30765     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
30766     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30767     break 2
30768   fi
30769 done
30770 done
30771 IFS=$as_save_IFS
30772
30773   ;;
30774 esac
30775 fi
30776 AR=$ac_cv_path_AR
30777 if test -n "$AR"; then
30778   { echo "$as_me:$LINENO: result: $AR" >&5
30779 echo "${ECHO_T}$AR" >&6; }
30780 else
30781   { echo "$as_me:$LINENO: result: no" >&5
30782 echo "${ECHO_T}no" >&6; }
30783 fi
30784
30785
30786
30787
30788
30789     # Extract the first word of "gettext", so it can be a program name with args.
30790 set dummy gettext; ac_word=$2
30791 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30792 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30793 if test "${ac_cv_path_GETTEXT+set}" = set; then
30794   echo $ECHO_N "(cached) $ECHO_C" >&6
30795 else
30796   case $GETTEXT in
30797   [\\/]* | ?:[\\/]*)
30798   ac_cv_path_GETTEXT="$GETTEXT" # Let the user override the test with a path.
30799   ;;
30800   *)
30801   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30802 for as_dir in $LOCSYSPATH
30803 do
30804   IFS=$as_save_IFS
30805   test -z "$as_dir" && as_dir=.
30806   for ac_exec_ext in '' $ac_executable_extensions; do
30807   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30808     ac_cv_path_GETTEXT="$as_dir/$ac_word$ac_exec_ext"
30809     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30810     break 2
30811   fi
30812 done
30813 done
30814 IFS=$as_save_IFS
30815
30816   ;;
30817 esac
30818 fi
30819 GETTEXT=$ac_cv_path_GETTEXT
30820 if test -n "$GETTEXT"; then
30821   { echo "$as_me:$LINENO: result: $GETTEXT" >&5
30822 echo "${ECHO_T}$GETTEXT" >&6; }
30823 else
30824   { echo "$as_me:$LINENO: result: no" >&5
30825 echo "${ECHO_T}no" >&6; }
30826 fi
30827
30828
30829
30830 for ac_prog in gawk mawk nawk awk
30831 do
30832   # Extract the first word of "$ac_prog", so it can be a program name with args.
30833 set dummy $ac_prog; ac_word=$2
30834 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30835 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30836 if test "${ac_cv_prog_AWK+set}" = set; then
30837   echo $ECHO_N "(cached) $ECHO_C" >&6
30838 else
30839   if test -n "$AWK"; then
30840   ac_cv_prog_AWK="$AWK" # Let the user override the test.
30841 else
30842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30843 for as_dir in $PATH
30844 do
30845   IFS=$as_save_IFS
30846   test -z "$as_dir" && as_dir=.
30847   for ac_exec_ext in '' $ac_executable_extensions; do
30848   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30849     ac_cv_prog_AWK="$ac_prog"
30850     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30851     break 2
30852   fi
30853 done
30854 done
30855 IFS=$as_save_IFS
30856
30857 fi
30858 fi
30859 AWK=$ac_cv_prog_AWK
30860 if test -n "$AWK"; then
30861   { echo "$as_me:$LINENO: result: $AWK" >&5
30862 echo "${ECHO_T}$AWK" >&6; }
30863 else
30864   { echo "$as_me:$LINENO: result: no" >&5
30865 echo "${ECHO_T}no" >&6; }
30866 fi
30867
30868
30869   test -n "$AWK" && break
30870 done
30871
30872 for ac_prog in 'bison -y' byacc
30873 do
30874   # Extract the first word of "$ac_prog", so it can be a program name with args.
30875 set dummy $ac_prog; ac_word=$2
30876 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30877 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30878 if test "${ac_cv_prog_YACC+set}" = set; then
30879   echo $ECHO_N "(cached) $ECHO_C" >&6
30880 else
30881   if test -n "$YACC"; then
30882   ac_cv_prog_YACC="$YACC" # Let the user override the test.
30883 else
30884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30885 for as_dir in $PATH
30886 do
30887   IFS=$as_save_IFS
30888   test -z "$as_dir" && as_dir=.
30889   for ac_exec_ext in '' $ac_executable_extensions; do
30890   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30891     ac_cv_prog_YACC="$ac_prog"
30892     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30893     break 2
30894   fi
30895 done
30896 done
30897 IFS=$as_save_IFS
30898
30899 fi
30900 fi
30901 YACC=$ac_cv_prog_YACC
30902 if test -n "$YACC"; then
30903   { echo "$as_me:$LINENO: result: $YACC" >&5
30904 echo "${ECHO_T}$YACC" >&6; }
30905 else
30906   { echo "$as_me:$LINENO: result: no" >&5
30907 echo "${ECHO_T}no" >&6; }
30908 fi
30909
30910
30911   test -n "$YACC" && break
30912 done
30913 test -n "$YACC" || YACC="yacc"
30914
30915 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
30916 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
30917 if test -z "$MKDIR_P"; then
30918   if test "${ac_cv_path_mkdir+set}" = set; then
30919   echo $ECHO_N "(cached) $ECHO_C" >&6
30920 else
30921   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30922 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
30923 do
30924   IFS=$as_save_IFS
30925   test -z "$as_dir" && as_dir=.
30926   for ac_prog in mkdir gmkdir; do
30927          for ac_exec_ext in '' $ac_executable_extensions; do
30928            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
30929            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
30930              'mkdir (GNU coreutils) '* | \
30931              'mkdir (coreutils) '* | \
30932              'mkdir (fileutils) '4.1*)
30933                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
30934                break 3;;
30935            esac
30936          done
30937        done
30938 done
30939 IFS=$as_save_IFS
30940
30941 fi
30942
30943   if test "${ac_cv_path_mkdir+set}" = set; then
30944     MKDIR_P="$ac_cv_path_mkdir -p"
30945   else
30946     # As a last resort, use the slow shell script.  Don't cache a
30947     # value for MKDIR_P within a source directory, because that will
30948     # break other packages using the cache if that directory is
30949     # removed, or if the value is a relative name.
30950     test -d ./--version && rmdir ./--version
30951     MKDIR_P="$ac_install_sh -d"
30952   fi
30953 fi
30954 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
30955 echo "${ECHO_T}$MKDIR_P" >&6; }
30956
30957
30958
30959     # Extract the first word of "dd", so it can be a program name with args.
30960 set dummy dd; ac_word=$2
30961 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30962 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30963 if test "${ac_cv_path_DD+set}" = set; then
30964   echo $ECHO_N "(cached) $ECHO_C" >&6
30965 else
30966   case $DD in
30967   [\\/]* | ?:[\\/]*)
30968   ac_cv_path_DD="$DD" # Let the user override the test with a path.
30969   ;;
30970   *)
30971   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30972 for as_dir in $LOCSYSPATH
30973 do
30974   IFS=$as_save_IFS
30975   test -z "$as_dir" && as_dir=.
30976   for ac_exec_ext in '' $ac_executable_extensions; do
30977   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30978     ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
30979     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30980     break 2
30981   fi
30982 done
30983 done
30984 IFS=$as_save_IFS
30985
30986   ;;
30987 esac
30988 fi
30989 DD=$ac_cv_path_DD
30990 if test -n "$DD"; then
30991   { echo "$as_me:$LINENO: result: $DD" >&5
30992 echo "${ECHO_T}$DD" >&6; }
30993 else
30994   { echo "$as_me:$LINENO: result: no" >&5
30995 echo "${ECHO_T}no" >&6; }
30996 fi
30997
30998
30999
31000
31001
31002     # Extract the first word of "bash", so it can be a program name with args.
31003 set dummy bash; ac_word=$2
31004 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31005 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31006 if test "${ac_cv_path_BASH+set}" = set; then
31007   echo $ECHO_N "(cached) $ECHO_C" >&6
31008 else
31009   case $BASH in
31010   [\\/]* | ?:[\\/]*)
31011   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
31012   ;;
31013   *)
31014   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31015 for as_dir in $SYSPATH
31016 do
31017   IFS=$as_save_IFS
31018   test -z "$as_dir" && as_dir=.
31019   for ac_exec_ext in '' $ac_executable_extensions; do
31020   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31021     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
31022     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31023     break 2
31024   fi
31025 done
31026 done
31027 IFS=$as_save_IFS
31028
31029   ;;
31030 esac
31031 fi
31032 BASH=$ac_cv_path_BASH
31033 if test -n "$BASH"; then
31034   { echo "$as_me:$LINENO: result: $BASH" >&5
31035 echo "${ECHO_T}$BASH" >&6; }
31036 else
31037   { echo "$as_me:$LINENO: result: no" >&5
31038 echo "${ECHO_T}no" >&6; }
31039 fi
31040
31041
31042
31043
31044
31045
31046
31047     # Extract the first word of "sort", so it can be a program name with args.
31048 set dummy sort; ac_word=$2
31049 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31051 if test "${ac_cv_path_SORT+set}" = set; then
31052   echo $ECHO_N "(cached) $ECHO_C" >&6
31053 else
31054   case $SORT in
31055   [\\/]* | ?:[\\/]*)
31056   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
31057   ;;
31058   *)
31059   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31060 for as_dir in $LOCSYSPATH
31061 do
31062   IFS=$as_save_IFS
31063   test -z "$as_dir" && as_dir=.
31064   for ac_exec_ext in '' $ac_executable_extensions; do
31065   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31066     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
31067     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31068     break 2
31069   fi
31070 done
31071 done
31072 IFS=$as_save_IFS
31073
31074   test -z "$ac_cv_path_SORT" && ac_cv_path_SORT="NONE"
31075   ;;
31076 esac
31077 fi
31078 SORT=$ac_cv_path_SORT
31079 if test -n "$SORT"; then
31080   { echo "$as_me:$LINENO: result: $SORT" >&5
31081 echo "${ECHO_T}$SORT" >&6; }
31082 else
31083   { echo "$as_me:$LINENO: result: no" >&5
31084 echo "${ECHO_T}no" >&6; }
31085 fi
31086
31087
31088
31089     # sort is only needed in the server build
31090     if test x"$SORT" = x"NONE" && $WANT_SERVER; then
31091         { { echo "$as_me:$LINENO: error: Set SORT to the path of the sort program." >&5
31092 echo "$as_me: error: Set SORT to the path of the sort program." >&2;}
31093    { (exit 1); exit 1; }; }
31094     fi
31095
31096
31097 cat >>confdefs.h <<_ACEOF
31098 #define SORT_PATH "$SORT"
31099 _ACEOF
31100
31101
31102
31103
31104     for ac_prog in Mail mailx mail
31105 do
31106   # Extract the first word of "$ac_prog", so it can be a program name with args.
31107 set dummy $ac_prog; ac_word=$2
31108 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31109 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31110 if test "${ac_cv_path_MAILER+set}" = set; then
31111   echo $ECHO_N "(cached) $ECHO_C" >&6
31112 else
31113   case $MAILER in
31114   [\\/]* | ?:[\\/]*)
31115   ac_cv_path_MAILER="$MAILER" # Let the user override the test with a path.
31116   ;;
31117   *)
31118   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31119 for as_dir in $PATH
31120 do
31121   IFS=$as_save_IFS
31122   test -z "$as_dir" && as_dir=.
31123   for ac_exec_ext in '' $ac_executable_extensions; do
31124   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31125     ac_cv_path_MAILER="$as_dir/$ac_word$ac_exec_ext"
31126     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31127     break 2
31128   fi
31129 done
31130 done
31131 IFS=$as_save_IFS
31132
31133   ;;
31134 esac
31135 fi
31136 MAILER=$ac_cv_path_MAILER
31137 if test -n "$MAILER"; then
31138   { echo "$as_me:$LINENO: result: $MAILER" >&5
31139 echo "${ECHO_T}$MAILER" >&6; }
31140 else
31141   { echo "$as_me:$LINENO: result: no" >&5
31142 echo "${ECHO_T}no" >&6; }
31143 fi
31144
31145
31146   test -n "$MAILER" && break
31147 done
31148 test -n "$MAILER" || MAILER="NONE"
31149
31150     if test x"$MAILER" = x"NONE"; then
31151
31152     { echo "$as_me:$LINENO: WARNING: WARNING: Amanda cannot send mail reports without a mailer." >&5
31153 echo "$as_me: WARNING: WARNING: Amanda cannot send mail reports without a mailer." >&2;}
31154
31155
31156     cat <<AAW_EOF >>config.warnings
31157 WARNING: Amanda cannot send mail reports without a mailer.
31158 AAW_EOF
31159
31160
31161     else
31162
31163 cat >>confdefs.h <<_ACEOF
31164 #define MAILER "$MAILER"
31165 _ACEOF
31166
31167     fi
31168
31169
31170
31171     # Extract the first word of "mt", so it can be a program name with args.
31172 set dummy mt; ac_word=$2
31173 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31174 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31175 if test "${ac_cv_path_MT+set}" = set; then
31176   echo $ECHO_N "(cached) $ECHO_C" >&6
31177 else
31178   case $MT in
31179   [\\/]* | ?:[\\/]*)
31180   ac_cv_path_MT="$MT" # Let the user override the test with a path.
31181   ;;
31182   *)
31183   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31184 for as_dir in $LOCSYSPATH
31185 do
31186   IFS=$as_save_IFS
31187   test -z "$as_dir" && as_dir=.
31188   for ac_exec_ext in '' $ac_executable_extensions; do
31189   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31190     ac_cv_path_MT="$as_dir/$ac_word$ac_exec_ext"
31191     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31192     break 2
31193   fi
31194 done
31195 done
31196 IFS=$as_save_IFS
31197
31198   test -z "$ac_cv_path_MT" && ac_cv_path_MT="mt"
31199   ;;
31200 esac
31201 fi
31202 MT=$ac_cv_path_MT
31203 if test -n "$MT"; then
31204   { echo "$as_me:$LINENO: result: $MT" >&5
31205 echo "${ECHO_T}$MT" >&6; }
31206 else
31207   { echo "$as_me:$LINENO: result: no" >&5
31208 echo "${ECHO_T}no" >&6; }
31209 fi
31210
31211
31212
31213     case "$target" in
31214         *-hp-*) MT_FILE_FLAG="-t" ;;
31215         *) MT_FILE_FLAG="-f" ;;
31216     esac
31217
31218
31219
31220 cat >>confdefs.h <<_ACEOF
31221 #define MT_FILE_FLAG "$MT_FILE_FLAG"
31222 _ACEOF
31223
31224
31225
31226
31227
31228     for ac_prog in lpr lp
31229 do
31230   # Extract the first word of "$ac_prog", so it can be a program name with args.
31231 set dummy $ac_prog; ac_word=$2
31232 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31234 if test "${ac_cv_path_PRINT+set}" = set; then
31235   echo $ECHO_N "(cached) $ECHO_C" >&6
31236 else
31237   case $PRINT in
31238   [\\/]* | ?:[\\/]*)
31239   ac_cv_path_PRINT="$PRINT" # Let the user override the test with a path.
31240   ;;
31241   *)
31242   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31243 for as_dir in $PATH
31244 do
31245   IFS=$as_save_IFS
31246   test -z "$as_dir" && as_dir=.
31247   for ac_exec_ext in '' $ac_executable_extensions; do
31248   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31249     ac_cv_path_PRINT="$as_dir/$ac_word$ac_exec_ext"
31250     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31251     break 2
31252   fi
31253 done
31254 done
31255 IFS=$as_save_IFS
31256
31257   ;;
31258 esac
31259 fi
31260 PRINT=$ac_cv_path_PRINT
31261 if test -n "$PRINT"; then
31262   { echo "$as_me:$LINENO: result: $PRINT" >&5
31263 echo "${ECHO_T}$PRINT" >&6; }
31264 else
31265   { echo "$as_me:$LINENO: result: no" >&5
31266 echo "${ECHO_T}no" >&6; }
31267 fi
31268
31269
31270   test -n "$PRINT" && break
31271 done
31272
31273     if test ! -z "$PRINT"; then
31274
31275 cat >>confdefs.h <<_ACEOF
31276 #define LPRCMD "$PRINT"
31277 _ACEOF
31278
31279
31280         { echo "$as_me:$LINENO: checking which flag to use to select a printer" >&5
31281 echo $ECHO_N "checking which flag to use to select a printer... $ECHO_C" >&6; }
31282 if test "${amanda_cv_printer_flag+set}" = set; then
31283   echo $ECHO_N "(cached) $ECHO_C" >&6
31284 else
31285
31286             amanda_cv_printer_flag=$PRINTER_FLAG
31287             case "$PRINT" in
31288                 lpr|*/lpr) amanda_cv_printer_flag="-P";;
31289                 lp|*/lp) amanda_cv_printer_flag="-d";;
31290             esac
31291
31292 fi
31293 { echo "$as_me:$LINENO: result: $amanda_cv_printer_flag" >&5
31294 echo "${ECHO_T}$amanda_cv_printer_flag" >&6; }
31295         if test ! -z "$amanda_cv_printer_flag"; then
31296
31297 cat >>confdefs.h <<_ACEOF
31298 #define LPRFLAG "$amanda_cv_printer_flag"
31299 _ACEOF
31300
31301         else
31302
31303     { echo "$as_me:$LINENO: WARNING: WARNING: amanda will always print to the default printer" >&5
31304 echo "$as_me: WARNING: WARNING: amanda will always print to the default printer" >&2;}
31305
31306
31307     cat <<AAW_EOF >>config.warnings
31308 WARNING: amanda will always print to the default printer
31309 AAW_EOF
31310
31311
31312         fi
31313     fi
31314
31315
31316
31317     # Extract the first word of "pcat", so it can be a program name with args.
31318 set dummy pcat; ac_word=$2
31319 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31320 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31321 if test "${ac_cv_path_PCAT+set}" = set; then
31322   echo $ECHO_N "(cached) $ECHO_C" >&6
31323 else
31324   case $PCAT in
31325   [\\/]* | ?:[\\/]*)
31326   ac_cv_path_PCAT="$PCAT" # Let the user override the test with a path.
31327   ;;
31328   *)
31329   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31330 for as_dir in $LOCSYSPATH
31331 do
31332   IFS=$as_save_IFS
31333   test -z "$as_dir" && as_dir=.
31334   for ac_exec_ext in '' $ac_executable_extensions; do
31335   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31336     ac_cv_path_PCAT="$as_dir/$ac_word$ac_exec_ext"
31337     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31338     break 2
31339   fi
31340 done
31341 done
31342 IFS=$as_save_IFS
31343
31344   ;;
31345 esac
31346 fi
31347 PCAT=$ac_cv_path_PCAT
31348 if test -n "$PCAT"; then
31349   { echo "$as_me:$LINENO: result: $PCAT" >&5
31350 echo "${ECHO_T}$PCAT" >&6; }
31351 else
31352   { echo "$as_me:$LINENO: result: no" >&5
31353 echo "${ECHO_T}no" >&6; }
31354 fi
31355
31356
31357
31358
31359
31360     for ac_prog in perl5 perl
31361 do
31362   # Extract the first word of "$ac_prog", so it can be a program name with args.
31363 set dummy $ac_prog; ac_word=$2
31364 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31365 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31366 if test "${ac_cv_path_PERL+set}" = set; then
31367   echo $ECHO_N "(cached) $ECHO_C" >&6
31368 else
31369   case $PERL in
31370   [\\/]* | ?:[\\/]*)
31371   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
31372   ;;
31373   *)
31374   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31375 for as_dir in $LOCSYSPATH
31376 do
31377   IFS=$as_save_IFS
31378   test -z "$as_dir" && as_dir=.
31379   for ac_exec_ext in '' $ac_executable_extensions; do
31380   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31381     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
31382     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31383     break 2
31384   fi
31385 done
31386 done
31387 IFS=$as_save_IFS
31388
31389   ;;
31390 esac
31391 fi
31392 PERL=$ac_cv_path_PERL
31393 if test -n "$PERL"; then
31394   { echo "$as_me:$LINENO: result: $PERL" >&5
31395 echo "${ECHO_T}$PERL" >&6; }
31396 else
31397   { echo "$as_me:$LINENO: result: no" >&5
31398 echo "${ECHO_T}no" >&6; }
31399 fi
31400
31401
31402   test -n "$PERL" && break
31403 done
31404
31405
31406     # Make sure we have perl
31407 if test -z "$PERL"; then
31408 # Extract the first word of "perl", so it can be a program name with args.
31409 set dummy perl; ac_word=$2
31410 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31411 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31412 if test "${ac_cv_prog_PERL+set}" = set; then
31413   echo $ECHO_N "(cached) $ECHO_C" >&6
31414 else
31415   if test -n "$PERL"; then
31416   ac_cv_prog_PERL="$PERL" # Let the user override the test.
31417 else
31418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31419 for as_dir in $PATH
31420 do
31421   IFS=$as_save_IFS
31422   test -z "$as_dir" && as_dir=.
31423   for ac_exec_ext in '' $ac_executable_extensions; do
31424   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31425     ac_cv_prog_PERL="perl"
31426     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31427     break 2
31428   fi
31429 done
31430 done
31431 IFS=$as_save_IFS
31432
31433 fi
31434 fi
31435 PERL=$ac_cv_prog_PERL
31436 if test -n "$PERL"; then
31437   { echo "$as_me:$LINENO: result: $PERL" >&5
31438 echo "${ECHO_T}$PERL" >&6; }
31439 else
31440   { echo "$as_me:$LINENO: result: no" >&5
31441 echo "${ECHO_T}no" >&6; }
31442 fi
31443
31444
31445 fi
31446
31447 # Check if version of Perl is sufficient
31448 ac_perl_version="5.6.0"
31449
31450 if test "x$PERL" != "x"; then
31451   { echo "$as_me:$LINENO: checking for perl version greater than or equal to $ac_perl_version" >&5
31452 echo $ECHO_N "checking for perl version greater than or equal to $ac_perl_version... $ECHO_C" >&6; }
31453   # NB: It would be nice to log the error if there is one, but we cannot rely
31454   # on autoconf internals
31455   $PERL -e "use $ac_perl_version;" > /dev/null 2>&1
31456   if test $? -ne 0; then
31457     { echo "$as_me:$LINENO: result: no" >&5
31458 echo "${ECHO_T}no" >&6; };
31459
31460         { { echo "$as_me:$LINENO: error: Amanda requires at least perl 5.6.0" >&5
31461 echo "$as_me: error: Amanda requires at least perl 5.6.0" >&2;}
31462    { (exit 1); exit 1; }; }
31463
31464   else
31465     { echo "$as_me:$LINENO: result: ok" >&5
31466 echo "${ECHO_T}ok" >&6; };
31467
31468   fi
31469 else
31470   { echo "$as_me:$LINENO: WARNING: could not find perl" >&5
31471 echo "$as_me: WARNING: could not find perl" >&2;}
31472 fi
31473
31474
31475
31476
31477     for ac_prog in swig
31478 do
31479   # Extract the first word of "$ac_prog", so it can be a program name with args.
31480 set dummy $ac_prog; ac_word=$2
31481 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31482 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31483 if test "${ac_cv_path_SWIG+set}" = set; then
31484   echo $ECHO_N "(cached) $ECHO_C" >&6
31485 else
31486   case $SWIG in
31487   [\\/]* | ?:[\\/]*)
31488   ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
31489   ;;
31490   *)
31491   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31492 for as_dir in $LOCSYSPATH
31493 do
31494   IFS=$as_save_IFS
31495   test -z "$as_dir" && as_dir=.
31496   for ac_exec_ext in '' $ac_executable_extensions; do
31497   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31498     ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
31499     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31500     break 2
31501   fi
31502 done
31503 done
31504 IFS=$as_save_IFS
31505
31506   ;;
31507 esac
31508 fi
31509 SWIG=$ac_cv_path_SWIG
31510 if test -n "$SWIG"; then
31511   { echo "$as_me:$LINENO: result: $SWIG" >&5
31512 echo "${ECHO_T}$SWIG" >&6; }
31513 else
31514   { echo "$as_me:$LINENO: result: no" >&5
31515 echo "${ECHO_T}no" >&6; }
31516 fi
31517
31518
31519   test -n "$SWIG" && break
31520 done
31521
31522
31523
31524         # Extract the first word of "swig", so it can be a program name with args.
31525 set dummy swig; ac_word=$2
31526 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31527 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31528 if test "${ac_cv_path_SWIG+set}" = set; then
31529   echo $ECHO_N "(cached) $ECHO_C" >&6
31530 else
31531   case $SWIG in
31532   [\\/]* | ?:[\\/]*)
31533   ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
31534   ;;
31535   *)
31536   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31537 for as_dir in $PATH
31538 do
31539   IFS=$as_save_IFS
31540   test -z "$as_dir" && as_dir=.
31541   for ac_exec_ext in '' $ac_executable_extensions; do
31542   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31543     ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
31544     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31545     break 2
31546   fi
31547 done
31548 done
31549 IFS=$as_save_IFS
31550
31551   ;;
31552 esac
31553 fi
31554 SWIG=$ac_cv_path_SWIG
31555 if test -n "$SWIG"; then
31556   { echo "$as_me:$LINENO: result: $SWIG" >&5
31557 echo "${ECHO_T}$SWIG" >&6; }
31558 else
31559   { echo "$as_me:$LINENO: result: no" >&5
31560 echo "${ECHO_T}no" >&6; }
31561 fi
31562
31563
31564         if test -z "$SWIG" ; then
31565                 SWIG='echo "Error: SWIG is not installed. You should look at http://www.swig.org" ; false'
31566         elif test -n "1.3.28" ; then
31567                 { echo "$as_me:$LINENO: checking for SWIG version" >&5
31568 echo $ECHO_N "checking for SWIG version... $ECHO_C" >&6; }
31569                 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'`
31570                 { echo "$as_me:$LINENO: result: $swig_version" >&5
31571 echo "${ECHO_T}$swig_version" >&6; }
31572                 if test -n "$swig_version" ; then
31573                         # Calculate the required version number components
31574                         required=1.3.28
31575                         required_major=`echo $required | sed 's/[^0-9].*//'`
31576                         if test -z "$required_major" ; then
31577                                 required_major=0
31578                         fi
31579                         required=`echo $required | sed 's/[0-9]*[^0-9]//'`
31580                         required_minor=`echo $required | sed 's/[^0-9].*//'`
31581                         if test -z "$required_minor" ; then
31582                                 required_minor=0
31583                         fi
31584                         required=`echo $required | sed 's/[0-9]*[^0-9]//'`
31585                         required_patch=`echo $required | sed 's/[^0-9].*//'`
31586                         if test -z "$required_patch" ; then
31587                                 required_patch=0
31588                         fi
31589                         # Calculate the available version number components
31590                         available=$swig_version
31591                         available_major=`echo $available | sed 's/[^0-9].*//'`
31592                         if test -z "$available_major" ; then
31593                                 available_major=0
31594                         fi
31595                         available=`echo $available | sed 's/[0-9]*[^0-9]//'`
31596                         available_minor=`echo $available | sed 's/[^0-9].*//'`
31597                         if test -z "$available_minor" ; then
31598                                 available_minor=0
31599                         fi
31600                         available=`echo $available | sed 's/[0-9]*[^0-9]//'`
31601                         available_patch=`echo $available | sed 's/[^0-9].*//'`
31602                         if test -z "$available_patch" ; then
31603                                 available_patch=0
31604                         fi
31605                         if test $available_major -ne $required_major \
31606                                 -o $available_minor -ne $required_minor \
31607                                 -o $available_patch -lt $required_patch ; then
31608                                 SWIG='echo "Error: SWIG version >= 1.3.28 is required.  You have '"$swig_version"'.  You should look at http://www.swig.org" ; false'
31609                         else
31610                                 SWIG_LIB=`$SWIG -swiglib`
31611                         fi
31612                 else
31613                         SWIG='echo "Error: Cannot determine SWIG version.  You should look at http://www.swig.org" ; false'
31614                 fi
31615         fi
31616
31617
31618
31619
31620
31621 #
31622 # Compiler / system characteristics
31623 #
31624
31625 #
31626 # compiler
31627 #
31628 if test $ac_cv_c_compiler_gnu = yes; then
31629     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
31630 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
31631 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
31632   echo $ECHO_N "(cached) $ECHO_C" >&6
31633 else
31634     ac_pattern="Autoconf.*'x'"
31635   cat >conftest.$ac_ext <<_ACEOF
31636 /* confdefs.h.  */
31637 _ACEOF
31638 cat confdefs.h >>conftest.$ac_ext
31639 cat >>conftest.$ac_ext <<_ACEOF
31640 /* end confdefs.h.  */
31641 #include <sgtty.h>
31642 Autoconf TIOCGETP
31643 _ACEOF
31644 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31645   $EGREP "$ac_pattern" >/dev/null 2>&1; then
31646   ac_cv_prog_gcc_traditional=yes
31647 else
31648   ac_cv_prog_gcc_traditional=no
31649 fi
31650 rm -f conftest*
31651
31652
31653   if test $ac_cv_prog_gcc_traditional = no; then
31654     cat >conftest.$ac_ext <<_ACEOF
31655 /* confdefs.h.  */
31656 _ACEOF
31657 cat confdefs.h >>conftest.$ac_ext
31658 cat >>conftest.$ac_ext <<_ACEOF
31659 /* end confdefs.h.  */
31660 #include <termio.h>
31661 Autoconf TCGETA
31662 _ACEOF
31663 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31664   $EGREP "$ac_pattern" >/dev/null 2>&1; then
31665   ac_cv_prog_gcc_traditional=yes
31666 fi
31667 rm -f conftest*
31668
31669   fi
31670 fi
31671 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
31672 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
31673   if test $ac_cv_prog_gcc_traditional = yes; then
31674     CC="$CC -traditional"
31675   fi
31676 fi
31677
31678 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
31679 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
31680 if test "${ac_cv_c_const+set}" = set; then
31681   echo $ECHO_N "(cached) $ECHO_C" >&6
31682 else
31683   cat >conftest.$ac_ext <<_ACEOF
31684 /* confdefs.h.  */
31685 _ACEOF
31686 cat confdefs.h >>conftest.$ac_ext
31687 cat >>conftest.$ac_ext <<_ACEOF
31688 /* end confdefs.h.  */
31689
31690 int
31691 main ()
31692 {
31693 /* FIXME: Include the comments suggested by Paul. */
31694 #ifndef __cplusplus
31695   /* Ultrix mips cc rejects this.  */
31696   typedef int charset[2];
31697   const charset cs;
31698   /* SunOS 4.1.1 cc rejects this.  */
31699   char const *const *pcpcc;
31700   char **ppc;
31701   /* NEC SVR4.0.2 mips cc rejects this.  */
31702   struct point {int x, y;};
31703   static struct point const zero = {0,0};
31704   /* AIX XL C 1.02.0.0 rejects this.
31705      It does not let you subtract one const X* pointer from another in
31706      an arm of an if-expression whose if-part is not a constant
31707      expression */
31708   const char *g = "string";
31709   pcpcc = &g + (g ? g-g : 0);
31710   /* HPUX 7.0 cc rejects these. */
31711   ++pcpcc;
31712   ppc = (char**) pcpcc;
31713   pcpcc = (char const *const *) ppc;
31714   { /* SCO 3.2v4 cc rejects this.  */
31715     char *t;
31716     char const *s = 0 ? (char *) 0 : (char const *) 0;
31717
31718     *t++ = 0;
31719     if (s) return 0;
31720   }
31721   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
31722     int x[] = {25, 17};
31723     const int *foo = &x[0];
31724     ++foo;
31725   }
31726   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
31727     typedef const int *iptr;
31728     iptr p = 0;
31729     ++p;
31730   }
31731   { /* AIX XL C 1.02.0.0 rejects this saying
31732        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
31733     struct s { int j; const int *ap[3]; };
31734     struct s *b; b->j = 5;
31735   }
31736   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
31737     const int foo = 10;
31738     if (!foo) return 0;
31739   }
31740   return !cs[0] && !zero.x;
31741 #endif
31742
31743   ;
31744   return 0;
31745 }
31746 _ACEOF
31747 rm -f conftest.$ac_objext
31748 if { (ac_try="$ac_compile"
31749 case "(($ac_try" in
31750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31751   *) ac_try_echo=$ac_try;;
31752 esac
31753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31754   (eval "$ac_compile") 2>conftest.er1
31755   ac_status=$?
31756   grep -v '^ *+' conftest.er1 >conftest.err
31757   rm -f conftest.er1
31758   cat conftest.err >&5
31759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31760   (exit $ac_status); } && {
31761          test -z "$ac_c_werror_flag" ||
31762          test ! -s conftest.err
31763        } && test -s conftest.$ac_objext; then
31764   ac_cv_c_const=yes
31765 else
31766   echo "$as_me: failed program was:" >&5
31767 sed 's/^/| /' conftest.$ac_ext >&5
31768
31769         ac_cv_c_const=no
31770 fi
31771
31772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31773 fi
31774 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
31775 echo "${ECHO_T}$ac_cv_c_const" >&6; }
31776 if test $ac_cv_c_const = no; then
31777
31778 cat >>confdefs.h <<\_ACEOF
31779 #define const
31780 _ACEOF
31781
31782 fi
31783
31784 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
31785 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
31786 if test "${ac_cv_c_bigendian+set}" = set; then
31787   echo $ECHO_N "(cached) $ECHO_C" >&6
31788 else
31789   # See if sys/param.h defines the BYTE_ORDER macro.
31790 cat >conftest.$ac_ext <<_ACEOF
31791 /* confdefs.h.  */
31792 _ACEOF
31793 cat confdefs.h >>conftest.$ac_ext
31794 cat >>conftest.$ac_ext <<_ACEOF
31795 /* end confdefs.h.  */
31796 #include <sys/types.h>
31797 #include <sys/param.h>
31798
31799 int
31800 main ()
31801 {
31802 #if  ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
31803         && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
31804  bogus endian macros
31805 #endif
31806
31807   ;
31808   return 0;
31809 }
31810 _ACEOF
31811 rm -f conftest.$ac_objext
31812 if { (ac_try="$ac_compile"
31813 case "(($ac_try" in
31814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31815   *) ac_try_echo=$ac_try;;
31816 esac
31817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31818   (eval "$ac_compile") 2>conftest.er1
31819   ac_status=$?
31820   grep -v '^ *+' conftest.er1 >conftest.err
31821   rm -f conftest.er1
31822   cat conftest.err >&5
31823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31824   (exit $ac_status); } && {
31825          test -z "$ac_c_werror_flag" ||
31826          test ! -s conftest.err
31827        } && test -s conftest.$ac_objext; then
31828   # It does; now see whether it defined to BIG_ENDIAN or not.
31829 cat >conftest.$ac_ext <<_ACEOF
31830 /* confdefs.h.  */
31831 _ACEOF
31832 cat confdefs.h >>conftest.$ac_ext
31833 cat >>conftest.$ac_ext <<_ACEOF
31834 /* end confdefs.h.  */
31835 #include <sys/types.h>
31836 #include <sys/param.h>
31837
31838 int
31839 main ()
31840 {
31841 #if BYTE_ORDER != BIG_ENDIAN
31842  not big endian
31843 #endif
31844
31845   ;
31846   return 0;
31847 }
31848 _ACEOF
31849 rm -f conftest.$ac_objext
31850 if { (ac_try="$ac_compile"
31851 case "(($ac_try" in
31852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31853   *) ac_try_echo=$ac_try;;
31854 esac
31855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31856   (eval "$ac_compile") 2>conftest.er1
31857   ac_status=$?
31858   grep -v '^ *+' conftest.er1 >conftest.err
31859   rm -f conftest.er1
31860   cat conftest.err >&5
31861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31862   (exit $ac_status); } && {
31863          test -z "$ac_c_werror_flag" ||
31864          test ! -s conftest.err
31865        } && test -s conftest.$ac_objext; then
31866   ac_cv_c_bigendian=yes
31867 else
31868   echo "$as_me: failed program was:" >&5
31869 sed 's/^/| /' conftest.$ac_ext >&5
31870
31871         ac_cv_c_bigendian=no
31872 fi
31873
31874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31875 else
31876   echo "$as_me: failed program was:" >&5
31877 sed 's/^/| /' conftest.$ac_ext >&5
31878
31879         # It does not; compile a test program.
31880 if test "$cross_compiling" = yes; then
31881   # try to guess the endianness by grepping values into an object file
31882   ac_cv_c_bigendian=unknown
31883   cat >conftest.$ac_ext <<_ACEOF
31884 /* confdefs.h.  */
31885 _ACEOF
31886 cat confdefs.h >>conftest.$ac_ext
31887 cat >>conftest.$ac_ext <<_ACEOF
31888 /* end confdefs.h.  */
31889 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
31890 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
31891 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
31892 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
31893 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
31894 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
31895 int
31896 main ()
31897 {
31898  _ascii (); _ebcdic ();
31899   ;
31900   return 0;
31901 }
31902 _ACEOF
31903 rm -f conftest.$ac_objext
31904 if { (ac_try="$ac_compile"
31905 case "(($ac_try" in
31906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31907   *) ac_try_echo=$ac_try;;
31908 esac
31909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31910   (eval "$ac_compile") 2>conftest.er1
31911   ac_status=$?
31912   grep -v '^ *+' conftest.er1 >conftest.err
31913   rm -f conftest.er1
31914   cat conftest.err >&5
31915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31916   (exit $ac_status); } && {
31917          test -z "$ac_c_werror_flag" ||
31918          test ! -s conftest.err
31919        } && test -s conftest.$ac_objext; then
31920   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
31921   ac_cv_c_bigendian=yes
31922 fi
31923 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
31924   if test "$ac_cv_c_bigendian" = unknown; then
31925     ac_cv_c_bigendian=no
31926   else
31927     # finding both strings is unlikely to happen, but who knows?
31928     ac_cv_c_bigendian=unknown
31929   fi
31930 fi
31931 else
31932   echo "$as_me: failed program was:" >&5
31933 sed 's/^/| /' conftest.$ac_ext >&5
31934
31935
31936 fi
31937
31938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31939 else
31940   cat >conftest.$ac_ext <<_ACEOF
31941 /* confdefs.h.  */
31942 _ACEOF
31943 cat confdefs.h >>conftest.$ac_ext
31944 cat >>conftest.$ac_ext <<_ACEOF
31945 /* end confdefs.h.  */
31946 $ac_includes_default
31947 int
31948 main ()
31949 {
31950
31951   /* Are we little or big endian?  From Harbison&Steele.  */
31952   union
31953   {
31954     long int l;
31955     char c[sizeof (long int)];
31956   } u;
31957   u.l = 1;
31958   return u.c[sizeof (long int) - 1] == 1;
31959
31960   ;
31961   return 0;
31962 }
31963 _ACEOF
31964 rm -f conftest$ac_exeext
31965 if { (ac_try="$ac_link"
31966 case "(($ac_try" in
31967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31968   *) ac_try_echo=$ac_try;;
31969 esac
31970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31971   (eval "$ac_link") 2>&5
31972   ac_status=$?
31973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31974   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31975   { (case "(($ac_try" in
31976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31977   *) ac_try_echo=$ac_try;;
31978 esac
31979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31980   (eval "$ac_try") 2>&5
31981   ac_status=$?
31982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31983   (exit $ac_status); }; }; then
31984   ac_cv_c_bigendian=no
31985 else
31986   echo "$as_me: program exited with status $ac_status" >&5
31987 echo "$as_me: failed program was:" >&5
31988 sed 's/^/| /' conftest.$ac_ext >&5
31989
31990 ( exit $ac_status )
31991 ac_cv_c_bigendian=yes
31992 fi
31993 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31994 fi
31995
31996
31997 fi
31998
31999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32000 fi
32001 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
32002 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
32003 case $ac_cv_c_bigendian in
32004   yes)
32005
32006 cat >>confdefs.h <<\_ACEOF
32007 #define WORDS_BIGENDIAN 1
32008 _ACEOF
32009  ;;
32010   no)
32011      ;;
32012   *)
32013     { { echo "$as_me:$LINENO: error: unknown endianness
32014 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
32015 echo "$as_me: error: unknown endianness
32016 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
32017    { (exit 1); exit 1; }; } ;;
32018 esac
32019
32020
32021 # GCC_COMPILER is needed in the gnulib Makefile to silence errors
32022  if test "x$GCC" = "xyes"; then
32023   GCC_COMPILER_TRUE=
32024   GCC_COMPILER_FALSE='#'
32025 else
32026   GCC_COMPILER_TRUE='#'
32027   GCC_COMPILER_FALSE=
32028 fi
32029
32030
32031 #
32032 # Warnings
32033 #
32034
32035
32036
32037
32038     { echo "$as_me:$LINENO: checking for gcc flag -Wparentheses" >&5
32039 echo $ECHO_N "checking for gcc flag -Wparentheses... $ECHO_C" >&6; }
32040     if test "x$GCC" = "xyes"; then
32041                 $CC -v --help 2>&1 | $EGREP -- '[^[:alnum:]]-Wparentheses[^[:alnum:]-]' 2>&1 > /dev/null
32042                 if test $? -eq 0; then
32043             found_warning=yes
32044             { echo "$as_me:$LINENO: result: yes" >&5
32045 echo "${ECHO_T}yes" >&6; }
32046         else
32047             found_warning=no
32048             { echo "$as_me:$LINENO: result: no" >&5
32049 echo "${ECHO_T}no" >&6; }
32050         fi
32051     else
32052         found_warning=no
32053         { echo "$as_me:$LINENO: result: no (not using gcc)" >&5
32054 echo "${ECHO_T}no (not using gcc)" >&6; }
32055     fi
32056
32057     if test x"$found_warning" = x"yes"; then
32058         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wparentheses"
32059
32060
32061     else
32062         :
32063     fi
32064
32065
32066
32067
32068
32069
32070     { echo "$as_me:$LINENO: checking for gcc flag -Wdeclaration-after-statement" >&5
32071 echo $ECHO_N "checking for gcc flag -Wdeclaration-after-statement... $ECHO_C" >&6; }
32072     if test "x$GCC" = "xyes"; then
32073                 $CC -v --help 2>&1 | $EGREP -- '[^[:alnum:]]-Wdeclaration-after-statement[^[:alnum:]-]' 2>&1 > /dev/null
32074                 if test $? -eq 0; then
32075             found_warning=yes
32076             { echo "$as_me:$LINENO: result: yes" >&5
32077 echo "${ECHO_T}yes" >&6; }
32078         else
32079             found_warning=no
32080             { echo "$as_me:$LINENO: result: no" >&5
32081 echo "${ECHO_T}no" >&6; }
32082         fi
32083     else
32084         found_warning=no
32085         { echo "$as_me:$LINENO: result: no (not using gcc)" >&5
32086 echo "${ECHO_T}no (not using gcc)" >&6; }
32087     fi
32088
32089     if test x"$found_warning" = x"yes"; then
32090         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wdeclaration-after-statement"
32091
32092
32093     else
32094         :
32095     fi
32096
32097
32098
32099
32100
32101
32102     { echo "$as_me:$LINENO: checking for gcc flag -Wmissing-prototypes" >&5
32103 echo $ECHO_N "checking for gcc flag -Wmissing-prototypes... $ECHO_C" >&6; }
32104     if test "x$GCC" = "xyes"; then
32105                 $CC -v --help 2>&1 | $EGREP -- '[^[:alnum:]]-Wmissing-prototypes[^[:alnum:]-]' 2>&1 > /dev/null
32106                 if test $? -eq 0; then
32107             found_warning=yes
32108             { echo "$as_me:$LINENO: result: yes" >&5
32109 echo "${ECHO_T}yes" >&6; }
32110         else
32111             found_warning=no
32112             { echo "$as_me:$LINENO: result: no" >&5
32113 echo "${ECHO_T}no" >&6; }
32114         fi
32115     else
32116         found_warning=no
32117         { echo "$as_me:$LINENO: result: no (not using gcc)" >&5
32118 echo "${ECHO_T}no (not using gcc)" >&6; }
32119     fi
32120
32121     if test x"$found_warning" = x"yes"; then
32122         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wmissing-prototypes"
32123
32124
32125     else
32126         :
32127     fi
32128
32129
32130
32131
32132
32133
32134     { echo "$as_me:$LINENO: checking for gcc flag -Wstrict-prototypes" >&5
32135 echo $ECHO_N "checking for gcc flag -Wstrict-prototypes... $ECHO_C" >&6; }
32136     if test "x$GCC" = "xyes"; then
32137                 $CC -v --help 2>&1 | $EGREP -- '[^[:alnum:]]-Wstrict-prototypes[^[:alnum:]-]' 2>&1 > /dev/null
32138                 if test $? -eq 0; then
32139             found_warning=yes
32140             { echo "$as_me:$LINENO: result: yes" >&5
32141 echo "${ECHO_T}yes" >&6; }
32142         else
32143             found_warning=no
32144             { echo "$as_me:$LINENO: result: no" >&5
32145 echo "${ECHO_T}no" >&6; }
32146         fi
32147     else
32148         found_warning=no
32149         { echo "$as_me:$LINENO: result: no (not using gcc)" >&5
32150 echo "${ECHO_T}no (not using gcc)" >&6; }
32151     fi
32152
32153     if test x"$found_warning" = x"yes"; then
32154         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wstrict-prototypes"
32155
32156
32157     else
32158         :
32159     fi
32160
32161
32162
32163
32164
32165
32166     { echo "$as_me:$LINENO: checking for gcc flag -Wmissing-declarations" >&5
32167 echo $ECHO_N "checking for gcc flag -Wmissing-declarations... $ECHO_C" >&6; }
32168     if test "x$GCC" = "xyes"; then
32169                 $CC -v --help 2>&1 | $EGREP -- '[^[:alnum:]]-Wmissing-declarations[^[:alnum:]-]' 2>&1 > /dev/null
32170                 if test $? -eq 0; then
32171             found_warning=yes
32172             { echo "$as_me:$LINENO: result: yes" >&5
32173 echo "${ECHO_T}yes" >&6; }
32174         else
32175             found_warning=no
32176             { echo "$as_me:$LINENO: result: no" >&5
32177 echo "${ECHO_T}no" >&6; }
32178         fi
32179     else
32180         found_warning=no
32181         { echo "$as_me:$LINENO: result: no (not using gcc)" >&5
32182 echo "${ECHO_T}no (not using gcc)" >&6; }
32183     fi
32184
32185     if test x"$found_warning" = x"yes"; then
32186         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wmissing-declarations"
32187
32188
32189     else
32190         :
32191     fi
32192
32193
32194
32195
32196
32197
32198     { echo "$as_me:$LINENO: checking for gcc flag -Wformat" >&5
32199 echo $ECHO_N "checking for gcc flag -Wformat... $ECHO_C" >&6; }
32200     if test "x$GCC" = "xyes"; then
32201                 $CC -v --help 2>&1 | $EGREP -- '[^[:alnum:]]-Wformat[^[:alnum:]-]' 2>&1 > /dev/null
32202                 if test $? -eq 0; then
32203             found_warning=yes
32204             { echo "$as_me:$LINENO: result: yes" >&5
32205 echo "${ECHO_T}yes" >&6; }
32206         else
32207             found_warning=no
32208             { echo "$as_me:$LINENO: result: no" >&5
32209 echo "${ECHO_T}no" >&6; }
32210         fi
32211     else
32212         found_warning=no
32213         { echo "$as_me:$LINENO: result: no (not using gcc)" >&5
32214 echo "${ECHO_T}no (not using gcc)" >&6; }
32215     fi
32216
32217     if test x"$found_warning" = x"yes"; then
32218         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wformat"
32219
32220
32221     else
32222         :
32223     fi
32224
32225
32226
32227
32228
32229
32230     { echo "$as_me:$LINENO: checking for gcc flag -Wsign-compare" >&5
32231 echo $ECHO_N "checking for gcc flag -Wsign-compare... $ECHO_C" >&6; }
32232     if test "x$GCC" = "xyes"; then
32233                 $CC -v --help 2>&1 | $EGREP -- '[^[:alnum:]]-Wsign-compare[^[:alnum:]-]' 2>&1 > /dev/null
32234                 if test $? -eq 0; then
32235             found_warning=yes
32236             { echo "$as_me:$LINENO: result: yes" >&5
32237 echo "${ECHO_T}yes" >&6; }
32238         else
32239             found_warning=no
32240             { echo "$as_me:$LINENO: result: no" >&5
32241 echo "${ECHO_T}no" >&6; }
32242         fi
32243     else
32244         found_warning=no
32245         { echo "$as_me:$LINENO: result: no (not using gcc)" >&5
32246 echo "${ECHO_T}no (not using gcc)" >&6; }
32247     fi
32248
32249     if test x"$found_warning" = x"yes"; then
32250         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wsign-compare"
32251
32252
32253     else
32254         :
32255     fi
32256
32257
32258
32259
32260
32261
32262     { echo "$as_me:$LINENO: checking for gcc flag -Wfloat-equal" >&5
32263 echo $ECHO_N "checking for gcc flag -Wfloat-equal... $ECHO_C" >&6; }
32264     if test "x$GCC" = "xyes"; then
32265                 $CC -v --help 2>&1 | $EGREP -- '[^[:alnum:]]-Wfloat-equal[^[:alnum:]-]' 2>&1 > /dev/null
32266                 if test $? -eq 0; then
32267             found_warning=yes
32268             { echo "$as_me:$LINENO: result: yes" >&5
32269 echo "${ECHO_T}yes" >&6; }
32270         else
32271             found_warning=no
32272             { echo "$as_me:$LINENO: result: no" >&5
32273 echo "${ECHO_T}no" >&6; }
32274         fi
32275     else
32276         found_warning=no
32277         { echo "$as_me:$LINENO: result: no (not using gcc)" >&5
32278 echo "${ECHO_T}no (not using gcc)" >&6; }
32279     fi
32280
32281     if test x"$found_warning" = x"yes"; then
32282         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wfloat-equal"
32283
32284
32285     else
32286         :
32287     fi
32288
32289
32290
32291
32292
32293
32294     { echo "$as_me:$LINENO: checking for gcc flag -Wold-style-definition" >&5
32295 echo $ECHO_N "checking for gcc flag -Wold-style-definition... $ECHO_C" >&6; }
32296     if test "x$GCC" = "xyes"; then
32297                 $CC -v --help 2>&1 | $EGREP -- '[^[:alnum:]]-Wold-style-definition[^[:alnum:]-]' 2>&1 > /dev/null
32298                 if test $? -eq 0; then
32299             found_warning=yes
32300             { echo "$as_me:$LINENO: result: yes" >&5
32301 echo "${ECHO_T}yes" >&6; }
32302         else
32303             found_warning=no
32304             { echo "$as_me:$LINENO: result: no" >&5
32305 echo "${ECHO_T}no" >&6; }
32306         fi
32307     else
32308         found_warning=no
32309         { echo "$as_me:$LINENO: result: no (not using gcc)" >&5
32310 echo "${ECHO_T}no (not using gcc)" >&6; }
32311     fi
32312
32313     if test x"$found_warning" = x"yes"; then
32314         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wold-style-definition"
32315
32316
32317     else
32318         :
32319     fi
32320
32321
32322
32323     # test for -W'warning', then add the 'no-' version.
32324
32325
32326
32327     { echo "$as_me:$LINENO: checking for gcc flag -Wstrict-aliasing" >&5
32328 echo $ECHO_N "checking for gcc flag -Wstrict-aliasing... $ECHO_C" >&6; }
32329     if test "x$GCC" = "xyes"; then
32330                 $CC -v --help 2>&1 | $EGREP -- '[^[:alnum:]]-Wstrict-aliasing[^[:alnum:]-]' 2>&1 > /dev/null
32331                 if test $? -eq 0; then
32332             found_warning=yes
32333             { echo "$as_me:$LINENO: result: yes" >&5
32334 echo "${ECHO_T}yes" >&6; }
32335         else
32336             found_warning=no
32337             { echo "$as_me:$LINENO: result: no" >&5
32338 echo "${ECHO_T}no" >&6; }
32339         fi
32340     else
32341         found_warning=no
32342         { echo "$as_me:$LINENO: result: no (not using gcc)" >&5
32343 echo "${ECHO_T}no (not using gcc)" >&6; }
32344     fi
32345
32346     if test x"$found_warning" = x"yes"; then
32347         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wno-strict-aliasing"
32348
32349
32350     else
32351         :
32352     fi
32353
32354
32355
32356     # test for -W'warning', then add the 'no-' version.
32357
32358
32359
32360     { echo "$as_me:$LINENO: checking for gcc flag -Wunknown-pragmas" >&5
32361 echo $ECHO_N "checking for gcc flag -Wunknown-pragmas... $ECHO_C" >&6; }
32362     if test "x$GCC" = "xyes"; then
32363                 $CC -v --help 2>&1 | $EGREP -- '[^[:alnum:]]-Wunknown-pragmas[^[:alnum:]-]' 2>&1 > /dev/null
32364                 if test $? -eq 0; then
32365             found_warning=yes
32366             { echo "$as_me:$LINENO: result: yes" >&5
32367 echo "${ECHO_T}yes" >&6; }
32368         else
32369             found_warning=no
32370             { echo "$as_me:$LINENO: result: no" >&5
32371 echo "${ECHO_T}no" >&6; }
32372         fi
32373     else
32374         found_warning=no
32375         { echo "$as_me:$LINENO: result: no (not using gcc)" >&5
32376 echo "${ECHO_T}no (not using gcc)" >&6; }
32377     fi
32378
32379     if test x"$found_warning" = x"yes"; then
32380         AMANDA_WARNING_CFLAGS="$AMANDA_WARNING_CFLAGS -Wno-unknown-pragmas"
32381
32382
32383     else
32384         :
32385     fi
32386
32387
32388
32389
32390 #
32391 # Libtool
32392 #
32393 # Check whether --enable-shared was given.
32394 if test "${enable_shared+set}" = set; then
32395   enableval=$enable_shared; p=${PACKAGE-default}
32396     case $enableval in
32397     yes) enable_shared=yes ;;
32398     no) enable_shared=no ;;
32399     *)
32400       enable_shared=no
32401       # Look at the argument we got.  We use all the common list separators.
32402       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
32403       for pkg in $enableval; do
32404         IFS="$lt_save_ifs"
32405         if test "X$pkg" = "X$p"; then
32406           enable_shared=yes
32407         fi
32408       done
32409       IFS="$lt_save_ifs"
32410       ;;
32411     esac
32412 else
32413   enable_shared=yes
32414 fi
32415
32416
32417 # Check whether --enable-static was given.
32418 if test "${enable_static+set}" = set; then
32419   enableval=$enable_static; p=${PACKAGE-default}
32420     case $enableval in
32421     yes) enable_static=yes ;;
32422     no) enable_static=no ;;
32423     *)
32424      enable_static=no
32425       # Look at the argument we got.  We use all the common list separators.
32426       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
32427       for pkg in $enableval; do
32428         IFS="$lt_save_ifs"
32429         if test "X$pkg" = "X$p"; then
32430           enable_static=yes
32431         fi
32432       done
32433       IFS="$lt_save_ifs"
32434       ;;
32435     esac
32436 else
32437   enable_static=yes
32438 fi
32439
32440
32441 # Check whether --enable-fast-install was given.
32442 if test "${enable_fast_install+set}" = set; then
32443   enableval=$enable_fast_install; p=${PACKAGE-default}
32444     case $enableval in
32445     yes) enable_fast_install=yes ;;
32446     no) enable_fast_install=no ;;
32447     *)
32448       enable_fast_install=no
32449       # Look at the argument we got.  We use all the common list separators.
32450       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
32451       for pkg in $enableval; do
32452         IFS="$lt_save_ifs"
32453         if test "X$pkg" = "X$p"; then
32454           enable_fast_install=yes
32455         fi
32456       done
32457       IFS="$lt_save_ifs"
32458       ;;
32459     esac
32460 else
32461   enable_fast_install=yes
32462 fi
32463
32464
32465 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
32466 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
32467 if test "${lt_cv_path_SED+set}" = set; then
32468   echo $ECHO_N "(cached) $ECHO_C" >&6
32469 else
32470   # Loop through the user's path and test for sed and gsed.
32471 # Then use that list of sed's as ones to test for truncation.
32472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32473 for as_dir in $PATH
32474 do
32475   IFS=$as_save_IFS
32476   test -z "$as_dir" && as_dir=.
32477   for lt_ac_prog in sed gsed; do
32478     for ac_exec_ext in '' $ac_executable_extensions; do
32479       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
32480         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
32481       fi
32482     done
32483   done
32484 done
32485 lt_ac_max=0
32486 lt_ac_count=0
32487 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
32488 # along with /bin/sed that truncates output.
32489 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
32490   test ! -f $lt_ac_sed && continue
32491   cat /dev/null > conftest.in
32492   lt_ac_count=0
32493   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
32494   # Check for GNU sed and select it if it is found.
32495   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
32496     lt_cv_path_SED=$lt_ac_sed
32497     break
32498   fi
32499   while true; do
32500     cat conftest.in conftest.in >conftest.tmp
32501     mv conftest.tmp conftest.in
32502     cp conftest.in conftest.nl
32503     echo >>conftest.nl
32504     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
32505     cmp -s conftest.out conftest.nl || break
32506     # 10000 chars as input seems more than enough
32507     test $lt_ac_count -gt 10 && break
32508     lt_ac_count=`expr $lt_ac_count + 1`
32509     if test $lt_ac_count -gt $lt_ac_max; then
32510       lt_ac_max=$lt_ac_count
32511       lt_cv_path_SED=$lt_ac_sed
32512     fi
32513   done
32514 done
32515
32516 fi
32517
32518 SED=$lt_cv_path_SED
32519 { echo "$as_me:$LINENO: result: $SED" >&5
32520 echo "${ECHO_T}$SED" >&6; }
32521
32522
32523 # Check whether --with-gnu-ld was given.
32524 if test "${with_gnu_ld+set}" = set; then
32525   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
32526 else
32527   with_gnu_ld=no
32528 fi
32529
32530 ac_prog=ld
32531 if test "$GCC" = yes; then
32532   # Check if gcc -print-prog-name=ld gives a path.
32533   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
32534 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
32535   case $host in
32536   *-*-mingw*)
32537     # gcc leaves a trailing carriage return which upsets mingw
32538     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
32539   *)
32540     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
32541   esac
32542   case $ac_prog in
32543     # Accept absolute paths.
32544     [\\/]* | ?:[\\/]*)
32545       re_direlt='/[^/][^/]*/\.\./'
32546       # Canonicalize the pathname of ld
32547       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
32548       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
32549         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
32550       done
32551       test -z "$LD" && LD="$ac_prog"
32552       ;;
32553   "")
32554     # If it fails, then pretend we aren't using GCC.
32555     ac_prog=ld
32556     ;;
32557   *)
32558     # If it is relative, then search for the first ld in PATH.
32559     with_gnu_ld=unknown
32560     ;;
32561   esac
32562 elif test "$with_gnu_ld" = yes; then
32563   { echo "$as_me:$LINENO: checking for GNU ld" >&5
32564 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
32565 else
32566   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
32567 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
32568 fi
32569 if test "${lt_cv_path_LD+set}" = set; then
32570   echo $ECHO_N "(cached) $ECHO_C" >&6
32571 else
32572   if test -z "$LD"; then
32573   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
32574   for ac_dir in $PATH; do
32575     IFS="$lt_save_ifs"
32576     test -z "$ac_dir" && ac_dir=.
32577     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
32578       lt_cv_path_LD="$ac_dir/$ac_prog"
32579       # Check to see if the program is GNU ld.  I'd rather use --version,
32580       # but apparently some variants of GNU ld only accept -v.
32581       # Break only if it was the GNU/non-GNU ld that we prefer.
32582       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
32583       *GNU* | *'with BFD'*)
32584         test "$with_gnu_ld" != no && break
32585         ;;
32586       *)
32587         test "$with_gnu_ld" != yes && break
32588         ;;
32589       esac
32590     fi
32591   done
32592   IFS="$lt_save_ifs"
32593 else
32594   lt_cv_path_LD="$LD" # Let the user override the test with a path.
32595 fi
32596 fi
32597
32598 LD="$lt_cv_path_LD"
32599 if test -n "$LD"; then
32600   { echo "$as_me:$LINENO: result: $LD" >&5
32601 echo "${ECHO_T}$LD" >&6; }
32602 else
32603   { echo "$as_me:$LINENO: result: no" >&5
32604 echo "${ECHO_T}no" >&6; }
32605 fi
32606 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
32607 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
32608    { (exit 1); exit 1; }; }
32609 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
32610 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
32611 if test "${lt_cv_prog_gnu_ld+set}" = set; then
32612   echo $ECHO_N "(cached) $ECHO_C" >&6
32613 else
32614   # I'd rather use --version here, but apparently some GNU lds only accept -v.
32615 case `$LD -v 2>&1 </dev/null` in
32616 *GNU* | *'with BFD'*)
32617   lt_cv_prog_gnu_ld=yes
32618   ;;
32619 *)
32620   lt_cv_prog_gnu_ld=no
32621   ;;
32622 esac
32623 fi
32624 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
32625 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
32626 with_gnu_ld=$lt_cv_prog_gnu_ld
32627
32628
32629 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
32630 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
32631 if test "${lt_cv_ld_reload_flag+set}" = set; then
32632   echo $ECHO_N "(cached) $ECHO_C" >&6
32633 else
32634   lt_cv_ld_reload_flag='-r'
32635 fi
32636 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
32637 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
32638 reload_flag=$lt_cv_ld_reload_flag
32639 case $reload_flag in
32640 "" | " "*) ;;
32641 *) reload_flag=" $reload_flag" ;;
32642 esac
32643 reload_cmds='$LD$reload_flag -o $output$reload_objs'
32644 case $host_os in
32645   darwin*)
32646     if test "$GCC" = yes; then
32647       reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
32648     else
32649       reload_cmds='$LD$reload_flag -o $output$reload_objs'
32650     fi
32651     ;;
32652 esac
32653
32654 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
32655 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
32656 if test "${lt_cv_path_NM+set}" = set; then
32657   echo $ECHO_N "(cached) $ECHO_C" >&6
32658 else
32659   if test -n "$NM"; then
32660   # Let the user override the test.
32661   lt_cv_path_NM="$NM"
32662 else
32663   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
32664   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
32665     IFS="$lt_save_ifs"
32666     test -z "$ac_dir" && ac_dir=.
32667     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
32668     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
32669       # Check to see if the nm accepts a BSD-compat flag.
32670       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
32671       #   nm: unknown option "B" ignored
32672       # Tru64's nm complains that /dev/null is an invalid object file
32673       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
32674       */dev/null* | *'Invalid file or object type'*)
32675         lt_cv_path_NM="$tmp_nm -B"
32676         break
32677         ;;
32678       *)
32679         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
32680         */dev/null*)
32681           lt_cv_path_NM="$tmp_nm -p"
32682           break
32683           ;;
32684         *)
32685           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
32686           continue # so that we can try to find one that supports BSD flags
32687           ;;
32688         esac
32689       esac
32690     fi
32691   done
32692   IFS="$lt_save_ifs"
32693   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
32694 fi
32695 fi
32696 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
32697 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
32698 NM="$lt_cv_path_NM"
32699
32700 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
32701 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
32702 LN_S=$as_ln_s
32703 if test "$LN_S" = "ln -s"; then
32704   { echo "$as_me:$LINENO: result: yes" >&5
32705 echo "${ECHO_T}yes" >&6; }
32706 else
32707   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
32708 echo "${ECHO_T}no, using $LN_S" >&6; }
32709 fi
32710
32711 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
32712 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
32713 if test "${lt_cv_deplibs_check_method+set}" = set; then
32714   echo $ECHO_N "(cached) $ECHO_C" >&6
32715 else
32716   lt_cv_file_magic_cmd='$MAGIC_CMD'
32717 lt_cv_file_magic_test_file=
32718 lt_cv_deplibs_check_method='unknown'
32719 # Need to set the preceding variable on all platforms that support
32720 # interlibrary dependencies.
32721 # 'none' -- dependencies not supported.
32722 # `unknown' -- same as none, but documents that we really don't know.
32723 # 'pass_all' -- all dependencies passed with no checks.
32724 # 'test_compile' -- check by making test program.
32725 # 'file_magic [[regex]]' -- check by looking for files in library path
32726 # which responds to the $file_magic_cmd with a given extended regex.
32727 # If you have `file' or equivalent on your system and you're not sure
32728 # whether `pass_all' will *always* work, you probably want this one.
32729
32730 case $host_os in
32731 aix4* | aix5*)
32732   lt_cv_deplibs_check_method=pass_all
32733   ;;
32734
32735 beos*)
32736   lt_cv_deplibs_check_method=pass_all
32737   ;;
32738
32739 bsdi[45]*)
32740   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
32741   lt_cv_file_magic_cmd='/usr/bin/file -L'
32742   lt_cv_file_magic_test_file=/shlib/libc.so
32743   ;;
32744
32745 cygwin*)
32746   # func_win32_libid is a shell function defined in ltmain.sh
32747   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
32748   lt_cv_file_magic_cmd='func_win32_libid'
32749   ;;
32750
32751 mingw* | pw32*)
32752   # Base MSYS/MinGW do not provide the 'file' command needed by
32753   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
32754   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
32755   lt_cv_file_magic_cmd='$OBJDUMP -f'
32756   ;;
32757
32758 darwin* | rhapsody*)
32759   lt_cv_deplibs_check_method=pass_all
32760   ;;
32761
32762 freebsd* | kfreebsd*-gnu | dragonfly*)
32763   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
32764     case $host_cpu in
32765     i*86 )
32766       # Not sure whether the presence of OpenBSD here was a mistake.
32767       # Let's accept both of them until this is cleared up.
32768       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
32769       lt_cv_file_magic_cmd=/usr/bin/file
32770       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
32771       ;;
32772     esac
32773   else
32774     lt_cv_deplibs_check_method=pass_all
32775   fi
32776   ;;
32777
32778 gnu*)
32779   lt_cv_deplibs_check_method=pass_all
32780   ;;
32781
32782 hpux10.20* | hpux11*)
32783   lt_cv_file_magic_cmd=/usr/bin/file
32784   case $host_cpu in
32785   ia64*)
32786     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
32787     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
32788     ;;
32789   hppa*64*)
32790     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]'
32791     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
32792     ;;
32793   *)
32794     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
32795     lt_cv_file_magic_test_file=/usr/lib/libc.sl
32796     ;;
32797   esac
32798   ;;
32799
32800 irix5* | irix6* | nonstopux*)
32801   case $LD in
32802   *-32|*"-32 ") libmagic=32-bit;;
32803   *-n32|*"-n32 ") libmagic=N32;;
32804   *-64|*"-64 ") libmagic=64-bit;;
32805   *) libmagic=never-match;;
32806   esac
32807   lt_cv_deplibs_check_method=pass_all
32808   ;;
32809
32810 # This must be Linux ELF.
32811 linux*)
32812   lt_cv_deplibs_check_method=pass_all
32813   ;;
32814
32815 netbsd*)
32816   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
32817     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
32818   else
32819     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
32820   fi
32821   ;;
32822
32823 newos6*)
32824   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
32825   lt_cv_file_magic_cmd=/usr/bin/file
32826   lt_cv_file_magic_test_file=/usr/lib/libnls.so
32827   ;;
32828
32829 nto-qnx*)
32830   lt_cv_deplibs_check_method=unknown
32831   ;;
32832
32833 openbsd*)
32834   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
32835     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
32836   else
32837     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
32838   fi
32839   ;;
32840
32841 osf3* | osf4* | osf5*)
32842   lt_cv_deplibs_check_method=pass_all
32843   ;;
32844
32845 sco3.2v5*)
32846   lt_cv_deplibs_check_method=pass_all
32847   ;;
32848
32849 solaris*)
32850   lt_cv_deplibs_check_method=pass_all
32851   ;;
32852
32853 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
32854   case $host_vendor in
32855   motorola)
32856     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]'
32857     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
32858     ;;
32859   ncr)
32860     lt_cv_deplibs_check_method=pass_all
32861     ;;
32862   sequent)
32863     lt_cv_file_magic_cmd='/bin/file'
32864     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
32865     ;;
32866   sni)
32867     lt_cv_file_magic_cmd='/bin/file'
32868     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
32869     lt_cv_file_magic_test_file=/lib/libc.so
32870     ;;
32871   siemens)
32872     lt_cv_deplibs_check_method=pass_all
32873     ;;
32874   esac
32875   ;;
32876
32877 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
32878   lt_cv_deplibs_check_method=pass_all
32879   ;;
32880 esac
32881
32882 fi
32883 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
32884 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
32885 file_magic_cmd=$lt_cv_file_magic_cmd
32886 deplibs_check_method=$lt_cv_deplibs_check_method
32887 test -z "$deplibs_check_method" && deplibs_check_method=unknown
32888
32889
32890 # If no C compiler was specified, use CC.
32891 LTCC=${LTCC-"$CC"}
32892
32893 # Allow CC to be a program name with arguments.
32894 compiler=$CC
32895
32896 # Check whether --enable-libtool-lock was given.
32897 if test "${enable_libtool_lock+set}" = set; then
32898   enableval=$enable_libtool_lock;
32899 fi
32900
32901 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
32902
32903 # Some flags need to be propagated to the compiler or linker for good
32904 # libtool support.
32905 case $host in
32906 ia64-*-hpux*)
32907   # Find out which ABI we are using.
32908   echo 'int i;' > conftest.$ac_ext
32909   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32910   (eval $ac_compile) 2>&5
32911   ac_status=$?
32912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32913   (exit $ac_status); }; then
32914     case `/usr/bin/file conftest.$ac_objext` in
32915     *ELF-32*)
32916       HPUX_IA64_MODE="32"
32917       ;;
32918     *ELF-64*)
32919       HPUX_IA64_MODE="64"
32920       ;;
32921     esac
32922   fi
32923   rm -rf conftest*
32924   ;;
32925 *-*-irix6*)
32926   # Find out which ABI we are using.
32927   echo '#line 32927 "configure"' > conftest.$ac_ext
32928   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32929   (eval $ac_compile) 2>&5
32930   ac_status=$?
32931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32932   (exit $ac_status); }; then
32933    if test "$lt_cv_prog_gnu_ld" = yes; then
32934     case `/usr/bin/file conftest.$ac_objext` in
32935     *32-bit*)
32936       LD="${LD-ld} -melf32bsmip"
32937       ;;
32938     *N32*)
32939       LD="${LD-ld} -melf32bmipn32"
32940       ;;
32941     *64-bit*)
32942       LD="${LD-ld} -melf64bmip"
32943       ;;
32944     esac
32945    else
32946     case `/usr/bin/file conftest.$ac_objext` in
32947     *32-bit*)
32948       LD="${LD-ld} -32"
32949       ;;
32950     *N32*)
32951       LD="${LD-ld} -n32"
32952       ;;
32953     *64-bit*)
32954       LD="${LD-ld} -64"
32955       ;;
32956     esac
32957    fi
32958   fi
32959   rm -rf conftest*
32960   ;;
32961
32962 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
32963   # Find out which ABI we are using.
32964   echo 'int i;' > conftest.$ac_ext
32965   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32966   (eval $ac_compile) 2>&5
32967   ac_status=$?
32968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32969   (exit $ac_status); }; then
32970     case `/usr/bin/file conftest.o` in
32971     *32-bit*)
32972       case $host in
32973         x86_64-*linux*)
32974           LD="${LD-ld} -m elf_i386"
32975           ;;
32976         ppc64-*linux*|powerpc64-*linux*)
32977           LD="${LD-ld} -m elf32ppclinux"
32978           ;;
32979         s390x-*linux*)
32980           LD="${LD-ld} -m elf_s390"
32981           ;;
32982         sparc64-*linux*)
32983           LD="${LD-ld} -m elf32_sparc"
32984           ;;
32985       esac
32986       ;;
32987     *64-bit*)
32988       case $host in
32989         x86_64-*linux*)
32990           LD="${LD-ld} -m elf_x86_64"
32991           ;;
32992         ppc*-*linux*|powerpc*-*linux*)
32993           LD="${LD-ld} -m elf64ppc"
32994           ;;
32995         s390*-*linux*)
32996           LD="${LD-ld} -m elf64_s390"
32997           ;;
32998         sparc*-*linux*)
32999           LD="${LD-ld} -m elf64_sparc"
33000           ;;
33001       esac
33002       ;;
33003     esac
33004   fi
33005   rm -rf conftest*
33006   ;;
33007
33008 *-*-sco3.2v5*)
33009   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
33010   SAVE_CFLAGS="$CFLAGS"
33011   CFLAGS="$CFLAGS -belf"
33012   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
33013 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
33014 if test "${lt_cv_cc_needs_belf+set}" = set; then
33015   echo $ECHO_N "(cached) $ECHO_C" >&6
33016 else
33017   ac_ext=c
33018 ac_cpp='$CPP $CPPFLAGS'
33019 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33020 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33021 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33022
33023      cat >conftest.$ac_ext <<_ACEOF
33024 /* confdefs.h.  */
33025 _ACEOF
33026 cat confdefs.h >>conftest.$ac_ext
33027 cat >>conftest.$ac_ext <<_ACEOF
33028 /* end confdefs.h.  */
33029
33030 int
33031 main ()
33032 {
33033
33034   ;
33035   return 0;
33036 }
33037 _ACEOF
33038 rm -f conftest.$ac_objext conftest$ac_exeext
33039 if { (ac_try="$ac_link"
33040 case "(($ac_try" in
33041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33042   *) ac_try_echo=$ac_try;;
33043 esac
33044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33045   (eval "$ac_link") 2>conftest.er1
33046   ac_status=$?
33047   grep -v '^ *+' conftest.er1 >conftest.err
33048   rm -f conftest.er1
33049   cat conftest.err >&5
33050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33051   (exit $ac_status); } && {
33052          test -z "$ac_c_werror_flag" ||
33053          test ! -s conftest.err
33054        } && test -s conftest$ac_exeext &&
33055        $as_test_x conftest$ac_exeext; then
33056   lt_cv_cc_needs_belf=yes
33057 else
33058   echo "$as_me: failed program was:" >&5
33059 sed 's/^/| /' conftest.$ac_ext >&5
33060
33061         lt_cv_cc_needs_belf=no
33062 fi
33063
33064 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33065       conftest$ac_exeext conftest.$ac_ext
33066      ac_ext=c
33067 ac_cpp='$CPP $CPPFLAGS'
33068 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33069 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33070 ac_compiler_gnu=$ac_cv_c_compiler_gnu
33071
33072 fi
33073 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
33074 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
33075   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
33076     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
33077     CFLAGS="$SAVE_CFLAGS"
33078   fi
33079   ;;
33080
33081 esac
33082
33083 need_locks="$enable_libtool_lock"
33084
33085
33086
33087 for ac_header in dlfcn.h
33088 do
33089 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33090 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33091   { echo "$as_me:$LINENO: checking for $ac_header" >&5
33092 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33093 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33094   echo $ECHO_N "(cached) $ECHO_C" >&6
33095 fi
33096 ac_res=`eval echo '${'$as_ac_Header'}'`
33097                { echo "$as_me:$LINENO: result: $ac_res" >&5
33098 echo "${ECHO_T}$ac_res" >&6; }
33099 else
33100   # Is the header compilable?
33101 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
33102 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
33103 cat >conftest.$ac_ext <<_ACEOF
33104 /* confdefs.h.  */
33105 _ACEOF
33106 cat confdefs.h >>conftest.$ac_ext
33107 cat >>conftest.$ac_ext <<_ACEOF
33108 /* end confdefs.h.  */
33109 $ac_includes_default
33110 #include <$ac_header>
33111 _ACEOF
33112 rm -f conftest.$ac_objext
33113 if { (ac_try="$ac_compile"
33114 case "(($ac_try" in
33115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33116   *) ac_try_echo=$ac_try;;
33117 esac
33118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33119   (eval "$ac_compile") 2>conftest.er1
33120   ac_status=$?
33121   grep -v '^ *+' conftest.er1 >conftest.err
33122   rm -f conftest.er1
33123   cat conftest.err >&5
33124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33125   (exit $ac_status); } && {
33126          test -z "$ac_c_werror_flag" ||
33127          test ! -s conftest.err
33128        } && test -s conftest.$ac_objext; then
33129   ac_header_compiler=yes
33130 else
33131   echo "$as_me: failed program was:" >&5
33132 sed 's/^/| /' conftest.$ac_ext >&5
33133
33134         ac_header_compiler=no
33135 fi
33136
33137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33138 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33139 echo "${ECHO_T}$ac_header_compiler" >&6; }
33140
33141 # Is the header present?
33142 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
33143 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
33144 cat >conftest.$ac_ext <<_ACEOF
33145 /* confdefs.h.  */
33146 _ACEOF
33147 cat confdefs.h >>conftest.$ac_ext
33148 cat >>conftest.$ac_ext <<_ACEOF
33149 /* end confdefs.h.  */
33150 #include <$ac_header>
33151 _ACEOF
33152 if { (ac_try="$ac_cpp conftest.$ac_ext"
33153 case "(($ac_try" in
33154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33155   *) ac_try_echo=$ac_try;;
33156 esac
33157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33158   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33159   ac_status=$?
33160   grep -v '^ *+' conftest.er1 >conftest.err
33161   rm -f conftest.er1
33162   cat conftest.err >&5
33163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33164   (exit $ac_status); } >/dev/null && {
33165          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33166          test ! -s conftest.err
33167        }; then
33168   ac_header_preproc=yes
33169 else
33170   echo "$as_me: failed program was:" >&5
33171 sed 's/^/| /' conftest.$ac_ext >&5
33172
33173   ac_header_preproc=no
33174 fi
33175
33176 rm -f conftest.err conftest.$ac_ext
33177 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33178 echo "${ECHO_T}$ac_header_preproc" >&6; }
33179
33180 # So?  What about this header?
33181 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33182   yes:no: )
33183     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33184 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33185     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33186 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33187     ac_header_preproc=yes
33188     ;;
33189   no:yes:* )
33190     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33191 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33192     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
33193 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
33194     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33195 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33196     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
33197 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
33198     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33199 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33200     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33201 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33202
33203     ;;
33204 esac
33205 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33206 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33207 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33208   echo $ECHO_N "(cached) $ECHO_C" >&6
33209 else
33210   eval "$as_ac_Header=\$ac_header_preproc"
33211 fi
33212 ac_res=`eval echo '${'$as_ac_Header'}'`
33213                { echo "$as_me:$LINENO: result: $ac_res" >&5
33214 echo "${ECHO_T}$ac_res" >&6; }
33215
33216 fi
33217 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33218   cat >>confdefs.h <<_ACEOF
33219 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33220 _ACEOF
33221
33222 fi
33223
33224 done
33225
33226 ac_ext=cpp
33227 ac_cpp='$CXXCPP $CPPFLAGS'
33228 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33229 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33230 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33231 if test -z "$CXX"; then
33232   if test -n "$CCC"; then
33233     CXX=$CCC
33234   else
33235     if test -n "$ac_tool_prefix"; then
33236   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
33237   do
33238     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
33239 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
33240 { echo "$as_me:$LINENO: checking for $ac_word" >&5
33241 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
33242 if test "${ac_cv_prog_CXX+set}" = set; then
33243   echo $ECHO_N "(cached) $ECHO_C" >&6
33244 else
33245   if test -n "$CXX"; then
33246   ac_cv_prog_CXX="$CXX" # Let the user override the test.
33247 else
33248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33249 for as_dir in $PATH
33250 do
33251   IFS=$as_save_IFS
33252   test -z "$as_dir" && as_dir=.
33253   for ac_exec_ext in '' $ac_executable_extensions; do
33254   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33255     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
33256     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33257     break 2
33258   fi
33259 done
33260 done
33261 IFS=$as_save_IFS
33262
33263 fi
33264 fi
33265 CXX=$ac_cv_prog_CXX
33266 if test -n "$CXX"; then
33267   { echo "$as_me:$LINENO: result: $CXX" >&5
33268 echo "${ECHO_T}$CXX" >&6; }
33269 else
33270   { echo "$as_me:$LINENO: result: no" >&5
33271 echo "${ECHO_T}no" >&6; }
33272 fi
33273
33274
33275     test -n "$CXX" && break
33276   done
33277 fi
33278 if test -z "$CXX"; then
33279   ac_ct_CXX=$CXX
33280   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
33281 do
33282   # Extract the first word of "$ac_prog", so it can be a program name with args.
33283 set dummy $ac_prog; ac_word=$2
33284 { echo "$as_me:$LINENO: checking for $ac_word" >&5
33285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
33286 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
33287   echo $ECHO_N "(cached) $ECHO_C" >&6
33288 else
33289   if test -n "$ac_ct_CXX"; then
33290   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
33291 else
33292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33293 for as_dir in $PATH
33294 do
33295   IFS=$as_save_IFS
33296   test -z "$as_dir" && as_dir=.
33297   for ac_exec_ext in '' $ac_executable_extensions; do
33298   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33299     ac_cv_prog_ac_ct_CXX="$ac_prog"
33300     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33301     break 2
33302   fi
33303 done
33304 done
33305 IFS=$as_save_IFS
33306
33307 fi
33308 fi
33309 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
33310 if test -n "$ac_ct_CXX"; then
33311   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
33312 echo "${ECHO_T}$ac_ct_CXX" >&6; }
33313 else
33314   { echo "$as_me:$LINENO: result: no" >&5
33315 echo "${ECHO_T}no" >&6; }
33316 fi
33317
33318
33319   test -n "$ac_ct_CXX" && break
33320 done
33321
33322   if test "x$ac_ct_CXX" = x; then
33323     CXX="g++"
33324   else
33325     case $cross_compiling:$ac_tool_warned in
33326 yes:)
33327 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
33328 whose name does not start with the host triplet.  If you think this
33329 configuration is useful to you, please write to autoconf@gnu.org." >&5
33330 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
33331 whose name does not start with the host triplet.  If you think this
33332 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
33333 ac_tool_warned=yes ;;
33334 esac
33335     CXX=$ac_ct_CXX
33336   fi
33337 fi
33338
33339   fi
33340 fi
33341 # Provide some information about the compiler.
33342 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
33343 ac_compiler=`set X $ac_compile; echo $2`
33344 { (ac_try="$ac_compiler --version >&5"
33345 case "(($ac_try" in
33346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33347   *) ac_try_echo=$ac_try;;
33348 esac
33349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33350   (eval "$ac_compiler --version >&5") 2>&5
33351   ac_status=$?
33352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33353   (exit $ac_status); }
33354 { (ac_try="$ac_compiler -v >&5"
33355 case "(($ac_try" in
33356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33357   *) ac_try_echo=$ac_try;;
33358 esac
33359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33360   (eval "$ac_compiler -v >&5") 2>&5
33361   ac_status=$?
33362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33363   (exit $ac_status); }
33364 { (ac_try="$ac_compiler -V >&5"
33365 case "(($ac_try" in
33366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33367   *) ac_try_echo=$ac_try;;
33368 esac
33369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33370   (eval "$ac_compiler -V >&5") 2>&5
33371   ac_status=$?
33372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33373   (exit $ac_status); }
33374
33375 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
33376 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
33377 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
33378   echo $ECHO_N "(cached) $ECHO_C" >&6
33379 else
33380   cat >conftest.$ac_ext <<_ACEOF
33381 /* confdefs.h.  */
33382 _ACEOF
33383 cat confdefs.h >>conftest.$ac_ext
33384 cat >>conftest.$ac_ext <<_ACEOF
33385 /* end confdefs.h.  */
33386
33387 int
33388 main ()
33389 {
33390 #ifndef __GNUC__
33391        choke me
33392 #endif
33393
33394   ;
33395   return 0;
33396 }
33397 _ACEOF
33398 rm -f conftest.$ac_objext
33399 if { (ac_try="$ac_compile"
33400 case "(($ac_try" in
33401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33402   *) ac_try_echo=$ac_try;;
33403 esac
33404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33405   (eval "$ac_compile") 2>conftest.er1
33406   ac_status=$?
33407   grep -v '^ *+' conftest.er1 >conftest.err
33408   rm -f conftest.er1
33409   cat conftest.err >&5
33410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33411   (exit $ac_status); } && {
33412          test -z "$ac_cxx_werror_flag" ||
33413          test ! -s conftest.err
33414        } && test -s conftest.$ac_objext; then
33415   ac_compiler_gnu=yes
33416 else
33417   echo "$as_me: failed program was:" >&5
33418 sed 's/^/| /' conftest.$ac_ext >&5
33419
33420         ac_compiler_gnu=no
33421 fi
33422
33423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33424 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
33425
33426 fi
33427 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
33428 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
33429 GXX=`test $ac_compiler_gnu = yes && echo yes`
33430 ac_test_CXXFLAGS=${CXXFLAGS+set}
33431 ac_save_CXXFLAGS=$CXXFLAGS
33432 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
33433 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
33434 if test "${ac_cv_prog_cxx_g+set}" = set; then
33435   echo $ECHO_N "(cached) $ECHO_C" >&6
33436 else
33437   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
33438    ac_cxx_werror_flag=yes
33439    ac_cv_prog_cxx_g=no
33440    CXXFLAGS="-g"
33441    cat >conftest.$ac_ext <<_ACEOF
33442 /* confdefs.h.  */
33443 _ACEOF
33444 cat confdefs.h >>conftest.$ac_ext
33445 cat >>conftest.$ac_ext <<_ACEOF
33446 /* end confdefs.h.  */
33447
33448 int
33449 main ()
33450 {
33451
33452   ;
33453   return 0;
33454 }
33455 _ACEOF
33456 rm -f conftest.$ac_objext
33457 if { (ac_try="$ac_compile"
33458 case "(($ac_try" in
33459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33460   *) ac_try_echo=$ac_try;;
33461 esac
33462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33463   (eval "$ac_compile") 2>conftest.er1
33464   ac_status=$?
33465   grep -v '^ *+' conftest.er1 >conftest.err
33466   rm -f conftest.er1
33467   cat conftest.err >&5
33468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33469   (exit $ac_status); } && {
33470          test -z "$ac_cxx_werror_flag" ||
33471          test ! -s conftest.err
33472        } && test -s conftest.$ac_objext; then
33473   ac_cv_prog_cxx_g=yes
33474 else
33475   echo "$as_me: failed program was:" >&5
33476 sed 's/^/| /' conftest.$ac_ext >&5
33477
33478         CXXFLAGS=""
33479       cat >conftest.$ac_ext <<_ACEOF
33480 /* confdefs.h.  */
33481 _ACEOF
33482 cat confdefs.h >>conftest.$ac_ext
33483 cat >>conftest.$ac_ext <<_ACEOF
33484 /* end confdefs.h.  */
33485
33486 int
33487 main ()
33488 {
33489
33490   ;
33491   return 0;
33492 }
33493 _ACEOF
33494 rm -f conftest.$ac_objext
33495 if { (ac_try="$ac_compile"
33496 case "(($ac_try" in
33497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33498   *) ac_try_echo=$ac_try;;
33499 esac
33500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33501   (eval "$ac_compile") 2>conftest.er1
33502   ac_status=$?
33503   grep -v '^ *+' conftest.er1 >conftest.err
33504   rm -f conftest.er1
33505   cat conftest.err >&5
33506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33507   (exit $ac_status); } && {
33508          test -z "$ac_cxx_werror_flag" ||
33509          test ! -s conftest.err
33510        } && test -s conftest.$ac_objext; then
33511   :
33512 else
33513   echo "$as_me: failed program was:" >&5
33514 sed 's/^/| /' conftest.$ac_ext >&5
33515
33516         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
33517          CXXFLAGS="-g"
33518          cat >conftest.$ac_ext <<_ACEOF
33519 /* confdefs.h.  */
33520 _ACEOF
33521 cat confdefs.h >>conftest.$ac_ext
33522 cat >>conftest.$ac_ext <<_ACEOF
33523 /* end confdefs.h.  */
33524
33525 int
33526 main ()
33527 {
33528
33529   ;
33530   return 0;
33531 }
33532 _ACEOF
33533 rm -f conftest.$ac_objext
33534 if { (ac_try="$ac_compile"
33535 case "(($ac_try" in
33536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33537   *) ac_try_echo=$ac_try;;
33538 esac
33539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33540   (eval "$ac_compile") 2>conftest.er1
33541   ac_status=$?
33542   grep -v '^ *+' conftest.er1 >conftest.err
33543   rm -f conftest.er1
33544   cat conftest.err >&5
33545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33546   (exit $ac_status); } && {
33547          test -z "$ac_cxx_werror_flag" ||
33548          test ! -s conftest.err
33549        } && test -s conftest.$ac_objext; then
33550   ac_cv_prog_cxx_g=yes
33551 else
33552   echo "$as_me: failed program was:" >&5
33553 sed 's/^/| /' conftest.$ac_ext >&5
33554
33555
33556 fi
33557
33558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33559 fi
33560
33561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33562 fi
33563
33564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33565    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
33566 fi
33567 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
33568 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
33569 if test "$ac_test_CXXFLAGS" = set; then
33570   CXXFLAGS=$ac_save_CXXFLAGS
33571 elif test $ac_cv_prog_cxx_g = yes; then
33572   if test "$GXX" = yes; then
33573     CXXFLAGS="-g -O2"
33574   else
33575     CXXFLAGS="-g"
33576   fi
33577 else
33578   if test "$GXX" = yes; then
33579     CXXFLAGS="-O2"
33580   else
33581     CXXFLAGS=
33582   fi
33583 fi
33584 ac_ext=cpp
33585 ac_cpp='$CXXCPP $CPPFLAGS'
33586 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33587 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33588 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33589
33590 depcc="$CXX"  am_compiler_list=
33591
33592 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
33593 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
33594 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
33595   echo $ECHO_N "(cached) $ECHO_C" >&6
33596 else
33597   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
33598   # We make a subdir and do the tests there.  Otherwise we can end up
33599   # making bogus files that we don't know about and never remove.  For
33600   # instance it was reported that on HP-UX the gcc test will end up
33601   # making a dummy file named `D' -- because `-MD' means `put the output
33602   # in D'.
33603   mkdir conftest.dir
33604   # Copy depcomp to subdir because otherwise we won't find it if we're
33605   # using a relative directory.
33606   cp "$am_depcomp" conftest.dir
33607   cd conftest.dir
33608   # We will build objects and dependencies in a subdirectory because
33609   # it helps to detect inapplicable dependency modes.  For instance
33610   # both Tru64's cc and ICC support -MD to output dependencies as a
33611   # side effect of compilation, but ICC will put the dependencies in
33612   # the current directory while Tru64 will put them in the object
33613   # directory.
33614   mkdir sub
33615
33616   am_cv_CXX_dependencies_compiler_type=none
33617   if test "$am_compiler_list" = ""; then
33618      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
33619   fi
33620   for depmode in $am_compiler_list; do
33621     # Setup a source with many dependencies, because some compilers
33622     # like to wrap large dependency lists on column 80 (with \), and
33623     # we should not choose a depcomp mode which is confused by this.
33624     #
33625     # We need to recreate these files for each test, as the compiler may
33626     # overwrite some of them when testing with obscure command lines.
33627     # This happens at least with the AIX C compiler.
33628     : > sub/conftest.c
33629     for i in 1 2 3 4 5 6; do
33630       echo '#include "conftst'$i'.h"' >> sub/conftest.c
33631       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
33632       # Solaris 8's {/usr,}/bin/sh.
33633       touch sub/conftst$i.h
33634     done
33635     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
33636
33637     case $depmode in
33638     nosideeffect)
33639       # after this tag, mechanisms are not by side-effect, so they'll
33640       # only be used when explicitly requested
33641       if test "x$enable_dependency_tracking" = xyes; then
33642         continue
33643       else
33644         break
33645       fi
33646       ;;
33647     none) break ;;
33648     esac
33649     # We check with `-c' and `-o' for the sake of the "dashmstdout"
33650     # mode.  It turns out that the SunPro C++ compiler does not properly
33651     # handle `-M -o', and we need to detect this.
33652     if depmode=$depmode \
33653        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
33654        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
33655        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
33656          >/dev/null 2>conftest.err &&
33657        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
33658        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
33659        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
33660        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
33661       # icc doesn't choke on unknown options, it will just issue warnings
33662       # or remarks (even with -Werror).  So we grep stderr for any message
33663       # that says an option was ignored or not supported.
33664       # When given -MP, icc 7.0 and 7.1 complain thusly:
33665       #   icc: Command line warning: ignoring option '-M'; no argument required
33666       # The diagnosis changed in icc 8.0:
33667       #   icc: Command line remark: option '-MP' not supported
33668       if (grep 'ignoring option' conftest.err ||
33669           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
33670         am_cv_CXX_dependencies_compiler_type=$depmode
33671         break
33672       fi
33673     fi
33674   done
33675
33676   cd ..
33677   rm -rf conftest.dir
33678 else
33679   am_cv_CXX_dependencies_compiler_type=none
33680 fi
33681
33682 fi
33683 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
33684 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
33685 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
33686
33687  if
33688   test "x$enable_dependency_tracking" != xno \
33689   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
33690   am__fastdepCXX_TRUE=
33691   am__fastdepCXX_FALSE='#'
33692 else
33693   am__fastdepCXX_TRUE='#'
33694   am__fastdepCXX_FALSE=
33695 fi
33696
33697
33698
33699
33700 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
33701     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
33702     (test "X$CXX" != "Xg++"))) ; then
33703   ac_ext=cpp
33704 ac_cpp='$CXXCPP $CPPFLAGS'
33705 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33706 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33707 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33708 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
33709 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
33710 if test -z "$CXXCPP"; then
33711   if test "${ac_cv_prog_CXXCPP+set}" = set; then
33712   echo $ECHO_N "(cached) $ECHO_C" >&6
33713 else
33714       # Double quotes because CXXCPP needs to be expanded
33715     for CXXCPP in "$CXX -E" "/lib/cpp"
33716     do
33717       ac_preproc_ok=false
33718 for ac_cxx_preproc_warn_flag in '' yes
33719 do
33720   # Use a header file that comes with gcc, so configuring glibc
33721   # with a fresh cross-compiler works.
33722   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33723   # <limits.h> exists even on freestanding compilers.
33724   # On the NeXT, cc -E runs the code through the compiler's parser,
33725   # not just through cpp. "Syntax error" is here to catch this case.
33726   cat >conftest.$ac_ext <<_ACEOF
33727 /* confdefs.h.  */
33728 _ACEOF
33729 cat confdefs.h >>conftest.$ac_ext
33730 cat >>conftest.$ac_ext <<_ACEOF
33731 /* end confdefs.h.  */
33732 #ifdef __STDC__
33733 # include <limits.h>
33734 #else
33735 # include <assert.h>
33736 #endif
33737                      Syntax error
33738 _ACEOF
33739 if { (ac_try="$ac_cpp conftest.$ac_ext"
33740 case "(($ac_try" in
33741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33742   *) ac_try_echo=$ac_try;;
33743 esac
33744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33745   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33746   ac_status=$?
33747   grep -v '^ *+' conftest.er1 >conftest.err
33748   rm -f conftest.er1
33749   cat conftest.err >&5
33750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33751   (exit $ac_status); } >/dev/null && {
33752          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
33753          test ! -s conftest.err
33754        }; then
33755   :
33756 else
33757   echo "$as_me: failed program was:" >&5
33758 sed 's/^/| /' conftest.$ac_ext >&5
33759
33760   # Broken: fails on valid input.
33761 continue
33762 fi
33763
33764 rm -f conftest.err conftest.$ac_ext
33765
33766   # OK, works on sane cases.  Now check whether nonexistent headers
33767   # can be detected and how.
33768   cat >conftest.$ac_ext <<_ACEOF
33769 /* confdefs.h.  */
33770 _ACEOF
33771 cat confdefs.h >>conftest.$ac_ext
33772 cat >>conftest.$ac_ext <<_ACEOF
33773 /* end confdefs.h.  */
33774 #include <ac_nonexistent.h>
33775 _ACEOF
33776 if { (ac_try="$ac_cpp conftest.$ac_ext"
33777 case "(($ac_try" in
33778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33779   *) ac_try_echo=$ac_try;;
33780 esac
33781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33782   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33783   ac_status=$?
33784   grep -v '^ *+' conftest.er1 >conftest.err
33785   rm -f conftest.er1
33786   cat conftest.err >&5
33787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33788   (exit $ac_status); } >/dev/null && {
33789          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
33790          test ! -s conftest.err
33791        }; then
33792   # Broken: success on invalid input.
33793 continue
33794 else
33795   echo "$as_me: failed program was:" >&5
33796 sed 's/^/| /' conftest.$ac_ext >&5
33797
33798   # Passes both tests.
33799 ac_preproc_ok=:
33800 break
33801 fi
33802
33803 rm -f conftest.err conftest.$ac_ext
33804
33805 done
33806 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
33807 rm -f conftest.err conftest.$ac_ext
33808 if $ac_preproc_ok; then
33809   break
33810 fi
33811
33812     done
33813     ac_cv_prog_CXXCPP=$CXXCPP
33814
33815 fi
33816   CXXCPP=$ac_cv_prog_CXXCPP
33817 else
33818   ac_cv_prog_CXXCPP=$CXXCPP
33819 fi
33820 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
33821 echo "${ECHO_T}$CXXCPP" >&6; }
33822 ac_preproc_ok=false
33823 for ac_cxx_preproc_warn_flag in '' yes
33824 do
33825   # Use a header file that comes with gcc, so configuring glibc
33826   # with a fresh cross-compiler works.
33827   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33828   # <limits.h> exists even on freestanding compilers.
33829   # On the NeXT, cc -E runs the code through the compiler's parser,
33830   # not just through cpp. "Syntax error" is here to catch this case.
33831   cat >conftest.$ac_ext <<_ACEOF
33832 /* confdefs.h.  */
33833 _ACEOF
33834 cat confdefs.h >>conftest.$ac_ext
33835 cat >>conftest.$ac_ext <<_ACEOF
33836 /* end confdefs.h.  */
33837 #ifdef __STDC__
33838 # include <limits.h>
33839 #else
33840 # include <assert.h>
33841 #endif
33842                      Syntax error
33843 _ACEOF
33844 if { (ac_try="$ac_cpp conftest.$ac_ext"
33845 case "(($ac_try" in
33846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33847   *) ac_try_echo=$ac_try;;
33848 esac
33849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33850   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33851   ac_status=$?
33852   grep -v '^ *+' conftest.er1 >conftest.err
33853   rm -f conftest.er1
33854   cat conftest.err >&5
33855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33856   (exit $ac_status); } >/dev/null && {
33857          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
33858          test ! -s conftest.err
33859        }; then
33860   :
33861 else
33862   echo "$as_me: failed program was:" >&5
33863 sed 's/^/| /' conftest.$ac_ext >&5
33864
33865   # Broken: fails on valid input.
33866 continue
33867 fi
33868
33869 rm -f conftest.err conftest.$ac_ext
33870
33871   # OK, works on sane cases.  Now check whether nonexistent headers
33872   # can be detected and how.
33873   cat >conftest.$ac_ext <<_ACEOF
33874 /* confdefs.h.  */
33875 _ACEOF
33876 cat confdefs.h >>conftest.$ac_ext
33877 cat >>conftest.$ac_ext <<_ACEOF
33878 /* end confdefs.h.  */
33879 #include <ac_nonexistent.h>
33880 _ACEOF
33881 if { (ac_try="$ac_cpp conftest.$ac_ext"
33882 case "(($ac_try" in
33883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33884   *) ac_try_echo=$ac_try;;
33885 esac
33886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33887   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33888   ac_status=$?
33889   grep -v '^ *+' conftest.er1 >conftest.err
33890   rm -f conftest.er1
33891   cat conftest.err >&5
33892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33893   (exit $ac_status); } >/dev/null && {
33894          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
33895          test ! -s conftest.err
33896        }; then
33897   # Broken: success on invalid input.
33898 continue
33899 else
33900   echo "$as_me: failed program was:" >&5
33901 sed 's/^/| /' conftest.$ac_ext >&5
33902
33903   # Passes both tests.
33904 ac_preproc_ok=:
33905 break
33906 fi
33907
33908 rm -f conftest.err conftest.$ac_ext
33909
33910 done
33911 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
33912 rm -f conftest.err conftest.$ac_ext
33913 if $ac_preproc_ok; then
33914   :
33915 else
33916   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
33917 See \`config.log' for more details." >&5
33918 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
33919 See \`config.log' for more details." >&2;}
33920    { (exit 1); exit 1; }; }
33921 fi
33922
33923 ac_ext=cpp
33924 ac_cpp='$CXXCPP $CPPFLAGS'
33925 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33926 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33927 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33928
33929 fi
33930
33931
33932 ac_ext=f
33933 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
33934 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33935 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
33936 if test -n "$ac_tool_prefix"; then
33937   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
33938   do
33939     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
33940 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
33941 { echo "$as_me:$LINENO: checking for $ac_word" >&5
33942 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
33943 if test "${ac_cv_prog_F77+set}" = set; then
33944   echo $ECHO_N "(cached) $ECHO_C" >&6
33945 else
33946   if test -n "$F77"; then
33947   ac_cv_prog_F77="$F77" # Let the user override the test.
33948 else
33949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33950 for as_dir in $PATH
33951 do
33952   IFS=$as_save_IFS
33953   test -z "$as_dir" && as_dir=.
33954   for ac_exec_ext in '' $ac_executable_extensions; do
33955   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33956     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
33957     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33958     break 2
33959   fi
33960 done
33961 done
33962 IFS=$as_save_IFS
33963
33964 fi
33965 fi
33966 F77=$ac_cv_prog_F77
33967 if test -n "$F77"; then
33968   { echo "$as_me:$LINENO: result: $F77" >&5
33969 echo "${ECHO_T}$F77" >&6; }
33970 else
33971   { echo "$as_me:$LINENO: result: no" >&5
33972 echo "${ECHO_T}no" >&6; }
33973 fi
33974
33975
33976     test -n "$F77" && break
33977   done
33978 fi
33979 if test -z "$F77"; then
33980   ac_ct_F77=$F77
33981   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
33982 do
33983   # Extract the first word of "$ac_prog", so it can be a program name with args.
33984 set dummy $ac_prog; ac_word=$2
33985 { echo "$as_me:$LINENO: checking for $ac_word" >&5
33986 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
33987 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
33988   echo $ECHO_N "(cached) $ECHO_C" >&6
33989 else
33990   if test -n "$ac_ct_F77"; then
33991   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
33992 else
33993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33994 for as_dir in $PATH
33995 do
33996   IFS=$as_save_IFS
33997   test -z "$as_dir" && as_dir=.
33998   for ac_exec_ext in '' $ac_executable_extensions; do
33999   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34000     ac_cv_prog_ac_ct_F77="$ac_prog"
34001     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34002     break 2
34003   fi
34004 done
34005 done
34006 IFS=$as_save_IFS
34007
34008 fi
34009 fi
34010 ac_ct_F77=$ac_cv_prog_ac_ct_F77
34011 if test -n "$ac_ct_F77"; then
34012   { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
34013 echo "${ECHO_T}$ac_ct_F77" >&6; }
34014 else
34015   { echo "$as_me:$LINENO: result: no" >&5
34016 echo "${ECHO_T}no" >&6; }
34017 fi
34018
34019
34020   test -n "$ac_ct_F77" && break
34021 done
34022
34023   if test "x$ac_ct_F77" = x; then
34024     F77=""
34025   else
34026     case $cross_compiling:$ac_tool_warned in
34027 yes:)
34028 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
34029 whose name does not start with the host triplet.  If you think this
34030 configuration is useful to you, please write to autoconf@gnu.org." >&5
34031 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
34032 whose name does not start with the host triplet.  If you think this
34033 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
34034 ac_tool_warned=yes ;;
34035 esac
34036     F77=$ac_ct_F77
34037   fi
34038 fi
34039
34040
34041 # Provide some information about the compiler.
34042 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
34043 ac_compiler=`set X $ac_compile; echo $2`
34044 { (ac_try="$ac_compiler --version >&5"
34045 case "(($ac_try" in
34046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34047   *) ac_try_echo=$ac_try;;
34048 esac
34049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34050   (eval "$ac_compiler --version >&5") 2>&5
34051   ac_status=$?
34052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34053   (exit $ac_status); }
34054 { (ac_try="$ac_compiler -v >&5"
34055 case "(($ac_try" in
34056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34057   *) ac_try_echo=$ac_try;;
34058 esac
34059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34060   (eval "$ac_compiler -v >&5") 2>&5
34061   ac_status=$?
34062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34063   (exit $ac_status); }
34064 { (ac_try="$ac_compiler -V >&5"
34065 case "(($ac_try" in
34066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34067   *) ac_try_echo=$ac_try;;
34068 esac
34069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34070   (eval "$ac_compiler -V >&5") 2>&5
34071   ac_status=$?
34072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34073   (exit $ac_status); }
34074 rm -f a.out
34075
34076 # If we don't use `.F' as extension, the preprocessor is not run on the
34077 # input file.  (Note that this only needs to work for GNU compilers.)
34078 ac_save_ext=$ac_ext
34079 ac_ext=F
34080 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
34081 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
34082 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
34083   echo $ECHO_N "(cached) $ECHO_C" >&6
34084 else
34085   cat >conftest.$ac_ext <<_ACEOF
34086       program main
34087 #ifndef __GNUC__
34088        choke me
34089 #endif
34090
34091       end
34092 _ACEOF
34093 rm -f conftest.$ac_objext
34094 if { (ac_try="$ac_compile"
34095 case "(($ac_try" in
34096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34097   *) ac_try_echo=$ac_try;;
34098 esac
34099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34100   (eval "$ac_compile") 2>conftest.er1
34101   ac_status=$?
34102   grep -v '^ *+' conftest.er1 >conftest.err
34103   rm -f conftest.er1
34104   cat conftest.err >&5
34105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34106   (exit $ac_status); } && {
34107          test -z "$ac_f77_werror_flag" ||
34108          test ! -s conftest.err
34109        } && test -s conftest.$ac_objext; then
34110   ac_compiler_gnu=yes
34111 else
34112   echo "$as_me: failed program was:" >&5
34113 sed 's/^/| /' conftest.$ac_ext >&5
34114
34115         ac_compiler_gnu=no
34116 fi
34117
34118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34119 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
34120
34121 fi
34122 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
34123 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
34124 ac_ext=$ac_save_ext
34125 ac_test_FFLAGS=${FFLAGS+set}
34126 ac_save_FFLAGS=$FFLAGS
34127 FFLAGS=
34128 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
34129 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
34130 if test "${ac_cv_prog_f77_g+set}" = set; then
34131   echo $ECHO_N "(cached) $ECHO_C" >&6
34132 else
34133   FFLAGS=-g
34134 cat >conftest.$ac_ext <<_ACEOF
34135       program main
34136
34137       end
34138 _ACEOF
34139 rm -f conftest.$ac_objext
34140 if { (ac_try="$ac_compile"
34141 case "(($ac_try" in
34142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34143   *) ac_try_echo=$ac_try;;
34144 esac
34145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34146   (eval "$ac_compile") 2>conftest.er1
34147   ac_status=$?
34148   grep -v '^ *+' conftest.er1 >conftest.err
34149   rm -f conftest.er1
34150   cat conftest.err >&5
34151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34152   (exit $ac_status); } && {
34153          test -z "$ac_f77_werror_flag" ||
34154          test ! -s conftest.err
34155        } && test -s conftest.$ac_objext; then
34156   ac_cv_prog_f77_g=yes
34157 else
34158   echo "$as_me: failed program was:" >&5
34159 sed 's/^/| /' conftest.$ac_ext >&5
34160
34161         ac_cv_prog_f77_g=no
34162 fi
34163
34164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34165
34166 fi
34167 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
34168 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
34169 if test "$ac_test_FFLAGS" = set; then
34170   FFLAGS=$ac_save_FFLAGS
34171 elif test $ac_cv_prog_f77_g = yes; then
34172   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
34173     FFLAGS="-g -O2"
34174   else
34175     FFLAGS="-g"
34176   fi
34177 else
34178   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
34179     FFLAGS="-O2"
34180   else
34181     FFLAGS=
34182   fi
34183 fi
34184
34185 G77=`test $ac_compiler_gnu = yes && echo yes`
34186 ac_ext=c
34187 ac_cpp='$CPP $CPPFLAGS'
34188 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34189 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34190 ac_compiler_gnu=$ac_cv_c_compiler_gnu
34191
34192
34193
34194 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
34195
34196 # find the maximum length of command line arguments
34197 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
34198 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
34199 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
34200   echo $ECHO_N "(cached) $ECHO_C" >&6
34201 else
34202     i=0
34203   teststring="ABCD"
34204
34205   case $build_os in
34206   msdosdjgpp*)
34207     # On DJGPP, this test can blow up pretty badly due to problems in libc
34208     # (any single argument exceeding 2000 bytes causes a buffer overrun
34209     # during glob expansion).  Even if it were fixed, the result of this
34210     # check would be larger than it should be.
34211     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
34212     ;;
34213
34214   gnu*)
34215     # Under GNU Hurd, this test is not required because there is
34216     # no limit to the length of command line arguments.
34217     # Libtool will interpret -1 as no limit whatsoever
34218     lt_cv_sys_max_cmd_len=-1;
34219     ;;
34220
34221   cygwin* | mingw*)
34222     # On Win9x/ME, this test blows up -- it succeeds, but takes
34223     # about 5 minutes as the teststring grows exponentially.
34224     # Worse, since 9x/ME are not pre-emptively multitasking,
34225     # you end up with a "frozen" computer, even though with patience
34226     # the test eventually succeeds (with a max line length of 256k).
34227     # Instead, let's just punt: use the minimum linelength reported by
34228     # all of the supported platforms: 8192 (on NT/2K/XP).
34229     lt_cv_sys_max_cmd_len=8192;
34230     ;;
34231
34232   amigaos*)
34233     # On AmigaOS with pdksh, this test takes hours, literally.
34234     # So we just punt and use a minimum line length of 8192.
34235     lt_cv_sys_max_cmd_len=8192;
34236     ;;
34237
34238   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
34239     # This has been around since 386BSD, at least.  Likely further.
34240     if test -x /sbin/sysctl; then
34241       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
34242     elif test -x /usr/sbin/sysctl; then
34243       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
34244     else
34245       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
34246     fi
34247     # And add a safety zone
34248     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
34249     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
34250     ;;
34251   osf*)
34252     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
34253     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
34254     # nice to cause kernel panics so lets avoid the loop below.
34255     # First set a reasonable default.
34256     lt_cv_sys_max_cmd_len=16384
34257     #
34258     if test -x /sbin/sysconfig; then
34259       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
34260         *1*) lt_cv_sys_max_cmd_len=-1 ;;
34261       esac
34262     fi
34263     ;;
34264   *)
34265     # If test is not a shell built-in, we'll probably end up computing a
34266     # maximum length that is only half of the actual maximum length, but
34267     # we can't tell.
34268     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
34269     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
34270                = "XX$teststring") >/dev/null 2>&1 &&
34271             new_result=`expr "X$teststring" : ".*" 2>&1` &&
34272             lt_cv_sys_max_cmd_len=$new_result &&
34273             test $i != 17 # 1/2 MB should be enough
34274     do
34275       i=`expr $i + 1`
34276       teststring=$teststring$teststring
34277     done
34278     teststring=
34279     # Add a significant safety factor because C++ compilers can tack on massive
34280     # amounts of additional arguments before passing them to the linker.
34281     # It appears as though 1/2 is a usable value.
34282     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
34283     ;;
34284   esac
34285
34286 fi
34287
34288 if test -n $lt_cv_sys_max_cmd_len ; then
34289   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
34290 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
34291 else
34292   { echo "$as_me:$LINENO: result: none" >&5
34293 echo "${ECHO_T}none" >&6; }
34294 fi
34295
34296
34297
34298
34299 # Check for command to grab the raw symbol name followed by C symbol from nm.
34300 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
34301 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
34302 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
34303   echo $ECHO_N "(cached) $ECHO_C" >&6
34304 else
34305
34306 # These are sane defaults that work on at least a few old systems.
34307 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
34308
34309 # Character class describing NM global symbol codes.
34310 symcode='[BCDEGRST]'
34311
34312 # Regexp to match symbols that can be accessed directly from C.
34313 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
34314
34315 # Transform an extracted symbol line into a proper C declaration
34316 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
34317
34318 # Transform an extracted symbol line into symbol name and symbol address
34319 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'"
34320
34321 # Define system-specific variables.
34322 case $host_os in
34323 aix*)
34324   symcode='[BCDT]'
34325   ;;
34326 cygwin* | mingw* | pw32*)
34327   symcode='[ABCDGISTW]'
34328   ;;
34329 hpux*) # Its linker distinguishes data from code symbols
34330   if test "$host_cpu" = ia64; then
34331     symcode='[ABCDEGRST]'
34332   fi
34333   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
34334   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'"
34335   ;;
34336 linux*)
34337   if test "$host_cpu" = ia64; then
34338     symcode='[ABCDGIRSTW]'
34339     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
34340     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'"
34341   fi
34342   ;;
34343 irix* | nonstopux*)
34344   symcode='[BCDEGRST]'
34345   ;;
34346 osf*)
34347   symcode='[BCDEGQRST]'
34348   ;;
34349 solaris* | sysv5*)
34350   symcode='[BDRT]'
34351   ;;
34352 sysv4)
34353   symcode='[DFNSTU]'
34354   ;;
34355 esac
34356
34357 # Handle CRLF in mingw tool chain
34358 opt_cr=
34359 case $build_os in
34360 mingw*)
34361   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
34362   ;;
34363 esac
34364
34365 # If we're using GNU nm, then use its standard symbol codes.
34366 case `$NM -V 2>&1` in
34367 *GNU* | *'with BFD'*)
34368   symcode='[ABCDGIRSTW]' ;;
34369 esac
34370
34371 # Try without a prefix undercore, then with it.
34372 for ac_symprfx in "" "_"; do
34373
34374   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
34375   symxfrm="\\1 $ac_symprfx\\2 \\2"
34376
34377   # Write the raw and C identifiers.
34378   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
34379
34380   # Check to see that the pipe works correctly.
34381   pipe_works=no
34382
34383   rm -f conftest*
34384   cat > conftest.$ac_ext <<EOF
34385 #ifdef __cplusplus
34386 extern "C" {
34387 #endif
34388 char nm_test_var;
34389 void nm_test_func(){}
34390 #ifdef __cplusplus
34391 }
34392 #endif
34393 int main(){nm_test_var='a';nm_test_func();return(0);}
34394 EOF
34395
34396   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34397   (eval $ac_compile) 2>&5
34398   ac_status=$?
34399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34400   (exit $ac_status); }; then
34401     # Now try to grab the symbols.
34402     nlist=conftest.nm
34403     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
34404   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
34405   ac_status=$?
34406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34407   (exit $ac_status); } && test -s "$nlist"; then
34408       # Try sorting and uniquifying the output.
34409       if sort "$nlist" | uniq > "$nlist"T; then
34410         mv -f "$nlist"T "$nlist"
34411       else
34412         rm -f "$nlist"T
34413       fi
34414
34415       # Make sure that we snagged all the symbols we need.
34416       if grep ' nm_test_var$' "$nlist" >/dev/null; then
34417         if grep ' nm_test_func$' "$nlist" >/dev/null; then
34418           cat <<EOF > conftest.$ac_ext
34419 #ifdef __cplusplus
34420 extern "C" {
34421 #endif
34422
34423 EOF
34424           # Now generate the symbol file.
34425           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
34426
34427           cat <<EOF >> conftest.$ac_ext
34428 #if defined (__STDC__) && __STDC__
34429 # define lt_ptr_t void *
34430 #else
34431 # define lt_ptr_t char *
34432 # define const
34433 #endif
34434
34435 /* The mapping between symbol names and symbols. */
34436 const struct {
34437   const char *name;
34438   lt_ptr_t address;
34439 }
34440 lt_preloaded_symbols[] =
34441 {
34442 EOF
34443           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
34444           cat <<\EOF >> conftest.$ac_ext
34445   {0, (lt_ptr_t) 0}
34446 };
34447
34448 #ifdef __cplusplus
34449 }
34450 #endif
34451 EOF
34452           # Now try linking the two files.
34453           mv conftest.$ac_objext conftstm.$ac_objext
34454           lt_save_LIBS="$LIBS"
34455           lt_save_CFLAGS="$CFLAGS"
34456           LIBS="conftstm.$ac_objext"
34457           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
34458           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34459   (eval $ac_link) 2>&5
34460   ac_status=$?
34461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34462   (exit $ac_status); } && test -s conftest${ac_exeext}; then
34463             pipe_works=yes
34464           fi
34465           LIBS="$lt_save_LIBS"
34466           CFLAGS="$lt_save_CFLAGS"
34467         else
34468           echo "cannot find nm_test_func in $nlist" >&5
34469         fi
34470       else
34471         echo "cannot find nm_test_var in $nlist" >&5
34472       fi
34473     else
34474       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
34475     fi
34476   else
34477     echo "$progname: failed program was:" >&5
34478     cat conftest.$ac_ext >&5
34479   fi
34480   rm -f conftest* conftst*
34481
34482   # Do not use the global_symbol_pipe unless it works.
34483   if test "$pipe_works" = yes; then
34484     break
34485   else
34486     lt_cv_sys_global_symbol_pipe=
34487   fi
34488 done
34489
34490 fi
34491
34492 if test -z "$lt_cv_sys_global_symbol_pipe"; then
34493   lt_cv_sys_global_symbol_to_cdecl=
34494 fi
34495 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
34496   { echo "$as_me:$LINENO: result: failed" >&5
34497 echo "${ECHO_T}failed" >&6; }
34498 else
34499   { echo "$as_me:$LINENO: result: ok" >&5
34500 echo "${ECHO_T}ok" >&6; }
34501 fi
34502
34503 { echo "$as_me:$LINENO: checking for objdir" >&5
34504 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
34505 if test "${lt_cv_objdir+set}" = set; then
34506   echo $ECHO_N "(cached) $ECHO_C" >&6
34507 else
34508   rm -f .libs 2>/dev/null
34509 mkdir .libs 2>/dev/null
34510 if test -d .libs; then
34511   lt_cv_objdir=.libs
34512 else
34513   # MS-DOS does not allow filenames that begin with a dot.
34514   lt_cv_objdir=_libs
34515 fi
34516 rmdir .libs 2>/dev/null
34517 fi
34518 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
34519 echo "${ECHO_T}$lt_cv_objdir" >&6; }
34520 objdir=$lt_cv_objdir
34521
34522
34523
34524
34525
34526 case $host_os in
34527 aix3*)
34528   # AIX sometimes has problems with the GCC collect2 program.  For some
34529   # reason, if we set the COLLECT_NAMES environment variable, the problems
34530   # vanish in a puff of smoke.
34531   if test "X${COLLECT_NAMES+set}" != Xset; then
34532     COLLECT_NAMES=
34533     export COLLECT_NAMES
34534   fi
34535   ;;
34536 esac
34537
34538 # Sed substitution that helps us do robust quoting.  It backslashifies
34539 # metacharacters that are still active within double-quoted strings.
34540 Xsed='sed -e 1s/^X//'
34541 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
34542
34543 # Same as above, but do not quote variable references.
34544 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
34545
34546 # Sed substitution to delay expansion of an escaped shell variable in a
34547 # double_quote_subst'ed string.
34548 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
34549
34550 # Sed substitution to avoid accidental globbing in evaled expressions
34551 no_glob_subst='s/\*/\\\*/g'
34552
34553 # Constants:
34554 rm="rm -f"
34555
34556 # Global variables:
34557 default_ofile=libtool
34558 can_build_shared=yes
34559
34560 # All known linkers require a `.a' archive for static linking (except MSVC,
34561 # which needs '.lib').
34562 libext=a
34563 ltmain="$ac_aux_dir/ltmain.sh"
34564 ofile="$default_ofile"
34565 with_gnu_ld="$lt_cv_prog_gnu_ld"
34566
34567 if test -n "$ac_tool_prefix"; then
34568   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
34569 set dummy ${ac_tool_prefix}ar; ac_word=$2
34570 { echo "$as_me:$LINENO: checking for $ac_word" >&5
34571 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
34572 if test "${ac_cv_prog_AR+set}" = set; then
34573   echo $ECHO_N "(cached) $ECHO_C" >&6
34574 else
34575   if test -n "$AR"; then
34576   ac_cv_prog_AR="$AR" # Let the user override the test.
34577 else
34578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34579 for as_dir in $PATH
34580 do
34581   IFS=$as_save_IFS
34582   test -z "$as_dir" && as_dir=.
34583   for ac_exec_ext in '' $ac_executable_extensions; do
34584   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34585     ac_cv_prog_AR="${ac_tool_prefix}ar"
34586     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34587     break 2
34588   fi
34589 done
34590 done
34591 IFS=$as_save_IFS
34592
34593 fi
34594 fi
34595 AR=$ac_cv_prog_AR
34596 if test -n "$AR"; then
34597   { echo "$as_me:$LINENO: result: $AR" >&5
34598 echo "${ECHO_T}$AR" >&6; }
34599 else
34600   { echo "$as_me:$LINENO: result: no" >&5
34601 echo "${ECHO_T}no" >&6; }
34602 fi
34603
34604
34605 fi
34606 if test -z "$ac_cv_prog_AR"; then
34607   ac_ct_AR=$AR
34608   # Extract the first word of "ar", so it can be a program name with args.
34609 set dummy ar; ac_word=$2
34610 { echo "$as_me:$LINENO: checking for $ac_word" >&5
34611 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
34612 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
34613   echo $ECHO_N "(cached) $ECHO_C" >&6
34614 else
34615   if test -n "$ac_ct_AR"; then
34616   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
34617 else
34618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34619 for as_dir in $PATH
34620 do
34621   IFS=$as_save_IFS
34622   test -z "$as_dir" && as_dir=.
34623   for ac_exec_ext in '' $ac_executable_extensions; do
34624   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34625     ac_cv_prog_ac_ct_AR="ar"
34626     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34627     break 2
34628   fi
34629 done
34630 done
34631 IFS=$as_save_IFS
34632
34633 fi
34634 fi
34635 ac_ct_AR=$ac_cv_prog_ac_ct_AR
34636 if test -n "$ac_ct_AR"; then
34637   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
34638 echo "${ECHO_T}$ac_ct_AR" >&6; }
34639 else
34640   { echo "$as_me:$LINENO: result: no" >&5
34641 echo "${ECHO_T}no" >&6; }
34642 fi
34643
34644   if test "x$ac_ct_AR" = x; then
34645     AR="false"
34646   else
34647     case $cross_compiling:$ac_tool_warned in
34648 yes:)
34649 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
34650 whose name does not start with the host triplet.  If you think this
34651 configuration is useful to you, please write to autoconf@gnu.org." >&5
34652 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
34653 whose name does not start with the host triplet.  If you think this
34654 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
34655 ac_tool_warned=yes ;;
34656 esac
34657     AR=$ac_ct_AR
34658   fi
34659 else
34660   AR="$ac_cv_prog_AR"
34661 fi
34662
34663 if test -n "$ac_tool_prefix"; then
34664   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
34665 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
34666 { echo "$as_me:$LINENO: checking for $ac_word" >&5
34667 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
34668 if test "${ac_cv_prog_RANLIB+set}" = set; then
34669   echo $ECHO_N "(cached) $ECHO_C" >&6
34670 else
34671   if test -n "$RANLIB"; then
34672   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
34673 else
34674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34675 for as_dir in $PATH
34676 do
34677   IFS=$as_save_IFS
34678   test -z "$as_dir" && as_dir=.
34679   for ac_exec_ext in '' $ac_executable_extensions; do
34680   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34681     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
34682     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34683     break 2
34684   fi
34685 done
34686 done
34687 IFS=$as_save_IFS
34688
34689 fi
34690 fi
34691 RANLIB=$ac_cv_prog_RANLIB
34692 if test -n "$RANLIB"; then
34693   { echo "$as_me:$LINENO: result: $RANLIB" >&5
34694 echo "${ECHO_T}$RANLIB" >&6; }
34695 else
34696   { echo "$as_me:$LINENO: result: no" >&5
34697 echo "${ECHO_T}no" >&6; }
34698 fi
34699
34700
34701 fi
34702 if test -z "$ac_cv_prog_RANLIB"; then
34703   ac_ct_RANLIB=$RANLIB
34704   # Extract the first word of "ranlib", so it can be a program name with args.
34705 set dummy ranlib; ac_word=$2
34706 { echo "$as_me:$LINENO: checking for $ac_word" >&5
34707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
34708 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
34709   echo $ECHO_N "(cached) $ECHO_C" >&6
34710 else
34711   if test -n "$ac_ct_RANLIB"; then
34712   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
34713 else
34714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34715 for as_dir in $PATH
34716 do
34717   IFS=$as_save_IFS
34718   test -z "$as_dir" && as_dir=.
34719   for ac_exec_ext in '' $ac_executable_extensions; do
34720   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34721     ac_cv_prog_ac_ct_RANLIB="ranlib"
34722     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34723     break 2
34724   fi
34725 done
34726 done
34727 IFS=$as_save_IFS
34728
34729 fi
34730 fi
34731 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
34732 if test -n "$ac_ct_RANLIB"; then
34733   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
34734 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
34735 else
34736   { echo "$as_me:$LINENO: result: no" >&5
34737 echo "${ECHO_T}no" >&6; }
34738 fi
34739
34740   if test "x$ac_ct_RANLIB" = x; then
34741     RANLIB=":"
34742   else
34743     case $cross_compiling:$ac_tool_warned in
34744 yes:)
34745 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
34746 whose name does not start with the host triplet.  If you think this
34747 configuration is useful to you, please write to autoconf@gnu.org." >&5
34748 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
34749 whose name does not start with the host triplet.  If you think this
34750 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
34751 ac_tool_warned=yes ;;
34752 esac
34753     RANLIB=$ac_ct_RANLIB
34754   fi
34755 else
34756   RANLIB="$ac_cv_prog_RANLIB"
34757 fi
34758
34759 if test -n "$ac_tool_prefix"; then
34760   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
34761 set dummy ${ac_tool_prefix}strip; ac_word=$2
34762 { echo "$as_me:$LINENO: checking for $ac_word" >&5
34763 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
34764 if test "${ac_cv_prog_STRIP+set}" = set; then
34765   echo $ECHO_N "(cached) $ECHO_C" >&6
34766 else
34767   if test -n "$STRIP"; then
34768   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
34769 else
34770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34771 for as_dir in $PATH
34772 do
34773   IFS=$as_save_IFS
34774   test -z "$as_dir" && as_dir=.
34775   for ac_exec_ext in '' $ac_executable_extensions; do
34776   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34777     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
34778     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34779     break 2
34780   fi
34781 done
34782 done
34783 IFS=$as_save_IFS
34784
34785 fi
34786 fi
34787 STRIP=$ac_cv_prog_STRIP
34788 if test -n "$STRIP"; then
34789   { echo "$as_me:$LINENO: result: $STRIP" >&5
34790 echo "${ECHO_T}$STRIP" >&6; }
34791 else
34792   { echo "$as_me:$LINENO: result: no" >&5
34793 echo "${ECHO_T}no" >&6; }
34794 fi
34795
34796
34797 fi
34798 if test -z "$ac_cv_prog_STRIP"; then
34799   ac_ct_STRIP=$STRIP
34800   # Extract the first word of "strip", so it can be a program name with args.
34801 set dummy strip; ac_word=$2
34802 { echo "$as_me:$LINENO: checking for $ac_word" >&5
34803 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
34804 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
34805   echo $ECHO_N "(cached) $ECHO_C" >&6
34806 else
34807   if test -n "$ac_ct_STRIP"; then
34808   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
34809 else
34810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34811 for as_dir in $PATH
34812 do
34813   IFS=$as_save_IFS
34814   test -z "$as_dir" && as_dir=.
34815   for ac_exec_ext in '' $ac_executable_extensions; do
34816   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34817     ac_cv_prog_ac_ct_STRIP="strip"
34818     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34819     break 2
34820   fi
34821 done
34822 done
34823 IFS=$as_save_IFS
34824
34825 fi
34826 fi
34827 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
34828 if test -n "$ac_ct_STRIP"; then
34829   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
34830 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
34831 else
34832   { echo "$as_me:$LINENO: result: no" >&5
34833 echo "${ECHO_T}no" >&6; }
34834 fi
34835
34836   if test "x$ac_ct_STRIP" = x; then
34837     STRIP=":"
34838   else
34839     case $cross_compiling:$ac_tool_warned in
34840 yes:)
34841 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
34842 whose name does not start with the host triplet.  If you think this
34843 configuration is useful to you, please write to autoconf@gnu.org." >&5
34844 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
34845 whose name does not start with the host triplet.  If you think this
34846 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
34847 ac_tool_warned=yes ;;
34848 esac
34849     STRIP=$ac_ct_STRIP
34850   fi
34851 else
34852   STRIP="$ac_cv_prog_STRIP"
34853 fi
34854
34855
34856 old_CC="$CC"
34857 old_CFLAGS="$CFLAGS"
34858
34859 # Set sane defaults for various variables
34860 test -z "$AR" && AR=ar
34861 test -z "$AR_FLAGS" && AR_FLAGS=cru
34862 test -z "$AS" && AS=as
34863 test -z "$CC" && CC=cc
34864 test -z "$LTCC" && LTCC=$CC
34865 test -z "$DLLTOOL" && DLLTOOL=dlltool
34866 test -z "$LD" && LD=ld
34867 test -z "$LN_S" && LN_S="ln -s"
34868 test -z "$MAGIC_CMD" && MAGIC_CMD=file
34869 test -z "$NM" && NM=nm
34870 test -z "$SED" && SED=sed
34871 test -z "$OBJDUMP" && OBJDUMP=objdump
34872 test -z "$RANLIB" && RANLIB=:
34873 test -z "$STRIP" && STRIP=:
34874 test -z "$ac_objext" && ac_objext=o
34875
34876 # Determine commands to create old-style static archives.
34877 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
34878 old_postinstall_cmds='chmod 644 $oldlib'
34879 old_postuninstall_cmds=
34880
34881 if test -n "$RANLIB"; then
34882   case $host_os in
34883   openbsd*)
34884     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
34885     ;;
34886   *)
34887     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
34888     ;;
34889   esac
34890   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
34891 fi
34892
34893 for cc_temp in $compiler""; do
34894   case $cc_temp in
34895     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
34896     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
34897     \-*) ;;
34898     *) break;;
34899   esac
34900 done
34901 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
34902
34903
34904 # Only perform the check for file, if the check method requires it
34905 case $deplibs_check_method in
34906 file_magic*)
34907   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
34908     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
34909 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
34910 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
34911   echo $ECHO_N "(cached) $ECHO_C" >&6
34912 else
34913   case $MAGIC_CMD in
34914 [\\/*] |  ?:[\\/]*)
34915   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
34916   ;;
34917 *)
34918   lt_save_MAGIC_CMD="$MAGIC_CMD"
34919   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
34920   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
34921   for ac_dir in $ac_dummy; do
34922     IFS="$lt_save_ifs"
34923     test -z "$ac_dir" && ac_dir=.
34924     if test -f $ac_dir/${ac_tool_prefix}file; then
34925       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
34926       if test -n "$file_magic_test_file"; then
34927         case $deplibs_check_method in
34928         "file_magic "*)
34929           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
34930           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
34931           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
34932             $EGREP "$file_magic_regex" > /dev/null; then
34933             :
34934           else
34935             cat <<EOF 1>&2
34936
34937 *** Warning: the command libtool uses to detect shared libraries,
34938 *** $file_magic_cmd, produces output that libtool cannot recognize.
34939 *** The result is that libtool may fail to recognize shared libraries
34940 *** as such.  This will affect the creation of libtool libraries that
34941 *** depend on shared libraries, but programs linked with such libtool
34942 *** libraries will work regardless of this problem.  Nevertheless, you
34943 *** may want to report the problem to your system manager and/or to
34944 *** bug-libtool@gnu.org
34945
34946 EOF
34947           fi ;;
34948         esac
34949       fi
34950       break
34951     fi
34952   done
34953   IFS="$lt_save_ifs"
34954   MAGIC_CMD="$lt_save_MAGIC_CMD"
34955   ;;
34956 esac
34957 fi
34958
34959 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
34960 if test -n "$MAGIC_CMD"; then
34961   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
34962 echo "${ECHO_T}$MAGIC_CMD" >&6; }
34963 else
34964   { echo "$as_me:$LINENO: result: no" >&5
34965 echo "${ECHO_T}no" >&6; }
34966 fi
34967
34968 if test -z "$lt_cv_path_MAGIC_CMD"; then
34969   if test -n "$ac_tool_prefix"; then
34970     { echo "$as_me:$LINENO: checking for file" >&5
34971 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
34972 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
34973   echo $ECHO_N "(cached) $ECHO_C" >&6
34974 else
34975   case $MAGIC_CMD in
34976 [\\/*] |  ?:[\\/]*)
34977   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
34978   ;;
34979 *)
34980   lt_save_MAGIC_CMD="$MAGIC_CMD"
34981   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
34982   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
34983   for ac_dir in $ac_dummy; do
34984     IFS="$lt_save_ifs"
34985     test -z "$ac_dir" && ac_dir=.
34986     if test -f $ac_dir/file; then
34987       lt_cv_path_MAGIC_CMD="$ac_dir/file"
34988       if test -n "$file_magic_test_file"; then
34989         case $deplibs_check_method in
34990         "file_magic "*)
34991           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
34992           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
34993           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
34994             $EGREP "$file_magic_regex" > /dev/null; then
34995             :
34996           else
34997             cat <<EOF 1>&2
34998
34999 *** Warning: the command libtool uses to detect shared libraries,
35000 *** $file_magic_cmd, produces output that libtool cannot recognize.
35001 *** The result is that libtool may fail to recognize shared libraries
35002 *** as such.  This will affect the creation of libtool libraries that
35003 *** depend on shared libraries, but programs linked with such libtool
35004 *** libraries will work regardless of this problem.  Nevertheless, you
35005 *** may want to report the problem to your system manager and/or to
35006 *** bug-libtool@gnu.org
35007
35008 EOF
35009           fi ;;
35010         esac
35011       fi
35012       break
35013     fi
35014   done
35015   IFS="$lt_save_ifs"
35016   MAGIC_CMD="$lt_save_MAGIC_CMD"
35017   ;;
35018 esac
35019 fi
35020
35021 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
35022 if test -n "$MAGIC_CMD"; then
35023   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
35024 echo "${ECHO_T}$MAGIC_CMD" >&6; }
35025 else
35026   { echo "$as_me:$LINENO: result: no" >&5
35027 echo "${ECHO_T}no" >&6; }
35028 fi
35029
35030   else
35031     MAGIC_CMD=:
35032   fi
35033 fi
35034
35035   fi
35036   ;;
35037 esac
35038
35039 enable_dlopen=no
35040 enable_win32_dll=no
35041
35042 # Check whether --enable-libtool-lock was given.
35043 if test "${enable_libtool_lock+set}" = set; then
35044   enableval=$enable_libtool_lock;
35045 fi
35046
35047 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
35048
35049
35050 # Check whether --with-pic was given.
35051 if test "${with_pic+set}" = set; then
35052   withval=$with_pic; pic_mode="$withval"
35053 else
35054   pic_mode=default
35055 fi
35056
35057 test -z "$pic_mode" && pic_mode=default
35058
35059 # Use C for the default configuration in the libtool script
35060 tagname=
35061 lt_save_CC="$CC"
35062 ac_ext=c
35063 ac_cpp='$CPP $CPPFLAGS'
35064 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35065 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35066 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35067
35068
35069 # Source file extension for C test sources.
35070 ac_ext=c
35071
35072 # Object file extension for compiled C test sources.
35073 objext=o
35074 objext=$objext
35075
35076 # Code to be used in simple compile tests
35077 lt_simple_compile_test_code="int some_variable = 0;\n"
35078
35079 # Code to be used in simple link tests
35080 lt_simple_link_test_code='int main(){return(0);}\n'
35081
35082
35083 # If no C compiler was specified, use CC.
35084 LTCC=${LTCC-"$CC"}
35085
35086 # Allow CC to be a program name with arguments.
35087 compiler=$CC
35088
35089
35090 # save warnings/boilerplate of simple test code
35091 ac_outfile=conftest.$ac_objext
35092 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
35093 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
35094 _lt_compiler_boilerplate=`cat conftest.err`
35095 $rm conftest*
35096
35097 ac_outfile=conftest.$ac_objext
35098 printf "$lt_simple_link_test_code" >conftest.$ac_ext
35099 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
35100 _lt_linker_boilerplate=`cat conftest.err`
35101 $rm conftest*
35102
35103
35104 #
35105 # Check for any special shared library compilation flags.
35106 #
35107 lt_prog_cc_shlib=
35108 if test "$GCC" = no; then
35109   case $host_os in
35110   sco3.2v5*)
35111     lt_prog_cc_shlib='-belf'
35112     ;;
35113   esac
35114 fi
35115 if test -n "$lt_prog_cc_shlib"; then
35116
35117     { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
35118 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
35119
35120
35121     cat <<AAW_EOF >>config.warnings
35122 \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries
35123 AAW_EOF
35124
35125
35126   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
35127   else
35128
35129     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
35130 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
35131
35132
35133     cat <<AAW_EOF >>config.warnings
35134 add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure
35135 AAW_EOF
35136
35137
35138     lt_cv_prog_cc_can_build_shared=no
35139   fi
35140 fi
35141
35142
35143 #
35144 # Check to make sure the static flag actually works.
35145 #
35146 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
35147 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6; }
35148 if test "${lt_prog_compiler_static_works+set}" = set; then
35149   echo $ECHO_N "(cached) $ECHO_C" >&6
35150 else
35151   lt_prog_compiler_static_works=no
35152    save_LDFLAGS="$LDFLAGS"
35153    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
35154    printf "$lt_simple_link_test_code" > conftest.$ac_ext
35155    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
35156      # The linker can only warn and ignore the option if not recognized
35157      # So say no if there are warnings
35158      if test -s conftest.err; then
35159        # Append any errors to the config.log.
35160        cat conftest.err 1>&5
35161        $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
35162        $SED '/^$/d' conftest.err >conftest.er2
35163        if diff conftest.exp conftest.er2 >/dev/null; then
35164          lt_prog_compiler_static_works=yes
35165        fi
35166      else
35167        lt_prog_compiler_static_works=yes
35168      fi
35169    fi
35170    $rm conftest*
35171    LDFLAGS="$save_LDFLAGS"
35172
35173 fi
35174 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
35175 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
35176
35177 if test x"$lt_prog_compiler_static_works" = xyes; then
35178     :
35179 else
35180     lt_prog_compiler_static=
35181 fi
35182
35183
35184
35185 ## CAVEAT EMPTOR:
35186 ## There is no encapsulation within the following macros, do not change
35187 ## the running order or otherwise move them around unless you know exactly
35188 ## what you are doing...
35189
35190 lt_prog_compiler_no_builtin_flag=
35191
35192 if test "$GCC" = yes; then
35193   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
35194
35195
35196 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
35197 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
35198 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
35199   echo $ECHO_N "(cached) $ECHO_C" >&6
35200 else
35201   lt_cv_prog_compiler_rtti_exceptions=no
35202   ac_outfile=conftest.$ac_objext
35203    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
35204    lt_compiler_flag="-fno-rtti -fno-exceptions"
35205    # Insert the option either (1) after the last *FLAGS variable, or
35206    # (2) before a word containing "conftest.", or (3) at the end.
35207    # Note that $ac_compile itself does not contain backslashes and begins
35208    # with a dollar sign (not a hyphen), so the echo should work correctly.
35209    # The option is referenced via a variable to avoid confusing sed.
35210    lt_compile=`echo "$ac_compile" | $SED \
35211    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
35212    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
35213    -e 's:$: $lt_compiler_flag:'`
35214    (eval echo "\"\$as_me:35214: $lt_compile\"" >&5)
35215    (eval "$lt_compile" 2>conftest.err)
35216    ac_status=$?
35217    cat conftest.err >&5
35218    echo "$as_me:35218: \$? = $ac_status" >&5
35219    if (exit $ac_status) && test -s "$ac_outfile"; then
35220      # The compiler can only warn and ignore the option if not recognized
35221      # So say no if there are warnings other than the usual output.
35222      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
35223      $SED '/^$/d' conftest.err >conftest.er2
35224      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
35225        lt_cv_prog_compiler_rtti_exceptions=yes
35226      fi
35227    fi
35228    $rm conftest*
35229
35230 fi
35231 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
35232 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
35233
35234 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
35235     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
35236 else
35237     :
35238 fi
35239
35240 fi
35241
35242 lt_prog_compiler_wl=
35243 lt_prog_compiler_pic=
35244 lt_prog_compiler_static=
35245
35246 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
35247 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
35248
35249   if test "$GCC" = yes; then
35250     lt_prog_compiler_wl='-Wl,'
35251     lt_prog_compiler_static='-static'
35252
35253     case $host_os in
35254       aix*)
35255       # All AIX code is PIC.
35256       if test "$host_cpu" = ia64; then
35257         # AIX 5 now supports IA64 processor
35258         lt_prog_compiler_static='-Bstatic'
35259       fi
35260       ;;
35261
35262     amigaos*)
35263       # FIXME: we need at least 68020 code to build shared libraries, but
35264       # adding the `-m68020' flag to GCC prevents building anything better,
35265       # like `-m68040'.
35266       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
35267       ;;
35268
35269     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
35270       # PIC is the default for these OSes.
35271       ;;
35272
35273     mingw* | pw32* | os2*)
35274       # This hack is so that the source file can tell whether it is being
35275       # built for inclusion in a dll (and should export symbols for example).
35276       lt_prog_compiler_pic='-DDLL_EXPORT'
35277       ;;
35278
35279     darwin* | rhapsody*)
35280       # PIC is the default on this platform
35281       # Common symbols not allowed in MH_DYLIB files
35282       lt_prog_compiler_pic='-fno-common'
35283       ;;
35284
35285     msdosdjgpp*)
35286       # Just because we use GCC doesn't mean we suddenly get shared libraries
35287       # on systems that don't support them.
35288       lt_prog_compiler_can_build_shared=no
35289       enable_shared=no
35290       ;;
35291
35292     sysv4*MP*)
35293       if test -d /usr/nec; then
35294         lt_prog_compiler_pic=-Kconform_pic
35295       fi
35296       ;;
35297
35298     hpux*)
35299       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
35300       # not for PA HP-UX.
35301       case $host_cpu in
35302       hppa*64*|ia64*)
35303         # +Z the default
35304         ;;
35305       *)
35306         lt_prog_compiler_pic='-fPIC'
35307         ;;
35308       esac
35309       ;;
35310
35311     *)
35312       lt_prog_compiler_pic='-fPIC'
35313       ;;
35314     esac
35315   else
35316     # PORTME Check for flag to pass linker flags through the system compiler.
35317     case $host_os in
35318     aix*)
35319       lt_prog_compiler_wl='-Wl,'
35320       if test "$host_cpu" = ia64; then
35321         # AIX 5 now supports IA64 processor
35322         lt_prog_compiler_static='-Bstatic'
35323       else
35324         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
35325       fi
35326       ;;
35327       darwin*)
35328         # PIC is the default on this platform
35329         # Common symbols not allowed in MH_DYLIB files
35330        case $cc_basename in
35331          xlc*)
35332          lt_prog_compiler_pic='-qnocommon'
35333          lt_prog_compiler_wl='-Wl,'
35334          ;;
35335        esac
35336        ;;
35337
35338     mingw* | pw32* | os2*)
35339       # This hack is so that the source file can tell whether it is being
35340       # built for inclusion in a dll (and should export symbols for example).
35341       lt_prog_compiler_pic='-DDLL_EXPORT'
35342       ;;
35343
35344     hpux9* | hpux10* | hpux11*)
35345       lt_prog_compiler_wl='-Wl,'
35346       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
35347       # not for PA HP-UX.
35348       case $host_cpu in
35349       hppa*64*|ia64*)
35350         # +Z the default
35351         ;;
35352       *)
35353         lt_prog_compiler_pic='+Z'
35354         ;;
35355       esac
35356       # Is there a better lt_prog_compiler_static that works with the bundled CC?
35357       lt_prog_compiler_static='${wl}-a ${wl}archive'
35358       ;;
35359
35360     irix5* | irix6* | nonstopux*)
35361       lt_prog_compiler_wl='-Wl,'
35362       # PIC (with -KPIC) is the default.
35363       lt_prog_compiler_static='-non_shared'
35364       ;;
35365
35366     newsos6)
35367       lt_prog_compiler_pic='-KPIC'
35368       lt_prog_compiler_static='-Bstatic'
35369       ;;
35370
35371     linux*)
35372       case $cc_basename in
35373       icc* | ecc*)
35374         lt_prog_compiler_wl='-Wl,'
35375         lt_prog_compiler_pic='-KPIC'
35376         lt_prog_compiler_static='-static'
35377         ;;
35378       pgcc* | pgf77* | pgf90* | pgf95*)
35379         # Portland Group compilers (*not* the Pentium gcc compiler,
35380         # which looks to be a dead project)
35381         lt_prog_compiler_wl='-Wl,'
35382         lt_prog_compiler_pic='-fpic'
35383         lt_prog_compiler_static='-Bstatic'
35384         ;;
35385       ccc*)
35386         lt_prog_compiler_wl='-Wl,'
35387         # All Alpha code is PIC.
35388         lt_prog_compiler_static='-non_shared'
35389         ;;
35390       esac
35391       ;;
35392
35393     osf3* | osf4* | osf5*)
35394       lt_prog_compiler_wl='-Wl,'
35395       # All OSF/1 code is PIC.
35396       lt_prog_compiler_static='-non_shared'
35397       ;;
35398
35399     sco3.2v5*)
35400       lt_prog_compiler_pic='-Kpic'
35401       lt_prog_compiler_static='-dn'
35402       ;;
35403
35404     solaris*)
35405       lt_prog_compiler_pic='-KPIC'
35406       lt_prog_compiler_static='-Bstatic'
35407       case $cc_basename in
35408       f77* | f90* | f95*)
35409         lt_prog_compiler_wl='-Qoption ld ';;
35410       *)
35411         lt_prog_compiler_wl='-Wl,';;
35412       esac
35413       ;;
35414
35415     sunos4*)
35416       lt_prog_compiler_wl='-Qoption ld '
35417       lt_prog_compiler_pic='-PIC'
35418       lt_prog_compiler_static='-Bstatic'
35419       ;;
35420
35421     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
35422       lt_prog_compiler_wl='-Wl,'
35423       lt_prog_compiler_pic='-KPIC'
35424       lt_prog_compiler_static='-Bstatic'
35425       ;;
35426
35427     sysv4*MP*)
35428       if test -d /usr/nec ;then
35429         lt_prog_compiler_pic='-Kconform_pic'
35430         lt_prog_compiler_static='-Bstatic'
35431       fi
35432       ;;
35433
35434     unicos*)
35435       lt_prog_compiler_wl='-Wl,'
35436       lt_prog_compiler_can_build_shared=no
35437       ;;
35438
35439     uts4*)
35440       lt_prog_compiler_pic='-pic'
35441       lt_prog_compiler_static='-Bstatic'
35442       ;;
35443
35444     *)
35445       lt_prog_compiler_can_build_shared=no
35446       ;;
35447     esac
35448   fi
35449
35450 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
35451 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
35452
35453 #
35454 # Check to make sure the PIC flag actually works.
35455 #
35456 if test -n "$lt_prog_compiler_pic"; then
35457
35458 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
35459 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
35460 if test "${lt_prog_compiler_pic_works+set}" = set; then
35461   echo $ECHO_N "(cached) $ECHO_C" >&6
35462 else
35463   lt_prog_compiler_pic_works=no
35464   ac_outfile=conftest.$ac_objext
35465    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
35466    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
35467    # Insert the option either (1) after the last *FLAGS variable, or
35468    # (2) before a word containing "conftest.", or (3) at the end.
35469    # Note that $ac_compile itself does not contain backslashes and begins
35470    # with a dollar sign (not a hyphen), so the echo should work correctly.
35471    # The option is referenced via a variable to avoid confusing sed.
35472    lt_compile=`echo "$ac_compile" | $SED \
35473    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
35474    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
35475    -e 's:$: $lt_compiler_flag:'`
35476    (eval echo "\"\$as_me:35476: $lt_compile\"" >&5)
35477    (eval "$lt_compile" 2>conftest.err)
35478    ac_status=$?
35479    cat conftest.err >&5
35480    echo "$as_me:35480: \$? = $ac_status" >&5
35481    if (exit $ac_status) && test -s "$ac_outfile"; then
35482      # The compiler can only warn and ignore the option if not recognized
35483      # So say no if there are warnings other than the usual output.
35484      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
35485      $SED '/^$/d' conftest.err >conftest.er2
35486      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
35487        lt_prog_compiler_pic_works=yes
35488      fi
35489    fi
35490    $rm conftest*
35491
35492 fi
35493 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
35494 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
35495
35496 if test x"$lt_prog_compiler_pic_works" = xyes; then
35497     case $lt_prog_compiler_pic in
35498      "" | " "*) ;;
35499      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
35500      esac
35501 else
35502     lt_prog_compiler_pic=
35503      lt_prog_compiler_can_build_shared=no
35504 fi
35505
35506 fi
35507 case $host_os in
35508   # For platforms which do not support PIC, -DPIC is meaningless:
35509   *djgpp*)
35510     lt_prog_compiler_pic=
35511     ;;
35512   *)
35513     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
35514     ;;
35515 esac
35516
35517 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
35518 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
35519 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
35520   echo $ECHO_N "(cached) $ECHO_C" >&6
35521 else
35522   lt_cv_prog_compiler_c_o=no
35523    $rm -r conftest 2>/dev/null
35524    mkdir conftest
35525    cd conftest
35526    mkdir out
35527    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
35528
35529    lt_compiler_flag="-o out/conftest2.$ac_objext"
35530    # Insert the option either (1) after the last *FLAGS variable, or
35531    # (2) before a word containing "conftest.", or (3) at the end.
35532    # Note that $ac_compile itself does not contain backslashes and begins
35533    # with a dollar sign (not a hyphen), so the echo should work correctly.
35534    lt_compile=`echo "$ac_compile" | $SED \
35535    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
35536    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
35537    -e 's:$: $lt_compiler_flag:'`
35538    (eval echo "\"\$as_me:35538: $lt_compile\"" >&5)
35539    (eval "$lt_compile" 2>out/conftest.err)
35540    ac_status=$?
35541    cat out/conftest.err >&5
35542    echo "$as_me:35542: \$? = $ac_status" >&5
35543    if (exit $ac_status) && test -s out/conftest2.$ac_objext
35544    then
35545      # The compiler can only warn and ignore the option if not recognized
35546      # So say no if there are warnings
35547      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
35548      $SED '/^$/d' out/conftest.err >out/conftest.er2
35549      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
35550        lt_cv_prog_compiler_c_o=yes
35551      fi
35552    fi
35553    chmod u+w . 2>&5
35554    $rm conftest*
35555    # SGI C++ compiler will create directory out/ii_files/ for
35556    # template instantiation
35557    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
35558    $rm out/* && rmdir out
35559    cd ..
35560    rmdir conftest
35561    $rm conftest*
35562
35563 fi
35564 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
35565 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
35566
35567
35568 hard_links="nottested"
35569 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
35570   # do not overwrite the value of need_locks provided by the user
35571   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
35572 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
35573   hard_links=yes
35574   $rm conftest*
35575   ln conftest.a conftest.b 2>/dev/null && hard_links=no
35576   touch conftest.a
35577   ln conftest.a conftest.b 2>&5 || hard_links=no
35578   ln conftest.a conftest.b 2>/dev/null && hard_links=no
35579   { echo "$as_me:$LINENO: result: $hard_links" >&5
35580 echo "${ECHO_T}$hard_links" >&6; }
35581   if test "$hard_links" = no; then
35582
35583     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
35584 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
35585
35586
35587     cat <<AAW_EOF >>config.warnings
35588 \`$CC' does not support \`-c -o', so \`make -j' may be unsafe
35589 AAW_EOF
35590
35591
35592     need_locks=warn
35593   fi
35594 else
35595   need_locks=no
35596 fi
35597
35598 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
35599 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
35600
35601   runpath_var=
35602   allow_undefined_flag=
35603   enable_shared_with_static_runtimes=no
35604   archive_cmds=
35605   archive_expsym_cmds=
35606   old_archive_From_new_cmds=
35607   old_archive_from_expsyms_cmds=
35608   export_dynamic_flag_spec=
35609   whole_archive_flag_spec=
35610   thread_safe_flag_spec=
35611   hardcode_libdir_flag_spec=
35612   hardcode_libdir_flag_spec_ld=
35613   hardcode_libdir_separator=
35614   hardcode_direct=no
35615   hardcode_minus_L=no
35616   hardcode_shlibpath_var=unsupported
35617   link_all_deplibs=unknown
35618   hardcode_automatic=no
35619   module_cmds=
35620   module_expsym_cmds=
35621   always_export_symbols=no
35622   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
35623   # include_expsyms should be a list of space-separated symbols to be *always*
35624   # included in the symbol list
35625   include_expsyms=
35626   # exclude_expsyms can be an extended regexp of symbols to exclude
35627   # it will be wrapped by ` (' and `)$', so one must not match beginning or
35628   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
35629   # as well as any symbol that contains `d'.
35630   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
35631   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
35632   # platforms (ab)use it in PIC code, but their linkers get confused if
35633   # the symbol is explicitly referenced.  Since portable code cannot
35634   # rely on this symbol name, it's probably fine to never include it in
35635   # preloaded symbol tables.
35636   extract_expsyms_cmds=
35637   # Just being paranoid about ensuring that cc_basename is set.
35638   for cc_temp in $compiler""; do
35639   case $cc_temp in
35640     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
35641     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
35642     \-*) ;;
35643     *) break;;
35644   esac
35645 done
35646 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
35647
35648   case $host_os in
35649   cygwin* | mingw* | pw32*)
35650     # FIXME: the MSVC++ port hasn't been tested in a loooong time
35651     # When not using gcc, we currently assume that we are using
35652     # Microsoft Visual C++.
35653     if test "$GCC" != yes; then
35654       with_gnu_ld=no
35655     fi
35656     ;;
35657   openbsd*)
35658     with_gnu_ld=no
35659     ;;
35660   esac
35661
35662   ld_shlibs=yes
35663   if test "$with_gnu_ld" = yes; then
35664     # If archive_cmds runs LD, not CC, wlarc should be empty
35665     wlarc='${wl}'
35666
35667     # Set some defaults for GNU ld with shared library support. These
35668     # are reset later if shared libraries are not supported. Putting them
35669     # here allows them to be overridden if necessary.
35670     runpath_var=LD_RUN_PATH
35671     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
35672     export_dynamic_flag_spec='${wl}--export-dynamic'
35673     # ancient GNU ld didn't support --whole-archive et. al.
35674     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
35675         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
35676       else
35677         whole_archive_flag_spec=
35678     fi
35679     supports_anon_versioning=no
35680     case `$LD -v 2>/dev/null` in
35681       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
35682       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
35683       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
35684       *\ 2.11.*) ;; # other 2.11 versions
35685       *) supports_anon_versioning=yes ;;
35686     esac
35687
35688     # See if GNU ld supports shared libraries.
35689     case $host_os in
35690     aix3* | aix4* | aix5*)
35691       # On AIX/PPC, the GNU linker is very broken
35692       if test "$host_cpu" != ia64; then
35693         ld_shlibs=no
35694         cat <<EOF 1>&2
35695
35696 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
35697 *** to be unable to reliably create shared libraries on AIX.
35698 *** Therefore, libtool is disabling shared libraries support.  If you
35699 *** really care for shared libraries, you may want to modify your PATH
35700 *** so that a non-GNU linker is found, and then restart.
35701
35702 EOF
35703       fi
35704       ;;
35705
35706     amigaos*)
35707       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)'
35708       hardcode_libdir_flag_spec='-L$libdir'
35709       hardcode_minus_L=yes
35710
35711       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
35712       # that the semantics of dynamic libraries on AmigaOS, at least up
35713       # to version 4, is to share data among multiple programs linked
35714       # with the same dynamic library.  Since this doesn't match the
35715       # behavior of shared libraries on other platforms, we can't use
35716       # them.
35717       ld_shlibs=no
35718       ;;
35719
35720     beos*)
35721       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
35722         allow_undefined_flag=unsupported
35723         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
35724         # support --undefined.  This deserves some investigation.  FIXME
35725         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
35726       else
35727         ld_shlibs=no
35728       fi
35729       ;;
35730
35731     cygwin* | mingw* | pw32*)
35732       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
35733       # as there is no search path for DLLs.
35734       hardcode_libdir_flag_spec='-L$libdir'
35735       allow_undefined_flag=unsupported
35736       always_export_symbols=no
35737       enable_shared_with_static_runtimes=yes
35738       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
35739
35740       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
35741         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
35742         # If the export-symbols file already is a .def file (1st line
35743         # is EXPORTS), use it as is; otherwise, prepend...
35744         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
35745           cp $export_symbols $output_objdir/$soname.def;
35746         else
35747           echo EXPORTS > $output_objdir/$soname.def;
35748           cat $export_symbols >> $output_objdir/$soname.def;
35749         fi~
35750         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
35751       else
35752         ld_shlibs=no
35753       fi
35754       ;;
35755
35756     linux*)
35757       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
35758         tmp_addflag=
35759         case $cc_basename,$host_cpu in
35760         pgcc*)                          # Portland Group C compiler
35761           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'
35762           tmp_addflag=' $pic_flag'
35763           ;;
35764         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
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 -Mnomain' ;;
35767         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
35768           tmp_addflag=' -i_dynamic' ;;
35769         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
35770           tmp_addflag=' -i_dynamic -nofor_main' ;;
35771         ifc* | ifort*)                  # Intel Fortran compiler
35772           tmp_addflag=' -nofor_main' ;;
35773         esac
35774         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
35775
35776         if test $supports_anon_versioning = yes; then
35777           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
35778   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
35779   $echo "local: *; };" >> $output_objdir/$libname.ver~
35780           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
35781         fi
35782       else
35783         ld_shlibs=no
35784       fi
35785       ;;
35786
35787     netbsd*)
35788       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
35789         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
35790         wlarc=
35791       else
35792         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
35793         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
35794       fi
35795       ;;
35796
35797     solaris* | sysv5*)
35798       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
35799         ld_shlibs=no
35800         cat <<EOF 1>&2
35801
35802 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
35803 *** create shared libraries on Solaris systems.  Therefore, libtool
35804 *** is disabling shared libraries support.  We urge you to upgrade GNU
35805 *** binutils to release 2.9.1 or newer.  Another option is to modify
35806 *** your PATH or compiler configuration so that the native linker is
35807 *** used, and then restart.
35808
35809 EOF
35810       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
35811         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
35812         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
35813       else
35814         ld_shlibs=no
35815       fi
35816       ;;
35817
35818     sunos4*)
35819       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
35820       wlarc=
35821       hardcode_direct=yes
35822       hardcode_shlibpath_var=no
35823       ;;
35824
35825     *)
35826       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
35827         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
35828         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
35829       else
35830         ld_shlibs=no
35831       fi
35832       ;;
35833     esac
35834
35835     if test "$ld_shlibs" = no; then
35836       runpath_var=
35837       hardcode_libdir_flag_spec=
35838       export_dynamic_flag_spec=
35839       whole_archive_flag_spec=
35840     fi
35841   else
35842     # PORTME fill in a description of your system's linker (not GNU ld)
35843     case $host_os in
35844     aix3*)
35845       allow_undefined_flag=unsupported
35846       always_export_symbols=yes
35847       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'
35848       # Note: this linker hardcodes the directories in LIBPATH if there
35849       # are no directories specified by -L.
35850       hardcode_minus_L=yes
35851       if test "$GCC" = yes && test -z "$link_static_flag"; then
35852         # Neither direct hardcoding nor static linking is supported with a
35853         # broken collect2.
35854         hardcode_direct=unsupported
35855       fi
35856       ;;
35857
35858     aix4* | aix5*)
35859       if test "$host_cpu" = ia64; then
35860         # On IA64, the linker does run time linking by default, so we don't
35861         # have to do anything special.
35862         aix_use_runtimelinking=no
35863         exp_sym_flag='-Bexport'
35864         no_entry_flag=""
35865       else
35866         # If we're using GNU nm, then we don't want the "-C" option.
35867         # -C means demangle to AIX nm, but means don't demangle with GNU nm
35868         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
35869           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'
35870         else
35871           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'
35872         fi
35873         aix_use_runtimelinking=no
35874
35875         # Test if we are trying to use run time linking or normal
35876         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
35877         # need to do runtime linking.
35878         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
35879           for ld_flag in $LDFLAGS; do
35880           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
35881             aix_use_runtimelinking=yes
35882             break
35883           fi
35884           done
35885         esac
35886
35887         exp_sym_flag='-bexport'
35888         no_entry_flag='-bnoentry'
35889       fi
35890
35891       # When large executables or shared objects are built, AIX ld can
35892       # have problems creating the table of contents.  If linking a library
35893       # or program results in "error TOC overflow" add -mminimal-toc to
35894       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
35895       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
35896
35897       archive_cmds=''
35898       hardcode_direct=yes
35899       hardcode_libdir_separator=':'
35900       link_all_deplibs=yes
35901
35902       if test "$GCC" = yes; then
35903         case $host_os in aix4.[012]|aix4.[012].*)
35904         # We only want to do this on AIX 4.2 and lower, the check
35905         # below for broken collect2 doesn't work under 4.3+
35906           collect2name=`${CC} -print-prog-name=collect2`
35907           if test -f "$collect2name" && \
35908            strings "$collect2name" | grep resolve_lib_name >/dev/null
35909           then
35910           # We have reworked collect2
35911           hardcode_direct=yes
35912           else
35913           # We have old collect2
35914           hardcode_direct=unsupported
35915           # It fails to find uninstalled libraries when the uninstalled
35916           # path is not listed in the libpath.  Setting hardcode_minus_L
35917           # to unsupported forces relinking
35918           hardcode_minus_L=yes
35919           hardcode_libdir_flag_spec='-L$libdir'
35920           hardcode_libdir_separator=
35921           fi
35922         esac
35923         shared_flag='-shared'
35924         if test "$aix_use_runtimelinking" = yes; then
35925           shared_flag="$shared_flag "'${wl}-G'
35926         fi
35927       else
35928         # not using gcc
35929         if test "$host_cpu" = ia64; then
35930         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
35931         # chokes on -Wl,-G. The following line is correct:
35932           shared_flag='-G'
35933         else
35934         if test "$aix_use_runtimelinking" = yes; then
35935             shared_flag='${wl}-G'
35936           else
35937             shared_flag='${wl}-bM:SRE'
35938         fi
35939         fi
35940       fi
35941
35942       # It seems that -bexpall does not export symbols beginning with
35943       # underscore (_), so it is better to generate a list of symbols to export.
35944       always_export_symbols=yes
35945       if test "$aix_use_runtimelinking" = yes; then
35946         # Warning - without using the other runtime loading flags (-brtl),
35947         # -berok will link without error, but may produce a broken library.
35948         allow_undefined_flag='-berok'
35949        # Determine the default libpath from the value encoded in an empty executable.
35950        cat >conftest.$ac_ext <<_ACEOF
35951 /* confdefs.h.  */
35952 _ACEOF
35953 cat confdefs.h >>conftest.$ac_ext
35954 cat >>conftest.$ac_ext <<_ACEOF
35955 /* end confdefs.h.  */
35956
35957 int
35958 main ()
35959 {
35960
35961   ;
35962   return 0;
35963 }
35964 _ACEOF
35965 rm -f conftest.$ac_objext conftest$ac_exeext
35966 if { (ac_try="$ac_link"
35967 case "(($ac_try" in
35968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35969   *) ac_try_echo=$ac_try;;
35970 esac
35971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35972   (eval "$ac_link") 2>conftest.er1
35973   ac_status=$?
35974   grep -v '^ *+' conftest.er1 >conftest.err
35975   rm -f conftest.er1
35976   cat conftest.err >&5
35977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35978   (exit $ac_status); } && {
35979          test -z "$ac_c_werror_flag" ||
35980          test ! -s conftest.err
35981        } && test -s conftest$ac_exeext &&
35982        $as_test_x conftest$ac_exeext; then
35983
35984 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
35985 }'`
35986 # Check for a 64-bit object if we didn't find anything.
35987 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; }
35988 }'`; fi
35989 else
35990   echo "$as_me: failed program was:" >&5
35991 sed 's/^/| /' conftest.$ac_ext >&5
35992
35993
35994 fi
35995
35996 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35997       conftest$ac_exeext conftest.$ac_ext
35998 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
35999
36000        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
36001         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"
36002        else
36003         if test "$host_cpu" = ia64; then
36004           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
36005           allow_undefined_flag="-z nodefs"
36006           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"
36007         else
36008          # Determine the default libpath from the value encoded in an empty executable.
36009          cat >conftest.$ac_ext <<_ACEOF
36010 /* confdefs.h.  */
36011 _ACEOF
36012 cat confdefs.h >>conftest.$ac_ext
36013 cat >>conftest.$ac_ext <<_ACEOF
36014 /* end confdefs.h.  */
36015
36016 int
36017 main ()
36018 {
36019
36020   ;
36021   return 0;
36022 }
36023 _ACEOF
36024 rm -f conftest.$ac_objext conftest$ac_exeext
36025 if { (ac_try="$ac_link"
36026 case "(($ac_try" in
36027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36028   *) ac_try_echo=$ac_try;;
36029 esac
36030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36031   (eval "$ac_link") 2>conftest.er1
36032   ac_status=$?
36033   grep -v '^ *+' conftest.er1 >conftest.err
36034   rm -f conftest.er1
36035   cat conftest.err >&5
36036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36037   (exit $ac_status); } && {
36038          test -z "$ac_c_werror_flag" ||
36039          test ! -s conftest.err
36040        } && test -s conftest$ac_exeext &&
36041        $as_test_x conftest$ac_exeext; then
36042
36043 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
36044 }'`
36045 # Check for a 64-bit object if we didn't find anything.
36046 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; }
36047 }'`; fi
36048 else
36049   echo "$as_me: failed program was:" >&5
36050 sed 's/^/| /' conftest.$ac_ext >&5
36051
36052
36053 fi
36054
36055 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36056       conftest$ac_exeext conftest.$ac_ext
36057 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
36058
36059          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
36060           # Warning - without using the other run time loading flags,
36061           # -berok will link without error, but may produce a broken library.
36062           no_undefined_flag=' ${wl}-bernotok'
36063           allow_undefined_flag=' ${wl}-berok'
36064           # -bexpall does not export symbols beginning with underscore (_)
36065           always_export_symbols=yes
36066           # Exported symbols can be pulled into shared objects from archives
36067           whole_archive_flag_spec=' '
36068           archive_cmds_need_lc=yes
36069           # This is similar to how AIX traditionally builds its shared libraries.
36070           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'
36071         fi
36072       fi
36073       ;;
36074
36075     amigaos*)
36076       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)'
36077       hardcode_libdir_flag_spec='-L$libdir'
36078       hardcode_minus_L=yes
36079       # see comment about different semantics on the GNU ld section
36080       ld_shlibs=no
36081       ;;
36082
36083     bsdi[45]*)
36084       export_dynamic_flag_spec=-rdynamic
36085       ;;
36086
36087     cygwin* | mingw* | pw32*)
36088       # When not using gcc, we currently assume that we are using
36089       # Microsoft Visual C++.
36090       # hardcode_libdir_flag_spec is actually meaningless, as there is
36091       # no search path for DLLs.
36092       hardcode_libdir_flag_spec=' '
36093       allow_undefined_flag=unsupported
36094       # Tell ltmain to make .lib files, not .a files.
36095       libext=lib
36096       # Tell ltmain to make .dll files, not .so files.
36097       shrext_cmds=".dll"
36098       # FIXME: Setting linknames here is a bad hack.
36099       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
36100       # The linker will automatically build a .lib file if we build a DLL.
36101       old_archive_From_new_cmds='true'
36102       # FIXME: Should let the user specify the lib program.
36103       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
36104       fix_srcfile_path='`cygpath -w "$srcfile"`'
36105       enable_shared_with_static_runtimes=yes
36106       ;;
36107
36108     darwin* | rhapsody*)
36109       case $host_os in
36110         rhapsody* | darwin1.[012])
36111          allow_undefined_flag='${wl}-undefined ${wl}suppress'
36112          ;;
36113        *) # Darwin 1.3 on
36114          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
36115            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
36116          else
36117            case ${MACOSX_DEPLOYMENT_TARGET} in
36118              10.[012])
36119                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
36120                ;;
36121              10.*)
36122                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
36123                ;;
36124            esac
36125          fi
36126          ;;
36127       esac
36128       archive_cmds_need_lc=no
36129       hardcode_direct=no
36130       hardcode_automatic=yes
36131       hardcode_shlibpath_var=unsupported
36132       whole_archive_flag_spec=''
36133       link_all_deplibs=yes
36134     if test "$GCC" = yes ; then
36135         output_verbose_link_cmd='echo'
36136         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
36137       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
36138       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
36139       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}'
36140       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}'
36141     else
36142       case $cc_basename in
36143         xlc*)
36144          output_verbose_link_cmd='echo'
36145          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
36146          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
36147           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
36148          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}'
36149           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}'
36150           ;;
36151        *)
36152          ld_shlibs=no
36153           ;;
36154       esac
36155     fi
36156       ;;
36157
36158     dgux*)
36159       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
36160       hardcode_libdir_flag_spec='-L$libdir'
36161       hardcode_shlibpath_var=no
36162       ;;
36163
36164     freebsd1*)
36165       ld_shlibs=no
36166       ;;
36167
36168     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
36169     # support.  Future versions do this automatically, but an explicit c++rt0.o
36170     # does not break anything, and helps significantly (at the cost of a little
36171     # extra space).
36172     freebsd2.2*)
36173       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
36174       hardcode_libdir_flag_spec='-R$libdir'
36175       hardcode_direct=yes
36176       hardcode_shlibpath_var=no
36177       ;;
36178
36179     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
36180     freebsd2*)
36181       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
36182       hardcode_direct=yes
36183       hardcode_minus_L=yes
36184       hardcode_shlibpath_var=no
36185       ;;
36186
36187     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
36188     freebsd* | kfreebsd*-gnu | dragonfly*)
36189       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
36190       hardcode_libdir_flag_spec='-R$libdir'
36191       hardcode_direct=yes
36192       hardcode_shlibpath_var=no
36193       ;;
36194
36195     hpux9*)
36196       if test "$GCC" = yes; then
36197         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'
36198       else
36199         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'
36200       fi
36201       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
36202       hardcode_libdir_separator=:
36203       hardcode_direct=yes
36204
36205       # hardcode_minus_L: Not really in the search PATH,
36206       # but as the default location of the library.
36207       hardcode_minus_L=yes
36208       export_dynamic_flag_spec='${wl}-E'
36209       ;;
36210
36211     hpux10* | hpux11*)
36212       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
36213         case $host_cpu in
36214         hppa*64*|ia64*)
36215           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
36216           ;;
36217         *)
36218           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
36219           ;;
36220         esac
36221       else
36222         case $host_cpu in
36223         hppa*64*|ia64*)
36224           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
36225           ;;
36226         *)
36227           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
36228           ;;
36229         esac
36230       fi
36231       if test "$with_gnu_ld" = no; then
36232         case $host_cpu in
36233         hppa*64*)
36234           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
36235           hardcode_libdir_flag_spec_ld='+b $libdir'
36236           hardcode_libdir_separator=:
36237           hardcode_direct=no
36238           hardcode_shlibpath_var=no
36239           ;;
36240         ia64*)
36241           hardcode_libdir_flag_spec='-L$libdir'
36242           hardcode_direct=no
36243           hardcode_shlibpath_var=no
36244
36245           # hardcode_minus_L: Not really in the search PATH,
36246           # but as the default location of the library.
36247           hardcode_minus_L=yes
36248           ;;
36249         *)
36250           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
36251           hardcode_libdir_separator=:
36252           hardcode_direct=yes
36253           export_dynamic_flag_spec='${wl}-E'
36254
36255           # hardcode_minus_L: Not really in the search PATH,
36256           # but as the default location of the library.
36257           hardcode_minus_L=yes
36258           ;;
36259         esac
36260       fi
36261       ;;
36262
36263     irix5* | irix6* | nonstopux*)
36264       if test "$GCC" = yes; then
36265         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'
36266       else
36267         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'
36268         hardcode_libdir_flag_spec_ld='-rpath $libdir'
36269       fi
36270       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
36271       hardcode_libdir_separator=:
36272       link_all_deplibs=yes
36273       ;;
36274
36275     netbsd*)
36276       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
36277         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
36278       else
36279         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
36280       fi
36281       hardcode_libdir_flag_spec='-R$libdir'
36282       hardcode_direct=yes
36283       hardcode_shlibpath_var=no
36284       ;;
36285
36286     newsos6)
36287       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
36288       hardcode_direct=yes
36289       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
36290       hardcode_libdir_separator=:
36291       hardcode_shlibpath_var=no
36292       ;;
36293
36294     openbsd*)
36295       hardcode_direct=yes
36296       hardcode_shlibpath_var=no
36297       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
36298         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
36299         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
36300         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
36301         export_dynamic_flag_spec='${wl}-E'
36302       else
36303        case $host_os in
36304          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
36305            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
36306            hardcode_libdir_flag_spec='-R$libdir'
36307            ;;
36308          *)
36309            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
36310            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
36311            ;;
36312        esac
36313       fi
36314       ;;
36315
36316     os2*)
36317       hardcode_libdir_flag_spec='-L$libdir'
36318       hardcode_minus_L=yes
36319       allow_undefined_flag=unsupported
36320       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'
36321       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
36322       ;;
36323
36324     osf3*)
36325       if test "$GCC" = yes; then
36326         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
36327         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'
36328       else
36329         allow_undefined_flag=' -expect_unresolved \*'
36330         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'
36331       fi
36332       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
36333       hardcode_libdir_separator=:
36334       ;;
36335
36336     osf4* | osf5*)      # as osf3* with the addition of -msym flag
36337       if test "$GCC" = yes; then
36338         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
36339         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'
36340         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
36341       else
36342         allow_undefined_flag=' -expect_unresolved \*'
36343         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'
36344         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
36345         $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'
36346
36347         # Both c and cxx compiler support -rpath directly
36348         hardcode_libdir_flag_spec='-rpath $libdir'
36349       fi
36350       hardcode_libdir_separator=:
36351       ;;
36352
36353     sco3.2v5*)
36354       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
36355       hardcode_shlibpath_var=no
36356       export_dynamic_flag_spec='${wl}-Bexport'
36357       runpath_var=LD_RUN_PATH
36358       hardcode_runpath_var=yes
36359       ;;
36360
36361     solaris*)
36362       no_undefined_flag=' -z text'
36363       if test "x$archive_cmds" = "x"; then
36364         if test "$GCC" = yes; then
36365           wlarc='${wl}'
36366           if $CC -v --help 2>/dev/null | grep -- -shared  > /dev/null 2> /dev/null; then
36367             archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
36368             archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
36369             $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
36370           else
36371             archive_cmds='$CC ${wl}-G ${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 ${wl}-G ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
36374           fi
36375         else
36376           wlarc=''
36377           lt_prog_compiler_static='-static'
36378           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
36379           archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
36380           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
36381           lt_prog_compiler_static='-static'
36382         fi
36383       fi
36384       hardcode_libdir_flag_spec='-R$libdir'
36385       hardcode_shlibpath_var=no
36386       case $host_os in
36387       solaris2.[0-5] | solaris2.[0-5].*) ;;
36388       *)
36389         # The compiler driver will combine linker options so we
36390         # cannot just pass the convience library names through
36391         # without $wl, iff we do not link with $LD.
36392         # Luckily, gcc supports the same syntax we need for Sun Studio.
36393         # Supported since Solaris 2.6 (maybe 2.5.1?)
36394         case $wlarc in
36395         '')
36396           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
36397         *)
36398           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' ;;
36399         esac ;;
36400       esac
36401       link_all_deplibs=yes
36402       ;;
36403
36404     sunos4*)
36405       if test "x$host_vendor" = xsequent; then
36406         # Use $CC to link under sequent, because it throws in some extra .o
36407         # files that make .init and .fini sections work.
36408         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
36409       else
36410         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
36411       fi
36412       hardcode_libdir_flag_spec='-L$libdir'
36413       hardcode_direct=yes
36414       hardcode_minus_L=yes
36415       hardcode_shlibpath_var=no
36416       ;;
36417
36418     sysv4)
36419       case $host_vendor in
36420         sni)
36421           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
36422           hardcode_direct=yes # is this really true???
36423         ;;
36424         siemens)
36425           ## LD is ld it makes a PLAMLIB
36426           ## CC just makes a GrossModule.
36427           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
36428           reload_cmds='$CC -r -o $output$reload_objs'
36429           hardcode_direct=no
36430         ;;
36431         motorola)
36432           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
36433           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
36434         ;;
36435       esac
36436       runpath_var='LD_RUN_PATH'
36437       hardcode_shlibpath_var=no
36438       ;;
36439
36440     sysv4.3*)
36441       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
36442       hardcode_shlibpath_var=no
36443       export_dynamic_flag_spec='-Bexport'
36444       ;;
36445
36446     sysv4*MP*)
36447       if test -d /usr/nec; then
36448         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
36449         hardcode_shlibpath_var=no
36450         runpath_var=LD_RUN_PATH
36451         hardcode_runpath_var=yes
36452         ld_shlibs=yes
36453       fi
36454       ;;
36455
36456     sysv4.2uw2*)
36457       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
36458       hardcode_direct=yes
36459       hardcode_minus_L=no
36460       hardcode_shlibpath_var=no
36461       hardcode_runpath_var=yes
36462       runpath_var=LD_RUN_PATH
36463       ;;
36464
36465    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
36466       no_undefined_flag='${wl}-z ${wl}text'
36467       if test "$GCC" = yes; then
36468         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
36469       else
36470         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
36471       fi
36472       runpath_var='LD_RUN_PATH'
36473       hardcode_shlibpath_var=no
36474       ;;
36475
36476     sysv5*)
36477       no_undefined_flag=' -z text'
36478       # $CC -shared without GNU ld will not create a library from C++
36479       # object files and a static libstdc++, better avoid it by now
36480       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
36481       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
36482                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
36483       hardcode_libdir_flag_spec=
36484       hardcode_shlibpath_var=no
36485       runpath_var='LD_RUN_PATH'
36486       ;;
36487
36488     uts4*)
36489       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
36490       hardcode_libdir_flag_spec='-L$libdir'
36491       hardcode_shlibpath_var=no
36492       ;;
36493
36494     *)
36495       ld_shlibs=no
36496       ;;
36497     esac
36498   fi
36499
36500 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
36501 echo "${ECHO_T}$ld_shlibs" >&6; }
36502 test "$ld_shlibs" = no && can_build_shared=no
36503
36504 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
36505 if test "$GCC" = yes; then
36506   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
36507 fi
36508
36509 #
36510 # Do we need to explicitly link libc?
36511 #
36512 case "x$archive_cmds_need_lc" in
36513 x|xyes)
36514   # Assume -lc should be added
36515   archive_cmds_need_lc=yes
36516
36517   if test "$enable_shared" = yes && test "$GCC" = yes; then
36518     case $archive_cmds in
36519     *'~'*)
36520       # FIXME: we may have to deal with multi-command sequences.
36521       ;;
36522     '$CC '*)
36523       # Test whether the compiler implicitly links with -lc since on some
36524       # systems, -lgcc has to come before -lc. If gcc already passes -lc
36525       # to ld, don't add -lc before -lgcc.
36526       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
36527 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
36528       $rm conftest*
36529       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
36530
36531       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36532   (eval $ac_compile) 2>&5
36533   ac_status=$?
36534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36535   (exit $ac_status); } 2>conftest.err; then
36536         soname=conftest
36537         lib=conftest
36538         libobjs=conftest.$ac_objext
36539         deplibs=
36540         wl=$lt_prog_compiler_wl
36541         compiler_flags=-v
36542         linker_flags=-v
36543         verstring=
36544         output_objdir=.
36545         libname=conftest
36546         lt_save_allow_undefined_flag=$allow_undefined_flag
36547         allow_undefined_flag=
36548         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
36549   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
36550   ac_status=$?
36551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36552   (exit $ac_status); }
36553         then
36554           archive_cmds_need_lc=no
36555         else
36556           archive_cmds_need_lc=yes
36557         fi
36558         allow_undefined_flag=$lt_save_allow_undefined_flag
36559       else
36560         cat conftest.err 1>&5
36561       fi
36562       $rm conftest*
36563       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
36564 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
36565       ;;
36566     esac
36567   fi
36568   ;;
36569 esac
36570
36571 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
36572 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
36573 library_names_spec=
36574 libname_spec='lib$name'
36575 soname_spec=
36576 shrext_cmds=".so"
36577 postinstall_cmds=
36578 postuninstall_cmds=
36579 finish_cmds=
36580 finish_eval=
36581 shlibpath_var=
36582 shlibpath_overrides_runpath=unknown
36583 version_type=none
36584 dynamic_linker="$host_os ld.so"
36585 sys_lib_dlsearch_path_spec="/lib /usr/lib"
36586 if test "$GCC" = yes; then
36587   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
36588   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
36589     # if the path contains ";" then we assume it to be the separator
36590     # otherwise default to the standard path separator (i.e. ":") - it is
36591     # assumed that no part of a normal pathname contains ";" but that should
36592     # okay in the real world where ";" in dirpaths is itself problematic.
36593     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
36594   else
36595     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
36596   fi
36597 else
36598   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
36599 fi
36600 need_lib_prefix=unknown
36601 hardcode_into_libs=no
36602
36603 # when you set need_version to no, make sure it does not cause -set_version
36604 # flags to be left without arguments
36605 need_version=unknown
36606
36607 case $host_os in
36608 aix3*)
36609   version_type=linux
36610   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
36611   shlibpath_var=LIBPATH
36612
36613   # AIX 3 has no versioning support, so we append a major version to the name.
36614   soname_spec='${libname}${release}${shared_ext}$major'
36615   ;;
36616
36617 aix4* | aix5*)
36618   version_type=linux
36619   need_lib_prefix=no
36620   need_version=no
36621   hardcode_into_libs=yes
36622   if test "$host_cpu" = ia64; then
36623     # AIX 5 supports IA64
36624     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
36625     shlibpath_var=LD_LIBRARY_PATH
36626   else
36627     # With GCC up to 2.95.x, collect2 would create an import file
36628     # for dependence libraries.  The import file would start with
36629     # the line `#! .'.  This would cause the generated library to
36630     # depend on `.', always an invalid library.  This was fixed in
36631     # development snapshots of GCC prior to 3.0.
36632     case $host_os in
36633       aix4 | aix4.[01] | aix4.[01].*)
36634       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
36635            echo ' yes '
36636            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
36637         :
36638       else
36639         can_build_shared=no
36640       fi
36641       ;;
36642     esac
36643     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
36644     # soname into executable. Probably we can add versioning support to
36645     # collect2, so additional links can be useful in future.
36646     if test "$aix_use_runtimelinking" = yes; then
36647       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
36648       # instead of lib<name>.a to let people know that these are not
36649       # typical AIX shared libraries.
36650       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
36651     else
36652       # We preserve .a as extension for shared libraries through AIX4.2
36653       # and later when we are not doing run time linking.
36654       library_names_spec='${libname}${release}.a $libname.a'
36655       soname_spec='${libname}${release}${shared_ext}$major'
36656     fi
36657     shlibpath_var=LIBPATH
36658   fi
36659   ;;
36660
36661 amigaos*)
36662   library_names_spec='$libname.ixlibrary $libname.a'
36663   # Create ${libname}_ixlibrary.a entries in /sys/libs.
36664   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'
36665   ;;
36666
36667 beos*)
36668   library_names_spec='${libname}${shared_ext}'
36669   dynamic_linker="$host_os ld.so"
36670   shlibpath_var=LIBRARY_PATH
36671   ;;
36672
36673 bsdi[45]*)
36674   version_type=linux
36675   need_version=no
36676   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
36677   soname_spec='${libname}${release}${shared_ext}$major'
36678   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
36679   shlibpath_var=LD_LIBRARY_PATH
36680   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
36681   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
36682   # the default ld.so.conf also contains /usr/contrib/lib and
36683   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
36684   # libtool to hard-code these into programs
36685   ;;
36686
36687 cygwin* | mingw* | pw32*)
36688   version_type=windows
36689   shrext_cmds=".dll"
36690   need_version=no
36691   need_lib_prefix=no
36692
36693   case $GCC,$host_os in
36694   yes,cygwin* | yes,mingw* | yes,pw32*)
36695     library_names_spec='$libname.dll.a'
36696     # DLL is installed to $(libdir)/../bin by postinstall_cmds
36697     postinstall_cmds='base_file=`basename \${file}`~
36698       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
36699       dldir=$destdir/`dirname \$dlpath`~
36700       test -d \$dldir || mkdir -p \$dldir~
36701       $install_prog $dir/$dlname \$dldir/$dlname~
36702       chmod a+x \$dldir/$dlname'
36703     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
36704       dlpath=$dir/\$dldll~
36705        $rm \$dlpath'
36706     shlibpath_overrides_runpath=yes
36707
36708     case $host_os in
36709     cygwin*)
36710       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
36711       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
36712       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
36713       ;;
36714     mingw*)
36715       # MinGW DLLs use traditional 'lib' prefix
36716       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
36717       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
36718       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
36719         # It is most probably a Windows format PATH printed by
36720         # mingw gcc, but we are running on Cygwin. Gcc prints its search
36721         # path with ; separators, and with drive letters. We can handle the
36722         # drive letters (cygwin fileutils understands them), so leave them,
36723         # especially as we might pass files found there to a mingw objdump,
36724         # which wouldn't understand a cygwinified path. Ahh.
36725         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
36726       else
36727         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
36728       fi
36729       ;;
36730     pw32*)
36731       # pw32 DLLs use 'pw' prefix rather than 'lib'
36732       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
36733       ;;
36734     esac
36735     ;;
36736
36737   *)
36738     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
36739     ;;
36740   esac
36741   dynamic_linker='Win32 ld.exe'
36742   # FIXME: first we should search . and the directory the executable is in
36743   shlibpath_var=PATH
36744   ;;
36745
36746 darwin* | rhapsody*)
36747   dynamic_linker="$host_os dyld"
36748   version_type=darwin
36749   need_lib_prefix=no
36750   need_version=no
36751   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
36752   soname_spec='${libname}${release}${major}$shared_ext'
36753   shlibpath_overrides_runpath=yes
36754   shlibpath_var=DYLD_LIBRARY_PATH
36755   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
36756   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
36757   if test "$GCC" = yes; then
36758     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"`
36759   else
36760     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
36761   fi
36762   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
36763   ;;
36764
36765 dgux*)
36766   version_type=linux
36767   need_lib_prefix=no
36768   need_version=no
36769   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
36770   soname_spec='${libname}${release}${shared_ext}$major'
36771   shlibpath_var=LD_LIBRARY_PATH
36772   ;;
36773
36774 freebsd1*)
36775   dynamic_linker=no
36776   ;;
36777
36778 kfreebsd*-gnu)
36779   version_type=linux
36780   need_lib_prefix=no
36781   need_version=no
36782   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
36783   soname_spec='${libname}${release}${shared_ext}$major'
36784   shlibpath_var=LD_LIBRARY_PATH
36785   shlibpath_overrides_runpath=no
36786   hardcode_into_libs=yes
36787   dynamic_linker='GNU ld.so'
36788   ;;
36789
36790 freebsd* | dragonfly*)
36791   # DragonFly does not have aout.  When/if they implement a new
36792   # versioning mechanism, adjust this.
36793   if test -x /usr/bin/objformat; then
36794     objformat=`/usr/bin/objformat`
36795   else
36796     case $host_os in
36797     freebsd[123]*) objformat=aout ;;
36798     *) objformat=elf ;;
36799     esac
36800   fi
36801   version_type=freebsd-$objformat
36802   case $version_type in
36803     freebsd-elf*)
36804       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
36805       need_version=no
36806       need_lib_prefix=no
36807       ;;
36808     freebsd-*)
36809       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
36810       need_version=yes
36811       ;;
36812   esac
36813   shlibpath_var=LD_LIBRARY_PATH
36814   case $host_os in
36815   freebsd2*)
36816     shlibpath_overrides_runpath=yes
36817     ;;
36818   freebsd3.[01]* | freebsdelf3.[01]*)
36819     shlibpath_overrides_runpath=yes
36820     hardcode_into_libs=yes
36821     ;;
36822   *) # from 3.2 on
36823     shlibpath_overrides_runpath=no
36824     hardcode_into_libs=yes
36825     ;;
36826   esac
36827   ;;
36828
36829 gnu*)
36830   version_type=linux
36831   need_lib_prefix=no
36832   need_version=no
36833   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
36834   soname_spec='${libname}${release}${shared_ext}$major'
36835   shlibpath_var=LD_LIBRARY_PATH
36836   hardcode_into_libs=yes
36837   ;;
36838
36839 hpux9* | hpux10* | hpux11*)
36840   # Give a soname corresponding to the major version so that dld.sl refuses to
36841   # link against other versions.
36842   version_type=sunos
36843   need_lib_prefix=no
36844   need_version=no
36845   case $host_cpu in
36846   ia64*)
36847     shrext_cmds='.so'
36848     hardcode_into_libs=yes
36849     dynamic_linker="$host_os dld.so"
36850     shlibpath_var=LD_LIBRARY_PATH
36851     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
36852     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
36853     soname_spec='${libname}${release}${shared_ext}$major'
36854     if test "X$HPUX_IA64_MODE" = X32; then
36855       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
36856     else
36857       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
36858     fi
36859     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
36860     ;;
36861    hppa*64*)
36862      shrext_cmds='.sl'
36863      hardcode_into_libs=yes
36864      dynamic_linker="$host_os dld.sl"
36865      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
36866      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
36867      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
36868      soname_spec='${libname}${release}${shared_ext}$major'
36869      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
36870      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
36871      ;;
36872    *)
36873     shrext_cmds='.sl'
36874     dynamic_linker="$host_os dld.sl"
36875     shlibpath_var=SHLIB_PATH
36876     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
36877     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
36878     soname_spec='${libname}${release}${shared_ext}$major'
36879     ;;
36880   esac
36881   # HP-UX runs *really* slowly unless shared libraries are mode 555.
36882   postinstall_cmds='chmod 555 $lib'
36883   ;;
36884
36885 irix5* | irix6* | nonstopux*)
36886   case $host_os in
36887     nonstopux*) version_type=nonstopux ;;
36888     *)
36889         if test "$lt_cv_prog_gnu_ld" = yes; then
36890                 version_type=linux
36891         else
36892                 version_type=irix
36893         fi ;;
36894   esac
36895   need_lib_prefix=no
36896   need_version=no
36897   soname_spec='${libname}${release}${shared_ext}$major'
36898   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
36899   case $host_os in
36900   irix5* | nonstopux*)
36901     libsuff= shlibsuff=
36902     ;;
36903   *)
36904     case $LD in # libtool.m4 will add one of these switches to LD
36905     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
36906       libsuff= shlibsuff= libmagic=32-bit;;
36907     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
36908       libsuff=32 shlibsuff=N32 libmagic=N32;;
36909     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
36910       libsuff=64 shlibsuff=64 libmagic=64-bit;;
36911     *) libsuff= shlibsuff= libmagic=never-match;;
36912     esac
36913     ;;
36914   esac
36915   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
36916   shlibpath_overrides_runpath=no
36917   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
36918   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
36919   hardcode_into_libs=yes
36920   ;;
36921
36922 # No shared lib support for Linux oldld, aout, or coff.
36923 linux*oldld* | linux*aout* | linux*coff*)
36924   dynamic_linker=no
36925   ;;
36926
36927 # This must be Linux ELF.
36928 linux*)
36929   version_type=linux
36930   need_lib_prefix=no
36931   need_version=no
36932   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
36933   soname_spec='${libname}${release}${shared_ext}$major'
36934   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
36935   shlibpath_var=LD_LIBRARY_PATH
36936   shlibpath_overrides_runpath=no
36937   # This implies no fast_install, which is unacceptable.
36938   # Some rework will be needed to allow for fast_install
36939   # before this can be enabled.
36940   hardcode_into_libs=yes
36941
36942   # Append ld.so.conf contents to the search path
36943   if test -f /etc/ld.so.conf; then
36944     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' ' '`
36945     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
36946   fi
36947
36948   # We used to test for /lib/ld.so.1 and disable shared libraries on
36949   # powerpc, because MkLinux only supported shared libraries with the
36950   # GNU dynamic linker.  Since this was broken with cross compilers,
36951   # most powerpc-linux boxes support dynamic linking these days and
36952   # people can always --disable-shared, the test was removed, and we
36953   # assume the GNU/Linux dynamic linker is in use.
36954   dynamic_linker='GNU/Linux ld.so'
36955   ;;
36956
36957 knetbsd*-gnu)
36958   version_type=linux
36959   need_lib_prefix=no
36960   need_version=no
36961   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
36962   soname_spec='${libname}${release}${shared_ext}$major'
36963   shlibpath_var=LD_LIBRARY_PATH
36964   shlibpath_overrides_runpath=no
36965   hardcode_into_libs=yes
36966   dynamic_linker='GNU ld.so'
36967   ;;
36968
36969 netbsd*)
36970   version_type=sunos
36971   need_lib_prefix=no
36972   need_version=no
36973   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
36974     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
36975     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
36976     dynamic_linker='NetBSD (a.out) ld.so'
36977   else
36978     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
36979     soname_spec='${libname}${release}${shared_ext}$major'
36980     dynamic_linker='NetBSD ld.elf_so'
36981   fi
36982   shlibpath_var=LD_LIBRARY_PATH
36983   shlibpath_overrides_runpath=yes
36984   hardcode_into_libs=yes
36985   ;;
36986
36987 newsos6)
36988   version_type=linux
36989   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
36990   shlibpath_var=LD_LIBRARY_PATH
36991   shlibpath_overrides_runpath=yes
36992   ;;
36993
36994 nto-qnx*)
36995   version_type=linux
36996   need_lib_prefix=no
36997   need_version=no
36998   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
36999   soname_spec='${libname}${release}${shared_ext}$major'
37000   shlibpath_var=LD_LIBRARY_PATH
37001   shlibpath_overrides_runpath=yes
37002   ;;
37003
37004 openbsd*)
37005   version_type=sunos
37006   need_lib_prefix=no
37007   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
37008   case $host_os in
37009     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
37010     *)                         need_version=no  ;;
37011   esac
37012   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
37013   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
37014   shlibpath_var=LD_LIBRARY_PATH
37015   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
37016     case $host_os in
37017       openbsd2.[89] | openbsd2.[89].*)
37018         shlibpath_overrides_runpath=no
37019         ;;
37020       *)
37021         shlibpath_overrides_runpath=yes
37022         ;;
37023       esac
37024   else
37025     shlibpath_overrides_runpath=yes
37026   fi
37027   ;;
37028
37029 os2*)
37030   libname_spec='$name'
37031   shrext_cmds=".dll"
37032   need_lib_prefix=no
37033   library_names_spec='$libname${shared_ext} $libname.a'
37034   dynamic_linker='OS/2 ld.exe'
37035   shlibpath_var=LIBPATH
37036   ;;
37037
37038 osf3* | osf4* | osf5*)
37039   version_type=osf
37040   need_lib_prefix=no
37041   need_version=no
37042   soname_spec='${libname}${release}${shared_ext}$major'
37043   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
37044   shlibpath_var=LD_LIBRARY_PATH
37045   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
37046   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
37047   ;;
37048
37049 sco3.2v5*)
37050   version_type=osf
37051   soname_spec='${libname}${release}${shared_ext}$major'
37052   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
37053   shlibpath_var=LD_LIBRARY_PATH
37054   ;;
37055
37056 solaris*)
37057   version_type=linux
37058   need_lib_prefix=no
37059   need_version=no
37060   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
37061   soname_spec='${libname}${release}${shared_ext}$major'
37062   shlibpath_var=LD_LIBRARY_PATH
37063   shlibpath_overrides_runpath=yes
37064   hardcode_into_libs=yes
37065   # ldd complains unless libraries are executable
37066   postinstall_cmds='chmod +x $lib'
37067   ;;
37068
37069 sunos4*)
37070   version_type=sunos
37071   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
37072   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
37073   shlibpath_var=LD_LIBRARY_PATH
37074   shlibpath_overrides_runpath=yes
37075   if test "$with_gnu_ld" = yes; then
37076     need_lib_prefix=no
37077   fi
37078   need_version=yes
37079   ;;
37080
37081 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
37082   version_type=linux
37083   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
37084   soname_spec='${libname}${release}${shared_ext}$major'
37085   shlibpath_var=LD_LIBRARY_PATH
37086   case $host_vendor in
37087     sni)
37088       shlibpath_overrides_runpath=no
37089       need_lib_prefix=no
37090       export_dynamic_flag_spec='${wl}-Blargedynsym'
37091       runpath_var=LD_RUN_PATH
37092       ;;
37093     siemens)
37094       need_lib_prefix=no
37095       ;;
37096     motorola)
37097       need_lib_prefix=no
37098       need_version=no
37099       shlibpath_overrides_runpath=no
37100       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
37101       ;;
37102   esac
37103   ;;
37104
37105 sysv4*MP*)
37106   if test -d /usr/nec ;then
37107     version_type=linux
37108     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
37109     soname_spec='$libname${shared_ext}.$major'
37110     shlibpath_var=LD_LIBRARY_PATH
37111   fi
37112   ;;
37113
37114 uts4*)
37115   version_type=linux
37116   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
37117   soname_spec='${libname}${release}${shared_ext}$major'
37118   shlibpath_var=LD_LIBRARY_PATH
37119   ;;
37120
37121 *)
37122   dynamic_linker=no
37123   ;;
37124 esac
37125 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
37126 echo "${ECHO_T}$dynamic_linker" >&6; }
37127 test "$dynamic_linker" = no && can_build_shared=no
37128
37129 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
37130 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
37131 hardcode_action=
37132 if test -n "$hardcode_libdir_flag_spec" || \
37133    test -n "$runpath_var" || \
37134    test "X$hardcode_automatic" = "Xyes" ; then
37135
37136   # We can hardcode non-existant directories.
37137   if test "$hardcode_direct" != no &&
37138      # If the only mechanism to avoid hardcoding is shlibpath_var, we
37139      # have to relink, otherwise we might link with an installed library
37140      # when we should be linking with a yet-to-be-installed one
37141      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
37142      test "$hardcode_minus_L" != no; then
37143     # Linking always hardcodes the temporary library directory.
37144     hardcode_action=relink
37145   else
37146     # We can link without hardcoding, and we can hardcode nonexisting dirs.
37147     hardcode_action=immediate
37148   fi
37149 else
37150   # We cannot hardcode anything, or else we can only hardcode existing
37151   # directories.
37152   hardcode_action=unsupported
37153 fi
37154 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
37155 echo "${ECHO_T}$hardcode_action" >&6; }
37156
37157 if test "$hardcode_action" = relink; then
37158   # Fast installation is not supported
37159   enable_fast_install=no
37160 elif test "$shlibpath_overrides_runpath" = yes ||
37161      test "$enable_shared" = no; then
37162   # Fast installation is not necessary
37163   enable_fast_install=needless
37164 fi
37165
37166 striplib=
37167 old_striplib=
37168 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
37169 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
37170 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
37171   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
37172   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
37173   { echo "$as_me:$LINENO: result: yes" >&5
37174 echo "${ECHO_T}yes" >&6; }
37175 else
37176 # FIXME - insert some real tests, host_os isn't really good enough
37177   case $host_os in
37178    darwin*)
37179        if test -n "$STRIP" ; then
37180          striplib="$STRIP -x"
37181          { echo "$as_me:$LINENO: result: yes" >&5
37182 echo "${ECHO_T}yes" >&6; }
37183        else
37184   { echo "$as_me:$LINENO: result: no" >&5
37185 echo "${ECHO_T}no" >&6; }
37186 fi
37187        ;;
37188    *)
37189   { echo "$as_me:$LINENO: result: no" >&5
37190 echo "${ECHO_T}no" >&6; }
37191     ;;
37192   esac
37193 fi
37194
37195 if test "x$enable_dlopen" != xyes; then
37196   enable_dlopen=unknown
37197   enable_dlopen_self=unknown
37198   enable_dlopen_self_static=unknown
37199 else
37200   lt_cv_dlopen=no
37201   lt_cv_dlopen_libs=
37202
37203   case $host_os in
37204   beos*)
37205     lt_cv_dlopen="load_add_on"
37206     lt_cv_dlopen_libs=
37207     lt_cv_dlopen_self=yes
37208     ;;
37209
37210   mingw* | pw32*)
37211     lt_cv_dlopen="LoadLibrary"
37212     lt_cv_dlopen_libs=
37213    ;;
37214
37215   cygwin*)
37216     lt_cv_dlopen="dlopen"
37217     lt_cv_dlopen_libs=
37218    ;;
37219
37220   darwin*)
37221   # if libdl is installed we need to link against it
37222     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
37223 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
37224 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
37225   echo $ECHO_N "(cached) $ECHO_C" >&6
37226 else
37227   ac_check_lib_save_LIBS=$LIBS
37228 LIBS="-ldl  $LIBS"
37229 cat >conftest.$ac_ext <<_ACEOF
37230 /* confdefs.h.  */
37231 _ACEOF
37232 cat confdefs.h >>conftest.$ac_ext
37233 cat >>conftest.$ac_ext <<_ACEOF
37234 /* end confdefs.h.  */
37235
37236 /* Override any GCC internal prototype to avoid an error.
37237    Use char because int might match the return type of a GCC
37238    builtin and then its argument prototype would still apply.  */
37239 #ifdef __cplusplus
37240 extern "C"
37241 #endif
37242 char dlopen ();
37243 int
37244 main ()
37245 {
37246 return dlopen ();
37247   ;
37248   return 0;
37249 }
37250 _ACEOF
37251 rm -f conftest.$ac_objext conftest$ac_exeext
37252 if { (ac_try="$ac_link"
37253 case "(($ac_try" in
37254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37255   *) ac_try_echo=$ac_try;;
37256 esac
37257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37258   (eval "$ac_link") 2>conftest.er1
37259   ac_status=$?
37260   grep -v '^ *+' conftest.er1 >conftest.err
37261   rm -f conftest.er1
37262   cat conftest.err >&5
37263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37264   (exit $ac_status); } && {
37265          test -z "$ac_c_werror_flag" ||
37266          test ! -s conftest.err
37267        } && test -s conftest$ac_exeext &&
37268        $as_test_x conftest$ac_exeext; then
37269   ac_cv_lib_dl_dlopen=yes
37270 else
37271   echo "$as_me: failed program was:" >&5
37272 sed 's/^/| /' conftest.$ac_ext >&5
37273
37274         ac_cv_lib_dl_dlopen=no
37275 fi
37276
37277 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37278       conftest$ac_exeext conftest.$ac_ext
37279 LIBS=$ac_check_lib_save_LIBS
37280 fi
37281 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
37282 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
37283 if test $ac_cv_lib_dl_dlopen = yes; then
37284   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
37285 else
37286
37287     lt_cv_dlopen="dyld"
37288     lt_cv_dlopen_libs=
37289     lt_cv_dlopen_self=yes
37290
37291 fi
37292
37293    ;;
37294
37295   *)
37296     { echo "$as_me:$LINENO: checking for shl_load" >&5
37297 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
37298 if test "${ac_cv_func_shl_load+set}" = set; then
37299   echo $ECHO_N "(cached) $ECHO_C" >&6
37300 else
37301   cat >conftest.$ac_ext <<_ACEOF
37302 /* confdefs.h.  */
37303 _ACEOF
37304 cat confdefs.h >>conftest.$ac_ext
37305 cat >>conftest.$ac_ext <<_ACEOF
37306 /* end confdefs.h.  */
37307 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
37308    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37309 #define shl_load innocuous_shl_load
37310
37311 /* System header to define __stub macros and hopefully few prototypes,
37312     which can conflict with char shl_load (); below.
37313     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37314     <limits.h> exists even on freestanding compilers.  */
37315
37316 #ifdef __STDC__
37317 # include <limits.h>
37318 #else
37319 # include <assert.h>
37320 #endif
37321
37322 #undef shl_load
37323
37324 /* Override any GCC internal prototype to avoid an error.
37325    Use char because int might match the return type of a GCC
37326    builtin and then its argument prototype would still apply.  */
37327 #ifdef __cplusplus
37328 extern "C"
37329 #endif
37330 char shl_load ();
37331 /* The GNU C library defines this for functions which it implements
37332     to always fail with ENOSYS.  Some functions are actually named
37333     something starting with __ and the normal name is an alias.  */
37334 #if defined __stub_shl_load || defined __stub___shl_load
37335 choke me
37336 #endif
37337
37338 int
37339 main ()
37340 {
37341 return shl_load ();
37342   ;
37343   return 0;
37344 }
37345 _ACEOF
37346 rm -f conftest.$ac_objext conftest$ac_exeext
37347 if { (ac_try="$ac_link"
37348 case "(($ac_try" in
37349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37350   *) ac_try_echo=$ac_try;;
37351 esac
37352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37353   (eval "$ac_link") 2>conftest.er1
37354   ac_status=$?
37355   grep -v '^ *+' conftest.er1 >conftest.err
37356   rm -f conftest.er1
37357   cat conftest.err >&5
37358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37359   (exit $ac_status); } && {
37360          test -z "$ac_c_werror_flag" ||
37361          test ! -s conftest.err
37362        } && test -s conftest$ac_exeext &&
37363        $as_test_x conftest$ac_exeext; then
37364   ac_cv_func_shl_load=yes
37365 else
37366   echo "$as_me: failed program was:" >&5
37367 sed 's/^/| /' conftest.$ac_ext >&5
37368
37369         ac_cv_func_shl_load=no
37370 fi
37371
37372 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37373       conftest$ac_exeext conftest.$ac_ext
37374 fi
37375 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
37376 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
37377 if test $ac_cv_func_shl_load = yes; then
37378   lt_cv_dlopen="shl_load"
37379 else
37380   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
37381 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
37382 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
37383   echo $ECHO_N "(cached) $ECHO_C" >&6
37384 else
37385   ac_check_lib_save_LIBS=$LIBS
37386 LIBS="-ldld  $LIBS"
37387 cat >conftest.$ac_ext <<_ACEOF
37388 /* confdefs.h.  */
37389 _ACEOF
37390 cat confdefs.h >>conftest.$ac_ext
37391 cat >>conftest.$ac_ext <<_ACEOF
37392 /* end confdefs.h.  */
37393
37394 /* Override any GCC internal prototype to avoid an error.
37395    Use char because int might match the return type of a GCC
37396    builtin and then its argument prototype would still apply.  */
37397 #ifdef __cplusplus
37398 extern "C"
37399 #endif
37400 char shl_load ();
37401 int
37402 main ()
37403 {
37404 return shl_load ();
37405   ;
37406   return 0;
37407 }
37408 _ACEOF
37409 rm -f conftest.$ac_objext conftest$ac_exeext
37410 if { (ac_try="$ac_link"
37411 case "(($ac_try" in
37412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37413   *) ac_try_echo=$ac_try;;
37414 esac
37415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37416   (eval "$ac_link") 2>conftest.er1
37417   ac_status=$?
37418   grep -v '^ *+' conftest.er1 >conftest.err
37419   rm -f conftest.er1
37420   cat conftest.err >&5
37421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37422   (exit $ac_status); } && {
37423          test -z "$ac_c_werror_flag" ||
37424          test ! -s conftest.err
37425        } && test -s conftest$ac_exeext &&
37426        $as_test_x conftest$ac_exeext; then
37427   ac_cv_lib_dld_shl_load=yes
37428 else
37429   echo "$as_me: failed program was:" >&5
37430 sed 's/^/| /' conftest.$ac_ext >&5
37431
37432         ac_cv_lib_dld_shl_load=no
37433 fi
37434
37435 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37436       conftest$ac_exeext conftest.$ac_ext
37437 LIBS=$ac_check_lib_save_LIBS
37438 fi
37439 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
37440 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
37441 if test $ac_cv_lib_dld_shl_load = yes; then
37442   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
37443 else
37444   { echo "$as_me:$LINENO: checking for dlopen" >&5
37445 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
37446 if test "${ac_cv_func_dlopen+set}" = set; then
37447   echo $ECHO_N "(cached) $ECHO_C" >&6
37448 else
37449   cat >conftest.$ac_ext <<_ACEOF
37450 /* confdefs.h.  */
37451 _ACEOF
37452 cat confdefs.h >>conftest.$ac_ext
37453 cat >>conftest.$ac_ext <<_ACEOF
37454 /* end confdefs.h.  */
37455 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
37456    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37457 #define dlopen innocuous_dlopen
37458
37459 /* System header to define __stub macros and hopefully few prototypes,
37460     which can conflict with char dlopen (); below.
37461     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37462     <limits.h> exists even on freestanding compilers.  */
37463
37464 #ifdef __STDC__
37465 # include <limits.h>
37466 #else
37467 # include <assert.h>
37468 #endif
37469
37470 #undef dlopen
37471
37472 /* Override any GCC internal prototype to avoid an error.
37473    Use char because int might match the return type of a GCC
37474    builtin and then its argument prototype would still apply.  */
37475 #ifdef __cplusplus
37476 extern "C"
37477 #endif
37478 char dlopen ();
37479 /* The GNU C library defines this for functions which it implements
37480     to always fail with ENOSYS.  Some functions are actually named
37481     something starting with __ and the normal name is an alias.  */
37482 #if defined __stub_dlopen || defined __stub___dlopen
37483 choke me
37484 #endif
37485
37486 int
37487 main ()
37488 {
37489 return dlopen ();
37490   ;
37491   return 0;
37492 }
37493 _ACEOF
37494 rm -f conftest.$ac_objext conftest$ac_exeext
37495 if { (ac_try="$ac_link"
37496 case "(($ac_try" in
37497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37498   *) ac_try_echo=$ac_try;;
37499 esac
37500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37501   (eval "$ac_link") 2>conftest.er1
37502   ac_status=$?
37503   grep -v '^ *+' conftest.er1 >conftest.err
37504   rm -f conftest.er1
37505   cat conftest.err >&5
37506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37507   (exit $ac_status); } && {
37508          test -z "$ac_c_werror_flag" ||
37509          test ! -s conftest.err
37510        } && test -s conftest$ac_exeext &&
37511        $as_test_x conftest$ac_exeext; then
37512   ac_cv_func_dlopen=yes
37513 else
37514   echo "$as_me: failed program was:" >&5
37515 sed 's/^/| /' conftest.$ac_ext >&5
37516
37517         ac_cv_func_dlopen=no
37518 fi
37519
37520 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37521       conftest$ac_exeext conftest.$ac_ext
37522 fi
37523 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
37524 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
37525 if test $ac_cv_func_dlopen = yes; then
37526   lt_cv_dlopen="dlopen"
37527 else
37528   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
37529 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
37530 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
37531   echo $ECHO_N "(cached) $ECHO_C" >&6
37532 else
37533   ac_check_lib_save_LIBS=$LIBS
37534 LIBS="-ldl  $LIBS"
37535 cat >conftest.$ac_ext <<_ACEOF
37536 /* confdefs.h.  */
37537 _ACEOF
37538 cat confdefs.h >>conftest.$ac_ext
37539 cat >>conftest.$ac_ext <<_ACEOF
37540 /* end confdefs.h.  */
37541
37542 /* Override any GCC internal prototype to avoid an error.
37543    Use char because int might match the return type of a GCC
37544    builtin and then its argument prototype would still apply.  */
37545 #ifdef __cplusplus
37546 extern "C"
37547 #endif
37548 char dlopen ();
37549 int
37550 main ()
37551 {
37552 return dlopen ();
37553   ;
37554   return 0;
37555 }
37556 _ACEOF
37557 rm -f conftest.$ac_objext conftest$ac_exeext
37558 if { (ac_try="$ac_link"
37559 case "(($ac_try" in
37560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37561   *) ac_try_echo=$ac_try;;
37562 esac
37563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37564   (eval "$ac_link") 2>conftest.er1
37565   ac_status=$?
37566   grep -v '^ *+' conftest.er1 >conftest.err
37567   rm -f conftest.er1
37568   cat conftest.err >&5
37569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37570   (exit $ac_status); } && {
37571          test -z "$ac_c_werror_flag" ||
37572          test ! -s conftest.err
37573        } && test -s conftest$ac_exeext &&
37574        $as_test_x conftest$ac_exeext; then
37575   ac_cv_lib_dl_dlopen=yes
37576 else
37577   echo "$as_me: failed program was:" >&5
37578 sed 's/^/| /' conftest.$ac_ext >&5
37579
37580         ac_cv_lib_dl_dlopen=no
37581 fi
37582
37583 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37584       conftest$ac_exeext conftest.$ac_ext
37585 LIBS=$ac_check_lib_save_LIBS
37586 fi
37587 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
37588 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
37589 if test $ac_cv_lib_dl_dlopen = yes; then
37590   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
37591 else
37592   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
37593 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
37594 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
37595   echo $ECHO_N "(cached) $ECHO_C" >&6
37596 else
37597   ac_check_lib_save_LIBS=$LIBS
37598 LIBS="-lsvld  $LIBS"
37599 cat >conftest.$ac_ext <<_ACEOF
37600 /* confdefs.h.  */
37601 _ACEOF
37602 cat confdefs.h >>conftest.$ac_ext
37603 cat >>conftest.$ac_ext <<_ACEOF
37604 /* end confdefs.h.  */
37605
37606 /* Override any GCC internal prototype to avoid an error.
37607    Use char because int might match the return type of a GCC
37608    builtin and then its argument prototype would still apply.  */
37609 #ifdef __cplusplus
37610 extern "C"
37611 #endif
37612 char dlopen ();
37613 int
37614 main ()
37615 {
37616 return dlopen ();
37617   ;
37618   return 0;
37619 }
37620 _ACEOF
37621 rm -f conftest.$ac_objext conftest$ac_exeext
37622 if { (ac_try="$ac_link"
37623 case "(($ac_try" in
37624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37625   *) ac_try_echo=$ac_try;;
37626 esac
37627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37628   (eval "$ac_link") 2>conftest.er1
37629   ac_status=$?
37630   grep -v '^ *+' conftest.er1 >conftest.err
37631   rm -f conftest.er1
37632   cat conftest.err >&5
37633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37634   (exit $ac_status); } && {
37635          test -z "$ac_c_werror_flag" ||
37636          test ! -s conftest.err
37637        } && test -s conftest$ac_exeext &&
37638        $as_test_x conftest$ac_exeext; then
37639   ac_cv_lib_svld_dlopen=yes
37640 else
37641   echo "$as_me: failed program was:" >&5
37642 sed 's/^/| /' conftest.$ac_ext >&5
37643
37644         ac_cv_lib_svld_dlopen=no
37645 fi
37646
37647 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37648       conftest$ac_exeext conftest.$ac_ext
37649 LIBS=$ac_check_lib_save_LIBS
37650 fi
37651 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
37652 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
37653 if test $ac_cv_lib_svld_dlopen = yes; then
37654   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
37655 else
37656   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
37657 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
37658 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
37659   echo $ECHO_N "(cached) $ECHO_C" >&6
37660 else
37661   ac_check_lib_save_LIBS=$LIBS
37662 LIBS="-ldld  $LIBS"
37663 cat >conftest.$ac_ext <<_ACEOF
37664 /* confdefs.h.  */
37665 _ACEOF
37666 cat confdefs.h >>conftest.$ac_ext
37667 cat >>conftest.$ac_ext <<_ACEOF
37668 /* end confdefs.h.  */
37669
37670 /* Override any GCC internal prototype to avoid an error.
37671    Use char because int might match the return type of a GCC
37672    builtin and then its argument prototype would still apply.  */
37673 #ifdef __cplusplus
37674 extern "C"
37675 #endif
37676 char dld_link ();
37677 int
37678 main ()
37679 {
37680 return dld_link ();
37681   ;
37682   return 0;
37683 }
37684 _ACEOF
37685 rm -f conftest.$ac_objext conftest$ac_exeext
37686 if { (ac_try="$ac_link"
37687 case "(($ac_try" in
37688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37689   *) ac_try_echo=$ac_try;;
37690 esac
37691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37692   (eval "$ac_link") 2>conftest.er1
37693   ac_status=$?
37694   grep -v '^ *+' conftest.er1 >conftest.err
37695   rm -f conftest.er1
37696   cat conftest.err >&5
37697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37698   (exit $ac_status); } && {
37699          test -z "$ac_c_werror_flag" ||
37700          test ! -s conftest.err
37701        } && test -s conftest$ac_exeext &&
37702        $as_test_x conftest$ac_exeext; then
37703   ac_cv_lib_dld_dld_link=yes
37704 else
37705   echo "$as_me: failed program was:" >&5
37706 sed 's/^/| /' conftest.$ac_ext >&5
37707
37708         ac_cv_lib_dld_dld_link=no
37709 fi
37710
37711 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37712       conftest$ac_exeext conftest.$ac_ext
37713 LIBS=$ac_check_lib_save_LIBS
37714 fi
37715 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
37716 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
37717 if test $ac_cv_lib_dld_dld_link = yes; then
37718   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
37719 fi
37720
37721
37722 fi
37723
37724
37725 fi
37726
37727
37728 fi
37729
37730
37731 fi
37732
37733
37734 fi
37735
37736     ;;
37737   esac
37738
37739   if test "x$lt_cv_dlopen" != xno; then
37740     enable_dlopen=yes
37741   else
37742     enable_dlopen=no
37743   fi
37744
37745   case $lt_cv_dlopen in
37746   dlopen)
37747     save_CPPFLAGS="$CPPFLAGS"
37748     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
37749
37750     save_LDFLAGS="$LDFLAGS"
37751     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
37752
37753     save_LIBS="$LIBS"
37754     LIBS="$lt_cv_dlopen_libs $LIBS"
37755
37756     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
37757 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
37758 if test "${lt_cv_dlopen_self+set}" = set; then
37759   echo $ECHO_N "(cached) $ECHO_C" >&6
37760 else
37761           if test "$cross_compiling" = yes; then :
37762   lt_cv_dlopen_self=cross
37763 else
37764   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
37765   lt_status=$lt_dlunknown
37766   cat > conftest.$ac_ext <<EOF
37767 #line 37767 "configure"
37768 #include "confdefs.h"
37769
37770 #if HAVE_DLFCN_H
37771 #include <dlfcn.h>
37772 #endif
37773
37774 #include <stdio.h>
37775
37776 #ifdef RTLD_GLOBAL
37777 #  define LT_DLGLOBAL           RTLD_GLOBAL
37778 #else
37779 #  ifdef DL_GLOBAL
37780 #    define LT_DLGLOBAL         DL_GLOBAL
37781 #  else
37782 #    define LT_DLGLOBAL         0
37783 #  endif
37784 #endif
37785
37786 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
37787    find out it does not work in some platform. */
37788 #ifndef LT_DLLAZY_OR_NOW
37789 #  ifdef RTLD_LAZY
37790 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
37791 #  else
37792 #    ifdef DL_LAZY
37793 #      define LT_DLLAZY_OR_NOW          DL_LAZY
37794 #    else
37795 #      ifdef RTLD_NOW
37796 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
37797 #      else
37798 #        ifdef DL_NOW
37799 #          define LT_DLLAZY_OR_NOW      DL_NOW
37800 #        else
37801 #          define LT_DLLAZY_OR_NOW      0
37802 #        endif
37803 #      endif
37804 #    endif
37805 #  endif
37806 #endif
37807
37808 #ifdef __cplusplus
37809 extern "C" void exit (int);
37810 #endif
37811
37812 void fnord() { int i=42;}
37813 int main ()
37814 {
37815   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
37816   int status = $lt_dlunknown;
37817
37818   if (self)
37819     {
37820       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
37821       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
37822       /* dlclose (self); */
37823     }
37824
37825     exit (status);
37826 }
37827 EOF
37828   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37829   (eval $ac_link) 2>&5
37830   ac_status=$?
37831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37832   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
37833     (./conftest; exit; ) >&5 2>/dev/null
37834     lt_status=$?
37835     case x$lt_status in
37836       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
37837       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
37838       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
37839     esac
37840   else :
37841     # compilation failed
37842     lt_cv_dlopen_self=no
37843   fi
37844 fi
37845 rm -fr conftest*
37846
37847
37848 fi
37849 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
37850 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
37851
37852     if test "x$lt_cv_dlopen_self" = xyes; then
37853       LDFLAGS="$LDFLAGS $link_static_flag"
37854       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
37855 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
37856 if test "${lt_cv_dlopen_self_static+set}" = set; then
37857   echo $ECHO_N "(cached) $ECHO_C" >&6
37858 else
37859           if test "$cross_compiling" = yes; then :
37860   lt_cv_dlopen_self_static=cross
37861 else
37862   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
37863   lt_status=$lt_dlunknown
37864   cat > conftest.$ac_ext <<EOF
37865 #line 37865 "configure"
37866 #include "confdefs.h"
37867
37868 #if HAVE_DLFCN_H
37869 #include <dlfcn.h>
37870 #endif
37871
37872 #include <stdio.h>
37873
37874 #ifdef RTLD_GLOBAL
37875 #  define LT_DLGLOBAL           RTLD_GLOBAL
37876 #else
37877 #  ifdef DL_GLOBAL
37878 #    define LT_DLGLOBAL         DL_GLOBAL
37879 #  else
37880 #    define LT_DLGLOBAL         0
37881 #  endif
37882 #endif
37883
37884 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
37885    find out it does not work in some platform. */
37886 #ifndef LT_DLLAZY_OR_NOW
37887 #  ifdef RTLD_LAZY
37888 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
37889 #  else
37890 #    ifdef DL_LAZY
37891 #      define LT_DLLAZY_OR_NOW          DL_LAZY
37892 #    else
37893 #      ifdef RTLD_NOW
37894 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
37895 #      else
37896 #        ifdef DL_NOW
37897 #          define LT_DLLAZY_OR_NOW      DL_NOW
37898 #        else
37899 #          define LT_DLLAZY_OR_NOW      0
37900 #        endif
37901 #      endif
37902 #    endif
37903 #  endif
37904 #endif
37905
37906 #ifdef __cplusplus
37907 extern "C" void exit (int);
37908 #endif
37909
37910 void fnord() { int i=42;}
37911 int main ()
37912 {
37913   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
37914   int status = $lt_dlunknown;
37915
37916   if (self)
37917     {
37918       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
37919       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
37920       /* dlclose (self); */
37921     }
37922
37923     exit (status);
37924 }
37925 EOF
37926   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37927   (eval $ac_link) 2>&5
37928   ac_status=$?
37929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37930   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
37931     (./conftest; exit; ) >&5 2>/dev/null
37932     lt_status=$?
37933     case x$lt_status in
37934       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
37935       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
37936       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
37937     esac
37938   else :
37939     # compilation failed
37940     lt_cv_dlopen_self_static=no
37941   fi
37942 fi
37943 rm -fr conftest*
37944
37945
37946 fi
37947 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
37948 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
37949     fi
37950
37951     CPPFLAGS="$save_CPPFLAGS"
37952     LDFLAGS="$save_LDFLAGS"
37953     LIBS="$save_LIBS"
37954     ;;
37955   esac
37956
37957   case $lt_cv_dlopen_self in
37958   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
37959   *) enable_dlopen_self=unknown ;;
37960   esac
37961
37962   case $lt_cv_dlopen_self_static in
37963   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
37964   *) enable_dlopen_self_static=unknown ;;
37965   esac
37966 fi
37967
37968
37969 # Report which librarie types wil actually be built
37970 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
37971 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
37972 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
37973 echo "${ECHO_T}$can_build_shared" >&6; }
37974
37975 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
37976 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
37977 test "$can_build_shared" = "no" && enable_shared=no
37978
37979 # On AIX, shared libraries and static libraries use the same namespace, and
37980 # are all built from PIC.
37981 case $host_os in
37982 aix3*)
37983   test "$enable_shared" = yes && enable_static=no
37984   if test -n "$RANLIB"; then
37985     archive_cmds="$archive_cmds~\$RANLIB \$lib"
37986     postinstall_cmds='$RANLIB $lib'
37987   fi
37988   ;;
37989
37990 aix4* | aix5*)
37991   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
37992     test "$enable_shared" = yes && enable_static=no
37993   fi
37994     ;;
37995 esac
37996 { echo "$as_me:$LINENO: result: $enable_shared" >&5
37997 echo "${ECHO_T}$enable_shared" >&6; }
37998
37999 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
38000 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
38001 # Make sure either enable_shared or enable_static is yes.
38002 test "$enable_shared" = yes || enable_static=yes
38003 { echo "$as_me:$LINENO: result: $enable_static" >&5
38004 echo "${ECHO_T}$enable_static" >&6; }
38005
38006 # The else clause should only fire when bootstrapping the
38007 # libtool distribution, otherwise you forgot to ship ltmain.sh
38008 # with your package, and you will get complaints that there are
38009 # no rules to generate ltmain.sh.
38010 if test -f "$ltmain"; then
38011   # See if we are running on zsh, and set the options which allow our commands through
38012   # without removal of \ escapes.
38013   if test -n "${ZSH_VERSION+set}" ; then
38014     setopt NO_GLOB_SUBST
38015   fi
38016   # Now quote all the things that may contain metacharacters while being
38017   # careful not to overquote the AC_SUBSTed values.  We take copies of the
38018   # variables and quote the copies for generation of the libtool script.
38019   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
38020     SED SHELL STRIP \
38021     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
38022     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
38023     deplibs_check_method reload_flag reload_cmds need_locks \
38024     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
38025     lt_cv_sys_global_symbol_to_c_name_address \
38026     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
38027     old_postinstall_cmds old_postuninstall_cmds \
38028     compiler \
38029     CC \
38030     LD \
38031     lt_prog_compiler_wl \
38032     lt_prog_compiler_pic \
38033     lt_prog_compiler_static \
38034     lt_prog_compiler_no_builtin_flag \
38035     export_dynamic_flag_spec \
38036     thread_safe_flag_spec \
38037     whole_archive_flag_spec \
38038     enable_shared_with_static_runtimes \
38039     old_archive_cmds \
38040     old_archive_from_new_cmds \
38041     predep_objects \
38042     postdep_objects \
38043     predeps \
38044     postdeps \
38045     compiler_lib_search_path \
38046     archive_cmds \
38047     archive_expsym_cmds \
38048     postinstall_cmds \
38049     postuninstall_cmds \
38050     old_archive_from_expsyms_cmds \
38051     allow_undefined_flag \
38052     no_undefined_flag \
38053     export_symbols_cmds \
38054     hardcode_libdir_flag_spec \
38055     hardcode_libdir_flag_spec_ld \
38056     hardcode_libdir_separator \
38057     hardcode_automatic \
38058     module_cmds \
38059     module_expsym_cmds \
38060     lt_cv_prog_compiler_c_o \
38061     exclude_expsyms \
38062     include_expsyms; do
38063
38064     case $var in
38065     old_archive_cmds | \
38066     old_archive_from_new_cmds | \
38067     archive_cmds | \
38068     archive_expsym_cmds | \
38069     module_cmds | \
38070     module_expsym_cmds | \
38071     old_archive_from_expsyms_cmds | \
38072     export_symbols_cmds | \
38073     extract_expsyms_cmds | reload_cmds | finish_cmds | \
38074     postinstall_cmds | postuninstall_cmds | \
38075     old_postinstall_cmds | old_postuninstall_cmds | \
38076     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
38077       # Double-quote double-evaled strings.
38078       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
38079       ;;
38080     *)
38081       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
38082       ;;
38083     esac
38084   done
38085
38086   case $lt_echo in
38087   *'\$0 --fallback-echo"')
38088     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
38089     ;;
38090   esac
38091
38092 cfgfile="${ofile}T"
38093   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
38094   $rm -f "$cfgfile"
38095   { echo "$as_me:$LINENO: creating $ofile" >&5
38096 echo "$as_me: creating $ofile" >&6;}
38097
38098   cat <<__EOF__ >> "$cfgfile"
38099 #! $SHELL
38100
38101 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
38102 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
38103 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
38104 #
38105 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
38106 # Free Software Foundation, Inc.
38107 #
38108 # This file is part of GNU Libtool:
38109 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
38110 #
38111 # This program is free software; you can redistribute it and/or modify
38112 # it under the terms of the GNU General Public License as published by
38113 # the Free Software Foundation; either version 2 of the License, or
38114 # (at your option) any later version.
38115 #
38116 # This program is distributed in the hope that it will be useful, but
38117 # WITHOUT ANY WARRANTY; without even the implied warranty of
38118 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
38119 # General Public License for more details.
38120 #
38121 # You should have received a copy of the GNU General Public License
38122 # along with this program; if not, write to the Free Software
38123 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
38124 #
38125 # As a special exception to the GNU General Public License, if you
38126 # distribute this file as part of a program that contains a
38127 # configuration script generated by Autoconf, you may include it under
38128 # the same distribution terms that you use for the rest of that program.
38129
38130 # A sed program that does not truncate output.
38131 SED=$lt_SED
38132
38133 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
38134 Xsed="$SED -e 1s/^X//"
38135
38136 # The HP-UX ksh and POSIX shell print the target directory to stdout
38137 # if CDPATH is set.
38138 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
38139
38140 # The names of the tagged configurations supported by this script.
38141 available_tags=
38142
38143 # ### BEGIN LIBTOOL CONFIG
38144
38145 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
38146
38147 # Shell to use when invoking shell scripts.
38148 SHELL=$lt_SHELL
38149
38150 # Whether or not to build shared libraries.
38151 build_libtool_libs=$enable_shared
38152
38153 # Whether or not to build static libraries.
38154 build_old_libs=$enable_static
38155
38156 # Whether or not to add -lc for building shared libraries.
38157 build_libtool_need_lc=$archive_cmds_need_lc
38158
38159 # Whether or not to disallow shared libs when runtime libs are static
38160 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
38161
38162 # Whether or not to optimize for fast installation.
38163 fast_install=$enable_fast_install
38164
38165 # The host system.
38166 host_alias=$host_alias
38167 host=$host
38168 host_os=$host_os
38169
38170 # The build system.
38171 build_alias=$build_alias
38172 build=$build
38173 build_os=$build_os
38174
38175 # An echo program that does not interpret backslashes.
38176 echo=$lt_echo
38177
38178 # The archiver.
38179 AR=$lt_AR
38180 AR_FLAGS=$lt_AR_FLAGS
38181
38182 # A C compiler.
38183 LTCC=$lt_LTCC
38184
38185 # A language-specific compiler.
38186 CC=$lt_compiler
38187
38188 # Is the compiler the GNU C compiler?
38189 with_gcc=$GCC
38190
38191 # An ERE matcher.
38192 EGREP=$lt_EGREP
38193
38194 # The linker used to build libraries.
38195 LD=$lt_LD
38196
38197 # Whether we need hard or soft links.
38198 LN_S=$lt_LN_S
38199
38200 # A BSD-compatible nm program.
38201 NM=$lt_NM
38202
38203 # A symbol stripping program
38204 STRIP=$lt_STRIP
38205
38206 # Used to examine libraries when file_magic_cmd begins "file"
38207 MAGIC_CMD=$MAGIC_CMD
38208
38209 # Used on cygwin: DLL creation program.
38210 DLLTOOL="$DLLTOOL"
38211
38212 # Used on cygwin: object dumper.
38213 OBJDUMP="$OBJDUMP"
38214
38215 # Used on cygwin: assembler.
38216 AS="$AS"
38217
38218 # The name of the directory that contains temporary libtool files.
38219 objdir=$objdir
38220
38221 # How to create reloadable object files.
38222 reload_flag=$lt_reload_flag
38223 reload_cmds=$lt_reload_cmds
38224
38225 # How to pass a linker flag through the compiler.
38226 wl=$lt_lt_prog_compiler_wl
38227
38228 # Object file suffix (normally "o").
38229 objext="$ac_objext"
38230
38231 # Old archive suffix (normally "a").
38232 libext="$libext"
38233
38234 # Shared library suffix (normally ".so").
38235 shrext_cmds='$shrext_cmds'
38236
38237 # Executable file suffix (normally "").
38238 exeext="$exeext"
38239
38240 # Additional compiler flags for building library objects.
38241 pic_flag=$lt_lt_prog_compiler_pic
38242 pic_mode=$pic_mode
38243
38244 # What is the maximum length of a command?
38245 max_cmd_len=$lt_cv_sys_max_cmd_len
38246
38247 # Does compiler simultaneously support -c and -o options?
38248 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
38249
38250 # Must we lock files when doing compilation?
38251 need_locks=$lt_need_locks
38252
38253 # Do we need the lib prefix for modules?
38254 need_lib_prefix=$need_lib_prefix
38255
38256 # Do we need a version for libraries?
38257 need_version=$need_version
38258
38259 # Whether dlopen is supported.
38260 dlopen_support=$enable_dlopen
38261
38262 # Whether dlopen of programs is supported.
38263 dlopen_self=$enable_dlopen_self
38264
38265 # Whether dlopen of statically linked programs is supported.
38266 dlopen_self_static=$enable_dlopen_self_static
38267
38268 # Compiler flag to prevent dynamic linking.
38269 link_static_flag=$lt_lt_prog_compiler_static
38270
38271 # Compiler flag to turn off builtin functions.
38272 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
38273
38274 # Compiler flag to allow reflexive dlopens.
38275 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
38276
38277 # Compiler flag to generate shared objects directly from archives.
38278 whole_archive_flag_spec=$lt_whole_archive_flag_spec
38279
38280 # Compiler flag to generate thread-safe objects.
38281 thread_safe_flag_spec=$lt_thread_safe_flag_spec
38282
38283 # Library versioning type.
38284 version_type=$version_type
38285
38286 # Format of library name prefix.
38287 libname_spec=$lt_libname_spec
38288
38289 # List of archive names.  First name is the real one, the rest are links.
38290 # The last name is the one that the linker finds with -lNAME.
38291 library_names_spec=$lt_library_names_spec
38292
38293 # The coded name of the library, if different from the real name.
38294 soname_spec=$lt_soname_spec
38295
38296 # Commands used to build and install an old-style archive.
38297 RANLIB=$lt_RANLIB
38298 old_archive_cmds=$lt_old_archive_cmds
38299 old_postinstall_cmds=$lt_old_postinstall_cmds
38300 old_postuninstall_cmds=$lt_old_postuninstall_cmds
38301
38302 # Create an old-style archive from a shared archive.
38303 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
38304
38305 # Create a temporary old-style archive to link instead of a shared archive.
38306 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
38307
38308 # Commands used to build and install a shared archive.
38309 archive_cmds=$lt_archive_cmds
38310 archive_expsym_cmds=$lt_archive_expsym_cmds
38311 postinstall_cmds=$lt_postinstall_cmds
38312 postuninstall_cmds=$lt_postuninstall_cmds
38313
38314 # Commands used to build a loadable module (assumed same as above if empty)
38315 module_cmds=$lt_module_cmds
38316 module_expsym_cmds=$lt_module_expsym_cmds
38317
38318 # Commands to strip libraries.
38319 old_striplib=$lt_old_striplib
38320 striplib=$lt_striplib
38321
38322 # Dependencies to place before the objects being linked to create a
38323 # shared library.
38324 predep_objects=$lt_predep_objects
38325
38326 # Dependencies to place after the objects being linked to create a
38327 # shared library.
38328 postdep_objects=$lt_postdep_objects
38329
38330 # Dependencies to place before the objects being linked to create a
38331 # shared library.
38332 predeps=$lt_predeps
38333
38334 # Dependencies to place after the objects being linked to create a
38335 # shared library.
38336 postdeps=$lt_postdeps
38337
38338 # The library search path used internally by the compiler when linking
38339 # a shared library.
38340 compiler_lib_search_path=$lt_compiler_lib_search_path
38341
38342 # Method to check whether dependent libraries are shared objects.
38343 deplibs_check_method=$lt_deplibs_check_method
38344
38345 # Command to use when deplibs_check_method == file_magic.
38346 file_magic_cmd=$lt_file_magic_cmd
38347
38348 # Flag that allows shared libraries with undefined symbols to be built.
38349 allow_undefined_flag=$lt_allow_undefined_flag
38350
38351 # Flag that forces no undefined symbols.
38352 no_undefined_flag=$lt_no_undefined_flag
38353
38354 # Commands used to finish a libtool library installation in a directory.
38355 finish_cmds=$lt_finish_cmds
38356
38357 # Same as above, but a single script fragment to be evaled but not shown.
38358 finish_eval=$lt_finish_eval
38359
38360 # Take the output of nm and produce a listing of raw symbols and C names.
38361 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
38362
38363 # Transform the output of nm in a proper C declaration
38364 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
38365
38366 # Transform the output of nm in a C name address pair
38367 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
38368
38369 # This is the shared library runtime path variable.
38370 runpath_var=$runpath_var
38371
38372 # This is the shared library path variable.
38373 shlibpath_var=$shlibpath_var
38374
38375 # Is shlibpath searched before the hard-coded library search path?
38376 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
38377
38378 # How to hardcode a shared library path into an executable.
38379 hardcode_action=$hardcode_action
38380
38381 # Whether we should hardcode library paths into libraries.
38382 hardcode_into_libs=$hardcode_into_libs
38383
38384 # Flag to hardcode \$libdir into a binary during linking.
38385 # This must work even if \$libdir does not exist.
38386 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
38387
38388 # If ld is used when linking, flag to hardcode \$libdir into
38389 # a binary during linking. This must work even if \$libdir does
38390 # not exist.
38391 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
38392
38393 # Whether we need a single -rpath flag with a separated argument.
38394 hardcode_libdir_separator=$lt_hardcode_libdir_separator
38395
38396 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
38397 # resulting binary.
38398 hardcode_direct=$hardcode_direct
38399
38400 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
38401 # resulting binary.
38402 hardcode_minus_L=$hardcode_minus_L
38403
38404 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
38405 # the resulting binary.
38406 hardcode_shlibpath_var=$hardcode_shlibpath_var
38407
38408 # Set to yes if building a shared library automatically hardcodes DIR into the library
38409 # and all subsequent libraries and executables linked against it.
38410 hardcode_automatic=$hardcode_automatic
38411
38412 # Variables whose values should be saved in libtool wrapper scripts and
38413 # restored at relink time.
38414 variables_saved_for_relink="$variables_saved_for_relink"
38415
38416 # Whether libtool must link a program against all its dependency libraries.
38417 link_all_deplibs=$link_all_deplibs
38418
38419 # Compile-time system search path for libraries
38420 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
38421
38422 # Run-time system search path for libraries
38423 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
38424
38425 # Fix the shell variable \$srcfile for the compiler.
38426 fix_srcfile_path="$fix_srcfile_path"
38427
38428 # Set to yes if exported symbols are required.
38429 always_export_symbols=$always_export_symbols
38430
38431 # The commands to list exported symbols.
38432 export_symbols_cmds=$lt_export_symbols_cmds
38433
38434 # The commands to extract the exported symbol list from a shared archive.
38435 extract_expsyms_cmds=$lt_extract_expsyms_cmds
38436
38437 # Symbols that should not be listed in the preloaded symbols.
38438 exclude_expsyms=$lt_exclude_expsyms
38439
38440 # Symbols that must always be exported.
38441 include_expsyms=$lt_include_expsyms
38442
38443 # ### END LIBTOOL CONFIG
38444
38445 __EOF__
38446
38447
38448   case $host_os in
38449   aix3*)
38450     cat <<\EOF >> "$cfgfile"
38451
38452 # AIX sometimes has problems with the GCC collect2 program.  For some
38453 # reason, if we set the COLLECT_NAMES environment variable, the problems
38454 # vanish in a puff of smoke.
38455 if test "X${COLLECT_NAMES+set}" != Xset; then
38456   COLLECT_NAMES=
38457   export COLLECT_NAMES
38458 fi
38459 EOF
38460     ;;
38461   esac
38462
38463   # We use sed instead of cat because bash on DJGPP gets confused if
38464   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
38465   # text mode, it properly converts lines to CR/LF.  This bash problem
38466   # is reportedly fixed, but why not run on old versions too?
38467   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
38468
38469   mv -f "$cfgfile" "$ofile" || \
38470     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
38471   chmod +x "$ofile"
38472
38473 else
38474   # If there is no Makefile yet, we rely on a make rule to execute
38475   # `config.status --recheck' to rerun these tests and create the
38476   # libtool script then.
38477   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
38478   if test -f "$ltmain_in"; then
38479     test -f Makefile && make "$ltmain"
38480   fi
38481 fi
38482
38483
38484 ac_ext=c
38485 ac_cpp='$CPP $CPPFLAGS'
38486 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38487 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38488 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38489
38490 CC="$lt_save_CC"
38491
38492
38493 # Check whether --with-tags was given.
38494 if test "${with_tags+set}" = set; then
38495   withval=$with_tags; tagnames="$withval"
38496 fi
38497
38498
38499 if test -f "$ltmain" && test -n "$tagnames"; then
38500   if test ! -f "${ofile}"; then
38501
38502     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
38503 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
38504
38505
38506     cat <<AAW_EOF >>config.warnings
38507 output file \`$ofile' does not exist
38508 AAW_EOF
38509
38510
38511   fi
38512
38513   if test -z "$LTCC"; then
38514     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
38515     if test -z "$LTCC"; then
38516
38517     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
38518 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
38519
38520
38521     cat <<AAW_EOF >>config.warnings
38522 output file \`$ofile' does not look like a libtool script
38523 AAW_EOF
38524
38525
38526     else
38527
38528     { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
38529 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
38530
38531
38532     cat <<AAW_EOF >>config.warnings
38533 using \`LTCC=$LTCC', extracted from \`$ofile'
38534 AAW_EOF
38535
38536
38537     fi
38538   fi
38539
38540   # Extract list of available tagged configurations in $ofile.
38541   # Note that this assumes the entire list is on one line.
38542   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
38543
38544   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
38545   for tagname in $tagnames; do
38546     IFS="$lt_save_ifs"
38547     # Check whether tagname contains only valid characters
38548     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
38549     "") ;;
38550     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
38551 echo "$as_me: error: invalid tag name: $tagname" >&2;}
38552    { (exit 1); exit 1; }; }
38553         ;;
38554     esac
38555
38556     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
38557     then
38558       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
38559 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
38560    { (exit 1); exit 1; }; }
38561     fi
38562
38563     # Update the list of available tags.
38564     if test -n "$tagname"; then
38565       echo appending configuration tag \"$tagname\" to $ofile
38566
38567       case $tagname in
38568       CXX)
38569         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
38570             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
38571             (test "X$CXX" != "Xg++"))) ; then
38572           ac_ext=cpp
38573 ac_cpp='$CXXCPP $CPPFLAGS'
38574 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38575 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38576 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38577
38578
38579
38580
38581 archive_cmds_need_lc_CXX=no
38582 allow_undefined_flag_CXX=
38583 always_export_symbols_CXX=no
38584 archive_expsym_cmds_CXX=
38585 export_dynamic_flag_spec_CXX=
38586 hardcode_direct_CXX=no
38587 hardcode_libdir_flag_spec_CXX=
38588 hardcode_libdir_flag_spec_ld_CXX=
38589 hardcode_libdir_separator_CXX=
38590 hardcode_minus_L_CXX=no
38591 hardcode_automatic_CXX=no
38592 module_cmds_CXX=
38593 module_expsym_cmds_CXX=
38594 link_all_deplibs_CXX=unknown
38595 old_archive_cmds_CXX=$old_archive_cmds
38596 no_undefined_flag_CXX=
38597 whole_archive_flag_spec_CXX=
38598 enable_shared_with_static_runtimes_CXX=no
38599
38600 # Dependencies to place before and after the object being linked:
38601 predep_objects_CXX=
38602 postdep_objects_CXX=
38603 predeps_CXX=
38604 postdeps_CXX=
38605 compiler_lib_search_path_CXX=
38606
38607 # Source file extension for C++ test sources.
38608 ac_ext=cpp
38609
38610 # Object file extension for compiled C++ test sources.
38611 objext=o
38612 objext_CXX=$objext
38613
38614 # Code to be used in simple compile tests
38615 lt_simple_compile_test_code="int some_variable = 0;\n"
38616
38617 # Code to be used in simple link tests
38618 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
38619
38620 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
38621
38622 # If no C compiler was specified, use CC.
38623 LTCC=${LTCC-"$CC"}
38624
38625 # Allow CC to be a program name with arguments.
38626 compiler=$CC
38627
38628
38629 # save warnings/boilerplate of simple test code
38630 ac_outfile=conftest.$ac_objext
38631 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
38632 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
38633 _lt_compiler_boilerplate=`cat conftest.err`
38634 $rm conftest*
38635
38636 ac_outfile=conftest.$ac_objext
38637 printf "$lt_simple_link_test_code" >conftest.$ac_ext
38638 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
38639 _lt_linker_boilerplate=`cat conftest.err`
38640 $rm conftest*
38641
38642
38643 # Allow CC to be a program name with arguments.
38644 lt_save_CC=$CC
38645 lt_save_LD=$LD
38646 lt_save_GCC=$GCC
38647 GCC=$GXX
38648 lt_save_with_gnu_ld=$with_gnu_ld
38649 lt_save_path_LD=$lt_cv_path_LD
38650 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
38651   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
38652 else
38653   unset lt_cv_prog_gnu_ld
38654 fi
38655 if test -n "${lt_cv_path_LDCXX+set}"; then
38656   lt_cv_path_LD=$lt_cv_path_LDCXX
38657 else
38658   unset lt_cv_path_LD
38659 fi
38660 test -z "${LDCXX+set}" || LD=$LDCXX
38661 CC=${CXX-"c++"}
38662 compiler=$CC
38663 compiler_CXX=$CC
38664 for cc_temp in $compiler""; do
38665   case $cc_temp in
38666     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
38667     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
38668     \-*) ;;
38669     *) break;;
38670   esac
38671 done
38672 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
38673
38674
38675 # We don't want -fno-exception wen compiling C++ code, so set the
38676 # no_builtin_flag separately
38677 if test "$GXX" = yes; then
38678   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
38679 else
38680   lt_prog_compiler_no_builtin_flag_CXX=
38681 fi
38682
38683 if test "$GXX" = yes; then
38684   # Set up default GNU C++ configuration
38685
38686
38687 # Check whether --with-gnu-ld was given.
38688 if test "${with_gnu_ld+set}" = set; then
38689   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
38690 else
38691   with_gnu_ld=no
38692 fi
38693
38694 ac_prog=ld
38695 if test "$GCC" = yes; then
38696   # Check if gcc -print-prog-name=ld gives a path.
38697   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
38698 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
38699   case $host in
38700   *-*-mingw*)
38701     # gcc leaves a trailing carriage return which upsets mingw
38702     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
38703   *)
38704     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
38705   esac
38706   case $ac_prog in
38707     # Accept absolute paths.
38708     [\\/]* | ?:[\\/]*)
38709       re_direlt='/[^/][^/]*/\.\./'
38710       # Canonicalize the pathname of ld
38711       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
38712       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
38713         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
38714       done
38715       test -z "$LD" && LD="$ac_prog"
38716       ;;
38717   "")
38718     # If it fails, then pretend we aren't using GCC.
38719     ac_prog=ld
38720     ;;
38721   *)
38722     # If it is relative, then search for the first ld in PATH.
38723     with_gnu_ld=unknown
38724     ;;
38725   esac
38726 elif test "$with_gnu_ld" = yes; then
38727   { echo "$as_me:$LINENO: checking for GNU ld" >&5
38728 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
38729 else
38730   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
38731 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
38732 fi
38733 if test "${lt_cv_path_LD+set}" = set; then
38734   echo $ECHO_N "(cached) $ECHO_C" >&6
38735 else
38736   if test -z "$LD"; then
38737   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
38738   for ac_dir in $PATH; do
38739     IFS="$lt_save_ifs"
38740     test -z "$ac_dir" && ac_dir=.
38741     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
38742       lt_cv_path_LD="$ac_dir/$ac_prog"
38743       # Check to see if the program is GNU ld.  I'd rather use --version,
38744       # but apparently some variants of GNU ld only accept -v.
38745       # Break only if it was the GNU/non-GNU ld that we prefer.
38746       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
38747       *GNU* | *'with BFD'*)
38748         test "$with_gnu_ld" != no && break
38749         ;;
38750       *)
38751         test "$with_gnu_ld" != yes && break
38752         ;;
38753       esac
38754     fi
38755   done
38756   IFS="$lt_save_ifs"
38757 else
38758   lt_cv_path_LD="$LD" # Let the user override the test with a path.
38759 fi
38760 fi
38761
38762 LD="$lt_cv_path_LD"
38763 if test -n "$LD"; then
38764   { echo "$as_me:$LINENO: result: $LD" >&5
38765 echo "${ECHO_T}$LD" >&6; }
38766 else
38767   { echo "$as_me:$LINENO: result: no" >&5
38768 echo "${ECHO_T}no" >&6; }
38769 fi
38770 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
38771 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
38772    { (exit 1); exit 1; }; }
38773 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
38774 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
38775 if test "${lt_cv_prog_gnu_ld+set}" = set; then
38776   echo $ECHO_N "(cached) $ECHO_C" >&6
38777 else
38778   # I'd rather use --version here, but apparently some GNU lds only accept -v.
38779 case `$LD -v 2>&1 </dev/null` in
38780 *GNU* | *'with BFD'*)
38781   lt_cv_prog_gnu_ld=yes
38782   ;;
38783 *)
38784   lt_cv_prog_gnu_ld=no
38785   ;;
38786 esac
38787 fi
38788 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
38789 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
38790 with_gnu_ld=$lt_cv_prog_gnu_ld
38791
38792
38793
38794   # Check if GNU C++ uses GNU ld as the underlying linker, since the
38795   # archiving commands below assume that GNU ld is being used.
38796   if test "$with_gnu_ld" = yes; then
38797     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
38798     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'
38799
38800     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
38801     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
38802
38803     # If archive_cmds runs LD, not CC, wlarc should be empty
38804     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
38805     #     investigate it a little bit more. (MM)
38806     wlarc='${wl}'
38807
38808     # ancient GNU ld didn't support --whole-archive et. al.
38809     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
38810         grep 'no-whole-archive' > /dev/null; then
38811       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
38812     else
38813       whole_archive_flag_spec_CXX=
38814     fi
38815   else
38816     with_gnu_ld=no
38817     wlarc=
38818
38819     # A generic and very simple default shared library creation
38820     # command for GNU C++ for the case where it uses the native
38821     # linker, instead of GNU ld.  If possible, this setting should
38822     # overridden to take advantage of the native linker features on
38823     # the platform it is being used on.
38824     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
38825   fi
38826
38827   # Commands to make compiler produce verbose output that lists
38828   # what "hidden" libraries, object files and flags are used when
38829   # linking a shared library.
38830   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
38831
38832 else
38833   GXX=no
38834   with_gnu_ld=no
38835   wlarc=
38836 fi
38837
38838 # PORTME: fill in a description of your system's C++ link characteristics
38839 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
38840 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
38841 ld_shlibs_CXX=yes
38842 case $host_os in
38843   aix3*)
38844     # FIXME: insert proper C++ library support
38845     ld_shlibs_CXX=no
38846     ;;
38847   aix4* | aix5*)
38848     if test "$host_cpu" = ia64; then
38849       # On IA64, the linker does run time linking by default, so we don't
38850       # have to do anything special.
38851       aix_use_runtimelinking=no
38852       exp_sym_flag='-Bexport'
38853       no_entry_flag=""
38854     else
38855       aix_use_runtimelinking=no
38856
38857       # Test if we are trying to use run time linking or normal
38858       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
38859       # need to do runtime linking.
38860       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
38861         for ld_flag in $LDFLAGS; do
38862           case $ld_flag in
38863           *-brtl*)
38864             aix_use_runtimelinking=yes
38865             break
38866             ;;
38867           esac
38868         done
38869       esac
38870
38871       exp_sym_flag='-bexport'
38872       no_entry_flag='-bnoentry'
38873     fi
38874
38875     # When large executables or shared objects are built, AIX ld can
38876     # have problems creating the table of contents.  If linking a library
38877     # or program results in "error TOC overflow" add -mminimal-toc to
38878     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
38879     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
38880
38881     archive_cmds_CXX=''
38882     hardcode_direct_CXX=yes
38883     hardcode_libdir_separator_CXX=':'
38884     link_all_deplibs_CXX=yes
38885
38886     if test "$GXX" = yes; then
38887       case $host_os in aix4.[012]|aix4.[012].*)
38888       # We only want to do this on AIX 4.2 and lower, the check
38889       # below for broken collect2 doesn't work under 4.3+
38890         collect2name=`${CC} -print-prog-name=collect2`
38891         if test -f "$collect2name" && \
38892            strings "$collect2name" | grep resolve_lib_name >/dev/null
38893         then
38894           # We have reworked collect2
38895           hardcode_direct_CXX=yes
38896         else
38897           # We have old collect2
38898           hardcode_direct_CXX=unsupported
38899           # It fails to find uninstalled libraries when the uninstalled
38900           # path is not listed in the libpath.  Setting hardcode_minus_L
38901           # to unsupported forces relinking
38902           hardcode_minus_L_CXX=yes
38903           hardcode_libdir_flag_spec_CXX='-L$libdir'
38904           hardcode_libdir_separator_CXX=
38905         fi
38906       esac
38907       shared_flag='-shared'
38908       if test "$aix_use_runtimelinking" = yes; then
38909         shared_flag="$shared_flag "'${wl}-G'
38910       fi
38911     else
38912       # not using gcc
38913       if test "$host_cpu" = ia64; then
38914         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
38915         # chokes on -Wl,-G. The following line is correct:
38916         shared_flag='-G'
38917       else
38918         if test "$aix_use_runtimelinking" = yes; then
38919           shared_flag='${wl}-G'
38920         else
38921           shared_flag='${wl}-bM:SRE'
38922         fi
38923       fi
38924     fi
38925
38926     # It seems that -bexpall does not export symbols beginning with
38927     # underscore (_), so it is better to generate a list of symbols to export.
38928     always_export_symbols_CXX=yes
38929     if test "$aix_use_runtimelinking" = yes; then
38930       # Warning - without using the other runtime loading flags (-brtl),
38931       # -berok will link without error, but may produce a broken library.
38932       allow_undefined_flag_CXX='-berok'
38933       # Determine the default libpath from the value encoded in an empty executable.
38934       cat >conftest.$ac_ext <<_ACEOF
38935 /* confdefs.h.  */
38936 _ACEOF
38937 cat confdefs.h >>conftest.$ac_ext
38938 cat >>conftest.$ac_ext <<_ACEOF
38939 /* end confdefs.h.  */
38940
38941 int
38942 main ()
38943 {
38944
38945   ;
38946   return 0;
38947 }
38948 _ACEOF
38949 rm -f conftest.$ac_objext conftest$ac_exeext
38950 if { (ac_try="$ac_link"
38951 case "(($ac_try" in
38952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38953   *) ac_try_echo=$ac_try;;
38954 esac
38955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38956   (eval "$ac_link") 2>conftest.er1
38957   ac_status=$?
38958   grep -v '^ *+' conftest.er1 >conftest.err
38959   rm -f conftest.er1
38960   cat conftest.err >&5
38961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38962   (exit $ac_status); } && {
38963          test -z "$ac_cxx_werror_flag" ||
38964          test ! -s conftest.err
38965        } && test -s conftest$ac_exeext &&
38966        $as_test_x conftest$ac_exeext; then
38967
38968 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
38969 }'`
38970 # Check for a 64-bit object if we didn't find anything.
38971 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; }
38972 }'`; fi
38973 else
38974   echo "$as_me: failed program was:" >&5
38975 sed 's/^/| /' conftest.$ac_ext >&5
38976
38977
38978 fi
38979
38980 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38981       conftest$ac_exeext conftest.$ac_ext
38982 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
38983
38984       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
38985
38986       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"
38987      else
38988       if test "$host_cpu" = ia64; then
38989         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
38990         allow_undefined_flag_CXX="-z nodefs"
38991         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"
38992       else
38993         # Determine the default libpath from the value encoded in an empty executable.
38994         cat >conftest.$ac_ext <<_ACEOF
38995 /* confdefs.h.  */
38996 _ACEOF
38997 cat confdefs.h >>conftest.$ac_ext
38998 cat >>conftest.$ac_ext <<_ACEOF
38999 /* end confdefs.h.  */
39000
39001 int
39002 main ()
39003 {
39004
39005   ;
39006   return 0;
39007 }
39008 _ACEOF
39009 rm -f conftest.$ac_objext conftest$ac_exeext
39010 if { (ac_try="$ac_link"
39011 case "(($ac_try" in
39012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39013   *) ac_try_echo=$ac_try;;
39014 esac
39015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39016   (eval "$ac_link") 2>conftest.er1
39017   ac_status=$?
39018   grep -v '^ *+' conftest.er1 >conftest.err
39019   rm -f conftest.er1
39020   cat conftest.err >&5
39021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39022   (exit $ac_status); } && {
39023          test -z "$ac_cxx_werror_flag" ||
39024          test ! -s conftest.err
39025        } && test -s conftest$ac_exeext &&
39026        $as_test_x conftest$ac_exeext; then
39027
39028 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
39029 }'`
39030 # Check for a 64-bit object if we didn't find anything.
39031 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; }
39032 }'`; fi
39033 else
39034   echo "$as_me: failed program was:" >&5
39035 sed 's/^/| /' conftest.$ac_ext >&5
39036
39037
39038 fi
39039
39040 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39041       conftest$ac_exeext conftest.$ac_ext
39042 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
39043
39044         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
39045         # Warning - without using the other run time loading flags,
39046         # -berok will link without error, but may produce a broken library.
39047         no_undefined_flag_CXX=' ${wl}-bernotok'
39048         allow_undefined_flag_CXX=' ${wl}-berok'
39049         # -bexpall does not export symbols beginning with underscore (_)
39050         always_export_symbols_CXX=yes
39051         # Exported symbols can be pulled into shared objects from archives
39052         whole_archive_flag_spec_CXX=' '
39053         archive_cmds_need_lc_CXX=yes
39054         # This is similar to how AIX traditionally builds its shared libraries.
39055         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'
39056       fi
39057     fi
39058     ;;
39059   chorus*)
39060     case $cc_basename in
39061       *)
39062         # FIXME: insert proper C++ library support
39063         ld_shlibs_CXX=no
39064         ;;
39065     esac
39066     ;;
39067
39068
39069   cygwin* | mingw* | pw32*)
39070     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
39071     # as there is no search path for DLLs.
39072     hardcode_libdir_flag_spec_CXX='-L$libdir'
39073     allow_undefined_flag_CXX=unsupported
39074     always_export_symbols_CXX=no
39075     enable_shared_with_static_runtimes_CXX=yes
39076
39077     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
39078       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'
39079       # If the export-symbols file already is a .def file (1st line
39080       # is EXPORTS), use it as is; otherwise, prepend...
39081       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
39082         cp $export_symbols $output_objdir/$soname.def;
39083       else
39084         echo EXPORTS > $output_objdir/$soname.def;
39085         cat $export_symbols >> $output_objdir/$soname.def;
39086       fi~
39087       $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'
39088     else
39089       ld_shlibs_CXX=no
39090     fi
39091   ;;
39092       darwin* | rhapsody*)
39093         case $host_os in
39094         rhapsody* | darwin1.[012])
39095          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
39096          ;;
39097        *) # Darwin 1.3 on
39098          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
39099            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
39100          else
39101            case ${MACOSX_DEPLOYMENT_TARGET} in
39102              10.[012])
39103                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
39104                ;;
39105              10.*)
39106                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
39107                ;;
39108            esac
39109          fi
39110          ;;
39111         esac
39112       archive_cmds_need_lc_CXX=no
39113       hardcode_direct_CXX=no
39114       hardcode_automatic_CXX=yes
39115       hardcode_shlibpath_var_CXX=unsupported
39116       whole_archive_flag_spec_CXX=''
39117       link_all_deplibs_CXX=yes
39118
39119     if test "$GXX" = yes ; then
39120       lt_int_apple_cc_single_mod=no
39121       output_verbose_link_cmd='echo'
39122       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
39123        lt_int_apple_cc_single_mod=yes
39124       fi
39125       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
39126        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
39127       else
39128           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'
39129         fi
39130         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
39131         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
39132           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
39133             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}'
39134           else
39135             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}'
39136           fi
39137             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}'
39138       else
39139       case $cc_basename in
39140         xlc*)
39141          output_verbose_link_cmd='echo'
39142           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'
39143           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
39144           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
39145           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}'
39146           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}'
39147           ;;
39148        *)
39149          ld_shlibs_CXX=no
39150           ;;
39151       esac
39152       fi
39153         ;;
39154
39155   dgux*)
39156     case $cc_basename in
39157       ec++*)
39158         # FIXME: insert proper C++ library support
39159         ld_shlibs_CXX=no
39160         ;;
39161       ghcx*)
39162         # Green Hills C++ Compiler
39163         # FIXME: insert proper C++ library support
39164         ld_shlibs_CXX=no
39165         ;;
39166       *)
39167         # FIXME: insert proper C++ library support
39168         ld_shlibs_CXX=no
39169         ;;
39170     esac
39171     ;;
39172   freebsd[12]*)
39173     # C++ shared libraries reported to be fairly broken before switch to ELF
39174     ld_shlibs_CXX=no
39175     ;;
39176   freebsd-elf*)
39177     archive_cmds_need_lc_CXX=no
39178     ;;
39179   freebsd* | kfreebsd*-gnu | dragonfly*)
39180     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
39181     # conventions
39182     ld_shlibs_CXX=yes
39183     ;;
39184   gnu*)
39185     ;;
39186   hpux9*)
39187     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
39188     hardcode_libdir_separator_CXX=:
39189     export_dynamic_flag_spec_CXX='${wl}-E'
39190     hardcode_direct_CXX=yes
39191     hardcode_minus_L_CXX=yes # Not in the search PATH,
39192                                 # but as the default
39193                                 # location of the library.
39194
39195     case $cc_basename in
39196     CC*)
39197       # FIXME: insert proper C++ library support
39198       ld_shlibs_CXX=no
39199       ;;
39200     aCC*)
39201       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'
39202       # Commands to make compiler produce verbose output that lists
39203       # what "hidden" libraries, object files and flags are used when
39204       # linking a shared library.
39205       #
39206       # There doesn't appear to be a way to prevent this compiler from
39207       # explicitly linking system object files so we need to strip them
39208       # from the output so that they don't get included in the library
39209       # dependencies.
39210       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'
39211       ;;
39212     *)
39213       if test "$GXX" = yes; then
39214         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'
39215       else
39216         # FIXME: insert proper C++ library support
39217         ld_shlibs_CXX=no
39218       fi
39219       ;;
39220     esac
39221     ;;
39222   hpux10*|hpux11*)
39223     if test $with_gnu_ld = no; then
39224       case $host_cpu in
39225       hppa*64*)
39226         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
39227         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
39228         hardcode_libdir_separator_CXX=:
39229         ;;
39230       ia64*)
39231         hardcode_libdir_flag_spec_CXX='-L$libdir'
39232         ;;
39233       *)
39234         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
39235         hardcode_libdir_separator_CXX=:
39236         export_dynamic_flag_spec_CXX='${wl}-E'
39237         ;;
39238       esac
39239     fi
39240     case $host_cpu in
39241     hppa*64*)
39242       hardcode_direct_CXX=no
39243       hardcode_shlibpath_var_CXX=no
39244       ;;
39245     ia64*)
39246       hardcode_direct_CXX=no
39247       hardcode_shlibpath_var_CXX=no
39248       hardcode_minus_L_CXX=yes # Not in the search PATH,
39249                                               # but as the default
39250                                               # location of the library.
39251       ;;
39252     *)
39253       hardcode_direct_CXX=yes
39254       hardcode_minus_L_CXX=yes # Not in the search PATH,
39255                                               # but as the default
39256                                               # location of the library.
39257       ;;
39258     esac
39259
39260     case $cc_basename in
39261       CC*)
39262         # FIXME: insert proper C++ library support
39263         ld_shlibs_CXX=no
39264         ;;
39265       aCC*)
39266         case $host_cpu in
39267         hppa*64*|ia64*)
39268           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
39269           ;;
39270         *)
39271           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
39272           ;;
39273         esac
39274         # Commands to make compiler produce verbose output that lists
39275         # what "hidden" libraries, object files and flags are used when
39276         # linking a shared library.
39277         #
39278         # There doesn't appear to be a way to prevent this compiler from
39279         # explicitly linking system object files so we need to strip them
39280         # from the output so that they don't get included in the library
39281         # dependencies.
39282         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'
39283         ;;
39284       *)
39285         if test "$GXX" = yes; then
39286           if test $with_gnu_ld = no; then
39287             case $host_cpu in
39288             ia64*|hppa*64*)
39289               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
39290               ;;
39291             *)
39292               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'
39293               ;;
39294             esac
39295           fi
39296         else
39297           # FIXME: insert proper C++ library support
39298           ld_shlibs_CXX=no
39299         fi
39300         ;;
39301     esac
39302     ;;
39303   irix5* | irix6*)
39304     case $cc_basename in
39305       CC*)
39306         # SGI C++
39307         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'
39308
39309         # Archives containing C++ object files must be created using
39310         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
39311         # necessary to make sure instantiated templates are included
39312         # in the archive.
39313         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
39314         ;;
39315       *)
39316         if test "$GXX" = yes; then
39317           if test "$with_gnu_ld" = no; then
39318             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'
39319           else
39320             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'
39321           fi
39322         fi
39323         link_all_deplibs_CXX=yes
39324         ;;
39325     esac
39326     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
39327     hardcode_libdir_separator_CXX=:
39328     ;;
39329   linux*)
39330     case $cc_basename in
39331       KCC*)
39332         # Kuck and Associates, Inc. (KAI) C++ Compiler
39333
39334         # KCC will only create a shared library if the output file
39335         # ends with ".so" (or ".sl" for HP-UX), so rename the library
39336         # to its proper name (with version) after linking.
39337         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'
39338         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'
39339         # Commands to make compiler produce verbose output that lists
39340         # what "hidden" libraries, object files and flags are used when
39341         # linking a shared library.
39342         #
39343         # There doesn't appear to be a way to prevent this compiler from
39344         # explicitly linking system object files so we need to strip them
39345         # from the output so that they don't get included in the library
39346         # dependencies.
39347         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'
39348
39349         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
39350         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
39351
39352         # Archives containing C++ object files must be created using
39353         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
39354         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
39355         ;;
39356       icpc*)
39357         # Intel C++
39358         with_gnu_ld=yes
39359         # version 8.0 and above of icpc choke on multiply defined symbols
39360         # if we add $predep_objects and $postdep_objects, however 7.1 and
39361         # earlier do not add the objects themselves.
39362         case `$CC -V 2>&1` in
39363         *"Version 7."*)
39364           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
39365           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'
39366           ;;
39367         *)  # Version 8.0 or newer
39368           tmp_idyn=
39369           case $host_cpu in
39370             ia64*) tmp_idyn=' -i_dynamic';;
39371           esac
39372           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
39373           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'
39374           ;;
39375         esac
39376         archive_cmds_need_lc_CXX=no
39377         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
39378         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
39379         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
39380         ;;
39381       pgCC*)
39382         # Portland Group C++ compiler
39383         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
39384         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'
39385
39386         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
39387         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
39388         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'
39389         ;;
39390       cxx*)
39391         # Compaq C++
39392         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
39393         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'
39394
39395         runpath_var=LD_RUN_PATH
39396         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
39397         hardcode_libdir_separator_CXX=:
39398
39399         # Commands to make compiler produce verbose output that lists
39400         # what "hidden" libraries, object files and flags are used when
39401         # linking a shared library.
39402         #
39403         # There doesn't appear to be a way to prevent this compiler from
39404         # explicitly linking system object files so we need to strip them
39405         # from the output so that they don't get included in the library
39406         # dependencies.
39407         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'
39408         ;;
39409     esac
39410     ;;
39411   lynxos*)
39412     # FIXME: insert proper C++ library support
39413     ld_shlibs_CXX=no
39414     ;;
39415   m88k*)
39416     # FIXME: insert proper C++ library support
39417     ld_shlibs_CXX=no
39418     ;;
39419   mvs*)
39420     case $cc_basename in
39421       cxx*)
39422         # FIXME: insert proper C++ library support
39423         ld_shlibs_CXX=no
39424         ;;
39425       *)
39426         # FIXME: insert proper C++ library support
39427         ld_shlibs_CXX=no
39428         ;;
39429     esac
39430     ;;
39431   netbsd*)
39432     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
39433       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
39434       wlarc=
39435       hardcode_libdir_flag_spec_CXX='-R$libdir'
39436       hardcode_direct_CXX=yes
39437       hardcode_shlibpath_var_CXX=no
39438     fi
39439     # Workaround some broken pre-1.5 toolchains
39440     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
39441     ;;
39442   openbsd2*)
39443     # C++ shared libraries are fairly broken
39444     ld_shlibs_CXX=no
39445     ;;
39446   openbsd*)
39447     hardcode_direct_CXX=yes
39448     hardcode_shlibpath_var_CXX=no
39449     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
39450     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
39451     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
39452       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
39453       export_dynamic_flag_spec_CXX='${wl}-E'
39454       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
39455     fi
39456     output_verbose_link_cmd='echo'
39457     ;;
39458   osf3*)
39459     case $cc_basename in
39460       KCC*)
39461         # Kuck and Associates, Inc. (KAI) C++ Compiler
39462
39463         # KCC will only create a shared library if the output file
39464         # ends with ".so" (or ".sl" for HP-UX), so rename the library
39465         # to its proper name (with version) after linking.
39466         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'
39467
39468         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
39469         hardcode_libdir_separator_CXX=:
39470
39471         # Archives containing C++ object files must be created using
39472         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
39473         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
39474
39475         ;;
39476       RCC*)
39477         # Rational C++ 2.4.1
39478         # FIXME: insert proper C++ library support
39479         ld_shlibs_CXX=no
39480         ;;
39481       cxx*)
39482         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
39483         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'
39484
39485         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
39486         hardcode_libdir_separator_CXX=:
39487
39488         # Commands to make compiler produce verbose output that lists
39489         # what "hidden" libraries, object files and flags are used when
39490         # linking a shared library.
39491         #
39492         # There doesn't appear to be a way to prevent this compiler from
39493         # explicitly linking system object files so we need to strip them
39494         # from the output so that they don't get included in the library
39495         # dependencies.
39496         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'
39497         ;;
39498       *)
39499         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
39500           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
39501           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'
39502
39503           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
39504           hardcode_libdir_separator_CXX=:
39505
39506           # Commands to make compiler produce verbose output that lists
39507           # what "hidden" libraries, object files and flags are used when
39508           # linking a shared library.
39509           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
39510
39511         else
39512           # FIXME: insert proper C++ library support
39513           ld_shlibs_CXX=no
39514         fi
39515         ;;
39516     esac
39517     ;;
39518   osf4* | osf5*)
39519     case $cc_basename in
39520       KCC*)
39521         # Kuck and Associates, Inc. (KAI) C++ Compiler
39522
39523         # KCC will only create a shared library if the output file
39524         # ends with ".so" (or ".sl" for HP-UX), so rename the library
39525         # to its proper name (with version) after linking.
39526         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'
39527
39528         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
39529         hardcode_libdir_separator_CXX=:
39530
39531         # Archives containing C++ object files must be created using
39532         # the KAI C++ compiler.
39533         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
39534         ;;
39535       RCC*)
39536         # Rational C++ 2.4.1
39537         # FIXME: insert proper C++ library support
39538         ld_shlibs_CXX=no
39539         ;;
39540       cxx*)
39541         allow_undefined_flag_CXX=' -expect_unresolved \*'
39542         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'
39543         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
39544           echo "-hidden">> $lib.exp~
39545           $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~
39546           $rm $lib.exp'
39547
39548         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
39549         hardcode_libdir_separator_CXX=:
39550
39551         # Commands to make compiler produce verbose output that lists
39552         # what "hidden" libraries, object files and flags are used when
39553         # linking a shared library.
39554         #
39555         # There doesn't appear to be a way to prevent this compiler from
39556         # explicitly linking system object files so we need to strip them
39557         # from the output so that they don't get included in the library
39558         # dependencies.
39559         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'
39560         ;;
39561       *)
39562         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
39563           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
39564          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'
39565
39566           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
39567           hardcode_libdir_separator_CXX=:
39568
39569           # Commands to make compiler produce verbose output that lists
39570           # what "hidden" libraries, object files and flags are used when
39571           # linking a shared library.
39572           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
39573
39574         else
39575           # FIXME: insert proper C++ library support
39576           ld_shlibs_CXX=no
39577         fi
39578         ;;
39579     esac
39580     ;;
39581   psos*)
39582     # FIXME: insert proper C++ library support
39583     ld_shlibs_CXX=no
39584     ;;
39585   sco*)
39586     archive_cmds_need_lc_CXX=no
39587     case $cc_basename in
39588       CC*)
39589         # FIXME: insert proper C++ library support
39590         ld_shlibs_CXX=no
39591         ;;
39592       *)
39593         # FIXME: insert proper C++ library support
39594         ld_shlibs_CXX=no
39595         ;;
39596     esac
39597     ;;
39598   sunos4*)
39599     case $cc_basename in
39600       CC*)
39601         # Sun C++ 4.x
39602         # FIXME: insert proper C++ library support
39603         ld_shlibs_CXX=no
39604         ;;
39605       lcc*)
39606         # Lucid
39607         # FIXME: insert proper C++ library support
39608         ld_shlibs_CXX=no
39609         ;;
39610       *)
39611         # FIXME: insert proper C++ library support
39612         ld_shlibs_CXX=no
39613         ;;
39614     esac
39615     ;;
39616   solaris*)
39617     case $cc_basename in
39618       CC*)
39619         # Sun C++ 4.2, 5.x and Centerline C++
39620         archive_cmds_need_lc_CXX=yes
39621         no_undefined_flag_CXX=' -zdefs'
39622         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
39623         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
39624         $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'
39625
39626         hardcode_libdir_flag_spec_CXX='-R$libdir'
39627         hardcode_shlibpath_var_CXX=no
39628         case $host_os in
39629           solaris2.[0-5] | solaris2.[0-5].*) ;;
39630           *)
39631             # The C++ compiler is used as linker so we must use $wl
39632             # flag to pass the commands to the underlying system
39633             # linker. We must also pass each convience library through
39634             # to the system linker between allextract/defaultextract.
39635             # The C++ compiler will combine linker options so we
39636             # cannot just pass the convience library names through
39637             # without $wl.
39638             # Supported since Solaris 2.6 (maybe 2.5.1?)
39639             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'
39640             ;;
39641         esac
39642         link_all_deplibs_CXX=yes
39643
39644         output_verbose_link_cmd='echo'
39645
39646         # Archives containing C++ object files must be created using
39647         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
39648         # necessary to make sure instantiated templates are included
39649         # in the archive.
39650         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
39651         ;;
39652       gcx*)
39653         # Green Hills C++ Compiler
39654         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
39655
39656         # The C++ compiler must be used to create the archive.
39657         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
39658         ;;
39659       *)
39660         # GNU C++ compiler with Solaris linker
39661         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
39662           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
39663           if $CC --version | grep -v '^2\.7' > /dev/null; then
39664             if $CC -v --help 2>/dev/null | grep -- -shared  > /dev/null 2> /dev/null; then
39665               archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
39666               archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
39667                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
39668
39669               # Commands to make compiler produce verbose output that lists
39670               # what "hidden" libraries, object files and flags are used when
39671               # linking a shared library.
39672               output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
39673               lt_prog_compiler_static_CXX='-static'
39674             else
39675               archive_cmds_CXX='$CC ${wl}-G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
39676               archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
39677                 $CC ${wl}-G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
39678
39679               # Commands to make compiler produce verbose output that lists
39680               # what "hidden" libraries, object files and flags are used when
39681               # linking a shared library.
39682               output_verbose_link_cmd="$CC ${wl}-G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
39683               lt_prog_compiler_static_CXX='${wl}-Bstatic'
39684             fi
39685           else
39686             # g++ 2.7 appears to require `-G' NOT `-shared' on this
39687             # platform.
39688             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
39689             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
39690                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
39691
39692             # Commands to make compiler produce verbose output that lists
39693             # what "hidden" libraries, object files and flags are used when
39694             # linking a shared library.
39695             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
39696           fi
39697
39698           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
39699         fi
39700         ;;
39701     esac
39702     ;;
39703   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
39704     archive_cmds_need_lc_CXX=no
39705     ;;
39706   tandem*)
39707     case $cc_basename in
39708       NCC*)
39709         # NonStop-UX NCC 3.20
39710         # FIXME: insert proper C++ library support
39711         ld_shlibs_CXX=no
39712         ;;
39713       *)
39714         # FIXME: insert proper C++ library support
39715         ld_shlibs_CXX=no
39716         ;;
39717     esac
39718     ;;
39719   vxworks*)
39720     # FIXME: insert proper C++ library support
39721     ld_shlibs_CXX=no
39722     ;;
39723   *)
39724     # FIXME: insert proper C++ library support
39725     ld_shlibs_CXX=no
39726     ;;
39727 esac
39728 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
39729 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
39730 test "$ld_shlibs_CXX" = no && can_build_shared=no
39731
39732 GCC_CXX="$GXX"
39733 LD_CXX="$LD"
39734
39735 ## CAVEAT EMPTOR:
39736 ## There is no encapsulation within the following macros, do not change
39737 ## the running order or otherwise move them around unless you know exactly
39738 ## what you are doing...
39739
39740 cat > conftest.$ac_ext <<EOF
39741 class Foo
39742 {
39743 public:
39744   Foo (void) { a = 0; }
39745 private:
39746   int a;
39747 };
39748 EOF
39749
39750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39751   (eval $ac_compile) 2>&5
39752   ac_status=$?
39753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39754   (exit $ac_status); }; then
39755   # Parse the compiler output and extract the necessary
39756   # objects, libraries and library flags.
39757
39758   # Sentinel used to keep track of whether or not we are before
39759   # the conftest object file.
39760   pre_test_object_deps_done=no
39761
39762   # The `*' in the case matches for architectures that use `case' in
39763   # $output_verbose_cmd can trigger glob expansion during the loop
39764   # eval without this substitution.
39765   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
39766
39767   for p in `eval $output_verbose_link_cmd`; do
39768     case $p in
39769
39770     -L* | -R* | -l*)
39771        # Some compilers place space between "-{L,R}" and the path.
39772        # Remove the space.
39773        if test $p = "-L" \
39774           || test $p = "-R"; then
39775          prev=$p
39776          continue
39777        else
39778          prev=
39779        fi
39780
39781        if test "$pre_test_object_deps_done" = no; then
39782          case $p in
39783          -L* | -R*)
39784            # Internal compiler library paths should come after those
39785            # provided the user.  The postdeps already come after the
39786            # user supplied libs so there is no need to process them.
39787            if test -z "$compiler_lib_search_path_CXX"; then
39788              compiler_lib_search_path_CXX="${prev}${p}"
39789            else
39790              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
39791            fi
39792            ;;
39793          # The "-l" case would never come before the object being
39794          # linked, so don't bother handling this case.
39795          esac
39796        else
39797          if test -z "$postdeps_CXX"; then
39798            postdeps_CXX="${prev}${p}"
39799          else
39800            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
39801          fi
39802        fi
39803        ;;
39804
39805     *.$objext)
39806        # This assumes that the test object file only shows up
39807        # once in the compiler output.
39808        if test "$p" = "conftest.$objext"; then
39809          pre_test_object_deps_done=yes
39810          continue
39811        fi
39812
39813        if test "$pre_test_object_deps_done" = no; then
39814          if test -z "$predep_objects_CXX"; then
39815            predep_objects_CXX="$p"
39816          else
39817            predep_objects_CXX="$predep_objects_CXX $p"
39818          fi
39819        else
39820          if test -z "$postdep_objects_CXX"; then
39821            postdep_objects_CXX="$p"
39822          else
39823            postdep_objects_CXX="$postdep_objects_CXX $p"
39824          fi
39825        fi
39826        ;;
39827
39828     *) ;; # Ignore the rest.
39829
39830     esac
39831   done
39832
39833   # Clean up.
39834   rm -f a.out a.exe
39835 else
39836   echo "libtool.m4: error: problem compiling CXX test program"
39837 fi
39838
39839 $rm -f confest.$objext
39840
39841 # PORTME: override above test on systems where it is broken
39842 case $host_os in
39843 solaris*)
39844   case $cc_basename in
39845   CC*)
39846     # Adding this requires a known-good setup of shared libraries for
39847     # Sun compiler versions before 5.6, else PIC objects from an old
39848     # archive will be linked into the output, leading to subtle bugs.
39849     postdeps_CXX='-lCstd -lCrun'
39850     ;;
39851   esac
39852 esac
39853
39854
39855 case " $postdeps_CXX " in
39856 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
39857 esac
39858
39859 lt_prog_compiler_wl_CXX=
39860 lt_prog_compiler_pic_CXX=
39861 lt_prog_compiler_static_CXX=
39862
39863 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
39864 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
39865
39866   # C++ specific cases for pic, static, wl, etc.
39867   if test "$GXX" = yes; then
39868     lt_prog_compiler_wl_CXX='-Wl,'
39869     lt_prog_compiler_static_CXX='-static'
39870
39871     case $host_os in
39872     aix*)
39873       # All AIX code is PIC.
39874       if test "$host_cpu" = ia64; then
39875         # AIX 5 now supports IA64 processor
39876         lt_prog_compiler_static_CXX='-Bstatic'
39877       fi
39878       ;;
39879     amigaos*)
39880       # FIXME: we need at least 68020 code to build shared libraries, but
39881       # adding the `-m68020' flag to GCC prevents building anything better,
39882       # like `-m68040'.
39883       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
39884       ;;
39885     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
39886       # PIC is the default for these OSes.
39887       ;;
39888     mingw* | os2* | pw32*)
39889       # This hack is so that the source file can tell whether it is being
39890       # built for inclusion in a dll (and should export symbols for example).
39891       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
39892       ;;
39893     darwin* | rhapsody*)
39894       # PIC is the default on this platform
39895       # Common symbols not allowed in MH_DYLIB files
39896       lt_prog_compiler_pic_CXX='-fno-common'
39897       ;;
39898     *djgpp*)
39899       # DJGPP does not support shared libraries at all
39900       lt_prog_compiler_pic_CXX=
39901       ;;
39902     sysv4*MP*)
39903       if test -d /usr/nec; then
39904         lt_prog_compiler_pic_CXX=-Kconform_pic
39905       fi
39906       ;;
39907     hpux*)
39908       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
39909       # not for PA HP-UX.
39910       case $host_cpu in
39911       hppa*64*|ia64*)
39912         ;;
39913       *)
39914         lt_prog_compiler_pic_CXX='-fPIC'
39915         ;;
39916       esac
39917       ;;
39918     *)
39919       lt_prog_compiler_pic_CXX='-fPIC'
39920       ;;
39921     esac
39922   else
39923     case $host_os in
39924       aix4* | aix5*)
39925         # All AIX code is PIC.
39926         if test "$host_cpu" = ia64; then
39927           # AIX 5 now supports IA64 processor
39928           lt_prog_compiler_static_CXX='-Bstatic'
39929         else
39930           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
39931         fi
39932         ;;
39933       chorus*)
39934         case $cc_basename in
39935         cxch68*)
39936           # Green Hills C++ Compiler
39937           # _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"
39938           ;;
39939         esac
39940         ;;
39941        darwin*)
39942          # PIC is the default on this platform
39943          # Common symbols not allowed in MH_DYLIB files
39944          case $cc_basename in
39945            xlc*)
39946            lt_prog_compiler_pic_CXX='-qnocommon'
39947            lt_prog_compiler_wl_CXX='-Wl,'
39948            ;;
39949          esac
39950        ;;
39951       dgux*)
39952         case $cc_basename in
39953           ec++*)
39954             lt_prog_compiler_pic_CXX='-KPIC'
39955             ;;
39956           ghcx*)
39957             # Green Hills C++ Compiler
39958             lt_prog_compiler_pic_CXX='-pic'
39959             ;;
39960           *)
39961             ;;
39962         esac
39963         ;;
39964       freebsd* | kfreebsd*-gnu | dragonfly*)
39965         # FreeBSD uses GNU C++
39966         ;;
39967       hpux9* | hpux10* | hpux11*)
39968         case $cc_basename in
39969           CC*)
39970             lt_prog_compiler_wl_CXX='-Wl,'
39971             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
39972             if test "$host_cpu" != ia64; then
39973               lt_prog_compiler_pic_CXX='+Z'
39974             fi
39975             ;;
39976           aCC*)
39977             lt_prog_compiler_wl_CXX='-Wl,'
39978             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
39979             case $host_cpu in
39980             hppa*64*|ia64*)
39981               # +Z the default
39982               ;;
39983             *)
39984               lt_prog_compiler_pic_CXX='+Z'
39985               ;;
39986             esac
39987             ;;
39988           *)
39989             ;;
39990         esac
39991         ;;
39992       irix5* | irix6* | nonstopux*)
39993         case $cc_basename in
39994           CC*)
39995             lt_prog_compiler_wl_CXX='-Wl,'
39996             lt_prog_compiler_static_CXX='-non_shared'
39997             # CC pic flag -KPIC is the default.
39998             ;;
39999           *)
40000             ;;
40001         esac
40002         ;;
40003       linux*)
40004         case $cc_basename in
40005           KCC*)
40006             # KAI C++ Compiler
40007             lt_prog_compiler_wl_CXX='--backend -Wl,'
40008             lt_prog_compiler_pic_CXX='-fPIC'
40009             ;;
40010           icpc* | ecpc*)
40011             # Intel C++
40012             lt_prog_compiler_wl_CXX='-Wl,'
40013             lt_prog_compiler_pic_CXX='-KPIC'
40014             lt_prog_compiler_static_CXX='-static'
40015             ;;
40016           pgCC*)
40017             # Portland Group C++ compiler.
40018             lt_prog_compiler_wl_CXX='-Wl,'
40019             lt_prog_compiler_pic_CXX='-fpic'
40020             lt_prog_compiler_static_CXX='-Bstatic'
40021             ;;
40022           cxx*)
40023             # Compaq C++
40024             # Make sure the PIC flag is empty.  It appears that all Alpha
40025             # Linux and Compaq Tru64 Unix objects are PIC.
40026             lt_prog_compiler_pic_CXX=
40027             lt_prog_compiler_static_CXX='-non_shared'
40028             ;;
40029           *)
40030             ;;
40031         esac
40032         ;;
40033       lynxos*)
40034         ;;
40035       m88k*)
40036         ;;
40037       mvs*)
40038         case $cc_basename in
40039           cxx*)
40040             lt_prog_compiler_pic_CXX='-W c,exportall'
40041             ;;
40042           *)
40043             ;;
40044         esac
40045         ;;
40046       netbsd*)
40047         ;;
40048       osf3* | osf4* | osf5*)
40049         case $cc_basename in
40050           KCC*)
40051             lt_prog_compiler_wl_CXX='--backend -Wl,'
40052             ;;
40053           RCC*)
40054             # Rational C++ 2.4.1
40055             lt_prog_compiler_pic_CXX='-pic'
40056             ;;
40057           cxx*)
40058             # Digital/Compaq C++
40059             lt_prog_compiler_wl_CXX='-Wl,'
40060             # Make sure the PIC flag is empty.  It appears that all Alpha
40061             # Linux and Compaq Tru64 Unix objects are PIC.
40062             lt_prog_compiler_pic_CXX=
40063             lt_prog_compiler_static_CXX='-non_shared'
40064             ;;
40065           *)
40066             ;;
40067         esac
40068         ;;
40069       psos*)
40070         ;;
40071       sco*)
40072         case $cc_basename in
40073           CC*)
40074             lt_prog_compiler_pic_CXX='-fPIC'
40075             ;;
40076           *)
40077             ;;
40078         esac
40079         ;;
40080       solaris*)
40081         case $cc_basename in
40082           CC*)
40083             # Sun C++ 4.2, 5.x and Centerline C++
40084             lt_prog_compiler_pic_CXX='-KPIC'
40085             lt_prog_compiler_static_CXX='-Bstatic'
40086             lt_prog_compiler_wl_CXX='-Qoption ld '
40087             ;;
40088           gcx*)
40089             # Green Hills C++ Compiler
40090             lt_prog_compiler_pic_CXX='-PIC'
40091             ;;
40092           *)
40093             if $CC -v --help 2>/dev/null | grep -- -static  > /dev/null 2> /dev/null; then
40094               lt_prog_compiler_static_CXX='-static'
40095             else
40096               # GCC with Sun linker
40097               lt_prog_compiler_pic_CXX='-KPIC'
40098               lt_prog_compiler_static_CXX='${wl}-Bstatic'
40099             fi
40100             ;;
40101         esac
40102         ;;
40103       sunos4*)
40104         case $cc_basename in
40105           CC*)
40106             # Sun C++ 4.x
40107             lt_prog_compiler_pic_CXX='-pic'
40108             lt_prog_compiler_static_CXX='-Bstatic'
40109             ;;
40110           lcc*)
40111             # Lucid
40112             lt_prog_compiler_pic_CXX='-pic'
40113             ;;
40114           *)
40115             ;;
40116         esac
40117         ;;
40118       tandem*)
40119         case $cc_basename in
40120           NCC*)
40121             # NonStop-UX NCC 3.20
40122             lt_prog_compiler_pic_CXX='-KPIC'
40123             ;;
40124           *)
40125             ;;
40126         esac
40127         ;;
40128       unixware*)
40129         ;;
40130       vxworks*)
40131         ;;
40132       *)
40133         lt_prog_compiler_can_build_shared_CXX=no
40134         ;;
40135     esac
40136   fi
40137
40138 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
40139 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
40140
40141 #
40142 # Check to make sure the PIC flag actually works.
40143 #
40144 if test -n "$lt_prog_compiler_pic_CXX"; then
40145
40146 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
40147 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
40148 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
40149   echo $ECHO_N "(cached) $ECHO_C" >&6
40150 else
40151   lt_prog_compiler_pic_works_CXX=no
40152   ac_outfile=conftest.$ac_objext
40153    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
40154    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
40155    # Insert the option either (1) after the last *FLAGS variable, or
40156    # (2) before a word containing "conftest.", or (3) at the end.
40157    # Note that $ac_compile itself does not contain backslashes and begins
40158    # with a dollar sign (not a hyphen), so the echo should work correctly.
40159    # The option is referenced via a variable to avoid confusing sed.
40160    lt_compile=`echo "$ac_compile" | $SED \
40161    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
40162    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
40163    -e 's:$: $lt_compiler_flag:'`
40164    (eval echo "\"\$as_me:40164: $lt_compile\"" >&5)
40165    (eval "$lt_compile" 2>conftest.err)
40166    ac_status=$?
40167    cat conftest.err >&5
40168    echo "$as_me:40168: \$? = $ac_status" >&5
40169    if (exit $ac_status) && test -s "$ac_outfile"; then
40170      # The compiler can only warn and ignore the option if not recognized
40171      # So say no if there are warnings other than the usual output.
40172      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
40173      $SED '/^$/d' conftest.err >conftest.er2
40174      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
40175        lt_prog_compiler_pic_works_CXX=yes
40176      fi
40177    fi
40178    $rm conftest*
40179
40180 fi
40181 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
40182 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
40183
40184 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
40185     case $lt_prog_compiler_pic_CXX in
40186      "" | " "*) ;;
40187      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
40188      esac
40189 else
40190     lt_prog_compiler_pic_CXX=
40191      lt_prog_compiler_can_build_shared_CXX=no
40192 fi
40193
40194 fi
40195 case $host_os in
40196   # For platforms which do not support PIC, -DPIC is meaningless:
40197   *djgpp*)
40198     lt_prog_compiler_pic_CXX=
40199     ;;
40200   *)
40201     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
40202     ;;
40203 esac
40204
40205 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
40206 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
40207 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
40208   echo $ECHO_N "(cached) $ECHO_C" >&6
40209 else
40210   lt_cv_prog_compiler_c_o_CXX=no
40211    $rm -r conftest 2>/dev/null
40212    mkdir conftest
40213    cd conftest
40214    mkdir out
40215    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
40216
40217    lt_compiler_flag="-o out/conftest2.$ac_objext"
40218    # Insert the option either (1) after the last *FLAGS variable, or
40219    # (2) before a word containing "conftest.", or (3) at the end.
40220    # Note that $ac_compile itself does not contain backslashes and begins
40221    # with a dollar sign (not a hyphen), so the echo should work correctly.
40222    lt_compile=`echo "$ac_compile" | $SED \
40223    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
40224    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
40225    -e 's:$: $lt_compiler_flag:'`
40226    (eval echo "\"\$as_me:40226: $lt_compile\"" >&5)
40227    (eval "$lt_compile" 2>out/conftest.err)
40228    ac_status=$?
40229    cat out/conftest.err >&5
40230    echo "$as_me:40230: \$? = $ac_status" >&5
40231    if (exit $ac_status) && test -s out/conftest2.$ac_objext
40232    then
40233      # The compiler can only warn and ignore the option if not recognized
40234      # So say no if there are warnings
40235      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
40236      $SED '/^$/d' out/conftest.err >out/conftest.er2
40237      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
40238        lt_cv_prog_compiler_c_o_CXX=yes
40239      fi
40240    fi
40241    chmod u+w . 2>&5
40242    $rm conftest*
40243    # SGI C++ compiler will create directory out/ii_files/ for
40244    # template instantiation
40245    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
40246    $rm out/* && rmdir out
40247    cd ..
40248    rmdir conftest
40249    $rm conftest*
40250
40251 fi
40252 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
40253 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
40254
40255
40256 hard_links="nottested"
40257 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
40258   # do not overwrite the value of need_locks provided by the user
40259   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
40260 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
40261   hard_links=yes
40262   $rm conftest*
40263   ln conftest.a conftest.b 2>/dev/null && hard_links=no
40264   touch conftest.a
40265   ln conftest.a conftest.b 2>&5 || hard_links=no
40266   ln conftest.a conftest.b 2>/dev/null && hard_links=no
40267   { echo "$as_me:$LINENO: result: $hard_links" >&5
40268 echo "${ECHO_T}$hard_links" >&6; }
40269   if test "$hard_links" = no; then
40270
40271     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
40272 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
40273
40274
40275     cat <<AAW_EOF >>config.warnings
40276 \`$CC' does not support \`-c -o', so \`make -j' may be unsafe
40277 AAW_EOF
40278
40279
40280     need_locks=warn
40281   fi
40282 else
40283   need_locks=no
40284 fi
40285
40286 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
40287 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
40288
40289   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
40290   case $host_os in
40291   aix4* | aix5*)
40292     # If we're using GNU nm, then we don't want the "-C" option.
40293     # -C means demangle to AIX nm, but means don't demangle with GNU nm
40294     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
40295       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'
40296     else
40297       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'
40298     fi
40299     ;;
40300   pw32*)
40301     export_symbols_cmds_CXX="$ltdll_cmds"
40302   ;;
40303   cygwin* | mingw*)
40304     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'
40305   ;;
40306   *)
40307     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
40308   ;;
40309   esac
40310
40311 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
40312 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
40313 test "$ld_shlibs_CXX" = no && can_build_shared=no
40314
40315 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
40316 if test "$GCC" = yes; then
40317   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
40318 fi
40319
40320 #
40321 # Do we need to explicitly link libc?
40322 #
40323 case "x$archive_cmds_need_lc_CXX" in
40324 x|xyes)
40325   # Assume -lc should be added
40326   archive_cmds_need_lc_CXX=yes
40327
40328   if test "$enable_shared" = yes && test "$GCC" = yes; then
40329     case $archive_cmds_CXX in
40330     *'~'*)
40331       # FIXME: we may have to deal with multi-command sequences.
40332       ;;
40333     '$CC '*)
40334       # Test whether the compiler implicitly links with -lc since on some
40335       # systems, -lgcc has to come before -lc. If gcc already passes -lc
40336       # to ld, don't add -lc before -lgcc.
40337       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
40338 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
40339       $rm conftest*
40340       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
40341
40342       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40343   (eval $ac_compile) 2>&5
40344   ac_status=$?
40345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40346   (exit $ac_status); } 2>conftest.err; then
40347         soname=conftest
40348         lib=conftest
40349         libobjs=conftest.$ac_objext
40350         deplibs=
40351         wl=$lt_prog_compiler_wl_CXX
40352         compiler_flags=-v
40353         linker_flags=-v
40354         verstring=
40355         output_objdir=.
40356         libname=conftest
40357         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
40358         allow_undefined_flag_CXX=
40359         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
40360   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
40361   ac_status=$?
40362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40363   (exit $ac_status); }
40364         then
40365           archive_cmds_need_lc_CXX=no
40366         else
40367           archive_cmds_need_lc_CXX=yes
40368         fi
40369         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
40370       else
40371         cat conftest.err 1>&5
40372       fi
40373       $rm conftest*
40374       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
40375 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
40376       ;;
40377     esac
40378   fi
40379   ;;
40380 esac
40381
40382 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
40383 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
40384 library_names_spec=
40385 libname_spec='lib$name'
40386 soname_spec=
40387 shrext_cmds=".so"
40388 postinstall_cmds=
40389 postuninstall_cmds=
40390 finish_cmds=
40391 finish_eval=
40392 shlibpath_var=
40393 shlibpath_overrides_runpath=unknown
40394 version_type=none
40395 dynamic_linker="$host_os ld.so"
40396 sys_lib_dlsearch_path_spec="/lib /usr/lib"
40397 if test "$GCC" = yes; then
40398   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
40399   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
40400     # if the path contains ";" then we assume it to be the separator
40401     # otherwise default to the standard path separator (i.e. ":") - it is
40402     # assumed that no part of a normal pathname contains ";" but that should
40403     # okay in the real world where ";" in dirpaths is itself problematic.
40404     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
40405   else
40406     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
40407   fi
40408 else
40409   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
40410 fi
40411 need_lib_prefix=unknown
40412 hardcode_into_libs=no
40413
40414 # when you set need_version to no, make sure it does not cause -set_version
40415 # flags to be left without arguments
40416 need_version=unknown
40417
40418 case $host_os in
40419 aix3*)
40420   version_type=linux
40421   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
40422   shlibpath_var=LIBPATH
40423
40424   # AIX 3 has no versioning support, so we append a major version to the name.
40425   soname_spec='${libname}${release}${shared_ext}$major'
40426   ;;
40427
40428 aix4* | aix5*)
40429   version_type=linux
40430   need_lib_prefix=no
40431   need_version=no
40432   hardcode_into_libs=yes
40433   if test "$host_cpu" = ia64; then
40434     # AIX 5 supports IA64
40435     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
40436     shlibpath_var=LD_LIBRARY_PATH
40437   else
40438     # With GCC up to 2.95.x, collect2 would create an import file
40439     # for dependence libraries.  The import file would start with
40440     # the line `#! .'.  This would cause the generated library to
40441     # depend on `.', always an invalid library.  This was fixed in
40442     # development snapshots of GCC prior to 3.0.
40443     case $host_os in
40444       aix4 | aix4.[01] | aix4.[01].*)
40445       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
40446            echo ' yes '
40447            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
40448         :
40449       else
40450         can_build_shared=no
40451       fi
40452       ;;
40453     esac
40454     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
40455     # soname into executable. Probably we can add versioning support to
40456     # collect2, so additional links can be useful in future.
40457     if test "$aix_use_runtimelinking" = yes; then
40458       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
40459       # instead of lib<name>.a to let people know that these are not
40460       # typical AIX shared libraries.
40461       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
40462     else
40463       # We preserve .a as extension for shared libraries through AIX4.2
40464       # and later when we are not doing run time linking.
40465       library_names_spec='${libname}${release}.a $libname.a'
40466       soname_spec='${libname}${release}${shared_ext}$major'
40467     fi
40468     shlibpath_var=LIBPATH
40469   fi
40470   ;;
40471
40472 amigaos*)
40473   library_names_spec='$libname.ixlibrary $libname.a'
40474   # Create ${libname}_ixlibrary.a entries in /sys/libs.
40475   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'
40476   ;;
40477
40478 beos*)
40479   library_names_spec='${libname}${shared_ext}'
40480   dynamic_linker="$host_os ld.so"
40481   shlibpath_var=LIBRARY_PATH
40482   ;;
40483
40484 bsdi[45]*)
40485   version_type=linux
40486   need_version=no
40487   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
40488   soname_spec='${libname}${release}${shared_ext}$major'
40489   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
40490   shlibpath_var=LD_LIBRARY_PATH
40491   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
40492   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
40493   # the default ld.so.conf also contains /usr/contrib/lib and
40494   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
40495   # libtool to hard-code these into programs
40496   ;;
40497
40498 cygwin* | mingw* | pw32*)
40499   version_type=windows
40500   shrext_cmds=".dll"
40501   need_version=no
40502   need_lib_prefix=no
40503
40504   case $GCC,$host_os in
40505   yes,cygwin* | yes,mingw* | yes,pw32*)
40506     library_names_spec='$libname.dll.a'
40507     # DLL is installed to $(libdir)/../bin by postinstall_cmds
40508     postinstall_cmds='base_file=`basename \${file}`~
40509       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
40510       dldir=$destdir/`dirname \$dlpath`~
40511       test -d \$dldir || mkdir -p \$dldir~
40512       $install_prog $dir/$dlname \$dldir/$dlname~
40513       chmod a+x \$dldir/$dlname'
40514     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
40515       dlpath=$dir/\$dldll~
40516        $rm \$dlpath'
40517     shlibpath_overrides_runpath=yes
40518
40519     case $host_os in
40520     cygwin*)
40521       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
40522       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
40523       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
40524       ;;
40525     mingw*)
40526       # MinGW DLLs use traditional 'lib' prefix
40527       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
40528       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
40529       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
40530         # It is most probably a Windows format PATH printed by
40531         # mingw gcc, but we are running on Cygwin. Gcc prints its search
40532         # path with ; separators, and with drive letters. We can handle the
40533         # drive letters (cygwin fileutils understands them), so leave them,
40534         # especially as we might pass files found there to a mingw objdump,
40535         # which wouldn't understand a cygwinified path. Ahh.
40536         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
40537       else
40538         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
40539       fi
40540       ;;
40541     pw32*)
40542       # pw32 DLLs use 'pw' prefix rather than 'lib'
40543       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
40544       ;;
40545     esac
40546     ;;
40547
40548   *)
40549     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
40550     ;;
40551   esac
40552   dynamic_linker='Win32 ld.exe'
40553   # FIXME: first we should search . and the directory the executable is in
40554   shlibpath_var=PATH
40555   ;;
40556
40557 darwin* | rhapsody*)
40558   dynamic_linker="$host_os dyld"
40559   version_type=darwin
40560   need_lib_prefix=no
40561   need_version=no
40562   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
40563   soname_spec='${libname}${release}${major}$shared_ext'
40564   shlibpath_overrides_runpath=yes
40565   shlibpath_var=DYLD_LIBRARY_PATH
40566   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
40567   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
40568   if test "$GCC" = yes; then
40569     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"`
40570   else
40571     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
40572   fi
40573   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
40574   ;;
40575
40576 dgux*)
40577   version_type=linux
40578   need_lib_prefix=no
40579   need_version=no
40580   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
40581   soname_spec='${libname}${release}${shared_ext}$major'
40582   shlibpath_var=LD_LIBRARY_PATH
40583   ;;
40584
40585 freebsd1*)
40586   dynamic_linker=no
40587   ;;
40588
40589 kfreebsd*-gnu)
40590   version_type=linux
40591   need_lib_prefix=no
40592   need_version=no
40593   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
40594   soname_spec='${libname}${release}${shared_ext}$major'
40595   shlibpath_var=LD_LIBRARY_PATH
40596   shlibpath_overrides_runpath=no
40597   hardcode_into_libs=yes
40598   dynamic_linker='GNU ld.so'
40599   ;;
40600
40601 freebsd* | dragonfly*)
40602   # DragonFly does not have aout.  When/if they implement a new
40603   # versioning mechanism, adjust this.
40604   if test -x /usr/bin/objformat; then
40605     objformat=`/usr/bin/objformat`
40606   else
40607     case $host_os in
40608     freebsd[123]*) objformat=aout ;;
40609     *) objformat=elf ;;
40610     esac
40611   fi
40612   version_type=freebsd-$objformat
40613   case $version_type in
40614     freebsd-elf*)
40615       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
40616       need_version=no
40617       need_lib_prefix=no
40618       ;;
40619     freebsd-*)
40620       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
40621       need_version=yes
40622       ;;
40623   esac
40624   shlibpath_var=LD_LIBRARY_PATH
40625   case $host_os in
40626   freebsd2*)
40627     shlibpath_overrides_runpath=yes
40628     ;;
40629   freebsd3.[01]* | freebsdelf3.[01]*)
40630     shlibpath_overrides_runpath=yes
40631     hardcode_into_libs=yes
40632     ;;
40633   *) # from 3.2 on
40634     shlibpath_overrides_runpath=no
40635     hardcode_into_libs=yes
40636     ;;
40637   esac
40638   ;;
40639
40640 gnu*)
40641   version_type=linux
40642   need_lib_prefix=no
40643   need_version=no
40644   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
40645   soname_spec='${libname}${release}${shared_ext}$major'
40646   shlibpath_var=LD_LIBRARY_PATH
40647   hardcode_into_libs=yes
40648   ;;
40649
40650 hpux9* | hpux10* | hpux11*)
40651   # Give a soname corresponding to the major version so that dld.sl refuses to
40652   # link against other versions.
40653   version_type=sunos
40654   need_lib_prefix=no
40655   need_version=no
40656   case $host_cpu in
40657   ia64*)
40658     shrext_cmds='.so'
40659     hardcode_into_libs=yes
40660     dynamic_linker="$host_os dld.so"
40661     shlibpath_var=LD_LIBRARY_PATH
40662     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
40663     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
40664     soname_spec='${libname}${release}${shared_ext}$major'
40665     if test "X$HPUX_IA64_MODE" = X32; then
40666       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
40667     else
40668       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
40669     fi
40670     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
40671     ;;
40672    hppa*64*)
40673      shrext_cmds='.sl'
40674      hardcode_into_libs=yes
40675      dynamic_linker="$host_os dld.sl"
40676      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
40677      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
40678      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
40679      soname_spec='${libname}${release}${shared_ext}$major'
40680      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
40681      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
40682      ;;
40683    *)
40684     shrext_cmds='.sl'
40685     dynamic_linker="$host_os dld.sl"
40686     shlibpath_var=SHLIB_PATH
40687     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
40688     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
40689     soname_spec='${libname}${release}${shared_ext}$major'
40690     ;;
40691   esac
40692   # HP-UX runs *really* slowly unless shared libraries are mode 555.
40693   postinstall_cmds='chmod 555 $lib'
40694   ;;
40695
40696 irix5* | irix6* | nonstopux*)
40697   case $host_os in
40698     nonstopux*) version_type=nonstopux ;;
40699     *)
40700         if test "$lt_cv_prog_gnu_ld" = yes; then
40701                 version_type=linux
40702         else
40703                 version_type=irix
40704         fi ;;
40705   esac
40706   need_lib_prefix=no
40707   need_version=no
40708   soname_spec='${libname}${release}${shared_ext}$major'
40709   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
40710   case $host_os in
40711   irix5* | nonstopux*)
40712     libsuff= shlibsuff=
40713     ;;
40714   *)
40715     case $LD in # libtool.m4 will add one of these switches to LD
40716     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
40717       libsuff= shlibsuff= libmagic=32-bit;;
40718     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
40719       libsuff=32 shlibsuff=N32 libmagic=N32;;
40720     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
40721       libsuff=64 shlibsuff=64 libmagic=64-bit;;
40722     *) libsuff= shlibsuff= libmagic=never-match;;
40723     esac
40724     ;;
40725   esac
40726   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
40727   shlibpath_overrides_runpath=no
40728   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
40729   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
40730   hardcode_into_libs=yes
40731   ;;
40732
40733 # No shared lib support for Linux oldld, aout, or coff.
40734 linux*oldld* | linux*aout* | linux*coff*)
40735   dynamic_linker=no
40736   ;;
40737
40738 # This must be Linux ELF.
40739 linux*)
40740   version_type=linux
40741   need_lib_prefix=no
40742   need_version=no
40743   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
40744   soname_spec='${libname}${release}${shared_ext}$major'
40745   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
40746   shlibpath_var=LD_LIBRARY_PATH
40747   shlibpath_overrides_runpath=no
40748   # This implies no fast_install, which is unacceptable.
40749   # Some rework will be needed to allow for fast_install
40750   # before this can be enabled.
40751   hardcode_into_libs=yes
40752
40753   # Append ld.so.conf contents to the search path
40754   if test -f /etc/ld.so.conf; then
40755     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' ' '`
40756     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
40757   fi
40758
40759   # We used to test for /lib/ld.so.1 and disable shared libraries on
40760   # powerpc, because MkLinux only supported shared libraries with the
40761   # GNU dynamic linker.  Since this was broken with cross compilers,
40762   # most powerpc-linux boxes support dynamic linking these days and
40763   # people can always --disable-shared, the test was removed, and we
40764   # assume the GNU/Linux dynamic linker is in use.
40765   dynamic_linker='GNU/Linux ld.so'
40766   ;;
40767
40768 knetbsd*-gnu)
40769   version_type=linux
40770   need_lib_prefix=no
40771   need_version=no
40772   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
40773   soname_spec='${libname}${release}${shared_ext}$major'
40774   shlibpath_var=LD_LIBRARY_PATH
40775   shlibpath_overrides_runpath=no
40776   hardcode_into_libs=yes
40777   dynamic_linker='GNU ld.so'
40778   ;;
40779
40780 netbsd*)
40781   version_type=sunos
40782   need_lib_prefix=no
40783   need_version=no
40784   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
40785     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
40786     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
40787     dynamic_linker='NetBSD (a.out) ld.so'
40788   else
40789     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
40790     soname_spec='${libname}${release}${shared_ext}$major'
40791     dynamic_linker='NetBSD ld.elf_so'
40792   fi
40793   shlibpath_var=LD_LIBRARY_PATH
40794   shlibpath_overrides_runpath=yes
40795   hardcode_into_libs=yes
40796   ;;
40797
40798 newsos6)
40799   version_type=linux
40800   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
40801   shlibpath_var=LD_LIBRARY_PATH
40802   shlibpath_overrides_runpath=yes
40803   ;;
40804
40805 nto-qnx*)
40806   version_type=linux
40807   need_lib_prefix=no
40808   need_version=no
40809   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
40810   soname_spec='${libname}${release}${shared_ext}$major'
40811   shlibpath_var=LD_LIBRARY_PATH
40812   shlibpath_overrides_runpath=yes
40813   ;;
40814
40815 openbsd*)
40816   version_type=sunos
40817   need_lib_prefix=no
40818   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
40819   case $host_os in
40820     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
40821     *)                         need_version=no  ;;
40822   esac
40823   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
40824   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
40825   shlibpath_var=LD_LIBRARY_PATH
40826   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
40827     case $host_os in
40828       openbsd2.[89] | openbsd2.[89].*)
40829         shlibpath_overrides_runpath=no
40830         ;;
40831       *)
40832         shlibpath_overrides_runpath=yes
40833         ;;
40834       esac
40835   else
40836     shlibpath_overrides_runpath=yes
40837   fi
40838   ;;
40839
40840 os2*)
40841   libname_spec='$name'
40842   shrext_cmds=".dll"
40843   need_lib_prefix=no
40844   library_names_spec='$libname${shared_ext} $libname.a'
40845   dynamic_linker='OS/2 ld.exe'
40846   shlibpath_var=LIBPATH
40847   ;;
40848
40849 osf3* | osf4* | osf5*)
40850   version_type=osf
40851   need_lib_prefix=no
40852   need_version=no
40853   soname_spec='${libname}${release}${shared_ext}$major'
40854   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
40855   shlibpath_var=LD_LIBRARY_PATH
40856   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
40857   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
40858   ;;
40859
40860 sco3.2v5*)
40861   version_type=osf
40862   soname_spec='${libname}${release}${shared_ext}$major'
40863   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
40864   shlibpath_var=LD_LIBRARY_PATH
40865   ;;
40866
40867 solaris*)
40868   version_type=linux
40869   need_lib_prefix=no
40870   need_version=no
40871   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
40872   soname_spec='${libname}${release}${shared_ext}$major'
40873   shlibpath_var=LD_LIBRARY_PATH
40874   shlibpath_overrides_runpath=yes
40875   hardcode_into_libs=yes
40876   # ldd complains unless libraries are executable
40877   postinstall_cmds='chmod +x $lib'
40878   ;;
40879
40880 sunos4*)
40881   version_type=sunos
40882   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
40883   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
40884   shlibpath_var=LD_LIBRARY_PATH
40885   shlibpath_overrides_runpath=yes
40886   if test "$with_gnu_ld" = yes; then
40887     need_lib_prefix=no
40888   fi
40889   need_version=yes
40890   ;;
40891
40892 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
40893   version_type=linux
40894   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
40895   soname_spec='${libname}${release}${shared_ext}$major'
40896   shlibpath_var=LD_LIBRARY_PATH
40897   case $host_vendor in
40898     sni)
40899       shlibpath_overrides_runpath=no
40900       need_lib_prefix=no
40901       export_dynamic_flag_spec='${wl}-Blargedynsym'
40902       runpath_var=LD_RUN_PATH
40903       ;;
40904     siemens)
40905       need_lib_prefix=no
40906       ;;
40907     motorola)
40908       need_lib_prefix=no
40909       need_version=no
40910       shlibpath_overrides_runpath=no
40911       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
40912       ;;
40913   esac
40914   ;;
40915
40916 sysv4*MP*)
40917   if test -d /usr/nec ;then
40918     version_type=linux
40919     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
40920     soname_spec='$libname${shared_ext}.$major'
40921     shlibpath_var=LD_LIBRARY_PATH
40922   fi
40923   ;;
40924
40925 uts4*)
40926   version_type=linux
40927   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
40928   soname_spec='${libname}${release}${shared_ext}$major'
40929   shlibpath_var=LD_LIBRARY_PATH
40930   ;;
40931
40932 *)
40933   dynamic_linker=no
40934   ;;
40935 esac
40936 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
40937 echo "${ECHO_T}$dynamic_linker" >&6; }
40938 test "$dynamic_linker" = no && can_build_shared=no
40939
40940 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
40941 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
40942 hardcode_action_CXX=
40943 if test -n "$hardcode_libdir_flag_spec_CXX" || \
40944    test -n "$runpath_var_CXX" || \
40945    test "X$hardcode_automatic_CXX" = "Xyes" ; then
40946
40947   # We can hardcode non-existant directories.
40948   if test "$hardcode_direct_CXX" != no &&
40949      # If the only mechanism to avoid hardcoding is shlibpath_var, we
40950      # have to relink, otherwise we might link with an installed library
40951      # when we should be linking with a yet-to-be-installed one
40952      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
40953      test "$hardcode_minus_L_CXX" != no; then
40954     # Linking always hardcodes the temporary library directory.
40955     hardcode_action_CXX=relink
40956   else
40957     # We can link without hardcoding, and we can hardcode nonexisting dirs.
40958     hardcode_action_CXX=immediate
40959   fi
40960 else
40961   # We cannot hardcode anything, or else we can only hardcode existing
40962   # directories.
40963   hardcode_action_CXX=unsupported
40964 fi
40965 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
40966 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
40967
40968 if test "$hardcode_action_CXX" = relink; then
40969   # Fast installation is not supported
40970   enable_fast_install=no
40971 elif test "$shlibpath_overrides_runpath" = yes ||
40972      test "$enable_shared" = no; then
40973   # Fast installation is not necessary
40974   enable_fast_install=needless
40975 fi
40976
40977 striplib=
40978 old_striplib=
40979 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
40980 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
40981 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
40982   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
40983   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
40984   { echo "$as_me:$LINENO: result: yes" >&5
40985 echo "${ECHO_T}yes" >&6; }
40986 else
40987 # FIXME - insert some real tests, host_os isn't really good enough
40988   case $host_os in
40989    darwin*)
40990        if test -n "$STRIP" ; then
40991          striplib="$STRIP -x"
40992          { echo "$as_me:$LINENO: result: yes" >&5
40993 echo "${ECHO_T}yes" >&6; }
40994        else
40995   { echo "$as_me:$LINENO: result: no" >&5
40996 echo "${ECHO_T}no" >&6; }
40997 fi
40998        ;;
40999    *)
41000   { echo "$as_me:$LINENO: result: no" >&5
41001 echo "${ECHO_T}no" >&6; }
41002     ;;
41003   esac
41004 fi
41005
41006 if test "x$enable_dlopen" != xyes; then
41007   enable_dlopen=unknown
41008   enable_dlopen_self=unknown
41009   enable_dlopen_self_static=unknown
41010 else
41011   lt_cv_dlopen=no
41012   lt_cv_dlopen_libs=
41013
41014   case $host_os in
41015   beos*)
41016     lt_cv_dlopen="load_add_on"
41017     lt_cv_dlopen_libs=
41018     lt_cv_dlopen_self=yes
41019     ;;
41020
41021   mingw* | pw32*)
41022     lt_cv_dlopen="LoadLibrary"
41023     lt_cv_dlopen_libs=
41024    ;;
41025
41026   cygwin*)
41027     lt_cv_dlopen="dlopen"
41028     lt_cv_dlopen_libs=
41029    ;;
41030
41031   darwin*)
41032   # if libdl is installed we need to link against it
41033     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
41034 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
41035 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
41036   echo $ECHO_N "(cached) $ECHO_C" >&6
41037 else
41038   ac_check_lib_save_LIBS=$LIBS
41039 LIBS="-ldl  $LIBS"
41040 cat >conftest.$ac_ext <<_ACEOF
41041 /* confdefs.h.  */
41042 _ACEOF
41043 cat confdefs.h >>conftest.$ac_ext
41044 cat >>conftest.$ac_ext <<_ACEOF
41045 /* end confdefs.h.  */
41046
41047 /* Override any GCC internal prototype to avoid an error.
41048    Use char because int might match the return type of a GCC
41049    builtin and then its argument prototype would still apply.  */
41050 #ifdef __cplusplus
41051 extern "C"
41052 #endif
41053 char dlopen ();
41054 int
41055 main ()
41056 {
41057 return dlopen ();
41058   ;
41059   return 0;
41060 }
41061 _ACEOF
41062 rm -f conftest.$ac_objext conftest$ac_exeext
41063 if { (ac_try="$ac_link"
41064 case "(($ac_try" in
41065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41066   *) ac_try_echo=$ac_try;;
41067 esac
41068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41069   (eval "$ac_link") 2>conftest.er1
41070   ac_status=$?
41071   grep -v '^ *+' conftest.er1 >conftest.err
41072   rm -f conftest.er1
41073   cat conftest.err >&5
41074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41075   (exit $ac_status); } && {
41076          test -z "$ac_cxx_werror_flag" ||
41077          test ! -s conftest.err
41078        } && test -s conftest$ac_exeext &&
41079        $as_test_x conftest$ac_exeext; then
41080   ac_cv_lib_dl_dlopen=yes
41081 else
41082   echo "$as_me: failed program was:" >&5
41083 sed 's/^/| /' conftest.$ac_ext >&5
41084
41085         ac_cv_lib_dl_dlopen=no
41086 fi
41087
41088 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41089       conftest$ac_exeext conftest.$ac_ext
41090 LIBS=$ac_check_lib_save_LIBS
41091 fi
41092 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
41093 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
41094 if test $ac_cv_lib_dl_dlopen = yes; then
41095   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
41096 else
41097
41098     lt_cv_dlopen="dyld"
41099     lt_cv_dlopen_libs=
41100     lt_cv_dlopen_self=yes
41101
41102 fi
41103
41104    ;;
41105
41106   *)
41107     { echo "$as_me:$LINENO: checking for shl_load" >&5
41108 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
41109 if test "${ac_cv_func_shl_load+set}" = set; then
41110   echo $ECHO_N "(cached) $ECHO_C" >&6
41111 else
41112   cat >conftest.$ac_ext <<_ACEOF
41113 /* confdefs.h.  */
41114 _ACEOF
41115 cat confdefs.h >>conftest.$ac_ext
41116 cat >>conftest.$ac_ext <<_ACEOF
41117 /* end confdefs.h.  */
41118 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
41119    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41120 #define shl_load innocuous_shl_load
41121
41122 /* System header to define __stub macros and hopefully few prototypes,
41123     which can conflict with char shl_load (); below.
41124     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41125     <limits.h> exists even on freestanding compilers.  */
41126
41127 #ifdef __STDC__
41128 # include <limits.h>
41129 #else
41130 # include <assert.h>
41131 #endif
41132
41133 #undef shl_load
41134
41135 /* Override any GCC internal prototype to avoid an error.
41136    Use char because int might match the return type of a GCC
41137    builtin and then its argument prototype would still apply.  */
41138 #ifdef __cplusplus
41139 extern "C"
41140 #endif
41141 char shl_load ();
41142 /* The GNU C library defines this for functions which it implements
41143     to always fail with ENOSYS.  Some functions are actually named
41144     something starting with __ and the normal name is an alias.  */
41145 #if defined __stub_shl_load || defined __stub___shl_load
41146 choke me
41147 #endif
41148
41149 int
41150 main ()
41151 {
41152 return shl_load ();
41153   ;
41154   return 0;
41155 }
41156 _ACEOF
41157 rm -f conftest.$ac_objext conftest$ac_exeext
41158 if { (ac_try="$ac_link"
41159 case "(($ac_try" in
41160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41161   *) ac_try_echo=$ac_try;;
41162 esac
41163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41164   (eval "$ac_link") 2>conftest.er1
41165   ac_status=$?
41166   grep -v '^ *+' conftest.er1 >conftest.err
41167   rm -f conftest.er1
41168   cat conftest.err >&5
41169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41170   (exit $ac_status); } && {
41171          test -z "$ac_cxx_werror_flag" ||
41172          test ! -s conftest.err
41173        } && test -s conftest$ac_exeext &&
41174        $as_test_x conftest$ac_exeext; then
41175   ac_cv_func_shl_load=yes
41176 else
41177   echo "$as_me: failed program was:" >&5
41178 sed 's/^/| /' conftest.$ac_ext >&5
41179
41180         ac_cv_func_shl_load=no
41181 fi
41182
41183 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41184       conftest$ac_exeext conftest.$ac_ext
41185 fi
41186 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
41187 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
41188 if test $ac_cv_func_shl_load = yes; then
41189   lt_cv_dlopen="shl_load"
41190 else
41191   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
41192 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
41193 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
41194   echo $ECHO_N "(cached) $ECHO_C" >&6
41195 else
41196   ac_check_lib_save_LIBS=$LIBS
41197 LIBS="-ldld  $LIBS"
41198 cat >conftest.$ac_ext <<_ACEOF
41199 /* confdefs.h.  */
41200 _ACEOF
41201 cat confdefs.h >>conftest.$ac_ext
41202 cat >>conftest.$ac_ext <<_ACEOF
41203 /* end confdefs.h.  */
41204
41205 /* Override any GCC internal prototype to avoid an error.
41206    Use char because int might match the return type of a GCC
41207    builtin and then its argument prototype would still apply.  */
41208 #ifdef __cplusplus
41209 extern "C"
41210 #endif
41211 char shl_load ();
41212 int
41213 main ()
41214 {
41215 return shl_load ();
41216   ;
41217   return 0;
41218 }
41219 _ACEOF
41220 rm -f conftest.$ac_objext conftest$ac_exeext
41221 if { (ac_try="$ac_link"
41222 case "(($ac_try" in
41223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41224   *) ac_try_echo=$ac_try;;
41225 esac
41226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41227   (eval "$ac_link") 2>conftest.er1
41228   ac_status=$?
41229   grep -v '^ *+' conftest.er1 >conftest.err
41230   rm -f conftest.er1
41231   cat conftest.err >&5
41232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41233   (exit $ac_status); } && {
41234          test -z "$ac_cxx_werror_flag" ||
41235          test ! -s conftest.err
41236        } && test -s conftest$ac_exeext &&
41237        $as_test_x conftest$ac_exeext; then
41238   ac_cv_lib_dld_shl_load=yes
41239 else
41240   echo "$as_me: failed program was:" >&5
41241 sed 's/^/| /' conftest.$ac_ext >&5
41242
41243         ac_cv_lib_dld_shl_load=no
41244 fi
41245
41246 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41247       conftest$ac_exeext conftest.$ac_ext
41248 LIBS=$ac_check_lib_save_LIBS
41249 fi
41250 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
41251 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
41252 if test $ac_cv_lib_dld_shl_load = yes; then
41253   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
41254 else
41255   { echo "$as_me:$LINENO: checking for dlopen" >&5
41256 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
41257 if test "${ac_cv_func_dlopen+set}" = set; then
41258   echo $ECHO_N "(cached) $ECHO_C" >&6
41259 else
41260   cat >conftest.$ac_ext <<_ACEOF
41261 /* confdefs.h.  */
41262 _ACEOF
41263 cat confdefs.h >>conftest.$ac_ext
41264 cat >>conftest.$ac_ext <<_ACEOF
41265 /* end confdefs.h.  */
41266 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
41267    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41268 #define dlopen innocuous_dlopen
41269
41270 /* System header to define __stub macros and hopefully few prototypes,
41271     which can conflict with char dlopen (); below.
41272     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41273     <limits.h> exists even on freestanding compilers.  */
41274
41275 #ifdef __STDC__
41276 # include <limits.h>
41277 #else
41278 # include <assert.h>
41279 #endif
41280
41281 #undef dlopen
41282
41283 /* Override any GCC internal prototype to avoid an error.
41284    Use char because int might match the return type of a GCC
41285    builtin and then its argument prototype would still apply.  */
41286 #ifdef __cplusplus
41287 extern "C"
41288 #endif
41289 char dlopen ();
41290 /* The GNU C library defines this for functions which it implements
41291     to always fail with ENOSYS.  Some functions are actually named
41292     something starting with __ and the normal name is an alias.  */
41293 #if defined __stub_dlopen || defined __stub___dlopen
41294 choke me
41295 #endif
41296
41297 int
41298 main ()
41299 {
41300 return dlopen ();
41301   ;
41302   return 0;
41303 }
41304 _ACEOF
41305 rm -f conftest.$ac_objext conftest$ac_exeext
41306 if { (ac_try="$ac_link"
41307 case "(($ac_try" in
41308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41309   *) ac_try_echo=$ac_try;;
41310 esac
41311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41312   (eval "$ac_link") 2>conftest.er1
41313   ac_status=$?
41314   grep -v '^ *+' conftest.er1 >conftest.err
41315   rm -f conftest.er1
41316   cat conftest.err >&5
41317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41318   (exit $ac_status); } && {
41319          test -z "$ac_cxx_werror_flag" ||
41320          test ! -s conftest.err
41321        } && test -s conftest$ac_exeext &&
41322        $as_test_x conftest$ac_exeext; then
41323   ac_cv_func_dlopen=yes
41324 else
41325   echo "$as_me: failed program was:" >&5
41326 sed 's/^/| /' conftest.$ac_ext >&5
41327
41328         ac_cv_func_dlopen=no
41329 fi
41330
41331 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41332       conftest$ac_exeext conftest.$ac_ext
41333 fi
41334 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
41335 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
41336 if test $ac_cv_func_dlopen = yes; then
41337   lt_cv_dlopen="dlopen"
41338 else
41339   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
41340 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
41341 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
41342   echo $ECHO_N "(cached) $ECHO_C" >&6
41343 else
41344   ac_check_lib_save_LIBS=$LIBS
41345 LIBS="-ldl  $LIBS"
41346 cat >conftest.$ac_ext <<_ACEOF
41347 /* confdefs.h.  */
41348 _ACEOF
41349 cat confdefs.h >>conftest.$ac_ext
41350 cat >>conftest.$ac_ext <<_ACEOF
41351 /* end confdefs.h.  */
41352
41353 /* Override any GCC internal prototype to avoid an error.
41354    Use char because int might match the return type of a GCC
41355    builtin and then its argument prototype would still apply.  */
41356 #ifdef __cplusplus
41357 extern "C"
41358 #endif
41359 char dlopen ();
41360 int
41361 main ()
41362 {
41363 return dlopen ();
41364   ;
41365   return 0;
41366 }
41367 _ACEOF
41368 rm -f conftest.$ac_objext conftest$ac_exeext
41369 if { (ac_try="$ac_link"
41370 case "(($ac_try" in
41371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41372   *) ac_try_echo=$ac_try;;
41373 esac
41374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41375   (eval "$ac_link") 2>conftest.er1
41376   ac_status=$?
41377   grep -v '^ *+' conftest.er1 >conftest.err
41378   rm -f conftest.er1
41379   cat conftest.err >&5
41380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41381   (exit $ac_status); } && {
41382          test -z "$ac_cxx_werror_flag" ||
41383          test ! -s conftest.err
41384        } && test -s conftest$ac_exeext &&
41385        $as_test_x conftest$ac_exeext; then
41386   ac_cv_lib_dl_dlopen=yes
41387 else
41388   echo "$as_me: failed program was:" >&5
41389 sed 's/^/| /' conftest.$ac_ext >&5
41390
41391         ac_cv_lib_dl_dlopen=no
41392 fi
41393
41394 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41395       conftest$ac_exeext conftest.$ac_ext
41396 LIBS=$ac_check_lib_save_LIBS
41397 fi
41398 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
41399 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
41400 if test $ac_cv_lib_dl_dlopen = yes; then
41401   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
41402 else
41403   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
41404 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
41405 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
41406   echo $ECHO_N "(cached) $ECHO_C" >&6
41407 else
41408   ac_check_lib_save_LIBS=$LIBS
41409 LIBS="-lsvld  $LIBS"
41410 cat >conftest.$ac_ext <<_ACEOF
41411 /* confdefs.h.  */
41412 _ACEOF
41413 cat confdefs.h >>conftest.$ac_ext
41414 cat >>conftest.$ac_ext <<_ACEOF
41415 /* end confdefs.h.  */
41416
41417 /* Override any GCC internal prototype to avoid an error.
41418    Use char because int might match the return type of a GCC
41419    builtin and then its argument prototype would still apply.  */
41420 #ifdef __cplusplus
41421 extern "C"
41422 #endif
41423 char dlopen ();
41424 int
41425 main ()
41426 {
41427 return dlopen ();
41428   ;
41429   return 0;
41430 }
41431 _ACEOF
41432 rm -f conftest.$ac_objext conftest$ac_exeext
41433 if { (ac_try="$ac_link"
41434 case "(($ac_try" in
41435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41436   *) ac_try_echo=$ac_try;;
41437 esac
41438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41439   (eval "$ac_link") 2>conftest.er1
41440   ac_status=$?
41441   grep -v '^ *+' conftest.er1 >conftest.err
41442   rm -f conftest.er1
41443   cat conftest.err >&5
41444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41445   (exit $ac_status); } && {
41446          test -z "$ac_cxx_werror_flag" ||
41447          test ! -s conftest.err
41448        } && test -s conftest$ac_exeext &&
41449        $as_test_x conftest$ac_exeext; then
41450   ac_cv_lib_svld_dlopen=yes
41451 else
41452   echo "$as_me: failed program was:" >&5
41453 sed 's/^/| /' conftest.$ac_ext >&5
41454
41455         ac_cv_lib_svld_dlopen=no
41456 fi
41457
41458 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41459       conftest$ac_exeext conftest.$ac_ext
41460 LIBS=$ac_check_lib_save_LIBS
41461 fi
41462 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
41463 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
41464 if test $ac_cv_lib_svld_dlopen = yes; then
41465   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
41466 else
41467   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
41468 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
41469 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
41470   echo $ECHO_N "(cached) $ECHO_C" >&6
41471 else
41472   ac_check_lib_save_LIBS=$LIBS
41473 LIBS="-ldld  $LIBS"
41474 cat >conftest.$ac_ext <<_ACEOF
41475 /* confdefs.h.  */
41476 _ACEOF
41477 cat confdefs.h >>conftest.$ac_ext
41478 cat >>conftest.$ac_ext <<_ACEOF
41479 /* end confdefs.h.  */
41480
41481 /* Override any GCC internal prototype to avoid an error.
41482    Use char because int might match the return type of a GCC
41483    builtin and then its argument prototype would still apply.  */
41484 #ifdef __cplusplus
41485 extern "C"
41486 #endif
41487 char dld_link ();
41488 int
41489 main ()
41490 {
41491 return dld_link ();
41492   ;
41493   return 0;
41494 }
41495 _ACEOF
41496 rm -f conftest.$ac_objext conftest$ac_exeext
41497 if { (ac_try="$ac_link"
41498 case "(($ac_try" in
41499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41500   *) ac_try_echo=$ac_try;;
41501 esac
41502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41503   (eval "$ac_link") 2>conftest.er1
41504   ac_status=$?
41505   grep -v '^ *+' conftest.er1 >conftest.err
41506   rm -f conftest.er1
41507   cat conftest.err >&5
41508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41509   (exit $ac_status); } && {
41510          test -z "$ac_cxx_werror_flag" ||
41511          test ! -s conftest.err
41512        } && test -s conftest$ac_exeext &&
41513        $as_test_x conftest$ac_exeext; then
41514   ac_cv_lib_dld_dld_link=yes
41515 else
41516   echo "$as_me: failed program was:" >&5
41517 sed 's/^/| /' conftest.$ac_ext >&5
41518
41519         ac_cv_lib_dld_dld_link=no
41520 fi
41521
41522 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41523       conftest$ac_exeext conftest.$ac_ext
41524 LIBS=$ac_check_lib_save_LIBS
41525 fi
41526 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
41527 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
41528 if test $ac_cv_lib_dld_dld_link = yes; then
41529   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
41530 fi
41531
41532
41533 fi
41534
41535
41536 fi
41537
41538
41539 fi
41540
41541
41542 fi
41543
41544
41545 fi
41546
41547     ;;
41548   esac
41549
41550   if test "x$lt_cv_dlopen" != xno; then
41551     enable_dlopen=yes
41552   else
41553     enable_dlopen=no
41554   fi
41555
41556   case $lt_cv_dlopen in
41557   dlopen)
41558     save_CPPFLAGS="$CPPFLAGS"
41559     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
41560
41561     save_LDFLAGS="$LDFLAGS"
41562     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
41563
41564     save_LIBS="$LIBS"
41565     LIBS="$lt_cv_dlopen_libs $LIBS"
41566
41567     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
41568 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
41569 if test "${lt_cv_dlopen_self+set}" = set; then
41570   echo $ECHO_N "(cached) $ECHO_C" >&6
41571 else
41572           if test "$cross_compiling" = yes; then :
41573   lt_cv_dlopen_self=cross
41574 else
41575   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
41576   lt_status=$lt_dlunknown
41577   cat > conftest.$ac_ext <<EOF
41578 #line 41578 "configure"
41579 #include "confdefs.h"
41580
41581 #if HAVE_DLFCN_H
41582 #include <dlfcn.h>
41583 #endif
41584
41585 #include <stdio.h>
41586
41587 #ifdef RTLD_GLOBAL
41588 #  define LT_DLGLOBAL           RTLD_GLOBAL
41589 #else
41590 #  ifdef DL_GLOBAL
41591 #    define LT_DLGLOBAL         DL_GLOBAL
41592 #  else
41593 #    define LT_DLGLOBAL         0
41594 #  endif
41595 #endif
41596
41597 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
41598    find out it does not work in some platform. */
41599 #ifndef LT_DLLAZY_OR_NOW
41600 #  ifdef RTLD_LAZY
41601 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
41602 #  else
41603 #    ifdef DL_LAZY
41604 #      define LT_DLLAZY_OR_NOW          DL_LAZY
41605 #    else
41606 #      ifdef RTLD_NOW
41607 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
41608 #      else
41609 #        ifdef DL_NOW
41610 #          define LT_DLLAZY_OR_NOW      DL_NOW
41611 #        else
41612 #          define LT_DLLAZY_OR_NOW      0
41613 #        endif
41614 #      endif
41615 #    endif
41616 #  endif
41617 #endif
41618
41619 #ifdef __cplusplus
41620 extern "C" void exit (int);
41621 #endif
41622
41623 void fnord() { int i=42;}
41624 int main ()
41625 {
41626   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
41627   int status = $lt_dlunknown;
41628
41629   if (self)
41630     {
41631       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
41632       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
41633       /* dlclose (self); */
41634     }
41635
41636     exit (status);
41637 }
41638 EOF
41639   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41640   (eval $ac_link) 2>&5
41641   ac_status=$?
41642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41643   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
41644     (./conftest; exit; ) >&5 2>/dev/null
41645     lt_status=$?
41646     case x$lt_status in
41647       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
41648       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
41649       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
41650     esac
41651   else :
41652     # compilation failed
41653     lt_cv_dlopen_self=no
41654   fi
41655 fi
41656 rm -fr conftest*
41657
41658
41659 fi
41660 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
41661 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
41662
41663     if test "x$lt_cv_dlopen_self" = xyes; then
41664       LDFLAGS="$LDFLAGS $link_static_flag"
41665       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
41666 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
41667 if test "${lt_cv_dlopen_self_static+set}" = set; then
41668   echo $ECHO_N "(cached) $ECHO_C" >&6
41669 else
41670           if test "$cross_compiling" = yes; then :
41671   lt_cv_dlopen_self_static=cross
41672 else
41673   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
41674   lt_status=$lt_dlunknown
41675   cat > conftest.$ac_ext <<EOF
41676 #line 41676 "configure"
41677 #include "confdefs.h"
41678
41679 #if HAVE_DLFCN_H
41680 #include <dlfcn.h>
41681 #endif
41682
41683 #include <stdio.h>
41684
41685 #ifdef RTLD_GLOBAL
41686 #  define LT_DLGLOBAL           RTLD_GLOBAL
41687 #else
41688 #  ifdef DL_GLOBAL
41689 #    define LT_DLGLOBAL         DL_GLOBAL
41690 #  else
41691 #    define LT_DLGLOBAL         0
41692 #  endif
41693 #endif
41694
41695 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
41696    find out it does not work in some platform. */
41697 #ifndef LT_DLLAZY_OR_NOW
41698 #  ifdef RTLD_LAZY
41699 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
41700 #  else
41701 #    ifdef DL_LAZY
41702 #      define LT_DLLAZY_OR_NOW          DL_LAZY
41703 #    else
41704 #      ifdef RTLD_NOW
41705 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
41706 #      else
41707 #        ifdef DL_NOW
41708 #          define LT_DLLAZY_OR_NOW      DL_NOW
41709 #        else
41710 #          define LT_DLLAZY_OR_NOW      0
41711 #        endif
41712 #      endif
41713 #    endif
41714 #  endif
41715 #endif
41716
41717 #ifdef __cplusplus
41718 extern "C" void exit (int);
41719 #endif
41720
41721 void fnord() { int i=42;}
41722 int main ()
41723 {
41724   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
41725   int status = $lt_dlunknown;
41726
41727   if (self)
41728     {
41729       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
41730       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
41731       /* dlclose (self); */
41732     }
41733
41734     exit (status);
41735 }
41736 EOF
41737   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41738   (eval $ac_link) 2>&5
41739   ac_status=$?
41740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41741   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
41742     (./conftest; exit; ) >&5 2>/dev/null
41743     lt_status=$?
41744     case x$lt_status in
41745       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
41746       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
41747       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
41748     esac
41749   else :
41750     # compilation failed
41751     lt_cv_dlopen_self_static=no
41752   fi
41753 fi
41754 rm -fr conftest*
41755
41756
41757 fi
41758 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
41759 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
41760     fi
41761
41762     CPPFLAGS="$save_CPPFLAGS"
41763     LDFLAGS="$save_LDFLAGS"
41764     LIBS="$save_LIBS"
41765     ;;
41766   esac
41767
41768   case $lt_cv_dlopen_self in
41769   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
41770   *) enable_dlopen_self=unknown ;;
41771   esac
41772
41773   case $lt_cv_dlopen_self_static in
41774   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
41775   *) enable_dlopen_self_static=unknown ;;
41776   esac
41777 fi
41778
41779
41780 # The else clause should only fire when bootstrapping the
41781 # libtool distribution, otherwise you forgot to ship ltmain.sh
41782 # with your package, and you will get complaints that there are
41783 # no rules to generate ltmain.sh.
41784 if test -f "$ltmain"; then
41785   # See if we are running on zsh, and set the options which allow our commands through
41786   # without removal of \ escapes.
41787   if test -n "${ZSH_VERSION+set}" ; then
41788     setopt NO_GLOB_SUBST
41789   fi
41790   # Now quote all the things that may contain metacharacters while being
41791   # careful not to overquote the AC_SUBSTed values.  We take copies of the
41792   # variables and quote the copies for generation of the libtool script.
41793   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
41794     SED SHELL STRIP \
41795     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
41796     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
41797     deplibs_check_method reload_flag reload_cmds need_locks \
41798     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
41799     lt_cv_sys_global_symbol_to_c_name_address \
41800     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
41801     old_postinstall_cmds old_postuninstall_cmds \
41802     compiler_CXX \
41803     CC_CXX \
41804     LD_CXX \
41805     lt_prog_compiler_wl_CXX \
41806     lt_prog_compiler_pic_CXX \
41807     lt_prog_compiler_static_CXX \
41808     lt_prog_compiler_no_builtin_flag_CXX \
41809     export_dynamic_flag_spec_CXX \
41810     thread_safe_flag_spec_CXX \
41811     whole_archive_flag_spec_CXX \
41812     enable_shared_with_static_runtimes_CXX \
41813     old_archive_cmds_CXX \
41814     old_archive_from_new_cmds_CXX \
41815     predep_objects_CXX \
41816     postdep_objects_CXX \
41817     predeps_CXX \
41818     postdeps_CXX \
41819     compiler_lib_search_path_CXX \
41820     archive_cmds_CXX \
41821     archive_expsym_cmds_CXX \
41822     postinstall_cmds_CXX \
41823     postuninstall_cmds_CXX \
41824     old_archive_from_expsyms_cmds_CXX \
41825     allow_undefined_flag_CXX \
41826     no_undefined_flag_CXX \
41827     export_symbols_cmds_CXX \
41828     hardcode_libdir_flag_spec_CXX \
41829     hardcode_libdir_flag_spec_ld_CXX \
41830     hardcode_libdir_separator_CXX \
41831     hardcode_automatic_CXX \
41832     module_cmds_CXX \
41833     module_expsym_cmds_CXX \
41834     lt_cv_prog_compiler_c_o_CXX \
41835     exclude_expsyms_CXX \
41836     include_expsyms_CXX; do
41837
41838     case $var in
41839     old_archive_cmds_CXX | \
41840     old_archive_from_new_cmds_CXX | \
41841     archive_cmds_CXX | \
41842     archive_expsym_cmds_CXX | \
41843     module_cmds_CXX | \
41844     module_expsym_cmds_CXX | \
41845     old_archive_from_expsyms_cmds_CXX | \
41846     export_symbols_cmds_CXX | \
41847     extract_expsyms_cmds | reload_cmds | finish_cmds | \
41848     postinstall_cmds | postuninstall_cmds | \
41849     old_postinstall_cmds | old_postuninstall_cmds | \
41850     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
41851       # Double-quote double-evaled strings.
41852       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
41853       ;;
41854     *)
41855       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
41856       ;;
41857     esac
41858   done
41859
41860   case $lt_echo in
41861   *'\$0 --fallback-echo"')
41862     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
41863     ;;
41864   esac
41865
41866 cfgfile="$ofile"
41867
41868   cat <<__EOF__ >> "$cfgfile"
41869 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
41870
41871 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
41872
41873 # Shell to use when invoking shell scripts.
41874 SHELL=$lt_SHELL
41875
41876 # Whether or not to build shared libraries.
41877 build_libtool_libs=$enable_shared
41878
41879 # Whether or not to build static libraries.
41880 build_old_libs=$enable_static
41881
41882 # Whether or not to add -lc for building shared libraries.
41883 build_libtool_need_lc=$archive_cmds_need_lc_CXX
41884
41885 # Whether or not to disallow shared libs when runtime libs are static
41886 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
41887
41888 # Whether or not to optimize for fast installation.
41889 fast_install=$enable_fast_install
41890
41891 # The host system.
41892 host_alias=$host_alias
41893 host=$host
41894 host_os=$host_os
41895
41896 # The build system.
41897 build_alias=$build_alias
41898 build=$build
41899 build_os=$build_os
41900
41901 # An echo program that does not interpret backslashes.
41902 echo=$lt_echo
41903
41904 # The archiver.
41905 AR=$lt_AR
41906 AR_FLAGS=$lt_AR_FLAGS
41907
41908 # A C compiler.
41909 LTCC=$lt_LTCC
41910
41911 # A language-specific compiler.
41912 CC=$lt_compiler_CXX
41913
41914 # Is the compiler the GNU C compiler?
41915 with_gcc=$GCC_CXX
41916
41917 # An ERE matcher.
41918 EGREP=$lt_EGREP
41919
41920 # The linker used to build libraries.
41921 LD=$lt_LD_CXX
41922
41923 # Whether we need hard or soft links.
41924 LN_S=$lt_LN_S
41925
41926 # A BSD-compatible nm program.
41927 NM=$lt_NM
41928
41929 # A symbol stripping program
41930 STRIP=$lt_STRIP
41931
41932 # Used to examine libraries when file_magic_cmd begins "file"
41933 MAGIC_CMD=$MAGIC_CMD
41934
41935 # Used on cygwin: DLL creation program.
41936 DLLTOOL="$DLLTOOL"
41937
41938 # Used on cygwin: object dumper.
41939 OBJDUMP="$OBJDUMP"
41940
41941 # Used on cygwin: assembler.
41942 AS="$AS"
41943
41944 # The name of the directory that contains temporary libtool files.
41945 objdir=$objdir
41946
41947 # How to create reloadable object files.
41948 reload_flag=$lt_reload_flag
41949 reload_cmds=$lt_reload_cmds
41950
41951 # How to pass a linker flag through the compiler.
41952 wl=$lt_lt_prog_compiler_wl_CXX
41953
41954 # Object file suffix (normally "o").
41955 objext="$ac_objext"
41956
41957 # Old archive suffix (normally "a").
41958 libext="$libext"
41959
41960 # Shared library suffix (normally ".so").
41961 shrext_cmds='$shrext_cmds'
41962
41963 # Executable file suffix (normally "").
41964 exeext="$exeext"
41965
41966 # Additional compiler flags for building library objects.
41967 pic_flag=$lt_lt_prog_compiler_pic_CXX
41968 pic_mode=$pic_mode
41969
41970 # What is the maximum length of a command?
41971 max_cmd_len=$lt_cv_sys_max_cmd_len
41972
41973 # Does compiler simultaneously support -c and -o options?
41974 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
41975
41976 # Must we lock files when doing compilation?
41977 need_locks=$lt_need_locks
41978
41979 # Do we need the lib prefix for modules?
41980 need_lib_prefix=$need_lib_prefix
41981
41982 # Do we need a version for libraries?
41983 need_version=$need_version
41984
41985 # Whether dlopen is supported.
41986 dlopen_support=$enable_dlopen
41987
41988 # Whether dlopen of programs is supported.
41989 dlopen_self=$enable_dlopen_self
41990
41991 # Whether dlopen of statically linked programs is supported.
41992 dlopen_self_static=$enable_dlopen_self_static
41993
41994 # Compiler flag to prevent dynamic linking.
41995 link_static_flag=$lt_lt_prog_compiler_static_CXX
41996
41997 # Compiler flag to turn off builtin functions.
41998 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
41999
42000 # Compiler flag to allow reflexive dlopens.
42001 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
42002
42003 # Compiler flag to generate shared objects directly from archives.
42004 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
42005
42006 # Compiler flag to generate thread-safe objects.
42007 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
42008
42009 # Library versioning type.
42010 version_type=$version_type
42011
42012 # Format of library name prefix.
42013 libname_spec=$lt_libname_spec
42014
42015 # List of archive names.  First name is the real one, the rest are links.
42016 # The last name is the one that the linker finds with -lNAME.
42017 library_names_spec=$lt_library_names_spec
42018
42019 # The coded name of the library, if different from the real name.
42020 soname_spec=$lt_soname_spec
42021
42022 # Commands used to build and install an old-style archive.
42023 RANLIB=$lt_RANLIB
42024 old_archive_cmds=$lt_old_archive_cmds_CXX
42025 old_postinstall_cmds=$lt_old_postinstall_cmds
42026 old_postuninstall_cmds=$lt_old_postuninstall_cmds
42027
42028 # Create an old-style archive from a shared archive.
42029 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
42030
42031 # Create a temporary old-style archive to link instead of a shared archive.
42032 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
42033
42034 # Commands used to build and install a shared archive.
42035 archive_cmds=$lt_archive_cmds_CXX
42036 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
42037 postinstall_cmds=$lt_postinstall_cmds
42038 postuninstall_cmds=$lt_postuninstall_cmds
42039
42040 # Commands used to build a loadable module (assumed same as above if empty)
42041 module_cmds=$lt_module_cmds_CXX
42042 module_expsym_cmds=$lt_module_expsym_cmds_CXX
42043
42044 # Commands to strip libraries.
42045 old_striplib=$lt_old_striplib
42046 striplib=$lt_striplib
42047
42048 # Dependencies to place before the objects being linked to create a
42049 # shared library.
42050 predep_objects=$lt_predep_objects_CXX
42051
42052 # Dependencies to place after the objects being linked to create a
42053 # shared library.
42054 postdep_objects=$lt_postdep_objects_CXX
42055
42056 # Dependencies to place before the objects being linked to create a
42057 # shared library.
42058 predeps=$lt_predeps_CXX
42059
42060 # Dependencies to place after the objects being linked to create a
42061 # shared library.
42062 postdeps=$lt_postdeps_CXX
42063
42064 # The library search path used internally by the compiler when linking
42065 # a shared library.
42066 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
42067
42068 # Method to check whether dependent libraries are shared objects.
42069 deplibs_check_method=$lt_deplibs_check_method
42070
42071 # Command to use when deplibs_check_method == file_magic.
42072 file_magic_cmd=$lt_file_magic_cmd
42073
42074 # Flag that allows shared libraries with undefined symbols to be built.
42075 allow_undefined_flag=$lt_allow_undefined_flag_CXX
42076
42077 # Flag that forces no undefined symbols.
42078 no_undefined_flag=$lt_no_undefined_flag_CXX
42079
42080 # Commands used to finish a libtool library installation in a directory.
42081 finish_cmds=$lt_finish_cmds
42082
42083 # Same as above, but a single script fragment to be evaled but not shown.
42084 finish_eval=$lt_finish_eval
42085
42086 # Take the output of nm and produce a listing of raw symbols and C names.
42087 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
42088
42089 # Transform the output of nm in a proper C declaration
42090 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
42091
42092 # Transform the output of nm in a C name address pair
42093 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
42094
42095 # This is the shared library runtime path variable.
42096 runpath_var=$runpath_var
42097
42098 # This is the shared library path variable.
42099 shlibpath_var=$shlibpath_var
42100
42101 # Is shlibpath searched before the hard-coded library search path?
42102 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
42103
42104 # How to hardcode a shared library path into an executable.
42105 hardcode_action=$hardcode_action_CXX
42106
42107 # Whether we should hardcode library paths into libraries.
42108 hardcode_into_libs=$hardcode_into_libs
42109
42110 # Flag to hardcode \$libdir into a binary during linking.
42111 # This must work even if \$libdir does not exist.
42112 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
42113
42114 # If ld is used when linking, flag to hardcode \$libdir into
42115 # a binary during linking. This must work even if \$libdir does
42116 # not exist.
42117 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
42118
42119 # Whether we need a single -rpath flag with a separated argument.
42120 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
42121
42122 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
42123 # resulting binary.
42124 hardcode_direct=$hardcode_direct_CXX
42125
42126 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
42127 # resulting binary.
42128 hardcode_minus_L=$hardcode_minus_L_CXX
42129
42130 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
42131 # the resulting binary.
42132 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
42133
42134 # Set to yes if building a shared library automatically hardcodes DIR into the library
42135 # and all subsequent libraries and executables linked against it.
42136 hardcode_automatic=$hardcode_automatic_CXX
42137
42138 # Variables whose values should be saved in libtool wrapper scripts and
42139 # restored at relink time.
42140 variables_saved_for_relink="$variables_saved_for_relink"
42141
42142 # Whether libtool must link a program against all its dependency libraries.
42143 link_all_deplibs=$link_all_deplibs_CXX
42144
42145 # Compile-time system search path for libraries
42146 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
42147
42148 # Run-time system search path for libraries
42149 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
42150
42151 # Fix the shell variable \$srcfile for the compiler.
42152 fix_srcfile_path="$fix_srcfile_path_CXX"
42153
42154 # Set to yes if exported symbols are required.
42155 always_export_symbols=$always_export_symbols_CXX
42156
42157 # The commands to list exported symbols.
42158 export_symbols_cmds=$lt_export_symbols_cmds_CXX
42159
42160 # The commands to extract the exported symbol list from a shared archive.
42161 extract_expsyms_cmds=$lt_extract_expsyms_cmds
42162
42163 # Symbols that should not be listed in the preloaded symbols.
42164 exclude_expsyms=$lt_exclude_expsyms_CXX
42165
42166 # Symbols that must always be exported.
42167 include_expsyms=$lt_include_expsyms_CXX
42168
42169 # ### END LIBTOOL TAG CONFIG: $tagname
42170
42171 __EOF__
42172
42173
42174 else
42175   # If there is no Makefile yet, we rely on a make rule to execute
42176   # `config.status --recheck' to rerun these tests and create the
42177   # libtool script then.
42178   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
42179   if test -f "$ltmain_in"; then
42180     test -f Makefile && make "$ltmain"
42181   fi
42182 fi
42183
42184
42185 ac_ext=c
42186 ac_cpp='$CPP $CPPFLAGS'
42187 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42188 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42189 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42190
42191 CC=$lt_save_CC
42192 LDCXX=$LD
42193 LD=$lt_save_LD
42194 GCC=$lt_save_GCC
42195 with_gnu_ldcxx=$with_gnu_ld
42196 with_gnu_ld=$lt_save_with_gnu_ld
42197 lt_cv_path_LDCXX=$lt_cv_path_LD
42198 lt_cv_path_LD=$lt_save_path_LD
42199 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
42200 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
42201
42202         else
42203           tagname=""
42204         fi
42205         ;;
42206
42207       F77)
42208         if test -n "$F77" && test "X$F77" != "Xno"; then
42209
42210 ac_ext=f
42211 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
42212 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42213 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
42214
42215
42216 archive_cmds_need_lc_F77=no
42217 allow_undefined_flag_F77=
42218 always_export_symbols_F77=no
42219 archive_expsym_cmds_F77=
42220 export_dynamic_flag_spec_F77=
42221 hardcode_direct_F77=no
42222 hardcode_libdir_flag_spec_F77=
42223 hardcode_libdir_flag_spec_ld_F77=
42224 hardcode_libdir_separator_F77=
42225 hardcode_minus_L_F77=no
42226 hardcode_automatic_F77=no
42227 module_cmds_F77=
42228 module_expsym_cmds_F77=
42229 link_all_deplibs_F77=unknown
42230 old_archive_cmds_F77=$old_archive_cmds
42231 no_undefined_flag_F77=
42232 whole_archive_flag_spec_F77=
42233 enable_shared_with_static_runtimes_F77=no
42234
42235 # Source file extension for f77 test sources.
42236 ac_ext=f
42237
42238 # Object file extension for compiled f77 test sources.
42239 objext=o
42240 objext_F77=$objext
42241
42242 # Code to be used in simple compile tests
42243 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
42244
42245 # Code to be used in simple link tests
42246 lt_simple_link_test_code="      program t\n      end\n"
42247
42248 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
42249
42250 # If no C compiler was specified, use CC.
42251 LTCC=${LTCC-"$CC"}
42252
42253 # Allow CC to be a program name with arguments.
42254 compiler=$CC
42255
42256
42257 # save warnings/boilerplate of simple test code
42258 ac_outfile=conftest.$ac_objext
42259 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
42260 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
42261 _lt_compiler_boilerplate=`cat conftest.err`
42262 $rm conftest*
42263
42264 ac_outfile=conftest.$ac_objext
42265 printf "$lt_simple_link_test_code" >conftest.$ac_ext
42266 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
42267 _lt_linker_boilerplate=`cat conftest.err`
42268 $rm conftest*
42269
42270
42271 # Allow CC to be a program name with arguments.
42272 lt_save_CC="$CC"
42273 CC=${F77-"f77"}
42274 compiler=$CC
42275 compiler_F77=$CC
42276 for cc_temp in $compiler""; do
42277   case $cc_temp in
42278     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
42279     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
42280     \-*) ;;
42281     *) break;;
42282   esac
42283 done
42284 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
42285
42286
42287 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
42288 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
42289 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
42290 echo "${ECHO_T}$can_build_shared" >&6; }
42291
42292 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
42293 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
42294 test "$can_build_shared" = "no" && enable_shared=no
42295
42296 # On AIX, shared libraries and static libraries use the same namespace, and
42297 # are all built from PIC.
42298 case $host_os in
42299 aix3*)
42300   test "$enable_shared" = yes && enable_static=no
42301   if test -n "$RANLIB"; then
42302     archive_cmds="$archive_cmds~\$RANLIB \$lib"
42303     postinstall_cmds='$RANLIB $lib'
42304   fi
42305   ;;
42306 aix4* | aix5*)
42307   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
42308     test "$enable_shared" = yes && enable_static=no
42309   fi
42310   ;;
42311 esac
42312 { echo "$as_me:$LINENO: result: $enable_shared" >&5
42313 echo "${ECHO_T}$enable_shared" >&6; }
42314
42315 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
42316 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
42317 # Make sure either enable_shared or enable_static is yes.
42318 test "$enable_shared" = yes || enable_static=yes
42319 { echo "$as_me:$LINENO: result: $enable_static" >&5
42320 echo "${ECHO_T}$enable_static" >&6; }
42321
42322 test "$ld_shlibs_F77" = no && can_build_shared=no
42323
42324 GCC_F77="$G77"
42325 LD_F77="$LD"
42326
42327 lt_prog_compiler_wl_F77=
42328 lt_prog_compiler_pic_F77=
42329 lt_prog_compiler_static_F77=
42330
42331 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
42332 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
42333
42334   if test "$GCC" = yes; then
42335     lt_prog_compiler_wl_F77='-Wl,'
42336     lt_prog_compiler_static_F77='-static'
42337
42338     case $host_os in
42339       aix*)
42340       # All AIX code is PIC.
42341       if test "$host_cpu" = ia64; then
42342         # AIX 5 now supports IA64 processor
42343         lt_prog_compiler_static_F77='-Bstatic'
42344       fi
42345       ;;
42346
42347     amigaos*)
42348       # FIXME: we need at least 68020 code to build shared libraries, but
42349       # adding the `-m68020' flag to GCC prevents building anything better,
42350       # like `-m68040'.
42351       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
42352       ;;
42353
42354     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
42355       # PIC is the default for these OSes.
42356       ;;
42357
42358     mingw* | pw32* | os2*)
42359       # This hack is so that the source file can tell whether it is being
42360       # built for inclusion in a dll (and should export symbols for example).
42361       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
42362       ;;
42363
42364     darwin* | rhapsody*)
42365       # PIC is the default on this platform
42366       # Common symbols not allowed in MH_DYLIB files
42367       lt_prog_compiler_pic_F77='-fno-common'
42368       ;;
42369
42370     msdosdjgpp*)
42371       # Just because we use GCC doesn't mean we suddenly get shared libraries
42372       # on systems that don't support them.
42373       lt_prog_compiler_can_build_shared_F77=no
42374       enable_shared=no
42375       ;;
42376
42377     sysv4*MP*)
42378       if test -d /usr/nec; then
42379         lt_prog_compiler_pic_F77=-Kconform_pic
42380       fi
42381       ;;
42382
42383     hpux*)
42384       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
42385       # not for PA HP-UX.
42386       case $host_cpu in
42387       hppa*64*|ia64*)
42388         # +Z the default
42389         ;;
42390       *)
42391         lt_prog_compiler_pic_F77='-fPIC'
42392         ;;
42393       esac
42394       ;;
42395
42396     *)
42397       lt_prog_compiler_pic_F77='-fPIC'
42398       ;;
42399     esac
42400   else
42401     # PORTME Check for flag to pass linker flags through the system compiler.
42402     case $host_os in
42403     aix*)
42404       lt_prog_compiler_wl_F77='-Wl,'
42405       if test "$host_cpu" = ia64; then
42406         # AIX 5 now supports IA64 processor
42407         lt_prog_compiler_static_F77='-Bstatic'
42408       else
42409         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
42410       fi
42411       ;;
42412       darwin*)
42413         # PIC is the default on this platform
42414         # Common symbols not allowed in MH_DYLIB files
42415        case $cc_basename in
42416          xlc*)
42417          lt_prog_compiler_pic_F77='-qnocommon'
42418          lt_prog_compiler_wl_F77='-Wl,'
42419          ;;
42420        esac
42421        ;;
42422
42423     mingw* | pw32* | os2*)
42424       # This hack is so that the source file can tell whether it is being
42425       # built for inclusion in a dll (and should export symbols for example).
42426       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
42427       ;;
42428
42429     hpux9* | hpux10* | hpux11*)
42430       lt_prog_compiler_wl_F77='-Wl,'
42431       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
42432       # not for PA HP-UX.
42433       case $host_cpu in
42434       hppa*64*|ia64*)
42435         # +Z the default
42436         ;;
42437       *)
42438         lt_prog_compiler_pic_F77='+Z'
42439         ;;
42440       esac
42441       # Is there a better lt_prog_compiler_static that works with the bundled CC?
42442       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
42443       ;;
42444
42445     irix5* | irix6* | nonstopux*)
42446       lt_prog_compiler_wl_F77='-Wl,'
42447       # PIC (with -KPIC) is the default.
42448       lt_prog_compiler_static_F77='-non_shared'
42449       ;;
42450
42451     newsos6)
42452       lt_prog_compiler_pic_F77='-KPIC'
42453       lt_prog_compiler_static_F77='-Bstatic'
42454       ;;
42455
42456     linux*)
42457       case $cc_basename in
42458       icc* | ecc*)
42459         lt_prog_compiler_wl_F77='-Wl,'
42460         lt_prog_compiler_pic_F77='-KPIC'
42461         lt_prog_compiler_static_F77='-static'
42462         ;;
42463       pgcc* | pgf77* | pgf90* | pgf95*)
42464         # Portland Group compilers (*not* the Pentium gcc compiler,
42465         # which looks to be a dead project)
42466         lt_prog_compiler_wl_F77='-Wl,'
42467         lt_prog_compiler_pic_F77='-fpic'
42468         lt_prog_compiler_static_F77='-Bstatic'
42469         ;;
42470       ccc*)
42471         lt_prog_compiler_wl_F77='-Wl,'
42472         # All Alpha code is PIC.
42473         lt_prog_compiler_static_F77='-non_shared'
42474         ;;
42475       esac
42476       ;;
42477
42478     osf3* | osf4* | osf5*)
42479       lt_prog_compiler_wl_F77='-Wl,'
42480       # All OSF/1 code is PIC.
42481       lt_prog_compiler_static_F77='-non_shared'
42482       ;;
42483
42484     sco3.2v5*)
42485       lt_prog_compiler_pic_F77='-Kpic'
42486       lt_prog_compiler_static_F77='-dn'
42487       ;;
42488
42489     solaris*)
42490       lt_prog_compiler_pic_F77='-KPIC'
42491       lt_prog_compiler_static_F77='-Bstatic'
42492       case $cc_basename in
42493       f77* | f90* | f95*)
42494         lt_prog_compiler_wl_F77='-Qoption ld ';;
42495       *)
42496         lt_prog_compiler_wl_F77='-Wl,';;
42497       esac
42498       ;;
42499
42500     sunos4*)
42501       lt_prog_compiler_wl_F77='-Qoption ld '
42502       lt_prog_compiler_pic_F77='-PIC'
42503       lt_prog_compiler_static_F77='-Bstatic'
42504       ;;
42505
42506     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
42507       lt_prog_compiler_wl_F77='-Wl,'
42508       lt_prog_compiler_pic_F77='-KPIC'
42509       lt_prog_compiler_static_F77='-Bstatic'
42510       ;;
42511
42512     sysv4*MP*)
42513       if test -d /usr/nec ;then
42514         lt_prog_compiler_pic_F77='-Kconform_pic'
42515         lt_prog_compiler_static_F77='-Bstatic'
42516       fi
42517       ;;
42518
42519     unicos*)
42520       lt_prog_compiler_wl_F77='-Wl,'
42521       lt_prog_compiler_can_build_shared_F77=no
42522       ;;
42523
42524     uts4*)
42525       lt_prog_compiler_pic_F77='-pic'
42526       lt_prog_compiler_static_F77='-Bstatic'
42527       ;;
42528
42529     *)
42530       lt_prog_compiler_can_build_shared_F77=no
42531       ;;
42532     esac
42533   fi
42534
42535 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
42536 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
42537
42538 #
42539 # Check to make sure the PIC flag actually works.
42540 #
42541 if test -n "$lt_prog_compiler_pic_F77"; then
42542
42543 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
42544 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
42545 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
42546   echo $ECHO_N "(cached) $ECHO_C" >&6
42547 else
42548   lt_prog_compiler_pic_works_F77=no
42549   ac_outfile=conftest.$ac_objext
42550    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
42551    lt_compiler_flag="$lt_prog_compiler_pic_F77"
42552    # Insert the option either (1) after the last *FLAGS variable, or
42553    # (2) before a word containing "conftest.", or (3) at the end.
42554    # Note that $ac_compile itself does not contain backslashes and begins
42555    # with a dollar sign (not a hyphen), so the echo should work correctly.
42556    # The option is referenced via a variable to avoid confusing sed.
42557    lt_compile=`echo "$ac_compile" | $SED \
42558    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
42559    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
42560    -e 's:$: $lt_compiler_flag:'`
42561    (eval echo "\"\$as_me:42561: $lt_compile\"" >&5)
42562    (eval "$lt_compile" 2>conftest.err)
42563    ac_status=$?
42564    cat conftest.err >&5
42565    echo "$as_me:42565: \$? = $ac_status" >&5
42566    if (exit $ac_status) && test -s "$ac_outfile"; then
42567      # The compiler can only warn and ignore the option if not recognized
42568      # So say no if there are warnings other than the usual output.
42569      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
42570      $SED '/^$/d' conftest.err >conftest.er2
42571      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
42572        lt_prog_compiler_pic_works_F77=yes
42573      fi
42574    fi
42575    $rm conftest*
42576
42577 fi
42578 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
42579 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
42580
42581 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
42582     case $lt_prog_compiler_pic_F77 in
42583      "" | " "*) ;;
42584      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
42585      esac
42586 else
42587     lt_prog_compiler_pic_F77=
42588      lt_prog_compiler_can_build_shared_F77=no
42589 fi
42590
42591 fi
42592 case $host_os in
42593   # For platforms which do not support PIC, -DPIC is meaningless:
42594   *djgpp*)
42595     lt_prog_compiler_pic_F77=
42596     ;;
42597   *)
42598     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
42599     ;;
42600 esac
42601
42602 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
42603 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
42604 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
42605   echo $ECHO_N "(cached) $ECHO_C" >&6
42606 else
42607   lt_cv_prog_compiler_c_o_F77=no
42608    $rm -r conftest 2>/dev/null
42609    mkdir conftest
42610    cd conftest
42611    mkdir out
42612    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
42613
42614    lt_compiler_flag="-o out/conftest2.$ac_objext"
42615    # Insert the option either (1) after the last *FLAGS variable, or
42616    # (2) before a word containing "conftest.", or (3) at the end.
42617    # Note that $ac_compile itself does not contain backslashes and begins
42618    # with a dollar sign (not a hyphen), so the echo should work correctly.
42619    lt_compile=`echo "$ac_compile" | $SED \
42620    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
42621    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
42622    -e 's:$: $lt_compiler_flag:'`
42623    (eval echo "\"\$as_me:42623: $lt_compile\"" >&5)
42624    (eval "$lt_compile" 2>out/conftest.err)
42625    ac_status=$?
42626    cat out/conftest.err >&5
42627    echo "$as_me:42627: \$? = $ac_status" >&5
42628    if (exit $ac_status) && test -s out/conftest2.$ac_objext
42629    then
42630      # The compiler can only warn and ignore the option if not recognized
42631      # So say no if there are warnings
42632      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
42633      $SED '/^$/d' out/conftest.err >out/conftest.er2
42634      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
42635        lt_cv_prog_compiler_c_o_F77=yes
42636      fi
42637    fi
42638    chmod u+w . 2>&5
42639    $rm conftest*
42640    # SGI C++ compiler will create directory out/ii_files/ for
42641    # template instantiation
42642    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
42643    $rm out/* && rmdir out
42644    cd ..
42645    rmdir conftest
42646    $rm conftest*
42647
42648 fi
42649 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
42650 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
42651
42652
42653 hard_links="nottested"
42654 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
42655   # do not overwrite the value of need_locks provided by the user
42656   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
42657 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
42658   hard_links=yes
42659   $rm conftest*
42660   ln conftest.a conftest.b 2>/dev/null && hard_links=no
42661   touch conftest.a
42662   ln conftest.a conftest.b 2>&5 || hard_links=no
42663   ln conftest.a conftest.b 2>/dev/null && hard_links=no
42664   { echo "$as_me:$LINENO: result: $hard_links" >&5
42665 echo "${ECHO_T}$hard_links" >&6; }
42666   if test "$hard_links" = no; then
42667
42668     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
42669 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
42670
42671
42672     cat <<AAW_EOF >>config.warnings
42673 \`$CC' does not support \`-c -o', so \`make -j' may be unsafe
42674 AAW_EOF
42675
42676
42677     need_locks=warn
42678   fi
42679 else
42680   need_locks=no
42681 fi
42682
42683 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
42684 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
42685
42686   runpath_var=
42687   allow_undefined_flag_F77=
42688   enable_shared_with_static_runtimes_F77=no
42689   archive_cmds_F77=
42690   archive_expsym_cmds_F77=
42691   old_archive_From_new_cmds_F77=
42692   old_archive_from_expsyms_cmds_F77=
42693   export_dynamic_flag_spec_F77=
42694   whole_archive_flag_spec_F77=
42695   thread_safe_flag_spec_F77=
42696   hardcode_libdir_flag_spec_F77=
42697   hardcode_libdir_flag_spec_ld_F77=
42698   hardcode_libdir_separator_F77=
42699   hardcode_direct_F77=no
42700   hardcode_minus_L_F77=no
42701   hardcode_shlibpath_var_F77=unsupported
42702   link_all_deplibs_F77=unknown
42703   hardcode_automatic_F77=no
42704   module_cmds_F77=
42705   module_expsym_cmds_F77=
42706   always_export_symbols_F77=no
42707   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
42708   # include_expsyms should be a list of space-separated symbols to be *always*
42709   # included in the symbol list
42710   include_expsyms_F77=
42711   # exclude_expsyms can be an extended regexp of symbols to exclude
42712   # it will be wrapped by ` (' and `)$', so one must not match beginning or
42713   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
42714   # as well as any symbol that contains `d'.
42715   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
42716   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
42717   # platforms (ab)use it in PIC code, but their linkers get confused if
42718   # the symbol is explicitly referenced.  Since portable code cannot
42719   # rely on this symbol name, it's probably fine to never include it in
42720   # preloaded symbol tables.
42721   extract_expsyms_cmds=
42722   # Just being paranoid about ensuring that cc_basename is set.
42723   for cc_temp in $compiler""; do
42724   case $cc_temp in
42725     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
42726     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
42727     \-*) ;;
42728     *) break;;
42729   esac
42730 done
42731 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
42732
42733   case $host_os in
42734   cygwin* | mingw* | pw32*)
42735     # FIXME: the MSVC++ port hasn't been tested in a loooong time
42736     # When not using gcc, we currently assume that we are using
42737     # Microsoft Visual C++.
42738     if test "$GCC" != yes; then
42739       with_gnu_ld=no
42740     fi
42741     ;;
42742   openbsd*)
42743     with_gnu_ld=no
42744     ;;
42745   esac
42746
42747   ld_shlibs_F77=yes
42748   if test "$with_gnu_ld" = yes; then
42749     # If archive_cmds runs LD, not CC, wlarc should be empty
42750     wlarc='${wl}'
42751
42752     # Set some defaults for GNU ld with shared library support. These
42753     # are reset later if shared libraries are not supported. Putting them
42754     # here allows them to be overridden if necessary.
42755     runpath_var=LD_RUN_PATH
42756     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
42757     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
42758     # ancient GNU ld didn't support --whole-archive et. al.
42759     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
42760         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
42761       else
42762         whole_archive_flag_spec_F77=
42763     fi
42764     supports_anon_versioning=no
42765     case `$LD -v 2>/dev/null` in
42766       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
42767       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
42768       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
42769       *\ 2.11.*) ;; # other 2.11 versions
42770       *) supports_anon_versioning=yes ;;
42771     esac
42772
42773     # See if GNU ld supports shared libraries.
42774     case $host_os in
42775     aix3* | aix4* | aix5*)
42776       # On AIX/PPC, the GNU linker is very broken
42777       if test "$host_cpu" != ia64; then
42778         ld_shlibs_F77=no
42779         cat <<EOF 1>&2
42780
42781 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
42782 *** to be unable to reliably create shared libraries on AIX.
42783 *** Therefore, libtool is disabling shared libraries support.  If you
42784 *** really care for shared libraries, you may want to modify your PATH
42785 *** so that a non-GNU linker is found, and then restart.
42786
42787 EOF
42788       fi
42789       ;;
42790
42791     amigaos*)
42792       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)'
42793       hardcode_libdir_flag_spec_F77='-L$libdir'
42794       hardcode_minus_L_F77=yes
42795
42796       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
42797       # that the semantics of dynamic libraries on AmigaOS, at least up
42798       # to version 4, is to share data among multiple programs linked
42799       # with the same dynamic library.  Since this doesn't match the
42800       # behavior of shared libraries on other platforms, we can't use
42801       # them.
42802       ld_shlibs_F77=no
42803       ;;
42804
42805     beos*)
42806       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
42807         allow_undefined_flag_F77=unsupported
42808         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
42809         # support --undefined.  This deserves some investigation.  FIXME
42810         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
42811       else
42812         ld_shlibs_F77=no
42813       fi
42814       ;;
42815
42816     cygwin* | mingw* | pw32*)
42817       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
42818       # as there is no search path for DLLs.
42819       hardcode_libdir_flag_spec_F77='-L$libdir'
42820       allow_undefined_flag_F77=unsupported
42821       always_export_symbols_F77=no
42822       enable_shared_with_static_runtimes_F77=yes
42823       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
42824
42825       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
42826         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
42827         # If the export-symbols file already is a .def file (1st line
42828         # is EXPORTS), use it as is; otherwise, prepend...
42829         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
42830           cp $export_symbols $output_objdir/$soname.def;
42831         else
42832           echo EXPORTS > $output_objdir/$soname.def;
42833           cat $export_symbols >> $output_objdir/$soname.def;
42834         fi~
42835         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
42836       else
42837         ld_shlibs_F77=no
42838       fi
42839       ;;
42840
42841     linux*)
42842       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
42843         tmp_addflag=
42844         case $cc_basename,$host_cpu in
42845         pgcc*)                          # Portland Group C compiler
42846           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'
42847           tmp_addflag=' $pic_flag'
42848           ;;
42849         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
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 -Mnomain' ;;
42852         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
42853           tmp_addflag=' -i_dynamic' ;;
42854         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
42855           tmp_addflag=' -i_dynamic -nofor_main' ;;
42856         ifc* | ifort*)                  # Intel Fortran compiler
42857           tmp_addflag=' -nofor_main' ;;
42858         esac
42859         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
42860
42861         if test $supports_anon_versioning = yes; then
42862           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
42863   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
42864   $echo "local: *; };" >> $output_objdir/$libname.ver~
42865           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
42866         fi
42867       else
42868         ld_shlibs_F77=no
42869       fi
42870       ;;
42871
42872     netbsd*)
42873       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
42874         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
42875         wlarc=
42876       else
42877         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
42878         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
42879       fi
42880       ;;
42881
42882     solaris* | sysv5*)
42883       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
42884         ld_shlibs_F77=no
42885         cat <<EOF 1>&2
42886
42887 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
42888 *** create shared libraries on Solaris systems.  Therefore, libtool
42889 *** is disabling shared libraries support.  We urge you to upgrade GNU
42890 *** binutils to release 2.9.1 or newer.  Another option is to modify
42891 *** your PATH or compiler configuration so that the native linker is
42892 *** used, and then restart.
42893
42894 EOF
42895       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
42896         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
42897         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
42898       else
42899         ld_shlibs_F77=no
42900       fi
42901       ;;
42902
42903     sunos4*)
42904       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
42905       wlarc=
42906       hardcode_direct_F77=yes
42907       hardcode_shlibpath_var_F77=no
42908       ;;
42909
42910     *)
42911       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
42912         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
42913         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
42914       else
42915         ld_shlibs_F77=no
42916       fi
42917       ;;
42918     esac
42919
42920     if test "$ld_shlibs_F77" = no; then
42921       runpath_var=
42922       hardcode_libdir_flag_spec_F77=
42923       export_dynamic_flag_spec_F77=
42924       whole_archive_flag_spec_F77=
42925     fi
42926   else
42927     # PORTME fill in a description of your system's linker (not GNU ld)
42928     case $host_os in
42929     aix3*)
42930       allow_undefined_flag_F77=unsupported
42931       always_export_symbols_F77=yes
42932       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'
42933       # Note: this linker hardcodes the directories in LIBPATH if there
42934       # are no directories specified by -L.
42935       hardcode_minus_L_F77=yes
42936       if test "$GCC" = yes && test -z "$link_static_flag"; then
42937         # Neither direct hardcoding nor static linking is supported with a
42938         # broken collect2.
42939         hardcode_direct_F77=unsupported
42940       fi
42941       ;;
42942
42943     aix4* | aix5*)
42944       if test "$host_cpu" = ia64; then
42945         # On IA64, the linker does run time linking by default, so we don't
42946         # have to do anything special.
42947         aix_use_runtimelinking=no
42948         exp_sym_flag='-Bexport'
42949         no_entry_flag=""
42950       else
42951         # If we're using GNU nm, then we don't want the "-C" option.
42952         # -C means demangle to AIX nm, but means don't demangle with GNU nm
42953         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
42954           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'
42955         else
42956           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'
42957         fi
42958         aix_use_runtimelinking=no
42959
42960         # Test if we are trying to use run time linking or normal
42961         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
42962         # need to do runtime linking.
42963         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
42964           for ld_flag in $LDFLAGS; do
42965           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
42966             aix_use_runtimelinking=yes
42967             break
42968           fi
42969           done
42970         esac
42971
42972         exp_sym_flag='-bexport'
42973         no_entry_flag='-bnoentry'
42974       fi
42975
42976       # When large executables or shared objects are built, AIX ld can
42977       # have problems creating the table of contents.  If linking a library
42978       # or program results in "error TOC overflow" add -mminimal-toc to
42979       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
42980       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
42981
42982       archive_cmds_F77=''
42983       hardcode_direct_F77=yes
42984       hardcode_libdir_separator_F77=':'
42985       link_all_deplibs_F77=yes
42986
42987       if test "$GCC" = yes; then
42988         case $host_os in aix4.[012]|aix4.[012].*)
42989         # We only want to do this on AIX 4.2 and lower, the check
42990         # below for broken collect2 doesn't work under 4.3+
42991           collect2name=`${CC} -print-prog-name=collect2`
42992           if test -f "$collect2name" && \
42993            strings "$collect2name" | grep resolve_lib_name >/dev/null
42994           then
42995           # We have reworked collect2
42996           hardcode_direct_F77=yes
42997           else
42998           # We have old collect2
42999           hardcode_direct_F77=unsupported
43000           # It fails to find uninstalled libraries when the uninstalled
43001           # path is not listed in the libpath.  Setting hardcode_minus_L
43002           # to unsupported forces relinking
43003           hardcode_minus_L_F77=yes
43004           hardcode_libdir_flag_spec_F77='-L$libdir'
43005           hardcode_libdir_separator_F77=
43006           fi
43007         esac
43008         shared_flag='-shared'
43009         if test "$aix_use_runtimelinking" = yes; then
43010           shared_flag="$shared_flag "'${wl}-G'
43011         fi
43012       else
43013         # not using gcc
43014         if test "$host_cpu" = ia64; then
43015         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
43016         # chokes on -Wl,-G. The following line is correct:
43017           shared_flag='-G'
43018         else
43019         if test "$aix_use_runtimelinking" = yes; then
43020             shared_flag='${wl}-G'
43021           else
43022             shared_flag='${wl}-bM:SRE'
43023         fi
43024         fi
43025       fi
43026
43027       # It seems that -bexpall does not export symbols beginning with
43028       # underscore (_), so it is better to generate a list of symbols to export.
43029       always_export_symbols_F77=yes
43030       if test "$aix_use_runtimelinking" = yes; then
43031         # Warning - without using the other runtime loading flags (-brtl),
43032         # -berok will link without error, but may produce a broken library.
43033         allow_undefined_flag_F77='-berok'
43034        # Determine the default libpath from the value encoded in an empty executable.
43035        cat >conftest.$ac_ext <<_ACEOF
43036       program main
43037
43038       end
43039 _ACEOF
43040 rm -f conftest.$ac_objext conftest$ac_exeext
43041 if { (ac_try="$ac_link"
43042 case "(($ac_try" in
43043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43044   *) ac_try_echo=$ac_try;;
43045 esac
43046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43047   (eval "$ac_link") 2>conftest.er1
43048   ac_status=$?
43049   grep -v '^ *+' conftest.er1 >conftest.err
43050   rm -f conftest.er1
43051   cat conftest.err >&5
43052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43053   (exit $ac_status); } && {
43054          test -z "$ac_f77_werror_flag" ||
43055          test ! -s conftest.err
43056        } && test -s conftest$ac_exeext &&
43057        $as_test_x conftest$ac_exeext; then
43058
43059 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
43060 }'`
43061 # Check for a 64-bit object if we didn't find anything.
43062 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; }
43063 }'`; fi
43064 else
43065   echo "$as_me: failed program was:" >&5
43066 sed 's/^/| /' conftest.$ac_ext >&5
43067
43068
43069 fi
43070
43071 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43072       conftest$ac_exeext conftest.$ac_ext
43073 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
43074
43075        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
43076         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"
43077        else
43078         if test "$host_cpu" = ia64; then
43079           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
43080           allow_undefined_flag_F77="-z nodefs"
43081           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"
43082         else
43083          # Determine the default libpath from the value encoded in an empty executable.
43084          cat >conftest.$ac_ext <<_ACEOF
43085       program main
43086
43087       end
43088 _ACEOF
43089 rm -f conftest.$ac_objext conftest$ac_exeext
43090 if { (ac_try="$ac_link"
43091 case "(($ac_try" in
43092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43093   *) ac_try_echo=$ac_try;;
43094 esac
43095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43096   (eval "$ac_link") 2>conftest.er1
43097   ac_status=$?
43098   grep -v '^ *+' conftest.er1 >conftest.err
43099   rm -f conftest.er1
43100   cat conftest.err >&5
43101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43102   (exit $ac_status); } && {
43103          test -z "$ac_f77_werror_flag" ||
43104          test ! -s conftest.err
43105        } && test -s conftest$ac_exeext &&
43106        $as_test_x conftest$ac_exeext; then
43107
43108 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
43109 }'`
43110 # Check for a 64-bit object if we didn't find anything.
43111 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; }
43112 }'`; fi
43113 else
43114   echo "$as_me: failed program was:" >&5
43115 sed 's/^/| /' conftest.$ac_ext >&5
43116
43117
43118 fi
43119
43120 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43121       conftest$ac_exeext conftest.$ac_ext
43122 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
43123
43124          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
43125           # Warning - without using the other run time loading flags,
43126           # -berok will link without error, but may produce a broken library.
43127           no_undefined_flag_F77=' ${wl}-bernotok'
43128           allow_undefined_flag_F77=' ${wl}-berok'
43129           # -bexpall does not export symbols beginning with underscore (_)
43130           always_export_symbols_F77=yes
43131           # Exported symbols can be pulled into shared objects from archives
43132           whole_archive_flag_spec_F77=' '
43133           archive_cmds_need_lc_F77=yes
43134           # This is similar to how AIX traditionally builds its shared libraries.
43135           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'
43136         fi
43137       fi
43138       ;;
43139
43140     amigaos*)
43141       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)'
43142       hardcode_libdir_flag_spec_F77='-L$libdir'
43143       hardcode_minus_L_F77=yes
43144       # see comment about different semantics on the GNU ld section
43145       ld_shlibs_F77=no
43146       ;;
43147
43148     bsdi[45]*)
43149       export_dynamic_flag_spec_F77=-rdynamic
43150       ;;
43151
43152     cygwin* | mingw* | pw32*)
43153       # When not using gcc, we currently assume that we are using
43154       # Microsoft Visual C++.
43155       # hardcode_libdir_flag_spec is actually meaningless, as there is
43156       # no search path for DLLs.
43157       hardcode_libdir_flag_spec_F77=' '
43158       allow_undefined_flag_F77=unsupported
43159       # Tell ltmain to make .lib files, not .a files.
43160       libext=lib
43161       # Tell ltmain to make .dll files, not .so files.
43162       shrext_cmds=".dll"
43163       # FIXME: Setting linknames here is a bad hack.
43164       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
43165       # The linker will automatically build a .lib file if we build a DLL.
43166       old_archive_From_new_cmds_F77='true'
43167       # FIXME: Should let the user specify the lib program.
43168       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
43169       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
43170       enable_shared_with_static_runtimes_F77=yes
43171       ;;
43172
43173     darwin* | rhapsody*)
43174       case $host_os in
43175         rhapsody* | darwin1.[012])
43176          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
43177          ;;
43178        *) # Darwin 1.3 on
43179          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
43180            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
43181          else
43182            case ${MACOSX_DEPLOYMENT_TARGET} in
43183              10.[012])
43184                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
43185                ;;
43186              10.*)
43187                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
43188                ;;
43189            esac
43190          fi
43191          ;;
43192       esac
43193       archive_cmds_need_lc_F77=no
43194       hardcode_direct_F77=no
43195       hardcode_automatic_F77=yes
43196       hardcode_shlibpath_var_F77=unsupported
43197       whole_archive_flag_spec_F77=''
43198       link_all_deplibs_F77=yes
43199     if test "$GCC" = yes ; then
43200         output_verbose_link_cmd='echo'
43201         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
43202       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
43203       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
43204       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}'
43205       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}'
43206     else
43207       case $cc_basename in
43208         xlc*)
43209          output_verbose_link_cmd='echo'
43210          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
43211          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
43212           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
43213          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}'
43214           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}'
43215           ;;
43216        *)
43217          ld_shlibs_F77=no
43218           ;;
43219       esac
43220     fi
43221       ;;
43222
43223     dgux*)
43224       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
43225       hardcode_libdir_flag_spec_F77='-L$libdir'
43226       hardcode_shlibpath_var_F77=no
43227       ;;
43228
43229     freebsd1*)
43230       ld_shlibs_F77=no
43231       ;;
43232
43233     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
43234     # support.  Future versions do this automatically, but an explicit c++rt0.o
43235     # does not break anything, and helps significantly (at the cost of a little
43236     # extra space).
43237     freebsd2.2*)
43238       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
43239       hardcode_libdir_flag_spec_F77='-R$libdir'
43240       hardcode_direct_F77=yes
43241       hardcode_shlibpath_var_F77=no
43242       ;;
43243
43244     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
43245     freebsd2*)
43246       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
43247       hardcode_direct_F77=yes
43248       hardcode_minus_L_F77=yes
43249       hardcode_shlibpath_var_F77=no
43250       ;;
43251
43252     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
43253     freebsd* | kfreebsd*-gnu | dragonfly*)
43254       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
43255       hardcode_libdir_flag_spec_F77='-R$libdir'
43256       hardcode_direct_F77=yes
43257       hardcode_shlibpath_var_F77=no
43258       ;;
43259
43260     hpux9*)
43261       if test "$GCC" = yes; then
43262         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'
43263       else
43264         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'
43265       fi
43266       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
43267       hardcode_libdir_separator_F77=:
43268       hardcode_direct_F77=yes
43269
43270       # hardcode_minus_L: Not really in the search PATH,
43271       # but as the default location of the library.
43272       hardcode_minus_L_F77=yes
43273       export_dynamic_flag_spec_F77='${wl}-E'
43274       ;;
43275
43276     hpux10* | hpux11*)
43277       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
43278         case $host_cpu in
43279         hppa*64*|ia64*)
43280           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
43281           ;;
43282         *)
43283           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
43284           ;;
43285         esac
43286       else
43287         case $host_cpu in
43288         hppa*64*|ia64*)
43289           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
43290           ;;
43291         *)
43292           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
43293           ;;
43294         esac
43295       fi
43296       if test "$with_gnu_ld" = no; then
43297         case $host_cpu in
43298         hppa*64*)
43299           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
43300           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
43301           hardcode_libdir_separator_F77=:
43302           hardcode_direct_F77=no
43303           hardcode_shlibpath_var_F77=no
43304           ;;
43305         ia64*)
43306           hardcode_libdir_flag_spec_F77='-L$libdir'
43307           hardcode_direct_F77=no
43308           hardcode_shlibpath_var_F77=no
43309
43310           # hardcode_minus_L: Not really in the search PATH,
43311           # but as the default location of the library.
43312           hardcode_minus_L_F77=yes
43313           ;;
43314         *)
43315           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
43316           hardcode_libdir_separator_F77=:
43317           hardcode_direct_F77=yes
43318           export_dynamic_flag_spec_F77='${wl}-E'
43319
43320           # hardcode_minus_L: Not really in the search PATH,
43321           # but as the default location of the library.
43322           hardcode_minus_L_F77=yes
43323           ;;
43324         esac
43325       fi
43326       ;;
43327
43328     irix5* | irix6* | nonstopux*)
43329       if test "$GCC" = yes; then
43330         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'
43331       else
43332         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'
43333         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
43334       fi
43335       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
43336       hardcode_libdir_separator_F77=:
43337       link_all_deplibs_F77=yes
43338       ;;
43339
43340     netbsd*)
43341       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
43342         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
43343       else
43344         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
43345       fi
43346       hardcode_libdir_flag_spec_F77='-R$libdir'
43347       hardcode_direct_F77=yes
43348       hardcode_shlibpath_var_F77=no
43349       ;;
43350
43351     newsos6)
43352       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
43353       hardcode_direct_F77=yes
43354       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
43355       hardcode_libdir_separator_F77=:
43356       hardcode_shlibpath_var_F77=no
43357       ;;
43358
43359     openbsd*)
43360       hardcode_direct_F77=yes
43361       hardcode_shlibpath_var_F77=no
43362       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
43363         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
43364         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
43365         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
43366         export_dynamic_flag_spec_F77='${wl}-E'
43367       else
43368        case $host_os in
43369          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
43370            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
43371            hardcode_libdir_flag_spec_F77='-R$libdir'
43372            ;;
43373          *)
43374            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
43375            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
43376            ;;
43377        esac
43378       fi
43379       ;;
43380
43381     os2*)
43382       hardcode_libdir_flag_spec_F77='-L$libdir'
43383       hardcode_minus_L_F77=yes
43384       allow_undefined_flag_F77=unsupported
43385       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'
43386       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
43387       ;;
43388
43389     osf3*)
43390       if test "$GCC" = yes; then
43391         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
43392         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'
43393       else
43394         allow_undefined_flag_F77=' -expect_unresolved \*'
43395         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'
43396       fi
43397       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
43398       hardcode_libdir_separator_F77=:
43399       ;;
43400
43401     osf4* | osf5*)      # as osf3* with the addition of -msym flag
43402       if test "$GCC" = yes; then
43403         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
43404         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'
43405         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
43406       else
43407         allow_undefined_flag_F77=' -expect_unresolved \*'
43408         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'
43409         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~
43410         $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'
43411
43412         # Both c and cxx compiler support -rpath directly
43413         hardcode_libdir_flag_spec_F77='-rpath $libdir'
43414       fi
43415       hardcode_libdir_separator_F77=:
43416       ;;
43417
43418     sco3.2v5*)
43419       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
43420       hardcode_shlibpath_var_F77=no
43421       export_dynamic_flag_spec_F77='${wl}-Bexport'
43422       runpath_var=LD_RUN_PATH
43423       hardcode_runpath_var=yes
43424       ;;
43425
43426     solaris*)
43427       no_undefined_flag_F77=' -z text'
43428       if test "x$archive_cmds" = "x"; then
43429         if test "$GCC" = yes; then
43430           wlarc='${wl}'
43431           if $CC -v --help 2>/dev/null | grep -- -shared  > /dev/null 2> /dev/null; then
43432             archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
43433             archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
43434             $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
43435           else
43436             archive_cmds_F77='$CC ${wl}-G ${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 ${wl}-G ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
43439           fi
43440         else
43441           wlarc=''
43442           lt_prog_compiler_static_F77='-static'
43443           archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
43444           archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
43445           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
43446           lt_prog_compiler_static_F77='-static'
43447         fi
43448       fi
43449       hardcode_libdir_flag_spec_F77='-R$libdir'
43450       hardcode_shlibpath_var_F77=no
43451       case $host_os in
43452       solaris2.[0-5] | solaris2.[0-5].*) ;;
43453       *)
43454         # The compiler driver will combine linker options so we
43455         # cannot just pass the convience library names through
43456         # without $wl, iff we do not link with $LD.
43457         # Luckily, gcc supports the same syntax we need for Sun Studio.
43458         # Supported since Solaris 2.6 (maybe 2.5.1?)
43459         case $wlarc in
43460         '')
43461           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
43462         *)
43463           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' ;;
43464         esac ;;
43465       esac
43466       link_all_deplibs_F77=yes
43467       ;;
43468
43469     sunos4*)
43470       if test "x$host_vendor" = xsequent; then
43471         # Use $CC to link under sequent, because it throws in some extra .o
43472         # files that make .init and .fini sections work.
43473         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
43474       else
43475         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
43476       fi
43477       hardcode_libdir_flag_spec_F77='-L$libdir'
43478       hardcode_direct_F77=yes
43479       hardcode_minus_L_F77=yes
43480       hardcode_shlibpath_var_F77=no
43481       ;;
43482
43483     sysv4)
43484       case $host_vendor in
43485         sni)
43486           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
43487           hardcode_direct_F77=yes # is this really true???
43488         ;;
43489         siemens)
43490           ## LD is ld it makes a PLAMLIB
43491           ## CC just makes a GrossModule.
43492           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
43493           reload_cmds_F77='$CC -r -o $output$reload_objs'
43494           hardcode_direct_F77=no
43495         ;;
43496         motorola)
43497           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
43498           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
43499         ;;
43500       esac
43501       runpath_var='LD_RUN_PATH'
43502       hardcode_shlibpath_var_F77=no
43503       ;;
43504
43505     sysv4.3*)
43506       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
43507       hardcode_shlibpath_var_F77=no
43508       export_dynamic_flag_spec_F77='-Bexport'
43509       ;;
43510
43511     sysv4*MP*)
43512       if test -d /usr/nec; then
43513         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
43514         hardcode_shlibpath_var_F77=no
43515         runpath_var=LD_RUN_PATH
43516         hardcode_runpath_var=yes
43517         ld_shlibs_F77=yes
43518       fi
43519       ;;
43520
43521     sysv4.2uw2*)
43522       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
43523       hardcode_direct_F77=yes
43524       hardcode_minus_L_F77=no
43525       hardcode_shlibpath_var_F77=no
43526       hardcode_runpath_var=yes
43527       runpath_var=LD_RUN_PATH
43528       ;;
43529
43530    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
43531       no_undefined_flag_F77='${wl}-z ${wl}text'
43532       if test "$GCC" = yes; then
43533         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
43534       else
43535         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
43536       fi
43537       runpath_var='LD_RUN_PATH'
43538       hardcode_shlibpath_var_F77=no
43539       ;;
43540
43541     sysv5*)
43542       no_undefined_flag_F77=' -z text'
43543       # $CC -shared without GNU ld will not create a library from C++
43544       # object files and a static libstdc++, better avoid it by now
43545       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
43546       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
43547                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
43548       hardcode_libdir_flag_spec_F77=
43549       hardcode_shlibpath_var_F77=no
43550       runpath_var='LD_RUN_PATH'
43551       ;;
43552
43553     uts4*)
43554       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
43555       hardcode_libdir_flag_spec_F77='-L$libdir'
43556       hardcode_shlibpath_var_F77=no
43557       ;;
43558
43559     *)
43560       ld_shlibs_F77=no
43561       ;;
43562     esac
43563   fi
43564
43565 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
43566 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
43567 test "$ld_shlibs_F77" = no && can_build_shared=no
43568
43569 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
43570 if test "$GCC" = yes; then
43571   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
43572 fi
43573
43574 #
43575 # Do we need to explicitly link libc?
43576 #
43577 case "x$archive_cmds_need_lc_F77" in
43578 x|xyes)
43579   # Assume -lc should be added
43580   archive_cmds_need_lc_F77=yes
43581
43582   if test "$enable_shared" = yes && test "$GCC" = yes; then
43583     case $archive_cmds_F77 in
43584     *'~'*)
43585       # FIXME: we may have to deal with multi-command sequences.
43586       ;;
43587     '$CC '*)
43588       # Test whether the compiler implicitly links with -lc since on some
43589       # systems, -lgcc has to come before -lc. If gcc already passes -lc
43590       # to ld, don't add -lc before -lgcc.
43591       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
43592 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
43593       $rm conftest*
43594       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
43595
43596       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43597   (eval $ac_compile) 2>&5
43598   ac_status=$?
43599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43600   (exit $ac_status); } 2>conftest.err; then
43601         soname=conftest
43602         lib=conftest
43603         libobjs=conftest.$ac_objext
43604         deplibs=
43605         wl=$lt_prog_compiler_wl_F77
43606         compiler_flags=-v
43607         linker_flags=-v
43608         verstring=
43609         output_objdir=.
43610         libname=conftest
43611         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
43612         allow_undefined_flag_F77=
43613         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
43614   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
43615   ac_status=$?
43616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43617   (exit $ac_status); }
43618         then
43619           archive_cmds_need_lc_F77=no
43620         else
43621           archive_cmds_need_lc_F77=yes
43622         fi
43623         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
43624       else
43625         cat conftest.err 1>&5
43626       fi
43627       $rm conftest*
43628       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
43629 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
43630       ;;
43631     esac
43632   fi
43633   ;;
43634 esac
43635
43636 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
43637 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
43638 library_names_spec=
43639 libname_spec='lib$name'
43640 soname_spec=
43641 shrext_cmds=".so"
43642 postinstall_cmds=
43643 postuninstall_cmds=
43644 finish_cmds=
43645 finish_eval=
43646 shlibpath_var=
43647 shlibpath_overrides_runpath=unknown
43648 version_type=none
43649 dynamic_linker="$host_os ld.so"
43650 sys_lib_dlsearch_path_spec="/lib /usr/lib"
43651 if test "$GCC" = yes; then
43652   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
43653   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
43654     # if the path contains ";" then we assume it to be the separator
43655     # otherwise default to the standard path separator (i.e. ":") - it is
43656     # assumed that no part of a normal pathname contains ";" but that should
43657     # okay in the real world where ";" in dirpaths is itself problematic.
43658     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
43659   else
43660     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
43661   fi
43662 else
43663   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
43664 fi
43665 need_lib_prefix=unknown
43666 hardcode_into_libs=no
43667
43668 # when you set need_version to no, make sure it does not cause -set_version
43669 # flags to be left without arguments
43670 need_version=unknown
43671
43672 case $host_os in
43673 aix3*)
43674   version_type=linux
43675   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
43676   shlibpath_var=LIBPATH
43677
43678   # AIX 3 has no versioning support, so we append a major version to the name.
43679   soname_spec='${libname}${release}${shared_ext}$major'
43680   ;;
43681
43682 aix4* | aix5*)
43683   version_type=linux
43684   need_lib_prefix=no
43685   need_version=no
43686   hardcode_into_libs=yes
43687   if test "$host_cpu" = ia64; then
43688     # AIX 5 supports IA64
43689     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
43690     shlibpath_var=LD_LIBRARY_PATH
43691   else
43692     # With GCC up to 2.95.x, collect2 would create an import file
43693     # for dependence libraries.  The import file would start with
43694     # the line `#! .'.  This would cause the generated library to
43695     # depend on `.', always an invalid library.  This was fixed in
43696     # development snapshots of GCC prior to 3.0.
43697     case $host_os in
43698       aix4 | aix4.[01] | aix4.[01].*)
43699       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
43700            echo ' yes '
43701            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
43702         :
43703       else
43704         can_build_shared=no
43705       fi
43706       ;;
43707     esac
43708     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
43709     # soname into executable. Probably we can add versioning support to
43710     # collect2, so additional links can be useful in future.
43711     if test "$aix_use_runtimelinking" = yes; then
43712       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
43713       # instead of lib<name>.a to let people know that these are not
43714       # typical AIX shared libraries.
43715       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
43716     else
43717       # We preserve .a as extension for shared libraries through AIX4.2
43718       # and later when we are not doing run time linking.
43719       library_names_spec='${libname}${release}.a $libname.a'
43720       soname_spec='${libname}${release}${shared_ext}$major'
43721     fi
43722     shlibpath_var=LIBPATH
43723   fi
43724   ;;
43725
43726 amigaos*)
43727   library_names_spec='$libname.ixlibrary $libname.a'
43728   # Create ${libname}_ixlibrary.a entries in /sys/libs.
43729   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'
43730   ;;
43731
43732 beos*)
43733   library_names_spec='${libname}${shared_ext}'
43734   dynamic_linker="$host_os ld.so"
43735   shlibpath_var=LIBRARY_PATH
43736   ;;
43737
43738 bsdi[45]*)
43739   version_type=linux
43740   need_version=no
43741   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
43742   soname_spec='${libname}${release}${shared_ext}$major'
43743   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
43744   shlibpath_var=LD_LIBRARY_PATH
43745   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
43746   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
43747   # the default ld.so.conf also contains /usr/contrib/lib and
43748   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
43749   # libtool to hard-code these into programs
43750   ;;
43751
43752 cygwin* | mingw* | pw32*)
43753   version_type=windows
43754   shrext_cmds=".dll"
43755   need_version=no
43756   need_lib_prefix=no
43757
43758   case $GCC,$host_os in
43759   yes,cygwin* | yes,mingw* | yes,pw32*)
43760     library_names_spec='$libname.dll.a'
43761     # DLL is installed to $(libdir)/../bin by postinstall_cmds
43762     postinstall_cmds='base_file=`basename \${file}`~
43763       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
43764       dldir=$destdir/`dirname \$dlpath`~
43765       test -d \$dldir || mkdir -p \$dldir~
43766       $install_prog $dir/$dlname \$dldir/$dlname~
43767       chmod a+x \$dldir/$dlname'
43768     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
43769       dlpath=$dir/\$dldll~
43770        $rm \$dlpath'
43771     shlibpath_overrides_runpath=yes
43772
43773     case $host_os in
43774     cygwin*)
43775       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
43776       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
43777       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
43778       ;;
43779     mingw*)
43780       # MinGW DLLs use traditional 'lib' prefix
43781       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
43782       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
43783       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
43784         # It is most probably a Windows format PATH printed by
43785         # mingw gcc, but we are running on Cygwin. Gcc prints its search
43786         # path with ; separators, and with drive letters. We can handle the
43787         # drive letters (cygwin fileutils understands them), so leave them,
43788         # especially as we might pass files found there to a mingw objdump,
43789         # which wouldn't understand a cygwinified path. Ahh.
43790         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
43791       else
43792         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
43793       fi
43794       ;;
43795     pw32*)
43796       # pw32 DLLs use 'pw' prefix rather than 'lib'
43797       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
43798       ;;
43799     esac
43800     ;;
43801
43802   *)
43803     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
43804     ;;
43805   esac
43806   dynamic_linker='Win32 ld.exe'
43807   # FIXME: first we should search . and the directory the executable is in
43808   shlibpath_var=PATH
43809   ;;
43810
43811 darwin* | rhapsody*)
43812   dynamic_linker="$host_os dyld"
43813   version_type=darwin
43814   need_lib_prefix=no
43815   need_version=no
43816   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
43817   soname_spec='${libname}${release}${major}$shared_ext'
43818   shlibpath_overrides_runpath=yes
43819   shlibpath_var=DYLD_LIBRARY_PATH
43820   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
43821   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
43822   if test "$GCC" = yes; then
43823     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"`
43824   else
43825     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
43826   fi
43827   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
43828   ;;
43829
43830 dgux*)
43831   version_type=linux
43832   need_lib_prefix=no
43833   need_version=no
43834   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
43835   soname_spec='${libname}${release}${shared_ext}$major'
43836   shlibpath_var=LD_LIBRARY_PATH
43837   ;;
43838
43839 freebsd1*)
43840   dynamic_linker=no
43841   ;;
43842
43843 kfreebsd*-gnu)
43844   version_type=linux
43845   need_lib_prefix=no
43846   need_version=no
43847   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
43848   soname_spec='${libname}${release}${shared_ext}$major'
43849   shlibpath_var=LD_LIBRARY_PATH
43850   shlibpath_overrides_runpath=no
43851   hardcode_into_libs=yes
43852   dynamic_linker='GNU ld.so'
43853   ;;
43854
43855 freebsd* | dragonfly*)
43856   # DragonFly does not have aout.  When/if they implement a new
43857   # versioning mechanism, adjust this.
43858   if test -x /usr/bin/objformat; then
43859     objformat=`/usr/bin/objformat`
43860   else
43861     case $host_os in
43862     freebsd[123]*) objformat=aout ;;
43863     *) objformat=elf ;;
43864     esac
43865   fi
43866   version_type=freebsd-$objformat
43867   case $version_type in
43868     freebsd-elf*)
43869       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
43870       need_version=no
43871       need_lib_prefix=no
43872       ;;
43873     freebsd-*)
43874       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
43875       need_version=yes
43876       ;;
43877   esac
43878   shlibpath_var=LD_LIBRARY_PATH
43879   case $host_os in
43880   freebsd2*)
43881     shlibpath_overrides_runpath=yes
43882     ;;
43883   freebsd3.[01]* | freebsdelf3.[01]*)
43884     shlibpath_overrides_runpath=yes
43885     hardcode_into_libs=yes
43886     ;;
43887   *) # from 3.2 on
43888     shlibpath_overrides_runpath=no
43889     hardcode_into_libs=yes
43890     ;;
43891   esac
43892   ;;
43893
43894 gnu*)
43895   version_type=linux
43896   need_lib_prefix=no
43897   need_version=no
43898   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
43899   soname_spec='${libname}${release}${shared_ext}$major'
43900   shlibpath_var=LD_LIBRARY_PATH
43901   hardcode_into_libs=yes
43902   ;;
43903
43904 hpux9* | hpux10* | hpux11*)
43905   # Give a soname corresponding to the major version so that dld.sl refuses to
43906   # link against other versions.
43907   version_type=sunos
43908   need_lib_prefix=no
43909   need_version=no
43910   case $host_cpu in
43911   ia64*)
43912     shrext_cmds='.so'
43913     hardcode_into_libs=yes
43914     dynamic_linker="$host_os dld.so"
43915     shlibpath_var=LD_LIBRARY_PATH
43916     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
43917     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
43918     soname_spec='${libname}${release}${shared_ext}$major'
43919     if test "X$HPUX_IA64_MODE" = X32; then
43920       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
43921     else
43922       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
43923     fi
43924     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
43925     ;;
43926    hppa*64*)
43927      shrext_cmds='.sl'
43928      hardcode_into_libs=yes
43929      dynamic_linker="$host_os dld.sl"
43930      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
43931      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
43932      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
43933      soname_spec='${libname}${release}${shared_ext}$major'
43934      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
43935      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
43936      ;;
43937    *)
43938     shrext_cmds='.sl'
43939     dynamic_linker="$host_os dld.sl"
43940     shlibpath_var=SHLIB_PATH
43941     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
43942     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
43943     soname_spec='${libname}${release}${shared_ext}$major'
43944     ;;
43945   esac
43946   # HP-UX runs *really* slowly unless shared libraries are mode 555.
43947   postinstall_cmds='chmod 555 $lib'
43948   ;;
43949
43950 irix5* | irix6* | nonstopux*)
43951   case $host_os in
43952     nonstopux*) version_type=nonstopux ;;
43953     *)
43954         if test "$lt_cv_prog_gnu_ld" = yes; then
43955                 version_type=linux
43956         else
43957                 version_type=irix
43958         fi ;;
43959   esac
43960   need_lib_prefix=no
43961   need_version=no
43962   soname_spec='${libname}${release}${shared_ext}$major'
43963   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
43964   case $host_os in
43965   irix5* | nonstopux*)
43966     libsuff= shlibsuff=
43967     ;;
43968   *)
43969     case $LD in # libtool.m4 will add one of these switches to LD
43970     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
43971       libsuff= shlibsuff= libmagic=32-bit;;
43972     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
43973       libsuff=32 shlibsuff=N32 libmagic=N32;;
43974     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
43975       libsuff=64 shlibsuff=64 libmagic=64-bit;;
43976     *) libsuff= shlibsuff= libmagic=never-match;;
43977     esac
43978     ;;
43979   esac
43980   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
43981   shlibpath_overrides_runpath=no
43982   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
43983   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
43984   hardcode_into_libs=yes
43985   ;;
43986
43987 # No shared lib support for Linux oldld, aout, or coff.
43988 linux*oldld* | linux*aout* | linux*coff*)
43989   dynamic_linker=no
43990   ;;
43991
43992 # This must be Linux ELF.
43993 linux*)
43994   version_type=linux
43995   need_lib_prefix=no
43996   need_version=no
43997   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
43998   soname_spec='${libname}${release}${shared_ext}$major'
43999   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
44000   shlibpath_var=LD_LIBRARY_PATH
44001   shlibpath_overrides_runpath=no
44002   # This implies no fast_install, which is unacceptable.
44003   # Some rework will be needed to allow for fast_install
44004   # before this can be enabled.
44005   hardcode_into_libs=yes
44006
44007   # Append ld.so.conf contents to the search path
44008   if test -f /etc/ld.so.conf; then
44009     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' ' '`
44010     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
44011   fi
44012
44013   # We used to test for /lib/ld.so.1 and disable shared libraries on
44014   # powerpc, because MkLinux only supported shared libraries with the
44015   # GNU dynamic linker.  Since this was broken with cross compilers,
44016   # most powerpc-linux boxes support dynamic linking these days and
44017   # people can always --disable-shared, the test was removed, and we
44018   # assume the GNU/Linux dynamic linker is in use.
44019   dynamic_linker='GNU/Linux ld.so'
44020   ;;
44021
44022 knetbsd*-gnu)
44023   version_type=linux
44024   need_lib_prefix=no
44025   need_version=no
44026   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
44027   soname_spec='${libname}${release}${shared_ext}$major'
44028   shlibpath_var=LD_LIBRARY_PATH
44029   shlibpath_overrides_runpath=no
44030   hardcode_into_libs=yes
44031   dynamic_linker='GNU ld.so'
44032   ;;
44033
44034 netbsd*)
44035   version_type=sunos
44036   need_lib_prefix=no
44037   need_version=no
44038   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
44039     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
44040     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
44041     dynamic_linker='NetBSD (a.out) ld.so'
44042   else
44043     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
44044     soname_spec='${libname}${release}${shared_ext}$major'
44045     dynamic_linker='NetBSD ld.elf_so'
44046   fi
44047   shlibpath_var=LD_LIBRARY_PATH
44048   shlibpath_overrides_runpath=yes
44049   hardcode_into_libs=yes
44050   ;;
44051
44052 newsos6)
44053   version_type=linux
44054   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
44055   shlibpath_var=LD_LIBRARY_PATH
44056   shlibpath_overrides_runpath=yes
44057   ;;
44058
44059 nto-qnx*)
44060   version_type=linux
44061   need_lib_prefix=no
44062   need_version=no
44063   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
44064   soname_spec='${libname}${release}${shared_ext}$major'
44065   shlibpath_var=LD_LIBRARY_PATH
44066   shlibpath_overrides_runpath=yes
44067   ;;
44068
44069 openbsd*)
44070   version_type=sunos
44071   need_lib_prefix=no
44072   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
44073   case $host_os in
44074     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
44075     *)                         need_version=no  ;;
44076   esac
44077   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
44078   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
44079   shlibpath_var=LD_LIBRARY_PATH
44080   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
44081     case $host_os in
44082       openbsd2.[89] | openbsd2.[89].*)
44083         shlibpath_overrides_runpath=no
44084         ;;
44085       *)
44086         shlibpath_overrides_runpath=yes
44087         ;;
44088       esac
44089   else
44090     shlibpath_overrides_runpath=yes
44091   fi
44092   ;;
44093
44094 os2*)
44095   libname_spec='$name'
44096   shrext_cmds=".dll"
44097   need_lib_prefix=no
44098   library_names_spec='$libname${shared_ext} $libname.a'
44099   dynamic_linker='OS/2 ld.exe'
44100   shlibpath_var=LIBPATH
44101   ;;
44102
44103 osf3* | osf4* | osf5*)
44104   version_type=osf
44105   need_lib_prefix=no
44106   need_version=no
44107   soname_spec='${libname}${release}${shared_ext}$major'
44108   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
44109   shlibpath_var=LD_LIBRARY_PATH
44110   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
44111   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
44112   ;;
44113
44114 sco3.2v5*)
44115   version_type=osf
44116   soname_spec='${libname}${release}${shared_ext}$major'
44117   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
44118   shlibpath_var=LD_LIBRARY_PATH
44119   ;;
44120
44121 solaris*)
44122   version_type=linux
44123   need_lib_prefix=no
44124   need_version=no
44125   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
44126   soname_spec='${libname}${release}${shared_ext}$major'
44127   shlibpath_var=LD_LIBRARY_PATH
44128   shlibpath_overrides_runpath=yes
44129   hardcode_into_libs=yes
44130   # ldd complains unless libraries are executable
44131   postinstall_cmds='chmod +x $lib'
44132   ;;
44133
44134 sunos4*)
44135   version_type=sunos
44136   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
44137   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
44138   shlibpath_var=LD_LIBRARY_PATH
44139   shlibpath_overrides_runpath=yes
44140   if test "$with_gnu_ld" = yes; then
44141     need_lib_prefix=no
44142   fi
44143   need_version=yes
44144   ;;
44145
44146 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
44147   version_type=linux
44148   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
44149   soname_spec='${libname}${release}${shared_ext}$major'
44150   shlibpath_var=LD_LIBRARY_PATH
44151   case $host_vendor in
44152     sni)
44153       shlibpath_overrides_runpath=no
44154       need_lib_prefix=no
44155       export_dynamic_flag_spec='${wl}-Blargedynsym'
44156       runpath_var=LD_RUN_PATH
44157       ;;
44158     siemens)
44159       need_lib_prefix=no
44160       ;;
44161     motorola)
44162       need_lib_prefix=no
44163       need_version=no
44164       shlibpath_overrides_runpath=no
44165       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
44166       ;;
44167   esac
44168   ;;
44169
44170 sysv4*MP*)
44171   if test -d /usr/nec ;then
44172     version_type=linux
44173     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
44174     soname_spec='$libname${shared_ext}.$major'
44175     shlibpath_var=LD_LIBRARY_PATH
44176   fi
44177   ;;
44178
44179 uts4*)
44180   version_type=linux
44181   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
44182   soname_spec='${libname}${release}${shared_ext}$major'
44183   shlibpath_var=LD_LIBRARY_PATH
44184   ;;
44185
44186 *)
44187   dynamic_linker=no
44188   ;;
44189 esac
44190 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
44191 echo "${ECHO_T}$dynamic_linker" >&6; }
44192 test "$dynamic_linker" = no && can_build_shared=no
44193
44194 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
44195 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
44196 hardcode_action_F77=
44197 if test -n "$hardcode_libdir_flag_spec_F77" || \
44198    test -n "$runpath_var_F77" || \
44199    test "X$hardcode_automatic_F77" = "Xyes" ; then
44200
44201   # We can hardcode non-existant directories.
44202   if test "$hardcode_direct_F77" != no &&
44203      # If the only mechanism to avoid hardcoding is shlibpath_var, we
44204      # have to relink, otherwise we might link with an installed library
44205      # when we should be linking with a yet-to-be-installed one
44206      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
44207      test "$hardcode_minus_L_F77" != no; then
44208     # Linking always hardcodes the temporary library directory.
44209     hardcode_action_F77=relink
44210   else
44211     # We can link without hardcoding, and we can hardcode nonexisting dirs.
44212     hardcode_action_F77=immediate
44213   fi
44214 else
44215   # We cannot hardcode anything, or else we can only hardcode existing
44216   # directories.
44217   hardcode_action_F77=unsupported
44218 fi
44219 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
44220 echo "${ECHO_T}$hardcode_action_F77" >&6; }
44221
44222 if test "$hardcode_action_F77" = relink; then
44223   # Fast installation is not supported
44224   enable_fast_install=no
44225 elif test "$shlibpath_overrides_runpath" = yes ||
44226      test "$enable_shared" = no; then
44227   # Fast installation is not necessary
44228   enable_fast_install=needless
44229 fi
44230
44231 striplib=
44232 old_striplib=
44233 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
44234 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
44235 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
44236   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
44237   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
44238   { echo "$as_me:$LINENO: result: yes" >&5
44239 echo "${ECHO_T}yes" >&6; }
44240 else
44241 # FIXME - insert some real tests, host_os isn't really good enough
44242   case $host_os in
44243    darwin*)
44244        if test -n "$STRIP" ; then
44245          striplib="$STRIP -x"
44246          { echo "$as_me:$LINENO: result: yes" >&5
44247 echo "${ECHO_T}yes" >&6; }
44248        else
44249   { echo "$as_me:$LINENO: result: no" >&5
44250 echo "${ECHO_T}no" >&6; }
44251 fi
44252        ;;
44253    *)
44254   { echo "$as_me:$LINENO: result: no" >&5
44255 echo "${ECHO_T}no" >&6; }
44256     ;;
44257   esac
44258 fi
44259
44260
44261
44262 # The else clause should only fire when bootstrapping the
44263 # libtool distribution, otherwise you forgot to ship ltmain.sh
44264 # with your package, and you will get complaints that there are
44265 # no rules to generate ltmain.sh.
44266 if test -f "$ltmain"; then
44267   # See if we are running on zsh, and set the options which allow our commands through
44268   # without removal of \ escapes.
44269   if test -n "${ZSH_VERSION+set}" ; then
44270     setopt NO_GLOB_SUBST
44271   fi
44272   # Now quote all the things that may contain metacharacters while being
44273   # careful not to overquote the AC_SUBSTed values.  We take copies of the
44274   # variables and quote the copies for generation of the libtool script.
44275   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
44276     SED SHELL STRIP \
44277     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
44278     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
44279     deplibs_check_method reload_flag reload_cmds need_locks \
44280     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
44281     lt_cv_sys_global_symbol_to_c_name_address \
44282     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
44283     old_postinstall_cmds old_postuninstall_cmds \
44284     compiler_F77 \
44285     CC_F77 \
44286     LD_F77 \
44287     lt_prog_compiler_wl_F77 \
44288     lt_prog_compiler_pic_F77 \
44289     lt_prog_compiler_static_F77 \
44290     lt_prog_compiler_no_builtin_flag_F77 \
44291     export_dynamic_flag_spec_F77 \
44292     thread_safe_flag_spec_F77 \
44293     whole_archive_flag_spec_F77 \
44294     enable_shared_with_static_runtimes_F77 \
44295     old_archive_cmds_F77 \
44296     old_archive_from_new_cmds_F77 \
44297     predep_objects_F77 \
44298     postdep_objects_F77 \
44299     predeps_F77 \
44300     postdeps_F77 \
44301     compiler_lib_search_path_F77 \
44302     archive_cmds_F77 \
44303     archive_expsym_cmds_F77 \
44304     postinstall_cmds_F77 \
44305     postuninstall_cmds_F77 \
44306     old_archive_from_expsyms_cmds_F77 \
44307     allow_undefined_flag_F77 \
44308     no_undefined_flag_F77 \
44309     export_symbols_cmds_F77 \
44310     hardcode_libdir_flag_spec_F77 \
44311     hardcode_libdir_flag_spec_ld_F77 \
44312     hardcode_libdir_separator_F77 \
44313     hardcode_automatic_F77 \
44314     module_cmds_F77 \
44315     module_expsym_cmds_F77 \
44316     lt_cv_prog_compiler_c_o_F77 \
44317     exclude_expsyms_F77 \
44318     include_expsyms_F77; do
44319
44320     case $var in
44321     old_archive_cmds_F77 | \
44322     old_archive_from_new_cmds_F77 | \
44323     archive_cmds_F77 | \
44324     archive_expsym_cmds_F77 | \
44325     module_cmds_F77 | \
44326     module_expsym_cmds_F77 | \
44327     old_archive_from_expsyms_cmds_F77 | \
44328     export_symbols_cmds_F77 | \
44329     extract_expsyms_cmds | reload_cmds | finish_cmds | \
44330     postinstall_cmds | postuninstall_cmds | \
44331     old_postinstall_cmds | old_postuninstall_cmds | \
44332     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
44333       # Double-quote double-evaled strings.
44334       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
44335       ;;
44336     *)
44337       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
44338       ;;
44339     esac
44340   done
44341
44342   case $lt_echo in
44343   *'\$0 --fallback-echo"')
44344     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
44345     ;;
44346   esac
44347
44348 cfgfile="$ofile"
44349
44350   cat <<__EOF__ >> "$cfgfile"
44351 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
44352
44353 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
44354
44355 # Shell to use when invoking shell scripts.
44356 SHELL=$lt_SHELL
44357
44358 # Whether or not to build shared libraries.
44359 build_libtool_libs=$enable_shared
44360
44361 # Whether or not to build static libraries.
44362 build_old_libs=$enable_static
44363
44364 # Whether or not to add -lc for building shared libraries.
44365 build_libtool_need_lc=$archive_cmds_need_lc_F77
44366
44367 # Whether or not to disallow shared libs when runtime libs are static
44368 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
44369
44370 # Whether or not to optimize for fast installation.
44371 fast_install=$enable_fast_install
44372
44373 # The host system.
44374 host_alias=$host_alias
44375 host=$host
44376 host_os=$host_os
44377
44378 # The build system.
44379 build_alias=$build_alias
44380 build=$build
44381 build_os=$build_os
44382
44383 # An echo program that does not interpret backslashes.
44384 echo=$lt_echo
44385
44386 # The archiver.
44387 AR=$lt_AR
44388 AR_FLAGS=$lt_AR_FLAGS
44389
44390 # A C compiler.
44391 LTCC=$lt_LTCC
44392
44393 # A language-specific compiler.
44394 CC=$lt_compiler_F77
44395
44396 # Is the compiler the GNU C compiler?
44397 with_gcc=$GCC_F77
44398
44399 # An ERE matcher.
44400 EGREP=$lt_EGREP
44401
44402 # The linker used to build libraries.
44403 LD=$lt_LD_F77
44404
44405 # Whether we need hard or soft links.
44406 LN_S=$lt_LN_S
44407
44408 # A BSD-compatible nm program.
44409 NM=$lt_NM
44410
44411 # A symbol stripping program
44412 STRIP=$lt_STRIP
44413
44414 # Used to examine libraries when file_magic_cmd begins "file"
44415 MAGIC_CMD=$MAGIC_CMD
44416
44417 # Used on cygwin: DLL creation program.
44418 DLLTOOL="$DLLTOOL"
44419
44420 # Used on cygwin: object dumper.
44421 OBJDUMP="$OBJDUMP"
44422
44423 # Used on cygwin: assembler.
44424 AS="$AS"
44425
44426 # The name of the directory that contains temporary libtool files.
44427 objdir=$objdir
44428
44429 # How to create reloadable object files.
44430 reload_flag=$lt_reload_flag
44431 reload_cmds=$lt_reload_cmds
44432
44433 # How to pass a linker flag through the compiler.
44434 wl=$lt_lt_prog_compiler_wl_F77
44435
44436 # Object file suffix (normally "o").
44437 objext="$ac_objext"
44438
44439 # Old archive suffix (normally "a").
44440 libext="$libext"
44441
44442 # Shared library suffix (normally ".so").
44443 shrext_cmds='$shrext_cmds'
44444
44445 # Executable file suffix (normally "").
44446 exeext="$exeext"
44447
44448 # Additional compiler flags for building library objects.
44449 pic_flag=$lt_lt_prog_compiler_pic_F77
44450 pic_mode=$pic_mode
44451
44452 # What is the maximum length of a command?
44453 max_cmd_len=$lt_cv_sys_max_cmd_len
44454
44455 # Does compiler simultaneously support -c and -o options?
44456 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
44457
44458 # Must we lock files when doing compilation?
44459 need_locks=$lt_need_locks
44460
44461 # Do we need the lib prefix for modules?
44462 need_lib_prefix=$need_lib_prefix
44463
44464 # Do we need a version for libraries?
44465 need_version=$need_version
44466
44467 # Whether dlopen is supported.
44468 dlopen_support=$enable_dlopen
44469
44470 # Whether dlopen of programs is supported.
44471 dlopen_self=$enable_dlopen_self
44472
44473 # Whether dlopen of statically linked programs is supported.
44474 dlopen_self_static=$enable_dlopen_self_static
44475
44476 # Compiler flag to prevent dynamic linking.
44477 link_static_flag=$lt_lt_prog_compiler_static_F77
44478
44479 # Compiler flag to turn off builtin functions.
44480 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
44481
44482 # Compiler flag to allow reflexive dlopens.
44483 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
44484
44485 # Compiler flag to generate shared objects directly from archives.
44486 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
44487
44488 # Compiler flag to generate thread-safe objects.
44489 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
44490
44491 # Library versioning type.
44492 version_type=$version_type
44493
44494 # Format of library name prefix.
44495 libname_spec=$lt_libname_spec
44496
44497 # List of archive names.  First name is the real one, the rest are links.
44498 # The last name is the one that the linker finds with -lNAME.
44499 library_names_spec=$lt_library_names_spec
44500
44501 # The coded name of the library, if different from the real name.
44502 soname_spec=$lt_soname_spec
44503
44504 # Commands used to build and install an old-style archive.
44505 RANLIB=$lt_RANLIB
44506 old_archive_cmds=$lt_old_archive_cmds_F77
44507 old_postinstall_cmds=$lt_old_postinstall_cmds
44508 old_postuninstall_cmds=$lt_old_postuninstall_cmds
44509
44510 # Create an old-style archive from a shared archive.
44511 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
44512
44513 # Create a temporary old-style archive to link instead of a shared archive.
44514 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
44515
44516 # Commands used to build and install a shared archive.
44517 archive_cmds=$lt_archive_cmds_F77
44518 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
44519 postinstall_cmds=$lt_postinstall_cmds
44520 postuninstall_cmds=$lt_postuninstall_cmds
44521
44522 # Commands used to build a loadable module (assumed same as above if empty)
44523 module_cmds=$lt_module_cmds_F77
44524 module_expsym_cmds=$lt_module_expsym_cmds_F77
44525
44526 # Commands to strip libraries.
44527 old_striplib=$lt_old_striplib
44528 striplib=$lt_striplib
44529
44530 # Dependencies to place before the objects being linked to create a
44531 # shared library.
44532 predep_objects=$lt_predep_objects_F77
44533
44534 # Dependencies to place after the objects being linked to create a
44535 # shared library.
44536 postdep_objects=$lt_postdep_objects_F77
44537
44538 # Dependencies to place before the objects being linked to create a
44539 # shared library.
44540 predeps=$lt_predeps_F77
44541
44542 # Dependencies to place after the objects being linked to create a
44543 # shared library.
44544 postdeps=$lt_postdeps_F77
44545
44546 # The library search path used internally by the compiler when linking
44547 # a shared library.
44548 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
44549
44550 # Method to check whether dependent libraries are shared objects.
44551 deplibs_check_method=$lt_deplibs_check_method
44552
44553 # Command to use when deplibs_check_method == file_magic.
44554 file_magic_cmd=$lt_file_magic_cmd
44555
44556 # Flag that allows shared libraries with undefined symbols to be built.
44557 allow_undefined_flag=$lt_allow_undefined_flag_F77
44558
44559 # Flag that forces no undefined symbols.
44560 no_undefined_flag=$lt_no_undefined_flag_F77
44561
44562 # Commands used to finish a libtool library installation in a directory.
44563 finish_cmds=$lt_finish_cmds
44564
44565 # Same as above, but a single script fragment to be evaled but not shown.
44566 finish_eval=$lt_finish_eval
44567
44568 # Take the output of nm and produce a listing of raw symbols and C names.
44569 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
44570
44571 # Transform the output of nm in a proper C declaration
44572 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
44573
44574 # Transform the output of nm in a C name address pair
44575 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
44576
44577 # This is the shared library runtime path variable.
44578 runpath_var=$runpath_var
44579
44580 # This is the shared library path variable.
44581 shlibpath_var=$shlibpath_var
44582
44583 # Is shlibpath searched before the hard-coded library search path?
44584 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
44585
44586 # How to hardcode a shared library path into an executable.
44587 hardcode_action=$hardcode_action_F77
44588
44589 # Whether we should hardcode library paths into libraries.
44590 hardcode_into_libs=$hardcode_into_libs
44591
44592 # Flag to hardcode \$libdir into a binary during linking.
44593 # This must work even if \$libdir does not exist.
44594 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
44595
44596 # If ld is used when linking, flag to hardcode \$libdir into
44597 # a binary during linking. This must work even if \$libdir does
44598 # not exist.
44599 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
44600
44601 # Whether we need a single -rpath flag with a separated argument.
44602 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
44603
44604 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
44605 # resulting binary.
44606 hardcode_direct=$hardcode_direct_F77
44607
44608 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
44609 # resulting binary.
44610 hardcode_minus_L=$hardcode_minus_L_F77
44611
44612 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
44613 # the resulting binary.
44614 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
44615
44616 # Set to yes if building a shared library automatically hardcodes DIR into the library
44617 # and all subsequent libraries and executables linked against it.
44618 hardcode_automatic=$hardcode_automatic_F77
44619
44620 # Variables whose values should be saved in libtool wrapper scripts and
44621 # restored at relink time.
44622 variables_saved_for_relink="$variables_saved_for_relink"
44623
44624 # Whether libtool must link a program against all its dependency libraries.
44625 link_all_deplibs=$link_all_deplibs_F77
44626
44627 # Compile-time system search path for libraries
44628 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
44629
44630 # Run-time system search path for libraries
44631 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
44632
44633 # Fix the shell variable \$srcfile for the compiler.
44634 fix_srcfile_path="$fix_srcfile_path_F77"
44635
44636 # Set to yes if exported symbols are required.
44637 always_export_symbols=$always_export_symbols_F77
44638
44639 # The commands to list exported symbols.
44640 export_symbols_cmds=$lt_export_symbols_cmds_F77
44641
44642 # The commands to extract the exported symbol list from a shared archive.
44643 extract_expsyms_cmds=$lt_extract_expsyms_cmds
44644
44645 # Symbols that should not be listed in the preloaded symbols.
44646 exclude_expsyms=$lt_exclude_expsyms_F77
44647
44648 # Symbols that must always be exported.
44649 include_expsyms=$lt_include_expsyms_F77
44650
44651 # ### END LIBTOOL TAG CONFIG: $tagname
44652
44653 __EOF__
44654
44655
44656 else
44657   # If there is no Makefile yet, we rely on a make rule to execute
44658   # `config.status --recheck' to rerun these tests and create the
44659   # libtool script then.
44660   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
44661   if test -f "$ltmain_in"; then
44662     test -f Makefile && make "$ltmain"
44663   fi
44664 fi
44665
44666
44667 ac_ext=c
44668 ac_cpp='$CPP $CPPFLAGS'
44669 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44670 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44671 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44672
44673 CC="$lt_save_CC"
44674
44675         else
44676           tagname=""
44677         fi
44678         ;;
44679
44680       GCJ)
44681         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
44682
44683
44684 # Source file extension for Java test sources.
44685 ac_ext=java
44686
44687 # Object file extension for compiled Java test sources.
44688 objext=o
44689 objext_GCJ=$objext
44690
44691 # Code to be used in simple compile tests
44692 lt_simple_compile_test_code="class foo {}\n"
44693
44694 # Code to be used in simple link tests
44695 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
44696
44697 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
44698
44699 # If no C compiler was specified, use CC.
44700 LTCC=${LTCC-"$CC"}
44701
44702 # Allow CC to be a program name with arguments.
44703 compiler=$CC
44704
44705
44706 # save warnings/boilerplate of simple test code
44707 ac_outfile=conftest.$ac_objext
44708 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
44709 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
44710 _lt_compiler_boilerplate=`cat conftest.err`
44711 $rm conftest*
44712
44713 ac_outfile=conftest.$ac_objext
44714 printf "$lt_simple_link_test_code" >conftest.$ac_ext
44715 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
44716 _lt_linker_boilerplate=`cat conftest.err`
44717 $rm conftest*
44718
44719
44720 # Allow CC to be a program name with arguments.
44721 lt_save_CC="$CC"
44722 CC=${GCJ-"gcj"}
44723 compiler=$CC
44724 compiler_GCJ=$CC
44725 for cc_temp in $compiler""; do
44726   case $cc_temp in
44727     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
44728     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
44729     \-*) ;;
44730     *) break;;
44731   esac
44732 done
44733 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
44734
44735
44736 # GCJ did not exist at the time GCC didn't implicitly link libc in.
44737 archive_cmds_need_lc_GCJ=no
44738
44739 old_archive_cmds_GCJ=$old_archive_cmds
44740
44741 ## CAVEAT EMPTOR:
44742 ## There is no encapsulation within the following macros, do not change
44743 ## the running order or otherwise move them around unless you know exactly
44744 ## what you are doing...
44745
44746 lt_prog_compiler_no_builtin_flag_GCJ=
44747
44748 if test "$GCC" = yes; then
44749   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
44750
44751
44752 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
44753 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
44754 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
44755   echo $ECHO_N "(cached) $ECHO_C" >&6
44756 else
44757   lt_cv_prog_compiler_rtti_exceptions=no
44758   ac_outfile=conftest.$ac_objext
44759    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
44760    lt_compiler_flag="-fno-rtti -fno-exceptions"
44761    # Insert the option either (1) after the last *FLAGS variable, or
44762    # (2) before a word containing "conftest.", or (3) at the end.
44763    # Note that $ac_compile itself does not contain backslashes and begins
44764    # with a dollar sign (not a hyphen), so the echo should work correctly.
44765    # The option is referenced via a variable to avoid confusing sed.
44766    lt_compile=`echo "$ac_compile" | $SED \
44767    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
44768    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
44769    -e 's:$: $lt_compiler_flag:'`
44770    (eval echo "\"\$as_me:44770: $lt_compile\"" >&5)
44771    (eval "$lt_compile" 2>conftest.err)
44772    ac_status=$?
44773    cat conftest.err >&5
44774    echo "$as_me:44774: \$? = $ac_status" >&5
44775    if (exit $ac_status) && test -s "$ac_outfile"; then
44776      # The compiler can only warn and ignore the option if not recognized
44777      # So say no if there are warnings other than the usual output.
44778      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
44779      $SED '/^$/d' conftest.err >conftest.er2
44780      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
44781        lt_cv_prog_compiler_rtti_exceptions=yes
44782      fi
44783    fi
44784    $rm conftest*
44785
44786 fi
44787 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
44788 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
44789
44790 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
44791     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
44792 else
44793     :
44794 fi
44795
44796 fi
44797
44798 lt_prog_compiler_wl_GCJ=
44799 lt_prog_compiler_pic_GCJ=
44800 lt_prog_compiler_static_GCJ=
44801
44802 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
44803 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
44804
44805   if test "$GCC" = yes; then
44806     lt_prog_compiler_wl_GCJ='-Wl,'
44807     lt_prog_compiler_static_GCJ='-static'
44808
44809     case $host_os in
44810       aix*)
44811       # All AIX code is PIC.
44812       if test "$host_cpu" = ia64; then
44813         # AIX 5 now supports IA64 processor
44814         lt_prog_compiler_static_GCJ='-Bstatic'
44815       fi
44816       ;;
44817
44818     amigaos*)
44819       # FIXME: we need at least 68020 code to build shared libraries, but
44820       # adding the `-m68020' flag to GCC prevents building anything better,
44821       # like `-m68040'.
44822       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
44823       ;;
44824
44825     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
44826       # PIC is the default for these OSes.
44827       ;;
44828
44829     mingw* | pw32* | os2*)
44830       # This hack is so that the source file can tell whether it is being
44831       # built for inclusion in a dll (and should export symbols for example).
44832       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
44833       ;;
44834
44835     darwin* | rhapsody*)
44836       # PIC is the default on this platform
44837       # Common symbols not allowed in MH_DYLIB files
44838       lt_prog_compiler_pic_GCJ='-fno-common'
44839       ;;
44840
44841     msdosdjgpp*)
44842       # Just because we use GCC doesn't mean we suddenly get shared libraries
44843       # on systems that don't support them.
44844       lt_prog_compiler_can_build_shared_GCJ=no
44845       enable_shared=no
44846       ;;
44847
44848     sysv4*MP*)
44849       if test -d /usr/nec; then
44850         lt_prog_compiler_pic_GCJ=-Kconform_pic
44851       fi
44852       ;;
44853
44854     hpux*)
44855       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
44856       # not for PA HP-UX.
44857       case $host_cpu in
44858       hppa*64*|ia64*)
44859         # +Z the default
44860         ;;
44861       *)
44862         lt_prog_compiler_pic_GCJ='-fPIC'
44863         ;;
44864       esac
44865       ;;
44866
44867     *)
44868       lt_prog_compiler_pic_GCJ='-fPIC'
44869       ;;
44870     esac
44871   else
44872     # PORTME Check for flag to pass linker flags through the system compiler.
44873     case $host_os in
44874     aix*)
44875       lt_prog_compiler_wl_GCJ='-Wl,'
44876       if test "$host_cpu" = ia64; then
44877         # AIX 5 now supports IA64 processor
44878         lt_prog_compiler_static_GCJ='-Bstatic'
44879       else
44880         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
44881       fi
44882       ;;
44883       darwin*)
44884         # PIC is the default on this platform
44885         # Common symbols not allowed in MH_DYLIB files
44886        case $cc_basename in
44887          xlc*)
44888          lt_prog_compiler_pic_GCJ='-qnocommon'
44889          lt_prog_compiler_wl_GCJ='-Wl,'
44890          ;;
44891        esac
44892        ;;
44893
44894     mingw* | pw32* | os2*)
44895       # This hack is so that the source file can tell whether it is being
44896       # built for inclusion in a dll (and should export symbols for example).
44897       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
44898       ;;
44899
44900     hpux9* | hpux10* | hpux11*)
44901       lt_prog_compiler_wl_GCJ='-Wl,'
44902       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
44903       # not for PA HP-UX.
44904       case $host_cpu in
44905       hppa*64*|ia64*)
44906         # +Z the default
44907         ;;
44908       *)
44909         lt_prog_compiler_pic_GCJ='+Z'
44910         ;;
44911       esac
44912       # Is there a better lt_prog_compiler_static that works with the bundled CC?
44913       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
44914       ;;
44915
44916     irix5* | irix6* | nonstopux*)
44917       lt_prog_compiler_wl_GCJ='-Wl,'
44918       # PIC (with -KPIC) is the default.
44919       lt_prog_compiler_static_GCJ='-non_shared'
44920       ;;
44921
44922     newsos6)
44923       lt_prog_compiler_pic_GCJ='-KPIC'
44924       lt_prog_compiler_static_GCJ='-Bstatic'
44925       ;;
44926
44927     linux*)
44928       case $cc_basename in
44929       icc* | ecc*)
44930         lt_prog_compiler_wl_GCJ='-Wl,'
44931         lt_prog_compiler_pic_GCJ='-KPIC'
44932         lt_prog_compiler_static_GCJ='-static'
44933         ;;
44934       pgcc* | pgf77* | pgf90* | pgf95*)
44935         # Portland Group compilers (*not* the Pentium gcc compiler,
44936         # which looks to be a dead project)
44937         lt_prog_compiler_wl_GCJ='-Wl,'
44938         lt_prog_compiler_pic_GCJ='-fpic'
44939         lt_prog_compiler_static_GCJ='-Bstatic'
44940         ;;
44941       ccc*)
44942         lt_prog_compiler_wl_GCJ='-Wl,'
44943         # All Alpha code is PIC.
44944         lt_prog_compiler_static_GCJ='-non_shared'
44945         ;;
44946       esac
44947       ;;
44948
44949     osf3* | osf4* | osf5*)
44950       lt_prog_compiler_wl_GCJ='-Wl,'
44951       # All OSF/1 code is PIC.
44952       lt_prog_compiler_static_GCJ='-non_shared'
44953       ;;
44954
44955     sco3.2v5*)
44956       lt_prog_compiler_pic_GCJ='-Kpic'
44957       lt_prog_compiler_static_GCJ='-dn'
44958       ;;
44959
44960     solaris*)
44961       lt_prog_compiler_pic_GCJ='-KPIC'
44962       lt_prog_compiler_static_GCJ='-Bstatic'
44963       case $cc_basename in
44964       f77* | f90* | f95*)
44965         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
44966       *)
44967         lt_prog_compiler_wl_GCJ='-Wl,';;
44968       esac
44969       ;;
44970
44971     sunos4*)
44972       lt_prog_compiler_wl_GCJ='-Qoption ld '
44973       lt_prog_compiler_pic_GCJ='-PIC'
44974       lt_prog_compiler_static_GCJ='-Bstatic'
44975       ;;
44976
44977     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
44978       lt_prog_compiler_wl_GCJ='-Wl,'
44979       lt_prog_compiler_pic_GCJ='-KPIC'
44980       lt_prog_compiler_static_GCJ='-Bstatic'
44981       ;;
44982
44983     sysv4*MP*)
44984       if test -d /usr/nec ;then
44985         lt_prog_compiler_pic_GCJ='-Kconform_pic'
44986         lt_prog_compiler_static_GCJ='-Bstatic'
44987       fi
44988       ;;
44989
44990     unicos*)
44991       lt_prog_compiler_wl_GCJ='-Wl,'
44992       lt_prog_compiler_can_build_shared_GCJ=no
44993       ;;
44994
44995     uts4*)
44996       lt_prog_compiler_pic_GCJ='-pic'
44997       lt_prog_compiler_static_GCJ='-Bstatic'
44998       ;;
44999
45000     *)
45001       lt_prog_compiler_can_build_shared_GCJ=no
45002       ;;
45003     esac
45004   fi
45005
45006 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
45007 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
45008
45009 #
45010 # Check to make sure the PIC flag actually works.
45011 #
45012 if test -n "$lt_prog_compiler_pic_GCJ"; then
45013
45014 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
45015 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
45016 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
45017   echo $ECHO_N "(cached) $ECHO_C" >&6
45018 else
45019   lt_prog_compiler_pic_works_GCJ=no
45020   ac_outfile=conftest.$ac_objext
45021    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
45022    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
45023    # Insert the option either (1) after the last *FLAGS variable, or
45024    # (2) before a word containing "conftest.", or (3) at the end.
45025    # Note that $ac_compile itself does not contain backslashes and begins
45026    # with a dollar sign (not a hyphen), so the echo should work correctly.
45027    # The option is referenced via a variable to avoid confusing sed.
45028    lt_compile=`echo "$ac_compile" | $SED \
45029    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
45030    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
45031    -e 's:$: $lt_compiler_flag:'`
45032    (eval echo "\"\$as_me:45032: $lt_compile\"" >&5)
45033    (eval "$lt_compile" 2>conftest.err)
45034    ac_status=$?
45035    cat conftest.err >&5
45036    echo "$as_me:45036: \$? = $ac_status" >&5
45037    if (exit $ac_status) && test -s "$ac_outfile"; then
45038      # The compiler can only warn and ignore the option if not recognized
45039      # So say no if there are warnings other than the usual output.
45040      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
45041      $SED '/^$/d' conftest.err >conftest.er2
45042      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
45043        lt_prog_compiler_pic_works_GCJ=yes
45044      fi
45045    fi
45046    $rm conftest*
45047
45048 fi
45049 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
45050 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
45051
45052 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
45053     case $lt_prog_compiler_pic_GCJ in
45054      "" | " "*) ;;
45055      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
45056      esac
45057 else
45058     lt_prog_compiler_pic_GCJ=
45059      lt_prog_compiler_can_build_shared_GCJ=no
45060 fi
45061
45062 fi
45063 case $host_os in
45064   # For platforms which do not support PIC, -DPIC is meaningless:
45065   *djgpp*)
45066     lt_prog_compiler_pic_GCJ=
45067     ;;
45068   *)
45069     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
45070     ;;
45071 esac
45072
45073 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
45074 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
45075 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
45076   echo $ECHO_N "(cached) $ECHO_C" >&6
45077 else
45078   lt_cv_prog_compiler_c_o_GCJ=no
45079    $rm -r conftest 2>/dev/null
45080    mkdir conftest
45081    cd conftest
45082    mkdir out
45083    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
45084
45085    lt_compiler_flag="-o out/conftest2.$ac_objext"
45086    # Insert the option either (1) after the last *FLAGS variable, or
45087    # (2) before a word containing "conftest.", or (3) at the end.
45088    # Note that $ac_compile itself does not contain backslashes and begins
45089    # with a dollar sign (not a hyphen), so the echo should work correctly.
45090    lt_compile=`echo "$ac_compile" | $SED \
45091    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
45092    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
45093    -e 's:$: $lt_compiler_flag:'`
45094    (eval echo "\"\$as_me:45094: $lt_compile\"" >&5)
45095    (eval "$lt_compile" 2>out/conftest.err)
45096    ac_status=$?
45097    cat out/conftest.err >&5
45098    echo "$as_me:45098: \$? = $ac_status" >&5
45099    if (exit $ac_status) && test -s out/conftest2.$ac_objext
45100    then
45101      # The compiler can only warn and ignore the option if not recognized
45102      # So say no if there are warnings
45103      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
45104      $SED '/^$/d' out/conftest.err >out/conftest.er2
45105      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
45106        lt_cv_prog_compiler_c_o_GCJ=yes
45107      fi
45108    fi
45109    chmod u+w . 2>&5
45110    $rm conftest*
45111    # SGI C++ compiler will create directory out/ii_files/ for
45112    # template instantiation
45113    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
45114    $rm out/* && rmdir out
45115    cd ..
45116    rmdir conftest
45117    $rm conftest*
45118
45119 fi
45120 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
45121 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
45122
45123
45124 hard_links="nottested"
45125 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
45126   # do not overwrite the value of need_locks provided by the user
45127   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
45128 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
45129   hard_links=yes
45130   $rm conftest*
45131   ln conftest.a conftest.b 2>/dev/null && hard_links=no
45132   touch conftest.a
45133   ln conftest.a conftest.b 2>&5 || hard_links=no
45134   ln conftest.a conftest.b 2>/dev/null && hard_links=no
45135   { echo "$as_me:$LINENO: result: $hard_links" >&5
45136 echo "${ECHO_T}$hard_links" >&6; }
45137   if test "$hard_links" = no; then
45138
45139     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
45140 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
45141
45142
45143     cat <<AAW_EOF >>config.warnings
45144 \`$CC' does not support \`-c -o', so \`make -j' may be unsafe
45145 AAW_EOF
45146
45147
45148     need_locks=warn
45149   fi
45150 else
45151   need_locks=no
45152 fi
45153
45154 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
45155 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
45156
45157   runpath_var=
45158   allow_undefined_flag_GCJ=
45159   enable_shared_with_static_runtimes_GCJ=no
45160   archive_cmds_GCJ=
45161   archive_expsym_cmds_GCJ=
45162   old_archive_From_new_cmds_GCJ=
45163   old_archive_from_expsyms_cmds_GCJ=
45164   export_dynamic_flag_spec_GCJ=
45165   whole_archive_flag_spec_GCJ=
45166   thread_safe_flag_spec_GCJ=
45167   hardcode_libdir_flag_spec_GCJ=
45168   hardcode_libdir_flag_spec_ld_GCJ=
45169   hardcode_libdir_separator_GCJ=
45170   hardcode_direct_GCJ=no
45171   hardcode_minus_L_GCJ=no
45172   hardcode_shlibpath_var_GCJ=unsupported
45173   link_all_deplibs_GCJ=unknown
45174   hardcode_automatic_GCJ=no
45175   module_cmds_GCJ=
45176   module_expsym_cmds_GCJ=
45177   always_export_symbols_GCJ=no
45178   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
45179   # include_expsyms should be a list of space-separated symbols to be *always*
45180   # included in the symbol list
45181   include_expsyms_GCJ=
45182   # exclude_expsyms can be an extended regexp of symbols to exclude
45183   # it will be wrapped by ` (' and `)$', so one must not match beginning or
45184   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
45185   # as well as any symbol that contains `d'.
45186   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
45187   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
45188   # platforms (ab)use it in PIC code, but their linkers get confused if
45189   # the symbol is explicitly referenced.  Since portable code cannot
45190   # rely on this symbol name, it's probably fine to never include it in
45191   # preloaded symbol tables.
45192   extract_expsyms_cmds=
45193   # Just being paranoid about ensuring that cc_basename is set.
45194   for cc_temp in $compiler""; do
45195   case $cc_temp in
45196     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
45197     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
45198     \-*) ;;
45199     *) break;;
45200   esac
45201 done
45202 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
45203
45204   case $host_os in
45205   cygwin* | mingw* | pw32*)
45206     # FIXME: the MSVC++ port hasn't been tested in a loooong time
45207     # When not using gcc, we currently assume that we are using
45208     # Microsoft Visual C++.
45209     if test "$GCC" != yes; then
45210       with_gnu_ld=no
45211     fi
45212     ;;
45213   openbsd*)
45214     with_gnu_ld=no
45215     ;;
45216   esac
45217
45218   ld_shlibs_GCJ=yes
45219   if test "$with_gnu_ld" = yes; then
45220     # If archive_cmds runs LD, not CC, wlarc should be empty
45221     wlarc='${wl}'
45222
45223     # Set some defaults for GNU ld with shared library support. These
45224     # are reset later if shared libraries are not supported. Putting them
45225     # here allows them to be overridden if necessary.
45226     runpath_var=LD_RUN_PATH
45227     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
45228     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
45229     # ancient GNU ld didn't support --whole-archive et. al.
45230     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
45231         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
45232       else
45233         whole_archive_flag_spec_GCJ=
45234     fi
45235     supports_anon_versioning=no
45236     case `$LD -v 2>/dev/null` in
45237       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
45238       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
45239       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
45240       *\ 2.11.*) ;; # other 2.11 versions
45241       *) supports_anon_versioning=yes ;;
45242     esac
45243
45244     # See if GNU ld supports shared libraries.
45245     case $host_os in
45246     aix3* | aix4* | aix5*)
45247       # On AIX/PPC, the GNU linker is very broken
45248       if test "$host_cpu" != ia64; then
45249         ld_shlibs_GCJ=no
45250         cat <<EOF 1>&2
45251
45252 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
45253 *** to be unable to reliably create shared libraries on AIX.
45254 *** Therefore, libtool is disabling shared libraries support.  If you
45255 *** really care for shared libraries, you may want to modify your PATH
45256 *** so that a non-GNU linker is found, and then restart.
45257
45258 EOF
45259       fi
45260       ;;
45261
45262     amigaos*)
45263       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)'
45264       hardcode_libdir_flag_spec_GCJ='-L$libdir'
45265       hardcode_minus_L_GCJ=yes
45266
45267       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
45268       # that the semantics of dynamic libraries on AmigaOS, at least up
45269       # to version 4, is to share data among multiple programs linked
45270       # with the same dynamic library.  Since this doesn't match the
45271       # behavior of shared libraries on other platforms, we can't use
45272       # them.
45273       ld_shlibs_GCJ=no
45274       ;;
45275
45276     beos*)
45277       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
45278         allow_undefined_flag_GCJ=unsupported
45279         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
45280         # support --undefined.  This deserves some investigation.  FIXME
45281         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
45282       else
45283         ld_shlibs_GCJ=no
45284       fi
45285       ;;
45286
45287     cygwin* | mingw* | pw32*)
45288       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
45289       # as there is no search path for DLLs.
45290       hardcode_libdir_flag_spec_GCJ='-L$libdir'
45291       allow_undefined_flag_GCJ=unsupported
45292       always_export_symbols_GCJ=no
45293       enable_shared_with_static_runtimes_GCJ=yes
45294       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
45295
45296       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
45297         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
45298         # If the export-symbols file already is a .def file (1st line
45299         # is EXPORTS), use it as is; otherwise, prepend...
45300         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
45301           cp $export_symbols $output_objdir/$soname.def;
45302         else
45303           echo EXPORTS > $output_objdir/$soname.def;
45304           cat $export_symbols >> $output_objdir/$soname.def;
45305         fi~
45306         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
45307       else
45308         ld_shlibs_GCJ=no
45309       fi
45310       ;;
45311
45312     linux*)
45313       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
45314         tmp_addflag=
45315         case $cc_basename,$host_cpu in
45316         pgcc*)                          # Portland Group C compiler
45317           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'
45318           tmp_addflag=' $pic_flag'
45319           ;;
45320         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
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 -Mnomain' ;;
45323         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
45324           tmp_addflag=' -i_dynamic' ;;
45325         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
45326           tmp_addflag=' -i_dynamic -nofor_main' ;;
45327         ifc* | ifort*)                  # Intel Fortran compiler
45328           tmp_addflag=' -nofor_main' ;;
45329         esac
45330         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
45331
45332         if test $supports_anon_versioning = yes; then
45333           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
45334   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
45335   $echo "local: *; };" >> $output_objdir/$libname.ver~
45336           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
45337         fi
45338       else
45339         ld_shlibs_GCJ=no
45340       fi
45341       ;;
45342
45343     netbsd*)
45344       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
45345         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
45346         wlarc=
45347       else
45348         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
45349         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
45350       fi
45351       ;;
45352
45353     solaris* | sysv5*)
45354       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
45355         ld_shlibs_GCJ=no
45356         cat <<EOF 1>&2
45357
45358 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
45359 *** create shared libraries on Solaris systems.  Therefore, libtool
45360 *** is disabling shared libraries support.  We urge you to upgrade GNU
45361 *** binutils to release 2.9.1 or newer.  Another option is to modify
45362 *** your PATH or compiler configuration so that the native linker is
45363 *** used, and then restart.
45364
45365 EOF
45366       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
45367         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
45368         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
45369       else
45370         ld_shlibs_GCJ=no
45371       fi
45372       ;;
45373
45374     sunos4*)
45375       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
45376       wlarc=
45377       hardcode_direct_GCJ=yes
45378       hardcode_shlibpath_var_GCJ=no
45379       ;;
45380
45381     *)
45382       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
45383         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
45384         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
45385       else
45386         ld_shlibs_GCJ=no
45387       fi
45388       ;;
45389     esac
45390
45391     if test "$ld_shlibs_GCJ" = no; then
45392       runpath_var=
45393       hardcode_libdir_flag_spec_GCJ=
45394       export_dynamic_flag_spec_GCJ=
45395       whole_archive_flag_spec_GCJ=
45396     fi
45397   else
45398     # PORTME fill in a description of your system's linker (not GNU ld)
45399     case $host_os in
45400     aix3*)
45401       allow_undefined_flag_GCJ=unsupported
45402       always_export_symbols_GCJ=yes
45403       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'
45404       # Note: this linker hardcodes the directories in LIBPATH if there
45405       # are no directories specified by -L.
45406       hardcode_minus_L_GCJ=yes
45407       if test "$GCC" = yes && test -z "$link_static_flag"; then
45408         # Neither direct hardcoding nor static linking is supported with a
45409         # broken collect2.
45410         hardcode_direct_GCJ=unsupported
45411       fi
45412       ;;
45413
45414     aix4* | aix5*)
45415       if test "$host_cpu" = ia64; then
45416         # On IA64, the linker does run time linking by default, so we don't
45417         # have to do anything special.
45418         aix_use_runtimelinking=no
45419         exp_sym_flag='-Bexport'
45420         no_entry_flag=""
45421       else
45422         # If we're using GNU nm, then we don't want the "-C" option.
45423         # -C means demangle to AIX nm, but means don't demangle with GNU nm
45424         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
45425           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'
45426         else
45427           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'
45428         fi
45429         aix_use_runtimelinking=no
45430
45431         # Test if we are trying to use run time linking or normal
45432         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
45433         # need to do runtime linking.
45434         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
45435           for ld_flag in $LDFLAGS; do
45436           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
45437             aix_use_runtimelinking=yes
45438             break
45439           fi
45440           done
45441         esac
45442
45443         exp_sym_flag='-bexport'
45444         no_entry_flag='-bnoentry'
45445       fi
45446
45447       # When large executables or shared objects are built, AIX ld can
45448       # have problems creating the table of contents.  If linking a library
45449       # or program results in "error TOC overflow" add -mminimal-toc to
45450       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
45451       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
45452
45453       archive_cmds_GCJ=''
45454       hardcode_direct_GCJ=yes
45455       hardcode_libdir_separator_GCJ=':'
45456       link_all_deplibs_GCJ=yes
45457
45458       if test "$GCC" = yes; then
45459         case $host_os in aix4.[012]|aix4.[012].*)
45460         # We only want to do this on AIX 4.2 and lower, the check
45461         # below for broken collect2 doesn't work under 4.3+
45462           collect2name=`${CC} -print-prog-name=collect2`
45463           if test -f "$collect2name" && \
45464            strings "$collect2name" | grep resolve_lib_name >/dev/null
45465           then
45466           # We have reworked collect2
45467           hardcode_direct_GCJ=yes
45468           else
45469           # We have old collect2
45470           hardcode_direct_GCJ=unsupported
45471           # It fails to find uninstalled libraries when the uninstalled
45472           # path is not listed in the libpath.  Setting hardcode_minus_L
45473           # to unsupported forces relinking
45474           hardcode_minus_L_GCJ=yes
45475           hardcode_libdir_flag_spec_GCJ='-L$libdir'
45476           hardcode_libdir_separator_GCJ=
45477           fi
45478         esac
45479         shared_flag='-shared'
45480         if test "$aix_use_runtimelinking" = yes; then
45481           shared_flag="$shared_flag "'${wl}-G'
45482         fi
45483       else
45484         # not using gcc
45485         if test "$host_cpu" = ia64; then
45486         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
45487         # chokes on -Wl,-G. The following line is correct:
45488           shared_flag='-G'
45489         else
45490         if test "$aix_use_runtimelinking" = yes; then
45491             shared_flag='${wl}-G'
45492           else
45493             shared_flag='${wl}-bM:SRE'
45494         fi
45495         fi
45496       fi
45497
45498       # It seems that -bexpall does not export symbols beginning with
45499       # underscore (_), so it is better to generate a list of symbols to export.
45500       always_export_symbols_GCJ=yes
45501       if test "$aix_use_runtimelinking" = yes; then
45502         # Warning - without using the other runtime loading flags (-brtl),
45503         # -berok will link without error, but may produce a broken library.
45504         allow_undefined_flag_GCJ='-berok'
45505        # Determine the default libpath from the value encoded in an empty executable.
45506        cat >conftest.$ac_ext <<_ACEOF
45507 /* confdefs.h.  */
45508 _ACEOF
45509 cat confdefs.h >>conftest.$ac_ext
45510 cat >>conftest.$ac_ext <<_ACEOF
45511 /* end confdefs.h.  */
45512
45513 int
45514 main ()
45515 {
45516
45517   ;
45518   return 0;
45519 }
45520 _ACEOF
45521 rm -f conftest.$ac_objext conftest$ac_exeext
45522 if { (ac_try="$ac_link"
45523 case "(($ac_try" in
45524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45525   *) ac_try_echo=$ac_try;;
45526 esac
45527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45528   (eval "$ac_link") 2>conftest.er1
45529   ac_status=$?
45530   grep -v '^ *+' conftest.er1 >conftest.err
45531   rm -f conftest.er1
45532   cat conftest.err >&5
45533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45534   (exit $ac_status); } && {
45535          test -z "$ac_c_werror_flag" ||
45536          test ! -s conftest.err
45537        } && test -s conftest$ac_exeext &&
45538        $as_test_x conftest$ac_exeext; then
45539
45540 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
45541 }'`
45542 # Check for a 64-bit object if we didn't find anything.
45543 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; }
45544 }'`; fi
45545 else
45546   echo "$as_me: failed program was:" >&5
45547 sed 's/^/| /' conftest.$ac_ext >&5
45548
45549
45550 fi
45551
45552 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45553       conftest$ac_exeext conftest.$ac_ext
45554 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
45555
45556        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
45557         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"
45558        else
45559         if test "$host_cpu" = ia64; then
45560           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
45561           allow_undefined_flag_GCJ="-z nodefs"
45562           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"
45563         else
45564          # Determine the default libpath from the value encoded in an empty executable.
45565          cat >conftest.$ac_ext <<_ACEOF
45566 /* confdefs.h.  */
45567 _ACEOF
45568 cat confdefs.h >>conftest.$ac_ext
45569 cat >>conftest.$ac_ext <<_ACEOF
45570 /* end confdefs.h.  */
45571
45572 int
45573 main ()
45574 {
45575
45576   ;
45577   return 0;
45578 }
45579 _ACEOF
45580 rm -f conftest.$ac_objext conftest$ac_exeext
45581 if { (ac_try="$ac_link"
45582 case "(($ac_try" in
45583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45584   *) ac_try_echo=$ac_try;;
45585 esac
45586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45587   (eval "$ac_link") 2>conftest.er1
45588   ac_status=$?
45589   grep -v '^ *+' conftest.er1 >conftest.err
45590   rm -f conftest.er1
45591   cat conftest.err >&5
45592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45593   (exit $ac_status); } && {
45594          test -z "$ac_c_werror_flag" ||
45595          test ! -s conftest.err
45596        } && test -s conftest$ac_exeext &&
45597        $as_test_x conftest$ac_exeext; then
45598
45599 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
45600 }'`
45601 # Check for a 64-bit object if we didn't find anything.
45602 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; }
45603 }'`; fi
45604 else
45605   echo "$as_me: failed program was:" >&5
45606 sed 's/^/| /' conftest.$ac_ext >&5
45607
45608
45609 fi
45610
45611 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45612       conftest$ac_exeext conftest.$ac_ext
45613 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
45614
45615          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
45616           # Warning - without using the other run time loading flags,
45617           # -berok will link without error, but may produce a broken library.
45618           no_undefined_flag_GCJ=' ${wl}-bernotok'
45619           allow_undefined_flag_GCJ=' ${wl}-berok'
45620           # -bexpall does not export symbols beginning with underscore (_)
45621           always_export_symbols_GCJ=yes
45622           # Exported symbols can be pulled into shared objects from archives
45623           whole_archive_flag_spec_GCJ=' '
45624           archive_cmds_need_lc_GCJ=yes
45625           # This is similar to how AIX traditionally builds its shared libraries.
45626           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'
45627         fi
45628       fi
45629       ;;
45630
45631     amigaos*)
45632       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)'
45633       hardcode_libdir_flag_spec_GCJ='-L$libdir'
45634       hardcode_minus_L_GCJ=yes
45635       # see comment about different semantics on the GNU ld section
45636       ld_shlibs_GCJ=no
45637       ;;
45638
45639     bsdi[45]*)
45640       export_dynamic_flag_spec_GCJ=-rdynamic
45641       ;;
45642
45643     cygwin* | mingw* | pw32*)
45644       # When not using gcc, we currently assume that we are using
45645       # Microsoft Visual C++.
45646       # hardcode_libdir_flag_spec is actually meaningless, as there is
45647       # no search path for DLLs.
45648       hardcode_libdir_flag_spec_GCJ=' '
45649       allow_undefined_flag_GCJ=unsupported
45650       # Tell ltmain to make .lib files, not .a files.
45651       libext=lib
45652       # Tell ltmain to make .dll files, not .so files.
45653       shrext_cmds=".dll"
45654       # FIXME: Setting linknames here is a bad hack.
45655       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
45656       # The linker will automatically build a .lib file if we build a DLL.
45657       old_archive_From_new_cmds_GCJ='true'
45658       # FIXME: Should let the user specify the lib program.
45659       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
45660       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
45661       enable_shared_with_static_runtimes_GCJ=yes
45662       ;;
45663
45664     darwin* | rhapsody*)
45665       case $host_os in
45666         rhapsody* | darwin1.[012])
45667          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
45668          ;;
45669        *) # Darwin 1.3 on
45670          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
45671            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
45672          else
45673            case ${MACOSX_DEPLOYMENT_TARGET} in
45674              10.[012])
45675                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
45676                ;;
45677              10.*)
45678                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
45679                ;;
45680            esac
45681          fi
45682          ;;
45683       esac
45684       archive_cmds_need_lc_GCJ=no
45685       hardcode_direct_GCJ=no
45686       hardcode_automatic_GCJ=yes
45687       hardcode_shlibpath_var_GCJ=unsupported
45688       whole_archive_flag_spec_GCJ=''
45689       link_all_deplibs_GCJ=yes
45690     if test "$GCC" = yes ; then
45691         output_verbose_link_cmd='echo'
45692         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
45693       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
45694       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
45695       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}'
45696       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}'
45697     else
45698       case $cc_basename in
45699         xlc*)
45700          output_verbose_link_cmd='echo'
45701          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
45702          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
45703           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
45704          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}'
45705           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}'
45706           ;;
45707        *)
45708          ld_shlibs_GCJ=no
45709           ;;
45710       esac
45711     fi
45712       ;;
45713
45714     dgux*)
45715       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
45716       hardcode_libdir_flag_spec_GCJ='-L$libdir'
45717       hardcode_shlibpath_var_GCJ=no
45718       ;;
45719
45720     freebsd1*)
45721       ld_shlibs_GCJ=no
45722       ;;
45723
45724     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
45725     # support.  Future versions do this automatically, but an explicit c++rt0.o
45726     # does not break anything, and helps significantly (at the cost of a little
45727     # extra space).
45728     freebsd2.2*)
45729       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
45730       hardcode_libdir_flag_spec_GCJ='-R$libdir'
45731       hardcode_direct_GCJ=yes
45732       hardcode_shlibpath_var_GCJ=no
45733       ;;
45734
45735     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
45736     freebsd2*)
45737       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
45738       hardcode_direct_GCJ=yes
45739       hardcode_minus_L_GCJ=yes
45740       hardcode_shlibpath_var_GCJ=no
45741       ;;
45742
45743     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
45744     freebsd* | kfreebsd*-gnu | dragonfly*)
45745       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
45746       hardcode_libdir_flag_spec_GCJ='-R$libdir'
45747       hardcode_direct_GCJ=yes
45748       hardcode_shlibpath_var_GCJ=no
45749       ;;
45750
45751     hpux9*)
45752       if test "$GCC" = yes; then
45753         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'
45754       else
45755         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'
45756       fi
45757       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
45758       hardcode_libdir_separator_GCJ=:
45759       hardcode_direct_GCJ=yes
45760
45761       # hardcode_minus_L: Not really in the search PATH,
45762       # but as the default location of the library.
45763       hardcode_minus_L_GCJ=yes
45764       export_dynamic_flag_spec_GCJ='${wl}-E'
45765       ;;
45766
45767     hpux10* | hpux11*)
45768       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
45769         case $host_cpu in
45770         hppa*64*|ia64*)
45771           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
45772           ;;
45773         *)
45774           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
45775           ;;
45776         esac
45777       else
45778         case $host_cpu in
45779         hppa*64*|ia64*)
45780           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
45781           ;;
45782         *)
45783           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
45784           ;;
45785         esac
45786       fi
45787       if test "$with_gnu_ld" = no; then
45788         case $host_cpu in
45789         hppa*64*)
45790           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
45791           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
45792           hardcode_libdir_separator_GCJ=:
45793           hardcode_direct_GCJ=no
45794           hardcode_shlibpath_var_GCJ=no
45795           ;;
45796         ia64*)
45797           hardcode_libdir_flag_spec_GCJ='-L$libdir'
45798           hardcode_direct_GCJ=no
45799           hardcode_shlibpath_var_GCJ=no
45800
45801           # hardcode_minus_L: Not really in the search PATH,
45802           # but as the default location of the library.
45803           hardcode_minus_L_GCJ=yes
45804           ;;
45805         *)
45806           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
45807           hardcode_libdir_separator_GCJ=:
45808           hardcode_direct_GCJ=yes
45809           export_dynamic_flag_spec_GCJ='${wl}-E'
45810
45811           # hardcode_minus_L: Not really in the search PATH,
45812           # but as the default location of the library.
45813           hardcode_minus_L_GCJ=yes
45814           ;;
45815         esac
45816       fi
45817       ;;
45818
45819     irix5* | irix6* | nonstopux*)
45820       if test "$GCC" = yes; then
45821         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'
45822       else
45823         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'
45824         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
45825       fi
45826       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
45827       hardcode_libdir_separator_GCJ=:
45828       link_all_deplibs_GCJ=yes
45829       ;;
45830
45831     netbsd*)
45832       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
45833         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
45834       else
45835         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
45836       fi
45837       hardcode_libdir_flag_spec_GCJ='-R$libdir'
45838       hardcode_direct_GCJ=yes
45839       hardcode_shlibpath_var_GCJ=no
45840       ;;
45841
45842     newsos6)
45843       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
45844       hardcode_direct_GCJ=yes
45845       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
45846       hardcode_libdir_separator_GCJ=:
45847       hardcode_shlibpath_var_GCJ=no
45848       ;;
45849
45850     openbsd*)
45851       hardcode_direct_GCJ=yes
45852       hardcode_shlibpath_var_GCJ=no
45853       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
45854         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
45855         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
45856         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
45857         export_dynamic_flag_spec_GCJ='${wl}-E'
45858       else
45859        case $host_os in
45860          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
45861            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
45862            hardcode_libdir_flag_spec_GCJ='-R$libdir'
45863            ;;
45864          *)
45865            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
45866            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
45867            ;;
45868        esac
45869       fi
45870       ;;
45871
45872     os2*)
45873       hardcode_libdir_flag_spec_GCJ='-L$libdir'
45874       hardcode_minus_L_GCJ=yes
45875       allow_undefined_flag_GCJ=unsupported
45876       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'
45877       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
45878       ;;
45879
45880     osf3*)
45881       if test "$GCC" = yes; then
45882         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
45883         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'
45884       else
45885         allow_undefined_flag_GCJ=' -expect_unresolved \*'
45886         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'
45887       fi
45888       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
45889       hardcode_libdir_separator_GCJ=:
45890       ;;
45891
45892     osf4* | osf5*)      # as osf3* with the addition of -msym flag
45893       if test "$GCC" = yes; then
45894         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
45895         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'
45896         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
45897       else
45898         allow_undefined_flag_GCJ=' -expect_unresolved \*'
45899         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'
45900         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~
45901         $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'
45902
45903         # Both c and cxx compiler support -rpath directly
45904         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
45905       fi
45906       hardcode_libdir_separator_GCJ=:
45907       ;;
45908
45909     sco3.2v5*)
45910       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
45911       hardcode_shlibpath_var_GCJ=no
45912       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
45913       runpath_var=LD_RUN_PATH
45914       hardcode_runpath_var=yes
45915       ;;
45916
45917     solaris*)
45918       no_undefined_flag_GCJ=' -z text'
45919       if test "x$archive_cmds" = "x"; then
45920         if test "$GCC" = yes; then
45921           wlarc='${wl}'
45922           if $CC -v --help 2>/dev/null | grep -- -shared  > /dev/null 2> /dev/null; then
45923             archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
45924             archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
45925             $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
45926           else
45927             archive_cmds_GCJ='$CC ${wl}-G ${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 ${wl}-G ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
45930           fi
45931         else
45932           wlarc=''
45933           lt_prog_compiler_static_GCJ='-static'
45934           archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
45935           archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
45936           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
45937           lt_prog_compiler_static_GCJ='-static'
45938         fi
45939       fi
45940       hardcode_libdir_flag_spec_GCJ='-R$libdir'
45941       hardcode_shlibpath_var_GCJ=no
45942       case $host_os in
45943       solaris2.[0-5] | solaris2.[0-5].*) ;;
45944       *)
45945         # The compiler driver will combine linker options so we
45946         # cannot just pass the convience library names through
45947         # without $wl, iff we do not link with $LD.
45948         # Luckily, gcc supports the same syntax we need for Sun Studio.
45949         # Supported since Solaris 2.6 (maybe 2.5.1?)
45950         case $wlarc in
45951         '')
45952           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
45953         *)
45954           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' ;;
45955         esac ;;
45956       esac
45957       link_all_deplibs_GCJ=yes
45958       ;;
45959
45960     sunos4*)
45961       if test "x$host_vendor" = xsequent; then
45962         # Use $CC to link under sequent, because it throws in some extra .o
45963         # files that make .init and .fini sections work.
45964         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
45965       else
45966         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
45967       fi
45968       hardcode_libdir_flag_spec_GCJ='-L$libdir'
45969       hardcode_direct_GCJ=yes
45970       hardcode_minus_L_GCJ=yes
45971       hardcode_shlibpath_var_GCJ=no
45972       ;;
45973
45974     sysv4)
45975       case $host_vendor in
45976         sni)
45977           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
45978           hardcode_direct_GCJ=yes # is this really true???
45979         ;;
45980         siemens)
45981           ## LD is ld it makes a PLAMLIB
45982           ## CC just makes a GrossModule.
45983           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
45984           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
45985           hardcode_direct_GCJ=no
45986         ;;
45987         motorola)
45988           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
45989           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
45990         ;;
45991       esac
45992       runpath_var='LD_RUN_PATH'
45993       hardcode_shlibpath_var_GCJ=no
45994       ;;
45995
45996     sysv4.3*)
45997       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
45998       hardcode_shlibpath_var_GCJ=no
45999       export_dynamic_flag_spec_GCJ='-Bexport'
46000       ;;
46001
46002     sysv4*MP*)
46003       if test -d /usr/nec; then
46004         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
46005         hardcode_shlibpath_var_GCJ=no
46006         runpath_var=LD_RUN_PATH
46007         hardcode_runpath_var=yes
46008         ld_shlibs_GCJ=yes
46009       fi
46010       ;;
46011
46012     sysv4.2uw2*)
46013       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
46014       hardcode_direct_GCJ=yes
46015       hardcode_minus_L_GCJ=no
46016       hardcode_shlibpath_var_GCJ=no
46017       hardcode_runpath_var=yes
46018       runpath_var=LD_RUN_PATH
46019       ;;
46020
46021    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
46022       no_undefined_flag_GCJ='${wl}-z ${wl}text'
46023       if test "$GCC" = yes; then
46024         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
46025       else
46026         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
46027       fi
46028       runpath_var='LD_RUN_PATH'
46029       hardcode_shlibpath_var_GCJ=no
46030       ;;
46031
46032     sysv5*)
46033       no_undefined_flag_GCJ=' -z text'
46034       # $CC -shared without GNU ld will not create a library from C++
46035       # object files and a static libstdc++, better avoid it by now
46036       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
46037       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
46038                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
46039       hardcode_libdir_flag_spec_GCJ=
46040       hardcode_shlibpath_var_GCJ=no
46041       runpath_var='LD_RUN_PATH'
46042       ;;
46043
46044     uts4*)
46045       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
46046       hardcode_libdir_flag_spec_GCJ='-L$libdir'
46047       hardcode_shlibpath_var_GCJ=no
46048       ;;
46049
46050     *)
46051       ld_shlibs_GCJ=no
46052       ;;
46053     esac
46054   fi
46055
46056 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
46057 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
46058 test "$ld_shlibs_GCJ" = no && can_build_shared=no
46059
46060 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
46061 if test "$GCC" = yes; then
46062   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
46063 fi
46064
46065 #
46066 # Do we need to explicitly link libc?
46067 #
46068 case "x$archive_cmds_need_lc_GCJ" in
46069 x|xyes)
46070   # Assume -lc should be added
46071   archive_cmds_need_lc_GCJ=yes
46072
46073   if test "$enable_shared" = yes && test "$GCC" = yes; then
46074     case $archive_cmds_GCJ in
46075     *'~'*)
46076       # FIXME: we may have to deal with multi-command sequences.
46077       ;;
46078     '$CC '*)
46079       # Test whether the compiler implicitly links with -lc since on some
46080       # systems, -lgcc has to come before -lc. If gcc already passes -lc
46081       # to ld, don't add -lc before -lgcc.
46082       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
46083 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
46084       $rm conftest*
46085       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
46086
46087       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46088   (eval $ac_compile) 2>&5
46089   ac_status=$?
46090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46091   (exit $ac_status); } 2>conftest.err; then
46092         soname=conftest
46093         lib=conftest
46094         libobjs=conftest.$ac_objext
46095         deplibs=
46096         wl=$lt_prog_compiler_wl_GCJ
46097         compiler_flags=-v
46098         linker_flags=-v
46099         verstring=
46100         output_objdir=.
46101         libname=conftest
46102         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
46103         allow_undefined_flag_GCJ=
46104         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
46105   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
46106   ac_status=$?
46107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46108   (exit $ac_status); }
46109         then
46110           archive_cmds_need_lc_GCJ=no
46111         else
46112           archive_cmds_need_lc_GCJ=yes
46113         fi
46114         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
46115       else
46116         cat conftest.err 1>&5
46117       fi
46118       $rm conftest*
46119       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
46120 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
46121       ;;
46122     esac
46123   fi
46124   ;;
46125 esac
46126
46127 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
46128 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
46129 library_names_spec=
46130 libname_spec='lib$name'
46131 soname_spec=
46132 shrext_cmds=".so"
46133 postinstall_cmds=
46134 postuninstall_cmds=
46135 finish_cmds=
46136 finish_eval=
46137 shlibpath_var=
46138 shlibpath_overrides_runpath=unknown
46139 version_type=none
46140 dynamic_linker="$host_os ld.so"
46141 sys_lib_dlsearch_path_spec="/lib /usr/lib"
46142 if test "$GCC" = yes; then
46143   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
46144   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
46145     # if the path contains ";" then we assume it to be the separator
46146     # otherwise default to the standard path separator (i.e. ":") - it is
46147     # assumed that no part of a normal pathname contains ";" but that should
46148     # okay in the real world where ";" in dirpaths is itself problematic.
46149     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
46150   else
46151     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
46152   fi
46153 else
46154   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
46155 fi
46156 need_lib_prefix=unknown
46157 hardcode_into_libs=no
46158
46159 # when you set need_version to no, make sure it does not cause -set_version
46160 # flags to be left without arguments
46161 need_version=unknown
46162
46163 case $host_os in
46164 aix3*)
46165   version_type=linux
46166   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
46167   shlibpath_var=LIBPATH
46168
46169   # AIX 3 has no versioning support, so we append a major version to the name.
46170   soname_spec='${libname}${release}${shared_ext}$major'
46171   ;;
46172
46173 aix4* | aix5*)
46174   version_type=linux
46175   need_lib_prefix=no
46176   need_version=no
46177   hardcode_into_libs=yes
46178   if test "$host_cpu" = ia64; then
46179     # AIX 5 supports IA64
46180     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
46181     shlibpath_var=LD_LIBRARY_PATH
46182   else
46183     # With GCC up to 2.95.x, collect2 would create an import file
46184     # for dependence libraries.  The import file would start with
46185     # the line `#! .'.  This would cause the generated library to
46186     # depend on `.', always an invalid library.  This was fixed in
46187     # development snapshots of GCC prior to 3.0.
46188     case $host_os in
46189       aix4 | aix4.[01] | aix4.[01].*)
46190       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
46191            echo ' yes '
46192            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
46193         :
46194       else
46195         can_build_shared=no
46196       fi
46197       ;;
46198     esac
46199     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
46200     # soname into executable. Probably we can add versioning support to
46201     # collect2, so additional links can be useful in future.
46202     if test "$aix_use_runtimelinking" = yes; then
46203       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
46204       # instead of lib<name>.a to let people know that these are not
46205       # typical AIX shared libraries.
46206       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
46207     else
46208       # We preserve .a as extension for shared libraries through AIX4.2
46209       # and later when we are not doing run time linking.
46210       library_names_spec='${libname}${release}.a $libname.a'
46211       soname_spec='${libname}${release}${shared_ext}$major'
46212     fi
46213     shlibpath_var=LIBPATH
46214   fi
46215   ;;
46216
46217 amigaos*)
46218   library_names_spec='$libname.ixlibrary $libname.a'
46219   # Create ${libname}_ixlibrary.a entries in /sys/libs.
46220   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'
46221   ;;
46222
46223 beos*)
46224   library_names_spec='${libname}${shared_ext}'
46225   dynamic_linker="$host_os ld.so"
46226   shlibpath_var=LIBRARY_PATH
46227   ;;
46228
46229 bsdi[45]*)
46230   version_type=linux
46231   need_version=no
46232   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
46233   soname_spec='${libname}${release}${shared_ext}$major'
46234   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
46235   shlibpath_var=LD_LIBRARY_PATH
46236   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
46237   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
46238   # the default ld.so.conf also contains /usr/contrib/lib and
46239   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
46240   # libtool to hard-code these into programs
46241   ;;
46242
46243 cygwin* | mingw* | pw32*)
46244   version_type=windows
46245   shrext_cmds=".dll"
46246   need_version=no
46247   need_lib_prefix=no
46248
46249   case $GCC,$host_os in
46250   yes,cygwin* | yes,mingw* | yes,pw32*)
46251     library_names_spec='$libname.dll.a'
46252     # DLL is installed to $(libdir)/../bin by postinstall_cmds
46253     postinstall_cmds='base_file=`basename \${file}`~
46254       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
46255       dldir=$destdir/`dirname \$dlpath`~
46256       test -d \$dldir || mkdir -p \$dldir~
46257       $install_prog $dir/$dlname \$dldir/$dlname~
46258       chmod a+x \$dldir/$dlname'
46259     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
46260       dlpath=$dir/\$dldll~
46261        $rm \$dlpath'
46262     shlibpath_overrides_runpath=yes
46263
46264     case $host_os in
46265     cygwin*)
46266       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
46267       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
46268       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
46269       ;;
46270     mingw*)
46271       # MinGW DLLs use traditional 'lib' prefix
46272       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
46273       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
46274       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
46275         # It is most probably a Windows format PATH printed by
46276         # mingw gcc, but we are running on Cygwin. Gcc prints its search
46277         # path with ; separators, and with drive letters. We can handle the
46278         # drive letters (cygwin fileutils understands them), so leave them,
46279         # especially as we might pass files found there to a mingw objdump,
46280         # which wouldn't understand a cygwinified path. Ahh.
46281         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
46282       else
46283         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
46284       fi
46285       ;;
46286     pw32*)
46287       # pw32 DLLs use 'pw' prefix rather than 'lib'
46288       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
46289       ;;
46290     esac
46291     ;;
46292
46293   *)
46294     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
46295     ;;
46296   esac
46297   dynamic_linker='Win32 ld.exe'
46298   # FIXME: first we should search . and the directory the executable is in
46299   shlibpath_var=PATH
46300   ;;
46301
46302 darwin* | rhapsody*)
46303   dynamic_linker="$host_os dyld"
46304   version_type=darwin
46305   need_lib_prefix=no
46306   need_version=no
46307   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
46308   soname_spec='${libname}${release}${major}$shared_ext'
46309   shlibpath_overrides_runpath=yes
46310   shlibpath_var=DYLD_LIBRARY_PATH
46311   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
46312   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
46313   if test "$GCC" = yes; then
46314     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"`
46315   else
46316     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
46317   fi
46318   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
46319   ;;
46320
46321 dgux*)
46322   version_type=linux
46323   need_lib_prefix=no
46324   need_version=no
46325   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
46326   soname_spec='${libname}${release}${shared_ext}$major'
46327   shlibpath_var=LD_LIBRARY_PATH
46328   ;;
46329
46330 freebsd1*)
46331   dynamic_linker=no
46332   ;;
46333
46334 kfreebsd*-gnu)
46335   version_type=linux
46336   need_lib_prefix=no
46337   need_version=no
46338   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
46339   soname_spec='${libname}${release}${shared_ext}$major'
46340   shlibpath_var=LD_LIBRARY_PATH
46341   shlibpath_overrides_runpath=no
46342   hardcode_into_libs=yes
46343   dynamic_linker='GNU ld.so'
46344   ;;
46345
46346 freebsd* | dragonfly*)
46347   # DragonFly does not have aout.  When/if they implement a new
46348   # versioning mechanism, adjust this.
46349   if test -x /usr/bin/objformat; then
46350     objformat=`/usr/bin/objformat`
46351   else
46352     case $host_os in
46353     freebsd[123]*) objformat=aout ;;
46354     *) objformat=elf ;;
46355     esac
46356   fi
46357   version_type=freebsd-$objformat
46358   case $version_type in
46359     freebsd-elf*)
46360       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
46361       need_version=no
46362       need_lib_prefix=no
46363       ;;
46364     freebsd-*)
46365       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
46366       need_version=yes
46367       ;;
46368   esac
46369   shlibpath_var=LD_LIBRARY_PATH
46370   case $host_os in
46371   freebsd2*)
46372     shlibpath_overrides_runpath=yes
46373     ;;
46374   freebsd3.[01]* | freebsdelf3.[01]*)
46375     shlibpath_overrides_runpath=yes
46376     hardcode_into_libs=yes
46377     ;;
46378   *) # from 3.2 on
46379     shlibpath_overrides_runpath=no
46380     hardcode_into_libs=yes
46381     ;;
46382   esac
46383   ;;
46384
46385 gnu*)
46386   version_type=linux
46387   need_lib_prefix=no
46388   need_version=no
46389   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
46390   soname_spec='${libname}${release}${shared_ext}$major'
46391   shlibpath_var=LD_LIBRARY_PATH
46392   hardcode_into_libs=yes
46393   ;;
46394
46395 hpux9* | hpux10* | hpux11*)
46396   # Give a soname corresponding to the major version so that dld.sl refuses to
46397   # link against other versions.
46398   version_type=sunos
46399   need_lib_prefix=no
46400   need_version=no
46401   case $host_cpu in
46402   ia64*)
46403     shrext_cmds='.so'
46404     hardcode_into_libs=yes
46405     dynamic_linker="$host_os dld.so"
46406     shlibpath_var=LD_LIBRARY_PATH
46407     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
46408     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
46409     soname_spec='${libname}${release}${shared_ext}$major'
46410     if test "X$HPUX_IA64_MODE" = X32; then
46411       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
46412     else
46413       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
46414     fi
46415     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
46416     ;;
46417    hppa*64*)
46418      shrext_cmds='.sl'
46419      hardcode_into_libs=yes
46420      dynamic_linker="$host_os dld.sl"
46421      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
46422      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
46423      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
46424      soname_spec='${libname}${release}${shared_ext}$major'
46425      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
46426      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
46427      ;;
46428    *)
46429     shrext_cmds='.sl'
46430     dynamic_linker="$host_os dld.sl"
46431     shlibpath_var=SHLIB_PATH
46432     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
46433     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
46434     soname_spec='${libname}${release}${shared_ext}$major'
46435     ;;
46436   esac
46437   # HP-UX runs *really* slowly unless shared libraries are mode 555.
46438   postinstall_cmds='chmod 555 $lib'
46439   ;;
46440
46441 irix5* | irix6* | nonstopux*)
46442   case $host_os in
46443     nonstopux*) version_type=nonstopux ;;
46444     *)
46445         if test "$lt_cv_prog_gnu_ld" = yes; then
46446                 version_type=linux
46447         else
46448                 version_type=irix
46449         fi ;;
46450   esac
46451   need_lib_prefix=no
46452   need_version=no
46453   soname_spec='${libname}${release}${shared_ext}$major'
46454   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
46455   case $host_os in
46456   irix5* | nonstopux*)
46457     libsuff= shlibsuff=
46458     ;;
46459   *)
46460     case $LD in # libtool.m4 will add one of these switches to LD
46461     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
46462       libsuff= shlibsuff= libmagic=32-bit;;
46463     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
46464       libsuff=32 shlibsuff=N32 libmagic=N32;;
46465     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
46466       libsuff=64 shlibsuff=64 libmagic=64-bit;;
46467     *) libsuff= shlibsuff= libmagic=never-match;;
46468     esac
46469     ;;
46470   esac
46471   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
46472   shlibpath_overrides_runpath=no
46473   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
46474   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
46475   hardcode_into_libs=yes
46476   ;;
46477
46478 # No shared lib support for Linux oldld, aout, or coff.
46479 linux*oldld* | linux*aout* | linux*coff*)
46480   dynamic_linker=no
46481   ;;
46482
46483 # This must be Linux ELF.
46484 linux*)
46485   version_type=linux
46486   need_lib_prefix=no
46487   need_version=no
46488   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
46489   soname_spec='${libname}${release}${shared_ext}$major'
46490   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
46491   shlibpath_var=LD_LIBRARY_PATH
46492   shlibpath_overrides_runpath=no
46493   # This implies no fast_install, which is unacceptable.
46494   # Some rework will be needed to allow for fast_install
46495   # before this can be enabled.
46496   hardcode_into_libs=yes
46497
46498   # Append ld.so.conf contents to the search path
46499   if test -f /etc/ld.so.conf; then
46500     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' ' '`
46501     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
46502   fi
46503
46504   # We used to test for /lib/ld.so.1 and disable shared libraries on
46505   # powerpc, because MkLinux only supported shared libraries with the
46506   # GNU dynamic linker.  Since this was broken with cross compilers,
46507   # most powerpc-linux boxes support dynamic linking these days and
46508   # people can always --disable-shared, the test was removed, and we
46509   # assume the GNU/Linux dynamic linker is in use.
46510   dynamic_linker='GNU/Linux ld.so'
46511   ;;
46512
46513 knetbsd*-gnu)
46514   version_type=linux
46515   need_lib_prefix=no
46516   need_version=no
46517   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
46518   soname_spec='${libname}${release}${shared_ext}$major'
46519   shlibpath_var=LD_LIBRARY_PATH
46520   shlibpath_overrides_runpath=no
46521   hardcode_into_libs=yes
46522   dynamic_linker='GNU ld.so'
46523   ;;
46524
46525 netbsd*)
46526   version_type=sunos
46527   need_lib_prefix=no
46528   need_version=no
46529   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
46530     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
46531     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
46532     dynamic_linker='NetBSD (a.out) ld.so'
46533   else
46534     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
46535     soname_spec='${libname}${release}${shared_ext}$major'
46536     dynamic_linker='NetBSD ld.elf_so'
46537   fi
46538   shlibpath_var=LD_LIBRARY_PATH
46539   shlibpath_overrides_runpath=yes
46540   hardcode_into_libs=yes
46541   ;;
46542
46543 newsos6)
46544   version_type=linux
46545   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
46546   shlibpath_var=LD_LIBRARY_PATH
46547   shlibpath_overrides_runpath=yes
46548   ;;
46549
46550 nto-qnx*)
46551   version_type=linux
46552   need_lib_prefix=no
46553   need_version=no
46554   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
46555   soname_spec='${libname}${release}${shared_ext}$major'
46556   shlibpath_var=LD_LIBRARY_PATH
46557   shlibpath_overrides_runpath=yes
46558   ;;
46559
46560 openbsd*)
46561   version_type=sunos
46562   need_lib_prefix=no
46563   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
46564   case $host_os in
46565     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
46566     *)                         need_version=no  ;;
46567   esac
46568   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
46569   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
46570   shlibpath_var=LD_LIBRARY_PATH
46571   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
46572     case $host_os in
46573       openbsd2.[89] | openbsd2.[89].*)
46574         shlibpath_overrides_runpath=no
46575         ;;
46576       *)
46577         shlibpath_overrides_runpath=yes
46578         ;;
46579       esac
46580   else
46581     shlibpath_overrides_runpath=yes
46582   fi
46583   ;;
46584
46585 os2*)
46586   libname_spec='$name'
46587   shrext_cmds=".dll"
46588   need_lib_prefix=no
46589   library_names_spec='$libname${shared_ext} $libname.a'
46590   dynamic_linker='OS/2 ld.exe'
46591   shlibpath_var=LIBPATH
46592   ;;
46593
46594 osf3* | osf4* | osf5*)
46595   version_type=osf
46596   need_lib_prefix=no
46597   need_version=no
46598   soname_spec='${libname}${release}${shared_ext}$major'
46599   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
46600   shlibpath_var=LD_LIBRARY_PATH
46601   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
46602   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
46603   ;;
46604
46605 sco3.2v5*)
46606   version_type=osf
46607   soname_spec='${libname}${release}${shared_ext}$major'
46608   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
46609   shlibpath_var=LD_LIBRARY_PATH
46610   ;;
46611
46612 solaris*)
46613   version_type=linux
46614   need_lib_prefix=no
46615   need_version=no
46616   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
46617   soname_spec='${libname}${release}${shared_ext}$major'
46618   shlibpath_var=LD_LIBRARY_PATH
46619   shlibpath_overrides_runpath=yes
46620   hardcode_into_libs=yes
46621   # ldd complains unless libraries are executable
46622   postinstall_cmds='chmod +x $lib'
46623   ;;
46624
46625 sunos4*)
46626   version_type=sunos
46627   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
46628   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
46629   shlibpath_var=LD_LIBRARY_PATH
46630   shlibpath_overrides_runpath=yes
46631   if test "$with_gnu_ld" = yes; then
46632     need_lib_prefix=no
46633   fi
46634   need_version=yes
46635   ;;
46636
46637 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
46638   version_type=linux
46639   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
46640   soname_spec='${libname}${release}${shared_ext}$major'
46641   shlibpath_var=LD_LIBRARY_PATH
46642   case $host_vendor in
46643     sni)
46644       shlibpath_overrides_runpath=no
46645       need_lib_prefix=no
46646       export_dynamic_flag_spec='${wl}-Blargedynsym'
46647       runpath_var=LD_RUN_PATH
46648       ;;
46649     siemens)
46650       need_lib_prefix=no
46651       ;;
46652     motorola)
46653       need_lib_prefix=no
46654       need_version=no
46655       shlibpath_overrides_runpath=no
46656       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
46657       ;;
46658   esac
46659   ;;
46660
46661 sysv4*MP*)
46662   if test -d /usr/nec ;then
46663     version_type=linux
46664     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
46665     soname_spec='$libname${shared_ext}.$major'
46666     shlibpath_var=LD_LIBRARY_PATH
46667   fi
46668   ;;
46669
46670 uts4*)
46671   version_type=linux
46672   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
46673   soname_spec='${libname}${release}${shared_ext}$major'
46674   shlibpath_var=LD_LIBRARY_PATH
46675   ;;
46676
46677 *)
46678   dynamic_linker=no
46679   ;;
46680 esac
46681 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
46682 echo "${ECHO_T}$dynamic_linker" >&6; }
46683 test "$dynamic_linker" = no && can_build_shared=no
46684
46685 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
46686 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
46687 hardcode_action_GCJ=
46688 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
46689    test -n "$runpath_var_GCJ" || \
46690    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
46691
46692   # We can hardcode non-existant directories.
46693   if test "$hardcode_direct_GCJ" != no &&
46694      # If the only mechanism to avoid hardcoding is shlibpath_var, we
46695      # have to relink, otherwise we might link with an installed library
46696      # when we should be linking with a yet-to-be-installed one
46697      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
46698      test "$hardcode_minus_L_GCJ" != no; then
46699     # Linking always hardcodes the temporary library directory.
46700     hardcode_action_GCJ=relink
46701   else
46702     # We can link without hardcoding, and we can hardcode nonexisting dirs.
46703     hardcode_action_GCJ=immediate
46704   fi
46705 else
46706   # We cannot hardcode anything, or else we can only hardcode existing
46707   # directories.
46708   hardcode_action_GCJ=unsupported
46709 fi
46710 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
46711 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
46712
46713 if test "$hardcode_action_GCJ" = relink; then
46714   # Fast installation is not supported
46715   enable_fast_install=no
46716 elif test "$shlibpath_overrides_runpath" = yes ||
46717      test "$enable_shared" = no; then
46718   # Fast installation is not necessary
46719   enable_fast_install=needless
46720 fi
46721
46722 striplib=
46723 old_striplib=
46724 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
46725 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
46726 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
46727   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
46728   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
46729   { echo "$as_me:$LINENO: result: yes" >&5
46730 echo "${ECHO_T}yes" >&6; }
46731 else
46732 # FIXME - insert some real tests, host_os isn't really good enough
46733   case $host_os in
46734    darwin*)
46735        if test -n "$STRIP" ; then
46736          striplib="$STRIP -x"
46737          { echo "$as_me:$LINENO: result: yes" >&5
46738 echo "${ECHO_T}yes" >&6; }
46739        else
46740   { echo "$as_me:$LINENO: result: no" >&5
46741 echo "${ECHO_T}no" >&6; }
46742 fi
46743        ;;
46744    *)
46745   { echo "$as_me:$LINENO: result: no" >&5
46746 echo "${ECHO_T}no" >&6; }
46747     ;;
46748   esac
46749 fi
46750
46751 if test "x$enable_dlopen" != xyes; then
46752   enable_dlopen=unknown
46753   enable_dlopen_self=unknown
46754   enable_dlopen_self_static=unknown
46755 else
46756   lt_cv_dlopen=no
46757   lt_cv_dlopen_libs=
46758
46759   case $host_os in
46760   beos*)
46761     lt_cv_dlopen="load_add_on"
46762     lt_cv_dlopen_libs=
46763     lt_cv_dlopen_self=yes
46764     ;;
46765
46766   mingw* | pw32*)
46767     lt_cv_dlopen="LoadLibrary"
46768     lt_cv_dlopen_libs=
46769    ;;
46770
46771   cygwin*)
46772     lt_cv_dlopen="dlopen"
46773     lt_cv_dlopen_libs=
46774    ;;
46775
46776   darwin*)
46777   # if libdl is installed we need to link against it
46778     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
46779 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
46780 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
46781   echo $ECHO_N "(cached) $ECHO_C" >&6
46782 else
46783   ac_check_lib_save_LIBS=$LIBS
46784 LIBS="-ldl  $LIBS"
46785 cat >conftest.$ac_ext <<_ACEOF
46786 /* confdefs.h.  */
46787 _ACEOF
46788 cat confdefs.h >>conftest.$ac_ext
46789 cat >>conftest.$ac_ext <<_ACEOF
46790 /* end confdefs.h.  */
46791
46792 /* Override any GCC internal prototype to avoid an error.
46793    Use char because int might match the return type of a GCC
46794    builtin and then its argument prototype would still apply.  */
46795 #ifdef __cplusplus
46796 extern "C"
46797 #endif
46798 char dlopen ();
46799 int
46800 main ()
46801 {
46802 return dlopen ();
46803   ;
46804   return 0;
46805 }
46806 _ACEOF
46807 rm -f conftest.$ac_objext conftest$ac_exeext
46808 if { (ac_try="$ac_link"
46809 case "(($ac_try" in
46810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46811   *) ac_try_echo=$ac_try;;
46812 esac
46813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46814   (eval "$ac_link") 2>conftest.er1
46815   ac_status=$?
46816   grep -v '^ *+' conftest.er1 >conftest.err
46817   rm -f conftest.er1
46818   cat conftest.err >&5
46819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46820   (exit $ac_status); } && {
46821          test -z "$ac_c_werror_flag" ||
46822          test ! -s conftest.err
46823        } && test -s conftest$ac_exeext &&
46824        $as_test_x conftest$ac_exeext; then
46825   ac_cv_lib_dl_dlopen=yes
46826 else
46827   echo "$as_me: failed program was:" >&5
46828 sed 's/^/| /' conftest.$ac_ext >&5
46829
46830         ac_cv_lib_dl_dlopen=no
46831 fi
46832
46833 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46834       conftest$ac_exeext conftest.$ac_ext
46835 LIBS=$ac_check_lib_save_LIBS
46836 fi
46837 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
46838 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
46839 if test $ac_cv_lib_dl_dlopen = yes; then
46840   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
46841 else
46842
46843     lt_cv_dlopen="dyld"
46844     lt_cv_dlopen_libs=
46845     lt_cv_dlopen_self=yes
46846
46847 fi
46848
46849    ;;
46850
46851   *)
46852     { echo "$as_me:$LINENO: checking for shl_load" >&5
46853 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
46854 if test "${ac_cv_func_shl_load+set}" = set; then
46855   echo $ECHO_N "(cached) $ECHO_C" >&6
46856 else
46857   cat >conftest.$ac_ext <<_ACEOF
46858 /* confdefs.h.  */
46859 _ACEOF
46860 cat confdefs.h >>conftest.$ac_ext
46861 cat >>conftest.$ac_ext <<_ACEOF
46862 /* end confdefs.h.  */
46863 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
46864    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46865 #define shl_load innocuous_shl_load
46866
46867 /* System header to define __stub macros and hopefully few prototypes,
46868     which can conflict with char shl_load (); below.
46869     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46870     <limits.h> exists even on freestanding compilers.  */
46871
46872 #ifdef __STDC__
46873 # include <limits.h>
46874 #else
46875 # include <assert.h>
46876 #endif
46877
46878 #undef shl_load
46879
46880 /* Override any GCC internal prototype to avoid an error.
46881    Use char because int might match the return type of a GCC
46882    builtin and then its argument prototype would still apply.  */
46883 #ifdef __cplusplus
46884 extern "C"
46885 #endif
46886 char shl_load ();
46887 /* The GNU C library defines this for functions which it implements
46888     to always fail with ENOSYS.  Some functions are actually named
46889     something starting with __ and the normal name is an alias.  */
46890 #if defined __stub_shl_load || defined __stub___shl_load
46891 choke me
46892 #endif
46893
46894 int
46895 main ()
46896 {
46897 return shl_load ();
46898   ;
46899   return 0;
46900 }
46901 _ACEOF
46902 rm -f conftest.$ac_objext conftest$ac_exeext
46903 if { (ac_try="$ac_link"
46904 case "(($ac_try" in
46905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46906   *) ac_try_echo=$ac_try;;
46907 esac
46908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46909   (eval "$ac_link") 2>conftest.er1
46910   ac_status=$?
46911   grep -v '^ *+' conftest.er1 >conftest.err
46912   rm -f conftest.er1
46913   cat conftest.err >&5
46914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46915   (exit $ac_status); } && {
46916          test -z "$ac_c_werror_flag" ||
46917          test ! -s conftest.err
46918        } && test -s conftest$ac_exeext &&
46919        $as_test_x conftest$ac_exeext; then
46920   ac_cv_func_shl_load=yes
46921 else
46922   echo "$as_me: failed program was:" >&5
46923 sed 's/^/| /' conftest.$ac_ext >&5
46924
46925         ac_cv_func_shl_load=no
46926 fi
46927
46928 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46929       conftest$ac_exeext conftest.$ac_ext
46930 fi
46931 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
46932 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
46933 if test $ac_cv_func_shl_load = yes; then
46934   lt_cv_dlopen="shl_load"
46935 else
46936   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
46937 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
46938 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
46939   echo $ECHO_N "(cached) $ECHO_C" >&6
46940 else
46941   ac_check_lib_save_LIBS=$LIBS
46942 LIBS="-ldld  $LIBS"
46943 cat >conftest.$ac_ext <<_ACEOF
46944 /* confdefs.h.  */
46945 _ACEOF
46946 cat confdefs.h >>conftest.$ac_ext
46947 cat >>conftest.$ac_ext <<_ACEOF
46948 /* end confdefs.h.  */
46949
46950 /* Override any GCC internal prototype to avoid an error.
46951    Use char because int might match the return type of a GCC
46952    builtin and then its argument prototype would still apply.  */
46953 #ifdef __cplusplus
46954 extern "C"
46955 #endif
46956 char shl_load ();
46957 int
46958 main ()
46959 {
46960 return shl_load ();
46961   ;
46962   return 0;
46963 }
46964 _ACEOF
46965 rm -f conftest.$ac_objext conftest$ac_exeext
46966 if { (ac_try="$ac_link"
46967 case "(($ac_try" in
46968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46969   *) ac_try_echo=$ac_try;;
46970 esac
46971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46972   (eval "$ac_link") 2>conftest.er1
46973   ac_status=$?
46974   grep -v '^ *+' conftest.er1 >conftest.err
46975   rm -f conftest.er1
46976   cat conftest.err >&5
46977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46978   (exit $ac_status); } && {
46979          test -z "$ac_c_werror_flag" ||
46980          test ! -s conftest.err
46981        } && test -s conftest$ac_exeext &&
46982        $as_test_x conftest$ac_exeext; then
46983   ac_cv_lib_dld_shl_load=yes
46984 else
46985   echo "$as_me: failed program was:" >&5
46986 sed 's/^/| /' conftest.$ac_ext >&5
46987
46988         ac_cv_lib_dld_shl_load=no
46989 fi
46990
46991 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46992       conftest$ac_exeext conftest.$ac_ext
46993 LIBS=$ac_check_lib_save_LIBS
46994 fi
46995 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
46996 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
46997 if test $ac_cv_lib_dld_shl_load = yes; then
46998   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
46999 else
47000   { echo "$as_me:$LINENO: checking for dlopen" >&5
47001 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
47002 if test "${ac_cv_func_dlopen+set}" = set; then
47003   echo $ECHO_N "(cached) $ECHO_C" >&6
47004 else
47005   cat >conftest.$ac_ext <<_ACEOF
47006 /* confdefs.h.  */
47007 _ACEOF
47008 cat confdefs.h >>conftest.$ac_ext
47009 cat >>conftest.$ac_ext <<_ACEOF
47010 /* end confdefs.h.  */
47011 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
47012    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
47013 #define dlopen innocuous_dlopen
47014
47015 /* System header to define __stub macros and hopefully few prototypes,
47016     which can conflict with char dlopen (); below.
47017     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47018     <limits.h> exists even on freestanding compilers.  */
47019
47020 #ifdef __STDC__
47021 # include <limits.h>
47022 #else
47023 # include <assert.h>
47024 #endif
47025
47026 #undef dlopen
47027
47028 /* Override any GCC internal prototype to avoid an error.
47029    Use char because int might match the return type of a GCC
47030    builtin and then its argument prototype would still apply.  */
47031 #ifdef __cplusplus
47032 extern "C"
47033 #endif
47034 char dlopen ();
47035 /* The GNU C library defines this for functions which it implements
47036     to always fail with ENOSYS.  Some functions are actually named
47037     something starting with __ and the normal name is an alias.  */
47038 #if defined __stub_dlopen || defined __stub___dlopen
47039 choke me
47040 #endif
47041
47042 int
47043 main ()
47044 {
47045 return dlopen ();
47046   ;
47047   return 0;
47048 }
47049 _ACEOF
47050 rm -f conftest.$ac_objext conftest$ac_exeext
47051 if { (ac_try="$ac_link"
47052 case "(($ac_try" in
47053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47054   *) ac_try_echo=$ac_try;;
47055 esac
47056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47057   (eval "$ac_link") 2>conftest.er1
47058   ac_status=$?
47059   grep -v '^ *+' conftest.er1 >conftest.err
47060   rm -f conftest.er1
47061   cat conftest.err >&5
47062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47063   (exit $ac_status); } && {
47064          test -z "$ac_c_werror_flag" ||
47065          test ! -s conftest.err
47066        } && test -s conftest$ac_exeext &&
47067        $as_test_x conftest$ac_exeext; then
47068   ac_cv_func_dlopen=yes
47069 else
47070   echo "$as_me: failed program was:" >&5
47071 sed 's/^/| /' conftest.$ac_ext >&5
47072
47073         ac_cv_func_dlopen=no
47074 fi
47075
47076 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
47077       conftest$ac_exeext conftest.$ac_ext
47078 fi
47079 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
47080 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
47081 if test $ac_cv_func_dlopen = yes; then
47082   lt_cv_dlopen="dlopen"
47083 else
47084   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
47085 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
47086 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
47087   echo $ECHO_N "(cached) $ECHO_C" >&6
47088 else
47089   ac_check_lib_save_LIBS=$LIBS
47090 LIBS="-ldl  $LIBS"
47091 cat >conftest.$ac_ext <<_ACEOF
47092 /* confdefs.h.  */
47093 _ACEOF
47094 cat confdefs.h >>conftest.$ac_ext
47095 cat >>conftest.$ac_ext <<_ACEOF
47096 /* end confdefs.h.  */
47097
47098 /* Override any GCC internal prototype to avoid an error.
47099    Use char because int might match the return type of a GCC
47100    builtin and then its argument prototype would still apply.  */
47101 #ifdef __cplusplus
47102 extern "C"
47103 #endif
47104 char dlopen ();
47105 int
47106 main ()
47107 {
47108 return dlopen ();
47109   ;
47110   return 0;
47111 }
47112 _ACEOF
47113 rm -f conftest.$ac_objext conftest$ac_exeext
47114 if { (ac_try="$ac_link"
47115 case "(($ac_try" in
47116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47117   *) ac_try_echo=$ac_try;;
47118 esac
47119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47120   (eval "$ac_link") 2>conftest.er1
47121   ac_status=$?
47122   grep -v '^ *+' conftest.er1 >conftest.err
47123   rm -f conftest.er1
47124   cat conftest.err >&5
47125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47126   (exit $ac_status); } && {
47127          test -z "$ac_c_werror_flag" ||
47128          test ! -s conftest.err
47129        } && test -s conftest$ac_exeext &&
47130        $as_test_x conftest$ac_exeext; then
47131   ac_cv_lib_dl_dlopen=yes
47132 else
47133   echo "$as_me: failed program was:" >&5
47134 sed 's/^/| /' conftest.$ac_ext >&5
47135
47136         ac_cv_lib_dl_dlopen=no
47137 fi
47138
47139 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
47140       conftest$ac_exeext conftest.$ac_ext
47141 LIBS=$ac_check_lib_save_LIBS
47142 fi
47143 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
47144 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
47145 if test $ac_cv_lib_dl_dlopen = yes; then
47146   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
47147 else
47148   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
47149 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
47150 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
47151   echo $ECHO_N "(cached) $ECHO_C" >&6
47152 else
47153   ac_check_lib_save_LIBS=$LIBS
47154 LIBS="-lsvld  $LIBS"
47155 cat >conftest.$ac_ext <<_ACEOF
47156 /* confdefs.h.  */
47157 _ACEOF
47158 cat confdefs.h >>conftest.$ac_ext
47159 cat >>conftest.$ac_ext <<_ACEOF
47160 /* end confdefs.h.  */
47161
47162 /* Override any GCC internal prototype to avoid an error.
47163    Use char because int might match the return type of a GCC
47164    builtin and then its argument prototype would still apply.  */
47165 #ifdef __cplusplus
47166 extern "C"
47167 #endif
47168 char dlopen ();
47169 int
47170 main ()
47171 {
47172 return dlopen ();
47173   ;
47174   return 0;
47175 }
47176 _ACEOF
47177 rm -f conftest.$ac_objext conftest$ac_exeext
47178 if { (ac_try="$ac_link"
47179 case "(($ac_try" in
47180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47181   *) ac_try_echo=$ac_try;;
47182 esac
47183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47184   (eval "$ac_link") 2>conftest.er1
47185   ac_status=$?
47186   grep -v '^ *+' conftest.er1 >conftest.err
47187   rm -f conftest.er1
47188   cat conftest.err >&5
47189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47190   (exit $ac_status); } && {
47191          test -z "$ac_c_werror_flag" ||
47192          test ! -s conftest.err
47193        } && test -s conftest$ac_exeext &&
47194        $as_test_x conftest$ac_exeext; then
47195   ac_cv_lib_svld_dlopen=yes
47196 else
47197   echo "$as_me: failed program was:" >&5
47198 sed 's/^/| /' conftest.$ac_ext >&5
47199
47200         ac_cv_lib_svld_dlopen=no
47201 fi
47202
47203 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
47204       conftest$ac_exeext conftest.$ac_ext
47205 LIBS=$ac_check_lib_save_LIBS
47206 fi
47207 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
47208 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
47209 if test $ac_cv_lib_svld_dlopen = yes; then
47210   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
47211 else
47212   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
47213 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
47214 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
47215   echo $ECHO_N "(cached) $ECHO_C" >&6
47216 else
47217   ac_check_lib_save_LIBS=$LIBS
47218 LIBS="-ldld  $LIBS"
47219 cat >conftest.$ac_ext <<_ACEOF
47220 /* confdefs.h.  */
47221 _ACEOF
47222 cat confdefs.h >>conftest.$ac_ext
47223 cat >>conftest.$ac_ext <<_ACEOF
47224 /* end confdefs.h.  */
47225
47226 /* Override any GCC internal prototype to avoid an error.
47227    Use char because int might match the return type of a GCC
47228    builtin and then its argument prototype would still apply.  */
47229 #ifdef __cplusplus
47230 extern "C"
47231 #endif
47232 char dld_link ();
47233 int
47234 main ()
47235 {
47236 return dld_link ();
47237   ;
47238   return 0;
47239 }
47240 _ACEOF
47241 rm -f conftest.$ac_objext conftest$ac_exeext
47242 if { (ac_try="$ac_link"
47243 case "(($ac_try" in
47244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47245   *) ac_try_echo=$ac_try;;
47246 esac
47247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47248   (eval "$ac_link") 2>conftest.er1
47249   ac_status=$?
47250   grep -v '^ *+' conftest.er1 >conftest.err
47251   rm -f conftest.er1
47252   cat conftest.err >&5
47253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47254   (exit $ac_status); } && {
47255          test -z "$ac_c_werror_flag" ||
47256          test ! -s conftest.err
47257        } && test -s conftest$ac_exeext &&
47258        $as_test_x conftest$ac_exeext; then
47259   ac_cv_lib_dld_dld_link=yes
47260 else
47261   echo "$as_me: failed program was:" >&5
47262 sed 's/^/| /' conftest.$ac_ext >&5
47263
47264         ac_cv_lib_dld_dld_link=no
47265 fi
47266
47267 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
47268       conftest$ac_exeext conftest.$ac_ext
47269 LIBS=$ac_check_lib_save_LIBS
47270 fi
47271 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
47272 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
47273 if test $ac_cv_lib_dld_dld_link = yes; then
47274   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
47275 fi
47276
47277
47278 fi
47279
47280
47281 fi
47282
47283
47284 fi
47285
47286
47287 fi
47288
47289
47290 fi
47291
47292     ;;
47293   esac
47294
47295   if test "x$lt_cv_dlopen" != xno; then
47296     enable_dlopen=yes
47297   else
47298     enable_dlopen=no
47299   fi
47300
47301   case $lt_cv_dlopen in
47302   dlopen)
47303     save_CPPFLAGS="$CPPFLAGS"
47304     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
47305
47306     save_LDFLAGS="$LDFLAGS"
47307     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
47308
47309     save_LIBS="$LIBS"
47310     LIBS="$lt_cv_dlopen_libs $LIBS"
47311
47312     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
47313 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
47314 if test "${lt_cv_dlopen_self+set}" = set; then
47315   echo $ECHO_N "(cached) $ECHO_C" >&6
47316 else
47317           if test "$cross_compiling" = yes; then :
47318   lt_cv_dlopen_self=cross
47319 else
47320   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
47321   lt_status=$lt_dlunknown
47322   cat > conftest.$ac_ext <<EOF
47323 #line 47323 "configure"
47324 #include "confdefs.h"
47325
47326 #if HAVE_DLFCN_H
47327 #include <dlfcn.h>
47328 #endif
47329
47330 #include <stdio.h>
47331
47332 #ifdef RTLD_GLOBAL
47333 #  define LT_DLGLOBAL           RTLD_GLOBAL
47334 #else
47335 #  ifdef DL_GLOBAL
47336 #    define LT_DLGLOBAL         DL_GLOBAL
47337 #  else
47338 #    define LT_DLGLOBAL         0
47339 #  endif
47340 #endif
47341
47342 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
47343    find out it does not work in some platform. */
47344 #ifndef LT_DLLAZY_OR_NOW
47345 #  ifdef RTLD_LAZY
47346 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
47347 #  else
47348 #    ifdef DL_LAZY
47349 #      define LT_DLLAZY_OR_NOW          DL_LAZY
47350 #    else
47351 #      ifdef RTLD_NOW
47352 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
47353 #      else
47354 #        ifdef DL_NOW
47355 #          define LT_DLLAZY_OR_NOW      DL_NOW
47356 #        else
47357 #          define LT_DLLAZY_OR_NOW      0
47358 #        endif
47359 #      endif
47360 #    endif
47361 #  endif
47362 #endif
47363
47364 #ifdef __cplusplus
47365 extern "C" void exit (int);
47366 #endif
47367
47368 void fnord() { int i=42;}
47369 int main ()
47370 {
47371   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
47372   int status = $lt_dlunknown;
47373
47374   if (self)
47375     {
47376       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
47377       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
47378       /* dlclose (self); */
47379     }
47380
47381     exit (status);
47382 }
47383 EOF
47384   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47385   (eval $ac_link) 2>&5
47386   ac_status=$?
47387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47388   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
47389     (./conftest; exit; ) >&5 2>/dev/null
47390     lt_status=$?
47391     case x$lt_status in
47392       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
47393       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
47394       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
47395     esac
47396   else :
47397     # compilation failed
47398     lt_cv_dlopen_self=no
47399   fi
47400 fi
47401 rm -fr conftest*
47402
47403
47404 fi
47405 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
47406 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
47407
47408     if test "x$lt_cv_dlopen_self" = xyes; then
47409       LDFLAGS="$LDFLAGS $link_static_flag"
47410       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
47411 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
47412 if test "${lt_cv_dlopen_self_static+set}" = set; then
47413   echo $ECHO_N "(cached) $ECHO_C" >&6
47414 else
47415           if test "$cross_compiling" = yes; then :
47416   lt_cv_dlopen_self_static=cross
47417 else
47418   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
47419   lt_status=$lt_dlunknown
47420   cat > conftest.$ac_ext <<EOF
47421 #line 47421 "configure"
47422 #include "confdefs.h"
47423
47424 #if HAVE_DLFCN_H
47425 #include <dlfcn.h>
47426 #endif
47427
47428 #include <stdio.h>
47429
47430 #ifdef RTLD_GLOBAL
47431 #  define LT_DLGLOBAL           RTLD_GLOBAL
47432 #else
47433 #  ifdef DL_GLOBAL
47434 #    define LT_DLGLOBAL         DL_GLOBAL
47435 #  else
47436 #    define LT_DLGLOBAL         0
47437 #  endif
47438 #endif
47439
47440 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
47441    find out it does not work in some platform. */
47442 #ifndef LT_DLLAZY_OR_NOW
47443 #  ifdef RTLD_LAZY
47444 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
47445 #  else
47446 #    ifdef DL_LAZY
47447 #      define LT_DLLAZY_OR_NOW          DL_LAZY
47448 #    else
47449 #      ifdef RTLD_NOW
47450 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
47451 #      else
47452 #        ifdef DL_NOW
47453 #          define LT_DLLAZY_OR_NOW      DL_NOW
47454 #        else
47455 #          define LT_DLLAZY_OR_NOW      0
47456 #        endif
47457 #      endif
47458 #    endif
47459 #  endif
47460 #endif
47461
47462 #ifdef __cplusplus
47463 extern "C" void exit (int);
47464 #endif
47465
47466 void fnord() { int i=42;}
47467 int main ()
47468 {
47469   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
47470   int status = $lt_dlunknown;
47471
47472   if (self)
47473     {
47474       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
47475       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
47476       /* dlclose (self); */
47477     }
47478
47479     exit (status);
47480 }
47481 EOF
47482   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47483   (eval $ac_link) 2>&5
47484   ac_status=$?
47485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47486   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
47487     (./conftest; exit; ) >&5 2>/dev/null
47488     lt_status=$?
47489     case x$lt_status in
47490       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
47491       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
47492       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
47493     esac
47494   else :
47495     # compilation failed
47496     lt_cv_dlopen_self_static=no
47497   fi
47498 fi
47499 rm -fr conftest*
47500
47501
47502 fi
47503 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
47504 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
47505     fi
47506
47507     CPPFLAGS="$save_CPPFLAGS"
47508     LDFLAGS="$save_LDFLAGS"
47509     LIBS="$save_LIBS"
47510     ;;
47511   esac
47512
47513   case $lt_cv_dlopen_self in
47514   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
47515   *) enable_dlopen_self=unknown ;;
47516   esac
47517
47518   case $lt_cv_dlopen_self_static in
47519   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
47520   *) enable_dlopen_self_static=unknown ;;
47521   esac
47522 fi
47523
47524
47525 # The else clause should only fire when bootstrapping the
47526 # libtool distribution, otherwise you forgot to ship ltmain.sh
47527 # with your package, and you will get complaints that there are
47528 # no rules to generate ltmain.sh.
47529 if test -f "$ltmain"; then
47530   # See if we are running on zsh, and set the options which allow our commands through
47531   # without removal of \ escapes.
47532   if test -n "${ZSH_VERSION+set}" ; then
47533     setopt NO_GLOB_SUBST
47534   fi
47535   # Now quote all the things that may contain metacharacters while being
47536   # careful not to overquote the AC_SUBSTed values.  We take copies of the
47537   # variables and quote the copies for generation of the libtool script.
47538   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
47539     SED SHELL STRIP \
47540     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
47541     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
47542     deplibs_check_method reload_flag reload_cmds need_locks \
47543     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
47544     lt_cv_sys_global_symbol_to_c_name_address \
47545     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
47546     old_postinstall_cmds old_postuninstall_cmds \
47547     compiler_GCJ \
47548     CC_GCJ \
47549     LD_GCJ \
47550     lt_prog_compiler_wl_GCJ \
47551     lt_prog_compiler_pic_GCJ \
47552     lt_prog_compiler_static_GCJ \
47553     lt_prog_compiler_no_builtin_flag_GCJ \
47554     export_dynamic_flag_spec_GCJ \
47555     thread_safe_flag_spec_GCJ \
47556     whole_archive_flag_spec_GCJ \
47557     enable_shared_with_static_runtimes_GCJ \
47558     old_archive_cmds_GCJ \
47559     old_archive_from_new_cmds_GCJ \
47560     predep_objects_GCJ \
47561     postdep_objects_GCJ \
47562     predeps_GCJ \
47563     postdeps_GCJ \
47564     compiler_lib_search_path_GCJ \
47565     archive_cmds_GCJ \
47566     archive_expsym_cmds_GCJ \
47567     postinstall_cmds_GCJ \
47568     postuninstall_cmds_GCJ \
47569     old_archive_from_expsyms_cmds_GCJ \
47570     allow_undefined_flag_GCJ \
47571     no_undefined_flag_GCJ \
47572     export_symbols_cmds_GCJ \
47573     hardcode_libdir_flag_spec_GCJ \
47574     hardcode_libdir_flag_spec_ld_GCJ \
47575     hardcode_libdir_separator_GCJ \
47576     hardcode_automatic_GCJ \
47577     module_cmds_GCJ \
47578     module_expsym_cmds_GCJ \
47579     lt_cv_prog_compiler_c_o_GCJ \
47580     exclude_expsyms_GCJ \
47581     include_expsyms_GCJ; do
47582
47583     case $var in
47584     old_archive_cmds_GCJ | \
47585     old_archive_from_new_cmds_GCJ | \
47586     archive_cmds_GCJ | \
47587     archive_expsym_cmds_GCJ | \
47588     module_cmds_GCJ | \
47589     module_expsym_cmds_GCJ | \
47590     old_archive_from_expsyms_cmds_GCJ | \
47591     export_symbols_cmds_GCJ | \
47592     extract_expsyms_cmds | reload_cmds | finish_cmds | \
47593     postinstall_cmds | postuninstall_cmds | \
47594     old_postinstall_cmds | old_postuninstall_cmds | \
47595     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
47596       # Double-quote double-evaled strings.
47597       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
47598       ;;
47599     *)
47600       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
47601       ;;
47602     esac
47603   done
47604
47605   case $lt_echo in
47606   *'\$0 --fallback-echo"')
47607     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
47608     ;;
47609   esac
47610
47611 cfgfile="$ofile"
47612
47613   cat <<__EOF__ >> "$cfgfile"
47614 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
47615
47616 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
47617
47618 # Shell to use when invoking shell scripts.
47619 SHELL=$lt_SHELL
47620
47621 # Whether or not to build shared libraries.
47622 build_libtool_libs=$enable_shared
47623
47624 # Whether or not to build static libraries.
47625 build_old_libs=$enable_static
47626
47627 # Whether or not to add -lc for building shared libraries.
47628 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
47629
47630 # Whether or not to disallow shared libs when runtime libs are static
47631 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
47632
47633 # Whether or not to optimize for fast installation.
47634 fast_install=$enable_fast_install
47635
47636 # The host system.
47637 host_alias=$host_alias
47638 host=$host
47639 host_os=$host_os
47640
47641 # The build system.
47642 build_alias=$build_alias
47643 build=$build
47644 build_os=$build_os
47645
47646 # An echo program that does not interpret backslashes.
47647 echo=$lt_echo
47648
47649 # The archiver.
47650 AR=$lt_AR
47651 AR_FLAGS=$lt_AR_FLAGS
47652
47653 # A C compiler.
47654 LTCC=$lt_LTCC
47655
47656 # A language-specific compiler.
47657 CC=$lt_compiler_GCJ
47658
47659 # Is the compiler the GNU C compiler?
47660 with_gcc=$GCC_GCJ
47661
47662 # An ERE matcher.
47663 EGREP=$lt_EGREP
47664
47665 # The linker used to build libraries.
47666 LD=$lt_LD_GCJ
47667
47668 # Whether we need hard or soft links.
47669 LN_S=$lt_LN_S
47670
47671 # A BSD-compatible nm program.
47672 NM=$lt_NM
47673
47674 # A symbol stripping program
47675 STRIP=$lt_STRIP
47676
47677 # Used to examine libraries when file_magic_cmd begins "file"
47678 MAGIC_CMD=$MAGIC_CMD
47679
47680 # Used on cygwin: DLL creation program.
47681 DLLTOOL="$DLLTOOL"
47682
47683 # Used on cygwin: object dumper.
47684 OBJDUMP="$OBJDUMP"
47685
47686 # Used on cygwin: assembler.
47687 AS="$AS"
47688
47689 # The name of the directory that contains temporary libtool files.
47690 objdir=$objdir
47691
47692 # How to create reloadable object files.
47693 reload_flag=$lt_reload_flag
47694 reload_cmds=$lt_reload_cmds
47695
47696 # How to pass a linker flag through the compiler.
47697 wl=$lt_lt_prog_compiler_wl_GCJ
47698
47699 # Object file suffix (normally "o").
47700 objext="$ac_objext"
47701
47702 # Old archive suffix (normally "a").
47703 libext="$libext"
47704
47705 # Shared library suffix (normally ".so").
47706 shrext_cmds='$shrext_cmds'
47707
47708 # Executable file suffix (normally "").
47709 exeext="$exeext"
47710
47711 # Additional compiler flags for building library objects.
47712 pic_flag=$lt_lt_prog_compiler_pic_GCJ
47713 pic_mode=$pic_mode
47714
47715 # What is the maximum length of a command?
47716 max_cmd_len=$lt_cv_sys_max_cmd_len
47717
47718 # Does compiler simultaneously support -c and -o options?
47719 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
47720
47721 # Must we lock files when doing compilation?
47722 need_locks=$lt_need_locks
47723
47724 # Do we need the lib prefix for modules?
47725 need_lib_prefix=$need_lib_prefix
47726
47727 # Do we need a version for libraries?
47728 need_version=$need_version
47729
47730 # Whether dlopen is supported.
47731 dlopen_support=$enable_dlopen
47732
47733 # Whether dlopen of programs is supported.
47734 dlopen_self=$enable_dlopen_self
47735
47736 # Whether dlopen of statically linked programs is supported.
47737 dlopen_self_static=$enable_dlopen_self_static
47738
47739 # Compiler flag to prevent dynamic linking.
47740 link_static_flag=$lt_lt_prog_compiler_static_GCJ
47741
47742 # Compiler flag to turn off builtin functions.
47743 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
47744
47745 # Compiler flag to allow reflexive dlopens.
47746 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
47747
47748 # Compiler flag to generate shared objects directly from archives.
47749 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
47750
47751 # Compiler flag to generate thread-safe objects.
47752 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
47753
47754 # Library versioning type.
47755 version_type=$version_type
47756
47757 # Format of library name prefix.
47758 libname_spec=$lt_libname_spec
47759
47760 # List of archive names.  First name is the real one, the rest are links.
47761 # The last name is the one that the linker finds with -lNAME.
47762 library_names_spec=$lt_library_names_spec
47763
47764 # The coded name of the library, if different from the real name.
47765 soname_spec=$lt_soname_spec
47766
47767 # Commands used to build and install an old-style archive.
47768 RANLIB=$lt_RANLIB
47769 old_archive_cmds=$lt_old_archive_cmds_GCJ
47770 old_postinstall_cmds=$lt_old_postinstall_cmds
47771 old_postuninstall_cmds=$lt_old_postuninstall_cmds
47772
47773 # Create an old-style archive from a shared archive.
47774 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
47775
47776 # Create a temporary old-style archive to link instead of a shared archive.
47777 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
47778
47779 # Commands used to build and install a shared archive.
47780 archive_cmds=$lt_archive_cmds_GCJ
47781 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
47782 postinstall_cmds=$lt_postinstall_cmds
47783 postuninstall_cmds=$lt_postuninstall_cmds
47784
47785 # Commands used to build a loadable module (assumed same as above if empty)
47786 module_cmds=$lt_module_cmds_GCJ
47787 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
47788
47789 # Commands to strip libraries.
47790 old_striplib=$lt_old_striplib
47791 striplib=$lt_striplib
47792
47793 # Dependencies to place before the objects being linked to create a
47794 # shared library.
47795 predep_objects=$lt_predep_objects_GCJ
47796
47797 # Dependencies to place after the objects being linked to create a
47798 # shared library.
47799 postdep_objects=$lt_postdep_objects_GCJ
47800
47801 # Dependencies to place before the objects being linked to create a
47802 # shared library.
47803 predeps=$lt_predeps_GCJ
47804
47805 # Dependencies to place after the objects being linked to create a
47806 # shared library.
47807 postdeps=$lt_postdeps_GCJ
47808
47809 # The library search path used internally by the compiler when linking
47810 # a shared library.
47811 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
47812
47813 # Method to check whether dependent libraries are shared objects.
47814 deplibs_check_method=$lt_deplibs_check_method
47815
47816 # Command to use when deplibs_check_method == file_magic.
47817 file_magic_cmd=$lt_file_magic_cmd
47818
47819 # Flag that allows shared libraries with undefined symbols to be built.
47820 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
47821
47822 # Flag that forces no undefined symbols.
47823 no_undefined_flag=$lt_no_undefined_flag_GCJ
47824
47825 # Commands used to finish a libtool library installation in a directory.
47826 finish_cmds=$lt_finish_cmds
47827
47828 # Same as above, but a single script fragment to be evaled but not shown.
47829 finish_eval=$lt_finish_eval
47830
47831 # Take the output of nm and produce a listing of raw symbols and C names.
47832 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
47833
47834 # Transform the output of nm in a proper C declaration
47835 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
47836
47837 # Transform the output of nm in a C name address pair
47838 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
47839
47840 # This is the shared library runtime path variable.
47841 runpath_var=$runpath_var
47842
47843 # This is the shared library path variable.
47844 shlibpath_var=$shlibpath_var
47845
47846 # Is shlibpath searched before the hard-coded library search path?
47847 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
47848
47849 # How to hardcode a shared library path into an executable.
47850 hardcode_action=$hardcode_action_GCJ
47851
47852 # Whether we should hardcode library paths into libraries.
47853 hardcode_into_libs=$hardcode_into_libs
47854
47855 # Flag to hardcode \$libdir into a binary during linking.
47856 # This must work even if \$libdir does not exist.
47857 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
47858
47859 # If ld is used when linking, flag to hardcode \$libdir into
47860 # a binary during linking. This must work even if \$libdir does
47861 # not exist.
47862 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
47863
47864 # Whether we need a single -rpath flag with a separated argument.
47865 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
47866
47867 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
47868 # resulting binary.
47869 hardcode_direct=$hardcode_direct_GCJ
47870
47871 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
47872 # resulting binary.
47873 hardcode_minus_L=$hardcode_minus_L_GCJ
47874
47875 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
47876 # the resulting binary.
47877 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
47878
47879 # Set to yes if building a shared library automatically hardcodes DIR into the library
47880 # and all subsequent libraries and executables linked against it.
47881 hardcode_automatic=$hardcode_automatic_GCJ
47882
47883 # Variables whose values should be saved in libtool wrapper scripts and
47884 # restored at relink time.
47885 variables_saved_for_relink="$variables_saved_for_relink"
47886
47887 # Whether libtool must link a program against all its dependency libraries.
47888 link_all_deplibs=$link_all_deplibs_GCJ
47889
47890 # Compile-time system search path for libraries
47891 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
47892
47893 # Run-time system search path for libraries
47894 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
47895
47896 # Fix the shell variable \$srcfile for the compiler.
47897 fix_srcfile_path="$fix_srcfile_path_GCJ"
47898
47899 # Set to yes if exported symbols are required.
47900 always_export_symbols=$always_export_symbols_GCJ
47901
47902 # The commands to list exported symbols.
47903 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
47904
47905 # The commands to extract the exported symbol list from a shared archive.
47906 extract_expsyms_cmds=$lt_extract_expsyms_cmds
47907
47908 # Symbols that should not be listed in the preloaded symbols.
47909 exclude_expsyms=$lt_exclude_expsyms_GCJ
47910
47911 # Symbols that must always be exported.
47912 include_expsyms=$lt_include_expsyms_GCJ
47913
47914 # ### END LIBTOOL TAG CONFIG: $tagname
47915
47916 __EOF__
47917
47918
47919 else
47920   # If there is no Makefile yet, we rely on a make rule to execute
47921   # `config.status --recheck' to rerun these tests and create the
47922   # libtool script then.
47923   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
47924   if test -f "$ltmain_in"; then
47925     test -f Makefile && make "$ltmain"
47926   fi
47927 fi
47928
47929
47930 ac_ext=c
47931 ac_cpp='$CPP $CPPFLAGS'
47932 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47933 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47934 ac_compiler_gnu=$ac_cv_c_compiler_gnu
47935
47936 CC="$lt_save_CC"
47937
47938         else
47939           tagname=""
47940         fi
47941         ;;
47942
47943       RC)
47944
47945
47946 # Source file extension for RC test sources.
47947 ac_ext=rc
47948
47949 # Object file extension for compiled RC test sources.
47950 objext=o
47951 objext_RC=$objext
47952
47953 # Code to be used in simple compile tests
47954 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
47955
47956 # Code to be used in simple link tests
47957 lt_simple_link_test_code="$lt_simple_compile_test_code"
47958
47959 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
47960
47961 # If no C compiler was specified, use CC.
47962 LTCC=${LTCC-"$CC"}
47963
47964 # Allow CC to be a program name with arguments.
47965 compiler=$CC
47966
47967
47968 # save warnings/boilerplate of simple test code
47969 ac_outfile=conftest.$ac_objext
47970 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
47971 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
47972 _lt_compiler_boilerplate=`cat conftest.err`
47973 $rm conftest*
47974
47975 ac_outfile=conftest.$ac_objext
47976 printf "$lt_simple_link_test_code" >conftest.$ac_ext
47977 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
47978 _lt_linker_boilerplate=`cat conftest.err`
47979 $rm conftest*
47980
47981
47982 # Allow CC to be a program name with arguments.
47983 lt_save_CC="$CC"
47984 CC=${RC-"windres"}
47985 compiler=$CC
47986 compiler_RC=$CC
47987 for cc_temp in $compiler""; do
47988   case $cc_temp in
47989     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
47990     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
47991     \-*) ;;
47992     *) break;;
47993   esac
47994 done
47995 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
47996
47997 lt_cv_prog_compiler_c_o_RC=yes
47998
47999 # The else clause should only fire when bootstrapping the
48000 # libtool distribution, otherwise you forgot to ship ltmain.sh
48001 # with your package, and you will get complaints that there are
48002 # no rules to generate ltmain.sh.
48003 if test -f "$ltmain"; then
48004   # See if we are running on zsh, and set the options which allow our commands through
48005   # without removal of \ escapes.
48006   if test -n "${ZSH_VERSION+set}" ; then
48007     setopt NO_GLOB_SUBST
48008   fi
48009   # Now quote all the things that may contain metacharacters while being
48010   # careful not to overquote the AC_SUBSTed values.  We take copies of the
48011   # variables and quote the copies for generation of the libtool script.
48012   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
48013     SED SHELL STRIP \
48014     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
48015     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
48016     deplibs_check_method reload_flag reload_cmds need_locks \
48017     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
48018     lt_cv_sys_global_symbol_to_c_name_address \
48019     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
48020     old_postinstall_cmds old_postuninstall_cmds \
48021     compiler_RC \
48022     CC_RC \
48023     LD_RC \
48024     lt_prog_compiler_wl_RC \
48025     lt_prog_compiler_pic_RC \
48026     lt_prog_compiler_static_RC \
48027     lt_prog_compiler_no_builtin_flag_RC \
48028     export_dynamic_flag_spec_RC \
48029     thread_safe_flag_spec_RC \
48030     whole_archive_flag_spec_RC \
48031     enable_shared_with_static_runtimes_RC \
48032     old_archive_cmds_RC \
48033     old_archive_from_new_cmds_RC \
48034     predep_objects_RC \
48035     postdep_objects_RC \
48036     predeps_RC \
48037     postdeps_RC \
48038     compiler_lib_search_path_RC \
48039     archive_cmds_RC \
48040     archive_expsym_cmds_RC \
48041     postinstall_cmds_RC \
48042     postuninstall_cmds_RC \
48043     old_archive_from_expsyms_cmds_RC \
48044     allow_undefined_flag_RC \
48045     no_undefined_flag_RC \
48046     export_symbols_cmds_RC \
48047     hardcode_libdir_flag_spec_RC \
48048     hardcode_libdir_flag_spec_ld_RC \
48049     hardcode_libdir_separator_RC \
48050     hardcode_automatic_RC \
48051     module_cmds_RC \
48052     module_expsym_cmds_RC \
48053     lt_cv_prog_compiler_c_o_RC \
48054     exclude_expsyms_RC \
48055     include_expsyms_RC; do
48056
48057     case $var in
48058     old_archive_cmds_RC | \
48059     old_archive_from_new_cmds_RC | \
48060     archive_cmds_RC | \
48061     archive_expsym_cmds_RC | \
48062     module_cmds_RC | \
48063     module_expsym_cmds_RC | \
48064     old_archive_from_expsyms_cmds_RC | \
48065     export_symbols_cmds_RC | \
48066     extract_expsyms_cmds | reload_cmds | finish_cmds | \
48067     postinstall_cmds | postuninstall_cmds | \
48068     old_postinstall_cmds | old_postuninstall_cmds | \
48069     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
48070       # Double-quote double-evaled strings.
48071       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
48072       ;;
48073     *)
48074       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
48075       ;;
48076     esac
48077   done
48078
48079   case $lt_echo in
48080   *'\$0 --fallback-echo"')
48081     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
48082     ;;
48083   esac
48084
48085 cfgfile="$ofile"
48086
48087   cat <<__EOF__ >> "$cfgfile"
48088 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
48089
48090 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
48091
48092 # Shell to use when invoking shell scripts.
48093 SHELL=$lt_SHELL
48094
48095 # Whether or not to build shared libraries.
48096 build_libtool_libs=$enable_shared
48097
48098 # Whether or not to build static libraries.
48099 build_old_libs=$enable_static
48100
48101 # Whether or not to add -lc for building shared libraries.
48102 build_libtool_need_lc=$archive_cmds_need_lc_RC
48103
48104 # Whether or not to disallow shared libs when runtime libs are static
48105 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
48106
48107 # Whether or not to optimize for fast installation.
48108 fast_install=$enable_fast_install
48109
48110 # The host system.
48111 host_alias=$host_alias
48112 host=$host
48113 host_os=$host_os
48114
48115 # The build system.
48116 build_alias=$build_alias
48117 build=$build
48118 build_os=$build_os
48119
48120 # An echo program that does not interpret backslashes.
48121 echo=$lt_echo
48122
48123 # The archiver.
48124 AR=$lt_AR
48125 AR_FLAGS=$lt_AR_FLAGS
48126
48127 # A C compiler.
48128 LTCC=$lt_LTCC
48129
48130 # A language-specific compiler.
48131 CC=$lt_compiler_RC
48132
48133 # Is the compiler the GNU C compiler?
48134 with_gcc=$GCC_RC
48135
48136 # An ERE matcher.
48137 EGREP=$lt_EGREP
48138
48139 # The linker used to build libraries.
48140 LD=$lt_LD_RC
48141
48142 # Whether we need hard or soft links.
48143 LN_S=$lt_LN_S
48144
48145 # A BSD-compatible nm program.
48146 NM=$lt_NM
48147
48148 # A symbol stripping program
48149 STRIP=$lt_STRIP
48150
48151 # Used to examine libraries when file_magic_cmd begins "file"
48152 MAGIC_CMD=$MAGIC_CMD
48153
48154 # Used on cygwin: DLL creation program.
48155 DLLTOOL="$DLLTOOL"
48156
48157 # Used on cygwin: object dumper.
48158 OBJDUMP="$OBJDUMP"
48159
48160 # Used on cygwin: assembler.
48161 AS="$AS"
48162
48163 # The name of the directory that contains temporary libtool files.
48164 objdir=$objdir
48165
48166 # How to create reloadable object files.
48167 reload_flag=$lt_reload_flag
48168 reload_cmds=$lt_reload_cmds
48169
48170 # How to pass a linker flag through the compiler.
48171 wl=$lt_lt_prog_compiler_wl_RC
48172
48173 # Object file suffix (normally "o").
48174 objext="$ac_objext"
48175
48176 # Old archive suffix (normally "a").
48177 libext="$libext"
48178
48179 # Shared library suffix (normally ".so").
48180 shrext_cmds='$shrext_cmds'
48181
48182 # Executable file suffix (normally "").
48183 exeext="$exeext"
48184
48185 # Additional compiler flags for building library objects.
48186 pic_flag=$lt_lt_prog_compiler_pic_RC
48187 pic_mode=$pic_mode
48188
48189 # What is the maximum length of a command?
48190 max_cmd_len=$lt_cv_sys_max_cmd_len
48191
48192 # Does compiler simultaneously support -c and -o options?
48193 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
48194
48195 # Must we lock files when doing compilation?
48196 need_locks=$lt_need_locks
48197
48198 # Do we need the lib prefix for modules?
48199 need_lib_prefix=$need_lib_prefix
48200
48201 # Do we need a version for libraries?
48202 need_version=$need_version
48203
48204 # Whether dlopen is supported.
48205 dlopen_support=$enable_dlopen
48206
48207 # Whether dlopen of programs is supported.
48208 dlopen_self=$enable_dlopen_self
48209
48210 # Whether dlopen of statically linked programs is supported.
48211 dlopen_self_static=$enable_dlopen_self_static
48212
48213 # Compiler flag to prevent dynamic linking.
48214 link_static_flag=$lt_lt_prog_compiler_static_RC
48215
48216 # Compiler flag to turn off builtin functions.
48217 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
48218
48219 # Compiler flag to allow reflexive dlopens.
48220 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
48221
48222 # Compiler flag to generate shared objects directly from archives.
48223 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
48224
48225 # Compiler flag to generate thread-safe objects.
48226 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
48227
48228 # Library versioning type.
48229 version_type=$version_type
48230
48231 # Format of library name prefix.
48232 libname_spec=$lt_libname_spec
48233
48234 # List of archive names.  First name is the real one, the rest are links.
48235 # The last name is the one that the linker finds with -lNAME.
48236 library_names_spec=$lt_library_names_spec
48237
48238 # The coded name of the library, if different from the real name.
48239 soname_spec=$lt_soname_spec
48240
48241 # Commands used to build and install an old-style archive.
48242 RANLIB=$lt_RANLIB
48243 old_archive_cmds=$lt_old_archive_cmds_RC
48244 old_postinstall_cmds=$lt_old_postinstall_cmds
48245 old_postuninstall_cmds=$lt_old_postuninstall_cmds
48246
48247 # Create an old-style archive from a shared archive.
48248 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
48249
48250 # Create a temporary old-style archive to link instead of a shared archive.
48251 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
48252
48253 # Commands used to build and install a shared archive.
48254 archive_cmds=$lt_archive_cmds_RC
48255 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
48256 postinstall_cmds=$lt_postinstall_cmds
48257 postuninstall_cmds=$lt_postuninstall_cmds
48258
48259 # Commands used to build a loadable module (assumed same as above if empty)
48260 module_cmds=$lt_module_cmds_RC
48261 module_expsym_cmds=$lt_module_expsym_cmds_RC
48262
48263 # Commands to strip libraries.
48264 old_striplib=$lt_old_striplib
48265 striplib=$lt_striplib
48266
48267 # Dependencies to place before the objects being linked to create a
48268 # shared library.
48269 predep_objects=$lt_predep_objects_RC
48270
48271 # Dependencies to place after the objects being linked to create a
48272 # shared library.
48273 postdep_objects=$lt_postdep_objects_RC
48274
48275 # Dependencies to place before the objects being linked to create a
48276 # shared library.
48277 predeps=$lt_predeps_RC
48278
48279 # Dependencies to place after the objects being linked to create a
48280 # shared library.
48281 postdeps=$lt_postdeps_RC
48282
48283 # The library search path used internally by the compiler when linking
48284 # a shared library.
48285 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
48286
48287 # Method to check whether dependent libraries are shared objects.
48288 deplibs_check_method=$lt_deplibs_check_method
48289
48290 # Command to use when deplibs_check_method == file_magic.
48291 file_magic_cmd=$lt_file_magic_cmd
48292
48293 # Flag that allows shared libraries with undefined symbols to be built.
48294 allow_undefined_flag=$lt_allow_undefined_flag_RC
48295
48296 # Flag that forces no undefined symbols.
48297 no_undefined_flag=$lt_no_undefined_flag_RC
48298
48299 # Commands used to finish a libtool library installation in a directory.
48300 finish_cmds=$lt_finish_cmds
48301
48302 # Same as above, but a single script fragment to be evaled but not shown.
48303 finish_eval=$lt_finish_eval
48304
48305 # Take the output of nm and produce a listing of raw symbols and C names.
48306 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
48307
48308 # Transform the output of nm in a proper C declaration
48309 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
48310
48311 # Transform the output of nm in a C name address pair
48312 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
48313
48314 # This is the shared library runtime path variable.
48315 runpath_var=$runpath_var
48316
48317 # This is the shared library path variable.
48318 shlibpath_var=$shlibpath_var
48319
48320 # Is shlibpath searched before the hard-coded library search path?
48321 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
48322
48323 # How to hardcode a shared library path into an executable.
48324 hardcode_action=$hardcode_action_RC
48325
48326 # Whether we should hardcode library paths into libraries.
48327 hardcode_into_libs=$hardcode_into_libs
48328
48329 # Flag to hardcode \$libdir into a binary during linking.
48330 # This must work even if \$libdir does not exist.
48331 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
48332
48333 # If ld is used when linking, flag to hardcode \$libdir into
48334 # a binary during linking. This must work even if \$libdir does
48335 # not exist.
48336 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
48337
48338 # Whether we need a single -rpath flag with a separated argument.
48339 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
48340
48341 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
48342 # resulting binary.
48343 hardcode_direct=$hardcode_direct_RC
48344
48345 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
48346 # resulting binary.
48347 hardcode_minus_L=$hardcode_minus_L_RC
48348
48349 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
48350 # the resulting binary.
48351 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
48352
48353 # Set to yes if building a shared library automatically hardcodes DIR into the library
48354 # and all subsequent libraries and executables linked against it.
48355 hardcode_automatic=$hardcode_automatic_RC
48356
48357 # Variables whose values should be saved in libtool wrapper scripts and
48358 # restored at relink time.
48359 variables_saved_for_relink="$variables_saved_for_relink"
48360
48361 # Whether libtool must link a program against all its dependency libraries.
48362 link_all_deplibs=$link_all_deplibs_RC
48363
48364 # Compile-time system search path for libraries
48365 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
48366
48367 # Run-time system search path for libraries
48368 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
48369
48370 # Fix the shell variable \$srcfile for the compiler.
48371 fix_srcfile_path="$fix_srcfile_path_RC"
48372
48373 # Set to yes if exported symbols are required.
48374 always_export_symbols=$always_export_symbols_RC
48375
48376 # The commands to list exported symbols.
48377 export_symbols_cmds=$lt_export_symbols_cmds_RC
48378
48379 # The commands to extract the exported symbol list from a shared archive.
48380 extract_expsyms_cmds=$lt_extract_expsyms_cmds
48381
48382 # Symbols that should not be listed in the preloaded symbols.
48383 exclude_expsyms=$lt_exclude_expsyms_RC
48384
48385 # Symbols that must always be exported.
48386 include_expsyms=$lt_include_expsyms_RC
48387
48388 # ### END LIBTOOL TAG CONFIG: $tagname
48389
48390 __EOF__
48391
48392
48393 else
48394   # If there is no Makefile yet, we rely on a make rule to execute
48395   # `config.status --recheck' to rerun these tests and create the
48396   # libtool script then.
48397   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
48398   if test -f "$ltmain_in"; then
48399     test -f Makefile && make "$ltmain"
48400   fi
48401 fi
48402
48403
48404 ac_ext=c
48405 ac_cpp='$CPP $CPPFLAGS'
48406 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
48407 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
48408 ac_compiler_gnu=$ac_cv_c_compiler_gnu
48409
48410 CC="$lt_save_CC"
48411
48412         ;;
48413
48414       *)
48415         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
48416 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
48417    { (exit 1); exit 1; }; }
48418         ;;
48419       esac
48420
48421       # Append the new tag name to the list of available tags.
48422       if test -n "$tagname" ; then
48423       available_tags="$available_tags $tagname"
48424     fi
48425     fi
48426   done
48427   IFS="$lt_save_ifs"
48428
48429   # Now substitute the updated list of available tags.
48430   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
48431     mv "${ofile}T" "$ofile"
48432     chmod +x "$ofile"
48433   else
48434     rm -f "${ofile}T"
48435     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
48436 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
48437    { (exit 1); exit 1; }; }
48438   fi
48439 fi
48440
48441
48442
48443 # This can be used to rebuild libtool when needed
48444 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
48445
48446 # Always use our own libtool.
48447 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
48448
48449 # Prevent multiple expansion
48450
48451
48452
48453
48454
48455
48456
48457
48458
48459
48460
48461
48462
48463
48464
48465
48466
48467
48468
48469
48470
48471
48472     # Check whether --enable-static-binary was given.
48473 if test "${enable_static_binary+set}" = set; then
48474   enableval=$enable_static_binary;
48475             case "$withval" in
48476             "" | y | ye | yes)
48477                 AMANDA_STATIC_LDFLAGS=-static
48478                 if test x"$enable_static" = x"no"; then
48479                         { { echo "$as_me:$LINENO: error: *** --enable-static-binary is incompatible with --disable-static" >&5
48480 echo "$as_me: error: *** --enable-static-binary is incompatible with --disable-static" >&2;}
48481    { (exit 1); exit 1; }; }
48482                 fi
48483                 ;;
48484             *n | no)
48485                 AMANDA_STATIC_LDFLAGS=
48486                 ;;
48487             esac
48488
48489 fi
48490
48491
48492
48493
48494 #
48495 # headers
48496 #
48497 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
48498 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
48499 if test "${ac_cv_header_stdc+set}" = set; then
48500   echo $ECHO_N "(cached) $ECHO_C" >&6
48501 else
48502   cat >conftest.$ac_ext <<_ACEOF
48503 /* confdefs.h.  */
48504 _ACEOF
48505 cat confdefs.h >>conftest.$ac_ext
48506 cat >>conftest.$ac_ext <<_ACEOF
48507 /* end confdefs.h.  */
48508 #include <stdlib.h>
48509 #include <stdarg.h>
48510 #include <string.h>
48511 #include <float.h>
48512
48513 int
48514 main ()
48515 {
48516
48517   ;
48518   return 0;
48519 }
48520 _ACEOF
48521 rm -f conftest.$ac_objext
48522 if { (ac_try="$ac_compile"
48523 case "(($ac_try" in
48524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48525   *) ac_try_echo=$ac_try;;
48526 esac
48527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48528   (eval "$ac_compile") 2>conftest.er1
48529   ac_status=$?
48530   grep -v '^ *+' conftest.er1 >conftest.err
48531   rm -f conftest.er1
48532   cat conftest.err >&5
48533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48534   (exit $ac_status); } && {
48535          test -z "$ac_c_werror_flag" ||
48536          test ! -s conftest.err
48537        } && test -s conftest.$ac_objext; then
48538   ac_cv_header_stdc=yes
48539 else
48540   echo "$as_me: failed program was:" >&5
48541 sed 's/^/| /' conftest.$ac_ext >&5
48542
48543         ac_cv_header_stdc=no
48544 fi
48545
48546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48547
48548 if test $ac_cv_header_stdc = yes; then
48549   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
48550   cat >conftest.$ac_ext <<_ACEOF
48551 /* confdefs.h.  */
48552 _ACEOF
48553 cat confdefs.h >>conftest.$ac_ext
48554 cat >>conftest.$ac_ext <<_ACEOF
48555 /* end confdefs.h.  */
48556 #include <string.h>
48557
48558 _ACEOF
48559 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48560   $EGREP "memchr" >/dev/null 2>&1; then
48561   :
48562 else
48563   ac_cv_header_stdc=no
48564 fi
48565 rm -f conftest*
48566
48567 fi
48568
48569 if test $ac_cv_header_stdc = yes; then
48570   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
48571   cat >conftest.$ac_ext <<_ACEOF
48572 /* confdefs.h.  */
48573 _ACEOF
48574 cat confdefs.h >>conftest.$ac_ext
48575 cat >>conftest.$ac_ext <<_ACEOF
48576 /* end confdefs.h.  */
48577 #include <stdlib.h>
48578
48579 _ACEOF
48580 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48581   $EGREP "free" >/dev/null 2>&1; then
48582   :
48583 else
48584   ac_cv_header_stdc=no
48585 fi
48586 rm -f conftest*
48587
48588 fi
48589
48590 if test $ac_cv_header_stdc = yes; then
48591   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
48592   if test "$cross_compiling" = yes; then
48593   :
48594 else
48595   cat >conftest.$ac_ext <<_ACEOF
48596 /* confdefs.h.  */
48597 _ACEOF
48598 cat confdefs.h >>conftest.$ac_ext
48599 cat >>conftest.$ac_ext <<_ACEOF
48600 /* end confdefs.h.  */
48601 #include <ctype.h>
48602 #include <stdlib.h>
48603 #if ((' ' & 0x0FF) == 0x020)
48604 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
48605 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
48606 #else
48607 # define ISLOWER(c) \
48608                    (('a' <= (c) && (c) <= 'i') \
48609                      || ('j' <= (c) && (c) <= 'r') \
48610                      || ('s' <= (c) && (c) <= 'z'))
48611 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
48612 #endif
48613
48614 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
48615 int
48616 main ()
48617 {
48618   int i;
48619   for (i = 0; i < 256; i++)
48620     if (XOR (islower (i), ISLOWER (i))
48621         || toupper (i) != TOUPPER (i))
48622       return 2;
48623   return 0;
48624 }
48625 _ACEOF
48626 rm -f conftest$ac_exeext
48627 if { (ac_try="$ac_link"
48628 case "(($ac_try" in
48629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48630   *) ac_try_echo=$ac_try;;
48631 esac
48632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48633   (eval "$ac_link") 2>&5
48634   ac_status=$?
48635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48636   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
48637   { (case "(($ac_try" in
48638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48639   *) ac_try_echo=$ac_try;;
48640 esac
48641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48642   (eval "$ac_try") 2>&5
48643   ac_status=$?
48644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48645   (exit $ac_status); }; }; then
48646   :
48647 else
48648   echo "$as_me: program exited with status $ac_status" >&5
48649 echo "$as_me: failed program was:" >&5
48650 sed 's/^/| /' conftest.$ac_ext >&5
48651
48652 ( exit $ac_status )
48653 ac_cv_header_stdc=no
48654 fi
48655 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
48656 fi
48657
48658
48659 fi
48660 fi
48661 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
48662 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
48663 if test $ac_cv_header_stdc = yes; then
48664
48665 cat >>confdefs.h <<\_ACEOF
48666 #define STDC_HEADERS 1
48667 _ACEOF
48668
48669 fi
48670
48671 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
48672 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
48673 if test "${ac_cv_header_time+set}" = set; then
48674   echo $ECHO_N "(cached) $ECHO_C" >&6
48675 else
48676   cat >conftest.$ac_ext <<_ACEOF
48677 /* confdefs.h.  */
48678 _ACEOF
48679 cat confdefs.h >>conftest.$ac_ext
48680 cat >>conftest.$ac_ext <<_ACEOF
48681 /* end confdefs.h.  */
48682 #include <sys/types.h>
48683 #include <sys/time.h>
48684 #include <time.h>
48685
48686 int
48687 main ()
48688 {
48689 if ((struct tm *) 0)
48690 return 0;
48691   ;
48692   return 0;
48693 }
48694 _ACEOF
48695 rm -f conftest.$ac_objext
48696 if { (ac_try="$ac_compile"
48697 case "(($ac_try" in
48698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48699   *) ac_try_echo=$ac_try;;
48700 esac
48701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48702   (eval "$ac_compile") 2>conftest.er1
48703   ac_status=$?
48704   grep -v '^ *+' conftest.er1 >conftest.err
48705   rm -f conftest.er1
48706   cat conftest.err >&5
48707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48708   (exit $ac_status); } && {
48709          test -z "$ac_c_werror_flag" ||
48710          test ! -s conftest.err
48711        } && test -s conftest.$ac_objext; then
48712   ac_cv_header_time=yes
48713 else
48714   echo "$as_me: failed program was:" >&5
48715 sed 's/^/| /' conftest.$ac_ext >&5
48716
48717         ac_cv_header_time=no
48718 fi
48719
48720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48721 fi
48722 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
48723 echo "${ECHO_T}$ac_cv_header_time" >&6; }
48724 if test $ac_cv_header_time = yes; then
48725
48726 cat >>confdefs.h <<\_ACEOF
48727 #define TIME_WITH_SYS_TIME 1
48728 _ACEOF
48729
48730 fi
48731
48732
48733
48734
48735
48736
48737
48738
48739
48740
48741
48742
48743
48744
48745
48746
48747
48748
48749
48750
48751
48752
48753
48754
48755
48756
48757 for ac_header in arpa/inet.h \
48758         grp.h \
48759         libc.h \
48760         libgen.h \
48761         limits.h \
48762         math.h \
48763         netdb.h \
48764         netinet/in.h \
48765         stdarg.h \
48766         stdlib.h \
48767         string.h \
48768         strings.h \
48769         sys/file.h \
48770         sys/ioctl.h \
48771         sys/ipc.h \
48772         sys/mntent.h \
48773         sys/param.h \
48774         sys/select.h \
48775         sys/stat.h \
48776         sys/shm.h \
48777         sys/time.h \
48778         sys/types.h \
48779         sys/uio.h \
48780         syslog.h \
48781         unistd.h \
48782
48783 do
48784 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
48785 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
48786   { echo "$as_me:$LINENO: checking for $ac_header" >&5
48787 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
48788 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
48789   echo $ECHO_N "(cached) $ECHO_C" >&6
48790 fi
48791 ac_res=`eval echo '${'$as_ac_Header'}'`
48792                { echo "$as_me:$LINENO: result: $ac_res" >&5
48793 echo "${ECHO_T}$ac_res" >&6; }
48794 else
48795   # Is the header compilable?
48796 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
48797 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
48798 cat >conftest.$ac_ext <<_ACEOF
48799 /* confdefs.h.  */
48800 _ACEOF
48801 cat confdefs.h >>conftest.$ac_ext
48802 cat >>conftest.$ac_ext <<_ACEOF
48803 /* end confdefs.h.  */
48804 $ac_includes_default
48805 #include <$ac_header>
48806 _ACEOF
48807 rm -f conftest.$ac_objext
48808 if { (ac_try="$ac_compile"
48809 case "(($ac_try" in
48810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48811   *) ac_try_echo=$ac_try;;
48812 esac
48813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48814   (eval "$ac_compile") 2>conftest.er1
48815   ac_status=$?
48816   grep -v '^ *+' conftest.er1 >conftest.err
48817   rm -f conftest.er1
48818   cat conftest.err >&5
48819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48820   (exit $ac_status); } && {
48821          test -z "$ac_c_werror_flag" ||
48822          test ! -s conftest.err
48823        } && test -s conftest.$ac_objext; then
48824   ac_header_compiler=yes
48825 else
48826   echo "$as_me: failed program was:" >&5
48827 sed 's/^/| /' conftest.$ac_ext >&5
48828
48829         ac_header_compiler=no
48830 fi
48831
48832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48833 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
48834 echo "${ECHO_T}$ac_header_compiler" >&6; }
48835
48836 # Is the header present?
48837 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
48838 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
48839 cat >conftest.$ac_ext <<_ACEOF
48840 /* confdefs.h.  */
48841 _ACEOF
48842 cat confdefs.h >>conftest.$ac_ext
48843 cat >>conftest.$ac_ext <<_ACEOF
48844 /* end confdefs.h.  */
48845 #include <$ac_header>
48846 _ACEOF
48847 if { (ac_try="$ac_cpp conftest.$ac_ext"
48848 case "(($ac_try" in
48849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48850   *) ac_try_echo=$ac_try;;
48851 esac
48852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48853   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
48854   ac_status=$?
48855   grep -v '^ *+' conftest.er1 >conftest.err
48856   rm -f conftest.er1
48857   cat conftest.err >&5
48858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48859   (exit $ac_status); } >/dev/null && {
48860          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
48861          test ! -s conftest.err
48862        }; then
48863   ac_header_preproc=yes
48864 else
48865   echo "$as_me: failed program was:" >&5
48866 sed 's/^/| /' conftest.$ac_ext >&5
48867
48868   ac_header_preproc=no
48869 fi
48870
48871 rm -f conftest.err conftest.$ac_ext
48872 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
48873 echo "${ECHO_T}$ac_header_preproc" >&6; }
48874
48875 # So?  What about this header?
48876 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
48877   yes:no: )
48878     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
48879 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
48880     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
48881 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
48882     ac_header_preproc=yes
48883     ;;
48884   no:yes:* )
48885     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
48886 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
48887     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
48888 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
48889     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
48890 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
48891     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
48892 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
48893     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
48894 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
48895     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
48896 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
48897
48898     ;;
48899 esac
48900 { echo "$as_me:$LINENO: checking for $ac_header" >&5
48901 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
48902 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
48903   echo $ECHO_N "(cached) $ECHO_C" >&6
48904 else
48905   eval "$as_ac_Header=\$ac_header_preproc"
48906 fi
48907 ac_res=`eval echo '${'$as_ac_Header'}'`
48908                { echo "$as_me:$LINENO: result: $ac_res" >&5
48909 echo "${ECHO_T}$ac_res" >&6; }
48910
48911 fi
48912 if test `eval echo '${'$as_ac_Header'}'` = yes; then
48913   cat >>confdefs.h <<_ACEOF
48914 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
48915 _ACEOF
48916
48917 fi
48918
48919 done
48920
48921
48922 #
48923 # Types
48924 #
48925 { echo "$as_me:$LINENO: checking if sockaddr_storage struct exists" >&5
48926 echo $ECHO_N "checking if sockaddr_storage struct exists... $ECHO_C" >&6; }
48927     if test "${ac_cv_has_sockaddr_storage+set}" = set; then
48928   echo $ECHO_N "(cached) $ECHO_C" >&6
48929 else
48930   cat >conftest.$ac_ext <<_ACEOF
48931 /* confdefs.h.  */
48932 _ACEOF
48933 cat confdefs.h >>conftest.$ac_ext
48934 cat >>conftest.$ac_ext <<_ACEOF
48935 /* end confdefs.h.  */
48936
48937 #       include <sys/types.h>
48938 #       include <sys/socket.h>
48939 int
48940 main ()
48941 {
48942 u_int i = sizeof (struct sockaddr_storage)
48943   ;
48944   return 0;
48945 }
48946 _ACEOF
48947 rm -f conftest.$ac_objext
48948 if { (ac_try="$ac_compile"
48949 case "(($ac_try" in
48950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48951   *) ac_try_echo=$ac_try;;
48952 esac
48953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48954   (eval "$ac_compile") 2>conftest.er1
48955   ac_status=$?
48956   grep -v '^ *+' conftest.er1 >conftest.err
48957   rm -f conftest.er1
48958   cat conftest.err >&5
48959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48960   (exit $ac_status); } && {
48961          test -z "$ac_c_werror_flag" ||
48962          test ! -s conftest.err
48963        } && test -s conftest.$ac_objext; then
48964   ac_cv_has_sockaddr_storage=yes
48965 else
48966   echo "$as_me: failed program was:" >&5
48967 sed 's/^/| /' conftest.$ac_ext >&5
48968
48969         ac_cv_has_sockaddr_storage=no
48970 fi
48971
48972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48973 fi
48974
48975     { echo "$as_me:$LINENO: result: $ac_cv_has_sockaddr_storage" >&5
48976 echo "${ECHO_T}$ac_cv_has_sockaddr_storage" >&6; }
48977     if test $ac_cv_has_sockaddr_storage = yes ; then
48978
48979 cat >>confdefs.h <<\_ACEOF
48980 #define HAVE_SOCKADDR_STORAGE 1
48981 _ACEOF
48982
48983     fi
48984 { echo "$as_me:$LINENO: checking for int" >&5
48985 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
48986 if test "${ac_cv_type_int+set}" = set; then
48987   echo $ECHO_N "(cached) $ECHO_C" >&6
48988 else
48989   cat >conftest.$ac_ext <<_ACEOF
48990 /* confdefs.h.  */
48991 _ACEOF
48992 cat confdefs.h >>conftest.$ac_ext
48993 cat >>conftest.$ac_ext <<_ACEOF
48994 /* end confdefs.h.  */
48995 $ac_includes_default
48996 typedef int ac__type_new_;
48997 int
48998 main ()
48999 {
49000 if ((ac__type_new_ *) 0)
49001   return 0;
49002 if (sizeof (ac__type_new_))
49003   return 0;
49004   ;
49005   return 0;
49006 }
49007 _ACEOF
49008 rm -f conftest.$ac_objext
49009 if { (ac_try="$ac_compile"
49010 case "(($ac_try" in
49011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49012   *) ac_try_echo=$ac_try;;
49013 esac
49014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49015   (eval "$ac_compile") 2>conftest.er1
49016   ac_status=$?
49017   grep -v '^ *+' conftest.er1 >conftest.err
49018   rm -f conftest.er1
49019   cat conftest.err >&5
49020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49021   (exit $ac_status); } && {
49022          test -z "$ac_c_werror_flag" ||
49023          test ! -s conftest.err
49024        } && test -s conftest.$ac_objext; then
49025   ac_cv_type_int=yes
49026 else
49027   echo "$as_me: failed program was:" >&5
49028 sed 's/^/| /' conftest.$ac_ext >&5
49029
49030         ac_cv_type_int=no
49031 fi
49032
49033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49034 fi
49035 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
49036 echo "${ECHO_T}$ac_cv_type_int" >&6; }
49037
49038 # The cast to long int works around a bug in the HP C Compiler
49039 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
49040 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
49041 # This bug is HP SR number 8606223364.
49042 { echo "$as_me:$LINENO: checking size of int" >&5
49043 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
49044 if test "${ac_cv_sizeof_int+set}" = set; then
49045   echo $ECHO_N "(cached) $ECHO_C" >&6
49046 else
49047   if test "$cross_compiling" = yes; then
49048   # Depending upon the size, compute the lo and hi bounds.
49049 cat >conftest.$ac_ext <<_ACEOF
49050 /* confdefs.h.  */
49051 _ACEOF
49052 cat confdefs.h >>conftest.$ac_ext
49053 cat >>conftest.$ac_ext <<_ACEOF
49054 /* end confdefs.h.  */
49055 $ac_includes_default
49056    typedef int ac__type_sizeof_;
49057 int
49058 main ()
49059 {
49060 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
49061 test_array [0] = 0
49062
49063   ;
49064   return 0;
49065 }
49066 _ACEOF
49067 rm -f conftest.$ac_objext
49068 if { (ac_try="$ac_compile"
49069 case "(($ac_try" in
49070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49071   *) ac_try_echo=$ac_try;;
49072 esac
49073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49074   (eval "$ac_compile") 2>conftest.er1
49075   ac_status=$?
49076   grep -v '^ *+' conftest.er1 >conftest.err
49077   rm -f conftest.er1
49078   cat conftest.err >&5
49079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49080   (exit $ac_status); } && {
49081          test -z "$ac_c_werror_flag" ||
49082          test ! -s conftest.err
49083        } && test -s conftest.$ac_objext; then
49084   ac_lo=0 ac_mid=0
49085   while :; do
49086     cat >conftest.$ac_ext <<_ACEOF
49087 /* confdefs.h.  */
49088 _ACEOF
49089 cat confdefs.h >>conftest.$ac_ext
49090 cat >>conftest.$ac_ext <<_ACEOF
49091 /* end confdefs.h.  */
49092 $ac_includes_default
49093    typedef int ac__type_sizeof_;
49094 int
49095 main ()
49096 {
49097 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
49098 test_array [0] = 0
49099
49100   ;
49101   return 0;
49102 }
49103 _ACEOF
49104 rm -f conftest.$ac_objext
49105 if { (ac_try="$ac_compile"
49106 case "(($ac_try" in
49107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49108   *) ac_try_echo=$ac_try;;
49109 esac
49110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49111   (eval "$ac_compile") 2>conftest.er1
49112   ac_status=$?
49113   grep -v '^ *+' conftest.er1 >conftest.err
49114   rm -f conftest.er1
49115   cat conftest.err >&5
49116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49117   (exit $ac_status); } && {
49118          test -z "$ac_c_werror_flag" ||
49119          test ! -s conftest.err
49120        } && test -s conftest.$ac_objext; then
49121   ac_hi=$ac_mid; break
49122 else
49123   echo "$as_me: failed program was:" >&5
49124 sed 's/^/| /' conftest.$ac_ext >&5
49125
49126         ac_lo=`expr $ac_mid + 1`
49127                         if test $ac_lo -le $ac_mid; then
49128                           ac_lo= ac_hi=
49129                           break
49130                         fi
49131                         ac_mid=`expr 2 '*' $ac_mid + 1`
49132 fi
49133
49134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49135   done
49136 else
49137   echo "$as_me: failed program was:" >&5
49138 sed 's/^/| /' conftest.$ac_ext >&5
49139
49140         cat >conftest.$ac_ext <<_ACEOF
49141 /* confdefs.h.  */
49142 _ACEOF
49143 cat confdefs.h >>conftest.$ac_ext
49144 cat >>conftest.$ac_ext <<_ACEOF
49145 /* end confdefs.h.  */
49146 $ac_includes_default
49147    typedef int ac__type_sizeof_;
49148 int
49149 main ()
49150 {
49151 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
49152 test_array [0] = 0
49153
49154   ;
49155   return 0;
49156 }
49157 _ACEOF
49158 rm -f conftest.$ac_objext
49159 if { (ac_try="$ac_compile"
49160 case "(($ac_try" in
49161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49162   *) ac_try_echo=$ac_try;;
49163 esac
49164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49165   (eval "$ac_compile") 2>conftest.er1
49166   ac_status=$?
49167   grep -v '^ *+' conftest.er1 >conftest.err
49168   rm -f conftest.er1
49169   cat conftest.err >&5
49170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49171   (exit $ac_status); } && {
49172          test -z "$ac_c_werror_flag" ||
49173          test ! -s conftest.err
49174        } && test -s conftest.$ac_objext; then
49175   ac_hi=-1 ac_mid=-1
49176   while :; do
49177     cat >conftest.$ac_ext <<_ACEOF
49178 /* confdefs.h.  */
49179 _ACEOF
49180 cat confdefs.h >>conftest.$ac_ext
49181 cat >>conftest.$ac_ext <<_ACEOF
49182 /* end confdefs.h.  */
49183 $ac_includes_default
49184    typedef int ac__type_sizeof_;
49185 int
49186 main ()
49187 {
49188 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
49189 test_array [0] = 0
49190
49191   ;
49192   return 0;
49193 }
49194 _ACEOF
49195 rm -f conftest.$ac_objext
49196 if { (ac_try="$ac_compile"
49197 case "(($ac_try" in
49198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49199   *) ac_try_echo=$ac_try;;
49200 esac
49201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49202   (eval "$ac_compile") 2>conftest.er1
49203   ac_status=$?
49204   grep -v '^ *+' conftest.er1 >conftest.err
49205   rm -f conftest.er1
49206   cat conftest.err >&5
49207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49208   (exit $ac_status); } && {
49209          test -z "$ac_c_werror_flag" ||
49210          test ! -s conftest.err
49211        } && test -s conftest.$ac_objext; then
49212   ac_lo=$ac_mid; break
49213 else
49214   echo "$as_me: failed program was:" >&5
49215 sed 's/^/| /' conftest.$ac_ext >&5
49216
49217         ac_hi=`expr '(' $ac_mid ')' - 1`
49218                         if test $ac_mid -le $ac_hi; then
49219                           ac_lo= ac_hi=
49220                           break
49221                         fi
49222                         ac_mid=`expr 2 '*' $ac_mid`
49223 fi
49224
49225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49226   done
49227 else
49228   echo "$as_me: failed program was:" >&5
49229 sed 's/^/| /' conftest.$ac_ext >&5
49230
49231         ac_lo= ac_hi=
49232 fi
49233
49234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49235 fi
49236
49237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49238 # Binary search between lo and hi bounds.
49239 while test "x$ac_lo" != "x$ac_hi"; do
49240   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
49241   cat >conftest.$ac_ext <<_ACEOF
49242 /* confdefs.h.  */
49243 _ACEOF
49244 cat confdefs.h >>conftest.$ac_ext
49245 cat >>conftest.$ac_ext <<_ACEOF
49246 /* end confdefs.h.  */
49247 $ac_includes_default
49248    typedef int ac__type_sizeof_;
49249 int
49250 main ()
49251 {
49252 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
49253 test_array [0] = 0
49254
49255   ;
49256   return 0;
49257 }
49258 _ACEOF
49259 rm -f conftest.$ac_objext
49260 if { (ac_try="$ac_compile"
49261 case "(($ac_try" in
49262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49263   *) ac_try_echo=$ac_try;;
49264 esac
49265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49266   (eval "$ac_compile") 2>conftest.er1
49267   ac_status=$?
49268   grep -v '^ *+' conftest.er1 >conftest.err
49269   rm -f conftest.er1
49270   cat conftest.err >&5
49271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49272   (exit $ac_status); } && {
49273          test -z "$ac_c_werror_flag" ||
49274          test ! -s conftest.err
49275        } && test -s conftest.$ac_objext; then
49276   ac_hi=$ac_mid
49277 else
49278   echo "$as_me: failed program was:" >&5
49279 sed 's/^/| /' conftest.$ac_ext >&5
49280
49281         ac_lo=`expr '(' $ac_mid ')' + 1`
49282 fi
49283
49284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49285 done
49286 case $ac_lo in
49287 ?*) ac_cv_sizeof_int=$ac_lo;;
49288 '') if test "$ac_cv_type_int" = yes; then
49289      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
49290 See \`config.log' for more details." >&5
49291 echo "$as_me: error: cannot compute sizeof (int)
49292 See \`config.log' for more details." >&2;}
49293    { (exit 77); exit 77; }; }
49294    else
49295      ac_cv_sizeof_int=0
49296    fi ;;
49297 esac
49298 else
49299   cat >conftest.$ac_ext <<_ACEOF
49300 /* confdefs.h.  */
49301 _ACEOF
49302 cat confdefs.h >>conftest.$ac_ext
49303 cat >>conftest.$ac_ext <<_ACEOF
49304 /* end confdefs.h.  */
49305 $ac_includes_default
49306    typedef int ac__type_sizeof_;
49307 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
49308 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
49309 #include <stdio.h>
49310 #include <stdlib.h>
49311 int
49312 main ()
49313 {
49314
49315   FILE *f = fopen ("conftest.val", "w");
49316   if (! f)
49317     return 1;
49318   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
49319     {
49320       long int i = longval ();
49321       if (i != ((long int) (sizeof (ac__type_sizeof_))))
49322         return 1;
49323       fprintf (f, "%ld\n", i);
49324     }
49325   else
49326     {
49327       unsigned long int i = ulongval ();
49328       if (i != ((long int) (sizeof (ac__type_sizeof_))))
49329         return 1;
49330       fprintf (f, "%lu\n", i);
49331     }
49332   return ferror (f) || fclose (f) != 0;
49333
49334   ;
49335   return 0;
49336 }
49337 _ACEOF
49338 rm -f conftest$ac_exeext
49339 if { (ac_try="$ac_link"
49340 case "(($ac_try" in
49341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49342   *) ac_try_echo=$ac_try;;
49343 esac
49344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49345   (eval "$ac_link") 2>&5
49346   ac_status=$?
49347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49348   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
49349   { (case "(($ac_try" in
49350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49351   *) ac_try_echo=$ac_try;;
49352 esac
49353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49354   (eval "$ac_try") 2>&5
49355   ac_status=$?
49356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49357   (exit $ac_status); }; }; then
49358   ac_cv_sizeof_int=`cat conftest.val`
49359 else
49360   echo "$as_me: program exited with status $ac_status" >&5
49361 echo "$as_me: failed program was:" >&5
49362 sed 's/^/| /' conftest.$ac_ext >&5
49363
49364 ( exit $ac_status )
49365 if test "$ac_cv_type_int" = yes; then
49366      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
49367 See \`config.log' for more details." >&5
49368 echo "$as_me: error: cannot compute sizeof (int)
49369 See \`config.log' for more details." >&2;}
49370    { (exit 77); exit 77; }; }
49371    else
49372      ac_cv_sizeof_int=0
49373    fi
49374 fi
49375 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
49376 fi
49377 rm -f conftest.val
49378 fi
49379 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
49380 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
49381
49382
49383
49384 cat >>confdefs.h <<_ACEOF
49385 #define SIZEOF_INT $ac_cv_sizeof_int
49386 _ACEOF
49387
49388
49389 { echo "$as_me:$LINENO: checking for long" >&5
49390 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
49391 if test "${ac_cv_type_long+set}" = set; then
49392   echo $ECHO_N "(cached) $ECHO_C" >&6
49393 else
49394   cat >conftest.$ac_ext <<_ACEOF
49395 /* confdefs.h.  */
49396 _ACEOF
49397 cat confdefs.h >>conftest.$ac_ext
49398 cat >>conftest.$ac_ext <<_ACEOF
49399 /* end confdefs.h.  */
49400 $ac_includes_default
49401 typedef long ac__type_new_;
49402 int
49403 main ()
49404 {
49405 if ((ac__type_new_ *) 0)
49406   return 0;
49407 if (sizeof (ac__type_new_))
49408   return 0;
49409   ;
49410   return 0;
49411 }
49412 _ACEOF
49413 rm -f conftest.$ac_objext
49414 if { (ac_try="$ac_compile"
49415 case "(($ac_try" in
49416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49417   *) ac_try_echo=$ac_try;;
49418 esac
49419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49420   (eval "$ac_compile") 2>conftest.er1
49421   ac_status=$?
49422   grep -v '^ *+' conftest.er1 >conftest.err
49423   rm -f conftest.er1
49424   cat conftest.err >&5
49425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49426   (exit $ac_status); } && {
49427          test -z "$ac_c_werror_flag" ||
49428          test ! -s conftest.err
49429        } && test -s conftest.$ac_objext; then
49430   ac_cv_type_long=yes
49431 else
49432   echo "$as_me: failed program was:" >&5
49433 sed 's/^/| /' conftest.$ac_ext >&5
49434
49435         ac_cv_type_long=no
49436 fi
49437
49438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49439 fi
49440 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
49441 echo "${ECHO_T}$ac_cv_type_long" >&6; }
49442
49443 # The cast to long int works around a bug in the HP C Compiler
49444 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
49445 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
49446 # This bug is HP SR number 8606223364.
49447 { echo "$as_me:$LINENO: checking size of long" >&5
49448 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
49449 if test "${ac_cv_sizeof_long+set}" = set; then
49450   echo $ECHO_N "(cached) $ECHO_C" >&6
49451 else
49452   if test "$cross_compiling" = yes; then
49453   # Depending upon the size, compute the lo and hi bounds.
49454 cat >conftest.$ac_ext <<_ACEOF
49455 /* confdefs.h.  */
49456 _ACEOF
49457 cat confdefs.h >>conftest.$ac_ext
49458 cat >>conftest.$ac_ext <<_ACEOF
49459 /* end confdefs.h.  */
49460 $ac_includes_default
49461    typedef long ac__type_sizeof_;
49462 int
49463 main ()
49464 {
49465 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
49466 test_array [0] = 0
49467
49468   ;
49469   return 0;
49470 }
49471 _ACEOF
49472 rm -f conftest.$ac_objext
49473 if { (ac_try="$ac_compile"
49474 case "(($ac_try" in
49475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49476   *) ac_try_echo=$ac_try;;
49477 esac
49478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49479   (eval "$ac_compile") 2>conftest.er1
49480   ac_status=$?
49481   grep -v '^ *+' conftest.er1 >conftest.err
49482   rm -f conftest.er1
49483   cat conftest.err >&5
49484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49485   (exit $ac_status); } && {
49486          test -z "$ac_c_werror_flag" ||
49487          test ! -s conftest.err
49488        } && test -s conftest.$ac_objext; then
49489   ac_lo=0 ac_mid=0
49490   while :; do
49491     cat >conftest.$ac_ext <<_ACEOF
49492 /* confdefs.h.  */
49493 _ACEOF
49494 cat confdefs.h >>conftest.$ac_ext
49495 cat >>conftest.$ac_ext <<_ACEOF
49496 /* end confdefs.h.  */
49497 $ac_includes_default
49498    typedef long ac__type_sizeof_;
49499 int
49500 main ()
49501 {
49502 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
49503 test_array [0] = 0
49504
49505   ;
49506   return 0;
49507 }
49508 _ACEOF
49509 rm -f conftest.$ac_objext
49510 if { (ac_try="$ac_compile"
49511 case "(($ac_try" in
49512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49513   *) ac_try_echo=$ac_try;;
49514 esac
49515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49516   (eval "$ac_compile") 2>conftest.er1
49517   ac_status=$?
49518   grep -v '^ *+' conftest.er1 >conftest.err
49519   rm -f conftest.er1
49520   cat conftest.err >&5
49521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49522   (exit $ac_status); } && {
49523          test -z "$ac_c_werror_flag" ||
49524          test ! -s conftest.err
49525        } && test -s conftest.$ac_objext; then
49526   ac_hi=$ac_mid; break
49527 else
49528   echo "$as_me: failed program was:" >&5
49529 sed 's/^/| /' conftest.$ac_ext >&5
49530
49531         ac_lo=`expr $ac_mid + 1`
49532                         if test $ac_lo -le $ac_mid; then
49533                           ac_lo= ac_hi=
49534                           break
49535                         fi
49536                         ac_mid=`expr 2 '*' $ac_mid + 1`
49537 fi
49538
49539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49540   done
49541 else
49542   echo "$as_me: failed program was:" >&5
49543 sed 's/^/| /' conftest.$ac_ext >&5
49544
49545         cat >conftest.$ac_ext <<_ACEOF
49546 /* confdefs.h.  */
49547 _ACEOF
49548 cat confdefs.h >>conftest.$ac_ext
49549 cat >>conftest.$ac_ext <<_ACEOF
49550 /* end confdefs.h.  */
49551 $ac_includes_default
49552    typedef long ac__type_sizeof_;
49553 int
49554 main ()
49555 {
49556 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
49557 test_array [0] = 0
49558
49559   ;
49560   return 0;
49561 }
49562 _ACEOF
49563 rm -f conftest.$ac_objext
49564 if { (ac_try="$ac_compile"
49565 case "(($ac_try" in
49566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49567   *) ac_try_echo=$ac_try;;
49568 esac
49569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49570   (eval "$ac_compile") 2>conftest.er1
49571   ac_status=$?
49572   grep -v '^ *+' conftest.er1 >conftest.err
49573   rm -f conftest.er1
49574   cat conftest.err >&5
49575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49576   (exit $ac_status); } && {
49577          test -z "$ac_c_werror_flag" ||
49578          test ! -s conftest.err
49579        } && test -s conftest.$ac_objext; then
49580   ac_hi=-1 ac_mid=-1
49581   while :; do
49582     cat >conftest.$ac_ext <<_ACEOF
49583 /* confdefs.h.  */
49584 _ACEOF
49585 cat confdefs.h >>conftest.$ac_ext
49586 cat >>conftest.$ac_ext <<_ACEOF
49587 /* end confdefs.h.  */
49588 $ac_includes_default
49589    typedef long ac__type_sizeof_;
49590 int
49591 main ()
49592 {
49593 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
49594 test_array [0] = 0
49595
49596   ;
49597   return 0;
49598 }
49599 _ACEOF
49600 rm -f conftest.$ac_objext
49601 if { (ac_try="$ac_compile"
49602 case "(($ac_try" in
49603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49604   *) ac_try_echo=$ac_try;;
49605 esac
49606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49607   (eval "$ac_compile") 2>conftest.er1
49608   ac_status=$?
49609   grep -v '^ *+' conftest.er1 >conftest.err
49610   rm -f conftest.er1
49611   cat conftest.err >&5
49612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49613   (exit $ac_status); } && {
49614          test -z "$ac_c_werror_flag" ||
49615          test ! -s conftest.err
49616        } && test -s conftest.$ac_objext; then
49617   ac_lo=$ac_mid; break
49618 else
49619   echo "$as_me: failed program was:" >&5
49620 sed 's/^/| /' conftest.$ac_ext >&5
49621
49622         ac_hi=`expr '(' $ac_mid ')' - 1`
49623                         if test $ac_mid -le $ac_hi; then
49624                           ac_lo= ac_hi=
49625                           break
49626                         fi
49627                         ac_mid=`expr 2 '*' $ac_mid`
49628 fi
49629
49630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49631   done
49632 else
49633   echo "$as_me: failed program was:" >&5
49634 sed 's/^/| /' conftest.$ac_ext >&5
49635
49636         ac_lo= ac_hi=
49637 fi
49638
49639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49640 fi
49641
49642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49643 # Binary search between lo and hi bounds.
49644 while test "x$ac_lo" != "x$ac_hi"; do
49645   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
49646   cat >conftest.$ac_ext <<_ACEOF
49647 /* confdefs.h.  */
49648 _ACEOF
49649 cat confdefs.h >>conftest.$ac_ext
49650 cat >>conftest.$ac_ext <<_ACEOF
49651 /* end confdefs.h.  */
49652 $ac_includes_default
49653    typedef long ac__type_sizeof_;
49654 int
49655 main ()
49656 {
49657 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
49658 test_array [0] = 0
49659
49660   ;
49661   return 0;
49662 }
49663 _ACEOF
49664 rm -f conftest.$ac_objext
49665 if { (ac_try="$ac_compile"
49666 case "(($ac_try" in
49667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49668   *) ac_try_echo=$ac_try;;
49669 esac
49670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49671   (eval "$ac_compile") 2>conftest.er1
49672   ac_status=$?
49673   grep -v '^ *+' conftest.er1 >conftest.err
49674   rm -f conftest.er1
49675   cat conftest.err >&5
49676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49677   (exit $ac_status); } && {
49678          test -z "$ac_c_werror_flag" ||
49679          test ! -s conftest.err
49680        } && test -s conftest.$ac_objext; then
49681   ac_hi=$ac_mid
49682 else
49683   echo "$as_me: failed program was:" >&5
49684 sed 's/^/| /' conftest.$ac_ext >&5
49685
49686         ac_lo=`expr '(' $ac_mid ')' + 1`
49687 fi
49688
49689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49690 done
49691 case $ac_lo in
49692 ?*) ac_cv_sizeof_long=$ac_lo;;
49693 '') if test "$ac_cv_type_long" = yes; then
49694      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
49695 See \`config.log' for more details." >&5
49696 echo "$as_me: error: cannot compute sizeof (long)
49697 See \`config.log' for more details." >&2;}
49698    { (exit 77); exit 77; }; }
49699    else
49700      ac_cv_sizeof_long=0
49701    fi ;;
49702 esac
49703 else
49704   cat >conftest.$ac_ext <<_ACEOF
49705 /* confdefs.h.  */
49706 _ACEOF
49707 cat confdefs.h >>conftest.$ac_ext
49708 cat >>conftest.$ac_ext <<_ACEOF
49709 /* end confdefs.h.  */
49710 $ac_includes_default
49711    typedef long ac__type_sizeof_;
49712 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
49713 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
49714 #include <stdio.h>
49715 #include <stdlib.h>
49716 int
49717 main ()
49718 {
49719
49720   FILE *f = fopen ("conftest.val", "w");
49721   if (! f)
49722     return 1;
49723   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
49724     {
49725       long int i = longval ();
49726       if (i != ((long int) (sizeof (ac__type_sizeof_))))
49727         return 1;
49728       fprintf (f, "%ld\n", i);
49729     }
49730   else
49731     {
49732       unsigned long int i = ulongval ();
49733       if (i != ((long int) (sizeof (ac__type_sizeof_))))
49734         return 1;
49735       fprintf (f, "%lu\n", i);
49736     }
49737   return ferror (f) || fclose (f) != 0;
49738
49739   ;
49740   return 0;
49741 }
49742 _ACEOF
49743 rm -f conftest$ac_exeext
49744 if { (ac_try="$ac_link"
49745 case "(($ac_try" in
49746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49747   *) ac_try_echo=$ac_try;;
49748 esac
49749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49750   (eval "$ac_link") 2>&5
49751   ac_status=$?
49752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49753   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
49754   { (case "(($ac_try" in
49755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49756   *) ac_try_echo=$ac_try;;
49757 esac
49758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49759   (eval "$ac_try") 2>&5
49760   ac_status=$?
49761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49762   (exit $ac_status); }; }; then
49763   ac_cv_sizeof_long=`cat conftest.val`
49764 else
49765   echo "$as_me: program exited with status $ac_status" >&5
49766 echo "$as_me: failed program was:" >&5
49767 sed 's/^/| /' conftest.$ac_ext >&5
49768
49769 ( exit $ac_status )
49770 if test "$ac_cv_type_long" = yes; then
49771      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
49772 See \`config.log' for more details." >&5
49773 echo "$as_me: error: cannot compute sizeof (long)
49774 See \`config.log' for more details." >&2;}
49775    { (exit 77); exit 77; }; }
49776    else
49777      ac_cv_sizeof_long=0
49778    fi
49779 fi
49780 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
49781 fi
49782 rm -f conftest.val
49783 fi
49784 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
49785 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
49786
49787
49788
49789 cat >>confdefs.h <<_ACEOF
49790 #define SIZEOF_LONG $ac_cv_sizeof_long
49791 _ACEOF
49792
49793
49794 { echo "$as_me:$LINENO: checking for long long" >&5
49795 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
49796 if test "${ac_cv_type_long_long+set}" = set; then
49797   echo $ECHO_N "(cached) $ECHO_C" >&6
49798 else
49799   cat >conftest.$ac_ext <<_ACEOF
49800 /* confdefs.h.  */
49801 _ACEOF
49802 cat confdefs.h >>conftest.$ac_ext
49803 cat >>conftest.$ac_ext <<_ACEOF
49804 /* end confdefs.h.  */
49805 $ac_includes_default
49806 typedef long long ac__type_new_;
49807 int
49808 main ()
49809 {
49810 if ((ac__type_new_ *) 0)
49811   return 0;
49812 if (sizeof (ac__type_new_))
49813   return 0;
49814   ;
49815   return 0;
49816 }
49817 _ACEOF
49818 rm -f conftest.$ac_objext
49819 if { (ac_try="$ac_compile"
49820 case "(($ac_try" in
49821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49822   *) ac_try_echo=$ac_try;;
49823 esac
49824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49825   (eval "$ac_compile") 2>conftest.er1
49826   ac_status=$?
49827   grep -v '^ *+' conftest.er1 >conftest.err
49828   rm -f conftest.er1
49829   cat conftest.err >&5
49830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49831   (exit $ac_status); } && {
49832          test -z "$ac_c_werror_flag" ||
49833          test ! -s conftest.err
49834        } && test -s conftest.$ac_objext; then
49835   ac_cv_type_long_long=yes
49836 else
49837   echo "$as_me: failed program was:" >&5
49838 sed 's/^/| /' conftest.$ac_ext >&5
49839
49840         ac_cv_type_long_long=no
49841 fi
49842
49843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49844 fi
49845 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
49846 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
49847
49848 # The cast to long int works around a bug in the HP C Compiler
49849 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
49850 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
49851 # This bug is HP SR number 8606223364.
49852 { echo "$as_me:$LINENO: checking size of long long" >&5
49853 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
49854 if test "${ac_cv_sizeof_long_long+set}" = set; then
49855   echo $ECHO_N "(cached) $ECHO_C" >&6
49856 else
49857   if test "$cross_compiling" = yes; then
49858   # Depending upon the size, compute the lo and hi bounds.
49859 cat >conftest.$ac_ext <<_ACEOF
49860 /* confdefs.h.  */
49861 _ACEOF
49862 cat confdefs.h >>conftest.$ac_ext
49863 cat >>conftest.$ac_ext <<_ACEOF
49864 /* end confdefs.h.  */
49865 $ac_includes_default
49866    typedef long long ac__type_sizeof_;
49867 int
49868 main ()
49869 {
49870 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
49871 test_array [0] = 0
49872
49873   ;
49874   return 0;
49875 }
49876 _ACEOF
49877 rm -f conftest.$ac_objext
49878 if { (ac_try="$ac_compile"
49879 case "(($ac_try" in
49880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49881   *) ac_try_echo=$ac_try;;
49882 esac
49883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49884   (eval "$ac_compile") 2>conftest.er1
49885   ac_status=$?
49886   grep -v '^ *+' conftest.er1 >conftest.err
49887   rm -f conftest.er1
49888   cat conftest.err >&5
49889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49890   (exit $ac_status); } && {
49891          test -z "$ac_c_werror_flag" ||
49892          test ! -s conftest.err
49893        } && test -s conftest.$ac_objext; then
49894   ac_lo=0 ac_mid=0
49895   while :; do
49896     cat >conftest.$ac_ext <<_ACEOF
49897 /* confdefs.h.  */
49898 _ACEOF
49899 cat confdefs.h >>conftest.$ac_ext
49900 cat >>conftest.$ac_ext <<_ACEOF
49901 /* end confdefs.h.  */
49902 $ac_includes_default
49903    typedef long long ac__type_sizeof_;
49904 int
49905 main ()
49906 {
49907 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
49908 test_array [0] = 0
49909
49910   ;
49911   return 0;
49912 }
49913 _ACEOF
49914 rm -f conftest.$ac_objext
49915 if { (ac_try="$ac_compile"
49916 case "(($ac_try" in
49917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49918   *) ac_try_echo=$ac_try;;
49919 esac
49920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49921   (eval "$ac_compile") 2>conftest.er1
49922   ac_status=$?
49923   grep -v '^ *+' conftest.er1 >conftest.err
49924   rm -f conftest.er1
49925   cat conftest.err >&5
49926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49927   (exit $ac_status); } && {
49928          test -z "$ac_c_werror_flag" ||
49929          test ! -s conftest.err
49930        } && test -s conftest.$ac_objext; then
49931   ac_hi=$ac_mid; break
49932 else
49933   echo "$as_me: failed program was:" >&5
49934 sed 's/^/| /' conftest.$ac_ext >&5
49935
49936         ac_lo=`expr $ac_mid + 1`
49937                         if test $ac_lo -le $ac_mid; then
49938                           ac_lo= ac_hi=
49939                           break
49940                         fi
49941                         ac_mid=`expr 2 '*' $ac_mid + 1`
49942 fi
49943
49944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49945   done
49946 else
49947   echo "$as_me: failed program was:" >&5
49948 sed 's/^/| /' conftest.$ac_ext >&5
49949
49950         cat >conftest.$ac_ext <<_ACEOF
49951 /* confdefs.h.  */
49952 _ACEOF
49953 cat confdefs.h >>conftest.$ac_ext
49954 cat >>conftest.$ac_ext <<_ACEOF
49955 /* end confdefs.h.  */
49956 $ac_includes_default
49957    typedef long long ac__type_sizeof_;
49958 int
49959 main ()
49960 {
49961 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
49962 test_array [0] = 0
49963
49964   ;
49965   return 0;
49966 }
49967 _ACEOF
49968 rm -f conftest.$ac_objext
49969 if { (ac_try="$ac_compile"
49970 case "(($ac_try" in
49971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49972   *) ac_try_echo=$ac_try;;
49973 esac
49974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49975   (eval "$ac_compile") 2>conftest.er1
49976   ac_status=$?
49977   grep -v '^ *+' conftest.er1 >conftest.err
49978   rm -f conftest.er1
49979   cat conftest.err >&5
49980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49981   (exit $ac_status); } && {
49982          test -z "$ac_c_werror_flag" ||
49983          test ! -s conftest.err
49984        } && test -s conftest.$ac_objext; then
49985   ac_hi=-1 ac_mid=-1
49986   while :; do
49987     cat >conftest.$ac_ext <<_ACEOF
49988 /* confdefs.h.  */
49989 _ACEOF
49990 cat confdefs.h >>conftest.$ac_ext
49991 cat >>conftest.$ac_ext <<_ACEOF
49992 /* end confdefs.h.  */
49993 $ac_includes_default
49994    typedef long long ac__type_sizeof_;
49995 int
49996 main ()
49997 {
49998 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
49999 test_array [0] = 0
50000
50001   ;
50002   return 0;
50003 }
50004 _ACEOF
50005 rm -f conftest.$ac_objext
50006 if { (ac_try="$ac_compile"
50007 case "(($ac_try" in
50008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50009   *) ac_try_echo=$ac_try;;
50010 esac
50011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50012   (eval "$ac_compile") 2>conftest.er1
50013   ac_status=$?
50014   grep -v '^ *+' conftest.er1 >conftest.err
50015   rm -f conftest.er1
50016   cat conftest.err >&5
50017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50018   (exit $ac_status); } && {
50019          test -z "$ac_c_werror_flag" ||
50020          test ! -s conftest.err
50021        } && test -s conftest.$ac_objext; then
50022   ac_lo=$ac_mid; break
50023 else
50024   echo "$as_me: failed program was:" >&5
50025 sed 's/^/| /' conftest.$ac_ext >&5
50026
50027         ac_hi=`expr '(' $ac_mid ')' - 1`
50028                         if test $ac_mid -le $ac_hi; then
50029                           ac_lo= ac_hi=
50030                           break
50031                         fi
50032                         ac_mid=`expr 2 '*' $ac_mid`
50033 fi
50034
50035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50036   done
50037 else
50038   echo "$as_me: failed program was:" >&5
50039 sed 's/^/| /' conftest.$ac_ext >&5
50040
50041         ac_lo= ac_hi=
50042 fi
50043
50044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50045 fi
50046
50047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50048 # Binary search between lo and hi bounds.
50049 while test "x$ac_lo" != "x$ac_hi"; do
50050   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
50051   cat >conftest.$ac_ext <<_ACEOF
50052 /* confdefs.h.  */
50053 _ACEOF
50054 cat confdefs.h >>conftest.$ac_ext
50055 cat >>conftest.$ac_ext <<_ACEOF
50056 /* end confdefs.h.  */
50057 $ac_includes_default
50058    typedef long long ac__type_sizeof_;
50059 int
50060 main ()
50061 {
50062 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
50063 test_array [0] = 0
50064
50065   ;
50066   return 0;
50067 }
50068 _ACEOF
50069 rm -f conftest.$ac_objext
50070 if { (ac_try="$ac_compile"
50071 case "(($ac_try" in
50072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50073   *) ac_try_echo=$ac_try;;
50074 esac
50075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50076   (eval "$ac_compile") 2>conftest.er1
50077   ac_status=$?
50078   grep -v '^ *+' conftest.er1 >conftest.err
50079   rm -f conftest.er1
50080   cat conftest.err >&5
50081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50082   (exit $ac_status); } && {
50083          test -z "$ac_c_werror_flag" ||
50084          test ! -s conftest.err
50085        } && test -s conftest.$ac_objext; then
50086   ac_hi=$ac_mid
50087 else
50088   echo "$as_me: failed program was:" >&5
50089 sed 's/^/| /' conftest.$ac_ext >&5
50090
50091         ac_lo=`expr '(' $ac_mid ')' + 1`
50092 fi
50093
50094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50095 done
50096 case $ac_lo in
50097 ?*) ac_cv_sizeof_long_long=$ac_lo;;
50098 '') if test "$ac_cv_type_long_long" = yes; then
50099      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
50100 See \`config.log' for more details." >&5
50101 echo "$as_me: error: cannot compute sizeof (long long)
50102 See \`config.log' for more details." >&2;}
50103    { (exit 77); exit 77; }; }
50104    else
50105      ac_cv_sizeof_long_long=0
50106    fi ;;
50107 esac
50108 else
50109   cat >conftest.$ac_ext <<_ACEOF
50110 /* confdefs.h.  */
50111 _ACEOF
50112 cat confdefs.h >>conftest.$ac_ext
50113 cat >>conftest.$ac_ext <<_ACEOF
50114 /* end confdefs.h.  */
50115 $ac_includes_default
50116    typedef long long ac__type_sizeof_;
50117 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
50118 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
50119 #include <stdio.h>
50120 #include <stdlib.h>
50121 int
50122 main ()
50123 {
50124
50125   FILE *f = fopen ("conftest.val", "w");
50126   if (! f)
50127     return 1;
50128   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
50129     {
50130       long int i = longval ();
50131       if (i != ((long int) (sizeof (ac__type_sizeof_))))
50132         return 1;
50133       fprintf (f, "%ld\n", i);
50134     }
50135   else
50136     {
50137       unsigned long int i = ulongval ();
50138       if (i != ((long int) (sizeof (ac__type_sizeof_))))
50139         return 1;
50140       fprintf (f, "%lu\n", i);
50141     }
50142   return ferror (f) || fclose (f) != 0;
50143
50144   ;
50145   return 0;
50146 }
50147 _ACEOF
50148 rm -f conftest$ac_exeext
50149 if { (ac_try="$ac_link"
50150 case "(($ac_try" in
50151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50152   *) ac_try_echo=$ac_try;;
50153 esac
50154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50155   (eval "$ac_link") 2>&5
50156   ac_status=$?
50157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50158   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
50159   { (case "(($ac_try" in
50160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50161   *) ac_try_echo=$ac_try;;
50162 esac
50163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50164   (eval "$ac_try") 2>&5
50165   ac_status=$?
50166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50167   (exit $ac_status); }; }; then
50168   ac_cv_sizeof_long_long=`cat conftest.val`
50169 else
50170   echo "$as_me: program exited with status $ac_status" >&5
50171 echo "$as_me: failed program was:" >&5
50172 sed 's/^/| /' conftest.$ac_ext >&5
50173
50174 ( exit $ac_status )
50175 if test "$ac_cv_type_long_long" = yes; then
50176      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
50177 See \`config.log' for more details." >&5
50178 echo "$as_me: error: cannot compute sizeof (long long)
50179 See \`config.log' for more details." >&2;}
50180    { (exit 77); exit 77; }; }
50181    else
50182      ac_cv_sizeof_long_long=0
50183    fi
50184 fi
50185 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
50186 fi
50187 rm -f conftest.val
50188 fi
50189 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
50190 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
50191
50192
50193
50194 cat >>confdefs.h <<_ACEOF
50195 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
50196 _ACEOF
50197
50198
50199 { echo "$as_me:$LINENO: checking for intmax_t" >&5
50200 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
50201 if test "${ac_cv_type_intmax_t+set}" = set; then
50202   echo $ECHO_N "(cached) $ECHO_C" >&6
50203 else
50204   cat >conftest.$ac_ext <<_ACEOF
50205 /* confdefs.h.  */
50206 _ACEOF
50207 cat confdefs.h >>conftest.$ac_ext
50208 cat >>conftest.$ac_ext <<_ACEOF
50209 /* end confdefs.h.  */
50210 $ac_includes_default
50211 typedef intmax_t ac__type_new_;
50212 int
50213 main ()
50214 {
50215 if ((ac__type_new_ *) 0)
50216   return 0;
50217 if (sizeof (ac__type_new_))
50218   return 0;
50219   ;
50220   return 0;
50221 }
50222 _ACEOF
50223 rm -f conftest.$ac_objext
50224 if { (ac_try="$ac_compile"
50225 case "(($ac_try" in
50226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50227   *) ac_try_echo=$ac_try;;
50228 esac
50229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50230   (eval "$ac_compile") 2>conftest.er1
50231   ac_status=$?
50232   grep -v '^ *+' conftest.er1 >conftest.err
50233   rm -f conftest.er1
50234   cat conftest.err >&5
50235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50236   (exit $ac_status); } && {
50237          test -z "$ac_c_werror_flag" ||
50238          test ! -s conftest.err
50239        } && test -s conftest.$ac_objext; then
50240   ac_cv_type_intmax_t=yes
50241 else
50242   echo "$as_me: failed program was:" >&5
50243 sed 's/^/| /' conftest.$ac_ext >&5
50244
50245         ac_cv_type_intmax_t=no
50246 fi
50247
50248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50249 fi
50250 { echo "$as_me:$LINENO: result: $ac_cv_type_intmax_t" >&5
50251 echo "${ECHO_T}$ac_cv_type_intmax_t" >&6; }
50252
50253 # The cast to long int works around a bug in the HP C Compiler
50254 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
50255 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
50256 # This bug is HP SR number 8606223364.
50257 { echo "$as_me:$LINENO: checking size of intmax_t" >&5
50258 echo $ECHO_N "checking size of intmax_t... $ECHO_C" >&6; }
50259 if test "${ac_cv_sizeof_intmax_t+set}" = set; then
50260   echo $ECHO_N "(cached) $ECHO_C" >&6
50261 else
50262   if test "$cross_compiling" = yes; then
50263   # Depending upon the size, compute the lo and hi bounds.
50264 cat >conftest.$ac_ext <<_ACEOF
50265 /* confdefs.h.  */
50266 _ACEOF
50267 cat confdefs.h >>conftest.$ac_ext
50268 cat >>conftest.$ac_ext <<_ACEOF
50269 /* end confdefs.h.  */
50270 $ac_includes_default
50271    typedef intmax_t ac__type_sizeof_;
50272 int
50273 main ()
50274 {
50275 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
50276 test_array [0] = 0
50277
50278   ;
50279   return 0;
50280 }
50281 _ACEOF
50282 rm -f conftest.$ac_objext
50283 if { (ac_try="$ac_compile"
50284 case "(($ac_try" in
50285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50286   *) ac_try_echo=$ac_try;;
50287 esac
50288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50289   (eval "$ac_compile") 2>conftest.er1
50290   ac_status=$?
50291   grep -v '^ *+' conftest.er1 >conftest.err
50292   rm -f conftest.er1
50293   cat conftest.err >&5
50294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50295   (exit $ac_status); } && {
50296          test -z "$ac_c_werror_flag" ||
50297          test ! -s conftest.err
50298        } && test -s conftest.$ac_objext; then
50299   ac_lo=0 ac_mid=0
50300   while :; do
50301     cat >conftest.$ac_ext <<_ACEOF
50302 /* confdefs.h.  */
50303 _ACEOF
50304 cat confdefs.h >>conftest.$ac_ext
50305 cat >>conftest.$ac_ext <<_ACEOF
50306 /* end confdefs.h.  */
50307 $ac_includes_default
50308    typedef intmax_t ac__type_sizeof_;
50309 int
50310 main ()
50311 {
50312 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
50313 test_array [0] = 0
50314
50315   ;
50316   return 0;
50317 }
50318 _ACEOF
50319 rm -f conftest.$ac_objext
50320 if { (ac_try="$ac_compile"
50321 case "(($ac_try" in
50322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50323   *) ac_try_echo=$ac_try;;
50324 esac
50325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50326   (eval "$ac_compile") 2>conftest.er1
50327   ac_status=$?
50328   grep -v '^ *+' conftest.er1 >conftest.err
50329   rm -f conftest.er1
50330   cat conftest.err >&5
50331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50332   (exit $ac_status); } && {
50333          test -z "$ac_c_werror_flag" ||
50334          test ! -s conftest.err
50335        } && test -s conftest.$ac_objext; then
50336   ac_hi=$ac_mid; break
50337 else
50338   echo "$as_me: failed program was:" >&5
50339 sed 's/^/| /' conftest.$ac_ext >&5
50340
50341         ac_lo=`expr $ac_mid + 1`
50342                         if test $ac_lo -le $ac_mid; then
50343                           ac_lo= ac_hi=
50344                           break
50345                         fi
50346                         ac_mid=`expr 2 '*' $ac_mid + 1`
50347 fi
50348
50349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50350   done
50351 else
50352   echo "$as_me: failed program was:" >&5
50353 sed 's/^/| /' conftest.$ac_ext >&5
50354
50355         cat >conftest.$ac_ext <<_ACEOF
50356 /* confdefs.h.  */
50357 _ACEOF
50358 cat confdefs.h >>conftest.$ac_ext
50359 cat >>conftest.$ac_ext <<_ACEOF
50360 /* end confdefs.h.  */
50361 $ac_includes_default
50362    typedef intmax_t ac__type_sizeof_;
50363 int
50364 main ()
50365 {
50366 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
50367 test_array [0] = 0
50368
50369   ;
50370   return 0;
50371 }
50372 _ACEOF
50373 rm -f conftest.$ac_objext
50374 if { (ac_try="$ac_compile"
50375 case "(($ac_try" in
50376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50377   *) ac_try_echo=$ac_try;;
50378 esac
50379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50380   (eval "$ac_compile") 2>conftest.er1
50381   ac_status=$?
50382   grep -v '^ *+' conftest.er1 >conftest.err
50383   rm -f conftest.er1
50384   cat conftest.err >&5
50385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50386   (exit $ac_status); } && {
50387          test -z "$ac_c_werror_flag" ||
50388          test ! -s conftest.err
50389        } && test -s conftest.$ac_objext; then
50390   ac_hi=-1 ac_mid=-1
50391   while :; do
50392     cat >conftest.$ac_ext <<_ACEOF
50393 /* confdefs.h.  */
50394 _ACEOF
50395 cat confdefs.h >>conftest.$ac_ext
50396 cat >>conftest.$ac_ext <<_ACEOF
50397 /* end confdefs.h.  */
50398 $ac_includes_default
50399    typedef intmax_t ac__type_sizeof_;
50400 int
50401 main ()
50402 {
50403 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
50404 test_array [0] = 0
50405
50406   ;
50407   return 0;
50408 }
50409 _ACEOF
50410 rm -f conftest.$ac_objext
50411 if { (ac_try="$ac_compile"
50412 case "(($ac_try" in
50413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50414   *) ac_try_echo=$ac_try;;
50415 esac
50416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50417   (eval "$ac_compile") 2>conftest.er1
50418   ac_status=$?
50419   grep -v '^ *+' conftest.er1 >conftest.err
50420   rm -f conftest.er1
50421   cat conftest.err >&5
50422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50423   (exit $ac_status); } && {
50424          test -z "$ac_c_werror_flag" ||
50425          test ! -s conftest.err
50426        } && test -s conftest.$ac_objext; then
50427   ac_lo=$ac_mid; break
50428 else
50429   echo "$as_me: failed program was:" >&5
50430 sed 's/^/| /' conftest.$ac_ext >&5
50431
50432         ac_hi=`expr '(' $ac_mid ')' - 1`
50433                         if test $ac_mid -le $ac_hi; then
50434                           ac_lo= ac_hi=
50435                           break
50436                         fi
50437                         ac_mid=`expr 2 '*' $ac_mid`
50438 fi
50439
50440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50441   done
50442 else
50443   echo "$as_me: failed program was:" >&5
50444 sed 's/^/| /' conftest.$ac_ext >&5
50445
50446         ac_lo= ac_hi=
50447 fi
50448
50449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50450 fi
50451
50452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50453 # Binary search between lo and hi bounds.
50454 while test "x$ac_lo" != "x$ac_hi"; do
50455   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
50456   cat >conftest.$ac_ext <<_ACEOF
50457 /* confdefs.h.  */
50458 _ACEOF
50459 cat confdefs.h >>conftest.$ac_ext
50460 cat >>conftest.$ac_ext <<_ACEOF
50461 /* end confdefs.h.  */
50462 $ac_includes_default
50463    typedef intmax_t ac__type_sizeof_;
50464 int
50465 main ()
50466 {
50467 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
50468 test_array [0] = 0
50469
50470   ;
50471   return 0;
50472 }
50473 _ACEOF
50474 rm -f conftest.$ac_objext
50475 if { (ac_try="$ac_compile"
50476 case "(($ac_try" in
50477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50478   *) ac_try_echo=$ac_try;;
50479 esac
50480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50481   (eval "$ac_compile") 2>conftest.er1
50482   ac_status=$?
50483   grep -v '^ *+' conftest.er1 >conftest.err
50484   rm -f conftest.er1
50485   cat conftest.err >&5
50486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50487   (exit $ac_status); } && {
50488          test -z "$ac_c_werror_flag" ||
50489          test ! -s conftest.err
50490        } && test -s conftest.$ac_objext; then
50491   ac_hi=$ac_mid
50492 else
50493   echo "$as_me: failed program was:" >&5
50494 sed 's/^/| /' conftest.$ac_ext >&5
50495
50496         ac_lo=`expr '(' $ac_mid ')' + 1`
50497 fi
50498
50499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50500 done
50501 case $ac_lo in
50502 ?*) ac_cv_sizeof_intmax_t=$ac_lo;;
50503 '') if test "$ac_cv_type_intmax_t" = yes; then
50504      { { echo "$as_me:$LINENO: error: cannot compute sizeof (intmax_t)
50505 See \`config.log' for more details." >&5
50506 echo "$as_me: error: cannot compute sizeof (intmax_t)
50507 See \`config.log' for more details." >&2;}
50508    { (exit 77); exit 77; }; }
50509    else
50510      ac_cv_sizeof_intmax_t=0
50511    fi ;;
50512 esac
50513 else
50514   cat >conftest.$ac_ext <<_ACEOF
50515 /* confdefs.h.  */
50516 _ACEOF
50517 cat confdefs.h >>conftest.$ac_ext
50518 cat >>conftest.$ac_ext <<_ACEOF
50519 /* end confdefs.h.  */
50520 $ac_includes_default
50521    typedef intmax_t ac__type_sizeof_;
50522 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
50523 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
50524 #include <stdio.h>
50525 #include <stdlib.h>
50526 int
50527 main ()
50528 {
50529
50530   FILE *f = fopen ("conftest.val", "w");
50531   if (! f)
50532     return 1;
50533   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
50534     {
50535       long int i = longval ();
50536       if (i != ((long int) (sizeof (ac__type_sizeof_))))
50537         return 1;
50538       fprintf (f, "%ld\n", i);
50539     }
50540   else
50541     {
50542       unsigned long int i = ulongval ();
50543       if (i != ((long int) (sizeof (ac__type_sizeof_))))
50544         return 1;
50545       fprintf (f, "%lu\n", i);
50546     }
50547   return ferror (f) || fclose (f) != 0;
50548
50549   ;
50550   return 0;
50551 }
50552 _ACEOF
50553 rm -f conftest$ac_exeext
50554 if { (ac_try="$ac_link"
50555 case "(($ac_try" in
50556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50557   *) ac_try_echo=$ac_try;;
50558 esac
50559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50560   (eval "$ac_link") 2>&5
50561   ac_status=$?
50562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50563   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
50564   { (case "(($ac_try" in
50565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50566   *) ac_try_echo=$ac_try;;
50567 esac
50568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50569   (eval "$ac_try") 2>&5
50570   ac_status=$?
50571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50572   (exit $ac_status); }; }; then
50573   ac_cv_sizeof_intmax_t=`cat conftest.val`
50574 else
50575   echo "$as_me: program exited with status $ac_status" >&5
50576 echo "$as_me: failed program was:" >&5
50577 sed 's/^/| /' conftest.$ac_ext >&5
50578
50579 ( exit $ac_status )
50580 if test "$ac_cv_type_intmax_t" = yes; then
50581      { { echo "$as_me:$LINENO: error: cannot compute sizeof (intmax_t)
50582 See \`config.log' for more details." >&5
50583 echo "$as_me: error: cannot compute sizeof (intmax_t)
50584 See \`config.log' for more details." >&2;}
50585    { (exit 77); exit 77; }; }
50586    else
50587      ac_cv_sizeof_intmax_t=0
50588    fi
50589 fi
50590 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
50591 fi
50592 rm -f conftest.val
50593 fi
50594 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_intmax_t" >&5
50595 echo "${ECHO_T}$ac_cv_sizeof_intmax_t" >&6; }
50596
50597
50598
50599 cat >>confdefs.h <<_ACEOF
50600 #define SIZEOF_INTMAX_T $ac_cv_sizeof_intmax_t
50601 _ACEOF
50602
50603
50604 { echo "$as_me:$LINENO: checking for off_t" >&5
50605 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
50606 if test "${ac_cv_type_off_t+set}" = set; then
50607   echo $ECHO_N "(cached) $ECHO_C" >&6
50608 else
50609   cat >conftest.$ac_ext <<_ACEOF
50610 /* confdefs.h.  */
50611 _ACEOF
50612 cat confdefs.h >>conftest.$ac_ext
50613 cat >>conftest.$ac_ext <<_ACEOF
50614 /* end confdefs.h.  */
50615 $ac_includes_default
50616 typedef off_t ac__type_new_;
50617 int
50618 main ()
50619 {
50620 if ((ac__type_new_ *) 0)
50621   return 0;
50622 if (sizeof (ac__type_new_))
50623   return 0;
50624   ;
50625   return 0;
50626 }
50627 _ACEOF
50628 rm -f conftest.$ac_objext
50629 if { (ac_try="$ac_compile"
50630 case "(($ac_try" in
50631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50632   *) ac_try_echo=$ac_try;;
50633 esac
50634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50635   (eval "$ac_compile") 2>conftest.er1
50636   ac_status=$?
50637   grep -v '^ *+' conftest.er1 >conftest.err
50638   rm -f conftest.er1
50639   cat conftest.err >&5
50640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50641   (exit $ac_status); } && {
50642          test -z "$ac_c_werror_flag" ||
50643          test ! -s conftest.err
50644        } && test -s conftest.$ac_objext; then
50645   ac_cv_type_off_t=yes
50646 else
50647   echo "$as_me: failed program was:" >&5
50648 sed 's/^/| /' conftest.$ac_ext >&5
50649
50650         ac_cv_type_off_t=no
50651 fi
50652
50653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50654 fi
50655 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
50656 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
50657
50658 # The cast to long int works around a bug in the HP C Compiler
50659 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
50660 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
50661 # This bug is HP SR number 8606223364.
50662 { echo "$as_me:$LINENO: checking size of off_t" >&5
50663 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6; }
50664 if test "${ac_cv_sizeof_off_t+set}" = set; then
50665   echo $ECHO_N "(cached) $ECHO_C" >&6
50666 else
50667   if test "$cross_compiling" = yes; then
50668   # Depending upon the size, compute the lo and hi bounds.
50669 cat >conftest.$ac_ext <<_ACEOF
50670 /* confdefs.h.  */
50671 _ACEOF
50672 cat confdefs.h >>conftest.$ac_ext
50673 cat >>conftest.$ac_ext <<_ACEOF
50674 /* end confdefs.h.  */
50675 $ac_includes_default
50676    typedef off_t ac__type_sizeof_;
50677 int
50678 main ()
50679 {
50680 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
50681 test_array [0] = 0
50682
50683   ;
50684   return 0;
50685 }
50686 _ACEOF
50687 rm -f conftest.$ac_objext
50688 if { (ac_try="$ac_compile"
50689 case "(($ac_try" in
50690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50691   *) ac_try_echo=$ac_try;;
50692 esac
50693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50694   (eval "$ac_compile") 2>conftest.er1
50695   ac_status=$?
50696   grep -v '^ *+' conftest.er1 >conftest.err
50697   rm -f conftest.er1
50698   cat conftest.err >&5
50699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50700   (exit $ac_status); } && {
50701          test -z "$ac_c_werror_flag" ||
50702          test ! -s conftest.err
50703        } && test -s conftest.$ac_objext; then
50704   ac_lo=0 ac_mid=0
50705   while :; do
50706     cat >conftest.$ac_ext <<_ACEOF
50707 /* confdefs.h.  */
50708 _ACEOF
50709 cat confdefs.h >>conftest.$ac_ext
50710 cat >>conftest.$ac_ext <<_ACEOF
50711 /* end confdefs.h.  */
50712 $ac_includes_default
50713    typedef off_t ac__type_sizeof_;
50714 int
50715 main ()
50716 {
50717 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
50718 test_array [0] = 0
50719
50720   ;
50721   return 0;
50722 }
50723 _ACEOF
50724 rm -f conftest.$ac_objext
50725 if { (ac_try="$ac_compile"
50726 case "(($ac_try" in
50727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50728   *) ac_try_echo=$ac_try;;
50729 esac
50730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50731   (eval "$ac_compile") 2>conftest.er1
50732   ac_status=$?
50733   grep -v '^ *+' conftest.er1 >conftest.err
50734   rm -f conftest.er1
50735   cat conftest.err >&5
50736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50737   (exit $ac_status); } && {
50738          test -z "$ac_c_werror_flag" ||
50739          test ! -s conftest.err
50740        } && test -s conftest.$ac_objext; then
50741   ac_hi=$ac_mid; break
50742 else
50743   echo "$as_me: failed program was:" >&5
50744 sed 's/^/| /' conftest.$ac_ext >&5
50745
50746         ac_lo=`expr $ac_mid + 1`
50747                         if test $ac_lo -le $ac_mid; then
50748                           ac_lo= ac_hi=
50749                           break
50750                         fi
50751                         ac_mid=`expr 2 '*' $ac_mid + 1`
50752 fi
50753
50754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50755   done
50756 else
50757   echo "$as_me: failed program was:" >&5
50758 sed 's/^/| /' conftest.$ac_ext >&5
50759
50760         cat >conftest.$ac_ext <<_ACEOF
50761 /* confdefs.h.  */
50762 _ACEOF
50763 cat confdefs.h >>conftest.$ac_ext
50764 cat >>conftest.$ac_ext <<_ACEOF
50765 /* end confdefs.h.  */
50766 $ac_includes_default
50767    typedef off_t ac__type_sizeof_;
50768 int
50769 main ()
50770 {
50771 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
50772 test_array [0] = 0
50773
50774   ;
50775   return 0;
50776 }
50777 _ACEOF
50778 rm -f conftest.$ac_objext
50779 if { (ac_try="$ac_compile"
50780 case "(($ac_try" in
50781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50782   *) ac_try_echo=$ac_try;;
50783 esac
50784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50785   (eval "$ac_compile") 2>conftest.er1
50786   ac_status=$?
50787   grep -v '^ *+' conftest.er1 >conftest.err
50788   rm -f conftest.er1
50789   cat conftest.err >&5
50790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50791   (exit $ac_status); } && {
50792          test -z "$ac_c_werror_flag" ||
50793          test ! -s conftest.err
50794        } && test -s conftest.$ac_objext; then
50795   ac_hi=-1 ac_mid=-1
50796   while :; do
50797     cat >conftest.$ac_ext <<_ACEOF
50798 /* confdefs.h.  */
50799 _ACEOF
50800 cat confdefs.h >>conftest.$ac_ext
50801 cat >>conftest.$ac_ext <<_ACEOF
50802 /* end confdefs.h.  */
50803 $ac_includes_default
50804    typedef off_t ac__type_sizeof_;
50805 int
50806 main ()
50807 {
50808 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
50809 test_array [0] = 0
50810
50811   ;
50812   return 0;
50813 }
50814 _ACEOF
50815 rm -f conftest.$ac_objext
50816 if { (ac_try="$ac_compile"
50817 case "(($ac_try" in
50818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50819   *) ac_try_echo=$ac_try;;
50820 esac
50821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50822   (eval "$ac_compile") 2>conftest.er1
50823   ac_status=$?
50824   grep -v '^ *+' conftest.er1 >conftest.err
50825   rm -f conftest.er1
50826   cat conftest.err >&5
50827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50828   (exit $ac_status); } && {
50829          test -z "$ac_c_werror_flag" ||
50830          test ! -s conftest.err
50831        } && test -s conftest.$ac_objext; then
50832   ac_lo=$ac_mid; break
50833 else
50834   echo "$as_me: failed program was:" >&5
50835 sed 's/^/| /' conftest.$ac_ext >&5
50836
50837         ac_hi=`expr '(' $ac_mid ')' - 1`
50838                         if test $ac_mid -le $ac_hi; then
50839                           ac_lo= ac_hi=
50840                           break
50841                         fi
50842                         ac_mid=`expr 2 '*' $ac_mid`
50843 fi
50844
50845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50846   done
50847 else
50848   echo "$as_me: failed program was:" >&5
50849 sed 's/^/| /' conftest.$ac_ext >&5
50850
50851         ac_lo= ac_hi=
50852 fi
50853
50854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50855 fi
50856
50857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50858 # Binary search between lo and hi bounds.
50859 while test "x$ac_lo" != "x$ac_hi"; do
50860   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
50861   cat >conftest.$ac_ext <<_ACEOF
50862 /* confdefs.h.  */
50863 _ACEOF
50864 cat confdefs.h >>conftest.$ac_ext
50865 cat >>conftest.$ac_ext <<_ACEOF
50866 /* end confdefs.h.  */
50867 $ac_includes_default
50868    typedef off_t ac__type_sizeof_;
50869 int
50870 main ()
50871 {
50872 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
50873 test_array [0] = 0
50874
50875   ;
50876   return 0;
50877 }
50878 _ACEOF
50879 rm -f conftest.$ac_objext
50880 if { (ac_try="$ac_compile"
50881 case "(($ac_try" in
50882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50883   *) ac_try_echo=$ac_try;;
50884 esac
50885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50886   (eval "$ac_compile") 2>conftest.er1
50887   ac_status=$?
50888   grep -v '^ *+' conftest.er1 >conftest.err
50889   rm -f conftest.er1
50890   cat conftest.err >&5
50891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50892   (exit $ac_status); } && {
50893          test -z "$ac_c_werror_flag" ||
50894          test ! -s conftest.err
50895        } && test -s conftest.$ac_objext; then
50896   ac_hi=$ac_mid
50897 else
50898   echo "$as_me: failed program was:" >&5
50899 sed 's/^/| /' conftest.$ac_ext >&5
50900
50901         ac_lo=`expr '(' $ac_mid ')' + 1`
50902 fi
50903
50904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50905 done
50906 case $ac_lo in
50907 ?*) ac_cv_sizeof_off_t=$ac_lo;;
50908 '') if test "$ac_cv_type_off_t" = yes; then
50909      { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
50910 See \`config.log' for more details." >&5
50911 echo "$as_me: error: cannot compute sizeof (off_t)
50912 See \`config.log' for more details." >&2;}
50913    { (exit 77); exit 77; }; }
50914    else
50915      ac_cv_sizeof_off_t=0
50916    fi ;;
50917 esac
50918 else
50919   cat >conftest.$ac_ext <<_ACEOF
50920 /* confdefs.h.  */
50921 _ACEOF
50922 cat confdefs.h >>conftest.$ac_ext
50923 cat >>conftest.$ac_ext <<_ACEOF
50924 /* end confdefs.h.  */
50925 $ac_includes_default
50926    typedef off_t ac__type_sizeof_;
50927 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
50928 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
50929 #include <stdio.h>
50930 #include <stdlib.h>
50931 int
50932 main ()
50933 {
50934
50935   FILE *f = fopen ("conftest.val", "w");
50936   if (! f)
50937     return 1;
50938   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
50939     {
50940       long int i = longval ();
50941       if (i != ((long int) (sizeof (ac__type_sizeof_))))
50942         return 1;
50943       fprintf (f, "%ld\n", i);
50944     }
50945   else
50946     {
50947       unsigned long int i = ulongval ();
50948       if (i != ((long int) (sizeof (ac__type_sizeof_))))
50949         return 1;
50950       fprintf (f, "%lu\n", i);
50951     }
50952   return ferror (f) || fclose (f) != 0;
50953
50954   ;
50955   return 0;
50956 }
50957 _ACEOF
50958 rm -f conftest$ac_exeext
50959 if { (ac_try="$ac_link"
50960 case "(($ac_try" in
50961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50962   *) ac_try_echo=$ac_try;;
50963 esac
50964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50965   (eval "$ac_link") 2>&5
50966   ac_status=$?
50967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50968   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
50969   { (case "(($ac_try" in
50970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50971   *) ac_try_echo=$ac_try;;
50972 esac
50973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50974   (eval "$ac_try") 2>&5
50975   ac_status=$?
50976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50977   (exit $ac_status); }; }; then
50978   ac_cv_sizeof_off_t=`cat conftest.val`
50979 else
50980   echo "$as_me: program exited with status $ac_status" >&5
50981 echo "$as_me: failed program was:" >&5
50982 sed 's/^/| /' conftest.$ac_ext >&5
50983
50984 ( exit $ac_status )
50985 if test "$ac_cv_type_off_t" = yes; then
50986      { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
50987 See \`config.log' for more details." >&5
50988 echo "$as_me: error: cannot compute sizeof (off_t)
50989 See \`config.log' for more details." >&2;}
50990    { (exit 77); exit 77; }; }
50991    else
50992      ac_cv_sizeof_off_t=0
50993    fi
50994 fi
50995 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
50996 fi
50997 rm -f conftest.val
50998 fi
50999 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
51000 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; }
51001
51002
51003
51004 cat >>confdefs.h <<_ACEOF
51005 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
51006 _ACEOF
51007
51008
51009 { echo "$as_me:$LINENO: checking for size_t" >&5
51010 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
51011 if test "${ac_cv_type_size_t+set}" = set; then
51012   echo $ECHO_N "(cached) $ECHO_C" >&6
51013 else
51014   cat >conftest.$ac_ext <<_ACEOF
51015 /* confdefs.h.  */
51016 _ACEOF
51017 cat confdefs.h >>conftest.$ac_ext
51018 cat >>conftest.$ac_ext <<_ACEOF
51019 /* end confdefs.h.  */
51020 $ac_includes_default
51021 typedef size_t ac__type_new_;
51022 int
51023 main ()
51024 {
51025 if ((ac__type_new_ *) 0)
51026   return 0;
51027 if (sizeof (ac__type_new_))
51028   return 0;
51029   ;
51030   return 0;
51031 }
51032 _ACEOF
51033 rm -f conftest.$ac_objext
51034 if { (ac_try="$ac_compile"
51035 case "(($ac_try" in
51036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51037   *) ac_try_echo=$ac_try;;
51038 esac
51039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51040   (eval "$ac_compile") 2>conftest.er1
51041   ac_status=$?
51042   grep -v '^ *+' conftest.er1 >conftest.err
51043   rm -f conftest.er1
51044   cat conftest.err >&5
51045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51046   (exit $ac_status); } && {
51047          test -z "$ac_c_werror_flag" ||
51048          test ! -s conftest.err
51049        } && test -s conftest.$ac_objext; then
51050   ac_cv_type_size_t=yes
51051 else
51052   echo "$as_me: failed program was:" >&5
51053 sed 's/^/| /' conftest.$ac_ext >&5
51054
51055         ac_cv_type_size_t=no
51056 fi
51057
51058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51059 fi
51060 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
51061 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
51062
51063 # The cast to long int works around a bug in the HP C Compiler
51064 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
51065 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
51066 # This bug is HP SR number 8606223364.
51067 { echo "$as_me:$LINENO: checking size of size_t" >&5
51068 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
51069 if test "${ac_cv_sizeof_size_t+set}" = set; then
51070   echo $ECHO_N "(cached) $ECHO_C" >&6
51071 else
51072   if test "$cross_compiling" = yes; then
51073   # Depending upon the size, compute the lo and hi bounds.
51074 cat >conftest.$ac_ext <<_ACEOF
51075 /* confdefs.h.  */
51076 _ACEOF
51077 cat confdefs.h >>conftest.$ac_ext
51078 cat >>conftest.$ac_ext <<_ACEOF
51079 /* end confdefs.h.  */
51080 $ac_includes_default
51081    typedef size_t ac__type_sizeof_;
51082 int
51083 main ()
51084 {
51085 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
51086 test_array [0] = 0
51087
51088   ;
51089   return 0;
51090 }
51091 _ACEOF
51092 rm -f conftest.$ac_objext
51093 if { (ac_try="$ac_compile"
51094 case "(($ac_try" in
51095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51096   *) ac_try_echo=$ac_try;;
51097 esac
51098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51099   (eval "$ac_compile") 2>conftest.er1
51100   ac_status=$?
51101   grep -v '^ *+' conftest.er1 >conftest.err
51102   rm -f conftest.er1
51103   cat conftest.err >&5
51104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51105   (exit $ac_status); } && {
51106          test -z "$ac_c_werror_flag" ||
51107          test ! -s conftest.err
51108        } && test -s conftest.$ac_objext; then
51109   ac_lo=0 ac_mid=0
51110   while :; do
51111     cat >conftest.$ac_ext <<_ACEOF
51112 /* confdefs.h.  */
51113 _ACEOF
51114 cat confdefs.h >>conftest.$ac_ext
51115 cat >>conftest.$ac_ext <<_ACEOF
51116 /* end confdefs.h.  */
51117 $ac_includes_default
51118    typedef size_t ac__type_sizeof_;
51119 int
51120 main ()
51121 {
51122 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
51123 test_array [0] = 0
51124
51125   ;
51126   return 0;
51127 }
51128 _ACEOF
51129 rm -f conftest.$ac_objext
51130 if { (ac_try="$ac_compile"
51131 case "(($ac_try" in
51132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51133   *) ac_try_echo=$ac_try;;
51134 esac
51135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51136   (eval "$ac_compile") 2>conftest.er1
51137   ac_status=$?
51138   grep -v '^ *+' conftest.er1 >conftest.err
51139   rm -f conftest.er1
51140   cat conftest.err >&5
51141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51142   (exit $ac_status); } && {
51143          test -z "$ac_c_werror_flag" ||
51144          test ! -s conftest.err
51145        } && test -s conftest.$ac_objext; then
51146   ac_hi=$ac_mid; break
51147 else
51148   echo "$as_me: failed program was:" >&5
51149 sed 's/^/| /' conftest.$ac_ext >&5
51150
51151         ac_lo=`expr $ac_mid + 1`
51152                         if test $ac_lo -le $ac_mid; then
51153                           ac_lo= ac_hi=
51154                           break
51155                         fi
51156                         ac_mid=`expr 2 '*' $ac_mid + 1`
51157 fi
51158
51159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51160   done
51161 else
51162   echo "$as_me: failed program was:" >&5
51163 sed 's/^/| /' conftest.$ac_ext >&5
51164
51165         cat >conftest.$ac_ext <<_ACEOF
51166 /* confdefs.h.  */
51167 _ACEOF
51168 cat confdefs.h >>conftest.$ac_ext
51169 cat >>conftest.$ac_ext <<_ACEOF
51170 /* end confdefs.h.  */
51171 $ac_includes_default
51172    typedef size_t ac__type_sizeof_;
51173 int
51174 main ()
51175 {
51176 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
51177 test_array [0] = 0
51178
51179   ;
51180   return 0;
51181 }
51182 _ACEOF
51183 rm -f conftest.$ac_objext
51184 if { (ac_try="$ac_compile"
51185 case "(($ac_try" in
51186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51187   *) ac_try_echo=$ac_try;;
51188 esac
51189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51190   (eval "$ac_compile") 2>conftest.er1
51191   ac_status=$?
51192   grep -v '^ *+' conftest.er1 >conftest.err
51193   rm -f conftest.er1
51194   cat conftest.err >&5
51195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51196   (exit $ac_status); } && {
51197          test -z "$ac_c_werror_flag" ||
51198          test ! -s conftest.err
51199        } && test -s conftest.$ac_objext; then
51200   ac_hi=-1 ac_mid=-1
51201   while :; do
51202     cat >conftest.$ac_ext <<_ACEOF
51203 /* confdefs.h.  */
51204 _ACEOF
51205 cat confdefs.h >>conftest.$ac_ext
51206 cat >>conftest.$ac_ext <<_ACEOF
51207 /* end confdefs.h.  */
51208 $ac_includes_default
51209    typedef size_t ac__type_sizeof_;
51210 int
51211 main ()
51212 {
51213 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
51214 test_array [0] = 0
51215
51216   ;
51217   return 0;
51218 }
51219 _ACEOF
51220 rm -f conftest.$ac_objext
51221 if { (ac_try="$ac_compile"
51222 case "(($ac_try" in
51223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51224   *) ac_try_echo=$ac_try;;
51225 esac
51226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51227   (eval "$ac_compile") 2>conftest.er1
51228   ac_status=$?
51229   grep -v '^ *+' conftest.er1 >conftest.err
51230   rm -f conftest.er1
51231   cat conftest.err >&5
51232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51233   (exit $ac_status); } && {
51234          test -z "$ac_c_werror_flag" ||
51235          test ! -s conftest.err
51236        } && test -s conftest.$ac_objext; then
51237   ac_lo=$ac_mid; break
51238 else
51239   echo "$as_me: failed program was:" >&5
51240 sed 's/^/| /' conftest.$ac_ext >&5
51241
51242         ac_hi=`expr '(' $ac_mid ')' - 1`
51243                         if test $ac_mid -le $ac_hi; then
51244                           ac_lo= ac_hi=
51245                           break
51246                         fi
51247                         ac_mid=`expr 2 '*' $ac_mid`
51248 fi
51249
51250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51251   done
51252 else
51253   echo "$as_me: failed program was:" >&5
51254 sed 's/^/| /' conftest.$ac_ext >&5
51255
51256         ac_lo= ac_hi=
51257 fi
51258
51259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51260 fi
51261
51262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51263 # Binary search between lo and hi bounds.
51264 while test "x$ac_lo" != "x$ac_hi"; do
51265   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
51266   cat >conftest.$ac_ext <<_ACEOF
51267 /* confdefs.h.  */
51268 _ACEOF
51269 cat confdefs.h >>conftest.$ac_ext
51270 cat >>conftest.$ac_ext <<_ACEOF
51271 /* end confdefs.h.  */
51272 $ac_includes_default
51273    typedef size_t ac__type_sizeof_;
51274 int
51275 main ()
51276 {
51277 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
51278 test_array [0] = 0
51279
51280   ;
51281   return 0;
51282 }
51283 _ACEOF
51284 rm -f conftest.$ac_objext
51285 if { (ac_try="$ac_compile"
51286 case "(($ac_try" in
51287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51288   *) ac_try_echo=$ac_try;;
51289 esac
51290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51291   (eval "$ac_compile") 2>conftest.er1
51292   ac_status=$?
51293   grep -v '^ *+' conftest.er1 >conftest.err
51294   rm -f conftest.er1
51295   cat conftest.err >&5
51296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51297   (exit $ac_status); } && {
51298          test -z "$ac_c_werror_flag" ||
51299          test ! -s conftest.err
51300        } && test -s conftest.$ac_objext; then
51301   ac_hi=$ac_mid
51302 else
51303   echo "$as_me: failed program was:" >&5
51304 sed 's/^/| /' conftest.$ac_ext >&5
51305
51306         ac_lo=`expr '(' $ac_mid ')' + 1`
51307 fi
51308
51309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51310 done
51311 case $ac_lo in
51312 ?*) ac_cv_sizeof_size_t=$ac_lo;;
51313 '') if test "$ac_cv_type_size_t" = yes; then
51314      { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
51315 See \`config.log' for more details." >&5
51316 echo "$as_me: error: cannot compute sizeof (size_t)
51317 See \`config.log' for more details." >&2;}
51318    { (exit 77); exit 77; }; }
51319    else
51320      ac_cv_sizeof_size_t=0
51321    fi ;;
51322 esac
51323 else
51324   cat >conftest.$ac_ext <<_ACEOF
51325 /* confdefs.h.  */
51326 _ACEOF
51327 cat confdefs.h >>conftest.$ac_ext
51328 cat >>conftest.$ac_ext <<_ACEOF
51329 /* end confdefs.h.  */
51330 $ac_includes_default
51331    typedef size_t ac__type_sizeof_;
51332 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
51333 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
51334 #include <stdio.h>
51335 #include <stdlib.h>
51336 int
51337 main ()
51338 {
51339
51340   FILE *f = fopen ("conftest.val", "w");
51341   if (! f)
51342     return 1;
51343   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
51344     {
51345       long int i = longval ();
51346       if (i != ((long int) (sizeof (ac__type_sizeof_))))
51347         return 1;
51348       fprintf (f, "%ld\n", i);
51349     }
51350   else
51351     {
51352       unsigned long int i = ulongval ();
51353       if (i != ((long int) (sizeof (ac__type_sizeof_))))
51354         return 1;
51355       fprintf (f, "%lu\n", i);
51356     }
51357   return ferror (f) || fclose (f) != 0;
51358
51359   ;
51360   return 0;
51361 }
51362 _ACEOF
51363 rm -f conftest$ac_exeext
51364 if { (ac_try="$ac_link"
51365 case "(($ac_try" in
51366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51367   *) ac_try_echo=$ac_try;;
51368 esac
51369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51370   (eval "$ac_link") 2>&5
51371   ac_status=$?
51372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51373   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
51374   { (case "(($ac_try" in
51375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51376   *) ac_try_echo=$ac_try;;
51377 esac
51378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51379   (eval "$ac_try") 2>&5
51380   ac_status=$?
51381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51382   (exit $ac_status); }; }; then
51383   ac_cv_sizeof_size_t=`cat conftest.val`
51384 else
51385   echo "$as_me: program exited with status $ac_status" >&5
51386 echo "$as_me: failed program was:" >&5
51387 sed 's/^/| /' conftest.$ac_ext >&5
51388
51389 ( exit $ac_status )
51390 if test "$ac_cv_type_size_t" = yes; then
51391      { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
51392 See \`config.log' for more details." >&5
51393 echo "$as_me: error: cannot compute sizeof (size_t)
51394 See \`config.log' for more details." >&2;}
51395    { (exit 77); exit 77; }; }
51396    else
51397      ac_cv_sizeof_size_t=0
51398    fi
51399 fi
51400 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
51401 fi
51402 rm -f conftest.val
51403 fi
51404 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
51405 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
51406
51407
51408
51409 cat >>confdefs.h <<_ACEOF
51410 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
51411 _ACEOF
51412
51413
51414 { echo "$as_me:$LINENO: checking for ssize_t" >&5
51415 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
51416 if test "${ac_cv_type_ssize_t+set}" = set; then
51417   echo $ECHO_N "(cached) $ECHO_C" >&6
51418 else
51419   cat >conftest.$ac_ext <<_ACEOF
51420 /* confdefs.h.  */
51421 _ACEOF
51422 cat confdefs.h >>conftest.$ac_ext
51423 cat >>conftest.$ac_ext <<_ACEOF
51424 /* end confdefs.h.  */
51425 $ac_includes_default
51426 typedef ssize_t ac__type_new_;
51427 int
51428 main ()
51429 {
51430 if ((ac__type_new_ *) 0)
51431   return 0;
51432 if (sizeof (ac__type_new_))
51433   return 0;
51434   ;
51435   return 0;
51436 }
51437 _ACEOF
51438 rm -f conftest.$ac_objext
51439 if { (ac_try="$ac_compile"
51440 case "(($ac_try" in
51441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51442   *) ac_try_echo=$ac_try;;
51443 esac
51444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51445   (eval "$ac_compile") 2>conftest.er1
51446   ac_status=$?
51447   grep -v '^ *+' conftest.er1 >conftest.err
51448   rm -f conftest.er1
51449   cat conftest.err >&5
51450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51451   (exit $ac_status); } && {
51452          test -z "$ac_c_werror_flag" ||
51453          test ! -s conftest.err
51454        } && test -s conftest.$ac_objext; then
51455   ac_cv_type_ssize_t=yes
51456 else
51457   echo "$as_me: failed program was:" >&5
51458 sed 's/^/| /' conftest.$ac_ext >&5
51459
51460         ac_cv_type_ssize_t=no
51461 fi
51462
51463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51464 fi
51465 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
51466 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
51467
51468 # The cast to long int works around a bug in the HP C Compiler
51469 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
51470 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
51471 # This bug is HP SR number 8606223364.
51472 { echo "$as_me:$LINENO: checking size of ssize_t" >&5
51473 echo $ECHO_N "checking size of ssize_t... $ECHO_C" >&6; }
51474 if test "${ac_cv_sizeof_ssize_t+set}" = set; then
51475   echo $ECHO_N "(cached) $ECHO_C" >&6
51476 else
51477   if test "$cross_compiling" = yes; then
51478   # Depending upon the size, compute the lo and hi bounds.
51479 cat >conftest.$ac_ext <<_ACEOF
51480 /* confdefs.h.  */
51481 _ACEOF
51482 cat confdefs.h >>conftest.$ac_ext
51483 cat >>conftest.$ac_ext <<_ACEOF
51484 /* end confdefs.h.  */
51485 $ac_includes_default
51486    typedef ssize_t ac__type_sizeof_;
51487 int
51488 main ()
51489 {
51490 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
51491 test_array [0] = 0
51492
51493   ;
51494   return 0;
51495 }
51496 _ACEOF
51497 rm -f conftest.$ac_objext
51498 if { (ac_try="$ac_compile"
51499 case "(($ac_try" in
51500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51501   *) ac_try_echo=$ac_try;;
51502 esac
51503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51504   (eval "$ac_compile") 2>conftest.er1
51505   ac_status=$?
51506   grep -v '^ *+' conftest.er1 >conftest.err
51507   rm -f conftest.er1
51508   cat conftest.err >&5
51509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51510   (exit $ac_status); } && {
51511          test -z "$ac_c_werror_flag" ||
51512          test ! -s conftest.err
51513        } && test -s conftest.$ac_objext; then
51514   ac_lo=0 ac_mid=0
51515   while :; do
51516     cat >conftest.$ac_ext <<_ACEOF
51517 /* confdefs.h.  */
51518 _ACEOF
51519 cat confdefs.h >>conftest.$ac_ext
51520 cat >>conftest.$ac_ext <<_ACEOF
51521 /* end confdefs.h.  */
51522 $ac_includes_default
51523    typedef ssize_t ac__type_sizeof_;
51524 int
51525 main ()
51526 {
51527 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
51528 test_array [0] = 0
51529
51530   ;
51531   return 0;
51532 }
51533 _ACEOF
51534 rm -f conftest.$ac_objext
51535 if { (ac_try="$ac_compile"
51536 case "(($ac_try" in
51537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51538   *) ac_try_echo=$ac_try;;
51539 esac
51540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51541   (eval "$ac_compile") 2>conftest.er1
51542   ac_status=$?
51543   grep -v '^ *+' conftest.er1 >conftest.err
51544   rm -f conftest.er1
51545   cat conftest.err >&5
51546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51547   (exit $ac_status); } && {
51548          test -z "$ac_c_werror_flag" ||
51549          test ! -s conftest.err
51550        } && test -s conftest.$ac_objext; then
51551   ac_hi=$ac_mid; break
51552 else
51553   echo "$as_me: failed program was:" >&5
51554 sed 's/^/| /' conftest.$ac_ext >&5
51555
51556         ac_lo=`expr $ac_mid + 1`
51557                         if test $ac_lo -le $ac_mid; then
51558                           ac_lo= ac_hi=
51559                           break
51560                         fi
51561                         ac_mid=`expr 2 '*' $ac_mid + 1`
51562 fi
51563
51564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51565   done
51566 else
51567   echo "$as_me: failed program was:" >&5
51568 sed 's/^/| /' conftest.$ac_ext >&5
51569
51570         cat >conftest.$ac_ext <<_ACEOF
51571 /* confdefs.h.  */
51572 _ACEOF
51573 cat confdefs.h >>conftest.$ac_ext
51574 cat >>conftest.$ac_ext <<_ACEOF
51575 /* end confdefs.h.  */
51576 $ac_includes_default
51577    typedef ssize_t ac__type_sizeof_;
51578 int
51579 main ()
51580 {
51581 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
51582 test_array [0] = 0
51583
51584   ;
51585   return 0;
51586 }
51587 _ACEOF
51588 rm -f conftest.$ac_objext
51589 if { (ac_try="$ac_compile"
51590 case "(($ac_try" in
51591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51592   *) ac_try_echo=$ac_try;;
51593 esac
51594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51595   (eval "$ac_compile") 2>conftest.er1
51596   ac_status=$?
51597   grep -v '^ *+' conftest.er1 >conftest.err
51598   rm -f conftest.er1
51599   cat conftest.err >&5
51600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51601   (exit $ac_status); } && {
51602          test -z "$ac_c_werror_flag" ||
51603          test ! -s conftest.err
51604        } && test -s conftest.$ac_objext; then
51605   ac_hi=-1 ac_mid=-1
51606   while :; do
51607     cat >conftest.$ac_ext <<_ACEOF
51608 /* confdefs.h.  */
51609 _ACEOF
51610 cat confdefs.h >>conftest.$ac_ext
51611 cat >>conftest.$ac_ext <<_ACEOF
51612 /* end confdefs.h.  */
51613 $ac_includes_default
51614    typedef ssize_t ac__type_sizeof_;
51615 int
51616 main ()
51617 {
51618 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
51619 test_array [0] = 0
51620
51621   ;
51622   return 0;
51623 }
51624 _ACEOF
51625 rm -f conftest.$ac_objext
51626 if { (ac_try="$ac_compile"
51627 case "(($ac_try" in
51628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51629   *) ac_try_echo=$ac_try;;
51630 esac
51631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51632   (eval "$ac_compile") 2>conftest.er1
51633   ac_status=$?
51634   grep -v '^ *+' conftest.er1 >conftest.err
51635   rm -f conftest.er1
51636   cat conftest.err >&5
51637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51638   (exit $ac_status); } && {
51639          test -z "$ac_c_werror_flag" ||
51640          test ! -s conftest.err
51641        } && test -s conftest.$ac_objext; then
51642   ac_lo=$ac_mid; break
51643 else
51644   echo "$as_me: failed program was:" >&5
51645 sed 's/^/| /' conftest.$ac_ext >&5
51646
51647         ac_hi=`expr '(' $ac_mid ')' - 1`
51648                         if test $ac_mid -le $ac_hi; then
51649                           ac_lo= ac_hi=
51650                           break
51651                         fi
51652                         ac_mid=`expr 2 '*' $ac_mid`
51653 fi
51654
51655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51656   done
51657 else
51658   echo "$as_me: failed program was:" >&5
51659 sed 's/^/| /' conftest.$ac_ext >&5
51660
51661         ac_lo= ac_hi=
51662 fi
51663
51664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51665 fi
51666
51667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51668 # Binary search between lo and hi bounds.
51669 while test "x$ac_lo" != "x$ac_hi"; do
51670   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
51671   cat >conftest.$ac_ext <<_ACEOF
51672 /* confdefs.h.  */
51673 _ACEOF
51674 cat confdefs.h >>conftest.$ac_ext
51675 cat >>conftest.$ac_ext <<_ACEOF
51676 /* end confdefs.h.  */
51677 $ac_includes_default
51678    typedef ssize_t ac__type_sizeof_;
51679 int
51680 main ()
51681 {
51682 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
51683 test_array [0] = 0
51684
51685   ;
51686   return 0;
51687 }
51688 _ACEOF
51689 rm -f conftest.$ac_objext
51690 if { (ac_try="$ac_compile"
51691 case "(($ac_try" in
51692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51693   *) ac_try_echo=$ac_try;;
51694 esac
51695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51696   (eval "$ac_compile") 2>conftest.er1
51697   ac_status=$?
51698   grep -v '^ *+' conftest.er1 >conftest.err
51699   rm -f conftest.er1
51700   cat conftest.err >&5
51701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51702   (exit $ac_status); } && {
51703          test -z "$ac_c_werror_flag" ||
51704          test ! -s conftest.err
51705        } && test -s conftest.$ac_objext; then
51706   ac_hi=$ac_mid
51707 else
51708   echo "$as_me: failed program was:" >&5
51709 sed 's/^/| /' conftest.$ac_ext >&5
51710
51711         ac_lo=`expr '(' $ac_mid ')' + 1`
51712 fi
51713
51714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51715 done
51716 case $ac_lo in
51717 ?*) ac_cv_sizeof_ssize_t=$ac_lo;;
51718 '') if test "$ac_cv_type_ssize_t" = yes; then
51719      { { echo "$as_me:$LINENO: error: cannot compute sizeof (ssize_t)
51720 See \`config.log' for more details." >&5
51721 echo "$as_me: error: cannot compute sizeof (ssize_t)
51722 See \`config.log' for more details." >&2;}
51723    { (exit 77); exit 77; }; }
51724    else
51725      ac_cv_sizeof_ssize_t=0
51726    fi ;;
51727 esac
51728 else
51729   cat >conftest.$ac_ext <<_ACEOF
51730 /* confdefs.h.  */
51731 _ACEOF
51732 cat confdefs.h >>conftest.$ac_ext
51733 cat >>conftest.$ac_ext <<_ACEOF
51734 /* end confdefs.h.  */
51735 $ac_includes_default
51736    typedef ssize_t ac__type_sizeof_;
51737 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
51738 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
51739 #include <stdio.h>
51740 #include <stdlib.h>
51741 int
51742 main ()
51743 {
51744
51745   FILE *f = fopen ("conftest.val", "w");
51746   if (! f)
51747     return 1;
51748   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
51749     {
51750       long int i = longval ();
51751       if (i != ((long int) (sizeof (ac__type_sizeof_))))
51752         return 1;
51753       fprintf (f, "%ld\n", i);
51754     }
51755   else
51756     {
51757       unsigned long int i = ulongval ();
51758       if (i != ((long int) (sizeof (ac__type_sizeof_))))
51759         return 1;
51760       fprintf (f, "%lu\n", i);
51761     }
51762   return ferror (f) || fclose (f) != 0;
51763
51764   ;
51765   return 0;
51766 }
51767 _ACEOF
51768 rm -f conftest$ac_exeext
51769 if { (ac_try="$ac_link"
51770 case "(($ac_try" in
51771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51772   *) ac_try_echo=$ac_try;;
51773 esac
51774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51775   (eval "$ac_link") 2>&5
51776   ac_status=$?
51777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51778   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
51779   { (case "(($ac_try" in
51780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51781   *) ac_try_echo=$ac_try;;
51782 esac
51783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51784   (eval "$ac_try") 2>&5
51785   ac_status=$?
51786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51787   (exit $ac_status); }; }; then
51788   ac_cv_sizeof_ssize_t=`cat conftest.val`
51789 else
51790   echo "$as_me: program exited with status $ac_status" >&5
51791 echo "$as_me: failed program was:" >&5
51792 sed 's/^/| /' conftest.$ac_ext >&5
51793
51794 ( exit $ac_status )
51795 if test "$ac_cv_type_ssize_t" = yes; then
51796      { { echo "$as_me:$LINENO: error: cannot compute sizeof (ssize_t)
51797 See \`config.log' for more details." >&5
51798 echo "$as_me: error: cannot compute sizeof (ssize_t)
51799 See \`config.log' for more details." >&2;}
51800    { (exit 77); exit 77; }; }
51801    else
51802      ac_cv_sizeof_ssize_t=0
51803    fi
51804 fi
51805 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
51806 fi
51807 rm -f conftest.val
51808 fi
51809 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_ssize_t" >&5
51810 echo "${ECHO_T}$ac_cv_sizeof_ssize_t" >&6; }
51811
51812
51813
51814 cat >>confdefs.h <<_ACEOF
51815 #define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
51816 _ACEOF
51817
51818
51819 { echo "$as_me:$LINENO: checking for time_t" >&5
51820 echo $ECHO_N "checking for time_t... $ECHO_C" >&6; }
51821 if test "${ac_cv_type_time_t+set}" = set; then
51822   echo $ECHO_N "(cached) $ECHO_C" >&6
51823 else
51824   cat >conftest.$ac_ext <<_ACEOF
51825 /* confdefs.h.  */
51826 _ACEOF
51827 cat confdefs.h >>conftest.$ac_ext
51828 cat >>conftest.$ac_ext <<_ACEOF
51829 /* end confdefs.h.  */
51830 $ac_includes_default
51831 typedef time_t ac__type_new_;
51832 int
51833 main ()
51834 {
51835 if ((ac__type_new_ *) 0)
51836   return 0;
51837 if (sizeof (ac__type_new_))
51838   return 0;
51839   ;
51840   return 0;
51841 }
51842 _ACEOF
51843 rm -f conftest.$ac_objext
51844 if { (ac_try="$ac_compile"
51845 case "(($ac_try" in
51846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51847   *) ac_try_echo=$ac_try;;
51848 esac
51849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51850   (eval "$ac_compile") 2>conftest.er1
51851   ac_status=$?
51852   grep -v '^ *+' conftest.er1 >conftest.err
51853   rm -f conftest.er1
51854   cat conftest.err >&5
51855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51856   (exit $ac_status); } && {
51857          test -z "$ac_c_werror_flag" ||
51858          test ! -s conftest.err
51859        } && test -s conftest.$ac_objext; then
51860   ac_cv_type_time_t=yes
51861 else
51862   echo "$as_me: failed program was:" >&5
51863 sed 's/^/| /' conftest.$ac_ext >&5
51864
51865         ac_cv_type_time_t=no
51866 fi
51867
51868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51869 fi
51870 { echo "$as_me:$LINENO: result: $ac_cv_type_time_t" >&5
51871 echo "${ECHO_T}$ac_cv_type_time_t" >&6; }
51872
51873 # The cast to long int works around a bug in the HP C Compiler
51874 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
51875 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
51876 # This bug is HP SR number 8606223364.
51877 { echo "$as_me:$LINENO: checking size of time_t" >&5
51878 echo $ECHO_N "checking size of time_t... $ECHO_C" >&6; }
51879 if test "${ac_cv_sizeof_time_t+set}" = set; then
51880   echo $ECHO_N "(cached) $ECHO_C" >&6
51881 else
51882   if test "$cross_compiling" = yes; then
51883   # Depending upon the size, compute the lo and hi bounds.
51884 cat >conftest.$ac_ext <<_ACEOF
51885 /* confdefs.h.  */
51886 _ACEOF
51887 cat confdefs.h >>conftest.$ac_ext
51888 cat >>conftest.$ac_ext <<_ACEOF
51889 /* end confdefs.h.  */
51890 $ac_includes_default
51891    typedef time_t ac__type_sizeof_;
51892 int
51893 main ()
51894 {
51895 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
51896 test_array [0] = 0
51897
51898   ;
51899   return 0;
51900 }
51901 _ACEOF
51902 rm -f conftest.$ac_objext
51903 if { (ac_try="$ac_compile"
51904 case "(($ac_try" in
51905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51906   *) ac_try_echo=$ac_try;;
51907 esac
51908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51909   (eval "$ac_compile") 2>conftest.er1
51910   ac_status=$?
51911   grep -v '^ *+' conftest.er1 >conftest.err
51912   rm -f conftest.er1
51913   cat conftest.err >&5
51914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51915   (exit $ac_status); } && {
51916          test -z "$ac_c_werror_flag" ||
51917          test ! -s conftest.err
51918        } && test -s conftest.$ac_objext; then
51919   ac_lo=0 ac_mid=0
51920   while :; do
51921     cat >conftest.$ac_ext <<_ACEOF
51922 /* confdefs.h.  */
51923 _ACEOF
51924 cat confdefs.h >>conftest.$ac_ext
51925 cat >>conftest.$ac_ext <<_ACEOF
51926 /* end confdefs.h.  */
51927 $ac_includes_default
51928    typedef time_t ac__type_sizeof_;
51929 int
51930 main ()
51931 {
51932 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
51933 test_array [0] = 0
51934
51935   ;
51936   return 0;
51937 }
51938 _ACEOF
51939 rm -f conftest.$ac_objext
51940 if { (ac_try="$ac_compile"
51941 case "(($ac_try" in
51942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51943   *) ac_try_echo=$ac_try;;
51944 esac
51945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51946   (eval "$ac_compile") 2>conftest.er1
51947   ac_status=$?
51948   grep -v '^ *+' conftest.er1 >conftest.err
51949   rm -f conftest.er1
51950   cat conftest.err >&5
51951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51952   (exit $ac_status); } && {
51953          test -z "$ac_c_werror_flag" ||
51954          test ! -s conftest.err
51955        } && test -s conftest.$ac_objext; then
51956   ac_hi=$ac_mid; break
51957 else
51958   echo "$as_me: failed program was:" >&5
51959 sed 's/^/| /' conftest.$ac_ext >&5
51960
51961         ac_lo=`expr $ac_mid + 1`
51962                         if test $ac_lo -le $ac_mid; then
51963                           ac_lo= ac_hi=
51964                           break
51965                         fi
51966                         ac_mid=`expr 2 '*' $ac_mid + 1`
51967 fi
51968
51969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51970   done
51971 else
51972   echo "$as_me: failed program was:" >&5
51973 sed 's/^/| /' conftest.$ac_ext >&5
51974
51975         cat >conftest.$ac_ext <<_ACEOF
51976 /* confdefs.h.  */
51977 _ACEOF
51978 cat confdefs.h >>conftest.$ac_ext
51979 cat >>conftest.$ac_ext <<_ACEOF
51980 /* end confdefs.h.  */
51981 $ac_includes_default
51982    typedef time_t ac__type_sizeof_;
51983 int
51984 main ()
51985 {
51986 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
51987 test_array [0] = 0
51988
51989   ;
51990   return 0;
51991 }
51992 _ACEOF
51993 rm -f conftest.$ac_objext
51994 if { (ac_try="$ac_compile"
51995 case "(($ac_try" in
51996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51997   *) ac_try_echo=$ac_try;;
51998 esac
51999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52000   (eval "$ac_compile") 2>conftest.er1
52001   ac_status=$?
52002   grep -v '^ *+' conftest.er1 >conftest.err
52003   rm -f conftest.er1
52004   cat conftest.err >&5
52005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52006   (exit $ac_status); } && {
52007          test -z "$ac_c_werror_flag" ||
52008          test ! -s conftest.err
52009        } && test -s conftest.$ac_objext; then
52010   ac_hi=-1 ac_mid=-1
52011   while :; do
52012     cat >conftest.$ac_ext <<_ACEOF
52013 /* confdefs.h.  */
52014 _ACEOF
52015 cat confdefs.h >>conftest.$ac_ext
52016 cat >>conftest.$ac_ext <<_ACEOF
52017 /* end confdefs.h.  */
52018 $ac_includes_default
52019    typedef time_t ac__type_sizeof_;
52020 int
52021 main ()
52022 {
52023 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
52024 test_array [0] = 0
52025
52026   ;
52027   return 0;
52028 }
52029 _ACEOF
52030 rm -f conftest.$ac_objext
52031 if { (ac_try="$ac_compile"
52032 case "(($ac_try" in
52033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52034   *) ac_try_echo=$ac_try;;
52035 esac
52036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52037   (eval "$ac_compile") 2>conftest.er1
52038   ac_status=$?
52039   grep -v '^ *+' conftest.er1 >conftest.err
52040   rm -f conftest.er1
52041   cat conftest.err >&5
52042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52043   (exit $ac_status); } && {
52044          test -z "$ac_c_werror_flag" ||
52045          test ! -s conftest.err
52046        } && test -s conftest.$ac_objext; then
52047   ac_lo=$ac_mid; break
52048 else
52049   echo "$as_me: failed program was:" >&5
52050 sed 's/^/| /' conftest.$ac_ext >&5
52051
52052         ac_hi=`expr '(' $ac_mid ')' - 1`
52053                         if test $ac_mid -le $ac_hi; then
52054                           ac_lo= ac_hi=
52055                           break
52056                         fi
52057                         ac_mid=`expr 2 '*' $ac_mid`
52058 fi
52059
52060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52061   done
52062 else
52063   echo "$as_me: failed program was:" >&5
52064 sed 's/^/| /' conftest.$ac_ext >&5
52065
52066         ac_lo= ac_hi=
52067 fi
52068
52069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52070 fi
52071
52072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52073 # Binary search between lo and hi bounds.
52074 while test "x$ac_lo" != "x$ac_hi"; do
52075   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
52076   cat >conftest.$ac_ext <<_ACEOF
52077 /* confdefs.h.  */
52078 _ACEOF
52079 cat confdefs.h >>conftest.$ac_ext
52080 cat >>conftest.$ac_ext <<_ACEOF
52081 /* end confdefs.h.  */
52082 $ac_includes_default
52083    typedef time_t ac__type_sizeof_;
52084 int
52085 main ()
52086 {
52087 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
52088 test_array [0] = 0
52089
52090   ;
52091   return 0;
52092 }
52093 _ACEOF
52094 rm -f conftest.$ac_objext
52095 if { (ac_try="$ac_compile"
52096 case "(($ac_try" in
52097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52098   *) ac_try_echo=$ac_try;;
52099 esac
52100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52101   (eval "$ac_compile") 2>conftest.er1
52102   ac_status=$?
52103   grep -v '^ *+' conftest.er1 >conftest.err
52104   rm -f conftest.er1
52105   cat conftest.err >&5
52106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52107   (exit $ac_status); } && {
52108          test -z "$ac_c_werror_flag" ||
52109          test ! -s conftest.err
52110        } && test -s conftest.$ac_objext; then
52111   ac_hi=$ac_mid
52112 else
52113   echo "$as_me: failed program was:" >&5
52114 sed 's/^/| /' conftest.$ac_ext >&5
52115
52116         ac_lo=`expr '(' $ac_mid ')' + 1`
52117 fi
52118
52119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52120 done
52121 case $ac_lo in
52122 ?*) ac_cv_sizeof_time_t=$ac_lo;;
52123 '') if test "$ac_cv_type_time_t" = yes; then
52124      { { echo "$as_me:$LINENO: error: cannot compute sizeof (time_t)
52125 See \`config.log' for more details." >&5
52126 echo "$as_me: error: cannot compute sizeof (time_t)
52127 See \`config.log' for more details." >&2;}
52128    { (exit 77); exit 77; }; }
52129    else
52130      ac_cv_sizeof_time_t=0
52131    fi ;;
52132 esac
52133 else
52134   cat >conftest.$ac_ext <<_ACEOF
52135 /* confdefs.h.  */
52136 _ACEOF
52137 cat confdefs.h >>conftest.$ac_ext
52138 cat >>conftest.$ac_ext <<_ACEOF
52139 /* end confdefs.h.  */
52140 $ac_includes_default
52141    typedef time_t ac__type_sizeof_;
52142 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
52143 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
52144 #include <stdio.h>
52145 #include <stdlib.h>
52146 int
52147 main ()
52148 {
52149
52150   FILE *f = fopen ("conftest.val", "w");
52151   if (! f)
52152     return 1;
52153   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
52154     {
52155       long int i = longval ();
52156       if (i != ((long int) (sizeof (ac__type_sizeof_))))
52157         return 1;
52158       fprintf (f, "%ld\n", i);
52159     }
52160   else
52161     {
52162       unsigned long int i = ulongval ();
52163       if (i != ((long int) (sizeof (ac__type_sizeof_))))
52164         return 1;
52165       fprintf (f, "%lu\n", i);
52166     }
52167   return ferror (f) || fclose (f) != 0;
52168
52169   ;
52170   return 0;
52171 }
52172 _ACEOF
52173 rm -f conftest$ac_exeext
52174 if { (ac_try="$ac_link"
52175 case "(($ac_try" in
52176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52177   *) ac_try_echo=$ac_try;;
52178 esac
52179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52180   (eval "$ac_link") 2>&5
52181   ac_status=$?
52182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52183   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
52184   { (case "(($ac_try" in
52185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52186   *) ac_try_echo=$ac_try;;
52187 esac
52188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52189   (eval "$ac_try") 2>&5
52190   ac_status=$?
52191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52192   (exit $ac_status); }; }; then
52193   ac_cv_sizeof_time_t=`cat conftest.val`
52194 else
52195   echo "$as_me: program exited with status $ac_status" >&5
52196 echo "$as_me: failed program was:" >&5
52197 sed 's/^/| /' conftest.$ac_ext >&5
52198
52199 ( exit $ac_status )
52200 if test "$ac_cv_type_time_t" = yes; then
52201      { { echo "$as_me:$LINENO: error: cannot compute sizeof (time_t)
52202 See \`config.log' for more details." >&5
52203 echo "$as_me: error: cannot compute sizeof (time_t)
52204 See \`config.log' for more details." >&2;}
52205    { (exit 77); exit 77; }; }
52206    else
52207      ac_cv_sizeof_time_t=0
52208    fi
52209 fi
52210 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
52211 fi
52212 rm -f conftest.val
52213 fi
52214 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
52215 echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6; }
52216
52217
52218
52219 cat >>confdefs.h <<_ACEOF
52220 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
52221 _ACEOF
52222
52223
52224 { echo "$as_me:$LINENO: checking for off_t" >&5
52225 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
52226 if test "${ac_cv_type_off_t+set}" = set; then
52227   echo $ECHO_N "(cached) $ECHO_C" >&6
52228 else
52229   cat >conftest.$ac_ext <<_ACEOF
52230 /* confdefs.h.  */
52231 _ACEOF
52232 cat confdefs.h >>conftest.$ac_ext
52233 cat >>conftest.$ac_ext <<_ACEOF
52234 /* end confdefs.h.  */
52235 $ac_includes_default
52236 typedef off_t ac__type_new_;
52237 int
52238 main ()
52239 {
52240 if ((ac__type_new_ *) 0)
52241   return 0;
52242 if (sizeof (ac__type_new_))
52243   return 0;
52244   ;
52245   return 0;
52246 }
52247 _ACEOF
52248 rm -f conftest.$ac_objext
52249 if { (ac_try="$ac_compile"
52250 case "(($ac_try" in
52251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52252   *) ac_try_echo=$ac_try;;
52253 esac
52254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52255   (eval "$ac_compile") 2>conftest.er1
52256   ac_status=$?
52257   grep -v '^ *+' conftest.er1 >conftest.err
52258   rm -f conftest.er1
52259   cat conftest.err >&5
52260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52261   (exit $ac_status); } && {
52262          test -z "$ac_c_werror_flag" ||
52263          test ! -s conftest.err
52264        } && test -s conftest.$ac_objext; then
52265   ac_cv_type_off_t=yes
52266 else
52267   echo "$as_me: failed program was:" >&5
52268 sed 's/^/| /' conftest.$ac_ext >&5
52269
52270         ac_cv_type_off_t=no
52271 fi
52272
52273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52274 fi
52275 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
52276 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
52277 if test $ac_cv_type_off_t = yes; then
52278   :
52279 else
52280
52281 cat >>confdefs.h <<_ACEOF
52282 #define off_t long int
52283 _ACEOF
52284
52285 fi
52286
52287 { echo "$as_me:$LINENO: checking for pid_t" >&5
52288 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
52289 if test "${ac_cv_type_pid_t+set}" = set; then
52290   echo $ECHO_N "(cached) $ECHO_C" >&6
52291 else
52292   cat >conftest.$ac_ext <<_ACEOF
52293 /* confdefs.h.  */
52294 _ACEOF
52295 cat confdefs.h >>conftest.$ac_ext
52296 cat >>conftest.$ac_ext <<_ACEOF
52297 /* end confdefs.h.  */
52298 $ac_includes_default
52299 typedef pid_t ac__type_new_;
52300 int
52301 main ()
52302 {
52303 if ((ac__type_new_ *) 0)
52304   return 0;
52305 if (sizeof (ac__type_new_))
52306   return 0;
52307   ;
52308   return 0;
52309 }
52310 _ACEOF
52311 rm -f conftest.$ac_objext
52312 if { (ac_try="$ac_compile"
52313 case "(($ac_try" in
52314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52315   *) ac_try_echo=$ac_try;;
52316 esac
52317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52318   (eval "$ac_compile") 2>conftest.er1
52319   ac_status=$?
52320   grep -v '^ *+' conftest.er1 >conftest.err
52321   rm -f conftest.er1
52322   cat conftest.err >&5
52323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52324   (exit $ac_status); } && {
52325          test -z "$ac_c_werror_flag" ||
52326          test ! -s conftest.err
52327        } && test -s conftest.$ac_objext; then
52328   ac_cv_type_pid_t=yes
52329 else
52330   echo "$as_me: failed program was:" >&5
52331 sed 's/^/| /' conftest.$ac_ext >&5
52332
52333         ac_cv_type_pid_t=no
52334 fi
52335
52336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52337 fi
52338 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
52339 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
52340 if test $ac_cv_type_pid_t = yes; then
52341   :
52342 else
52343
52344 cat >>confdefs.h <<_ACEOF
52345 #define pid_t int
52346 _ACEOF
52347
52348 fi
52349
52350 { echo "$as_me:$LINENO: checking for size_t" >&5
52351 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
52352 if test "${ac_cv_type_size_t+set}" = set; then
52353   echo $ECHO_N "(cached) $ECHO_C" >&6
52354 else
52355   cat >conftest.$ac_ext <<_ACEOF
52356 /* confdefs.h.  */
52357 _ACEOF
52358 cat confdefs.h >>conftest.$ac_ext
52359 cat >>conftest.$ac_ext <<_ACEOF
52360 /* end confdefs.h.  */
52361 $ac_includes_default
52362 typedef size_t ac__type_new_;
52363 int
52364 main ()
52365 {
52366 if ((ac__type_new_ *) 0)
52367   return 0;
52368 if (sizeof (ac__type_new_))
52369   return 0;
52370   ;
52371   return 0;
52372 }
52373 _ACEOF
52374 rm -f conftest.$ac_objext
52375 if { (ac_try="$ac_compile"
52376 case "(($ac_try" in
52377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52378   *) ac_try_echo=$ac_try;;
52379 esac
52380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52381   (eval "$ac_compile") 2>conftest.er1
52382   ac_status=$?
52383   grep -v '^ *+' conftest.er1 >conftest.err
52384   rm -f conftest.er1
52385   cat conftest.err >&5
52386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52387   (exit $ac_status); } && {
52388          test -z "$ac_c_werror_flag" ||
52389          test ! -s conftest.err
52390        } && test -s conftest.$ac_objext; then
52391   ac_cv_type_size_t=yes
52392 else
52393   echo "$as_me: failed program was:" >&5
52394 sed 's/^/| /' conftest.$ac_ext >&5
52395
52396         ac_cv_type_size_t=no
52397 fi
52398
52399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52400 fi
52401 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
52402 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
52403 if test $ac_cv_type_size_t = yes; then
52404   :
52405 else
52406
52407 cat >>confdefs.h <<_ACEOF
52408 #define size_t unsigned int
52409 _ACEOF
52410
52411 fi
52412
52413 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
52414 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
52415 if test "${ac_cv_type_uid_t+set}" = set; then
52416   echo $ECHO_N "(cached) $ECHO_C" >&6
52417 else
52418   cat >conftest.$ac_ext <<_ACEOF
52419 /* confdefs.h.  */
52420 _ACEOF
52421 cat confdefs.h >>conftest.$ac_ext
52422 cat >>conftest.$ac_ext <<_ACEOF
52423 /* end confdefs.h.  */
52424 #include <sys/types.h>
52425
52426 _ACEOF
52427 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
52428   $EGREP "uid_t" >/dev/null 2>&1; then
52429   ac_cv_type_uid_t=yes
52430 else
52431   ac_cv_type_uid_t=no
52432 fi
52433 rm -f conftest*
52434
52435 fi
52436 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
52437 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
52438 if test $ac_cv_type_uid_t = no; then
52439
52440 cat >>confdefs.h <<\_ACEOF
52441 #define uid_t int
52442 _ACEOF
52443
52444
52445 cat >>confdefs.h <<\_ACEOF
52446 #define gid_t int
52447 _ACEOF
52448
52449 fi
52450
52451 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
52452 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
52453 if test "${ac_cv_type_signal+set}" = set; then
52454   echo $ECHO_N "(cached) $ECHO_C" >&6
52455 else
52456   cat >conftest.$ac_ext <<_ACEOF
52457 /* confdefs.h.  */
52458 _ACEOF
52459 cat confdefs.h >>conftest.$ac_ext
52460 cat >>conftest.$ac_ext <<_ACEOF
52461 /* end confdefs.h.  */
52462 #include <sys/types.h>
52463 #include <signal.h>
52464
52465 int
52466 main ()
52467 {
52468 return *(signal (0, 0)) (0) == 1;
52469   ;
52470   return 0;
52471 }
52472 _ACEOF
52473 rm -f conftest.$ac_objext
52474 if { (ac_try="$ac_compile"
52475 case "(($ac_try" in
52476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52477   *) ac_try_echo=$ac_try;;
52478 esac
52479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52480   (eval "$ac_compile") 2>conftest.er1
52481   ac_status=$?
52482   grep -v '^ *+' conftest.er1 >conftest.err
52483   rm -f conftest.er1
52484   cat conftest.err >&5
52485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52486   (exit $ac_status); } && {
52487          test -z "$ac_c_werror_flag" ||
52488          test ! -s conftest.err
52489        } && test -s conftest.$ac_objext; then
52490   ac_cv_type_signal=int
52491 else
52492   echo "$as_me: failed program was:" >&5
52493 sed 's/^/| /' conftest.$ac_ext >&5
52494
52495         ac_cv_type_signal=void
52496 fi
52497
52498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52499 fi
52500 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
52501 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
52502
52503 cat >>confdefs.h <<_ACEOF
52504 #define RETSIGTYPE $ac_cv_type_signal
52505 _ACEOF
52506
52507
52508 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
52509 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
52510 if test "${ac_cv_struct_tm+set}" = set; then
52511   echo $ECHO_N "(cached) $ECHO_C" >&6
52512 else
52513   cat >conftest.$ac_ext <<_ACEOF
52514 /* confdefs.h.  */
52515 _ACEOF
52516 cat confdefs.h >>conftest.$ac_ext
52517 cat >>conftest.$ac_ext <<_ACEOF
52518 /* end confdefs.h.  */
52519 #include <sys/types.h>
52520 #include <time.h>
52521
52522 int
52523 main ()
52524 {
52525 struct tm tm;
52526                                      int *p = &tm.tm_sec;
52527                                      return !p;
52528   ;
52529   return 0;
52530 }
52531 _ACEOF
52532 rm -f conftest.$ac_objext
52533 if { (ac_try="$ac_compile"
52534 case "(($ac_try" in
52535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52536   *) ac_try_echo=$ac_try;;
52537 esac
52538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52539   (eval "$ac_compile") 2>conftest.er1
52540   ac_status=$?
52541   grep -v '^ *+' conftest.er1 >conftest.err
52542   rm -f conftest.er1
52543   cat conftest.err >&5
52544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52545   (exit $ac_status); } && {
52546          test -z "$ac_c_werror_flag" ||
52547          test ! -s conftest.err
52548        } && test -s conftest.$ac_objext; then
52549   ac_cv_struct_tm=time.h
52550 else
52551   echo "$as_me: failed program was:" >&5
52552 sed 's/^/| /' conftest.$ac_ext >&5
52553
52554         ac_cv_struct_tm=sys/time.h
52555 fi
52556
52557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52558 fi
52559 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
52560 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
52561 if test $ac_cv_struct_tm = sys/time.h; then
52562
52563 cat >>confdefs.h <<\_ACEOF
52564 #define TM_IN_SYS_TIME 1
52565 _ACEOF
52566
52567 fi
52568
52569
52570
52571     { echo "$as_me:$LINENO: checking for socklen_t" >&5
52572 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
52573 if test "${ac_cv_type_socklen_t+set}" = set; then
52574   echo $ECHO_N "(cached) $ECHO_C" >&6
52575 else
52576   cat >conftest.$ac_ext <<_ACEOF
52577 /* confdefs.h.  */
52578 _ACEOF
52579 cat confdefs.h >>conftest.$ac_ext
52580 cat >>conftest.$ac_ext <<_ACEOF
52581 /* end confdefs.h.  */
52582
52583 #ifdef STDC_HEADERS
52584 #include <stdlib.h>
52585 #include <stddef.h>
52586 #endif
52587 #include <sys/socket.h>
52588
52589
52590
52591 typedef socklen_t ac__type_new_;
52592 int
52593 main ()
52594 {
52595 if ((ac__type_new_ *) 0)
52596   return 0;
52597 if (sizeof (ac__type_new_))
52598   return 0;
52599   ;
52600   return 0;
52601 }
52602 _ACEOF
52603 rm -f conftest.$ac_objext
52604 if { (ac_try="$ac_compile"
52605 case "(($ac_try" in
52606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52607   *) ac_try_echo=$ac_try;;
52608 esac
52609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52610   (eval "$ac_compile") 2>conftest.er1
52611   ac_status=$?
52612   grep -v '^ *+' conftest.er1 >conftest.err
52613   rm -f conftest.er1
52614   cat conftest.err >&5
52615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52616   (exit $ac_status); } && {
52617          test -z "$ac_c_werror_flag" ||
52618          test ! -s conftest.err
52619        } && test -s conftest.$ac_objext; then
52620   ac_cv_type_socklen_t=yes
52621 else
52622   echo "$as_me: failed program was:" >&5
52623 sed 's/^/| /' conftest.$ac_ext >&5
52624
52625         ac_cv_type_socklen_t=no
52626 fi
52627
52628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52629 fi
52630 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
52631 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
52632 if test $ac_cv_type_socklen_t = yes; then
52633   :
52634 else
52635
52636
52637 cat >>confdefs.h <<\_ACEOF
52638 #define socklen_t int
52639 _ACEOF
52640
52641
52642 fi
52643
52644
52645
52646
52647     { echo "$as_me:$LINENO: checking for sa_family_t" >&5
52648 echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6; }
52649 if test "${ac_cv_type_sa_family_t+set}" = set; then
52650   echo $ECHO_N "(cached) $ECHO_C" >&6
52651 else
52652   cat >conftest.$ac_ext <<_ACEOF
52653 /* confdefs.h.  */
52654 _ACEOF
52655 cat confdefs.h >>conftest.$ac_ext
52656 cat >>conftest.$ac_ext <<_ACEOF
52657 /* end confdefs.h.  */
52658
52659 #ifdef STDC_HEADERS
52660 #include <stdlib.h>
52661 #include <stddef.h>
52662 #endif
52663 #include <sys/socket.h>
52664
52665
52666
52667 typedef sa_family_t ac__type_new_;
52668 int
52669 main ()
52670 {
52671 if ((ac__type_new_ *) 0)
52672   return 0;
52673 if (sizeof (ac__type_new_))
52674   return 0;
52675   ;
52676   return 0;
52677 }
52678 _ACEOF
52679 rm -f conftest.$ac_objext
52680 if { (ac_try="$ac_compile"
52681 case "(($ac_try" in
52682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52683   *) ac_try_echo=$ac_try;;
52684 esac
52685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52686   (eval "$ac_compile") 2>conftest.er1
52687   ac_status=$?
52688   grep -v '^ *+' conftest.er1 >conftest.err
52689   rm -f conftest.er1
52690   cat conftest.err >&5
52691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52692   (exit $ac_status); } && {
52693          test -z "$ac_c_werror_flag" ||
52694          test ! -s conftest.err
52695        } && test -s conftest.$ac_objext; then
52696   ac_cv_type_sa_family_t=yes
52697 else
52698   echo "$as_me: failed program was:" >&5
52699 sed 's/^/| /' conftest.$ac_ext >&5
52700
52701         ac_cv_type_sa_family_t=no
52702 fi
52703
52704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52705 fi
52706 { echo "$as_me:$LINENO: result: $ac_cv_type_sa_family_t" >&5
52707 echo "${ECHO_T}$ac_cv_type_sa_family_t" >&6; }
52708 if test $ac_cv_type_sa_family_t = yes; then
52709   :
52710 else
52711
52712
52713 cat >>confdefs.h <<\_ACEOF
52714 #define sa_family_t unsigned short
52715 _ACEOF
52716
52717
52718 fi
52719
52720
52721
52722
52723     { echo "$as_me:$LINENO: checking for in_port_t" >&5
52724 echo $ECHO_N "checking for in_port_t... $ECHO_C" >&6; }
52725 if test "${ac_cv_type_in_port_t+set}" = set; then
52726   echo $ECHO_N "(cached) $ECHO_C" >&6
52727 else
52728   cat >conftest.$ac_ext <<_ACEOF
52729 /* confdefs.h.  */
52730 _ACEOF
52731 cat confdefs.h >>conftest.$ac_ext
52732 cat >>conftest.$ac_ext <<_ACEOF
52733 /* end confdefs.h.  */
52734
52735 #ifdef STDC_HEADERS
52736 #include <stdlib.h>
52737 #include <stddef.h>
52738 #endif
52739 #include <netinet/in.h>
52740
52741
52742
52743 typedef in_port_t ac__type_new_;
52744 int
52745 main ()
52746 {
52747 if ((ac__type_new_ *) 0)
52748   return 0;
52749 if (sizeof (ac__type_new_))
52750   return 0;
52751   ;
52752   return 0;
52753 }
52754 _ACEOF
52755 rm -f conftest.$ac_objext
52756 if { (ac_try="$ac_compile"
52757 case "(($ac_try" in
52758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52759   *) ac_try_echo=$ac_try;;
52760 esac
52761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52762   (eval "$ac_compile") 2>conftest.er1
52763   ac_status=$?
52764   grep -v '^ *+' conftest.er1 >conftest.err
52765   rm -f conftest.er1
52766   cat conftest.err >&5
52767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52768   (exit $ac_status); } && {
52769          test -z "$ac_c_werror_flag" ||
52770          test ! -s conftest.err
52771        } && test -s conftest.$ac_objext; then
52772   ac_cv_type_in_port_t=yes
52773 else
52774   echo "$as_me: failed program was:" >&5
52775 sed 's/^/| /' conftest.$ac_ext >&5
52776
52777         ac_cv_type_in_port_t=no
52778 fi
52779
52780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52781 fi
52782 { echo "$as_me:$LINENO: result: $ac_cv_type_in_port_t" >&5
52783 echo "${ECHO_T}$ac_cv_type_in_port_t" >&6; }
52784 if test $ac_cv_type_in_port_t = yes; then
52785   :
52786 else
52787
52788
52789 cat >>confdefs.h <<\_ACEOF
52790 #define in_port_t unsigned short
52791 _ACEOF
52792
52793
52794 fi
52795
52796
52797
52798
52799
52800
52801 for ac_header in sys/wait.h wait.h
52802 do
52803 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
52804 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
52805   { echo "$as_me:$LINENO: checking for $ac_header" >&5
52806 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
52807 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
52808   echo $ECHO_N "(cached) $ECHO_C" >&6
52809 fi
52810 ac_res=`eval echo '${'$as_ac_Header'}'`
52811                { echo "$as_me:$LINENO: result: $ac_res" >&5
52812 echo "${ECHO_T}$ac_res" >&6; }
52813 else
52814   # Is the header compilable?
52815 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
52816 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
52817 cat >conftest.$ac_ext <<_ACEOF
52818 /* confdefs.h.  */
52819 _ACEOF
52820 cat confdefs.h >>conftest.$ac_ext
52821 cat >>conftest.$ac_ext <<_ACEOF
52822 /* end confdefs.h.  */
52823 $ac_includes_default
52824 #include <$ac_header>
52825 _ACEOF
52826 rm -f conftest.$ac_objext
52827 if { (ac_try="$ac_compile"
52828 case "(($ac_try" in
52829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52830   *) ac_try_echo=$ac_try;;
52831 esac
52832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52833   (eval "$ac_compile") 2>conftest.er1
52834   ac_status=$?
52835   grep -v '^ *+' conftest.er1 >conftest.err
52836   rm -f conftest.er1
52837   cat conftest.err >&5
52838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52839   (exit $ac_status); } && {
52840          test -z "$ac_c_werror_flag" ||
52841          test ! -s conftest.err
52842        } && test -s conftest.$ac_objext; then
52843   ac_header_compiler=yes
52844 else
52845   echo "$as_me: failed program was:" >&5
52846 sed 's/^/| /' conftest.$ac_ext >&5
52847
52848         ac_header_compiler=no
52849 fi
52850
52851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52852 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
52853 echo "${ECHO_T}$ac_header_compiler" >&6; }
52854
52855 # Is the header present?
52856 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
52857 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
52858 cat >conftest.$ac_ext <<_ACEOF
52859 /* confdefs.h.  */
52860 _ACEOF
52861 cat confdefs.h >>conftest.$ac_ext
52862 cat >>conftest.$ac_ext <<_ACEOF
52863 /* end confdefs.h.  */
52864 #include <$ac_header>
52865 _ACEOF
52866 if { (ac_try="$ac_cpp conftest.$ac_ext"
52867 case "(($ac_try" in
52868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52869   *) ac_try_echo=$ac_try;;
52870 esac
52871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52872   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
52873   ac_status=$?
52874   grep -v '^ *+' conftest.er1 >conftest.err
52875   rm -f conftest.er1
52876   cat conftest.err >&5
52877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52878   (exit $ac_status); } >/dev/null && {
52879          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
52880          test ! -s conftest.err
52881        }; then
52882   ac_header_preproc=yes
52883 else
52884   echo "$as_me: failed program was:" >&5
52885 sed 's/^/| /' conftest.$ac_ext >&5
52886
52887   ac_header_preproc=no
52888 fi
52889
52890 rm -f conftest.err conftest.$ac_ext
52891 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
52892 echo "${ECHO_T}$ac_header_preproc" >&6; }
52893
52894 # So?  What about this header?
52895 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
52896   yes:no: )
52897     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
52898 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
52899     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
52900 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
52901     ac_header_preproc=yes
52902     ;;
52903   no:yes:* )
52904     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
52905 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
52906     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
52907 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
52908     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
52909 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
52910     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
52911 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
52912     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
52913 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
52914     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
52915 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
52916
52917     ;;
52918 esac
52919 { echo "$as_me:$LINENO: checking for $ac_header" >&5
52920 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
52921 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
52922   echo $ECHO_N "(cached) $ECHO_C" >&6
52923 else
52924   eval "$as_ac_Header=\$ac_header_preproc"
52925 fi
52926 ac_res=`eval echo '${'$as_ac_Header'}'`
52927                { echo "$as_me:$LINENO: result: $ac_res" >&5
52928 echo "${ECHO_T}$ac_res" >&6; }
52929
52930 fi
52931 if test `eval echo '${'$as_ac_Header'}'` = yes; then
52932   cat >>confdefs.h <<_ACEOF
52933 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
52934 _ACEOF
52935
52936 fi
52937
52938 done
52939
52940     { echo "$as_me:$LINENO: checking whether wait uses union wait" >&5
52941 echo $ECHO_N "checking whether wait uses union wait... $ECHO_C" >&6; }
52942 if test "${cf_cv_arg_union_wait+set}" = set; then
52943   echo $ECHO_N "(cached) $ECHO_C" >&6
52944 else
52945
52946         cat >conftest.$ac_ext <<_ACEOF
52947 /* confdefs.h.  */
52948 _ACEOF
52949 cat confdefs.h >>conftest.$ac_ext
52950 cat >>conftest.$ac_ext <<_ACEOF
52951 /* end confdefs.h.  */
52952
52953 #include <sys/types.h>
52954
52955 #if HAVE_SYS_WAIT_H
52956 # include <sys/wait.h>
52957 #else
52958 # if HAVE_WAIT_H
52959 #  include <wait.h>
52960 # endif
52961 #endif
52962
52963 #ifdef __STDC__
52964 pid_t wait(union wait *);
52965 #endif
52966
52967 int
52968 main ()
52969 {
52970
52971   union wait x; int i;
52972   wait(&x); i = WIFEXITED(x)
52973
52974   ;
52975   return 0;
52976 }
52977 _ACEOF
52978 rm -f conftest.$ac_objext
52979 if { (ac_try="$ac_compile"
52980 case "(($ac_try" in
52981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52982   *) ac_try_echo=$ac_try;;
52983 esac
52984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52985   (eval "$ac_compile") 2>conftest.er1
52986   ac_status=$?
52987   grep -v '^ *+' conftest.er1 >conftest.err
52988   rm -f conftest.er1
52989   cat conftest.err >&5
52990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52991   (exit $ac_status); } && {
52992          test -z "$ac_c_werror_flag" ||
52993          test ! -s conftest.err
52994        } && test -s conftest.$ac_objext; then
52995   cf_cv_arg_union_wait=yes
52996 else
52997   echo "$as_me: failed program was:" >&5
52998 sed 's/^/| /' conftest.$ac_ext >&5
52999
53000         cf_cv_arg_union_wait=no
53001 fi
53002
53003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53004 fi
53005 { echo "$as_me:$LINENO: result: $cf_cv_arg_union_wait" >&5
53006 echo "${ECHO_T}$cf_cv_arg_union_wait" >&6; }
53007     if test $cf_cv_arg_union_wait = yes; then
53008
53009 cat >>confdefs.h <<\_ACEOF
53010 #define WAIT_USES_UNION 1
53011 _ACEOF
53012
53013     fi
53014
53015
53016
53017
53018
53019 for ac_header in sys/wait.h wait.h
53020 do
53021 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
53022 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
53023   { echo "$as_me:$LINENO: checking for $ac_header" >&5
53024 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
53025 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
53026   echo $ECHO_N "(cached) $ECHO_C" >&6
53027 fi
53028 ac_res=`eval echo '${'$as_ac_Header'}'`
53029                { echo "$as_me:$LINENO: result: $ac_res" >&5
53030 echo "${ECHO_T}$ac_res" >&6; }
53031 else
53032   # Is the header compilable?
53033 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
53034 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
53035 cat >conftest.$ac_ext <<_ACEOF
53036 /* confdefs.h.  */
53037 _ACEOF
53038 cat confdefs.h >>conftest.$ac_ext
53039 cat >>conftest.$ac_ext <<_ACEOF
53040 /* end confdefs.h.  */
53041 $ac_includes_default
53042 #include <$ac_header>
53043 _ACEOF
53044 rm -f conftest.$ac_objext
53045 if { (ac_try="$ac_compile"
53046 case "(($ac_try" in
53047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53048   *) ac_try_echo=$ac_try;;
53049 esac
53050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53051   (eval "$ac_compile") 2>conftest.er1
53052   ac_status=$?
53053   grep -v '^ *+' conftest.er1 >conftest.err
53054   rm -f conftest.er1
53055   cat conftest.err >&5
53056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53057   (exit $ac_status); } && {
53058          test -z "$ac_c_werror_flag" ||
53059          test ! -s conftest.err
53060        } && test -s conftest.$ac_objext; then
53061   ac_header_compiler=yes
53062 else
53063   echo "$as_me: failed program was:" >&5
53064 sed 's/^/| /' conftest.$ac_ext >&5
53065
53066         ac_header_compiler=no
53067 fi
53068
53069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53070 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
53071 echo "${ECHO_T}$ac_header_compiler" >&6; }
53072
53073 # Is the header present?
53074 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
53075 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
53076 cat >conftest.$ac_ext <<_ACEOF
53077 /* confdefs.h.  */
53078 _ACEOF
53079 cat confdefs.h >>conftest.$ac_ext
53080 cat >>conftest.$ac_ext <<_ACEOF
53081 /* end confdefs.h.  */
53082 #include <$ac_header>
53083 _ACEOF
53084 if { (ac_try="$ac_cpp conftest.$ac_ext"
53085 case "(($ac_try" in
53086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53087   *) ac_try_echo=$ac_try;;
53088 esac
53089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53090   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
53091   ac_status=$?
53092   grep -v '^ *+' conftest.er1 >conftest.err
53093   rm -f conftest.er1
53094   cat conftest.err >&5
53095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53096   (exit $ac_status); } >/dev/null && {
53097          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
53098          test ! -s conftest.err
53099        }; then
53100   ac_header_preproc=yes
53101 else
53102   echo "$as_me: failed program was:" >&5
53103 sed 's/^/| /' conftest.$ac_ext >&5
53104
53105   ac_header_preproc=no
53106 fi
53107
53108 rm -f conftest.err conftest.$ac_ext
53109 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
53110 echo "${ECHO_T}$ac_header_preproc" >&6; }
53111
53112 # So?  What about this header?
53113 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
53114   yes:no: )
53115     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
53116 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
53117     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
53118 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
53119     ac_header_preproc=yes
53120     ;;
53121   no:yes:* )
53122     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
53123 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
53124     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
53125 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
53126     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
53127 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
53128     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
53129 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
53130     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
53131 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
53132     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
53133 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
53134
53135     ;;
53136 esac
53137 { echo "$as_me:$LINENO: checking for $ac_header" >&5
53138 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
53139 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
53140   echo $ECHO_N "(cached) $ECHO_C" >&6
53141 else
53142   eval "$as_ac_Header=\$ac_header_preproc"
53143 fi
53144 ac_res=`eval echo '${'$as_ac_Header'}'`
53145                { echo "$as_me:$LINENO: result: $ac_res" >&5
53146 echo "${ECHO_T}$ac_res" >&6; }
53147
53148 fi
53149 if test `eval echo '${'$as_ac_Header'}'` = yes; then
53150   cat >>confdefs.h <<_ACEOF
53151 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
53152 _ACEOF
53153
53154 fi
53155
53156 done
53157
53158     { echo "$as_me:$LINENO: checking whether wait uses int" >&5
53159 echo $ECHO_N "checking whether wait uses int... $ECHO_C" >&6; }
53160 if test "${cf_cv_arg_int+set}" = set; then
53161   echo $ECHO_N "(cached) $ECHO_C" >&6
53162 else
53163
53164         cat >conftest.$ac_ext <<_ACEOF
53165 /* confdefs.h.  */
53166 _ACEOF
53167 cat confdefs.h >>conftest.$ac_ext
53168 cat >>conftest.$ac_ext <<_ACEOF
53169 /* end confdefs.h.  */
53170
53171 #include <sys/types.h>
53172
53173 #if HAVE_SYS_WAIT_H
53174 # include <sys/wait.h>
53175 #else
53176 # if HAVE_WAIT_H
53177 #  include <wait.h>
53178 # endif
53179 #endif
53180
53181 #ifdef __STDC__
53182 pid_t wait(int *);
53183 #endif
53184
53185 int
53186 main ()
53187 {
53188
53189   int x; int i;
53190   wait(&x); i = WIFEXITED(x)
53191
53192   ;
53193   return 0;
53194 }
53195 _ACEOF
53196 rm -f conftest.$ac_objext
53197 if { (ac_try="$ac_compile"
53198 case "(($ac_try" in
53199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53200   *) ac_try_echo=$ac_try;;
53201 esac
53202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53203   (eval "$ac_compile") 2>conftest.er1
53204   ac_status=$?
53205   grep -v '^ *+' conftest.er1 >conftest.err
53206   rm -f conftest.er1
53207   cat conftest.err >&5
53208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53209   (exit $ac_status); } && {
53210          test -z "$ac_c_werror_flag" ||
53211          test ! -s conftest.err
53212        } && test -s conftest.$ac_objext; then
53213   cf_cv_arg_int=yes
53214 else
53215   echo "$as_me: failed program was:" >&5
53216 sed 's/^/| /' conftest.$ac_ext >&5
53217
53218         cf_cv_arg_int=no
53219 fi
53220
53221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53222 fi
53223 { echo "$as_me:$LINENO: result: $cf_cv_arg_int" >&5
53224 echo "${ECHO_T}$cf_cv_arg_int" >&6; }
53225 if test $cf_cv_arg_int = yes; then
53226
53227 cat >>confdefs.h <<\_ACEOF
53228 #define WAIT_USES_INT 1
53229 _ACEOF
53230
53231 fi
53232
53233
53234 #
53235 # Libraries
53236 #
53237 # cur_colr is on some HP's
53238
53239 { echo "$as_me:$LINENO: checking for main in -lcur_colr" >&5
53240 echo $ECHO_N "checking for main in -lcur_colr... $ECHO_C" >&6; }
53241 if test "${ac_cv_lib_cur_colr_main+set}" = set; then
53242   echo $ECHO_N "(cached) $ECHO_C" >&6
53243 else
53244   ac_check_lib_save_LIBS=$LIBS
53245 LIBS="-lcur_colr  $LIBS"
53246 cat >conftest.$ac_ext <<_ACEOF
53247 /* confdefs.h.  */
53248 _ACEOF
53249 cat confdefs.h >>conftest.$ac_ext
53250 cat >>conftest.$ac_ext <<_ACEOF
53251 /* end confdefs.h.  */
53252
53253
53254 int
53255 main ()
53256 {
53257 return main ();
53258   ;
53259   return 0;
53260 }
53261 _ACEOF
53262 rm -f conftest.$ac_objext conftest$ac_exeext
53263 if { (ac_try="$ac_link"
53264 case "(($ac_try" in
53265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53266   *) ac_try_echo=$ac_try;;
53267 esac
53268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53269   (eval "$ac_link") 2>conftest.er1
53270   ac_status=$?
53271   grep -v '^ *+' conftest.er1 >conftest.err
53272   rm -f conftest.er1
53273   cat conftest.err >&5
53274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53275   (exit $ac_status); } && {
53276          test -z "$ac_c_werror_flag" ||
53277          test ! -s conftest.err
53278        } && test -s conftest$ac_exeext &&
53279        $as_test_x conftest$ac_exeext; then
53280   ac_cv_lib_cur_colr_main=yes
53281 else
53282   echo "$as_me: failed program was:" >&5
53283 sed 's/^/| /' conftest.$ac_ext >&5
53284
53285         ac_cv_lib_cur_colr_main=no
53286 fi
53287
53288 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
53289       conftest$ac_exeext conftest.$ac_ext
53290 LIBS=$ac_check_lib_save_LIBS
53291 fi
53292 { echo "$as_me:$LINENO: result: $ac_cv_lib_cur_colr_main" >&5
53293 echo "${ECHO_T}$ac_cv_lib_cur_colr_main" >&6; }
53294 if test $ac_cv_lib_cur_colr_main = yes; then
53295   cat >>confdefs.h <<_ACEOF
53296 #define HAVE_LIBCUR_COLR 1
53297 _ACEOF
53298
53299   LIBS="-lcur_colr $LIBS"
53300
53301 fi
53302
53303
53304 { echo "$as_me:$LINENO: checking for main in -lintl" >&5
53305 echo $ECHO_N "checking for main in -lintl... $ECHO_C" >&6; }
53306 if test "${ac_cv_lib_intl_main+set}" = set; then
53307   echo $ECHO_N "(cached) $ECHO_C" >&6
53308 else
53309   ac_check_lib_save_LIBS=$LIBS
53310 LIBS="-lintl  $LIBS"
53311 cat >conftest.$ac_ext <<_ACEOF
53312 /* confdefs.h.  */
53313 _ACEOF
53314 cat confdefs.h >>conftest.$ac_ext
53315 cat >>conftest.$ac_ext <<_ACEOF
53316 /* end confdefs.h.  */
53317
53318
53319 int
53320 main ()
53321 {
53322 return main ();
53323   ;
53324   return 0;
53325 }
53326 _ACEOF
53327 rm -f conftest.$ac_objext conftest$ac_exeext
53328 if { (ac_try="$ac_link"
53329 case "(($ac_try" in
53330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53331   *) ac_try_echo=$ac_try;;
53332 esac
53333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53334   (eval "$ac_link") 2>conftest.er1
53335   ac_status=$?
53336   grep -v '^ *+' conftest.er1 >conftest.err
53337   rm -f conftest.er1
53338   cat conftest.err >&5
53339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53340   (exit $ac_status); } && {
53341          test -z "$ac_c_werror_flag" ||
53342          test ! -s conftest.err
53343        } && test -s conftest$ac_exeext &&
53344        $as_test_x conftest$ac_exeext; then
53345   ac_cv_lib_intl_main=yes
53346 else
53347   echo "$as_me: failed program was:" >&5
53348 sed 's/^/| /' conftest.$ac_ext >&5
53349
53350         ac_cv_lib_intl_main=no
53351 fi
53352
53353 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
53354       conftest$ac_exeext conftest.$ac_ext
53355 LIBS=$ac_check_lib_save_LIBS
53356 fi
53357 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_main" >&5
53358 echo "${ECHO_T}$ac_cv_lib_intl_main" >&6; }
53359 if test $ac_cv_lib_intl_main = yes; then
53360   cat >>confdefs.h <<_ACEOF
53361 #define HAVE_LIBINTL 1
53362 _ACEOF
53363
53364   LIBS="-lintl $LIBS"
53365
53366 fi
53367
53368
53369     # Make sure we don't use -lnsl and -lsun on Irix systems.
53370     case "$target" in
53371         *sgi-irix*)
53372
53373 { echo "$as_me:$LINENO: checking for main in -lsocket" >&5
53374 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6; }
53375 if test "${ac_cv_lib_socket_main+set}" = set; then
53376   echo $ECHO_N "(cached) $ECHO_C" >&6
53377 else
53378   ac_check_lib_save_LIBS=$LIBS
53379 LIBS="-lsocket  $LIBS"
53380 cat >conftest.$ac_ext <<_ACEOF
53381 /* confdefs.h.  */
53382 _ACEOF
53383 cat confdefs.h >>conftest.$ac_ext
53384 cat >>conftest.$ac_ext <<_ACEOF
53385 /* end confdefs.h.  */
53386
53387
53388 int
53389 main ()
53390 {
53391 return main ();
53392   ;
53393   return 0;
53394 }
53395 _ACEOF
53396 rm -f conftest.$ac_objext conftest$ac_exeext
53397 if { (ac_try="$ac_link"
53398 case "(($ac_try" in
53399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53400   *) ac_try_echo=$ac_try;;
53401 esac
53402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53403   (eval "$ac_link") 2>conftest.er1
53404   ac_status=$?
53405   grep -v '^ *+' conftest.er1 >conftest.err
53406   rm -f conftest.er1
53407   cat conftest.err >&5
53408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53409   (exit $ac_status); } && {
53410          test -z "$ac_c_werror_flag" ||
53411          test ! -s conftest.err
53412        } && test -s conftest$ac_exeext &&
53413        $as_test_x conftest$ac_exeext; then
53414   ac_cv_lib_socket_main=yes
53415 else
53416   echo "$as_me: failed program was:" >&5
53417 sed 's/^/| /' conftest.$ac_ext >&5
53418
53419         ac_cv_lib_socket_main=no
53420 fi
53421
53422 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
53423       conftest$ac_exeext conftest.$ac_ext
53424 LIBS=$ac_check_lib_save_LIBS
53425 fi
53426 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
53427 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6; }
53428 if test $ac_cv_lib_socket_main = yes; then
53429   cat >>confdefs.h <<_ACEOF
53430 #define HAVE_LIBSOCKET 1
53431 _ACEOF
53432
53433   LIBS="-lsocket $LIBS"
53434
53435 fi
53436
53437                             ;;
53438         *)
53439
53440 { echo "$as_me:$LINENO: checking for main in -lresolv" >&5
53441 echo $ECHO_N "checking for main in -lresolv... $ECHO_C" >&6; }
53442 if test "${ac_cv_lib_resolv_main+set}" = set; then
53443   echo $ECHO_N "(cached) $ECHO_C" >&6
53444 else
53445   ac_check_lib_save_LIBS=$LIBS
53446 LIBS="-lresolv  $LIBS"
53447 cat >conftest.$ac_ext <<_ACEOF
53448 /* confdefs.h.  */
53449 _ACEOF
53450 cat confdefs.h >>conftest.$ac_ext
53451 cat >>conftest.$ac_ext <<_ACEOF
53452 /* end confdefs.h.  */
53453
53454
53455 int
53456 main ()
53457 {
53458 return main ();
53459   ;
53460   return 0;
53461 }
53462 _ACEOF
53463 rm -f conftest.$ac_objext conftest$ac_exeext
53464 if { (ac_try="$ac_link"
53465 case "(($ac_try" in
53466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53467   *) ac_try_echo=$ac_try;;
53468 esac
53469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53470   (eval "$ac_link") 2>conftest.er1
53471   ac_status=$?
53472   grep -v '^ *+' conftest.er1 >conftest.err
53473   rm -f conftest.er1
53474   cat conftest.err >&5
53475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53476   (exit $ac_status); } && {
53477          test -z "$ac_c_werror_flag" ||
53478          test ! -s conftest.err
53479        } && test -s conftest$ac_exeext &&
53480        $as_test_x conftest$ac_exeext; then
53481   ac_cv_lib_resolv_main=yes
53482 else
53483   echo "$as_me: failed program was:" >&5
53484 sed 's/^/| /' conftest.$ac_ext >&5
53485
53486         ac_cv_lib_resolv_main=no
53487 fi
53488
53489 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
53490       conftest$ac_exeext conftest.$ac_ext
53491 LIBS=$ac_check_lib_save_LIBS
53492 fi
53493 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_main" >&5
53494 echo "${ECHO_T}$ac_cv_lib_resolv_main" >&6; }
53495 if test $ac_cv_lib_resolv_main = yes; then
53496   cat >>confdefs.h <<_ACEOF
53497 #define HAVE_LIBRESOLV 1
53498 _ACEOF
53499
53500   LIBS="-lresolv $LIBS"
53501
53502 fi
53503
53504
53505 { echo "$as_me:$LINENO: checking for main in -lnsl" >&5
53506 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6; }
53507 if test "${ac_cv_lib_nsl_main+set}" = set; then
53508   echo $ECHO_N "(cached) $ECHO_C" >&6
53509 else
53510   ac_check_lib_save_LIBS=$LIBS
53511 LIBS="-lnsl  $LIBS"
53512 cat >conftest.$ac_ext <<_ACEOF
53513 /* confdefs.h.  */
53514 _ACEOF
53515 cat confdefs.h >>conftest.$ac_ext
53516 cat >>conftest.$ac_ext <<_ACEOF
53517 /* end confdefs.h.  */
53518
53519
53520 int
53521 main ()
53522 {
53523 return main ();
53524   ;
53525   return 0;
53526 }
53527 _ACEOF
53528 rm -f conftest.$ac_objext conftest$ac_exeext
53529 if { (ac_try="$ac_link"
53530 case "(($ac_try" in
53531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53532   *) ac_try_echo=$ac_try;;
53533 esac
53534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53535   (eval "$ac_link") 2>conftest.er1
53536   ac_status=$?
53537   grep -v '^ *+' conftest.er1 >conftest.err
53538   rm -f conftest.er1
53539   cat conftest.err >&5
53540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53541   (exit $ac_status); } && {
53542          test -z "$ac_c_werror_flag" ||
53543          test ! -s conftest.err
53544        } && test -s conftest$ac_exeext &&
53545        $as_test_x conftest$ac_exeext; then
53546   ac_cv_lib_nsl_main=yes
53547 else
53548   echo "$as_me: failed program was:" >&5
53549 sed 's/^/| /' conftest.$ac_ext >&5
53550
53551         ac_cv_lib_nsl_main=no
53552 fi
53553
53554 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
53555       conftest$ac_exeext conftest.$ac_ext
53556 LIBS=$ac_check_lib_save_LIBS
53557 fi
53558 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
53559 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6; }
53560 if test $ac_cv_lib_nsl_main = yes; then
53561   cat >>confdefs.h <<_ACEOF
53562 #define HAVE_LIBNSL 1
53563 _ACEOF
53564
53565   LIBS="-lnsl $LIBS"
53566
53567 fi
53568
53569
53570 { echo "$as_me:$LINENO: checking for main in -lsocket" >&5
53571 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6; }
53572 if test "${ac_cv_lib_socket_main+set}" = set; then
53573   echo $ECHO_N "(cached) $ECHO_C" >&6
53574 else
53575   ac_check_lib_save_LIBS=$LIBS
53576 LIBS="-lsocket  $LIBS"
53577 cat >conftest.$ac_ext <<_ACEOF
53578 /* confdefs.h.  */
53579 _ACEOF
53580 cat confdefs.h >>conftest.$ac_ext
53581 cat >>conftest.$ac_ext <<_ACEOF
53582 /* end confdefs.h.  */
53583
53584
53585 int
53586 main ()
53587 {
53588 return main ();
53589   ;
53590   return 0;
53591 }
53592 _ACEOF
53593 rm -f conftest.$ac_objext conftest$ac_exeext
53594 if { (ac_try="$ac_link"
53595 case "(($ac_try" in
53596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53597   *) ac_try_echo=$ac_try;;
53598 esac
53599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53600   (eval "$ac_link") 2>conftest.er1
53601   ac_status=$?
53602   grep -v '^ *+' conftest.er1 >conftest.err
53603   rm -f conftest.er1
53604   cat conftest.err >&5
53605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53606   (exit $ac_status); } && {
53607          test -z "$ac_c_werror_flag" ||
53608          test ! -s conftest.err
53609        } && test -s conftest$ac_exeext &&
53610        $as_test_x conftest$ac_exeext; then
53611   ac_cv_lib_socket_main=yes
53612 else
53613   echo "$as_me: failed program was:" >&5
53614 sed 's/^/| /' conftest.$ac_ext >&5
53615
53616         ac_cv_lib_socket_main=no
53617 fi
53618
53619 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
53620       conftest$ac_exeext conftest.$ac_ext
53621 LIBS=$ac_check_lib_save_LIBS
53622 fi
53623 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
53624 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6; }
53625 if test $ac_cv_lib_socket_main = yes; then
53626   cat >>confdefs.h <<_ACEOF
53627 #define HAVE_LIBSOCKET 1
53628 _ACEOF
53629
53630   LIBS="-lsocket $LIBS"
53631
53632 fi
53633
53634
53635 { echo "$as_me:$LINENO: checking for main in -lsun" >&5
53636 echo $ECHO_N "checking for main in -lsun... $ECHO_C" >&6; }
53637 if test "${ac_cv_lib_sun_main+set}" = set; then
53638   echo $ECHO_N "(cached) $ECHO_C" >&6
53639 else
53640   ac_check_lib_save_LIBS=$LIBS
53641 LIBS="-lsun  $LIBS"
53642 cat >conftest.$ac_ext <<_ACEOF
53643 /* confdefs.h.  */
53644 _ACEOF
53645 cat confdefs.h >>conftest.$ac_ext
53646 cat >>conftest.$ac_ext <<_ACEOF
53647 /* end confdefs.h.  */
53648
53649
53650 int
53651 main ()
53652 {
53653 return main ();
53654   ;
53655   return 0;
53656 }
53657 _ACEOF
53658 rm -f conftest.$ac_objext conftest$ac_exeext
53659 if { (ac_try="$ac_link"
53660 case "(($ac_try" in
53661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53662   *) ac_try_echo=$ac_try;;
53663 esac
53664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
53665   (eval "$ac_link") 2>conftest.er1
53666   ac_status=$?
53667   grep -v '^ *+' conftest.er1 >conftest.err
53668   rm -f conftest.er1
53669   cat conftest.err >&5
53670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53671   (exit $ac_status); } && {
53672          test -z "$ac_c_werror_flag" ||
53673          test ! -s conftest.err
53674        } && test -s conftest$ac_exeext &&
53675        $as_test_x conftest$ac_exeext; then
53676   ac_cv_lib_sun_main=yes
53677 else
53678   echo "$as_me: failed program was:" >&5
53679 sed 's/^/| /' conftest.$ac_ext >&5
53680
53681         ac_cv_lib_sun_main=no
53682 fi
53683
53684 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
53685       conftest$ac_exeext conftest.$ac_ext
53686 LIBS=$ac_check_lib_save_LIBS
53687 fi
53688 { echo "$as_me:$LINENO: result: $ac_cv_lib_sun_main" >&5
53689 echo "${ECHO_T}$ac_cv_lib_sun_main" >&6; }
53690 if test $ac_cv_lib_sun_main = yes; then
53691   cat >>confdefs.h <<_ACEOF
53692 #define HAVE_LIBSUN 1
53693 _ACEOF
53694
53695   LIBS="-lsun $LIBS"
53696
53697 fi
53698
53699                             ;;
53700     esac
53701
53702
53703     # search for pkg-config, which the glib configuration uses, adding a few
53704     # system-specific search paths.
53705     # Extract the first word of "pkg-config", so it can be a program name with args.
53706 set dummy pkg-config; ac_word=$2
53707 { echo "$as_me:$LINENO: checking for $ac_word" >&5
53708 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
53709 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
53710   echo $ECHO_N "(cached) $ECHO_C" >&6
53711 else
53712   case $PKG_CONFIG in
53713   [\\/]* | ?:[\\/]*)
53714   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
53715   ;;
53716   *)
53717   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
53718 as_dummy="$LOCSYSPATH:/opt/csw/bin:/usr/local/bin:/opt/local/bin"
53719 for as_dir in $as_dummy
53720 do
53721   IFS=$as_save_IFS
53722   test -z "$as_dir" && as_dir=.
53723   for ac_exec_ext in '' $ac_executable_extensions; do
53724   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
53725     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
53726     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
53727     break 2
53728   fi
53729 done
53730 done
53731 IFS=$as_save_IFS
53732
53733   ;;
53734 esac
53735 fi
53736 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
53737 if test -n "$PKG_CONFIG"; then
53738   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
53739 echo "${ECHO_T}$PKG_CONFIG" >&6; }
53740 else
53741   { echo "$as_me:$LINENO: result: no" >&5
53742 echo "${ECHO_T}no" >&6; }
53743 fi
53744
53745
53746
53747     case "$target" in
53748         sparc-sun-solaris2.8) # Solaris 8
53749             # give the linker a runtime search path; pkg-config doesn't supply this.
53750             # Users could also specify this with LD_LIBRARY_PATH to both ./configure
53751             # and make.  Adding this support here makes straight './configure; make'
53752             # "just work" on Solaris 8
53753             if test -n "$PKG_CONFIG"; then
53754                 glib_R_flag=`$PKG_CONFIG glib-2.0 --libs-only-L 2>/dev/null | sed -e 's/-L/-R/g'`
53755                 LDFLAGS="$LDFLAGS $glib_R_flag"
53756             fi
53757             ;;
53758     esac
53759
53760     # Check whether --enable-glibtest was given.
53761 if test "${enable_glibtest+set}" = set; then
53762   enableval=$enable_glibtest;
53763 else
53764   enable_glibtest=yes
53765 fi
53766
53767
53768   pkg_config_args=glib-2.0
53769   for module in . gmodule gobject gthread
53770   do
53771       case "$module" in
53772          gmodule)
53773              pkg_config_args="$pkg_config_args gmodule-2.0"
53774          ;;
53775          gmodule-no-export)
53776              pkg_config_args="$pkg_config_args gmodule-no-export-2.0"
53777          ;;
53778          gobject)
53779              pkg_config_args="$pkg_config_args gobject-2.0"
53780          ;;
53781          gthread)
53782              pkg_config_args="$pkg_config_args gthread-2.0"
53783          ;;
53784       esac
53785   done
53786
53787
53788
53789 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
53790         if test -n "$ac_tool_prefix"; then
53791   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
53792 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
53793 { echo "$as_me:$LINENO: checking for $ac_word" >&5
53794 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
53795 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
53796   echo $ECHO_N "(cached) $ECHO_C" >&6
53797 else
53798   case $PKG_CONFIG in
53799   [\\/]* | ?:[\\/]*)
53800   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
53801   ;;
53802   *)
53803   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
53804 for as_dir in $PATH
53805 do
53806   IFS=$as_save_IFS
53807   test -z "$as_dir" && as_dir=.
53808   for ac_exec_ext in '' $ac_executable_extensions; do
53809   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
53810     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
53811     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
53812     break 2
53813   fi
53814 done
53815 done
53816 IFS=$as_save_IFS
53817
53818   ;;
53819 esac
53820 fi
53821 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
53822 if test -n "$PKG_CONFIG"; then
53823   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
53824 echo "${ECHO_T}$PKG_CONFIG" >&6; }
53825 else
53826   { echo "$as_me:$LINENO: result: no" >&5
53827 echo "${ECHO_T}no" >&6; }
53828 fi
53829
53830
53831 fi
53832 if test -z "$ac_cv_path_PKG_CONFIG"; then
53833   ac_pt_PKG_CONFIG=$PKG_CONFIG
53834   # Extract the first word of "pkg-config", so it can be a program name with args.
53835 set dummy pkg-config; ac_word=$2
53836 { echo "$as_me:$LINENO: checking for $ac_word" >&5
53837 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
53838 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
53839   echo $ECHO_N "(cached) $ECHO_C" >&6
53840 else
53841   case $ac_pt_PKG_CONFIG in
53842   [\\/]* | ?:[\\/]*)
53843   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
53844   ;;
53845   *)
53846   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
53847 for as_dir in $PATH
53848 do
53849   IFS=$as_save_IFS
53850   test -z "$as_dir" && as_dir=.
53851   for ac_exec_ext in '' $ac_executable_extensions; do
53852   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
53853     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
53854     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
53855     break 2
53856   fi
53857 done
53858 done
53859 IFS=$as_save_IFS
53860
53861   ;;
53862 esac
53863 fi
53864 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
53865 if test -n "$ac_pt_PKG_CONFIG"; then
53866   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
53867 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
53868 else
53869   { echo "$as_me:$LINENO: result: no" >&5
53870 echo "${ECHO_T}no" >&6; }
53871 fi
53872
53873   if test "x$ac_pt_PKG_CONFIG" = x; then
53874     PKG_CONFIG=""
53875   else
53876     case $cross_compiling:$ac_tool_warned in
53877 yes:)
53878 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
53879 whose name does not start with the host triplet.  If you think this
53880 configuration is useful to you, please write to autoconf@gnu.org." >&5
53881 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
53882 whose name does not start with the host triplet.  If you think this
53883 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
53884 ac_tool_warned=yes ;;
53885 esac
53886     PKG_CONFIG=$ac_pt_PKG_CONFIG
53887   fi
53888 else
53889   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
53890 fi
53891
53892 fi
53893 if test -n "$PKG_CONFIG"; then
53894         _pkg_min_version=0.16
53895         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
53896 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
53897         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
53898                 { echo "$as_me:$LINENO: result: yes" >&5
53899 echo "${ECHO_T}yes" >&6; }
53900         else
53901                 { echo "$as_me:$LINENO: result: no" >&5
53902 echo "${ECHO_T}no" >&6; }
53903                 PKG_CONFIG=""
53904         fi
53905
53906 fi
53907
53908   no_glib=""
53909
53910   if test "x$PKG_CONFIG" = x ; then
53911     no_glib=yes
53912     PKG_CONFIG=no
53913   fi
53914
53915   min_glib_version=2.2.0
53916   { echo "$as_me:$LINENO: checking for GLIB - version >= $min_glib_version" >&5
53917 echo $ECHO_N "checking for GLIB - version >= $min_glib_version... $ECHO_C" >&6; }
53918
53919   if test x$PKG_CONFIG != xno ; then
53920     ## don't try to run the test against uninstalled libtool libs
53921     if $PKG_CONFIG --uninstalled $pkg_config_args; then
53922           echo "Will use uninstalled version of GLib found in PKG_CONFIG_PATH"
53923           enable_glibtest=no
53924     fi
53925
53926     if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then
53927           :
53928     else
53929           no_glib=yes
53930     fi
53931   fi
53932
53933   if test x"$no_glib" = x ; then
53934     GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`
53935     GOBJECT_QUERY=`$PKG_CONFIG --variable=gobject_query glib-2.0`
53936     GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
53937
53938     GLIB_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args`
53939     GLIB_LIBS=`$PKG_CONFIG --libs $pkg_config_args`
53940     glib_config_major_version=`$PKG_CONFIG --modversion glib-2.0 | \
53941            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
53942     glib_config_minor_version=`$PKG_CONFIG --modversion glib-2.0 | \
53943            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
53944     glib_config_micro_version=`$PKG_CONFIG --modversion glib-2.0 | \
53945            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
53946     if test "x$enable_glibtest" = "xyes" ; then
53947       ac_save_CFLAGS="$CFLAGS"
53948       ac_save_LIBS="$LIBS"
53949       CFLAGS="$CFLAGS $GLIB_CFLAGS"
53950       LIBS="$GLIB_LIBS $LIBS"
53951       rm -f conf.glibtest
53952       if test "$cross_compiling" = yes; then
53953   echo $ac_n "cross compiling; assumed OK... $ac_c"
53954 else
53955   cat >conftest.$ac_ext <<_ACEOF
53956 /* confdefs.h.  */
53957 _ACEOF
53958 cat confdefs.h >>conftest.$ac_ext
53959 cat >>conftest.$ac_ext <<_ACEOF
53960 /* end confdefs.h.  */
53961
53962 #include <glib.h>
53963 #include <stdio.h>
53964 #include <stdlib.h>
53965
53966 int
53967 main ()
53968 {
53969   int major, minor, micro;
53970   char *tmp_version;
53971
53972   system ("touch conf.glibtest");
53973
53974   /* HP/UX 9 (%@#!) writes to sscanf strings */
53975   tmp_version = g_strdup("$min_glib_version");
53976   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
53977      printf("%s, bad version string\n", "$min_glib_version");
53978      exit(1);
53979    }
53980
53981   if ((glib_major_version != $glib_config_major_version) ||
53982       (glib_minor_version != $glib_config_minor_version) ||
53983       (glib_micro_version != $glib_config_micro_version))
53984     {
53985       printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
53986              $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
53987              glib_major_version, glib_minor_version, glib_micro_version);
53988       printf ("*** was found! If pkg-config was correct, then it is best\n");
53989       printf ("*** to remove the old version of GLib. You may also be able to fix the error\n");
53990       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
53991       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
53992       printf("*** required on your system.\n");
53993       printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
53994       printf("*** to point to the correct configuration files\n");
53995     }
53996   else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
53997            (glib_minor_version != GLIB_MINOR_VERSION) ||
53998            (glib_micro_version != GLIB_MICRO_VERSION))
53999     {
54000       printf("*** GLIB header files (version %d.%d.%d) do not match\n",
54001              GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
54002       printf("*** library (version %d.%d.%d)\n",
54003              glib_major_version, glib_minor_version, glib_micro_version);
54004     }
54005   else
54006     {
54007       if ((glib_major_version > major) ||
54008         ((glib_major_version == major) && (glib_minor_version > minor)) ||
54009         ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
54010       {
54011         return 0;
54012        }
54013      else
54014       {
54015         printf("\n*** An old version of GLIB (%d.%d.%d) was found.\n",
54016                glib_major_version, glib_minor_version, glib_micro_version);
54017         printf("*** You need a version of GLIB newer than %d.%d.%d. The latest version of\n",
54018                major, minor, micro);
54019         printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
54020         printf("***\n");
54021         printf("*** If you have already installed a sufficiently new version, this error\n");
54022         printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
54023         printf("*** being found. The easiest way to fix this is to remove the old version\n");
54024         printf("*** of GLIB, but you can also set the PKG_CONFIG environment to point to the\n");
54025         printf("*** correct copy of pkg-config. (In this case, you will have to\n");
54026         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
54027         printf("*** so that the correct libraries are found at run-time))\n");
54028       }
54029     }
54030   return 1;
54031 }
54032
54033 _ACEOF
54034 rm -f conftest$ac_exeext
54035 if { (ac_try="$ac_link"
54036 case "(($ac_try" in
54037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54038   *) ac_try_echo=$ac_try;;
54039 esac
54040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54041   (eval "$ac_link") 2>&5
54042   ac_status=$?
54043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54044   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
54045   { (case "(($ac_try" in
54046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54047   *) ac_try_echo=$ac_try;;
54048 esac
54049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54050   (eval "$ac_try") 2>&5
54051   ac_status=$?
54052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54053   (exit $ac_status); }; }; then
54054   :
54055 else
54056   echo "$as_me: program exited with status $ac_status" >&5
54057 echo "$as_me: failed program was:" >&5
54058 sed 's/^/| /' conftest.$ac_ext >&5
54059
54060 ( exit $ac_status )
54061 no_glib=yes
54062 fi
54063 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
54064 fi
54065
54066
54067        CFLAGS="$ac_save_CFLAGS"
54068        LIBS="$ac_save_LIBS"
54069      fi
54070   fi
54071   if test "x$no_glib" = x ; then
54072      { echo "$as_me:$LINENO: result: yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&5
54073 echo "${ECHO_T}yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&6; }
54074      :
54075   else
54076      { echo "$as_me:$LINENO: result: no" >&5
54077 echo "${ECHO_T}no" >&6; }
54078      if test "$PKG_CONFIG" = "no" ; then
54079        echo "*** A new enough version of pkg-config was not found."
54080        echo "*** See http://www.freedesktop.org/software/pkgconfig/"
54081      else
54082        if test -f conf.glibtest ; then
54083         :
54084        else
54085           echo "*** Could not run GLIB test program, checking why..."
54086           ac_save_CFLAGS="$CFLAGS"
54087           ac_save_LIBS="$LIBS"
54088           CFLAGS="$CFLAGS $GLIB_CFLAGS"
54089           LIBS="$LIBS $GLIB_LIBS"
54090           cat >conftest.$ac_ext <<_ACEOF
54091 /* confdefs.h.  */
54092 _ACEOF
54093 cat confdefs.h >>conftest.$ac_ext
54094 cat >>conftest.$ac_ext <<_ACEOF
54095 /* end confdefs.h.  */
54096
54097 #include <glib.h>
54098 #include <stdio.h>
54099
54100 int
54101 main ()
54102 {
54103  return ((glib_major_version) || (glib_minor_version) || (glib_micro_version));
54104   ;
54105   return 0;
54106 }
54107 _ACEOF
54108 rm -f conftest.$ac_objext conftest$ac_exeext
54109 if { (ac_try="$ac_link"
54110 case "(($ac_try" in
54111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54112   *) ac_try_echo=$ac_try;;
54113 esac
54114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54115   (eval "$ac_link") 2>conftest.er1
54116   ac_status=$?
54117   grep -v '^ *+' conftest.er1 >conftest.err
54118   rm -f conftest.er1
54119   cat conftest.err >&5
54120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54121   (exit $ac_status); } && {
54122          test -z "$ac_c_werror_flag" ||
54123          test ! -s conftest.err
54124        } && test -s conftest$ac_exeext &&
54125        $as_test_x conftest$ac_exeext; then
54126    echo "*** The test program compiled, but did not run. This usually means"
54127           echo "*** that the run-time linker is not finding GLIB or finding the wrong"
54128           echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
54129           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
54130           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
54131           echo "*** is required on your system"
54132           echo "***"
54133           echo "*** If you have an old version installed, it is best to remove it, although"
54134           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
54135 else
54136   echo "$as_me: failed program was:" >&5
54137 sed 's/^/| /' conftest.$ac_ext >&5
54138
54139          echo "*** The test program failed to compile or link. See the file config.log for the"
54140           echo "*** exact error that occured. This usually means GLIB is incorrectly installed."
54141 fi
54142
54143 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
54144       conftest$ac_exeext conftest.$ac_ext
54145           CFLAGS="$ac_save_CFLAGS"
54146           LIBS="$ac_save_LIBS"
54147        fi
54148      fi
54149      GLIB_CFLAGS=""
54150      GLIB_LIBS=""
54151      GLIB_GENMARSHAL=""
54152      GOBJECT_QUERY=""
54153      GLIB_MKENUMS=""
54154
54155         { { echo "$as_me:$LINENO: error: glib not found or too old; See http://wiki.zmanda.com/index.php/Installation for help" >&5
54156 echo "$as_me: error: glib not found or too old; See http://wiki.zmanda.com/index.php/Installation for help" >&2;}
54157    { (exit 1); exit 1; }; }
54158
54159   fi
54160
54161
54162
54163
54164
54165   rm -f conf.glibtest
54166
54167     CFLAGS="$CFLAGS $GLIB_CFLAGS"
54168
54169     CPPFLAGS="$CPPFLAGS $GLIB_CPPFLAGS"
54170
54171     LIBS="$GLIB_LIBS $LIBS"
54172
54173
54174
54175
54176 # Check whether --with-readline was given.
54177 if test "${with_readline+set}" = set; then
54178   withval=$with_readline;
54179             case "$withval" in
54180                 y | ye | yes | n | no) : ;;
54181                 *) { { echo "$as_me:$LINENO: error: *** --with-readline does not take a value" >&5
54182 echo "$as_me: error: *** --with-readline does not take a value" >&2;}
54183    { (exit 1); exit 1; }; }
54184             esac
54185             want_readline="$withval"
54186
54187 else
54188
54189             want_readline="maybe" # meaning "only if we can find it"
54190
54191 fi
54192
54193
54194     # unless the user said "no", look for readline.
54195     if test x"$want_readline" != x"no"; then
54196         # we need a tgetent() somewhere..
54197         proceed="false"
54198         { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
54199 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
54200 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
54201   echo $ECHO_N "(cached) $ECHO_C" >&6
54202 else
54203   ac_check_lib_save_LIBS=$LIBS
54204 LIBS="-ltermcap  $LIBS"
54205 cat >conftest.$ac_ext <<_ACEOF
54206 /* confdefs.h.  */
54207 _ACEOF
54208 cat confdefs.h >>conftest.$ac_ext
54209 cat >>conftest.$ac_ext <<_ACEOF
54210 /* end confdefs.h.  */
54211
54212 /* Override any GCC internal prototype to avoid an error.
54213    Use char because int might match the return type of a GCC
54214    builtin and then its argument prototype would still apply.  */
54215 #ifdef __cplusplus
54216 extern "C"
54217 #endif
54218 char tgetent ();
54219 int
54220 main ()
54221 {
54222 return tgetent ();
54223   ;
54224   return 0;
54225 }
54226 _ACEOF
54227 rm -f conftest.$ac_objext conftest$ac_exeext
54228 if { (ac_try="$ac_link"
54229 case "(($ac_try" in
54230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54231   *) ac_try_echo=$ac_try;;
54232 esac
54233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54234   (eval "$ac_link") 2>conftest.er1
54235   ac_status=$?
54236   grep -v '^ *+' conftest.er1 >conftest.err
54237   rm -f conftest.er1
54238   cat conftest.err >&5
54239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54240   (exit $ac_status); } && {
54241          test -z "$ac_c_werror_flag" ||
54242          test ! -s conftest.err
54243        } && test -s conftest$ac_exeext &&
54244        $as_test_x conftest$ac_exeext; then
54245   ac_cv_lib_termcap_tgetent=yes
54246 else
54247   echo "$as_me: failed program was:" >&5
54248 sed 's/^/| /' conftest.$ac_ext >&5
54249
54250         ac_cv_lib_termcap_tgetent=no
54251 fi
54252
54253 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
54254       conftest$ac_exeext conftest.$ac_ext
54255 LIBS=$ac_check_lib_save_LIBS
54256 fi
54257 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
54258 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
54259 if test $ac_cv_lib_termcap_tgetent = yes; then
54260
54261             READLINE_LIBS="-ltermcap"
54262             proceed="true"
54263
54264 else
54265
54266             { echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
54267 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6; }
54268 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
54269   echo $ECHO_N "(cached) $ECHO_C" >&6
54270 else
54271   ac_check_lib_save_LIBS=$LIBS
54272 LIBS="-lcurses  $LIBS"
54273 cat >conftest.$ac_ext <<_ACEOF
54274 /* confdefs.h.  */
54275 _ACEOF
54276 cat confdefs.h >>conftest.$ac_ext
54277 cat >>conftest.$ac_ext <<_ACEOF
54278 /* end confdefs.h.  */
54279
54280 /* Override any GCC internal prototype to avoid an error.
54281    Use char because int might match the return type of a GCC
54282    builtin and then its argument prototype would still apply.  */
54283 #ifdef __cplusplus
54284 extern "C"
54285 #endif
54286 char tgetent ();
54287 int
54288 main ()
54289 {
54290 return tgetent ();
54291   ;
54292   return 0;
54293 }
54294 _ACEOF
54295 rm -f conftest.$ac_objext conftest$ac_exeext
54296 if { (ac_try="$ac_link"
54297 case "(($ac_try" in
54298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54299   *) ac_try_echo=$ac_try;;
54300 esac
54301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54302   (eval "$ac_link") 2>conftest.er1
54303   ac_status=$?
54304   grep -v '^ *+' conftest.er1 >conftest.err
54305   rm -f conftest.er1
54306   cat conftest.err >&5
54307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54308   (exit $ac_status); } && {
54309          test -z "$ac_c_werror_flag" ||
54310          test ! -s conftest.err
54311        } && test -s conftest$ac_exeext &&
54312        $as_test_x conftest$ac_exeext; then
54313   ac_cv_lib_curses_tgetent=yes
54314 else
54315   echo "$as_me: failed program was:" >&5
54316 sed 's/^/| /' conftest.$ac_ext >&5
54317
54318         ac_cv_lib_curses_tgetent=no
54319 fi
54320
54321 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
54322       conftest$ac_exeext conftest.$ac_ext
54323 LIBS=$ac_check_lib_save_LIBS
54324 fi
54325 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
54326 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6; }
54327 if test $ac_cv_lib_curses_tgetent = yes; then
54328
54329                 READLINE_LIBS="-lcurses"
54330                 proceed="true"
54331
54332 else
54333
54334                 { echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
54335 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6; }
54336 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
54337   echo $ECHO_N "(cached) $ECHO_C" >&6
54338 else
54339   ac_check_lib_save_LIBS=$LIBS
54340 LIBS="-lncurses  $LIBS"
54341 cat >conftest.$ac_ext <<_ACEOF
54342 /* confdefs.h.  */
54343 _ACEOF
54344 cat confdefs.h >>conftest.$ac_ext
54345 cat >>conftest.$ac_ext <<_ACEOF
54346 /* end confdefs.h.  */
54347
54348 /* Override any GCC internal prototype to avoid an error.
54349    Use char because int might match the return type of a GCC
54350    builtin and then its argument prototype would still apply.  */
54351 #ifdef __cplusplus
54352 extern "C"
54353 #endif
54354 char tgetent ();
54355 int
54356 main ()
54357 {
54358 return tgetent ();
54359   ;
54360   return 0;
54361 }
54362 _ACEOF
54363 rm -f conftest.$ac_objext conftest$ac_exeext
54364 if { (ac_try="$ac_link"
54365 case "(($ac_try" in
54366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54367   *) ac_try_echo=$ac_try;;
54368 esac
54369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54370   (eval "$ac_link") 2>conftest.er1
54371   ac_status=$?
54372   grep -v '^ *+' conftest.er1 >conftest.err
54373   rm -f conftest.er1
54374   cat conftest.err >&5
54375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54376   (exit $ac_status); } && {
54377          test -z "$ac_c_werror_flag" ||
54378          test ! -s conftest.err
54379        } && test -s conftest$ac_exeext &&
54380        $as_test_x conftest$ac_exeext; then
54381   ac_cv_lib_ncurses_tgetent=yes
54382 else
54383   echo "$as_me: failed program was:" >&5
54384 sed 's/^/| /' conftest.$ac_ext >&5
54385
54386         ac_cv_lib_ncurses_tgetent=no
54387 fi
54388
54389 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
54390       conftest$ac_exeext conftest.$ac_ext
54391 LIBS=$ac_check_lib_save_LIBS
54392 fi
54393 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
54394 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6; }
54395 if test $ac_cv_lib_ncurses_tgetent = yes; then
54396
54397                     READLINE_LIBS="-lncurses"
54398                     proceed="true"
54399
54400 fi
54401
54402
54403 fi
54404
54405
54406 fi
54407
54408
54409         if $proceed; then
54410             proceed="false"
54411
54412
54413
54414
54415 for ac_header in history.h readline.h readline/history.h readline/readline.h
54416 do
54417 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
54418 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
54419   { echo "$as_me:$LINENO: checking for $ac_header" >&5
54420 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
54421 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
54422   echo $ECHO_N "(cached) $ECHO_C" >&6
54423 fi
54424 ac_res=`eval echo '${'$as_ac_Header'}'`
54425                { echo "$as_me:$LINENO: result: $ac_res" >&5
54426 echo "${ECHO_T}$ac_res" >&6; }
54427 else
54428   # Is the header compilable?
54429 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
54430 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
54431 cat >conftest.$ac_ext <<_ACEOF
54432 /* confdefs.h.  */
54433 _ACEOF
54434 cat confdefs.h >>conftest.$ac_ext
54435 cat >>conftest.$ac_ext <<_ACEOF
54436 /* end confdefs.h.  */
54437 $ac_includes_default
54438 #include <$ac_header>
54439 _ACEOF
54440 rm -f conftest.$ac_objext
54441 if { (ac_try="$ac_compile"
54442 case "(($ac_try" in
54443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54444   *) ac_try_echo=$ac_try;;
54445 esac
54446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54447   (eval "$ac_compile") 2>conftest.er1
54448   ac_status=$?
54449   grep -v '^ *+' conftest.er1 >conftest.err
54450   rm -f conftest.er1
54451   cat conftest.err >&5
54452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54453   (exit $ac_status); } && {
54454          test -z "$ac_c_werror_flag" ||
54455          test ! -s conftest.err
54456        } && test -s conftest.$ac_objext; then
54457   ac_header_compiler=yes
54458 else
54459   echo "$as_me: failed program was:" >&5
54460 sed 's/^/| /' conftest.$ac_ext >&5
54461
54462         ac_header_compiler=no
54463 fi
54464
54465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54466 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
54467 echo "${ECHO_T}$ac_header_compiler" >&6; }
54468
54469 # Is the header present?
54470 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
54471 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
54472 cat >conftest.$ac_ext <<_ACEOF
54473 /* confdefs.h.  */
54474 _ACEOF
54475 cat confdefs.h >>conftest.$ac_ext
54476 cat >>conftest.$ac_ext <<_ACEOF
54477 /* end confdefs.h.  */
54478 #include <$ac_header>
54479 _ACEOF
54480 if { (ac_try="$ac_cpp conftest.$ac_ext"
54481 case "(($ac_try" in
54482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54483   *) ac_try_echo=$ac_try;;
54484 esac
54485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54486   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
54487   ac_status=$?
54488   grep -v '^ *+' conftest.er1 >conftest.err
54489   rm -f conftest.er1
54490   cat conftest.err >&5
54491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54492   (exit $ac_status); } >/dev/null && {
54493          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
54494          test ! -s conftest.err
54495        }; then
54496   ac_header_preproc=yes
54497 else
54498   echo "$as_me: failed program was:" >&5
54499 sed 's/^/| /' conftest.$ac_ext >&5
54500
54501   ac_header_preproc=no
54502 fi
54503
54504 rm -f conftest.err conftest.$ac_ext
54505 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
54506 echo "${ECHO_T}$ac_header_preproc" >&6; }
54507
54508 # So?  What about this header?
54509 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
54510   yes:no: )
54511     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
54512 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
54513     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
54514 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
54515     ac_header_preproc=yes
54516     ;;
54517   no:yes:* )
54518     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
54519 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
54520     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
54521 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
54522     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
54523 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
54524     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
54525 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
54526     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
54527 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
54528     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
54529 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
54530
54531     ;;
54532 esac
54533 { echo "$as_me:$LINENO: checking for $ac_header" >&5
54534 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
54535 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
54536   echo $ECHO_N "(cached) $ECHO_C" >&6
54537 else
54538   eval "$as_ac_Header=\$ac_header_preproc"
54539 fi
54540 ac_res=`eval echo '${'$as_ac_Header'}'`
54541                { echo "$as_me:$LINENO: result: $ac_res" >&5
54542 echo "${ECHO_T}$ac_res" >&6; }
54543
54544 fi
54545 if test `eval echo '${'$as_ac_Header'}'` = yes; then
54546   cat >>confdefs.h <<_ACEOF
54547 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
54548 _ACEOF
54549
54550                 # found at least one of the headers, so we can proceed.
54551                 proceed="true"
54552
54553 fi
54554
54555 done
54556
54557         fi
54558
54559         if $proceed; then
54560             proceed="false"
54561             { echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
54562 echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6; }
54563 if test "${ac_cv_lib_readline_readline+set}" = set; then
54564   echo $ECHO_N "(cached) $ECHO_C" >&6
54565 else
54566   ac_check_lib_save_LIBS=$LIBS
54567 LIBS="-lreadline $READLINE_LIBS $LIBS"
54568 cat >conftest.$ac_ext <<_ACEOF
54569 /* confdefs.h.  */
54570 _ACEOF
54571 cat confdefs.h >>conftest.$ac_ext
54572 cat >>conftest.$ac_ext <<_ACEOF
54573 /* end confdefs.h.  */
54574
54575 /* Override any GCC internal prototype to avoid an error.
54576    Use char because int might match the return type of a GCC
54577    builtin and then its argument prototype would still apply.  */
54578 #ifdef __cplusplus
54579 extern "C"
54580 #endif
54581 char readline ();
54582 int
54583 main ()
54584 {
54585 return readline ();
54586   ;
54587   return 0;
54588 }
54589 _ACEOF
54590 rm -f conftest.$ac_objext conftest$ac_exeext
54591 if { (ac_try="$ac_link"
54592 case "(($ac_try" in
54593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54594   *) ac_try_echo=$ac_try;;
54595 esac
54596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54597   (eval "$ac_link") 2>conftest.er1
54598   ac_status=$?
54599   grep -v '^ *+' conftest.er1 >conftest.err
54600   rm -f conftest.er1
54601   cat conftest.err >&5
54602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54603   (exit $ac_status); } && {
54604          test -z "$ac_c_werror_flag" ||
54605          test ! -s conftest.err
54606        } && test -s conftest$ac_exeext &&
54607        $as_test_x conftest$ac_exeext; then
54608   ac_cv_lib_readline_readline=yes
54609 else
54610   echo "$as_me: failed program was:" >&5
54611 sed 's/^/| /' conftest.$ac_ext >&5
54612
54613         ac_cv_lib_readline_readline=no
54614 fi
54615
54616 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
54617       conftest$ac_exeext conftest.$ac_ext
54618 LIBS=$ac_check_lib_save_LIBS
54619 fi
54620 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
54621 echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6; }
54622 if test $ac_cv_lib_readline_readline = yes; then
54623
54624                 READLINE_LIBS="-lreadline $READLINE_LIBS"
54625                 proceed="true"
54626
54627 fi
54628
54629         fi
54630
54631         if $proceed; then
54632             # we have readline!
54633
54634 cat >>confdefs.h <<\_ACEOF
54635 #define HAVE_READLINE 1
54636 _ACEOF
54637
54638         else
54639             # no readline.  if the user *really* wanted it, bail out.
54640             if test x"$want_readline" = x"yes"; then
54641                 { { echo "$as_me:$LINENO: error: *** No readline implementation found.  Try using --with-libraries and --with-includes" >&5
54642 echo "$as_me: error: *** No readline implementation found.  Try using --with-libraries and --with-includes" >&2;}
54643    { (exit 1); exit 1; }; }
54644             fi
54645             READLINE_LIBS=""
54646         fi
54647     fi
54648
54649
54650
54651 { echo "$as_me:$LINENO: checking for modf in -lm" >&5
54652 echo $ECHO_N "checking for modf in -lm... $ECHO_C" >&6; }
54653 if test "${ac_cv_lib_m_modf+set}" = set; then
54654   echo $ECHO_N "(cached) $ECHO_C" >&6
54655 else
54656   ac_check_lib_save_LIBS=$LIBS
54657 LIBS="-lm  $LIBS"
54658 cat >conftest.$ac_ext <<_ACEOF
54659 /* confdefs.h.  */
54660 _ACEOF
54661 cat confdefs.h >>conftest.$ac_ext
54662 cat >>conftest.$ac_ext <<_ACEOF
54663 /* end confdefs.h.  */
54664
54665 /* Override any GCC internal prototype to avoid an error.
54666    Use char because int might match the return type of a GCC
54667    builtin and then its argument prototype would still apply.  */
54668 #ifdef __cplusplus
54669 extern "C"
54670 #endif
54671 char modf ();
54672 int
54673 main ()
54674 {
54675 return modf ();
54676   ;
54677   return 0;
54678 }
54679 _ACEOF
54680 rm -f conftest.$ac_objext conftest$ac_exeext
54681 if { (ac_try="$ac_link"
54682 case "(($ac_try" in
54683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54684   *) ac_try_echo=$ac_try;;
54685 esac
54686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54687   (eval "$ac_link") 2>conftest.er1
54688   ac_status=$?
54689   grep -v '^ *+' conftest.er1 >conftest.err
54690   rm -f conftest.er1
54691   cat conftest.err >&5
54692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54693   (exit $ac_status); } && {
54694          test -z "$ac_c_werror_flag" ||
54695          test ! -s conftest.err
54696        } && test -s conftest$ac_exeext &&
54697        $as_test_x conftest$ac_exeext; then
54698   ac_cv_lib_m_modf=yes
54699 else
54700   echo "$as_me: failed program was:" >&5
54701 sed 's/^/| /' conftest.$ac_ext >&5
54702
54703         ac_cv_lib_m_modf=no
54704 fi
54705
54706 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
54707       conftest$ac_exeext conftest.$ac_ext
54708 LIBS=$ac_check_lib_save_LIBS
54709 fi
54710 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_modf" >&5
54711 echo "${ECHO_T}$ac_cv_lib_m_modf" >&6; }
54712 if test $ac_cv_lib_m_modf = yes; then
54713   cat >>confdefs.h <<_ACEOF
54714 #define HAVE_LIBM 1
54715 _ACEOF
54716
54717   LIBS="-lm $LIBS"
54718
54719 fi
54720
54721
54722 #
54723 # Declarations
54724 #
54725 # Checks for library functions and if the function is declared in
54726 # an appropriate header file.  Functions which exist, but for which
54727 # no declaration is available, are declared in common-src/amanda.h.
54728 # It's not clear that any existing system implements but does not
54729 # declare common functions such as these.
54730 #
54731
54732 ice_have_accept=no
54733
54734 for ac_func in accept
54735 do
54736 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
54737 { echo "$as_me:$LINENO: checking for $ac_func" >&5
54738 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
54739 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
54740   echo $ECHO_N "(cached) $ECHO_C" >&6
54741 else
54742   cat >conftest.$ac_ext <<_ACEOF
54743 /* confdefs.h.  */
54744 _ACEOF
54745 cat confdefs.h >>conftest.$ac_ext
54746 cat >>conftest.$ac_ext <<_ACEOF
54747 /* end confdefs.h.  */
54748 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
54749    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
54750 #define $ac_func innocuous_$ac_func
54751
54752 /* System header to define __stub macros and hopefully few prototypes,
54753     which can conflict with char $ac_func (); below.
54754     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
54755     <limits.h> exists even on freestanding compilers.  */
54756
54757 #ifdef __STDC__
54758 # include <limits.h>
54759 #else
54760 # include <assert.h>
54761 #endif
54762
54763 #undef $ac_func
54764
54765 /* Override any GCC internal prototype to avoid an error.
54766    Use char because int might match the return type of a GCC
54767    builtin and then its argument prototype would still apply.  */
54768 #ifdef __cplusplus
54769 extern "C"
54770 #endif
54771 char $ac_func ();
54772 /* The GNU C library defines this for functions which it implements
54773     to always fail with ENOSYS.  Some functions are actually named
54774     something starting with __ and the normal name is an alias.  */
54775 #if defined __stub_$ac_func || defined __stub___$ac_func
54776 choke me
54777 #endif
54778
54779 int
54780 main ()
54781 {
54782 return $ac_func ();
54783   ;
54784   return 0;
54785 }
54786 _ACEOF
54787 rm -f conftest.$ac_objext conftest$ac_exeext
54788 if { (ac_try="$ac_link"
54789 case "(($ac_try" in
54790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54791   *) ac_try_echo=$ac_try;;
54792 esac
54793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54794   (eval "$ac_link") 2>conftest.er1
54795   ac_status=$?
54796   grep -v '^ *+' conftest.er1 >conftest.err
54797   rm -f conftest.er1
54798   cat conftest.err >&5
54799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54800   (exit $ac_status); } && {
54801          test -z "$ac_c_werror_flag" ||
54802          test ! -s conftest.err
54803        } && test -s conftest$ac_exeext &&
54804        $as_test_x conftest$ac_exeext; then
54805   eval "$as_ac_var=yes"
54806 else
54807   echo "$as_me: failed program was:" >&5
54808 sed 's/^/| /' conftest.$ac_ext >&5
54809
54810         eval "$as_ac_var=no"
54811 fi
54812
54813 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
54814       conftest$ac_exeext conftest.$ac_ext
54815 fi
54816 ac_res=`eval echo '${'$as_ac_var'}'`
54817                { echo "$as_me:$LINENO: result: $ac_res" >&5
54818 echo "${ECHO_T}$ac_res" >&6; }
54819 if test `eval echo '${'$as_ac_var'}'` = yes; then
54820   cat >>confdefs.h <<_ACEOF
54821 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
54822 _ACEOF
54823  ice_have_accept=yes
54824 fi
54825 done
54826
54827 if test "${ice_have_accept}" = yes; then
54828 { echo "$as_me:$LINENO: checking for accept declaration in sys/types.h sys/socket.h" >&5
54829 echo $ECHO_N "checking for accept declaration in sys/types.h sys/socket.h... $ECHO_C" >&6; }
54830 if test "${ice_cv_have_accept_decl+set}" = set; then
54831   echo $ECHO_N "(cached) $ECHO_C" >&6
54832 else
54833
54834 ice_cv_have_accept_decl=no
54835 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
54836 ice_re_word='(^|[^a-zA-Z0-9_])'
54837 for header in sys/types.h sys/socket.h; do
54838 # Check for ordinary declaration
54839 cat >conftest.$ac_ext <<_ACEOF
54840 /* confdefs.h.  */
54841 _ACEOF
54842 cat confdefs.h >>conftest.$ac_ext
54843 cat >>conftest.$ac_ext <<_ACEOF
54844 /* end confdefs.h.  */
54845 #include <$header>
54846
54847 _ACEOF
54848 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
54849   $EGREP "${ice_re_word}accept[         ]*\(" >/dev/null 2>&1; then
54850   ice_cv_have_accept_decl=yes
54851 fi
54852 rm -f conftest*
54853
54854 if test "$ice_cv_have_accept_decl" = yes; then
54855         break
54856 fi
54857 # Check for "fixed" declaration like "getpid _PARAMS((int))"
54858 cat >conftest.$ac_ext <<_ACEOF
54859 /* confdefs.h.  */
54860 _ACEOF
54861 cat confdefs.h >>conftest.$ac_ext
54862 cat >>conftest.$ac_ext <<_ACEOF
54863 /* end confdefs.h.  */
54864 #include <$header>
54865
54866 _ACEOF
54867 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
54868   $EGREP "${ice_re_word}accept[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
54869   ice_cv_have_accept_decl=yes
54870 fi
54871 rm -f conftest*
54872
54873 if test "$ice_cv_have_accept_decl" = yes; then
54874         break
54875 fi
54876 done
54877
54878 fi
54879
54880 { echo "$as_me:$LINENO: result: $ice_cv_have_accept_decl" >&5
54881 echo "${ECHO_T}$ice_cv_have_accept_decl" >&6; }
54882 if test "$ice_cv_have_accept_decl" = yes; then
54883
54884 cat >>confdefs.h <<_ACEOF
54885 #define HAVE_ACCEPT_DECL 1
54886 _ACEOF
54887
54888 fi
54889 fi
54890
54891 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
54892 # for constant arguments.  Useless!
54893 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
54894 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
54895 if test "${ac_cv_working_alloca_h+set}" = set; then
54896   echo $ECHO_N "(cached) $ECHO_C" >&6
54897 else
54898   cat >conftest.$ac_ext <<_ACEOF
54899 /* confdefs.h.  */
54900 _ACEOF
54901 cat confdefs.h >>conftest.$ac_ext
54902 cat >>conftest.$ac_ext <<_ACEOF
54903 /* end confdefs.h.  */
54904 #include <alloca.h>
54905 int
54906 main ()
54907 {
54908 char *p = (char *) alloca (2 * sizeof (int));
54909                           if (p) return 0;
54910   ;
54911   return 0;
54912 }
54913 _ACEOF
54914 rm -f conftest.$ac_objext conftest$ac_exeext
54915 if { (ac_try="$ac_link"
54916 case "(($ac_try" in
54917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54918   *) ac_try_echo=$ac_try;;
54919 esac
54920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
54921   (eval "$ac_link") 2>conftest.er1
54922   ac_status=$?
54923   grep -v '^ *+' conftest.er1 >conftest.err
54924   rm -f conftest.er1
54925   cat conftest.err >&5
54926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54927   (exit $ac_status); } && {
54928          test -z "$ac_c_werror_flag" ||
54929          test ! -s conftest.err
54930        } && test -s conftest$ac_exeext &&
54931        $as_test_x conftest$ac_exeext; then
54932   ac_cv_working_alloca_h=yes
54933 else
54934   echo "$as_me: failed program was:" >&5
54935 sed 's/^/| /' conftest.$ac_ext >&5
54936
54937         ac_cv_working_alloca_h=no
54938 fi
54939
54940 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
54941       conftest$ac_exeext conftest.$ac_ext
54942 fi
54943 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
54944 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
54945 if test $ac_cv_working_alloca_h = yes; then
54946
54947 cat >>confdefs.h <<\_ACEOF
54948 #define HAVE_ALLOCA_H 1
54949 _ACEOF
54950
54951 fi
54952
54953 { echo "$as_me:$LINENO: checking for alloca" >&5
54954 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
54955 if test "${ac_cv_func_alloca_works+set}" = set; then
54956   echo $ECHO_N "(cached) $ECHO_C" >&6
54957 else
54958   cat >conftest.$ac_ext <<_ACEOF
54959 /* confdefs.h.  */
54960 _ACEOF
54961 cat confdefs.h >>conftest.$ac_ext
54962 cat >>conftest.$ac_ext <<_ACEOF
54963 /* end confdefs.h.  */
54964 #ifdef __GNUC__
54965 # define alloca __builtin_alloca
54966 #else
54967 # ifdef _MSC_VER
54968 #  include <malloc.h>
54969 #  define alloca _alloca
54970 # else
54971 #  ifdef HAVE_ALLOCA_H
54972 #   include <alloca.h>
54973 #  else
54974 #   ifdef _AIX
54975  #pragma alloca
54976 #   else
54977 #    ifndef alloca /* predefined by HP cc +Olibcalls */
54978 char *alloca ();
54979 #    endif
54980 #   endif
54981 #  endif
54982 # endif
54983 #endif
54984
54985 int
54986 main ()
54987 {
54988 char *p = (char *) alloca (1);
54989                                     if (p) return 0;
54990   ;
54991   return 0;
54992 }
54993 _ACEOF
54994 rm -f conftest.$ac_objext conftest$ac_exeext
54995 if { (ac_try="$ac_link"
54996 case "(($ac_try" in
54997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54998   *) ac_try_echo=$ac_try;;
54999 esac
55000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
55001   (eval "$ac_link") 2>conftest.er1
55002   ac_status=$?
55003   grep -v '^ *+' conftest.er1 >conftest.err
55004   rm -f conftest.er1
55005   cat conftest.err >&5
55006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55007   (exit $ac_status); } && {
55008          test -z "$ac_c_werror_flag" ||
55009          test ! -s conftest.err
55010        } && test -s conftest$ac_exeext &&
55011        $as_test_x conftest$ac_exeext; then
55012   ac_cv_func_alloca_works=yes
55013 else
55014   echo "$as_me: failed program was:" >&5
55015 sed 's/^/| /' conftest.$ac_ext >&5
55016
55017         ac_cv_func_alloca_works=no
55018 fi
55019
55020 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
55021       conftest$ac_exeext conftest.$ac_ext
55022 fi
55023 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
55024 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
55025
55026 if test $ac_cv_func_alloca_works = yes; then
55027
55028 cat >>confdefs.h <<\_ACEOF
55029 #define HAVE_ALLOCA 1
55030 _ACEOF
55031
55032 else
55033   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
55034 # that cause trouble.  Some versions do not even contain alloca or
55035 # contain a buggy version.  If you still want to use their alloca,
55036 # use ar to extract alloca.o from them instead of compiling alloca.c.
55037
55038 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
55039
55040 cat >>confdefs.h <<\_ACEOF
55041 #define C_ALLOCA 1
55042 _ACEOF
55043
55044
55045 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
55046 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
55047 if test "${ac_cv_os_cray+set}" = set; then
55048   echo $ECHO_N "(cached) $ECHO_C" >&6
55049 else
55050   cat >conftest.$ac_ext <<_ACEOF
55051 /* confdefs.h.  */
55052 _ACEOF
55053 cat confdefs.h >>conftest.$ac_ext
55054 cat >>conftest.$ac_ext <<_ACEOF
55055 /* end confdefs.h.  */
55056 #if defined CRAY && ! defined CRAY2
55057 webecray
55058 #else
55059 wenotbecray
55060 #endif
55061
55062 _ACEOF
55063 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
55064   $EGREP "webecray" >/dev/null 2>&1; then
55065   ac_cv_os_cray=yes
55066 else
55067   ac_cv_os_cray=no
55068 fi
55069 rm -f conftest*
55070
55071 fi
55072 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
55073 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
55074 if test $ac_cv_os_cray = yes; then
55075   for ac_func in _getb67 GETB67 getb67; do
55076     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
55077 { echo "$as_me:$LINENO: checking for $ac_func" >&5
55078 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
55079 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
55080   echo $ECHO_N "(cached) $ECHO_C" >&6
55081 else
55082   cat >conftest.$ac_ext <<_ACEOF
55083 /* confdefs.h.  */
55084 _ACEOF
55085 cat confdefs.h >>conftest.$ac_ext
55086 cat >>conftest.$ac_ext <<_ACEOF
55087 /* end confdefs.h.  */
55088 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
55089    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
55090 #define $ac_func innocuous_$ac_func
55091
55092 /* System header to define __stub macros and hopefully few prototypes,
55093     which can conflict with char $ac_func (); below.
55094     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
55095     <limits.h> exists even on freestanding compilers.  */
55096
55097 #ifdef __STDC__
55098 # include <limits.h>
55099 #else
55100 # include <assert.h>
55101 #endif
55102
55103 #undef $ac_func
55104
55105 /* Override any GCC internal prototype to avoid an error.
55106    Use char because int might match the return type of a GCC
55107    builtin and then its argument prototype would still apply.  */
55108 #ifdef __cplusplus
55109 extern "C"
55110 #endif
55111 char $ac_func ();
55112 /* The GNU C library defines this for functions which it implements
55113     to always fail with ENOSYS.  Some functions are actually named
55114     something starting with __ and the normal name is an alias.  */
55115 #if defined __stub_$ac_func || defined __stub___$ac_func
55116 choke me
55117 #endif
55118
55119 int
55120 main ()
55121 {
55122 return $ac_func ();
55123   ;
55124   return 0;
55125 }
55126 _ACEOF
55127 rm -f conftest.$ac_objext conftest$ac_exeext
55128 if { (ac_try="$ac_link"
55129 case "(($ac_try" in
55130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55131   *) ac_try_echo=$ac_try;;
55132 esac
55133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
55134   (eval "$ac_link") 2>conftest.er1
55135   ac_status=$?
55136   grep -v '^ *+' conftest.er1 >conftest.err
55137   rm -f conftest.er1
55138   cat conftest.err >&5
55139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55140   (exit $ac_status); } && {
55141          test -z "$ac_c_werror_flag" ||
55142          test ! -s conftest.err
55143        } && test -s conftest$ac_exeext &&
55144        $as_test_x conftest$ac_exeext; then
55145   eval "$as_ac_var=yes"
55146 else
55147   echo "$as_me: failed program was:" >&5
55148 sed 's/^/| /' conftest.$ac_ext >&5
55149
55150         eval "$as_ac_var=no"
55151 fi
55152
55153 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
55154       conftest$ac_exeext conftest.$ac_ext
55155 fi
55156 ac_res=`eval echo '${'$as_ac_var'}'`
55157                { echo "$as_me:$LINENO: result: $ac_res" >&5
55158 echo "${ECHO_T}$ac_res" >&6; }
55159 if test `eval echo '${'$as_ac_var'}'` = yes; then
55160
55161 cat >>confdefs.h <<_ACEOF
55162 #define CRAY_STACKSEG_END $ac_func
55163 _ACEOF
55164
55165     break
55166 fi
55167
55168   done
55169 fi
55170
55171 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
55172 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
55173 if test "${ac_cv_c_stack_direction+set}" = set; then
55174   echo $ECHO_N "(cached) $ECHO_C" >&6
55175 else
55176   if test "$cross_compiling" = yes; then
55177   ac_cv_c_stack_direction=0
55178 else
55179   cat >conftest.$ac_ext <<_ACEOF
55180 /* confdefs.h.  */
55181 _ACEOF
55182 cat confdefs.h >>conftest.$ac_ext
55183 cat >>conftest.$ac_ext <<_ACEOF
55184 /* end confdefs.h.  */
55185 $ac_includes_default
55186 int
55187 find_stack_direction ()
55188 {
55189   static char *addr = 0;
55190   auto char dummy;
55191   if (addr == 0)
55192     {
55193       addr = &dummy;
55194       return find_stack_direction ();
55195     }
55196   else
55197     return (&dummy > addr) ? 1 : -1;
55198 }
55199
55200 int
55201 main ()
55202 {
55203   return find_stack_direction () < 0;
55204 }
55205 _ACEOF
55206 rm -f conftest$ac_exeext
55207 if { (ac_try="$ac_link"
55208 case "(($ac_try" in
55209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55210   *) ac_try_echo=$ac_try;;
55211 esac
55212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
55213   (eval "$ac_link") 2>&5
55214   ac_status=$?
55215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55216   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
55217   { (case "(($ac_try" in
55218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55219   *) ac_try_echo=$ac_try;;
55220 esac
55221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
55222   (eval "$ac_try") 2>&5
55223   ac_status=$?
55224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55225   (exit $ac_status); }; }; then
55226   ac_cv_c_stack_direction=1
55227 else
55228   echo "$as_me: program exited with status $ac_status" >&5
55229 echo "$as_me: failed program was:" >&5
55230 sed 's/^/| /' conftest.$ac_ext >&5
55231
55232 ( exit $ac_status )
55233 ac_cv_c_stack_direction=-1
55234 fi
55235 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
55236 fi
55237
55238
55239 fi
55240 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
55241 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
55242
55243 cat >>confdefs.h <<_ACEOF
55244 #define STACK_DIRECTION $ac_cv_c_stack_direction
55245 _ACEOF
55246
55247
55248 fi
55249
55250
55251 for ac_func in atexit
55252 do
55253 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
55254 { echo "$as_me:$LINENO: checking for $ac_func" >&5
55255 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
55256 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
55257   echo $ECHO_N "(cached) $ECHO_C" >&6
55258 else
55259   cat >conftest.$ac_ext <<_ACEOF
55260 /* confdefs.h.  */
55261 _ACEOF
55262 cat confdefs.h >>conftest.$ac_ext
55263 cat >>conftest.$ac_ext <<_ACEOF
55264 /* end confdefs.h.  */
55265 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
55266    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
55267 #define $ac_func innocuous_$ac_func
55268
55269 /* System header to define __stub macros and hopefully few prototypes,
55270     which can conflict with char $ac_func (); below.
55271     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
55272     <limits.h> exists even on freestanding compilers.  */
55273
55274 #ifdef __STDC__
55275 # include <limits.h>
55276 #else
55277 # include <assert.h>
55278 #endif
55279
55280 #undef $ac_func
55281
55282 /* Override any GCC internal prototype to avoid an error.
55283    Use char because int might match the return type of a GCC
55284    builtin and then its argument prototype would still apply.  */
55285 #ifdef __cplusplus
55286 extern "C"
55287 #endif
55288 char $ac_func ();
55289 /* The GNU C library defines this for functions which it implements
55290     to always fail with ENOSYS.  Some functions are actually named
55291     something starting with __ and the normal name is an alias.  */
55292 #if defined __stub_$ac_func || defined __stub___$ac_func
55293 choke me
55294 #endif
55295
55296 int
55297 main ()
55298 {
55299 return $ac_func ();
55300   ;
55301   return 0;
55302 }
55303 _ACEOF
55304 rm -f conftest.$ac_objext conftest$ac_exeext
55305 if { (ac_try="$ac_link"
55306 case "(($ac_try" in
55307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55308   *) ac_try_echo=$ac_try;;
55309 esac
55310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
55311   (eval "$ac_link") 2>conftest.er1
55312   ac_status=$?
55313   grep -v '^ *+' conftest.er1 >conftest.err
55314   rm -f conftest.er1
55315   cat conftest.err >&5
55316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55317   (exit $ac_status); } && {
55318          test -z "$ac_c_werror_flag" ||
55319          test ! -s conftest.err
55320        } && test -s conftest$ac_exeext &&
55321        $as_test_x conftest$ac_exeext; then
55322   eval "$as_ac_var=yes"
55323 else
55324   echo "$as_me: failed program was:" >&5
55325 sed 's/^/| /' conftest.$ac_ext >&5
55326
55327         eval "$as_ac_var=no"
55328 fi
55329
55330 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
55331       conftest$ac_exeext conftest.$ac_ext
55332 fi
55333 ac_res=`eval echo '${'$as_ac_var'}'`
55334                { echo "$as_me:$LINENO: result: $ac_res" >&5
55335 echo "${ECHO_T}$ac_res" >&6; }
55336 if test `eval echo '${'$as_ac_var'}'` = yes; then
55337   cat >>confdefs.h <<_ACEOF
55338 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
55339 _ACEOF
55340
55341 fi
55342 done
55343
55344
55345 ice_have_atof=no
55346
55347 for ac_func in atof
55348 do
55349 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
55350 { echo "$as_me:$LINENO: checking for $ac_func" >&5
55351 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
55352 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
55353   echo $ECHO_N "(cached) $ECHO_C" >&6
55354 else
55355   cat >conftest.$ac_ext <<_ACEOF
55356 /* confdefs.h.  */
55357 _ACEOF
55358 cat confdefs.h >>conftest.$ac_ext
55359 cat >>conftest.$ac_ext <<_ACEOF
55360 /* end confdefs.h.  */
55361 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
55362    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
55363 #define $ac_func innocuous_$ac_func
55364
55365 /* System header to define __stub macros and hopefully few prototypes,
55366     which can conflict with char $ac_func (); below.
55367     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
55368     <limits.h> exists even on freestanding compilers.  */
55369
55370 #ifdef __STDC__
55371 # include <limits.h>
55372 #else
55373 # include <assert.h>
55374 #endif
55375
55376 #undef $ac_func
55377
55378 /* Override any GCC internal prototype to avoid an error.
55379    Use char because int might match the return type of a GCC
55380    builtin and then its argument prototype would still apply.  */
55381 #ifdef __cplusplus
55382 extern "C"
55383 #endif
55384 char $ac_func ();
55385 /* The GNU C library defines this for functions which it implements
55386     to always fail with ENOSYS.  Some functions are actually named
55387     something starting with __ and the normal name is an alias.  */
55388 #if defined __stub_$ac_func || defined __stub___$ac_func
55389 choke me
55390 #endif
55391
55392 int
55393 main ()
55394 {
55395 return $ac_func ();
55396   ;
55397   return 0;
55398 }
55399 _ACEOF
55400 rm -f conftest.$ac_objext conftest$ac_exeext
55401 if { (ac_try="$ac_link"
55402 case "(($ac_try" in
55403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55404   *) ac_try_echo=$ac_try;;
55405 esac
55406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
55407   (eval "$ac_link") 2>conftest.er1
55408   ac_status=$?
55409   grep -v '^ *+' conftest.er1 >conftest.err
55410   rm -f conftest.er1
55411   cat conftest.err >&5
55412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55413   (exit $ac_status); } && {
55414          test -z "$ac_c_werror_flag" ||
55415          test ! -s conftest.err
55416        } && test -s conftest$ac_exeext &&
55417        $as_test_x conftest$ac_exeext; then
55418   eval "$as_ac_var=yes"
55419 else
55420   echo "$as_me: failed program was:" >&5
55421 sed 's/^/| /' conftest.$ac_ext >&5
55422
55423         eval "$as_ac_var=no"
55424 fi
55425
55426 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
55427       conftest$ac_exeext conftest.$ac_ext
55428 fi
55429 ac_res=`eval echo '${'$as_ac_var'}'`
55430                { echo "$as_me:$LINENO: result: $ac_res" >&5
55431 echo "${ECHO_T}$ac_res" >&6; }
55432 if test `eval echo '${'$as_ac_var'}'` = yes; then
55433   cat >>confdefs.h <<_ACEOF
55434 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
55435 _ACEOF
55436  ice_have_atof=yes
55437 fi
55438 done
55439
55440 if test "${ice_have_atof}" = yes; then
55441 { echo "$as_me:$LINENO: checking for atof declaration in stdlib.h" >&5
55442 echo $ECHO_N "checking for atof declaration in stdlib.h... $ECHO_C" >&6; }
55443 if test "${ice_cv_have_atof_decl+set}" = set; then
55444   echo $ECHO_N "(cached) $ECHO_C" >&6
55445 else
55446
55447 ice_cv_have_atof_decl=no
55448 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
55449 ice_re_word='(^|[^a-zA-Z0-9_])'
55450 for header in stdlib.h; do
55451 # Check for ordinary declaration
55452 cat >conftest.$ac_ext <<_ACEOF
55453 /* confdefs.h.  */
55454 _ACEOF
55455 cat confdefs.h >>conftest.$ac_ext
55456 cat >>conftest.$ac_ext <<_ACEOF
55457 /* end confdefs.h.  */
55458 #include <$header>
55459
55460 _ACEOF
55461 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
55462   $EGREP "${ice_re_word}atof[   ]*\(" >/dev/null 2>&1; then
55463   ice_cv_have_atof_decl=yes
55464 fi
55465 rm -f conftest*
55466
55467 if test "$ice_cv_have_atof_decl" = yes; then
55468         break
55469 fi
55470 # Check for "fixed" declaration like "getpid _PARAMS((int))"
55471 cat >conftest.$ac_ext <<_ACEOF
55472 /* confdefs.h.  */
55473 _ACEOF
55474 cat confdefs.h >>conftest.$ac_ext
55475 cat >>conftest.$ac_ext <<_ACEOF
55476 /* end confdefs.h.  */
55477 #include <$header>
55478
55479 _ACEOF
55480 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
55481   $EGREP "${ice_re_word}atof[   ]*$ice_re_params\(\(" >/dev/null 2>&1; then
55482   ice_cv_have_atof_decl=yes
55483 fi
55484 rm -f conftest*
55485
55486 if test "$ice_cv_have_atof_decl" = yes; then
55487         break
55488 fi
55489 done
55490
55491 fi
55492
55493 { echo "$as_me:$LINENO: result: $ice_cv_have_atof_decl" >&5
55494 echo "${ECHO_T}$ice_cv_have_atof_decl" >&6; }
55495 if test "$ice_cv_have_atof_decl" = yes; then
55496
55497 cat >>confdefs.h <<_ACEOF
55498 #define HAVE_ATOF_DECL 1
55499 _ACEOF
55500
55501 fi
55502 fi
55503
55504
55505 ice_have_atol=no
55506
55507 for ac_func in atol
55508 do
55509 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
55510 { echo "$as_me:$LINENO: checking for $ac_func" >&5
55511 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
55512 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
55513   echo $ECHO_N "(cached) $ECHO_C" >&6
55514 else
55515   cat >conftest.$ac_ext <<_ACEOF
55516 /* confdefs.h.  */
55517 _ACEOF
55518 cat confdefs.h >>conftest.$ac_ext
55519 cat >>conftest.$ac_ext <<_ACEOF
55520 /* end confdefs.h.  */
55521 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
55522    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
55523 #define $ac_func innocuous_$ac_func
55524
55525 /* System header to define __stub macros and hopefully few prototypes,
55526     which can conflict with char $ac_func (); below.
55527     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
55528     <limits.h> exists even on freestanding compilers.  */
55529
55530 #ifdef __STDC__
55531 # include <limits.h>
55532 #else
55533 # include <assert.h>
55534 #endif
55535
55536 #undef $ac_func
55537
55538 /* Override any GCC internal prototype to avoid an error.
55539    Use char because int might match the return type of a GCC
55540    builtin and then its argument prototype would still apply.  */
55541 #ifdef __cplusplus
55542 extern "C"
55543 #endif
55544 char $ac_func ();
55545 /* The GNU C library defines this for functions which it implements
55546     to always fail with ENOSYS.  Some functions are actually named
55547     something starting with __ and the normal name is an alias.  */
55548 #if defined __stub_$ac_func || defined __stub___$ac_func
55549 choke me
55550 #endif
55551
55552 int
55553 main ()
55554 {
55555 return $ac_func ();
55556   ;
55557   return 0;
55558 }
55559 _ACEOF
55560 rm -f conftest.$ac_objext conftest$ac_exeext
55561 if { (ac_try="$ac_link"
55562 case "(($ac_try" in
55563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55564   *) ac_try_echo=$ac_try;;
55565 esac
55566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
55567   (eval "$ac_link") 2>conftest.er1
55568   ac_status=$?
55569   grep -v '^ *+' conftest.er1 >conftest.err
55570   rm -f conftest.er1
55571   cat conftest.err >&5
55572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55573   (exit $ac_status); } && {
55574          test -z "$ac_c_werror_flag" ||
55575          test ! -s conftest.err
55576        } && test -s conftest$ac_exeext &&
55577        $as_test_x conftest$ac_exeext; then
55578   eval "$as_ac_var=yes"
55579 else
55580   echo "$as_me: failed program was:" >&5
55581 sed 's/^/| /' conftest.$ac_ext >&5
55582
55583         eval "$as_ac_var=no"
55584 fi
55585
55586 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
55587       conftest$ac_exeext conftest.$ac_ext
55588 fi
55589 ac_res=`eval echo '${'$as_ac_var'}'`
55590                { echo "$as_me:$LINENO: result: $ac_res" >&5
55591 echo "${ECHO_T}$ac_res" >&6; }
55592 if test `eval echo '${'$as_ac_var'}'` = yes; then
55593   cat >>confdefs.h <<_ACEOF
55594 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
55595 _ACEOF
55596  ice_have_atol=yes
55597 fi
55598 done
55599
55600 if test "${ice_have_atol}" = yes; then
55601 { echo "$as_me:$LINENO: checking for atol declaration in stdlib.h" >&5
55602 echo $ECHO_N "checking for atol declaration in stdlib.h... $ECHO_C" >&6; }
55603 if test "${ice_cv_have_atol_decl+set}" = set; then
55604   echo $ECHO_N "(cached) $ECHO_C" >&6
55605 else
55606
55607 ice_cv_have_atol_decl=no
55608 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
55609 ice_re_word='(^|[^a-zA-Z0-9_])'
55610 for header in stdlib.h; do
55611 # Check for ordinary declaration
55612 cat >conftest.$ac_ext <<_ACEOF
55613 /* confdefs.h.  */
55614 _ACEOF
55615 cat confdefs.h >>conftest.$ac_ext
55616 cat >>conftest.$ac_ext <<_ACEOF
55617 /* end confdefs.h.  */
55618 #include <$header>
55619
55620 _ACEOF
55621 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
55622   $EGREP "${ice_re_word}atol[   ]*\(" >/dev/null 2>&1; then
55623   ice_cv_have_atol_decl=yes
55624 fi
55625 rm -f conftest*
55626
55627 if test "$ice_cv_have_atol_decl" = yes; then
55628         break
55629 fi
55630 # Check for "fixed" declaration like "getpid _PARAMS((int))"
55631 cat >conftest.$ac_ext <<_ACEOF
55632 /* confdefs.h.  */
55633 _ACEOF
55634 cat confdefs.h >>conftest.$ac_ext
55635 cat >>conftest.$ac_ext <<_ACEOF
55636 /* end confdefs.h.  */
55637 #include <$header>
55638
55639 _ACEOF
55640 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
55641   $EGREP "${ice_re_word}atol[   ]*$ice_re_params\(\(" >/dev/null 2>&1; then
55642   ice_cv_have_atol_decl=yes
55643 fi
55644 rm -f conftest*
55645
55646 if test "$ice_cv_have_atol_decl" = yes; then
55647         break
55648 fi
55649 done
55650
55651 fi
55652
55653 { echo "$as_me:$LINENO: result: $ice_cv_have_atol_decl" >&5
55654 echo "${ECHO_T}$ice_cv_have_atol_decl" >&6; }
55655 if test "$ice_cv_have_atol_decl" = yes; then
55656
55657 cat >>confdefs.h <<_ACEOF
55658 #define HAVE_ATOL_DECL 1
55659 _ACEOF
55660
55661 fi
55662 fi
55663
55664
55665 ice_have_atoll=no
55666
55667 for ac_func in atoll
55668 do
55669 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
55670 { echo "$as_me:$LINENO: checking for $ac_func" >&5
55671 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
55672 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
55673   echo $ECHO_N "(cached) $ECHO_C" >&6
55674 else
55675   cat >conftest.$ac_ext <<_ACEOF
55676 /* confdefs.h.  */
55677 _ACEOF
55678 cat confdefs.h >>conftest.$ac_ext
55679 cat >>conftest.$ac_ext <<_ACEOF
55680 /* end confdefs.h.  */
55681 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
55682    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
55683 #define $ac_func innocuous_$ac_func
55684
55685 /* System header to define __stub macros and hopefully few prototypes,
55686     which can conflict with char $ac_func (); below.
55687     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
55688     <limits.h> exists even on freestanding compilers.  */
55689
55690 #ifdef __STDC__
55691 # include <limits.h>
55692 #else
55693 # include <assert.h>
55694 #endif
55695
55696 #undef $ac_func
55697
55698 /* Override any GCC internal prototype to avoid an error.
55699    Use char because int might match the return type of a GCC
55700    builtin and then its argument prototype would still apply.  */
55701 #ifdef __cplusplus
55702 extern "C"
55703 #endif
55704 char $ac_func ();
55705 /* The GNU C library defines this for functions which it implements
55706     to always fail with ENOSYS.  Some functions are actually named
55707     something starting with __ and the normal name is an alias.  */
55708 #if defined __stub_$ac_func || defined __stub___$ac_func
55709 choke me
55710 #endif
55711
55712 int
55713 main ()
55714 {
55715 return $ac_func ();
55716   ;
55717   return 0;
55718 }
55719 _ACEOF
55720 rm -f conftest.$ac_objext conftest$ac_exeext
55721 if { (ac_try="$ac_link"
55722 case "(($ac_try" in
55723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55724   *) ac_try_echo=$ac_try;;
55725 esac
55726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
55727   (eval "$ac_link") 2>conftest.er1
55728   ac_status=$?
55729   grep -v '^ *+' conftest.er1 >conftest.err
55730   rm -f conftest.er1
55731   cat conftest.err >&5
55732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55733   (exit $ac_status); } && {
55734          test -z "$ac_c_werror_flag" ||
55735          test ! -s conftest.err
55736        } && test -s conftest$ac_exeext &&
55737        $as_test_x conftest$ac_exeext; then
55738   eval "$as_ac_var=yes"
55739 else
55740   echo "$as_me: failed program was:" >&5
55741 sed 's/^/| /' conftest.$ac_ext >&5
55742
55743         eval "$as_ac_var=no"
55744 fi
55745
55746 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
55747       conftest$ac_exeext conftest.$ac_ext
55748 fi
55749 ac_res=`eval echo '${'$as_ac_var'}'`
55750                { echo "$as_me:$LINENO: result: $ac_res" >&5
55751 echo "${ECHO_T}$ac_res" >&6; }
55752 if test `eval echo '${'$as_ac_var'}'` = yes; then
55753   cat >>confdefs.h <<_ACEOF
55754 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
55755 _ACEOF
55756  ice_have_atoll=yes
55757 fi
55758 done
55759
55760 if test "${ice_have_atoll}" = yes; then
55761 { echo "$as_me:$LINENO: checking for atoll declaration in stdlib.h" >&5
55762 echo $ECHO_N "checking for atoll declaration in stdlib.h... $ECHO_C" >&6; }
55763 if test "${ice_cv_have_atoll_decl+set}" = set; then
55764   echo $ECHO_N "(cached) $ECHO_C" >&6
55765 else
55766
55767 ice_cv_have_atoll_decl=no
55768 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
55769 ice_re_word='(^|[^a-zA-Z0-9_])'
55770 for header in stdlib.h; do
55771 # Check for ordinary declaration
55772 cat >conftest.$ac_ext <<_ACEOF
55773 /* confdefs.h.  */
55774 _ACEOF
55775 cat confdefs.h >>conftest.$ac_ext
55776 cat >>conftest.$ac_ext <<_ACEOF
55777 /* end confdefs.h.  */
55778 #include <$header>
55779
55780 _ACEOF
55781 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
55782   $EGREP "${ice_re_word}atoll[  ]*\(" >/dev/null 2>&1; then
55783   ice_cv_have_atoll_decl=yes
55784 fi
55785 rm -f conftest*
55786
55787 if test "$ice_cv_have_atoll_decl" = yes; then
55788         break
55789 fi
55790 # Check for "fixed" declaration like "getpid _PARAMS((int))"
55791 cat >conftest.$ac_ext <<_ACEOF
55792 /* confdefs.h.  */
55793 _ACEOF
55794 cat confdefs.h >>conftest.$ac_ext
55795 cat >>conftest.$ac_ext <<_ACEOF
55796 /* end confdefs.h.  */
55797 #include <$header>
55798
55799 _ACEOF
55800 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
55801   $EGREP "${ice_re_word}atoll[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
55802   ice_cv_have_atoll_decl=yes
55803 fi
55804 rm -f conftest*
55805
55806 if test "$ice_cv_have_atoll_decl" = yes; then
55807         break
55808 fi
55809 done
55810
55811 fi
55812
55813 { echo "$as_me:$LINENO: result: $ice_cv_have_atoll_decl" >&5
55814 echo "${ECHO_T}$ice_cv_have_atoll_decl" >&6; }
55815 if test "$ice_cv_have_atoll_decl" = yes; then
55816
55817 cat >>confdefs.h <<_ACEOF
55818 #define HAVE_ATOLL_DECL 1
55819 _ACEOF
55820
55821 fi
55822 fi
55823
55824
55825 ice_have_strtol=no
55826
55827 for ac_func in strtol
55828 do
55829 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
55830 { echo "$as_me:$LINENO: checking for $ac_func" >&5
55831 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
55832 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
55833   echo $ECHO_N "(cached) $ECHO_C" >&6
55834 else
55835   cat >conftest.$ac_ext <<_ACEOF
55836 /* confdefs.h.  */
55837 _ACEOF
55838 cat confdefs.h >>conftest.$ac_ext
55839 cat >>conftest.$ac_ext <<_ACEOF
55840 /* end confdefs.h.  */
55841 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
55842    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
55843 #define $ac_func innocuous_$ac_func
55844
55845 /* System header to define __stub macros and hopefully few prototypes,
55846     which can conflict with char $ac_func (); below.
55847     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
55848     <limits.h> exists even on freestanding compilers.  */
55849
55850 #ifdef __STDC__
55851 # include <limits.h>
55852 #else
55853 # include <assert.h>
55854 #endif
55855
55856 #undef $ac_func
55857
55858 /* Override any GCC internal prototype to avoid an error.
55859    Use char because int might match the return type of a GCC
55860    builtin and then its argument prototype would still apply.  */
55861 #ifdef __cplusplus
55862 extern "C"
55863 #endif
55864 char $ac_func ();
55865 /* The GNU C library defines this for functions which it implements
55866     to always fail with ENOSYS.  Some functions are actually named
55867     something starting with __ and the normal name is an alias.  */
55868 #if defined __stub_$ac_func || defined __stub___$ac_func
55869 choke me
55870 #endif
55871
55872 int
55873 main ()
55874 {
55875 return $ac_func ();
55876   ;
55877   return 0;
55878 }
55879 _ACEOF
55880 rm -f conftest.$ac_objext conftest$ac_exeext
55881 if { (ac_try="$ac_link"
55882 case "(($ac_try" in
55883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55884   *) ac_try_echo=$ac_try;;
55885 esac
55886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
55887   (eval "$ac_link") 2>conftest.er1
55888   ac_status=$?
55889   grep -v '^ *+' conftest.er1 >conftest.err
55890   rm -f conftest.er1
55891   cat conftest.err >&5
55892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55893   (exit $ac_status); } && {
55894          test -z "$ac_c_werror_flag" ||
55895          test ! -s conftest.err
55896        } && test -s conftest$ac_exeext &&
55897        $as_test_x conftest$ac_exeext; then
55898   eval "$as_ac_var=yes"
55899 else
55900   echo "$as_me: failed program was:" >&5
55901 sed 's/^/| /' conftest.$ac_ext >&5
55902
55903         eval "$as_ac_var=no"
55904 fi
55905
55906 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
55907       conftest$ac_exeext conftest.$ac_ext
55908 fi
55909 ac_res=`eval echo '${'$as_ac_var'}'`
55910                { echo "$as_me:$LINENO: result: $ac_res" >&5
55911 echo "${ECHO_T}$ac_res" >&6; }
55912 if test `eval echo '${'$as_ac_var'}'` = yes; then
55913   cat >>confdefs.h <<_ACEOF
55914 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
55915 _ACEOF
55916  ice_have_strtol=yes
55917 fi
55918 done
55919
55920 if test "${ice_have_strtol}" = yes; then
55921 { echo "$as_me:$LINENO: checking for strtol declaration in stdlib.h" >&5
55922 echo $ECHO_N "checking for strtol declaration in stdlib.h... $ECHO_C" >&6; }
55923 if test "${ice_cv_have_strtol_decl+set}" = set; then
55924   echo $ECHO_N "(cached) $ECHO_C" >&6
55925 else
55926
55927 ice_cv_have_strtol_decl=no
55928 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
55929 ice_re_word='(^|[^a-zA-Z0-9_])'
55930 for header in stdlib.h; do
55931 # Check for ordinary declaration
55932 cat >conftest.$ac_ext <<_ACEOF
55933 /* confdefs.h.  */
55934 _ACEOF
55935 cat confdefs.h >>conftest.$ac_ext
55936 cat >>conftest.$ac_ext <<_ACEOF
55937 /* end confdefs.h.  */
55938 #include <$header>
55939
55940 _ACEOF
55941 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
55942   $EGREP "${ice_re_word}strtol[         ]*\(" >/dev/null 2>&1; then
55943   ice_cv_have_strtol_decl=yes
55944 fi
55945 rm -f conftest*
55946
55947 if test "$ice_cv_have_strtol_decl" = yes; then
55948         break
55949 fi
55950 # Check for "fixed" declaration like "getpid _PARAMS((int))"
55951 cat >conftest.$ac_ext <<_ACEOF
55952 /* confdefs.h.  */
55953 _ACEOF
55954 cat confdefs.h >>conftest.$ac_ext
55955 cat >>conftest.$ac_ext <<_ACEOF
55956 /* end confdefs.h.  */
55957 #include <$header>
55958
55959 _ACEOF
55960 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
55961   $EGREP "${ice_re_word}strtol[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
55962   ice_cv_have_strtol_decl=yes
55963 fi
55964 rm -f conftest*
55965
55966 if test "$ice_cv_have_strtol_decl" = yes; then
55967         break
55968 fi
55969 done
55970
55971 fi
55972
55973 { echo "$as_me:$LINENO: result: $ice_cv_have_strtol_decl" >&5
55974 echo "${ECHO_T}$ice_cv_have_strtol_decl" >&6; }
55975 if test "$ice_cv_have_strtol_decl" = yes; then
55976
55977 cat >>confdefs.h <<_ACEOF
55978 #define HAVE_STRTOL_DECL 1
55979 _ACEOF
55980
55981 fi
55982 fi
55983
55984
55985 ice_have_strtoll=no
55986
55987 for ac_func in strtoll
55988 do
55989 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
55990 { echo "$as_me:$LINENO: checking for $ac_func" >&5
55991 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
55992 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
55993   echo $ECHO_N "(cached) $ECHO_C" >&6
55994 else
55995   cat >conftest.$ac_ext <<_ACEOF
55996 /* confdefs.h.  */
55997 _ACEOF
55998 cat confdefs.h >>conftest.$ac_ext
55999 cat >>conftest.$ac_ext <<_ACEOF
56000 /* end confdefs.h.  */
56001 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
56002    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
56003 #define $ac_func innocuous_$ac_func
56004
56005 /* System header to define __stub macros and hopefully few prototypes,
56006     which can conflict with char $ac_func (); below.
56007     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
56008     <limits.h> exists even on freestanding compilers.  */
56009
56010 #ifdef __STDC__
56011 # include <limits.h>
56012 #else
56013 # include <assert.h>
56014 #endif
56015
56016 #undef $ac_func
56017
56018 /* Override any GCC internal prototype to avoid an error.
56019    Use char because int might match the return type of a GCC
56020    builtin and then its argument prototype would still apply.  */
56021 #ifdef __cplusplus
56022 extern "C"
56023 #endif
56024 char $ac_func ();
56025 /* The GNU C library defines this for functions which it implements
56026     to always fail with ENOSYS.  Some functions are actually named
56027     something starting with __ and the normal name is an alias.  */
56028 #if defined __stub_$ac_func || defined __stub___$ac_func
56029 choke me
56030 #endif
56031
56032 int
56033 main ()
56034 {
56035 return $ac_func ();
56036   ;
56037   return 0;
56038 }
56039 _ACEOF
56040 rm -f conftest.$ac_objext conftest$ac_exeext
56041 if { (ac_try="$ac_link"
56042 case "(($ac_try" in
56043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56044   *) ac_try_echo=$ac_try;;
56045 esac
56046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
56047   (eval "$ac_link") 2>conftest.er1
56048   ac_status=$?
56049   grep -v '^ *+' conftest.er1 >conftest.err
56050   rm -f conftest.er1
56051   cat conftest.err >&5
56052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56053   (exit $ac_status); } && {
56054          test -z "$ac_c_werror_flag" ||
56055          test ! -s conftest.err
56056        } && test -s conftest$ac_exeext &&
56057        $as_test_x conftest$ac_exeext; then
56058   eval "$as_ac_var=yes"
56059 else
56060   echo "$as_me: failed program was:" >&5
56061 sed 's/^/| /' conftest.$ac_ext >&5
56062
56063         eval "$as_ac_var=no"
56064 fi
56065
56066 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
56067       conftest$ac_exeext conftest.$ac_ext
56068 fi
56069 ac_res=`eval echo '${'$as_ac_var'}'`
56070                { echo "$as_me:$LINENO: result: $ac_res" >&5
56071 echo "${ECHO_T}$ac_res" >&6; }
56072 if test `eval echo '${'$as_ac_var'}'` = yes; then
56073   cat >>confdefs.h <<_ACEOF
56074 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
56075 _ACEOF
56076  ice_have_strtoll=yes
56077 fi
56078 done
56079
56080 if test "${ice_have_strtoll}" = yes; then
56081 { echo "$as_me:$LINENO: checking for strtoll declaration in stdlib.h" >&5
56082 echo $ECHO_N "checking for strtoll declaration in stdlib.h... $ECHO_C" >&6; }
56083 if test "${ice_cv_have_strtoll_decl+set}" = set; then
56084   echo $ECHO_N "(cached) $ECHO_C" >&6
56085 else
56086
56087 ice_cv_have_strtoll_decl=no
56088 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
56089 ice_re_word='(^|[^a-zA-Z0-9_])'
56090 for header in stdlib.h; do
56091 # Check for ordinary declaration
56092 cat >conftest.$ac_ext <<_ACEOF
56093 /* confdefs.h.  */
56094 _ACEOF
56095 cat confdefs.h >>conftest.$ac_ext
56096 cat >>conftest.$ac_ext <<_ACEOF
56097 /* end confdefs.h.  */
56098 #include <$header>
56099
56100 _ACEOF
56101 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
56102   $EGREP "${ice_re_word}strtoll[        ]*\(" >/dev/null 2>&1; then
56103   ice_cv_have_strtoll_decl=yes
56104 fi
56105 rm -f conftest*
56106
56107 if test "$ice_cv_have_strtoll_decl" = yes; then
56108         break
56109 fi
56110 # Check for "fixed" declaration like "getpid _PARAMS((int))"
56111 cat >conftest.$ac_ext <<_ACEOF
56112 /* confdefs.h.  */
56113 _ACEOF
56114 cat confdefs.h >>conftest.$ac_ext
56115 cat >>conftest.$ac_ext <<_ACEOF
56116 /* end confdefs.h.  */
56117 #include <$header>
56118
56119 _ACEOF
56120 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
56121   $EGREP "${ice_re_word}strtoll[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
56122   ice_cv_have_strtoll_decl=yes
56123 fi
56124 rm -f conftest*
56125
56126 if test "$ice_cv_have_strtoll_decl" = yes; then
56127         break
56128 fi
56129 done
56130
56131 fi
56132
56133 { echo "$as_me:$LINENO: result: $ice_cv_have_strtoll_decl" >&5
56134 echo "${ECHO_T}$ice_cv_have_strtoll_decl" >&6; }
56135 if test "$ice_cv_have_strtoll_decl" = yes; then
56136
56137 cat >>confdefs.h <<_ACEOF
56138 #define HAVE_STRTOLL_DECL 1
56139 _ACEOF
56140
56141 fi
56142 fi
56143
56144
56145 for ac_func in basename
56146 do
56147 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
56148 { echo "$as_me:$LINENO: checking for $ac_func" >&5
56149 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
56150 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
56151   echo $ECHO_N "(cached) $ECHO_C" >&6
56152 else
56153   cat >conftest.$ac_ext <<_ACEOF
56154 /* confdefs.h.  */
56155 _ACEOF
56156 cat confdefs.h >>conftest.$ac_ext
56157 cat >>conftest.$ac_ext <<_ACEOF
56158 /* end confdefs.h.  */
56159 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
56160    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
56161 #define $ac_func innocuous_$ac_func
56162
56163 /* System header to define __stub macros and hopefully few prototypes,
56164     which can conflict with char $ac_func (); below.
56165     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
56166     <limits.h> exists even on freestanding compilers.  */
56167
56168 #ifdef __STDC__
56169 # include <limits.h>
56170 #else
56171 # include <assert.h>
56172 #endif
56173
56174 #undef $ac_func
56175
56176 /* Override any GCC internal prototype to avoid an error.
56177    Use char because int might match the return type of a GCC
56178    builtin and then its argument prototype would still apply.  */
56179 #ifdef __cplusplus
56180 extern "C"
56181 #endif
56182 char $ac_func ();
56183 /* The GNU C library defines this for functions which it implements
56184     to always fail with ENOSYS.  Some functions are actually named
56185     something starting with __ and the normal name is an alias.  */
56186 #if defined __stub_$ac_func || defined __stub___$ac_func
56187 choke me
56188 #endif
56189
56190 int
56191 main ()
56192 {
56193 return $ac_func ();
56194   ;
56195   return 0;
56196 }
56197 _ACEOF
56198 rm -f conftest.$ac_objext conftest$ac_exeext
56199 if { (ac_try="$ac_link"
56200 case "(($ac_try" in
56201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56202   *) ac_try_echo=$ac_try;;
56203 esac
56204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
56205   (eval "$ac_link") 2>conftest.er1
56206   ac_status=$?
56207   grep -v '^ *+' conftest.er1 >conftest.err
56208   rm -f conftest.er1
56209   cat conftest.err >&5
56210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56211   (exit $ac_status); } && {
56212          test -z "$ac_c_werror_flag" ||
56213          test ! -s conftest.err
56214        } && test -s conftest$ac_exeext &&
56215        $as_test_x conftest$ac_exeext; then
56216   eval "$as_ac_var=yes"
56217 else
56218   echo "$as_me: failed program was:" >&5
56219 sed 's/^/| /' conftest.$ac_ext >&5
56220
56221         eval "$as_ac_var=no"
56222 fi
56223
56224 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
56225       conftest$ac_exeext conftest.$ac_ext
56226 fi
56227 ac_res=`eval echo '${'$as_ac_var'}'`
56228                { echo "$as_me:$LINENO: result: $ac_res" >&5
56229 echo "${ECHO_T}$ac_res" >&6; }
56230 if test `eval echo '${'$as_ac_var'}'` = yes; then
56231   cat >>confdefs.h <<_ACEOF
56232 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
56233 _ACEOF
56234
56235 fi
56236 done
56237
56238
56239 ice_have_bind=no
56240
56241 for ac_func in bind
56242 do
56243 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
56244 { echo "$as_me:$LINENO: checking for $ac_func" >&5
56245 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
56246 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
56247   echo $ECHO_N "(cached) $ECHO_C" >&6
56248 else
56249   cat >conftest.$ac_ext <<_ACEOF
56250 /* confdefs.h.  */
56251 _ACEOF
56252 cat confdefs.h >>conftest.$ac_ext
56253 cat >>conftest.$ac_ext <<_ACEOF
56254 /* end confdefs.h.  */
56255 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
56256    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
56257 #define $ac_func innocuous_$ac_func
56258
56259 /* System header to define __stub macros and hopefully few prototypes,
56260     which can conflict with char $ac_func (); below.
56261     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
56262     <limits.h> exists even on freestanding compilers.  */
56263
56264 #ifdef __STDC__
56265 # include <limits.h>
56266 #else
56267 # include <assert.h>
56268 #endif
56269
56270 #undef $ac_func
56271
56272 /* Override any GCC internal prototype to avoid an error.
56273    Use char because int might match the return type of a GCC
56274    builtin and then its argument prototype would still apply.  */
56275 #ifdef __cplusplus
56276 extern "C"
56277 #endif
56278 char $ac_func ();
56279 /* The GNU C library defines this for functions which it implements
56280     to always fail with ENOSYS.  Some functions are actually named
56281     something starting with __ and the normal name is an alias.  */
56282 #if defined __stub_$ac_func || defined __stub___$ac_func
56283 choke me
56284 #endif
56285
56286 int
56287 main ()
56288 {
56289 return $ac_func ();
56290   ;
56291   return 0;
56292 }
56293 _ACEOF
56294 rm -f conftest.$ac_objext conftest$ac_exeext
56295 if { (ac_try="$ac_link"
56296 case "(($ac_try" in
56297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56298   *) ac_try_echo=$ac_try;;
56299 esac
56300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
56301   (eval "$ac_link") 2>conftest.er1
56302   ac_status=$?
56303   grep -v '^ *+' conftest.er1 >conftest.err
56304   rm -f conftest.er1
56305   cat conftest.err >&5
56306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56307   (exit $ac_status); } && {
56308          test -z "$ac_c_werror_flag" ||
56309          test ! -s conftest.err
56310        } && test -s conftest$ac_exeext &&
56311        $as_test_x conftest$ac_exeext; then
56312   eval "$as_ac_var=yes"
56313 else
56314   echo "$as_me: failed program was:" >&5
56315 sed 's/^/| /' conftest.$ac_ext >&5
56316
56317         eval "$as_ac_var=no"
56318 fi
56319
56320 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
56321       conftest$ac_exeext conftest.$ac_ext
56322 fi
56323 ac_res=`eval echo '${'$as_ac_var'}'`
56324                { echo "$as_me:$LINENO: result: $ac_res" >&5
56325 echo "${ECHO_T}$ac_res" >&6; }
56326 if test `eval echo '${'$as_ac_var'}'` = yes; then
56327   cat >>confdefs.h <<_ACEOF
56328 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
56329 _ACEOF
56330  ice_have_bind=yes
56331 fi
56332 done
56333
56334 if test "${ice_have_bind}" = yes; then
56335 { echo "$as_me:$LINENO: checking for bind declaration in sys/types.h sys/socket.h" >&5
56336 echo $ECHO_N "checking for bind declaration in sys/types.h sys/socket.h... $ECHO_C" >&6; }
56337 if test "${ice_cv_have_bind_decl+set}" = set; then
56338   echo $ECHO_N "(cached) $ECHO_C" >&6
56339 else
56340
56341 ice_cv_have_bind_decl=no
56342 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
56343 ice_re_word='(^|[^a-zA-Z0-9_])'
56344 for header in sys/types.h sys/socket.h; do
56345 # Check for ordinary declaration
56346 cat >conftest.$ac_ext <<_ACEOF
56347 /* confdefs.h.  */
56348 _ACEOF
56349 cat confdefs.h >>conftest.$ac_ext
56350 cat >>conftest.$ac_ext <<_ACEOF
56351 /* end confdefs.h.  */
56352 #include <$header>
56353
56354 _ACEOF
56355 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
56356   $EGREP "${ice_re_word}bind[   ]*\(" >/dev/null 2>&1; then
56357   ice_cv_have_bind_decl=yes
56358 fi
56359 rm -f conftest*
56360
56361 if test "$ice_cv_have_bind_decl" = yes; then
56362         break
56363 fi
56364 # Check for "fixed" declaration like "getpid _PARAMS((int))"
56365 cat >conftest.$ac_ext <<_ACEOF
56366 /* confdefs.h.  */
56367 _ACEOF
56368 cat confdefs.h >>conftest.$ac_ext
56369 cat >>conftest.$ac_ext <<_ACEOF
56370 /* end confdefs.h.  */
56371 #include <$header>
56372
56373 _ACEOF
56374 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
56375   $EGREP "${ice_re_word}bind[   ]*$ice_re_params\(\(" >/dev/null 2>&1; then
56376   ice_cv_have_bind_decl=yes
56377 fi
56378 rm -f conftest*
56379
56380 if test "$ice_cv_have_bind_decl" = yes; then
56381         break
56382 fi
56383 done
56384
56385 fi
56386
56387 { echo "$as_me:$LINENO: result: $ice_cv_have_bind_decl" >&5
56388 echo "${ECHO_T}$ice_cv_have_bind_decl" >&6; }
56389 if test "$ice_cv_have_bind_decl" = yes; then
56390
56391 cat >>confdefs.h <<_ACEOF
56392 #define HAVE_BIND_DECL 1
56393 _ACEOF
56394
56395 fi
56396 fi
56397
56398
56399 ice_have_bcopy=no
56400
56401 for ac_func in bcopy
56402 do
56403 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
56404 { echo "$as_me:$LINENO: checking for $ac_func" >&5
56405 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
56406 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
56407   echo $ECHO_N "(cached) $ECHO_C" >&6
56408 else
56409   cat >conftest.$ac_ext <<_ACEOF
56410 /* confdefs.h.  */
56411 _ACEOF
56412 cat confdefs.h >>conftest.$ac_ext
56413 cat >>conftest.$ac_ext <<_ACEOF
56414 /* end confdefs.h.  */
56415 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
56416    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
56417 #define $ac_func innocuous_$ac_func
56418
56419 /* System header to define __stub macros and hopefully few prototypes,
56420     which can conflict with char $ac_func (); below.
56421     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
56422     <limits.h> exists even on freestanding compilers.  */
56423
56424 #ifdef __STDC__
56425 # include <limits.h>
56426 #else
56427 # include <assert.h>
56428 #endif
56429
56430 #undef $ac_func
56431
56432 /* Override any GCC internal prototype to avoid an error.
56433    Use char because int might match the return type of a GCC
56434    builtin and then its argument prototype would still apply.  */
56435 #ifdef __cplusplus
56436 extern "C"
56437 #endif
56438 char $ac_func ();
56439 /* The GNU C library defines this for functions which it implements
56440     to always fail with ENOSYS.  Some functions are actually named
56441     something starting with __ and the normal name is an alias.  */
56442 #if defined __stub_$ac_func || defined __stub___$ac_func
56443 choke me
56444 #endif
56445
56446 int
56447 main ()
56448 {
56449 return $ac_func ();
56450   ;
56451   return 0;
56452 }
56453 _ACEOF
56454 rm -f conftest.$ac_objext conftest$ac_exeext
56455 if { (ac_try="$ac_link"
56456 case "(($ac_try" in
56457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56458   *) ac_try_echo=$ac_try;;
56459 esac
56460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
56461   (eval "$ac_link") 2>conftest.er1
56462   ac_status=$?
56463   grep -v '^ *+' conftest.er1 >conftest.err
56464   rm -f conftest.er1
56465   cat conftest.err >&5
56466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56467   (exit $ac_status); } && {
56468          test -z "$ac_c_werror_flag" ||
56469          test ! -s conftest.err
56470        } && test -s conftest$ac_exeext &&
56471        $as_test_x conftest$ac_exeext; then
56472   eval "$as_ac_var=yes"
56473 else
56474   echo "$as_me: failed program was:" >&5
56475 sed 's/^/| /' conftest.$ac_ext >&5
56476
56477         eval "$as_ac_var=no"
56478 fi
56479
56480 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
56481       conftest$ac_exeext conftest.$ac_ext
56482 fi
56483 ac_res=`eval echo '${'$as_ac_var'}'`
56484                { echo "$as_me:$LINENO: result: $ac_res" >&5
56485 echo "${ECHO_T}$ac_res" >&6; }
56486 if test `eval echo '${'$as_ac_var'}'` = yes; then
56487   cat >>confdefs.h <<_ACEOF
56488 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
56489 _ACEOF
56490  ice_have_bcopy=yes
56491 fi
56492 done
56493
56494 if test "${ice_have_bcopy}" = yes; then
56495 { echo "$as_me:$LINENO: checking for bcopy declaration in string.h strings.h stdlib.h" >&5
56496 echo $ECHO_N "checking for bcopy declaration in string.h strings.h stdlib.h... $ECHO_C" >&6; }
56497 if test "${ice_cv_have_bcopy_decl+set}" = set; then
56498   echo $ECHO_N "(cached) $ECHO_C" >&6
56499 else
56500
56501 ice_cv_have_bcopy_decl=no
56502 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
56503 ice_re_word='(^|[^a-zA-Z0-9_])'
56504 for header in string.h strings.h stdlib.h; do
56505 # Check for ordinary declaration
56506 cat >conftest.$ac_ext <<_ACEOF
56507 /* confdefs.h.  */
56508 _ACEOF
56509 cat confdefs.h >>conftest.$ac_ext
56510 cat >>conftest.$ac_ext <<_ACEOF
56511 /* end confdefs.h.  */
56512 #include <$header>
56513
56514 _ACEOF
56515 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
56516   $EGREP "${ice_re_word}bcopy[  ]*\(" >/dev/null 2>&1; then
56517   ice_cv_have_bcopy_decl=yes
56518 fi
56519 rm -f conftest*
56520
56521 if test "$ice_cv_have_bcopy_decl" = yes; then
56522         break
56523 fi
56524 # Check for "fixed" declaration like "getpid _PARAMS((int))"
56525 cat >conftest.$ac_ext <<_ACEOF
56526 /* confdefs.h.  */
56527 _ACEOF
56528 cat confdefs.h >>conftest.$ac_ext
56529 cat >>conftest.$ac_ext <<_ACEOF
56530 /* end confdefs.h.  */
56531 #include <$header>
56532
56533 _ACEOF
56534 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
56535   $EGREP "${ice_re_word}bcopy[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
56536   ice_cv_have_bcopy_decl=yes
56537 fi
56538 rm -f conftest*
56539
56540 if test "$ice_cv_have_bcopy_decl" = yes; then
56541         break
56542 fi
56543 done
56544
56545 fi
56546
56547 { echo "$as_me:$LINENO: result: $ice_cv_have_bcopy_decl" >&5
56548 echo "${ECHO_T}$ice_cv_have_bcopy_decl" >&6; }
56549 if test "$ice_cv_have_bcopy_decl" = yes; then
56550
56551 cat >>confdefs.h <<_ACEOF
56552 #define HAVE_BCOPY_DECL 1
56553 _ACEOF
56554
56555 fi
56556 fi
56557
56558
56559 ice_have_bzero=no
56560
56561 for ac_func in bzero
56562 do
56563 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
56564 { echo "$as_me:$LINENO: checking for $ac_func" >&5
56565 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
56566 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
56567   echo $ECHO_N "(cached) $ECHO_C" >&6
56568 else
56569   cat >conftest.$ac_ext <<_ACEOF
56570 /* confdefs.h.  */
56571 _ACEOF
56572 cat confdefs.h >>conftest.$ac_ext
56573 cat >>conftest.$ac_ext <<_ACEOF
56574 /* end confdefs.h.  */
56575 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
56576    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
56577 #define $ac_func innocuous_$ac_func
56578
56579 /* System header to define __stub macros and hopefully few prototypes,
56580     which can conflict with char $ac_func (); below.
56581     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
56582     <limits.h> exists even on freestanding compilers.  */
56583
56584 #ifdef __STDC__
56585 # include <limits.h>
56586 #else
56587 # include <assert.h>
56588 #endif
56589
56590 #undef $ac_func
56591
56592 /* Override any GCC internal prototype to avoid an error.
56593    Use char because int might match the return type of a GCC
56594    builtin and then its argument prototype would still apply.  */
56595 #ifdef __cplusplus
56596 extern "C"
56597 #endif
56598 char $ac_func ();
56599 /* The GNU C library defines this for functions which it implements
56600     to always fail with ENOSYS.  Some functions are actually named
56601     something starting with __ and the normal name is an alias.  */
56602 #if defined __stub_$ac_func || defined __stub___$ac_func
56603 choke me
56604 #endif
56605
56606 int
56607 main ()
56608 {
56609 return $ac_func ();
56610   ;
56611   return 0;
56612 }
56613 _ACEOF
56614 rm -f conftest.$ac_objext conftest$ac_exeext
56615 if { (ac_try="$ac_link"
56616 case "(($ac_try" in
56617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56618   *) ac_try_echo=$ac_try;;
56619 esac
56620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
56621   (eval "$ac_link") 2>conftest.er1
56622   ac_status=$?
56623   grep -v '^ *+' conftest.er1 >conftest.err
56624   rm -f conftest.er1
56625   cat conftest.err >&5
56626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56627   (exit $ac_status); } && {
56628          test -z "$ac_c_werror_flag" ||
56629          test ! -s conftest.err
56630        } && test -s conftest$ac_exeext &&
56631        $as_test_x conftest$ac_exeext; then
56632   eval "$as_ac_var=yes"
56633 else
56634   echo "$as_me: failed program was:" >&5
56635 sed 's/^/| /' conftest.$ac_ext >&5
56636
56637         eval "$as_ac_var=no"
56638 fi
56639
56640 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
56641       conftest$ac_exeext conftest.$ac_ext
56642 fi
56643 ac_res=`eval echo '${'$as_ac_var'}'`
56644                { echo "$as_me:$LINENO: result: $ac_res" >&5
56645 echo "${ECHO_T}$ac_res" >&6; }
56646 if test `eval echo '${'$as_ac_var'}'` = yes; then
56647   cat >>confdefs.h <<_ACEOF
56648 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
56649 _ACEOF
56650  ice_have_bzero=yes
56651 fi
56652 done
56653
56654 if test "${ice_have_bzero}" = yes; then
56655 { echo "$as_me:$LINENO: checking for bzero declaration in string.h strings.h stdlib.h" >&5
56656 echo $ECHO_N "checking for bzero declaration in string.h strings.h stdlib.h... $ECHO_C" >&6; }
56657 if test "${ice_cv_have_bzero_decl+set}" = set; then
56658   echo $ECHO_N "(cached) $ECHO_C" >&6
56659 else
56660
56661 ice_cv_have_bzero_decl=no
56662 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
56663 ice_re_word='(^|[^a-zA-Z0-9_])'
56664 for header in string.h strings.h stdlib.h; do
56665 # Check for ordinary declaration
56666 cat >conftest.$ac_ext <<_ACEOF
56667 /* confdefs.h.  */
56668 _ACEOF
56669 cat confdefs.h >>conftest.$ac_ext
56670 cat >>conftest.$ac_ext <<_ACEOF
56671 /* end confdefs.h.  */
56672 #include <$header>
56673
56674 _ACEOF
56675 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
56676   $EGREP "${ice_re_word}bzero[  ]*\(" >/dev/null 2>&1; then
56677   ice_cv_have_bzero_decl=yes
56678 fi
56679 rm -f conftest*
56680
56681 if test "$ice_cv_have_bzero_decl" = yes; then
56682         break
56683 fi
56684 # Check for "fixed" declaration like "getpid _PARAMS((int))"
56685 cat >conftest.$ac_ext <<_ACEOF
56686 /* confdefs.h.  */
56687 _ACEOF
56688 cat confdefs.h >>conftest.$ac_ext
56689 cat >>conftest.$ac_ext <<_ACEOF
56690 /* end confdefs.h.  */
56691 #include <$header>
56692
56693 _ACEOF
56694 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
56695   $EGREP "${ice_re_word}bzero[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
56696   ice_cv_have_bzero_decl=yes
56697 fi
56698 rm -f conftest*
56699
56700 if test "$ice_cv_have_bzero_decl" = yes; then
56701         break
56702 fi
56703 done
56704
56705 fi
56706
56707 { echo "$as_me:$LINENO: result: $ice_cv_have_bzero_decl" >&5
56708 echo "${ECHO_T}$ice_cv_have_bzero_decl" >&6; }
56709 if test "$ice_cv_have_bzero_decl" = yes; then
56710
56711 cat >>confdefs.h <<_ACEOF
56712 #define HAVE_BZERO_DECL 1
56713 _ACEOF
56714
56715 fi
56716 fi
56717
56718 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
56719 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
56720 if test "${ac_cv_func_closedir_void+set}" = set; then
56721   echo $ECHO_N "(cached) $ECHO_C" >&6
56722 else
56723   if test "$cross_compiling" = yes; then
56724   ac_cv_func_closedir_void=yes
56725 else
56726   cat >conftest.$ac_ext <<_ACEOF
56727 /* confdefs.h.  */
56728 _ACEOF
56729 cat confdefs.h >>conftest.$ac_ext
56730 cat >>conftest.$ac_ext <<_ACEOF
56731 /* end confdefs.h.  */
56732 $ac_includes_default
56733 #include <$ac_header_dirent>
56734 #ifndef __cplusplus
56735 int closedir ();
56736 #endif
56737
56738 int
56739 main ()
56740 {
56741 return closedir (opendir (".")) != 0;
56742   ;
56743   return 0;
56744 }
56745 _ACEOF
56746 rm -f conftest$ac_exeext
56747 if { (ac_try="$ac_link"
56748 case "(($ac_try" in
56749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56750   *) ac_try_echo=$ac_try;;
56751 esac
56752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
56753   (eval "$ac_link") 2>&5
56754   ac_status=$?
56755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56756   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
56757   { (case "(($ac_try" in
56758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56759   *) ac_try_echo=$ac_try;;
56760 esac
56761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
56762   (eval "$ac_try") 2>&5
56763   ac_status=$?
56764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56765   (exit $ac_status); }; }; then
56766   ac_cv_func_closedir_void=no
56767 else
56768   echo "$as_me: program exited with status $ac_status" >&5
56769 echo "$as_me: failed program was:" >&5
56770 sed 's/^/| /' conftest.$ac_ext >&5
56771
56772 ( exit $ac_status )
56773 ac_cv_func_closedir_void=yes
56774 fi
56775 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
56776 fi
56777
56778
56779 fi
56780 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
56781 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
56782 if test $ac_cv_func_closedir_void = yes; then
56783
56784 cat >>confdefs.h <<\_ACEOF
56785 #define CLOSEDIR_VOID 1
56786 _ACEOF
56787
56788 fi
56789
56790
56791 ice_have_closelog=no
56792
56793 for ac_func in closelog
56794 do
56795 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
56796 { echo "$as_me:$LINENO: checking for $ac_func" >&5
56797 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
56798 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
56799   echo $ECHO_N "(cached) $ECHO_C" >&6
56800 else
56801   cat >conftest.$ac_ext <<_ACEOF
56802 /* confdefs.h.  */
56803 _ACEOF
56804 cat confdefs.h >>conftest.$ac_ext
56805 cat >>conftest.$ac_ext <<_ACEOF
56806 /* end confdefs.h.  */
56807 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
56808    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
56809 #define $ac_func innocuous_$ac_func
56810
56811 /* System header to define __stub macros and hopefully few prototypes,
56812     which can conflict with char $ac_func (); below.
56813     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
56814     <limits.h> exists even on freestanding compilers.  */
56815
56816 #ifdef __STDC__
56817 # include <limits.h>
56818 #else
56819 # include <assert.h>
56820 #endif
56821
56822 #undef $ac_func
56823
56824 /* Override any GCC internal prototype to avoid an error.
56825    Use char because int might match the return type of a GCC
56826    builtin and then its argument prototype would still apply.  */
56827 #ifdef __cplusplus
56828 extern "C"
56829 #endif
56830 char $ac_func ();
56831 /* The GNU C library defines this for functions which it implements
56832     to always fail with ENOSYS.  Some functions are actually named
56833     something starting with __ and the normal name is an alias.  */
56834 #if defined __stub_$ac_func || defined __stub___$ac_func
56835 choke me
56836 #endif
56837
56838 int
56839 main ()
56840 {
56841 return $ac_func ();
56842   ;
56843   return 0;
56844 }
56845 _ACEOF
56846 rm -f conftest.$ac_objext conftest$ac_exeext
56847 if { (ac_try="$ac_link"
56848 case "(($ac_try" in
56849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56850   *) ac_try_echo=$ac_try;;
56851 esac
56852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
56853   (eval "$ac_link") 2>conftest.er1
56854   ac_status=$?
56855   grep -v '^ *+' conftest.er1 >conftest.err
56856   rm -f conftest.er1
56857   cat conftest.err >&5
56858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
56859   (exit $ac_status); } && {
56860          test -z "$ac_c_werror_flag" ||
56861          test ! -s conftest.err
56862        } && test -s conftest$ac_exeext &&
56863        $as_test_x conftest$ac_exeext; then
56864   eval "$as_ac_var=yes"
56865 else
56866   echo "$as_me: failed program was:" >&5
56867 sed 's/^/| /' conftest.$ac_ext >&5
56868
56869         eval "$as_ac_var=no"
56870 fi
56871
56872 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
56873       conftest$ac_exeext conftest.$ac_ext
56874 fi
56875 ac_res=`eval echo '${'$as_ac_var'}'`
56876                { echo "$as_me:$LINENO: result: $ac_res" >&5
56877 echo "${ECHO_T}$ac_res" >&6; }
56878 if test `eval echo '${'$as_ac_var'}'` = yes; then
56879   cat >>confdefs.h <<_ACEOF
56880 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
56881 _ACEOF
56882  ice_have_closelog=yes
56883 fi
56884 done
56885
56886 if test "${ice_have_closelog}" = yes; then
56887 { echo "$as_me:$LINENO: checking for closelog declaration in syslog.h" >&5
56888 echo $ECHO_N "checking for closelog declaration in syslog.h... $ECHO_C" >&6; }
56889 if test "${ice_cv_have_closelog_decl+set}" = set; then
56890   echo $ECHO_N "(cached) $ECHO_C" >&6
56891 else
56892
56893 ice_cv_have_closelog_decl=no
56894 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
56895 ice_re_word='(^|[^a-zA-Z0-9_])'
56896 for header in syslog.h; do
56897 # Check for ordinary declaration
56898 cat >conftest.$ac_ext <<_ACEOF
56899 /* confdefs.h.  */
56900 _ACEOF
56901 cat confdefs.h >>conftest.$ac_ext
56902 cat >>conftest.$ac_ext <<_ACEOF
56903 /* end confdefs.h.  */
56904 #include <$header>
56905
56906 _ACEOF
56907 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
56908   $EGREP "${ice_re_word}closelog[       ]*\(" >/dev/null 2>&1; then
56909   ice_cv_have_closelog_decl=yes
56910 fi
56911 rm -f conftest*
56912
56913 if test "$ice_cv_have_closelog_decl" = yes; then
56914         break
56915 fi
56916 # Check for "fixed" declaration like "getpid _PARAMS((int))"
56917 cat >conftest.$ac_ext <<_ACEOF
56918 /* confdefs.h.  */
56919 _ACEOF
56920 cat confdefs.h >>conftest.$ac_ext
56921 cat >>conftest.$ac_ext <<_ACEOF
56922 /* end confdefs.h.  */
56923 #include <$header>
56924
56925 _ACEOF
56926 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
56927   $EGREP "${ice_re_word}closelog[       ]*$ice_re_params\(\(" >/dev/null 2>&1; then
56928   ice_cv_have_closelog_decl=yes
56929 fi
56930 rm -f conftest*
56931
56932 if test "$ice_cv_have_closelog_decl" = yes; then
56933         break
56934 fi
56935 done
56936
56937 fi
56938
56939 { echo "$as_me:$LINENO: result: $ice_cv_have_closelog_decl" >&5
56940 echo "${ECHO_T}$ice_cv_have_closelog_decl" >&6; }
56941 if test "$ice_cv_have_closelog_decl" = yes; then
56942
56943 cat >>confdefs.h <<_ACEOF
56944 #define HAVE_CLOSELOG_DECL 1
56945 _ACEOF
56946
56947 fi
56948 fi
56949
56950
56951 ice_have_connect=no
56952
56953 for ac_func in connect
56954 do
56955 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
56956 { echo "$as_me:$LINENO: checking for $ac_func" >&5
56957 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
56958 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
56959   echo $ECHO_N "(cached) $ECHO_C" >&6
56960 else
56961   cat >conftest.$ac_ext <<_ACEOF
56962 /* confdefs.h.  */
56963 _ACEOF
56964 cat confdefs.h >>conftest.$ac_ext
56965 cat >>conftest.$ac_ext <<_ACEOF
56966 /* end confdefs.h.  */
56967 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
56968    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
56969 #define $ac_func innocuous_$ac_func
56970
56971 /* System header to define __stub macros and hopefully few prototypes,
56972     which can conflict with char $ac_func (); below.
56973     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
56974     <limits.h> exists even on freestanding compilers.  */
56975
56976 #ifdef __STDC__
56977 # include <limits.h>
56978 #else
56979 # include <assert.h>
56980 #endif
56981
56982 #undef $ac_func
56983
56984 /* Override any GCC internal prototype to avoid an error.
56985    Use char because int might match the return type of a GCC
56986    builtin and then its argument prototype would still apply.  */
56987 #ifdef __cplusplus
56988 extern "C"
56989 #endif
56990 char $ac_func ();
56991 /* The GNU C library defines this for functions which it implements
56992     to always fail with ENOSYS.  Some functions are actually named
56993     something starting with __ and the normal name is an alias.  */
56994 #if defined __stub_$ac_func || defined __stub___$ac_func
56995 choke me
56996 #endif
56997
56998 int
56999 main ()
57000 {
57001 return $ac_func ();
57002   ;
57003   return 0;
57004 }
57005 _ACEOF
57006 rm -f conftest.$ac_objext conftest$ac_exeext
57007 if { (ac_try="$ac_link"
57008 case "(($ac_try" in
57009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57010   *) ac_try_echo=$ac_try;;
57011 esac
57012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
57013   (eval "$ac_link") 2>conftest.er1
57014   ac_status=$?
57015   grep -v '^ *+' conftest.er1 >conftest.err
57016   rm -f conftest.er1
57017   cat conftest.err >&5
57018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57019   (exit $ac_status); } && {
57020          test -z "$ac_c_werror_flag" ||
57021          test ! -s conftest.err
57022        } && test -s conftest$ac_exeext &&
57023        $as_test_x conftest$ac_exeext; then
57024   eval "$as_ac_var=yes"
57025 else
57026   echo "$as_me: failed program was:" >&5
57027 sed 's/^/| /' conftest.$ac_ext >&5
57028
57029         eval "$as_ac_var=no"
57030 fi
57031
57032 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
57033       conftest$ac_exeext conftest.$ac_ext
57034 fi
57035 ac_res=`eval echo '${'$as_ac_var'}'`
57036                { echo "$as_me:$LINENO: result: $ac_res" >&5
57037 echo "${ECHO_T}$ac_res" >&6; }
57038 if test `eval echo '${'$as_ac_var'}'` = yes; then
57039   cat >>confdefs.h <<_ACEOF
57040 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
57041 _ACEOF
57042  ice_have_connect=yes
57043 fi
57044 done
57045
57046 if test "${ice_have_connect}" = yes; then
57047 { echo "$as_me:$LINENO: checking for connect declaration in sys/types.h sys/socket.h" >&5
57048 echo $ECHO_N "checking for connect declaration in sys/types.h sys/socket.h... $ECHO_C" >&6; }
57049 if test "${ice_cv_have_connect_decl+set}" = set; then
57050   echo $ECHO_N "(cached) $ECHO_C" >&6
57051 else
57052
57053 ice_cv_have_connect_decl=no
57054 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
57055 ice_re_word='(^|[^a-zA-Z0-9_])'
57056 for header in sys/types.h sys/socket.h; do
57057 # Check for ordinary declaration
57058 cat >conftest.$ac_ext <<_ACEOF
57059 /* confdefs.h.  */
57060 _ACEOF
57061 cat confdefs.h >>conftest.$ac_ext
57062 cat >>conftest.$ac_ext <<_ACEOF
57063 /* end confdefs.h.  */
57064 #include <$header>
57065
57066 _ACEOF
57067 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
57068   $EGREP "${ice_re_word}connect[        ]*\(" >/dev/null 2>&1; then
57069   ice_cv_have_connect_decl=yes
57070 fi
57071 rm -f conftest*
57072
57073 if test "$ice_cv_have_connect_decl" = yes; then
57074         break
57075 fi
57076 # Check for "fixed" declaration like "getpid _PARAMS((int))"
57077 cat >conftest.$ac_ext <<_ACEOF
57078 /* confdefs.h.  */
57079 _ACEOF
57080 cat confdefs.h >>conftest.$ac_ext
57081 cat >>conftest.$ac_ext <<_ACEOF
57082 /* end confdefs.h.  */
57083 #include <$header>
57084
57085 _ACEOF
57086 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
57087   $EGREP "${ice_re_word}connect[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
57088   ice_cv_have_connect_decl=yes
57089 fi
57090 rm -f conftest*
57091
57092 if test "$ice_cv_have_connect_decl" = yes; then
57093         break
57094 fi
57095 done
57096
57097 fi
57098
57099 { echo "$as_me:$LINENO: result: $ice_cv_have_connect_decl" >&5
57100 echo "${ECHO_T}$ice_cv_have_connect_decl" >&6; }
57101 if test "$ice_cv_have_connect_decl" = yes; then
57102
57103 cat >>confdefs.h <<_ACEOF
57104 #define HAVE_CONNECT_DECL 1
57105 _ACEOF
57106
57107 fi
57108 fi
57109
57110
57111 ice_have_fclose=no
57112
57113 for ac_func in fclose
57114 do
57115 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
57116 { echo "$as_me:$LINENO: checking for $ac_func" >&5
57117 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
57118 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
57119   echo $ECHO_N "(cached) $ECHO_C" >&6
57120 else
57121   cat >conftest.$ac_ext <<_ACEOF
57122 /* confdefs.h.  */
57123 _ACEOF
57124 cat confdefs.h >>conftest.$ac_ext
57125 cat >>conftest.$ac_ext <<_ACEOF
57126 /* end confdefs.h.  */
57127 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
57128    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
57129 #define $ac_func innocuous_$ac_func
57130
57131 /* System header to define __stub macros and hopefully few prototypes,
57132     which can conflict with char $ac_func (); below.
57133     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
57134     <limits.h> exists even on freestanding compilers.  */
57135
57136 #ifdef __STDC__
57137 # include <limits.h>
57138 #else
57139 # include <assert.h>
57140 #endif
57141
57142 #undef $ac_func
57143
57144 /* Override any GCC internal prototype to avoid an error.
57145    Use char because int might match the return type of a GCC
57146    builtin and then its argument prototype would still apply.  */
57147 #ifdef __cplusplus
57148 extern "C"
57149 #endif
57150 char $ac_func ();
57151 /* The GNU C library defines this for functions which it implements
57152     to always fail with ENOSYS.  Some functions are actually named
57153     something starting with __ and the normal name is an alias.  */
57154 #if defined __stub_$ac_func || defined __stub___$ac_func
57155 choke me
57156 #endif
57157
57158 int
57159 main ()
57160 {
57161 return $ac_func ();
57162   ;
57163   return 0;
57164 }
57165 _ACEOF
57166 rm -f conftest.$ac_objext conftest$ac_exeext
57167 if { (ac_try="$ac_link"
57168 case "(($ac_try" in
57169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57170   *) ac_try_echo=$ac_try;;
57171 esac
57172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
57173   (eval "$ac_link") 2>conftest.er1
57174   ac_status=$?
57175   grep -v '^ *+' conftest.er1 >conftest.err
57176   rm -f conftest.er1
57177   cat conftest.err >&5
57178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57179   (exit $ac_status); } && {
57180          test -z "$ac_c_werror_flag" ||
57181          test ! -s conftest.err
57182        } && test -s conftest$ac_exeext &&
57183        $as_test_x conftest$ac_exeext; then
57184   eval "$as_ac_var=yes"
57185 else
57186   echo "$as_me: failed program was:" >&5
57187 sed 's/^/| /' conftest.$ac_ext >&5
57188
57189         eval "$as_ac_var=no"
57190 fi
57191
57192 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
57193       conftest$ac_exeext conftest.$ac_ext
57194 fi
57195 ac_res=`eval echo '${'$as_ac_var'}'`
57196                { echo "$as_me:$LINENO: result: $ac_res" >&5
57197 echo "${ECHO_T}$ac_res" >&6; }
57198 if test `eval echo '${'$as_ac_var'}'` = yes; then
57199   cat >>confdefs.h <<_ACEOF
57200 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
57201 _ACEOF
57202  ice_have_fclose=yes
57203 fi
57204 done
57205
57206 if test "${ice_have_fclose}" = yes; then
57207 { echo "$as_me:$LINENO: checking for fclose declaration in stdio.h" >&5
57208 echo $ECHO_N "checking for fclose declaration in stdio.h... $ECHO_C" >&6; }
57209 if test "${ice_cv_have_fclose_decl+set}" = set; then
57210   echo $ECHO_N "(cached) $ECHO_C" >&6
57211 else
57212
57213 ice_cv_have_fclose_decl=no
57214 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
57215 ice_re_word='(^|[^a-zA-Z0-9_])'
57216 for header in stdio.h; do
57217 # Check for ordinary declaration
57218 cat >conftest.$ac_ext <<_ACEOF
57219 /* confdefs.h.  */
57220 _ACEOF
57221 cat confdefs.h >>conftest.$ac_ext
57222 cat >>conftest.$ac_ext <<_ACEOF
57223 /* end confdefs.h.  */
57224 #include <$header>
57225
57226 _ACEOF
57227 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
57228   $EGREP "${ice_re_word}fclose[         ]*\(" >/dev/null 2>&1; then
57229   ice_cv_have_fclose_decl=yes
57230 fi
57231 rm -f conftest*
57232
57233 if test "$ice_cv_have_fclose_decl" = yes; then
57234         break
57235 fi
57236 # Check for "fixed" declaration like "getpid _PARAMS((int))"
57237 cat >conftest.$ac_ext <<_ACEOF
57238 /* confdefs.h.  */
57239 _ACEOF
57240 cat confdefs.h >>conftest.$ac_ext
57241 cat >>conftest.$ac_ext <<_ACEOF
57242 /* end confdefs.h.  */
57243 #include <$header>
57244
57245 _ACEOF
57246 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
57247   $EGREP "${ice_re_word}fclose[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
57248   ice_cv_have_fclose_decl=yes
57249 fi
57250 rm -f conftest*
57251
57252 if test "$ice_cv_have_fclose_decl" = yes; then
57253         break
57254 fi
57255 done
57256
57257 fi
57258
57259 { echo "$as_me:$LINENO: result: $ice_cv_have_fclose_decl" >&5
57260 echo "${ECHO_T}$ice_cv_have_fclose_decl" >&6; }
57261 if test "$ice_cv_have_fclose_decl" = yes; then
57262
57263 cat >>confdefs.h <<_ACEOF
57264 #define HAVE_FCLOSE_DECL 1
57265 _ACEOF
57266
57267 fi
57268 fi
57269
57270
57271 ice_have_fflush=no
57272
57273 for ac_func in fflush
57274 do
57275 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
57276 { echo "$as_me:$LINENO: checking for $ac_func" >&5
57277 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
57278 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
57279   echo $ECHO_N "(cached) $ECHO_C" >&6
57280 else
57281   cat >conftest.$ac_ext <<_ACEOF
57282 /* confdefs.h.  */
57283 _ACEOF
57284 cat confdefs.h >>conftest.$ac_ext
57285 cat >>conftest.$ac_ext <<_ACEOF
57286 /* end confdefs.h.  */
57287 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
57288    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
57289 #define $ac_func innocuous_$ac_func
57290
57291 /* System header to define __stub macros and hopefully few prototypes,
57292     which can conflict with char $ac_func (); below.
57293     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
57294     <limits.h> exists even on freestanding compilers.  */
57295
57296 #ifdef __STDC__
57297 # include <limits.h>
57298 #else
57299 # include <assert.h>
57300 #endif
57301
57302 #undef $ac_func
57303
57304 /* Override any GCC internal prototype to avoid an error.
57305    Use char because int might match the return type of a GCC
57306    builtin and then its argument prototype would still apply.  */
57307 #ifdef __cplusplus
57308 extern "C"
57309 #endif
57310 char $ac_func ();
57311 /* The GNU C library defines this for functions which it implements
57312     to always fail with ENOSYS.  Some functions are actually named
57313     something starting with __ and the normal name is an alias.  */
57314 #if defined __stub_$ac_func || defined __stub___$ac_func
57315 choke me
57316 #endif
57317
57318 int
57319 main ()
57320 {
57321 return $ac_func ();
57322   ;
57323   return 0;
57324 }
57325 _ACEOF
57326 rm -f conftest.$ac_objext conftest$ac_exeext
57327 if { (ac_try="$ac_link"
57328 case "(($ac_try" in
57329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57330   *) ac_try_echo=$ac_try;;
57331 esac
57332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
57333   (eval "$ac_link") 2>conftest.er1
57334   ac_status=$?
57335   grep -v '^ *+' conftest.er1 >conftest.err
57336   rm -f conftest.er1
57337   cat conftest.err >&5
57338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57339   (exit $ac_status); } && {
57340          test -z "$ac_c_werror_flag" ||
57341          test ! -s conftest.err
57342        } && test -s conftest$ac_exeext &&
57343        $as_test_x conftest$ac_exeext; then
57344   eval "$as_ac_var=yes"
57345 else
57346   echo "$as_me: failed program was:" >&5
57347 sed 's/^/| /' conftest.$ac_ext >&5
57348
57349         eval "$as_ac_var=no"
57350 fi
57351
57352 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
57353       conftest$ac_exeext conftest.$ac_ext
57354 fi
57355 ac_res=`eval echo '${'$as_ac_var'}'`
57356                { echo "$as_me:$LINENO: result: $ac_res" >&5
57357 echo "${ECHO_T}$ac_res" >&6; }
57358 if test `eval echo '${'$as_ac_var'}'` = yes; then
57359   cat >>confdefs.h <<_ACEOF
57360 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
57361 _ACEOF
57362  ice_have_fflush=yes
57363 fi
57364 done
57365
57366 if test "${ice_have_fflush}" = yes; then
57367 { echo "$as_me:$LINENO: checking for fflush declaration in stdio.h" >&5
57368 echo $ECHO_N "checking for fflush declaration in stdio.h... $ECHO_C" >&6; }
57369 if test "${ice_cv_have_fflush_decl+set}" = set; then
57370   echo $ECHO_N "(cached) $ECHO_C" >&6
57371 else
57372
57373 ice_cv_have_fflush_decl=no
57374 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
57375 ice_re_word='(^|[^a-zA-Z0-9_])'
57376 for header in stdio.h; do
57377 # Check for ordinary declaration
57378 cat >conftest.$ac_ext <<_ACEOF
57379 /* confdefs.h.  */
57380 _ACEOF
57381 cat confdefs.h >>conftest.$ac_ext
57382 cat >>conftest.$ac_ext <<_ACEOF
57383 /* end confdefs.h.  */
57384 #include <$header>
57385
57386 _ACEOF
57387 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
57388   $EGREP "${ice_re_word}fflush[         ]*\(" >/dev/null 2>&1; then
57389   ice_cv_have_fflush_decl=yes
57390 fi
57391 rm -f conftest*
57392
57393 if test "$ice_cv_have_fflush_decl" = yes; then
57394         break
57395 fi
57396 # Check for "fixed" declaration like "getpid _PARAMS((int))"
57397 cat >conftest.$ac_ext <<_ACEOF
57398 /* confdefs.h.  */
57399 _ACEOF
57400 cat confdefs.h >>conftest.$ac_ext
57401 cat >>conftest.$ac_ext <<_ACEOF
57402 /* end confdefs.h.  */
57403 #include <$header>
57404
57405 _ACEOF
57406 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
57407   $EGREP "${ice_re_word}fflush[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
57408   ice_cv_have_fflush_decl=yes
57409 fi
57410 rm -f conftest*
57411
57412 if test "$ice_cv_have_fflush_decl" = yes; then
57413         break
57414 fi
57415 done
57416
57417 fi
57418
57419 { echo "$as_me:$LINENO: result: $ice_cv_have_fflush_decl" >&5
57420 echo "${ECHO_T}$ice_cv_have_fflush_decl" >&6; }
57421 if test "$ice_cv_have_fflush_decl" = yes; then
57422
57423 cat >>confdefs.h <<_ACEOF
57424 #define HAVE_FFLUSH_DECL 1
57425 _ACEOF
57426
57427 fi
57428 fi
57429
57430
57431 ice_have_fprintf=no
57432
57433 for ac_func in fprintf
57434 do
57435 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
57436 { echo "$as_me:$LINENO: checking for $ac_func" >&5
57437 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
57438 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
57439   echo $ECHO_N "(cached) $ECHO_C" >&6
57440 else
57441   cat >conftest.$ac_ext <<_ACEOF
57442 /* confdefs.h.  */
57443 _ACEOF
57444 cat confdefs.h >>conftest.$ac_ext
57445 cat >>conftest.$ac_ext <<_ACEOF
57446 /* end confdefs.h.  */
57447 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
57448    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
57449 #define $ac_func innocuous_$ac_func
57450
57451 /* System header to define __stub macros and hopefully few prototypes,
57452     which can conflict with char $ac_func (); below.
57453     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
57454     <limits.h> exists even on freestanding compilers.  */
57455
57456 #ifdef __STDC__
57457 # include <limits.h>
57458 #else
57459 # include <assert.h>
57460 #endif
57461
57462 #undef $ac_func
57463
57464 /* Override any GCC internal prototype to avoid an error.
57465    Use char because int might match the return type of a GCC
57466    builtin and then its argument prototype would still apply.  */
57467 #ifdef __cplusplus
57468 extern "C"
57469 #endif
57470 char $ac_func ();
57471 /* The GNU C library defines this for functions which it implements
57472     to always fail with ENOSYS.  Some functions are actually named
57473     something starting with __ and the normal name is an alias.  */
57474 #if defined __stub_$ac_func || defined __stub___$ac_func
57475 choke me
57476 #endif
57477
57478 int
57479 main ()
57480 {
57481 return $ac_func ();
57482   ;
57483   return 0;
57484 }
57485 _ACEOF
57486 rm -f conftest.$ac_objext conftest$ac_exeext
57487 if { (ac_try="$ac_link"
57488 case "(($ac_try" in
57489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57490   *) ac_try_echo=$ac_try;;
57491 esac
57492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
57493   (eval "$ac_link") 2>conftest.er1
57494   ac_status=$?
57495   grep -v '^ *+' conftest.er1 >conftest.err
57496   rm -f conftest.er1
57497   cat conftest.err >&5
57498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57499   (exit $ac_status); } && {
57500          test -z "$ac_c_werror_flag" ||
57501          test ! -s conftest.err
57502        } && test -s conftest$ac_exeext &&
57503        $as_test_x conftest$ac_exeext; then
57504   eval "$as_ac_var=yes"
57505 else
57506   echo "$as_me: failed program was:" >&5
57507 sed 's/^/| /' conftest.$ac_ext >&5
57508
57509         eval "$as_ac_var=no"
57510 fi
57511
57512 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
57513       conftest$ac_exeext conftest.$ac_ext
57514 fi
57515 ac_res=`eval echo '${'$as_ac_var'}'`
57516                { echo "$as_me:$LINENO: result: $ac_res" >&5
57517 echo "${ECHO_T}$ac_res" >&6; }
57518 if test `eval echo '${'$as_ac_var'}'` = yes; then
57519   cat >>confdefs.h <<_ACEOF
57520 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
57521 _ACEOF
57522  ice_have_fprintf=yes
57523 fi
57524 done
57525
57526 if test "${ice_have_fprintf}" = yes; then
57527 { echo "$as_me:$LINENO: checking for fprintf declaration in stdio.h" >&5
57528 echo $ECHO_N "checking for fprintf declaration in stdio.h... $ECHO_C" >&6; }
57529 if test "${ice_cv_have_fprintf_decl+set}" = set; then
57530   echo $ECHO_N "(cached) $ECHO_C" >&6
57531 else
57532
57533 ice_cv_have_fprintf_decl=no
57534 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
57535 ice_re_word='(^|[^a-zA-Z0-9_])'
57536 for header in stdio.h; do
57537 # Check for ordinary declaration
57538 cat >conftest.$ac_ext <<_ACEOF
57539 /* confdefs.h.  */
57540 _ACEOF
57541 cat confdefs.h >>conftest.$ac_ext
57542 cat >>conftest.$ac_ext <<_ACEOF
57543 /* end confdefs.h.  */
57544 #include <$header>
57545
57546 _ACEOF
57547 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
57548   $EGREP "${ice_re_word}fprintf[        ]*\(" >/dev/null 2>&1; then
57549   ice_cv_have_fprintf_decl=yes
57550 fi
57551 rm -f conftest*
57552
57553 if test "$ice_cv_have_fprintf_decl" = yes; then
57554         break
57555 fi
57556 # Check for "fixed" declaration like "getpid _PARAMS((int))"
57557 cat >conftest.$ac_ext <<_ACEOF
57558 /* confdefs.h.  */
57559 _ACEOF
57560 cat confdefs.h >>conftest.$ac_ext
57561 cat >>conftest.$ac_ext <<_ACEOF
57562 /* end confdefs.h.  */
57563 #include <$header>
57564
57565 _ACEOF
57566 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
57567   $EGREP "${ice_re_word}fprintf[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
57568   ice_cv_have_fprintf_decl=yes
57569 fi
57570 rm -f conftest*
57571
57572 if test "$ice_cv_have_fprintf_decl" = yes; then
57573         break
57574 fi
57575 done
57576
57577 fi
57578
57579 { echo "$as_me:$LINENO: result: $ice_cv_have_fprintf_decl" >&5
57580 echo "${ECHO_T}$ice_cv_have_fprintf_decl" >&6; }
57581 if test "$ice_cv_have_fprintf_decl" = yes; then
57582
57583 cat >>confdefs.h <<_ACEOF
57584 #define HAVE_FPRINTF_DECL 1
57585 _ACEOF
57586
57587 fi
57588 fi
57589
57590
57591 ice_have_fputc=no
57592
57593 for ac_func in fputc
57594 do
57595 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
57596 { echo "$as_me:$LINENO: checking for $ac_func" >&5
57597 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
57598 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
57599   echo $ECHO_N "(cached) $ECHO_C" >&6
57600 else
57601   cat >conftest.$ac_ext <<_ACEOF
57602 /* confdefs.h.  */
57603 _ACEOF
57604 cat confdefs.h >>conftest.$ac_ext
57605 cat >>conftest.$ac_ext <<_ACEOF
57606 /* end confdefs.h.  */
57607 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
57608    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
57609 #define $ac_func innocuous_$ac_func
57610
57611 /* System header to define __stub macros and hopefully few prototypes,
57612     which can conflict with char $ac_func (); below.
57613     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
57614     <limits.h> exists even on freestanding compilers.  */
57615
57616 #ifdef __STDC__
57617 # include <limits.h>
57618 #else
57619 # include <assert.h>
57620 #endif
57621
57622 #undef $ac_func
57623
57624 /* Override any GCC internal prototype to avoid an error.
57625    Use char because int might match the return type of a GCC
57626    builtin and then its argument prototype would still apply.  */
57627 #ifdef __cplusplus
57628 extern "C"
57629 #endif
57630 char $ac_func ();
57631 /* The GNU C library defines this for functions which it implements
57632     to always fail with ENOSYS.  Some functions are actually named
57633     something starting with __ and the normal name is an alias.  */
57634 #if defined __stub_$ac_func || defined __stub___$ac_func
57635 choke me
57636 #endif
57637
57638 int
57639 main ()
57640 {
57641 return $ac_func ();
57642   ;
57643   return 0;
57644 }
57645 _ACEOF
57646 rm -f conftest.$ac_objext conftest$ac_exeext
57647 if { (ac_try="$ac_link"
57648 case "(($ac_try" in
57649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57650   *) ac_try_echo=$ac_try;;
57651 esac
57652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
57653   (eval "$ac_link") 2>conftest.er1
57654   ac_status=$?
57655   grep -v '^ *+' conftest.er1 >conftest.err
57656   rm -f conftest.er1
57657   cat conftest.err >&5
57658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57659   (exit $ac_status); } && {
57660          test -z "$ac_c_werror_flag" ||
57661          test ! -s conftest.err
57662        } && test -s conftest$ac_exeext &&
57663        $as_test_x conftest$ac_exeext; then
57664   eval "$as_ac_var=yes"
57665 else
57666   echo "$as_me: failed program was:" >&5
57667 sed 's/^/| /' conftest.$ac_ext >&5
57668
57669         eval "$as_ac_var=no"
57670 fi
57671
57672 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
57673       conftest$ac_exeext conftest.$ac_ext
57674 fi
57675 ac_res=`eval echo '${'$as_ac_var'}'`
57676                { echo "$as_me:$LINENO: result: $ac_res" >&5
57677 echo "${ECHO_T}$ac_res" >&6; }
57678 if test `eval echo '${'$as_ac_var'}'` = yes; then
57679   cat >>confdefs.h <<_ACEOF
57680 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
57681 _ACEOF
57682  ice_have_fputc=yes
57683 fi
57684 done
57685
57686 if test "${ice_have_fputc}" = yes; then
57687 { echo "$as_me:$LINENO: checking for fputc declaration in stdio.h" >&5
57688 echo $ECHO_N "checking for fputc declaration in stdio.h... $ECHO_C" >&6; }
57689 if test "${ice_cv_have_fputc_decl+set}" = set; then
57690   echo $ECHO_N "(cached) $ECHO_C" >&6
57691 else
57692
57693 ice_cv_have_fputc_decl=no
57694 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
57695 ice_re_word='(^|[^a-zA-Z0-9_])'
57696 for header in stdio.h; do
57697 # Check for ordinary declaration
57698 cat >conftest.$ac_ext <<_ACEOF
57699 /* confdefs.h.  */
57700 _ACEOF
57701 cat confdefs.h >>conftest.$ac_ext
57702 cat >>conftest.$ac_ext <<_ACEOF
57703 /* end confdefs.h.  */
57704 #include <$header>
57705
57706 _ACEOF
57707 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
57708   $EGREP "${ice_re_word}fputc[  ]*\(" >/dev/null 2>&1; then
57709   ice_cv_have_fputc_decl=yes
57710 fi
57711 rm -f conftest*
57712
57713 if test "$ice_cv_have_fputc_decl" = yes; then
57714         break
57715 fi
57716 # Check for "fixed" declaration like "getpid _PARAMS((int))"
57717 cat >conftest.$ac_ext <<_ACEOF
57718 /* confdefs.h.  */
57719 _ACEOF
57720 cat confdefs.h >>conftest.$ac_ext
57721 cat >>conftest.$ac_ext <<_ACEOF
57722 /* end confdefs.h.  */
57723 #include <$header>
57724
57725 _ACEOF
57726 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
57727   $EGREP "${ice_re_word}fputc[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
57728   ice_cv_have_fputc_decl=yes
57729 fi
57730 rm -f conftest*
57731
57732 if test "$ice_cv_have_fputc_decl" = yes; then
57733         break
57734 fi
57735 done
57736
57737 fi
57738
57739 { echo "$as_me:$LINENO: result: $ice_cv_have_fputc_decl" >&5
57740 echo "${ECHO_T}$ice_cv_have_fputc_decl" >&6; }
57741 if test "$ice_cv_have_fputc_decl" = yes; then
57742
57743 cat >>confdefs.h <<_ACEOF
57744 #define HAVE_FPUTC_DECL 1
57745 _ACEOF
57746
57747 fi
57748 fi
57749
57750
57751 ice_have_fputs=no
57752
57753 for ac_func in fputs
57754 do
57755 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
57756 { echo "$as_me:$LINENO: checking for $ac_func" >&5
57757 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
57758 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
57759   echo $ECHO_N "(cached) $ECHO_C" >&6
57760 else
57761   cat >conftest.$ac_ext <<_ACEOF
57762 /* confdefs.h.  */
57763 _ACEOF
57764 cat confdefs.h >>conftest.$ac_ext
57765 cat >>conftest.$ac_ext <<_ACEOF
57766 /* end confdefs.h.  */
57767 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
57768    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
57769 #define $ac_func innocuous_$ac_func
57770
57771 /* System header to define __stub macros and hopefully few prototypes,
57772     which can conflict with char $ac_func (); below.
57773     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
57774     <limits.h> exists even on freestanding compilers.  */
57775
57776 #ifdef __STDC__
57777 # include <limits.h>
57778 #else
57779 # include <assert.h>
57780 #endif
57781
57782 #undef $ac_func
57783
57784 /* Override any GCC internal prototype to avoid an error.
57785    Use char because int might match the return type of a GCC
57786    builtin and then its argument prototype would still apply.  */
57787 #ifdef __cplusplus
57788 extern "C"
57789 #endif
57790 char $ac_func ();
57791 /* The GNU C library defines this for functions which it implements
57792     to always fail with ENOSYS.  Some functions are actually named
57793     something starting with __ and the normal name is an alias.  */
57794 #if defined __stub_$ac_func || defined __stub___$ac_func
57795 choke me
57796 #endif
57797
57798 int
57799 main ()
57800 {
57801 return $ac_func ();
57802   ;
57803   return 0;
57804 }
57805 _ACEOF
57806 rm -f conftest.$ac_objext conftest$ac_exeext
57807 if { (ac_try="$ac_link"
57808 case "(($ac_try" in
57809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57810   *) ac_try_echo=$ac_try;;
57811 esac
57812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
57813   (eval "$ac_link") 2>conftest.er1
57814   ac_status=$?
57815   grep -v '^ *+' conftest.er1 >conftest.err
57816   rm -f conftest.er1
57817   cat conftest.err >&5
57818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57819   (exit $ac_status); } && {
57820          test -z "$ac_c_werror_flag" ||
57821          test ! -s conftest.err
57822        } && test -s conftest$ac_exeext &&
57823        $as_test_x conftest$ac_exeext; then
57824   eval "$as_ac_var=yes"
57825 else
57826   echo "$as_me: failed program was:" >&5
57827 sed 's/^/| /' conftest.$ac_ext >&5
57828
57829         eval "$as_ac_var=no"
57830 fi
57831
57832 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
57833       conftest$ac_exeext conftest.$ac_ext
57834 fi
57835 ac_res=`eval echo '${'$as_ac_var'}'`
57836                { echo "$as_me:$LINENO: result: $ac_res" >&5
57837 echo "${ECHO_T}$ac_res" >&6; }
57838 if test `eval echo '${'$as_ac_var'}'` = yes; then
57839   cat >>confdefs.h <<_ACEOF
57840 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
57841 _ACEOF
57842  ice_have_fputs=yes
57843 fi
57844 done
57845
57846 if test "${ice_have_fputs}" = yes; then
57847 { echo "$as_me:$LINENO: checking for fputs declaration in stdio.h" >&5
57848 echo $ECHO_N "checking for fputs declaration in stdio.h... $ECHO_C" >&6; }
57849 if test "${ice_cv_have_fputs_decl+set}" = set; then
57850   echo $ECHO_N "(cached) $ECHO_C" >&6
57851 else
57852
57853 ice_cv_have_fputs_decl=no
57854 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
57855 ice_re_word='(^|[^a-zA-Z0-9_])'
57856 for header in stdio.h; do
57857 # Check for ordinary declaration
57858 cat >conftest.$ac_ext <<_ACEOF
57859 /* confdefs.h.  */
57860 _ACEOF
57861 cat confdefs.h >>conftest.$ac_ext
57862 cat >>conftest.$ac_ext <<_ACEOF
57863 /* end confdefs.h.  */
57864 #include <$header>
57865
57866 _ACEOF
57867 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
57868   $EGREP "${ice_re_word}fputs[  ]*\(" >/dev/null 2>&1; then
57869   ice_cv_have_fputs_decl=yes
57870 fi
57871 rm -f conftest*
57872
57873 if test "$ice_cv_have_fputs_decl" = yes; then
57874         break
57875 fi
57876 # Check for "fixed" declaration like "getpid _PARAMS((int))"
57877 cat >conftest.$ac_ext <<_ACEOF
57878 /* confdefs.h.  */
57879 _ACEOF
57880 cat confdefs.h >>conftest.$ac_ext
57881 cat >>conftest.$ac_ext <<_ACEOF
57882 /* end confdefs.h.  */
57883 #include <$header>
57884
57885 _ACEOF
57886 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
57887   $EGREP "${ice_re_word}fputs[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
57888   ice_cv_have_fputs_decl=yes
57889 fi
57890 rm -f conftest*
57891
57892 if test "$ice_cv_have_fputs_decl" = yes; then
57893         break
57894 fi
57895 done
57896
57897 fi
57898
57899 { echo "$as_me:$LINENO: result: $ice_cv_have_fputs_decl" >&5
57900 echo "${ECHO_T}$ice_cv_have_fputs_decl" >&6; }
57901 if test "$ice_cv_have_fputs_decl" = yes; then
57902
57903 cat >>confdefs.h <<_ACEOF
57904 #define HAVE_FPUTS_DECL 1
57905 _ACEOF
57906
57907 fi
57908 fi
57909
57910
57911 ice_have_fread=no
57912
57913 for ac_func in fread
57914 do
57915 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
57916 { echo "$as_me:$LINENO: checking for $ac_func" >&5
57917 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
57918 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
57919   echo $ECHO_N "(cached) $ECHO_C" >&6
57920 else
57921   cat >conftest.$ac_ext <<_ACEOF
57922 /* confdefs.h.  */
57923 _ACEOF
57924 cat confdefs.h >>conftest.$ac_ext
57925 cat >>conftest.$ac_ext <<_ACEOF
57926 /* end confdefs.h.  */
57927 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
57928    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
57929 #define $ac_func innocuous_$ac_func
57930
57931 /* System header to define __stub macros and hopefully few prototypes,
57932     which can conflict with char $ac_func (); below.
57933     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
57934     <limits.h> exists even on freestanding compilers.  */
57935
57936 #ifdef __STDC__
57937 # include <limits.h>
57938 #else
57939 # include <assert.h>
57940 #endif
57941
57942 #undef $ac_func
57943
57944 /* Override any GCC internal prototype to avoid an error.
57945    Use char because int might match the return type of a GCC
57946    builtin and then its argument prototype would still apply.  */
57947 #ifdef __cplusplus
57948 extern "C"
57949 #endif
57950 char $ac_func ();
57951 /* The GNU C library defines this for functions which it implements
57952     to always fail with ENOSYS.  Some functions are actually named
57953     something starting with __ and the normal name is an alias.  */
57954 #if defined __stub_$ac_func || defined __stub___$ac_func
57955 choke me
57956 #endif
57957
57958 int
57959 main ()
57960 {
57961 return $ac_func ();
57962   ;
57963   return 0;
57964 }
57965 _ACEOF
57966 rm -f conftest.$ac_objext conftest$ac_exeext
57967 if { (ac_try="$ac_link"
57968 case "(($ac_try" in
57969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57970   *) ac_try_echo=$ac_try;;
57971 esac
57972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
57973   (eval "$ac_link") 2>conftest.er1
57974   ac_status=$?
57975   grep -v '^ *+' conftest.er1 >conftest.err
57976   rm -f conftest.er1
57977   cat conftest.err >&5
57978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
57979   (exit $ac_status); } && {
57980          test -z "$ac_c_werror_flag" ||
57981          test ! -s conftest.err
57982        } && test -s conftest$ac_exeext &&
57983        $as_test_x conftest$ac_exeext; then
57984   eval "$as_ac_var=yes"
57985 else
57986   echo "$as_me: failed program was:" >&5
57987 sed 's/^/| /' conftest.$ac_ext >&5
57988
57989         eval "$as_ac_var=no"
57990 fi
57991
57992 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
57993       conftest$ac_exeext conftest.$ac_ext
57994 fi
57995 ac_res=`eval echo '${'$as_ac_var'}'`
57996                { echo "$as_me:$LINENO: result: $ac_res" >&5
57997 echo "${ECHO_T}$ac_res" >&6; }
57998 if test `eval echo '${'$as_ac_var'}'` = yes; then
57999   cat >>confdefs.h <<_ACEOF
58000 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
58001 _ACEOF
58002  ice_have_fread=yes
58003 fi
58004 done
58005
58006 if test "${ice_have_fread}" = yes; then
58007 { echo "$as_me:$LINENO: checking for fread declaration in stdio.h stdlib.h" >&5
58008 echo $ECHO_N "checking for fread declaration in stdio.h stdlib.h... $ECHO_C" >&6; }
58009 if test "${ice_cv_have_fread_decl+set}" = set; then
58010   echo $ECHO_N "(cached) $ECHO_C" >&6
58011 else
58012
58013 ice_cv_have_fread_decl=no
58014 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
58015 ice_re_word='(^|[^a-zA-Z0-9_])'
58016 for header in stdio.h stdlib.h; do
58017 # Check for ordinary declaration
58018 cat >conftest.$ac_ext <<_ACEOF
58019 /* confdefs.h.  */
58020 _ACEOF
58021 cat confdefs.h >>conftest.$ac_ext
58022 cat >>conftest.$ac_ext <<_ACEOF
58023 /* end confdefs.h.  */
58024 #include <$header>
58025
58026 _ACEOF
58027 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
58028   $EGREP "${ice_re_word}fread[  ]*\(" >/dev/null 2>&1; then
58029   ice_cv_have_fread_decl=yes
58030 fi
58031 rm -f conftest*
58032
58033 if test "$ice_cv_have_fread_decl" = yes; then
58034         break
58035 fi
58036 # Check for "fixed" declaration like "getpid _PARAMS((int))"
58037 cat >conftest.$ac_ext <<_ACEOF
58038 /* confdefs.h.  */
58039 _ACEOF
58040 cat confdefs.h >>conftest.$ac_ext
58041 cat >>conftest.$ac_ext <<_ACEOF
58042 /* end confdefs.h.  */
58043 #include <$header>
58044
58045 _ACEOF
58046 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
58047   $EGREP "${ice_re_word}fread[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
58048   ice_cv_have_fread_decl=yes
58049 fi
58050 rm -f conftest*
58051
58052 if test "$ice_cv_have_fread_decl" = yes; then
58053         break
58054 fi
58055 done
58056
58057 fi
58058
58059 { echo "$as_me:$LINENO: result: $ice_cv_have_fread_decl" >&5
58060 echo "${ECHO_T}$ice_cv_have_fread_decl" >&6; }
58061 if test "$ice_cv_have_fread_decl" = yes; then
58062
58063 cat >>confdefs.h <<_ACEOF
58064 #define HAVE_FREAD_DECL 1
58065 _ACEOF
58066
58067 fi
58068 fi
58069
58070
58071 ice_have_fseek=no
58072
58073 for ac_func in fseek
58074 do
58075 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
58076 { echo "$as_me:$LINENO: checking for $ac_func" >&5
58077 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
58078 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
58079   echo $ECHO_N "(cached) $ECHO_C" >&6
58080 else
58081   cat >conftest.$ac_ext <<_ACEOF
58082 /* confdefs.h.  */
58083 _ACEOF
58084 cat confdefs.h >>conftest.$ac_ext
58085 cat >>conftest.$ac_ext <<_ACEOF
58086 /* end confdefs.h.  */
58087 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
58088    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
58089 #define $ac_func innocuous_$ac_func
58090
58091 /* System header to define __stub macros and hopefully few prototypes,
58092     which can conflict with char $ac_func (); below.
58093     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
58094     <limits.h> exists even on freestanding compilers.  */
58095
58096 #ifdef __STDC__
58097 # include <limits.h>
58098 #else
58099 # include <assert.h>
58100 #endif
58101
58102 #undef $ac_func
58103
58104 /* Override any GCC internal prototype to avoid an error.
58105    Use char because int might match the return type of a GCC
58106    builtin and then its argument prototype would still apply.  */
58107 #ifdef __cplusplus
58108 extern "C"
58109 #endif
58110 char $ac_func ();
58111 /* The GNU C library defines this for functions which it implements
58112     to always fail with ENOSYS.  Some functions are actually named
58113     something starting with __ and the normal name is an alias.  */
58114 #if defined __stub_$ac_func || defined __stub___$ac_func
58115 choke me
58116 #endif
58117
58118 int
58119 main ()
58120 {
58121 return $ac_func ();
58122   ;
58123   return 0;
58124 }
58125 _ACEOF
58126 rm -f conftest.$ac_objext conftest$ac_exeext
58127 if { (ac_try="$ac_link"
58128 case "(($ac_try" in
58129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58130   *) ac_try_echo=$ac_try;;
58131 esac
58132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58133   (eval "$ac_link") 2>conftest.er1
58134   ac_status=$?
58135   grep -v '^ *+' conftest.er1 >conftest.err
58136   rm -f conftest.er1
58137   cat conftest.err >&5
58138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58139   (exit $ac_status); } && {
58140          test -z "$ac_c_werror_flag" ||
58141          test ! -s conftest.err
58142        } && test -s conftest$ac_exeext &&
58143        $as_test_x conftest$ac_exeext; then
58144   eval "$as_ac_var=yes"
58145 else
58146   echo "$as_me: failed program was:" >&5
58147 sed 's/^/| /' conftest.$ac_ext >&5
58148
58149         eval "$as_ac_var=no"
58150 fi
58151
58152 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
58153       conftest$ac_exeext conftest.$ac_ext
58154 fi
58155 ac_res=`eval echo '${'$as_ac_var'}'`
58156                { echo "$as_me:$LINENO: result: $ac_res" >&5
58157 echo "${ECHO_T}$ac_res" >&6; }
58158 if test `eval echo '${'$as_ac_var'}'` = yes; then
58159   cat >>confdefs.h <<_ACEOF
58160 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
58161 _ACEOF
58162  ice_have_fseek=yes
58163 fi
58164 done
58165
58166 if test "${ice_have_fseek}" = yes; then
58167 { echo "$as_me:$LINENO: checking for fseek declaration in stdio.h" >&5
58168 echo $ECHO_N "checking for fseek declaration in stdio.h... $ECHO_C" >&6; }
58169 if test "${ice_cv_have_fseek_decl+set}" = set; then
58170   echo $ECHO_N "(cached) $ECHO_C" >&6
58171 else
58172
58173 ice_cv_have_fseek_decl=no
58174 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
58175 ice_re_word='(^|[^a-zA-Z0-9_])'
58176 for header in stdio.h; do
58177 # Check for ordinary declaration
58178 cat >conftest.$ac_ext <<_ACEOF
58179 /* confdefs.h.  */
58180 _ACEOF
58181 cat confdefs.h >>conftest.$ac_ext
58182 cat >>conftest.$ac_ext <<_ACEOF
58183 /* end confdefs.h.  */
58184 #include <$header>
58185
58186 _ACEOF
58187 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
58188   $EGREP "${ice_re_word}fseek[  ]*\(" >/dev/null 2>&1; then
58189   ice_cv_have_fseek_decl=yes
58190 fi
58191 rm -f conftest*
58192
58193 if test "$ice_cv_have_fseek_decl" = yes; then
58194         break
58195 fi
58196 # Check for "fixed" declaration like "getpid _PARAMS((int))"
58197 cat >conftest.$ac_ext <<_ACEOF
58198 /* confdefs.h.  */
58199 _ACEOF
58200 cat confdefs.h >>conftest.$ac_ext
58201 cat >>conftest.$ac_ext <<_ACEOF
58202 /* end confdefs.h.  */
58203 #include <$header>
58204
58205 _ACEOF
58206 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
58207   $EGREP "${ice_re_word}fseek[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
58208   ice_cv_have_fseek_decl=yes
58209 fi
58210 rm -f conftest*
58211
58212 if test "$ice_cv_have_fseek_decl" = yes; then
58213         break
58214 fi
58215 done
58216
58217 fi
58218
58219 { echo "$as_me:$LINENO: result: $ice_cv_have_fseek_decl" >&5
58220 echo "${ECHO_T}$ice_cv_have_fseek_decl" >&6; }
58221 if test "$ice_cv_have_fseek_decl" = yes; then
58222
58223 cat >>confdefs.h <<_ACEOF
58224 #define HAVE_FSEEK_DECL 1
58225 _ACEOF
58226
58227 fi
58228 fi
58229
58230
58231 ice_have_fwrite=no
58232
58233 for ac_func in fwrite
58234 do
58235 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
58236 { echo "$as_me:$LINENO: checking for $ac_func" >&5
58237 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
58238 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
58239   echo $ECHO_N "(cached) $ECHO_C" >&6
58240 else
58241   cat >conftest.$ac_ext <<_ACEOF
58242 /* confdefs.h.  */
58243 _ACEOF
58244 cat confdefs.h >>conftest.$ac_ext
58245 cat >>conftest.$ac_ext <<_ACEOF
58246 /* end confdefs.h.  */
58247 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
58248    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
58249 #define $ac_func innocuous_$ac_func
58250
58251 /* System header to define __stub macros and hopefully few prototypes,
58252     which can conflict with char $ac_func (); below.
58253     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
58254     <limits.h> exists even on freestanding compilers.  */
58255
58256 #ifdef __STDC__
58257 # include <limits.h>
58258 #else
58259 # include <assert.h>
58260 #endif
58261
58262 #undef $ac_func
58263
58264 /* Override any GCC internal prototype to avoid an error.
58265    Use char because int might match the return type of a GCC
58266    builtin and then its argument prototype would still apply.  */
58267 #ifdef __cplusplus
58268 extern "C"
58269 #endif
58270 char $ac_func ();
58271 /* The GNU C library defines this for functions which it implements
58272     to always fail with ENOSYS.  Some functions are actually named
58273     something starting with __ and the normal name is an alias.  */
58274 #if defined __stub_$ac_func || defined __stub___$ac_func
58275 choke me
58276 #endif
58277
58278 int
58279 main ()
58280 {
58281 return $ac_func ();
58282   ;
58283   return 0;
58284 }
58285 _ACEOF
58286 rm -f conftest.$ac_objext conftest$ac_exeext
58287 if { (ac_try="$ac_link"
58288 case "(($ac_try" in
58289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58290   *) ac_try_echo=$ac_try;;
58291 esac
58292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58293   (eval "$ac_link") 2>conftest.er1
58294   ac_status=$?
58295   grep -v '^ *+' conftest.er1 >conftest.err
58296   rm -f conftest.er1
58297   cat conftest.err >&5
58298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58299   (exit $ac_status); } && {
58300          test -z "$ac_c_werror_flag" ||
58301          test ! -s conftest.err
58302        } && test -s conftest$ac_exeext &&
58303        $as_test_x conftest$ac_exeext; then
58304   eval "$as_ac_var=yes"
58305 else
58306   echo "$as_me: failed program was:" >&5
58307 sed 's/^/| /' conftest.$ac_ext >&5
58308
58309         eval "$as_ac_var=no"
58310 fi
58311
58312 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
58313       conftest$ac_exeext conftest.$ac_ext
58314 fi
58315 ac_res=`eval echo '${'$as_ac_var'}'`
58316                { echo "$as_me:$LINENO: result: $ac_res" >&5
58317 echo "${ECHO_T}$ac_res" >&6; }
58318 if test `eval echo '${'$as_ac_var'}'` = yes; then
58319   cat >>confdefs.h <<_ACEOF
58320 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
58321 _ACEOF
58322  ice_have_fwrite=yes
58323 fi
58324 done
58325
58326 if test "${ice_have_fwrite}" = yes; then
58327 { echo "$as_me:$LINENO: checking for fwrite declaration in stdio.h stdlib.h" >&5
58328 echo $ECHO_N "checking for fwrite declaration in stdio.h stdlib.h... $ECHO_C" >&6; }
58329 if test "${ice_cv_have_fwrite_decl+set}" = set; then
58330   echo $ECHO_N "(cached) $ECHO_C" >&6
58331 else
58332
58333 ice_cv_have_fwrite_decl=no
58334 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
58335 ice_re_word='(^|[^a-zA-Z0-9_])'
58336 for header in stdio.h stdlib.h; do
58337 # Check for ordinary declaration
58338 cat >conftest.$ac_ext <<_ACEOF
58339 /* confdefs.h.  */
58340 _ACEOF
58341 cat confdefs.h >>conftest.$ac_ext
58342 cat >>conftest.$ac_ext <<_ACEOF
58343 /* end confdefs.h.  */
58344 #include <$header>
58345
58346 _ACEOF
58347 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
58348   $EGREP "${ice_re_word}fwrite[         ]*\(" >/dev/null 2>&1; then
58349   ice_cv_have_fwrite_decl=yes
58350 fi
58351 rm -f conftest*
58352
58353 if test "$ice_cv_have_fwrite_decl" = yes; then
58354         break
58355 fi
58356 # Check for "fixed" declaration like "getpid _PARAMS((int))"
58357 cat >conftest.$ac_ext <<_ACEOF
58358 /* confdefs.h.  */
58359 _ACEOF
58360 cat confdefs.h >>conftest.$ac_ext
58361 cat >>conftest.$ac_ext <<_ACEOF
58362 /* end confdefs.h.  */
58363 #include <$header>
58364
58365 _ACEOF
58366 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
58367   $EGREP "${ice_re_word}fwrite[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
58368   ice_cv_have_fwrite_decl=yes
58369 fi
58370 rm -f conftest*
58371
58372 if test "$ice_cv_have_fwrite_decl" = yes; then
58373         break
58374 fi
58375 done
58376
58377 fi
58378
58379 { echo "$as_me:$LINENO: result: $ice_cv_have_fwrite_decl" >&5
58380 echo "${ECHO_T}$ice_cv_have_fwrite_decl" >&6; }
58381 if test "$ice_cv_have_fwrite_decl" = yes; then
58382
58383 cat >>confdefs.h <<_ACEOF
58384 #define HAVE_FWRITE_DECL 1
58385 _ACEOF
58386
58387 fi
58388 fi
58389
58390
58391 ice_have_gethostname=no
58392
58393 for ac_func in gethostname
58394 do
58395 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
58396 { echo "$as_me:$LINENO: checking for $ac_func" >&5
58397 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
58398 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
58399   echo $ECHO_N "(cached) $ECHO_C" >&6
58400 else
58401   cat >conftest.$ac_ext <<_ACEOF
58402 /* confdefs.h.  */
58403 _ACEOF
58404 cat confdefs.h >>conftest.$ac_ext
58405 cat >>conftest.$ac_ext <<_ACEOF
58406 /* end confdefs.h.  */
58407 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
58408    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
58409 #define $ac_func innocuous_$ac_func
58410
58411 /* System header to define __stub macros and hopefully few prototypes,
58412     which can conflict with char $ac_func (); below.
58413     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
58414     <limits.h> exists even on freestanding compilers.  */
58415
58416 #ifdef __STDC__
58417 # include <limits.h>
58418 #else
58419 # include <assert.h>
58420 #endif
58421
58422 #undef $ac_func
58423
58424 /* Override any GCC internal prototype to avoid an error.
58425    Use char because int might match the return type of a GCC
58426    builtin and then its argument prototype would still apply.  */
58427 #ifdef __cplusplus
58428 extern "C"
58429 #endif
58430 char $ac_func ();
58431 /* The GNU C library defines this for functions which it implements
58432     to always fail with ENOSYS.  Some functions are actually named
58433     something starting with __ and the normal name is an alias.  */
58434 #if defined __stub_$ac_func || defined __stub___$ac_func
58435 choke me
58436 #endif
58437
58438 int
58439 main ()
58440 {
58441 return $ac_func ();
58442   ;
58443   return 0;
58444 }
58445 _ACEOF
58446 rm -f conftest.$ac_objext conftest$ac_exeext
58447 if { (ac_try="$ac_link"
58448 case "(($ac_try" in
58449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58450   *) ac_try_echo=$ac_try;;
58451 esac
58452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58453   (eval "$ac_link") 2>conftest.er1
58454   ac_status=$?
58455   grep -v '^ *+' conftest.er1 >conftest.err
58456   rm -f conftest.er1
58457   cat conftest.err >&5
58458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58459   (exit $ac_status); } && {
58460          test -z "$ac_c_werror_flag" ||
58461          test ! -s conftest.err
58462        } && test -s conftest$ac_exeext &&
58463        $as_test_x conftest$ac_exeext; then
58464   eval "$as_ac_var=yes"
58465 else
58466   echo "$as_me: failed program was:" >&5
58467 sed 's/^/| /' conftest.$ac_ext >&5
58468
58469         eval "$as_ac_var=no"
58470 fi
58471
58472 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
58473       conftest$ac_exeext conftest.$ac_ext
58474 fi
58475 ac_res=`eval echo '${'$as_ac_var'}'`
58476                { echo "$as_me:$LINENO: result: $ac_res" >&5
58477 echo "${ECHO_T}$ac_res" >&6; }
58478 if test `eval echo '${'$as_ac_var'}'` = yes; then
58479   cat >>confdefs.h <<_ACEOF
58480 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
58481 _ACEOF
58482  ice_have_gethostname=yes
58483 fi
58484 done
58485
58486 if test "${ice_have_gethostname}" = yes; then
58487 { echo "$as_me:$LINENO: checking for gethostname declaration in unistd.h" >&5
58488 echo $ECHO_N "checking for gethostname declaration in unistd.h... $ECHO_C" >&6; }
58489 if test "${ice_cv_have_gethostname_decl+set}" = set; then
58490   echo $ECHO_N "(cached) $ECHO_C" >&6
58491 else
58492
58493 ice_cv_have_gethostname_decl=no
58494 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
58495 ice_re_word='(^|[^a-zA-Z0-9_])'
58496 for header in unistd.h; do
58497 # Check for ordinary declaration
58498 cat >conftest.$ac_ext <<_ACEOF
58499 /* confdefs.h.  */
58500 _ACEOF
58501 cat confdefs.h >>conftest.$ac_ext
58502 cat >>conftest.$ac_ext <<_ACEOF
58503 /* end confdefs.h.  */
58504 #include <$header>
58505
58506 _ACEOF
58507 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
58508   $EGREP "${ice_re_word}gethostname[    ]*\(" >/dev/null 2>&1; then
58509   ice_cv_have_gethostname_decl=yes
58510 fi
58511 rm -f conftest*
58512
58513 if test "$ice_cv_have_gethostname_decl" = yes; then
58514         break
58515 fi
58516 # Check for "fixed" declaration like "getpid _PARAMS((int))"
58517 cat >conftest.$ac_ext <<_ACEOF
58518 /* confdefs.h.  */
58519 _ACEOF
58520 cat confdefs.h >>conftest.$ac_ext
58521 cat >>conftest.$ac_ext <<_ACEOF
58522 /* end confdefs.h.  */
58523 #include <$header>
58524
58525 _ACEOF
58526 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
58527   $EGREP "${ice_re_word}gethostname[    ]*$ice_re_params\(\(" >/dev/null 2>&1; then
58528   ice_cv_have_gethostname_decl=yes
58529 fi
58530 rm -f conftest*
58531
58532 if test "$ice_cv_have_gethostname_decl" = yes; then
58533         break
58534 fi
58535 done
58536
58537 fi
58538
58539 { echo "$as_me:$LINENO: result: $ice_cv_have_gethostname_decl" >&5
58540 echo "${ECHO_T}$ice_cv_have_gethostname_decl" >&6; }
58541 if test "$ice_cv_have_gethostname_decl" = yes; then
58542
58543 cat >>confdefs.h <<_ACEOF
58544 #define HAVE_GETHOSTNAME_DECL 1
58545 _ACEOF
58546
58547 fi
58548 fi
58549
58550
58551 ice_have_getopt=no
58552
58553 for ac_func in getopt
58554 do
58555 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
58556 { echo "$as_me:$LINENO: checking for $ac_func" >&5
58557 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
58558 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
58559   echo $ECHO_N "(cached) $ECHO_C" >&6
58560 else
58561   cat >conftest.$ac_ext <<_ACEOF
58562 /* confdefs.h.  */
58563 _ACEOF
58564 cat confdefs.h >>conftest.$ac_ext
58565 cat >>conftest.$ac_ext <<_ACEOF
58566 /* end confdefs.h.  */
58567 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
58568    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
58569 #define $ac_func innocuous_$ac_func
58570
58571 /* System header to define __stub macros and hopefully few prototypes,
58572     which can conflict with char $ac_func (); below.
58573     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
58574     <limits.h> exists even on freestanding compilers.  */
58575
58576 #ifdef __STDC__
58577 # include <limits.h>
58578 #else
58579 # include <assert.h>
58580 #endif
58581
58582 #undef $ac_func
58583
58584 /* Override any GCC internal prototype to avoid an error.
58585    Use char because int might match the return type of a GCC
58586    builtin and then its argument prototype would still apply.  */
58587 #ifdef __cplusplus
58588 extern "C"
58589 #endif
58590 char $ac_func ();
58591 /* The GNU C library defines this for functions which it implements
58592     to always fail with ENOSYS.  Some functions are actually named
58593     something starting with __ and the normal name is an alias.  */
58594 #if defined __stub_$ac_func || defined __stub___$ac_func
58595 choke me
58596 #endif
58597
58598 int
58599 main ()
58600 {
58601 return $ac_func ();
58602   ;
58603   return 0;
58604 }
58605 _ACEOF
58606 rm -f conftest.$ac_objext conftest$ac_exeext
58607 if { (ac_try="$ac_link"
58608 case "(($ac_try" in
58609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58610   *) ac_try_echo=$ac_try;;
58611 esac
58612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58613   (eval "$ac_link") 2>conftest.er1
58614   ac_status=$?
58615   grep -v '^ *+' conftest.er1 >conftest.err
58616   rm -f conftest.er1
58617   cat conftest.err >&5
58618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58619   (exit $ac_status); } && {
58620          test -z "$ac_c_werror_flag" ||
58621          test ! -s conftest.err
58622        } && test -s conftest$ac_exeext &&
58623        $as_test_x conftest$ac_exeext; then
58624   eval "$as_ac_var=yes"
58625 else
58626   echo "$as_me: failed program was:" >&5
58627 sed 's/^/| /' conftest.$ac_ext >&5
58628
58629         eval "$as_ac_var=no"
58630 fi
58631
58632 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
58633       conftest$ac_exeext conftest.$ac_ext
58634 fi
58635 ac_res=`eval echo '${'$as_ac_var'}'`
58636                { echo "$as_me:$LINENO: result: $ac_res" >&5
58637 echo "${ECHO_T}$ac_res" >&6; }
58638 if test `eval echo '${'$as_ac_var'}'` = yes; then
58639   cat >>confdefs.h <<_ACEOF
58640 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
58641 _ACEOF
58642  ice_have_getopt=yes
58643 fi
58644 done
58645
58646 if test "${ice_have_getopt}" = yes; then
58647 { echo "$as_me:$LINENO: checking for getopt declaration in stdlib.h unistd.h libc.h" >&5
58648 echo $ECHO_N "checking for getopt declaration in stdlib.h unistd.h libc.h... $ECHO_C" >&6; }
58649 if test "${ice_cv_have_getopt_decl+set}" = set; then
58650   echo $ECHO_N "(cached) $ECHO_C" >&6
58651 else
58652
58653 ice_cv_have_getopt_decl=no
58654 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
58655 ice_re_word='(^|[^a-zA-Z0-9_])'
58656 for header in stdlib.h unistd.h libc.h; do
58657 # Check for ordinary declaration
58658 cat >conftest.$ac_ext <<_ACEOF
58659 /* confdefs.h.  */
58660 _ACEOF
58661 cat confdefs.h >>conftest.$ac_ext
58662 cat >>conftest.$ac_ext <<_ACEOF
58663 /* end confdefs.h.  */
58664 #include <$header>
58665
58666 _ACEOF
58667 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
58668   $EGREP "${ice_re_word}getopt[         ]*\(" >/dev/null 2>&1; then
58669   ice_cv_have_getopt_decl=yes
58670 fi
58671 rm -f conftest*
58672
58673 if test "$ice_cv_have_getopt_decl" = yes; then
58674         break
58675 fi
58676 # Check for "fixed" declaration like "getpid _PARAMS((int))"
58677 cat >conftest.$ac_ext <<_ACEOF
58678 /* confdefs.h.  */
58679 _ACEOF
58680 cat confdefs.h >>conftest.$ac_ext
58681 cat >>conftest.$ac_ext <<_ACEOF
58682 /* end confdefs.h.  */
58683 #include <$header>
58684
58685 _ACEOF
58686 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
58687   $EGREP "${ice_re_word}getopt[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
58688   ice_cv_have_getopt_decl=yes
58689 fi
58690 rm -f conftest*
58691
58692 if test "$ice_cv_have_getopt_decl" = yes; then
58693         break
58694 fi
58695 done
58696
58697 fi
58698
58699 { echo "$as_me:$LINENO: result: $ice_cv_have_getopt_decl" >&5
58700 echo "${ECHO_T}$ice_cv_have_getopt_decl" >&6; }
58701 if test "$ice_cv_have_getopt_decl" = yes; then
58702
58703 cat >>confdefs.h <<_ACEOF
58704 #define HAVE_GETOPT_DECL 1
58705 _ACEOF
58706
58707 fi
58708 fi
58709
58710
58711 ice_have_getpeername=no
58712
58713 for ac_func in getpeername
58714 do
58715 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
58716 { echo "$as_me:$LINENO: checking for $ac_func" >&5
58717 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
58718 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
58719   echo $ECHO_N "(cached) $ECHO_C" >&6
58720 else
58721   cat >conftest.$ac_ext <<_ACEOF
58722 /* confdefs.h.  */
58723 _ACEOF
58724 cat confdefs.h >>conftest.$ac_ext
58725 cat >>conftest.$ac_ext <<_ACEOF
58726 /* end confdefs.h.  */
58727 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
58728    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
58729 #define $ac_func innocuous_$ac_func
58730
58731 /* System header to define __stub macros and hopefully few prototypes,
58732     which can conflict with char $ac_func (); below.
58733     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
58734     <limits.h> exists even on freestanding compilers.  */
58735
58736 #ifdef __STDC__
58737 # include <limits.h>
58738 #else
58739 # include <assert.h>
58740 #endif
58741
58742 #undef $ac_func
58743
58744 /* Override any GCC internal prototype to avoid an error.
58745    Use char because int might match the return type of a GCC
58746    builtin and then its argument prototype would still apply.  */
58747 #ifdef __cplusplus
58748 extern "C"
58749 #endif
58750 char $ac_func ();
58751 /* The GNU C library defines this for functions which it implements
58752     to always fail with ENOSYS.  Some functions are actually named
58753     something starting with __ and the normal name is an alias.  */
58754 #if defined __stub_$ac_func || defined __stub___$ac_func
58755 choke me
58756 #endif
58757
58758 int
58759 main ()
58760 {
58761 return $ac_func ();
58762   ;
58763   return 0;
58764 }
58765 _ACEOF
58766 rm -f conftest.$ac_objext conftest$ac_exeext
58767 if { (ac_try="$ac_link"
58768 case "(($ac_try" in
58769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58770   *) ac_try_echo=$ac_try;;
58771 esac
58772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58773   (eval "$ac_link") 2>conftest.er1
58774   ac_status=$?
58775   grep -v '^ *+' conftest.er1 >conftest.err
58776   rm -f conftest.er1
58777   cat conftest.err >&5
58778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58779   (exit $ac_status); } && {
58780          test -z "$ac_c_werror_flag" ||
58781          test ! -s conftest.err
58782        } && test -s conftest$ac_exeext &&
58783        $as_test_x conftest$ac_exeext; then
58784   eval "$as_ac_var=yes"
58785 else
58786   echo "$as_me: failed program was:" >&5
58787 sed 's/^/| /' conftest.$ac_ext >&5
58788
58789         eval "$as_ac_var=no"
58790 fi
58791
58792 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
58793       conftest$ac_exeext conftest.$ac_ext
58794 fi
58795 ac_res=`eval echo '${'$as_ac_var'}'`
58796                { echo "$as_me:$LINENO: result: $ac_res" >&5
58797 echo "${ECHO_T}$ac_res" >&6; }
58798 if test `eval echo '${'$as_ac_var'}'` = yes; then
58799   cat >>confdefs.h <<_ACEOF
58800 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
58801 _ACEOF
58802  ice_have_getpeername=yes
58803 fi
58804 done
58805
58806 if test "${ice_have_getpeername}" = yes; then
58807 { echo "$as_me:$LINENO: checking for getpeername declaration in sys/types.h sys/socket.h" >&5
58808 echo $ECHO_N "checking for getpeername declaration in sys/types.h sys/socket.h... $ECHO_C" >&6; }
58809 if test "${ice_cv_have_getpeername_decl+set}" = set; then
58810   echo $ECHO_N "(cached) $ECHO_C" >&6
58811 else
58812
58813 ice_cv_have_getpeername_decl=no
58814 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
58815 ice_re_word='(^|[^a-zA-Z0-9_])'
58816 for header in sys/types.h sys/socket.h; do
58817 # Check for ordinary declaration
58818 cat >conftest.$ac_ext <<_ACEOF
58819 /* confdefs.h.  */
58820 _ACEOF
58821 cat confdefs.h >>conftest.$ac_ext
58822 cat >>conftest.$ac_ext <<_ACEOF
58823 /* end confdefs.h.  */
58824 #include <$header>
58825
58826 _ACEOF
58827 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
58828   $EGREP "${ice_re_word}getpeername[    ]*\(" >/dev/null 2>&1; then
58829   ice_cv_have_getpeername_decl=yes
58830 fi
58831 rm -f conftest*
58832
58833 if test "$ice_cv_have_getpeername_decl" = yes; then
58834         break
58835 fi
58836 # Check for "fixed" declaration like "getpid _PARAMS((int))"
58837 cat >conftest.$ac_ext <<_ACEOF
58838 /* confdefs.h.  */
58839 _ACEOF
58840 cat confdefs.h >>conftest.$ac_ext
58841 cat >>conftest.$ac_ext <<_ACEOF
58842 /* end confdefs.h.  */
58843 #include <$header>
58844
58845 _ACEOF
58846 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
58847   $EGREP "${ice_re_word}getpeername[    ]*$ice_re_params\(\(" >/dev/null 2>&1; then
58848   ice_cv_have_getpeername_decl=yes
58849 fi
58850 rm -f conftest*
58851
58852 if test "$ice_cv_have_getpeername_decl" = yes; then
58853         break
58854 fi
58855 done
58856
58857 fi
58858
58859 { echo "$as_me:$LINENO: result: $ice_cv_have_getpeername_decl" >&5
58860 echo "${ECHO_T}$ice_cv_have_getpeername_decl" >&6; }
58861 if test "$ice_cv_have_getpeername_decl" = yes; then
58862
58863 cat >>confdefs.h <<_ACEOF
58864 #define HAVE_GETPEERNAME_DECL 1
58865 _ACEOF
58866
58867 fi
58868 fi
58869
58870 { echo "$as_me:$LINENO: checking for getpgrp" >&5
58871 echo $ECHO_N "checking for getpgrp... $ECHO_C" >&6; }
58872 if test "${ac_cv_func_getpgrp+set}" = set; then
58873   echo $ECHO_N "(cached) $ECHO_C" >&6
58874 else
58875   cat >conftest.$ac_ext <<_ACEOF
58876 /* confdefs.h.  */
58877 _ACEOF
58878 cat confdefs.h >>conftest.$ac_ext
58879 cat >>conftest.$ac_ext <<_ACEOF
58880 /* end confdefs.h.  */
58881 /* Define getpgrp to an innocuous variant, in case <limits.h> declares getpgrp.
58882    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
58883 #define getpgrp innocuous_getpgrp
58884
58885 /* System header to define __stub macros and hopefully few prototypes,
58886     which can conflict with char getpgrp (); below.
58887     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
58888     <limits.h> exists even on freestanding compilers.  */
58889
58890 #ifdef __STDC__
58891 # include <limits.h>
58892 #else
58893 # include <assert.h>
58894 #endif
58895
58896 #undef getpgrp
58897
58898 /* Override any GCC internal prototype to avoid an error.
58899    Use char because int might match the return type of a GCC
58900    builtin and then its argument prototype would still apply.  */
58901 #ifdef __cplusplus
58902 extern "C"
58903 #endif
58904 char getpgrp ();
58905 /* The GNU C library defines this for functions which it implements
58906     to always fail with ENOSYS.  Some functions are actually named
58907     something starting with __ and the normal name is an alias.  */
58908 #if defined __stub_getpgrp || defined __stub___getpgrp
58909 choke me
58910 #endif
58911
58912 int
58913 main ()
58914 {
58915 return getpgrp ();
58916   ;
58917   return 0;
58918 }
58919 _ACEOF
58920 rm -f conftest.$ac_objext conftest$ac_exeext
58921 if { (ac_try="$ac_link"
58922 case "(($ac_try" in
58923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58924   *) ac_try_echo=$ac_try;;
58925 esac
58926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58927   (eval "$ac_link") 2>conftest.er1
58928   ac_status=$?
58929   grep -v '^ *+' conftest.er1 >conftest.err
58930   rm -f conftest.er1
58931   cat conftest.err >&5
58932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58933   (exit $ac_status); } && {
58934          test -z "$ac_c_werror_flag" ||
58935          test ! -s conftest.err
58936        } && test -s conftest$ac_exeext &&
58937        $as_test_x conftest$ac_exeext; then
58938   ac_cv_func_getpgrp=yes
58939 else
58940   echo "$as_me: failed program was:" >&5
58941 sed 's/^/| /' conftest.$ac_ext >&5
58942
58943         ac_cv_func_getpgrp=no
58944 fi
58945
58946 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
58947       conftest$ac_exeext conftest.$ac_ext
58948 fi
58949 { echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp" >&5
58950 echo "${ECHO_T}$ac_cv_func_getpgrp" >&6; }
58951
58952 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
58953 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6; }
58954 if test "${ac_cv_func_getpgrp_void+set}" = set; then
58955   echo $ECHO_N "(cached) $ECHO_C" >&6
58956 else
58957   # Use it with a single arg.
58958 cat >conftest.$ac_ext <<_ACEOF
58959 /* confdefs.h.  */
58960 _ACEOF
58961 cat confdefs.h >>conftest.$ac_ext
58962 cat >>conftest.$ac_ext <<_ACEOF
58963 /* end confdefs.h.  */
58964 $ac_includes_default
58965 int
58966 main ()
58967 {
58968 getpgrp (0);
58969   ;
58970   return 0;
58971 }
58972 _ACEOF
58973 rm -f conftest.$ac_objext
58974 if { (ac_try="$ac_compile"
58975 case "(($ac_try" in
58976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58977   *) ac_try_echo=$ac_try;;
58978 esac
58979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
58980   (eval "$ac_compile") 2>conftest.er1
58981   ac_status=$?
58982   grep -v '^ *+' conftest.er1 >conftest.err
58983   rm -f conftest.er1
58984   cat conftest.err >&5
58985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
58986   (exit $ac_status); } && {
58987          test -z "$ac_c_werror_flag" ||
58988          test ! -s conftest.err
58989        } && test -s conftest.$ac_objext; then
58990   ac_cv_func_getpgrp_void=no
58991 else
58992   echo "$as_me: failed program was:" >&5
58993 sed 's/^/| /' conftest.$ac_ext >&5
58994
58995         ac_cv_func_getpgrp_void=yes
58996 fi
58997
58998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
58999
59000 fi
59001 { echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
59002 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
59003 if test $ac_cv_func_getpgrp_void = yes; then
59004
59005 cat >>confdefs.h <<\_ACEOF
59006 #define GETPGRP_VOID 1
59007 _ACEOF
59008
59009 fi
59010
59011
59012 ice_have_getsockname=no
59013
59014 for ac_func in getsockname
59015 do
59016 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
59017 { echo "$as_me:$LINENO: checking for $ac_func" >&5
59018 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
59019 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
59020   echo $ECHO_N "(cached) $ECHO_C" >&6
59021 else
59022   cat >conftest.$ac_ext <<_ACEOF
59023 /* confdefs.h.  */
59024 _ACEOF
59025 cat confdefs.h >>conftest.$ac_ext
59026 cat >>conftest.$ac_ext <<_ACEOF
59027 /* end confdefs.h.  */
59028 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
59029    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
59030 #define $ac_func innocuous_$ac_func
59031
59032 /* System header to define __stub macros and hopefully few prototypes,
59033     which can conflict with char $ac_func (); below.
59034     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
59035     <limits.h> exists even on freestanding compilers.  */
59036
59037 #ifdef __STDC__
59038 # include <limits.h>
59039 #else
59040 # include <assert.h>
59041 #endif
59042
59043 #undef $ac_func
59044
59045 /* Override any GCC internal prototype to avoid an error.
59046    Use char because int might match the return type of a GCC
59047    builtin and then its argument prototype would still apply.  */
59048 #ifdef __cplusplus
59049 extern "C"
59050 #endif
59051 char $ac_func ();
59052 /* The GNU C library defines this for functions which it implements
59053     to always fail with ENOSYS.  Some functions are actually named
59054     something starting with __ and the normal name is an alias.  */
59055 #if defined __stub_$ac_func || defined __stub___$ac_func
59056 choke me
59057 #endif
59058
59059 int
59060 main ()
59061 {
59062 return $ac_func ();
59063   ;
59064   return 0;
59065 }
59066 _ACEOF
59067 rm -f conftest.$ac_objext conftest$ac_exeext
59068 if { (ac_try="$ac_link"
59069 case "(($ac_try" in
59070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59071   *) ac_try_echo=$ac_try;;
59072 esac
59073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
59074   (eval "$ac_link") 2>conftest.er1
59075   ac_status=$?
59076   grep -v '^ *+' conftest.er1 >conftest.err
59077   rm -f conftest.er1
59078   cat conftest.err >&5
59079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59080   (exit $ac_status); } && {
59081          test -z "$ac_c_werror_flag" ||
59082          test ! -s conftest.err
59083        } && test -s conftest$ac_exeext &&
59084        $as_test_x conftest$ac_exeext; then
59085   eval "$as_ac_var=yes"
59086 else
59087   echo "$as_me: failed program was:" >&5
59088 sed 's/^/| /' conftest.$ac_ext >&5
59089
59090         eval "$as_ac_var=no"
59091 fi
59092
59093 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
59094       conftest$ac_exeext conftest.$ac_ext
59095 fi
59096 ac_res=`eval echo '${'$as_ac_var'}'`
59097                { echo "$as_me:$LINENO: result: $ac_res" >&5
59098 echo "${ECHO_T}$ac_res" >&6; }
59099 if test `eval echo '${'$as_ac_var'}'` = yes; then
59100   cat >>confdefs.h <<_ACEOF
59101 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
59102 _ACEOF
59103  ice_have_getsockname=yes
59104 fi
59105 done
59106
59107 if test "${ice_have_getsockname}" = yes; then
59108 { echo "$as_me:$LINENO: checking for getsockname declaration in sys/types.h sys/socket.h" >&5
59109 echo $ECHO_N "checking for getsockname declaration in sys/types.h sys/socket.h... $ECHO_C" >&6; }
59110 if test "${ice_cv_have_getsockname_decl+set}" = set; then
59111   echo $ECHO_N "(cached) $ECHO_C" >&6
59112 else
59113
59114 ice_cv_have_getsockname_decl=no
59115 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
59116 ice_re_word='(^|[^a-zA-Z0-9_])'
59117 for header in sys/types.h sys/socket.h; do
59118 # Check for ordinary declaration
59119 cat >conftest.$ac_ext <<_ACEOF
59120 /* confdefs.h.  */
59121 _ACEOF
59122 cat confdefs.h >>conftest.$ac_ext
59123 cat >>conftest.$ac_ext <<_ACEOF
59124 /* end confdefs.h.  */
59125 #include <$header>
59126
59127 _ACEOF
59128 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
59129   $EGREP "${ice_re_word}getsockname[    ]*\(" >/dev/null 2>&1; then
59130   ice_cv_have_getsockname_decl=yes
59131 fi
59132 rm -f conftest*
59133
59134 if test "$ice_cv_have_getsockname_decl" = yes; then
59135         break
59136 fi
59137 # Check for "fixed" declaration like "getpid _PARAMS((int))"
59138 cat >conftest.$ac_ext <<_ACEOF
59139 /* confdefs.h.  */
59140 _ACEOF
59141 cat confdefs.h >>conftest.$ac_ext
59142 cat >>conftest.$ac_ext <<_ACEOF
59143 /* end confdefs.h.  */
59144 #include <$header>
59145
59146 _ACEOF
59147 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
59148   $EGREP "${ice_re_word}getsockname[    ]*$ice_re_params\(\(" >/dev/null 2>&1; then
59149   ice_cv_have_getsockname_decl=yes
59150 fi
59151 rm -f conftest*
59152
59153 if test "$ice_cv_have_getsockname_decl" = yes; then
59154         break
59155 fi
59156 done
59157
59158 fi
59159
59160 { echo "$as_me:$LINENO: result: $ice_cv_have_getsockname_decl" >&5
59161 echo "${ECHO_T}$ice_cv_have_getsockname_decl" >&6; }
59162 if test "$ice_cv_have_getsockname_decl" = yes; then
59163
59164 cat >>confdefs.h <<_ACEOF
59165 #define HAVE_GETSOCKNAME_DECL 1
59166 _ACEOF
59167
59168 fi
59169 fi
59170
59171
59172 ice_have_getsockopt=no
59173
59174 for ac_func in getsockopt
59175 do
59176 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
59177 { echo "$as_me:$LINENO: checking for $ac_func" >&5
59178 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
59179 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
59180   echo $ECHO_N "(cached) $ECHO_C" >&6
59181 else
59182   cat >conftest.$ac_ext <<_ACEOF
59183 /* confdefs.h.  */
59184 _ACEOF
59185 cat confdefs.h >>conftest.$ac_ext
59186 cat >>conftest.$ac_ext <<_ACEOF
59187 /* end confdefs.h.  */
59188 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
59189    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
59190 #define $ac_func innocuous_$ac_func
59191
59192 /* System header to define __stub macros and hopefully few prototypes,
59193     which can conflict with char $ac_func (); below.
59194     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
59195     <limits.h> exists even on freestanding compilers.  */
59196
59197 #ifdef __STDC__
59198 # include <limits.h>
59199 #else
59200 # include <assert.h>
59201 #endif
59202
59203 #undef $ac_func
59204
59205 /* Override any GCC internal prototype to avoid an error.
59206    Use char because int might match the return type of a GCC
59207    builtin and then its argument prototype would still apply.  */
59208 #ifdef __cplusplus
59209 extern "C"
59210 #endif
59211 char $ac_func ();
59212 /* The GNU C library defines this for functions which it implements
59213     to always fail with ENOSYS.  Some functions are actually named
59214     something starting with __ and the normal name is an alias.  */
59215 #if defined __stub_$ac_func || defined __stub___$ac_func
59216 choke me
59217 #endif
59218
59219 int
59220 main ()
59221 {
59222 return $ac_func ();
59223   ;
59224   return 0;
59225 }
59226 _ACEOF
59227 rm -f conftest.$ac_objext conftest$ac_exeext
59228 if { (ac_try="$ac_link"
59229 case "(($ac_try" in
59230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59231   *) ac_try_echo=$ac_try;;
59232 esac
59233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
59234   (eval "$ac_link") 2>conftest.er1
59235   ac_status=$?
59236   grep -v '^ *+' conftest.er1 >conftest.err
59237   rm -f conftest.er1
59238   cat conftest.err >&5
59239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59240   (exit $ac_status); } && {
59241          test -z "$ac_c_werror_flag" ||
59242          test ! -s conftest.err
59243        } && test -s conftest$ac_exeext &&
59244        $as_test_x conftest$ac_exeext; then
59245   eval "$as_ac_var=yes"
59246 else
59247   echo "$as_me: failed program was:" >&5
59248 sed 's/^/| /' conftest.$ac_ext >&5
59249
59250         eval "$as_ac_var=no"
59251 fi
59252
59253 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
59254       conftest$ac_exeext conftest.$ac_ext
59255 fi
59256 ac_res=`eval echo '${'$as_ac_var'}'`
59257                { echo "$as_me:$LINENO: result: $ac_res" >&5
59258 echo "${ECHO_T}$ac_res" >&6; }
59259 if test `eval echo '${'$as_ac_var'}'` = yes; then
59260   cat >>confdefs.h <<_ACEOF
59261 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
59262 _ACEOF
59263  ice_have_getsockopt=yes
59264 fi
59265 done
59266
59267 if test "${ice_have_getsockopt}" = yes; then
59268 { echo "$as_me:$LINENO: checking for getsockopt declaration in sys/types.h sys/socket.h" >&5
59269 echo $ECHO_N "checking for getsockopt declaration in sys/types.h sys/socket.h... $ECHO_C" >&6; }
59270 if test "${ice_cv_have_getsockopt_decl+set}" = set; then
59271   echo $ECHO_N "(cached) $ECHO_C" >&6
59272 else
59273
59274 ice_cv_have_getsockopt_decl=no
59275 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
59276 ice_re_word='(^|[^a-zA-Z0-9_])'
59277 for header in sys/types.h sys/socket.h; do
59278 # Check for ordinary declaration
59279 cat >conftest.$ac_ext <<_ACEOF
59280 /* confdefs.h.  */
59281 _ACEOF
59282 cat confdefs.h >>conftest.$ac_ext
59283 cat >>conftest.$ac_ext <<_ACEOF
59284 /* end confdefs.h.  */
59285 #include <$header>
59286
59287 _ACEOF
59288 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
59289   $EGREP "${ice_re_word}getsockopt[     ]*\(" >/dev/null 2>&1; then
59290   ice_cv_have_getsockopt_decl=yes
59291 fi
59292 rm -f conftest*
59293
59294 if test "$ice_cv_have_getsockopt_decl" = yes; then
59295         break
59296 fi
59297 # Check for "fixed" declaration like "getpid _PARAMS((int))"
59298 cat >conftest.$ac_ext <<_ACEOF
59299 /* confdefs.h.  */
59300 _ACEOF
59301 cat confdefs.h >>conftest.$ac_ext
59302 cat >>conftest.$ac_ext <<_ACEOF
59303 /* end confdefs.h.  */
59304 #include <$header>
59305
59306 _ACEOF
59307 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
59308   $EGREP "${ice_re_word}getsockopt[     ]*$ice_re_params\(\(" >/dev/null 2>&1; then
59309   ice_cv_have_getsockopt_decl=yes
59310 fi
59311 rm -f conftest*
59312
59313 if test "$ice_cv_have_getsockopt_decl" = yes; then
59314         break
59315 fi
59316 done
59317
59318 fi
59319
59320 { echo "$as_me:$LINENO: result: $ice_cv_have_getsockopt_decl" >&5
59321 echo "${ECHO_T}$ice_cv_have_getsockopt_decl" >&6; }
59322 if test "$ice_cv_have_getsockopt_decl" = yes; then
59323
59324 cat >>confdefs.h <<_ACEOF
59325 #define HAVE_GETSOCKOPT_DECL 1
59326 _ACEOF
59327
59328 fi
59329 fi
59330
59331
59332 ice_have_initgroups=no
59333
59334 for ac_func in initgroups
59335 do
59336 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
59337 { echo "$as_me:$LINENO: checking for $ac_func" >&5
59338 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
59339 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
59340   echo $ECHO_N "(cached) $ECHO_C" >&6
59341 else
59342   cat >conftest.$ac_ext <<_ACEOF
59343 /* confdefs.h.  */
59344 _ACEOF
59345 cat confdefs.h >>conftest.$ac_ext
59346 cat >>conftest.$ac_ext <<_ACEOF
59347 /* end confdefs.h.  */
59348 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
59349    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
59350 #define $ac_func innocuous_$ac_func
59351
59352 /* System header to define __stub macros and hopefully few prototypes,
59353     which can conflict with char $ac_func (); below.
59354     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
59355     <limits.h> exists even on freestanding compilers.  */
59356
59357 #ifdef __STDC__
59358 # include <limits.h>
59359 #else
59360 # include <assert.h>
59361 #endif
59362
59363 #undef $ac_func
59364
59365 /* Override any GCC internal prototype to avoid an error.
59366    Use char because int might match the return type of a GCC
59367    builtin and then its argument prototype would still apply.  */
59368 #ifdef __cplusplus
59369 extern "C"
59370 #endif
59371 char $ac_func ();
59372 /* The GNU C library defines this for functions which it implements
59373     to always fail with ENOSYS.  Some functions are actually named
59374     something starting with __ and the normal name is an alias.  */
59375 #if defined __stub_$ac_func || defined __stub___$ac_func
59376 choke me
59377 #endif
59378
59379 int
59380 main ()
59381 {
59382 return $ac_func ();
59383   ;
59384   return 0;
59385 }
59386 _ACEOF
59387 rm -f conftest.$ac_objext conftest$ac_exeext
59388 if { (ac_try="$ac_link"
59389 case "(($ac_try" in
59390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59391   *) ac_try_echo=$ac_try;;
59392 esac
59393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
59394   (eval "$ac_link") 2>conftest.er1
59395   ac_status=$?
59396   grep -v '^ *+' conftest.er1 >conftest.err
59397   rm -f conftest.er1
59398   cat conftest.err >&5
59399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59400   (exit $ac_status); } && {
59401          test -z "$ac_c_werror_flag" ||
59402          test ! -s conftest.err
59403        } && test -s conftest$ac_exeext &&
59404        $as_test_x conftest$ac_exeext; then
59405   eval "$as_ac_var=yes"
59406 else
59407   echo "$as_me: failed program was:" >&5
59408 sed 's/^/| /' conftest.$ac_ext >&5
59409
59410         eval "$as_ac_var=no"
59411 fi
59412
59413 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
59414       conftest$ac_exeext conftest.$ac_ext
59415 fi
59416 ac_res=`eval echo '${'$as_ac_var'}'`
59417                { echo "$as_me:$LINENO: result: $ac_res" >&5
59418 echo "${ECHO_T}$ac_res" >&6; }
59419 if test `eval echo '${'$as_ac_var'}'` = yes; then
59420   cat >>confdefs.h <<_ACEOF
59421 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
59422 _ACEOF
59423  ice_have_initgroups=yes
59424 fi
59425 done
59426
59427 if test "${ice_have_initgroups}" = yes; then
59428 { echo "$as_me:$LINENO: checking for initgroups declaration in grp.h sys/types.h unistd.h libc.h" >&5
59429 echo $ECHO_N "checking for initgroups declaration in grp.h sys/types.h unistd.h libc.h... $ECHO_C" >&6; }
59430 if test "${ice_cv_have_initgroups_decl+set}" = set; then
59431   echo $ECHO_N "(cached) $ECHO_C" >&6
59432 else
59433
59434 ice_cv_have_initgroups_decl=no
59435 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
59436 ice_re_word='(^|[^a-zA-Z0-9_])'
59437 for header in grp.h sys/types.h unistd.h libc.h; do
59438 # Check for ordinary declaration
59439 cat >conftest.$ac_ext <<_ACEOF
59440 /* confdefs.h.  */
59441 _ACEOF
59442 cat confdefs.h >>conftest.$ac_ext
59443 cat >>conftest.$ac_ext <<_ACEOF
59444 /* end confdefs.h.  */
59445 #include <$header>
59446
59447 _ACEOF
59448 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
59449   $EGREP "${ice_re_word}initgroups[     ]*\(" >/dev/null 2>&1; then
59450   ice_cv_have_initgroups_decl=yes
59451 fi
59452 rm -f conftest*
59453
59454 if test "$ice_cv_have_initgroups_decl" = yes; then
59455         break
59456 fi
59457 # Check for "fixed" declaration like "getpid _PARAMS((int))"
59458 cat >conftest.$ac_ext <<_ACEOF
59459 /* confdefs.h.  */
59460 _ACEOF
59461 cat confdefs.h >>conftest.$ac_ext
59462 cat >>conftest.$ac_ext <<_ACEOF
59463 /* end confdefs.h.  */
59464 #include <$header>
59465
59466 _ACEOF
59467 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
59468   $EGREP "${ice_re_word}initgroups[     ]*$ice_re_params\(\(" >/dev/null 2>&1; then
59469   ice_cv_have_initgroups_decl=yes
59470 fi
59471 rm -f conftest*
59472
59473 if test "$ice_cv_have_initgroups_decl" = yes; then
59474         break
59475 fi
59476 done
59477
59478 fi
59479
59480 { echo "$as_me:$LINENO: result: $ice_cv_have_initgroups_decl" >&5
59481 echo "${ECHO_T}$ice_cv_have_initgroups_decl" >&6; }
59482 if test "$ice_cv_have_initgroups_decl" = yes; then
59483
59484 cat >>confdefs.h <<_ACEOF
59485 #define HAVE_INITGROUPS_DECL 1
59486 _ACEOF
59487
59488 fi
59489 fi
59490
59491
59492 ice_have_ioctl=no
59493
59494 for ac_func in ioctl
59495 do
59496 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
59497 { echo "$as_me:$LINENO: checking for $ac_func" >&5
59498 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
59499 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
59500   echo $ECHO_N "(cached) $ECHO_C" >&6
59501 else
59502   cat >conftest.$ac_ext <<_ACEOF
59503 /* confdefs.h.  */
59504 _ACEOF
59505 cat confdefs.h >>conftest.$ac_ext
59506 cat >>conftest.$ac_ext <<_ACEOF
59507 /* end confdefs.h.  */
59508 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
59509    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
59510 #define $ac_func innocuous_$ac_func
59511
59512 /* System header to define __stub macros and hopefully few prototypes,
59513     which can conflict with char $ac_func (); below.
59514     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
59515     <limits.h> exists even on freestanding compilers.  */
59516
59517 #ifdef __STDC__
59518 # include <limits.h>
59519 #else
59520 # include <assert.h>
59521 #endif
59522
59523 #undef $ac_func
59524
59525 /* Override any GCC internal prototype to avoid an error.
59526    Use char because int might match the return type of a GCC
59527    builtin and then its argument prototype would still apply.  */
59528 #ifdef __cplusplus
59529 extern "C"
59530 #endif
59531 char $ac_func ();
59532 /* The GNU C library defines this for functions which it implements
59533     to always fail with ENOSYS.  Some functions are actually named
59534     something starting with __ and the normal name is an alias.  */
59535 #if defined __stub_$ac_func || defined __stub___$ac_func
59536 choke me
59537 #endif
59538
59539 int
59540 main ()
59541 {
59542 return $ac_func ();
59543   ;
59544   return 0;
59545 }
59546 _ACEOF
59547 rm -f conftest.$ac_objext conftest$ac_exeext
59548 if { (ac_try="$ac_link"
59549 case "(($ac_try" in
59550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59551   *) ac_try_echo=$ac_try;;
59552 esac
59553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
59554   (eval "$ac_link") 2>conftest.er1
59555   ac_status=$?
59556   grep -v '^ *+' conftest.er1 >conftest.err
59557   rm -f conftest.er1
59558   cat conftest.err >&5
59559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59560   (exit $ac_status); } && {
59561          test -z "$ac_c_werror_flag" ||
59562          test ! -s conftest.err
59563        } && test -s conftest$ac_exeext &&
59564        $as_test_x conftest$ac_exeext; then
59565   eval "$as_ac_var=yes"
59566 else
59567   echo "$as_me: failed program was:" >&5
59568 sed 's/^/| /' conftest.$ac_ext >&5
59569
59570         eval "$as_ac_var=no"
59571 fi
59572
59573 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
59574       conftest$ac_exeext conftest.$ac_ext
59575 fi
59576 ac_res=`eval echo '${'$as_ac_var'}'`
59577                { echo "$as_me:$LINENO: result: $ac_res" >&5
59578 echo "${ECHO_T}$ac_res" >&6; }
59579 if test `eval echo '${'$as_ac_var'}'` = yes; then
59580   cat >>confdefs.h <<_ACEOF
59581 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
59582 _ACEOF
59583  ice_have_ioctl=yes
59584 fi
59585 done
59586
59587 if test "${ice_have_ioctl}" = yes; then
59588 { echo "$as_me:$LINENO: checking for ioctl declaration in sys/ioctl.h unistd.h libc.h" >&5
59589 echo $ECHO_N "checking for ioctl declaration in sys/ioctl.h unistd.h libc.h... $ECHO_C" >&6; }
59590 if test "${ice_cv_have_ioctl_decl+set}" = set; then
59591   echo $ECHO_N "(cached) $ECHO_C" >&6
59592 else
59593
59594 ice_cv_have_ioctl_decl=no
59595 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
59596 ice_re_word='(^|[^a-zA-Z0-9_])'
59597 for header in sys/ioctl.h unistd.h libc.h; do
59598 # Check for ordinary declaration
59599 cat >conftest.$ac_ext <<_ACEOF
59600 /* confdefs.h.  */
59601 _ACEOF
59602 cat confdefs.h >>conftest.$ac_ext
59603 cat >>conftest.$ac_ext <<_ACEOF
59604 /* end confdefs.h.  */
59605 #include <$header>
59606
59607 _ACEOF
59608 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
59609   $EGREP "${ice_re_word}ioctl[  ]*\(" >/dev/null 2>&1; then
59610   ice_cv_have_ioctl_decl=yes
59611 fi
59612 rm -f conftest*
59613
59614 if test "$ice_cv_have_ioctl_decl" = yes; then
59615         break
59616 fi
59617 # Check for "fixed" declaration like "getpid _PARAMS((int))"
59618 cat >conftest.$ac_ext <<_ACEOF
59619 /* confdefs.h.  */
59620 _ACEOF
59621 cat confdefs.h >>conftest.$ac_ext
59622 cat >>conftest.$ac_ext <<_ACEOF
59623 /* end confdefs.h.  */
59624 #include <$header>
59625
59626 _ACEOF
59627 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
59628   $EGREP "${ice_re_word}ioctl[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
59629   ice_cv_have_ioctl_decl=yes
59630 fi
59631 rm -f conftest*
59632
59633 if test "$ice_cv_have_ioctl_decl" = yes; then
59634         break
59635 fi
59636 done
59637
59638 fi
59639
59640 { echo "$as_me:$LINENO: result: $ice_cv_have_ioctl_decl" >&5
59641 echo "${ECHO_T}$ice_cv_have_ioctl_decl" >&6; }
59642 if test "$ice_cv_have_ioctl_decl" = yes; then
59643
59644 cat >>confdefs.h <<_ACEOF
59645 #define HAVE_IOCTL_DECL 1
59646 _ACEOF
59647
59648 fi
59649 fi
59650
59651
59652 ice_have_isnormal=no
59653
59654 for ac_func in isnormal
59655 do
59656 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
59657 { echo "$as_me:$LINENO: checking for $ac_func" >&5
59658 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
59659 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
59660   echo $ECHO_N "(cached) $ECHO_C" >&6
59661 else
59662   cat >conftest.$ac_ext <<_ACEOF
59663 /* confdefs.h.  */
59664 _ACEOF
59665 cat confdefs.h >>conftest.$ac_ext
59666 cat >>conftest.$ac_ext <<_ACEOF
59667 /* end confdefs.h.  */
59668 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
59669    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
59670 #define $ac_func innocuous_$ac_func
59671
59672 /* System header to define __stub macros and hopefully few prototypes,
59673     which can conflict with char $ac_func (); below.
59674     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
59675     <limits.h> exists even on freestanding compilers.  */
59676
59677 #ifdef __STDC__
59678 # include <limits.h>
59679 #else
59680 # include <assert.h>
59681 #endif
59682
59683 #undef $ac_func
59684
59685 /* Override any GCC internal prototype to avoid an error.
59686    Use char because int might match the return type of a GCC
59687    builtin and then its argument prototype would still apply.  */
59688 #ifdef __cplusplus
59689 extern "C"
59690 #endif
59691 char $ac_func ();
59692 /* The GNU C library defines this for functions which it implements
59693     to always fail with ENOSYS.  Some functions are actually named
59694     something starting with __ and the normal name is an alias.  */
59695 #if defined __stub_$ac_func || defined __stub___$ac_func
59696 choke me
59697 #endif
59698
59699 int
59700 main ()
59701 {
59702 return $ac_func ();
59703   ;
59704   return 0;
59705 }
59706 _ACEOF
59707 rm -f conftest.$ac_objext conftest$ac_exeext
59708 if { (ac_try="$ac_link"
59709 case "(($ac_try" in
59710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59711   *) ac_try_echo=$ac_try;;
59712 esac
59713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
59714   (eval "$ac_link") 2>conftest.er1
59715   ac_status=$?
59716   grep -v '^ *+' conftest.er1 >conftest.err
59717   rm -f conftest.er1
59718   cat conftest.err >&5
59719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59720   (exit $ac_status); } && {
59721          test -z "$ac_c_werror_flag" ||
59722          test ! -s conftest.err
59723        } && test -s conftest$ac_exeext &&
59724        $as_test_x conftest$ac_exeext; then
59725   eval "$as_ac_var=yes"
59726 else
59727   echo "$as_me: failed program was:" >&5
59728 sed 's/^/| /' conftest.$ac_ext >&5
59729
59730         eval "$as_ac_var=no"
59731 fi
59732
59733 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
59734       conftest$ac_exeext conftest.$ac_ext
59735 fi
59736 ac_res=`eval echo '${'$as_ac_var'}'`
59737                { echo "$as_me:$LINENO: result: $ac_res" >&5
59738 echo "${ECHO_T}$ac_res" >&6; }
59739 if test `eval echo '${'$as_ac_var'}'` = yes; then
59740   cat >>confdefs.h <<_ACEOF
59741 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
59742 _ACEOF
59743  ice_have_isnormal=yes
59744 fi
59745 done
59746
59747 if test "${ice_have_isnormal}" = yes; then
59748 { echo "$as_me:$LINENO: checking for isnormal declaration in math.h" >&5
59749 echo $ECHO_N "checking for isnormal declaration in math.h... $ECHO_C" >&6; }
59750 if test "${ice_cv_have_isnormal_decl+set}" = set; then
59751   echo $ECHO_N "(cached) $ECHO_C" >&6
59752 else
59753
59754 ice_cv_have_isnormal_decl=no
59755 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
59756 ice_re_word='(^|[^a-zA-Z0-9_])'
59757 for header in math.h; do
59758 # Check for ordinary declaration
59759 cat >conftest.$ac_ext <<_ACEOF
59760 /* confdefs.h.  */
59761 _ACEOF
59762 cat confdefs.h >>conftest.$ac_ext
59763 cat >>conftest.$ac_ext <<_ACEOF
59764 /* end confdefs.h.  */
59765 #include <$header>
59766
59767 _ACEOF
59768 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
59769   $EGREP "${ice_re_word}isnormal[       ]*\(" >/dev/null 2>&1; then
59770   ice_cv_have_isnormal_decl=yes
59771 fi
59772 rm -f conftest*
59773
59774 if test "$ice_cv_have_isnormal_decl" = yes; then
59775         break
59776 fi
59777 # Check for "fixed" declaration like "getpid _PARAMS((int))"
59778 cat >conftest.$ac_ext <<_ACEOF
59779 /* confdefs.h.  */
59780 _ACEOF
59781 cat confdefs.h >>conftest.$ac_ext
59782 cat >>conftest.$ac_ext <<_ACEOF
59783 /* end confdefs.h.  */
59784 #include <$header>
59785
59786 _ACEOF
59787 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
59788   $EGREP "${ice_re_word}isnormal[       ]*$ice_re_params\(\(" >/dev/null 2>&1; then
59789   ice_cv_have_isnormal_decl=yes
59790 fi
59791 rm -f conftest*
59792
59793 if test "$ice_cv_have_isnormal_decl" = yes; then
59794         break
59795 fi
59796 done
59797
59798 fi
59799
59800 { echo "$as_me:$LINENO: result: $ice_cv_have_isnormal_decl" >&5
59801 echo "${ECHO_T}$ice_cv_have_isnormal_decl" >&6; }
59802 if test "$ice_cv_have_isnormal_decl" = yes; then
59803
59804 cat >>confdefs.h <<_ACEOF
59805 #define HAVE_ISNORMAL_DECL 1
59806 _ACEOF
59807
59808 fi
59809 fi
59810
59811
59812 ice_have_listen=no
59813
59814 for ac_func in listen
59815 do
59816 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
59817 { echo "$as_me:$LINENO: checking for $ac_func" >&5
59818 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
59819 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
59820   echo $ECHO_N "(cached) $ECHO_C" >&6
59821 else
59822   cat >conftest.$ac_ext <<_ACEOF
59823 /* confdefs.h.  */
59824 _ACEOF
59825 cat confdefs.h >>conftest.$ac_ext
59826 cat >>conftest.$ac_ext <<_ACEOF
59827 /* end confdefs.h.  */
59828 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
59829    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
59830 #define $ac_func innocuous_$ac_func
59831
59832 /* System header to define __stub macros and hopefully few prototypes,
59833     which can conflict with char $ac_func (); below.
59834     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
59835     <limits.h> exists even on freestanding compilers.  */
59836
59837 #ifdef __STDC__
59838 # include <limits.h>
59839 #else
59840 # include <assert.h>
59841 #endif
59842
59843 #undef $ac_func
59844
59845 /* Override any GCC internal prototype to avoid an error.
59846    Use char because int might match the return type of a GCC
59847    builtin and then its argument prototype would still apply.  */
59848 #ifdef __cplusplus
59849 extern "C"
59850 #endif
59851 char $ac_func ();
59852 /* The GNU C library defines this for functions which it implements
59853     to always fail with ENOSYS.  Some functions are actually named
59854     something starting with __ and the normal name is an alias.  */
59855 #if defined __stub_$ac_func || defined __stub___$ac_func
59856 choke me
59857 #endif
59858
59859 int
59860 main ()
59861 {
59862 return $ac_func ();
59863   ;
59864   return 0;
59865 }
59866 _ACEOF
59867 rm -f conftest.$ac_objext conftest$ac_exeext
59868 if { (ac_try="$ac_link"
59869 case "(($ac_try" in
59870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59871   *) ac_try_echo=$ac_try;;
59872 esac
59873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
59874   (eval "$ac_link") 2>conftest.er1
59875   ac_status=$?
59876   grep -v '^ *+' conftest.er1 >conftest.err
59877   rm -f conftest.er1
59878   cat conftest.err >&5
59879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
59880   (exit $ac_status); } && {
59881          test -z "$ac_c_werror_flag" ||
59882          test ! -s conftest.err
59883        } && test -s conftest$ac_exeext &&
59884        $as_test_x conftest$ac_exeext; then
59885   eval "$as_ac_var=yes"
59886 else
59887   echo "$as_me: failed program was:" >&5
59888 sed 's/^/| /' conftest.$ac_ext >&5
59889
59890         eval "$as_ac_var=no"
59891 fi
59892
59893 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
59894       conftest$ac_exeext conftest.$ac_ext
59895 fi
59896 ac_res=`eval echo '${'$as_ac_var'}'`
59897                { echo "$as_me:$LINENO: result: $ac_res" >&5
59898 echo "${ECHO_T}$ac_res" >&6; }
59899 if test `eval echo '${'$as_ac_var'}'` = yes; then
59900   cat >>confdefs.h <<_ACEOF
59901 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
59902 _ACEOF
59903  ice_have_listen=yes
59904 fi
59905 done
59906
59907 if test "${ice_have_listen}" = yes; then
59908 { echo "$as_me:$LINENO: checking for listen declaration in sys/types.h sys/socket.h" >&5
59909 echo $ECHO_N "checking for listen declaration in sys/types.h sys/socket.h... $ECHO_C" >&6; }
59910 if test "${ice_cv_have_listen_decl+set}" = set; then
59911   echo $ECHO_N "(cached) $ECHO_C" >&6
59912 else
59913
59914 ice_cv_have_listen_decl=no
59915 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
59916 ice_re_word='(^|[^a-zA-Z0-9_])'
59917 for header in sys/types.h sys/socket.h; do
59918 # Check for ordinary declaration
59919 cat >conftest.$ac_ext <<_ACEOF
59920 /* confdefs.h.  */
59921 _ACEOF
59922 cat confdefs.h >>conftest.$ac_ext
59923 cat >>conftest.$ac_ext <<_ACEOF
59924 /* end confdefs.h.  */
59925 #include <$header>
59926
59927 _ACEOF
59928 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
59929   $EGREP "${ice_re_word}listen[         ]*\(" >/dev/null 2>&1; then
59930   ice_cv_have_listen_decl=yes
59931 fi
59932 rm -f conftest*
59933
59934 if test "$ice_cv_have_listen_decl" = yes; then
59935         break
59936 fi
59937 # Check for "fixed" declaration like "getpid _PARAMS((int))"
59938 cat >conftest.$ac_ext <<_ACEOF
59939 /* confdefs.h.  */
59940 _ACEOF
59941 cat confdefs.h >>conftest.$ac_ext
59942 cat >>conftest.$ac_ext <<_ACEOF
59943 /* end confdefs.h.  */
59944 #include <$header>
59945
59946 _ACEOF
59947 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
59948   $EGREP "${ice_re_word}listen[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
59949   ice_cv_have_listen_decl=yes
59950 fi
59951 rm -f conftest*
59952
59953 if test "$ice_cv_have_listen_decl" = yes; then
59954         break
59955 fi
59956 done
59957
59958 fi
59959
59960 { echo "$as_me:$LINENO: result: $ice_cv_have_listen_decl" >&5
59961 echo "${ECHO_T}$ice_cv_have_listen_decl" >&6; }
59962 if test "$ice_cv_have_listen_decl" = yes; then
59963
59964 cat >>confdefs.h <<_ACEOF
59965 #define HAVE_LISTEN_DECL 1
59966 _ACEOF
59967
59968 fi
59969 fi
59970
59971
59972 ice_have_lstat=no
59973
59974 for ac_func in lstat
59975 do
59976 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
59977 { echo "$as_me:$LINENO: checking for $ac_func" >&5
59978 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
59979 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
59980   echo $ECHO_N "(cached) $ECHO_C" >&6
59981 else
59982   cat >conftest.$ac_ext <<_ACEOF
59983 /* confdefs.h.  */
59984 _ACEOF
59985 cat confdefs.h >>conftest.$ac_ext
59986 cat >>conftest.$ac_ext <<_ACEOF
59987 /* end confdefs.h.  */
59988 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
59989    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
59990 #define $ac_func innocuous_$ac_func
59991
59992 /* System header to define __stub macros and hopefully few prototypes,
59993     which can conflict with char $ac_func (); below.
59994     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
59995     <limits.h> exists even on freestanding compilers.  */
59996
59997 #ifdef __STDC__
59998 # include <limits.h>
59999 #else
60000 # include <assert.h>
60001 #endif
60002
60003 #undef $ac_func
60004
60005 /* Override any GCC internal prototype to avoid an error.
60006    Use char because int might match the return type of a GCC
60007    builtin and then its argument prototype would still apply.  */
60008 #ifdef __cplusplus
60009 extern "C"
60010 #endif
60011 char $ac_func ();
60012 /* The GNU C library defines this for functions which it implements
60013     to always fail with ENOSYS.  Some functions are actually named
60014     something starting with __ and the normal name is an alias.  */
60015 #if defined __stub_$ac_func || defined __stub___$ac_func
60016 choke me
60017 #endif
60018
60019 int
60020 main ()
60021 {
60022 return $ac_func ();
60023   ;
60024   return 0;
60025 }
60026 _ACEOF
60027 rm -f conftest.$ac_objext conftest$ac_exeext
60028 if { (ac_try="$ac_link"
60029 case "(($ac_try" in
60030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60031   *) ac_try_echo=$ac_try;;
60032 esac
60033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
60034   (eval "$ac_link") 2>conftest.er1
60035   ac_status=$?
60036   grep -v '^ *+' conftest.er1 >conftest.err
60037   rm -f conftest.er1
60038   cat conftest.err >&5
60039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
60040   (exit $ac_status); } && {
60041          test -z "$ac_c_werror_flag" ||
60042          test ! -s conftest.err
60043        } && test -s conftest$ac_exeext &&
60044        $as_test_x conftest$ac_exeext; then
60045   eval "$as_ac_var=yes"
60046 else
60047   echo "$as_me: failed program was:" >&5
60048 sed 's/^/| /' conftest.$ac_ext >&5
60049
60050         eval "$as_ac_var=no"
60051 fi
60052
60053 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
60054       conftest$ac_exeext conftest.$ac_ext
60055 fi
60056 ac_res=`eval echo '${'$as_ac_var'}'`
60057                { echo "$as_me:$LINENO: result: $ac_res" >&5
60058 echo "${ECHO_T}$ac_res" >&6; }
60059 if test `eval echo '${'$as_ac_var'}'` = yes; then
60060   cat >>confdefs.h <<_ACEOF
60061 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
60062 _ACEOF
60063  ice_have_lstat=yes
60064 fi
60065 done
60066
60067 if test "${ice_have_lstat}" = yes; then
60068 { echo "$as_me:$LINENO: checking for lstat declaration in sys/types.h sys/stat.h" >&5
60069 echo $ECHO_N "checking for lstat declaration in sys/types.h sys/stat.h... $ECHO_C" >&6; }
60070 if test "${ice_cv_have_lstat_decl+set}" = set; then
60071   echo $ECHO_N "(cached) $ECHO_C" >&6
60072 else
60073
60074 ice_cv_have_lstat_decl=no
60075 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
60076 ice_re_word='(^|[^a-zA-Z0-9_])'
60077 for header in sys/types.h sys/stat.h; do
60078 # Check for ordinary declaration
60079 cat >conftest.$ac_ext <<_ACEOF
60080 /* confdefs.h.  */
60081 _ACEOF
60082 cat confdefs.h >>conftest.$ac_ext
60083 cat >>conftest.$ac_ext <<_ACEOF
60084 /* end confdefs.h.  */
60085 #include <$header>
60086
60087 _ACEOF
60088 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60089   $EGREP "${ice_re_word}lstat[  ]*\(" >/dev/null 2>&1; then
60090   ice_cv_have_lstat_decl=yes
60091 fi
60092 rm -f conftest*
60093
60094 if test "$ice_cv_have_lstat_decl" = yes; then
60095         break
60096 fi
60097 # Check for "fixed" declaration like "getpid _PARAMS((int))"
60098 cat >conftest.$ac_ext <<_ACEOF
60099 /* confdefs.h.  */
60100 _ACEOF
60101 cat confdefs.h >>conftest.$ac_ext
60102 cat >>conftest.$ac_ext <<_ACEOF
60103 /* end confdefs.h.  */
60104 #include <$header>
60105
60106 _ACEOF
60107 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60108   $EGREP "${ice_re_word}lstat[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
60109   ice_cv_have_lstat_decl=yes
60110 fi
60111 rm -f conftest*
60112
60113 if test "$ice_cv_have_lstat_decl" = yes; then
60114         break
60115 fi
60116 done
60117
60118 fi
60119
60120 { echo "$as_me:$LINENO: result: $ice_cv_have_lstat_decl" >&5
60121 echo "${ECHO_T}$ice_cv_have_lstat_decl" >&6; }
60122 if test "$ice_cv_have_lstat_decl" = yes; then
60123
60124 cat >>confdefs.h <<_ACEOF
60125 #define HAVE_LSTAT_DECL 1
60126 _ACEOF
60127
60128 fi
60129 fi
60130
60131
60132 ice_have_malloc=no
60133
60134 for ac_func in malloc
60135 do
60136 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
60137 { echo "$as_me:$LINENO: checking for $ac_func" >&5
60138 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
60139 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
60140   echo $ECHO_N "(cached) $ECHO_C" >&6
60141 else
60142   cat >conftest.$ac_ext <<_ACEOF
60143 /* confdefs.h.  */
60144 _ACEOF
60145 cat confdefs.h >>conftest.$ac_ext
60146 cat >>conftest.$ac_ext <<_ACEOF
60147 /* end confdefs.h.  */
60148 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
60149    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
60150 #define $ac_func innocuous_$ac_func
60151
60152 /* System header to define __stub macros and hopefully few prototypes,
60153     which can conflict with char $ac_func (); below.
60154     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
60155     <limits.h> exists even on freestanding compilers.  */
60156
60157 #ifdef __STDC__
60158 # include <limits.h>
60159 #else
60160 # include <assert.h>
60161 #endif
60162
60163 #undef $ac_func
60164
60165 /* Override any GCC internal prototype to avoid an error.
60166    Use char because int might match the return type of a GCC
60167    builtin and then its argument prototype would still apply.  */
60168 #ifdef __cplusplus
60169 extern "C"
60170 #endif
60171 char $ac_func ();
60172 /* The GNU C library defines this for functions which it implements
60173     to always fail with ENOSYS.  Some functions are actually named
60174     something starting with __ and the normal name is an alias.  */
60175 #if defined __stub_$ac_func || defined __stub___$ac_func
60176 choke me
60177 #endif
60178
60179 int
60180 main ()
60181 {
60182 return $ac_func ();
60183   ;
60184   return 0;
60185 }
60186 _ACEOF
60187 rm -f conftest.$ac_objext conftest$ac_exeext
60188 if { (ac_try="$ac_link"
60189 case "(($ac_try" in
60190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60191   *) ac_try_echo=$ac_try;;
60192 esac
60193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
60194   (eval "$ac_link") 2>conftest.er1
60195   ac_status=$?
60196   grep -v '^ *+' conftest.er1 >conftest.err
60197   rm -f conftest.er1
60198   cat conftest.err >&5
60199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
60200   (exit $ac_status); } && {
60201          test -z "$ac_c_werror_flag" ||
60202          test ! -s conftest.err
60203        } && test -s conftest$ac_exeext &&
60204        $as_test_x conftest$ac_exeext; then
60205   eval "$as_ac_var=yes"
60206 else
60207   echo "$as_me: failed program was:" >&5
60208 sed 's/^/| /' conftest.$ac_ext >&5
60209
60210         eval "$as_ac_var=no"
60211 fi
60212
60213 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
60214       conftest$ac_exeext conftest.$ac_ext
60215 fi
60216 ac_res=`eval echo '${'$as_ac_var'}'`
60217                { echo "$as_me:$LINENO: result: $ac_res" >&5
60218 echo "${ECHO_T}$ac_res" >&6; }
60219 if test `eval echo '${'$as_ac_var'}'` = yes; then
60220   cat >>confdefs.h <<_ACEOF
60221 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
60222 _ACEOF
60223  ice_have_malloc=yes
60224 fi
60225 done
60226
60227 if test "${ice_have_malloc}" = yes; then
60228 { echo "$as_me:$LINENO: checking for malloc declaration in stdlib.h" >&5
60229 echo $ECHO_N "checking for malloc declaration in stdlib.h... $ECHO_C" >&6; }
60230 if test "${ice_cv_have_malloc_decl+set}" = set; then
60231   echo $ECHO_N "(cached) $ECHO_C" >&6
60232 else
60233
60234 ice_cv_have_malloc_decl=no
60235 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
60236 ice_re_word='(^|[^a-zA-Z0-9_])'
60237 for header in stdlib.h; do
60238 # Check for ordinary declaration
60239 cat >conftest.$ac_ext <<_ACEOF
60240 /* confdefs.h.  */
60241 _ACEOF
60242 cat confdefs.h >>conftest.$ac_ext
60243 cat >>conftest.$ac_ext <<_ACEOF
60244 /* end confdefs.h.  */
60245 #include <$header>
60246
60247 _ACEOF
60248 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60249   $EGREP "${ice_re_word}malloc[         ]*\(" >/dev/null 2>&1; then
60250   ice_cv_have_malloc_decl=yes
60251 fi
60252 rm -f conftest*
60253
60254 if test "$ice_cv_have_malloc_decl" = yes; then
60255         break
60256 fi
60257 # Check for "fixed" declaration like "getpid _PARAMS((int))"
60258 cat >conftest.$ac_ext <<_ACEOF
60259 /* confdefs.h.  */
60260 _ACEOF
60261 cat confdefs.h >>conftest.$ac_ext
60262 cat >>conftest.$ac_ext <<_ACEOF
60263 /* end confdefs.h.  */
60264 #include <$header>
60265
60266 _ACEOF
60267 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60268   $EGREP "${ice_re_word}malloc[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
60269   ice_cv_have_malloc_decl=yes
60270 fi
60271 rm -f conftest*
60272
60273 if test "$ice_cv_have_malloc_decl" = yes; then
60274         break
60275 fi
60276 done
60277
60278 fi
60279
60280 { echo "$as_me:$LINENO: result: $ice_cv_have_malloc_decl" >&5
60281 echo "${ECHO_T}$ice_cv_have_malloc_decl" >&6; }
60282 if test "$ice_cv_have_malloc_decl" = yes; then
60283
60284 cat >>confdefs.h <<_ACEOF
60285 #define HAVE_MALLOC_DECL 1
60286 _ACEOF
60287
60288 fi
60289 fi
60290
60291
60292 ice_have_memmove=no
60293
60294 for ac_func in memmove
60295 do
60296 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
60297 { echo "$as_me:$LINENO: checking for $ac_func" >&5
60298 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
60299 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
60300   echo $ECHO_N "(cached) $ECHO_C" >&6
60301 else
60302   cat >conftest.$ac_ext <<_ACEOF
60303 /* confdefs.h.  */
60304 _ACEOF
60305 cat confdefs.h >>conftest.$ac_ext
60306 cat >>conftest.$ac_ext <<_ACEOF
60307 /* end confdefs.h.  */
60308 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
60309    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
60310 #define $ac_func innocuous_$ac_func
60311
60312 /* System header to define __stub macros and hopefully few prototypes,
60313     which can conflict with char $ac_func (); below.
60314     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
60315     <limits.h> exists even on freestanding compilers.  */
60316
60317 #ifdef __STDC__
60318 # include <limits.h>
60319 #else
60320 # include <assert.h>
60321 #endif
60322
60323 #undef $ac_func
60324
60325 /* Override any GCC internal prototype to avoid an error.
60326    Use char because int might match the return type of a GCC
60327    builtin and then its argument prototype would still apply.  */
60328 #ifdef __cplusplus
60329 extern "C"
60330 #endif
60331 char $ac_func ();
60332 /* The GNU C library defines this for functions which it implements
60333     to always fail with ENOSYS.  Some functions are actually named
60334     something starting with __ and the normal name is an alias.  */
60335 #if defined __stub_$ac_func || defined __stub___$ac_func
60336 choke me
60337 #endif
60338
60339 int
60340 main ()
60341 {
60342 return $ac_func ();
60343   ;
60344   return 0;
60345 }
60346 _ACEOF
60347 rm -f conftest.$ac_objext conftest$ac_exeext
60348 if { (ac_try="$ac_link"
60349 case "(($ac_try" in
60350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60351   *) ac_try_echo=$ac_try;;
60352 esac
60353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
60354   (eval "$ac_link") 2>conftest.er1
60355   ac_status=$?
60356   grep -v '^ *+' conftest.er1 >conftest.err
60357   rm -f conftest.er1
60358   cat conftest.err >&5
60359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
60360   (exit $ac_status); } && {
60361          test -z "$ac_c_werror_flag" ||
60362          test ! -s conftest.err
60363        } && test -s conftest$ac_exeext &&
60364        $as_test_x conftest$ac_exeext; then
60365   eval "$as_ac_var=yes"
60366 else
60367   echo "$as_me: failed program was:" >&5
60368 sed 's/^/| /' conftest.$ac_ext >&5
60369
60370         eval "$as_ac_var=no"
60371 fi
60372
60373 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
60374       conftest$ac_exeext conftest.$ac_ext
60375 fi
60376 ac_res=`eval echo '${'$as_ac_var'}'`
60377                { echo "$as_me:$LINENO: result: $ac_res" >&5
60378 echo "${ECHO_T}$ac_res" >&6; }
60379 if test `eval echo '${'$as_ac_var'}'` = yes; then
60380   cat >>confdefs.h <<_ACEOF
60381 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
60382 _ACEOF
60383  ice_have_memmove=yes
60384 fi
60385 done
60386
60387 if test "${ice_have_memmove}" = yes; then
60388 { echo "$as_me:$LINENO: checking for memmove declaration in string.h strings.h" >&5
60389 echo $ECHO_N "checking for memmove declaration in string.h strings.h... $ECHO_C" >&6; }
60390 if test "${ice_cv_have_memmove_decl+set}" = set; then
60391   echo $ECHO_N "(cached) $ECHO_C" >&6
60392 else
60393
60394 ice_cv_have_memmove_decl=no
60395 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
60396 ice_re_word='(^|[^a-zA-Z0-9_])'
60397 for header in string.h strings.h; do
60398 # Check for ordinary declaration
60399 cat >conftest.$ac_ext <<_ACEOF
60400 /* confdefs.h.  */
60401 _ACEOF
60402 cat confdefs.h >>conftest.$ac_ext
60403 cat >>conftest.$ac_ext <<_ACEOF
60404 /* end confdefs.h.  */
60405 #include <$header>
60406
60407 _ACEOF
60408 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60409   $EGREP "${ice_re_word}memmove[        ]*\(" >/dev/null 2>&1; then
60410   ice_cv_have_memmove_decl=yes
60411 fi
60412 rm -f conftest*
60413
60414 if test "$ice_cv_have_memmove_decl" = yes; then
60415         break
60416 fi
60417 # Check for "fixed" declaration like "getpid _PARAMS((int))"
60418 cat >conftest.$ac_ext <<_ACEOF
60419 /* confdefs.h.  */
60420 _ACEOF
60421 cat confdefs.h >>conftest.$ac_ext
60422 cat >>conftest.$ac_ext <<_ACEOF
60423 /* end confdefs.h.  */
60424 #include <$header>
60425
60426 _ACEOF
60427 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60428   $EGREP "${ice_re_word}memmove[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
60429   ice_cv_have_memmove_decl=yes
60430 fi
60431 rm -f conftest*
60432
60433 if test "$ice_cv_have_memmove_decl" = yes; then
60434         break
60435 fi
60436 done
60437
60438 fi
60439
60440 { echo "$as_me:$LINENO: result: $ice_cv_have_memmove_decl" >&5
60441 echo "${ECHO_T}$ice_cv_have_memmove_decl" >&6; }
60442 if test "$ice_cv_have_memmove_decl" = yes; then
60443
60444 cat >>confdefs.h <<_ACEOF
60445 #define HAVE_MEMMOVE_DECL 1
60446 _ACEOF
60447
60448 fi
60449 fi
60450
60451
60452 ice_have_memset=no
60453
60454 for ac_func in memset
60455 do
60456 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
60457 { echo "$as_me:$LINENO: checking for $ac_func" >&5
60458 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
60459 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
60460   echo $ECHO_N "(cached) $ECHO_C" >&6
60461 else
60462   cat >conftest.$ac_ext <<_ACEOF
60463 /* confdefs.h.  */
60464 _ACEOF
60465 cat confdefs.h >>conftest.$ac_ext
60466 cat >>conftest.$ac_ext <<_ACEOF
60467 /* end confdefs.h.  */
60468 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
60469    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
60470 #define $ac_func innocuous_$ac_func
60471
60472 /* System header to define __stub macros and hopefully few prototypes,
60473     which can conflict with char $ac_func (); below.
60474     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
60475     <limits.h> exists even on freestanding compilers.  */
60476
60477 #ifdef __STDC__
60478 # include <limits.h>
60479 #else
60480 # include <assert.h>
60481 #endif
60482
60483 #undef $ac_func
60484
60485 /* Override any GCC internal prototype to avoid an error.
60486    Use char because int might match the return type of a GCC
60487    builtin and then its argument prototype would still apply.  */
60488 #ifdef __cplusplus
60489 extern "C"
60490 #endif
60491 char $ac_func ();
60492 /* The GNU C library defines this for functions which it implements
60493     to always fail with ENOSYS.  Some functions are actually named
60494     something starting with __ and the normal name is an alias.  */
60495 #if defined __stub_$ac_func || defined __stub___$ac_func
60496 choke me
60497 #endif
60498
60499 int
60500 main ()
60501 {
60502 return $ac_func ();
60503   ;
60504   return 0;
60505 }
60506 _ACEOF
60507 rm -f conftest.$ac_objext conftest$ac_exeext
60508 if { (ac_try="$ac_link"
60509 case "(($ac_try" in
60510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60511   *) ac_try_echo=$ac_try;;
60512 esac
60513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
60514   (eval "$ac_link") 2>conftest.er1
60515   ac_status=$?
60516   grep -v '^ *+' conftest.er1 >conftest.err
60517   rm -f conftest.er1
60518   cat conftest.err >&5
60519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
60520   (exit $ac_status); } && {
60521          test -z "$ac_c_werror_flag" ||
60522          test ! -s conftest.err
60523        } && test -s conftest$ac_exeext &&
60524        $as_test_x conftest$ac_exeext; then
60525   eval "$as_ac_var=yes"
60526 else
60527   echo "$as_me: failed program was:" >&5
60528 sed 's/^/| /' conftest.$ac_ext >&5
60529
60530         eval "$as_ac_var=no"
60531 fi
60532
60533 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
60534       conftest$ac_exeext conftest.$ac_ext
60535 fi
60536 ac_res=`eval echo '${'$as_ac_var'}'`
60537                { echo "$as_me:$LINENO: result: $ac_res" >&5
60538 echo "${ECHO_T}$ac_res" >&6; }
60539 if test `eval echo '${'$as_ac_var'}'` = yes; then
60540   cat >>confdefs.h <<_ACEOF
60541 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
60542 _ACEOF
60543  ice_have_memset=yes
60544 fi
60545 done
60546
60547 if test "${ice_have_memset}" = yes; then
60548 { echo "$as_me:$LINENO: checking for memset declaration in string.h strings.h" >&5
60549 echo $ECHO_N "checking for memset declaration in string.h strings.h... $ECHO_C" >&6; }
60550 if test "${ice_cv_have_memset_decl+set}" = set; then
60551   echo $ECHO_N "(cached) $ECHO_C" >&6
60552 else
60553
60554 ice_cv_have_memset_decl=no
60555 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
60556 ice_re_word='(^|[^a-zA-Z0-9_])'
60557 for header in string.h strings.h; do
60558 # Check for ordinary declaration
60559 cat >conftest.$ac_ext <<_ACEOF
60560 /* confdefs.h.  */
60561 _ACEOF
60562 cat confdefs.h >>conftest.$ac_ext
60563 cat >>conftest.$ac_ext <<_ACEOF
60564 /* end confdefs.h.  */
60565 #include <$header>
60566
60567 _ACEOF
60568 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60569   $EGREP "${ice_re_word}memset[         ]*\(" >/dev/null 2>&1; then
60570   ice_cv_have_memset_decl=yes
60571 fi
60572 rm -f conftest*
60573
60574 if test "$ice_cv_have_memset_decl" = yes; then
60575         break
60576 fi
60577 # Check for "fixed" declaration like "getpid _PARAMS((int))"
60578 cat >conftest.$ac_ext <<_ACEOF
60579 /* confdefs.h.  */
60580 _ACEOF
60581 cat confdefs.h >>conftest.$ac_ext
60582 cat >>conftest.$ac_ext <<_ACEOF
60583 /* end confdefs.h.  */
60584 #include <$header>
60585
60586 _ACEOF
60587 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60588   $EGREP "${ice_re_word}memset[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
60589   ice_cv_have_memset_decl=yes
60590 fi
60591 rm -f conftest*
60592
60593 if test "$ice_cv_have_memset_decl" = yes; then
60594         break
60595 fi
60596 done
60597
60598 fi
60599
60600 { echo "$as_me:$LINENO: result: $ice_cv_have_memset_decl" >&5
60601 echo "${ECHO_T}$ice_cv_have_memset_decl" >&6; }
60602 if test "$ice_cv_have_memset_decl" = yes; then
60603
60604 cat >>confdefs.h <<_ACEOF
60605 #define HAVE_MEMSET_DECL 1
60606 _ACEOF
60607
60608 fi
60609 fi
60610
60611
60612 ice_have_mkstemp=no
60613
60614 for ac_func in mkstemp
60615 do
60616 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
60617 { echo "$as_me:$LINENO: checking for $ac_func" >&5
60618 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
60619 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
60620   echo $ECHO_N "(cached) $ECHO_C" >&6
60621 else
60622   cat >conftest.$ac_ext <<_ACEOF
60623 /* confdefs.h.  */
60624 _ACEOF
60625 cat confdefs.h >>conftest.$ac_ext
60626 cat >>conftest.$ac_ext <<_ACEOF
60627 /* end confdefs.h.  */
60628 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
60629    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
60630 #define $ac_func innocuous_$ac_func
60631
60632 /* System header to define __stub macros and hopefully few prototypes,
60633     which can conflict with char $ac_func (); below.
60634     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
60635     <limits.h> exists even on freestanding compilers.  */
60636
60637 #ifdef __STDC__
60638 # include <limits.h>
60639 #else
60640 # include <assert.h>
60641 #endif
60642
60643 #undef $ac_func
60644
60645 /* Override any GCC internal prototype to avoid an error.
60646    Use char because int might match the return type of a GCC
60647    builtin and then its argument prototype would still apply.  */
60648 #ifdef __cplusplus
60649 extern "C"
60650 #endif
60651 char $ac_func ();
60652 /* The GNU C library defines this for functions which it implements
60653     to always fail with ENOSYS.  Some functions are actually named
60654     something starting with __ and the normal name is an alias.  */
60655 #if defined __stub_$ac_func || defined __stub___$ac_func
60656 choke me
60657 #endif
60658
60659 int
60660 main ()
60661 {
60662 return $ac_func ();
60663   ;
60664   return 0;
60665 }
60666 _ACEOF
60667 rm -f conftest.$ac_objext conftest$ac_exeext
60668 if { (ac_try="$ac_link"
60669 case "(($ac_try" in
60670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60671   *) ac_try_echo=$ac_try;;
60672 esac
60673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
60674   (eval "$ac_link") 2>conftest.er1
60675   ac_status=$?
60676   grep -v '^ *+' conftest.er1 >conftest.err
60677   rm -f conftest.er1
60678   cat conftest.err >&5
60679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
60680   (exit $ac_status); } && {
60681          test -z "$ac_c_werror_flag" ||
60682          test ! -s conftest.err
60683        } && test -s conftest$ac_exeext &&
60684        $as_test_x conftest$ac_exeext; then
60685   eval "$as_ac_var=yes"
60686 else
60687   echo "$as_me: failed program was:" >&5
60688 sed 's/^/| /' conftest.$ac_ext >&5
60689
60690         eval "$as_ac_var=no"
60691 fi
60692
60693 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
60694       conftest$ac_exeext conftest.$ac_ext
60695 fi
60696 ac_res=`eval echo '${'$as_ac_var'}'`
60697                { echo "$as_me:$LINENO: result: $ac_res" >&5
60698 echo "${ECHO_T}$ac_res" >&6; }
60699 if test `eval echo '${'$as_ac_var'}'` = yes; then
60700   cat >>confdefs.h <<_ACEOF
60701 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
60702 _ACEOF
60703  ice_have_mkstemp=yes
60704 fi
60705 done
60706
60707 if test "${ice_have_mkstemp}" = yes; then
60708 { echo "$as_me:$LINENO: checking for mkstemp declaration in stdlib.h" >&5
60709 echo $ECHO_N "checking for mkstemp declaration in stdlib.h... $ECHO_C" >&6; }
60710 if test "${ice_cv_have_mkstemp_decl+set}" = set; then
60711   echo $ECHO_N "(cached) $ECHO_C" >&6
60712 else
60713
60714 ice_cv_have_mkstemp_decl=no
60715 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
60716 ice_re_word='(^|[^a-zA-Z0-9_])'
60717 for header in stdlib.h; do
60718 # Check for ordinary declaration
60719 cat >conftest.$ac_ext <<_ACEOF
60720 /* confdefs.h.  */
60721 _ACEOF
60722 cat confdefs.h >>conftest.$ac_ext
60723 cat >>conftest.$ac_ext <<_ACEOF
60724 /* end confdefs.h.  */
60725 #include <$header>
60726
60727 _ACEOF
60728 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60729   $EGREP "${ice_re_word}mkstemp[        ]*\(" >/dev/null 2>&1; then
60730   ice_cv_have_mkstemp_decl=yes
60731 fi
60732 rm -f conftest*
60733
60734 if test "$ice_cv_have_mkstemp_decl" = yes; then
60735         break
60736 fi
60737 # Check for "fixed" declaration like "getpid _PARAMS((int))"
60738 cat >conftest.$ac_ext <<_ACEOF
60739 /* confdefs.h.  */
60740 _ACEOF
60741 cat confdefs.h >>conftest.$ac_ext
60742 cat >>conftest.$ac_ext <<_ACEOF
60743 /* end confdefs.h.  */
60744 #include <$header>
60745
60746 _ACEOF
60747 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60748   $EGREP "${ice_re_word}mkstemp[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
60749   ice_cv_have_mkstemp_decl=yes
60750 fi
60751 rm -f conftest*
60752
60753 if test "$ice_cv_have_mkstemp_decl" = yes; then
60754         break
60755 fi
60756 done
60757
60758 fi
60759
60760 { echo "$as_me:$LINENO: result: $ice_cv_have_mkstemp_decl" >&5
60761 echo "${ECHO_T}$ice_cv_have_mkstemp_decl" >&6; }
60762 if test "$ice_cv_have_mkstemp_decl" = yes; then
60763
60764 cat >>confdefs.h <<_ACEOF
60765 #define HAVE_MKSTEMP_DECL 1
60766 _ACEOF
60767
60768 fi
60769 fi
60770
60771
60772 ice_have_mktemp=no
60773
60774 for ac_func in mktemp
60775 do
60776 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
60777 { echo "$as_me:$LINENO: checking for $ac_func" >&5
60778 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
60779 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
60780   echo $ECHO_N "(cached) $ECHO_C" >&6
60781 else
60782   cat >conftest.$ac_ext <<_ACEOF
60783 /* confdefs.h.  */
60784 _ACEOF
60785 cat confdefs.h >>conftest.$ac_ext
60786 cat >>conftest.$ac_ext <<_ACEOF
60787 /* end confdefs.h.  */
60788 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
60789    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
60790 #define $ac_func innocuous_$ac_func
60791
60792 /* System header to define __stub macros and hopefully few prototypes,
60793     which can conflict with char $ac_func (); below.
60794     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
60795     <limits.h> exists even on freestanding compilers.  */
60796
60797 #ifdef __STDC__
60798 # include <limits.h>
60799 #else
60800 # include <assert.h>
60801 #endif
60802
60803 #undef $ac_func
60804
60805 /* Override any GCC internal prototype to avoid an error.
60806    Use char because int might match the return type of a GCC
60807    builtin and then its argument prototype would still apply.  */
60808 #ifdef __cplusplus
60809 extern "C"
60810 #endif
60811 char $ac_func ();
60812 /* The GNU C library defines this for functions which it implements
60813     to always fail with ENOSYS.  Some functions are actually named
60814     something starting with __ and the normal name is an alias.  */
60815 #if defined __stub_$ac_func || defined __stub___$ac_func
60816 choke me
60817 #endif
60818
60819 int
60820 main ()
60821 {
60822 return $ac_func ();
60823   ;
60824   return 0;
60825 }
60826 _ACEOF
60827 rm -f conftest.$ac_objext conftest$ac_exeext
60828 if { (ac_try="$ac_link"
60829 case "(($ac_try" in
60830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60831   *) ac_try_echo=$ac_try;;
60832 esac
60833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
60834   (eval "$ac_link") 2>conftest.er1
60835   ac_status=$?
60836   grep -v '^ *+' conftest.er1 >conftest.err
60837   rm -f conftest.er1
60838   cat conftest.err >&5
60839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
60840   (exit $ac_status); } && {
60841          test -z "$ac_c_werror_flag" ||
60842          test ! -s conftest.err
60843        } && test -s conftest$ac_exeext &&
60844        $as_test_x conftest$ac_exeext; then
60845   eval "$as_ac_var=yes"
60846 else
60847   echo "$as_me: failed program was:" >&5
60848 sed 's/^/| /' conftest.$ac_ext >&5
60849
60850         eval "$as_ac_var=no"
60851 fi
60852
60853 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
60854       conftest$ac_exeext conftest.$ac_ext
60855 fi
60856 ac_res=`eval echo '${'$as_ac_var'}'`
60857                { echo "$as_me:$LINENO: result: $ac_res" >&5
60858 echo "${ECHO_T}$ac_res" >&6; }
60859 if test `eval echo '${'$as_ac_var'}'` = yes; then
60860   cat >>confdefs.h <<_ACEOF
60861 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
60862 _ACEOF
60863  ice_have_mktemp=yes
60864 fi
60865 done
60866
60867 if test "${ice_have_mktemp}" = yes; then
60868 { echo "$as_me:$LINENO: checking for mktemp declaration in stdlib.h" >&5
60869 echo $ECHO_N "checking for mktemp declaration in stdlib.h... $ECHO_C" >&6; }
60870 if test "${ice_cv_have_mktemp_decl+set}" = set; then
60871   echo $ECHO_N "(cached) $ECHO_C" >&6
60872 else
60873
60874 ice_cv_have_mktemp_decl=no
60875 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
60876 ice_re_word='(^|[^a-zA-Z0-9_])'
60877 for header in stdlib.h; do
60878 # Check for ordinary declaration
60879 cat >conftest.$ac_ext <<_ACEOF
60880 /* confdefs.h.  */
60881 _ACEOF
60882 cat confdefs.h >>conftest.$ac_ext
60883 cat >>conftest.$ac_ext <<_ACEOF
60884 /* end confdefs.h.  */
60885 #include <$header>
60886
60887 _ACEOF
60888 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60889   $EGREP "${ice_re_word}mktemp[         ]*\(" >/dev/null 2>&1; then
60890   ice_cv_have_mktemp_decl=yes
60891 fi
60892 rm -f conftest*
60893
60894 if test "$ice_cv_have_mktemp_decl" = yes; then
60895         break
60896 fi
60897 # Check for "fixed" declaration like "getpid _PARAMS((int))"
60898 cat >conftest.$ac_ext <<_ACEOF
60899 /* confdefs.h.  */
60900 _ACEOF
60901 cat confdefs.h >>conftest.$ac_ext
60902 cat >>conftest.$ac_ext <<_ACEOF
60903 /* end confdefs.h.  */
60904 #include <$header>
60905
60906 _ACEOF
60907 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60908   $EGREP "${ice_re_word}mktemp[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
60909   ice_cv_have_mktemp_decl=yes
60910 fi
60911 rm -f conftest*
60912
60913 if test "$ice_cv_have_mktemp_decl" = yes; then
60914         break
60915 fi
60916 done
60917
60918 fi
60919
60920 { echo "$as_me:$LINENO: result: $ice_cv_have_mktemp_decl" >&5
60921 echo "${ECHO_T}$ice_cv_have_mktemp_decl" >&6; }
60922 if test "$ice_cv_have_mktemp_decl" = yes; then
60923
60924 cat >>confdefs.h <<_ACEOF
60925 #define HAVE_MKTEMP_DECL 1
60926 _ACEOF
60927
60928 fi
60929 fi
60930
60931
60932 ice_have_mktime=no
60933
60934 for ac_func in mktime
60935 do
60936 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
60937 { echo "$as_me:$LINENO: checking for $ac_func" >&5
60938 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
60939 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
60940   echo $ECHO_N "(cached) $ECHO_C" >&6
60941 else
60942   cat >conftest.$ac_ext <<_ACEOF
60943 /* confdefs.h.  */
60944 _ACEOF
60945 cat confdefs.h >>conftest.$ac_ext
60946 cat >>conftest.$ac_ext <<_ACEOF
60947 /* end confdefs.h.  */
60948 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
60949    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
60950 #define $ac_func innocuous_$ac_func
60951
60952 /* System header to define __stub macros and hopefully few prototypes,
60953     which can conflict with char $ac_func (); below.
60954     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
60955     <limits.h> exists even on freestanding compilers.  */
60956
60957 #ifdef __STDC__
60958 # include <limits.h>
60959 #else
60960 # include <assert.h>
60961 #endif
60962
60963 #undef $ac_func
60964
60965 /* Override any GCC internal prototype to avoid an error.
60966    Use char because int might match the return type of a GCC
60967    builtin and then its argument prototype would still apply.  */
60968 #ifdef __cplusplus
60969 extern "C"
60970 #endif
60971 char $ac_func ();
60972 /* The GNU C library defines this for functions which it implements
60973     to always fail with ENOSYS.  Some functions are actually named
60974     something starting with __ and the normal name is an alias.  */
60975 #if defined __stub_$ac_func || defined __stub___$ac_func
60976 choke me
60977 #endif
60978
60979 int
60980 main ()
60981 {
60982 return $ac_func ();
60983   ;
60984   return 0;
60985 }
60986 _ACEOF
60987 rm -f conftest.$ac_objext conftest$ac_exeext
60988 if { (ac_try="$ac_link"
60989 case "(($ac_try" in
60990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60991   *) ac_try_echo=$ac_try;;
60992 esac
60993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
60994   (eval "$ac_link") 2>conftest.er1
60995   ac_status=$?
60996   grep -v '^ *+' conftest.er1 >conftest.err
60997   rm -f conftest.er1
60998   cat conftest.err >&5
60999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
61000   (exit $ac_status); } && {
61001          test -z "$ac_c_werror_flag" ||
61002          test ! -s conftest.err
61003        } && test -s conftest$ac_exeext &&
61004        $as_test_x conftest$ac_exeext; then
61005   eval "$as_ac_var=yes"
61006 else
61007   echo "$as_me: failed program was:" >&5
61008 sed 's/^/| /' conftest.$ac_ext >&5
61009
61010         eval "$as_ac_var=no"
61011 fi
61012
61013 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
61014       conftest$ac_exeext conftest.$ac_ext
61015 fi
61016 ac_res=`eval echo '${'$as_ac_var'}'`
61017                { echo "$as_me:$LINENO: result: $ac_res" >&5
61018 echo "${ECHO_T}$ac_res" >&6; }
61019 if test `eval echo '${'$as_ac_var'}'` = yes; then
61020   cat >>confdefs.h <<_ACEOF
61021 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
61022 _ACEOF
61023  ice_have_mktime=yes
61024 fi
61025 done
61026
61027 if test "${ice_have_mktime}" = yes; then
61028 { echo "$as_me:$LINENO: checking for mktime declaration in time.h sys/time.h" >&5
61029 echo $ECHO_N "checking for mktime declaration in time.h sys/time.h... $ECHO_C" >&6; }
61030 if test "${ice_cv_have_mktime_decl+set}" = set; then
61031   echo $ECHO_N "(cached) $ECHO_C" >&6
61032 else
61033
61034 ice_cv_have_mktime_decl=no
61035 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
61036 ice_re_word='(^|[^a-zA-Z0-9_])'
61037 for header in time.h sys/time.h; do
61038 # Check for ordinary declaration
61039 cat >conftest.$ac_ext <<_ACEOF
61040 /* confdefs.h.  */
61041 _ACEOF
61042 cat confdefs.h >>conftest.$ac_ext
61043 cat >>conftest.$ac_ext <<_ACEOF
61044 /* end confdefs.h.  */
61045 #include <$header>
61046
61047 _ACEOF
61048 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61049   $EGREP "${ice_re_word}mktime[         ]*\(" >/dev/null 2>&1; then
61050   ice_cv_have_mktime_decl=yes
61051 fi
61052 rm -f conftest*
61053
61054 if test "$ice_cv_have_mktime_decl" = yes; then
61055         break
61056 fi
61057 # Check for "fixed" declaration like "getpid _PARAMS((int))"
61058 cat >conftest.$ac_ext <<_ACEOF
61059 /* confdefs.h.  */
61060 _ACEOF
61061 cat confdefs.h >>conftest.$ac_ext
61062 cat >>conftest.$ac_ext <<_ACEOF
61063 /* end confdefs.h.  */
61064 #include <$header>
61065
61066 _ACEOF
61067 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61068   $EGREP "${ice_re_word}mktime[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
61069   ice_cv_have_mktime_decl=yes
61070 fi
61071 rm -f conftest*
61072
61073 if test "$ice_cv_have_mktime_decl" = yes; then
61074         break
61075 fi
61076 done
61077
61078 fi
61079
61080 { echo "$as_me:$LINENO: result: $ice_cv_have_mktime_decl" >&5
61081 echo "${ECHO_T}$ice_cv_have_mktime_decl" >&6; }
61082 if test "$ice_cv_have_mktime_decl" = yes; then
61083
61084 cat >>confdefs.h <<_ACEOF
61085 #define HAVE_MKTIME_DECL 1
61086 _ACEOF
61087
61088 fi
61089 fi
61090
61091
61092 for ac_func in on_exit
61093 do
61094 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
61095 { echo "$as_me:$LINENO: checking for $ac_func" >&5
61096 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
61097 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
61098   echo $ECHO_N "(cached) $ECHO_C" >&6
61099 else
61100   cat >conftest.$ac_ext <<_ACEOF
61101 /* confdefs.h.  */
61102 _ACEOF
61103 cat confdefs.h >>conftest.$ac_ext
61104 cat >>conftest.$ac_ext <<_ACEOF
61105 /* end confdefs.h.  */
61106 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
61107    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
61108 #define $ac_func innocuous_$ac_func
61109
61110 /* System header to define __stub macros and hopefully few prototypes,
61111     which can conflict with char $ac_func (); below.
61112     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
61113     <limits.h> exists even on freestanding compilers.  */
61114
61115 #ifdef __STDC__
61116 # include <limits.h>
61117 #else
61118 # include <assert.h>
61119 #endif
61120
61121 #undef $ac_func
61122
61123 /* Override any GCC internal prototype to avoid an error.
61124    Use char because int might match the return type of a GCC
61125    builtin and then its argument prototype would still apply.  */
61126 #ifdef __cplusplus
61127 extern "C"
61128 #endif
61129 char $ac_func ();
61130 /* The GNU C library defines this for functions which it implements
61131     to always fail with ENOSYS.  Some functions are actually named
61132     something starting with __ and the normal name is an alias.  */
61133 #if defined __stub_$ac_func || defined __stub___$ac_func
61134 choke me
61135 #endif
61136
61137 int
61138 main ()
61139 {
61140 return $ac_func ();
61141   ;
61142   return 0;
61143 }
61144 _ACEOF
61145 rm -f conftest.$ac_objext conftest$ac_exeext
61146 if { (ac_try="$ac_link"
61147 case "(($ac_try" in
61148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61149   *) ac_try_echo=$ac_try;;
61150 esac
61151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
61152   (eval "$ac_link") 2>conftest.er1
61153   ac_status=$?
61154   grep -v '^ *+' conftest.er1 >conftest.err
61155   rm -f conftest.er1
61156   cat conftest.err >&5
61157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
61158   (exit $ac_status); } && {
61159          test -z "$ac_c_werror_flag" ||
61160          test ! -s conftest.err
61161        } && test -s conftest$ac_exeext &&
61162        $as_test_x conftest$ac_exeext; then
61163   eval "$as_ac_var=yes"
61164 else
61165   echo "$as_me: failed program was:" >&5
61166 sed 's/^/| /' conftest.$ac_ext >&5
61167
61168         eval "$as_ac_var=no"
61169 fi
61170
61171 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
61172       conftest$ac_exeext conftest.$ac_ext
61173 fi
61174 ac_res=`eval echo '${'$as_ac_var'}'`
61175                { echo "$as_me:$LINENO: result: $ac_res" >&5
61176 echo "${ECHO_T}$ac_res" >&6; }
61177 if test `eval echo '${'$as_ac_var'}'` = yes; then
61178   cat >>confdefs.h <<_ACEOF
61179 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
61180 _ACEOF
61181
61182 fi
61183 done
61184
61185
61186 ice_have_openlog=no
61187
61188 for ac_func in openlog
61189 do
61190 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
61191 { echo "$as_me:$LINENO: checking for $ac_func" >&5
61192 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
61193 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
61194   echo $ECHO_N "(cached) $ECHO_C" >&6
61195 else
61196   cat >conftest.$ac_ext <<_ACEOF
61197 /* confdefs.h.  */
61198 _ACEOF
61199 cat confdefs.h >>conftest.$ac_ext
61200 cat >>conftest.$ac_ext <<_ACEOF
61201 /* end confdefs.h.  */
61202 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
61203    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
61204 #define $ac_func innocuous_$ac_func
61205
61206 /* System header to define __stub macros and hopefully few prototypes,
61207     which can conflict with char $ac_func (); below.
61208     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
61209     <limits.h> exists even on freestanding compilers.  */
61210
61211 #ifdef __STDC__
61212 # include <limits.h>
61213 #else
61214 # include <assert.h>
61215 #endif
61216
61217 #undef $ac_func
61218
61219 /* Override any GCC internal prototype to avoid an error.
61220    Use char because int might match the return type of a GCC
61221    builtin and then its argument prototype would still apply.  */
61222 #ifdef __cplusplus
61223 extern "C"
61224 #endif
61225 char $ac_func ();
61226 /* The GNU C library defines this for functions which it implements
61227     to always fail with ENOSYS.  Some functions are actually named
61228     something starting with __ and the normal name is an alias.  */
61229 #if defined __stub_$ac_func || defined __stub___$ac_func
61230 choke me
61231 #endif
61232
61233 int
61234 main ()
61235 {
61236 return $ac_func ();
61237   ;
61238   return 0;
61239 }
61240 _ACEOF
61241 rm -f conftest.$ac_objext conftest$ac_exeext
61242 if { (ac_try="$ac_link"
61243 case "(($ac_try" in
61244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61245   *) ac_try_echo=$ac_try;;
61246 esac
61247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
61248   (eval "$ac_link") 2>conftest.er1
61249   ac_status=$?
61250   grep -v '^ *+' conftest.er1 >conftest.err
61251   rm -f conftest.er1
61252   cat conftest.err >&5
61253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
61254   (exit $ac_status); } && {
61255          test -z "$ac_c_werror_flag" ||
61256          test ! -s conftest.err
61257        } && test -s conftest$ac_exeext &&
61258        $as_test_x conftest$ac_exeext; then
61259   eval "$as_ac_var=yes"
61260 else
61261   echo "$as_me: failed program was:" >&5
61262 sed 's/^/| /' conftest.$ac_ext >&5
61263
61264         eval "$as_ac_var=no"
61265 fi
61266
61267 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
61268       conftest$ac_exeext conftest.$ac_ext
61269 fi
61270 ac_res=`eval echo '${'$as_ac_var'}'`
61271                { echo "$as_me:$LINENO: result: $ac_res" >&5
61272 echo "${ECHO_T}$ac_res" >&6; }
61273 if test `eval echo '${'$as_ac_var'}'` = yes; then
61274   cat >>confdefs.h <<_ACEOF
61275 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
61276 _ACEOF
61277  ice_have_openlog=yes
61278 fi
61279 done
61280
61281 if test "${ice_have_openlog}" = yes; then
61282 { echo "$as_me:$LINENO: checking for openlog declaration in syslog.h" >&5
61283 echo $ECHO_N "checking for openlog declaration in syslog.h... $ECHO_C" >&6; }
61284 if test "${ice_cv_have_openlog_decl+set}" = set; then
61285   echo $ECHO_N "(cached) $ECHO_C" >&6
61286 else
61287
61288 ice_cv_have_openlog_decl=no
61289 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
61290 ice_re_word='(^|[^a-zA-Z0-9_])'
61291 for header in syslog.h; do
61292 # Check for ordinary declaration
61293 cat >conftest.$ac_ext <<_ACEOF
61294 /* confdefs.h.  */
61295 _ACEOF
61296 cat confdefs.h >>conftest.$ac_ext
61297 cat >>conftest.$ac_ext <<_ACEOF
61298 /* end confdefs.h.  */
61299 #include <$header>
61300
61301 _ACEOF
61302 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61303   $EGREP "${ice_re_word}openlog[        ]*\(" >/dev/null 2>&1; then
61304   ice_cv_have_openlog_decl=yes
61305 fi
61306 rm -f conftest*
61307
61308 if test "$ice_cv_have_openlog_decl" = yes; then
61309         break
61310 fi
61311 # Check for "fixed" declaration like "getpid _PARAMS((int))"
61312 cat >conftest.$ac_ext <<_ACEOF
61313 /* confdefs.h.  */
61314 _ACEOF
61315 cat confdefs.h >>conftest.$ac_ext
61316 cat >>conftest.$ac_ext <<_ACEOF
61317 /* end confdefs.h.  */
61318 #include <$header>
61319
61320 _ACEOF
61321 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61322   $EGREP "${ice_re_word}openlog[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
61323   ice_cv_have_openlog_decl=yes
61324 fi
61325 rm -f conftest*
61326
61327 if test "$ice_cv_have_openlog_decl" = yes; then
61328         break
61329 fi
61330 done
61331
61332 fi
61333
61334 { echo "$as_me:$LINENO: result: $ice_cv_have_openlog_decl" >&5
61335 echo "${ECHO_T}$ice_cv_have_openlog_decl" >&6; }
61336 if test "$ice_cv_have_openlog_decl" = yes; then
61337
61338 cat >>confdefs.h <<_ACEOF
61339 #define HAVE_OPENLOG_DECL 1
61340 _ACEOF
61341
61342 fi
61343 fi
61344
61345
61346 ice_have_pclose=no
61347
61348 for ac_func in pclose
61349 do
61350 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
61351 { echo "$as_me:$LINENO: checking for $ac_func" >&5
61352 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
61353 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
61354   echo $ECHO_N "(cached) $ECHO_C" >&6
61355 else
61356   cat >conftest.$ac_ext <<_ACEOF
61357 /* confdefs.h.  */
61358 _ACEOF
61359 cat confdefs.h >>conftest.$ac_ext
61360 cat >>conftest.$ac_ext <<_ACEOF
61361 /* end confdefs.h.  */
61362 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
61363    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
61364 #define $ac_func innocuous_$ac_func
61365
61366 /* System header to define __stub macros and hopefully few prototypes,
61367     which can conflict with char $ac_func (); below.
61368     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
61369     <limits.h> exists even on freestanding compilers.  */
61370
61371 #ifdef __STDC__
61372 # include <limits.h>
61373 #else
61374 # include <assert.h>
61375 #endif
61376
61377 #undef $ac_func
61378
61379 /* Override any GCC internal prototype to avoid an error.
61380    Use char because int might match the return type of a GCC
61381    builtin and then its argument prototype would still apply.  */
61382 #ifdef __cplusplus
61383 extern "C"
61384 #endif
61385 char $ac_func ();
61386 /* The GNU C library defines this for functions which it implements
61387     to always fail with ENOSYS.  Some functions are actually named
61388     something starting with __ and the normal name is an alias.  */
61389 #if defined __stub_$ac_func || defined __stub___$ac_func
61390 choke me
61391 #endif
61392
61393 int
61394 main ()
61395 {
61396 return $ac_func ();
61397   ;
61398   return 0;
61399 }
61400 _ACEOF
61401 rm -f conftest.$ac_objext conftest$ac_exeext
61402 if { (ac_try="$ac_link"
61403 case "(($ac_try" in
61404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61405   *) ac_try_echo=$ac_try;;
61406 esac
61407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
61408   (eval "$ac_link") 2>conftest.er1
61409   ac_status=$?
61410   grep -v '^ *+' conftest.er1 >conftest.err
61411   rm -f conftest.er1
61412   cat conftest.err >&5
61413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
61414   (exit $ac_status); } && {
61415          test -z "$ac_c_werror_flag" ||
61416          test ! -s conftest.err
61417        } && test -s conftest$ac_exeext &&
61418        $as_test_x conftest$ac_exeext; then
61419   eval "$as_ac_var=yes"
61420 else
61421   echo "$as_me: failed program was:" >&5
61422 sed 's/^/| /' conftest.$ac_ext >&5
61423
61424         eval "$as_ac_var=no"
61425 fi
61426
61427 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
61428       conftest$ac_exeext conftest.$ac_ext
61429 fi
61430 ac_res=`eval echo '${'$as_ac_var'}'`
61431                { echo "$as_me:$LINENO: result: $ac_res" >&5
61432 echo "${ECHO_T}$ac_res" >&6; }
61433 if test `eval echo '${'$as_ac_var'}'` = yes; then
61434   cat >>confdefs.h <<_ACEOF
61435 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
61436 _ACEOF
61437  ice_have_pclose=yes
61438 fi
61439 done
61440
61441 if test "${ice_have_pclose}" = yes; then
61442 { echo "$as_me:$LINENO: checking for pclose declaration in stdio.h" >&5
61443 echo $ECHO_N "checking for pclose declaration in stdio.h... $ECHO_C" >&6; }
61444 if test "${ice_cv_have_pclose_decl+set}" = set; then
61445   echo $ECHO_N "(cached) $ECHO_C" >&6
61446 else
61447
61448 ice_cv_have_pclose_decl=no
61449 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
61450 ice_re_word='(^|[^a-zA-Z0-9_])'
61451 for header in stdio.h; do
61452 # Check for ordinary declaration
61453 cat >conftest.$ac_ext <<_ACEOF
61454 /* confdefs.h.  */
61455 _ACEOF
61456 cat confdefs.h >>conftest.$ac_ext
61457 cat >>conftest.$ac_ext <<_ACEOF
61458 /* end confdefs.h.  */
61459 #include <$header>
61460
61461 _ACEOF
61462 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61463   $EGREP "${ice_re_word}pclose[         ]*\(" >/dev/null 2>&1; then
61464   ice_cv_have_pclose_decl=yes
61465 fi
61466 rm -f conftest*
61467
61468 if test "$ice_cv_have_pclose_decl" = yes; then
61469         break
61470 fi
61471 # Check for "fixed" declaration like "getpid _PARAMS((int))"
61472 cat >conftest.$ac_ext <<_ACEOF
61473 /* confdefs.h.  */
61474 _ACEOF
61475 cat confdefs.h >>conftest.$ac_ext
61476 cat >>conftest.$ac_ext <<_ACEOF
61477 /* end confdefs.h.  */
61478 #include <$header>
61479
61480 _ACEOF
61481 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61482   $EGREP "${ice_re_word}pclose[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
61483   ice_cv_have_pclose_decl=yes
61484 fi
61485 rm -f conftest*
61486
61487 if test "$ice_cv_have_pclose_decl" = yes; then
61488         break
61489 fi
61490 done
61491
61492 fi
61493
61494 { echo "$as_me:$LINENO: result: $ice_cv_have_pclose_decl" >&5
61495 echo "${ECHO_T}$ice_cv_have_pclose_decl" >&6; }
61496 if test "$ice_cv_have_pclose_decl" = yes; then
61497
61498 cat >>confdefs.h <<_ACEOF
61499 #define HAVE_PCLOSE_DECL 1
61500 _ACEOF
61501
61502 fi
61503 fi
61504
61505
61506 ice_have_perror=no
61507
61508 for ac_func in perror
61509 do
61510 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
61511 { echo "$as_me:$LINENO: checking for $ac_func" >&5
61512 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
61513 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
61514   echo $ECHO_N "(cached) $ECHO_C" >&6
61515 else
61516   cat >conftest.$ac_ext <<_ACEOF
61517 /* confdefs.h.  */
61518 _ACEOF
61519 cat confdefs.h >>conftest.$ac_ext
61520 cat >>conftest.$ac_ext <<_ACEOF
61521 /* end confdefs.h.  */
61522 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
61523    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
61524 #define $ac_func innocuous_$ac_func
61525
61526 /* System header to define __stub macros and hopefully few prototypes,
61527     which can conflict with char $ac_func (); below.
61528     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
61529     <limits.h> exists even on freestanding compilers.  */
61530
61531 #ifdef __STDC__
61532 # include <limits.h>
61533 #else
61534 # include <assert.h>
61535 #endif
61536
61537 #undef $ac_func
61538
61539 /* Override any GCC internal prototype to avoid an error.
61540    Use char because int might match the return type of a GCC
61541    builtin and then its argument prototype would still apply.  */
61542 #ifdef __cplusplus
61543 extern "C"
61544 #endif
61545 char $ac_func ();
61546 /* The GNU C library defines this for functions which it implements
61547     to always fail with ENOSYS.  Some functions are actually named
61548     something starting with __ and the normal name is an alias.  */
61549 #if defined __stub_$ac_func || defined __stub___$ac_func
61550 choke me
61551 #endif
61552
61553 int
61554 main ()
61555 {
61556 return $ac_func ();
61557   ;
61558   return 0;
61559 }
61560 _ACEOF
61561 rm -f conftest.$ac_objext conftest$ac_exeext
61562 if { (ac_try="$ac_link"
61563 case "(($ac_try" in
61564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61565   *) ac_try_echo=$ac_try;;
61566 esac
61567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
61568   (eval "$ac_link") 2>conftest.er1
61569   ac_status=$?
61570   grep -v '^ *+' conftest.er1 >conftest.err
61571   rm -f conftest.er1
61572   cat conftest.err >&5
61573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
61574   (exit $ac_status); } && {
61575          test -z "$ac_c_werror_flag" ||
61576          test ! -s conftest.err
61577        } && test -s conftest$ac_exeext &&
61578        $as_test_x conftest$ac_exeext; then
61579   eval "$as_ac_var=yes"
61580 else
61581   echo "$as_me: failed program was:" >&5
61582 sed 's/^/| /' conftest.$ac_ext >&5
61583
61584         eval "$as_ac_var=no"
61585 fi
61586
61587 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
61588       conftest$ac_exeext conftest.$ac_ext
61589 fi
61590 ac_res=`eval echo '${'$as_ac_var'}'`
61591                { echo "$as_me:$LINENO: result: $ac_res" >&5
61592 echo "${ECHO_T}$ac_res" >&6; }
61593 if test `eval echo '${'$as_ac_var'}'` = yes; then
61594   cat >>confdefs.h <<_ACEOF
61595 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
61596 _ACEOF
61597  ice_have_perror=yes
61598 fi
61599 done
61600
61601 if test "${ice_have_perror}" = yes; then
61602 { echo "$as_me:$LINENO: checking for perror declaration in stdio.h" >&5
61603 echo $ECHO_N "checking for perror declaration in stdio.h... $ECHO_C" >&6; }
61604 if test "${ice_cv_have_perror_decl+set}" = set; then
61605   echo $ECHO_N "(cached) $ECHO_C" >&6
61606 else
61607
61608 ice_cv_have_perror_decl=no
61609 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
61610 ice_re_word='(^|[^a-zA-Z0-9_])'
61611 for header in stdio.h; do
61612 # Check for ordinary declaration
61613 cat >conftest.$ac_ext <<_ACEOF
61614 /* confdefs.h.  */
61615 _ACEOF
61616 cat confdefs.h >>conftest.$ac_ext
61617 cat >>conftest.$ac_ext <<_ACEOF
61618 /* end confdefs.h.  */
61619 #include <$header>
61620
61621 _ACEOF
61622 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61623   $EGREP "${ice_re_word}perror[         ]*\(" >/dev/null 2>&1; then
61624   ice_cv_have_perror_decl=yes
61625 fi
61626 rm -f conftest*
61627
61628 if test "$ice_cv_have_perror_decl" = yes; then
61629         break
61630 fi
61631 # Check for "fixed" declaration like "getpid _PARAMS((int))"
61632 cat >conftest.$ac_ext <<_ACEOF
61633 /* confdefs.h.  */
61634 _ACEOF
61635 cat confdefs.h >>conftest.$ac_ext
61636 cat >>conftest.$ac_ext <<_ACEOF
61637 /* end confdefs.h.  */
61638 #include <$header>
61639
61640 _ACEOF
61641 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61642   $EGREP "${ice_re_word}perror[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
61643   ice_cv_have_perror_decl=yes
61644 fi
61645 rm -f conftest*
61646
61647 if test "$ice_cv_have_perror_decl" = yes; then
61648         break
61649 fi
61650 done
61651
61652 fi
61653
61654 { echo "$as_me:$LINENO: result: $ice_cv_have_perror_decl" >&5
61655 echo "${ECHO_T}$ice_cv_have_perror_decl" >&6; }
61656 if test "$ice_cv_have_perror_decl" = yes; then
61657
61658 cat >>confdefs.h <<_ACEOF
61659 #define HAVE_PERROR_DECL 1
61660 _ACEOF
61661
61662 fi
61663 fi
61664
61665
61666 ice_have_printf=no
61667
61668 for ac_func in printf
61669 do
61670 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
61671 { echo "$as_me:$LINENO: checking for $ac_func" >&5
61672 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
61673 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
61674   echo $ECHO_N "(cached) $ECHO_C" >&6
61675 else
61676   cat >conftest.$ac_ext <<_ACEOF
61677 /* confdefs.h.  */
61678 _ACEOF
61679 cat confdefs.h >>conftest.$ac_ext
61680 cat >>conftest.$ac_ext <<_ACEOF
61681 /* end confdefs.h.  */
61682 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
61683    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
61684 #define $ac_func innocuous_$ac_func
61685
61686 /* System header to define __stub macros and hopefully few prototypes,
61687     which can conflict with char $ac_func (); below.
61688     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
61689     <limits.h> exists even on freestanding compilers.  */
61690
61691 #ifdef __STDC__
61692 # include <limits.h>
61693 #else
61694 # include <assert.h>
61695 #endif
61696
61697 #undef $ac_func
61698
61699 /* Override any GCC internal prototype to avoid an error.
61700    Use char because int might match the return type of a GCC
61701    builtin and then its argument prototype would still apply.  */
61702 #ifdef __cplusplus
61703 extern "C"
61704 #endif
61705 char $ac_func ();
61706 /* The GNU C library defines this for functions which it implements
61707     to always fail with ENOSYS.  Some functions are actually named
61708     something starting with __ and the normal name is an alias.  */
61709 #if defined __stub_$ac_func || defined __stub___$ac_func
61710 choke me
61711 #endif
61712
61713 int
61714 main ()
61715 {
61716 return $ac_func ();
61717   ;
61718   return 0;
61719 }
61720 _ACEOF
61721 rm -f conftest.$ac_objext conftest$ac_exeext
61722 if { (ac_try="$ac_link"
61723 case "(($ac_try" in
61724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61725   *) ac_try_echo=$ac_try;;
61726 esac
61727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
61728   (eval "$ac_link") 2>conftest.er1
61729   ac_status=$?
61730   grep -v '^ *+' conftest.er1 >conftest.err
61731   rm -f conftest.er1
61732   cat conftest.err >&5
61733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
61734   (exit $ac_status); } && {
61735          test -z "$ac_c_werror_flag" ||
61736          test ! -s conftest.err
61737        } && test -s conftest$ac_exeext &&
61738        $as_test_x conftest$ac_exeext; then
61739   eval "$as_ac_var=yes"
61740 else
61741   echo "$as_me: failed program was:" >&5
61742 sed 's/^/| /' conftest.$ac_ext >&5
61743
61744         eval "$as_ac_var=no"
61745 fi
61746
61747 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
61748       conftest$ac_exeext conftest.$ac_ext
61749 fi
61750 ac_res=`eval echo '${'$as_ac_var'}'`
61751                { echo "$as_me:$LINENO: result: $ac_res" >&5
61752 echo "${ECHO_T}$ac_res" >&6; }
61753 if test `eval echo '${'$as_ac_var'}'` = yes; then
61754   cat >>confdefs.h <<_ACEOF
61755 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
61756 _ACEOF
61757  ice_have_printf=yes
61758 fi
61759 done
61760
61761 if test "${ice_have_printf}" = yes; then
61762 { echo "$as_me:$LINENO: checking for printf declaration in stdio.h" >&5
61763 echo $ECHO_N "checking for printf declaration in stdio.h... $ECHO_C" >&6; }
61764 if test "${ice_cv_have_printf_decl+set}" = set; then
61765   echo $ECHO_N "(cached) $ECHO_C" >&6
61766 else
61767
61768 ice_cv_have_printf_decl=no
61769 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
61770 ice_re_word='(^|[^a-zA-Z0-9_])'
61771 for header in stdio.h; do
61772 # Check for ordinary declaration
61773 cat >conftest.$ac_ext <<_ACEOF
61774 /* confdefs.h.  */
61775 _ACEOF
61776 cat confdefs.h >>conftest.$ac_ext
61777 cat >>conftest.$ac_ext <<_ACEOF
61778 /* end confdefs.h.  */
61779 #include <$header>
61780
61781 _ACEOF
61782 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61783   $EGREP "${ice_re_word}printf[         ]*\(" >/dev/null 2>&1; then
61784   ice_cv_have_printf_decl=yes
61785 fi
61786 rm -f conftest*
61787
61788 if test "$ice_cv_have_printf_decl" = yes; then
61789         break
61790 fi
61791 # Check for "fixed" declaration like "getpid _PARAMS((int))"
61792 cat >conftest.$ac_ext <<_ACEOF
61793 /* confdefs.h.  */
61794 _ACEOF
61795 cat confdefs.h >>conftest.$ac_ext
61796 cat >>conftest.$ac_ext <<_ACEOF
61797 /* end confdefs.h.  */
61798 #include <$header>
61799
61800 _ACEOF
61801 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61802   $EGREP "${ice_re_word}printf[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
61803   ice_cv_have_printf_decl=yes
61804 fi
61805 rm -f conftest*
61806
61807 if test "$ice_cv_have_printf_decl" = yes; then
61808         break
61809 fi
61810 done
61811
61812 fi
61813
61814 { echo "$as_me:$LINENO: result: $ice_cv_have_printf_decl" >&5
61815 echo "${ECHO_T}$ice_cv_have_printf_decl" >&6; }
61816 if test "$ice_cv_have_printf_decl" = yes; then
61817
61818 cat >>confdefs.h <<_ACEOF
61819 #define HAVE_PRINTF_DECL 1
61820 _ACEOF
61821
61822 fi
61823 fi
61824
61825
61826 for ac_func in putenv
61827 do
61828 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
61829 { echo "$as_me:$LINENO: checking for $ac_func" >&5
61830 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
61831 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
61832   echo $ECHO_N "(cached) $ECHO_C" >&6
61833 else
61834   cat >conftest.$ac_ext <<_ACEOF
61835 /* confdefs.h.  */
61836 _ACEOF
61837 cat confdefs.h >>conftest.$ac_ext
61838 cat >>conftest.$ac_ext <<_ACEOF
61839 /* end confdefs.h.  */
61840 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
61841    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
61842 #define $ac_func innocuous_$ac_func
61843
61844 /* System header to define __stub macros and hopefully few prototypes,
61845     which can conflict with char $ac_func (); below.
61846     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
61847     <limits.h> exists even on freestanding compilers.  */
61848
61849 #ifdef __STDC__
61850 # include <limits.h>
61851 #else
61852 # include <assert.h>
61853 #endif
61854
61855 #undef $ac_func
61856
61857 /* Override any GCC internal prototype to avoid an error.
61858    Use char because int might match the return type of a GCC
61859    builtin and then its argument prototype would still apply.  */
61860 #ifdef __cplusplus
61861 extern "C"
61862 #endif
61863 char $ac_func ();
61864 /* The GNU C library defines this for functions which it implements
61865     to always fail with ENOSYS.  Some functions are actually named
61866     something starting with __ and the normal name is an alias.  */
61867 #if defined __stub_$ac_func || defined __stub___$ac_func
61868 choke me
61869 #endif
61870
61871 int
61872 main ()
61873 {
61874 return $ac_func ();
61875   ;
61876   return 0;
61877 }
61878 _ACEOF
61879 rm -f conftest.$ac_objext conftest$ac_exeext
61880 if { (ac_try="$ac_link"
61881 case "(($ac_try" in
61882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61883   *) ac_try_echo=$ac_try;;
61884 esac
61885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
61886   (eval "$ac_link") 2>conftest.er1
61887   ac_status=$?
61888   grep -v '^ *+' conftest.er1 >conftest.err
61889   rm -f conftest.er1
61890   cat conftest.err >&5
61891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
61892   (exit $ac_status); } && {
61893          test -z "$ac_c_werror_flag" ||
61894          test ! -s conftest.err
61895        } && test -s conftest$ac_exeext &&
61896        $as_test_x conftest$ac_exeext; then
61897   eval "$as_ac_var=yes"
61898 else
61899   echo "$as_me: failed program was:" >&5
61900 sed 's/^/| /' conftest.$ac_ext >&5
61901
61902         eval "$as_ac_var=no"
61903 fi
61904
61905 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
61906       conftest$ac_exeext conftest.$ac_ext
61907 fi
61908 ac_res=`eval echo '${'$as_ac_var'}'`
61909                { echo "$as_me:$LINENO: result: $ac_res" >&5
61910 echo "${ECHO_T}$ac_res" >&6; }
61911 if test `eval echo '${'$as_ac_var'}'` = yes; then
61912   cat >>confdefs.h <<_ACEOF
61913 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
61914 _ACEOF
61915
61916 fi
61917 done
61918
61919
61920 ice_have_puts=no
61921
61922 for ac_func in puts
61923 do
61924 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
61925 { echo "$as_me:$LINENO: checking for $ac_func" >&5
61926 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
61927 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
61928   echo $ECHO_N "(cached) $ECHO_C" >&6
61929 else
61930   cat >conftest.$ac_ext <<_ACEOF
61931 /* confdefs.h.  */
61932 _ACEOF
61933 cat confdefs.h >>conftest.$ac_ext
61934 cat >>conftest.$ac_ext <<_ACEOF
61935 /* end confdefs.h.  */
61936 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
61937    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
61938 #define $ac_func innocuous_$ac_func
61939
61940 /* System header to define __stub macros and hopefully few prototypes,
61941     which can conflict with char $ac_func (); below.
61942     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
61943     <limits.h> exists even on freestanding compilers.  */
61944
61945 #ifdef __STDC__
61946 # include <limits.h>
61947 #else
61948 # include <assert.h>
61949 #endif
61950
61951 #undef $ac_func
61952
61953 /* Override any GCC internal prototype to avoid an error.
61954    Use char because int might match the return type of a GCC
61955    builtin and then its argument prototype would still apply.  */
61956 #ifdef __cplusplus
61957 extern "C"
61958 #endif
61959 char $ac_func ();
61960 /* The GNU C library defines this for functions which it implements
61961     to always fail with ENOSYS.  Some functions are actually named
61962     something starting with __ and the normal name is an alias.  */
61963 #if defined __stub_$ac_func || defined __stub___$ac_func
61964 choke me
61965 #endif
61966
61967 int
61968 main ()
61969 {
61970 return $ac_func ();
61971   ;
61972   return 0;
61973 }
61974 _ACEOF
61975 rm -f conftest.$ac_objext conftest$ac_exeext
61976 if { (ac_try="$ac_link"
61977 case "(($ac_try" in
61978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61979   *) ac_try_echo=$ac_try;;
61980 esac
61981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
61982   (eval "$ac_link") 2>conftest.er1
61983   ac_status=$?
61984   grep -v '^ *+' conftest.er1 >conftest.err
61985   rm -f conftest.er1
61986   cat conftest.err >&5
61987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
61988   (exit $ac_status); } && {
61989          test -z "$ac_c_werror_flag" ||
61990          test ! -s conftest.err
61991        } && test -s conftest$ac_exeext &&
61992        $as_test_x conftest$ac_exeext; then
61993   eval "$as_ac_var=yes"
61994 else
61995   echo "$as_me: failed program was:" >&5
61996 sed 's/^/| /' conftest.$ac_ext >&5
61997
61998         eval "$as_ac_var=no"
61999 fi
62000
62001 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
62002       conftest$ac_exeext conftest.$ac_ext
62003 fi
62004 ac_res=`eval echo '${'$as_ac_var'}'`
62005                { echo "$as_me:$LINENO: result: $ac_res" >&5
62006 echo "${ECHO_T}$ac_res" >&6; }
62007 if test `eval echo '${'$as_ac_var'}'` = yes; then
62008   cat >>confdefs.h <<_ACEOF
62009 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
62010 _ACEOF
62011  ice_have_puts=yes
62012 fi
62013 done
62014
62015 if test "${ice_have_puts}" = yes; then
62016 { echo "$as_me:$LINENO: checking for puts declaration in stdio.h" >&5
62017 echo $ECHO_N "checking for puts declaration in stdio.h... $ECHO_C" >&6; }
62018 if test "${ice_cv_have_puts_decl+set}" = set; then
62019   echo $ECHO_N "(cached) $ECHO_C" >&6
62020 else
62021
62022 ice_cv_have_puts_decl=no
62023 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
62024 ice_re_word='(^|[^a-zA-Z0-9_])'
62025 for header in stdio.h; do
62026 # Check for ordinary declaration
62027 cat >conftest.$ac_ext <<_ACEOF
62028 /* confdefs.h.  */
62029 _ACEOF
62030 cat confdefs.h >>conftest.$ac_ext
62031 cat >>conftest.$ac_ext <<_ACEOF
62032 /* end confdefs.h.  */
62033 #include <$header>
62034
62035 _ACEOF
62036 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
62037   $EGREP "${ice_re_word}puts[   ]*\(" >/dev/null 2>&1; then
62038   ice_cv_have_puts_decl=yes
62039 fi
62040 rm -f conftest*
62041
62042 if test "$ice_cv_have_puts_decl" = yes; then
62043         break
62044 fi
62045 # Check for "fixed" declaration like "getpid _PARAMS((int))"
62046 cat >conftest.$ac_ext <<_ACEOF
62047 /* confdefs.h.  */
62048 _ACEOF
62049 cat confdefs.h >>conftest.$ac_ext
62050 cat >>conftest.$ac_ext <<_ACEOF
62051 /* end confdefs.h.  */
62052 #include <$header>
62053
62054 _ACEOF
62055 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
62056   $EGREP "${ice_re_word}puts[   ]*$ice_re_params\(\(" >/dev/null 2>&1; then
62057   ice_cv_have_puts_decl=yes
62058 fi
62059 rm -f conftest*
62060
62061 if test "$ice_cv_have_puts_decl" = yes; then
62062         break
62063 fi
62064 done
62065
62066 fi
62067
62068 { echo "$as_me:$LINENO: result: $ice_cv_have_puts_decl" >&5
62069 echo "${ECHO_T}$ice_cv_have_puts_decl" >&6; }
62070 if test "$ice_cv_have_puts_decl" = yes; then
62071
62072 cat >>confdefs.h <<_ACEOF
62073 #define HAVE_PUTS_DECL 1
62074 _ACEOF
62075
62076 fi
62077 fi
62078
62079
62080 ice_have_realloc=no
62081
62082 for ac_func in realloc
62083 do
62084 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
62085 { echo "$as_me:$LINENO: checking for $ac_func" >&5
62086 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
62087 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
62088   echo $ECHO_N "(cached) $ECHO_C" >&6
62089 else
62090   cat >conftest.$ac_ext <<_ACEOF
62091 /* confdefs.h.  */
62092 _ACEOF
62093 cat confdefs.h >>conftest.$ac_ext
62094 cat >>conftest.$ac_ext <<_ACEOF
62095 /* end confdefs.h.  */
62096 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
62097    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
62098 #define $ac_func innocuous_$ac_func
62099
62100 /* System header to define __stub macros and hopefully few prototypes,
62101     which can conflict with char $ac_func (); below.
62102     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
62103     <limits.h> exists even on freestanding compilers.  */
62104
62105 #ifdef __STDC__
62106 # include <limits.h>
62107 #else
62108 # include <assert.h>
62109 #endif
62110
62111 #undef $ac_func
62112
62113 /* Override any GCC internal prototype to avoid an error.
62114    Use char because int might match the return type of a GCC
62115    builtin and then its argument prototype would still apply.  */
62116 #ifdef __cplusplus
62117 extern "C"
62118 #endif
62119 char $ac_func ();
62120 /* The GNU C library defines this for functions which it implements
62121     to always fail with ENOSYS.  Some functions are actually named
62122     something starting with __ and the normal name is an alias.  */
62123 #if defined __stub_$ac_func || defined __stub___$ac_func
62124 choke me
62125 #endif
62126
62127 int
62128 main ()
62129 {
62130 return $ac_func ();
62131   ;
62132   return 0;
62133 }
62134 _ACEOF
62135 rm -f conftest.$ac_objext conftest$ac_exeext
62136 if { (ac_try="$ac_link"
62137 case "(($ac_try" in
62138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62139   *) ac_try_echo=$ac_try;;
62140 esac
62141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
62142   (eval "$ac_link") 2>conftest.er1
62143   ac_status=$?
62144   grep -v '^ *+' conftest.er1 >conftest.err
62145   rm -f conftest.er1
62146   cat conftest.err >&5
62147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
62148   (exit $ac_status); } && {
62149          test -z "$ac_c_werror_flag" ||
62150          test ! -s conftest.err
62151        } && test -s conftest$ac_exeext &&
62152        $as_test_x conftest$ac_exeext; then
62153   eval "$as_ac_var=yes"
62154 else
62155   echo "$as_me: failed program was:" >&5
62156 sed 's/^/| /' conftest.$ac_ext >&5
62157
62158         eval "$as_ac_var=no"
62159 fi
62160
62161 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
62162       conftest$ac_exeext conftest.$ac_ext
62163 fi
62164 ac_res=`eval echo '${'$as_ac_var'}'`
62165                { echo "$as_me:$LINENO: result: $ac_res" >&5
62166 echo "${ECHO_T}$ac_res" >&6; }
62167 if test `eval echo '${'$as_ac_var'}'` = yes; then
62168   cat >>confdefs.h <<_ACEOF
62169 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
62170 _ACEOF
62171  ice_have_realloc=yes
62172 fi
62173 done
62174
62175 if test "${ice_have_realloc}" = yes; then
62176 { echo "$as_me:$LINENO: checking for realloc declaration in stdlib.h" >&5
62177 echo $ECHO_N "checking for realloc declaration in stdlib.h... $ECHO_C" >&6; }
62178 if test "${ice_cv_have_realloc_decl+set}" = set; then
62179   echo $ECHO_N "(cached) $ECHO_C" >&6
62180 else
62181
62182 ice_cv_have_realloc_decl=no
62183 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
62184 ice_re_word='(^|[^a-zA-Z0-9_])'
62185 for header in stdlib.h; do
62186 # Check for ordinary declaration
62187 cat >conftest.$ac_ext <<_ACEOF
62188 /* confdefs.h.  */
62189 _ACEOF
62190 cat confdefs.h >>conftest.$ac_ext
62191 cat >>conftest.$ac_ext <<_ACEOF
62192 /* end confdefs.h.  */
62193 #include <$header>
62194
62195 _ACEOF
62196 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
62197   $EGREP "${ice_re_word}realloc[        ]*\(" >/dev/null 2>&1; then
62198   ice_cv_have_realloc_decl=yes
62199 fi
62200 rm -f conftest*
62201
62202 if test "$ice_cv_have_realloc_decl" = yes; then
62203         break
62204 fi
62205 # Check for "fixed" declaration like "getpid _PARAMS((int))"
62206 cat >conftest.$ac_ext <<_ACEOF
62207 /* confdefs.h.  */
62208 _ACEOF
62209 cat confdefs.h >>conftest.$ac_ext
62210 cat >>conftest.$ac_ext <<_ACEOF
62211 /* end confdefs.h.  */
62212 #include <$header>
62213
62214 _ACEOF
62215 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
62216   $EGREP "${ice_re_word}realloc[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
62217   ice_cv_have_realloc_decl=yes
62218 fi
62219 rm -f conftest*
62220
62221 if test "$ice_cv_have_realloc_decl" = yes; then
62222         break
62223 fi
62224 done
62225
62226 fi
62227
62228 { echo "$as_me:$LINENO: result: $ice_cv_have_realloc_decl" >&5
62229 echo "${ECHO_T}$ice_cv_have_realloc_decl" >&6; }
62230 if test "$ice_cv_have_realloc_decl" = yes; then
62231
62232 cat >>confdefs.h <<_ACEOF
62233 #define HAVE_REALLOC_DECL 1
62234 _ACEOF
62235
62236 fi
62237 fi
62238
62239
62240 ice_have_recvfrom=no
62241
62242 for ac_func in recvfrom
62243 do
62244 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
62245 { echo "$as_me:$LINENO: checking for $ac_func" >&5
62246 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
62247 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
62248   echo $ECHO_N "(cached) $ECHO_C" >&6
62249 else
62250   cat >conftest.$ac_ext <<_ACEOF
62251 /* confdefs.h.  */
62252 _ACEOF
62253 cat confdefs.h >>conftest.$ac_ext
62254 cat >>conftest.$ac_ext <<_ACEOF
62255 /* end confdefs.h.  */
62256 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
62257    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
62258 #define $ac_func innocuous_$ac_func
62259
62260 /* System header to define __stub macros and hopefully few prototypes,
62261     which can conflict with char $ac_func (); below.
62262     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
62263     <limits.h> exists even on freestanding compilers.  */
62264
62265 #ifdef __STDC__
62266 # include <limits.h>
62267 #else
62268 # include <assert.h>
62269 #endif
62270
62271 #undef $ac_func
62272
62273 /* Override any GCC internal prototype to avoid an error.
62274    Use char because int might match the return type of a GCC
62275    builtin and then its argument prototype would still apply.  */
62276 #ifdef __cplusplus
62277 extern "C"
62278 #endif
62279 char $ac_func ();
62280 /* The GNU C library defines this for functions which it implements
62281     to always fail with ENOSYS.  Some functions are actually named
62282     something starting with __ and the normal name is an alias.  */
62283 #if defined __stub_$ac_func || defined __stub___$ac_func
62284 choke me
62285 #endif
62286
62287 int
62288 main ()
62289 {
62290 return $ac_func ();
62291   ;
62292   return 0;
62293 }
62294 _ACEOF
62295 rm -f conftest.$ac_objext conftest$ac_exeext
62296 if { (ac_try="$ac_link"
62297 case "(($ac_try" in
62298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62299   *) ac_try_echo=$ac_try;;
62300 esac
62301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
62302   (eval "$ac_link") 2>conftest.er1
62303   ac_status=$?
62304   grep -v '^ *+' conftest.er1 >conftest.err
62305   rm -f conftest.er1
62306   cat conftest.err >&5
62307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
62308   (exit $ac_status); } && {
62309          test -z "$ac_c_werror_flag" ||
62310          test ! -s conftest.err
62311        } && test -s conftest$ac_exeext &&
62312        $as_test_x conftest$ac_exeext; then
62313   eval "$as_ac_var=yes"
62314 else
62315   echo "$as_me: failed program was:" >&5
62316 sed 's/^/| /' conftest.$ac_ext >&5
62317
62318         eval "$as_ac_var=no"
62319 fi
62320
62321 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
62322       conftest$ac_exeext conftest.$ac_ext
62323 fi
62324 ac_res=`eval echo '${'$as_ac_var'}'`
62325                { echo "$as_me:$LINENO: result: $ac_res" >&5
62326 echo "${ECHO_T}$ac_res" >&6; }
62327 if test `eval echo '${'$as_ac_var'}'` = yes; then
62328   cat >>confdefs.h <<_ACEOF
62329 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
62330 _ACEOF
62331  ice_have_recvfrom=yes
62332 fi
62333 done
62334
62335 if test "${ice_have_recvfrom}" = yes; then
62336 { echo "$as_me:$LINENO: checking for recvfrom declaration in sys/types.h sys/socket.h" >&5
62337 echo $ECHO_N "checking for recvfrom declaration in sys/types.h sys/socket.h... $ECHO_C" >&6; }
62338 if test "${ice_cv_have_recvfrom_decl+set}" = set; then
62339   echo $ECHO_N "(cached) $ECHO_C" >&6
62340 else
62341
62342 ice_cv_have_recvfrom_decl=no
62343 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
62344 ice_re_word='(^|[^a-zA-Z0-9_])'
62345 for header in sys/types.h sys/socket.h; do
62346 # Check for ordinary declaration
62347 cat >conftest.$ac_ext <<_ACEOF
62348 /* confdefs.h.  */
62349 _ACEOF
62350 cat confdefs.h >>conftest.$ac_ext
62351 cat >>conftest.$ac_ext <<_ACEOF
62352 /* end confdefs.h.  */
62353 #include <$header>
62354
62355 _ACEOF
62356 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
62357   $EGREP "${ice_re_word}recvfrom[       ]*\(" >/dev/null 2>&1; then
62358   ice_cv_have_recvfrom_decl=yes
62359 fi
62360 rm -f conftest*
62361
62362 if test "$ice_cv_have_recvfrom_decl" = yes; then
62363         break
62364 fi
62365 # Check for "fixed" declaration like "getpid _PARAMS((int))"
62366 cat >conftest.$ac_ext <<_ACEOF
62367 /* confdefs.h.  */
62368 _ACEOF
62369 cat confdefs.h >>conftest.$ac_ext
62370 cat >>conftest.$ac_ext <<_ACEOF
62371 /* end confdefs.h.  */
62372 #include <$header>
62373
62374 _ACEOF
62375 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
62376   $EGREP "${ice_re_word}recvfrom[       ]*$ice_re_params\(\(" >/dev/null 2>&1; then
62377   ice_cv_have_recvfrom_decl=yes
62378 fi
62379 rm -f conftest*
62380
62381 if test "$ice_cv_have_recvfrom_decl" = yes; then
62382         break
62383 fi
62384 done
62385
62386 fi
62387
62388 { echo "$as_me:$LINENO: result: $ice_cv_have_recvfrom_decl" >&5
62389 echo "${ECHO_T}$ice_cv_have_recvfrom_decl" >&6; }
62390 if test "$ice_cv_have_recvfrom_decl" = yes; then
62391
62392 cat >>confdefs.h <<_ACEOF
62393 #define HAVE_RECVFROM_DECL 1
62394 _ACEOF
62395
62396 fi
62397 fi
62398
62399
62400 ice_have_remove=no
62401
62402 for ac_func in remove
62403 do
62404 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
62405 { echo "$as_me:$LINENO: checking for $ac_func" >&5
62406 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
62407 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
62408   echo $ECHO_N "(cached) $ECHO_C" >&6
62409 else
62410   cat >conftest.$ac_ext <<_ACEOF
62411 /* confdefs.h.  */
62412 _ACEOF
62413 cat confdefs.h >>conftest.$ac_ext
62414 cat >>conftest.$ac_ext <<_ACEOF
62415 /* end confdefs.h.  */
62416 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
62417    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
62418 #define $ac_func innocuous_$ac_func
62419
62420 /* System header to define __stub macros and hopefully few prototypes,
62421     which can conflict with char $ac_func (); below.
62422     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
62423     <limits.h> exists even on freestanding compilers.  */
62424
62425 #ifdef __STDC__
62426 # include <limits.h>
62427 #else
62428 # include <assert.h>
62429 #endif
62430
62431 #undef $ac_func
62432
62433 /* Override any GCC internal prototype to avoid an error.
62434    Use char because int might match the return type of a GCC
62435    builtin and then its argument prototype would still apply.  */
62436 #ifdef __cplusplus
62437 extern "C"
62438 #endif
62439 char $ac_func ();
62440 /* The GNU C library defines this for functions which it implements
62441     to always fail with ENOSYS.  Some functions are actually named
62442     something starting with __ and the normal name is an alias.  */
62443 #if defined __stub_$ac_func || defined __stub___$ac_func
62444 choke me
62445 #endif
62446
62447 int
62448 main ()
62449 {
62450 return $ac_func ();
62451   ;
62452   return 0;
62453 }
62454 _ACEOF
62455 rm -f conftest.$ac_objext conftest$ac_exeext
62456 if { (ac_try="$ac_link"
62457 case "(($ac_try" in
62458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62459   *) ac_try_echo=$ac_try;;
62460 esac
62461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
62462   (eval "$ac_link") 2>conftest.er1
62463   ac_status=$?
62464   grep -v '^ *+' conftest.er1 >conftest.err
62465   rm -f conftest.er1
62466   cat conftest.err >&5
62467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
62468   (exit $ac_status); } && {
62469          test -z "$ac_c_werror_flag" ||
62470          test ! -s conftest.err
62471        } && test -s conftest$ac_exeext &&
62472        $as_test_x conftest$ac_exeext; then
62473   eval "$as_ac_var=yes"
62474 else
62475   echo "$as_me: failed program was:" >&5
62476 sed 's/^/| /' conftest.$ac_ext >&5
62477
62478         eval "$as_ac_var=no"
62479 fi
62480
62481 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
62482       conftest$ac_exeext conftest.$ac_ext
62483 fi
62484 ac_res=`eval echo '${'$as_ac_var'}'`
62485                { echo "$as_me:$LINENO: result: $ac_res" >&5
62486 echo "${ECHO_T}$ac_res" >&6; }
62487 if test `eval echo '${'$as_ac_var'}'` = yes; then
62488   cat >>confdefs.h <<_ACEOF
62489 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
62490 _ACEOF
62491  ice_have_remove=yes
62492 fi
62493 done
62494
62495 if test "${ice_have_remove}" = yes; then
62496 { echo "$as_me:$LINENO: checking for remove declaration in stdio.h" >&5
62497 echo $ECHO_N "checking for remove declaration in stdio.h... $ECHO_C" >&6; }
62498 if test "${ice_cv_have_remove_decl+set}" = set; then
62499   echo $ECHO_N "(cached) $ECHO_C" >&6
62500 else
62501
62502 ice_cv_have_remove_decl=no
62503 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
62504 ice_re_word='(^|[^a-zA-Z0-9_])'
62505 for header in stdio.h; do
62506 # Check for ordinary declaration
62507 cat >conftest.$ac_ext <<_ACEOF
62508 /* confdefs.h.  */
62509 _ACEOF
62510 cat confdefs.h >>conftest.$ac_ext
62511 cat >>conftest.$ac_ext <<_ACEOF
62512 /* end confdefs.h.  */
62513 #include <$header>
62514
62515 _ACEOF
62516 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
62517   $EGREP "${ice_re_word}remove[         ]*\(" >/dev/null 2>&1; then
62518   ice_cv_have_remove_decl=yes
62519 fi
62520 rm -f conftest*
62521
62522 if test "$ice_cv_have_remove_decl" = yes; then
62523         break
62524 fi
62525 # Check for "fixed" declaration like "getpid _PARAMS((int))"
62526 cat >conftest.$ac_ext <<_ACEOF
62527 /* confdefs.h.  */
62528 _ACEOF
62529 cat confdefs.h >>conftest.$ac_ext
62530 cat >>conftest.$ac_ext <<_ACEOF
62531 /* end confdefs.h.  */
62532 #include <$header>
62533
62534 _ACEOF
62535 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
62536   $EGREP "${ice_re_word}remove[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
62537   ice_cv_have_remove_decl=yes
62538 fi
62539 rm -f conftest*
62540
62541 if test "$ice_cv_have_remove_decl" = yes; then
62542         break
62543 fi
62544 done
62545
62546 fi
62547
62548 { echo "$as_me:$LINENO: result: $ice_cv_have_remove_decl" >&5
62549 echo "${ECHO_T}$ice_cv_have_remove_decl" >&6; }
62550 if test "$ice_cv_have_remove_decl" = yes; then
62551
62552 cat >>confdefs.h <<_ACEOF
62553 #define HAVE_REMOVE_DECL 1
62554 _ACEOF
62555
62556 fi
62557 fi
62558
62559
62560 ice_have_rename=no
62561
62562 for ac_func in rename
62563 do
62564 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
62565 { echo "$as_me:$LINENO: checking for $ac_func" >&5
62566 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
62567 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
62568   echo $ECHO_N "(cached) $ECHO_C" >&6
62569 else
62570   cat >conftest.$ac_ext <<_ACEOF
62571 /* confdefs.h.  */
62572 _ACEOF
62573 cat confdefs.h >>conftest.$ac_ext
62574 cat >>conftest.$ac_ext <<_ACEOF
62575 /* end confdefs.h.  */
62576 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
62577    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
62578 #define $ac_func innocuous_$ac_func
62579
62580 /* System header to define __stub macros and hopefully few prototypes,
62581     which can conflict with char $ac_func (); below.
62582     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
62583     <limits.h> exists even on freestanding compilers.  */
62584
62585 #ifdef __STDC__
62586 # include <limits.h>
62587 #else
62588 # include <assert.h>
62589 #endif
62590
62591 #undef $ac_func
62592
62593 /* Override any GCC internal prototype to avoid an error.
62594    Use char because int might match the return type of a GCC
62595    builtin and then its argument prototype would still apply.  */
62596 #ifdef __cplusplus
62597 extern "C"
62598 #endif
62599 char $ac_func ();
62600 /* The GNU C library defines this for functions which it implements
62601     to always fail with ENOSYS.  Some functions are actually named
62602     something starting with __ and the normal name is an alias.  */
62603 #if defined __stub_$ac_func || defined __stub___$ac_func
62604 choke me
62605 #endif
62606
62607 int
62608 main ()
62609 {
62610 return $ac_func ();
62611   ;
62612   return 0;
62613 }
62614 _ACEOF
62615 rm -f conftest.$ac_objext conftest$ac_exeext
62616 if { (ac_try="$ac_link"
62617 case "(($ac_try" in
62618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62619   *) ac_try_echo=$ac_try;;
62620 esac
62621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
62622   (eval "$ac_link") 2>conftest.er1
62623   ac_status=$?
62624   grep -v '^ *+' conftest.er1 >conftest.err
62625   rm -f conftest.er1
62626   cat conftest.err >&5
62627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
62628   (exit $ac_status); } && {
62629          test -z "$ac_c_werror_flag" ||
62630          test ! -s conftest.err
62631        } && test -s conftest$ac_exeext &&
62632        $as_test_x conftest$ac_exeext; then
62633   eval "$as_ac_var=yes"
62634 else
62635   echo "$as_me: failed program was:" >&5
62636 sed 's/^/| /' conftest.$ac_ext >&5
62637
62638         eval "$as_ac_var=no"
62639 fi
62640
62641 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
62642       conftest$ac_exeext conftest.$ac_ext
62643 fi
62644 ac_res=`eval echo '${'$as_ac_var'}'`
62645                { echo "$as_me:$LINENO: result: $ac_res" >&5
62646 echo "${ECHO_T}$ac_res" >&6; }
62647 if test `eval echo '${'$as_ac_var'}'` = yes; then
62648   cat >>confdefs.h <<_ACEOF
62649 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
62650 _ACEOF
62651  ice_have_rename=yes
62652 fi
62653 done
62654
62655 if test "${ice_have_rename}" = yes; then
62656 { echo "$as_me:$LINENO: checking for rename declaration in stdio.h" >&5
62657 echo $ECHO_N "checking for rename declaration in stdio.h... $ECHO_C" >&6; }
62658 if test "${ice_cv_have_rename_decl+set}" = set; then
62659   echo $ECHO_N "(cached) $ECHO_C" >&6
62660 else
62661
62662 ice_cv_have_rename_decl=no
62663 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
62664 ice_re_word='(^|[^a-zA-Z0-9_])'
62665 for header in stdio.h; do
62666 # Check for ordinary declaration
62667 cat >conftest.$ac_ext <<_ACEOF
62668 /* confdefs.h.  */
62669 _ACEOF
62670 cat confdefs.h >>conftest.$ac_ext
62671 cat >>conftest.$ac_ext <<_ACEOF
62672 /* end confdefs.h.  */
62673 #include <$header>
62674
62675 _ACEOF
62676 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
62677   $EGREP "${ice_re_word}rename[         ]*\(" >/dev/null 2>&1; then
62678   ice_cv_have_rename_decl=yes
62679 fi
62680 rm -f conftest*
62681
62682 if test "$ice_cv_have_rename_decl" = yes; then
62683         break
62684 fi
62685 # Check for "fixed" declaration like "getpid _PARAMS((int))"
62686 cat >conftest.$ac_ext <<_ACEOF
62687 /* confdefs.h.  */
62688 _ACEOF
62689 cat confdefs.h >>conftest.$ac_ext
62690 cat >>conftest.$ac_ext <<_ACEOF
62691 /* end confdefs.h.  */
62692 #include <$header>
62693
62694 _ACEOF
62695 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
62696   $EGREP "${ice_re_word}rename[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
62697   ice_cv_have_rename_decl=yes
62698 fi
62699 rm -f conftest*
62700
62701 if test "$ice_cv_have_rename_decl" = yes; then
62702         break
62703 fi
62704 done
62705
62706 fi
62707
62708 { echo "$as_me:$LINENO: result: $ice_cv_have_rename_decl" >&5
62709 echo "${ECHO_T}$ice_cv_have_rename_decl" >&6; }
62710 if test "$ice_cv_have_rename_decl" = yes; then
62711
62712 cat >>confdefs.h <<_ACEOF
62713 #define HAVE_RENAME_DECL 1
62714 _ACEOF
62715
62716 fi
62717 fi
62718
62719
62720 ice_have_rewind=no
62721
62722 for ac_func in rewind
62723 do
62724 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
62725 { echo "$as_me:$LINENO: checking for $ac_func" >&5
62726 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
62727 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
62728   echo $ECHO_N "(cached) $ECHO_C" >&6
62729 else
62730   cat >conftest.$ac_ext <<_ACEOF
62731 /* confdefs.h.  */
62732 _ACEOF
62733 cat confdefs.h >>conftest.$ac_ext
62734 cat >>conftest.$ac_ext <<_ACEOF
62735 /* end confdefs.h.  */
62736 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
62737    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
62738 #define $ac_func innocuous_$ac_func
62739
62740 /* System header to define __stub macros and hopefully few prototypes,
62741     which can conflict with char $ac_func (); below.
62742     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
62743     <limits.h> exists even on freestanding compilers.  */
62744
62745 #ifdef __STDC__
62746 # include <limits.h>
62747 #else
62748 # include <assert.h>
62749 #endif
62750
62751 #undef $ac_func
62752
62753 /* Override any GCC internal prototype to avoid an error.
62754    Use char because int might match the return type of a GCC
62755    builtin and then its argument prototype would still apply.  */
62756 #ifdef __cplusplus
62757 extern "C"
62758 #endif
62759 char $ac_func ();
62760 /* The GNU C library defines this for functions which it implements
62761     to always fail with ENOSYS.  Some functions are actually named
62762     something starting with __ and the normal name is an alias.  */
62763 #if defined __stub_$ac_func || defined __stub___$ac_func
62764 choke me
62765 #endif
62766
62767 int
62768 main ()
62769 {
62770 return $ac_func ();
62771   ;
62772   return 0;
62773 }
62774 _ACEOF
62775 rm -f conftest.$ac_objext conftest$ac_exeext
62776 if { (ac_try="$ac_link"
62777 case "(($ac_try" in
62778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62779   *) ac_try_echo=$ac_try;;
62780 esac
62781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
62782   (eval "$ac_link") 2>conftest.er1
62783   ac_status=$?
62784   grep -v '^ *+' conftest.er1 >conftest.err
62785   rm -f conftest.er1
62786   cat conftest.err >&5
62787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
62788   (exit $ac_status); } && {
62789          test -z "$ac_c_werror_flag" ||
62790          test ! -s conftest.err
62791        } && test -s conftest$ac_exeext &&
62792        $as_test_x conftest$ac_exeext; then
62793   eval "$as_ac_var=yes"
62794 else
62795   echo "$as_me: failed program was:" >&5
62796 sed 's/^/| /' conftest.$ac_ext >&5
62797
62798         eval "$as_ac_var=no"
62799 fi
62800
62801 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
62802       conftest$ac_exeext conftest.$ac_ext
62803 fi
62804 ac_res=`eval echo '${'$as_ac_var'}'`
62805                { echo "$as_me:$LINENO: result: $ac_res" >&5
62806 echo "${ECHO_T}$ac_res" >&6; }
62807 if test `eval echo '${'$as_ac_var'}'` = yes; then
62808   cat >>confdefs.h <<_ACEOF
62809 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
62810 _ACEOF
62811  ice_have_rewind=yes
62812 fi
62813 done
62814
62815 if test "${ice_have_rewind}" = yes; then
62816 { echo "$as_me:$LINENO: checking for rewind declaration in stdio.h" >&5
62817 echo $ECHO_N "checking for rewind declaration in stdio.h... $ECHO_C" >&6; }
62818 if test "${ice_cv_have_rewind_decl+set}" = set; then
62819   echo $ECHO_N "(cached) $ECHO_C" >&6
62820 else
62821
62822 ice_cv_have_rewind_decl=no
62823 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
62824 ice_re_word='(^|[^a-zA-Z0-9_])'
62825 for header in stdio.h; do
62826 # Check for ordinary declaration
62827 cat >conftest.$ac_ext <<_ACEOF
62828 /* confdefs.h.  */
62829 _ACEOF
62830 cat confdefs.h >>conftest.$ac_ext
62831 cat >>conftest.$ac_ext <<_ACEOF
62832 /* end confdefs.h.  */
62833 #include <$header>
62834
62835 _ACEOF
62836 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
62837   $EGREP "${ice_re_word}rewind[         ]*\(" >/dev/null 2>&1; then
62838   ice_cv_have_rewind_decl=yes
62839 fi
62840 rm -f conftest*
62841
62842 if test "$ice_cv_have_rewind_decl" = yes; then
62843         break
62844 fi
62845 # Check for "fixed" declaration like "getpid _PARAMS((int))"
62846 cat >conftest.$ac_ext <<_ACEOF
62847 /* confdefs.h.  */
62848 _ACEOF
62849 cat confdefs.h >>conftest.$ac_ext
62850 cat >>conftest.$ac_ext <<_ACEOF
62851 /* end confdefs.h.  */
62852 #include <$header>
62853
62854 _ACEOF
62855 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
62856   $EGREP "${ice_re_word}rewind[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
62857   ice_cv_have_rewind_decl=yes
62858 fi
62859 rm -f conftest*
62860
62861 if test "$ice_cv_have_rewind_decl" = yes; then
62862         break
62863 fi
62864 done
62865
62866 fi
62867
62868 { echo "$as_me:$LINENO: result: $ice_cv_have_rewind_decl" >&5
62869 echo "${ECHO_T}$ice_cv_have_rewind_decl" >&6; }
62870 if test "$ice_cv_have_rewind_decl" = yes; then
62871
62872 cat >>confdefs.h <<_ACEOF
62873 #define HAVE_REWIND_DECL 1
62874 _ACEOF
62875
62876 fi
62877 fi
62878
62879
62880 ice_have_ruserok=no
62881
62882 for ac_func in ruserok
62883 do
62884 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
62885 { echo "$as_me:$LINENO: checking for $ac_func" >&5
62886 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
62887 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
62888   echo $ECHO_N "(cached) $ECHO_C" >&6
62889 else
62890   cat >conftest.$ac_ext <<_ACEOF
62891 /* confdefs.h.  */
62892 _ACEOF
62893 cat confdefs.h >>conftest.$ac_ext
62894 cat >>conftest.$ac_ext <<_ACEOF
62895 /* end confdefs.h.  */
62896 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
62897    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
62898 #define $ac_func innocuous_$ac_func
62899
62900 /* System header to define __stub macros and hopefully few prototypes,
62901     which can conflict with char $ac_func (); below.
62902     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
62903     <limits.h> exists even on freestanding compilers.  */
62904
62905 #ifdef __STDC__
62906 # include <limits.h>
62907 #else
62908 # include <assert.h>
62909 #endif
62910
62911 #undef $ac_func
62912
62913 /* Override any GCC internal prototype to avoid an error.
62914    Use char because int might match the return type of a GCC
62915    builtin and then its argument prototype would still apply.  */
62916 #ifdef __cplusplus
62917 extern "C"
62918 #endif
62919 char $ac_func ();
62920 /* The GNU C library defines this for functions which it implements
62921     to always fail with ENOSYS.  Some functions are actually named
62922     something starting with __ and the normal name is an alias.  */
62923 #if defined __stub_$ac_func || defined __stub___$ac_func
62924 choke me
62925 #endif
62926
62927 int
62928 main ()
62929 {
62930 return $ac_func ();
62931   ;
62932   return 0;
62933 }
62934 _ACEOF
62935 rm -f conftest.$ac_objext conftest$ac_exeext
62936 if { (ac_try="$ac_link"
62937 case "(($ac_try" in
62938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62939   *) ac_try_echo=$ac_try;;
62940 esac
62941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
62942   (eval "$ac_link") 2>conftest.er1
62943   ac_status=$?
62944   grep -v '^ *+' conftest.er1 >conftest.err
62945   rm -f conftest.er1
62946   cat conftest.err >&5
62947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
62948   (exit $ac_status); } && {
62949          test -z "$ac_c_werror_flag" ||
62950          test ! -s conftest.err
62951        } && test -s conftest$ac_exeext &&
62952        $as_test_x conftest$ac_exeext; then
62953   eval "$as_ac_var=yes"
62954 else
62955   echo "$as_me: failed program was:" >&5
62956 sed 's/^/| /' conftest.$ac_ext >&5
62957
62958         eval "$as_ac_var=no"
62959 fi
62960
62961 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
62962       conftest$ac_exeext conftest.$ac_ext
62963 fi
62964 ac_res=`eval echo '${'$as_ac_var'}'`
62965                { echo "$as_me:$LINENO: result: $ac_res" >&5
62966 echo "${ECHO_T}$ac_res" >&6; }
62967 if test `eval echo '${'$as_ac_var'}'` = yes; then
62968   cat >>confdefs.h <<_ACEOF
62969 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
62970 _ACEOF
62971  ice_have_ruserok=yes
62972 fi
62973 done
62974
62975 if test "${ice_have_ruserok}" = yes; then
62976 { echo "$as_me:$LINENO: checking for ruserok declaration in netdb.h sys/socket.h libc.h unistd.h" >&5
62977 echo $ECHO_N "checking for ruserok declaration in netdb.h sys/socket.h libc.h unistd.h... $ECHO_C" >&6; }
62978 if test "${ice_cv_have_ruserok_decl+set}" = set; then
62979   echo $ECHO_N "(cached) $ECHO_C" >&6
62980 else
62981
62982 ice_cv_have_ruserok_decl=no
62983 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
62984 ice_re_word='(^|[^a-zA-Z0-9_])'
62985 for header in netdb.h sys/socket.h libc.h unistd.h; do
62986 # Check for ordinary declaration
62987 cat >conftest.$ac_ext <<_ACEOF
62988 /* confdefs.h.  */
62989 _ACEOF
62990 cat confdefs.h >>conftest.$ac_ext
62991 cat >>conftest.$ac_ext <<_ACEOF
62992 /* end confdefs.h.  */
62993 #include <$header>
62994
62995 _ACEOF
62996 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
62997   $EGREP "${ice_re_word}ruserok[        ]*\(" >/dev/null 2>&1; then
62998   ice_cv_have_ruserok_decl=yes
62999 fi
63000 rm -f conftest*
63001
63002 if test "$ice_cv_have_ruserok_decl" = yes; then
63003         break
63004 fi
63005 # Check for "fixed" declaration like "getpid _PARAMS((int))"
63006 cat >conftest.$ac_ext <<_ACEOF
63007 /* confdefs.h.  */
63008 _ACEOF
63009 cat confdefs.h >>conftest.$ac_ext
63010 cat >>conftest.$ac_ext <<_ACEOF
63011 /* end confdefs.h.  */
63012 #include <$header>
63013
63014 _ACEOF
63015 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
63016   $EGREP "${ice_re_word}ruserok[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
63017   ice_cv_have_ruserok_decl=yes
63018 fi
63019 rm -f conftest*
63020
63021 if test "$ice_cv_have_ruserok_decl" = yes; then
63022         break
63023 fi
63024 done
63025
63026 fi
63027
63028 { echo "$as_me:$LINENO: result: $ice_cv_have_ruserok_decl" >&5
63029 echo "${ECHO_T}$ice_cv_have_ruserok_decl" >&6; }
63030 if test "$ice_cv_have_ruserok_decl" = yes; then
63031
63032 cat >>confdefs.h <<_ACEOF
63033 #define HAVE_RUSEROK_DECL 1
63034 _ACEOF
63035
63036 fi
63037 fi
63038
63039
63040 ice_have_select=no
63041
63042 for ac_func in select
63043 do
63044 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
63045 { echo "$as_me:$LINENO: checking for $ac_func" >&5
63046 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
63047 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
63048   echo $ECHO_N "(cached) $ECHO_C" >&6
63049 else
63050   cat >conftest.$ac_ext <<_ACEOF
63051 /* confdefs.h.  */
63052 _ACEOF
63053 cat confdefs.h >>conftest.$ac_ext
63054 cat >>conftest.$ac_ext <<_ACEOF
63055 /* end confdefs.h.  */
63056 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
63057    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
63058 #define $ac_func innocuous_$ac_func
63059
63060 /* System header to define __stub macros and hopefully few prototypes,
63061     which can conflict with char $ac_func (); below.
63062     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
63063     <limits.h> exists even on freestanding compilers.  */
63064
63065 #ifdef __STDC__
63066 # include <limits.h>
63067 #else
63068 # include <assert.h>
63069 #endif
63070
63071 #undef $ac_func
63072
63073 /* Override any GCC internal prototype to avoid an error.
63074    Use char because int might match the return type of a GCC
63075    builtin and then its argument prototype would still apply.  */
63076 #ifdef __cplusplus
63077 extern "C"
63078 #endif
63079 char $ac_func ();
63080 /* The GNU C library defines this for functions which it implements
63081     to always fail with ENOSYS.  Some functions are actually named
63082     something starting with __ and the normal name is an alias.  */
63083 #if defined __stub_$ac_func || defined __stub___$ac_func
63084 choke me
63085 #endif
63086
63087 int
63088 main ()
63089 {
63090 return $ac_func ();
63091   ;
63092   return 0;
63093 }
63094 _ACEOF
63095 rm -f conftest.$ac_objext conftest$ac_exeext
63096 if { (ac_try="$ac_link"
63097 case "(($ac_try" in
63098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
63099   *) ac_try_echo=$ac_try;;
63100 esac
63101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
63102   (eval "$ac_link") 2>conftest.er1
63103   ac_status=$?
63104   grep -v '^ *+' conftest.er1 >conftest.err
63105   rm -f conftest.er1
63106   cat conftest.err >&5
63107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
63108   (exit $ac_status); } && {
63109          test -z "$ac_c_werror_flag" ||
63110          test ! -s conftest.err
63111        } && test -s conftest$ac_exeext &&
63112        $as_test_x conftest$ac_exeext; then
63113   eval "$as_ac_var=yes"
63114 else
63115   echo "$as_me: failed program was:" >&5
63116 sed 's/^/| /' conftest.$ac_ext >&5
63117
63118         eval "$as_ac_var=no"
63119 fi
63120
63121 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
63122       conftest$ac_exeext conftest.$ac_ext
63123 fi
63124 ac_res=`eval echo '${'$as_ac_var'}'`
63125                { echo "$as_me:$LINENO: result: $ac_res" >&5
63126 echo "${ECHO_T}$ac_res" >&6; }
63127 if test `eval echo '${'$as_ac_var'}'` = yes; then
63128   cat >>confdefs.h <<_ACEOF
63129 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
63130 _ACEOF
63131  ice_have_select=yes
63132 fi
63133 done
63134
63135 if test "${ice_have_select}" = yes; then
63136 { echo "$as_me:$LINENO: checking for select declaration in sys/types.h sys/socket.h sys/select.h time.h sys/time.h" >&5
63137 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; }
63138 if test "${ice_cv_have_select_decl+set}" = set; then
63139   echo $ECHO_N "(cached) $ECHO_C" >&6
63140 else
63141
63142 ice_cv_have_select_decl=no
63143 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
63144 ice_re_word='(^|[^a-zA-Z0-9_])'
63145 for header in sys/types.h sys/socket.h sys/select.h time.h sys/time.h; do
63146 # Check for ordinary declaration
63147 cat >conftest.$ac_ext <<_ACEOF
63148 /* confdefs.h.  */
63149 _ACEOF
63150 cat confdefs.h >>conftest.$ac_ext
63151 cat >>conftest.$ac_ext <<_ACEOF
63152 /* end confdefs.h.  */
63153 #include <$header>
63154
63155 _ACEOF
63156 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
63157   $EGREP "${ice_re_word}select[         ]*\(" >/dev/null 2>&1; then
63158   ice_cv_have_select_decl=yes
63159 fi
63160 rm -f conftest*
63161
63162 if test "$ice_cv_have_select_decl" = yes; then
63163         break
63164 fi
63165 # Check for "fixed" declaration like "getpid _PARAMS((int))"
63166 cat >conftest.$ac_ext <<_ACEOF
63167 /* confdefs.h.  */
63168 _ACEOF
63169 cat confdefs.h >>conftest.$ac_ext
63170 cat >>conftest.$ac_ext <<_ACEOF
63171 /* end confdefs.h.  */
63172 #include <$header>
63173
63174 _ACEOF
63175 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
63176   $EGREP "${ice_re_word}select[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
63177   ice_cv_have_select_decl=yes
63178 fi
63179 rm -f conftest*
63180
63181 if test "$ice_cv_have_select_decl" = yes; then
63182         break
63183 fi
63184 done
63185
63186 fi
63187
63188 { echo "$as_me:$LINENO: result: $ice_cv_have_select_decl" >&5
63189 echo "${ECHO_T}$ice_cv_have_select_decl" >&6; }
63190 if test "$ice_cv_have_select_decl" = yes; then
63191
63192 cat >>confdefs.h <<_ACEOF
63193 #define HAVE_SELECT_DECL 1
63194 _ACEOF
63195
63196 fi
63197 fi
63198
63199
63200
63201
63202
63203
63204
63205
63206 for ac_header in sys/time.h \
63207             sys/types.h \
63208             sys/select.h \
63209             sys/socket.h \
63210             unistd.h \
63211
63212 do
63213 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
63214 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
63215   { echo "$as_me:$LINENO: checking for $ac_header" >&5
63216 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
63217 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
63218   echo $ECHO_N "(cached) $ECHO_C" >&6
63219 fi
63220 ac_res=`eval echo '${'$as_ac_Header'}'`
63221                { echo "$as_me:$LINENO: result: $ac_res" >&5
63222 echo "${ECHO_T}$ac_res" >&6; }
63223 else
63224   # Is the header compilable?
63225 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
63226 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
63227 cat >conftest.$ac_ext <<_ACEOF
63228 /* confdefs.h.  */
63229 _ACEOF
63230 cat confdefs.h >>conftest.$ac_ext
63231 cat >>conftest.$ac_ext <<_ACEOF
63232 /* end confdefs.h.  */
63233 $ac_includes_default
63234 #include <$ac_header>
63235 _ACEOF
63236 rm -f conftest.$ac_objext
63237 if { (ac_try="$ac_compile"
63238 case "(($ac_try" in
63239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
63240   *) ac_try_echo=$ac_try;;
63241 esac
63242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
63243   (eval "$ac_compile") 2>conftest.er1
63244   ac_status=$?
63245   grep -v '^ *+' conftest.er1 >conftest.err
63246   rm -f conftest.er1
63247   cat conftest.err >&5
63248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
63249   (exit $ac_status); } && {
63250          test -z "$ac_c_werror_flag" ||
63251          test ! -s conftest.err
63252        } && test -s conftest.$ac_objext; then
63253   ac_header_compiler=yes
63254 else
63255   echo "$as_me: failed program was:" >&5
63256 sed 's/^/| /' conftest.$ac_ext >&5
63257
63258         ac_header_compiler=no
63259 fi
63260
63261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
63262 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
63263 echo "${ECHO_T}$ac_header_compiler" >&6; }
63264
63265 # Is the header present?
63266 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
63267 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
63268 cat >conftest.$ac_ext <<_ACEOF
63269 /* confdefs.h.  */
63270 _ACEOF
63271 cat confdefs.h >>conftest.$ac_ext
63272 cat >>conftest.$ac_ext <<_ACEOF
63273 /* end confdefs.h.  */
63274 #include <$ac_header>
63275 _ACEOF
63276 if { (ac_try="$ac_cpp conftest.$ac_ext"
63277 case "(($ac_try" in
63278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
63279   *) ac_try_echo=$ac_try;;
63280 esac
63281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
63282   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
63283   ac_status=$?
63284   grep -v '^ *+' conftest.er1 >conftest.err
63285   rm -f conftest.er1
63286   cat conftest.err >&5
63287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
63288   (exit $ac_status); } >/dev/null && {
63289          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
63290          test ! -s conftest.err
63291        }; then
63292   ac_header_preproc=yes
63293 else
63294   echo "$as_me: failed program was:" >&5
63295 sed 's/^/| /' conftest.$ac_ext >&5
63296
63297   ac_header_preproc=no
63298 fi
63299
63300 rm -f conftest.err conftest.$ac_ext
63301 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
63302 echo "${ECHO_T}$ac_header_preproc" >&6; }
63303
63304 # So?  What about this header?
63305 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
63306   yes:no: )
63307     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
63308 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
63309     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
63310 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
63311     ac_header_preproc=yes
63312     ;;
63313   no:yes:* )
63314     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
63315 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
63316     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
63317 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
63318     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
63319 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
63320     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
63321 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
63322     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
63323 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
63324     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
63325 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
63326
63327     ;;
63328 esac
63329 { echo "$as_me:$LINENO: checking for $ac_header" >&5
63330 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
63331 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
63332   echo $ECHO_N "(cached) $ECHO_C" >&6
63333 else
63334   eval "$as_ac_Header=\$ac_header_preproc"
63335 fi
63336 ac_res=`eval echo '${'$as_ac_Header'}'`
63337                { echo "$as_me:$LINENO: result: $ac_res" >&5
63338 echo "${ECHO_T}$ac_res" >&6; }
63339
63340 fi
63341 if test `eval echo '${'$as_ac_Header'}'` = yes; then
63342   cat >>confdefs.h <<_ACEOF
63343 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
63344 _ACEOF
63345
63346 fi
63347
63348 done
63349
63350
63351         { echo "$as_me:$LINENO: checking for select() argument type" >&5
63352 echo $ECHO_N "checking for select() argument type... $ECHO_C" >&6; }
63353 if test "${amanda_cv_select_arg_type+set}" = set; then
63354   echo $ECHO_N "(cached) $ECHO_C" >&6
63355 else
63356
63357                 rm -f conftest.c
63358                 cat <<EOF >conftest.$ac_ext
63359 #include "confdefs.h"
63360 #ifdef TIME_WITH_SYS_TIME
63361 #  include <sys/time.h>
63362 #  include <time.h>
63363 #else
63364 #  ifdef HAVE_SYS_TIME_H
63365 #    include <sys/time.h>
63366 #  else
63367 #    include <time.h>
63368 #  endif
63369 #endif
63370 #ifdef HAVE_SYS_TYPES_H
63371 # include <sys/types.h>
63372 #endif
63373 #ifdef HAVE_SYS_SELECT_H
63374 #  include <sys/select.h>
63375 #endif
63376 #ifdef HAVE_SYS_SOCKET_H
63377 #  include <sys/socket.h>
63378 #endif
63379 #ifdef HAVE_UNISTD_H
63380 # include <unistd.h>
63381 #endif
63382
63383 int main()
63384 {
63385 #ifdef FD_SET_POINTER
63386         (void)select(0, (fd_set *) 0, (fd_set *) 0, (fd_set *) 0, 0);
63387 #else
63388         (void)select(0, (int *) 0, (int *) 0, (int *) 0, 0);
63389 #endif
63390         return 0;
63391 }
63392 EOF
63393
63394                 # Figure out the select argument type by first trying to
63395                 # compile with the fd_set argument.  If the compile fails,
63396                 # then we know to use the int.  If it suceeds, then try to
63397                 # use the int.  If the int fails, then use fd_set.  If
63398                 # both suceeed, then do a line count on the number of
63399                 # lines that the compiler spit out, assuming that the
63400                 # compile outputing more lines had more errors.
63401                 amanda_cv_select_arg_type=no
63402                 select_compile="${CC-cc} -c $CFLAGS $CPPFLAGS"
63403                 $select_compile -DFD_SET_POINTER conftest.$ac_ext 1>conftest.fd_set 2>&1
63404                 if test $? -ne 0; then
63405                     amanda_cv_select_arg_type=int
63406                 fi
63407                 if test "$amanda_cv_select_arg_type" = no; then
63408                     $select_compile conftest.$ac_ext 1>conftest.int 2>&1
63409                     if test $? -ne 0; then
63410                         amanda_cv_select_arg_type=fd_set
63411                     fi
63412                 fi
63413                 if test "$amanda_cv_select_arg_type" = no; then
63414                     wc_fdset=`wc -l <conftest.fd_set`
63415                     wc_int=`wc -l <conftest.int`
63416                     if test "$wc_fdset" -le "$wc_int"; then
63417                         amanda_cv_select_arg_type=fd_set
63418                     else
63419                         amanda_cv_select_arg_type=int
63420                     fi
63421                 fi
63422                 rm -f conftest*
63423
63424
63425 fi
63426 { echo "$as_me:$LINENO: result: $amanda_cv_select_arg_type" >&5
63427 echo "${ECHO_T}$amanda_cv_select_arg_type" >&6; }
63428
63429 cat >>confdefs.h <<_ACEOF
63430 #define SELECT_ARG_TYPE $amanda_cv_select_arg_type
63431 _ACEOF
63432
63433
63434
63435
63436 ice_have_sendto=no
63437
63438 for ac_func in sendto
63439 do
63440 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
63441 { echo "$as_me:$LINENO: checking for $ac_func" >&5
63442 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
63443 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
63444   echo $ECHO_N "(cached) $ECHO_C" >&6
63445 else
63446   cat >conftest.$ac_ext <<_ACEOF
63447 /* confdefs.h.  */
63448 _ACEOF
63449 cat confdefs.h >>conftest.$ac_ext
63450 cat >>conftest.$ac_ext <<_ACEOF
63451 /* end confdefs.h.  */
63452 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
63453    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
63454 #define $ac_func innocuous_$ac_func
63455
63456 /* System header to define __stub macros and hopefully few prototypes,
63457     which can conflict with char $ac_func (); below.
63458     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
63459     <limits.h> exists even on freestanding compilers.  */
63460
63461 #ifdef __STDC__
63462 # include <limits.h>
63463 #else
63464 # include <assert.h>
63465 #endif
63466
63467 #undef $ac_func
63468
63469 /* Override any GCC internal prototype to avoid an error.
63470    Use char because int might match the return type of a GCC
63471    builtin and then its argument prototype would still apply.  */
63472 #ifdef __cplusplus
63473 extern "C"
63474 #endif
63475 char $ac_func ();
63476 /* The GNU C library defines this for functions which it implements
63477     to always fail with ENOSYS.  Some functions are actually named
63478     something starting with __ and the normal name is an alias.  */
63479 #if defined __stub_$ac_func || defined __stub___$ac_func
63480 choke me
63481 #endif
63482
63483 int
63484 main ()
63485 {
63486 return $ac_func ();
63487   ;
63488   return 0;
63489 }
63490 _ACEOF
63491 rm -f conftest.$ac_objext conftest$ac_exeext
63492 if { (ac_try="$ac_link"
63493 case "(($ac_try" in
63494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
63495   *) ac_try_echo=$ac_try;;
63496 esac
63497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
63498   (eval "$ac_link") 2>conftest.er1
63499   ac_status=$?
63500   grep -v '^ *+' conftest.er1 >conftest.err
63501   rm -f conftest.er1
63502   cat conftest.err >&5
63503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
63504   (exit $ac_status); } && {
63505          test -z "$ac_c_werror_flag" ||
63506          test ! -s conftest.err
63507        } && test -s conftest$ac_exeext &&
63508        $as_test_x conftest$ac_exeext; then
63509   eval "$as_ac_var=yes"
63510 else
63511   echo "$as_me: failed program was:" >&5
63512 sed 's/^/| /' conftest.$ac_ext >&5
63513
63514         eval "$as_ac_var=no"
63515 fi
63516
63517 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
63518       conftest$ac_exeext conftest.$ac_ext
63519 fi
63520 ac_res=`eval echo '${'$as_ac_var'}'`
63521                { echo "$as_me:$LINENO: result: $ac_res" >&5
63522 echo "${ECHO_T}$ac_res" >&6; }
63523 if test `eval echo '${'$as_ac_var'}'` = yes; then
63524   cat >>confdefs.h <<_ACEOF
63525 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
63526 _ACEOF
63527  ice_have_sendto=yes
63528 fi
63529 done
63530
63531 if test "${ice_have_sendto}" = yes; then
63532 { echo "$as_me:$LINENO: checking for sendto declaration in sys/types.h sys/socket.h" >&5
63533 echo $ECHO_N "checking for sendto declaration in sys/types.h sys/socket.h... $ECHO_C" >&6; }
63534 if test "${ice_cv_have_sendto_decl+set}" = set; then
63535   echo $ECHO_N "(cached) $ECHO_C" >&6
63536 else
63537
63538 ice_cv_have_sendto_decl=no
63539 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
63540 ice_re_word='(^|[^a-zA-Z0-9_])'
63541 for header in sys/types.h sys/socket.h; do
63542 # Check for ordinary declaration
63543 cat >conftest.$ac_ext <<_ACEOF
63544 /* confdefs.h.  */
63545 _ACEOF
63546 cat confdefs.h >>conftest.$ac_ext
63547 cat >>conftest.$ac_ext <<_ACEOF
63548 /* end confdefs.h.  */
63549 #include <$header>
63550
63551 _ACEOF
63552 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
63553   $EGREP "${ice_re_word}sendto[         ]*\(" >/dev/null 2>&1; then
63554   ice_cv_have_sendto_decl=yes
63555 fi
63556 rm -f conftest*
63557
63558 if test "$ice_cv_have_sendto_decl" = yes; then
63559         break
63560 fi
63561 # Check for "fixed" declaration like "getpid _PARAMS((int))"
63562 cat >conftest.$ac_ext <<_ACEOF
63563 /* confdefs.h.  */
63564 _ACEOF
63565 cat confdefs.h >>conftest.$ac_ext
63566 cat >>conftest.$ac_ext <<_ACEOF
63567 /* end confdefs.h.  */
63568 #include <$header>
63569
63570 _ACEOF
63571 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
63572   $EGREP "${ice_re_word}sendto[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
63573   ice_cv_have_sendto_decl=yes
63574 fi
63575 rm -f conftest*
63576
63577 if test "$ice_cv_have_sendto_decl" = yes; then
63578         break
63579 fi
63580 done
63581
63582 fi
63583
63584 { echo "$as_me:$LINENO: result: $ice_cv_have_sendto_decl" >&5
63585 echo "${ECHO_T}$ice_cv_have_sendto_decl" >&6; }
63586 if test "$ice_cv_have_sendto_decl" = yes; then
63587
63588 cat >>confdefs.h <<_ACEOF
63589 #define HAVE_SENDTO_DECL 1
63590 _ACEOF
63591
63592 fi
63593 fi
63594
63595
63596 ice_have_setegid=no
63597
63598 for ac_func in setegid
63599 do
63600 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
63601 { echo "$as_me:$LINENO: checking for $ac_func" >&5
63602 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
63603 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
63604   echo $ECHO_N "(cached) $ECHO_C" >&6
63605 else
63606   cat >conftest.$ac_ext <<_ACEOF
63607 /* confdefs.h.  */
63608 _ACEOF
63609 cat confdefs.h >>conftest.$ac_ext
63610 cat >>conftest.$ac_ext <<_ACEOF
63611 /* end confdefs.h.  */
63612 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
63613    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
63614 #define $ac_func innocuous_$ac_func
63615
63616 /* System header to define __stub macros and hopefully few prototypes,
63617     which can conflict with char $ac_func (); below.
63618     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
63619     <limits.h> exists even on freestanding compilers.  */
63620
63621 #ifdef __STDC__
63622 # include <limits.h>
63623 #else
63624 # include <assert.h>
63625 #endif
63626
63627 #undef $ac_func
63628
63629 /* Override any GCC internal prototype to avoid an error.
63630    Use char because int might match the return type of a GCC
63631    builtin and then its argument prototype would still apply.  */
63632 #ifdef __cplusplus
63633 extern "C"
63634 #endif
63635 char $ac_func ();
63636 /* The GNU C library defines this for functions which it implements
63637     to always fail with ENOSYS.  Some functions are actually named
63638     something starting with __ and the normal name is an alias.  */
63639 #if defined __stub_$ac_func || defined __stub___$ac_func
63640 choke me
63641 #endif
63642
63643 int
63644 main ()
63645 {
63646 return $ac_func ();
63647   ;
63648   return 0;
63649 }
63650 _ACEOF
63651 rm -f conftest.$ac_objext conftest$ac_exeext
63652 if { (ac_try="$ac_link"
63653 case "(($ac_try" in
63654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
63655   *) ac_try_echo=$ac_try;;
63656 esac
63657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
63658   (eval "$ac_link") 2>conftest.er1
63659   ac_status=$?
63660   grep -v '^ *+' conftest.er1 >conftest.err
63661   rm -f conftest.er1
63662   cat conftest.err >&5
63663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
63664   (exit $ac_status); } && {
63665          test -z "$ac_c_werror_flag" ||
63666          test ! -s conftest.err
63667        } && test -s conftest$ac_exeext &&
63668        $as_test_x conftest$ac_exeext; then
63669   eval "$as_ac_var=yes"
63670 else
63671   echo "$as_me: failed program was:" >&5
63672 sed 's/^/| /' conftest.$ac_ext >&5
63673
63674         eval "$as_ac_var=no"
63675 fi
63676
63677 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
63678       conftest$ac_exeext conftest.$ac_ext
63679 fi
63680 ac_res=`eval echo '${'$as_ac_var'}'`
63681                { echo "$as_me:$LINENO: result: $ac_res" >&5
63682 echo "${ECHO_T}$ac_res" >&6; }
63683 if test `eval echo '${'$as_ac_var'}'` = yes; then
63684   cat >>confdefs.h <<_ACEOF
63685 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
63686 _ACEOF
63687  ice_have_setegid=yes
63688 fi
63689 done
63690
63691 if test "${ice_have_setegid}" = yes; then
63692 { echo "$as_me:$LINENO: checking for setegid declaration in unistd.h" >&5
63693 echo $ECHO_N "checking for setegid declaration in unistd.h... $ECHO_C" >&6; }
63694 if test "${ice_cv_have_setegid_decl+set}" = set; then
63695   echo $ECHO_N "(cached) $ECHO_C" >&6
63696 else
63697
63698 ice_cv_have_setegid_decl=no
63699 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
63700 ice_re_word='(^|[^a-zA-Z0-9_])'
63701 for header in unistd.h; do
63702 # Check for ordinary declaration
63703 cat >conftest.$ac_ext <<_ACEOF
63704 /* confdefs.h.  */
63705 _ACEOF
63706 cat confdefs.h >>conftest.$ac_ext
63707 cat >>conftest.$ac_ext <<_ACEOF
63708 /* end confdefs.h.  */
63709 #include <$header>
63710
63711 _ACEOF
63712 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
63713   $EGREP "${ice_re_word}setegid[        ]*\(" >/dev/null 2>&1; then
63714   ice_cv_have_setegid_decl=yes
63715 fi
63716 rm -f conftest*
63717
63718 if test "$ice_cv_have_setegid_decl" = yes; then
63719         break
63720 fi
63721 # Check for "fixed" declaration like "getpid _PARAMS((int))"
63722 cat >conftest.$ac_ext <<_ACEOF
63723 /* confdefs.h.  */
63724 _ACEOF
63725 cat confdefs.h >>conftest.$ac_ext
63726 cat >>conftest.$ac_ext <<_ACEOF
63727 /* end confdefs.h.  */
63728 #include <$header>
63729
63730 _ACEOF
63731 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
63732   $EGREP "${ice_re_word}setegid[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
63733   ice_cv_have_setegid_decl=yes
63734 fi
63735 rm -f conftest*
63736
63737 if test "$ice_cv_have_setegid_decl" = yes; then
63738         break
63739 fi
63740 done
63741
63742 fi
63743
63744 { echo "$as_me:$LINENO: result: $ice_cv_have_setegid_decl" >&5
63745 echo "${ECHO_T}$ice_cv_have_setegid_decl" >&6; }
63746 if test "$ice_cv_have_setegid_decl" = yes; then
63747
63748 cat >>confdefs.h <<_ACEOF
63749 #define HAVE_SETEGID_DECL 1
63750 _ACEOF
63751
63752 fi
63753 fi
63754
63755
63756 ice_have_seteuid=no
63757
63758 for ac_func in seteuid
63759 do
63760 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
63761 { echo "$as_me:$LINENO: checking for $ac_func" >&5
63762 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
63763 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
63764   echo $ECHO_N "(cached) $ECHO_C" >&6
63765 else
63766   cat >conftest.$ac_ext <<_ACEOF
63767 /* confdefs.h.  */
63768 _ACEOF
63769 cat confdefs.h >>conftest.$ac_ext
63770 cat >>conftest.$ac_ext <<_ACEOF
63771 /* end confdefs.h.  */
63772 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
63773    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
63774 #define $ac_func innocuous_$ac_func
63775
63776 /* System header to define __stub macros and hopefully few prototypes,
63777     which can conflict with char $ac_func (); below.
63778     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
63779     <limits.h> exists even on freestanding compilers.  */
63780
63781 #ifdef __STDC__
63782 # include <limits.h>
63783 #else
63784 # include <assert.h>
63785 #endif
63786
63787 #undef $ac_func
63788
63789 /* Override any GCC internal prototype to avoid an error.
63790    Use char because int might match the return type of a GCC
63791    builtin and then its argument prototype would still apply.  */
63792 #ifdef __cplusplus
63793 extern "C"
63794 #endif
63795 char $ac_func ();
63796 /* The GNU C library defines this for functions which it implements
63797     to always fail with ENOSYS.  Some functions are actually named
63798     something starting with __ and the normal name is an alias.  */
63799 #if defined __stub_$ac_func || defined __stub___$ac_func
63800 choke me
63801 #endif
63802
63803 int
63804 main ()
63805 {
63806 return $ac_func ();
63807   ;
63808   return 0;
63809 }
63810 _ACEOF
63811 rm -f conftest.$ac_objext conftest$ac_exeext
63812 if { (ac_try="$ac_link"
63813 case "(($ac_try" in
63814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
63815   *) ac_try_echo=$ac_try;;
63816 esac
63817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
63818   (eval "$ac_link") 2>conftest.er1
63819   ac_status=$?
63820   grep -v '^ *+' conftest.er1 >conftest.err
63821   rm -f conftest.er1
63822   cat conftest.err >&5
63823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
63824   (exit $ac_status); } && {
63825          test -z "$ac_c_werror_flag" ||
63826          test ! -s conftest.err
63827        } && test -s conftest$ac_exeext &&
63828        $as_test_x conftest$ac_exeext; then
63829   eval "$as_ac_var=yes"
63830 else
63831   echo "$as_me: failed program was:" >&5
63832 sed 's/^/| /' conftest.$ac_ext >&5
63833
63834         eval "$as_ac_var=no"
63835 fi
63836
63837 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
63838       conftest$ac_exeext conftest.$ac_ext
63839 fi
63840 ac_res=`eval echo '${'$as_ac_var'}'`
63841                { echo "$as_me:$LINENO: result: $ac_res" >&5
63842 echo "${ECHO_T}$ac_res" >&6; }
63843 if test `eval echo '${'$as_ac_var'}'` = yes; then
63844   cat >>confdefs.h <<_ACEOF
63845 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
63846 _ACEOF
63847  ice_have_seteuid=yes
63848 fi
63849 done
63850
63851 if test "${ice_have_seteuid}" = yes; then
63852 { echo "$as_me:$LINENO: checking for seteuid declaration in unistd.h" >&5
63853 echo $ECHO_N "checking for seteuid declaration in unistd.h... $ECHO_C" >&6; }
63854 if test "${ice_cv_have_seteuid_decl+set}" = set; then
63855   echo $ECHO_N "(cached) $ECHO_C" >&6
63856 else
63857
63858 ice_cv_have_seteuid_decl=no
63859 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
63860 ice_re_word='(^|[^a-zA-Z0-9_])'
63861 for header in unistd.h; do
63862 # Check for ordinary declaration
63863 cat >conftest.$ac_ext <<_ACEOF
63864 /* confdefs.h.  */
63865 _ACEOF
63866 cat confdefs.h >>conftest.$ac_ext
63867 cat >>conftest.$ac_ext <<_ACEOF
63868 /* end confdefs.h.  */
63869 #include <$header>
63870
63871 _ACEOF
63872 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
63873   $EGREP "${ice_re_word}seteuid[        ]*\(" >/dev/null 2>&1; then
63874   ice_cv_have_seteuid_decl=yes
63875 fi
63876 rm -f conftest*
63877
63878 if test "$ice_cv_have_seteuid_decl" = yes; then
63879         break
63880 fi
63881 # Check for "fixed" declaration like "getpid _PARAMS((int))"
63882 cat >conftest.$ac_ext <<_ACEOF
63883 /* confdefs.h.  */
63884 _ACEOF
63885 cat confdefs.h >>conftest.$ac_ext
63886 cat >>conftest.$ac_ext <<_ACEOF
63887 /* end confdefs.h.  */
63888 #include <$header>
63889
63890 _ACEOF
63891 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
63892   $EGREP "${ice_re_word}seteuid[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
63893   ice_cv_have_seteuid_decl=yes
63894 fi
63895 rm -f conftest*
63896
63897 if test "$ice_cv_have_seteuid_decl" = yes; then
63898         break
63899 fi
63900 done
63901
63902 fi
63903
63904 { echo "$as_me:$LINENO: result: $ice_cv_have_seteuid_decl" >&5
63905 echo "${ECHO_T}$ice_cv_have_seteuid_decl" >&6; }
63906 if test "$ice_cv_have_seteuid_decl" = yes; then
63907
63908 cat >>confdefs.h <<_ACEOF
63909 #define HAVE_SETEUID_DECL 1
63910 _ACEOF
63911
63912 fi
63913 fi
63914
63915
63916 ice_have_setresgid=no
63917
63918 for ac_func in setresgid
63919 do
63920 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
63921 { echo "$as_me:$LINENO: checking for $ac_func" >&5
63922 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
63923 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
63924   echo $ECHO_N "(cached) $ECHO_C" >&6
63925 else
63926   cat >conftest.$ac_ext <<_ACEOF
63927 /* confdefs.h.  */
63928 _ACEOF
63929 cat confdefs.h >>conftest.$ac_ext
63930 cat >>conftest.$ac_ext <<_ACEOF
63931 /* end confdefs.h.  */
63932 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
63933    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
63934 #define $ac_func innocuous_$ac_func
63935
63936 /* System header to define __stub macros and hopefully few prototypes,
63937     which can conflict with char $ac_func (); below.
63938     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
63939     <limits.h> exists even on freestanding compilers.  */
63940
63941 #ifdef __STDC__
63942 # include <limits.h>
63943 #else
63944 # include <assert.h>
63945 #endif
63946
63947 #undef $ac_func
63948
63949 /* Override any GCC internal prototype to avoid an error.
63950    Use char because int might match the return type of a GCC
63951    builtin and then its argument prototype would still apply.  */
63952 #ifdef __cplusplus
63953 extern "C"
63954 #endif
63955 char $ac_func ();
63956 /* The GNU C library defines this for functions which it implements
63957     to always fail with ENOSYS.  Some functions are actually named
63958     something starting with __ and the normal name is an alias.  */
63959 #if defined __stub_$ac_func || defined __stub___$ac_func
63960 choke me
63961 #endif
63962
63963 int
63964 main ()
63965 {
63966 return $ac_func ();
63967   ;
63968   return 0;
63969 }
63970 _ACEOF
63971 rm -f conftest.$ac_objext conftest$ac_exeext
63972 if { (ac_try="$ac_link"
63973 case "(($ac_try" in
63974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
63975   *) ac_try_echo=$ac_try;;
63976 esac
63977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
63978   (eval "$ac_link") 2>conftest.er1
63979   ac_status=$?
63980   grep -v '^ *+' conftest.er1 >conftest.err
63981   rm -f conftest.er1
63982   cat conftest.err >&5
63983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
63984   (exit $ac_status); } && {
63985          test -z "$ac_c_werror_flag" ||
63986          test ! -s conftest.err
63987        } && test -s conftest$ac_exeext &&
63988        $as_test_x conftest$ac_exeext; then
63989   eval "$as_ac_var=yes"
63990 else
63991   echo "$as_me: failed program was:" >&5
63992 sed 's/^/| /' conftest.$ac_ext >&5
63993
63994         eval "$as_ac_var=no"
63995 fi
63996
63997 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
63998       conftest$ac_exeext conftest.$ac_ext
63999 fi
64000 ac_res=`eval echo '${'$as_ac_var'}'`
64001                { echo "$as_me:$LINENO: result: $ac_res" >&5
64002 echo "${ECHO_T}$ac_res" >&6; }
64003 if test `eval echo '${'$as_ac_var'}'` = yes; then
64004   cat >>confdefs.h <<_ACEOF
64005 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
64006 _ACEOF
64007  ice_have_setresgid=yes
64008 fi
64009 done
64010
64011 if test "${ice_have_setresgid}" = yes; then
64012 { echo "$as_me:$LINENO: checking for setresgid declaration in unistd.h" >&5
64013 echo $ECHO_N "checking for setresgid declaration in unistd.h... $ECHO_C" >&6; }
64014 if test "${ice_cv_have_setresgid_decl+set}" = set; then
64015   echo $ECHO_N "(cached) $ECHO_C" >&6
64016 else
64017
64018 ice_cv_have_setresgid_decl=no
64019 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
64020 ice_re_word='(^|[^a-zA-Z0-9_])'
64021 for header in unistd.h; do
64022 # Check for ordinary declaration
64023 cat >conftest.$ac_ext <<_ACEOF
64024 /* confdefs.h.  */
64025 _ACEOF
64026 cat confdefs.h >>conftest.$ac_ext
64027 cat >>conftest.$ac_ext <<_ACEOF
64028 /* end confdefs.h.  */
64029 #include <$header>
64030
64031 _ACEOF
64032 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
64033   $EGREP "${ice_re_word}setresgid[      ]*\(" >/dev/null 2>&1; then
64034   ice_cv_have_setresgid_decl=yes
64035 fi
64036 rm -f conftest*
64037
64038 if test "$ice_cv_have_setresgid_decl" = yes; then
64039         break
64040 fi
64041 # Check for "fixed" declaration like "getpid _PARAMS((int))"
64042 cat >conftest.$ac_ext <<_ACEOF
64043 /* confdefs.h.  */
64044 _ACEOF
64045 cat confdefs.h >>conftest.$ac_ext
64046 cat >>conftest.$ac_ext <<_ACEOF
64047 /* end confdefs.h.  */
64048 #include <$header>
64049
64050 _ACEOF
64051 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
64052   $EGREP "${ice_re_word}setresgid[      ]*$ice_re_params\(\(" >/dev/null 2>&1; then
64053   ice_cv_have_setresgid_decl=yes
64054 fi
64055 rm -f conftest*
64056
64057 if test "$ice_cv_have_setresgid_decl" = yes; then
64058         break
64059 fi
64060 done
64061
64062 fi
64063
64064 { echo "$as_me:$LINENO: result: $ice_cv_have_setresgid_decl" >&5
64065 echo "${ECHO_T}$ice_cv_have_setresgid_decl" >&6; }
64066 if test "$ice_cv_have_setresgid_decl" = yes; then
64067
64068 cat >>confdefs.h <<_ACEOF
64069 #define HAVE_SETRESGID_DECL 1
64070 _ACEOF
64071
64072 fi
64073 fi
64074
64075
64076 ice_have_setresuid=no
64077
64078 for ac_func in setresuid
64079 do
64080 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
64081 { echo "$as_me:$LINENO: checking for $ac_func" >&5
64082 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
64083 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
64084   echo $ECHO_N "(cached) $ECHO_C" >&6
64085 else
64086   cat >conftest.$ac_ext <<_ACEOF
64087 /* confdefs.h.  */
64088 _ACEOF
64089 cat confdefs.h >>conftest.$ac_ext
64090 cat >>conftest.$ac_ext <<_ACEOF
64091 /* end confdefs.h.  */
64092 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
64093    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
64094 #define $ac_func innocuous_$ac_func
64095
64096 /* System header to define __stub macros and hopefully few prototypes,
64097     which can conflict with char $ac_func (); below.
64098     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
64099     <limits.h> exists even on freestanding compilers.  */
64100
64101 #ifdef __STDC__
64102 # include <limits.h>
64103 #else
64104 # include <assert.h>
64105 #endif
64106
64107 #undef $ac_func
64108
64109 /* Override any GCC internal prototype to avoid an error.
64110    Use char because int might match the return type of a GCC
64111    builtin and then its argument prototype would still apply.  */
64112 #ifdef __cplusplus
64113 extern "C"
64114 #endif
64115 char $ac_func ();
64116 /* The GNU C library defines this for functions which it implements
64117     to always fail with ENOSYS.  Some functions are actually named
64118     something starting with __ and the normal name is an alias.  */
64119 #if defined __stub_$ac_func || defined __stub___$ac_func
64120 choke me
64121 #endif
64122
64123 int
64124 main ()
64125 {
64126 return $ac_func ();
64127   ;
64128   return 0;
64129 }
64130 _ACEOF
64131 rm -f conftest.$ac_objext conftest$ac_exeext
64132 if { (ac_try="$ac_link"
64133 case "(($ac_try" in
64134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
64135   *) ac_try_echo=$ac_try;;
64136 esac
64137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
64138   (eval "$ac_link") 2>conftest.er1
64139   ac_status=$?
64140   grep -v '^ *+' conftest.er1 >conftest.err
64141   rm -f conftest.er1
64142   cat conftest.err >&5
64143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
64144   (exit $ac_status); } && {
64145          test -z "$ac_c_werror_flag" ||
64146          test ! -s conftest.err
64147        } && test -s conftest$ac_exeext &&
64148        $as_test_x conftest$ac_exeext; then
64149   eval "$as_ac_var=yes"
64150 else
64151   echo "$as_me: failed program was:" >&5
64152 sed 's/^/| /' conftest.$ac_ext >&5
64153
64154         eval "$as_ac_var=no"
64155 fi
64156
64157 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
64158       conftest$ac_exeext conftest.$ac_ext
64159 fi
64160 ac_res=`eval echo '${'$as_ac_var'}'`
64161                { echo "$as_me:$LINENO: result: $ac_res" >&5
64162 echo "${ECHO_T}$ac_res" >&6; }
64163 if test `eval echo '${'$as_ac_var'}'` = yes; then
64164   cat >>confdefs.h <<_ACEOF
64165 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
64166 _ACEOF
64167  ice_have_setresuid=yes
64168 fi
64169 done
64170
64171 if test "${ice_have_setresuid}" = yes; then
64172 { echo "$as_me:$LINENO: checking for setresuid declaration in unistd.h" >&5
64173 echo $ECHO_N "checking for setresuid declaration in unistd.h... $ECHO_C" >&6; }
64174 if test "${ice_cv_have_setresuid_decl+set}" = set; then
64175   echo $ECHO_N "(cached) $ECHO_C" >&6
64176 else
64177
64178 ice_cv_have_setresuid_decl=no
64179 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
64180 ice_re_word='(^|[^a-zA-Z0-9_])'
64181 for header in unistd.h; do
64182 # Check for ordinary declaration
64183 cat >conftest.$ac_ext <<_ACEOF
64184 /* confdefs.h.  */
64185 _ACEOF
64186 cat confdefs.h >>conftest.$ac_ext
64187 cat >>conftest.$ac_ext <<_ACEOF
64188 /* end confdefs.h.  */
64189 #include <$header>
64190
64191 _ACEOF
64192 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
64193   $EGREP "${ice_re_word}setresuid[      ]*\(" >/dev/null 2>&1; then
64194   ice_cv_have_setresuid_decl=yes
64195 fi
64196 rm -f conftest*
64197
64198 if test "$ice_cv_have_setresuid_decl" = yes; then
64199         break
64200 fi
64201 # Check for "fixed" declaration like "getpid _PARAMS((int))"
64202 cat >conftest.$ac_ext <<_ACEOF
64203 /* confdefs.h.  */
64204 _ACEOF
64205 cat confdefs.h >>conftest.$ac_ext
64206 cat >>conftest.$ac_ext <<_ACEOF
64207 /* end confdefs.h.  */
64208 #include <$header>
64209
64210 _ACEOF
64211 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
64212   $EGREP "${ice_re_word}setresuid[      ]*$ice_re_params\(\(" >/dev/null 2>&1; then
64213   ice_cv_have_setresuid_decl=yes
64214 fi
64215 rm -f conftest*
64216
64217 if test "$ice_cv_have_setresuid_decl" = yes; then
64218         break
64219 fi
64220 done
64221
64222 fi
64223
64224 { echo "$as_me:$LINENO: result: $ice_cv_have_setresuid_decl" >&5
64225 echo "${ECHO_T}$ice_cv_have_setresuid_decl" >&6; }
64226 if test "$ice_cv_have_setresuid_decl" = yes; then
64227
64228 cat >>confdefs.h <<_ACEOF
64229 #define HAVE_SETRESUID_DECL 1
64230 _ACEOF
64231
64232 fi
64233 fi
64234
64235
64236 for ac_func in shquote
64237 do
64238 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
64239 { echo "$as_me:$LINENO: checking for $ac_func" >&5
64240 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
64241 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
64242   echo $ECHO_N "(cached) $ECHO_C" >&6
64243 else
64244   cat >conftest.$ac_ext <<_ACEOF
64245 /* confdefs.h.  */
64246 _ACEOF
64247 cat confdefs.h >>conftest.$ac_ext
64248 cat >>conftest.$ac_ext <<_ACEOF
64249 /* end confdefs.h.  */
64250 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
64251    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
64252 #define $ac_func innocuous_$ac_func
64253
64254 /* System header to define __stub macros and hopefully few prototypes,
64255     which can conflict with char $ac_func (); below.
64256     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
64257     <limits.h> exists even on freestanding compilers.  */
64258
64259 #ifdef __STDC__
64260 # include <limits.h>
64261 #else
64262 # include <assert.h>
64263 #endif
64264
64265 #undef $ac_func
64266
64267 /* Override any GCC internal prototype to avoid an error.
64268    Use char because int might match the return type of a GCC
64269    builtin and then its argument prototype would still apply.  */
64270 #ifdef __cplusplus
64271 extern "C"
64272 #endif
64273 char $ac_func ();
64274 /* The GNU C library defines this for functions which it implements
64275     to always fail with ENOSYS.  Some functions are actually named
64276     something starting with __ and the normal name is an alias.  */
64277 #if defined __stub_$ac_func || defined __stub___$ac_func
64278 choke me
64279 #endif
64280
64281 int
64282 main ()
64283 {
64284 return $ac_func ();
64285   ;
64286   return 0;
64287 }
64288 _ACEOF
64289 rm -f conftest.$ac_objext conftest$ac_exeext
64290 if { (ac_try="$ac_link"
64291 case "(($ac_try" in
64292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
64293   *) ac_try_echo=$ac_try;;
64294 esac
64295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
64296   (eval "$ac_link") 2>conftest.er1
64297   ac_status=$?
64298   grep -v '^ *+' conftest.er1 >conftest.err
64299   rm -f conftest.er1
64300   cat conftest.err >&5
64301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
64302   (exit $ac_status); } && {
64303          test -z "$ac_c_werror_flag" ||
64304          test ! -s conftest.err
64305        } && test -s conftest$ac_exeext &&
64306        $as_test_x conftest$ac_exeext; then
64307   eval "$as_ac_var=yes"
64308 else
64309   echo "$as_me: failed program was:" >&5
64310 sed 's/^/| /' conftest.$ac_ext >&5
64311
64312         eval "$as_ac_var=no"
64313 fi
64314
64315 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
64316       conftest$ac_exeext conftest.$ac_ext
64317 fi
64318 ac_res=`eval echo '${'$as_ac_var'}'`
64319                { echo "$as_me:$LINENO: result: $ac_res" >&5
64320 echo "${ECHO_T}$ac_res" >&6; }
64321 if test `eval echo '${'$as_ac_var'}'` = yes; then
64322   cat >>confdefs.h <<_ACEOF
64323 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
64324 _ACEOF
64325
64326 fi
64327 done
64328
64329
64330 ice_have_snprintf=no
64331
64332 for ac_func in snprintf
64333 do
64334 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
64335 { echo "$as_me:$LINENO: checking for $ac_func" >&5
64336 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
64337 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
64338   echo $ECHO_N "(cached) $ECHO_C" >&6
64339 else
64340   cat >conftest.$ac_ext <<_ACEOF
64341 /* confdefs.h.  */
64342 _ACEOF
64343 cat confdefs.h >>conftest.$ac_ext
64344 cat >>conftest.$ac_ext <<_ACEOF
64345 /* end confdefs.h.  */
64346 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
64347    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
64348 #define $ac_func innocuous_$ac_func
64349
64350 /* System header to define __stub macros and hopefully few prototypes,
64351     which can conflict with char $ac_func (); below.
64352     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
64353     <limits.h> exists even on freestanding compilers.  */
64354
64355 #ifdef __STDC__
64356 # include <limits.h>
64357 #else
64358 # include <assert.h>
64359 #endif
64360
64361 #undef $ac_func
64362
64363 /* Override any GCC internal prototype to avoid an error.
64364    Use char because int might match the return type of a GCC
64365    builtin and then its argument prototype would still apply.  */
64366 #ifdef __cplusplus
64367 extern "C"
64368 #endif
64369 char $ac_func ();
64370 /* The GNU C library defines this for functions which it implements
64371     to always fail with ENOSYS.  Some functions are actually named
64372     something starting with __ and the normal name is an alias.  */
64373 #if defined __stub_$ac_func || defined __stub___$ac_func
64374 choke me
64375 #endif
64376
64377 int
64378 main ()
64379 {
64380 return $ac_func ();
64381   ;
64382   return 0;
64383 }
64384 _ACEOF
64385 rm -f conftest.$ac_objext conftest$ac_exeext
64386 if { (ac_try="$ac_link"
64387 case "(($ac_try" in
64388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
64389   *) ac_try_echo=$ac_try;;
64390 esac
64391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
64392   (eval "$ac_link") 2>conftest.er1
64393   ac_status=$?
64394   grep -v '^ *+' conftest.er1 >conftest.err
64395   rm -f conftest.er1
64396   cat conftest.err >&5
64397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
64398   (exit $ac_status); } && {
64399          test -z "$ac_c_werror_flag" ||
64400          test ! -s conftest.err
64401        } && test -s conftest$ac_exeext &&
64402        $as_test_x conftest$ac_exeext; then
64403   eval "$as_ac_var=yes"
64404 else
64405   echo "$as_me: failed program was:" >&5
64406 sed 's/^/| /' conftest.$ac_ext >&5
64407
64408         eval "$as_ac_var=no"
64409 fi
64410
64411 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
64412       conftest$ac_exeext conftest.$ac_ext
64413 fi
64414 ac_res=`eval echo '${'$as_ac_var'}'`
64415                { echo "$as_me:$LINENO: result: $ac_res" >&5
64416 echo "${ECHO_T}$ac_res" >&6; }
64417 if test `eval echo '${'$as_ac_var'}'` = yes; then
64418   cat >>confdefs.h <<_ACEOF
64419 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
64420 _ACEOF
64421  ice_have_snprintf=yes
64422 fi
64423 done
64424
64425 if test "${ice_have_snprintf}" = yes; then
64426 { echo "$as_me:$LINENO: checking for snprintf declaration in stdio.h" >&5
64427 echo $ECHO_N "checking for snprintf declaration in stdio.h... $ECHO_C" >&6; }
64428 if test "${ice_cv_have_snprintf_decl+set}" = set; then
64429   echo $ECHO_N "(cached) $ECHO_C" >&6
64430 else
64431
64432 ice_cv_have_snprintf_decl=no
64433 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
64434 ice_re_word='(^|[^a-zA-Z0-9_])'
64435 for header in stdio.h; do
64436 # Check for ordinary declaration
64437 cat >conftest.$ac_ext <<_ACEOF
64438 /* confdefs.h.  */
64439 _ACEOF
64440 cat confdefs.h >>conftest.$ac_ext
64441 cat >>conftest.$ac_ext <<_ACEOF
64442 /* end confdefs.h.  */
64443 #include <$header>
64444
64445 _ACEOF
64446 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
64447   $EGREP "${ice_re_word}snprintf[       ]*\(" >/dev/null 2>&1; then
64448   ice_cv_have_snprintf_decl=yes
64449 fi
64450 rm -f conftest*
64451
64452 if test "$ice_cv_have_snprintf_decl" = yes; then
64453         break
64454 fi
64455 # Check for "fixed" declaration like "getpid _PARAMS((int))"
64456 cat >conftest.$ac_ext <<_ACEOF
64457 /* confdefs.h.  */
64458 _ACEOF
64459 cat confdefs.h >>conftest.$ac_ext
64460 cat >>conftest.$ac_ext <<_ACEOF
64461 /* end confdefs.h.  */
64462 #include <$header>
64463
64464 _ACEOF
64465 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
64466   $EGREP "${ice_re_word}snprintf[       ]*$ice_re_params\(\(" >/dev/null 2>&1; then
64467   ice_cv_have_snprintf_decl=yes
64468 fi
64469 rm -f conftest*
64470
64471 if test "$ice_cv_have_snprintf_decl" = yes; then
64472         break
64473 fi
64474 done
64475
64476 fi
64477
64478 { echo "$as_me:$LINENO: result: $ice_cv_have_snprintf_decl" >&5
64479 echo "${ECHO_T}$ice_cv_have_snprintf_decl" >&6; }
64480 if test "$ice_cv_have_snprintf_decl" = yes; then
64481
64482 cat >>confdefs.h <<_ACEOF
64483 #define HAVE_SNPRINTF_DECL 1
64484 _ACEOF
64485
64486 fi
64487 fi
64488
64489
64490 ice_have_vsnprintf=no
64491
64492 for ac_func in vsnprintf
64493 do
64494 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
64495 { echo "$as_me:$LINENO: checking for $ac_func" >&5
64496 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
64497 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
64498   echo $ECHO_N "(cached) $ECHO_C" >&6
64499 else
64500   cat >conftest.$ac_ext <<_ACEOF
64501 /* confdefs.h.  */
64502 _ACEOF
64503 cat confdefs.h >>conftest.$ac_ext
64504 cat >>conftest.$ac_ext <<_ACEOF
64505 /* end confdefs.h.  */
64506 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
64507    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
64508 #define $ac_func innocuous_$ac_func
64509
64510 /* System header to define __stub macros and hopefully few prototypes,
64511     which can conflict with char $ac_func (); below.
64512     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
64513     <limits.h> exists even on freestanding compilers.  */
64514
64515 #ifdef __STDC__
64516 # include <limits.h>
64517 #else
64518 # include <assert.h>
64519 #endif
64520
64521 #undef $ac_func
64522
64523 /* Override any GCC internal prototype to avoid an error.
64524    Use char because int might match the return type of a GCC
64525    builtin and then its argument prototype would still apply.  */
64526 #ifdef __cplusplus
64527 extern "C"
64528 #endif
64529 char $ac_func ();
64530 /* The GNU C library defines this for functions which it implements
64531     to always fail with ENOSYS.  Some functions are actually named
64532     something starting with __ and the normal name is an alias.  */
64533 #if defined __stub_$ac_func || defined __stub___$ac_func
64534 choke me
64535 #endif
64536
64537 int
64538 main ()
64539 {
64540 return $ac_func ();
64541   ;
64542   return 0;
64543 }
64544 _ACEOF
64545 rm -f conftest.$ac_objext conftest$ac_exeext
64546 if { (ac_try="$ac_link"
64547 case "(($ac_try" in
64548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
64549   *) ac_try_echo=$ac_try;;
64550 esac
64551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
64552   (eval "$ac_link") 2>conftest.er1
64553   ac_status=$?
64554   grep -v '^ *+' conftest.er1 >conftest.err
64555   rm -f conftest.er1
64556   cat conftest.err >&5
64557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
64558   (exit $ac_status); } && {
64559          test -z "$ac_c_werror_flag" ||
64560          test ! -s conftest.err
64561        } && test -s conftest$ac_exeext &&
64562        $as_test_x conftest$ac_exeext; then
64563   eval "$as_ac_var=yes"
64564 else
64565   echo "$as_me: failed program was:" >&5
64566 sed 's/^/| /' conftest.$ac_ext >&5
64567
64568         eval "$as_ac_var=no"
64569 fi
64570
64571 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
64572       conftest$ac_exeext conftest.$ac_ext
64573 fi
64574 ac_res=`eval echo '${'$as_ac_var'}'`
64575                { echo "$as_me:$LINENO: result: $ac_res" >&5
64576 echo "${ECHO_T}$ac_res" >&6; }
64577 if test `eval echo '${'$as_ac_var'}'` = yes; then
64578   cat >>confdefs.h <<_ACEOF
64579 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
64580 _ACEOF
64581  ice_have_vsnprintf=yes
64582 fi
64583 done
64584
64585 if test "${ice_have_vsnprintf}" = yes; then
64586 { echo "$as_me:$LINENO: checking for vsnprintf declaration in stdio.h" >&5
64587 echo $ECHO_N "checking for vsnprintf declaration in stdio.h... $ECHO_C" >&6; }
64588 if test "${ice_cv_have_vsnprintf_decl+set}" = set; then
64589   echo $ECHO_N "(cached) $ECHO_C" >&6
64590 else
64591
64592 ice_cv_have_vsnprintf_decl=no
64593 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
64594 ice_re_word='(^|[^a-zA-Z0-9_])'
64595 for header in stdio.h; do
64596 # Check for ordinary declaration
64597 cat >conftest.$ac_ext <<_ACEOF
64598 /* confdefs.h.  */
64599 _ACEOF
64600 cat confdefs.h >>conftest.$ac_ext
64601 cat >>conftest.$ac_ext <<_ACEOF
64602 /* end confdefs.h.  */
64603 #include <$header>
64604
64605 _ACEOF
64606 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
64607   $EGREP "${ice_re_word}vsnprintf[      ]*\(" >/dev/null 2>&1; then
64608   ice_cv_have_vsnprintf_decl=yes
64609 fi
64610 rm -f conftest*
64611
64612 if test "$ice_cv_have_vsnprintf_decl" = yes; then
64613         break
64614 fi
64615 # Check for "fixed" declaration like "getpid _PARAMS((int))"
64616 cat >conftest.$ac_ext <<_ACEOF
64617 /* confdefs.h.  */
64618 _ACEOF
64619 cat confdefs.h >>conftest.$ac_ext
64620 cat >>conftest.$ac_ext <<_ACEOF
64621 /* end confdefs.h.  */
64622 #include <$header>
64623
64624 _ACEOF
64625 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
64626   $EGREP "${ice_re_word}vsnprintf[      ]*$ice_re_params\(\(" >/dev/null 2>&1; then
64627   ice_cv_have_vsnprintf_decl=yes
64628 fi
64629 rm -f conftest*
64630
64631 if test "$ice_cv_have_vsnprintf_decl" = yes; then
64632         break
64633 fi
64634 done
64635
64636 fi
64637
64638 { echo "$as_me:$LINENO: result: $ice_cv_have_vsnprintf_decl" >&5
64639 echo "${ECHO_T}$ice_cv_have_vsnprintf_decl" >&6; }
64640 if test "$ice_cv_have_vsnprintf_decl" = yes; then
64641
64642 cat >>confdefs.h <<_ACEOF
64643 #define HAVE_VSNPRINTF_DECL 1
64644 _ACEOF
64645
64646 fi
64647 fi
64648
64649
64650     { echo "$as_me:$LINENO: checking for setpgid" >&5
64651 echo $ECHO_N "checking for setpgid... $ECHO_C" >&6; }
64652 if test "${ac_cv_func_setpgid+set}" = set; then
64653   echo $ECHO_N "(cached) $ECHO_C" >&6
64654 else
64655   cat >conftest.$ac_ext <<_ACEOF
64656 /* confdefs.h.  */
64657 _ACEOF
64658 cat confdefs.h >>conftest.$ac_ext
64659 cat >>conftest.$ac_ext <<_ACEOF
64660 /* end confdefs.h.  */
64661 /* Define setpgid to an innocuous variant, in case <limits.h> declares setpgid.
64662    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
64663 #define setpgid innocuous_setpgid
64664
64665 /* System header to define __stub macros and hopefully few prototypes,
64666     which can conflict with char setpgid (); below.
64667     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
64668     <limits.h> exists even on freestanding compilers.  */
64669
64670 #ifdef __STDC__
64671 # include <limits.h>
64672 #else
64673 # include <assert.h>
64674 #endif
64675
64676 #undef setpgid
64677
64678 /* Override any GCC internal prototype to avoid an error.
64679    Use char because int might match the return type of a GCC
64680    builtin and then its argument prototype would still apply.  */
64681 #ifdef __cplusplus
64682 extern "C"
64683 #endif
64684 char setpgid ();
64685 /* The GNU C library defines this for functions which it implements
64686     to always fail with ENOSYS.  Some functions are actually named
64687     something starting with __ and the normal name is an alias.  */
64688 #if defined __stub_setpgid || defined __stub___setpgid
64689 choke me
64690 #endif
64691
64692 int
64693 main ()
64694 {
64695 return setpgid ();
64696   ;
64697   return 0;
64698 }
64699 _ACEOF
64700 rm -f conftest.$ac_objext conftest$ac_exeext
64701 if { (ac_try="$ac_link"
64702 case "(($ac_try" in
64703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
64704   *) ac_try_echo=$ac_try;;
64705 esac
64706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
64707   (eval "$ac_link") 2>conftest.er1
64708   ac_status=$?
64709   grep -v '^ *+' conftest.er1 >conftest.err
64710   rm -f conftest.er1
64711   cat conftest.err >&5
64712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
64713   (exit $ac_status); } && {
64714          test -z "$ac_c_werror_flag" ||
64715          test ! -s conftest.err
64716        } && test -s conftest$ac_exeext &&
64717        $as_test_x conftest$ac_exeext; then
64718   ac_cv_func_setpgid=yes
64719 else
64720   echo "$as_me: failed program was:" >&5
64721 sed 's/^/| /' conftest.$ac_ext >&5
64722
64723         ac_cv_func_setpgid=no
64724 fi
64725
64726 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
64727       conftest$ac_exeext conftest.$ac_ext
64728 fi
64729 { echo "$as_me:$LINENO: result: $ac_cv_func_setpgid" >&5
64730 echo "${ECHO_T}$ac_cv_func_setpgid" >&6; }
64731 if test $ac_cv_func_setpgid = yes; then
64732
64733
64734 cat >>confdefs.h <<\_ACEOF
64735 #define HAVE_SETPGID 1
64736 _ACEOF
64737
64738
64739 ice_have_setpgid=no
64740
64741 for ac_func in setpgid
64742 do
64743 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
64744 { echo "$as_me:$LINENO: checking for $ac_func" >&5
64745 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
64746 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
64747   echo $ECHO_N "(cached) $ECHO_C" >&6
64748 else
64749   cat >conftest.$ac_ext <<_ACEOF
64750 /* confdefs.h.  */
64751 _ACEOF
64752 cat confdefs.h >>conftest.$ac_ext
64753 cat >>conftest.$ac_ext <<_ACEOF
64754 /* end confdefs.h.  */
64755 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
64756    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
64757 #define $ac_func innocuous_$ac_func
64758
64759 /* System header to define __stub macros and hopefully few prototypes,
64760     which can conflict with char $ac_func (); below.
64761     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
64762     <limits.h> exists even on freestanding compilers.  */
64763
64764 #ifdef __STDC__
64765 # include <limits.h>
64766 #else
64767 # include <assert.h>
64768 #endif
64769
64770 #undef $ac_func
64771
64772 /* Override any GCC internal prototype to avoid an error.
64773    Use char because int might match the return type of a GCC
64774    builtin and then its argument prototype would still apply.  */
64775 #ifdef __cplusplus
64776 extern "C"
64777 #endif
64778 char $ac_func ();
64779 /* The GNU C library defines this for functions which it implements
64780     to always fail with ENOSYS.  Some functions are actually named
64781     something starting with __ and the normal name is an alias.  */
64782 #if defined __stub_$ac_func || defined __stub___$ac_func
64783 choke me
64784 #endif
64785
64786 int
64787 main ()
64788 {
64789 return $ac_func ();
64790   ;
64791   return 0;
64792 }
64793 _ACEOF
64794 rm -f conftest.$ac_objext conftest$ac_exeext
64795 if { (ac_try="$ac_link"
64796 case "(($ac_try" in
64797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
64798   *) ac_try_echo=$ac_try;;
64799 esac
64800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
64801   (eval "$ac_link") 2>conftest.er1
64802   ac_status=$?
64803   grep -v '^ *+' conftest.er1 >conftest.err
64804   rm -f conftest.er1
64805   cat conftest.err >&5
64806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
64807   (exit $ac_status); } && {
64808          test -z "$ac_c_werror_flag" ||
64809          test ! -s conftest.err
64810        } && test -s conftest$ac_exeext &&
64811        $as_test_x conftest$ac_exeext; then
64812   eval "$as_ac_var=yes"
64813 else
64814   echo "$as_me: failed program was:" >&5
64815 sed 's/^/| /' conftest.$ac_ext >&5
64816
64817         eval "$as_ac_var=no"
64818 fi
64819
64820 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
64821       conftest$ac_exeext conftest.$ac_ext
64822 fi
64823 ac_res=`eval echo '${'$as_ac_var'}'`
64824                { echo "$as_me:$LINENO: result: $ac_res" >&5
64825 echo "${ECHO_T}$ac_res" >&6; }
64826 if test `eval echo '${'$as_ac_var'}'` = yes; then
64827   cat >>confdefs.h <<_ACEOF
64828 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
64829 _ACEOF
64830  ice_have_setpgid=yes
64831 fi
64832 done
64833
64834 if test "${ice_have_setpgid}" = yes; then
64835 { echo "$as_me:$LINENO: checking for setpgid declaration in sys/types.h unistd.h" >&5
64836 echo $ECHO_N "checking for setpgid declaration in sys/types.h unistd.h... $ECHO_C" >&6; }
64837 if test "${ice_cv_have_setpgid_decl+set}" = set; then
64838   echo $ECHO_N "(cached) $ECHO_C" >&6
64839 else
64840
64841 ice_cv_have_setpgid_decl=no
64842 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
64843 ice_re_word='(^|[^a-zA-Z0-9_])'
64844 for header in sys/types.h unistd.h; do
64845 # Check for ordinary declaration
64846 cat >conftest.$ac_ext <<_ACEOF
64847 /* confdefs.h.  */
64848 _ACEOF
64849 cat confdefs.h >>conftest.$ac_ext
64850 cat >>conftest.$ac_ext <<_ACEOF
64851 /* end confdefs.h.  */
64852 #include <$header>
64853
64854 _ACEOF
64855 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
64856   $EGREP "${ice_re_word}setpgid[        ]*\(" >/dev/null 2>&1; then
64857   ice_cv_have_setpgid_decl=yes
64858 fi
64859 rm -f conftest*
64860
64861 if test "$ice_cv_have_setpgid_decl" = yes; then
64862         break
64863 fi
64864 # Check for "fixed" declaration like "getpid _PARAMS((int))"
64865 cat >conftest.$ac_ext <<_ACEOF
64866 /* confdefs.h.  */
64867 _ACEOF
64868 cat confdefs.h >>conftest.$ac_ext
64869 cat >>conftest.$ac_ext <<_ACEOF
64870 /* end confdefs.h.  */
64871 #include <$header>
64872
64873 _ACEOF
64874 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
64875   $EGREP "${ice_re_word}setpgid[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
64876   ice_cv_have_setpgid_decl=yes
64877 fi
64878 rm -f conftest*
64879
64880 if test "$ice_cv_have_setpgid_decl" = yes; then
64881         break
64882 fi
64883 done
64884
64885 fi
64886
64887 { echo "$as_me:$LINENO: result: $ice_cv_have_setpgid_decl" >&5
64888 echo "${ECHO_T}$ice_cv_have_setpgid_decl" >&6; }
64889 if test "$ice_cv_have_setpgid_decl" = yes; then
64890
64891 cat >>confdefs.h <<_ACEOF
64892 #define HAVE_SETPGID_DECL 1
64893 _ACEOF
64894
64895 fi
64896 fi
64897
64898
64899 fi
64900
64901
64902 { echo "$as_me:$LINENO: checking for setpgrp" >&5
64903 echo $ECHO_N "checking for setpgrp... $ECHO_C" >&6; }
64904 if test "${ac_cv_func_setpgrp+set}" = set; then
64905   echo $ECHO_N "(cached) $ECHO_C" >&6
64906 else
64907   cat >conftest.$ac_ext <<_ACEOF
64908 /* confdefs.h.  */
64909 _ACEOF
64910 cat confdefs.h >>conftest.$ac_ext
64911 cat >>conftest.$ac_ext <<_ACEOF
64912 /* end confdefs.h.  */
64913 /* Define setpgrp to an innocuous variant, in case <limits.h> declares setpgrp.
64914    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
64915 #define setpgrp innocuous_setpgrp
64916
64917 /* System header to define __stub macros and hopefully few prototypes,
64918     which can conflict with char setpgrp (); below.
64919     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
64920     <limits.h> exists even on freestanding compilers.  */
64921
64922 #ifdef __STDC__
64923 # include <limits.h>
64924 #else
64925 # include <assert.h>
64926 #endif
64927
64928 #undef setpgrp
64929
64930 /* Override any GCC internal prototype to avoid an error.
64931    Use char because int might match the return type of a GCC
64932    builtin and then its argument prototype would still apply.  */
64933 #ifdef __cplusplus
64934 extern "C"
64935 #endif
64936 char setpgrp ();
64937 /* The GNU C library defines this for functions which it implements
64938     to always fail with ENOSYS.  Some functions are actually named
64939     something starting with __ and the normal name is an alias.  */
64940 #if defined __stub_setpgrp || defined __stub___setpgrp
64941 choke me
64942 #endif
64943
64944 int
64945 main ()
64946 {
64947 return setpgrp ();
64948   ;
64949   return 0;
64950 }
64951 _ACEOF
64952 rm -f conftest.$ac_objext conftest$ac_exeext
64953 if { (ac_try="$ac_link"
64954 case "(($ac_try" in
64955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
64956   *) ac_try_echo=$ac_try;;
64957 esac
64958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
64959   (eval "$ac_link") 2>conftest.er1
64960   ac_status=$?
64961   grep -v '^ *+' conftest.er1 >conftest.err
64962   rm -f conftest.er1
64963   cat conftest.err >&5
64964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
64965   (exit $ac_status); } && {
64966          test -z "$ac_c_werror_flag" ||
64967          test ! -s conftest.err
64968        } && test -s conftest$ac_exeext &&
64969        $as_test_x conftest$ac_exeext; then
64970   ac_cv_func_setpgrp=yes
64971 else
64972   echo "$as_me: failed program was:" >&5
64973 sed 's/^/| /' conftest.$ac_ext >&5
64974
64975         ac_cv_func_setpgrp=no
64976 fi
64977
64978 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
64979       conftest$ac_exeext conftest.$ac_ext
64980 fi
64981 { echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp" >&5
64982 echo "${ECHO_T}$ac_cv_func_setpgrp" >&6; }
64983 if test $ac_cv_func_setpgrp = yes; then
64984   { echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
64985 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6; }
64986 if test "${ac_cv_func_setpgrp_void+set}" = set; then
64987   echo $ECHO_N "(cached) $ECHO_C" >&6
64988 else
64989   if test "$cross_compiling" = yes; then
64990   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
64991 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
64992    { (exit 1); exit 1; }; }
64993 else
64994   cat >conftest.$ac_ext <<_ACEOF
64995 /* confdefs.h.  */
64996 _ACEOF
64997 cat confdefs.h >>conftest.$ac_ext
64998 cat >>conftest.$ac_ext <<_ACEOF
64999 /* end confdefs.h.  */
65000 $ac_includes_default
65001 int
65002 main ()
65003 {
65004 /* If this system has a BSD-style setpgrp which takes arguments,
65005   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
65006   exit successfully. */
65007   return setpgrp (1,1) != -1;
65008   ;
65009   return 0;
65010 }
65011 _ACEOF
65012 rm -f conftest$ac_exeext
65013 if { (ac_try="$ac_link"
65014 case "(($ac_try" in
65015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
65016   *) ac_try_echo=$ac_try;;
65017 esac
65018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
65019   (eval "$ac_link") 2>&5
65020   ac_status=$?
65021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
65022   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
65023   { (case "(($ac_try" in
65024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
65025   *) ac_try_echo=$ac_try;;
65026 esac
65027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
65028   (eval "$ac_try") 2>&5
65029   ac_status=$?
65030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
65031   (exit $ac_status); }; }; then
65032   ac_cv_func_setpgrp_void=no
65033 else
65034   echo "$as_me: program exited with status $ac_status" >&5
65035 echo "$as_me: failed program was:" >&5
65036 sed 's/^/| /' conftest.$ac_ext >&5
65037
65038 ( exit $ac_status )
65039 ac_cv_func_setpgrp_void=yes
65040 fi
65041 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
65042 fi
65043
65044
65045 fi
65046 { echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
65047 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6; }
65048 if test $ac_cv_func_setpgrp_void = yes; then
65049
65050 cat >>confdefs.h <<\_ACEOF
65051 #define SETPGRP_VOID 1
65052 _ACEOF
65053
65054 fi
65055
65056 fi
65057
65058
65059 ice_have_setpgrp=no
65060
65061 for ac_func in setpgrp
65062 do
65063 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
65064 { echo "$as_me:$LINENO: checking for $ac_func" >&5
65065 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
65066 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
65067   echo $ECHO_N "(cached) $ECHO_C" >&6
65068 else
65069   cat >conftest.$ac_ext <<_ACEOF
65070 /* confdefs.h.  */
65071 _ACEOF
65072 cat confdefs.h >>conftest.$ac_ext
65073 cat >>conftest.$ac_ext <<_ACEOF
65074 /* end confdefs.h.  */
65075 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
65076    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
65077 #define $ac_func innocuous_$ac_func
65078
65079 /* System header to define __stub macros and hopefully few prototypes,
65080     which can conflict with char $ac_func (); below.
65081     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
65082     <limits.h> exists even on freestanding compilers.  */
65083
65084 #ifdef __STDC__
65085 # include <limits.h>
65086 #else
65087 # include <assert.h>
65088 #endif
65089
65090 #undef $ac_func
65091
65092 /* Override any GCC internal prototype to avoid an error.
65093    Use char because int might match the return type of a GCC
65094    builtin and then its argument prototype would still apply.  */
65095 #ifdef __cplusplus
65096 extern "C"
65097 #endif
65098 char $ac_func ();
65099 /* The GNU C library defines this for functions which it implements
65100     to always fail with ENOSYS.  Some functions are actually named
65101     something starting with __ and the normal name is an alias.  */
65102 #if defined __stub_$ac_func || defined __stub___$ac_func
65103 choke me
65104 #endif
65105
65106 int
65107 main ()
65108 {
65109 return $ac_func ();
65110   ;
65111   return 0;
65112 }
65113 _ACEOF
65114 rm -f conftest.$ac_objext conftest$ac_exeext
65115 if { (ac_try="$ac_link"
65116 case "(($ac_try" in
65117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
65118   *) ac_try_echo=$ac_try;;
65119 esac
65120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
65121   (eval "$ac_link") 2>conftest.er1
65122   ac_status=$?
65123   grep -v '^ *+' conftest.er1 >conftest.err
65124   rm -f conftest.er1
65125   cat conftest.err >&5
65126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
65127   (exit $ac_status); } && {
65128          test -z "$ac_c_werror_flag" ||
65129          test ! -s conftest.err
65130        } && test -s conftest$ac_exeext &&
65131        $as_test_x conftest$ac_exeext; then
65132   eval "$as_ac_var=yes"
65133 else
65134   echo "$as_me: failed program was:" >&5
65135 sed 's/^/| /' conftest.$ac_ext >&5
65136
65137         eval "$as_ac_var=no"
65138 fi
65139
65140 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
65141       conftest$ac_exeext conftest.$ac_ext
65142 fi
65143 ac_res=`eval echo '${'$as_ac_var'}'`
65144                { echo "$as_me:$LINENO: result: $ac_res" >&5
65145 echo "${ECHO_T}$ac_res" >&6; }
65146 if test `eval echo '${'$as_ac_var'}'` = yes; then
65147   cat >>confdefs.h <<_ACEOF
65148 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
65149 _ACEOF
65150  ice_have_setpgrp=yes
65151 fi
65152 done
65153
65154 if test "${ice_have_setpgrp}" = yes; then
65155 { echo "$as_me:$LINENO: checking for setpgrp declaration in sys/types.h unistd.h libc.h" >&5
65156 echo $ECHO_N "checking for setpgrp declaration in sys/types.h unistd.h libc.h... $ECHO_C" >&6; }
65157 if test "${ice_cv_have_setpgrp_decl+set}" = set; then
65158   echo $ECHO_N "(cached) $ECHO_C" >&6
65159 else
65160
65161 ice_cv_have_setpgrp_decl=no
65162 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
65163 ice_re_word='(^|[^a-zA-Z0-9_])'
65164 for header in sys/types.h unistd.h libc.h; do
65165 # Check for ordinary declaration
65166 cat >conftest.$ac_ext <<_ACEOF
65167 /* confdefs.h.  */
65168 _ACEOF
65169 cat confdefs.h >>conftest.$ac_ext
65170 cat >>conftest.$ac_ext <<_ACEOF
65171 /* end confdefs.h.  */
65172 #include <$header>
65173
65174 _ACEOF
65175 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
65176   $EGREP "${ice_re_word}setpgrp[        ]*\(" >/dev/null 2>&1; then
65177   ice_cv_have_setpgrp_decl=yes
65178 fi
65179 rm -f conftest*
65180
65181 if test "$ice_cv_have_setpgrp_decl" = yes; then
65182         break
65183 fi
65184 # Check for "fixed" declaration like "getpid _PARAMS((int))"
65185 cat >conftest.$ac_ext <<_ACEOF
65186 /* confdefs.h.  */
65187 _ACEOF
65188 cat confdefs.h >>conftest.$ac_ext
65189 cat >>conftest.$ac_ext <<_ACEOF
65190 /* end confdefs.h.  */
65191 #include <$header>
65192
65193 _ACEOF
65194 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
65195   $EGREP "${ice_re_word}setpgrp[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
65196   ice_cv_have_setpgrp_decl=yes
65197 fi
65198 rm -f conftest*
65199
65200 if test "$ice_cv_have_setpgrp_decl" = yes; then
65201         break
65202 fi
65203 done
65204
65205 fi
65206
65207 { echo "$as_me:$LINENO: result: $ice_cv_have_setpgrp_decl" >&5
65208 echo "${ECHO_T}$ice_cv_have_setpgrp_decl" >&6; }
65209 if test "$ice_cv_have_setpgrp_decl" = yes; then
65210
65211 cat >>confdefs.h <<_ACEOF
65212 #define HAVE_SETPGRP_DECL 1
65213 _ACEOF
65214
65215 fi
65216 fi
65217
65218
65219 ice_have_setsockopt=no
65220
65221 for ac_func in setsockopt
65222 do
65223 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
65224 { echo "$as_me:$LINENO: checking for $ac_func" >&5
65225 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
65226 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
65227   echo $ECHO_N "(cached) $ECHO_C" >&6
65228 else
65229   cat >conftest.$ac_ext <<_ACEOF
65230 /* confdefs.h.  */
65231 _ACEOF
65232 cat confdefs.h >>conftest.$ac_ext
65233 cat >>conftest.$ac_ext <<_ACEOF
65234 /* end confdefs.h.  */
65235 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
65236    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
65237 #define $ac_func innocuous_$ac_func
65238
65239 /* System header to define __stub macros and hopefully few prototypes,
65240     which can conflict with char $ac_func (); below.
65241     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
65242     <limits.h> exists even on freestanding compilers.  */
65243
65244 #ifdef __STDC__
65245 # include <limits.h>
65246 #else
65247 # include <assert.h>
65248 #endif
65249
65250 #undef $ac_func
65251
65252 /* Override any GCC internal prototype to avoid an error.
65253    Use char because int might match the return type of a GCC
65254    builtin and then its argument prototype would still apply.  */
65255 #ifdef __cplusplus
65256 extern "C"
65257 #endif
65258 char $ac_func ();
65259 /* The GNU C library defines this for functions which it implements
65260     to always fail with ENOSYS.  Some functions are actually named
65261     something starting with __ and the normal name is an alias.  */
65262 #if defined __stub_$ac_func || defined __stub___$ac_func
65263 choke me
65264 #endif
65265
65266 int
65267 main ()
65268 {
65269 return $ac_func ();
65270   ;
65271   return 0;
65272 }
65273 _ACEOF
65274 rm -f conftest.$ac_objext conftest$ac_exeext
65275 if { (ac_try="$ac_link"
65276 case "(($ac_try" in
65277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
65278   *) ac_try_echo=$ac_try;;
65279 esac
65280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
65281   (eval "$ac_link") 2>conftest.er1
65282   ac_status=$?
65283   grep -v '^ *+' conftest.er1 >conftest.err
65284   rm -f conftest.er1
65285   cat conftest.err >&5
65286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
65287   (exit $ac_status); } && {
65288          test -z "$ac_c_werror_flag" ||
65289          test ! -s conftest.err
65290        } && test -s conftest$ac_exeext &&
65291        $as_test_x conftest$ac_exeext; then
65292   eval "$as_ac_var=yes"
65293 else
65294   echo "$as_me: failed program was:" >&5
65295 sed 's/^/| /' conftest.$ac_ext >&5
65296
65297         eval "$as_ac_var=no"
65298 fi
65299
65300 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
65301       conftest$ac_exeext conftest.$ac_ext
65302 fi
65303 ac_res=`eval echo '${'$as_ac_var'}'`
65304                { echo "$as_me:$LINENO: result: $ac_res" >&5
65305 echo "${ECHO_T}$ac_res" >&6; }
65306 if test `eval echo '${'$as_ac_var'}'` = yes; then
65307   cat >>confdefs.h <<_ACEOF
65308 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
65309 _ACEOF
65310  ice_have_setsockopt=yes
65311 fi
65312 done
65313
65314 if test "${ice_have_setsockopt}" = yes; then
65315 { echo "$as_me:$LINENO: checking for setsockopt declaration in sys/types.h sys/socket.h" >&5
65316 echo $ECHO_N "checking for setsockopt declaration in sys/types.h sys/socket.h... $ECHO_C" >&6; }
65317 if test "${ice_cv_have_setsockopt_decl+set}" = set; then
65318   echo $ECHO_N "(cached) $ECHO_C" >&6
65319 else
65320
65321 ice_cv_have_setsockopt_decl=no
65322 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
65323 ice_re_word='(^|[^a-zA-Z0-9_])'
65324 for header in sys/types.h sys/socket.h; do
65325 # Check for ordinary declaration
65326 cat >conftest.$ac_ext <<_ACEOF
65327 /* confdefs.h.  */
65328 _ACEOF
65329 cat confdefs.h >>conftest.$ac_ext
65330 cat >>conftest.$ac_ext <<_ACEOF
65331 /* end confdefs.h.  */
65332 #include <$header>
65333
65334 _ACEOF
65335 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
65336   $EGREP "${ice_re_word}setsockopt[     ]*\(" >/dev/null 2>&1; then
65337   ice_cv_have_setsockopt_decl=yes
65338 fi
65339 rm -f conftest*
65340
65341 if test "$ice_cv_have_setsockopt_decl" = yes; then
65342         break
65343 fi
65344 # Check for "fixed" declaration like "getpid _PARAMS((int))"
65345 cat >conftest.$ac_ext <<_ACEOF
65346 /* confdefs.h.  */
65347 _ACEOF
65348 cat confdefs.h >>conftest.$ac_ext
65349 cat >>conftest.$ac_ext <<_ACEOF
65350 /* end confdefs.h.  */
65351 #include <$header>
65352
65353 _ACEOF
65354 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
65355   $EGREP "${ice_re_word}setsockopt[     ]*$ice_re_params\(\(" >/dev/null 2>&1; then
65356   ice_cv_have_setsockopt_decl=yes
65357 fi
65358 rm -f conftest*
65359
65360 if test "$ice_cv_have_setsockopt_decl" = yes; then
65361         break
65362 fi
65363 done
65364
65365 fi
65366
65367 { echo "$as_me:$LINENO: result: $ice_cv_have_setsockopt_decl" >&5
65368 echo "${ECHO_T}$ice_cv_have_setsockopt_decl" >&6; }
65369 if test "$ice_cv_have_setsockopt_decl" = yes; then
65370
65371 cat >>confdefs.h <<_ACEOF
65372 #define HAVE_SETSOCKOPT_DECL 1
65373 _ACEOF
65374
65375 fi
65376 fi
65377
65378
65379
65380
65381 for ac_func in sigaction sigemptyset sigvec
65382 do
65383 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
65384 { echo "$as_me:$LINENO: checking for $ac_func" >&5
65385 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
65386 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
65387   echo $ECHO_N "(cached) $ECHO_C" >&6
65388 else
65389   cat >conftest.$ac_ext <<_ACEOF
65390 /* confdefs.h.  */
65391 _ACEOF
65392 cat confdefs.h >>conftest.$ac_ext
65393 cat >>conftest.$ac_ext <<_ACEOF
65394 /* end confdefs.h.  */
65395 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
65396    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
65397 #define $ac_func innocuous_$ac_func
65398
65399 /* System header to define __stub macros and hopefully few prototypes,
65400     which can conflict with char $ac_func (); below.
65401     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
65402     <limits.h> exists even on freestanding compilers.  */
65403
65404 #ifdef __STDC__
65405 # include <limits.h>
65406 #else
65407 # include <assert.h>
65408 #endif
65409
65410 #undef $ac_func
65411
65412 /* Override any GCC internal prototype to avoid an error.
65413    Use char because int might match the return type of a GCC
65414    builtin and then its argument prototype would still apply.  */
65415 #ifdef __cplusplus
65416 extern "C"
65417 #endif
65418 char $ac_func ();
65419 /* The GNU C library defines this for functions which it implements
65420     to always fail with ENOSYS.  Some functions are actually named
65421     something starting with __ and the normal name is an alias.  */
65422 #if defined __stub_$ac_func || defined __stub___$ac_func
65423 choke me
65424 #endif
65425
65426 int
65427 main ()
65428 {
65429 return $ac_func ();
65430   ;
65431   return 0;
65432 }
65433 _ACEOF
65434 rm -f conftest.$ac_objext conftest$ac_exeext
65435 if { (ac_try="$ac_link"
65436 case "(($ac_try" in
65437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
65438   *) ac_try_echo=$ac_try;;
65439 esac
65440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
65441   (eval "$ac_link") 2>conftest.er1
65442   ac_status=$?
65443   grep -v '^ *+' conftest.er1 >conftest.err
65444   rm -f conftest.er1
65445   cat conftest.err >&5
65446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
65447   (exit $ac_status); } && {
65448          test -z "$ac_c_werror_flag" ||
65449          test ! -s conftest.err
65450        } && test -s conftest$ac_exeext &&
65451        $as_test_x conftest$ac_exeext; then
65452   eval "$as_ac_var=yes"
65453 else
65454   echo "$as_me: failed program was:" >&5
65455 sed 's/^/| /' conftest.$ac_ext >&5
65456
65457         eval "$as_ac_var=no"
65458 fi
65459
65460 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
65461       conftest$ac_exeext conftest.$ac_ext
65462 fi
65463 ac_res=`eval echo '${'$as_ac_var'}'`
65464                { echo "$as_me:$LINENO: result: $ac_res" >&5
65465 echo "${ECHO_T}$ac_res" >&6; }
65466 if test `eval echo '${'$as_ac_var'}'` = yes; then
65467   cat >>confdefs.h <<_ACEOF
65468 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
65469 _ACEOF
65470
65471 fi
65472 done
65473
65474
65475 ice_have_socket=no
65476
65477 for ac_func in socket
65478 do
65479 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
65480 { echo "$as_me:$LINENO: checking for $ac_func" >&5
65481 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
65482 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
65483   echo $ECHO_N "(cached) $ECHO_C" >&6
65484 else
65485   cat >conftest.$ac_ext <<_ACEOF
65486 /* confdefs.h.  */
65487 _ACEOF
65488 cat confdefs.h >>conftest.$ac_ext
65489 cat >>conftest.$ac_ext <<_ACEOF
65490 /* end confdefs.h.  */
65491 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
65492    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
65493 #define $ac_func innocuous_$ac_func
65494
65495 /* System header to define __stub macros and hopefully few prototypes,
65496     which can conflict with char $ac_func (); below.
65497     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
65498     <limits.h> exists even on freestanding compilers.  */
65499
65500 #ifdef __STDC__
65501 # include <limits.h>
65502 #else
65503 # include <assert.h>
65504 #endif
65505
65506 #undef $ac_func
65507
65508 /* Override any GCC internal prototype to avoid an error.
65509    Use char because int might match the return type of a GCC
65510    builtin and then its argument prototype would still apply.  */
65511 #ifdef __cplusplus
65512 extern "C"
65513 #endif
65514 char $ac_func ();
65515 /* The GNU C library defines this for functions which it implements
65516     to always fail with ENOSYS.  Some functions are actually named
65517     something starting with __ and the normal name is an alias.  */
65518 #if defined __stub_$ac_func || defined __stub___$ac_func
65519 choke me
65520 #endif
65521
65522 int
65523 main ()
65524 {
65525 return $ac_func ();
65526   ;
65527   return 0;
65528 }
65529 _ACEOF
65530 rm -f conftest.$ac_objext conftest$ac_exeext
65531 if { (ac_try="$ac_link"
65532 case "(($ac_try" in
65533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
65534   *) ac_try_echo=$ac_try;;
65535 esac
65536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
65537   (eval "$ac_link") 2>conftest.er1
65538   ac_status=$?
65539   grep -v '^ *+' conftest.er1 >conftest.err
65540   rm -f conftest.er1
65541   cat conftest.err >&5
65542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
65543   (exit $ac_status); } && {
65544          test -z "$ac_c_werror_flag" ||
65545          test ! -s conftest.err
65546        } && test -s conftest$ac_exeext &&
65547        $as_test_x conftest$ac_exeext; then
65548   eval "$as_ac_var=yes"
65549 else
65550   echo "$as_me: failed program was:" >&5
65551 sed 's/^/| /' conftest.$ac_ext >&5
65552
65553         eval "$as_ac_var=no"
65554 fi
65555
65556 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
65557       conftest$ac_exeext conftest.$ac_ext
65558 fi
65559 ac_res=`eval echo '${'$as_ac_var'}'`
65560                { echo "$as_me:$LINENO: result: $ac_res" >&5
65561 echo "${ECHO_T}$ac_res" >&6; }
65562 if test `eval echo '${'$as_ac_var'}'` = yes; then
65563   cat >>confdefs.h <<_ACEOF
65564 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
65565 _ACEOF
65566  ice_have_socket=yes
65567 fi
65568 done
65569
65570 if test "${ice_have_socket}" = yes; then
65571 { echo "$as_me:$LINENO: checking for socket declaration in sys/types.h sys/socket.h" >&5
65572 echo $ECHO_N "checking for socket declaration in sys/types.h sys/socket.h... $ECHO_C" >&6; }
65573 if test "${ice_cv_have_socket_decl+set}" = set; then
65574   echo $ECHO_N "(cached) $ECHO_C" >&6
65575 else
65576
65577 ice_cv_have_socket_decl=no
65578 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
65579 ice_re_word='(^|[^a-zA-Z0-9_])'
65580 for header in sys/types.h sys/socket.h; do
65581 # Check for ordinary declaration
65582 cat >conftest.$ac_ext <<_ACEOF
65583 /* confdefs.h.  */
65584 _ACEOF
65585 cat confdefs.h >>conftest.$ac_ext
65586 cat >>conftest.$ac_ext <<_ACEOF
65587 /* end confdefs.h.  */
65588 #include <$header>
65589
65590 _ACEOF
65591 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
65592   $EGREP "${ice_re_word}socket[         ]*\(" >/dev/null 2>&1; then
65593   ice_cv_have_socket_decl=yes
65594 fi
65595 rm -f conftest*
65596
65597 if test "$ice_cv_have_socket_decl" = yes; then
65598         break
65599 fi
65600 # Check for "fixed" declaration like "getpid _PARAMS((int))"
65601 cat >conftest.$ac_ext <<_ACEOF
65602 /* confdefs.h.  */
65603 _ACEOF
65604 cat confdefs.h >>conftest.$ac_ext
65605 cat >>conftest.$ac_ext <<_ACEOF
65606 /* end confdefs.h.  */
65607 #include <$header>
65608
65609 _ACEOF
65610 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
65611   $EGREP "${ice_re_word}socket[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
65612   ice_cv_have_socket_decl=yes
65613 fi
65614 rm -f conftest*
65615
65616 if test "$ice_cv_have_socket_decl" = yes; then
65617         break
65618 fi
65619 done
65620
65621 fi
65622
65623 { echo "$as_me:$LINENO: result: $ice_cv_have_socket_decl" >&5
65624 echo "${ECHO_T}$ice_cv_have_socket_decl" >&6; }
65625 if test "$ice_cv_have_socket_decl" = yes; then
65626
65627 cat >>confdefs.h <<_ACEOF
65628 #define HAVE_SOCKET_DECL 1
65629 _ACEOF
65630
65631 fi
65632 fi
65633
65634
65635 ice_have_socketpair=no
65636
65637 for ac_func in socketpair
65638 do
65639 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
65640 { echo "$as_me:$LINENO: checking for $ac_func" >&5
65641 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
65642 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
65643   echo $ECHO_N "(cached) $ECHO_C" >&6
65644 else
65645   cat >conftest.$ac_ext <<_ACEOF
65646 /* confdefs.h.  */
65647 _ACEOF
65648 cat confdefs.h >>conftest.$ac_ext
65649 cat >>conftest.$ac_ext <<_ACEOF
65650 /* end confdefs.h.  */
65651 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
65652    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
65653 #define $ac_func innocuous_$ac_func
65654
65655 /* System header to define __stub macros and hopefully few prototypes,
65656     which can conflict with char $ac_func (); below.
65657     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
65658     <limits.h> exists even on freestanding compilers.  */
65659
65660 #ifdef __STDC__
65661 # include <limits.h>
65662 #else
65663 # include <assert.h>
65664 #endif
65665
65666 #undef $ac_func
65667
65668 /* Override any GCC internal prototype to avoid an error.
65669    Use char because int might match the return type of a GCC
65670    builtin and then its argument prototype would still apply.  */
65671 #ifdef __cplusplus
65672 extern "C"
65673 #endif
65674 char $ac_func ();
65675 /* The GNU C library defines this for functions which it implements
65676     to always fail with ENOSYS.  Some functions are actually named
65677     something starting with __ and the normal name is an alias.  */
65678 #if defined __stub_$ac_func || defined __stub___$ac_func
65679 choke me
65680 #endif
65681
65682 int
65683 main ()
65684 {
65685 return $ac_func ();
65686   ;
65687   return 0;
65688 }
65689 _ACEOF
65690 rm -f conftest.$ac_objext conftest$ac_exeext
65691 if { (ac_try="$ac_link"
65692 case "(($ac_try" in
65693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
65694   *) ac_try_echo=$ac_try;;
65695 esac
65696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
65697   (eval "$ac_link") 2>conftest.er1
65698   ac_status=$?
65699   grep -v '^ *+' conftest.er1 >conftest.err
65700   rm -f conftest.er1
65701   cat conftest.err >&5
65702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
65703   (exit $ac_status); } && {
65704          test -z "$ac_c_werror_flag" ||
65705          test ! -s conftest.err
65706        } && test -s conftest$ac_exeext &&
65707        $as_test_x conftest$ac_exeext; then
65708   eval "$as_ac_var=yes"
65709 else
65710   echo "$as_me: failed program was:" >&5
65711 sed 's/^/| /' conftest.$ac_ext >&5
65712
65713         eval "$as_ac_var=no"
65714 fi
65715
65716 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
65717       conftest$ac_exeext conftest.$ac_ext
65718 fi
65719 ac_res=`eval echo '${'$as_ac_var'}'`
65720                { echo "$as_me:$LINENO: result: $ac_res" >&5
65721 echo "${ECHO_T}$ac_res" >&6; }
65722 if test `eval echo '${'$as_ac_var'}'` = yes; then
65723   cat >>confdefs.h <<_ACEOF
65724 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
65725 _ACEOF
65726  ice_have_socketpair=yes
65727 fi
65728 done
65729
65730 if test "${ice_have_socketpair}" = yes; then
65731 { echo "$as_me:$LINENO: checking for socketpair declaration in sys/types.h sys/socket.h" >&5
65732 echo $ECHO_N "checking for socketpair declaration in sys/types.h sys/socket.h... $ECHO_C" >&6; }
65733 if test "${ice_cv_have_socketpair_decl+set}" = set; then
65734   echo $ECHO_N "(cached) $ECHO_C" >&6
65735 else
65736
65737 ice_cv_have_socketpair_decl=no
65738 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
65739 ice_re_word='(^|[^a-zA-Z0-9_])'
65740 for header in sys/types.h sys/socket.h; do
65741 # Check for ordinary declaration
65742 cat >conftest.$ac_ext <<_ACEOF
65743 /* confdefs.h.  */
65744 _ACEOF
65745 cat confdefs.h >>conftest.$ac_ext
65746 cat >>conftest.$ac_ext <<_ACEOF
65747 /* end confdefs.h.  */
65748 #include <$header>
65749
65750 _ACEOF
65751 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
65752   $EGREP "${ice_re_word}socketpair[     ]*\(" >/dev/null 2>&1; then
65753   ice_cv_have_socketpair_decl=yes
65754 fi
65755 rm -f conftest*
65756
65757 if test "$ice_cv_have_socketpair_decl" = yes; then
65758         break
65759 fi
65760 # Check for "fixed" declaration like "getpid _PARAMS((int))"
65761 cat >conftest.$ac_ext <<_ACEOF
65762 /* confdefs.h.  */
65763 _ACEOF
65764 cat confdefs.h >>conftest.$ac_ext
65765 cat >>conftest.$ac_ext <<_ACEOF
65766 /* end confdefs.h.  */
65767 #include <$header>
65768
65769 _ACEOF
65770 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
65771   $EGREP "${ice_re_word}socketpair[     ]*$ice_re_params\(\(" >/dev/null 2>&1; then
65772   ice_cv_have_socketpair_decl=yes
65773 fi
65774 rm -f conftest*
65775
65776 if test "$ice_cv_have_socketpair_decl" = yes; then
65777         break
65778 fi
65779 done
65780
65781 fi
65782
65783 { echo "$as_me:$LINENO: result: $ice_cv_have_socketpair_decl" >&5
65784 echo "${ECHO_T}$ice_cv_have_socketpair_decl" >&6; }
65785 if test "$ice_cv_have_socketpair_decl" = yes; then
65786
65787 cat >>confdefs.h <<_ACEOF
65788 #define HAVE_SOCKETPAIR_DECL 1
65789 _ACEOF
65790
65791 fi
65792 fi
65793
65794
65795 ice_have_sscanf=no
65796
65797 for ac_func in sscanf
65798 do
65799 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
65800 { echo "$as_me:$LINENO: checking for $ac_func" >&5
65801 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
65802 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
65803   echo $ECHO_N "(cached) $ECHO_C" >&6
65804 else
65805   cat >conftest.$ac_ext <<_ACEOF
65806 /* confdefs.h.  */
65807 _ACEOF
65808 cat confdefs.h >>conftest.$ac_ext
65809 cat >>conftest.$ac_ext <<_ACEOF
65810 /* end confdefs.h.  */
65811 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
65812    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
65813 #define $ac_func innocuous_$ac_func
65814
65815 /* System header to define __stub macros and hopefully few prototypes,
65816     which can conflict with char $ac_func (); below.
65817     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
65818     <limits.h> exists even on freestanding compilers.  */
65819
65820 #ifdef __STDC__
65821 # include <limits.h>
65822 #else
65823 # include <assert.h>
65824 #endif
65825
65826 #undef $ac_func
65827
65828 /* Override any GCC internal prototype to avoid an error.
65829    Use char because int might match the return type of a GCC
65830    builtin and then its argument prototype would still apply.  */
65831 #ifdef __cplusplus
65832 extern "C"
65833 #endif
65834 char $ac_func ();
65835 /* The GNU C library defines this for functions which it implements
65836     to always fail with ENOSYS.  Some functions are actually named
65837     something starting with __ and the normal name is an alias.  */
65838 #if defined __stub_$ac_func || defined __stub___$ac_func
65839 choke me
65840 #endif
65841
65842 int
65843 main ()
65844 {
65845 return $ac_func ();
65846   ;
65847   return 0;
65848 }
65849 _ACEOF
65850 rm -f conftest.$ac_objext conftest$ac_exeext
65851 if { (ac_try="$ac_link"
65852 case "(($ac_try" in
65853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
65854   *) ac_try_echo=$ac_try;;
65855 esac
65856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
65857   (eval "$ac_link") 2>conftest.er1
65858   ac_status=$?
65859   grep -v '^ *+' conftest.er1 >conftest.err
65860   rm -f conftest.er1
65861   cat conftest.err >&5
65862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
65863   (exit $ac_status); } && {
65864          test -z "$ac_c_werror_flag" ||
65865          test ! -s conftest.err
65866        } && test -s conftest$ac_exeext &&
65867        $as_test_x conftest$ac_exeext; then
65868   eval "$as_ac_var=yes"
65869 else
65870   echo "$as_me: failed program was:" >&5
65871 sed 's/^/| /' conftest.$ac_ext >&5
65872
65873         eval "$as_ac_var=no"
65874 fi
65875
65876 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
65877       conftest$ac_exeext conftest.$ac_ext
65878 fi
65879 ac_res=`eval echo '${'$as_ac_var'}'`
65880                { echo "$as_me:$LINENO: result: $ac_res" >&5
65881 echo "${ECHO_T}$ac_res" >&6; }
65882 if test `eval echo '${'$as_ac_var'}'` = yes; then
65883   cat >>confdefs.h <<_ACEOF
65884 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
65885 _ACEOF
65886  ice_have_sscanf=yes
65887 fi
65888 done
65889
65890 if test "${ice_have_sscanf}" = yes; then
65891 { echo "$as_me:$LINENO: checking for sscanf declaration in stdio.h" >&5
65892 echo $ECHO_N "checking for sscanf declaration in stdio.h... $ECHO_C" >&6; }
65893 if test "${ice_cv_have_sscanf_decl+set}" = set; then
65894   echo $ECHO_N "(cached) $ECHO_C" >&6
65895 else
65896
65897 ice_cv_have_sscanf_decl=no
65898 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
65899 ice_re_word='(^|[^a-zA-Z0-9_])'
65900 for header in stdio.h; do
65901 # Check for ordinary declaration
65902 cat >conftest.$ac_ext <<_ACEOF
65903 /* confdefs.h.  */
65904 _ACEOF
65905 cat confdefs.h >>conftest.$ac_ext
65906 cat >>conftest.$ac_ext <<_ACEOF
65907 /* end confdefs.h.  */
65908 #include <$header>
65909
65910 _ACEOF
65911 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
65912   $EGREP "${ice_re_word}sscanf[         ]*\(" >/dev/null 2>&1; then
65913   ice_cv_have_sscanf_decl=yes
65914 fi
65915 rm -f conftest*
65916
65917 if test "$ice_cv_have_sscanf_decl" = yes; then
65918         break
65919 fi
65920 # Check for "fixed" declaration like "getpid _PARAMS((int))"
65921 cat >conftest.$ac_ext <<_ACEOF
65922 /* confdefs.h.  */
65923 _ACEOF
65924 cat confdefs.h >>conftest.$ac_ext
65925 cat >>conftest.$ac_ext <<_ACEOF
65926 /* end confdefs.h.  */
65927 #include <$header>
65928
65929 _ACEOF
65930 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
65931   $EGREP "${ice_re_word}sscanf[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
65932   ice_cv_have_sscanf_decl=yes
65933 fi
65934 rm -f conftest*
65935
65936 if test "$ice_cv_have_sscanf_decl" = yes; then
65937         break
65938 fi
65939 done
65940
65941 fi
65942
65943 { echo "$as_me:$LINENO: result: $ice_cv_have_sscanf_decl" >&5
65944 echo "${ECHO_T}$ice_cv_have_sscanf_decl" >&6; }
65945 if test "$ice_cv_have_sscanf_decl" = yes; then
65946
65947 cat >>confdefs.h <<_ACEOF
65948 #define HAVE_SSCANF_DECL 1
65949 _ACEOF
65950
65951 fi
65952 fi
65953
65954
65955 ice_have_strerror=no
65956
65957 for ac_func in strerror
65958 do
65959 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
65960 { echo "$as_me:$LINENO: checking for $ac_func" >&5
65961 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
65962 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
65963   echo $ECHO_N "(cached) $ECHO_C" >&6
65964 else
65965   cat >conftest.$ac_ext <<_ACEOF
65966 /* confdefs.h.  */
65967 _ACEOF
65968 cat confdefs.h >>conftest.$ac_ext
65969 cat >>conftest.$ac_ext <<_ACEOF
65970 /* end confdefs.h.  */
65971 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
65972    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
65973 #define $ac_func innocuous_$ac_func
65974
65975 /* System header to define __stub macros and hopefully few prototypes,
65976     which can conflict with char $ac_func (); below.
65977     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
65978     <limits.h> exists even on freestanding compilers.  */
65979
65980 #ifdef __STDC__
65981 # include <limits.h>
65982 #else
65983 # include <assert.h>
65984 #endif
65985
65986 #undef $ac_func
65987
65988 /* Override any GCC internal prototype to avoid an error.
65989    Use char because int might match the return type of a GCC
65990    builtin and then its argument prototype would still apply.  */
65991 #ifdef __cplusplus
65992 extern "C"
65993 #endif
65994 char $ac_func ();
65995 /* The GNU C library defines this for functions which it implements
65996     to always fail with ENOSYS.  Some functions are actually named
65997     something starting with __ and the normal name is an alias.  */
65998 #if defined __stub_$ac_func || defined __stub___$ac_func
65999 choke me
66000 #endif
66001
66002 int
66003 main ()
66004 {
66005 return $ac_func ();
66006   ;
66007   return 0;
66008 }
66009 _ACEOF
66010 rm -f conftest.$ac_objext conftest$ac_exeext
66011 if { (ac_try="$ac_link"
66012 case "(($ac_try" in
66013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
66014   *) ac_try_echo=$ac_try;;
66015 esac
66016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
66017   (eval "$ac_link") 2>conftest.er1
66018   ac_status=$?
66019   grep -v '^ *+' conftest.er1 >conftest.err
66020   rm -f conftest.er1
66021   cat conftest.err >&5
66022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
66023   (exit $ac_status); } && {
66024          test -z "$ac_c_werror_flag" ||
66025          test ! -s conftest.err
66026        } && test -s conftest$ac_exeext &&
66027        $as_test_x conftest$ac_exeext; then
66028   eval "$as_ac_var=yes"
66029 else
66030   echo "$as_me: failed program was:" >&5
66031 sed 's/^/| /' conftest.$ac_ext >&5
66032
66033         eval "$as_ac_var=no"
66034 fi
66035
66036 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
66037       conftest$ac_exeext conftest.$ac_ext
66038 fi
66039 ac_res=`eval echo '${'$as_ac_var'}'`
66040                { echo "$as_me:$LINENO: result: $ac_res" >&5
66041 echo "${ECHO_T}$ac_res" >&6; }
66042 if test `eval echo '${'$as_ac_var'}'` = yes; then
66043   cat >>confdefs.h <<_ACEOF
66044 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
66045 _ACEOF
66046  ice_have_strerror=yes
66047 fi
66048 done
66049
66050 if test "${ice_have_strerror}" = yes; then
66051 { echo "$as_me:$LINENO: checking for strerror declaration in string.h strings.h" >&5
66052 echo $ECHO_N "checking for strerror declaration in string.h strings.h... $ECHO_C" >&6; }
66053 if test "${ice_cv_have_strerror_decl+set}" = set; then
66054   echo $ECHO_N "(cached) $ECHO_C" >&6
66055 else
66056
66057 ice_cv_have_strerror_decl=no
66058 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
66059 ice_re_word='(^|[^a-zA-Z0-9_])'
66060 for header in string.h strings.h; do
66061 # Check for ordinary declaration
66062 cat >conftest.$ac_ext <<_ACEOF
66063 /* confdefs.h.  */
66064 _ACEOF
66065 cat confdefs.h >>conftest.$ac_ext
66066 cat >>conftest.$ac_ext <<_ACEOF
66067 /* end confdefs.h.  */
66068 #include <$header>
66069
66070 _ACEOF
66071 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
66072   $EGREP "${ice_re_word}strerror[       ]*\(" >/dev/null 2>&1; then
66073   ice_cv_have_strerror_decl=yes
66074 fi
66075 rm -f conftest*
66076
66077 if test "$ice_cv_have_strerror_decl" = yes; then
66078         break
66079 fi
66080 # Check for "fixed" declaration like "getpid _PARAMS((int))"
66081 cat >conftest.$ac_ext <<_ACEOF
66082 /* confdefs.h.  */
66083 _ACEOF
66084 cat confdefs.h >>conftest.$ac_ext
66085 cat >>conftest.$ac_ext <<_ACEOF
66086 /* end confdefs.h.  */
66087 #include <$header>
66088
66089 _ACEOF
66090 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
66091   $EGREP "${ice_re_word}strerror[       ]*$ice_re_params\(\(" >/dev/null 2>&1; then
66092   ice_cv_have_strerror_decl=yes
66093 fi
66094 rm -f conftest*
66095
66096 if test "$ice_cv_have_strerror_decl" = yes; then
66097         break
66098 fi
66099 done
66100
66101 fi
66102
66103 { echo "$as_me:$LINENO: result: $ice_cv_have_strerror_decl" >&5
66104 echo "${ECHO_T}$ice_cv_have_strerror_decl" >&6; }
66105 if test "$ice_cv_have_strerror_decl" = yes; then
66106
66107 cat >>confdefs.h <<_ACEOF
66108 #define HAVE_STRERROR_DECL 1
66109 _ACEOF
66110
66111 fi
66112 fi
66113
66114
66115 for ac_func in strftime
66116 do
66117 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
66118 { echo "$as_me:$LINENO: checking for $ac_func" >&5
66119 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
66120 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
66121   echo $ECHO_N "(cached) $ECHO_C" >&6
66122 else
66123   cat >conftest.$ac_ext <<_ACEOF
66124 /* confdefs.h.  */
66125 _ACEOF
66126 cat confdefs.h >>conftest.$ac_ext
66127 cat >>conftest.$ac_ext <<_ACEOF
66128 /* end confdefs.h.  */
66129 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
66130    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
66131 #define $ac_func innocuous_$ac_func
66132
66133 /* System header to define __stub macros and hopefully few prototypes,
66134     which can conflict with char $ac_func (); below.
66135     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
66136     <limits.h> exists even on freestanding compilers.  */
66137
66138 #ifdef __STDC__
66139 # include <limits.h>
66140 #else
66141 # include <assert.h>
66142 #endif
66143
66144 #undef $ac_func
66145
66146 /* Override any GCC internal prototype to avoid an error.
66147    Use char because int might match the return type of a GCC
66148    builtin and then its argument prototype would still apply.  */
66149 #ifdef __cplusplus
66150 extern "C"
66151 #endif
66152 char $ac_func ();
66153 /* The GNU C library defines this for functions which it implements
66154     to always fail with ENOSYS.  Some functions are actually named
66155     something starting with __ and the normal name is an alias.  */
66156 #if defined __stub_$ac_func || defined __stub___$ac_func
66157 choke me
66158 #endif
66159
66160 int
66161 main ()
66162 {
66163 return $ac_func ();
66164   ;
66165   return 0;
66166 }
66167 _ACEOF
66168 rm -f conftest.$ac_objext conftest$ac_exeext
66169 if { (ac_try="$ac_link"
66170 case "(($ac_try" in
66171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
66172   *) ac_try_echo=$ac_try;;
66173 esac
66174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
66175   (eval "$ac_link") 2>conftest.er1
66176   ac_status=$?
66177   grep -v '^ *+' conftest.er1 >conftest.err
66178   rm -f conftest.er1
66179   cat conftest.err >&5
66180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
66181   (exit $ac_status); } && {
66182          test -z "$ac_c_werror_flag" ||
66183          test ! -s conftest.err
66184        } && test -s conftest$ac_exeext &&
66185        $as_test_x conftest$ac_exeext; then
66186   eval "$as_ac_var=yes"
66187 else
66188   echo "$as_me: failed program was:" >&5
66189 sed 's/^/| /' conftest.$ac_ext >&5
66190
66191         eval "$as_ac_var=no"
66192 fi
66193
66194 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
66195       conftest$ac_exeext conftest.$ac_ext
66196 fi
66197 ac_res=`eval echo '${'$as_ac_var'}'`
66198                { echo "$as_me:$LINENO: result: $ac_res" >&5
66199 echo "${ECHO_T}$ac_res" >&6; }
66200 if test `eval echo '${'$as_ac_var'}'` = yes; then
66201   cat >>confdefs.h <<_ACEOF
66202 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
66203 _ACEOF
66204
66205 else
66206   # strftime is in -lintl on SCO UNIX.
66207 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
66208 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
66209 if test "${ac_cv_lib_intl_strftime+set}" = set; then
66210   echo $ECHO_N "(cached) $ECHO_C" >&6
66211 else
66212   ac_check_lib_save_LIBS=$LIBS
66213 LIBS="-lintl  $LIBS"
66214 cat >conftest.$ac_ext <<_ACEOF
66215 /* confdefs.h.  */
66216 _ACEOF
66217 cat confdefs.h >>conftest.$ac_ext
66218 cat >>conftest.$ac_ext <<_ACEOF
66219 /* end confdefs.h.  */
66220
66221 /* Override any GCC internal prototype to avoid an error.
66222    Use char because int might match the return type of a GCC
66223    builtin and then its argument prototype would still apply.  */
66224 #ifdef __cplusplus
66225 extern "C"
66226 #endif
66227 char strftime ();
66228 int
66229 main ()
66230 {
66231 return strftime ();
66232   ;
66233   return 0;
66234 }
66235 _ACEOF
66236 rm -f conftest.$ac_objext conftest$ac_exeext
66237 if { (ac_try="$ac_link"
66238 case "(($ac_try" in
66239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
66240   *) ac_try_echo=$ac_try;;
66241 esac
66242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
66243   (eval "$ac_link") 2>conftest.er1
66244   ac_status=$?
66245   grep -v '^ *+' conftest.er1 >conftest.err
66246   rm -f conftest.er1
66247   cat conftest.err >&5
66248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
66249   (exit $ac_status); } && {
66250          test -z "$ac_c_werror_flag" ||
66251          test ! -s conftest.err
66252        } && test -s conftest$ac_exeext &&
66253        $as_test_x conftest$ac_exeext; then
66254   ac_cv_lib_intl_strftime=yes
66255 else
66256   echo "$as_me: failed program was:" >&5
66257 sed 's/^/| /' conftest.$ac_ext >&5
66258
66259         ac_cv_lib_intl_strftime=no
66260 fi
66261
66262 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
66263       conftest$ac_exeext conftest.$ac_ext
66264 LIBS=$ac_check_lib_save_LIBS
66265 fi
66266 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
66267 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
66268 if test $ac_cv_lib_intl_strftime = yes; then
66269   cat >>confdefs.h <<\_ACEOF
66270 #define HAVE_STRFTIME 1
66271 _ACEOF
66272
66273 LIBS="-lintl $LIBS"
66274 fi
66275
66276 fi
66277 done
66278
66279
66280 ice_have_strftime=no
66281
66282 for ac_func in strftime
66283 do
66284 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
66285 { echo "$as_me:$LINENO: checking for $ac_func" >&5
66286 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
66287 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
66288   echo $ECHO_N "(cached) $ECHO_C" >&6
66289 else
66290   cat >conftest.$ac_ext <<_ACEOF
66291 /* confdefs.h.  */
66292 _ACEOF
66293 cat confdefs.h >>conftest.$ac_ext
66294 cat >>conftest.$ac_ext <<_ACEOF
66295 /* end confdefs.h.  */
66296 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
66297    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
66298 #define $ac_func innocuous_$ac_func
66299
66300 /* System header to define __stub macros and hopefully few prototypes,
66301     which can conflict with char $ac_func (); below.
66302     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
66303     <limits.h> exists even on freestanding compilers.  */
66304
66305 #ifdef __STDC__
66306 # include <limits.h>
66307 #else
66308 # include <assert.h>
66309 #endif
66310
66311 #undef $ac_func
66312
66313 /* Override any GCC internal prototype to avoid an error.
66314    Use char because int might match the return type of a GCC
66315    builtin and then its argument prototype would still apply.  */
66316 #ifdef __cplusplus
66317 extern "C"
66318 #endif
66319 char $ac_func ();
66320 /* The GNU C library defines this for functions which it implements
66321     to always fail with ENOSYS.  Some functions are actually named
66322     something starting with __ and the normal name is an alias.  */
66323 #if defined __stub_$ac_func || defined __stub___$ac_func
66324 choke me
66325 #endif
66326
66327 int
66328 main ()
66329 {
66330 return $ac_func ();
66331   ;
66332   return 0;
66333 }
66334 _ACEOF
66335 rm -f conftest.$ac_objext conftest$ac_exeext
66336 if { (ac_try="$ac_link"
66337 case "(($ac_try" in
66338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
66339   *) ac_try_echo=$ac_try;;
66340 esac
66341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
66342   (eval "$ac_link") 2>conftest.er1
66343   ac_status=$?
66344   grep -v '^ *+' conftest.er1 >conftest.err
66345   rm -f conftest.er1
66346   cat conftest.err >&5
66347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
66348   (exit $ac_status); } && {
66349          test -z "$ac_c_werror_flag" ||
66350          test ! -s conftest.err
66351        } && test -s conftest$ac_exeext &&
66352        $as_test_x conftest$ac_exeext; then
66353   eval "$as_ac_var=yes"
66354 else
66355   echo "$as_me: failed program was:" >&5
66356 sed 's/^/| /' conftest.$ac_ext >&5
66357
66358         eval "$as_ac_var=no"
66359 fi
66360
66361 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
66362       conftest$ac_exeext conftest.$ac_ext
66363 fi
66364 ac_res=`eval echo '${'$as_ac_var'}'`
66365                { echo "$as_me:$LINENO: result: $ac_res" >&5
66366 echo "${ECHO_T}$ac_res" >&6; }
66367 if test `eval echo '${'$as_ac_var'}'` = yes; then
66368   cat >>confdefs.h <<_ACEOF
66369 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
66370 _ACEOF
66371  ice_have_strftime=yes
66372 fi
66373 done
66374
66375 if test "${ice_have_strftime}" = yes; then
66376 { echo "$as_me:$LINENO: checking for strftime declaration in time.h sys/time.h" >&5
66377 echo $ECHO_N "checking for strftime declaration in time.h sys/time.h... $ECHO_C" >&6; }
66378 if test "${ice_cv_have_strftime_decl+set}" = set; then
66379   echo $ECHO_N "(cached) $ECHO_C" >&6
66380 else
66381
66382 ice_cv_have_strftime_decl=no
66383 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
66384 ice_re_word='(^|[^a-zA-Z0-9_])'
66385 for header in time.h sys/time.h; do
66386 # Check for ordinary declaration
66387 cat >conftest.$ac_ext <<_ACEOF
66388 /* confdefs.h.  */
66389 _ACEOF
66390 cat confdefs.h >>conftest.$ac_ext
66391 cat >>conftest.$ac_ext <<_ACEOF
66392 /* end confdefs.h.  */
66393 #include <$header>
66394
66395 _ACEOF
66396 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
66397   $EGREP "${ice_re_word}strftime[       ]*\(" >/dev/null 2>&1; then
66398   ice_cv_have_strftime_decl=yes
66399 fi
66400 rm -f conftest*
66401
66402 if test "$ice_cv_have_strftime_decl" = yes; then
66403         break
66404 fi
66405 # Check for "fixed" declaration like "getpid _PARAMS((int))"
66406 cat >conftest.$ac_ext <<_ACEOF
66407 /* confdefs.h.  */
66408 _ACEOF
66409 cat confdefs.h >>conftest.$ac_ext
66410 cat >>conftest.$ac_ext <<_ACEOF
66411 /* end confdefs.h.  */
66412 #include <$header>
66413
66414 _ACEOF
66415 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
66416   $EGREP "${ice_re_word}strftime[       ]*$ice_re_params\(\(" >/dev/null 2>&1; then
66417   ice_cv_have_strftime_decl=yes
66418 fi
66419 rm -f conftest*
66420
66421 if test "$ice_cv_have_strftime_decl" = yes; then
66422         break
66423 fi
66424 done
66425
66426 fi
66427
66428 { echo "$as_me:$LINENO: result: $ice_cv_have_strftime_decl" >&5
66429 echo "${ECHO_T}$ice_cv_have_strftime_decl" >&6; }
66430 if test "$ice_cv_have_strftime_decl" = yes; then
66431
66432 cat >>confdefs.h <<_ACEOF
66433 #define HAVE_STRFTIME_DECL 1
66434 _ACEOF
66435
66436 fi
66437 fi
66438
66439
66440 ice_have_strncasecmp=no
66441
66442 for ac_func in strncasecmp
66443 do
66444 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
66445 { echo "$as_me:$LINENO: checking for $ac_func" >&5
66446 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
66447 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
66448   echo $ECHO_N "(cached) $ECHO_C" >&6
66449 else
66450   cat >conftest.$ac_ext <<_ACEOF
66451 /* confdefs.h.  */
66452 _ACEOF
66453 cat confdefs.h >>conftest.$ac_ext
66454 cat >>conftest.$ac_ext <<_ACEOF
66455 /* end confdefs.h.  */
66456 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
66457    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
66458 #define $ac_func innocuous_$ac_func
66459
66460 /* System header to define __stub macros and hopefully few prototypes,
66461     which can conflict with char $ac_func (); below.
66462     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
66463     <limits.h> exists even on freestanding compilers.  */
66464
66465 #ifdef __STDC__
66466 # include <limits.h>
66467 #else
66468 # include <assert.h>
66469 #endif
66470
66471 #undef $ac_func
66472
66473 /* Override any GCC internal prototype to avoid an error.
66474    Use char because int might match the return type of a GCC
66475    builtin and then its argument prototype would still apply.  */
66476 #ifdef __cplusplus
66477 extern "C"
66478 #endif
66479 char $ac_func ();
66480 /* The GNU C library defines this for functions which it implements
66481     to always fail with ENOSYS.  Some functions are actually named
66482     something starting with __ and the normal name is an alias.  */
66483 #if defined __stub_$ac_func || defined __stub___$ac_func
66484 choke me
66485 #endif
66486
66487 int
66488 main ()
66489 {
66490 return $ac_func ();
66491   ;
66492   return 0;
66493 }
66494 _ACEOF
66495 rm -f conftest.$ac_objext conftest$ac_exeext
66496 if { (ac_try="$ac_link"
66497 case "(($ac_try" in
66498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
66499   *) ac_try_echo=$ac_try;;
66500 esac
66501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
66502   (eval "$ac_link") 2>conftest.er1
66503   ac_status=$?
66504   grep -v '^ *+' conftest.er1 >conftest.err
66505   rm -f conftest.er1
66506   cat conftest.err >&5
66507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
66508   (exit $ac_status); } && {
66509          test -z "$ac_c_werror_flag" ||
66510          test ! -s conftest.err
66511        } && test -s conftest$ac_exeext &&
66512        $as_test_x conftest$ac_exeext; then
66513   eval "$as_ac_var=yes"
66514 else
66515   echo "$as_me: failed program was:" >&5
66516 sed 's/^/| /' conftest.$ac_ext >&5
66517
66518         eval "$as_ac_var=no"
66519 fi
66520
66521 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
66522       conftest$ac_exeext conftest.$ac_ext
66523 fi
66524 ac_res=`eval echo '${'$as_ac_var'}'`
66525                { echo "$as_me:$LINENO: result: $ac_res" >&5
66526 echo "${ECHO_T}$ac_res" >&6; }
66527 if test `eval echo '${'$as_ac_var'}'` = yes; then
66528   cat >>confdefs.h <<_ACEOF
66529 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
66530 _ACEOF
66531  ice_have_strncasecmp=yes
66532 fi
66533 done
66534
66535 if test "${ice_have_strncasecmp}" = yes; then
66536 { echo "$as_me:$LINENO: checking for strncasecmp declaration in string.h strings.h" >&5
66537 echo $ECHO_N "checking for strncasecmp declaration in string.h strings.h... $ECHO_C" >&6; }
66538 if test "${ice_cv_have_strncasecmp_decl+set}" = set; then
66539   echo $ECHO_N "(cached) $ECHO_C" >&6
66540 else
66541
66542 ice_cv_have_strncasecmp_decl=no
66543 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
66544 ice_re_word='(^|[^a-zA-Z0-9_])'
66545 for header in string.h strings.h; do
66546 # Check for ordinary declaration
66547 cat >conftest.$ac_ext <<_ACEOF
66548 /* confdefs.h.  */
66549 _ACEOF
66550 cat confdefs.h >>conftest.$ac_ext
66551 cat >>conftest.$ac_ext <<_ACEOF
66552 /* end confdefs.h.  */
66553 #include <$header>
66554
66555 _ACEOF
66556 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
66557   $EGREP "${ice_re_word}strncasecmp[    ]*\(" >/dev/null 2>&1; then
66558   ice_cv_have_strncasecmp_decl=yes
66559 fi
66560 rm -f conftest*
66561
66562 if test "$ice_cv_have_strncasecmp_decl" = yes; then
66563         break
66564 fi
66565 # Check for "fixed" declaration like "getpid _PARAMS((int))"
66566 cat >conftest.$ac_ext <<_ACEOF
66567 /* confdefs.h.  */
66568 _ACEOF
66569 cat confdefs.h >>conftest.$ac_ext
66570 cat >>conftest.$ac_ext <<_ACEOF
66571 /* end confdefs.h.  */
66572 #include <$header>
66573
66574 _ACEOF
66575 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
66576   $EGREP "${ice_re_word}strncasecmp[    ]*$ice_re_params\(\(" >/dev/null 2>&1; then
66577   ice_cv_have_strncasecmp_decl=yes
66578 fi
66579 rm -f conftest*
66580
66581 if test "$ice_cv_have_strncasecmp_decl" = yes; then
66582         break
66583 fi
66584 done
66585
66586 fi
66587
66588 { echo "$as_me:$LINENO: result: $ice_cv_have_strncasecmp_decl" >&5
66589 echo "${ECHO_T}$ice_cv_have_strncasecmp_decl" >&6; }
66590 if test "$ice_cv_have_strncasecmp_decl" = yes; then
66591
66592 cat >>confdefs.h <<_ACEOF
66593 #define HAVE_STRNCASECMP_DECL 1
66594 _ACEOF
66595
66596 fi
66597 fi
66598
66599
66600 ice_have_syslog=no
66601
66602 for ac_func in syslog
66603 do
66604 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
66605 { echo "$as_me:$LINENO: checking for $ac_func" >&5
66606 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
66607 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
66608   echo $ECHO_N "(cached) $ECHO_C" >&6
66609 else
66610   cat >conftest.$ac_ext <<_ACEOF
66611 /* confdefs.h.  */
66612 _ACEOF
66613 cat confdefs.h >>conftest.$ac_ext
66614 cat >>conftest.$ac_ext <<_ACEOF
66615 /* end confdefs.h.  */
66616 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
66617    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
66618 #define $ac_func innocuous_$ac_func
66619
66620 /* System header to define __stub macros and hopefully few prototypes,
66621     which can conflict with char $ac_func (); below.
66622     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
66623     <limits.h> exists even on freestanding compilers.  */
66624
66625 #ifdef __STDC__
66626 # include <limits.h>
66627 #else
66628 # include <assert.h>
66629 #endif
66630
66631 #undef $ac_func
66632
66633 /* Override any GCC internal prototype to avoid an error.
66634    Use char because int might match the return type of a GCC
66635    builtin and then its argument prototype would still apply.  */
66636 #ifdef __cplusplus
66637 extern "C"
66638 #endif
66639 char $ac_func ();
66640 /* The GNU C library defines this for functions which it implements
66641     to always fail with ENOSYS.  Some functions are actually named
66642     something starting with __ and the normal name is an alias.  */
66643 #if defined __stub_$ac_func || defined __stub___$ac_func
66644 choke me
66645 #endif
66646
66647 int
66648 main ()
66649 {
66650 return $ac_func ();
66651   ;
66652   return 0;
66653 }
66654 _ACEOF
66655 rm -f conftest.$ac_objext conftest$ac_exeext
66656 if { (ac_try="$ac_link"
66657 case "(($ac_try" in
66658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
66659   *) ac_try_echo=$ac_try;;
66660 esac
66661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
66662   (eval "$ac_link") 2>conftest.er1
66663   ac_status=$?
66664   grep -v '^ *+' conftest.er1 >conftest.err
66665   rm -f conftest.er1
66666   cat conftest.err >&5
66667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
66668   (exit $ac_status); } && {
66669          test -z "$ac_c_werror_flag" ||
66670          test ! -s conftest.err
66671        } && test -s conftest$ac_exeext &&
66672        $as_test_x conftest$ac_exeext; then
66673   eval "$as_ac_var=yes"
66674 else
66675   echo "$as_me: failed program was:" >&5
66676 sed 's/^/| /' conftest.$ac_ext >&5
66677
66678         eval "$as_ac_var=no"
66679 fi
66680
66681 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
66682       conftest$ac_exeext conftest.$ac_ext
66683 fi
66684 ac_res=`eval echo '${'$as_ac_var'}'`
66685                { echo "$as_me:$LINENO: result: $ac_res" >&5
66686 echo "${ECHO_T}$ac_res" >&6; }
66687 if test `eval echo '${'$as_ac_var'}'` = yes; then
66688   cat >>confdefs.h <<_ACEOF
66689 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
66690 _ACEOF
66691  ice_have_syslog=yes
66692 fi
66693 done
66694
66695 if test "${ice_have_syslog}" = yes; then
66696 { echo "$as_me:$LINENO: checking for syslog declaration in syslog.h" >&5
66697 echo $ECHO_N "checking for syslog declaration in syslog.h... $ECHO_C" >&6; }
66698 if test "${ice_cv_have_syslog_decl+set}" = set; then
66699   echo $ECHO_N "(cached) $ECHO_C" >&6
66700 else
66701
66702 ice_cv_have_syslog_decl=no
66703 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
66704 ice_re_word='(^|[^a-zA-Z0-9_])'
66705 for header in syslog.h; do
66706 # Check for ordinary declaration
66707 cat >conftest.$ac_ext <<_ACEOF
66708 /* confdefs.h.  */
66709 _ACEOF
66710 cat confdefs.h >>conftest.$ac_ext
66711 cat >>conftest.$ac_ext <<_ACEOF
66712 /* end confdefs.h.  */
66713 #include <$header>
66714
66715 _ACEOF
66716 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
66717   $EGREP "${ice_re_word}syslog[         ]*\(" >/dev/null 2>&1; then
66718   ice_cv_have_syslog_decl=yes
66719 fi
66720 rm -f conftest*
66721
66722 if test "$ice_cv_have_syslog_decl" = yes; then
66723         break
66724 fi
66725 # Check for "fixed" declaration like "getpid _PARAMS((int))"
66726 cat >conftest.$ac_ext <<_ACEOF
66727 /* confdefs.h.  */
66728 _ACEOF
66729 cat confdefs.h >>conftest.$ac_ext
66730 cat >>conftest.$ac_ext <<_ACEOF
66731 /* end confdefs.h.  */
66732 #include <$header>
66733
66734 _ACEOF
66735 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
66736   $EGREP "${ice_re_word}syslog[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
66737   ice_cv_have_syslog_decl=yes
66738 fi
66739 rm -f conftest*
66740
66741 if test "$ice_cv_have_syslog_decl" = yes; then
66742         break
66743 fi
66744 done
66745
66746 fi
66747
66748 { echo "$as_me:$LINENO: result: $ice_cv_have_syslog_decl" >&5
66749 echo "${ECHO_T}$ice_cv_have_syslog_decl" >&6; }
66750 if test "$ice_cv_have_syslog_decl" = yes; then
66751
66752 cat >>confdefs.h <<_ACEOF
66753 #define HAVE_SYSLOG_DECL 1
66754 _ACEOF
66755
66756 fi
66757 fi
66758
66759
66760 ice_have_system=no
66761
66762 for ac_func in system
66763 do
66764 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
66765 { echo "$as_me:$LINENO: checking for $ac_func" >&5
66766 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
66767 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
66768   echo $ECHO_N "(cached) $ECHO_C" >&6
66769 else
66770   cat >conftest.$ac_ext <<_ACEOF
66771 /* confdefs.h.  */
66772 _ACEOF
66773 cat confdefs.h >>conftest.$ac_ext
66774 cat >>conftest.$ac_ext <<_ACEOF
66775 /* end confdefs.h.  */
66776 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
66777    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
66778 #define $ac_func innocuous_$ac_func
66779
66780 /* System header to define __stub macros and hopefully few prototypes,
66781     which can conflict with char $ac_func (); below.
66782     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
66783     <limits.h> exists even on freestanding compilers.  */
66784
66785 #ifdef __STDC__
66786 # include <limits.h>
66787 #else
66788 # include <assert.h>
66789 #endif
66790
66791 #undef $ac_func
66792
66793 /* Override any GCC internal prototype to avoid an error.
66794    Use char because int might match the return type of a GCC
66795    builtin and then its argument prototype would still apply.  */
66796 #ifdef __cplusplus
66797 extern "C"
66798 #endif
66799 char $ac_func ();
66800 /* The GNU C library defines this for functions which it implements
66801     to always fail with ENOSYS.  Some functions are actually named
66802     something starting with __ and the normal name is an alias.  */
66803 #if defined __stub_$ac_func || defined __stub___$ac_func
66804 choke me
66805 #endif
66806
66807 int
66808 main ()
66809 {
66810 return $ac_func ();
66811   ;
66812   return 0;
66813 }
66814 _ACEOF
66815 rm -f conftest.$ac_objext conftest$ac_exeext
66816 if { (ac_try="$ac_link"
66817 case "(($ac_try" in
66818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
66819   *) ac_try_echo=$ac_try;;
66820 esac
66821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
66822   (eval "$ac_link") 2>conftest.er1
66823   ac_status=$?
66824   grep -v '^ *+' conftest.er1 >conftest.err
66825   rm -f conftest.er1
66826   cat conftest.err >&5
66827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
66828   (exit $ac_status); } && {
66829          test -z "$ac_c_werror_flag" ||
66830          test ! -s conftest.err
66831        } && test -s conftest$ac_exeext &&
66832        $as_test_x conftest$ac_exeext; then
66833   eval "$as_ac_var=yes"
66834 else
66835   echo "$as_me: failed program was:" >&5
66836 sed 's/^/| /' conftest.$ac_ext >&5
66837
66838         eval "$as_ac_var=no"
66839 fi
66840
66841 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
66842       conftest$ac_exeext conftest.$ac_ext
66843 fi
66844 ac_res=`eval echo '${'$as_ac_var'}'`
66845                { echo "$as_me:$LINENO: result: $ac_res" >&5
66846 echo "${ECHO_T}$ac_res" >&6; }
66847 if test `eval echo '${'$as_ac_var'}'` = yes; then
66848   cat >>confdefs.h <<_ACEOF
66849 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
66850 _ACEOF
66851  ice_have_system=yes
66852 fi
66853 done
66854
66855 if test "${ice_have_system}" = yes; then
66856 { echo "$as_me:$LINENO: checking for system declaration in stdlib.h" >&5
66857 echo $ECHO_N "checking for system declaration in stdlib.h... $ECHO_C" >&6; }
66858 if test "${ice_cv_have_system_decl+set}" = set; then
66859   echo $ECHO_N "(cached) $ECHO_C" >&6
66860 else
66861
66862 ice_cv_have_system_decl=no
66863 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
66864 ice_re_word='(^|[^a-zA-Z0-9_])'
66865 for header in stdlib.h; do
66866 # Check for ordinary declaration
66867 cat >conftest.$ac_ext <<_ACEOF
66868 /* confdefs.h.  */
66869 _ACEOF
66870 cat confdefs.h >>conftest.$ac_ext
66871 cat >>conftest.$ac_ext <<_ACEOF
66872 /* end confdefs.h.  */
66873 #include <$header>
66874
66875 _ACEOF
66876 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
66877   $EGREP "${ice_re_word}system[         ]*\(" >/dev/null 2>&1; then
66878   ice_cv_have_system_decl=yes
66879 fi
66880 rm -f conftest*
66881
66882 if test "$ice_cv_have_system_decl" = yes; then
66883         break
66884 fi
66885 # Check for "fixed" declaration like "getpid _PARAMS((int))"
66886 cat >conftest.$ac_ext <<_ACEOF
66887 /* confdefs.h.  */
66888 _ACEOF
66889 cat confdefs.h >>conftest.$ac_ext
66890 cat >>conftest.$ac_ext <<_ACEOF
66891 /* end confdefs.h.  */
66892 #include <$header>
66893
66894 _ACEOF
66895 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
66896   $EGREP "${ice_re_word}system[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
66897   ice_cv_have_system_decl=yes
66898 fi
66899 rm -f conftest*
66900
66901 if test "$ice_cv_have_system_decl" = yes; then
66902         break
66903 fi
66904 done
66905
66906 fi
66907
66908 { echo "$as_me:$LINENO: result: $ice_cv_have_system_decl" >&5
66909 echo "${ECHO_T}$ice_cv_have_system_decl" >&6; }
66910 if test "$ice_cv_have_system_decl" = yes; then
66911
66912 cat >>confdefs.h <<_ACEOF
66913 #define HAVE_SYSTEM_DECL 1
66914 _ACEOF
66915
66916 fi
66917 fi
66918
66919
66920 ice_have_time=no
66921
66922 for ac_func in time
66923 do
66924 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
66925 { echo "$as_me:$LINENO: checking for $ac_func" >&5
66926 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
66927 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
66928   echo $ECHO_N "(cached) $ECHO_C" >&6
66929 else
66930   cat >conftest.$ac_ext <<_ACEOF
66931 /* confdefs.h.  */
66932 _ACEOF
66933 cat confdefs.h >>conftest.$ac_ext
66934 cat >>conftest.$ac_ext <<_ACEOF
66935 /* end confdefs.h.  */
66936 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
66937    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
66938 #define $ac_func innocuous_$ac_func
66939
66940 /* System header to define __stub macros and hopefully few prototypes,
66941     which can conflict with char $ac_func (); below.
66942     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
66943     <limits.h> exists even on freestanding compilers.  */
66944
66945 #ifdef __STDC__
66946 # include <limits.h>
66947 #else
66948 # include <assert.h>
66949 #endif
66950
66951 #undef $ac_func
66952
66953 /* Override any GCC internal prototype to avoid an error.
66954    Use char because int might match the return type of a GCC
66955    builtin and then its argument prototype would still apply.  */
66956 #ifdef __cplusplus
66957 extern "C"
66958 #endif
66959 char $ac_func ();
66960 /* The GNU C library defines this for functions which it implements
66961     to always fail with ENOSYS.  Some functions are actually named
66962     something starting with __ and the normal name is an alias.  */
66963 #if defined __stub_$ac_func || defined __stub___$ac_func
66964 choke me
66965 #endif
66966
66967 int
66968 main ()
66969 {
66970 return $ac_func ();
66971   ;
66972   return 0;
66973 }
66974 _ACEOF
66975 rm -f conftest.$ac_objext conftest$ac_exeext
66976 if { (ac_try="$ac_link"
66977 case "(($ac_try" in
66978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
66979   *) ac_try_echo=$ac_try;;
66980 esac
66981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
66982   (eval "$ac_link") 2>conftest.er1
66983   ac_status=$?
66984   grep -v '^ *+' conftest.er1 >conftest.err
66985   rm -f conftest.er1
66986   cat conftest.err >&5
66987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
66988   (exit $ac_status); } && {
66989          test -z "$ac_c_werror_flag" ||
66990          test ! -s conftest.err
66991        } && test -s conftest$ac_exeext &&
66992        $as_test_x conftest$ac_exeext; then
66993   eval "$as_ac_var=yes"
66994 else
66995   echo "$as_me: failed program was:" >&5
66996 sed 's/^/| /' conftest.$ac_ext >&5
66997
66998         eval "$as_ac_var=no"
66999 fi
67000
67001 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
67002       conftest$ac_exeext conftest.$ac_ext
67003 fi
67004 ac_res=`eval echo '${'$as_ac_var'}'`
67005                { echo "$as_me:$LINENO: result: $ac_res" >&5
67006 echo "${ECHO_T}$ac_res" >&6; }
67007 if test `eval echo '${'$as_ac_var'}'` = yes; then
67008   cat >>confdefs.h <<_ACEOF
67009 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
67010 _ACEOF
67011  ice_have_time=yes
67012 fi
67013 done
67014
67015 if test "${ice_have_time}" = yes; then
67016 { echo "$as_me:$LINENO: checking for time declaration in time.h sys/time.h" >&5
67017 echo $ECHO_N "checking for time declaration in time.h sys/time.h... $ECHO_C" >&6; }
67018 if test "${ice_cv_have_time_decl+set}" = set; then
67019   echo $ECHO_N "(cached) $ECHO_C" >&6
67020 else
67021
67022 ice_cv_have_time_decl=no
67023 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
67024 ice_re_word='(^|[^a-zA-Z0-9_])'
67025 for header in time.h sys/time.h; do
67026 # Check for ordinary declaration
67027 cat >conftest.$ac_ext <<_ACEOF
67028 /* confdefs.h.  */
67029 _ACEOF
67030 cat confdefs.h >>conftest.$ac_ext
67031 cat >>conftest.$ac_ext <<_ACEOF
67032 /* end confdefs.h.  */
67033 #include <$header>
67034
67035 _ACEOF
67036 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
67037   $EGREP "${ice_re_word}time[   ]*\(" >/dev/null 2>&1; then
67038   ice_cv_have_time_decl=yes
67039 fi
67040 rm -f conftest*
67041
67042 if test "$ice_cv_have_time_decl" = yes; then
67043         break
67044 fi
67045 # Check for "fixed" declaration like "getpid _PARAMS((int))"
67046 cat >conftest.$ac_ext <<_ACEOF
67047 /* confdefs.h.  */
67048 _ACEOF
67049 cat confdefs.h >>conftest.$ac_ext
67050 cat >>conftest.$ac_ext <<_ACEOF
67051 /* end confdefs.h.  */
67052 #include <$header>
67053
67054 _ACEOF
67055 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
67056   $EGREP "${ice_re_word}time[   ]*$ice_re_params\(\(" >/dev/null 2>&1; then
67057   ice_cv_have_time_decl=yes
67058 fi
67059 rm -f conftest*
67060
67061 if test "$ice_cv_have_time_decl" = yes; then
67062         break
67063 fi
67064 done
67065
67066 fi
67067
67068 { echo "$as_me:$LINENO: result: $ice_cv_have_time_decl" >&5
67069 echo "${ECHO_T}$ice_cv_have_time_decl" >&6; }
67070 if test "$ice_cv_have_time_decl" = yes; then
67071
67072 cat >>confdefs.h <<_ACEOF
67073 #define HAVE_TIME_DECL 1
67074 _ACEOF
67075
67076 fi
67077 fi
67078
67079
67080 ice_have_tolower=no
67081
67082 for ac_func in tolower
67083 do
67084 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
67085 { echo "$as_me:$LINENO: checking for $ac_func" >&5
67086 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
67087 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
67088   echo $ECHO_N "(cached) $ECHO_C" >&6
67089 else
67090   cat >conftest.$ac_ext <<_ACEOF
67091 /* confdefs.h.  */
67092 _ACEOF
67093 cat confdefs.h >>conftest.$ac_ext
67094 cat >>conftest.$ac_ext <<_ACEOF
67095 /* end confdefs.h.  */
67096 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
67097    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
67098 #define $ac_func innocuous_$ac_func
67099
67100 /* System header to define __stub macros and hopefully few prototypes,
67101     which can conflict with char $ac_func (); below.
67102     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
67103     <limits.h> exists even on freestanding compilers.  */
67104
67105 #ifdef __STDC__
67106 # include <limits.h>
67107 #else
67108 # include <assert.h>
67109 #endif
67110
67111 #undef $ac_func
67112
67113 /* Override any GCC internal prototype to avoid an error.
67114    Use char because int might match the return type of a GCC
67115    builtin and then its argument prototype would still apply.  */
67116 #ifdef __cplusplus
67117 extern "C"
67118 #endif
67119 char $ac_func ();
67120 /* The GNU C library defines this for functions which it implements
67121     to always fail with ENOSYS.  Some functions are actually named
67122     something starting with __ and the normal name is an alias.  */
67123 #if defined __stub_$ac_func || defined __stub___$ac_func
67124 choke me
67125 #endif
67126
67127 int
67128 main ()
67129 {
67130 return $ac_func ();
67131   ;
67132   return 0;
67133 }
67134 _ACEOF
67135 rm -f conftest.$ac_objext conftest$ac_exeext
67136 if { (ac_try="$ac_link"
67137 case "(($ac_try" in
67138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
67139   *) ac_try_echo=$ac_try;;
67140 esac
67141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
67142   (eval "$ac_link") 2>conftest.er1
67143   ac_status=$?
67144   grep -v '^ *+' conftest.er1 >conftest.err
67145   rm -f conftest.er1
67146   cat conftest.err >&5
67147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
67148   (exit $ac_status); } && {
67149          test -z "$ac_c_werror_flag" ||
67150          test ! -s conftest.err
67151        } && test -s conftest$ac_exeext &&
67152        $as_test_x conftest$ac_exeext; then
67153   eval "$as_ac_var=yes"
67154 else
67155   echo "$as_me: failed program was:" >&5
67156 sed 's/^/| /' conftest.$ac_ext >&5
67157
67158         eval "$as_ac_var=no"
67159 fi
67160
67161 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
67162       conftest$ac_exeext conftest.$ac_ext
67163 fi
67164 ac_res=`eval echo '${'$as_ac_var'}'`
67165                { echo "$as_me:$LINENO: result: $ac_res" >&5
67166 echo "${ECHO_T}$ac_res" >&6; }
67167 if test `eval echo '${'$as_ac_var'}'` = yes; then
67168   cat >>confdefs.h <<_ACEOF
67169 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
67170 _ACEOF
67171  ice_have_tolower=yes
67172 fi
67173 done
67174
67175 if test "${ice_have_tolower}" = yes; then
67176 { echo "$as_me:$LINENO: checking for tolower declaration in ctype.h" >&5
67177 echo $ECHO_N "checking for tolower declaration in ctype.h... $ECHO_C" >&6; }
67178 if test "${ice_cv_have_tolower_decl+set}" = set; then
67179   echo $ECHO_N "(cached) $ECHO_C" >&6
67180 else
67181
67182 ice_cv_have_tolower_decl=no
67183 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
67184 ice_re_word='(^|[^a-zA-Z0-9_])'
67185 for header in ctype.h; do
67186 # Check for ordinary declaration
67187 cat >conftest.$ac_ext <<_ACEOF
67188 /* confdefs.h.  */
67189 _ACEOF
67190 cat confdefs.h >>conftest.$ac_ext
67191 cat >>conftest.$ac_ext <<_ACEOF
67192 /* end confdefs.h.  */
67193 #include <$header>
67194
67195 _ACEOF
67196 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
67197   $EGREP "${ice_re_word}tolower[        ]*\(" >/dev/null 2>&1; then
67198   ice_cv_have_tolower_decl=yes
67199 fi
67200 rm -f conftest*
67201
67202 if test "$ice_cv_have_tolower_decl" = yes; then
67203         break
67204 fi
67205 # Check for "fixed" declaration like "getpid _PARAMS((int))"
67206 cat >conftest.$ac_ext <<_ACEOF
67207 /* confdefs.h.  */
67208 _ACEOF
67209 cat confdefs.h >>conftest.$ac_ext
67210 cat >>conftest.$ac_ext <<_ACEOF
67211 /* end confdefs.h.  */
67212 #include <$header>
67213
67214 _ACEOF
67215 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
67216   $EGREP "${ice_re_word}tolower[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
67217   ice_cv_have_tolower_decl=yes
67218 fi
67219 rm -f conftest*
67220
67221 if test "$ice_cv_have_tolower_decl" = yes; then
67222         break
67223 fi
67224 done
67225
67226 fi
67227
67228 { echo "$as_me:$LINENO: result: $ice_cv_have_tolower_decl" >&5
67229 echo "${ECHO_T}$ice_cv_have_tolower_decl" >&6; }
67230 if test "$ice_cv_have_tolower_decl" = yes; then
67231
67232 cat >>confdefs.h <<_ACEOF
67233 #define HAVE_TOLOWER_DECL 1
67234 _ACEOF
67235
67236 fi
67237 fi
67238
67239
67240 ice_have_toupper=no
67241
67242 for ac_func in toupper
67243 do
67244 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
67245 { echo "$as_me:$LINENO: checking for $ac_func" >&5
67246 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
67247 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
67248   echo $ECHO_N "(cached) $ECHO_C" >&6
67249 else
67250   cat >conftest.$ac_ext <<_ACEOF
67251 /* confdefs.h.  */
67252 _ACEOF
67253 cat confdefs.h >>conftest.$ac_ext
67254 cat >>conftest.$ac_ext <<_ACEOF
67255 /* end confdefs.h.  */
67256 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
67257    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
67258 #define $ac_func innocuous_$ac_func
67259
67260 /* System header to define __stub macros and hopefully few prototypes,
67261     which can conflict with char $ac_func (); below.
67262     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
67263     <limits.h> exists even on freestanding compilers.  */
67264
67265 #ifdef __STDC__
67266 # include <limits.h>
67267 #else
67268 # include <assert.h>
67269 #endif
67270
67271 #undef $ac_func
67272
67273 /* Override any GCC internal prototype to avoid an error.
67274    Use char because int might match the return type of a GCC
67275    builtin and then its argument prototype would still apply.  */
67276 #ifdef __cplusplus
67277 extern "C"
67278 #endif
67279 char $ac_func ();
67280 /* The GNU C library defines this for functions which it implements
67281     to always fail with ENOSYS.  Some functions are actually named
67282     something starting with __ and the normal name is an alias.  */
67283 #if defined __stub_$ac_func || defined __stub___$ac_func
67284 choke me
67285 #endif
67286
67287 int
67288 main ()
67289 {
67290 return $ac_func ();
67291   ;
67292   return 0;
67293 }
67294 _ACEOF
67295 rm -f conftest.$ac_objext conftest$ac_exeext
67296 if { (ac_try="$ac_link"
67297 case "(($ac_try" in
67298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
67299   *) ac_try_echo=$ac_try;;
67300 esac
67301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
67302   (eval "$ac_link") 2>conftest.er1
67303   ac_status=$?
67304   grep -v '^ *+' conftest.er1 >conftest.err
67305   rm -f conftest.er1
67306   cat conftest.err >&5
67307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
67308   (exit $ac_status); } && {
67309          test -z "$ac_c_werror_flag" ||
67310          test ! -s conftest.err
67311        } && test -s conftest$ac_exeext &&
67312        $as_test_x conftest$ac_exeext; then
67313   eval "$as_ac_var=yes"
67314 else
67315   echo "$as_me: failed program was:" >&5
67316 sed 's/^/| /' conftest.$ac_ext >&5
67317
67318         eval "$as_ac_var=no"
67319 fi
67320
67321 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
67322       conftest$ac_exeext conftest.$ac_ext
67323 fi
67324 ac_res=`eval echo '${'$as_ac_var'}'`
67325                { echo "$as_me:$LINENO: result: $ac_res" >&5
67326 echo "${ECHO_T}$ac_res" >&6; }
67327 if test `eval echo '${'$as_ac_var'}'` = yes; then
67328   cat >>confdefs.h <<_ACEOF
67329 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
67330 _ACEOF
67331  ice_have_toupper=yes
67332 fi
67333 done
67334
67335 if test "${ice_have_toupper}" = yes; then
67336 { echo "$as_me:$LINENO: checking for toupper declaration in ctype.h" >&5
67337 echo $ECHO_N "checking for toupper declaration in ctype.h... $ECHO_C" >&6; }
67338 if test "${ice_cv_have_toupper_decl+set}" = set; then
67339   echo $ECHO_N "(cached) $ECHO_C" >&6
67340 else
67341
67342 ice_cv_have_toupper_decl=no
67343 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
67344 ice_re_word='(^|[^a-zA-Z0-9_])'
67345 for header in ctype.h; do
67346 # Check for ordinary declaration
67347 cat >conftest.$ac_ext <<_ACEOF
67348 /* confdefs.h.  */
67349 _ACEOF
67350 cat confdefs.h >>conftest.$ac_ext
67351 cat >>conftest.$ac_ext <<_ACEOF
67352 /* end confdefs.h.  */
67353 #include <$header>
67354
67355 _ACEOF
67356 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
67357   $EGREP "${ice_re_word}toupper[        ]*\(" >/dev/null 2>&1; then
67358   ice_cv_have_toupper_decl=yes
67359 fi
67360 rm -f conftest*
67361
67362 if test "$ice_cv_have_toupper_decl" = yes; then
67363         break
67364 fi
67365 # Check for "fixed" declaration like "getpid _PARAMS((int))"
67366 cat >conftest.$ac_ext <<_ACEOF
67367 /* confdefs.h.  */
67368 _ACEOF
67369 cat confdefs.h >>conftest.$ac_ext
67370 cat >>conftest.$ac_ext <<_ACEOF
67371 /* end confdefs.h.  */
67372 #include <$header>
67373
67374 _ACEOF
67375 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
67376   $EGREP "${ice_re_word}toupper[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
67377   ice_cv_have_toupper_decl=yes
67378 fi
67379 rm -f conftest*
67380
67381 if test "$ice_cv_have_toupper_decl" = yes; then
67382         break
67383 fi
67384 done
67385
67386 fi
67387
67388 { echo "$as_me:$LINENO: result: $ice_cv_have_toupper_decl" >&5
67389 echo "${ECHO_T}$ice_cv_have_toupper_decl" >&6; }
67390 if test "$ice_cv_have_toupper_decl" = yes; then
67391
67392 cat >>confdefs.h <<_ACEOF
67393 #define HAVE_TOUPPER_DECL 1
67394 _ACEOF
67395
67396 fi
67397 fi
67398
67399
67400 ice_have_ungetc=no
67401
67402 for ac_func in ungetc
67403 do
67404 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
67405 { echo "$as_me:$LINENO: checking for $ac_func" >&5
67406 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
67407 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
67408   echo $ECHO_N "(cached) $ECHO_C" >&6
67409 else
67410   cat >conftest.$ac_ext <<_ACEOF
67411 /* confdefs.h.  */
67412 _ACEOF
67413 cat confdefs.h >>conftest.$ac_ext
67414 cat >>conftest.$ac_ext <<_ACEOF
67415 /* end confdefs.h.  */
67416 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
67417    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
67418 #define $ac_func innocuous_$ac_func
67419
67420 /* System header to define __stub macros and hopefully few prototypes,
67421     which can conflict with char $ac_func (); below.
67422     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
67423     <limits.h> exists even on freestanding compilers.  */
67424
67425 #ifdef __STDC__
67426 # include <limits.h>
67427 #else
67428 # include <assert.h>
67429 #endif
67430
67431 #undef $ac_func
67432
67433 /* Override any GCC internal prototype to avoid an error.
67434    Use char because int might match the return type of a GCC
67435    builtin and then its argument prototype would still apply.  */
67436 #ifdef __cplusplus
67437 extern "C"
67438 #endif
67439 char $ac_func ();
67440 /* The GNU C library defines this for functions which it implements
67441     to always fail with ENOSYS.  Some functions are actually named
67442     something starting with __ and the normal name is an alias.  */
67443 #if defined __stub_$ac_func || defined __stub___$ac_func
67444 choke me
67445 #endif
67446
67447 int
67448 main ()
67449 {
67450 return $ac_func ();
67451   ;
67452   return 0;
67453 }
67454 _ACEOF
67455 rm -f conftest.$ac_objext conftest$ac_exeext
67456 if { (ac_try="$ac_link"
67457 case "(($ac_try" in
67458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
67459   *) ac_try_echo=$ac_try;;
67460 esac
67461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
67462   (eval "$ac_link") 2>conftest.er1
67463   ac_status=$?
67464   grep -v '^ *+' conftest.er1 >conftest.err
67465   rm -f conftest.er1
67466   cat conftest.err >&5
67467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
67468   (exit $ac_status); } && {
67469          test -z "$ac_c_werror_flag" ||
67470          test ! -s conftest.err
67471        } && test -s conftest$ac_exeext &&
67472        $as_test_x conftest$ac_exeext; then
67473   eval "$as_ac_var=yes"
67474 else
67475   echo "$as_me: failed program was:" >&5
67476 sed 's/^/| /' conftest.$ac_ext >&5
67477
67478         eval "$as_ac_var=no"
67479 fi
67480
67481 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
67482       conftest$ac_exeext conftest.$ac_ext
67483 fi
67484 ac_res=`eval echo '${'$as_ac_var'}'`
67485                { echo "$as_me:$LINENO: result: $ac_res" >&5
67486 echo "${ECHO_T}$ac_res" >&6; }
67487 if test `eval echo '${'$as_ac_var'}'` = yes; then
67488   cat >>confdefs.h <<_ACEOF
67489 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
67490 _ACEOF
67491  ice_have_ungetc=yes
67492 fi
67493 done
67494
67495 if test "${ice_have_ungetc}" = yes; then
67496 { echo "$as_me:$LINENO: checking for ungetc declaration in stdio.h" >&5
67497 echo $ECHO_N "checking for ungetc declaration in stdio.h... $ECHO_C" >&6; }
67498 if test "${ice_cv_have_ungetc_decl+set}" = set; then
67499   echo $ECHO_N "(cached) $ECHO_C" >&6
67500 else
67501
67502 ice_cv_have_ungetc_decl=no
67503 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
67504 ice_re_word='(^|[^a-zA-Z0-9_])'
67505 for header in stdio.h; do
67506 # Check for ordinary declaration
67507 cat >conftest.$ac_ext <<_ACEOF
67508 /* confdefs.h.  */
67509 _ACEOF
67510 cat confdefs.h >>conftest.$ac_ext
67511 cat >>conftest.$ac_ext <<_ACEOF
67512 /* end confdefs.h.  */
67513 #include <$header>
67514
67515 _ACEOF
67516 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
67517   $EGREP "${ice_re_word}ungetc[         ]*\(" >/dev/null 2>&1; then
67518   ice_cv_have_ungetc_decl=yes
67519 fi
67520 rm -f conftest*
67521
67522 if test "$ice_cv_have_ungetc_decl" = yes; then
67523         break
67524 fi
67525 # Check for "fixed" declaration like "getpid _PARAMS((int))"
67526 cat >conftest.$ac_ext <<_ACEOF
67527 /* confdefs.h.  */
67528 _ACEOF
67529 cat confdefs.h >>conftest.$ac_ext
67530 cat >>conftest.$ac_ext <<_ACEOF
67531 /* end confdefs.h.  */
67532 #include <$header>
67533
67534 _ACEOF
67535 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
67536   $EGREP "${ice_re_word}ungetc[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
67537   ice_cv_have_ungetc_decl=yes
67538 fi
67539 rm -f conftest*
67540
67541 if test "$ice_cv_have_ungetc_decl" = yes; then
67542         break
67543 fi
67544 done
67545
67546 fi
67547
67548 { echo "$as_me:$LINENO: result: $ice_cv_have_ungetc_decl" >&5
67549 echo "${ECHO_T}$ice_cv_have_ungetc_decl" >&6; }
67550 if test "$ice_cv_have_ungetc_decl" = yes; then
67551
67552 cat >>confdefs.h <<_ACEOF
67553 #define HAVE_UNGETC_DECL 1
67554 _ACEOF
67555
67556 fi
67557 fi
67558
67559
67560 ice_have_vfprintf=no
67561
67562 for ac_func in vfprintf
67563 do
67564 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
67565 { echo "$as_me:$LINENO: checking for $ac_func" >&5
67566 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
67567 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
67568   echo $ECHO_N "(cached) $ECHO_C" >&6
67569 else
67570   cat >conftest.$ac_ext <<_ACEOF
67571 /* confdefs.h.  */
67572 _ACEOF
67573 cat confdefs.h >>conftest.$ac_ext
67574 cat >>conftest.$ac_ext <<_ACEOF
67575 /* end confdefs.h.  */
67576 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
67577    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
67578 #define $ac_func innocuous_$ac_func
67579
67580 /* System header to define __stub macros and hopefully few prototypes,
67581     which can conflict with char $ac_func (); below.
67582     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
67583     <limits.h> exists even on freestanding compilers.  */
67584
67585 #ifdef __STDC__
67586 # include <limits.h>
67587 #else
67588 # include <assert.h>
67589 #endif
67590
67591 #undef $ac_func
67592
67593 /* Override any GCC internal prototype to avoid an error.
67594    Use char because int might match the return type of a GCC
67595    builtin and then its argument prototype would still apply.  */
67596 #ifdef __cplusplus
67597 extern "C"
67598 #endif
67599 char $ac_func ();
67600 /* The GNU C library defines this for functions which it implements
67601     to always fail with ENOSYS.  Some functions are actually named
67602     something starting with __ and the normal name is an alias.  */
67603 #if defined __stub_$ac_func || defined __stub___$ac_func
67604 choke me
67605 #endif
67606
67607 int
67608 main ()
67609 {
67610 return $ac_func ();
67611   ;
67612   return 0;
67613 }
67614 _ACEOF
67615 rm -f conftest.$ac_objext conftest$ac_exeext
67616 if { (ac_try="$ac_link"
67617 case "(($ac_try" in
67618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
67619   *) ac_try_echo=$ac_try;;
67620 esac
67621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
67622   (eval "$ac_link") 2>conftest.er1
67623   ac_status=$?
67624   grep -v '^ *+' conftest.er1 >conftest.err
67625   rm -f conftest.er1
67626   cat conftest.err >&5
67627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
67628   (exit $ac_status); } && {
67629          test -z "$ac_c_werror_flag" ||
67630          test ! -s conftest.err
67631        } && test -s conftest$ac_exeext &&
67632        $as_test_x conftest$ac_exeext; then
67633   eval "$as_ac_var=yes"
67634 else
67635   echo "$as_me: failed program was:" >&5
67636 sed 's/^/| /' conftest.$ac_ext >&5
67637
67638         eval "$as_ac_var=no"
67639 fi
67640
67641 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
67642       conftest$ac_exeext conftest.$ac_ext
67643 fi
67644 ac_res=`eval echo '${'$as_ac_var'}'`
67645                { echo "$as_me:$LINENO: result: $ac_res" >&5
67646 echo "${ECHO_T}$ac_res" >&6; }
67647 if test `eval echo '${'$as_ac_var'}'` = yes; then
67648   cat >>confdefs.h <<_ACEOF
67649 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
67650 _ACEOF
67651  ice_have_vfprintf=yes
67652 fi
67653 done
67654
67655 if test "${ice_have_vfprintf}" = yes; then
67656 { echo "$as_me:$LINENO: checking for vfprintf declaration in stdio.h stdlib.h" >&5
67657 echo $ECHO_N "checking for vfprintf declaration in stdio.h stdlib.h... $ECHO_C" >&6; }
67658 if test "${ice_cv_have_vfprintf_decl+set}" = set; then
67659   echo $ECHO_N "(cached) $ECHO_C" >&6
67660 else
67661
67662 ice_cv_have_vfprintf_decl=no
67663 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
67664 ice_re_word='(^|[^a-zA-Z0-9_])'
67665 for header in stdio.h stdlib.h; do
67666 # Check for ordinary declaration
67667 cat >conftest.$ac_ext <<_ACEOF
67668 /* confdefs.h.  */
67669 _ACEOF
67670 cat confdefs.h >>conftest.$ac_ext
67671 cat >>conftest.$ac_ext <<_ACEOF
67672 /* end confdefs.h.  */
67673 #include <$header>
67674
67675 _ACEOF
67676 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
67677   $EGREP "${ice_re_word}vfprintf[       ]*\(" >/dev/null 2>&1; then
67678   ice_cv_have_vfprintf_decl=yes
67679 fi
67680 rm -f conftest*
67681
67682 if test "$ice_cv_have_vfprintf_decl" = yes; then
67683         break
67684 fi
67685 # Check for "fixed" declaration like "getpid _PARAMS((int))"
67686 cat >conftest.$ac_ext <<_ACEOF
67687 /* confdefs.h.  */
67688 _ACEOF
67689 cat confdefs.h >>conftest.$ac_ext
67690 cat >>conftest.$ac_ext <<_ACEOF
67691 /* end confdefs.h.  */
67692 #include <$header>
67693
67694 _ACEOF
67695 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
67696   $EGREP "${ice_re_word}vfprintf[       ]*$ice_re_params\(\(" >/dev/null 2>&1; then
67697   ice_cv_have_vfprintf_decl=yes
67698 fi
67699 rm -f conftest*
67700
67701 if test "$ice_cv_have_vfprintf_decl" = yes; then
67702         break
67703 fi
67704 done
67705
67706 fi
67707
67708 { echo "$as_me:$LINENO: result: $ice_cv_have_vfprintf_decl" >&5
67709 echo "${ECHO_T}$ice_cv_have_vfprintf_decl" >&6; }
67710 if test "$ice_cv_have_vfprintf_decl" = yes; then
67711
67712 cat >>confdefs.h <<_ACEOF
67713 #define HAVE_VFPRINTF_DECL 1
67714 _ACEOF
67715
67716 fi
67717 fi
67718
67719
67720 ice_have_vprintf=no
67721
67722 for ac_func in vprintf
67723 do
67724 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
67725 { echo "$as_me:$LINENO: checking for $ac_func" >&5
67726 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
67727 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
67728   echo $ECHO_N "(cached) $ECHO_C" >&6
67729 else
67730   cat >conftest.$ac_ext <<_ACEOF
67731 /* confdefs.h.  */
67732 _ACEOF
67733 cat confdefs.h >>conftest.$ac_ext
67734 cat >>conftest.$ac_ext <<_ACEOF
67735 /* end confdefs.h.  */
67736 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
67737    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
67738 #define $ac_func innocuous_$ac_func
67739
67740 /* System header to define __stub macros and hopefully few prototypes,
67741     which can conflict with char $ac_func (); below.
67742     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
67743     <limits.h> exists even on freestanding compilers.  */
67744
67745 #ifdef __STDC__
67746 # include <limits.h>
67747 #else
67748 # include <assert.h>
67749 #endif
67750
67751 #undef $ac_func
67752
67753 /* Override any GCC internal prototype to avoid an error.
67754    Use char because int might match the return type of a GCC
67755    builtin and then its argument prototype would still apply.  */
67756 #ifdef __cplusplus
67757 extern "C"
67758 #endif
67759 char $ac_func ();
67760 /* The GNU C library defines this for functions which it implements
67761     to always fail with ENOSYS.  Some functions are actually named
67762     something starting with __ and the normal name is an alias.  */
67763 #if defined __stub_$ac_func || defined __stub___$ac_func
67764 choke me
67765 #endif
67766
67767 int
67768 main ()
67769 {
67770 return $ac_func ();
67771   ;
67772   return 0;
67773 }
67774 _ACEOF
67775 rm -f conftest.$ac_objext conftest$ac_exeext
67776 if { (ac_try="$ac_link"
67777 case "(($ac_try" in
67778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
67779   *) ac_try_echo=$ac_try;;
67780 esac
67781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
67782   (eval "$ac_link") 2>conftest.er1
67783   ac_status=$?
67784   grep -v '^ *+' conftest.er1 >conftest.err
67785   rm -f conftest.er1
67786   cat conftest.err >&5
67787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
67788   (exit $ac_status); } && {
67789          test -z "$ac_c_werror_flag" ||
67790          test ! -s conftest.err
67791        } && test -s conftest$ac_exeext &&
67792        $as_test_x conftest$ac_exeext; then
67793   eval "$as_ac_var=yes"
67794 else
67795   echo "$as_me: failed program was:" >&5
67796 sed 's/^/| /' conftest.$ac_ext >&5
67797
67798         eval "$as_ac_var=no"
67799 fi
67800
67801 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
67802       conftest$ac_exeext conftest.$ac_ext
67803 fi
67804 ac_res=`eval echo '${'$as_ac_var'}'`
67805                { echo "$as_me:$LINENO: result: $ac_res" >&5
67806 echo "${ECHO_T}$ac_res" >&6; }
67807 if test `eval echo '${'$as_ac_var'}'` = yes; then
67808   cat >>confdefs.h <<_ACEOF
67809 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
67810 _ACEOF
67811  ice_have_vprintf=yes
67812 fi
67813 done
67814
67815 if test "${ice_have_vprintf}" = yes; then
67816 { echo "$as_me:$LINENO: checking for vprintf declaration in stdio.h stdlib.h" >&5
67817 echo $ECHO_N "checking for vprintf declaration in stdio.h stdlib.h... $ECHO_C" >&6; }
67818 if test "${ice_cv_have_vprintf_decl+set}" = set; then
67819   echo $ECHO_N "(cached) $ECHO_C" >&6
67820 else
67821
67822 ice_cv_have_vprintf_decl=no
67823 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
67824 ice_re_word='(^|[^a-zA-Z0-9_])'
67825 for header in stdio.h stdlib.h; do
67826 # Check for ordinary declaration
67827 cat >conftest.$ac_ext <<_ACEOF
67828 /* confdefs.h.  */
67829 _ACEOF
67830 cat confdefs.h >>conftest.$ac_ext
67831 cat >>conftest.$ac_ext <<_ACEOF
67832 /* end confdefs.h.  */
67833 #include <$header>
67834
67835 _ACEOF
67836 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
67837   $EGREP "${ice_re_word}vprintf[        ]*\(" >/dev/null 2>&1; then
67838   ice_cv_have_vprintf_decl=yes
67839 fi
67840 rm -f conftest*
67841
67842 if test "$ice_cv_have_vprintf_decl" = yes; then
67843         break
67844 fi
67845 # Check for "fixed" declaration like "getpid _PARAMS((int))"
67846 cat >conftest.$ac_ext <<_ACEOF
67847 /* confdefs.h.  */
67848 _ACEOF
67849 cat confdefs.h >>conftest.$ac_ext
67850 cat >>conftest.$ac_ext <<_ACEOF
67851 /* end confdefs.h.  */
67852 #include <$header>
67853
67854 _ACEOF
67855 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
67856   $EGREP "${ice_re_word}vprintf[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
67857   ice_cv_have_vprintf_decl=yes
67858 fi
67859 rm -f conftest*
67860
67861 if test "$ice_cv_have_vprintf_decl" = yes; then
67862         break
67863 fi
67864 done
67865
67866 fi
67867
67868 { echo "$as_me:$LINENO: result: $ice_cv_have_vprintf_decl" >&5
67869 echo "${ECHO_T}$ice_cv_have_vprintf_decl" >&6; }
67870 if test "$ice_cv_have_vprintf_decl" = yes; then
67871
67872 cat >>confdefs.h <<_ACEOF
67873 #define HAVE_VPRINTF_DECL 1
67874 _ACEOF
67875
67876 fi
67877 fi
67878
67879 { echo "$as_me:$LINENO: checking for wait4" >&5
67880 echo $ECHO_N "checking for wait4... $ECHO_C" >&6; }
67881 if test "${ac_cv_func_wait4+set}" = set; then
67882   echo $ECHO_N "(cached) $ECHO_C" >&6
67883 else
67884   cat >conftest.$ac_ext <<_ACEOF
67885 /* confdefs.h.  */
67886 _ACEOF
67887 cat confdefs.h >>conftest.$ac_ext
67888 cat >>conftest.$ac_ext <<_ACEOF
67889 /* end confdefs.h.  */
67890 /* Define wait4 to an innocuous variant, in case <limits.h> declares wait4.
67891    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
67892 #define wait4 innocuous_wait4
67893
67894 /* System header to define __stub macros and hopefully few prototypes,
67895     which can conflict with char wait4 (); below.
67896     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
67897     <limits.h> exists even on freestanding compilers.  */
67898
67899 #ifdef __STDC__
67900 # include <limits.h>
67901 #else
67902 # include <assert.h>
67903 #endif
67904
67905 #undef wait4
67906
67907 /* Override any GCC internal prototype to avoid an error.
67908    Use char because int might match the return type of a GCC
67909    builtin and then its argument prototype would still apply.  */
67910 #ifdef __cplusplus
67911 extern "C"
67912 #endif
67913 char wait4 ();
67914 /* The GNU C library defines this for functions which it implements
67915     to always fail with ENOSYS.  Some functions are actually named
67916     something starting with __ and the normal name is an alias.  */
67917 #if defined __stub_wait4 || defined __stub___wait4
67918 choke me
67919 #endif
67920
67921 int
67922 main ()
67923 {
67924 return wait4 ();
67925   ;
67926   return 0;
67927 }
67928 _ACEOF
67929 rm -f conftest.$ac_objext conftest$ac_exeext
67930 if { (ac_try="$ac_link"
67931 case "(($ac_try" in
67932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
67933   *) ac_try_echo=$ac_try;;
67934 esac
67935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
67936   (eval "$ac_link") 2>conftest.er1
67937   ac_status=$?
67938   grep -v '^ *+' conftest.er1 >conftest.err
67939   rm -f conftest.er1
67940   cat conftest.err >&5
67941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
67942   (exit $ac_status); } && {
67943          test -z "$ac_c_werror_flag" ||
67944          test ! -s conftest.err
67945        } && test -s conftest$ac_exeext &&
67946        $as_test_x conftest$ac_exeext; then
67947   ac_cv_func_wait4=yes
67948 else
67949   echo "$as_me: failed program was:" >&5
67950 sed 's/^/| /' conftest.$ac_ext >&5
67951
67952         ac_cv_func_wait4=no
67953 fi
67954
67955 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
67956       conftest$ac_exeext conftest.$ac_ext
67957 fi
67958 { echo "$as_me:$LINENO: result: $ac_cv_func_wait4" >&5
67959 echo "${ECHO_T}$ac_cv_func_wait4" >&6; }
67960
67961
67962 ice_have_writev=no
67963
67964 for ac_func in writev
67965 do
67966 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
67967 { echo "$as_me:$LINENO: checking for $ac_func" >&5
67968 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
67969 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
67970   echo $ECHO_N "(cached) $ECHO_C" >&6
67971 else
67972   cat >conftest.$ac_ext <<_ACEOF
67973 /* confdefs.h.  */
67974 _ACEOF
67975 cat confdefs.h >>conftest.$ac_ext
67976 cat >>conftest.$ac_ext <<_ACEOF
67977 /* end confdefs.h.  */
67978 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
67979    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
67980 #define $ac_func innocuous_$ac_func
67981
67982 /* System header to define __stub macros and hopefully few prototypes,
67983     which can conflict with char $ac_func (); below.
67984     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
67985     <limits.h> exists even on freestanding compilers.  */
67986
67987 #ifdef __STDC__
67988 # include <limits.h>
67989 #else
67990 # include <assert.h>
67991 #endif
67992
67993 #undef $ac_func
67994
67995 /* Override any GCC internal prototype to avoid an error.
67996    Use char because int might match the return type of a GCC
67997    builtin and then its argument prototype would still apply.  */
67998 #ifdef __cplusplus
67999 extern "C"
68000 #endif
68001 char $ac_func ();
68002 /* The GNU C library defines this for functions which it implements
68003     to always fail with ENOSYS.  Some functions are actually named
68004     something starting with __ and the normal name is an alias.  */
68005 #if defined __stub_$ac_func || defined __stub___$ac_func
68006 choke me
68007 #endif
68008
68009 int
68010 main ()
68011 {
68012 return $ac_func ();
68013   ;
68014   return 0;
68015 }
68016 _ACEOF
68017 rm -f conftest.$ac_objext conftest$ac_exeext
68018 if { (ac_try="$ac_link"
68019 case "(($ac_try" in
68020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
68021   *) ac_try_echo=$ac_try;;
68022 esac
68023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
68024   (eval "$ac_link") 2>conftest.er1
68025   ac_status=$?
68026   grep -v '^ *+' conftest.er1 >conftest.err
68027   rm -f conftest.er1
68028   cat conftest.err >&5
68029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
68030   (exit $ac_status); } && {
68031          test -z "$ac_c_werror_flag" ||
68032          test ! -s conftest.err
68033        } && test -s conftest$ac_exeext &&
68034        $as_test_x conftest$ac_exeext; then
68035   eval "$as_ac_var=yes"
68036 else
68037   echo "$as_me: failed program was:" >&5
68038 sed 's/^/| /' conftest.$ac_ext >&5
68039
68040         eval "$as_ac_var=no"
68041 fi
68042
68043 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
68044       conftest$ac_exeext conftest.$ac_ext
68045 fi
68046 ac_res=`eval echo '${'$as_ac_var'}'`
68047                { echo "$as_me:$LINENO: result: $ac_res" >&5
68048 echo "${ECHO_T}$ac_res" >&6; }
68049 if test `eval echo '${'$as_ac_var'}'` = yes; then
68050   cat >>confdefs.h <<_ACEOF
68051 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
68052 _ACEOF
68053  ice_have_writev=yes
68054 fi
68055 done
68056
68057 if test "${ice_have_writev}" = yes; then
68058 { echo "$as_me:$LINENO: checking for writev declaration in unistd.h sys/uio.h" >&5
68059 echo $ECHO_N "checking for writev declaration in unistd.h sys/uio.h... $ECHO_C" >&6; }
68060 if test "${ice_cv_have_writev_decl+set}" = set; then
68061   echo $ECHO_N "(cached) $ECHO_C" >&6
68062 else
68063
68064 ice_cv_have_writev_decl=no
68065 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
68066 ice_re_word='(^|[^a-zA-Z0-9_])'
68067 for header in unistd.h sys/uio.h; do
68068 # Check for ordinary declaration
68069 cat >conftest.$ac_ext <<_ACEOF
68070 /* confdefs.h.  */
68071 _ACEOF
68072 cat confdefs.h >>conftest.$ac_ext
68073 cat >>conftest.$ac_ext <<_ACEOF
68074 /* end confdefs.h.  */
68075 #include <$header>
68076
68077 _ACEOF
68078 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
68079   $EGREP "${ice_re_word}writev[         ]*\(" >/dev/null 2>&1; then
68080   ice_cv_have_writev_decl=yes
68081 fi
68082 rm -f conftest*
68083
68084 if test "$ice_cv_have_writev_decl" = yes; then
68085         break
68086 fi
68087 # Check for "fixed" declaration like "getpid _PARAMS((int))"
68088 cat >conftest.$ac_ext <<_ACEOF
68089 /* confdefs.h.  */
68090 _ACEOF
68091 cat confdefs.h >>conftest.$ac_ext
68092 cat >>conftest.$ac_ext <<_ACEOF
68093 /* end confdefs.h.  */
68094 #include <$header>
68095
68096 _ACEOF
68097 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
68098   $EGREP "${ice_re_word}writev[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
68099   ice_cv_have_writev_decl=yes
68100 fi
68101 rm -f conftest*
68102
68103 if test "$ice_cv_have_writev_decl" = yes; then
68104         break
68105 fi
68106 done
68107
68108 fi
68109
68110 { echo "$as_me:$LINENO: result: $ice_cv_have_writev_decl" >&5
68111 echo "${ECHO_T}$ice_cv_have_writev_decl" >&6; }
68112 if test "$ice_cv_have_writev_decl" = yes; then
68113
68114 cat >>confdefs.h <<_ACEOF
68115 #define HAVE_WRITEV_DECL 1
68116 _ACEOF
68117
68118 fi
68119 fi
68120
68121
68122 ice_have_strcasecmp=no
68123
68124 for ac_func in strcasecmp
68125 do
68126 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
68127 { echo "$as_me:$LINENO: checking for $ac_func" >&5
68128 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
68129 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
68130   echo $ECHO_N "(cached) $ECHO_C" >&6
68131 else
68132   cat >conftest.$ac_ext <<_ACEOF
68133 /* confdefs.h.  */
68134 _ACEOF
68135 cat confdefs.h >>conftest.$ac_ext
68136 cat >>conftest.$ac_ext <<_ACEOF
68137 /* end confdefs.h.  */
68138 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
68139    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
68140 #define $ac_func innocuous_$ac_func
68141
68142 /* System header to define __stub macros and hopefully few prototypes,
68143     which can conflict with char $ac_func (); below.
68144     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
68145     <limits.h> exists even on freestanding compilers.  */
68146
68147 #ifdef __STDC__
68148 # include <limits.h>
68149 #else
68150 # include <assert.h>
68151 #endif
68152
68153 #undef $ac_func
68154
68155 /* Override any GCC internal prototype to avoid an error.
68156    Use char because int might match the return type of a GCC
68157    builtin and then its argument prototype would still apply.  */
68158 #ifdef __cplusplus
68159 extern "C"
68160 #endif
68161 char $ac_func ();
68162 /* The GNU C library defines this for functions which it implements
68163     to always fail with ENOSYS.  Some functions are actually named
68164     something starting with __ and the normal name is an alias.  */
68165 #if defined __stub_$ac_func || defined __stub___$ac_func
68166 choke me
68167 #endif
68168
68169 int
68170 main ()
68171 {
68172 return $ac_func ();
68173   ;
68174   return 0;
68175 }
68176 _ACEOF
68177 rm -f conftest.$ac_objext conftest$ac_exeext
68178 if { (ac_try="$ac_link"
68179 case "(($ac_try" in
68180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
68181   *) ac_try_echo=$ac_try;;
68182 esac
68183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
68184   (eval "$ac_link") 2>conftest.er1
68185   ac_status=$?
68186   grep -v '^ *+' conftest.er1 >conftest.err
68187   rm -f conftest.er1
68188   cat conftest.err >&5
68189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
68190   (exit $ac_status); } && {
68191          test -z "$ac_c_werror_flag" ||
68192          test ! -s conftest.err
68193        } && test -s conftest$ac_exeext &&
68194        $as_test_x conftest$ac_exeext; then
68195   eval "$as_ac_var=yes"
68196 else
68197   echo "$as_me: failed program was:" >&5
68198 sed 's/^/| /' conftest.$ac_ext >&5
68199
68200         eval "$as_ac_var=no"
68201 fi
68202
68203 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
68204       conftest$ac_exeext conftest.$ac_ext
68205 fi
68206 ac_res=`eval echo '${'$as_ac_var'}'`
68207                { echo "$as_me:$LINENO: result: $ac_res" >&5
68208 echo "${ECHO_T}$ac_res" >&6; }
68209 if test `eval echo '${'$as_ac_var'}'` = yes; then
68210   cat >>confdefs.h <<_ACEOF
68211 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
68212 _ACEOF
68213  ice_have_strcasecmp=yes
68214 fi
68215 done
68216
68217 if test "${ice_have_strcasecmp}" = yes; then
68218 { echo "$as_me:$LINENO: checking for strcasecmp declaration in string.h strings.h" >&5
68219 echo $ECHO_N "checking for strcasecmp declaration in string.h strings.h... $ECHO_C" >&6; }
68220 if test "${ice_cv_have_strcasecmp_decl+set}" = set; then
68221   echo $ECHO_N "(cached) $ECHO_C" >&6
68222 else
68223
68224 ice_cv_have_strcasecmp_decl=no
68225 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
68226 ice_re_word='(^|[^a-zA-Z0-9_])'
68227 for header in string.h strings.h; do
68228 # Check for ordinary declaration
68229 cat >conftest.$ac_ext <<_ACEOF
68230 /* confdefs.h.  */
68231 _ACEOF
68232 cat confdefs.h >>conftest.$ac_ext
68233 cat >>conftest.$ac_ext <<_ACEOF
68234 /* end confdefs.h.  */
68235 #include <$header>
68236
68237 _ACEOF
68238 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
68239   $EGREP "${ice_re_word}strcasecmp[     ]*\(" >/dev/null 2>&1; then
68240   ice_cv_have_strcasecmp_decl=yes
68241 fi
68242 rm -f conftest*
68243
68244 if test "$ice_cv_have_strcasecmp_decl" = yes; then
68245         break
68246 fi
68247 # Check for "fixed" declaration like "getpid _PARAMS((int))"
68248 cat >conftest.$ac_ext <<_ACEOF
68249 /* confdefs.h.  */
68250 _ACEOF
68251 cat confdefs.h >>conftest.$ac_ext
68252 cat >>conftest.$ac_ext <<_ACEOF
68253 /* end confdefs.h.  */
68254 #include <$header>
68255
68256 _ACEOF
68257 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
68258   $EGREP "${ice_re_word}strcasecmp[     ]*$ice_re_params\(\(" >/dev/null 2>&1; then
68259   ice_cv_have_strcasecmp_decl=yes
68260 fi
68261 rm -f conftest*
68262
68263 if test "$ice_cv_have_strcasecmp_decl" = yes; then
68264         break
68265 fi
68266 done
68267
68268 fi
68269
68270 { echo "$as_me:$LINENO: result: $ice_cv_have_strcasecmp_decl" >&5
68271 echo "${ECHO_T}$ice_cv_have_strcasecmp_decl" >&6; }
68272 if test "$ice_cv_have_strcasecmp_decl" = yes; then
68273
68274 cat >>confdefs.h <<_ACEOF
68275 #define HAVE_STRCASECMP_DECL 1
68276 _ACEOF
68277
68278 fi
68279 fi
68280
68281
68282
68283 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"
68284
68285
68286 cat >confcache <<\_ACEOF
68287 # This file is a shell script that caches the results of configure
68288 # tests run on this system so they can be shared between configure
68289 # scripts and configure runs, see configure's option --config-cache.
68290 # It is not useful on other systems.  If it contains results you don't
68291 # want to keep, you may remove or edit it.
68292 #
68293 # config.status only pays attention to the cache file if you give it
68294 # the --recheck option to rerun configure.
68295 #
68296 # `ac_cv_env_foo' variables (set or unset) will be overridden when
68297 # loading this file, other *unset* `ac_cv_foo' will be assigned the
68298 # following values.
68299
68300 _ACEOF
68301
68302 # The following way of writing the cache mishandles newlines in values,
68303 # but we know of no workaround that is simple, portable, and efficient.
68304 # So, we kill variables containing newlines.
68305 # Ultrix sh set writes to stderr and can't be redirected directly,
68306 # and sets the high bit in the cache file unless we assign to the vars.
68307 (
68308   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
68309     eval ac_val=\$$ac_var
68310     case $ac_val in #(
68311     *${as_nl}*)
68312       case $ac_var in #(
68313       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
68314 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
68315       esac
68316       case $ac_var in #(
68317       _ | IFS | as_nl) ;; #(
68318       *) $as_unset $ac_var ;;
68319       esac ;;
68320     esac
68321   done
68322
68323   (set) 2>&1 |
68324     case $as_nl`(ac_space=' '; set) 2>&1` in #(
68325     *${as_nl}ac_space=\ *)
68326       # `set' does not quote correctly, so add quotes (double-quote
68327       # substitution turns \\\\ into \\, and sed turns \\ into \).
68328       sed -n \
68329         "s/'/'\\\\''/g;
68330           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
68331       ;; #(
68332     *)
68333       # `set' quotes correctly as required by POSIX, so do not add quotes.
68334       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
68335       ;;
68336     esac |
68337     sort
68338 ) |
68339   sed '
68340      /^ac_cv_env_/b end
68341      t clear
68342      :clear
68343      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
68344      t end
68345      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
68346      :end' >>confcache
68347 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
68348   if test -w "$cache_file"; then
68349     test "x$cache_file" != "x/dev/null" &&
68350       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
68351 echo "$as_me: updating cache $cache_file" >&6;}
68352     cat confcache >$cache_file
68353   else
68354     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
68355 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
68356   fi
68357 fi
68358 rm -f confcache
68359
68360 test "x$prefix" = xNONE && prefix=$ac_default_prefix
68361 # Let make expand exec_prefix.
68362 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
68363
68364 DEFS=-DHAVE_CONFIG_H
68365
68366 ac_libobjs=
68367 ac_ltlibobjs=
68368 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
68369   # 1. Remove the extension, and $U if already installed.
68370   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
68371   ac_i=`echo "$ac_i" | sed "$ac_script"`
68372   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
68373   #    will be set to the directory where LIBOBJS objects are built.
68374   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
68375   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
68376 done
68377 LIBOBJS=$ac_libobjs
68378
68379 LTLIBOBJS=$ac_ltlibobjs
68380
68381
68382 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
68383   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
68384 Usually this means the macro was only invoked conditionally." >&5
68385 echo "$as_me: error: conditional \"AMDEP\" was never defined.
68386 Usually this means the macro was only invoked conditionally." >&2;}
68387    { (exit 1); exit 1; }; }
68388 fi
68389 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
68390   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
68391 Usually this means the macro was only invoked conditionally." >&5
68392 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
68393 Usually this means the macro was only invoked conditionally." >&2;}
68394    { (exit 1); exit 1; }; }
68395 fi
68396 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
68397   { { echo "$as_me:$LINENO: error: conditional \"GL_COND_LIBTOOL\" was never defined.
68398 Usually this means the macro was only invoked conditionally." >&5
68399 echo "$as_me: error: conditional \"GL_COND_LIBTOOL\" was never defined.
68400 Usually this means the macro was only invoked conditionally." >&2;}
68401    { (exit 1); exit 1; }; }
68402 fi
68403
68404     gl_libobjs=
68405     gl_ltlibobjs=
68406     if test -n "$gl_LIBOBJS"; then
68407       # Remove the extension.
68408       sed_drop_objext='s/\.o$//;s/\.obj$//'
68409       for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
68410         gl_libobjs="$gl_libobjs $i.$ac_objext"
68411         gl_ltlibobjs="$gl_ltlibobjs $i.lo"
68412       done
68413     fi
68414     gl_LIBOBJS=$gl_libobjs
68415
68416     gl_LTLIBOBJS=$gl_ltlibobjs
68417
68418
68419 if test -z "${WANT_SETUID_CLIENT_TRUE}" && test -z "${WANT_SETUID_CLIENT_FALSE}"; then
68420   { { echo "$as_me:$LINENO: error: conditional \"WANT_SETUID_CLIENT\" was never defined.
68421 Usually this means the macro was only invoked conditionally." >&5
68422 echo "$as_me: error: conditional \"WANT_SETUID_CLIENT\" was never defined.
68423 Usually this means the macro was only invoked conditionally." >&2;}
68424    { (exit 1); exit 1; }; }
68425 fi
68426 if test -z "${WANT_INSTALLPERMS_TRUE}" && test -z "${WANT_INSTALLPERMS_FALSE}"; then
68427   { { echo "$as_me:$LINENO: error: conditional \"WANT_INSTALLPERMS\" was never defined.
68428 Usually this means the macro was only invoked conditionally." >&5
68429 echo "$as_me: error: conditional \"WANT_INSTALLPERMS\" was never defined.
68430 Usually this means the macro was only invoked conditionally." >&2;}
68431    { (exit 1); exit 1; }; }
68432 fi
68433 if test -z "${WANT_CLIENT_TRUE}" && test -z "${WANT_CLIENT_FALSE}"; then
68434   { { echo "$as_me:$LINENO: error: conditional \"WANT_CLIENT\" was never defined.
68435 Usually this means the macro was only invoked conditionally." >&5
68436 echo "$as_me: error: conditional \"WANT_CLIENT\" was never defined.
68437 Usually this means the macro was only invoked conditionally." >&2;}
68438    { (exit 1); exit 1; }; }
68439 fi
68440 if test -z "${WANT_RESTORE_TRUE}" && test -z "${WANT_RESTORE_FALSE}"; then
68441   { { echo "$as_me:$LINENO: error: conditional \"WANT_RESTORE\" was never defined.
68442 Usually this means the macro was only invoked conditionally." >&5
68443 echo "$as_me: error: conditional \"WANT_RESTORE\" was never defined.
68444 Usually this means the macro was only invoked conditionally." >&2;}
68445    { (exit 1); exit 1; }; }
68446 fi
68447 if test -z "${WANT_SERVER_TRUE}" && test -z "${WANT_SERVER_FALSE}"; then
68448   { { echo "$as_me:$LINENO: error: conditional \"WANT_SERVER\" was never defined.
68449 Usually this means the macro was only invoked conditionally." >&5
68450 echo "$as_me: error: conditional \"WANT_SERVER\" was never defined.
68451 Usually this means the macro was only invoked conditionally." >&2;}
68452    { (exit 1); exit 1; }; }
68453 fi
68454 if test -z "${WANT_RECOVER_TRUE}" && test -z "${WANT_RECOVER_FALSE}"; then
68455   { { echo "$as_me:$LINENO: error: conditional \"WANT_RECOVER\" was never defined.
68456 Usually this means the macro was only invoked conditionally." >&5
68457 echo "$as_me: error: conditional \"WANT_RECOVER\" was never defined.
68458 Usually this means the macro was only invoked conditionally." >&2;}
68459    { (exit 1); exit 1; }; }
68460 fi
68461 if test -z "${WANT_TAPE_TRUE}" && test -z "${WANT_TAPE_FALSE}"; then
68462   { { echo "$as_me:$LINENO: error: conditional \"WANT_TAPE\" was never defined.
68463 Usually this means the macro was only invoked conditionally." >&5
68464 echo "$as_me: error: conditional \"WANT_TAPE\" was never defined.
68465 Usually this means the macro was only invoked conditionally." >&2;}
68466    { (exit 1); exit 1; }; }
68467 fi
68468 if test -z "${WANT_AMPLOT_TRUE}" && test -z "${WANT_AMPLOT_FALSE}"; then
68469   { { echo "$as_me:$LINENO: error: conditional \"WANT_AMPLOT\" was never defined.
68470 Usually this means the macro was only invoked conditionally." >&5
68471 echo "$as_me: error: conditional \"WANT_AMPLOT\" was never defined.
68472 Usually this means the macro was only invoked conditionally." >&2;}
68473    { (exit 1); exit 1; }; }
68474 fi
68475 if test -z "${ENABLE_MANPAGE_BUILD_TRUE}" && test -z "${ENABLE_MANPAGE_BUILD_FALSE}"; then
68476   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_MANPAGE_BUILD\" was never defined.
68477 Usually this means the macro was only invoked conditionally." >&5
68478 echo "$as_me: error: conditional \"ENABLE_MANPAGE_BUILD\" was never defined.
68479 Usually this means the macro was only invoked conditionally." >&2;}
68480    { (exit 1); exit 1; }; }
68481 fi
68482 if test -z "${WANT_CHG_SCSI_TRUE}" && test -z "${WANT_CHG_SCSI_FALSE}"; then
68483   { { echo "$as_me:$LINENO: error: conditional \"WANT_CHG_SCSI\" was never defined.
68484 Usually this means the macro was only invoked conditionally." >&5
68485 echo "$as_me: error: conditional \"WANT_CHG_SCSI\" was never defined.
68486 Usually this means the macro was only invoked conditionally." >&2;}
68487    { (exit 1); exit 1; }; }
68488 fi
68489 if test -z "${WANT_SCSI_LINUX_TRUE}" && test -z "${WANT_SCSI_LINUX_FALSE}"; then
68490   { { echo "$as_me:$LINENO: error: conditional \"WANT_SCSI_LINUX\" was never defined.
68491 Usually this means the macro was only invoked conditionally." >&5
68492 echo "$as_me: error: conditional \"WANT_SCSI_LINUX\" was never defined.
68493 Usually this means the macro was only invoked conditionally." >&2;}
68494    { (exit 1); exit 1; }; }
68495 fi
68496 if test -z "${WANT_SCSI_HPUX_NEW_TRUE}" && test -z "${WANT_SCSI_HPUX_NEW_FALSE}"; then
68497   { { echo "$as_me:$LINENO: error: conditional \"WANT_SCSI_HPUX_NEW\" was never defined.
68498 Usually this means the macro was only invoked conditionally." >&5
68499 echo "$as_me: error: conditional \"WANT_SCSI_HPUX_NEW\" was never defined.
68500 Usually this means the macro was only invoked conditionally." >&2;}
68501    { (exit 1); exit 1; }; }
68502 fi
68503 if test -z "${WANT_SCSI_IRIX_TRUE}" && test -z "${WANT_SCSI_IRIX_FALSE}"; then
68504   { { echo "$as_me:$LINENO: error: conditional \"WANT_SCSI_IRIX\" was never defined.
68505 Usually this means the macro was only invoked conditionally." >&5
68506 echo "$as_me: error: conditional \"WANT_SCSI_IRIX\" was never defined.
68507 Usually this means the macro was only invoked conditionally." >&2;}
68508    { (exit 1); exit 1; }; }
68509 fi
68510 if test -z "${WANT_SCSI_SOLARIS_TRUE}" && test -z "${WANT_SCSI_SOLARIS_FALSE}"; then
68511   { { echo "$as_me:$LINENO: error: conditional \"WANT_SCSI_SOLARIS\" was never defined.
68512 Usually this means the macro was only invoked conditionally." >&5
68513 echo "$as_me: error: conditional \"WANT_SCSI_SOLARIS\" was never defined.
68514 Usually this means the macro was only invoked conditionally." >&2;}
68515    { (exit 1); exit 1; }; }
68516 fi
68517 if test -z "${WANT_SCSI_AIX_TRUE}" && test -z "${WANT_SCSI_AIX_FALSE}"; then
68518   { { echo "$as_me:$LINENO: error: conditional \"WANT_SCSI_AIX\" was never defined.
68519 Usually this means the macro was only invoked conditionally." >&5
68520 echo "$as_me: error: conditional \"WANT_SCSI_AIX\" was never defined.
68521 Usually this means the macro was only invoked conditionally." >&2;}
68522    { (exit 1); exit 1; }; }
68523 fi
68524 if test -z "${WANT_SCSI_CAM_TRUE}" && test -z "${WANT_SCSI_CAM_FALSE}"; then
68525   { { echo "$as_me:$LINENO: error: conditional \"WANT_SCSI_CAM\" was never defined.
68526 Usually this means the macro was only invoked conditionally." >&5
68527 echo "$as_me: error: conditional \"WANT_SCSI_CAM\" was never defined.
68528 Usually this means the macro was only invoked conditionally." >&2;}
68529    { (exit 1); exit 1; }; }
68530 fi
68531 if test -z "${WANT_SCSI_BSD_TRUE}" && test -z "${WANT_SCSI_BSD_FALSE}"; then
68532   { { echo "$as_me:$LINENO: error: conditional \"WANT_SCSI_BSD\" was never defined.
68533 Usually this means the macro was only invoked conditionally." >&5
68534 echo "$as_me: error: conditional \"WANT_SCSI_BSD\" was never defined.
68535 Usually this means the macro was only invoked conditionally." >&2;}
68536    { (exit 1); exit 1; }; }
68537 fi
68538 if test -z "${WANT_CHG_SCSI_CHIO_TRUE}" && test -z "${WANT_CHG_SCSI_CHIO_FALSE}"; then
68539   { { echo "$as_me:$LINENO: error: conditional \"WANT_CHG_SCSI_CHIO\" was never defined.
68540 Usually this means the macro was only invoked conditionally." >&5
68541 echo "$as_me: error: conditional \"WANT_CHG_SCSI_CHIO\" was never defined.
68542 Usually this means the macro was only invoked conditionally." >&2;}
68543    { (exit 1); exit 1; }; }
68544 fi
68545 if test -z "${WANT_SCSI_HPUX_TRUE}" && test -z "${WANT_SCSI_HPUX_FALSE}"; then
68546   { { echo "$as_me:$LINENO: error: conditional \"WANT_SCSI_HPUX\" was never defined.
68547 Usually this means the macro was only invoked conditionally." >&5
68548 echo "$as_me: error: conditional \"WANT_SCSI_HPUX\" was never defined.
68549 Usually this means the macro was only invoked conditionally." >&2;}
68550    { (exit 1); exit 1; }; }
68551 fi
68552 if test -z "${WANT_SCSI_CHIO_TRUE}" && test -z "${WANT_SCSI_CHIO_FALSE}"; then
68553   { { echo "$as_me:$LINENO: error: conditional \"WANT_SCSI_CHIO\" was never defined.
68554 Usually this means the macro was only invoked conditionally." >&5
68555 echo "$as_me: error: conditional \"WANT_SCSI_CHIO\" was never defined.
68556 Usually this means the macro was only invoked conditionally." >&2;}
68557    { (exit 1); exit 1; }; }
68558 fi
68559 if test -z "${WANT_AMFLOCK_POSIX_TRUE}" && test -z "${WANT_AMFLOCK_POSIX_FALSE}"; then
68560   { { echo "$as_me:$LINENO: error: conditional \"WANT_AMFLOCK_POSIX\" was never defined.
68561 Usually this means the macro was only invoked conditionally." >&5
68562 echo "$as_me: error: conditional \"WANT_AMFLOCK_POSIX\" was never defined.
68563 Usually this means the macro was only invoked conditionally." >&2;}
68564    { (exit 1); exit 1; }; }
68565 fi
68566 if test -z "${WANT_AMFLOCK_FLOCK_TRUE}" && test -z "${WANT_AMFLOCK_FLOCK_FALSE}"; then
68567   { { echo "$as_me:$LINENO: error: conditional \"WANT_AMFLOCK_FLOCK\" was never defined.
68568 Usually this means the macro was only invoked conditionally." >&5
68569 echo "$as_me: error: conditional \"WANT_AMFLOCK_FLOCK\" was never defined.
68570 Usually this means the macro was only invoked conditionally." >&2;}
68571    { (exit 1); exit 1; }; }
68572 fi
68573 if test -z "${WANT_AMFLOCK_LOCKF_TRUE}" && test -z "${WANT_AMFLOCK_LOCKF_FALSE}"; then
68574   { { echo "$as_me:$LINENO: error: conditional \"WANT_AMFLOCK_LOCKF\" was never defined.
68575 Usually this means the macro was only invoked conditionally." >&5
68576 echo "$as_me: error: conditional \"WANT_AMFLOCK_LOCKF\" was never defined.
68577 Usually this means the macro was only invoked conditionally." >&2;}
68578    { (exit 1); exit 1; }; }
68579 fi
68580 if test -z "${WANT_AMFLOCK_LNLOCK_TRUE}" && test -z "${WANT_AMFLOCK_LNLOCK_FALSE}"; then
68581   { { echo "$as_me:$LINENO: error: conditional \"WANT_AMFLOCK_LNLOCK\" was never defined.
68582 Usually this means the macro was only invoked conditionally." >&5
68583 echo "$as_me: error: conditional \"WANT_AMFLOCK_LNLOCK\" was never defined.
68584 Usually this means the macro was only invoked conditionally." >&2;}
68585    { (exit 1); exit 1; }; }
68586 fi
68587 if test -z "${WANT_CYGWIN_COPY_PERL_DLL_TRUE}" && test -z "${WANT_CYGWIN_COPY_PERL_DLL_FALSE}"; then
68588   { { echo "$as_me:$LINENO: error: conditional \"WANT_CYGWIN_COPY_PERL_DLL\" was never defined.
68589 Usually this means the macro was only invoked conditionally." >&5
68590 echo "$as_me: error: conditional \"WANT_CYGWIN_COPY_PERL_DLL\" was never defined.
68591 Usually this means the macro was only invoked conditionally." >&2;}
68592    { (exit 1); exit 1; }; }
68593 fi
68594 if test -z "${WANT_S3_DEVICE_TRUE}" && test -z "${WANT_S3_DEVICE_FALSE}"; then
68595   { { echo "$as_me:$LINENO: error: conditional \"WANT_S3_DEVICE\" was never defined.
68596 Usually this means the macro was only invoked conditionally." >&5
68597 echo "$as_me: error: conditional \"WANT_S3_DEVICE\" was never defined.
68598 Usually this means the macro was only invoked conditionally." >&2;}
68599    { (exit 1); exit 1; }; }
68600 fi
68601 if test -z "${WANT_DEVPAY_TRUE}" && test -z "${WANT_DEVPAY_FALSE}"; then
68602   { { echo "$as_me:$LINENO: error: conditional \"WANT_DEVPAY\" was never defined.
68603 Usually this means the macro was only invoked conditionally." >&5
68604 echo "$as_me: error: conditional \"WANT_DEVPAY\" was never defined.
68605 Usually this means the macro was only invoked conditionally." >&2;}
68606    { (exit 1); exit 1; }; }
68607 fi
68608 if test -z "${WANT_TAPE_XENIX_TRUE}" && test -z "${WANT_TAPE_XENIX_FALSE}"; then
68609   { { echo "$as_me:$LINENO: error: conditional \"WANT_TAPE_XENIX\" was never defined.
68610 Usually this means the macro was only invoked conditionally." >&5
68611 echo "$as_me: error: conditional \"WANT_TAPE_XENIX\" was never defined.
68612 Usually this means the macro was only invoked conditionally." >&2;}
68613    { (exit 1); exit 1; }; }
68614 fi
68615 if test -z "${WANT_TAPE_AIX_TRUE}" && test -z "${WANT_TAPE_AIX_FALSE}"; then
68616   { { echo "$as_me:$LINENO: error: conditional \"WANT_TAPE_AIX\" was never defined.
68617 Usually this means the macro was only invoked conditionally." >&5
68618 echo "$as_me: error: conditional \"WANT_TAPE_AIX\" was never defined.
68619 Usually this means the macro was only invoked conditionally." >&2;}
68620    { (exit 1); exit 1; }; }
68621 fi
68622 if test -z "${WANT_TAPE_UWARE_TRUE}" && test -z "${WANT_TAPE_UWARE_FALSE}"; then
68623   { { echo "$as_me:$LINENO: error: conditional \"WANT_TAPE_UWARE\" was never defined.
68624 Usually this means the macro was only invoked conditionally." >&5
68625 echo "$as_me: error: conditional \"WANT_TAPE_UWARE\" was never defined.
68626 Usually this means the macro was only invoked conditionally." >&2;}
68627    { (exit 1); exit 1; }; }
68628 fi
68629 if test -z "${WANT_TAPE_POSIX_TRUE}" && test -z "${WANT_TAPE_POSIX_FALSE}"; then
68630   { { echo "$as_me:$LINENO: error: conditional \"WANT_TAPE_POSIX\" was never defined.
68631 Usually this means the macro was only invoked conditionally." >&5
68632 echo "$as_me: error: conditional \"WANT_TAPE_POSIX\" was never defined.
68633 Usually this means the macro was only invoked conditionally." >&2;}
68634    { (exit 1); exit 1; }; }
68635 fi
68636 if test -z "${WANT_TAPE_DEVICE_TRUE}" && test -z "${WANT_TAPE_DEVICE_FALSE}"; then
68637   { { echo "$as_me:$LINENO: error: conditional \"WANT_TAPE_DEVICE\" was never defined.
68638 Usually this means the macro was only invoked conditionally." >&5
68639 echo "$as_me: error: conditional \"WANT_TAPE_DEVICE\" was never defined.
68640 Usually this means the macro was only invoked conditionally." >&2;}
68641    { (exit 1); exit 1; }; }
68642 fi
68643 if test -z "${WANT_BSD_SECURITY_TRUE}" && test -z "${WANT_BSD_SECURITY_FALSE}"; then
68644   { { echo "$as_me:$LINENO: error: conditional \"WANT_BSD_SECURITY\" was never defined.
68645 Usually this means the macro was only invoked conditionally." >&5
68646 echo "$as_me: error: conditional \"WANT_BSD_SECURITY\" was never defined.
68647 Usually this means the macro was only invoked conditionally." >&2;}
68648    { (exit 1); exit 1; }; }
68649 fi
68650 if test -z "${WANT_BSDTCP_SECURITY_TRUE}" && test -z "${WANT_BSDTCP_SECURITY_FALSE}"; then
68651   { { echo "$as_me:$LINENO: error: conditional \"WANT_BSDTCP_SECURITY\" was never defined.
68652 Usually this means the macro was only invoked conditionally." >&5
68653 echo "$as_me: error: conditional \"WANT_BSDTCP_SECURITY\" was never defined.
68654 Usually this means the macro was only invoked conditionally." >&2;}
68655    { (exit 1); exit 1; }; }
68656 fi
68657 if test -z "${WANT_BSDUDP_SECURITY_TRUE}" && test -z "${WANT_BSDUDP_SECURITY_FALSE}"; then
68658   { { echo "$as_me:$LINENO: error: conditional \"WANT_BSDUDP_SECURITY\" was never defined.
68659 Usually this means the macro was only invoked conditionally." >&5
68660 echo "$as_me: error: conditional \"WANT_BSDUDP_SECURITY\" was never defined.
68661 Usually this means the macro was only invoked conditionally." >&2;}
68662    { (exit 1); exit 1; }; }
68663 fi
68664 if test -z "${WANT_RSH_SECURITY_TRUE}" && test -z "${WANT_RSH_SECURITY_FALSE}"; then
68665   { { echo "$as_me:$LINENO: error: conditional \"WANT_RSH_SECURITY\" was never defined.
68666 Usually this means the macro was only invoked conditionally." >&5
68667 echo "$as_me: error: conditional \"WANT_RSH_SECURITY\" was never defined.
68668 Usually this means the macro was only invoked conditionally." >&2;}
68669    { (exit 1); exit 1; }; }
68670 fi
68671 if test -z "${WANT_SSH_SECURITY_TRUE}" && test -z "${WANT_SSH_SECURITY_FALSE}"; then
68672   { { echo "$as_me:$LINENO: error: conditional \"WANT_SSH_SECURITY\" was never defined.
68673 Usually this means the macro was only invoked conditionally." >&5
68674 echo "$as_me: error: conditional \"WANT_SSH_SECURITY\" was never defined.
68675 Usually this means the macro was only invoked conditionally." >&2;}
68676    { (exit 1); exit 1; }; }
68677 fi
68678 if test -z "${WANT_KRB4_SECURITY_TRUE}" && test -z "${WANT_KRB4_SECURITY_FALSE}"; then
68679   { { echo "$as_me:$LINENO: error: conditional \"WANT_KRB4_SECURITY\" was never defined.
68680 Usually this means the macro was only invoked conditionally." >&5
68681 echo "$as_me: error: conditional \"WANT_KRB4_SECURITY\" was never defined.
68682 Usually this means the macro was only invoked conditionally." >&2;}
68683    { (exit 1); exit 1; }; }
68684 fi
68685 if test -z "${WANT_KRB5_SECURITY_TRUE}" && test -z "${WANT_KRB5_SECURITY_FALSE}"; then
68686   { { echo "$as_me:$LINENO: error: conditional \"WANT_KRB5_SECURITY\" was never defined.
68687 Usually this means the macro was only invoked conditionally." >&5
68688 echo "$as_me: error: conditional \"WANT_KRB5_SECURITY\" was never defined.
68689 Usually this means the macro was only invoked conditionally." >&2;}
68690    { (exit 1); exit 1; }; }
68691 fi
68692 if test -z "${WANT_SAMBA_TRUE}" && test -z "${WANT_SAMBA_FALSE}"; then
68693   { { echo "$as_me:$LINENO: error: conditional \"WANT_SAMBA\" was never defined.
68694 Usually this means the macro was only invoked conditionally." >&5
68695 echo "$as_me: error: conditional \"WANT_SAMBA\" was never defined.
68696 Usually this means the macro was only invoked conditionally." >&2;}
68697    { (exit 1); exit 1; }; }
68698 fi
68699 if test -z "${GCC_COMPILER_TRUE}" && test -z "${GCC_COMPILER_FALSE}"; then
68700   { { echo "$as_me:$LINENO: error: conditional \"GCC_COMPILER\" was never defined.
68701 Usually this means the macro was only invoked conditionally." >&5
68702 echo "$as_me: error: conditional \"GCC_COMPILER\" was never defined.
68703 Usually this means the macro was only invoked conditionally." >&2;}
68704    { (exit 1); exit 1; }; }
68705 fi
68706 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
68707   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
68708 Usually this means the macro was only invoked conditionally." >&5
68709 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
68710 Usually this means the macro was only invoked conditionally." >&2;}
68711    { (exit 1); exit 1; }; }
68712 fi
68713
68714 : ${CONFIG_STATUS=./config.status}
68715 ac_clean_files_save=$ac_clean_files
68716 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
68717 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
68718 echo "$as_me: creating $CONFIG_STATUS" >&6;}
68719 cat >$CONFIG_STATUS <<_ACEOF
68720 #! $SHELL
68721 # Generated by $as_me.
68722 # Run this file to recreate the current configuration.
68723 # Compiler output produced by configure, useful for debugging
68724 # configure, is in config.log if it exists.
68725
68726 debug=false
68727 ac_cs_recheck=false
68728 ac_cs_silent=false
68729 SHELL=\${CONFIG_SHELL-$SHELL}
68730 _ACEOF
68731
68732 cat >>$CONFIG_STATUS <<\_ACEOF
68733 ## --------------------- ##
68734 ## M4sh Initialization.  ##
68735 ## --------------------- ##
68736
68737 # Be more Bourne compatible
68738 DUALCASE=1; export DUALCASE # for MKS sh
68739 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
68740   emulate sh
68741   NULLCMD=:
68742   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
68743   # is contrary to our usage.  Disable this feature.
68744   alias -g '${1+"$@"}'='"$@"'
68745   setopt NO_GLOB_SUBST
68746 else
68747   case `(set -o) 2>/dev/null` in
68748   *posix*) set -o posix ;;
68749 esac
68750
68751 fi
68752
68753
68754
68755
68756 # PATH needs CR
68757 # Avoid depending upon Character Ranges.
68758 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
68759 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
68760 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
68761 as_cr_digits='0123456789'
68762 as_cr_alnum=$as_cr_Letters$as_cr_digits
68763
68764 # The user is always right.
68765 if test "${PATH_SEPARATOR+set}" != set; then
68766   echo "#! /bin/sh" >conf$$.sh
68767   echo  "exit 0"   >>conf$$.sh
68768   chmod +x conf$$.sh
68769   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
68770     PATH_SEPARATOR=';'
68771   else
68772     PATH_SEPARATOR=:
68773   fi
68774   rm -f conf$$.sh
68775 fi
68776
68777 # Support unset when possible.
68778 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
68779   as_unset=unset
68780 else
68781   as_unset=false
68782 fi
68783
68784
68785 # IFS
68786 # We need space, tab and new line, in precisely that order.  Quoting is
68787 # there to prevent editors from complaining about space-tab.
68788 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
68789 # splitting by setting IFS to empty value.)
68790 as_nl='
68791 '
68792 IFS=" ""        $as_nl"
68793
68794 # Find who we are.  Look in the path if we contain no directory separator.
68795 case $0 in
68796   *[\\/]* ) as_myself=$0 ;;
68797   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
68798 for as_dir in $PATH
68799 do
68800   IFS=$as_save_IFS
68801   test -z "$as_dir" && as_dir=.
68802   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
68803 done
68804 IFS=$as_save_IFS
68805
68806      ;;
68807 esac
68808 # We did not find ourselves, most probably we were run as `sh COMMAND'
68809 # in which case we are not to be found in the path.
68810 if test "x$as_myself" = x; then
68811   as_myself=$0
68812 fi
68813 if test ! -f "$as_myself"; then
68814   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
68815   { (exit 1); exit 1; }
68816 fi
68817
68818 # Work around bugs in pre-3.0 UWIN ksh.
68819 for as_var in ENV MAIL MAILPATH
68820 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
68821 done
68822 PS1='$ '
68823 PS2='> '
68824 PS4='+ '
68825
68826 # NLS nuisances.
68827 for as_var in \
68828   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
68829   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
68830   LC_TELEPHONE LC_TIME
68831 do
68832   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
68833     eval $as_var=C; export $as_var
68834   else
68835     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
68836   fi
68837 done
68838
68839 # Required to use basename.
68840 if expr a : '\(a\)' >/dev/null 2>&1 &&
68841    test "X`expr 00001 : '.*\(...\)'`" = X001; then
68842   as_expr=expr
68843 else
68844   as_expr=false
68845 fi
68846
68847 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
68848   as_basename=basename
68849 else
68850   as_basename=false
68851 fi
68852
68853
68854 # Name of the executable.
68855 as_me=`$as_basename -- "$0" ||
68856 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68857          X"$0" : 'X\(//\)$' \| \
68858          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
68859 echo X/"$0" |
68860     sed '/^.*\/\([^/][^/]*\)\/*$/{
68861             s//\1/
68862             q
68863           }
68864           /^X\/\(\/\/\)$/{
68865             s//\1/
68866             q
68867           }
68868           /^X\/\(\/\).*/{
68869             s//\1/
68870             q
68871           }
68872           s/.*/./; q'`
68873
68874 # CDPATH.
68875 $as_unset CDPATH
68876
68877
68878
68879   as_lineno_1=$LINENO
68880   as_lineno_2=$LINENO
68881   test "x$as_lineno_1" != "x$as_lineno_2" &&
68882   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
68883
68884   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
68885   # uniformly replaced by the line number.  The first 'sed' inserts a
68886   # line-number line after each line using $LINENO; the second 'sed'
68887   # does the real work.  The second script uses 'N' to pair each
68888   # line-number line with the line containing $LINENO, and appends
68889   # trailing '-' during substitution so that $LINENO is not a special
68890   # case at line end.
68891   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
68892   # scripts with optimization help from Paolo Bonzini.  Blame Lee
68893   # E. McMahon (1931-1989) for sed's syntax.  :-)
68894   sed -n '
68895     p
68896     /[$]LINENO/=
68897   ' <$as_myself |
68898     sed '
68899       s/[$]LINENO.*/&-/
68900       t lineno
68901       b
68902       :lineno
68903       N
68904       :loop
68905       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
68906       t loop
68907       s/-\n.*//
68908     ' >$as_me.lineno &&
68909   chmod +x "$as_me.lineno" ||
68910     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
68911    { (exit 1); exit 1; }; }
68912
68913   # Don't try to exec as it changes $[0], causing all sort of problems
68914   # (the dirname of $[0] is not the place where we might find the
68915   # original and so on.  Autoconf is especially sensitive to this).
68916   . "./$as_me.lineno"
68917   # Exit status is that of the last command.
68918   exit
68919 }
68920
68921
68922 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
68923   as_dirname=dirname
68924 else
68925   as_dirname=false
68926 fi
68927
68928 ECHO_C= ECHO_N= ECHO_T=
68929 case `echo -n x` in
68930 -n*)
68931   case `echo 'x\c'` in
68932   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
68933   *)   ECHO_C='\c';;
68934   esac;;
68935 *)
68936   ECHO_N='-n';;
68937 esac
68938
68939 if expr a : '\(a\)' >/dev/null 2>&1 &&
68940    test "X`expr 00001 : '.*\(...\)'`" = X001; then
68941   as_expr=expr
68942 else
68943   as_expr=false
68944 fi
68945
68946 rm -f conf$$ conf$$.exe conf$$.file
68947 if test -d conf$$.dir; then
68948   rm -f conf$$.dir/conf$$.file
68949 else
68950   rm -f conf$$.dir
68951   mkdir conf$$.dir
68952 fi
68953 echo >conf$$.file
68954 if ln -s conf$$.file conf$$ 2>/dev/null; then
68955   as_ln_s='ln -s'
68956   # ... but there are two gotchas:
68957   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
68958   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
68959   # In both cases, we have to default to `cp -p'.
68960   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
68961     as_ln_s='cp -p'
68962 elif ln conf$$.file conf$$ 2>/dev/null; then
68963   as_ln_s=ln
68964 else
68965   as_ln_s='cp -p'
68966 fi
68967 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
68968 rmdir conf$$.dir 2>/dev/null
68969
68970 if mkdir -p . 2>/dev/null; then
68971   as_mkdir_p=:
68972 else
68973   test -d ./-p && rmdir ./-p
68974   as_mkdir_p=false
68975 fi
68976
68977 if test -x / >/dev/null 2>&1; then
68978   as_test_x='test -x'
68979 else
68980   if ls -dL / >/dev/null 2>&1; then
68981     as_ls_L_option=L
68982   else
68983     as_ls_L_option=
68984   fi
68985   as_test_x='
68986     eval sh -c '\''
68987       if test -d "$1"; then
68988         test -d "$1/.";
68989       else
68990         case $1 in
68991         -*)set "./$1";;
68992         esac;
68993         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
68994         ???[sx]*):;;*)false;;esac;fi
68995     '\'' sh
68996   '
68997 fi
68998 as_executable_p=$as_test_x
68999
69000 # Sed expression to map a string onto a valid CPP name.
69001 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
69002
69003 # Sed expression to map a string onto a valid variable name.
69004 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
69005
69006
69007 exec 6>&1
69008
69009 # Save the log message, to keep $[0] and so on meaningful, and to
69010 # report actual input values of CONFIG_FILES etc. instead of their
69011 # values after options handling.
69012 ac_log="
69013 This file was extended by $as_me, which was
69014 generated by GNU Autoconf 2.61.  Invocation command line was
69015
69016   CONFIG_FILES    = $CONFIG_FILES
69017   CONFIG_HEADERS  = $CONFIG_HEADERS
69018   CONFIG_LINKS    = $CONFIG_LINKS
69019   CONFIG_COMMANDS = $CONFIG_COMMANDS
69020   $ $0 $@
69021
69022 on `(hostname || uname -n) 2>/dev/null | sed 1q`
69023 "
69024
69025 _ACEOF
69026
69027 cat >>$CONFIG_STATUS <<_ACEOF
69028 # Files that config.status was made for.
69029 config_files="$ac_config_files"
69030 config_headers="$ac_config_headers"
69031 config_commands="$ac_config_commands"
69032
69033 _ACEOF
69034
69035 cat >>$CONFIG_STATUS <<\_ACEOF
69036 ac_cs_usage="\
69037 \`$as_me' instantiates files from templates according to the
69038 current configuration.
69039
69040 Usage: $0 [OPTIONS] [FILE]...
69041
69042   -h, --help       print this help, then exit
69043   -V, --version    print version number and configuration settings, then exit
69044   -q, --quiet      do not print progress messages
69045   -d, --debug      don't remove temporary files
69046       --recheck    update $as_me by reconfiguring in the same conditions
69047   --file=FILE[:TEMPLATE]
69048                    instantiate the configuration file FILE
69049   --header=FILE[:TEMPLATE]
69050                    instantiate the configuration header FILE
69051
69052 Configuration files:
69053 $config_files
69054
69055 Configuration headers:
69056 $config_headers
69057
69058 Configuration commands:
69059 $config_commands
69060
69061 Report bugs to <bug-autoconf@gnu.org>."
69062
69063 _ACEOF
69064 cat >>$CONFIG_STATUS <<_ACEOF
69065 ac_cs_version="\\
69066 config.status
69067 configured by $0, generated by GNU Autoconf 2.61,
69068   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
69069
69070 Copyright (C) 2006 Free Software Foundation, Inc.
69071 This config.status script is free software; the Free Software Foundation
69072 gives unlimited permission to copy, distribute and modify it."
69073
69074 ac_pwd='$ac_pwd'
69075 srcdir='$srcdir'
69076 INSTALL='$INSTALL'
69077 MKDIR_P='$MKDIR_P'
69078 _ACEOF
69079
69080 cat >>$CONFIG_STATUS <<\_ACEOF
69081 # If no file are specified by the user, then we need to provide default
69082 # value.  By we need to know if files were specified by the user.
69083 ac_need_defaults=:
69084 while test $# != 0
69085 do
69086   case $1 in
69087   --*=*)
69088     ac_option=`expr "X$1" : 'X\([^=]*\)='`
69089     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
69090     ac_shift=:
69091     ;;
69092   *)
69093     ac_option=$1
69094     ac_optarg=$2
69095     ac_shift=shift
69096     ;;
69097   esac
69098
69099   case $ac_option in
69100   # Handling of the options.
69101   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
69102     ac_cs_recheck=: ;;
69103   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
69104     echo "$ac_cs_version"; exit ;;
69105   --debug | --debu | --deb | --de | --d | -d )
69106     debug=: ;;
69107   --file | --fil | --fi | --f )
69108     $ac_shift
69109     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
69110     ac_need_defaults=false;;
69111   --header | --heade | --head | --hea )
69112     $ac_shift
69113     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
69114     ac_need_defaults=false;;
69115   --he | --h)
69116     # Conflict between --help and --header
69117     { echo "$as_me: error: ambiguous option: $1
69118 Try \`$0 --help' for more information." >&2
69119    { (exit 1); exit 1; }; };;
69120   --help | --hel | -h )
69121     echo "$ac_cs_usage"; exit ;;
69122   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
69123   | -silent | --silent | --silen | --sile | --sil | --si | --s)
69124     ac_cs_silent=: ;;
69125
69126   # This is an error.
69127   -*) { echo "$as_me: error: unrecognized option: $1
69128 Try \`$0 --help' for more information." >&2
69129    { (exit 1); exit 1; }; } ;;
69130
69131   *) ac_config_targets="$ac_config_targets $1"
69132      ac_need_defaults=false ;;
69133
69134   esac
69135   shift
69136 done
69137
69138 ac_configure_extra_args=
69139
69140 if $ac_cs_silent; then
69141   exec 6>/dev/null
69142   ac_configure_extra_args="$ac_configure_extra_args --silent"
69143 fi
69144
69145 _ACEOF
69146 cat >>$CONFIG_STATUS <<_ACEOF
69147 if \$ac_cs_recheck; then
69148   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
69149   CONFIG_SHELL=$SHELL
69150   export CONFIG_SHELL
69151   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
69152 fi
69153
69154 _ACEOF
69155 cat >>$CONFIG_STATUS <<\_ACEOF
69156 exec 5>>config.log
69157 {
69158   echo
69159   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
69160 ## Running $as_me. ##
69161 _ASBOX
69162   echo "$ac_log"
69163 } >&5
69164
69165 _ACEOF
69166 cat >>$CONFIG_STATUS <<_ACEOF
69167 #
69168 # INIT-COMMANDS
69169 #
69170 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
69171 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
69172     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
69173     # from automake < 1.5.
69174     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
69175     # Capture the value of LINGUAS because we need it to compute CATALOGS.
69176     LINGUAS="${LINGUAS-%UNSET%}"
69177
69178
69179 _ACEOF
69180
69181 cat >>$CONFIG_STATUS <<\_ACEOF
69182
69183 # Handling of arguments.
69184 for ac_config_target in $ac_config_targets
69185 do
69186   case $ac_config_target in
69187     "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
69188     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
69189     "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
69190     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
69191     "amandad-src/Makefile") CONFIG_FILES="$CONFIG_FILES amandad-src/Makefile" ;;
69192     "amplot/Makefile") CONFIG_FILES="$CONFIG_FILES amplot/Makefile" ;;
69193     "changer-src/Makefile") CONFIG_FILES="$CONFIG_FILES changer-src/Makefile" ;;
69194     "client-src/Makefile") CONFIG_FILES="$CONFIG_FILES client-src/Makefile" ;;
69195     "common-src/Makefile") CONFIG_FILES="$CONFIG_FILES common-src/Makefile" ;;
69196     "common-src/versuff.c") CONFIG_FILES="$CONFIG_FILES common-src/versuff.c" ;;
69197     "config/Makefile") CONFIG_FILES="$CONFIG_FILES config/Makefile" ;;
69198     "device-src/Makefile") CONFIG_FILES="$CONFIG_FILES device-src/Makefile" ;;
69199     "device-src/tests/Makefile") CONFIG_FILES="$CONFIG_FILES device-src/tests/Makefile" ;;
69200     "dumper-src/Makefile") CONFIG_FILES="$CONFIG_FILES dumper-src/Makefile" ;;
69201     "example/Makefile") CONFIG_FILES="$CONFIG_FILES example/Makefile" ;;
69202     "example/amanda-client.conf") CONFIG_FILES="$CONFIG_FILES example/amanda-client.conf" ;;
69203     "example/amanda.conf") CONFIG_FILES="$CONFIG_FILES example/amanda.conf" ;;
69204     "example/chg-mcutil.conf") CONFIG_FILES="$CONFIG_FILES example/chg-mcutil.conf" ;;
69205     "example/template.d/amanda-S3.conf") CONFIG_FILES="$CONFIG_FILES example/template.d/amanda-S3.conf" ;;
69206     "example/template.d/advanced.conf") CONFIG_FILES="$CONFIG_FILES example/template.d/advanced.conf" ;;
69207     "example/template.d/amanda-harddisk.conf") CONFIG_FILES="$CONFIG_FILES example/template.d/amanda-harddisk.conf" ;;
69208     "example/template.d/amanda-single-tape.conf") CONFIG_FILES="$CONFIG_FILES example/template.d/amanda-single-tape.conf" ;;
69209     "example/template.d/amanda-tape-changer.conf") CONFIG_FILES="$CONFIG_FILES example/template.d/amanda-tape-changer.conf" ;;
69210     "gnulib/Makefile") CONFIG_FILES="$CONFIG_FILES gnulib/Makefile" ;;
69211     "installcheck/Makefile") CONFIG_FILES="$CONFIG_FILES installcheck/Makefile" ;;
69212     "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
69213     "oldrecover-src/Makefile") CONFIG_FILES="$CONFIG_FILES oldrecover-src/Makefile" ;;
69214     "packaging/Makefile") CONFIG_FILES="$CONFIG_FILES packaging/Makefile" ;;
69215     "perl/Makefile") CONFIG_FILES="$CONFIG_FILES perl/Makefile" ;;
69216     "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
69217     "recover-src/Makefile") CONFIG_FILES="$CONFIG_FILES recover-src/Makefile" ;;
69218     "restore-src/Makefile") CONFIG_FILES="$CONFIG_FILES restore-src/Makefile" ;;
69219     "server-src/Makefile") CONFIG_FILES="$CONFIG_FILES server-src/Makefile" ;;
69220     "tape-src/Makefile") CONFIG_FILES="$CONFIG_FILES tape-src/Makefile" ;;
69221
69222   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
69223 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
69224    { (exit 1); exit 1; }; };;
69225   esac
69226 done
69227
69228
69229 # If the user did not use the arguments to specify the items to instantiate,
69230 # then the envvar interface is used.  Set only those that are not.
69231 # We use the long form for the default assignment because of an extremely
69232 # bizarre bug on SunOS 4.1.3.
69233 if $ac_need_defaults; then
69234   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
69235   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
69236   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
69237 fi
69238
69239 # Have a temporary directory for convenience.  Make it in the build tree
69240 # simply because there is no reason against having it here, and in addition,
69241 # creating and moving files from /tmp can sometimes cause problems.
69242 # Hook for its removal unless debugging.
69243 # Note that there is a small window in which the directory will not be cleaned:
69244 # after its creation but before its name has been assigned to `$tmp'.
69245 $debug ||
69246 {
69247   tmp=
69248   trap 'exit_status=$?
69249   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
69250 ' 0
69251   trap '{ (exit 1); exit 1; }' 1 2 13 15
69252 }
69253 # Create a (secure) tmp directory for tmp files.
69254
69255 {
69256   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
69257   test -n "$tmp" && test -d "$tmp"
69258 }  ||
69259 {
69260   tmp=./conf$$-$RANDOM
69261   (umask 077 && mkdir "$tmp")
69262 } ||
69263 {
69264    echo "$me: cannot create a temporary directory in ." >&2
69265    { (exit 1); exit 1; }
69266 }
69267
69268 #
69269 # Set up the sed scripts for CONFIG_FILES section.
69270 #
69271
69272 # No need to generate the scripts if there are no CONFIG_FILES.
69273 # This happens for instance when ./config.status config.h
69274 if test -n "$CONFIG_FILES"; then
69275
69276 _ACEOF
69277
69278
69279
69280 ac_delim='%!_!# '
69281 for ac_last_try in false false false false false :; do
69282   cat >conf$$subs.sed <<_ACEOF
69283 SHELL!$SHELL$ac_delim
69284 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
69285 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
69286 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
69287 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
69288 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
69289 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
69290 exec_prefix!$exec_prefix$ac_delim
69291 prefix!$prefix$ac_delim
69292 program_transform_name!$program_transform_name$ac_delim
69293 bindir!$bindir$ac_delim
69294 sbindir!$sbindir$ac_delim
69295 libexecdir!$libexecdir$ac_delim
69296 datarootdir!$datarootdir$ac_delim
69297 datadir!$datadir$ac_delim
69298 sysconfdir!$sysconfdir$ac_delim
69299 sharedstatedir!$sharedstatedir$ac_delim
69300 localstatedir!$localstatedir$ac_delim
69301 includedir!$includedir$ac_delim
69302 oldincludedir!$oldincludedir$ac_delim
69303 docdir!$docdir$ac_delim
69304 infodir!$infodir$ac_delim
69305 htmldir!$htmldir$ac_delim
69306 dvidir!$dvidir$ac_delim
69307 pdfdir!$pdfdir$ac_delim
69308 psdir!$psdir$ac_delim
69309 libdir!$libdir$ac_delim
69310 localedir!$localedir$ac_delim
69311 mandir!$mandir$ac_delim
69312 DEFS!$DEFS$ac_delim
69313 ECHO_C!$ECHO_C$ac_delim
69314 ECHO_N!$ECHO_N$ac_delim
69315 ECHO_T!$ECHO_T$ac_delim
69316 LIBS!$LIBS$ac_delim
69317 build_alias!$build_alias$ac_delim
69318 host_alias!$host_alias$ac_delim
69319 target_alias!$target_alias$ac_delim
69320 build!$build$ac_delim
69321 build_cpu!$build_cpu$ac_delim
69322 build_vendor!$build_vendor$ac_delim
69323 build_os!$build_os$ac_delim
69324 host!$host$ac_delim
69325 host_cpu!$host_cpu$ac_delim
69326 host_vendor!$host_vendor$ac_delim
69327 host_os!$host_os$ac_delim
69328 target!$target$ac_delim
69329 target_cpu!$target_cpu$ac_delim
69330 target_vendor!$target_vendor$ac_delim
69331 target_os!$target_os$ac_delim
69332 PACKAGE!$PACKAGE$ac_delim
69333 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
69334 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
69335 INSTALL_DATA!$INSTALL_DATA$ac_delim
69336 am__isrc!$am__isrc$ac_delim
69337 CYGPATH_W!$CYGPATH_W$ac_delim
69338 VERSION!$VERSION$ac_delim
69339 ACLOCAL!$ACLOCAL$ac_delim
69340 AUTOCONF!$AUTOCONF$ac_delim
69341 AUTOMAKE!$AUTOMAKE$ac_delim
69342 AUTOHEADER!$AUTOHEADER$ac_delim
69343 MAKEINFO!$MAKEINFO$ac_delim
69344 install_sh!$install_sh$ac_delim
69345 STRIP!$STRIP$ac_delim
69346 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
69347 mkdir_p!$mkdir_p$ac_delim
69348 AWK!$AWK$ac_delim
69349 SET_MAKE!$SET_MAKE$ac_delim
69350 am__leading_dot!$am__leading_dot$ac_delim
69351 AMTAR!$AMTAR$ac_delim
69352 am__tar!$am__tar$ac_delim
69353 am__untar!$am__untar$ac_delim
69354 SNAPSHOT_STAMP!$SNAPSHOT_STAMP$ac_delim
69355 VERSION_MAJOR!$VERSION_MAJOR$ac_delim
69356 VERSION_MINOR!$VERSION_MINOR$ac_delim
69357 VERSION_PATCH!$VERSION_PATCH$ac_delim
69358 VERSION_COMMENT!$VERSION_COMMENT$ac_delim
69359 VERSION_SUFFIX!$VERSION_SUFFIX$ac_delim
69360 CC!$CC$ac_delim
69361 CFLAGS!$CFLAGS$ac_delim
69362 LDFLAGS!$LDFLAGS$ac_delim
69363 CPPFLAGS!$CPPFLAGS$ac_delim
69364 ac_ct_CC!$ac_ct_CC$ac_delim
69365 EXEEXT!$EXEEXT$ac_delim
69366 OBJEXT!$OBJEXT$ac_delim
69367 DEPDIR!$DEPDIR$ac_delim
69368 am__include!$am__include$ac_delim
69369 am__quote!$am__quote$ac_delim
69370 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
69371 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
69372 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
69373 CCDEPMODE!$CCDEPMODE$ac_delim
69374 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
69375 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
69376 RANLIB!$RANLIB$ac_delim
69377 CPP!$CPP$ac_delim
69378 GREP!$GREP$ac_delim
69379 EGREP!$EGREP$ac_delim
69380 _ACEOF
69381
69382   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
69383     break
69384   elif $ac_last_try; then
69385     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
69386 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
69387    { (exit 1); exit 1; }; }
69388   else
69389     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
69390   fi
69391 done
69392
69393 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
69394 if test -n "$ac_eof"; then
69395   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
69396   ac_eof=`expr $ac_eof + 1`
69397 fi
69398
69399 cat >>$CONFIG_STATUS <<_ACEOF
69400 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
69401 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
69402 _ACEOF
69403 sed '
69404 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
69405 s/^/s,@/; s/!/@,|#_!!_#|/
69406 :n
69407 t n
69408 s/'"$ac_delim"'$/,g/; t
69409 s/$/\\/; p
69410 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
69411 ' >>$CONFIG_STATUS <conf$$subs.sed
69412 rm -f conf$$subs.sed
69413 cat >>$CONFIG_STATUS <<_ACEOF
69414 CEOF$ac_eof
69415 _ACEOF
69416
69417
69418 ac_delim='%!_!# '
69419 for ac_last_try in false false false false false :; do
69420   cat >conf$$subs.sed <<_ACEOF
69421 GL_COND_LIBTOOL_TRUE!$GL_COND_LIBTOOL_TRUE$ac_delim
69422 GL_COND_LIBTOOL_FALSE!$GL_COND_LIBTOOL_FALSE$ac_delim
69423 ALLOCA!$ALLOCA$ac_delim
69424 ALLOCA_H!$ALLOCA_H$ac_delim
69425 ARPA_INET_H!$ARPA_INET_H$ac_delim
69426 INCLUDE_NEXT!$INCLUDE_NEXT$ac_delim
69427 NEXT_FLOAT_H!$NEXT_FLOAT_H$ac_delim
69428 FLOAT_H!$FLOAT_H$ac_delim
69429 NEXT_SYS_SOCKET_H!$NEXT_SYS_SOCKET_H$ac_delim
69430 HAVE_SYS_SOCKET_H!$HAVE_SYS_SOCKET_H$ac_delim
69431 HAVE_WINSOCK2_H!$HAVE_WINSOCK2_H$ac_delim
69432 HAVE_WS2TCPIP_H!$HAVE_WS2TCPIP_H$ac_delim
69433 SYS_SOCKET_H!$SYS_SOCKET_H$ac_delim
69434 LIBINTL!$LIBINTL$ac_delim
69435 LTLIBINTL!$LTLIBINTL$ac_delim
69436 NEXT_SYS_TIME_H!$NEXT_SYS_TIME_H$ac_delim
69437 HAVE_SYS_TIME_H!$HAVE_SYS_TIME_H$ac_delim
69438 HAVE_STRUCT_TIMEVAL!$HAVE_STRUCT_TIMEVAL$ac_delim
69439 REPLACE_GETTIMEOFDAY!$REPLACE_GETTIMEOFDAY$ac_delim
69440 SYS_TIME_H!$SYS_TIME_H$ac_delim
69441 LIBPTH!$LIBPTH$ac_delim
69442 LTLIBPTH!$LTLIBPTH$ac_delim
69443 LIBTHREAD!$LIBTHREAD$ac_delim
69444 LTLIBTHREAD!$LTLIBTHREAD$ac_delim
69445 LIBMULTITHREAD!$LIBMULTITHREAD$ac_delim
69446 LTLIBMULTITHREAD!$LTLIBMULTITHREAD$ac_delim
69447 HAVE_MALLOC_POSIX!$HAVE_MALLOC_POSIX$ac_delim
69448 GNULIB_MALLOC_POSIX!$GNULIB_MALLOC_POSIX$ac_delim
69449 GNULIB_REALLOC_POSIX!$GNULIB_REALLOC_POSIX$ac_delim
69450 GNULIB_CALLOC_POSIX!$GNULIB_CALLOC_POSIX$ac_delim
69451 GNULIB_GETSUBOPT!$GNULIB_GETSUBOPT$ac_delim
69452 GNULIB_MKDTEMP!$GNULIB_MKDTEMP$ac_delim
69453 GNULIB_MKSTEMP!$GNULIB_MKSTEMP$ac_delim
69454 HAVE_CALLOC_POSIX!$HAVE_CALLOC_POSIX$ac_delim
69455 HAVE_GETSUBOPT!$HAVE_GETSUBOPT$ac_delim
69456 HAVE_MKDTEMP!$HAVE_MKDTEMP$ac_delim
69457 HAVE_REALLOC_POSIX!$HAVE_REALLOC_POSIX$ac_delim
69458 REPLACE_MKSTEMP!$REPLACE_MKSTEMP$ac_delim
69459 NEXT_NETINET_IN_H!$NEXT_NETINET_IN_H$ac_delim
69460 HAVE_NETINET_IN_H!$HAVE_NETINET_IN_H$ac_delim
69461 NETINET_IN_H!$NETINET_IN_H$ac_delim
69462 GNULIB_FPRINTF_POSIX!$GNULIB_FPRINTF_POSIX$ac_delim
69463 GNULIB_PRINTF_POSIX!$GNULIB_PRINTF_POSIX$ac_delim
69464 GNULIB_SNPRINTF!$GNULIB_SNPRINTF$ac_delim
69465 GNULIB_SPRINTF_POSIX!$GNULIB_SPRINTF_POSIX$ac_delim
69466 GNULIB_VFPRINTF_POSIX!$GNULIB_VFPRINTF_POSIX$ac_delim
69467 GNULIB_VPRINTF_POSIX!$GNULIB_VPRINTF_POSIX$ac_delim
69468 GNULIB_VSNPRINTF!$GNULIB_VSNPRINTF$ac_delim
69469 GNULIB_VSPRINTF_POSIX!$GNULIB_VSPRINTF_POSIX$ac_delim
69470 GNULIB_VASPRINTF!$GNULIB_VASPRINTF$ac_delim
69471 GNULIB_FSEEK!$GNULIB_FSEEK$ac_delim
69472 GNULIB_FSEEKO!$GNULIB_FSEEKO$ac_delim
69473 GNULIB_FTELL!$GNULIB_FTELL$ac_delim
69474 GNULIB_FTELLO!$GNULIB_FTELLO$ac_delim
69475 GNULIB_FFLUSH!$GNULIB_FFLUSH$ac_delim
69476 GNULIB_GETDELIM!$GNULIB_GETDELIM$ac_delim
69477 GNULIB_GETLINE!$GNULIB_GETLINE$ac_delim
69478 REPLACE_FPRINTF!$REPLACE_FPRINTF$ac_delim
69479 REPLACE_VFPRINTF!$REPLACE_VFPRINTF$ac_delim
69480 REPLACE_PRINTF!$REPLACE_PRINTF$ac_delim
69481 REPLACE_VPRINTF!$REPLACE_VPRINTF$ac_delim
69482 REPLACE_SNPRINTF!$REPLACE_SNPRINTF$ac_delim
69483 HAVE_DECL_SNPRINTF!$HAVE_DECL_SNPRINTF$ac_delim
69484 REPLACE_VSNPRINTF!$REPLACE_VSNPRINTF$ac_delim
69485 HAVE_DECL_VSNPRINTF!$HAVE_DECL_VSNPRINTF$ac_delim
69486 REPLACE_SPRINTF!$REPLACE_SPRINTF$ac_delim
69487 REPLACE_VSPRINTF!$REPLACE_VSPRINTF$ac_delim
69488 HAVE_VASPRINTF!$HAVE_VASPRINTF$ac_delim
69489 REPLACE_VASPRINTF!$REPLACE_VASPRINTF$ac_delim
69490 HAVE_FSEEKO!$HAVE_FSEEKO$ac_delim
69491 REPLACE_FSEEKO!$REPLACE_FSEEKO$ac_delim
69492 REPLACE_FSEEK!$REPLACE_FSEEK$ac_delim
69493 HAVE_FTELLO!$HAVE_FTELLO$ac_delim
69494 REPLACE_FTELLO!$REPLACE_FTELLO$ac_delim
69495 REPLACE_FTELL!$REPLACE_FTELL$ac_delim
69496 REPLACE_FFLUSH!$REPLACE_FFLUSH$ac_delim
69497 HAVE_DECL_GETDELIM!$HAVE_DECL_GETDELIM$ac_delim
69498 HAVE_DECL_GETLINE!$HAVE_DECL_GETLINE$ac_delim
69499 REPLACE_GETLINE!$REPLACE_GETLINE$ac_delim
69500 STDBOOL_H!$STDBOOL_H$ac_delim
69501 HAVE__BOOL!$HAVE__BOOL$ac_delim
69502 HAVE_LONG_LONG_INT!$HAVE_LONG_LONG_INT$ac_delim
69503 HAVE_UNSIGNED_LONG_LONG_INT!$HAVE_UNSIGNED_LONG_LONG_INT$ac_delim
69504 HAVE_INTTYPES_H!$HAVE_INTTYPES_H$ac_delim
69505 HAVE_SYS_TYPES_H!$HAVE_SYS_TYPES_H$ac_delim
69506 NEXT_STDINT_H!$NEXT_STDINT_H$ac_delim
69507 HAVE_STDINT_H!$HAVE_STDINT_H$ac_delim
69508 HAVE_SYS_INTTYPES_H!$HAVE_SYS_INTTYPES_H$ac_delim
69509 HAVE_SYS_BITYPES_H!$HAVE_SYS_BITYPES_H$ac_delim
69510 BITSIZEOF_PTRDIFF_T!$BITSIZEOF_PTRDIFF_T$ac_delim
69511 BITSIZEOF_SIG_ATOMIC_T!$BITSIZEOF_SIG_ATOMIC_T$ac_delim
69512 BITSIZEOF_SIZE_T!$BITSIZEOF_SIZE_T$ac_delim
69513 BITSIZEOF_WCHAR_T!$BITSIZEOF_WCHAR_T$ac_delim
69514 BITSIZEOF_WINT_T!$BITSIZEOF_WINT_T$ac_delim
69515 HAVE_SIGNED_SIG_ATOMIC_T!$HAVE_SIGNED_SIG_ATOMIC_T$ac_delim
69516 HAVE_SIGNED_WCHAR_T!$HAVE_SIGNED_WCHAR_T$ac_delim
69517 HAVE_SIGNED_WINT_T!$HAVE_SIGNED_WINT_T$ac_delim
69518 _ACEOF
69519
69520   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
69521     break
69522   elif $ac_last_try; then
69523     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
69524 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
69525    { (exit 1); exit 1; }; }
69526   else
69527     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
69528   fi
69529 done
69530
69531 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
69532 if test -n "$ac_eof"; then
69533   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
69534   ac_eof=`expr $ac_eof + 1`
69535 fi
69536
69537 cat >>$CONFIG_STATUS <<_ACEOF
69538 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
69539 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
69540 _ACEOF
69541 sed '
69542 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
69543 s/^/s,@/; s/!/@,|#_!!_#|/
69544 :n
69545 t n
69546 s/'"$ac_delim"'$/,g/; t
69547 s/$/\\/; p
69548 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
69549 ' >>$CONFIG_STATUS <conf$$subs.sed
69550 rm -f conf$$subs.sed
69551 cat >>$CONFIG_STATUS <<_ACEOF
69552 CEOF$ac_eof
69553 _ACEOF
69554
69555
69556 ac_delim='%!_!# '
69557 for ac_last_try in false false false false false :; do
69558   cat >conf$$subs.sed <<_ACEOF
69559 PTRDIFF_T_SUFFIX!$PTRDIFF_T_SUFFIX$ac_delim
69560 SIG_ATOMIC_T_SUFFIX!$SIG_ATOMIC_T_SUFFIX$ac_delim
69561 SIZE_T_SUFFIX!$SIZE_T_SUFFIX$ac_delim
69562 WCHAR_T_SUFFIX!$WCHAR_T_SUFFIX$ac_delim
69563 WINT_T_SUFFIX!$WINT_T_SUFFIX$ac_delim
69564 STDINT_H!$STDINT_H$ac_delim
69565 NEXT_STDIO_H!$NEXT_STDIO_H$ac_delim
69566 NEXT_STDLIB_H!$NEXT_STDLIB_H$ac_delim
69567 GNULIB_MEMMEM!$GNULIB_MEMMEM$ac_delim
69568 GNULIB_MEMPCPY!$GNULIB_MEMPCPY$ac_delim
69569 GNULIB_MEMRCHR!$GNULIB_MEMRCHR$ac_delim
69570 GNULIB_STPCPY!$GNULIB_STPCPY$ac_delim
69571 GNULIB_STPNCPY!$GNULIB_STPNCPY$ac_delim
69572 GNULIB_STRCHRNUL!$GNULIB_STRCHRNUL$ac_delim
69573 GNULIB_STRDUP!$GNULIB_STRDUP$ac_delim
69574 GNULIB_STRNDUP!$GNULIB_STRNDUP$ac_delim
69575 GNULIB_STRNLEN!$GNULIB_STRNLEN$ac_delim
69576 GNULIB_STRPBRK!$GNULIB_STRPBRK$ac_delim
69577 GNULIB_STRSEP!$GNULIB_STRSEP$ac_delim
69578 GNULIB_STRCASESTR!$GNULIB_STRCASESTR$ac_delim
69579 GNULIB_STRTOK_R!$GNULIB_STRTOK_R$ac_delim
69580 GNULIB_MBSLEN!$GNULIB_MBSLEN$ac_delim
69581 GNULIB_MBSNLEN!$GNULIB_MBSNLEN$ac_delim
69582 GNULIB_MBSCHR!$GNULIB_MBSCHR$ac_delim
69583 GNULIB_MBSRCHR!$GNULIB_MBSRCHR$ac_delim
69584 GNULIB_MBSSTR!$GNULIB_MBSSTR$ac_delim
69585 GNULIB_MBSCASECMP!$GNULIB_MBSCASECMP$ac_delim
69586 GNULIB_MBSNCASECMP!$GNULIB_MBSNCASECMP$ac_delim
69587 GNULIB_MBSPCASECMP!$GNULIB_MBSPCASECMP$ac_delim
69588 GNULIB_MBSCASESTR!$GNULIB_MBSCASESTR$ac_delim
69589 GNULIB_MBSCSPN!$GNULIB_MBSCSPN$ac_delim
69590 GNULIB_MBSPBRK!$GNULIB_MBSPBRK$ac_delim
69591 GNULIB_MBSSPN!$GNULIB_MBSSPN$ac_delim
69592 GNULIB_MBSSEP!$GNULIB_MBSSEP$ac_delim
69593 GNULIB_MBSTOK_R!$GNULIB_MBSTOK_R$ac_delim
69594 HAVE_DECL_MEMMEM!$HAVE_DECL_MEMMEM$ac_delim
69595 HAVE_MEMPCPY!$HAVE_MEMPCPY$ac_delim
69596 HAVE_DECL_MEMRCHR!$HAVE_DECL_MEMRCHR$ac_delim
69597 HAVE_STPCPY!$HAVE_STPCPY$ac_delim
69598 HAVE_STPNCPY!$HAVE_STPNCPY$ac_delim
69599 HAVE_STRCASECMP!$HAVE_STRCASECMP$ac_delim
69600 HAVE_DECL_STRNCASECMP!$HAVE_DECL_STRNCASECMP$ac_delim
69601 HAVE_STRCHRNUL!$HAVE_STRCHRNUL$ac_delim
69602 HAVE_DECL_STRDUP!$HAVE_DECL_STRDUP$ac_delim
69603 HAVE_STRNDUP!$HAVE_STRNDUP$ac_delim
69604 HAVE_DECL_STRNDUP!$HAVE_DECL_STRNDUP$ac_delim
69605 HAVE_DECL_STRNLEN!$HAVE_DECL_STRNLEN$ac_delim
69606 HAVE_STRPBRK!$HAVE_STRPBRK$ac_delim
69607 HAVE_STRSEP!$HAVE_STRSEP$ac_delim
69608 HAVE_STRCASESTR!$HAVE_STRCASESTR$ac_delim
69609 HAVE_DECL_STRTOK_R!$HAVE_DECL_STRTOK_R$ac_delim
69610 NEXT_STRING_H!$NEXT_STRING_H$ac_delim
69611 HAVE_LSTAT!$HAVE_LSTAT$ac_delim
69612 HAVE_DECL_MKDIR!$HAVE_DECL_MKDIR$ac_delim
69613 HAVE_IO_H!$HAVE_IO_H$ac_delim
69614 NEXT_SYS_STAT_H!$NEXT_SYS_STAT_H$ac_delim
69615 SYS_STAT_H!$SYS_STAT_H$ac_delim
69616 GNULIB_CHOWN!$GNULIB_CHOWN$ac_delim
69617 GNULIB_DUP2!$GNULIB_DUP2$ac_delim
69618 GNULIB_FCHDIR!$GNULIB_FCHDIR$ac_delim
69619 GNULIB_FTRUNCATE!$GNULIB_FTRUNCATE$ac_delim
69620 GNULIB_GETCWD!$GNULIB_GETCWD$ac_delim
69621 GNULIB_GETLOGIN_R!$GNULIB_GETLOGIN_R$ac_delim
69622 GNULIB_LCHOWN!$GNULIB_LCHOWN$ac_delim
69623 GNULIB_LSEEK!$GNULIB_LSEEK$ac_delim
69624 GNULIB_READLINK!$GNULIB_READLINK$ac_delim
69625 GNULIB_SLEEP!$GNULIB_SLEEP$ac_delim
69626 HAVE_DUP2!$HAVE_DUP2$ac_delim
69627 HAVE_FTRUNCATE!$HAVE_FTRUNCATE$ac_delim
69628 HAVE_READLINK!$HAVE_READLINK$ac_delim
69629 HAVE_SLEEP!$HAVE_SLEEP$ac_delim
69630 HAVE_DECL_GETLOGIN_R!$HAVE_DECL_GETLOGIN_R$ac_delim
69631 REPLACE_CHOWN!$REPLACE_CHOWN$ac_delim
69632 REPLACE_FCHDIR!$REPLACE_FCHDIR$ac_delim
69633 REPLACE_GETCWD!$REPLACE_GETCWD$ac_delim
69634 REPLACE_LCHOWN!$REPLACE_LCHOWN$ac_delim
69635 REPLACE_LSEEK!$REPLACE_LSEEK$ac_delim
69636 NEXT_UNISTD_H!$NEXT_UNISTD_H$ac_delim
69637 HAVE_UNISTD_H!$HAVE_UNISTD_H$ac_delim
69638 EOVERFLOW!$EOVERFLOW$ac_delim
69639 CFLAG_VISIBILITY!$CFLAG_VISIBILITY$ac_delim
69640 HAVE_VISIBILITY!$HAVE_VISIBILITY$ac_delim
69641 GNULIB_WCWIDTH!$GNULIB_WCWIDTH$ac_delim
69642 HAVE_DECL_WCWIDTH!$HAVE_DECL_WCWIDTH$ac_delim
69643 REPLACE_WCWIDTH!$REPLACE_WCWIDTH$ac_delim
69644 WCHAR_H!$WCHAR_H$ac_delim
69645 HAVE_WCHAR_H!$HAVE_WCHAR_H$ac_delim
69646 NEXT_WCHAR_H!$NEXT_WCHAR_H$ac_delim
69647 AMANDA_WARNING_CFLAGS!$AMANDA_WARNING_CFLAGS$ac_delim
69648 CLIENT_LOGIN!$CLIENT_LOGIN$ac_delim
69649 SETUID_GROUP!$SETUID_GROUP$ac_delim
69650 CONFIG_DIR!$CONFIG_DIR$ac_delim
69651 USE_VERSION_SUFFIXES!$USE_VERSION_SUFFIXES$ac_delim
69652 GNUTAR_LISTED_INCREMENTAL_DIR!$GNUTAR_LISTED_INCREMENTAL_DIR$ac_delim
69653 AMANDA_TMPDIR!$AMANDA_TMPDIR$ac_delim
69654 BINARY_OWNER!$BINARY_OWNER$ac_delim
69655 MAXTAPEBLOCKSIZE!$MAXTAPEBLOCKSIZE$ac_delim
69656 _ACEOF
69657
69658   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
69659     break
69660   elif $ac_last_try; then
69661     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
69662 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
69663    { (exit 1); exit 1; }; }
69664   else
69665     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
69666   fi
69667 done
69668
69669 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
69670 if test -n "$ac_eof"; then
69671   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
69672   ac_eof=`expr $ac_eof + 1`
69673 fi
69674
69675 cat >>$CONFIG_STATUS <<_ACEOF
69676 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
69677 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
69678 _ACEOF
69679 sed '
69680 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
69681 s/^/s,@/; s/!/@,|#_!!_#|/
69682 :n
69683 t n
69684 s/'"$ac_delim"'$/,g/; t
69685 s/$/\\/; p
69686 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
69687 ' >>$CONFIG_STATUS <conf$$subs.sed
69688 rm -f conf$$subs.sed
69689 cat >>$CONFIG_STATUS <<_ACEOF
69690 CEOF$ac_eof
69691 _ACEOF
69692
69693
69694 ac_delim='%!_!# '
69695 for ac_last_try in false false false false false :; do
69696   cat >conf$$subs.sed <<_ACEOF
69697 AMANDA_DBGDIR!$AMANDA_DBGDIR$ac_delim
69698 AMANDA_DEBUG_DAYS!$AMANDA_DEBUG_DAYS$ac_delim
69699 SERVICE_SUFFIX!$SERVICE_SUFFIX$ac_delim
69700 WANT_SETUID_CLIENT_TRUE!$WANT_SETUID_CLIENT_TRUE$ac_delim
69701 WANT_SETUID_CLIENT_FALSE!$WANT_SETUID_CLIENT_FALSE$ac_delim
69702 WANT_INSTALLPERMS_TRUE!$WANT_INSTALLPERMS_TRUE$ac_delim
69703 WANT_INSTALLPERMS_FALSE!$WANT_INSTALLPERMS_FALSE$ac_delim
69704 WANT_CLIENT_TRUE!$WANT_CLIENT_TRUE$ac_delim
69705 WANT_CLIENT_FALSE!$WANT_CLIENT_FALSE$ac_delim
69706 WANT_RESTORE_TRUE!$WANT_RESTORE_TRUE$ac_delim
69707 WANT_RESTORE_FALSE!$WANT_RESTORE_FALSE$ac_delim
69708 WANT_SERVER_TRUE!$WANT_SERVER_TRUE$ac_delim
69709 WANT_SERVER_FALSE!$WANT_SERVER_FALSE$ac_delim
69710 WANT_RECOVER_TRUE!$WANT_RECOVER_TRUE$ac_delim
69711 WANT_RECOVER_FALSE!$WANT_RECOVER_FALSE$ac_delim
69712 WANT_TAPE_TRUE!$WANT_TAPE_TRUE$ac_delim
69713 WANT_TAPE_FALSE!$WANT_TAPE_FALSE$ac_delim
69714 GNUPLOT!$GNUPLOT$ac_delim
69715 PCAT!$PCAT$ac_delim
69716 COMPRESS!$COMPRESS$ac_delim
69717 GZIP!$GZIP$ac_delim
69718 AMPLOT_COMPRESS!$AMPLOT_COMPRESS$ac_delim
69719 AMPLOT_CAT_GZIP!$AMPLOT_CAT_GZIP$ac_delim
69720 AMPLOT_CAT_COMPRESS!$AMPLOT_CAT_COMPRESS$ac_delim
69721 AMPLOT_CAT_PACK!$AMPLOT_CAT_PACK$ac_delim
69722 WANT_AMPLOT_TRUE!$WANT_AMPLOT_TRUE$ac_delim
69723 WANT_AMPLOT_FALSE!$WANT_AMPLOT_FALSE$ac_delim
69724 XSLTPROC_FLAGS!$XSLTPROC_FLAGS$ac_delim
69725 XSLTPROC!$XSLTPROC$ac_delim
69726 ENABLE_MANPAGE_BUILD_TRUE!$ENABLE_MANPAGE_BUILD_TRUE$ac_delim
69727 ENABLE_MANPAGE_BUILD_FALSE!$ENABLE_MANPAGE_BUILD_FALSE$ac_delim
69728 XSLREL!$XSLREL$ac_delim
69729 DOC_BUILD_DATE!$DOC_BUILD_DATE$ac_delim
69730 DEFAULT_SERVER!$DEFAULT_SERVER$ac_delim
69731 DEFAULT_CONFIG!$DEFAULT_CONFIG$ac_delim
69732 DEFAULT_TAPE_SERVER!$DEFAULT_TAPE_SERVER$ac_delim
69733 DEFAULT_TAPE_DEVICE!$DEFAULT_TAPE_DEVICE$ac_delim
69734 EXAMPLE_TAPEDEV!$EXAMPLE_TAPEDEV$ac_delim
69735 DEFAULT_CHANGER_DEVICE!$DEFAULT_CHANGER_DEVICE$ac_delim
69736 DEFAULT_AMANDATES_FILE!$DEFAULT_AMANDATES_FILE$ac_delim
69737 GETCONF!$GETCONF$ac_delim
69738 CHIO!$CHIO$ac_delim
69739 CHS!$CHS$ac_delim
69740 MTX!$MTX$ac_delim
69741 MCUTIL!$MCUTIL$ac_delim
69742 WANT_CHG_SCSI_TRUE!$WANT_CHG_SCSI_TRUE$ac_delim
69743 WANT_CHG_SCSI_FALSE!$WANT_CHG_SCSI_FALSE$ac_delim
69744 WANT_SCSI_LINUX_TRUE!$WANT_SCSI_LINUX_TRUE$ac_delim
69745 WANT_SCSI_LINUX_FALSE!$WANT_SCSI_LINUX_FALSE$ac_delim
69746 WANT_SCSI_HPUX_NEW_TRUE!$WANT_SCSI_HPUX_NEW_TRUE$ac_delim
69747 WANT_SCSI_HPUX_NEW_FALSE!$WANT_SCSI_HPUX_NEW_FALSE$ac_delim
69748 WANT_SCSI_IRIX_TRUE!$WANT_SCSI_IRIX_TRUE$ac_delim
69749 WANT_SCSI_IRIX_FALSE!$WANT_SCSI_IRIX_FALSE$ac_delim
69750 WANT_SCSI_SOLARIS_TRUE!$WANT_SCSI_SOLARIS_TRUE$ac_delim
69751 WANT_SCSI_SOLARIS_FALSE!$WANT_SCSI_SOLARIS_FALSE$ac_delim
69752 WANT_SCSI_AIX_TRUE!$WANT_SCSI_AIX_TRUE$ac_delim
69753 WANT_SCSI_AIX_FALSE!$WANT_SCSI_AIX_FALSE$ac_delim
69754 WANT_SCSI_CAM_TRUE!$WANT_SCSI_CAM_TRUE$ac_delim
69755 WANT_SCSI_CAM_FALSE!$WANT_SCSI_CAM_FALSE$ac_delim
69756 WANT_SCSI_BSD_TRUE!$WANT_SCSI_BSD_TRUE$ac_delim
69757 WANT_SCSI_BSD_FALSE!$WANT_SCSI_BSD_FALSE$ac_delim
69758 WANT_CHG_SCSI_CHIO_TRUE!$WANT_CHG_SCSI_CHIO_TRUE$ac_delim
69759 WANT_CHG_SCSI_CHIO_FALSE!$WANT_CHG_SCSI_CHIO_FALSE$ac_delim
69760 WANT_SCSI_HPUX_TRUE!$WANT_SCSI_HPUX_TRUE$ac_delim
69761 WANT_SCSI_HPUX_FALSE!$WANT_SCSI_HPUX_FALSE$ac_delim
69762 WANT_SCSI_CHIO_TRUE!$WANT_SCSI_CHIO_TRUE$ac_delim
69763 WANT_SCSI_CHIO_FALSE!$WANT_SCSI_CHIO_FALSE$ac_delim
69764 WANT_AMFLOCK_POSIX_TRUE!$WANT_AMFLOCK_POSIX_TRUE$ac_delim
69765 WANT_AMFLOCK_POSIX_FALSE!$WANT_AMFLOCK_POSIX_FALSE$ac_delim
69766 WANT_AMFLOCK_FLOCK_TRUE!$WANT_AMFLOCK_FLOCK_TRUE$ac_delim
69767 WANT_AMFLOCK_FLOCK_FALSE!$WANT_AMFLOCK_FLOCK_FALSE$ac_delim
69768 WANT_AMFLOCK_LOCKF_TRUE!$WANT_AMFLOCK_LOCKF_TRUE$ac_delim
69769 WANT_AMFLOCK_LOCKF_FALSE!$WANT_AMFLOCK_LOCKF_FALSE$ac_delim
69770 WANT_AMFLOCK_LNLOCK_TRUE!$WANT_AMFLOCK_LNLOCK_TRUE$ac_delim
69771 WANT_AMFLOCK_LNLOCK_FALSE!$WANT_AMFLOCK_LNLOCK_FALSE$ac_delim
69772 SWIG!$SWIG$ac_delim
69773 SWIG_LIB!$SWIG_LIB$ac_delim
69774 PERL!$PERL$ac_delim
69775 PERL_INC!$PERL_INC$ac_delim
69776 WANT_CYGWIN_COPY_PERL_DLL_TRUE!$WANT_CYGWIN_COPY_PERL_DLL_TRUE$ac_delim
69777 WANT_CYGWIN_COPY_PERL_DLL_FALSE!$WANT_CYGWIN_COPY_PERL_DLL_FALSE$ac_delim
69778 PERLEXTLIBS!$PERLEXTLIBS$ac_delim
69779 CAT!$CAT$ac_delim
69780 CLIENT_SCRIPTS_OPT!$CLIENT_SCRIPTS_OPT$ac_delim
69781 amlibdir!$amlibdir$ac_delim
69782 amlibexecdir!$amlibexecdir$ac_delim
69783 amincludedir!$amincludedir$ac_delim
69784 amperldir!$amperldir$ac_delim
69785 DUMPER_DIR!$DUMPER_DIR$ac_delim
69786 MSGFMT!$MSGFMT$ac_delim
69787 GETTEXT!$GETTEXT$ac_delim
69788 USE_NLS!$USE_NLS$ac_delim
69789 GMSGFMT!$GMSGFMT$ac_delim
69790 MSGFMT_015!$MSGFMT_015$ac_delim
69791 GMSGFMT_015!$GMSGFMT_015$ac_delim
69792 XGETTEXT!$XGETTEXT$ac_delim
69793 XGETTEXT_015!$XGETTEXT_015$ac_delim
69794 _ACEOF
69795
69796   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
69797     break
69798   elif $ac_last_try; then
69799     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
69800 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
69801    { (exit 1); exit 1; }; }
69802   else
69803     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
69804   fi
69805 done
69806
69807 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
69808 if test -n "$ac_eof"; then
69809   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
69810   ac_eof=`expr $ac_eof + 1`
69811 fi
69812
69813 cat >>$CONFIG_STATUS <<_ACEOF
69814 cat >"\$tmp/subs-4.sed" <<\CEOF$ac_eof
69815 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
69816 _ACEOF
69817 sed '
69818 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
69819 s/^/s,@/; s/!/@,|#_!!_#|/
69820 :n
69821 t n
69822 s/'"$ac_delim"'$/,g/; t
69823 s/$/\\/; p
69824 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
69825 ' >>$CONFIG_STATUS <conf$$subs.sed
69826 rm -f conf$$subs.sed
69827 cat >>$CONFIG_STATUS <<_ACEOF
69828 CEOF$ac_eof
69829 _ACEOF
69830
69831
69832 ac_delim='%!_!# '
69833 for ac_last_try in false false false false false :; do
69834   cat >conf$$subs.sed <<_ACEOF
69835 MSGMERGE!$MSGMERGE$ac_delim
69836 INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
69837 LIBICONV!$LIBICONV$ac_delim
69838 LTLIBICONV!$LTLIBICONV$ac_delim
69839 INTLLIBS!$INTLLIBS$ac_delim
69840 POSUB!$POSUB$ac_delim
69841 CURL_CONFIG!$CURL_CONFIG$ac_delim
69842 _libcurl_config!$_libcurl_config$ac_delim
69843 LIBCURL_CPPFLAGS!$LIBCURL_CPPFLAGS$ac_delim
69844 LIBCURL!$LIBCURL$ac_delim
69845 WANT_S3_DEVICE_TRUE!$WANT_S3_DEVICE_TRUE$ac_delim
69846 WANT_S3_DEVICE_FALSE!$WANT_S3_DEVICE_FALSE$ac_delim
69847 WANT_DEVPAY_TRUE!$WANT_DEVPAY_TRUE$ac_delim
69848 WANT_DEVPAY_FALSE!$WANT_DEVPAY_FALSE$ac_delim
69849 WANT_TAPE_XENIX_TRUE!$WANT_TAPE_XENIX_TRUE$ac_delim
69850 WANT_TAPE_XENIX_FALSE!$WANT_TAPE_XENIX_FALSE$ac_delim
69851 WANT_TAPE_AIX_TRUE!$WANT_TAPE_AIX_TRUE$ac_delim
69852 WANT_TAPE_AIX_FALSE!$WANT_TAPE_AIX_FALSE$ac_delim
69853 WANT_TAPE_UWARE_TRUE!$WANT_TAPE_UWARE_TRUE$ac_delim
69854 WANT_TAPE_UWARE_FALSE!$WANT_TAPE_UWARE_FALSE$ac_delim
69855 WANT_TAPE_POSIX_TRUE!$WANT_TAPE_POSIX_TRUE$ac_delim
69856 WANT_TAPE_POSIX_FALSE!$WANT_TAPE_POSIX_FALSE$ac_delim
69857 WANT_TAPE_DEVICE_TRUE!$WANT_TAPE_DEVICE_TRUE$ac_delim
69858 WANT_TAPE_DEVICE_FALSE!$WANT_TAPE_DEVICE_FALSE$ac_delim
69859 WANT_BSD_SECURITY_TRUE!$WANT_BSD_SECURITY_TRUE$ac_delim
69860 WANT_BSD_SECURITY_FALSE!$WANT_BSD_SECURITY_FALSE$ac_delim
69861 WANT_BSDTCP_SECURITY_TRUE!$WANT_BSDTCP_SECURITY_TRUE$ac_delim
69862 WANT_BSDTCP_SECURITY_FALSE!$WANT_BSDTCP_SECURITY_FALSE$ac_delim
69863 WANT_BSDUDP_SECURITY_TRUE!$WANT_BSDUDP_SECURITY_TRUE$ac_delim
69864 WANT_BSDUDP_SECURITY_FALSE!$WANT_BSDUDP_SECURITY_FALSE$ac_delim
69865 WANT_RSH_SECURITY_TRUE!$WANT_RSH_SECURITY_TRUE$ac_delim
69866 WANT_RSH_SECURITY_FALSE!$WANT_RSH_SECURITY_FALSE$ac_delim
69867 SSH!$SSH$ac_delim
69868 WANT_SSH_SECURITY_TRUE!$WANT_SSH_SECURITY_TRUE$ac_delim
69869 WANT_SSH_SECURITY_FALSE!$WANT_SSH_SECURITY_FALSE$ac_delim
69870 WANT_KRB4_SECURITY_TRUE!$WANT_KRB4_SECURITY_TRUE$ac_delim
69871 WANT_KRB4_SECURITY_FALSE!$WANT_KRB4_SECURITY_FALSE$ac_delim
69872 WANT_KRB5_SECURITY_TRUE!$WANT_KRB5_SECURITY_TRUE$ac_delim
69873 WANT_KRB5_SECURITY_FALSE!$WANT_KRB5_SECURITY_FALSE$ac_delim
69874 XFSDUMP!$XFSDUMP$ac_delim
69875 XFSRESTORE!$XFSRESTORE$ac_delim
69876 VXDUMP!$VXDUMP$ac_delim
69877 VXRESTORE!$VXRESTORE$ac_delim
69878 VDUMP!$VDUMP$ac_delim
69879 VRESTORE!$VRESTORE$ac_delim
69880 DUMP!$DUMP$ac_delim
69881 RESTORE!$RESTORE$ac_delim
69882 GNUTAR!$GNUTAR$ac_delim
69883 SAMBA_CLIENT!$SAMBA_CLIENT$ac_delim
69884 WANT_SAMBA_TRUE!$WANT_SAMBA_TRUE$ac_delim
69885 WANT_SAMBA_FALSE!$WANT_SAMBA_FALSE$ac_delim
69886 AMLINT!$AMLINT$ac_delim
69887 AMLINTFLAGS!$AMLINTFLAGS$ac_delim
69888 LEX!$LEX$ac_delim
69889 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
69890 LEXLIB!$LEXLIB$ac_delim
69891 AR!$AR$ac_delim
69892 YACC!$YACC$ac_delim
69893 YFLAGS!$YFLAGS$ac_delim
69894 DD!$DD$ac_delim
69895 BASH!$BASH$ac_delim
69896 SORT!$SORT$ac_delim
69897 MAILER!$MAILER$ac_delim
69898 MT!$MT$ac_delim
69899 MT_FILE_FLAG!$MT_FILE_FLAG$ac_delim
69900 PRINT!$PRINT$ac_delim
69901 GCC_COMPILER_TRUE!$GCC_COMPILER_TRUE$ac_delim
69902 GCC_COMPILER_FALSE!$GCC_COMPILER_FALSE$ac_delim
69903 LN_S!$LN_S$ac_delim
69904 ECHO!$ECHO$ac_delim
69905 CXX!$CXX$ac_delim
69906 CXXFLAGS!$CXXFLAGS$ac_delim
69907 ac_ct_CXX!$ac_ct_CXX$ac_delim
69908 CXXDEPMODE!$CXXDEPMODE$ac_delim
69909 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
69910 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
69911 CXXCPP!$CXXCPP$ac_delim
69912 F77!$F77$ac_delim
69913 FFLAGS!$FFLAGS$ac_delim
69914 ac_ct_F77!$ac_ct_F77$ac_delim
69915 LIBTOOL!$LIBTOOL$ac_delim
69916 LIBTOOL_DEPS!$LIBTOOL_DEPS$ac_delim
69917 AMANDA_STATIC_LDFLAGS!$AMANDA_STATIC_LDFLAGS$ac_delim
69918 PKG_CONFIG!$PKG_CONFIG$ac_delim
69919 GLIB_CFLAGS!$GLIB_CFLAGS$ac_delim
69920 GLIB_LIBS!$GLIB_LIBS$ac_delim
69921 GLIB_GENMARSHAL!$GLIB_GENMARSHAL$ac_delim
69922 GOBJECT_QUERY!$GOBJECT_QUERY$ac_delim
69923 GLIB_MKENUMS!$GLIB_MKENUMS$ac_delim
69924 READLINE_LIBS!$READLINE_LIBS$ac_delim
69925 LIBOBJS!$LIBOBJS$ac_delim
69926 LTLIBOBJS!$LTLIBOBJS$ac_delim
69927 gl_LIBOBJS!$gl_LIBOBJS$ac_delim
69928 gl_LTLIBOBJS!$gl_LTLIBOBJS$ac_delim
69929 _ACEOF
69930
69931   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
69932     break
69933   elif $ac_last_try; then
69934     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
69935 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
69936    { (exit 1); exit 1; }; }
69937   else
69938     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
69939   fi
69940 done
69941
69942 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
69943 if test -n "$ac_eof"; then
69944   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
69945   ac_eof=`expr $ac_eof + 1`
69946 fi
69947
69948 cat >>$CONFIG_STATUS <<_ACEOF
69949 cat >"\$tmp/subs-5.sed" <<\CEOF$ac_eof
69950 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
69951 _ACEOF
69952 sed '
69953 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
69954 s/^/s,@/; s/!/@,|#_!!_#|/
69955 :n
69956 t n
69957 s/'"$ac_delim"'$/,g/; t
69958 s/$/\\/; p
69959 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
69960 ' >>$CONFIG_STATUS <conf$$subs.sed
69961 rm -f conf$$subs.sed
69962 cat >>$CONFIG_STATUS <<_ACEOF
69963 :end
69964 s/|#_!!_#|//g
69965 CEOF$ac_eof
69966 _ACEOF
69967
69968
69969 # VPATH may cause trouble with some makes, so we remove $(srcdir),
69970 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
69971 # trailing colons and then remove the whole line if VPATH becomes empty
69972 # (actually we leave an empty line to preserve line numbers).
69973 if test "x$srcdir" = x.; then
69974   ac_vpsub='/^[  ]*VPATH[        ]*=/{
69975 s/:*\$(srcdir):*/:/
69976 s/:*\${srcdir}:*/:/
69977 s/:*@srcdir@:*/:/
69978 s/^\([^=]*=[     ]*\):*/\1/
69979 s/:*$//
69980 s/^[^=]*=[       ]*$//
69981 }'
69982 fi
69983
69984 cat >>$CONFIG_STATUS <<\_ACEOF
69985 fi # test -n "$CONFIG_FILES"
69986
69987
69988 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
69989 do
69990   case $ac_tag in
69991   :[FHLC]) ac_mode=$ac_tag; continue;;
69992   esac
69993   case $ac_mode$ac_tag in
69994   :[FHL]*:*);;
69995   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
69996 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
69997    { (exit 1); exit 1; }; };;
69998   :[FH]-) ac_tag=-:-;;
69999   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
70000   esac
70001   ac_save_IFS=$IFS
70002   IFS=:
70003   set x $ac_tag
70004   IFS=$ac_save_IFS
70005   shift
70006   ac_file=$1
70007   shift
70008
70009   case $ac_mode in
70010   :L) ac_source=$1;;
70011   :[FH])
70012     ac_file_inputs=
70013     for ac_f
70014     do
70015       case $ac_f in
70016       -) ac_f="$tmp/stdin";;
70017       *) # Look for the file first in the build tree, then in the source tree
70018          # (if the path is not absolute).  The absolute path cannot be DOS-style,
70019          # because $ac_f cannot contain `:'.
70020          test -f "$ac_f" ||
70021            case $ac_f in
70022            [\\/$]*) false;;
70023            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
70024            esac ||
70025            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
70026 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
70027    { (exit 1); exit 1; }; };;
70028       esac
70029       ac_file_inputs="$ac_file_inputs $ac_f"
70030     done
70031
70032     # Let's still pretend it is `configure' which instantiates (i.e., don't
70033     # use $as_me), people would be surprised to read:
70034     #    /* config.h.  Generated by config.status.  */
70035     configure_input="Generated from "`IFS=:
70036           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
70037     if test x"$ac_file" != x-; then
70038       configure_input="$ac_file.  $configure_input"
70039       { echo "$as_me:$LINENO: creating $ac_file" >&5
70040 echo "$as_me: creating $ac_file" >&6;}
70041     fi
70042
70043     case $ac_tag in
70044     *:-:* | *:-) cat >"$tmp/stdin";;
70045     esac
70046     ;;
70047   esac
70048
70049   ac_dir=`$as_dirname -- "$ac_file" ||
70050 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
70051          X"$ac_file" : 'X\(//\)[^/]' \| \
70052          X"$ac_file" : 'X\(//\)$' \| \
70053          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
70054 echo X"$ac_file" |
70055     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
70056             s//\1/
70057             q
70058           }
70059           /^X\(\/\/\)[^/].*/{
70060             s//\1/
70061             q
70062           }
70063           /^X\(\/\/\)$/{
70064             s//\1/
70065             q
70066           }
70067           /^X\(\/\).*/{
70068             s//\1/
70069             q
70070           }
70071           s/.*/./; q'`
70072   { as_dir="$ac_dir"
70073   case $as_dir in #(
70074   -*) as_dir=./$as_dir;;
70075   esac
70076   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
70077     as_dirs=
70078     while :; do
70079       case $as_dir in #(
70080       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
70081       *) as_qdir=$as_dir;;
70082       esac
70083       as_dirs="'$as_qdir' $as_dirs"
70084       as_dir=`$as_dirname -- "$as_dir" ||
70085 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
70086          X"$as_dir" : 'X\(//\)[^/]' \| \
70087          X"$as_dir" : 'X\(//\)$' \| \
70088          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
70089 echo X"$as_dir" |
70090     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
70091             s//\1/
70092             q
70093           }
70094           /^X\(\/\/\)[^/].*/{
70095             s//\1/
70096             q
70097           }
70098           /^X\(\/\/\)$/{
70099             s//\1/
70100             q
70101           }
70102           /^X\(\/\).*/{
70103             s//\1/
70104             q
70105           }
70106           s/.*/./; q'`
70107       test -d "$as_dir" && break
70108     done
70109     test -z "$as_dirs" || eval "mkdir $as_dirs"
70110   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
70111 echo "$as_me: error: cannot create directory $as_dir" >&2;}
70112    { (exit 1); exit 1; }; }; }
70113   ac_builddir=.
70114
70115 case "$ac_dir" in
70116 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
70117 *)
70118   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
70119   # A ".." for each directory in $ac_dir_suffix.
70120   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
70121   case $ac_top_builddir_sub in
70122   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
70123   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
70124   esac ;;
70125 esac
70126 ac_abs_top_builddir=$ac_pwd
70127 ac_abs_builddir=$ac_pwd$ac_dir_suffix
70128 # for backward compatibility:
70129 ac_top_builddir=$ac_top_build_prefix
70130
70131 case $srcdir in
70132   .)  # We are building in place.
70133     ac_srcdir=.
70134     ac_top_srcdir=$ac_top_builddir_sub
70135     ac_abs_top_srcdir=$ac_pwd ;;
70136   [\\/]* | ?:[\\/]* )  # Absolute name.
70137     ac_srcdir=$srcdir$ac_dir_suffix;
70138     ac_top_srcdir=$srcdir
70139     ac_abs_top_srcdir=$srcdir ;;
70140   *) # Relative name.
70141     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
70142     ac_top_srcdir=$ac_top_build_prefix$srcdir
70143     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
70144 esac
70145 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
70146
70147
70148   case $ac_mode in
70149   :F)
70150   #
70151   # CONFIG_FILE
70152   #
70153
70154   case $INSTALL in
70155   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
70156   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
70157   esac
70158   ac_MKDIR_P=$MKDIR_P
70159   case $MKDIR_P in
70160   [\\/$]* | ?:[\\/]* ) ;;
70161   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
70162   esac
70163 _ACEOF
70164
70165 cat >>$CONFIG_STATUS <<\_ACEOF
70166 # If the template does not know about datarootdir, expand it.
70167 # FIXME: This hack should be removed a few years after 2.60.
70168 ac_datarootdir_hack=; ac_datarootdir_seen=
70169
70170 case `sed -n '/datarootdir/ {
70171   p
70172   q
70173 }
70174 /@datadir@/p
70175 /@docdir@/p
70176 /@infodir@/p
70177 /@localedir@/p
70178 /@mandir@/p
70179 ' $ac_file_inputs` in
70180 *datarootdir*) ac_datarootdir_seen=yes;;
70181 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
70182   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
70183 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
70184 _ACEOF
70185 cat >>$CONFIG_STATUS <<_ACEOF
70186   ac_datarootdir_hack='
70187   s&@datadir@&$datadir&g
70188   s&@docdir@&$docdir&g
70189   s&@infodir@&$infodir&g
70190   s&@localedir@&$localedir&g
70191   s&@mandir@&$mandir&g
70192     s&\\\${datarootdir}&$datarootdir&g' ;;
70193 esac
70194 _ACEOF
70195
70196 # Neutralize VPATH when `$srcdir' = `.'.
70197 # Shell code in configure.ac might set extrasub.
70198 # FIXME: do we really want to maintain this feature?
70199 cat >>$CONFIG_STATUS <<_ACEOF
70200   sed "$ac_vpsub
70201 $extrasub
70202 _ACEOF
70203 cat >>$CONFIG_STATUS <<\_ACEOF
70204 :t
70205 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
70206 s&@configure_input@&$configure_input&;t t
70207 s&@top_builddir@&$ac_top_builddir_sub&;t t
70208 s&@srcdir@&$ac_srcdir&;t t
70209 s&@abs_srcdir@&$ac_abs_srcdir&;t t
70210 s&@top_srcdir@&$ac_top_srcdir&;t t
70211 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
70212 s&@builddir@&$ac_builddir&;t t
70213 s&@abs_builddir@&$ac_abs_builddir&;t t
70214 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
70215 s&@INSTALL@&$ac_INSTALL&;t t
70216 s&@MKDIR_P@&$ac_MKDIR_P&;t t
70217 $ac_datarootdir_hack
70218 " $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
70219
70220 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
70221   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
70222   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
70223   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
70224 which seems to be undefined.  Please make sure it is defined." >&5
70225 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
70226 which seems to be undefined.  Please make sure it is defined." >&2;}
70227
70228   rm -f "$tmp/stdin"
70229   case $ac_file in
70230   -) cat "$tmp/out"; rm -f "$tmp/out";;
70231   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
70232   esac
70233  ;;
70234   :H)
70235   #
70236   # CONFIG_HEADER
70237   #
70238 _ACEOF
70239
70240 # Transform confdefs.h into a sed script `conftest.defines', that
70241 # substitutes the proper values into config.h.in to produce config.h.
70242 rm -f conftest.defines conftest.tail
70243 # First, append a space to every undef/define line, to ease matching.
70244 echo 's/$/ /' >conftest.defines
70245 # Then, protect against being on the right side of a sed subst, or in
70246 # an unquoted here document, in config.status.  If some macros were
70247 # called several times there might be several #defines for the same
70248 # symbol, which is useless.  But do not sort them, since the last
70249 # AC_DEFINE must be honored.
70250 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
70251 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
70252 # NAME is the cpp macro being defined, VALUE is the value it is being given.
70253 # PARAMS is the parameter list in the macro definition--in most cases, it's
70254 # just an empty string.
70255 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
70256 ac_dB='\\)[      (].*,\\1define\\2'
70257 ac_dC=' '
70258 ac_dD=' ,'
70259
70260 uniq confdefs.h |
70261   sed -n '
70262         t rset
70263         :rset
70264         s/^[     ]*#[    ]*define[       ][      ]*//
70265         t ok
70266         d
70267         :ok
70268         s/[\\&,]/\\&/g
70269         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
70270         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
70271   ' >>conftest.defines
70272
70273 # Remove the space that was appended to ease matching.
70274 # Then replace #undef with comments.  This is necessary, for
70275 # example, in the case of _POSIX_SOURCE, which is predefined and required
70276 # on some systems where configure will not decide to define it.
70277 # (The regexp can be short, since the line contains either #define or #undef.)
70278 echo 's/ $//
70279 s,^[     #]*u.*,/* & */,' >>conftest.defines
70280
70281 # Break up conftest.defines:
70282 ac_max_sed_lines=50
70283
70284 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
70285 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
70286 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
70287 # et cetera.
70288 ac_in='$ac_file_inputs'
70289 ac_out='"$tmp/out1"'
70290 ac_nxt='"$tmp/out2"'
70291
70292 while :
70293 do
70294   # Write a here document:
70295     cat >>$CONFIG_STATUS <<_ACEOF
70296     # First, check the format of the line:
70297     cat >"\$tmp/defines.sed" <<\\CEOF
70298 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
70299 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
70300 b
70301 :def
70302 _ACEOF
70303   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
70304   echo 'CEOF
70305     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
70306   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
70307   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
70308   grep . conftest.tail >/dev/null || break
70309   rm -f conftest.defines
70310   mv conftest.tail conftest.defines
70311 done
70312 rm -f conftest.defines conftest.tail
70313
70314 echo "ac_result=$ac_in" >>$CONFIG_STATUS
70315 cat >>$CONFIG_STATUS <<\_ACEOF
70316   if test x"$ac_file" != x-; then
70317     echo "/* $configure_input  */" >"$tmp/config.h"
70318     cat "$ac_result" >>"$tmp/config.h"
70319     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
70320       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
70321 echo "$as_me: $ac_file is unchanged" >&6;}
70322     else
70323       rm -f $ac_file
70324       mv "$tmp/config.h" $ac_file
70325     fi
70326   else
70327     echo "/* $configure_input  */"
70328     cat "$ac_result"
70329   fi
70330   rm -f "$tmp/out12"
70331 # Compute $ac_file's index in $config_headers.
70332 _am_stamp_count=1
70333 for _am_header in $config_headers :; do
70334   case $_am_header in
70335     $ac_file | $ac_file:* )
70336       break ;;
70337     * )
70338       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
70339   esac
70340 done
70341 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
70342 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
70343          X$ac_file : 'X\(//\)[^/]' \| \
70344          X$ac_file : 'X\(//\)$' \| \
70345          X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
70346 echo X$ac_file |
70347     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
70348             s//\1/
70349             q
70350           }
70351           /^X\(\/\/\)[^/].*/{
70352             s//\1/
70353             q
70354           }
70355           /^X\(\/\/\)$/{
70356             s//\1/
70357             q
70358           }
70359           /^X\(\/\).*/{
70360             s//\1/
70361             q
70362           }
70363           s/.*/./; q'`/stamp-h$_am_stamp_count
70364  ;;
70365
70366   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
70367 echo "$as_me: executing $ac_file commands" >&6;}
70368  ;;
70369   esac
70370
70371
70372   case $ac_file$ac_mode in
70373     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
70374   # Strip MF so we end up with the name of the file.
70375   mf=`echo "$mf" | sed -e 's/:.*$//'`
70376   # Check whether this is an Automake generated Makefile or not.
70377   # We used to match only the files named `Makefile.in', but
70378   # some people rename them; so instead we look at the file content.
70379   # Grep'ing the first line is not enough: some people post-process
70380   # each Makefile.in and add a new line on top of each file to say so.
70381   # Grep'ing the whole file is not good either: AIX grep has a line
70382   # limit of 2048, but all sed's we know have understand at least 4000.
70383   if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
70384     dirpart=`$as_dirname -- "$mf" ||
70385 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
70386          X"$mf" : 'X\(//\)[^/]' \| \
70387          X"$mf" : 'X\(//\)$' \| \
70388          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
70389 echo X"$mf" |
70390     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
70391             s//\1/
70392             q
70393           }
70394           /^X\(\/\/\)[^/].*/{
70395             s//\1/
70396             q
70397           }
70398           /^X\(\/\/\)$/{
70399             s//\1/
70400             q
70401           }
70402           /^X\(\/\).*/{
70403             s//\1/
70404             q
70405           }
70406           s/.*/./; q'`
70407   else
70408     continue
70409   fi
70410   # Extract the definition of DEPDIR, am__include, and am__quote
70411   # from the Makefile without running `make'.
70412   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
70413   test -z "$DEPDIR" && continue
70414   am__include=`sed -n 's/^am__include = //p' < "$mf"`
70415   test -z "am__include" && continue
70416   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
70417   # When using ansi2knr, U may be empty or an underscore; expand it
70418   U=`sed -n 's/^U = //p' < "$mf"`
70419   # Find all dependency output files, they are included files with
70420   # $(DEPDIR) in their names.  We invoke sed twice because it is the
70421   # simplest approach to changing $(DEPDIR) to its actual value in the
70422   # expansion.
70423   for file in `sed -n "
70424     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
70425        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
70426     # Make sure the directory exists.
70427     test -f "$dirpart/$file" && continue
70428     fdir=`$as_dirname -- "$file" ||
70429 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
70430          X"$file" : 'X\(//\)[^/]' \| \
70431          X"$file" : 'X\(//\)$' \| \
70432          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
70433 echo X"$file" |
70434     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
70435             s//\1/
70436             q
70437           }
70438           /^X\(\/\/\)[^/].*/{
70439             s//\1/
70440             q
70441           }
70442           /^X\(\/\/\)$/{
70443             s//\1/
70444             q
70445           }
70446           /^X\(\/\).*/{
70447             s//\1/
70448             q
70449           }
70450           s/.*/./; q'`
70451     { as_dir=$dirpart/$fdir
70452   case $as_dir in #(
70453   -*) as_dir=./$as_dir;;
70454   esac
70455   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
70456     as_dirs=
70457     while :; do
70458       case $as_dir in #(
70459       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
70460       *) as_qdir=$as_dir;;
70461       esac
70462       as_dirs="'$as_qdir' $as_dirs"
70463       as_dir=`$as_dirname -- "$as_dir" ||
70464 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
70465          X"$as_dir" : 'X\(//\)[^/]' \| \
70466          X"$as_dir" : 'X\(//\)$' \| \
70467          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
70468 echo X"$as_dir" |
70469     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
70470             s//\1/
70471             q
70472           }
70473           /^X\(\/\/\)[^/].*/{
70474             s//\1/
70475             q
70476           }
70477           /^X\(\/\/\)$/{
70478             s//\1/
70479             q
70480           }
70481           /^X\(\/\).*/{
70482             s//\1/
70483             q
70484           }
70485           s/.*/./; q'`
70486       test -d "$as_dir" && break
70487     done
70488     test -z "$as_dirs" || eval "mkdir $as_dirs"
70489   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
70490 echo "$as_me: error: cannot create directory $as_dir" >&2;}
70491    { (exit 1); exit 1; }; }; }
70492     # echo "creating $dirpart/$file"
70493     echo '# dummy' > "$dirpart/$file"
70494   done
70495 done
70496  ;;
70497     "po-directories":C)
70498     for ac_file in $CONFIG_FILES; do
70499       # Support "outfile[:infile[:infile...]]"
70500       case "$ac_file" in
70501         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
70502       esac
70503       # PO directories have a Makefile.in generated from Makefile.in.in.
70504       case "$ac_file" in */Makefile.in)
70505         # Adjust a relative srcdir.
70506         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
70507         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
70508         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
70509         # In autoconf-2.13 it is called $ac_given_srcdir.
70510         # In autoconf-2.50 it is called $srcdir.
70511         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
70512         case "$ac_given_srcdir" in
70513           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
70514           /*) top_srcdir="$ac_given_srcdir" ;;
70515           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
70516         esac
70517         # Treat a directory as a PO directory if and only if it has a
70518         # POTFILES.in file. This allows packages to have multiple PO
70519         # directories under different names or in different locations.
70520         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
70521           rm -f "$ac_dir/POTFILES"
70522           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
70523           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
70524           POMAKEFILEDEPS="POTFILES.in"
70525           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
70526           # on $ac_dir but don't depend on user-specified configuration
70527           # parameters.
70528           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
70529             # The LINGUAS file contains the set of available languages.
70530             if test -n "$OBSOLETE_ALL_LINGUAS"; then
70531               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
70532             fi
70533             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
70534             # Hide the ALL_LINGUAS assigment from automake < 1.5.
70535             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
70536             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
70537           else
70538             # The set of available languages was given in configure.in.
70539             # Hide the ALL_LINGUAS assigment from automake < 1.5.
70540             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
70541           fi
70542           # Compute POFILES
70543           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
70544           # Compute UPDATEPOFILES
70545           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
70546           # Compute DUMMYPOFILES
70547           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
70548           # Compute GMOFILES
70549           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
70550           case "$ac_given_srcdir" in
70551             .) srcdirpre= ;;
70552             *) srcdirpre='$(srcdir)/' ;;
70553           esac
70554           POFILES=
70555           UPDATEPOFILES=
70556           DUMMYPOFILES=
70557           GMOFILES=
70558           for lang in $ALL_LINGUAS; do
70559             POFILES="$POFILES $srcdirpre$lang.po"
70560             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
70561             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
70562             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
70563           done
70564           # CATALOGS depends on both $ac_dir and the user's LINGUAS
70565           # environment variable.
70566           INST_LINGUAS=
70567           if test -n "$ALL_LINGUAS"; then
70568             for presentlang in $ALL_LINGUAS; do
70569               useit=no
70570               if test "%UNSET%" != "$LINGUAS"; then
70571                 desiredlanguages="$LINGUAS"
70572               else
70573                 desiredlanguages="$ALL_LINGUAS"
70574               fi
70575               for desiredlang in $desiredlanguages; do
70576                 # Use the presentlang catalog if desiredlang is
70577                 #   a. equal to presentlang, or
70578                 #   b. a variant of presentlang (because in this case,
70579                 #      presentlang can be used as a fallback for messages
70580                 #      which are not translated in the desiredlang catalog).
70581                 case "$desiredlang" in
70582                   "$presentlang"*) useit=yes;;
70583                 esac
70584               done
70585               if test $useit = yes; then
70586                 INST_LINGUAS="$INST_LINGUAS $presentlang"
70587               fi
70588             done
70589           fi
70590           CATALOGS=
70591           if test -n "$INST_LINGUAS"; then
70592             for lang in $INST_LINGUAS; do
70593               CATALOGS="$CATALOGS $lang.gmo"
70594             done
70595           fi
70596           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
70597           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"
70598           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
70599             if test -f "$f"; then
70600               case "$f" in
70601                 *.orig | *.bak | *~) ;;
70602                 *) cat "$f" >> "$ac_dir/Makefile" ;;
70603               esac
70604             fi
70605           done
70606         fi
70607         ;;
70608       esac
70609     done ;;
70610
70611   esac
70612 done # for ac_tag
70613
70614
70615 { (exit 0); exit 0; }
70616 _ACEOF
70617 chmod +x $CONFIG_STATUS
70618 ac_clean_files=$ac_clean_files_save
70619
70620
70621 # configure is writing to config.log, and then calls config.status.
70622 # config.status does its own redirection, appending to config.log.
70623 # Unfortunately, on DOS this fails, as config.log is still kept open
70624 # by configure, so config.status won't be able to write to it; its
70625 # output is simply discarded.  So we exec the FD to /dev/null,
70626 # effectively closing config.log, so it can be properly (re)opened and
70627 # appended to by config.status.  When coming back to configure, we
70628 # need to make the FD available again.
70629 if test "$no_create" != yes; then
70630   ac_cs_success=:
70631   ac_config_status_args=
70632   test "$silent" = yes &&
70633     ac_config_status_args="$ac_config_status_args --quiet"
70634   exec 5>/dev/null
70635   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
70636   exec 5>>config.log
70637   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
70638   # would make configure fail if this is the last instruction.
70639   $ac_cs_success || { (exit 1); exit 1; }
70640 fi
70641
70642
70643
70644
70645
70646     # Extract the first word of "svn", so it can be a program name with args.
70647 set dummy svn; ac_word=$2
70648 { echo "$as_me:$LINENO: checking for $ac_word" >&5
70649 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
70650 if test "${ac_cv_path_SVN+set}" = set; then
70651   echo $ECHO_N "(cached) $ECHO_C" >&6
70652 else
70653   case $SVN in
70654   [\\/]* | ?:[\\/]*)
70655   ac_cv_path_SVN="$SVN" # Let the user override the test with a path.
70656   ;;
70657   *)
70658   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
70659 for as_dir in $LOCSYSPATH
70660 do
70661   IFS=$as_save_IFS
70662   test -z "$as_dir" && as_dir=.
70663   for ac_exec_ext in '' $ac_executable_extensions; do
70664   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
70665     ac_cv_path_SVN="$as_dir/$ac_word$ac_exec_ext"
70666     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
70667     break 2
70668   fi
70669 done
70670 done
70671 IFS=$as_save_IFS
70672
70673   ;;
70674 esac
70675 fi
70676 SVN=$ac_cv_path_SVN
70677 if test -n "$SVN"; then
70678   { echo "$as_me:$LINENO: result: $SVN" >&5
70679 echo "${ECHO_T}$SVN" >&6; }
70680 else
70681   { echo "$as_me:$LINENO: result: no" >&5
70682 echo "${ECHO_T}no" >&6; }
70683 fi
70684
70685
70686     { echo "$as_me:$LINENO: checking Subversion revision information" >&5
70687 echo $ECHO_N "checking Subversion revision information... $ECHO_C" >&6; }
70688     if test -d $srcdir/.svn && test -n "$SVN" && (cd $srcdir > /dev/null ; $SVN info . ) > conftemp.svn; then
70689         rev=`$GREP Revision: conftemp.svn|cut -d: -f 2|cut -c2-`
70690         url=`$GREP URL: conftemp.svn|cut -d: -f 2-|cut -c2-`
70691         ( echo '#define BUILT_REV "'$rev'"'
70692           echo '#define BUILT_BRANCH "'`basename "$url"`'"'
70693         ) > common-src/svn-info.h
70694
70695         { echo "$as_me:$LINENO: result: updated" >&5
70696 echo "${ECHO_T}updated" >&6; }
70697     else
70698         # Makefiles will be upset if the file doesn't exist, so double-check
70699         if test -f common-src/svn-info.h; then
70700             : # all good
70701             { echo "$as_me:$LINENO: result: not changed" >&5
70702 echo "${ECHO_T}not changed" >&6; }
70703         else
70704             echo '/* no information available */' > common-src/svn-info.h
70705             { echo "$as_me:$LINENO: result: not available" >&5
70706 echo "${ECHO_T}not available" >&6; }
70707         fi
70708     fi
70709
70710     rm -f conftemp.svn
70711
70712
70713
70714     echo "Compiler Flags:"
70715     echo "  CFLAGS: ${CFLAGS-(none)}"
70716     echo "  CPPFLAGS: ${CPPFLAGS-(none)}"
70717     echo "  LDFLAGS: ${LDFLAGS-(none)}"
70718     echo "  LIBS: ${LIBS-(none)}"
70719
70720
70721     components=''
70722     if $WANT_SERVER; then
70723         components="$components server";
70724     else
70725         components="$components (no server)";
70726     fi
70727     if $WANT_RESTORE; then
70728         components="$components restore";
70729     else
70730         components="$components (no restore)";
70731     fi
70732     if $WANT_CLIENT; then
70733         components="$components client";
70734     else
70735         components="$components (no client)";
70736     fi
70737     if $WANT_RECOVER; then
70738         components="$components amrecover";
70739     else
70740         components="$components (no amrecover)";
70741     fi
70742
70743     echo "Amanda Components: $components"
70744
70745
70746     echo "Working IPv6:" $WORKING_IPV6
70747
70748
70749     echo "Build documentation:" $ENABLE_MANPAGE_BUILD
70750
70751
70752     echo "Directories:"
70753     echo "  Perl modules (amperldir): $amperldir"
70754     echo "  Dumper: $DUMPER_DIR"
70755     echo "  Configuration: $CONFIG_DIR"
70756     echo "  GNU Tar lists: $GNUTAR_LISTED_INCREMENTAL_DIR"
70757     echo "  Temporary: $AMANDA_TMPDIR"
70758
70759     if test -f config.warnings; then
70760         echo "WARNINGS:"
70761         cat config.warnings | sed -e 's/^/  /g'
70762         rm config.warnings
70763     fi
70764