323dcaad2a005c8e017634773c23ca6d2b5afb7b
[debian/amanda] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization.  ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14   emulate sh
15   NULLCMD=:
16   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17   # is contrary to our usage.  Disable this feature.
18   alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20   set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   test -d ./-p && rmdir ./-p
222   as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS="   $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244
245 # Check that we are running under the correct shell.
246 SHELL=${CONFIG_SHELL-/bin/sh}
247
248 case X$ECHO in
249 X*--fallback-echo)
250   # Remove one level of quotation (which was required for Make).
251   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
252   ;;
253 esac
254
255 echo=${ECHO-echo}
256 if test "X$1" = X--no-reexec; then
257   # Discard the --no-reexec flag, and continue.
258   shift
259 elif test "X$1" = X--fallback-echo; then
260   # Avoid inline document here, it may be left over
261   :
262 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
263   # Yippee, $echo works!
264   :
265 else
266   # Restart under the correct shell.
267   exec $SHELL "$0" --no-reexec ${1+"$@"}
268 fi
269
270 if test "X$1" = X--fallback-echo; then
271   # used as fallback echo
272   shift
273   cat <<EOF
274 $*
275 EOF
276   exit 0
277 fi
278
279 # The HP-UX ksh and POSIX shell print the target directory to stdout
280 # if CDPATH is set.
281 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
282
283 if test -z "$ECHO"; then
284 if test "X${echo_test_string+set}" != Xset; then
285 # find a string as large as possible, as long as the shell can cope with it
286   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
289        echo_test_string=`eval $cmd` &&
290        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
291     then
292       break
293     fi
294   done
295 fi
296
297 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
298    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
299    test "X$echo_testing_string" = "X$echo_test_string"; then
300   :
301 else
302   # The Solaris, AIX, and Digital Unix default echo programs unquote
303   # backslashes.  This makes it impossible to quote backslashes using
304   #   echo "$something" | sed 's/\\/\\\\/g'
305   #
306   # So, first we look for a working echo in the user's PATH.
307
308   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
309   for dir in $PATH /usr/ucb; do
310     IFS="$lt_save_ifs"
311     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
312        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
313        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
314        test "X$echo_testing_string" = "X$echo_test_string"; then
315       echo="$dir/echo"
316       break
317     fi
318   done
319   IFS="$lt_save_ifs"
320
321   if test "X$echo" = Xecho; then
322     # We didn't find a better echo, so look for alternatives.
323     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
324        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
325        test "X$echo_testing_string" = "X$echo_test_string"; then
326       # This shell has a builtin print -r that does the trick.
327       echo='print -r'
328     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
329          test "X$CONFIG_SHELL" != X/bin/ksh; then
330       # If we have ksh, try running configure again with it.
331       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
332       export ORIGINAL_CONFIG_SHELL
333       CONFIG_SHELL=/bin/ksh
334       export CONFIG_SHELL
335       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
336     else
337       # Try using printf.
338       echo='printf %s\n'
339       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
340          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
341          test "X$echo_testing_string" = "X$echo_test_string"; then
342         # Cool, printf works
343         :
344       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
345            test "X$echo_testing_string" = 'X\t' &&
346            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
347            test "X$echo_testing_string" = "X$echo_test_string"; then
348         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
349         export CONFIG_SHELL
350         SHELL="$CONFIG_SHELL"
351         export SHELL
352         echo="$CONFIG_SHELL $0 --fallback-echo"
353       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354            test "X$echo_testing_string" = 'X\t' &&
355            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356            test "X$echo_testing_string" = "X$echo_test_string"; then
357         echo="$CONFIG_SHELL $0 --fallback-echo"
358       else
359         # maybe with a smaller string...
360         prev=:
361
362         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
363           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
364           then
365             break
366           fi
367           prev="$cmd"
368         done
369
370         if test "$prev" != 'sed 50q "$0"'; then
371           echo_test_string=`eval $prev`
372           export echo_test_string
373           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
374         else
375           # Oops.  We lost completely, so just stick with echo.
376           echo=echo
377         fi
378       fi
379     fi
380   fi
381 fi
382 fi
383
384 # Copy echo and quote the copy suitably for passing to libtool from
385 # the Makefile, instead of quoting the original, which is used later.
386 ECHO=$echo
387 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
388    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
389 fi
390
391
392
393
394 tagnames=${tagnames+${tagnames},}CXX
395
396 tagnames=${tagnames+${tagnames},}F77
397
398 # Name of the host.
399 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
400 # so uname gets run too.
401 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
402
403 exec 6>&1
404
405 #
406 # Initializations.
407 #
408 ac_default_prefix=/usr/local
409 ac_config_libobj_dir=.
410 cross_compiling=no
411 subdirs=
412 MFLAGS=
413 MAKEFLAGS=
414 SHELL=${CONFIG_SHELL-/bin/sh}
415
416 # Maximum number of lines to put in a shell here document.
417 # This variable seems obsolete.  It should probably be removed, and
418 # only ac_max_sed_lines should be used.
419 : ${ac_max_here_lines=38}
420
421 # Identity of this package.
422 PACKAGE_NAME=
423 PACKAGE_TARNAME=
424 PACKAGE_VERSION=
425 PACKAGE_STRING=
426 PACKAGE_BUGREPORT=
427
428 ac_unique_file="common-src/amanda.h"
429 # Factoring default headers for most tests.
430 ac_includes_default="\
431 #include <stdio.h>
432 #if HAVE_SYS_TYPES_H
433 # include <sys/types.h>
434 #endif
435 #if HAVE_SYS_STAT_H
436 # include <sys/stat.h>
437 #endif
438 #if STDC_HEADERS
439 # include <stdlib.h>
440 # include <stddef.h>
441 #else
442 # if HAVE_STDLIB_H
443 #  include <stdlib.h>
444 # endif
445 #endif
446 #if HAVE_STRING_H
447 # if !STDC_HEADERS && HAVE_MEMORY_H
448 #  include <memory.h>
449 # endif
450 # include <string.h>
451 #endif
452 #if HAVE_STRINGS_H
453 # include <strings.h>
454 #endif
455 #if HAVE_INTTYPES_H
456 # include <inttypes.h>
457 #else
458 # if HAVE_STDINT_H
459 #  include <stdint.h>
460 # endif
461 #endif
462 #if HAVE_UNISTD_H
463 # include <unistd.h>
464 #endif"
465
466 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CONFIGURE_COMMAND INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar SNAPSHOT_STAMP VERSION_MAJOR VERSION_MINOR VERSION_PATCH VERSION_COMMENT VERSION_SUFFIX CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE GREP EGREP AMLINT AMLINTFLAGS DUMPER_DIR CONFIG_DIR USE_VERSION_SUFFIXES CLIENT_SCRIPTS_OPT DEFAULT_SERVER CLIENT_LOGIN SETUID_GROUP BINARY_OWNER DEFAULT_CONFIG DEFAULT_TAPE_SERVER DEFAULT_TAPE_DEVICE DEFAULT_RAW_TAPE_DEVICE DEFAULT_CHANGER_DEVICE GNUTAR_LISTED_INCREMENTAL_DIRX GNUTAR_LISTED_INCREMENTAL_DIR MAXTAPEBLOCKSIZE AMANDA_TMPDIR AMANDA_DBGDIR AMANDA_DEBUG_DAYS SERVICE_SUFFIX MT_FILE_FLAG CPP AR AWK_VAR_ASSIGNMENT_OPT YACC CAT COMPRESS DD GETCONF GNUPLOT GNUTAR SAMBA_CLIENT GZIP SORT MAILER MT CHIO CHS MTX MCUTIL PRINT PCAT PERL DUMP RESTORE XFSDUMP XFSRESTORE VXDUMP VXRESTORE VDUMP VRESTORE AMPLOT_COMPRESS AMPLOT_CAT_GZIP AMPLOT_CAT_COMPRESS AMPLOT_CAT_PACK LL_FMT LL_RFMT LN_S ECHO ac_ct_AR RANLIB ac_ct_RANLIB CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LIBTOOL_DEPS LEX LEXLIB LEX_OUTPUT_ROOT READLINE_LIBS DB_EXT ALLOCA LIBOBJS ac_n ac_c WANT_CLIENT_TRUE WANT_CLIENT_FALSE WANT_SAMBA_TRUE WANT_SAMBA_FALSE WANT_RESTORE_TRUE WANT_RESTORE_FALSE WANT_SERVER_TRUE WANT_SERVER_FALSE WANT_RECOVER_TRUE WANT_RECOVER_FALSE WANT_TAPE_TRUE WANT_TAPE_FALSE WANT_AMPLOT_TRUE WANT_AMPLOT_FALSE WANT_CHG_SCSI_TRUE WANT_CHG_SCSI_FALSE WANT_CHIO_SCSI_TRUE WANT_CHIO_SCSI_FALSE WANT_RUNTIME_PSEUDO_RELOC_TRUE WANT_RUNTIME_PSEUDO_RELOC_FALSE WANT_SETUID_CLIENT_TRUE WANT_SETUID_CLIENT_FALSE WANT_SSH_SECURITY_TRUE WANT_SSH_SECURITY_FALSE LTLIBOBJS LTALLOCA DOC_BUILD_DATE BUILD_MAN_PAGES_TRUE BUILD_MAN_PAGES_FALSE XSLTPROC HAVE_XSLTPROC_TRUE HAVE_XSLTPROC_FALSE AM_CFLAGS'
467 ac_subst_files=''
468
469 # Initialize some variables set by options.
470 ac_init_help=
471 ac_init_version=false
472 # The variables have the same names as the options, with
473 # dashes changed to underlines.
474 cache_file=/dev/null
475 exec_prefix=NONE
476 no_create=
477 no_recursion=
478 prefix=NONE
479 program_prefix=NONE
480 program_suffix=NONE
481 program_transform_name=s,x,x,
482 silent=
483 site=
484 srcdir=
485 verbose=
486 x_includes=NONE
487 x_libraries=NONE
488
489 # Installation directory options.
490 # These are left unexpanded so users can "make install exec_prefix=/foo"
491 # and all the variables that are supposed to be based on exec_prefix
492 # by default will actually change.
493 # Use braces instead of parens because sh, perl, etc. also accept them.
494 bindir='${exec_prefix}/bin'
495 sbindir='${exec_prefix}/sbin'
496 libexecdir='${exec_prefix}/libexec'
497 datadir='${prefix}/share'
498 sysconfdir='${prefix}/etc'
499 sharedstatedir='${prefix}/com'
500 localstatedir='${prefix}/var'
501 libdir='${exec_prefix}/lib'
502 includedir='${prefix}/include'
503 oldincludedir='/usr/include'
504 infodir='${prefix}/info'
505 mandir='${prefix}/man'
506
507 ac_prev=
508 for ac_option
509 do
510   # If the previous option needs an argument, assign it.
511   if test -n "$ac_prev"; then
512     eval "$ac_prev=\$ac_option"
513     ac_prev=
514     continue
515   fi
516
517   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
518
519   # Accept the important Cygnus configure options, so we can diagnose typos.
520
521   case $ac_option in
522
523   -bindir | --bindir | --bindi | --bind | --bin | --bi)
524     ac_prev=bindir ;;
525   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
526     bindir=$ac_optarg ;;
527
528   -build | --build | --buil | --bui | --bu)
529     ac_prev=build_alias ;;
530   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
531     build_alias=$ac_optarg ;;
532
533   -cache-file | --cache-file | --cache-fil | --cache-fi \
534   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
535     ac_prev=cache_file ;;
536   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
537   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
538     cache_file=$ac_optarg ;;
539
540   --config-cache | -C)
541     cache_file=config.cache ;;
542
543   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
544     ac_prev=datadir ;;
545   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
546   | --da=*)
547     datadir=$ac_optarg ;;
548
549   -disable-* | --disable-*)
550     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
551     # Reject names that are not valid shell variable names.
552     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
553       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
554    { (exit 1); exit 1; }; }
555     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
556     eval "enable_$ac_feature=no" ;;
557
558   -enable-* | --enable-*)
559     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
560     # Reject names that are not valid shell variable names.
561     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563    { (exit 1); exit 1; }; }
564     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565     case $ac_option in
566       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
567       *) ac_optarg=yes ;;
568     esac
569     eval "enable_$ac_feature='$ac_optarg'" ;;
570
571   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
572   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
573   | --exec | --exe | --ex)
574     ac_prev=exec_prefix ;;
575   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
576   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
577   | --exec=* | --exe=* | --ex=*)
578     exec_prefix=$ac_optarg ;;
579
580   -gas | --gas | --ga | --g)
581     # Obsolete; use --with-gas.
582     with_gas=yes ;;
583
584   -help | --help | --hel | --he | -h)
585     ac_init_help=long ;;
586   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
587     ac_init_help=recursive ;;
588   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
589     ac_init_help=short ;;
590
591   -host | --host | --hos | --ho)
592     ac_prev=host_alias ;;
593   -host=* | --host=* | --hos=* | --ho=*)
594     host_alias=$ac_optarg ;;
595
596   -includedir | --includedir | --includedi | --included | --include \
597   | --includ | --inclu | --incl | --inc)
598     ac_prev=includedir ;;
599   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
600   | --includ=* | --inclu=* | --incl=* | --inc=*)
601     includedir=$ac_optarg ;;
602
603   -infodir | --infodir | --infodi | --infod | --info | --inf)
604     ac_prev=infodir ;;
605   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
606     infodir=$ac_optarg ;;
607
608   -libdir | --libdir | --libdi | --libd)
609     ac_prev=libdir ;;
610   -libdir=* | --libdir=* | --libdi=* | --libd=*)
611     libdir=$ac_optarg ;;
612
613   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
614   | --libexe | --libex | --libe)
615     ac_prev=libexecdir ;;
616   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
617   | --libexe=* | --libex=* | --libe=*)
618     libexecdir=$ac_optarg ;;
619
620   -localstatedir | --localstatedir | --localstatedi | --localstated \
621   | --localstate | --localstat | --localsta | --localst \
622   | --locals | --local | --loca | --loc | --lo)
623     ac_prev=localstatedir ;;
624   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
625   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
626   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
627     localstatedir=$ac_optarg ;;
628
629   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
630     ac_prev=mandir ;;
631   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
632     mandir=$ac_optarg ;;
633
634   -nfp | --nfp | --nf)
635     # Obsolete; use --without-fp.
636     with_fp=no ;;
637
638   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
639   | --no-cr | --no-c | -n)
640     no_create=yes ;;
641
642   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
643   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
644     no_recursion=yes ;;
645
646   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
647   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
648   | --oldin | --oldi | --old | --ol | --o)
649     ac_prev=oldincludedir ;;
650   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
651   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
652   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
653     oldincludedir=$ac_optarg ;;
654
655   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
656     ac_prev=prefix ;;
657   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
658     prefix=$ac_optarg ;;
659
660   -program-prefix | --program-prefix | --program-prefi | --program-pref \
661   | --program-pre | --program-pr | --program-p)
662     ac_prev=program_prefix ;;
663   -program-prefix=* | --program-prefix=* | --program-prefi=* \
664   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
665     program_prefix=$ac_optarg ;;
666
667   -program-suffix | --program-suffix | --program-suffi | --program-suff \
668   | --program-suf | --program-su | --program-s)
669     ac_prev=program_suffix ;;
670   -program-suffix=* | --program-suffix=* | --program-suffi=* \
671   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
672     program_suffix=$ac_optarg ;;
673
674   -program-transform-name | --program-transform-name \
675   | --program-transform-nam | --program-transform-na \
676   | --program-transform-n | --program-transform- \
677   | --program-transform | --program-transfor \
678   | --program-transfo | --program-transf \
679   | --program-trans | --program-tran \
680   | --progr-tra | --program-tr | --program-t)
681     ac_prev=program_transform_name ;;
682   -program-transform-name=* | --program-transform-name=* \
683   | --program-transform-nam=* | --program-transform-na=* \
684   | --program-transform-n=* | --program-transform-=* \
685   | --program-transform=* | --program-transfor=* \
686   | --program-transfo=* | --program-transf=* \
687   | --program-trans=* | --program-tran=* \
688   | --progr-tra=* | --program-tr=* | --program-t=*)
689     program_transform_name=$ac_optarg ;;
690
691   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
692   | -silent | --silent | --silen | --sile | --sil)
693     silent=yes ;;
694
695   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
696     ac_prev=sbindir ;;
697   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
698   | --sbi=* | --sb=*)
699     sbindir=$ac_optarg ;;
700
701   -sharedstatedir | --sharedstatedir | --sharedstatedi \
702   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
703   | --sharedst | --shareds | --shared | --share | --shar \
704   | --sha | --sh)
705     ac_prev=sharedstatedir ;;
706   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
707   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
708   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
709   | --sha=* | --sh=*)
710     sharedstatedir=$ac_optarg ;;
711
712   -site | --site | --sit)
713     ac_prev=site ;;
714   -site=* | --site=* | --sit=*)
715     site=$ac_optarg ;;
716
717   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
718     ac_prev=srcdir ;;
719   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
720     srcdir=$ac_optarg ;;
721
722   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
723   | --syscon | --sysco | --sysc | --sys | --sy)
724     ac_prev=sysconfdir ;;
725   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
726   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
727     sysconfdir=$ac_optarg ;;
728
729   -target | --target | --targe | --targ | --tar | --ta | --t)
730     ac_prev=target_alias ;;
731   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
732     target_alias=$ac_optarg ;;
733
734   -v | -verbose | --verbose | --verbos | --verbo | --verb)
735     verbose=yes ;;
736
737   -version | --version | --versio | --versi | --vers | -V)
738     ac_init_version=: ;;
739
740   -with-* | --with-*)
741     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
742     # Reject names that are not valid shell variable names.
743     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
744       { echo "$as_me: error: invalid package name: $ac_package" >&2
745    { (exit 1); exit 1; }; }
746     ac_package=`echo $ac_package| sed 's/-/_/g'`
747     case $ac_option in
748       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
749       *) ac_optarg=yes ;;
750     esac
751     eval "with_$ac_package='$ac_optarg'" ;;
752
753   -without-* | --without-*)
754     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
755     # Reject names that are not valid shell variable names.
756     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
757       { echo "$as_me: error: invalid package name: $ac_package" >&2
758    { (exit 1); exit 1; }; }
759     ac_package=`echo $ac_package | sed 's/-/_/g'`
760     eval "with_$ac_package=no" ;;
761
762   --x)
763     # Obsolete; use --with-x.
764     with_x=yes ;;
765
766   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
767   | --x-incl | --x-inc | --x-in | --x-i)
768     ac_prev=x_includes ;;
769   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
770   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
771     x_includes=$ac_optarg ;;
772
773   -x-libraries | --x-libraries | --x-librarie | --x-librari \
774   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
775     ac_prev=x_libraries ;;
776   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
777   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
778     x_libraries=$ac_optarg ;;
779
780   -*) { echo "$as_me: error: unrecognized option: $ac_option
781 Try \`$0 --help' for more information." >&2
782    { (exit 1); exit 1; }; }
783     ;;
784
785   *=*)
786     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
787     # Reject names that are not valid shell variable names.
788     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
789       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
790    { (exit 1); exit 1; }; }
791     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
792     eval "$ac_envvar='$ac_optarg'"
793     export $ac_envvar ;;
794
795   *)
796     # FIXME: should be removed in autoconf 3.0.
797     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
798     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
799       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
800     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
801     ;;
802
803   esac
804 done
805
806 if test -n "$ac_prev"; then
807   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
808   { echo "$as_me: error: missing argument to $ac_option" >&2
809    { (exit 1); exit 1; }; }
810 fi
811
812 # Be sure to have absolute paths.
813 for ac_var in exec_prefix prefix
814 do
815   eval ac_val=$`echo $ac_var`
816   case $ac_val in
817     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
818     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
819    { (exit 1); exit 1; }; };;
820   esac
821 done
822
823 # Be sure to have absolute paths.
824 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
825               localstatedir libdir includedir oldincludedir infodir mandir
826 do
827   eval ac_val=$`echo $ac_var`
828   case $ac_val in
829     [\\/$]* | ?:[\\/]* ) ;;
830     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
831    { (exit 1); exit 1; }; };;
832   esac
833 done
834
835 # There might be people who depend on the old broken behavior: `$host'
836 # used to hold the argument of --host etc.
837 # FIXME: To remove some day.
838 build=$build_alias
839 host=$host_alias
840 target=$target_alias
841
842 # FIXME: To remove some day.
843 if test "x$host_alias" != x; then
844   if test "x$build_alias" = x; then
845     cross_compiling=maybe
846     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
847     If a cross compiler is detected then cross compile mode will be used." >&2
848   elif test "x$build_alias" != "x$host_alias"; then
849     cross_compiling=yes
850   fi
851 fi
852
853 ac_tool_prefix=
854 test -n "$host_alias" && ac_tool_prefix=$host_alias-
855
856 test "$silent" = yes && exec 6>/dev/null
857
858
859 # Find the source files, if location was not specified.
860 if test -z "$srcdir"; then
861   ac_srcdir_defaulted=yes
862   # Try the directory containing this script, then its parent.
863   ac_confdir=`(dirname "$0") 2>/dev/null ||
864 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
865          X"$0" : 'X\(//\)[^/]' \| \
866          X"$0" : 'X\(//\)$' \| \
867          X"$0" : 'X\(/\)' \| \
868          .     : '\(.\)' 2>/dev/null ||
869 echo X"$0" |
870     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
871           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
872           /^X\(\/\/\)$/{ s//\1/; q; }
873           /^X\(\/\).*/{ s//\1/; q; }
874           s/.*/./; q'`
875   srcdir=$ac_confdir
876   if test ! -r $srcdir/$ac_unique_file; then
877     srcdir=..
878   fi
879 else
880   ac_srcdir_defaulted=no
881 fi
882 if test ! -r $srcdir/$ac_unique_file; then
883   if test "$ac_srcdir_defaulted" = yes; then
884     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
885    { (exit 1); exit 1; }; }
886   else
887     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
888    { (exit 1); exit 1; }; }
889   fi
890 fi
891 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
892   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
893    { (exit 1); exit 1; }; }
894 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
895 ac_env_build_alias_set=${build_alias+set}
896 ac_env_build_alias_value=$build_alias
897 ac_cv_env_build_alias_set=${build_alias+set}
898 ac_cv_env_build_alias_value=$build_alias
899 ac_env_host_alias_set=${host_alias+set}
900 ac_env_host_alias_value=$host_alias
901 ac_cv_env_host_alias_set=${host_alias+set}
902 ac_cv_env_host_alias_value=$host_alias
903 ac_env_target_alias_set=${target_alias+set}
904 ac_env_target_alias_value=$target_alias
905 ac_cv_env_target_alias_set=${target_alias+set}
906 ac_cv_env_target_alias_value=$target_alias
907 ac_env_CC_set=${CC+set}
908 ac_env_CC_value=$CC
909 ac_cv_env_CC_set=${CC+set}
910 ac_cv_env_CC_value=$CC
911 ac_env_CFLAGS_set=${CFLAGS+set}
912 ac_env_CFLAGS_value=$CFLAGS
913 ac_cv_env_CFLAGS_set=${CFLAGS+set}
914 ac_cv_env_CFLAGS_value=$CFLAGS
915 ac_env_LDFLAGS_set=${LDFLAGS+set}
916 ac_env_LDFLAGS_value=$LDFLAGS
917 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
918 ac_cv_env_LDFLAGS_value=$LDFLAGS
919 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
920 ac_env_CPPFLAGS_value=$CPPFLAGS
921 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
922 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
923 ac_env_CPP_set=${CPP+set}
924 ac_env_CPP_value=$CPP
925 ac_cv_env_CPP_set=${CPP+set}
926 ac_cv_env_CPP_value=$CPP
927 ac_env_CXX_set=${CXX+set}
928 ac_env_CXX_value=$CXX
929 ac_cv_env_CXX_set=${CXX+set}
930 ac_cv_env_CXX_value=$CXX
931 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
932 ac_env_CXXFLAGS_value=$CXXFLAGS
933 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
934 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
935 ac_env_CXXCPP_set=${CXXCPP+set}
936 ac_env_CXXCPP_value=$CXXCPP
937 ac_cv_env_CXXCPP_set=${CXXCPP+set}
938 ac_cv_env_CXXCPP_value=$CXXCPP
939 ac_env_F77_set=${F77+set}
940 ac_env_F77_value=$F77
941 ac_cv_env_F77_set=${F77+set}
942 ac_cv_env_F77_value=$F77
943 ac_env_FFLAGS_set=${FFLAGS+set}
944 ac_env_FFLAGS_value=$FFLAGS
945 ac_cv_env_FFLAGS_set=${FFLAGS+set}
946 ac_cv_env_FFLAGS_value=$FFLAGS
947
948 #
949 # Report the --help message.
950 #
951 if test "$ac_init_help" = "long"; then
952   # Omit some internal or obsolete options to make the list less imposing.
953   # This message is too long to be a string in the A/UX 3.1 sh.
954   cat <<_ACEOF
955 \`configure' configures this package to adapt to many kinds of systems.
956
957 Usage: $0 [OPTION]... [VAR=VALUE]...
958
959 To assign environment variables (e.g., CC, CFLAGS...), specify them as
960 VAR=VALUE.  See below for descriptions of some of the useful variables.
961
962 Defaults for the options are specified in brackets.
963
964 Configuration:
965   -h, --help              display this help and exit
966       --help=short        display options specific to this package
967       --help=recursive    display the short help of all the included packages
968   -V, --version           display version information and exit
969   -q, --quiet, --silent   do not print \`checking...' messages
970       --cache-file=FILE   cache test results in FILE [disabled]
971   -C, --config-cache      alias for \`--cache-file=config.cache'
972   -n, --no-create         do not create output files
973       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
974
975 _ACEOF
976
977   cat <<_ACEOF
978 Installation directories:
979   --prefix=PREFIX         install architecture-independent files in PREFIX
980                           [$ac_default_prefix]
981   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
982                           [PREFIX]
983
984 By default, \`make install' will install all the files in
985 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
986 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
987 for instance \`--prefix=\$HOME'.
988
989 For better control, use the options below.
990
991 Fine tuning of the installation directories:
992   --bindir=DIR           user executables [EPREFIX/bin]
993   --sbindir=DIR          system admin executables [EPREFIX/sbin]
994   --libexecdir=DIR       program executables [EPREFIX/libexec]
995   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
996   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
997   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
998   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
999   --libdir=DIR           object code libraries [EPREFIX/lib]
1000   --includedir=DIR       C header files [PREFIX/include]
1001   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1002   --infodir=DIR          info documentation [PREFIX/info]
1003   --mandir=DIR           man documentation [PREFIX/man]
1004 _ACEOF
1005
1006   cat <<\_ACEOF
1007
1008 Program names:
1009   --program-prefix=PREFIX            prepend PREFIX to installed program names
1010   --program-suffix=SUFFIX            append SUFFIX to installed program names
1011   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1012
1013 System types:
1014   --build=BUILD     configure for building on BUILD [guessed]
1015   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1016   --target=TARGET   configure for building compilers for TARGET [HOST]
1017 _ACEOF
1018 fi
1019
1020 if test -n "$ac_init_help"; then
1021
1022   cat <<\_ACEOF
1023
1024 Optional Features:
1025   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1026   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1027   --disable-dependency-tracking  speeds up one-time build
1028   --enable-dependency-tracking   do not reject slow dependency extractors
1029   --disable-largefile     omit support for large files
1030   --enable-shared[=PKGS]
1031                           build shared libraries [default=yes]
1032   --enable-static[=PKGS]
1033                           build static libraries [default=yes]
1034   --enable-fast-install[=PKGS]
1035                           optimize for fast installation [default=yes]
1036   --disable-libtool-lock  avoid locking (might break parallel builds)
1037
1038 Optional Packages:
1039   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1040   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1041   --with-cflags=CFLAGS   arguments to the c compiler (-Wall, -g, etc)
1042   --with-includes=DIR    site header files for readline, etc in DIR
1043   --with-libraries=DIR   site library directories for readline, etc in DIR
1044   --with-dumperdir=DIR   where we install the dumpers [EPREFIX/dumper]
1045   --with-configdir=DIR   runtime config files in DIR [sysconfdir/amanda]
1046   --with-indexdir        deprecated, use indexdir in amanda.conf
1047   --with-dbdir           deprecated, use infofile in amanda.conf
1048   --with-logdir          deprecated, use logfile in amanda.conf
1049   --with-suffixes        install binaries with version string appended to name
1050   --with-client-only     deprecated, use --without-server
1051   --with-server-only     deprecated, use --without-client
1052   --without-client       do not build client stuff
1053   --without-server       do not build server stuff (set --without-restore)
1054   --without-restore      do not build amrestore nor amidxtaped
1055   --without-amrecover    do not build amrecover
1056   --with-index-server=HOST default amanda index server [`uname -n`]
1057   --without-force-uid    do not force the uid to --with-user
1058   --with-user=USER       force execution to USER on client systems [required]
1059   --with-group=GROUP     group allowed to execute setuid-root programs [required]
1060   --with-owner=USER       force ownership of files to USER [default == --with-user value]
1061   --with-rundump         use rundump (setuid-root) to invoke dump
1062   --with-config=CONFIG   default configuration [DailySet1]
1063   --with-tape-server=HOST default restoring tape server is HOST [same as --with-index-server]
1064   --with-tape-device=ARG restoring tape server HOST's no rewinding tape drive
1065   --with-ftape-rawdevice=ARG raw device on tape server HOST's if using Linux ftape >=3.04d
1066   --with-rew-tape        deprecated, use --with-tape-device
1067   --with-norew-tape=ARG  deprecated, use --with-tape-device
1068   --with-changer-device=ARG default tape changer device [/dev/ch0 if it exists]
1069   --with-fqdn            use FQDN's to backup multiple networks
1070   --with-broken-fsf      only enable if tape fsf calls fail mid-file
1071   --without-reuseaddr    Don't closed network connections to be reused until full timeout period.
1072   --with-gnutar[=PROG]      use PROG as GNU tar executable [default: looks for one]
1073   --with-smbclient[=PROG]   use PROG as Samba's smbclient executable [default: looks for one]
1074   --with-samba-user was deprecated
1075   --with-gnutar-listdir=DIR  gnutar directory lists go in DIR [localstatedir/amanda/gnutar-lists]
1076   --with-gnutar-listed-incremental was deprecated, use --with-gnutar-listdir
1077   --without-bsd-security do not use BSD rsh/rlogin style security
1078   --without-amandahosts  use .rhosts instead of .amandahosts
1079   --with-dbmalloc=DIR  Location of dbmalloc libs and headers
1080   --with-ipv6             If IPv6 must be enabled (Default)
1081   --without-ipv6          If IPv6 must be disable
1082   --with-krb4-security=DIR   Location of Kerberos software [/usr/kerberos /usr/cygnus /usr /opt/kerberos]
1083   --with-rsh-security use rsh as a transport
1084   --with-ssh-security use ssh as a transport
1085   --with-bsdtcp-security use tcp as a transport
1086   --with-bsdudp-security use udp as a transport
1087     --with-server-principal=ARG    server host principal  ["amanda"]
1088     --with-server-instance=ARG     server host instance   ["amanda"]
1089     --with-server-keyfile=ARG      server host key file   ["/.amanda"]
1090     --with-client-principal=ARG    client host principal  ["rcmd"]
1091     --with-client-instance=ARG     client host instance   [HOSTNAME_INSTANCE]
1092     --with-client-keyfile=ARG      client host key file   [KEYFILE]
1093     --with-ticket-lifetime=ARG     ticket lifetime        [128]
1094   --with-krb5-security=DIR   Location of Kerberos V software [/usr/kerberos /usr/cygnus /usr /opt/kerberos]
1095   --with-low-tcpportrange=low,high     bind reserved TCP server sockets to ports within this range unlimited (mainly for amrecover)
1096   --with-tcpportrange=low,high  bind unreserved TCP server sockets to ports within this range [unlimited]
1097   --with-udpportrange=low,high  bind reserved UDP server sockets to ports within this range [unlimited]
1098   --with-maxtapeblocksize=kb            Maximum size of a tape block
1099   --with-db={text,db,dbm,gdbm,ndbm} use the selected database format [text]
1100   --with-mmap            force use of mmap instead of shared memory support
1101   --with-buffered-dump   buffer the dumping sockets on the server for speed
1102   --with-assertions      compile assertions into code
1103   --with-tmpdir=/temp/dir area Amanda can use for temp files [/tmp/amanda]
1104   --with[out]-debugging[=/debug/dir] [do not] record runtime debugging information in specified directory [--with-tmpdir]
1105   --with-debug-days=NN    number of days to keep debugging files [default=4]
1106   --with-testing[=suffix] use alternate service names
1107   --with-dump-honor-nodump  if dump supports -h, use it for level0s too
1108   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1109   --with-pic              try to use only PIC/non-PIC objects [default=use
1110                           both]
1111   --with-tags[=TAGS]
1112                           include additional configurations [automatic]
1113   --without-built-manpages Do not build manpages from XML source.
1114
1115 Some influential environment variables:
1116   CC          C compiler command
1117   CFLAGS      C compiler flags
1118   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1119               nonstandard directory <lib dir>
1120   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1121               headers in a nonstandard directory <include dir>
1122   CPP         C preprocessor
1123   CXX         C++ compiler command
1124   CXXFLAGS    C++ compiler flags
1125   CXXCPP      C++ preprocessor
1126   F77         Fortran 77 compiler command
1127   FFLAGS      Fortran 77 compiler flags
1128
1129 Use these variables to override the choices made by `configure' or to help
1130 it to find libraries and programs with nonstandard names/locations.
1131
1132 _ACEOF
1133 fi
1134
1135 if test "$ac_init_help" = "recursive"; then
1136   # If there are subdirs, report their specific --help.
1137   ac_popdir=`pwd`
1138   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1139     test -d $ac_dir || continue
1140     ac_builddir=.
1141
1142 if test "$ac_dir" != .; then
1143   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1144   # A "../" for each directory in $ac_dir_suffix.
1145   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1146 else
1147   ac_dir_suffix= ac_top_builddir=
1148 fi
1149
1150 case $srcdir in
1151   .)  # No --srcdir option.  We are building in place.
1152     ac_srcdir=.
1153     if test -z "$ac_top_builddir"; then
1154        ac_top_srcdir=.
1155     else
1156        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1157     fi ;;
1158   [\\/]* | ?:[\\/]* )  # Absolute path.
1159     ac_srcdir=$srcdir$ac_dir_suffix;
1160     ac_top_srcdir=$srcdir ;;
1161   *) # Relative path.
1162     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1163     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1164 esac
1165
1166 # Do not use `cd foo && pwd` to compute absolute paths, because
1167 # the directories may not exist.
1168 case `pwd` in
1169 .) ac_abs_builddir="$ac_dir";;
1170 *)
1171   case "$ac_dir" in
1172   .) ac_abs_builddir=`pwd`;;
1173   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1174   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1175   esac;;
1176 esac
1177 case $ac_abs_builddir in
1178 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1179 *)
1180   case ${ac_top_builddir}. in
1181   .) ac_abs_top_builddir=$ac_abs_builddir;;
1182   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1183   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1184   esac;;
1185 esac
1186 case $ac_abs_builddir in
1187 .) ac_abs_srcdir=$ac_srcdir;;
1188 *)
1189   case $ac_srcdir in
1190   .) ac_abs_srcdir=$ac_abs_builddir;;
1191   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1192   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1193   esac;;
1194 esac
1195 case $ac_abs_builddir in
1196 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1197 *)
1198   case $ac_top_srcdir in
1199   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1200   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1201   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1202   esac;;
1203 esac
1204
1205     cd $ac_dir
1206     # Check for guested configure; otherwise get Cygnus style configure.
1207     if test -f $ac_srcdir/configure.gnu; then
1208       echo
1209       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1210     elif test -f $ac_srcdir/configure; then
1211       echo
1212       $SHELL $ac_srcdir/configure  --help=recursive
1213     elif test -f $ac_srcdir/configure.ac ||
1214            test -f $ac_srcdir/configure.in; then
1215       echo
1216       $ac_configure --help
1217     else
1218       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1219     fi
1220     cd $ac_popdir
1221   done
1222 fi
1223
1224 test -n "$ac_init_help" && exit 0
1225 if $ac_init_version; then
1226   cat <<\_ACEOF
1227
1228 Copyright (C) 2003 Free Software Foundation, Inc.
1229 This configure script is free software; the Free Software Foundation
1230 gives unlimited permission to copy, distribute and modify it.
1231 _ACEOF
1232   exit 0
1233 fi
1234 exec 5>config.log
1235 cat >&5 <<_ACEOF
1236 This file contains any messages produced by compilers while
1237 running configure, to aid debugging if configure makes a mistake.
1238
1239 It was created by $as_me, which was
1240 generated by GNU Autoconf 2.59.  Invocation command line was
1241
1242   $ $0 $@
1243
1244 _ACEOF
1245 {
1246 cat <<_ASUNAME
1247 ## --------- ##
1248 ## Platform. ##
1249 ## --------- ##
1250
1251 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1252 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1253 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1254 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1255 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1256
1257 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1258 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1259
1260 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1261 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1262 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1263 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1264 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1265 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1266 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1267
1268 _ASUNAME
1269
1270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1271 for as_dir in $PATH
1272 do
1273   IFS=$as_save_IFS
1274   test -z "$as_dir" && as_dir=.
1275   echo "PATH: $as_dir"
1276 done
1277
1278 } >&5
1279
1280 cat >&5 <<_ACEOF
1281
1282
1283 ## ----------- ##
1284 ## Core tests. ##
1285 ## ----------- ##
1286
1287 _ACEOF
1288
1289
1290 # Keep a trace of the command line.
1291 # Strip out --no-create and --no-recursion so they do not pile up.
1292 # Strip out --silent because we don't want to record it for future runs.
1293 # Also quote any args containing shell meta-characters.
1294 # Make two passes to allow for proper duplicate-argument suppression.
1295 ac_configure_args=
1296 ac_configure_args0=
1297 ac_configure_args1=
1298 ac_sep=
1299 ac_must_keep_next=false
1300 for ac_pass in 1 2
1301 do
1302   for ac_arg
1303   do
1304     case $ac_arg in
1305     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1306     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1307     | -silent | --silent | --silen | --sile | --sil)
1308       continue ;;
1309     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1310       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1311     esac
1312     case $ac_pass in
1313     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1314     2)
1315       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1316       if test $ac_must_keep_next = true; then
1317         ac_must_keep_next=false # Got value, back to normal.
1318       else
1319         case $ac_arg in
1320           *=* | --config-cache | -C | -disable-* | --disable-* \
1321           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1322           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1323           | -with-* | --with-* | -without-* | --without-* | --x)
1324             case "$ac_configure_args0 " in
1325               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1326             esac
1327             ;;
1328           -* ) ac_must_keep_next=true ;;
1329         esac
1330       fi
1331       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1332       # Get rid of the leading space.
1333       ac_sep=" "
1334       ;;
1335     esac
1336   done
1337 done
1338 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1339 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1340
1341 # When interrupted or exit'd, cleanup temporary files, and complete
1342 # config.log.  We remove comments because anyway the quotes in there
1343 # would cause problems or look ugly.
1344 # WARNING: Be sure not to use single quotes in there, as some shells,
1345 # such as our DU 5.0 friend, will then `close' the trap.
1346 trap 'exit_status=$?
1347   # Save into config.log some information that might help in debugging.
1348   {
1349     echo
1350
1351     cat <<\_ASBOX
1352 ## ---------------- ##
1353 ## Cache variables. ##
1354 ## ---------------- ##
1355 _ASBOX
1356     echo
1357     # The following way of writing the cache mishandles newlines in values,
1358 {
1359   (set) 2>&1 |
1360     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1361     *ac_space=\ *)
1362       sed -n \
1363         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1364           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1365       ;;
1366     *)
1367       sed -n \
1368         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1369       ;;
1370     esac;
1371 }
1372     echo
1373
1374     cat <<\_ASBOX
1375 ## ----------------- ##
1376 ## Output variables. ##
1377 ## ----------------- ##
1378 _ASBOX
1379     echo
1380     for ac_var in $ac_subst_vars
1381     do
1382       eval ac_val=$`echo $ac_var`
1383       echo "$ac_var='"'"'$ac_val'"'"'"
1384     done | sort
1385     echo
1386
1387     if test -n "$ac_subst_files"; then
1388       cat <<\_ASBOX
1389 ## ------------- ##
1390 ## Output files. ##
1391 ## ------------- ##
1392 _ASBOX
1393       echo
1394       for ac_var in $ac_subst_files
1395       do
1396         eval ac_val=$`echo $ac_var`
1397         echo "$ac_var='"'"'$ac_val'"'"'"
1398       done | sort
1399       echo
1400     fi
1401
1402     if test -s confdefs.h; then
1403       cat <<\_ASBOX
1404 ## ----------- ##
1405 ## confdefs.h. ##
1406 ## ----------- ##
1407 _ASBOX
1408       echo
1409       sed "/^$/d" confdefs.h | sort
1410       echo
1411     fi
1412     test "$ac_signal" != 0 &&
1413       echo "$as_me: caught signal $ac_signal"
1414     echo "$as_me: exit $exit_status"
1415   } >&5
1416   rm -f core *.core &&
1417   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1418     exit $exit_status
1419      ' 0
1420 for ac_signal in 1 2 13 15; do
1421   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1422 done
1423 ac_signal=0
1424
1425 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1426 rm -rf conftest* confdefs.h
1427 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1428 echo >confdefs.h
1429
1430 # Predefined preprocessor variables.
1431
1432 cat >>confdefs.h <<_ACEOF
1433 #define PACKAGE_NAME "$PACKAGE_NAME"
1434 _ACEOF
1435
1436
1437 cat >>confdefs.h <<_ACEOF
1438 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1439 _ACEOF
1440
1441
1442 cat >>confdefs.h <<_ACEOF
1443 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1444 _ACEOF
1445
1446
1447 cat >>confdefs.h <<_ACEOF
1448 #define PACKAGE_STRING "$PACKAGE_STRING"
1449 _ACEOF
1450
1451
1452 cat >>confdefs.h <<_ACEOF
1453 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1454 _ACEOF
1455
1456
1457 # Let the site file select an alternate cache file if it wants to.
1458 # Prefer explicitly selected file to automatically selected ones.
1459 if test -z "$CONFIG_SITE"; then
1460   if test "x$prefix" != xNONE; then
1461     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1462   else
1463     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1464   fi
1465 fi
1466 for ac_site_file in $CONFIG_SITE; do
1467   if test -r "$ac_site_file"; then
1468     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1469 echo "$as_me: loading site script $ac_site_file" >&6;}
1470     sed 's/^/| /' "$ac_site_file" >&5
1471     . "$ac_site_file"
1472   fi
1473 done
1474
1475 if test -r "$cache_file"; then
1476   # Some versions of bash will fail to source /dev/null (special
1477   # files actually), so we avoid doing that.
1478   if test -f "$cache_file"; then
1479     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1480 echo "$as_me: loading cache $cache_file" >&6;}
1481     case $cache_file in
1482       [\\/]* | ?:[\\/]* ) . $cache_file;;
1483       *)                      . ./$cache_file;;
1484     esac
1485   fi
1486 else
1487   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1488 echo "$as_me: creating cache $cache_file" >&6;}
1489   >$cache_file
1490 fi
1491
1492 # Check that the precious variables saved in the cache have kept the same
1493 # value.
1494 ac_cache_corrupted=false
1495 for ac_var in `(set) 2>&1 |
1496                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1497   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1498   eval ac_new_set=\$ac_env_${ac_var}_set
1499   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1500   eval ac_new_val="\$ac_env_${ac_var}_value"
1501   case $ac_old_set,$ac_new_set in
1502     set,)
1503       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1504 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1505       ac_cache_corrupted=: ;;
1506     ,set)
1507       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1508 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1509       ac_cache_corrupted=: ;;
1510     ,);;
1511     *)
1512       if test "x$ac_old_val" != "x$ac_new_val"; then
1513         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1514 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1515         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1516 echo "$as_me:   former value:  $ac_old_val" >&2;}
1517         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1518 echo "$as_me:   current value: $ac_new_val" >&2;}
1519         ac_cache_corrupted=:
1520       fi;;
1521   esac
1522   # Pass precious variables to config.status.
1523   if test "$ac_new_set" = set; then
1524     case $ac_new_val in
1525     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1526       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1527     *) ac_arg=$ac_var=$ac_new_val ;;
1528     esac
1529     case " $ac_configure_args " in
1530       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1531       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1532     esac
1533   fi
1534 done
1535 if $ac_cache_corrupted; then
1536   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1537 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1538   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1539 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1540    { (exit 1); exit 1; }; }
1541 fi
1542
1543 ac_ext=c
1544 ac_cpp='$CPP $CPPFLAGS'
1545 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1546 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1547 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568 ac_aux_dir=
1569 for ac_dir in config $srcdir/config; do
1570   if test -f $ac_dir/install-sh; then
1571     ac_aux_dir=$ac_dir
1572     ac_install_sh="$ac_aux_dir/install-sh -c"
1573     break
1574   elif test -f $ac_dir/install.sh; then
1575     ac_aux_dir=$ac_dir
1576     ac_install_sh="$ac_aux_dir/install.sh -c"
1577     break
1578   elif test -f $ac_dir/shtool; then
1579     ac_aux_dir=$ac_dir
1580     ac_install_sh="$ac_aux_dir/shtool install -c"
1581     break
1582   fi
1583 done
1584 if test -z "$ac_aux_dir"; then
1585   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1586 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1587    { (exit 1); exit 1; }; }
1588 fi
1589 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1590 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1591 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1592
1593 # Make sure we can run config.sub.
1594 $ac_config_sub sun4 >/dev/null 2>&1 ||
1595   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1596 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1597    { (exit 1); exit 1; }; }
1598
1599 echo "$as_me:$LINENO: checking build system type" >&5
1600 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1601 if test "${ac_cv_build+set}" = set; then
1602   echo $ECHO_N "(cached) $ECHO_C" >&6
1603 else
1604   ac_cv_build_alias=$build_alias
1605 test -z "$ac_cv_build_alias" &&
1606   ac_cv_build_alias=`$ac_config_guess`
1607 test -z "$ac_cv_build_alias" &&
1608   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1609 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1610    { (exit 1); exit 1; }; }
1611 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1612   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1613 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1614    { (exit 1); exit 1; }; }
1615
1616 fi
1617 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1618 echo "${ECHO_T}$ac_cv_build" >&6
1619 build=$ac_cv_build
1620 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1621 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1622 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1623
1624
1625 echo "$as_me:$LINENO: checking host system type" >&5
1626 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1627 if test "${ac_cv_host+set}" = set; then
1628   echo $ECHO_N "(cached) $ECHO_C" >&6
1629 else
1630   ac_cv_host_alias=$host_alias
1631 test -z "$ac_cv_host_alias" &&
1632   ac_cv_host_alias=$ac_cv_build_alias
1633 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1634   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1635 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1636    { (exit 1); exit 1; }; }
1637
1638 fi
1639 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1640 echo "${ECHO_T}$ac_cv_host" >&6
1641 host=$ac_cv_host
1642 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1643 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1644 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1645
1646
1647 echo "$as_me:$LINENO: checking target system type" >&5
1648 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1649 if test "${ac_cv_target+set}" = set; then
1650   echo $ECHO_N "(cached) $ECHO_C" >&6
1651 else
1652   ac_cv_target_alias=$target_alias
1653 test "x$ac_cv_target_alias" = "x" &&
1654   ac_cv_target_alias=$ac_cv_host_alias
1655 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1656   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1657 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1658    { (exit 1); exit 1; }; }
1659
1660 fi
1661 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1662 echo "${ECHO_T}$ac_cv_target" >&6
1663 target=$ac_cv_target
1664 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1665 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1666 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1667
1668
1669 # The aliases save the names the user supplied, while $host etc.
1670 # will get canonicalized.
1671 test -n "$target_alias" &&
1672   test "$program_prefix$program_suffix$program_transform_name" = \
1673     NONENONEs,x,x, &&
1674   program_prefix=${target_alias}-
1675
1676
1677 CONFIGURE_COMMAND="'$0'"
1678 for arg in "$@"; do
1679   CONFIGURE_COMMAND="$CONFIGURE_COMMAND '$arg'"
1680 done
1681
1682 cat >>confdefs.h <<_ACEOF
1683 #define CONFIGURE_COMMAND "$CONFIGURE_COMMAND"
1684 _ACEOF
1685
1686
1687
1688 am__api_version="1.9"
1689 # Find a good install program.  We prefer a C program (faster),
1690 # so one script is as good as another.  But avoid the broken or
1691 # incompatible versions:
1692 # SysV /etc/install, /usr/sbin/install
1693 # SunOS /usr/etc/install
1694 # IRIX /sbin/install
1695 # AIX /bin/install
1696 # AmigaOS /C/install, which installs bootblocks on floppy discs
1697 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1698 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1699 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1700 # OS/2's system install, which has a completely different semantic
1701 # ./install, which can be erroneously created by make from ./install.sh.
1702 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1703 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1704 if test -z "$INSTALL"; then
1705 if test "${ac_cv_path_install+set}" = set; then
1706   echo $ECHO_N "(cached) $ECHO_C" >&6
1707 else
1708   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1709 for as_dir in $PATH
1710 do
1711   IFS=$as_save_IFS
1712   test -z "$as_dir" && as_dir=.
1713   # Account for people who put trailing slashes in PATH elements.
1714 case $as_dir/ in
1715   ./ | .// | /cC/* | \
1716   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1717   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1718   /usr/ucb/* ) ;;
1719   *)
1720     # OSF1 and SCO ODT 3.0 have their own names for install.
1721     # Don't use installbsd from OSF since it installs stuff as root
1722     # by default.
1723     for ac_prog in ginstall scoinst install; do
1724       for ac_exec_ext in '' $ac_executable_extensions; do
1725         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1726           if test $ac_prog = install &&
1727             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1728             # AIX install.  It has an incompatible calling convention.
1729             :
1730           elif test $ac_prog = install &&
1731             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1732             # program-specific install script used by HP pwplus--don't use.
1733             :
1734           else
1735             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1736             break 3
1737           fi
1738         fi
1739       done
1740     done
1741     ;;
1742 esac
1743 done
1744
1745
1746 fi
1747   if test "${ac_cv_path_install+set}" = set; then
1748     INSTALL=$ac_cv_path_install
1749   else
1750     # As a last resort, use the slow shell script.  We don't cache a
1751     # path for INSTALL within a source directory, because that will
1752     # break other packages using the cache if that directory is
1753     # removed, or if the path is relative.
1754     INSTALL=$ac_install_sh
1755   fi
1756 fi
1757 echo "$as_me:$LINENO: result: $INSTALL" >&5
1758 echo "${ECHO_T}$INSTALL" >&6
1759
1760 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1761 # It thinks the first close brace ends the variable substitution.
1762 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1763
1764 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1765
1766 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1767
1768 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1769 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1770 # Just in case
1771 sleep 1
1772 echo timestamp > conftest.file
1773 # Do `set' in a subshell so we don't clobber the current shell's
1774 # arguments.  Must try -L first in case configure is actually a
1775 # symlink; some systems play weird games with the mod time of symlinks
1776 # (eg FreeBSD returns the mod time of the symlink's containing
1777 # directory).
1778 if (
1779    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1780    if test "$*" = "X"; then
1781       # -L didn't work.
1782       set X `ls -t $srcdir/configure conftest.file`
1783    fi
1784    rm -f conftest.file
1785    if test "$*" != "X $srcdir/configure conftest.file" \
1786       && test "$*" != "X conftest.file $srcdir/configure"; then
1787
1788       # If neither matched, then we have a broken ls.  This can happen
1789       # if, for instance, CONFIG_SHELL is bash and it inherits a
1790       # broken ls alias from the environment.  This has actually
1791       # happened.  Such a system could not be considered "sane".
1792       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1793 alias in your environment" >&5
1794 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1795 alias in your environment" >&2;}
1796    { (exit 1); exit 1; }; }
1797    fi
1798
1799    test "$2" = conftest.file
1800    )
1801 then
1802    # Ok.
1803    :
1804 else
1805    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1806 Check your system clock" >&5
1807 echo "$as_me: error: newly created file is older than distributed files!
1808 Check your system clock" >&2;}
1809    { (exit 1); exit 1; }; }
1810 fi
1811 echo "$as_me:$LINENO: result: yes" >&5
1812 echo "${ECHO_T}yes" >&6
1813 test "$program_prefix" != NONE &&
1814   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1815 # Use a double $ so make ignores it.
1816 test "$program_suffix" != NONE &&
1817   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1818 # Double any \ or $.  echo might interpret backslashes.
1819 # By default was `s,x,x', remove it if useless.
1820 cat <<\_ACEOF >conftest.sed
1821 s/[\\$]/&&/g;s/;s,x,x,$//
1822 _ACEOF
1823 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1824 rm conftest.sed
1825
1826 # expand $ac_aux_dir to an absolute path
1827 am_aux_dir=`cd $ac_aux_dir && pwd`
1828
1829 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1830 # Use eval to expand $SHELL
1831 if eval "$MISSING --run true"; then
1832   am_missing_run="$MISSING --run "
1833 else
1834   am_missing_run=
1835   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1836 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1837 fi
1838
1839 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1840   # We used to keeping the `.' as first argument, in order to
1841   # allow $(mkdir_p) to be used without argument.  As in
1842   #   $(mkdir_p) $(somedir)
1843   # where $(somedir) is conditionally defined.  However this is wrong
1844   # for two reasons:
1845   #  1. if the package is installed by a user who cannot write `.'
1846   #     make install will fail,
1847   #  2. the above comment should most certainly read
1848   #     $(mkdir_p) $(DESTDIR)$(somedir)
1849   #     so it does not work when $(somedir) is undefined and
1850   #     $(DESTDIR) is not.
1851   #  To support the latter case, we have to write
1852   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1853   #  so the `.' trick is pointless.
1854   mkdir_p='mkdir -p --'
1855 else
1856   # On NextStep and OpenStep, the `mkdir' command does not
1857   # recognize any option.  It will interpret all options as
1858   # directories to create, and then abort because `.' already
1859   # exists.
1860   for d in ./-p ./--version;
1861   do
1862     test -d $d && rmdir $d
1863   done
1864   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1865   if test -f "$ac_aux_dir/mkinstalldirs"; then
1866     mkdir_p='$(mkinstalldirs)'
1867   else
1868     mkdir_p='$(install_sh) -d'
1869   fi
1870 fi
1871
1872 for ac_prog in gawk mawk nawk awk
1873 do
1874   # Extract the first word of "$ac_prog", so it can be a program name with args.
1875 set dummy $ac_prog; ac_word=$2
1876 echo "$as_me:$LINENO: checking for $ac_word" >&5
1877 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1878 if test "${ac_cv_prog_AWK+set}" = set; then
1879   echo $ECHO_N "(cached) $ECHO_C" >&6
1880 else
1881   if test -n "$AWK"; then
1882   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1883 else
1884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1885 for as_dir in $PATH
1886 do
1887   IFS=$as_save_IFS
1888   test -z "$as_dir" && as_dir=.
1889   for ac_exec_ext in '' $ac_executable_extensions; do
1890   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1891     ac_cv_prog_AWK="$ac_prog"
1892     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1893     break 2
1894   fi
1895 done
1896 done
1897
1898 fi
1899 fi
1900 AWK=$ac_cv_prog_AWK
1901 if test -n "$AWK"; then
1902   echo "$as_me:$LINENO: result: $AWK" >&5
1903 echo "${ECHO_T}$AWK" >&6
1904 else
1905   echo "$as_me:$LINENO: result: no" >&5
1906 echo "${ECHO_T}no" >&6
1907 fi
1908
1909   test -n "$AWK" && break
1910 done
1911
1912 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1913 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1914 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1915 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1916   echo $ECHO_N "(cached) $ECHO_C" >&6
1917 else
1918   cat >conftest.make <<\_ACEOF
1919 all:
1920         @echo 'ac_maketemp="$(MAKE)"'
1921 _ACEOF
1922 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1923 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1924 if test -n "$ac_maketemp"; then
1925   eval ac_cv_prog_make_${ac_make}_set=yes
1926 else
1927   eval ac_cv_prog_make_${ac_make}_set=no
1928 fi
1929 rm -f conftest.make
1930 fi
1931 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1932   echo "$as_me:$LINENO: result: yes" >&5
1933 echo "${ECHO_T}yes" >&6
1934   SET_MAKE=
1935 else
1936   echo "$as_me:$LINENO: result: no" >&5
1937 echo "${ECHO_T}no" >&6
1938   SET_MAKE="MAKE=${MAKE-make}"
1939 fi
1940
1941 rm -rf .tst 2>/dev/null
1942 mkdir .tst 2>/dev/null
1943 if test -d .tst; then
1944   am__leading_dot=.
1945 else
1946   am__leading_dot=_
1947 fi
1948 rmdir .tst 2>/dev/null
1949
1950 # test to see if srcdir already configured
1951 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1952    test -f $srcdir/config.status; then
1953   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1954 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1955    { (exit 1); exit 1; }; }
1956 fi
1957
1958 # test whether we have cygpath
1959 if test -z "$CYGPATH_W"; then
1960   if (cygpath --version) >/dev/null 2>/dev/null; then
1961     CYGPATH_W='cygpath -w'
1962   else
1963     CYGPATH_W=echo
1964   fi
1965 fi
1966
1967
1968 # Define the identity of the package.
1969  PACKAGE=amanda
1970  VERSION=2.5.1p3
1971
1972
1973 cat >>confdefs.h <<_ACEOF
1974 #define PACKAGE "$PACKAGE"
1975 _ACEOF
1976
1977
1978 cat >>confdefs.h <<_ACEOF
1979 #define VERSION "$VERSION"
1980 _ACEOF
1981
1982 # Some tools Automake needs.
1983
1984 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1985
1986
1987 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1988
1989
1990 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1991
1992
1993 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1994
1995
1996 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1997
1998 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1999
2000 # Installed binaries are usually stripped using `strip' when the user
2001 # run `make install-strip'.  However `strip' might not be the right
2002 # tool to use in cross-compilation environments, therefore Automake
2003 # will honor the `STRIP' environment variable to overrule this program.
2004 if test "$cross_compiling" != no; then
2005   if test -n "$ac_tool_prefix"; then
2006   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2007 set dummy ${ac_tool_prefix}strip; ac_word=$2
2008 echo "$as_me:$LINENO: checking for $ac_word" >&5
2009 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2010 if test "${ac_cv_prog_STRIP+set}" = set; then
2011   echo $ECHO_N "(cached) $ECHO_C" >&6
2012 else
2013   if test -n "$STRIP"; then
2014   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2015 else
2016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2017 for as_dir in $PATH
2018 do
2019   IFS=$as_save_IFS
2020   test -z "$as_dir" && as_dir=.
2021   for ac_exec_ext in '' $ac_executable_extensions; do
2022   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2023     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2024     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2025     break 2
2026   fi
2027 done
2028 done
2029
2030 fi
2031 fi
2032 STRIP=$ac_cv_prog_STRIP
2033 if test -n "$STRIP"; then
2034   echo "$as_me:$LINENO: result: $STRIP" >&5
2035 echo "${ECHO_T}$STRIP" >&6
2036 else
2037   echo "$as_me:$LINENO: result: no" >&5
2038 echo "${ECHO_T}no" >&6
2039 fi
2040
2041 fi
2042 if test -z "$ac_cv_prog_STRIP"; then
2043   ac_ct_STRIP=$STRIP
2044   # Extract the first word of "strip", so it can be a program name with args.
2045 set dummy strip; ac_word=$2
2046 echo "$as_me:$LINENO: checking for $ac_word" >&5
2047 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2048 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2049   echo $ECHO_N "(cached) $ECHO_C" >&6
2050 else
2051   if test -n "$ac_ct_STRIP"; then
2052   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2053 else
2054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2055 for as_dir in $PATH
2056 do
2057   IFS=$as_save_IFS
2058   test -z "$as_dir" && as_dir=.
2059   for ac_exec_ext in '' $ac_executable_extensions; do
2060   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2061     ac_cv_prog_ac_ct_STRIP="strip"
2062     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2063     break 2
2064   fi
2065 done
2066 done
2067
2068   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2069 fi
2070 fi
2071 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2072 if test -n "$ac_ct_STRIP"; then
2073   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2074 echo "${ECHO_T}$ac_ct_STRIP" >&6
2075 else
2076   echo "$as_me:$LINENO: result: no" >&5
2077 echo "${ECHO_T}no" >&6
2078 fi
2079
2080   STRIP=$ac_ct_STRIP
2081 else
2082   STRIP="$ac_cv_prog_STRIP"
2083 fi
2084
2085 fi
2086 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2087
2088 # We need awk for the "check" target.  The system "awk" is bad on
2089 # some platforms.
2090 # Always define AMTAR for backward compatibility.
2091
2092 AMTAR=${AMTAR-"${am_missing_run}tar"}
2093
2094 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2095
2096
2097
2098
2099
2100           ac_config_headers="$ac_config_headers config/config.h"
2101
2102
2103
2104 if test -f "$srcdir/SNAPSHOT"; then
2105   cat < "$srcdir/SNAPSHOT"
2106
2107   snapdate=`sed -n '/^Snapshot Date: \([0-9]*\)/ s//\1/p' < $srcdir/SNAPSHOT`
2108
2109   test -z "$snapdate" || VERSION="$VERSION-$snapdate"
2110   SNAPSHOT_STAMP=SNAPSHOT
2111 else
2112   SNAPSHOT_STAMP=
2113 fi
2114
2115
2116 if test -f config.local; then
2117     echo "running local script ./config.local"
2118     . ./config.local
2119 fi
2120
2121
2122 VERSION_MAJOR=`expr "$VERSION" : '\([0-9]*\)'`
2123 VERSION_MINOR=`expr "$VERSION" : '[0-9]*\.\([0-9]*\)'`
2124 VERSION_PATCH=`expr "$VERSION" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
2125 VERSION_COMMENT=\"`expr "$VERSION" : '[0-9]*\.[0-9]*\.[0-9]*\(.*\)'`\"
2126
2127
2128 VERSION_SUFFIX="$VERSION"
2129
2130
2131
2132
2133
2134
2135 SYSPATH="/bin:/usr/bin:/sbin:/usr/sbin:/opt/SUNWspro/bin:/usr/ucb:/usr/bsd:/etc:/usr/etc"
2136 LOCPATH=`(
2137     test "x$prefix" = xNONE && prefix=$ac_default_prefix
2138     test "x$exec_prefix" = xNONE && exec_prefix=${prefix}
2139     eval echo "$libexecdir:$PATH:/usr/local/sbin:/usr/local/bin:/usr/ccs/bin"
2140 )`
2141 SYSLOCPATH="$SYSPATH:$LOCPATH"
2142 LOCSYSPATH="$LOCPATH:$SYSPATH"
2143
2144
2145
2146 # Check whether --with-cflags or --without-cflags was given.
2147 if test "${with_cflags+set}" = set; then
2148   withval="$with_cflags"
2149
2150         case "$withval" in
2151         "" | y | ye | yes | n | no)
2152             { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-cflags option." >&5
2153 echo "$as_me: error: *** You must supply an argument to the --with-cflags option." >&2;}
2154    { (exit 1); exit 1; }; }
2155             ;;
2156         esac
2157         CFLAGS="$withval"
2158
2159 fi;
2160
2161 CFLAGS="-D_GNU_SOURCE $CFLAGS"
2162
2163 ac_ext=c
2164 ac_cpp='$CPP $CPPFLAGS'
2165 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2166 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2167 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2168 if test -n "$ac_tool_prefix"; then
2169   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2170 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2171 echo "$as_me:$LINENO: checking for $ac_word" >&5
2172 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2173 if test "${ac_cv_prog_CC+set}" = set; then
2174   echo $ECHO_N "(cached) $ECHO_C" >&6
2175 else
2176   if test -n "$CC"; then
2177   ac_cv_prog_CC="$CC" # Let the user override the test.
2178 else
2179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2180 for as_dir in $PATH
2181 do
2182   IFS=$as_save_IFS
2183   test -z "$as_dir" && as_dir=.
2184   for ac_exec_ext in '' $ac_executable_extensions; do
2185   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2186     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2187     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2188     break 2
2189   fi
2190 done
2191 done
2192
2193 fi
2194 fi
2195 CC=$ac_cv_prog_CC
2196 if test -n "$CC"; then
2197   echo "$as_me:$LINENO: result: $CC" >&5
2198 echo "${ECHO_T}$CC" >&6
2199 else
2200   echo "$as_me:$LINENO: result: no" >&5
2201 echo "${ECHO_T}no" >&6
2202 fi
2203
2204 fi
2205 if test -z "$ac_cv_prog_CC"; then
2206   ac_ct_CC=$CC
2207   # Extract the first word of "gcc", so it can be a program name with args.
2208 set dummy gcc; ac_word=$2
2209 echo "$as_me:$LINENO: checking for $ac_word" >&5
2210 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2211 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2212   echo $ECHO_N "(cached) $ECHO_C" >&6
2213 else
2214   if test -n "$ac_ct_CC"; then
2215   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2216 else
2217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2218 for as_dir in $PATH
2219 do
2220   IFS=$as_save_IFS
2221   test -z "$as_dir" && as_dir=.
2222   for ac_exec_ext in '' $ac_executable_extensions; do
2223   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2224     ac_cv_prog_ac_ct_CC="gcc"
2225     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2226     break 2
2227   fi
2228 done
2229 done
2230
2231 fi
2232 fi
2233 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2234 if test -n "$ac_ct_CC"; then
2235   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2236 echo "${ECHO_T}$ac_ct_CC" >&6
2237 else
2238   echo "$as_me:$LINENO: result: no" >&5
2239 echo "${ECHO_T}no" >&6
2240 fi
2241
2242   CC=$ac_ct_CC
2243 else
2244   CC="$ac_cv_prog_CC"
2245 fi
2246
2247 if test -z "$CC"; then
2248   if test -n "$ac_tool_prefix"; then
2249   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2250 set dummy ${ac_tool_prefix}cc; ac_word=$2
2251 echo "$as_me:$LINENO: checking for $ac_word" >&5
2252 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2253 if test "${ac_cv_prog_CC+set}" = set; then
2254   echo $ECHO_N "(cached) $ECHO_C" >&6
2255 else
2256   if test -n "$CC"; then
2257   ac_cv_prog_CC="$CC" # Let the user override the test.
2258 else
2259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2260 for as_dir in $PATH
2261 do
2262   IFS=$as_save_IFS
2263   test -z "$as_dir" && as_dir=.
2264   for ac_exec_ext in '' $ac_executable_extensions; do
2265   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2266     ac_cv_prog_CC="${ac_tool_prefix}cc"
2267     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2268     break 2
2269   fi
2270 done
2271 done
2272
2273 fi
2274 fi
2275 CC=$ac_cv_prog_CC
2276 if test -n "$CC"; then
2277   echo "$as_me:$LINENO: result: $CC" >&5
2278 echo "${ECHO_T}$CC" >&6
2279 else
2280   echo "$as_me:$LINENO: result: no" >&5
2281 echo "${ECHO_T}no" >&6
2282 fi
2283
2284 fi
2285 if test -z "$ac_cv_prog_CC"; then
2286   ac_ct_CC=$CC
2287   # Extract the first word of "cc", so it can be a program name with args.
2288 set dummy cc; ac_word=$2
2289 echo "$as_me:$LINENO: checking for $ac_word" >&5
2290 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2291 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2292   echo $ECHO_N "(cached) $ECHO_C" >&6
2293 else
2294   if test -n "$ac_ct_CC"; then
2295   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2296 else
2297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2298 for as_dir in $PATH
2299 do
2300   IFS=$as_save_IFS
2301   test -z "$as_dir" && as_dir=.
2302   for ac_exec_ext in '' $ac_executable_extensions; do
2303   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2304     ac_cv_prog_ac_ct_CC="cc"
2305     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2306     break 2
2307   fi
2308 done
2309 done
2310
2311 fi
2312 fi
2313 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2314 if test -n "$ac_ct_CC"; then
2315   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2316 echo "${ECHO_T}$ac_ct_CC" >&6
2317 else
2318   echo "$as_me:$LINENO: result: no" >&5
2319 echo "${ECHO_T}no" >&6
2320 fi
2321
2322   CC=$ac_ct_CC
2323 else
2324   CC="$ac_cv_prog_CC"
2325 fi
2326
2327 fi
2328 if test -z "$CC"; then
2329   # Extract the first word of "cc", so it can be a program name with args.
2330 set dummy cc; ac_word=$2
2331 echo "$as_me:$LINENO: checking for $ac_word" >&5
2332 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2333 if test "${ac_cv_prog_CC+set}" = set; then
2334   echo $ECHO_N "(cached) $ECHO_C" >&6
2335 else
2336   if test -n "$CC"; then
2337   ac_cv_prog_CC="$CC" # Let the user override the test.
2338 else
2339   ac_prog_rejected=no
2340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2341 for as_dir in $PATH
2342 do
2343   IFS=$as_save_IFS
2344   test -z "$as_dir" && as_dir=.
2345   for ac_exec_ext in '' $ac_executable_extensions; do
2346   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2347     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2348        ac_prog_rejected=yes
2349        continue
2350      fi
2351     ac_cv_prog_CC="cc"
2352     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2353     break 2
2354   fi
2355 done
2356 done
2357
2358 if test $ac_prog_rejected = yes; then
2359   # We found a bogon in the path, so make sure we never use it.
2360   set dummy $ac_cv_prog_CC
2361   shift
2362   if test $# != 0; then
2363     # We chose a different compiler from the bogus one.
2364     # However, it has the same basename, so the bogon will be chosen
2365     # first if we set CC to just the basename; use the full file name.
2366     shift
2367     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2368   fi
2369 fi
2370 fi
2371 fi
2372 CC=$ac_cv_prog_CC
2373 if test -n "$CC"; then
2374   echo "$as_me:$LINENO: result: $CC" >&5
2375 echo "${ECHO_T}$CC" >&6
2376 else
2377   echo "$as_me:$LINENO: result: no" >&5
2378 echo "${ECHO_T}no" >&6
2379 fi
2380
2381 fi
2382 if test -z "$CC"; then
2383   if test -n "$ac_tool_prefix"; then
2384   for ac_prog in cl
2385   do
2386     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2387 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2388 echo "$as_me:$LINENO: checking for $ac_word" >&5
2389 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2390 if test "${ac_cv_prog_CC+set}" = set; then
2391   echo $ECHO_N "(cached) $ECHO_C" >&6
2392 else
2393   if test -n "$CC"; then
2394   ac_cv_prog_CC="$CC" # Let the user override the test.
2395 else
2396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2397 for as_dir in $PATH
2398 do
2399   IFS=$as_save_IFS
2400   test -z "$as_dir" && as_dir=.
2401   for ac_exec_ext in '' $ac_executable_extensions; do
2402   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2403     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2404     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2405     break 2
2406   fi
2407 done
2408 done
2409
2410 fi
2411 fi
2412 CC=$ac_cv_prog_CC
2413 if test -n "$CC"; then
2414   echo "$as_me:$LINENO: result: $CC" >&5
2415 echo "${ECHO_T}$CC" >&6
2416 else
2417   echo "$as_me:$LINENO: result: no" >&5
2418 echo "${ECHO_T}no" >&6
2419 fi
2420
2421     test -n "$CC" && break
2422   done
2423 fi
2424 if test -z "$CC"; then
2425   ac_ct_CC=$CC
2426   for ac_prog in cl
2427 do
2428   # Extract the first word of "$ac_prog", so it can be a program name with args.
2429 set dummy $ac_prog; ac_word=$2
2430 echo "$as_me:$LINENO: checking for $ac_word" >&5
2431 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2432 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2433   echo $ECHO_N "(cached) $ECHO_C" >&6
2434 else
2435   if test -n "$ac_ct_CC"; then
2436   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2437 else
2438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2439 for as_dir in $PATH
2440 do
2441   IFS=$as_save_IFS
2442   test -z "$as_dir" && as_dir=.
2443   for ac_exec_ext in '' $ac_executable_extensions; do
2444   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2445     ac_cv_prog_ac_ct_CC="$ac_prog"
2446     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2447     break 2
2448   fi
2449 done
2450 done
2451
2452 fi
2453 fi
2454 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2455 if test -n "$ac_ct_CC"; then
2456   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2457 echo "${ECHO_T}$ac_ct_CC" >&6
2458 else
2459   echo "$as_me:$LINENO: result: no" >&5
2460 echo "${ECHO_T}no" >&6
2461 fi
2462
2463   test -n "$ac_ct_CC" && break
2464 done
2465
2466   CC=$ac_ct_CC
2467 fi
2468
2469 fi
2470
2471
2472 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2473 See \`config.log' for more details." >&5
2474 echo "$as_me: error: no acceptable C compiler found in \$PATH
2475 See \`config.log' for more details." >&2;}
2476    { (exit 1); exit 1; }; }
2477
2478 # Provide some information about the compiler.
2479 echo "$as_me:$LINENO:" \
2480      "checking for C compiler version" >&5
2481 ac_compiler=`set X $ac_compile; echo $2`
2482 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2483   (eval $ac_compiler --version </dev/null >&5) 2>&5
2484   ac_status=$?
2485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2486   (exit $ac_status); }
2487 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2488   (eval $ac_compiler -v </dev/null >&5) 2>&5
2489   ac_status=$?
2490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2491   (exit $ac_status); }
2492 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2493   (eval $ac_compiler -V </dev/null >&5) 2>&5
2494   ac_status=$?
2495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2496   (exit $ac_status); }
2497
2498 cat >conftest.$ac_ext <<_ACEOF
2499 /* confdefs.h.  */
2500 _ACEOF
2501 cat confdefs.h >>conftest.$ac_ext
2502 cat >>conftest.$ac_ext <<_ACEOF
2503 /* end confdefs.h.  */
2504
2505 int
2506 main ()
2507 {
2508
2509   ;
2510   return 0;
2511 }
2512 _ACEOF
2513 ac_clean_files_save=$ac_clean_files
2514 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2515 # Try to create an executable without -o first, disregard a.out.
2516 # It will help us diagnose broken compilers, and finding out an intuition
2517 # of exeext.
2518 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2519 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2520 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2521 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2522   (eval $ac_link_default) 2>&5
2523   ac_status=$?
2524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2525   (exit $ac_status); }; then
2526   # Find the output, starting from the most likely.  This scheme is
2527 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2528 # resort.
2529
2530 # Be careful to initialize this variable, since it used to be cached.
2531 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2532 ac_cv_exeext=
2533 # b.out is created by i960 compilers.
2534 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2535 do
2536   test -f "$ac_file" || continue
2537   case $ac_file in
2538     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2539         ;;
2540     conftest.$ac_ext )
2541         # This is the source file.
2542         ;;
2543     [ab].out )
2544         # We found the default executable, but exeext='' is most
2545         # certainly right.
2546         break;;
2547     *.* )
2548         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2549         # FIXME: I believe we export ac_cv_exeext for Libtool,
2550         # but it would be cool to find out if it's true.  Does anybody
2551         # maintain Libtool? --akim.
2552         export ac_cv_exeext
2553         break;;
2554     * )
2555         break;;
2556   esac
2557 done
2558 else
2559   echo "$as_me: failed program was:" >&5
2560 sed 's/^/| /' conftest.$ac_ext >&5
2561
2562 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2563 See \`config.log' for more details." >&5
2564 echo "$as_me: error: C compiler cannot create executables
2565 See \`config.log' for more details." >&2;}
2566    { (exit 77); exit 77; }; }
2567 fi
2568
2569 ac_exeext=$ac_cv_exeext
2570 echo "$as_me:$LINENO: result: $ac_file" >&5
2571 echo "${ECHO_T}$ac_file" >&6
2572
2573 # Check the compiler produces executables we can run.  If not, either
2574 # the compiler is broken, or we cross compile.
2575 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2576 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2577 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2578 # If not cross compiling, check that we can run a simple program.
2579 if test "$cross_compiling" != yes; then
2580   if { ac_try='./$ac_file'
2581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2582   (eval $ac_try) 2>&5
2583   ac_status=$?
2584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2585   (exit $ac_status); }; }; then
2586     cross_compiling=no
2587   else
2588     if test "$cross_compiling" = maybe; then
2589         cross_compiling=yes
2590     else
2591         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2592 If you meant to cross compile, use \`--host'.
2593 See \`config.log' for more details." >&5
2594 echo "$as_me: error: cannot run C compiled programs.
2595 If you meant to cross compile, use \`--host'.
2596 See \`config.log' for more details." >&2;}
2597    { (exit 1); exit 1; }; }
2598     fi
2599   fi
2600 fi
2601 echo "$as_me:$LINENO: result: yes" >&5
2602 echo "${ECHO_T}yes" >&6
2603
2604 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2605 ac_clean_files=$ac_clean_files_save
2606 # Check the compiler produces executables we can run.  If not, either
2607 # the compiler is broken, or we cross compile.
2608 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2609 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2610 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2611 echo "${ECHO_T}$cross_compiling" >&6
2612
2613 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2614 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2615 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2616   (eval $ac_link) 2>&5
2617   ac_status=$?
2618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619   (exit $ac_status); }; then
2620   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2621 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2622 # work properly (i.e., refer to `conftest.exe'), while it won't with
2623 # `rm'.
2624 for ac_file in conftest.exe conftest conftest.*; do
2625   test -f "$ac_file" || continue
2626   case $ac_file in
2627     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2628     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2629           export ac_cv_exeext
2630           break;;
2631     * ) break;;
2632   esac
2633 done
2634 else
2635   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2636 See \`config.log' for more details." >&5
2637 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2638 See \`config.log' for more details." >&2;}
2639    { (exit 1); exit 1; }; }
2640 fi
2641
2642 rm -f conftest$ac_cv_exeext
2643 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2644 echo "${ECHO_T}$ac_cv_exeext" >&6
2645
2646 rm -f conftest.$ac_ext
2647 EXEEXT=$ac_cv_exeext
2648 ac_exeext=$EXEEXT
2649 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2650 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2651 if test "${ac_cv_objext+set}" = set; then
2652   echo $ECHO_N "(cached) $ECHO_C" >&6
2653 else
2654   cat >conftest.$ac_ext <<_ACEOF
2655 /* confdefs.h.  */
2656 _ACEOF
2657 cat confdefs.h >>conftest.$ac_ext
2658 cat >>conftest.$ac_ext <<_ACEOF
2659 /* end confdefs.h.  */
2660
2661 int
2662 main ()
2663 {
2664
2665   ;
2666   return 0;
2667 }
2668 _ACEOF
2669 rm -f conftest.o conftest.obj
2670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2671   (eval $ac_compile) 2>&5
2672   ac_status=$?
2673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2674   (exit $ac_status); }; then
2675   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2676   case $ac_file in
2677     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2678     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2679        break;;
2680   esac
2681 done
2682 else
2683   echo "$as_me: failed program was:" >&5
2684 sed 's/^/| /' conftest.$ac_ext >&5
2685
2686 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2687 See \`config.log' for more details." >&5
2688 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2689 See \`config.log' for more details." >&2;}
2690    { (exit 1); exit 1; }; }
2691 fi
2692
2693 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2694 fi
2695 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2696 echo "${ECHO_T}$ac_cv_objext" >&6
2697 OBJEXT=$ac_cv_objext
2698 ac_objext=$OBJEXT
2699 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2700 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2701 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2702   echo $ECHO_N "(cached) $ECHO_C" >&6
2703 else
2704   cat >conftest.$ac_ext <<_ACEOF
2705 /* confdefs.h.  */
2706 _ACEOF
2707 cat confdefs.h >>conftest.$ac_ext
2708 cat >>conftest.$ac_ext <<_ACEOF
2709 /* end confdefs.h.  */
2710
2711 int
2712 main ()
2713 {
2714 #ifndef __GNUC__
2715        choke me
2716 #endif
2717
2718   ;
2719   return 0;
2720 }
2721 _ACEOF
2722 rm -f conftest.$ac_objext
2723 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2724   (eval $ac_compile) 2>conftest.er1
2725   ac_status=$?
2726   grep -v '^ *+' conftest.er1 >conftest.err
2727   rm -f conftest.er1
2728   cat conftest.err >&5
2729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2730   (exit $ac_status); } &&
2731          { ac_try='test -z "$ac_c_werror_flag"
2732                          || test ! -s conftest.err'
2733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2734   (eval $ac_try) 2>&5
2735   ac_status=$?
2736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2737   (exit $ac_status); }; } &&
2738          { ac_try='test -s conftest.$ac_objext'
2739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2740   (eval $ac_try) 2>&5
2741   ac_status=$?
2742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2743   (exit $ac_status); }; }; then
2744   ac_compiler_gnu=yes
2745 else
2746   echo "$as_me: failed program was:" >&5
2747 sed 's/^/| /' conftest.$ac_ext >&5
2748
2749 ac_compiler_gnu=no
2750 fi
2751 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2752 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2753
2754 fi
2755 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2756 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2757 GCC=`test $ac_compiler_gnu = yes && echo yes`
2758 ac_test_CFLAGS=${CFLAGS+set}
2759 ac_save_CFLAGS=$CFLAGS
2760 CFLAGS="-g"
2761 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2762 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2763 if test "${ac_cv_prog_cc_g+set}" = set; then
2764   echo $ECHO_N "(cached) $ECHO_C" >&6
2765 else
2766   cat >conftest.$ac_ext <<_ACEOF
2767 /* confdefs.h.  */
2768 _ACEOF
2769 cat confdefs.h >>conftest.$ac_ext
2770 cat >>conftest.$ac_ext <<_ACEOF
2771 /* end confdefs.h.  */
2772
2773 int
2774 main ()
2775 {
2776
2777   ;
2778   return 0;
2779 }
2780 _ACEOF
2781 rm -f conftest.$ac_objext
2782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2783   (eval $ac_compile) 2>conftest.er1
2784   ac_status=$?
2785   grep -v '^ *+' conftest.er1 >conftest.err
2786   rm -f conftest.er1
2787   cat conftest.err >&5
2788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2789   (exit $ac_status); } &&
2790          { ac_try='test -z "$ac_c_werror_flag"
2791                          || test ! -s conftest.err'
2792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2793   (eval $ac_try) 2>&5
2794   ac_status=$?
2795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2796   (exit $ac_status); }; } &&
2797          { ac_try='test -s conftest.$ac_objext'
2798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2799   (eval $ac_try) 2>&5
2800   ac_status=$?
2801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2802   (exit $ac_status); }; }; then
2803   ac_cv_prog_cc_g=yes
2804 else
2805   echo "$as_me: failed program was:" >&5
2806 sed 's/^/| /' conftest.$ac_ext >&5
2807
2808 ac_cv_prog_cc_g=no
2809 fi
2810 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2811 fi
2812 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2813 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2814 if test "$ac_test_CFLAGS" = set; then
2815   CFLAGS=$ac_save_CFLAGS
2816 elif test $ac_cv_prog_cc_g = yes; then
2817   if test "$GCC" = yes; then
2818     CFLAGS="-g -O2"
2819   else
2820     CFLAGS="-g"
2821   fi
2822 else
2823   if test "$GCC" = yes; then
2824     CFLAGS="-O2"
2825   else
2826     CFLAGS=
2827   fi
2828 fi
2829 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2830 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2831 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2832   echo $ECHO_N "(cached) $ECHO_C" >&6
2833 else
2834   ac_cv_prog_cc_stdc=no
2835 ac_save_CC=$CC
2836 cat >conftest.$ac_ext <<_ACEOF
2837 /* confdefs.h.  */
2838 _ACEOF
2839 cat confdefs.h >>conftest.$ac_ext
2840 cat >>conftest.$ac_ext <<_ACEOF
2841 /* end confdefs.h.  */
2842 #include <stdarg.h>
2843 #include <stdio.h>
2844 #include <sys/types.h>
2845 #include <sys/stat.h>
2846 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2847 struct buf { int x; };
2848 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2849 static char *e (p, i)
2850      char **p;
2851      int i;
2852 {
2853   return p[i];
2854 }
2855 static char *f (char * (*g) (char **, int), char **p, ...)
2856 {
2857   char *s;
2858   va_list v;
2859   va_start (v,p);
2860   s = g (p, va_arg (v,int));
2861   va_end (v);
2862   return s;
2863 }
2864
2865 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2866    function prototypes and stuff, but not '\xHH' hex character constants.
2867    These don't provoke an error unfortunately, instead are silently treated
2868    as 'x'.  The following induces an error, until -std1 is added to get
2869    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2870    array size at least.  It's necessary to write '\x00'==0 to get something
2871    that's true only with -std1.  */
2872 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2873
2874 int test (int i, double x);
2875 struct s1 {int (*f) (int a);};
2876 struct s2 {int (*f) (double a);};
2877 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2878 int argc;
2879 char **argv;
2880 int
2881 main ()
2882 {
2883 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2884   ;
2885   return 0;
2886 }
2887 _ACEOF
2888 # Don't try gcc -ansi; that turns off useful extensions and
2889 # breaks some systems' header files.
2890 # AIX                   -qlanglvl=ansi
2891 # Ultrix and OSF/1      -std1
2892 # HP-UX 10.20 and later -Ae
2893 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2894 # SVR4                  -Xc -D__EXTENSIONS__
2895 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2896 do
2897   CC="$ac_save_CC $ac_arg"
2898   rm -f conftest.$ac_objext
2899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2900   (eval $ac_compile) 2>conftest.er1
2901   ac_status=$?
2902   grep -v '^ *+' conftest.er1 >conftest.err
2903   rm -f conftest.er1
2904   cat conftest.err >&5
2905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2906   (exit $ac_status); } &&
2907          { ac_try='test -z "$ac_c_werror_flag"
2908                          || test ! -s conftest.err'
2909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2910   (eval $ac_try) 2>&5
2911   ac_status=$?
2912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2913   (exit $ac_status); }; } &&
2914          { ac_try='test -s conftest.$ac_objext'
2915   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2916   (eval $ac_try) 2>&5
2917   ac_status=$?
2918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2919   (exit $ac_status); }; }; then
2920   ac_cv_prog_cc_stdc=$ac_arg
2921 break
2922 else
2923   echo "$as_me: failed program was:" >&5
2924 sed 's/^/| /' conftest.$ac_ext >&5
2925
2926 fi
2927 rm -f conftest.err conftest.$ac_objext
2928 done
2929 rm -f conftest.$ac_ext conftest.$ac_objext
2930 CC=$ac_save_CC
2931
2932 fi
2933
2934 case "x$ac_cv_prog_cc_stdc" in
2935   x|xno)
2936     echo "$as_me:$LINENO: result: none needed" >&5
2937 echo "${ECHO_T}none needed" >&6 ;;
2938   *)
2939     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2940 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2941     CC="$CC $ac_cv_prog_cc_stdc" ;;
2942 esac
2943
2944 # Some people use a C++ compiler to compile C.  Since we use `exit',
2945 # in C++ we need to declare it.  In case someone uses the same compiler
2946 # for both compiling C and C++ we need to have the C++ compiler decide
2947 # the declaration of exit, since it's the most demanding environment.
2948 cat >conftest.$ac_ext <<_ACEOF
2949 #ifndef __cplusplus
2950   choke me
2951 #endif
2952 _ACEOF
2953 rm -f conftest.$ac_objext
2954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2955   (eval $ac_compile) 2>conftest.er1
2956   ac_status=$?
2957   grep -v '^ *+' conftest.er1 >conftest.err
2958   rm -f conftest.er1
2959   cat conftest.err >&5
2960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2961   (exit $ac_status); } &&
2962          { ac_try='test -z "$ac_c_werror_flag"
2963                          || test ! -s conftest.err'
2964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2965   (eval $ac_try) 2>&5
2966   ac_status=$?
2967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2968   (exit $ac_status); }; } &&
2969          { ac_try='test -s conftest.$ac_objext'
2970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2971   (eval $ac_try) 2>&5
2972   ac_status=$?
2973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2974   (exit $ac_status); }; }; then
2975   for ac_declaration in \
2976    '' \
2977    'extern "C" void std::exit (int) throw (); using std::exit;' \
2978    'extern "C" void std::exit (int); using std::exit;' \
2979    'extern "C" void exit (int) throw ();' \
2980    'extern "C" void exit (int);' \
2981    'void exit (int);'
2982 do
2983   cat >conftest.$ac_ext <<_ACEOF
2984 /* confdefs.h.  */
2985 _ACEOF
2986 cat confdefs.h >>conftest.$ac_ext
2987 cat >>conftest.$ac_ext <<_ACEOF
2988 /* end confdefs.h.  */
2989 $ac_declaration
2990 #include <stdlib.h>
2991 int
2992 main ()
2993 {
2994 exit (42);
2995   ;
2996   return 0;
2997 }
2998 _ACEOF
2999 rm -f conftest.$ac_objext
3000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3001   (eval $ac_compile) 2>conftest.er1
3002   ac_status=$?
3003   grep -v '^ *+' conftest.er1 >conftest.err
3004   rm -f conftest.er1
3005   cat conftest.err >&5
3006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3007   (exit $ac_status); } &&
3008          { ac_try='test -z "$ac_c_werror_flag"
3009                          || test ! -s conftest.err'
3010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3011   (eval $ac_try) 2>&5
3012   ac_status=$?
3013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3014   (exit $ac_status); }; } &&
3015          { ac_try='test -s conftest.$ac_objext'
3016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3017   (eval $ac_try) 2>&5
3018   ac_status=$?
3019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3020   (exit $ac_status); }; }; then
3021   :
3022 else
3023   echo "$as_me: failed program was:" >&5
3024 sed 's/^/| /' conftest.$ac_ext >&5
3025
3026 continue
3027 fi
3028 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3029   cat >conftest.$ac_ext <<_ACEOF
3030 /* confdefs.h.  */
3031 _ACEOF
3032 cat confdefs.h >>conftest.$ac_ext
3033 cat >>conftest.$ac_ext <<_ACEOF
3034 /* end confdefs.h.  */
3035 $ac_declaration
3036 int
3037 main ()
3038 {
3039 exit (42);
3040   ;
3041   return 0;
3042 }
3043 _ACEOF
3044 rm -f conftest.$ac_objext
3045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3046   (eval $ac_compile) 2>conftest.er1
3047   ac_status=$?
3048   grep -v '^ *+' conftest.er1 >conftest.err
3049   rm -f conftest.er1
3050   cat conftest.err >&5
3051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3052   (exit $ac_status); } &&
3053          { ac_try='test -z "$ac_c_werror_flag"
3054                          || test ! -s conftest.err'
3055   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3056   (eval $ac_try) 2>&5
3057   ac_status=$?
3058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3059   (exit $ac_status); }; } &&
3060          { ac_try='test -s conftest.$ac_objext'
3061   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3062   (eval $ac_try) 2>&5
3063   ac_status=$?
3064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3065   (exit $ac_status); }; }; then
3066   break
3067 else
3068   echo "$as_me: failed program was:" >&5
3069 sed 's/^/| /' conftest.$ac_ext >&5
3070
3071 fi
3072 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3073 done
3074 rm -f conftest*
3075 if test -n "$ac_declaration"; then
3076   echo '#ifdef __cplusplus' >>confdefs.h
3077   echo $ac_declaration      >>confdefs.h
3078   echo '#endif'             >>confdefs.h
3079 fi
3080
3081 else
3082   echo "$as_me: failed program was:" >&5
3083 sed 's/^/| /' conftest.$ac_ext >&5
3084
3085 fi
3086 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3087 ac_ext=c
3088 ac_cpp='$CPP $CPPFLAGS'
3089 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3090 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3091 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3092 DEPDIR="${am__leading_dot}deps"
3093
3094           ac_config_commands="$ac_config_commands depfiles"
3095
3096
3097 am_make=${MAKE-make}
3098 cat > confinc << 'END'
3099 am__doit:
3100         @echo done
3101 .PHONY: am__doit
3102 END
3103 # If we don't find an include directive, just comment out the code.
3104 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3105 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3106 am__include="#"
3107 am__quote=
3108 _am_result=none
3109 # First try GNU make style include.
3110 echo "include confinc" > confmf
3111 # We grep out `Entering directory' and `Leaving directory'
3112 # messages which can occur if `w' ends up in MAKEFLAGS.
3113 # In particular we don't look at `^make:' because GNU make might
3114 # be invoked under some other name (usually "gmake"), in which
3115 # case it prints its new name instead of `make'.
3116 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3117    am__include=include
3118    am__quote=
3119    _am_result=GNU
3120 fi
3121 # Now try BSD make style include.
3122 if test "$am__include" = "#"; then
3123    echo '.include "confinc"' > confmf
3124    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3125       am__include=.include
3126       am__quote="\""
3127       _am_result=BSD
3128    fi
3129 fi
3130
3131
3132 echo "$as_me:$LINENO: result: $_am_result" >&5
3133 echo "${ECHO_T}$_am_result" >&6
3134 rm -f confinc confmf
3135
3136 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3137 if test "${enable_dependency_tracking+set}" = set; then
3138   enableval="$enable_dependency_tracking"
3139
3140 fi;
3141 if test "x$enable_dependency_tracking" != xno; then
3142   am_depcomp="$ac_aux_dir/depcomp"
3143   AMDEPBACKSLASH='\'
3144 fi
3145
3146
3147 if test "x$enable_dependency_tracking" != xno; then
3148   AMDEP_TRUE=
3149   AMDEP_FALSE='#'
3150 else
3151   AMDEP_TRUE='#'
3152   AMDEP_FALSE=
3153 fi
3154
3155
3156
3157
3158 depcc="$CC"   am_compiler_list=
3159
3160 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3161 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3162 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3163   echo $ECHO_N "(cached) $ECHO_C" >&6
3164 else
3165   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3166   # We make a subdir and do the tests there.  Otherwise we can end up
3167   # making bogus files that we don't know about and never remove.  For
3168   # instance it was reported that on HP-UX the gcc test will end up
3169   # making a dummy file named `D' -- because `-MD' means `put the output
3170   # in D'.
3171   mkdir conftest.dir
3172   # Copy depcomp to subdir because otherwise we won't find it if we're
3173   # using a relative directory.
3174   cp "$am_depcomp" conftest.dir
3175   cd conftest.dir
3176   # We will build objects and dependencies in a subdirectory because
3177   # it helps to detect inapplicable dependency modes.  For instance
3178   # both Tru64's cc and ICC support -MD to output dependencies as a
3179   # side effect of compilation, but ICC will put the dependencies in
3180   # the current directory while Tru64 will put them in the object
3181   # directory.
3182   mkdir sub
3183
3184   am_cv_CC_dependencies_compiler_type=none
3185   if test "$am_compiler_list" = ""; then
3186      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3187   fi
3188   for depmode in $am_compiler_list; do
3189     # Setup a source with many dependencies, because some compilers
3190     # like to wrap large dependency lists on column 80 (with \), and
3191     # we should not choose a depcomp mode which is confused by this.
3192     #
3193     # We need to recreate these files for each test, as the compiler may
3194     # overwrite some of them when testing with obscure command lines.
3195     # This happens at least with the AIX C compiler.
3196     : > sub/conftest.c
3197     for i in 1 2 3 4 5 6; do
3198       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3199       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3200       # Solaris 8's {/usr,}/bin/sh.
3201       touch sub/conftst$i.h
3202     done
3203     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3204
3205     case $depmode in
3206     nosideeffect)
3207       # after this tag, mechanisms are not by side-effect, so they'll
3208       # only be used when explicitly requested
3209       if test "x$enable_dependency_tracking" = xyes; then
3210         continue
3211       else
3212         break
3213       fi
3214       ;;
3215     none) break ;;
3216     esac
3217     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3218     # mode.  It turns out that the SunPro C++ compiler does not properly
3219     # handle `-M -o', and we need to detect this.
3220     if depmode=$depmode \
3221        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3222        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3223        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3224          >/dev/null 2>conftest.err &&
3225        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3226        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3227        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3228       # icc doesn't choke on unknown options, it will just issue warnings
3229       # or remarks (even with -Werror).  So we grep stderr for any message
3230       # that says an option was ignored or not supported.
3231       # When given -MP, icc 7.0 and 7.1 complain thusly:
3232       #   icc: Command line warning: ignoring option '-M'; no argument required
3233       # The diagnosis changed in icc 8.0:
3234       #   icc: Command line remark: option '-MP' not supported
3235       if (grep 'ignoring option' conftest.err ||
3236           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3237         am_cv_CC_dependencies_compiler_type=$depmode
3238         break
3239       fi
3240     fi
3241   done
3242
3243   cd ..
3244   rm -rf conftest.dir
3245 else
3246   am_cv_CC_dependencies_compiler_type=none
3247 fi
3248
3249 fi
3250 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3251 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3252 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3253
3254
3255
3256 if
3257   test "x$enable_dependency_tracking" != xno \
3258   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3259   am__fastdepCC_TRUE=
3260   am__fastdepCC_FALSE='#'
3261 else
3262   am__fastdepCC_TRUE='#'
3263   am__fastdepCC_FALSE=
3264 fi
3265
3266
3267
3268
3269
3270 # Check whether --enable-largefile or --disable-largefile was given.
3271 if test "${enable_largefile+set}" = set; then
3272   enableval="$enable_largefile"
3273
3274 fi;
3275 if test "$enable_largefile" != no; then
3276
3277   echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
3278 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
3279 if test "${ac_cv_sys_largefile_CC+set}" = set; then
3280   echo $ECHO_N "(cached) $ECHO_C" >&6
3281 else
3282   ac_cv_sys_largefile_CC=no
3283      if test "$GCC" != yes; then
3284        ac_save_CC=$CC
3285        while :; do
3286          # IRIX 6.2 and later do not support large files by default,
3287          # so use the C compiler's -n32 option if that helps.
3288          cat >conftest.$ac_ext <<_ACEOF
3289 /* confdefs.h.  */
3290 _ACEOF
3291 cat confdefs.h >>conftest.$ac_ext
3292 cat >>conftest.$ac_ext <<_ACEOF
3293 /* end confdefs.h.  */
3294 #include <sys/types.h>
3295  /* Check that off_t can represent 2**63 - 1 correctly.
3296     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3297     since some C++ compilers masquerading as C compilers
3298     incorrectly reject 9223372036854775807.  */
3299 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3300   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3301                        && LARGE_OFF_T % 2147483647 == 1)
3302                       ? 1 : -1];
3303 int
3304 main ()
3305 {
3306
3307   ;
3308   return 0;
3309 }
3310 _ACEOF
3311          rm -f conftest.$ac_objext
3312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3313   (eval $ac_compile) 2>conftest.er1
3314   ac_status=$?
3315   grep -v '^ *+' conftest.er1 >conftest.err
3316   rm -f conftest.er1
3317   cat conftest.err >&5
3318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3319   (exit $ac_status); } &&
3320          { ac_try='test -z "$ac_c_werror_flag"
3321                          || test ! -s conftest.err'
3322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3323   (eval $ac_try) 2>&5
3324   ac_status=$?
3325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3326   (exit $ac_status); }; } &&
3327          { ac_try='test -s conftest.$ac_objext'
3328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3329   (eval $ac_try) 2>&5
3330   ac_status=$?
3331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3332   (exit $ac_status); }; }; then
3333   break
3334 else
3335   echo "$as_me: failed program was:" >&5
3336 sed 's/^/| /' conftest.$ac_ext >&5
3337
3338 fi
3339 rm -f conftest.err conftest.$ac_objext
3340          CC="$CC -n32"
3341          rm -f conftest.$ac_objext
3342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3343   (eval $ac_compile) 2>conftest.er1
3344   ac_status=$?
3345   grep -v '^ *+' conftest.er1 >conftest.err
3346   rm -f conftest.er1
3347   cat conftest.err >&5
3348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3349   (exit $ac_status); } &&
3350          { ac_try='test -z "$ac_c_werror_flag"
3351                          || test ! -s conftest.err'
3352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3353   (eval $ac_try) 2>&5
3354   ac_status=$?
3355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3356   (exit $ac_status); }; } &&
3357          { ac_try='test -s conftest.$ac_objext'
3358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3359   (eval $ac_try) 2>&5
3360   ac_status=$?
3361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3362   (exit $ac_status); }; }; then
3363   ac_cv_sys_largefile_CC=' -n32'; break
3364 else
3365   echo "$as_me: failed program was:" >&5
3366 sed 's/^/| /' conftest.$ac_ext >&5
3367
3368 fi
3369 rm -f conftest.err conftest.$ac_objext
3370          break
3371        done
3372        CC=$ac_save_CC
3373        rm -f conftest.$ac_ext
3374     fi
3375 fi
3376 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
3377 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
3378   if test "$ac_cv_sys_largefile_CC" != no; then
3379     CC=$CC$ac_cv_sys_largefile_CC
3380   fi
3381
3382   echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3383 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
3384 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
3385   echo $ECHO_N "(cached) $ECHO_C" >&6
3386 else
3387   while :; do
3388   ac_cv_sys_file_offset_bits=no
3389   cat >conftest.$ac_ext <<_ACEOF
3390 /* confdefs.h.  */
3391 _ACEOF
3392 cat confdefs.h >>conftest.$ac_ext
3393 cat >>conftest.$ac_ext <<_ACEOF
3394 /* end confdefs.h.  */
3395 #include <sys/types.h>
3396  /* Check that off_t can represent 2**63 - 1 correctly.
3397     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3398     since some C++ compilers masquerading as C compilers
3399     incorrectly reject 9223372036854775807.  */
3400 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3401   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3402                        && LARGE_OFF_T % 2147483647 == 1)
3403                       ? 1 : -1];
3404 int
3405 main ()
3406 {
3407
3408   ;
3409   return 0;
3410 }
3411 _ACEOF
3412 rm -f conftest.$ac_objext
3413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3414   (eval $ac_compile) 2>conftest.er1
3415   ac_status=$?
3416   grep -v '^ *+' conftest.er1 >conftest.err
3417   rm -f conftest.er1
3418   cat conftest.err >&5
3419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3420   (exit $ac_status); } &&
3421          { ac_try='test -z "$ac_c_werror_flag"
3422                          || test ! -s conftest.err'
3423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3424   (eval $ac_try) 2>&5
3425   ac_status=$?
3426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3427   (exit $ac_status); }; } &&
3428          { ac_try='test -s conftest.$ac_objext'
3429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3430   (eval $ac_try) 2>&5
3431   ac_status=$?
3432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3433   (exit $ac_status); }; }; then
3434   break
3435 else
3436   echo "$as_me: failed program was:" >&5
3437 sed 's/^/| /' conftest.$ac_ext >&5
3438
3439 fi
3440 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3441   cat >conftest.$ac_ext <<_ACEOF
3442 /* confdefs.h.  */
3443 _ACEOF
3444 cat confdefs.h >>conftest.$ac_ext
3445 cat >>conftest.$ac_ext <<_ACEOF
3446 /* end confdefs.h.  */
3447 #define _FILE_OFFSET_BITS 64
3448 #include <sys/types.h>
3449  /* Check that off_t can represent 2**63 - 1 correctly.
3450     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3451     since some C++ compilers masquerading as C compilers
3452     incorrectly reject 9223372036854775807.  */
3453 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3454   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3455                        && LARGE_OFF_T % 2147483647 == 1)
3456                       ? 1 : -1];
3457 int
3458 main ()
3459 {
3460
3461   ;
3462   return 0;
3463 }
3464 _ACEOF
3465 rm -f conftest.$ac_objext
3466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3467   (eval $ac_compile) 2>conftest.er1
3468   ac_status=$?
3469   grep -v '^ *+' conftest.er1 >conftest.err
3470   rm -f conftest.er1
3471   cat conftest.err >&5
3472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3473   (exit $ac_status); } &&
3474          { ac_try='test -z "$ac_c_werror_flag"
3475                          || test ! -s conftest.err'
3476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3477   (eval $ac_try) 2>&5
3478   ac_status=$?
3479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3480   (exit $ac_status); }; } &&
3481          { ac_try='test -s conftest.$ac_objext'
3482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3483   (eval $ac_try) 2>&5
3484   ac_status=$?
3485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3486   (exit $ac_status); }; }; then
3487   ac_cv_sys_file_offset_bits=64; break
3488 else
3489   echo "$as_me: failed program was:" >&5
3490 sed 's/^/| /' conftest.$ac_ext >&5
3491
3492 fi
3493 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3494   break
3495 done
3496 fi
3497 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
3498 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
3499 if test "$ac_cv_sys_file_offset_bits" != no; then
3500
3501 cat >>confdefs.h <<_ACEOF
3502 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3503 _ACEOF
3504
3505 fi
3506 rm -f conftest*
3507   echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
3508 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
3509 if test "${ac_cv_sys_large_files+set}" = set; then
3510   echo $ECHO_N "(cached) $ECHO_C" >&6
3511 else
3512   while :; do
3513   ac_cv_sys_large_files=no
3514   cat >conftest.$ac_ext <<_ACEOF
3515 /* confdefs.h.  */
3516 _ACEOF
3517 cat confdefs.h >>conftest.$ac_ext
3518 cat >>conftest.$ac_ext <<_ACEOF
3519 /* end confdefs.h.  */
3520 #include <sys/types.h>
3521  /* Check that off_t can represent 2**63 - 1 correctly.
3522     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3523     since some C++ compilers masquerading as C compilers
3524     incorrectly reject 9223372036854775807.  */
3525 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3526   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3527                        && LARGE_OFF_T % 2147483647 == 1)
3528                       ? 1 : -1];
3529 int
3530 main ()
3531 {
3532
3533   ;
3534   return 0;
3535 }
3536 _ACEOF
3537 rm -f conftest.$ac_objext
3538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3539   (eval $ac_compile) 2>conftest.er1
3540   ac_status=$?
3541   grep -v '^ *+' conftest.er1 >conftest.err
3542   rm -f conftest.er1
3543   cat conftest.err >&5
3544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3545   (exit $ac_status); } &&
3546          { ac_try='test -z "$ac_c_werror_flag"
3547                          || test ! -s conftest.err'
3548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3549   (eval $ac_try) 2>&5
3550   ac_status=$?
3551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3552   (exit $ac_status); }; } &&
3553          { ac_try='test -s conftest.$ac_objext'
3554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3555   (eval $ac_try) 2>&5
3556   ac_status=$?
3557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3558   (exit $ac_status); }; }; then
3559   break
3560 else
3561   echo "$as_me: failed program was:" >&5
3562 sed 's/^/| /' conftest.$ac_ext >&5
3563
3564 fi
3565 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3566   cat >conftest.$ac_ext <<_ACEOF
3567 /* confdefs.h.  */
3568 _ACEOF
3569 cat confdefs.h >>conftest.$ac_ext
3570 cat >>conftest.$ac_ext <<_ACEOF
3571 /* end confdefs.h.  */
3572 #define _LARGE_FILES 1
3573 #include <sys/types.h>
3574  /* Check that off_t can represent 2**63 - 1 correctly.
3575     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3576     since some C++ compilers masquerading as C compilers
3577     incorrectly reject 9223372036854775807.  */
3578 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3579   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3580                        && LARGE_OFF_T % 2147483647 == 1)
3581                       ? 1 : -1];
3582 int
3583 main ()
3584 {
3585
3586   ;
3587   return 0;
3588 }
3589 _ACEOF
3590 rm -f conftest.$ac_objext
3591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3592   (eval $ac_compile) 2>conftest.er1
3593   ac_status=$?
3594   grep -v '^ *+' conftest.er1 >conftest.err
3595   rm -f conftest.er1
3596   cat conftest.err >&5
3597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3598   (exit $ac_status); } &&
3599          { ac_try='test -z "$ac_c_werror_flag"
3600                          || test ! -s conftest.err'
3601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3602   (eval $ac_try) 2>&5
3603   ac_status=$?
3604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3605   (exit $ac_status); }; } &&
3606          { ac_try='test -s conftest.$ac_objext'
3607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3608   (eval $ac_try) 2>&5
3609   ac_status=$?
3610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3611   (exit $ac_status); }; }; then
3612   ac_cv_sys_large_files=1; break
3613 else
3614   echo "$as_me: failed program was:" >&5
3615 sed 's/^/| /' conftest.$ac_ext >&5
3616
3617 fi
3618 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3619   break
3620 done
3621 fi
3622 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
3623 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
3624 if test "$ac_cv_sys_large_files" != no; then
3625
3626 cat >>confdefs.h <<_ACEOF
3627 #define _LARGE_FILES $ac_cv_sys_large_files
3628 _ACEOF
3629
3630 fi
3631 rm -f conftest*
3632 fi
3633
3634
3635 for ac_prog in grep
3636 do
3637   # Extract the first word of "$ac_prog", so it can be a program name with args.
3638 set dummy $ac_prog; ac_word=$2
3639 echo "$as_me:$LINENO: checking for $ac_word" >&5
3640 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3641 if test "${ac_cv_path_GREP+set}" = set; then
3642   echo $ECHO_N "(cached) $ECHO_C" >&6
3643 else
3644   case $GREP in
3645   [\\/]* | ?:[\\/]*)
3646   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
3647   ;;
3648   *)
3649   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3650 for as_dir in $LOCSYSPATH
3651 do
3652   IFS=$as_save_IFS
3653   test -z "$as_dir" && as_dir=.
3654   for ac_exec_ext in '' $ac_executable_extensions; do
3655   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3656     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
3657     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3658     break 2
3659   fi
3660 done
3661 done
3662
3663   ;;
3664 esac
3665 fi
3666 GREP=$ac_cv_path_GREP
3667
3668 if test -n "$GREP"; then
3669   echo "$as_me:$LINENO: result: $GREP" >&5
3670 echo "${ECHO_T}$GREP" >&6
3671 else
3672   echo "$as_me:$LINENO: result: no" >&5
3673 echo "${ECHO_T}no" >&6
3674 fi
3675
3676   test -n "$GREP" && break
3677 done
3678
3679 if test -z "$GREP"; then
3680     GREP=grep
3681 fi
3682
3683 cat >>confdefs.h <<_ACEOF
3684 #define GREP "$GREP"
3685 _ACEOF
3686
3687 for ac_prog in egrep
3688 do
3689   # Extract the first word of "$ac_prog", so it can be a program name with args.
3690 set dummy $ac_prog; ac_word=$2
3691 echo "$as_me:$LINENO: checking for $ac_word" >&5
3692 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3693 if test "${ac_cv_path_EGREP+set}" = set; then
3694   echo $ECHO_N "(cached) $ECHO_C" >&6
3695 else
3696   case $EGREP in
3697   [\\/]* | ?:[\\/]*)
3698   ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
3699   ;;
3700   *)
3701   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3702 for as_dir in $LOCSYSPATH
3703 do
3704   IFS=$as_save_IFS
3705   test -z "$as_dir" && as_dir=.
3706   for ac_exec_ext in '' $ac_executable_extensions; do
3707   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3708     ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext"
3709     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3710     break 2
3711   fi
3712 done
3713 done
3714
3715   ;;
3716 esac
3717 fi
3718 EGREP=$ac_cv_path_EGREP
3719
3720 if test -n "$EGREP"; then
3721   echo "$as_me:$LINENO: result: $EGREP" >&5
3722 echo "${ECHO_T}$EGREP" >&6
3723 else
3724   echo "$as_me:$LINENO: result: no" >&5
3725 echo "${ECHO_T}no" >&6
3726 fi
3727
3728   test -n "$EGREP" && break
3729 done
3730
3731
3732 for ac_prog in lint
3733 do
3734   # Extract the first word of "$ac_prog", so it can be a program name with args.
3735 set dummy $ac_prog; ac_word=$2
3736 echo "$as_me:$LINENO: checking for $ac_word" >&5
3737 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3738 if test "${ac_cv_path_AMLINT+set}" = set; then
3739   echo $ECHO_N "(cached) $ECHO_C" >&6
3740 else
3741   case $AMLINT in
3742   [\\/]* | ?:[\\/]*)
3743   ac_cv_path_AMLINT="$AMLINT" # Let the user override the test with a path.
3744   ;;
3745   *)
3746   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3747 as_dummy="/opt/SUNWspro/bin:$SYSLOCPATH"
3748 for as_dir in $as_dummy
3749 do
3750   IFS=$as_save_IFS
3751   test -z "$as_dir" && as_dir=.
3752   for ac_exec_ext in '' $ac_executable_extensions; do
3753   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3754     ac_cv_path_AMLINT="$as_dir/$ac_word$ac_exec_ext"
3755     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3756     break 2
3757   fi
3758 done
3759 done
3760
3761   ;;
3762 esac
3763 fi
3764 AMLINT=$ac_cv_path_AMLINT
3765
3766 if test -n "$AMLINT"; then
3767   echo "$as_me:$LINENO: result: $AMLINT" >&5
3768 echo "${ECHO_T}$AMLINT" >&6
3769 else
3770   echo "$as_me:$LINENO: result: no" >&5
3771 echo "${ECHO_T}no" >&6
3772 fi
3773
3774   test -n "$AMLINT" && break
3775 done
3776
3777 if test ! -z "$AMLINT"; then
3778   $AMLINT -flags | $GREP -- '-errfmt=' 2>&1 > /dev/null
3779   if test $? -eq 0; then
3780     AMLINTFLAGS="-n -s -u -m -x"
3781     AMLINTFLAGS="$AMLINTFLAGS -errchk=%all"
3782     AMLINTFLAGS="$AMLINTFLAGS -errfmt=macro"
3783     AMLINTFLAGS="$AMLINTFLAGS -errhdr=no%/usr/include"
3784     AMLINTFLAGS="$AMLINTFLAGS -errhdr=%user"
3785     AMLINTFLAGS="$AMLINTFLAGS -errsecurity=extended"
3786     AMLINTFLAGS="$AMLINTFLAGS -errtags=yes"
3787     AMLINTFLAGS="$AMLINTFLAGS -Ncheck=%all"
3788     AMLINTFLAGS="$AMLINTFLAGS -Nlevel=2"
3789     AMLINTFLAGS="$AMLINTFLAGS -erroff=E_ASGN_NEVER_USED"
3790     AMLINTFLAGS="$AMLINTFLAGS,E_ASGN_RESET"
3791     AMLINTFLAGS="$AMLINTFLAGS,E_CAST_INT_CONST_TO_SMALL_INT"
3792     AMLINTFLAGS="$AMLINTFLAGS,E_CAST_INT_TO_SMALL_INT"
3793     AMLINTFLAGS="$AMLINTFLAGS,E_CAST_UINT_TO_SIGNED_INT"
3794     AMLINTFLAGS="$AMLINTFLAGS,E_CONSTANT_CONDITION"
3795     AMLINTFLAGS="$AMLINTFLAGS,E_ENUM_UNUSE"
3796     AMLINTFLAGS="$AMLINTFLAGS,E_EXPR_NULL_EFFECT"
3797     AMLINTFLAGS="$AMLINTFLAGS,E_FUNC_RET_ALWAYS_IGNOR"
3798     AMLINTFLAGS="$AMLINTFLAGS,E_FUNC_RET_MAYBE_IGNORED"
3799     AMLINTFLAGS="$AMLINTFLAGS,E_H_C_CHECK0"
3800     AMLINTFLAGS="$AMLINTFLAGS,E_H_C_CHECK1"
3801     AMLINTFLAGS="$AMLINTFLAGS,E_H_C_CHECK2"
3802     AMLINTFLAGS="$AMLINTFLAGS,E_INCL_MNUSD"
3803     AMLINTFLAGS="$AMLINTFLAGS,E_INCL_NUSD"
3804     AMLINTFLAGS="$AMLINTFLAGS,E_MCR_NODIFF"
3805     AMLINTFLAGS="$AMLINTFLAGS,E_NAME_MULTIPLY_DEF"
3806     AMLINTFLAGS="$AMLINTFLAGS,E_P_REF_NULL_PSBL"
3807     AMLINTFLAGS="$AMLINTFLAGS,E_P_REF_SUSP"
3808     AMLINTFLAGS="$AMLINTFLAGS,E_PTRDIFF_OVERFLOW"
3809     AMLINTFLAGS="$AMLINTFLAGS,E_P_USE_NULL_PSBL"
3810     AMLINTFLAGS="$AMLINTFLAGS,E_P_USE_SUSP"
3811     AMLINTFLAGS="$AMLINTFLAGS,E_SEC_ACCESS_WARN"
3812     AMLINTFLAGS="$AMLINTFLAGS,E_SEC_CHDIR_WARN"
3813     AMLINTFLAGS="$AMLINTFLAGS,E_SEC_CHMOD_WARN"
3814     AMLINTFLAGS="$AMLINTFLAGS,E_SEC_CREAT_WITHOUT_EXCL"
3815     AMLINTFLAGS="$AMLINTFLAGS,E_SEC_EXEC_PATH"
3816     AMLINTFLAGS="$AMLINTFLAGS,E_SEC_EXEC_WARN"
3817     AMLINTFLAGS="$AMLINTFLAGS,E_SEC_FOPEN_MODE"
3818     AMLINTFLAGS="$AMLINTFLAGS,E_SEC_GETENV_WARN"
3819     AMLINTFLAGS="$AMLINTFLAGS,E_SEC_MKDIR_WARN"
3820     AMLINTFLAGS="$AMLINTFLAGS,E_SEC_PRINTF_VAR_FMT"
3821     AMLINTFLAGS="$AMLINTFLAGS,E_SEC_RAND_WARN"
3822     AMLINTFLAGS="$AMLINTFLAGS,E_SEC_SCANF_VAR_FMT"
3823     AMLINTFLAGS="$AMLINTFLAGS,E_SEC_SELECT_WARN"
3824     AMLINTFLAGS="$AMLINTFLAGS,E_SEC_SHELL_WARN"
3825     AMLINTFLAGS="$AMLINTFLAGS,E_SEC_STRNCPY_WARN"
3826     AMLINTFLAGS="$AMLINTFLAGS,E_SEC_UMASK_WARN"
3827     AMLINTFLAGS="$AMLINTFLAGS,E_SEC_USE_AFTER_STAT"
3828     AMLINTFLAGS="$AMLINTFLAGS,E_SIGN_EXTENSION_PSBL"
3829     AMLINTFLAGS="$AMLINTFLAGS,E_TYPEDEF_UNUSE"
3830     AMLINTFLAGS="$AMLINTFLAGS,E_UNCAL_F"
3831   else
3832     AMLINTFLAGS=""
3833   fi
3834 else
3835   for ac_prog in splint
3836 do
3837   # Extract the first word of "$ac_prog", so it can be a program name with args.
3838 set dummy $ac_prog; ac_word=$2
3839 echo "$as_me:$LINENO: checking for $ac_word" >&5
3840 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3841 if test "${ac_cv_path_AMLINT+set}" = set; then
3842   echo $ECHO_N "(cached) $ECHO_C" >&6
3843 else
3844   case $AMLINT in
3845   [\\/]* | ?:[\\/]*)
3846   ac_cv_path_AMLINT="$AMLINT" # Let the user override the test with a path.
3847   ;;
3848   *)
3849   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3850 for as_dir in $SYSLOCPATH
3851 do
3852   IFS=$as_save_IFS
3853   test -z "$as_dir" && as_dir=.
3854   for ac_exec_ext in '' $ac_executable_extensions; do
3855   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3856     ac_cv_path_AMLINT="$as_dir/$ac_word$ac_exec_ext"
3857     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3858     break 2
3859   fi
3860 done
3861 done
3862
3863   ;;
3864 esac
3865 fi
3866 AMLINT=$ac_cv_path_AMLINT
3867
3868 if test -n "$AMLINT"; then
3869   echo "$as_me:$LINENO: result: $AMLINT" >&5
3870 echo "${ECHO_T}$AMLINT" >&6
3871 else
3872   echo "$as_me:$LINENO: result: no" >&5
3873 echo "${ECHO_T}no" >&6
3874 fi
3875
3876   test -n "$AMLINT" && break
3877 done
3878
3879   if test ! -z "$AMLINT"; then
3880     AMLINT="splint"
3881   fi
3882   AMLINTFLAGS='+show-scan +unixlib -weak -globs +usedef +usereleased +impouts -paramimptemp -varuse -warnposix -redef -preproc -fixedformalarray -retval -unrecog -usevarargs -formatcode'
3883 fi
3884
3885
3886
3887 # Check whether --with-includes or --without-includes was given.
3888 if test "${with_includes+set}" = set; then
3889   withval="$with_includes"
3890
3891         case "$withval" in
3892         "" | y | ye | yes | n | no)
3893             { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-includes option." >&5
3894 echo "$as_me: error: *** You must supply an argument to the --with-includes option." >&2;}
3895    { (exit 1); exit 1; }; }
3896           ;;
3897         esac
3898         INCLUDE_DIRS="$withval"
3899
3900 fi;
3901
3902 if test "$INCLUDE_DIRS"; then
3903         for dir in $INCLUDE_DIRS; do
3904             if test -d "$dir"; then
3905                 AMANDA_CPPFLAGS="$AMANDA_CPPFLAGS -I$dir"
3906             else
3907                 { echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
3908 echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
3909             fi
3910         done
3911 fi
3912
3913
3914 # Check whether --with-libraries or --without-libraries was given.
3915 if test "${with_libraries+set}" = set; then
3916   withval="$with_libraries"
3917
3918         case "$withval" in
3919         "" | y | ye | yes | n | no)
3920             { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-libraries option." >&5
3921 echo "$as_me: error: *** You must supply an argument to the --with-libraries option." >&2;}
3922    { (exit 1); exit 1; }; }
3923           ;;
3924         esac
3925         LIBRARY_DIRS="$withval"
3926
3927 fi;
3928
3929 if test "$LIBRARY_DIRS"; then
3930         for dir in $LIBRARY_DIRS; do
3931             if test -d "$dir"; then
3932                 case "$target" in
3933                   *-solaris2*,*-netbsd*)
3934                         AMANDA_LDFLAGS="$AMANDA_LDFLAGS -R$dir"
3935                         ;;
3936                 esac
3937                 AMANDA_LDFLAGS="$AMANDA_LDFLAGS -L$dir"
3938             else
3939                 { echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
3940 echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
3941             fi
3942         done
3943 fi
3944
3945
3946
3947 # Check whether --with-dumperdir or --without-dumperdir was given.
3948 if test "${with_dumperdir+set}" = set; then
3949   withval="$with_dumperdir"
3950
3951         case "$withval" in
3952         "" | y | ye | yes | n | no)
3953             { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-dumperdir option." >&5
3954 echo "$as_me: error: *** You must supply an argument to the --with-dumperdir option." >&2;}
3955    { (exit 1); exit 1; }; }
3956           ;;
3957         esac
3958         DUMPER_DIR="$withval"
3959
3960 else
3961
3962         test "x$prefix" = xNONE && prefix=$ac_default_prefix
3963         test "x$exec_prefix" = xNONE && exec_prefix=${prefix}
3964         DUMPER_DIR=$exec_prefix/dumper
3965
3966
3967 fi;
3968 DUMPER_DIR=`(
3969     test "x$prefix" = xNONE && prefix=$ac_default_prefix
3970     test "x$exec_prefix" = xNONE && exec_prefix=${prefix}
3971     eval echo "$DUMPER_DIR"
3972 )`
3973
3974 cat >>confdefs.h <<_ACEOF
3975 #define DUMPER_DIR "$DUMPER_DIR"
3976 _ACEOF
3977
3978
3979
3980
3981 # Check whether --with-configdir or --without-configdir was given.
3982 if test "${with_configdir+set}" = set; then
3983   withval="$with_configdir"
3984
3985         case "$withval" in
3986         "" | y | ye | yes | n | no)
3987             { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-configdir option." >&5
3988 echo "$as_me: error: *** You must supply an argument to the --with-configdir option." >&2;}
3989    { (exit 1); exit 1; }; }
3990           ;;
3991         *) CONFIG_DIR="$withval"
3992           ;;
3993         esac
3994
3995 else
3996   : ${CONFIG_DIR="$sysconfdir/amanda"}
3997
3998 fi;
3999 CONFIG_DIR=`(
4000     test "x$prefix" = xNONE && prefix=$ac_default_prefix
4001     test "x$exec_prefix" = xNONE && exec_prefix=${prefix}
4002     eval echo "$CONFIG_DIR"
4003 )`
4004
4005 cat >>confdefs.h <<_ACEOF
4006 #define CONFIG_DIR "$CONFIG_DIR"
4007 _ACEOF
4008
4009
4010
4011
4012 # Check whether --with-indexdir or --without-indexdir was given.
4013 if test "${with_indexdir+set}" = set; then
4014   withval="$with_indexdir"
4015      { { echo "$as_me:$LINENO: error: *** --with-indexdir is deprecated, use indexdir in amanda.conf instead." >&5
4016 echo "$as_me: error: *** --with-indexdir is deprecated, use indexdir in amanda.conf instead." >&2;}
4017    { (exit 1); exit 1; }; }
4018
4019 fi;
4020
4021
4022 # Check whether --with-dbdir or --without-dbdir was given.
4023 if test "${with_dbdir+set}" = set; then
4024   withval="$with_dbdir"
4025      { { echo "$as_me:$LINENO: error: *** --with-dbdir is deprecated, use infofile in amanda.conf instead." >&5
4026 echo "$as_me: error: *** --with-dbdir is deprecated, use infofile in amanda.conf instead." >&2;}
4027    { (exit 1); exit 1; }; }
4028
4029 fi;
4030
4031
4032 # Check whether --with-logdir or --without-logdir was given.
4033 if test "${with_logdir+set}" = set; then
4034   withval="$with_logdir"
4035      { { echo "$as_me:$LINENO: error: *** --with-logdir is deprecated, use logdir in amanda.conf instead." >&5
4036 echo "$as_me: error: *** --with-logdir is deprecated, use logdir in amanda.conf instead." >&2;}
4037    { (exit 1); exit 1; }; }
4038
4039 fi;
4040
4041
4042 # Check whether --with-suffixes or --without-suffixes was given.
4043 if test "${with_suffixes+set}" = set; then
4044   withval="$with_suffixes"
4045   USE_VERSION_SUFFIXES=$withval
4046 else
4047   : ${USE_VERSION_SUFFIXES=no}
4048
4049 fi;
4050 case "$USE_VERSION_SUFFIXES" in
4051 y | ye | yes)
4052
4053 cat >>confdefs.h <<\_ACEOF
4054 #define USE_VERSION_SUFFIXES 1
4055 _ACEOF
4056
4057
4058     program_suffix="-$VERSION"
4059     # This is from the output of configure.in.
4060     if test "x$program_transform_name" = xs,x,x,; then
4061         program_transform_name=
4062     else
4063         # Double any \ or $.  echo might interpret backslashes.
4064         cat <<\EOF_SED > conftestsed
4065 s,\\,\\\\,g; s,\$,$$,g
4066 EOF_SED
4067         program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
4068         rm -f conftestsed
4069     fi
4070     test "x$program_prefix" != xNONE &&
4071         program_transform_name="s,^,${program_prefix},; $program_transform_name"
4072     # Use a double $ so make ignores it.
4073     test "x$program_suffix" != xNONE &&
4074         program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
4075
4076     # sed with no file args requires a program.
4077     test "x$program_transform_name" = "" && program_transform_name="xs,x,x,"
4078     # Remove empty command
4079     cat <<\EOF_SED > conftestsed
4080 s,\;\;,\;,g; s,\; \$,,g; s,\;$,,g
4081 EOF_SED
4082     program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
4083     rm -f conftestsed
4084   ;;
4085 n | no) USE_VERSION_SUFFIXES=no
4086   ;;
4087 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-suffixes option." >&5
4088 echo "$as_me: error: *** You must not supply an argument to --with-suffixes option." >&2;}
4089    { (exit 1); exit 1; }; }
4090   ;;
4091 esac
4092
4093
4094 case "$target" in
4095     *-hp-*)
4096         CLIENT_SCRIPTS_OPT=amhpfixdevs
4097         ;;
4098     *-sni-sysv4)
4099         CLIENT_SCRIPTS_OPT=amsinixfixdevs
4100         ;;
4101     *)
4102         CLIENT_SCRIPTS_OPT=
4103         ;;
4104 esac
4105
4106
4107
4108
4109 # Check whether --with-client-only or --without-client-only was given.
4110 if test "${with_client_only+set}" = set; then
4111   withval="$with_client_only"
4112      { { echo "$as_me:$LINENO: error: *** --with-client-only is deprecated, use --without-server instead." >&5
4113 echo "$as_me: error: *** --with-client-only is deprecated, use --without-server instead." >&2;}
4114    { (exit 1); exit 1; }; }
4115
4116 fi;
4117
4118 # Check whether --with-server-only or --without-server-only was given.
4119 if test "${with_server_only+set}" = set; then
4120   withval="$with_server_only"
4121      { { echo "$as_me:$LINENO: error: *** --with-server-only is deprecated, use --without-client instead." >&5
4122 echo "$as_me: error: *** --with-server-only is deprecated, use --without-client instead." >&2;}
4123    { (exit 1); exit 1; }; }
4124
4125 fi;
4126
4127
4128 # Check whether --with-client or --without-client was given.
4129 if test "${with_client+set}" = set; then
4130   withval="$with_client"
4131
4132         case "$withval" in
4133         y | ye | yes) NO_CLIENT_MODE=false;;
4134         n | no) NO_CLIENT_MODE=true;;
4135         *)
4136             { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-client option." >&5
4137 echo "$as_me: error: *** You must not supply an argument to --with-client option." >&2;}
4138    { (exit 1); exit 1; }; }
4139           ;;
4140         esac
4141
4142
4143 fi;
4144
4145
4146 # Check whether --with-server or --without-server was given.
4147 if test "${with_server+set}" = set; then
4148   withval="$with_server"
4149
4150         case "$withval" in
4151         y | ye | yes) NO_SERVER_MODE=false ;;
4152         n | no) NO_SERVER_MODE=true;NO_RESTORE_MODE=true;;
4153         *)
4154             { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-server option.  Maybe you meant --with-index-server=$withval" >&5
4155 echo "$as_me: error: *** You must not supply an argument to --with-server option.  Maybe you meant --with-index-server=$withval" >&2;}
4156    { (exit 1); exit 1; }; }
4157           ;;
4158         esac
4159
4160
4161 fi;
4162 if test "x${NO_SERVER_MODE+set}" != xset ; then
4163    NO_SERVER_MODE=false
4164 fi
4165
4166
4167 # Check whether --with-restore or --without-restore was given.
4168 if test "${with_restore+set}" = set; then
4169   withval="$with_restore"
4170
4171         case "$withval" in
4172         y | ye | yes) NO_RESTORE_MODE=false;;
4173         n | no) NO_RESTORE_MODE=true;;
4174         *)
4175             { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-restore option." >&5
4176 echo "$as_me: error: *** You must not supply an argument to --with-restore option." >&2;}
4177    { (exit 1); exit 1; }; }
4178           ;;
4179         esac
4180
4181
4182 fi;
4183 if test "x${NO_RESTORE_MODE+set}" != xset ; then
4184    NO_RESTORE_MODE=${NO_SERVER_MODE-false}
4185 fi
4186
4187 if ${NO_SERVER_MODE-false}; then
4188    if ${NO_RESTORE_MODE-false}; then
4189                         true
4190    else
4191       { { echo "$as_me:$LINENO: error: *** --without-server requires --without-restore" >&5
4192 echo "$as_me: error: *** --without-server requires --without-restore" >&2;}
4193    { (exit 1); exit 1; }; }
4194    fi
4195 fi
4196
4197
4198 # Check whether --with-amrecover or --without-amrecover was given.
4199 if test "${with_amrecover+set}" = set; then
4200   withval="$with_amrecover"
4201
4202         case "$withval" in
4203         y | ye | yes)
4204             if ${NO_CLIENT_MODE-false}; then
4205                 { { echo "$as_me:$LINENO: error: *** --without-client and --with-amrecover are incompatible" >&5
4206 echo "$as_me: error: *** --without-client and --with-amrecover are incompatible" >&2;}
4207    { (exit 1); exit 1; }; }
4208             fi
4209             NO_RECOVER_MODE=false;;
4210         n | no) NO_RECOVER_MODE=true;;
4211         *)
4212             { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-amrecover option." >&5
4213 echo "$as_me: error: *** You must not supply an argument to --with-amrecover option." >&2;}
4214    { (exit 1); exit 1; }; }
4215           ;;
4216         esac
4217
4218
4219 fi;
4220
4221
4222 # Check whether --with-index-server or --without-index-server was given.
4223 if test "${with_index_server+set}" = set; then
4224   withval="$with_index_server"
4225
4226         case "$withval" in
4227         "" | y | ye | yes | n | no)
4228             { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-index-server option." >&5
4229 echo "$as_me: error: *** You must supply an argument to the --with-index-server option." >&2;}
4230    { (exit 1); exit 1; }; }
4231           ;;
4232         *) DEFAULT_SERVER="$withval"
4233           ;;
4234         esac
4235
4236 else
4237   : ${DEFAULT_SERVER=`uname -n`}
4238
4239 fi;
4240
4241 cat >>confdefs.h <<_ACEOF
4242 #define DEFAULT_SERVER "$DEFAULT_SERVER"
4243 _ACEOF
4244
4245
4246
4247
4248 # Check whether --with-force-uid or --without-force-uid was given.
4249 if test "${with_force_uid+set}" = set; then
4250   withval="$with_force_uid"
4251   FORCE_USERID="$withval"
4252 else
4253   : ${FORCE_USERID=yes}
4254
4255 fi;
4256 case "$FORCE_USERID" in
4257 y | ye | yes)
4258 cat >>confdefs.h <<\_ACEOF
4259 #define FORCE_USERID 1
4260 _ACEOF
4261
4262   ;;
4263 n | no) :
4264   ;;
4265 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-force-uid option." >&5
4266 echo "$as_me: error: *** You must not supply an argument to --with-force-uid option." >&2;}
4267    { (exit 1); exit 1; }; }
4268 esac
4269
4270
4271 # Check whether --with-user or --without-user was given.
4272 if test "${with_user+set}" = set; then
4273   withval="$with_user"
4274
4275         case "$withval" in
4276         "" | y | ye | yes | n | no)
4277             { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-user option." >&5
4278 echo "$as_me: error: *** You must supply an argument to the --with-user option." >&2;}
4279    { (exit 1); exit 1; }; }
4280           ;;
4281         *) CLIENT_LOGIN="$withval"
4282           ;;
4283         esac
4284
4285
4286 fi;
4287 if test "x${CLIENT_LOGIN+set}" != xset; then
4288     { { echo "$as_me:$LINENO: error: *** --with-user=USER is missing" >&5
4289 echo "$as_me: error: *** --with-user=USER is missing" >&2;}
4290    { (exit 1); exit 1; }; }
4291 fi
4292
4293 cat >>confdefs.h <<_ACEOF
4294 #define CLIENT_LOGIN "$CLIENT_LOGIN"
4295 _ACEOF
4296
4297
4298
4299
4300 # Check whether --with-group or --without-group was given.
4301 if test "${with_group+set}" = set; then
4302   withval="$with_group"
4303
4304         case "$withval" in
4305         "" | y | ye | yes | n | no)
4306             { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-group option." >&5
4307 echo "$as_me: error: *** You must supply an argument to the --with-group option." >&2;}
4308    { (exit 1); exit 1; }; }
4309           ;;
4310         *) SETUID_GROUP="$withval"
4311           ;;
4312         esac
4313
4314
4315 fi;
4316 if test "x${SETUID_GROUP+set}" != xset; then
4317     { { echo "$as_me:$LINENO: error: *** --with-group=GROUP is missing" >&5
4318 echo "$as_me: error: *** --with-group=GROUP is missing" >&2;}
4319    { (exit 1); exit 1; }; }
4320 fi
4321
4322
4323
4324 # Check whether --with-owner or --without-owner was given.
4325 if test "${with_owner+set}" = set; then
4326   withval="$with_owner"
4327
4328         case "$withval" in
4329         "" | y | ye | yes | n | no)
4330             { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-owner option." >&5
4331 echo "$as_me: error: *** You must supply an argument to the --with-owner option." >&2;}
4332    { (exit 1); exit 1; }; }
4333           ;;
4334         *) BINARY_OWNER="$withval"
4335           ;;
4336         esac
4337
4338
4339 fi;
4340 if test "x${BINARY_OWNER+set}" != xset ; then
4341    BINARY_OWNER=$CLIENT_LOGIN
4342 fi
4343
4344 cat >>confdefs.h <<_ACEOF
4345 #define BINARY_OWNER "$BINARY_OWNER"
4346 _ACEOF
4347
4348
4349
4350
4351 # Check whether --with-rundump or --without-rundump was given.
4352 if test "${with_rundump+set}" = set; then
4353   withval="$with_rundump"
4354
4355     case "$withval" in
4356         n | no | y | ye | yes) FORCE_USE_RUNDUMP="$withval";;
4357         *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-rundump option." >&5
4358 echo "$as_me: error: *** You must not supply an argument to --with-rundump option." >&2;}
4359    { (exit 1); exit 1; }; };;
4360     esac
4361
4362
4363 fi;
4364
4365
4366 # Check whether --with-config or --without-config was given.
4367 if test "${with_config+set}" = set; then
4368   withval="$with_config"
4369
4370         case "$withval" in
4371         "" | y | ye | yes | n | no)
4372             { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-config option." >&5
4373 echo "$as_me: error: *** You must supply an argument to the --with-config option." >&2;}
4374    { (exit 1); exit 1; }; }
4375           ;;
4376         *) DEFAULT_CONFIG="$withval"
4377           ;;
4378         esac
4379
4380 else
4381   : ${DEFAULT_CONFIG=DailySet1}
4382
4383 fi;
4384
4385 cat >>confdefs.h <<_ACEOF
4386 #define DEFAULT_CONFIG "$DEFAULT_CONFIG"
4387 _ACEOF
4388
4389
4390
4391
4392 # Check whether --with-tape-server or --without-tape-server was given.
4393 if test "${with_tape_server+set}" = set; then
4394   withval="$with_tape_server"
4395
4396         case "$withval" in
4397         "" | y | ye | yes | n | no)
4398             { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-tape-server option." >&5
4399 echo "$as_me: error: *** You must supply an argument to the --with-tape-server option." >&2;}
4400    { (exit 1); exit 1; }; }
4401           ;;
4402         *) DEFAULT_TAPE_SERVER="$withval"
4403           ;;
4404         esac
4405
4406 else
4407   : ${DEFAULT_TAPE_SERVER=$DEFAULT_SERVER}
4408
4409 fi;
4410
4411 cat >>confdefs.h <<_ACEOF
4412 #define DEFAULT_TAPE_SERVER "$DEFAULT_TAPE_SERVER"
4413 _ACEOF
4414
4415
4416
4417
4418 # Check whether --with-tape-device or --without-tape-device was given.
4419 if test "${with_tape_device+set}" = set; then
4420   withval="$with_tape_device"
4421
4422         case "$withval" in
4423         "" | y | ye | yes | n | no)
4424             { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-tape-device option." >&5
4425 echo "$as_me: error: *** You must supply an argument to the --with-tape-device option." >&2;}
4426    { (exit 1); exit 1; }; }
4427           ;;
4428         *) DEFAULT_TAPE_DEVICE="$withval"
4429           ;;
4430         esac
4431
4432
4433 fi;
4434
4435 if test ! -z "$DEFAULT_TAPE_DEVICE"; then
4436
4437 cat >>confdefs.h <<_ACEOF
4438 #define DEFAULT_TAPE_DEVICE "$DEFAULT_TAPE_DEVICE"
4439 _ACEOF
4440
4441
4442 fi
4443
4444
4445 # Check whether --with-ftape-raw-device or --without-ftape-raw-device was given.
4446 if test "${with_ftape_raw_device+set}" = set; then
4447   withval="$with_ftape_raw_device"
4448
4449         case "$withval" in
4450         "" | y | ye | yes | n | no)
4451             { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-ftape-rawdevice option." >&5
4452 echo "$as_me: error: *** You must supply an argument to the --with-ftape-rawdevice option." >&2;}
4453    { (exit 1); exit 1; }; }
4454           ;;
4455         *) DEFAULT_RAW_TAPE_DEVICE="$withval"
4456           ;;
4457         esac
4458
4459 else
4460
4461         if test -z "$DEFAULT_RAW_TAPE_DEVICE"; then
4462             echo "$as_me:$LINENO: checking for raw ftape device" >&5
4463 echo $ECHO_N "checking for raw ftape device... $ECHO_C" >&6
4464                     raw_tape_dev=/dev/null
4465                                 for num in 3 2 1 0 ; do
4466                     td=/dev/rawft${num}
4467                     if test -r $td; then
4468                         raw_tape_dev=$td
4469                     fi
4470                 done
4471             DEFAULT_RAW_TAPE_DEVICE=$raw_tape_dev
4472             echo "$as_me:$LINENO: result: $DEFAULT_RAW_TAPE_DEVICE" >&5
4473 echo "${ECHO_T}$DEFAULT_RAW_TAPE_DEVICE" >&6
4474         fi
4475
4476
4477 fi;
4478
4479 if test -z "$DEFAULT_RAW_TAPE_DEVICE"; then
4480     DEFAULT_RAW_TAPE_DEVICE=/dev/null
4481 fi
4482
4483
4484 cat >>confdefs.h <<_ACEOF
4485 #define DEFAULT_RAW_TAPE_DEVICE "$DEFAULT_RAW_TAPE_DEVICE"
4486 _ACEOF
4487
4488
4489
4490
4491 # Check whether --with-rew-tape or --without-rew-tape was given.
4492 if test "${with_rew_tape+set}" = set; then
4493   withval="$with_rew_tape"
4494      { { echo "$as_me:$LINENO: error: *** --with-rew-tape is deprecated, use --with-tape-device instead." >&5
4495 echo "$as_me: error: *** --with-rew-tape is deprecated, use --with-tape-device instead." >&2;}
4496    { (exit 1); exit 1; }; }
4497
4498 fi;
4499
4500
4501 # Check whether --with-norew-tape or --without-norew-tape was given.
4502 if test "${with_norew_tape+set}" = set; then
4503   withval="$with_norew_tape"
4504      { { echo "$as_me:$LINENO: error: *** --with-norew-tape is deprecated, use --with-tape-device instead." >&5
4505 echo "$as_me: error: *** --with-norew-tape is deprecated, use --with-tape-device instead." >&2;}
4506    { (exit 1); exit 1; }; }
4507
4508 fi;
4509
4510
4511 # Check whether --with-changer-device or --without-changer-device was given.
4512 if test "${with_changer_device+set}" = set; then
4513   withval="$with_changer_device"
4514
4515         case "$withval" in
4516         "" | y | ye | yes | n | no)
4517             { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-changer-device option." >&5
4518 echo "$as_me: error: *** You must supply an argument to the --with-changer-device option." >&2;}
4519    { (exit 1); exit 1; }; }
4520           ;;
4521         *) DEFAULT_CHANGER_DEVICE="$withval"
4522           ;;
4523         esac
4524
4525 else
4526
4527         if test -z "$DEFAULT_CHANGER_DEVICE" &&
4528            test -f /dev/ch0; then
4529             DEFAULT_CHANGER_DEVICE=/dev/ch0
4530         fi
4531
4532
4533 fi;
4534
4535 if test -z "$DEFAULT_CHANGER_DEVICE"; then
4536     DEFAULT_CHANGER_DEVICE=/dev/null
4537 fi
4538
4539
4540 cat >>confdefs.h <<_ACEOF
4541 #define DEFAULT_CHANGER_DEVICE "$DEFAULT_CHANGER_DEVICE"
4542 _ACEOF
4543
4544
4545
4546
4547 # Check whether --with-fqdn or --without-fqdn was given.
4548 if test "${with_fqdn+set}" = set; then
4549   withval="$with_fqdn"
4550   USE_FQDN=$withval
4551 else
4552   : ${USE_FQDN=no}
4553
4554 fi;
4555 case "$USE_FQDN" in
4556 n | no) : ;;
4557 y |  ye | yes)
4558 cat >>confdefs.h <<\_ACEOF
4559 #define USE_FQDN 1
4560 _ACEOF
4561
4562   ;;
4563 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-fqdn option." >&5
4564 echo "$as_me: error: *** You must not supply an argument to --with-fqdn option." >&2;}
4565    { (exit 1); exit 1; }; }
4566   ;;
4567 esac
4568
4569
4570 # Check whether --with-broken-fsf or --without-broken-fsf was given.
4571 if test "${with_broken_fsf+set}" = set; then
4572   withval="$with_broken_fsf"
4573   HAVE_BROKEN_FSF=$withval
4574 else
4575   : ${HAVE_BROKEN_FSF=no}
4576
4577 fi;
4578 case "$HAVE_BROKEN_FSF" in
4579 n | no) : ;;
4580 y |  ye | yes)
4581 cat >>confdefs.h <<\_ACEOF
4582 #define HAVE_BROKEN_FSF 1
4583 _ACEOF
4584
4585   ;;
4586 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-broken-fsf option." >&5
4587 echo "$as_me: error: *** You must not supply an argument to --with-broken-fsf option." >&2;}
4588    { (exit 1); exit 1; }; }
4589   ;;
4590 esac
4591
4592
4593 # Check whether --with-reuseports or --without-reuseports was given.
4594 if test "${with_reuseports+set}" = set; then
4595   withval="$with_reuseports"
4596    case "$withval" in
4597         y | ye | yes)
4598           REUSEADDR=no;;
4599         n | no)
4600           REUSEADDR=yes;;
4601         *)
4602           REUSEADDR=no;;
4603       esac
4604
4605 else
4606    REUSEADDR=yes;
4607 fi;
4608 case "$REUSEADDR" in
4609 n | no) :
4610     ;;
4611 y |  ye | yes)
4612
4613 cat >>confdefs.h <<\_ACEOF
4614 #define USE_REUSEADDR 1
4615 _ACEOF
4616
4617     ;;
4618 *)
4619     { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-reuseports option." >&5
4620 echo "$as_me: error: *** You must not supply an argument to --with-reuseports option." >&2;}
4621    { (exit 1); exit 1; }; }
4622     ;;
4623 esac
4624
4625
4626 # Check whether --with-gnutar or --without-gnutar was given.
4627 if test "${with_gnutar+set}" = set; then
4628   withval="$with_gnutar"
4629
4630         case "$withval" in
4631             /*) GNUTAR="$withval";;
4632             y|ye|yes) :;;
4633             n|no) GNUTAR=;;
4634             *)  { { echo "$as_me:$LINENO: error: *** You must supply a full pathname to --with-gnutar" >&5
4635 echo "$as_me: error: *** You must supply a full pathname to --with-gnutar" >&2;}
4636    { (exit 1); exit 1; }; };;
4637         esac
4638
4639
4640 fi;
4641
4642
4643 # Check whether --with-smbclient or --without-smbclient was given.
4644 if test "${with_smbclient+set}" = set; then
4645   withval="$with_smbclient"
4646
4647         case "$withval" in
4648             /*) SAMBA_CLIENT="$withval";;
4649             y|ye|yes) :;;
4650             n|no) SAMBA_CLIENT=;;
4651             *)  { { echo "$as_me:$LINENO: error: *** You must supply a full pathname to --with-smbclient" >&5
4652 echo "$as_me: error: *** You must supply a full pathname to --with-smbclient" >&2;}
4653    { (exit 1); exit 1; }; };;
4654         esac
4655
4656
4657 fi;
4658
4659
4660 # Check whether --with-samba-user or --without-samba-user was given.
4661 if test "${with_samba_user+set}" = set; then
4662   withval="$with_samba_user"
4663       { { echo "$as_me:$LINENO: error: *** The samba-user option was deprecated, the username go in the amandapass" >&5
4664 echo "$as_me: error: *** The samba-user option was deprecated, the username go in the amandapass" >&2;}
4665    { (exit 1); exit 1; }; }
4666
4667
4668 fi;
4669
4670
4671 # Check whether --with-gnutar-listdir or --without-gnutar-listdir was given.
4672 if test "${with_gnutar_listdir+set}" = set; then
4673   withval="$with_gnutar_listdir"
4674
4675         case "$withval" in
4676             n | no)             unset GNUTAR_LISTDIR ;;
4677             y | ye | yes)       : ${GNUTAR_LISTDIR=$localstatedir/amanda/gnutar-lists} ;;
4678             /*)                 GNUTAR_LISTDIR="$withval" ;;
4679             *)                  { { echo "$as_me:$LINENO: error: *** You must supply a full pathname to --with-gnutar-listdir" >&5
4680 echo "$as_me: error: *** You must supply a full pathname to --with-gnutar-listdir" >&2;}
4681    { (exit 1); exit 1; }; }
4682         esac
4683
4684 else
4685   : ${GNUTAR_LISTDIR="$localstatedir/amanda/gnutar-lists"}
4686
4687 fi;
4688 if test "$GNUTAR_LISTDIR"; then
4689     GNUTAR_LISTDIR=`(
4690         test "x$prefix" = xNONE && prefix=$ac_default_prefix
4691         eval echo "$GNUTAR_LISTDIR"
4692     )`
4693
4694 cat >>confdefs.h <<_ACEOF
4695 #define GNUTAR_LISTED_INCREMENTAL_DIR "$GNUTAR_LISTDIR"
4696 _ACEOF
4697
4698     GNUTAR_LISTED_INCREMENTAL_DIRX=$GNUTAR_LISTDIR
4699 else
4700     GNUTAR_LISTED_INCREMENTAL_DIRX=
4701 fi
4702
4703
4704
4705 # Check whether --with-gnutar-listed-incremental or --without-gnutar-listed-incremental was given.
4706 if test "${with_gnutar_listed_incremental+set}" = set; then
4707   withval="$with_gnutar_listed_incremental"
4708       { { echo "$as_me:$LINENO: error: *** The gnutar-listed-incremental option was deprecated, use gnutar-listdir instead" >&5
4709 echo "$as_me: error: *** The gnutar-listed-incremental option was deprecated, use gnutar-listdir instead" >&2;}
4710    { (exit 1); exit 1; }; }
4711
4712
4713 fi;
4714 GNUTAR_LISTED_INCREMENTAL_DIR=$GNUTAR_LISTDIR
4715
4716
4717
4718 # Check whether --with-bsd-security or --without-bsd-security was given.
4719 if test "${with_bsd_security+set}" = set; then
4720   withval="$with_bsd_security"
4721   BSD_SECURITY=$withval
4722 else
4723   : ${BSD_SECURITY=yes}
4724
4725 fi;
4726 case "$BSD_SECURITY" in
4727 n | no) : ;;
4728 y |  ye | yes)
4729 cat >>confdefs.h <<\_ACEOF
4730 #define BSD_SECURITY 1
4731 _ACEOF
4732
4733   ;;
4734 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-bsd-security option." >&5
4735 echo "$as_me: error: *** You must not supply an argument to --with-bsd-security option." >&2;}
4736    { (exit 1); exit 1; }; }
4737   ;;
4738 esac
4739
4740
4741 # Check whether --with-amandahosts or --without-amandahosts was given.
4742 if test "${with_amandahosts+set}" = set; then
4743   withval="$with_amandahosts"
4744   USE_AMANDAHOSTS=$withval
4745 else
4746   : ${USE_AMANDAHOSTS=yes}
4747
4748 fi;
4749 case "$USE_AMANDAHOSTS" in
4750 n | no) : ;;
4751 y |  ye | yes) :
4752   case "$BSD_SECURITY" in
4753   y | ye | yes)
4754 cat >>confdefs.h <<\_ACEOF
4755 #define USE_AMANDAHOSTS 1
4756 _ACEOF
4757
4758     ;;
4759   esac
4760   ;;
4761 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-amandahosts option." >&5
4762 echo "$as_me: error: *** You must not supply an argument to --with-amandahosts option." >&2;}
4763    { (exit 1); exit 1; }; }
4764   ;;
4765 esac
4766
4767
4768
4769 # Check whether --with-dbmalloc or --without-dbmalloc was given.
4770 if test "${with_dbmalloc+set}" = set; then
4771   withval="$with_dbmalloc"
4772   DBMALLOC="$withval"
4773 else
4774   : ${DBMALLOC=no}
4775
4776 fi;
4777
4778 case "$DBMALLOC" in
4779 n | no)
4780     DBMALLOCCFLAGS=""
4781     DBMALLOCLIBS=""
4782     ;;
4783 *)
4784
4785 echo "$as_me:$LINENO: checking for malloc in -ldbmalloc" >&5
4786 echo $ECHO_N "checking for malloc in -ldbmalloc... $ECHO_C" >&6
4787 if test "${ac_cv_lib_dbmalloc_malloc+set}" = set; then
4788   echo $ECHO_N "(cached) $ECHO_C" >&6
4789 else
4790   ac_check_lib_save_LIBS=$LIBS
4791 LIBS="-ldbmalloc  $LIBS"
4792 cat >conftest.$ac_ext <<_ACEOF
4793 /* confdefs.h.  */
4794 _ACEOF
4795 cat confdefs.h >>conftest.$ac_ext
4796 cat >>conftest.$ac_ext <<_ACEOF
4797 /* end confdefs.h.  */
4798
4799 /* Override any gcc2 internal prototype to avoid an error.  */
4800 #ifdef __cplusplus
4801 extern "C"
4802 #endif
4803 /* We use char because int might match the return type of a gcc2
4804    builtin and then its argument prototype would still apply.  */
4805 char malloc ();
4806 int
4807 main ()
4808 {
4809 malloc ();
4810   ;
4811   return 0;
4812 }
4813 _ACEOF
4814 rm -f conftest.$ac_objext conftest$ac_exeext
4815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4816   (eval $ac_link) 2>conftest.er1
4817   ac_status=$?
4818   grep -v '^ *+' conftest.er1 >conftest.err
4819   rm -f conftest.er1
4820   cat conftest.err >&5
4821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4822   (exit $ac_status); } &&
4823          { ac_try='test -z "$ac_c_werror_flag"
4824                          || test ! -s conftest.err'
4825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4826   (eval $ac_try) 2>&5
4827   ac_status=$?
4828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4829   (exit $ac_status); }; } &&
4830          { ac_try='test -s conftest$ac_exeext'
4831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4832   (eval $ac_try) 2>&5
4833   ac_status=$?
4834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4835   (exit $ac_status); }; }; then
4836   ac_cv_lib_dbmalloc_malloc=yes
4837 else
4838   echo "$as_me: failed program was:" >&5
4839 sed 's/^/| /' conftest.$ac_ext >&5
4840
4841 ac_cv_lib_dbmalloc_malloc=no
4842 fi
4843 rm -f conftest.err conftest.$ac_objext \
4844       conftest$ac_exeext conftest.$ac_ext
4845 LIBS=$ac_check_lib_save_LIBS
4846 fi
4847 echo "$as_me:$LINENO: result: $ac_cv_lib_dbmalloc_malloc" >&5
4848 echo "${ECHO_T}$ac_cv_lib_dbmalloc_malloc" >&6
4849 if test $ac_cv_lib_dbmalloc_malloc = yes; then
4850   cat >>confdefs.h <<_ACEOF
4851 #define HAVE_LIBDBMALLOC 1
4852 _ACEOF
4853
4854   LIBS="-ldbmalloc $LIBS"
4855
4856 fi
4857
4858     if test "x$ac_cv_lib_dbmalloc_malloc" != "xyes"; then
4859       { echo "$as_me:$LINENO: WARNING: *** dbmalloc library not found - no malloc debugging support!" >&5
4860 echo "$as_me: WARNING: *** dbmalloc library not found - no malloc debugging support!" >&2;}
4861       DBMALLOCCFLAGS=""
4862       DBMALLOCLIBS=""
4863     else
4864       DBMALLOCCFLAGS="-I$DBMALLOC -DUSE_DBMALLOC"
4865       DBMALLOCLIBS="-L$DBMALLOC -ldbmalloc"
4866     fi
4867     ;;
4868 esac
4869
4870
4871 # Check whether --with-ipv6 or --without-ipv6 was given.
4872 if test "${with_ipv6+set}" = set; then
4873   withval="$with_ipv6"
4874
4875         case "$withval" in
4876         y | ye | yes) amanda_ipv6=true;;
4877         n | no) amanda_ipv6=false;;
4878         *)
4879             { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-ipv6 option." >&5
4880 echo "$as_me: error: *** You must not supply an argument to --with-ipv6 option." >&2;}
4881    { (exit 1); exit 1; }; }
4882           ;;
4883         esac
4884
4885
4886 fi;
4887
4888
4889 : ${KRB4_SPOTS="/usr/kerberos /usr/cygnus /usr /opt/kerberos"}
4890
4891
4892 # Check whether --with-krb4-security or --without-krb4-security was given.
4893 if test "${with_krb4_security+set}" = set; then
4894   withval="$with_krb4_security"
4895   KRB4_SECURITY="$withval"
4896 else
4897   : ${KRB4_SECURITY=no}
4898
4899 fi;
4900
4901 case "$KRB4_SECURITY" in
4902 n | no) KRB4_SECURITY=no ;;
4903 y | ye | yes) : ;;
4904 *) KRB4_SPOTS="$KRB4_SECURITY"
4905    KRB4_SECURITY=yes
4906    ;;
4907 esac
4908
4909 echo "$as_me:$LINENO: checking for Kerberos and Amanda kerberos4 bits" >&5
4910 echo $ECHO_N "checking for Kerberos and Amanda kerberos4 bits... $ECHO_C" >&6
4911 if test "x${KRB4_SECURITY}" = xyes -a -f  ${srcdir-.}/common-src/krb4-security.c ; then
4912     for dir in $KRB4_SPOTS; do
4913         if test -f ${dir}/lib/libkrb.a -a -f ${dir}/lib/libdes.a ; then
4914             #
4915             # This is the original Kerberos 4.
4916             #
4917             echo "$as_me:$LINENO: result: found in $dir" >&5
4918 echo "${ECHO_T}found in $dir" >&6
4919             KRB4_SECURITY=yes
4920
4921 cat >>confdefs.h <<\_ACEOF
4922 #define KRB4_SECURITY 1
4923 _ACEOF
4924
4925             if test -d $dir/include/kerberosIV ; then
4926                 #
4927                 # This handles BSD/OS.
4928                 #
4929                 KRB4INCLUDES=-I$dir/include/kerberosIV
4930             else
4931                 KRB4INCLUDES=-I$dir/include
4932             fi
4933             KRB4LDFLAGS=-L$dir/lib
4934             KRB4LIBS="-lkrb -ldes"
4935             if test -f ${dir}/lib/libcom_err.a; then
4936                 KRB4LIBS="$KRB4LIBS -lcom_err"
4937             fi
4938             break
4939         elif test -f ${dir}/lib/libkrb4.a &&
4940              test -f ${dir}/lib/libcrypto.a &&
4941              test -f ${dir}/lib/libdes425.a ; then
4942             #
4943             # This is Kerberos 5 with Kerberos 4 back-support.
4944             #
4945             echo "$as_me:$LINENO: result: found in $dir" >&5
4946 echo "${ECHO_T}found in $dir" >&6
4947             KRB4_SECURITY=yes
4948
4949 cat >>confdefs.h <<\_ACEOF
4950 #define KRB4_SECURITY 1
4951 _ACEOF
4952
4953             KRB4INCLUDES="-I$dir/include -I$dir/include/kerberosIV"
4954             KRB4LDFLAGS=-L$dir/lib
4955             if test -f ${dir}/lib/libkrb5.a &&
4956                test -f ${dir}/lib/libcom_err.a; then
4957                 KRB4LIBS="-lkrb4 -lkrb5 -lcrypto -ldes425 -lcom_err"
4958             else
4959                 KRB4LIBS="-lkrb4 -lcrypto -ldes425"
4960             fi
4961             break
4962         fi
4963     done
4964
4965     if test "x$KRB4LDFLAGS" = "x" ; then
4966         echo "$as_me:$LINENO: result: no libraries found" >&5
4967 echo "${ECHO_T}no libraries found" >&6
4968     fi
4969 else
4970     echo "$as_me:$LINENO: result: no" >&5
4971 echo "${ECHO_T}no" >&6
4972 fi
4973
4974
4975 # Check whether --with-rsh-security or --without-rsh-security was given.
4976 if test "${with_rsh_security+set}" = set; then
4977   withval="$with_rsh_security"
4978   RSH_SECURITY=$withval
4979 else
4980   : ${RSH_SECURITY=yes}
4981
4982 fi;
4983 case "$RSH_SECURITY" in
4984 n | no) : ;;
4985 y |  ye | yes)
4986 cat >>confdefs.h <<\_ACEOF
4987 #define RSH_SECURITY 1
4988 _ACEOF
4989
4990   ;;
4991 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument the to --with-rsh-security option." >&5
4992 echo "$as_me: error: *** You must not supply an argument the to --with-rsh-security option." >&2;}
4993    { (exit 1); exit 1; }; }
4994   ;;
4995 esac
4996
4997
4998 # Check whether --with-ssh-security or --without-ssh-security was given.
4999 if test "${with_ssh_security+set}" = set; then
5000   withval="$with_ssh_security"
5001   SSH_SECURITY=$withval
5002 else
5003   : ${SSH_SECURITY=no}
5004
5005 fi;
5006 case "$SSH_SECURITY" in
5007 n | no) : ;;
5008 y |  ye | yes)
5009 cat >>confdefs.h <<\_ACEOF
5010 #define SSH_SECURITY 1
5011 _ACEOF
5012
5013                SSH_SECURITY_SET=true
5014   ;;
5015 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument the to --with-ssh-security option." >&5
5016 echo "$as_me: error: *** You must not supply an argument the to --with-ssh-security option." >&2;}
5017    { (exit 1); exit 1; }; }
5018   ;;
5019 esac
5020
5021
5022 # Check whether --with-bsdtcp-security or --without-bsdtcp-security was given.
5023 if test "${with_bsdtcp_security+set}" = set; then
5024   withval="$with_bsdtcp_security"
5025   BSDTCP_SECURITY=$withval
5026 else
5027   : ${BSDTCP_SECURITY=yes}
5028
5029 fi;
5030 case "$BSDTCP_SECURITY" in
5031 n | no) : ;;
5032 y |  ye | yes)
5033 cat >>confdefs.h <<\_ACEOF
5034 #define BSDTCP_SECURITY 1
5035 _ACEOF
5036
5037                BSDTCP_SECURITY_SET=true
5038   ;;
5039 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument the to --with-bsdtcp-security option." >&5
5040 echo "$as_me: error: *** You must not supply an argument the to --with-bsdtcp-security option." >&2;}
5041    { (exit 1); exit 1; }; }
5042   ;;
5043 esac
5044
5045
5046 # Check whether --with-bsdudp-security or --without-bsdudp-security was given.
5047 if test "${with_bsdudp_security+set}" = set; then
5048   withval="$with_bsdudp_security"
5049   BSDUDP_SECURITY=$withval
5050 else
5051   : ${BSDUDP_SECURITY=yes}
5052
5053 fi;
5054 case "$BSDUDP_SECURITY" in
5055 n | no) : ;;
5056 y |  ye | yes)
5057 cat >>confdefs.h <<\_ACEOF
5058 #define BSDUDP_SECURITY 1
5059 _ACEOF
5060
5061                BSDUDP_SECURITY_SET=true
5062   ;;
5063 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument the to --with-bsdudp-security option." >&5
5064 echo "$as_me: error: *** You must not supply an argument the to --with-bsdudp-security option." >&2;}
5065    { (exit 1); exit 1; }; }
5066   ;;
5067 esac
5068
5069
5070 # Check whether --with-server-principal or --without-server-principal was given.
5071 if test "${with_server_principal+set}" = set; then
5072   withval="$with_server_principal"
5073
5074         case "$withval" in
5075         "" | y | ye | yes | n | no)
5076             { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-server-principal option." >&5
5077 echo "$as_me: error: *** You must supply an argument to the --with-server-principal option." >&2;}
5078    { (exit 1); exit 1; }; }
5079           ;;
5080         *)
5081             SERVER_HOST_PRINCIPLE="$withval"
5082           ;;
5083         esac
5084
5085 else
5086   : ${SERVER_HOST_PRINCIPLE="amanda"}
5087
5088 fi;
5089
5090 cat >>confdefs.h <<_ACEOF
5091 #define SERVER_HOST_PRINCIPLE "$SERVER_HOST_PRINCIPLE"
5092 _ACEOF
5093
5094
5095
5096 # Check whether --with-server-instance or --without-server-instance was given.
5097 if test "${with_server_instance+set}" = set; then
5098   withval="$with_server_instance"
5099
5100         case "$withval" in
5101         "" | y | ye | yes | n | no)
5102             { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-server-instance option." >&5
5103 echo "$as_me: error: *** You must supply an argument to the --with-server-instance option." >&2;}
5104    { (exit 1); exit 1; }; }
5105           ;;
5106         *) SERVER_HOST_INSTANCE="$withval"
5107           ;;
5108         esac
5109
5110 else
5111   : ${SERVER_HOST_INSTANCE="amanda"}
5112
5113 fi;
5114
5115 cat >>confdefs.h <<_ACEOF
5116 #define SERVER_HOST_INSTANCE "$SERVER_HOST_INSTANCE"
5117 _ACEOF
5118
5119
5120
5121 # Check whether --with-server-keyfile or --without-server-keyfile was given.
5122 if test "${with_server_keyfile+set}" = set; then
5123   withval="$with_server_keyfile"
5124
5125         case "$withval" in
5126         "" | y | ye | yes | n | no)
5127             { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-server-keyfile option." >&5
5128 echo "$as_me: error: *** You must supply an argument to the --with-server-keyfile option." >&2;}
5129    { (exit 1); exit 1; }; }
5130           ;;
5131         *) SERVER_HOST_KEY_FILE="$withval"
5132           ;;
5133         esac
5134
5135 else
5136   : ${SERVER_HOST_KEY_FILE="/.amanda"}
5137
5138 fi;
5139
5140 cat >>confdefs.h <<_ACEOF
5141 #define SERVER_HOST_KEY_FILE "$SERVER_HOST_KEY_FILE"
5142 _ACEOF
5143
5144
5145
5146 # Check whether --with-client-principal or --without-client-principal was given.
5147 if test "${with_client_principal+set}" = set; then
5148   withval="$with_client_principal"
5149
5150         case "$withval" in
5151         "" | y | ye | yes | n | no)
5152             { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-client-principal option." >&5
5153 echo "$as_me: error: *** You must supply an argument to the --with-client-principal option." >&2;}
5154    { (exit 1); exit 1; }; }
5155           ;;
5156         *) CLIENT_HOST_PRINCIPLE="$withval"
5157           ;;
5158         esac
5159
5160 else
5161   : ${CLIENT_HOST_PRINCIPLE="rcmd"}
5162
5163 fi;
5164
5165 cat >>confdefs.h <<_ACEOF
5166 #define CLIENT_HOST_PRINCIPLE "$CLIENT_HOST_PRINCIPLE"
5167 _ACEOF
5168
5169
5170
5171 # Check whether --with-client-instance or --without-client-instance was given.
5172 if test "${with_client_instance+set}" = set; then
5173   withval="$with_client_instance"
5174
5175         case "$withval" in
5176         "" | y | ye | yes | n | no)
5177             { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-client-instance option." >&5
5178 echo "$as_me: error: *** You must supply an argument to the --with-client-instance option." >&2;}
5179    { (exit 1); exit 1; }; }
5180           ;;
5181         *) CLIENT_HOST_INSTANCE="$withval"
5182           ;;
5183         esac
5184
5185 else
5186   : ${CLIENT_HOST_INSTANCE=HOSTNAME_INSTANCE}
5187
5188 fi;
5189
5190 cat >>confdefs.h <<_ACEOF
5191 #define CLIENT_HOST_INSTANCE $CLIENT_HOST_INSTANCE
5192 _ACEOF
5193
5194
5195
5196 # Check whether --with-client-keyfile or --without-client-keyfile was given.
5197 if test "${with_client_keyfile+set}" = set; then
5198   withval="$with_client_keyfile"
5199
5200         case "$withval" in
5201         "" | y | ye | yes | n | no)
5202             { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-client-keyfile option." >&5
5203 echo "$as_me: error: *** You must supply an argument to the --with-client-keyfile option." >&2;}
5204    { (exit 1); exit 1; }; }
5205           ;;
5206         *) CLIENT_HOST_KEY_FILE="$withval"
5207           ;;
5208         esac
5209
5210 else
5211   : ${CLIENT_HOST_KEY_FILE=KEYFILE}
5212
5213 fi;
5214
5215 # Assume it's either KEYFILE (defined in krb.h), or a string filename...
5216 if test "x$CLIENT_HOST_KEY_FILE" != "xKEYFILE"; then
5217   CLIENT_HOST_KEY_FILE="\"$CLIENT_HOST_KEY_FILE\""
5218 fi
5219
5220
5221 cat >>confdefs.h <<_ACEOF
5222 #define CLIENT_HOST_KEY_FILE $CLIENT_HOST_KEY_FILE
5223 _ACEOF
5224
5225
5226
5227 # Check whether --with-ticket-lifetime or --without-ticket-lifetime was given.
5228 if test "${with_ticket_lifetime+set}" = set; then
5229   withval="$with_ticket_lifetime"
5230
5231         case "$withval" in
5232         "" | y | ye | yes | n | no)
5233             { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-ticket-lifetime option." >&5
5234 echo "$as_me: error: *** You must supply an argument to the --with-ticket-lifetime option." >&2;}
5235    { (exit 1); exit 1; }; }
5236           ;;
5237         *) TICKET_LIFETIME="$withval"
5238           ;;
5239         esac
5240
5241 else
5242   : ${TICKET_LIFETIME=128}
5243
5244 fi;
5245
5246 cat >>confdefs.h <<_ACEOF
5247 #define TICKET_LIFETIME $TICKET_LIFETIME
5248 _ACEOF
5249
5250
5251
5252 : ${KRB5_SPOTS="/usr/kerberos /usr/cygnus /usr /opt/kerberos"}
5253
5254
5255 # Check whether --with-krb5-security or --without-krb5-security was given.
5256 if test "${with_krb5_security+set}" = set; then
5257   withval="$with_krb5_security"
5258   KRB5_SECURITY="$withval"
5259 else
5260   : ${KRB5_SECURITY=no}
5261
5262 fi;
5263
5264 case "$KRB5_SECURITY" in
5265 n | no) KRB5_SECURITY=no
5266         KRB5_SPOTS=""
5267         ;;
5268 y | ye | yes) : ;;
5269 *) KRB5_SPOTS="$KRB5_SECURITY"
5270    KRB5_SECURITY=yes
5271    ;;
5272 esac
5273
5274 # if found, force the static versions of these libs (.a) by linking directly
5275 # with the .a files.  I don't know how to get -R dependancies checked
5276 # in autoconf at this time. -kashmir
5277 echo "$as_me:$LINENO: checking for Kerberos V" >&5
5278 echo $ECHO_N "checking for Kerberos V... $ECHO_C" >&6
5279 KRB5_DIR_FOUND=""
5280 KRB5_CFLAGS=""
5281 for dir in $KRB5_SPOTS; do
5282   for lib in lib lib64; do
5283     k5libdir=${dir}/${lib}
5284     if test -f ${k5libdir}/libkrb5.a -a -f ${k5libdir}/libgssapi_krb5.a -a -f ${k5libdir}/libcom_err.a; then
5285         if test -f ${k5libdir}/libk5crypto.a; then
5286             K5CRYPTO=${k5libdir}/libk5crypto.a
5287         elif test -f ${k5libdir}/libcrypto.a; then
5288             K5CRYPTO=${k5libdir}/libcrypto.a
5289         else
5290             K5CRYPTO=""
5291         fi
5292         if test -f ${k5libdir}/libkrb5support.a; then
5293             K5SUPPORT=${k5libdir}/libkrb5support.a
5294         else
5295             K5SUPPORT=""
5296         fi
5297         KRB5_DIR_FOUND=$dir
5298         KRB5LIBS="${k5libdir}/libgssapi_krb5.a ${k5libdir}/libkrb5.a $K5CRYPTO $K5SUPPORT ${k5libdir}/libcom_err.a"
5299         KRB5CFLAGS=""
5300         break
5301     elif test -f ${k5libdir}/libkrb5.a -a -f ${k5libdir}/libasn1.a -a -f ${k5libdir}/libgssapi.a; then
5302         KRB5_DIR_FOUND=$dir
5303         KRB5LIBS="${k5libdir}/libgssapi.a ${k5libdir}/libkrb5.a ${k5libdir}/libasn1.a"
5304         KRB5_CFLAGS="-DKRB5_HEIMDAL_INCLUDES"
5305         break
5306     fi
5307   done
5308 done
5309
5310 if test "$KRB5_DIR_FOUND"; then
5311         echo "$as_me:$LINENO: result: found in $KRB5_DIR_FOUND" >&5
5312 echo "${ECHO_T}found in $KRB5_DIR_FOUND" >&6
5313         KRB5_SECURITY=yes
5314
5315 cat >>confdefs.h <<\_ACEOF
5316 #define KRB5_SECURITY 1
5317 _ACEOF
5318
5319         #
5320         # some OS's, such as NetBSD, stick krb5 includes out of the way...
5321         # should probably just use autoconf to look for various include
5322         # options and set them, but don't quite want to do that until I've
5323         # dug into it a bit more.
5324         #
5325         if test -d "$KRB5_DIR_FOUND/krb5" ; then
5326                 KRB5INCLUDES="-I$KRB5_DIR_FOUND/include/krb5"
5327         else
5328                 KRB5INCLUDES="-I$KRB5_DIR_FOUND/include"
5329         fi
5330         if test "$KRB5_CFLAGS" ; then
5331                 KRB5INCLUDES="$KRB5INCLUDES $KRB5_CFLAGS"
5332         fi
5333
5334 echo "$as_me:$LINENO: checking for main in -lkrb5support" >&5
5335 echo $ECHO_N "checking for main in -lkrb5support... $ECHO_C" >&6
5336 if test "${ac_cv_lib_krb5support_main+set}" = set; then
5337   echo $ECHO_N "(cached) $ECHO_C" >&6
5338 else
5339   ac_check_lib_save_LIBS=$LIBS
5340 LIBS="-lkrb5support  $LIBS"
5341 cat >conftest.$ac_ext <<_ACEOF
5342 /* confdefs.h.  */
5343 _ACEOF
5344 cat confdefs.h >>conftest.$ac_ext
5345 cat >>conftest.$ac_ext <<_ACEOF
5346 /* end confdefs.h.  */
5347
5348
5349 int
5350 main ()
5351 {
5352 main ();
5353   ;
5354   return 0;
5355 }
5356 _ACEOF
5357 rm -f conftest.$ac_objext conftest$ac_exeext
5358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5359   (eval $ac_link) 2>conftest.er1
5360   ac_status=$?
5361   grep -v '^ *+' conftest.er1 >conftest.err
5362   rm -f conftest.er1
5363   cat conftest.err >&5
5364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5365   (exit $ac_status); } &&
5366          { ac_try='test -z "$ac_c_werror_flag"
5367                          || test ! -s conftest.err'
5368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5369   (eval $ac_try) 2>&5
5370   ac_status=$?
5371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5372   (exit $ac_status); }; } &&
5373          { ac_try='test -s conftest$ac_exeext'
5374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5375   (eval $ac_try) 2>&5
5376   ac_status=$?
5377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5378   (exit $ac_status); }; }; then
5379   ac_cv_lib_krb5support_main=yes
5380 else
5381   echo "$as_me: failed program was:" >&5
5382 sed 's/^/| /' conftest.$ac_ext >&5
5383
5384 ac_cv_lib_krb5support_main=no
5385 fi
5386 rm -f conftest.err conftest.$ac_objext \
5387       conftest$ac_exeext conftest.$ac_ext
5388 LIBS=$ac_check_lib_save_LIBS
5389 fi
5390 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5support_main" >&5
5391 echo "${ECHO_T}$ac_cv_lib_krb5support_main" >&6
5392 if test $ac_cv_lib_krb5support_main = yes; then
5393   cat >>confdefs.h <<_ACEOF
5394 #define HAVE_LIBKRB5SUPPORT 1
5395 _ACEOF
5396
5397   LIBS="-lkrb5support $LIBS"
5398
5399 fi
5400
5401         KRB5LDFLAGS=-L$k5libdir
5402         break
5403 fi
5404
5405 if test "x$KRB5LDFLAGS" = "x" ; then
5406     echo "$as_me:$LINENO: result: no krb5 system libraries found" >&5
5407 echo "${ECHO_T}no krb5 system libraries found" >&6
5408 fi
5409
5410
5411
5412 # Check whether --with-low-tcpportrange or --without-low-tcpportrange was given.
5413 if test "${with_low_tcpportrange+set}" = set; then
5414   withval="$with_low_tcpportrange"
5415
5416         LOW_TCPPORTRANGE="$withval"
5417
5418
5419 fi;
5420
5421 if test x"${LOW_TCPPORTRANGE+set}" = x"set"; then
5422     if test x`echo "$LOW_TCPPORTRANGE" | sed 's/[0-9][0-9]*,[0-9][0-9]*//'` != x""; then
5423         { { echo "$as_me:$LINENO: error: *** --with-low-tcpportrange requires two comma-separated positive numbers" >&5
5424 echo "$as_me: error: *** --with-low-tcpportrange requires two comma-separated positive numbers" >&2;}
5425    { (exit 1); exit 1; }; }
5426     fi
5427     min_low_tcp_port=`echo "$LOW_TCPPORTRANGE" | sed 's/,.*//'`
5428     max_low_tcp_port=`echo "$LOW_TCPPORTRANGE" | sed 's/.*,//'`
5429     if test $min_low_tcp_port -gt $max_low_tcp_port; then
5430         { { echo "$as_me:$LINENO: error: *** the second TCP port number must be greater than the first in --with-low-tcpportrange" >&5
5431 echo "$as_me: error: *** the second TCP port number must be greater than the first in --with-low-tcpportrange" >&2;}
5432    { (exit 1); exit 1; }; }
5433     fi
5434     if test $min_low_tcp_port -lt 512; then
5435         { echo "$as_me:$LINENO: WARNING: *** the low TCP port range should be 512 or greater in --with-low-tcpportrange" >&5
5436 echo "$as_me: WARNING: *** the low TCP port range should be 512 or greater in --with-low-tcpportrange" >&2;}
5437     fi
5438     if test $max_low_tcp_port -ge 1024; then
5439         { echo "$as_me:$LINENO: WARNING: *** the low TCP port range should be less than 1024 in --with-low-tcpportrange" >&5
5440 echo "$as_me: WARNING: *** the low TCP port range should be less than 1024 in --with-low-tcpportrange" >&2;}
5441     fi
5442
5443 cat >>confdefs.h <<_ACEOF
5444 #define LOW_TCPPORTRANGE $LOW_TCPPORTRANGE
5445 _ACEOF
5446
5447 fi
5448
5449
5450 # Check whether --with-tcpportrange or --without-tcpportrange was given.
5451 if test "${with_tcpportrange+set}" = set; then
5452   withval="$with_tcpportrange"
5453
5454         TCPPORTRANGE="$withval"
5455
5456
5457 fi;
5458 if test x"${TCPPORTRANGE+set}" = x"set"; then
5459     if test x`echo "$TCPPORTRANGE" | sed 's/[0-9][0-9]*,[0-9][0-9]*//'` != x""; then
5460         { { echo "$as_me:$LINENO: error: *** --with-tcpportrange requires two comma-separated positive numbers" >&5
5461 echo "$as_me: error: *** --with-tcpportrange requires two comma-separated positive numbers" >&2;}
5462    { (exit 1); exit 1; }; }
5463     fi
5464     min_tcp_port=`echo "$TCPPORTRANGE" | sed 's/,.*//'`
5465     max_tcp_port=`echo "$TCPPORTRANGE" | sed 's/.*,//'`
5466     if test $min_tcp_port -gt $max_tcp_port; then
5467         { { echo "$as_me:$LINENO: error: *** the second TCP port number must be greater than the first in --with-tcpportrange" >&5
5468 echo "$as_me: error: *** the second TCP port number must be greater than the first in --with-tcpportrange" >&2;}
5469    { (exit 1); exit 1; }; }
5470     fi
5471     if test $min_tcp_port -lt 1024; then
5472         { echo "$as_me:$LINENO: WARNING: *** the TCP port range should be 1024 or greater in --with-tcpportrange" >&5
5473 echo "$as_me: WARNING: *** the TCP port range should be 1024 or greater in --with-tcpportrange" >&2;}
5474     fi
5475     if test $max_tcp_port -ge 65536; then
5476         { echo "$as_me:$LINENO: WARNING: *** the TCP port range should be less than 65536 in --with-tcpportrange" >&5
5477 echo "$as_me: WARNING: *** the TCP port range should be less than 65536 in --with-tcpportrange" >&2;}
5478     fi
5479
5480 cat >>confdefs.h <<_ACEOF
5481 #define TCPPORTRANGE $TCPPORTRANGE
5482 _ACEOF
5483
5484 fi
5485
5486
5487 # Check whether --with-udpportrange or --without-udpportrange was given.
5488 if test "${with_udpportrange+set}" = set; then
5489   withval="$with_udpportrange"
5490
5491         UDPPORTRANGE="$withval"
5492
5493
5494 fi;
5495 if test x"${UDPPORTRANGE+set}" = x"set"; then
5496     if test x`echo "$UDPPORTRANGE" | sed 's/[0-9][0-9]*,[0-9][0-9]*//'` != x""; then
5497         { { echo "$as_me:$LINENO: error: *** --with-udpportrange requires two comma-separated positive numbers" >&5
5498 echo "$as_me: error: *** --with-udpportrange requires two comma-separated positive numbers" >&2;}
5499    { (exit 1); exit 1; }; }
5500     fi
5501     min_udp_port=`echo "$UDPPORTRANGE" | sed 's/,.*//'`
5502     max_udp_port=`echo "$UDPPORTRANGE" | sed 's/.*,//'`
5503     if test $min_udp_port -gt $max_udp_port; then
5504         { { echo "$as_me:$LINENO: error: *** the second UDP port number must be greater than the first in --with-udpportrange" >&5
5505 echo "$as_me: error: *** the second UDP port number must be greater than the first in --with-udpportrange" >&2;}
5506    { (exit 1); exit 1; }; }
5507     fi
5508     if test $max_udp_port -ge 1024; then
5509         { echo "$as_me:$LINENO: WARNING: *** the UDP port range should be less than 1024 in --with-udpportrange" >&5
5510 echo "$as_me: WARNING: *** the UDP port range should be less than 1024 in --with-udpportrange" >&2;}
5511     fi
5512     if test $min_udp_port -le 0; then
5513         { echo "$as_me:$LINENO: WARNING: *** the UDP port range should be greater than 0 in --with-udpportrange" >&5
5514 echo "$as_me: WARNING: *** the UDP port range should be greater than 0 in --with-udpportrange" >&2;}
5515     fi
5516
5517 cat >>confdefs.h <<_ACEOF
5518 #define UDPPORTRANGE $UDPPORTRANGE
5519 _ACEOF
5520
5521 fi
5522
5523
5524 # Check whether --with-maxtapeblocksize or --without-maxtapeblocksize was given.
5525 if test "${with_maxtapeblocksize+set}" = set; then
5526   withval="$with_maxtapeblocksize"
5527
5528         MAXTAPEBLOCKSIZE="$withval"
5529
5530 else
5531   : ${MAXTAPEBLOCKSIZE=32}
5532
5533 fi;
5534
5535
5536 cat >>confdefs.h <<_ACEOF
5537 #define MAX_TAPE_BLOCK_KB ($MAXTAPEBLOCKSIZE)
5538 _ACEOF
5539
5540
5541
5542
5543 # Check whether --with-db or --without-db was given.
5544 if test "${with_db+set}" = set; then
5545   withval="$with_db"
5546
5547         case "$withval" in
5548         "" | y | ye | yes | n | no)
5549             { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-db option." >&5
5550 echo "$as_me: error: *** You must supply an argument to the --with-db option." >&2;}
5551    { (exit 1); exit 1; }; }
5552           ;;
5553         *) DB_STYLE="$withval"
5554           ;;
5555         esac
5556
5557
5558 fi;
5559 if test "$DB_STYLE"; then
5560     case "$DB_STYLE" in
5561         db | dbm | gdbm | ndbm | text)  ;;
5562         *)
5563             { { echo "$as_me:$LINENO: error: *** Unknown argument $DB_STYLE given to --with-db.  Choose from db, dbm, gdbm, ndbm, text." >&5
5564 echo "$as_me: error: *** Unknown argument $DB_STYLE given to --with-db.  Choose from db, dbm, gdbm, ndbm, text." >&2;}
5565    { (exit 1); exit 1; }; }
5566             DB_STYLE=
5567             ;;
5568     esac
5569 fi
5570
5571
5572 # Check whether --with-mmap or --without-mmap was given.
5573 if test "${with_mmap+set}" = set; then
5574   withval="$with_mmap"
5575   FORCE_MMAP=$withval
5576 else
5577   : ${FORCE_MMAP=no}
5578
5579 fi;
5580 case "$FORCE_MMAP" in
5581 y | ye | yes | n | no) : ;;
5582 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-mmap." >&5
5583 echo "$as_me: error: *** You must not supply an argument to --with-mmap." >&2;}
5584    { (exit 1); exit 1; }; }
5585   ;;
5586 esac
5587
5588
5589 # Check whether --with-buffered-dump or --without-buffered-dump was given.
5590 if test "${with_buffered_dump+set}" = set; then
5591   withval="$with_buffered_dump"
5592   DUMPER_SOCKET_BUFFERING=$withval
5593 else
5594   : ${DUMPER_SOCKET_BUFFERING=no}
5595
5596 fi;
5597 case "$DUMPER_SOCKET_BUFFERING" in
5598 n | no) :
5599   ;;
5600 y | ye | yes)
5601 cat >>confdefs.h <<\_ACEOF
5602 #define DUMPER_SOCKET_BUFFERING 1
5603 _ACEOF
5604
5605   ;;
5606 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-buffered-dump." >&5
5607 echo "$as_me: error: *** You must not supply an argument to --with-buffered-dump." >&2;}
5608    { (exit 1); exit 1; }; }
5609   ;;
5610 esac
5611
5612
5613 # Check whether --with-assertions or --without-assertions was given.
5614 if test "${with_assertions+set}" = set; then
5615   withval="$with_assertions"
5616   ASSERTIONS="$withval"
5617 else
5618   : ${ASSERTIONS=no}
5619
5620 fi;
5621 case "$ASSERTIONS" in
5622 n | no) : ;;
5623 y |  ye | yes)
5624 cat >>confdefs.h <<\_ACEOF
5625 #define ASSERTIONS 1
5626 _ACEOF
5627
5628   ;;
5629 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-assertions option." >&5
5630 echo "$as_me: error: *** You must not supply an argument to --with-assertions option." >&2;}
5631    { (exit 1); exit 1; }; }
5632   ;;
5633 esac
5634
5635
5636 # Check whether --with-tmpdir or --without-tmpdir was given.
5637 if test "${with_tmpdir+set}" = set; then
5638   withval="$with_tmpdir"
5639   tmpdir="$withval"
5640 else
5641   : ${tmpdir=yes}
5642
5643 fi;
5644 tmpdir=`(
5645     test "x$prefix" = xNONE && prefix=$ac_default_prefix
5646     test "x$exec_prefix" = xNONE && exec_prefix=${prefix}
5647     eval echo "$tmpdir"
5648 )`
5649 case "$tmpdir" in
5650 n | no) { { echo "$as_me:$LINENO: error: *** --without-tmpdir is not allowed." >&5
5651 echo "$as_me: error: *** --without-tmpdir is not allowed." >&2;}
5652    { (exit 1); exit 1; }; };;
5653 y |  ye | yes)
5654         AMANDA_TMPDIR="/tmp/amanda";;
5655 /*)
5656         AMANDA_TMPDIR="$tmpdir";;
5657 *) { { echo "$as_me:$LINENO: error: *** You must supply a full pathname to --with-tmpdir option." >&5
5658 echo "$as_me: error: *** You must supply a full pathname to --with-tmpdir option." >&2;}
5659    { (exit 1); exit 1; }; };;
5660 esac
5661
5662 cat >>confdefs.h <<_ACEOF
5663 #define AMANDA_TMPDIR "$AMANDA_TMPDIR"
5664 _ACEOF
5665
5666
5667
5668
5669 # Check whether --with-debugging or --without-debugging was given.
5670 if test "${with_debugging+set}" = set; then
5671   withval="$with_debugging"
5672   debugging="$withval"
5673 else
5674   : ${debugging=yes}
5675
5676 fi;
5677 debugging=`(
5678     test "x$prefix" = xNONE && prefix=$ac_default_prefix
5679     test "x$exec_prefix" = xNONE && exec_prefix=${prefix}
5680     eval echo "$debugging"
5681 )`
5682 case "$debugging" in
5683 n | no) AMANDA_DBGDIR="";;
5684 y |  ye | yes) AMANDA_DBGDIR="$AMANDA_TMPDIR";;
5685 /*) AMANDA_DBGDIR="$debugging";;
5686 *) { { echo "$as_me:$LINENO: error: *** You must supply a full pathname to --with-debugging option." >&5
5687 echo "$as_me: error: *** You must supply a full pathname to --with-debugging option." >&2;}
5688    { (exit 1); exit 1; }; }
5689   ;;
5690 esac
5691 case "$AMANDA_DBGDIR" in
5692 "") :;;
5693 *)
5694 cat >>confdefs.h <<\_ACEOF
5695 #define DEBUG_CODE 1
5696 _ACEOF
5697
5698
5699 cat >>confdefs.h <<_ACEOF
5700 #define AMANDA_DBGDIR "$AMANDA_DBGDIR"
5701 _ACEOF
5702
5703    ;;
5704 esac
5705
5706
5707 # Check whether --with-debug_days or --without-debug_days was given.
5708 if test "${with_debug_days+set}" = set; then
5709   withval="$with_debug_days"
5710   debug_days="$withval"
5711 else
5712   : ${debug_days=4}
5713
5714 fi;
5715 case "$debug_days" in
5716 n | no) AMANDA_DEBUG_DAYS=0 ;;
5717 y |  ye | yes) AMANDA_DEBUG_DAYS=4 ;;
5718 [0-9] | [0-9][0-9] | [0-9][0-9][0-9]) AMANDA_DEBUG_DAYS="$debug_days" ;;
5719 *) { { echo "$as_me:$LINENO: error: *** --with-debug-days value not numeric or out of range." >&5
5720 echo "$as_me: error: *** --with-debug-days value not numeric or out of range." >&2;}
5721    { (exit 1); exit 1; }; }
5722   ;;
5723 esac
5724
5725 cat >>confdefs.h <<_ACEOF
5726 #define AMANDA_DEBUG_DAYS $AMANDA_DEBUG_DAYS
5727 _ACEOF
5728
5729
5730
5731
5732 # Check whether --with-testing or --without-testing was given.
5733 if test "${with_testing+set}" = set; then
5734   withval="$with_testing"
5735   TESTING="$withval"
5736 else
5737   : ${TESTING=no}
5738
5739 fi;
5740 case "$TESTING" in
5741 n | no) SERVICE_SUFFIX="";;
5742 y |  ye | yes) SERVICE_SUFFIX="-test";;
5743 *) SERVICE_SUFFIX="-$TESTING";;
5744 esac
5745 AMANDA_SERVICE_NAME="amanda$SERVICE_SUFFIX"
5746 KAMANDA_SERVICE_NAME="kamanda$SERVICE_SUFFIX"
5747
5748
5749 cat >>confdefs.h <<_ACEOF
5750 #define SERVICE_SUFFIX "$SERVICE_SUFFIX"
5751 _ACEOF
5752
5753
5754 cat >>confdefs.h <<_ACEOF
5755 #define AMANDA_SERVICE_NAME "$AMANDA_SERVICE_NAME"
5756 _ACEOF
5757
5758
5759 cat >>confdefs.h <<_ACEOF
5760 #define KAMANDA_SERVICE_NAME "$KAMANDA_SERVICE_NAME"
5761 _ACEOF
5762
5763
5764 (
5765     test "x$prefix" = xNONE && prefix=$ac_default_prefix
5766     test "x$exec_prefix" = xNONE && exec_prefix=${prefix}
5767
5768     tmp=`eval echo "$bindir"`
5769
5770 cat >>confdefs.h <<_ACEOF
5771 #define bindir "$tmp"
5772 _ACEOF
5773
5774
5775     tmp=`eval echo "$sbindir"`
5776
5777 cat >>confdefs.h <<_ACEOF
5778 #define sbindir "$tmp"
5779 _ACEOF
5780
5781
5782     tmp=`eval echo "$libexecdir"`
5783
5784 cat >>confdefs.h <<_ACEOF
5785 #define libexecdir "$tmp"
5786 _ACEOF
5787
5788
5789     tmp=`eval echo $mandir`
5790
5791 cat >>confdefs.h <<_ACEOF
5792 #define mandir "$tmp"
5793 _ACEOF
5794
5795 )
5796
5797 DUMP_PROGRAMS="ufsdump dump backup"
5798 GETCONF_LFS="LFS"
5799
5800 dump_returns_1=
5801 xenix_tapeio=
5802 case "$target" in
5803     *-dec-osf*)
5804
5805 cat >>confdefs.h <<\_ACEOF
5806 #define STATFS_OSF1 1
5807 _ACEOF
5808
5809                         ;;
5810     *-dg-*)
5811                         DUMP_PROGRAMS="dump "$DUMP_PROGRAMS
5812                         : ${USE_RUNDUMP=yes}
5813                         dump_returns_1=yes
5814                         ;;
5815     *-netbsd*)
5816                         ;;
5817     *-freebsd*)
5818                         ;;
5819     *-openbsd*)
5820                         ;;
5821     *-hp-*)
5822                         MT_FILE_FLAG="-t"
5823                         GETCONF_LFS="XBS5_ILP32_OFFBIG"
5824                         case "$CC" in
5825                             *gcc*)
5826                                 AMANDA_CPPFLAGS="-D__STDC_EXT__ $AMANDA_CPPFLAGS"
5827                                 ;;
5828                             *cc*)
5829                                 AMANDA_CFLAGS="-Ae $AMANDA_CFLAGS"
5830                                 ;;
5831                         esac
5832                         ;;
5833   *-ibm-aix*)
5834                         GETCONF_LFS="XBS5_ILP32_OFFBIG"
5835                         DUMP_PROGRAMS="backup "$DUMP_PROGRAMS
5836
5837 cat >>confdefs.h <<\_ACEOF
5838 #define AIX_TAPEIO 1
5839 _ACEOF
5840
5841
5842 cat >>confdefs.h <<\_ACEOF
5843 #define AIX_BACKUP 1
5844 _ACEOF
5845
5846                         ;;
5847   m88k-motorola-sysv4)
5848                         ;;
5849   *-nextstep3)
5850                         ;;
5851   *-pc-bsdi*)
5852                         ;;
5853   *-pc-linux-*)
5854                         ;;
5855   *-redhat-linux-*)
5856                         ;;
5857   x86_64-*-linux-*)
5858                         ;;
5859   alpha*-*-linux-*)
5860                         ;;
5861   sparc*-*-linux-*)
5862                         ;;
5863   powerpc-*-linux-*)
5864                         ;;
5865   *-sgi-irix3*)
5866                                                 CC=gcc
5867                         ;;
5868   *-sgi-irix4*)
5869                         ;;
5870   *-sgi-irix5*)
5871                         ;;
5872   *-sgi-irix6*)
5873                         ;;
5874   *-solaris2*)
5875                         ;;
5876   *-sun-sunos4.1*)
5877                         ;;
5878   *-ultrix*)
5879                         : ${USE_RUNDUMP=yes}
5880
5881 cat >>confdefs.h <<\_ACEOF
5882 #define STATFS_ULTRIX 1
5883 _ACEOF
5884
5885                         dump_returns_1=yes
5886                         ;;
5887   *-sysv4.2uw2*)
5888
5889 cat >>confdefs.h <<\_ACEOF
5890 #define UWARE_TAPEIO 1
5891 _ACEOF
5892
5893                         ;;
5894   *-sco3.2v4*)
5895                         DEV_PREFIX=/dev/
5896                         RDEV_PREFIX=/dev/
5897                         ;;
5898   *-sco3.2v5*)
5899                         xenix_tapeio=yes
5900
5901 cat >>confdefs.h <<\_ACEOF
5902 #define STATFS_SCO_OS5 1
5903 _ACEOF
5904
5905                         ;;
5906   i386-pc-isc4*)
5907                         xenix_tapeio=yes
5908                         ;;
5909   *-sni-sysv4)
5910                         ;;
5911   *-pc-cygwin)
5912
5913 cat >>confdefs.h <<\_ACEOF
5914 #define IGNORE_TAR_ERRORS 1
5915 _ACEOF
5916
5917                         # Cygwin needs PATH to find cygwin1.dll
5918
5919 cat >>confdefs.h <<\_ACEOF
5920 #define NEED_PATH_ENV 1
5921 _ACEOF
5922
5923
5924 cat >>confdefs.h <<\_ACEOF
5925 #define IGNORE_UID_CHECK 1
5926 _ACEOF
5927
5928
5929 cat >>confdefs.h <<\_ACEOF
5930 #define IGNORE_FSTAB 1
5931 _ACEOF
5932
5933
5934 cat >>confdefs.h <<\_ACEOF
5935 #define DONT_SUID_ROOT 1
5936 _ACEOF
5937
5938                         NEED_SETUID_CLIENT=false
5939                         NEED_RUNTIME_PSEUDO_RELOC=true
5940                         BROKEN_IPV6=true
5941                         ;;
5942   *)
5943                         cat <<END
5944
5945 *****
5946 This machine, target type $target, is not known
5947 to be fully supported by this configure script.  If the
5948 installation of Amanda on this system succeeds or needed
5949 any patches, please email amanda-hackers@amanda.org with
5950 the patches or an indication of the sucess or failure of
5951 the Amanda installation on your system.
5952 *****
5953
5954 END
5955                 ;;
5956 esac
5957
5958 if test -n "$dump_returns_1"; then
5959
5960 cat >>confdefs.h <<\_ACEOF
5961 #define DUMP_RETURNS_1 1
5962 _ACEOF
5963
5964 fi
5965
5966 if test -n "$xenix_tapeio"; then
5967
5968 cat >>confdefs.h <<\_ACEOF
5969 #define XENIX_TAPEIO 1
5970 _ACEOF
5971
5972 fi
5973
5974 AMANDA_CFLAGS="$AMANDA_CFLAGS $KRB4INCLUDES $KRB5INCLUDES $DBMALLOCCFLAGS"
5975 AMANDA_CPPFLAGS="$AMANDA_CPPFLAGS $KRB4INCLUDES $KRB5INCLUDES $DBMALLOCINCLUDES"
5976 AMANDA_LDFLAGS="$AMANDA_LDFLAGS $KRB4LDFLAGS $KRB5LDFLAGS"
5977 AMANDA_LIBS="$KRB4LIBS $KRB5LIBS $DBMALLOCLIBS $AMANDA_LIBS"
5978 CFLAGS="$CFLAGS $AMANDA_CFLAGS"
5979 CPPFLAGS="$CPPFLAGS $AMANDA_CPPFLAGS"
5980 LDFLAGS="$LDFLAGS $AMANDA_LDFLAGS"
5981 LIBS="$AMANDA_LIBS $LIBS"
5982
5983
5984 : ${MT_FILE_FLAG="-f"}
5985
5986
5987 cat >>confdefs.h <<_ACEOF
5988 #define MT_FILE_FLAG "$MT_FILE_FLAG"
5989 _ACEOF
5990
5991
5992 ac_ext=c
5993 ac_cpp='$CPP $CPPFLAGS'
5994 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5995 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5996 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5997 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5998 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5999 # On Suns, sometimes $CPP names a directory.
6000 if test -n "$CPP" && test -d "$CPP"; then
6001   CPP=
6002 fi
6003 if test -z "$CPP"; then
6004   if test "${ac_cv_prog_CPP+set}" = set; then
6005   echo $ECHO_N "(cached) $ECHO_C" >&6
6006 else
6007       # Double quotes because CPP needs to be expanded
6008     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6009     do
6010       ac_preproc_ok=false
6011 for ac_c_preproc_warn_flag in '' yes
6012 do
6013   # Use a header file that comes with gcc, so configuring glibc
6014   # with a fresh cross-compiler works.
6015   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6016   # <limits.h> exists even on freestanding compilers.
6017   # On the NeXT, cc -E runs the code through the compiler's parser,
6018   # not just through cpp. "Syntax error" is here to catch this case.
6019   cat >conftest.$ac_ext <<_ACEOF
6020 /* confdefs.h.  */
6021 _ACEOF
6022 cat confdefs.h >>conftest.$ac_ext
6023 cat >>conftest.$ac_ext <<_ACEOF
6024 /* end confdefs.h.  */
6025 #ifdef __STDC__
6026 # include <limits.h>
6027 #else
6028 # include <assert.h>
6029 #endif
6030                      Syntax error
6031 _ACEOF
6032 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6033   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6034   ac_status=$?
6035   grep -v '^ *+' conftest.er1 >conftest.err
6036   rm -f conftest.er1
6037   cat conftest.err >&5
6038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6039   (exit $ac_status); } >/dev/null; then
6040   if test -s conftest.err; then
6041     ac_cpp_err=$ac_c_preproc_warn_flag
6042     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6043   else
6044     ac_cpp_err=
6045   fi
6046 else
6047   ac_cpp_err=yes
6048 fi
6049 if test -z "$ac_cpp_err"; then
6050   :
6051 else
6052   echo "$as_me: failed program was:" >&5
6053 sed 's/^/| /' conftest.$ac_ext >&5
6054
6055   # Broken: fails on valid input.
6056 continue
6057 fi
6058 rm -f conftest.err conftest.$ac_ext
6059
6060   # OK, works on sane cases.  Now check whether non-existent headers
6061   # can be detected and how.
6062   cat >conftest.$ac_ext <<_ACEOF
6063 /* confdefs.h.  */
6064 _ACEOF
6065 cat confdefs.h >>conftest.$ac_ext
6066 cat >>conftest.$ac_ext <<_ACEOF
6067 /* end confdefs.h.  */
6068 #include <ac_nonexistent.h>
6069 _ACEOF
6070 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6071   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6072   ac_status=$?
6073   grep -v '^ *+' conftest.er1 >conftest.err
6074   rm -f conftest.er1
6075   cat conftest.err >&5
6076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6077   (exit $ac_status); } >/dev/null; then
6078   if test -s conftest.err; then
6079     ac_cpp_err=$ac_c_preproc_warn_flag
6080     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6081   else
6082     ac_cpp_err=
6083   fi
6084 else
6085   ac_cpp_err=yes
6086 fi
6087 if test -z "$ac_cpp_err"; then
6088   # Broken: success on invalid input.
6089 continue
6090 else
6091   echo "$as_me: failed program was:" >&5
6092 sed 's/^/| /' conftest.$ac_ext >&5
6093
6094   # Passes both tests.
6095 ac_preproc_ok=:
6096 break
6097 fi
6098 rm -f conftest.err conftest.$ac_ext
6099
6100 done
6101 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6102 rm -f conftest.err conftest.$ac_ext
6103 if $ac_preproc_ok; then
6104   break
6105 fi
6106
6107     done
6108     ac_cv_prog_CPP=$CPP
6109
6110 fi
6111   CPP=$ac_cv_prog_CPP
6112 else
6113   ac_cv_prog_CPP=$CPP
6114 fi
6115 echo "$as_me:$LINENO: result: $CPP" >&5
6116 echo "${ECHO_T}$CPP" >&6
6117 ac_preproc_ok=false
6118 for ac_c_preproc_warn_flag in '' yes
6119 do
6120   # Use a header file that comes with gcc, so configuring glibc
6121   # with a fresh cross-compiler works.
6122   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6123   # <limits.h> exists even on freestanding compilers.
6124   # On the NeXT, cc -E runs the code through the compiler's parser,
6125   # not just through cpp. "Syntax error" is here to catch this case.
6126   cat >conftest.$ac_ext <<_ACEOF
6127 /* confdefs.h.  */
6128 _ACEOF
6129 cat confdefs.h >>conftest.$ac_ext
6130 cat >>conftest.$ac_ext <<_ACEOF
6131 /* end confdefs.h.  */
6132 #ifdef __STDC__
6133 # include <limits.h>
6134 #else
6135 # include <assert.h>
6136 #endif
6137                      Syntax error
6138 _ACEOF
6139 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6140   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6141   ac_status=$?
6142   grep -v '^ *+' conftest.er1 >conftest.err
6143   rm -f conftest.er1
6144   cat conftest.err >&5
6145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6146   (exit $ac_status); } >/dev/null; then
6147   if test -s conftest.err; then
6148     ac_cpp_err=$ac_c_preproc_warn_flag
6149     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6150   else
6151     ac_cpp_err=
6152   fi
6153 else
6154   ac_cpp_err=yes
6155 fi
6156 if test -z "$ac_cpp_err"; then
6157   :
6158 else
6159   echo "$as_me: failed program was:" >&5
6160 sed 's/^/| /' conftest.$ac_ext >&5
6161
6162   # Broken: fails on valid input.
6163 continue
6164 fi
6165 rm -f conftest.err conftest.$ac_ext
6166
6167   # OK, works on sane cases.  Now check whether non-existent headers
6168   # can be detected and how.
6169   cat >conftest.$ac_ext <<_ACEOF
6170 /* confdefs.h.  */
6171 _ACEOF
6172 cat confdefs.h >>conftest.$ac_ext
6173 cat >>conftest.$ac_ext <<_ACEOF
6174 /* end confdefs.h.  */
6175 #include <ac_nonexistent.h>
6176 _ACEOF
6177 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6178   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6179   ac_status=$?
6180   grep -v '^ *+' conftest.er1 >conftest.err
6181   rm -f conftest.er1
6182   cat conftest.err >&5
6183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6184   (exit $ac_status); } >/dev/null; then
6185   if test -s conftest.err; then
6186     ac_cpp_err=$ac_c_preproc_warn_flag
6187     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6188   else
6189     ac_cpp_err=
6190   fi
6191 else
6192   ac_cpp_err=yes
6193 fi
6194 if test -z "$ac_cpp_err"; then
6195   # Broken: success on invalid input.
6196 continue
6197 else
6198   echo "$as_me: failed program was:" >&5
6199 sed 's/^/| /' conftest.$ac_ext >&5
6200
6201   # Passes both tests.
6202 ac_preproc_ok=:
6203 break
6204 fi
6205 rm -f conftest.err conftest.$ac_ext
6206
6207 done
6208 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6209 rm -f conftest.err conftest.$ac_ext
6210 if $ac_preproc_ok; then
6211   :
6212 else
6213   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6214 See \`config.log' for more details." >&5
6215 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6216 See \`config.log' for more details." >&2;}
6217    { (exit 1); exit 1; }; }
6218 fi
6219
6220 ac_ext=c
6221 ac_cpp='$CPP $CPPFLAGS'
6222 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6223 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6224 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6225
6226
6227 echo "$as_me:$LINENO: checking for egrep" >&5
6228 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6229 if test "${ac_cv_prog_egrep+set}" = set; then
6230   echo $ECHO_N "(cached) $ECHO_C" >&6
6231 else
6232   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6233     then ac_cv_prog_egrep='grep -E'
6234     else ac_cv_prog_egrep='egrep'
6235     fi
6236 fi
6237 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6238 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6239  EGREP=$ac_cv_prog_egrep
6240
6241
6242 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6243 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6244 if test "${ac_cv_header_stdc+set}" = set; then
6245   echo $ECHO_N "(cached) $ECHO_C" >&6
6246 else
6247   cat >conftest.$ac_ext <<_ACEOF
6248 /* confdefs.h.  */
6249 _ACEOF
6250 cat confdefs.h >>conftest.$ac_ext
6251 cat >>conftest.$ac_ext <<_ACEOF
6252 /* end confdefs.h.  */
6253 #include <stdlib.h>
6254 #include <stdarg.h>
6255 #include <string.h>
6256 #include <float.h>
6257
6258 int
6259 main ()
6260 {
6261
6262   ;
6263   return 0;
6264 }
6265 _ACEOF
6266 rm -f conftest.$ac_objext
6267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6268   (eval $ac_compile) 2>conftest.er1
6269   ac_status=$?
6270   grep -v '^ *+' conftest.er1 >conftest.err
6271   rm -f conftest.er1
6272   cat conftest.err >&5
6273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6274   (exit $ac_status); } &&
6275          { ac_try='test -z "$ac_c_werror_flag"
6276                          || test ! -s conftest.err'
6277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6278   (eval $ac_try) 2>&5
6279   ac_status=$?
6280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6281   (exit $ac_status); }; } &&
6282          { ac_try='test -s conftest.$ac_objext'
6283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6284   (eval $ac_try) 2>&5
6285   ac_status=$?
6286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6287   (exit $ac_status); }; }; then
6288   ac_cv_header_stdc=yes
6289 else
6290   echo "$as_me: failed program was:" >&5
6291 sed 's/^/| /' conftest.$ac_ext >&5
6292
6293 ac_cv_header_stdc=no
6294 fi
6295 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6296
6297 if test $ac_cv_header_stdc = yes; then
6298   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6299   cat >conftest.$ac_ext <<_ACEOF
6300 /* confdefs.h.  */
6301 _ACEOF
6302 cat confdefs.h >>conftest.$ac_ext
6303 cat >>conftest.$ac_ext <<_ACEOF
6304 /* end confdefs.h.  */
6305 #include <string.h>
6306
6307 _ACEOF
6308 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6309   $EGREP "memchr" >/dev/null 2>&1; then
6310   :
6311 else
6312   ac_cv_header_stdc=no
6313 fi
6314 rm -f conftest*
6315
6316 fi
6317
6318 if test $ac_cv_header_stdc = yes; then
6319   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6320   cat >conftest.$ac_ext <<_ACEOF
6321 /* confdefs.h.  */
6322 _ACEOF
6323 cat confdefs.h >>conftest.$ac_ext
6324 cat >>conftest.$ac_ext <<_ACEOF
6325 /* end confdefs.h.  */
6326 #include <stdlib.h>
6327
6328 _ACEOF
6329 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6330   $EGREP "free" >/dev/null 2>&1; then
6331   :
6332 else
6333   ac_cv_header_stdc=no
6334 fi
6335 rm -f conftest*
6336
6337 fi
6338
6339 if test $ac_cv_header_stdc = yes; then
6340   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6341   if test "$cross_compiling" = yes; then
6342   :
6343 else
6344   cat >conftest.$ac_ext <<_ACEOF
6345 /* confdefs.h.  */
6346 _ACEOF
6347 cat confdefs.h >>conftest.$ac_ext
6348 cat >>conftest.$ac_ext <<_ACEOF
6349 /* end confdefs.h.  */
6350 #include <ctype.h>
6351 #if ((' ' & 0x0FF) == 0x020)
6352 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6353 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6354 #else
6355 # define ISLOWER(c) \
6356                    (('a' <= (c) && (c) <= 'i') \
6357                      || ('j' <= (c) && (c) <= 'r') \
6358                      || ('s' <= (c) && (c) <= 'z'))
6359 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6360 #endif
6361
6362 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6363 int
6364 main ()
6365 {
6366   int i;
6367   for (i = 0; i < 256; i++)
6368     if (XOR (islower (i), ISLOWER (i))
6369         || toupper (i) != TOUPPER (i))
6370       exit(2);
6371   exit (0);
6372 }
6373 _ACEOF
6374 rm -f conftest$ac_exeext
6375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6376   (eval $ac_link) 2>&5
6377   ac_status=$?
6378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6379   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6381   (eval $ac_try) 2>&5
6382   ac_status=$?
6383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6384   (exit $ac_status); }; }; then
6385   :
6386 else
6387   echo "$as_me: program exited with status $ac_status" >&5
6388 echo "$as_me: failed program was:" >&5
6389 sed 's/^/| /' conftest.$ac_ext >&5
6390
6391 ( exit $ac_status )
6392 ac_cv_header_stdc=no
6393 fi
6394 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6395 fi
6396 fi
6397 fi
6398 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6399 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6400 if test $ac_cv_header_stdc = yes; then
6401
6402 cat >>confdefs.h <<\_ACEOF
6403 #define STDC_HEADERS 1
6404 _ACEOF
6405
6406 fi
6407
6408 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6419                   inttypes.h stdint.h unistd.h
6420 do
6421 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6422 echo "$as_me:$LINENO: checking for $ac_header" >&5
6423 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6424 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6425   echo $ECHO_N "(cached) $ECHO_C" >&6
6426 else
6427   cat >conftest.$ac_ext <<_ACEOF
6428 /* confdefs.h.  */
6429 _ACEOF
6430 cat confdefs.h >>conftest.$ac_ext
6431 cat >>conftest.$ac_ext <<_ACEOF
6432 /* end confdefs.h.  */
6433 $ac_includes_default
6434
6435 #include <$ac_header>
6436 _ACEOF
6437 rm -f conftest.$ac_objext
6438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6439   (eval $ac_compile) 2>conftest.er1
6440   ac_status=$?
6441   grep -v '^ *+' conftest.er1 >conftest.err
6442   rm -f conftest.er1
6443   cat conftest.err >&5
6444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6445   (exit $ac_status); } &&
6446          { ac_try='test -z "$ac_c_werror_flag"
6447                          || test ! -s conftest.err'
6448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6449   (eval $ac_try) 2>&5
6450   ac_status=$?
6451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6452   (exit $ac_status); }; } &&
6453          { ac_try='test -s conftest.$ac_objext'
6454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6455   (eval $ac_try) 2>&5
6456   ac_status=$?
6457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6458   (exit $ac_status); }; }; then
6459   eval "$as_ac_Header=yes"
6460 else
6461   echo "$as_me: failed program was:" >&5
6462 sed 's/^/| /' conftest.$ac_ext >&5
6463
6464 eval "$as_ac_Header=no"
6465 fi
6466 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6467 fi
6468 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6469 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6470 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6471   cat >>confdefs.h <<_ACEOF
6472 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6473 _ACEOF
6474
6475 fi
6476
6477 done
6478
6479
6480 # ------ AX CREATE STDINT H -------------------------------------
6481 echo "$as_me:$LINENO: checking for stdint types" >&5
6482 echo $ECHO_N "checking for stdint types... $ECHO_C" >&6
6483 ac_stdint_h=`echo common-src/amanda-int.h`
6484 # try to shortcircuit - if the default include path of the compiler
6485 # can find a "stdint.h" header then we assume that all compilers can.
6486 if test "${ac_cv_header_stdint_t+set}" = set; then
6487   echo $ECHO_N "(cached) $ECHO_C" >&6
6488 else
6489
6490 old_CXXFLAGS="$CXXFLAGS" ; CXXFLAGS=""
6491 old_CPPFLAGS="$CPPFLAGS" ; CPPFLAGS=""
6492 old_CFLAGS="$CFLAGS"     ; CFLAGS=""
6493 cat >conftest.$ac_ext <<_ACEOF
6494 /* confdefs.h.  */
6495 _ACEOF
6496 cat confdefs.h >>conftest.$ac_ext
6497 cat >>conftest.$ac_ext <<_ACEOF
6498 /* end confdefs.h.  */
6499 #include <stdint.h>
6500 int
6501 main ()
6502 {
6503 int_least32_t v = 0;
6504   ;
6505   return 0;
6506 }
6507 _ACEOF
6508 rm -f conftest.$ac_objext
6509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6510   (eval $ac_compile) 2>conftest.er1
6511   ac_status=$?
6512   grep -v '^ *+' conftest.er1 >conftest.err
6513   rm -f conftest.er1
6514   cat conftest.err >&5
6515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6516   (exit $ac_status); } &&
6517          { ac_try='test -z "$ac_c_werror_flag"
6518                          || test ! -s conftest.err'
6519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6520   (eval $ac_try) 2>&5
6521   ac_status=$?
6522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6523   (exit $ac_status); }; } &&
6524          { ac_try='test -s conftest.$ac_objext'
6525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6526   (eval $ac_try) 2>&5
6527   ac_status=$?
6528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6529   (exit $ac_status); }; }; then
6530   ac_cv_stdint_result="(assuming C99 compatible system)"
6531  ac_cv_header_stdint_t="stdint.h";
6532 else
6533   echo "$as_me: failed program was:" >&5
6534 sed 's/^/| /' conftest.$ac_ext >&5
6535
6536 ac_cv_header_stdint_t=""
6537 fi
6538 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6539 CXXFLAGS="$old_CXXFLAGS"
6540 CPPFLAGS="$old_CPPFLAGS"
6541 CFLAGS="$old_CFLAGS"
6542 fi
6543
6544
6545 v="... $ac_cv_header_stdint_h"
6546 if test "$ac_stdint_h" = "stdint.h" ; then
6547  echo "$as_me:$LINENO: result: (are you sure you want them in ./stdint.h?)" >&5
6548 echo "${ECHO_T}(are you sure you want them in ./stdint.h?)" >&6
6549 elif test "$ac_stdint_h" = "inttypes.h" ; then
6550  echo "$as_me:$LINENO: result: (are you sure you want them in ./inttypes.h?)" >&5
6551 echo "${ECHO_T}(are you sure you want them in ./inttypes.h?)" >&6
6552 elif test "_$ac_cv_header_stdint_t" = "_" ; then
6553  echo "$as_me:$LINENO: result: (putting them into $ac_stdint_h)$v" >&5
6554 echo "${ECHO_T}(putting them into $ac_stdint_h)$v" >&6
6555 else
6556  ac_cv_header_stdint="$ac_cv_header_stdint_t"
6557  echo "$as_me:$LINENO: result: $ac_cv_header_stdint (shortcircuit)" >&5
6558 echo "${ECHO_T}$ac_cv_header_stdint (shortcircuit)" >&6
6559 fi
6560
6561 if test "_$ac_cv_header_stdint_t" = "_" ; then # can not shortcircuit..
6562
6563
6564 inttype_headers=`echo  | sed -e 's/,/ /g'`
6565
6566 ac_cv_stdint_result="(no helpful system typedefs seen)"
6567
6568 echo "$as_me:$LINENO: checking for stdint uintptr_t" >&5
6569 echo $ECHO_N "checking for stdint uintptr_t... $ECHO_C" >&6
6570 if test "${ac_cv_header_stdint_x+set}" = set; then
6571   echo $ECHO_N "(cached) $ECHO_C" >&6
6572 else
6573
6574  ac_cv_header_stdint_x="" # the 1997 typedefs (inttypes.h)
6575   echo "$as_me:$LINENO: result: (..)" >&5
6576 echo "${ECHO_T}(..)" >&6
6577   for i in    stdint.h inttypes.h sys/inttypes.h $inttype_headers ; do
6578    unset ac_cv_type_uintptr_t
6579    unset ac_cv_type_uint64_t
6580    echo "$as_me:$LINENO: checking for uintptr_t" >&5
6581 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
6582 if test "${ac_cv_type_uintptr_t+set}" = set; then
6583   echo $ECHO_N "(cached) $ECHO_C" >&6
6584 else
6585   cat >conftest.$ac_ext <<_ACEOF
6586 /* confdefs.h.  */
6587 _ACEOF
6588 cat confdefs.h >>conftest.$ac_ext
6589 cat >>conftest.$ac_ext <<_ACEOF
6590 /* end confdefs.h.  */
6591 #include <$i>
6592
6593 int
6594 main ()
6595 {
6596 if ((uintptr_t *) 0)
6597   return 0;
6598 if (sizeof (uintptr_t))
6599   return 0;
6600   ;
6601   return 0;
6602 }
6603 _ACEOF
6604 rm -f conftest.$ac_objext
6605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6606   (eval $ac_compile) 2>conftest.er1
6607   ac_status=$?
6608   grep -v '^ *+' conftest.er1 >conftest.err
6609   rm -f conftest.er1
6610   cat conftest.err >&5
6611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6612   (exit $ac_status); } &&
6613          { ac_try='test -z "$ac_c_werror_flag"
6614                          || test ! -s conftest.err'
6615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6616   (eval $ac_try) 2>&5
6617   ac_status=$?
6618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6619   (exit $ac_status); }; } &&
6620          { ac_try='test -s conftest.$ac_objext'
6621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6622   (eval $ac_try) 2>&5
6623   ac_status=$?
6624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6625   (exit $ac_status); }; }; then
6626   ac_cv_type_uintptr_t=yes
6627 else
6628   echo "$as_me: failed program was:" >&5
6629 sed 's/^/| /' conftest.$ac_ext >&5
6630
6631 ac_cv_type_uintptr_t=no
6632 fi
6633 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6634 fi
6635 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
6636 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
6637 if test $ac_cv_type_uintptr_t = yes; then
6638   ac_cv_header_stdint_x=$i
6639 else
6640   continue
6641 fi
6642
6643    echo "$as_me:$LINENO: checking for uint64_t" >&5
6644 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
6645 if test "${ac_cv_type_uint64_t+set}" = set; then
6646   echo $ECHO_N "(cached) $ECHO_C" >&6
6647 else
6648   cat >conftest.$ac_ext <<_ACEOF
6649 /* confdefs.h.  */
6650 _ACEOF
6651 cat confdefs.h >>conftest.$ac_ext
6652 cat >>conftest.$ac_ext <<_ACEOF
6653 /* end confdefs.h.  */
6654 #include<$i>
6655
6656 int
6657 main ()
6658 {
6659 if ((uint64_t *) 0)
6660   return 0;
6661 if (sizeof (uint64_t))
6662   return 0;
6663   ;
6664   return 0;
6665 }
6666 _ACEOF
6667 rm -f conftest.$ac_objext
6668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6669   (eval $ac_compile) 2>conftest.er1
6670   ac_status=$?
6671   grep -v '^ *+' conftest.er1 >conftest.err
6672   rm -f conftest.er1
6673   cat conftest.err >&5
6674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6675   (exit $ac_status); } &&
6676          { ac_try='test -z "$ac_c_werror_flag"
6677                          || test ! -s conftest.err'
6678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6679   (eval $ac_try) 2>&5
6680   ac_status=$?
6681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6682   (exit $ac_status); }; } &&
6683          { ac_try='test -s conftest.$ac_objext'
6684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6685   (eval $ac_try) 2>&5
6686   ac_status=$?
6687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6688   (exit $ac_status); }; }; then
6689   ac_cv_type_uint64_t=yes
6690 else
6691   echo "$as_me: failed program was:" >&5
6692 sed 's/^/| /' conftest.$ac_ext >&5
6693
6694 ac_cv_type_uint64_t=no
6695 fi
6696 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6697 fi
6698 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
6699 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
6700 if test $ac_cv_type_uint64_t = yes; then
6701   and64="/uint64_t"
6702 else
6703   and64=""
6704 fi
6705
6706       stdint.h inttypes.h sys/inttypes.h $inttype_headers
6707  break
6708   done
6709   echo "$as_me:$LINENO: checking for stdint uintptr_t" >&5
6710 echo $ECHO_N "checking for stdint uintptr_t... $ECHO_C" >&6
6711
6712 fi
6713 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_x" >&5
6714 echo "${ECHO_T}$ac_cv_header_stdint_x" >&6
6715
6716
6717 if test "_$ac_cv_header_stdint_x" = "_" ; then
6718
6719 echo "$as_me:$LINENO: checking for stdint uint32_t" >&5
6720 echo $ECHO_N "checking for stdint uint32_t... $ECHO_C" >&6
6721 if test "${ac_cv_header_stdint_o+set}" = set; then
6722   echo $ECHO_N "(cached) $ECHO_C" >&6
6723 else
6724
6725  ac_cv_header_stdint_o="" # the 1995 typedefs (sys/inttypes.h)
6726   echo "$as_me:$LINENO: result: (..)" >&5
6727 echo "${ECHO_T}(..)" >&6
6728   for i in    inttypes.h sys/inttypes.h stdint.h $inttype_headers ; do
6729    unset ac_cv_type_uint32_t
6730    unset ac_cv_type_uint64_t
6731    echo "$as_me:$LINENO: checking for uint32_t" >&5
6732 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
6733 if test "${ac_cv_type_uint32_t+set}" = set; then
6734   echo $ECHO_N "(cached) $ECHO_C" >&6
6735 else
6736   cat >conftest.$ac_ext <<_ACEOF
6737 /* confdefs.h.  */
6738 _ACEOF
6739 cat confdefs.h >>conftest.$ac_ext
6740 cat >>conftest.$ac_ext <<_ACEOF
6741 /* end confdefs.h.  */
6742 #include <$i>
6743
6744 int
6745 main ()
6746 {
6747 if ((uint32_t *) 0)
6748   return 0;
6749 if (sizeof (uint32_t))
6750   return 0;
6751   ;
6752   return 0;
6753 }
6754 _ACEOF
6755 rm -f conftest.$ac_objext
6756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6757   (eval $ac_compile) 2>conftest.er1
6758   ac_status=$?
6759   grep -v '^ *+' conftest.er1 >conftest.err
6760   rm -f conftest.er1
6761   cat conftest.err >&5
6762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6763   (exit $ac_status); } &&
6764          { ac_try='test -z "$ac_c_werror_flag"
6765                          || test ! -s conftest.err'
6766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6767   (eval $ac_try) 2>&5
6768   ac_status=$?
6769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6770   (exit $ac_status); }; } &&
6771          { ac_try='test -s conftest.$ac_objext'
6772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6773   (eval $ac_try) 2>&5
6774   ac_status=$?
6775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6776   (exit $ac_status); }; }; then
6777   ac_cv_type_uint32_t=yes
6778 else
6779   echo "$as_me: failed program was:" >&5
6780 sed 's/^/| /' conftest.$ac_ext >&5
6781
6782 ac_cv_type_uint32_t=no
6783 fi
6784 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6785 fi
6786 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
6787 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
6788 if test $ac_cv_type_uint32_t = yes; then
6789   ac_cv_header_stdint_o=$i
6790 else
6791   continue
6792 fi
6793
6794    echo "$as_me:$LINENO: checking for uint64_t" >&5
6795 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
6796 if test "${ac_cv_type_uint64_t+set}" = set; then
6797   echo $ECHO_N "(cached) $ECHO_C" >&6
6798 else
6799   cat >conftest.$ac_ext <<_ACEOF
6800 /* confdefs.h.  */
6801 _ACEOF
6802 cat confdefs.h >>conftest.$ac_ext
6803 cat >>conftest.$ac_ext <<_ACEOF
6804 /* end confdefs.h.  */
6805 #include<$i>
6806
6807 int
6808 main ()
6809 {
6810 if ((uint64_t *) 0)
6811   return 0;
6812 if (sizeof (uint64_t))
6813   return 0;
6814   ;
6815   return 0;
6816 }
6817 _ACEOF
6818 rm -f conftest.$ac_objext
6819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6820   (eval $ac_compile) 2>conftest.er1
6821   ac_status=$?
6822   grep -v '^ *+' conftest.er1 >conftest.err
6823   rm -f conftest.er1
6824   cat conftest.err >&5
6825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6826   (exit $ac_status); } &&
6827          { ac_try='test -z "$ac_c_werror_flag"
6828                          || test ! -s conftest.err'
6829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6830   (eval $ac_try) 2>&5
6831   ac_status=$?
6832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6833   (exit $ac_status); }; } &&
6834          { ac_try='test -s conftest.$ac_objext'
6835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6836   (eval $ac_try) 2>&5
6837   ac_status=$?
6838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6839   (exit $ac_status); }; }; then
6840   ac_cv_type_uint64_t=yes
6841 else
6842   echo "$as_me: failed program was:" >&5
6843 sed 's/^/| /' conftest.$ac_ext >&5
6844
6845 ac_cv_type_uint64_t=no
6846 fi
6847 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6848 fi
6849 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
6850 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
6851 if test $ac_cv_type_uint64_t = yes; then
6852   and64="/uint64_t"
6853 else
6854   and64=""
6855 fi
6856
6857       inttypes.h sys/inttypes.h stdint.h $inttype_headers
6858  break
6859    break;
6860   done
6861   echo "$as_me:$LINENO: checking for stdint uint32_t" >&5
6862 echo $ECHO_N "checking for stdint uint32_t... $ECHO_C" >&6
6863
6864 fi
6865 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_o" >&5
6866 echo "${ECHO_T}$ac_cv_header_stdint_o" >&6
6867
6868 fi
6869
6870 if test "_$ac_cv_header_stdint_x" = "_" ; then
6871 if test "_$ac_cv_header_stdint_o" = "_" ; then
6872
6873 echo "$as_me:$LINENO: checking for stdint u_int32_t" >&5
6874 echo $ECHO_N "checking for stdint u_int32_t... $ECHO_C" >&6
6875 if test "${ac_cv_header_stdint_u+set}" = set; then
6876   echo $ECHO_N "(cached) $ECHO_C" >&6
6877 else
6878
6879  ac_cv_header_stdint_u="" # the BSD typedefs (sys/types.h)
6880   echo "$as_me:$LINENO: result: (..)" >&5
6881 echo "${ECHO_T}(..)" >&6
6882   for i in    sys/types.h inttypes.h sys/inttypes.h $inttype_headers ; do
6883    unset ac_cv_type_u_int32_t
6884    unset ac_cv_type_u_int64_t
6885    echo "$as_me:$LINENO: checking for u_int32_t" >&5
6886 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
6887 if test "${ac_cv_type_u_int32_t+set}" = set; then
6888   echo $ECHO_N "(cached) $ECHO_C" >&6
6889 else
6890   cat >conftest.$ac_ext <<_ACEOF
6891 /* confdefs.h.  */
6892 _ACEOF
6893 cat confdefs.h >>conftest.$ac_ext
6894 cat >>conftest.$ac_ext <<_ACEOF
6895 /* end confdefs.h.  */
6896 #include <$i>
6897
6898 int
6899 main ()
6900 {
6901 if ((u_int32_t *) 0)
6902   return 0;
6903 if (sizeof (u_int32_t))
6904   return 0;
6905   ;
6906   return 0;
6907 }
6908 _ACEOF
6909 rm -f conftest.$ac_objext
6910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6911   (eval $ac_compile) 2>conftest.er1
6912   ac_status=$?
6913   grep -v '^ *+' conftest.er1 >conftest.err
6914   rm -f conftest.er1
6915   cat conftest.err >&5
6916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6917   (exit $ac_status); } &&
6918          { ac_try='test -z "$ac_c_werror_flag"
6919                          || test ! -s conftest.err'
6920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6921   (eval $ac_try) 2>&5
6922   ac_status=$?
6923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6924   (exit $ac_status); }; } &&
6925          { ac_try='test -s conftest.$ac_objext'
6926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6927   (eval $ac_try) 2>&5
6928   ac_status=$?
6929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6930   (exit $ac_status); }; }; then
6931   ac_cv_type_u_int32_t=yes
6932 else
6933   echo "$as_me: failed program was:" >&5
6934 sed 's/^/| /' conftest.$ac_ext >&5
6935
6936 ac_cv_type_u_int32_t=no
6937 fi
6938 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6939 fi
6940 echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
6941 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
6942 if test $ac_cv_type_u_int32_t = yes; then
6943   ac_cv_header_stdint_u=$i
6944 else
6945   continue
6946 fi
6947
6948    echo "$as_me:$LINENO: checking for u_int64_t" >&5
6949 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
6950 if test "${ac_cv_type_u_int64_t+set}" = set; then
6951   echo $ECHO_N "(cached) $ECHO_C" >&6
6952 else
6953   cat >conftest.$ac_ext <<_ACEOF
6954 /* confdefs.h.  */
6955 _ACEOF
6956 cat confdefs.h >>conftest.$ac_ext
6957 cat >>conftest.$ac_ext <<_ACEOF
6958 /* end confdefs.h.  */
6959 #include<$i>
6960
6961 int
6962 main ()
6963 {
6964 if ((u_int64_t *) 0)
6965   return 0;
6966 if (sizeof (u_int64_t))
6967   return 0;
6968   ;
6969   return 0;
6970 }
6971 _ACEOF
6972 rm -f conftest.$ac_objext
6973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6974   (eval $ac_compile) 2>conftest.er1
6975   ac_status=$?
6976   grep -v '^ *+' conftest.er1 >conftest.err
6977   rm -f conftest.er1
6978   cat conftest.err >&5
6979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6980   (exit $ac_status); } &&
6981          { ac_try='test -z "$ac_c_werror_flag"
6982                          || test ! -s conftest.err'
6983   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6984   (eval $ac_try) 2>&5
6985   ac_status=$?
6986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6987   (exit $ac_status); }; } &&
6988          { ac_try='test -s conftest.$ac_objext'
6989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6990   (eval $ac_try) 2>&5
6991   ac_status=$?
6992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6993   (exit $ac_status); }; }; then
6994   ac_cv_type_u_int64_t=yes
6995 else
6996   echo "$as_me: failed program was:" >&5
6997 sed 's/^/| /' conftest.$ac_ext >&5
6998
6999 ac_cv_type_u_int64_t=no
7000 fi
7001 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7002 fi
7003 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
7004 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
7005 if test $ac_cv_type_u_int64_t = yes; then
7006   and64="/u_int64_t"
7007 else
7008   and64=""
7009 fi
7010
7011       sys/types.h inttypes.h sys/inttypes.h $inttype_headers
7012  break
7013    break;
7014   done
7015   echo "$as_me:$LINENO: checking for stdint u_int32_t" >&5
7016 echo $ECHO_N "checking for stdint u_int32_t... $ECHO_C" >&6
7017
7018 fi
7019 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_u" >&5
7020 echo "${ECHO_T}$ac_cv_header_stdint_u" >&6
7021
7022 fi fi
7023
7024 if test "_$ac_cv_header_stdint_x" = "_" ; then
7025    echo "$as_me:$LINENO: checking for stdint datatype model" >&5
7026 echo $ECHO_N "checking for stdint datatype model... $ECHO_C" >&6
7027    echo "$as_me:$LINENO: result: (..)" >&5
7028 echo "${ECHO_T}(..)" >&6
7029
7030    echo "$as_me:$LINENO: checking for char" >&5
7031 echo $ECHO_N "checking for char... $ECHO_C" >&6
7032 if test "${ac_cv_type_char+set}" = set; then
7033   echo $ECHO_N "(cached) $ECHO_C" >&6
7034 else
7035   cat >conftest.$ac_ext <<_ACEOF
7036 /* confdefs.h.  */
7037 _ACEOF
7038 cat confdefs.h >>conftest.$ac_ext
7039 cat >>conftest.$ac_ext <<_ACEOF
7040 /* end confdefs.h.  */
7041 $ac_includes_default
7042 int
7043 main ()
7044 {
7045 if ((char *) 0)
7046   return 0;
7047 if (sizeof (char))
7048   return 0;
7049   ;
7050   return 0;
7051 }
7052 _ACEOF
7053 rm -f conftest.$ac_objext
7054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7055   (eval $ac_compile) 2>conftest.er1
7056   ac_status=$?
7057   grep -v '^ *+' conftest.er1 >conftest.err
7058   rm -f conftest.er1
7059   cat conftest.err >&5
7060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7061   (exit $ac_status); } &&
7062          { ac_try='test -z "$ac_c_werror_flag"
7063                          || test ! -s conftest.err'
7064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7065   (eval $ac_try) 2>&5
7066   ac_status=$?
7067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7068   (exit $ac_status); }; } &&
7069          { ac_try='test -s conftest.$ac_objext'
7070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7071   (eval $ac_try) 2>&5
7072   ac_status=$?
7073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7074   (exit $ac_status); }; }; then
7075   ac_cv_type_char=yes
7076 else
7077   echo "$as_me: failed program was:" >&5
7078 sed 's/^/| /' conftest.$ac_ext >&5
7079
7080 ac_cv_type_char=no
7081 fi
7082 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7083 fi
7084 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
7085 echo "${ECHO_T}$ac_cv_type_char" >&6
7086
7087 echo "$as_me:$LINENO: checking size of char" >&5
7088 echo $ECHO_N "checking size of char... $ECHO_C" >&6
7089 if test "${ac_cv_sizeof_char+set}" = set; then
7090   echo $ECHO_N "(cached) $ECHO_C" >&6
7091 else
7092   if test "$ac_cv_type_char" = yes; then
7093   # The cast to unsigned long works around a bug in the HP C Compiler
7094   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7095   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7096   # This bug is HP SR number 8606223364.
7097   if test "$cross_compiling" = yes; then
7098   # Depending upon the size, compute the lo and hi bounds.
7099 cat >conftest.$ac_ext <<_ACEOF
7100 /* confdefs.h.  */
7101 _ACEOF
7102 cat confdefs.h >>conftest.$ac_ext
7103 cat >>conftest.$ac_ext <<_ACEOF
7104 /* end confdefs.h.  */
7105 $ac_includes_default
7106 int
7107 main ()
7108 {
7109 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
7110 test_array [0] = 0
7111
7112   ;
7113   return 0;
7114 }
7115 _ACEOF
7116 rm -f conftest.$ac_objext
7117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7118   (eval $ac_compile) 2>conftest.er1
7119   ac_status=$?
7120   grep -v '^ *+' conftest.er1 >conftest.err
7121   rm -f conftest.er1
7122   cat conftest.err >&5
7123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7124   (exit $ac_status); } &&
7125          { ac_try='test -z "$ac_c_werror_flag"
7126                          || test ! -s conftest.err'
7127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7128   (eval $ac_try) 2>&5
7129   ac_status=$?
7130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7131   (exit $ac_status); }; } &&
7132          { ac_try='test -s conftest.$ac_objext'
7133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7134   (eval $ac_try) 2>&5
7135   ac_status=$?
7136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7137   (exit $ac_status); }; }; then
7138   ac_lo=0 ac_mid=0
7139   while :; do
7140     cat >conftest.$ac_ext <<_ACEOF
7141 /* confdefs.h.  */
7142 _ACEOF
7143 cat confdefs.h >>conftest.$ac_ext
7144 cat >>conftest.$ac_ext <<_ACEOF
7145 /* end confdefs.h.  */
7146 $ac_includes_default
7147 int
7148 main ()
7149 {
7150 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
7151 test_array [0] = 0
7152
7153   ;
7154   return 0;
7155 }
7156 _ACEOF
7157 rm -f conftest.$ac_objext
7158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7159   (eval $ac_compile) 2>conftest.er1
7160   ac_status=$?
7161   grep -v '^ *+' conftest.er1 >conftest.err
7162   rm -f conftest.er1
7163   cat conftest.err >&5
7164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7165   (exit $ac_status); } &&
7166          { ac_try='test -z "$ac_c_werror_flag"
7167                          || test ! -s conftest.err'
7168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7169   (eval $ac_try) 2>&5
7170   ac_status=$?
7171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7172   (exit $ac_status); }; } &&
7173          { ac_try='test -s conftest.$ac_objext'
7174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7175   (eval $ac_try) 2>&5
7176   ac_status=$?
7177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7178   (exit $ac_status); }; }; then
7179   ac_hi=$ac_mid; break
7180 else
7181   echo "$as_me: failed program was:" >&5
7182 sed 's/^/| /' conftest.$ac_ext >&5
7183
7184 ac_lo=`expr $ac_mid + 1`
7185                     if test $ac_lo -le $ac_mid; then
7186                       ac_lo= ac_hi=
7187                       break
7188                     fi
7189                     ac_mid=`expr 2 '*' $ac_mid + 1`
7190 fi
7191 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7192   done
7193 else
7194   echo "$as_me: failed program was:" >&5
7195 sed 's/^/| /' conftest.$ac_ext >&5
7196
7197 cat >conftest.$ac_ext <<_ACEOF
7198 /* confdefs.h.  */
7199 _ACEOF
7200 cat confdefs.h >>conftest.$ac_ext
7201 cat >>conftest.$ac_ext <<_ACEOF
7202 /* end confdefs.h.  */
7203 $ac_includes_default
7204 int
7205 main ()
7206 {
7207 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
7208 test_array [0] = 0
7209
7210   ;
7211   return 0;
7212 }
7213 _ACEOF
7214 rm -f conftest.$ac_objext
7215 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7216   (eval $ac_compile) 2>conftest.er1
7217   ac_status=$?
7218   grep -v '^ *+' conftest.er1 >conftest.err
7219   rm -f conftest.er1
7220   cat conftest.err >&5
7221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7222   (exit $ac_status); } &&
7223          { ac_try='test -z "$ac_c_werror_flag"
7224                          || test ! -s conftest.err'
7225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7226   (eval $ac_try) 2>&5
7227   ac_status=$?
7228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7229   (exit $ac_status); }; } &&
7230          { ac_try='test -s conftest.$ac_objext'
7231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7232   (eval $ac_try) 2>&5
7233   ac_status=$?
7234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7235   (exit $ac_status); }; }; then
7236   ac_hi=-1 ac_mid=-1
7237   while :; do
7238     cat >conftest.$ac_ext <<_ACEOF
7239 /* confdefs.h.  */
7240 _ACEOF
7241 cat confdefs.h >>conftest.$ac_ext
7242 cat >>conftest.$ac_ext <<_ACEOF
7243 /* end confdefs.h.  */
7244 $ac_includes_default
7245 int
7246 main ()
7247 {
7248 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
7249 test_array [0] = 0
7250
7251   ;
7252   return 0;
7253 }
7254 _ACEOF
7255 rm -f conftest.$ac_objext
7256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7257   (eval $ac_compile) 2>conftest.er1
7258   ac_status=$?
7259   grep -v '^ *+' conftest.er1 >conftest.err
7260   rm -f conftest.er1
7261   cat conftest.err >&5
7262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7263   (exit $ac_status); } &&
7264          { ac_try='test -z "$ac_c_werror_flag"
7265                          || test ! -s conftest.err'
7266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7267   (eval $ac_try) 2>&5
7268   ac_status=$?
7269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7270   (exit $ac_status); }; } &&
7271          { ac_try='test -s conftest.$ac_objext'
7272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7273   (eval $ac_try) 2>&5
7274   ac_status=$?
7275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7276   (exit $ac_status); }; }; then
7277   ac_lo=$ac_mid; break
7278 else
7279   echo "$as_me: failed program was:" >&5
7280 sed 's/^/| /' conftest.$ac_ext >&5
7281
7282 ac_hi=`expr '(' $ac_mid ')' - 1`
7283                        if test $ac_mid -le $ac_hi; then
7284                          ac_lo= ac_hi=
7285                          break
7286                        fi
7287                        ac_mid=`expr 2 '*' $ac_mid`
7288 fi
7289 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7290   done
7291 else
7292   echo "$as_me: failed program was:" >&5
7293 sed 's/^/| /' conftest.$ac_ext >&5
7294
7295 ac_lo= ac_hi=
7296 fi
7297 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7298 fi
7299 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7300 # Binary search between lo and hi bounds.
7301 while test "x$ac_lo" != "x$ac_hi"; do
7302   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7303   cat >conftest.$ac_ext <<_ACEOF
7304 /* confdefs.h.  */
7305 _ACEOF
7306 cat confdefs.h >>conftest.$ac_ext
7307 cat >>conftest.$ac_ext <<_ACEOF
7308 /* end confdefs.h.  */
7309 $ac_includes_default
7310 int
7311 main ()
7312 {
7313 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
7314 test_array [0] = 0
7315
7316   ;
7317   return 0;
7318 }
7319 _ACEOF
7320 rm -f conftest.$ac_objext
7321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7322   (eval $ac_compile) 2>conftest.er1
7323   ac_status=$?
7324   grep -v '^ *+' conftest.er1 >conftest.err
7325   rm -f conftest.er1
7326   cat conftest.err >&5
7327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7328   (exit $ac_status); } &&
7329          { ac_try='test -z "$ac_c_werror_flag"
7330                          || test ! -s conftest.err'
7331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7332   (eval $ac_try) 2>&5
7333   ac_status=$?
7334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7335   (exit $ac_status); }; } &&
7336          { ac_try='test -s conftest.$ac_objext'
7337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7338   (eval $ac_try) 2>&5
7339   ac_status=$?
7340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7341   (exit $ac_status); }; }; then
7342   ac_hi=$ac_mid
7343 else
7344   echo "$as_me: failed program was:" >&5
7345 sed 's/^/| /' conftest.$ac_ext >&5
7346
7347 ac_lo=`expr '(' $ac_mid ')' + 1`
7348 fi
7349 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7350 done
7351 case $ac_lo in
7352 ?*) ac_cv_sizeof_char=$ac_lo;;
7353 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
7354 See \`config.log' for more details." >&5
7355 echo "$as_me: error: cannot compute sizeof (char), 77
7356 See \`config.log' for more details." >&2;}
7357    { (exit 1); exit 1; }; } ;;
7358 esac
7359 else
7360   if test "$cross_compiling" = yes; then
7361   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7362 See \`config.log' for more details." >&5
7363 echo "$as_me: error: cannot run test program while cross compiling
7364 See \`config.log' for more details." >&2;}
7365    { (exit 1); exit 1; }; }
7366 else
7367   cat >conftest.$ac_ext <<_ACEOF
7368 /* confdefs.h.  */
7369 _ACEOF
7370 cat confdefs.h >>conftest.$ac_ext
7371 cat >>conftest.$ac_ext <<_ACEOF
7372 /* end confdefs.h.  */
7373 $ac_includes_default
7374 long longval () { return (long) (sizeof (char)); }
7375 unsigned long ulongval () { return (long) (sizeof (char)); }
7376 #include <stdio.h>
7377 #include <stdlib.h>
7378 int
7379 main ()
7380 {
7381
7382   FILE *f = fopen ("conftest.val", "w");
7383   if (! f)
7384     exit (1);
7385   if (((long) (sizeof (char))) < 0)
7386     {
7387       long i = longval ();
7388       if (i != ((long) (sizeof (char))))
7389         exit (1);
7390       fprintf (f, "%ld\n", i);
7391     }
7392   else
7393     {
7394       unsigned long i = ulongval ();
7395       if (i != ((long) (sizeof (char))))
7396         exit (1);
7397       fprintf (f, "%lu\n", i);
7398     }
7399   exit (ferror (f) || fclose (f) != 0);
7400
7401   ;
7402   return 0;
7403 }
7404 _ACEOF
7405 rm -f conftest$ac_exeext
7406 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7407   (eval $ac_link) 2>&5
7408   ac_status=$?
7409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7410   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7412   (eval $ac_try) 2>&5
7413   ac_status=$?
7414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7415   (exit $ac_status); }; }; then
7416   ac_cv_sizeof_char=`cat conftest.val`
7417 else
7418   echo "$as_me: program exited with status $ac_status" >&5
7419 echo "$as_me: failed program was:" >&5
7420 sed 's/^/| /' conftest.$ac_ext >&5
7421
7422 ( exit $ac_status )
7423 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
7424 See \`config.log' for more details." >&5
7425 echo "$as_me: error: cannot compute sizeof (char), 77
7426 See \`config.log' for more details." >&2;}
7427    { (exit 1); exit 1; }; }
7428 fi
7429 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7430 fi
7431 fi
7432 rm -f conftest.val
7433 else
7434   ac_cv_sizeof_char=0
7435 fi
7436 fi
7437 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
7438 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
7439 cat >>confdefs.h <<_ACEOF
7440 #define SIZEOF_CHAR $ac_cv_sizeof_char
7441 _ACEOF
7442
7443
7444    echo "$as_me:$LINENO: checking for short" >&5
7445 echo $ECHO_N "checking for short... $ECHO_C" >&6
7446 if test "${ac_cv_type_short+set}" = set; then
7447   echo $ECHO_N "(cached) $ECHO_C" >&6
7448 else
7449   cat >conftest.$ac_ext <<_ACEOF
7450 /* confdefs.h.  */
7451 _ACEOF
7452 cat confdefs.h >>conftest.$ac_ext
7453 cat >>conftest.$ac_ext <<_ACEOF
7454 /* end confdefs.h.  */
7455 $ac_includes_default
7456 int
7457 main ()
7458 {
7459 if ((short *) 0)
7460   return 0;
7461 if (sizeof (short))
7462   return 0;
7463   ;
7464   return 0;
7465 }
7466 _ACEOF
7467 rm -f conftest.$ac_objext
7468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7469   (eval $ac_compile) 2>conftest.er1
7470   ac_status=$?
7471   grep -v '^ *+' conftest.er1 >conftest.err
7472   rm -f conftest.er1
7473   cat conftest.err >&5
7474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7475   (exit $ac_status); } &&
7476          { ac_try='test -z "$ac_c_werror_flag"
7477                          || test ! -s conftest.err'
7478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7479   (eval $ac_try) 2>&5
7480   ac_status=$?
7481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7482   (exit $ac_status); }; } &&
7483          { ac_try='test -s conftest.$ac_objext'
7484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7485   (eval $ac_try) 2>&5
7486   ac_status=$?
7487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7488   (exit $ac_status); }; }; then
7489   ac_cv_type_short=yes
7490 else
7491   echo "$as_me: failed program was:" >&5
7492 sed 's/^/| /' conftest.$ac_ext >&5
7493
7494 ac_cv_type_short=no
7495 fi
7496 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7497 fi
7498 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
7499 echo "${ECHO_T}$ac_cv_type_short" >&6
7500
7501 echo "$as_me:$LINENO: checking size of short" >&5
7502 echo $ECHO_N "checking size of short... $ECHO_C" >&6
7503 if test "${ac_cv_sizeof_short+set}" = set; then
7504   echo $ECHO_N "(cached) $ECHO_C" >&6
7505 else
7506   if test "$ac_cv_type_short" = yes; then
7507   # The cast to unsigned long works around a bug in the HP C Compiler
7508   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7509   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7510   # This bug is HP SR number 8606223364.
7511   if test "$cross_compiling" = yes; then
7512   # Depending upon the size, compute the lo and hi bounds.
7513 cat >conftest.$ac_ext <<_ACEOF
7514 /* confdefs.h.  */
7515 _ACEOF
7516 cat confdefs.h >>conftest.$ac_ext
7517 cat >>conftest.$ac_ext <<_ACEOF
7518 /* end confdefs.h.  */
7519 $ac_includes_default
7520 int
7521 main ()
7522 {
7523 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
7524 test_array [0] = 0
7525
7526   ;
7527   return 0;
7528 }
7529 _ACEOF
7530 rm -f conftest.$ac_objext
7531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7532   (eval $ac_compile) 2>conftest.er1
7533   ac_status=$?
7534   grep -v '^ *+' conftest.er1 >conftest.err
7535   rm -f conftest.er1
7536   cat conftest.err >&5
7537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7538   (exit $ac_status); } &&
7539          { ac_try='test -z "$ac_c_werror_flag"
7540                          || test ! -s conftest.err'
7541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7542   (eval $ac_try) 2>&5
7543   ac_status=$?
7544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7545   (exit $ac_status); }; } &&
7546          { ac_try='test -s conftest.$ac_objext'
7547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7548   (eval $ac_try) 2>&5
7549   ac_status=$?
7550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7551   (exit $ac_status); }; }; then
7552   ac_lo=0 ac_mid=0
7553   while :; do
7554     cat >conftest.$ac_ext <<_ACEOF
7555 /* confdefs.h.  */
7556 _ACEOF
7557 cat confdefs.h >>conftest.$ac_ext
7558 cat >>conftest.$ac_ext <<_ACEOF
7559 /* end confdefs.h.  */
7560 $ac_includes_default
7561 int
7562 main ()
7563 {
7564 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
7565 test_array [0] = 0
7566
7567   ;
7568   return 0;
7569 }
7570 _ACEOF
7571 rm -f conftest.$ac_objext
7572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7573   (eval $ac_compile) 2>conftest.er1
7574   ac_status=$?
7575   grep -v '^ *+' conftest.er1 >conftest.err
7576   rm -f conftest.er1
7577   cat conftest.err >&5
7578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7579   (exit $ac_status); } &&
7580          { ac_try='test -z "$ac_c_werror_flag"
7581                          || test ! -s conftest.err'
7582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7583   (eval $ac_try) 2>&5
7584   ac_status=$?
7585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7586   (exit $ac_status); }; } &&
7587          { ac_try='test -s conftest.$ac_objext'
7588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7589   (eval $ac_try) 2>&5
7590   ac_status=$?
7591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7592   (exit $ac_status); }; }; then
7593   ac_hi=$ac_mid; break
7594 else
7595   echo "$as_me: failed program was:" >&5
7596 sed 's/^/| /' conftest.$ac_ext >&5
7597
7598 ac_lo=`expr $ac_mid + 1`
7599                     if test $ac_lo -le $ac_mid; then
7600                       ac_lo= ac_hi=
7601                       break
7602                     fi
7603                     ac_mid=`expr 2 '*' $ac_mid + 1`
7604 fi
7605 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7606   done
7607 else
7608   echo "$as_me: failed program was:" >&5
7609 sed 's/^/| /' conftest.$ac_ext >&5
7610
7611 cat >conftest.$ac_ext <<_ACEOF
7612 /* confdefs.h.  */
7613 _ACEOF
7614 cat confdefs.h >>conftest.$ac_ext
7615 cat >>conftest.$ac_ext <<_ACEOF
7616 /* end confdefs.h.  */
7617 $ac_includes_default
7618 int
7619 main ()
7620 {
7621 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
7622 test_array [0] = 0
7623
7624   ;
7625   return 0;
7626 }
7627 _ACEOF
7628 rm -f conftest.$ac_objext
7629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7630   (eval $ac_compile) 2>conftest.er1
7631   ac_status=$?
7632   grep -v '^ *+' conftest.er1 >conftest.err
7633   rm -f conftest.er1
7634   cat conftest.err >&5
7635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7636   (exit $ac_status); } &&
7637          { ac_try='test -z "$ac_c_werror_flag"
7638                          || test ! -s conftest.err'
7639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7640   (eval $ac_try) 2>&5
7641   ac_status=$?
7642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7643   (exit $ac_status); }; } &&
7644          { ac_try='test -s conftest.$ac_objext'
7645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7646   (eval $ac_try) 2>&5
7647   ac_status=$?
7648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7649   (exit $ac_status); }; }; then
7650   ac_hi=-1 ac_mid=-1
7651   while :; do
7652     cat >conftest.$ac_ext <<_ACEOF
7653 /* confdefs.h.  */
7654 _ACEOF
7655 cat confdefs.h >>conftest.$ac_ext
7656 cat >>conftest.$ac_ext <<_ACEOF
7657 /* end confdefs.h.  */
7658 $ac_includes_default
7659 int
7660 main ()
7661 {
7662 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
7663 test_array [0] = 0
7664
7665   ;
7666   return 0;
7667 }
7668 _ACEOF
7669 rm -f conftest.$ac_objext
7670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7671   (eval $ac_compile) 2>conftest.er1
7672   ac_status=$?
7673   grep -v '^ *+' conftest.er1 >conftest.err
7674   rm -f conftest.er1
7675   cat conftest.err >&5
7676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7677   (exit $ac_status); } &&
7678          { ac_try='test -z "$ac_c_werror_flag"
7679                          || test ! -s conftest.err'
7680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7681   (eval $ac_try) 2>&5
7682   ac_status=$?
7683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7684   (exit $ac_status); }; } &&
7685          { ac_try='test -s conftest.$ac_objext'
7686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7687   (eval $ac_try) 2>&5
7688   ac_status=$?
7689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7690   (exit $ac_status); }; }; then
7691   ac_lo=$ac_mid; break
7692 else
7693   echo "$as_me: failed program was:" >&5
7694 sed 's/^/| /' conftest.$ac_ext >&5
7695
7696 ac_hi=`expr '(' $ac_mid ')' - 1`
7697                        if test $ac_mid -le $ac_hi; then
7698                          ac_lo= ac_hi=
7699                          break
7700                        fi
7701                        ac_mid=`expr 2 '*' $ac_mid`
7702 fi
7703 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7704   done
7705 else
7706   echo "$as_me: failed program was:" >&5
7707 sed 's/^/| /' conftest.$ac_ext >&5
7708
7709 ac_lo= ac_hi=
7710 fi
7711 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7712 fi
7713 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7714 # Binary search between lo and hi bounds.
7715 while test "x$ac_lo" != "x$ac_hi"; do
7716   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7717   cat >conftest.$ac_ext <<_ACEOF
7718 /* confdefs.h.  */
7719 _ACEOF
7720 cat confdefs.h >>conftest.$ac_ext
7721 cat >>conftest.$ac_ext <<_ACEOF
7722 /* end confdefs.h.  */
7723 $ac_includes_default
7724 int
7725 main ()
7726 {
7727 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
7728 test_array [0] = 0
7729
7730   ;
7731   return 0;
7732 }
7733 _ACEOF
7734 rm -f conftest.$ac_objext
7735 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7736   (eval $ac_compile) 2>conftest.er1
7737   ac_status=$?
7738   grep -v '^ *+' conftest.er1 >conftest.err
7739   rm -f conftest.er1
7740   cat conftest.err >&5
7741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7742   (exit $ac_status); } &&
7743          { ac_try='test -z "$ac_c_werror_flag"
7744                          || test ! -s conftest.err'
7745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7746   (eval $ac_try) 2>&5
7747   ac_status=$?
7748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7749   (exit $ac_status); }; } &&
7750          { ac_try='test -s conftest.$ac_objext'
7751   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7752   (eval $ac_try) 2>&5
7753   ac_status=$?
7754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7755   (exit $ac_status); }; }; then
7756   ac_hi=$ac_mid
7757 else
7758   echo "$as_me: failed program was:" >&5
7759 sed 's/^/| /' conftest.$ac_ext >&5
7760
7761 ac_lo=`expr '(' $ac_mid ')' + 1`
7762 fi
7763 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7764 done
7765 case $ac_lo in
7766 ?*) ac_cv_sizeof_short=$ac_lo;;
7767 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
7768 See \`config.log' for more details." >&5
7769 echo "$as_me: error: cannot compute sizeof (short), 77
7770 See \`config.log' for more details." >&2;}
7771    { (exit 1); exit 1; }; } ;;
7772 esac
7773 else
7774   if test "$cross_compiling" = yes; then
7775   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7776 See \`config.log' for more details." >&5
7777 echo "$as_me: error: cannot run test program while cross compiling
7778 See \`config.log' for more details." >&2;}
7779    { (exit 1); exit 1; }; }
7780 else
7781   cat >conftest.$ac_ext <<_ACEOF
7782 /* confdefs.h.  */
7783 _ACEOF
7784 cat confdefs.h >>conftest.$ac_ext
7785 cat >>conftest.$ac_ext <<_ACEOF
7786 /* end confdefs.h.  */
7787 $ac_includes_default
7788 long longval () { return (long) (sizeof (short)); }
7789 unsigned long ulongval () { return (long) (sizeof (short)); }
7790 #include <stdio.h>
7791 #include <stdlib.h>
7792 int
7793 main ()
7794 {
7795
7796   FILE *f = fopen ("conftest.val", "w");
7797   if (! f)
7798     exit (1);
7799   if (((long) (sizeof (short))) < 0)
7800     {
7801       long i = longval ();
7802       if (i != ((long) (sizeof (short))))
7803         exit (1);
7804       fprintf (f, "%ld\n", i);
7805     }
7806   else
7807     {
7808       unsigned long i = ulongval ();
7809       if (i != ((long) (sizeof (short))))
7810         exit (1);
7811       fprintf (f, "%lu\n", i);
7812     }
7813   exit (ferror (f) || fclose (f) != 0);
7814
7815   ;
7816   return 0;
7817 }
7818 _ACEOF
7819 rm -f conftest$ac_exeext
7820 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7821   (eval $ac_link) 2>&5
7822   ac_status=$?
7823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7824   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7826   (eval $ac_try) 2>&5
7827   ac_status=$?
7828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7829   (exit $ac_status); }; }; then
7830   ac_cv_sizeof_short=`cat conftest.val`
7831 else
7832   echo "$as_me: program exited with status $ac_status" >&5
7833 echo "$as_me: failed program was:" >&5
7834 sed 's/^/| /' conftest.$ac_ext >&5
7835
7836 ( exit $ac_status )
7837 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
7838 See \`config.log' for more details." >&5
7839 echo "$as_me: error: cannot compute sizeof (short), 77
7840 See \`config.log' for more details." >&2;}
7841    { (exit 1); exit 1; }; }
7842 fi
7843 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7844 fi
7845 fi
7846 rm -f conftest.val
7847 else
7848   ac_cv_sizeof_short=0
7849 fi
7850 fi
7851 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
7852 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
7853 cat >>confdefs.h <<_ACEOF
7854 #define SIZEOF_SHORT $ac_cv_sizeof_short
7855 _ACEOF
7856
7857
7858    echo "$as_me:$LINENO: checking for int" >&5
7859 echo $ECHO_N "checking for int... $ECHO_C" >&6
7860 if test "${ac_cv_type_int+set}" = set; then
7861   echo $ECHO_N "(cached) $ECHO_C" >&6
7862 else
7863   cat >conftest.$ac_ext <<_ACEOF
7864 /* confdefs.h.  */
7865 _ACEOF
7866 cat confdefs.h >>conftest.$ac_ext
7867 cat >>conftest.$ac_ext <<_ACEOF
7868 /* end confdefs.h.  */
7869 $ac_includes_default
7870 int
7871 main ()
7872 {
7873 if ((int *) 0)
7874   return 0;
7875 if (sizeof (int))
7876   return 0;
7877   ;
7878   return 0;
7879 }
7880 _ACEOF
7881 rm -f conftest.$ac_objext
7882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7883   (eval $ac_compile) 2>conftest.er1
7884   ac_status=$?
7885   grep -v '^ *+' conftest.er1 >conftest.err
7886   rm -f conftest.er1
7887   cat conftest.err >&5
7888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7889   (exit $ac_status); } &&
7890          { ac_try='test -z "$ac_c_werror_flag"
7891                          || test ! -s conftest.err'
7892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7893   (eval $ac_try) 2>&5
7894   ac_status=$?
7895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7896   (exit $ac_status); }; } &&
7897          { ac_try='test -s conftest.$ac_objext'
7898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7899   (eval $ac_try) 2>&5
7900   ac_status=$?
7901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7902   (exit $ac_status); }; }; then
7903   ac_cv_type_int=yes
7904 else
7905   echo "$as_me: failed program was:" >&5
7906 sed 's/^/| /' conftest.$ac_ext >&5
7907
7908 ac_cv_type_int=no
7909 fi
7910 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7911 fi
7912 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
7913 echo "${ECHO_T}$ac_cv_type_int" >&6
7914
7915 echo "$as_me:$LINENO: checking size of int" >&5
7916 echo $ECHO_N "checking size of int... $ECHO_C" >&6
7917 if test "${ac_cv_sizeof_int+set}" = set; then
7918   echo $ECHO_N "(cached) $ECHO_C" >&6
7919 else
7920   if test "$ac_cv_type_int" = yes; then
7921   # The cast to unsigned long works around a bug in the HP C Compiler
7922   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7923   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7924   # This bug is HP SR number 8606223364.
7925   if test "$cross_compiling" = yes; then
7926   # Depending upon the size, compute the lo and hi bounds.
7927 cat >conftest.$ac_ext <<_ACEOF
7928 /* confdefs.h.  */
7929 _ACEOF
7930 cat confdefs.h >>conftest.$ac_ext
7931 cat >>conftest.$ac_ext <<_ACEOF
7932 /* end confdefs.h.  */
7933 $ac_includes_default
7934 int
7935 main ()
7936 {
7937 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
7938 test_array [0] = 0
7939
7940   ;
7941   return 0;
7942 }
7943 _ACEOF
7944 rm -f conftest.$ac_objext
7945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7946   (eval $ac_compile) 2>conftest.er1
7947   ac_status=$?
7948   grep -v '^ *+' conftest.er1 >conftest.err
7949   rm -f conftest.er1
7950   cat conftest.err >&5
7951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7952   (exit $ac_status); } &&
7953          { ac_try='test -z "$ac_c_werror_flag"
7954                          || test ! -s conftest.err'
7955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7956   (eval $ac_try) 2>&5
7957   ac_status=$?
7958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7959   (exit $ac_status); }; } &&
7960          { ac_try='test -s conftest.$ac_objext'
7961   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7962   (eval $ac_try) 2>&5
7963   ac_status=$?
7964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7965   (exit $ac_status); }; }; then
7966   ac_lo=0 ac_mid=0
7967   while :; do
7968     cat >conftest.$ac_ext <<_ACEOF
7969 /* confdefs.h.  */
7970 _ACEOF
7971 cat confdefs.h >>conftest.$ac_ext
7972 cat >>conftest.$ac_ext <<_ACEOF
7973 /* end confdefs.h.  */
7974 $ac_includes_default
7975 int
7976 main ()
7977 {
7978 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
7979 test_array [0] = 0
7980
7981   ;
7982   return 0;
7983 }
7984 _ACEOF
7985 rm -f conftest.$ac_objext
7986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7987   (eval $ac_compile) 2>conftest.er1
7988   ac_status=$?
7989   grep -v '^ *+' conftest.er1 >conftest.err
7990   rm -f conftest.er1
7991   cat conftest.err >&5
7992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7993   (exit $ac_status); } &&
7994          { ac_try='test -z "$ac_c_werror_flag"
7995                          || test ! -s conftest.err'
7996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7997   (eval $ac_try) 2>&5
7998   ac_status=$?
7999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8000   (exit $ac_status); }; } &&
8001          { ac_try='test -s conftest.$ac_objext'
8002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8003   (eval $ac_try) 2>&5
8004   ac_status=$?
8005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8006   (exit $ac_status); }; }; then
8007   ac_hi=$ac_mid; break
8008 else
8009   echo "$as_me: failed program was:" >&5
8010 sed 's/^/| /' conftest.$ac_ext >&5
8011
8012 ac_lo=`expr $ac_mid + 1`
8013                     if test $ac_lo -le $ac_mid; then
8014                       ac_lo= ac_hi=
8015                       break
8016                     fi
8017                     ac_mid=`expr 2 '*' $ac_mid + 1`
8018 fi
8019 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8020   done
8021 else
8022   echo "$as_me: failed program was:" >&5
8023 sed 's/^/| /' conftest.$ac_ext >&5
8024
8025 cat >conftest.$ac_ext <<_ACEOF
8026 /* confdefs.h.  */
8027 _ACEOF
8028 cat confdefs.h >>conftest.$ac_ext
8029 cat >>conftest.$ac_ext <<_ACEOF
8030 /* end confdefs.h.  */
8031 $ac_includes_default
8032 int
8033 main ()
8034 {
8035 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
8036 test_array [0] = 0
8037
8038   ;
8039   return 0;
8040 }
8041 _ACEOF
8042 rm -f conftest.$ac_objext
8043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8044   (eval $ac_compile) 2>conftest.er1
8045   ac_status=$?
8046   grep -v '^ *+' conftest.er1 >conftest.err
8047   rm -f conftest.er1
8048   cat conftest.err >&5
8049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8050   (exit $ac_status); } &&
8051          { ac_try='test -z "$ac_c_werror_flag"
8052                          || test ! -s conftest.err'
8053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8054   (eval $ac_try) 2>&5
8055   ac_status=$?
8056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8057   (exit $ac_status); }; } &&
8058          { ac_try='test -s conftest.$ac_objext'
8059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8060   (eval $ac_try) 2>&5
8061   ac_status=$?
8062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8063   (exit $ac_status); }; }; then
8064   ac_hi=-1 ac_mid=-1
8065   while :; do
8066     cat >conftest.$ac_ext <<_ACEOF
8067 /* confdefs.h.  */
8068 _ACEOF
8069 cat confdefs.h >>conftest.$ac_ext
8070 cat >>conftest.$ac_ext <<_ACEOF
8071 /* end confdefs.h.  */
8072 $ac_includes_default
8073 int
8074 main ()
8075 {
8076 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
8077 test_array [0] = 0
8078
8079   ;
8080   return 0;
8081 }
8082 _ACEOF
8083 rm -f conftest.$ac_objext
8084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8085   (eval $ac_compile) 2>conftest.er1
8086   ac_status=$?
8087   grep -v '^ *+' conftest.er1 >conftest.err
8088   rm -f conftest.er1
8089   cat conftest.err >&5
8090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8091   (exit $ac_status); } &&
8092          { ac_try='test -z "$ac_c_werror_flag"
8093                          || test ! -s conftest.err'
8094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8095   (eval $ac_try) 2>&5
8096   ac_status=$?
8097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8098   (exit $ac_status); }; } &&
8099          { ac_try='test -s conftest.$ac_objext'
8100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8101   (eval $ac_try) 2>&5
8102   ac_status=$?
8103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8104   (exit $ac_status); }; }; then
8105   ac_lo=$ac_mid; break
8106 else
8107   echo "$as_me: failed program was:" >&5
8108 sed 's/^/| /' conftest.$ac_ext >&5
8109
8110 ac_hi=`expr '(' $ac_mid ')' - 1`
8111                        if test $ac_mid -le $ac_hi; then
8112                          ac_lo= ac_hi=
8113                          break
8114                        fi
8115                        ac_mid=`expr 2 '*' $ac_mid`
8116 fi
8117 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8118   done
8119 else
8120   echo "$as_me: failed program was:" >&5
8121 sed 's/^/| /' conftest.$ac_ext >&5
8122
8123 ac_lo= ac_hi=
8124 fi
8125 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8126 fi
8127 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8128 # Binary search between lo and hi bounds.
8129 while test "x$ac_lo" != "x$ac_hi"; do
8130   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8131   cat >conftest.$ac_ext <<_ACEOF
8132 /* confdefs.h.  */
8133 _ACEOF
8134 cat confdefs.h >>conftest.$ac_ext
8135 cat >>conftest.$ac_ext <<_ACEOF
8136 /* end confdefs.h.  */
8137 $ac_includes_default
8138 int
8139 main ()
8140 {
8141 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
8142 test_array [0] = 0
8143
8144   ;
8145   return 0;
8146 }
8147 _ACEOF
8148 rm -f conftest.$ac_objext
8149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8150   (eval $ac_compile) 2>conftest.er1
8151   ac_status=$?
8152   grep -v '^ *+' conftest.er1 >conftest.err
8153   rm -f conftest.er1
8154   cat conftest.err >&5
8155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8156   (exit $ac_status); } &&
8157          { ac_try='test -z "$ac_c_werror_flag"
8158                          || test ! -s conftest.err'
8159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8160   (eval $ac_try) 2>&5
8161   ac_status=$?
8162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8163   (exit $ac_status); }; } &&
8164          { ac_try='test -s conftest.$ac_objext'
8165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8166   (eval $ac_try) 2>&5
8167   ac_status=$?
8168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8169   (exit $ac_status); }; }; then
8170   ac_hi=$ac_mid
8171 else
8172   echo "$as_me: failed program was:" >&5
8173 sed 's/^/| /' conftest.$ac_ext >&5
8174
8175 ac_lo=`expr '(' $ac_mid ')' + 1`
8176 fi
8177 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8178 done
8179 case $ac_lo in
8180 ?*) ac_cv_sizeof_int=$ac_lo;;
8181 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
8182 See \`config.log' for more details." >&5
8183 echo "$as_me: error: cannot compute sizeof (int), 77
8184 See \`config.log' for more details." >&2;}
8185    { (exit 1); exit 1; }; } ;;
8186 esac
8187 else
8188   if test "$cross_compiling" = yes; then
8189   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8190 See \`config.log' for more details." >&5
8191 echo "$as_me: error: cannot run test program while cross compiling
8192 See \`config.log' for more details." >&2;}
8193    { (exit 1); exit 1; }; }
8194 else
8195   cat >conftest.$ac_ext <<_ACEOF
8196 /* confdefs.h.  */
8197 _ACEOF
8198 cat confdefs.h >>conftest.$ac_ext
8199 cat >>conftest.$ac_ext <<_ACEOF
8200 /* end confdefs.h.  */
8201 $ac_includes_default
8202 long longval () { return (long) (sizeof (int)); }
8203 unsigned long ulongval () { return (long) (sizeof (int)); }
8204 #include <stdio.h>
8205 #include <stdlib.h>
8206 int
8207 main ()
8208 {
8209
8210   FILE *f = fopen ("conftest.val", "w");
8211   if (! f)
8212     exit (1);
8213   if (((long) (sizeof (int))) < 0)
8214     {
8215       long i = longval ();
8216       if (i != ((long) (sizeof (int))))
8217         exit (1);
8218       fprintf (f, "%ld\n", i);
8219     }
8220   else
8221     {
8222       unsigned long i = ulongval ();
8223       if (i != ((long) (sizeof (int))))
8224         exit (1);
8225       fprintf (f, "%lu\n", i);
8226     }
8227   exit (ferror (f) || fclose (f) != 0);
8228
8229   ;
8230   return 0;
8231 }
8232 _ACEOF
8233 rm -f conftest$ac_exeext
8234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8235   (eval $ac_link) 2>&5
8236   ac_status=$?
8237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8238   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8240   (eval $ac_try) 2>&5
8241   ac_status=$?
8242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8243   (exit $ac_status); }; }; then
8244   ac_cv_sizeof_int=`cat conftest.val`
8245 else
8246   echo "$as_me: program exited with status $ac_status" >&5
8247 echo "$as_me: failed program was:" >&5
8248 sed 's/^/| /' conftest.$ac_ext >&5
8249
8250 ( exit $ac_status )
8251 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
8252 See \`config.log' for more details." >&5
8253 echo "$as_me: error: cannot compute sizeof (int), 77
8254 See \`config.log' for more details." >&2;}
8255    { (exit 1); exit 1; }; }
8256 fi
8257 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8258 fi
8259 fi
8260 rm -f conftest.val
8261 else
8262   ac_cv_sizeof_int=0
8263 fi
8264 fi
8265 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
8266 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
8267 cat >>confdefs.h <<_ACEOF
8268 #define SIZEOF_INT $ac_cv_sizeof_int
8269 _ACEOF
8270
8271
8272    echo "$as_me:$LINENO: checking for long" >&5
8273 echo $ECHO_N "checking for long... $ECHO_C" >&6
8274 if test "${ac_cv_type_long+set}" = set; then
8275   echo $ECHO_N "(cached) $ECHO_C" >&6
8276 else
8277   cat >conftest.$ac_ext <<_ACEOF
8278 /* confdefs.h.  */
8279 _ACEOF
8280 cat confdefs.h >>conftest.$ac_ext
8281 cat >>conftest.$ac_ext <<_ACEOF
8282 /* end confdefs.h.  */
8283 $ac_includes_default
8284 int
8285 main ()
8286 {
8287 if ((long *) 0)
8288   return 0;
8289 if (sizeof (long))
8290   return 0;
8291   ;
8292   return 0;
8293 }
8294 _ACEOF
8295 rm -f conftest.$ac_objext
8296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8297   (eval $ac_compile) 2>conftest.er1
8298   ac_status=$?
8299   grep -v '^ *+' conftest.er1 >conftest.err
8300   rm -f conftest.er1
8301   cat conftest.err >&5
8302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8303   (exit $ac_status); } &&
8304          { ac_try='test -z "$ac_c_werror_flag"
8305                          || test ! -s conftest.err'
8306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8307   (eval $ac_try) 2>&5
8308   ac_status=$?
8309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8310   (exit $ac_status); }; } &&
8311          { ac_try='test -s conftest.$ac_objext'
8312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8313   (eval $ac_try) 2>&5
8314   ac_status=$?
8315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8316   (exit $ac_status); }; }; then
8317   ac_cv_type_long=yes
8318 else
8319   echo "$as_me: failed program was:" >&5
8320 sed 's/^/| /' conftest.$ac_ext >&5
8321
8322 ac_cv_type_long=no
8323 fi
8324 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8325 fi
8326 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
8327 echo "${ECHO_T}$ac_cv_type_long" >&6
8328
8329 echo "$as_me:$LINENO: checking size of long" >&5
8330 echo $ECHO_N "checking size of long... $ECHO_C" >&6
8331 if test "${ac_cv_sizeof_long+set}" = set; then
8332   echo $ECHO_N "(cached) $ECHO_C" >&6
8333 else
8334   if test "$ac_cv_type_long" = yes; then
8335   # The cast to unsigned long works around a bug in the HP C Compiler
8336   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8337   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8338   # This bug is HP SR number 8606223364.
8339   if test "$cross_compiling" = yes; then
8340   # Depending upon the size, compute the lo and hi bounds.
8341 cat >conftest.$ac_ext <<_ACEOF
8342 /* confdefs.h.  */
8343 _ACEOF
8344 cat confdefs.h >>conftest.$ac_ext
8345 cat >>conftest.$ac_ext <<_ACEOF
8346 /* end confdefs.h.  */
8347 $ac_includes_default
8348 int
8349 main ()
8350 {
8351 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
8352 test_array [0] = 0
8353
8354   ;
8355   return 0;
8356 }
8357 _ACEOF
8358 rm -f conftest.$ac_objext
8359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8360   (eval $ac_compile) 2>conftest.er1
8361   ac_status=$?
8362   grep -v '^ *+' conftest.er1 >conftest.err
8363   rm -f conftest.er1
8364   cat conftest.err >&5
8365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8366   (exit $ac_status); } &&
8367          { ac_try='test -z "$ac_c_werror_flag"
8368                          || test ! -s conftest.err'
8369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8370   (eval $ac_try) 2>&5
8371   ac_status=$?
8372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8373   (exit $ac_status); }; } &&
8374          { ac_try='test -s conftest.$ac_objext'
8375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8376   (eval $ac_try) 2>&5
8377   ac_status=$?
8378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8379   (exit $ac_status); }; }; then
8380   ac_lo=0 ac_mid=0
8381   while :; do
8382     cat >conftest.$ac_ext <<_ACEOF
8383 /* confdefs.h.  */
8384 _ACEOF
8385 cat confdefs.h >>conftest.$ac_ext
8386 cat >>conftest.$ac_ext <<_ACEOF
8387 /* end confdefs.h.  */
8388 $ac_includes_default
8389 int
8390 main ()
8391 {
8392 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
8393 test_array [0] = 0
8394
8395   ;
8396   return 0;
8397 }
8398 _ACEOF
8399 rm -f conftest.$ac_objext
8400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8401   (eval $ac_compile) 2>conftest.er1
8402   ac_status=$?
8403   grep -v '^ *+' conftest.er1 >conftest.err
8404   rm -f conftest.er1
8405   cat conftest.err >&5
8406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8407   (exit $ac_status); } &&
8408          { ac_try='test -z "$ac_c_werror_flag"
8409                          || test ! -s conftest.err'
8410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8411   (eval $ac_try) 2>&5
8412   ac_status=$?
8413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8414   (exit $ac_status); }; } &&
8415          { ac_try='test -s conftest.$ac_objext'
8416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8417   (eval $ac_try) 2>&5
8418   ac_status=$?
8419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8420   (exit $ac_status); }; }; then
8421   ac_hi=$ac_mid; break
8422 else
8423   echo "$as_me: failed program was:" >&5
8424 sed 's/^/| /' conftest.$ac_ext >&5
8425
8426 ac_lo=`expr $ac_mid + 1`
8427                     if test $ac_lo -le $ac_mid; then
8428                       ac_lo= ac_hi=
8429                       break
8430                     fi
8431                     ac_mid=`expr 2 '*' $ac_mid + 1`
8432 fi
8433 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8434   done
8435 else
8436   echo "$as_me: failed program was:" >&5
8437 sed 's/^/| /' conftest.$ac_ext >&5
8438
8439 cat >conftest.$ac_ext <<_ACEOF
8440 /* confdefs.h.  */
8441 _ACEOF
8442 cat confdefs.h >>conftest.$ac_ext
8443 cat >>conftest.$ac_ext <<_ACEOF
8444 /* end confdefs.h.  */
8445 $ac_includes_default
8446 int
8447 main ()
8448 {
8449 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
8450 test_array [0] = 0
8451
8452   ;
8453   return 0;
8454 }
8455 _ACEOF
8456 rm -f conftest.$ac_objext
8457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8458   (eval $ac_compile) 2>conftest.er1
8459   ac_status=$?
8460   grep -v '^ *+' conftest.er1 >conftest.err
8461   rm -f conftest.er1
8462   cat conftest.err >&5
8463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8464   (exit $ac_status); } &&
8465          { ac_try='test -z "$ac_c_werror_flag"
8466                          || test ! -s conftest.err'
8467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8468   (eval $ac_try) 2>&5
8469   ac_status=$?
8470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8471   (exit $ac_status); }; } &&
8472          { ac_try='test -s conftest.$ac_objext'
8473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8474   (eval $ac_try) 2>&5
8475   ac_status=$?
8476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8477   (exit $ac_status); }; }; then
8478   ac_hi=-1 ac_mid=-1
8479   while :; do
8480     cat >conftest.$ac_ext <<_ACEOF
8481 /* confdefs.h.  */
8482 _ACEOF
8483 cat confdefs.h >>conftest.$ac_ext
8484 cat >>conftest.$ac_ext <<_ACEOF
8485 /* end confdefs.h.  */
8486 $ac_includes_default
8487 int
8488 main ()
8489 {
8490 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
8491 test_array [0] = 0
8492
8493   ;
8494   return 0;
8495 }
8496 _ACEOF
8497 rm -f conftest.$ac_objext
8498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8499   (eval $ac_compile) 2>conftest.er1
8500   ac_status=$?
8501   grep -v '^ *+' conftest.er1 >conftest.err
8502   rm -f conftest.er1
8503   cat conftest.err >&5
8504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8505   (exit $ac_status); } &&
8506          { ac_try='test -z "$ac_c_werror_flag"
8507                          || test ! -s conftest.err'
8508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8509   (eval $ac_try) 2>&5
8510   ac_status=$?
8511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8512   (exit $ac_status); }; } &&
8513          { ac_try='test -s conftest.$ac_objext'
8514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8515   (eval $ac_try) 2>&5
8516   ac_status=$?
8517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8518   (exit $ac_status); }; }; then
8519   ac_lo=$ac_mid; break
8520 else
8521   echo "$as_me: failed program was:" >&5
8522 sed 's/^/| /' conftest.$ac_ext >&5
8523
8524 ac_hi=`expr '(' $ac_mid ')' - 1`
8525                        if test $ac_mid -le $ac_hi; then
8526                          ac_lo= ac_hi=
8527                          break
8528                        fi
8529                        ac_mid=`expr 2 '*' $ac_mid`
8530 fi
8531 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8532   done
8533 else
8534   echo "$as_me: failed program was:" >&5
8535 sed 's/^/| /' conftest.$ac_ext >&5
8536
8537 ac_lo= ac_hi=
8538 fi
8539 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8540 fi
8541 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8542 # Binary search between lo and hi bounds.
8543 while test "x$ac_lo" != "x$ac_hi"; do
8544   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8545   cat >conftest.$ac_ext <<_ACEOF
8546 /* confdefs.h.  */
8547 _ACEOF
8548 cat confdefs.h >>conftest.$ac_ext
8549 cat >>conftest.$ac_ext <<_ACEOF
8550 /* end confdefs.h.  */
8551 $ac_includes_default
8552 int
8553 main ()
8554 {
8555 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
8556 test_array [0] = 0
8557
8558   ;
8559   return 0;
8560 }
8561 _ACEOF
8562 rm -f conftest.$ac_objext
8563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8564   (eval $ac_compile) 2>conftest.er1
8565   ac_status=$?
8566   grep -v '^ *+' conftest.er1 >conftest.err
8567   rm -f conftest.er1
8568   cat conftest.err >&5
8569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8570   (exit $ac_status); } &&
8571          { ac_try='test -z "$ac_c_werror_flag"
8572                          || test ! -s conftest.err'
8573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8574   (eval $ac_try) 2>&5
8575   ac_status=$?
8576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8577   (exit $ac_status); }; } &&
8578          { ac_try='test -s conftest.$ac_objext'
8579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8580   (eval $ac_try) 2>&5
8581   ac_status=$?
8582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8583   (exit $ac_status); }; }; then
8584   ac_hi=$ac_mid
8585 else
8586   echo "$as_me: failed program was:" >&5
8587 sed 's/^/| /' conftest.$ac_ext >&5
8588
8589 ac_lo=`expr '(' $ac_mid ')' + 1`
8590 fi
8591 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8592 done
8593 case $ac_lo in
8594 ?*) ac_cv_sizeof_long=$ac_lo;;
8595 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
8596 See \`config.log' for more details." >&5
8597 echo "$as_me: error: cannot compute sizeof (long), 77
8598 See \`config.log' for more details." >&2;}
8599    { (exit 1); exit 1; }; } ;;
8600 esac
8601 else
8602   if test "$cross_compiling" = yes; then
8603   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8604 See \`config.log' for more details." >&5
8605 echo "$as_me: error: cannot run test program while cross compiling
8606 See \`config.log' for more details." >&2;}
8607    { (exit 1); exit 1; }; }
8608 else
8609   cat >conftest.$ac_ext <<_ACEOF
8610 /* confdefs.h.  */
8611 _ACEOF
8612 cat confdefs.h >>conftest.$ac_ext
8613 cat >>conftest.$ac_ext <<_ACEOF
8614 /* end confdefs.h.  */
8615 $ac_includes_default
8616 long longval () { return (long) (sizeof (long)); }
8617 unsigned long ulongval () { return (long) (sizeof (long)); }
8618 #include <stdio.h>
8619 #include <stdlib.h>
8620 int
8621 main ()
8622 {
8623
8624   FILE *f = fopen ("conftest.val", "w");
8625   if (! f)
8626     exit (1);
8627   if (((long) (sizeof (long))) < 0)
8628     {
8629       long i = longval ();
8630       if (i != ((long) (sizeof (long))))
8631         exit (1);
8632       fprintf (f, "%ld\n", i);
8633     }
8634   else
8635     {
8636       unsigned long i = ulongval ();
8637       if (i != ((long) (sizeof (long))))
8638         exit (1);
8639       fprintf (f, "%lu\n", i);
8640     }
8641   exit (ferror (f) || fclose (f) != 0);
8642
8643   ;
8644   return 0;
8645 }
8646 _ACEOF
8647 rm -f conftest$ac_exeext
8648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8649   (eval $ac_link) 2>&5
8650   ac_status=$?
8651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8652   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8654   (eval $ac_try) 2>&5
8655   ac_status=$?
8656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8657   (exit $ac_status); }; }; then
8658   ac_cv_sizeof_long=`cat conftest.val`
8659 else
8660   echo "$as_me: program exited with status $ac_status" >&5
8661 echo "$as_me: failed program was:" >&5
8662 sed 's/^/| /' conftest.$ac_ext >&5
8663
8664 ( exit $ac_status )
8665 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
8666 See \`config.log' for more details." >&5
8667 echo "$as_me: error: cannot compute sizeof (long), 77
8668 See \`config.log' for more details." >&2;}
8669    { (exit 1); exit 1; }; }
8670 fi
8671 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8672 fi
8673 fi
8674 rm -f conftest.val
8675 else
8676   ac_cv_sizeof_long=0
8677 fi
8678 fi
8679 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
8680 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
8681 cat >>confdefs.h <<_ACEOF
8682 #define SIZEOF_LONG $ac_cv_sizeof_long
8683 _ACEOF
8684
8685
8686    echo "$as_me:$LINENO: checking for void*" >&5
8687 echo $ECHO_N "checking for void*... $ECHO_C" >&6
8688 if test "${ac_cv_type_voidp+set}" = set; then
8689   echo $ECHO_N "(cached) $ECHO_C" >&6
8690 else
8691   cat >conftest.$ac_ext <<_ACEOF
8692 /* confdefs.h.  */
8693 _ACEOF
8694 cat confdefs.h >>conftest.$ac_ext
8695 cat >>conftest.$ac_ext <<_ACEOF
8696 /* end confdefs.h.  */
8697 $ac_includes_default
8698 int
8699 main ()
8700 {
8701 if ((void* *) 0)
8702   return 0;
8703 if (sizeof (void*))
8704   return 0;
8705   ;
8706   return 0;
8707 }
8708 _ACEOF
8709 rm -f conftest.$ac_objext
8710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8711   (eval $ac_compile) 2>conftest.er1
8712   ac_status=$?
8713   grep -v '^ *+' conftest.er1 >conftest.err
8714   rm -f conftest.er1
8715   cat conftest.err >&5
8716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8717   (exit $ac_status); } &&
8718          { ac_try='test -z "$ac_c_werror_flag"
8719                          || test ! -s conftest.err'
8720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8721   (eval $ac_try) 2>&5
8722   ac_status=$?
8723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8724   (exit $ac_status); }; } &&
8725          { ac_try='test -s conftest.$ac_objext'
8726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8727   (eval $ac_try) 2>&5
8728   ac_status=$?
8729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8730   (exit $ac_status); }; }; then
8731   ac_cv_type_voidp=yes
8732 else
8733   echo "$as_me: failed program was:" >&5
8734 sed 's/^/| /' conftest.$ac_ext >&5
8735
8736 ac_cv_type_voidp=no
8737 fi
8738 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8739 fi
8740 echo "$as_me:$LINENO: result: $ac_cv_type_voidp" >&5
8741 echo "${ECHO_T}$ac_cv_type_voidp" >&6
8742
8743 echo "$as_me:$LINENO: checking size of void*" >&5
8744 echo $ECHO_N "checking size of void*... $ECHO_C" >&6
8745 if test "${ac_cv_sizeof_voidp+set}" = set; then
8746   echo $ECHO_N "(cached) $ECHO_C" >&6
8747 else
8748   if test "$ac_cv_type_voidp" = yes; then
8749   # The cast to unsigned long works around a bug in the HP C Compiler
8750   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8751   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8752   # This bug is HP SR number 8606223364.
8753   if test "$cross_compiling" = yes; then
8754   # Depending upon the size, compute the lo and hi bounds.
8755 cat >conftest.$ac_ext <<_ACEOF
8756 /* confdefs.h.  */
8757 _ACEOF
8758 cat confdefs.h >>conftest.$ac_ext
8759 cat >>conftest.$ac_ext <<_ACEOF
8760 /* end confdefs.h.  */
8761 $ac_includes_default
8762 int
8763 main ()
8764 {
8765 static int test_array [1 - 2 * !(((long) (sizeof (void*))) >= 0)];
8766 test_array [0] = 0
8767
8768   ;
8769   return 0;
8770 }
8771 _ACEOF
8772 rm -f conftest.$ac_objext
8773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8774   (eval $ac_compile) 2>conftest.er1
8775   ac_status=$?
8776   grep -v '^ *+' conftest.er1 >conftest.err
8777   rm -f conftest.er1
8778   cat conftest.err >&5
8779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8780   (exit $ac_status); } &&
8781          { ac_try='test -z "$ac_c_werror_flag"
8782                          || test ! -s conftest.err'
8783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8784   (eval $ac_try) 2>&5
8785   ac_status=$?
8786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8787   (exit $ac_status); }; } &&
8788          { ac_try='test -s conftest.$ac_objext'
8789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8790   (eval $ac_try) 2>&5
8791   ac_status=$?
8792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8793   (exit $ac_status); }; }; then
8794   ac_lo=0 ac_mid=0
8795   while :; do
8796     cat >conftest.$ac_ext <<_ACEOF
8797 /* confdefs.h.  */
8798 _ACEOF
8799 cat confdefs.h >>conftest.$ac_ext
8800 cat >>conftest.$ac_ext <<_ACEOF
8801 /* end confdefs.h.  */
8802 $ac_includes_default
8803 int
8804 main ()
8805 {
8806 static int test_array [1 - 2 * !(((long) (sizeof (void*))) <= $ac_mid)];
8807 test_array [0] = 0
8808
8809   ;
8810   return 0;
8811 }
8812 _ACEOF
8813 rm -f conftest.$ac_objext
8814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8815   (eval $ac_compile) 2>conftest.er1
8816   ac_status=$?
8817   grep -v '^ *+' conftest.er1 >conftest.err
8818   rm -f conftest.er1
8819   cat conftest.err >&5
8820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8821   (exit $ac_status); } &&
8822          { ac_try='test -z "$ac_c_werror_flag"
8823                          || test ! -s conftest.err'
8824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8825   (eval $ac_try) 2>&5
8826   ac_status=$?
8827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8828   (exit $ac_status); }; } &&
8829          { ac_try='test -s conftest.$ac_objext'
8830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8831   (eval $ac_try) 2>&5
8832   ac_status=$?
8833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8834   (exit $ac_status); }; }; then
8835   ac_hi=$ac_mid; break
8836 else
8837   echo "$as_me: failed program was:" >&5
8838 sed 's/^/| /' conftest.$ac_ext >&5
8839
8840 ac_lo=`expr $ac_mid + 1`
8841                     if test $ac_lo -le $ac_mid; then
8842                       ac_lo= ac_hi=
8843                       break
8844                     fi
8845                     ac_mid=`expr 2 '*' $ac_mid + 1`
8846 fi
8847 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8848   done
8849 else
8850   echo "$as_me: failed program was:" >&5
8851 sed 's/^/| /' conftest.$ac_ext >&5
8852
8853 cat >conftest.$ac_ext <<_ACEOF
8854 /* confdefs.h.  */
8855 _ACEOF
8856 cat confdefs.h >>conftest.$ac_ext
8857 cat >>conftest.$ac_ext <<_ACEOF
8858 /* end confdefs.h.  */
8859 $ac_includes_default
8860 int
8861 main ()
8862 {
8863 static int test_array [1 - 2 * !(((long) (sizeof (void*))) < 0)];
8864 test_array [0] = 0
8865
8866   ;
8867   return 0;
8868 }
8869 _ACEOF
8870 rm -f conftest.$ac_objext
8871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8872   (eval $ac_compile) 2>conftest.er1
8873   ac_status=$?
8874   grep -v '^ *+' conftest.er1 >conftest.err
8875   rm -f conftest.er1
8876   cat conftest.err >&5
8877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8878   (exit $ac_status); } &&
8879          { ac_try='test -z "$ac_c_werror_flag"
8880                          || test ! -s conftest.err'
8881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8882   (eval $ac_try) 2>&5
8883   ac_status=$?
8884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8885   (exit $ac_status); }; } &&
8886          { ac_try='test -s conftest.$ac_objext'
8887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8888   (eval $ac_try) 2>&5
8889   ac_status=$?
8890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8891   (exit $ac_status); }; }; then
8892   ac_hi=-1 ac_mid=-1
8893   while :; do
8894     cat >conftest.$ac_ext <<_ACEOF
8895 /* confdefs.h.  */
8896 _ACEOF
8897 cat confdefs.h >>conftest.$ac_ext
8898 cat >>conftest.$ac_ext <<_ACEOF
8899 /* end confdefs.h.  */
8900 $ac_includes_default
8901 int
8902 main ()
8903 {
8904 static int test_array [1 - 2 * !(((long) (sizeof (void*))) >= $ac_mid)];
8905 test_array [0] = 0
8906
8907   ;
8908   return 0;
8909 }
8910 _ACEOF
8911 rm -f conftest.$ac_objext
8912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8913   (eval $ac_compile) 2>conftest.er1
8914   ac_status=$?
8915   grep -v '^ *+' conftest.er1 >conftest.err
8916   rm -f conftest.er1
8917   cat conftest.err >&5
8918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8919   (exit $ac_status); } &&
8920          { ac_try='test -z "$ac_c_werror_flag"
8921                          || test ! -s conftest.err'
8922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8923   (eval $ac_try) 2>&5
8924   ac_status=$?
8925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8926   (exit $ac_status); }; } &&
8927          { ac_try='test -s conftest.$ac_objext'
8928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8929   (eval $ac_try) 2>&5
8930   ac_status=$?
8931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8932   (exit $ac_status); }; }; then
8933   ac_lo=$ac_mid; break
8934 else
8935   echo "$as_me: failed program was:" >&5
8936 sed 's/^/| /' conftest.$ac_ext >&5
8937
8938 ac_hi=`expr '(' $ac_mid ')' - 1`
8939                        if test $ac_mid -le $ac_hi; then
8940                          ac_lo= ac_hi=
8941                          break
8942                        fi
8943                        ac_mid=`expr 2 '*' $ac_mid`
8944 fi
8945 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8946   done
8947 else
8948   echo "$as_me: failed program was:" >&5
8949 sed 's/^/| /' conftest.$ac_ext >&5
8950
8951 ac_lo= ac_hi=
8952 fi
8953 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8954 fi
8955 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8956 # Binary search between lo and hi bounds.
8957 while test "x$ac_lo" != "x$ac_hi"; do
8958   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8959   cat >conftest.$ac_ext <<_ACEOF
8960 /* confdefs.h.  */
8961 _ACEOF
8962 cat confdefs.h >>conftest.$ac_ext
8963 cat >>conftest.$ac_ext <<_ACEOF
8964 /* end confdefs.h.  */
8965 $ac_includes_default
8966 int
8967 main ()
8968 {
8969 static int test_array [1 - 2 * !(((long) (sizeof (void*))) <= $ac_mid)];
8970 test_array [0] = 0
8971
8972   ;
8973   return 0;
8974 }
8975 _ACEOF
8976 rm -f conftest.$ac_objext
8977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8978   (eval $ac_compile) 2>conftest.er1
8979   ac_status=$?
8980   grep -v '^ *+' conftest.er1 >conftest.err
8981   rm -f conftest.er1
8982   cat conftest.err >&5
8983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8984   (exit $ac_status); } &&
8985          { ac_try='test -z "$ac_c_werror_flag"
8986                          || test ! -s conftest.err'
8987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8988   (eval $ac_try) 2>&5
8989   ac_status=$?
8990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8991   (exit $ac_status); }; } &&
8992          { ac_try='test -s conftest.$ac_objext'
8993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8994   (eval $ac_try) 2>&5
8995   ac_status=$?
8996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8997   (exit $ac_status); }; }; then
8998   ac_hi=$ac_mid
8999 else
9000   echo "$as_me: failed program was:" >&5
9001 sed 's/^/| /' conftest.$ac_ext >&5
9002
9003 ac_lo=`expr '(' $ac_mid ')' + 1`
9004 fi
9005 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9006 done
9007 case $ac_lo in
9008 ?*) ac_cv_sizeof_voidp=$ac_lo;;
9009 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void*), 77
9010 See \`config.log' for more details." >&5
9011 echo "$as_me: error: cannot compute sizeof (void*), 77
9012 See \`config.log' for more details." >&2;}
9013    { (exit 1); exit 1; }; } ;;
9014 esac
9015 else
9016   if test "$cross_compiling" = yes; then
9017   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9018 See \`config.log' for more details." >&5
9019 echo "$as_me: error: cannot run test program while cross compiling
9020 See \`config.log' for more details." >&2;}
9021    { (exit 1); exit 1; }; }
9022 else
9023   cat >conftest.$ac_ext <<_ACEOF
9024 /* confdefs.h.  */
9025 _ACEOF
9026 cat confdefs.h >>conftest.$ac_ext
9027 cat >>conftest.$ac_ext <<_ACEOF
9028 /* end confdefs.h.  */
9029 $ac_includes_default
9030 long longval () { return (long) (sizeof (void*)); }
9031 unsigned long ulongval () { return (long) (sizeof (void*)); }
9032 #include <stdio.h>
9033 #include <stdlib.h>
9034 int
9035 main ()
9036 {
9037
9038   FILE *f = fopen ("conftest.val", "w");
9039   if (! f)
9040     exit (1);
9041   if (((long) (sizeof (void*))) < 0)
9042     {
9043       long i = longval ();
9044       if (i != ((long) (sizeof (void*))))
9045         exit (1);
9046       fprintf (f, "%ld\n", i);
9047     }
9048   else
9049     {
9050       unsigned long i = ulongval ();
9051       if (i != ((long) (sizeof (void*))))
9052         exit (1);
9053       fprintf (f, "%lu\n", i);
9054     }
9055   exit (ferror (f) || fclose (f) != 0);
9056
9057   ;
9058   return 0;
9059 }
9060 _ACEOF
9061 rm -f conftest$ac_exeext
9062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9063   (eval $ac_link) 2>&5
9064   ac_status=$?
9065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9066   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9068   (eval $ac_try) 2>&5
9069   ac_status=$?
9070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9071   (exit $ac_status); }; }; then
9072   ac_cv_sizeof_voidp=`cat conftest.val`
9073 else
9074   echo "$as_me: program exited with status $ac_status" >&5
9075 echo "$as_me: failed program was:" >&5
9076 sed 's/^/| /' conftest.$ac_ext >&5
9077
9078 ( exit $ac_status )
9079 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void*), 77
9080 See \`config.log' for more details." >&5
9081 echo "$as_me: error: cannot compute sizeof (void*), 77
9082 See \`config.log' for more details." >&2;}
9083    { (exit 1); exit 1; }; }
9084 fi
9085 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9086 fi
9087 fi
9088 rm -f conftest.val
9089 else
9090   ac_cv_sizeof_voidp=0
9091 fi
9092 fi
9093 echo "$as_me:$LINENO: result: $ac_cv_sizeof_voidp" >&5
9094 echo "${ECHO_T}$ac_cv_sizeof_voidp" >&6
9095 cat >>confdefs.h <<_ACEOF
9096 #define SIZEOF_VOIDP $ac_cv_sizeof_voidp
9097 _ACEOF
9098
9099
9100    ac_cv_char_data_model=""
9101    ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_char"
9102    ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_short"
9103    ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_int"
9104    ac_cv_long_data_model=""
9105    ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_int"
9106    ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_long"
9107    ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_voidp"
9108    echo "$as_me:$LINENO: checking data model" >&5
9109 echo $ECHO_N "checking data model... $ECHO_C" >&6
9110    case "$ac_cv_char_data_model/$ac_cv_long_data_model" in
9111     122/242)     ac_cv_data_model="IP16"  ; n="standard 16bit machine" ;;
9112     122/244)     ac_cv_data_model="LP32"  ; n="standard 32bit machine" ;;
9113     122/*)       ac_cv_data_model="i16"   ; n="unusual int16 model" ;;
9114     124/444)     ac_cv_data_model="ILP32" ; n="standard 32bit unixish" ;;
9115     124/488)     ac_cv_data_model="LP64"  ; n="standard 64bit unixish" ;;
9116     124/448)     ac_cv_data_model="LLP64" ; n="unusual 64bit unixish" ;;
9117     124/*)       ac_cv_data_model="i32"   ; n="unusual int32 model" ;;
9118     128/888)     ac_cv_data_model="ILP64" ; n="unusual 64bit numeric" ;;
9119     128/*)       ac_cv_data_model="i64"   ; n="unusual int64 model" ;;
9120     222/*2)      ac_cv_data_model="DSP16" ; n="strict 16bit dsptype" ;;
9121     333/*3)      ac_cv_data_model="DSP24" ; n="strict 24bit dsptype" ;;
9122     444/*4)      ac_cv_data_model="DSP32" ; n="strict 32bit dsptype" ;;
9123     666/*6)      ac_cv_data_model="DSP48" ; n="strict 48bit dsptype" ;;
9124     888/*8)      ac_cv_data_model="DSP64" ; n="strict 64bit dsptype" ;;
9125     222/*|333/*|444/*|666/*|888/*) :
9126                  ac_cv_data_model="iDSP"  ; n="unusual dsptype" ;;
9127      *)          ac_cv_data_model="none"  ; n="very unusual model" ;;
9128    esac
9129    echo "$as_me:$LINENO: result: $ac_cv_data_model ($ac_cv_long_data_model, $n)" >&5
9130 echo "${ECHO_T}$ac_cv_data_model ($ac_cv_long_data_model, $n)" >&6
9131
9132 fi
9133
9134 if test "_$ac_cv_header_stdint_x" != "_" ; then
9135    ac_cv_header_stdint="$ac_cv_header_stdint_x"
9136 elif  test "_$ac_cv_header_stdint_o" != "_" ; then
9137    ac_cv_header_stdint="$ac_cv_header_stdint_o"
9138 elif  test "_$ac_cv_header_stdint_u" != "_" ; then
9139    ac_cv_header_stdint="$ac_cv_header_stdint_u"
9140 else
9141    ac_cv_header_stdint="stddef.h"
9142 fi
9143
9144 echo "$as_me:$LINENO: checking for extra inttypes in chosen header" >&5
9145 echo $ECHO_N "checking for extra inttypes in chosen header... $ECHO_C" >&6
9146 echo "$as_me:$LINENO: result: ($ac_cv_header_stdint)" >&5
9147 echo "${ECHO_T}($ac_cv_header_stdint)" >&6
9148 unset ac_cv_type_int_least32_t
9149 unset ac_cv_type_int_fast32_t
9150 echo "$as_me:$LINENO: checking for int_least32_t" >&5
9151 echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6
9152 if test "${ac_cv_type_int_least32_t+set}" = set; then
9153   echo $ECHO_N "(cached) $ECHO_C" >&6
9154 else
9155   cat >conftest.$ac_ext <<_ACEOF
9156 /* confdefs.h.  */
9157 _ACEOF
9158 cat confdefs.h >>conftest.$ac_ext
9159 cat >>conftest.$ac_ext <<_ACEOF
9160 /* end confdefs.h.  */
9161 #include <$ac_cv_header_stdint>
9162
9163 int
9164 main ()
9165 {
9166 if ((int_least32_t *) 0)
9167   return 0;
9168 if (sizeof (int_least32_t))
9169   return 0;
9170   ;
9171   return 0;
9172 }
9173 _ACEOF
9174 rm -f conftest.$ac_objext
9175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9176   (eval $ac_compile) 2>conftest.er1
9177   ac_status=$?
9178   grep -v '^ *+' conftest.er1 >conftest.err
9179   rm -f conftest.er1
9180   cat conftest.err >&5
9181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9182   (exit $ac_status); } &&
9183          { ac_try='test -z "$ac_c_werror_flag"
9184                          || test ! -s conftest.err'
9185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9186   (eval $ac_try) 2>&5
9187   ac_status=$?
9188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9189   (exit $ac_status); }; } &&
9190          { ac_try='test -s conftest.$ac_objext'
9191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9192   (eval $ac_try) 2>&5
9193   ac_status=$?
9194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9195   (exit $ac_status); }; }; then
9196   ac_cv_type_int_least32_t=yes
9197 else
9198   echo "$as_me: failed program was:" >&5
9199 sed 's/^/| /' conftest.$ac_ext >&5
9200
9201 ac_cv_type_int_least32_t=no
9202 fi
9203 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9204 fi
9205 echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5
9206 echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6
9207
9208 echo "$as_me:$LINENO: checking for int_fast32_t" >&5
9209 echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6
9210 if test "${ac_cv_type_int_fast32_t+set}" = set; then
9211   echo $ECHO_N "(cached) $ECHO_C" >&6
9212 else
9213   cat >conftest.$ac_ext <<_ACEOF
9214 /* confdefs.h.  */
9215 _ACEOF
9216 cat confdefs.h >>conftest.$ac_ext
9217 cat >>conftest.$ac_ext <<_ACEOF
9218 /* end confdefs.h.  */
9219 #include<$ac_cv_header_stdint>
9220
9221 int
9222 main ()
9223 {
9224 if ((int_fast32_t *) 0)
9225   return 0;
9226 if (sizeof (int_fast32_t))
9227   return 0;
9228   ;
9229   return 0;
9230 }
9231 _ACEOF
9232 rm -f conftest.$ac_objext
9233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9234   (eval $ac_compile) 2>conftest.er1
9235   ac_status=$?
9236   grep -v '^ *+' conftest.er1 >conftest.err
9237   rm -f conftest.er1
9238   cat conftest.err >&5
9239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9240   (exit $ac_status); } &&
9241          { ac_try='test -z "$ac_c_werror_flag"
9242                          || test ! -s conftest.err'
9243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9244   (eval $ac_try) 2>&5
9245   ac_status=$?
9246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9247   (exit $ac_status); }; } &&
9248          { ac_try='test -s conftest.$ac_objext'
9249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9250   (eval $ac_try) 2>&5
9251   ac_status=$?
9252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9253   (exit $ac_status); }; }; then
9254   ac_cv_type_int_fast32_t=yes
9255 else
9256   echo "$as_me: failed program was:" >&5
9257 sed 's/^/| /' conftest.$ac_ext >&5
9258
9259 ac_cv_type_int_fast32_t=no
9260 fi
9261 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9262 fi
9263 echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5
9264 echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6
9265
9266 echo "$as_me:$LINENO: checking for intmax_t" >&5
9267 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
9268 if test "${ac_cv_type_intmax_t+set}" = set; then
9269   echo $ECHO_N "(cached) $ECHO_C" >&6
9270 else
9271   cat >conftest.$ac_ext <<_ACEOF
9272 /* confdefs.h.  */
9273 _ACEOF
9274 cat confdefs.h >>conftest.$ac_ext
9275 cat >>conftest.$ac_ext <<_ACEOF
9276 /* end confdefs.h.  */
9277 #include <$ac_cv_header_stdint>
9278
9279 int
9280 main ()
9281 {
9282 if ((intmax_t *) 0)
9283   return 0;
9284 if (sizeof (intmax_t))
9285   return 0;
9286   ;
9287   return 0;
9288 }
9289 _ACEOF
9290 rm -f conftest.$ac_objext
9291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9292   (eval $ac_compile) 2>conftest.er1
9293   ac_status=$?
9294   grep -v '^ *+' conftest.er1 >conftest.err
9295   rm -f conftest.er1
9296   cat conftest.err >&5
9297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9298   (exit $ac_status); } &&
9299          { ac_try='test -z "$ac_c_werror_flag"
9300                          || test ! -s conftest.err'
9301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9302   (eval $ac_try) 2>&5
9303   ac_status=$?
9304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9305   (exit $ac_status); }; } &&
9306          { ac_try='test -s conftest.$ac_objext'
9307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9308   (eval $ac_try) 2>&5
9309   ac_status=$?
9310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9311   (exit $ac_status); }; }; then
9312   ac_cv_type_intmax_t=yes
9313 else
9314   echo "$as_me: failed program was:" >&5
9315 sed 's/^/| /' conftest.$ac_ext >&5
9316
9317 ac_cv_type_intmax_t=no
9318 fi
9319 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9320 fi
9321 echo "$as_me:$LINENO: result: $ac_cv_type_intmax_t" >&5
9322 echo "${ECHO_T}$ac_cv_type_intmax_t" >&6
9323
9324
9325 fi # shortcircut to system "stdint.h"
9326 # ------------------ PREPARE VARIABLES ------------------------------
9327 if test "$GCC" = "yes" ; then
9328 ac_cv_stdint_message="using gnu compiler "`$CC --version | head -1`
9329 else
9330 ac_cv_stdint_message="using $CC"
9331 fi
9332
9333 echo "$as_me:$LINENO: result: make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&5
9334 echo "${ECHO_T}make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&6
9335
9336 # ----------------- DONE inttypes.h checks START header -------------
9337           ac_config_commands="$ac_config_commands $ac_stdint_h"
9338
9339
9340
9341 for ac_prog in ar
9342 do
9343   # Extract the first word of "$ac_prog", so it can be a program name with args.
9344 set dummy $ac_prog; ac_word=$2
9345 echo "$as_me:$LINENO: checking for $ac_word" >&5
9346 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9347 if test "${ac_cv_path_AR+set}" = set; then
9348   echo $ECHO_N "(cached) $ECHO_C" >&6
9349 else
9350   case $AR in
9351   [\\/]* | ?:[\\/]*)
9352   ac_cv_path_AR="$AR" # Let the user override the test with a path.
9353   ;;
9354   *)
9355   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9356 for as_dir in $LOCSYSPATH
9357 do
9358   IFS=$as_save_IFS
9359   test -z "$as_dir" && as_dir=.
9360   for ac_exec_ext in '' $ac_executable_extensions; do
9361   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9362     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
9363     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9364     break 2
9365   fi
9366 done
9367 done
9368
9369   ;;
9370 esac
9371 fi
9372 AR=$ac_cv_path_AR
9373
9374 if test -n "$AR"; then
9375   echo "$as_me:$LINENO: result: $AR" >&5
9376 echo "${ECHO_T}$AR" >&6
9377 else
9378   echo "$as_me:$LINENO: result: no" >&5
9379 echo "${ECHO_T}no" >&6
9380 fi
9381
9382   test -n "$AR" && break
9383 done
9384
9385
9386 for ac_prog in gawk mawk nawk awk
9387 do
9388   # Extract the first word of "$ac_prog", so it can be a program name with args.
9389 set dummy $ac_prog; ac_word=$2
9390 echo "$as_me:$LINENO: checking for $ac_word" >&5
9391 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9392 if test "${ac_cv_prog_AWK+set}" = set; then
9393   echo $ECHO_N "(cached) $ECHO_C" >&6
9394 else
9395   if test -n "$AWK"; then
9396   ac_cv_prog_AWK="$AWK" # Let the user override the test.
9397 else
9398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9399 for as_dir in $PATH
9400 do
9401   IFS=$as_save_IFS
9402   test -z "$as_dir" && as_dir=.
9403   for ac_exec_ext in '' $ac_executable_extensions; do
9404   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9405     ac_cv_prog_AWK="$ac_prog"
9406     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9407     break 2
9408   fi
9409 done
9410 done
9411
9412 fi
9413 fi
9414 AWK=$ac_cv_prog_AWK
9415 if test -n "$AWK"; then
9416   echo "$as_me:$LINENO: result: $AWK" >&5
9417 echo "${ECHO_T}$AWK" >&6
9418 else
9419   echo "$as_me:$LINENO: result: no" >&5
9420 echo "${ECHO_T}no" >&6
9421 fi
9422
9423   test -n "$AWK" && break
9424 done
9425
9426
9427
9428         echo "$as_me:$LINENO: checking for $AWK command line variable assignment" >&5
9429 echo $ECHO_N "checking for $AWK command line variable assignment... $ECHO_C" >&6
9430 if test "${amanda_cv_awk_var_assignment+set}" = set; then
9431   echo $ECHO_N "(cached) $ECHO_C" >&6
9432 else
9433
9434                 echo 'BEGIN{print i; exit}' > conftest.awk
9435                 result=`$AWK -f conftest.awk i=xx | wc -c`
9436                 if test "$result" -le 1; then
9437                     result=`$AWK -f conftest.awk -v i=xx | wc -c`
9438                     if test "$result" -le 1; then
9439                         amanda_cv_awk_var_assignment=no
9440                     else
9441                         amanda_cv_awk_var_assignment="yes with -v"
9442                     fi
9443                 else
9444                     amanda_cv_awk_var_assignment="yes"
9445                 fi
9446                 rm -fr conftest.awk
9447
9448
9449 fi
9450 echo "$as_me:$LINENO: result: $amanda_cv_awk_var_assignment" >&5
9451 echo "${ECHO_T}$amanda_cv_awk_var_assignment" >&6
9452         AWK_VAR_ASSIGNMENT_OPT=
9453         case "$amanda_cv_awk_var_assignment" in
9454             no)
9455                 HAVE_AWK_WITH_VAR=no
9456                 ;;
9457             yes)
9458                 HAVE_AWK_WITH_VAR=yes
9459                 ;;
9460             "yes with -v")
9461                 HAVE_AWK_WITH_VAR=yes
9462                 AWK_VAR_ASSIGNMENT_OPT=-v
9463                 ;;
9464         esac
9465
9466
9467
9468 if test "x$amanda_cv_awk_var_assignment" = xno; then
9469     NO_AMPLOT_MODE=true
9470     { echo "$as_me:$LINENO: WARNING: *** Your $awk cannot do command line variable assignment.  Amplot will not be installed." >&5
9471 echo "$as_me: WARNING: *** Your $awk cannot do command line variable assignment.  Amplot will not be installed." >&2;}
9472 fi
9473
9474 for ac_prog in 'bison -y' byacc
9475 do
9476   # Extract the first word of "$ac_prog", so it can be a program name with args.
9477 set dummy $ac_prog; ac_word=$2
9478 echo "$as_me:$LINENO: checking for $ac_word" >&5
9479 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9480 if test "${ac_cv_prog_YACC+set}" = set; then
9481   echo $ECHO_N "(cached) $ECHO_C" >&6
9482 else
9483   if test -n "$YACC"; then
9484   ac_cv_prog_YACC="$YACC" # Let the user override the test.
9485 else
9486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9487 for as_dir in $PATH
9488 do
9489   IFS=$as_save_IFS
9490   test -z "$as_dir" && as_dir=.
9491   for ac_exec_ext in '' $ac_executable_extensions; do
9492   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9493     ac_cv_prog_YACC="$ac_prog"
9494     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9495     break 2
9496   fi
9497 done
9498 done
9499
9500 fi
9501 fi
9502 YACC=$ac_cv_prog_YACC
9503 if test -n "$YACC"; then
9504   echo "$as_me:$LINENO: result: $YACC" >&5
9505 echo "${ECHO_T}$YACC" >&6
9506 else
9507   echo "$as_me:$LINENO: result: no" >&5
9508 echo "${ECHO_T}no" >&6
9509 fi
9510
9511   test -n "$YACC" && break
9512 done
9513 test -n "$YACC" || YACC="yacc"
9514
9515 for ac_prog in cat
9516 do
9517   # Extract the first word of "$ac_prog", so it can be a program name with args.
9518 set dummy $ac_prog; ac_word=$2
9519 echo "$as_me:$LINENO: checking for $ac_word" >&5
9520 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9521 if test "${ac_cv_path_CAT+set}" = set; then
9522   echo $ECHO_N "(cached) $ECHO_C" >&6
9523 else
9524   case $CAT in
9525   [\\/]* | ?:[\\/]*)
9526   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
9527   ;;
9528   *)
9529   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9530 for as_dir in $LOCSYSPATH
9531 do
9532   IFS=$as_save_IFS
9533   test -z "$as_dir" && as_dir=.
9534   for ac_exec_ext in '' $ac_executable_extensions; do
9535   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9536     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
9537     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9538     break 2
9539   fi
9540 done
9541 done
9542
9543   ;;
9544 esac
9545 fi
9546 CAT=$ac_cv_path_CAT
9547
9548 if test -n "$CAT"; then
9549   echo "$as_me:$LINENO: result: $CAT" >&5
9550 echo "${ECHO_T}$CAT" >&6
9551 else
9552   echo "$as_me:$LINENO: result: no" >&5
9553 echo "${ECHO_T}no" >&6
9554 fi
9555
9556   test -n "$CAT" && break
9557 done
9558
9559 if test -z "$CAT"; then
9560     CAT=cat
9561 fi
9562 for ac_prog in compress
9563 do
9564   # Extract the first word of "$ac_prog", so it can be a program name with args.
9565 set dummy $ac_prog; ac_word=$2
9566 echo "$as_me:$LINENO: checking for $ac_word" >&5
9567 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9568 if test "${ac_cv_path_COMPRESS+set}" = set; then
9569   echo $ECHO_N "(cached) $ECHO_C" >&6
9570 else
9571   case $COMPRESS in
9572   [\\/]* | ?:[\\/]*)
9573   ac_cv_path_COMPRESS="$COMPRESS" # Let the user override the test with a path.
9574   ;;
9575   *)
9576   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9577 for as_dir in $LOCSYSPATH
9578 do
9579   IFS=$as_save_IFS
9580   test -z "$as_dir" && as_dir=.
9581   for ac_exec_ext in '' $ac_executable_extensions; do
9582   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9583     ac_cv_path_COMPRESS="$as_dir/$ac_word$ac_exec_ext"
9584     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9585     break 2
9586   fi
9587 done
9588 done
9589
9590   ;;
9591 esac
9592 fi
9593 COMPRESS=$ac_cv_path_COMPRESS
9594
9595 if test -n "$COMPRESS"; then
9596   echo "$as_me:$LINENO: result: $COMPRESS" >&5
9597 echo "${ECHO_T}$COMPRESS" >&6
9598 else
9599   echo "$as_me:$LINENO: result: no" >&5
9600 echo "${ECHO_T}no" >&6
9601 fi
9602
9603   test -n "$COMPRESS" && break
9604 done
9605
9606 for ac_prog in dd
9607 do
9608   # Extract the first word of "$ac_prog", so it can be a program name with args.
9609 set dummy $ac_prog; ac_word=$2
9610 echo "$as_me:$LINENO: checking for $ac_word" >&5
9611 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9612 if test "${ac_cv_path_DD+set}" = set; then
9613   echo $ECHO_N "(cached) $ECHO_C" >&6
9614 else
9615   case $DD in
9616   [\\/]* | ?:[\\/]*)
9617   ac_cv_path_DD="$DD" # Let the user override the test with a path.
9618   ;;
9619   *)
9620   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9621 for as_dir in $LOCSYSPATH
9622 do
9623   IFS=$as_save_IFS
9624   test -z "$as_dir" && as_dir=.
9625   for ac_exec_ext in '' $ac_executable_extensions; do
9626   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9627     ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
9628     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9629     break 2
9630   fi
9631 done
9632 done
9633
9634   ;;
9635 esac
9636 fi
9637 DD=$ac_cv_path_DD
9638
9639 if test -n "$DD"; then
9640   echo "$as_me:$LINENO: result: $DD" >&5
9641 echo "${ECHO_T}$DD" >&6
9642 else
9643   echo "$as_me:$LINENO: result: no" >&5
9644 echo "${ECHO_T}no" >&6
9645 fi
9646
9647   test -n "$DD" && break
9648 done
9649
9650 for ac_prog in getconf
9651 do
9652   # Extract the first word of "$ac_prog", so it can be a program name with args.
9653 set dummy $ac_prog; ac_word=$2
9654 echo "$as_me:$LINENO: checking for $ac_word" >&5
9655 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9656 if test "${ac_cv_path_GETCONF+set}" = set; then
9657   echo $ECHO_N "(cached) $ECHO_C" >&6
9658 else
9659   case $GETCONF in
9660   [\\/]* | ?:[\\/]*)
9661   ac_cv_path_GETCONF="$GETCONF" # Let the user override the test with a path.
9662   ;;
9663   *)
9664   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9665 for as_dir in $SYSPATH
9666 do
9667   IFS=$as_save_IFS
9668   test -z "$as_dir" && as_dir=.
9669   for ac_exec_ext in '' $ac_executable_extensions; do
9670   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9671     ac_cv_path_GETCONF="$as_dir/$ac_word$ac_exec_ext"
9672     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9673     break 2
9674   fi
9675 done
9676 done
9677
9678   ;;
9679 esac
9680 fi
9681 GETCONF=$ac_cv_path_GETCONF
9682
9683 if test -n "$GETCONF"; then
9684   echo "$as_me:$LINENO: result: $GETCONF" >&5
9685 echo "${ECHO_T}$GETCONF" >&6
9686 else
9687   echo "$as_me:$LINENO: result: no" >&5
9688 echo "${ECHO_T}no" >&6
9689 fi
9690
9691   test -n "$GETCONF" && break
9692 done
9693
9694
9695 for ac_prog in gnuplot
9696 do
9697   # Extract the first word of "$ac_prog", so it can be a program name with args.
9698 set dummy $ac_prog; ac_word=$2
9699 echo "$as_me:$LINENO: checking for $ac_word" >&5
9700 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9701 if test "${ac_cv_path_GNUPLOT+set}" = set; then
9702   echo $ECHO_N "(cached) $ECHO_C" >&6
9703 else
9704   case $GNUPLOT in
9705   [\\/]* | ?:[\\/]*)
9706   ac_cv_path_GNUPLOT="$GNUPLOT" # Let the user override the test with a path.
9707   ;;
9708   *)
9709   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9710 for as_dir in $LOCSYSPATH
9711 do
9712   IFS=$as_save_IFS
9713   test -z "$as_dir" && as_dir=.
9714   for ac_exec_ext in '' $ac_executable_extensions; do
9715   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9716     ac_cv_path_GNUPLOT="$as_dir/$ac_word$ac_exec_ext"
9717     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9718     break 2
9719   fi
9720 done
9721 done
9722
9723   ;;
9724 esac
9725 fi
9726 GNUPLOT=$ac_cv_path_GNUPLOT
9727
9728 if test -n "$GNUPLOT"; then
9729   echo "$as_me:$LINENO: result: $GNUPLOT" >&5
9730 echo "${ECHO_T}$GNUPLOT" >&6
9731 else
9732   echo "$as_me:$LINENO: result: no" >&5
9733 echo "${ECHO_T}no" >&6
9734 fi
9735
9736   test -n "$GNUPLOT" && break
9737 done
9738
9739 if test -z "$GNUPLOT"; then
9740     NO_AMPLOT_MODE=true
9741     { echo "$as_me:$LINENO: WARNING: *** You do not have gnuplot.  Amplot will not be installed." >&5
9742 echo "$as_me: WARNING: *** You do not have gnuplot.  Amplot will not be installed." >&2;}
9743 fi
9744
9745 for ac_prog in gtar gnutar tar
9746 do
9747   # Extract the first word of "$ac_prog", so it can be a program name with args.
9748 set dummy $ac_prog; ac_word=$2
9749 echo "$as_me:$LINENO: checking for $ac_word" >&5
9750 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9751 if test "${ac_cv_path_GNUTAR+set}" = set; then
9752   echo $ECHO_N "(cached) $ECHO_C" >&6
9753 else
9754   case $GNUTAR in
9755   [\\/]* | ?:[\\/]*)
9756   ac_cv_path_GNUTAR="$GNUTAR" # Let the user override the test with a path.
9757   ;;
9758   *)
9759   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9760 for as_dir in $LOCSYSPATH
9761 do
9762   IFS=$as_save_IFS
9763   test -z "$as_dir" && as_dir=.
9764   for ac_exec_ext in '' $ac_executable_extensions; do
9765   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9766     ac_cv_path_GNUTAR="$as_dir/$ac_word$ac_exec_ext"
9767     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9768     break 2
9769   fi
9770 done
9771 done
9772
9773   ;;
9774 esac
9775 fi
9776 GNUTAR=$ac_cv_path_GNUTAR
9777
9778 if test -n "$GNUTAR"; then
9779   echo "$as_me:$LINENO: result: $GNUTAR" >&5
9780 echo "${ECHO_T}$GNUTAR" >&6
9781 else
9782   echo "$as_me:$LINENO: result: no" >&5
9783 echo "${ECHO_T}no" >&6
9784 fi
9785
9786   test -n "$GNUTAR" && break
9787 done
9788
9789 if test ! -z "$GNUTAR"; then
9790   case "`\"$GNUTAR\" --version 2>&1`" in
9791    *GNU*tar* | *Free*paxutils* )
9792
9793 cat >>confdefs.h <<_ACEOF
9794 #define GNUTAR "$GNUTAR"
9795 _ACEOF
9796
9797                 ;;
9798    *)
9799                 { echo "$as_me:$LINENO: WARNING: *** $GNUTAR is not GNU tar, so it will not be used." >&5
9800 echo "$as_me: WARNING: *** $GNUTAR is not GNU tar, so it will not be used." >&2;}
9801                 GNUTAR=
9802                 ;;
9803   esac
9804 fi
9805
9806 for ac_prog in smbclient
9807 do
9808   # Extract the first word of "$ac_prog", so it can be a program name with args.
9809 set dummy $ac_prog; ac_word=$2
9810 echo "$as_me:$LINENO: checking for $ac_word" >&5
9811 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9812 if test "${ac_cv_path_SAMBA_CLIENT+set}" = set; then
9813   echo $ECHO_N "(cached) $ECHO_C" >&6
9814 else
9815   case $SAMBA_CLIENT in
9816   [\\/]* | ?:[\\/]*)
9817   ac_cv_path_SAMBA_CLIENT="$SAMBA_CLIENT" # Let the user override the test with a path.
9818   ;;
9819   *)
9820   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9821 for as_dir in $LOCSYSPATH
9822 do
9823   IFS=$as_save_IFS
9824   test -z "$as_dir" && as_dir=.
9825   for ac_exec_ext in '' $ac_executable_extensions; do
9826   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9827     ac_cv_path_SAMBA_CLIENT="$as_dir/$ac_word$ac_exec_ext"
9828     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9829     break 2
9830   fi
9831 done
9832 done
9833
9834   ;;
9835 esac
9836 fi
9837 SAMBA_CLIENT=$ac_cv_path_SAMBA_CLIENT
9838
9839 if test -n "$SAMBA_CLIENT"; then
9840   echo "$as_me:$LINENO: result: $SAMBA_CLIENT" >&5
9841 echo "${ECHO_T}$SAMBA_CLIENT" >&6
9842 else
9843   echo "$as_me:$LINENO: result: no" >&5
9844 echo "${ECHO_T}no" >&6
9845 fi
9846
9847   test -n "$SAMBA_CLIENT" && break
9848 done
9849
9850 if test ! -z "$SAMBA_CLIENT"; then
9851   case "`\"$SAMBA_CLIENT\" '\\\\not.a.host.name\\notashare' -U nosuchuser -N -Tx /dev/null 2>&1`" in
9852   *"Unknown host"*)
9853                 smbversion=1
9854                 ;;
9855   *"Connection to not.a.host.name failed"*)
9856                 smbversion=2
9857                 ;;
9858   *)
9859                 { echo "$as_me:$LINENO: WARNING: *** $SAMBA_CLIENT does not seem to be smbclient, so it will not be used." >&5
9860 echo "$as_me: WARNING: *** $SAMBA_CLIENT does not seem to be smbclient, so it will not be used." >&2;}
9861                 SAMBA_CLIENT=
9862                 ;;
9863   esac
9864   if test -n "$SAMBA_CLIENT"; then
9865
9866 cat >>confdefs.h <<_ACEOF
9867 #define SAMBA_CLIENT "$SAMBA_CLIENT"
9868 _ACEOF
9869
9870
9871 cat >>confdefs.h <<_ACEOF
9872 #define SAMBA_VERSION $smbversion
9873 _ACEOF
9874
9875   fi
9876 fi
9877
9878 for ac_prog in gzip
9879 do
9880   # Extract the first word of "$ac_prog", so it can be a program name with args.
9881 set dummy $ac_prog; ac_word=$2
9882 echo "$as_me:$LINENO: checking for $ac_word" >&5
9883 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9884 if test "${ac_cv_path_GZIP+set}" = set; then
9885   echo $ECHO_N "(cached) $ECHO_C" >&6
9886 else
9887   case $GZIP in
9888   [\\/]* | ?:[\\/]*)
9889   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
9890   ;;
9891   *)
9892   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9893 for as_dir in $LOCSYSPATH
9894 do
9895   IFS=$as_save_IFS
9896   test -z "$as_dir" && as_dir=.
9897   for ac_exec_ext in '' $ac_executable_extensions; do
9898   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9899     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
9900     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9901     break 2
9902   fi
9903 done
9904 done
9905
9906   ;;
9907 esac
9908 fi
9909 GZIP=$ac_cv_path_GZIP
9910
9911 if test -n "$GZIP"; then
9912   echo "$as_me:$LINENO: result: $GZIP" >&5
9913 echo "${ECHO_T}$GZIP" >&6
9914 else
9915   echo "$as_me:$LINENO: result: no" >&5
9916 echo "${ECHO_T}no" >&6
9917 fi
9918
9919   test -n "$GZIP" && break
9920 done
9921
9922 if test "$GZIP"; then
9923
9924 cat >>confdefs.h <<\_ACEOF
9925 #define HAVE_GZIP 1
9926 _ACEOF
9927
9928     COMPRESS_PATH="$GZIP"
9929     COMPRESS_SUFFIX=".gz"
9930     COMPRESS_FAST_OPT="--fast"
9931     COMPRESS_BEST_OPT="--best"
9932     UNCOMPRESS_PATH="$GZIP"
9933     UNCOMPRESS_OPT="-dc"
9934 else
9935     if test "$COMPRESS"; then
9936         COMPRESS_PATH="$COMPRESS"
9937         COMPRESS_SUFFIX=".Z"
9938         COMPRESS_FAST_OPT="-f"
9939         COMPRESS_BEST_OPT="-f"
9940         UNCOMPRESS_PATH="$COMPRESS"
9941         UNCOMPRESS_OPT="-dc"
9942     else
9943                                 { echo "$as_me:$LINENO: WARNING: *** Cannot find either gzip or compress.  Using cat. ***" >&5
9944 echo "$as_me: WARNING: *** Cannot find either gzip or compress.  Using cat. ***" >&2;}
9945         COMPRESS_PATH="$CAT"
9946         COMPRESS_SUFFIX=""
9947         COMPRESS_FAST_OPT=""
9948         COMPRESS_BEST_OPT=""
9949         UNCOMPRESS_PATH="$CAT"
9950         UNCOMPRESS_OPT=""
9951     fi
9952 fi
9953
9954 cat >>confdefs.h <<_ACEOF
9955 #define COMPRESS_PATH "$COMPRESS_PATH"
9956 _ACEOF
9957
9958
9959 cat >>confdefs.h <<_ACEOF
9960 #define COMPRESS_SUFFIX "$COMPRESS_SUFFIX"
9961 _ACEOF
9962
9963
9964 cat >>confdefs.h <<_ACEOF
9965 #define COMPRESS_FAST_OPT "$COMPRESS_FAST_OPT"
9966 _ACEOF
9967
9968
9969 cat >>confdefs.h <<_ACEOF
9970 #define COMPRESS_BEST_OPT "$COMPRESS_BEST_OPT"
9971 _ACEOF
9972
9973
9974 cat >>confdefs.h <<_ACEOF
9975 #define UNCOMPRESS_PATH "$UNCOMPRESS_PATH"
9976 _ACEOF
9977
9978
9979 cat >>confdefs.h <<_ACEOF
9980 #define UNCOMPRESS_OPT "$UNCOMPRESS_OPT"
9981 _ACEOF
9982
9983
9984 for ac_prog in sort
9985 do
9986   # Extract the first word of "$ac_prog", so it can be a program name with args.
9987 set dummy $ac_prog; ac_word=$2
9988 echo "$as_me:$LINENO: checking for $ac_word" >&5
9989 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9990 if test "${ac_cv_path_SORT+set}" = set; then
9991   echo $ECHO_N "(cached) $ECHO_C" >&6
9992 else
9993   case $SORT in
9994   [\\/]* | ?:[\\/]*)
9995   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
9996   ;;
9997   *)
9998   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9999 for as_dir in $LOCSYSPATH
10000 do
10001   IFS=$as_save_IFS
10002   test -z "$as_dir" && as_dir=.
10003   for ac_exec_ext in '' $ac_executable_extensions; do
10004   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10005     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
10006     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10007     break 2
10008   fi
10009 done
10010 done
10011
10012   ;;
10013 esac
10014 fi
10015 SORT=$ac_cv_path_SORT
10016
10017 if test -n "$SORT"; then
10018   echo "$as_me:$LINENO: result: $SORT" >&5
10019 echo "${ECHO_T}$SORT" >&6
10020 else
10021   echo "$as_me:$LINENO: result: no" >&5
10022 echo "${ECHO_T}no" >&6
10023 fi
10024
10025   test -n "$SORT" && break
10026 done
10027
10028 if test -z "$SORT"; then
10029     if $NO_SERVER_MODE; then
10030         SORT="NONE"
10031     else
10032         { { echo "$as_me:$LINENO: error: Set SORT to the path of the sort program." >&5
10033 echo "$as_me: error: Set SORT to the path of the sort program." >&2;}
10034    { (exit 1); exit 1; }; }
10035     fi
10036 fi
10037
10038 cat >>confdefs.h <<_ACEOF
10039 #define SORT_PATH "$SORT"
10040 _ACEOF
10041
10042
10043 for ac_prog in Mail mailx mail
10044 do
10045   # Extract the first word of "$ac_prog", so it can be a program name with args.
10046 set dummy $ac_prog; ac_word=$2
10047 echo "$as_me:$LINENO: checking for $ac_word" >&5
10048 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10049 if test "${ac_cv_path_MAILER+set}" = set; then
10050   echo $ECHO_N "(cached) $ECHO_C" >&6
10051 else
10052   case $MAILER in
10053   [\\/]* | ?:[\\/]*)
10054   ac_cv_path_MAILER="$MAILER" # Let the user override the test with a path.
10055   ;;
10056   *)
10057   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10058 for as_dir in $PATH
10059 do
10060   IFS=$as_save_IFS
10061   test -z "$as_dir" && as_dir=.
10062   for ac_exec_ext in '' $ac_executable_extensions; do
10063   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10064     ac_cv_path_MAILER="$as_dir/$ac_word$ac_exec_ext"
10065     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10066     break 2
10067   fi
10068 done
10069 done
10070
10071   ;;
10072 esac
10073 fi
10074 MAILER=$ac_cv_path_MAILER
10075
10076 if test -n "$MAILER"; then
10077   echo "$as_me:$LINENO: result: $MAILER" >&5
10078 echo "${ECHO_T}$MAILER" >&6
10079 else
10080   echo "$as_me:$LINENO: result: no" >&5
10081 echo "${ECHO_T}no" >&6
10082 fi
10083
10084   test -n "$MAILER" && break
10085 done
10086
10087 if test -z "$MAILER"; then
10088     if $NO_SERVER_MODE; then
10089         MAILER="NONE"
10090         { echo "$as_me:$LINENO: WARNING: *** WARNING: Amanda cannot send mail reports without these programs." >&5
10091 echo "$as_me: WARNING: *** WARNING: Amanda cannot send mail reports without these programs." >&2;}
10092     else
10093         { { echo "$as_me:$LINENO: error: Set MAILER to some program that accepts -s subject user < message_file." >&5
10094 echo "$as_me: error: Set MAILER to some program that accepts -s subject user < message_file." >&2;}
10095    { (exit 1); exit 1; }; }
10096     fi
10097 fi
10098
10099 cat >>confdefs.h <<_ACEOF
10100 #define MAILER "$MAILER"
10101 _ACEOF
10102
10103
10104 for ac_prog in mt
10105 do
10106   # Extract the first word of "$ac_prog", so it can be a program name with args.
10107 set dummy $ac_prog; ac_word=$2
10108 echo "$as_me:$LINENO: checking for $ac_word" >&5
10109 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10110 if test "${ac_cv_path_MT+set}" = set; then
10111   echo $ECHO_N "(cached) $ECHO_C" >&6
10112 else
10113   case $MT in
10114   [\\/]* | ?:[\\/]*)
10115   ac_cv_path_MT="$MT" # Let the user override the test with a path.
10116   ;;
10117   *)
10118   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10119 for as_dir in $LOCSYSPATH
10120 do
10121   IFS=$as_save_IFS
10122   test -z "$as_dir" && as_dir=.
10123   for ac_exec_ext in '' $ac_executable_extensions; do
10124   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10125     ac_cv_path_MT="$as_dir/$ac_word$ac_exec_ext"
10126     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10127     break 2
10128   fi
10129 done
10130 done
10131
10132   ;;
10133 esac
10134 fi
10135 MT=$ac_cv_path_MT
10136
10137 if test -n "$MT"; then
10138   echo "$as_me:$LINENO: result: $MT" >&5
10139 echo "${ECHO_T}$MT" >&6
10140 else
10141   echo "$as_me:$LINENO: result: no" >&5
10142 echo "${ECHO_T}no" >&6
10143 fi
10144
10145   test -n "$MT" && break
10146 done
10147 test -n "$MT" || MT="mt"
10148
10149
10150 for ac_prog in chio
10151 do
10152   # Extract the first word of "$ac_prog", so it can be a program name with args.
10153 set dummy $ac_prog; ac_word=$2
10154 echo "$as_me:$LINENO: checking for $ac_word" >&5
10155 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10156 if test "${ac_cv_path_CHIO+set}" = set; then
10157   echo $ECHO_N "(cached) $ECHO_C" >&6
10158 else
10159   case $CHIO in
10160   [\\/]* | ?:[\\/]*)
10161   ac_cv_path_CHIO="$CHIO" # Let the user override the test with a path.
10162   ;;
10163   *)
10164   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10165 for as_dir in $LOCSYSPATH
10166 do
10167   IFS=$as_save_IFS
10168   test -z "$as_dir" && as_dir=.
10169   for ac_exec_ext in '' $ac_executable_extensions; do
10170   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10171     ac_cv_path_CHIO="$as_dir/$ac_word$ac_exec_ext"
10172     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10173     break 2
10174   fi
10175 done
10176 done
10177
10178   ;;
10179 esac
10180 fi
10181 CHIO=$ac_cv_path_CHIO
10182
10183 if test -n "$CHIO"; then
10184   echo "$as_me:$LINENO: result: $CHIO" >&5
10185 echo "${ECHO_T}$CHIO" >&6
10186 else
10187   echo "$as_me:$LINENO: result: no" >&5
10188 echo "${ECHO_T}no" >&6
10189 fi
10190
10191   test -n "$CHIO" && break
10192 done
10193 test -n "$CHIO" || CHIO="chio"
10194
10195
10196 for ac_prog in chs
10197 do
10198   # Extract the first word of "$ac_prog", so it can be a program name with args.
10199 set dummy $ac_prog; ac_word=$2
10200 echo "$as_me:$LINENO: checking for $ac_word" >&5
10201 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10202 if test "${ac_cv_path_CHS+set}" = set; then
10203   echo $ECHO_N "(cached) $ECHO_C" >&6
10204 else
10205   case $CHS in
10206   [\\/]* | ?:[\\/]*)
10207   ac_cv_path_CHS="$CHS" # Let the user override the test with a path.
10208   ;;
10209   *)
10210   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10211 for as_dir in $LOCSYSPATH
10212 do
10213   IFS=$as_save_IFS
10214   test -z "$as_dir" && as_dir=.
10215   for ac_exec_ext in '' $ac_executable_extensions; do
10216   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10217     ac_cv_path_CHS="$as_dir/$ac_word$ac_exec_ext"
10218     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10219     break 2
10220   fi
10221 done
10222 done
10223
10224   ;;
10225 esac
10226 fi
10227 CHS=$ac_cv_path_CHS
10228
10229 if test -n "$CHS"; then
10230   echo "$as_me:$LINENO: result: $CHS" >&5
10231 echo "${ECHO_T}$CHS" >&6
10232 else
10233   echo "$as_me:$LINENO: result: no" >&5
10234 echo "${ECHO_T}no" >&6
10235 fi
10236
10237   test -n "$CHS" && break
10238 done
10239 test -n "$CHS" || CHS="chs"
10240
10241
10242 for ac_prog in mtx
10243 do
10244   # Extract the first word of "$ac_prog", so it can be a program name with args.
10245 set dummy $ac_prog; ac_word=$2
10246 echo "$as_me:$LINENO: checking for $ac_word" >&5
10247 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10248 if test "${ac_cv_path_MTX+set}" = set; then
10249   echo $ECHO_N "(cached) $ECHO_C" >&6
10250 else
10251   case $MTX in
10252   [\\/]* | ?:[\\/]*)
10253   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
10254   ;;
10255   *)
10256   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10257 for as_dir in $LOCSYSPATH
10258 do
10259   IFS=$as_save_IFS
10260   test -z "$as_dir" && as_dir=.
10261   for ac_exec_ext in '' $ac_executable_extensions; do
10262   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10263     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
10264     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10265     break 2
10266   fi
10267 done
10268 done
10269
10270   ;;
10271 esac
10272 fi
10273 MTX=$ac_cv_path_MTX
10274
10275 if test -n "$MTX"; then
10276   echo "$as_me:$LINENO: result: $MTX" >&5
10277 echo "${ECHO_T}$MTX" >&6
10278 else
10279   echo "$as_me:$LINENO: result: no" >&5
10280 echo "${ECHO_T}no" >&6
10281 fi
10282
10283   test -n "$MTX" && break
10284 done
10285 test -n "$MTX" || MTX="mtx"
10286
10287
10288 for ac_prog in mcutil
10289 do
10290   # Extract the first word of "$ac_prog", so it can be a program name with args.
10291 set dummy $ac_prog; ac_word=$2
10292 echo "$as_me:$LINENO: checking for $ac_word" >&5
10293 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10294 if test "${ac_cv_path_MCUTIL+set}" = set; then
10295   echo $ECHO_N "(cached) $ECHO_C" >&6
10296 else
10297   case $MCUTIL in
10298   [\\/]* | ?:[\\/]*)
10299   ac_cv_path_MCUTIL="$MCUTIL" # Let the user override the test with a path.
10300   ;;
10301   *)
10302   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10303 for as_dir in $LOCSYSPATH
10304 do
10305   IFS=$as_save_IFS
10306   test -z "$as_dir" && as_dir=.
10307   for ac_exec_ext in '' $ac_executable_extensions; do
10308   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10309     ac_cv_path_MCUTIL="$as_dir/$ac_word$ac_exec_ext"
10310     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10311     break 2
10312   fi
10313 done
10314 done
10315
10316   ;;
10317 esac
10318 fi
10319 MCUTIL=$ac_cv_path_MCUTIL
10320
10321 if test -n "$MCUTIL"; then
10322   echo "$as_me:$LINENO: result: $MCUTIL" >&5
10323 echo "${ECHO_T}$MCUTIL" >&6
10324 else
10325   echo "$as_me:$LINENO: result: no" >&5
10326 echo "${ECHO_T}no" >&6
10327 fi
10328
10329   test -n "$MCUTIL" && break
10330 done
10331 test -n "$MCUTIL" || MCUTIL="mcutil"
10332
10333
10334 for ac_prog in lpr lp
10335 do
10336   # Extract the first word of "$ac_prog", so it can be a program name with args.
10337 set dummy $ac_prog; ac_word=$2
10338 echo "$as_me:$LINENO: checking for $ac_word" >&5
10339 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10340 if test "${ac_cv_path_PRINT+set}" = set; then
10341   echo $ECHO_N "(cached) $ECHO_C" >&6
10342 else
10343   case $PRINT in
10344   [\\/]* | ?:[\\/]*)
10345   ac_cv_path_PRINT="$PRINT" # Let the user override the test with a path.
10346   ;;
10347   *)
10348   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10349 for as_dir in $PATH
10350 do
10351   IFS=$as_save_IFS
10352   test -z "$as_dir" && as_dir=.
10353   for ac_exec_ext in '' $ac_executable_extensions; do
10354   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10355     ac_cv_path_PRINT="$as_dir/$ac_word$ac_exec_ext"
10356     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10357     break 2
10358   fi
10359 done
10360 done
10361
10362   ;;
10363 esac
10364 fi
10365 PRINT=$ac_cv_path_PRINT
10366
10367 if test -n "$PRINT"; then
10368   echo "$as_me:$LINENO: result: $PRINT" >&5
10369 echo "${ECHO_T}$PRINT" >&6
10370 else
10371   echo "$as_me:$LINENO: result: no" >&5
10372 echo "${ECHO_T}no" >&6
10373 fi
10374
10375   test -n "$PRINT" && break
10376 done
10377
10378 if test ! -z "$PRINT"; then
10379
10380 cat >>confdefs.h <<_ACEOF
10381 #define LPRCMD "$PRINT"
10382 _ACEOF
10383
10384     echo "$as_me:$LINENO: checking which flag to use to select a printer" >&5
10385 echo $ECHO_N "checking which flag to use to select a printer... $ECHO_C" >&6
10386 if test "${amanda_cv_printer_flag+set}" = set; then
10387   echo $ECHO_N "(cached) $ECHO_C" >&6
10388 else
10389
10390         amanda_cv_printer_flag=$PRINTER_FLAG
10391         case "$PRINT" in
10392         lpr|*/lpr) amanda_cv_printer_flag="-P";;
10393         lp|*/lp) amanda_cv_printer_flag="-d";;
10394         esac
10395
10396 fi
10397 echo "$as_me:$LINENO: result: $amanda_cv_printer_flag" >&5
10398 echo "${ECHO_T}$amanda_cv_printer_flag" >&6
10399     if test ! -z "$amanda_cv_printer_flag"; then
10400
10401 cat >>confdefs.h <<_ACEOF
10402 #define LPRFLAG "$amanda_cv_printer_flag"
10403 _ACEOF
10404
10405     else
10406         { echo "$as_me:$LINENO: WARNING: *** WARNING: amanda will always print to the default printer" >&5
10407 echo "$as_me: WARNING: *** WARNING: amanda will always print to the default printer" >&2;}
10408     fi
10409 fi
10410
10411 for ac_prog in pcat
10412 do
10413   # Extract the first word of "$ac_prog", so it can be a program name with args.
10414 set dummy $ac_prog; ac_word=$2
10415 echo "$as_me:$LINENO: checking for $ac_word" >&5
10416 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10417 if test "${ac_cv_path_PCAT+set}" = set; then
10418   echo $ECHO_N "(cached) $ECHO_C" >&6
10419 else
10420   case $PCAT in
10421   [\\/]* | ?:[\\/]*)
10422   ac_cv_path_PCAT="$PCAT" # Let the user override the test with a path.
10423   ;;
10424   *)
10425   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10426 for as_dir in $LOCSYSPATH
10427 do
10428   IFS=$as_save_IFS
10429   test -z "$as_dir" && as_dir=.
10430   for ac_exec_ext in '' $ac_executable_extensions; do
10431   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10432     ac_cv_path_PCAT="$as_dir/$ac_word$ac_exec_ext"
10433     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10434     break 2
10435   fi
10436 done
10437 done
10438
10439   ;;
10440 esac
10441 fi
10442 PCAT=$ac_cv_path_PCAT
10443
10444 if test -n "$PCAT"; then
10445   echo "$as_me:$LINENO: result: $PCAT" >&5
10446 echo "${ECHO_T}$PCAT" >&6
10447 else
10448   echo "$as_me:$LINENO: result: no" >&5
10449 echo "${ECHO_T}no" >&6
10450 fi
10451
10452   test -n "$PCAT" && break
10453 done
10454
10455 for ac_prog in perl5 perl
10456 do
10457   # Extract the first word of "$ac_prog", so it can be a program name with args.
10458 set dummy $ac_prog; ac_word=$2
10459 echo "$as_me:$LINENO: checking for $ac_word" >&5
10460 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10461 if test "${ac_cv_path_PERL+set}" = set; then
10462   echo $ECHO_N "(cached) $ECHO_C" >&6
10463 else
10464   case $PERL in
10465   [\\/]* | ?:[\\/]*)
10466   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
10467   ;;
10468   *)
10469   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10470 for as_dir in $LOCSYSPATH
10471 do
10472   IFS=$as_save_IFS
10473   test -z "$as_dir" && as_dir=.
10474   for ac_exec_ext in '' $ac_executable_extensions; do
10475   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10476     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
10477     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10478     break 2
10479   fi
10480 done
10481 done
10482
10483   ;;
10484 esac
10485 fi
10486 PERL=$ac_cv_path_PERL
10487
10488 if test -n "$PERL"; then
10489   echo "$as_me:$LINENO: result: $PERL" >&5
10490 echo "${ECHO_T}$PERL" >&6
10491 else
10492   echo "$as_me:$LINENO: result: no" >&5
10493 echo "${ECHO_T}no" >&6
10494 fi
10495
10496   test -n "$PERL" && break
10497 done
10498
10499
10500
10501 for ac_prog in $DUMP_PROGRAMS
10502 do
10503   # Extract the first word of "$ac_prog", so it can be a program name with args.
10504 set dummy $ac_prog; ac_word=$2
10505 echo "$as_me:$LINENO: checking for $ac_word" >&5
10506 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10507 if test "${ac_cv_path_DUMP+set}" = set; then
10508   echo $ECHO_N "(cached) $ECHO_C" >&6
10509 else
10510   case $DUMP in
10511   [\\/]* | ?:[\\/]*)
10512   ac_cv_path_DUMP="$DUMP" # Let the user override the test with a path.
10513   ;;
10514   *)
10515   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10516 for as_dir in $SYSLOCPATH
10517 do
10518   IFS=$as_save_IFS
10519   test -z "$as_dir" && as_dir=.
10520   for ac_exec_ext in '' $ac_executable_extensions; do
10521   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10522     ac_cv_path_DUMP="$as_dir/$ac_word$ac_exec_ext"
10523     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10524     break 2
10525   fi
10526 done
10527 done
10528
10529   ;;
10530 esac
10531 fi
10532 DUMP=$ac_cv_path_DUMP
10533
10534 if test -n "$DUMP"; then
10535   echo "$as_me:$LINENO: result: $DUMP" >&5
10536 echo "${ECHO_T}$DUMP" >&6
10537 else
10538   echo "$as_me:$LINENO: result: no" >&5
10539 echo "${ECHO_T}no" >&6
10540 fi
10541
10542   test -n "$DUMP" && break
10543 done
10544
10545 for ac_prog in ufsrestore restore
10546 do
10547   # Extract the first word of "$ac_prog", so it can be a program name with args.
10548 set dummy $ac_prog; ac_word=$2
10549 echo "$as_me:$LINENO: checking for $ac_word" >&5
10550 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10551 if test "${ac_cv_path_RESTORE+set}" = set; then
10552   echo $ECHO_N "(cached) $ECHO_C" >&6
10553 else
10554   case $RESTORE in
10555   [\\/]* | ?:[\\/]*)
10556   ac_cv_path_RESTORE="$RESTORE" # Let the user override the test with a path.
10557   ;;
10558   *)
10559   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10560 for as_dir in $SYSLOCPATH
10561 do
10562   IFS=$as_save_IFS
10563   test -z "$as_dir" && as_dir=.
10564   for ac_exec_ext in '' $ac_executable_extensions; do
10565   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10566     ac_cv_path_RESTORE="$as_dir/$ac_word$ac_exec_ext"
10567     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10568     break 2
10569   fi
10570 done
10571 done
10572
10573   ;;
10574 esac
10575 fi
10576 RESTORE=$ac_cv_path_RESTORE
10577
10578 if test -n "$RESTORE"; then
10579   echo "$as_me:$LINENO: result: $RESTORE" >&5
10580 echo "${ECHO_T}$RESTORE" >&6
10581 else
10582   echo "$as_me:$LINENO: result: no" >&5
10583 echo "${ECHO_T}no" >&6
10584 fi
10585
10586   test -n "$RESTORE" && break
10587 done
10588
10589 if test "$DUMP" -a "$RESTORE"; then
10590
10591 cat >>confdefs.h <<_ACEOF
10592 #define DUMP "$DUMP"
10593 _ACEOF
10594
10595
10596 cat >>confdefs.h <<_ACEOF
10597 #define RESTORE "$RESTORE"
10598 _ACEOF
10599
10600     if test -x $DUMP; then
10601         echo "$as_me:$LINENO: checking whether $DUMP supports -E or -S for estimates" >&5
10602 echo $ECHO_N "checking whether $DUMP supports -E or -S for estimates... $ECHO_C" >&6
10603 if test "${amanda_cv_dump_estimate+set}" = set; then
10604   echo $ECHO_N "(cached) $ECHO_C" >&6
10605 else
10606
10607                 case "$DUMP" in
10608                 *dump)
10609                     { ac_try='$DUMP 9Ef /dev/null /dev/null/invalid/fs 2>&1
10610                         | $GREP -v Dumping
10611                         | $GREP -v Date
10612                         | $GREP -v Label >conftest.d-E 2>&1'
10613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10614   (eval $ac_try) 2>&5
10615   ac_status=$?
10616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10617   (exit $ac_status); }; }
10618                     cat conftest.d-E >&5
10619                     { ac_try='$DUMP 9Sf /dev/null /dev/null/invalid/fs 2>&1
10620                         | $GREP -v Dumping
10621                         | $GREP -v Date
10622                         | $GREP -v Label >conftest.d-S 2>&1'
10623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10624   (eval $ac_try) 2>&5
10625   ac_status=$?
10626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10627   (exit $ac_status); }; }
10628                     cat conftest.d-S >&5
10629                     { ac_try='$DUMP 9f /dev/null /dev/null/invalid/fs 2>&1
10630                         | $GREP -v Dumping
10631                         | $GREP -v Date
10632                         | $GREP -v Label >conftest.d 2>&1'
10633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10634   (eval $ac_try) 2>&5
10635   ac_status=$?
10636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10637   (exit $ac_status); }; }
10638                     cat conftest.d >&5
10639                     if { ac_try='cmp conftest.d-E conftest.d 1>&2'
10640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10641   (eval $ac_try) 2>&5
10642   ac_status=$?
10643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10644   (exit $ac_status); }; }; then
10645                         amanda_cv_dump_estimate=E
10646                     elif { ac_try='cmp conftest.d-S conftest.d 1>&2'
10647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10648   (eval $ac_try) 2>&5
10649   ac_status=$?
10650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10651   (exit $ac_status); }; }; then
10652                         amanda_cv_dump_estimate=S
10653                     else
10654                         amanda_cv_dump_estimate=no
10655                     fi
10656                     rm -f conftest.d conftest.d-E conftest.d-S
10657                   ;;
10658                 *) amanda_cv_dump_estimate=no
10659                   ;;
10660                 esac
10661
10662 fi
10663 echo "$as_me:$LINENO: result: $amanda_cv_dump_estimate" >&5
10664 echo "${ECHO_T}$amanda_cv_dump_estimate" >&6
10665     else
10666         { echo "$as_me:$LINENO: WARNING: *** $DUMP is not executable, cannot run -E/-S test" >&5
10667 echo "$as_me: WARNING: *** $DUMP is not executable, cannot run -E/-S test" >&2;}
10668         amanda_cv_dump_estimate=no
10669     fi
10670     if test "x$amanda_cv_dump_estimate" != xno; then
10671
10672 cat >>confdefs.h <<_ACEOF
10673 #define HAVE_DUMP_ESTIMATE "$amanda_cv_dump_estimate"
10674 _ACEOF
10675
10676     fi
10677
10678
10679 # Check whether --with-dump-honor-nodump or --without-dump-honor-nodump was given.
10680 if test "${with_dump_honor_nodump+set}" = set; then
10681   withval="$with_dump_honor_nodump"
10682    if test -x $DUMP; then
10683         echo "$as_me:$LINENO: checking whether $DUMP supports -h (honor nodump flag)" >&5
10684 echo $ECHO_N "checking whether $DUMP supports -h (honor nodump flag)... $ECHO_C" >&6
10685 if test "${amanda_cv_honor_nodump+set}" = set; then
10686   echo $ECHO_N "(cached) $ECHO_C" >&6
10687 else
10688
10689             case "$DUMP" in
10690             *dump)
10691                 { ac_try='$DUMP 9hf 0 /dev/null /dev/null/invalid/fs 2>&1
10692                     | $GREP -v Dumping
10693                     | $GREP -v Date
10694                     | $GREP -v Label >conftest.d-h 2>&1'
10695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10696   (eval $ac_try) 2>&5
10697   ac_status=$?
10698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10699   (exit $ac_status); }; }
10700                 cat conftest.d-h >&5
10701                 { ac_try='$DUMP 9f /dev/null /dev/null/invalid/fs 2>&1
10702                     | $GREP -v Dumping
10703                     | $GREP -v Date
10704                     | $GREP -v Label >conftest.d 2>&1'
10705   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10706   (eval $ac_try) 2>&5
10707   ac_status=$?
10708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10709   (exit $ac_status); }; }
10710                 cat conftest.d >&5
10711                 if { ac_try='diff conftest.d-h conftest.d 1>&2'
10712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10713   (eval $ac_try) 2>&5
10714   ac_status=$?
10715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10716   (exit $ac_status); }; }; then
10717                     amanda_cv_honor_nodump=yes
10718                 else
10719                     amanda_cv_honor_nodump=no
10720                 fi
10721                 rm -f conftest.d conftest.d-h
10722               ;;
10723             *) amanda_cv_honor_nodump=no
10724               ;;
10725             esac
10726
10727 fi
10728 echo "$as_me:$LINENO: result: $amanda_cv_honor_nodump" >&5
10729 echo "${ECHO_T}$amanda_cv_honor_nodump" >&6
10730       else
10731         { echo "$as_me:$LINENO: WARNING: *** $DUMP is not executable, cannot run -h test" >&5
10732 echo "$as_me: WARNING: *** $DUMP is not executable, cannot run -h test" >&2;}
10733         amanda_cv_honor_nodump=no
10734       fi
10735       if test "x$amanda_cv_honor_nodump" = xyes; then
10736
10737 cat >>confdefs.h <<\_ACEOF
10738 #define HAVE_HONOR_NODUMP 1
10739 _ACEOF
10740
10741       fi
10742
10743 fi;
10744 fi
10745
10746 for ac_prog in xfsdump
10747 do
10748   # Extract the first word of "$ac_prog", so it can be a program name with args.
10749 set dummy $ac_prog; ac_word=$2
10750 echo "$as_me:$LINENO: checking for $ac_word" >&5
10751 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10752 if test "${ac_cv_path_XFSDUMP+set}" = set; then
10753   echo $ECHO_N "(cached) $ECHO_C" >&6
10754 else
10755   case $XFSDUMP in
10756   [\\/]* | ?:[\\/]*)
10757   ac_cv_path_XFSDUMP="$XFSDUMP" # Let the user override the test with a path.
10758   ;;
10759   *)
10760   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10761 for as_dir in $SYSLOCPATH
10762 do
10763   IFS=$as_save_IFS
10764   test -z "$as_dir" && as_dir=.
10765   for ac_exec_ext in '' $ac_executable_extensions; do
10766   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10767     ac_cv_path_XFSDUMP="$as_dir/$ac_word$ac_exec_ext"
10768     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10769     break 2
10770   fi
10771 done
10772 done
10773
10774   ;;
10775 esac
10776 fi
10777 XFSDUMP=$ac_cv_path_XFSDUMP
10778
10779 if test -n "$XFSDUMP"; then
10780   echo "$as_me:$LINENO: result: $XFSDUMP" >&5
10781 echo "${ECHO_T}$XFSDUMP" >&6
10782 else
10783   echo "$as_me:$LINENO: result: no" >&5
10784 echo "${ECHO_T}no" >&6
10785 fi
10786
10787   test -n "$XFSDUMP" && break
10788 done
10789
10790 for ac_prog in xfsrestore
10791 do
10792   # Extract the first word of "$ac_prog", so it can be a program name with args.
10793 set dummy $ac_prog; ac_word=$2
10794 echo "$as_me:$LINENO: checking for $ac_word" >&5
10795 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10796 if test "${ac_cv_path_XFSRESTORE+set}" = set; then
10797   echo $ECHO_N "(cached) $ECHO_C" >&6
10798 else
10799   case $XFSRESTORE in
10800   [\\/]* | ?:[\\/]*)
10801   ac_cv_path_XFSRESTORE="$XFSRESTORE" # Let the user override the test with a path.
10802   ;;
10803   *)
10804   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10805 for as_dir in $SYSLOCPATH
10806 do
10807   IFS=$as_save_IFS
10808   test -z "$as_dir" && as_dir=.
10809   for ac_exec_ext in '' $ac_executable_extensions; do
10810   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10811     ac_cv_path_XFSRESTORE="$as_dir/$ac_word$ac_exec_ext"
10812     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10813     break 2
10814   fi
10815 done
10816 done
10817
10818   ;;
10819 esac
10820 fi
10821 XFSRESTORE=$ac_cv_path_XFSRESTORE
10822
10823 if test -n "$XFSRESTORE"; then
10824   echo "$as_me:$LINENO: result: $XFSRESTORE" >&5
10825 echo "${ECHO_T}$XFSRESTORE" >&6
10826 else
10827   echo "$as_me:$LINENO: result: no" >&5
10828 echo "${ECHO_T}no" >&6
10829 fi
10830
10831   test -n "$XFSRESTORE" && break
10832 done
10833
10834 if test "$XFSDUMP" -a "$XFSRESTORE"; then
10835
10836 cat >>confdefs.h <<_ACEOF
10837 #define XFSDUMP "$XFSDUMP"
10838 _ACEOF
10839
10840
10841 cat >>confdefs.h <<_ACEOF
10842 #define XFSRESTORE "$XFSRESTORE"
10843 _ACEOF
10844
10845     { echo "$as_me:$LINENO: WARNING: *** xfsdump causes the setuid-root rundump program to be enabled" >&5
10846 echo "$as_me: WARNING: *** xfsdump causes the setuid-root rundump program to be enabled" >&2;}
10847     { echo "$as_me:$LINENO: WARNING: *** to disable it, just #undef XFSDUMP in config/config.h" >&5
10848 echo "$as_me: WARNING: *** to disable it, just #undef XFSDUMP in config/config.h" >&2;}
10849 fi
10850
10851 VXSYSLOCPATH="$SYSLOCPATH:/usr/lib/fs/vxfs"
10852 for ac_prog in vxdump
10853 do
10854   # Extract the first word of "$ac_prog", so it can be a program name with args.
10855 set dummy $ac_prog; ac_word=$2
10856 echo "$as_me:$LINENO: checking for $ac_word" >&5
10857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10858 if test "${ac_cv_path_VXDUMP+set}" = set; then
10859   echo $ECHO_N "(cached) $ECHO_C" >&6
10860 else
10861   case $VXDUMP in
10862   [\\/]* | ?:[\\/]*)
10863   ac_cv_path_VXDUMP="$VXDUMP" # Let the user override the test with a path.
10864   ;;
10865   *)
10866   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10867 for as_dir in $VXSYSLOCPATH
10868 do
10869   IFS=$as_save_IFS
10870   test -z "$as_dir" && as_dir=.
10871   for ac_exec_ext in '' $ac_executable_extensions; do
10872   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10873     ac_cv_path_VXDUMP="$as_dir/$ac_word$ac_exec_ext"
10874     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10875     break 2
10876   fi
10877 done
10878 done
10879
10880   ;;
10881 esac
10882 fi
10883 VXDUMP=$ac_cv_path_VXDUMP
10884
10885 if test -n "$VXDUMP"; then
10886   echo "$as_me:$LINENO: result: $VXDUMP" >&5
10887 echo "${ECHO_T}$VXDUMP" >&6
10888 else
10889   echo "$as_me:$LINENO: result: no" >&5
10890 echo "${ECHO_T}no" >&6
10891 fi
10892
10893   test -n "$VXDUMP" && break
10894 done
10895
10896 for ac_prog in vxrestore
10897 do
10898   # Extract the first word of "$ac_prog", so it can be a program name with args.
10899 set dummy $ac_prog; ac_word=$2
10900 echo "$as_me:$LINENO: checking for $ac_word" >&5
10901 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10902 if test "${ac_cv_path_VXRESTORE+set}" = set; then
10903   echo $ECHO_N "(cached) $ECHO_C" >&6
10904 else
10905   case $VXRESTORE in
10906   [\\/]* | ?:[\\/]*)
10907   ac_cv_path_VXRESTORE="$VXRESTORE" # Let the user override the test with a path.
10908   ;;
10909   *)
10910   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10911 for as_dir in $VXSYSLOCPATH
10912 do
10913   IFS=$as_save_IFS
10914   test -z "$as_dir" && as_dir=.
10915   for ac_exec_ext in '' $ac_executable_extensions; do
10916   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10917     ac_cv_path_VXRESTORE="$as_dir/$ac_word$ac_exec_ext"
10918     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10919     break 2
10920   fi
10921 done
10922 done
10923
10924   ;;
10925 esac
10926 fi
10927 VXRESTORE=$ac_cv_path_VXRESTORE
10928
10929 if test -n "$VXRESTORE"; then
10930   echo "$as_me:$LINENO: result: $VXRESTORE" >&5
10931 echo "${ECHO_T}$VXRESTORE" >&6
10932 else
10933   echo "$as_me:$LINENO: result: no" >&5
10934 echo "${ECHO_T}no" >&6
10935 fi
10936
10937   test -n "$VXRESTORE" && break
10938 done
10939
10940 if test "$VXDUMP" -a "$VXRESTORE"; then
10941
10942 cat >>confdefs.h <<_ACEOF
10943 #define VXDUMP "$VXDUMP"
10944 _ACEOF
10945
10946
10947 cat >>confdefs.h <<_ACEOF
10948 #define VXRESTORE "$VXRESTORE"
10949 _ACEOF
10950
10951 fi
10952
10953 for ac_prog in vdump
10954 do
10955   # Extract the first word of "$ac_prog", so it can be a program name with args.
10956 set dummy $ac_prog; ac_word=$2
10957 echo "$as_me:$LINENO: checking for $ac_word" >&5
10958 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10959 if test "${ac_cv_path_VDUMP+set}" = set; then
10960   echo $ECHO_N "(cached) $ECHO_C" >&6
10961 else
10962   case $VDUMP in
10963   [\\/]* | ?:[\\/]*)
10964   ac_cv_path_VDUMP="$VDUMP" # Let the user override the test with a path.
10965   ;;
10966   *)
10967   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10968 for as_dir in $SYSLOCPATH
10969 do
10970   IFS=$as_save_IFS
10971   test -z "$as_dir" && as_dir=.
10972   for ac_exec_ext in '' $ac_executable_extensions; do
10973   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10974     ac_cv_path_VDUMP="$as_dir/$ac_word$ac_exec_ext"
10975     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10976     break 2
10977   fi
10978 done
10979 done
10980
10981   ;;
10982 esac
10983 fi
10984 VDUMP=$ac_cv_path_VDUMP
10985
10986 if test -n "$VDUMP"; then
10987   echo "$as_me:$LINENO: result: $VDUMP" >&5
10988 echo "${ECHO_T}$VDUMP" >&6
10989 else
10990   echo "$as_me:$LINENO: result: no" >&5
10991 echo "${ECHO_T}no" >&6
10992 fi
10993
10994   test -n "$VDUMP" && break
10995 done
10996
10997 for ac_prog in vrestore
10998 do
10999   # Extract the first word of "$ac_prog", so it can be a program name with args.
11000 set dummy $ac_prog; ac_word=$2
11001 echo "$as_me:$LINENO: checking for $ac_word" >&5
11002 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11003 if test "${ac_cv_path_VRESTORE+set}" = set; then
11004   echo $ECHO_N "(cached) $ECHO_C" >&6
11005 else
11006   case $VRESTORE in
11007   [\\/]* | ?:[\\/]*)
11008   ac_cv_path_VRESTORE="$VRESTORE" # Let the user override the test with a path.
11009   ;;
11010   *)
11011   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11012 for as_dir in $SYSLOCPATH
11013 do
11014   IFS=$as_save_IFS
11015   test -z "$as_dir" && as_dir=.
11016   for ac_exec_ext in '' $ac_executable_extensions; do
11017   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11018     ac_cv_path_VRESTORE="$as_dir/$ac_word$ac_exec_ext"
11019     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11020     break 2
11021   fi
11022 done
11023 done
11024
11025   ;;
11026 esac
11027 fi
11028 VRESTORE=$ac_cv_path_VRESTORE
11029
11030 if test -n "$VRESTORE"; then
11031   echo "$as_me:$LINENO: result: $VRESTORE" >&5
11032 echo "${ECHO_T}$VRESTORE" >&6
11033 else
11034   echo "$as_me:$LINENO: result: no" >&5
11035 echo "${ECHO_T}no" >&6
11036 fi
11037
11038   test -n "$VRESTORE" && break
11039 done
11040
11041 if test "$VDUMP" -a "$VRESTORE"; then
11042
11043 cat >>confdefs.h <<_ACEOF
11044 #define VDUMP "$VDUMP"
11045 _ACEOF
11046
11047
11048 cat >>confdefs.h <<_ACEOF
11049 #define VRESTORE "$VRESTORE"
11050 _ACEOF
11051
11052 fi
11053
11054 if test "$PCAT"; then
11055     AMPLOT_CAT_PACK="if(o==\"z\")print \"$PCAT\"; else"
11056 else
11057     AMPLOT_CAT_PACK=
11058 fi
11059 if test "$COMPRESS"; then
11060     AMPLOT_COMPRESS=$COMPRESS
11061     AMPLOT_CAT_COMPRESS="if(o==\"Z\")print \"$COMPRESS -dc\"; else"
11062 else
11063     AMPLOT_CAT_COMPRESS=
11064 fi
11065 if test "$GZIP"; then
11066     AMPLOT_COMPRESS=$GZIP
11067     AMPLOT_CAT_GZIP="if(o==\"gz\")print \"$GZIP -dc\"; else"
11068 else
11069     AMPLOT_CAT_GZIP=
11070 fi
11071
11072
11073
11074
11075
11076 # Determine the printf format characters to use when printing
11077 # values of type long long. This will normally be "ll", but where
11078 # the compiler treats "long long" as a alias for "long" and printf
11079 # doesn't know about "long long" use "l".  Hopefully the sprintf
11080 # will produce a inconsistant result in the later case.  If the compiler
11081 # fails due to seeing "%lld" we fall back to "l".
11082 #
11083 # Win32 uses "%I64d", but that's defined elsewhere since we don't use
11084 # configure on Win32.
11085 #
11086 echo "$as_me:$LINENO: checking printf format modifier for 64-bit integers" >&5
11087 echo $ECHO_N "checking printf format modifier for 64-bit integers... $ECHO_C" >&6
11088 if test "$cross_compiling" = yes; then
11089   echo "$as_me:$LINENO: result: assuming target platform uses ll" >&5
11090 echo "${ECHO_T}assuming target platform uses ll" >&6
11091         LL_FMT="%lld"; LL_RFMT="lld"
11092 else
11093   cat >conftest.$ac_ext <<_ACEOF
11094 /* confdefs.h.  */
11095 _ACEOF
11096 cat confdefs.h >>conftest.$ac_ext
11097 cat >>conftest.$ac_ext <<_ACEOF
11098 /* end confdefs.h.  */
11099
11100 #include <stdio.h>
11101 main() {
11102         long long int j = 0;
11103         char buf[100];
11104         buf[0] = 0;
11105         sprintf(buf, "%lld", j);
11106         exit((sizeof(long long int) != sizeof(long int))? 0 :
11107              (strcmp(buf, "0") != 0));
11108 }
11109
11110 _ACEOF
11111 rm -f conftest$ac_exeext
11112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11113   (eval $ac_link) 2>&5
11114   ac_status=$?
11115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11116   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11118   (eval $ac_try) 2>&5
11119   ac_status=$?
11120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11121   (exit $ac_status); }; }; then
11122   echo "$as_me:$LINENO: result: ll" >&5
11123 echo "${ECHO_T}ll" >&6
11124         LL_FMT="%lld"; LL_RFMT="lld"
11125 else
11126   echo "$as_me: program exited with status $ac_status" >&5
11127 echo "$as_me: failed program was:" >&5
11128 sed 's/^/| /' conftest.$ac_ext >&5
11129
11130 ( exit $ac_status )
11131 echo "$as_me:$LINENO: result: l" >&5
11132 echo "${ECHO_T}l" >&6
11133         LL_FMT="%ld"; LL_RFMT="ld"
11134 fi
11135 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11136 fi
11137
11138 cat >>confdefs.h <<_ACEOF
11139 #define LL_FMT "$LL_FMT"
11140 _ACEOF
11141
11142
11143 cat >>confdefs.h <<_ACEOF
11144 #define LL_RFMT "$LL_RFMT"
11145 _ACEOF
11146
11147
11148
11149
11150 GZIP=
11151
11152 need_resetofs=yes
11153 echo "$as_me:$LINENO: checking for large file compilation CFLAGS" >&5
11154 echo $ECHO_N "checking for large file compilation CFLAGS... $ECHO_C" >&6
11155 if test "${amanda_cv_LFS_CFLAGS+set}" = set; then
11156   echo $ECHO_N "(cached) $ECHO_C" >&6
11157 else
11158
11159         amanda_cv_LFS_CFLAGS=
11160         if test "$GETCONF"; then
11161             if $GETCONF ${GETCONF_LFS}_CFLAGS >/dev/null 2>&1; then
11162                 amanda_cv_LFS_CFLAGS=`$GETCONF ${GETCONF_LFS}_CFLAGS 2>/dev/null`
11163                 need_resetofs=no
11164             fi
11165         fi
11166
11167
11168 fi
11169 echo "$as_me:$LINENO: result: $amanda_cv_LFS_CFLAGS" >&5
11170 echo "${ECHO_T}$amanda_cv_LFS_CFLAGS" >&6
11171 echo "$as_me:$LINENO: checking for large file compilation LDFLAGS" >&5
11172 echo $ECHO_N "checking for large file compilation LDFLAGS... $ECHO_C" >&6
11173 if test "${amanda_cv_LFS_LDFLAGS+set}" = set; then
11174   echo $ECHO_N "(cached) $ECHO_C" >&6
11175 else
11176
11177         amanda_cv_LFS_LDFLAGS=
11178         if test "$GETCONF"; then
11179             if $GETCONF ${GETCONF_LFS}_LDFLAGS >/dev/null 2>&1; then
11180                 amanda_cv_LFS_LDFLAGS=`$GETCONF ${GETCONF_LFS}_LDFLAGS 2>/dev/null`
11181                 need_resetofs=no
11182             fi
11183         fi
11184
11185
11186 fi
11187 echo "$as_me:$LINENO: result: $amanda_cv_LFS_LDFLAGS" >&5
11188 echo "${ECHO_T}$amanda_cv_LFS_LDFLAGS" >&6
11189 echo "$as_me:$LINENO: checking for large file compilation LIBS" >&5
11190 echo $ECHO_N "checking for large file compilation LIBS... $ECHO_C" >&6
11191 if test "${amanda_cv_LFS_LIBS+set}" = set; then
11192   echo $ECHO_N "(cached) $ECHO_C" >&6
11193 else
11194
11195         amanda_cv_LFS_LIBS=
11196         if test "$GETCONF"; then
11197             if $GETCONF ${GETCONF_LFS}_LIBS >/dev/null 2>&1; then
11198                 amanda_cv_LFS_LIBS=`$GETCONF ${GETCONF_LFS}_LIBS 2>/dev/null`
11199                 need_resetofs=no
11200             fi
11201         fi
11202
11203
11204 fi
11205 echo "$as_me:$LINENO: result: $amanda_cv_LFS_LIBS" >&5
11206 echo "${ECHO_T}$amanda_cv_LFS_LIBS" >&6
11207 if test "x$need_resetofs" = xyes; then
11208
11209 cat >>confdefs.h <<\_ACEOF
11210 #define NEED_RESETOFS 1
11211 _ACEOF
11212
11213 fi
11214
11215
11216 CFLAGS="$amanda_cv_LFS_CFLAGS $CFLAGS"
11217 CPPFLAGS="$amanda_cv_LFS_CPPFLAGS $CPPFLAGS"
11218 LDFLAGS="$amanda_cv_LFS_LDFLAGS $LDFLAGS"
11219 LIBS="$amanda_cv_LFS_LIBS $LIBS"
11220
11221 echo "$as_me:$LINENO: checking for int" >&5
11222 echo $ECHO_N "checking for int... $ECHO_C" >&6
11223 if test "${ac_cv_type_int+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 $ac_includes_default
11233 int
11234 main ()
11235 {
11236 if ((int *) 0)
11237   return 0;
11238 if (sizeof (int))
11239   return 0;
11240   ;
11241   return 0;
11242 }
11243 _ACEOF
11244 rm -f conftest.$ac_objext
11245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11246   (eval $ac_compile) 2>conftest.er1
11247   ac_status=$?
11248   grep -v '^ *+' conftest.er1 >conftest.err
11249   rm -f conftest.er1
11250   cat conftest.err >&5
11251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11252   (exit $ac_status); } &&
11253          { ac_try='test -z "$ac_c_werror_flag"
11254                          || test ! -s conftest.err'
11255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11256   (eval $ac_try) 2>&5
11257   ac_status=$?
11258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11259   (exit $ac_status); }; } &&
11260          { ac_try='test -s conftest.$ac_objext'
11261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11262   (eval $ac_try) 2>&5
11263   ac_status=$?
11264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11265   (exit $ac_status); }; }; then
11266   ac_cv_type_int=yes
11267 else
11268   echo "$as_me: failed program was:" >&5
11269 sed 's/^/| /' conftest.$ac_ext >&5
11270
11271 ac_cv_type_int=no
11272 fi
11273 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11274 fi
11275 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
11276 echo "${ECHO_T}$ac_cv_type_int" >&6
11277
11278 echo "$as_me:$LINENO: checking size of int" >&5
11279 echo $ECHO_N "checking size of int... $ECHO_C" >&6
11280 if test "${ac_cv_sizeof_int+set}" = set; then
11281   echo $ECHO_N "(cached) $ECHO_C" >&6
11282 else
11283   if test "$ac_cv_type_int" = yes; then
11284   # The cast to unsigned long works around a bug in the HP C Compiler
11285   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11286   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11287   # This bug is HP SR number 8606223364.
11288   if test "$cross_compiling" = yes; then
11289   # Depending upon the size, compute the lo and hi bounds.
11290 cat >conftest.$ac_ext <<_ACEOF
11291 /* confdefs.h.  */
11292 _ACEOF
11293 cat confdefs.h >>conftest.$ac_ext
11294 cat >>conftest.$ac_ext <<_ACEOF
11295 /* end confdefs.h.  */
11296 $ac_includes_default
11297 int
11298 main ()
11299 {
11300 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
11301 test_array [0] = 0
11302
11303   ;
11304   return 0;
11305 }
11306 _ACEOF
11307 rm -f conftest.$ac_objext
11308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11309   (eval $ac_compile) 2>conftest.er1
11310   ac_status=$?
11311   grep -v '^ *+' conftest.er1 >conftest.err
11312   rm -f conftest.er1
11313   cat conftest.err >&5
11314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11315   (exit $ac_status); } &&
11316          { ac_try='test -z "$ac_c_werror_flag"
11317                          || test ! -s conftest.err'
11318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11319   (eval $ac_try) 2>&5
11320   ac_status=$?
11321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11322   (exit $ac_status); }; } &&
11323          { ac_try='test -s conftest.$ac_objext'
11324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11325   (eval $ac_try) 2>&5
11326   ac_status=$?
11327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11328   (exit $ac_status); }; }; then
11329   ac_lo=0 ac_mid=0
11330   while :; do
11331     cat >conftest.$ac_ext <<_ACEOF
11332 /* confdefs.h.  */
11333 _ACEOF
11334 cat confdefs.h >>conftest.$ac_ext
11335 cat >>conftest.$ac_ext <<_ACEOF
11336 /* end confdefs.h.  */
11337 $ac_includes_default
11338 int
11339 main ()
11340 {
11341 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
11342 test_array [0] = 0
11343
11344   ;
11345   return 0;
11346 }
11347 _ACEOF
11348 rm -f conftest.$ac_objext
11349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11350   (eval $ac_compile) 2>conftest.er1
11351   ac_status=$?
11352   grep -v '^ *+' conftest.er1 >conftest.err
11353   rm -f conftest.er1
11354   cat conftest.err >&5
11355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11356   (exit $ac_status); } &&
11357          { ac_try='test -z "$ac_c_werror_flag"
11358                          || test ! -s conftest.err'
11359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11360   (eval $ac_try) 2>&5
11361   ac_status=$?
11362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11363   (exit $ac_status); }; } &&
11364          { ac_try='test -s conftest.$ac_objext'
11365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11366   (eval $ac_try) 2>&5
11367   ac_status=$?
11368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11369   (exit $ac_status); }; }; then
11370   ac_hi=$ac_mid; break
11371 else
11372   echo "$as_me: failed program was:" >&5
11373 sed 's/^/| /' conftest.$ac_ext >&5
11374
11375 ac_lo=`expr $ac_mid + 1`
11376                     if test $ac_lo -le $ac_mid; then
11377                       ac_lo= ac_hi=
11378                       break
11379                     fi
11380                     ac_mid=`expr 2 '*' $ac_mid + 1`
11381 fi
11382 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11383   done
11384 else
11385   echo "$as_me: failed program was:" >&5
11386 sed 's/^/| /' conftest.$ac_ext >&5
11387
11388 cat >conftest.$ac_ext <<_ACEOF
11389 /* confdefs.h.  */
11390 _ACEOF
11391 cat confdefs.h >>conftest.$ac_ext
11392 cat >>conftest.$ac_ext <<_ACEOF
11393 /* end confdefs.h.  */
11394 $ac_includes_default
11395 int
11396 main ()
11397 {
11398 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
11399 test_array [0] = 0
11400
11401   ;
11402   return 0;
11403 }
11404 _ACEOF
11405 rm -f conftest.$ac_objext
11406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11407   (eval $ac_compile) 2>conftest.er1
11408   ac_status=$?
11409   grep -v '^ *+' conftest.er1 >conftest.err
11410   rm -f conftest.er1
11411   cat conftest.err >&5
11412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11413   (exit $ac_status); } &&
11414          { ac_try='test -z "$ac_c_werror_flag"
11415                          || test ! -s conftest.err'
11416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11417   (eval $ac_try) 2>&5
11418   ac_status=$?
11419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11420   (exit $ac_status); }; } &&
11421          { ac_try='test -s conftest.$ac_objext'
11422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11423   (eval $ac_try) 2>&5
11424   ac_status=$?
11425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11426   (exit $ac_status); }; }; then
11427   ac_hi=-1 ac_mid=-1
11428   while :; do
11429     cat >conftest.$ac_ext <<_ACEOF
11430 /* confdefs.h.  */
11431 _ACEOF
11432 cat confdefs.h >>conftest.$ac_ext
11433 cat >>conftest.$ac_ext <<_ACEOF
11434 /* end confdefs.h.  */
11435 $ac_includes_default
11436 int
11437 main ()
11438 {
11439 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
11440 test_array [0] = 0
11441
11442   ;
11443   return 0;
11444 }
11445 _ACEOF
11446 rm -f conftest.$ac_objext
11447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11448   (eval $ac_compile) 2>conftest.er1
11449   ac_status=$?
11450   grep -v '^ *+' conftest.er1 >conftest.err
11451   rm -f conftest.er1
11452   cat conftest.err >&5
11453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11454   (exit $ac_status); } &&
11455          { ac_try='test -z "$ac_c_werror_flag"
11456                          || test ! -s conftest.err'
11457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11458   (eval $ac_try) 2>&5
11459   ac_status=$?
11460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11461   (exit $ac_status); }; } &&
11462          { ac_try='test -s conftest.$ac_objext'
11463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11464   (eval $ac_try) 2>&5
11465   ac_status=$?
11466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11467   (exit $ac_status); }; }; then
11468   ac_lo=$ac_mid; break
11469 else
11470   echo "$as_me: failed program was:" >&5
11471 sed 's/^/| /' conftest.$ac_ext >&5
11472
11473 ac_hi=`expr '(' $ac_mid ')' - 1`
11474                        if test $ac_mid -le $ac_hi; then
11475                          ac_lo= ac_hi=
11476                          break
11477                        fi
11478                        ac_mid=`expr 2 '*' $ac_mid`
11479 fi
11480 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11481   done
11482 else
11483   echo "$as_me: failed program was:" >&5
11484 sed 's/^/| /' conftest.$ac_ext >&5
11485
11486 ac_lo= ac_hi=
11487 fi
11488 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11489 fi
11490 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11491 # Binary search between lo and hi bounds.
11492 while test "x$ac_lo" != "x$ac_hi"; do
11493   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11494   cat >conftest.$ac_ext <<_ACEOF
11495 /* confdefs.h.  */
11496 _ACEOF
11497 cat confdefs.h >>conftest.$ac_ext
11498 cat >>conftest.$ac_ext <<_ACEOF
11499 /* end confdefs.h.  */
11500 $ac_includes_default
11501 int
11502 main ()
11503 {
11504 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
11505 test_array [0] = 0
11506
11507   ;
11508   return 0;
11509 }
11510 _ACEOF
11511 rm -f conftest.$ac_objext
11512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11513   (eval $ac_compile) 2>conftest.er1
11514   ac_status=$?
11515   grep -v '^ *+' conftest.er1 >conftest.err
11516   rm -f conftest.er1
11517   cat conftest.err >&5
11518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11519   (exit $ac_status); } &&
11520          { ac_try='test -z "$ac_c_werror_flag"
11521                          || test ! -s conftest.err'
11522   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11523   (eval $ac_try) 2>&5
11524   ac_status=$?
11525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11526   (exit $ac_status); }; } &&
11527          { ac_try='test -s conftest.$ac_objext'
11528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11529   (eval $ac_try) 2>&5
11530   ac_status=$?
11531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11532   (exit $ac_status); }; }; then
11533   ac_hi=$ac_mid
11534 else
11535   echo "$as_me: failed program was:" >&5
11536 sed 's/^/| /' conftest.$ac_ext >&5
11537
11538 ac_lo=`expr '(' $ac_mid ')' + 1`
11539 fi
11540 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11541 done
11542 case $ac_lo in
11543 ?*) ac_cv_sizeof_int=$ac_lo;;
11544 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
11545 See \`config.log' for more details." >&5
11546 echo "$as_me: error: cannot compute sizeof (int), 77
11547 See \`config.log' for more details." >&2;}
11548    { (exit 1); exit 1; }; } ;;
11549 esac
11550 else
11551   if test "$cross_compiling" = yes; then
11552   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11553 See \`config.log' for more details." >&5
11554 echo "$as_me: error: cannot run test program while cross compiling
11555 See \`config.log' for more details." >&2;}
11556    { (exit 1); exit 1; }; }
11557 else
11558   cat >conftest.$ac_ext <<_ACEOF
11559 /* confdefs.h.  */
11560 _ACEOF
11561 cat confdefs.h >>conftest.$ac_ext
11562 cat >>conftest.$ac_ext <<_ACEOF
11563 /* end confdefs.h.  */
11564 $ac_includes_default
11565 long longval () { return (long) (sizeof (int)); }
11566 unsigned long ulongval () { return (long) (sizeof (int)); }
11567 #include <stdio.h>
11568 #include <stdlib.h>
11569 int
11570 main ()
11571 {
11572
11573   FILE *f = fopen ("conftest.val", "w");
11574   if (! f)
11575     exit (1);
11576   if (((long) (sizeof (int))) < 0)
11577     {
11578       long i = longval ();
11579       if (i != ((long) (sizeof (int))))
11580         exit (1);
11581       fprintf (f, "%ld\n", i);
11582     }
11583   else
11584     {
11585       unsigned long i = ulongval ();
11586       if (i != ((long) (sizeof (int))))
11587         exit (1);
11588       fprintf (f, "%lu\n", i);
11589     }
11590   exit (ferror (f) || fclose (f) != 0);
11591
11592   ;
11593   return 0;
11594 }
11595 _ACEOF
11596 rm -f conftest$ac_exeext
11597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11598   (eval $ac_link) 2>&5
11599   ac_status=$?
11600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11601   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11603   (eval $ac_try) 2>&5
11604   ac_status=$?
11605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11606   (exit $ac_status); }; }; then
11607   ac_cv_sizeof_int=`cat conftest.val`
11608 else
11609   echo "$as_me: program exited with status $ac_status" >&5
11610 echo "$as_me: failed program was:" >&5
11611 sed 's/^/| /' conftest.$ac_ext >&5
11612
11613 ( exit $ac_status )
11614 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
11615 See \`config.log' for more details." >&5
11616 echo "$as_me: error: cannot compute sizeof (int), 77
11617 See \`config.log' for more details." >&2;}
11618    { (exit 1); exit 1; }; }
11619 fi
11620 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11621 fi
11622 fi
11623 rm -f conftest.val
11624 else
11625   ac_cv_sizeof_int=0
11626 fi
11627 fi
11628 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
11629 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
11630 cat >>confdefs.h <<_ACEOF
11631 #define SIZEOF_INT $ac_cv_sizeof_int
11632 _ACEOF
11633
11634
11635 echo "$as_me:$LINENO: checking for long" >&5
11636 echo $ECHO_N "checking for long... $ECHO_C" >&6
11637 if test "${ac_cv_type_long+set}" = set; then
11638   echo $ECHO_N "(cached) $ECHO_C" >&6
11639 else
11640   cat >conftest.$ac_ext <<_ACEOF
11641 /* confdefs.h.  */
11642 _ACEOF
11643 cat confdefs.h >>conftest.$ac_ext
11644 cat >>conftest.$ac_ext <<_ACEOF
11645 /* end confdefs.h.  */
11646 $ac_includes_default
11647 int
11648 main ()
11649 {
11650 if ((long *) 0)
11651   return 0;
11652 if (sizeof (long))
11653   return 0;
11654   ;
11655   return 0;
11656 }
11657 _ACEOF
11658 rm -f conftest.$ac_objext
11659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11660   (eval $ac_compile) 2>conftest.er1
11661   ac_status=$?
11662   grep -v '^ *+' conftest.er1 >conftest.err
11663   rm -f conftest.er1
11664   cat conftest.err >&5
11665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11666   (exit $ac_status); } &&
11667          { ac_try='test -z "$ac_c_werror_flag"
11668                          || test ! -s conftest.err'
11669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11670   (eval $ac_try) 2>&5
11671   ac_status=$?
11672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11673   (exit $ac_status); }; } &&
11674          { ac_try='test -s conftest.$ac_objext'
11675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11676   (eval $ac_try) 2>&5
11677   ac_status=$?
11678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11679   (exit $ac_status); }; }; then
11680   ac_cv_type_long=yes
11681 else
11682   echo "$as_me: failed program was:" >&5
11683 sed 's/^/| /' conftest.$ac_ext >&5
11684
11685 ac_cv_type_long=no
11686 fi
11687 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11688 fi
11689 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
11690 echo "${ECHO_T}$ac_cv_type_long" >&6
11691
11692 echo "$as_me:$LINENO: checking size of long" >&5
11693 echo $ECHO_N "checking size of long... $ECHO_C" >&6
11694 if test "${ac_cv_sizeof_long+set}" = set; then
11695   echo $ECHO_N "(cached) $ECHO_C" >&6
11696 else
11697   if test "$ac_cv_type_long" = yes; then
11698   # The cast to unsigned long works around a bug in the HP C Compiler
11699   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11700   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11701   # This bug is HP SR number 8606223364.
11702   if test "$cross_compiling" = yes; then
11703   # Depending upon the size, compute the lo and hi bounds.
11704 cat >conftest.$ac_ext <<_ACEOF
11705 /* confdefs.h.  */
11706 _ACEOF
11707 cat confdefs.h >>conftest.$ac_ext
11708 cat >>conftest.$ac_ext <<_ACEOF
11709 /* end confdefs.h.  */
11710 $ac_includes_default
11711 int
11712 main ()
11713 {
11714 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
11715 test_array [0] = 0
11716
11717   ;
11718   return 0;
11719 }
11720 _ACEOF
11721 rm -f conftest.$ac_objext
11722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11723   (eval $ac_compile) 2>conftest.er1
11724   ac_status=$?
11725   grep -v '^ *+' conftest.er1 >conftest.err
11726   rm -f conftest.er1
11727   cat conftest.err >&5
11728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11729   (exit $ac_status); } &&
11730          { ac_try='test -z "$ac_c_werror_flag"
11731                          || test ! -s conftest.err'
11732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11733   (eval $ac_try) 2>&5
11734   ac_status=$?
11735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11736   (exit $ac_status); }; } &&
11737          { ac_try='test -s conftest.$ac_objext'
11738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11739   (eval $ac_try) 2>&5
11740   ac_status=$?
11741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11742   (exit $ac_status); }; }; then
11743   ac_lo=0 ac_mid=0
11744   while :; do
11745     cat >conftest.$ac_ext <<_ACEOF
11746 /* confdefs.h.  */
11747 _ACEOF
11748 cat confdefs.h >>conftest.$ac_ext
11749 cat >>conftest.$ac_ext <<_ACEOF
11750 /* end confdefs.h.  */
11751 $ac_includes_default
11752 int
11753 main ()
11754 {
11755 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
11756 test_array [0] = 0
11757
11758   ;
11759   return 0;
11760 }
11761 _ACEOF
11762 rm -f conftest.$ac_objext
11763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11764   (eval $ac_compile) 2>conftest.er1
11765   ac_status=$?
11766   grep -v '^ *+' conftest.er1 >conftest.err
11767   rm -f conftest.er1
11768   cat conftest.err >&5
11769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11770   (exit $ac_status); } &&
11771          { ac_try='test -z "$ac_c_werror_flag"
11772                          || test ! -s conftest.err'
11773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11774   (eval $ac_try) 2>&5
11775   ac_status=$?
11776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11777   (exit $ac_status); }; } &&
11778          { ac_try='test -s conftest.$ac_objext'
11779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11780   (eval $ac_try) 2>&5
11781   ac_status=$?
11782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11783   (exit $ac_status); }; }; then
11784   ac_hi=$ac_mid; break
11785 else
11786   echo "$as_me: failed program was:" >&5
11787 sed 's/^/| /' conftest.$ac_ext >&5
11788
11789 ac_lo=`expr $ac_mid + 1`
11790                     if test $ac_lo -le $ac_mid; then
11791                       ac_lo= ac_hi=
11792                       break
11793                     fi
11794                     ac_mid=`expr 2 '*' $ac_mid + 1`
11795 fi
11796 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11797   done
11798 else
11799   echo "$as_me: failed program was:" >&5
11800 sed 's/^/| /' conftest.$ac_ext >&5
11801
11802 cat >conftest.$ac_ext <<_ACEOF
11803 /* confdefs.h.  */
11804 _ACEOF
11805 cat confdefs.h >>conftest.$ac_ext
11806 cat >>conftest.$ac_ext <<_ACEOF
11807 /* end confdefs.h.  */
11808 $ac_includes_default
11809 int
11810 main ()
11811 {
11812 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
11813 test_array [0] = 0
11814
11815   ;
11816   return 0;
11817 }
11818 _ACEOF
11819 rm -f conftest.$ac_objext
11820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11821   (eval $ac_compile) 2>conftest.er1
11822   ac_status=$?
11823   grep -v '^ *+' conftest.er1 >conftest.err
11824   rm -f conftest.er1
11825   cat conftest.err >&5
11826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11827   (exit $ac_status); } &&
11828          { ac_try='test -z "$ac_c_werror_flag"
11829                          || test ! -s conftest.err'
11830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11831   (eval $ac_try) 2>&5
11832   ac_status=$?
11833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11834   (exit $ac_status); }; } &&
11835          { ac_try='test -s conftest.$ac_objext'
11836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11837   (eval $ac_try) 2>&5
11838   ac_status=$?
11839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11840   (exit $ac_status); }; }; then
11841   ac_hi=-1 ac_mid=-1
11842   while :; do
11843     cat >conftest.$ac_ext <<_ACEOF
11844 /* confdefs.h.  */
11845 _ACEOF
11846 cat confdefs.h >>conftest.$ac_ext
11847 cat >>conftest.$ac_ext <<_ACEOF
11848 /* end confdefs.h.  */
11849 $ac_includes_default
11850 int
11851 main ()
11852 {
11853 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
11854 test_array [0] = 0
11855
11856   ;
11857   return 0;
11858 }
11859 _ACEOF
11860 rm -f conftest.$ac_objext
11861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11862   (eval $ac_compile) 2>conftest.er1
11863   ac_status=$?
11864   grep -v '^ *+' conftest.er1 >conftest.err
11865   rm -f conftest.er1
11866   cat conftest.err >&5
11867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11868   (exit $ac_status); } &&
11869          { ac_try='test -z "$ac_c_werror_flag"
11870                          || test ! -s conftest.err'
11871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11872   (eval $ac_try) 2>&5
11873   ac_status=$?
11874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11875   (exit $ac_status); }; } &&
11876          { ac_try='test -s conftest.$ac_objext'
11877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11878   (eval $ac_try) 2>&5
11879   ac_status=$?
11880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11881   (exit $ac_status); }; }; then
11882   ac_lo=$ac_mid; break
11883 else
11884   echo "$as_me: failed program was:" >&5
11885 sed 's/^/| /' conftest.$ac_ext >&5
11886
11887 ac_hi=`expr '(' $ac_mid ')' - 1`
11888                        if test $ac_mid -le $ac_hi; then
11889                          ac_lo= ac_hi=
11890                          break
11891                        fi
11892                        ac_mid=`expr 2 '*' $ac_mid`
11893 fi
11894 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11895   done
11896 else
11897   echo "$as_me: failed program was:" >&5
11898 sed 's/^/| /' conftest.$ac_ext >&5
11899
11900 ac_lo= ac_hi=
11901 fi
11902 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11903 fi
11904 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11905 # Binary search between lo and hi bounds.
11906 while test "x$ac_lo" != "x$ac_hi"; do
11907   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11908   cat >conftest.$ac_ext <<_ACEOF
11909 /* confdefs.h.  */
11910 _ACEOF
11911 cat confdefs.h >>conftest.$ac_ext
11912 cat >>conftest.$ac_ext <<_ACEOF
11913 /* end confdefs.h.  */
11914 $ac_includes_default
11915 int
11916 main ()
11917 {
11918 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
11919 test_array [0] = 0
11920
11921   ;
11922   return 0;
11923 }
11924 _ACEOF
11925 rm -f conftest.$ac_objext
11926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11927   (eval $ac_compile) 2>conftest.er1
11928   ac_status=$?
11929   grep -v '^ *+' conftest.er1 >conftest.err
11930   rm -f conftest.er1
11931   cat conftest.err >&5
11932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11933   (exit $ac_status); } &&
11934          { ac_try='test -z "$ac_c_werror_flag"
11935                          || test ! -s conftest.err'
11936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11937   (eval $ac_try) 2>&5
11938   ac_status=$?
11939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11940   (exit $ac_status); }; } &&
11941          { ac_try='test -s conftest.$ac_objext'
11942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11943   (eval $ac_try) 2>&5
11944   ac_status=$?
11945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11946   (exit $ac_status); }; }; then
11947   ac_hi=$ac_mid
11948 else
11949   echo "$as_me: failed program was:" >&5
11950 sed 's/^/| /' conftest.$ac_ext >&5
11951
11952 ac_lo=`expr '(' $ac_mid ')' + 1`
11953 fi
11954 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11955 done
11956 case $ac_lo in
11957 ?*) ac_cv_sizeof_long=$ac_lo;;
11958 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
11959 See \`config.log' for more details." >&5
11960 echo "$as_me: error: cannot compute sizeof (long), 77
11961 See \`config.log' for more details." >&2;}
11962    { (exit 1); exit 1; }; } ;;
11963 esac
11964 else
11965   if test "$cross_compiling" = yes; then
11966   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11967 See \`config.log' for more details." >&5
11968 echo "$as_me: error: cannot run test program while cross compiling
11969 See \`config.log' for more details." >&2;}
11970    { (exit 1); exit 1; }; }
11971 else
11972   cat >conftest.$ac_ext <<_ACEOF
11973 /* confdefs.h.  */
11974 _ACEOF
11975 cat confdefs.h >>conftest.$ac_ext
11976 cat >>conftest.$ac_ext <<_ACEOF
11977 /* end confdefs.h.  */
11978 $ac_includes_default
11979 long longval () { return (long) (sizeof (long)); }
11980 unsigned long ulongval () { return (long) (sizeof (long)); }
11981 #include <stdio.h>
11982 #include <stdlib.h>
11983 int
11984 main ()
11985 {
11986
11987   FILE *f = fopen ("conftest.val", "w");
11988   if (! f)
11989     exit (1);
11990   if (((long) (sizeof (long))) < 0)
11991     {
11992       long i = longval ();
11993       if (i != ((long) (sizeof (long))))
11994         exit (1);
11995       fprintf (f, "%ld\n", i);
11996     }
11997   else
11998     {
11999       unsigned long i = ulongval ();
12000       if (i != ((long) (sizeof (long))))
12001         exit (1);
12002       fprintf (f, "%lu\n", i);
12003     }
12004   exit (ferror (f) || fclose (f) != 0);
12005
12006   ;
12007   return 0;
12008 }
12009 _ACEOF
12010 rm -f conftest$ac_exeext
12011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12012   (eval $ac_link) 2>&5
12013   ac_status=$?
12014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12015   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12017   (eval $ac_try) 2>&5
12018   ac_status=$?
12019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12020   (exit $ac_status); }; }; then
12021   ac_cv_sizeof_long=`cat conftest.val`
12022 else
12023   echo "$as_me: program exited with status $ac_status" >&5
12024 echo "$as_me: failed program was:" >&5
12025 sed 's/^/| /' conftest.$ac_ext >&5
12026
12027 ( exit $ac_status )
12028 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
12029 See \`config.log' for more details." >&5
12030 echo "$as_me: error: cannot compute sizeof (long), 77
12031 See \`config.log' for more details." >&2;}
12032    { (exit 1); exit 1; }; }
12033 fi
12034 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12035 fi
12036 fi
12037 rm -f conftest.val
12038 else
12039   ac_cv_sizeof_long=0
12040 fi
12041 fi
12042 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
12043 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
12044 cat >>confdefs.h <<_ACEOF
12045 #define SIZEOF_LONG $ac_cv_sizeof_long
12046 _ACEOF
12047
12048
12049 echo "$as_me:$LINENO: checking for long long" >&5
12050 echo $ECHO_N "checking for long long... $ECHO_C" >&6
12051 if test "${ac_cv_type_long_long+set}" = set; then
12052   echo $ECHO_N "(cached) $ECHO_C" >&6
12053 else
12054   cat >conftest.$ac_ext <<_ACEOF
12055 /* confdefs.h.  */
12056 _ACEOF
12057 cat confdefs.h >>conftest.$ac_ext
12058 cat >>conftest.$ac_ext <<_ACEOF
12059 /* end confdefs.h.  */
12060 $ac_includes_default
12061 int
12062 main ()
12063 {
12064 if ((long long *) 0)
12065   return 0;
12066 if (sizeof (long long))
12067   return 0;
12068   ;
12069   return 0;
12070 }
12071 _ACEOF
12072 rm -f conftest.$ac_objext
12073 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12074   (eval $ac_compile) 2>conftest.er1
12075   ac_status=$?
12076   grep -v '^ *+' conftest.er1 >conftest.err
12077   rm -f conftest.er1
12078   cat conftest.err >&5
12079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12080   (exit $ac_status); } &&
12081          { ac_try='test -z "$ac_c_werror_flag"
12082                          || test ! -s conftest.err'
12083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12084   (eval $ac_try) 2>&5
12085   ac_status=$?
12086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12087   (exit $ac_status); }; } &&
12088          { ac_try='test -s conftest.$ac_objext'
12089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12090   (eval $ac_try) 2>&5
12091   ac_status=$?
12092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12093   (exit $ac_status); }; }; then
12094   ac_cv_type_long_long=yes
12095 else
12096   echo "$as_me: failed program was:" >&5
12097 sed 's/^/| /' conftest.$ac_ext >&5
12098
12099 ac_cv_type_long_long=no
12100 fi
12101 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12102 fi
12103 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
12104 echo "${ECHO_T}$ac_cv_type_long_long" >&6
12105
12106 echo "$as_me:$LINENO: checking size of long long" >&5
12107 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
12108 if test "${ac_cv_sizeof_long_long+set}" = set; then
12109   echo $ECHO_N "(cached) $ECHO_C" >&6
12110 else
12111   if test "$ac_cv_type_long_long" = yes; then
12112   # The cast to unsigned long works around a bug in the HP C Compiler
12113   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12114   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12115   # This bug is HP SR number 8606223364.
12116   if test "$cross_compiling" = yes; then
12117   # Depending upon the size, compute the lo and hi bounds.
12118 cat >conftest.$ac_ext <<_ACEOF
12119 /* confdefs.h.  */
12120 _ACEOF
12121 cat confdefs.h >>conftest.$ac_ext
12122 cat >>conftest.$ac_ext <<_ACEOF
12123 /* end confdefs.h.  */
12124 $ac_includes_default
12125 int
12126 main ()
12127 {
12128 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
12129 test_array [0] = 0
12130
12131   ;
12132   return 0;
12133 }
12134 _ACEOF
12135 rm -f conftest.$ac_objext
12136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12137   (eval $ac_compile) 2>conftest.er1
12138   ac_status=$?
12139   grep -v '^ *+' conftest.er1 >conftest.err
12140   rm -f conftest.er1
12141   cat conftest.err >&5
12142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12143   (exit $ac_status); } &&
12144          { ac_try='test -z "$ac_c_werror_flag"
12145                          || test ! -s conftest.err'
12146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12147   (eval $ac_try) 2>&5
12148   ac_status=$?
12149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12150   (exit $ac_status); }; } &&
12151          { ac_try='test -s conftest.$ac_objext'
12152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12153   (eval $ac_try) 2>&5
12154   ac_status=$?
12155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12156   (exit $ac_status); }; }; then
12157   ac_lo=0 ac_mid=0
12158   while :; do
12159     cat >conftest.$ac_ext <<_ACEOF
12160 /* confdefs.h.  */
12161 _ACEOF
12162 cat confdefs.h >>conftest.$ac_ext
12163 cat >>conftest.$ac_ext <<_ACEOF
12164 /* end confdefs.h.  */
12165 $ac_includes_default
12166 int
12167 main ()
12168 {
12169 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
12170 test_array [0] = 0
12171
12172   ;
12173   return 0;
12174 }
12175 _ACEOF
12176 rm -f conftest.$ac_objext
12177 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12178   (eval $ac_compile) 2>conftest.er1
12179   ac_status=$?
12180   grep -v '^ *+' conftest.er1 >conftest.err
12181   rm -f conftest.er1
12182   cat conftest.err >&5
12183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12184   (exit $ac_status); } &&
12185          { ac_try='test -z "$ac_c_werror_flag"
12186                          || test ! -s conftest.err'
12187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12188   (eval $ac_try) 2>&5
12189   ac_status=$?
12190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12191   (exit $ac_status); }; } &&
12192          { ac_try='test -s conftest.$ac_objext'
12193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12194   (eval $ac_try) 2>&5
12195   ac_status=$?
12196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12197   (exit $ac_status); }; }; then
12198   ac_hi=$ac_mid; break
12199 else
12200   echo "$as_me: failed program was:" >&5
12201 sed 's/^/| /' conftest.$ac_ext >&5
12202
12203 ac_lo=`expr $ac_mid + 1`
12204                     if test $ac_lo -le $ac_mid; then
12205                       ac_lo= ac_hi=
12206                       break
12207                     fi
12208                     ac_mid=`expr 2 '*' $ac_mid + 1`
12209 fi
12210 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12211   done
12212 else
12213   echo "$as_me: failed program was:" >&5
12214 sed 's/^/| /' conftest.$ac_ext >&5
12215
12216 cat >conftest.$ac_ext <<_ACEOF
12217 /* confdefs.h.  */
12218 _ACEOF
12219 cat confdefs.h >>conftest.$ac_ext
12220 cat >>conftest.$ac_ext <<_ACEOF
12221 /* end confdefs.h.  */
12222 $ac_includes_default
12223 int
12224 main ()
12225 {
12226 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
12227 test_array [0] = 0
12228
12229   ;
12230   return 0;
12231 }
12232 _ACEOF
12233 rm -f conftest.$ac_objext
12234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12235   (eval $ac_compile) 2>conftest.er1
12236   ac_status=$?
12237   grep -v '^ *+' conftest.er1 >conftest.err
12238   rm -f conftest.er1
12239   cat conftest.err >&5
12240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12241   (exit $ac_status); } &&
12242          { ac_try='test -z "$ac_c_werror_flag"
12243                          || test ! -s conftest.err'
12244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12245   (eval $ac_try) 2>&5
12246   ac_status=$?
12247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12248   (exit $ac_status); }; } &&
12249          { ac_try='test -s conftest.$ac_objext'
12250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12251   (eval $ac_try) 2>&5
12252   ac_status=$?
12253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12254   (exit $ac_status); }; }; then
12255   ac_hi=-1 ac_mid=-1
12256   while :; do
12257     cat >conftest.$ac_ext <<_ACEOF
12258 /* confdefs.h.  */
12259 _ACEOF
12260 cat confdefs.h >>conftest.$ac_ext
12261 cat >>conftest.$ac_ext <<_ACEOF
12262 /* end confdefs.h.  */
12263 $ac_includes_default
12264 int
12265 main ()
12266 {
12267 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
12268 test_array [0] = 0
12269
12270   ;
12271   return 0;
12272 }
12273 _ACEOF
12274 rm -f conftest.$ac_objext
12275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12276   (eval $ac_compile) 2>conftest.er1
12277   ac_status=$?
12278   grep -v '^ *+' conftest.er1 >conftest.err
12279   rm -f conftest.er1
12280   cat conftest.err >&5
12281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12282   (exit $ac_status); } &&
12283          { ac_try='test -z "$ac_c_werror_flag"
12284                          || test ! -s conftest.err'
12285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12286   (eval $ac_try) 2>&5
12287   ac_status=$?
12288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12289   (exit $ac_status); }; } &&
12290          { ac_try='test -s conftest.$ac_objext'
12291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12292   (eval $ac_try) 2>&5
12293   ac_status=$?
12294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12295   (exit $ac_status); }; }; then
12296   ac_lo=$ac_mid; break
12297 else
12298   echo "$as_me: failed program was:" >&5
12299 sed 's/^/| /' conftest.$ac_ext >&5
12300
12301 ac_hi=`expr '(' $ac_mid ')' - 1`
12302                        if test $ac_mid -le $ac_hi; then
12303                          ac_lo= ac_hi=
12304                          break
12305                        fi
12306                        ac_mid=`expr 2 '*' $ac_mid`
12307 fi
12308 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12309   done
12310 else
12311   echo "$as_me: failed program was:" >&5
12312 sed 's/^/| /' conftest.$ac_ext >&5
12313
12314 ac_lo= ac_hi=
12315 fi
12316 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12317 fi
12318 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12319 # Binary search between lo and hi bounds.
12320 while test "x$ac_lo" != "x$ac_hi"; do
12321   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12322   cat >conftest.$ac_ext <<_ACEOF
12323 /* confdefs.h.  */
12324 _ACEOF
12325 cat confdefs.h >>conftest.$ac_ext
12326 cat >>conftest.$ac_ext <<_ACEOF
12327 /* end confdefs.h.  */
12328 $ac_includes_default
12329 int
12330 main ()
12331 {
12332 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
12333 test_array [0] = 0
12334
12335   ;
12336   return 0;
12337 }
12338 _ACEOF
12339 rm -f conftest.$ac_objext
12340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12341   (eval $ac_compile) 2>conftest.er1
12342   ac_status=$?
12343   grep -v '^ *+' conftest.er1 >conftest.err
12344   rm -f conftest.er1
12345   cat conftest.err >&5
12346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12347   (exit $ac_status); } &&
12348          { ac_try='test -z "$ac_c_werror_flag"
12349                          || test ! -s conftest.err'
12350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12351   (eval $ac_try) 2>&5
12352   ac_status=$?
12353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12354   (exit $ac_status); }; } &&
12355          { ac_try='test -s conftest.$ac_objext'
12356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12357   (eval $ac_try) 2>&5
12358   ac_status=$?
12359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12360   (exit $ac_status); }; }; then
12361   ac_hi=$ac_mid
12362 else
12363   echo "$as_me: failed program was:" >&5
12364 sed 's/^/| /' conftest.$ac_ext >&5
12365
12366 ac_lo=`expr '(' $ac_mid ')' + 1`
12367 fi
12368 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12369 done
12370 case $ac_lo in
12371 ?*) ac_cv_sizeof_long_long=$ac_lo;;
12372 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
12373 See \`config.log' for more details." >&5
12374 echo "$as_me: error: cannot compute sizeof (long long), 77
12375 See \`config.log' for more details." >&2;}
12376    { (exit 1); exit 1; }; } ;;
12377 esac
12378 else
12379   if test "$cross_compiling" = yes; then
12380   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12381 See \`config.log' for more details." >&5
12382 echo "$as_me: error: cannot run test program while cross compiling
12383 See \`config.log' for more details." >&2;}
12384    { (exit 1); exit 1; }; }
12385 else
12386   cat >conftest.$ac_ext <<_ACEOF
12387 /* confdefs.h.  */
12388 _ACEOF
12389 cat confdefs.h >>conftest.$ac_ext
12390 cat >>conftest.$ac_ext <<_ACEOF
12391 /* end confdefs.h.  */
12392 $ac_includes_default
12393 long longval () { return (long) (sizeof (long long)); }
12394 unsigned long ulongval () { return (long) (sizeof (long long)); }
12395 #include <stdio.h>
12396 #include <stdlib.h>
12397 int
12398 main ()
12399 {
12400
12401   FILE *f = fopen ("conftest.val", "w");
12402   if (! f)
12403     exit (1);
12404   if (((long) (sizeof (long long))) < 0)
12405     {
12406       long i = longval ();
12407       if (i != ((long) (sizeof (long long))))
12408         exit (1);
12409       fprintf (f, "%ld\n", i);
12410     }
12411   else
12412     {
12413       unsigned long i = ulongval ();
12414       if (i != ((long) (sizeof (long long))))
12415         exit (1);
12416       fprintf (f, "%lu\n", i);
12417     }
12418   exit (ferror (f) || fclose (f) != 0);
12419
12420   ;
12421   return 0;
12422 }
12423 _ACEOF
12424 rm -f conftest$ac_exeext
12425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12426   (eval $ac_link) 2>&5
12427   ac_status=$?
12428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12429   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12431   (eval $ac_try) 2>&5
12432   ac_status=$?
12433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12434   (exit $ac_status); }; }; then
12435   ac_cv_sizeof_long_long=`cat conftest.val`
12436 else
12437   echo "$as_me: program exited with status $ac_status" >&5
12438 echo "$as_me: failed program was:" >&5
12439 sed 's/^/| /' conftest.$ac_ext >&5
12440
12441 ( exit $ac_status )
12442 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
12443 See \`config.log' for more details." >&5
12444 echo "$as_me: error: cannot compute sizeof (long long), 77
12445 See \`config.log' for more details." >&2;}
12446    { (exit 1); exit 1; }; }
12447 fi
12448 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12449 fi
12450 fi
12451 rm -f conftest.val
12452 else
12453   ac_cv_sizeof_long_long=0
12454 fi
12455 fi
12456 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
12457 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
12458 cat >>confdefs.h <<_ACEOF
12459 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12460 _ACEOF
12461
12462
12463 echo "$as_me:$LINENO: checking for intmax_t" >&5
12464 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
12465 if test "${ac_cv_type_intmax_t+set}" = set; then
12466   echo $ECHO_N "(cached) $ECHO_C" >&6
12467 else
12468   cat >conftest.$ac_ext <<_ACEOF
12469 /* confdefs.h.  */
12470 _ACEOF
12471 cat confdefs.h >>conftest.$ac_ext
12472 cat >>conftest.$ac_ext <<_ACEOF
12473 /* end confdefs.h.  */
12474 $ac_includes_default
12475 int
12476 main ()
12477 {
12478 if ((intmax_t *) 0)
12479   return 0;
12480 if (sizeof (intmax_t))
12481   return 0;
12482   ;
12483   return 0;
12484 }
12485 _ACEOF
12486 rm -f conftest.$ac_objext
12487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12488   (eval $ac_compile) 2>conftest.er1
12489   ac_status=$?
12490   grep -v '^ *+' conftest.er1 >conftest.err
12491   rm -f conftest.er1
12492   cat conftest.err >&5
12493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12494   (exit $ac_status); } &&
12495          { ac_try='test -z "$ac_c_werror_flag"
12496                          || test ! -s conftest.err'
12497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12498   (eval $ac_try) 2>&5
12499   ac_status=$?
12500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12501   (exit $ac_status); }; } &&
12502          { ac_try='test -s conftest.$ac_objext'
12503   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12504   (eval $ac_try) 2>&5
12505   ac_status=$?
12506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12507   (exit $ac_status); }; }; then
12508   ac_cv_type_intmax_t=yes
12509 else
12510   echo "$as_me: failed program was:" >&5
12511 sed 's/^/| /' conftest.$ac_ext >&5
12512
12513 ac_cv_type_intmax_t=no
12514 fi
12515 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12516 fi
12517 echo "$as_me:$LINENO: result: $ac_cv_type_intmax_t" >&5
12518 echo "${ECHO_T}$ac_cv_type_intmax_t" >&6
12519
12520 echo "$as_me:$LINENO: checking size of intmax_t" >&5
12521 echo $ECHO_N "checking size of intmax_t... $ECHO_C" >&6
12522 if test "${ac_cv_sizeof_intmax_t+set}" = set; then
12523   echo $ECHO_N "(cached) $ECHO_C" >&6
12524 else
12525   if test "$ac_cv_type_intmax_t" = yes; then
12526   # The cast to unsigned long works around a bug in the HP C Compiler
12527   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12528   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12529   # This bug is HP SR number 8606223364.
12530   if test "$cross_compiling" = yes; then
12531   # Depending upon the size, compute the lo and hi bounds.
12532 cat >conftest.$ac_ext <<_ACEOF
12533 /* confdefs.h.  */
12534 _ACEOF
12535 cat confdefs.h >>conftest.$ac_ext
12536 cat >>conftest.$ac_ext <<_ACEOF
12537 /* end confdefs.h.  */
12538 $ac_includes_default
12539 int
12540 main ()
12541 {
12542 static int test_array [1 - 2 * !(((long) (sizeof (intmax_t))) >= 0)];
12543 test_array [0] = 0
12544
12545   ;
12546   return 0;
12547 }
12548 _ACEOF
12549 rm -f conftest.$ac_objext
12550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12551   (eval $ac_compile) 2>conftest.er1
12552   ac_status=$?
12553   grep -v '^ *+' conftest.er1 >conftest.err
12554   rm -f conftest.er1
12555   cat conftest.err >&5
12556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12557   (exit $ac_status); } &&
12558          { ac_try='test -z "$ac_c_werror_flag"
12559                          || test ! -s conftest.err'
12560   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12561   (eval $ac_try) 2>&5
12562   ac_status=$?
12563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12564   (exit $ac_status); }; } &&
12565          { ac_try='test -s conftest.$ac_objext'
12566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12567   (eval $ac_try) 2>&5
12568   ac_status=$?
12569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12570   (exit $ac_status); }; }; then
12571   ac_lo=0 ac_mid=0
12572   while :; do
12573     cat >conftest.$ac_ext <<_ACEOF
12574 /* confdefs.h.  */
12575 _ACEOF
12576 cat confdefs.h >>conftest.$ac_ext
12577 cat >>conftest.$ac_ext <<_ACEOF
12578 /* end confdefs.h.  */
12579 $ac_includes_default
12580 int
12581 main ()
12582 {
12583 static int test_array [1 - 2 * !(((long) (sizeof (intmax_t))) <= $ac_mid)];
12584 test_array [0] = 0
12585
12586   ;
12587   return 0;
12588 }
12589 _ACEOF
12590 rm -f conftest.$ac_objext
12591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12592   (eval $ac_compile) 2>conftest.er1
12593   ac_status=$?
12594   grep -v '^ *+' conftest.er1 >conftest.err
12595   rm -f conftest.er1
12596   cat conftest.err >&5
12597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12598   (exit $ac_status); } &&
12599          { ac_try='test -z "$ac_c_werror_flag"
12600                          || test ! -s conftest.err'
12601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12602   (eval $ac_try) 2>&5
12603   ac_status=$?
12604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12605   (exit $ac_status); }; } &&
12606          { ac_try='test -s conftest.$ac_objext'
12607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12608   (eval $ac_try) 2>&5
12609   ac_status=$?
12610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12611   (exit $ac_status); }; }; then
12612   ac_hi=$ac_mid; break
12613 else
12614   echo "$as_me: failed program was:" >&5
12615 sed 's/^/| /' conftest.$ac_ext >&5
12616
12617 ac_lo=`expr $ac_mid + 1`
12618                     if test $ac_lo -le $ac_mid; then
12619                       ac_lo= ac_hi=
12620                       break
12621                     fi
12622                     ac_mid=`expr 2 '*' $ac_mid + 1`
12623 fi
12624 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12625   done
12626 else
12627   echo "$as_me: failed program was:" >&5
12628 sed 's/^/| /' conftest.$ac_ext >&5
12629
12630 cat >conftest.$ac_ext <<_ACEOF
12631 /* confdefs.h.  */
12632 _ACEOF
12633 cat confdefs.h >>conftest.$ac_ext
12634 cat >>conftest.$ac_ext <<_ACEOF
12635 /* end confdefs.h.  */
12636 $ac_includes_default
12637 int
12638 main ()
12639 {
12640 static int test_array [1 - 2 * !(((long) (sizeof (intmax_t))) < 0)];
12641 test_array [0] = 0
12642
12643   ;
12644   return 0;
12645 }
12646 _ACEOF
12647 rm -f conftest.$ac_objext
12648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12649   (eval $ac_compile) 2>conftest.er1
12650   ac_status=$?
12651   grep -v '^ *+' conftest.er1 >conftest.err
12652   rm -f conftest.er1
12653   cat conftest.err >&5
12654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12655   (exit $ac_status); } &&
12656          { ac_try='test -z "$ac_c_werror_flag"
12657                          || test ! -s conftest.err'
12658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12659   (eval $ac_try) 2>&5
12660   ac_status=$?
12661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12662   (exit $ac_status); }; } &&
12663          { ac_try='test -s conftest.$ac_objext'
12664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12665   (eval $ac_try) 2>&5
12666   ac_status=$?
12667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12668   (exit $ac_status); }; }; then
12669   ac_hi=-1 ac_mid=-1
12670   while :; do
12671     cat >conftest.$ac_ext <<_ACEOF
12672 /* confdefs.h.  */
12673 _ACEOF
12674 cat confdefs.h >>conftest.$ac_ext
12675 cat >>conftest.$ac_ext <<_ACEOF
12676 /* end confdefs.h.  */
12677 $ac_includes_default
12678 int
12679 main ()
12680 {
12681 static int test_array [1 - 2 * !(((long) (sizeof (intmax_t))) >= $ac_mid)];
12682 test_array [0] = 0
12683
12684   ;
12685   return 0;
12686 }
12687 _ACEOF
12688 rm -f conftest.$ac_objext
12689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12690   (eval $ac_compile) 2>conftest.er1
12691   ac_status=$?
12692   grep -v '^ *+' conftest.er1 >conftest.err
12693   rm -f conftest.er1
12694   cat conftest.err >&5
12695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12696   (exit $ac_status); } &&
12697          { ac_try='test -z "$ac_c_werror_flag"
12698                          || test ! -s conftest.err'
12699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12700   (eval $ac_try) 2>&5
12701   ac_status=$?
12702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12703   (exit $ac_status); }; } &&
12704          { ac_try='test -s conftest.$ac_objext'
12705   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12706   (eval $ac_try) 2>&5
12707   ac_status=$?
12708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12709   (exit $ac_status); }; }; then
12710   ac_lo=$ac_mid; break
12711 else
12712   echo "$as_me: failed program was:" >&5
12713 sed 's/^/| /' conftest.$ac_ext >&5
12714
12715 ac_hi=`expr '(' $ac_mid ')' - 1`
12716                        if test $ac_mid -le $ac_hi; then
12717                          ac_lo= ac_hi=
12718                          break
12719                        fi
12720                        ac_mid=`expr 2 '*' $ac_mid`
12721 fi
12722 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12723   done
12724 else
12725   echo "$as_me: failed program was:" >&5
12726 sed 's/^/| /' conftest.$ac_ext >&5
12727
12728 ac_lo= ac_hi=
12729 fi
12730 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12731 fi
12732 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12733 # Binary search between lo and hi bounds.
12734 while test "x$ac_lo" != "x$ac_hi"; do
12735   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12736   cat >conftest.$ac_ext <<_ACEOF
12737 /* confdefs.h.  */
12738 _ACEOF
12739 cat confdefs.h >>conftest.$ac_ext
12740 cat >>conftest.$ac_ext <<_ACEOF
12741 /* end confdefs.h.  */
12742 $ac_includes_default
12743 int
12744 main ()
12745 {
12746 static int test_array [1 - 2 * !(((long) (sizeof (intmax_t))) <= $ac_mid)];
12747 test_array [0] = 0
12748
12749   ;
12750   return 0;
12751 }
12752 _ACEOF
12753 rm -f conftest.$ac_objext
12754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12755   (eval $ac_compile) 2>conftest.er1
12756   ac_status=$?
12757   grep -v '^ *+' conftest.er1 >conftest.err
12758   rm -f conftest.er1
12759   cat conftest.err >&5
12760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12761   (exit $ac_status); } &&
12762          { ac_try='test -z "$ac_c_werror_flag"
12763                          || test ! -s conftest.err'
12764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12765   (eval $ac_try) 2>&5
12766   ac_status=$?
12767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12768   (exit $ac_status); }; } &&
12769          { ac_try='test -s conftest.$ac_objext'
12770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12771   (eval $ac_try) 2>&5
12772   ac_status=$?
12773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12774   (exit $ac_status); }; }; then
12775   ac_hi=$ac_mid
12776 else
12777   echo "$as_me: failed program was:" >&5
12778 sed 's/^/| /' conftest.$ac_ext >&5
12779
12780 ac_lo=`expr '(' $ac_mid ')' + 1`
12781 fi
12782 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12783 done
12784 case $ac_lo in
12785 ?*) ac_cv_sizeof_intmax_t=$ac_lo;;
12786 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (intmax_t), 77
12787 See \`config.log' for more details." >&5
12788 echo "$as_me: error: cannot compute sizeof (intmax_t), 77
12789 See \`config.log' for more details." >&2;}
12790    { (exit 1); exit 1; }; } ;;
12791 esac
12792 else
12793   if test "$cross_compiling" = yes; then
12794   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12795 See \`config.log' for more details." >&5
12796 echo "$as_me: error: cannot run test program while cross compiling
12797 See \`config.log' for more details." >&2;}
12798    { (exit 1); exit 1; }; }
12799 else
12800   cat >conftest.$ac_ext <<_ACEOF
12801 /* confdefs.h.  */
12802 _ACEOF
12803 cat confdefs.h >>conftest.$ac_ext
12804 cat >>conftest.$ac_ext <<_ACEOF
12805 /* end confdefs.h.  */
12806 $ac_includes_default
12807 long longval () { return (long) (sizeof (intmax_t)); }
12808 unsigned long ulongval () { return (long) (sizeof (intmax_t)); }
12809 #include <stdio.h>
12810 #include <stdlib.h>
12811 int
12812 main ()
12813 {
12814
12815   FILE *f = fopen ("conftest.val", "w");
12816   if (! f)
12817     exit (1);
12818   if (((long) (sizeof (intmax_t))) < 0)
12819     {
12820       long i = longval ();
12821       if (i != ((long) (sizeof (intmax_t))))
12822         exit (1);
12823       fprintf (f, "%ld\n", i);
12824     }
12825   else
12826     {
12827       unsigned long i = ulongval ();
12828       if (i != ((long) (sizeof (intmax_t))))
12829         exit (1);
12830       fprintf (f, "%lu\n", i);
12831     }
12832   exit (ferror (f) || fclose (f) != 0);
12833
12834   ;
12835   return 0;
12836 }
12837 _ACEOF
12838 rm -f conftest$ac_exeext
12839 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12840   (eval $ac_link) 2>&5
12841   ac_status=$?
12842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12843   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12845   (eval $ac_try) 2>&5
12846   ac_status=$?
12847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12848   (exit $ac_status); }; }; then
12849   ac_cv_sizeof_intmax_t=`cat conftest.val`
12850 else
12851   echo "$as_me: program exited with status $ac_status" >&5
12852 echo "$as_me: failed program was:" >&5
12853 sed 's/^/| /' conftest.$ac_ext >&5
12854
12855 ( exit $ac_status )
12856 { { echo "$as_me:$LINENO: error: cannot compute sizeof (intmax_t), 77
12857 See \`config.log' for more details." >&5
12858 echo "$as_me: error: cannot compute sizeof (intmax_t), 77
12859 See \`config.log' for more details." >&2;}
12860    { (exit 1); exit 1; }; }
12861 fi
12862 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12863 fi
12864 fi
12865 rm -f conftest.val
12866 else
12867   ac_cv_sizeof_intmax_t=0
12868 fi
12869 fi
12870 echo "$as_me:$LINENO: result: $ac_cv_sizeof_intmax_t" >&5
12871 echo "${ECHO_T}$ac_cv_sizeof_intmax_t" >&6
12872 cat >>confdefs.h <<_ACEOF
12873 #define SIZEOF_INTMAX_T $ac_cv_sizeof_intmax_t
12874 _ACEOF
12875
12876
12877 echo "$as_me:$LINENO: checking for off_t" >&5
12878 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
12879 if test "${ac_cv_type_off_t+set}" = set; then
12880   echo $ECHO_N "(cached) $ECHO_C" >&6
12881 else
12882   cat >conftest.$ac_ext <<_ACEOF
12883 /* confdefs.h.  */
12884 _ACEOF
12885 cat confdefs.h >>conftest.$ac_ext
12886 cat >>conftest.$ac_ext <<_ACEOF
12887 /* end confdefs.h.  */
12888 $ac_includes_default
12889 int
12890 main ()
12891 {
12892 if ((off_t *) 0)
12893   return 0;
12894 if (sizeof (off_t))
12895   return 0;
12896   ;
12897   return 0;
12898 }
12899 _ACEOF
12900 rm -f conftest.$ac_objext
12901 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12902   (eval $ac_compile) 2>conftest.er1
12903   ac_status=$?
12904   grep -v '^ *+' conftest.er1 >conftest.err
12905   rm -f conftest.er1
12906   cat conftest.err >&5
12907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12908   (exit $ac_status); } &&
12909          { ac_try='test -z "$ac_c_werror_flag"
12910                          || test ! -s conftest.err'
12911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12912   (eval $ac_try) 2>&5
12913   ac_status=$?
12914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12915   (exit $ac_status); }; } &&
12916          { ac_try='test -s conftest.$ac_objext'
12917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12918   (eval $ac_try) 2>&5
12919   ac_status=$?
12920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12921   (exit $ac_status); }; }; then
12922   ac_cv_type_off_t=yes
12923 else
12924   echo "$as_me: failed program was:" >&5
12925 sed 's/^/| /' conftest.$ac_ext >&5
12926
12927 ac_cv_type_off_t=no
12928 fi
12929 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12930 fi
12931 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
12932 echo "${ECHO_T}$ac_cv_type_off_t" >&6
12933
12934 echo "$as_me:$LINENO: checking size of off_t" >&5
12935 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6
12936 if test "${ac_cv_sizeof_off_t+set}" = set; then
12937   echo $ECHO_N "(cached) $ECHO_C" >&6
12938 else
12939   if test "$ac_cv_type_off_t" = yes; then
12940   # The cast to unsigned long works around a bug in the HP C Compiler
12941   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12942   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12943   # This bug is HP SR number 8606223364.
12944   if test "$cross_compiling" = yes; then
12945   # Depending upon the size, compute the lo and hi bounds.
12946 cat >conftest.$ac_ext <<_ACEOF
12947 /* confdefs.h.  */
12948 _ACEOF
12949 cat confdefs.h >>conftest.$ac_ext
12950 cat >>conftest.$ac_ext <<_ACEOF
12951 /* end confdefs.h.  */
12952 $ac_includes_default
12953 int
12954 main ()
12955 {
12956 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= 0)];
12957 test_array [0] = 0
12958
12959   ;
12960   return 0;
12961 }
12962 _ACEOF
12963 rm -f conftest.$ac_objext
12964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12965   (eval $ac_compile) 2>conftest.er1
12966   ac_status=$?
12967   grep -v '^ *+' conftest.er1 >conftest.err
12968   rm -f conftest.er1
12969   cat conftest.err >&5
12970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12971   (exit $ac_status); } &&
12972          { ac_try='test -z "$ac_c_werror_flag"
12973                          || test ! -s conftest.err'
12974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12975   (eval $ac_try) 2>&5
12976   ac_status=$?
12977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12978   (exit $ac_status); }; } &&
12979          { ac_try='test -s conftest.$ac_objext'
12980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12981   (eval $ac_try) 2>&5
12982   ac_status=$?
12983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12984   (exit $ac_status); }; }; then
12985   ac_lo=0 ac_mid=0
12986   while :; do
12987     cat >conftest.$ac_ext <<_ACEOF
12988 /* confdefs.h.  */
12989 _ACEOF
12990 cat confdefs.h >>conftest.$ac_ext
12991 cat >>conftest.$ac_ext <<_ACEOF
12992 /* end confdefs.h.  */
12993 $ac_includes_default
12994 int
12995 main ()
12996 {
12997 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
12998 test_array [0] = 0
12999
13000   ;
13001   return 0;
13002 }
13003 _ACEOF
13004 rm -f conftest.$ac_objext
13005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13006   (eval $ac_compile) 2>conftest.er1
13007   ac_status=$?
13008   grep -v '^ *+' conftest.er1 >conftest.err
13009   rm -f conftest.er1
13010   cat conftest.err >&5
13011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13012   (exit $ac_status); } &&
13013          { ac_try='test -z "$ac_c_werror_flag"
13014                          || test ! -s conftest.err'
13015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13016   (eval $ac_try) 2>&5
13017   ac_status=$?
13018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13019   (exit $ac_status); }; } &&
13020          { ac_try='test -s conftest.$ac_objext'
13021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13022   (eval $ac_try) 2>&5
13023   ac_status=$?
13024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13025   (exit $ac_status); }; }; then
13026   ac_hi=$ac_mid; break
13027 else
13028   echo "$as_me: failed program was:" >&5
13029 sed 's/^/| /' conftest.$ac_ext >&5
13030
13031 ac_lo=`expr $ac_mid + 1`
13032                     if test $ac_lo -le $ac_mid; then
13033                       ac_lo= ac_hi=
13034                       break
13035                     fi
13036                     ac_mid=`expr 2 '*' $ac_mid + 1`
13037 fi
13038 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13039   done
13040 else
13041   echo "$as_me: failed program was:" >&5
13042 sed 's/^/| /' conftest.$ac_ext >&5
13043
13044 cat >conftest.$ac_ext <<_ACEOF
13045 /* confdefs.h.  */
13046 _ACEOF
13047 cat confdefs.h >>conftest.$ac_ext
13048 cat >>conftest.$ac_ext <<_ACEOF
13049 /* end confdefs.h.  */
13050 $ac_includes_default
13051 int
13052 main ()
13053 {
13054 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) < 0)];
13055 test_array [0] = 0
13056
13057   ;
13058   return 0;
13059 }
13060 _ACEOF
13061 rm -f conftest.$ac_objext
13062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13063   (eval $ac_compile) 2>conftest.er1
13064   ac_status=$?
13065   grep -v '^ *+' conftest.er1 >conftest.err
13066   rm -f conftest.er1
13067   cat conftest.err >&5
13068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13069   (exit $ac_status); } &&
13070          { ac_try='test -z "$ac_c_werror_flag"
13071                          || test ! -s conftest.err'
13072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13073   (eval $ac_try) 2>&5
13074   ac_status=$?
13075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13076   (exit $ac_status); }; } &&
13077          { ac_try='test -s conftest.$ac_objext'
13078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13079   (eval $ac_try) 2>&5
13080   ac_status=$?
13081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13082   (exit $ac_status); }; }; then
13083   ac_hi=-1 ac_mid=-1
13084   while :; do
13085     cat >conftest.$ac_ext <<_ACEOF
13086 /* confdefs.h.  */
13087 _ACEOF
13088 cat confdefs.h >>conftest.$ac_ext
13089 cat >>conftest.$ac_ext <<_ACEOF
13090 /* end confdefs.h.  */
13091 $ac_includes_default
13092 int
13093 main ()
13094 {
13095 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= $ac_mid)];
13096 test_array [0] = 0
13097
13098   ;
13099   return 0;
13100 }
13101 _ACEOF
13102 rm -f conftest.$ac_objext
13103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13104   (eval $ac_compile) 2>conftest.er1
13105   ac_status=$?
13106   grep -v '^ *+' conftest.er1 >conftest.err
13107   rm -f conftest.er1
13108   cat conftest.err >&5
13109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13110   (exit $ac_status); } &&
13111          { ac_try='test -z "$ac_c_werror_flag"
13112                          || test ! -s conftest.err'
13113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13114   (eval $ac_try) 2>&5
13115   ac_status=$?
13116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13117   (exit $ac_status); }; } &&
13118          { ac_try='test -s conftest.$ac_objext'
13119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13120   (eval $ac_try) 2>&5
13121   ac_status=$?
13122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13123   (exit $ac_status); }; }; then
13124   ac_lo=$ac_mid; break
13125 else
13126   echo "$as_me: failed program was:" >&5
13127 sed 's/^/| /' conftest.$ac_ext >&5
13128
13129 ac_hi=`expr '(' $ac_mid ')' - 1`
13130                        if test $ac_mid -le $ac_hi; then
13131                          ac_lo= ac_hi=
13132                          break
13133                        fi
13134                        ac_mid=`expr 2 '*' $ac_mid`
13135 fi
13136 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13137   done
13138 else
13139   echo "$as_me: failed program was:" >&5
13140 sed 's/^/| /' conftest.$ac_ext >&5
13141
13142 ac_lo= ac_hi=
13143 fi
13144 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13145 fi
13146 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13147 # Binary search between lo and hi bounds.
13148 while test "x$ac_lo" != "x$ac_hi"; do
13149   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13150   cat >conftest.$ac_ext <<_ACEOF
13151 /* confdefs.h.  */
13152 _ACEOF
13153 cat confdefs.h >>conftest.$ac_ext
13154 cat >>conftest.$ac_ext <<_ACEOF
13155 /* end confdefs.h.  */
13156 $ac_includes_default
13157 int
13158 main ()
13159 {
13160 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
13161 test_array [0] = 0
13162
13163   ;
13164   return 0;
13165 }
13166 _ACEOF
13167 rm -f conftest.$ac_objext
13168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13169   (eval $ac_compile) 2>conftest.er1
13170   ac_status=$?
13171   grep -v '^ *+' conftest.er1 >conftest.err
13172   rm -f conftest.er1
13173   cat conftest.err >&5
13174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13175   (exit $ac_status); } &&
13176          { ac_try='test -z "$ac_c_werror_flag"
13177                          || test ! -s conftest.err'
13178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13179   (eval $ac_try) 2>&5
13180   ac_status=$?
13181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13182   (exit $ac_status); }; } &&
13183          { ac_try='test -s conftest.$ac_objext'
13184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13185   (eval $ac_try) 2>&5
13186   ac_status=$?
13187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13188   (exit $ac_status); }; }; then
13189   ac_hi=$ac_mid
13190 else
13191   echo "$as_me: failed program was:" >&5
13192 sed 's/^/| /' conftest.$ac_ext >&5
13193
13194 ac_lo=`expr '(' $ac_mid ')' + 1`
13195 fi
13196 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13197 done
13198 case $ac_lo in
13199 ?*) ac_cv_sizeof_off_t=$ac_lo;;
13200 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
13201 See \`config.log' for more details." >&5
13202 echo "$as_me: error: cannot compute sizeof (off_t), 77
13203 See \`config.log' for more details." >&2;}
13204    { (exit 1); exit 1; }; } ;;
13205 esac
13206 else
13207   if test "$cross_compiling" = yes; then
13208   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13209 See \`config.log' for more details." >&5
13210 echo "$as_me: error: cannot run test program while cross compiling
13211 See \`config.log' for more details." >&2;}
13212    { (exit 1); exit 1; }; }
13213 else
13214   cat >conftest.$ac_ext <<_ACEOF
13215 /* confdefs.h.  */
13216 _ACEOF
13217 cat confdefs.h >>conftest.$ac_ext
13218 cat >>conftest.$ac_ext <<_ACEOF
13219 /* end confdefs.h.  */
13220 $ac_includes_default
13221 long longval () { return (long) (sizeof (off_t)); }
13222 unsigned long ulongval () { return (long) (sizeof (off_t)); }
13223 #include <stdio.h>
13224 #include <stdlib.h>
13225 int
13226 main ()
13227 {
13228
13229   FILE *f = fopen ("conftest.val", "w");
13230   if (! f)
13231     exit (1);
13232   if (((long) (sizeof (off_t))) < 0)
13233     {
13234       long i = longval ();
13235       if (i != ((long) (sizeof (off_t))))
13236         exit (1);
13237       fprintf (f, "%ld\n", i);
13238     }
13239   else
13240     {
13241       unsigned long i = ulongval ();
13242       if (i != ((long) (sizeof (off_t))))
13243         exit (1);
13244       fprintf (f, "%lu\n", i);
13245     }
13246   exit (ferror (f) || fclose (f) != 0);
13247
13248   ;
13249   return 0;
13250 }
13251 _ACEOF
13252 rm -f conftest$ac_exeext
13253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13254   (eval $ac_link) 2>&5
13255   ac_status=$?
13256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13257   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13259   (eval $ac_try) 2>&5
13260   ac_status=$?
13261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13262   (exit $ac_status); }; }; then
13263   ac_cv_sizeof_off_t=`cat conftest.val`
13264 else
13265   echo "$as_me: program exited with status $ac_status" >&5
13266 echo "$as_me: failed program was:" >&5
13267 sed 's/^/| /' conftest.$ac_ext >&5
13268
13269 ( exit $ac_status )
13270 { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
13271 See \`config.log' for more details." >&5
13272 echo "$as_me: error: cannot compute sizeof (off_t), 77
13273 See \`config.log' for more details." >&2;}
13274    { (exit 1); exit 1; }; }
13275 fi
13276 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13277 fi
13278 fi
13279 rm -f conftest.val
13280 else
13281   ac_cv_sizeof_off_t=0
13282 fi
13283 fi
13284 echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
13285 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6
13286 cat >>confdefs.h <<_ACEOF
13287 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
13288 _ACEOF
13289
13290
13291 echo "$as_me:$LINENO: checking for size_t" >&5
13292 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
13293 if test "${ac_cv_type_size_t+set}" = set; then
13294   echo $ECHO_N "(cached) $ECHO_C" >&6
13295 else
13296   cat >conftest.$ac_ext <<_ACEOF
13297 /* confdefs.h.  */
13298 _ACEOF
13299 cat confdefs.h >>conftest.$ac_ext
13300 cat >>conftest.$ac_ext <<_ACEOF
13301 /* end confdefs.h.  */
13302 $ac_includes_default
13303 int
13304 main ()
13305 {
13306 if ((size_t *) 0)
13307   return 0;
13308 if (sizeof (size_t))
13309   return 0;
13310   ;
13311   return 0;
13312 }
13313 _ACEOF
13314 rm -f conftest.$ac_objext
13315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13316   (eval $ac_compile) 2>conftest.er1
13317   ac_status=$?
13318   grep -v '^ *+' conftest.er1 >conftest.err
13319   rm -f conftest.er1
13320   cat conftest.err >&5
13321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13322   (exit $ac_status); } &&
13323          { ac_try='test -z "$ac_c_werror_flag"
13324                          || test ! -s conftest.err'
13325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13326   (eval $ac_try) 2>&5
13327   ac_status=$?
13328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13329   (exit $ac_status); }; } &&
13330          { ac_try='test -s conftest.$ac_objext'
13331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13332   (eval $ac_try) 2>&5
13333   ac_status=$?
13334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13335   (exit $ac_status); }; }; then
13336   ac_cv_type_size_t=yes
13337 else
13338   echo "$as_me: failed program was:" >&5
13339 sed 's/^/| /' conftest.$ac_ext >&5
13340
13341 ac_cv_type_size_t=no
13342 fi
13343 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13344 fi
13345 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
13346 echo "${ECHO_T}$ac_cv_type_size_t" >&6
13347
13348 echo "$as_me:$LINENO: checking size of size_t" >&5
13349 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
13350 if test "${ac_cv_sizeof_size_t+set}" = set; then
13351   echo $ECHO_N "(cached) $ECHO_C" >&6
13352 else
13353   if test "$ac_cv_type_size_t" = yes; then
13354   # The cast to unsigned long works around a bug in the HP C Compiler
13355   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13356   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13357   # This bug is HP SR number 8606223364.
13358   if test "$cross_compiling" = yes; then
13359   # Depending upon the size, compute the lo and hi bounds.
13360 cat >conftest.$ac_ext <<_ACEOF
13361 /* confdefs.h.  */
13362 _ACEOF
13363 cat confdefs.h >>conftest.$ac_ext
13364 cat >>conftest.$ac_ext <<_ACEOF
13365 /* end confdefs.h.  */
13366 $ac_includes_default
13367 int
13368 main ()
13369 {
13370 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
13371 test_array [0] = 0
13372
13373   ;
13374   return 0;
13375 }
13376 _ACEOF
13377 rm -f conftest.$ac_objext
13378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13379   (eval $ac_compile) 2>conftest.er1
13380   ac_status=$?
13381   grep -v '^ *+' conftest.er1 >conftest.err
13382   rm -f conftest.er1
13383   cat conftest.err >&5
13384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13385   (exit $ac_status); } &&
13386          { ac_try='test -z "$ac_c_werror_flag"
13387                          || test ! -s conftest.err'
13388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13389   (eval $ac_try) 2>&5
13390   ac_status=$?
13391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13392   (exit $ac_status); }; } &&
13393          { ac_try='test -s conftest.$ac_objext'
13394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13395   (eval $ac_try) 2>&5
13396   ac_status=$?
13397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13398   (exit $ac_status); }; }; then
13399   ac_lo=0 ac_mid=0
13400   while :; do
13401     cat >conftest.$ac_ext <<_ACEOF
13402 /* confdefs.h.  */
13403 _ACEOF
13404 cat confdefs.h >>conftest.$ac_ext
13405 cat >>conftest.$ac_ext <<_ACEOF
13406 /* end confdefs.h.  */
13407 $ac_includes_default
13408 int
13409 main ()
13410 {
13411 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
13412 test_array [0] = 0
13413
13414   ;
13415   return 0;
13416 }
13417 _ACEOF
13418 rm -f conftest.$ac_objext
13419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13420   (eval $ac_compile) 2>conftest.er1
13421   ac_status=$?
13422   grep -v '^ *+' conftest.er1 >conftest.err
13423   rm -f conftest.er1
13424   cat conftest.err >&5
13425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13426   (exit $ac_status); } &&
13427          { ac_try='test -z "$ac_c_werror_flag"
13428                          || test ! -s conftest.err'
13429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13430   (eval $ac_try) 2>&5
13431   ac_status=$?
13432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13433   (exit $ac_status); }; } &&
13434          { ac_try='test -s conftest.$ac_objext'
13435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13436   (eval $ac_try) 2>&5
13437   ac_status=$?
13438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13439   (exit $ac_status); }; }; then
13440   ac_hi=$ac_mid; break
13441 else
13442   echo "$as_me: failed program was:" >&5
13443 sed 's/^/| /' conftest.$ac_ext >&5
13444
13445 ac_lo=`expr $ac_mid + 1`
13446                     if test $ac_lo -le $ac_mid; then
13447                       ac_lo= ac_hi=
13448                       break
13449                     fi
13450                     ac_mid=`expr 2 '*' $ac_mid + 1`
13451 fi
13452 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13453   done
13454 else
13455   echo "$as_me: failed program was:" >&5
13456 sed 's/^/| /' conftest.$ac_ext >&5
13457
13458 cat >conftest.$ac_ext <<_ACEOF
13459 /* confdefs.h.  */
13460 _ACEOF
13461 cat confdefs.h >>conftest.$ac_ext
13462 cat >>conftest.$ac_ext <<_ACEOF
13463 /* end confdefs.h.  */
13464 $ac_includes_default
13465 int
13466 main ()
13467 {
13468 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
13469 test_array [0] = 0
13470
13471   ;
13472   return 0;
13473 }
13474 _ACEOF
13475 rm -f conftest.$ac_objext
13476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13477   (eval $ac_compile) 2>conftest.er1
13478   ac_status=$?
13479   grep -v '^ *+' conftest.er1 >conftest.err
13480   rm -f conftest.er1
13481   cat conftest.err >&5
13482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13483   (exit $ac_status); } &&
13484          { ac_try='test -z "$ac_c_werror_flag"
13485                          || test ! -s conftest.err'
13486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13487   (eval $ac_try) 2>&5
13488   ac_status=$?
13489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13490   (exit $ac_status); }; } &&
13491          { ac_try='test -s conftest.$ac_objext'
13492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13493   (eval $ac_try) 2>&5
13494   ac_status=$?
13495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13496   (exit $ac_status); }; }; then
13497   ac_hi=-1 ac_mid=-1
13498   while :; do
13499     cat >conftest.$ac_ext <<_ACEOF
13500 /* confdefs.h.  */
13501 _ACEOF
13502 cat confdefs.h >>conftest.$ac_ext
13503 cat >>conftest.$ac_ext <<_ACEOF
13504 /* end confdefs.h.  */
13505 $ac_includes_default
13506 int
13507 main ()
13508 {
13509 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
13510 test_array [0] = 0
13511
13512   ;
13513   return 0;
13514 }
13515 _ACEOF
13516 rm -f conftest.$ac_objext
13517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13518   (eval $ac_compile) 2>conftest.er1
13519   ac_status=$?
13520   grep -v '^ *+' conftest.er1 >conftest.err
13521   rm -f conftest.er1
13522   cat conftest.err >&5
13523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13524   (exit $ac_status); } &&
13525          { ac_try='test -z "$ac_c_werror_flag"
13526                          || test ! -s conftest.err'
13527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13528   (eval $ac_try) 2>&5
13529   ac_status=$?
13530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13531   (exit $ac_status); }; } &&
13532          { ac_try='test -s conftest.$ac_objext'
13533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13534   (eval $ac_try) 2>&5
13535   ac_status=$?
13536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13537   (exit $ac_status); }; }; then
13538   ac_lo=$ac_mid; break
13539 else
13540   echo "$as_me: failed program was:" >&5
13541 sed 's/^/| /' conftest.$ac_ext >&5
13542
13543 ac_hi=`expr '(' $ac_mid ')' - 1`
13544                        if test $ac_mid -le $ac_hi; then
13545                          ac_lo= ac_hi=
13546                          break
13547                        fi
13548                        ac_mid=`expr 2 '*' $ac_mid`
13549 fi
13550 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13551   done
13552 else
13553   echo "$as_me: failed program was:" >&5
13554 sed 's/^/| /' conftest.$ac_ext >&5
13555
13556 ac_lo= ac_hi=
13557 fi
13558 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13559 fi
13560 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13561 # Binary search between lo and hi bounds.
13562 while test "x$ac_lo" != "x$ac_hi"; do
13563   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13564   cat >conftest.$ac_ext <<_ACEOF
13565 /* confdefs.h.  */
13566 _ACEOF
13567 cat confdefs.h >>conftest.$ac_ext
13568 cat >>conftest.$ac_ext <<_ACEOF
13569 /* end confdefs.h.  */
13570 $ac_includes_default
13571 int
13572 main ()
13573 {
13574 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
13575 test_array [0] = 0
13576
13577   ;
13578   return 0;
13579 }
13580 _ACEOF
13581 rm -f conftest.$ac_objext
13582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13583   (eval $ac_compile) 2>conftest.er1
13584   ac_status=$?
13585   grep -v '^ *+' conftest.er1 >conftest.err
13586   rm -f conftest.er1
13587   cat conftest.err >&5
13588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13589   (exit $ac_status); } &&
13590          { ac_try='test -z "$ac_c_werror_flag"
13591                          || test ! -s conftest.err'
13592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13593   (eval $ac_try) 2>&5
13594   ac_status=$?
13595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13596   (exit $ac_status); }; } &&
13597          { ac_try='test -s conftest.$ac_objext'
13598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13599   (eval $ac_try) 2>&5
13600   ac_status=$?
13601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13602   (exit $ac_status); }; }; then
13603   ac_hi=$ac_mid
13604 else
13605   echo "$as_me: failed program was:" >&5
13606 sed 's/^/| /' conftest.$ac_ext >&5
13607
13608 ac_lo=`expr '(' $ac_mid ')' + 1`
13609 fi
13610 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13611 done
13612 case $ac_lo in
13613 ?*) ac_cv_sizeof_size_t=$ac_lo;;
13614 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
13615 See \`config.log' for more details." >&5
13616 echo "$as_me: error: cannot compute sizeof (size_t), 77
13617 See \`config.log' for more details." >&2;}
13618    { (exit 1); exit 1; }; } ;;
13619 esac
13620 else
13621   if test "$cross_compiling" = yes; then
13622   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13623 See \`config.log' for more details." >&5
13624 echo "$as_me: error: cannot run test program while cross compiling
13625 See \`config.log' for more details." >&2;}
13626    { (exit 1); exit 1; }; }
13627 else
13628   cat >conftest.$ac_ext <<_ACEOF
13629 /* confdefs.h.  */
13630 _ACEOF
13631 cat confdefs.h >>conftest.$ac_ext
13632 cat >>conftest.$ac_ext <<_ACEOF
13633 /* end confdefs.h.  */
13634 $ac_includes_default
13635 long longval () { return (long) (sizeof (size_t)); }
13636 unsigned long ulongval () { return (long) (sizeof (size_t)); }
13637 #include <stdio.h>
13638 #include <stdlib.h>
13639 int
13640 main ()
13641 {
13642
13643   FILE *f = fopen ("conftest.val", "w");
13644   if (! f)
13645     exit (1);
13646   if (((long) (sizeof (size_t))) < 0)
13647     {
13648       long i = longval ();
13649       if (i != ((long) (sizeof (size_t))))
13650         exit (1);
13651       fprintf (f, "%ld\n", i);
13652     }
13653   else
13654     {
13655       unsigned long i = ulongval ();
13656       if (i != ((long) (sizeof (size_t))))
13657         exit (1);
13658       fprintf (f, "%lu\n", i);
13659     }
13660   exit (ferror (f) || fclose (f) != 0);
13661
13662   ;
13663   return 0;
13664 }
13665 _ACEOF
13666 rm -f conftest$ac_exeext
13667 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13668   (eval $ac_link) 2>&5
13669   ac_status=$?
13670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13671   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13673   (eval $ac_try) 2>&5
13674   ac_status=$?
13675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13676   (exit $ac_status); }; }; then
13677   ac_cv_sizeof_size_t=`cat conftest.val`
13678 else
13679   echo "$as_me: program exited with status $ac_status" >&5
13680 echo "$as_me: failed program was:" >&5
13681 sed 's/^/| /' conftest.$ac_ext >&5
13682
13683 ( exit $ac_status )
13684 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
13685 See \`config.log' for more details." >&5
13686 echo "$as_me: error: cannot compute sizeof (size_t), 77
13687 See \`config.log' for more details." >&2;}
13688    { (exit 1); exit 1; }; }
13689 fi
13690 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13691 fi
13692 fi
13693 rm -f conftest.val
13694 else
13695   ac_cv_sizeof_size_t=0
13696 fi
13697 fi
13698 echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
13699 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
13700 cat >>confdefs.h <<_ACEOF
13701 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
13702 _ACEOF
13703
13704
13705 echo "$as_me:$LINENO: checking for ssize_t" >&5
13706 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
13707 if test "${ac_cv_type_ssize_t+set}" = set; then
13708   echo $ECHO_N "(cached) $ECHO_C" >&6
13709 else
13710   cat >conftest.$ac_ext <<_ACEOF
13711 /* confdefs.h.  */
13712 _ACEOF
13713 cat confdefs.h >>conftest.$ac_ext
13714 cat >>conftest.$ac_ext <<_ACEOF
13715 /* end confdefs.h.  */
13716 $ac_includes_default
13717 int
13718 main ()
13719 {
13720 if ((ssize_t *) 0)
13721   return 0;
13722 if (sizeof (ssize_t))
13723   return 0;
13724   ;
13725   return 0;
13726 }
13727 _ACEOF
13728 rm -f conftest.$ac_objext
13729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13730   (eval $ac_compile) 2>conftest.er1
13731   ac_status=$?
13732   grep -v '^ *+' conftest.er1 >conftest.err
13733   rm -f conftest.er1
13734   cat conftest.err >&5
13735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13736   (exit $ac_status); } &&
13737          { ac_try='test -z "$ac_c_werror_flag"
13738                          || test ! -s conftest.err'
13739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13740   (eval $ac_try) 2>&5
13741   ac_status=$?
13742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13743   (exit $ac_status); }; } &&
13744          { ac_try='test -s conftest.$ac_objext'
13745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13746   (eval $ac_try) 2>&5
13747   ac_status=$?
13748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13749   (exit $ac_status); }; }; then
13750   ac_cv_type_ssize_t=yes
13751 else
13752   echo "$as_me: failed program was:" >&5
13753 sed 's/^/| /' conftest.$ac_ext >&5
13754
13755 ac_cv_type_ssize_t=no
13756 fi
13757 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13758 fi
13759 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
13760 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
13761
13762 echo "$as_me:$LINENO: checking size of ssize_t" >&5
13763 echo $ECHO_N "checking size of ssize_t... $ECHO_C" >&6
13764 if test "${ac_cv_sizeof_ssize_t+set}" = set; then
13765   echo $ECHO_N "(cached) $ECHO_C" >&6
13766 else
13767   if test "$ac_cv_type_ssize_t" = yes; then
13768   # The cast to unsigned long works around a bug in the HP C Compiler
13769   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13770   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13771   # This bug is HP SR number 8606223364.
13772   if test "$cross_compiling" = yes; then
13773   # Depending upon the size, compute the lo and hi bounds.
13774 cat >conftest.$ac_ext <<_ACEOF
13775 /* confdefs.h.  */
13776 _ACEOF
13777 cat confdefs.h >>conftest.$ac_ext
13778 cat >>conftest.$ac_ext <<_ACEOF
13779 /* end confdefs.h.  */
13780 $ac_includes_default
13781 int
13782 main ()
13783 {
13784 static int test_array [1 - 2 * !(((long) (sizeof (ssize_t))) >= 0)];
13785 test_array [0] = 0
13786
13787   ;
13788   return 0;
13789 }
13790 _ACEOF
13791 rm -f conftest.$ac_objext
13792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13793   (eval $ac_compile) 2>conftest.er1
13794   ac_status=$?
13795   grep -v '^ *+' conftest.er1 >conftest.err
13796   rm -f conftest.er1
13797   cat conftest.err >&5
13798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13799   (exit $ac_status); } &&
13800          { ac_try='test -z "$ac_c_werror_flag"
13801                          || test ! -s conftest.err'
13802   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13803   (eval $ac_try) 2>&5
13804   ac_status=$?
13805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13806   (exit $ac_status); }; } &&
13807          { ac_try='test -s conftest.$ac_objext'
13808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13809   (eval $ac_try) 2>&5
13810   ac_status=$?
13811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13812   (exit $ac_status); }; }; then
13813   ac_lo=0 ac_mid=0
13814   while :; do
13815     cat >conftest.$ac_ext <<_ACEOF
13816 /* confdefs.h.  */
13817 _ACEOF
13818 cat confdefs.h >>conftest.$ac_ext
13819 cat >>conftest.$ac_ext <<_ACEOF
13820 /* end confdefs.h.  */
13821 $ac_includes_default
13822 int
13823 main ()
13824 {
13825 static int test_array [1 - 2 * !(((long) (sizeof (ssize_t))) <= $ac_mid)];
13826 test_array [0] = 0
13827
13828   ;
13829   return 0;
13830 }
13831 _ACEOF
13832 rm -f conftest.$ac_objext
13833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13834   (eval $ac_compile) 2>conftest.er1
13835   ac_status=$?
13836   grep -v '^ *+' conftest.er1 >conftest.err
13837   rm -f conftest.er1
13838   cat conftest.err >&5
13839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13840   (exit $ac_status); } &&
13841          { ac_try='test -z "$ac_c_werror_flag"
13842                          || test ! -s conftest.err'
13843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13844   (eval $ac_try) 2>&5
13845   ac_status=$?
13846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13847   (exit $ac_status); }; } &&
13848          { ac_try='test -s conftest.$ac_objext'
13849   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13850   (eval $ac_try) 2>&5
13851   ac_status=$?
13852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13853   (exit $ac_status); }; }; then
13854   ac_hi=$ac_mid; break
13855 else
13856   echo "$as_me: failed program was:" >&5
13857 sed 's/^/| /' conftest.$ac_ext >&5
13858
13859 ac_lo=`expr $ac_mid + 1`
13860                     if test $ac_lo -le $ac_mid; then
13861                       ac_lo= ac_hi=
13862                       break
13863                     fi
13864                     ac_mid=`expr 2 '*' $ac_mid + 1`
13865 fi
13866 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13867   done
13868 else
13869   echo "$as_me: failed program was:" >&5
13870 sed 's/^/| /' conftest.$ac_ext >&5
13871
13872 cat >conftest.$ac_ext <<_ACEOF
13873 /* confdefs.h.  */
13874 _ACEOF
13875 cat confdefs.h >>conftest.$ac_ext
13876 cat >>conftest.$ac_ext <<_ACEOF
13877 /* end confdefs.h.  */
13878 $ac_includes_default
13879 int
13880 main ()
13881 {
13882 static int test_array [1 - 2 * !(((long) (sizeof (ssize_t))) < 0)];
13883 test_array [0] = 0
13884
13885   ;
13886   return 0;
13887 }
13888 _ACEOF
13889 rm -f conftest.$ac_objext
13890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13891   (eval $ac_compile) 2>conftest.er1
13892   ac_status=$?
13893   grep -v '^ *+' conftest.er1 >conftest.err
13894   rm -f conftest.er1
13895   cat conftest.err >&5
13896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13897   (exit $ac_status); } &&
13898          { ac_try='test -z "$ac_c_werror_flag"
13899                          || test ! -s conftest.err'
13900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13901   (eval $ac_try) 2>&5
13902   ac_status=$?
13903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13904   (exit $ac_status); }; } &&
13905          { ac_try='test -s conftest.$ac_objext'
13906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13907   (eval $ac_try) 2>&5
13908   ac_status=$?
13909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13910   (exit $ac_status); }; }; then
13911   ac_hi=-1 ac_mid=-1
13912   while :; do
13913     cat >conftest.$ac_ext <<_ACEOF
13914 /* confdefs.h.  */
13915 _ACEOF
13916 cat confdefs.h >>conftest.$ac_ext
13917 cat >>conftest.$ac_ext <<_ACEOF
13918 /* end confdefs.h.  */
13919 $ac_includes_default
13920 int
13921 main ()
13922 {
13923 static int test_array [1 - 2 * !(((long) (sizeof (ssize_t))) >= $ac_mid)];
13924 test_array [0] = 0
13925
13926   ;
13927   return 0;
13928 }
13929 _ACEOF
13930 rm -f conftest.$ac_objext
13931 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13932   (eval $ac_compile) 2>conftest.er1
13933   ac_status=$?
13934   grep -v '^ *+' conftest.er1 >conftest.err
13935   rm -f conftest.er1
13936   cat conftest.err >&5
13937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13938   (exit $ac_status); } &&
13939          { ac_try='test -z "$ac_c_werror_flag"
13940                          || test ! -s conftest.err'
13941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13942   (eval $ac_try) 2>&5
13943   ac_status=$?
13944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13945   (exit $ac_status); }; } &&
13946          { ac_try='test -s conftest.$ac_objext'
13947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13948   (eval $ac_try) 2>&5
13949   ac_status=$?
13950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13951   (exit $ac_status); }; }; then
13952   ac_lo=$ac_mid; break
13953 else
13954   echo "$as_me: failed program was:" >&5
13955 sed 's/^/| /' conftest.$ac_ext >&5
13956
13957 ac_hi=`expr '(' $ac_mid ')' - 1`
13958                        if test $ac_mid -le $ac_hi; then
13959                          ac_lo= ac_hi=
13960                          break
13961                        fi
13962                        ac_mid=`expr 2 '*' $ac_mid`
13963 fi
13964 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13965   done
13966 else
13967   echo "$as_me: failed program was:" >&5
13968 sed 's/^/| /' conftest.$ac_ext >&5
13969
13970 ac_lo= ac_hi=
13971 fi
13972 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13973 fi
13974 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13975 # Binary search between lo and hi bounds.
13976 while test "x$ac_lo" != "x$ac_hi"; do
13977   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13978   cat >conftest.$ac_ext <<_ACEOF
13979 /* confdefs.h.  */
13980 _ACEOF
13981 cat confdefs.h >>conftest.$ac_ext
13982 cat >>conftest.$ac_ext <<_ACEOF
13983 /* end confdefs.h.  */
13984 $ac_includes_default
13985 int
13986 main ()
13987 {
13988 static int test_array [1 - 2 * !(((long) (sizeof (ssize_t))) <= $ac_mid)];
13989 test_array [0] = 0
13990
13991   ;
13992   return 0;
13993 }
13994 _ACEOF
13995 rm -f conftest.$ac_objext
13996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13997   (eval $ac_compile) 2>conftest.er1
13998   ac_status=$?
13999   grep -v '^ *+' conftest.er1 >conftest.err
14000   rm -f conftest.er1
14001   cat conftest.err >&5
14002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14003   (exit $ac_status); } &&
14004          { ac_try='test -z "$ac_c_werror_flag"
14005                          || test ! -s conftest.err'
14006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14007   (eval $ac_try) 2>&5
14008   ac_status=$?
14009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14010   (exit $ac_status); }; } &&
14011          { ac_try='test -s conftest.$ac_objext'
14012   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14013   (eval $ac_try) 2>&5
14014   ac_status=$?
14015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14016   (exit $ac_status); }; }; then
14017   ac_hi=$ac_mid
14018 else
14019   echo "$as_me: failed program was:" >&5
14020 sed 's/^/| /' conftest.$ac_ext >&5
14021
14022 ac_lo=`expr '(' $ac_mid ')' + 1`
14023 fi
14024 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14025 done
14026 case $ac_lo in
14027 ?*) ac_cv_sizeof_ssize_t=$ac_lo;;
14028 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (ssize_t), 77
14029 See \`config.log' for more details." >&5
14030 echo "$as_me: error: cannot compute sizeof (ssize_t), 77
14031 See \`config.log' for more details." >&2;}
14032    { (exit 1); exit 1; }; } ;;
14033 esac
14034 else
14035   if test "$cross_compiling" = yes; then
14036   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14037 See \`config.log' for more details." >&5
14038 echo "$as_me: error: cannot run test program while cross compiling
14039 See \`config.log' for more details." >&2;}
14040    { (exit 1); exit 1; }; }
14041 else
14042   cat >conftest.$ac_ext <<_ACEOF
14043 /* confdefs.h.  */
14044 _ACEOF
14045 cat confdefs.h >>conftest.$ac_ext
14046 cat >>conftest.$ac_ext <<_ACEOF
14047 /* end confdefs.h.  */
14048 $ac_includes_default
14049 long longval () { return (long) (sizeof (ssize_t)); }
14050 unsigned long ulongval () { return (long) (sizeof (ssize_t)); }
14051 #include <stdio.h>
14052 #include <stdlib.h>
14053 int
14054 main ()
14055 {
14056
14057   FILE *f = fopen ("conftest.val", "w");
14058   if (! f)
14059     exit (1);
14060   if (((long) (sizeof (ssize_t))) < 0)
14061     {
14062       long i = longval ();
14063       if (i != ((long) (sizeof (ssize_t))))
14064         exit (1);
14065       fprintf (f, "%ld\n", i);
14066     }
14067   else
14068     {
14069       unsigned long i = ulongval ();
14070       if (i != ((long) (sizeof (ssize_t))))
14071         exit (1);
14072       fprintf (f, "%lu\n", i);
14073     }
14074   exit (ferror (f) || fclose (f) != 0);
14075
14076   ;
14077   return 0;
14078 }
14079 _ACEOF
14080 rm -f conftest$ac_exeext
14081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14082   (eval $ac_link) 2>&5
14083   ac_status=$?
14084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14085   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14087   (eval $ac_try) 2>&5
14088   ac_status=$?
14089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14090   (exit $ac_status); }; }; then
14091   ac_cv_sizeof_ssize_t=`cat conftest.val`
14092 else
14093   echo "$as_me: program exited with status $ac_status" >&5
14094 echo "$as_me: failed program was:" >&5
14095 sed 's/^/| /' conftest.$ac_ext >&5
14096
14097 ( exit $ac_status )
14098 { { echo "$as_me:$LINENO: error: cannot compute sizeof (ssize_t), 77
14099 See \`config.log' for more details." >&5
14100 echo "$as_me: error: cannot compute sizeof (ssize_t), 77
14101 See \`config.log' for more details." >&2;}
14102    { (exit 1); exit 1; }; }
14103 fi
14104 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14105 fi
14106 fi
14107 rm -f conftest.val
14108 else
14109   ac_cv_sizeof_ssize_t=0
14110 fi
14111 fi
14112 echo "$as_me:$LINENO: result: $ac_cv_sizeof_ssize_t" >&5
14113 echo "${ECHO_T}$ac_cv_sizeof_ssize_t" >&6
14114 cat >>confdefs.h <<_ACEOF
14115 #define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
14116 _ACEOF
14117
14118
14119 echo "$as_me:$LINENO: checking for time_t" >&5
14120 echo $ECHO_N "checking for time_t... $ECHO_C" >&6
14121 if test "${ac_cv_type_time_t+set}" = set; then
14122   echo $ECHO_N "(cached) $ECHO_C" >&6
14123 else
14124   cat >conftest.$ac_ext <<_ACEOF
14125 /* confdefs.h.  */
14126 _ACEOF
14127 cat confdefs.h >>conftest.$ac_ext
14128 cat >>conftest.$ac_ext <<_ACEOF
14129 /* end confdefs.h.  */
14130 $ac_includes_default
14131 int
14132 main ()
14133 {
14134 if ((time_t *) 0)
14135   return 0;
14136 if (sizeof (time_t))
14137   return 0;
14138   ;
14139   return 0;
14140 }
14141 _ACEOF
14142 rm -f conftest.$ac_objext
14143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14144   (eval $ac_compile) 2>conftest.er1
14145   ac_status=$?
14146   grep -v '^ *+' conftest.er1 >conftest.err
14147   rm -f conftest.er1
14148   cat conftest.err >&5
14149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14150   (exit $ac_status); } &&
14151          { ac_try='test -z "$ac_c_werror_flag"
14152                          || test ! -s conftest.err'
14153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14154   (eval $ac_try) 2>&5
14155   ac_status=$?
14156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14157   (exit $ac_status); }; } &&
14158          { ac_try='test -s conftest.$ac_objext'
14159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14160   (eval $ac_try) 2>&5
14161   ac_status=$?
14162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14163   (exit $ac_status); }; }; then
14164   ac_cv_type_time_t=yes
14165 else
14166   echo "$as_me: failed program was:" >&5
14167 sed 's/^/| /' conftest.$ac_ext >&5
14168
14169 ac_cv_type_time_t=no
14170 fi
14171 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14172 fi
14173 echo "$as_me:$LINENO: result: $ac_cv_type_time_t" >&5
14174 echo "${ECHO_T}$ac_cv_type_time_t" >&6
14175
14176 echo "$as_me:$LINENO: checking size of time_t" >&5
14177 echo $ECHO_N "checking size of time_t... $ECHO_C" >&6
14178 if test "${ac_cv_sizeof_time_t+set}" = set; then
14179   echo $ECHO_N "(cached) $ECHO_C" >&6
14180 else
14181   if test "$ac_cv_type_time_t" = yes; then
14182   # The cast to unsigned long works around a bug in the HP C Compiler
14183   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14184   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14185   # This bug is HP SR number 8606223364.
14186   if test "$cross_compiling" = yes; then
14187   # Depending upon the size, compute the lo and hi bounds.
14188 cat >conftest.$ac_ext <<_ACEOF
14189 /* confdefs.h.  */
14190 _ACEOF
14191 cat confdefs.h >>conftest.$ac_ext
14192 cat >>conftest.$ac_ext <<_ACEOF
14193 /* end confdefs.h.  */
14194 $ac_includes_default
14195 int
14196 main ()
14197 {
14198 static int test_array [1 - 2 * !(((long) (sizeof (time_t))) >= 0)];
14199 test_array [0] = 0
14200
14201   ;
14202   return 0;
14203 }
14204 _ACEOF
14205 rm -f conftest.$ac_objext
14206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14207   (eval $ac_compile) 2>conftest.er1
14208   ac_status=$?
14209   grep -v '^ *+' conftest.er1 >conftest.err
14210   rm -f conftest.er1
14211   cat conftest.err >&5
14212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14213   (exit $ac_status); } &&
14214          { ac_try='test -z "$ac_c_werror_flag"
14215                          || test ! -s conftest.err'
14216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14217   (eval $ac_try) 2>&5
14218   ac_status=$?
14219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14220   (exit $ac_status); }; } &&
14221          { ac_try='test -s conftest.$ac_objext'
14222   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14223   (eval $ac_try) 2>&5
14224   ac_status=$?
14225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14226   (exit $ac_status); }; }; then
14227   ac_lo=0 ac_mid=0
14228   while :; do
14229     cat >conftest.$ac_ext <<_ACEOF
14230 /* confdefs.h.  */
14231 _ACEOF
14232 cat confdefs.h >>conftest.$ac_ext
14233 cat >>conftest.$ac_ext <<_ACEOF
14234 /* end confdefs.h.  */
14235 $ac_includes_default
14236 int
14237 main ()
14238 {
14239 static int test_array [1 - 2 * !(((long) (sizeof (time_t))) <= $ac_mid)];
14240 test_array [0] = 0
14241
14242   ;
14243   return 0;
14244 }
14245 _ACEOF
14246 rm -f conftest.$ac_objext
14247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14248   (eval $ac_compile) 2>conftest.er1
14249   ac_status=$?
14250   grep -v '^ *+' conftest.er1 >conftest.err
14251   rm -f conftest.er1
14252   cat conftest.err >&5
14253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14254   (exit $ac_status); } &&
14255          { ac_try='test -z "$ac_c_werror_flag"
14256                          || test ! -s conftest.err'
14257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14258   (eval $ac_try) 2>&5
14259   ac_status=$?
14260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14261   (exit $ac_status); }; } &&
14262          { ac_try='test -s conftest.$ac_objext'
14263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14264   (eval $ac_try) 2>&5
14265   ac_status=$?
14266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14267   (exit $ac_status); }; }; then
14268   ac_hi=$ac_mid; break
14269 else
14270   echo "$as_me: failed program was:" >&5
14271 sed 's/^/| /' conftest.$ac_ext >&5
14272
14273 ac_lo=`expr $ac_mid + 1`
14274                     if test $ac_lo -le $ac_mid; then
14275                       ac_lo= ac_hi=
14276                       break
14277                     fi
14278                     ac_mid=`expr 2 '*' $ac_mid + 1`
14279 fi
14280 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14281   done
14282 else
14283   echo "$as_me: failed program was:" >&5
14284 sed 's/^/| /' conftest.$ac_ext >&5
14285
14286 cat >conftest.$ac_ext <<_ACEOF
14287 /* confdefs.h.  */
14288 _ACEOF
14289 cat confdefs.h >>conftest.$ac_ext
14290 cat >>conftest.$ac_ext <<_ACEOF
14291 /* end confdefs.h.  */
14292 $ac_includes_default
14293 int
14294 main ()
14295 {
14296 static int test_array [1 - 2 * !(((long) (sizeof (time_t))) < 0)];
14297 test_array [0] = 0
14298
14299   ;
14300   return 0;
14301 }
14302 _ACEOF
14303 rm -f conftest.$ac_objext
14304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14305   (eval $ac_compile) 2>conftest.er1
14306   ac_status=$?
14307   grep -v '^ *+' conftest.er1 >conftest.err
14308   rm -f conftest.er1
14309   cat conftest.err >&5
14310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14311   (exit $ac_status); } &&
14312          { ac_try='test -z "$ac_c_werror_flag"
14313                          || test ! -s conftest.err'
14314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14315   (eval $ac_try) 2>&5
14316   ac_status=$?
14317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14318   (exit $ac_status); }; } &&
14319          { ac_try='test -s conftest.$ac_objext'
14320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14321   (eval $ac_try) 2>&5
14322   ac_status=$?
14323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14324   (exit $ac_status); }; }; then
14325   ac_hi=-1 ac_mid=-1
14326   while :; do
14327     cat >conftest.$ac_ext <<_ACEOF
14328 /* confdefs.h.  */
14329 _ACEOF
14330 cat confdefs.h >>conftest.$ac_ext
14331 cat >>conftest.$ac_ext <<_ACEOF
14332 /* end confdefs.h.  */
14333 $ac_includes_default
14334 int
14335 main ()
14336 {
14337 static int test_array [1 - 2 * !(((long) (sizeof (time_t))) >= $ac_mid)];
14338 test_array [0] = 0
14339
14340   ;
14341   return 0;
14342 }
14343 _ACEOF
14344 rm -f conftest.$ac_objext
14345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14346   (eval $ac_compile) 2>conftest.er1
14347   ac_status=$?
14348   grep -v '^ *+' conftest.er1 >conftest.err
14349   rm -f conftest.er1
14350   cat conftest.err >&5
14351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14352   (exit $ac_status); } &&
14353          { ac_try='test -z "$ac_c_werror_flag"
14354                          || test ! -s conftest.err'
14355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14356   (eval $ac_try) 2>&5
14357   ac_status=$?
14358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14359   (exit $ac_status); }; } &&
14360          { ac_try='test -s conftest.$ac_objext'
14361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14362   (eval $ac_try) 2>&5
14363   ac_status=$?
14364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14365   (exit $ac_status); }; }; then
14366   ac_lo=$ac_mid; break
14367 else
14368   echo "$as_me: failed program was:" >&5
14369 sed 's/^/| /' conftest.$ac_ext >&5
14370
14371 ac_hi=`expr '(' $ac_mid ')' - 1`
14372                        if test $ac_mid -le $ac_hi; then
14373                          ac_lo= ac_hi=
14374                          break
14375                        fi
14376                        ac_mid=`expr 2 '*' $ac_mid`
14377 fi
14378 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14379   done
14380 else
14381   echo "$as_me: failed program was:" >&5
14382 sed 's/^/| /' conftest.$ac_ext >&5
14383
14384 ac_lo= ac_hi=
14385 fi
14386 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14387 fi
14388 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14389 # Binary search between lo and hi bounds.
14390 while test "x$ac_lo" != "x$ac_hi"; do
14391   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14392   cat >conftest.$ac_ext <<_ACEOF
14393 /* confdefs.h.  */
14394 _ACEOF
14395 cat confdefs.h >>conftest.$ac_ext
14396 cat >>conftest.$ac_ext <<_ACEOF
14397 /* end confdefs.h.  */
14398 $ac_includes_default
14399 int
14400 main ()
14401 {
14402 static int test_array [1 - 2 * !(((long) (sizeof (time_t))) <= $ac_mid)];
14403 test_array [0] = 0
14404
14405   ;
14406   return 0;
14407 }
14408 _ACEOF
14409 rm -f conftest.$ac_objext
14410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14411   (eval $ac_compile) 2>conftest.er1
14412   ac_status=$?
14413   grep -v '^ *+' conftest.er1 >conftest.err
14414   rm -f conftest.er1
14415   cat conftest.err >&5
14416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14417   (exit $ac_status); } &&
14418          { ac_try='test -z "$ac_c_werror_flag"
14419                          || test ! -s conftest.err'
14420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14421   (eval $ac_try) 2>&5
14422   ac_status=$?
14423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14424   (exit $ac_status); }; } &&
14425          { ac_try='test -s conftest.$ac_objext'
14426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14427   (eval $ac_try) 2>&5
14428   ac_status=$?
14429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14430   (exit $ac_status); }; }; then
14431   ac_hi=$ac_mid
14432 else
14433   echo "$as_me: failed program was:" >&5
14434 sed 's/^/| /' conftest.$ac_ext >&5
14435
14436 ac_lo=`expr '(' $ac_mid ')' + 1`
14437 fi
14438 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14439 done
14440 case $ac_lo in
14441 ?*) ac_cv_sizeof_time_t=$ac_lo;;
14442 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (time_t), 77
14443 See \`config.log' for more details." >&5
14444 echo "$as_me: error: cannot compute sizeof (time_t), 77
14445 See \`config.log' for more details." >&2;}
14446    { (exit 1); exit 1; }; } ;;
14447 esac
14448 else
14449   if test "$cross_compiling" = yes; then
14450   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14451 See \`config.log' for more details." >&5
14452 echo "$as_me: error: cannot run test program while cross compiling
14453 See \`config.log' for more details." >&2;}
14454    { (exit 1); exit 1; }; }
14455 else
14456   cat >conftest.$ac_ext <<_ACEOF
14457 /* confdefs.h.  */
14458 _ACEOF
14459 cat confdefs.h >>conftest.$ac_ext
14460 cat >>conftest.$ac_ext <<_ACEOF
14461 /* end confdefs.h.  */
14462 $ac_includes_default
14463 long longval () { return (long) (sizeof (time_t)); }
14464 unsigned long ulongval () { return (long) (sizeof (time_t)); }
14465 #include <stdio.h>
14466 #include <stdlib.h>
14467 int
14468 main ()
14469 {
14470
14471   FILE *f = fopen ("conftest.val", "w");
14472   if (! f)
14473     exit (1);
14474   if (((long) (sizeof (time_t))) < 0)
14475     {
14476       long i = longval ();
14477       if (i != ((long) (sizeof (time_t))))
14478         exit (1);
14479       fprintf (f, "%ld\n", i);
14480     }
14481   else
14482     {
14483       unsigned long i = ulongval ();
14484       if (i != ((long) (sizeof (time_t))))
14485         exit (1);
14486       fprintf (f, "%lu\n", i);
14487     }
14488   exit (ferror (f) || fclose (f) != 0);
14489
14490   ;
14491   return 0;
14492 }
14493 _ACEOF
14494 rm -f conftest$ac_exeext
14495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14496   (eval $ac_link) 2>&5
14497   ac_status=$?
14498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14499   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14501   (eval $ac_try) 2>&5
14502   ac_status=$?
14503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14504   (exit $ac_status); }; }; then
14505   ac_cv_sizeof_time_t=`cat conftest.val`
14506 else
14507   echo "$as_me: program exited with status $ac_status" >&5
14508 echo "$as_me: failed program was:" >&5
14509 sed 's/^/| /' conftest.$ac_ext >&5
14510
14511 ( exit $ac_status )
14512 { { echo "$as_me:$LINENO: error: cannot compute sizeof (time_t), 77
14513 See \`config.log' for more details." >&5
14514 echo "$as_me: error: cannot compute sizeof (time_t), 77
14515 See \`config.log' for more details." >&2;}
14516    { (exit 1); exit 1; }; }
14517 fi
14518 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14519 fi
14520 fi
14521 rm -f conftest.val
14522 else
14523   ac_cv_sizeof_time_t=0
14524 fi
14525 fi
14526 echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
14527 echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6
14528 cat >>confdefs.h <<_ACEOF
14529 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
14530 _ACEOF
14531
14532
14533
14534 # Check whether --enable-shared or --disable-shared was given.
14535 if test "${enable_shared+set}" = set; then
14536   enableval="$enable_shared"
14537   p=${PACKAGE-default}
14538     case $enableval in
14539     yes) enable_shared=yes ;;
14540     no) enable_shared=no ;;
14541     *)
14542       enable_shared=no
14543       # Look at the argument we got.  We use all the common list separators.
14544       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14545       for pkg in $enableval; do
14546         IFS="$lt_save_ifs"
14547         if test "X$pkg" = "X$p"; then
14548           enable_shared=yes
14549         fi
14550       done
14551       IFS="$lt_save_ifs"
14552       ;;
14553     esac
14554 else
14555   enable_shared=yes
14556 fi;
14557
14558 # Check whether --enable-static or --disable-static was given.
14559 if test "${enable_static+set}" = set; then
14560   enableval="$enable_static"
14561   p=${PACKAGE-default}
14562     case $enableval in
14563     yes) enable_static=yes ;;
14564     no) enable_static=no ;;
14565     *)
14566      enable_static=no
14567       # Look at the argument we got.  We use all the common list separators.
14568       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14569       for pkg in $enableval; do
14570         IFS="$lt_save_ifs"
14571         if test "X$pkg" = "X$p"; then
14572           enable_static=yes
14573         fi
14574       done
14575       IFS="$lt_save_ifs"
14576       ;;
14577     esac
14578 else
14579   enable_static=yes
14580 fi;
14581
14582 # Check whether --enable-fast-install or --disable-fast-install was given.
14583 if test "${enable_fast_install+set}" = set; then
14584   enableval="$enable_fast_install"
14585   p=${PACKAGE-default}
14586     case $enableval in
14587     yes) enable_fast_install=yes ;;
14588     no) enable_fast_install=no ;;
14589     *)
14590       enable_fast_install=no
14591       # Look at the argument we got.  We use all the common list separators.
14592       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14593       for pkg in $enableval; do
14594         IFS="$lt_save_ifs"
14595         if test "X$pkg" = "X$p"; then
14596           enable_fast_install=yes
14597         fi
14598       done
14599       IFS="$lt_save_ifs"
14600       ;;
14601     esac
14602 else
14603   enable_fast_install=yes
14604 fi;
14605
14606 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
14607 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
14608 if test "${lt_cv_path_SED+set}" = set; then
14609   echo $ECHO_N "(cached) $ECHO_C" >&6
14610 else
14611   # Loop through the user's path and test for sed and gsed.
14612 # Then use that list of sed's as ones to test for truncation.
14613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14614 for as_dir in $PATH
14615 do
14616   IFS=$as_save_IFS
14617   test -z "$as_dir" && as_dir=.
14618   for lt_ac_prog in sed gsed; do
14619     for ac_exec_ext in '' $ac_executable_extensions; do
14620       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
14621         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
14622       fi
14623     done
14624   done
14625 done
14626 lt_ac_max=0
14627 lt_ac_count=0
14628 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
14629 # along with /bin/sed that truncates output.
14630 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
14631   test ! -f $lt_ac_sed && continue
14632   cat /dev/null > conftest.in
14633   lt_ac_count=0
14634   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
14635   # Check for GNU sed and select it if it is found.
14636   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
14637     lt_cv_path_SED=$lt_ac_sed
14638     break
14639   fi
14640   while true; do
14641     cat conftest.in conftest.in >conftest.tmp
14642     mv conftest.tmp conftest.in
14643     cp conftest.in conftest.nl
14644     echo >>conftest.nl
14645     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
14646     cmp -s conftest.out conftest.nl || break
14647     # 10000 chars as input seems more than enough
14648     test $lt_ac_count -gt 10 && break
14649     lt_ac_count=`expr $lt_ac_count + 1`
14650     if test $lt_ac_count -gt $lt_ac_max; then
14651       lt_ac_max=$lt_ac_count
14652       lt_cv_path_SED=$lt_ac_sed
14653     fi
14654   done
14655 done
14656
14657 fi
14658
14659 SED=$lt_cv_path_SED
14660 echo "$as_me:$LINENO: result: $SED" >&5
14661 echo "${ECHO_T}$SED" >&6
14662
14663
14664 # Check whether --with-gnu-ld or --without-gnu-ld was given.
14665 if test "${with_gnu_ld+set}" = set; then
14666   withval="$with_gnu_ld"
14667   test "$withval" = no || with_gnu_ld=yes
14668 else
14669   with_gnu_ld=no
14670 fi;
14671 ac_prog=ld
14672 if test "$GCC" = yes; then
14673   # Check if gcc -print-prog-name=ld gives a path.
14674   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
14675 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
14676   case $host in
14677   *-*-mingw*)
14678     # gcc leaves a trailing carriage return which upsets mingw
14679     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14680   *)
14681     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14682   esac
14683   case $ac_prog in
14684     # Accept absolute paths.
14685     [\\/]* | ?:[\\/]*)
14686       re_direlt='/[^/][^/]*/\.\./'
14687       # Canonicalize the pathname of ld
14688       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
14689       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
14690         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
14691       done
14692       test -z "$LD" && LD="$ac_prog"
14693       ;;
14694   "")
14695     # If it fails, then pretend we aren't using GCC.
14696     ac_prog=ld
14697     ;;
14698   *)
14699     # If it is relative, then search for the first ld in PATH.
14700     with_gnu_ld=unknown
14701     ;;
14702   esac
14703 elif test "$with_gnu_ld" = yes; then
14704   echo "$as_me:$LINENO: checking for GNU ld" >&5
14705 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
14706 else
14707   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
14708 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
14709 fi
14710 if test "${lt_cv_path_LD+set}" = set; then
14711   echo $ECHO_N "(cached) $ECHO_C" >&6
14712 else
14713   if test -z "$LD"; then
14714   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14715   for ac_dir in $PATH; do
14716     IFS="$lt_save_ifs"
14717     test -z "$ac_dir" && ac_dir=.
14718     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14719       lt_cv_path_LD="$ac_dir/$ac_prog"
14720       # Check to see if the program is GNU ld.  I'd rather use --version,
14721       # but apparently some variants of GNU ld only accept -v.
14722       # Break only if it was the GNU/non-GNU ld that we prefer.
14723       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14724       *GNU* | *'with BFD'*)
14725         test "$with_gnu_ld" != no && break
14726         ;;
14727       *)
14728         test "$with_gnu_ld" != yes && break
14729         ;;
14730       esac
14731     fi
14732   done
14733   IFS="$lt_save_ifs"
14734 else
14735   lt_cv_path_LD="$LD" # Let the user override the test with a path.
14736 fi
14737 fi
14738
14739 LD="$lt_cv_path_LD"
14740 if test -n "$LD"; then
14741   echo "$as_me:$LINENO: result: $LD" >&5
14742 echo "${ECHO_T}$LD" >&6
14743 else
14744   echo "$as_me:$LINENO: result: no" >&5
14745 echo "${ECHO_T}no" >&6
14746 fi
14747 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
14748 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
14749    { (exit 1); exit 1; }; }
14750 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
14751 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
14752 if test "${lt_cv_prog_gnu_ld+set}" = set; then
14753   echo $ECHO_N "(cached) $ECHO_C" >&6
14754 else
14755   # I'd rather use --version here, but apparently some GNU lds only accept -v.
14756 case `$LD -v 2>&1 </dev/null` in
14757 *GNU* | *'with BFD'*)
14758   lt_cv_prog_gnu_ld=yes
14759   ;;
14760 *)
14761   lt_cv_prog_gnu_ld=no
14762   ;;
14763 esac
14764 fi
14765 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
14766 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
14767 with_gnu_ld=$lt_cv_prog_gnu_ld
14768
14769
14770 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
14771 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
14772 if test "${lt_cv_ld_reload_flag+set}" = set; then
14773   echo $ECHO_N "(cached) $ECHO_C" >&6
14774 else
14775   lt_cv_ld_reload_flag='-r'
14776 fi
14777 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
14778 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
14779 reload_flag=$lt_cv_ld_reload_flag
14780 case $reload_flag in
14781 "" | " "*) ;;
14782 *) reload_flag=" $reload_flag" ;;
14783 esac
14784 reload_cmds='$LD$reload_flag -o $output$reload_objs'
14785 case $host_os in
14786   darwin*)
14787     if test "$GCC" = yes; then
14788       reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
14789     else
14790       reload_cmds='$LD$reload_flag -o $output$reload_objs'
14791     fi
14792     ;;
14793 esac
14794
14795 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
14796 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
14797 if test "${lt_cv_path_NM+set}" = set; then
14798   echo $ECHO_N "(cached) $ECHO_C" >&6
14799 else
14800   if test -n "$NM"; then
14801   # Let the user override the test.
14802   lt_cv_path_NM="$NM"
14803 else
14804   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14805   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
14806     IFS="$lt_save_ifs"
14807     test -z "$ac_dir" && ac_dir=.
14808     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
14809     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
14810       # Check to see if the nm accepts a BSD-compat flag.
14811       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
14812       #   nm: unknown option "B" ignored
14813       # Tru64's nm complains that /dev/null is an invalid object file
14814       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
14815       */dev/null* | *'Invalid file or object type'*)
14816         lt_cv_path_NM="$tmp_nm -B"
14817         break
14818         ;;
14819       *)
14820         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
14821         */dev/null*)
14822           lt_cv_path_NM="$tmp_nm -p"
14823           break
14824           ;;
14825         *)
14826           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
14827           continue # so that we can try to find one that supports BSD flags
14828           ;;
14829         esac
14830       esac
14831     fi
14832   done
14833   IFS="$lt_save_ifs"
14834   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
14835 fi
14836 fi
14837 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
14838 echo "${ECHO_T}$lt_cv_path_NM" >&6
14839 NM="$lt_cv_path_NM"
14840
14841 echo "$as_me:$LINENO: checking whether ln -s works" >&5
14842 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
14843 LN_S=$as_ln_s
14844 if test "$LN_S" = "ln -s"; then
14845   echo "$as_me:$LINENO: result: yes" >&5
14846 echo "${ECHO_T}yes" >&6
14847 else
14848   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
14849 echo "${ECHO_T}no, using $LN_S" >&6
14850 fi
14851
14852 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
14853 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
14854 if test "${lt_cv_deplibs_check_method+set}" = set; then
14855   echo $ECHO_N "(cached) $ECHO_C" >&6
14856 else
14857   lt_cv_file_magic_cmd='$MAGIC_CMD'
14858 lt_cv_file_magic_test_file=
14859 lt_cv_deplibs_check_method='unknown'
14860 # Need to set the preceding variable on all platforms that support
14861 # interlibrary dependencies.
14862 # 'none' -- dependencies not supported.
14863 # `unknown' -- same as none, but documents that we really don't know.
14864 # 'pass_all' -- all dependencies passed with no checks.
14865 # 'test_compile' -- check by making test program.
14866 # 'file_magic [[regex]]' -- check by looking for files in library path
14867 # which responds to the $file_magic_cmd with a given extended regex.
14868 # If you have `file' or equivalent on your system and you're not sure
14869 # whether `pass_all' will *always* work, you probably want this one.
14870
14871 case $host_os in
14872 aix4* | aix5*)
14873   lt_cv_deplibs_check_method=pass_all
14874   ;;
14875
14876 beos*)
14877   lt_cv_deplibs_check_method=pass_all
14878   ;;
14879
14880 bsdi[45]*)
14881   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
14882   lt_cv_file_magic_cmd='/usr/bin/file -L'
14883   lt_cv_file_magic_test_file=/shlib/libc.so
14884   ;;
14885
14886 cygwin*)
14887   # func_win32_libid is a shell function defined in ltmain.sh
14888   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
14889   lt_cv_file_magic_cmd='func_win32_libid'
14890   ;;
14891
14892 mingw* | pw32*)
14893   # Base MSYS/MinGW do not provide the 'file' command needed by
14894   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
14895   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
14896   lt_cv_file_magic_cmd='$OBJDUMP -f'
14897   ;;
14898
14899 darwin* | rhapsody*)
14900   lt_cv_deplibs_check_method=pass_all
14901   ;;
14902
14903 freebsd* | kfreebsd*-gnu | dragonfly*)
14904   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
14905     case $host_cpu in
14906     i*86 )
14907       # Not sure whether the presence of OpenBSD here was a mistake.
14908       # Let's accept both of them until this is cleared up.
14909       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
14910       lt_cv_file_magic_cmd=/usr/bin/file
14911       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
14912       ;;
14913     esac
14914   else
14915     lt_cv_deplibs_check_method=pass_all
14916   fi
14917   ;;
14918
14919 gnu*)
14920   lt_cv_deplibs_check_method=pass_all
14921   ;;
14922
14923 hpux10.20* | hpux11*)
14924   lt_cv_file_magic_cmd=/usr/bin/file
14925   case $host_cpu in
14926   ia64*)
14927     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
14928     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
14929     ;;
14930   hppa*64*)
14931     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]'
14932     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
14933     ;;
14934   *)
14935     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
14936     lt_cv_file_magic_test_file=/usr/lib/libc.sl
14937     ;;
14938   esac
14939   ;;
14940
14941 irix5* | irix6* | nonstopux*)
14942   case $LD in
14943   *-32|*"-32 ") libmagic=32-bit;;
14944   *-n32|*"-n32 ") libmagic=N32;;
14945   *-64|*"-64 ") libmagic=64-bit;;
14946   *) libmagic=never-match;;
14947   esac
14948   lt_cv_deplibs_check_method=pass_all
14949   ;;
14950
14951 # This must be Linux ELF.
14952 linux*)
14953   lt_cv_deplibs_check_method=pass_all
14954   ;;
14955
14956 netbsd*)
14957   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
14958     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
14959   else
14960     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
14961   fi
14962   ;;
14963
14964 newos6*)
14965   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
14966   lt_cv_file_magic_cmd=/usr/bin/file
14967   lt_cv_file_magic_test_file=/usr/lib/libnls.so
14968   ;;
14969
14970 nto-qnx*)
14971   lt_cv_deplibs_check_method=unknown
14972   ;;
14973
14974 openbsd*)
14975   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14976     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
14977   else
14978     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
14979   fi
14980   ;;
14981
14982 osf3* | osf4* | osf5*)
14983   lt_cv_deplibs_check_method=pass_all
14984   ;;
14985
14986 sco3.2v5*)
14987   lt_cv_deplibs_check_method=pass_all
14988   ;;
14989
14990 solaris*)
14991   lt_cv_deplibs_check_method=pass_all
14992   ;;
14993
14994 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14995   case $host_vendor in
14996   motorola)
14997     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]'
14998     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
14999     ;;
15000   ncr)
15001     lt_cv_deplibs_check_method=pass_all
15002     ;;
15003   sequent)
15004     lt_cv_file_magic_cmd='/bin/file'
15005     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
15006     ;;
15007   sni)
15008     lt_cv_file_magic_cmd='/bin/file'
15009     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
15010     lt_cv_file_magic_test_file=/lib/libc.so
15011     ;;
15012   siemens)
15013     lt_cv_deplibs_check_method=pass_all
15014     ;;
15015   esac
15016   ;;
15017
15018 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
15019   lt_cv_deplibs_check_method=pass_all
15020   ;;
15021 esac
15022
15023 fi
15024 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
15025 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
15026 file_magic_cmd=$lt_cv_file_magic_cmd
15027 deplibs_check_method=$lt_cv_deplibs_check_method
15028 test -z "$deplibs_check_method" && deplibs_check_method=unknown
15029
15030
15031 # If no C compiler was specified, use CC.
15032 LTCC=${LTCC-"$CC"}
15033
15034 # Allow CC to be a program name with arguments.
15035 compiler=$CC
15036
15037 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
15038 if test "${enable_libtool_lock+set}" = set; then
15039   enableval="$enable_libtool_lock"
15040
15041 fi;
15042 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
15043
15044 # Some flags need to be propagated to the compiler or linker for good
15045 # libtool support.
15046 case $host in
15047 ia64-*-hpux*)
15048   # Find out which ABI we are using.
15049   echo 'int i;' > conftest.$ac_ext
15050   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15051   (eval $ac_compile) 2>&5
15052   ac_status=$?
15053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15054   (exit $ac_status); }; then
15055     case `/usr/bin/file conftest.$ac_objext` in
15056     *ELF-32*)
15057       HPUX_IA64_MODE="32"
15058       ;;
15059     *ELF-64*)
15060       HPUX_IA64_MODE="64"
15061       ;;
15062     esac
15063   fi
15064   rm -rf conftest*
15065   ;;
15066 *-*-irix6*)
15067   # Find out which ABI we are using.
15068   echo '#line 15068 "configure"' > conftest.$ac_ext
15069   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15070   (eval $ac_compile) 2>&5
15071   ac_status=$?
15072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15073   (exit $ac_status); }; then
15074    if test "$lt_cv_prog_gnu_ld" = yes; then
15075     case `/usr/bin/file conftest.$ac_objext` in
15076     *32-bit*)
15077       LD="${LD-ld} -melf32bsmip"
15078       ;;
15079     *N32*)
15080       LD="${LD-ld} -melf32bmipn32"
15081       ;;
15082     *64-bit*)
15083       LD="${LD-ld} -melf64bmip"
15084       ;;
15085     esac
15086    else
15087     case `/usr/bin/file conftest.$ac_objext` in
15088     *32-bit*)
15089       LD="${LD-ld} -32"
15090       ;;
15091     *N32*)
15092       LD="${LD-ld} -n32"
15093       ;;
15094     *64-bit*)
15095       LD="${LD-ld} -64"
15096       ;;
15097     esac
15098    fi
15099   fi
15100   rm -rf conftest*
15101   ;;
15102
15103 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
15104   # Find out which ABI we are using.
15105   echo 'int i;' > conftest.$ac_ext
15106   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15107   (eval $ac_compile) 2>&5
15108   ac_status=$?
15109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15110   (exit $ac_status); }; then
15111     case `/usr/bin/file conftest.o` in
15112     *32-bit*)
15113       case $host in
15114         x86_64-*linux*)
15115           LD="${LD-ld} -m elf_i386"
15116           ;;
15117         ppc64-*linux*|powerpc64-*linux*)
15118           LD="${LD-ld} -m elf32ppclinux"
15119           ;;
15120         s390x-*linux*)
15121           LD="${LD-ld} -m elf_s390"
15122           ;;
15123         sparc64-*linux*)
15124           LD="${LD-ld} -m elf32_sparc"
15125           ;;
15126       esac
15127       ;;
15128     *64-bit*)
15129       case $host in
15130         x86_64-*linux*)
15131           LD="${LD-ld} -m elf_x86_64"
15132           ;;
15133         ppc*-*linux*|powerpc*-*linux*)
15134           LD="${LD-ld} -m elf64ppc"
15135           ;;
15136         s390*-*linux*)
15137           LD="${LD-ld} -m elf64_s390"
15138           ;;
15139         sparc*-*linux*)
15140           LD="${LD-ld} -m elf64_sparc"
15141           ;;
15142       esac
15143       ;;
15144     esac
15145   fi
15146   rm -rf conftest*
15147   ;;
15148
15149 *-*-sco3.2v5*)
15150   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
15151   SAVE_CFLAGS="$CFLAGS"
15152   CFLAGS="$CFLAGS -belf"
15153   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
15154 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
15155 if test "${lt_cv_cc_needs_belf+set}" = set; then
15156   echo $ECHO_N "(cached) $ECHO_C" >&6
15157 else
15158   ac_ext=c
15159 ac_cpp='$CPP $CPPFLAGS'
15160 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15161 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15162 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15163
15164      cat >conftest.$ac_ext <<_ACEOF
15165 /* confdefs.h.  */
15166 _ACEOF
15167 cat confdefs.h >>conftest.$ac_ext
15168 cat >>conftest.$ac_ext <<_ACEOF
15169 /* end confdefs.h.  */
15170
15171 int
15172 main ()
15173 {
15174
15175   ;
15176   return 0;
15177 }
15178 _ACEOF
15179 rm -f conftest.$ac_objext conftest$ac_exeext
15180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15181   (eval $ac_link) 2>conftest.er1
15182   ac_status=$?
15183   grep -v '^ *+' conftest.er1 >conftest.err
15184   rm -f conftest.er1
15185   cat conftest.err >&5
15186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15187   (exit $ac_status); } &&
15188          { ac_try='test -z "$ac_c_werror_flag"
15189                          || test ! -s conftest.err'
15190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15191   (eval $ac_try) 2>&5
15192   ac_status=$?
15193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15194   (exit $ac_status); }; } &&
15195          { ac_try='test -s conftest$ac_exeext'
15196   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15197   (eval $ac_try) 2>&5
15198   ac_status=$?
15199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15200   (exit $ac_status); }; }; then
15201   lt_cv_cc_needs_belf=yes
15202 else
15203   echo "$as_me: failed program was:" >&5
15204 sed 's/^/| /' conftest.$ac_ext >&5
15205
15206 lt_cv_cc_needs_belf=no
15207 fi
15208 rm -f conftest.err conftest.$ac_objext \
15209       conftest$ac_exeext conftest.$ac_ext
15210      ac_ext=c
15211 ac_cpp='$CPP $CPPFLAGS'
15212 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15213 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15214 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15215
15216 fi
15217 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
15218 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
15219   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
15220     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
15221     CFLAGS="$SAVE_CFLAGS"
15222   fi
15223   ;;
15224
15225 esac
15226
15227 need_locks="$enable_libtool_lock"
15228
15229
15230
15231 for ac_header in dlfcn.h
15232 do
15233 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15234 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15235   echo "$as_me:$LINENO: checking for $ac_header" >&5
15236 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15237 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15238   echo $ECHO_N "(cached) $ECHO_C" >&6
15239 fi
15240 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15241 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15242 else
15243   # Is the header compilable?
15244 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15245 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15246 cat >conftest.$ac_ext <<_ACEOF
15247 /* confdefs.h.  */
15248 _ACEOF
15249 cat confdefs.h >>conftest.$ac_ext
15250 cat >>conftest.$ac_ext <<_ACEOF
15251 /* end confdefs.h.  */
15252 $ac_includes_default
15253 #include <$ac_header>
15254 _ACEOF
15255 rm -f conftest.$ac_objext
15256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15257   (eval $ac_compile) 2>conftest.er1
15258   ac_status=$?
15259   grep -v '^ *+' conftest.er1 >conftest.err
15260   rm -f conftest.er1
15261   cat conftest.err >&5
15262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15263   (exit $ac_status); } &&
15264          { ac_try='test -z "$ac_c_werror_flag"
15265                          || test ! -s conftest.err'
15266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15267   (eval $ac_try) 2>&5
15268   ac_status=$?
15269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15270   (exit $ac_status); }; } &&
15271          { ac_try='test -s conftest.$ac_objext'
15272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15273   (eval $ac_try) 2>&5
15274   ac_status=$?
15275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15276   (exit $ac_status); }; }; then
15277   ac_header_compiler=yes
15278 else
15279   echo "$as_me: failed program was:" >&5
15280 sed 's/^/| /' conftest.$ac_ext >&5
15281
15282 ac_header_compiler=no
15283 fi
15284 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15285 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15286 echo "${ECHO_T}$ac_header_compiler" >&6
15287
15288 # Is the header present?
15289 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15290 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15291 cat >conftest.$ac_ext <<_ACEOF
15292 /* confdefs.h.  */
15293 _ACEOF
15294 cat confdefs.h >>conftest.$ac_ext
15295 cat >>conftest.$ac_ext <<_ACEOF
15296 /* end confdefs.h.  */
15297 #include <$ac_header>
15298 _ACEOF
15299 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15300   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15301   ac_status=$?
15302   grep -v '^ *+' conftest.er1 >conftest.err
15303   rm -f conftest.er1
15304   cat conftest.err >&5
15305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15306   (exit $ac_status); } >/dev/null; then
15307   if test -s conftest.err; then
15308     ac_cpp_err=$ac_c_preproc_warn_flag
15309     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15310   else
15311     ac_cpp_err=
15312   fi
15313 else
15314   ac_cpp_err=yes
15315 fi
15316 if test -z "$ac_cpp_err"; then
15317   ac_header_preproc=yes
15318 else
15319   echo "$as_me: failed program was:" >&5
15320 sed 's/^/| /' conftest.$ac_ext >&5
15321
15322   ac_header_preproc=no
15323 fi
15324 rm -f conftest.err conftest.$ac_ext
15325 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15326 echo "${ECHO_T}$ac_header_preproc" >&6
15327
15328 # So?  What about this header?
15329 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15330   yes:no: )
15331     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15332 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15333     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15334 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15335     ac_header_preproc=yes
15336     ;;
15337   no:yes:* )
15338     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15339 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15340     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15341 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15342     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15343 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15344     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15345 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15346     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15347 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15348     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15349 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15350     (
15351       cat <<\_ASBOX
15352 ## ------------------------------------------ ##
15353 ## Report this to the AC_PACKAGE_NAME lists.  ##
15354 ## ------------------------------------------ ##
15355 _ASBOX
15356     ) |
15357       sed "s/^/$as_me: WARNING:     /" >&2
15358     ;;
15359 esac
15360 echo "$as_me:$LINENO: checking for $ac_header" >&5
15361 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15362 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15363   echo $ECHO_N "(cached) $ECHO_C" >&6
15364 else
15365   eval "$as_ac_Header=\$ac_header_preproc"
15366 fi
15367 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15368 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15369
15370 fi
15371 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15372   cat >>confdefs.h <<_ACEOF
15373 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15374 _ACEOF
15375
15376 fi
15377
15378 done
15379
15380 ac_ext=cc
15381 ac_cpp='$CXXCPP $CPPFLAGS'
15382 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15383 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15384 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15385 if test -n "$ac_tool_prefix"; then
15386   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
15387   do
15388     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
15389 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
15390 echo "$as_me:$LINENO: checking for $ac_word" >&5
15391 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15392 if test "${ac_cv_prog_CXX+set}" = set; then
15393   echo $ECHO_N "(cached) $ECHO_C" >&6
15394 else
15395   if test -n "$CXX"; then
15396   ac_cv_prog_CXX="$CXX" # Let the user override the test.
15397 else
15398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15399 for as_dir in $PATH
15400 do
15401   IFS=$as_save_IFS
15402   test -z "$as_dir" && as_dir=.
15403   for ac_exec_ext in '' $ac_executable_extensions; do
15404   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15405     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
15406     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15407     break 2
15408   fi
15409 done
15410 done
15411
15412 fi
15413 fi
15414 CXX=$ac_cv_prog_CXX
15415 if test -n "$CXX"; then
15416   echo "$as_me:$LINENO: result: $CXX" >&5
15417 echo "${ECHO_T}$CXX" >&6
15418 else
15419   echo "$as_me:$LINENO: result: no" >&5
15420 echo "${ECHO_T}no" >&6
15421 fi
15422
15423     test -n "$CXX" && break
15424   done
15425 fi
15426 if test -z "$CXX"; then
15427   ac_ct_CXX=$CXX
15428   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
15429 do
15430   # Extract the first word of "$ac_prog", so it can be a program name with args.
15431 set dummy $ac_prog; ac_word=$2
15432 echo "$as_me:$LINENO: checking for $ac_word" >&5
15433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15434 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
15435   echo $ECHO_N "(cached) $ECHO_C" >&6
15436 else
15437   if test -n "$ac_ct_CXX"; then
15438   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
15439 else
15440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15441 for as_dir in $PATH
15442 do
15443   IFS=$as_save_IFS
15444   test -z "$as_dir" && as_dir=.
15445   for ac_exec_ext in '' $ac_executable_extensions; do
15446   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15447     ac_cv_prog_ac_ct_CXX="$ac_prog"
15448     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15449     break 2
15450   fi
15451 done
15452 done
15453
15454 fi
15455 fi
15456 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
15457 if test -n "$ac_ct_CXX"; then
15458   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
15459 echo "${ECHO_T}$ac_ct_CXX" >&6
15460 else
15461   echo "$as_me:$LINENO: result: no" >&5
15462 echo "${ECHO_T}no" >&6
15463 fi
15464
15465   test -n "$ac_ct_CXX" && break
15466 done
15467 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
15468
15469   CXX=$ac_ct_CXX
15470 fi
15471
15472
15473 # Provide some information about the compiler.
15474 echo "$as_me:$LINENO:" \
15475      "checking for C++ compiler version" >&5
15476 ac_compiler=`set X $ac_compile; echo $2`
15477 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
15478   (eval $ac_compiler --version </dev/null >&5) 2>&5
15479   ac_status=$?
15480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15481   (exit $ac_status); }
15482 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
15483   (eval $ac_compiler -v </dev/null >&5) 2>&5
15484   ac_status=$?
15485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15486   (exit $ac_status); }
15487 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
15488   (eval $ac_compiler -V </dev/null >&5) 2>&5
15489   ac_status=$?
15490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15491   (exit $ac_status); }
15492
15493 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
15494 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
15495 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
15496   echo $ECHO_N "(cached) $ECHO_C" >&6
15497 else
15498   cat >conftest.$ac_ext <<_ACEOF
15499 /* confdefs.h.  */
15500 _ACEOF
15501 cat confdefs.h >>conftest.$ac_ext
15502 cat >>conftest.$ac_ext <<_ACEOF
15503 /* end confdefs.h.  */
15504
15505 int
15506 main ()
15507 {
15508 #ifndef __GNUC__
15509        choke me
15510 #endif
15511
15512   ;
15513   return 0;
15514 }
15515 _ACEOF
15516 rm -f conftest.$ac_objext
15517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15518   (eval $ac_compile) 2>conftest.er1
15519   ac_status=$?
15520   grep -v '^ *+' conftest.er1 >conftest.err
15521   rm -f conftest.er1
15522   cat conftest.err >&5
15523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15524   (exit $ac_status); } &&
15525          { ac_try='test -z "$ac_cxx_werror_flag"
15526                          || test ! -s conftest.err'
15527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15528   (eval $ac_try) 2>&5
15529   ac_status=$?
15530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15531   (exit $ac_status); }; } &&
15532          { ac_try='test -s conftest.$ac_objext'
15533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15534   (eval $ac_try) 2>&5
15535   ac_status=$?
15536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15537   (exit $ac_status); }; }; then
15538   ac_compiler_gnu=yes
15539 else
15540   echo "$as_me: failed program was:" >&5
15541 sed 's/^/| /' conftest.$ac_ext >&5
15542
15543 ac_compiler_gnu=no
15544 fi
15545 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15546 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
15547
15548 fi
15549 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
15550 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
15551 GXX=`test $ac_compiler_gnu = yes && echo yes`
15552 ac_test_CXXFLAGS=${CXXFLAGS+set}
15553 ac_save_CXXFLAGS=$CXXFLAGS
15554 CXXFLAGS="-g"
15555 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
15556 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
15557 if test "${ac_cv_prog_cxx_g+set}" = set; then
15558   echo $ECHO_N "(cached) $ECHO_C" >&6
15559 else
15560   cat >conftest.$ac_ext <<_ACEOF
15561 /* confdefs.h.  */
15562 _ACEOF
15563 cat confdefs.h >>conftest.$ac_ext
15564 cat >>conftest.$ac_ext <<_ACEOF
15565 /* end confdefs.h.  */
15566
15567 int
15568 main ()
15569 {
15570
15571   ;
15572   return 0;
15573 }
15574 _ACEOF
15575 rm -f conftest.$ac_objext
15576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15577   (eval $ac_compile) 2>conftest.er1
15578   ac_status=$?
15579   grep -v '^ *+' conftest.er1 >conftest.err
15580   rm -f conftest.er1
15581   cat conftest.err >&5
15582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15583   (exit $ac_status); } &&
15584          { ac_try='test -z "$ac_cxx_werror_flag"
15585                          || test ! -s conftest.err'
15586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15587   (eval $ac_try) 2>&5
15588   ac_status=$?
15589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15590   (exit $ac_status); }; } &&
15591          { ac_try='test -s conftest.$ac_objext'
15592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15593   (eval $ac_try) 2>&5
15594   ac_status=$?
15595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15596   (exit $ac_status); }; }; then
15597   ac_cv_prog_cxx_g=yes
15598 else
15599   echo "$as_me: failed program was:" >&5
15600 sed 's/^/| /' conftest.$ac_ext >&5
15601
15602 ac_cv_prog_cxx_g=no
15603 fi
15604 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15605 fi
15606 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
15607 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
15608 if test "$ac_test_CXXFLAGS" = set; then
15609   CXXFLAGS=$ac_save_CXXFLAGS
15610 elif test $ac_cv_prog_cxx_g = yes; then
15611   if test "$GXX" = yes; then
15612     CXXFLAGS="-g -O2"
15613   else
15614     CXXFLAGS="-g"
15615   fi
15616 else
15617   if test "$GXX" = yes; then
15618     CXXFLAGS="-O2"
15619   else
15620     CXXFLAGS=
15621   fi
15622 fi
15623 for ac_declaration in \
15624    '' \
15625    'extern "C" void std::exit (int) throw (); using std::exit;' \
15626    'extern "C" void std::exit (int); using std::exit;' \
15627    'extern "C" void exit (int) throw ();' \
15628    'extern "C" void exit (int);' \
15629    'void exit (int);'
15630 do
15631   cat >conftest.$ac_ext <<_ACEOF
15632 /* confdefs.h.  */
15633 _ACEOF
15634 cat confdefs.h >>conftest.$ac_ext
15635 cat >>conftest.$ac_ext <<_ACEOF
15636 /* end confdefs.h.  */
15637 $ac_declaration
15638 #include <stdlib.h>
15639 int
15640 main ()
15641 {
15642 exit (42);
15643   ;
15644   return 0;
15645 }
15646 _ACEOF
15647 rm -f conftest.$ac_objext
15648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15649   (eval $ac_compile) 2>conftest.er1
15650   ac_status=$?
15651   grep -v '^ *+' conftest.er1 >conftest.err
15652   rm -f conftest.er1
15653   cat conftest.err >&5
15654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15655   (exit $ac_status); } &&
15656          { ac_try='test -z "$ac_cxx_werror_flag"
15657                          || test ! -s conftest.err'
15658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15659   (eval $ac_try) 2>&5
15660   ac_status=$?
15661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15662   (exit $ac_status); }; } &&
15663          { ac_try='test -s conftest.$ac_objext'
15664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15665   (eval $ac_try) 2>&5
15666   ac_status=$?
15667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15668   (exit $ac_status); }; }; then
15669   :
15670 else
15671   echo "$as_me: failed program was:" >&5
15672 sed 's/^/| /' conftest.$ac_ext >&5
15673
15674 continue
15675 fi
15676 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15677   cat >conftest.$ac_ext <<_ACEOF
15678 /* confdefs.h.  */
15679 _ACEOF
15680 cat confdefs.h >>conftest.$ac_ext
15681 cat >>conftest.$ac_ext <<_ACEOF
15682 /* end confdefs.h.  */
15683 $ac_declaration
15684 int
15685 main ()
15686 {
15687 exit (42);
15688   ;
15689   return 0;
15690 }
15691 _ACEOF
15692 rm -f conftest.$ac_objext
15693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15694   (eval $ac_compile) 2>conftest.er1
15695   ac_status=$?
15696   grep -v '^ *+' conftest.er1 >conftest.err
15697   rm -f conftest.er1
15698   cat conftest.err >&5
15699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15700   (exit $ac_status); } &&
15701          { ac_try='test -z "$ac_cxx_werror_flag"
15702                          || test ! -s conftest.err'
15703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15704   (eval $ac_try) 2>&5
15705   ac_status=$?
15706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15707   (exit $ac_status); }; } &&
15708          { ac_try='test -s conftest.$ac_objext'
15709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15710   (eval $ac_try) 2>&5
15711   ac_status=$?
15712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15713   (exit $ac_status); }; }; then
15714   break
15715 else
15716   echo "$as_me: failed program was:" >&5
15717 sed 's/^/| /' conftest.$ac_ext >&5
15718
15719 fi
15720 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15721 done
15722 rm -f conftest*
15723 if test -n "$ac_declaration"; then
15724   echo '#ifdef __cplusplus' >>confdefs.h
15725   echo $ac_declaration      >>confdefs.h
15726   echo '#endif'             >>confdefs.h
15727 fi
15728
15729 ac_ext=cc
15730 ac_cpp='$CXXCPP $CPPFLAGS'
15731 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15732 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15733 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15734
15735 depcc="$CXX"  am_compiler_list=
15736
15737 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
15738 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
15739 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
15740   echo $ECHO_N "(cached) $ECHO_C" >&6
15741 else
15742   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
15743   # We make a subdir and do the tests there.  Otherwise we can end up
15744   # making bogus files that we don't know about and never remove.  For
15745   # instance it was reported that on HP-UX the gcc test will end up
15746   # making a dummy file named `D' -- because `-MD' means `put the output
15747   # in D'.
15748   mkdir conftest.dir
15749   # Copy depcomp to subdir because otherwise we won't find it if we're
15750   # using a relative directory.
15751   cp "$am_depcomp" conftest.dir
15752   cd conftest.dir
15753   # We will build objects and dependencies in a subdirectory because
15754   # it helps to detect inapplicable dependency modes.  For instance
15755   # both Tru64's cc and ICC support -MD to output dependencies as a
15756   # side effect of compilation, but ICC will put the dependencies in
15757   # the current directory while Tru64 will put them in the object
15758   # directory.
15759   mkdir sub
15760
15761   am_cv_CXX_dependencies_compiler_type=none
15762   if test "$am_compiler_list" = ""; then
15763      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
15764   fi
15765   for depmode in $am_compiler_list; do
15766     # Setup a source with many dependencies, because some compilers
15767     # like to wrap large dependency lists on column 80 (with \), and
15768     # we should not choose a depcomp mode which is confused by this.
15769     #
15770     # We need to recreate these files for each test, as the compiler may
15771     # overwrite some of them when testing with obscure command lines.
15772     # This happens at least with the AIX C compiler.
15773     : > sub/conftest.c
15774     for i in 1 2 3 4 5 6; do
15775       echo '#include "conftst'$i'.h"' >> sub/conftest.c
15776       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
15777       # Solaris 8's {/usr,}/bin/sh.
15778       touch sub/conftst$i.h
15779     done
15780     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
15781
15782     case $depmode in
15783     nosideeffect)
15784       # after this tag, mechanisms are not by side-effect, so they'll
15785       # only be used when explicitly requested
15786       if test "x$enable_dependency_tracking" = xyes; then
15787         continue
15788       else
15789         break
15790       fi
15791       ;;
15792     none) break ;;
15793     esac
15794     # We check with `-c' and `-o' for the sake of the "dashmstdout"
15795     # mode.  It turns out that the SunPro C++ compiler does not properly
15796     # handle `-M -o', and we need to detect this.
15797     if depmode=$depmode \
15798        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
15799        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
15800        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
15801          >/dev/null 2>conftest.err &&
15802        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
15803        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
15804        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
15805       # icc doesn't choke on unknown options, it will just issue warnings
15806       # or remarks (even with -Werror).  So we grep stderr for any message
15807       # that says an option was ignored or not supported.
15808       # When given -MP, icc 7.0 and 7.1 complain thusly:
15809       #   icc: Command line warning: ignoring option '-M'; no argument required
15810       # The diagnosis changed in icc 8.0:
15811       #   icc: Command line remark: option '-MP' not supported
15812       if (grep 'ignoring option' conftest.err ||
15813           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
15814         am_cv_CXX_dependencies_compiler_type=$depmode
15815         break
15816       fi
15817     fi
15818   done
15819
15820   cd ..
15821   rm -rf conftest.dir
15822 else
15823   am_cv_CXX_dependencies_compiler_type=none
15824 fi
15825
15826 fi
15827 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
15828 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
15829 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
15830
15831
15832
15833 if
15834   test "x$enable_dependency_tracking" != xno \
15835   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
15836   am__fastdepCXX_TRUE=
15837   am__fastdepCXX_FALSE='#'
15838 else
15839   am__fastdepCXX_TRUE='#'
15840   am__fastdepCXX_FALSE=
15841 fi
15842
15843
15844
15845
15846 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
15847     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
15848     (test "X$CXX" != "Xg++"))) ; then
15849   ac_ext=cc
15850 ac_cpp='$CXXCPP $CPPFLAGS'
15851 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15852 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15853 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15854 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
15855 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
15856 if test -z "$CXXCPP"; then
15857   if test "${ac_cv_prog_CXXCPP+set}" = set; then
15858   echo $ECHO_N "(cached) $ECHO_C" >&6
15859 else
15860       # Double quotes because CXXCPP needs to be expanded
15861     for CXXCPP in "$CXX -E" "/lib/cpp"
15862     do
15863       ac_preproc_ok=false
15864 for ac_cxx_preproc_warn_flag in '' yes
15865 do
15866   # Use a header file that comes with gcc, so configuring glibc
15867   # with a fresh cross-compiler works.
15868   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15869   # <limits.h> exists even on freestanding compilers.
15870   # On the NeXT, cc -E runs the code through the compiler's parser,
15871   # not just through cpp. "Syntax error" is here to catch this case.
15872   cat >conftest.$ac_ext <<_ACEOF
15873 /* confdefs.h.  */
15874 _ACEOF
15875 cat confdefs.h >>conftest.$ac_ext
15876 cat >>conftest.$ac_ext <<_ACEOF
15877 /* end confdefs.h.  */
15878 #ifdef __STDC__
15879 # include <limits.h>
15880 #else
15881 # include <assert.h>
15882 #endif
15883                      Syntax error
15884 _ACEOF
15885 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15886   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15887   ac_status=$?
15888   grep -v '^ *+' conftest.er1 >conftest.err
15889   rm -f conftest.er1
15890   cat conftest.err >&5
15891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15892   (exit $ac_status); } >/dev/null; then
15893   if test -s conftest.err; then
15894     ac_cpp_err=$ac_cxx_preproc_warn_flag
15895     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15896   else
15897     ac_cpp_err=
15898   fi
15899 else
15900   ac_cpp_err=yes
15901 fi
15902 if test -z "$ac_cpp_err"; then
15903   :
15904 else
15905   echo "$as_me: failed program was:" >&5
15906 sed 's/^/| /' conftest.$ac_ext >&5
15907
15908   # Broken: fails on valid input.
15909 continue
15910 fi
15911 rm -f conftest.err conftest.$ac_ext
15912
15913   # OK, works on sane cases.  Now check whether non-existent headers
15914   # can be detected and how.
15915   cat >conftest.$ac_ext <<_ACEOF
15916 /* confdefs.h.  */
15917 _ACEOF
15918 cat confdefs.h >>conftest.$ac_ext
15919 cat >>conftest.$ac_ext <<_ACEOF
15920 /* end confdefs.h.  */
15921 #include <ac_nonexistent.h>
15922 _ACEOF
15923 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15924   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15925   ac_status=$?
15926   grep -v '^ *+' conftest.er1 >conftest.err
15927   rm -f conftest.er1
15928   cat conftest.err >&5
15929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15930   (exit $ac_status); } >/dev/null; then
15931   if test -s conftest.err; then
15932     ac_cpp_err=$ac_cxx_preproc_warn_flag
15933     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15934   else
15935     ac_cpp_err=
15936   fi
15937 else
15938   ac_cpp_err=yes
15939 fi
15940 if test -z "$ac_cpp_err"; then
15941   # Broken: success on invalid input.
15942 continue
15943 else
15944   echo "$as_me: failed program was:" >&5
15945 sed 's/^/| /' conftest.$ac_ext >&5
15946
15947   # Passes both tests.
15948 ac_preproc_ok=:
15949 break
15950 fi
15951 rm -f conftest.err conftest.$ac_ext
15952
15953 done
15954 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15955 rm -f conftest.err conftest.$ac_ext
15956 if $ac_preproc_ok; then
15957   break
15958 fi
15959
15960     done
15961     ac_cv_prog_CXXCPP=$CXXCPP
15962
15963 fi
15964   CXXCPP=$ac_cv_prog_CXXCPP
15965 else
15966   ac_cv_prog_CXXCPP=$CXXCPP
15967 fi
15968 echo "$as_me:$LINENO: result: $CXXCPP" >&5
15969 echo "${ECHO_T}$CXXCPP" >&6
15970 ac_preproc_ok=false
15971 for ac_cxx_preproc_warn_flag in '' yes
15972 do
15973   # Use a header file that comes with gcc, so configuring glibc
15974   # with a fresh cross-compiler works.
15975   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15976   # <limits.h> exists even on freestanding compilers.
15977   # On the NeXT, cc -E runs the code through the compiler's parser,
15978   # not just through cpp. "Syntax error" is here to catch this case.
15979   cat >conftest.$ac_ext <<_ACEOF
15980 /* confdefs.h.  */
15981 _ACEOF
15982 cat confdefs.h >>conftest.$ac_ext
15983 cat >>conftest.$ac_ext <<_ACEOF
15984 /* end confdefs.h.  */
15985 #ifdef __STDC__
15986 # include <limits.h>
15987 #else
15988 # include <assert.h>
15989 #endif
15990                      Syntax error
15991 _ACEOF
15992 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15993   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15994   ac_status=$?
15995   grep -v '^ *+' conftest.er1 >conftest.err
15996   rm -f conftest.er1
15997   cat conftest.err >&5
15998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15999   (exit $ac_status); } >/dev/null; then
16000   if test -s conftest.err; then
16001     ac_cpp_err=$ac_cxx_preproc_warn_flag
16002     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
16003   else
16004     ac_cpp_err=
16005   fi
16006 else
16007   ac_cpp_err=yes
16008 fi
16009 if test -z "$ac_cpp_err"; then
16010   :
16011 else
16012   echo "$as_me: failed program was:" >&5
16013 sed 's/^/| /' conftest.$ac_ext >&5
16014
16015   # Broken: fails on valid input.
16016 continue
16017 fi
16018 rm -f conftest.err conftest.$ac_ext
16019
16020   # OK, works on sane cases.  Now check whether non-existent headers
16021   # can be detected and how.
16022   cat >conftest.$ac_ext <<_ACEOF
16023 /* confdefs.h.  */
16024 _ACEOF
16025 cat confdefs.h >>conftest.$ac_ext
16026 cat >>conftest.$ac_ext <<_ACEOF
16027 /* end confdefs.h.  */
16028 #include <ac_nonexistent.h>
16029 _ACEOF
16030 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16031   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16032   ac_status=$?
16033   grep -v '^ *+' conftest.er1 >conftest.err
16034   rm -f conftest.er1
16035   cat conftest.err >&5
16036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16037   (exit $ac_status); } >/dev/null; then
16038   if test -s conftest.err; then
16039     ac_cpp_err=$ac_cxx_preproc_warn_flag
16040     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
16041   else
16042     ac_cpp_err=
16043   fi
16044 else
16045   ac_cpp_err=yes
16046 fi
16047 if test -z "$ac_cpp_err"; then
16048   # Broken: success on invalid input.
16049 continue
16050 else
16051   echo "$as_me: failed program was:" >&5
16052 sed 's/^/| /' conftest.$ac_ext >&5
16053
16054   # Passes both tests.
16055 ac_preproc_ok=:
16056 break
16057 fi
16058 rm -f conftest.err conftest.$ac_ext
16059
16060 done
16061 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16062 rm -f conftest.err conftest.$ac_ext
16063 if $ac_preproc_ok; then
16064   :
16065 else
16066   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
16067 See \`config.log' for more details." >&5
16068 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
16069 See \`config.log' for more details." >&2;}
16070    { (exit 1); exit 1; }; }
16071 fi
16072
16073 ac_ext=cc
16074 ac_cpp='$CXXCPP $CPPFLAGS'
16075 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16076 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16077 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16078
16079 fi
16080
16081
16082 ac_ext=f
16083 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
16084 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16085 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
16086 if test -n "$ac_tool_prefix"; then
16087   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
16088   do
16089     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
16090 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
16091 echo "$as_me:$LINENO: checking for $ac_word" >&5
16092 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16093 if test "${ac_cv_prog_F77+set}" = set; then
16094   echo $ECHO_N "(cached) $ECHO_C" >&6
16095 else
16096   if test -n "$F77"; then
16097   ac_cv_prog_F77="$F77" # Let the user override the test.
16098 else
16099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16100 for as_dir in $PATH
16101 do
16102   IFS=$as_save_IFS
16103   test -z "$as_dir" && as_dir=.
16104   for ac_exec_ext in '' $ac_executable_extensions; do
16105   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16106     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
16107     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16108     break 2
16109   fi
16110 done
16111 done
16112
16113 fi
16114 fi
16115 F77=$ac_cv_prog_F77
16116 if test -n "$F77"; then
16117   echo "$as_me:$LINENO: result: $F77" >&5
16118 echo "${ECHO_T}$F77" >&6
16119 else
16120   echo "$as_me:$LINENO: result: no" >&5
16121 echo "${ECHO_T}no" >&6
16122 fi
16123
16124     test -n "$F77" && break
16125   done
16126 fi
16127 if test -z "$F77"; then
16128   ac_ct_F77=$F77
16129   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
16130 do
16131   # Extract the first word of "$ac_prog", so it can be a program name with args.
16132 set dummy $ac_prog; ac_word=$2
16133 echo "$as_me:$LINENO: checking for $ac_word" >&5
16134 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16135 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
16136   echo $ECHO_N "(cached) $ECHO_C" >&6
16137 else
16138   if test -n "$ac_ct_F77"; then
16139   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
16140 else
16141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16142 for as_dir in $PATH
16143 do
16144   IFS=$as_save_IFS
16145   test -z "$as_dir" && as_dir=.
16146   for ac_exec_ext in '' $ac_executable_extensions; do
16147   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16148     ac_cv_prog_ac_ct_F77="$ac_prog"
16149     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16150     break 2
16151   fi
16152 done
16153 done
16154
16155 fi
16156 fi
16157 ac_ct_F77=$ac_cv_prog_ac_ct_F77
16158 if test -n "$ac_ct_F77"; then
16159   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
16160 echo "${ECHO_T}$ac_ct_F77" >&6
16161 else
16162   echo "$as_me:$LINENO: result: no" >&5
16163 echo "${ECHO_T}no" >&6
16164 fi
16165
16166   test -n "$ac_ct_F77" && break
16167 done
16168
16169   F77=$ac_ct_F77
16170 fi
16171
16172
16173 # Provide some information about the compiler.
16174 echo "$as_me:16174:" \
16175      "checking for Fortran 77 compiler version" >&5
16176 ac_compiler=`set X $ac_compile; echo $2`
16177 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
16178   (eval $ac_compiler --version </dev/null >&5) 2>&5
16179   ac_status=$?
16180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16181   (exit $ac_status); }
16182 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
16183   (eval $ac_compiler -v </dev/null >&5) 2>&5
16184   ac_status=$?
16185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16186   (exit $ac_status); }
16187 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
16188   (eval $ac_compiler -V </dev/null >&5) 2>&5
16189   ac_status=$?
16190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16191   (exit $ac_status); }
16192 rm -f a.out
16193
16194 # If we don't use `.F' as extension, the preprocessor is not run on the
16195 # input file.  (Note that this only needs to work for GNU compilers.)
16196 ac_save_ext=$ac_ext
16197 ac_ext=F
16198 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
16199 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
16200 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
16201   echo $ECHO_N "(cached) $ECHO_C" >&6
16202 else
16203   cat >conftest.$ac_ext <<_ACEOF
16204       program main
16205 #ifndef __GNUC__
16206        choke me
16207 #endif
16208
16209       end
16210 _ACEOF
16211 rm -f conftest.$ac_objext
16212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16213   (eval $ac_compile) 2>conftest.er1
16214   ac_status=$?
16215   grep -v '^ *+' conftest.er1 >conftest.err
16216   rm -f conftest.er1
16217   cat conftest.err >&5
16218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16219   (exit $ac_status); } &&
16220          { ac_try='test -z "$ac_f77_werror_flag"
16221                          || test ! -s conftest.err'
16222   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16223   (eval $ac_try) 2>&5
16224   ac_status=$?
16225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16226   (exit $ac_status); }; } &&
16227          { ac_try='test -s conftest.$ac_objext'
16228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16229   (eval $ac_try) 2>&5
16230   ac_status=$?
16231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16232   (exit $ac_status); }; }; then
16233   ac_compiler_gnu=yes
16234 else
16235   echo "$as_me: failed program was:" >&5
16236 sed 's/^/| /' conftest.$ac_ext >&5
16237
16238 ac_compiler_gnu=no
16239 fi
16240 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16241 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
16242
16243 fi
16244 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
16245 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
16246 ac_ext=$ac_save_ext
16247 ac_test_FFLAGS=${FFLAGS+set}
16248 ac_save_FFLAGS=$FFLAGS
16249 FFLAGS=
16250 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
16251 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
16252 if test "${ac_cv_prog_f77_g+set}" = set; then
16253   echo $ECHO_N "(cached) $ECHO_C" >&6
16254 else
16255   FFLAGS=-g
16256 cat >conftest.$ac_ext <<_ACEOF
16257       program main
16258
16259       end
16260 _ACEOF
16261 rm -f conftest.$ac_objext
16262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16263   (eval $ac_compile) 2>conftest.er1
16264   ac_status=$?
16265   grep -v '^ *+' conftest.er1 >conftest.err
16266   rm -f conftest.er1
16267   cat conftest.err >&5
16268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16269   (exit $ac_status); } &&
16270          { ac_try='test -z "$ac_f77_werror_flag"
16271                          || test ! -s conftest.err'
16272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16273   (eval $ac_try) 2>&5
16274   ac_status=$?
16275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16276   (exit $ac_status); }; } &&
16277          { ac_try='test -s conftest.$ac_objext'
16278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16279   (eval $ac_try) 2>&5
16280   ac_status=$?
16281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16282   (exit $ac_status); }; }; then
16283   ac_cv_prog_f77_g=yes
16284 else
16285   echo "$as_me: failed program was:" >&5
16286 sed 's/^/| /' conftest.$ac_ext >&5
16287
16288 ac_cv_prog_f77_g=no
16289 fi
16290 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16291
16292 fi
16293 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
16294 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
16295 if test "$ac_test_FFLAGS" = set; then
16296   FFLAGS=$ac_save_FFLAGS
16297 elif test $ac_cv_prog_f77_g = yes; then
16298   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
16299     FFLAGS="-g -O2"
16300   else
16301     FFLAGS="-g"
16302   fi
16303 else
16304   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
16305     FFLAGS="-O2"
16306   else
16307     FFLAGS=
16308   fi
16309 fi
16310
16311 G77=`test $ac_compiler_gnu = yes && echo yes`
16312 ac_ext=c
16313 ac_cpp='$CPP $CPPFLAGS'
16314 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16315 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16316 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16317
16318
16319
16320 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
16321
16322 # find the maximum length of command line arguments
16323 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
16324 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
16325 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
16326   echo $ECHO_N "(cached) $ECHO_C" >&6
16327 else
16328     i=0
16329   teststring="ABCD"
16330
16331   case $build_os in
16332   msdosdjgpp*)
16333     # On DJGPP, this test can blow up pretty badly due to problems in libc
16334     # (any single argument exceeding 2000 bytes causes a buffer overrun
16335     # during glob expansion).  Even if it were fixed, the result of this
16336     # check would be larger than it should be.
16337     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
16338     ;;
16339
16340   gnu*)
16341     # Under GNU Hurd, this test is not required because there is
16342     # no limit to the length of command line arguments.
16343     # Libtool will interpret -1 as no limit whatsoever
16344     lt_cv_sys_max_cmd_len=-1;
16345     ;;
16346
16347   cygwin* | mingw*)
16348     # On Win9x/ME, this test blows up -- it succeeds, but takes
16349     # about 5 minutes as the teststring grows exponentially.
16350     # Worse, since 9x/ME are not pre-emptively multitasking,
16351     # you end up with a "frozen" computer, even though with patience
16352     # the test eventually succeeds (with a max line length of 256k).
16353     # Instead, let's just punt: use the minimum linelength reported by
16354     # all of the supported platforms: 8192 (on NT/2K/XP).
16355     lt_cv_sys_max_cmd_len=8192;
16356     ;;
16357
16358   amigaos*)
16359     # On AmigaOS with pdksh, this test takes hours, literally.
16360     # So we just punt and use a minimum line length of 8192.
16361     lt_cv_sys_max_cmd_len=8192;
16362     ;;
16363
16364   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
16365     # This has been around since 386BSD, at least.  Likely further.
16366     if test -x /sbin/sysctl; then
16367       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
16368     elif test -x /usr/sbin/sysctl; then
16369       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
16370     else
16371       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
16372     fi
16373     # And add a safety zone
16374     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
16375     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
16376     ;;
16377   osf*)
16378     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
16379     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
16380     # nice to cause kernel panics so lets avoid the loop below.
16381     # First set a reasonable default.
16382     lt_cv_sys_max_cmd_len=16384
16383     #
16384     if test -x /sbin/sysconfig; then
16385       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
16386         *1*) lt_cv_sys_max_cmd_len=-1 ;;
16387       esac
16388     fi
16389     ;;
16390   *)
16391     # If test is not a shell built-in, we'll probably end up computing a
16392     # maximum length that is only half of the actual maximum length, but
16393     # we can't tell.
16394     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
16395     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
16396                = "XX$teststring") >/dev/null 2>&1 &&
16397             new_result=`expr "X$teststring" : ".*" 2>&1` &&
16398             lt_cv_sys_max_cmd_len=$new_result &&
16399             test $i != 17 # 1/2 MB should be enough
16400     do
16401       i=`expr $i + 1`
16402       teststring=$teststring$teststring
16403     done
16404     teststring=
16405     # Add a significant safety factor because C++ compilers can tack on massive
16406     # amounts of additional arguments before passing them to the linker.
16407     # It appears as though 1/2 is a usable value.
16408     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
16409     ;;
16410   esac
16411
16412 fi
16413
16414 if test -n $lt_cv_sys_max_cmd_len ; then
16415   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
16416 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
16417 else
16418   echo "$as_me:$LINENO: result: none" >&5
16419 echo "${ECHO_T}none" >&6
16420 fi
16421
16422
16423
16424
16425 # Check for command to grab the raw symbol name followed by C symbol from nm.
16426 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
16427 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
16428 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
16429   echo $ECHO_N "(cached) $ECHO_C" >&6
16430 else
16431
16432 # These are sane defaults that work on at least a few old systems.
16433 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
16434
16435 # Character class describing NM global symbol codes.
16436 symcode='[BCDEGRST]'
16437
16438 # Regexp to match symbols that can be accessed directly from C.
16439 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
16440
16441 # Transform an extracted symbol line into a proper C declaration
16442 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
16443
16444 # Transform an extracted symbol line into symbol name and symbol address
16445 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'"
16446
16447 # Define system-specific variables.
16448 case $host_os in
16449 aix*)
16450   symcode='[BCDT]'
16451   ;;
16452 cygwin* | mingw* | pw32*)
16453   symcode='[ABCDGISTW]'
16454   ;;
16455 hpux*) # Its linker distinguishes data from code symbols
16456   if test "$host_cpu" = ia64; then
16457     symcode='[ABCDEGRST]'
16458   fi
16459   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
16460   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'"
16461   ;;
16462 linux*)
16463   if test "$host_cpu" = ia64; then
16464     symcode='[ABCDGIRSTW]'
16465     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
16466     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'"
16467   fi
16468   ;;
16469 irix* | nonstopux*)
16470   symcode='[BCDEGRST]'
16471   ;;
16472 osf*)
16473   symcode='[BCDEGQRST]'
16474   ;;
16475 solaris* | sysv5*)
16476   symcode='[BDRT]'
16477   ;;
16478 sysv4)
16479   symcode='[DFNSTU]'
16480   ;;
16481 esac
16482
16483 # Handle CRLF in mingw tool chain
16484 opt_cr=
16485 case $build_os in
16486 mingw*)
16487   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
16488   ;;
16489 esac
16490
16491 # If we're using GNU nm, then use its standard symbol codes.
16492 case `$NM -V 2>&1` in
16493 *GNU* | *'with BFD'*)
16494   symcode='[ABCDGIRSTW]' ;;
16495 esac
16496
16497 # Try without a prefix undercore, then with it.
16498 for ac_symprfx in "" "_"; do
16499
16500   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
16501   symxfrm="\\1 $ac_symprfx\\2 \\2"
16502
16503   # Write the raw and C identifiers.
16504   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
16505
16506   # Check to see that the pipe works correctly.
16507   pipe_works=no
16508
16509   rm -f conftest*
16510   cat > conftest.$ac_ext <<EOF
16511 #ifdef __cplusplus
16512 extern "C" {
16513 #endif
16514 char nm_test_var;
16515 void nm_test_func(){}
16516 #ifdef __cplusplus
16517 }
16518 #endif
16519 int main(){nm_test_var='a';nm_test_func();return(0);}
16520 EOF
16521
16522   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16523   (eval $ac_compile) 2>&5
16524   ac_status=$?
16525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16526   (exit $ac_status); }; then
16527     # Now try to grab the symbols.
16528     nlist=conftest.nm
16529     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
16530   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
16531   ac_status=$?
16532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16533   (exit $ac_status); } && test -s "$nlist"; then
16534       # Try sorting and uniquifying the output.
16535       if sort "$nlist" | uniq > "$nlist"T; then
16536         mv -f "$nlist"T "$nlist"
16537       else
16538         rm -f "$nlist"T
16539       fi
16540
16541       # Make sure that we snagged all the symbols we need.
16542       if grep ' nm_test_var$' "$nlist" >/dev/null; then
16543         if grep ' nm_test_func$' "$nlist" >/dev/null; then
16544           cat <<EOF > conftest.$ac_ext
16545 #ifdef __cplusplus
16546 extern "C" {
16547 #endif
16548
16549 EOF
16550           # Now generate the symbol file.
16551           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
16552
16553           cat <<EOF >> conftest.$ac_ext
16554 #if defined (__STDC__) && __STDC__
16555 # define lt_ptr_t void *
16556 #else
16557 # define lt_ptr_t char *
16558 # define const
16559 #endif
16560
16561 /* The mapping between symbol names and symbols. */
16562 const struct {
16563   const char *name;
16564   lt_ptr_t address;
16565 }
16566 lt_preloaded_symbols[] =
16567 {
16568 EOF
16569           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
16570           cat <<\EOF >> conftest.$ac_ext
16571   {0, (lt_ptr_t) 0}
16572 };
16573
16574 #ifdef __cplusplus
16575 }
16576 #endif
16577 EOF
16578           # Now try linking the two files.
16579           mv conftest.$ac_objext conftstm.$ac_objext
16580           lt_save_LIBS="$LIBS"
16581           lt_save_CFLAGS="$CFLAGS"
16582           LIBS="conftstm.$ac_objext"
16583           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
16584           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16585   (eval $ac_link) 2>&5
16586   ac_status=$?
16587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16588   (exit $ac_status); } && test -s conftest${ac_exeext}; then
16589             pipe_works=yes
16590           fi
16591           LIBS="$lt_save_LIBS"
16592           CFLAGS="$lt_save_CFLAGS"
16593         else
16594           echo "cannot find nm_test_func in $nlist" >&5
16595         fi
16596       else
16597         echo "cannot find nm_test_var in $nlist" >&5
16598       fi
16599     else
16600       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
16601     fi
16602   else
16603     echo "$progname: failed program was:" >&5
16604     cat conftest.$ac_ext >&5
16605   fi
16606   rm -f conftest* conftst*
16607
16608   # Do not use the global_symbol_pipe unless it works.
16609   if test "$pipe_works" = yes; then
16610     break
16611   else
16612     lt_cv_sys_global_symbol_pipe=
16613   fi
16614 done
16615
16616 fi
16617
16618 if test -z "$lt_cv_sys_global_symbol_pipe"; then
16619   lt_cv_sys_global_symbol_to_cdecl=
16620 fi
16621 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
16622   echo "$as_me:$LINENO: result: failed" >&5
16623 echo "${ECHO_T}failed" >&6
16624 else
16625   echo "$as_me:$LINENO: result: ok" >&5
16626 echo "${ECHO_T}ok" >&6
16627 fi
16628
16629 echo "$as_me:$LINENO: checking for objdir" >&5
16630 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
16631 if test "${lt_cv_objdir+set}" = set; then
16632   echo $ECHO_N "(cached) $ECHO_C" >&6
16633 else
16634   rm -f .libs 2>/dev/null
16635 mkdir .libs 2>/dev/null
16636 if test -d .libs; then
16637   lt_cv_objdir=.libs
16638 else
16639   # MS-DOS does not allow filenames that begin with a dot.
16640   lt_cv_objdir=_libs
16641 fi
16642 rmdir .libs 2>/dev/null
16643 fi
16644 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
16645 echo "${ECHO_T}$lt_cv_objdir" >&6
16646 objdir=$lt_cv_objdir
16647
16648
16649
16650
16651
16652 case $host_os in
16653 aix3*)
16654   # AIX sometimes has problems with the GCC collect2 program.  For some
16655   # reason, if we set the COLLECT_NAMES environment variable, the problems
16656   # vanish in a puff of smoke.
16657   if test "X${COLLECT_NAMES+set}" != Xset; then
16658     COLLECT_NAMES=
16659     export COLLECT_NAMES
16660   fi
16661   ;;
16662 esac
16663
16664 # Sed substitution that helps us do robust quoting.  It backslashifies
16665 # metacharacters that are still active within double-quoted strings.
16666 Xsed='sed -e 1s/^X//'
16667 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
16668
16669 # Same as above, but do not quote variable references.
16670 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
16671
16672 # Sed substitution to delay expansion of an escaped shell variable in a
16673 # double_quote_subst'ed string.
16674 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
16675
16676 # Sed substitution to avoid accidental globbing in evaled expressions
16677 no_glob_subst='s/\*/\\\*/g'
16678
16679 # Constants:
16680 rm="rm -f"
16681
16682 # Global variables:
16683 default_ofile=libtool
16684 can_build_shared=yes
16685
16686 # All known linkers require a `.a' archive for static linking (except MSVC,
16687 # which needs '.lib').
16688 libext=a
16689 ltmain="$ac_aux_dir/ltmain.sh"
16690 ofile="$default_ofile"
16691 with_gnu_ld="$lt_cv_prog_gnu_ld"
16692
16693 if test -n "$ac_tool_prefix"; then
16694   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
16695 set dummy ${ac_tool_prefix}ar; ac_word=$2
16696 echo "$as_me:$LINENO: checking for $ac_word" >&5
16697 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16698 if test "${ac_cv_prog_AR+set}" = set; then
16699   echo $ECHO_N "(cached) $ECHO_C" >&6
16700 else
16701   if test -n "$AR"; then
16702   ac_cv_prog_AR="$AR" # Let the user override the test.
16703 else
16704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16705 for as_dir in $PATH
16706 do
16707   IFS=$as_save_IFS
16708   test -z "$as_dir" && as_dir=.
16709   for ac_exec_ext in '' $ac_executable_extensions; do
16710   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16711     ac_cv_prog_AR="${ac_tool_prefix}ar"
16712     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16713     break 2
16714   fi
16715 done
16716 done
16717
16718 fi
16719 fi
16720 AR=$ac_cv_prog_AR
16721 if test -n "$AR"; then
16722   echo "$as_me:$LINENO: result: $AR" >&5
16723 echo "${ECHO_T}$AR" >&6
16724 else
16725   echo "$as_me:$LINENO: result: no" >&5
16726 echo "${ECHO_T}no" >&6
16727 fi
16728
16729 fi
16730 if test -z "$ac_cv_prog_AR"; then
16731   ac_ct_AR=$AR
16732   # Extract the first word of "ar", so it can be a program name with args.
16733 set dummy ar; ac_word=$2
16734 echo "$as_me:$LINENO: checking for $ac_word" >&5
16735 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16736 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
16737   echo $ECHO_N "(cached) $ECHO_C" >&6
16738 else
16739   if test -n "$ac_ct_AR"; then
16740   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
16741 else
16742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16743 for as_dir in $PATH
16744 do
16745   IFS=$as_save_IFS
16746   test -z "$as_dir" && as_dir=.
16747   for ac_exec_ext in '' $ac_executable_extensions; do
16748   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16749     ac_cv_prog_ac_ct_AR="ar"
16750     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16751     break 2
16752   fi
16753 done
16754 done
16755
16756   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
16757 fi
16758 fi
16759 ac_ct_AR=$ac_cv_prog_ac_ct_AR
16760 if test -n "$ac_ct_AR"; then
16761   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
16762 echo "${ECHO_T}$ac_ct_AR" >&6
16763 else
16764   echo "$as_me:$LINENO: result: no" >&5
16765 echo "${ECHO_T}no" >&6
16766 fi
16767
16768   AR=$ac_ct_AR
16769 else
16770   AR="$ac_cv_prog_AR"
16771 fi
16772
16773 if test -n "$ac_tool_prefix"; then
16774   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
16775 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
16776 echo "$as_me:$LINENO: checking for $ac_word" >&5
16777 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16778 if test "${ac_cv_prog_RANLIB+set}" = set; then
16779   echo $ECHO_N "(cached) $ECHO_C" >&6
16780 else
16781   if test -n "$RANLIB"; then
16782   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
16783 else
16784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16785 for as_dir in $PATH
16786 do
16787   IFS=$as_save_IFS
16788   test -z "$as_dir" && as_dir=.
16789   for ac_exec_ext in '' $ac_executable_extensions; do
16790   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16791     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
16792     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16793     break 2
16794   fi
16795 done
16796 done
16797
16798 fi
16799 fi
16800 RANLIB=$ac_cv_prog_RANLIB
16801 if test -n "$RANLIB"; then
16802   echo "$as_me:$LINENO: result: $RANLIB" >&5
16803 echo "${ECHO_T}$RANLIB" >&6
16804 else
16805   echo "$as_me:$LINENO: result: no" >&5
16806 echo "${ECHO_T}no" >&6
16807 fi
16808
16809 fi
16810 if test -z "$ac_cv_prog_RANLIB"; then
16811   ac_ct_RANLIB=$RANLIB
16812   # Extract the first word of "ranlib", so it can be a program name with args.
16813 set dummy ranlib; ac_word=$2
16814 echo "$as_me:$LINENO: checking for $ac_word" >&5
16815 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16816 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
16817   echo $ECHO_N "(cached) $ECHO_C" >&6
16818 else
16819   if test -n "$ac_ct_RANLIB"; then
16820   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
16821 else
16822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16823 for as_dir in $PATH
16824 do
16825   IFS=$as_save_IFS
16826   test -z "$as_dir" && as_dir=.
16827   for ac_exec_ext in '' $ac_executable_extensions; do
16828   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16829     ac_cv_prog_ac_ct_RANLIB="ranlib"
16830     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16831     break 2
16832   fi
16833 done
16834 done
16835
16836   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
16837 fi
16838 fi
16839 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
16840 if test -n "$ac_ct_RANLIB"; then
16841   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
16842 echo "${ECHO_T}$ac_ct_RANLIB" >&6
16843 else
16844   echo "$as_me:$LINENO: result: no" >&5
16845 echo "${ECHO_T}no" >&6
16846 fi
16847
16848   RANLIB=$ac_ct_RANLIB
16849 else
16850   RANLIB="$ac_cv_prog_RANLIB"
16851 fi
16852
16853 if test -n "$ac_tool_prefix"; then
16854   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
16855 set dummy ${ac_tool_prefix}strip; ac_word=$2
16856 echo "$as_me:$LINENO: checking for $ac_word" >&5
16857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16858 if test "${ac_cv_prog_STRIP+set}" = set; then
16859   echo $ECHO_N "(cached) $ECHO_C" >&6
16860 else
16861   if test -n "$STRIP"; then
16862   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
16863 else
16864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16865 for as_dir in $PATH
16866 do
16867   IFS=$as_save_IFS
16868   test -z "$as_dir" && as_dir=.
16869   for ac_exec_ext in '' $ac_executable_extensions; do
16870   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16871     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
16872     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16873     break 2
16874   fi
16875 done
16876 done
16877
16878 fi
16879 fi
16880 STRIP=$ac_cv_prog_STRIP
16881 if test -n "$STRIP"; then
16882   echo "$as_me:$LINENO: result: $STRIP" >&5
16883 echo "${ECHO_T}$STRIP" >&6
16884 else
16885   echo "$as_me:$LINENO: result: no" >&5
16886 echo "${ECHO_T}no" >&6
16887 fi
16888
16889 fi
16890 if test -z "$ac_cv_prog_STRIP"; then
16891   ac_ct_STRIP=$STRIP
16892   # Extract the first word of "strip", so it can be a program name with args.
16893 set dummy strip; ac_word=$2
16894 echo "$as_me:$LINENO: checking for $ac_word" >&5
16895 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16896 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
16897   echo $ECHO_N "(cached) $ECHO_C" >&6
16898 else
16899   if test -n "$ac_ct_STRIP"; then
16900   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
16901 else
16902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16903 for as_dir in $PATH
16904 do
16905   IFS=$as_save_IFS
16906   test -z "$as_dir" && as_dir=.
16907   for ac_exec_ext in '' $ac_executable_extensions; do
16908   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16909     ac_cv_prog_ac_ct_STRIP="strip"
16910     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16911     break 2
16912   fi
16913 done
16914 done
16915
16916   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
16917 fi
16918 fi
16919 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
16920 if test -n "$ac_ct_STRIP"; then
16921   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
16922 echo "${ECHO_T}$ac_ct_STRIP" >&6
16923 else
16924   echo "$as_me:$LINENO: result: no" >&5
16925 echo "${ECHO_T}no" >&6
16926 fi
16927
16928   STRIP=$ac_ct_STRIP
16929 else
16930   STRIP="$ac_cv_prog_STRIP"
16931 fi
16932
16933
16934 old_CC="$CC"
16935 old_CFLAGS="$CFLAGS"
16936
16937 # Set sane defaults for various variables
16938 test -z "$AR" && AR=ar
16939 test -z "$AR_FLAGS" && AR_FLAGS=cru
16940 test -z "$AS" && AS=as
16941 test -z "$CC" && CC=cc
16942 test -z "$LTCC" && LTCC=$CC
16943 test -z "$DLLTOOL" && DLLTOOL=dlltool
16944 test -z "$LD" && LD=ld
16945 test -z "$LN_S" && LN_S="ln -s"
16946 test -z "$MAGIC_CMD" && MAGIC_CMD=file
16947 test -z "$NM" && NM=nm
16948 test -z "$SED" && SED=sed
16949 test -z "$OBJDUMP" && OBJDUMP=objdump
16950 test -z "$RANLIB" && RANLIB=:
16951 test -z "$STRIP" && STRIP=:
16952 test -z "$ac_objext" && ac_objext=o
16953
16954 # Determine commands to create old-style static archives.
16955 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
16956 old_postinstall_cmds='chmod 644 $oldlib'
16957 old_postuninstall_cmds=
16958
16959 if test -n "$RANLIB"; then
16960   case $host_os in
16961   openbsd*)
16962     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
16963     ;;
16964   *)
16965     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
16966     ;;
16967   esac
16968   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
16969 fi
16970
16971 for cc_temp in $compiler""; do
16972   case $cc_temp in
16973     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16974     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16975     \-*) ;;
16976     *) break;;
16977   esac
16978 done
16979 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16980
16981
16982 # Only perform the check for file, if the check method requires it
16983 case $deplibs_check_method in
16984 file_magic*)
16985   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
16986     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
16987 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
16988 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
16989   echo $ECHO_N "(cached) $ECHO_C" >&6
16990 else
16991   case $MAGIC_CMD in
16992 [\\/*] |  ?:[\\/]*)
16993   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
16994   ;;
16995 *)
16996   lt_save_MAGIC_CMD="$MAGIC_CMD"
16997   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16998   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
16999   for ac_dir in $ac_dummy; do
17000     IFS="$lt_save_ifs"
17001     test -z "$ac_dir" && ac_dir=.
17002     if test -f $ac_dir/${ac_tool_prefix}file; then
17003       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
17004       if test -n "$file_magic_test_file"; then
17005         case $deplibs_check_method in
17006         "file_magic "*)
17007           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
17008           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
17009           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
17010             $EGREP "$file_magic_regex" > /dev/null; then
17011             :
17012           else
17013             cat <<EOF 1>&2
17014
17015 *** Warning: the command libtool uses to detect shared libraries,
17016 *** $file_magic_cmd, produces output that libtool cannot recognize.
17017 *** The result is that libtool may fail to recognize shared libraries
17018 *** as such.  This will affect the creation of libtool libraries that
17019 *** depend on shared libraries, but programs linked with such libtool
17020 *** libraries will work regardless of this problem.  Nevertheless, you
17021 *** may want to report the problem to your system manager and/or to
17022 *** bug-libtool@gnu.org
17023
17024 EOF
17025           fi ;;
17026         esac
17027       fi
17028       break
17029     fi
17030   done
17031   IFS="$lt_save_ifs"
17032   MAGIC_CMD="$lt_save_MAGIC_CMD"
17033   ;;
17034 esac
17035 fi
17036
17037 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
17038 if test -n "$MAGIC_CMD"; then
17039   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
17040 echo "${ECHO_T}$MAGIC_CMD" >&6
17041 else
17042   echo "$as_me:$LINENO: result: no" >&5
17043 echo "${ECHO_T}no" >&6
17044 fi
17045
17046 if test -z "$lt_cv_path_MAGIC_CMD"; then
17047   if test -n "$ac_tool_prefix"; then
17048     echo "$as_me:$LINENO: checking for file" >&5
17049 echo $ECHO_N "checking for file... $ECHO_C" >&6
17050 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
17051   echo $ECHO_N "(cached) $ECHO_C" >&6
17052 else
17053   case $MAGIC_CMD in
17054 [\\/*] |  ?:[\\/]*)
17055   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
17056   ;;
17057 *)
17058   lt_save_MAGIC_CMD="$MAGIC_CMD"
17059   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17060   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
17061   for ac_dir in $ac_dummy; do
17062     IFS="$lt_save_ifs"
17063     test -z "$ac_dir" && ac_dir=.
17064     if test -f $ac_dir/file; then
17065       lt_cv_path_MAGIC_CMD="$ac_dir/file"
17066       if test -n "$file_magic_test_file"; then
17067         case $deplibs_check_method in
17068         "file_magic "*)
17069           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
17070           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
17071           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
17072             $EGREP "$file_magic_regex" > /dev/null; then
17073             :
17074           else
17075             cat <<EOF 1>&2
17076
17077 *** Warning: the command libtool uses to detect shared libraries,
17078 *** $file_magic_cmd, produces output that libtool cannot recognize.
17079 *** The result is that libtool may fail to recognize shared libraries
17080 *** as such.  This will affect the creation of libtool libraries that
17081 *** depend on shared libraries, but programs linked with such libtool
17082 *** libraries will work regardless of this problem.  Nevertheless, you
17083 *** may want to report the problem to your system manager and/or to
17084 *** bug-libtool@gnu.org
17085
17086 EOF
17087           fi ;;
17088         esac
17089       fi
17090       break
17091     fi
17092   done
17093   IFS="$lt_save_ifs"
17094   MAGIC_CMD="$lt_save_MAGIC_CMD"
17095   ;;
17096 esac
17097 fi
17098
17099 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
17100 if test -n "$MAGIC_CMD"; then
17101   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
17102 echo "${ECHO_T}$MAGIC_CMD" >&6
17103 else
17104   echo "$as_me:$LINENO: result: no" >&5
17105 echo "${ECHO_T}no" >&6
17106 fi
17107
17108   else
17109     MAGIC_CMD=:
17110   fi
17111 fi
17112
17113   fi
17114   ;;
17115 esac
17116
17117 enable_dlopen=no
17118 enable_win32_dll=no
17119
17120 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
17121 if test "${enable_libtool_lock+set}" = set; then
17122   enableval="$enable_libtool_lock"
17123
17124 fi;
17125 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
17126
17127
17128 # Check whether --with-pic or --without-pic was given.
17129 if test "${with_pic+set}" = set; then
17130   withval="$with_pic"
17131   pic_mode="$withval"
17132 else
17133   pic_mode=default
17134 fi;
17135 test -z "$pic_mode" && pic_mode=default
17136
17137 # Use C for the default configuration in the libtool script
17138 tagname=
17139 lt_save_CC="$CC"
17140 ac_ext=c
17141 ac_cpp='$CPP $CPPFLAGS'
17142 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17143 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17144 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17145
17146
17147 # Source file extension for C test sources.
17148 ac_ext=c
17149
17150 # Object file extension for compiled C test sources.
17151 objext=o
17152 objext=$objext
17153
17154 # Code to be used in simple compile tests
17155 lt_simple_compile_test_code="int some_variable = 0;\n"
17156
17157 # Code to be used in simple link tests
17158 lt_simple_link_test_code='int main(){return(0);}\n'
17159
17160
17161 # If no C compiler was specified, use CC.
17162 LTCC=${LTCC-"$CC"}
17163
17164 # Allow CC to be a program name with arguments.
17165 compiler=$CC
17166
17167
17168 # save warnings/boilerplate of simple test code
17169 ac_outfile=conftest.$ac_objext
17170 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17171 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
17172 _lt_compiler_boilerplate=`cat conftest.err`
17173 $rm conftest*
17174
17175 ac_outfile=conftest.$ac_objext
17176 printf "$lt_simple_link_test_code" >conftest.$ac_ext
17177 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
17178 _lt_linker_boilerplate=`cat conftest.err`
17179 $rm conftest*
17180
17181
17182 #
17183 # Check for any special shared library compilation flags.
17184 #
17185 lt_prog_cc_shlib=
17186 if test "$GCC" = no; then
17187   case $host_os in
17188   sco3.2v5*)
17189     lt_prog_cc_shlib='-belf'
17190     ;;
17191   esac
17192 fi
17193 if test -n "$lt_prog_cc_shlib"; then
17194   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
17195 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
17196   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
17197   else
17198     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
17199 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
17200     lt_cv_prog_cc_can_build_shared=no
17201   fi
17202 fi
17203
17204
17205 #
17206 # Check to make sure the static flag actually works.
17207 #
17208 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
17209 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
17210 if test "${lt_prog_compiler_static_works+set}" = set; then
17211   echo $ECHO_N "(cached) $ECHO_C" >&6
17212 else
17213   lt_prog_compiler_static_works=no
17214    save_LDFLAGS="$LDFLAGS"
17215    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
17216    printf "$lt_simple_link_test_code" > conftest.$ac_ext
17217    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17218      # The linker can only warn and ignore the option if not recognized
17219      # So say no if there are warnings
17220      if test -s conftest.err; then
17221        # Append any errors to the config.log.
17222        cat conftest.err 1>&5
17223        $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
17224        $SED '/^$/d' conftest.err >conftest.er2
17225        if diff conftest.exp conftest.er2 >/dev/null; then
17226          lt_prog_compiler_static_works=yes
17227        fi
17228      else
17229        lt_prog_compiler_static_works=yes
17230      fi
17231    fi
17232    $rm conftest*
17233    LDFLAGS="$save_LDFLAGS"
17234
17235 fi
17236 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
17237 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
17238
17239 if test x"$lt_prog_compiler_static_works" = xyes; then
17240     :
17241 else
17242     lt_prog_compiler_static=
17243 fi
17244
17245
17246
17247 ## CAVEAT EMPTOR:
17248 ## There is no encapsulation within the following macros, do not change
17249 ## the running order or otherwise move them around unless you know exactly
17250 ## what you are doing...
17251
17252 lt_prog_compiler_no_builtin_flag=
17253
17254 if test "$GCC" = yes; then
17255   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
17256
17257
17258 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17259 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
17260 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17261   echo $ECHO_N "(cached) $ECHO_C" >&6
17262 else
17263   lt_cv_prog_compiler_rtti_exceptions=no
17264   ac_outfile=conftest.$ac_objext
17265    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17266    lt_compiler_flag="-fno-rtti -fno-exceptions"
17267    # Insert the option either (1) after the last *FLAGS variable, or
17268    # (2) before a word containing "conftest.", or (3) at the end.
17269    # Note that $ac_compile itself does not contain backslashes and begins
17270    # with a dollar sign (not a hyphen), so the echo should work correctly.
17271    # The option is referenced via a variable to avoid confusing sed.
17272    lt_compile=`echo "$ac_compile" | $SED \
17273    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17274    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17275    -e 's:$: $lt_compiler_flag:'`
17276    (eval echo "\"\$as_me:17276: $lt_compile\"" >&5)
17277    (eval "$lt_compile" 2>conftest.err)
17278    ac_status=$?
17279    cat conftest.err >&5
17280    echo "$as_me:17280: \$? = $ac_status" >&5
17281    if (exit $ac_status) && test -s "$ac_outfile"; then
17282      # The compiler can only warn and ignore the option if not recognized
17283      # So say no if there are warnings other than the usual output.
17284      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
17285      $SED '/^$/d' conftest.err >conftest.er2
17286      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
17287        lt_cv_prog_compiler_rtti_exceptions=yes
17288      fi
17289    fi
17290    $rm conftest*
17291
17292 fi
17293 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17294 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
17295
17296 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17297     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
17298 else
17299     :
17300 fi
17301
17302 fi
17303
17304 lt_prog_compiler_wl=
17305 lt_prog_compiler_pic=
17306 lt_prog_compiler_static=
17307
17308 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17309 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
17310
17311   if test "$GCC" = yes; then
17312     lt_prog_compiler_wl='-Wl,'
17313     lt_prog_compiler_static='-static'
17314
17315     case $host_os in
17316       aix*)
17317       # All AIX code is PIC.
17318       if test "$host_cpu" = ia64; then
17319         # AIX 5 now supports IA64 processor
17320         lt_prog_compiler_static='-Bstatic'
17321       fi
17322       ;;
17323
17324     amigaos*)
17325       # FIXME: we need at least 68020 code to build shared libraries, but
17326       # adding the `-m68020' flag to GCC prevents building anything better,
17327       # like `-m68040'.
17328       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
17329       ;;
17330
17331     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17332       # PIC is the default for these OSes.
17333       ;;
17334
17335     mingw* | pw32* | os2*)
17336       # This hack is so that the source file can tell whether it is being
17337       # built for inclusion in a dll (and should export symbols for example).
17338       lt_prog_compiler_pic='-DDLL_EXPORT'
17339       ;;
17340
17341     darwin* | rhapsody*)
17342       # PIC is the default on this platform
17343       # Common symbols not allowed in MH_DYLIB files
17344       lt_prog_compiler_pic='-fno-common'
17345       ;;
17346
17347     msdosdjgpp*)
17348       # Just because we use GCC doesn't mean we suddenly get shared libraries
17349       # on systems that don't support them.
17350       lt_prog_compiler_can_build_shared=no
17351       enable_shared=no
17352       ;;
17353
17354     sysv4*MP*)
17355       if test -d /usr/nec; then
17356         lt_prog_compiler_pic=-Kconform_pic
17357       fi
17358       ;;
17359
17360     hpux*)
17361       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17362       # not for PA HP-UX.
17363       case $host_cpu in
17364       hppa*64*|ia64*)
17365         # +Z the default
17366         ;;
17367       *)
17368         lt_prog_compiler_pic='-fPIC'
17369         ;;
17370       esac
17371       ;;
17372
17373     *)
17374       lt_prog_compiler_pic='-fPIC'
17375       ;;
17376     esac
17377   else
17378     # PORTME Check for flag to pass linker flags through the system compiler.
17379     case $host_os in
17380     aix*)
17381       lt_prog_compiler_wl='-Wl,'
17382       if test "$host_cpu" = ia64; then
17383         # AIX 5 now supports IA64 processor
17384         lt_prog_compiler_static='-Bstatic'
17385       else
17386         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
17387       fi
17388       ;;
17389       darwin*)
17390         # PIC is the default on this platform
17391         # Common symbols not allowed in MH_DYLIB files
17392        case $cc_basename in
17393          xlc*)
17394          lt_prog_compiler_pic='-qnocommon'
17395          lt_prog_compiler_wl='-Wl,'
17396          ;;
17397        esac
17398        ;;
17399
17400     mingw* | pw32* | os2*)
17401       # This hack is so that the source file can tell whether it is being
17402       # built for inclusion in a dll (and should export symbols for example).
17403       lt_prog_compiler_pic='-DDLL_EXPORT'
17404       ;;
17405
17406     hpux9* | hpux10* | hpux11*)
17407       lt_prog_compiler_wl='-Wl,'
17408       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17409       # not for PA HP-UX.
17410       case $host_cpu in
17411       hppa*64*|ia64*)
17412         # +Z the default
17413         ;;
17414       *)
17415         lt_prog_compiler_pic='+Z'
17416         ;;
17417       esac
17418       # Is there a better lt_prog_compiler_static that works with the bundled CC?
17419       lt_prog_compiler_static='${wl}-a ${wl}archive'
17420       ;;
17421
17422     irix5* | irix6* | nonstopux*)
17423       lt_prog_compiler_wl='-Wl,'
17424       # PIC (with -KPIC) is the default.
17425       lt_prog_compiler_static='-non_shared'
17426       ;;
17427
17428     newsos6)
17429       lt_prog_compiler_pic='-KPIC'
17430       lt_prog_compiler_static='-Bstatic'
17431       ;;
17432
17433     linux*)
17434       case $cc_basename in
17435       icc* | ecc*)
17436         lt_prog_compiler_wl='-Wl,'
17437         lt_prog_compiler_pic='-KPIC'
17438         lt_prog_compiler_static='-static'
17439         ;;
17440       pgcc* | pgf77* | pgf90* | pgf95*)
17441         # Portland Group compilers (*not* the Pentium gcc compiler,
17442         # which looks to be a dead project)
17443         lt_prog_compiler_wl='-Wl,'
17444         lt_prog_compiler_pic='-fpic'
17445         lt_prog_compiler_static='-Bstatic'
17446         ;;
17447       ccc*)
17448         lt_prog_compiler_wl='-Wl,'
17449         # All Alpha code is PIC.
17450         lt_prog_compiler_static='-non_shared'
17451         ;;
17452       esac
17453       ;;
17454
17455     osf3* | osf4* | osf5*)
17456       lt_prog_compiler_wl='-Wl,'
17457       # All OSF/1 code is PIC.
17458       lt_prog_compiler_static='-non_shared'
17459       ;;
17460
17461     sco3.2v5*)
17462       lt_prog_compiler_pic='-Kpic'
17463       lt_prog_compiler_static='-dn'
17464       ;;
17465
17466     solaris*)
17467       lt_prog_compiler_pic='-KPIC'
17468       lt_prog_compiler_static='-Bstatic'
17469       case $cc_basename in
17470       f77* | f90* | f95*)
17471         lt_prog_compiler_wl='-Qoption ld ';;
17472       *)
17473         lt_prog_compiler_wl='-Wl,';;
17474       esac
17475       ;;
17476
17477     sunos4*)
17478       lt_prog_compiler_wl='-Qoption ld '
17479       lt_prog_compiler_pic='-PIC'
17480       lt_prog_compiler_static='-Bstatic'
17481       ;;
17482
17483     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17484       lt_prog_compiler_wl='-Wl,'
17485       lt_prog_compiler_pic='-KPIC'
17486       lt_prog_compiler_static='-Bstatic'
17487       ;;
17488
17489     sysv4*MP*)
17490       if test -d /usr/nec ;then
17491         lt_prog_compiler_pic='-Kconform_pic'
17492         lt_prog_compiler_static='-Bstatic'
17493       fi
17494       ;;
17495
17496     unicos*)
17497       lt_prog_compiler_wl='-Wl,'
17498       lt_prog_compiler_can_build_shared=no
17499       ;;
17500
17501     uts4*)
17502       lt_prog_compiler_pic='-pic'
17503       lt_prog_compiler_static='-Bstatic'
17504       ;;
17505
17506     *)
17507       lt_prog_compiler_can_build_shared=no
17508       ;;
17509     esac
17510   fi
17511
17512 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
17513 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
17514
17515 #
17516 # Check to make sure the PIC flag actually works.
17517 #
17518 if test -n "$lt_prog_compiler_pic"; then
17519
17520 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
17521 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
17522 if test "${lt_prog_compiler_pic_works+set}" = set; then
17523   echo $ECHO_N "(cached) $ECHO_C" >&6
17524 else
17525   lt_prog_compiler_pic_works=no
17526   ac_outfile=conftest.$ac_objext
17527    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17528    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
17529    # Insert the option either (1) after the last *FLAGS variable, or
17530    # (2) before a word containing "conftest.", or (3) at the end.
17531    # Note that $ac_compile itself does not contain backslashes and begins
17532    # with a dollar sign (not a hyphen), so the echo should work correctly.
17533    # The option is referenced via a variable to avoid confusing sed.
17534    lt_compile=`echo "$ac_compile" | $SED \
17535    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17536    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17537    -e 's:$: $lt_compiler_flag:'`
17538    (eval echo "\"\$as_me:17538: $lt_compile\"" >&5)
17539    (eval "$lt_compile" 2>conftest.err)
17540    ac_status=$?
17541    cat conftest.err >&5
17542    echo "$as_me:17542: \$? = $ac_status" >&5
17543    if (exit $ac_status) && test -s "$ac_outfile"; then
17544      # The compiler can only warn and ignore the option if not recognized
17545      # So say no if there are warnings other than the usual output.
17546      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
17547      $SED '/^$/d' conftest.err >conftest.er2
17548      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
17549        lt_prog_compiler_pic_works=yes
17550      fi
17551    fi
17552    $rm conftest*
17553
17554 fi
17555 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
17556 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
17557
17558 if test x"$lt_prog_compiler_pic_works" = xyes; then
17559     case $lt_prog_compiler_pic in
17560      "" | " "*) ;;
17561      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
17562      esac
17563 else
17564     lt_prog_compiler_pic=
17565      lt_prog_compiler_can_build_shared=no
17566 fi
17567
17568 fi
17569 case $host_os in
17570   # For platforms which do not support PIC, -DPIC is meaningless:
17571   *djgpp*)
17572     lt_prog_compiler_pic=
17573     ;;
17574   *)
17575     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
17576     ;;
17577 esac
17578
17579 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17580 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
17581 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
17582   echo $ECHO_N "(cached) $ECHO_C" >&6
17583 else
17584   lt_cv_prog_compiler_c_o=no
17585    $rm -r conftest 2>/dev/null
17586    mkdir conftest
17587    cd conftest
17588    mkdir out
17589    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17590
17591    lt_compiler_flag="-o out/conftest2.$ac_objext"
17592    # Insert the option either (1) after the last *FLAGS variable, or
17593    # (2) before a word containing "conftest.", or (3) at the end.
17594    # Note that $ac_compile itself does not contain backslashes and begins
17595    # with a dollar sign (not a hyphen), so the echo should work correctly.
17596    lt_compile=`echo "$ac_compile" | $SED \
17597    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17598    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17599    -e 's:$: $lt_compiler_flag:'`
17600    (eval echo "\"\$as_me:17600: $lt_compile\"" >&5)
17601    (eval "$lt_compile" 2>out/conftest.err)
17602    ac_status=$?
17603    cat out/conftest.err >&5
17604    echo "$as_me:17604: \$? = $ac_status" >&5
17605    if (exit $ac_status) && test -s out/conftest2.$ac_objext
17606    then
17607      # The compiler can only warn and ignore the option if not recognized
17608      # So say no if there are warnings
17609      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
17610      $SED '/^$/d' out/conftest.err >out/conftest.er2
17611      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17612        lt_cv_prog_compiler_c_o=yes
17613      fi
17614    fi
17615    chmod u+w . 2>&5
17616    $rm conftest*
17617    # SGI C++ compiler will create directory out/ii_files/ for
17618    # template instantiation
17619    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17620    $rm out/* && rmdir out
17621    cd ..
17622    rmdir conftest
17623    $rm conftest*
17624
17625 fi
17626 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
17627 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
17628
17629
17630 hard_links="nottested"
17631 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
17632   # do not overwrite the value of need_locks provided by the user
17633   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17634 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
17635   hard_links=yes
17636   $rm conftest*
17637   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17638   touch conftest.a
17639   ln conftest.a conftest.b 2>&5 || hard_links=no
17640   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17641   echo "$as_me:$LINENO: result: $hard_links" >&5
17642 echo "${ECHO_T}$hard_links" >&6
17643   if test "$hard_links" = no; then
17644     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17645 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17646     need_locks=warn
17647   fi
17648 else
17649   need_locks=no
17650 fi
17651
17652 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17653 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
17654
17655   runpath_var=
17656   allow_undefined_flag=
17657   enable_shared_with_static_runtimes=no
17658   archive_cmds=
17659   archive_expsym_cmds=
17660   old_archive_From_new_cmds=
17661   old_archive_from_expsyms_cmds=
17662   export_dynamic_flag_spec=
17663   whole_archive_flag_spec=
17664   thread_safe_flag_spec=
17665   hardcode_libdir_flag_spec=
17666   hardcode_libdir_flag_spec_ld=
17667   hardcode_libdir_separator=
17668   hardcode_direct=no
17669   hardcode_minus_L=no
17670   hardcode_shlibpath_var=unsupported
17671   link_all_deplibs=unknown
17672   hardcode_automatic=no
17673   module_cmds=
17674   module_expsym_cmds=
17675   always_export_symbols=no
17676   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17677   # include_expsyms should be a list of space-separated symbols to be *always*
17678   # included in the symbol list
17679   include_expsyms=
17680   # exclude_expsyms can be an extended regexp of symbols to exclude
17681   # it will be wrapped by ` (' and `)$', so one must not match beginning or
17682   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17683   # as well as any symbol that contains `d'.
17684   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
17685   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17686   # platforms (ab)use it in PIC code, but their linkers get confused if
17687   # the symbol is explicitly referenced.  Since portable code cannot
17688   # rely on this symbol name, it's probably fine to never include it in
17689   # preloaded symbol tables.
17690   extract_expsyms_cmds=
17691   # Just being paranoid about ensuring that cc_basename is set.
17692   for cc_temp in $compiler""; do
17693   case $cc_temp in
17694     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17695     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17696     \-*) ;;
17697     *) break;;
17698   esac
17699 done
17700 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17701
17702   case $host_os in
17703   cygwin* | mingw* | pw32*)
17704     # FIXME: the MSVC++ port hasn't been tested in a loooong time
17705     # When not using gcc, we currently assume that we are using
17706     # Microsoft Visual C++.
17707     if test "$GCC" != yes; then
17708       with_gnu_ld=no
17709     fi
17710     ;;
17711   openbsd*)
17712     with_gnu_ld=no
17713     ;;
17714   esac
17715
17716   ld_shlibs=yes
17717   if test "$with_gnu_ld" = yes; then
17718     # If archive_cmds runs LD, not CC, wlarc should be empty
17719     wlarc='${wl}'
17720
17721     # Set some defaults for GNU ld with shared library support. These
17722     # are reset later if shared libraries are not supported. Putting them
17723     # here allows them to be overridden if necessary.
17724     runpath_var=LD_RUN_PATH
17725     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
17726     export_dynamic_flag_spec='${wl}--export-dynamic'
17727     # ancient GNU ld didn't support --whole-archive et. al.
17728     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17729         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17730       else
17731         whole_archive_flag_spec=
17732     fi
17733     supports_anon_versioning=no
17734     case `$LD -v 2>/dev/null` in
17735       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17736       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17737       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17738       *\ 2.11.*) ;; # other 2.11 versions
17739       *) supports_anon_versioning=yes ;;
17740     esac
17741
17742     # See if GNU ld supports shared libraries.
17743     case $host_os in
17744     aix3* | aix4* | aix5*)
17745       # On AIX/PPC, the GNU linker is very broken
17746       if test "$host_cpu" != ia64; then
17747         ld_shlibs=no
17748         cat <<EOF 1>&2
17749
17750 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17751 *** to be unable to reliably create shared libraries on AIX.
17752 *** Therefore, libtool is disabling shared libraries support.  If you
17753 *** really care for shared libraries, you may want to modify your PATH
17754 *** so that a non-GNU linker is found, and then restart.
17755
17756 EOF
17757       fi
17758       ;;
17759
17760     amigaos*)
17761       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)'
17762       hardcode_libdir_flag_spec='-L$libdir'
17763       hardcode_minus_L=yes
17764
17765       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17766       # that the semantics of dynamic libraries on AmigaOS, at least up
17767       # to version 4, is to share data among multiple programs linked
17768       # with the same dynamic library.  Since this doesn't match the
17769       # behavior of shared libraries on other platforms, we can't use
17770       # them.
17771       ld_shlibs=no
17772       ;;
17773
17774     beos*)
17775       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17776         allow_undefined_flag=unsupported
17777         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17778         # support --undefined.  This deserves some investigation.  FIXME
17779         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17780       else
17781         ld_shlibs=no
17782       fi
17783       ;;
17784
17785     cygwin* | mingw* | pw32*)
17786       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
17787       # as there is no search path for DLLs.
17788       hardcode_libdir_flag_spec='-L$libdir'
17789       allow_undefined_flag=unsupported
17790       always_export_symbols=no
17791       enable_shared_with_static_runtimes=yes
17792       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17793
17794       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17795         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
17796         # If the export-symbols file already is a .def file (1st line
17797         # is EXPORTS), use it as is; otherwise, prepend...
17798         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17799           cp $export_symbols $output_objdir/$soname.def;
17800         else
17801           echo EXPORTS > $output_objdir/$soname.def;
17802           cat $export_symbols >> $output_objdir/$soname.def;
17803         fi~
17804         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
17805       else
17806         ld_shlibs=no
17807       fi
17808       ;;
17809
17810     linux*)
17811       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17812         tmp_addflag=
17813         case $cc_basename,$host_cpu in
17814         pgcc*)                          # Portland Group C compiler
17815           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'
17816           tmp_addflag=' $pic_flag'
17817           ;;
17818         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
17819           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'
17820           tmp_addflag=' $pic_flag -Mnomain' ;;
17821         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
17822           tmp_addflag=' -i_dynamic' ;;
17823         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
17824           tmp_addflag=' -i_dynamic -nofor_main' ;;
17825         ifc* | ifort*)                  # Intel Fortran compiler
17826           tmp_addflag=' -nofor_main' ;;
17827         esac
17828         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17829
17830         if test $supports_anon_versioning = yes; then
17831           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
17832   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17833   $echo "local: *; };" >> $output_objdir/$libname.ver~
17834           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17835         fi
17836       else
17837         ld_shlibs=no
17838       fi
17839       ;;
17840
17841     netbsd*)
17842       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17843         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17844         wlarc=
17845       else
17846         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17847         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17848       fi
17849       ;;
17850
17851     solaris* | sysv5*)
17852       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17853         ld_shlibs=no
17854         cat <<EOF 1>&2
17855
17856 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17857 *** create shared libraries on Solaris systems.  Therefore, libtool
17858 *** is disabling shared libraries support.  We urge you to upgrade GNU
17859 *** binutils to release 2.9.1 or newer.  Another option is to modify
17860 *** your PATH or compiler configuration so that the native linker is
17861 *** used, and then restart.
17862
17863 EOF
17864       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17865         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17866         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17867       else
17868         ld_shlibs=no
17869       fi
17870       ;;
17871
17872     sunos4*)
17873       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17874       wlarc=
17875       hardcode_direct=yes
17876       hardcode_shlibpath_var=no
17877       ;;
17878
17879     *)
17880       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17881         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17882         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17883       else
17884         ld_shlibs=no
17885       fi
17886       ;;
17887     esac
17888
17889     if test "$ld_shlibs" = no; then
17890       runpath_var=
17891       hardcode_libdir_flag_spec=
17892       export_dynamic_flag_spec=
17893       whole_archive_flag_spec=
17894     fi
17895   else
17896     # PORTME fill in a description of your system's linker (not GNU ld)
17897     case $host_os in
17898     aix3*)
17899       allow_undefined_flag=unsupported
17900       always_export_symbols=yes
17901       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'
17902       # Note: this linker hardcodes the directories in LIBPATH if there
17903       # are no directories specified by -L.
17904       hardcode_minus_L=yes
17905       if test "$GCC" = yes && test -z "$link_static_flag"; then
17906         # Neither direct hardcoding nor static linking is supported with a
17907         # broken collect2.
17908         hardcode_direct=unsupported
17909       fi
17910       ;;
17911
17912     aix4* | aix5*)
17913       if test "$host_cpu" = ia64; then
17914         # On IA64, the linker does run time linking by default, so we don't
17915         # have to do anything special.
17916         aix_use_runtimelinking=no
17917         exp_sym_flag='-Bexport'
17918         no_entry_flag=""
17919       else
17920         # If we're using GNU nm, then we don't want the "-C" option.
17921         # -C means demangle to AIX nm, but means don't demangle with GNU nm
17922         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17923           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'
17924         else
17925           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'
17926         fi
17927         aix_use_runtimelinking=no
17928
17929         # Test if we are trying to use run time linking or normal
17930         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17931         # need to do runtime linking.
17932         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17933           for ld_flag in $LDFLAGS; do
17934           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17935             aix_use_runtimelinking=yes
17936             break
17937           fi
17938           done
17939         esac
17940
17941         exp_sym_flag='-bexport'
17942         no_entry_flag='-bnoentry'
17943       fi
17944
17945       # When large executables or shared objects are built, AIX ld can
17946       # have problems creating the table of contents.  If linking a library
17947       # or program results in "error TOC overflow" add -mminimal-toc to
17948       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17949       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17950
17951       archive_cmds=''
17952       hardcode_direct=yes
17953       hardcode_libdir_separator=':'
17954       link_all_deplibs=yes
17955
17956       if test "$GCC" = yes; then
17957         case $host_os in aix4.[012]|aix4.[012].*)
17958         # We only want to do this on AIX 4.2 and lower, the check
17959         # below for broken collect2 doesn't work under 4.3+
17960           collect2name=`${CC} -print-prog-name=collect2`
17961           if test -f "$collect2name" && \
17962            strings "$collect2name" | grep resolve_lib_name >/dev/null
17963           then
17964           # We have reworked collect2
17965           hardcode_direct=yes
17966           else
17967           # We have old collect2
17968           hardcode_direct=unsupported
17969           # It fails to find uninstalled libraries when the uninstalled
17970           # path is not listed in the libpath.  Setting hardcode_minus_L
17971           # to unsupported forces relinking
17972           hardcode_minus_L=yes
17973           hardcode_libdir_flag_spec='-L$libdir'
17974           hardcode_libdir_separator=
17975           fi
17976         esac
17977         shared_flag='-shared'
17978         if test "$aix_use_runtimelinking" = yes; then
17979           shared_flag="$shared_flag "'${wl}-G'
17980         fi
17981       else
17982         # not using gcc
17983         if test "$host_cpu" = ia64; then
17984         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17985         # chokes on -Wl,-G. The following line is correct:
17986           shared_flag='-G'
17987         else
17988         if test "$aix_use_runtimelinking" = yes; then
17989             shared_flag='${wl}-G'
17990           else
17991             shared_flag='${wl}-bM:SRE'
17992         fi
17993         fi
17994       fi
17995
17996       # It seems that -bexpall does not export symbols beginning with
17997       # underscore (_), so it is better to generate a list of symbols to export.
17998       always_export_symbols=yes
17999       if test "$aix_use_runtimelinking" = yes; then
18000         # Warning - without using the other runtime loading flags (-brtl),
18001         # -berok will link without error, but may produce a broken library.
18002         allow_undefined_flag='-berok'
18003        # Determine the default libpath from the value encoded in an empty executable.
18004        cat >conftest.$ac_ext <<_ACEOF
18005 /* confdefs.h.  */
18006 _ACEOF
18007 cat confdefs.h >>conftest.$ac_ext
18008 cat >>conftest.$ac_ext <<_ACEOF
18009 /* end confdefs.h.  */
18010
18011 int
18012 main ()
18013 {
18014
18015   ;
18016   return 0;
18017 }
18018 _ACEOF
18019 rm -f conftest.$ac_objext conftest$ac_exeext
18020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18021   (eval $ac_link) 2>conftest.er1
18022   ac_status=$?
18023   grep -v '^ *+' conftest.er1 >conftest.err
18024   rm -f conftest.er1
18025   cat conftest.err >&5
18026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18027   (exit $ac_status); } &&
18028          { ac_try='test -z "$ac_c_werror_flag"
18029                          || test ! -s conftest.err'
18030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18031   (eval $ac_try) 2>&5
18032   ac_status=$?
18033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18034   (exit $ac_status); }; } &&
18035          { ac_try='test -s conftest$ac_exeext'
18036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18037   (eval $ac_try) 2>&5
18038   ac_status=$?
18039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18040   (exit $ac_status); }; }; then
18041
18042 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18043 }'`
18044 # Check for a 64-bit object if we didn't find anything.
18045 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; }
18046 }'`; fi
18047 else
18048   echo "$as_me: failed program was:" >&5
18049 sed 's/^/| /' conftest.$ac_ext >&5
18050
18051 fi
18052 rm -f conftest.err conftest.$ac_objext \
18053       conftest$ac_exeext conftest.$ac_ext
18054 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18055
18056        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
18057         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"
18058        else
18059         if test "$host_cpu" = ia64; then
18060           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
18061           allow_undefined_flag="-z nodefs"
18062           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"
18063         else
18064          # Determine the default libpath from the value encoded in an empty executable.
18065          cat >conftest.$ac_ext <<_ACEOF
18066 /* confdefs.h.  */
18067 _ACEOF
18068 cat confdefs.h >>conftest.$ac_ext
18069 cat >>conftest.$ac_ext <<_ACEOF
18070 /* end confdefs.h.  */
18071
18072 int
18073 main ()
18074 {
18075
18076   ;
18077   return 0;
18078 }
18079 _ACEOF
18080 rm -f conftest.$ac_objext conftest$ac_exeext
18081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18082   (eval $ac_link) 2>conftest.er1
18083   ac_status=$?
18084   grep -v '^ *+' conftest.er1 >conftest.err
18085   rm -f conftest.er1
18086   cat conftest.err >&5
18087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18088   (exit $ac_status); } &&
18089          { ac_try='test -z "$ac_c_werror_flag"
18090                          || test ! -s conftest.err'
18091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18092   (eval $ac_try) 2>&5
18093   ac_status=$?
18094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18095   (exit $ac_status); }; } &&
18096          { ac_try='test -s conftest$ac_exeext'
18097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18098   (eval $ac_try) 2>&5
18099   ac_status=$?
18100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18101   (exit $ac_status); }; }; then
18102
18103 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18104 }'`
18105 # Check for a 64-bit object if we didn't find anything.
18106 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; }
18107 }'`; fi
18108 else
18109   echo "$as_me: failed program was:" >&5
18110 sed 's/^/| /' conftest.$ac_ext >&5
18111
18112 fi
18113 rm -f conftest.err conftest.$ac_objext \
18114       conftest$ac_exeext conftest.$ac_ext
18115 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18116
18117          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
18118           # Warning - without using the other run time loading flags,
18119           # -berok will link without error, but may produce a broken library.
18120           no_undefined_flag=' ${wl}-bernotok'
18121           allow_undefined_flag=' ${wl}-berok'
18122           # -bexpall does not export symbols beginning with underscore (_)
18123           always_export_symbols=yes
18124           # Exported symbols can be pulled into shared objects from archives
18125           whole_archive_flag_spec=' '
18126           archive_cmds_need_lc=yes
18127           # This is similar to how AIX traditionally builds its shared libraries.
18128           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'
18129         fi
18130       fi
18131       ;;
18132
18133     amigaos*)
18134       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)'
18135       hardcode_libdir_flag_spec='-L$libdir'
18136       hardcode_minus_L=yes
18137       # see comment about different semantics on the GNU ld section
18138       ld_shlibs=no
18139       ;;
18140
18141     bsdi[45]*)
18142       export_dynamic_flag_spec=-rdynamic
18143       ;;
18144
18145     cygwin* | mingw* | pw32*)
18146       # When not using gcc, we currently assume that we are using
18147       # Microsoft Visual C++.
18148       # hardcode_libdir_flag_spec is actually meaningless, as there is
18149       # no search path for DLLs.
18150       hardcode_libdir_flag_spec=' '
18151       allow_undefined_flag=unsupported
18152       # Tell ltmain to make .lib files, not .a files.
18153       libext=lib
18154       # Tell ltmain to make .dll files, not .so files.
18155       shrext_cmds=".dll"
18156       # FIXME: Setting linknames here is a bad hack.
18157       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18158       # The linker will automatically build a .lib file if we build a DLL.
18159       old_archive_From_new_cmds='true'
18160       # FIXME: Should let the user specify the lib program.
18161       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
18162       fix_srcfile_path='`cygpath -w "$srcfile"`'
18163       enable_shared_with_static_runtimes=yes
18164       ;;
18165
18166     darwin* | rhapsody*)
18167       case $host_os in
18168         rhapsody* | darwin1.[012])
18169          allow_undefined_flag='${wl}-undefined ${wl}suppress'
18170          ;;
18171        *) # Darwin 1.3 on
18172          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18173            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18174          else
18175            case ${MACOSX_DEPLOYMENT_TARGET} in
18176              10.[012])
18177                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18178                ;;
18179              10.*)
18180                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
18181                ;;
18182            esac
18183          fi
18184          ;;
18185       esac
18186       archive_cmds_need_lc=no
18187       hardcode_direct=no
18188       hardcode_automatic=yes
18189       hardcode_shlibpath_var=unsupported
18190       whole_archive_flag_spec=''
18191       link_all_deplibs=yes
18192     if test "$GCC" = yes ; then
18193         output_verbose_link_cmd='echo'
18194         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18195       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18196       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18197       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}'
18198       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}'
18199     else
18200       case $cc_basename in
18201         xlc*)
18202          output_verbose_link_cmd='echo'
18203          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
18204          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18205           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18206          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}'
18207           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}'
18208           ;;
18209        *)
18210          ld_shlibs=no
18211           ;;
18212       esac
18213     fi
18214       ;;
18215
18216     dgux*)
18217       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18218       hardcode_libdir_flag_spec='-L$libdir'
18219       hardcode_shlibpath_var=no
18220       ;;
18221
18222     freebsd1*)
18223       ld_shlibs=no
18224       ;;
18225
18226     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18227     # support.  Future versions do this automatically, but an explicit c++rt0.o
18228     # does not break anything, and helps significantly (at the cost of a little
18229     # extra space).
18230     freebsd2.2*)
18231       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18232       hardcode_libdir_flag_spec='-R$libdir'
18233       hardcode_direct=yes
18234       hardcode_shlibpath_var=no
18235       ;;
18236
18237     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18238     freebsd2*)
18239       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18240       hardcode_direct=yes
18241       hardcode_minus_L=yes
18242       hardcode_shlibpath_var=no
18243       ;;
18244
18245     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18246     freebsd* | kfreebsd*-gnu | dragonfly*)
18247       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18248       hardcode_libdir_flag_spec='-R$libdir'
18249       hardcode_direct=yes
18250       hardcode_shlibpath_var=no
18251       ;;
18252
18253     hpux9*)
18254       if test "$GCC" = yes; then
18255         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'
18256       else
18257         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'
18258       fi
18259       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
18260       hardcode_libdir_separator=:
18261       hardcode_direct=yes
18262
18263       # hardcode_minus_L: Not really in the search PATH,
18264       # but as the default location of the library.
18265       hardcode_minus_L=yes
18266       export_dynamic_flag_spec='${wl}-E'
18267       ;;
18268
18269     hpux10* | hpux11*)
18270       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18271         case $host_cpu in
18272         hppa*64*|ia64*)
18273           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18274           ;;
18275         *)
18276           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18277           ;;
18278         esac
18279       else
18280         case $host_cpu in
18281         hppa*64*|ia64*)
18282           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
18283           ;;
18284         *)
18285           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18286           ;;
18287         esac
18288       fi
18289       if test "$with_gnu_ld" = no; then
18290         case $host_cpu in
18291         hppa*64*)
18292           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
18293           hardcode_libdir_flag_spec_ld='+b $libdir'
18294           hardcode_libdir_separator=:
18295           hardcode_direct=no
18296           hardcode_shlibpath_var=no
18297           ;;
18298         ia64*)
18299           hardcode_libdir_flag_spec='-L$libdir'
18300           hardcode_direct=no
18301           hardcode_shlibpath_var=no
18302
18303           # hardcode_minus_L: Not really in the search PATH,
18304           # but as the default location of the library.
18305           hardcode_minus_L=yes
18306           ;;
18307         *)
18308           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
18309           hardcode_libdir_separator=:
18310           hardcode_direct=yes
18311           export_dynamic_flag_spec='${wl}-E'
18312
18313           # hardcode_minus_L: Not really in the search PATH,
18314           # but as the default location of the library.
18315           hardcode_minus_L=yes
18316           ;;
18317         esac
18318       fi
18319       ;;
18320
18321     irix5* | irix6* | nonstopux*)
18322       if test "$GCC" = yes; then
18323         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'
18324       else
18325         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'
18326         hardcode_libdir_flag_spec_ld='-rpath $libdir'
18327       fi
18328       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
18329       hardcode_libdir_separator=:
18330       link_all_deplibs=yes
18331       ;;
18332
18333     netbsd*)
18334       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18335         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
18336       else
18337         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
18338       fi
18339       hardcode_libdir_flag_spec='-R$libdir'
18340       hardcode_direct=yes
18341       hardcode_shlibpath_var=no
18342       ;;
18343
18344     newsos6)
18345       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18346       hardcode_direct=yes
18347       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
18348       hardcode_libdir_separator=:
18349       hardcode_shlibpath_var=no
18350       ;;
18351
18352     openbsd*)
18353       hardcode_direct=yes
18354       hardcode_shlibpath_var=no
18355       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18356         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18357         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18358         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
18359         export_dynamic_flag_spec='${wl}-E'
18360       else
18361        case $host_os in
18362          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18363            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18364            hardcode_libdir_flag_spec='-R$libdir'
18365            ;;
18366          *)
18367            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18368            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
18369            ;;
18370        esac
18371       fi
18372       ;;
18373
18374     os2*)
18375       hardcode_libdir_flag_spec='-L$libdir'
18376       hardcode_minus_L=yes
18377       allow_undefined_flag=unsupported
18378       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'
18379       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18380       ;;
18381
18382     osf3*)
18383       if test "$GCC" = yes; then
18384         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
18385         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'
18386       else
18387         allow_undefined_flag=' -expect_unresolved \*'
18388         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'
18389       fi
18390       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
18391       hardcode_libdir_separator=:
18392       ;;
18393
18394     osf4* | osf5*)      # as osf3* with the addition of -msym flag
18395       if test "$GCC" = yes; then
18396         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
18397         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'
18398         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
18399       else
18400         allow_undefined_flag=' -expect_unresolved \*'
18401         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'
18402         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
18403         $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'
18404
18405         # Both c and cxx compiler support -rpath directly
18406         hardcode_libdir_flag_spec='-rpath $libdir'
18407       fi
18408       hardcode_libdir_separator=:
18409       ;;
18410
18411     sco3.2v5*)
18412       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18413       hardcode_shlibpath_var=no
18414       export_dynamic_flag_spec='${wl}-Bexport'
18415       runpath_var=LD_RUN_PATH
18416       hardcode_runpath_var=yes
18417       ;;
18418
18419     solaris*)
18420       no_undefined_flag=' -z text'
18421       if test "$GCC" = yes; then
18422         wlarc='${wl}'
18423         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18424         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18425           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18426       else
18427         wlarc=''
18428         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18429         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18430         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18431       fi
18432       hardcode_libdir_flag_spec='-R$libdir'
18433       hardcode_shlibpath_var=no
18434       case $host_os in
18435       solaris2.[0-5] | solaris2.[0-5].*) ;;
18436       *)
18437         # The compiler driver will combine linker options so we
18438         # cannot just pass the convience library names through
18439         # without $wl, iff we do not link with $LD.
18440         # Luckily, gcc supports the same syntax we need for Sun Studio.
18441         # Supported since Solaris 2.6 (maybe 2.5.1?)
18442         case $wlarc in
18443         '')
18444           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
18445         *)
18446           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' ;;
18447         esac ;;
18448       esac
18449       link_all_deplibs=yes
18450       ;;
18451
18452     sunos4*)
18453       if test "x$host_vendor" = xsequent; then
18454         # Use $CC to link under sequent, because it throws in some extra .o
18455         # files that make .init and .fini sections work.
18456         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18457       else
18458         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18459       fi
18460       hardcode_libdir_flag_spec='-L$libdir'
18461       hardcode_direct=yes
18462       hardcode_minus_L=yes
18463       hardcode_shlibpath_var=no
18464       ;;
18465
18466     sysv4)
18467       case $host_vendor in
18468         sni)
18469           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18470           hardcode_direct=yes # is this really true???
18471         ;;
18472         siemens)
18473           ## LD is ld it makes a PLAMLIB
18474           ## CC just makes a GrossModule.
18475           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18476           reload_cmds='$CC -r -o $output$reload_objs'
18477           hardcode_direct=no
18478         ;;
18479         motorola)
18480           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18481           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
18482         ;;
18483       esac
18484       runpath_var='LD_RUN_PATH'
18485       hardcode_shlibpath_var=no
18486       ;;
18487
18488     sysv4.3*)
18489       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18490       hardcode_shlibpath_var=no
18491       export_dynamic_flag_spec='-Bexport'
18492       ;;
18493
18494     sysv4*MP*)
18495       if test -d /usr/nec; then
18496         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18497         hardcode_shlibpath_var=no
18498         runpath_var=LD_RUN_PATH
18499         hardcode_runpath_var=yes
18500         ld_shlibs=yes
18501       fi
18502       ;;
18503
18504     sysv4.2uw2*)
18505       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18506       hardcode_direct=yes
18507       hardcode_minus_L=no
18508       hardcode_shlibpath_var=no
18509       hardcode_runpath_var=yes
18510       runpath_var=LD_RUN_PATH
18511       ;;
18512
18513    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
18514       no_undefined_flag='${wl}-z ${wl}text'
18515       if test "$GCC" = yes; then
18516         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18517       else
18518         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18519       fi
18520       runpath_var='LD_RUN_PATH'
18521       hardcode_shlibpath_var=no
18522       ;;
18523
18524     sysv5*)
18525       no_undefined_flag=' -z text'
18526       # $CC -shared without GNU ld will not create a library from C++
18527       # object files and a static libstdc++, better avoid it by now
18528       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18529       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18530                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18531       hardcode_libdir_flag_spec=
18532       hardcode_shlibpath_var=no
18533       runpath_var='LD_RUN_PATH'
18534       ;;
18535
18536     uts4*)
18537       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18538       hardcode_libdir_flag_spec='-L$libdir'
18539       hardcode_shlibpath_var=no
18540       ;;
18541
18542     *)
18543       ld_shlibs=no
18544       ;;
18545     esac
18546   fi
18547
18548 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
18549 echo "${ECHO_T}$ld_shlibs" >&6
18550 test "$ld_shlibs" = no && can_build_shared=no
18551
18552 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18553 if test "$GCC" = yes; then
18554   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18555 fi
18556
18557 #
18558 # Do we need to explicitly link libc?
18559 #
18560 case "x$archive_cmds_need_lc" in
18561 x|xyes)
18562   # Assume -lc should be added
18563   archive_cmds_need_lc=yes
18564
18565   if test "$enable_shared" = yes && test "$GCC" = yes; then
18566     case $archive_cmds in
18567     *'~'*)
18568       # FIXME: we may have to deal with multi-command sequences.
18569       ;;
18570     '$CC '*)
18571       # Test whether the compiler implicitly links with -lc since on some
18572       # systems, -lgcc has to come before -lc. If gcc already passes -lc
18573       # to ld, don't add -lc before -lgcc.
18574       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18575 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
18576       $rm conftest*
18577       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18578
18579       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18580   (eval $ac_compile) 2>&5
18581   ac_status=$?
18582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18583   (exit $ac_status); } 2>conftest.err; then
18584         soname=conftest
18585         lib=conftest
18586         libobjs=conftest.$ac_objext
18587         deplibs=
18588         wl=$lt_prog_compiler_wl
18589         compiler_flags=-v
18590         linker_flags=-v
18591         verstring=
18592         output_objdir=.
18593         libname=conftest
18594         lt_save_allow_undefined_flag=$allow_undefined_flag
18595         allow_undefined_flag=
18596         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18597   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18598   ac_status=$?
18599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18600   (exit $ac_status); }
18601         then
18602           archive_cmds_need_lc=no
18603         else
18604           archive_cmds_need_lc=yes
18605         fi
18606         allow_undefined_flag=$lt_save_allow_undefined_flag
18607       else
18608         cat conftest.err 1>&5
18609       fi
18610       $rm conftest*
18611       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
18612 echo "${ECHO_T}$archive_cmds_need_lc" >&6
18613       ;;
18614     esac
18615   fi
18616   ;;
18617 esac
18618
18619 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18620 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
18621 library_names_spec=
18622 libname_spec='lib$name'
18623 soname_spec=
18624 shrext_cmds=".so"
18625 postinstall_cmds=
18626 postuninstall_cmds=
18627 finish_cmds=
18628 finish_eval=
18629 shlibpath_var=
18630 shlibpath_overrides_runpath=unknown
18631 version_type=none
18632 dynamic_linker="$host_os ld.so"
18633 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18634 if test "$GCC" = yes; then
18635   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18636   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18637     # if the path contains ";" then we assume it to be the separator
18638     # otherwise default to the standard path separator (i.e. ":") - it is
18639     # assumed that no part of a normal pathname contains ";" but that should
18640     # okay in the real world where ";" in dirpaths is itself problematic.
18641     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18642   else
18643     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18644   fi
18645 else
18646   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18647 fi
18648 need_lib_prefix=unknown
18649 hardcode_into_libs=no
18650
18651 # when you set need_version to no, make sure it does not cause -set_version
18652 # flags to be left without arguments
18653 need_version=unknown
18654
18655 case $host_os in
18656 aix3*)
18657   version_type=linux
18658   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18659   shlibpath_var=LIBPATH
18660
18661   # AIX 3 has no versioning support, so we append a major version to the name.
18662   soname_spec='${libname}${release}${shared_ext}$major'
18663   ;;
18664
18665 aix4* | aix5*)
18666   version_type=linux
18667   need_lib_prefix=no
18668   need_version=no
18669   hardcode_into_libs=yes
18670   if test "$host_cpu" = ia64; then
18671     # AIX 5 supports IA64
18672     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18673     shlibpath_var=LD_LIBRARY_PATH
18674   else
18675     # With GCC up to 2.95.x, collect2 would create an import file
18676     # for dependence libraries.  The import file would start with
18677     # the line `#! .'.  This would cause the generated library to
18678     # depend on `.', always an invalid library.  This was fixed in
18679     # development snapshots of GCC prior to 3.0.
18680     case $host_os in
18681       aix4 | aix4.[01] | aix4.[01].*)
18682       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18683            echo ' yes '
18684            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18685         :
18686       else
18687         can_build_shared=no
18688       fi
18689       ;;
18690     esac
18691     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18692     # soname into executable. Probably we can add versioning support to
18693     # collect2, so additional links can be useful in future.
18694     if test "$aix_use_runtimelinking" = yes; then
18695       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18696       # instead of lib<name>.a to let people know that these are not
18697       # typical AIX shared libraries.
18698       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18699     else
18700       # We preserve .a as extension for shared libraries through AIX4.2
18701       # and later when we are not doing run time linking.
18702       library_names_spec='${libname}${release}.a $libname.a'
18703       soname_spec='${libname}${release}${shared_ext}$major'
18704     fi
18705     shlibpath_var=LIBPATH
18706   fi
18707   ;;
18708
18709 amigaos*)
18710   library_names_spec='$libname.ixlibrary $libname.a'
18711   # Create ${libname}_ixlibrary.a entries in /sys/libs.
18712   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'
18713   ;;
18714
18715 beos*)
18716   library_names_spec='${libname}${shared_ext}'
18717   dynamic_linker="$host_os ld.so"
18718   shlibpath_var=LIBRARY_PATH
18719   ;;
18720
18721 bsdi[45]*)
18722   version_type=linux
18723   need_version=no
18724   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18725   soname_spec='${libname}${release}${shared_ext}$major'
18726   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18727   shlibpath_var=LD_LIBRARY_PATH
18728   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18729   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18730   # the default ld.so.conf also contains /usr/contrib/lib and
18731   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18732   # libtool to hard-code these into programs
18733   ;;
18734
18735 cygwin* | mingw* | pw32*)
18736   version_type=windows
18737   shrext_cmds=".dll"
18738   need_version=no
18739   need_lib_prefix=no
18740
18741   case $GCC,$host_os in
18742   yes,cygwin* | yes,mingw* | yes,pw32*)
18743     library_names_spec='$libname.dll.a'
18744     # DLL is installed to $(libdir)/../bin by postinstall_cmds
18745     postinstall_cmds='base_file=`basename \${file}`~
18746       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18747       dldir=$destdir/`dirname \$dlpath`~
18748       test -d \$dldir || mkdir -p \$dldir~
18749       $install_prog $dir/$dlname \$dldir/$dlname~
18750       chmod a+x \$dldir/$dlname'
18751     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18752       dlpath=$dir/\$dldll~
18753        $rm \$dlpath'
18754     shlibpath_overrides_runpath=yes
18755
18756     case $host_os in
18757     cygwin*)
18758       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18759       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18760       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18761       ;;
18762     mingw*)
18763       # MinGW DLLs use traditional 'lib' prefix
18764       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18765       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18766       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18767         # It is most probably a Windows format PATH printed by
18768         # mingw gcc, but we are running on Cygwin. Gcc prints its search
18769         # path with ; separators, and with drive letters. We can handle the
18770         # drive letters (cygwin fileutils understands them), so leave them,
18771         # especially as we might pass files found there to a mingw objdump,
18772         # which wouldn't understand a cygwinified path. Ahh.
18773         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18774       else
18775         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18776       fi
18777       ;;
18778     pw32*)
18779       # pw32 DLLs use 'pw' prefix rather than 'lib'
18780       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18781       ;;
18782     esac
18783     ;;
18784
18785   *)
18786     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18787     ;;
18788   esac
18789   dynamic_linker='Win32 ld.exe'
18790   # FIXME: first we should search . and the directory the executable is in
18791   shlibpath_var=PATH
18792   ;;
18793
18794 darwin* | rhapsody*)
18795   dynamic_linker="$host_os dyld"
18796   version_type=darwin
18797   need_lib_prefix=no
18798   need_version=no
18799   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18800   soname_spec='${libname}${release}${major}$shared_ext'
18801   shlibpath_overrides_runpath=yes
18802   shlibpath_var=DYLD_LIBRARY_PATH
18803   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18804   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18805   if test "$GCC" = yes; then
18806     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"`
18807   else
18808     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18809   fi
18810   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18811   ;;
18812
18813 dgux*)
18814   version_type=linux
18815   need_lib_prefix=no
18816   need_version=no
18817   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18818   soname_spec='${libname}${release}${shared_ext}$major'
18819   shlibpath_var=LD_LIBRARY_PATH
18820   ;;
18821
18822 freebsd1*)
18823   dynamic_linker=no
18824   ;;
18825
18826 kfreebsd*-gnu)
18827   version_type=linux
18828   need_lib_prefix=no
18829   need_version=no
18830   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18831   soname_spec='${libname}${release}${shared_ext}$major'
18832   shlibpath_var=LD_LIBRARY_PATH
18833   shlibpath_overrides_runpath=no
18834   hardcode_into_libs=yes
18835   dynamic_linker='GNU ld.so'
18836   ;;
18837
18838 freebsd* | dragonfly*)
18839   # DragonFly does not have aout.  When/if they implement a new
18840   # versioning mechanism, adjust this.
18841   if test -x /usr/bin/objformat; then
18842     objformat=`/usr/bin/objformat`
18843   else
18844     case $host_os in
18845     freebsd[123]*) objformat=aout ;;
18846     *) objformat=elf ;;
18847     esac
18848   fi
18849   version_type=freebsd-$objformat
18850   case $version_type in
18851     freebsd-elf*)
18852       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18853       need_version=no
18854       need_lib_prefix=no
18855       ;;
18856     freebsd-*)
18857       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18858       need_version=yes
18859       ;;
18860   esac
18861   shlibpath_var=LD_LIBRARY_PATH
18862   case $host_os in
18863   freebsd2*)
18864     shlibpath_overrides_runpath=yes
18865     ;;
18866   freebsd3.[01]* | freebsdelf3.[01]*)
18867     shlibpath_overrides_runpath=yes
18868     hardcode_into_libs=yes
18869     ;;
18870   *) # from 3.2 on
18871     shlibpath_overrides_runpath=no
18872     hardcode_into_libs=yes
18873     ;;
18874   esac
18875   ;;
18876
18877 gnu*)
18878   version_type=linux
18879   need_lib_prefix=no
18880   need_version=no
18881   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18882   soname_spec='${libname}${release}${shared_ext}$major'
18883   shlibpath_var=LD_LIBRARY_PATH
18884   hardcode_into_libs=yes
18885   ;;
18886
18887 hpux9* | hpux10* | hpux11*)
18888   # Give a soname corresponding to the major version so that dld.sl refuses to
18889   # link against other versions.
18890   version_type=sunos
18891   need_lib_prefix=no
18892   need_version=no
18893   case $host_cpu in
18894   ia64*)
18895     shrext_cmds='.so'
18896     hardcode_into_libs=yes
18897     dynamic_linker="$host_os dld.so"
18898     shlibpath_var=LD_LIBRARY_PATH
18899     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18900     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18901     soname_spec='${libname}${release}${shared_ext}$major'
18902     if test "X$HPUX_IA64_MODE" = X32; then
18903       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18904     else
18905       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18906     fi
18907     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18908     ;;
18909    hppa*64*)
18910      shrext_cmds='.sl'
18911      hardcode_into_libs=yes
18912      dynamic_linker="$host_os dld.sl"
18913      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18914      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18915      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18916      soname_spec='${libname}${release}${shared_ext}$major'
18917      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18918      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18919      ;;
18920    *)
18921     shrext_cmds='.sl'
18922     dynamic_linker="$host_os dld.sl"
18923     shlibpath_var=SHLIB_PATH
18924     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18925     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18926     soname_spec='${libname}${release}${shared_ext}$major'
18927     ;;
18928   esac
18929   # HP-UX runs *really* slowly unless shared libraries are mode 555.
18930   postinstall_cmds='chmod 555 $lib'
18931   ;;
18932
18933 irix5* | irix6* | nonstopux*)
18934   case $host_os in
18935     nonstopux*) version_type=nonstopux ;;
18936     *)
18937         if test "$lt_cv_prog_gnu_ld" = yes; then
18938                 version_type=linux
18939         else
18940                 version_type=irix
18941         fi ;;
18942   esac
18943   need_lib_prefix=no
18944   need_version=no
18945   soname_spec='${libname}${release}${shared_ext}$major'
18946   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18947   case $host_os in
18948   irix5* | nonstopux*)
18949     libsuff= shlibsuff=
18950     ;;
18951   *)
18952     case $LD in # libtool.m4 will add one of these switches to LD
18953     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18954       libsuff= shlibsuff= libmagic=32-bit;;
18955     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18956       libsuff=32 shlibsuff=N32 libmagic=N32;;
18957     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18958       libsuff=64 shlibsuff=64 libmagic=64-bit;;
18959     *) libsuff= shlibsuff= libmagic=never-match;;
18960     esac
18961     ;;
18962   esac
18963   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18964   shlibpath_overrides_runpath=no
18965   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18966   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18967   hardcode_into_libs=yes
18968   ;;
18969
18970 # No shared lib support for Linux oldld, aout, or coff.
18971 linux*oldld* | linux*aout* | linux*coff*)
18972   dynamic_linker=no
18973   ;;
18974
18975 # This must be Linux ELF.
18976 linux*)
18977   version_type=linux
18978   need_lib_prefix=no
18979   need_version=no
18980   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18981   soname_spec='${libname}${release}${shared_ext}$major'
18982   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18983   shlibpath_var=LD_LIBRARY_PATH
18984   shlibpath_overrides_runpath=no
18985   # This implies no fast_install, which is unacceptable.
18986   # Some rework will be needed to allow for fast_install
18987   # before this can be enabled.
18988   hardcode_into_libs=yes
18989
18990   # Append ld.so.conf contents to the search path
18991   if test -f /etc/ld.so.conf; then
18992     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' ' '`
18993     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18994   fi
18995
18996   # We used to test for /lib/ld.so.1 and disable shared libraries on
18997   # powerpc, because MkLinux only supported shared libraries with the
18998   # GNU dynamic linker.  Since this was broken with cross compilers,
18999   # most powerpc-linux boxes support dynamic linking these days and
19000   # people can always --disable-shared, the test was removed, and we
19001   # assume the GNU/Linux dynamic linker is in use.
19002   dynamic_linker='GNU/Linux ld.so'
19003   ;;
19004
19005 knetbsd*-gnu)
19006   version_type=linux
19007   need_lib_prefix=no
19008   need_version=no
19009   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19010   soname_spec='${libname}${release}${shared_ext}$major'
19011   shlibpath_var=LD_LIBRARY_PATH
19012   shlibpath_overrides_runpath=no
19013   hardcode_into_libs=yes
19014   dynamic_linker='GNU ld.so'
19015   ;;
19016
19017 netbsd*)
19018   version_type=sunos
19019   need_lib_prefix=no
19020   need_version=no
19021   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19022     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19023     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19024     dynamic_linker='NetBSD (a.out) ld.so'
19025   else
19026     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19027     soname_spec='${libname}${release}${shared_ext}$major'
19028     dynamic_linker='NetBSD ld.elf_so'
19029   fi
19030   shlibpath_var=LD_LIBRARY_PATH
19031   shlibpath_overrides_runpath=yes
19032   hardcode_into_libs=yes
19033   ;;
19034
19035 newsos6)
19036   version_type=linux
19037   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19038   shlibpath_var=LD_LIBRARY_PATH
19039   shlibpath_overrides_runpath=yes
19040   ;;
19041
19042 nto-qnx*)
19043   version_type=linux
19044   need_lib_prefix=no
19045   need_version=no
19046   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19047   soname_spec='${libname}${release}${shared_ext}$major'
19048   shlibpath_var=LD_LIBRARY_PATH
19049   shlibpath_overrides_runpath=yes
19050   ;;
19051
19052 openbsd*)
19053   version_type=sunos
19054   need_lib_prefix=no
19055   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19056   case $host_os in
19057     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19058     *)                         need_version=no  ;;
19059   esac
19060   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19061   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19062   shlibpath_var=LD_LIBRARY_PATH
19063   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19064     case $host_os in
19065       openbsd2.[89] | openbsd2.[89].*)
19066         shlibpath_overrides_runpath=no
19067         ;;
19068       *)
19069         shlibpath_overrides_runpath=yes
19070         ;;
19071       esac
19072   else
19073     shlibpath_overrides_runpath=yes
19074   fi
19075   ;;
19076
19077 os2*)
19078   libname_spec='$name'
19079   shrext_cmds=".dll"
19080   need_lib_prefix=no
19081   library_names_spec='$libname${shared_ext} $libname.a'
19082   dynamic_linker='OS/2 ld.exe'
19083   shlibpath_var=LIBPATH
19084   ;;
19085
19086 osf3* | osf4* | osf5*)
19087   version_type=osf
19088   need_lib_prefix=no
19089   need_version=no
19090   soname_spec='${libname}${release}${shared_ext}$major'
19091   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19092   shlibpath_var=LD_LIBRARY_PATH
19093   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19094   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19095   ;;
19096
19097 sco3.2v5*)
19098   version_type=osf
19099   soname_spec='${libname}${release}${shared_ext}$major'
19100   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19101   shlibpath_var=LD_LIBRARY_PATH
19102   ;;
19103
19104 solaris*)
19105   version_type=linux
19106   need_lib_prefix=no
19107   need_version=no
19108   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19109   soname_spec='${libname}${release}${shared_ext}$major'
19110   shlibpath_var=LD_LIBRARY_PATH
19111   shlibpath_overrides_runpath=yes
19112   hardcode_into_libs=yes
19113   # ldd complains unless libraries are executable
19114   postinstall_cmds='chmod +x $lib'
19115   ;;
19116
19117 sunos4*)
19118   version_type=sunos
19119   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19120   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19121   shlibpath_var=LD_LIBRARY_PATH
19122   shlibpath_overrides_runpath=yes
19123   if test "$with_gnu_ld" = yes; then
19124     need_lib_prefix=no
19125   fi
19126   need_version=yes
19127   ;;
19128
19129 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
19130   version_type=linux
19131   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19132   soname_spec='${libname}${release}${shared_ext}$major'
19133   shlibpath_var=LD_LIBRARY_PATH
19134   case $host_vendor in
19135     sni)
19136       shlibpath_overrides_runpath=no
19137       need_lib_prefix=no
19138       export_dynamic_flag_spec='${wl}-Blargedynsym'
19139       runpath_var=LD_RUN_PATH
19140       ;;
19141     siemens)
19142       need_lib_prefix=no
19143       ;;
19144     motorola)
19145       need_lib_prefix=no
19146       need_version=no
19147       shlibpath_overrides_runpath=no
19148       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19149       ;;
19150   esac
19151   ;;
19152
19153 sysv4*MP*)
19154   if test -d /usr/nec ;then
19155     version_type=linux
19156     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19157     soname_spec='$libname${shared_ext}.$major'
19158     shlibpath_var=LD_LIBRARY_PATH
19159   fi
19160   ;;
19161
19162 uts4*)
19163   version_type=linux
19164   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19165   soname_spec='${libname}${release}${shared_ext}$major'
19166   shlibpath_var=LD_LIBRARY_PATH
19167   ;;
19168
19169 *)
19170   dynamic_linker=no
19171   ;;
19172 esac
19173 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19174 echo "${ECHO_T}$dynamic_linker" >&6
19175 test "$dynamic_linker" = no && can_build_shared=no
19176
19177 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19178 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
19179 hardcode_action=
19180 if test -n "$hardcode_libdir_flag_spec" || \
19181    test -n "$runpath_var" || \
19182    test "X$hardcode_automatic" = "Xyes" ; then
19183
19184   # We can hardcode non-existant directories.
19185   if test "$hardcode_direct" != no &&
19186      # If the only mechanism to avoid hardcoding is shlibpath_var, we
19187      # have to relink, otherwise we might link with an installed library
19188      # when we should be linking with a yet-to-be-installed one
19189      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
19190      test "$hardcode_minus_L" != no; then
19191     # Linking always hardcodes the temporary library directory.
19192     hardcode_action=relink
19193   else
19194     # We can link without hardcoding, and we can hardcode nonexisting dirs.
19195     hardcode_action=immediate
19196   fi
19197 else
19198   # We cannot hardcode anything, or else we can only hardcode existing
19199   # directories.
19200   hardcode_action=unsupported
19201 fi
19202 echo "$as_me:$LINENO: result: $hardcode_action" >&5
19203 echo "${ECHO_T}$hardcode_action" >&6
19204
19205 if test "$hardcode_action" = relink; then
19206   # Fast installation is not supported
19207   enable_fast_install=no
19208 elif test "$shlibpath_overrides_runpath" = yes ||
19209      test "$enable_shared" = no; then
19210   # Fast installation is not necessary
19211   enable_fast_install=needless
19212 fi
19213
19214 striplib=
19215 old_striplib=
19216 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
19217 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
19218 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
19219   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
19220   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
19221   echo "$as_me:$LINENO: result: yes" >&5
19222 echo "${ECHO_T}yes" >&6
19223 else
19224 # FIXME - insert some real tests, host_os isn't really good enough
19225   case $host_os in
19226    darwin*)
19227        if test -n "$STRIP" ; then
19228          striplib="$STRIP -x"
19229          echo "$as_me:$LINENO: result: yes" >&5
19230 echo "${ECHO_T}yes" >&6
19231        else
19232   echo "$as_me:$LINENO: result: no" >&5
19233 echo "${ECHO_T}no" >&6
19234 fi
19235        ;;
19236    *)
19237   echo "$as_me:$LINENO: result: no" >&5
19238 echo "${ECHO_T}no" >&6
19239     ;;
19240   esac
19241 fi
19242
19243 if test "x$enable_dlopen" != xyes; then
19244   enable_dlopen=unknown
19245   enable_dlopen_self=unknown
19246   enable_dlopen_self_static=unknown
19247 else
19248   lt_cv_dlopen=no
19249   lt_cv_dlopen_libs=
19250
19251   case $host_os in
19252   beos*)
19253     lt_cv_dlopen="load_add_on"
19254     lt_cv_dlopen_libs=
19255     lt_cv_dlopen_self=yes
19256     ;;
19257
19258   mingw* | pw32*)
19259     lt_cv_dlopen="LoadLibrary"
19260     lt_cv_dlopen_libs=
19261    ;;
19262
19263   cygwin*)
19264     lt_cv_dlopen="dlopen"
19265     lt_cv_dlopen_libs=
19266    ;;
19267
19268   darwin*)
19269   # if libdl is installed we need to link against it
19270     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19271 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19272 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19273   echo $ECHO_N "(cached) $ECHO_C" >&6
19274 else
19275   ac_check_lib_save_LIBS=$LIBS
19276 LIBS="-ldl  $LIBS"
19277 cat >conftest.$ac_ext <<_ACEOF
19278 /* confdefs.h.  */
19279 _ACEOF
19280 cat confdefs.h >>conftest.$ac_ext
19281 cat >>conftest.$ac_ext <<_ACEOF
19282 /* end confdefs.h.  */
19283
19284 /* Override any gcc2 internal prototype to avoid an error.  */
19285 #ifdef __cplusplus
19286 extern "C"
19287 #endif
19288 /* We use char because int might match the return type of a gcc2
19289    builtin and then its argument prototype would still apply.  */
19290 char dlopen ();
19291 int
19292 main ()
19293 {
19294 dlopen ();
19295   ;
19296   return 0;
19297 }
19298 _ACEOF
19299 rm -f conftest.$ac_objext conftest$ac_exeext
19300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19301   (eval $ac_link) 2>conftest.er1
19302   ac_status=$?
19303   grep -v '^ *+' conftest.er1 >conftest.err
19304   rm -f conftest.er1
19305   cat conftest.err >&5
19306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19307   (exit $ac_status); } &&
19308          { ac_try='test -z "$ac_c_werror_flag"
19309                          || test ! -s conftest.err'
19310   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19311   (eval $ac_try) 2>&5
19312   ac_status=$?
19313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19314   (exit $ac_status); }; } &&
19315          { ac_try='test -s conftest$ac_exeext'
19316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19317   (eval $ac_try) 2>&5
19318   ac_status=$?
19319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19320   (exit $ac_status); }; }; then
19321   ac_cv_lib_dl_dlopen=yes
19322 else
19323   echo "$as_me: failed program was:" >&5
19324 sed 's/^/| /' conftest.$ac_ext >&5
19325
19326 ac_cv_lib_dl_dlopen=no
19327 fi
19328 rm -f conftest.err conftest.$ac_objext \
19329       conftest$ac_exeext conftest.$ac_ext
19330 LIBS=$ac_check_lib_save_LIBS
19331 fi
19332 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19333 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19334 if test $ac_cv_lib_dl_dlopen = yes; then
19335   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19336 else
19337
19338     lt_cv_dlopen="dyld"
19339     lt_cv_dlopen_libs=
19340     lt_cv_dlopen_self=yes
19341
19342 fi
19343
19344    ;;
19345
19346   *)
19347     echo "$as_me:$LINENO: checking for shl_load" >&5
19348 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
19349 if test "${ac_cv_func_shl_load+set}" = set; then
19350   echo $ECHO_N "(cached) $ECHO_C" >&6
19351 else
19352   cat >conftest.$ac_ext <<_ACEOF
19353 /* confdefs.h.  */
19354 _ACEOF
19355 cat confdefs.h >>conftest.$ac_ext
19356 cat >>conftest.$ac_ext <<_ACEOF
19357 /* end confdefs.h.  */
19358 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
19359    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19360 #define shl_load innocuous_shl_load
19361
19362 /* System header to define __stub macros and hopefully few prototypes,
19363     which can conflict with char shl_load (); below.
19364     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19365     <limits.h> exists even on freestanding compilers.  */
19366
19367 #ifdef __STDC__
19368 # include <limits.h>
19369 #else
19370 # include <assert.h>
19371 #endif
19372
19373 #undef shl_load
19374
19375 /* Override any gcc2 internal prototype to avoid an error.  */
19376 #ifdef __cplusplus
19377 extern "C"
19378 {
19379 #endif
19380 /* We use char because int might match the return type of a gcc2
19381    builtin and then its argument prototype would still apply.  */
19382 char shl_load ();
19383 /* The GNU C library defines this for functions which it implements
19384     to always fail with ENOSYS.  Some functions are actually named
19385     something starting with __ and the normal name is an alias.  */
19386 #if defined (__stub_shl_load) || defined (__stub___shl_load)
19387 choke me
19388 #else
19389 char (*f) () = shl_load;
19390 #endif
19391 #ifdef __cplusplus
19392 }
19393 #endif
19394
19395 int
19396 main ()
19397 {
19398 return f != shl_load;
19399   ;
19400   return 0;
19401 }
19402 _ACEOF
19403 rm -f conftest.$ac_objext conftest$ac_exeext
19404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19405   (eval $ac_link) 2>conftest.er1
19406   ac_status=$?
19407   grep -v '^ *+' conftest.er1 >conftest.err
19408   rm -f conftest.er1
19409   cat conftest.err >&5
19410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19411   (exit $ac_status); } &&
19412          { ac_try='test -z "$ac_c_werror_flag"
19413                          || test ! -s conftest.err'
19414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19415   (eval $ac_try) 2>&5
19416   ac_status=$?
19417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19418   (exit $ac_status); }; } &&
19419          { ac_try='test -s conftest$ac_exeext'
19420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19421   (eval $ac_try) 2>&5
19422   ac_status=$?
19423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19424   (exit $ac_status); }; }; then
19425   ac_cv_func_shl_load=yes
19426 else
19427   echo "$as_me: failed program was:" >&5
19428 sed 's/^/| /' conftest.$ac_ext >&5
19429
19430 ac_cv_func_shl_load=no
19431 fi
19432 rm -f conftest.err conftest.$ac_objext \
19433       conftest$ac_exeext conftest.$ac_ext
19434 fi
19435 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
19436 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
19437 if test $ac_cv_func_shl_load = yes; then
19438   lt_cv_dlopen="shl_load"
19439 else
19440   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
19441 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
19442 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
19443   echo $ECHO_N "(cached) $ECHO_C" >&6
19444 else
19445   ac_check_lib_save_LIBS=$LIBS
19446 LIBS="-ldld  $LIBS"
19447 cat >conftest.$ac_ext <<_ACEOF
19448 /* confdefs.h.  */
19449 _ACEOF
19450 cat confdefs.h >>conftest.$ac_ext
19451 cat >>conftest.$ac_ext <<_ACEOF
19452 /* end confdefs.h.  */
19453
19454 /* Override any gcc2 internal prototype to avoid an error.  */
19455 #ifdef __cplusplus
19456 extern "C"
19457 #endif
19458 /* We use char because int might match the return type of a gcc2
19459    builtin and then its argument prototype would still apply.  */
19460 char shl_load ();
19461 int
19462 main ()
19463 {
19464 shl_load ();
19465   ;
19466   return 0;
19467 }
19468 _ACEOF
19469 rm -f conftest.$ac_objext conftest$ac_exeext
19470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19471   (eval $ac_link) 2>conftest.er1
19472   ac_status=$?
19473   grep -v '^ *+' conftest.er1 >conftest.err
19474   rm -f conftest.er1
19475   cat conftest.err >&5
19476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19477   (exit $ac_status); } &&
19478          { ac_try='test -z "$ac_c_werror_flag"
19479                          || test ! -s conftest.err'
19480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19481   (eval $ac_try) 2>&5
19482   ac_status=$?
19483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19484   (exit $ac_status); }; } &&
19485          { ac_try='test -s conftest$ac_exeext'
19486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19487   (eval $ac_try) 2>&5
19488   ac_status=$?
19489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19490   (exit $ac_status); }; }; then
19491   ac_cv_lib_dld_shl_load=yes
19492 else
19493   echo "$as_me: failed program was:" >&5
19494 sed 's/^/| /' conftest.$ac_ext >&5
19495
19496 ac_cv_lib_dld_shl_load=no
19497 fi
19498 rm -f conftest.err conftest.$ac_objext \
19499       conftest$ac_exeext conftest.$ac_ext
19500 LIBS=$ac_check_lib_save_LIBS
19501 fi
19502 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
19503 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
19504 if test $ac_cv_lib_dld_shl_load = yes; then
19505   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
19506 else
19507   echo "$as_me:$LINENO: checking for dlopen" >&5
19508 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
19509 if test "${ac_cv_func_dlopen+set}" = set; then
19510   echo $ECHO_N "(cached) $ECHO_C" >&6
19511 else
19512   cat >conftest.$ac_ext <<_ACEOF
19513 /* confdefs.h.  */
19514 _ACEOF
19515 cat confdefs.h >>conftest.$ac_ext
19516 cat >>conftest.$ac_ext <<_ACEOF
19517 /* end confdefs.h.  */
19518 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
19519    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19520 #define dlopen innocuous_dlopen
19521
19522 /* System header to define __stub macros and hopefully few prototypes,
19523     which can conflict with char dlopen (); below.
19524     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19525     <limits.h> exists even on freestanding compilers.  */
19526
19527 #ifdef __STDC__
19528 # include <limits.h>
19529 #else
19530 # include <assert.h>
19531 #endif
19532
19533 #undef dlopen
19534
19535 /* Override any gcc2 internal prototype to avoid an error.  */
19536 #ifdef __cplusplus
19537 extern "C"
19538 {
19539 #endif
19540 /* We use char because int might match the return type of a gcc2
19541    builtin and then its argument prototype would still apply.  */
19542 char dlopen ();
19543 /* The GNU C library defines this for functions which it implements
19544     to always fail with ENOSYS.  Some functions are actually named
19545     something starting with __ and the normal name is an alias.  */
19546 #if defined (__stub_dlopen) || defined (__stub___dlopen)
19547 choke me
19548 #else
19549 char (*f) () = dlopen;
19550 #endif
19551 #ifdef __cplusplus
19552 }
19553 #endif
19554
19555 int
19556 main ()
19557 {
19558 return f != dlopen;
19559   ;
19560   return 0;
19561 }
19562 _ACEOF
19563 rm -f conftest.$ac_objext conftest$ac_exeext
19564 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19565   (eval $ac_link) 2>conftest.er1
19566   ac_status=$?
19567   grep -v '^ *+' conftest.er1 >conftest.err
19568   rm -f conftest.er1
19569   cat conftest.err >&5
19570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19571   (exit $ac_status); } &&
19572          { ac_try='test -z "$ac_c_werror_flag"
19573                          || test ! -s conftest.err'
19574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19575   (eval $ac_try) 2>&5
19576   ac_status=$?
19577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19578   (exit $ac_status); }; } &&
19579          { ac_try='test -s conftest$ac_exeext'
19580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19581   (eval $ac_try) 2>&5
19582   ac_status=$?
19583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19584   (exit $ac_status); }; }; then
19585   ac_cv_func_dlopen=yes
19586 else
19587   echo "$as_me: failed program was:" >&5
19588 sed 's/^/| /' conftest.$ac_ext >&5
19589
19590 ac_cv_func_dlopen=no
19591 fi
19592 rm -f conftest.err conftest.$ac_objext \
19593       conftest$ac_exeext conftest.$ac_ext
19594 fi
19595 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
19596 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
19597 if test $ac_cv_func_dlopen = yes; then
19598   lt_cv_dlopen="dlopen"
19599 else
19600   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19601 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19602 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19603   echo $ECHO_N "(cached) $ECHO_C" >&6
19604 else
19605   ac_check_lib_save_LIBS=$LIBS
19606 LIBS="-ldl  $LIBS"
19607 cat >conftest.$ac_ext <<_ACEOF
19608 /* confdefs.h.  */
19609 _ACEOF
19610 cat confdefs.h >>conftest.$ac_ext
19611 cat >>conftest.$ac_ext <<_ACEOF
19612 /* end confdefs.h.  */
19613
19614 /* Override any gcc2 internal prototype to avoid an error.  */
19615 #ifdef __cplusplus
19616 extern "C"
19617 #endif
19618 /* We use char because int might match the return type of a gcc2
19619    builtin and then its argument prototype would still apply.  */
19620 char dlopen ();
19621 int
19622 main ()
19623 {
19624 dlopen ();
19625   ;
19626   return 0;
19627 }
19628 _ACEOF
19629 rm -f conftest.$ac_objext conftest$ac_exeext
19630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19631   (eval $ac_link) 2>conftest.er1
19632   ac_status=$?
19633   grep -v '^ *+' conftest.er1 >conftest.err
19634   rm -f conftest.er1
19635   cat conftest.err >&5
19636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19637   (exit $ac_status); } &&
19638          { ac_try='test -z "$ac_c_werror_flag"
19639                          || test ! -s conftest.err'
19640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19641   (eval $ac_try) 2>&5
19642   ac_status=$?
19643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19644   (exit $ac_status); }; } &&
19645          { ac_try='test -s conftest$ac_exeext'
19646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19647   (eval $ac_try) 2>&5
19648   ac_status=$?
19649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19650   (exit $ac_status); }; }; then
19651   ac_cv_lib_dl_dlopen=yes
19652 else
19653   echo "$as_me: failed program was:" >&5
19654 sed 's/^/| /' conftest.$ac_ext >&5
19655
19656 ac_cv_lib_dl_dlopen=no
19657 fi
19658 rm -f conftest.err conftest.$ac_objext \
19659       conftest$ac_exeext conftest.$ac_ext
19660 LIBS=$ac_check_lib_save_LIBS
19661 fi
19662 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19663 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19664 if test $ac_cv_lib_dl_dlopen = yes; then
19665   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19666 else
19667   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
19668 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
19669 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
19670   echo $ECHO_N "(cached) $ECHO_C" >&6
19671 else
19672   ac_check_lib_save_LIBS=$LIBS
19673 LIBS="-lsvld  $LIBS"
19674 cat >conftest.$ac_ext <<_ACEOF
19675 /* confdefs.h.  */
19676 _ACEOF
19677 cat confdefs.h >>conftest.$ac_ext
19678 cat >>conftest.$ac_ext <<_ACEOF
19679 /* end confdefs.h.  */
19680
19681 /* Override any gcc2 internal prototype to avoid an error.  */
19682 #ifdef __cplusplus
19683 extern "C"
19684 #endif
19685 /* We use char because int might match the return type of a gcc2
19686    builtin and then its argument prototype would still apply.  */
19687 char dlopen ();
19688 int
19689 main ()
19690 {
19691 dlopen ();
19692   ;
19693   return 0;
19694 }
19695 _ACEOF
19696 rm -f conftest.$ac_objext conftest$ac_exeext
19697 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19698   (eval $ac_link) 2>conftest.er1
19699   ac_status=$?
19700   grep -v '^ *+' conftest.er1 >conftest.err
19701   rm -f conftest.er1
19702   cat conftest.err >&5
19703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19704   (exit $ac_status); } &&
19705          { ac_try='test -z "$ac_c_werror_flag"
19706                          || test ! -s conftest.err'
19707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19708   (eval $ac_try) 2>&5
19709   ac_status=$?
19710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19711   (exit $ac_status); }; } &&
19712          { ac_try='test -s conftest$ac_exeext'
19713   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19714   (eval $ac_try) 2>&5
19715   ac_status=$?
19716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19717   (exit $ac_status); }; }; then
19718   ac_cv_lib_svld_dlopen=yes
19719 else
19720   echo "$as_me: failed program was:" >&5
19721 sed 's/^/| /' conftest.$ac_ext >&5
19722
19723 ac_cv_lib_svld_dlopen=no
19724 fi
19725 rm -f conftest.err conftest.$ac_objext \
19726       conftest$ac_exeext conftest.$ac_ext
19727 LIBS=$ac_check_lib_save_LIBS
19728 fi
19729 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
19730 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
19731 if test $ac_cv_lib_svld_dlopen = yes; then
19732   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
19733 else
19734   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
19735 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
19736 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
19737   echo $ECHO_N "(cached) $ECHO_C" >&6
19738 else
19739   ac_check_lib_save_LIBS=$LIBS
19740 LIBS="-ldld  $LIBS"
19741 cat >conftest.$ac_ext <<_ACEOF
19742 /* confdefs.h.  */
19743 _ACEOF
19744 cat confdefs.h >>conftest.$ac_ext
19745 cat >>conftest.$ac_ext <<_ACEOF
19746 /* end confdefs.h.  */
19747
19748 /* Override any gcc2 internal prototype to avoid an error.  */
19749 #ifdef __cplusplus
19750 extern "C"
19751 #endif
19752 /* We use char because int might match the return type of a gcc2
19753    builtin and then its argument prototype would still apply.  */
19754 char dld_link ();
19755 int
19756 main ()
19757 {
19758 dld_link ();
19759   ;
19760   return 0;
19761 }
19762 _ACEOF
19763 rm -f conftest.$ac_objext conftest$ac_exeext
19764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19765   (eval $ac_link) 2>conftest.er1
19766   ac_status=$?
19767   grep -v '^ *+' conftest.er1 >conftest.err
19768   rm -f conftest.er1
19769   cat conftest.err >&5
19770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19771   (exit $ac_status); } &&
19772          { ac_try='test -z "$ac_c_werror_flag"
19773                          || test ! -s conftest.err'
19774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19775   (eval $ac_try) 2>&5
19776   ac_status=$?
19777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19778   (exit $ac_status); }; } &&
19779          { ac_try='test -s conftest$ac_exeext'
19780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19781   (eval $ac_try) 2>&5
19782   ac_status=$?
19783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19784   (exit $ac_status); }; }; then
19785   ac_cv_lib_dld_dld_link=yes
19786 else
19787   echo "$as_me: failed program was:" >&5
19788 sed 's/^/| /' conftest.$ac_ext >&5
19789
19790 ac_cv_lib_dld_dld_link=no
19791 fi
19792 rm -f conftest.err conftest.$ac_objext \
19793       conftest$ac_exeext conftest.$ac_ext
19794 LIBS=$ac_check_lib_save_LIBS
19795 fi
19796 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
19797 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
19798 if test $ac_cv_lib_dld_dld_link = yes; then
19799   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
19800 fi
19801
19802
19803 fi
19804
19805
19806 fi
19807
19808
19809 fi
19810
19811
19812 fi
19813
19814
19815 fi
19816
19817     ;;
19818   esac
19819
19820   if test "x$lt_cv_dlopen" != xno; then
19821     enable_dlopen=yes
19822   else
19823     enable_dlopen=no
19824   fi
19825
19826   case $lt_cv_dlopen in
19827   dlopen)
19828     save_CPPFLAGS="$CPPFLAGS"
19829     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
19830
19831     save_LDFLAGS="$LDFLAGS"
19832     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
19833
19834     save_LIBS="$LIBS"
19835     LIBS="$lt_cv_dlopen_libs $LIBS"
19836
19837     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
19838 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
19839 if test "${lt_cv_dlopen_self+set}" = set; then
19840   echo $ECHO_N "(cached) $ECHO_C" >&6
19841 else
19842           if test "$cross_compiling" = yes; then :
19843   lt_cv_dlopen_self=cross
19844 else
19845   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19846   lt_status=$lt_dlunknown
19847   cat > conftest.$ac_ext <<EOF
19848 #line 19848 "configure"
19849 #include "confdefs.h"
19850
19851 #if HAVE_DLFCN_H
19852 #include <dlfcn.h>
19853 #endif
19854
19855 #include <stdio.h>
19856
19857 #ifdef RTLD_GLOBAL
19858 #  define LT_DLGLOBAL           RTLD_GLOBAL
19859 #else
19860 #  ifdef DL_GLOBAL
19861 #    define LT_DLGLOBAL         DL_GLOBAL
19862 #  else
19863 #    define LT_DLGLOBAL         0
19864 #  endif
19865 #endif
19866
19867 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19868    find out it does not work in some platform. */
19869 #ifndef LT_DLLAZY_OR_NOW
19870 #  ifdef RTLD_LAZY
19871 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
19872 #  else
19873 #    ifdef DL_LAZY
19874 #      define LT_DLLAZY_OR_NOW          DL_LAZY
19875 #    else
19876 #      ifdef RTLD_NOW
19877 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
19878 #      else
19879 #        ifdef DL_NOW
19880 #          define LT_DLLAZY_OR_NOW      DL_NOW
19881 #        else
19882 #          define LT_DLLAZY_OR_NOW      0
19883 #        endif
19884 #      endif
19885 #    endif
19886 #  endif
19887 #endif
19888
19889 #ifdef __cplusplus
19890 extern "C" void exit (int);
19891 #endif
19892
19893 void fnord() { int i=42;}
19894 int main ()
19895 {
19896   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19897   int status = $lt_dlunknown;
19898
19899   if (self)
19900     {
19901       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
19902       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19903       /* dlclose (self); */
19904     }
19905
19906     exit (status);
19907 }
19908 EOF
19909   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19910   (eval $ac_link) 2>&5
19911   ac_status=$?
19912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19913   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19914     (./conftest; exit; ) >&5 2>/dev/null
19915     lt_status=$?
19916     case x$lt_status in
19917       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
19918       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
19919       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
19920     esac
19921   else :
19922     # compilation failed
19923     lt_cv_dlopen_self=no
19924   fi
19925 fi
19926 rm -fr conftest*
19927
19928
19929 fi
19930 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
19931 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
19932
19933     if test "x$lt_cv_dlopen_self" = xyes; then
19934       LDFLAGS="$LDFLAGS $link_static_flag"
19935       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
19936 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
19937 if test "${lt_cv_dlopen_self_static+set}" = set; then
19938   echo $ECHO_N "(cached) $ECHO_C" >&6
19939 else
19940           if test "$cross_compiling" = yes; then :
19941   lt_cv_dlopen_self_static=cross
19942 else
19943   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19944   lt_status=$lt_dlunknown
19945   cat > conftest.$ac_ext <<EOF
19946 #line 19946 "configure"
19947 #include "confdefs.h"
19948
19949 #if HAVE_DLFCN_H
19950 #include <dlfcn.h>
19951 #endif
19952
19953 #include <stdio.h>
19954
19955 #ifdef RTLD_GLOBAL
19956 #  define LT_DLGLOBAL           RTLD_GLOBAL
19957 #else
19958 #  ifdef DL_GLOBAL
19959 #    define LT_DLGLOBAL         DL_GLOBAL
19960 #  else
19961 #    define LT_DLGLOBAL         0
19962 #  endif
19963 #endif
19964
19965 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19966    find out it does not work in some platform. */
19967 #ifndef LT_DLLAZY_OR_NOW
19968 #  ifdef RTLD_LAZY
19969 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
19970 #  else
19971 #    ifdef DL_LAZY
19972 #      define LT_DLLAZY_OR_NOW          DL_LAZY
19973 #    else
19974 #      ifdef RTLD_NOW
19975 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
19976 #      else
19977 #        ifdef DL_NOW
19978 #          define LT_DLLAZY_OR_NOW      DL_NOW
19979 #        else
19980 #          define LT_DLLAZY_OR_NOW      0
19981 #        endif
19982 #      endif
19983 #    endif
19984 #  endif
19985 #endif
19986
19987 #ifdef __cplusplus
19988 extern "C" void exit (int);
19989 #endif
19990
19991 void fnord() { int i=42;}
19992 int main ()
19993 {
19994   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19995   int status = $lt_dlunknown;
19996
19997   if (self)
19998     {
19999       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
20000       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20001       /* dlclose (self); */
20002     }
20003
20004     exit (status);
20005 }
20006 EOF
20007   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20008   (eval $ac_link) 2>&5
20009   ac_status=$?
20010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20011   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
20012     (./conftest; exit; ) >&5 2>/dev/null
20013     lt_status=$?
20014     case x$lt_status in
20015       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
20016       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
20017       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
20018     esac
20019   else :
20020     # compilation failed
20021     lt_cv_dlopen_self_static=no
20022   fi
20023 fi
20024 rm -fr conftest*
20025
20026
20027 fi
20028 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
20029 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
20030     fi
20031
20032     CPPFLAGS="$save_CPPFLAGS"
20033     LDFLAGS="$save_LDFLAGS"
20034     LIBS="$save_LIBS"
20035     ;;
20036   esac
20037
20038   case $lt_cv_dlopen_self in
20039   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
20040   *) enable_dlopen_self=unknown ;;
20041   esac
20042
20043   case $lt_cv_dlopen_self_static in
20044   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
20045   *) enable_dlopen_self_static=unknown ;;
20046   esac
20047 fi
20048
20049
20050 # Report which librarie types wil actually be built
20051 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
20052 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
20053 echo "$as_me:$LINENO: result: $can_build_shared" >&5
20054 echo "${ECHO_T}$can_build_shared" >&6
20055
20056 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
20057 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
20058 test "$can_build_shared" = "no" && enable_shared=no
20059
20060 # On AIX, shared libraries and static libraries use the same namespace, and
20061 # are all built from PIC.
20062 case $host_os in
20063 aix3*)
20064   test "$enable_shared" = yes && enable_static=no
20065   if test -n "$RANLIB"; then
20066     archive_cmds="$archive_cmds~\$RANLIB \$lib"
20067     postinstall_cmds='$RANLIB $lib'
20068   fi
20069   ;;
20070
20071 aix4* | aix5*)
20072   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
20073     test "$enable_shared" = yes && enable_static=no
20074   fi
20075     ;;
20076 esac
20077 echo "$as_me:$LINENO: result: $enable_shared" >&5
20078 echo "${ECHO_T}$enable_shared" >&6
20079
20080 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
20081 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
20082 # Make sure either enable_shared or enable_static is yes.
20083 test "$enable_shared" = yes || enable_static=yes
20084 echo "$as_me:$LINENO: result: $enable_static" >&5
20085 echo "${ECHO_T}$enable_static" >&6
20086
20087 # The else clause should only fire when bootstrapping the
20088 # libtool distribution, otherwise you forgot to ship ltmain.sh
20089 # with your package, and you will get complaints that there are
20090 # no rules to generate ltmain.sh.
20091 if test -f "$ltmain"; then
20092   # See if we are running on zsh, and set the options which allow our commands through
20093   # without removal of \ escapes.
20094   if test -n "${ZSH_VERSION+set}" ; then
20095     setopt NO_GLOB_SUBST
20096   fi
20097   # Now quote all the things that may contain metacharacters while being
20098   # careful not to overquote the AC_SUBSTed values.  We take copies of the
20099   # variables and quote the copies for generation of the libtool script.
20100   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20101     SED SHELL STRIP \
20102     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20103     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20104     deplibs_check_method reload_flag reload_cmds need_locks \
20105     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20106     lt_cv_sys_global_symbol_to_c_name_address \
20107     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20108     old_postinstall_cmds old_postuninstall_cmds \
20109     compiler \
20110     CC \
20111     LD \
20112     lt_prog_compiler_wl \
20113     lt_prog_compiler_pic \
20114     lt_prog_compiler_static \
20115     lt_prog_compiler_no_builtin_flag \
20116     export_dynamic_flag_spec \
20117     thread_safe_flag_spec \
20118     whole_archive_flag_spec \
20119     enable_shared_with_static_runtimes \
20120     old_archive_cmds \
20121     old_archive_from_new_cmds \
20122     predep_objects \
20123     postdep_objects \
20124     predeps \
20125     postdeps \
20126     compiler_lib_search_path \
20127     archive_cmds \
20128     archive_expsym_cmds \
20129     postinstall_cmds \
20130     postuninstall_cmds \
20131     old_archive_from_expsyms_cmds \
20132     allow_undefined_flag \
20133     no_undefined_flag \
20134     export_symbols_cmds \
20135     hardcode_libdir_flag_spec \
20136     hardcode_libdir_flag_spec_ld \
20137     hardcode_libdir_separator \
20138     hardcode_automatic \
20139     module_cmds \
20140     module_expsym_cmds \
20141     lt_cv_prog_compiler_c_o \
20142     exclude_expsyms \
20143     include_expsyms; do
20144
20145     case $var in
20146     old_archive_cmds | \
20147     old_archive_from_new_cmds | \
20148     archive_cmds | \
20149     archive_expsym_cmds | \
20150     module_cmds | \
20151     module_expsym_cmds | \
20152     old_archive_from_expsyms_cmds | \
20153     export_symbols_cmds | \
20154     extract_expsyms_cmds | reload_cmds | finish_cmds | \
20155     postinstall_cmds | postuninstall_cmds | \
20156     old_postinstall_cmds | old_postuninstall_cmds | \
20157     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20158       # Double-quote double-evaled strings.
20159       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20160       ;;
20161     *)
20162       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20163       ;;
20164     esac
20165   done
20166
20167   case $lt_echo in
20168   *'\$0 --fallback-echo"')
20169     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20170     ;;
20171   esac
20172
20173 cfgfile="${ofile}T"
20174   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
20175   $rm -f "$cfgfile"
20176   { echo "$as_me:$LINENO: creating $ofile" >&5
20177 echo "$as_me: creating $ofile" >&6;}
20178
20179   cat <<__EOF__ >> "$cfgfile"
20180 #! $SHELL
20181
20182 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
20183 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
20184 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20185 #
20186 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
20187 # Free Software Foundation, Inc.
20188 #
20189 # This file is part of GNU Libtool:
20190 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
20191 #
20192 # This program is free software; you can redistribute it and/or modify
20193 # it under the terms of the GNU General Public License as published by
20194 # the Free Software Foundation; either version 2 of the License, or
20195 # (at your option) any later version.
20196 #
20197 # This program is distributed in the hope that it will be useful, but
20198 # WITHOUT ANY WARRANTY; without even the implied warranty of
20199 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
20200 # General Public License for more details.
20201 #
20202 # You should have received a copy of the GNU General Public License
20203 # along with this program; if not, write to the Free Software
20204 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20205 #
20206 # As a special exception to the GNU General Public License, if you
20207 # distribute this file as part of a program that contains a
20208 # configuration script generated by Autoconf, you may include it under
20209 # the same distribution terms that you use for the rest of that program.
20210
20211 # A sed program that does not truncate output.
20212 SED=$lt_SED
20213
20214 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20215 Xsed="$SED -e 1s/^X//"
20216
20217 # The HP-UX ksh and POSIX shell print the target directory to stdout
20218 # if CDPATH is set.
20219 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20220
20221 # The names of the tagged configurations supported by this script.
20222 available_tags=
20223
20224 # ### BEGIN LIBTOOL CONFIG
20225
20226 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20227
20228 # Shell to use when invoking shell scripts.
20229 SHELL=$lt_SHELL
20230
20231 # Whether or not to build shared libraries.
20232 build_libtool_libs=$enable_shared
20233
20234 # Whether or not to build static libraries.
20235 build_old_libs=$enable_static
20236
20237 # Whether or not to add -lc for building shared libraries.
20238 build_libtool_need_lc=$archive_cmds_need_lc
20239
20240 # Whether or not to disallow shared libs when runtime libs are static
20241 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20242
20243 # Whether or not to optimize for fast installation.
20244 fast_install=$enable_fast_install
20245
20246 # The host system.
20247 host_alias=$host_alias
20248 host=$host
20249 host_os=$host_os
20250
20251 # The build system.
20252 build_alias=$build_alias
20253 build=$build
20254 build_os=$build_os
20255
20256 # An echo program that does not interpret backslashes.
20257 echo=$lt_echo
20258
20259 # The archiver.
20260 AR=$lt_AR
20261 AR_FLAGS=$lt_AR_FLAGS
20262
20263 # A C compiler.
20264 LTCC=$lt_LTCC
20265
20266 # A language-specific compiler.
20267 CC=$lt_compiler
20268
20269 # Is the compiler the GNU C compiler?
20270 with_gcc=$GCC
20271
20272 # An ERE matcher.
20273 EGREP=$lt_EGREP
20274
20275 # The linker used to build libraries.
20276 LD=$lt_LD
20277
20278 # Whether we need hard or soft links.
20279 LN_S=$lt_LN_S
20280
20281 # A BSD-compatible nm program.
20282 NM=$lt_NM
20283
20284 # A symbol stripping program
20285 STRIP=$lt_STRIP
20286
20287 # Used to examine libraries when file_magic_cmd begins "file"
20288 MAGIC_CMD=$MAGIC_CMD
20289
20290 # Used on cygwin: DLL creation program.
20291 DLLTOOL="$DLLTOOL"
20292
20293 # Used on cygwin: object dumper.
20294 OBJDUMP="$OBJDUMP"
20295
20296 # Used on cygwin: assembler.
20297 AS="$AS"
20298
20299 # The name of the directory that contains temporary libtool files.
20300 objdir=$objdir
20301
20302 # How to create reloadable object files.
20303 reload_flag=$lt_reload_flag
20304 reload_cmds=$lt_reload_cmds
20305
20306 # How to pass a linker flag through the compiler.
20307 wl=$lt_lt_prog_compiler_wl
20308
20309 # Object file suffix (normally "o").
20310 objext="$ac_objext"
20311
20312 # Old archive suffix (normally "a").
20313 libext="$libext"
20314
20315 # Shared library suffix (normally ".so").
20316 shrext_cmds='$shrext_cmds'
20317
20318 # Executable file suffix (normally "").
20319 exeext="$exeext"
20320
20321 # Additional compiler flags for building library objects.
20322 pic_flag=$lt_lt_prog_compiler_pic
20323 pic_mode=$pic_mode
20324
20325 # What is the maximum length of a command?
20326 max_cmd_len=$lt_cv_sys_max_cmd_len
20327
20328 # Does compiler simultaneously support -c and -o options?
20329 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20330
20331 # Must we lock files when doing compilation?
20332 need_locks=$lt_need_locks
20333
20334 # Do we need the lib prefix for modules?
20335 need_lib_prefix=$need_lib_prefix
20336
20337 # Do we need a version for libraries?
20338 need_version=$need_version
20339
20340 # Whether dlopen is supported.
20341 dlopen_support=$enable_dlopen
20342
20343 # Whether dlopen of programs is supported.
20344 dlopen_self=$enable_dlopen_self
20345
20346 # Whether dlopen of statically linked programs is supported.
20347 dlopen_self_static=$enable_dlopen_self_static
20348
20349 # Compiler flag to prevent dynamic linking.
20350 link_static_flag=$lt_lt_prog_compiler_static
20351
20352 # Compiler flag to turn off builtin functions.
20353 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20354
20355 # Compiler flag to allow reflexive dlopens.
20356 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20357
20358 # Compiler flag to generate shared objects directly from archives.
20359 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20360
20361 # Compiler flag to generate thread-safe objects.
20362 thread_safe_flag_spec=$lt_thread_safe_flag_spec
20363
20364 # Library versioning type.
20365 version_type=$version_type
20366
20367 # Format of library name prefix.
20368 libname_spec=$lt_libname_spec
20369
20370 # List of archive names.  First name is the real one, the rest are links.
20371 # The last name is the one that the linker finds with -lNAME.
20372 library_names_spec=$lt_library_names_spec
20373
20374 # The coded name of the library, if different from the real name.
20375 soname_spec=$lt_soname_spec
20376
20377 # Commands used to build and install an old-style archive.
20378 RANLIB=$lt_RANLIB
20379 old_archive_cmds=$lt_old_archive_cmds
20380 old_postinstall_cmds=$lt_old_postinstall_cmds
20381 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20382
20383 # Create an old-style archive from a shared archive.
20384 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20385
20386 # Create a temporary old-style archive to link instead of a shared archive.
20387 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20388
20389 # Commands used to build and install a shared archive.
20390 archive_cmds=$lt_archive_cmds
20391 archive_expsym_cmds=$lt_archive_expsym_cmds
20392 postinstall_cmds=$lt_postinstall_cmds
20393 postuninstall_cmds=$lt_postuninstall_cmds
20394
20395 # Commands used to build a loadable module (assumed same as above if empty)
20396 module_cmds=$lt_module_cmds
20397 module_expsym_cmds=$lt_module_expsym_cmds
20398
20399 # Commands to strip libraries.
20400 old_striplib=$lt_old_striplib
20401 striplib=$lt_striplib
20402
20403 # Dependencies to place before the objects being linked to create a
20404 # shared library.
20405 predep_objects=$lt_predep_objects
20406
20407 # Dependencies to place after the objects being linked to create a
20408 # shared library.
20409 postdep_objects=$lt_postdep_objects
20410
20411 # Dependencies to place before the objects being linked to create a
20412 # shared library.
20413 predeps=$lt_predeps
20414
20415 # Dependencies to place after the objects being linked to create a
20416 # shared library.
20417 postdeps=$lt_postdeps
20418
20419 # The library search path used internally by the compiler when linking
20420 # a shared library.
20421 compiler_lib_search_path=$lt_compiler_lib_search_path
20422
20423 # Method to check whether dependent libraries are shared objects.
20424 deplibs_check_method=$lt_deplibs_check_method
20425
20426 # Command to use when deplibs_check_method == file_magic.
20427 file_magic_cmd=$lt_file_magic_cmd
20428
20429 # Flag that allows shared libraries with undefined symbols to be built.
20430 allow_undefined_flag=$lt_allow_undefined_flag
20431
20432 # Flag that forces no undefined symbols.
20433 no_undefined_flag=$lt_no_undefined_flag
20434
20435 # Commands used to finish a libtool library installation in a directory.
20436 finish_cmds=$lt_finish_cmds
20437
20438 # Same as above, but a single script fragment to be evaled but not shown.
20439 finish_eval=$lt_finish_eval
20440
20441 # Take the output of nm and produce a listing of raw symbols and C names.
20442 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20443
20444 # Transform the output of nm in a proper C declaration
20445 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20446
20447 # Transform the output of nm in a C name address pair
20448 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20449
20450 # This is the shared library runtime path variable.
20451 runpath_var=$runpath_var
20452
20453 # This is the shared library path variable.
20454 shlibpath_var=$shlibpath_var
20455
20456 # Is shlibpath searched before the hard-coded library search path?
20457 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20458
20459 # How to hardcode a shared library path into an executable.
20460 hardcode_action=$hardcode_action
20461
20462 # Whether we should hardcode library paths into libraries.
20463 hardcode_into_libs=$hardcode_into_libs
20464
20465 # Flag to hardcode \$libdir into a binary during linking.
20466 # This must work even if \$libdir does not exist.
20467 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20468
20469 # If ld is used when linking, flag to hardcode \$libdir into
20470 # a binary during linking. This must work even if \$libdir does
20471 # not exist.
20472 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
20473
20474 # Whether we need a single -rpath flag with a separated argument.
20475 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20476
20477 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20478 # resulting binary.
20479 hardcode_direct=$hardcode_direct
20480
20481 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20482 # resulting binary.
20483 hardcode_minus_L=$hardcode_minus_L
20484
20485 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20486 # the resulting binary.
20487 hardcode_shlibpath_var=$hardcode_shlibpath_var
20488
20489 # Set to yes if building a shared library automatically hardcodes DIR into the library
20490 # and all subsequent libraries and executables linked against it.
20491 hardcode_automatic=$hardcode_automatic
20492
20493 # Variables whose values should be saved in libtool wrapper scripts and
20494 # restored at relink time.
20495 variables_saved_for_relink="$variables_saved_for_relink"
20496
20497 # Whether libtool must link a program against all its dependency libraries.
20498 link_all_deplibs=$link_all_deplibs
20499
20500 # Compile-time system search path for libraries
20501 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20502
20503 # Run-time system search path for libraries
20504 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20505
20506 # Fix the shell variable \$srcfile for the compiler.
20507 fix_srcfile_path="$fix_srcfile_path"
20508
20509 # Set to yes if exported symbols are required.
20510 always_export_symbols=$always_export_symbols
20511
20512 # The commands to list exported symbols.
20513 export_symbols_cmds=$lt_export_symbols_cmds
20514
20515 # The commands to extract the exported symbol list from a shared archive.
20516 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20517
20518 # Symbols that should not be listed in the preloaded symbols.
20519 exclude_expsyms=$lt_exclude_expsyms
20520
20521 # Symbols that must always be exported.
20522 include_expsyms=$lt_include_expsyms
20523
20524 # ### END LIBTOOL CONFIG
20525
20526 __EOF__
20527
20528
20529   case $host_os in
20530   aix3*)
20531     cat <<\EOF >> "$cfgfile"
20532
20533 # AIX sometimes has problems with the GCC collect2 program.  For some
20534 # reason, if we set the COLLECT_NAMES environment variable, the problems
20535 # vanish in a puff of smoke.
20536 if test "X${COLLECT_NAMES+set}" != Xset; then
20537   COLLECT_NAMES=
20538   export COLLECT_NAMES
20539 fi
20540 EOF
20541     ;;
20542   esac
20543
20544   # We use sed instead of cat because bash on DJGPP gets confused if
20545   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
20546   # text mode, it properly converts lines to CR/LF.  This bash problem
20547   # is reportedly fixed, but why not run on old versions too?
20548   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
20549
20550   mv -f "$cfgfile" "$ofile" || \
20551     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20552   chmod +x "$ofile"
20553
20554 else
20555   # If there is no Makefile yet, we rely on a make rule to execute
20556   # `config.status --recheck' to rerun these tests and create the
20557   # libtool script then.
20558   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20559   if test -f "$ltmain_in"; then
20560     test -f Makefile && make "$ltmain"
20561   fi
20562 fi
20563
20564
20565 ac_ext=c
20566 ac_cpp='$CPP $CPPFLAGS'
20567 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20568 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20569 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20570
20571 CC="$lt_save_CC"
20572
20573
20574 # Check whether --with-tags or --without-tags was given.
20575 if test "${with_tags+set}" = set; then
20576   withval="$with_tags"
20577   tagnames="$withval"
20578 fi;
20579
20580 if test -f "$ltmain" && test -n "$tagnames"; then
20581   if test ! -f "${ofile}"; then
20582     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
20583 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
20584   fi
20585
20586   if test -z "$LTCC"; then
20587     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
20588     if test -z "$LTCC"; then
20589       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
20590 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
20591     else
20592       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
20593 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
20594     fi
20595   fi
20596
20597   # Extract list of available tagged configurations in $ofile.
20598   # Note that this assumes the entire list is on one line.
20599   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
20600
20601   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
20602   for tagname in $tagnames; do
20603     IFS="$lt_save_ifs"
20604     # Check whether tagname contains only valid characters
20605     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
20606     "") ;;
20607     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
20608 echo "$as_me: error: invalid tag name: $tagname" >&2;}
20609    { (exit 1); exit 1; }; }
20610         ;;
20611     esac
20612
20613     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
20614     then
20615       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
20616 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
20617    { (exit 1); exit 1; }; }
20618     fi
20619
20620     # Update the list of available tags.
20621     if test -n "$tagname"; then
20622       echo appending configuration tag \"$tagname\" to $ofile
20623
20624       case $tagname in
20625       CXX)
20626         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
20627             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
20628             (test "X$CXX" != "Xg++"))) ; then
20629           ac_ext=cc
20630 ac_cpp='$CXXCPP $CPPFLAGS'
20631 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20632 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20633 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20634
20635
20636
20637
20638 archive_cmds_need_lc_CXX=no
20639 allow_undefined_flag_CXX=
20640 always_export_symbols_CXX=no
20641 archive_expsym_cmds_CXX=
20642 export_dynamic_flag_spec_CXX=
20643 hardcode_direct_CXX=no
20644 hardcode_libdir_flag_spec_CXX=
20645 hardcode_libdir_flag_spec_ld_CXX=
20646 hardcode_libdir_separator_CXX=
20647 hardcode_minus_L_CXX=no
20648 hardcode_automatic_CXX=no
20649 module_cmds_CXX=
20650 module_expsym_cmds_CXX=
20651 link_all_deplibs_CXX=unknown
20652 old_archive_cmds_CXX=$old_archive_cmds
20653 no_undefined_flag_CXX=
20654 whole_archive_flag_spec_CXX=
20655 enable_shared_with_static_runtimes_CXX=no
20656
20657 # Dependencies to place before and after the object being linked:
20658 predep_objects_CXX=
20659 postdep_objects_CXX=
20660 predeps_CXX=
20661 postdeps_CXX=
20662 compiler_lib_search_path_CXX=
20663
20664 # Source file extension for C++ test sources.
20665 ac_ext=cpp
20666
20667 # Object file extension for compiled C++ test sources.
20668 objext=o
20669 objext_CXX=$objext
20670
20671 # Code to be used in simple compile tests
20672 lt_simple_compile_test_code="int some_variable = 0;\n"
20673
20674 # Code to be used in simple link tests
20675 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
20676
20677 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20678
20679 # If no C compiler was specified, use CC.
20680 LTCC=${LTCC-"$CC"}
20681
20682 # Allow CC to be a program name with arguments.
20683 compiler=$CC
20684
20685
20686 # save warnings/boilerplate of simple test code
20687 ac_outfile=conftest.$ac_objext
20688 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
20689 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
20690 _lt_compiler_boilerplate=`cat conftest.err`
20691 $rm conftest*
20692
20693 ac_outfile=conftest.$ac_objext
20694 printf "$lt_simple_link_test_code" >conftest.$ac_ext
20695 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
20696 _lt_linker_boilerplate=`cat conftest.err`
20697 $rm conftest*
20698
20699
20700 # Allow CC to be a program name with arguments.
20701 lt_save_CC=$CC
20702 lt_save_LD=$LD
20703 lt_save_GCC=$GCC
20704 GCC=$GXX
20705 lt_save_with_gnu_ld=$with_gnu_ld
20706 lt_save_path_LD=$lt_cv_path_LD
20707 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
20708   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
20709 else
20710   unset lt_cv_prog_gnu_ld
20711 fi
20712 if test -n "${lt_cv_path_LDCXX+set}"; then
20713   lt_cv_path_LD=$lt_cv_path_LDCXX
20714 else
20715   unset lt_cv_path_LD
20716 fi
20717 test -z "${LDCXX+set}" || LD=$LDCXX
20718 CC=${CXX-"c++"}
20719 compiler=$CC
20720 compiler_CXX=$CC
20721 for cc_temp in $compiler""; do
20722   case $cc_temp in
20723     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20724     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20725     \-*) ;;
20726     *) break;;
20727   esac
20728 done
20729 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20730
20731
20732 # We don't want -fno-exception wen compiling C++ code, so set the
20733 # no_builtin_flag separately
20734 if test "$GXX" = yes; then
20735   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
20736 else
20737   lt_prog_compiler_no_builtin_flag_CXX=
20738 fi
20739
20740 if test "$GXX" = yes; then
20741   # Set up default GNU C++ configuration
20742
20743
20744 # Check whether --with-gnu-ld or --without-gnu-ld was given.
20745 if test "${with_gnu_ld+set}" = set; then
20746   withval="$with_gnu_ld"
20747   test "$withval" = no || with_gnu_ld=yes
20748 else
20749   with_gnu_ld=no
20750 fi;
20751 ac_prog=ld
20752 if test "$GCC" = yes; then
20753   # Check if gcc -print-prog-name=ld gives a path.
20754   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
20755 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
20756   case $host in
20757   *-*-mingw*)
20758     # gcc leaves a trailing carriage return which upsets mingw
20759     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
20760   *)
20761     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
20762   esac
20763   case $ac_prog in
20764     # Accept absolute paths.
20765     [\\/]* | ?:[\\/]*)
20766       re_direlt='/[^/][^/]*/\.\./'
20767       # Canonicalize the pathname of ld
20768       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
20769       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
20770         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
20771       done
20772       test -z "$LD" && LD="$ac_prog"
20773       ;;
20774   "")
20775     # If it fails, then pretend we aren't using GCC.
20776     ac_prog=ld
20777     ;;
20778   *)
20779     # If it is relative, then search for the first ld in PATH.
20780     with_gnu_ld=unknown
20781     ;;
20782   esac
20783 elif test "$with_gnu_ld" = yes; then
20784   echo "$as_me:$LINENO: checking for GNU ld" >&5
20785 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
20786 else
20787   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
20788 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
20789 fi
20790 if test "${lt_cv_path_LD+set}" = set; then
20791   echo $ECHO_N "(cached) $ECHO_C" >&6
20792 else
20793   if test -z "$LD"; then
20794   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
20795   for ac_dir in $PATH; do
20796     IFS="$lt_save_ifs"
20797     test -z "$ac_dir" && ac_dir=.
20798     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
20799       lt_cv_path_LD="$ac_dir/$ac_prog"
20800       # Check to see if the program is GNU ld.  I'd rather use --version,
20801       # but apparently some variants of GNU ld only accept -v.
20802       # Break only if it was the GNU/non-GNU ld that we prefer.
20803       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
20804       *GNU* | *'with BFD'*)
20805         test "$with_gnu_ld" != no && break
20806         ;;
20807       *)
20808         test "$with_gnu_ld" != yes && break
20809         ;;
20810       esac
20811     fi
20812   done
20813   IFS="$lt_save_ifs"
20814 else
20815   lt_cv_path_LD="$LD" # Let the user override the test with a path.
20816 fi
20817 fi
20818
20819 LD="$lt_cv_path_LD"
20820 if test -n "$LD"; then
20821   echo "$as_me:$LINENO: result: $LD" >&5
20822 echo "${ECHO_T}$LD" >&6
20823 else
20824   echo "$as_me:$LINENO: result: no" >&5
20825 echo "${ECHO_T}no" >&6
20826 fi
20827 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
20828 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
20829    { (exit 1); exit 1; }; }
20830 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
20831 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
20832 if test "${lt_cv_prog_gnu_ld+set}" = set; then
20833   echo $ECHO_N "(cached) $ECHO_C" >&6
20834 else
20835   # I'd rather use --version here, but apparently some GNU lds only accept -v.
20836 case `$LD -v 2>&1 </dev/null` in
20837 *GNU* | *'with BFD'*)
20838   lt_cv_prog_gnu_ld=yes
20839   ;;
20840 *)
20841   lt_cv_prog_gnu_ld=no
20842   ;;
20843 esac
20844 fi
20845 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
20846 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
20847 with_gnu_ld=$lt_cv_prog_gnu_ld
20848
20849
20850
20851   # Check if GNU C++ uses GNU ld as the underlying linker, since the
20852   # archiving commands below assume that GNU ld is being used.
20853   if test "$with_gnu_ld" = yes; then
20854     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
20855     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'
20856
20857     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
20858     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
20859
20860     # If archive_cmds runs LD, not CC, wlarc should be empty
20861     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
20862     #     investigate it a little bit more. (MM)
20863     wlarc='${wl}'
20864
20865     # ancient GNU ld didn't support --whole-archive et. al.
20866     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
20867         grep 'no-whole-archive' > /dev/null; then
20868       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
20869     else
20870       whole_archive_flag_spec_CXX=
20871     fi
20872   else
20873     with_gnu_ld=no
20874     wlarc=
20875
20876     # A generic and very simple default shared library creation
20877     # command for GNU C++ for the case where it uses the native
20878     # linker, instead of GNU ld.  If possible, this setting should
20879     # overridden to take advantage of the native linker features on
20880     # the platform it is being used on.
20881     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
20882   fi
20883
20884   # Commands to make compiler produce verbose output that lists
20885   # what "hidden" libraries, object files and flags are used when
20886   # linking a shared library.
20887   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
20888
20889 else
20890   GXX=no
20891   with_gnu_ld=no
20892   wlarc=
20893 fi
20894
20895 # PORTME: fill in a description of your system's C++ link characteristics
20896 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20897 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
20898 ld_shlibs_CXX=yes
20899 case $host_os in
20900   aix3*)
20901     # FIXME: insert proper C++ library support
20902     ld_shlibs_CXX=no
20903     ;;
20904   aix4* | aix5*)
20905     if test "$host_cpu" = ia64; then
20906       # On IA64, the linker does run time linking by default, so we don't
20907       # have to do anything special.
20908       aix_use_runtimelinking=no
20909       exp_sym_flag='-Bexport'
20910       no_entry_flag=""
20911     else
20912       aix_use_runtimelinking=no
20913
20914       # Test if we are trying to use run time linking or normal
20915       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
20916       # need to do runtime linking.
20917       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
20918         for ld_flag in $LDFLAGS; do
20919           case $ld_flag in
20920           *-brtl*)
20921             aix_use_runtimelinking=yes
20922             break
20923             ;;
20924           esac
20925         done
20926       esac
20927
20928       exp_sym_flag='-bexport'
20929       no_entry_flag='-bnoentry'
20930     fi
20931
20932     # When large executables or shared objects are built, AIX ld can
20933     # have problems creating the table of contents.  If linking a library
20934     # or program results in "error TOC overflow" add -mminimal-toc to
20935     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
20936     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
20937
20938     archive_cmds_CXX=''
20939     hardcode_direct_CXX=yes
20940     hardcode_libdir_separator_CXX=':'
20941     link_all_deplibs_CXX=yes
20942
20943     if test "$GXX" = yes; then
20944       case $host_os in aix4.[012]|aix4.[012].*)
20945       # We only want to do this on AIX 4.2 and lower, the check
20946       # below for broken collect2 doesn't work under 4.3+
20947         collect2name=`${CC} -print-prog-name=collect2`
20948         if test -f "$collect2name" && \
20949            strings "$collect2name" | grep resolve_lib_name >/dev/null
20950         then
20951           # We have reworked collect2
20952           hardcode_direct_CXX=yes
20953         else
20954           # We have old collect2
20955           hardcode_direct_CXX=unsupported
20956           # It fails to find uninstalled libraries when the uninstalled
20957           # path is not listed in the libpath.  Setting hardcode_minus_L
20958           # to unsupported forces relinking
20959           hardcode_minus_L_CXX=yes
20960           hardcode_libdir_flag_spec_CXX='-L$libdir'
20961           hardcode_libdir_separator_CXX=
20962         fi
20963       esac
20964       shared_flag='-shared'
20965       if test "$aix_use_runtimelinking" = yes; then
20966         shared_flag="$shared_flag "'${wl}-G'
20967       fi
20968     else
20969       # not using gcc
20970       if test "$host_cpu" = ia64; then
20971         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
20972         # chokes on -Wl,-G. The following line is correct:
20973         shared_flag='-G'
20974       else
20975         if test "$aix_use_runtimelinking" = yes; then
20976           shared_flag='${wl}-G'
20977         else
20978           shared_flag='${wl}-bM:SRE'
20979         fi
20980       fi
20981     fi
20982
20983     # It seems that -bexpall does not export symbols beginning with
20984     # underscore (_), so it is better to generate a list of symbols to export.
20985     always_export_symbols_CXX=yes
20986     if test "$aix_use_runtimelinking" = yes; then
20987       # Warning - without using the other runtime loading flags (-brtl),
20988       # -berok will link without error, but may produce a broken library.
20989       allow_undefined_flag_CXX='-berok'
20990       # Determine the default libpath from the value encoded in an empty executable.
20991       cat >conftest.$ac_ext <<_ACEOF
20992 /* confdefs.h.  */
20993 _ACEOF
20994 cat confdefs.h >>conftest.$ac_ext
20995 cat >>conftest.$ac_ext <<_ACEOF
20996 /* end confdefs.h.  */
20997
20998 int
20999 main ()
21000 {
21001
21002   ;
21003   return 0;
21004 }
21005 _ACEOF
21006 rm -f conftest.$ac_objext conftest$ac_exeext
21007 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21008   (eval $ac_link) 2>conftest.er1
21009   ac_status=$?
21010   grep -v '^ *+' conftest.er1 >conftest.err
21011   rm -f conftest.er1
21012   cat conftest.err >&5
21013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21014   (exit $ac_status); } &&
21015          { ac_try='test -z "$ac_cxx_werror_flag"
21016                          || test ! -s conftest.err'
21017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21018   (eval $ac_try) 2>&5
21019   ac_status=$?
21020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21021   (exit $ac_status); }; } &&
21022          { ac_try='test -s conftest$ac_exeext'
21023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21024   (eval $ac_try) 2>&5
21025   ac_status=$?
21026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21027   (exit $ac_status); }; }; then
21028
21029 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
21030 }'`
21031 # Check for a 64-bit object if we didn't find anything.
21032 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; }
21033 }'`; fi
21034 else
21035   echo "$as_me: failed program was:" >&5
21036 sed 's/^/| /' conftest.$ac_ext >&5
21037
21038 fi
21039 rm -f conftest.err conftest.$ac_objext \
21040       conftest$ac_exeext conftest.$ac_ext
21041 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21042
21043       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
21044
21045       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"
21046      else
21047       if test "$host_cpu" = ia64; then
21048         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
21049         allow_undefined_flag_CXX="-z nodefs"
21050         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"
21051       else
21052         # Determine the default libpath from the value encoded in an empty executable.
21053         cat >conftest.$ac_ext <<_ACEOF
21054 /* confdefs.h.  */
21055 _ACEOF
21056 cat confdefs.h >>conftest.$ac_ext
21057 cat >>conftest.$ac_ext <<_ACEOF
21058 /* end confdefs.h.  */
21059
21060 int
21061 main ()
21062 {
21063
21064   ;
21065   return 0;
21066 }
21067 _ACEOF
21068 rm -f conftest.$ac_objext conftest$ac_exeext
21069 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21070   (eval $ac_link) 2>conftest.er1
21071   ac_status=$?
21072   grep -v '^ *+' conftest.er1 >conftest.err
21073   rm -f conftest.er1
21074   cat conftest.err >&5
21075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21076   (exit $ac_status); } &&
21077          { ac_try='test -z "$ac_cxx_werror_flag"
21078                          || test ! -s conftest.err'
21079   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21080   (eval $ac_try) 2>&5
21081   ac_status=$?
21082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21083   (exit $ac_status); }; } &&
21084          { ac_try='test -s conftest$ac_exeext'
21085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21086   (eval $ac_try) 2>&5
21087   ac_status=$?
21088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21089   (exit $ac_status); }; }; then
21090
21091 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
21092 }'`
21093 # Check for a 64-bit object if we didn't find anything.
21094 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; }
21095 }'`; fi
21096 else
21097   echo "$as_me: failed program was:" >&5
21098 sed 's/^/| /' conftest.$ac_ext >&5
21099
21100 fi
21101 rm -f conftest.err conftest.$ac_objext \
21102       conftest$ac_exeext conftest.$ac_ext
21103 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21104
21105         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
21106         # Warning - without using the other run time loading flags,
21107         # -berok will link without error, but may produce a broken library.
21108         no_undefined_flag_CXX=' ${wl}-bernotok'
21109         allow_undefined_flag_CXX=' ${wl}-berok'
21110         # -bexpall does not export symbols beginning with underscore (_)
21111         always_export_symbols_CXX=yes
21112         # Exported symbols can be pulled into shared objects from archives
21113         whole_archive_flag_spec_CXX=' '
21114         archive_cmds_need_lc_CXX=yes
21115         # This is similar to how AIX traditionally builds its shared libraries.
21116         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'
21117       fi
21118     fi
21119     ;;
21120   chorus*)
21121     case $cc_basename in
21122       *)
21123         # FIXME: insert proper C++ library support
21124         ld_shlibs_CXX=no
21125         ;;
21126     esac
21127     ;;
21128
21129
21130   cygwin* | mingw* | pw32*)
21131     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
21132     # as there is no search path for DLLs.
21133     hardcode_libdir_flag_spec_CXX='-L$libdir'
21134     allow_undefined_flag_CXX=unsupported
21135     always_export_symbols_CXX=no
21136     enable_shared_with_static_runtimes_CXX=yes
21137
21138     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21139       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'
21140       # If the export-symbols file already is a .def file (1st line
21141       # is EXPORTS), use it as is; otherwise, prepend...
21142       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21143         cp $export_symbols $output_objdir/$soname.def;
21144       else
21145         echo EXPORTS > $output_objdir/$soname.def;
21146         cat $export_symbols >> $output_objdir/$soname.def;
21147       fi~
21148       $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'
21149     else
21150       ld_shlibs_CXX=no
21151     fi
21152   ;;
21153       darwin* | rhapsody*)
21154         case $host_os in
21155         rhapsody* | darwin1.[012])
21156          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
21157          ;;
21158        *) # Darwin 1.3 on
21159          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
21160            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21161          else
21162            case ${MACOSX_DEPLOYMENT_TARGET} in
21163              10.[012])
21164                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21165                ;;
21166              10.*)
21167                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
21168                ;;
21169            esac
21170          fi
21171          ;;
21172         esac
21173       archive_cmds_need_lc_CXX=no
21174       hardcode_direct_CXX=no
21175       hardcode_automatic_CXX=yes
21176       hardcode_shlibpath_var_CXX=unsupported
21177       whole_archive_flag_spec_CXX=''
21178       link_all_deplibs_CXX=yes
21179
21180     if test "$GXX" = yes ; then
21181       lt_int_apple_cc_single_mod=no
21182       output_verbose_link_cmd='echo'
21183       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
21184        lt_int_apple_cc_single_mod=yes
21185       fi
21186       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
21187        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
21188       else
21189           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'
21190         fi
21191         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21192         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
21193           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
21194             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}'
21195           else
21196             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}'
21197           fi
21198             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}'
21199       else
21200       case $cc_basename in
21201         xlc*)
21202          output_verbose_link_cmd='echo'
21203           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'
21204           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21205           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
21206           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}'
21207           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}'
21208           ;;
21209        *)
21210          ld_shlibs_CXX=no
21211           ;;
21212       esac
21213       fi
21214         ;;
21215
21216   dgux*)
21217     case $cc_basename in
21218       ec++*)
21219         # FIXME: insert proper C++ library support
21220         ld_shlibs_CXX=no
21221         ;;
21222       ghcx*)
21223         # Green Hills C++ Compiler
21224         # FIXME: insert proper C++ library support
21225         ld_shlibs_CXX=no
21226         ;;
21227       *)
21228         # FIXME: insert proper C++ library support
21229         ld_shlibs_CXX=no
21230         ;;
21231     esac
21232     ;;
21233   freebsd[12]*)
21234     # C++ shared libraries reported to be fairly broken before switch to ELF
21235     ld_shlibs_CXX=no
21236     ;;
21237   freebsd-elf*)
21238     archive_cmds_need_lc_CXX=no
21239     ;;
21240   freebsd* | kfreebsd*-gnu | dragonfly*)
21241     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
21242     # conventions
21243     ld_shlibs_CXX=yes
21244     ;;
21245   gnu*)
21246     ;;
21247   hpux9*)
21248     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
21249     hardcode_libdir_separator_CXX=:
21250     export_dynamic_flag_spec_CXX='${wl}-E'
21251     hardcode_direct_CXX=yes
21252     hardcode_minus_L_CXX=yes # Not in the search PATH,
21253                                 # but as the default
21254                                 # location of the library.
21255
21256     case $cc_basename in
21257     CC*)
21258       # FIXME: insert proper C++ library support
21259       ld_shlibs_CXX=no
21260       ;;
21261     aCC*)
21262       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'
21263       # Commands to make compiler produce verbose output that lists
21264       # what "hidden" libraries, object files and flags are used when
21265       # linking a shared library.
21266       #
21267       # There doesn't appear to be a way to prevent this compiler from
21268       # explicitly linking system object files so we need to strip them
21269       # from the output so that they don't get included in the library
21270       # dependencies.
21271       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'
21272       ;;
21273     *)
21274       if test "$GXX" = yes; then
21275         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'
21276       else
21277         # FIXME: insert proper C++ library support
21278         ld_shlibs_CXX=no
21279       fi
21280       ;;
21281     esac
21282     ;;
21283   hpux10*|hpux11*)
21284     if test $with_gnu_ld = no; then
21285       case $host_cpu in
21286       hppa*64*)
21287         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
21288         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
21289         hardcode_libdir_separator_CXX=:
21290         ;;
21291       ia64*)
21292         hardcode_libdir_flag_spec_CXX='-L$libdir'
21293         ;;
21294       *)
21295         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
21296         hardcode_libdir_separator_CXX=:
21297         export_dynamic_flag_spec_CXX='${wl}-E'
21298         ;;
21299       esac
21300     fi
21301     case $host_cpu in
21302     hppa*64*)
21303       hardcode_direct_CXX=no
21304       hardcode_shlibpath_var_CXX=no
21305       ;;
21306     ia64*)
21307       hardcode_direct_CXX=no
21308       hardcode_shlibpath_var_CXX=no
21309       hardcode_minus_L_CXX=yes # Not in the search PATH,
21310                                               # but as the default
21311                                               # location of the library.
21312       ;;
21313     *)
21314       hardcode_direct_CXX=yes
21315       hardcode_minus_L_CXX=yes # Not in the search PATH,
21316                                               # but as the default
21317                                               # location of the library.
21318       ;;
21319     esac
21320
21321     case $cc_basename in
21322       CC*)
21323         # FIXME: insert proper C++ library support
21324         ld_shlibs_CXX=no
21325         ;;
21326       aCC*)
21327         case $host_cpu in
21328         hppa*64*|ia64*)
21329           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
21330           ;;
21331         *)
21332           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21333           ;;
21334         esac
21335         # Commands to make compiler produce verbose output that lists
21336         # what "hidden" libraries, object files and flags are used when
21337         # linking a shared library.
21338         #
21339         # There doesn't appear to be a way to prevent this compiler from
21340         # explicitly linking system object files so we need to strip them
21341         # from the output so that they don't get included in the library
21342         # dependencies.
21343         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'
21344         ;;
21345       *)
21346         if test "$GXX" = yes; then
21347           if test $with_gnu_ld = no; then
21348             case $host_cpu in
21349             ia64*|hppa*64*)
21350               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
21351               ;;
21352             *)
21353               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'
21354               ;;
21355             esac
21356           fi
21357         else
21358           # FIXME: insert proper C++ library support
21359           ld_shlibs_CXX=no
21360         fi
21361         ;;
21362     esac
21363     ;;
21364   irix5* | irix6*)
21365     case $cc_basename in
21366       CC*)
21367         # SGI C++
21368         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'
21369
21370         # Archives containing C++ object files must be created using
21371         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
21372         # necessary to make sure instantiated templates are included
21373         # in the archive.
21374         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
21375         ;;
21376       *)
21377         if test "$GXX" = yes; then
21378           if test "$with_gnu_ld" = no; then
21379             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'
21380           else
21381             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'
21382           fi
21383         fi
21384         link_all_deplibs_CXX=yes
21385         ;;
21386     esac
21387     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
21388     hardcode_libdir_separator_CXX=:
21389     ;;
21390   linux*)
21391     case $cc_basename in
21392       KCC*)
21393         # Kuck and Associates, Inc. (KAI) C++ Compiler
21394
21395         # KCC will only create a shared library if the output file
21396         # ends with ".so" (or ".sl" for HP-UX), so rename the library
21397         # to its proper name (with version) after linking.
21398         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'
21399         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'
21400         # Commands to make compiler produce verbose output that lists
21401         # what "hidden" libraries, object files and flags are used when
21402         # linking a shared library.
21403         #
21404         # There doesn't appear to be a way to prevent this compiler from
21405         # explicitly linking system object files so we need to strip them
21406         # from the output so that they don't get included in the library
21407         # dependencies.
21408         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'
21409
21410         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
21411         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
21412
21413         # Archives containing C++ object files must be created using
21414         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
21415         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
21416         ;;
21417       icpc*)
21418         # Intel C++
21419         with_gnu_ld=yes
21420         # version 8.0 and above of icpc choke on multiply defined symbols
21421         # if we add $predep_objects and $postdep_objects, however 7.1 and
21422         # earlier do not add the objects themselves.
21423         case `$CC -V 2>&1` in
21424         *"Version 7."*)
21425           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
21426           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'
21427           ;;
21428         *)  # Version 8.0 or newer
21429           tmp_idyn=
21430           case $host_cpu in
21431             ia64*) tmp_idyn=' -i_dynamic';;
21432           esac
21433           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21434           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'
21435           ;;
21436         esac
21437         archive_cmds_need_lc_CXX=no
21438         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
21439         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
21440         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
21441         ;;
21442       pgCC*)
21443         # Portland Group C++ compiler
21444         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
21445         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'
21446
21447         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
21448         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
21449         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'
21450         ;;
21451       cxx*)
21452         # Compaq C++
21453         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
21454         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'
21455
21456         runpath_var=LD_RUN_PATH
21457         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
21458         hardcode_libdir_separator_CXX=:
21459
21460         # Commands to make compiler produce verbose output that lists
21461         # what "hidden" libraries, object files and flags are used when
21462         # linking a shared library.
21463         #
21464         # There doesn't appear to be a way to prevent this compiler from
21465         # explicitly linking system object files so we need to strip them
21466         # from the output so that they don't get included in the library
21467         # dependencies.
21468         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'
21469         ;;
21470     esac
21471     ;;
21472   lynxos*)
21473     # FIXME: insert proper C++ library support
21474     ld_shlibs_CXX=no
21475     ;;
21476   m88k*)
21477     # FIXME: insert proper C++ library support
21478     ld_shlibs_CXX=no
21479     ;;
21480   mvs*)
21481     case $cc_basename in
21482       cxx*)
21483         # FIXME: insert proper C++ library support
21484         ld_shlibs_CXX=no
21485         ;;
21486       *)
21487         # FIXME: insert proper C++ library support
21488         ld_shlibs_CXX=no
21489         ;;
21490     esac
21491     ;;
21492   netbsd*)
21493     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21494       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
21495       wlarc=
21496       hardcode_libdir_flag_spec_CXX='-R$libdir'
21497       hardcode_direct_CXX=yes
21498       hardcode_shlibpath_var_CXX=no
21499     fi
21500     # Workaround some broken pre-1.5 toolchains
21501     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
21502     ;;
21503   openbsd2*)
21504     # C++ shared libraries are fairly broken
21505     ld_shlibs_CXX=no
21506     ;;
21507   openbsd*)
21508     hardcode_direct_CXX=yes
21509     hardcode_shlibpath_var_CXX=no
21510     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
21511     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
21512     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21513       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
21514       export_dynamic_flag_spec_CXX='${wl}-E'
21515       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21516     fi
21517     output_verbose_link_cmd='echo'
21518     ;;
21519   osf3*)
21520     case $cc_basename in
21521       KCC*)
21522         # Kuck and Associates, Inc. (KAI) C++ Compiler
21523
21524         # KCC will only create a shared library if the output file
21525         # ends with ".so" (or ".sl" for HP-UX), so rename the library
21526         # to its proper name (with version) after linking.
21527         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'
21528
21529         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
21530         hardcode_libdir_separator_CXX=:
21531
21532         # Archives containing C++ object files must be created using
21533         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
21534         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
21535
21536         ;;
21537       RCC*)
21538         # Rational C++ 2.4.1
21539         # FIXME: insert proper C++ library support
21540         ld_shlibs_CXX=no
21541         ;;
21542       cxx*)
21543         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
21544         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'
21545
21546         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
21547         hardcode_libdir_separator_CXX=:
21548
21549         # Commands to make compiler produce verbose output that lists
21550         # what "hidden" libraries, object files and flags are used when
21551         # linking a shared library.
21552         #
21553         # There doesn't appear to be a way to prevent this compiler from
21554         # explicitly linking system object files so we need to strip them
21555         # from the output so that they don't get included in the library
21556         # dependencies.
21557         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'
21558         ;;
21559       *)
21560         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
21561           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
21562           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'
21563
21564           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
21565           hardcode_libdir_separator_CXX=:
21566
21567           # Commands to make compiler produce verbose output that lists
21568           # what "hidden" libraries, object files and flags are used when
21569           # linking a shared library.
21570           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
21571
21572         else
21573           # FIXME: insert proper C++ library support
21574           ld_shlibs_CXX=no
21575         fi
21576         ;;
21577     esac
21578     ;;
21579   osf4* | osf5*)
21580     case $cc_basename in
21581       KCC*)
21582         # Kuck and Associates, Inc. (KAI) C++ Compiler
21583
21584         # KCC will only create a shared library if the output file
21585         # ends with ".so" (or ".sl" for HP-UX), so rename the library
21586         # to its proper name (with version) after linking.
21587         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'
21588
21589         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
21590         hardcode_libdir_separator_CXX=:
21591
21592         # Archives containing C++ object files must be created using
21593         # the KAI C++ compiler.
21594         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
21595         ;;
21596       RCC*)
21597         # Rational C++ 2.4.1
21598         # FIXME: insert proper C++ library support
21599         ld_shlibs_CXX=no
21600         ;;
21601       cxx*)
21602         allow_undefined_flag_CXX=' -expect_unresolved \*'
21603         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'
21604         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
21605           echo "-hidden">> $lib.exp~
21606           $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~
21607           $rm $lib.exp'
21608
21609         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
21610         hardcode_libdir_separator_CXX=:
21611
21612         # Commands to make compiler produce verbose output that lists
21613         # what "hidden" libraries, object files and flags are used when
21614         # linking a shared library.
21615         #
21616         # There doesn't appear to be a way to prevent this compiler from
21617         # explicitly linking system object files so we need to strip them
21618         # from the output so that they don't get included in the library
21619         # dependencies.
21620         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'
21621         ;;
21622       *)
21623         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
21624           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
21625          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'
21626
21627           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
21628           hardcode_libdir_separator_CXX=:
21629
21630           # Commands to make compiler produce verbose output that lists
21631           # what "hidden" libraries, object files and flags are used when
21632           # linking a shared library.
21633           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
21634
21635         else
21636           # FIXME: insert proper C++ library support
21637           ld_shlibs_CXX=no
21638         fi
21639         ;;
21640     esac
21641     ;;
21642   psos*)
21643     # FIXME: insert proper C++ library support
21644     ld_shlibs_CXX=no
21645     ;;
21646   sco*)
21647     archive_cmds_need_lc_CXX=no
21648     case $cc_basename in
21649       CC*)
21650         # FIXME: insert proper C++ library support
21651         ld_shlibs_CXX=no
21652         ;;
21653       *)
21654         # FIXME: insert proper C++ library support
21655         ld_shlibs_CXX=no
21656         ;;
21657     esac
21658     ;;
21659   sunos4*)
21660     case $cc_basename in
21661       CC*)
21662         # Sun C++ 4.x
21663         # FIXME: insert proper C++ library support
21664         ld_shlibs_CXX=no
21665         ;;
21666       lcc*)
21667         # Lucid
21668         # FIXME: insert proper C++ library support
21669         ld_shlibs_CXX=no
21670         ;;
21671       *)
21672         # FIXME: insert proper C++ library support
21673         ld_shlibs_CXX=no
21674         ;;
21675     esac
21676     ;;
21677   solaris*)
21678     case $cc_basename in
21679       CC*)
21680         # Sun C++ 4.2, 5.x and Centerline C++
21681         archive_cmds_need_lc_CXX=yes
21682         no_undefined_flag_CXX=' -zdefs'
21683         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21684         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
21685         $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'
21686
21687         hardcode_libdir_flag_spec_CXX='-R$libdir'
21688         hardcode_shlibpath_var_CXX=no
21689         case $host_os in
21690           solaris2.[0-5] | solaris2.[0-5].*) ;;
21691           *)
21692             # The C++ compiler is used as linker so we must use $wl
21693             # flag to pass the commands to the underlying system
21694             # linker. We must also pass each convience library through
21695             # to the system linker between allextract/defaultextract.
21696             # The C++ compiler will combine linker options so we
21697             # cannot just pass the convience library names through
21698             # without $wl.
21699             # Supported since Solaris 2.6 (maybe 2.5.1?)
21700             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'
21701             ;;
21702         esac
21703         link_all_deplibs_CXX=yes
21704
21705         output_verbose_link_cmd='echo'
21706
21707         # Archives containing C++ object files must be created using
21708         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
21709         # necessary to make sure instantiated templates are included
21710         # in the archive.
21711         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
21712         ;;
21713       gcx*)
21714         # Green Hills C++ Compiler
21715         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
21716
21717         # The C++ compiler must be used to create the archive.
21718         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
21719         ;;
21720       *)
21721         # GNU C++ compiler with Solaris linker
21722         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
21723           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
21724           if $CC --version | grep -v '^2\.7' > /dev/null; then
21725             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
21726             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
21727                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
21728
21729             # Commands to make compiler produce verbose output that lists
21730             # what "hidden" libraries, object files and flags are used when
21731             # linking a shared library.
21732             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
21733           else
21734             # g++ 2.7 appears to require `-G' NOT `-shared' on this
21735             # platform.
21736             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
21737             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
21738                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
21739
21740             # Commands to make compiler produce verbose output that lists
21741             # what "hidden" libraries, object files and flags are used when
21742             # linking a shared library.
21743             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
21744           fi
21745
21746           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
21747         fi
21748         ;;
21749     esac
21750     ;;
21751   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
21752     archive_cmds_need_lc_CXX=no
21753     ;;
21754   tandem*)
21755     case $cc_basename in
21756       NCC*)
21757         # NonStop-UX NCC 3.20
21758         # FIXME: insert proper C++ library support
21759         ld_shlibs_CXX=no
21760         ;;
21761       *)
21762         # FIXME: insert proper C++ library support
21763         ld_shlibs_CXX=no
21764         ;;
21765     esac
21766     ;;
21767   vxworks*)
21768     # FIXME: insert proper C++ library support
21769     ld_shlibs_CXX=no
21770     ;;
21771   *)
21772     # FIXME: insert proper C++ library support
21773     ld_shlibs_CXX=no
21774     ;;
21775 esac
21776 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
21777 echo "${ECHO_T}$ld_shlibs_CXX" >&6
21778 test "$ld_shlibs_CXX" = no && can_build_shared=no
21779
21780 GCC_CXX="$GXX"
21781 LD_CXX="$LD"
21782
21783 ## CAVEAT EMPTOR:
21784 ## There is no encapsulation within the following macros, do not change
21785 ## the running order or otherwise move them around unless you know exactly
21786 ## what you are doing...
21787
21788 cat > conftest.$ac_ext <<EOF
21789 class Foo
21790 {
21791 public:
21792   Foo (void) { a = 0; }
21793 private:
21794   int a;
21795 };
21796 EOF
21797
21798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21799   (eval $ac_compile) 2>&5
21800   ac_status=$?
21801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21802   (exit $ac_status); }; then
21803   # Parse the compiler output and extract the necessary
21804   # objects, libraries and library flags.
21805
21806   # Sentinel used to keep track of whether or not we are before
21807   # the conftest object file.
21808   pre_test_object_deps_done=no
21809
21810   # The `*' in the case matches for architectures that use `case' in
21811   # $output_verbose_cmd can trigger glob expansion during the loop
21812   # eval without this substitution.
21813   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
21814
21815   for p in `eval $output_verbose_link_cmd`; do
21816     case $p in
21817
21818     -L* | -R* | -l*)
21819        # Some compilers place space between "-{L,R}" and the path.
21820        # Remove the space.
21821        if test $p = "-L" \
21822           || test $p = "-R"; then
21823          prev=$p
21824          continue
21825        else
21826          prev=
21827        fi
21828
21829        if test "$pre_test_object_deps_done" = no; then
21830          case $p in
21831          -L* | -R*)
21832            # Internal compiler library paths should come after those
21833            # provided the user.  The postdeps already come after the
21834            # user supplied libs so there is no need to process them.
21835            if test -z "$compiler_lib_search_path_CXX"; then
21836              compiler_lib_search_path_CXX="${prev}${p}"
21837            else
21838              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
21839            fi
21840            ;;
21841          # The "-l" case would never come before the object being
21842          # linked, so don't bother handling this case.
21843          esac
21844        else
21845          if test -z "$postdeps_CXX"; then
21846            postdeps_CXX="${prev}${p}"
21847          else
21848            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
21849          fi
21850        fi
21851        ;;
21852
21853     *.$objext)
21854        # This assumes that the test object file only shows up
21855        # once in the compiler output.
21856        if test "$p" = "conftest.$objext"; then
21857          pre_test_object_deps_done=yes
21858          continue
21859        fi
21860
21861        if test "$pre_test_object_deps_done" = no; then
21862          if test -z "$predep_objects_CXX"; then
21863            predep_objects_CXX="$p"
21864          else
21865            predep_objects_CXX="$predep_objects_CXX $p"
21866          fi
21867        else
21868          if test -z "$postdep_objects_CXX"; then
21869            postdep_objects_CXX="$p"
21870          else
21871            postdep_objects_CXX="$postdep_objects_CXX $p"
21872          fi
21873        fi
21874        ;;
21875
21876     *) ;; # Ignore the rest.
21877
21878     esac
21879   done
21880
21881   # Clean up.
21882   rm -f a.out a.exe
21883 else
21884   echo "libtool.m4: error: problem compiling CXX test program"
21885 fi
21886
21887 $rm -f confest.$objext
21888
21889 # PORTME: override above test on systems where it is broken
21890 case $host_os in
21891 solaris*)
21892   case $cc_basename in
21893   CC*)
21894     # Adding this requires a known-good setup of shared libraries for
21895     # Sun compiler versions before 5.6, else PIC objects from an old
21896     # archive will be linked into the output, leading to subtle bugs.
21897     postdeps_CXX='-lCstd -lCrun'
21898     ;;
21899   esac
21900 esac
21901
21902
21903 case " $postdeps_CXX " in
21904 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
21905 esac
21906
21907 lt_prog_compiler_wl_CXX=
21908 lt_prog_compiler_pic_CXX=
21909 lt_prog_compiler_static_CXX=
21910
21911 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21912 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
21913
21914   # C++ specific cases for pic, static, wl, etc.
21915   if test "$GXX" = yes; then
21916     lt_prog_compiler_wl_CXX='-Wl,'
21917     lt_prog_compiler_static_CXX='-static'
21918
21919     case $host_os in
21920     aix*)
21921       # All AIX code is PIC.
21922       if test "$host_cpu" = ia64; then
21923         # AIX 5 now supports IA64 processor
21924         lt_prog_compiler_static_CXX='-Bstatic'
21925       fi
21926       ;;
21927     amigaos*)
21928       # FIXME: we need at least 68020 code to build shared libraries, but
21929       # adding the `-m68020' flag to GCC prevents building anything better,
21930       # like `-m68040'.
21931       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
21932       ;;
21933     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21934       # PIC is the default for these OSes.
21935       ;;
21936     mingw* | os2* | pw32*)
21937       # This hack is so that the source file can tell whether it is being
21938       # built for inclusion in a dll (and should export symbols for example).
21939       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
21940       ;;
21941     darwin* | rhapsody*)
21942       # PIC is the default on this platform
21943       # Common symbols not allowed in MH_DYLIB files
21944       lt_prog_compiler_pic_CXX='-fno-common'
21945       ;;
21946     *djgpp*)
21947       # DJGPP does not support shared libraries at all
21948       lt_prog_compiler_pic_CXX=
21949       ;;
21950     sysv4*MP*)
21951       if test -d /usr/nec; then
21952         lt_prog_compiler_pic_CXX=-Kconform_pic
21953       fi
21954       ;;
21955     hpux*)
21956       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21957       # not for PA HP-UX.
21958       case $host_cpu in
21959       hppa*64*|ia64*)
21960         ;;
21961       *)
21962         lt_prog_compiler_pic_CXX='-fPIC'
21963         ;;
21964       esac
21965       ;;
21966     *)
21967       lt_prog_compiler_pic_CXX='-fPIC'
21968       ;;
21969     esac
21970   else
21971     case $host_os in
21972       aix4* | aix5*)
21973         # All AIX code is PIC.
21974         if test "$host_cpu" = ia64; then
21975           # AIX 5 now supports IA64 processor
21976           lt_prog_compiler_static_CXX='-Bstatic'
21977         else
21978           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
21979         fi
21980         ;;
21981       chorus*)
21982         case $cc_basename in
21983         cxch68*)
21984           # Green Hills C++ Compiler
21985           # _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"
21986           ;;
21987         esac
21988         ;;
21989        darwin*)
21990          # PIC is the default on this platform
21991          # Common symbols not allowed in MH_DYLIB files
21992          case $cc_basename in
21993            xlc*)
21994            lt_prog_compiler_pic_CXX='-qnocommon'
21995            lt_prog_compiler_wl_CXX='-Wl,'
21996            ;;
21997          esac
21998        ;;
21999       dgux*)
22000         case $cc_basename in
22001           ec++*)
22002             lt_prog_compiler_pic_CXX='-KPIC'
22003             ;;
22004           ghcx*)
22005             # Green Hills C++ Compiler
22006             lt_prog_compiler_pic_CXX='-pic'
22007             ;;
22008           *)
22009             ;;
22010         esac
22011         ;;
22012       freebsd* | kfreebsd*-gnu | dragonfly*)
22013         # FreeBSD uses GNU C++
22014         ;;
22015       hpux9* | hpux10* | hpux11*)
22016         case $cc_basename in
22017           CC*)
22018             lt_prog_compiler_wl_CXX='-Wl,'
22019             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
22020             if test "$host_cpu" != ia64; then
22021               lt_prog_compiler_pic_CXX='+Z'
22022             fi
22023             ;;
22024           aCC*)
22025             lt_prog_compiler_wl_CXX='-Wl,'
22026             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
22027             case $host_cpu in
22028             hppa*64*|ia64*)
22029               # +Z the default
22030               ;;
22031             *)
22032               lt_prog_compiler_pic_CXX='+Z'
22033               ;;
22034             esac
22035             ;;
22036           *)
22037             ;;
22038         esac
22039         ;;
22040       irix5* | irix6* | nonstopux*)
22041         case $cc_basename in
22042           CC*)
22043             lt_prog_compiler_wl_CXX='-Wl,'
22044             lt_prog_compiler_static_CXX='-non_shared'
22045             # CC pic flag -KPIC is the default.
22046             ;;
22047           *)
22048             ;;
22049         esac
22050         ;;
22051       linux*)
22052         case $cc_basename in
22053           KCC*)
22054             # KAI C++ Compiler
22055             lt_prog_compiler_wl_CXX='--backend -Wl,'
22056             lt_prog_compiler_pic_CXX='-fPIC'
22057             ;;
22058           icpc* | ecpc*)
22059             # Intel C++
22060             lt_prog_compiler_wl_CXX='-Wl,'
22061             lt_prog_compiler_pic_CXX='-KPIC'
22062             lt_prog_compiler_static_CXX='-static'
22063             ;;
22064           pgCC*)
22065             # Portland Group C++ compiler.
22066             lt_prog_compiler_wl_CXX='-Wl,'
22067             lt_prog_compiler_pic_CXX='-fpic'
22068             lt_prog_compiler_static_CXX='-Bstatic'
22069             ;;
22070           cxx*)
22071             # Compaq C++
22072             # Make sure the PIC flag is empty.  It appears that all Alpha
22073             # Linux and Compaq Tru64 Unix objects are PIC.
22074             lt_prog_compiler_pic_CXX=
22075             lt_prog_compiler_static_CXX='-non_shared'
22076             ;;
22077           *)
22078             ;;
22079         esac
22080         ;;
22081       lynxos*)
22082         ;;
22083       m88k*)
22084         ;;
22085       mvs*)
22086         case $cc_basename in
22087           cxx*)
22088             lt_prog_compiler_pic_CXX='-W c,exportall'
22089             ;;
22090           *)
22091             ;;
22092         esac
22093         ;;
22094       netbsd*)
22095         ;;
22096       osf3* | osf4* | osf5*)
22097         case $cc_basename in
22098           KCC*)
22099             lt_prog_compiler_wl_CXX='--backend -Wl,'
22100             ;;
22101           RCC*)
22102             # Rational C++ 2.4.1
22103             lt_prog_compiler_pic_CXX='-pic'
22104             ;;
22105           cxx*)
22106             # Digital/Compaq C++
22107             lt_prog_compiler_wl_CXX='-Wl,'
22108             # Make sure the PIC flag is empty.  It appears that all Alpha
22109             # Linux and Compaq Tru64 Unix objects are PIC.
22110             lt_prog_compiler_pic_CXX=
22111             lt_prog_compiler_static_CXX='-non_shared'
22112             ;;
22113           *)
22114             ;;
22115         esac
22116         ;;
22117       psos*)
22118         ;;
22119       sco*)
22120         case $cc_basename in
22121           CC*)
22122             lt_prog_compiler_pic_CXX='-fPIC'
22123             ;;
22124           *)
22125             ;;
22126         esac
22127         ;;
22128       solaris*)
22129         case $cc_basename in
22130           CC*)
22131             # Sun C++ 4.2, 5.x and Centerline C++
22132             lt_prog_compiler_pic_CXX='-KPIC'
22133             lt_prog_compiler_static_CXX='-Bstatic'
22134             lt_prog_compiler_wl_CXX='-Qoption ld '
22135             ;;
22136           gcx*)
22137             # Green Hills C++ Compiler
22138             lt_prog_compiler_pic_CXX='-PIC'
22139             ;;
22140           *)
22141             ;;
22142         esac
22143         ;;
22144       sunos4*)
22145         case $cc_basename in
22146           CC*)
22147             # Sun C++ 4.x
22148             lt_prog_compiler_pic_CXX='-pic'
22149             lt_prog_compiler_static_CXX='-Bstatic'
22150             ;;
22151           lcc*)
22152             # Lucid
22153             lt_prog_compiler_pic_CXX='-pic'
22154             ;;
22155           *)
22156             ;;
22157         esac
22158         ;;
22159       tandem*)
22160         case $cc_basename in
22161           NCC*)
22162             # NonStop-UX NCC 3.20
22163             lt_prog_compiler_pic_CXX='-KPIC'
22164             ;;
22165           *)
22166             ;;
22167         esac
22168         ;;
22169       unixware*)
22170         ;;
22171       vxworks*)
22172         ;;
22173       *)
22174         lt_prog_compiler_can_build_shared_CXX=no
22175         ;;
22176     esac
22177   fi
22178
22179 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
22180 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
22181
22182 #
22183 # Check to make sure the PIC flag actually works.
22184 #
22185 if test -n "$lt_prog_compiler_pic_CXX"; then
22186
22187 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
22188 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
22189 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
22190   echo $ECHO_N "(cached) $ECHO_C" >&6
22191 else
22192   lt_prog_compiler_pic_works_CXX=no
22193   ac_outfile=conftest.$ac_objext
22194    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22195    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
22196    # Insert the option either (1) after the last *FLAGS variable, or
22197    # (2) before a word containing "conftest.", or (3) at the end.
22198    # Note that $ac_compile itself does not contain backslashes and begins
22199    # with a dollar sign (not a hyphen), so the echo should work correctly.
22200    # The option is referenced via a variable to avoid confusing sed.
22201    lt_compile=`echo "$ac_compile" | $SED \
22202    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22203    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22204    -e 's:$: $lt_compiler_flag:'`
22205    (eval echo "\"\$as_me:22205: $lt_compile\"" >&5)
22206    (eval "$lt_compile" 2>conftest.err)
22207    ac_status=$?
22208    cat conftest.err >&5
22209    echo "$as_me:22209: \$? = $ac_status" >&5
22210    if (exit $ac_status) && test -s "$ac_outfile"; then
22211      # The compiler can only warn and ignore the option if not recognized
22212      # So say no if there are warnings other than the usual output.
22213      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
22214      $SED '/^$/d' conftest.err >conftest.er2
22215      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
22216        lt_prog_compiler_pic_works_CXX=yes
22217      fi
22218    fi
22219    $rm conftest*
22220
22221 fi
22222 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
22223 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
22224
22225 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
22226     case $lt_prog_compiler_pic_CXX in
22227      "" | " "*) ;;
22228      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
22229      esac
22230 else
22231     lt_prog_compiler_pic_CXX=
22232      lt_prog_compiler_can_build_shared_CXX=no
22233 fi
22234
22235 fi
22236 case $host_os in
22237   # For platforms which do not support PIC, -DPIC is meaningless:
22238   *djgpp*)
22239     lt_prog_compiler_pic_CXX=
22240     ;;
22241   *)
22242     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
22243     ;;
22244 esac
22245
22246 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
22247 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
22248 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
22249   echo $ECHO_N "(cached) $ECHO_C" >&6
22250 else
22251   lt_cv_prog_compiler_c_o_CXX=no
22252    $rm -r conftest 2>/dev/null
22253    mkdir conftest
22254    cd conftest
22255    mkdir out
22256    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22257
22258    lt_compiler_flag="-o out/conftest2.$ac_objext"
22259    # Insert the option either (1) after the last *FLAGS variable, or
22260    # (2) before a word containing "conftest.", or (3) at the end.
22261    # Note that $ac_compile itself does not contain backslashes and begins
22262    # with a dollar sign (not a hyphen), so the echo should work correctly.
22263    lt_compile=`echo "$ac_compile" | $SED \
22264    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22265    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22266    -e 's:$: $lt_compiler_flag:'`
22267    (eval echo "\"\$as_me:22267: $lt_compile\"" >&5)
22268    (eval "$lt_compile" 2>out/conftest.err)
22269    ac_status=$?
22270    cat out/conftest.err >&5
22271    echo "$as_me:22271: \$? = $ac_status" >&5
22272    if (exit $ac_status) && test -s out/conftest2.$ac_objext
22273    then
22274      # The compiler can only warn and ignore the option if not recognized
22275      # So say no if there are warnings
22276      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
22277      $SED '/^$/d' out/conftest.err >out/conftest.er2
22278      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
22279        lt_cv_prog_compiler_c_o_CXX=yes
22280      fi
22281    fi
22282    chmod u+w . 2>&5
22283    $rm conftest*
22284    # SGI C++ compiler will create directory out/ii_files/ for
22285    # template instantiation
22286    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
22287    $rm out/* && rmdir out
22288    cd ..
22289    rmdir conftest
22290    $rm conftest*
22291
22292 fi
22293 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
22294 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
22295
22296
22297 hard_links="nottested"
22298 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
22299   # do not overwrite the value of need_locks provided by the user
22300   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
22301 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
22302   hard_links=yes
22303   $rm conftest*
22304   ln conftest.a conftest.b 2>/dev/null && hard_links=no
22305   touch conftest.a
22306   ln conftest.a conftest.b 2>&5 || hard_links=no
22307   ln conftest.a conftest.b 2>/dev/null && hard_links=no
22308   echo "$as_me:$LINENO: result: $hard_links" >&5
22309 echo "${ECHO_T}$hard_links" >&6
22310   if test "$hard_links" = no; then
22311     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
22312 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
22313     need_locks=warn
22314   fi
22315 else
22316   need_locks=no
22317 fi
22318
22319 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
22320 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
22321
22322   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
22323   case $host_os in
22324   aix4* | aix5*)
22325     # If we're using GNU nm, then we don't want the "-C" option.
22326     # -C means demangle to AIX nm, but means don't demangle with GNU nm
22327     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
22328       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'
22329     else
22330       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'
22331     fi
22332     ;;
22333   pw32*)
22334     export_symbols_cmds_CXX="$ltdll_cmds"
22335   ;;
22336   cygwin* | mingw*)
22337     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'
22338   ;;
22339   *)
22340     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
22341   ;;
22342   esac
22343
22344 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
22345 echo "${ECHO_T}$ld_shlibs_CXX" >&6
22346 test "$ld_shlibs_CXX" = no && can_build_shared=no
22347
22348 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22349 if test "$GCC" = yes; then
22350   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22351 fi
22352
22353 #
22354 # Do we need to explicitly link libc?
22355 #
22356 case "x$archive_cmds_need_lc_CXX" in
22357 x|xyes)
22358   # Assume -lc should be added
22359   archive_cmds_need_lc_CXX=yes
22360
22361   if test "$enable_shared" = yes && test "$GCC" = yes; then
22362     case $archive_cmds_CXX in
22363     *'~'*)
22364       # FIXME: we may have to deal with multi-command sequences.
22365       ;;
22366     '$CC '*)
22367       # Test whether the compiler implicitly links with -lc since on some
22368       # systems, -lgcc has to come before -lc. If gcc already passes -lc
22369       # to ld, don't add -lc before -lgcc.
22370       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22371 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
22372       $rm conftest*
22373       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22374
22375       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22376   (eval $ac_compile) 2>&5
22377   ac_status=$?
22378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22379   (exit $ac_status); } 2>conftest.err; then
22380         soname=conftest
22381         lib=conftest
22382         libobjs=conftest.$ac_objext
22383         deplibs=
22384         wl=$lt_prog_compiler_wl_CXX
22385         compiler_flags=-v
22386         linker_flags=-v
22387         verstring=
22388         output_objdir=.
22389         libname=conftest
22390         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
22391         allow_undefined_flag_CXX=
22392         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22393   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22394   ac_status=$?
22395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22396   (exit $ac_status); }
22397         then
22398           archive_cmds_need_lc_CXX=no
22399         else
22400           archive_cmds_need_lc_CXX=yes
22401         fi
22402         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
22403       else
22404         cat conftest.err 1>&5
22405       fi
22406       $rm conftest*
22407       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
22408 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
22409       ;;
22410     esac
22411   fi
22412   ;;
22413 esac
22414
22415 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22416 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
22417 library_names_spec=
22418 libname_spec='lib$name'
22419 soname_spec=
22420 shrext_cmds=".so"
22421 postinstall_cmds=
22422 postuninstall_cmds=
22423 finish_cmds=
22424 finish_eval=
22425 shlibpath_var=
22426 shlibpath_overrides_runpath=unknown
22427 version_type=none
22428 dynamic_linker="$host_os ld.so"
22429 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22430 if test "$GCC" = yes; then
22431   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22432   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22433     # if the path contains ";" then we assume it to be the separator
22434     # otherwise default to the standard path separator (i.e. ":") - it is
22435     # assumed that no part of a normal pathname contains ";" but that should
22436     # okay in the real world where ";" in dirpaths is itself problematic.
22437     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22438   else
22439     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22440   fi
22441 else
22442   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22443 fi
22444 need_lib_prefix=unknown
22445 hardcode_into_libs=no
22446
22447 # when you set need_version to no, make sure it does not cause -set_version
22448 # flags to be left without arguments
22449 need_version=unknown
22450
22451 case $host_os in
22452 aix3*)
22453   version_type=linux
22454   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22455   shlibpath_var=LIBPATH
22456
22457   # AIX 3 has no versioning support, so we append a major version to the name.
22458   soname_spec='${libname}${release}${shared_ext}$major'
22459   ;;
22460
22461 aix4* | aix5*)
22462   version_type=linux
22463   need_lib_prefix=no
22464   need_version=no
22465   hardcode_into_libs=yes
22466   if test "$host_cpu" = ia64; then
22467     # AIX 5 supports IA64
22468     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22469     shlibpath_var=LD_LIBRARY_PATH
22470   else
22471     # With GCC up to 2.95.x, collect2 would create an import file
22472     # for dependence libraries.  The import file would start with
22473     # the line `#! .'.  This would cause the generated library to
22474     # depend on `.', always an invalid library.  This was fixed in
22475     # development snapshots of GCC prior to 3.0.
22476     case $host_os in
22477       aix4 | aix4.[01] | aix4.[01].*)
22478       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22479            echo ' yes '
22480            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22481         :
22482       else
22483         can_build_shared=no
22484       fi
22485       ;;
22486     esac
22487     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22488     # soname into executable. Probably we can add versioning support to
22489     # collect2, so additional links can be useful in future.
22490     if test "$aix_use_runtimelinking" = yes; then
22491       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22492       # instead of lib<name>.a to let people know that these are not
22493       # typical AIX shared libraries.
22494       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22495     else
22496       # We preserve .a as extension for shared libraries through AIX4.2
22497       # and later when we are not doing run time linking.
22498       library_names_spec='${libname}${release}.a $libname.a'
22499       soname_spec='${libname}${release}${shared_ext}$major'
22500     fi
22501     shlibpath_var=LIBPATH
22502   fi
22503   ;;
22504
22505 amigaos*)
22506   library_names_spec='$libname.ixlibrary $libname.a'
22507   # Create ${libname}_ixlibrary.a entries in /sys/libs.
22508   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'
22509   ;;
22510
22511 beos*)
22512   library_names_spec='${libname}${shared_ext}'
22513   dynamic_linker="$host_os ld.so"
22514   shlibpath_var=LIBRARY_PATH
22515   ;;
22516
22517 bsdi[45]*)
22518   version_type=linux
22519   need_version=no
22520   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22521   soname_spec='${libname}${release}${shared_ext}$major'
22522   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22523   shlibpath_var=LD_LIBRARY_PATH
22524   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22525   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22526   # the default ld.so.conf also contains /usr/contrib/lib and
22527   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22528   # libtool to hard-code these into programs
22529   ;;
22530
22531 cygwin* | mingw* | pw32*)
22532   version_type=windows
22533   shrext_cmds=".dll"
22534   need_version=no
22535   need_lib_prefix=no
22536
22537   case $GCC,$host_os in
22538   yes,cygwin* | yes,mingw* | yes,pw32*)
22539     library_names_spec='$libname.dll.a'
22540     # DLL is installed to $(libdir)/../bin by postinstall_cmds
22541     postinstall_cmds='base_file=`basename \${file}`~
22542       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22543       dldir=$destdir/`dirname \$dlpath`~
22544       test -d \$dldir || mkdir -p \$dldir~
22545       $install_prog $dir/$dlname \$dldir/$dlname~
22546       chmod a+x \$dldir/$dlname'
22547     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22548       dlpath=$dir/\$dldll~
22549        $rm \$dlpath'
22550     shlibpath_overrides_runpath=yes
22551
22552     case $host_os in
22553     cygwin*)
22554       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22555       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22556       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22557       ;;
22558     mingw*)
22559       # MinGW DLLs use traditional 'lib' prefix
22560       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22561       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22562       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22563         # It is most probably a Windows format PATH printed by
22564         # mingw gcc, but we are running on Cygwin. Gcc prints its search
22565         # path with ; separators, and with drive letters. We can handle the
22566         # drive letters (cygwin fileutils understands them), so leave them,
22567         # especially as we might pass files found there to a mingw objdump,
22568         # which wouldn't understand a cygwinified path. Ahh.
22569         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22570       else
22571         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
22572       fi
22573       ;;
22574     pw32*)
22575       # pw32 DLLs use 'pw' prefix rather than 'lib'
22576       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22577       ;;
22578     esac
22579     ;;
22580
22581   *)
22582     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22583     ;;
22584   esac
22585   dynamic_linker='Win32 ld.exe'
22586   # FIXME: first we should search . and the directory the executable is in
22587   shlibpath_var=PATH
22588   ;;
22589
22590 darwin* | rhapsody*)
22591   dynamic_linker="$host_os dyld"
22592   version_type=darwin
22593   need_lib_prefix=no
22594   need_version=no
22595   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22596   soname_spec='${libname}${release}${major}$shared_ext'
22597   shlibpath_overrides_runpath=yes
22598   shlibpath_var=DYLD_LIBRARY_PATH
22599   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
22600   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22601   if test "$GCC" = yes; then
22602     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"`
22603   else
22604     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22605   fi
22606   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22607   ;;
22608
22609 dgux*)
22610   version_type=linux
22611   need_lib_prefix=no
22612   need_version=no
22613   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22614   soname_spec='${libname}${release}${shared_ext}$major'
22615   shlibpath_var=LD_LIBRARY_PATH
22616   ;;
22617
22618 freebsd1*)
22619   dynamic_linker=no
22620   ;;
22621
22622 kfreebsd*-gnu)
22623   version_type=linux
22624   need_lib_prefix=no
22625   need_version=no
22626   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22627   soname_spec='${libname}${release}${shared_ext}$major'
22628   shlibpath_var=LD_LIBRARY_PATH
22629   shlibpath_overrides_runpath=no
22630   hardcode_into_libs=yes
22631   dynamic_linker='GNU ld.so'
22632   ;;
22633
22634 freebsd* | dragonfly*)
22635   # DragonFly does not have aout.  When/if they implement a new
22636   # versioning mechanism, adjust this.
22637   if test -x /usr/bin/objformat; then
22638     objformat=`/usr/bin/objformat`
22639   else
22640     case $host_os in
22641     freebsd[123]*) objformat=aout ;;
22642     *) objformat=elf ;;
22643     esac
22644   fi
22645   version_type=freebsd-$objformat
22646   case $version_type in
22647     freebsd-elf*)
22648       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22649       need_version=no
22650       need_lib_prefix=no
22651       ;;
22652     freebsd-*)
22653       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22654       need_version=yes
22655       ;;
22656   esac
22657   shlibpath_var=LD_LIBRARY_PATH
22658   case $host_os in
22659   freebsd2*)
22660     shlibpath_overrides_runpath=yes
22661     ;;
22662   freebsd3.[01]* | freebsdelf3.[01]*)
22663     shlibpath_overrides_runpath=yes
22664     hardcode_into_libs=yes
22665     ;;
22666   *) # from 3.2 on
22667     shlibpath_overrides_runpath=no
22668     hardcode_into_libs=yes
22669     ;;
22670   esac
22671   ;;
22672
22673 gnu*)
22674   version_type=linux
22675   need_lib_prefix=no
22676   need_version=no
22677   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22678   soname_spec='${libname}${release}${shared_ext}$major'
22679   shlibpath_var=LD_LIBRARY_PATH
22680   hardcode_into_libs=yes
22681   ;;
22682
22683 hpux9* | hpux10* | hpux11*)
22684   # Give a soname corresponding to the major version so that dld.sl refuses to
22685   # link against other versions.
22686   version_type=sunos
22687   need_lib_prefix=no
22688   need_version=no
22689   case $host_cpu in
22690   ia64*)
22691     shrext_cmds='.so'
22692     hardcode_into_libs=yes
22693     dynamic_linker="$host_os dld.so"
22694     shlibpath_var=LD_LIBRARY_PATH
22695     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22696     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22697     soname_spec='${libname}${release}${shared_ext}$major'
22698     if test "X$HPUX_IA64_MODE" = X32; then
22699       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22700     else
22701       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22702     fi
22703     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22704     ;;
22705    hppa*64*)
22706      shrext_cmds='.sl'
22707      hardcode_into_libs=yes
22708      dynamic_linker="$host_os dld.sl"
22709      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22710      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22711      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22712      soname_spec='${libname}${release}${shared_ext}$major'
22713      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22714      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22715      ;;
22716    *)
22717     shrext_cmds='.sl'
22718     dynamic_linker="$host_os dld.sl"
22719     shlibpath_var=SHLIB_PATH
22720     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22721     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22722     soname_spec='${libname}${release}${shared_ext}$major'
22723     ;;
22724   esac
22725   # HP-UX runs *really* slowly unless shared libraries are mode 555.
22726   postinstall_cmds='chmod 555 $lib'
22727   ;;
22728
22729 irix5* | irix6* | nonstopux*)
22730   case $host_os in
22731     nonstopux*) version_type=nonstopux ;;
22732     *)
22733         if test "$lt_cv_prog_gnu_ld" = yes; then
22734                 version_type=linux
22735         else
22736                 version_type=irix
22737         fi ;;
22738   esac
22739   need_lib_prefix=no
22740   need_version=no
22741   soname_spec='${libname}${release}${shared_ext}$major'
22742   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22743   case $host_os in
22744   irix5* | nonstopux*)
22745     libsuff= shlibsuff=
22746     ;;
22747   *)
22748     case $LD in # libtool.m4 will add one of these switches to LD
22749     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22750       libsuff= shlibsuff= libmagic=32-bit;;
22751     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22752       libsuff=32 shlibsuff=N32 libmagic=N32;;
22753     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22754       libsuff=64 shlibsuff=64 libmagic=64-bit;;
22755     *) libsuff= shlibsuff= libmagic=never-match;;
22756     esac
22757     ;;
22758   esac
22759   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22760   shlibpath_overrides_runpath=no
22761   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22762   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22763   hardcode_into_libs=yes
22764   ;;
22765
22766 # No shared lib support for Linux oldld, aout, or coff.
22767 linux*oldld* | linux*aout* | linux*coff*)
22768   dynamic_linker=no
22769   ;;
22770
22771 # This must be Linux ELF.
22772 linux*)
22773   version_type=linux
22774   need_lib_prefix=no
22775   need_version=no
22776   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22777   soname_spec='${libname}${release}${shared_ext}$major'
22778   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22779   shlibpath_var=LD_LIBRARY_PATH
22780   shlibpath_overrides_runpath=no
22781   # This implies no fast_install, which is unacceptable.
22782   # Some rework will be needed to allow for fast_install
22783   # before this can be enabled.
22784   hardcode_into_libs=yes
22785
22786   # Append ld.so.conf contents to the search path
22787   if test -f /etc/ld.so.conf; then
22788     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' ' '`
22789     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22790   fi
22791
22792   # We used to test for /lib/ld.so.1 and disable shared libraries on
22793   # powerpc, because MkLinux only supported shared libraries with the
22794   # GNU dynamic linker.  Since this was broken with cross compilers,
22795   # most powerpc-linux boxes support dynamic linking these days and
22796   # people can always --disable-shared, the test was removed, and we
22797   # assume the GNU/Linux dynamic linker is in use.
22798   dynamic_linker='GNU/Linux ld.so'
22799   ;;
22800
22801 knetbsd*-gnu)
22802   version_type=linux
22803   need_lib_prefix=no
22804   need_version=no
22805   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22806   soname_spec='${libname}${release}${shared_ext}$major'
22807   shlibpath_var=LD_LIBRARY_PATH
22808   shlibpath_overrides_runpath=no
22809   hardcode_into_libs=yes
22810   dynamic_linker='GNU ld.so'
22811   ;;
22812
22813 netbsd*)
22814   version_type=sunos
22815   need_lib_prefix=no
22816   need_version=no
22817   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22818     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22819     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22820     dynamic_linker='NetBSD (a.out) ld.so'
22821   else
22822     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22823     soname_spec='${libname}${release}${shared_ext}$major'
22824     dynamic_linker='NetBSD ld.elf_so'
22825   fi
22826   shlibpath_var=LD_LIBRARY_PATH
22827   shlibpath_overrides_runpath=yes
22828   hardcode_into_libs=yes
22829   ;;
22830
22831 newsos6)
22832   version_type=linux
22833   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22834   shlibpath_var=LD_LIBRARY_PATH
22835   shlibpath_overrides_runpath=yes
22836   ;;
22837
22838 nto-qnx*)
22839   version_type=linux
22840   need_lib_prefix=no
22841   need_version=no
22842   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22843   soname_spec='${libname}${release}${shared_ext}$major'
22844   shlibpath_var=LD_LIBRARY_PATH
22845   shlibpath_overrides_runpath=yes
22846   ;;
22847
22848 openbsd*)
22849   version_type=sunos
22850   need_lib_prefix=no
22851   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
22852   case $host_os in
22853     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
22854     *)                         need_version=no  ;;
22855   esac
22856   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22857   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22858   shlibpath_var=LD_LIBRARY_PATH
22859   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22860     case $host_os in
22861       openbsd2.[89] | openbsd2.[89].*)
22862         shlibpath_overrides_runpath=no
22863         ;;
22864       *)
22865         shlibpath_overrides_runpath=yes
22866         ;;
22867       esac
22868   else
22869     shlibpath_overrides_runpath=yes
22870   fi
22871   ;;
22872
22873 os2*)
22874   libname_spec='$name'
22875   shrext_cmds=".dll"
22876   need_lib_prefix=no
22877   library_names_spec='$libname${shared_ext} $libname.a'
22878   dynamic_linker='OS/2 ld.exe'
22879   shlibpath_var=LIBPATH
22880   ;;
22881
22882 osf3* | osf4* | osf5*)
22883   version_type=osf
22884   need_lib_prefix=no
22885   need_version=no
22886   soname_spec='${libname}${release}${shared_ext}$major'
22887   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22888   shlibpath_var=LD_LIBRARY_PATH
22889   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22890   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22891   ;;
22892
22893 sco3.2v5*)
22894   version_type=osf
22895   soname_spec='${libname}${release}${shared_ext}$major'
22896   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22897   shlibpath_var=LD_LIBRARY_PATH
22898   ;;
22899
22900 solaris*)
22901   version_type=linux
22902   need_lib_prefix=no
22903   need_version=no
22904   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22905   soname_spec='${libname}${release}${shared_ext}$major'
22906   shlibpath_var=LD_LIBRARY_PATH
22907   shlibpath_overrides_runpath=yes
22908   hardcode_into_libs=yes
22909   # ldd complains unless libraries are executable
22910   postinstall_cmds='chmod +x $lib'
22911   ;;
22912
22913 sunos4*)
22914   version_type=sunos
22915   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22916   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22917   shlibpath_var=LD_LIBRARY_PATH
22918   shlibpath_overrides_runpath=yes
22919   if test "$with_gnu_ld" = yes; then
22920     need_lib_prefix=no
22921   fi
22922   need_version=yes
22923   ;;
22924
22925 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
22926   version_type=linux
22927   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22928   soname_spec='${libname}${release}${shared_ext}$major'
22929   shlibpath_var=LD_LIBRARY_PATH
22930   case $host_vendor in
22931     sni)
22932       shlibpath_overrides_runpath=no
22933       need_lib_prefix=no
22934       export_dynamic_flag_spec='${wl}-Blargedynsym'
22935       runpath_var=LD_RUN_PATH
22936       ;;
22937     siemens)
22938       need_lib_prefix=no
22939       ;;
22940     motorola)
22941       need_lib_prefix=no
22942       need_version=no
22943       shlibpath_overrides_runpath=no
22944       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22945       ;;
22946   esac
22947   ;;
22948
22949 sysv4*MP*)
22950   if test -d /usr/nec ;then
22951     version_type=linux
22952     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22953     soname_spec='$libname${shared_ext}.$major'
22954     shlibpath_var=LD_LIBRARY_PATH
22955   fi
22956   ;;
22957
22958 uts4*)
22959   version_type=linux
22960   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22961   soname_spec='${libname}${release}${shared_ext}$major'
22962   shlibpath_var=LD_LIBRARY_PATH
22963   ;;
22964
22965 *)
22966   dynamic_linker=no
22967   ;;
22968 esac
22969 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
22970 echo "${ECHO_T}$dynamic_linker" >&6
22971 test "$dynamic_linker" = no && can_build_shared=no
22972
22973 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22974 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
22975 hardcode_action_CXX=
22976 if test -n "$hardcode_libdir_flag_spec_CXX" || \
22977    test -n "$runpath_var_CXX" || \
22978    test "X$hardcode_automatic_CXX" = "Xyes" ; then
22979
22980   # We can hardcode non-existant directories.
22981   if test "$hardcode_direct_CXX" != no &&
22982      # If the only mechanism to avoid hardcoding is shlibpath_var, we
22983      # have to relink, otherwise we might link with an installed library
22984      # when we should be linking with a yet-to-be-installed one
22985      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
22986      test "$hardcode_minus_L_CXX" != no; then
22987     # Linking always hardcodes the temporary library directory.
22988     hardcode_action_CXX=relink
22989   else
22990     # We can link without hardcoding, and we can hardcode nonexisting dirs.
22991     hardcode_action_CXX=immediate
22992   fi
22993 else
22994   # We cannot hardcode anything, or else we can only hardcode existing
22995   # directories.
22996   hardcode_action_CXX=unsupported
22997 fi
22998 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
22999 echo "${ECHO_T}$hardcode_action_CXX" >&6
23000
23001 if test "$hardcode_action_CXX" = relink; then
23002   # Fast installation is not supported
23003   enable_fast_install=no
23004 elif test "$shlibpath_overrides_runpath" = yes ||
23005      test "$enable_shared" = no; then
23006   # Fast installation is not necessary
23007   enable_fast_install=needless
23008 fi
23009
23010 striplib=
23011 old_striplib=
23012 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
23013 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
23014 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
23015   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
23016   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
23017   echo "$as_me:$LINENO: result: yes" >&5
23018 echo "${ECHO_T}yes" >&6
23019 else
23020 # FIXME - insert some real tests, host_os isn't really good enough
23021   case $host_os in
23022    darwin*)
23023        if test -n "$STRIP" ; then
23024          striplib="$STRIP -x"
23025          echo "$as_me:$LINENO: result: yes" >&5
23026 echo "${ECHO_T}yes" >&6
23027        else
23028   echo "$as_me:$LINENO: result: no" >&5
23029 echo "${ECHO_T}no" >&6
23030 fi
23031        ;;
23032    *)
23033   echo "$as_me:$LINENO: result: no" >&5
23034 echo "${ECHO_T}no" >&6
23035     ;;
23036   esac
23037 fi
23038
23039 if test "x$enable_dlopen" != xyes; then
23040   enable_dlopen=unknown
23041   enable_dlopen_self=unknown
23042   enable_dlopen_self_static=unknown
23043 else
23044   lt_cv_dlopen=no
23045   lt_cv_dlopen_libs=
23046
23047   case $host_os in
23048   beos*)
23049     lt_cv_dlopen="load_add_on"
23050     lt_cv_dlopen_libs=
23051     lt_cv_dlopen_self=yes
23052     ;;
23053
23054   mingw* | pw32*)
23055     lt_cv_dlopen="LoadLibrary"
23056     lt_cv_dlopen_libs=
23057    ;;
23058
23059   cygwin*)
23060     lt_cv_dlopen="dlopen"
23061     lt_cv_dlopen_libs=
23062    ;;
23063
23064   darwin*)
23065   # if libdl is installed we need to link against it
23066     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23067 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23068 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23069   echo $ECHO_N "(cached) $ECHO_C" >&6
23070 else
23071   ac_check_lib_save_LIBS=$LIBS
23072 LIBS="-ldl  $LIBS"
23073 cat >conftest.$ac_ext <<_ACEOF
23074 /* confdefs.h.  */
23075 _ACEOF
23076 cat confdefs.h >>conftest.$ac_ext
23077 cat >>conftest.$ac_ext <<_ACEOF
23078 /* end confdefs.h.  */
23079
23080 /* Override any gcc2 internal prototype to avoid an error.  */
23081 #ifdef __cplusplus
23082 extern "C"
23083 #endif
23084 /* We use char because int might match the return type of a gcc2
23085    builtin and then its argument prototype would still apply.  */
23086 char dlopen ();
23087 int
23088 main ()
23089 {
23090 dlopen ();
23091   ;
23092   return 0;
23093 }
23094 _ACEOF
23095 rm -f conftest.$ac_objext conftest$ac_exeext
23096 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23097   (eval $ac_link) 2>conftest.er1
23098   ac_status=$?
23099   grep -v '^ *+' conftest.er1 >conftest.err
23100   rm -f conftest.er1
23101   cat conftest.err >&5
23102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23103   (exit $ac_status); } &&
23104          { ac_try='test -z "$ac_cxx_werror_flag"
23105                          || test ! -s conftest.err'
23106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23107   (eval $ac_try) 2>&5
23108   ac_status=$?
23109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23110   (exit $ac_status); }; } &&
23111          { ac_try='test -s conftest$ac_exeext'
23112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23113   (eval $ac_try) 2>&5
23114   ac_status=$?
23115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23116   (exit $ac_status); }; }; then
23117   ac_cv_lib_dl_dlopen=yes
23118 else
23119   echo "$as_me: failed program was:" >&5
23120 sed 's/^/| /' conftest.$ac_ext >&5
23121
23122 ac_cv_lib_dl_dlopen=no
23123 fi
23124 rm -f conftest.err conftest.$ac_objext \
23125       conftest$ac_exeext conftest.$ac_ext
23126 LIBS=$ac_check_lib_save_LIBS
23127 fi
23128 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23129 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23130 if test $ac_cv_lib_dl_dlopen = yes; then
23131   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23132 else
23133
23134     lt_cv_dlopen="dyld"
23135     lt_cv_dlopen_libs=
23136     lt_cv_dlopen_self=yes
23137
23138 fi
23139
23140    ;;
23141
23142   *)
23143     echo "$as_me:$LINENO: checking for shl_load" >&5
23144 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
23145 if test "${ac_cv_func_shl_load+set}" = set; then
23146   echo $ECHO_N "(cached) $ECHO_C" >&6
23147 else
23148   cat >conftest.$ac_ext <<_ACEOF
23149 /* confdefs.h.  */
23150 _ACEOF
23151 cat confdefs.h >>conftest.$ac_ext
23152 cat >>conftest.$ac_ext <<_ACEOF
23153 /* end confdefs.h.  */
23154 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
23155    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23156 #define shl_load innocuous_shl_load
23157
23158 /* System header to define __stub macros and hopefully few prototypes,
23159     which can conflict with char shl_load (); below.
23160     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23161     <limits.h> exists even on freestanding compilers.  */
23162
23163 #ifdef __STDC__
23164 # include <limits.h>
23165 #else
23166 # include <assert.h>
23167 #endif
23168
23169 #undef shl_load
23170
23171 /* Override any gcc2 internal prototype to avoid an error.  */
23172 #ifdef __cplusplus
23173 extern "C"
23174 {
23175 #endif
23176 /* We use char because int might match the return type of a gcc2
23177    builtin and then its argument prototype would still apply.  */
23178 char shl_load ();
23179 /* The GNU C library defines this for functions which it implements
23180     to always fail with ENOSYS.  Some functions are actually named
23181     something starting with __ and the normal name is an alias.  */
23182 #if defined (__stub_shl_load) || defined (__stub___shl_load)
23183 choke me
23184 #else
23185 char (*f) () = shl_load;
23186 #endif
23187 #ifdef __cplusplus
23188 }
23189 #endif
23190
23191 int
23192 main ()
23193 {
23194 return f != shl_load;
23195   ;
23196   return 0;
23197 }
23198 _ACEOF
23199 rm -f conftest.$ac_objext conftest$ac_exeext
23200 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23201   (eval $ac_link) 2>conftest.er1
23202   ac_status=$?
23203   grep -v '^ *+' conftest.er1 >conftest.err
23204   rm -f conftest.er1
23205   cat conftest.err >&5
23206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23207   (exit $ac_status); } &&
23208          { ac_try='test -z "$ac_cxx_werror_flag"
23209                          || test ! -s conftest.err'
23210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23211   (eval $ac_try) 2>&5
23212   ac_status=$?
23213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23214   (exit $ac_status); }; } &&
23215          { ac_try='test -s conftest$ac_exeext'
23216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23217   (eval $ac_try) 2>&5
23218   ac_status=$?
23219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23220   (exit $ac_status); }; }; then
23221   ac_cv_func_shl_load=yes
23222 else
23223   echo "$as_me: failed program was:" >&5
23224 sed 's/^/| /' conftest.$ac_ext >&5
23225
23226 ac_cv_func_shl_load=no
23227 fi
23228 rm -f conftest.err conftest.$ac_objext \
23229       conftest$ac_exeext conftest.$ac_ext
23230 fi
23231 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
23232 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
23233 if test $ac_cv_func_shl_load = yes; then
23234   lt_cv_dlopen="shl_load"
23235 else
23236   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
23237 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
23238 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
23239   echo $ECHO_N "(cached) $ECHO_C" >&6
23240 else
23241   ac_check_lib_save_LIBS=$LIBS
23242 LIBS="-ldld  $LIBS"
23243 cat >conftest.$ac_ext <<_ACEOF
23244 /* confdefs.h.  */
23245 _ACEOF
23246 cat confdefs.h >>conftest.$ac_ext
23247 cat >>conftest.$ac_ext <<_ACEOF
23248 /* end confdefs.h.  */
23249
23250 /* Override any gcc2 internal prototype to avoid an error.  */
23251 #ifdef __cplusplus
23252 extern "C"
23253 #endif
23254 /* We use char because int might match the return type of a gcc2
23255    builtin and then its argument prototype would still apply.  */
23256 char shl_load ();
23257 int
23258 main ()
23259 {
23260 shl_load ();
23261   ;
23262   return 0;
23263 }
23264 _ACEOF
23265 rm -f conftest.$ac_objext conftest$ac_exeext
23266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23267   (eval $ac_link) 2>conftest.er1
23268   ac_status=$?
23269   grep -v '^ *+' conftest.er1 >conftest.err
23270   rm -f conftest.er1
23271   cat conftest.err >&5
23272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23273   (exit $ac_status); } &&
23274          { ac_try='test -z "$ac_cxx_werror_flag"
23275                          || test ! -s conftest.err'
23276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23277   (eval $ac_try) 2>&5
23278   ac_status=$?
23279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23280   (exit $ac_status); }; } &&
23281          { ac_try='test -s conftest$ac_exeext'
23282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23283   (eval $ac_try) 2>&5
23284   ac_status=$?
23285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23286   (exit $ac_status); }; }; then
23287   ac_cv_lib_dld_shl_load=yes
23288 else
23289   echo "$as_me: failed program was:" >&5
23290 sed 's/^/| /' conftest.$ac_ext >&5
23291
23292 ac_cv_lib_dld_shl_load=no
23293 fi
23294 rm -f conftest.err conftest.$ac_objext \
23295       conftest$ac_exeext conftest.$ac_ext
23296 LIBS=$ac_check_lib_save_LIBS
23297 fi
23298 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
23299 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
23300 if test $ac_cv_lib_dld_shl_load = yes; then
23301   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
23302 else
23303   echo "$as_me:$LINENO: checking for dlopen" >&5
23304 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
23305 if test "${ac_cv_func_dlopen+set}" = set; then
23306   echo $ECHO_N "(cached) $ECHO_C" >&6
23307 else
23308   cat >conftest.$ac_ext <<_ACEOF
23309 /* confdefs.h.  */
23310 _ACEOF
23311 cat confdefs.h >>conftest.$ac_ext
23312 cat >>conftest.$ac_ext <<_ACEOF
23313 /* end confdefs.h.  */
23314 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
23315    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23316 #define dlopen innocuous_dlopen
23317
23318 /* System header to define __stub macros and hopefully few prototypes,
23319     which can conflict with char dlopen (); below.
23320     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23321     <limits.h> exists even on freestanding compilers.  */
23322
23323 #ifdef __STDC__
23324 # include <limits.h>
23325 #else
23326 # include <assert.h>
23327 #endif
23328
23329 #undef dlopen
23330
23331 /* Override any gcc2 internal prototype to avoid an error.  */
23332 #ifdef __cplusplus
23333 extern "C"
23334 {
23335 #endif
23336 /* We use char because int might match the return type of a gcc2
23337    builtin and then its argument prototype would still apply.  */
23338 char dlopen ();
23339 /* The GNU C library defines this for functions which it implements
23340     to always fail with ENOSYS.  Some functions are actually named
23341     something starting with __ and the normal name is an alias.  */
23342 #if defined (__stub_dlopen) || defined (__stub___dlopen)
23343 choke me
23344 #else
23345 char (*f) () = dlopen;
23346 #endif
23347 #ifdef __cplusplus
23348 }
23349 #endif
23350
23351 int
23352 main ()
23353 {
23354 return f != dlopen;
23355   ;
23356   return 0;
23357 }
23358 _ACEOF
23359 rm -f conftest.$ac_objext conftest$ac_exeext
23360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23361   (eval $ac_link) 2>conftest.er1
23362   ac_status=$?
23363   grep -v '^ *+' conftest.er1 >conftest.err
23364   rm -f conftest.er1
23365   cat conftest.err >&5
23366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23367   (exit $ac_status); } &&
23368          { ac_try='test -z "$ac_cxx_werror_flag"
23369                          || test ! -s conftest.err'
23370   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23371   (eval $ac_try) 2>&5
23372   ac_status=$?
23373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23374   (exit $ac_status); }; } &&
23375          { ac_try='test -s conftest$ac_exeext'
23376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23377   (eval $ac_try) 2>&5
23378   ac_status=$?
23379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23380   (exit $ac_status); }; }; then
23381   ac_cv_func_dlopen=yes
23382 else
23383   echo "$as_me: failed program was:" >&5
23384 sed 's/^/| /' conftest.$ac_ext >&5
23385
23386 ac_cv_func_dlopen=no
23387 fi
23388 rm -f conftest.err conftest.$ac_objext \
23389       conftest$ac_exeext conftest.$ac_ext
23390 fi
23391 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
23392 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
23393 if test $ac_cv_func_dlopen = yes; then
23394   lt_cv_dlopen="dlopen"
23395 else
23396   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23397 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23398 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23399   echo $ECHO_N "(cached) $ECHO_C" >&6
23400 else
23401   ac_check_lib_save_LIBS=$LIBS
23402 LIBS="-ldl  $LIBS"
23403 cat >conftest.$ac_ext <<_ACEOF
23404 /* confdefs.h.  */
23405 _ACEOF
23406 cat confdefs.h >>conftest.$ac_ext
23407 cat >>conftest.$ac_ext <<_ACEOF
23408 /* end confdefs.h.  */
23409
23410 /* Override any gcc2 internal prototype to avoid an error.  */
23411 #ifdef __cplusplus
23412 extern "C"
23413 #endif
23414 /* We use char because int might match the return type of a gcc2
23415    builtin and then its argument prototype would still apply.  */
23416 char dlopen ();
23417 int
23418 main ()
23419 {
23420 dlopen ();
23421   ;
23422   return 0;
23423 }
23424 _ACEOF
23425 rm -f conftest.$ac_objext conftest$ac_exeext
23426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23427   (eval $ac_link) 2>conftest.er1
23428   ac_status=$?
23429   grep -v '^ *+' conftest.er1 >conftest.err
23430   rm -f conftest.er1
23431   cat conftest.err >&5
23432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23433   (exit $ac_status); } &&
23434          { ac_try='test -z "$ac_cxx_werror_flag"
23435                          || test ! -s conftest.err'
23436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23437   (eval $ac_try) 2>&5
23438   ac_status=$?
23439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23440   (exit $ac_status); }; } &&
23441          { ac_try='test -s conftest$ac_exeext'
23442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23443   (eval $ac_try) 2>&5
23444   ac_status=$?
23445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23446   (exit $ac_status); }; }; then
23447   ac_cv_lib_dl_dlopen=yes
23448 else
23449   echo "$as_me: failed program was:" >&5
23450 sed 's/^/| /' conftest.$ac_ext >&5
23451
23452 ac_cv_lib_dl_dlopen=no
23453 fi
23454 rm -f conftest.err conftest.$ac_objext \
23455       conftest$ac_exeext conftest.$ac_ext
23456 LIBS=$ac_check_lib_save_LIBS
23457 fi
23458 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23459 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23460 if test $ac_cv_lib_dl_dlopen = yes; then
23461   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23462 else
23463   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
23464 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
23465 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
23466   echo $ECHO_N "(cached) $ECHO_C" >&6
23467 else
23468   ac_check_lib_save_LIBS=$LIBS
23469 LIBS="-lsvld  $LIBS"
23470 cat >conftest.$ac_ext <<_ACEOF
23471 /* confdefs.h.  */
23472 _ACEOF
23473 cat confdefs.h >>conftest.$ac_ext
23474 cat >>conftest.$ac_ext <<_ACEOF
23475 /* end confdefs.h.  */
23476
23477 /* Override any gcc2 internal prototype to avoid an error.  */
23478 #ifdef __cplusplus
23479 extern "C"
23480 #endif
23481 /* We use char because int might match the return type of a gcc2
23482    builtin and then its argument prototype would still apply.  */
23483 char dlopen ();
23484 int
23485 main ()
23486 {
23487 dlopen ();
23488   ;
23489   return 0;
23490 }
23491 _ACEOF
23492 rm -f conftest.$ac_objext conftest$ac_exeext
23493 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23494   (eval $ac_link) 2>conftest.er1
23495   ac_status=$?
23496   grep -v '^ *+' conftest.er1 >conftest.err
23497   rm -f conftest.er1
23498   cat conftest.err >&5
23499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23500   (exit $ac_status); } &&
23501          { ac_try='test -z "$ac_cxx_werror_flag"
23502                          || test ! -s conftest.err'
23503   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23504   (eval $ac_try) 2>&5
23505   ac_status=$?
23506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23507   (exit $ac_status); }; } &&
23508          { ac_try='test -s conftest$ac_exeext'
23509   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23510   (eval $ac_try) 2>&5
23511   ac_status=$?
23512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23513   (exit $ac_status); }; }; then
23514   ac_cv_lib_svld_dlopen=yes
23515 else
23516   echo "$as_me: failed program was:" >&5
23517 sed 's/^/| /' conftest.$ac_ext >&5
23518
23519 ac_cv_lib_svld_dlopen=no
23520 fi
23521 rm -f conftest.err conftest.$ac_objext \
23522       conftest$ac_exeext conftest.$ac_ext
23523 LIBS=$ac_check_lib_save_LIBS
23524 fi
23525 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
23526 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
23527 if test $ac_cv_lib_svld_dlopen = yes; then
23528   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
23529 else
23530   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
23531 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
23532 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
23533   echo $ECHO_N "(cached) $ECHO_C" >&6
23534 else
23535   ac_check_lib_save_LIBS=$LIBS
23536 LIBS="-ldld  $LIBS"
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
23544 /* Override any gcc2 internal prototype to avoid an error.  */
23545 #ifdef __cplusplus
23546 extern "C"
23547 #endif
23548 /* We use char because int might match the return type of a gcc2
23549    builtin and then its argument prototype would still apply.  */
23550 char dld_link ();
23551 int
23552 main ()
23553 {
23554 dld_link ();
23555   ;
23556   return 0;
23557 }
23558 _ACEOF
23559 rm -f conftest.$ac_objext conftest$ac_exeext
23560 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23561   (eval $ac_link) 2>conftest.er1
23562   ac_status=$?
23563   grep -v '^ *+' conftest.er1 >conftest.err
23564   rm -f conftest.er1
23565   cat conftest.err >&5
23566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23567   (exit $ac_status); } &&
23568          { ac_try='test -z "$ac_cxx_werror_flag"
23569                          || test ! -s conftest.err'
23570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23571   (eval $ac_try) 2>&5
23572   ac_status=$?
23573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23574   (exit $ac_status); }; } &&
23575          { ac_try='test -s conftest$ac_exeext'
23576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23577   (eval $ac_try) 2>&5
23578   ac_status=$?
23579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23580   (exit $ac_status); }; }; then
23581   ac_cv_lib_dld_dld_link=yes
23582 else
23583   echo "$as_me: failed program was:" >&5
23584 sed 's/^/| /' conftest.$ac_ext >&5
23585
23586 ac_cv_lib_dld_dld_link=no
23587 fi
23588 rm -f conftest.err conftest.$ac_objext \
23589       conftest$ac_exeext conftest.$ac_ext
23590 LIBS=$ac_check_lib_save_LIBS
23591 fi
23592 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
23593 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
23594 if test $ac_cv_lib_dld_dld_link = yes; then
23595   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
23596 fi
23597
23598
23599 fi
23600
23601
23602 fi
23603
23604
23605 fi
23606
23607
23608 fi
23609
23610
23611 fi
23612
23613     ;;
23614   esac
23615
23616   if test "x$lt_cv_dlopen" != xno; then
23617     enable_dlopen=yes
23618   else
23619     enable_dlopen=no
23620   fi
23621
23622   case $lt_cv_dlopen in
23623   dlopen)
23624     save_CPPFLAGS="$CPPFLAGS"
23625     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
23626
23627     save_LDFLAGS="$LDFLAGS"
23628     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
23629
23630     save_LIBS="$LIBS"
23631     LIBS="$lt_cv_dlopen_libs $LIBS"
23632
23633     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
23634 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
23635 if test "${lt_cv_dlopen_self+set}" = set; then
23636   echo $ECHO_N "(cached) $ECHO_C" >&6
23637 else
23638           if test "$cross_compiling" = yes; then :
23639   lt_cv_dlopen_self=cross
23640 else
23641   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23642   lt_status=$lt_dlunknown
23643   cat > conftest.$ac_ext <<EOF
23644 #line 23644 "configure"
23645 #include "confdefs.h"
23646
23647 #if HAVE_DLFCN_H
23648 #include <dlfcn.h>
23649 #endif
23650
23651 #include <stdio.h>
23652
23653 #ifdef RTLD_GLOBAL
23654 #  define LT_DLGLOBAL           RTLD_GLOBAL
23655 #else
23656 #  ifdef DL_GLOBAL
23657 #    define LT_DLGLOBAL         DL_GLOBAL
23658 #  else
23659 #    define LT_DLGLOBAL         0
23660 #  endif
23661 #endif
23662
23663 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23664    find out it does not work in some platform. */
23665 #ifndef LT_DLLAZY_OR_NOW
23666 #  ifdef RTLD_LAZY
23667 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
23668 #  else
23669 #    ifdef DL_LAZY
23670 #      define LT_DLLAZY_OR_NOW          DL_LAZY
23671 #    else
23672 #      ifdef RTLD_NOW
23673 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
23674 #      else
23675 #        ifdef DL_NOW
23676 #          define LT_DLLAZY_OR_NOW      DL_NOW
23677 #        else
23678 #          define LT_DLLAZY_OR_NOW      0
23679 #        endif
23680 #      endif
23681 #    endif
23682 #  endif
23683 #endif
23684
23685 #ifdef __cplusplus
23686 extern "C" void exit (int);
23687 #endif
23688
23689 void fnord() { int i=42;}
23690 int main ()
23691 {
23692   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23693   int status = $lt_dlunknown;
23694
23695   if (self)
23696     {
23697       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
23698       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23699       /* dlclose (self); */
23700     }
23701
23702     exit (status);
23703 }
23704 EOF
23705   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23706   (eval $ac_link) 2>&5
23707   ac_status=$?
23708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23709   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23710     (./conftest; exit; ) >&5 2>/dev/null
23711     lt_status=$?
23712     case x$lt_status in
23713       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
23714       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
23715       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
23716     esac
23717   else :
23718     # compilation failed
23719     lt_cv_dlopen_self=no
23720   fi
23721 fi
23722 rm -fr conftest*
23723
23724
23725 fi
23726 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
23727 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
23728
23729     if test "x$lt_cv_dlopen_self" = xyes; then
23730       LDFLAGS="$LDFLAGS $link_static_flag"
23731       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
23732 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
23733 if test "${lt_cv_dlopen_self_static+set}" = set; then
23734   echo $ECHO_N "(cached) $ECHO_C" >&6
23735 else
23736           if test "$cross_compiling" = yes; then :
23737   lt_cv_dlopen_self_static=cross
23738 else
23739   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23740   lt_status=$lt_dlunknown
23741   cat > conftest.$ac_ext <<EOF
23742 #line 23742 "configure"
23743 #include "confdefs.h"
23744
23745 #if HAVE_DLFCN_H
23746 #include <dlfcn.h>
23747 #endif
23748
23749 #include <stdio.h>
23750
23751 #ifdef RTLD_GLOBAL
23752 #  define LT_DLGLOBAL           RTLD_GLOBAL
23753 #else
23754 #  ifdef DL_GLOBAL
23755 #    define LT_DLGLOBAL         DL_GLOBAL
23756 #  else
23757 #    define LT_DLGLOBAL         0
23758 #  endif
23759 #endif
23760
23761 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23762    find out it does not work in some platform. */
23763 #ifndef LT_DLLAZY_OR_NOW
23764 #  ifdef RTLD_LAZY
23765 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
23766 #  else
23767 #    ifdef DL_LAZY
23768 #      define LT_DLLAZY_OR_NOW          DL_LAZY
23769 #    else
23770 #      ifdef RTLD_NOW
23771 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
23772 #      else
23773 #        ifdef DL_NOW
23774 #          define LT_DLLAZY_OR_NOW      DL_NOW
23775 #        else
23776 #          define LT_DLLAZY_OR_NOW      0
23777 #        endif
23778 #      endif
23779 #    endif
23780 #  endif
23781 #endif
23782
23783 #ifdef __cplusplus
23784 extern "C" void exit (int);
23785 #endif
23786
23787 void fnord() { int i=42;}
23788 int main ()
23789 {
23790   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23791   int status = $lt_dlunknown;
23792
23793   if (self)
23794     {
23795       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
23796       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23797       /* dlclose (self); */
23798     }
23799
23800     exit (status);
23801 }
23802 EOF
23803   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23804   (eval $ac_link) 2>&5
23805   ac_status=$?
23806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23807   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23808     (./conftest; exit; ) >&5 2>/dev/null
23809     lt_status=$?
23810     case x$lt_status in
23811       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
23812       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
23813       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
23814     esac
23815   else :
23816     # compilation failed
23817     lt_cv_dlopen_self_static=no
23818   fi
23819 fi
23820 rm -fr conftest*
23821
23822
23823 fi
23824 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
23825 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
23826     fi
23827
23828     CPPFLAGS="$save_CPPFLAGS"
23829     LDFLAGS="$save_LDFLAGS"
23830     LIBS="$save_LIBS"
23831     ;;
23832   esac
23833
23834   case $lt_cv_dlopen_self in
23835   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
23836   *) enable_dlopen_self=unknown ;;
23837   esac
23838
23839   case $lt_cv_dlopen_self_static in
23840   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
23841   *) enable_dlopen_self_static=unknown ;;
23842   esac
23843 fi
23844
23845
23846 # The else clause should only fire when bootstrapping the
23847 # libtool distribution, otherwise you forgot to ship ltmain.sh
23848 # with your package, and you will get complaints that there are
23849 # no rules to generate ltmain.sh.
23850 if test -f "$ltmain"; then
23851   # See if we are running on zsh, and set the options which allow our commands through
23852   # without removal of \ escapes.
23853   if test -n "${ZSH_VERSION+set}" ; then
23854     setopt NO_GLOB_SUBST
23855   fi
23856   # Now quote all the things that may contain metacharacters while being
23857   # careful not to overquote the AC_SUBSTed values.  We take copies of the
23858   # variables and quote the copies for generation of the libtool script.
23859   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
23860     SED SHELL STRIP \
23861     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23862     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23863     deplibs_check_method reload_flag reload_cmds need_locks \
23864     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23865     lt_cv_sys_global_symbol_to_c_name_address \
23866     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23867     old_postinstall_cmds old_postuninstall_cmds \
23868     compiler_CXX \
23869     CC_CXX \
23870     LD_CXX \
23871     lt_prog_compiler_wl_CXX \
23872     lt_prog_compiler_pic_CXX \
23873     lt_prog_compiler_static_CXX \
23874     lt_prog_compiler_no_builtin_flag_CXX \
23875     export_dynamic_flag_spec_CXX \
23876     thread_safe_flag_spec_CXX \
23877     whole_archive_flag_spec_CXX \
23878     enable_shared_with_static_runtimes_CXX \
23879     old_archive_cmds_CXX \
23880     old_archive_from_new_cmds_CXX \
23881     predep_objects_CXX \
23882     postdep_objects_CXX \
23883     predeps_CXX \
23884     postdeps_CXX \
23885     compiler_lib_search_path_CXX \
23886     archive_cmds_CXX \
23887     archive_expsym_cmds_CXX \
23888     postinstall_cmds_CXX \
23889     postuninstall_cmds_CXX \
23890     old_archive_from_expsyms_cmds_CXX \
23891     allow_undefined_flag_CXX \
23892     no_undefined_flag_CXX \
23893     export_symbols_cmds_CXX \
23894     hardcode_libdir_flag_spec_CXX \
23895     hardcode_libdir_flag_spec_ld_CXX \
23896     hardcode_libdir_separator_CXX \
23897     hardcode_automatic_CXX \
23898     module_cmds_CXX \
23899     module_expsym_cmds_CXX \
23900     lt_cv_prog_compiler_c_o_CXX \
23901     exclude_expsyms_CXX \
23902     include_expsyms_CXX; do
23903
23904     case $var in
23905     old_archive_cmds_CXX | \
23906     old_archive_from_new_cmds_CXX | \
23907     archive_cmds_CXX | \
23908     archive_expsym_cmds_CXX | \
23909     module_cmds_CXX | \
23910     module_expsym_cmds_CXX | \
23911     old_archive_from_expsyms_cmds_CXX | \
23912     export_symbols_cmds_CXX | \
23913     extract_expsyms_cmds | reload_cmds | finish_cmds | \
23914     postinstall_cmds | postuninstall_cmds | \
23915     old_postinstall_cmds | old_postuninstall_cmds | \
23916     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23917       # Double-quote double-evaled strings.
23918       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23919       ;;
23920     *)
23921       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23922       ;;
23923     esac
23924   done
23925
23926   case $lt_echo in
23927   *'\$0 --fallback-echo"')
23928     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23929     ;;
23930   esac
23931
23932 cfgfile="$ofile"
23933
23934   cat <<__EOF__ >> "$cfgfile"
23935 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23936
23937 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23938
23939 # Shell to use when invoking shell scripts.
23940 SHELL=$lt_SHELL
23941
23942 # Whether or not to build shared libraries.
23943 build_libtool_libs=$enable_shared
23944
23945 # Whether or not to build static libraries.
23946 build_old_libs=$enable_static
23947
23948 # Whether or not to add -lc for building shared libraries.
23949 build_libtool_need_lc=$archive_cmds_need_lc_CXX
23950
23951 # Whether or not to disallow shared libs when runtime libs are static
23952 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
23953
23954 # Whether or not to optimize for fast installation.
23955 fast_install=$enable_fast_install
23956
23957 # The host system.
23958 host_alias=$host_alias
23959 host=$host
23960 host_os=$host_os
23961
23962 # The build system.
23963 build_alias=$build_alias
23964 build=$build
23965 build_os=$build_os
23966
23967 # An echo program that does not interpret backslashes.
23968 echo=$lt_echo
23969
23970 # The archiver.
23971 AR=$lt_AR
23972 AR_FLAGS=$lt_AR_FLAGS
23973
23974 # A C compiler.
23975 LTCC=$lt_LTCC
23976
23977 # A language-specific compiler.
23978 CC=$lt_compiler_CXX
23979
23980 # Is the compiler the GNU C compiler?
23981 with_gcc=$GCC_CXX
23982
23983 # An ERE matcher.
23984 EGREP=$lt_EGREP
23985
23986 # The linker used to build libraries.
23987 LD=$lt_LD_CXX
23988
23989 # Whether we need hard or soft links.
23990 LN_S=$lt_LN_S
23991
23992 # A BSD-compatible nm program.
23993 NM=$lt_NM
23994
23995 # A symbol stripping program
23996 STRIP=$lt_STRIP
23997
23998 # Used to examine libraries when file_magic_cmd begins "file"
23999 MAGIC_CMD=$MAGIC_CMD
24000
24001 # Used on cygwin: DLL creation program.
24002 DLLTOOL="$DLLTOOL"
24003
24004 # Used on cygwin: object dumper.
24005 OBJDUMP="$OBJDUMP"
24006
24007 # Used on cygwin: assembler.
24008 AS="$AS"
24009
24010 # The name of the directory that contains temporary libtool files.
24011 objdir=$objdir
24012
24013 # How to create reloadable object files.
24014 reload_flag=$lt_reload_flag
24015 reload_cmds=$lt_reload_cmds
24016
24017 # How to pass a linker flag through the compiler.
24018 wl=$lt_lt_prog_compiler_wl_CXX
24019
24020 # Object file suffix (normally "o").
24021 objext="$ac_objext"
24022
24023 # Old archive suffix (normally "a").
24024 libext="$libext"
24025
24026 # Shared library suffix (normally ".so").
24027 shrext_cmds='$shrext_cmds'
24028
24029 # Executable file suffix (normally "").
24030 exeext="$exeext"
24031
24032 # Additional compiler flags for building library objects.
24033 pic_flag=$lt_lt_prog_compiler_pic_CXX
24034 pic_mode=$pic_mode
24035
24036 # What is the maximum length of a command?
24037 max_cmd_len=$lt_cv_sys_max_cmd_len
24038
24039 # Does compiler simultaneously support -c and -o options?
24040 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
24041
24042 # Must we lock files when doing compilation?
24043 need_locks=$lt_need_locks
24044
24045 # Do we need the lib prefix for modules?
24046 need_lib_prefix=$need_lib_prefix
24047
24048 # Do we need a version for libraries?
24049 need_version=$need_version
24050
24051 # Whether dlopen is supported.
24052 dlopen_support=$enable_dlopen
24053
24054 # Whether dlopen of programs is supported.
24055 dlopen_self=$enable_dlopen_self
24056
24057 # Whether dlopen of statically linked programs is supported.
24058 dlopen_self_static=$enable_dlopen_self_static
24059
24060 # Compiler flag to prevent dynamic linking.
24061 link_static_flag=$lt_lt_prog_compiler_static_CXX
24062
24063 # Compiler flag to turn off builtin functions.
24064 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
24065
24066 # Compiler flag to allow reflexive dlopens.
24067 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
24068
24069 # Compiler flag to generate shared objects directly from archives.
24070 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
24071
24072 # Compiler flag to generate thread-safe objects.
24073 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
24074
24075 # Library versioning type.
24076 version_type=$version_type
24077
24078 # Format of library name prefix.
24079 libname_spec=$lt_libname_spec
24080
24081 # List of archive names.  First name is the real one, the rest are links.
24082 # The last name is the one that the linker finds with -lNAME.
24083 library_names_spec=$lt_library_names_spec
24084
24085 # The coded name of the library, if different from the real name.
24086 soname_spec=$lt_soname_spec
24087
24088 # Commands used to build and install an old-style archive.
24089 RANLIB=$lt_RANLIB
24090 old_archive_cmds=$lt_old_archive_cmds_CXX
24091 old_postinstall_cmds=$lt_old_postinstall_cmds
24092 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24093
24094 # Create an old-style archive from a shared archive.
24095 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
24096
24097 # Create a temporary old-style archive to link instead of a shared archive.
24098 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
24099
24100 # Commands used to build and install a shared archive.
24101 archive_cmds=$lt_archive_cmds_CXX
24102 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
24103 postinstall_cmds=$lt_postinstall_cmds
24104 postuninstall_cmds=$lt_postuninstall_cmds
24105
24106 # Commands used to build a loadable module (assumed same as above if empty)
24107 module_cmds=$lt_module_cmds_CXX
24108 module_expsym_cmds=$lt_module_expsym_cmds_CXX
24109
24110 # Commands to strip libraries.
24111 old_striplib=$lt_old_striplib
24112 striplib=$lt_striplib
24113
24114 # Dependencies to place before the objects being linked to create a
24115 # shared library.
24116 predep_objects=$lt_predep_objects_CXX
24117
24118 # Dependencies to place after the objects being linked to create a
24119 # shared library.
24120 postdep_objects=$lt_postdep_objects_CXX
24121
24122 # Dependencies to place before the objects being linked to create a
24123 # shared library.
24124 predeps=$lt_predeps_CXX
24125
24126 # Dependencies to place after the objects being linked to create a
24127 # shared library.
24128 postdeps=$lt_postdeps_CXX
24129
24130 # The library search path used internally by the compiler when linking
24131 # a shared library.
24132 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
24133
24134 # Method to check whether dependent libraries are shared objects.
24135 deplibs_check_method=$lt_deplibs_check_method
24136
24137 # Command to use when deplibs_check_method == file_magic.
24138 file_magic_cmd=$lt_file_magic_cmd
24139
24140 # Flag that allows shared libraries with undefined symbols to be built.
24141 allow_undefined_flag=$lt_allow_undefined_flag_CXX
24142
24143 # Flag that forces no undefined symbols.
24144 no_undefined_flag=$lt_no_undefined_flag_CXX
24145
24146 # Commands used to finish a libtool library installation in a directory.
24147 finish_cmds=$lt_finish_cmds
24148
24149 # Same as above, but a single script fragment to be evaled but not shown.
24150 finish_eval=$lt_finish_eval
24151
24152 # Take the output of nm and produce a listing of raw symbols and C names.
24153 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24154
24155 # Transform the output of nm in a proper C declaration
24156 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24157
24158 # Transform the output of nm in a C name address pair
24159 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24160
24161 # This is the shared library runtime path variable.
24162 runpath_var=$runpath_var
24163
24164 # This is the shared library path variable.
24165 shlibpath_var=$shlibpath_var
24166
24167 # Is shlibpath searched before the hard-coded library search path?
24168 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24169
24170 # How to hardcode a shared library path into an executable.
24171 hardcode_action=$hardcode_action_CXX
24172
24173 # Whether we should hardcode library paths into libraries.
24174 hardcode_into_libs=$hardcode_into_libs
24175
24176 # Flag to hardcode \$libdir into a binary during linking.
24177 # This must work even if \$libdir does not exist.
24178 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
24179
24180 # If ld is used when linking, flag to hardcode \$libdir into
24181 # a binary during linking. This must work even if \$libdir does
24182 # not exist.
24183 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
24184
24185 # Whether we need a single -rpath flag with a separated argument.
24186 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
24187
24188 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24189 # resulting binary.
24190 hardcode_direct=$hardcode_direct_CXX
24191
24192 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24193 # resulting binary.
24194 hardcode_minus_L=$hardcode_minus_L_CXX
24195
24196 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24197 # the resulting binary.
24198 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
24199
24200 # Set to yes if building a shared library automatically hardcodes DIR into the library
24201 # and all subsequent libraries and executables linked against it.
24202 hardcode_automatic=$hardcode_automatic_CXX
24203
24204 # Variables whose values should be saved in libtool wrapper scripts and
24205 # restored at relink time.
24206 variables_saved_for_relink="$variables_saved_for_relink"
24207
24208 # Whether libtool must link a program against all its dependency libraries.
24209 link_all_deplibs=$link_all_deplibs_CXX
24210
24211 # Compile-time system search path for libraries
24212 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24213
24214 # Run-time system search path for libraries
24215 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24216
24217 # Fix the shell variable \$srcfile for the compiler.
24218 fix_srcfile_path="$fix_srcfile_path_CXX"
24219
24220 # Set to yes if exported symbols are required.
24221 always_export_symbols=$always_export_symbols_CXX
24222
24223 # The commands to list exported symbols.
24224 export_symbols_cmds=$lt_export_symbols_cmds_CXX
24225
24226 # The commands to extract the exported symbol list from a shared archive.
24227 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24228
24229 # Symbols that should not be listed in the preloaded symbols.
24230 exclude_expsyms=$lt_exclude_expsyms_CXX
24231
24232 # Symbols that must always be exported.
24233 include_expsyms=$lt_include_expsyms_CXX
24234
24235 # ### END LIBTOOL TAG CONFIG: $tagname
24236
24237 __EOF__
24238
24239
24240 else
24241   # If there is no Makefile yet, we rely on a make rule to execute
24242   # `config.status --recheck' to rerun these tests and create the
24243   # libtool script then.
24244   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24245   if test -f "$ltmain_in"; then
24246     test -f Makefile && make "$ltmain"
24247   fi
24248 fi
24249
24250
24251 ac_ext=c
24252 ac_cpp='$CPP $CPPFLAGS'
24253 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24254 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24255 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24256
24257 CC=$lt_save_CC
24258 LDCXX=$LD
24259 LD=$lt_save_LD
24260 GCC=$lt_save_GCC
24261 with_gnu_ldcxx=$with_gnu_ld
24262 with_gnu_ld=$lt_save_with_gnu_ld
24263 lt_cv_path_LDCXX=$lt_cv_path_LD
24264 lt_cv_path_LD=$lt_save_path_LD
24265 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
24266 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
24267
24268         else
24269           tagname=""
24270         fi
24271         ;;
24272
24273       F77)
24274         if test -n "$F77" && test "X$F77" != "Xno"; then
24275
24276 ac_ext=f
24277 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
24278 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24279 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
24280
24281
24282 archive_cmds_need_lc_F77=no
24283 allow_undefined_flag_F77=
24284 always_export_symbols_F77=no
24285 archive_expsym_cmds_F77=
24286 export_dynamic_flag_spec_F77=
24287 hardcode_direct_F77=no
24288 hardcode_libdir_flag_spec_F77=
24289 hardcode_libdir_flag_spec_ld_F77=
24290 hardcode_libdir_separator_F77=
24291 hardcode_minus_L_F77=no
24292 hardcode_automatic_F77=no
24293 module_cmds_F77=
24294 module_expsym_cmds_F77=
24295 link_all_deplibs_F77=unknown
24296 old_archive_cmds_F77=$old_archive_cmds
24297 no_undefined_flag_F77=
24298 whole_archive_flag_spec_F77=
24299 enable_shared_with_static_runtimes_F77=no
24300
24301 # Source file extension for f77 test sources.
24302 ac_ext=f
24303
24304 # Object file extension for compiled f77 test sources.
24305 objext=o
24306 objext_F77=$objext
24307
24308 # Code to be used in simple compile tests
24309 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
24310
24311 # Code to be used in simple link tests
24312 lt_simple_link_test_code="      program t\n      end\n"
24313
24314 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
24315
24316 # If no C compiler was specified, use CC.
24317 LTCC=${LTCC-"$CC"}
24318
24319 # Allow CC to be a program name with arguments.
24320 compiler=$CC
24321
24322
24323 # save warnings/boilerplate of simple test code
24324 ac_outfile=conftest.$ac_objext
24325 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
24326 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
24327 _lt_compiler_boilerplate=`cat conftest.err`
24328 $rm conftest*
24329
24330 ac_outfile=conftest.$ac_objext
24331 printf "$lt_simple_link_test_code" >conftest.$ac_ext
24332 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
24333 _lt_linker_boilerplate=`cat conftest.err`
24334 $rm conftest*
24335
24336
24337 # Allow CC to be a program name with arguments.
24338 lt_save_CC="$CC"
24339 CC=${F77-"f77"}
24340 compiler=$CC
24341 compiler_F77=$CC
24342 for cc_temp in $compiler""; do
24343   case $cc_temp in
24344     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24345     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24346     \-*) ;;
24347     *) break;;
24348   esac
24349 done
24350 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24351
24352
24353 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
24354 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
24355 echo "$as_me:$LINENO: result: $can_build_shared" >&5
24356 echo "${ECHO_T}$can_build_shared" >&6
24357
24358 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
24359 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
24360 test "$can_build_shared" = "no" && enable_shared=no
24361
24362 # On AIX, shared libraries and static libraries use the same namespace, and
24363 # are all built from PIC.
24364 case $host_os in
24365 aix3*)
24366   test "$enable_shared" = yes && enable_static=no
24367   if test -n "$RANLIB"; then
24368     archive_cmds="$archive_cmds~\$RANLIB \$lib"
24369     postinstall_cmds='$RANLIB $lib'
24370   fi
24371   ;;
24372 aix4* | aix5*)
24373   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
24374     test "$enable_shared" = yes && enable_static=no
24375   fi
24376   ;;
24377 esac
24378 echo "$as_me:$LINENO: result: $enable_shared" >&5
24379 echo "${ECHO_T}$enable_shared" >&6
24380
24381 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
24382 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
24383 # Make sure either enable_shared or enable_static is yes.
24384 test "$enable_shared" = yes || enable_static=yes
24385 echo "$as_me:$LINENO: result: $enable_static" >&5
24386 echo "${ECHO_T}$enable_static" >&6
24387
24388 test "$ld_shlibs_F77" = no && can_build_shared=no
24389
24390 GCC_F77="$G77"
24391 LD_F77="$LD"
24392
24393 lt_prog_compiler_wl_F77=
24394 lt_prog_compiler_pic_F77=
24395 lt_prog_compiler_static_F77=
24396
24397 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
24398 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
24399
24400   if test "$GCC" = yes; then
24401     lt_prog_compiler_wl_F77='-Wl,'
24402     lt_prog_compiler_static_F77='-static'
24403
24404     case $host_os in
24405       aix*)
24406       # All AIX code is PIC.
24407       if test "$host_cpu" = ia64; then
24408         # AIX 5 now supports IA64 processor
24409         lt_prog_compiler_static_F77='-Bstatic'
24410       fi
24411       ;;
24412
24413     amigaos*)
24414       # FIXME: we need at least 68020 code to build shared libraries, but
24415       # adding the `-m68020' flag to GCC prevents building anything better,
24416       # like `-m68040'.
24417       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
24418       ;;
24419
24420     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
24421       # PIC is the default for these OSes.
24422       ;;
24423
24424     mingw* | pw32* | os2*)
24425       # This hack is so that the source file can tell whether it is being
24426       # built for inclusion in a dll (and should export symbols for example).
24427       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
24428       ;;
24429
24430     darwin* | rhapsody*)
24431       # PIC is the default on this platform
24432       # Common symbols not allowed in MH_DYLIB files
24433       lt_prog_compiler_pic_F77='-fno-common'
24434       ;;
24435
24436     msdosdjgpp*)
24437       # Just because we use GCC doesn't mean we suddenly get shared libraries
24438       # on systems that don't support them.
24439       lt_prog_compiler_can_build_shared_F77=no
24440       enable_shared=no
24441       ;;
24442
24443     sysv4*MP*)
24444       if test -d /usr/nec; then
24445         lt_prog_compiler_pic_F77=-Kconform_pic
24446       fi
24447       ;;
24448
24449     hpux*)
24450       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24451       # not for PA HP-UX.
24452       case $host_cpu in
24453       hppa*64*|ia64*)
24454         # +Z the default
24455         ;;
24456       *)
24457         lt_prog_compiler_pic_F77='-fPIC'
24458         ;;
24459       esac
24460       ;;
24461
24462     *)
24463       lt_prog_compiler_pic_F77='-fPIC'
24464       ;;
24465     esac
24466   else
24467     # PORTME Check for flag to pass linker flags through the system compiler.
24468     case $host_os in
24469     aix*)
24470       lt_prog_compiler_wl_F77='-Wl,'
24471       if test "$host_cpu" = ia64; then
24472         # AIX 5 now supports IA64 processor
24473         lt_prog_compiler_static_F77='-Bstatic'
24474       else
24475         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
24476       fi
24477       ;;
24478       darwin*)
24479         # PIC is the default on this platform
24480         # Common symbols not allowed in MH_DYLIB files
24481        case $cc_basename in
24482          xlc*)
24483          lt_prog_compiler_pic_F77='-qnocommon'
24484          lt_prog_compiler_wl_F77='-Wl,'
24485          ;;
24486        esac
24487        ;;
24488
24489     mingw* | pw32* | os2*)
24490       # This hack is so that the source file can tell whether it is being
24491       # built for inclusion in a dll (and should export symbols for example).
24492       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
24493       ;;
24494
24495     hpux9* | hpux10* | hpux11*)
24496       lt_prog_compiler_wl_F77='-Wl,'
24497       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24498       # not for PA HP-UX.
24499       case $host_cpu in
24500       hppa*64*|ia64*)
24501         # +Z the default
24502         ;;
24503       *)
24504         lt_prog_compiler_pic_F77='+Z'
24505         ;;
24506       esac
24507       # Is there a better lt_prog_compiler_static that works with the bundled CC?
24508       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
24509       ;;
24510
24511     irix5* | irix6* | nonstopux*)
24512       lt_prog_compiler_wl_F77='-Wl,'
24513       # PIC (with -KPIC) is the default.
24514       lt_prog_compiler_static_F77='-non_shared'
24515       ;;
24516
24517     newsos6)
24518       lt_prog_compiler_pic_F77='-KPIC'
24519       lt_prog_compiler_static_F77='-Bstatic'
24520       ;;
24521
24522     linux*)
24523       case $cc_basename in
24524       icc* | ecc*)
24525         lt_prog_compiler_wl_F77='-Wl,'
24526         lt_prog_compiler_pic_F77='-KPIC'
24527         lt_prog_compiler_static_F77='-static'
24528         ;;
24529       pgcc* | pgf77* | pgf90* | pgf95*)
24530         # Portland Group compilers (*not* the Pentium gcc compiler,
24531         # which looks to be a dead project)
24532         lt_prog_compiler_wl_F77='-Wl,'
24533         lt_prog_compiler_pic_F77='-fpic'
24534         lt_prog_compiler_static_F77='-Bstatic'
24535         ;;
24536       ccc*)
24537         lt_prog_compiler_wl_F77='-Wl,'
24538         # All Alpha code is PIC.
24539         lt_prog_compiler_static_F77='-non_shared'
24540         ;;
24541       esac
24542       ;;
24543
24544     osf3* | osf4* | osf5*)
24545       lt_prog_compiler_wl_F77='-Wl,'
24546       # All OSF/1 code is PIC.
24547       lt_prog_compiler_static_F77='-non_shared'
24548       ;;
24549
24550     sco3.2v5*)
24551       lt_prog_compiler_pic_F77='-Kpic'
24552       lt_prog_compiler_static_F77='-dn'
24553       ;;
24554
24555     solaris*)
24556       lt_prog_compiler_pic_F77='-KPIC'
24557       lt_prog_compiler_static_F77='-Bstatic'
24558       case $cc_basename in
24559       f77* | f90* | f95*)
24560         lt_prog_compiler_wl_F77='-Qoption ld ';;
24561       *)
24562         lt_prog_compiler_wl_F77='-Wl,';;
24563       esac
24564       ;;
24565
24566     sunos4*)
24567       lt_prog_compiler_wl_F77='-Qoption ld '
24568       lt_prog_compiler_pic_F77='-PIC'
24569       lt_prog_compiler_static_F77='-Bstatic'
24570       ;;
24571
24572     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
24573       lt_prog_compiler_wl_F77='-Wl,'
24574       lt_prog_compiler_pic_F77='-KPIC'
24575       lt_prog_compiler_static_F77='-Bstatic'
24576       ;;
24577
24578     sysv4*MP*)
24579       if test -d /usr/nec ;then
24580         lt_prog_compiler_pic_F77='-Kconform_pic'
24581         lt_prog_compiler_static_F77='-Bstatic'
24582       fi
24583       ;;
24584
24585     unicos*)
24586       lt_prog_compiler_wl_F77='-Wl,'
24587       lt_prog_compiler_can_build_shared_F77=no
24588       ;;
24589
24590     uts4*)
24591       lt_prog_compiler_pic_F77='-pic'
24592       lt_prog_compiler_static_F77='-Bstatic'
24593       ;;
24594
24595     *)
24596       lt_prog_compiler_can_build_shared_F77=no
24597       ;;
24598     esac
24599   fi
24600
24601 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
24602 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
24603
24604 #
24605 # Check to make sure the PIC flag actually works.
24606 #
24607 if test -n "$lt_prog_compiler_pic_F77"; then
24608
24609 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
24610 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
24611 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
24612   echo $ECHO_N "(cached) $ECHO_C" >&6
24613 else
24614   lt_prog_compiler_pic_works_F77=no
24615   ac_outfile=conftest.$ac_objext
24616    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24617    lt_compiler_flag="$lt_prog_compiler_pic_F77"
24618    # Insert the option either (1) after the last *FLAGS variable, or
24619    # (2) before a word containing "conftest.", or (3) at the end.
24620    # Note that $ac_compile itself does not contain backslashes and begins
24621    # with a dollar sign (not a hyphen), so the echo should work correctly.
24622    # The option is referenced via a variable to avoid confusing sed.
24623    lt_compile=`echo "$ac_compile" | $SED \
24624    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24625    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24626    -e 's:$: $lt_compiler_flag:'`
24627    (eval echo "\"\$as_me:24627: $lt_compile\"" >&5)
24628    (eval "$lt_compile" 2>conftest.err)
24629    ac_status=$?
24630    cat conftest.err >&5
24631    echo "$as_me:24631: \$? = $ac_status" >&5
24632    if (exit $ac_status) && test -s "$ac_outfile"; then
24633      # The compiler can only warn and ignore the option if not recognized
24634      # So say no if there are warnings other than the usual output.
24635      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
24636      $SED '/^$/d' conftest.err >conftest.er2
24637      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
24638        lt_prog_compiler_pic_works_F77=yes
24639      fi
24640    fi
24641    $rm conftest*
24642
24643 fi
24644 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
24645 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
24646
24647 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
24648     case $lt_prog_compiler_pic_F77 in
24649      "" | " "*) ;;
24650      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
24651      esac
24652 else
24653     lt_prog_compiler_pic_F77=
24654      lt_prog_compiler_can_build_shared_F77=no
24655 fi
24656
24657 fi
24658 case $host_os in
24659   # For platforms which do not support PIC, -DPIC is meaningless:
24660   *djgpp*)
24661     lt_prog_compiler_pic_F77=
24662     ;;
24663   *)
24664     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
24665     ;;
24666 esac
24667
24668 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24669 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
24670 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
24671   echo $ECHO_N "(cached) $ECHO_C" >&6
24672 else
24673   lt_cv_prog_compiler_c_o_F77=no
24674    $rm -r conftest 2>/dev/null
24675    mkdir conftest
24676    cd conftest
24677    mkdir out
24678    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24679
24680    lt_compiler_flag="-o out/conftest2.$ac_objext"
24681    # Insert the option either (1) after the last *FLAGS variable, or
24682    # (2) before a word containing "conftest.", or (3) at the end.
24683    # Note that $ac_compile itself does not contain backslashes and begins
24684    # with a dollar sign (not a hyphen), so the echo should work correctly.
24685    lt_compile=`echo "$ac_compile" | $SED \
24686    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24687    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24688    -e 's:$: $lt_compiler_flag:'`
24689    (eval echo "\"\$as_me:24689: $lt_compile\"" >&5)
24690    (eval "$lt_compile" 2>out/conftest.err)
24691    ac_status=$?
24692    cat out/conftest.err >&5
24693    echo "$as_me:24693: \$? = $ac_status" >&5
24694    if (exit $ac_status) && test -s out/conftest2.$ac_objext
24695    then
24696      # The compiler can only warn and ignore the option if not recognized
24697      # So say no if there are warnings
24698      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
24699      $SED '/^$/d' out/conftest.err >out/conftest.er2
24700      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
24701        lt_cv_prog_compiler_c_o_F77=yes
24702      fi
24703    fi
24704    chmod u+w . 2>&5
24705    $rm conftest*
24706    # SGI C++ compiler will create directory out/ii_files/ for
24707    # template instantiation
24708    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24709    $rm out/* && rmdir out
24710    cd ..
24711    rmdir conftest
24712    $rm conftest*
24713
24714 fi
24715 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
24716 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
24717
24718
24719 hard_links="nottested"
24720 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
24721   # do not overwrite the value of need_locks provided by the user
24722   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24723 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
24724   hard_links=yes
24725   $rm conftest*
24726   ln conftest.a conftest.b 2>/dev/null && hard_links=no
24727   touch conftest.a
24728   ln conftest.a conftest.b 2>&5 || hard_links=no
24729   ln conftest.a conftest.b 2>/dev/null && hard_links=no
24730   echo "$as_me:$LINENO: result: $hard_links" >&5
24731 echo "${ECHO_T}$hard_links" >&6
24732   if test "$hard_links" = no; then
24733     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24734 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24735     need_locks=warn
24736   fi
24737 else
24738   need_locks=no
24739 fi
24740
24741 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24742 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
24743
24744   runpath_var=
24745   allow_undefined_flag_F77=
24746   enable_shared_with_static_runtimes_F77=no
24747   archive_cmds_F77=
24748   archive_expsym_cmds_F77=
24749   old_archive_From_new_cmds_F77=
24750   old_archive_from_expsyms_cmds_F77=
24751   export_dynamic_flag_spec_F77=
24752   whole_archive_flag_spec_F77=
24753   thread_safe_flag_spec_F77=
24754   hardcode_libdir_flag_spec_F77=
24755   hardcode_libdir_flag_spec_ld_F77=
24756   hardcode_libdir_separator_F77=
24757   hardcode_direct_F77=no
24758   hardcode_minus_L_F77=no
24759   hardcode_shlibpath_var_F77=unsupported
24760   link_all_deplibs_F77=unknown
24761   hardcode_automatic_F77=no
24762   module_cmds_F77=
24763   module_expsym_cmds_F77=
24764   always_export_symbols_F77=no
24765   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24766   # include_expsyms should be a list of space-separated symbols to be *always*
24767   # included in the symbol list
24768   include_expsyms_F77=
24769   # exclude_expsyms can be an extended regexp of symbols to exclude
24770   # it will be wrapped by ` (' and `)$', so one must not match beginning or
24771   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24772   # as well as any symbol that contains `d'.
24773   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
24774   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24775   # platforms (ab)use it in PIC code, but their linkers get confused if
24776   # the symbol is explicitly referenced.  Since portable code cannot
24777   # rely on this symbol name, it's probably fine to never include it in
24778   # preloaded symbol tables.
24779   extract_expsyms_cmds=
24780   # Just being paranoid about ensuring that cc_basename is set.
24781   for cc_temp in $compiler""; do
24782   case $cc_temp in
24783     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24784     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24785     \-*) ;;
24786     *) break;;
24787   esac
24788 done
24789 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24790
24791   case $host_os in
24792   cygwin* | mingw* | pw32*)
24793     # FIXME: the MSVC++ port hasn't been tested in a loooong time
24794     # When not using gcc, we currently assume that we are using
24795     # Microsoft Visual C++.
24796     if test "$GCC" != yes; then
24797       with_gnu_ld=no
24798     fi
24799     ;;
24800   openbsd*)
24801     with_gnu_ld=no
24802     ;;
24803   esac
24804
24805   ld_shlibs_F77=yes
24806   if test "$with_gnu_ld" = yes; then
24807     # If archive_cmds runs LD, not CC, wlarc should be empty
24808     wlarc='${wl}'
24809
24810     # Set some defaults for GNU ld with shared library support. These
24811     # are reset later if shared libraries are not supported. Putting them
24812     # here allows them to be overridden if necessary.
24813     runpath_var=LD_RUN_PATH
24814     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
24815     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
24816     # ancient GNU ld didn't support --whole-archive et. al.
24817     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24818         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24819       else
24820         whole_archive_flag_spec_F77=
24821     fi
24822     supports_anon_versioning=no
24823     case `$LD -v 2>/dev/null` in
24824       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24825       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24826       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24827       *\ 2.11.*) ;; # other 2.11 versions
24828       *) supports_anon_versioning=yes ;;
24829     esac
24830
24831     # See if GNU ld supports shared libraries.
24832     case $host_os in
24833     aix3* | aix4* | aix5*)
24834       # On AIX/PPC, the GNU linker is very broken
24835       if test "$host_cpu" != ia64; then
24836         ld_shlibs_F77=no
24837         cat <<EOF 1>&2
24838
24839 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
24840 *** to be unable to reliably create shared libraries on AIX.
24841 *** Therefore, libtool is disabling shared libraries support.  If you
24842 *** really care for shared libraries, you may want to modify your PATH
24843 *** so that a non-GNU linker is found, and then restart.
24844
24845 EOF
24846       fi
24847       ;;
24848
24849     amigaos*)
24850       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)'
24851       hardcode_libdir_flag_spec_F77='-L$libdir'
24852       hardcode_minus_L_F77=yes
24853
24854       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24855       # that the semantics of dynamic libraries on AmigaOS, at least up
24856       # to version 4, is to share data among multiple programs linked
24857       # with the same dynamic library.  Since this doesn't match the
24858       # behavior of shared libraries on other platforms, we can't use
24859       # them.
24860       ld_shlibs_F77=no
24861       ;;
24862
24863     beos*)
24864       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24865         allow_undefined_flag_F77=unsupported
24866         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24867         # support --undefined.  This deserves some investigation.  FIXME
24868         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24869       else
24870         ld_shlibs_F77=no
24871       fi
24872       ;;
24873
24874     cygwin* | mingw* | pw32*)
24875       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
24876       # as there is no search path for DLLs.
24877       hardcode_libdir_flag_spec_F77='-L$libdir'
24878       allow_undefined_flag_F77=unsupported
24879       always_export_symbols_F77=no
24880       enable_shared_with_static_runtimes_F77=yes
24881       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
24882
24883       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
24884         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
24885         # If the export-symbols file already is a .def file (1st line
24886         # is EXPORTS), use it as is; otherwise, prepend...
24887         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24888           cp $export_symbols $output_objdir/$soname.def;
24889         else
24890           echo EXPORTS > $output_objdir/$soname.def;
24891           cat $export_symbols >> $output_objdir/$soname.def;
24892         fi~
24893         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
24894       else
24895         ld_shlibs_F77=no
24896       fi
24897       ;;
24898
24899     linux*)
24900       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24901         tmp_addflag=
24902         case $cc_basename,$host_cpu in
24903         pgcc*)                          # Portland Group C compiler
24904           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'
24905           tmp_addflag=' $pic_flag'
24906           ;;
24907         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
24908           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'
24909           tmp_addflag=' $pic_flag -Mnomain' ;;
24910         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
24911           tmp_addflag=' -i_dynamic' ;;
24912         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
24913           tmp_addflag=' -i_dynamic -nofor_main' ;;
24914         ifc* | ifort*)                  # Intel Fortran compiler
24915           tmp_addflag=' -nofor_main' ;;
24916         esac
24917         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24918
24919         if test $supports_anon_versioning = yes; then
24920           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
24921   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24922   $echo "local: *; };" >> $output_objdir/$libname.ver~
24923           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24924         fi
24925       else
24926         ld_shlibs_F77=no
24927       fi
24928       ;;
24929
24930     netbsd*)
24931       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24932         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24933         wlarc=
24934       else
24935         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24936         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24937       fi
24938       ;;
24939
24940     solaris* | sysv5*)
24941       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24942         ld_shlibs_F77=no
24943         cat <<EOF 1>&2
24944
24945 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
24946 *** create shared libraries on Solaris systems.  Therefore, libtool
24947 *** is disabling shared libraries support.  We urge you to upgrade GNU
24948 *** binutils to release 2.9.1 or newer.  Another option is to modify
24949 *** your PATH or compiler configuration so that the native linker is
24950 *** used, and then restart.
24951
24952 EOF
24953       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24954         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24955         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24956       else
24957         ld_shlibs_F77=no
24958       fi
24959       ;;
24960
24961     sunos4*)
24962       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24963       wlarc=
24964       hardcode_direct_F77=yes
24965       hardcode_shlibpath_var_F77=no
24966       ;;
24967
24968     *)
24969       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24970         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24971         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24972       else
24973         ld_shlibs_F77=no
24974       fi
24975       ;;
24976     esac
24977
24978     if test "$ld_shlibs_F77" = no; then
24979       runpath_var=
24980       hardcode_libdir_flag_spec_F77=
24981       export_dynamic_flag_spec_F77=
24982       whole_archive_flag_spec_F77=
24983     fi
24984   else
24985     # PORTME fill in a description of your system's linker (not GNU ld)
24986     case $host_os in
24987     aix3*)
24988       allow_undefined_flag_F77=unsupported
24989       always_export_symbols_F77=yes
24990       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'
24991       # Note: this linker hardcodes the directories in LIBPATH if there
24992       # are no directories specified by -L.
24993       hardcode_minus_L_F77=yes
24994       if test "$GCC" = yes && test -z "$link_static_flag"; then
24995         # Neither direct hardcoding nor static linking is supported with a
24996         # broken collect2.
24997         hardcode_direct_F77=unsupported
24998       fi
24999       ;;
25000
25001     aix4* | aix5*)
25002       if test "$host_cpu" = ia64; then
25003         # On IA64, the linker does run time linking by default, so we don't
25004         # have to do anything special.
25005         aix_use_runtimelinking=no
25006         exp_sym_flag='-Bexport'
25007         no_entry_flag=""
25008       else
25009         # If we're using GNU nm, then we don't want the "-C" option.
25010         # -C means demangle to AIX nm, but means don't demangle with GNU nm
25011         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
25012           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'
25013         else
25014           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'
25015         fi
25016         aix_use_runtimelinking=no
25017
25018         # Test if we are trying to use run time linking or normal
25019         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
25020         # need to do runtime linking.
25021         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
25022           for ld_flag in $LDFLAGS; do
25023           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
25024             aix_use_runtimelinking=yes
25025             break
25026           fi
25027           done
25028         esac
25029
25030         exp_sym_flag='-bexport'
25031         no_entry_flag='-bnoentry'
25032       fi
25033
25034       # When large executables or shared objects are built, AIX ld can
25035       # have problems creating the table of contents.  If linking a library
25036       # or program results in "error TOC overflow" add -mminimal-toc to
25037       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
25038       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
25039
25040       archive_cmds_F77=''
25041       hardcode_direct_F77=yes
25042       hardcode_libdir_separator_F77=':'
25043       link_all_deplibs_F77=yes
25044
25045       if test "$GCC" = yes; then
25046         case $host_os in aix4.[012]|aix4.[012].*)
25047         # We only want to do this on AIX 4.2 and lower, the check
25048         # below for broken collect2 doesn't work under 4.3+
25049           collect2name=`${CC} -print-prog-name=collect2`
25050           if test -f "$collect2name" && \
25051            strings "$collect2name" | grep resolve_lib_name >/dev/null
25052           then
25053           # We have reworked collect2
25054           hardcode_direct_F77=yes
25055           else
25056           # We have old collect2
25057           hardcode_direct_F77=unsupported
25058           # It fails to find uninstalled libraries when the uninstalled
25059           # path is not listed in the libpath.  Setting hardcode_minus_L
25060           # to unsupported forces relinking
25061           hardcode_minus_L_F77=yes
25062           hardcode_libdir_flag_spec_F77='-L$libdir'
25063           hardcode_libdir_separator_F77=
25064           fi
25065         esac
25066         shared_flag='-shared'
25067         if test "$aix_use_runtimelinking" = yes; then
25068           shared_flag="$shared_flag "'${wl}-G'
25069         fi
25070       else
25071         # not using gcc
25072         if test "$host_cpu" = ia64; then
25073         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
25074         # chokes on -Wl,-G. The following line is correct:
25075           shared_flag='-G'
25076         else
25077         if test "$aix_use_runtimelinking" = yes; then
25078             shared_flag='${wl}-G'
25079           else
25080             shared_flag='${wl}-bM:SRE'
25081         fi
25082         fi
25083       fi
25084
25085       # It seems that -bexpall does not export symbols beginning with
25086       # underscore (_), so it is better to generate a list of symbols to export.
25087       always_export_symbols_F77=yes
25088       if test "$aix_use_runtimelinking" = yes; then
25089         # Warning - without using the other runtime loading flags (-brtl),
25090         # -berok will link without error, but may produce a broken library.
25091         allow_undefined_flag_F77='-berok'
25092        # Determine the default libpath from the value encoded in an empty executable.
25093        cat >conftest.$ac_ext <<_ACEOF
25094       program main
25095
25096       end
25097 _ACEOF
25098 rm -f conftest.$ac_objext conftest$ac_exeext
25099 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25100   (eval $ac_link) 2>conftest.er1
25101   ac_status=$?
25102   grep -v '^ *+' conftest.er1 >conftest.err
25103   rm -f conftest.er1
25104   cat conftest.err >&5
25105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25106   (exit $ac_status); } &&
25107          { ac_try='test -z "$ac_f77_werror_flag"
25108                          || test ! -s conftest.err'
25109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25110   (eval $ac_try) 2>&5
25111   ac_status=$?
25112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25113   (exit $ac_status); }; } &&
25114          { ac_try='test -s conftest$ac_exeext'
25115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25116   (eval $ac_try) 2>&5
25117   ac_status=$?
25118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25119   (exit $ac_status); }; }; then
25120
25121 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
25122 }'`
25123 # Check for a 64-bit object if we didn't find anything.
25124 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; }
25125 }'`; fi
25126 else
25127   echo "$as_me: failed program was:" >&5
25128 sed 's/^/| /' conftest.$ac_ext >&5
25129
25130 fi
25131 rm -f conftest.err conftest.$ac_objext \
25132       conftest$ac_exeext conftest.$ac_ext
25133 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
25134
25135        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
25136         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"
25137        else
25138         if test "$host_cpu" = ia64; then
25139           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
25140           allow_undefined_flag_F77="-z nodefs"
25141           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"
25142         else
25143          # Determine the default libpath from the value encoded in an empty executable.
25144          cat >conftest.$ac_ext <<_ACEOF
25145       program main
25146
25147       end
25148 _ACEOF
25149 rm -f conftest.$ac_objext conftest$ac_exeext
25150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25151   (eval $ac_link) 2>conftest.er1
25152   ac_status=$?
25153   grep -v '^ *+' conftest.er1 >conftest.err
25154   rm -f conftest.er1
25155   cat conftest.err >&5
25156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25157   (exit $ac_status); } &&
25158          { ac_try='test -z "$ac_f77_werror_flag"
25159                          || test ! -s conftest.err'
25160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25161   (eval $ac_try) 2>&5
25162   ac_status=$?
25163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25164   (exit $ac_status); }; } &&
25165          { ac_try='test -s conftest$ac_exeext'
25166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25167   (eval $ac_try) 2>&5
25168   ac_status=$?
25169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25170   (exit $ac_status); }; }; then
25171
25172 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
25173 }'`
25174 # Check for a 64-bit object if we didn't find anything.
25175 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; }
25176 }'`; fi
25177 else
25178   echo "$as_me: failed program was:" >&5
25179 sed 's/^/| /' conftest.$ac_ext >&5
25180
25181 fi
25182 rm -f conftest.err conftest.$ac_objext \
25183       conftest$ac_exeext conftest.$ac_ext
25184 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
25185
25186          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
25187           # Warning - without using the other run time loading flags,
25188           # -berok will link without error, but may produce a broken library.
25189           no_undefined_flag_F77=' ${wl}-bernotok'
25190           allow_undefined_flag_F77=' ${wl}-berok'
25191           # -bexpall does not export symbols beginning with underscore (_)
25192           always_export_symbols_F77=yes
25193           # Exported symbols can be pulled into shared objects from archives
25194           whole_archive_flag_spec_F77=' '
25195           archive_cmds_need_lc_F77=yes
25196           # This is similar to how AIX traditionally builds its shared libraries.
25197           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'
25198         fi
25199       fi
25200       ;;
25201
25202     amigaos*)
25203       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)'
25204       hardcode_libdir_flag_spec_F77='-L$libdir'
25205       hardcode_minus_L_F77=yes
25206       # see comment about different semantics on the GNU ld section
25207       ld_shlibs_F77=no
25208       ;;
25209
25210     bsdi[45]*)
25211       export_dynamic_flag_spec_F77=-rdynamic
25212       ;;
25213
25214     cygwin* | mingw* | pw32*)
25215       # When not using gcc, we currently assume that we are using
25216       # Microsoft Visual C++.
25217       # hardcode_libdir_flag_spec is actually meaningless, as there is
25218       # no search path for DLLs.
25219       hardcode_libdir_flag_spec_F77=' '
25220       allow_undefined_flag_F77=unsupported
25221       # Tell ltmain to make .lib files, not .a files.
25222       libext=lib
25223       # Tell ltmain to make .dll files, not .so files.
25224       shrext_cmds=".dll"
25225       # FIXME: Setting linknames here is a bad hack.
25226       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
25227       # The linker will automatically build a .lib file if we build a DLL.
25228       old_archive_From_new_cmds_F77='true'
25229       # FIXME: Should let the user specify the lib program.
25230       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
25231       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
25232       enable_shared_with_static_runtimes_F77=yes
25233       ;;
25234
25235     darwin* | rhapsody*)
25236       case $host_os in
25237         rhapsody* | darwin1.[012])
25238          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
25239          ;;
25240        *) # Darwin 1.3 on
25241          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
25242            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25243          else
25244            case ${MACOSX_DEPLOYMENT_TARGET} in
25245              10.[012])
25246                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25247                ;;
25248              10.*)
25249                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
25250                ;;
25251            esac
25252          fi
25253          ;;
25254       esac
25255       archive_cmds_need_lc_F77=no
25256       hardcode_direct_F77=no
25257       hardcode_automatic_F77=yes
25258       hardcode_shlibpath_var_F77=unsupported
25259       whole_archive_flag_spec_F77=''
25260       link_all_deplibs_F77=yes
25261     if test "$GCC" = yes ; then
25262         output_verbose_link_cmd='echo'
25263         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
25264       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
25265       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
25266       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}'
25267       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}'
25268     else
25269       case $cc_basename in
25270         xlc*)
25271          output_verbose_link_cmd='echo'
25272          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
25273          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
25274           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
25275          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}'
25276           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}'
25277           ;;
25278        *)
25279          ld_shlibs_F77=no
25280           ;;
25281       esac
25282     fi
25283       ;;
25284
25285     dgux*)
25286       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25287       hardcode_libdir_flag_spec_F77='-L$libdir'
25288       hardcode_shlibpath_var_F77=no
25289       ;;
25290
25291     freebsd1*)
25292       ld_shlibs_F77=no
25293       ;;
25294
25295     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
25296     # support.  Future versions do this automatically, but an explicit c++rt0.o
25297     # does not break anything, and helps significantly (at the cost of a little
25298     # extra space).
25299     freebsd2.2*)
25300       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
25301       hardcode_libdir_flag_spec_F77='-R$libdir'
25302       hardcode_direct_F77=yes
25303       hardcode_shlibpath_var_F77=no
25304       ;;
25305
25306     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
25307     freebsd2*)
25308       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25309       hardcode_direct_F77=yes
25310       hardcode_minus_L_F77=yes
25311       hardcode_shlibpath_var_F77=no
25312       ;;
25313
25314     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
25315     freebsd* | kfreebsd*-gnu | dragonfly*)
25316       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
25317       hardcode_libdir_flag_spec_F77='-R$libdir'
25318       hardcode_direct_F77=yes
25319       hardcode_shlibpath_var_F77=no
25320       ;;
25321
25322     hpux9*)
25323       if test "$GCC" = yes; then
25324         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'
25325       else
25326         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'
25327       fi
25328       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
25329       hardcode_libdir_separator_F77=:
25330       hardcode_direct_F77=yes
25331
25332       # hardcode_minus_L: Not really in the search PATH,
25333       # but as the default location of the library.
25334       hardcode_minus_L_F77=yes
25335       export_dynamic_flag_spec_F77='${wl}-E'
25336       ;;
25337
25338     hpux10* | hpux11*)
25339       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
25340         case $host_cpu in
25341         hppa*64*|ia64*)
25342           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25343           ;;
25344         *)
25345           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25346           ;;
25347         esac
25348       else
25349         case $host_cpu in
25350         hppa*64*|ia64*)
25351           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
25352           ;;
25353         *)
25354           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
25355           ;;
25356         esac
25357       fi
25358       if test "$with_gnu_ld" = no; then
25359         case $host_cpu in
25360         hppa*64*)
25361           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
25362           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
25363           hardcode_libdir_separator_F77=:
25364           hardcode_direct_F77=no
25365           hardcode_shlibpath_var_F77=no
25366           ;;
25367         ia64*)
25368           hardcode_libdir_flag_spec_F77='-L$libdir'
25369           hardcode_direct_F77=no
25370           hardcode_shlibpath_var_F77=no
25371
25372           # hardcode_minus_L: Not really in the search PATH,
25373           # but as the default location of the library.
25374           hardcode_minus_L_F77=yes
25375           ;;
25376         *)
25377           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
25378           hardcode_libdir_separator_F77=:
25379           hardcode_direct_F77=yes
25380           export_dynamic_flag_spec_F77='${wl}-E'
25381
25382           # hardcode_minus_L: Not really in the search PATH,
25383           # but as the default location of the library.
25384           hardcode_minus_L_F77=yes
25385           ;;
25386         esac
25387       fi
25388       ;;
25389
25390     irix5* | irix6* | nonstopux*)
25391       if test "$GCC" = yes; then
25392         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'
25393       else
25394         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'
25395         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
25396       fi
25397       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
25398       hardcode_libdir_separator_F77=:
25399       link_all_deplibs_F77=yes
25400       ;;
25401
25402     netbsd*)
25403       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25404         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
25405       else
25406         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
25407       fi
25408       hardcode_libdir_flag_spec_F77='-R$libdir'
25409       hardcode_direct_F77=yes
25410       hardcode_shlibpath_var_F77=no
25411       ;;
25412
25413     newsos6)
25414       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25415       hardcode_direct_F77=yes
25416       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
25417       hardcode_libdir_separator_F77=:
25418       hardcode_shlibpath_var_F77=no
25419       ;;
25420
25421     openbsd*)
25422       hardcode_direct_F77=yes
25423       hardcode_shlibpath_var_F77=no
25424       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25425         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25426         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
25427         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
25428         export_dynamic_flag_spec_F77='${wl}-E'
25429       else
25430        case $host_os in
25431          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
25432            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25433            hardcode_libdir_flag_spec_F77='-R$libdir'
25434            ;;
25435          *)
25436            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25437            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
25438            ;;
25439        esac
25440       fi
25441       ;;
25442
25443     os2*)
25444       hardcode_libdir_flag_spec_F77='-L$libdir'
25445       hardcode_minus_L_F77=yes
25446       allow_undefined_flag_F77=unsupported
25447       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'
25448       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
25449       ;;
25450
25451     osf3*)
25452       if test "$GCC" = yes; then
25453         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
25454         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'
25455       else
25456         allow_undefined_flag_F77=' -expect_unresolved \*'
25457         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'
25458       fi
25459       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
25460       hardcode_libdir_separator_F77=:
25461       ;;
25462
25463     osf4* | osf5*)      # as osf3* with the addition of -msym flag
25464       if test "$GCC" = yes; then
25465         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
25466         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'
25467         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
25468       else
25469         allow_undefined_flag_F77=' -expect_unresolved \*'
25470         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'
25471         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~
25472         $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'
25473
25474         # Both c and cxx compiler support -rpath directly
25475         hardcode_libdir_flag_spec_F77='-rpath $libdir'
25476       fi
25477       hardcode_libdir_separator_F77=:
25478       ;;
25479
25480     sco3.2v5*)
25481       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25482       hardcode_shlibpath_var_F77=no
25483       export_dynamic_flag_spec_F77='${wl}-Bexport'
25484       runpath_var=LD_RUN_PATH
25485       hardcode_runpath_var=yes
25486       ;;
25487
25488     solaris*)
25489       no_undefined_flag_F77=' -z text'
25490       if test "$GCC" = yes; then
25491         wlarc='${wl}'
25492         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25493         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25494           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
25495       else
25496         wlarc=''
25497         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
25498         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25499         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
25500       fi
25501       hardcode_libdir_flag_spec_F77='-R$libdir'
25502       hardcode_shlibpath_var_F77=no
25503       case $host_os in
25504       solaris2.[0-5] | solaris2.[0-5].*) ;;
25505       *)
25506         # The compiler driver will combine linker options so we
25507         # cannot just pass the convience library names through
25508         # without $wl, iff we do not link with $LD.
25509         # Luckily, gcc supports the same syntax we need for Sun Studio.
25510         # Supported since Solaris 2.6 (maybe 2.5.1?)
25511         case $wlarc in
25512         '')
25513           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
25514         *)
25515           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' ;;
25516         esac ;;
25517       esac
25518       link_all_deplibs_F77=yes
25519       ;;
25520
25521     sunos4*)
25522       if test "x$host_vendor" = xsequent; then
25523         # Use $CC to link under sequent, because it throws in some extra .o
25524         # files that make .init and .fini sections work.
25525         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25526       else
25527         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25528       fi
25529       hardcode_libdir_flag_spec_F77='-L$libdir'
25530       hardcode_direct_F77=yes
25531       hardcode_minus_L_F77=yes
25532       hardcode_shlibpath_var_F77=no
25533       ;;
25534
25535     sysv4)
25536       case $host_vendor in
25537         sni)
25538           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25539           hardcode_direct_F77=yes # is this really true???
25540         ;;
25541         siemens)
25542           ## LD is ld it makes a PLAMLIB
25543           ## CC just makes a GrossModule.
25544           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25545           reload_cmds_F77='$CC -r -o $output$reload_objs'
25546           hardcode_direct_F77=no
25547         ;;
25548         motorola)
25549           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25550           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
25551         ;;
25552       esac
25553       runpath_var='LD_RUN_PATH'
25554       hardcode_shlibpath_var_F77=no
25555       ;;
25556
25557     sysv4.3*)
25558       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25559       hardcode_shlibpath_var_F77=no
25560       export_dynamic_flag_spec_F77='-Bexport'
25561       ;;
25562
25563     sysv4*MP*)
25564       if test -d /usr/nec; then
25565         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25566         hardcode_shlibpath_var_F77=no
25567         runpath_var=LD_RUN_PATH
25568         hardcode_runpath_var=yes
25569         ld_shlibs_F77=yes
25570       fi
25571       ;;
25572
25573     sysv4.2uw2*)
25574       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25575       hardcode_direct_F77=yes
25576       hardcode_minus_L_F77=no
25577       hardcode_shlibpath_var_F77=no
25578       hardcode_runpath_var=yes
25579       runpath_var=LD_RUN_PATH
25580       ;;
25581
25582    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
25583       no_undefined_flag_F77='${wl}-z ${wl}text'
25584       if test "$GCC" = yes; then
25585         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25586       else
25587         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25588       fi
25589       runpath_var='LD_RUN_PATH'
25590       hardcode_shlibpath_var_F77=no
25591       ;;
25592
25593     sysv5*)
25594       no_undefined_flag_F77=' -z text'
25595       # $CC -shared without GNU ld will not create a library from C++
25596       # object files and a static libstdc++, better avoid it by now
25597       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
25598       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25599                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
25600       hardcode_libdir_flag_spec_F77=
25601       hardcode_shlibpath_var_F77=no
25602       runpath_var='LD_RUN_PATH'
25603       ;;
25604
25605     uts4*)
25606       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25607       hardcode_libdir_flag_spec_F77='-L$libdir'
25608       hardcode_shlibpath_var_F77=no
25609       ;;
25610
25611     *)
25612       ld_shlibs_F77=no
25613       ;;
25614     esac
25615   fi
25616
25617 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
25618 echo "${ECHO_T}$ld_shlibs_F77" >&6
25619 test "$ld_shlibs_F77" = no && can_build_shared=no
25620
25621 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
25622 if test "$GCC" = yes; then
25623   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
25624 fi
25625
25626 #
25627 # Do we need to explicitly link libc?
25628 #
25629 case "x$archive_cmds_need_lc_F77" in
25630 x|xyes)
25631   # Assume -lc should be added
25632   archive_cmds_need_lc_F77=yes
25633
25634   if test "$enable_shared" = yes && test "$GCC" = yes; then
25635     case $archive_cmds_F77 in
25636     *'~'*)
25637       # FIXME: we may have to deal with multi-command sequences.
25638       ;;
25639     '$CC '*)
25640       # Test whether the compiler implicitly links with -lc since on some
25641       # systems, -lgcc has to come before -lc. If gcc already passes -lc
25642       # to ld, don't add -lc before -lgcc.
25643       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25644 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
25645       $rm conftest*
25646       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25647
25648       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25649   (eval $ac_compile) 2>&5
25650   ac_status=$?
25651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25652   (exit $ac_status); } 2>conftest.err; then
25653         soname=conftest
25654         lib=conftest
25655         libobjs=conftest.$ac_objext
25656         deplibs=
25657         wl=$lt_prog_compiler_wl_F77
25658         compiler_flags=-v
25659         linker_flags=-v
25660         verstring=
25661         output_objdir=.
25662         libname=conftest
25663         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
25664         allow_undefined_flag_F77=
25665         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25666   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25667   ac_status=$?
25668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25669   (exit $ac_status); }
25670         then
25671           archive_cmds_need_lc_F77=no
25672         else
25673           archive_cmds_need_lc_F77=yes
25674         fi
25675         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
25676       else
25677         cat conftest.err 1>&5
25678       fi
25679       $rm conftest*
25680       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
25681 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
25682       ;;
25683     esac
25684   fi
25685   ;;
25686 esac
25687
25688 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25689 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
25690 library_names_spec=
25691 libname_spec='lib$name'
25692 soname_spec=
25693 shrext_cmds=".so"
25694 postinstall_cmds=
25695 postuninstall_cmds=
25696 finish_cmds=
25697 finish_eval=
25698 shlibpath_var=
25699 shlibpath_overrides_runpath=unknown
25700 version_type=none
25701 dynamic_linker="$host_os ld.so"
25702 sys_lib_dlsearch_path_spec="/lib /usr/lib"
25703 if test "$GCC" = yes; then
25704   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25705   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25706     # if the path contains ";" then we assume it to be the separator
25707     # otherwise default to the standard path separator (i.e. ":") - it is
25708     # assumed that no part of a normal pathname contains ";" but that should
25709     # okay in the real world where ";" in dirpaths is itself problematic.
25710     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25711   else
25712     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
25713   fi
25714 else
25715   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25716 fi
25717 need_lib_prefix=unknown
25718 hardcode_into_libs=no
25719
25720 # when you set need_version to no, make sure it does not cause -set_version
25721 # flags to be left without arguments
25722 need_version=unknown
25723
25724 case $host_os in
25725 aix3*)
25726   version_type=linux
25727   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25728   shlibpath_var=LIBPATH
25729
25730   # AIX 3 has no versioning support, so we append a major version to the name.
25731   soname_spec='${libname}${release}${shared_ext}$major'
25732   ;;
25733
25734 aix4* | aix5*)
25735   version_type=linux
25736   need_lib_prefix=no
25737   need_version=no
25738   hardcode_into_libs=yes
25739   if test "$host_cpu" = ia64; then
25740     # AIX 5 supports IA64
25741     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25742     shlibpath_var=LD_LIBRARY_PATH
25743   else
25744     # With GCC up to 2.95.x, collect2 would create an import file
25745     # for dependence libraries.  The import file would start with
25746     # the line `#! .'.  This would cause the generated library to
25747     # depend on `.', always an invalid library.  This was fixed in
25748     # development snapshots of GCC prior to 3.0.
25749     case $host_os in
25750       aix4 | aix4.[01] | aix4.[01].*)
25751       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25752            echo ' yes '
25753            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25754         :
25755       else
25756         can_build_shared=no
25757       fi
25758       ;;
25759     esac
25760     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25761     # soname into executable. Probably we can add versioning support to
25762     # collect2, so additional links can be useful in future.
25763     if test "$aix_use_runtimelinking" = yes; then
25764       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25765       # instead of lib<name>.a to let people know that these are not
25766       # typical AIX shared libraries.
25767       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25768     else
25769       # We preserve .a as extension for shared libraries through AIX4.2
25770       # and later when we are not doing run time linking.
25771       library_names_spec='${libname}${release}.a $libname.a'
25772       soname_spec='${libname}${release}${shared_ext}$major'
25773     fi
25774     shlibpath_var=LIBPATH
25775   fi
25776   ;;
25777
25778 amigaos*)
25779   library_names_spec='$libname.ixlibrary $libname.a'
25780   # Create ${libname}_ixlibrary.a entries in /sys/libs.
25781   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'
25782   ;;
25783
25784 beos*)
25785   library_names_spec='${libname}${shared_ext}'
25786   dynamic_linker="$host_os ld.so"
25787   shlibpath_var=LIBRARY_PATH
25788   ;;
25789
25790 bsdi[45]*)
25791   version_type=linux
25792   need_version=no
25793   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25794   soname_spec='${libname}${release}${shared_ext}$major'
25795   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25796   shlibpath_var=LD_LIBRARY_PATH
25797   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25798   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25799   # the default ld.so.conf also contains /usr/contrib/lib and
25800   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25801   # libtool to hard-code these into programs
25802   ;;
25803
25804 cygwin* | mingw* | pw32*)
25805   version_type=windows
25806   shrext_cmds=".dll"
25807   need_version=no
25808   need_lib_prefix=no
25809
25810   case $GCC,$host_os in
25811   yes,cygwin* | yes,mingw* | yes,pw32*)
25812     library_names_spec='$libname.dll.a'
25813     # DLL is installed to $(libdir)/../bin by postinstall_cmds
25814     postinstall_cmds='base_file=`basename \${file}`~
25815       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25816       dldir=$destdir/`dirname \$dlpath`~
25817       test -d \$dldir || mkdir -p \$dldir~
25818       $install_prog $dir/$dlname \$dldir/$dlname~
25819       chmod a+x \$dldir/$dlname'
25820     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25821       dlpath=$dir/\$dldll~
25822        $rm \$dlpath'
25823     shlibpath_overrides_runpath=yes
25824
25825     case $host_os in
25826     cygwin*)
25827       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25828       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25829       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
25830       ;;
25831     mingw*)
25832       # MinGW DLLs use traditional 'lib' prefix
25833       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25834       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25835       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25836         # It is most probably a Windows format PATH printed by
25837         # mingw gcc, but we are running on Cygwin. Gcc prints its search
25838         # path with ; separators, and with drive letters. We can handle the
25839         # drive letters (cygwin fileutils understands them), so leave them,
25840         # especially as we might pass files found there to a mingw objdump,
25841         # which wouldn't understand a cygwinified path. Ahh.
25842         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25843       else
25844         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
25845       fi
25846       ;;
25847     pw32*)
25848       # pw32 DLLs use 'pw' prefix rather than 'lib'
25849       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25850       ;;
25851     esac
25852     ;;
25853
25854   *)
25855     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25856     ;;
25857   esac
25858   dynamic_linker='Win32 ld.exe'
25859   # FIXME: first we should search . and the directory the executable is in
25860   shlibpath_var=PATH
25861   ;;
25862
25863 darwin* | rhapsody*)
25864   dynamic_linker="$host_os dyld"
25865   version_type=darwin
25866   need_lib_prefix=no
25867   need_version=no
25868   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
25869   soname_spec='${libname}${release}${major}$shared_ext'
25870   shlibpath_overrides_runpath=yes
25871   shlibpath_var=DYLD_LIBRARY_PATH
25872   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
25873   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
25874   if test "$GCC" = yes; then
25875     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"`
25876   else
25877     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
25878   fi
25879   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25880   ;;
25881
25882 dgux*)
25883   version_type=linux
25884   need_lib_prefix=no
25885   need_version=no
25886   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25887   soname_spec='${libname}${release}${shared_ext}$major'
25888   shlibpath_var=LD_LIBRARY_PATH
25889   ;;
25890
25891 freebsd1*)
25892   dynamic_linker=no
25893   ;;
25894
25895 kfreebsd*-gnu)
25896   version_type=linux
25897   need_lib_prefix=no
25898   need_version=no
25899   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25900   soname_spec='${libname}${release}${shared_ext}$major'
25901   shlibpath_var=LD_LIBRARY_PATH
25902   shlibpath_overrides_runpath=no
25903   hardcode_into_libs=yes
25904   dynamic_linker='GNU ld.so'
25905   ;;
25906
25907 freebsd* | dragonfly*)
25908   # DragonFly does not have aout.  When/if they implement a new
25909   # versioning mechanism, adjust this.
25910   if test -x /usr/bin/objformat; then
25911     objformat=`/usr/bin/objformat`
25912   else
25913     case $host_os in
25914     freebsd[123]*) objformat=aout ;;
25915     *) objformat=elf ;;
25916     esac
25917   fi
25918   version_type=freebsd-$objformat
25919   case $version_type in
25920     freebsd-elf*)
25921       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25922       need_version=no
25923       need_lib_prefix=no
25924       ;;
25925     freebsd-*)
25926       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25927       need_version=yes
25928       ;;
25929   esac
25930   shlibpath_var=LD_LIBRARY_PATH
25931   case $host_os in
25932   freebsd2*)
25933     shlibpath_overrides_runpath=yes
25934     ;;
25935   freebsd3.[01]* | freebsdelf3.[01]*)
25936     shlibpath_overrides_runpath=yes
25937     hardcode_into_libs=yes
25938     ;;
25939   *) # from 3.2 on
25940     shlibpath_overrides_runpath=no
25941     hardcode_into_libs=yes
25942     ;;
25943   esac
25944   ;;
25945
25946 gnu*)
25947   version_type=linux
25948   need_lib_prefix=no
25949   need_version=no
25950   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25951   soname_spec='${libname}${release}${shared_ext}$major'
25952   shlibpath_var=LD_LIBRARY_PATH
25953   hardcode_into_libs=yes
25954   ;;
25955
25956 hpux9* | hpux10* | hpux11*)
25957   # Give a soname corresponding to the major version so that dld.sl refuses to
25958   # link against other versions.
25959   version_type=sunos
25960   need_lib_prefix=no
25961   need_version=no
25962   case $host_cpu in
25963   ia64*)
25964     shrext_cmds='.so'
25965     hardcode_into_libs=yes
25966     dynamic_linker="$host_os dld.so"
25967     shlibpath_var=LD_LIBRARY_PATH
25968     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25969     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25970     soname_spec='${libname}${release}${shared_ext}$major'
25971     if test "X$HPUX_IA64_MODE" = X32; then
25972       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25973     else
25974       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25975     fi
25976     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25977     ;;
25978    hppa*64*)
25979      shrext_cmds='.sl'
25980      hardcode_into_libs=yes
25981      dynamic_linker="$host_os dld.sl"
25982      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25983      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25984      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25985      soname_spec='${libname}${release}${shared_ext}$major'
25986      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25987      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25988      ;;
25989    *)
25990     shrext_cmds='.sl'
25991     dynamic_linker="$host_os dld.sl"
25992     shlibpath_var=SHLIB_PATH
25993     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25994     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25995     soname_spec='${libname}${release}${shared_ext}$major'
25996     ;;
25997   esac
25998   # HP-UX runs *really* slowly unless shared libraries are mode 555.
25999   postinstall_cmds='chmod 555 $lib'
26000   ;;
26001
26002 irix5* | irix6* | nonstopux*)
26003   case $host_os in
26004     nonstopux*) version_type=nonstopux ;;
26005     *)
26006         if test "$lt_cv_prog_gnu_ld" = yes; then
26007                 version_type=linux
26008         else
26009                 version_type=irix
26010         fi ;;
26011   esac
26012   need_lib_prefix=no
26013   need_version=no
26014   soname_spec='${libname}${release}${shared_ext}$major'
26015   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
26016   case $host_os in
26017   irix5* | nonstopux*)
26018     libsuff= shlibsuff=
26019     ;;
26020   *)
26021     case $LD in # libtool.m4 will add one of these switches to LD
26022     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
26023       libsuff= shlibsuff= libmagic=32-bit;;
26024     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
26025       libsuff=32 shlibsuff=N32 libmagic=N32;;
26026     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
26027       libsuff=64 shlibsuff=64 libmagic=64-bit;;
26028     *) libsuff= shlibsuff= libmagic=never-match;;
26029     esac
26030     ;;
26031   esac
26032   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
26033   shlibpath_overrides_runpath=no
26034   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
26035   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
26036   hardcode_into_libs=yes
26037   ;;
26038
26039 # No shared lib support for Linux oldld, aout, or coff.
26040 linux*oldld* | linux*aout* | linux*coff*)
26041   dynamic_linker=no
26042   ;;
26043
26044 # This must be Linux ELF.
26045 linux*)
26046   version_type=linux
26047   need_lib_prefix=no
26048   need_version=no
26049   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26050   soname_spec='${libname}${release}${shared_ext}$major'
26051   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
26052   shlibpath_var=LD_LIBRARY_PATH
26053   shlibpath_overrides_runpath=no
26054   # This implies no fast_install, which is unacceptable.
26055   # Some rework will be needed to allow for fast_install
26056   # before this can be enabled.
26057   hardcode_into_libs=yes
26058
26059   # Append ld.so.conf contents to the search path
26060   if test -f /etc/ld.so.conf; then
26061     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' ' '`
26062     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
26063   fi
26064
26065   # We used to test for /lib/ld.so.1 and disable shared libraries on
26066   # powerpc, because MkLinux only supported shared libraries with the
26067   # GNU dynamic linker.  Since this was broken with cross compilers,
26068   # most powerpc-linux boxes support dynamic linking these days and
26069   # people can always --disable-shared, the test was removed, and we
26070   # assume the GNU/Linux dynamic linker is in use.
26071   dynamic_linker='GNU/Linux ld.so'
26072   ;;
26073
26074 knetbsd*-gnu)
26075   version_type=linux
26076   need_lib_prefix=no
26077   need_version=no
26078   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
26079   soname_spec='${libname}${release}${shared_ext}$major'
26080   shlibpath_var=LD_LIBRARY_PATH
26081   shlibpath_overrides_runpath=no
26082   hardcode_into_libs=yes
26083   dynamic_linker='GNU ld.so'
26084   ;;
26085
26086 netbsd*)
26087   version_type=sunos
26088   need_lib_prefix=no
26089   need_version=no
26090   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
26091     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26092     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
26093     dynamic_linker='NetBSD (a.out) ld.so'
26094   else
26095     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
26096     soname_spec='${libname}${release}${shared_ext}$major'
26097     dynamic_linker='NetBSD ld.elf_so'
26098   fi
26099   shlibpath_var=LD_LIBRARY_PATH
26100   shlibpath_overrides_runpath=yes
26101   hardcode_into_libs=yes
26102   ;;
26103
26104 newsos6)
26105   version_type=linux
26106   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26107   shlibpath_var=LD_LIBRARY_PATH
26108   shlibpath_overrides_runpath=yes
26109   ;;
26110
26111 nto-qnx*)
26112   version_type=linux
26113   need_lib_prefix=no
26114   need_version=no
26115   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26116   soname_spec='${libname}${release}${shared_ext}$major'
26117   shlibpath_var=LD_LIBRARY_PATH
26118   shlibpath_overrides_runpath=yes
26119   ;;
26120
26121 openbsd*)
26122   version_type=sunos
26123   need_lib_prefix=no
26124   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
26125   case $host_os in
26126     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
26127     *)                         need_version=no  ;;
26128   esac
26129   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26130   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
26131   shlibpath_var=LD_LIBRARY_PATH
26132   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
26133     case $host_os in
26134       openbsd2.[89] | openbsd2.[89].*)
26135         shlibpath_overrides_runpath=no
26136         ;;
26137       *)
26138         shlibpath_overrides_runpath=yes
26139         ;;
26140       esac
26141   else
26142     shlibpath_overrides_runpath=yes
26143   fi
26144   ;;
26145
26146 os2*)
26147   libname_spec='$name'
26148   shrext_cmds=".dll"
26149   need_lib_prefix=no
26150   library_names_spec='$libname${shared_ext} $libname.a'
26151   dynamic_linker='OS/2 ld.exe'
26152   shlibpath_var=LIBPATH
26153   ;;
26154
26155 osf3* | osf4* | osf5*)
26156   version_type=osf
26157   need_lib_prefix=no
26158   need_version=no
26159   soname_spec='${libname}${release}${shared_ext}$major'
26160   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26161   shlibpath_var=LD_LIBRARY_PATH
26162   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
26163   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
26164   ;;
26165
26166 sco3.2v5*)
26167   version_type=osf
26168   soname_spec='${libname}${release}${shared_ext}$major'
26169   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26170   shlibpath_var=LD_LIBRARY_PATH
26171   ;;
26172
26173 solaris*)
26174   version_type=linux
26175   need_lib_prefix=no
26176   need_version=no
26177   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26178   soname_spec='${libname}${release}${shared_ext}$major'
26179   shlibpath_var=LD_LIBRARY_PATH
26180   shlibpath_overrides_runpath=yes
26181   hardcode_into_libs=yes
26182   # ldd complains unless libraries are executable
26183   postinstall_cmds='chmod +x $lib'
26184   ;;
26185
26186 sunos4*)
26187   version_type=sunos
26188   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26189   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
26190   shlibpath_var=LD_LIBRARY_PATH
26191   shlibpath_overrides_runpath=yes
26192   if test "$with_gnu_ld" = yes; then
26193     need_lib_prefix=no
26194   fi
26195   need_version=yes
26196   ;;
26197
26198 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
26199   version_type=linux
26200   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26201   soname_spec='${libname}${release}${shared_ext}$major'
26202   shlibpath_var=LD_LIBRARY_PATH
26203   case $host_vendor in
26204     sni)
26205       shlibpath_overrides_runpath=no
26206       need_lib_prefix=no
26207       export_dynamic_flag_spec='${wl}-Blargedynsym'
26208       runpath_var=LD_RUN_PATH
26209       ;;
26210     siemens)
26211       need_lib_prefix=no
26212       ;;
26213     motorola)
26214       need_lib_prefix=no
26215       need_version=no
26216       shlibpath_overrides_runpath=no
26217       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
26218       ;;
26219   esac
26220   ;;
26221
26222 sysv4*MP*)
26223   if test -d /usr/nec ;then
26224     version_type=linux
26225     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
26226     soname_spec='$libname${shared_ext}.$major'
26227     shlibpath_var=LD_LIBRARY_PATH
26228   fi
26229   ;;
26230
26231 uts4*)
26232   version_type=linux
26233   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26234   soname_spec='${libname}${release}${shared_ext}$major'
26235   shlibpath_var=LD_LIBRARY_PATH
26236   ;;
26237
26238 *)
26239   dynamic_linker=no
26240   ;;
26241 esac
26242 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
26243 echo "${ECHO_T}$dynamic_linker" >&6
26244 test "$dynamic_linker" = no && can_build_shared=no
26245
26246 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
26247 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
26248 hardcode_action_F77=
26249 if test -n "$hardcode_libdir_flag_spec_F77" || \
26250    test -n "$runpath_var_F77" || \
26251    test "X$hardcode_automatic_F77" = "Xyes" ; then
26252
26253   # We can hardcode non-existant directories.
26254   if test "$hardcode_direct_F77" != no &&
26255      # If the only mechanism to avoid hardcoding is shlibpath_var, we
26256      # have to relink, otherwise we might link with an installed library
26257      # when we should be linking with a yet-to-be-installed one
26258      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
26259      test "$hardcode_minus_L_F77" != no; then
26260     # Linking always hardcodes the temporary library directory.
26261     hardcode_action_F77=relink
26262   else
26263     # We can link without hardcoding, and we can hardcode nonexisting dirs.
26264     hardcode_action_F77=immediate
26265   fi
26266 else
26267   # We cannot hardcode anything, or else we can only hardcode existing
26268   # directories.
26269   hardcode_action_F77=unsupported
26270 fi
26271 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
26272 echo "${ECHO_T}$hardcode_action_F77" >&6
26273
26274 if test "$hardcode_action_F77" = relink; then
26275   # Fast installation is not supported
26276   enable_fast_install=no
26277 elif test "$shlibpath_overrides_runpath" = yes ||
26278      test "$enable_shared" = no; then
26279   # Fast installation is not necessary
26280   enable_fast_install=needless
26281 fi
26282
26283 striplib=
26284 old_striplib=
26285 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
26286 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
26287 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
26288   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
26289   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
26290   echo "$as_me:$LINENO: result: yes" >&5
26291 echo "${ECHO_T}yes" >&6
26292 else
26293 # FIXME - insert some real tests, host_os isn't really good enough
26294   case $host_os in
26295    darwin*)
26296        if test -n "$STRIP" ; then
26297          striplib="$STRIP -x"
26298          echo "$as_me:$LINENO: result: yes" >&5
26299 echo "${ECHO_T}yes" >&6
26300        else
26301   echo "$as_me:$LINENO: result: no" >&5
26302 echo "${ECHO_T}no" >&6
26303 fi
26304        ;;
26305    *)
26306   echo "$as_me:$LINENO: result: no" >&5
26307 echo "${ECHO_T}no" >&6
26308     ;;
26309   esac
26310 fi
26311
26312
26313
26314 # The else clause should only fire when bootstrapping the
26315 # libtool distribution, otherwise you forgot to ship ltmain.sh
26316 # with your package, and you will get complaints that there are
26317 # no rules to generate ltmain.sh.
26318 if test -f "$ltmain"; then
26319   # See if we are running on zsh, and set the options which allow our commands through
26320   # without removal of \ escapes.
26321   if test -n "${ZSH_VERSION+set}" ; then
26322     setopt NO_GLOB_SUBST
26323   fi
26324   # Now quote all the things that may contain metacharacters while being
26325   # careful not to overquote the AC_SUBSTed values.  We take copies of the
26326   # variables and quote the copies for generation of the libtool script.
26327   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
26328     SED SHELL STRIP \
26329     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26330     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26331     deplibs_check_method reload_flag reload_cmds need_locks \
26332     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26333     lt_cv_sys_global_symbol_to_c_name_address \
26334     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26335     old_postinstall_cmds old_postuninstall_cmds \
26336     compiler_F77 \
26337     CC_F77 \
26338     LD_F77 \
26339     lt_prog_compiler_wl_F77 \
26340     lt_prog_compiler_pic_F77 \
26341     lt_prog_compiler_static_F77 \
26342     lt_prog_compiler_no_builtin_flag_F77 \
26343     export_dynamic_flag_spec_F77 \
26344     thread_safe_flag_spec_F77 \
26345     whole_archive_flag_spec_F77 \
26346     enable_shared_with_static_runtimes_F77 \
26347     old_archive_cmds_F77 \
26348     old_archive_from_new_cmds_F77 \
26349     predep_objects_F77 \
26350     postdep_objects_F77 \
26351     predeps_F77 \
26352     postdeps_F77 \
26353     compiler_lib_search_path_F77 \
26354     archive_cmds_F77 \
26355     archive_expsym_cmds_F77 \
26356     postinstall_cmds_F77 \
26357     postuninstall_cmds_F77 \
26358     old_archive_from_expsyms_cmds_F77 \
26359     allow_undefined_flag_F77 \
26360     no_undefined_flag_F77 \
26361     export_symbols_cmds_F77 \
26362     hardcode_libdir_flag_spec_F77 \
26363     hardcode_libdir_flag_spec_ld_F77 \
26364     hardcode_libdir_separator_F77 \
26365     hardcode_automatic_F77 \
26366     module_cmds_F77 \
26367     module_expsym_cmds_F77 \
26368     lt_cv_prog_compiler_c_o_F77 \
26369     exclude_expsyms_F77 \
26370     include_expsyms_F77; do
26371
26372     case $var in
26373     old_archive_cmds_F77 | \
26374     old_archive_from_new_cmds_F77 | \
26375     archive_cmds_F77 | \
26376     archive_expsym_cmds_F77 | \
26377     module_cmds_F77 | \
26378     module_expsym_cmds_F77 | \
26379     old_archive_from_expsyms_cmds_F77 | \
26380     export_symbols_cmds_F77 | \
26381     extract_expsyms_cmds | reload_cmds | finish_cmds | \
26382     postinstall_cmds | postuninstall_cmds | \
26383     old_postinstall_cmds | old_postuninstall_cmds | \
26384     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26385       # Double-quote double-evaled strings.
26386       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
26387       ;;
26388     *)
26389       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26390       ;;
26391     esac
26392   done
26393
26394   case $lt_echo in
26395   *'\$0 --fallback-echo"')
26396     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26397     ;;
26398   esac
26399
26400 cfgfile="$ofile"
26401
26402   cat <<__EOF__ >> "$cfgfile"
26403 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
26404
26405 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26406
26407 # Shell to use when invoking shell scripts.
26408 SHELL=$lt_SHELL
26409
26410 # Whether or not to build shared libraries.
26411 build_libtool_libs=$enable_shared
26412
26413 # Whether or not to build static libraries.
26414 build_old_libs=$enable_static
26415
26416 # Whether or not to add -lc for building shared libraries.
26417 build_libtool_need_lc=$archive_cmds_need_lc_F77
26418
26419 # Whether or not to disallow shared libs when runtime libs are static
26420 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
26421
26422 # Whether or not to optimize for fast installation.
26423 fast_install=$enable_fast_install
26424
26425 # The host system.
26426 host_alias=$host_alias
26427 host=$host
26428 host_os=$host_os
26429
26430 # The build system.
26431 build_alias=$build_alias
26432 build=$build
26433 build_os=$build_os
26434
26435 # An echo program that does not interpret backslashes.
26436 echo=$lt_echo
26437
26438 # The archiver.
26439 AR=$lt_AR
26440 AR_FLAGS=$lt_AR_FLAGS
26441
26442 # A C compiler.
26443 LTCC=$lt_LTCC
26444
26445 # A language-specific compiler.
26446 CC=$lt_compiler_F77
26447
26448 # Is the compiler the GNU C compiler?
26449 with_gcc=$GCC_F77
26450
26451 # An ERE matcher.
26452 EGREP=$lt_EGREP
26453
26454 # The linker used to build libraries.
26455 LD=$lt_LD_F77
26456
26457 # Whether we need hard or soft links.
26458 LN_S=$lt_LN_S
26459
26460 # A BSD-compatible nm program.
26461 NM=$lt_NM
26462
26463 # A symbol stripping program
26464 STRIP=$lt_STRIP
26465
26466 # Used to examine libraries when file_magic_cmd begins "file"
26467 MAGIC_CMD=$MAGIC_CMD
26468
26469 # Used on cygwin: DLL creation program.
26470 DLLTOOL="$DLLTOOL"
26471
26472 # Used on cygwin: object dumper.
26473 OBJDUMP="$OBJDUMP"
26474
26475 # Used on cygwin: assembler.
26476 AS="$AS"
26477
26478 # The name of the directory that contains temporary libtool files.
26479 objdir=$objdir
26480
26481 # How to create reloadable object files.
26482 reload_flag=$lt_reload_flag
26483 reload_cmds=$lt_reload_cmds
26484
26485 # How to pass a linker flag through the compiler.
26486 wl=$lt_lt_prog_compiler_wl_F77
26487
26488 # Object file suffix (normally "o").
26489 objext="$ac_objext"
26490
26491 # Old archive suffix (normally "a").
26492 libext="$libext"
26493
26494 # Shared library suffix (normally ".so").
26495 shrext_cmds='$shrext_cmds'
26496
26497 # Executable file suffix (normally "").
26498 exeext="$exeext"
26499
26500 # Additional compiler flags for building library objects.
26501 pic_flag=$lt_lt_prog_compiler_pic_F77
26502 pic_mode=$pic_mode
26503
26504 # What is the maximum length of a command?
26505 max_cmd_len=$lt_cv_sys_max_cmd_len
26506
26507 # Does compiler simultaneously support -c and -o options?
26508 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
26509
26510 # Must we lock files when doing compilation?
26511 need_locks=$lt_need_locks
26512
26513 # Do we need the lib prefix for modules?
26514 need_lib_prefix=$need_lib_prefix
26515
26516 # Do we need a version for libraries?
26517 need_version=$need_version
26518
26519 # Whether dlopen is supported.
26520 dlopen_support=$enable_dlopen
26521
26522 # Whether dlopen of programs is supported.
26523 dlopen_self=$enable_dlopen_self
26524
26525 # Whether dlopen of statically linked programs is supported.
26526 dlopen_self_static=$enable_dlopen_self_static
26527
26528 # Compiler flag to prevent dynamic linking.
26529 link_static_flag=$lt_lt_prog_compiler_static_F77
26530
26531 # Compiler flag to turn off builtin functions.
26532 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
26533
26534 # Compiler flag to allow reflexive dlopens.
26535 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
26536
26537 # Compiler flag to generate shared objects directly from archives.
26538 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
26539
26540 # Compiler flag to generate thread-safe objects.
26541 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
26542
26543 # Library versioning type.
26544 version_type=$version_type
26545
26546 # Format of library name prefix.
26547 libname_spec=$lt_libname_spec
26548
26549 # List of archive names.  First name is the real one, the rest are links.
26550 # The last name is the one that the linker finds with -lNAME.
26551 library_names_spec=$lt_library_names_spec
26552
26553 # The coded name of the library, if different from the real name.
26554 soname_spec=$lt_soname_spec
26555
26556 # Commands used to build and install an old-style archive.
26557 RANLIB=$lt_RANLIB
26558 old_archive_cmds=$lt_old_archive_cmds_F77
26559 old_postinstall_cmds=$lt_old_postinstall_cmds
26560 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26561
26562 # Create an old-style archive from a shared archive.
26563 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
26564
26565 # Create a temporary old-style archive to link instead of a shared archive.
26566 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
26567
26568 # Commands used to build and install a shared archive.
26569 archive_cmds=$lt_archive_cmds_F77
26570 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
26571 postinstall_cmds=$lt_postinstall_cmds
26572 postuninstall_cmds=$lt_postuninstall_cmds
26573
26574 # Commands used to build a loadable module (assumed same as above if empty)
26575 module_cmds=$lt_module_cmds_F77
26576 module_expsym_cmds=$lt_module_expsym_cmds_F77
26577
26578 # Commands to strip libraries.
26579 old_striplib=$lt_old_striplib
26580 striplib=$lt_striplib
26581
26582 # Dependencies to place before the objects being linked to create a
26583 # shared library.
26584 predep_objects=$lt_predep_objects_F77
26585
26586 # Dependencies to place after the objects being linked to create a
26587 # shared library.
26588 postdep_objects=$lt_postdep_objects_F77
26589
26590 # Dependencies to place before the objects being linked to create a
26591 # shared library.
26592 predeps=$lt_predeps_F77
26593
26594 # Dependencies to place after the objects being linked to create a
26595 # shared library.
26596 postdeps=$lt_postdeps_F77
26597
26598 # The library search path used internally by the compiler when linking
26599 # a shared library.
26600 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
26601
26602 # Method to check whether dependent libraries are shared objects.
26603 deplibs_check_method=$lt_deplibs_check_method
26604
26605 # Command to use when deplibs_check_method == file_magic.
26606 file_magic_cmd=$lt_file_magic_cmd
26607
26608 # Flag that allows shared libraries with undefined symbols to be built.
26609 allow_undefined_flag=$lt_allow_undefined_flag_F77
26610
26611 # Flag that forces no undefined symbols.
26612 no_undefined_flag=$lt_no_undefined_flag_F77
26613
26614 # Commands used to finish a libtool library installation in a directory.
26615 finish_cmds=$lt_finish_cmds
26616
26617 # Same as above, but a single script fragment to be evaled but not shown.
26618 finish_eval=$lt_finish_eval
26619
26620 # Take the output of nm and produce a listing of raw symbols and C names.
26621 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26622
26623 # Transform the output of nm in a proper C declaration
26624 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26625
26626 # Transform the output of nm in a C name address pair
26627 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26628
26629 # This is the shared library runtime path variable.
26630 runpath_var=$runpath_var
26631
26632 # This is the shared library path variable.
26633 shlibpath_var=$shlibpath_var
26634
26635 # Is shlibpath searched before the hard-coded library search path?
26636 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26637
26638 # How to hardcode a shared library path into an executable.
26639 hardcode_action=$hardcode_action_F77
26640
26641 # Whether we should hardcode library paths into libraries.
26642 hardcode_into_libs=$hardcode_into_libs
26643
26644 # Flag to hardcode \$libdir into a binary during linking.
26645 # This must work even if \$libdir does not exist.
26646 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
26647
26648 # If ld is used when linking, flag to hardcode \$libdir into
26649 # a binary during linking. This must work even if \$libdir does
26650 # not exist.
26651 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
26652
26653 # Whether we need a single -rpath flag with a separated argument.
26654 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
26655
26656 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26657 # resulting binary.
26658 hardcode_direct=$hardcode_direct_F77
26659
26660 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26661 # resulting binary.
26662 hardcode_minus_L=$hardcode_minus_L_F77
26663
26664 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26665 # the resulting binary.
26666 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
26667
26668 # Set to yes if building a shared library automatically hardcodes DIR into the library
26669 # and all subsequent libraries and executables linked against it.
26670 hardcode_automatic=$hardcode_automatic_F77
26671
26672 # Variables whose values should be saved in libtool wrapper scripts and
26673 # restored at relink time.
26674 variables_saved_for_relink="$variables_saved_for_relink"
26675
26676 # Whether libtool must link a program against all its dependency libraries.
26677 link_all_deplibs=$link_all_deplibs_F77
26678
26679 # Compile-time system search path for libraries
26680 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26681
26682 # Run-time system search path for libraries
26683 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26684
26685 # Fix the shell variable \$srcfile for the compiler.
26686 fix_srcfile_path="$fix_srcfile_path_F77"
26687
26688 # Set to yes if exported symbols are required.
26689 always_export_symbols=$always_export_symbols_F77
26690
26691 # The commands to list exported symbols.
26692 export_symbols_cmds=$lt_export_symbols_cmds_F77
26693
26694 # The commands to extract the exported symbol list from a shared archive.
26695 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26696
26697 # Symbols that should not be listed in the preloaded symbols.
26698 exclude_expsyms=$lt_exclude_expsyms_F77
26699
26700 # Symbols that must always be exported.
26701 include_expsyms=$lt_include_expsyms_F77
26702
26703 # ### END LIBTOOL TAG CONFIG: $tagname
26704
26705 __EOF__
26706
26707
26708 else
26709   # If there is no Makefile yet, we rely on a make rule to execute
26710   # `config.status --recheck' to rerun these tests and create the
26711   # libtool script then.
26712   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26713   if test -f "$ltmain_in"; then
26714     test -f Makefile && make "$ltmain"
26715   fi
26716 fi
26717
26718
26719 ac_ext=c
26720 ac_cpp='$CPP $CPPFLAGS'
26721 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26722 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26723 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26724
26725 CC="$lt_save_CC"
26726
26727         else
26728           tagname=""
26729         fi
26730         ;;
26731
26732       GCJ)
26733         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
26734
26735
26736
26737 # Source file extension for Java test sources.
26738 ac_ext=java
26739
26740 # Object file extension for compiled Java test sources.
26741 objext=o
26742 objext_GCJ=$objext
26743
26744 # Code to be used in simple compile tests
26745 lt_simple_compile_test_code="class foo {}\n"
26746
26747 # Code to be used in simple link tests
26748 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
26749
26750 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
26751
26752 # If no C compiler was specified, use CC.
26753 LTCC=${LTCC-"$CC"}
26754
26755 # Allow CC to be a program name with arguments.
26756 compiler=$CC
26757
26758
26759 # save warnings/boilerplate of simple test code
26760 ac_outfile=conftest.$ac_objext
26761 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26762 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
26763 _lt_compiler_boilerplate=`cat conftest.err`
26764 $rm conftest*
26765
26766 ac_outfile=conftest.$ac_objext
26767 printf "$lt_simple_link_test_code" >conftest.$ac_ext
26768 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
26769 _lt_linker_boilerplate=`cat conftest.err`
26770 $rm conftest*
26771
26772
26773 # Allow CC to be a program name with arguments.
26774 lt_save_CC="$CC"
26775 CC=${GCJ-"gcj"}
26776 compiler=$CC
26777 compiler_GCJ=$CC
26778 for cc_temp in $compiler""; do
26779   case $cc_temp in
26780     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26781     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26782     \-*) ;;
26783     *) break;;
26784   esac
26785 done
26786 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26787
26788
26789 # GCJ did not exist at the time GCC didn't implicitly link libc in.
26790 archive_cmds_need_lc_GCJ=no
26791
26792 old_archive_cmds_GCJ=$old_archive_cmds
26793
26794 ## CAVEAT EMPTOR:
26795 ## There is no encapsulation within the following macros, do not change
26796 ## the running order or otherwise move them around unless you know exactly
26797 ## what you are doing...
26798
26799 lt_prog_compiler_no_builtin_flag_GCJ=
26800
26801 if test "$GCC" = yes; then
26802   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
26803
26804
26805 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
26806 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
26807 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
26808   echo $ECHO_N "(cached) $ECHO_C" >&6
26809 else
26810   lt_cv_prog_compiler_rtti_exceptions=no
26811   ac_outfile=conftest.$ac_objext
26812    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
26813    lt_compiler_flag="-fno-rtti -fno-exceptions"
26814    # Insert the option either (1) after the last *FLAGS variable, or
26815    # (2) before a word containing "conftest.", or (3) at the end.
26816    # Note that $ac_compile itself does not contain backslashes and begins
26817    # with a dollar sign (not a hyphen), so the echo should work correctly.
26818    # The option is referenced via a variable to avoid confusing sed.
26819    lt_compile=`echo "$ac_compile" | $SED \
26820    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
26821    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
26822    -e 's:$: $lt_compiler_flag:'`
26823    (eval echo "\"\$as_me:26823: $lt_compile\"" >&5)
26824    (eval "$lt_compile" 2>conftest.err)
26825    ac_status=$?
26826    cat conftest.err >&5
26827    echo "$as_me:26827: \$? = $ac_status" >&5
26828    if (exit $ac_status) && test -s "$ac_outfile"; then
26829      # The compiler can only warn and ignore the option if not recognized
26830      # So say no if there are warnings other than the usual output.
26831      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
26832      $SED '/^$/d' conftest.err >conftest.er2
26833      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
26834        lt_cv_prog_compiler_rtti_exceptions=yes
26835      fi
26836    fi
26837    $rm conftest*
26838
26839 fi
26840 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
26841 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
26842
26843 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
26844     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
26845 else
26846     :
26847 fi
26848
26849 fi
26850
26851 lt_prog_compiler_wl_GCJ=
26852 lt_prog_compiler_pic_GCJ=
26853 lt_prog_compiler_static_GCJ=
26854
26855 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
26856 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
26857
26858   if test "$GCC" = yes; then
26859     lt_prog_compiler_wl_GCJ='-Wl,'
26860     lt_prog_compiler_static_GCJ='-static'
26861
26862     case $host_os in
26863       aix*)
26864       # All AIX code is PIC.
26865       if test "$host_cpu" = ia64; then
26866         # AIX 5 now supports IA64 processor
26867         lt_prog_compiler_static_GCJ='-Bstatic'
26868       fi
26869       ;;
26870
26871     amigaos*)
26872       # FIXME: we need at least 68020 code to build shared libraries, but
26873       # adding the `-m68020' flag to GCC prevents building anything better,
26874       # like `-m68040'.
26875       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
26876       ;;
26877
26878     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
26879       # PIC is the default for these OSes.
26880       ;;
26881
26882     mingw* | pw32* | os2*)
26883       # This hack is so that the source file can tell whether it is being
26884       # built for inclusion in a dll (and should export symbols for example).
26885       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
26886       ;;
26887
26888     darwin* | rhapsody*)
26889       # PIC is the default on this platform
26890       # Common symbols not allowed in MH_DYLIB files
26891       lt_prog_compiler_pic_GCJ='-fno-common'
26892       ;;
26893
26894     msdosdjgpp*)
26895       # Just because we use GCC doesn't mean we suddenly get shared libraries
26896       # on systems that don't support them.
26897       lt_prog_compiler_can_build_shared_GCJ=no
26898       enable_shared=no
26899       ;;
26900
26901     sysv4*MP*)
26902       if test -d /usr/nec; then
26903         lt_prog_compiler_pic_GCJ=-Kconform_pic
26904       fi
26905       ;;
26906
26907     hpux*)
26908       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
26909       # not for PA HP-UX.
26910       case $host_cpu in
26911       hppa*64*|ia64*)
26912         # +Z the default
26913         ;;
26914       *)
26915         lt_prog_compiler_pic_GCJ='-fPIC'
26916         ;;
26917       esac
26918       ;;
26919
26920     *)
26921       lt_prog_compiler_pic_GCJ='-fPIC'
26922       ;;
26923     esac
26924   else
26925     # PORTME Check for flag to pass linker flags through the system compiler.
26926     case $host_os in
26927     aix*)
26928       lt_prog_compiler_wl_GCJ='-Wl,'
26929       if test "$host_cpu" = ia64; then
26930         # AIX 5 now supports IA64 processor
26931         lt_prog_compiler_static_GCJ='-Bstatic'
26932       else
26933         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
26934       fi
26935       ;;
26936       darwin*)
26937         # PIC is the default on this platform
26938         # Common symbols not allowed in MH_DYLIB files
26939        case $cc_basename in
26940          xlc*)
26941          lt_prog_compiler_pic_GCJ='-qnocommon'
26942          lt_prog_compiler_wl_GCJ='-Wl,'
26943          ;;
26944        esac
26945        ;;
26946
26947     mingw* | pw32* | os2*)
26948       # This hack is so that the source file can tell whether it is being
26949       # built for inclusion in a dll (and should export symbols for example).
26950       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
26951       ;;
26952
26953     hpux9* | hpux10* | hpux11*)
26954       lt_prog_compiler_wl_GCJ='-Wl,'
26955       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
26956       # not for PA HP-UX.
26957       case $host_cpu in
26958       hppa*64*|ia64*)
26959         # +Z the default
26960         ;;
26961       *)
26962         lt_prog_compiler_pic_GCJ='+Z'
26963         ;;
26964       esac
26965       # Is there a better lt_prog_compiler_static that works with the bundled CC?
26966       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
26967       ;;
26968
26969     irix5* | irix6* | nonstopux*)
26970       lt_prog_compiler_wl_GCJ='-Wl,'
26971       # PIC (with -KPIC) is the default.
26972       lt_prog_compiler_static_GCJ='-non_shared'
26973       ;;
26974
26975     newsos6)
26976       lt_prog_compiler_pic_GCJ='-KPIC'
26977       lt_prog_compiler_static_GCJ='-Bstatic'
26978       ;;
26979
26980     linux*)
26981       case $cc_basename in
26982       icc* | ecc*)
26983         lt_prog_compiler_wl_GCJ='-Wl,'
26984         lt_prog_compiler_pic_GCJ='-KPIC'
26985         lt_prog_compiler_static_GCJ='-static'
26986         ;;
26987       pgcc* | pgf77* | pgf90* | pgf95*)
26988         # Portland Group compilers (*not* the Pentium gcc compiler,
26989         # which looks to be a dead project)
26990         lt_prog_compiler_wl_GCJ='-Wl,'
26991         lt_prog_compiler_pic_GCJ='-fpic'
26992         lt_prog_compiler_static_GCJ='-Bstatic'
26993         ;;
26994       ccc*)
26995         lt_prog_compiler_wl_GCJ='-Wl,'
26996         # All Alpha code is PIC.
26997         lt_prog_compiler_static_GCJ='-non_shared'
26998         ;;
26999       esac
27000       ;;
27001
27002     osf3* | osf4* | osf5*)
27003       lt_prog_compiler_wl_GCJ='-Wl,'
27004       # All OSF/1 code is PIC.
27005       lt_prog_compiler_static_GCJ='-non_shared'
27006       ;;
27007
27008     sco3.2v5*)
27009       lt_prog_compiler_pic_GCJ='-Kpic'
27010       lt_prog_compiler_static_GCJ='-dn'
27011       ;;
27012
27013     solaris*)
27014       lt_prog_compiler_pic_GCJ='-KPIC'
27015       lt_prog_compiler_static_GCJ='-Bstatic'
27016       case $cc_basename in
27017       f77* | f90* | f95*)
27018         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
27019       *)
27020         lt_prog_compiler_wl_GCJ='-Wl,';;
27021       esac
27022       ;;
27023
27024     sunos4*)
27025       lt_prog_compiler_wl_GCJ='-Qoption ld '
27026       lt_prog_compiler_pic_GCJ='-PIC'
27027       lt_prog_compiler_static_GCJ='-Bstatic'
27028       ;;
27029
27030     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
27031       lt_prog_compiler_wl_GCJ='-Wl,'
27032       lt_prog_compiler_pic_GCJ='-KPIC'
27033       lt_prog_compiler_static_GCJ='-Bstatic'
27034       ;;
27035
27036     sysv4*MP*)
27037       if test -d /usr/nec ;then
27038         lt_prog_compiler_pic_GCJ='-Kconform_pic'
27039         lt_prog_compiler_static_GCJ='-Bstatic'
27040       fi
27041       ;;
27042
27043     unicos*)
27044       lt_prog_compiler_wl_GCJ='-Wl,'
27045       lt_prog_compiler_can_build_shared_GCJ=no
27046       ;;
27047
27048     uts4*)
27049       lt_prog_compiler_pic_GCJ='-pic'
27050       lt_prog_compiler_static_GCJ='-Bstatic'
27051       ;;
27052
27053     *)
27054       lt_prog_compiler_can_build_shared_GCJ=no
27055       ;;
27056     esac
27057   fi
27058
27059 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
27060 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
27061
27062 #
27063 # Check to make sure the PIC flag actually works.
27064 #
27065 if test -n "$lt_prog_compiler_pic_GCJ"; then
27066
27067 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
27068 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
27069 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
27070   echo $ECHO_N "(cached) $ECHO_C" >&6
27071 else
27072   lt_prog_compiler_pic_works_GCJ=no
27073   ac_outfile=conftest.$ac_objext
27074    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
27075    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
27076    # Insert the option either (1) after the last *FLAGS variable, or
27077    # (2) before a word containing "conftest.", or (3) at the end.
27078    # Note that $ac_compile itself does not contain backslashes and begins
27079    # with a dollar sign (not a hyphen), so the echo should work correctly.
27080    # The option is referenced via a variable to avoid confusing sed.
27081    lt_compile=`echo "$ac_compile" | $SED \
27082    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
27083    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
27084    -e 's:$: $lt_compiler_flag:'`
27085    (eval echo "\"\$as_me:27085: $lt_compile\"" >&5)
27086    (eval "$lt_compile" 2>conftest.err)
27087    ac_status=$?
27088    cat conftest.err >&5
27089    echo "$as_me:27089: \$? = $ac_status" >&5
27090    if (exit $ac_status) && test -s "$ac_outfile"; then
27091      # The compiler can only warn and ignore the option if not recognized
27092      # So say no if there are warnings other than the usual output.
27093      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
27094      $SED '/^$/d' conftest.err >conftest.er2
27095      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
27096        lt_prog_compiler_pic_works_GCJ=yes
27097      fi
27098    fi
27099    $rm conftest*
27100
27101 fi
27102 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
27103 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
27104
27105 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
27106     case $lt_prog_compiler_pic_GCJ in
27107      "" | " "*) ;;
27108      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
27109      esac
27110 else
27111     lt_prog_compiler_pic_GCJ=
27112      lt_prog_compiler_can_build_shared_GCJ=no
27113 fi
27114
27115 fi
27116 case $host_os in
27117   # For platforms which do not support PIC, -DPIC is meaningless:
27118   *djgpp*)
27119     lt_prog_compiler_pic_GCJ=
27120     ;;
27121   *)
27122     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
27123     ;;
27124 esac
27125
27126 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
27127 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
27128 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
27129   echo $ECHO_N "(cached) $ECHO_C" >&6
27130 else
27131   lt_cv_prog_compiler_c_o_GCJ=no
27132    $rm -r conftest 2>/dev/null
27133    mkdir conftest
27134    cd conftest
27135    mkdir out
27136    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
27137
27138    lt_compiler_flag="-o out/conftest2.$ac_objext"
27139    # Insert the option either (1) after the last *FLAGS variable, or
27140    # (2) before a word containing "conftest.", or (3) at the end.
27141    # Note that $ac_compile itself does not contain backslashes and begins
27142    # with a dollar sign (not a hyphen), so the echo should work correctly.
27143    lt_compile=`echo "$ac_compile" | $SED \
27144    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
27145    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
27146    -e 's:$: $lt_compiler_flag:'`
27147    (eval echo "\"\$as_me:27147: $lt_compile\"" >&5)
27148    (eval "$lt_compile" 2>out/conftest.err)
27149    ac_status=$?
27150    cat out/conftest.err >&5
27151    echo "$as_me:27151: \$? = $ac_status" >&5
27152    if (exit $ac_status) && test -s out/conftest2.$ac_objext
27153    then
27154      # The compiler can only warn and ignore the option if not recognized
27155      # So say no if there are warnings
27156      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
27157      $SED '/^$/d' out/conftest.err >out/conftest.er2
27158      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
27159        lt_cv_prog_compiler_c_o_GCJ=yes
27160      fi
27161    fi
27162    chmod u+w . 2>&5
27163    $rm conftest*
27164    # SGI C++ compiler will create directory out/ii_files/ for
27165    # template instantiation
27166    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
27167    $rm out/* && rmdir out
27168    cd ..
27169    rmdir conftest
27170    $rm conftest*
27171
27172 fi
27173 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
27174 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
27175
27176
27177 hard_links="nottested"
27178 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
27179   # do not overwrite the value of need_locks provided by the user
27180   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
27181 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
27182   hard_links=yes
27183   $rm conftest*
27184   ln conftest.a conftest.b 2>/dev/null && hard_links=no
27185   touch conftest.a
27186   ln conftest.a conftest.b 2>&5 || hard_links=no
27187   ln conftest.a conftest.b 2>/dev/null && hard_links=no
27188   echo "$as_me:$LINENO: result: $hard_links" >&5
27189 echo "${ECHO_T}$hard_links" >&6
27190   if test "$hard_links" = no; then
27191     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
27192 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
27193     need_locks=warn
27194   fi
27195 else
27196   need_locks=no
27197 fi
27198
27199 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
27200 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
27201
27202   runpath_var=
27203   allow_undefined_flag_GCJ=
27204   enable_shared_with_static_runtimes_GCJ=no
27205   archive_cmds_GCJ=
27206   archive_expsym_cmds_GCJ=
27207   old_archive_From_new_cmds_GCJ=
27208   old_archive_from_expsyms_cmds_GCJ=
27209   export_dynamic_flag_spec_GCJ=
27210   whole_archive_flag_spec_GCJ=
27211   thread_safe_flag_spec_GCJ=
27212   hardcode_libdir_flag_spec_GCJ=
27213   hardcode_libdir_flag_spec_ld_GCJ=
27214   hardcode_libdir_separator_GCJ=
27215   hardcode_direct_GCJ=no
27216   hardcode_minus_L_GCJ=no
27217   hardcode_shlibpath_var_GCJ=unsupported
27218   link_all_deplibs_GCJ=unknown
27219   hardcode_automatic_GCJ=no
27220   module_cmds_GCJ=
27221   module_expsym_cmds_GCJ=
27222   always_export_symbols_GCJ=no
27223   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
27224   # include_expsyms should be a list of space-separated symbols to be *always*
27225   # included in the symbol list
27226   include_expsyms_GCJ=
27227   # exclude_expsyms can be an extended regexp of symbols to exclude
27228   # it will be wrapped by ` (' and `)$', so one must not match beginning or
27229   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
27230   # as well as any symbol that contains `d'.
27231   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
27232   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
27233   # platforms (ab)use it in PIC code, but their linkers get confused if
27234   # the symbol is explicitly referenced.  Since portable code cannot
27235   # rely on this symbol name, it's probably fine to never include it in
27236   # preloaded symbol tables.
27237   extract_expsyms_cmds=
27238   # Just being paranoid about ensuring that cc_basename is set.
27239   for cc_temp in $compiler""; do
27240   case $cc_temp in
27241     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
27242     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
27243     \-*) ;;
27244     *) break;;
27245   esac
27246 done
27247 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
27248
27249   case $host_os in
27250   cygwin* | mingw* | pw32*)
27251     # FIXME: the MSVC++ port hasn't been tested in a loooong time
27252     # When not using gcc, we currently assume that we are using
27253     # Microsoft Visual C++.
27254     if test "$GCC" != yes; then
27255       with_gnu_ld=no
27256     fi
27257     ;;
27258   openbsd*)
27259     with_gnu_ld=no
27260     ;;
27261   esac
27262
27263   ld_shlibs_GCJ=yes
27264   if test "$with_gnu_ld" = yes; then
27265     # If archive_cmds runs LD, not CC, wlarc should be empty
27266     wlarc='${wl}'
27267
27268     # Set some defaults for GNU ld with shared library support. These
27269     # are reset later if shared libraries are not supported. Putting them
27270     # here allows them to be overridden if necessary.
27271     runpath_var=LD_RUN_PATH
27272     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
27273     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
27274     # ancient GNU ld didn't support --whole-archive et. al.
27275     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
27276         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
27277       else
27278         whole_archive_flag_spec_GCJ=
27279     fi
27280     supports_anon_versioning=no
27281     case `$LD -v 2>/dev/null` in
27282       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
27283       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
27284       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
27285       *\ 2.11.*) ;; # other 2.11 versions
27286       *) supports_anon_versioning=yes ;;
27287     esac
27288
27289     # See if GNU ld supports shared libraries.
27290     case $host_os in
27291     aix3* | aix4* | aix5*)
27292       # On AIX/PPC, the GNU linker is very broken
27293       if test "$host_cpu" != ia64; then
27294         ld_shlibs_GCJ=no
27295         cat <<EOF 1>&2
27296
27297 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
27298 *** to be unable to reliably create shared libraries on AIX.
27299 *** Therefore, libtool is disabling shared libraries support.  If you
27300 *** really care for shared libraries, you may want to modify your PATH
27301 *** so that a non-GNU linker is found, and then restart.
27302
27303 EOF
27304       fi
27305       ;;
27306
27307     amigaos*)
27308       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)'
27309       hardcode_libdir_flag_spec_GCJ='-L$libdir'
27310       hardcode_minus_L_GCJ=yes
27311
27312       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
27313       # that the semantics of dynamic libraries on AmigaOS, at least up
27314       # to version 4, is to share data among multiple programs linked
27315       # with the same dynamic library.  Since this doesn't match the
27316       # behavior of shared libraries on other platforms, we can't use
27317       # them.
27318       ld_shlibs_GCJ=no
27319       ;;
27320
27321     beos*)
27322       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
27323         allow_undefined_flag_GCJ=unsupported
27324         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
27325         # support --undefined.  This deserves some investigation.  FIXME
27326         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
27327       else
27328         ld_shlibs_GCJ=no
27329       fi
27330       ;;
27331
27332     cygwin* | mingw* | pw32*)
27333       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
27334       # as there is no search path for DLLs.
27335       hardcode_libdir_flag_spec_GCJ='-L$libdir'
27336       allow_undefined_flag_GCJ=unsupported
27337       always_export_symbols_GCJ=no
27338       enable_shared_with_static_runtimes_GCJ=yes
27339       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
27340
27341       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
27342         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
27343         # If the export-symbols file already is a .def file (1st line
27344         # is EXPORTS), use it as is; otherwise, prepend...
27345         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
27346           cp $export_symbols $output_objdir/$soname.def;
27347         else
27348           echo EXPORTS > $output_objdir/$soname.def;
27349           cat $export_symbols >> $output_objdir/$soname.def;
27350         fi~
27351         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
27352       else
27353         ld_shlibs_GCJ=no
27354       fi
27355       ;;
27356
27357     linux*)
27358       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
27359         tmp_addflag=
27360         case $cc_basename,$host_cpu in
27361         pgcc*)                          # Portland Group C compiler
27362           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'
27363           tmp_addflag=' $pic_flag'
27364           ;;
27365         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
27366           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'
27367           tmp_addflag=' $pic_flag -Mnomain' ;;
27368         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
27369           tmp_addflag=' -i_dynamic' ;;
27370         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
27371           tmp_addflag=' -i_dynamic -nofor_main' ;;
27372         ifc* | ifort*)                  # Intel Fortran compiler
27373           tmp_addflag=' -nofor_main' ;;
27374         esac
27375         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
27376
27377         if test $supports_anon_versioning = yes; then
27378           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
27379   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
27380   $echo "local: *; };" >> $output_objdir/$libname.ver~
27381           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
27382         fi
27383       else
27384         ld_shlibs_GCJ=no
27385       fi
27386       ;;
27387
27388     netbsd*)
27389       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
27390         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
27391         wlarc=
27392       else
27393         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
27394         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
27395       fi
27396       ;;
27397
27398     solaris* | sysv5*)
27399       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
27400         ld_shlibs_GCJ=no
27401         cat <<EOF 1>&2
27402
27403 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
27404 *** create shared libraries on Solaris systems.  Therefore, libtool
27405 *** is disabling shared libraries support.  We urge you to upgrade GNU
27406 *** binutils to release 2.9.1 or newer.  Another option is to modify
27407 *** your PATH or compiler configuration so that the native linker is
27408 *** used, and then restart.
27409
27410 EOF
27411       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
27412         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
27413         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
27414       else
27415         ld_shlibs_GCJ=no
27416       fi
27417       ;;
27418
27419     sunos4*)
27420       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
27421       wlarc=
27422       hardcode_direct_GCJ=yes
27423       hardcode_shlibpath_var_GCJ=no
27424       ;;
27425
27426     *)
27427       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
27428         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
27429         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
27430       else
27431         ld_shlibs_GCJ=no
27432       fi
27433       ;;
27434     esac
27435
27436     if test "$ld_shlibs_GCJ" = no; then
27437       runpath_var=
27438       hardcode_libdir_flag_spec_GCJ=
27439       export_dynamic_flag_spec_GCJ=
27440       whole_archive_flag_spec_GCJ=
27441     fi
27442   else
27443     # PORTME fill in a description of your system's linker (not GNU ld)
27444     case $host_os in
27445     aix3*)
27446       allow_undefined_flag_GCJ=unsupported
27447       always_export_symbols_GCJ=yes
27448       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'
27449       # Note: this linker hardcodes the directories in LIBPATH if there
27450       # are no directories specified by -L.
27451       hardcode_minus_L_GCJ=yes
27452       if test "$GCC" = yes && test -z "$link_static_flag"; then
27453         # Neither direct hardcoding nor static linking is supported with a
27454         # broken collect2.
27455         hardcode_direct_GCJ=unsupported
27456       fi
27457       ;;
27458
27459     aix4* | aix5*)
27460       if test "$host_cpu" = ia64; then
27461         # On IA64, the linker does run time linking by default, so we don't
27462         # have to do anything special.
27463         aix_use_runtimelinking=no
27464         exp_sym_flag='-Bexport'
27465         no_entry_flag=""
27466       else
27467         # If we're using GNU nm, then we don't want the "-C" option.
27468         # -C means demangle to AIX nm, but means don't demangle with GNU nm
27469         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
27470           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'
27471         else
27472           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'
27473         fi
27474         aix_use_runtimelinking=no
27475
27476         # Test if we are trying to use run time linking or normal
27477         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
27478         # need to do runtime linking.
27479         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
27480           for ld_flag in $LDFLAGS; do
27481           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
27482             aix_use_runtimelinking=yes
27483             break
27484           fi
27485           done
27486         esac
27487
27488         exp_sym_flag='-bexport'
27489         no_entry_flag='-bnoentry'
27490       fi
27491
27492       # When large executables or shared objects are built, AIX ld can
27493       # have problems creating the table of contents.  If linking a library
27494       # or program results in "error TOC overflow" add -mminimal-toc to
27495       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
27496       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
27497
27498       archive_cmds_GCJ=''
27499       hardcode_direct_GCJ=yes
27500       hardcode_libdir_separator_GCJ=':'
27501       link_all_deplibs_GCJ=yes
27502
27503       if test "$GCC" = yes; then
27504         case $host_os in aix4.[012]|aix4.[012].*)
27505         # We only want to do this on AIX 4.2 and lower, the check
27506         # below for broken collect2 doesn't work under 4.3+
27507           collect2name=`${CC} -print-prog-name=collect2`
27508           if test -f "$collect2name" && \
27509            strings "$collect2name" | grep resolve_lib_name >/dev/null
27510           then
27511           # We have reworked collect2
27512           hardcode_direct_GCJ=yes
27513           else
27514           # We have old collect2
27515           hardcode_direct_GCJ=unsupported
27516           # It fails to find uninstalled libraries when the uninstalled
27517           # path is not listed in the libpath.  Setting hardcode_minus_L
27518           # to unsupported forces relinking
27519           hardcode_minus_L_GCJ=yes
27520           hardcode_libdir_flag_spec_GCJ='-L$libdir'
27521           hardcode_libdir_separator_GCJ=
27522           fi
27523         esac
27524         shared_flag='-shared'
27525         if test "$aix_use_runtimelinking" = yes; then
27526           shared_flag="$shared_flag "'${wl}-G'
27527         fi
27528       else
27529         # not using gcc
27530         if test "$host_cpu" = ia64; then
27531         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
27532         # chokes on -Wl,-G. The following line is correct:
27533           shared_flag='-G'
27534         else
27535         if test "$aix_use_runtimelinking" = yes; then
27536             shared_flag='${wl}-G'
27537           else
27538             shared_flag='${wl}-bM:SRE'
27539         fi
27540         fi
27541       fi
27542
27543       # It seems that -bexpall does not export symbols beginning with
27544       # underscore (_), so it is better to generate a list of symbols to export.
27545       always_export_symbols_GCJ=yes
27546       if test "$aix_use_runtimelinking" = yes; then
27547         # Warning - without using the other runtime loading flags (-brtl),
27548         # -berok will link without error, but may produce a broken library.
27549         allow_undefined_flag_GCJ='-berok'
27550        # Determine the default libpath from the value encoded in an empty executable.
27551        cat >conftest.$ac_ext <<_ACEOF
27552 /* confdefs.h.  */
27553 _ACEOF
27554 cat confdefs.h >>conftest.$ac_ext
27555 cat >>conftest.$ac_ext <<_ACEOF
27556 /* end confdefs.h.  */
27557
27558 int
27559 main ()
27560 {
27561
27562   ;
27563   return 0;
27564 }
27565 _ACEOF
27566 rm -f conftest.$ac_objext conftest$ac_exeext
27567 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27568   (eval $ac_link) 2>conftest.er1
27569   ac_status=$?
27570   grep -v '^ *+' conftest.er1 >conftest.err
27571   rm -f conftest.er1
27572   cat conftest.err >&5
27573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27574   (exit $ac_status); } &&
27575          { ac_try='test -z "$ac_c_werror_flag"
27576                          || test ! -s conftest.err'
27577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27578   (eval $ac_try) 2>&5
27579   ac_status=$?
27580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27581   (exit $ac_status); }; } &&
27582          { ac_try='test -s conftest$ac_exeext'
27583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27584   (eval $ac_try) 2>&5
27585   ac_status=$?
27586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27587   (exit $ac_status); }; }; then
27588
27589 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
27590 }'`
27591 # Check for a 64-bit object if we didn't find anything.
27592 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; }
27593 }'`; fi
27594 else
27595   echo "$as_me: failed program was:" >&5
27596 sed 's/^/| /' conftest.$ac_ext >&5
27597
27598 fi
27599 rm -f conftest.err conftest.$ac_objext \
27600       conftest$ac_exeext conftest.$ac_ext
27601 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
27602
27603        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
27604         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"
27605        else
27606         if test "$host_cpu" = ia64; then
27607           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
27608           allow_undefined_flag_GCJ="-z nodefs"
27609           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"
27610         else
27611          # Determine the default libpath from the value encoded in an empty executable.
27612          cat >conftest.$ac_ext <<_ACEOF
27613 /* confdefs.h.  */
27614 _ACEOF
27615 cat confdefs.h >>conftest.$ac_ext
27616 cat >>conftest.$ac_ext <<_ACEOF
27617 /* end confdefs.h.  */
27618
27619 int
27620 main ()
27621 {
27622
27623   ;
27624   return 0;
27625 }
27626 _ACEOF
27627 rm -f conftest.$ac_objext conftest$ac_exeext
27628 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27629   (eval $ac_link) 2>conftest.er1
27630   ac_status=$?
27631   grep -v '^ *+' conftest.er1 >conftest.err
27632   rm -f conftest.er1
27633   cat conftest.err >&5
27634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27635   (exit $ac_status); } &&
27636          { ac_try='test -z "$ac_c_werror_flag"
27637                          || test ! -s conftest.err'
27638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27639   (eval $ac_try) 2>&5
27640   ac_status=$?
27641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27642   (exit $ac_status); }; } &&
27643          { ac_try='test -s conftest$ac_exeext'
27644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27645   (eval $ac_try) 2>&5
27646   ac_status=$?
27647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27648   (exit $ac_status); }; }; then
27649
27650 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
27651 }'`
27652 # Check for a 64-bit object if we didn't find anything.
27653 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; }
27654 }'`; fi
27655 else
27656   echo "$as_me: failed program was:" >&5
27657 sed 's/^/| /' conftest.$ac_ext >&5
27658
27659 fi
27660 rm -f conftest.err conftest.$ac_objext \
27661       conftest$ac_exeext conftest.$ac_ext
27662 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
27663
27664          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
27665           # Warning - without using the other run time loading flags,
27666           # -berok will link without error, but may produce a broken library.
27667           no_undefined_flag_GCJ=' ${wl}-bernotok'
27668           allow_undefined_flag_GCJ=' ${wl}-berok'
27669           # -bexpall does not export symbols beginning with underscore (_)
27670           always_export_symbols_GCJ=yes
27671           # Exported symbols can be pulled into shared objects from archives
27672           whole_archive_flag_spec_GCJ=' '
27673           archive_cmds_need_lc_GCJ=yes
27674           # This is similar to how AIX traditionally builds its shared libraries.
27675           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'
27676         fi
27677       fi
27678       ;;
27679
27680     amigaos*)
27681       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)'
27682       hardcode_libdir_flag_spec_GCJ='-L$libdir'
27683       hardcode_minus_L_GCJ=yes
27684       # see comment about different semantics on the GNU ld section
27685       ld_shlibs_GCJ=no
27686       ;;
27687
27688     bsdi[45]*)
27689       export_dynamic_flag_spec_GCJ=-rdynamic
27690       ;;
27691
27692     cygwin* | mingw* | pw32*)
27693       # When not using gcc, we currently assume that we are using
27694       # Microsoft Visual C++.
27695       # hardcode_libdir_flag_spec is actually meaningless, as there is
27696       # no search path for DLLs.
27697       hardcode_libdir_flag_spec_GCJ=' '
27698       allow_undefined_flag_GCJ=unsupported
27699       # Tell ltmain to make .lib files, not .a files.
27700       libext=lib
27701       # Tell ltmain to make .dll files, not .so files.
27702       shrext_cmds=".dll"
27703       # FIXME: Setting linknames here is a bad hack.
27704       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
27705       # The linker will automatically build a .lib file if we build a DLL.
27706       old_archive_From_new_cmds_GCJ='true'
27707       # FIXME: Should let the user specify the lib program.
27708       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
27709       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
27710       enable_shared_with_static_runtimes_GCJ=yes
27711       ;;
27712
27713     darwin* | rhapsody*)
27714       case $host_os in
27715         rhapsody* | darwin1.[012])
27716          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
27717          ;;
27718        *) # Darwin 1.3 on
27719          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
27720            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
27721          else
27722            case ${MACOSX_DEPLOYMENT_TARGET} in
27723              10.[012])
27724                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
27725                ;;
27726              10.*)
27727                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
27728                ;;
27729            esac
27730          fi
27731          ;;
27732       esac
27733       archive_cmds_need_lc_GCJ=no
27734       hardcode_direct_GCJ=no
27735       hardcode_automatic_GCJ=yes
27736       hardcode_shlibpath_var_GCJ=unsupported
27737       whole_archive_flag_spec_GCJ=''
27738       link_all_deplibs_GCJ=yes
27739     if test "$GCC" = yes ; then
27740         output_verbose_link_cmd='echo'
27741         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
27742       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
27743       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
27744       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}'
27745       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}'
27746     else
27747       case $cc_basename in
27748         xlc*)
27749          output_verbose_link_cmd='echo'
27750          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
27751          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
27752           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
27753          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}'
27754           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}'
27755           ;;
27756        *)
27757          ld_shlibs_GCJ=no
27758           ;;
27759       esac
27760     fi
27761       ;;
27762
27763     dgux*)
27764       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
27765       hardcode_libdir_flag_spec_GCJ='-L$libdir'
27766       hardcode_shlibpath_var_GCJ=no
27767       ;;
27768
27769     freebsd1*)
27770       ld_shlibs_GCJ=no
27771       ;;
27772
27773     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
27774     # support.  Future versions do this automatically, but an explicit c++rt0.o
27775     # does not break anything, and helps significantly (at the cost of a little
27776     # extra space).
27777     freebsd2.2*)
27778       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
27779       hardcode_libdir_flag_spec_GCJ='-R$libdir'
27780       hardcode_direct_GCJ=yes
27781       hardcode_shlibpath_var_GCJ=no
27782       ;;
27783
27784     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
27785     freebsd2*)
27786       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
27787       hardcode_direct_GCJ=yes
27788       hardcode_minus_L_GCJ=yes
27789       hardcode_shlibpath_var_GCJ=no
27790       ;;
27791
27792     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
27793     freebsd* | kfreebsd*-gnu | dragonfly*)
27794       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
27795       hardcode_libdir_flag_spec_GCJ='-R$libdir'
27796       hardcode_direct_GCJ=yes
27797       hardcode_shlibpath_var_GCJ=no
27798       ;;
27799
27800     hpux9*)
27801       if test "$GCC" = yes; then
27802         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'
27803       else
27804         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'
27805       fi
27806       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
27807       hardcode_libdir_separator_GCJ=:
27808       hardcode_direct_GCJ=yes
27809
27810       # hardcode_minus_L: Not really in the search PATH,
27811       # but as the default location of the library.
27812       hardcode_minus_L_GCJ=yes
27813       export_dynamic_flag_spec_GCJ='${wl}-E'
27814       ;;
27815
27816     hpux10* | hpux11*)
27817       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
27818         case $host_cpu in
27819         hppa*64*|ia64*)
27820           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
27821           ;;
27822         *)
27823           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
27824           ;;
27825         esac
27826       else
27827         case $host_cpu in
27828         hppa*64*|ia64*)
27829           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
27830           ;;
27831         *)
27832           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
27833           ;;
27834         esac
27835       fi
27836       if test "$with_gnu_ld" = no; then
27837         case $host_cpu in
27838         hppa*64*)
27839           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
27840           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
27841           hardcode_libdir_separator_GCJ=:
27842           hardcode_direct_GCJ=no
27843           hardcode_shlibpath_var_GCJ=no
27844           ;;
27845         ia64*)
27846           hardcode_libdir_flag_spec_GCJ='-L$libdir'
27847           hardcode_direct_GCJ=no
27848           hardcode_shlibpath_var_GCJ=no
27849
27850           # hardcode_minus_L: Not really in the search PATH,
27851           # but as the default location of the library.
27852           hardcode_minus_L_GCJ=yes
27853           ;;
27854         *)
27855           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
27856           hardcode_libdir_separator_GCJ=:
27857           hardcode_direct_GCJ=yes
27858           export_dynamic_flag_spec_GCJ='${wl}-E'
27859
27860           # hardcode_minus_L: Not really in the search PATH,
27861           # but as the default location of the library.
27862           hardcode_minus_L_GCJ=yes
27863           ;;
27864         esac
27865       fi
27866       ;;
27867
27868     irix5* | irix6* | nonstopux*)
27869       if test "$GCC" = yes; then
27870         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'
27871       else
27872         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'
27873         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
27874       fi
27875       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
27876       hardcode_libdir_separator_GCJ=:
27877       link_all_deplibs_GCJ=yes
27878       ;;
27879
27880     netbsd*)
27881       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
27882         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
27883       else
27884         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
27885       fi
27886       hardcode_libdir_flag_spec_GCJ='-R$libdir'
27887       hardcode_direct_GCJ=yes
27888       hardcode_shlibpath_var_GCJ=no
27889       ;;
27890
27891     newsos6)
27892       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
27893       hardcode_direct_GCJ=yes
27894       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
27895       hardcode_libdir_separator_GCJ=:
27896       hardcode_shlibpath_var_GCJ=no
27897       ;;
27898
27899     openbsd*)
27900       hardcode_direct_GCJ=yes
27901       hardcode_shlibpath_var_GCJ=no
27902       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
27903         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
27904         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
27905         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
27906         export_dynamic_flag_spec_GCJ='${wl}-E'
27907       else
27908        case $host_os in
27909          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
27910            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
27911            hardcode_libdir_flag_spec_GCJ='-R$libdir'
27912            ;;
27913          *)
27914            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
27915            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
27916            ;;
27917        esac
27918       fi
27919       ;;
27920
27921     os2*)
27922       hardcode_libdir_flag_spec_GCJ='-L$libdir'
27923       hardcode_minus_L_GCJ=yes
27924       allow_undefined_flag_GCJ=unsupported
27925       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'
27926       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
27927       ;;
27928
27929     osf3*)
27930       if test "$GCC" = yes; then
27931         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
27932         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'
27933       else
27934         allow_undefined_flag_GCJ=' -expect_unresolved \*'
27935         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'
27936       fi
27937       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
27938       hardcode_libdir_separator_GCJ=:
27939       ;;
27940
27941     osf4* | osf5*)      # as osf3* with the addition of -msym flag
27942       if test "$GCC" = yes; then
27943         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
27944         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'
27945         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
27946       else
27947         allow_undefined_flag_GCJ=' -expect_unresolved \*'
27948         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'
27949         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~
27950         $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'
27951
27952         # Both c and cxx compiler support -rpath directly
27953         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
27954       fi
27955       hardcode_libdir_separator_GCJ=:
27956       ;;
27957
27958     sco3.2v5*)
27959       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
27960       hardcode_shlibpath_var_GCJ=no
27961       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
27962       runpath_var=LD_RUN_PATH
27963       hardcode_runpath_var=yes
27964       ;;
27965
27966     solaris*)
27967       no_undefined_flag_GCJ=' -z text'
27968       if test "$GCC" = yes; then
27969         wlarc='${wl}'
27970         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
27971         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
27972           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
27973       else
27974         wlarc=''
27975         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
27976         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
27977         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
27978       fi
27979       hardcode_libdir_flag_spec_GCJ='-R$libdir'
27980       hardcode_shlibpath_var_GCJ=no
27981       case $host_os in
27982       solaris2.[0-5] | solaris2.[0-5].*) ;;
27983       *)
27984         # The compiler driver will combine linker options so we
27985         # cannot just pass the convience library names through
27986         # without $wl, iff we do not link with $LD.
27987         # Luckily, gcc supports the same syntax we need for Sun Studio.
27988         # Supported since Solaris 2.6 (maybe 2.5.1?)
27989         case $wlarc in
27990         '')
27991           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
27992         *)
27993           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' ;;
27994         esac ;;
27995       esac
27996       link_all_deplibs_GCJ=yes
27997       ;;
27998
27999     sunos4*)
28000       if test "x$host_vendor" = xsequent; then
28001         # Use $CC to link under sequent, because it throws in some extra .o
28002         # files that make .init and .fini sections work.
28003         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
28004       else
28005         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
28006       fi
28007       hardcode_libdir_flag_spec_GCJ='-L$libdir'
28008       hardcode_direct_GCJ=yes
28009       hardcode_minus_L_GCJ=yes
28010       hardcode_shlibpath_var_GCJ=no
28011       ;;
28012
28013     sysv4)
28014       case $host_vendor in
28015         sni)
28016           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
28017           hardcode_direct_GCJ=yes # is this really true???
28018         ;;
28019         siemens)
28020           ## LD is ld it makes a PLAMLIB
28021           ## CC just makes a GrossModule.
28022           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
28023           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
28024           hardcode_direct_GCJ=no
28025         ;;
28026         motorola)
28027           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
28028           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
28029         ;;
28030       esac
28031       runpath_var='LD_RUN_PATH'
28032       hardcode_shlibpath_var_GCJ=no
28033       ;;
28034
28035     sysv4.3*)
28036       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
28037       hardcode_shlibpath_var_GCJ=no
28038       export_dynamic_flag_spec_GCJ='-Bexport'
28039       ;;
28040
28041     sysv4*MP*)
28042       if test -d /usr/nec; then
28043         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
28044         hardcode_shlibpath_var_GCJ=no
28045         runpath_var=LD_RUN_PATH
28046         hardcode_runpath_var=yes
28047         ld_shlibs_GCJ=yes
28048       fi
28049       ;;
28050
28051     sysv4.2uw2*)
28052       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
28053       hardcode_direct_GCJ=yes
28054       hardcode_minus_L_GCJ=no
28055       hardcode_shlibpath_var_GCJ=no
28056       hardcode_runpath_var=yes
28057       runpath_var=LD_RUN_PATH
28058       ;;
28059
28060    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
28061       no_undefined_flag_GCJ='${wl}-z ${wl}text'
28062       if test "$GCC" = yes; then
28063         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
28064       else
28065         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
28066       fi
28067       runpath_var='LD_RUN_PATH'
28068       hardcode_shlibpath_var_GCJ=no
28069       ;;
28070
28071     sysv5*)
28072       no_undefined_flag_GCJ=' -z text'
28073       # $CC -shared without GNU ld will not create a library from C++
28074       # object files and a static libstdc++, better avoid it by now
28075       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
28076       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
28077                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
28078       hardcode_libdir_flag_spec_GCJ=
28079       hardcode_shlibpath_var_GCJ=no
28080       runpath_var='LD_RUN_PATH'
28081       ;;
28082
28083     uts4*)
28084       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
28085       hardcode_libdir_flag_spec_GCJ='-L$libdir'
28086       hardcode_shlibpath_var_GCJ=no
28087       ;;
28088
28089     *)
28090       ld_shlibs_GCJ=no
28091       ;;
28092     esac
28093   fi
28094
28095 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
28096 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
28097 test "$ld_shlibs_GCJ" = no && can_build_shared=no
28098
28099 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
28100 if test "$GCC" = yes; then
28101   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
28102 fi
28103
28104 #
28105 # Do we need to explicitly link libc?
28106 #
28107 case "x$archive_cmds_need_lc_GCJ" in
28108 x|xyes)
28109   # Assume -lc should be added
28110   archive_cmds_need_lc_GCJ=yes
28111
28112   if test "$enable_shared" = yes && test "$GCC" = yes; then
28113     case $archive_cmds_GCJ in
28114     *'~'*)
28115       # FIXME: we may have to deal with multi-command sequences.
28116       ;;
28117     '$CC '*)
28118       # Test whether the compiler implicitly links with -lc since on some
28119       # systems, -lgcc has to come before -lc. If gcc already passes -lc
28120       # to ld, don't add -lc before -lgcc.
28121       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
28122 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
28123       $rm conftest*
28124       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
28125
28126       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28127   (eval $ac_compile) 2>&5
28128   ac_status=$?
28129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28130   (exit $ac_status); } 2>conftest.err; then
28131         soname=conftest
28132         lib=conftest
28133         libobjs=conftest.$ac_objext
28134         deplibs=
28135         wl=$lt_prog_compiler_wl_GCJ
28136         compiler_flags=-v
28137         linker_flags=-v
28138         verstring=
28139         output_objdir=.
28140         libname=conftest
28141         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
28142         allow_undefined_flag_GCJ=
28143         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
28144   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
28145   ac_status=$?
28146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28147   (exit $ac_status); }
28148         then
28149           archive_cmds_need_lc_GCJ=no
28150         else
28151           archive_cmds_need_lc_GCJ=yes
28152         fi
28153         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
28154       else
28155         cat conftest.err 1>&5
28156       fi
28157       $rm conftest*
28158       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
28159 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
28160       ;;
28161     esac
28162   fi
28163   ;;
28164 esac
28165
28166 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
28167 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
28168 library_names_spec=
28169 libname_spec='lib$name'
28170 soname_spec=
28171 shrext_cmds=".so"
28172 postinstall_cmds=
28173 postuninstall_cmds=
28174 finish_cmds=
28175 finish_eval=
28176 shlibpath_var=
28177 shlibpath_overrides_runpath=unknown
28178 version_type=none
28179 dynamic_linker="$host_os ld.so"
28180 sys_lib_dlsearch_path_spec="/lib /usr/lib"
28181 if test "$GCC" = yes; then
28182   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
28183   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
28184     # if the path contains ";" then we assume it to be the separator
28185     # otherwise default to the standard path separator (i.e. ":") - it is
28186     # assumed that no part of a normal pathname contains ";" but that should
28187     # okay in the real world where ";" in dirpaths is itself problematic.
28188     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
28189   else
28190     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
28191   fi
28192 else
28193   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
28194 fi
28195 need_lib_prefix=unknown
28196 hardcode_into_libs=no
28197
28198 # when you set need_version to no, make sure it does not cause -set_version
28199 # flags to be left without arguments
28200 need_version=unknown
28201
28202 case $host_os in
28203 aix3*)
28204   version_type=linux
28205   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
28206   shlibpath_var=LIBPATH
28207
28208   # AIX 3 has no versioning support, so we append a major version to the name.
28209   soname_spec='${libname}${release}${shared_ext}$major'
28210   ;;
28211
28212 aix4* | aix5*)
28213   version_type=linux
28214   need_lib_prefix=no
28215   need_version=no
28216   hardcode_into_libs=yes
28217   if test "$host_cpu" = ia64; then
28218     # AIX 5 supports IA64
28219     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
28220     shlibpath_var=LD_LIBRARY_PATH
28221   else
28222     # With GCC up to 2.95.x, collect2 would create an import file
28223     # for dependence libraries.  The import file would start with
28224     # the line `#! .'.  This would cause the generated library to
28225     # depend on `.', always an invalid library.  This was fixed in
28226     # development snapshots of GCC prior to 3.0.
28227     case $host_os in
28228       aix4 | aix4.[01] | aix4.[01].*)
28229       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
28230            echo ' yes '
28231            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
28232         :
28233       else
28234         can_build_shared=no
28235       fi
28236       ;;
28237     esac
28238     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
28239     # soname into executable. Probably we can add versioning support to
28240     # collect2, so additional links can be useful in future.
28241     if test "$aix_use_runtimelinking" = yes; then
28242       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
28243       # instead of lib<name>.a to let people know that these are not
28244       # typical AIX shared libraries.
28245       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
28246     else
28247       # We preserve .a as extension for shared libraries through AIX4.2
28248       # and later when we are not doing run time linking.
28249       library_names_spec='${libname}${release}.a $libname.a'
28250       soname_spec='${libname}${release}${shared_ext}$major'
28251     fi
28252     shlibpath_var=LIBPATH
28253   fi
28254   ;;
28255
28256 amigaos*)
28257   library_names_spec='$libname.ixlibrary $libname.a'
28258   # Create ${libname}_ixlibrary.a entries in /sys/libs.
28259   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'
28260   ;;
28261
28262 beos*)
28263   library_names_spec='${libname}${shared_ext}'
28264   dynamic_linker="$host_os ld.so"
28265   shlibpath_var=LIBRARY_PATH
28266   ;;
28267
28268 bsdi[45]*)
28269   version_type=linux
28270   need_version=no
28271   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
28272   soname_spec='${libname}${release}${shared_ext}$major'
28273   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
28274   shlibpath_var=LD_LIBRARY_PATH
28275   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
28276   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
28277   # the default ld.so.conf also contains /usr/contrib/lib and
28278   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
28279   # libtool to hard-code these into programs
28280   ;;
28281
28282 cygwin* | mingw* | pw32*)
28283   version_type=windows
28284   shrext_cmds=".dll"
28285   need_version=no
28286   need_lib_prefix=no
28287
28288   case $GCC,$host_os in
28289   yes,cygwin* | yes,mingw* | yes,pw32*)
28290     library_names_spec='$libname.dll.a'
28291     # DLL is installed to $(libdir)/../bin by postinstall_cmds
28292     postinstall_cmds='base_file=`basename \${file}`~
28293       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
28294       dldir=$destdir/`dirname \$dlpath`~
28295       test -d \$dldir || mkdir -p \$dldir~
28296       $install_prog $dir/$dlname \$dldir/$dlname~
28297       chmod a+x \$dldir/$dlname'
28298     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
28299       dlpath=$dir/\$dldll~
28300        $rm \$dlpath'
28301     shlibpath_overrides_runpath=yes
28302
28303     case $host_os in
28304     cygwin*)
28305       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
28306       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
28307       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
28308       ;;
28309     mingw*)
28310       # MinGW DLLs use traditional 'lib' prefix
28311       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
28312       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
28313       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
28314         # It is most probably a Windows format PATH printed by
28315         # mingw gcc, but we are running on Cygwin. Gcc prints its search
28316         # path with ; separators, and with drive letters. We can handle the
28317         # drive letters (cygwin fileutils understands them), so leave them,
28318         # especially as we might pass files found there to a mingw objdump,
28319         # which wouldn't understand a cygwinified path. Ahh.
28320         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
28321       else
28322         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
28323       fi
28324       ;;
28325     pw32*)
28326       # pw32 DLLs use 'pw' prefix rather than 'lib'
28327       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
28328       ;;
28329     esac
28330     ;;
28331
28332   *)
28333     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
28334     ;;
28335   esac
28336   dynamic_linker='Win32 ld.exe'
28337   # FIXME: first we should search . and the directory the executable is in
28338   shlibpath_var=PATH
28339   ;;
28340
28341 darwin* | rhapsody*)
28342   dynamic_linker="$host_os dyld"
28343   version_type=darwin
28344   need_lib_prefix=no
28345   need_version=no
28346   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
28347   soname_spec='${libname}${release}${major}$shared_ext'
28348   shlibpath_overrides_runpath=yes
28349   shlibpath_var=DYLD_LIBRARY_PATH
28350   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
28351   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
28352   if test "$GCC" = yes; then
28353     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"`
28354   else
28355     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
28356   fi
28357   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
28358   ;;
28359
28360 dgux*)
28361   version_type=linux
28362   need_lib_prefix=no
28363   need_version=no
28364   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
28365   soname_spec='${libname}${release}${shared_ext}$major'
28366   shlibpath_var=LD_LIBRARY_PATH
28367   ;;
28368
28369 freebsd1*)
28370   dynamic_linker=no
28371   ;;
28372
28373 kfreebsd*-gnu)
28374   version_type=linux
28375   need_lib_prefix=no
28376   need_version=no
28377   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
28378   soname_spec='${libname}${release}${shared_ext}$major'
28379   shlibpath_var=LD_LIBRARY_PATH
28380   shlibpath_overrides_runpath=no
28381   hardcode_into_libs=yes
28382   dynamic_linker='GNU ld.so'
28383   ;;
28384
28385 freebsd* | dragonfly*)
28386   # DragonFly does not have aout.  When/if they implement a new
28387   # versioning mechanism, adjust this.
28388   if test -x /usr/bin/objformat; then
28389     objformat=`/usr/bin/objformat`
28390   else
28391     case $host_os in
28392     freebsd[123]*) objformat=aout ;;
28393     *) objformat=elf ;;
28394     esac
28395   fi
28396   version_type=freebsd-$objformat
28397   case $version_type in
28398     freebsd-elf*)
28399       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
28400       need_version=no
28401       need_lib_prefix=no
28402       ;;
28403     freebsd-*)
28404       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
28405       need_version=yes
28406       ;;
28407   esac
28408   shlibpath_var=LD_LIBRARY_PATH
28409   case $host_os in
28410   freebsd2*)
28411     shlibpath_overrides_runpath=yes
28412     ;;
28413   freebsd3.[01]* | freebsdelf3.[01]*)
28414     shlibpath_overrides_runpath=yes
28415     hardcode_into_libs=yes
28416     ;;
28417   *) # from 3.2 on
28418     shlibpath_overrides_runpath=no
28419     hardcode_into_libs=yes
28420     ;;
28421   esac
28422   ;;
28423
28424 gnu*)
28425   version_type=linux
28426   need_lib_prefix=no
28427   need_version=no
28428   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
28429   soname_spec='${libname}${release}${shared_ext}$major'
28430   shlibpath_var=LD_LIBRARY_PATH
28431   hardcode_into_libs=yes
28432   ;;
28433
28434 hpux9* | hpux10* | hpux11*)
28435   # Give a soname corresponding to the major version so that dld.sl refuses to
28436   # link against other versions.
28437   version_type=sunos
28438   need_lib_prefix=no
28439   need_version=no
28440   case $host_cpu in
28441   ia64*)
28442     shrext_cmds='.so'
28443     hardcode_into_libs=yes
28444     dynamic_linker="$host_os dld.so"
28445     shlibpath_var=LD_LIBRARY_PATH
28446     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
28447     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
28448     soname_spec='${libname}${release}${shared_ext}$major'
28449     if test "X$HPUX_IA64_MODE" = X32; then
28450       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
28451     else
28452       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
28453     fi
28454     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
28455     ;;
28456    hppa*64*)
28457      shrext_cmds='.sl'
28458      hardcode_into_libs=yes
28459      dynamic_linker="$host_os dld.sl"
28460      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
28461      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
28462      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
28463      soname_spec='${libname}${release}${shared_ext}$major'
28464      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
28465      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
28466      ;;
28467    *)
28468     shrext_cmds='.sl'
28469     dynamic_linker="$host_os dld.sl"
28470     shlibpath_var=SHLIB_PATH
28471     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
28472     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
28473     soname_spec='${libname}${release}${shared_ext}$major'
28474     ;;
28475   esac
28476   # HP-UX runs *really* slowly unless shared libraries are mode 555.
28477   postinstall_cmds='chmod 555 $lib'
28478   ;;
28479
28480 irix5* | irix6* | nonstopux*)
28481   case $host_os in
28482     nonstopux*) version_type=nonstopux ;;
28483     *)
28484         if test "$lt_cv_prog_gnu_ld" = yes; then
28485                 version_type=linux
28486         else
28487                 version_type=irix
28488         fi ;;
28489   esac
28490   need_lib_prefix=no
28491   need_version=no
28492   soname_spec='${libname}${release}${shared_ext}$major'
28493   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
28494   case $host_os in
28495   irix5* | nonstopux*)
28496     libsuff= shlibsuff=
28497     ;;
28498   *)
28499     case $LD in # libtool.m4 will add one of these switches to LD
28500     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
28501       libsuff= shlibsuff= libmagic=32-bit;;
28502     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
28503       libsuff=32 shlibsuff=N32 libmagic=N32;;
28504     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
28505       libsuff=64 shlibsuff=64 libmagic=64-bit;;
28506     *) libsuff= shlibsuff= libmagic=never-match;;
28507     esac
28508     ;;
28509   esac
28510   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
28511   shlibpath_overrides_runpath=no
28512   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
28513   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
28514   hardcode_into_libs=yes
28515   ;;
28516
28517 # No shared lib support for Linux oldld, aout, or coff.
28518 linux*oldld* | linux*aout* | linux*coff*)
28519   dynamic_linker=no
28520   ;;
28521
28522 # This must be Linux ELF.
28523 linux*)
28524   version_type=linux
28525   need_lib_prefix=no
28526   need_version=no
28527   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
28528   soname_spec='${libname}${release}${shared_ext}$major'
28529   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
28530   shlibpath_var=LD_LIBRARY_PATH
28531   shlibpath_overrides_runpath=no
28532   # This implies no fast_install, which is unacceptable.
28533   # Some rework will be needed to allow for fast_install
28534   # before this can be enabled.
28535   hardcode_into_libs=yes
28536
28537   # Append ld.so.conf contents to the search path
28538   if test -f /etc/ld.so.conf; then
28539     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' ' '`
28540     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
28541   fi
28542
28543   # We used to test for /lib/ld.so.1 and disable shared libraries on
28544   # powerpc, because MkLinux only supported shared libraries with the
28545   # GNU dynamic linker.  Since this was broken with cross compilers,
28546   # most powerpc-linux boxes support dynamic linking these days and
28547   # people can always --disable-shared, the test was removed, and we
28548   # assume the GNU/Linux dynamic linker is in use.
28549   dynamic_linker='GNU/Linux ld.so'
28550   ;;
28551
28552 knetbsd*-gnu)
28553   version_type=linux
28554   need_lib_prefix=no
28555   need_version=no
28556   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
28557   soname_spec='${libname}${release}${shared_ext}$major'
28558   shlibpath_var=LD_LIBRARY_PATH
28559   shlibpath_overrides_runpath=no
28560   hardcode_into_libs=yes
28561   dynamic_linker='GNU ld.so'
28562   ;;
28563
28564 netbsd*)
28565   version_type=sunos
28566   need_lib_prefix=no
28567   need_version=no
28568   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
28569     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
28570     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
28571     dynamic_linker='NetBSD (a.out) ld.so'
28572   else
28573     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
28574     soname_spec='${libname}${release}${shared_ext}$major'
28575     dynamic_linker='NetBSD ld.elf_so'
28576   fi
28577   shlibpath_var=LD_LIBRARY_PATH
28578   shlibpath_overrides_runpath=yes
28579   hardcode_into_libs=yes
28580   ;;
28581
28582 newsos6)
28583   version_type=linux
28584   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
28585   shlibpath_var=LD_LIBRARY_PATH
28586   shlibpath_overrides_runpath=yes
28587   ;;
28588
28589 nto-qnx*)
28590   version_type=linux
28591   need_lib_prefix=no
28592   need_version=no
28593   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
28594   soname_spec='${libname}${release}${shared_ext}$major'
28595   shlibpath_var=LD_LIBRARY_PATH
28596   shlibpath_overrides_runpath=yes
28597   ;;
28598
28599 openbsd*)
28600   version_type=sunos
28601   need_lib_prefix=no
28602   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
28603   case $host_os in
28604     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
28605     *)                         need_version=no  ;;
28606   esac
28607   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
28608   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
28609   shlibpath_var=LD_LIBRARY_PATH
28610   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
28611     case $host_os in
28612       openbsd2.[89] | openbsd2.[89].*)
28613         shlibpath_overrides_runpath=no
28614         ;;
28615       *)
28616         shlibpath_overrides_runpath=yes
28617         ;;
28618       esac
28619   else
28620     shlibpath_overrides_runpath=yes
28621   fi
28622   ;;
28623
28624 os2*)
28625   libname_spec='$name'
28626   shrext_cmds=".dll"
28627   need_lib_prefix=no
28628   library_names_spec='$libname${shared_ext} $libname.a'
28629   dynamic_linker='OS/2 ld.exe'
28630   shlibpath_var=LIBPATH
28631   ;;
28632
28633 osf3* | osf4* | osf5*)
28634   version_type=osf
28635   need_lib_prefix=no
28636   need_version=no
28637   soname_spec='${libname}${release}${shared_ext}$major'
28638   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
28639   shlibpath_var=LD_LIBRARY_PATH
28640   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
28641   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
28642   ;;
28643
28644 sco3.2v5*)
28645   version_type=osf
28646   soname_spec='${libname}${release}${shared_ext}$major'
28647   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
28648   shlibpath_var=LD_LIBRARY_PATH
28649   ;;
28650
28651 solaris*)
28652   version_type=linux
28653   need_lib_prefix=no
28654   need_version=no
28655   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
28656   soname_spec='${libname}${release}${shared_ext}$major'
28657   shlibpath_var=LD_LIBRARY_PATH
28658   shlibpath_overrides_runpath=yes
28659   hardcode_into_libs=yes
28660   # ldd complains unless libraries are executable
28661   postinstall_cmds='chmod +x $lib'
28662   ;;
28663
28664 sunos4*)
28665   version_type=sunos
28666   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
28667   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
28668   shlibpath_var=LD_LIBRARY_PATH
28669   shlibpath_overrides_runpath=yes
28670   if test "$with_gnu_ld" = yes; then
28671     need_lib_prefix=no
28672   fi
28673   need_version=yes
28674   ;;
28675
28676 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
28677   version_type=linux
28678   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
28679   soname_spec='${libname}${release}${shared_ext}$major'
28680   shlibpath_var=LD_LIBRARY_PATH
28681   case $host_vendor in
28682     sni)
28683       shlibpath_overrides_runpath=no
28684       need_lib_prefix=no
28685       export_dynamic_flag_spec='${wl}-Blargedynsym'
28686       runpath_var=LD_RUN_PATH
28687       ;;
28688     siemens)
28689       need_lib_prefix=no
28690       ;;
28691     motorola)
28692       need_lib_prefix=no
28693       need_version=no
28694       shlibpath_overrides_runpath=no
28695       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
28696       ;;
28697   esac
28698   ;;
28699
28700 sysv4*MP*)
28701   if test -d /usr/nec ;then
28702     version_type=linux
28703     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
28704     soname_spec='$libname${shared_ext}.$major'
28705     shlibpath_var=LD_LIBRARY_PATH
28706   fi
28707   ;;
28708
28709 uts4*)
28710   version_type=linux
28711   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
28712   soname_spec='${libname}${release}${shared_ext}$major'
28713   shlibpath_var=LD_LIBRARY_PATH
28714   ;;
28715
28716 *)
28717   dynamic_linker=no
28718   ;;
28719 esac
28720 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
28721 echo "${ECHO_T}$dynamic_linker" >&6
28722 test "$dynamic_linker" = no && can_build_shared=no
28723
28724 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
28725 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
28726 hardcode_action_GCJ=
28727 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
28728    test -n "$runpath_var_GCJ" || \
28729    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
28730
28731   # We can hardcode non-existant directories.
28732   if test "$hardcode_direct_GCJ" != no &&
28733      # If the only mechanism to avoid hardcoding is shlibpath_var, we
28734      # have to relink, otherwise we might link with an installed library
28735      # when we should be linking with a yet-to-be-installed one
28736      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
28737      test "$hardcode_minus_L_GCJ" != no; then
28738     # Linking always hardcodes the temporary library directory.
28739     hardcode_action_GCJ=relink
28740   else
28741     # We can link without hardcoding, and we can hardcode nonexisting dirs.
28742     hardcode_action_GCJ=immediate
28743   fi
28744 else
28745   # We cannot hardcode anything, or else we can only hardcode existing
28746   # directories.
28747   hardcode_action_GCJ=unsupported
28748 fi
28749 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
28750 echo "${ECHO_T}$hardcode_action_GCJ" >&6
28751
28752 if test "$hardcode_action_GCJ" = relink; then
28753   # Fast installation is not supported
28754   enable_fast_install=no
28755 elif test "$shlibpath_overrides_runpath" = yes ||
28756      test "$enable_shared" = no; then
28757   # Fast installation is not necessary
28758   enable_fast_install=needless
28759 fi
28760
28761 striplib=
28762 old_striplib=
28763 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
28764 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
28765 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
28766   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
28767   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
28768   echo "$as_me:$LINENO: result: yes" >&5
28769 echo "${ECHO_T}yes" >&6
28770 else
28771 # FIXME - insert some real tests, host_os isn't really good enough
28772   case $host_os in
28773    darwin*)
28774        if test -n "$STRIP" ; then
28775          striplib="$STRIP -x"
28776          echo "$as_me:$LINENO: result: yes" >&5
28777 echo "${ECHO_T}yes" >&6
28778        else
28779   echo "$as_me:$LINENO: result: no" >&5
28780 echo "${ECHO_T}no" >&6
28781 fi
28782        ;;
28783    *)
28784   echo "$as_me:$LINENO: result: no" >&5
28785 echo "${ECHO_T}no" >&6
28786     ;;
28787   esac
28788 fi
28789
28790 if test "x$enable_dlopen" != xyes; then
28791   enable_dlopen=unknown
28792   enable_dlopen_self=unknown
28793   enable_dlopen_self_static=unknown
28794 else
28795   lt_cv_dlopen=no
28796   lt_cv_dlopen_libs=
28797
28798   case $host_os in
28799   beos*)
28800     lt_cv_dlopen="load_add_on"
28801     lt_cv_dlopen_libs=
28802     lt_cv_dlopen_self=yes
28803     ;;
28804
28805   mingw* | pw32*)
28806     lt_cv_dlopen="LoadLibrary"
28807     lt_cv_dlopen_libs=
28808    ;;
28809
28810   cygwin*)
28811     lt_cv_dlopen="dlopen"
28812     lt_cv_dlopen_libs=
28813    ;;
28814
28815   darwin*)
28816   # if libdl is installed we need to link against it
28817     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
28818 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
28819 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
28820   echo $ECHO_N "(cached) $ECHO_C" >&6
28821 else
28822   ac_check_lib_save_LIBS=$LIBS
28823 LIBS="-ldl  $LIBS"
28824 cat >conftest.$ac_ext <<_ACEOF
28825 /* confdefs.h.  */
28826 _ACEOF
28827 cat confdefs.h >>conftest.$ac_ext
28828 cat >>conftest.$ac_ext <<_ACEOF
28829 /* end confdefs.h.  */
28830
28831 /* Override any gcc2 internal prototype to avoid an error.  */
28832 #ifdef __cplusplus
28833 extern "C"
28834 #endif
28835 /* We use char because int might match the return type of a gcc2
28836    builtin and then its argument prototype would still apply.  */
28837 char dlopen ();
28838 int
28839 main ()
28840 {
28841 dlopen ();
28842   ;
28843   return 0;
28844 }
28845 _ACEOF
28846 rm -f conftest.$ac_objext conftest$ac_exeext
28847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28848   (eval $ac_link) 2>conftest.er1
28849   ac_status=$?
28850   grep -v '^ *+' conftest.er1 >conftest.err
28851   rm -f conftest.er1
28852   cat conftest.err >&5
28853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28854   (exit $ac_status); } &&
28855          { ac_try='test -z "$ac_c_werror_flag"
28856                          || test ! -s conftest.err'
28857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28858   (eval $ac_try) 2>&5
28859   ac_status=$?
28860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28861   (exit $ac_status); }; } &&
28862          { ac_try='test -s conftest$ac_exeext'
28863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28864   (eval $ac_try) 2>&5
28865   ac_status=$?
28866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28867   (exit $ac_status); }; }; then
28868   ac_cv_lib_dl_dlopen=yes
28869 else
28870   echo "$as_me: failed program was:" >&5
28871 sed 's/^/| /' conftest.$ac_ext >&5
28872
28873 ac_cv_lib_dl_dlopen=no
28874 fi
28875 rm -f conftest.err conftest.$ac_objext \
28876       conftest$ac_exeext conftest.$ac_ext
28877 LIBS=$ac_check_lib_save_LIBS
28878 fi
28879 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
28880 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
28881 if test $ac_cv_lib_dl_dlopen = yes; then
28882   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
28883 else
28884
28885     lt_cv_dlopen="dyld"
28886     lt_cv_dlopen_libs=
28887     lt_cv_dlopen_self=yes
28888
28889 fi
28890
28891    ;;
28892
28893   *)
28894     echo "$as_me:$LINENO: checking for shl_load" >&5
28895 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
28896 if test "${ac_cv_func_shl_load+set}" = set; then
28897   echo $ECHO_N "(cached) $ECHO_C" >&6
28898 else
28899   cat >conftest.$ac_ext <<_ACEOF
28900 /* confdefs.h.  */
28901 _ACEOF
28902 cat confdefs.h >>conftest.$ac_ext
28903 cat >>conftest.$ac_ext <<_ACEOF
28904 /* end confdefs.h.  */
28905 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
28906    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28907 #define shl_load innocuous_shl_load
28908
28909 /* System header to define __stub macros and hopefully few prototypes,
28910     which can conflict with char shl_load (); below.
28911     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28912     <limits.h> exists even on freestanding compilers.  */
28913
28914 #ifdef __STDC__
28915 # include <limits.h>
28916 #else
28917 # include <assert.h>
28918 #endif
28919
28920 #undef shl_load
28921
28922 /* Override any gcc2 internal prototype to avoid an error.  */
28923 #ifdef __cplusplus
28924 extern "C"
28925 {
28926 #endif
28927 /* We use char because int might match the return type of a gcc2
28928    builtin and then its argument prototype would still apply.  */
28929 char shl_load ();
28930 /* The GNU C library defines this for functions which it implements
28931     to always fail with ENOSYS.  Some functions are actually named
28932     something starting with __ and the normal name is an alias.  */
28933 #if defined (__stub_shl_load) || defined (__stub___shl_load)
28934 choke me
28935 #else
28936 char (*f) () = shl_load;
28937 #endif
28938 #ifdef __cplusplus
28939 }
28940 #endif
28941
28942 int
28943 main ()
28944 {
28945 return f != shl_load;
28946   ;
28947   return 0;
28948 }
28949 _ACEOF
28950 rm -f conftest.$ac_objext conftest$ac_exeext
28951 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28952   (eval $ac_link) 2>conftest.er1
28953   ac_status=$?
28954   grep -v '^ *+' conftest.er1 >conftest.err
28955   rm -f conftest.er1
28956   cat conftest.err >&5
28957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28958   (exit $ac_status); } &&
28959          { ac_try='test -z "$ac_c_werror_flag"
28960                          || test ! -s conftest.err'
28961   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28962   (eval $ac_try) 2>&5
28963   ac_status=$?
28964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28965   (exit $ac_status); }; } &&
28966          { ac_try='test -s conftest$ac_exeext'
28967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28968   (eval $ac_try) 2>&5
28969   ac_status=$?
28970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28971   (exit $ac_status); }; }; then
28972   ac_cv_func_shl_load=yes
28973 else
28974   echo "$as_me: failed program was:" >&5
28975 sed 's/^/| /' conftest.$ac_ext >&5
28976
28977 ac_cv_func_shl_load=no
28978 fi
28979 rm -f conftest.err conftest.$ac_objext \
28980       conftest$ac_exeext conftest.$ac_ext
28981 fi
28982 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
28983 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
28984 if test $ac_cv_func_shl_load = yes; then
28985   lt_cv_dlopen="shl_load"
28986 else
28987   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
28988 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
28989 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
28990   echo $ECHO_N "(cached) $ECHO_C" >&6
28991 else
28992   ac_check_lib_save_LIBS=$LIBS
28993 LIBS="-ldld  $LIBS"
28994 cat >conftest.$ac_ext <<_ACEOF
28995 /* confdefs.h.  */
28996 _ACEOF
28997 cat confdefs.h >>conftest.$ac_ext
28998 cat >>conftest.$ac_ext <<_ACEOF
28999 /* end confdefs.h.  */
29000
29001 /* Override any gcc2 internal prototype to avoid an error.  */
29002 #ifdef __cplusplus
29003 extern "C"
29004 #endif
29005 /* We use char because int might match the return type of a gcc2
29006    builtin and then its argument prototype would still apply.  */
29007 char shl_load ();
29008 int
29009 main ()
29010 {
29011 shl_load ();
29012   ;
29013   return 0;
29014 }
29015 _ACEOF
29016 rm -f conftest.$ac_objext conftest$ac_exeext
29017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29018   (eval $ac_link) 2>conftest.er1
29019   ac_status=$?
29020   grep -v '^ *+' conftest.er1 >conftest.err
29021   rm -f conftest.er1
29022   cat conftest.err >&5
29023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29024   (exit $ac_status); } &&
29025          { ac_try='test -z "$ac_c_werror_flag"
29026                          || test ! -s conftest.err'
29027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29028   (eval $ac_try) 2>&5
29029   ac_status=$?
29030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29031   (exit $ac_status); }; } &&
29032          { ac_try='test -s conftest$ac_exeext'
29033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29034   (eval $ac_try) 2>&5
29035   ac_status=$?
29036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29037   (exit $ac_status); }; }; then
29038   ac_cv_lib_dld_shl_load=yes
29039 else
29040   echo "$as_me: failed program was:" >&5
29041 sed 's/^/| /' conftest.$ac_ext >&5
29042
29043 ac_cv_lib_dld_shl_load=no
29044 fi
29045 rm -f conftest.err conftest.$ac_objext \
29046       conftest$ac_exeext conftest.$ac_ext
29047 LIBS=$ac_check_lib_save_LIBS
29048 fi
29049 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
29050 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
29051 if test $ac_cv_lib_dld_shl_load = yes; then
29052   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
29053 else
29054   echo "$as_me:$LINENO: checking for dlopen" >&5
29055 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
29056 if test "${ac_cv_func_dlopen+set}" = set; then
29057   echo $ECHO_N "(cached) $ECHO_C" >&6
29058 else
29059   cat >conftest.$ac_ext <<_ACEOF
29060 /* confdefs.h.  */
29061 _ACEOF
29062 cat confdefs.h >>conftest.$ac_ext
29063 cat >>conftest.$ac_ext <<_ACEOF
29064 /* end confdefs.h.  */
29065 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
29066    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29067 #define dlopen innocuous_dlopen
29068
29069 /* System header to define __stub macros and hopefully few prototypes,
29070     which can conflict with char dlopen (); below.
29071     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29072     <limits.h> exists even on freestanding compilers.  */
29073
29074 #ifdef __STDC__
29075 # include <limits.h>
29076 #else
29077 # include <assert.h>
29078 #endif
29079
29080 #undef dlopen
29081
29082 /* Override any gcc2 internal prototype to avoid an error.  */
29083 #ifdef __cplusplus
29084 extern "C"
29085 {
29086 #endif
29087 /* We use char because int might match the return type of a gcc2
29088    builtin and then its argument prototype would still apply.  */
29089 char dlopen ();
29090 /* The GNU C library defines this for functions which it implements
29091     to always fail with ENOSYS.  Some functions are actually named
29092     something starting with __ and the normal name is an alias.  */
29093 #if defined (__stub_dlopen) || defined (__stub___dlopen)
29094 choke me
29095 #else
29096 char (*f) () = dlopen;
29097 #endif
29098 #ifdef __cplusplus
29099 }
29100 #endif
29101
29102 int
29103 main ()
29104 {
29105 return f != dlopen;
29106   ;
29107   return 0;
29108 }
29109 _ACEOF
29110 rm -f conftest.$ac_objext conftest$ac_exeext
29111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29112   (eval $ac_link) 2>conftest.er1
29113   ac_status=$?
29114   grep -v '^ *+' conftest.er1 >conftest.err
29115   rm -f conftest.er1
29116   cat conftest.err >&5
29117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29118   (exit $ac_status); } &&
29119          { ac_try='test -z "$ac_c_werror_flag"
29120                          || test ! -s conftest.err'
29121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29122   (eval $ac_try) 2>&5
29123   ac_status=$?
29124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29125   (exit $ac_status); }; } &&
29126          { ac_try='test -s conftest$ac_exeext'
29127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29128   (eval $ac_try) 2>&5
29129   ac_status=$?
29130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29131   (exit $ac_status); }; }; then
29132   ac_cv_func_dlopen=yes
29133 else
29134   echo "$as_me: failed program was:" >&5
29135 sed 's/^/| /' conftest.$ac_ext >&5
29136
29137 ac_cv_func_dlopen=no
29138 fi
29139 rm -f conftest.err conftest.$ac_objext \
29140       conftest$ac_exeext conftest.$ac_ext
29141 fi
29142 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
29143 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
29144 if test $ac_cv_func_dlopen = yes; then
29145   lt_cv_dlopen="dlopen"
29146 else
29147   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
29148 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
29149 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
29150   echo $ECHO_N "(cached) $ECHO_C" >&6
29151 else
29152   ac_check_lib_save_LIBS=$LIBS
29153 LIBS="-ldl  $LIBS"
29154 cat >conftest.$ac_ext <<_ACEOF
29155 /* confdefs.h.  */
29156 _ACEOF
29157 cat confdefs.h >>conftest.$ac_ext
29158 cat >>conftest.$ac_ext <<_ACEOF
29159 /* end confdefs.h.  */
29160
29161 /* Override any gcc2 internal prototype to avoid an error.  */
29162 #ifdef __cplusplus
29163 extern "C"
29164 #endif
29165 /* We use char because int might match the return type of a gcc2
29166    builtin and then its argument prototype would still apply.  */
29167 char dlopen ();
29168 int
29169 main ()
29170 {
29171 dlopen ();
29172   ;
29173   return 0;
29174 }
29175 _ACEOF
29176 rm -f conftest.$ac_objext conftest$ac_exeext
29177 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29178   (eval $ac_link) 2>conftest.er1
29179   ac_status=$?
29180   grep -v '^ *+' conftest.er1 >conftest.err
29181   rm -f conftest.er1
29182   cat conftest.err >&5
29183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29184   (exit $ac_status); } &&
29185          { ac_try='test -z "$ac_c_werror_flag"
29186                          || test ! -s conftest.err'
29187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29188   (eval $ac_try) 2>&5
29189   ac_status=$?
29190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29191   (exit $ac_status); }; } &&
29192          { ac_try='test -s conftest$ac_exeext'
29193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29194   (eval $ac_try) 2>&5
29195   ac_status=$?
29196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29197   (exit $ac_status); }; }; then
29198   ac_cv_lib_dl_dlopen=yes
29199 else
29200   echo "$as_me: failed program was:" >&5
29201 sed 's/^/| /' conftest.$ac_ext >&5
29202
29203 ac_cv_lib_dl_dlopen=no
29204 fi
29205 rm -f conftest.err conftest.$ac_objext \
29206       conftest$ac_exeext conftest.$ac_ext
29207 LIBS=$ac_check_lib_save_LIBS
29208 fi
29209 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
29210 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
29211 if test $ac_cv_lib_dl_dlopen = yes; then
29212   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
29213 else
29214   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
29215 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
29216 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
29217   echo $ECHO_N "(cached) $ECHO_C" >&6
29218 else
29219   ac_check_lib_save_LIBS=$LIBS
29220 LIBS="-lsvld  $LIBS"
29221 cat >conftest.$ac_ext <<_ACEOF
29222 /* confdefs.h.  */
29223 _ACEOF
29224 cat confdefs.h >>conftest.$ac_ext
29225 cat >>conftest.$ac_ext <<_ACEOF
29226 /* end confdefs.h.  */
29227
29228 /* Override any gcc2 internal prototype to avoid an error.  */
29229 #ifdef __cplusplus
29230 extern "C"
29231 #endif
29232 /* We use char because int might match the return type of a gcc2
29233    builtin and then its argument prototype would still apply.  */
29234 char dlopen ();
29235 int
29236 main ()
29237 {
29238 dlopen ();
29239   ;
29240   return 0;
29241 }
29242 _ACEOF
29243 rm -f conftest.$ac_objext conftest$ac_exeext
29244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29245   (eval $ac_link) 2>conftest.er1
29246   ac_status=$?
29247   grep -v '^ *+' conftest.er1 >conftest.err
29248   rm -f conftest.er1
29249   cat conftest.err >&5
29250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29251   (exit $ac_status); } &&
29252          { ac_try='test -z "$ac_c_werror_flag"
29253                          || test ! -s conftest.err'
29254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29255   (eval $ac_try) 2>&5
29256   ac_status=$?
29257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29258   (exit $ac_status); }; } &&
29259          { ac_try='test -s conftest$ac_exeext'
29260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29261   (eval $ac_try) 2>&5
29262   ac_status=$?
29263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29264   (exit $ac_status); }; }; then
29265   ac_cv_lib_svld_dlopen=yes
29266 else
29267   echo "$as_me: failed program was:" >&5
29268 sed 's/^/| /' conftest.$ac_ext >&5
29269
29270 ac_cv_lib_svld_dlopen=no
29271 fi
29272 rm -f conftest.err conftest.$ac_objext \
29273       conftest$ac_exeext conftest.$ac_ext
29274 LIBS=$ac_check_lib_save_LIBS
29275 fi
29276 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
29277 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
29278 if test $ac_cv_lib_svld_dlopen = yes; then
29279   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
29280 else
29281   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
29282 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
29283 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
29284   echo $ECHO_N "(cached) $ECHO_C" >&6
29285 else
29286   ac_check_lib_save_LIBS=$LIBS
29287 LIBS="-ldld  $LIBS"
29288 cat >conftest.$ac_ext <<_ACEOF
29289 /* confdefs.h.  */
29290 _ACEOF
29291 cat confdefs.h >>conftest.$ac_ext
29292 cat >>conftest.$ac_ext <<_ACEOF
29293 /* end confdefs.h.  */
29294
29295 /* Override any gcc2 internal prototype to avoid an error.  */
29296 #ifdef __cplusplus
29297 extern "C"
29298 #endif
29299 /* We use char because int might match the return type of a gcc2
29300    builtin and then its argument prototype would still apply.  */
29301 char dld_link ();
29302 int
29303 main ()
29304 {
29305 dld_link ();
29306   ;
29307   return 0;
29308 }
29309 _ACEOF
29310 rm -f conftest.$ac_objext conftest$ac_exeext
29311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29312   (eval $ac_link) 2>conftest.er1
29313   ac_status=$?
29314   grep -v '^ *+' conftest.er1 >conftest.err
29315   rm -f conftest.er1
29316   cat conftest.err >&5
29317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29318   (exit $ac_status); } &&
29319          { ac_try='test -z "$ac_c_werror_flag"
29320                          || test ! -s conftest.err'
29321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29322   (eval $ac_try) 2>&5
29323   ac_status=$?
29324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29325   (exit $ac_status); }; } &&
29326          { ac_try='test -s conftest$ac_exeext'
29327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29328   (eval $ac_try) 2>&5
29329   ac_status=$?
29330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29331   (exit $ac_status); }; }; then
29332   ac_cv_lib_dld_dld_link=yes
29333 else
29334   echo "$as_me: failed program was:" >&5
29335 sed 's/^/| /' conftest.$ac_ext >&5
29336
29337 ac_cv_lib_dld_dld_link=no
29338 fi
29339 rm -f conftest.err conftest.$ac_objext \
29340       conftest$ac_exeext conftest.$ac_ext
29341 LIBS=$ac_check_lib_save_LIBS
29342 fi
29343 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
29344 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
29345 if test $ac_cv_lib_dld_dld_link = yes; then
29346   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
29347 fi
29348
29349
29350 fi
29351
29352
29353 fi
29354
29355
29356 fi
29357
29358
29359 fi
29360
29361
29362 fi
29363
29364     ;;
29365   esac
29366
29367   if test "x$lt_cv_dlopen" != xno; then
29368     enable_dlopen=yes
29369   else
29370     enable_dlopen=no
29371   fi
29372
29373   case $lt_cv_dlopen in
29374   dlopen)
29375     save_CPPFLAGS="$CPPFLAGS"
29376     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
29377
29378     save_LDFLAGS="$LDFLAGS"
29379     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
29380
29381     save_LIBS="$LIBS"
29382     LIBS="$lt_cv_dlopen_libs $LIBS"
29383
29384     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
29385 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
29386 if test "${lt_cv_dlopen_self+set}" = set; then
29387   echo $ECHO_N "(cached) $ECHO_C" >&6
29388 else
29389           if test "$cross_compiling" = yes; then :
29390   lt_cv_dlopen_self=cross
29391 else
29392   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
29393   lt_status=$lt_dlunknown
29394   cat > conftest.$ac_ext <<EOF
29395 #line 29395 "configure"
29396 #include "confdefs.h"
29397
29398 #if HAVE_DLFCN_H
29399 #include <dlfcn.h>
29400 #endif
29401
29402 #include <stdio.h>
29403
29404 #ifdef RTLD_GLOBAL
29405 #  define LT_DLGLOBAL           RTLD_GLOBAL
29406 #else
29407 #  ifdef DL_GLOBAL
29408 #    define LT_DLGLOBAL         DL_GLOBAL
29409 #  else
29410 #    define LT_DLGLOBAL         0
29411 #  endif
29412 #endif
29413
29414 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
29415    find out it does not work in some platform. */
29416 #ifndef LT_DLLAZY_OR_NOW
29417 #  ifdef RTLD_LAZY
29418 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
29419 #  else
29420 #    ifdef DL_LAZY
29421 #      define LT_DLLAZY_OR_NOW          DL_LAZY
29422 #    else
29423 #      ifdef RTLD_NOW
29424 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
29425 #      else
29426 #        ifdef DL_NOW
29427 #          define LT_DLLAZY_OR_NOW      DL_NOW
29428 #        else
29429 #          define LT_DLLAZY_OR_NOW      0
29430 #        endif
29431 #      endif
29432 #    endif
29433 #  endif
29434 #endif
29435
29436 #ifdef __cplusplus
29437 extern "C" void exit (int);
29438 #endif
29439
29440 void fnord() { int i=42;}
29441 int main ()
29442 {
29443   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
29444   int status = $lt_dlunknown;
29445
29446   if (self)
29447     {
29448       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
29449       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
29450       /* dlclose (self); */
29451     }
29452
29453     exit (status);
29454 }
29455 EOF
29456   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29457   (eval $ac_link) 2>&5
29458   ac_status=$?
29459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29460   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
29461     (./conftest; exit; ) >&5 2>/dev/null
29462     lt_status=$?
29463     case x$lt_status in
29464       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
29465       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
29466       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
29467     esac
29468   else :
29469     # compilation failed
29470     lt_cv_dlopen_self=no
29471   fi
29472 fi
29473 rm -fr conftest*
29474
29475
29476 fi
29477 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
29478 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
29479
29480     if test "x$lt_cv_dlopen_self" = xyes; then
29481       LDFLAGS="$LDFLAGS $link_static_flag"
29482       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
29483 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
29484 if test "${lt_cv_dlopen_self_static+set}" = set; then
29485   echo $ECHO_N "(cached) $ECHO_C" >&6
29486 else
29487           if test "$cross_compiling" = yes; then :
29488   lt_cv_dlopen_self_static=cross
29489 else
29490   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
29491   lt_status=$lt_dlunknown
29492   cat > conftest.$ac_ext <<EOF
29493 #line 29493 "configure"
29494 #include "confdefs.h"
29495
29496 #if HAVE_DLFCN_H
29497 #include <dlfcn.h>
29498 #endif
29499
29500 #include <stdio.h>
29501
29502 #ifdef RTLD_GLOBAL
29503 #  define LT_DLGLOBAL           RTLD_GLOBAL
29504 #else
29505 #  ifdef DL_GLOBAL
29506 #    define LT_DLGLOBAL         DL_GLOBAL
29507 #  else
29508 #    define LT_DLGLOBAL         0
29509 #  endif
29510 #endif
29511
29512 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
29513    find out it does not work in some platform. */
29514 #ifndef LT_DLLAZY_OR_NOW
29515 #  ifdef RTLD_LAZY
29516 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
29517 #  else
29518 #    ifdef DL_LAZY
29519 #      define LT_DLLAZY_OR_NOW          DL_LAZY
29520 #    else
29521 #      ifdef RTLD_NOW
29522 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
29523 #      else
29524 #        ifdef DL_NOW
29525 #          define LT_DLLAZY_OR_NOW      DL_NOW
29526 #        else
29527 #          define LT_DLLAZY_OR_NOW      0
29528 #        endif
29529 #      endif
29530 #    endif
29531 #  endif
29532 #endif
29533
29534 #ifdef __cplusplus
29535 extern "C" void exit (int);
29536 #endif
29537
29538 void fnord() { int i=42;}
29539 int main ()
29540 {
29541   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
29542   int status = $lt_dlunknown;
29543
29544   if (self)
29545     {
29546       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
29547       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
29548       /* dlclose (self); */
29549     }
29550
29551     exit (status);
29552 }
29553 EOF
29554   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29555   (eval $ac_link) 2>&5
29556   ac_status=$?
29557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29558   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
29559     (./conftest; exit; ) >&5 2>/dev/null
29560     lt_status=$?
29561     case x$lt_status in
29562       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
29563       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
29564       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
29565     esac
29566   else :
29567     # compilation failed
29568     lt_cv_dlopen_self_static=no
29569   fi
29570 fi
29571 rm -fr conftest*
29572
29573
29574 fi
29575 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
29576 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
29577     fi
29578
29579     CPPFLAGS="$save_CPPFLAGS"
29580     LDFLAGS="$save_LDFLAGS"
29581     LIBS="$save_LIBS"
29582     ;;
29583   esac
29584
29585   case $lt_cv_dlopen_self in
29586   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
29587   *) enable_dlopen_self=unknown ;;
29588   esac
29589
29590   case $lt_cv_dlopen_self_static in
29591   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
29592   *) enable_dlopen_self_static=unknown ;;
29593   esac
29594 fi
29595
29596
29597 # The else clause should only fire when bootstrapping the
29598 # libtool distribution, otherwise you forgot to ship ltmain.sh
29599 # with your package, and you will get complaints that there are
29600 # no rules to generate ltmain.sh.
29601 if test -f "$ltmain"; then
29602   # See if we are running on zsh, and set the options which allow our commands through
29603   # without removal of \ escapes.
29604   if test -n "${ZSH_VERSION+set}" ; then
29605     setopt NO_GLOB_SUBST
29606   fi
29607   # Now quote all the things that may contain metacharacters while being
29608   # careful not to overquote the AC_SUBSTed values.  We take copies of the
29609   # variables and quote the copies for generation of the libtool script.
29610   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
29611     SED SHELL STRIP \
29612     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
29613     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
29614     deplibs_check_method reload_flag reload_cmds need_locks \
29615     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
29616     lt_cv_sys_global_symbol_to_c_name_address \
29617     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
29618     old_postinstall_cmds old_postuninstall_cmds \
29619     compiler_GCJ \
29620     CC_GCJ \
29621     LD_GCJ \
29622     lt_prog_compiler_wl_GCJ \
29623     lt_prog_compiler_pic_GCJ \
29624     lt_prog_compiler_static_GCJ \
29625     lt_prog_compiler_no_builtin_flag_GCJ \
29626     export_dynamic_flag_spec_GCJ \
29627     thread_safe_flag_spec_GCJ \
29628     whole_archive_flag_spec_GCJ \
29629     enable_shared_with_static_runtimes_GCJ \
29630     old_archive_cmds_GCJ \
29631     old_archive_from_new_cmds_GCJ \
29632     predep_objects_GCJ \
29633     postdep_objects_GCJ \
29634     predeps_GCJ \
29635     postdeps_GCJ \
29636     compiler_lib_search_path_GCJ \
29637     archive_cmds_GCJ \
29638     archive_expsym_cmds_GCJ \
29639     postinstall_cmds_GCJ \
29640     postuninstall_cmds_GCJ \
29641     old_archive_from_expsyms_cmds_GCJ \
29642     allow_undefined_flag_GCJ \
29643     no_undefined_flag_GCJ \
29644     export_symbols_cmds_GCJ \
29645     hardcode_libdir_flag_spec_GCJ \
29646     hardcode_libdir_flag_spec_ld_GCJ \
29647     hardcode_libdir_separator_GCJ \
29648     hardcode_automatic_GCJ \
29649     module_cmds_GCJ \
29650     module_expsym_cmds_GCJ \
29651     lt_cv_prog_compiler_c_o_GCJ \
29652     exclude_expsyms_GCJ \
29653     include_expsyms_GCJ; do
29654
29655     case $var in
29656     old_archive_cmds_GCJ | \
29657     old_archive_from_new_cmds_GCJ | \
29658     archive_cmds_GCJ | \
29659     archive_expsym_cmds_GCJ | \
29660     module_cmds_GCJ | \
29661     module_expsym_cmds_GCJ | \
29662     old_archive_from_expsyms_cmds_GCJ | \
29663     export_symbols_cmds_GCJ | \
29664     extract_expsyms_cmds | reload_cmds | finish_cmds | \
29665     postinstall_cmds | postuninstall_cmds | \
29666     old_postinstall_cmds | old_postuninstall_cmds | \
29667     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
29668       # Double-quote double-evaled strings.
29669       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
29670       ;;
29671     *)
29672       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
29673       ;;
29674     esac
29675   done
29676
29677   case $lt_echo in
29678   *'\$0 --fallback-echo"')
29679     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
29680     ;;
29681   esac
29682
29683 cfgfile="$ofile"
29684
29685   cat <<__EOF__ >> "$cfgfile"
29686 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
29687
29688 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
29689
29690 # Shell to use when invoking shell scripts.
29691 SHELL=$lt_SHELL
29692
29693 # Whether or not to build shared libraries.
29694 build_libtool_libs=$enable_shared
29695
29696 # Whether or not to build static libraries.
29697 build_old_libs=$enable_static
29698
29699 # Whether or not to add -lc for building shared libraries.
29700 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
29701
29702 # Whether or not to disallow shared libs when runtime libs are static
29703 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
29704
29705 # Whether or not to optimize for fast installation.
29706 fast_install=$enable_fast_install
29707
29708 # The host system.
29709 host_alias=$host_alias
29710 host=$host
29711 host_os=$host_os
29712
29713 # The build system.
29714 build_alias=$build_alias
29715 build=$build
29716 build_os=$build_os
29717
29718 # An echo program that does not interpret backslashes.
29719 echo=$lt_echo
29720
29721 # The archiver.
29722 AR=$lt_AR
29723 AR_FLAGS=$lt_AR_FLAGS
29724
29725 # A C compiler.
29726 LTCC=$lt_LTCC
29727
29728 # A language-specific compiler.
29729 CC=$lt_compiler_GCJ
29730
29731 # Is the compiler the GNU C compiler?
29732 with_gcc=$GCC_GCJ
29733
29734 # An ERE matcher.
29735 EGREP=$lt_EGREP
29736
29737 # The linker used to build libraries.
29738 LD=$lt_LD_GCJ
29739
29740 # Whether we need hard or soft links.
29741 LN_S=$lt_LN_S
29742
29743 # A BSD-compatible nm program.
29744 NM=$lt_NM
29745
29746 # A symbol stripping program
29747 STRIP=$lt_STRIP
29748
29749 # Used to examine libraries when file_magic_cmd begins "file"
29750 MAGIC_CMD=$MAGIC_CMD
29751
29752 # Used on cygwin: DLL creation program.
29753 DLLTOOL="$DLLTOOL"
29754
29755 # Used on cygwin: object dumper.
29756 OBJDUMP="$OBJDUMP"
29757
29758 # Used on cygwin: assembler.
29759 AS="$AS"
29760
29761 # The name of the directory that contains temporary libtool files.
29762 objdir=$objdir
29763
29764 # How to create reloadable object files.
29765 reload_flag=$lt_reload_flag
29766 reload_cmds=$lt_reload_cmds
29767
29768 # How to pass a linker flag through the compiler.
29769 wl=$lt_lt_prog_compiler_wl_GCJ
29770
29771 # Object file suffix (normally "o").
29772 objext="$ac_objext"
29773
29774 # Old archive suffix (normally "a").
29775 libext="$libext"
29776
29777 # Shared library suffix (normally ".so").
29778 shrext_cmds='$shrext_cmds'
29779
29780 # Executable file suffix (normally "").
29781 exeext="$exeext"
29782
29783 # Additional compiler flags for building library objects.
29784 pic_flag=$lt_lt_prog_compiler_pic_GCJ
29785 pic_mode=$pic_mode
29786
29787 # What is the maximum length of a command?
29788 max_cmd_len=$lt_cv_sys_max_cmd_len
29789
29790 # Does compiler simultaneously support -c and -o options?
29791 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
29792
29793 # Must we lock files when doing compilation?
29794 need_locks=$lt_need_locks
29795
29796 # Do we need the lib prefix for modules?
29797 need_lib_prefix=$need_lib_prefix
29798
29799 # Do we need a version for libraries?
29800 need_version=$need_version
29801
29802 # Whether dlopen is supported.
29803 dlopen_support=$enable_dlopen
29804
29805 # Whether dlopen of programs is supported.
29806 dlopen_self=$enable_dlopen_self
29807
29808 # Whether dlopen of statically linked programs is supported.
29809 dlopen_self_static=$enable_dlopen_self_static
29810
29811 # Compiler flag to prevent dynamic linking.
29812 link_static_flag=$lt_lt_prog_compiler_static_GCJ
29813
29814 # Compiler flag to turn off builtin functions.
29815 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
29816
29817 # Compiler flag to allow reflexive dlopens.
29818 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
29819
29820 # Compiler flag to generate shared objects directly from archives.
29821 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
29822
29823 # Compiler flag to generate thread-safe objects.
29824 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
29825
29826 # Library versioning type.
29827 version_type=$version_type
29828
29829 # Format of library name prefix.
29830 libname_spec=$lt_libname_spec
29831
29832 # List of archive names.  First name is the real one, the rest are links.
29833 # The last name is the one that the linker finds with -lNAME.
29834 library_names_spec=$lt_library_names_spec
29835
29836 # The coded name of the library, if different from the real name.
29837 soname_spec=$lt_soname_spec
29838
29839 # Commands used to build and install an old-style archive.
29840 RANLIB=$lt_RANLIB
29841 old_archive_cmds=$lt_old_archive_cmds_GCJ
29842 old_postinstall_cmds=$lt_old_postinstall_cmds
29843 old_postuninstall_cmds=$lt_old_postuninstall_cmds
29844
29845 # Create an old-style archive from a shared archive.
29846 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
29847
29848 # Create a temporary old-style archive to link instead of a shared archive.
29849 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
29850
29851 # Commands used to build and install a shared archive.
29852 archive_cmds=$lt_archive_cmds_GCJ
29853 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
29854 postinstall_cmds=$lt_postinstall_cmds
29855 postuninstall_cmds=$lt_postuninstall_cmds
29856
29857 # Commands used to build a loadable module (assumed same as above if empty)
29858 module_cmds=$lt_module_cmds_GCJ
29859 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
29860
29861 # Commands to strip libraries.
29862 old_striplib=$lt_old_striplib
29863 striplib=$lt_striplib
29864
29865 # Dependencies to place before the objects being linked to create a
29866 # shared library.
29867 predep_objects=$lt_predep_objects_GCJ
29868
29869 # Dependencies to place after the objects being linked to create a
29870 # shared library.
29871 postdep_objects=$lt_postdep_objects_GCJ
29872
29873 # Dependencies to place before the objects being linked to create a
29874 # shared library.
29875 predeps=$lt_predeps_GCJ
29876
29877 # Dependencies to place after the objects being linked to create a
29878 # shared library.
29879 postdeps=$lt_postdeps_GCJ
29880
29881 # The library search path used internally by the compiler when linking
29882 # a shared library.
29883 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
29884
29885 # Method to check whether dependent libraries are shared objects.
29886 deplibs_check_method=$lt_deplibs_check_method
29887
29888 # Command to use when deplibs_check_method == file_magic.
29889 file_magic_cmd=$lt_file_magic_cmd
29890
29891 # Flag that allows shared libraries with undefined symbols to be built.
29892 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
29893
29894 # Flag that forces no undefined symbols.
29895 no_undefined_flag=$lt_no_undefined_flag_GCJ
29896
29897 # Commands used to finish a libtool library installation in a directory.
29898 finish_cmds=$lt_finish_cmds
29899
29900 # Same as above, but a single script fragment to be evaled but not shown.
29901 finish_eval=$lt_finish_eval
29902
29903 # Take the output of nm and produce a listing of raw symbols and C names.
29904 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
29905
29906 # Transform the output of nm in a proper C declaration
29907 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
29908
29909 # Transform the output of nm in a C name address pair
29910 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
29911
29912 # This is the shared library runtime path variable.
29913 runpath_var=$runpath_var
29914
29915 # This is the shared library path variable.
29916 shlibpath_var=$shlibpath_var
29917
29918 # Is shlibpath searched before the hard-coded library search path?
29919 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
29920
29921 # How to hardcode a shared library path into an executable.
29922 hardcode_action=$hardcode_action_GCJ
29923
29924 # Whether we should hardcode library paths into libraries.
29925 hardcode_into_libs=$hardcode_into_libs
29926
29927 # Flag to hardcode \$libdir into a binary during linking.
29928 # This must work even if \$libdir does not exist.
29929 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
29930
29931 # If ld is used when linking, flag to hardcode \$libdir into
29932 # a binary during linking. This must work even if \$libdir does
29933 # not exist.
29934 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
29935
29936 # Whether we need a single -rpath flag with a separated argument.
29937 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
29938
29939 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
29940 # resulting binary.
29941 hardcode_direct=$hardcode_direct_GCJ
29942
29943 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
29944 # resulting binary.
29945 hardcode_minus_L=$hardcode_minus_L_GCJ
29946
29947 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
29948 # the resulting binary.
29949 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
29950
29951 # Set to yes if building a shared library automatically hardcodes DIR into the library
29952 # and all subsequent libraries and executables linked against it.
29953 hardcode_automatic=$hardcode_automatic_GCJ
29954
29955 # Variables whose values should be saved in libtool wrapper scripts and
29956 # restored at relink time.
29957 variables_saved_for_relink="$variables_saved_for_relink"
29958
29959 # Whether libtool must link a program against all its dependency libraries.
29960 link_all_deplibs=$link_all_deplibs_GCJ
29961
29962 # Compile-time system search path for libraries
29963 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
29964
29965 # Run-time system search path for libraries
29966 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
29967
29968 # Fix the shell variable \$srcfile for the compiler.
29969 fix_srcfile_path="$fix_srcfile_path_GCJ"
29970
29971 # Set to yes if exported symbols are required.
29972 always_export_symbols=$always_export_symbols_GCJ
29973
29974 # The commands to list exported symbols.
29975 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
29976
29977 # The commands to extract the exported symbol list from a shared archive.
29978 extract_expsyms_cmds=$lt_extract_expsyms_cmds
29979
29980 # Symbols that should not be listed in the preloaded symbols.
29981 exclude_expsyms=$lt_exclude_expsyms_GCJ
29982
29983 # Symbols that must always be exported.
29984 include_expsyms=$lt_include_expsyms_GCJ
29985
29986 # ### END LIBTOOL TAG CONFIG: $tagname
29987
29988 __EOF__
29989
29990
29991 else
29992   # If there is no Makefile yet, we rely on a make rule to execute
29993   # `config.status --recheck' to rerun these tests and create the
29994   # libtool script then.
29995   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
29996   if test -f "$ltmain_in"; then
29997     test -f Makefile && make "$ltmain"
29998   fi
29999 fi
30000
30001
30002 ac_ext=c
30003 ac_cpp='$CPP $CPPFLAGS'
30004 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30005 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30006 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30007
30008 CC="$lt_save_CC"
30009
30010         else
30011           tagname=""
30012         fi
30013         ;;
30014
30015       RC)
30016
30017
30018
30019 # Source file extension for RC test sources.
30020 ac_ext=rc
30021
30022 # Object file extension for compiled RC test sources.
30023 objext=o
30024 objext_RC=$objext
30025
30026 # Code to be used in simple compile tests
30027 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
30028
30029 # Code to be used in simple link tests
30030 lt_simple_link_test_code="$lt_simple_compile_test_code"
30031
30032 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
30033
30034 # If no C compiler was specified, use CC.
30035 LTCC=${LTCC-"$CC"}
30036
30037 # Allow CC to be a program name with arguments.
30038 compiler=$CC
30039
30040
30041 # save warnings/boilerplate of simple test code
30042 ac_outfile=conftest.$ac_objext
30043 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
30044 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
30045 _lt_compiler_boilerplate=`cat conftest.err`
30046 $rm conftest*
30047
30048 ac_outfile=conftest.$ac_objext
30049 printf "$lt_simple_link_test_code" >conftest.$ac_ext
30050 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
30051 _lt_linker_boilerplate=`cat conftest.err`
30052 $rm conftest*
30053
30054
30055 # Allow CC to be a program name with arguments.
30056 lt_save_CC="$CC"
30057 CC=${RC-"windres"}
30058 compiler=$CC
30059 compiler_RC=$CC
30060 for cc_temp in $compiler""; do
30061   case $cc_temp in
30062     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
30063     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
30064     \-*) ;;
30065     *) break;;
30066   esac
30067 done
30068 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
30069
30070 lt_cv_prog_compiler_c_o_RC=yes
30071
30072 # The else clause should only fire when bootstrapping the
30073 # libtool distribution, otherwise you forgot to ship ltmain.sh
30074 # with your package, and you will get complaints that there are
30075 # no rules to generate ltmain.sh.
30076 if test -f "$ltmain"; then
30077   # See if we are running on zsh, and set the options which allow our commands through
30078   # without removal of \ escapes.
30079   if test -n "${ZSH_VERSION+set}" ; then
30080     setopt NO_GLOB_SUBST
30081   fi
30082   # Now quote all the things that may contain metacharacters while being
30083   # careful not to overquote the AC_SUBSTed values.  We take copies of the
30084   # variables and quote the copies for generation of the libtool script.
30085   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
30086     SED SHELL STRIP \
30087     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
30088     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
30089     deplibs_check_method reload_flag reload_cmds need_locks \
30090     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
30091     lt_cv_sys_global_symbol_to_c_name_address \
30092     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
30093     old_postinstall_cmds old_postuninstall_cmds \
30094     compiler_RC \
30095     CC_RC \
30096     LD_RC \
30097     lt_prog_compiler_wl_RC \
30098     lt_prog_compiler_pic_RC \
30099     lt_prog_compiler_static_RC \
30100     lt_prog_compiler_no_builtin_flag_RC \
30101     export_dynamic_flag_spec_RC \
30102     thread_safe_flag_spec_RC \
30103     whole_archive_flag_spec_RC \
30104     enable_shared_with_static_runtimes_RC \
30105     old_archive_cmds_RC \
30106     old_archive_from_new_cmds_RC \
30107     predep_objects_RC \
30108     postdep_objects_RC \
30109     predeps_RC \
30110     postdeps_RC \
30111     compiler_lib_search_path_RC \
30112     archive_cmds_RC \
30113     archive_expsym_cmds_RC \
30114     postinstall_cmds_RC \
30115     postuninstall_cmds_RC \
30116     old_archive_from_expsyms_cmds_RC \
30117     allow_undefined_flag_RC \
30118     no_undefined_flag_RC \
30119     export_symbols_cmds_RC \
30120     hardcode_libdir_flag_spec_RC \
30121     hardcode_libdir_flag_spec_ld_RC \
30122     hardcode_libdir_separator_RC \
30123     hardcode_automatic_RC \
30124     module_cmds_RC \
30125     module_expsym_cmds_RC \
30126     lt_cv_prog_compiler_c_o_RC \
30127     exclude_expsyms_RC \
30128     include_expsyms_RC; do
30129
30130     case $var in
30131     old_archive_cmds_RC | \
30132     old_archive_from_new_cmds_RC | \
30133     archive_cmds_RC | \
30134     archive_expsym_cmds_RC | \
30135     module_cmds_RC | \
30136     module_expsym_cmds_RC | \
30137     old_archive_from_expsyms_cmds_RC | \
30138     export_symbols_cmds_RC | \
30139     extract_expsyms_cmds | reload_cmds | finish_cmds | \
30140     postinstall_cmds | postuninstall_cmds | \
30141     old_postinstall_cmds | old_postuninstall_cmds | \
30142     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
30143       # Double-quote double-evaled strings.
30144       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
30145       ;;
30146     *)
30147       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
30148       ;;
30149     esac
30150   done
30151
30152   case $lt_echo in
30153   *'\$0 --fallback-echo"')
30154     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
30155     ;;
30156   esac
30157
30158 cfgfile="$ofile"
30159
30160   cat <<__EOF__ >> "$cfgfile"
30161 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
30162
30163 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
30164
30165 # Shell to use when invoking shell scripts.
30166 SHELL=$lt_SHELL
30167
30168 # Whether or not to build shared libraries.
30169 build_libtool_libs=$enable_shared
30170
30171 # Whether or not to build static libraries.
30172 build_old_libs=$enable_static
30173
30174 # Whether or not to add -lc for building shared libraries.
30175 build_libtool_need_lc=$archive_cmds_need_lc_RC
30176
30177 # Whether or not to disallow shared libs when runtime libs are static
30178 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
30179
30180 # Whether or not to optimize for fast installation.
30181 fast_install=$enable_fast_install
30182
30183 # The host system.
30184 host_alias=$host_alias
30185 host=$host
30186 host_os=$host_os
30187
30188 # The build system.
30189 build_alias=$build_alias
30190 build=$build
30191 build_os=$build_os
30192
30193 # An echo program that does not interpret backslashes.
30194 echo=$lt_echo
30195
30196 # The archiver.
30197 AR=$lt_AR
30198 AR_FLAGS=$lt_AR_FLAGS
30199
30200 # A C compiler.
30201 LTCC=$lt_LTCC
30202
30203 # A language-specific compiler.
30204 CC=$lt_compiler_RC
30205
30206 # Is the compiler the GNU C compiler?
30207 with_gcc=$GCC_RC
30208
30209 # An ERE matcher.
30210 EGREP=$lt_EGREP
30211
30212 # The linker used to build libraries.
30213 LD=$lt_LD_RC
30214
30215 # Whether we need hard or soft links.
30216 LN_S=$lt_LN_S
30217
30218 # A BSD-compatible nm program.
30219 NM=$lt_NM
30220
30221 # A symbol stripping program
30222 STRIP=$lt_STRIP
30223
30224 # Used to examine libraries when file_magic_cmd begins "file"
30225 MAGIC_CMD=$MAGIC_CMD
30226
30227 # Used on cygwin: DLL creation program.
30228 DLLTOOL="$DLLTOOL"
30229
30230 # Used on cygwin: object dumper.
30231 OBJDUMP="$OBJDUMP"
30232
30233 # Used on cygwin: assembler.
30234 AS="$AS"
30235
30236 # The name of the directory that contains temporary libtool files.
30237 objdir=$objdir
30238
30239 # How to create reloadable object files.
30240 reload_flag=$lt_reload_flag
30241 reload_cmds=$lt_reload_cmds
30242
30243 # How to pass a linker flag through the compiler.
30244 wl=$lt_lt_prog_compiler_wl_RC
30245
30246 # Object file suffix (normally "o").
30247 objext="$ac_objext"
30248
30249 # Old archive suffix (normally "a").
30250 libext="$libext"
30251
30252 # Shared library suffix (normally ".so").
30253 shrext_cmds='$shrext_cmds'
30254
30255 # Executable file suffix (normally "").
30256 exeext="$exeext"
30257
30258 # Additional compiler flags for building library objects.
30259 pic_flag=$lt_lt_prog_compiler_pic_RC
30260 pic_mode=$pic_mode
30261
30262 # What is the maximum length of a command?
30263 max_cmd_len=$lt_cv_sys_max_cmd_len
30264
30265 # Does compiler simultaneously support -c and -o options?
30266 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
30267
30268 # Must we lock files when doing compilation?
30269 need_locks=$lt_need_locks
30270
30271 # Do we need the lib prefix for modules?
30272 need_lib_prefix=$need_lib_prefix
30273
30274 # Do we need a version for libraries?
30275 need_version=$need_version
30276
30277 # Whether dlopen is supported.
30278 dlopen_support=$enable_dlopen
30279
30280 # Whether dlopen of programs is supported.
30281 dlopen_self=$enable_dlopen_self
30282
30283 # Whether dlopen of statically linked programs is supported.
30284 dlopen_self_static=$enable_dlopen_self_static
30285
30286 # Compiler flag to prevent dynamic linking.
30287 link_static_flag=$lt_lt_prog_compiler_static_RC
30288
30289 # Compiler flag to turn off builtin functions.
30290 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
30291
30292 # Compiler flag to allow reflexive dlopens.
30293 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
30294
30295 # Compiler flag to generate shared objects directly from archives.
30296 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
30297
30298 # Compiler flag to generate thread-safe objects.
30299 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
30300
30301 # Library versioning type.
30302 version_type=$version_type
30303
30304 # Format of library name prefix.
30305 libname_spec=$lt_libname_spec
30306
30307 # List of archive names.  First name is the real one, the rest are links.
30308 # The last name is the one that the linker finds with -lNAME.
30309 library_names_spec=$lt_library_names_spec
30310
30311 # The coded name of the library, if different from the real name.
30312 soname_spec=$lt_soname_spec
30313
30314 # Commands used to build and install an old-style archive.
30315 RANLIB=$lt_RANLIB
30316 old_archive_cmds=$lt_old_archive_cmds_RC
30317 old_postinstall_cmds=$lt_old_postinstall_cmds
30318 old_postuninstall_cmds=$lt_old_postuninstall_cmds
30319
30320 # Create an old-style archive from a shared archive.
30321 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
30322
30323 # Create a temporary old-style archive to link instead of a shared archive.
30324 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
30325
30326 # Commands used to build and install a shared archive.
30327 archive_cmds=$lt_archive_cmds_RC
30328 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
30329 postinstall_cmds=$lt_postinstall_cmds
30330 postuninstall_cmds=$lt_postuninstall_cmds
30331
30332 # Commands used to build a loadable module (assumed same as above if empty)
30333 module_cmds=$lt_module_cmds_RC
30334 module_expsym_cmds=$lt_module_expsym_cmds_RC
30335
30336 # Commands to strip libraries.
30337 old_striplib=$lt_old_striplib
30338 striplib=$lt_striplib
30339
30340 # Dependencies to place before the objects being linked to create a
30341 # shared library.
30342 predep_objects=$lt_predep_objects_RC
30343
30344 # Dependencies to place after the objects being linked to create a
30345 # shared library.
30346 postdep_objects=$lt_postdep_objects_RC
30347
30348 # Dependencies to place before the objects being linked to create a
30349 # shared library.
30350 predeps=$lt_predeps_RC
30351
30352 # Dependencies to place after the objects being linked to create a
30353 # shared library.
30354 postdeps=$lt_postdeps_RC
30355
30356 # The library search path used internally by the compiler when linking
30357 # a shared library.
30358 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
30359
30360 # Method to check whether dependent libraries are shared objects.
30361 deplibs_check_method=$lt_deplibs_check_method
30362
30363 # Command to use when deplibs_check_method == file_magic.
30364 file_magic_cmd=$lt_file_magic_cmd
30365
30366 # Flag that allows shared libraries with undefined symbols to be built.
30367 allow_undefined_flag=$lt_allow_undefined_flag_RC
30368
30369 # Flag that forces no undefined symbols.
30370 no_undefined_flag=$lt_no_undefined_flag_RC
30371
30372 # Commands used to finish a libtool library installation in a directory.
30373 finish_cmds=$lt_finish_cmds
30374
30375 # Same as above, but a single script fragment to be evaled but not shown.
30376 finish_eval=$lt_finish_eval
30377
30378 # Take the output of nm and produce a listing of raw symbols and C names.
30379 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
30380
30381 # Transform the output of nm in a proper C declaration
30382 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
30383
30384 # Transform the output of nm in a C name address pair
30385 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
30386
30387 # This is the shared library runtime path variable.
30388 runpath_var=$runpath_var
30389
30390 # This is the shared library path variable.
30391 shlibpath_var=$shlibpath_var
30392
30393 # Is shlibpath searched before the hard-coded library search path?
30394 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
30395
30396 # How to hardcode a shared library path into an executable.
30397 hardcode_action=$hardcode_action_RC
30398
30399 # Whether we should hardcode library paths into libraries.
30400 hardcode_into_libs=$hardcode_into_libs
30401
30402 # Flag to hardcode \$libdir into a binary during linking.
30403 # This must work even if \$libdir does not exist.
30404 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
30405
30406 # If ld is used when linking, flag to hardcode \$libdir into
30407 # a binary during linking. This must work even if \$libdir does
30408 # not exist.
30409 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
30410
30411 # Whether we need a single -rpath flag with a separated argument.
30412 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
30413
30414 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
30415 # resulting binary.
30416 hardcode_direct=$hardcode_direct_RC
30417
30418 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
30419 # resulting binary.
30420 hardcode_minus_L=$hardcode_minus_L_RC
30421
30422 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
30423 # the resulting binary.
30424 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
30425
30426 # Set to yes if building a shared library automatically hardcodes DIR into the library
30427 # and all subsequent libraries and executables linked against it.
30428 hardcode_automatic=$hardcode_automatic_RC
30429
30430 # Variables whose values should be saved in libtool wrapper scripts and
30431 # restored at relink time.
30432 variables_saved_for_relink="$variables_saved_for_relink"
30433
30434 # Whether libtool must link a program against all its dependency libraries.
30435 link_all_deplibs=$link_all_deplibs_RC
30436
30437 # Compile-time system search path for libraries
30438 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
30439
30440 # Run-time system search path for libraries
30441 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
30442
30443 # Fix the shell variable \$srcfile for the compiler.
30444 fix_srcfile_path="$fix_srcfile_path_RC"
30445
30446 # Set to yes if exported symbols are required.
30447 always_export_symbols=$always_export_symbols_RC
30448
30449 # The commands to list exported symbols.
30450 export_symbols_cmds=$lt_export_symbols_cmds_RC
30451
30452 # The commands to extract the exported symbol list from a shared archive.
30453 extract_expsyms_cmds=$lt_extract_expsyms_cmds
30454
30455 # Symbols that should not be listed in the preloaded symbols.
30456 exclude_expsyms=$lt_exclude_expsyms_RC
30457
30458 # Symbols that must always be exported.
30459 include_expsyms=$lt_include_expsyms_RC
30460
30461 # ### END LIBTOOL TAG CONFIG: $tagname
30462
30463 __EOF__
30464
30465
30466 else
30467   # If there is no Makefile yet, we rely on a make rule to execute
30468   # `config.status --recheck' to rerun these tests and create the
30469   # libtool script then.
30470   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
30471   if test -f "$ltmain_in"; then
30472     test -f Makefile && make "$ltmain"
30473   fi
30474 fi
30475
30476
30477 ac_ext=c
30478 ac_cpp='$CPP $CPPFLAGS'
30479 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30480 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30481 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30482
30483 CC="$lt_save_CC"
30484
30485         ;;
30486
30487       *)
30488         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
30489 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
30490    { (exit 1); exit 1; }; }
30491         ;;
30492       esac
30493
30494       # Append the new tag name to the list of available tags.
30495       if test -n "$tagname" ; then
30496       available_tags="$available_tags $tagname"
30497     fi
30498     fi
30499   done
30500   IFS="$lt_save_ifs"
30501
30502   # Now substitute the updated list of available tags.
30503   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
30504     mv "${ofile}T" "$ofile"
30505     chmod +x "$ofile"
30506   else
30507     rm -f "${ofile}T"
30508     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
30509 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
30510    { (exit 1); exit 1; }; }
30511   fi
30512 fi
30513
30514
30515
30516 # This can be used to rebuild libtool when needed
30517 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
30518
30519 # Always use our own libtool.
30520 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
30521
30522 # Prevent multiple expansion
30523
30524
30525
30526
30527
30528
30529
30530
30531
30532
30533
30534
30535
30536
30537
30538
30539
30540
30541
30542
30543
30544
30545 if test $ac_cv_c_compiler_gnu = yes; then
30546     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
30547 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
30548 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
30549   echo $ECHO_N "(cached) $ECHO_C" >&6
30550 else
30551     ac_pattern="Autoconf.*'x'"
30552   cat >conftest.$ac_ext <<_ACEOF
30553 /* confdefs.h.  */
30554 _ACEOF
30555 cat confdefs.h >>conftest.$ac_ext
30556 cat >>conftest.$ac_ext <<_ACEOF
30557 /* end confdefs.h.  */
30558 #include <sgtty.h>
30559 Autoconf TIOCGETP
30560 _ACEOF
30561 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30562   $EGREP "$ac_pattern" >/dev/null 2>&1; then
30563   ac_cv_prog_gcc_traditional=yes
30564 else
30565   ac_cv_prog_gcc_traditional=no
30566 fi
30567 rm -f conftest*
30568
30569
30570   if test $ac_cv_prog_gcc_traditional = no; then
30571     cat >conftest.$ac_ext <<_ACEOF
30572 /* confdefs.h.  */
30573 _ACEOF
30574 cat confdefs.h >>conftest.$ac_ext
30575 cat >>conftest.$ac_ext <<_ACEOF
30576 /* end confdefs.h.  */
30577 #include <termio.h>
30578 Autoconf TCGETA
30579 _ACEOF
30580 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30581   $EGREP "$ac_pattern" >/dev/null 2>&1; then
30582   ac_cv_prog_gcc_traditional=yes
30583 fi
30584 rm -f conftest*
30585
30586   fi
30587 fi
30588 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
30589 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
30590   if test $ac_cv_prog_gcc_traditional = yes; then
30591     CC="$CC -traditional"
30592   fi
30593 fi
30594
30595 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
30596 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
30597 if test "${ac_cv_c_const+set}" = set; then
30598   echo $ECHO_N "(cached) $ECHO_C" >&6
30599 else
30600   cat >conftest.$ac_ext <<_ACEOF
30601 /* confdefs.h.  */
30602 _ACEOF
30603 cat confdefs.h >>conftest.$ac_ext
30604 cat >>conftest.$ac_ext <<_ACEOF
30605 /* end confdefs.h.  */
30606
30607 int
30608 main ()
30609 {
30610 /* FIXME: Include the comments suggested by Paul. */
30611 #ifndef __cplusplus
30612   /* Ultrix mips cc rejects this.  */
30613   typedef int charset[2];
30614   const charset x;
30615   /* SunOS 4.1.1 cc rejects this.  */
30616   char const *const *ccp;
30617   char **p;
30618   /* NEC SVR4.0.2 mips cc rejects this.  */
30619   struct point {int x, y;};
30620   static struct point const zero = {0,0};
30621   /* AIX XL C 1.02.0.0 rejects this.
30622      It does not let you subtract one const X* pointer from another in
30623      an arm of an if-expression whose if-part is not a constant
30624      expression */
30625   const char *g = "string";
30626   ccp = &g + (g ? g-g : 0);
30627   /* HPUX 7.0 cc rejects these. */
30628   ++ccp;
30629   p = (char**) ccp;
30630   ccp = (char const *const *) p;
30631   { /* SCO 3.2v4 cc rejects this.  */
30632     char *t;
30633     char const *s = 0 ? (char *) 0 : (char const *) 0;
30634
30635     *t++ = 0;
30636   }
30637   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
30638     int x[] = {25, 17};
30639     const int *foo = &x[0];
30640     ++foo;
30641   }
30642   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
30643     typedef const int *iptr;
30644     iptr p = 0;
30645     ++p;
30646   }
30647   { /* AIX XL C 1.02.0.0 rejects this saying
30648        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
30649     struct s { int j; const int *ap[3]; };
30650     struct s *b; b->j = 5;
30651   }
30652   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
30653     const int foo = 10;
30654   }
30655 #endif
30656
30657   ;
30658   return 0;
30659 }
30660 _ACEOF
30661 rm -f conftest.$ac_objext
30662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30663   (eval $ac_compile) 2>conftest.er1
30664   ac_status=$?
30665   grep -v '^ *+' conftest.er1 >conftest.err
30666   rm -f conftest.er1
30667   cat conftest.err >&5
30668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30669   (exit $ac_status); } &&
30670          { ac_try='test -z "$ac_c_werror_flag"
30671                          || test ! -s conftest.err'
30672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30673   (eval $ac_try) 2>&5
30674   ac_status=$?
30675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30676   (exit $ac_status); }; } &&
30677          { ac_try='test -s conftest.$ac_objext'
30678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30679   (eval $ac_try) 2>&5
30680   ac_status=$?
30681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30682   (exit $ac_status); }; }; then
30683   ac_cv_c_const=yes
30684 else
30685   echo "$as_me: failed program was:" >&5
30686 sed 's/^/| /' conftest.$ac_ext >&5
30687
30688 ac_cv_c_const=no
30689 fi
30690 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30691 fi
30692 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
30693 echo "${ECHO_T}$ac_cv_c_const" >&6
30694 if test $ac_cv_c_const = no; then
30695
30696 cat >>confdefs.h <<\_ACEOF
30697 #define const
30698 _ACEOF
30699
30700 fi
30701
30702
30703         echo "$as_me:$LINENO: checking for working volatile" >&5
30704 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
30705 if test "${amanda_cv_c_volatile+set}" = set; then
30706   echo $ECHO_N "(cached) $ECHO_C" >&6
30707 else
30708
30709                 cat >conftest.$ac_ext <<_ACEOF
30710 /* confdefs.h.  */
30711 _ACEOF
30712 cat confdefs.h >>conftest.$ac_ext
30713 cat >>conftest.$ac_ext <<_ACEOF
30714 /* end confdefs.h.  */
30715
30716 int
30717 main ()
30718 {
30719
30720                         volatile int aaa = 0;
30721
30722   ;
30723   return 0;
30724 }
30725 _ACEOF
30726 rm -f conftest.$ac_objext
30727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30728   (eval $ac_compile) 2>conftest.er1
30729   ac_status=$?
30730   grep -v '^ *+' conftest.er1 >conftest.err
30731   rm -f conftest.er1
30732   cat conftest.err >&5
30733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30734   (exit $ac_status); } &&
30735          { ac_try='test -z "$ac_c_werror_flag"
30736                          || test ! -s conftest.err'
30737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30738   (eval $ac_try) 2>&5
30739   ac_status=$?
30740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30741   (exit $ac_status); }; } &&
30742          { ac_try='test -s conftest.$ac_objext'
30743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30744   (eval $ac_try) 2>&5
30745   ac_status=$?
30746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30747   (exit $ac_status); }; }; then
30748   amanda_cv_c_volatile=yes
30749 else
30750   echo "$as_me: failed program was:" >&5
30751 sed 's/^/| /' conftest.$ac_ext >&5
30752
30753 amanda_cv_c_volatile=no
30754
30755 fi
30756 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30757
30758
30759 fi
30760 echo "$as_me:$LINENO: result: $amanda_cv_c_volatile" >&5
30761 echo "${ECHO_T}$amanda_cv_c_volatile" >&6
30762         if test $amanda_cv_c_volatile = no; then
30763
30764 cat >>confdefs.h <<\_ACEOF
30765 #define volatile
30766 _ACEOF
30767
30768         fi
30769
30770
30771
30772         echo "$as_me:$LINENO: checking for working unsigned long constants" >&5
30773 echo $ECHO_N "checking for working unsigned long constants... $ECHO_C" >&6
30774 if test "${amanda_cv_c_unsigned_long_constants+set}" = set; then
30775   echo $ECHO_N "(cached) $ECHO_C" >&6
30776 else
30777
30778                 cat >conftest.$ac_ext <<_ACEOF
30779 /* confdefs.h.  */
30780 _ACEOF
30781 cat confdefs.h >>conftest.$ac_ext
30782 cat >>conftest.$ac_ext <<_ACEOF
30783 /* end confdefs.h.  */
30784
30785
30786 int
30787 main ()
30788 {
30789
30790                         long l = 1ul;
30791
30792   ;
30793   return 0;
30794 }
30795 _ACEOF
30796 rm -f conftest.$ac_objext
30797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30798   (eval $ac_compile) 2>conftest.er1
30799   ac_status=$?
30800   grep -v '^ *+' conftest.er1 >conftest.err
30801   rm -f conftest.er1
30802   cat conftest.err >&5
30803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30804   (exit $ac_status); } &&
30805          { ac_try='test -z "$ac_c_werror_flag"
30806                          || test ! -s conftest.err'
30807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30808   (eval $ac_try) 2>&5
30809   ac_status=$?
30810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30811   (exit $ac_status); }; } &&
30812          { ac_try='test -s conftest.$ac_objext'
30813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30814   (eval $ac_try) 2>&5
30815   ac_status=$?
30816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30817   (exit $ac_status); }; }; then
30818   amanda_cv_c_unsigned_long_constants=yes
30819 else
30820   echo "$as_me: failed program was:" >&5
30821 sed 's/^/| /' conftest.$ac_ext >&5
30822
30823 amanda_cv_c_unsigned_long_constants=no
30824
30825 fi
30826 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30827
30828
30829 fi
30830 echo "$as_me:$LINENO: result: $amanda_cv_c_unsigned_long_constants" >&5
30831 echo "${ECHO_T}$amanda_cv_c_unsigned_long_constants" >&6
30832         if test "$amanda_cv_c_unsigned_long_constants" = yes; then
30833
30834 cat >>confdefs.h <<\_ACEOF
30835 #define HAVE_UNSIGNED_LONG_CONSTANTS 1
30836 _ACEOF
30837
30838         fi
30839
30840
30841 echo "$as_me:$LINENO: checking for off_t" >&5
30842 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
30843 if test "${ac_cv_type_off_t+set}" = set; then
30844   echo $ECHO_N "(cached) $ECHO_C" >&6
30845 else
30846   cat >conftest.$ac_ext <<_ACEOF
30847 /* confdefs.h.  */
30848 _ACEOF
30849 cat confdefs.h >>conftest.$ac_ext
30850 cat >>conftest.$ac_ext <<_ACEOF
30851 /* end confdefs.h.  */
30852 $ac_includes_default
30853 int
30854 main ()
30855 {
30856 if ((off_t *) 0)
30857   return 0;
30858 if (sizeof (off_t))
30859   return 0;
30860   ;
30861   return 0;
30862 }
30863 _ACEOF
30864 rm -f conftest.$ac_objext
30865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30866   (eval $ac_compile) 2>conftest.er1
30867   ac_status=$?
30868   grep -v '^ *+' conftest.er1 >conftest.err
30869   rm -f conftest.er1
30870   cat conftest.err >&5
30871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30872   (exit $ac_status); } &&
30873          { ac_try='test -z "$ac_c_werror_flag"
30874                          || test ! -s conftest.err'
30875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30876   (eval $ac_try) 2>&5
30877   ac_status=$?
30878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30879   (exit $ac_status); }; } &&
30880          { ac_try='test -s conftest.$ac_objext'
30881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30882   (eval $ac_try) 2>&5
30883   ac_status=$?
30884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30885   (exit $ac_status); }; }; then
30886   ac_cv_type_off_t=yes
30887 else
30888   echo "$as_me: failed program was:" >&5
30889 sed 's/^/| /' conftest.$ac_ext >&5
30890
30891 ac_cv_type_off_t=no
30892 fi
30893 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30894 fi
30895 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
30896 echo "${ECHO_T}$ac_cv_type_off_t" >&6
30897 if test $ac_cv_type_off_t = yes; then
30898   :
30899 else
30900
30901 cat >>confdefs.h <<_ACEOF
30902 #define off_t long
30903 _ACEOF
30904
30905 fi
30906
30907 echo "$as_me:$LINENO: checking for pid_t" >&5
30908 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
30909 if test "${ac_cv_type_pid_t+set}" = set; then
30910   echo $ECHO_N "(cached) $ECHO_C" >&6
30911 else
30912   cat >conftest.$ac_ext <<_ACEOF
30913 /* confdefs.h.  */
30914 _ACEOF
30915 cat confdefs.h >>conftest.$ac_ext
30916 cat >>conftest.$ac_ext <<_ACEOF
30917 /* end confdefs.h.  */
30918 $ac_includes_default
30919 int
30920 main ()
30921 {
30922 if ((pid_t *) 0)
30923   return 0;
30924 if (sizeof (pid_t))
30925   return 0;
30926   ;
30927   return 0;
30928 }
30929 _ACEOF
30930 rm -f conftest.$ac_objext
30931 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30932   (eval $ac_compile) 2>conftest.er1
30933   ac_status=$?
30934   grep -v '^ *+' conftest.er1 >conftest.err
30935   rm -f conftest.er1
30936   cat conftest.err >&5
30937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30938   (exit $ac_status); } &&
30939          { ac_try='test -z "$ac_c_werror_flag"
30940                          || test ! -s conftest.err'
30941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30942   (eval $ac_try) 2>&5
30943   ac_status=$?
30944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30945   (exit $ac_status); }; } &&
30946          { ac_try='test -s conftest.$ac_objext'
30947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30948   (eval $ac_try) 2>&5
30949   ac_status=$?
30950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30951   (exit $ac_status); }; }; then
30952   ac_cv_type_pid_t=yes
30953 else
30954   echo "$as_me: failed program was:" >&5
30955 sed 's/^/| /' conftest.$ac_ext >&5
30956
30957 ac_cv_type_pid_t=no
30958 fi
30959 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30960 fi
30961 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
30962 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
30963 if test $ac_cv_type_pid_t = yes; then
30964   :
30965 else
30966
30967 cat >>confdefs.h <<_ACEOF
30968 #define pid_t int
30969 _ACEOF
30970
30971 fi
30972
30973 echo "$as_me:$LINENO: checking for size_t" >&5
30974 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
30975 if test "${ac_cv_type_size_t+set}" = set; then
30976   echo $ECHO_N "(cached) $ECHO_C" >&6
30977 else
30978   cat >conftest.$ac_ext <<_ACEOF
30979 /* confdefs.h.  */
30980 _ACEOF
30981 cat confdefs.h >>conftest.$ac_ext
30982 cat >>conftest.$ac_ext <<_ACEOF
30983 /* end confdefs.h.  */
30984 $ac_includes_default
30985 int
30986 main ()
30987 {
30988 if ((size_t *) 0)
30989   return 0;
30990 if (sizeof (size_t))
30991   return 0;
30992   ;
30993   return 0;
30994 }
30995 _ACEOF
30996 rm -f conftest.$ac_objext
30997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30998   (eval $ac_compile) 2>conftest.er1
30999   ac_status=$?
31000   grep -v '^ *+' conftest.er1 >conftest.err
31001   rm -f conftest.er1
31002   cat conftest.err >&5
31003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31004   (exit $ac_status); } &&
31005          { ac_try='test -z "$ac_c_werror_flag"
31006                          || test ! -s conftest.err'
31007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31008   (eval $ac_try) 2>&5
31009   ac_status=$?
31010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31011   (exit $ac_status); }; } &&
31012          { ac_try='test -s conftest.$ac_objext'
31013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31014   (eval $ac_try) 2>&5
31015   ac_status=$?
31016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31017   (exit $ac_status); }; }; then
31018   ac_cv_type_size_t=yes
31019 else
31020   echo "$as_me: failed program was:" >&5
31021 sed 's/^/| /' conftest.$ac_ext >&5
31022
31023 ac_cv_type_size_t=no
31024 fi
31025 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31026 fi
31027 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
31028 echo "${ECHO_T}$ac_cv_type_size_t" >&6
31029 if test $ac_cv_type_size_t = yes; then
31030   :
31031 else
31032
31033 cat >>confdefs.h <<_ACEOF
31034 #define size_t unsigned
31035 _ACEOF
31036
31037 fi
31038
31039
31040 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
31041 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
31042 if test "${ac_cv_type_uid_t+set}" = set; then
31043   echo $ECHO_N "(cached) $ECHO_C" >&6
31044 else
31045   cat >conftest.$ac_ext <<_ACEOF
31046 /* confdefs.h.  */
31047 _ACEOF
31048 cat confdefs.h >>conftest.$ac_ext
31049 cat >>conftest.$ac_ext <<_ACEOF
31050 /* end confdefs.h.  */
31051 #include <sys/types.h>
31052
31053 _ACEOF
31054 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31055   $EGREP "uid_t" >/dev/null 2>&1; then
31056   ac_cv_type_uid_t=yes
31057 else
31058   ac_cv_type_uid_t=no
31059 fi
31060 rm -f conftest*
31061
31062 fi
31063 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
31064 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
31065 if test $ac_cv_type_uid_t = no; then
31066
31067 cat >>confdefs.h <<\_ACEOF
31068 #define uid_t int
31069 _ACEOF
31070
31071
31072 cat >>confdefs.h <<\_ACEOF
31073 #define gid_t int
31074 _ACEOF
31075
31076 fi
31077
31078 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
31079 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
31080 if test "${ac_cv_type_signal+set}" = set; then
31081   echo $ECHO_N "(cached) $ECHO_C" >&6
31082 else
31083   cat >conftest.$ac_ext <<_ACEOF
31084 /* confdefs.h.  */
31085 _ACEOF
31086 cat confdefs.h >>conftest.$ac_ext
31087 cat >>conftest.$ac_ext <<_ACEOF
31088 /* end confdefs.h.  */
31089 #include <sys/types.h>
31090 #include <signal.h>
31091 #ifdef signal
31092 # undef signal
31093 #endif
31094 #ifdef __cplusplus
31095 extern "C" void (*signal (int, void (*)(int)))(int);
31096 #else
31097 void (*signal ()) ();
31098 #endif
31099
31100 int
31101 main ()
31102 {
31103 int i;
31104   ;
31105   return 0;
31106 }
31107 _ACEOF
31108 rm -f conftest.$ac_objext
31109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31110   (eval $ac_compile) 2>conftest.er1
31111   ac_status=$?
31112   grep -v '^ *+' conftest.er1 >conftest.err
31113   rm -f conftest.er1
31114   cat conftest.err >&5
31115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31116   (exit $ac_status); } &&
31117          { ac_try='test -z "$ac_c_werror_flag"
31118                          || test ! -s conftest.err'
31119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31120   (eval $ac_try) 2>&5
31121   ac_status=$?
31122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31123   (exit $ac_status); }; } &&
31124          { ac_try='test -s conftest.$ac_objext'
31125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31126   (eval $ac_try) 2>&5
31127   ac_status=$?
31128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31129   (exit $ac_status); }; }; then
31130   ac_cv_type_signal=void
31131 else
31132   echo "$as_me: failed program was:" >&5
31133 sed 's/^/| /' conftest.$ac_ext >&5
31134
31135 ac_cv_type_signal=int
31136 fi
31137 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31138 fi
31139 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
31140 echo "${ECHO_T}$ac_cv_type_signal" >&6
31141
31142 cat >>confdefs.h <<_ACEOF
31143 #define RETSIGTYPE $ac_cv_type_signal
31144 _ACEOF
31145
31146
31147 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
31148 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
31149 if test "${ac_cv_struct_tm+set}" = set; then
31150   echo $ECHO_N "(cached) $ECHO_C" >&6
31151 else
31152   cat >conftest.$ac_ext <<_ACEOF
31153 /* confdefs.h.  */
31154 _ACEOF
31155 cat confdefs.h >>conftest.$ac_ext
31156 cat >>conftest.$ac_ext <<_ACEOF
31157 /* end confdefs.h.  */
31158 #include <sys/types.h>
31159 #include <time.h>
31160
31161 int
31162 main ()
31163 {
31164 struct tm *tp; tp->tm_sec;
31165   ;
31166   return 0;
31167 }
31168 _ACEOF
31169 rm -f conftest.$ac_objext
31170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31171   (eval $ac_compile) 2>conftest.er1
31172   ac_status=$?
31173   grep -v '^ *+' conftest.er1 >conftest.err
31174   rm -f conftest.er1
31175   cat conftest.err >&5
31176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31177   (exit $ac_status); } &&
31178          { ac_try='test -z "$ac_c_werror_flag"
31179                          || test ! -s conftest.err'
31180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31181   (eval $ac_try) 2>&5
31182   ac_status=$?
31183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31184   (exit $ac_status); }; } &&
31185          { ac_try='test -s conftest.$ac_objext'
31186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31187   (eval $ac_try) 2>&5
31188   ac_status=$?
31189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31190   (exit $ac_status); }; }; then
31191   ac_cv_struct_tm=time.h
31192 else
31193   echo "$as_me: failed program was:" >&5
31194 sed 's/^/| /' conftest.$ac_ext >&5
31195
31196 ac_cv_struct_tm=sys/time.h
31197 fi
31198 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31199 fi
31200 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
31201 echo "${ECHO_T}$ac_cv_struct_tm" >&6
31202 if test $ac_cv_struct_tm = sys/time.h; then
31203
31204 cat >>confdefs.h <<\_ACEOF
31205 #define TM_IN_SYS_TIME 1
31206 _ACEOF
31207
31208 fi
31209
31210 for ac_prog in flex lex
31211 do
31212   # Extract the first word of "$ac_prog", so it can be a program name with args.
31213 set dummy $ac_prog; ac_word=$2
31214 echo "$as_me:$LINENO: checking for $ac_word" >&5
31215 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
31216 if test "${ac_cv_prog_LEX+set}" = set; then
31217   echo $ECHO_N "(cached) $ECHO_C" >&6
31218 else
31219   if test -n "$LEX"; then
31220   ac_cv_prog_LEX="$LEX" # Let the user override the test.
31221 else
31222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31223 for as_dir in $PATH
31224 do
31225   IFS=$as_save_IFS
31226   test -z "$as_dir" && as_dir=.
31227   for ac_exec_ext in '' $ac_executable_extensions; do
31228   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31229     ac_cv_prog_LEX="$ac_prog"
31230     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31231     break 2
31232   fi
31233 done
31234 done
31235
31236 fi
31237 fi
31238 LEX=$ac_cv_prog_LEX
31239 if test -n "$LEX"; then
31240   echo "$as_me:$LINENO: result: $LEX" >&5
31241 echo "${ECHO_T}$LEX" >&6
31242 else
31243   echo "$as_me:$LINENO: result: no" >&5
31244 echo "${ECHO_T}no" >&6
31245 fi
31246
31247   test -n "$LEX" && break
31248 done
31249 test -n "$LEX" || LEX=":"
31250
31251 if test -z "$LEXLIB"
31252 then
31253   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
31254 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
31255 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
31256   echo $ECHO_N "(cached) $ECHO_C" >&6
31257 else
31258   ac_check_lib_save_LIBS=$LIBS
31259 LIBS="-lfl  $LIBS"
31260 cat >conftest.$ac_ext <<_ACEOF
31261 /* confdefs.h.  */
31262 _ACEOF
31263 cat confdefs.h >>conftest.$ac_ext
31264 cat >>conftest.$ac_ext <<_ACEOF
31265 /* end confdefs.h.  */
31266
31267 /* Override any gcc2 internal prototype to avoid an error.  */
31268 #ifdef __cplusplus
31269 extern "C"
31270 #endif
31271 /* We use char because int might match the return type of a gcc2
31272    builtin and then its argument prototype would still apply.  */
31273 char yywrap ();
31274 int
31275 main ()
31276 {
31277 yywrap ();
31278   ;
31279   return 0;
31280 }
31281 _ACEOF
31282 rm -f conftest.$ac_objext conftest$ac_exeext
31283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31284   (eval $ac_link) 2>conftest.er1
31285   ac_status=$?
31286   grep -v '^ *+' conftest.er1 >conftest.err
31287   rm -f conftest.er1
31288   cat conftest.err >&5
31289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31290   (exit $ac_status); } &&
31291          { ac_try='test -z "$ac_c_werror_flag"
31292                          || test ! -s conftest.err'
31293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31294   (eval $ac_try) 2>&5
31295   ac_status=$?
31296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31297   (exit $ac_status); }; } &&
31298          { ac_try='test -s conftest$ac_exeext'
31299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31300   (eval $ac_try) 2>&5
31301   ac_status=$?
31302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31303   (exit $ac_status); }; }; then
31304   ac_cv_lib_fl_yywrap=yes
31305 else
31306   echo "$as_me: failed program was:" >&5
31307 sed 's/^/| /' conftest.$ac_ext >&5
31308
31309 ac_cv_lib_fl_yywrap=no
31310 fi
31311 rm -f conftest.err conftest.$ac_objext \
31312       conftest$ac_exeext conftest.$ac_ext
31313 LIBS=$ac_check_lib_save_LIBS
31314 fi
31315 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
31316 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
31317 if test $ac_cv_lib_fl_yywrap = yes; then
31318   LEXLIB="-lfl"
31319 else
31320   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
31321 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
31322 if test "${ac_cv_lib_l_yywrap+set}" = set; then
31323   echo $ECHO_N "(cached) $ECHO_C" >&6
31324 else
31325   ac_check_lib_save_LIBS=$LIBS
31326 LIBS="-ll  $LIBS"
31327 cat >conftest.$ac_ext <<_ACEOF
31328 /* confdefs.h.  */
31329 _ACEOF
31330 cat confdefs.h >>conftest.$ac_ext
31331 cat >>conftest.$ac_ext <<_ACEOF
31332 /* end confdefs.h.  */
31333
31334 /* Override any gcc2 internal prototype to avoid an error.  */
31335 #ifdef __cplusplus
31336 extern "C"
31337 #endif
31338 /* We use char because int might match the return type of a gcc2
31339    builtin and then its argument prototype would still apply.  */
31340 char yywrap ();
31341 int
31342 main ()
31343 {
31344 yywrap ();
31345   ;
31346   return 0;
31347 }
31348 _ACEOF
31349 rm -f conftest.$ac_objext conftest$ac_exeext
31350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31351   (eval $ac_link) 2>conftest.er1
31352   ac_status=$?
31353   grep -v '^ *+' conftest.er1 >conftest.err
31354   rm -f conftest.er1
31355   cat conftest.err >&5
31356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31357   (exit $ac_status); } &&
31358          { ac_try='test -z "$ac_c_werror_flag"
31359                          || test ! -s conftest.err'
31360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31361   (eval $ac_try) 2>&5
31362   ac_status=$?
31363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31364   (exit $ac_status); }; } &&
31365          { ac_try='test -s conftest$ac_exeext'
31366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31367   (eval $ac_try) 2>&5
31368   ac_status=$?
31369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31370   (exit $ac_status); }; }; then
31371   ac_cv_lib_l_yywrap=yes
31372 else
31373   echo "$as_me: failed program was:" >&5
31374 sed 's/^/| /' conftest.$ac_ext >&5
31375
31376 ac_cv_lib_l_yywrap=no
31377 fi
31378 rm -f conftest.err conftest.$ac_objext \
31379       conftest$ac_exeext conftest.$ac_ext
31380 LIBS=$ac_check_lib_save_LIBS
31381 fi
31382 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
31383 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
31384 if test $ac_cv_lib_l_yywrap = yes; then
31385   LEXLIB="-ll"
31386 fi
31387
31388 fi
31389
31390 fi
31391
31392 if test "x$LEX" != "x:"; then
31393   echo "$as_me:$LINENO: checking lex output file root" >&5
31394 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
31395 if test "${ac_cv_prog_lex_root+set}" = set; then
31396   echo $ECHO_N "(cached) $ECHO_C" >&6
31397 else
31398   # The minimal lex program is just a single line: %%.  But some broken lexes
31399 # (Solaris, I think it was) want two %% lines, so accommodate them.
31400 cat >conftest.l <<_ACEOF
31401 %%
31402 %%
31403 _ACEOF
31404 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
31405   (eval $LEX conftest.l) 2>&5
31406   ac_status=$?
31407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31408   (exit $ac_status); }
31409 if test -f lex.yy.c; then
31410   ac_cv_prog_lex_root=lex.yy
31411 elif test -f lexyy.c; then
31412   ac_cv_prog_lex_root=lexyy
31413 else
31414   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
31415 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
31416    { (exit 1); exit 1; }; }
31417 fi
31418 fi
31419 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
31420 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
31421 rm -f conftest.l
31422 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
31423
31424 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
31425 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
31426 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
31427   echo $ECHO_N "(cached) $ECHO_C" >&6
31428 else
31429   # POSIX says lex can declare yytext either as a pointer or an array; the
31430 # default is implementation-dependent. Figure out which it is, since
31431 # not all implementations provide the %pointer and %array declarations.
31432 ac_cv_prog_lex_yytext_pointer=no
31433 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
31434 ac_save_LIBS=$LIBS
31435 LIBS="$LIBS $LEXLIB"
31436 cat >conftest.$ac_ext <<_ACEOF
31437 `cat $LEX_OUTPUT_ROOT.c`
31438 _ACEOF
31439 rm -f conftest.$ac_objext conftest$ac_exeext
31440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31441   (eval $ac_link) 2>conftest.er1
31442   ac_status=$?
31443   grep -v '^ *+' conftest.er1 >conftest.err
31444   rm -f conftest.er1
31445   cat conftest.err >&5
31446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31447   (exit $ac_status); } &&
31448          { ac_try='test -z "$ac_c_werror_flag"
31449                          || test ! -s conftest.err'
31450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31451   (eval $ac_try) 2>&5
31452   ac_status=$?
31453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31454   (exit $ac_status); }; } &&
31455          { ac_try='test -s conftest$ac_exeext'
31456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31457   (eval $ac_try) 2>&5
31458   ac_status=$?
31459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31460   (exit $ac_status); }; }; then
31461   ac_cv_prog_lex_yytext_pointer=yes
31462 else
31463   echo "$as_me: failed program was:" >&5
31464 sed 's/^/| /' conftest.$ac_ext >&5
31465
31466 fi
31467 rm -f conftest.err conftest.$ac_objext \
31468       conftest$ac_exeext conftest.$ac_ext
31469 LIBS=$ac_save_LIBS
31470 rm -f "${LEX_OUTPUT_ROOT}.c"
31471
31472 fi
31473 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
31474 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
31475 if test $ac_cv_prog_lex_yytext_pointer = yes; then
31476
31477 cat >>confdefs.h <<\_ACEOF
31478 #define YYTEXT_POINTER 1
31479 _ACEOF
31480
31481 fi
31482
31483 fi
31484 if test "$LEX" = :; then
31485   LEX=${am_missing_run}flex
31486 fi
31487
31488 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
31489 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
31490 if test "${ac_cv_header_stdc+set}" = set; then
31491   echo $ECHO_N "(cached) $ECHO_C" >&6
31492 else
31493   cat >conftest.$ac_ext <<_ACEOF
31494 /* confdefs.h.  */
31495 _ACEOF
31496 cat confdefs.h >>conftest.$ac_ext
31497 cat >>conftest.$ac_ext <<_ACEOF
31498 /* end confdefs.h.  */
31499 #include <stdlib.h>
31500 #include <stdarg.h>
31501 #include <string.h>
31502 #include <float.h>
31503
31504 int
31505 main ()
31506 {
31507
31508   ;
31509   return 0;
31510 }
31511 _ACEOF
31512 rm -f conftest.$ac_objext
31513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31514   (eval $ac_compile) 2>conftest.er1
31515   ac_status=$?
31516   grep -v '^ *+' conftest.er1 >conftest.err
31517   rm -f conftest.er1
31518   cat conftest.err >&5
31519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31520   (exit $ac_status); } &&
31521          { ac_try='test -z "$ac_c_werror_flag"
31522                          || test ! -s conftest.err'
31523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31524   (eval $ac_try) 2>&5
31525   ac_status=$?
31526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31527   (exit $ac_status); }; } &&
31528          { ac_try='test -s conftest.$ac_objext'
31529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31530   (eval $ac_try) 2>&5
31531   ac_status=$?
31532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31533   (exit $ac_status); }; }; then
31534   ac_cv_header_stdc=yes
31535 else
31536   echo "$as_me: failed program was:" >&5
31537 sed 's/^/| /' conftest.$ac_ext >&5
31538
31539 ac_cv_header_stdc=no
31540 fi
31541 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31542
31543 if test $ac_cv_header_stdc = yes; then
31544   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
31545   cat >conftest.$ac_ext <<_ACEOF
31546 /* confdefs.h.  */
31547 _ACEOF
31548 cat confdefs.h >>conftest.$ac_ext
31549 cat >>conftest.$ac_ext <<_ACEOF
31550 /* end confdefs.h.  */
31551 #include <string.h>
31552
31553 _ACEOF
31554 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31555   $EGREP "memchr" >/dev/null 2>&1; then
31556   :
31557 else
31558   ac_cv_header_stdc=no
31559 fi
31560 rm -f conftest*
31561
31562 fi
31563
31564 if test $ac_cv_header_stdc = yes; then
31565   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
31566   cat >conftest.$ac_ext <<_ACEOF
31567 /* confdefs.h.  */
31568 _ACEOF
31569 cat confdefs.h >>conftest.$ac_ext
31570 cat >>conftest.$ac_ext <<_ACEOF
31571 /* end confdefs.h.  */
31572 #include <stdlib.h>
31573
31574 _ACEOF
31575 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31576   $EGREP "free" >/dev/null 2>&1; then
31577   :
31578 else
31579   ac_cv_header_stdc=no
31580 fi
31581 rm -f conftest*
31582
31583 fi
31584
31585 if test $ac_cv_header_stdc = yes; then
31586   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
31587   if test "$cross_compiling" = yes; then
31588   :
31589 else
31590   cat >conftest.$ac_ext <<_ACEOF
31591 /* confdefs.h.  */
31592 _ACEOF
31593 cat confdefs.h >>conftest.$ac_ext
31594 cat >>conftest.$ac_ext <<_ACEOF
31595 /* end confdefs.h.  */
31596 #include <ctype.h>
31597 #if ((' ' & 0x0FF) == 0x020)
31598 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
31599 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
31600 #else
31601 # define ISLOWER(c) \
31602                    (('a' <= (c) && (c) <= 'i') \
31603                      || ('j' <= (c) && (c) <= 'r') \
31604                      || ('s' <= (c) && (c) <= 'z'))
31605 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
31606 #endif
31607
31608 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
31609 int
31610 main ()
31611 {
31612   int i;
31613   for (i = 0; i < 256; i++)
31614     if (XOR (islower (i), ISLOWER (i))
31615         || toupper (i) != TOUPPER (i))
31616       exit(2);
31617   exit (0);
31618 }
31619 _ACEOF
31620 rm -f conftest$ac_exeext
31621 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31622   (eval $ac_link) 2>&5
31623   ac_status=$?
31624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31625   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31627   (eval $ac_try) 2>&5
31628   ac_status=$?
31629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31630   (exit $ac_status); }; }; then
31631   :
31632 else
31633   echo "$as_me: program exited with status $ac_status" >&5
31634 echo "$as_me: failed program was:" >&5
31635 sed 's/^/| /' conftest.$ac_ext >&5
31636
31637 ( exit $ac_status )
31638 ac_cv_header_stdc=no
31639 fi
31640 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31641 fi
31642 fi
31643 fi
31644 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
31645 echo "${ECHO_T}$ac_cv_header_stdc" >&6
31646 if test $ac_cv_header_stdc = yes; then
31647
31648 cat >>confdefs.h <<\_ACEOF
31649 #define STDC_HEADERS 1
31650 _ACEOF
31651
31652 fi
31653
31654
31655
31656 echo "$as_me:$LINENO: checking for socklen_t" >&5
31657 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
31658 if test "${ac_cv_type_socklen_t+set}" = set; then
31659   echo $ECHO_N "(cached) $ECHO_C" >&6
31660 else
31661   cat >conftest.$ac_ext <<_ACEOF
31662 /* confdefs.h.  */
31663 _ACEOF
31664 cat confdefs.h >>conftest.$ac_ext
31665 cat >>conftest.$ac_ext <<_ACEOF
31666 /* end confdefs.h.  */
31667 #include <sys/types.h>
31668 #if STDC_HEADERS
31669 #include <stdlib.h>
31670 #include <stddef.h>
31671 #endif
31672 #include <sys/socket.h>
31673 _ACEOF
31674 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31675   $EGREP "(^|[^a-zA-Z_0-9])socklen_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
31676   ac_cv_type_socklen_t=yes
31677 else
31678   ac_cv_type_socklen_t=no
31679 fi
31680 rm -f conftest*
31681
31682 fi
31683 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
31684 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
31685 if test "x$ac_cv_type_socklen_t" = xno; then
31686
31687 cat >>confdefs.h <<\_ACEOF
31688 #define socklen_t int
31689 _ACEOF
31690
31691 fi
31692
31693 echo "$as_me:$LINENO: checking for sa_family_t" >&5
31694 echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6
31695 if test "${ac_cv_type_sa_family_t+set}" = set; then
31696   echo $ECHO_N "(cached) $ECHO_C" >&6
31697 else
31698   cat >conftest.$ac_ext <<_ACEOF
31699 /* confdefs.h.  */
31700 _ACEOF
31701 cat confdefs.h >>conftest.$ac_ext
31702 cat >>conftest.$ac_ext <<_ACEOF
31703 /* end confdefs.h.  */
31704 #include <sys/types.h>
31705 #if STDC_HEADERS
31706 #include <stdlib.h>
31707 #include <stddef.h>
31708 #endif
31709 #include <sys/socket.h>
31710 _ACEOF
31711 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31712   $EGREP "(^|[^a-zA-Z_0-9])sa_family_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
31713   ac_cv_type_sa_family_t=yes
31714 else
31715   ac_cv_type_sa_family_t=no
31716 fi
31717 rm -f conftest*
31718
31719 fi
31720 echo "$as_me:$LINENO: result: $ac_cv_type_sa_family_t" >&5
31721 echo "${ECHO_T}$ac_cv_type_sa_family_t" >&6
31722 if test "x$ac_cv_type_sa_family_t" = xno; then
31723
31724 cat >>confdefs.h <<\_ACEOF
31725 #define sa_family_t unsigned short
31726 _ACEOF
31727
31728 fi
31729
31730
31731
31732
31733
31734
31735
31736 ac_header_dirent=no
31737 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
31738   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
31739 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
31740 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
31741 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31742   echo $ECHO_N "(cached) $ECHO_C" >&6
31743 else
31744   cat >conftest.$ac_ext <<_ACEOF
31745 /* confdefs.h.  */
31746 _ACEOF
31747 cat confdefs.h >>conftest.$ac_ext
31748 cat >>conftest.$ac_ext <<_ACEOF
31749 /* end confdefs.h.  */
31750 #include <sys/types.h>
31751 #include <$ac_hdr>
31752
31753 int
31754 main ()
31755 {
31756 if ((DIR *) 0)
31757 return 0;
31758   ;
31759   return 0;
31760 }
31761 _ACEOF
31762 rm -f conftest.$ac_objext
31763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31764   (eval $ac_compile) 2>conftest.er1
31765   ac_status=$?
31766   grep -v '^ *+' conftest.er1 >conftest.err
31767   rm -f conftest.er1
31768   cat conftest.err >&5
31769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31770   (exit $ac_status); } &&
31771          { ac_try='test -z "$ac_c_werror_flag"
31772                          || test ! -s conftest.err'
31773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31774   (eval $ac_try) 2>&5
31775   ac_status=$?
31776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31777   (exit $ac_status); }; } &&
31778          { ac_try='test -s conftest.$ac_objext'
31779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31780   (eval $ac_try) 2>&5
31781   ac_status=$?
31782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31783   (exit $ac_status); }; }; then
31784   eval "$as_ac_Header=yes"
31785 else
31786   echo "$as_me: failed program was:" >&5
31787 sed 's/^/| /' conftest.$ac_ext >&5
31788
31789 eval "$as_ac_Header=no"
31790 fi
31791 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31792 fi
31793 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31794 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31795 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31796   cat >>confdefs.h <<_ACEOF
31797 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
31798 _ACEOF
31799
31800 ac_header_dirent=$ac_hdr; break
31801 fi
31802
31803 done
31804 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
31805 if test $ac_header_dirent = dirent.h; then
31806   echo "$as_me:$LINENO: checking for library containing opendir" >&5
31807 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
31808 if test "${ac_cv_search_opendir+set}" = set; then
31809   echo $ECHO_N "(cached) $ECHO_C" >&6
31810 else
31811   ac_func_search_save_LIBS=$LIBS
31812 ac_cv_search_opendir=no
31813 cat >conftest.$ac_ext <<_ACEOF
31814 /* confdefs.h.  */
31815 _ACEOF
31816 cat confdefs.h >>conftest.$ac_ext
31817 cat >>conftest.$ac_ext <<_ACEOF
31818 /* end confdefs.h.  */
31819
31820 /* Override any gcc2 internal prototype to avoid an error.  */
31821 #ifdef __cplusplus
31822 extern "C"
31823 #endif
31824 /* We use char because int might match the return type of a gcc2
31825    builtin and then its argument prototype would still apply.  */
31826 char opendir ();
31827 int
31828 main ()
31829 {
31830 opendir ();
31831   ;
31832   return 0;
31833 }
31834 _ACEOF
31835 rm -f conftest.$ac_objext conftest$ac_exeext
31836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31837   (eval $ac_link) 2>conftest.er1
31838   ac_status=$?
31839   grep -v '^ *+' conftest.er1 >conftest.err
31840   rm -f conftest.er1
31841   cat conftest.err >&5
31842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31843   (exit $ac_status); } &&
31844          { ac_try='test -z "$ac_c_werror_flag"
31845                          || test ! -s conftest.err'
31846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31847   (eval $ac_try) 2>&5
31848   ac_status=$?
31849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31850   (exit $ac_status); }; } &&
31851          { ac_try='test -s conftest$ac_exeext'
31852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31853   (eval $ac_try) 2>&5
31854   ac_status=$?
31855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31856   (exit $ac_status); }; }; then
31857   ac_cv_search_opendir="none required"
31858 else
31859   echo "$as_me: failed program was:" >&5
31860 sed 's/^/| /' conftest.$ac_ext >&5
31861
31862 fi
31863 rm -f conftest.err conftest.$ac_objext \
31864       conftest$ac_exeext conftest.$ac_ext
31865 if test "$ac_cv_search_opendir" = no; then
31866   for ac_lib in dir; do
31867     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
31868     cat >conftest.$ac_ext <<_ACEOF
31869 /* confdefs.h.  */
31870 _ACEOF
31871 cat confdefs.h >>conftest.$ac_ext
31872 cat >>conftest.$ac_ext <<_ACEOF
31873 /* end confdefs.h.  */
31874
31875 /* Override any gcc2 internal prototype to avoid an error.  */
31876 #ifdef __cplusplus
31877 extern "C"
31878 #endif
31879 /* We use char because int might match the return type of a gcc2
31880    builtin and then its argument prototype would still apply.  */
31881 char opendir ();
31882 int
31883 main ()
31884 {
31885 opendir ();
31886   ;
31887   return 0;
31888 }
31889 _ACEOF
31890 rm -f conftest.$ac_objext conftest$ac_exeext
31891 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31892   (eval $ac_link) 2>conftest.er1
31893   ac_status=$?
31894   grep -v '^ *+' conftest.er1 >conftest.err
31895   rm -f conftest.er1
31896   cat conftest.err >&5
31897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31898   (exit $ac_status); } &&
31899          { ac_try='test -z "$ac_c_werror_flag"
31900                          || test ! -s conftest.err'
31901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31902   (eval $ac_try) 2>&5
31903   ac_status=$?
31904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31905   (exit $ac_status); }; } &&
31906          { ac_try='test -s conftest$ac_exeext'
31907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31908   (eval $ac_try) 2>&5
31909   ac_status=$?
31910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31911   (exit $ac_status); }; }; then
31912   ac_cv_search_opendir="-l$ac_lib"
31913 break
31914 else
31915   echo "$as_me: failed program was:" >&5
31916 sed 's/^/| /' conftest.$ac_ext >&5
31917
31918 fi
31919 rm -f conftest.err conftest.$ac_objext \
31920       conftest$ac_exeext conftest.$ac_ext
31921   done
31922 fi
31923 LIBS=$ac_func_search_save_LIBS
31924 fi
31925 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
31926 echo "${ECHO_T}$ac_cv_search_opendir" >&6
31927 if test "$ac_cv_search_opendir" != no; then
31928   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
31929
31930 fi
31931
31932 else
31933   echo "$as_me:$LINENO: checking for library containing opendir" >&5
31934 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
31935 if test "${ac_cv_search_opendir+set}" = set; then
31936   echo $ECHO_N "(cached) $ECHO_C" >&6
31937 else
31938   ac_func_search_save_LIBS=$LIBS
31939 ac_cv_search_opendir=no
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
31947 /* Override any gcc2 internal prototype to avoid an error.  */
31948 #ifdef __cplusplus
31949 extern "C"
31950 #endif
31951 /* We use char because int might match the return type of a gcc2
31952    builtin and then its argument prototype would still apply.  */
31953 char opendir ();
31954 int
31955 main ()
31956 {
31957 opendir ();
31958   ;
31959   return 0;
31960 }
31961 _ACEOF
31962 rm -f conftest.$ac_objext conftest$ac_exeext
31963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31964   (eval $ac_link) 2>conftest.er1
31965   ac_status=$?
31966   grep -v '^ *+' conftest.er1 >conftest.err
31967   rm -f conftest.er1
31968   cat conftest.err >&5
31969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31970   (exit $ac_status); } &&
31971          { ac_try='test -z "$ac_c_werror_flag"
31972                          || test ! -s conftest.err'
31973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31974   (eval $ac_try) 2>&5
31975   ac_status=$?
31976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31977   (exit $ac_status); }; } &&
31978          { ac_try='test -s conftest$ac_exeext'
31979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&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_search_opendir="none required"
31985 else
31986   echo "$as_me: failed program was:" >&5
31987 sed 's/^/| /' conftest.$ac_ext >&5
31988
31989 fi
31990 rm -f conftest.err conftest.$ac_objext \
31991       conftest$ac_exeext conftest.$ac_ext
31992 if test "$ac_cv_search_opendir" = no; then
31993   for ac_lib in x; do
31994     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
31995     cat >conftest.$ac_ext <<_ACEOF
31996 /* confdefs.h.  */
31997 _ACEOF
31998 cat confdefs.h >>conftest.$ac_ext
31999 cat >>conftest.$ac_ext <<_ACEOF
32000 /* end confdefs.h.  */
32001
32002 /* Override any gcc2 internal prototype to avoid an error.  */
32003 #ifdef __cplusplus
32004 extern "C"
32005 #endif
32006 /* We use char because int might match the return type of a gcc2
32007    builtin and then its argument prototype would still apply.  */
32008 char opendir ();
32009 int
32010 main ()
32011 {
32012 opendir ();
32013   ;
32014   return 0;
32015 }
32016 _ACEOF
32017 rm -f conftest.$ac_objext conftest$ac_exeext
32018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32019   (eval $ac_link) 2>conftest.er1
32020   ac_status=$?
32021   grep -v '^ *+' conftest.er1 >conftest.err
32022   rm -f conftest.er1
32023   cat conftest.err >&5
32024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32025   (exit $ac_status); } &&
32026          { ac_try='test -z "$ac_c_werror_flag"
32027                          || test ! -s conftest.err'
32028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32029   (eval $ac_try) 2>&5
32030   ac_status=$?
32031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32032   (exit $ac_status); }; } &&
32033          { ac_try='test -s conftest$ac_exeext'
32034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32035   (eval $ac_try) 2>&5
32036   ac_status=$?
32037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32038   (exit $ac_status); }; }; then
32039   ac_cv_search_opendir="-l$ac_lib"
32040 break
32041 else
32042   echo "$as_me: failed program was:" >&5
32043 sed 's/^/| /' conftest.$ac_ext >&5
32044
32045 fi
32046 rm -f conftest.err conftest.$ac_objext \
32047       conftest$ac_exeext conftest.$ac_ext
32048   done
32049 fi
32050 LIBS=$ac_func_search_save_LIBS
32051 fi
32052 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
32053 echo "${ECHO_T}$ac_cv_search_opendir" >&6
32054 if test "$ac_cv_search_opendir" != no; then
32055   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
32056
32057 fi
32058
32059 fi
32060
32061
32062
32063
32064
32065 for ac_header in sys/wait.h wait.h
32066 do
32067 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32068 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32069   echo "$as_me:$LINENO: checking for $ac_header" >&5
32070 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32071 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32072   echo $ECHO_N "(cached) $ECHO_C" >&6
32073 fi
32074 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32075 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32076 else
32077   # Is the header compilable?
32078 echo "$as_me:$LINENO: checking $ac_header usability" >&5
32079 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32080 cat >conftest.$ac_ext <<_ACEOF
32081 /* confdefs.h.  */
32082 _ACEOF
32083 cat confdefs.h >>conftest.$ac_ext
32084 cat >>conftest.$ac_ext <<_ACEOF
32085 /* end confdefs.h.  */
32086 $ac_includes_default
32087 #include <$ac_header>
32088 _ACEOF
32089 rm -f conftest.$ac_objext
32090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32091   (eval $ac_compile) 2>conftest.er1
32092   ac_status=$?
32093   grep -v '^ *+' conftest.er1 >conftest.err
32094   rm -f conftest.er1
32095   cat conftest.err >&5
32096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32097   (exit $ac_status); } &&
32098          { ac_try='test -z "$ac_c_werror_flag"
32099                          || test ! -s conftest.err'
32100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32101   (eval $ac_try) 2>&5
32102   ac_status=$?
32103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32104   (exit $ac_status); }; } &&
32105          { ac_try='test -s conftest.$ac_objext'
32106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32107   (eval $ac_try) 2>&5
32108   ac_status=$?
32109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32110   (exit $ac_status); }; }; then
32111   ac_header_compiler=yes
32112 else
32113   echo "$as_me: failed program was:" >&5
32114 sed 's/^/| /' conftest.$ac_ext >&5
32115
32116 ac_header_compiler=no
32117 fi
32118 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32119 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32120 echo "${ECHO_T}$ac_header_compiler" >&6
32121
32122 # Is the header present?
32123 echo "$as_me:$LINENO: checking $ac_header presence" >&5
32124 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32125 cat >conftest.$ac_ext <<_ACEOF
32126 /* confdefs.h.  */
32127 _ACEOF
32128 cat confdefs.h >>conftest.$ac_ext
32129 cat >>conftest.$ac_ext <<_ACEOF
32130 /* end confdefs.h.  */
32131 #include <$ac_header>
32132 _ACEOF
32133 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32134   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32135   ac_status=$?
32136   grep -v '^ *+' conftest.er1 >conftest.err
32137   rm -f conftest.er1
32138   cat conftest.err >&5
32139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32140   (exit $ac_status); } >/dev/null; then
32141   if test -s conftest.err; then
32142     ac_cpp_err=$ac_c_preproc_warn_flag
32143     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32144   else
32145     ac_cpp_err=
32146   fi
32147 else
32148   ac_cpp_err=yes
32149 fi
32150 if test -z "$ac_cpp_err"; then
32151   ac_header_preproc=yes
32152 else
32153   echo "$as_me: failed program was:" >&5
32154 sed 's/^/| /' conftest.$ac_ext >&5
32155
32156   ac_header_preproc=no
32157 fi
32158 rm -f conftest.err conftest.$ac_ext
32159 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32160 echo "${ECHO_T}$ac_header_preproc" >&6
32161
32162 # So?  What about this header?
32163 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32164   yes:no: )
32165     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32166 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32167     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32168 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32169     ac_header_preproc=yes
32170     ;;
32171   no:yes:* )
32172     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32173 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32174     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
32175 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
32176     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32177 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32178     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
32179 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
32180     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32181 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32182     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32183 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32184     (
32185       cat <<\_ASBOX
32186 ## ------------------------------------------ ##
32187 ## Report this to the AC_PACKAGE_NAME lists.  ##
32188 ## ------------------------------------------ ##
32189 _ASBOX
32190     ) |
32191       sed "s/^/$as_me: WARNING:     /" >&2
32192     ;;
32193 esac
32194 echo "$as_me:$LINENO: checking for $ac_header" >&5
32195 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32196 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32197   echo $ECHO_N "(cached) $ECHO_C" >&6
32198 else
32199   eval "$as_ac_Header=\$ac_header_preproc"
32200 fi
32201 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32202 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32203
32204 fi
32205 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32206   cat >>confdefs.h <<_ACEOF
32207 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32208 _ACEOF
32209
32210 fi
32211
32212 done
32213
32214 echo "$as_me:$LINENO: checking whether wait uses union wait" >&5
32215 echo $ECHO_N "checking whether wait uses union wait... $ECHO_C" >&6
32216 if test "${cf_cv_arg_union_wait+set}" = set; then
32217   echo $ECHO_N "(cached) $ECHO_C" >&6
32218 else
32219   cat >conftest.$ac_ext <<_ACEOF
32220 /* confdefs.h.  */
32221 _ACEOF
32222 cat confdefs.h >>conftest.$ac_ext
32223 cat >>conftest.$ac_ext <<_ACEOF
32224 /* end confdefs.h.  */
32225
32226 #include <sys/types.h>
32227
32228 #if HAVE_SYS_WAIT_H
32229 # include <sys/wait.h>
32230 #else
32231 # if HAVE_WAIT_H
32232 #  include <wait.h>
32233 # endif
32234 #endif
32235
32236 #ifdef __STDC__
32237 pid_t wait(union wait *);
32238 #endif
32239
32240 int
32241 main ()
32242 {
32243
32244   union wait x; int i;
32245   wait(&x); i = WIFEXITED(x)
32246
32247   ;
32248   return 0;
32249 }
32250 _ACEOF
32251 rm -f conftest.$ac_objext
32252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32253   (eval $ac_compile) 2>conftest.er1
32254   ac_status=$?
32255   grep -v '^ *+' conftest.er1 >conftest.err
32256   rm -f conftest.er1
32257   cat conftest.err >&5
32258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32259   (exit $ac_status); } &&
32260          { ac_try='test -z "$ac_c_werror_flag"
32261                          || test ! -s conftest.err'
32262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32263   (eval $ac_try) 2>&5
32264   ac_status=$?
32265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32266   (exit $ac_status); }; } &&
32267          { ac_try='test -s conftest.$ac_objext'
32268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32269   (eval $ac_try) 2>&5
32270   ac_status=$?
32271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32272   (exit $ac_status); }; }; then
32273   cf_cv_arg_union_wait=yes
32274 else
32275   echo "$as_me: failed program was:" >&5
32276 sed 's/^/| /' conftest.$ac_ext >&5
32277
32278 cf_cv_arg_union_wait=no
32279 fi
32280 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32281 fi
32282 echo "$as_me:$LINENO: result: $cf_cv_arg_union_wait" >&5
32283 echo "${ECHO_T}$cf_cv_arg_union_wait" >&6
32284 if test $cf_cv_arg_union_wait = yes; then
32285
32286 cat >>confdefs.h <<\_ACEOF
32287 #define WAIT_USES_UNION 1
32288 _ACEOF
32289
32290 fi
32291
32292
32293
32294
32295
32296 for ac_header in sys/wait.h wait.h
32297 do
32298 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32299 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32300   echo "$as_me:$LINENO: checking for $ac_header" >&5
32301 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32302 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32303   echo $ECHO_N "(cached) $ECHO_C" >&6
32304 fi
32305 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32306 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32307 else
32308   # Is the header compilable?
32309 echo "$as_me:$LINENO: checking $ac_header usability" >&5
32310 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32311 cat >conftest.$ac_ext <<_ACEOF
32312 /* confdefs.h.  */
32313 _ACEOF
32314 cat confdefs.h >>conftest.$ac_ext
32315 cat >>conftest.$ac_ext <<_ACEOF
32316 /* end confdefs.h.  */
32317 $ac_includes_default
32318 #include <$ac_header>
32319 _ACEOF
32320 rm -f conftest.$ac_objext
32321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32322   (eval $ac_compile) 2>conftest.er1
32323   ac_status=$?
32324   grep -v '^ *+' conftest.er1 >conftest.err
32325   rm -f conftest.er1
32326   cat conftest.err >&5
32327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32328   (exit $ac_status); } &&
32329          { ac_try='test -z "$ac_c_werror_flag"
32330                          || test ! -s conftest.err'
32331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32332   (eval $ac_try) 2>&5
32333   ac_status=$?
32334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32335   (exit $ac_status); }; } &&
32336          { ac_try='test -s conftest.$ac_objext'
32337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32338   (eval $ac_try) 2>&5
32339   ac_status=$?
32340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32341   (exit $ac_status); }; }; then
32342   ac_header_compiler=yes
32343 else
32344   echo "$as_me: failed program was:" >&5
32345 sed 's/^/| /' conftest.$ac_ext >&5
32346
32347 ac_header_compiler=no
32348 fi
32349 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32350 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32351 echo "${ECHO_T}$ac_header_compiler" >&6
32352
32353 # Is the header present?
32354 echo "$as_me:$LINENO: checking $ac_header presence" >&5
32355 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32356 cat >conftest.$ac_ext <<_ACEOF
32357 /* confdefs.h.  */
32358 _ACEOF
32359 cat confdefs.h >>conftest.$ac_ext
32360 cat >>conftest.$ac_ext <<_ACEOF
32361 /* end confdefs.h.  */
32362 #include <$ac_header>
32363 _ACEOF
32364 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32365   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32366   ac_status=$?
32367   grep -v '^ *+' conftest.er1 >conftest.err
32368   rm -f conftest.er1
32369   cat conftest.err >&5
32370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32371   (exit $ac_status); } >/dev/null; then
32372   if test -s conftest.err; then
32373     ac_cpp_err=$ac_c_preproc_warn_flag
32374     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32375   else
32376     ac_cpp_err=
32377   fi
32378 else
32379   ac_cpp_err=yes
32380 fi
32381 if test -z "$ac_cpp_err"; then
32382   ac_header_preproc=yes
32383 else
32384   echo "$as_me: failed program was:" >&5
32385 sed 's/^/| /' conftest.$ac_ext >&5
32386
32387   ac_header_preproc=no
32388 fi
32389 rm -f conftest.err conftest.$ac_ext
32390 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32391 echo "${ECHO_T}$ac_header_preproc" >&6
32392
32393 # So?  What about this header?
32394 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32395   yes:no: )
32396     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32397 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32398     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32399 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32400     ac_header_preproc=yes
32401     ;;
32402   no:yes:* )
32403     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32404 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32405     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
32406 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
32407     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32408 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32409     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
32410 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
32411     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32412 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32413     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32414 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32415     (
32416       cat <<\_ASBOX
32417 ## ------------------------------------------ ##
32418 ## Report this to the AC_PACKAGE_NAME lists.  ##
32419 ## ------------------------------------------ ##
32420 _ASBOX
32421     ) |
32422       sed "s/^/$as_me: WARNING:     /" >&2
32423     ;;
32424 esac
32425 echo "$as_me:$LINENO: checking for $ac_header" >&5
32426 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32427 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32428   echo $ECHO_N "(cached) $ECHO_C" >&6
32429 else
32430   eval "$as_ac_Header=\$ac_header_preproc"
32431 fi
32432 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32433 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32434
32435 fi
32436 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32437   cat >>confdefs.h <<_ACEOF
32438 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32439 _ACEOF
32440
32441 fi
32442
32443 done
32444
32445 echo "$as_me:$LINENO: checking whether wait uses int" >&5
32446 echo $ECHO_N "checking whether wait uses int... $ECHO_C" >&6
32447 if test "${cf_cv_arg_int+set}" = set; then
32448   echo $ECHO_N "(cached) $ECHO_C" >&6
32449 else
32450   cat >conftest.$ac_ext <<_ACEOF
32451 /* confdefs.h.  */
32452 _ACEOF
32453 cat confdefs.h >>conftest.$ac_ext
32454 cat >>conftest.$ac_ext <<_ACEOF
32455 /* end confdefs.h.  */
32456
32457 #include <sys/types.h>
32458
32459 #if HAVE_SYS_WAIT_H
32460 # include <sys/wait.h>
32461 #else
32462 # if HAVE_WAIT_H
32463 #  include <wait.h>
32464 # endif
32465 #endif
32466
32467 #ifdef __STDC__
32468 pid_t wait(int *);
32469 #endif
32470
32471 int
32472 main ()
32473 {
32474
32475   int x; int i;
32476   wait(&x); i = WIFEXITED(x)
32477
32478   ;
32479   return 0;
32480 }
32481 _ACEOF
32482 rm -f conftest.$ac_objext
32483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32484   (eval $ac_compile) 2>conftest.er1
32485   ac_status=$?
32486   grep -v '^ *+' conftest.er1 >conftest.err
32487   rm -f conftest.er1
32488   cat conftest.err >&5
32489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32490   (exit $ac_status); } &&
32491          { ac_try='test -z "$ac_c_werror_flag"
32492                          || test ! -s conftest.err'
32493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32494   (eval $ac_try) 2>&5
32495   ac_status=$?
32496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32497   (exit $ac_status); }; } &&
32498          { ac_try='test -s conftest.$ac_objext'
32499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32500   (eval $ac_try) 2>&5
32501   ac_status=$?
32502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32503   (exit $ac_status); }; }; then
32504   cf_cv_arg_int=yes
32505 else
32506   echo "$as_me: failed program was:" >&5
32507 sed 's/^/| /' conftest.$ac_ext >&5
32508
32509 cf_cv_arg_int=no
32510 fi
32511 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32512 fi
32513 echo "$as_me:$LINENO: result: $cf_cv_arg_int" >&5
32514 echo "${ECHO_T}$cf_cv_arg_int" >&6
32515 if test $cf_cv_arg_int = yes; then
32516
32517 cat >>confdefs.h <<\_ACEOF
32518 #define WAIT_USES_INT 1
32519 _ACEOF
32520
32521 fi
32522
32523 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
32524 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
32525 if test "${ac_cv_header_time+set}" = set; then
32526   echo $ECHO_N "(cached) $ECHO_C" >&6
32527 else
32528   cat >conftest.$ac_ext <<_ACEOF
32529 /* confdefs.h.  */
32530 _ACEOF
32531 cat confdefs.h >>conftest.$ac_ext
32532 cat >>conftest.$ac_ext <<_ACEOF
32533 /* end confdefs.h.  */
32534 #include <sys/types.h>
32535 #include <sys/time.h>
32536 #include <time.h>
32537
32538 int
32539 main ()
32540 {
32541 if ((struct tm *) 0)
32542 return 0;
32543   ;
32544   return 0;
32545 }
32546 _ACEOF
32547 rm -f conftest.$ac_objext
32548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32549   (eval $ac_compile) 2>conftest.er1
32550   ac_status=$?
32551   grep -v '^ *+' conftest.er1 >conftest.err
32552   rm -f conftest.er1
32553   cat conftest.err >&5
32554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32555   (exit $ac_status); } &&
32556          { ac_try='test -z "$ac_c_werror_flag"
32557                          || test ! -s conftest.err'
32558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32559   (eval $ac_try) 2>&5
32560   ac_status=$?
32561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32562   (exit $ac_status); }; } &&
32563          { ac_try='test -s conftest.$ac_objext'
32564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32565   (eval $ac_try) 2>&5
32566   ac_status=$?
32567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32568   (exit $ac_status); }; }; then
32569   ac_cv_header_time=yes
32570 else
32571   echo "$as_me: failed program was:" >&5
32572 sed 's/^/| /' conftest.$ac_ext >&5
32573
32574 ac_cv_header_time=no
32575 fi
32576 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32577 fi
32578 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
32579 echo "${ECHO_T}$ac_cv_header_time" >&6
32580 if test $ac_cv_header_time = yes; then
32581
32582 cat >>confdefs.h <<\_ACEOF
32583 #define TIME_WITH_SYS_TIME 1
32584 _ACEOF
32585
32586 fi
32587
32588
32589
32590
32591
32592
32593
32594
32595
32596
32597
32598
32599
32600
32601
32602
32603
32604
32605
32606
32607
32608
32609
32610
32611
32612
32613
32614
32615
32616
32617
32618
32619
32620
32621
32622
32623
32624
32625
32626
32627
32628
32629
32630
32631
32632
32633
32634
32635
32636
32637
32638
32639
32640
32641
32642
32643
32644
32645
32646
32647
32648
32649 for ac_header in \
32650         arpa/inet.h \
32651         camlib.h \
32652         cam/cam.h \
32653         cam/scsi/scsi_message.h \
32654         chio.h \
32655         db.h \
32656         dbm.h \
32657         fcntl.h \
32658         fnmatch.h \
32659         fstab.h \
32660         grp.h \
32661         history.h \
32662         libc.h \
32663         libgen.h \
32664         limits.h \
32665         linux/zftape.h \
32666         math.h \
32667         mntent.h \
32668         mnttab.h \
32669         ndbm.h \
32670         netdb.h \
32671         netinet/in_systm.h \
32672         readline.h \
32673         readline/history.h \
32674         readline/readline.h \
32675         scsi/sg.h \
32676         scsi/scsi_ioctl.h \
32677         stdarg.h \
32678         stdlib.h \
32679         string.h \
32680         strings.h \
32681         sys/chio.h \
32682         sys/dsreq.h \
32683         sys/fcntl.h \
32684         sys/file.h \
32685         sys/ioctl.h \
32686         sys/ipc.h \
32687         sys/mman.h \
32688         sys/mntent.h \
32689         sys/mtio.h \
32690         sys/param.h \
32691         sys/scarray.h \
32692         sys/gscdds.h \
32693         sys/scsiio.h \
32694         sys/scsi.h \
32695         sys/scsi/impl/uscsi.h \
32696         sys/scsi/scsi/ioctl.h \
32697         sys/select.h \
32698         sys/shm.h \
32699         sys/stat.h \
32700         sys/statfs.h \
32701         sys/statvfs.h \
32702         sys/tape.h \
32703         sys/time.h \
32704         sys/types.h \
32705         sys/uio.h \
32706         sys/vfs.h \
32707         sys/vfstab.h \
32708         syslog.h \
32709         unistd.h \
32710         vtblc.h \
32711
32712 do
32713 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32714 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32715   echo "$as_me:$LINENO: checking for $ac_header" >&5
32716 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32717 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32718   echo $ECHO_N "(cached) $ECHO_C" >&6
32719 fi
32720 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32721 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32722 else
32723   # Is the header compilable?
32724 echo "$as_me:$LINENO: checking $ac_header usability" >&5
32725 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32726 cat >conftest.$ac_ext <<_ACEOF
32727 /* confdefs.h.  */
32728 _ACEOF
32729 cat confdefs.h >>conftest.$ac_ext
32730 cat >>conftest.$ac_ext <<_ACEOF
32731 /* end confdefs.h.  */
32732 $ac_includes_default
32733 #include <$ac_header>
32734 _ACEOF
32735 rm -f conftest.$ac_objext
32736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32737   (eval $ac_compile) 2>conftest.er1
32738   ac_status=$?
32739   grep -v '^ *+' conftest.er1 >conftest.err
32740   rm -f conftest.er1
32741   cat conftest.err >&5
32742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32743   (exit $ac_status); } &&
32744          { ac_try='test -z "$ac_c_werror_flag"
32745                          || test ! -s conftest.err'
32746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32747   (eval $ac_try) 2>&5
32748   ac_status=$?
32749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32750   (exit $ac_status); }; } &&
32751          { ac_try='test -s conftest.$ac_objext'
32752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32753   (eval $ac_try) 2>&5
32754   ac_status=$?
32755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32756   (exit $ac_status); }; }; then
32757   ac_header_compiler=yes
32758 else
32759   echo "$as_me: failed program was:" >&5
32760 sed 's/^/| /' conftest.$ac_ext >&5
32761
32762 ac_header_compiler=no
32763 fi
32764 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32765 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32766 echo "${ECHO_T}$ac_header_compiler" >&6
32767
32768 # Is the header present?
32769 echo "$as_me:$LINENO: checking $ac_header presence" >&5
32770 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32771 cat >conftest.$ac_ext <<_ACEOF
32772 /* confdefs.h.  */
32773 _ACEOF
32774 cat confdefs.h >>conftest.$ac_ext
32775 cat >>conftest.$ac_ext <<_ACEOF
32776 /* end confdefs.h.  */
32777 #include <$ac_header>
32778 _ACEOF
32779 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32780   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32781   ac_status=$?
32782   grep -v '^ *+' conftest.er1 >conftest.err
32783   rm -f conftest.er1
32784   cat conftest.err >&5
32785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32786   (exit $ac_status); } >/dev/null; then
32787   if test -s conftest.err; then
32788     ac_cpp_err=$ac_c_preproc_warn_flag
32789     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32790   else
32791     ac_cpp_err=
32792   fi
32793 else
32794   ac_cpp_err=yes
32795 fi
32796 if test -z "$ac_cpp_err"; then
32797   ac_header_preproc=yes
32798 else
32799   echo "$as_me: failed program was:" >&5
32800 sed 's/^/| /' conftest.$ac_ext >&5
32801
32802   ac_header_preproc=no
32803 fi
32804 rm -f conftest.err conftest.$ac_ext
32805 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32806 echo "${ECHO_T}$ac_header_preproc" >&6
32807
32808 # So?  What about this header?
32809 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32810   yes:no: )
32811     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32812 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32813     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32814 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32815     ac_header_preproc=yes
32816     ;;
32817   no:yes:* )
32818     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32819 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32820     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
32821 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
32822     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32823 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32824     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
32825 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
32826     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32827 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32828     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32829 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32830     (
32831       cat <<\_ASBOX
32832 ## ------------------------------------------ ##
32833 ## Report this to the AC_PACKAGE_NAME lists.  ##
32834 ## ------------------------------------------ ##
32835 _ASBOX
32836     ) |
32837       sed "s/^/$as_me: WARNING:     /" >&2
32838     ;;
32839 esac
32840 echo "$as_me:$LINENO: checking for $ac_header" >&5
32841 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32842 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32843   echo $ECHO_N "(cached) $ECHO_C" >&6
32844 else
32845   eval "$as_ac_Header=\$ac_header_preproc"
32846 fi
32847 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32848 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32849
32850 fi
32851 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32852   cat >>confdefs.h <<_ACEOF
32853 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32854 _ACEOF
32855
32856 fi
32857
32858 done
32859
32860
32861
32862 for ac_header in netinet/ip.h
32863 do
32864 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32865 echo "$as_me:$LINENO: checking for $ac_header" >&5
32866 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32867 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32868   echo $ECHO_N "(cached) $ECHO_C" >&6
32869 else
32870   cat >conftest.$ac_ext <<_ACEOF
32871 /* confdefs.h.  */
32872 _ACEOF
32873 cat confdefs.h >>conftest.$ac_ext
32874 cat >>conftest.$ac_ext <<_ACEOF
32875 /* end confdefs.h.  */
32876 #include <sys/socket.h>
32877 #if HAVE_SYS_TYPES_H
32878 #include <sys/types.h>
32879 #endif
32880 #ifdef HAVE_NETINET_IN_SYSTM_H
32881 #include <netinet/in_systm.h>
32882 #endif
32883 #include <netinet/in.h>
32884
32885
32886 #include <$ac_header>
32887 _ACEOF
32888 rm -f conftest.$ac_objext
32889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32890   (eval $ac_compile) 2>conftest.er1
32891   ac_status=$?
32892   grep -v '^ *+' conftest.er1 >conftest.err
32893   rm -f conftest.er1
32894   cat conftest.err >&5
32895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32896   (exit $ac_status); } &&
32897          { ac_try='test -z "$ac_c_werror_flag"
32898                          || test ! -s conftest.err'
32899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32900   (eval $ac_try) 2>&5
32901   ac_status=$?
32902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32903   (exit $ac_status); }; } &&
32904          { ac_try='test -s conftest.$ac_objext'
32905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32906   (eval $ac_try) 2>&5
32907   ac_status=$?
32908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32909   (exit $ac_status); }; }; then
32910   eval "$as_ac_Header=yes"
32911 else
32912   echo "$as_me: failed program was:" >&5
32913 sed 's/^/| /' conftest.$ac_ext >&5
32914
32915 eval "$as_ac_Header=no"
32916 fi
32917 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32918 fi
32919 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32920 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32921 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32922   cat >>confdefs.h <<_ACEOF
32923 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32924 _ACEOF
32925
32926 fi
32927
32928 done
32929
32930
32931
32932 for ac_header in sys/mount.h
32933 do
32934 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32935 echo "$as_me:$LINENO: checking for $ac_header" >&5
32936 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32937 if eval "test \"\${$as_ac_Header+set}\" = set"; then
32938   echo $ECHO_N "(cached) $ECHO_C" >&6
32939 else
32940   cat >conftest.$ac_ext <<_ACEOF
32941 /* confdefs.h.  */
32942 _ACEOF
32943 cat confdefs.h >>conftest.$ac_ext
32944 cat >>conftest.$ac_ext <<_ACEOF
32945 /* end confdefs.h.  */
32946 #ifdef HAVE_SYS_PARAM_H
32947 #include <sys/param.h>
32948 #endif
32949
32950
32951 #include <$ac_header>
32952 _ACEOF
32953 rm -f conftest.$ac_objext
32954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32955   (eval $ac_compile) 2>conftest.er1
32956   ac_status=$?
32957   grep -v '^ *+' conftest.er1 >conftest.err
32958   rm -f conftest.er1
32959   cat conftest.err >&5
32960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32961   (exit $ac_status); } &&
32962          { ac_try='test -z "$ac_c_werror_flag"
32963                          || test ! -s conftest.err'
32964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32965   (eval $ac_try) 2>&5
32966   ac_status=$?
32967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32968   (exit $ac_status); }; } &&
32969          { ac_try='test -s conftest.$ac_objext'
32970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32971   (eval $ac_try) 2>&5
32972   ac_status=$?
32973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32974   (exit $ac_status); }; }; then
32975   eval "$as_ac_Header=yes"
32976 else
32977   echo "$as_me: failed program was:" >&5
32978 sed 's/^/| /' conftest.$ac_ext >&5
32979
32980 eval "$as_ac_Header=no"
32981 fi
32982 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32983 fi
32984 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32985 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32986 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32987   cat >>confdefs.h <<_ACEOF
32988 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32989 _ACEOF
32990
32991 fi
32992
32993 done
32994
32995
32996 NO_SCSI_CHANGER_MODE=true
32997 NO_CHIO_CHANGER_MODE=true
32998
32999 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
33000 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
33001 if test "${ac_cv_c_bigendian+set}" = set; then
33002   echo $ECHO_N "(cached) $ECHO_C" >&6
33003 else
33004   # See if sys/param.h defines the BYTE_ORDER macro.
33005 cat >conftest.$ac_ext <<_ACEOF
33006 /* confdefs.h.  */
33007 _ACEOF
33008 cat confdefs.h >>conftest.$ac_ext
33009 cat >>conftest.$ac_ext <<_ACEOF
33010 /* end confdefs.h.  */
33011 #include <sys/types.h>
33012 #include <sys/param.h>
33013
33014 int
33015 main ()
33016 {
33017 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
33018  bogus endian macros
33019 #endif
33020
33021   ;
33022   return 0;
33023 }
33024 _ACEOF
33025 rm -f conftest.$ac_objext
33026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33027   (eval $ac_compile) 2>conftest.er1
33028   ac_status=$?
33029   grep -v '^ *+' conftest.er1 >conftest.err
33030   rm -f conftest.er1
33031   cat conftest.err >&5
33032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33033   (exit $ac_status); } &&
33034          { ac_try='test -z "$ac_c_werror_flag"
33035                          || test ! -s conftest.err'
33036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33037   (eval $ac_try) 2>&5
33038   ac_status=$?
33039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33040   (exit $ac_status); }; } &&
33041          { ac_try='test -s conftest.$ac_objext'
33042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33043   (eval $ac_try) 2>&5
33044   ac_status=$?
33045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33046   (exit $ac_status); }; }; then
33047   # It does; now see whether it defined to BIG_ENDIAN or not.
33048 cat >conftest.$ac_ext <<_ACEOF
33049 /* confdefs.h.  */
33050 _ACEOF
33051 cat confdefs.h >>conftest.$ac_ext
33052 cat >>conftest.$ac_ext <<_ACEOF
33053 /* end confdefs.h.  */
33054 #include <sys/types.h>
33055 #include <sys/param.h>
33056
33057 int
33058 main ()
33059 {
33060 #if BYTE_ORDER != BIG_ENDIAN
33061  not big endian
33062 #endif
33063
33064   ;
33065   return 0;
33066 }
33067 _ACEOF
33068 rm -f conftest.$ac_objext
33069 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33070   (eval $ac_compile) 2>conftest.er1
33071   ac_status=$?
33072   grep -v '^ *+' conftest.er1 >conftest.err
33073   rm -f conftest.er1
33074   cat conftest.err >&5
33075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33076   (exit $ac_status); } &&
33077          { ac_try='test -z "$ac_c_werror_flag"
33078                          || test ! -s conftest.err'
33079   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33080   (eval $ac_try) 2>&5
33081   ac_status=$?
33082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33083   (exit $ac_status); }; } &&
33084          { ac_try='test -s conftest.$ac_objext'
33085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33086   (eval $ac_try) 2>&5
33087   ac_status=$?
33088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33089   (exit $ac_status); }; }; then
33090   ac_cv_c_bigendian=yes
33091 else
33092   echo "$as_me: failed program was:" >&5
33093 sed 's/^/| /' conftest.$ac_ext >&5
33094
33095 ac_cv_c_bigendian=no
33096 fi
33097 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33098 else
33099   echo "$as_me: failed program was:" >&5
33100 sed 's/^/| /' conftest.$ac_ext >&5
33101
33102 # It does not; compile a test program.
33103 if test "$cross_compiling" = yes; then
33104   # try to guess the endianness by grepping values into an object file
33105   ac_cv_c_bigendian=unknown
33106   cat >conftest.$ac_ext <<_ACEOF
33107 /* confdefs.h.  */
33108 _ACEOF
33109 cat confdefs.h >>conftest.$ac_ext
33110 cat >>conftest.$ac_ext <<_ACEOF
33111 /* end confdefs.h.  */
33112 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
33113 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
33114 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
33115 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
33116 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
33117 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
33118 int
33119 main ()
33120 {
33121  _ascii (); _ebcdic ();
33122   ;
33123   return 0;
33124 }
33125 _ACEOF
33126 rm -f conftest.$ac_objext
33127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33128   (eval $ac_compile) 2>conftest.er1
33129   ac_status=$?
33130   grep -v '^ *+' conftest.er1 >conftest.err
33131   rm -f conftest.er1
33132   cat conftest.err >&5
33133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33134   (exit $ac_status); } &&
33135          { ac_try='test -z "$ac_c_werror_flag"
33136                          || test ! -s conftest.err'
33137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33138   (eval $ac_try) 2>&5
33139   ac_status=$?
33140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33141   (exit $ac_status); }; } &&
33142          { ac_try='test -s conftest.$ac_objext'
33143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33144   (eval $ac_try) 2>&5
33145   ac_status=$?
33146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33147   (exit $ac_status); }; }; then
33148   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
33149   ac_cv_c_bigendian=yes
33150 fi
33151 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
33152   if test "$ac_cv_c_bigendian" = unknown; then
33153     ac_cv_c_bigendian=no
33154   else
33155     # finding both strings is unlikely to happen, but who knows?
33156     ac_cv_c_bigendian=unknown
33157   fi
33158 fi
33159 else
33160   echo "$as_me: failed program was:" >&5
33161 sed 's/^/| /' conftest.$ac_ext >&5
33162
33163 fi
33164 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33165 else
33166   cat >conftest.$ac_ext <<_ACEOF
33167 /* confdefs.h.  */
33168 _ACEOF
33169 cat confdefs.h >>conftest.$ac_ext
33170 cat >>conftest.$ac_ext <<_ACEOF
33171 /* end confdefs.h.  */
33172 int
33173 main ()
33174 {
33175   /* Are we little or big endian?  From Harbison&Steele.  */
33176   union
33177   {
33178     long l;
33179     char c[sizeof (long)];
33180   } u;
33181   u.l = 1;
33182   exit (u.c[sizeof (long) - 1] == 1);
33183 }
33184 _ACEOF
33185 rm -f conftest$ac_exeext
33186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33187   (eval $ac_link) 2>&5
33188   ac_status=$?
33189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33190   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33192   (eval $ac_try) 2>&5
33193   ac_status=$?
33194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33195   (exit $ac_status); }; }; then
33196   ac_cv_c_bigendian=no
33197 else
33198   echo "$as_me: program exited with status $ac_status" >&5
33199 echo "$as_me: failed program was:" >&5
33200 sed 's/^/| /' conftest.$ac_ext >&5
33201
33202 ( exit $ac_status )
33203 ac_cv_c_bigendian=yes
33204 fi
33205 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33206 fi
33207 fi
33208 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33209 fi
33210 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
33211 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
33212 case $ac_cv_c_bigendian in
33213   yes)
33214
33215 cat >>confdefs.h <<\_ACEOF
33216 #define WORDS_BIGENDIAN 1
33217 _ACEOF
33218  ;;
33219   no)
33220      ;;
33221   *)
33222     { { echo "$as_me:$LINENO: error: unknown endianness
33223 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
33224 echo "$as_me: error: unknown endianness
33225 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
33226    { (exit 1); exit 1; }; } ;;
33227 esac
33228
33229
33230 if test x"$ac_cv_header_sys_scsi_h" = x"yes"; then
33231     echo "$as_me:$LINENO: checking for HP/UX-like scsi changer support" >&5
33232 echo $ECHO_N "checking for HP/UX-like scsi changer support... $ECHO_C" >&6
33233 if test "${amanda_cv_hpux_scsi_chio+set}" = set; then
33234   echo $ECHO_N "(cached) $ECHO_C" >&6
33235 else
33236   cat >conftest.$ac_ext <<_ACEOF
33237 /* confdefs.h.  */
33238 _ACEOF
33239 cat confdefs.h >>conftest.$ac_ext
33240 cat >>conftest.$ac_ext <<_ACEOF
33241 /* end confdefs.h.  */
33242
33243 #include <sys/scsi.h>
33244
33245 int
33246 main ()
33247 {
33248
33249         static struct element_addresses changer_info;
33250         int i = SIOC_ELEMENT_ADDRESSES;
33251         int j = SIOC_ELEMENT_STATUS;
33252         int k = SIOC_MOVE_MEDIUM;
33253
33254   ;
33255   return 0;
33256 }
33257 _ACEOF
33258 rm -f conftest.$ac_objext
33259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33260   (eval $ac_compile) 2>conftest.er1
33261   ac_status=$?
33262   grep -v '^ *+' conftest.er1 >conftest.err
33263   rm -f conftest.er1
33264   cat conftest.err >&5
33265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33266   (exit $ac_status); } &&
33267          { ac_try='test -z "$ac_c_werror_flag"
33268                          || test ! -s conftest.err'
33269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33270   (eval $ac_try) 2>&5
33271   ac_status=$?
33272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33273   (exit $ac_status); }; } &&
33274          { ac_try='test -s conftest.$ac_objext'
33275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33276   (eval $ac_try) 2>&5
33277   ac_status=$?
33278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33279   (exit $ac_status); }; }; then
33280   amanda_cv_hpux_scsi_chio=yes
33281 else
33282   echo "$as_me: failed program was:" >&5
33283 sed 's/^/| /' conftest.$ac_ext >&5
33284
33285 amanda_cv_hpux_scsi_chio=no
33286 fi
33287 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33288 fi
33289 echo "$as_me:$LINENO: result: $amanda_cv_hpux_scsi_chio" >&5
33290 echo "${ECHO_T}$amanda_cv_hpux_scsi_chio" >&6
33291     if test x"$amanda_cv_hpux_scsi_chio" = x"yes"; then
33292
33293 cat >>confdefs.h <<\_ACEOF
33294 #define HAVE_HPUX_SCSI_CHIO 1
33295 _ACEOF
33296
33297         NO_SCSI_CHANGER_MODE=false
33298     fi
33299 fi
33300
33301 if test x"$ac_cv_header_sys_mtio_h" = x"yes" &&
33302    test x"$ac_cv_header_scsi_scsi_ioctl_h" = x"yes"; then
33303         echo "$as_me:$LINENO: checking for Linux like scsi support (ioctl)" >&5
33304 echo $ECHO_N "checking for Linux like scsi support (ioctl)... $ECHO_C" >&6
33305 if test "${amanda_cv_linux_scsi+set}" = set; then
33306   echo $ECHO_N "(cached) $ECHO_C" >&6
33307 else
33308   cat >conftest.$ac_ext <<_ACEOF
33309 /* confdefs.h.  */
33310 _ACEOF
33311 cat confdefs.h >>conftest.$ac_ext
33312 cat >>conftest.$ac_ext <<_ACEOF
33313 /* end confdefs.h.  */
33314
33315 #include <scsi/scsi_ioctl.h>
33316 #include <sys/mtio.h>
33317
33318 int
33319 main ()
33320 {
33321
33322         int device;
33323         char *Command;
33324         ioctl(device, SCSI_IOCTL_SEND_COMMAND, Command);
33325
33326   ;
33327   return 0;
33328 }
33329 _ACEOF
33330 rm -f conftest.$ac_objext
33331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33332   (eval $ac_compile) 2>conftest.er1
33333   ac_status=$?
33334   grep -v '^ *+' conftest.er1 >conftest.err
33335   rm -f conftest.er1
33336   cat conftest.err >&5
33337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33338   (exit $ac_status); } &&
33339          { ac_try='test -z "$ac_c_werror_flag"
33340                          || test ! -s conftest.err'
33341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33342   (eval $ac_try) 2>&5
33343   ac_status=$?
33344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33345   (exit $ac_status); }; } &&
33346          { ac_try='test -s conftest.$ac_objext'
33347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33348   (eval $ac_try) 2>&5
33349   ac_status=$?
33350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33351   (exit $ac_status); }; }; then
33352   amanda_cv_linux_scsi=yes
33353 else
33354   echo "$as_me: failed program was:" >&5
33355 sed 's/^/| /' conftest.$ac_ext >&5
33356
33357 amanda_cv_linux_scsi=no
33358 fi
33359 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33360 fi
33361 echo "$as_me:$LINENO: result: $amanda_cv_linux_scsi" >&5
33362 echo "${ECHO_T}$amanda_cv_linux_scsi" >&6
33363 fi
33364
33365 if test x"$ac_cv_header_sys_mtio_h" = x"yes" &&
33366    test x"$ac_cv_header_scsi_sg_h" = x"yes"; then
33367         echo "$as_me:$LINENO: checking for Linux like scsi support (sg)" >&5
33368 echo $ECHO_N "checking for Linux like scsi support (sg)... $ECHO_C" >&6
33369 if test "${amanda_cv_linux_sg_scsi+set}" = set; then
33370   echo $ECHO_N "(cached) $ECHO_C" >&6
33371 else
33372   cat >conftest.$ac_ext <<_ACEOF
33373 /* confdefs.h.  */
33374 _ACEOF
33375 cat confdefs.h >>conftest.$ac_ext
33376 cat >>conftest.$ac_ext <<_ACEOF
33377 /* end confdefs.h.  */
33378
33379 #include <sys/types.h>
33380 #include <scsi/sg.h>
33381 #include <sys/mtio.h>
33382
33383 int
33384 main ()
33385 {
33386
33387         int device;
33388         struct sg_header *psg_header;
33389         char *buffer;
33390         write(device, buffer, 1);
33391
33392   ;
33393   return 0;
33394 }
33395 _ACEOF
33396 rm -f conftest.$ac_objext
33397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33398   (eval $ac_compile) 2>conftest.er1
33399   ac_status=$?
33400   grep -v '^ *+' conftest.er1 >conftest.err
33401   rm -f conftest.er1
33402   cat conftest.err >&5
33403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33404   (exit $ac_status); } &&
33405          { ac_try='test -z "$ac_c_werror_flag"
33406                          || test ! -s conftest.err'
33407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33408   (eval $ac_try) 2>&5
33409   ac_status=$?
33410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33411   (exit $ac_status); }; } &&
33412          { ac_try='test -s conftest.$ac_objext'
33413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33414   (eval $ac_try) 2>&5
33415   ac_status=$?
33416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33417   (exit $ac_status); }; }; then
33418   amanda_cv_linux_sg_scsi=yes
33419 else
33420   echo "$as_me: failed program was:" >&5
33421 sed 's/^/| /' conftest.$ac_ext >&5
33422
33423 amanda_cv_linux_sg_scsi=no
33424 fi
33425 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33426 fi
33427 echo "$as_me:$LINENO: result: $amanda_cv_linux_sg_scsi" >&5
33428 echo "${ECHO_T}$amanda_cv_linux_sg_scsi" >&6
33429 fi
33430
33431 if test x"$amanda_cv_linux_scsi" = x"yes" ||
33432  test x"$amanda_cv_linux_sg_scsi" = x"yes";then
33433
33434 cat >>confdefs.h <<\_ACEOF
33435 #define HAVE_LINUX_LIKE_SCSI 1
33436 _ACEOF
33437
33438         NO_SCSI_CHANGER_MODE=false
33439 fi
33440
33441 if test x"$ac_cv_header_sys_mtio_h" = x"yes" &&
33442    test x"$ac_cv_header_sys_scsi_h" = x"yes"; then
33443         echo "$as_me:$LINENO: checking for HP-UX like scsi support" >&5
33444 echo $ECHO_N "checking for HP-UX like scsi support... $ECHO_C" >&6
33445 if test "${amanda_cv_hpux_scsi+set}" = set; then
33446   echo $ECHO_N "(cached) $ECHO_C" >&6
33447 else
33448   cat >conftest.$ac_ext <<_ACEOF
33449 /* confdefs.h.  */
33450 _ACEOF
33451 cat confdefs.h >>conftest.$ac_ext
33452 cat >>conftest.$ac_ext <<_ACEOF
33453 /* end confdefs.h.  */
33454
33455 #include <stdio.h>
33456 #include <sys/ioctl.h>
33457 #include <sys/scsi.h>
33458 #include <sys/mtio.h>
33459
33460 int
33461 main ()
33462 {
33463
33464         int device;
33465         char *Command;
33466         ioctl(device, SIOC_IO, Command);
33467
33468   ;
33469   return 0;
33470 }
33471 _ACEOF
33472 rm -f conftest.$ac_objext
33473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33474   (eval $ac_compile) 2>conftest.er1
33475   ac_status=$?
33476   grep -v '^ *+' conftest.er1 >conftest.err
33477   rm -f conftest.er1
33478   cat conftest.err >&5
33479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33480   (exit $ac_status); } &&
33481          { ac_try='test -z "$ac_c_werror_flag"
33482                          || test ! -s conftest.err'
33483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33484   (eval $ac_try) 2>&5
33485   ac_status=$?
33486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33487   (exit $ac_status); }; } &&
33488          { ac_try='test -s conftest.$ac_objext'
33489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33490   (eval $ac_try) 2>&5
33491   ac_status=$?
33492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33493   (exit $ac_status); }; }; then
33494   amanda_cv_hpux_scsi=yes
33495 else
33496   echo "$as_me: failed program was:" >&5
33497 sed 's/^/| /' conftest.$ac_ext >&5
33498
33499 amanda_cv_hpux_scsi=no
33500 fi
33501 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33502 fi
33503 echo "$as_me:$LINENO: result: $amanda_cv_hpux_scsi" >&5
33504 echo "${ECHO_T}$amanda_cv_hpux_scsi" >&6
33505         if test x"$amanda_cv_hpux_scsi" = x"yes";then
33506
33507 cat >>confdefs.h <<\_ACEOF
33508 #define HAVE_HPUX_LIKE_SCSI 1
33509 _ACEOF
33510
33511                 NO_SCSI_CHANGER_MODE=false
33512                 NO_CHIO_CHANGER_MODE=false
33513         fi
33514 fi
33515
33516 if test x"$ac_cv_header_sys_mtio_h" = x"yes" &&
33517    test x"$ac_cv_header_sys_dsreq_h" = x"yes"; then
33518         echo "$as_me:$LINENO: checking for Irix like scsi support" >&5
33519 echo $ECHO_N "checking for Irix like scsi support... $ECHO_C" >&6
33520 if test "${amanda_cv_irix_scsi+set}" = set; then
33521   echo $ECHO_N "(cached) $ECHO_C" >&6
33522 else
33523   cat >conftest.$ac_ext <<_ACEOF
33524 /* confdefs.h.  */
33525 _ACEOF
33526 cat confdefs.h >>conftest.$ac_ext
33527 cat >>conftest.$ac_ext <<_ACEOF
33528 /* end confdefs.h.  */
33529
33530 #include <sys/types.h>
33531 #include <sys/dsreq.h>
33532 #include <sys/mtio.h>
33533
33534 int
33535 main ()
33536 {
33537
33538         int device=1;
33539         char Command;
33540         ioctl(device, DS_ENTER, &Command);
33541
33542   ;
33543   return 0;
33544 }
33545 _ACEOF
33546 rm -f conftest.$ac_objext
33547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33548   (eval $ac_compile) 2>conftest.er1
33549   ac_status=$?
33550   grep -v '^ *+' conftest.er1 >conftest.err
33551   rm -f conftest.er1
33552   cat conftest.err >&5
33553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33554   (exit $ac_status); } &&
33555          { ac_try='test -z "$ac_c_werror_flag"
33556                          || test ! -s conftest.err'
33557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33558   (eval $ac_try) 2>&5
33559   ac_status=$?
33560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33561   (exit $ac_status); }; } &&
33562          { ac_try='test -s conftest.$ac_objext'
33563   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33564   (eval $ac_try) 2>&5
33565   ac_status=$?
33566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33567   (exit $ac_status); }; }; then
33568   amanda_cv_irix_scsi=yes
33569 else
33570   echo "$as_me: failed program was:" >&5
33571 sed 's/^/| /' conftest.$ac_ext >&5
33572
33573 amanda_cv_irix_scsi=no
33574 fi
33575 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33576 fi
33577 echo "$as_me:$LINENO: result: $amanda_cv_irix_scsi" >&5
33578 echo "${ECHO_T}$amanda_cv_irix_scsi" >&6
33579         if test x"$amanda_cv_irix_scsi" = x"yes";then
33580
33581 cat >>confdefs.h <<\_ACEOF
33582 #define HAVE_IRIX_LIKE_SCSI 1
33583 _ACEOF
33584
33585                 NO_SCSI_CHANGER_MODE=false
33586         fi
33587 fi
33588
33589 if test x"$ac_cv_header_sys_mtio_h" = x"yes" &&
33590    test x"$ac_cv_header_sys_scsi_impl_uscsi_h" = x"yes"; then
33591         echo "$as_me:$LINENO: checking for Solaris-like scsi support" >&5
33592 echo $ECHO_N "checking for Solaris-like scsi support... $ECHO_C" >&6
33593 if test "${amanda_cv_solaris_scsi+set}" = set; then
33594   echo $ECHO_N "(cached) $ECHO_C" >&6
33595 else
33596   cat >conftest.$ac_ext <<_ACEOF
33597 /* confdefs.h.  */
33598 _ACEOF
33599 cat confdefs.h >>conftest.$ac_ext
33600 cat >>conftest.$ac_ext <<_ACEOF
33601 /* end confdefs.h.  */
33602
33603 #include <sys/types.h>
33604 #include <sys/scsi/impl/uscsi.h>
33605 #include <sys/mtio.h>
33606
33607 int
33608 main ()
33609 {
33610
33611         int device;
33612         char *Command;
33613         ioctl(device, USCSICMD, Command);
33614
33615   ;
33616   return 0;
33617 }
33618 _ACEOF
33619 rm -f conftest.$ac_objext
33620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33621   (eval $ac_compile) 2>conftest.er1
33622   ac_status=$?
33623   grep -v '^ *+' conftest.er1 >conftest.err
33624   rm -f conftest.er1
33625   cat conftest.err >&5
33626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33627   (exit $ac_status); } &&
33628          { ac_try='test -z "$ac_c_werror_flag"
33629                          || test ! -s conftest.err'
33630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33631   (eval $ac_try) 2>&5
33632   ac_status=$?
33633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33634   (exit $ac_status); }; } &&
33635          { ac_try='test -s conftest.$ac_objext'
33636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33637   (eval $ac_try) 2>&5
33638   ac_status=$?
33639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33640   (exit $ac_status); }; }; then
33641   amanda_cv_solaris_scsi=yes
33642 else
33643   echo "$as_me: failed program was:" >&5
33644 sed 's/^/| /' conftest.$ac_ext >&5
33645
33646 amanda_cv_solaris_scsi=no
33647 fi
33648 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33649 fi
33650 echo "$as_me:$LINENO: result: $amanda_cv_solaris_scsi" >&5
33651 echo "${ECHO_T}$amanda_cv_solaris_scsi" >&6
33652         if test x"$amanda_cv_solaris_scsi" = x"yes";then
33653
33654 cat >>confdefs.h <<\_ACEOF
33655 #define HAVE_SOLARIS_LIKE_SCSI 1
33656 _ACEOF
33657
33658                 NO_SCSI_CHANGER_MODE=false
33659         fi
33660 fi
33661
33662 if test x"$ac_cv_header_sys_tape_h" = x"yes" &&
33663    test x"$ac_cv_header_sys_scarray_h" = x"yes" &&
33664    test x"$ac_cv_header_sys_gscdds_h" = x"yes"; then
33665         echo "$as_me:$LINENO: checking for AIX like scsi support" >&5
33666 echo $ECHO_N "checking for AIX like scsi support... $ECHO_C" >&6
33667 if test "${amanda_cv_aix_scsi+set}" = set; then
33668   echo $ECHO_N "(cached) $ECHO_C" >&6
33669 else
33670   cat >conftest.$ac_ext <<_ACEOF
33671 /* confdefs.h.  */
33672 _ACEOF
33673 cat confdefs.h >>conftest.$ac_ext
33674 cat >>conftest.$ac_ext <<_ACEOF
33675 /* end confdefs.h.  */
33676
33677 #include <sys/types.h>
33678 #include <sys/scarray.h>
33679 #include <sys/tape.h>
33680
33681 int
33682 main ()
33683 {
33684
33685         int device;
33686         char *Command;
33687         ioctl(device, STIOCMD, Command);
33688
33689   ;
33690   return 0;
33691 }
33692 _ACEOF
33693 rm -f conftest.$ac_objext
33694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33695   (eval $ac_compile) 2>conftest.er1
33696   ac_status=$?
33697   grep -v '^ *+' conftest.er1 >conftest.err
33698   rm -f conftest.er1
33699   cat conftest.err >&5
33700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33701   (exit $ac_status); } &&
33702          { ac_try='test -z "$ac_c_werror_flag"
33703                          || test ! -s conftest.err'
33704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33705   (eval $ac_try) 2>&5
33706   ac_status=$?
33707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33708   (exit $ac_status); }; } &&
33709          { ac_try='test -s conftest.$ac_objext'
33710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33711   (eval $ac_try) 2>&5
33712   ac_status=$?
33713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33714   (exit $ac_status); }; }; then
33715   amanda_cv_aix_scsi=yes
33716 else
33717   echo "$as_me: failed program was:" >&5
33718 sed 's/^/| /' conftest.$ac_ext >&5
33719
33720 amanda_cv_aix_scsi=no
33721 fi
33722 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33723 fi
33724 echo "$as_me:$LINENO: result: $amanda_cv_aix_scsi" >&5
33725 echo "${ECHO_T}$amanda_cv_aix_scsi" >&6
33726         if test x"$amanda_cv_aix_scsi" = x"yes";then
33727
33728 cat >>confdefs.h <<\_ACEOF
33729 #define HAVE_AIX_LIKE_SCSI 1
33730 _ACEOF
33731
33732                 NO_SCSI_CHANGER_MODE=false
33733         fi
33734 fi
33735 if test x"$ac_cv_header_cam_cam_h" = x"yes";then
33736         echo "$as_me:$LINENO: checking for CAM like scsi support" >&5
33737 echo $ECHO_N "checking for CAM like scsi support... $ECHO_C" >&6
33738 if test "${amanda_cv_cam_scsi+set}" = set; then
33739   echo $ECHO_N "(cached) $ECHO_C" >&6
33740 else
33741   cat >conftest.$ac_ext <<_ACEOF
33742 /* confdefs.h.  */
33743 _ACEOF
33744 cat confdefs.h >>conftest.$ac_ext
33745 cat >>conftest.$ac_ext <<_ACEOF
33746 /* end confdefs.h.  */
33747
33748 #include <stdio.h>
33749 # include <fcntl.h>
33750 # include <cam/cam.h>
33751 # include <cam/cam_ccb.h>
33752 # include <cam/scsi/scsi_message.h>
33753 # include <cam/scsi/scsi_pass.h>
33754 # include <camlib.h>
33755
33756 int
33757 main ()
33758 {
33759
33760         struct cam_device *curdev;
33761
33762         curdev = cam_open_pass("", O_RDWR, NULL);
33763
33764   ;
33765   return 0;
33766 }
33767 _ACEOF
33768 rm -f conftest.$ac_objext
33769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33770   (eval $ac_compile) 2>conftest.er1
33771   ac_status=$?
33772   grep -v '^ *+' conftest.er1 >conftest.err
33773   rm -f conftest.er1
33774   cat conftest.err >&5
33775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33776   (exit $ac_status); } &&
33777          { ac_try='test -z "$ac_c_werror_flag"
33778                          || test ! -s conftest.err'
33779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33780   (eval $ac_try) 2>&5
33781   ac_status=$?
33782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33783   (exit $ac_status); }; } &&
33784          { ac_try='test -s conftest.$ac_objext'
33785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33786   (eval $ac_try) 2>&5
33787   ac_status=$?
33788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33789   (exit $ac_status); }; }; then
33790   amanda_cv_cam_scsi=yes
33791 else
33792   echo "$as_me: failed program was:" >&5
33793 sed 's/^/| /' conftest.$ac_ext >&5
33794
33795 amanda_cv_cam_scsi=no
33796 fi
33797 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33798 fi
33799 echo "$as_me:$LINENO: result: $amanda_cv_cam_scsi" >&5
33800 echo "${ECHO_T}$amanda_cv_cam_scsi" >&6
33801         if test x"$amanda_cv_cam_scsi" = x"yes";then
33802
33803 cat >>confdefs.h <<\_ACEOF
33804 #define HAVE_CAM_LIKE_SCSI 1
33805 _ACEOF
33806
33807                 NO_SCSI_CHANGER_MODE=false
33808
33809 echo "$as_me:$LINENO: checking for main in -lcam" >&5
33810 echo $ECHO_N "checking for main in -lcam... $ECHO_C" >&6
33811 if test "${ac_cv_lib_cam_main+set}" = set; then
33812   echo $ECHO_N "(cached) $ECHO_C" >&6
33813 else
33814   ac_check_lib_save_LIBS=$LIBS
33815 LIBS="-lcam  $LIBS"
33816 cat >conftest.$ac_ext <<_ACEOF
33817 /* confdefs.h.  */
33818 _ACEOF
33819 cat confdefs.h >>conftest.$ac_ext
33820 cat >>conftest.$ac_ext <<_ACEOF
33821 /* end confdefs.h.  */
33822
33823
33824 int
33825 main ()
33826 {
33827 main ();
33828   ;
33829   return 0;
33830 }
33831 _ACEOF
33832 rm -f conftest.$ac_objext conftest$ac_exeext
33833 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33834   (eval $ac_link) 2>conftest.er1
33835   ac_status=$?
33836   grep -v '^ *+' conftest.er1 >conftest.err
33837   rm -f conftest.er1
33838   cat conftest.err >&5
33839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33840   (exit $ac_status); } &&
33841          { ac_try='test -z "$ac_c_werror_flag"
33842                          || test ! -s conftest.err'
33843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33844   (eval $ac_try) 2>&5
33845   ac_status=$?
33846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33847   (exit $ac_status); }; } &&
33848          { ac_try='test -s conftest$ac_exeext'
33849   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33850   (eval $ac_try) 2>&5
33851   ac_status=$?
33852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33853   (exit $ac_status); }; }; then
33854   ac_cv_lib_cam_main=yes
33855 else
33856   echo "$as_me: failed program was:" >&5
33857 sed 's/^/| /' conftest.$ac_ext >&5
33858
33859 ac_cv_lib_cam_main=no
33860 fi
33861 rm -f conftest.err conftest.$ac_objext \
33862       conftest$ac_exeext conftest.$ac_ext
33863 LIBS=$ac_check_lib_save_LIBS
33864 fi
33865 echo "$as_me:$LINENO: result: $ac_cv_lib_cam_main" >&5
33866 echo "${ECHO_T}$ac_cv_lib_cam_main" >&6
33867 if test $ac_cv_lib_cam_main = yes; then
33868   cat >>confdefs.h <<_ACEOF
33869 #define HAVE_LIBCAM 1
33870 _ACEOF
33871
33872   LIBS="-lcam $LIBS"
33873
33874 fi
33875
33876         fi
33877 fi
33878
33879
33880 if test x"$ac_cv_header_sys_mtio_h" = x"yes" &&
33881    test x"$ac_cv_header_sys_scsiio_h" = x"yes"; then
33882     echo "$as_me:$LINENO: checking for BSD like scsi support" >&5
33883 echo $ECHO_N "checking for BSD like scsi support... $ECHO_C" >&6
33884 if test "${amanda_cv_bsd_scsi+set}" = set; then
33885   echo $ECHO_N "(cached) $ECHO_C" >&6
33886 else
33887   cat >conftest.$ac_ext <<_ACEOF
33888 /* confdefs.h.  */
33889 _ACEOF
33890 cat confdefs.h >>conftest.$ac_ext
33891 cat >>conftest.$ac_ext <<_ACEOF
33892 /* end confdefs.h.  */
33893
33894 #include <sys/types.h>
33895 #include <sys/scsiio.h>
33896 #include <sys/mtio.h>
33897
33898 int
33899 main ()
33900 {
33901
33902     int device=1;
33903     char Command;
33904     ioctl(device, SCIOCCOMMAND, &Command);
33905
33906   ;
33907   return 0;
33908 }
33909 _ACEOF
33910 rm -f conftest.$ac_objext
33911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33912   (eval $ac_compile) 2>conftest.er1
33913   ac_status=$?
33914   grep -v '^ *+' conftest.er1 >conftest.err
33915   rm -f conftest.er1
33916   cat conftest.err >&5
33917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33918   (exit $ac_status); } &&
33919          { ac_try='test -z "$ac_c_werror_flag"
33920                          || test ! -s conftest.err'
33921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33922   (eval $ac_try) 2>&5
33923   ac_status=$?
33924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33925   (exit $ac_status); }; } &&
33926          { ac_try='test -s conftest.$ac_objext'
33927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33928   (eval $ac_try) 2>&5
33929   ac_status=$?
33930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33931   (exit $ac_status); }; }; then
33932   amanda_cv_bsd_scsi=yes
33933 else
33934   echo "$as_me: failed program was:" >&5
33935 sed 's/^/| /' conftest.$ac_ext >&5
33936
33937 amanda_cv_bsd_scsi=no
33938 fi
33939 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33940 fi
33941 echo "$as_me:$LINENO: result: $amanda_cv_bsd_scsi" >&5
33942 echo "${ECHO_T}$amanda_cv_bsd_scsi" >&6
33943     if test x"$amanda_cv_bsd_scsi" = x"yes";then
33944
33945 cat >>confdefs.h <<\_ACEOF
33946 #define HAVE_BSD_LIKE_SCSI 1
33947 _ACEOF
33948
33949        NO_SCSI_CHANGER_MODE=false
33950     fi
33951 fi
33952
33953 if test x"$ac_cv_header_chio_h" = x"yes" ||
33954    test x"$ac_cv_header_sys_chio_h" = x"yes"; then
33955          if test x"$ac_cv_header_camlib_h" != x"yes"; then
33956      if $NO_SCSI_CHANGER_MODE; then
33957        NO_SCSI_CHANGER_MODE=false
33958      else
33959        NO_CHIO_CHANGER_MODE=false
33960      fi
33961    fi
33962 fi
33963
33964
33965 echo "$as_me:$LINENO: checking for main in -lcur_colr" >&5
33966 echo $ECHO_N "checking for main in -lcur_colr... $ECHO_C" >&6
33967 if test "${ac_cv_lib_cur_colr_main+set}" = set; then
33968   echo $ECHO_N "(cached) $ECHO_C" >&6
33969 else
33970   ac_check_lib_save_LIBS=$LIBS
33971 LIBS="-lcur_colr  $LIBS"
33972 cat >conftest.$ac_ext <<_ACEOF
33973 /* confdefs.h.  */
33974 _ACEOF
33975 cat confdefs.h >>conftest.$ac_ext
33976 cat >>conftest.$ac_ext <<_ACEOF
33977 /* end confdefs.h.  */
33978
33979
33980 int
33981 main ()
33982 {
33983 main ();
33984   ;
33985   return 0;
33986 }
33987 _ACEOF
33988 rm -f conftest.$ac_objext conftest$ac_exeext
33989 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33990   (eval $ac_link) 2>conftest.er1
33991   ac_status=$?
33992   grep -v '^ *+' conftest.er1 >conftest.err
33993   rm -f conftest.er1
33994   cat conftest.err >&5
33995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33996   (exit $ac_status); } &&
33997          { ac_try='test -z "$ac_c_werror_flag"
33998                          || test ! -s conftest.err'
33999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34000   (eval $ac_try) 2>&5
34001   ac_status=$?
34002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34003   (exit $ac_status); }; } &&
34004          { ac_try='test -s conftest$ac_exeext'
34005   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34006   (eval $ac_try) 2>&5
34007   ac_status=$?
34008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34009   (exit $ac_status); }; }; then
34010   ac_cv_lib_cur_colr_main=yes
34011 else
34012   echo "$as_me: failed program was:" >&5
34013 sed 's/^/| /' conftest.$ac_ext >&5
34014
34015 ac_cv_lib_cur_colr_main=no
34016 fi
34017 rm -f conftest.err conftest.$ac_objext \
34018       conftest$ac_exeext conftest.$ac_ext
34019 LIBS=$ac_check_lib_save_LIBS
34020 fi
34021 echo "$as_me:$LINENO: result: $ac_cv_lib_cur_colr_main" >&5
34022 echo "${ECHO_T}$ac_cv_lib_cur_colr_main" >&6
34023 if test $ac_cv_lib_cur_colr_main = yes; then
34024   cat >>confdefs.h <<_ACEOF
34025 #define HAVE_LIBCUR_COLR 1
34026 _ACEOF
34027
34028   LIBS="-lcur_colr $LIBS"
34029
34030 fi
34031
34032
34033
34034 echo "$as_me:$LINENO: checking for main in -lintl" >&5
34035 echo $ECHO_N "checking for main in -lintl... $ECHO_C" >&6
34036 if test "${ac_cv_lib_intl_main+set}" = set; then
34037   echo $ECHO_N "(cached) $ECHO_C" >&6
34038 else
34039   ac_check_lib_save_LIBS=$LIBS
34040 LIBS="-lintl  $LIBS"
34041 cat >conftest.$ac_ext <<_ACEOF
34042 /* confdefs.h.  */
34043 _ACEOF
34044 cat confdefs.h >>conftest.$ac_ext
34045 cat >>conftest.$ac_ext <<_ACEOF
34046 /* end confdefs.h.  */
34047
34048
34049 int
34050 main ()
34051 {
34052 main ();
34053   ;
34054   return 0;
34055 }
34056 _ACEOF
34057 rm -f conftest.$ac_objext conftest$ac_exeext
34058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34059   (eval $ac_link) 2>conftest.er1
34060   ac_status=$?
34061   grep -v '^ *+' conftest.er1 >conftest.err
34062   rm -f conftest.er1
34063   cat conftest.err >&5
34064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34065   (exit $ac_status); } &&
34066          { ac_try='test -z "$ac_c_werror_flag"
34067                          || test ! -s conftest.err'
34068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34069   (eval $ac_try) 2>&5
34070   ac_status=$?
34071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34072   (exit $ac_status); }; } &&
34073          { ac_try='test -s conftest$ac_exeext'
34074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34075   (eval $ac_try) 2>&5
34076   ac_status=$?
34077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34078   (exit $ac_status); }; }; then
34079   ac_cv_lib_intl_main=yes
34080 else
34081   echo "$as_me: failed program was:" >&5
34082 sed 's/^/| /' conftest.$ac_ext >&5
34083
34084 ac_cv_lib_intl_main=no
34085 fi
34086 rm -f conftest.err conftest.$ac_objext \
34087       conftest$ac_exeext conftest.$ac_ext
34088 LIBS=$ac_check_lib_save_LIBS
34089 fi
34090 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_main" >&5
34091 echo "${ECHO_T}$ac_cv_lib_intl_main" >&6
34092 if test $ac_cv_lib_intl_main = yes; then
34093   cat >>confdefs.h <<_ACEOF
34094 #define HAVE_LIBINTL 1
34095 _ACEOF
34096
34097   LIBS="-lintl $LIBS"
34098
34099 fi
34100
34101
34102 case "$target" in
34103     *sgi-irix*)
34104
34105 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
34106 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
34107 if test "${ac_cv_lib_socket_main+set}" = set; then
34108   echo $ECHO_N "(cached) $ECHO_C" >&6
34109 else
34110   ac_check_lib_save_LIBS=$LIBS
34111 LIBS="-lsocket  $LIBS"
34112 cat >conftest.$ac_ext <<_ACEOF
34113 /* confdefs.h.  */
34114 _ACEOF
34115 cat confdefs.h >>conftest.$ac_ext
34116 cat >>conftest.$ac_ext <<_ACEOF
34117 /* end confdefs.h.  */
34118
34119
34120 int
34121 main ()
34122 {
34123 main ();
34124   ;
34125   return 0;
34126 }
34127 _ACEOF
34128 rm -f conftest.$ac_objext conftest$ac_exeext
34129 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34130   (eval $ac_link) 2>conftest.er1
34131   ac_status=$?
34132   grep -v '^ *+' conftest.er1 >conftest.err
34133   rm -f conftest.er1
34134   cat conftest.err >&5
34135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34136   (exit $ac_status); } &&
34137          { ac_try='test -z "$ac_c_werror_flag"
34138                          || test ! -s conftest.err'
34139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34140   (eval $ac_try) 2>&5
34141   ac_status=$?
34142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34143   (exit $ac_status); }; } &&
34144          { ac_try='test -s conftest$ac_exeext'
34145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34146   (eval $ac_try) 2>&5
34147   ac_status=$?
34148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34149   (exit $ac_status); }; }; then
34150   ac_cv_lib_socket_main=yes
34151 else
34152   echo "$as_me: failed program was:" >&5
34153 sed 's/^/| /' conftest.$ac_ext >&5
34154
34155 ac_cv_lib_socket_main=no
34156 fi
34157 rm -f conftest.err conftest.$ac_objext \
34158       conftest$ac_exeext conftest.$ac_ext
34159 LIBS=$ac_check_lib_save_LIBS
34160 fi
34161 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
34162 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
34163 if test $ac_cv_lib_socket_main = yes; then
34164   cat >>confdefs.h <<_ACEOF
34165 #define HAVE_LIBSOCKET 1
34166 _ACEOF
34167
34168   LIBS="-lsocket $LIBS"
34169
34170 fi
34171
34172                         ;;
34173     *)
34174
34175 echo "$as_me:$LINENO: checking for main in -lresolv" >&5
34176 echo $ECHO_N "checking for main in -lresolv... $ECHO_C" >&6
34177 if test "${ac_cv_lib_resolv_main+set}" = set; then
34178   echo $ECHO_N "(cached) $ECHO_C" >&6
34179 else
34180   ac_check_lib_save_LIBS=$LIBS
34181 LIBS="-lresolv  $LIBS"
34182 cat >conftest.$ac_ext <<_ACEOF
34183 /* confdefs.h.  */
34184 _ACEOF
34185 cat confdefs.h >>conftest.$ac_ext
34186 cat >>conftest.$ac_ext <<_ACEOF
34187 /* end confdefs.h.  */
34188
34189
34190 int
34191 main ()
34192 {
34193 main ();
34194   ;
34195   return 0;
34196 }
34197 _ACEOF
34198 rm -f conftest.$ac_objext conftest$ac_exeext
34199 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34200   (eval $ac_link) 2>conftest.er1
34201   ac_status=$?
34202   grep -v '^ *+' conftest.er1 >conftest.err
34203   rm -f conftest.er1
34204   cat conftest.err >&5
34205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34206   (exit $ac_status); } &&
34207          { ac_try='test -z "$ac_c_werror_flag"
34208                          || test ! -s conftest.err'
34209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34210   (eval $ac_try) 2>&5
34211   ac_status=$?
34212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34213   (exit $ac_status); }; } &&
34214          { ac_try='test -s conftest$ac_exeext'
34215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34216   (eval $ac_try) 2>&5
34217   ac_status=$?
34218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34219   (exit $ac_status); }; }; then
34220   ac_cv_lib_resolv_main=yes
34221 else
34222   echo "$as_me: failed program was:" >&5
34223 sed 's/^/| /' conftest.$ac_ext >&5
34224
34225 ac_cv_lib_resolv_main=no
34226 fi
34227 rm -f conftest.err conftest.$ac_objext \
34228       conftest$ac_exeext conftest.$ac_ext
34229 LIBS=$ac_check_lib_save_LIBS
34230 fi
34231 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_main" >&5
34232 echo "${ECHO_T}$ac_cv_lib_resolv_main" >&6
34233 if test $ac_cv_lib_resolv_main = yes; then
34234   cat >>confdefs.h <<_ACEOF
34235 #define HAVE_LIBRESOLV 1
34236 _ACEOF
34237
34238   LIBS="-lresolv $LIBS"
34239
34240 fi
34241
34242
34243 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
34244 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
34245 if test "${ac_cv_lib_nsl_main+set}" = set; then
34246   echo $ECHO_N "(cached) $ECHO_C" >&6
34247 else
34248   ac_check_lib_save_LIBS=$LIBS
34249 LIBS="-lnsl  $LIBS"
34250 cat >conftest.$ac_ext <<_ACEOF
34251 /* confdefs.h.  */
34252 _ACEOF
34253 cat confdefs.h >>conftest.$ac_ext
34254 cat >>conftest.$ac_ext <<_ACEOF
34255 /* end confdefs.h.  */
34256
34257
34258 int
34259 main ()
34260 {
34261 main ();
34262   ;
34263   return 0;
34264 }
34265 _ACEOF
34266 rm -f conftest.$ac_objext conftest$ac_exeext
34267 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34268   (eval $ac_link) 2>conftest.er1
34269   ac_status=$?
34270   grep -v '^ *+' conftest.er1 >conftest.err
34271   rm -f conftest.er1
34272   cat conftest.err >&5
34273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34274   (exit $ac_status); } &&
34275          { ac_try='test -z "$ac_c_werror_flag"
34276                          || test ! -s conftest.err'
34277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34278   (eval $ac_try) 2>&5
34279   ac_status=$?
34280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34281   (exit $ac_status); }; } &&
34282          { ac_try='test -s conftest$ac_exeext'
34283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34284   (eval $ac_try) 2>&5
34285   ac_status=$?
34286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34287   (exit $ac_status); }; }; then
34288   ac_cv_lib_nsl_main=yes
34289 else
34290   echo "$as_me: failed program was:" >&5
34291 sed 's/^/| /' conftest.$ac_ext >&5
34292
34293 ac_cv_lib_nsl_main=no
34294 fi
34295 rm -f conftest.err conftest.$ac_objext \
34296       conftest$ac_exeext conftest.$ac_ext
34297 LIBS=$ac_check_lib_save_LIBS
34298 fi
34299 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
34300 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
34301 if test $ac_cv_lib_nsl_main = yes; then
34302   cat >>confdefs.h <<_ACEOF
34303 #define HAVE_LIBNSL 1
34304 _ACEOF
34305
34306   LIBS="-lnsl $LIBS"
34307
34308 fi
34309
34310
34311 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
34312 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
34313 if test "${ac_cv_lib_socket_main+set}" = set; then
34314   echo $ECHO_N "(cached) $ECHO_C" >&6
34315 else
34316   ac_check_lib_save_LIBS=$LIBS
34317 LIBS="-lsocket  $LIBS"
34318 cat >conftest.$ac_ext <<_ACEOF
34319 /* confdefs.h.  */
34320 _ACEOF
34321 cat confdefs.h >>conftest.$ac_ext
34322 cat >>conftest.$ac_ext <<_ACEOF
34323 /* end confdefs.h.  */
34324
34325
34326 int
34327 main ()
34328 {
34329 main ();
34330   ;
34331   return 0;
34332 }
34333 _ACEOF
34334 rm -f conftest.$ac_objext conftest$ac_exeext
34335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34336   (eval $ac_link) 2>conftest.er1
34337   ac_status=$?
34338   grep -v '^ *+' conftest.er1 >conftest.err
34339   rm -f conftest.er1
34340   cat conftest.err >&5
34341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34342   (exit $ac_status); } &&
34343          { ac_try='test -z "$ac_c_werror_flag"
34344                          || test ! -s conftest.err'
34345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34346   (eval $ac_try) 2>&5
34347   ac_status=$?
34348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34349   (exit $ac_status); }; } &&
34350          { ac_try='test -s conftest$ac_exeext'
34351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34352   (eval $ac_try) 2>&5
34353   ac_status=$?
34354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34355   (exit $ac_status); }; }; then
34356   ac_cv_lib_socket_main=yes
34357 else
34358   echo "$as_me: failed program was:" >&5
34359 sed 's/^/| /' conftest.$ac_ext >&5
34360
34361 ac_cv_lib_socket_main=no
34362 fi
34363 rm -f conftest.err conftest.$ac_objext \
34364       conftest$ac_exeext conftest.$ac_ext
34365 LIBS=$ac_check_lib_save_LIBS
34366 fi
34367 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
34368 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
34369 if test $ac_cv_lib_socket_main = yes; then
34370   cat >>confdefs.h <<_ACEOF
34371 #define HAVE_LIBSOCKET 1
34372 _ACEOF
34373
34374   LIBS="-lsocket $LIBS"
34375
34376 fi
34377
34378
34379 echo "$as_me:$LINENO: checking for main in -lsun" >&5
34380 echo $ECHO_N "checking for main in -lsun... $ECHO_C" >&6
34381 if test "${ac_cv_lib_sun_main+set}" = set; then
34382   echo $ECHO_N "(cached) $ECHO_C" >&6
34383 else
34384   ac_check_lib_save_LIBS=$LIBS
34385 LIBS="-lsun  $LIBS"
34386 cat >conftest.$ac_ext <<_ACEOF
34387 /* confdefs.h.  */
34388 _ACEOF
34389 cat confdefs.h >>conftest.$ac_ext
34390 cat >>conftest.$ac_ext <<_ACEOF
34391 /* end confdefs.h.  */
34392
34393
34394 int
34395 main ()
34396 {
34397 main ();
34398   ;
34399   return 0;
34400 }
34401 _ACEOF
34402 rm -f conftest.$ac_objext conftest$ac_exeext
34403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34404   (eval $ac_link) 2>conftest.er1
34405   ac_status=$?
34406   grep -v '^ *+' conftest.er1 >conftest.err
34407   rm -f conftest.er1
34408   cat conftest.err >&5
34409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34410   (exit $ac_status); } &&
34411          { ac_try='test -z "$ac_c_werror_flag"
34412                          || test ! -s conftest.err'
34413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34414   (eval $ac_try) 2>&5
34415   ac_status=$?
34416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34417   (exit $ac_status); }; } &&
34418          { ac_try='test -s conftest$ac_exeext'
34419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34420   (eval $ac_try) 2>&5
34421   ac_status=$?
34422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34423   (exit $ac_status); }; }; then
34424   ac_cv_lib_sun_main=yes
34425 else
34426   echo "$as_me: failed program was:" >&5
34427 sed 's/^/| /' conftest.$ac_ext >&5
34428
34429 ac_cv_lib_sun_main=no
34430 fi
34431 rm -f conftest.err conftest.$ac_objext \
34432       conftest$ac_exeext conftest.$ac_ext
34433 LIBS=$ac_check_lib_save_LIBS
34434 fi
34435 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_main" >&5
34436 echo "${ECHO_T}$ac_cv_lib_sun_main" >&6
34437 if test $ac_cv_lib_sun_main = yes; then
34438   cat >>confdefs.h <<_ACEOF
34439 #define HAVE_LIBSUN 1
34440 _ACEOF
34441
34442   LIBS="-lsun $LIBS"
34443
34444 fi
34445
34446                         ;;
34447 esac
34448
34449
34450 echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
34451 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
34452 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
34453   echo $ECHO_N "(cached) $ECHO_C" >&6
34454 else
34455   ac_check_lib_save_LIBS=$LIBS
34456 LIBS="-ltermcap  $LIBS"
34457 cat >conftest.$ac_ext <<_ACEOF
34458 /* confdefs.h.  */
34459 _ACEOF
34460 cat confdefs.h >>conftest.$ac_ext
34461 cat >>conftest.$ac_ext <<_ACEOF
34462 /* end confdefs.h.  */
34463
34464 /* Override any gcc2 internal prototype to avoid an error.  */
34465 #ifdef __cplusplus
34466 extern "C"
34467 #endif
34468 /* We use char because int might match the return type of a gcc2
34469    builtin and then its argument prototype would still apply.  */
34470 char tgetent ();
34471 int
34472 main ()
34473 {
34474 tgetent ();
34475   ;
34476   return 0;
34477 }
34478 _ACEOF
34479 rm -f conftest.$ac_objext conftest$ac_exeext
34480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34481   (eval $ac_link) 2>conftest.er1
34482   ac_status=$?
34483   grep -v '^ *+' conftest.er1 >conftest.err
34484   rm -f conftest.er1
34485   cat conftest.err >&5
34486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34487   (exit $ac_status); } &&
34488          { ac_try='test -z "$ac_c_werror_flag"
34489                          || test ! -s conftest.err'
34490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34491   (eval $ac_try) 2>&5
34492   ac_status=$?
34493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34494   (exit $ac_status); }; } &&
34495          { ac_try='test -s conftest$ac_exeext'
34496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34497   (eval $ac_try) 2>&5
34498   ac_status=$?
34499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34500   (exit $ac_status); }; }; then
34501   ac_cv_lib_termcap_tgetent=yes
34502 else
34503   echo "$as_me: failed program was:" >&5
34504 sed 's/^/| /' conftest.$ac_ext >&5
34505
34506 ac_cv_lib_termcap_tgetent=no
34507 fi
34508 rm -f conftest.err conftest.$ac_objext \
34509       conftest$ac_exeext conftest.$ac_ext
34510 LIBS=$ac_check_lib_save_LIBS
34511 fi
34512 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
34513 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
34514 if test $ac_cv_lib_termcap_tgetent = yes; then
34515   cat >>confdefs.h <<_ACEOF
34516 #define HAVE_LIBTERMCAP 1
34517 _ACEOF
34518
34519   LIBS="-ltermcap $LIBS"
34520
34521 fi
34522
34523 if test "x$ac_cv_lib_termcap_tgetent" != xyes; then
34524
34525 echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
34526 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6
34527 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
34528   echo $ECHO_N "(cached) $ECHO_C" >&6
34529 else
34530   ac_check_lib_save_LIBS=$LIBS
34531 LIBS="-lcurses  $LIBS"
34532 cat >conftest.$ac_ext <<_ACEOF
34533 /* confdefs.h.  */
34534 _ACEOF
34535 cat confdefs.h >>conftest.$ac_ext
34536 cat >>conftest.$ac_ext <<_ACEOF
34537 /* end confdefs.h.  */
34538
34539 /* Override any gcc2 internal prototype to avoid an error.  */
34540 #ifdef __cplusplus
34541 extern "C"
34542 #endif
34543 /* We use char because int might match the return type of a gcc2
34544    builtin and then its argument prototype would still apply.  */
34545 char tgetent ();
34546 int
34547 main ()
34548 {
34549 tgetent ();
34550   ;
34551   return 0;
34552 }
34553 _ACEOF
34554 rm -f conftest.$ac_objext conftest$ac_exeext
34555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34556   (eval $ac_link) 2>conftest.er1
34557   ac_status=$?
34558   grep -v '^ *+' conftest.er1 >conftest.err
34559   rm -f conftest.er1
34560   cat conftest.err >&5
34561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34562   (exit $ac_status); } &&
34563          { ac_try='test -z "$ac_c_werror_flag"
34564                          || test ! -s conftest.err'
34565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34566   (eval $ac_try) 2>&5
34567   ac_status=$?
34568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34569   (exit $ac_status); }; } &&
34570          { ac_try='test -s conftest$ac_exeext'
34571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34572   (eval $ac_try) 2>&5
34573   ac_status=$?
34574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34575   (exit $ac_status); }; }; then
34576   ac_cv_lib_curses_tgetent=yes
34577 else
34578   echo "$as_me: failed program was:" >&5
34579 sed 's/^/| /' conftest.$ac_ext >&5
34580
34581 ac_cv_lib_curses_tgetent=no
34582 fi
34583 rm -f conftest.err conftest.$ac_objext \
34584       conftest$ac_exeext conftest.$ac_ext
34585 LIBS=$ac_check_lib_save_LIBS
34586 fi
34587 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
34588 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6
34589 if test $ac_cv_lib_curses_tgetent = yes; then
34590   cat >>confdefs.h <<_ACEOF
34591 #define HAVE_LIBCURSES 1
34592 _ACEOF
34593
34594   LIBS="-lcurses $LIBS"
34595
34596 fi
34597
34598     if test "x$ac_cv_lib_curses_tgetent" != xyes; then
34599
34600 echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
34601 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
34602 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
34603   echo $ECHO_N "(cached) $ECHO_C" >&6
34604 else
34605   ac_check_lib_save_LIBS=$LIBS
34606 LIBS="-lncurses  $LIBS"
34607 cat >conftest.$ac_ext <<_ACEOF
34608 /* confdefs.h.  */
34609 _ACEOF
34610 cat confdefs.h >>conftest.$ac_ext
34611 cat >>conftest.$ac_ext <<_ACEOF
34612 /* end confdefs.h.  */
34613
34614 /* Override any gcc2 internal prototype to avoid an error.  */
34615 #ifdef __cplusplus
34616 extern "C"
34617 #endif
34618 /* We use char because int might match the return type of a gcc2
34619    builtin and then its argument prototype would still apply.  */
34620 char tgetent ();
34621 int
34622 main ()
34623 {
34624 tgetent ();
34625   ;
34626   return 0;
34627 }
34628 _ACEOF
34629 rm -f conftest.$ac_objext conftest$ac_exeext
34630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34631   (eval $ac_link) 2>conftest.er1
34632   ac_status=$?
34633   grep -v '^ *+' conftest.er1 >conftest.err
34634   rm -f conftest.er1
34635   cat conftest.err >&5
34636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34637   (exit $ac_status); } &&
34638          { ac_try='test -z "$ac_c_werror_flag"
34639                          || test ! -s conftest.err'
34640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34641   (eval $ac_try) 2>&5
34642   ac_status=$?
34643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34644   (exit $ac_status); }; } &&
34645          { ac_try='test -s conftest$ac_exeext'
34646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34647   (eval $ac_try) 2>&5
34648   ac_status=$?
34649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34650   (exit $ac_status); }; }; then
34651   ac_cv_lib_ncurses_tgetent=yes
34652 else
34653   echo "$as_me: failed program was:" >&5
34654 sed 's/^/| /' conftest.$ac_ext >&5
34655
34656 ac_cv_lib_ncurses_tgetent=no
34657 fi
34658 rm -f conftest.err conftest.$ac_objext \
34659       conftest$ac_exeext conftest.$ac_ext
34660 LIBS=$ac_check_lib_save_LIBS
34661 fi
34662 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
34663 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
34664 if test $ac_cv_lib_ncurses_tgetent = yes; then
34665   cat >>confdefs.h <<_ACEOF
34666 #define HAVE_LIBNCURSES 1
34667 _ACEOF
34668
34669   LIBS="-lncurses $LIBS"
34670
34671 fi
34672
34673     fi
34674 fi
34675 if test "x$ac_cv_lib_termcap_tgetent" = xyes ||
34676    test "x$ac_cv_lib_curses_tgetent" = xyes ||
34677    test "x$ac_cv_lib_ncurses_tgetent" = xyes; then
34678
34679 echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
34680 echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6
34681 if test "${ac_cv_lib_readline_readline+set}" = set; then
34682   echo $ECHO_N "(cached) $ECHO_C" >&6
34683 else
34684   ac_check_lib_save_LIBS=$LIBS
34685 LIBS="-lreadline  $LIBS"
34686 cat >conftest.$ac_ext <<_ACEOF
34687 /* confdefs.h.  */
34688 _ACEOF
34689 cat confdefs.h >>conftest.$ac_ext
34690 cat >>conftest.$ac_ext <<_ACEOF
34691 /* end confdefs.h.  */
34692
34693 /* Override any gcc2 internal prototype to avoid an error.  */
34694 #ifdef __cplusplus
34695 extern "C"
34696 #endif
34697 /* We use char because int might match the return type of a gcc2
34698    builtin and then its argument prototype would still apply.  */
34699 char readline ();
34700 int
34701 main ()
34702 {
34703 readline ();
34704   ;
34705   return 0;
34706 }
34707 _ACEOF
34708 rm -f conftest.$ac_objext conftest$ac_exeext
34709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34710   (eval $ac_link) 2>conftest.er1
34711   ac_status=$?
34712   grep -v '^ *+' conftest.er1 >conftest.err
34713   rm -f conftest.er1
34714   cat conftest.err >&5
34715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34716   (exit $ac_status); } &&
34717          { ac_try='test -z "$ac_c_werror_flag"
34718                          || test ! -s conftest.err'
34719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34720   (eval $ac_try) 2>&5
34721   ac_status=$?
34722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34723   (exit $ac_status); }; } &&
34724          { ac_try='test -s conftest$ac_exeext'
34725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34726   (eval $ac_try) 2>&5
34727   ac_status=$?
34728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34729   (exit $ac_status); }; }; then
34730   ac_cv_lib_readline_readline=yes
34731 else
34732   echo "$as_me: failed program was:" >&5
34733 sed 's/^/| /' conftest.$ac_ext >&5
34734
34735 ac_cv_lib_readline_readline=no
34736 fi
34737 rm -f conftest.err conftest.$ac_objext \
34738       conftest$ac_exeext conftest.$ac_ext
34739 LIBS=$ac_check_lib_save_LIBS
34740 fi
34741 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
34742 echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6
34743 if test $ac_cv_lib_readline_readline = yes; then
34744   cat >>confdefs.h <<_ACEOF
34745 #define HAVE_LIBREADLINE 1
34746 _ACEOF
34747
34748   LIBS="-lreadline $LIBS"
34749
34750 fi
34751
34752     if test "x$ac_cv_lib_readline_readline" = xyes; then
34753         READLINE_LIBS="-lreadline"
34754
34755     else
34756         { echo "$as_me:$LINENO: WARNING: *** No readline library, no history and command line editing in amrecover!" >&5
34757 echo "$as_me: WARNING: *** No readline library, no history and command line editing in amrecover!" >&2;}
34758     fi
34759 else
34760     { echo "$as_me:$LINENO: WARNING: *** No terminal library, no history and command line editing in amrecover!" >&5
34761 echo "$as_me: WARNING: *** No terminal library, no history and command line editing in amrecover!" >&2;}
34762 fi
34763
34764 if test "x$ac_cv_header_linux_zftape_h" = xyes; then
34765     if test "x$ac_cv_header_vtblc_h" = xyes; then
34766
34767 echo "$as_me:$LINENO: checking for main in -lvtblc" >&5
34768 echo $ECHO_N "checking for main in -lvtblc... $ECHO_C" >&6
34769 if test "${ac_cv_lib_vtblc_main+set}" = set; then
34770   echo $ECHO_N "(cached) $ECHO_C" >&6
34771 else
34772   ac_check_lib_save_LIBS=$LIBS
34773 LIBS="-lvtblc  $LIBS"
34774 cat >conftest.$ac_ext <<_ACEOF
34775 /* confdefs.h.  */
34776 _ACEOF
34777 cat confdefs.h >>conftest.$ac_ext
34778 cat >>conftest.$ac_ext <<_ACEOF
34779 /* end confdefs.h.  */
34780
34781
34782 int
34783 main ()
34784 {
34785 main ();
34786   ;
34787   return 0;
34788 }
34789 _ACEOF
34790 rm -f conftest.$ac_objext conftest$ac_exeext
34791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34792   (eval $ac_link) 2>conftest.er1
34793   ac_status=$?
34794   grep -v '^ *+' conftest.er1 >conftest.err
34795   rm -f conftest.er1
34796   cat conftest.err >&5
34797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34798   (exit $ac_status); } &&
34799          { ac_try='test -z "$ac_c_werror_flag"
34800                          || test ! -s conftest.err'
34801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34802   (eval $ac_try) 2>&5
34803   ac_status=$?
34804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34805   (exit $ac_status); }; } &&
34806          { ac_try='test -s conftest$ac_exeext'
34807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34808   (eval $ac_try) 2>&5
34809   ac_status=$?
34810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34811   (exit $ac_status); }; }; then
34812   ac_cv_lib_vtblc_main=yes
34813 else
34814   echo "$as_me: failed program was:" >&5
34815 sed 's/^/| /' conftest.$ac_ext >&5
34816
34817 ac_cv_lib_vtblc_main=no
34818 fi
34819 rm -f conftest.err conftest.$ac_objext \
34820       conftest$ac_exeext conftest.$ac_ext
34821 LIBS=$ac_check_lib_save_LIBS
34822 fi
34823 echo "$as_me:$LINENO: result: $ac_cv_lib_vtblc_main" >&5
34824 echo "${ECHO_T}$ac_cv_lib_vtblc_main" >&6
34825 if test $ac_cv_lib_vtblc_main = yes; then
34826   cat >>confdefs.h <<_ACEOF
34827 #define HAVE_LIBVTBLC 1
34828 _ACEOF
34829
34830   LIBS="-lvtblc $LIBS"
34831
34832 fi
34833
34834         if test "x$ac_cv_lib_vtblc_main" != xyes; then
34835             { echo "$as_me:$LINENO: WARNING: *** vtblc library not found - no QIC volume table support!" >&5
34836 echo "$as_me: WARNING: *** vtblc library not found - no QIC volume table support!" >&2;}
34837         fi
34838     else
34839         { echo "$as_me:$LINENO: WARNING: *** vtblc headers not found - no QIC volume table support!" >&5
34840 echo "$as_me: WARNING: *** vtblc headers not found - no QIC volume table support!" >&2;}
34841     fi
34842 fi
34843
34844
34845 echo "$as_me:$LINENO: checking for modf in -lm" >&5
34846 echo $ECHO_N "checking for modf in -lm... $ECHO_C" >&6
34847 if test "${ac_cv_lib_m_modf+set}" = set; then
34848   echo $ECHO_N "(cached) $ECHO_C" >&6
34849 else
34850   ac_check_lib_save_LIBS=$LIBS
34851 LIBS="-lm  $LIBS"
34852 cat >conftest.$ac_ext <<_ACEOF
34853 /* confdefs.h.  */
34854 _ACEOF
34855 cat confdefs.h >>conftest.$ac_ext
34856 cat >>conftest.$ac_ext <<_ACEOF
34857 /* end confdefs.h.  */
34858
34859 /* Override any gcc2 internal prototype to avoid an error.  */
34860 #ifdef __cplusplus
34861 extern "C"
34862 #endif
34863 /* We use char because int might match the return type of a gcc2
34864    builtin and then its argument prototype would still apply.  */
34865 char modf ();
34866 int
34867 main ()
34868 {
34869 modf ();
34870   ;
34871   return 0;
34872 }
34873 _ACEOF
34874 rm -f conftest.$ac_objext conftest$ac_exeext
34875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34876   (eval $ac_link) 2>conftest.er1
34877   ac_status=$?
34878   grep -v '^ *+' conftest.er1 >conftest.err
34879   rm -f conftest.er1
34880   cat conftest.err >&5
34881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34882   (exit $ac_status); } &&
34883          { ac_try='test -z "$ac_c_werror_flag"
34884                          || test ! -s conftest.err'
34885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34886   (eval $ac_try) 2>&5
34887   ac_status=$?
34888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34889   (exit $ac_status); }; } &&
34890          { ac_try='test -s conftest$ac_exeext'
34891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34892   (eval $ac_try) 2>&5
34893   ac_status=$?
34894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34895   (exit $ac_status); }; }; then
34896   ac_cv_lib_m_modf=yes
34897 else
34898   echo "$as_me: failed program was:" >&5
34899 sed 's/^/| /' conftest.$ac_ext >&5
34900
34901 ac_cv_lib_m_modf=no
34902 fi
34903 rm -f conftest.err conftest.$ac_objext \
34904       conftest$ac_exeext conftest.$ac_ext
34905 LIBS=$ac_check_lib_save_LIBS
34906 fi
34907 echo "$as_me:$LINENO: result: $ac_cv_lib_m_modf" >&5
34908 echo "${ECHO_T}$ac_cv_lib_m_modf" >&6
34909 if test $ac_cv_lib_m_modf = yes; then
34910   cat >>confdefs.h <<_ACEOF
34911 #define HAVE_LIBM 1
34912 _ACEOF
34913
34914   LIBS="-lm $LIBS"
34915
34916 fi
34917
34918
34919
34920 echo "$as_me:$LINENO: checking for mt_flags mtget structure element" >&5
34921 echo $ECHO_N "checking for mt_flags mtget structure element... $ECHO_C" >&6
34922 mt_flags_result="found"
34923 cat >conftest.$ac_ext <<_ACEOF
34924 /* confdefs.h.  */
34925 _ACEOF
34926 cat confdefs.h >>conftest.$ac_ext
34927 cat >>conftest.$ac_ext <<_ACEOF
34928 /* end confdefs.h.  */
34929
34930 #include <stdio.h>
34931 #include <sys/types.h>
34932 #include <sys/mtio.h>
34933
34934 int
34935 main ()
34936 {
34937
34938     struct mtget buf;
34939     long ds;
34940
34941     ds = buf.mt_flags;
34942
34943   ;
34944   return 0;
34945 }
34946 _ACEOF
34947 rm -f conftest.$ac_objext
34948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34949   (eval $ac_compile) 2>conftest.er1
34950   ac_status=$?
34951   grep -v '^ *+' conftest.er1 >conftest.err
34952   rm -f conftest.er1
34953   cat conftest.err >&5
34954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34955   (exit $ac_status); } &&
34956          { ac_try='test -z "$ac_c_werror_flag"
34957                          || test ! -s conftest.err'
34958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34959   (eval $ac_try) 2>&5
34960   ac_status=$?
34961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34962   (exit $ac_status); }; } &&
34963          { ac_try='test -s conftest.$ac_objext'
34964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34965   (eval $ac_try) 2>&5
34966   ac_status=$?
34967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34968   (exit $ac_status); }; }; then
34969
34970 cat >>confdefs.h <<\_ACEOF
34971 #define HAVE_MT_FLAGS 1
34972 _ACEOF
34973
34974 else
34975   echo "$as_me: failed program was:" >&5
34976 sed 's/^/| /' conftest.$ac_ext >&5
34977
34978 mt_flags_result="not found"
34979 fi
34980 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34981 echo "$as_me:$LINENO: result: $mt_flags_result" >&5
34982 echo "${ECHO_T}$mt_flags_result" >&6
34983
34984 echo "$as_me:$LINENO: checking for mt_fileno mtget structure element" >&5
34985 echo $ECHO_N "checking for mt_fileno mtget structure element... $ECHO_C" >&6
34986 mt_fileno_result="found"
34987 cat >conftest.$ac_ext <<_ACEOF
34988 /* confdefs.h.  */
34989 _ACEOF
34990 cat confdefs.h >>conftest.$ac_ext
34991 cat >>conftest.$ac_ext <<_ACEOF
34992 /* end confdefs.h.  */
34993
34994 #include <stdio.h>
34995 #include <sys/types.h>
34996 #include <sys/mtio.h>
34997
34998 int
34999 main ()
35000 {
35001
35002     struct mtget buf;
35003     long ds;
35004
35005     ds = buf.mt_fileno;
35006
35007   ;
35008   return 0;
35009 }
35010 _ACEOF
35011 rm -f conftest.$ac_objext
35012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35013   (eval $ac_compile) 2>conftest.er1
35014   ac_status=$?
35015   grep -v '^ *+' conftest.er1 >conftest.err
35016   rm -f conftest.er1
35017   cat conftest.err >&5
35018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35019   (exit $ac_status); } &&
35020          { ac_try='test -z "$ac_c_werror_flag"
35021                          || test ! -s conftest.err'
35022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35023   (eval $ac_try) 2>&5
35024   ac_status=$?
35025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35026   (exit $ac_status); }; } &&
35027          { ac_try='test -s conftest.$ac_objext'
35028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35029   (eval $ac_try) 2>&5
35030   ac_status=$?
35031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35032   (exit $ac_status); }; }; then
35033
35034 cat >>confdefs.h <<\_ACEOF
35035 #define HAVE_MT_FILENO 1
35036 _ACEOF
35037
35038 else
35039   echo "$as_me: failed program was:" >&5
35040 sed 's/^/| /' conftest.$ac_ext >&5
35041
35042 mt_fileno_result="not found"
35043 fi
35044 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35045 echo "$as_me:$LINENO: result: $mt_fileno_result" >&5
35046 echo "${ECHO_T}$mt_fileno_result" >&6
35047
35048 echo "$as_me:$LINENO: checking for mt_blkno mtget structure element" >&5
35049 echo $ECHO_N "checking for mt_blkno mtget structure element... $ECHO_C" >&6
35050 mt_blkno_result="found"
35051 cat >conftest.$ac_ext <<_ACEOF
35052 /* confdefs.h.  */
35053 _ACEOF
35054 cat confdefs.h >>conftest.$ac_ext
35055 cat >>conftest.$ac_ext <<_ACEOF
35056 /* end confdefs.h.  */
35057
35058 #include <stdio.h>
35059 #include <sys/types.h>
35060 #include <sys/mtio.h>
35061
35062 int
35063 main ()
35064 {
35065
35066     struct mtget buf;
35067     long ds;
35068
35069     ds = buf.mt_blkno;
35070
35071   ;
35072   return 0;
35073 }
35074 _ACEOF
35075 rm -f conftest.$ac_objext
35076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35077   (eval $ac_compile) 2>conftest.er1
35078   ac_status=$?
35079   grep -v '^ *+' conftest.er1 >conftest.err
35080   rm -f conftest.er1
35081   cat conftest.err >&5
35082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35083   (exit $ac_status); } &&
35084          { ac_try='test -z "$ac_c_werror_flag"
35085                          || test ! -s conftest.err'
35086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35087   (eval $ac_try) 2>&5
35088   ac_status=$?
35089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35090   (exit $ac_status); }; } &&
35091          { ac_try='test -s conftest.$ac_objext'
35092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35093   (eval $ac_try) 2>&5
35094   ac_status=$?
35095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35096   (exit $ac_status); }; }; then
35097
35098 cat >>confdefs.h <<\_ACEOF
35099 #define HAVE_MT_BLKNO 1
35100 _ACEOF
35101
35102 else
35103   echo "$as_me: failed program was:" >&5
35104 sed 's/^/| /' conftest.$ac_ext >&5
35105
35106 mt_blkno_result="not found"
35107 fi
35108 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35109 echo "$as_me:$LINENO: result: $mt_blkno_result" >&5
35110 echo "${ECHO_T}$mt_blkno_result" >&6
35111
35112 echo "$as_me:$LINENO: checking for mt_dsreg mtget structure element" >&5
35113 echo $ECHO_N "checking for mt_dsreg mtget structure element... $ECHO_C" >&6
35114 mt_dsreg_result="found"
35115 cat >conftest.$ac_ext <<_ACEOF
35116 /* confdefs.h.  */
35117 _ACEOF
35118 cat confdefs.h >>conftest.$ac_ext
35119 cat >>conftest.$ac_ext <<_ACEOF
35120 /* end confdefs.h.  */
35121
35122 #include <stdio.h>
35123 #include <sys/types.h>
35124 #include <sys/mtio.h>
35125
35126 int
35127 main ()
35128 {
35129
35130     struct mtget buf;
35131     long ds;
35132
35133     ds = buf.mt_dsreg;
35134
35135   ;
35136   return 0;
35137 }
35138 _ACEOF
35139 rm -f conftest.$ac_objext
35140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35141   (eval $ac_compile) 2>conftest.er1
35142   ac_status=$?
35143   grep -v '^ *+' conftest.er1 >conftest.err
35144   rm -f conftest.er1
35145   cat conftest.err >&5
35146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35147   (exit $ac_status); } &&
35148          { ac_try='test -z "$ac_c_werror_flag"
35149                          || test ! -s conftest.err'
35150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35151   (eval $ac_try) 2>&5
35152   ac_status=$?
35153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35154   (exit $ac_status); }; } &&
35155          { ac_try='test -s conftest.$ac_objext'
35156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35157   (eval $ac_try) 2>&5
35158   ac_status=$?
35159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35160   (exit $ac_status); }; }; then
35161
35162 cat >>confdefs.h <<\_ACEOF
35163 #define HAVE_MT_DSREG 1
35164 _ACEOF
35165
35166 else
35167   echo "$as_me: failed program was:" >&5
35168 sed 's/^/| /' conftest.$ac_ext >&5
35169
35170 mt_dsreg_result="not found"
35171 fi
35172 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35173 echo "$as_me:$LINENO: result: $mt_dsreg_result" >&5
35174 echo "${ECHO_T}$mt_dsreg_result" >&6
35175
35176 echo "$as_me:$LINENO: checking for mt_erreg mtget structure element" >&5
35177 echo $ECHO_N "checking for mt_erreg mtget structure element... $ECHO_C" >&6
35178 mt_erreg_result="found"
35179 cat >conftest.$ac_ext <<_ACEOF
35180 /* confdefs.h.  */
35181 _ACEOF
35182 cat confdefs.h >>conftest.$ac_ext
35183 cat >>conftest.$ac_ext <<_ACEOF
35184 /* end confdefs.h.  */
35185
35186 #include <stdio.h>
35187 #include <sys/types.h>
35188 #include <sys/mtio.h>
35189
35190 int
35191 main ()
35192 {
35193
35194     struct mtget buf;
35195     long ds;
35196
35197     ds = buf.mt_erreg;
35198
35199   ;
35200   return 0;
35201 }
35202 _ACEOF
35203 rm -f conftest.$ac_objext
35204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35205   (eval $ac_compile) 2>conftest.er1
35206   ac_status=$?
35207   grep -v '^ *+' conftest.er1 >conftest.err
35208   rm -f conftest.er1
35209   cat conftest.err >&5
35210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35211   (exit $ac_status); } &&
35212          { ac_try='test -z "$ac_c_werror_flag"
35213                          || test ! -s conftest.err'
35214   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35215   (eval $ac_try) 2>&5
35216   ac_status=$?
35217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35218   (exit $ac_status); }; } &&
35219          { ac_try='test -s conftest.$ac_objext'
35220   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35221   (eval $ac_try) 2>&5
35222   ac_status=$?
35223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35224   (exit $ac_status); }; }; then
35225
35226 cat >>confdefs.h <<\_ACEOF
35227 #define HAVE_MT_ERREG 1
35228 _ACEOF
35229
35230 else
35231   echo "$as_me: failed program was:" >&5
35232 sed 's/^/| /' conftest.$ac_ext >&5
35233
35234 mt_erreg_result="not found"
35235 fi
35236 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35237 echo "$as_me:$LINENO: result: $mt_erreg_result" >&5
35238 echo "${ECHO_T}$mt_erreg_result" >&6
35239
35240
35241 DB_HEADER=
35242 DB_LIB=
35243
35244 save_LIBS="$LIBS"
35245
35246 echo "$as_me:$LINENO: checking for dbm_open in -lc" >&5
35247 echo $ECHO_N "checking for dbm_open in -lc... $ECHO_C" >&6
35248 if test "${ac_cv_lib_c_dbm_open+set}" = set; then
35249   echo $ECHO_N "(cached) $ECHO_C" >&6
35250 else
35251   ac_check_lib_save_LIBS=$LIBS
35252 LIBS="-lc  $LIBS"
35253 cat >conftest.$ac_ext <<_ACEOF
35254 /* confdefs.h.  */
35255 _ACEOF
35256 cat confdefs.h >>conftest.$ac_ext
35257 cat >>conftest.$ac_ext <<_ACEOF
35258 /* end confdefs.h.  */
35259
35260 /* Override any gcc2 internal prototype to avoid an error.  */
35261 #ifdef __cplusplus
35262 extern "C"
35263 #endif
35264 /* We use char because int might match the return type of a gcc2
35265    builtin and then its argument prototype would still apply.  */
35266 char dbm_open ();
35267 int
35268 main ()
35269 {
35270 dbm_open ();
35271   ;
35272   return 0;
35273 }
35274 _ACEOF
35275 rm -f conftest.$ac_objext conftest$ac_exeext
35276 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35277   (eval $ac_link) 2>conftest.er1
35278   ac_status=$?
35279   grep -v '^ *+' conftest.er1 >conftest.err
35280   rm -f conftest.er1
35281   cat conftest.err >&5
35282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35283   (exit $ac_status); } &&
35284          { ac_try='test -z "$ac_c_werror_flag"
35285                          || test ! -s conftest.err'
35286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35287   (eval $ac_try) 2>&5
35288   ac_status=$?
35289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35290   (exit $ac_status); }; } &&
35291          { ac_try='test -s conftest$ac_exeext'
35292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35293   (eval $ac_try) 2>&5
35294   ac_status=$?
35295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35296   (exit $ac_status); }; }; then
35297   ac_cv_lib_c_dbm_open=yes
35298 else
35299   echo "$as_me: failed program was:" >&5
35300 sed 's/^/| /' conftest.$ac_ext >&5
35301
35302 ac_cv_lib_c_dbm_open=no
35303 fi
35304 rm -f conftest.err conftest.$ac_objext \
35305       conftest$ac_exeext conftest.$ac_ext
35306 LIBS=$ac_check_lib_save_LIBS
35307 fi
35308 echo "$as_me:$LINENO: result: $ac_cv_lib_c_dbm_open" >&5
35309 echo "${ECHO_T}$ac_cv_lib_c_dbm_open" >&6
35310 if test $ac_cv_lib_c_dbm_open = yes; then
35311   cat >>confdefs.h <<_ACEOF
35312 #define HAVE_LIBC 1
35313 _ACEOF
35314
35315   LIBS="-lc $LIBS"
35316
35317 fi
35318
35319 LIBS="$save_LIBS"
35320
35321 case "$DB_STYLE" in
35322     db)
35323         if test "x$ac_cv_header_db_h" = xyes; then
35324
35325 echo "$as_me:$LINENO: checking for main in -ldb" >&5
35326 echo $ECHO_N "checking for main in -ldb... $ECHO_C" >&6
35327 if test "${ac_cv_lib_db_main+set}" = set; then
35328   echo $ECHO_N "(cached) $ECHO_C" >&6
35329 else
35330   ac_check_lib_save_LIBS=$LIBS
35331 LIBS="-ldb  $LIBS"
35332 cat >conftest.$ac_ext <<_ACEOF
35333 /* confdefs.h.  */
35334 _ACEOF
35335 cat confdefs.h >>conftest.$ac_ext
35336 cat >>conftest.$ac_ext <<_ACEOF
35337 /* end confdefs.h.  */
35338
35339
35340 int
35341 main ()
35342 {
35343 main ();
35344   ;
35345   return 0;
35346 }
35347 _ACEOF
35348 rm -f conftest.$ac_objext conftest$ac_exeext
35349 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35350   (eval $ac_link) 2>conftest.er1
35351   ac_status=$?
35352   grep -v '^ *+' conftest.er1 >conftest.err
35353   rm -f conftest.er1
35354   cat conftest.err >&5
35355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35356   (exit $ac_status); } &&
35357          { ac_try='test -z "$ac_c_werror_flag"
35358                          || test ! -s conftest.err'
35359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35360   (eval $ac_try) 2>&5
35361   ac_status=$?
35362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35363   (exit $ac_status); }; } &&
35364          { ac_try='test -s conftest$ac_exeext'
35365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35366   (eval $ac_try) 2>&5
35367   ac_status=$?
35368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35369   (exit $ac_status); }; }; then
35370   ac_cv_lib_db_main=yes
35371 else
35372   echo "$as_me: failed program was:" >&5
35373 sed 's/^/| /' conftest.$ac_ext >&5
35374
35375 ac_cv_lib_db_main=no
35376 fi
35377 rm -f conftest.err conftest.$ac_objext \
35378       conftest$ac_exeext conftest.$ac_ext
35379 LIBS=$ac_check_lib_save_LIBS
35380 fi
35381 echo "$as_me:$LINENO: result: $ac_cv_lib_db_main" >&5
35382 echo "${ECHO_T}$ac_cv_lib_db_main" >&6
35383 if test $ac_cv_lib_db_main = yes; then
35384   cat >>confdefs.h <<_ACEOF
35385 #define HAVE_LIBDB 1
35386 _ACEOF
35387
35388   LIBS="-ldb $LIBS"
35389
35390 fi
35391
35392             if test "x$ac_cv_lib_db_main" = xyes; then
35393
35394 echo "$as_me:$LINENO: checking for dbm_open in -ldb" >&5
35395 echo $ECHO_N "checking for dbm_open in -ldb... $ECHO_C" >&6
35396 if test "${ac_cv_lib_db_dbm_open+set}" = set; then
35397   echo $ECHO_N "(cached) $ECHO_C" >&6
35398 else
35399   ac_check_lib_save_LIBS=$LIBS
35400 LIBS="-ldb  $LIBS"
35401 cat >conftest.$ac_ext <<_ACEOF
35402 /* confdefs.h.  */
35403 _ACEOF
35404 cat confdefs.h >>conftest.$ac_ext
35405 cat >>conftest.$ac_ext <<_ACEOF
35406 /* end confdefs.h.  */
35407
35408 /* Override any gcc2 internal prototype to avoid an error.  */
35409 #ifdef __cplusplus
35410 extern "C"
35411 #endif
35412 /* We use char because int might match the return type of a gcc2
35413    builtin and then its argument prototype would still apply.  */
35414 char dbm_open ();
35415 int
35416 main ()
35417 {
35418 dbm_open ();
35419   ;
35420   return 0;
35421 }
35422 _ACEOF
35423 rm -f conftest.$ac_objext conftest$ac_exeext
35424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35425   (eval $ac_link) 2>conftest.er1
35426   ac_status=$?
35427   grep -v '^ *+' conftest.er1 >conftest.err
35428   rm -f conftest.er1
35429   cat conftest.err >&5
35430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35431   (exit $ac_status); } &&
35432          { ac_try='test -z "$ac_c_werror_flag"
35433                          || test ! -s conftest.err'
35434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35435   (eval $ac_try) 2>&5
35436   ac_status=$?
35437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35438   (exit $ac_status); }; } &&
35439          { ac_try='test -s conftest$ac_exeext'
35440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35441   (eval $ac_try) 2>&5
35442   ac_status=$?
35443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35444   (exit $ac_status); }; }; then
35445   ac_cv_lib_db_dbm_open=yes
35446 else
35447   echo "$as_me: failed program was:" >&5
35448 sed 's/^/| /' conftest.$ac_ext >&5
35449
35450 ac_cv_lib_db_dbm_open=no
35451 fi
35452 rm -f conftest.err conftest.$ac_objext \
35453       conftest$ac_exeext conftest.$ac_ext
35454 LIBS=$ac_check_lib_save_LIBS
35455 fi
35456 echo "$as_me:$LINENO: result: $ac_cv_lib_db_dbm_open" >&5
35457 echo "${ECHO_T}$ac_cv_lib_db_dbm_open" >&6
35458 if test $ac_cv_lib_db_dbm_open = yes; then
35459   cat >>confdefs.h <<_ACEOF
35460 #define HAVE_LIBDB 1
35461 _ACEOF
35462
35463   LIBS="-ldb $LIBS"
35464
35465 fi
35466
35467                 if test "x$ac_cv_lib_db_dbm_open" = xyes; then
35468                     DB_HEADER=db.h
35469                     DB_LIB=db
35470                 else
35471                     DB_STYLE=
35472                     { echo "$as_me:$LINENO: WARNING: *** db database library requested but dbm_open not found in -ldb." >&5
35473 echo "$as_me: WARNING: *** db database library requested but dbm_open not found in -ldb." >&2;}
35474                 fi
35475             else
35476                 if test "x$ac_cv_lib_c_dbm_open" = xyes; then
35477                     DB_HEADER=db.h
35478                     DB_LIB=c
35479                 else
35480                     DB_STYLE=
35481                     { echo "$as_me:$LINENO: WARNING: *** db library requested but -ldb doesn't exist and dbm_open cannot be found." >&5
35482 echo "$as_me: WARNING: *** db library requested but -ldb doesn't exist and dbm_open cannot be found." >&2;}
35483                 fi
35484             fi
35485         else
35486             DB_STYLE=
35487             { echo "$as_me:$LINENO: WARNING: *** db database library requested but db.h not found." >&5
35488 echo "$as_me: WARNING: *** db database library requested but db.h not found." >&2;}
35489         fi
35490         ;;
35491
35492     dbm)
35493         if test "x$ac_cv_header_dbm_h" = xyes; then
35494
35495 echo "$as_me:$LINENO: checking for main in -ldbm" >&5
35496 echo $ECHO_N "checking for main in -ldbm... $ECHO_C" >&6
35497 if test "${ac_cv_lib_dbm_main+set}" = set; then
35498   echo $ECHO_N "(cached) $ECHO_C" >&6
35499 else
35500   ac_check_lib_save_LIBS=$LIBS
35501 LIBS="-ldbm  $LIBS"
35502 cat >conftest.$ac_ext <<_ACEOF
35503 /* confdefs.h.  */
35504 _ACEOF
35505 cat confdefs.h >>conftest.$ac_ext
35506 cat >>conftest.$ac_ext <<_ACEOF
35507 /* end confdefs.h.  */
35508
35509
35510 int
35511 main ()
35512 {
35513 main ();
35514   ;
35515   return 0;
35516 }
35517 _ACEOF
35518 rm -f conftest.$ac_objext conftest$ac_exeext
35519 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35520   (eval $ac_link) 2>conftest.er1
35521   ac_status=$?
35522   grep -v '^ *+' conftest.er1 >conftest.err
35523   rm -f conftest.er1
35524   cat conftest.err >&5
35525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35526   (exit $ac_status); } &&
35527          { ac_try='test -z "$ac_c_werror_flag"
35528                          || test ! -s conftest.err'
35529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35530   (eval $ac_try) 2>&5
35531   ac_status=$?
35532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35533   (exit $ac_status); }; } &&
35534          { ac_try='test -s conftest$ac_exeext'
35535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35536   (eval $ac_try) 2>&5
35537   ac_status=$?
35538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35539   (exit $ac_status); }; }; then
35540   ac_cv_lib_dbm_main=yes
35541 else
35542   echo "$as_me: failed program was:" >&5
35543 sed 's/^/| /' conftest.$ac_ext >&5
35544
35545 ac_cv_lib_dbm_main=no
35546 fi
35547 rm -f conftest.err conftest.$ac_objext \
35548       conftest$ac_exeext conftest.$ac_ext
35549 LIBS=$ac_check_lib_save_LIBS
35550 fi
35551 echo "$as_me:$LINENO: result: $ac_cv_lib_dbm_main" >&5
35552 echo "${ECHO_T}$ac_cv_lib_dbm_main" >&6
35553 if test $ac_cv_lib_dbm_main = yes; then
35554   cat >>confdefs.h <<_ACEOF
35555 #define HAVE_LIBDBM 1
35556 _ACEOF
35557
35558   LIBS="-ldbm $LIBS"
35559
35560 fi
35561
35562             if test "x$ac_cv_lib_dbm_main" = xyes; then
35563
35564 echo "$as_me:$LINENO: checking for dbm_open in -ldbm" >&5
35565 echo $ECHO_N "checking for dbm_open in -ldbm... $ECHO_C" >&6
35566 if test "${ac_cv_lib_dbm_dbm_open+set}" = set; then
35567   echo $ECHO_N "(cached) $ECHO_C" >&6
35568 else
35569   ac_check_lib_save_LIBS=$LIBS
35570 LIBS="-ldbm  $LIBS"
35571 cat >conftest.$ac_ext <<_ACEOF
35572 /* confdefs.h.  */
35573 _ACEOF
35574 cat confdefs.h >>conftest.$ac_ext
35575 cat >>conftest.$ac_ext <<_ACEOF
35576 /* end confdefs.h.  */
35577
35578 /* Override any gcc2 internal prototype to avoid an error.  */
35579 #ifdef __cplusplus
35580 extern "C"
35581 #endif
35582 /* We use char because int might match the return type of a gcc2
35583    builtin and then its argument prototype would still apply.  */
35584 char dbm_open ();
35585 int
35586 main ()
35587 {
35588 dbm_open ();
35589   ;
35590   return 0;
35591 }
35592 _ACEOF
35593 rm -f conftest.$ac_objext conftest$ac_exeext
35594 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35595   (eval $ac_link) 2>conftest.er1
35596   ac_status=$?
35597   grep -v '^ *+' conftest.er1 >conftest.err
35598   rm -f conftest.er1
35599   cat conftest.err >&5
35600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35601   (exit $ac_status); } &&
35602          { ac_try='test -z "$ac_c_werror_flag"
35603                          || test ! -s conftest.err'
35604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35605   (eval $ac_try) 2>&5
35606   ac_status=$?
35607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35608   (exit $ac_status); }; } &&
35609          { ac_try='test -s conftest$ac_exeext'
35610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35611   (eval $ac_try) 2>&5
35612   ac_status=$?
35613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35614   (exit $ac_status); }; }; then
35615   ac_cv_lib_dbm_dbm_open=yes
35616 else
35617   echo "$as_me: failed program was:" >&5
35618 sed 's/^/| /' conftest.$ac_ext >&5
35619
35620 ac_cv_lib_dbm_dbm_open=no
35621 fi
35622 rm -f conftest.err conftest.$ac_objext \
35623       conftest$ac_exeext conftest.$ac_ext
35624 LIBS=$ac_check_lib_save_LIBS
35625 fi
35626 echo "$as_me:$LINENO: result: $ac_cv_lib_dbm_dbm_open" >&5
35627 echo "${ECHO_T}$ac_cv_lib_dbm_dbm_open" >&6
35628 if test $ac_cv_lib_dbm_dbm_open = yes; then
35629   cat >>confdefs.h <<_ACEOF
35630 #define HAVE_LIBDBM 1
35631 _ACEOF
35632
35633   LIBS="-ldbm $LIBS"
35634
35635 fi
35636
35637                 if test "x$ac_cv_lib_dbm_dbm_open" = xyes; then
35638                     DB_HEADER=dbm.h
35639                     DB_LIB=dbm
35640                 else
35641                     DB_STYLE=
35642                     { echo "$as_me:$LINENO: WARNING: *** dbm database library requested but dbm_open not found in -ldbm." >&5
35643 echo "$as_me: WARNING: *** dbm database library requested but dbm_open not found in -ldbm." >&2;}
35644                 fi
35645             else
35646                 if test "x$ac_cv_lib_c_dbm_open" = xyes; then
35647                     DB_HEADER=dbm.h
35648                     DB_LIB=c
35649                 else
35650                     DB_STYLE=
35651                     { echo "$as_me:$LINENO: WARNING: *** dbm library requested but -ldbm doesn't exist and dbm_open cannot be found." >&5
35652 echo "$as_me: WARNING: *** dbm library requested but -ldbm doesn't exist and dbm_open cannot be found." >&2;}
35653                 fi
35654             fi
35655         else
35656             DB_STYLE=
35657             { echo "$as_me:$LINENO: WARNING: *** dbm database library requested but dbm.h not found." >&5
35658 echo "$as_me: WARNING: *** dbm database library requested but dbm.h not found." >&2;}
35659         fi
35660         ;;
35661
35662     gdbm)
35663         if test "x$ac_cv_header_ndbm_h" = xyes; then
35664
35665 echo "$as_me:$LINENO: checking for main in -lgdbm" >&5
35666 echo $ECHO_N "checking for main in -lgdbm... $ECHO_C" >&6
35667 if test "${ac_cv_lib_gdbm_main+set}" = set; then
35668   echo $ECHO_N "(cached) $ECHO_C" >&6
35669 else
35670   ac_check_lib_save_LIBS=$LIBS
35671 LIBS="-lgdbm  $LIBS"
35672 cat >conftest.$ac_ext <<_ACEOF
35673 /* confdefs.h.  */
35674 _ACEOF
35675 cat confdefs.h >>conftest.$ac_ext
35676 cat >>conftest.$ac_ext <<_ACEOF
35677 /* end confdefs.h.  */
35678
35679
35680 int
35681 main ()
35682 {
35683 main ();
35684   ;
35685   return 0;
35686 }
35687 _ACEOF
35688 rm -f conftest.$ac_objext conftest$ac_exeext
35689 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35690   (eval $ac_link) 2>conftest.er1
35691   ac_status=$?
35692   grep -v '^ *+' conftest.er1 >conftest.err
35693   rm -f conftest.er1
35694   cat conftest.err >&5
35695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35696   (exit $ac_status); } &&
35697          { ac_try='test -z "$ac_c_werror_flag"
35698                          || test ! -s conftest.err'
35699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35700   (eval $ac_try) 2>&5
35701   ac_status=$?
35702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35703   (exit $ac_status); }; } &&
35704          { ac_try='test -s conftest$ac_exeext'
35705   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35706   (eval $ac_try) 2>&5
35707   ac_status=$?
35708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35709   (exit $ac_status); }; }; then
35710   ac_cv_lib_gdbm_main=yes
35711 else
35712   echo "$as_me: failed program was:" >&5
35713 sed 's/^/| /' conftest.$ac_ext >&5
35714
35715 ac_cv_lib_gdbm_main=no
35716 fi
35717 rm -f conftest.err conftest.$ac_objext \
35718       conftest$ac_exeext conftest.$ac_ext
35719 LIBS=$ac_check_lib_save_LIBS
35720 fi
35721 echo "$as_me:$LINENO: result: $ac_cv_lib_gdbm_main" >&5
35722 echo "${ECHO_T}$ac_cv_lib_gdbm_main" >&6
35723 if test $ac_cv_lib_gdbm_main = yes; then
35724   cat >>confdefs.h <<_ACEOF
35725 #define HAVE_LIBGDBM 1
35726 _ACEOF
35727
35728   LIBS="-lgdbm $LIBS"
35729
35730 fi
35731
35732             if test "x$ac_cv_lib_gdbm_main" = xyes; then
35733
35734 echo "$as_me:$LINENO: checking for dbm_open in -lgdbm" >&5
35735 echo $ECHO_N "checking for dbm_open in -lgdbm... $ECHO_C" >&6
35736 if test "${ac_cv_lib_gdbm_dbm_open+set}" = set; then
35737   echo $ECHO_N "(cached) $ECHO_C" >&6
35738 else
35739   ac_check_lib_save_LIBS=$LIBS
35740 LIBS="-lgdbm  $LIBS"
35741 cat >conftest.$ac_ext <<_ACEOF
35742 /* confdefs.h.  */
35743 _ACEOF
35744 cat confdefs.h >>conftest.$ac_ext
35745 cat >>conftest.$ac_ext <<_ACEOF
35746 /* end confdefs.h.  */
35747
35748 /* Override any gcc2 internal prototype to avoid an error.  */
35749 #ifdef __cplusplus
35750 extern "C"
35751 #endif
35752 /* We use char because int might match the return type of a gcc2
35753    builtin and then its argument prototype would still apply.  */
35754 char dbm_open ();
35755 int
35756 main ()
35757 {
35758 dbm_open ();
35759   ;
35760   return 0;
35761 }
35762 _ACEOF
35763 rm -f conftest.$ac_objext conftest$ac_exeext
35764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35765   (eval $ac_link) 2>conftest.er1
35766   ac_status=$?
35767   grep -v '^ *+' conftest.er1 >conftest.err
35768   rm -f conftest.er1
35769   cat conftest.err >&5
35770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35771   (exit $ac_status); } &&
35772          { ac_try='test -z "$ac_c_werror_flag"
35773                          || test ! -s conftest.err'
35774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35775   (eval $ac_try) 2>&5
35776   ac_status=$?
35777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35778   (exit $ac_status); }; } &&
35779          { ac_try='test -s conftest$ac_exeext'
35780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35781   (eval $ac_try) 2>&5
35782   ac_status=$?
35783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35784   (exit $ac_status); }; }; then
35785   ac_cv_lib_gdbm_dbm_open=yes
35786 else
35787   echo "$as_me: failed program was:" >&5
35788 sed 's/^/| /' conftest.$ac_ext >&5
35789
35790 ac_cv_lib_gdbm_dbm_open=no
35791 fi
35792 rm -f conftest.err conftest.$ac_objext \
35793       conftest$ac_exeext conftest.$ac_ext
35794 LIBS=$ac_check_lib_save_LIBS
35795 fi
35796 echo "$as_me:$LINENO: result: $ac_cv_lib_gdbm_dbm_open" >&5
35797 echo "${ECHO_T}$ac_cv_lib_gdbm_dbm_open" >&6
35798 if test $ac_cv_lib_gdbm_dbm_open = yes; then
35799   cat >>confdefs.h <<_ACEOF
35800 #define HAVE_LIBGDBM 1
35801 _ACEOF
35802
35803   LIBS="-lgdbm $LIBS"
35804
35805 fi
35806
35807                 if test "x$ac_cv_lib_gdbm_dbm_open" = xyes; then
35808                     DB_HEADER=ndbm.h
35809                     DB_LIB=gdbm
35810                 else
35811                     DB_STYLE=
35812                     { echo "$as_me:$LINENO: WARNING: *** gdbm database library requested but -lgdbm not found." >&5
35813 echo "$as_me: WARNING: *** gdbm database library requested but -lgdbm not found." >&2;}
35814                 fi
35815             else
35816                 if test "x$ac_cv_lib_c_dbm_open" = xyes; then
35817                     DB_HEADER=ndbm.h
35818                     DB_LIB=c
35819                 else
35820                     DB_STYLE=
35821                     { echo "$as_me:$LINENO: WARNING: *** gdbm library requested but -lgdbm doesn't exist and dbm_open cannot be found." >&5
35822 echo "$as_me: WARNING: *** gdbm library requested but -lgdbm doesn't exist and dbm_open cannot be found." >&2;}
35823                 fi
35824             fi
35825         else
35826             DB_STYLE=
35827             { echo "$as_me:$LINENO: WARNING: *** gdbm database library requested but ndbm.h not found." >&5
35828 echo "$as_me: WARNING: *** gdbm database library requested but ndbm.h not found." >&2;}
35829         fi
35830         ;;
35831
35832     ndbm)
35833         if test "x$ac_cv_header_ndbm_h" = xyes; then
35834
35835 echo "$as_me:$LINENO: checking for main in -lndbm" >&5
35836 echo $ECHO_N "checking for main in -lndbm... $ECHO_C" >&6
35837 if test "${ac_cv_lib_ndbm_main+set}" = set; then
35838   echo $ECHO_N "(cached) $ECHO_C" >&6
35839 else
35840   ac_check_lib_save_LIBS=$LIBS
35841 LIBS="-lndbm  $LIBS"
35842 cat >conftest.$ac_ext <<_ACEOF
35843 /* confdefs.h.  */
35844 _ACEOF
35845 cat confdefs.h >>conftest.$ac_ext
35846 cat >>conftest.$ac_ext <<_ACEOF
35847 /* end confdefs.h.  */
35848
35849
35850 int
35851 main ()
35852 {
35853 main ();
35854   ;
35855   return 0;
35856 }
35857 _ACEOF
35858 rm -f conftest.$ac_objext conftest$ac_exeext
35859 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35860   (eval $ac_link) 2>conftest.er1
35861   ac_status=$?
35862   grep -v '^ *+' conftest.er1 >conftest.err
35863   rm -f conftest.er1
35864   cat conftest.err >&5
35865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35866   (exit $ac_status); } &&
35867          { ac_try='test -z "$ac_c_werror_flag"
35868                          || test ! -s conftest.err'
35869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35870   (eval $ac_try) 2>&5
35871   ac_status=$?
35872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35873   (exit $ac_status); }; } &&
35874          { ac_try='test -s conftest$ac_exeext'
35875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35876   (eval $ac_try) 2>&5
35877   ac_status=$?
35878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35879   (exit $ac_status); }; }; then
35880   ac_cv_lib_ndbm_main=yes
35881 else
35882   echo "$as_me: failed program was:" >&5
35883 sed 's/^/| /' conftest.$ac_ext >&5
35884
35885 ac_cv_lib_ndbm_main=no
35886 fi
35887 rm -f conftest.err conftest.$ac_objext \
35888       conftest$ac_exeext conftest.$ac_ext
35889 LIBS=$ac_check_lib_save_LIBS
35890 fi
35891 echo "$as_me:$LINENO: result: $ac_cv_lib_ndbm_main" >&5
35892 echo "${ECHO_T}$ac_cv_lib_ndbm_main" >&6
35893 if test $ac_cv_lib_ndbm_main = yes; then
35894   cat >>confdefs.h <<_ACEOF
35895 #define HAVE_LIBNDBM 1
35896 _ACEOF
35897
35898   LIBS="-lndbm $LIBS"
35899
35900 fi
35901
35902             if test "x$ac_cv_lib_ndbm_main" = xyes; then
35903
35904 echo "$as_me:$LINENO: checking for dbm_open in -lndbm" >&5
35905 echo $ECHO_N "checking for dbm_open in -lndbm... $ECHO_C" >&6
35906 if test "${ac_cv_lib_ndbm_dbm_open+set}" = set; then
35907   echo $ECHO_N "(cached) $ECHO_C" >&6
35908 else
35909   ac_check_lib_save_LIBS=$LIBS
35910 LIBS="-lndbm  $LIBS"
35911 cat >conftest.$ac_ext <<_ACEOF
35912 /* confdefs.h.  */
35913 _ACEOF
35914 cat confdefs.h >>conftest.$ac_ext
35915 cat >>conftest.$ac_ext <<_ACEOF
35916 /* end confdefs.h.  */
35917
35918 /* Override any gcc2 internal prototype to avoid an error.  */
35919 #ifdef __cplusplus
35920 extern "C"
35921 #endif
35922 /* We use char because int might match the return type of a gcc2
35923    builtin and then its argument prototype would still apply.  */
35924 char dbm_open ();
35925 int
35926 main ()
35927 {
35928 dbm_open ();
35929   ;
35930   return 0;
35931 }
35932 _ACEOF
35933 rm -f conftest.$ac_objext conftest$ac_exeext
35934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35935   (eval $ac_link) 2>conftest.er1
35936   ac_status=$?
35937   grep -v '^ *+' conftest.er1 >conftest.err
35938   rm -f conftest.er1
35939   cat conftest.err >&5
35940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35941   (exit $ac_status); } &&
35942          { ac_try='test -z "$ac_c_werror_flag"
35943                          || test ! -s conftest.err'
35944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35945   (eval $ac_try) 2>&5
35946   ac_status=$?
35947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35948   (exit $ac_status); }; } &&
35949          { ac_try='test -s conftest$ac_exeext'
35950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35951   (eval $ac_try) 2>&5
35952   ac_status=$?
35953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35954   (exit $ac_status); }; }; then
35955   ac_cv_lib_ndbm_dbm_open=yes
35956 else
35957   echo "$as_me: failed program was:" >&5
35958 sed 's/^/| /' conftest.$ac_ext >&5
35959
35960 ac_cv_lib_ndbm_dbm_open=no
35961 fi
35962 rm -f conftest.err conftest.$ac_objext \
35963       conftest$ac_exeext conftest.$ac_ext
35964 LIBS=$ac_check_lib_save_LIBS
35965 fi
35966 echo "$as_me:$LINENO: result: $ac_cv_lib_ndbm_dbm_open" >&5
35967 echo "${ECHO_T}$ac_cv_lib_ndbm_dbm_open" >&6
35968 if test $ac_cv_lib_ndbm_dbm_open = yes; then
35969   cat >>confdefs.h <<_ACEOF
35970 #define HAVE_LIBNDBM 1
35971 _ACEOF
35972
35973   LIBS="-lndbm $LIBS"
35974
35975 fi
35976
35977                 if test "x$ac_cv_lib_ndbm_dbm_open" = xyes; then
35978                     DB_HEADER=ndbm.h
35979                     DB_LIB=ndbm
35980                 else
35981                     DB_STYLE=
35982                     { echo "$as_me:$LINENO: WARNING: *** ndbm database library requested but -lndbm not found." >&5
35983 echo "$as_me: WARNING: *** ndbm database library requested but -lndbm not found." >&2;}
35984                 fi
35985             else
35986                 if test "x$ac_cv_lib_c_dbm_open" = xyes; then
35987                     DB_HEADER=ndbm.h
35988                     DB_LIB=c
35989                 else
35990                     DB_STYLE=
35991                     { echo "$as_me:$LINENO: WARNING: *** ndbm library requested but -lndbm doesn't exist and dbm_open cannot be found." >&5
35992 echo "$as_me: WARNING: *** ndbm library requested but -lndbm doesn't exist and dbm_open cannot be found." >&2;}
35993                 fi
35994             fi
35995         else
35996             DB_STYLE=
35997             { echo "$as_me:$LINENO: WARNING: *** ndbm database library requested but ndbm.h not found." >&5
35998 echo "$as_me: WARNING: *** ndbm database library requested but ndbm.h not found." >&2;}
35999         fi
36000         ;;
36001     text)
36002         DB_HEADER=
36003         DB_LIB=
36004         ;;
36005 esac
36006
36007
36008 if test -z "$DB_STYLE"; then
36009     DB_STYLE=text
36010     DB_HEADER=
36011     DB_LIB=
36012 fi
36013
36014
36015 if test "x$DB_STYLE" = xtext; then
36016
36017 cat >>confdefs.h <<\_ACEOF
36018 #define TEXTDB 1
36019 _ACEOF
36020
36021 else
36022     echo "$as_me:$LINENO: checking for database" >&5
36023 echo $ECHO_N "checking for database... $ECHO_C" >&6
36024     echo "$as_me:$LINENO: result: header is $DB_HEADER, linking against -l$DB_LIB" >&5
36025 echo "${ECHO_T}header is $DB_HEADER, linking against -l$DB_LIB" >&6
36026     case "$DB_STYLE" in
36027         db)
36028 cat >>confdefs.h <<\_ACEOF
36029 #define USE_DB_H 1
36030 _ACEOF
36031    ;;
36032         dbm)
36033 cat >>confdefs.h <<\_ACEOF
36034 #define USE_DBM_H 1
36035 _ACEOF
36036   ;;
36037         gdbm)
36038 cat >>confdefs.h <<\_ACEOF
36039 #define USE_GDBM_H 1
36040 _ACEOF
36041  ;;
36042         ndbm)
36043 cat >>confdefs.h <<\_ACEOF
36044 #define USE_NDBM_H 1
36045 _ACEOF
36046  ;;
36047     esac
36048
36049     echo "$as_me:$LINENO: checking for struct datum declared in header files" >&5
36050 echo $ECHO_N "checking for struct datum declared in header files... $ECHO_C" >&6
36051 if test "${amanda_cv_struct_datum+set}" = set; then
36052   echo $ECHO_N "(cached) $ECHO_C" >&6
36053 else
36054
36055             cat >conftest.$ac_ext <<_ACEOF
36056 /* confdefs.h.  */
36057 _ACEOF
36058 cat confdefs.h >>conftest.$ac_ext
36059 cat >>conftest.$ac_ext <<_ACEOF
36060 /* end confdefs.h.  */
36061
36062 #if defined(USE_DB_H)
36063 #  include <db.h>
36064 #else
36065 #  if defined(USE_DBM_H)
36066 #    include <dbm.h>
36067 #  else
36068 #    if defined(USE_NDBM_H)
36069 #      include <ndbm.h>
36070 #    endif
36071 #  endif
36072 #endif
36073
36074 int
36075 main ()
36076 {
36077
36078                     datum a;
36079
36080   ;
36081   return 0;
36082 }
36083 _ACEOF
36084 rm -f conftest.$ac_objext
36085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36086   (eval $ac_compile) 2>conftest.er1
36087   ac_status=$?
36088   grep -v '^ *+' conftest.er1 >conftest.err
36089   rm -f conftest.er1
36090   cat conftest.err >&5
36091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36092   (exit $ac_status); } &&
36093          { ac_try='test -z "$ac_c_werror_flag"
36094                          || test ! -s conftest.err'
36095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36096   (eval $ac_try) 2>&5
36097   ac_status=$?
36098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36099   (exit $ac_status); }; } &&
36100          { ac_try='test -s conftest.$ac_objext'
36101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36102   (eval $ac_try) 2>&5
36103   ac_status=$?
36104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36105   (exit $ac_status); }; }; then
36106   amanda_cv_struct_datum=yes
36107 else
36108   echo "$as_me: failed program was:" >&5
36109 sed 's/^/| /' conftest.$ac_ext >&5
36110
36111 amanda_cv_struct_datum=no
36112
36113 fi
36114 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36115
36116 fi
36117 echo "$as_me:$LINENO: result: $amanda_cv_struct_datum" >&5
36118 echo "${ECHO_T}$amanda_cv_struct_datum" >&6
36119     if test "x$amanda_cv_struct_datum" = xyes; then
36120
36121 cat >>confdefs.h <<\_ACEOF
36122 #define HAVE_STRUCT_DATUM 1
36123 _ACEOF
36124
36125     fi
36126 fi
36127
36128 case "$DB_STYLE" in
36129     db) DB_EXT=.db;;
36130     gdbm) DB_EXT='""';;
36131     dbm | ndbm) DB_EXT=".dir .pag";;
36132     text) DB_EXT='""';;
36133     *) DB_EXT=;;
36134 esac
36135
36136
36137 echo "$as_me:$LINENO: checking whether _POSIX2_RE_DUP_MAX is defined" >&5
36138 echo $ECHO_N "checking whether _POSIX2_RE_DUP_MAX is defined... $ECHO_C" >&6
36139 if test "${amanda_cv_have__posix2_re_dup_max+set}" = set; then
36140   echo $ECHO_N "(cached) $ECHO_C" >&6
36141 else
36142   cat >conftest.$ac_ext <<_ACEOF
36143 /* confdefs.h.  */
36144 _ACEOF
36145 cat confdefs.h >>conftest.$ac_ext
36146 cat >>conftest.$ac_ext <<_ACEOF
36147 /* end confdefs.h.  */
36148
36149 #include <limits.h>
36150 #ifdef _POSIX2_RE_DUP_MAX
36151   yes
36152 #endif
36153
36154 _ACEOF
36155 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36156   $EGREP "yes" >/dev/null 2>&1; then
36157   amanda_cv_have__posix2_re_dup_max=yes
36158 else
36159   amanda_cv_have__posix2_re_dup_max=no
36160 fi
36161 rm -f conftest*
36162
36163 fi
36164 echo "$as_me:$LINENO: result: $amanda_cv_have__posix2_re_dup_max" >&5
36165 echo "${ECHO_T}$amanda_cv_have__posix2_re_dup_max" >&6
36166 if test "x$amanda_cv_have__posix2_re_dup_max" = xyes; then
36167
36168 cat >>confdefs.h <<\_ACEOF
36169 #define HAVE__POSIX2_RE_DUP_MAX 1
36170 _ACEOF
36171
36172 fi
36173
36174 echo "$as_me:$LINENO: checking whether CHAR_MIN is defined" >&5
36175 echo $ECHO_N "checking whether CHAR_MIN is defined... $ECHO_C" >&6
36176 if test "${amanda_cv_have_char_min+set}" = set; then
36177   echo $ECHO_N "(cached) $ECHO_C" >&6
36178 else
36179   cat >conftest.$ac_ext <<_ACEOF
36180 /* confdefs.h.  */
36181 _ACEOF
36182 cat confdefs.h >>conftest.$ac_ext
36183 cat >>conftest.$ac_ext <<_ACEOF
36184 /* end confdefs.h.  */
36185
36186 #include <limits.h>
36187 #ifdef CHAR_MIN
36188   yes
36189 #endif
36190
36191 _ACEOF
36192 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36193   $EGREP "yes" >/dev/null 2>&1; then
36194   amanda_cv_have_char_min=yes
36195 else
36196   amanda_cv_have_char_min=no
36197 fi
36198 rm -f conftest*
36199
36200 fi
36201 echo "$as_me:$LINENO: result: $amanda_cv_have_char_min" >&5
36202 echo "${ECHO_T}$amanda_cv_have_char_min" >&6
36203 if test "x$amanda_cv_have_char_min" = xyes; then
36204
36205 cat >>confdefs.h <<\_ACEOF
36206 #define HAVE_CHAR_MIN 1
36207 _ACEOF
36208
36209 fi
36210
36211 echo "$as_me:$LINENO: checking whether CHAR_MAX is defined" >&5
36212 echo $ECHO_N "checking whether CHAR_MAX is defined... $ECHO_C" >&6
36213 if test "${amanda_cv_have_char_max+set}" = set; then
36214   echo $ECHO_N "(cached) $ECHO_C" >&6
36215 else
36216   cat >conftest.$ac_ext <<_ACEOF
36217 /* confdefs.h.  */
36218 _ACEOF
36219 cat confdefs.h >>conftest.$ac_ext
36220 cat >>conftest.$ac_ext <<_ACEOF
36221 /* end confdefs.h.  */
36222
36223 #include <limits.h>
36224 #ifdef CHAR_MAX
36225   yes
36226 #endif
36227
36228 _ACEOF
36229 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36230   $EGREP "yes" >/dev/null 2>&1; then
36231   amanda_cv_have_char_max=yes
36232 else
36233   amanda_cv_have_char_max=no
36234 fi
36235 rm -f conftest*
36236
36237 fi
36238 echo "$as_me:$LINENO: result: $amanda_cv_have_char_max" >&5
36239 echo "${ECHO_T}$amanda_cv_have_char_max" >&6
36240 if test "x$amanda_cv_have_char_max" = xyes; then
36241
36242 cat >>confdefs.h <<\_ACEOF
36243 #define HAVE_CHAR_MAX 1
36244 _ACEOF
36245
36246 fi
36247
36248 echo "$as_me:$LINENO: checking whether CHAR_BIT is defined" >&5
36249 echo $ECHO_N "checking whether CHAR_BIT is defined... $ECHO_C" >&6
36250 if test "${amanda_cv_have_char_bit+set}" = set; then
36251   echo $ECHO_N "(cached) $ECHO_C" >&6
36252 else
36253   cat >conftest.$ac_ext <<_ACEOF
36254 /* confdefs.h.  */
36255 _ACEOF
36256 cat confdefs.h >>conftest.$ac_ext
36257 cat >>conftest.$ac_ext <<_ACEOF
36258 /* end confdefs.h.  */
36259
36260 #include <limits.h>
36261 #ifdef CHAR_BIT
36262   yes
36263 #endif
36264
36265 _ACEOF
36266 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36267   $EGREP "yes" >/dev/null 2>&1; then
36268   amanda_cv_have_char_bit=yes
36269 else
36270   amanda_cv_have_char_bit=no
36271 fi
36272 rm -f conftest*
36273
36274 fi
36275 echo "$as_me:$LINENO: result: $amanda_cv_have_char_bit" >&5
36276 echo "${ECHO_T}$amanda_cv_have_char_bit" >&6
36277 if test "x$amanda_cv_have_char_bit" = xyes; then
36278
36279 cat >>confdefs.h <<\_ACEOF
36280 #define HAVE_CHAR_BIT 1
36281 _ACEOF
36282
36283 fi
36284
36285
36286 ice_have_accept=no
36287
36288 for ac_func in accept
36289 do
36290 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36291 echo "$as_me:$LINENO: checking for $ac_func" >&5
36292 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36293 if eval "test \"\${$as_ac_var+set}\" = set"; then
36294   echo $ECHO_N "(cached) $ECHO_C" >&6
36295 else
36296   cat >conftest.$ac_ext <<_ACEOF
36297 /* confdefs.h.  */
36298 _ACEOF
36299 cat confdefs.h >>conftest.$ac_ext
36300 cat >>conftest.$ac_ext <<_ACEOF
36301 /* end confdefs.h.  */
36302 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36303    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36304 #define $ac_func innocuous_$ac_func
36305
36306 /* System header to define __stub macros and hopefully few prototypes,
36307     which can conflict with char $ac_func (); below.
36308     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36309     <limits.h> exists even on freestanding compilers.  */
36310
36311 #ifdef __STDC__
36312 # include <limits.h>
36313 #else
36314 # include <assert.h>
36315 #endif
36316
36317 #undef $ac_func
36318
36319 /* Override any gcc2 internal prototype to avoid an error.  */
36320 #ifdef __cplusplus
36321 extern "C"
36322 {
36323 #endif
36324 /* We use char because int might match the return type of a gcc2
36325    builtin and then its argument prototype would still apply.  */
36326 char $ac_func ();
36327 /* The GNU C library defines this for functions which it implements
36328     to always fail with ENOSYS.  Some functions are actually named
36329     something starting with __ and the normal name is an alias.  */
36330 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36331 choke me
36332 #else
36333 char (*f) () = $ac_func;
36334 #endif
36335 #ifdef __cplusplus
36336 }
36337 #endif
36338
36339 int
36340 main ()
36341 {
36342 return f != $ac_func;
36343   ;
36344   return 0;
36345 }
36346 _ACEOF
36347 rm -f conftest.$ac_objext conftest$ac_exeext
36348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36349   (eval $ac_link) 2>conftest.er1
36350   ac_status=$?
36351   grep -v '^ *+' conftest.er1 >conftest.err
36352   rm -f conftest.er1
36353   cat conftest.err >&5
36354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36355   (exit $ac_status); } &&
36356          { ac_try='test -z "$ac_c_werror_flag"
36357                          || test ! -s conftest.err'
36358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36359   (eval $ac_try) 2>&5
36360   ac_status=$?
36361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36362   (exit $ac_status); }; } &&
36363          { ac_try='test -s conftest$ac_exeext'
36364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36365   (eval $ac_try) 2>&5
36366   ac_status=$?
36367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36368   (exit $ac_status); }; }; then
36369   eval "$as_ac_var=yes"
36370 else
36371   echo "$as_me: failed program was:" >&5
36372 sed 's/^/| /' conftest.$ac_ext >&5
36373
36374 eval "$as_ac_var=no"
36375 fi
36376 rm -f conftest.err conftest.$ac_objext \
36377       conftest$ac_exeext conftest.$ac_ext
36378 fi
36379 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36380 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36381 if test `eval echo '${'$as_ac_var'}'` = yes; then
36382   cat >>confdefs.h <<_ACEOF
36383 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36384 _ACEOF
36385  ice_have_accept=yes
36386 fi
36387 done
36388
36389 if test "${ice_have_accept}" = yes; then
36390 echo "$as_me:$LINENO: checking for accept declaration in sys/types.h sys/socket.h" >&5
36391 echo $ECHO_N "checking for accept declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
36392 if test "${ice_cv_have_accept_decl+set}" = set; then
36393   echo $ECHO_N "(cached) $ECHO_C" >&6
36394 else
36395
36396 ice_cv_have_accept_decl=no
36397 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
36398 ice_re_word='(^|[^a-zA-Z0-9_])'
36399 for header in sys/types.h sys/socket.h; do
36400 # Check for ordinary declaration
36401 cat >conftest.$ac_ext <<_ACEOF
36402 /* confdefs.h.  */
36403 _ACEOF
36404 cat confdefs.h >>conftest.$ac_ext
36405 cat >>conftest.$ac_ext <<_ACEOF
36406 /* end confdefs.h.  */
36407 #include <$header>
36408
36409 _ACEOF
36410 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36411   $EGREP "${ice_re_word}accept[         ]*\(" >/dev/null 2>&1; then
36412   ice_cv_have_accept_decl=yes
36413 fi
36414 rm -f conftest*
36415
36416 if test "$ice_cv_have_accept_decl" = yes; then
36417         break
36418 fi
36419 # Check for "fixed" declaration like "getpid _PARAMS((int))"
36420 cat >conftest.$ac_ext <<_ACEOF
36421 /* confdefs.h.  */
36422 _ACEOF
36423 cat confdefs.h >>conftest.$ac_ext
36424 cat >>conftest.$ac_ext <<_ACEOF
36425 /* end confdefs.h.  */
36426 #include <$header>
36427
36428 _ACEOF
36429 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36430   $EGREP "${ice_re_word}accept[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
36431   ice_cv_have_accept_decl=yes
36432 fi
36433 rm -f conftest*
36434
36435 if test "$ice_cv_have_accept_decl" = yes; then
36436         break
36437 fi
36438 done
36439
36440 fi
36441
36442 echo "$as_me:$LINENO: result: $ice_cv_have_accept_decl" >&5
36443 echo "${ECHO_T}$ice_cv_have_accept_decl" >&6
36444 if test "$ice_cv_have_accept_decl" = yes; then
36445
36446 cat >>confdefs.h <<_ACEOF
36447 #define HAVE_ACCEPT_DECL 1
36448 _ACEOF
36449
36450 fi
36451 fi
36452
36453 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
36454 # for constant arguments.  Useless!
36455 echo "$as_me:$LINENO: checking for working alloca.h" >&5
36456 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
36457 if test "${ac_cv_working_alloca_h+set}" = set; then
36458   echo $ECHO_N "(cached) $ECHO_C" >&6
36459 else
36460   cat >conftest.$ac_ext <<_ACEOF
36461 /* confdefs.h.  */
36462 _ACEOF
36463 cat confdefs.h >>conftest.$ac_ext
36464 cat >>conftest.$ac_ext <<_ACEOF
36465 /* end confdefs.h.  */
36466 #include <alloca.h>
36467 int
36468 main ()
36469 {
36470 char *p = (char *) alloca (2 * sizeof (int));
36471   ;
36472   return 0;
36473 }
36474 _ACEOF
36475 rm -f conftest.$ac_objext conftest$ac_exeext
36476 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36477   (eval $ac_link) 2>conftest.er1
36478   ac_status=$?
36479   grep -v '^ *+' conftest.er1 >conftest.err
36480   rm -f conftest.er1
36481   cat conftest.err >&5
36482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36483   (exit $ac_status); } &&
36484          { ac_try='test -z "$ac_c_werror_flag"
36485                          || test ! -s conftest.err'
36486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36487   (eval $ac_try) 2>&5
36488   ac_status=$?
36489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36490   (exit $ac_status); }; } &&
36491          { ac_try='test -s conftest$ac_exeext'
36492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36493   (eval $ac_try) 2>&5
36494   ac_status=$?
36495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36496   (exit $ac_status); }; }; then
36497   ac_cv_working_alloca_h=yes
36498 else
36499   echo "$as_me: failed program was:" >&5
36500 sed 's/^/| /' conftest.$ac_ext >&5
36501
36502 ac_cv_working_alloca_h=no
36503 fi
36504 rm -f conftest.err conftest.$ac_objext \
36505       conftest$ac_exeext conftest.$ac_ext
36506 fi
36507 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
36508 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
36509 if test $ac_cv_working_alloca_h = yes; then
36510
36511 cat >>confdefs.h <<\_ACEOF
36512 #define HAVE_ALLOCA_H 1
36513 _ACEOF
36514
36515 fi
36516
36517 echo "$as_me:$LINENO: checking for alloca" >&5
36518 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
36519 if test "${ac_cv_func_alloca_works+set}" = set; then
36520   echo $ECHO_N "(cached) $ECHO_C" >&6
36521 else
36522   cat >conftest.$ac_ext <<_ACEOF
36523 /* confdefs.h.  */
36524 _ACEOF
36525 cat confdefs.h >>conftest.$ac_ext
36526 cat >>conftest.$ac_ext <<_ACEOF
36527 /* end confdefs.h.  */
36528 #ifdef __GNUC__
36529 # define alloca __builtin_alloca
36530 #else
36531 # ifdef _MSC_VER
36532 #  include <malloc.h>
36533 #  define alloca _alloca
36534 # else
36535 #  if HAVE_ALLOCA_H
36536 #   include <alloca.h>
36537 #  else
36538 #   ifdef _AIX
36539  #pragma alloca
36540 #   else
36541 #    ifndef alloca /* predefined by HP cc +Olibcalls */
36542 char *alloca ();
36543 #    endif
36544 #   endif
36545 #  endif
36546 # endif
36547 #endif
36548
36549 int
36550 main ()
36551 {
36552 char *p = (char *) alloca (1);
36553   ;
36554   return 0;
36555 }
36556 _ACEOF
36557 rm -f conftest.$ac_objext conftest$ac_exeext
36558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36559   (eval $ac_link) 2>conftest.er1
36560   ac_status=$?
36561   grep -v '^ *+' conftest.er1 >conftest.err
36562   rm -f conftest.er1
36563   cat conftest.err >&5
36564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36565   (exit $ac_status); } &&
36566          { ac_try='test -z "$ac_c_werror_flag"
36567                          || test ! -s conftest.err'
36568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36569   (eval $ac_try) 2>&5
36570   ac_status=$?
36571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36572   (exit $ac_status); }; } &&
36573          { ac_try='test -s conftest$ac_exeext'
36574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36575   (eval $ac_try) 2>&5
36576   ac_status=$?
36577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36578   (exit $ac_status); }; }; then
36579   ac_cv_func_alloca_works=yes
36580 else
36581   echo "$as_me: failed program was:" >&5
36582 sed 's/^/| /' conftest.$ac_ext >&5
36583
36584 ac_cv_func_alloca_works=no
36585 fi
36586 rm -f conftest.err conftest.$ac_objext \
36587       conftest$ac_exeext conftest.$ac_ext
36588 fi
36589 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
36590 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
36591
36592 if test $ac_cv_func_alloca_works = yes; then
36593
36594 cat >>confdefs.h <<\_ACEOF
36595 #define HAVE_ALLOCA 1
36596 _ACEOF
36597
36598 else
36599   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
36600 # that cause trouble.  Some versions do not even contain alloca or
36601 # contain a buggy version.  If you still want to use their alloca,
36602 # use ar to extract alloca.o from them instead of compiling alloca.c.
36603
36604 ALLOCA=alloca.$ac_objext
36605
36606 cat >>confdefs.h <<\_ACEOF
36607 #define C_ALLOCA 1
36608 _ACEOF
36609
36610
36611 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
36612 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
36613 if test "${ac_cv_os_cray+set}" = set; then
36614   echo $ECHO_N "(cached) $ECHO_C" >&6
36615 else
36616   cat >conftest.$ac_ext <<_ACEOF
36617 /* confdefs.h.  */
36618 _ACEOF
36619 cat confdefs.h >>conftest.$ac_ext
36620 cat >>conftest.$ac_ext <<_ACEOF
36621 /* end confdefs.h.  */
36622 #if defined(CRAY) && ! defined(CRAY2)
36623 webecray
36624 #else
36625 wenotbecray
36626 #endif
36627
36628 _ACEOF
36629 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36630   $EGREP "webecray" >/dev/null 2>&1; then
36631   ac_cv_os_cray=yes
36632 else
36633   ac_cv_os_cray=no
36634 fi
36635 rm -f conftest*
36636
36637 fi
36638 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
36639 echo "${ECHO_T}$ac_cv_os_cray" >&6
36640 if test $ac_cv_os_cray = yes; then
36641   for ac_func in _getb67 GETB67 getb67; do
36642     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36643 echo "$as_me:$LINENO: checking for $ac_func" >&5
36644 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36645 if eval "test \"\${$as_ac_var+set}\" = set"; then
36646   echo $ECHO_N "(cached) $ECHO_C" >&6
36647 else
36648   cat >conftest.$ac_ext <<_ACEOF
36649 /* confdefs.h.  */
36650 _ACEOF
36651 cat confdefs.h >>conftest.$ac_ext
36652 cat >>conftest.$ac_ext <<_ACEOF
36653 /* end confdefs.h.  */
36654 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36655    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36656 #define $ac_func innocuous_$ac_func
36657
36658 /* System header to define __stub macros and hopefully few prototypes,
36659     which can conflict with char $ac_func (); below.
36660     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36661     <limits.h> exists even on freestanding compilers.  */
36662
36663 #ifdef __STDC__
36664 # include <limits.h>
36665 #else
36666 # include <assert.h>
36667 #endif
36668
36669 #undef $ac_func
36670
36671 /* Override any gcc2 internal prototype to avoid an error.  */
36672 #ifdef __cplusplus
36673 extern "C"
36674 {
36675 #endif
36676 /* We use char because int might match the return type of a gcc2
36677    builtin and then its argument prototype would still apply.  */
36678 char $ac_func ();
36679 /* The GNU C library defines this for functions which it implements
36680     to always fail with ENOSYS.  Some functions are actually named
36681     something starting with __ and the normal name is an alias.  */
36682 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36683 choke me
36684 #else
36685 char (*f) () = $ac_func;
36686 #endif
36687 #ifdef __cplusplus
36688 }
36689 #endif
36690
36691 int
36692 main ()
36693 {
36694 return f != $ac_func;
36695   ;
36696   return 0;
36697 }
36698 _ACEOF
36699 rm -f conftest.$ac_objext conftest$ac_exeext
36700 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36701   (eval $ac_link) 2>conftest.er1
36702   ac_status=$?
36703   grep -v '^ *+' conftest.er1 >conftest.err
36704   rm -f conftest.er1
36705   cat conftest.err >&5
36706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36707   (exit $ac_status); } &&
36708          { ac_try='test -z "$ac_c_werror_flag"
36709                          || test ! -s conftest.err'
36710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36711   (eval $ac_try) 2>&5
36712   ac_status=$?
36713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36714   (exit $ac_status); }; } &&
36715          { ac_try='test -s conftest$ac_exeext'
36716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36717   (eval $ac_try) 2>&5
36718   ac_status=$?
36719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36720   (exit $ac_status); }; }; then
36721   eval "$as_ac_var=yes"
36722 else
36723   echo "$as_me: failed program was:" >&5
36724 sed 's/^/| /' conftest.$ac_ext >&5
36725
36726 eval "$as_ac_var=no"
36727 fi
36728 rm -f conftest.err conftest.$ac_objext \
36729       conftest$ac_exeext conftest.$ac_ext
36730 fi
36731 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36732 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36733 if test `eval echo '${'$as_ac_var'}'` = yes; then
36734
36735 cat >>confdefs.h <<_ACEOF
36736 #define CRAY_STACKSEG_END $ac_func
36737 _ACEOF
36738
36739     break
36740 fi
36741
36742   done
36743 fi
36744
36745 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
36746 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
36747 if test "${ac_cv_c_stack_direction+set}" = set; then
36748   echo $ECHO_N "(cached) $ECHO_C" >&6
36749 else
36750   if test "$cross_compiling" = yes; then
36751   ac_cv_c_stack_direction=0
36752 else
36753   cat >conftest.$ac_ext <<_ACEOF
36754 /* confdefs.h.  */
36755 _ACEOF
36756 cat confdefs.h >>conftest.$ac_ext
36757 cat >>conftest.$ac_ext <<_ACEOF
36758 /* end confdefs.h.  */
36759 int
36760 find_stack_direction ()
36761 {
36762   static char *addr = 0;
36763   auto char dummy;
36764   if (addr == 0)
36765     {
36766       addr = &dummy;
36767       return find_stack_direction ();
36768     }
36769   else
36770     return (&dummy > addr) ? 1 : -1;
36771 }
36772
36773 int
36774 main ()
36775 {
36776   exit (find_stack_direction () < 0);
36777 }
36778 _ACEOF
36779 rm -f conftest$ac_exeext
36780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36781   (eval $ac_link) 2>&5
36782   ac_status=$?
36783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36784   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36786   (eval $ac_try) 2>&5
36787   ac_status=$?
36788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36789   (exit $ac_status); }; }; then
36790   ac_cv_c_stack_direction=1
36791 else
36792   echo "$as_me: program exited with status $ac_status" >&5
36793 echo "$as_me: failed program was:" >&5
36794 sed 's/^/| /' conftest.$ac_ext >&5
36795
36796 ( exit $ac_status )
36797 ac_cv_c_stack_direction=-1
36798 fi
36799 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36800 fi
36801 fi
36802 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
36803 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
36804
36805 cat >>confdefs.h <<_ACEOF
36806 #define STACK_DIRECTION $ac_cv_c_stack_direction
36807 _ACEOF
36808
36809
36810 fi
36811
36812
36813 for ac_func in atexit
36814 do
36815 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36816 echo "$as_me:$LINENO: checking for $ac_func" >&5
36817 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36818 if eval "test \"\${$as_ac_var+set}\" = set"; then
36819   echo $ECHO_N "(cached) $ECHO_C" >&6
36820 else
36821   cat >conftest.$ac_ext <<_ACEOF
36822 /* confdefs.h.  */
36823 _ACEOF
36824 cat confdefs.h >>conftest.$ac_ext
36825 cat >>conftest.$ac_ext <<_ACEOF
36826 /* end confdefs.h.  */
36827 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36828    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36829 #define $ac_func innocuous_$ac_func
36830
36831 /* System header to define __stub macros and hopefully few prototypes,
36832     which can conflict with char $ac_func (); below.
36833     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36834     <limits.h> exists even on freestanding compilers.  */
36835
36836 #ifdef __STDC__
36837 # include <limits.h>
36838 #else
36839 # include <assert.h>
36840 #endif
36841
36842 #undef $ac_func
36843
36844 /* Override any gcc2 internal prototype to avoid an error.  */
36845 #ifdef __cplusplus
36846 extern "C"
36847 {
36848 #endif
36849 /* We use char because int might match the return type of a gcc2
36850    builtin and then its argument prototype would still apply.  */
36851 char $ac_func ();
36852 /* The GNU C library defines this for functions which it implements
36853     to always fail with ENOSYS.  Some functions are actually named
36854     something starting with __ and the normal name is an alias.  */
36855 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36856 choke me
36857 #else
36858 char (*f) () = $ac_func;
36859 #endif
36860 #ifdef __cplusplus
36861 }
36862 #endif
36863
36864 int
36865 main ()
36866 {
36867 return f != $ac_func;
36868   ;
36869   return 0;
36870 }
36871 _ACEOF
36872 rm -f conftest.$ac_objext conftest$ac_exeext
36873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36874   (eval $ac_link) 2>conftest.er1
36875   ac_status=$?
36876   grep -v '^ *+' conftest.er1 >conftest.err
36877   rm -f conftest.er1
36878   cat conftest.err >&5
36879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36880   (exit $ac_status); } &&
36881          { ac_try='test -z "$ac_c_werror_flag"
36882                          || test ! -s conftest.err'
36883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36884   (eval $ac_try) 2>&5
36885   ac_status=$?
36886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36887   (exit $ac_status); }; } &&
36888          { ac_try='test -s conftest$ac_exeext'
36889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36890   (eval $ac_try) 2>&5
36891   ac_status=$?
36892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36893   (exit $ac_status); }; }; then
36894   eval "$as_ac_var=yes"
36895 else
36896   echo "$as_me: failed program was:" >&5
36897 sed 's/^/| /' conftest.$ac_ext >&5
36898
36899 eval "$as_ac_var=no"
36900 fi
36901 rm -f conftest.err conftest.$ac_objext \
36902       conftest$ac_exeext conftest.$ac_ext
36903 fi
36904 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36905 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36906 if test `eval echo '${'$as_ac_var'}'` = yes; then
36907   cat >>confdefs.h <<_ACEOF
36908 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36909 _ACEOF
36910
36911 fi
36912 done
36913
36914
36915 ice_have_atof=no
36916
36917 for ac_func in atof
36918 do
36919 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36920 echo "$as_me:$LINENO: checking for $ac_func" >&5
36921 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36922 if eval "test \"\${$as_ac_var+set}\" = set"; then
36923   echo $ECHO_N "(cached) $ECHO_C" >&6
36924 else
36925   cat >conftest.$ac_ext <<_ACEOF
36926 /* confdefs.h.  */
36927 _ACEOF
36928 cat confdefs.h >>conftest.$ac_ext
36929 cat >>conftest.$ac_ext <<_ACEOF
36930 /* end confdefs.h.  */
36931 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36932    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36933 #define $ac_func innocuous_$ac_func
36934
36935 /* System header to define __stub macros and hopefully few prototypes,
36936     which can conflict with char $ac_func (); below.
36937     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36938     <limits.h> exists even on freestanding compilers.  */
36939
36940 #ifdef __STDC__
36941 # include <limits.h>
36942 #else
36943 # include <assert.h>
36944 #endif
36945
36946 #undef $ac_func
36947
36948 /* Override any gcc2 internal prototype to avoid an error.  */
36949 #ifdef __cplusplus
36950 extern "C"
36951 {
36952 #endif
36953 /* We use char because int might match the return type of a gcc2
36954    builtin and then its argument prototype would still apply.  */
36955 char $ac_func ();
36956 /* The GNU C library defines this for functions which it implements
36957     to always fail with ENOSYS.  Some functions are actually named
36958     something starting with __ and the normal name is an alias.  */
36959 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36960 choke me
36961 #else
36962 char (*f) () = $ac_func;
36963 #endif
36964 #ifdef __cplusplus
36965 }
36966 #endif
36967
36968 int
36969 main ()
36970 {
36971 return f != $ac_func;
36972   ;
36973   return 0;
36974 }
36975 _ACEOF
36976 rm -f conftest.$ac_objext conftest$ac_exeext
36977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36978   (eval $ac_link) 2>conftest.er1
36979   ac_status=$?
36980   grep -v '^ *+' conftest.er1 >conftest.err
36981   rm -f conftest.er1
36982   cat conftest.err >&5
36983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36984   (exit $ac_status); } &&
36985          { ac_try='test -z "$ac_c_werror_flag"
36986                          || test ! -s conftest.err'
36987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36988   (eval $ac_try) 2>&5
36989   ac_status=$?
36990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36991   (exit $ac_status); }; } &&
36992          { ac_try='test -s conftest$ac_exeext'
36993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36994   (eval $ac_try) 2>&5
36995   ac_status=$?
36996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36997   (exit $ac_status); }; }; then
36998   eval "$as_ac_var=yes"
36999 else
37000   echo "$as_me: failed program was:" >&5
37001 sed 's/^/| /' conftest.$ac_ext >&5
37002
37003 eval "$as_ac_var=no"
37004 fi
37005 rm -f conftest.err conftest.$ac_objext \
37006       conftest$ac_exeext conftest.$ac_ext
37007 fi
37008 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37009 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37010 if test `eval echo '${'$as_ac_var'}'` = yes; then
37011   cat >>confdefs.h <<_ACEOF
37012 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37013 _ACEOF
37014  ice_have_atof=yes
37015 fi
37016 done
37017
37018 if test "${ice_have_atof}" = yes; then
37019 echo "$as_me:$LINENO: checking for atof declaration in stdlib.h" >&5
37020 echo $ECHO_N "checking for atof declaration in stdlib.h... $ECHO_C" >&6
37021 if test "${ice_cv_have_atof_decl+set}" = set; then
37022   echo $ECHO_N "(cached) $ECHO_C" >&6
37023 else
37024
37025 ice_cv_have_atof_decl=no
37026 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
37027 ice_re_word='(^|[^a-zA-Z0-9_])'
37028 for header in stdlib.h; do
37029 # Check for ordinary declaration
37030 cat >conftest.$ac_ext <<_ACEOF
37031 /* confdefs.h.  */
37032 _ACEOF
37033 cat confdefs.h >>conftest.$ac_ext
37034 cat >>conftest.$ac_ext <<_ACEOF
37035 /* end confdefs.h.  */
37036 #include <$header>
37037
37038 _ACEOF
37039 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37040   $EGREP "${ice_re_word}atof[   ]*\(" >/dev/null 2>&1; then
37041   ice_cv_have_atof_decl=yes
37042 fi
37043 rm -f conftest*
37044
37045 if test "$ice_cv_have_atof_decl" = yes; then
37046         break
37047 fi
37048 # Check for "fixed" declaration like "getpid _PARAMS((int))"
37049 cat >conftest.$ac_ext <<_ACEOF
37050 /* confdefs.h.  */
37051 _ACEOF
37052 cat confdefs.h >>conftest.$ac_ext
37053 cat >>conftest.$ac_ext <<_ACEOF
37054 /* end confdefs.h.  */
37055 #include <$header>
37056
37057 _ACEOF
37058 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37059   $EGREP "${ice_re_word}atof[   ]*$ice_re_params\(\(" >/dev/null 2>&1; then
37060   ice_cv_have_atof_decl=yes
37061 fi
37062 rm -f conftest*
37063
37064 if test "$ice_cv_have_atof_decl" = yes; then
37065         break
37066 fi
37067 done
37068
37069 fi
37070
37071 echo "$as_me:$LINENO: result: $ice_cv_have_atof_decl" >&5
37072 echo "${ECHO_T}$ice_cv_have_atof_decl" >&6
37073 if test "$ice_cv_have_atof_decl" = yes; then
37074
37075 cat >>confdefs.h <<_ACEOF
37076 #define HAVE_ATOF_DECL 1
37077 _ACEOF
37078
37079 fi
37080 fi
37081
37082
37083 ice_have_atoi=no
37084
37085 for ac_func in atoi
37086 do
37087 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37088 echo "$as_me:$LINENO: checking for $ac_func" >&5
37089 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37090 if eval "test \"\${$as_ac_var+set}\" = set"; then
37091   echo $ECHO_N "(cached) $ECHO_C" >&6
37092 else
37093   cat >conftest.$ac_ext <<_ACEOF
37094 /* confdefs.h.  */
37095 _ACEOF
37096 cat confdefs.h >>conftest.$ac_ext
37097 cat >>conftest.$ac_ext <<_ACEOF
37098 /* end confdefs.h.  */
37099 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37100    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37101 #define $ac_func innocuous_$ac_func
37102
37103 /* System header to define __stub macros and hopefully few prototypes,
37104     which can conflict with char $ac_func (); below.
37105     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37106     <limits.h> exists even on freestanding compilers.  */
37107
37108 #ifdef __STDC__
37109 # include <limits.h>
37110 #else
37111 # include <assert.h>
37112 #endif
37113
37114 #undef $ac_func
37115
37116 /* Override any gcc2 internal prototype to avoid an error.  */
37117 #ifdef __cplusplus
37118 extern "C"
37119 {
37120 #endif
37121 /* We use char because int might match the return type of a gcc2
37122    builtin and then its argument prototype would still apply.  */
37123 char $ac_func ();
37124 /* The GNU C library defines this for functions which it implements
37125     to always fail with ENOSYS.  Some functions are actually named
37126     something starting with __ and the normal name is an alias.  */
37127 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37128 choke me
37129 #else
37130 char (*f) () = $ac_func;
37131 #endif
37132 #ifdef __cplusplus
37133 }
37134 #endif
37135
37136 int
37137 main ()
37138 {
37139 return f != $ac_func;
37140   ;
37141   return 0;
37142 }
37143 _ACEOF
37144 rm -f conftest.$ac_objext conftest$ac_exeext
37145 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37146   (eval $ac_link) 2>conftest.er1
37147   ac_status=$?
37148   grep -v '^ *+' conftest.er1 >conftest.err
37149   rm -f conftest.er1
37150   cat conftest.err >&5
37151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37152   (exit $ac_status); } &&
37153          { ac_try='test -z "$ac_c_werror_flag"
37154                          || test ! -s conftest.err'
37155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37156   (eval $ac_try) 2>&5
37157   ac_status=$?
37158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37159   (exit $ac_status); }; } &&
37160          { ac_try='test -s conftest$ac_exeext'
37161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37162   (eval $ac_try) 2>&5
37163   ac_status=$?
37164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37165   (exit $ac_status); }; }; then
37166   eval "$as_ac_var=yes"
37167 else
37168   echo "$as_me: failed program was:" >&5
37169 sed 's/^/| /' conftest.$ac_ext >&5
37170
37171 eval "$as_ac_var=no"
37172 fi
37173 rm -f conftest.err conftest.$ac_objext \
37174       conftest$ac_exeext conftest.$ac_ext
37175 fi
37176 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37177 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37178 if test `eval echo '${'$as_ac_var'}'` = yes; then
37179   cat >>confdefs.h <<_ACEOF
37180 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37181 _ACEOF
37182  ice_have_atoi=yes
37183 fi
37184 done
37185
37186 if test "${ice_have_atoi}" = yes; then
37187 echo "$as_me:$LINENO: checking for atoi declaration in stdlib.h" >&5
37188 echo $ECHO_N "checking for atoi declaration in stdlib.h... $ECHO_C" >&6
37189 if test "${ice_cv_have_atoi_decl+set}" = set; then
37190   echo $ECHO_N "(cached) $ECHO_C" >&6
37191 else
37192
37193 ice_cv_have_atoi_decl=no
37194 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
37195 ice_re_word='(^|[^a-zA-Z0-9_])'
37196 for header in stdlib.h; do
37197 # Check for ordinary declaration
37198 cat >conftest.$ac_ext <<_ACEOF
37199 /* confdefs.h.  */
37200 _ACEOF
37201 cat confdefs.h >>conftest.$ac_ext
37202 cat >>conftest.$ac_ext <<_ACEOF
37203 /* end confdefs.h.  */
37204 #include <$header>
37205
37206 _ACEOF
37207 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37208   $EGREP "${ice_re_word}atoi[   ]*\(" >/dev/null 2>&1; then
37209   ice_cv_have_atoi_decl=yes
37210 fi
37211 rm -f conftest*
37212
37213 if test "$ice_cv_have_atoi_decl" = yes; then
37214         break
37215 fi
37216 # Check for "fixed" declaration like "getpid _PARAMS((int))"
37217 cat >conftest.$ac_ext <<_ACEOF
37218 /* confdefs.h.  */
37219 _ACEOF
37220 cat confdefs.h >>conftest.$ac_ext
37221 cat >>conftest.$ac_ext <<_ACEOF
37222 /* end confdefs.h.  */
37223 #include <$header>
37224
37225 _ACEOF
37226 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37227   $EGREP "${ice_re_word}atoi[   ]*$ice_re_params\(\(" >/dev/null 2>&1; then
37228   ice_cv_have_atoi_decl=yes
37229 fi
37230 rm -f conftest*
37231
37232 if test "$ice_cv_have_atoi_decl" = yes; then
37233         break
37234 fi
37235 done
37236
37237 fi
37238
37239 echo "$as_me:$LINENO: result: $ice_cv_have_atoi_decl" >&5
37240 echo "${ECHO_T}$ice_cv_have_atoi_decl" >&6
37241 if test "$ice_cv_have_atoi_decl" = yes; then
37242
37243 cat >>confdefs.h <<_ACEOF
37244 #define HAVE_ATOI_DECL 1
37245 _ACEOF
37246
37247 fi
37248 fi
37249
37250
37251 ice_have_atol=no
37252
37253 for ac_func in atol
37254 do
37255 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37256 echo "$as_me:$LINENO: checking for $ac_func" >&5
37257 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37258 if eval "test \"\${$as_ac_var+set}\" = set"; then
37259   echo $ECHO_N "(cached) $ECHO_C" >&6
37260 else
37261   cat >conftest.$ac_ext <<_ACEOF
37262 /* confdefs.h.  */
37263 _ACEOF
37264 cat confdefs.h >>conftest.$ac_ext
37265 cat >>conftest.$ac_ext <<_ACEOF
37266 /* end confdefs.h.  */
37267 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37268    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37269 #define $ac_func innocuous_$ac_func
37270
37271 /* System header to define __stub macros and hopefully few prototypes,
37272     which can conflict with char $ac_func (); below.
37273     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37274     <limits.h> exists even on freestanding compilers.  */
37275
37276 #ifdef __STDC__
37277 # include <limits.h>
37278 #else
37279 # include <assert.h>
37280 #endif
37281
37282 #undef $ac_func
37283
37284 /* Override any gcc2 internal prototype to avoid an error.  */
37285 #ifdef __cplusplus
37286 extern "C"
37287 {
37288 #endif
37289 /* We use char because int might match the return type of a gcc2
37290    builtin and then its argument prototype would still apply.  */
37291 char $ac_func ();
37292 /* The GNU C library defines this for functions which it implements
37293     to always fail with ENOSYS.  Some functions are actually named
37294     something starting with __ and the normal name is an alias.  */
37295 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37296 choke me
37297 #else
37298 char (*f) () = $ac_func;
37299 #endif
37300 #ifdef __cplusplus
37301 }
37302 #endif
37303
37304 int
37305 main ()
37306 {
37307 return f != $ac_func;
37308   ;
37309   return 0;
37310 }
37311 _ACEOF
37312 rm -f conftest.$ac_objext conftest$ac_exeext
37313 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37314   (eval $ac_link) 2>conftest.er1
37315   ac_status=$?
37316   grep -v '^ *+' conftest.er1 >conftest.err
37317   rm -f conftest.er1
37318   cat conftest.err >&5
37319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37320   (exit $ac_status); } &&
37321          { ac_try='test -z "$ac_c_werror_flag"
37322                          || test ! -s conftest.err'
37323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37324   (eval $ac_try) 2>&5
37325   ac_status=$?
37326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37327   (exit $ac_status); }; } &&
37328          { ac_try='test -s conftest$ac_exeext'
37329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37330   (eval $ac_try) 2>&5
37331   ac_status=$?
37332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37333   (exit $ac_status); }; }; then
37334   eval "$as_ac_var=yes"
37335 else
37336   echo "$as_me: failed program was:" >&5
37337 sed 's/^/| /' conftest.$ac_ext >&5
37338
37339 eval "$as_ac_var=no"
37340 fi
37341 rm -f conftest.err conftest.$ac_objext \
37342       conftest$ac_exeext conftest.$ac_ext
37343 fi
37344 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37345 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37346 if test `eval echo '${'$as_ac_var'}'` = yes; then
37347   cat >>confdefs.h <<_ACEOF
37348 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37349 _ACEOF
37350  ice_have_atol=yes
37351 fi
37352 done
37353
37354 if test "${ice_have_atol}" = yes; then
37355 echo "$as_me:$LINENO: checking for atol declaration in stdlib.h" >&5
37356 echo $ECHO_N "checking for atol declaration in stdlib.h... $ECHO_C" >&6
37357 if test "${ice_cv_have_atol_decl+set}" = set; then
37358   echo $ECHO_N "(cached) $ECHO_C" >&6
37359 else
37360
37361 ice_cv_have_atol_decl=no
37362 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
37363 ice_re_word='(^|[^a-zA-Z0-9_])'
37364 for header in stdlib.h; do
37365 # Check for ordinary declaration
37366 cat >conftest.$ac_ext <<_ACEOF
37367 /* confdefs.h.  */
37368 _ACEOF
37369 cat confdefs.h >>conftest.$ac_ext
37370 cat >>conftest.$ac_ext <<_ACEOF
37371 /* end confdefs.h.  */
37372 #include <$header>
37373
37374 _ACEOF
37375 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37376   $EGREP "${ice_re_word}atol[   ]*\(" >/dev/null 2>&1; then
37377   ice_cv_have_atol_decl=yes
37378 fi
37379 rm -f conftest*
37380
37381 if test "$ice_cv_have_atol_decl" = yes; then
37382         break
37383 fi
37384 # Check for "fixed" declaration like "getpid _PARAMS((int))"
37385 cat >conftest.$ac_ext <<_ACEOF
37386 /* confdefs.h.  */
37387 _ACEOF
37388 cat confdefs.h >>conftest.$ac_ext
37389 cat >>conftest.$ac_ext <<_ACEOF
37390 /* end confdefs.h.  */
37391 #include <$header>
37392
37393 _ACEOF
37394 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37395   $EGREP "${ice_re_word}atol[   ]*$ice_re_params\(\(" >/dev/null 2>&1; then
37396   ice_cv_have_atol_decl=yes
37397 fi
37398 rm -f conftest*
37399
37400 if test "$ice_cv_have_atol_decl" = yes; then
37401         break
37402 fi
37403 done
37404
37405 fi
37406
37407 echo "$as_me:$LINENO: result: $ice_cv_have_atol_decl" >&5
37408 echo "${ECHO_T}$ice_cv_have_atol_decl" >&6
37409 if test "$ice_cv_have_atol_decl" = yes; then
37410
37411 cat >>confdefs.h <<_ACEOF
37412 #define HAVE_ATOL_DECL 1
37413 _ACEOF
37414
37415 fi
37416 fi
37417
37418
37419 ice_have_atoll=no
37420
37421 for ac_func in atoll
37422 do
37423 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37424 echo "$as_me:$LINENO: checking for $ac_func" >&5
37425 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37426 if eval "test \"\${$as_ac_var+set}\" = set"; then
37427   echo $ECHO_N "(cached) $ECHO_C" >&6
37428 else
37429   cat >conftest.$ac_ext <<_ACEOF
37430 /* confdefs.h.  */
37431 _ACEOF
37432 cat confdefs.h >>conftest.$ac_ext
37433 cat >>conftest.$ac_ext <<_ACEOF
37434 /* end confdefs.h.  */
37435 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37436    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37437 #define $ac_func innocuous_$ac_func
37438
37439 /* System header to define __stub macros and hopefully few prototypes,
37440     which can conflict with char $ac_func (); below.
37441     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37442     <limits.h> exists even on freestanding compilers.  */
37443
37444 #ifdef __STDC__
37445 # include <limits.h>
37446 #else
37447 # include <assert.h>
37448 #endif
37449
37450 #undef $ac_func
37451
37452 /* Override any gcc2 internal prototype to avoid an error.  */
37453 #ifdef __cplusplus
37454 extern "C"
37455 {
37456 #endif
37457 /* We use char because int might match the return type of a gcc2
37458    builtin and then its argument prototype would still apply.  */
37459 char $ac_func ();
37460 /* The GNU C library defines this for functions which it implements
37461     to always fail with ENOSYS.  Some functions are actually named
37462     something starting with __ and the normal name is an alias.  */
37463 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37464 choke me
37465 #else
37466 char (*f) () = $ac_func;
37467 #endif
37468 #ifdef __cplusplus
37469 }
37470 #endif
37471
37472 int
37473 main ()
37474 {
37475 return f != $ac_func;
37476   ;
37477   return 0;
37478 }
37479 _ACEOF
37480 rm -f conftest.$ac_objext conftest$ac_exeext
37481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37482   (eval $ac_link) 2>conftest.er1
37483   ac_status=$?
37484   grep -v '^ *+' conftest.er1 >conftest.err
37485   rm -f conftest.er1
37486   cat conftest.err >&5
37487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37488   (exit $ac_status); } &&
37489          { ac_try='test -z "$ac_c_werror_flag"
37490                          || test ! -s conftest.err'
37491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37492   (eval $ac_try) 2>&5
37493   ac_status=$?
37494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37495   (exit $ac_status); }; } &&
37496          { ac_try='test -s conftest$ac_exeext'
37497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37498   (eval $ac_try) 2>&5
37499   ac_status=$?
37500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37501   (exit $ac_status); }; }; then
37502   eval "$as_ac_var=yes"
37503 else
37504   echo "$as_me: failed program was:" >&5
37505 sed 's/^/| /' conftest.$ac_ext >&5
37506
37507 eval "$as_ac_var=no"
37508 fi
37509 rm -f conftest.err conftest.$ac_objext \
37510       conftest$ac_exeext conftest.$ac_ext
37511 fi
37512 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37513 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37514 if test `eval echo '${'$as_ac_var'}'` = yes; then
37515   cat >>confdefs.h <<_ACEOF
37516 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37517 _ACEOF
37518  ice_have_atoll=yes
37519 fi
37520 done
37521
37522 if test "${ice_have_atoll}" = yes; then
37523 echo "$as_me:$LINENO: checking for atoll declaration in stdlib.h" >&5
37524 echo $ECHO_N "checking for atoll declaration in stdlib.h... $ECHO_C" >&6
37525 if test "${ice_cv_have_atoll_decl+set}" = set; then
37526   echo $ECHO_N "(cached) $ECHO_C" >&6
37527 else
37528
37529 ice_cv_have_atoll_decl=no
37530 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
37531 ice_re_word='(^|[^a-zA-Z0-9_])'
37532 for header in stdlib.h; do
37533 # Check for ordinary declaration
37534 cat >conftest.$ac_ext <<_ACEOF
37535 /* confdefs.h.  */
37536 _ACEOF
37537 cat confdefs.h >>conftest.$ac_ext
37538 cat >>conftest.$ac_ext <<_ACEOF
37539 /* end confdefs.h.  */
37540 #include <$header>
37541
37542 _ACEOF
37543 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37544   $EGREP "${ice_re_word}atoll[  ]*\(" >/dev/null 2>&1; then
37545   ice_cv_have_atoll_decl=yes
37546 fi
37547 rm -f conftest*
37548
37549 if test "$ice_cv_have_atoll_decl" = yes; then
37550         break
37551 fi
37552 # Check for "fixed" declaration like "getpid _PARAMS((int))"
37553 cat >conftest.$ac_ext <<_ACEOF
37554 /* confdefs.h.  */
37555 _ACEOF
37556 cat confdefs.h >>conftest.$ac_ext
37557 cat >>conftest.$ac_ext <<_ACEOF
37558 /* end confdefs.h.  */
37559 #include <$header>
37560
37561 _ACEOF
37562 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37563   $EGREP "${ice_re_word}atoll[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
37564   ice_cv_have_atoll_decl=yes
37565 fi
37566 rm -f conftest*
37567
37568 if test "$ice_cv_have_atoll_decl" = yes; then
37569         break
37570 fi
37571 done
37572
37573 fi
37574
37575 echo "$as_me:$LINENO: result: $ice_cv_have_atoll_decl" >&5
37576 echo "${ECHO_T}$ice_cv_have_atoll_decl" >&6
37577 if test "$ice_cv_have_atoll_decl" = yes; then
37578
37579 cat >>confdefs.h <<_ACEOF
37580 #define HAVE_ATOLL_DECL 1
37581 _ACEOF
37582
37583 fi
37584 fi
37585
37586
37587 ice_have_strtol=no
37588
37589 for ac_func in strtol
37590 do
37591 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37592 echo "$as_me:$LINENO: checking for $ac_func" >&5
37593 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37594 if eval "test \"\${$as_ac_var+set}\" = set"; then
37595   echo $ECHO_N "(cached) $ECHO_C" >&6
37596 else
37597   cat >conftest.$ac_ext <<_ACEOF
37598 /* confdefs.h.  */
37599 _ACEOF
37600 cat confdefs.h >>conftest.$ac_ext
37601 cat >>conftest.$ac_ext <<_ACEOF
37602 /* end confdefs.h.  */
37603 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37604    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37605 #define $ac_func innocuous_$ac_func
37606
37607 /* System header to define __stub macros and hopefully few prototypes,
37608     which can conflict with char $ac_func (); below.
37609     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37610     <limits.h> exists even on freestanding compilers.  */
37611
37612 #ifdef __STDC__
37613 # include <limits.h>
37614 #else
37615 # include <assert.h>
37616 #endif
37617
37618 #undef $ac_func
37619
37620 /* Override any gcc2 internal prototype to avoid an error.  */
37621 #ifdef __cplusplus
37622 extern "C"
37623 {
37624 #endif
37625 /* We use char because int might match the return type of a gcc2
37626    builtin and then its argument prototype would still apply.  */
37627 char $ac_func ();
37628 /* The GNU C library defines this for functions which it implements
37629     to always fail with ENOSYS.  Some functions are actually named
37630     something starting with __ and the normal name is an alias.  */
37631 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37632 choke me
37633 #else
37634 char (*f) () = $ac_func;
37635 #endif
37636 #ifdef __cplusplus
37637 }
37638 #endif
37639
37640 int
37641 main ()
37642 {
37643 return f != $ac_func;
37644   ;
37645   return 0;
37646 }
37647 _ACEOF
37648 rm -f conftest.$ac_objext conftest$ac_exeext
37649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37650   (eval $ac_link) 2>conftest.er1
37651   ac_status=$?
37652   grep -v '^ *+' conftest.er1 >conftest.err
37653   rm -f conftest.er1
37654   cat conftest.err >&5
37655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37656   (exit $ac_status); } &&
37657          { ac_try='test -z "$ac_c_werror_flag"
37658                          || test ! -s conftest.err'
37659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37660   (eval $ac_try) 2>&5
37661   ac_status=$?
37662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37663   (exit $ac_status); }; } &&
37664          { ac_try='test -s conftest$ac_exeext'
37665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37666   (eval $ac_try) 2>&5
37667   ac_status=$?
37668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37669   (exit $ac_status); }; }; then
37670   eval "$as_ac_var=yes"
37671 else
37672   echo "$as_me: failed program was:" >&5
37673 sed 's/^/| /' conftest.$ac_ext >&5
37674
37675 eval "$as_ac_var=no"
37676 fi
37677 rm -f conftest.err conftest.$ac_objext \
37678       conftest$ac_exeext conftest.$ac_ext
37679 fi
37680 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37681 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37682 if test `eval echo '${'$as_ac_var'}'` = yes; then
37683   cat >>confdefs.h <<_ACEOF
37684 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37685 _ACEOF
37686  ice_have_strtol=yes
37687 fi
37688 done
37689
37690 if test "${ice_have_strtol}" = yes; then
37691 echo "$as_me:$LINENO: checking for strtol declaration in stdlib.h" >&5
37692 echo $ECHO_N "checking for strtol declaration in stdlib.h... $ECHO_C" >&6
37693 if test "${ice_cv_have_strtol_decl+set}" = set; then
37694   echo $ECHO_N "(cached) $ECHO_C" >&6
37695 else
37696
37697 ice_cv_have_strtol_decl=no
37698 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
37699 ice_re_word='(^|[^a-zA-Z0-9_])'
37700 for header in stdlib.h; do
37701 # Check for ordinary declaration
37702 cat >conftest.$ac_ext <<_ACEOF
37703 /* confdefs.h.  */
37704 _ACEOF
37705 cat confdefs.h >>conftest.$ac_ext
37706 cat >>conftest.$ac_ext <<_ACEOF
37707 /* end confdefs.h.  */
37708 #include <$header>
37709
37710 _ACEOF
37711 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37712   $EGREP "${ice_re_word}strtol[         ]*\(" >/dev/null 2>&1; then
37713   ice_cv_have_strtol_decl=yes
37714 fi
37715 rm -f conftest*
37716
37717 if test "$ice_cv_have_strtol_decl" = yes; then
37718         break
37719 fi
37720 # Check for "fixed" declaration like "getpid _PARAMS((int))"
37721 cat >conftest.$ac_ext <<_ACEOF
37722 /* confdefs.h.  */
37723 _ACEOF
37724 cat confdefs.h >>conftest.$ac_ext
37725 cat >>conftest.$ac_ext <<_ACEOF
37726 /* end confdefs.h.  */
37727 #include <$header>
37728
37729 _ACEOF
37730 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37731   $EGREP "${ice_re_word}strtol[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
37732   ice_cv_have_strtol_decl=yes
37733 fi
37734 rm -f conftest*
37735
37736 if test "$ice_cv_have_strtol_decl" = yes; then
37737         break
37738 fi
37739 done
37740
37741 fi
37742
37743 echo "$as_me:$LINENO: result: $ice_cv_have_strtol_decl" >&5
37744 echo "${ECHO_T}$ice_cv_have_strtol_decl" >&6
37745 if test "$ice_cv_have_strtol_decl" = yes; then
37746
37747 cat >>confdefs.h <<_ACEOF
37748 #define HAVE_STRTOL_DECL 1
37749 _ACEOF
37750
37751 fi
37752 fi
37753
37754
37755 ice_have_strtoll=no
37756
37757 for ac_func in strtoll
37758 do
37759 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37760 echo "$as_me:$LINENO: checking for $ac_func" >&5
37761 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37762 if eval "test \"\${$as_ac_var+set}\" = set"; then
37763   echo $ECHO_N "(cached) $ECHO_C" >&6
37764 else
37765   cat >conftest.$ac_ext <<_ACEOF
37766 /* confdefs.h.  */
37767 _ACEOF
37768 cat confdefs.h >>conftest.$ac_ext
37769 cat >>conftest.$ac_ext <<_ACEOF
37770 /* end confdefs.h.  */
37771 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37772    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37773 #define $ac_func innocuous_$ac_func
37774
37775 /* System header to define __stub macros and hopefully few prototypes,
37776     which can conflict with char $ac_func (); below.
37777     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37778     <limits.h> exists even on freestanding compilers.  */
37779
37780 #ifdef __STDC__
37781 # include <limits.h>
37782 #else
37783 # include <assert.h>
37784 #endif
37785
37786 #undef $ac_func
37787
37788 /* Override any gcc2 internal prototype to avoid an error.  */
37789 #ifdef __cplusplus
37790 extern "C"
37791 {
37792 #endif
37793 /* We use char because int might match the return type of a gcc2
37794    builtin and then its argument prototype would still apply.  */
37795 char $ac_func ();
37796 /* The GNU C library defines this for functions which it implements
37797     to always fail with ENOSYS.  Some functions are actually named
37798     something starting with __ and the normal name is an alias.  */
37799 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37800 choke me
37801 #else
37802 char (*f) () = $ac_func;
37803 #endif
37804 #ifdef __cplusplus
37805 }
37806 #endif
37807
37808 int
37809 main ()
37810 {
37811 return f != $ac_func;
37812   ;
37813   return 0;
37814 }
37815 _ACEOF
37816 rm -f conftest.$ac_objext conftest$ac_exeext
37817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37818   (eval $ac_link) 2>conftest.er1
37819   ac_status=$?
37820   grep -v '^ *+' conftest.er1 >conftest.err
37821   rm -f conftest.er1
37822   cat conftest.err >&5
37823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37824   (exit $ac_status); } &&
37825          { ac_try='test -z "$ac_c_werror_flag"
37826                          || test ! -s conftest.err'
37827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37828   (eval $ac_try) 2>&5
37829   ac_status=$?
37830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37831   (exit $ac_status); }; } &&
37832          { ac_try='test -s conftest$ac_exeext'
37833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37834   (eval $ac_try) 2>&5
37835   ac_status=$?
37836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37837   (exit $ac_status); }; }; then
37838   eval "$as_ac_var=yes"
37839 else
37840   echo "$as_me: failed program was:" >&5
37841 sed 's/^/| /' conftest.$ac_ext >&5
37842
37843 eval "$as_ac_var=no"
37844 fi
37845 rm -f conftest.err conftest.$ac_objext \
37846       conftest$ac_exeext conftest.$ac_ext
37847 fi
37848 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37849 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37850 if test `eval echo '${'$as_ac_var'}'` = yes; then
37851   cat >>confdefs.h <<_ACEOF
37852 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37853 _ACEOF
37854  ice_have_strtoll=yes
37855 fi
37856 done
37857
37858 if test "${ice_have_strtoll}" = yes; then
37859 echo "$as_me:$LINENO: checking for strtoll declaration in stdlib.h" >&5
37860 echo $ECHO_N "checking for strtoll declaration in stdlib.h... $ECHO_C" >&6
37861 if test "${ice_cv_have_strtoll_decl+set}" = set; then
37862   echo $ECHO_N "(cached) $ECHO_C" >&6
37863 else
37864
37865 ice_cv_have_strtoll_decl=no
37866 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
37867 ice_re_word='(^|[^a-zA-Z0-9_])'
37868 for header in stdlib.h; do
37869 # Check for ordinary declaration
37870 cat >conftest.$ac_ext <<_ACEOF
37871 /* confdefs.h.  */
37872 _ACEOF
37873 cat confdefs.h >>conftest.$ac_ext
37874 cat >>conftest.$ac_ext <<_ACEOF
37875 /* end confdefs.h.  */
37876 #include <$header>
37877
37878 _ACEOF
37879 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37880   $EGREP "${ice_re_word}strtoll[        ]*\(" >/dev/null 2>&1; then
37881   ice_cv_have_strtoll_decl=yes
37882 fi
37883 rm -f conftest*
37884
37885 if test "$ice_cv_have_strtoll_decl" = yes; then
37886         break
37887 fi
37888 # Check for "fixed" declaration like "getpid _PARAMS((int))"
37889 cat >conftest.$ac_ext <<_ACEOF
37890 /* confdefs.h.  */
37891 _ACEOF
37892 cat confdefs.h >>conftest.$ac_ext
37893 cat >>conftest.$ac_ext <<_ACEOF
37894 /* end confdefs.h.  */
37895 #include <$header>
37896
37897 _ACEOF
37898 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37899   $EGREP "${ice_re_word}strtoll[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
37900   ice_cv_have_strtoll_decl=yes
37901 fi
37902 rm -f conftest*
37903
37904 if test "$ice_cv_have_strtoll_decl" = yes; then
37905         break
37906 fi
37907 done
37908
37909 fi
37910
37911 echo "$as_me:$LINENO: result: $ice_cv_have_strtoll_decl" >&5
37912 echo "${ECHO_T}$ice_cv_have_strtoll_decl" >&6
37913 if test "$ice_cv_have_strtoll_decl" = yes; then
37914
37915 cat >>confdefs.h <<_ACEOF
37916 #define HAVE_STRTOLL_DECL 1
37917 _ACEOF
37918
37919 fi
37920 fi
37921
37922
37923 for ac_func in basename
37924 do
37925 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37926 echo "$as_me:$LINENO: checking for $ac_func" >&5
37927 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37928 if eval "test \"\${$as_ac_var+set}\" = set"; then
37929   echo $ECHO_N "(cached) $ECHO_C" >&6
37930 else
37931   cat >conftest.$ac_ext <<_ACEOF
37932 /* confdefs.h.  */
37933 _ACEOF
37934 cat confdefs.h >>conftest.$ac_ext
37935 cat >>conftest.$ac_ext <<_ACEOF
37936 /* end confdefs.h.  */
37937 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37938    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37939 #define $ac_func innocuous_$ac_func
37940
37941 /* System header to define __stub macros and hopefully few prototypes,
37942     which can conflict with char $ac_func (); below.
37943     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37944     <limits.h> exists even on freestanding compilers.  */
37945
37946 #ifdef __STDC__
37947 # include <limits.h>
37948 #else
37949 # include <assert.h>
37950 #endif
37951
37952 #undef $ac_func
37953
37954 /* Override any gcc2 internal prototype to avoid an error.  */
37955 #ifdef __cplusplus
37956 extern "C"
37957 {
37958 #endif
37959 /* We use char because int might match the return type of a gcc2
37960    builtin and then its argument prototype would still apply.  */
37961 char $ac_func ();
37962 /* The GNU C library defines this for functions which it implements
37963     to always fail with ENOSYS.  Some functions are actually named
37964     something starting with __ and the normal name is an alias.  */
37965 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37966 choke me
37967 #else
37968 char (*f) () = $ac_func;
37969 #endif
37970 #ifdef __cplusplus
37971 }
37972 #endif
37973
37974 int
37975 main ()
37976 {
37977 return f != $ac_func;
37978   ;
37979   return 0;
37980 }
37981 _ACEOF
37982 rm -f conftest.$ac_objext conftest$ac_exeext
37983 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37984   (eval $ac_link) 2>conftest.er1
37985   ac_status=$?
37986   grep -v '^ *+' conftest.er1 >conftest.err
37987   rm -f conftest.er1
37988   cat conftest.err >&5
37989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37990   (exit $ac_status); } &&
37991          { ac_try='test -z "$ac_c_werror_flag"
37992                          || test ! -s conftest.err'
37993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37994   (eval $ac_try) 2>&5
37995   ac_status=$?
37996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37997   (exit $ac_status); }; } &&
37998          { ac_try='test -s conftest$ac_exeext'
37999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38000   (eval $ac_try) 2>&5
38001   ac_status=$?
38002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38003   (exit $ac_status); }; }; then
38004   eval "$as_ac_var=yes"
38005 else
38006   echo "$as_me: failed program was:" >&5
38007 sed 's/^/| /' conftest.$ac_ext >&5
38008
38009 eval "$as_ac_var=no"
38010 fi
38011 rm -f conftest.err conftest.$ac_objext \
38012       conftest$ac_exeext conftest.$ac_ext
38013 fi
38014 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38015 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38016 if test `eval echo '${'$as_ac_var'}'` = yes; then
38017   cat >>confdefs.h <<_ACEOF
38018 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38019 _ACEOF
38020
38021 fi
38022 done
38023
38024
38025 ice_have_bind=no
38026
38027 for ac_func in bind
38028 do
38029 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38030 echo "$as_me:$LINENO: checking for $ac_func" >&5
38031 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38032 if eval "test \"\${$as_ac_var+set}\" = set"; then
38033   echo $ECHO_N "(cached) $ECHO_C" >&6
38034 else
38035   cat >conftest.$ac_ext <<_ACEOF
38036 /* confdefs.h.  */
38037 _ACEOF
38038 cat confdefs.h >>conftest.$ac_ext
38039 cat >>conftest.$ac_ext <<_ACEOF
38040 /* end confdefs.h.  */
38041 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38042    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38043 #define $ac_func innocuous_$ac_func
38044
38045 /* System header to define __stub macros and hopefully few prototypes,
38046     which can conflict with char $ac_func (); below.
38047     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38048     <limits.h> exists even on freestanding compilers.  */
38049
38050 #ifdef __STDC__
38051 # include <limits.h>
38052 #else
38053 # include <assert.h>
38054 #endif
38055
38056 #undef $ac_func
38057
38058 /* Override any gcc2 internal prototype to avoid an error.  */
38059 #ifdef __cplusplus
38060 extern "C"
38061 {
38062 #endif
38063 /* We use char because int might match the return type of a gcc2
38064    builtin and then its argument prototype would still apply.  */
38065 char $ac_func ();
38066 /* The GNU C library defines this for functions which it implements
38067     to always fail with ENOSYS.  Some functions are actually named
38068     something starting with __ and the normal name is an alias.  */
38069 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38070 choke me
38071 #else
38072 char (*f) () = $ac_func;
38073 #endif
38074 #ifdef __cplusplus
38075 }
38076 #endif
38077
38078 int
38079 main ()
38080 {
38081 return f != $ac_func;
38082   ;
38083   return 0;
38084 }
38085 _ACEOF
38086 rm -f conftest.$ac_objext conftest$ac_exeext
38087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38088   (eval $ac_link) 2>conftest.er1
38089   ac_status=$?
38090   grep -v '^ *+' conftest.er1 >conftest.err
38091   rm -f conftest.er1
38092   cat conftest.err >&5
38093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38094   (exit $ac_status); } &&
38095          { ac_try='test -z "$ac_c_werror_flag"
38096                          || test ! -s conftest.err'
38097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38098   (eval $ac_try) 2>&5
38099   ac_status=$?
38100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38101   (exit $ac_status); }; } &&
38102          { ac_try='test -s conftest$ac_exeext'
38103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38104   (eval $ac_try) 2>&5
38105   ac_status=$?
38106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38107   (exit $ac_status); }; }; then
38108   eval "$as_ac_var=yes"
38109 else
38110   echo "$as_me: failed program was:" >&5
38111 sed 's/^/| /' conftest.$ac_ext >&5
38112
38113 eval "$as_ac_var=no"
38114 fi
38115 rm -f conftest.err conftest.$ac_objext \
38116       conftest$ac_exeext conftest.$ac_ext
38117 fi
38118 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38119 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38120 if test `eval echo '${'$as_ac_var'}'` = yes; then
38121   cat >>confdefs.h <<_ACEOF
38122 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38123 _ACEOF
38124  ice_have_bind=yes
38125 fi
38126 done
38127
38128 if test "${ice_have_bind}" = yes; then
38129 echo "$as_me:$LINENO: checking for bind declaration in sys/types.h sys/socket.h" >&5
38130 echo $ECHO_N "checking for bind declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
38131 if test "${ice_cv_have_bind_decl+set}" = set; then
38132   echo $ECHO_N "(cached) $ECHO_C" >&6
38133 else
38134
38135 ice_cv_have_bind_decl=no
38136 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
38137 ice_re_word='(^|[^a-zA-Z0-9_])'
38138 for header in sys/types.h sys/socket.h; do
38139 # Check for ordinary declaration
38140 cat >conftest.$ac_ext <<_ACEOF
38141 /* confdefs.h.  */
38142 _ACEOF
38143 cat confdefs.h >>conftest.$ac_ext
38144 cat >>conftest.$ac_ext <<_ACEOF
38145 /* end confdefs.h.  */
38146 #include <$header>
38147
38148 _ACEOF
38149 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38150   $EGREP "${ice_re_word}bind[   ]*\(" >/dev/null 2>&1; then
38151   ice_cv_have_bind_decl=yes
38152 fi
38153 rm -f conftest*
38154
38155 if test "$ice_cv_have_bind_decl" = yes; then
38156         break
38157 fi
38158 # Check for "fixed" declaration like "getpid _PARAMS((int))"
38159 cat >conftest.$ac_ext <<_ACEOF
38160 /* confdefs.h.  */
38161 _ACEOF
38162 cat confdefs.h >>conftest.$ac_ext
38163 cat >>conftest.$ac_ext <<_ACEOF
38164 /* end confdefs.h.  */
38165 #include <$header>
38166
38167 _ACEOF
38168 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38169   $EGREP "${ice_re_word}bind[   ]*$ice_re_params\(\(" >/dev/null 2>&1; then
38170   ice_cv_have_bind_decl=yes
38171 fi
38172 rm -f conftest*
38173
38174 if test "$ice_cv_have_bind_decl" = yes; then
38175         break
38176 fi
38177 done
38178
38179 fi
38180
38181 echo "$as_me:$LINENO: result: $ice_cv_have_bind_decl" >&5
38182 echo "${ECHO_T}$ice_cv_have_bind_decl" >&6
38183 if test "$ice_cv_have_bind_decl" = yes; then
38184
38185 cat >>confdefs.h <<_ACEOF
38186 #define HAVE_BIND_DECL 1
38187 _ACEOF
38188
38189 fi
38190 fi
38191
38192
38193 ice_have_bcopy=no
38194
38195 for ac_func in bcopy
38196 do
38197 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38198 echo "$as_me:$LINENO: checking for $ac_func" >&5
38199 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38200 if eval "test \"\${$as_ac_var+set}\" = set"; then
38201   echo $ECHO_N "(cached) $ECHO_C" >&6
38202 else
38203   cat >conftest.$ac_ext <<_ACEOF
38204 /* confdefs.h.  */
38205 _ACEOF
38206 cat confdefs.h >>conftest.$ac_ext
38207 cat >>conftest.$ac_ext <<_ACEOF
38208 /* end confdefs.h.  */
38209 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38210    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38211 #define $ac_func innocuous_$ac_func
38212
38213 /* System header to define __stub macros and hopefully few prototypes,
38214     which can conflict with char $ac_func (); below.
38215     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38216     <limits.h> exists even on freestanding compilers.  */
38217
38218 #ifdef __STDC__
38219 # include <limits.h>
38220 #else
38221 # include <assert.h>
38222 #endif
38223
38224 #undef $ac_func
38225
38226 /* Override any gcc2 internal prototype to avoid an error.  */
38227 #ifdef __cplusplus
38228 extern "C"
38229 {
38230 #endif
38231 /* We use char because int might match the return type of a gcc2
38232    builtin and then its argument prototype would still apply.  */
38233 char $ac_func ();
38234 /* The GNU C library defines this for functions which it implements
38235     to always fail with ENOSYS.  Some functions are actually named
38236     something starting with __ and the normal name is an alias.  */
38237 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38238 choke me
38239 #else
38240 char (*f) () = $ac_func;
38241 #endif
38242 #ifdef __cplusplus
38243 }
38244 #endif
38245
38246 int
38247 main ()
38248 {
38249 return f != $ac_func;
38250   ;
38251   return 0;
38252 }
38253 _ACEOF
38254 rm -f conftest.$ac_objext conftest$ac_exeext
38255 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38256   (eval $ac_link) 2>conftest.er1
38257   ac_status=$?
38258   grep -v '^ *+' conftest.er1 >conftest.err
38259   rm -f conftest.er1
38260   cat conftest.err >&5
38261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38262   (exit $ac_status); } &&
38263          { ac_try='test -z "$ac_c_werror_flag"
38264                          || test ! -s conftest.err'
38265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38266   (eval $ac_try) 2>&5
38267   ac_status=$?
38268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38269   (exit $ac_status); }; } &&
38270          { ac_try='test -s conftest$ac_exeext'
38271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38272   (eval $ac_try) 2>&5
38273   ac_status=$?
38274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38275   (exit $ac_status); }; }; then
38276   eval "$as_ac_var=yes"
38277 else
38278   echo "$as_me: failed program was:" >&5
38279 sed 's/^/| /' conftest.$ac_ext >&5
38280
38281 eval "$as_ac_var=no"
38282 fi
38283 rm -f conftest.err conftest.$ac_objext \
38284       conftest$ac_exeext conftest.$ac_ext
38285 fi
38286 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38287 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38288 if test `eval echo '${'$as_ac_var'}'` = yes; then
38289   cat >>confdefs.h <<_ACEOF
38290 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38291 _ACEOF
38292  ice_have_bcopy=yes
38293 fi
38294 done
38295
38296 if test "${ice_have_bcopy}" = yes; then
38297 echo "$as_me:$LINENO: checking for bcopy declaration in string.h strings.h stdlib.h" >&5
38298 echo $ECHO_N "checking for bcopy declaration in string.h strings.h stdlib.h... $ECHO_C" >&6
38299 if test "${ice_cv_have_bcopy_decl+set}" = set; then
38300   echo $ECHO_N "(cached) $ECHO_C" >&6
38301 else
38302
38303 ice_cv_have_bcopy_decl=no
38304 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
38305 ice_re_word='(^|[^a-zA-Z0-9_])'
38306 for header in string.h strings.h stdlib.h; do
38307 # Check for ordinary declaration
38308 cat >conftest.$ac_ext <<_ACEOF
38309 /* confdefs.h.  */
38310 _ACEOF
38311 cat confdefs.h >>conftest.$ac_ext
38312 cat >>conftest.$ac_ext <<_ACEOF
38313 /* end confdefs.h.  */
38314 #include <$header>
38315
38316 _ACEOF
38317 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38318   $EGREP "${ice_re_word}bcopy[  ]*\(" >/dev/null 2>&1; then
38319   ice_cv_have_bcopy_decl=yes
38320 fi
38321 rm -f conftest*
38322
38323 if test "$ice_cv_have_bcopy_decl" = yes; then
38324         break
38325 fi
38326 # Check for "fixed" declaration like "getpid _PARAMS((int))"
38327 cat >conftest.$ac_ext <<_ACEOF
38328 /* confdefs.h.  */
38329 _ACEOF
38330 cat confdefs.h >>conftest.$ac_ext
38331 cat >>conftest.$ac_ext <<_ACEOF
38332 /* end confdefs.h.  */
38333 #include <$header>
38334
38335 _ACEOF
38336 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38337   $EGREP "${ice_re_word}bcopy[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
38338   ice_cv_have_bcopy_decl=yes
38339 fi
38340 rm -f conftest*
38341
38342 if test "$ice_cv_have_bcopy_decl" = yes; then
38343         break
38344 fi
38345 done
38346
38347 fi
38348
38349 echo "$as_me:$LINENO: result: $ice_cv_have_bcopy_decl" >&5
38350 echo "${ECHO_T}$ice_cv_have_bcopy_decl" >&6
38351 if test "$ice_cv_have_bcopy_decl" = yes; then
38352
38353 cat >>confdefs.h <<_ACEOF
38354 #define HAVE_BCOPY_DECL 1
38355 _ACEOF
38356
38357 fi
38358 fi
38359
38360
38361 ice_have_bzero=no
38362
38363 for ac_func in bzero
38364 do
38365 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38366 echo "$as_me:$LINENO: checking for $ac_func" >&5
38367 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38368 if eval "test \"\${$as_ac_var+set}\" = set"; then
38369   echo $ECHO_N "(cached) $ECHO_C" >&6
38370 else
38371   cat >conftest.$ac_ext <<_ACEOF
38372 /* confdefs.h.  */
38373 _ACEOF
38374 cat confdefs.h >>conftest.$ac_ext
38375 cat >>conftest.$ac_ext <<_ACEOF
38376 /* end confdefs.h.  */
38377 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38378    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38379 #define $ac_func innocuous_$ac_func
38380
38381 /* System header to define __stub macros and hopefully few prototypes,
38382     which can conflict with char $ac_func (); below.
38383     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38384     <limits.h> exists even on freestanding compilers.  */
38385
38386 #ifdef __STDC__
38387 # include <limits.h>
38388 #else
38389 # include <assert.h>
38390 #endif
38391
38392 #undef $ac_func
38393
38394 /* Override any gcc2 internal prototype to avoid an error.  */
38395 #ifdef __cplusplus
38396 extern "C"
38397 {
38398 #endif
38399 /* We use char because int might match the return type of a gcc2
38400    builtin and then its argument prototype would still apply.  */
38401 char $ac_func ();
38402 /* The GNU C library defines this for functions which it implements
38403     to always fail with ENOSYS.  Some functions are actually named
38404     something starting with __ and the normal name is an alias.  */
38405 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38406 choke me
38407 #else
38408 char (*f) () = $ac_func;
38409 #endif
38410 #ifdef __cplusplus
38411 }
38412 #endif
38413
38414 int
38415 main ()
38416 {
38417 return f != $ac_func;
38418   ;
38419   return 0;
38420 }
38421 _ACEOF
38422 rm -f conftest.$ac_objext conftest$ac_exeext
38423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38424   (eval $ac_link) 2>conftest.er1
38425   ac_status=$?
38426   grep -v '^ *+' conftest.er1 >conftest.err
38427   rm -f conftest.er1
38428   cat conftest.err >&5
38429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38430   (exit $ac_status); } &&
38431          { ac_try='test -z "$ac_c_werror_flag"
38432                          || test ! -s conftest.err'
38433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38434   (eval $ac_try) 2>&5
38435   ac_status=$?
38436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38437   (exit $ac_status); }; } &&
38438          { ac_try='test -s conftest$ac_exeext'
38439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38440   (eval $ac_try) 2>&5
38441   ac_status=$?
38442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38443   (exit $ac_status); }; }; then
38444   eval "$as_ac_var=yes"
38445 else
38446   echo "$as_me: failed program was:" >&5
38447 sed 's/^/| /' conftest.$ac_ext >&5
38448
38449 eval "$as_ac_var=no"
38450 fi
38451 rm -f conftest.err conftest.$ac_objext \
38452       conftest$ac_exeext conftest.$ac_ext
38453 fi
38454 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38455 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38456 if test `eval echo '${'$as_ac_var'}'` = yes; then
38457   cat >>confdefs.h <<_ACEOF
38458 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38459 _ACEOF
38460  ice_have_bzero=yes
38461 fi
38462 done
38463
38464 if test "${ice_have_bzero}" = yes; then
38465 echo "$as_me:$LINENO: checking for bzero declaration in string.h strings.h stdlib.h" >&5
38466 echo $ECHO_N "checking for bzero declaration in string.h strings.h stdlib.h... $ECHO_C" >&6
38467 if test "${ice_cv_have_bzero_decl+set}" = set; then
38468   echo $ECHO_N "(cached) $ECHO_C" >&6
38469 else
38470
38471 ice_cv_have_bzero_decl=no
38472 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
38473 ice_re_word='(^|[^a-zA-Z0-9_])'
38474 for header in string.h strings.h stdlib.h; do
38475 # Check for ordinary declaration
38476 cat >conftest.$ac_ext <<_ACEOF
38477 /* confdefs.h.  */
38478 _ACEOF
38479 cat confdefs.h >>conftest.$ac_ext
38480 cat >>conftest.$ac_ext <<_ACEOF
38481 /* end confdefs.h.  */
38482 #include <$header>
38483
38484 _ACEOF
38485 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38486   $EGREP "${ice_re_word}bzero[  ]*\(" >/dev/null 2>&1; then
38487   ice_cv_have_bzero_decl=yes
38488 fi
38489 rm -f conftest*
38490
38491 if test "$ice_cv_have_bzero_decl" = yes; then
38492         break
38493 fi
38494 # Check for "fixed" declaration like "getpid _PARAMS((int))"
38495 cat >conftest.$ac_ext <<_ACEOF
38496 /* confdefs.h.  */
38497 _ACEOF
38498 cat confdefs.h >>conftest.$ac_ext
38499 cat >>conftest.$ac_ext <<_ACEOF
38500 /* end confdefs.h.  */
38501 #include <$header>
38502
38503 _ACEOF
38504 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38505   $EGREP "${ice_re_word}bzero[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
38506   ice_cv_have_bzero_decl=yes
38507 fi
38508 rm -f conftest*
38509
38510 if test "$ice_cv_have_bzero_decl" = yes; then
38511         break
38512 fi
38513 done
38514
38515 fi
38516
38517 echo "$as_me:$LINENO: result: $ice_cv_have_bzero_decl" >&5
38518 echo "${ECHO_T}$ice_cv_have_bzero_decl" >&6
38519 if test "$ice_cv_have_bzero_decl" = yes; then
38520
38521 cat >>confdefs.h <<_ACEOF
38522 #define HAVE_BZERO_DECL 1
38523 _ACEOF
38524
38525 fi
38526 fi
38527
38528 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
38529 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
38530 if test "${ac_cv_func_closedir_void+set}" = set; then
38531   echo $ECHO_N "(cached) $ECHO_C" >&6
38532 else
38533   if test "$cross_compiling" = yes; then
38534   ac_cv_func_closedir_void=yes
38535 else
38536   cat >conftest.$ac_ext <<_ACEOF
38537 /* confdefs.h.  */
38538 _ACEOF
38539 cat confdefs.h >>conftest.$ac_ext
38540 cat >>conftest.$ac_ext <<_ACEOF
38541 /* end confdefs.h.  */
38542 $ac_includes_default
38543 #include <$ac_header_dirent>
38544 #ifndef __cplusplus
38545 int closedir ();
38546 #endif
38547
38548 int
38549 main ()
38550 {
38551 exit (closedir (opendir (".")) != 0);
38552   ;
38553   return 0;
38554 }
38555 _ACEOF
38556 rm -f conftest$ac_exeext
38557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38558   (eval $ac_link) 2>&5
38559   ac_status=$?
38560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38561   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
38562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38563   (eval $ac_try) 2>&5
38564   ac_status=$?
38565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38566   (exit $ac_status); }; }; then
38567   ac_cv_func_closedir_void=no
38568 else
38569   echo "$as_me: program exited with status $ac_status" >&5
38570 echo "$as_me: failed program was:" >&5
38571 sed 's/^/| /' conftest.$ac_ext >&5
38572
38573 ( exit $ac_status )
38574 ac_cv_func_closedir_void=yes
38575 fi
38576 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
38577 fi
38578 fi
38579 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
38580 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
38581 if test $ac_cv_func_closedir_void = yes; then
38582
38583 cat >>confdefs.h <<\_ACEOF
38584 #define CLOSEDIR_VOID 1
38585 _ACEOF
38586
38587 fi
38588
38589
38590 ice_have_closelog=no
38591
38592 for ac_func in closelog
38593 do
38594 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38595 echo "$as_me:$LINENO: checking for $ac_func" >&5
38596 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38597 if eval "test \"\${$as_ac_var+set}\" = set"; then
38598   echo $ECHO_N "(cached) $ECHO_C" >&6
38599 else
38600   cat >conftest.$ac_ext <<_ACEOF
38601 /* confdefs.h.  */
38602 _ACEOF
38603 cat confdefs.h >>conftest.$ac_ext
38604 cat >>conftest.$ac_ext <<_ACEOF
38605 /* end confdefs.h.  */
38606 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38607    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38608 #define $ac_func innocuous_$ac_func
38609
38610 /* System header to define __stub macros and hopefully few prototypes,
38611     which can conflict with char $ac_func (); below.
38612     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38613     <limits.h> exists even on freestanding compilers.  */
38614
38615 #ifdef __STDC__
38616 # include <limits.h>
38617 #else
38618 # include <assert.h>
38619 #endif
38620
38621 #undef $ac_func
38622
38623 /* Override any gcc2 internal prototype to avoid an error.  */
38624 #ifdef __cplusplus
38625 extern "C"
38626 {
38627 #endif
38628 /* We use char because int might match the return type of a gcc2
38629    builtin and then its argument prototype would still apply.  */
38630 char $ac_func ();
38631 /* The GNU C library defines this for functions which it implements
38632     to always fail with ENOSYS.  Some functions are actually named
38633     something starting with __ and the normal name is an alias.  */
38634 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38635 choke me
38636 #else
38637 char (*f) () = $ac_func;
38638 #endif
38639 #ifdef __cplusplus
38640 }
38641 #endif
38642
38643 int
38644 main ()
38645 {
38646 return f != $ac_func;
38647   ;
38648   return 0;
38649 }
38650 _ACEOF
38651 rm -f conftest.$ac_objext conftest$ac_exeext
38652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38653   (eval $ac_link) 2>conftest.er1
38654   ac_status=$?
38655   grep -v '^ *+' conftest.er1 >conftest.err
38656   rm -f conftest.er1
38657   cat conftest.err >&5
38658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38659   (exit $ac_status); } &&
38660          { ac_try='test -z "$ac_c_werror_flag"
38661                          || test ! -s conftest.err'
38662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38663   (eval $ac_try) 2>&5
38664   ac_status=$?
38665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38666   (exit $ac_status); }; } &&
38667          { ac_try='test -s conftest$ac_exeext'
38668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38669   (eval $ac_try) 2>&5
38670   ac_status=$?
38671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38672   (exit $ac_status); }; }; then
38673   eval "$as_ac_var=yes"
38674 else
38675   echo "$as_me: failed program was:" >&5
38676 sed 's/^/| /' conftest.$ac_ext >&5
38677
38678 eval "$as_ac_var=no"
38679 fi
38680 rm -f conftest.err conftest.$ac_objext \
38681       conftest$ac_exeext conftest.$ac_ext
38682 fi
38683 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38684 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38685 if test `eval echo '${'$as_ac_var'}'` = yes; then
38686   cat >>confdefs.h <<_ACEOF
38687 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38688 _ACEOF
38689  ice_have_closelog=yes
38690 fi
38691 done
38692
38693 if test "${ice_have_closelog}" = yes; then
38694 echo "$as_me:$LINENO: checking for closelog declaration in syslog.h" >&5
38695 echo $ECHO_N "checking for closelog declaration in syslog.h... $ECHO_C" >&6
38696 if test "${ice_cv_have_closelog_decl+set}" = set; then
38697   echo $ECHO_N "(cached) $ECHO_C" >&6
38698 else
38699
38700 ice_cv_have_closelog_decl=no
38701 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
38702 ice_re_word='(^|[^a-zA-Z0-9_])'
38703 for header in syslog.h; do
38704 # Check for ordinary declaration
38705 cat >conftest.$ac_ext <<_ACEOF
38706 /* confdefs.h.  */
38707 _ACEOF
38708 cat confdefs.h >>conftest.$ac_ext
38709 cat >>conftest.$ac_ext <<_ACEOF
38710 /* end confdefs.h.  */
38711 #include <$header>
38712
38713 _ACEOF
38714 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38715   $EGREP "${ice_re_word}closelog[       ]*\(" >/dev/null 2>&1; then
38716   ice_cv_have_closelog_decl=yes
38717 fi
38718 rm -f conftest*
38719
38720 if test "$ice_cv_have_closelog_decl" = yes; then
38721         break
38722 fi
38723 # Check for "fixed" declaration like "getpid _PARAMS((int))"
38724 cat >conftest.$ac_ext <<_ACEOF
38725 /* confdefs.h.  */
38726 _ACEOF
38727 cat confdefs.h >>conftest.$ac_ext
38728 cat >>conftest.$ac_ext <<_ACEOF
38729 /* end confdefs.h.  */
38730 #include <$header>
38731
38732 _ACEOF
38733 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38734   $EGREP "${ice_re_word}closelog[       ]*$ice_re_params\(\(" >/dev/null 2>&1; then
38735   ice_cv_have_closelog_decl=yes
38736 fi
38737 rm -f conftest*
38738
38739 if test "$ice_cv_have_closelog_decl" = yes; then
38740         break
38741 fi
38742 done
38743
38744 fi
38745
38746 echo "$as_me:$LINENO: result: $ice_cv_have_closelog_decl" >&5
38747 echo "${ECHO_T}$ice_cv_have_closelog_decl" >&6
38748 if test "$ice_cv_have_closelog_decl" = yes; then
38749
38750 cat >>confdefs.h <<_ACEOF
38751 #define HAVE_CLOSELOG_DECL 1
38752 _ACEOF
38753
38754 fi
38755 fi
38756
38757
38758 ice_have_connect=no
38759
38760 for ac_func in connect
38761 do
38762 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38763 echo "$as_me:$LINENO: checking for $ac_func" >&5
38764 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38765 if eval "test \"\${$as_ac_var+set}\" = set"; then
38766   echo $ECHO_N "(cached) $ECHO_C" >&6
38767 else
38768   cat >conftest.$ac_ext <<_ACEOF
38769 /* confdefs.h.  */
38770 _ACEOF
38771 cat confdefs.h >>conftest.$ac_ext
38772 cat >>conftest.$ac_ext <<_ACEOF
38773 /* end confdefs.h.  */
38774 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38775    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38776 #define $ac_func innocuous_$ac_func
38777
38778 /* System header to define __stub macros and hopefully few prototypes,
38779     which can conflict with char $ac_func (); below.
38780     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38781     <limits.h> exists even on freestanding compilers.  */
38782
38783 #ifdef __STDC__
38784 # include <limits.h>
38785 #else
38786 # include <assert.h>
38787 #endif
38788
38789 #undef $ac_func
38790
38791 /* Override any gcc2 internal prototype to avoid an error.  */
38792 #ifdef __cplusplus
38793 extern "C"
38794 {
38795 #endif
38796 /* We use char because int might match the return type of a gcc2
38797    builtin and then its argument prototype would still apply.  */
38798 char $ac_func ();
38799 /* The GNU C library defines this for functions which it implements
38800     to always fail with ENOSYS.  Some functions are actually named
38801     something starting with __ and the normal name is an alias.  */
38802 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38803 choke me
38804 #else
38805 char (*f) () = $ac_func;
38806 #endif
38807 #ifdef __cplusplus
38808 }
38809 #endif
38810
38811 int
38812 main ()
38813 {
38814 return f != $ac_func;
38815   ;
38816   return 0;
38817 }
38818 _ACEOF
38819 rm -f conftest.$ac_objext conftest$ac_exeext
38820 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38821   (eval $ac_link) 2>conftest.er1
38822   ac_status=$?
38823   grep -v '^ *+' conftest.er1 >conftest.err
38824   rm -f conftest.er1
38825   cat conftest.err >&5
38826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38827   (exit $ac_status); } &&
38828          { ac_try='test -z "$ac_c_werror_flag"
38829                          || test ! -s conftest.err'
38830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38831   (eval $ac_try) 2>&5
38832   ac_status=$?
38833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38834   (exit $ac_status); }; } &&
38835          { ac_try='test -s conftest$ac_exeext'
38836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38837   (eval $ac_try) 2>&5
38838   ac_status=$?
38839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38840   (exit $ac_status); }; }; then
38841   eval "$as_ac_var=yes"
38842 else
38843   echo "$as_me: failed program was:" >&5
38844 sed 's/^/| /' conftest.$ac_ext >&5
38845
38846 eval "$as_ac_var=no"
38847 fi
38848 rm -f conftest.err conftest.$ac_objext \
38849       conftest$ac_exeext conftest.$ac_ext
38850 fi
38851 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38852 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38853 if test `eval echo '${'$as_ac_var'}'` = yes; then
38854   cat >>confdefs.h <<_ACEOF
38855 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38856 _ACEOF
38857  ice_have_connect=yes
38858 fi
38859 done
38860
38861 if test "${ice_have_connect}" = yes; then
38862 echo "$as_me:$LINENO: checking for connect declaration in sys/types.h sys/socket.h" >&5
38863 echo $ECHO_N "checking for connect declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
38864 if test "${ice_cv_have_connect_decl+set}" = set; then
38865   echo $ECHO_N "(cached) $ECHO_C" >&6
38866 else
38867
38868 ice_cv_have_connect_decl=no
38869 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
38870 ice_re_word='(^|[^a-zA-Z0-9_])'
38871 for header in sys/types.h sys/socket.h; do
38872 # Check for ordinary declaration
38873 cat >conftest.$ac_ext <<_ACEOF
38874 /* confdefs.h.  */
38875 _ACEOF
38876 cat confdefs.h >>conftest.$ac_ext
38877 cat >>conftest.$ac_ext <<_ACEOF
38878 /* end confdefs.h.  */
38879 #include <$header>
38880
38881 _ACEOF
38882 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38883   $EGREP "${ice_re_word}connect[        ]*\(" >/dev/null 2>&1; then
38884   ice_cv_have_connect_decl=yes
38885 fi
38886 rm -f conftest*
38887
38888 if test "$ice_cv_have_connect_decl" = yes; then
38889         break
38890 fi
38891 # Check for "fixed" declaration like "getpid _PARAMS((int))"
38892 cat >conftest.$ac_ext <<_ACEOF
38893 /* confdefs.h.  */
38894 _ACEOF
38895 cat confdefs.h >>conftest.$ac_ext
38896 cat >>conftest.$ac_ext <<_ACEOF
38897 /* end confdefs.h.  */
38898 #include <$header>
38899
38900 _ACEOF
38901 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38902   $EGREP "${ice_re_word}connect[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
38903   ice_cv_have_connect_decl=yes
38904 fi
38905 rm -f conftest*
38906
38907 if test "$ice_cv_have_connect_decl" = yes; then
38908         break
38909 fi
38910 done
38911
38912 fi
38913
38914 echo "$as_me:$LINENO: result: $ice_cv_have_connect_decl" >&5
38915 echo "${ECHO_T}$ice_cv_have_connect_decl" >&6
38916 if test "$ice_cv_have_connect_decl" = yes; then
38917
38918 cat >>confdefs.h <<_ACEOF
38919 #define HAVE_CONNECT_DECL 1
38920 _ACEOF
38921
38922 fi
38923 fi
38924
38925
38926 ice_have_dbm_open=no
38927
38928 for ac_func in dbm_open
38929 do
38930 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38931 echo "$as_me:$LINENO: checking for $ac_func" >&5
38932 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38933 if eval "test \"\${$as_ac_var+set}\" = set"; then
38934   echo $ECHO_N "(cached) $ECHO_C" >&6
38935 else
38936   cat >conftest.$ac_ext <<_ACEOF
38937 /* confdefs.h.  */
38938 _ACEOF
38939 cat confdefs.h >>conftest.$ac_ext
38940 cat >>conftest.$ac_ext <<_ACEOF
38941 /* end confdefs.h.  */
38942 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38943    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38944 #define $ac_func innocuous_$ac_func
38945
38946 /* System header to define __stub macros and hopefully few prototypes,
38947     which can conflict with char $ac_func (); below.
38948     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38949     <limits.h> exists even on freestanding compilers.  */
38950
38951 #ifdef __STDC__
38952 # include <limits.h>
38953 #else
38954 # include <assert.h>
38955 #endif
38956
38957 #undef $ac_func
38958
38959 /* Override any gcc2 internal prototype to avoid an error.  */
38960 #ifdef __cplusplus
38961 extern "C"
38962 {
38963 #endif
38964 /* We use char because int might match the return type of a gcc2
38965    builtin and then its argument prototype would still apply.  */
38966 char $ac_func ();
38967 /* The GNU C library defines this for functions which it implements
38968     to always fail with ENOSYS.  Some functions are actually named
38969     something starting with __ and the normal name is an alias.  */
38970 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38971 choke me
38972 #else
38973 char (*f) () = $ac_func;
38974 #endif
38975 #ifdef __cplusplus
38976 }
38977 #endif
38978
38979 int
38980 main ()
38981 {
38982 return f != $ac_func;
38983   ;
38984   return 0;
38985 }
38986 _ACEOF
38987 rm -f conftest.$ac_objext conftest$ac_exeext
38988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38989   (eval $ac_link) 2>conftest.er1
38990   ac_status=$?
38991   grep -v '^ *+' conftest.er1 >conftest.err
38992   rm -f conftest.er1
38993   cat conftest.err >&5
38994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38995   (exit $ac_status); } &&
38996          { ac_try='test -z "$ac_c_werror_flag"
38997                          || test ! -s conftest.err'
38998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38999   (eval $ac_try) 2>&5
39000   ac_status=$?
39001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39002   (exit $ac_status); }; } &&
39003          { ac_try='test -s conftest$ac_exeext'
39004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39005   (eval $ac_try) 2>&5
39006   ac_status=$?
39007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39008   (exit $ac_status); }; }; then
39009   eval "$as_ac_var=yes"
39010 else
39011   echo "$as_me: failed program was:" >&5
39012 sed 's/^/| /' conftest.$ac_ext >&5
39013
39014 eval "$as_ac_var=no"
39015 fi
39016 rm -f conftest.err conftest.$ac_objext \
39017       conftest$ac_exeext conftest.$ac_ext
39018 fi
39019 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39020 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39021 if test `eval echo '${'$as_ac_var'}'` = yes; then
39022   cat >>confdefs.h <<_ACEOF
39023 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39024 _ACEOF
39025  ice_have_dbm_open=yes
39026 fi
39027 done
39028
39029 if test "${ice_have_dbm_open}" = yes; then
39030 echo "$as_me:$LINENO: checking for dbm_open declaration in ${DB_HEADER-no/db/header/file}" >&5
39031 echo $ECHO_N "checking for dbm_open declaration in ${DB_HEADER-no/db/header/file}... $ECHO_C" >&6
39032 if test "${ice_cv_have_dbm_open_decl+set}" = set; then
39033   echo $ECHO_N "(cached) $ECHO_C" >&6
39034 else
39035
39036 ice_cv_have_dbm_open_decl=no
39037 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
39038 ice_re_word='(^|[^a-zA-Z0-9_])'
39039 for header in ${DB_HEADER-no/db/header/file}; do
39040 # Check for ordinary declaration
39041 cat >conftest.$ac_ext <<_ACEOF
39042 /* confdefs.h.  */
39043 _ACEOF
39044 cat confdefs.h >>conftest.$ac_ext
39045 cat >>conftest.$ac_ext <<_ACEOF
39046 /* end confdefs.h.  */
39047 #include <$header>
39048
39049 _ACEOF
39050 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39051   $EGREP "${ice_re_word}dbm_open[       ]*\(" >/dev/null 2>&1; then
39052   ice_cv_have_dbm_open_decl=yes
39053 fi
39054 rm -f conftest*
39055
39056 if test "$ice_cv_have_dbm_open_decl" = yes; then
39057         break
39058 fi
39059 # Check for "fixed" declaration like "getpid _PARAMS((int))"
39060 cat >conftest.$ac_ext <<_ACEOF
39061 /* confdefs.h.  */
39062 _ACEOF
39063 cat confdefs.h >>conftest.$ac_ext
39064 cat >>conftest.$ac_ext <<_ACEOF
39065 /* end confdefs.h.  */
39066 #include <$header>
39067
39068 _ACEOF
39069 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39070   $EGREP "${ice_re_word}dbm_open[       ]*$ice_re_params\(\(" >/dev/null 2>&1; then
39071   ice_cv_have_dbm_open_decl=yes
39072 fi
39073 rm -f conftest*
39074
39075 if test "$ice_cv_have_dbm_open_decl" = yes; then
39076         break
39077 fi
39078 done
39079
39080 fi
39081
39082 echo "$as_me:$LINENO: result: $ice_cv_have_dbm_open_decl" >&5
39083 echo "${ECHO_T}$ice_cv_have_dbm_open_decl" >&6
39084 if test "$ice_cv_have_dbm_open_decl" = yes; then
39085
39086 cat >>confdefs.h <<_ACEOF
39087 #define HAVE_DBM_OPEN_DECL 1
39088 _ACEOF
39089
39090 fi
39091 fi
39092
39093
39094 for ac_func in endmntent
39095 do
39096 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39097 echo "$as_me:$LINENO: checking for $ac_func" >&5
39098 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39099 if eval "test \"\${$as_ac_var+set}\" = set"; then
39100   echo $ECHO_N "(cached) $ECHO_C" >&6
39101 else
39102   cat >conftest.$ac_ext <<_ACEOF
39103 /* confdefs.h.  */
39104 _ACEOF
39105 cat confdefs.h >>conftest.$ac_ext
39106 cat >>conftest.$ac_ext <<_ACEOF
39107 /* end confdefs.h.  */
39108 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39109    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39110 #define $ac_func innocuous_$ac_func
39111
39112 /* System header to define __stub macros and hopefully few prototypes,
39113     which can conflict with char $ac_func (); below.
39114     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39115     <limits.h> exists even on freestanding compilers.  */
39116
39117 #ifdef __STDC__
39118 # include <limits.h>
39119 #else
39120 # include <assert.h>
39121 #endif
39122
39123 #undef $ac_func
39124
39125 /* Override any gcc2 internal prototype to avoid an error.  */
39126 #ifdef __cplusplus
39127 extern "C"
39128 {
39129 #endif
39130 /* We use char because int might match the return type of a gcc2
39131    builtin and then its argument prototype would still apply.  */
39132 char $ac_func ();
39133 /* The GNU C library defines this for functions which it implements
39134     to always fail with ENOSYS.  Some functions are actually named
39135     something starting with __ and the normal name is an alias.  */
39136 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39137 choke me
39138 #else
39139 char (*f) () = $ac_func;
39140 #endif
39141 #ifdef __cplusplus
39142 }
39143 #endif
39144
39145 int
39146 main ()
39147 {
39148 return f != $ac_func;
39149   ;
39150   return 0;
39151 }
39152 _ACEOF
39153 rm -f conftest.$ac_objext conftest$ac_exeext
39154 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39155   (eval $ac_link) 2>conftest.er1
39156   ac_status=$?
39157   grep -v '^ *+' conftest.er1 >conftest.err
39158   rm -f conftest.er1
39159   cat conftest.err >&5
39160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39161   (exit $ac_status); } &&
39162          { ac_try='test -z "$ac_c_werror_flag"
39163                          || test ! -s conftest.err'
39164   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39165   (eval $ac_try) 2>&5
39166   ac_status=$?
39167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39168   (exit $ac_status); }; } &&
39169          { ac_try='test -s conftest$ac_exeext'
39170   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39171   (eval $ac_try) 2>&5
39172   ac_status=$?
39173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39174   (exit $ac_status); }; }; then
39175   eval "$as_ac_var=yes"
39176 else
39177   echo "$as_me: failed program was:" >&5
39178 sed 's/^/| /' conftest.$ac_ext >&5
39179
39180 eval "$as_ac_var=no"
39181 fi
39182 rm -f conftest.err conftest.$ac_objext \
39183       conftest$ac_exeext conftest.$ac_ext
39184 fi
39185 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39186 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39187 if test `eval echo '${'$as_ac_var'}'` = yes; then
39188   cat >>confdefs.h <<_ACEOF
39189 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39190 _ACEOF
39191
39192 fi
39193 done
39194
39195
39196 ice_have_fclose=no
39197
39198 for ac_func in fclose
39199 do
39200 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39201 echo "$as_me:$LINENO: checking for $ac_func" >&5
39202 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39203 if eval "test \"\${$as_ac_var+set}\" = set"; then
39204   echo $ECHO_N "(cached) $ECHO_C" >&6
39205 else
39206   cat >conftest.$ac_ext <<_ACEOF
39207 /* confdefs.h.  */
39208 _ACEOF
39209 cat confdefs.h >>conftest.$ac_ext
39210 cat >>conftest.$ac_ext <<_ACEOF
39211 /* end confdefs.h.  */
39212 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39213    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39214 #define $ac_func innocuous_$ac_func
39215
39216 /* System header to define __stub macros and hopefully few prototypes,
39217     which can conflict with char $ac_func (); below.
39218     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39219     <limits.h> exists even on freestanding compilers.  */
39220
39221 #ifdef __STDC__
39222 # include <limits.h>
39223 #else
39224 # include <assert.h>
39225 #endif
39226
39227 #undef $ac_func
39228
39229 /* Override any gcc2 internal prototype to avoid an error.  */
39230 #ifdef __cplusplus
39231 extern "C"
39232 {
39233 #endif
39234 /* We use char because int might match the return type of a gcc2
39235    builtin and then its argument prototype would still apply.  */
39236 char $ac_func ();
39237 /* The GNU C library defines this for functions which it implements
39238     to always fail with ENOSYS.  Some functions are actually named
39239     something starting with __ and the normal name is an alias.  */
39240 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39241 choke me
39242 #else
39243 char (*f) () = $ac_func;
39244 #endif
39245 #ifdef __cplusplus
39246 }
39247 #endif
39248
39249 int
39250 main ()
39251 {
39252 return f != $ac_func;
39253   ;
39254   return 0;
39255 }
39256 _ACEOF
39257 rm -f conftest.$ac_objext conftest$ac_exeext
39258 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39259   (eval $ac_link) 2>conftest.er1
39260   ac_status=$?
39261   grep -v '^ *+' conftest.er1 >conftest.err
39262   rm -f conftest.er1
39263   cat conftest.err >&5
39264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39265   (exit $ac_status); } &&
39266          { ac_try='test -z "$ac_c_werror_flag"
39267                          || test ! -s conftest.err'
39268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39269   (eval $ac_try) 2>&5
39270   ac_status=$?
39271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39272   (exit $ac_status); }; } &&
39273          { ac_try='test -s conftest$ac_exeext'
39274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39275   (eval $ac_try) 2>&5
39276   ac_status=$?
39277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39278   (exit $ac_status); }; }; then
39279   eval "$as_ac_var=yes"
39280 else
39281   echo "$as_me: failed program was:" >&5
39282 sed 's/^/| /' conftest.$ac_ext >&5
39283
39284 eval "$as_ac_var=no"
39285 fi
39286 rm -f conftest.err conftest.$ac_objext \
39287       conftest$ac_exeext conftest.$ac_ext
39288 fi
39289 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39290 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39291 if test `eval echo '${'$as_ac_var'}'` = yes; then
39292   cat >>confdefs.h <<_ACEOF
39293 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39294 _ACEOF
39295  ice_have_fclose=yes
39296 fi
39297 done
39298
39299 if test "${ice_have_fclose}" = yes; then
39300 echo "$as_me:$LINENO: checking for fclose declaration in stdio.h" >&5
39301 echo $ECHO_N "checking for fclose declaration in stdio.h... $ECHO_C" >&6
39302 if test "${ice_cv_have_fclose_decl+set}" = set; then
39303   echo $ECHO_N "(cached) $ECHO_C" >&6
39304 else
39305
39306 ice_cv_have_fclose_decl=no
39307 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
39308 ice_re_word='(^|[^a-zA-Z0-9_])'
39309 for header in stdio.h; do
39310 # Check for ordinary declaration
39311 cat >conftest.$ac_ext <<_ACEOF
39312 /* confdefs.h.  */
39313 _ACEOF
39314 cat confdefs.h >>conftest.$ac_ext
39315 cat >>conftest.$ac_ext <<_ACEOF
39316 /* end confdefs.h.  */
39317 #include <$header>
39318
39319 _ACEOF
39320 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39321   $EGREP "${ice_re_word}fclose[         ]*\(" >/dev/null 2>&1; then
39322   ice_cv_have_fclose_decl=yes
39323 fi
39324 rm -f conftest*
39325
39326 if test "$ice_cv_have_fclose_decl" = yes; then
39327         break
39328 fi
39329 # Check for "fixed" declaration like "getpid _PARAMS((int))"
39330 cat >conftest.$ac_ext <<_ACEOF
39331 /* confdefs.h.  */
39332 _ACEOF
39333 cat confdefs.h >>conftest.$ac_ext
39334 cat >>conftest.$ac_ext <<_ACEOF
39335 /* end confdefs.h.  */
39336 #include <$header>
39337
39338 _ACEOF
39339 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39340   $EGREP "${ice_re_word}fclose[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
39341   ice_cv_have_fclose_decl=yes
39342 fi
39343 rm -f conftest*
39344
39345 if test "$ice_cv_have_fclose_decl" = yes; then
39346         break
39347 fi
39348 done
39349
39350 fi
39351
39352 echo "$as_me:$LINENO: result: $ice_cv_have_fclose_decl" >&5
39353 echo "${ECHO_T}$ice_cv_have_fclose_decl" >&6
39354 if test "$ice_cv_have_fclose_decl" = yes; then
39355
39356 cat >>confdefs.h <<_ACEOF
39357 #define HAVE_FCLOSE_DECL 1
39358 _ACEOF
39359
39360 fi
39361 fi
39362
39363
39364 ice_have_fflush=no
39365
39366 for ac_func in fflush
39367 do
39368 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39369 echo "$as_me:$LINENO: checking for $ac_func" >&5
39370 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39371 if eval "test \"\${$as_ac_var+set}\" = set"; then
39372   echo $ECHO_N "(cached) $ECHO_C" >&6
39373 else
39374   cat >conftest.$ac_ext <<_ACEOF
39375 /* confdefs.h.  */
39376 _ACEOF
39377 cat confdefs.h >>conftest.$ac_ext
39378 cat >>conftest.$ac_ext <<_ACEOF
39379 /* end confdefs.h.  */
39380 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39381    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39382 #define $ac_func innocuous_$ac_func
39383
39384 /* System header to define __stub macros and hopefully few prototypes,
39385     which can conflict with char $ac_func (); below.
39386     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39387     <limits.h> exists even on freestanding compilers.  */
39388
39389 #ifdef __STDC__
39390 # include <limits.h>
39391 #else
39392 # include <assert.h>
39393 #endif
39394
39395 #undef $ac_func
39396
39397 /* Override any gcc2 internal prototype to avoid an error.  */
39398 #ifdef __cplusplus
39399 extern "C"
39400 {
39401 #endif
39402 /* We use char because int might match the return type of a gcc2
39403    builtin and then its argument prototype would still apply.  */
39404 char $ac_func ();
39405 /* The GNU C library defines this for functions which it implements
39406     to always fail with ENOSYS.  Some functions are actually named
39407     something starting with __ and the normal name is an alias.  */
39408 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39409 choke me
39410 #else
39411 char (*f) () = $ac_func;
39412 #endif
39413 #ifdef __cplusplus
39414 }
39415 #endif
39416
39417 int
39418 main ()
39419 {
39420 return f != $ac_func;
39421   ;
39422   return 0;
39423 }
39424 _ACEOF
39425 rm -f conftest.$ac_objext conftest$ac_exeext
39426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39427   (eval $ac_link) 2>conftest.er1
39428   ac_status=$?
39429   grep -v '^ *+' conftest.er1 >conftest.err
39430   rm -f conftest.er1
39431   cat conftest.err >&5
39432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39433   (exit $ac_status); } &&
39434          { ac_try='test -z "$ac_c_werror_flag"
39435                          || test ! -s conftest.err'
39436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39437   (eval $ac_try) 2>&5
39438   ac_status=$?
39439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39440   (exit $ac_status); }; } &&
39441          { ac_try='test -s conftest$ac_exeext'
39442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39443   (eval $ac_try) 2>&5
39444   ac_status=$?
39445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39446   (exit $ac_status); }; }; then
39447   eval "$as_ac_var=yes"
39448 else
39449   echo "$as_me: failed program was:" >&5
39450 sed 's/^/| /' conftest.$ac_ext >&5
39451
39452 eval "$as_ac_var=no"
39453 fi
39454 rm -f conftest.err conftest.$ac_objext \
39455       conftest$ac_exeext conftest.$ac_ext
39456 fi
39457 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39458 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39459 if test `eval echo '${'$as_ac_var'}'` = yes; then
39460   cat >>confdefs.h <<_ACEOF
39461 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39462 _ACEOF
39463  ice_have_fflush=yes
39464 fi
39465 done
39466
39467 if test "${ice_have_fflush}" = yes; then
39468 echo "$as_me:$LINENO: checking for fflush declaration in stdio.h" >&5
39469 echo $ECHO_N "checking for fflush declaration in stdio.h... $ECHO_C" >&6
39470 if test "${ice_cv_have_fflush_decl+set}" = set; then
39471   echo $ECHO_N "(cached) $ECHO_C" >&6
39472 else
39473
39474 ice_cv_have_fflush_decl=no
39475 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
39476 ice_re_word='(^|[^a-zA-Z0-9_])'
39477 for header in stdio.h; do
39478 # Check for ordinary declaration
39479 cat >conftest.$ac_ext <<_ACEOF
39480 /* confdefs.h.  */
39481 _ACEOF
39482 cat confdefs.h >>conftest.$ac_ext
39483 cat >>conftest.$ac_ext <<_ACEOF
39484 /* end confdefs.h.  */
39485 #include <$header>
39486
39487 _ACEOF
39488 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39489   $EGREP "${ice_re_word}fflush[         ]*\(" >/dev/null 2>&1; then
39490   ice_cv_have_fflush_decl=yes
39491 fi
39492 rm -f conftest*
39493
39494 if test "$ice_cv_have_fflush_decl" = yes; then
39495         break
39496 fi
39497 # Check for "fixed" declaration like "getpid _PARAMS((int))"
39498 cat >conftest.$ac_ext <<_ACEOF
39499 /* confdefs.h.  */
39500 _ACEOF
39501 cat confdefs.h >>conftest.$ac_ext
39502 cat >>conftest.$ac_ext <<_ACEOF
39503 /* end confdefs.h.  */
39504 #include <$header>
39505
39506 _ACEOF
39507 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39508   $EGREP "${ice_re_word}fflush[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
39509   ice_cv_have_fflush_decl=yes
39510 fi
39511 rm -f conftest*
39512
39513 if test "$ice_cv_have_fflush_decl" = yes; then
39514         break
39515 fi
39516 done
39517
39518 fi
39519
39520 echo "$as_me:$LINENO: result: $ice_cv_have_fflush_decl" >&5
39521 echo "${ECHO_T}$ice_cv_have_fflush_decl" >&6
39522 if test "$ice_cv_have_fflush_decl" = yes; then
39523
39524 cat >>confdefs.h <<_ACEOF
39525 #define HAVE_FFLUSH_DECL 1
39526 _ACEOF
39527
39528 fi
39529 fi
39530
39531
39532 ice_have_flock=no
39533
39534 for ac_func in flock
39535 do
39536 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39537 echo "$as_me:$LINENO: checking for $ac_func" >&5
39538 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39539 if eval "test \"\${$as_ac_var+set}\" = set"; then
39540   echo $ECHO_N "(cached) $ECHO_C" >&6
39541 else
39542   cat >conftest.$ac_ext <<_ACEOF
39543 /* confdefs.h.  */
39544 _ACEOF
39545 cat confdefs.h >>conftest.$ac_ext
39546 cat >>conftest.$ac_ext <<_ACEOF
39547 /* end confdefs.h.  */
39548 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39549    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39550 #define $ac_func innocuous_$ac_func
39551
39552 /* System header to define __stub macros and hopefully few prototypes,
39553     which can conflict with char $ac_func (); below.
39554     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39555     <limits.h> exists even on freestanding compilers.  */
39556
39557 #ifdef __STDC__
39558 # include <limits.h>
39559 #else
39560 # include <assert.h>
39561 #endif
39562
39563 #undef $ac_func
39564
39565 /* Override any gcc2 internal prototype to avoid an error.  */
39566 #ifdef __cplusplus
39567 extern "C"
39568 {
39569 #endif
39570 /* We use char because int might match the return type of a gcc2
39571    builtin and then its argument prototype would still apply.  */
39572 char $ac_func ();
39573 /* The GNU C library defines this for functions which it implements
39574     to always fail with ENOSYS.  Some functions are actually named
39575     something starting with __ and the normal name is an alias.  */
39576 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39577 choke me
39578 #else
39579 char (*f) () = $ac_func;
39580 #endif
39581 #ifdef __cplusplus
39582 }
39583 #endif
39584
39585 int
39586 main ()
39587 {
39588 return f != $ac_func;
39589   ;
39590   return 0;
39591 }
39592 _ACEOF
39593 rm -f conftest.$ac_objext conftest$ac_exeext
39594 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39595   (eval $ac_link) 2>conftest.er1
39596   ac_status=$?
39597   grep -v '^ *+' conftest.er1 >conftest.err
39598   rm -f conftest.er1
39599   cat conftest.err >&5
39600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39601   (exit $ac_status); } &&
39602          { ac_try='test -z "$ac_c_werror_flag"
39603                          || test ! -s conftest.err'
39604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39605   (eval $ac_try) 2>&5
39606   ac_status=$?
39607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39608   (exit $ac_status); }; } &&
39609          { ac_try='test -s conftest$ac_exeext'
39610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39611   (eval $ac_try) 2>&5
39612   ac_status=$?
39613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39614   (exit $ac_status); }; }; then
39615   eval "$as_ac_var=yes"
39616 else
39617   echo "$as_me: failed program was:" >&5
39618 sed 's/^/| /' conftest.$ac_ext >&5
39619
39620 eval "$as_ac_var=no"
39621 fi
39622 rm -f conftest.err conftest.$ac_objext \
39623       conftest$ac_exeext conftest.$ac_ext
39624 fi
39625 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39626 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39627 if test `eval echo '${'$as_ac_var'}'` = yes; then
39628   cat >>confdefs.h <<_ACEOF
39629 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39630 _ACEOF
39631  ice_have_flock=yes
39632 fi
39633 done
39634
39635 if test "${ice_have_flock}" = yes; then
39636 echo "$as_me:$LINENO: checking for flock declaration in sys/file.h" >&5
39637 echo $ECHO_N "checking for flock declaration in sys/file.h... $ECHO_C" >&6
39638 if test "${ice_cv_have_flock_decl+set}" = set; then
39639   echo $ECHO_N "(cached) $ECHO_C" >&6
39640 else
39641
39642 ice_cv_have_flock_decl=no
39643 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
39644 ice_re_word='(^|[^a-zA-Z0-9_])'
39645 for header in sys/file.h; do
39646 # Check for ordinary declaration
39647 cat >conftest.$ac_ext <<_ACEOF
39648 /* confdefs.h.  */
39649 _ACEOF
39650 cat confdefs.h >>conftest.$ac_ext
39651 cat >>conftest.$ac_ext <<_ACEOF
39652 /* end confdefs.h.  */
39653 #include <$header>
39654
39655 _ACEOF
39656 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39657   $EGREP "${ice_re_word}flock[  ]*\(" >/dev/null 2>&1; then
39658   ice_cv_have_flock_decl=yes
39659 fi
39660 rm -f conftest*
39661
39662 if test "$ice_cv_have_flock_decl" = yes; then
39663         break
39664 fi
39665 # Check for "fixed" declaration like "getpid _PARAMS((int))"
39666 cat >conftest.$ac_ext <<_ACEOF
39667 /* confdefs.h.  */
39668 _ACEOF
39669 cat confdefs.h >>conftest.$ac_ext
39670 cat >>conftest.$ac_ext <<_ACEOF
39671 /* end confdefs.h.  */
39672 #include <$header>
39673
39674 _ACEOF
39675 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39676   $EGREP "${ice_re_word}flock[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
39677   ice_cv_have_flock_decl=yes
39678 fi
39679 rm -f conftest*
39680
39681 if test "$ice_cv_have_flock_decl" = yes; then
39682         break
39683 fi
39684 done
39685
39686 fi
39687
39688 echo "$as_me:$LINENO: result: $ice_cv_have_flock_decl" >&5
39689 echo "${ECHO_T}$ice_cv_have_flock_decl" >&6
39690 if test "$ice_cv_have_flock_decl" = yes; then
39691
39692 cat >>confdefs.h <<_ACEOF
39693 #define HAVE_FLOCK_DECL 1
39694 _ACEOF
39695
39696 fi
39697 fi
39698
39699
39700 ice_have_fprintf=no
39701
39702 for ac_func in fprintf
39703 do
39704 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39705 echo "$as_me:$LINENO: checking for $ac_func" >&5
39706 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39707 if eval "test \"\${$as_ac_var+set}\" = set"; then
39708   echo $ECHO_N "(cached) $ECHO_C" >&6
39709 else
39710   cat >conftest.$ac_ext <<_ACEOF
39711 /* confdefs.h.  */
39712 _ACEOF
39713 cat confdefs.h >>conftest.$ac_ext
39714 cat >>conftest.$ac_ext <<_ACEOF
39715 /* end confdefs.h.  */
39716 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39717    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39718 #define $ac_func innocuous_$ac_func
39719
39720 /* System header to define __stub macros and hopefully few prototypes,
39721     which can conflict with char $ac_func (); below.
39722     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39723     <limits.h> exists even on freestanding compilers.  */
39724
39725 #ifdef __STDC__
39726 # include <limits.h>
39727 #else
39728 # include <assert.h>
39729 #endif
39730
39731 #undef $ac_func
39732
39733 /* Override any gcc2 internal prototype to avoid an error.  */
39734 #ifdef __cplusplus
39735 extern "C"
39736 {
39737 #endif
39738 /* We use char because int might match the return type of a gcc2
39739    builtin and then its argument prototype would still apply.  */
39740 char $ac_func ();
39741 /* The GNU C library defines this for functions which it implements
39742     to always fail with ENOSYS.  Some functions are actually named
39743     something starting with __ and the normal name is an alias.  */
39744 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39745 choke me
39746 #else
39747 char (*f) () = $ac_func;
39748 #endif
39749 #ifdef __cplusplus
39750 }
39751 #endif
39752
39753 int
39754 main ()
39755 {
39756 return f != $ac_func;
39757   ;
39758   return 0;
39759 }
39760 _ACEOF
39761 rm -f conftest.$ac_objext conftest$ac_exeext
39762 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39763   (eval $ac_link) 2>conftest.er1
39764   ac_status=$?
39765   grep -v '^ *+' conftest.er1 >conftest.err
39766   rm -f conftest.er1
39767   cat conftest.err >&5
39768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39769   (exit $ac_status); } &&
39770          { ac_try='test -z "$ac_c_werror_flag"
39771                          || test ! -s conftest.err'
39772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39773   (eval $ac_try) 2>&5
39774   ac_status=$?
39775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39776   (exit $ac_status); }; } &&
39777          { ac_try='test -s conftest$ac_exeext'
39778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39779   (eval $ac_try) 2>&5
39780   ac_status=$?
39781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39782   (exit $ac_status); }; }; then
39783   eval "$as_ac_var=yes"
39784 else
39785   echo "$as_me: failed program was:" >&5
39786 sed 's/^/| /' conftest.$ac_ext >&5
39787
39788 eval "$as_ac_var=no"
39789 fi
39790 rm -f conftest.err conftest.$ac_objext \
39791       conftest$ac_exeext conftest.$ac_ext
39792 fi
39793 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39794 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39795 if test `eval echo '${'$as_ac_var'}'` = yes; then
39796   cat >>confdefs.h <<_ACEOF
39797 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39798 _ACEOF
39799  ice_have_fprintf=yes
39800 fi
39801 done
39802
39803 if test "${ice_have_fprintf}" = yes; then
39804 echo "$as_me:$LINENO: checking for fprintf declaration in stdio.h" >&5
39805 echo $ECHO_N "checking for fprintf declaration in stdio.h... $ECHO_C" >&6
39806 if test "${ice_cv_have_fprintf_decl+set}" = set; then
39807   echo $ECHO_N "(cached) $ECHO_C" >&6
39808 else
39809
39810 ice_cv_have_fprintf_decl=no
39811 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
39812 ice_re_word='(^|[^a-zA-Z0-9_])'
39813 for header in stdio.h; do
39814 # Check for ordinary declaration
39815 cat >conftest.$ac_ext <<_ACEOF
39816 /* confdefs.h.  */
39817 _ACEOF
39818 cat confdefs.h >>conftest.$ac_ext
39819 cat >>conftest.$ac_ext <<_ACEOF
39820 /* end confdefs.h.  */
39821 #include <$header>
39822
39823 _ACEOF
39824 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39825   $EGREP "${ice_re_word}fprintf[        ]*\(" >/dev/null 2>&1; then
39826   ice_cv_have_fprintf_decl=yes
39827 fi
39828 rm -f conftest*
39829
39830 if test "$ice_cv_have_fprintf_decl" = yes; then
39831         break
39832 fi
39833 # Check for "fixed" declaration like "getpid _PARAMS((int))"
39834 cat >conftest.$ac_ext <<_ACEOF
39835 /* confdefs.h.  */
39836 _ACEOF
39837 cat confdefs.h >>conftest.$ac_ext
39838 cat >>conftest.$ac_ext <<_ACEOF
39839 /* end confdefs.h.  */
39840 #include <$header>
39841
39842 _ACEOF
39843 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39844   $EGREP "${ice_re_word}fprintf[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
39845   ice_cv_have_fprintf_decl=yes
39846 fi
39847 rm -f conftest*
39848
39849 if test "$ice_cv_have_fprintf_decl" = yes; then
39850         break
39851 fi
39852 done
39853
39854 fi
39855
39856 echo "$as_me:$LINENO: result: $ice_cv_have_fprintf_decl" >&5
39857 echo "${ECHO_T}$ice_cv_have_fprintf_decl" >&6
39858 if test "$ice_cv_have_fprintf_decl" = yes; then
39859
39860 cat >>confdefs.h <<_ACEOF
39861 #define HAVE_FPRINTF_DECL 1
39862 _ACEOF
39863
39864 fi
39865 fi
39866
39867
39868 ice_have_fputc=no
39869
39870 for ac_func in fputc
39871 do
39872 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39873 echo "$as_me:$LINENO: checking for $ac_func" >&5
39874 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39875 if eval "test \"\${$as_ac_var+set}\" = set"; then
39876   echo $ECHO_N "(cached) $ECHO_C" >&6
39877 else
39878   cat >conftest.$ac_ext <<_ACEOF
39879 /* confdefs.h.  */
39880 _ACEOF
39881 cat confdefs.h >>conftest.$ac_ext
39882 cat >>conftest.$ac_ext <<_ACEOF
39883 /* end confdefs.h.  */
39884 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39885    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39886 #define $ac_func innocuous_$ac_func
39887
39888 /* System header to define __stub macros and hopefully few prototypes,
39889     which can conflict with char $ac_func (); below.
39890     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39891     <limits.h> exists even on freestanding compilers.  */
39892
39893 #ifdef __STDC__
39894 # include <limits.h>
39895 #else
39896 # include <assert.h>
39897 #endif
39898
39899 #undef $ac_func
39900
39901 /* Override any gcc2 internal prototype to avoid an error.  */
39902 #ifdef __cplusplus
39903 extern "C"
39904 {
39905 #endif
39906 /* We use char because int might match the return type of a gcc2
39907    builtin and then its argument prototype would still apply.  */
39908 char $ac_func ();
39909 /* The GNU C library defines this for functions which it implements
39910     to always fail with ENOSYS.  Some functions are actually named
39911     something starting with __ and the normal name is an alias.  */
39912 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39913 choke me
39914 #else
39915 char (*f) () = $ac_func;
39916 #endif
39917 #ifdef __cplusplus
39918 }
39919 #endif
39920
39921 int
39922 main ()
39923 {
39924 return f != $ac_func;
39925   ;
39926   return 0;
39927 }
39928 _ACEOF
39929 rm -f conftest.$ac_objext conftest$ac_exeext
39930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39931   (eval $ac_link) 2>conftest.er1
39932   ac_status=$?
39933   grep -v '^ *+' conftest.er1 >conftest.err
39934   rm -f conftest.er1
39935   cat conftest.err >&5
39936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39937   (exit $ac_status); } &&
39938          { ac_try='test -z "$ac_c_werror_flag"
39939                          || test ! -s conftest.err'
39940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39941   (eval $ac_try) 2>&5
39942   ac_status=$?
39943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39944   (exit $ac_status); }; } &&
39945          { ac_try='test -s conftest$ac_exeext'
39946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39947   (eval $ac_try) 2>&5
39948   ac_status=$?
39949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39950   (exit $ac_status); }; }; then
39951   eval "$as_ac_var=yes"
39952 else
39953   echo "$as_me: failed program was:" >&5
39954 sed 's/^/| /' conftest.$ac_ext >&5
39955
39956 eval "$as_ac_var=no"
39957 fi
39958 rm -f conftest.err conftest.$ac_objext \
39959       conftest$ac_exeext conftest.$ac_ext
39960 fi
39961 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39962 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39963 if test `eval echo '${'$as_ac_var'}'` = yes; then
39964   cat >>confdefs.h <<_ACEOF
39965 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39966 _ACEOF
39967  ice_have_fputc=yes
39968 fi
39969 done
39970
39971 if test "${ice_have_fputc}" = yes; then
39972 echo "$as_me:$LINENO: checking for fputc declaration in stdio.h" >&5
39973 echo $ECHO_N "checking for fputc declaration in stdio.h... $ECHO_C" >&6
39974 if test "${ice_cv_have_fputc_decl+set}" = set; then
39975   echo $ECHO_N "(cached) $ECHO_C" >&6
39976 else
39977
39978 ice_cv_have_fputc_decl=no
39979 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
39980 ice_re_word='(^|[^a-zA-Z0-9_])'
39981 for header in stdio.h; do
39982 # Check for ordinary declaration
39983 cat >conftest.$ac_ext <<_ACEOF
39984 /* confdefs.h.  */
39985 _ACEOF
39986 cat confdefs.h >>conftest.$ac_ext
39987 cat >>conftest.$ac_ext <<_ACEOF
39988 /* end confdefs.h.  */
39989 #include <$header>
39990
39991 _ACEOF
39992 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39993   $EGREP "${ice_re_word}fputc[  ]*\(" >/dev/null 2>&1; then
39994   ice_cv_have_fputc_decl=yes
39995 fi
39996 rm -f conftest*
39997
39998 if test "$ice_cv_have_fputc_decl" = yes; then
39999         break
40000 fi
40001 # Check for "fixed" declaration like "getpid _PARAMS((int))"
40002 cat >conftest.$ac_ext <<_ACEOF
40003 /* confdefs.h.  */
40004 _ACEOF
40005 cat confdefs.h >>conftest.$ac_ext
40006 cat >>conftest.$ac_ext <<_ACEOF
40007 /* end confdefs.h.  */
40008 #include <$header>
40009
40010 _ACEOF
40011 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40012   $EGREP "${ice_re_word}fputc[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
40013   ice_cv_have_fputc_decl=yes
40014 fi
40015 rm -f conftest*
40016
40017 if test "$ice_cv_have_fputc_decl" = yes; then
40018         break
40019 fi
40020 done
40021
40022 fi
40023
40024 echo "$as_me:$LINENO: result: $ice_cv_have_fputc_decl" >&5
40025 echo "${ECHO_T}$ice_cv_have_fputc_decl" >&6
40026 if test "$ice_cv_have_fputc_decl" = yes; then
40027
40028 cat >>confdefs.h <<_ACEOF
40029 #define HAVE_FPUTC_DECL 1
40030 _ACEOF
40031
40032 fi
40033 fi
40034
40035
40036 ice_have_fputs=no
40037
40038 for ac_func in fputs
40039 do
40040 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40041 echo "$as_me:$LINENO: checking for $ac_func" >&5
40042 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40043 if eval "test \"\${$as_ac_var+set}\" = set"; then
40044   echo $ECHO_N "(cached) $ECHO_C" >&6
40045 else
40046   cat >conftest.$ac_ext <<_ACEOF
40047 /* confdefs.h.  */
40048 _ACEOF
40049 cat confdefs.h >>conftest.$ac_ext
40050 cat >>conftest.$ac_ext <<_ACEOF
40051 /* end confdefs.h.  */
40052 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40053    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40054 #define $ac_func innocuous_$ac_func
40055
40056 /* System header to define __stub macros and hopefully few prototypes,
40057     which can conflict with char $ac_func (); below.
40058     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40059     <limits.h> exists even on freestanding compilers.  */
40060
40061 #ifdef __STDC__
40062 # include <limits.h>
40063 #else
40064 # include <assert.h>
40065 #endif
40066
40067 #undef $ac_func
40068
40069 /* Override any gcc2 internal prototype to avoid an error.  */
40070 #ifdef __cplusplus
40071 extern "C"
40072 {
40073 #endif
40074 /* We use char because int might match the return type of a gcc2
40075    builtin and then its argument prototype would still apply.  */
40076 char $ac_func ();
40077 /* The GNU C library defines this for functions which it implements
40078     to always fail with ENOSYS.  Some functions are actually named
40079     something starting with __ and the normal name is an alias.  */
40080 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40081 choke me
40082 #else
40083 char (*f) () = $ac_func;
40084 #endif
40085 #ifdef __cplusplus
40086 }
40087 #endif
40088
40089 int
40090 main ()
40091 {
40092 return f != $ac_func;
40093   ;
40094   return 0;
40095 }
40096 _ACEOF
40097 rm -f conftest.$ac_objext conftest$ac_exeext
40098 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40099   (eval $ac_link) 2>conftest.er1
40100   ac_status=$?
40101   grep -v '^ *+' conftest.er1 >conftest.err
40102   rm -f conftest.er1
40103   cat conftest.err >&5
40104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40105   (exit $ac_status); } &&
40106          { ac_try='test -z "$ac_c_werror_flag"
40107                          || test ! -s conftest.err'
40108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40109   (eval $ac_try) 2>&5
40110   ac_status=$?
40111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40112   (exit $ac_status); }; } &&
40113          { ac_try='test -s conftest$ac_exeext'
40114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40115   (eval $ac_try) 2>&5
40116   ac_status=$?
40117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40118   (exit $ac_status); }; }; then
40119   eval "$as_ac_var=yes"
40120 else
40121   echo "$as_me: failed program was:" >&5
40122 sed 's/^/| /' conftest.$ac_ext >&5
40123
40124 eval "$as_ac_var=no"
40125 fi
40126 rm -f conftest.err conftest.$ac_objext \
40127       conftest$ac_exeext conftest.$ac_ext
40128 fi
40129 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40130 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40131 if test `eval echo '${'$as_ac_var'}'` = yes; then
40132   cat >>confdefs.h <<_ACEOF
40133 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40134 _ACEOF
40135  ice_have_fputs=yes
40136 fi
40137 done
40138
40139 if test "${ice_have_fputs}" = yes; then
40140 echo "$as_me:$LINENO: checking for fputs declaration in stdio.h" >&5
40141 echo $ECHO_N "checking for fputs declaration in stdio.h... $ECHO_C" >&6
40142 if test "${ice_cv_have_fputs_decl+set}" = set; then
40143   echo $ECHO_N "(cached) $ECHO_C" >&6
40144 else
40145
40146 ice_cv_have_fputs_decl=no
40147 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
40148 ice_re_word='(^|[^a-zA-Z0-9_])'
40149 for header in stdio.h; do
40150 # Check for ordinary declaration
40151 cat >conftest.$ac_ext <<_ACEOF
40152 /* confdefs.h.  */
40153 _ACEOF
40154 cat confdefs.h >>conftest.$ac_ext
40155 cat >>conftest.$ac_ext <<_ACEOF
40156 /* end confdefs.h.  */
40157 #include <$header>
40158
40159 _ACEOF
40160 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40161   $EGREP "${ice_re_word}fputs[  ]*\(" >/dev/null 2>&1; then
40162   ice_cv_have_fputs_decl=yes
40163 fi
40164 rm -f conftest*
40165
40166 if test "$ice_cv_have_fputs_decl" = yes; then
40167         break
40168 fi
40169 # Check for "fixed" declaration like "getpid _PARAMS((int))"
40170 cat >conftest.$ac_ext <<_ACEOF
40171 /* confdefs.h.  */
40172 _ACEOF
40173 cat confdefs.h >>conftest.$ac_ext
40174 cat >>conftest.$ac_ext <<_ACEOF
40175 /* end confdefs.h.  */
40176 #include <$header>
40177
40178 _ACEOF
40179 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40180   $EGREP "${ice_re_word}fputs[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
40181   ice_cv_have_fputs_decl=yes
40182 fi
40183 rm -f conftest*
40184
40185 if test "$ice_cv_have_fputs_decl" = yes; then
40186         break
40187 fi
40188 done
40189
40190 fi
40191
40192 echo "$as_me:$LINENO: result: $ice_cv_have_fputs_decl" >&5
40193 echo "${ECHO_T}$ice_cv_have_fputs_decl" >&6
40194 if test "$ice_cv_have_fputs_decl" = yes; then
40195
40196 cat >>confdefs.h <<_ACEOF
40197 #define HAVE_FPUTS_DECL 1
40198 _ACEOF
40199
40200 fi
40201 fi
40202
40203
40204 ice_have_fread=no
40205
40206 for ac_func in fread
40207 do
40208 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40209 echo "$as_me:$LINENO: checking for $ac_func" >&5
40210 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40211 if eval "test \"\${$as_ac_var+set}\" = set"; then
40212   echo $ECHO_N "(cached) $ECHO_C" >&6
40213 else
40214   cat >conftest.$ac_ext <<_ACEOF
40215 /* confdefs.h.  */
40216 _ACEOF
40217 cat confdefs.h >>conftest.$ac_ext
40218 cat >>conftest.$ac_ext <<_ACEOF
40219 /* end confdefs.h.  */
40220 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40221    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40222 #define $ac_func innocuous_$ac_func
40223
40224 /* System header to define __stub macros and hopefully few prototypes,
40225     which can conflict with char $ac_func (); below.
40226     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40227     <limits.h> exists even on freestanding compilers.  */
40228
40229 #ifdef __STDC__
40230 # include <limits.h>
40231 #else
40232 # include <assert.h>
40233 #endif
40234
40235 #undef $ac_func
40236
40237 /* Override any gcc2 internal prototype to avoid an error.  */
40238 #ifdef __cplusplus
40239 extern "C"
40240 {
40241 #endif
40242 /* We use char because int might match the return type of a gcc2
40243    builtin and then its argument prototype would still apply.  */
40244 char $ac_func ();
40245 /* The GNU C library defines this for functions which it implements
40246     to always fail with ENOSYS.  Some functions are actually named
40247     something starting with __ and the normal name is an alias.  */
40248 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40249 choke me
40250 #else
40251 char (*f) () = $ac_func;
40252 #endif
40253 #ifdef __cplusplus
40254 }
40255 #endif
40256
40257 int
40258 main ()
40259 {
40260 return f != $ac_func;
40261   ;
40262   return 0;
40263 }
40264 _ACEOF
40265 rm -f conftest.$ac_objext conftest$ac_exeext
40266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40267   (eval $ac_link) 2>conftest.er1
40268   ac_status=$?
40269   grep -v '^ *+' conftest.er1 >conftest.err
40270   rm -f conftest.er1
40271   cat conftest.err >&5
40272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40273   (exit $ac_status); } &&
40274          { ac_try='test -z "$ac_c_werror_flag"
40275                          || test ! -s conftest.err'
40276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40277   (eval $ac_try) 2>&5
40278   ac_status=$?
40279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40280   (exit $ac_status); }; } &&
40281          { ac_try='test -s conftest$ac_exeext'
40282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40283   (eval $ac_try) 2>&5
40284   ac_status=$?
40285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40286   (exit $ac_status); }; }; then
40287   eval "$as_ac_var=yes"
40288 else
40289   echo "$as_me: failed program was:" >&5
40290 sed 's/^/| /' conftest.$ac_ext >&5
40291
40292 eval "$as_ac_var=no"
40293 fi
40294 rm -f conftest.err conftest.$ac_objext \
40295       conftest$ac_exeext conftest.$ac_ext
40296 fi
40297 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40298 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40299 if test `eval echo '${'$as_ac_var'}'` = yes; then
40300   cat >>confdefs.h <<_ACEOF
40301 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40302 _ACEOF
40303  ice_have_fread=yes
40304 fi
40305 done
40306
40307 if test "${ice_have_fread}" = yes; then
40308 echo "$as_me:$LINENO: checking for fread declaration in stdio.h stdlib.h" >&5
40309 echo $ECHO_N "checking for fread declaration in stdio.h stdlib.h... $ECHO_C" >&6
40310 if test "${ice_cv_have_fread_decl+set}" = set; then
40311   echo $ECHO_N "(cached) $ECHO_C" >&6
40312 else
40313
40314 ice_cv_have_fread_decl=no
40315 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
40316 ice_re_word='(^|[^a-zA-Z0-9_])'
40317 for header in stdio.h stdlib.h; do
40318 # Check for ordinary declaration
40319 cat >conftest.$ac_ext <<_ACEOF
40320 /* confdefs.h.  */
40321 _ACEOF
40322 cat confdefs.h >>conftest.$ac_ext
40323 cat >>conftest.$ac_ext <<_ACEOF
40324 /* end confdefs.h.  */
40325 #include <$header>
40326
40327 _ACEOF
40328 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40329   $EGREP "${ice_re_word}fread[  ]*\(" >/dev/null 2>&1; then
40330   ice_cv_have_fread_decl=yes
40331 fi
40332 rm -f conftest*
40333
40334 if test "$ice_cv_have_fread_decl" = yes; then
40335         break
40336 fi
40337 # Check for "fixed" declaration like "getpid _PARAMS((int))"
40338 cat >conftest.$ac_ext <<_ACEOF
40339 /* confdefs.h.  */
40340 _ACEOF
40341 cat confdefs.h >>conftest.$ac_ext
40342 cat >>conftest.$ac_ext <<_ACEOF
40343 /* end confdefs.h.  */
40344 #include <$header>
40345
40346 _ACEOF
40347 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40348   $EGREP "${ice_re_word}fread[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
40349   ice_cv_have_fread_decl=yes
40350 fi
40351 rm -f conftest*
40352
40353 if test "$ice_cv_have_fread_decl" = yes; then
40354         break
40355 fi
40356 done
40357
40358 fi
40359
40360 echo "$as_me:$LINENO: result: $ice_cv_have_fread_decl" >&5
40361 echo "${ECHO_T}$ice_cv_have_fread_decl" >&6
40362 if test "$ice_cv_have_fread_decl" = yes; then
40363
40364 cat >>confdefs.h <<_ACEOF
40365 #define HAVE_FREAD_DECL 1
40366 _ACEOF
40367
40368 fi
40369 fi
40370
40371
40372 ice_have_fseek=no
40373
40374 for ac_func in fseek
40375 do
40376 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40377 echo "$as_me:$LINENO: checking for $ac_func" >&5
40378 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40379 if eval "test \"\${$as_ac_var+set}\" = set"; then
40380   echo $ECHO_N "(cached) $ECHO_C" >&6
40381 else
40382   cat >conftest.$ac_ext <<_ACEOF
40383 /* confdefs.h.  */
40384 _ACEOF
40385 cat confdefs.h >>conftest.$ac_ext
40386 cat >>conftest.$ac_ext <<_ACEOF
40387 /* end confdefs.h.  */
40388 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40389    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40390 #define $ac_func innocuous_$ac_func
40391
40392 /* System header to define __stub macros and hopefully few prototypes,
40393     which can conflict with char $ac_func (); below.
40394     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40395     <limits.h> exists even on freestanding compilers.  */
40396
40397 #ifdef __STDC__
40398 # include <limits.h>
40399 #else
40400 # include <assert.h>
40401 #endif
40402
40403 #undef $ac_func
40404
40405 /* Override any gcc2 internal prototype to avoid an error.  */
40406 #ifdef __cplusplus
40407 extern "C"
40408 {
40409 #endif
40410 /* We use char because int might match the return type of a gcc2
40411    builtin and then its argument prototype would still apply.  */
40412 char $ac_func ();
40413 /* The GNU C library defines this for functions which it implements
40414     to always fail with ENOSYS.  Some functions are actually named
40415     something starting with __ and the normal name is an alias.  */
40416 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40417 choke me
40418 #else
40419 char (*f) () = $ac_func;
40420 #endif
40421 #ifdef __cplusplus
40422 }
40423 #endif
40424
40425 int
40426 main ()
40427 {
40428 return f != $ac_func;
40429   ;
40430   return 0;
40431 }
40432 _ACEOF
40433 rm -f conftest.$ac_objext conftest$ac_exeext
40434 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40435   (eval $ac_link) 2>conftest.er1
40436   ac_status=$?
40437   grep -v '^ *+' conftest.er1 >conftest.err
40438   rm -f conftest.er1
40439   cat conftest.err >&5
40440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40441   (exit $ac_status); } &&
40442          { ac_try='test -z "$ac_c_werror_flag"
40443                          || test ! -s conftest.err'
40444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40445   (eval $ac_try) 2>&5
40446   ac_status=$?
40447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40448   (exit $ac_status); }; } &&
40449          { ac_try='test -s conftest$ac_exeext'
40450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40451   (eval $ac_try) 2>&5
40452   ac_status=$?
40453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40454   (exit $ac_status); }; }; then
40455   eval "$as_ac_var=yes"
40456 else
40457   echo "$as_me: failed program was:" >&5
40458 sed 's/^/| /' conftest.$ac_ext >&5
40459
40460 eval "$as_ac_var=no"
40461 fi
40462 rm -f conftest.err conftest.$ac_objext \
40463       conftest$ac_exeext conftest.$ac_ext
40464 fi
40465 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40466 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40467 if test `eval echo '${'$as_ac_var'}'` = yes; then
40468   cat >>confdefs.h <<_ACEOF
40469 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40470 _ACEOF
40471  ice_have_fseek=yes
40472 fi
40473 done
40474
40475 if test "${ice_have_fseek}" = yes; then
40476 echo "$as_me:$LINENO: checking for fseek declaration in stdio.h" >&5
40477 echo $ECHO_N "checking for fseek declaration in stdio.h... $ECHO_C" >&6
40478 if test "${ice_cv_have_fseek_decl+set}" = set; then
40479   echo $ECHO_N "(cached) $ECHO_C" >&6
40480 else
40481
40482 ice_cv_have_fseek_decl=no
40483 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
40484 ice_re_word='(^|[^a-zA-Z0-9_])'
40485 for header in stdio.h; do
40486 # Check for ordinary declaration
40487 cat >conftest.$ac_ext <<_ACEOF
40488 /* confdefs.h.  */
40489 _ACEOF
40490 cat confdefs.h >>conftest.$ac_ext
40491 cat >>conftest.$ac_ext <<_ACEOF
40492 /* end confdefs.h.  */
40493 #include <$header>
40494
40495 _ACEOF
40496 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40497   $EGREP "${ice_re_word}fseek[  ]*\(" >/dev/null 2>&1; then
40498   ice_cv_have_fseek_decl=yes
40499 fi
40500 rm -f conftest*
40501
40502 if test "$ice_cv_have_fseek_decl" = yes; then
40503         break
40504 fi
40505 # Check for "fixed" declaration like "getpid _PARAMS((int))"
40506 cat >conftest.$ac_ext <<_ACEOF
40507 /* confdefs.h.  */
40508 _ACEOF
40509 cat confdefs.h >>conftest.$ac_ext
40510 cat >>conftest.$ac_ext <<_ACEOF
40511 /* end confdefs.h.  */
40512 #include <$header>
40513
40514 _ACEOF
40515 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40516   $EGREP "${ice_re_word}fseek[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
40517   ice_cv_have_fseek_decl=yes
40518 fi
40519 rm -f conftest*
40520
40521 if test "$ice_cv_have_fseek_decl" = yes; then
40522         break
40523 fi
40524 done
40525
40526 fi
40527
40528 echo "$as_me:$LINENO: result: $ice_cv_have_fseek_decl" >&5
40529 echo "${ECHO_T}$ice_cv_have_fseek_decl" >&6
40530 if test "$ice_cv_have_fseek_decl" = yes; then
40531
40532 cat >>confdefs.h <<_ACEOF
40533 #define HAVE_FSEEK_DECL 1
40534 _ACEOF
40535
40536 fi
40537 fi
40538
40539
40540 ice_have_fwrite=no
40541
40542 for ac_func in fwrite
40543 do
40544 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40545 echo "$as_me:$LINENO: checking for $ac_func" >&5
40546 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40547 if eval "test \"\${$as_ac_var+set}\" = set"; then
40548   echo $ECHO_N "(cached) $ECHO_C" >&6
40549 else
40550   cat >conftest.$ac_ext <<_ACEOF
40551 /* confdefs.h.  */
40552 _ACEOF
40553 cat confdefs.h >>conftest.$ac_ext
40554 cat >>conftest.$ac_ext <<_ACEOF
40555 /* end confdefs.h.  */
40556 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40557    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40558 #define $ac_func innocuous_$ac_func
40559
40560 /* System header to define __stub macros and hopefully few prototypes,
40561     which can conflict with char $ac_func (); below.
40562     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40563     <limits.h> exists even on freestanding compilers.  */
40564
40565 #ifdef __STDC__
40566 # include <limits.h>
40567 #else
40568 # include <assert.h>
40569 #endif
40570
40571 #undef $ac_func
40572
40573 /* Override any gcc2 internal prototype to avoid an error.  */
40574 #ifdef __cplusplus
40575 extern "C"
40576 {
40577 #endif
40578 /* We use char because int might match the return type of a gcc2
40579    builtin and then its argument prototype would still apply.  */
40580 char $ac_func ();
40581 /* The GNU C library defines this for functions which it implements
40582     to always fail with ENOSYS.  Some functions are actually named
40583     something starting with __ and the normal name is an alias.  */
40584 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40585 choke me
40586 #else
40587 char (*f) () = $ac_func;
40588 #endif
40589 #ifdef __cplusplus
40590 }
40591 #endif
40592
40593 int
40594 main ()
40595 {
40596 return f != $ac_func;
40597   ;
40598   return 0;
40599 }
40600 _ACEOF
40601 rm -f conftest.$ac_objext conftest$ac_exeext
40602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40603   (eval $ac_link) 2>conftest.er1
40604   ac_status=$?
40605   grep -v '^ *+' conftest.er1 >conftest.err
40606   rm -f conftest.er1
40607   cat conftest.err >&5
40608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40609   (exit $ac_status); } &&
40610          { ac_try='test -z "$ac_c_werror_flag"
40611                          || test ! -s conftest.err'
40612   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40613   (eval $ac_try) 2>&5
40614   ac_status=$?
40615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40616   (exit $ac_status); }; } &&
40617          { ac_try='test -s conftest$ac_exeext'
40618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40619   (eval $ac_try) 2>&5
40620   ac_status=$?
40621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40622   (exit $ac_status); }; }; then
40623   eval "$as_ac_var=yes"
40624 else
40625   echo "$as_me: failed program was:" >&5
40626 sed 's/^/| /' conftest.$ac_ext >&5
40627
40628 eval "$as_ac_var=no"
40629 fi
40630 rm -f conftest.err conftest.$ac_objext \
40631       conftest$ac_exeext conftest.$ac_ext
40632 fi
40633 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40634 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40635 if test `eval echo '${'$as_ac_var'}'` = yes; then
40636   cat >>confdefs.h <<_ACEOF
40637 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40638 _ACEOF
40639  ice_have_fwrite=yes
40640 fi
40641 done
40642
40643 if test "${ice_have_fwrite}" = yes; then
40644 echo "$as_me:$LINENO: checking for fwrite declaration in stdio.h stdlib.h" >&5
40645 echo $ECHO_N "checking for fwrite declaration in stdio.h stdlib.h... $ECHO_C" >&6
40646 if test "${ice_cv_have_fwrite_decl+set}" = set; then
40647   echo $ECHO_N "(cached) $ECHO_C" >&6
40648 else
40649
40650 ice_cv_have_fwrite_decl=no
40651 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
40652 ice_re_word='(^|[^a-zA-Z0-9_])'
40653 for header in stdio.h stdlib.h; do
40654 # Check for ordinary declaration
40655 cat >conftest.$ac_ext <<_ACEOF
40656 /* confdefs.h.  */
40657 _ACEOF
40658 cat confdefs.h >>conftest.$ac_ext
40659 cat >>conftest.$ac_ext <<_ACEOF
40660 /* end confdefs.h.  */
40661 #include <$header>
40662
40663 _ACEOF
40664 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40665   $EGREP "${ice_re_word}fwrite[         ]*\(" >/dev/null 2>&1; then
40666   ice_cv_have_fwrite_decl=yes
40667 fi
40668 rm -f conftest*
40669
40670 if test "$ice_cv_have_fwrite_decl" = yes; then
40671         break
40672 fi
40673 # Check for "fixed" declaration like "getpid _PARAMS((int))"
40674 cat >conftest.$ac_ext <<_ACEOF
40675 /* confdefs.h.  */
40676 _ACEOF
40677 cat confdefs.h >>conftest.$ac_ext
40678 cat >>conftest.$ac_ext <<_ACEOF
40679 /* end confdefs.h.  */
40680 #include <$header>
40681
40682 _ACEOF
40683 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40684   $EGREP "${ice_re_word}fwrite[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
40685   ice_cv_have_fwrite_decl=yes
40686 fi
40687 rm -f conftest*
40688
40689 if test "$ice_cv_have_fwrite_decl" = yes; then
40690         break
40691 fi
40692 done
40693
40694 fi
40695
40696 echo "$as_me:$LINENO: result: $ice_cv_have_fwrite_decl" >&5
40697 echo "${ECHO_T}$ice_cv_have_fwrite_decl" >&6
40698 if test "$ice_cv_have_fwrite_decl" = yes; then
40699
40700 cat >>confdefs.h <<_ACEOF
40701 #define HAVE_FWRITE_DECL 1
40702 _ACEOF
40703
40704 fi
40705 fi
40706
40707
40708 for ac_func in getcwd
40709 do
40710 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40711 echo "$as_me:$LINENO: checking for $ac_func" >&5
40712 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40713 if eval "test \"\${$as_ac_var+set}\" = set"; then
40714   echo $ECHO_N "(cached) $ECHO_C" >&6
40715 else
40716   cat >conftest.$ac_ext <<_ACEOF
40717 /* confdefs.h.  */
40718 _ACEOF
40719 cat confdefs.h >>conftest.$ac_ext
40720 cat >>conftest.$ac_ext <<_ACEOF
40721 /* end confdefs.h.  */
40722 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40723    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40724 #define $ac_func innocuous_$ac_func
40725
40726 /* System header to define __stub macros and hopefully few prototypes,
40727     which can conflict with char $ac_func (); below.
40728     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40729     <limits.h> exists even on freestanding compilers.  */
40730
40731 #ifdef __STDC__
40732 # include <limits.h>
40733 #else
40734 # include <assert.h>
40735 #endif
40736
40737 #undef $ac_func
40738
40739 /* Override any gcc2 internal prototype to avoid an error.  */
40740 #ifdef __cplusplus
40741 extern "C"
40742 {
40743 #endif
40744 /* We use char because int might match the return type of a gcc2
40745    builtin and then its argument prototype would still apply.  */
40746 char $ac_func ();
40747 /* The GNU C library defines this for functions which it implements
40748     to always fail with ENOSYS.  Some functions are actually named
40749     something starting with __ and the normal name is an alias.  */
40750 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40751 choke me
40752 #else
40753 char (*f) () = $ac_func;
40754 #endif
40755 #ifdef __cplusplus
40756 }
40757 #endif
40758
40759 int
40760 main ()
40761 {
40762 return f != $ac_func;
40763   ;
40764   return 0;
40765 }
40766 _ACEOF
40767 rm -f conftest.$ac_objext conftest$ac_exeext
40768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40769   (eval $ac_link) 2>conftest.er1
40770   ac_status=$?
40771   grep -v '^ *+' conftest.er1 >conftest.err
40772   rm -f conftest.er1
40773   cat conftest.err >&5
40774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40775   (exit $ac_status); } &&
40776          { ac_try='test -z "$ac_c_werror_flag"
40777                          || test ! -s conftest.err'
40778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40779   (eval $ac_try) 2>&5
40780   ac_status=$?
40781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40782   (exit $ac_status); }; } &&
40783          { ac_try='test -s conftest$ac_exeext'
40784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40785   (eval $ac_try) 2>&5
40786   ac_status=$?
40787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40788   (exit $ac_status); }; }; then
40789   eval "$as_ac_var=yes"
40790 else
40791   echo "$as_me: failed program was:" >&5
40792 sed 's/^/| /' conftest.$ac_ext >&5
40793
40794 eval "$as_ac_var=no"
40795 fi
40796 rm -f conftest.err conftest.$ac_objext \
40797       conftest$ac_exeext conftest.$ac_ext
40798 fi
40799 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40800 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40801 if test `eval echo '${'$as_ac_var'}'` = yes; then
40802   cat >>confdefs.h <<_ACEOF
40803 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40804 _ACEOF
40805
40806 else
40807   case $LIBOBJS in
40808     "$ac_func.$ac_objext"   | \
40809   *" $ac_func.$ac_objext"   | \
40810     "$ac_func.$ac_objext "* | \
40811   *" $ac_func.$ac_objext "* ) ;;
40812   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
40813 esac
40814
40815 fi
40816 done
40817
40818
40819
40820 for ac_func in getfsent
40821 do
40822 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40823 echo "$as_me:$LINENO: checking for $ac_func" >&5
40824 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40825 if eval "test \"\${$as_ac_var+set}\" = set"; then
40826   echo $ECHO_N "(cached) $ECHO_C" >&6
40827 else
40828   cat >conftest.$ac_ext <<_ACEOF
40829 /* confdefs.h.  */
40830 _ACEOF
40831 cat confdefs.h >>conftest.$ac_ext
40832 cat >>conftest.$ac_ext <<_ACEOF
40833 /* end confdefs.h.  */
40834 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40835    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40836 #define $ac_func innocuous_$ac_func
40837
40838 /* System header to define __stub macros and hopefully few prototypes,
40839     which can conflict with char $ac_func (); below.
40840     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40841     <limits.h> exists even on freestanding compilers.  */
40842
40843 #ifdef __STDC__
40844 # include <limits.h>
40845 #else
40846 # include <assert.h>
40847 #endif
40848
40849 #undef $ac_func
40850
40851 /* Override any gcc2 internal prototype to avoid an error.  */
40852 #ifdef __cplusplus
40853 extern "C"
40854 {
40855 #endif
40856 /* We use char because int might match the return type of a gcc2
40857    builtin and then its argument prototype would still apply.  */
40858 char $ac_func ();
40859 /* The GNU C library defines this for functions which it implements
40860     to always fail with ENOSYS.  Some functions are actually named
40861     something starting with __ and the normal name is an alias.  */
40862 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40863 choke me
40864 #else
40865 char (*f) () = $ac_func;
40866 #endif
40867 #ifdef __cplusplus
40868 }
40869 #endif
40870
40871 int
40872 main ()
40873 {
40874 return f != $ac_func;
40875   ;
40876   return 0;
40877 }
40878 _ACEOF
40879 rm -f conftest.$ac_objext conftest$ac_exeext
40880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40881   (eval $ac_link) 2>conftest.er1
40882   ac_status=$?
40883   grep -v '^ *+' conftest.er1 >conftest.err
40884   rm -f conftest.er1
40885   cat conftest.err >&5
40886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40887   (exit $ac_status); } &&
40888          { ac_try='test -z "$ac_c_werror_flag"
40889                          || test ! -s conftest.err'
40890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40891   (eval $ac_try) 2>&5
40892   ac_status=$?
40893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40894   (exit $ac_status); }; } &&
40895          { ac_try='test -s conftest$ac_exeext'
40896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40897   (eval $ac_try) 2>&5
40898   ac_status=$?
40899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40900   (exit $ac_status); }; }; then
40901   eval "$as_ac_var=yes"
40902 else
40903   echo "$as_me: failed program was:" >&5
40904 sed 's/^/| /' conftest.$ac_ext >&5
40905
40906 eval "$as_ac_var=no"
40907 fi
40908 rm -f conftest.err conftest.$ac_objext \
40909       conftest$ac_exeext conftest.$ac_ext
40910 fi
40911 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40912 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40913 if test `eval echo '${'$as_ac_var'}'` = yes; then
40914   cat >>confdefs.h <<_ACEOF
40915 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40916 _ACEOF
40917
40918 fi
40919 done
40920
40921
40922 ice_have_gethostname=no
40923
40924 for ac_func in gethostname
40925 do
40926 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40927 echo "$as_me:$LINENO: checking for $ac_func" >&5
40928 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40929 if eval "test \"\${$as_ac_var+set}\" = set"; then
40930   echo $ECHO_N "(cached) $ECHO_C" >&6
40931 else
40932   cat >conftest.$ac_ext <<_ACEOF
40933 /* confdefs.h.  */
40934 _ACEOF
40935 cat confdefs.h >>conftest.$ac_ext
40936 cat >>conftest.$ac_ext <<_ACEOF
40937 /* end confdefs.h.  */
40938 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40939    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40940 #define $ac_func innocuous_$ac_func
40941
40942 /* System header to define __stub macros and hopefully few prototypes,
40943     which can conflict with char $ac_func (); below.
40944     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40945     <limits.h> exists even on freestanding compilers.  */
40946
40947 #ifdef __STDC__
40948 # include <limits.h>
40949 #else
40950 # include <assert.h>
40951 #endif
40952
40953 #undef $ac_func
40954
40955 /* Override any gcc2 internal prototype to avoid an error.  */
40956 #ifdef __cplusplus
40957 extern "C"
40958 {
40959 #endif
40960 /* We use char because int might match the return type of a gcc2
40961    builtin and then its argument prototype would still apply.  */
40962 char $ac_func ();
40963 /* The GNU C library defines this for functions which it implements
40964     to always fail with ENOSYS.  Some functions are actually named
40965     something starting with __ and the normal name is an alias.  */
40966 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40967 choke me
40968 #else
40969 char (*f) () = $ac_func;
40970 #endif
40971 #ifdef __cplusplus
40972 }
40973 #endif
40974
40975 int
40976 main ()
40977 {
40978 return f != $ac_func;
40979   ;
40980   return 0;
40981 }
40982 _ACEOF
40983 rm -f conftest.$ac_objext conftest$ac_exeext
40984 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40985   (eval $ac_link) 2>conftest.er1
40986   ac_status=$?
40987   grep -v '^ *+' conftest.er1 >conftest.err
40988   rm -f conftest.er1
40989   cat conftest.err >&5
40990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40991   (exit $ac_status); } &&
40992          { ac_try='test -z "$ac_c_werror_flag"
40993                          || test ! -s conftest.err'
40994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40995   (eval $ac_try) 2>&5
40996   ac_status=$?
40997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40998   (exit $ac_status); }; } &&
40999          { ac_try='test -s conftest$ac_exeext'
41000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41001   (eval $ac_try) 2>&5
41002   ac_status=$?
41003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41004   (exit $ac_status); }; }; then
41005   eval "$as_ac_var=yes"
41006 else
41007   echo "$as_me: failed program was:" >&5
41008 sed 's/^/| /' conftest.$ac_ext >&5
41009
41010 eval "$as_ac_var=no"
41011 fi
41012 rm -f conftest.err conftest.$ac_objext \
41013       conftest$ac_exeext conftest.$ac_ext
41014 fi
41015 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41016 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41017 if test `eval echo '${'$as_ac_var'}'` = yes; then
41018   cat >>confdefs.h <<_ACEOF
41019 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41020 _ACEOF
41021  ice_have_gethostname=yes
41022 fi
41023 done
41024
41025 if test "${ice_have_gethostname}" = yes; then
41026 echo "$as_me:$LINENO: checking for gethostname declaration in unistd.h" >&5
41027 echo $ECHO_N "checking for gethostname declaration in unistd.h... $ECHO_C" >&6
41028 if test "${ice_cv_have_gethostname_decl+set}" = set; then
41029   echo $ECHO_N "(cached) $ECHO_C" >&6
41030 else
41031
41032 ice_cv_have_gethostname_decl=no
41033 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
41034 ice_re_word='(^|[^a-zA-Z0-9_])'
41035 for header in unistd.h; do
41036 # Check for ordinary declaration
41037 cat >conftest.$ac_ext <<_ACEOF
41038 /* confdefs.h.  */
41039 _ACEOF
41040 cat confdefs.h >>conftest.$ac_ext
41041 cat >>conftest.$ac_ext <<_ACEOF
41042 /* end confdefs.h.  */
41043 #include <$header>
41044
41045 _ACEOF
41046 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41047   $EGREP "${ice_re_word}gethostname[    ]*\(" >/dev/null 2>&1; then
41048   ice_cv_have_gethostname_decl=yes
41049 fi
41050 rm -f conftest*
41051
41052 if test "$ice_cv_have_gethostname_decl" = yes; then
41053         break
41054 fi
41055 # Check for "fixed" declaration like "getpid _PARAMS((int))"
41056 cat >conftest.$ac_ext <<_ACEOF
41057 /* confdefs.h.  */
41058 _ACEOF
41059 cat confdefs.h >>conftest.$ac_ext
41060 cat >>conftest.$ac_ext <<_ACEOF
41061 /* end confdefs.h.  */
41062 #include <$header>
41063
41064 _ACEOF
41065 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41066   $EGREP "${ice_re_word}gethostname[    ]*$ice_re_params\(\(" >/dev/null 2>&1; then
41067   ice_cv_have_gethostname_decl=yes
41068 fi
41069 rm -f conftest*
41070
41071 if test "$ice_cv_have_gethostname_decl" = yes; then
41072         break
41073 fi
41074 done
41075
41076 fi
41077
41078 echo "$as_me:$LINENO: result: $ice_cv_have_gethostname_decl" >&5
41079 echo "${ECHO_T}$ice_cv_have_gethostname_decl" >&6
41080 if test "$ice_cv_have_gethostname_decl" = yes; then
41081
41082 cat >>confdefs.h <<_ACEOF
41083 #define HAVE_GETHOSTNAME_DECL 1
41084 _ACEOF
41085
41086 fi
41087 fi
41088
41089 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
41090 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
41091 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
41092 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
41093   echo $ECHO_N "(cached) $ECHO_C" >&6
41094 else
41095   ac_check_lib_save_LIBS=$LIBS
41096 LIBS="-lsun  $LIBS"
41097 cat >conftest.$ac_ext <<_ACEOF
41098 /* confdefs.h.  */
41099 _ACEOF
41100 cat confdefs.h >>conftest.$ac_ext
41101 cat >>conftest.$ac_ext <<_ACEOF
41102 /* end confdefs.h.  */
41103
41104 /* Override any gcc2 internal prototype to avoid an error.  */
41105 #ifdef __cplusplus
41106 extern "C"
41107 #endif
41108 /* We use char because int might match the return type of a gcc2
41109    builtin and then its argument prototype would still apply.  */
41110 char getmntent ();
41111 int
41112 main ()
41113 {
41114 getmntent ();
41115   ;
41116   return 0;
41117 }
41118 _ACEOF
41119 rm -f conftest.$ac_objext conftest$ac_exeext
41120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41121   (eval $ac_link) 2>conftest.er1
41122   ac_status=$?
41123   grep -v '^ *+' conftest.er1 >conftest.err
41124   rm -f conftest.er1
41125   cat conftest.err >&5
41126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41127   (exit $ac_status); } &&
41128          { ac_try='test -z "$ac_c_werror_flag"
41129                          || test ! -s conftest.err'
41130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41131   (eval $ac_try) 2>&5
41132   ac_status=$?
41133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41134   (exit $ac_status); }; } &&
41135          { ac_try='test -s conftest$ac_exeext'
41136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41137   (eval $ac_try) 2>&5
41138   ac_status=$?
41139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41140   (exit $ac_status); }; }; then
41141   ac_cv_lib_sun_getmntent=yes
41142 else
41143   echo "$as_me: failed program was:" >&5
41144 sed 's/^/| /' conftest.$ac_ext >&5
41145
41146 ac_cv_lib_sun_getmntent=no
41147 fi
41148 rm -f conftest.err conftest.$ac_objext \
41149       conftest$ac_exeext conftest.$ac_ext
41150 LIBS=$ac_check_lib_save_LIBS
41151 fi
41152 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
41153 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
41154 if test $ac_cv_lib_sun_getmntent = yes; then
41155   LIBS="-lsun $LIBS"
41156 else
41157   echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
41158 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
41159 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
41160   echo $ECHO_N "(cached) $ECHO_C" >&6
41161 else
41162   ac_check_lib_save_LIBS=$LIBS
41163 LIBS="-lseq  $LIBS"
41164 cat >conftest.$ac_ext <<_ACEOF
41165 /* confdefs.h.  */
41166 _ACEOF
41167 cat confdefs.h >>conftest.$ac_ext
41168 cat >>conftest.$ac_ext <<_ACEOF
41169 /* end confdefs.h.  */
41170
41171 /* Override any gcc2 internal prototype to avoid an error.  */
41172 #ifdef __cplusplus
41173 extern "C"
41174 #endif
41175 /* We use char because int might match the return type of a gcc2
41176    builtin and then its argument prototype would still apply.  */
41177 char getmntent ();
41178 int
41179 main ()
41180 {
41181 getmntent ();
41182   ;
41183   return 0;
41184 }
41185 _ACEOF
41186 rm -f conftest.$ac_objext conftest$ac_exeext
41187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41188   (eval $ac_link) 2>conftest.er1
41189   ac_status=$?
41190   grep -v '^ *+' conftest.er1 >conftest.err
41191   rm -f conftest.er1
41192   cat conftest.err >&5
41193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41194   (exit $ac_status); } &&
41195          { ac_try='test -z "$ac_c_werror_flag"
41196                          || test ! -s conftest.err'
41197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41198   (eval $ac_try) 2>&5
41199   ac_status=$?
41200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41201   (exit $ac_status); }; } &&
41202          { ac_try='test -s conftest$ac_exeext'
41203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41204   (eval $ac_try) 2>&5
41205   ac_status=$?
41206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41207   (exit $ac_status); }; }; then
41208   ac_cv_lib_seq_getmntent=yes
41209 else
41210   echo "$as_me: failed program was:" >&5
41211 sed 's/^/| /' conftest.$ac_ext >&5
41212
41213 ac_cv_lib_seq_getmntent=no
41214 fi
41215 rm -f conftest.err conftest.$ac_objext \
41216       conftest$ac_exeext conftest.$ac_ext
41217 LIBS=$ac_check_lib_save_LIBS
41218 fi
41219 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
41220 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
41221 if test $ac_cv_lib_seq_getmntent = yes; then
41222   LIBS="-lseq $LIBS"
41223 else
41224   echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
41225 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
41226 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
41227   echo $ECHO_N "(cached) $ECHO_C" >&6
41228 else
41229   ac_check_lib_save_LIBS=$LIBS
41230 LIBS="-lgen  $LIBS"
41231 cat >conftest.$ac_ext <<_ACEOF
41232 /* confdefs.h.  */
41233 _ACEOF
41234 cat confdefs.h >>conftest.$ac_ext
41235 cat >>conftest.$ac_ext <<_ACEOF
41236 /* end confdefs.h.  */
41237
41238 /* Override any gcc2 internal prototype to avoid an error.  */
41239 #ifdef __cplusplus
41240 extern "C"
41241 #endif
41242 /* We use char because int might match the return type of a gcc2
41243    builtin and then its argument prototype would still apply.  */
41244 char getmntent ();
41245 int
41246 main ()
41247 {
41248 getmntent ();
41249   ;
41250   return 0;
41251 }
41252 _ACEOF
41253 rm -f conftest.$ac_objext conftest$ac_exeext
41254 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41255   (eval $ac_link) 2>conftest.er1
41256   ac_status=$?
41257   grep -v '^ *+' conftest.er1 >conftest.err
41258   rm -f conftest.er1
41259   cat conftest.err >&5
41260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41261   (exit $ac_status); } &&
41262          { ac_try='test -z "$ac_c_werror_flag"
41263                          || test ! -s conftest.err'
41264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41265   (eval $ac_try) 2>&5
41266   ac_status=$?
41267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41268   (exit $ac_status); }; } &&
41269          { ac_try='test -s conftest$ac_exeext'
41270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41271   (eval $ac_try) 2>&5
41272   ac_status=$?
41273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41274   (exit $ac_status); }; }; then
41275   ac_cv_lib_gen_getmntent=yes
41276 else
41277   echo "$as_me: failed program was:" >&5
41278 sed 's/^/| /' conftest.$ac_ext >&5
41279
41280 ac_cv_lib_gen_getmntent=no
41281 fi
41282 rm -f conftest.err conftest.$ac_objext \
41283       conftest$ac_exeext conftest.$ac_ext
41284 LIBS=$ac_check_lib_save_LIBS
41285 fi
41286 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
41287 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
41288 if test $ac_cv_lib_gen_getmntent = yes; then
41289   LIBS="-lgen $LIBS"
41290 fi
41291
41292 fi
41293
41294 fi
41295
41296
41297 for ac_func in getmntent
41298 do
41299 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41300 echo "$as_me:$LINENO: checking for $ac_func" >&5
41301 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41302 if eval "test \"\${$as_ac_var+set}\" = set"; then
41303   echo $ECHO_N "(cached) $ECHO_C" >&6
41304 else
41305   cat >conftest.$ac_ext <<_ACEOF
41306 /* confdefs.h.  */
41307 _ACEOF
41308 cat confdefs.h >>conftest.$ac_ext
41309 cat >>conftest.$ac_ext <<_ACEOF
41310 /* end confdefs.h.  */
41311 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41312    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41313 #define $ac_func innocuous_$ac_func
41314
41315 /* System header to define __stub macros and hopefully few prototypes,
41316     which can conflict with char $ac_func (); below.
41317     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41318     <limits.h> exists even on freestanding compilers.  */
41319
41320 #ifdef __STDC__
41321 # include <limits.h>
41322 #else
41323 # include <assert.h>
41324 #endif
41325
41326 #undef $ac_func
41327
41328 /* Override any gcc2 internal prototype to avoid an error.  */
41329 #ifdef __cplusplus
41330 extern "C"
41331 {
41332 #endif
41333 /* We use char because int might match the return type of a gcc2
41334    builtin and then its argument prototype would still apply.  */
41335 char $ac_func ();
41336 /* The GNU C library defines this for functions which it implements
41337     to always fail with ENOSYS.  Some functions are actually named
41338     something starting with __ and the normal name is an alias.  */
41339 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41340 choke me
41341 #else
41342 char (*f) () = $ac_func;
41343 #endif
41344 #ifdef __cplusplus
41345 }
41346 #endif
41347
41348 int
41349 main ()
41350 {
41351 return f != $ac_func;
41352   ;
41353   return 0;
41354 }
41355 _ACEOF
41356 rm -f conftest.$ac_objext conftest$ac_exeext
41357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41358   (eval $ac_link) 2>conftest.er1
41359   ac_status=$?
41360   grep -v '^ *+' conftest.er1 >conftest.err
41361   rm -f conftest.er1
41362   cat conftest.err >&5
41363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41364   (exit $ac_status); } &&
41365          { ac_try='test -z "$ac_c_werror_flag"
41366                          || test ! -s conftest.err'
41367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41368   (eval $ac_try) 2>&5
41369   ac_status=$?
41370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41371   (exit $ac_status); }; } &&
41372          { ac_try='test -s conftest$ac_exeext'
41373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41374   (eval $ac_try) 2>&5
41375   ac_status=$?
41376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41377   (exit $ac_status); }; }; then
41378   eval "$as_ac_var=yes"
41379 else
41380   echo "$as_me: failed program was:" >&5
41381 sed 's/^/| /' conftest.$ac_ext >&5
41382
41383 eval "$as_ac_var=no"
41384 fi
41385 rm -f conftest.err conftest.$ac_objext \
41386       conftest$ac_exeext conftest.$ac_ext
41387 fi
41388 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41389 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41390 if test `eval echo '${'$as_ac_var'}'` = yes; then
41391   cat >>confdefs.h <<_ACEOF
41392 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41393 _ACEOF
41394
41395 fi
41396 done
41397
41398
41399
41400 ice_have_getopt=no
41401
41402 for ac_func in getopt
41403 do
41404 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41405 echo "$as_me:$LINENO: checking for $ac_func" >&5
41406 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41407 if eval "test \"\${$as_ac_var+set}\" = set"; then
41408   echo $ECHO_N "(cached) $ECHO_C" >&6
41409 else
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 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41417    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41418 #define $ac_func innocuous_$ac_func
41419
41420 /* System header to define __stub macros and hopefully few prototypes,
41421     which can conflict with char $ac_func (); below.
41422     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41423     <limits.h> exists even on freestanding compilers.  */
41424
41425 #ifdef __STDC__
41426 # include <limits.h>
41427 #else
41428 # include <assert.h>
41429 #endif
41430
41431 #undef $ac_func
41432
41433 /* Override any gcc2 internal prototype to avoid an error.  */
41434 #ifdef __cplusplus
41435 extern "C"
41436 {
41437 #endif
41438 /* We use char because int might match the return type of a gcc2
41439    builtin and then its argument prototype would still apply.  */
41440 char $ac_func ();
41441 /* The GNU C library defines this for functions which it implements
41442     to always fail with ENOSYS.  Some functions are actually named
41443     something starting with __ and the normal name is an alias.  */
41444 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41445 choke me
41446 #else
41447 char (*f) () = $ac_func;
41448 #endif
41449 #ifdef __cplusplus
41450 }
41451 #endif
41452
41453 int
41454 main ()
41455 {
41456 return f != $ac_func;
41457   ;
41458   return 0;
41459 }
41460 _ACEOF
41461 rm -f conftest.$ac_objext conftest$ac_exeext
41462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41463   (eval $ac_link) 2>conftest.er1
41464   ac_status=$?
41465   grep -v '^ *+' conftest.er1 >conftest.err
41466   rm -f conftest.er1
41467   cat conftest.err >&5
41468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41469   (exit $ac_status); } &&
41470          { ac_try='test -z "$ac_c_werror_flag"
41471                          || test ! -s conftest.err'
41472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41473   (eval $ac_try) 2>&5
41474   ac_status=$?
41475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41476   (exit $ac_status); }; } &&
41477          { ac_try='test -s conftest$ac_exeext'
41478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41479   (eval $ac_try) 2>&5
41480   ac_status=$?
41481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41482   (exit $ac_status); }; }; then
41483   eval "$as_ac_var=yes"
41484 else
41485   echo "$as_me: failed program was:" >&5
41486 sed 's/^/| /' conftest.$ac_ext >&5
41487
41488 eval "$as_ac_var=no"
41489 fi
41490 rm -f conftest.err conftest.$ac_objext \
41491       conftest$ac_exeext conftest.$ac_ext
41492 fi
41493 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41494 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41495 if test `eval echo '${'$as_ac_var'}'` = yes; then
41496   cat >>confdefs.h <<_ACEOF
41497 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41498 _ACEOF
41499  ice_have_getopt=yes
41500 fi
41501 done
41502
41503 if test "${ice_have_getopt}" = yes; then
41504 echo "$as_me:$LINENO: checking for getopt declaration in stdlib.h unistd.h libc.h" >&5
41505 echo $ECHO_N "checking for getopt declaration in stdlib.h unistd.h libc.h... $ECHO_C" >&6
41506 if test "${ice_cv_have_getopt_decl+set}" = set; then
41507   echo $ECHO_N "(cached) $ECHO_C" >&6
41508 else
41509
41510 ice_cv_have_getopt_decl=no
41511 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
41512 ice_re_word='(^|[^a-zA-Z0-9_])'
41513 for header in stdlib.h unistd.h libc.h; do
41514 # Check for ordinary declaration
41515 cat >conftest.$ac_ext <<_ACEOF
41516 /* confdefs.h.  */
41517 _ACEOF
41518 cat confdefs.h >>conftest.$ac_ext
41519 cat >>conftest.$ac_ext <<_ACEOF
41520 /* end confdefs.h.  */
41521 #include <$header>
41522
41523 _ACEOF
41524 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41525   $EGREP "${ice_re_word}getopt[         ]*\(" >/dev/null 2>&1; then
41526   ice_cv_have_getopt_decl=yes
41527 fi
41528 rm -f conftest*
41529
41530 if test "$ice_cv_have_getopt_decl" = yes; then
41531         break
41532 fi
41533 # Check for "fixed" declaration like "getpid _PARAMS((int))"
41534 cat >conftest.$ac_ext <<_ACEOF
41535 /* confdefs.h.  */
41536 _ACEOF
41537 cat confdefs.h >>conftest.$ac_ext
41538 cat >>conftest.$ac_ext <<_ACEOF
41539 /* end confdefs.h.  */
41540 #include <$header>
41541
41542 _ACEOF
41543 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41544   $EGREP "${ice_re_word}getopt[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
41545   ice_cv_have_getopt_decl=yes
41546 fi
41547 rm -f conftest*
41548
41549 if test "$ice_cv_have_getopt_decl" = yes; then
41550         break
41551 fi
41552 done
41553
41554 fi
41555
41556 echo "$as_me:$LINENO: result: $ice_cv_have_getopt_decl" >&5
41557 echo "${ECHO_T}$ice_cv_have_getopt_decl" >&6
41558 if test "$ice_cv_have_getopt_decl" = yes; then
41559
41560 cat >>confdefs.h <<_ACEOF
41561 #define HAVE_GETOPT_DECL 1
41562 _ACEOF
41563
41564 fi
41565 fi
41566
41567
41568 ice_have_getpeername=no
41569
41570 for ac_func in getpeername
41571 do
41572 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41573 echo "$as_me:$LINENO: checking for $ac_func" >&5
41574 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41575 if eval "test \"\${$as_ac_var+set}\" = set"; then
41576   echo $ECHO_N "(cached) $ECHO_C" >&6
41577 else
41578   cat >conftest.$ac_ext <<_ACEOF
41579 /* confdefs.h.  */
41580 _ACEOF
41581 cat confdefs.h >>conftest.$ac_ext
41582 cat >>conftest.$ac_ext <<_ACEOF
41583 /* end confdefs.h.  */
41584 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41585    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41586 #define $ac_func innocuous_$ac_func
41587
41588 /* System header to define __stub macros and hopefully few prototypes,
41589     which can conflict with char $ac_func (); below.
41590     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41591     <limits.h> exists even on freestanding compilers.  */
41592
41593 #ifdef __STDC__
41594 # include <limits.h>
41595 #else
41596 # include <assert.h>
41597 #endif
41598
41599 #undef $ac_func
41600
41601 /* Override any gcc2 internal prototype to avoid an error.  */
41602 #ifdef __cplusplus
41603 extern "C"
41604 {
41605 #endif
41606 /* We use char because int might match the return type of a gcc2
41607    builtin and then its argument prototype would still apply.  */
41608 char $ac_func ();
41609 /* The GNU C library defines this for functions which it implements
41610     to always fail with ENOSYS.  Some functions are actually named
41611     something starting with __ and the normal name is an alias.  */
41612 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41613 choke me
41614 #else
41615 char (*f) () = $ac_func;
41616 #endif
41617 #ifdef __cplusplus
41618 }
41619 #endif
41620
41621 int
41622 main ()
41623 {
41624 return f != $ac_func;
41625   ;
41626   return 0;
41627 }
41628 _ACEOF
41629 rm -f conftest.$ac_objext conftest$ac_exeext
41630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41631   (eval $ac_link) 2>conftest.er1
41632   ac_status=$?
41633   grep -v '^ *+' conftest.er1 >conftest.err
41634   rm -f conftest.er1
41635   cat conftest.err >&5
41636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41637   (exit $ac_status); } &&
41638          { ac_try='test -z "$ac_c_werror_flag"
41639                          || test ! -s conftest.err'
41640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41641   (eval $ac_try) 2>&5
41642   ac_status=$?
41643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41644   (exit $ac_status); }; } &&
41645          { ac_try='test -s conftest$ac_exeext'
41646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41647   (eval $ac_try) 2>&5
41648   ac_status=$?
41649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41650   (exit $ac_status); }; }; then
41651   eval "$as_ac_var=yes"
41652 else
41653   echo "$as_me: failed program was:" >&5
41654 sed 's/^/| /' conftest.$ac_ext >&5
41655
41656 eval "$as_ac_var=no"
41657 fi
41658 rm -f conftest.err conftest.$ac_objext \
41659       conftest$ac_exeext conftest.$ac_ext
41660 fi
41661 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41662 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41663 if test `eval echo '${'$as_ac_var'}'` = yes; then
41664   cat >>confdefs.h <<_ACEOF
41665 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41666 _ACEOF
41667  ice_have_getpeername=yes
41668 fi
41669 done
41670
41671 if test "${ice_have_getpeername}" = yes; then
41672 echo "$as_me:$LINENO: checking for getpeername declaration in sys/types.h sys/socket.h" >&5
41673 echo $ECHO_N "checking for getpeername declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
41674 if test "${ice_cv_have_getpeername_decl+set}" = set; then
41675   echo $ECHO_N "(cached) $ECHO_C" >&6
41676 else
41677
41678 ice_cv_have_getpeername_decl=no
41679 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
41680 ice_re_word='(^|[^a-zA-Z0-9_])'
41681 for header in sys/types.h sys/socket.h; do
41682 # Check for ordinary declaration
41683 cat >conftest.$ac_ext <<_ACEOF
41684 /* confdefs.h.  */
41685 _ACEOF
41686 cat confdefs.h >>conftest.$ac_ext
41687 cat >>conftest.$ac_ext <<_ACEOF
41688 /* end confdefs.h.  */
41689 #include <$header>
41690
41691 _ACEOF
41692 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41693   $EGREP "${ice_re_word}getpeername[    ]*\(" >/dev/null 2>&1; then
41694   ice_cv_have_getpeername_decl=yes
41695 fi
41696 rm -f conftest*
41697
41698 if test "$ice_cv_have_getpeername_decl" = yes; then
41699         break
41700 fi
41701 # Check for "fixed" declaration like "getpid _PARAMS((int))"
41702 cat >conftest.$ac_ext <<_ACEOF
41703 /* confdefs.h.  */
41704 _ACEOF
41705 cat confdefs.h >>conftest.$ac_ext
41706 cat >>conftest.$ac_ext <<_ACEOF
41707 /* end confdefs.h.  */
41708 #include <$header>
41709
41710 _ACEOF
41711 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41712   $EGREP "${ice_re_word}getpeername[    ]*$ice_re_params\(\(" >/dev/null 2>&1; then
41713   ice_cv_have_getpeername_decl=yes
41714 fi
41715 rm -f conftest*
41716
41717 if test "$ice_cv_have_getpeername_decl" = yes; then
41718         break
41719 fi
41720 done
41721
41722 fi
41723
41724 echo "$as_me:$LINENO: result: $ice_cv_have_getpeername_decl" >&5
41725 echo "${ECHO_T}$ice_cv_have_getpeername_decl" >&6
41726 if test "$ice_cv_have_getpeername_decl" = yes; then
41727
41728 cat >>confdefs.h <<_ACEOF
41729 #define HAVE_GETPEERNAME_DECL 1
41730 _ACEOF
41731
41732 fi
41733 fi
41734
41735
41736 for ac_func in getpgrp
41737 do
41738 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41739 echo "$as_me:$LINENO: checking for $ac_func" >&5
41740 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41741 if eval "test \"\${$as_ac_var+set}\" = set"; then
41742   echo $ECHO_N "(cached) $ECHO_C" >&6
41743 else
41744   cat >conftest.$ac_ext <<_ACEOF
41745 /* confdefs.h.  */
41746 _ACEOF
41747 cat confdefs.h >>conftest.$ac_ext
41748 cat >>conftest.$ac_ext <<_ACEOF
41749 /* end confdefs.h.  */
41750 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41751    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41752 #define $ac_func innocuous_$ac_func
41753
41754 /* System header to define __stub macros and hopefully few prototypes,
41755     which can conflict with char $ac_func (); below.
41756     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41757     <limits.h> exists even on freestanding compilers.  */
41758
41759 #ifdef __STDC__
41760 # include <limits.h>
41761 #else
41762 # include <assert.h>
41763 #endif
41764
41765 #undef $ac_func
41766
41767 /* Override any gcc2 internal prototype to avoid an error.  */
41768 #ifdef __cplusplus
41769 extern "C"
41770 {
41771 #endif
41772 /* We use char because int might match the return type of a gcc2
41773    builtin and then its argument prototype would still apply.  */
41774 char $ac_func ();
41775 /* The GNU C library defines this for functions which it implements
41776     to always fail with ENOSYS.  Some functions are actually named
41777     something starting with __ and the normal name is an alias.  */
41778 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41779 choke me
41780 #else
41781 char (*f) () = $ac_func;
41782 #endif
41783 #ifdef __cplusplus
41784 }
41785 #endif
41786
41787 int
41788 main ()
41789 {
41790 return f != $ac_func;
41791   ;
41792   return 0;
41793 }
41794 _ACEOF
41795 rm -f conftest.$ac_objext conftest$ac_exeext
41796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41797   (eval $ac_link) 2>conftest.er1
41798   ac_status=$?
41799   grep -v '^ *+' conftest.er1 >conftest.err
41800   rm -f conftest.er1
41801   cat conftest.err >&5
41802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41803   (exit $ac_status); } &&
41804          { ac_try='test -z "$ac_c_werror_flag"
41805                          || test ! -s conftest.err'
41806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41807   (eval $ac_try) 2>&5
41808   ac_status=$?
41809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41810   (exit $ac_status); }; } &&
41811          { ac_try='test -s conftest$ac_exeext'
41812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41813   (eval $ac_try) 2>&5
41814   ac_status=$?
41815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41816   (exit $ac_status); }; }; then
41817   eval "$as_ac_var=yes"
41818 else
41819   echo "$as_me: failed program was:" >&5
41820 sed 's/^/| /' conftest.$ac_ext >&5
41821
41822 eval "$as_ac_var=no"
41823 fi
41824 rm -f conftest.err conftest.$ac_objext \
41825       conftest$ac_exeext conftest.$ac_ext
41826 fi
41827 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41828 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41829 if test `eval echo '${'$as_ac_var'}'` = yes; then
41830   cat >>confdefs.h <<_ACEOF
41831 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41832 _ACEOF
41833
41834 fi
41835 done
41836
41837 echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
41838 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
41839 if test "${ac_cv_func_getpgrp_void+set}" = set; then
41840   echo $ECHO_N "(cached) $ECHO_C" >&6
41841 else
41842   # Use it with a single arg.
41843 cat >conftest.$ac_ext <<_ACEOF
41844 /* confdefs.h.  */
41845 _ACEOF
41846 cat confdefs.h >>conftest.$ac_ext
41847 cat >>conftest.$ac_ext <<_ACEOF
41848 /* end confdefs.h.  */
41849 $ac_includes_default
41850 int
41851 main ()
41852 {
41853 getpgrp (0);
41854   ;
41855   return 0;
41856 }
41857 _ACEOF
41858 rm -f conftest.$ac_objext
41859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41860   (eval $ac_compile) 2>conftest.er1
41861   ac_status=$?
41862   grep -v '^ *+' conftest.er1 >conftest.err
41863   rm -f conftest.er1
41864   cat conftest.err >&5
41865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41866   (exit $ac_status); } &&
41867          { ac_try='test -z "$ac_c_werror_flag"
41868                          || test ! -s conftest.err'
41869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41870   (eval $ac_try) 2>&5
41871   ac_status=$?
41872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41873   (exit $ac_status); }; } &&
41874          { ac_try='test -s conftest.$ac_objext'
41875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41876   (eval $ac_try) 2>&5
41877   ac_status=$?
41878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41879   (exit $ac_status); }; }; then
41880   ac_cv_func_getpgrp_void=no
41881 else
41882   echo "$as_me: failed program was:" >&5
41883 sed 's/^/| /' conftest.$ac_ext >&5
41884
41885 ac_cv_func_getpgrp_void=yes
41886 fi
41887 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41888
41889 fi
41890 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
41891 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
41892 if test $ac_cv_func_getpgrp_void = yes; then
41893
41894 cat >>confdefs.h <<\_ACEOF
41895 #define GETPGRP_VOID 1
41896 _ACEOF
41897
41898 fi
41899
41900
41901 ice_have_getsockname=no
41902
41903 for ac_func in getsockname
41904 do
41905 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41906 echo "$as_me:$LINENO: checking for $ac_func" >&5
41907 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41908 if eval "test \"\${$as_ac_var+set}\" = set"; then
41909   echo $ECHO_N "(cached) $ECHO_C" >&6
41910 else
41911   cat >conftest.$ac_ext <<_ACEOF
41912 /* confdefs.h.  */
41913 _ACEOF
41914 cat confdefs.h >>conftest.$ac_ext
41915 cat >>conftest.$ac_ext <<_ACEOF
41916 /* end confdefs.h.  */
41917 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41918    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41919 #define $ac_func innocuous_$ac_func
41920
41921 /* System header to define __stub macros and hopefully few prototypes,
41922     which can conflict with char $ac_func (); below.
41923     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41924     <limits.h> exists even on freestanding compilers.  */
41925
41926 #ifdef __STDC__
41927 # include <limits.h>
41928 #else
41929 # include <assert.h>
41930 #endif
41931
41932 #undef $ac_func
41933
41934 /* Override any gcc2 internal prototype to avoid an error.  */
41935 #ifdef __cplusplus
41936 extern "C"
41937 {
41938 #endif
41939 /* We use char because int might match the return type of a gcc2
41940    builtin and then its argument prototype would still apply.  */
41941 char $ac_func ();
41942 /* The GNU C library defines this for functions which it implements
41943     to always fail with ENOSYS.  Some functions are actually named
41944     something starting with __ and the normal name is an alias.  */
41945 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41946 choke me
41947 #else
41948 char (*f) () = $ac_func;
41949 #endif
41950 #ifdef __cplusplus
41951 }
41952 #endif
41953
41954 int
41955 main ()
41956 {
41957 return f != $ac_func;
41958   ;
41959   return 0;
41960 }
41961 _ACEOF
41962 rm -f conftest.$ac_objext conftest$ac_exeext
41963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41964   (eval $ac_link) 2>conftest.er1
41965   ac_status=$?
41966   grep -v '^ *+' conftest.er1 >conftest.err
41967   rm -f conftest.er1
41968   cat conftest.err >&5
41969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41970   (exit $ac_status); } &&
41971          { ac_try='test -z "$ac_c_werror_flag"
41972                          || test ! -s conftest.err'
41973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41974   (eval $ac_try) 2>&5
41975   ac_status=$?
41976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41977   (exit $ac_status); }; } &&
41978          { ac_try='test -s conftest$ac_exeext'
41979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41980   (eval $ac_try) 2>&5
41981   ac_status=$?
41982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41983   (exit $ac_status); }; }; then
41984   eval "$as_ac_var=yes"
41985 else
41986   echo "$as_me: failed program was:" >&5
41987 sed 's/^/| /' conftest.$ac_ext >&5
41988
41989 eval "$as_ac_var=no"
41990 fi
41991 rm -f conftest.err conftest.$ac_objext \
41992       conftest$ac_exeext conftest.$ac_ext
41993 fi
41994 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41995 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41996 if test `eval echo '${'$as_ac_var'}'` = yes; then
41997   cat >>confdefs.h <<_ACEOF
41998 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41999 _ACEOF
42000  ice_have_getsockname=yes
42001 fi
42002 done
42003
42004 if test "${ice_have_getsockname}" = yes; then
42005 echo "$as_me:$LINENO: checking for getsockname declaration in sys/types.h sys/socket.h" >&5
42006 echo $ECHO_N "checking for getsockname declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
42007 if test "${ice_cv_have_getsockname_decl+set}" = set; then
42008   echo $ECHO_N "(cached) $ECHO_C" >&6
42009 else
42010
42011 ice_cv_have_getsockname_decl=no
42012 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
42013 ice_re_word='(^|[^a-zA-Z0-9_])'
42014 for header in sys/types.h sys/socket.h; do
42015 # Check for ordinary declaration
42016 cat >conftest.$ac_ext <<_ACEOF
42017 /* confdefs.h.  */
42018 _ACEOF
42019 cat confdefs.h >>conftest.$ac_ext
42020 cat >>conftest.$ac_ext <<_ACEOF
42021 /* end confdefs.h.  */
42022 #include <$header>
42023
42024 _ACEOF
42025 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42026   $EGREP "${ice_re_word}getsockname[    ]*\(" >/dev/null 2>&1; then
42027   ice_cv_have_getsockname_decl=yes
42028 fi
42029 rm -f conftest*
42030
42031 if test "$ice_cv_have_getsockname_decl" = yes; then
42032         break
42033 fi
42034 # Check for "fixed" declaration like "getpid _PARAMS((int))"
42035 cat >conftest.$ac_ext <<_ACEOF
42036 /* confdefs.h.  */
42037 _ACEOF
42038 cat confdefs.h >>conftest.$ac_ext
42039 cat >>conftest.$ac_ext <<_ACEOF
42040 /* end confdefs.h.  */
42041 #include <$header>
42042
42043 _ACEOF
42044 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42045   $EGREP "${ice_re_word}getsockname[    ]*$ice_re_params\(\(" >/dev/null 2>&1; then
42046   ice_cv_have_getsockname_decl=yes
42047 fi
42048 rm -f conftest*
42049
42050 if test "$ice_cv_have_getsockname_decl" = yes; then
42051         break
42052 fi
42053 done
42054
42055 fi
42056
42057 echo "$as_me:$LINENO: result: $ice_cv_have_getsockname_decl" >&5
42058 echo "${ECHO_T}$ice_cv_have_getsockname_decl" >&6
42059 if test "$ice_cv_have_getsockname_decl" = yes; then
42060
42061 cat >>confdefs.h <<_ACEOF
42062 #define HAVE_GETSOCKNAME_DECL 1
42063 _ACEOF
42064
42065 fi
42066 fi
42067
42068
42069 ice_have_getsockopt=no
42070
42071 for ac_func in getsockopt
42072 do
42073 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42074 echo "$as_me:$LINENO: checking for $ac_func" >&5
42075 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42076 if eval "test \"\${$as_ac_var+set}\" = set"; then
42077   echo $ECHO_N "(cached) $ECHO_C" >&6
42078 else
42079   cat >conftest.$ac_ext <<_ACEOF
42080 /* confdefs.h.  */
42081 _ACEOF
42082 cat confdefs.h >>conftest.$ac_ext
42083 cat >>conftest.$ac_ext <<_ACEOF
42084 /* end confdefs.h.  */
42085 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42086    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42087 #define $ac_func innocuous_$ac_func
42088
42089 /* System header to define __stub macros and hopefully few prototypes,
42090     which can conflict with char $ac_func (); below.
42091     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42092     <limits.h> exists even on freestanding compilers.  */
42093
42094 #ifdef __STDC__
42095 # include <limits.h>
42096 #else
42097 # include <assert.h>
42098 #endif
42099
42100 #undef $ac_func
42101
42102 /* Override any gcc2 internal prototype to avoid an error.  */
42103 #ifdef __cplusplus
42104 extern "C"
42105 {
42106 #endif
42107 /* We use char because int might match the return type of a gcc2
42108    builtin and then its argument prototype would still apply.  */
42109 char $ac_func ();
42110 /* The GNU C library defines this for functions which it implements
42111     to always fail with ENOSYS.  Some functions are actually named
42112     something starting with __ and the normal name is an alias.  */
42113 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42114 choke me
42115 #else
42116 char (*f) () = $ac_func;
42117 #endif
42118 #ifdef __cplusplus
42119 }
42120 #endif
42121
42122 int
42123 main ()
42124 {
42125 return f != $ac_func;
42126   ;
42127   return 0;
42128 }
42129 _ACEOF
42130 rm -f conftest.$ac_objext conftest$ac_exeext
42131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42132   (eval $ac_link) 2>conftest.er1
42133   ac_status=$?
42134   grep -v '^ *+' conftest.er1 >conftest.err
42135   rm -f conftest.er1
42136   cat conftest.err >&5
42137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42138   (exit $ac_status); } &&
42139          { ac_try='test -z "$ac_c_werror_flag"
42140                          || test ! -s conftest.err'
42141   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42142   (eval $ac_try) 2>&5
42143   ac_status=$?
42144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42145   (exit $ac_status); }; } &&
42146          { ac_try='test -s conftest$ac_exeext'
42147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42148   (eval $ac_try) 2>&5
42149   ac_status=$?
42150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42151   (exit $ac_status); }; }; then
42152   eval "$as_ac_var=yes"
42153 else
42154   echo "$as_me: failed program was:" >&5
42155 sed 's/^/| /' conftest.$ac_ext >&5
42156
42157 eval "$as_ac_var=no"
42158 fi
42159 rm -f conftest.err conftest.$ac_objext \
42160       conftest$ac_exeext conftest.$ac_ext
42161 fi
42162 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42163 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42164 if test `eval echo '${'$as_ac_var'}'` = yes; then
42165   cat >>confdefs.h <<_ACEOF
42166 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42167 _ACEOF
42168  ice_have_getsockopt=yes
42169 fi
42170 done
42171
42172 if test "${ice_have_getsockopt}" = yes; then
42173 echo "$as_me:$LINENO: checking for getsockopt declaration in sys/types.h sys/socket.h" >&5
42174 echo $ECHO_N "checking for getsockopt declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
42175 if test "${ice_cv_have_getsockopt_decl+set}" = set; then
42176   echo $ECHO_N "(cached) $ECHO_C" >&6
42177 else
42178
42179 ice_cv_have_getsockopt_decl=no
42180 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
42181 ice_re_word='(^|[^a-zA-Z0-9_])'
42182 for header in sys/types.h sys/socket.h; do
42183 # Check for ordinary declaration
42184 cat >conftest.$ac_ext <<_ACEOF
42185 /* confdefs.h.  */
42186 _ACEOF
42187 cat confdefs.h >>conftest.$ac_ext
42188 cat >>conftest.$ac_ext <<_ACEOF
42189 /* end confdefs.h.  */
42190 #include <$header>
42191
42192 _ACEOF
42193 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42194   $EGREP "${ice_re_word}getsockopt[     ]*\(" >/dev/null 2>&1; then
42195   ice_cv_have_getsockopt_decl=yes
42196 fi
42197 rm -f conftest*
42198
42199 if test "$ice_cv_have_getsockopt_decl" = yes; then
42200         break
42201 fi
42202 # Check for "fixed" declaration like "getpid _PARAMS((int))"
42203 cat >conftest.$ac_ext <<_ACEOF
42204 /* confdefs.h.  */
42205 _ACEOF
42206 cat confdefs.h >>conftest.$ac_ext
42207 cat >>conftest.$ac_ext <<_ACEOF
42208 /* end confdefs.h.  */
42209 #include <$header>
42210
42211 _ACEOF
42212 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42213   $EGREP "${ice_re_word}getsockopt[     ]*$ice_re_params\(\(" >/dev/null 2>&1; then
42214   ice_cv_have_getsockopt_decl=yes
42215 fi
42216 rm -f conftest*
42217
42218 if test "$ice_cv_have_getsockopt_decl" = yes; then
42219         break
42220 fi
42221 done
42222
42223 fi
42224
42225 echo "$as_me:$LINENO: result: $ice_cv_have_getsockopt_decl" >&5
42226 echo "${ECHO_T}$ice_cv_have_getsockopt_decl" >&6
42227 if test "$ice_cv_have_getsockopt_decl" = yes; then
42228
42229 cat >>confdefs.h <<_ACEOF
42230 #define HAVE_GETSOCKOPT_DECL 1
42231 _ACEOF
42232
42233 fi
42234 fi
42235
42236
42237 ice_have_gettimeofday=no
42238
42239 for ac_func in gettimeofday
42240 do
42241 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42242 echo "$as_me:$LINENO: checking for $ac_func" >&5
42243 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42244 if eval "test \"\${$as_ac_var+set}\" = set"; then
42245   echo $ECHO_N "(cached) $ECHO_C" >&6
42246 else
42247   cat >conftest.$ac_ext <<_ACEOF
42248 /* confdefs.h.  */
42249 _ACEOF
42250 cat confdefs.h >>conftest.$ac_ext
42251 cat >>conftest.$ac_ext <<_ACEOF
42252 /* end confdefs.h.  */
42253 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42254    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42255 #define $ac_func innocuous_$ac_func
42256
42257 /* System header to define __stub macros and hopefully few prototypes,
42258     which can conflict with char $ac_func (); below.
42259     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42260     <limits.h> exists even on freestanding compilers.  */
42261
42262 #ifdef __STDC__
42263 # include <limits.h>
42264 #else
42265 # include <assert.h>
42266 #endif
42267
42268 #undef $ac_func
42269
42270 /* Override any gcc2 internal prototype to avoid an error.  */
42271 #ifdef __cplusplus
42272 extern "C"
42273 {
42274 #endif
42275 /* We use char because int might match the return type of a gcc2
42276    builtin and then its argument prototype would still apply.  */
42277 char $ac_func ();
42278 /* The GNU C library defines this for functions which it implements
42279     to always fail with ENOSYS.  Some functions are actually named
42280     something starting with __ and the normal name is an alias.  */
42281 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42282 choke me
42283 #else
42284 char (*f) () = $ac_func;
42285 #endif
42286 #ifdef __cplusplus
42287 }
42288 #endif
42289
42290 int
42291 main ()
42292 {
42293 return f != $ac_func;
42294   ;
42295   return 0;
42296 }
42297 _ACEOF
42298 rm -f conftest.$ac_objext conftest$ac_exeext
42299 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42300   (eval $ac_link) 2>conftest.er1
42301   ac_status=$?
42302   grep -v '^ *+' conftest.er1 >conftest.err
42303   rm -f conftest.er1
42304   cat conftest.err >&5
42305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42306   (exit $ac_status); } &&
42307          { ac_try='test -z "$ac_c_werror_flag"
42308                          || test ! -s conftest.err'
42309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42310   (eval $ac_try) 2>&5
42311   ac_status=$?
42312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42313   (exit $ac_status); }; } &&
42314          { ac_try='test -s conftest$ac_exeext'
42315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42316   (eval $ac_try) 2>&5
42317   ac_status=$?
42318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42319   (exit $ac_status); }; }; then
42320   eval "$as_ac_var=yes"
42321 else
42322   echo "$as_me: failed program was:" >&5
42323 sed 's/^/| /' conftest.$ac_ext >&5
42324
42325 eval "$as_ac_var=no"
42326 fi
42327 rm -f conftest.err conftest.$ac_objext \
42328       conftest$ac_exeext conftest.$ac_ext
42329 fi
42330 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42331 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42332 if test `eval echo '${'$as_ac_var'}'` = yes; then
42333   cat >>confdefs.h <<_ACEOF
42334 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42335 _ACEOF
42336  ice_have_gettimeofday=yes
42337 fi
42338 done
42339
42340 if test "${ice_have_gettimeofday}" = yes; then
42341 echo "$as_me:$LINENO: checking for gettimeofday declaration in time.h sys/time.h" >&5
42342 echo $ECHO_N "checking for gettimeofday declaration in time.h sys/time.h... $ECHO_C" >&6
42343 if test "${ice_cv_have_gettimeofday_decl+set}" = set; then
42344   echo $ECHO_N "(cached) $ECHO_C" >&6
42345 else
42346
42347 ice_cv_have_gettimeofday_decl=no
42348 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
42349 ice_re_word='(^|[^a-zA-Z0-9_])'
42350 for header in time.h sys/time.h; do
42351 # Check for ordinary declaration
42352 cat >conftest.$ac_ext <<_ACEOF
42353 /* confdefs.h.  */
42354 _ACEOF
42355 cat confdefs.h >>conftest.$ac_ext
42356 cat >>conftest.$ac_ext <<_ACEOF
42357 /* end confdefs.h.  */
42358 #include <$header>
42359
42360 _ACEOF
42361 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42362   $EGREP "${ice_re_word}gettimeofday[   ]*\(" >/dev/null 2>&1; then
42363   ice_cv_have_gettimeofday_decl=yes
42364 fi
42365 rm -f conftest*
42366
42367 if test "$ice_cv_have_gettimeofday_decl" = yes; then
42368         break
42369 fi
42370 # Check for "fixed" declaration like "getpid _PARAMS((int))"
42371 cat >conftest.$ac_ext <<_ACEOF
42372 /* confdefs.h.  */
42373 _ACEOF
42374 cat confdefs.h >>conftest.$ac_ext
42375 cat >>conftest.$ac_ext <<_ACEOF
42376 /* end confdefs.h.  */
42377 #include <$header>
42378
42379 _ACEOF
42380 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42381   $EGREP "${ice_re_word}gettimeofday[   ]*$ice_re_params\(\(" >/dev/null 2>&1; then
42382   ice_cv_have_gettimeofday_decl=yes
42383 fi
42384 rm -f conftest*
42385
42386 if test "$ice_cv_have_gettimeofday_decl" = yes; then
42387         break
42388 fi
42389 done
42390
42391 fi
42392
42393 echo "$as_me:$LINENO: result: $ice_cv_have_gettimeofday_decl" >&5
42394 echo "${ECHO_T}$ice_cv_have_gettimeofday_decl" >&6
42395 if test "$ice_cv_have_gettimeofday_decl" = yes; then
42396
42397 cat >>confdefs.h <<_ACEOF
42398 #define HAVE_GETTIMEOFDAY_DECL 1
42399 _ACEOF
42400
42401 fi
42402 fi
42403
42404
42405
42406         echo "$as_me:$LINENO: checking for gettimeofday number of arguments" >&5
42407 echo $ECHO_N "checking for gettimeofday number of arguments... $ECHO_C" >&6
42408 if test "${amanda_cv_gettimeofday_args+set}" = set; then
42409   echo $ECHO_N "(cached) $ECHO_C" >&6
42410 else
42411
42412                 cat >conftest.$ac_ext <<_ACEOF
42413 /* confdefs.h.  */
42414 _ACEOF
42415 cat confdefs.h >>conftest.$ac_ext
42416 cat >>conftest.$ac_ext <<_ACEOF
42417 /* end confdefs.h.  */
42418
42419 #ifdef TIME_WITH_SYS_TIME
42420 #  include <sys/time.h>
42421 #  include <time.h>
42422 #else
42423 #  ifdef HAVE_SYS_TIME_H
42424 #    include <sys/time.h>
42425 #  else
42426 #    include <time.h>
42427 #  endif
42428 #endif
42429
42430 int
42431 main ()
42432 {
42433
42434                         struct timeval val;
42435                         struct timezone zone;
42436                         gettimeofday(&val, &zone);
42437
42438   ;
42439   return 0;
42440 }
42441 _ACEOF
42442 rm -f conftest.$ac_objext
42443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42444   (eval $ac_compile) 2>conftest.er1
42445   ac_status=$?
42446   grep -v '^ *+' conftest.er1 >conftest.err
42447   rm -f conftest.er1
42448   cat conftest.err >&5
42449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42450   (exit $ac_status); } &&
42451          { ac_try='test -z "$ac_c_werror_flag"
42452                          || test ! -s conftest.err'
42453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42454   (eval $ac_try) 2>&5
42455   ac_status=$?
42456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42457   (exit $ac_status); }; } &&
42458          { ac_try='test -s conftest.$ac_objext'
42459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42460   (eval $ac_try) 2>&5
42461   ac_status=$?
42462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42463   (exit $ac_status); }; }; then
42464   amanda_cv_gettimeofday_args=2
42465 else
42466   echo "$as_me: failed program was:" >&5
42467 sed 's/^/| /' conftest.$ac_ext >&5
42468
42469 amanda_cv_gettimeofday_args=1
42470
42471 fi
42472 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42473
42474
42475 fi
42476 echo "$as_me:$LINENO: result: $amanda_cv_gettimeofday_args" >&5
42477 echo "${ECHO_T}$amanda_cv_gettimeofday_args" >&6
42478         if test "$amanda_cv_gettimeofday_args" = 2; then
42479
42480 cat >>confdefs.h <<\_ACEOF
42481 #define HAVE_TWO_ARG_GETTIMEOFDAY 1
42482 _ACEOF
42483
42484         fi
42485
42486
42487
42488
42489
42490 for ac_func in getvfsent initgroups isascii
42491 do
42492 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42493 echo "$as_me:$LINENO: checking for $ac_func" >&5
42494 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42495 if eval "test \"\${$as_ac_var+set}\" = set"; then
42496   echo $ECHO_N "(cached) $ECHO_C" >&6
42497 else
42498   cat >conftest.$ac_ext <<_ACEOF
42499 /* confdefs.h.  */
42500 _ACEOF
42501 cat confdefs.h >>conftest.$ac_ext
42502 cat >>conftest.$ac_ext <<_ACEOF
42503 /* end confdefs.h.  */
42504 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42505    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42506 #define $ac_func innocuous_$ac_func
42507
42508 /* System header to define __stub macros and hopefully few prototypes,
42509     which can conflict with char $ac_func (); below.
42510     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42511     <limits.h> exists even on freestanding compilers.  */
42512
42513 #ifdef __STDC__
42514 # include <limits.h>
42515 #else
42516 # include <assert.h>
42517 #endif
42518
42519 #undef $ac_func
42520
42521 /* Override any gcc2 internal prototype to avoid an error.  */
42522 #ifdef __cplusplus
42523 extern "C"
42524 {
42525 #endif
42526 /* We use char because int might match the return type of a gcc2
42527    builtin and then its argument prototype would still apply.  */
42528 char $ac_func ();
42529 /* The GNU C library defines this for functions which it implements
42530     to always fail with ENOSYS.  Some functions are actually named
42531     something starting with __ and the normal name is an alias.  */
42532 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42533 choke me
42534 #else
42535 char (*f) () = $ac_func;
42536 #endif
42537 #ifdef __cplusplus
42538 }
42539 #endif
42540
42541 int
42542 main ()
42543 {
42544 return f != $ac_func;
42545   ;
42546   return 0;
42547 }
42548 _ACEOF
42549 rm -f conftest.$ac_objext conftest$ac_exeext
42550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42551   (eval $ac_link) 2>conftest.er1
42552   ac_status=$?
42553   grep -v '^ *+' conftest.er1 >conftest.err
42554   rm -f conftest.er1
42555   cat conftest.err >&5
42556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42557   (exit $ac_status); } &&
42558          { ac_try='test -z "$ac_c_werror_flag"
42559                          || test ! -s conftest.err'
42560   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42561   (eval $ac_try) 2>&5
42562   ac_status=$?
42563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42564   (exit $ac_status); }; } &&
42565          { ac_try='test -s conftest$ac_exeext'
42566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42567   (eval $ac_try) 2>&5
42568   ac_status=$?
42569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42570   (exit $ac_status); }; }; then
42571   eval "$as_ac_var=yes"
42572 else
42573   echo "$as_me: failed program was:" >&5
42574 sed 's/^/| /' conftest.$ac_ext >&5
42575
42576 eval "$as_ac_var=no"
42577 fi
42578 rm -f conftest.err conftest.$ac_objext \
42579       conftest$ac_exeext conftest.$ac_ext
42580 fi
42581 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42582 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42583 if test `eval echo '${'$as_ac_var'}'` = yes; then
42584   cat >>confdefs.h <<_ACEOF
42585 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42586 _ACEOF
42587
42588 fi
42589 done
42590
42591
42592 ice_have_initgroups=no
42593
42594 for ac_func in initgroups
42595 do
42596 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42597 echo "$as_me:$LINENO: checking for $ac_func" >&5
42598 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42599 if eval "test \"\${$as_ac_var+set}\" = set"; then
42600   echo $ECHO_N "(cached) $ECHO_C" >&6
42601 else
42602   cat >conftest.$ac_ext <<_ACEOF
42603 /* confdefs.h.  */
42604 _ACEOF
42605 cat confdefs.h >>conftest.$ac_ext
42606 cat >>conftest.$ac_ext <<_ACEOF
42607 /* end confdefs.h.  */
42608 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42609    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42610 #define $ac_func innocuous_$ac_func
42611
42612 /* System header to define __stub macros and hopefully few prototypes,
42613     which can conflict with char $ac_func (); below.
42614     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42615     <limits.h> exists even on freestanding compilers.  */
42616
42617 #ifdef __STDC__
42618 # include <limits.h>
42619 #else
42620 # include <assert.h>
42621 #endif
42622
42623 #undef $ac_func
42624
42625 /* Override any gcc2 internal prototype to avoid an error.  */
42626 #ifdef __cplusplus
42627 extern "C"
42628 {
42629 #endif
42630 /* We use char because int might match the return type of a gcc2
42631    builtin and then its argument prototype would still apply.  */
42632 char $ac_func ();
42633 /* The GNU C library defines this for functions which it implements
42634     to always fail with ENOSYS.  Some functions are actually named
42635     something starting with __ and the normal name is an alias.  */
42636 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42637 choke me
42638 #else
42639 char (*f) () = $ac_func;
42640 #endif
42641 #ifdef __cplusplus
42642 }
42643 #endif
42644
42645 int
42646 main ()
42647 {
42648 return f != $ac_func;
42649   ;
42650   return 0;
42651 }
42652 _ACEOF
42653 rm -f conftest.$ac_objext conftest$ac_exeext
42654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42655   (eval $ac_link) 2>conftest.er1
42656   ac_status=$?
42657   grep -v '^ *+' conftest.er1 >conftest.err
42658   rm -f conftest.er1
42659   cat conftest.err >&5
42660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42661   (exit $ac_status); } &&
42662          { ac_try='test -z "$ac_c_werror_flag"
42663                          || test ! -s conftest.err'
42664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42665   (eval $ac_try) 2>&5
42666   ac_status=$?
42667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42668   (exit $ac_status); }; } &&
42669          { ac_try='test -s conftest$ac_exeext'
42670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42671   (eval $ac_try) 2>&5
42672   ac_status=$?
42673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42674   (exit $ac_status); }; }; then
42675   eval "$as_ac_var=yes"
42676 else
42677   echo "$as_me: failed program was:" >&5
42678 sed 's/^/| /' conftest.$ac_ext >&5
42679
42680 eval "$as_ac_var=no"
42681 fi
42682 rm -f conftest.err conftest.$ac_objext \
42683       conftest$ac_exeext conftest.$ac_ext
42684 fi
42685 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42686 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42687 if test `eval echo '${'$as_ac_var'}'` = yes; then
42688   cat >>confdefs.h <<_ACEOF
42689 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42690 _ACEOF
42691  ice_have_initgroups=yes
42692 fi
42693 done
42694
42695 if test "${ice_have_initgroups}" = yes; then
42696 echo "$as_me:$LINENO: checking for initgroups declaration in grp.h sys/types.h unistd.h libc.h" >&5
42697 echo $ECHO_N "checking for initgroups declaration in grp.h sys/types.h unistd.h libc.h... $ECHO_C" >&6
42698 if test "${ice_cv_have_initgroups_decl+set}" = set; then
42699   echo $ECHO_N "(cached) $ECHO_C" >&6
42700 else
42701
42702 ice_cv_have_initgroups_decl=no
42703 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
42704 ice_re_word='(^|[^a-zA-Z0-9_])'
42705 for header in grp.h sys/types.h unistd.h libc.h; do
42706 # Check for ordinary declaration
42707 cat >conftest.$ac_ext <<_ACEOF
42708 /* confdefs.h.  */
42709 _ACEOF
42710 cat confdefs.h >>conftest.$ac_ext
42711 cat >>conftest.$ac_ext <<_ACEOF
42712 /* end confdefs.h.  */
42713 #include <$header>
42714
42715 _ACEOF
42716 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42717   $EGREP "${ice_re_word}initgroups[     ]*\(" >/dev/null 2>&1; then
42718   ice_cv_have_initgroups_decl=yes
42719 fi
42720 rm -f conftest*
42721
42722 if test "$ice_cv_have_initgroups_decl" = yes; then
42723         break
42724 fi
42725 # Check for "fixed" declaration like "getpid _PARAMS((int))"
42726 cat >conftest.$ac_ext <<_ACEOF
42727 /* confdefs.h.  */
42728 _ACEOF
42729 cat confdefs.h >>conftest.$ac_ext
42730 cat >>conftest.$ac_ext <<_ACEOF
42731 /* end confdefs.h.  */
42732 #include <$header>
42733
42734 _ACEOF
42735 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42736   $EGREP "${ice_re_word}initgroups[     ]*$ice_re_params\(\(" >/dev/null 2>&1; then
42737   ice_cv_have_initgroups_decl=yes
42738 fi
42739 rm -f conftest*
42740
42741 if test "$ice_cv_have_initgroups_decl" = yes; then
42742         break
42743 fi
42744 done
42745
42746 fi
42747
42748 echo "$as_me:$LINENO: result: $ice_cv_have_initgroups_decl" >&5
42749 echo "${ECHO_T}$ice_cv_have_initgroups_decl" >&6
42750 if test "$ice_cv_have_initgroups_decl" = yes; then
42751
42752 cat >>confdefs.h <<_ACEOF
42753 #define HAVE_INITGROUPS_DECL 1
42754 _ACEOF
42755
42756 fi
42757 fi
42758
42759
42760 ice_have_ioctl=no
42761
42762 for ac_func in ioctl
42763 do
42764 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42765 echo "$as_me:$LINENO: checking for $ac_func" >&5
42766 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42767 if eval "test \"\${$as_ac_var+set}\" = set"; then
42768   echo $ECHO_N "(cached) $ECHO_C" >&6
42769 else
42770   cat >conftest.$ac_ext <<_ACEOF
42771 /* confdefs.h.  */
42772 _ACEOF
42773 cat confdefs.h >>conftest.$ac_ext
42774 cat >>conftest.$ac_ext <<_ACEOF
42775 /* end confdefs.h.  */
42776 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42777    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42778 #define $ac_func innocuous_$ac_func
42779
42780 /* System header to define __stub macros and hopefully few prototypes,
42781     which can conflict with char $ac_func (); below.
42782     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42783     <limits.h> exists even on freestanding compilers.  */
42784
42785 #ifdef __STDC__
42786 # include <limits.h>
42787 #else
42788 # include <assert.h>
42789 #endif
42790
42791 #undef $ac_func
42792
42793 /* Override any gcc2 internal prototype to avoid an error.  */
42794 #ifdef __cplusplus
42795 extern "C"
42796 {
42797 #endif
42798 /* We use char because int might match the return type of a gcc2
42799    builtin and then its argument prototype would still apply.  */
42800 char $ac_func ();
42801 /* The GNU C library defines this for functions which it implements
42802     to always fail with ENOSYS.  Some functions are actually named
42803     something starting with __ and the normal name is an alias.  */
42804 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42805 choke me
42806 #else
42807 char (*f) () = $ac_func;
42808 #endif
42809 #ifdef __cplusplus
42810 }
42811 #endif
42812
42813 int
42814 main ()
42815 {
42816 return f != $ac_func;
42817   ;
42818   return 0;
42819 }
42820 _ACEOF
42821 rm -f conftest.$ac_objext conftest$ac_exeext
42822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42823   (eval $ac_link) 2>conftest.er1
42824   ac_status=$?
42825   grep -v '^ *+' conftest.er1 >conftest.err
42826   rm -f conftest.er1
42827   cat conftest.err >&5
42828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42829   (exit $ac_status); } &&
42830          { ac_try='test -z "$ac_c_werror_flag"
42831                          || test ! -s conftest.err'
42832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42833   (eval $ac_try) 2>&5
42834   ac_status=$?
42835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42836   (exit $ac_status); }; } &&
42837          { ac_try='test -s conftest$ac_exeext'
42838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42839   (eval $ac_try) 2>&5
42840   ac_status=$?
42841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42842   (exit $ac_status); }; }; then
42843   eval "$as_ac_var=yes"
42844 else
42845   echo "$as_me: failed program was:" >&5
42846 sed 's/^/| /' conftest.$ac_ext >&5
42847
42848 eval "$as_ac_var=no"
42849 fi
42850 rm -f conftest.err conftest.$ac_objext \
42851       conftest$ac_exeext conftest.$ac_ext
42852 fi
42853 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42854 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42855 if test `eval echo '${'$as_ac_var'}'` = yes; then
42856   cat >>confdefs.h <<_ACEOF
42857 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42858 _ACEOF
42859  ice_have_ioctl=yes
42860 fi
42861 done
42862
42863 if test "${ice_have_ioctl}" = yes; then
42864 echo "$as_me:$LINENO: checking for ioctl declaration in sys/ioctl.h unistd.h libc.h" >&5
42865 echo $ECHO_N "checking for ioctl declaration in sys/ioctl.h unistd.h libc.h... $ECHO_C" >&6
42866 if test "${ice_cv_have_ioctl_decl+set}" = set; then
42867   echo $ECHO_N "(cached) $ECHO_C" >&6
42868 else
42869
42870 ice_cv_have_ioctl_decl=no
42871 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
42872 ice_re_word='(^|[^a-zA-Z0-9_])'
42873 for header in sys/ioctl.h unistd.h libc.h; do
42874 # Check for ordinary declaration
42875 cat >conftest.$ac_ext <<_ACEOF
42876 /* confdefs.h.  */
42877 _ACEOF
42878 cat confdefs.h >>conftest.$ac_ext
42879 cat >>conftest.$ac_ext <<_ACEOF
42880 /* end confdefs.h.  */
42881 #include <$header>
42882
42883 _ACEOF
42884 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42885   $EGREP "${ice_re_word}ioctl[  ]*\(" >/dev/null 2>&1; then
42886   ice_cv_have_ioctl_decl=yes
42887 fi
42888 rm -f conftest*
42889
42890 if test "$ice_cv_have_ioctl_decl" = yes; then
42891         break
42892 fi
42893 # Check for "fixed" declaration like "getpid _PARAMS((int))"
42894 cat >conftest.$ac_ext <<_ACEOF
42895 /* confdefs.h.  */
42896 _ACEOF
42897 cat confdefs.h >>conftest.$ac_ext
42898 cat >>conftest.$ac_ext <<_ACEOF
42899 /* end confdefs.h.  */
42900 #include <$header>
42901
42902 _ACEOF
42903 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42904   $EGREP "${ice_re_word}ioctl[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
42905   ice_cv_have_ioctl_decl=yes
42906 fi
42907 rm -f conftest*
42908
42909 if test "$ice_cv_have_ioctl_decl" = yes; then
42910         break
42911 fi
42912 done
42913
42914 fi
42915
42916 echo "$as_me:$LINENO: result: $ice_cv_have_ioctl_decl" >&5
42917 echo "${ECHO_T}$ice_cv_have_ioctl_decl" >&6
42918 if test "$ice_cv_have_ioctl_decl" = yes; then
42919
42920 cat >>confdefs.h <<_ACEOF
42921 #define HAVE_IOCTL_DECL 1
42922 _ACEOF
42923
42924 fi
42925 fi
42926
42927
42928 ice_have_isnormal=no
42929
42930 for ac_func in isnormal
42931 do
42932 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42933 echo "$as_me:$LINENO: checking for $ac_func" >&5
42934 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42935 if eval "test \"\${$as_ac_var+set}\" = set"; then
42936   echo $ECHO_N "(cached) $ECHO_C" >&6
42937 else
42938   cat >conftest.$ac_ext <<_ACEOF
42939 /* confdefs.h.  */
42940 _ACEOF
42941 cat confdefs.h >>conftest.$ac_ext
42942 cat >>conftest.$ac_ext <<_ACEOF
42943 /* end confdefs.h.  */
42944 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42945    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42946 #define $ac_func innocuous_$ac_func
42947
42948 /* System header to define __stub macros and hopefully few prototypes,
42949     which can conflict with char $ac_func (); below.
42950     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42951     <limits.h> exists even on freestanding compilers.  */
42952
42953 #ifdef __STDC__
42954 # include <limits.h>
42955 #else
42956 # include <assert.h>
42957 #endif
42958
42959 #undef $ac_func
42960
42961 /* Override any gcc2 internal prototype to avoid an error.  */
42962 #ifdef __cplusplus
42963 extern "C"
42964 {
42965 #endif
42966 /* We use char because int might match the return type of a gcc2
42967    builtin and then its argument prototype would still apply.  */
42968 char $ac_func ();
42969 /* The GNU C library defines this for functions which it implements
42970     to always fail with ENOSYS.  Some functions are actually named
42971     something starting with __ and the normal name is an alias.  */
42972 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42973 choke me
42974 #else
42975 char (*f) () = $ac_func;
42976 #endif
42977 #ifdef __cplusplus
42978 }
42979 #endif
42980
42981 int
42982 main ()
42983 {
42984 return f != $ac_func;
42985   ;
42986   return 0;
42987 }
42988 _ACEOF
42989 rm -f conftest.$ac_objext conftest$ac_exeext
42990 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42991   (eval $ac_link) 2>conftest.er1
42992   ac_status=$?
42993   grep -v '^ *+' conftest.er1 >conftest.err
42994   rm -f conftest.er1
42995   cat conftest.err >&5
42996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42997   (exit $ac_status); } &&
42998          { ac_try='test -z "$ac_c_werror_flag"
42999                          || test ! -s conftest.err'
43000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43001   (eval $ac_try) 2>&5
43002   ac_status=$?
43003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43004   (exit $ac_status); }; } &&
43005          { ac_try='test -s conftest$ac_exeext'
43006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43007   (eval $ac_try) 2>&5
43008   ac_status=$?
43009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43010   (exit $ac_status); }; }; then
43011   eval "$as_ac_var=yes"
43012 else
43013   echo "$as_me: failed program was:" >&5
43014 sed 's/^/| /' conftest.$ac_ext >&5
43015
43016 eval "$as_ac_var=no"
43017 fi
43018 rm -f conftest.err conftest.$ac_objext \
43019       conftest$ac_exeext conftest.$ac_ext
43020 fi
43021 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43022 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43023 if test `eval echo '${'$as_ac_var'}'` = yes; then
43024   cat >>confdefs.h <<_ACEOF
43025 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43026 _ACEOF
43027  ice_have_isnormal=yes
43028 fi
43029 done
43030
43031 if test "${ice_have_isnormal}" = yes; then
43032 echo "$as_me:$LINENO: checking for isnormal declaration in math.h" >&5
43033 echo $ECHO_N "checking for isnormal declaration in math.h... $ECHO_C" >&6
43034 if test "${ice_cv_have_isnormal_decl+set}" = set; then
43035   echo $ECHO_N "(cached) $ECHO_C" >&6
43036 else
43037
43038 ice_cv_have_isnormal_decl=no
43039 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
43040 ice_re_word='(^|[^a-zA-Z0-9_])'
43041 for header in math.h; do
43042 # Check for ordinary declaration
43043 cat >conftest.$ac_ext <<_ACEOF
43044 /* confdefs.h.  */
43045 _ACEOF
43046 cat confdefs.h >>conftest.$ac_ext
43047 cat >>conftest.$ac_ext <<_ACEOF
43048 /* end confdefs.h.  */
43049 #include <$header>
43050
43051 _ACEOF
43052 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43053   $EGREP "${ice_re_word}isnormal[       ]*\(" >/dev/null 2>&1; then
43054   ice_cv_have_isnormal_decl=yes
43055 fi
43056 rm -f conftest*
43057
43058 if test "$ice_cv_have_isnormal_decl" = yes; then
43059         break
43060 fi
43061 # Check for "fixed" declaration like "getpid _PARAMS((int))"
43062 cat >conftest.$ac_ext <<_ACEOF
43063 /* confdefs.h.  */
43064 _ACEOF
43065 cat confdefs.h >>conftest.$ac_ext
43066 cat >>conftest.$ac_ext <<_ACEOF
43067 /* end confdefs.h.  */
43068 #include <$header>
43069
43070 _ACEOF
43071 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43072   $EGREP "${ice_re_word}isnormal[       ]*$ice_re_params\(\(" >/dev/null 2>&1; then
43073   ice_cv_have_isnormal_decl=yes
43074 fi
43075 rm -f conftest*
43076
43077 if test "$ice_cv_have_isnormal_decl" = yes; then
43078         break
43079 fi
43080 done
43081
43082 fi
43083
43084 echo "$as_me:$LINENO: result: $ice_cv_have_isnormal_decl" >&5
43085 echo "${ECHO_T}$ice_cv_have_isnormal_decl" >&6
43086 if test "$ice_cv_have_isnormal_decl" = yes; then
43087
43088 cat >>confdefs.h <<_ACEOF
43089 #define HAVE_ISNORMAL_DECL 1
43090 _ACEOF
43091
43092 fi
43093 fi
43094
43095
43096 ice_have_listen=no
43097
43098 for ac_func in listen
43099 do
43100 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43101 echo "$as_me:$LINENO: checking for $ac_func" >&5
43102 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43103 if eval "test \"\${$as_ac_var+set}\" = set"; then
43104   echo $ECHO_N "(cached) $ECHO_C" >&6
43105 else
43106   cat >conftest.$ac_ext <<_ACEOF
43107 /* confdefs.h.  */
43108 _ACEOF
43109 cat confdefs.h >>conftest.$ac_ext
43110 cat >>conftest.$ac_ext <<_ACEOF
43111 /* end confdefs.h.  */
43112 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43113    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43114 #define $ac_func innocuous_$ac_func
43115
43116 /* System header to define __stub macros and hopefully few prototypes,
43117     which can conflict with char $ac_func (); below.
43118     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43119     <limits.h> exists even on freestanding compilers.  */
43120
43121 #ifdef __STDC__
43122 # include <limits.h>
43123 #else
43124 # include <assert.h>
43125 #endif
43126
43127 #undef $ac_func
43128
43129 /* Override any gcc2 internal prototype to avoid an error.  */
43130 #ifdef __cplusplus
43131 extern "C"
43132 {
43133 #endif
43134 /* We use char because int might match the return type of a gcc2
43135    builtin and then its argument prototype would still apply.  */
43136 char $ac_func ();
43137 /* The GNU C library defines this for functions which it implements
43138     to always fail with ENOSYS.  Some functions are actually named
43139     something starting with __ and the normal name is an alias.  */
43140 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43141 choke me
43142 #else
43143 char (*f) () = $ac_func;
43144 #endif
43145 #ifdef __cplusplus
43146 }
43147 #endif
43148
43149 int
43150 main ()
43151 {
43152 return f != $ac_func;
43153   ;
43154   return 0;
43155 }
43156 _ACEOF
43157 rm -f conftest.$ac_objext conftest$ac_exeext
43158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43159   (eval $ac_link) 2>conftest.er1
43160   ac_status=$?
43161   grep -v '^ *+' conftest.er1 >conftest.err
43162   rm -f conftest.er1
43163   cat conftest.err >&5
43164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43165   (exit $ac_status); } &&
43166          { ac_try='test -z "$ac_c_werror_flag"
43167                          || test ! -s conftest.err'
43168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43169   (eval $ac_try) 2>&5
43170   ac_status=$?
43171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43172   (exit $ac_status); }; } &&
43173          { ac_try='test -s conftest$ac_exeext'
43174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43175   (eval $ac_try) 2>&5
43176   ac_status=$?
43177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43178   (exit $ac_status); }; }; then
43179   eval "$as_ac_var=yes"
43180 else
43181   echo "$as_me: failed program was:" >&5
43182 sed 's/^/| /' conftest.$ac_ext >&5
43183
43184 eval "$as_ac_var=no"
43185 fi
43186 rm -f conftest.err conftest.$ac_objext \
43187       conftest$ac_exeext conftest.$ac_ext
43188 fi
43189 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43190 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43191 if test `eval echo '${'$as_ac_var'}'` = yes; then
43192   cat >>confdefs.h <<_ACEOF
43193 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43194 _ACEOF
43195  ice_have_listen=yes
43196 fi
43197 done
43198
43199 if test "${ice_have_listen}" = yes; then
43200 echo "$as_me:$LINENO: checking for listen declaration in sys/types.h sys/socket.h" >&5
43201 echo $ECHO_N "checking for listen declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
43202 if test "${ice_cv_have_listen_decl+set}" = set; then
43203   echo $ECHO_N "(cached) $ECHO_C" >&6
43204 else
43205
43206 ice_cv_have_listen_decl=no
43207 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
43208 ice_re_word='(^|[^a-zA-Z0-9_])'
43209 for header in sys/types.h sys/socket.h; do
43210 # Check for ordinary declaration
43211 cat >conftest.$ac_ext <<_ACEOF
43212 /* confdefs.h.  */
43213 _ACEOF
43214 cat confdefs.h >>conftest.$ac_ext
43215 cat >>conftest.$ac_ext <<_ACEOF
43216 /* end confdefs.h.  */
43217 #include <$header>
43218
43219 _ACEOF
43220 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43221   $EGREP "${ice_re_word}listen[         ]*\(" >/dev/null 2>&1; then
43222   ice_cv_have_listen_decl=yes
43223 fi
43224 rm -f conftest*
43225
43226 if test "$ice_cv_have_listen_decl" = yes; then
43227         break
43228 fi
43229 # Check for "fixed" declaration like "getpid _PARAMS((int))"
43230 cat >conftest.$ac_ext <<_ACEOF
43231 /* confdefs.h.  */
43232 _ACEOF
43233 cat confdefs.h >>conftest.$ac_ext
43234 cat >>conftest.$ac_ext <<_ACEOF
43235 /* end confdefs.h.  */
43236 #include <$header>
43237
43238 _ACEOF
43239 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43240   $EGREP "${ice_re_word}listen[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
43241   ice_cv_have_listen_decl=yes
43242 fi
43243 rm -f conftest*
43244
43245 if test "$ice_cv_have_listen_decl" = yes; then
43246         break
43247 fi
43248 done
43249
43250 fi
43251
43252 echo "$as_me:$LINENO: result: $ice_cv_have_listen_decl" >&5
43253 echo "${ECHO_T}$ice_cv_have_listen_decl" >&6
43254 if test "$ice_cv_have_listen_decl" = yes; then
43255
43256 cat >>confdefs.h <<_ACEOF
43257 #define HAVE_LISTEN_DECL 1
43258 _ACEOF
43259
43260 fi
43261 fi
43262
43263
43264 ice_have_lstat=no
43265
43266 for ac_func in lstat
43267 do
43268 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43269 echo "$as_me:$LINENO: checking for $ac_func" >&5
43270 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43271 if eval "test \"\${$as_ac_var+set}\" = set"; then
43272   echo $ECHO_N "(cached) $ECHO_C" >&6
43273 else
43274   cat >conftest.$ac_ext <<_ACEOF
43275 /* confdefs.h.  */
43276 _ACEOF
43277 cat confdefs.h >>conftest.$ac_ext
43278 cat >>conftest.$ac_ext <<_ACEOF
43279 /* end confdefs.h.  */
43280 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43281    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43282 #define $ac_func innocuous_$ac_func
43283
43284 /* System header to define __stub macros and hopefully few prototypes,
43285     which can conflict with char $ac_func (); below.
43286     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43287     <limits.h> exists even on freestanding compilers.  */
43288
43289 #ifdef __STDC__
43290 # include <limits.h>
43291 #else
43292 # include <assert.h>
43293 #endif
43294
43295 #undef $ac_func
43296
43297 /* Override any gcc2 internal prototype to avoid an error.  */
43298 #ifdef __cplusplus
43299 extern "C"
43300 {
43301 #endif
43302 /* We use char because int might match the return type of a gcc2
43303    builtin and then its argument prototype would still apply.  */
43304 char $ac_func ();
43305 /* The GNU C library defines this for functions which it implements
43306     to always fail with ENOSYS.  Some functions are actually named
43307     something starting with __ and the normal name is an alias.  */
43308 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43309 choke me
43310 #else
43311 char (*f) () = $ac_func;
43312 #endif
43313 #ifdef __cplusplus
43314 }
43315 #endif
43316
43317 int
43318 main ()
43319 {
43320 return f != $ac_func;
43321   ;
43322   return 0;
43323 }
43324 _ACEOF
43325 rm -f conftest.$ac_objext conftest$ac_exeext
43326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43327   (eval $ac_link) 2>conftest.er1
43328   ac_status=$?
43329   grep -v '^ *+' conftest.er1 >conftest.err
43330   rm -f conftest.er1
43331   cat conftest.err >&5
43332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43333   (exit $ac_status); } &&
43334          { ac_try='test -z "$ac_c_werror_flag"
43335                          || test ! -s conftest.err'
43336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43337   (eval $ac_try) 2>&5
43338   ac_status=$?
43339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43340   (exit $ac_status); }; } &&
43341          { ac_try='test -s conftest$ac_exeext'
43342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43343   (eval $ac_try) 2>&5
43344   ac_status=$?
43345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43346   (exit $ac_status); }; }; then
43347   eval "$as_ac_var=yes"
43348 else
43349   echo "$as_me: failed program was:" >&5
43350 sed 's/^/| /' conftest.$ac_ext >&5
43351
43352 eval "$as_ac_var=no"
43353 fi
43354 rm -f conftest.err conftest.$ac_objext \
43355       conftest$ac_exeext conftest.$ac_ext
43356 fi
43357 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43358 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43359 if test `eval echo '${'$as_ac_var'}'` = yes; then
43360   cat >>confdefs.h <<_ACEOF
43361 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43362 _ACEOF
43363  ice_have_lstat=yes
43364 fi
43365 done
43366
43367 if test "${ice_have_lstat}" = yes; then
43368 echo "$as_me:$LINENO: checking for lstat declaration in sys/types.h sys/stat.h" >&5
43369 echo $ECHO_N "checking for lstat declaration in sys/types.h sys/stat.h... $ECHO_C" >&6
43370 if test "${ice_cv_have_lstat_decl+set}" = set; then
43371   echo $ECHO_N "(cached) $ECHO_C" >&6
43372 else
43373
43374 ice_cv_have_lstat_decl=no
43375 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
43376 ice_re_word='(^|[^a-zA-Z0-9_])'
43377 for header in sys/types.h sys/stat.h; do
43378 # Check for ordinary declaration
43379 cat >conftest.$ac_ext <<_ACEOF
43380 /* confdefs.h.  */
43381 _ACEOF
43382 cat confdefs.h >>conftest.$ac_ext
43383 cat >>conftest.$ac_ext <<_ACEOF
43384 /* end confdefs.h.  */
43385 #include <$header>
43386
43387 _ACEOF
43388 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43389   $EGREP "${ice_re_word}lstat[  ]*\(" >/dev/null 2>&1; then
43390   ice_cv_have_lstat_decl=yes
43391 fi
43392 rm -f conftest*
43393
43394 if test "$ice_cv_have_lstat_decl" = yes; then
43395         break
43396 fi
43397 # Check for "fixed" declaration like "getpid _PARAMS((int))"
43398 cat >conftest.$ac_ext <<_ACEOF
43399 /* confdefs.h.  */
43400 _ACEOF
43401 cat confdefs.h >>conftest.$ac_ext
43402 cat >>conftest.$ac_ext <<_ACEOF
43403 /* end confdefs.h.  */
43404 #include <$header>
43405
43406 _ACEOF
43407 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43408   $EGREP "${ice_re_word}lstat[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
43409   ice_cv_have_lstat_decl=yes
43410 fi
43411 rm -f conftest*
43412
43413 if test "$ice_cv_have_lstat_decl" = yes; then
43414         break
43415 fi
43416 done
43417
43418 fi
43419
43420 echo "$as_me:$LINENO: result: $ice_cv_have_lstat_decl" >&5
43421 echo "${ECHO_T}$ice_cv_have_lstat_decl" >&6
43422 if test "$ice_cv_have_lstat_decl" = yes; then
43423
43424 cat >>confdefs.h <<_ACEOF
43425 #define HAVE_LSTAT_DECL 1
43426 _ACEOF
43427
43428 fi
43429 fi
43430
43431
43432 ice_have_malloc=no
43433
43434 for ac_func in malloc
43435 do
43436 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43437 echo "$as_me:$LINENO: checking for $ac_func" >&5
43438 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43439 if eval "test \"\${$as_ac_var+set}\" = set"; then
43440   echo $ECHO_N "(cached) $ECHO_C" >&6
43441 else
43442   cat >conftest.$ac_ext <<_ACEOF
43443 /* confdefs.h.  */
43444 _ACEOF
43445 cat confdefs.h >>conftest.$ac_ext
43446 cat >>conftest.$ac_ext <<_ACEOF
43447 /* end confdefs.h.  */
43448 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43449    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43450 #define $ac_func innocuous_$ac_func
43451
43452 /* System header to define __stub macros and hopefully few prototypes,
43453     which can conflict with char $ac_func (); below.
43454     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43455     <limits.h> exists even on freestanding compilers.  */
43456
43457 #ifdef __STDC__
43458 # include <limits.h>
43459 #else
43460 # include <assert.h>
43461 #endif
43462
43463 #undef $ac_func
43464
43465 /* Override any gcc2 internal prototype to avoid an error.  */
43466 #ifdef __cplusplus
43467 extern "C"
43468 {
43469 #endif
43470 /* We use char because int might match the return type of a gcc2
43471    builtin and then its argument prototype would still apply.  */
43472 char $ac_func ();
43473 /* The GNU C library defines this for functions which it implements
43474     to always fail with ENOSYS.  Some functions are actually named
43475     something starting with __ and the normal name is an alias.  */
43476 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43477 choke me
43478 #else
43479 char (*f) () = $ac_func;
43480 #endif
43481 #ifdef __cplusplus
43482 }
43483 #endif
43484
43485 int
43486 main ()
43487 {
43488 return f != $ac_func;
43489   ;
43490   return 0;
43491 }
43492 _ACEOF
43493 rm -f conftest.$ac_objext conftest$ac_exeext
43494 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43495   (eval $ac_link) 2>conftest.er1
43496   ac_status=$?
43497   grep -v '^ *+' conftest.er1 >conftest.err
43498   rm -f conftest.er1
43499   cat conftest.err >&5
43500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43501   (exit $ac_status); } &&
43502          { ac_try='test -z "$ac_c_werror_flag"
43503                          || test ! -s conftest.err'
43504   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43505   (eval $ac_try) 2>&5
43506   ac_status=$?
43507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43508   (exit $ac_status); }; } &&
43509          { ac_try='test -s conftest$ac_exeext'
43510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43511   (eval $ac_try) 2>&5
43512   ac_status=$?
43513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43514   (exit $ac_status); }; }; then
43515   eval "$as_ac_var=yes"
43516 else
43517   echo "$as_me: failed program was:" >&5
43518 sed 's/^/| /' conftest.$ac_ext >&5
43519
43520 eval "$as_ac_var=no"
43521 fi
43522 rm -f conftest.err conftest.$ac_objext \
43523       conftest$ac_exeext conftest.$ac_ext
43524 fi
43525 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43526 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43527 if test `eval echo '${'$as_ac_var'}'` = yes; then
43528   cat >>confdefs.h <<_ACEOF
43529 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43530 _ACEOF
43531  ice_have_malloc=yes
43532 fi
43533 done
43534
43535 if test "${ice_have_malloc}" = yes; then
43536 echo "$as_me:$LINENO: checking for malloc declaration in stdlib.h" >&5
43537 echo $ECHO_N "checking for malloc declaration in stdlib.h... $ECHO_C" >&6
43538 if test "${ice_cv_have_malloc_decl+set}" = set; then
43539   echo $ECHO_N "(cached) $ECHO_C" >&6
43540 else
43541
43542 ice_cv_have_malloc_decl=no
43543 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
43544 ice_re_word='(^|[^a-zA-Z0-9_])'
43545 for header in stdlib.h; do
43546 # Check for ordinary declaration
43547 cat >conftest.$ac_ext <<_ACEOF
43548 /* confdefs.h.  */
43549 _ACEOF
43550 cat confdefs.h >>conftest.$ac_ext
43551 cat >>conftest.$ac_ext <<_ACEOF
43552 /* end confdefs.h.  */
43553 #include <$header>
43554
43555 _ACEOF
43556 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43557   $EGREP "${ice_re_word}malloc[         ]*\(" >/dev/null 2>&1; then
43558   ice_cv_have_malloc_decl=yes
43559 fi
43560 rm -f conftest*
43561
43562 if test "$ice_cv_have_malloc_decl" = yes; then
43563         break
43564 fi
43565 # Check for "fixed" declaration like "getpid _PARAMS((int))"
43566 cat >conftest.$ac_ext <<_ACEOF
43567 /* confdefs.h.  */
43568 _ACEOF
43569 cat confdefs.h >>conftest.$ac_ext
43570 cat >>conftest.$ac_ext <<_ACEOF
43571 /* end confdefs.h.  */
43572 #include <$header>
43573
43574 _ACEOF
43575 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43576   $EGREP "${ice_re_word}malloc[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
43577   ice_cv_have_malloc_decl=yes
43578 fi
43579 rm -f conftest*
43580
43581 if test "$ice_cv_have_malloc_decl" = yes; then
43582         break
43583 fi
43584 done
43585
43586 fi
43587
43588 echo "$as_me:$LINENO: result: $ice_cv_have_malloc_decl" >&5
43589 echo "${ECHO_T}$ice_cv_have_malloc_decl" >&6
43590 if test "$ice_cv_have_malloc_decl" = yes; then
43591
43592 cat >>confdefs.h <<_ACEOF
43593 #define HAVE_MALLOC_DECL 1
43594 _ACEOF
43595
43596 fi
43597 fi
43598
43599
43600 for ac_func in memmove
43601 do
43602 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43603 echo "$as_me:$LINENO: checking for $ac_func" >&5
43604 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43605 if eval "test \"\${$as_ac_var+set}\" = set"; then
43606   echo $ECHO_N "(cached) $ECHO_C" >&6
43607 else
43608   cat >conftest.$ac_ext <<_ACEOF
43609 /* confdefs.h.  */
43610 _ACEOF
43611 cat confdefs.h >>conftest.$ac_ext
43612 cat >>conftest.$ac_ext <<_ACEOF
43613 /* end confdefs.h.  */
43614 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43615    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43616 #define $ac_func innocuous_$ac_func
43617
43618 /* System header to define __stub macros and hopefully few prototypes,
43619     which can conflict with char $ac_func (); below.
43620     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43621     <limits.h> exists even on freestanding compilers.  */
43622
43623 #ifdef __STDC__
43624 # include <limits.h>
43625 #else
43626 # include <assert.h>
43627 #endif
43628
43629 #undef $ac_func
43630
43631 /* Override any gcc2 internal prototype to avoid an error.  */
43632 #ifdef __cplusplus
43633 extern "C"
43634 {
43635 #endif
43636 /* We use char because int might match the return type of a gcc2
43637    builtin and then its argument prototype would still apply.  */
43638 char $ac_func ();
43639 /* The GNU C library defines this for functions which it implements
43640     to always fail with ENOSYS.  Some functions are actually named
43641     something starting with __ and the normal name is an alias.  */
43642 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43643 choke me
43644 #else
43645 char (*f) () = $ac_func;
43646 #endif
43647 #ifdef __cplusplus
43648 }
43649 #endif
43650
43651 int
43652 main ()
43653 {
43654 return f != $ac_func;
43655   ;
43656   return 0;
43657 }
43658 _ACEOF
43659 rm -f conftest.$ac_objext conftest$ac_exeext
43660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43661   (eval $ac_link) 2>conftest.er1
43662   ac_status=$?
43663   grep -v '^ *+' conftest.er1 >conftest.err
43664   rm -f conftest.er1
43665   cat conftest.err >&5
43666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43667   (exit $ac_status); } &&
43668          { ac_try='test -z "$ac_c_werror_flag"
43669                          || test ! -s conftest.err'
43670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43671   (eval $ac_try) 2>&5
43672   ac_status=$?
43673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43674   (exit $ac_status); }; } &&
43675          { ac_try='test -s conftest$ac_exeext'
43676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43677   (eval $ac_try) 2>&5
43678   ac_status=$?
43679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43680   (exit $ac_status); }; }; then
43681   eval "$as_ac_var=yes"
43682 else
43683   echo "$as_me: failed program was:" >&5
43684 sed 's/^/| /' conftest.$ac_ext >&5
43685
43686 eval "$as_ac_var=no"
43687 fi
43688 rm -f conftest.err conftest.$ac_objext \
43689       conftest$ac_exeext conftest.$ac_ext
43690 fi
43691 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43692 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43693 if test `eval echo '${'$as_ac_var'}'` = yes; then
43694   cat >>confdefs.h <<_ACEOF
43695 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43696 _ACEOF
43697
43698 else
43699   case $LIBOBJS in
43700     "$ac_func.$ac_objext"   | \
43701   *" $ac_func.$ac_objext"   | \
43702     "$ac_func.$ac_objext "* | \
43703   *" $ac_func.$ac_objext "* ) ;;
43704   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
43705 esac
43706
43707 fi
43708 done
43709
43710
43711
43712 ice_have_memmove=no
43713
43714 for ac_func in memmove
43715 do
43716 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43717 echo "$as_me:$LINENO: checking for $ac_func" >&5
43718 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43719 if eval "test \"\${$as_ac_var+set}\" = set"; then
43720   echo $ECHO_N "(cached) $ECHO_C" >&6
43721 else
43722   cat >conftest.$ac_ext <<_ACEOF
43723 /* confdefs.h.  */
43724 _ACEOF
43725 cat confdefs.h >>conftest.$ac_ext
43726 cat >>conftest.$ac_ext <<_ACEOF
43727 /* end confdefs.h.  */
43728 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43729    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43730 #define $ac_func innocuous_$ac_func
43731
43732 /* System header to define __stub macros and hopefully few prototypes,
43733     which can conflict with char $ac_func (); below.
43734     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43735     <limits.h> exists even on freestanding compilers.  */
43736
43737 #ifdef __STDC__
43738 # include <limits.h>
43739 #else
43740 # include <assert.h>
43741 #endif
43742
43743 #undef $ac_func
43744
43745 /* Override any gcc2 internal prototype to avoid an error.  */
43746 #ifdef __cplusplus
43747 extern "C"
43748 {
43749 #endif
43750 /* We use char because int might match the return type of a gcc2
43751    builtin and then its argument prototype would still apply.  */
43752 char $ac_func ();
43753 /* The GNU C library defines this for functions which it implements
43754     to always fail with ENOSYS.  Some functions are actually named
43755     something starting with __ and the normal name is an alias.  */
43756 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43757 choke me
43758 #else
43759 char (*f) () = $ac_func;
43760 #endif
43761 #ifdef __cplusplus
43762 }
43763 #endif
43764
43765 int
43766 main ()
43767 {
43768 return f != $ac_func;
43769   ;
43770   return 0;
43771 }
43772 _ACEOF
43773 rm -f conftest.$ac_objext conftest$ac_exeext
43774 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43775   (eval $ac_link) 2>conftest.er1
43776   ac_status=$?
43777   grep -v '^ *+' conftest.er1 >conftest.err
43778   rm -f conftest.er1
43779   cat conftest.err >&5
43780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43781   (exit $ac_status); } &&
43782          { ac_try='test -z "$ac_c_werror_flag"
43783                          || test ! -s conftest.err'
43784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43785   (eval $ac_try) 2>&5
43786   ac_status=$?
43787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43788   (exit $ac_status); }; } &&
43789          { ac_try='test -s conftest$ac_exeext'
43790   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43791   (eval $ac_try) 2>&5
43792   ac_status=$?
43793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43794   (exit $ac_status); }; }; then
43795   eval "$as_ac_var=yes"
43796 else
43797   echo "$as_me: failed program was:" >&5
43798 sed 's/^/| /' conftest.$ac_ext >&5
43799
43800 eval "$as_ac_var=no"
43801 fi
43802 rm -f conftest.err conftest.$ac_objext \
43803       conftest$ac_exeext conftest.$ac_ext
43804 fi
43805 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43806 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43807 if test `eval echo '${'$as_ac_var'}'` = yes; then
43808   cat >>confdefs.h <<_ACEOF
43809 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43810 _ACEOF
43811  ice_have_memmove=yes
43812 fi
43813 done
43814
43815 if test "${ice_have_memmove}" = yes; then
43816 echo "$as_me:$LINENO: checking for memmove declaration in string.h strings.h" >&5
43817 echo $ECHO_N "checking for memmove declaration in string.h strings.h... $ECHO_C" >&6
43818 if test "${ice_cv_have_memmove_decl+set}" = set; then
43819   echo $ECHO_N "(cached) $ECHO_C" >&6
43820 else
43821
43822 ice_cv_have_memmove_decl=no
43823 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
43824 ice_re_word='(^|[^a-zA-Z0-9_])'
43825 for header in string.h strings.h; do
43826 # Check for ordinary declaration
43827 cat >conftest.$ac_ext <<_ACEOF
43828 /* confdefs.h.  */
43829 _ACEOF
43830 cat confdefs.h >>conftest.$ac_ext
43831 cat >>conftest.$ac_ext <<_ACEOF
43832 /* end confdefs.h.  */
43833 #include <$header>
43834
43835 _ACEOF
43836 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43837   $EGREP "${ice_re_word}memmove[        ]*\(" >/dev/null 2>&1; then
43838   ice_cv_have_memmove_decl=yes
43839 fi
43840 rm -f conftest*
43841
43842 if test "$ice_cv_have_memmove_decl" = yes; then
43843         break
43844 fi
43845 # Check for "fixed" declaration like "getpid _PARAMS((int))"
43846 cat >conftest.$ac_ext <<_ACEOF
43847 /* confdefs.h.  */
43848 _ACEOF
43849 cat confdefs.h >>conftest.$ac_ext
43850 cat >>conftest.$ac_ext <<_ACEOF
43851 /* end confdefs.h.  */
43852 #include <$header>
43853
43854 _ACEOF
43855 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43856   $EGREP "${ice_re_word}memmove[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
43857   ice_cv_have_memmove_decl=yes
43858 fi
43859 rm -f conftest*
43860
43861 if test "$ice_cv_have_memmove_decl" = yes; then
43862         break
43863 fi
43864 done
43865
43866 fi
43867
43868 echo "$as_me:$LINENO: result: $ice_cv_have_memmove_decl" >&5
43869 echo "${ECHO_T}$ice_cv_have_memmove_decl" >&6
43870 if test "$ice_cv_have_memmove_decl" = yes; then
43871
43872 cat >>confdefs.h <<_ACEOF
43873 #define HAVE_MEMMOVE_DECL 1
43874 _ACEOF
43875
43876 fi
43877 fi
43878
43879
43880 ice_have_memset=no
43881
43882 for ac_func in memset
43883 do
43884 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43885 echo "$as_me:$LINENO: checking for $ac_func" >&5
43886 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43887 if eval "test \"\${$as_ac_var+set}\" = set"; then
43888   echo $ECHO_N "(cached) $ECHO_C" >&6
43889 else
43890   cat >conftest.$ac_ext <<_ACEOF
43891 /* confdefs.h.  */
43892 _ACEOF
43893 cat confdefs.h >>conftest.$ac_ext
43894 cat >>conftest.$ac_ext <<_ACEOF
43895 /* end confdefs.h.  */
43896 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43897    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43898 #define $ac_func innocuous_$ac_func
43899
43900 /* System header to define __stub macros and hopefully few prototypes,
43901     which can conflict with char $ac_func (); below.
43902     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43903     <limits.h> exists even on freestanding compilers.  */
43904
43905 #ifdef __STDC__
43906 # include <limits.h>
43907 #else
43908 # include <assert.h>
43909 #endif
43910
43911 #undef $ac_func
43912
43913 /* Override any gcc2 internal prototype to avoid an error.  */
43914 #ifdef __cplusplus
43915 extern "C"
43916 {
43917 #endif
43918 /* We use char because int might match the return type of a gcc2
43919    builtin and then its argument prototype would still apply.  */
43920 char $ac_func ();
43921 /* The GNU C library defines this for functions which it implements
43922     to always fail with ENOSYS.  Some functions are actually named
43923     something starting with __ and the normal name is an alias.  */
43924 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43925 choke me
43926 #else
43927 char (*f) () = $ac_func;
43928 #endif
43929 #ifdef __cplusplus
43930 }
43931 #endif
43932
43933 int
43934 main ()
43935 {
43936 return f != $ac_func;
43937   ;
43938   return 0;
43939 }
43940 _ACEOF
43941 rm -f conftest.$ac_objext conftest$ac_exeext
43942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43943   (eval $ac_link) 2>conftest.er1
43944   ac_status=$?
43945   grep -v '^ *+' conftest.er1 >conftest.err
43946   rm -f conftest.er1
43947   cat conftest.err >&5
43948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43949   (exit $ac_status); } &&
43950          { ac_try='test -z "$ac_c_werror_flag"
43951                          || test ! -s conftest.err'
43952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43953   (eval $ac_try) 2>&5
43954   ac_status=$?
43955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43956   (exit $ac_status); }; } &&
43957          { ac_try='test -s conftest$ac_exeext'
43958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43959   (eval $ac_try) 2>&5
43960   ac_status=$?
43961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43962   (exit $ac_status); }; }; then
43963   eval "$as_ac_var=yes"
43964 else
43965   echo "$as_me: failed program was:" >&5
43966 sed 's/^/| /' conftest.$ac_ext >&5
43967
43968 eval "$as_ac_var=no"
43969 fi
43970 rm -f conftest.err conftest.$ac_objext \
43971       conftest$ac_exeext conftest.$ac_ext
43972 fi
43973 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43974 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43975 if test `eval echo '${'$as_ac_var'}'` = yes; then
43976   cat >>confdefs.h <<_ACEOF
43977 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43978 _ACEOF
43979  ice_have_memset=yes
43980 fi
43981 done
43982
43983 if test "${ice_have_memset}" = yes; then
43984 echo "$as_me:$LINENO: checking for memset declaration in string.h strings.h" >&5
43985 echo $ECHO_N "checking for memset declaration in string.h strings.h... $ECHO_C" >&6
43986 if test "${ice_cv_have_memset_decl+set}" = set; then
43987   echo $ECHO_N "(cached) $ECHO_C" >&6
43988 else
43989
43990 ice_cv_have_memset_decl=no
43991 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
43992 ice_re_word='(^|[^a-zA-Z0-9_])'
43993 for header in string.h strings.h; do
43994 # Check for ordinary declaration
43995 cat >conftest.$ac_ext <<_ACEOF
43996 /* confdefs.h.  */
43997 _ACEOF
43998 cat confdefs.h >>conftest.$ac_ext
43999 cat >>conftest.$ac_ext <<_ACEOF
44000 /* end confdefs.h.  */
44001 #include <$header>
44002
44003 _ACEOF
44004 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44005   $EGREP "${ice_re_word}memset[         ]*\(" >/dev/null 2>&1; then
44006   ice_cv_have_memset_decl=yes
44007 fi
44008 rm -f conftest*
44009
44010 if test "$ice_cv_have_memset_decl" = yes; then
44011         break
44012 fi
44013 # Check for "fixed" declaration like "getpid _PARAMS((int))"
44014 cat >conftest.$ac_ext <<_ACEOF
44015 /* confdefs.h.  */
44016 _ACEOF
44017 cat confdefs.h >>conftest.$ac_ext
44018 cat >>conftest.$ac_ext <<_ACEOF
44019 /* end confdefs.h.  */
44020 #include <$header>
44021
44022 _ACEOF
44023 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44024   $EGREP "${ice_re_word}memset[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
44025   ice_cv_have_memset_decl=yes
44026 fi
44027 rm -f conftest*
44028
44029 if test "$ice_cv_have_memset_decl" = yes; then
44030         break
44031 fi
44032 done
44033
44034 fi
44035
44036 echo "$as_me:$LINENO: result: $ice_cv_have_memset_decl" >&5
44037 echo "${ECHO_T}$ice_cv_have_memset_decl" >&6
44038 if test "$ice_cv_have_memset_decl" = yes; then
44039
44040 cat >>confdefs.h <<_ACEOF
44041 #define HAVE_MEMSET_DECL 1
44042 _ACEOF
44043
44044 fi
44045 fi
44046
44047
44048 for ac_func in mkdir
44049 do
44050 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44051 echo "$as_me:$LINENO: checking for $ac_func" >&5
44052 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44053 if eval "test \"\${$as_ac_var+set}\" = set"; then
44054   echo $ECHO_N "(cached) $ECHO_C" >&6
44055 else
44056   cat >conftest.$ac_ext <<_ACEOF
44057 /* confdefs.h.  */
44058 _ACEOF
44059 cat confdefs.h >>conftest.$ac_ext
44060 cat >>conftest.$ac_ext <<_ACEOF
44061 /* end confdefs.h.  */
44062 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44063    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44064 #define $ac_func innocuous_$ac_func
44065
44066 /* System header to define __stub macros and hopefully few prototypes,
44067     which can conflict with char $ac_func (); below.
44068     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44069     <limits.h> exists even on freestanding compilers.  */
44070
44071 #ifdef __STDC__
44072 # include <limits.h>
44073 #else
44074 # include <assert.h>
44075 #endif
44076
44077 #undef $ac_func
44078
44079 /* Override any gcc2 internal prototype to avoid an error.  */
44080 #ifdef __cplusplus
44081 extern "C"
44082 {
44083 #endif
44084 /* We use char because int might match the return type of a gcc2
44085    builtin and then its argument prototype would still apply.  */
44086 char $ac_func ();
44087 /* The GNU C library defines this for functions which it implements
44088     to always fail with ENOSYS.  Some functions are actually named
44089     something starting with __ and the normal name is an alias.  */
44090 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44091 choke me
44092 #else
44093 char (*f) () = $ac_func;
44094 #endif
44095 #ifdef __cplusplus
44096 }
44097 #endif
44098
44099 int
44100 main ()
44101 {
44102 return f != $ac_func;
44103   ;
44104   return 0;
44105 }
44106 _ACEOF
44107 rm -f conftest.$ac_objext conftest$ac_exeext
44108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44109   (eval $ac_link) 2>conftest.er1
44110   ac_status=$?
44111   grep -v '^ *+' conftest.er1 >conftest.err
44112   rm -f conftest.er1
44113   cat conftest.err >&5
44114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44115   (exit $ac_status); } &&
44116          { ac_try='test -z "$ac_c_werror_flag"
44117                          || test ! -s conftest.err'
44118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44119   (eval $ac_try) 2>&5
44120   ac_status=$?
44121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44122   (exit $ac_status); }; } &&
44123          { ac_try='test -s conftest$ac_exeext'
44124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44125   (eval $ac_try) 2>&5
44126   ac_status=$?
44127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44128   (exit $ac_status); }; }; then
44129   eval "$as_ac_var=yes"
44130 else
44131   echo "$as_me: failed program was:" >&5
44132 sed 's/^/| /' conftest.$ac_ext >&5
44133
44134 eval "$as_ac_var=no"
44135 fi
44136 rm -f conftest.err conftest.$ac_objext \
44137       conftest$ac_exeext conftest.$ac_ext
44138 fi
44139 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44140 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44141 if test `eval echo '${'$as_ac_var'}'` = yes; then
44142   cat >>confdefs.h <<_ACEOF
44143 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44144 _ACEOF
44145
44146 fi
44147 done
44148
44149
44150 ice_have_mkstemp=no
44151
44152 for ac_func in mkstemp
44153 do
44154 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44155 echo "$as_me:$LINENO: checking for $ac_func" >&5
44156 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44157 if eval "test \"\${$as_ac_var+set}\" = set"; then
44158   echo $ECHO_N "(cached) $ECHO_C" >&6
44159 else
44160   cat >conftest.$ac_ext <<_ACEOF
44161 /* confdefs.h.  */
44162 _ACEOF
44163 cat confdefs.h >>conftest.$ac_ext
44164 cat >>conftest.$ac_ext <<_ACEOF
44165 /* end confdefs.h.  */
44166 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44167    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44168 #define $ac_func innocuous_$ac_func
44169
44170 /* System header to define __stub macros and hopefully few prototypes,
44171     which can conflict with char $ac_func (); below.
44172     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44173     <limits.h> exists even on freestanding compilers.  */
44174
44175 #ifdef __STDC__
44176 # include <limits.h>
44177 #else
44178 # include <assert.h>
44179 #endif
44180
44181 #undef $ac_func
44182
44183 /* Override any gcc2 internal prototype to avoid an error.  */
44184 #ifdef __cplusplus
44185 extern "C"
44186 {
44187 #endif
44188 /* We use char because int might match the return type of a gcc2
44189    builtin and then its argument prototype would still apply.  */
44190 char $ac_func ();
44191 /* The GNU C library defines this for functions which it implements
44192     to always fail with ENOSYS.  Some functions are actually named
44193     something starting with __ and the normal name is an alias.  */
44194 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44195 choke me
44196 #else
44197 char (*f) () = $ac_func;
44198 #endif
44199 #ifdef __cplusplus
44200 }
44201 #endif
44202
44203 int
44204 main ()
44205 {
44206 return f != $ac_func;
44207   ;
44208   return 0;
44209 }
44210 _ACEOF
44211 rm -f conftest.$ac_objext conftest$ac_exeext
44212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44213   (eval $ac_link) 2>conftest.er1
44214   ac_status=$?
44215   grep -v '^ *+' conftest.er1 >conftest.err
44216   rm -f conftest.er1
44217   cat conftest.err >&5
44218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44219   (exit $ac_status); } &&
44220          { ac_try='test -z "$ac_c_werror_flag"
44221                          || test ! -s conftest.err'
44222   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44223   (eval $ac_try) 2>&5
44224   ac_status=$?
44225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44226   (exit $ac_status); }; } &&
44227          { ac_try='test -s conftest$ac_exeext'
44228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44229   (eval $ac_try) 2>&5
44230   ac_status=$?
44231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44232   (exit $ac_status); }; }; then
44233   eval "$as_ac_var=yes"
44234 else
44235   echo "$as_me: failed program was:" >&5
44236 sed 's/^/| /' conftest.$ac_ext >&5
44237
44238 eval "$as_ac_var=no"
44239 fi
44240 rm -f conftest.err conftest.$ac_objext \
44241       conftest$ac_exeext conftest.$ac_ext
44242 fi
44243 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44244 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44245 if test `eval echo '${'$as_ac_var'}'` = yes; then
44246   cat >>confdefs.h <<_ACEOF
44247 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44248 _ACEOF
44249  ice_have_mkstemp=yes
44250 fi
44251 done
44252
44253 if test "${ice_have_mkstemp}" = yes; then
44254 echo "$as_me:$LINENO: checking for mkstemp declaration in stdlib.h" >&5
44255 echo $ECHO_N "checking for mkstemp declaration in stdlib.h... $ECHO_C" >&6
44256 if test "${ice_cv_have_mkstemp_decl+set}" = set; then
44257   echo $ECHO_N "(cached) $ECHO_C" >&6
44258 else
44259
44260 ice_cv_have_mkstemp_decl=no
44261 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
44262 ice_re_word='(^|[^a-zA-Z0-9_])'
44263 for header in stdlib.h; do
44264 # Check for ordinary declaration
44265 cat >conftest.$ac_ext <<_ACEOF
44266 /* confdefs.h.  */
44267 _ACEOF
44268 cat confdefs.h >>conftest.$ac_ext
44269 cat >>conftest.$ac_ext <<_ACEOF
44270 /* end confdefs.h.  */
44271 #include <$header>
44272
44273 _ACEOF
44274 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44275   $EGREP "${ice_re_word}mkstemp[        ]*\(" >/dev/null 2>&1; then
44276   ice_cv_have_mkstemp_decl=yes
44277 fi
44278 rm -f conftest*
44279
44280 if test "$ice_cv_have_mkstemp_decl" = yes; then
44281         break
44282 fi
44283 # Check for "fixed" declaration like "getpid _PARAMS((int))"
44284 cat >conftest.$ac_ext <<_ACEOF
44285 /* confdefs.h.  */
44286 _ACEOF
44287 cat confdefs.h >>conftest.$ac_ext
44288 cat >>conftest.$ac_ext <<_ACEOF
44289 /* end confdefs.h.  */
44290 #include <$header>
44291
44292 _ACEOF
44293 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44294   $EGREP "${ice_re_word}mkstemp[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
44295   ice_cv_have_mkstemp_decl=yes
44296 fi
44297 rm -f conftest*
44298
44299 if test "$ice_cv_have_mkstemp_decl" = yes; then
44300         break
44301 fi
44302 done
44303
44304 fi
44305
44306 echo "$as_me:$LINENO: result: $ice_cv_have_mkstemp_decl" >&5
44307 echo "${ECHO_T}$ice_cv_have_mkstemp_decl" >&6
44308 if test "$ice_cv_have_mkstemp_decl" = yes; then
44309
44310 cat >>confdefs.h <<_ACEOF
44311 #define HAVE_MKSTEMP_DECL 1
44312 _ACEOF
44313
44314 fi
44315 fi
44316
44317
44318 ice_have_mktemp=no
44319
44320 for ac_func in mktemp
44321 do
44322 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44323 echo "$as_me:$LINENO: checking for $ac_func" >&5
44324 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44325 if eval "test \"\${$as_ac_var+set}\" = set"; then
44326   echo $ECHO_N "(cached) $ECHO_C" >&6
44327 else
44328   cat >conftest.$ac_ext <<_ACEOF
44329 /* confdefs.h.  */
44330 _ACEOF
44331 cat confdefs.h >>conftest.$ac_ext
44332 cat >>conftest.$ac_ext <<_ACEOF
44333 /* end confdefs.h.  */
44334 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44335    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44336 #define $ac_func innocuous_$ac_func
44337
44338 /* System header to define __stub macros and hopefully few prototypes,
44339     which can conflict with char $ac_func (); below.
44340     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44341     <limits.h> exists even on freestanding compilers.  */
44342
44343 #ifdef __STDC__
44344 # include <limits.h>
44345 #else
44346 # include <assert.h>
44347 #endif
44348
44349 #undef $ac_func
44350
44351 /* Override any gcc2 internal prototype to avoid an error.  */
44352 #ifdef __cplusplus
44353 extern "C"
44354 {
44355 #endif
44356 /* We use char because int might match the return type of a gcc2
44357    builtin and then its argument prototype would still apply.  */
44358 char $ac_func ();
44359 /* The GNU C library defines this for functions which it implements
44360     to always fail with ENOSYS.  Some functions are actually named
44361     something starting with __ and the normal name is an alias.  */
44362 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44363 choke me
44364 #else
44365 char (*f) () = $ac_func;
44366 #endif
44367 #ifdef __cplusplus
44368 }
44369 #endif
44370
44371 int
44372 main ()
44373 {
44374 return f != $ac_func;
44375   ;
44376   return 0;
44377 }
44378 _ACEOF
44379 rm -f conftest.$ac_objext conftest$ac_exeext
44380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44381   (eval $ac_link) 2>conftest.er1
44382   ac_status=$?
44383   grep -v '^ *+' conftest.er1 >conftest.err
44384   rm -f conftest.er1
44385   cat conftest.err >&5
44386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44387   (exit $ac_status); } &&
44388          { ac_try='test -z "$ac_c_werror_flag"
44389                          || test ! -s conftest.err'
44390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44391   (eval $ac_try) 2>&5
44392   ac_status=$?
44393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44394   (exit $ac_status); }; } &&
44395          { ac_try='test -s conftest$ac_exeext'
44396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44397   (eval $ac_try) 2>&5
44398   ac_status=$?
44399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44400   (exit $ac_status); }; }; then
44401   eval "$as_ac_var=yes"
44402 else
44403   echo "$as_me: failed program was:" >&5
44404 sed 's/^/| /' conftest.$ac_ext >&5
44405
44406 eval "$as_ac_var=no"
44407 fi
44408 rm -f conftest.err conftest.$ac_objext \
44409       conftest$ac_exeext conftest.$ac_ext
44410 fi
44411 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44412 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44413 if test `eval echo '${'$as_ac_var'}'` = yes; then
44414   cat >>confdefs.h <<_ACEOF
44415 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44416 _ACEOF
44417  ice_have_mktemp=yes
44418 fi
44419 done
44420
44421 if test "${ice_have_mktemp}" = yes; then
44422 echo "$as_me:$LINENO: checking for mktemp declaration in stdlib.h" >&5
44423 echo $ECHO_N "checking for mktemp declaration in stdlib.h... $ECHO_C" >&6
44424 if test "${ice_cv_have_mktemp_decl+set}" = set; then
44425   echo $ECHO_N "(cached) $ECHO_C" >&6
44426 else
44427
44428 ice_cv_have_mktemp_decl=no
44429 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
44430 ice_re_word='(^|[^a-zA-Z0-9_])'
44431 for header in stdlib.h; do
44432 # Check for ordinary declaration
44433 cat >conftest.$ac_ext <<_ACEOF
44434 /* confdefs.h.  */
44435 _ACEOF
44436 cat confdefs.h >>conftest.$ac_ext
44437 cat >>conftest.$ac_ext <<_ACEOF
44438 /* end confdefs.h.  */
44439 #include <$header>
44440
44441 _ACEOF
44442 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44443   $EGREP "${ice_re_word}mktemp[         ]*\(" >/dev/null 2>&1; then
44444   ice_cv_have_mktemp_decl=yes
44445 fi
44446 rm -f conftest*
44447
44448 if test "$ice_cv_have_mktemp_decl" = yes; then
44449         break
44450 fi
44451 # Check for "fixed" declaration like "getpid _PARAMS((int))"
44452 cat >conftest.$ac_ext <<_ACEOF
44453 /* confdefs.h.  */
44454 _ACEOF
44455 cat confdefs.h >>conftest.$ac_ext
44456 cat >>conftest.$ac_ext <<_ACEOF
44457 /* end confdefs.h.  */
44458 #include <$header>
44459
44460 _ACEOF
44461 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44462   $EGREP "${ice_re_word}mktemp[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
44463   ice_cv_have_mktemp_decl=yes
44464 fi
44465 rm -f conftest*
44466
44467 if test "$ice_cv_have_mktemp_decl" = yes; then
44468         break
44469 fi
44470 done
44471
44472 fi
44473
44474 echo "$as_me:$LINENO: result: $ice_cv_have_mktemp_decl" >&5
44475 echo "${ECHO_T}$ice_cv_have_mktemp_decl" >&6
44476 if test "$ice_cv_have_mktemp_decl" = yes; then
44477
44478 cat >>confdefs.h <<_ACEOF
44479 #define HAVE_MKTEMP_DECL 1
44480 _ACEOF
44481
44482 fi
44483 fi
44484
44485
44486 for ac_func in mktime
44487 do
44488 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44489 echo "$as_me:$LINENO: checking for $ac_func" >&5
44490 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44491 if eval "test \"\${$as_ac_var+set}\" = set"; then
44492   echo $ECHO_N "(cached) $ECHO_C" >&6
44493 else
44494   cat >conftest.$ac_ext <<_ACEOF
44495 /* confdefs.h.  */
44496 _ACEOF
44497 cat confdefs.h >>conftest.$ac_ext
44498 cat >>conftest.$ac_ext <<_ACEOF
44499 /* end confdefs.h.  */
44500 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44501    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44502 #define $ac_func innocuous_$ac_func
44503
44504 /* System header to define __stub macros and hopefully few prototypes,
44505     which can conflict with char $ac_func (); below.
44506     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44507     <limits.h> exists even on freestanding compilers.  */
44508
44509 #ifdef __STDC__
44510 # include <limits.h>
44511 #else
44512 # include <assert.h>
44513 #endif
44514
44515 #undef $ac_func
44516
44517 /* Override any gcc2 internal prototype to avoid an error.  */
44518 #ifdef __cplusplus
44519 extern "C"
44520 {
44521 #endif
44522 /* We use char because int might match the return type of a gcc2
44523    builtin and then its argument prototype would still apply.  */
44524 char $ac_func ();
44525 /* The GNU C library defines this for functions which it implements
44526     to always fail with ENOSYS.  Some functions are actually named
44527     something starting with __ and the normal name is an alias.  */
44528 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44529 choke me
44530 #else
44531 char (*f) () = $ac_func;
44532 #endif
44533 #ifdef __cplusplus
44534 }
44535 #endif
44536
44537 int
44538 main ()
44539 {
44540 return f != $ac_func;
44541   ;
44542   return 0;
44543 }
44544 _ACEOF
44545 rm -f conftest.$ac_objext conftest$ac_exeext
44546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44547   (eval $ac_link) 2>conftest.er1
44548   ac_status=$?
44549   grep -v '^ *+' conftest.er1 >conftest.err
44550   rm -f conftest.er1
44551   cat conftest.err >&5
44552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44553   (exit $ac_status); } &&
44554          { ac_try='test -z "$ac_c_werror_flag"
44555                          || test ! -s conftest.err'
44556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44557   (eval $ac_try) 2>&5
44558   ac_status=$?
44559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44560   (exit $ac_status); }; } &&
44561          { ac_try='test -s conftest$ac_exeext'
44562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44563   (eval $ac_try) 2>&5
44564   ac_status=$?
44565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44566   (exit $ac_status); }; }; then
44567   eval "$as_ac_var=yes"
44568 else
44569   echo "$as_me: failed program was:" >&5
44570 sed 's/^/| /' conftest.$ac_ext >&5
44571
44572 eval "$as_ac_var=no"
44573 fi
44574 rm -f conftest.err conftest.$ac_objext \
44575       conftest$ac_exeext conftest.$ac_ext
44576 fi
44577 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44578 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44579 if test `eval echo '${'$as_ac_var'}'` = yes; then
44580   cat >>confdefs.h <<_ACEOF
44581 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44582 _ACEOF
44583
44584 else
44585   case $LIBOBJS in
44586     "$ac_func.$ac_objext"   | \
44587   *" $ac_func.$ac_objext"   | \
44588     "$ac_func.$ac_objext "* | \
44589   *" $ac_func.$ac_objext "* ) ;;
44590   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
44591 esac
44592
44593 fi
44594 done
44595
44596
44597
44598 ice_have_mktime=no
44599
44600 for ac_func in mktime
44601 do
44602 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44603 echo "$as_me:$LINENO: checking for $ac_func" >&5
44604 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44605 if eval "test \"\${$as_ac_var+set}\" = set"; then
44606   echo $ECHO_N "(cached) $ECHO_C" >&6
44607 else
44608   cat >conftest.$ac_ext <<_ACEOF
44609 /* confdefs.h.  */
44610 _ACEOF
44611 cat confdefs.h >>conftest.$ac_ext
44612 cat >>conftest.$ac_ext <<_ACEOF
44613 /* end confdefs.h.  */
44614 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44615    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44616 #define $ac_func innocuous_$ac_func
44617
44618 /* System header to define __stub macros and hopefully few prototypes,
44619     which can conflict with char $ac_func (); below.
44620     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44621     <limits.h> exists even on freestanding compilers.  */
44622
44623 #ifdef __STDC__
44624 # include <limits.h>
44625 #else
44626 # include <assert.h>
44627 #endif
44628
44629 #undef $ac_func
44630
44631 /* Override any gcc2 internal prototype to avoid an error.  */
44632 #ifdef __cplusplus
44633 extern "C"
44634 {
44635 #endif
44636 /* We use char because int might match the return type of a gcc2
44637    builtin and then its argument prototype would still apply.  */
44638 char $ac_func ();
44639 /* The GNU C library defines this for functions which it implements
44640     to always fail with ENOSYS.  Some functions are actually named
44641     something starting with __ and the normal name is an alias.  */
44642 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44643 choke me
44644 #else
44645 char (*f) () = $ac_func;
44646 #endif
44647 #ifdef __cplusplus
44648 }
44649 #endif
44650
44651 int
44652 main ()
44653 {
44654 return f != $ac_func;
44655   ;
44656   return 0;
44657 }
44658 _ACEOF
44659 rm -f conftest.$ac_objext conftest$ac_exeext
44660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44661   (eval $ac_link) 2>conftest.er1
44662   ac_status=$?
44663   grep -v '^ *+' conftest.er1 >conftest.err
44664   rm -f conftest.er1
44665   cat conftest.err >&5
44666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44667   (exit $ac_status); } &&
44668          { ac_try='test -z "$ac_c_werror_flag"
44669                          || test ! -s conftest.err'
44670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44671   (eval $ac_try) 2>&5
44672   ac_status=$?
44673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44674   (exit $ac_status); }; } &&
44675          { ac_try='test -s conftest$ac_exeext'
44676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44677   (eval $ac_try) 2>&5
44678   ac_status=$?
44679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44680   (exit $ac_status); }; }; then
44681   eval "$as_ac_var=yes"
44682 else
44683   echo "$as_me: failed program was:" >&5
44684 sed 's/^/| /' conftest.$ac_ext >&5
44685
44686 eval "$as_ac_var=no"
44687 fi
44688 rm -f conftest.err conftest.$ac_objext \
44689       conftest$ac_exeext conftest.$ac_ext
44690 fi
44691 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44692 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44693 if test `eval echo '${'$as_ac_var'}'` = yes; then
44694   cat >>confdefs.h <<_ACEOF
44695 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44696 _ACEOF
44697  ice_have_mktime=yes
44698 fi
44699 done
44700
44701 if test "${ice_have_mktime}" = yes; then
44702 echo "$as_me:$LINENO: checking for mktime declaration in time.h sys/time.h" >&5
44703 echo $ECHO_N "checking for mktime declaration in time.h sys/time.h... $ECHO_C" >&6
44704 if test "${ice_cv_have_mktime_decl+set}" = set; then
44705   echo $ECHO_N "(cached) $ECHO_C" >&6
44706 else
44707
44708 ice_cv_have_mktime_decl=no
44709 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
44710 ice_re_word='(^|[^a-zA-Z0-9_])'
44711 for header in time.h sys/time.h; do
44712 # Check for ordinary declaration
44713 cat >conftest.$ac_ext <<_ACEOF
44714 /* confdefs.h.  */
44715 _ACEOF
44716 cat confdefs.h >>conftest.$ac_ext
44717 cat >>conftest.$ac_ext <<_ACEOF
44718 /* end confdefs.h.  */
44719 #include <$header>
44720
44721 _ACEOF
44722 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44723   $EGREP "${ice_re_word}mktime[         ]*\(" >/dev/null 2>&1; then
44724   ice_cv_have_mktime_decl=yes
44725 fi
44726 rm -f conftest*
44727
44728 if test "$ice_cv_have_mktime_decl" = yes; then
44729         break
44730 fi
44731 # Check for "fixed" declaration like "getpid _PARAMS((int))"
44732 cat >conftest.$ac_ext <<_ACEOF
44733 /* confdefs.h.  */
44734 _ACEOF
44735 cat confdefs.h >>conftest.$ac_ext
44736 cat >>conftest.$ac_ext <<_ACEOF
44737 /* end confdefs.h.  */
44738 #include <$header>
44739
44740 _ACEOF
44741 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44742   $EGREP "${ice_re_word}mktime[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
44743   ice_cv_have_mktime_decl=yes
44744 fi
44745 rm -f conftest*
44746
44747 if test "$ice_cv_have_mktime_decl" = yes; then
44748         break
44749 fi
44750 done
44751
44752 fi
44753
44754 echo "$as_me:$LINENO: result: $ice_cv_have_mktime_decl" >&5
44755 echo "${ECHO_T}$ice_cv_have_mktime_decl" >&6
44756 if test "$ice_cv_have_mktime_decl" = yes; then
44757
44758 cat >>confdefs.h <<_ACEOF
44759 #define HAVE_MKTIME_DECL 1
44760 _ACEOF
44761
44762 fi
44763 fi
44764
44765
44766
44767 for ac_header in stdlib.h unistd.h
44768 do
44769 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44770 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44771   echo "$as_me:$LINENO: checking for $ac_header" >&5
44772 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44773 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44774   echo $ECHO_N "(cached) $ECHO_C" >&6
44775 fi
44776 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44777 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44778 else
44779   # Is the header compilable?
44780 echo "$as_me:$LINENO: checking $ac_header usability" >&5
44781 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
44782 cat >conftest.$ac_ext <<_ACEOF
44783 /* confdefs.h.  */
44784 _ACEOF
44785 cat confdefs.h >>conftest.$ac_ext
44786 cat >>conftest.$ac_ext <<_ACEOF
44787 /* end confdefs.h.  */
44788 $ac_includes_default
44789 #include <$ac_header>
44790 _ACEOF
44791 rm -f conftest.$ac_objext
44792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44793   (eval $ac_compile) 2>conftest.er1
44794   ac_status=$?
44795   grep -v '^ *+' conftest.er1 >conftest.err
44796   rm -f conftest.er1
44797   cat conftest.err >&5
44798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44799   (exit $ac_status); } &&
44800          { ac_try='test -z "$ac_c_werror_flag"
44801                          || test ! -s conftest.err'
44802   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44803   (eval $ac_try) 2>&5
44804   ac_status=$?
44805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44806   (exit $ac_status); }; } &&
44807          { ac_try='test -s conftest.$ac_objext'
44808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44809   (eval $ac_try) 2>&5
44810   ac_status=$?
44811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44812   (exit $ac_status); }; }; then
44813   ac_header_compiler=yes
44814 else
44815   echo "$as_me: failed program was:" >&5
44816 sed 's/^/| /' conftest.$ac_ext >&5
44817
44818 ac_header_compiler=no
44819 fi
44820 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44821 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44822 echo "${ECHO_T}$ac_header_compiler" >&6
44823
44824 # Is the header present?
44825 echo "$as_me:$LINENO: checking $ac_header presence" >&5
44826 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
44827 cat >conftest.$ac_ext <<_ACEOF
44828 /* confdefs.h.  */
44829 _ACEOF
44830 cat confdefs.h >>conftest.$ac_ext
44831 cat >>conftest.$ac_ext <<_ACEOF
44832 /* end confdefs.h.  */
44833 #include <$ac_header>
44834 _ACEOF
44835 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
44836   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
44837   ac_status=$?
44838   grep -v '^ *+' conftest.er1 >conftest.err
44839   rm -f conftest.er1
44840   cat conftest.err >&5
44841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44842   (exit $ac_status); } >/dev/null; then
44843   if test -s conftest.err; then
44844     ac_cpp_err=$ac_c_preproc_warn_flag
44845     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
44846   else
44847     ac_cpp_err=
44848   fi
44849 else
44850   ac_cpp_err=yes
44851 fi
44852 if test -z "$ac_cpp_err"; then
44853   ac_header_preproc=yes
44854 else
44855   echo "$as_me: failed program was:" >&5
44856 sed 's/^/| /' conftest.$ac_ext >&5
44857
44858   ac_header_preproc=no
44859 fi
44860 rm -f conftest.err conftest.$ac_ext
44861 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44862 echo "${ECHO_T}$ac_header_preproc" >&6
44863
44864 # So?  What about this header?
44865 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44866   yes:no: )
44867     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44868 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
44869     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
44870 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
44871     ac_header_preproc=yes
44872     ;;
44873   no:yes:* )
44874     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44875 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
44876     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
44877 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
44878     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44879 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44880     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
44881 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
44882     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44883 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44884     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44885 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
44886     (
44887       cat <<\_ASBOX
44888 ## ------------------------------------------ ##
44889 ## Report this to the AC_PACKAGE_NAME lists.  ##
44890 ## ------------------------------------------ ##
44891 _ASBOX
44892     ) |
44893       sed "s/^/$as_me: WARNING:     /" >&2
44894     ;;
44895 esac
44896 echo "$as_me:$LINENO: checking for $ac_header" >&5
44897 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44898 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44899   echo $ECHO_N "(cached) $ECHO_C" >&6
44900 else
44901   eval "$as_ac_Header=\$ac_header_preproc"
44902 fi
44903 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44904 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44905
44906 fi
44907 if test `eval echo '${'$as_ac_Header'}'` = yes; then
44908   cat >>confdefs.h <<_ACEOF
44909 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44910 _ACEOF
44911
44912 fi
44913
44914 done
44915
44916
44917 for ac_func in getpagesize
44918 do
44919 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44920 echo "$as_me:$LINENO: checking for $ac_func" >&5
44921 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44922 if eval "test \"\${$as_ac_var+set}\" = set"; then
44923   echo $ECHO_N "(cached) $ECHO_C" >&6
44924 else
44925   cat >conftest.$ac_ext <<_ACEOF
44926 /* confdefs.h.  */
44927 _ACEOF
44928 cat confdefs.h >>conftest.$ac_ext
44929 cat >>conftest.$ac_ext <<_ACEOF
44930 /* end confdefs.h.  */
44931 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44932    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44933 #define $ac_func innocuous_$ac_func
44934
44935 /* System header to define __stub macros and hopefully few prototypes,
44936     which can conflict with char $ac_func (); below.
44937     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44938     <limits.h> exists even on freestanding compilers.  */
44939
44940 #ifdef __STDC__
44941 # include <limits.h>
44942 #else
44943 # include <assert.h>
44944 #endif
44945
44946 #undef $ac_func
44947
44948 /* Override any gcc2 internal prototype to avoid an error.  */
44949 #ifdef __cplusplus
44950 extern "C"
44951 {
44952 #endif
44953 /* We use char because int might match the return type of a gcc2
44954    builtin and then its argument prototype would still apply.  */
44955 char $ac_func ();
44956 /* The GNU C library defines this for functions which it implements
44957     to always fail with ENOSYS.  Some functions are actually named
44958     something starting with __ and the normal name is an alias.  */
44959 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44960 choke me
44961 #else
44962 char (*f) () = $ac_func;
44963 #endif
44964 #ifdef __cplusplus
44965 }
44966 #endif
44967
44968 int
44969 main ()
44970 {
44971 return f != $ac_func;
44972   ;
44973   return 0;
44974 }
44975 _ACEOF
44976 rm -f conftest.$ac_objext conftest$ac_exeext
44977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44978   (eval $ac_link) 2>conftest.er1
44979   ac_status=$?
44980   grep -v '^ *+' conftest.er1 >conftest.err
44981   rm -f conftest.er1
44982   cat conftest.err >&5
44983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44984   (exit $ac_status); } &&
44985          { ac_try='test -z "$ac_c_werror_flag"
44986                          || test ! -s conftest.err'
44987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44988   (eval $ac_try) 2>&5
44989   ac_status=$?
44990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44991   (exit $ac_status); }; } &&
44992          { ac_try='test -s conftest$ac_exeext'
44993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44994   (eval $ac_try) 2>&5
44995   ac_status=$?
44996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44997   (exit $ac_status); }; }; then
44998   eval "$as_ac_var=yes"
44999 else
45000   echo "$as_me: failed program was:" >&5
45001 sed 's/^/| /' conftest.$ac_ext >&5
45002
45003 eval "$as_ac_var=no"
45004 fi
45005 rm -f conftest.err conftest.$ac_objext \
45006       conftest$ac_exeext conftest.$ac_ext
45007 fi
45008 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45009 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45010 if test `eval echo '${'$as_ac_var'}'` = yes; then
45011   cat >>confdefs.h <<_ACEOF
45012 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45013 _ACEOF
45014
45015 fi
45016 done
45017
45018 echo "$as_me:$LINENO: checking for working mmap" >&5
45019 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
45020 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
45021   echo $ECHO_N "(cached) $ECHO_C" >&6
45022 else
45023   if test "$cross_compiling" = yes; then
45024   ac_cv_func_mmap_fixed_mapped=no
45025 else
45026   cat >conftest.$ac_ext <<_ACEOF
45027 /* confdefs.h.  */
45028 _ACEOF
45029 cat confdefs.h >>conftest.$ac_ext
45030 cat >>conftest.$ac_ext <<_ACEOF
45031 /* end confdefs.h.  */
45032 $ac_includes_default
45033 /* malloc might have been renamed as rpl_malloc. */
45034 #undef malloc
45035
45036 /* Thanks to Mike Haertel and Jim Avera for this test.
45037    Here is a matrix of mmap possibilities:
45038         mmap private not fixed
45039         mmap private fixed at somewhere currently unmapped
45040         mmap private fixed at somewhere already mapped
45041         mmap shared not fixed
45042         mmap shared fixed at somewhere currently unmapped
45043         mmap shared fixed at somewhere already mapped
45044    For private mappings, we should verify that changes cannot be read()
45045    back from the file, nor mmap's back from the file at a different
45046    address.  (There have been systems where private was not correctly
45047    implemented like the infamous i386 svr4.0, and systems where the
45048    VM page cache was not coherent with the file system buffer cache
45049    like early versions of FreeBSD and possibly contemporary NetBSD.)
45050    For shared mappings, we should conversely verify that changes get
45051    propagated back to all the places they're supposed to be.
45052
45053    Grep wants private fixed already mapped.
45054    The main things grep needs to know about mmap are:
45055    * does it exist and is it safe to write into the mmap'd area
45056    * how to use it (BSD variants)  */
45057
45058 #include <fcntl.h>
45059 #include <sys/mman.h>
45060
45061 #if !STDC_HEADERS && !HAVE_STDLIB_H
45062 char *malloc ();
45063 #endif
45064
45065 /* This mess was copied from the GNU getpagesize.h.  */
45066 #if !HAVE_GETPAGESIZE
45067 /* Assume that all systems that can run configure have sys/param.h.  */
45068 # if !HAVE_SYS_PARAM_H
45069 #  define HAVE_SYS_PARAM_H 1
45070 # endif
45071
45072 # ifdef _SC_PAGESIZE
45073 #  define getpagesize() sysconf(_SC_PAGESIZE)
45074 # else /* no _SC_PAGESIZE */
45075 #  if HAVE_SYS_PARAM_H
45076 #   include <sys/param.h>
45077 #   ifdef EXEC_PAGESIZE
45078 #    define getpagesize() EXEC_PAGESIZE
45079 #   else /* no EXEC_PAGESIZE */
45080 #    ifdef NBPG
45081 #     define getpagesize() NBPG * CLSIZE
45082 #     ifndef CLSIZE
45083 #      define CLSIZE 1
45084 #     endif /* no CLSIZE */
45085 #    else /* no NBPG */
45086 #     ifdef NBPC
45087 #      define getpagesize() NBPC
45088 #     else /* no NBPC */
45089 #      ifdef PAGESIZE
45090 #       define getpagesize() PAGESIZE
45091 #      endif /* PAGESIZE */
45092 #     endif /* no NBPC */
45093 #    endif /* no NBPG */
45094 #   endif /* no EXEC_PAGESIZE */
45095 #  else /* no HAVE_SYS_PARAM_H */
45096 #   define getpagesize() 8192   /* punt totally */
45097 #  endif /* no HAVE_SYS_PARAM_H */
45098 # endif /* no _SC_PAGESIZE */
45099
45100 #endif /* no HAVE_GETPAGESIZE */
45101
45102 int
45103 main ()
45104 {
45105   char *data, *data2, *data3;
45106   int i, pagesize;
45107   int fd;
45108
45109   pagesize = getpagesize ();
45110
45111   /* First, make a file with some known garbage in it. */
45112   data = (char *) malloc (pagesize);
45113   if (!data)
45114     exit (1);
45115   for (i = 0; i < pagesize; ++i)
45116     *(data + i) = rand ();
45117   umask (0);
45118   fd = creat ("conftest.mmap", 0600);
45119   if (fd < 0)
45120     exit (1);
45121   if (write (fd, data, pagesize) != pagesize)
45122     exit (1);
45123   close (fd);
45124
45125   /* Next, try to mmap the file at a fixed address which already has
45126      something else allocated at it.  If we can, also make sure that
45127      we see the same garbage.  */
45128   fd = open ("conftest.mmap", O_RDWR);
45129   if (fd < 0)
45130     exit (1);
45131   data2 = (char *) malloc (2 * pagesize);
45132   if (!data2)
45133     exit (1);
45134   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
45135   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
45136                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
45137     exit (1);
45138   for (i = 0; i < pagesize; ++i)
45139     if (*(data + i) != *(data2 + i))
45140       exit (1);
45141
45142   /* Finally, make sure that changes to the mapped area do not
45143      percolate back to the file as seen by read().  (This is a bug on
45144      some variants of i386 svr4.0.)  */
45145   for (i = 0; i < pagesize; ++i)
45146     *(data2 + i) = *(data2 + i) + 1;
45147   data3 = (char *) malloc (pagesize);
45148   if (!data3)
45149     exit (1);
45150   if (read (fd, data3, pagesize) != pagesize)
45151     exit (1);
45152   for (i = 0; i < pagesize; ++i)
45153     if (*(data + i) != *(data3 + i))
45154       exit (1);
45155   close (fd);
45156   exit (0);
45157 }
45158 _ACEOF
45159 rm -f conftest$ac_exeext
45160 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45161   (eval $ac_link) 2>&5
45162   ac_status=$?
45163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45164   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
45165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45166   (eval $ac_try) 2>&5
45167   ac_status=$?
45168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45169   (exit $ac_status); }; }; then
45170   ac_cv_func_mmap_fixed_mapped=yes
45171 else
45172   echo "$as_me: program exited with status $ac_status" >&5
45173 echo "$as_me: failed program was:" >&5
45174 sed 's/^/| /' conftest.$ac_ext >&5
45175
45176 ( exit $ac_status )
45177 ac_cv_func_mmap_fixed_mapped=no
45178 fi
45179 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
45180 fi
45181 fi
45182 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
45183 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
45184 if test $ac_cv_func_mmap_fixed_mapped = yes; then
45185
45186 cat >>confdefs.h <<\_ACEOF
45187 #define HAVE_MMAP 1
45188 _ACEOF
45189
45190 fi
45191 rm -f conftest.mmap
45192
45193
45194 for ac_func in on_exit
45195 do
45196 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45197 echo "$as_me:$LINENO: checking for $ac_func" >&5
45198 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45199 if eval "test \"\${$as_ac_var+set}\" = set"; then
45200   echo $ECHO_N "(cached) $ECHO_C" >&6
45201 else
45202   cat >conftest.$ac_ext <<_ACEOF
45203 /* confdefs.h.  */
45204 _ACEOF
45205 cat confdefs.h >>conftest.$ac_ext
45206 cat >>conftest.$ac_ext <<_ACEOF
45207 /* end confdefs.h.  */
45208 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45209    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45210 #define $ac_func innocuous_$ac_func
45211
45212 /* System header to define __stub macros and hopefully few prototypes,
45213     which can conflict with char $ac_func (); below.
45214     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45215     <limits.h> exists even on freestanding compilers.  */
45216
45217 #ifdef __STDC__
45218 # include <limits.h>
45219 #else
45220 # include <assert.h>
45221 #endif
45222
45223 #undef $ac_func
45224
45225 /* Override any gcc2 internal prototype to avoid an error.  */
45226 #ifdef __cplusplus
45227 extern "C"
45228 {
45229 #endif
45230 /* We use char because int might match the return type of a gcc2
45231    builtin and then its argument prototype would still apply.  */
45232 char $ac_func ();
45233 /* The GNU C library defines this for functions which it implements
45234     to always fail with ENOSYS.  Some functions are actually named
45235     something starting with __ and the normal name is an alias.  */
45236 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45237 choke me
45238 #else
45239 char (*f) () = $ac_func;
45240 #endif
45241 #ifdef __cplusplus
45242 }
45243 #endif
45244
45245 int
45246 main ()
45247 {
45248 return f != $ac_func;
45249   ;
45250   return 0;
45251 }
45252 _ACEOF
45253 rm -f conftest.$ac_objext conftest$ac_exeext
45254 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45255   (eval $ac_link) 2>conftest.er1
45256   ac_status=$?
45257   grep -v '^ *+' conftest.er1 >conftest.err
45258   rm -f conftest.er1
45259   cat conftest.err >&5
45260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45261   (exit $ac_status); } &&
45262          { ac_try='test -z "$ac_c_werror_flag"
45263                          || test ! -s conftest.err'
45264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45265   (eval $ac_try) 2>&5
45266   ac_status=$?
45267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45268   (exit $ac_status); }; } &&
45269          { ac_try='test -s conftest$ac_exeext'
45270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45271   (eval $ac_try) 2>&5
45272   ac_status=$?
45273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45274   (exit $ac_status); }; }; then
45275   eval "$as_ac_var=yes"
45276 else
45277   echo "$as_me: failed program was:" >&5
45278 sed 's/^/| /' conftest.$ac_ext >&5
45279
45280 eval "$as_ac_var=no"
45281 fi
45282 rm -f conftest.err conftest.$ac_objext \
45283       conftest$ac_exeext conftest.$ac_ext
45284 fi
45285 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45286 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45287 if test `eval echo '${'$as_ac_var'}'` = yes; then
45288   cat >>confdefs.h <<_ACEOF
45289 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45290 _ACEOF
45291
45292 fi
45293 done
45294
45295
45296 ice_have_openlog=no
45297
45298 for ac_func in openlog
45299 do
45300 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45301 echo "$as_me:$LINENO: checking for $ac_func" >&5
45302 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45303 if eval "test \"\${$as_ac_var+set}\" = set"; then
45304   echo $ECHO_N "(cached) $ECHO_C" >&6
45305 else
45306   cat >conftest.$ac_ext <<_ACEOF
45307 /* confdefs.h.  */
45308 _ACEOF
45309 cat confdefs.h >>conftest.$ac_ext
45310 cat >>conftest.$ac_ext <<_ACEOF
45311 /* end confdefs.h.  */
45312 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45313    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45314 #define $ac_func innocuous_$ac_func
45315
45316 /* System header to define __stub macros and hopefully few prototypes,
45317     which can conflict with char $ac_func (); below.
45318     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45319     <limits.h> exists even on freestanding compilers.  */
45320
45321 #ifdef __STDC__
45322 # include <limits.h>
45323 #else
45324 # include <assert.h>
45325 #endif
45326
45327 #undef $ac_func
45328
45329 /* Override any gcc2 internal prototype to avoid an error.  */
45330 #ifdef __cplusplus
45331 extern "C"
45332 {
45333 #endif
45334 /* We use char because int might match the return type of a gcc2
45335    builtin and then its argument prototype would still apply.  */
45336 char $ac_func ();
45337 /* The GNU C library defines this for functions which it implements
45338     to always fail with ENOSYS.  Some functions are actually named
45339     something starting with __ and the normal name is an alias.  */
45340 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45341 choke me
45342 #else
45343 char (*f) () = $ac_func;
45344 #endif
45345 #ifdef __cplusplus
45346 }
45347 #endif
45348
45349 int
45350 main ()
45351 {
45352 return f != $ac_func;
45353   ;
45354   return 0;
45355 }
45356 _ACEOF
45357 rm -f conftest.$ac_objext conftest$ac_exeext
45358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45359   (eval $ac_link) 2>conftest.er1
45360   ac_status=$?
45361   grep -v '^ *+' conftest.er1 >conftest.err
45362   rm -f conftest.er1
45363   cat conftest.err >&5
45364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45365   (exit $ac_status); } &&
45366          { ac_try='test -z "$ac_c_werror_flag"
45367                          || test ! -s conftest.err'
45368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45369   (eval $ac_try) 2>&5
45370   ac_status=$?
45371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45372   (exit $ac_status); }; } &&
45373          { ac_try='test -s conftest$ac_exeext'
45374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45375   (eval $ac_try) 2>&5
45376   ac_status=$?
45377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45378   (exit $ac_status); }; }; then
45379   eval "$as_ac_var=yes"
45380 else
45381   echo "$as_me: failed program was:" >&5
45382 sed 's/^/| /' conftest.$ac_ext >&5
45383
45384 eval "$as_ac_var=no"
45385 fi
45386 rm -f conftest.err conftest.$ac_objext \
45387       conftest$ac_exeext conftest.$ac_ext
45388 fi
45389 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45390 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45391 if test `eval echo '${'$as_ac_var'}'` = yes; then
45392   cat >>confdefs.h <<_ACEOF
45393 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45394 _ACEOF
45395  ice_have_openlog=yes
45396 fi
45397 done
45398
45399 if test "${ice_have_openlog}" = yes; then
45400 echo "$as_me:$LINENO: checking for openlog declaration in syslog.h" >&5
45401 echo $ECHO_N "checking for openlog declaration in syslog.h... $ECHO_C" >&6
45402 if test "${ice_cv_have_openlog_decl+set}" = set; then
45403   echo $ECHO_N "(cached) $ECHO_C" >&6
45404 else
45405
45406 ice_cv_have_openlog_decl=no
45407 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
45408 ice_re_word='(^|[^a-zA-Z0-9_])'
45409 for header in syslog.h; do
45410 # Check for ordinary declaration
45411 cat >conftest.$ac_ext <<_ACEOF
45412 /* confdefs.h.  */
45413 _ACEOF
45414 cat confdefs.h >>conftest.$ac_ext
45415 cat >>conftest.$ac_ext <<_ACEOF
45416 /* end confdefs.h.  */
45417 #include <$header>
45418
45419 _ACEOF
45420 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45421   $EGREP "${ice_re_word}openlog[        ]*\(" >/dev/null 2>&1; then
45422   ice_cv_have_openlog_decl=yes
45423 fi
45424 rm -f conftest*
45425
45426 if test "$ice_cv_have_openlog_decl" = yes; then
45427         break
45428 fi
45429 # Check for "fixed" declaration like "getpid _PARAMS((int))"
45430 cat >conftest.$ac_ext <<_ACEOF
45431 /* confdefs.h.  */
45432 _ACEOF
45433 cat confdefs.h >>conftest.$ac_ext
45434 cat >>conftest.$ac_ext <<_ACEOF
45435 /* end confdefs.h.  */
45436 #include <$header>
45437
45438 _ACEOF
45439 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45440   $EGREP "${ice_re_word}openlog[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
45441   ice_cv_have_openlog_decl=yes
45442 fi
45443 rm -f conftest*
45444
45445 if test "$ice_cv_have_openlog_decl" = yes; then
45446         break
45447 fi
45448 done
45449
45450 fi
45451
45452 echo "$as_me:$LINENO: result: $ice_cv_have_openlog_decl" >&5
45453 echo "${ECHO_T}$ice_cv_have_openlog_decl" >&6
45454 if test "$ice_cv_have_openlog_decl" = yes; then
45455
45456 cat >>confdefs.h <<_ACEOF
45457 #define HAVE_OPENLOG_DECL 1
45458 _ACEOF
45459
45460 fi
45461 fi
45462
45463
45464 ice_have_pclose=no
45465
45466 for ac_func in pclose
45467 do
45468 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45469 echo "$as_me:$LINENO: checking for $ac_func" >&5
45470 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45471 if eval "test \"\${$as_ac_var+set}\" = set"; then
45472   echo $ECHO_N "(cached) $ECHO_C" >&6
45473 else
45474   cat >conftest.$ac_ext <<_ACEOF
45475 /* confdefs.h.  */
45476 _ACEOF
45477 cat confdefs.h >>conftest.$ac_ext
45478 cat >>conftest.$ac_ext <<_ACEOF
45479 /* end confdefs.h.  */
45480 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45481    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45482 #define $ac_func innocuous_$ac_func
45483
45484 /* System header to define __stub macros and hopefully few prototypes,
45485     which can conflict with char $ac_func (); below.
45486     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45487     <limits.h> exists even on freestanding compilers.  */
45488
45489 #ifdef __STDC__
45490 # include <limits.h>
45491 #else
45492 # include <assert.h>
45493 #endif
45494
45495 #undef $ac_func
45496
45497 /* Override any gcc2 internal prototype to avoid an error.  */
45498 #ifdef __cplusplus
45499 extern "C"
45500 {
45501 #endif
45502 /* We use char because int might match the return type of a gcc2
45503    builtin and then its argument prototype would still apply.  */
45504 char $ac_func ();
45505 /* The GNU C library defines this for functions which it implements
45506     to always fail with ENOSYS.  Some functions are actually named
45507     something starting with __ and the normal name is an alias.  */
45508 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45509 choke me
45510 #else
45511 char (*f) () = $ac_func;
45512 #endif
45513 #ifdef __cplusplus
45514 }
45515 #endif
45516
45517 int
45518 main ()
45519 {
45520 return f != $ac_func;
45521   ;
45522   return 0;
45523 }
45524 _ACEOF
45525 rm -f conftest.$ac_objext conftest$ac_exeext
45526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45527   (eval $ac_link) 2>conftest.er1
45528   ac_status=$?
45529   grep -v '^ *+' conftest.er1 >conftest.err
45530   rm -f conftest.er1
45531   cat conftest.err >&5
45532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45533   (exit $ac_status); } &&
45534          { ac_try='test -z "$ac_c_werror_flag"
45535                          || test ! -s conftest.err'
45536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45537   (eval $ac_try) 2>&5
45538   ac_status=$?
45539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45540   (exit $ac_status); }; } &&
45541          { ac_try='test -s conftest$ac_exeext'
45542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45543   (eval $ac_try) 2>&5
45544   ac_status=$?
45545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45546   (exit $ac_status); }; }; then
45547   eval "$as_ac_var=yes"
45548 else
45549   echo "$as_me: failed program was:" >&5
45550 sed 's/^/| /' conftest.$ac_ext >&5
45551
45552 eval "$as_ac_var=no"
45553 fi
45554 rm -f conftest.err conftest.$ac_objext \
45555       conftest$ac_exeext conftest.$ac_ext
45556 fi
45557 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45558 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45559 if test `eval echo '${'$as_ac_var'}'` = yes; then
45560   cat >>confdefs.h <<_ACEOF
45561 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45562 _ACEOF
45563  ice_have_pclose=yes
45564 fi
45565 done
45566
45567 if test "${ice_have_pclose}" = yes; then
45568 echo "$as_me:$LINENO: checking for pclose declaration in stdio.h" >&5
45569 echo $ECHO_N "checking for pclose declaration in stdio.h... $ECHO_C" >&6
45570 if test "${ice_cv_have_pclose_decl+set}" = set; then
45571   echo $ECHO_N "(cached) $ECHO_C" >&6
45572 else
45573
45574 ice_cv_have_pclose_decl=no
45575 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
45576 ice_re_word='(^|[^a-zA-Z0-9_])'
45577 for header in stdio.h; do
45578 # Check for ordinary declaration
45579 cat >conftest.$ac_ext <<_ACEOF
45580 /* confdefs.h.  */
45581 _ACEOF
45582 cat confdefs.h >>conftest.$ac_ext
45583 cat >>conftest.$ac_ext <<_ACEOF
45584 /* end confdefs.h.  */
45585 #include <$header>
45586
45587 _ACEOF
45588 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45589   $EGREP "${ice_re_word}pclose[         ]*\(" >/dev/null 2>&1; then
45590   ice_cv_have_pclose_decl=yes
45591 fi
45592 rm -f conftest*
45593
45594 if test "$ice_cv_have_pclose_decl" = yes; then
45595         break
45596 fi
45597 # Check for "fixed" declaration like "getpid _PARAMS((int))"
45598 cat >conftest.$ac_ext <<_ACEOF
45599 /* confdefs.h.  */
45600 _ACEOF
45601 cat confdefs.h >>conftest.$ac_ext
45602 cat >>conftest.$ac_ext <<_ACEOF
45603 /* end confdefs.h.  */
45604 #include <$header>
45605
45606 _ACEOF
45607 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45608   $EGREP "${ice_re_word}pclose[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
45609   ice_cv_have_pclose_decl=yes
45610 fi
45611 rm -f conftest*
45612
45613 if test "$ice_cv_have_pclose_decl" = yes; then
45614         break
45615 fi
45616 done
45617
45618 fi
45619
45620 echo "$as_me:$LINENO: result: $ice_cv_have_pclose_decl" >&5
45621 echo "${ECHO_T}$ice_cv_have_pclose_decl" >&6
45622 if test "$ice_cv_have_pclose_decl" = yes; then
45623
45624 cat >>confdefs.h <<_ACEOF
45625 #define HAVE_PCLOSE_DECL 1
45626 _ACEOF
45627
45628 fi
45629 fi
45630
45631
45632 ice_have_perror=no
45633
45634 for ac_func in perror
45635 do
45636 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45637 echo "$as_me:$LINENO: checking for $ac_func" >&5
45638 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45639 if eval "test \"\${$as_ac_var+set}\" = set"; then
45640   echo $ECHO_N "(cached) $ECHO_C" >&6
45641 else
45642   cat >conftest.$ac_ext <<_ACEOF
45643 /* confdefs.h.  */
45644 _ACEOF
45645 cat confdefs.h >>conftest.$ac_ext
45646 cat >>conftest.$ac_ext <<_ACEOF
45647 /* end confdefs.h.  */
45648 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45649    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45650 #define $ac_func innocuous_$ac_func
45651
45652 /* System header to define __stub macros and hopefully few prototypes,
45653     which can conflict with char $ac_func (); below.
45654     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45655     <limits.h> exists even on freestanding compilers.  */
45656
45657 #ifdef __STDC__
45658 # include <limits.h>
45659 #else
45660 # include <assert.h>
45661 #endif
45662
45663 #undef $ac_func
45664
45665 /* Override any gcc2 internal prototype to avoid an error.  */
45666 #ifdef __cplusplus
45667 extern "C"
45668 {
45669 #endif
45670 /* We use char because int might match the return type of a gcc2
45671    builtin and then its argument prototype would still apply.  */
45672 char $ac_func ();
45673 /* The GNU C library defines this for functions which it implements
45674     to always fail with ENOSYS.  Some functions are actually named
45675     something starting with __ and the normal name is an alias.  */
45676 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45677 choke me
45678 #else
45679 char (*f) () = $ac_func;
45680 #endif
45681 #ifdef __cplusplus
45682 }
45683 #endif
45684
45685 int
45686 main ()
45687 {
45688 return f != $ac_func;
45689   ;
45690   return 0;
45691 }
45692 _ACEOF
45693 rm -f conftest.$ac_objext conftest$ac_exeext
45694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45695   (eval $ac_link) 2>conftest.er1
45696   ac_status=$?
45697   grep -v '^ *+' conftest.er1 >conftest.err
45698   rm -f conftest.er1
45699   cat conftest.err >&5
45700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45701   (exit $ac_status); } &&
45702          { ac_try='test -z "$ac_c_werror_flag"
45703                          || test ! -s conftest.err'
45704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45705   (eval $ac_try) 2>&5
45706   ac_status=$?
45707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45708   (exit $ac_status); }; } &&
45709          { ac_try='test -s conftest$ac_exeext'
45710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45711   (eval $ac_try) 2>&5
45712   ac_status=$?
45713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45714   (exit $ac_status); }; }; then
45715   eval "$as_ac_var=yes"
45716 else
45717   echo "$as_me: failed program was:" >&5
45718 sed 's/^/| /' conftest.$ac_ext >&5
45719
45720 eval "$as_ac_var=no"
45721 fi
45722 rm -f conftest.err conftest.$ac_objext \
45723       conftest$ac_exeext conftest.$ac_ext
45724 fi
45725 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45726 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45727 if test `eval echo '${'$as_ac_var'}'` = yes; then
45728   cat >>confdefs.h <<_ACEOF
45729 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45730 _ACEOF
45731  ice_have_perror=yes
45732 fi
45733 done
45734
45735 if test "${ice_have_perror}" = yes; then
45736 echo "$as_me:$LINENO: checking for perror declaration in stdio.h" >&5
45737 echo $ECHO_N "checking for perror declaration in stdio.h... $ECHO_C" >&6
45738 if test "${ice_cv_have_perror_decl+set}" = set; then
45739   echo $ECHO_N "(cached) $ECHO_C" >&6
45740 else
45741
45742 ice_cv_have_perror_decl=no
45743 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
45744 ice_re_word='(^|[^a-zA-Z0-9_])'
45745 for header in stdio.h; do
45746 # Check for ordinary declaration
45747 cat >conftest.$ac_ext <<_ACEOF
45748 /* confdefs.h.  */
45749 _ACEOF
45750 cat confdefs.h >>conftest.$ac_ext
45751 cat >>conftest.$ac_ext <<_ACEOF
45752 /* end confdefs.h.  */
45753 #include <$header>
45754
45755 _ACEOF
45756 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45757   $EGREP "${ice_re_word}perror[         ]*\(" >/dev/null 2>&1; then
45758   ice_cv_have_perror_decl=yes
45759 fi
45760 rm -f conftest*
45761
45762 if test "$ice_cv_have_perror_decl" = yes; then
45763         break
45764 fi
45765 # Check for "fixed" declaration like "getpid _PARAMS((int))"
45766 cat >conftest.$ac_ext <<_ACEOF
45767 /* confdefs.h.  */
45768 _ACEOF
45769 cat confdefs.h >>conftest.$ac_ext
45770 cat >>conftest.$ac_ext <<_ACEOF
45771 /* end confdefs.h.  */
45772 #include <$header>
45773
45774 _ACEOF
45775 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45776   $EGREP "${ice_re_word}perror[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
45777   ice_cv_have_perror_decl=yes
45778 fi
45779 rm -f conftest*
45780
45781 if test "$ice_cv_have_perror_decl" = yes; then
45782         break
45783 fi
45784 done
45785
45786 fi
45787
45788 echo "$as_me:$LINENO: result: $ice_cv_have_perror_decl" >&5
45789 echo "${ECHO_T}$ice_cv_have_perror_decl" >&6
45790 if test "$ice_cv_have_perror_decl" = yes; then
45791
45792 cat >>confdefs.h <<_ACEOF
45793 #define HAVE_PERROR_DECL 1
45794 _ACEOF
45795
45796 fi
45797 fi
45798
45799
45800 ice_have_printf=no
45801
45802 for ac_func in printf
45803 do
45804 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45805 echo "$as_me:$LINENO: checking for $ac_func" >&5
45806 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45807 if eval "test \"\${$as_ac_var+set}\" = set"; then
45808   echo $ECHO_N "(cached) $ECHO_C" >&6
45809 else
45810   cat >conftest.$ac_ext <<_ACEOF
45811 /* confdefs.h.  */
45812 _ACEOF
45813 cat confdefs.h >>conftest.$ac_ext
45814 cat >>conftest.$ac_ext <<_ACEOF
45815 /* end confdefs.h.  */
45816 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45817    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45818 #define $ac_func innocuous_$ac_func
45819
45820 /* System header to define __stub macros and hopefully few prototypes,
45821     which can conflict with char $ac_func (); below.
45822     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45823     <limits.h> exists even on freestanding compilers.  */
45824
45825 #ifdef __STDC__
45826 # include <limits.h>
45827 #else
45828 # include <assert.h>
45829 #endif
45830
45831 #undef $ac_func
45832
45833 /* Override any gcc2 internal prototype to avoid an error.  */
45834 #ifdef __cplusplus
45835 extern "C"
45836 {
45837 #endif
45838 /* We use char because int might match the return type of a gcc2
45839    builtin and then its argument prototype would still apply.  */
45840 char $ac_func ();
45841 /* The GNU C library defines this for functions which it implements
45842     to always fail with ENOSYS.  Some functions are actually named
45843     something starting with __ and the normal name is an alias.  */
45844 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45845 choke me
45846 #else
45847 char (*f) () = $ac_func;
45848 #endif
45849 #ifdef __cplusplus
45850 }
45851 #endif
45852
45853 int
45854 main ()
45855 {
45856 return f != $ac_func;
45857   ;
45858   return 0;
45859 }
45860 _ACEOF
45861 rm -f conftest.$ac_objext conftest$ac_exeext
45862 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45863   (eval $ac_link) 2>conftest.er1
45864   ac_status=$?
45865   grep -v '^ *+' conftest.er1 >conftest.err
45866   rm -f conftest.er1
45867   cat conftest.err >&5
45868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45869   (exit $ac_status); } &&
45870          { ac_try='test -z "$ac_c_werror_flag"
45871                          || test ! -s conftest.err'
45872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45873   (eval $ac_try) 2>&5
45874   ac_status=$?
45875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45876   (exit $ac_status); }; } &&
45877          { ac_try='test -s conftest$ac_exeext'
45878   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45879   (eval $ac_try) 2>&5
45880   ac_status=$?
45881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45882   (exit $ac_status); }; }; then
45883   eval "$as_ac_var=yes"
45884 else
45885   echo "$as_me: failed program was:" >&5
45886 sed 's/^/| /' conftest.$ac_ext >&5
45887
45888 eval "$as_ac_var=no"
45889 fi
45890 rm -f conftest.err conftest.$ac_objext \
45891       conftest$ac_exeext conftest.$ac_ext
45892 fi
45893 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45894 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45895 if test `eval echo '${'$as_ac_var'}'` = yes; then
45896   cat >>confdefs.h <<_ACEOF
45897 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45898 _ACEOF
45899  ice_have_printf=yes
45900 fi
45901 done
45902
45903 if test "${ice_have_printf}" = yes; then
45904 echo "$as_me:$LINENO: checking for printf declaration in stdio.h" >&5
45905 echo $ECHO_N "checking for printf declaration in stdio.h... $ECHO_C" >&6
45906 if test "${ice_cv_have_printf_decl+set}" = set; then
45907   echo $ECHO_N "(cached) $ECHO_C" >&6
45908 else
45909
45910 ice_cv_have_printf_decl=no
45911 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
45912 ice_re_word='(^|[^a-zA-Z0-9_])'
45913 for header in stdio.h; do
45914 # Check for ordinary declaration
45915 cat >conftest.$ac_ext <<_ACEOF
45916 /* confdefs.h.  */
45917 _ACEOF
45918 cat confdefs.h >>conftest.$ac_ext
45919 cat >>conftest.$ac_ext <<_ACEOF
45920 /* end confdefs.h.  */
45921 #include <$header>
45922
45923 _ACEOF
45924 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45925   $EGREP "${ice_re_word}printf[         ]*\(" >/dev/null 2>&1; then
45926   ice_cv_have_printf_decl=yes
45927 fi
45928 rm -f conftest*
45929
45930 if test "$ice_cv_have_printf_decl" = yes; then
45931         break
45932 fi
45933 # Check for "fixed" declaration like "getpid _PARAMS((int))"
45934 cat >conftest.$ac_ext <<_ACEOF
45935 /* confdefs.h.  */
45936 _ACEOF
45937 cat confdefs.h >>conftest.$ac_ext
45938 cat >>conftest.$ac_ext <<_ACEOF
45939 /* end confdefs.h.  */
45940 #include <$header>
45941
45942 _ACEOF
45943 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45944   $EGREP "${ice_re_word}printf[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
45945   ice_cv_have_printf_decl=yes
45946 fi
45947 rm -f conftest*
45948
45949 if test "$ice_cv_have_printf_decl" = yes; then
45950         break
45951 fi
45952 done
45953
45954 fi
45955
45956 echo "$as_me:$LINENO: result: $ice_cv_have_printf_decl" >&5
45957 echo "${ECHO_T}$ice_cv_have_printf_decl" >&6
45958 if test "$ice_cv_have_printf_decl" = yes; then
45959
45960 cat >>confdefs.h <<_ACEOF
45961 #define HAVE_PRINTF_DECL 1
45962 _ACEOF
45963
45964 fi
45965 fi
45966
45967
45968 for ac_func in putenv
45969 do
45970 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45971 echo "$as_me:$LINENO: checking for $ac_func" >&5
45972 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45973 if eval "test \"\${$as_ac_var+set}\" = set"; then
45974   echo $ECHO_N "(cached) $ECHO_C" >&6
45975 else
45976   cat >conftest.$ac_ext <<_ACEOF
45977 /* confdefs.h.  */
45978 _ACEOF
45979 cat confdefs.h >>conftest.$ac_ext
45980 cat >>conftest.$ac_ext <<_ACEOF
45981 /* end confdefs.h.  */
45982 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45983    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45984 #define $ac_func innocuous_$ac_func
45985
45986 /* System header to define __stub macros and hopefully few prototypes,
45987     which can conflict with char $ac_func (); below.
45988     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45989     <limits.h> exists even on freestanding compilers.  */
45990
45991 #ifdef __STDC__
45992 # include <limits.h>
45993 #else
45994 # include <assert.h>
45995 #endif
45996
45997 #undef $ac_func
45998
45999 /* Override any gcc2 internal prototype to avoid an error.  */
46000 #ifdef __cplusplus
46001 extern "C"
46002 {
46003 #endif
46004 /* We use char because int might match the return type of a gcc2
46005    builtin and then its argument prototype would still apply.  */
46006 char $ac_func ();
46007 /* The GNU C library defines this for functions which it implements
46008     to always fail with ENOSYS.  Some functions are actually named
46009     something starting with __ and the normal name is an alias.  */
46010 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46011 choke me
46012 #else
46013 char (*f) () = $ac_func;
46014 #endif
46015 #ifdef __cplusplus
46016 }
46017 #endif
46018
46019 int
46020 main ()
46021 {
46022 return f != $ac_func;
46023   ;
46024   return 0;
46025 }
46026 _ACEOF
46027 rm -f conftest.$ac_objext conftest$ac_exeext
46028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46029   (eval $ac_link) 2>conftest.er1
46030   ac_status=$?
46031   grep -v '^ *+' conftest.er1 >conftest.err
46032   rm -f conftest.er1
46033   cat conftest.err >&5
46034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46035   (exit $ac_status); } &&
46036          { ac_try='test -z "$ac_c_werror_flag"
46037                          || test ! -s conftest.err'
46038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46039   (eval $ac_try) 2>&5
46040   ac_status=$?
46041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46042   (exit $ac_status); }; } &&
46043          { ac_try='test -s conftest$ac_exeext'
46044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46045   (eval $ac_try) 2>&5
46046   ac_status=$?
46047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46048   (exit $ac_status); }; }; then
46049   eval "$as_ac_var=yes"
46050 else
46051   echo "$as_me: failed program was:" >&5
46052 sed 's/^/| /' conftest.$ac_ext >&5
46053
46054 eval "$as_ac_var=no"
46055 fi
46056 rm -f conftest.err conftest.$ac_objext \
46057       conftest$ac_exeext conftest.$ac_ext
46058 fi
46059 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46060 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46061 if test `eval echo '${'$as_ac_var'}'` = yes; then
46062   cat >>confdefs.h <<_ACEOF
46063 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46064 _ACEOF
46065
46066 fi
46067 done
46068
46069
46070 ice_have_puts=no
46071
46072 for ac_func in puts
46073 do
46074 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46075 echo "$as_me:$LINENO: checking for $ac_func" >&5
46076 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46077 if eval "test \"\${$as_ac_var+set}\" = set"; then
46078   echo $ECHO_N "(cached) $ECHO_C" >&6
46079 else
46080   cat >conftest.$ac_ext <<_ACEOF
46081 /* confdefs.h.  */
46082 _ACEOF
46083 cat confdefs.h >>conftest.$ac_ext
46084 cat >>conftest.$ac_ext <<_ACEOF
46085 /* end confdefs.h.  */
46086 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46087    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46088 #define $ac_func innocuous_$ac_func
46089
46090 /* System header to define __stub macros and hopefully few prototypes,
46091     which can conflict with char $ac_func (); below.
46092     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46093     <limits.h> exists even on freestanding compilers.  */
46094
46095 #ifdef __STDC__
46096 # include <limits.h>
46097 #else
46098 # include <assert.h>
46099 #endif
46100
46101 #undef $ac_func
46102
46103 /* Override any gcc2 internal prototype to avoid an error.  */
46104 #ifdef __cplusplus
46105 extern "C"
46106 {
46107 #endif
46108 /* We use char because int might match the return type of a gcc2
46109    builtin and then its argument prototype would still apply.  */
46110 char $ac_func ();
46111 /* The GNU C library defines this for functions which it implements
46112     to always fail with ENOSYS.  Some functions are actually named
46113     something starting with __ and the normal name is an alias.  */
46114 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46115 choke me
46116 #else
46117 char (*f) () = $ac_func;
46118 #endif
46119 #ifdef __cplusplus
46120 }
46121 #endif
46122
46123 int
46124 main ()
46125 {
46126 return f != $ac_func;
46127   ;
46128   return 0;
46129 }
46130 _ACEOF
46131 rm -f conftest.$ac_objext conftest$ac_exeext
46132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46133   (eval $ac_link) 2>conftest.er1
46134   ac_status=$?
46135   grep -v '^ *+' conftest.er1 >conftest.err
46136   rm -f conftest.er1
46137   cat conftest.err >&5
46138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46139   (exit $ac_status); } &&
46140          { ac_try='test -z "$ac_c_werror_flag"
46141                          || test ! -s conftest.err'
46142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46143   (eval $ac_try) 2>&5
46144   ac_status=$?
46145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46146   (exit $ac_status); }; } &&
46147          { ac_try='test -s conftest$ac_exeext'
46148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46149   (eval $ac_try) 2>&5
46150   ac_status=$?
46151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46152   (exit $ac_status); }; }; then
46153   eval "$as_ac_var=yes"
46154 else
46155   echo "$as_me: failed program was:" >&5
46156 sed 's/^/| /' conftest.$ac_ext >&5
46157
46158 eval "$as_ac_var=no"
46159 fi
46160 rm -f conftest.err conftest.$ac_objext \
46161       conftest$ac_exeext conftest.$ac_ext
46162 fi
46163 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46164 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46165 if test `eval echo '${'$as_ac_var'}'` = yes; then
46166   cat >>confdefs.h <<_ACEOF
46167 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46168 _ACEOF
46169  ice_have_puts=yes
46170 fi
46171 done
46172
46173 if test "${ice_have_puts}" = yes; then
46174 echo "$as_me:$LINENO: checking for puts declaration in stdio.h" >&5
46175 echo $ECHO_N "checking for puts declaration in stdio.h... $ECHO_C" >&6
46176 if test "${ice_cv_have_puts_decl+set}" = set; then
46177   echo $ECHO_N "(cached) $ECHO_C" >&6
46178 else
46179
46180 ice_cv_have_puts_decl=no
46181 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
46182 ice_re_word='(^|[^a-zA-Z0-9_])'
46183 for header in stdio.h; do
46184 # Check for ordinary declaration
46185 cat >conftest.$ac_ext <<_ACEOF
46186 /* confdefs.h.  */
46187 _ACEOF
46188 cat confdefs.h >>conftest.$ac_ext
46189 cat >>conftest.$ac_ext <<_ACEOF
46190 /* end confdefs.h.  */
46191 #include <$header>
46192
46193 _ACEOF
46194 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46195   $EGREP "${ice_re_word}puts[   ]*\(" >/dev/null 2>&1; then
46196   ice_cv_have_puts_decl=yes
46197 fi
46198 rm -f conftest*
46199
46200 if test "$ice_cv_have_puts_decl" = yes; then
46201         break
46202 fi
46203 # Check for "fixed" declaration like "getpid _PARAMS((int))"
46204 cat >conftest.$ac_ext <<_ACEOF
46205 /* confdefs.h.  */
46206 _ACEOF
46207 cat confdefs.h >>conftest.$ac_ext
46208 cat >>conftest.$ac_ext <<_ACEOF
46209 /* end confdefs.h.  */
46210 #include <$header>
46211
46212 _ACEOF
46213 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46214   $EGREP "${ice_re_word}puts[   ]*$ice_re_params\(\(" >/dev/null 2>&1; then
46215   ice_cv_have_puts_decl=yes
46216 fi
46217 rm -f conftest*
46218
46219 if test "$ice_cv_have_puts_decl" = yes; then
46220         break
46221 fi
46222 done
46223
46224 fi
46225
46226 echo "$as_me:$LINENO: result: $ice_cv_have_puts_decl" >&5
46227 echo "${ECHO_T}$ice_cv_have_puts_decl" >&6
46228 if test "$ice_cv_have_puts_decl" = yes; then
46229
46230 cat >>confdefs.h <<_ACEOF
46231 #define HAVE_PUTS_DECL 1
46232 _ACEOF
46233
46234 fi
46235 fi
46236
46237
46238 ice_have_realloc=no
46239
46240 for ac_func in realloc
46241 do
46242 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46243 echo "$as_me:$LINENO: checking for $ac_func" >&5
46244 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46245 if eval "test \"\${$as_ac_var+set}\" = set"; then
46246   echo $ECHO_N "(cached) $ECHO_C" >&6
46247 else
46248   cat >conftest.$ac_ext <<_ACEOF
46249 /* confdefs.h.  */
46250 _ACEOF
46251 cat confdefs.h >>conftest.$ac_ext
46252 cat >>conftest.$ac_ext <<_ACEOF
46253 /* end confdefs.h.  */
46254 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46255    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46256 #define $ac_func innocuous_$ac_func
46257
46258 /* System header to define __stub macros and hopefully few prototypes,
46259     which can conflict with char $ac_func (); below.
46260     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46261     <limits.h> exists even on freestanding compilers.  */
46262
46263 #ifdef __STDC__
46264 # include <limits.h>
46265 #else
46266 # include <assert.h>
46267 #endif
46268
46269 #undef $ac_func
46270
46271 /* Override any gcc2 internal prototype to avoid an error.  */
46272 #ifdef __cplusplus
46273 extern "C"
46274 {
46275 #endif
46276 /* We use char because int might match the return type of a gcc2
46277    builtin and then its argument prototype would still apply.  */
46278 char $ac_func ();
46279 /* The GNU C library defines this for functions which it implements
46280     to always fail with ENOSYS.  Some functions are actually named
46281     something starting with __ and the normal name is an alias.  */
46282 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46283 choke me
46284 #else
46285 char (*f) () = $ac_func;
46286 #endif
46287 #ifdef __cplusplus
46288 }
46289 #endif
46290
46291 int
46292 main ()
46293 {
46294 return f != $ac_func;
46295   ;
46296   return 0;
46297 }
46298 _ACEOF
46299 rm -f conftest.$ac_objext conftest$ac_exeext
46300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46301   (eval $ac_link) 2>conftest.er1
46302   ac_status=$?
46303   grep -v '^ *+' conftest.er1 >conftest.err
46304   rm -f conftest.er1
46305   cat conftest.err >&5
46306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46307   (exit $ac_status); } &&
46308          { ac_try='test -z "$ac_c_werror_flag"
46309                          || test ! -s conftest.err'
46310   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46311   (eval $ac_try) 2>&5
46312   ac_status=$?
46313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46314   (exit $ac_status); }; } &&
46315          { ac_try='test -s conftest$ac_exeext'
46316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46317   (eval $ac_try) 2>&5
46318   ac_status=$?
46319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46320   (exit $ac_status); }; }; then
46321   eval "$as_ac_var=yes"
46322 else
46323   echo "$as_me: failed program was:" >&5
46324 sed 's/^/| /' conftest.$ac_ext >&5
46325
46326 eval "$as_ac_var=no"
46327 fi
46328 rm -f conftest.err conftest.$ac_objext \
46329       conftest$ac_exeext conftest.$ac_ext
46330 fi
46331 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46332 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46333 if test `eval echo '${'$as_ac_var'}'` = yes; then
46334   cat >>confdefs.h <<_ACEOF
46335 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46336 _ACEOF
46337  ice_have_realloc=yes
46338 fi
46339 done
46340
46341 if test "${ice_have_realloc}" = yes; then
46342 echo "$as_me:$LINENO: checking for realloc declaration in stdlib.h" >&5
46343 echo $ECHO_N "checking for realloc declaration in stdlib.h... $ECHO_C" >&6
46344 if test "${ice_cv_have_realloc_decl+set}" = set; then
46345   echo $ECHO_N "(cached) $ECHO_C" >&6
46346 else
46347
46348 ice_cv_have_realloc_decl=no
46349 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
46350 ice_re_word='(^|[^a-zA-Z0-9_])'
46351 for header in stdlib.h; do
46352 # Check for ordinary declaration
46353 cat >conftest.$ac_ext <<_ACEOF
46354 /* confdefs.h.  */
46355 _ACEOF
46356 cat confdefs.h >>conftest.$ac_ext
46357 cat >>conftest.$ac_ext <<_ACEOF
46358 /* end confdefs.h.  */
46359 #include <$header>
46360
46361 _ACEOF
46362 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46363   $EGREP "${ice_re_word}realloc[        ]*\(" >/dev/null 2>&1; then
46364   ice_cv_have_realloc_decl=yes
46365 fi
46366 rm -f conftest*
46367
46368 if test "$ice_cv_have_realloc_decl" = yes; then
46369         break
46370 fi
46371 # Check for "fixed" declaration like "getpid _PARAMS((int))"
46372 cat >conftest.$ac_ext <<_ACEOF
46373 /* confdefs.h.  */
46374 _ACEOF
46375 cat confdefs.h >>conftest.$ac_ext
46376 cat >>conftest.$ac_ext <<_ACEOF
46377 /* end confdefs.h.  */
46378 #include <$header>
46379
46380 _ACEOF
46381 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46382   $EGREP "${ice_re_word}realloc[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
46383   ice_cv_have_realloc_decl=yes
46384 fi
46385 rm -f conftest*
46386
46387 if test "$ice_cv_have_realloc_decl" = yes; then
46388         break
46389 fi
46390 done
46391
46392 fi
46393
46394 echo "$as_me:$LINENO: result: $ice_cv_have_realloc_decl" >&5
46395 echo "${ECHO_T}$ice_cv_have_realloc_decl" >&6
46396 if test "$ice_cv_have_realloc_decl" = yes; then
46397
46398 cat >>confdefs.h <<_ACEOF
46399 #define HAVE_REALLOC_DECL 1
46400 _ACEOF
46401
46402 fi
46403 fi
46404
46405
46406 ice_have_recvfrom=no
46407
46408 for ac_func in recvfrom
46409 do
46410 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46411 echo "$as_me:$LINENO: checking for $ac_func" >&5
46412 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46413 if eval "test \"\${$as_ac_var+set}\" = set"; then
46414   echo $ECHO_N "(cached) $ECHO_C" >&6
46415 else
46416   cat >conftest.$ac_ext <<_ACEOF
46417 /* confdefs.h.  */
46418 _ACEOF
46419 cat confdefs.h >>conftest.$ac_ext
46420 cat >>conftest.$ac_ext <<_ACEOF
46421 /* end confdefs.h.  */
46422 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46423    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46424 #define $ac_func innocuous_$ac_func
46425
46426 /* System header to define __stub macros and hopefully few prototypes,
46427     which can conflict with char $ac_func (); below.
46428     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46429     <limits.h> exists even on freestanding compilers.  */
46430
46431 #ifdef __STDC__
46432 # include <limits.h>
46433 #else
46434 # include <assert.h>
46435 #endif
46436
46437 #undef $ac_func
46438
46439 /* Override any gcc2 internal prototype to avoid an error.  */
46440 #ifdef __cplusplus
46441 extern "C"
46442 {
46443 #endif
46444 /* We use char because int might match the return type of a gcc2
46445    builtin and then its argument prototype would still apply.  */
46446 char $ac_func ();
46447 /* The GNU C library defines this for functions which it implements
46448     to always fail with ENOSYS.  Some functions are actually named
46449     something starting with __ and the normal name is an alias.  */
46450 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46451 choke me
46452 #else
46453 char (*f) () = $ac_func;
46454 #endif
46455 #ifdef __cplusplus
46456 }
46457 #endif
46458
46459 int
46460 main ()
46461 {
46462 return f != $ac_func;
46463   ;
46464   return 0;
46465 }
46466 _ACEOF
46467 rm -f conftest.$ac_objext conftest$ac_exeext
46468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46469   (eval $ac_link) 2>conftest.er1
46470   ac_status=$?
46471   grep -v '^ *+' conftest.er1 >conftest.err
46472   rm -f conftest.er1
46473   cat conftest.err >&5
46474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46475   (exit $ac_status); } &&
46476          { ac_try='test -z "$ac_c_werror_flag"
46477                          || test ! -s conftest.err'
46478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46479   (eval $ac_try) 2>&5
46480   ac_status=$?
46481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46482   (exit $ac_status); }; } &&
46483          { ac_try='test -s conftest$ac_exeext'
46484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46485   (eval $ac_try) 2>&5
46486   ac_status=$?
46487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46488   (exit $ac_status); }; }; then
46489   eval "$as_ac_var=yes"
46490 else
46491   echo "$as_me: failed program was:" >&5
46492 sed 's/^/| /' conftest.$ac_ext >&5
46493
46494 eval "$as_ac_var=no"
46495 fi
46496 rm -f conftest.err conftest.$ac_objext \
46497       conftest$ac_exeext conftest.$ac_ext
46498 fi
46499 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46500 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46501 if test `eval echo '${'$as_ac_var'}'` = yes; then
46502   cat >>confdefs.h <<_ACEOF
46503 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46504 _ACEOF
46505  ice_have_recvfrom=yes
46506 fi
46507 done
46508
46509 if test "${ice_have_recvfrom}" = yes; then
46510 echo "$as_me:$LINENO: checking for recvfrom declaration in sys/types.h sys/socket.h" >&5
46511 echo $ECHO_N "checking for recvfrom declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
46512 if test "${ice_cv_have_recvfrom_decl+set}" = set; then
46513   echo $ECHO_N "(cached) $ECHO_C" >&6
46514 else
46515
46516 ice_cv_have_recvfrom_decl=no
46517 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
46518 ice_re_word='(^|[^a-zA-Z0-9_])'
46519 for header in sys/types.h sys/socket.h; do
46520 # Check for ordinary declaration
46521 cat >conftest.$ac_ext <<_ACEOF
46522 /* confdefs.h.  */
46523 _ACEOF
46524 cat confdefs.h >>conftest.$ac_ext
46525 cat >>conftest.$ac_ext <<_ACEOF
46526 /* end confdefs.h.  */
46527 #include <$header>
46528
46529 _ACEOF
46530 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46531   $EGREP "${ice_re_word}recvfrom[       ]*\(" >/dev/null 2>&1; then
46532   ice_cv_have_recvfrom_decl=yes
46533 fi
46534 rm -f conftest*
46535
46536 if test "$ice_cv_have_recvfrom_decl" = yes; then
46537         break
46538 fi
46539 # Check for "fixed" declaration like "getpid _PARAMS((int))"
46540 cat >conftest.$ac_ext <<_ACEOF
46541 /* confdefs.h.  */
46542 _ACEOF
46543 cat confdefs.h >>conftest.$ac_ext
46544 cat >>conftest.$ac_ext <<_ACEOF
46545 /* end confdefs.h.  */
46546 #include <$header>
46547
46548 _ACEOF
46549 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46550   $EGREP "${ice_re_word}recvfrom[       ]*$ice_re_params\(\(" >/dev/null 2>&1; then
46551   ice_cv_have_recvfrom_decl=yes
46552 fi
46553 rm -f conftest*
46554
46555 if test "$ice_cv_have_recvfrom_decl" = yes; then
46556         break
46557 fi
46558 done
46559
46560 fi
46561
46562 echo "$as_me:$LINENO: result: $ice_cv_have_recvfrom_decl" >&5
46563 echo "${ECHO_T}$ice_cv_have_recvfrom_decl" >&6
46564 if test "$ice_cv_have_recvfrom_decl" = yes; then
46565
46566 cat >>confdefs.h <<_ACEOF
46567 #define HAVE_RECVFROM_DECL 1
46568 _ACEOF
46569
46570 fi
46571 fi
46572
46573
46574 ice_have_remove=no
46575
46576 for ac_func in remove
46577 do
46578 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46579 echo "$as_me:$LINENO: checking for $ac_func" >&5
46580 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46581 if eval "test \"\${$as_ac_var+set}\" = set"; then
46582   echo $ECHO_N "(cached) $ECHO_C" >&6
46583 else
46584   cat >conftest.$ac_ext <<_ACEOF
46585 /* confdefs.h.  */
46586 _ACEOF
46587 cat confdefs.h >>conftest.$ac_ext
46588 cat >>conftest.$ac_ext <<_ACEOF
46589 /* end confdefs.h.  */
46590 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46591    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46592 #define $ac_func innocuous_$ac_func
46593
46594 /* System header to define __stub macros and hopefully few prototypes,
46595     which can conflict with char $ac_func (); below.
46596     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46597     <limits.h> exists even on freestanding compilers.  */
46598
46599 #ifdef __STDC__
46600 # include <limits.h>
46601 #else
46602 # include <assert.h>
46603 #endif
46604
46605 #undef $ac_func
46606
46607 /* Override any gcc2 internal prototype to avoid an error.  */
46608 #ifdef __cplusplus
46609 extern "C"
46610 {
46611 #endif
46612 /* We use char because int might match the return type of a gcc2
46613    builtin and then its argument prototype would still apply.  */
46614 char $ac_func ();
46615 /* The GNU C library defines this for functions which it implements
46616     to always fail with ENOSYS.  Some functions are actually named
46617     something starting with __ and the normal name is an alias.  */
46618 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46619 choke me
46620 #else
46621 char (*f) () = $ac_func;
46622 #endif
46623 #ifdef __cplusplus
46624 }
46625 #endif
46626
46627 int
46628 main ()
46629 {
46630 return f != $ac_func;
46631   ;
46632   return 0;
46633 }
46634 _ACEOF
46635 rm -f conftest.$ac_objext conftest$ac_exeext
46636 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46637   (eval $ac_link) 2>conftest.er1
46638   ac_status=$?
46639   grep -v '^ *+' conftest.er1 >conftest.err
46640   rm -f conftest.er1
46641   cat conftest.err >&5
46642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46643   (exit $ac_status); } &&
46644          { ac_try='test -z "$ac_c_werror_flag"
46645                          || test ! -s conftest.err'
46646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46647   (eval $ac_try) 2>&5
46648   ac_status=$?
46649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46650   (exit $ac_status); }; } &&
46651          { ac_try='test -s conftest$ac_exeext'
46652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46653   (eval $ac_try) 2>&5
46654   ac_status=$?
46655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46656   (exit $ac_status); }; }; then
46657   eval "$as_ac_var=yes"
46658 else
46659   echo "$as_me: failed program was:" >&5
46660 sed 's/^/| /' conftest.$ac_ext >&5
46661
46662 eval "$as_ac_var=no"
46663 fi
46664 rm -f conftest.err conftest.$ac_objext \
46665       conftest$ac_exeext conftest.$ac_ext
46666 fi
46667 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46668 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46669 if test `eval echo '${'$as_ac_var'}'` = yes; then
46670   cat >>confdefs.h <<_ACEOF
46671 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46672 _ACEOF
46673  ice_have_remove=yes
46674 fi
46675 done
46676
46677 if test "${ice_have_remove}" = yes; then
46678 echo "$as_me:$LINENO: checking for remove declaration in stdio.h" >&5
46679 echo $ECHO_N "checking for remove declaration in stdio.h... $ECHO_C" >&6
46680 if test "${ice_cv_have_remove_decl+set}" = set; then
46681   echo $ECHO_N "(cached) $ECHO_C" >&6
46682 else
46683
46684 ice_cv_have_remove_decl=no
46685 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
46686 ice_re_word='(^|[^a-zA-Z0-9_])'
46687 for header in stdio.h; do
46688 # Check for ordinary declaration
46689 cat >conftest.$ac_ext <<_ACEOF
46690 /* confdefs.h.  */
46691 _ACEOF
46692 cat confdefs.h >>conftest.$ac_ext
46693 cat >>conftest.$ac_ext <<_ACEOF
46694 /* end confdefs.h.  */
46695 #include <$header>
46696
46697 _ACEOF
46698 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46699   $EGREP "${ice_re_word}remove[         ]*\(" >/dev/null 2>&1; then
46700   ice_cv_have_remove_decl=yes
46701 fi
46702 rm -f conftest*
46703
46704 if test "$ice_cv_have_remove_decl" = yes; then
46705         break
46706 fi
46707 # Check for "fixed" declaration like "getpid _PARAMS((int))"
46708 cat >conftest.$ac_ext <<_ACEOF
46709 /* confdefs.h.  */
46710 _ACEOF
46711 cat confdefs.h >>conftest.$ac_ext
46712 cat >>conftest.$ac_ext <<_ACEOF
46713 /* end confdefs.h.  */
46714 #include <$header>
46715
46716 _ACEOF
46717 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46718   $EGREP "${ice_re_word}remove[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
46719   ice_cv_have_remove_decl=yes
46720 fi
46721 rm -f conftest*
46722
46723 if test "$ice_cv_have_remove_decl" = yes; then
46724         break
46725 fi
46726 done
46727
46728 fi
46729
46730 echo "$as_me:$LINENO: result: $ice_cv_have_remove_decl" >&5
46731 echo "${ECHO_T}$ice_cv_have_remove_decl" >&6
46732 if test "$ice_cv_have_remove_decl" = yes; then
46733
46734 cat >>confdefs.h <<_ACEOF
46735 #define HAVE_REMOVE_DECL 1
46736 _ACEOF
46737
46738 fi
46739 fi
46740
46741
46742 ice_have_rename=no
46743
46744 for ac_func in rename
46745 do
46746 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46747 echo "$as_me:$LINENO: checking for $ac_func" >&5
46748 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46749 if eval "test \"\${$as_ac_var+set}\" = set"; then
46750   echo $ECHO_N "(cached) $ECHO_C" >&6
46751 else
46752   cat >conftest.$ac_ext <<_ACEOF
46753 /* confdefs.h.  */
46754 _ACEOF
46755 cat confdefs.h >>conftest.$ac_ext
46756 cat >>conftest.$ac_ext <<_ACEOF
46757 /* end confdefs.h.  */
46758 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46759    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46760 #define $ac_func innocuous_$ac_func
46761
46762 /* System header to define __stub macros and hopefully few prototypes,
46763     which can conflict with char $ac_func (); below.
46764     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46765     <limits.h> exists even on freestanding compilers.  */
46766
46767 #ifdef __STDC__
46768 # include <limits.h>
46769 #else
46770 # include <assert.h>
46771 #endif
46772
46773 #undef $ac_func
46774
46775 /* Override any gcc2 internal prototype to avoid an error.  */
46776 #ifdef __cplusplus
46777 extern "C"
46778 {
46779 #endif
46780 /* We use char because int might match the return type of a gcc2
46781    builtin and then its argument prototype would still apply.  */
46782 char $ac_func ();
46783 /* The GNU C library defines this for functions which it implements
46784     to always fail with ENOSYS.  Some functions are actually named
46785     something starting with __ and the normal name is an alias.  */
46786 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46787 choke me
46788 #else
46789 char (*f) () = $ac_func;
46790 #endif
46791 #ifdef __cplusplus
46792 }
46793 #endif
46794
46795 int
46796 main ()
46797 {
46798 return f != $ac_func;
46799   ;
46800   return 0;
46801 }
46802 _ACEOF
46803 rm -f conftest.$ac_objext conftest$ac_exeext
46804 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46805   (eval $ac_link) 2>conftest.er1
46806   ac_status=$?
46807   grep -v '^ *+' conftest.er1 >conftest.err
46808   rm -f conftest.er1
46809   cat conftest.err >&5
46810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46811   (exit $ac_status); } &&
46812          { ac_try='test -z "$ac_c_werror_flag"
46813                          || test ! -s conftest.err'
46814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46815   (eval $ac_try) 2>&5
46816   ac_status=$?
46817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46818   (exit $ac_status); }; } &&
46819          { ac_try='test -s conftest$ac_exeext'
46820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46821   (eval $ac_try) 2>&5
46822   ac_status=$?
46823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46824   (exit $ac_status); }; }; then
46825   eval "$as_ac_var=yes"
46826 else
46827   echo "$as_me: failed program was:" >&5
46828 sed 's/^/| /' conftest.$ac_ext >&5
46829
46830 eval "$as_ac_var=no"
46831 fi
46832 rm -f conftest.err conftest.$ac_objext \
46833       conftest$ac_exeext conftest.$ac_ext
46834 fi
46835 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46836 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46837 if test `eval echo '${'$as_ac_var'}'` = yes; then
46838   cat >>confdefs.h <<_ACEOF
46839 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46840 _ACEOF
46841  ice_have_rename=yes
46842 fi
46843 done
46844
46845 if test "${ice_have_rename}" = yes; then
46846 echo "$as_me:$LINENO: checking for rename declaration in stdio.h" >&5
46847 echo $ECHO_N "checking for rename declaration in stdio.h... $ECHO_C" >&6
46848 if test "${ice_cv_have_rename_decl+set}" = set; then
46849   echo $ECHO_N "(cached) $ECHO_C" >&6
46850 else
46851
46852 ice_cv_have_rename_decl=no
46853 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
46854 ice_re_word='(^|[^a-zA-Z0-9_])'
46855 for header in stdio.h; do
46856 # Check for ordinary declaration
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 #include <$header>
46864
46865 _ACEOF
46866 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46867   $EGREP "${ice_re_word}rename[         ]*\(" >/dev/null 2>&1; then
46868   ice_cv_have_rename_decl=yes
46869 fi
46870 rm -f conftest*
46871
46872 if test "$ice_cv_have_rename_decl" = yes; then
46873         break
46874 fi
46875 # Check for "fixed" declaration like "getpid _PARAMS((int))"
46876 cat >conftest.$ac_ext <<_ACEOF
46877 /* confdefs.h.  */
46878 _ACEOF
46879 cat confdefs.h >>conftest.$ac_ext
46880 cat >>conftest.$ac_ext <<_ACEOF
46881 /* end confdefs.h.  */
46882 #include <$header>
46883
46884 _ACEOF
46885 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46886   $EGREP "${ice_re_word}rename[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
46887   ice_cv_have_rename_decl=yes
46888 fi
46889 rm -f conftest*
46890
46891 if test "$ice_cv_have_rename_decl" = yes; then
46892         break
46893 fi
46894 done
46895
46896 fi
46897
46898 echo "$as_me:$LINENO: result: $ice_cv_have_rename_decl" >&5
46899 echo "${ECHO_T}$ice_cv_have_rename_decl" >&6
46900 if test "$ice_cv_have_rename_decl" = yes; then
46901
46902 cat >>confdefs.h <<_ACEOF
46903 #define HAVE_RENAME_DECL 1
46904 _ACEOF
46905
46906 fi
46907 fi
46908
46909
46910 ice_have_rewind=no
46911
46912 for ac_func in rewind
46913 do
46914 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46915 echo "$as_me:$LINENO: checking for $ac_func" >&5
46916 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46917 if eval "test \"\${$as_ac_var+set}\" = set"; then
46918   echo $ECHO_N "(cached) $ECHO_C" >&6
46919 else
46920   cat >conftest.$ac_ext <<_ACEOF
46921 /* confdefs.h.  */
46922 _ACEOF
46923 cat confdefs.h >>conftest.$ac_ext
46924 cat >>conftest.$ac_ext <<_ACEOF
46925 /* end confdefs.h.  */
46926 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46927    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46928 #define $ac_func innocuous_$ac_func
46929
46930 /* System header to define __stub macros and hopefully few prototypes,
46931     which can conflict with char $ac_func (); below.
46932     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46933     <limits.h> exists even on freestanding compilers.  */
46934
46935 #ifdef __STDC__
46936 # include <limits.h>
46937 #else
46938 # include <assert.h>
46939 #endif
46940
46941 #undef $ac_func
46942
46943 /* Override any gcc2 internal prototype to avoid an error.  */
46944 #ifdef __cplusplus
46945 extern "C"
46946 {
46947 #endif
46948 /* We use char because int might match the return type of a gcc2
46949    builtin and then its argument prototype would still apply.  */
46950 char $ac_func ();
46951 /* The GNU C library defines this for functions which it implements
46952     to always fail with ENOSYS.  Some functions are actually named
46953     something starting with __ and the normal name is an alias.  */
46954 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46955 choke me
46956 #else
46957 char (*f) () = $ac_func;
46958 #endif
46959 #ifdef __cplusplus
46960 }
46961 #endif
46962
46963 int
46964 main ()
46965 {
46966 return f != $ac_func;
46967   ;
46968   return 0;
46969 }
46970 _ACEOF
46971 rm -f conftest.$ac_objext conftest$ac_exeext
46972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46973   (eval $ac_link) 2>conftest.er1
46974   ac_status=$?
46975   grep -v '^ *+' conftest.er1 >conftest.err
46976   rm -f conftest.er1
46977   cat conftest.err >&5
46978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46979   (exit $ac_status); } &&
46980          { ac_try='test -z "$ac_c_werror_flag"
46981                          || test ! -s conftest.err'
46982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46983   (eval $ac_try) 2>&5
46984   ac_status=$?
46985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46986   (exit $ac_status); }; } &&
46987          { ac_try='test -s conftest$ac_exeext'
46988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46989   (eval $ac_try) 2>&5
46990   ac_status=$?
46991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46992   (exit $ac_status); }; }; then
46993   eval "$as_ac_var=yes"
46994 else
46995   echo "$as_me: failed program was:" >&5
46996 sed 's/^/| /' conftest.$ac_ext >&5
46997
46998 eval "$as_ac_var=no"
46999 fi
47000 rm -f conftest.err conftest.$ac_objext \
47001       conftest$ac_exeext conftest.$ac_ext
47002 fi
47003 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47004 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47005 if test `eval echo '${'$as_ac_var'}'` = yes; then
47006   cat >>confdefs.h <<_ACEOF
47007 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47008 _ACEOF
47009  ice_have_rewind=yes
47010 fi
47011 done
47012
47013 if test "${ice_have_rewind}" = yes; then
47014 echo "$as_me:$LINENO: checking for rewind declaration in stdio.h" >&5
47015 echo $ECHO_N "checking for rewind declaration in stdio.h... $ECHO_C" >&6
47016 if test "${ice_cv_have_rewind_decl+set}" = set; then
47017   echo $ECHO_N "(cached) $ECHO_C" >&6
47018 else
47019
47020 ice_cv_have_rewind_decl=no
47021 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
47022 ice_re_word='(^|[^a-zA-Z0-9_])'
47023 for header in stdio.h; do
47024 # Check for ordinary declaration
47025 cat >conftest.$ac_ext <<_ACEOF
47026 /* confdefs.h.  */
47027 _ACEOF
47028 cat confdefs.h >>conftest.$ac_ext
47029 cat >>conftest.$ac_ext <<_ACEOF
47030 /* end confdefs.h.  */
47031 #include <$header>
47032
47033 _ACEOF
47034 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47035   $EGREP "${ice_re_word}rewind[         ]*\(" >/dev/null 2>&1; then
47036   ice_cv_have_rewind_decl=yes
47037 fi
47038 rm -f conftest*
47039
47040 if test "$ice_cv_have_rewind_decl" = yes; then
47041         break
47042 fi
47043 # Check for "fixed" declaration like "getpid _PARAMS((int))"
47044 cat >conftest.$ac_ext <<_ACEOF
47045 /* confdefs.h.  */
47046 _ACEOF
47047 cat confdefs.h >>conftest.$ac_ext
47048 cat >>conftest.$ac_ext <<_ACEOF
47049 /* end confdefs.h.  */
47050 #include <$header>
47051
47052 _ACEOF
47053 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47054   $EGREP "${ice_re_word}rewind[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
47055   ice_cv_have_rewind_decl=yes
47056 fi
47057 rm -f conftest*
47058
47059 if test "$ice_cv_have_rewind_decl" = yes; then
47060         break
47061 fi
47062 done
47063
47064 fi
47065
47066 echo "$as_me:$LINENO: result: $ice_cv_have_rewind_decl" >&5
47067 echo "${ECHO_T}$ice_cv_have_rewind_decl" >&6
47068 if test "$ice_cv_have_rewind_decl" = yes; then
47069
47070 cat >>confdefs.h <<_ACEOF
47071 #define HAVE_REWIND_DECL 1
47072 _ACEOF
47073
47074 fi
47075 fi
47076
47077
47078 for ac_func in rmdir
47079 do
47080 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47081 echo "$as_me:$LINENO: checking for $ac_func" >&5
47082 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47083 if eval "test \"\${$as_ac_var+set}\" = set"; then
47084   echo $ECHO_N "(cached) $ECHO_C" >&6
47085 else
47086   cat >conftest.$ac_ext <<_ACEOF
47087 /* confdefs.h.  */
47088 _ACEOF
47089 cat confdefs.h >>conftest.$ac_ext
47090 cat >>conftest.$ac_ext <<_ACEOF
47091 /* end confdefs.h.  */
47092 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47093    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
47094 #define $ac_func innocuous_$ac_func
47095
47096 /* System header to define __stub macros and hopefully few prototypes,
47097     which can conflict with char $ac_func (); below.
47098     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47099     <limits.h> exists even on freestanding compilers.  */
47100
47101 #ifdef __STDC__
47102 # include <limits.h>
47103 #else
47104 # include <assert.h>
47105 #endif
47106
47107 #undef $ac_func
47108
47109 /* Override any gcc2 internal prototype to avoid an error.  */
47110 #ifdef __cplusplus
47111 extern "C"
47112 {
47113 #endif
47114 /* We use char because int might match the return type of a gcc2
47115    builtin and then its argument prototype would still apply.  */
47116 char $ac_func ();
47117 /* The GNU C library defines this for functions which it implements
47118     to always fail with ENOSYS.  Some functions are actually named
47119     something starting with __ and the normal name is an alias.  */
47120 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47121 choke me
47122 #else
47123 char (*f) () = $ac_func;
47124 #endif
47125 #ifdef __cplusplus
47126 }
47127 #endif
47128
47129 int
47130 main ()
47131 {
47132 return f != $ac_func;
47133   ;
47134   return 0;
47135 }
47136 _ACEOF
47137 rm -f conftest.$ac_objext conftest$ac_exeext
47138 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47139   (eval $ac_link) 2>conftest.er1
47140   ac_status=$?
47141   grep -v '^ *+' conftest.er1 >conftest.err
47142   rm -f conftest.er1
47143   cat conftest.err >&5
47144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47145   (exit $ac_status); } &&
47146          { ac_try='test -z "$ac_c_werror_flag"
47147                          || test ! -s conftest.err'
47148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47149   (eval $ac_try) 2>&5
47150   ac_status=$?
47151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47152   (exit $ac_status); }; } &&
47153          { ac_try='test -s conftest$ac_exeext'
47154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47155   (eval $ac_try) 2>&5
47156   ac_status=$?
47157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47158   (exit $ac_status); }; }; then
47159   eval "$as_ac_var=yes"
47160 else
47161   echo "$as_me: failed program was:" >&5
47162 sed 's/^/| /' conftest.$ac_ext >&5
47163
47164 eval "$as_ac_var=no"
47165 fi
47166 rm -f conftest.err conftest.$ac_objext \
47167       conftest$ac_exeext conftest.$ac_ext
47168 fi
47169 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47170 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47171 if test `eval echo '${'$as_ac_var'}'` = yes; then
47172   cat >>confdefs.h <<_ACEOF
47173 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47174 _ACEOF
47175
47176 fi
47177 done
47178
47179
47180 ice_have_ruserok=no
47181
47182 for ac_func in ruserok
47183 do
47184 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47185 echo "$as_me:$LINENO: checking for $ac_func" >&5
47186 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47187 if eval "test \"\${$as_ac_var+set}\" = set"; then
47188   echo $ECHO_N "(cached) $ECHO_C" >&6
47189 else
47190   cat >conftest.$ac_ext <<_ACEOF
47191 /* confdefs.h.  */
47192 _ACEOF
47193 cat confdefs.h >>conftest.$ac_ext
47194 cat >>conftest.$ac_ext <<_ACEOF
47195 /* end confdefs.h.  */
47196 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47197    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
47198 #define $ac_func innocuous_$ac_func
47199
47200 /* System header to define __stub macros and hopefully few prototypes,
47201     which can conflict with char $ac_func (); below.
47202     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47203     <limits.h> exists even on freestanding compilers.  */
47204
47205 #ifdef __STDC__
47206 # include <limits.h>
47207 #else
47208 # include <assert.h>
47209 #endif
47210
47211 #undef $ac_func
47212
47213 /* Override any gcc2 internal prototype to avoid an error.  */
47214 #ifdef __cplusplus
47215 extern "C"
47216 {
47217 #endif
47218 /* We use char because int might match the return type of a gcc2
47219    builtin and then its argument prototype would still apply.  */
47220 char $ac_func ();
47221 /* The GNU C library defines this for functions which it implements
47222     to always fail with ENOSYS.  Some functions are actually named
47223     something starting with __ and the normal name is an alias.  */
47224 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47225 choke me
47226 #else
47227 char (*f) () = $ac_func;
47228 #endif
47229 #ifdef __cplusplus
47230 }
47231 #endif
47232
47233 int
47234 main ()
47235 {
47236 return f != $ac_func;
47237   ;
47238   return 0;
47239 }
47240 _ACEOF
47241 rm -f conftest.$ac_objext conftest$ac_exeext
47242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47243   (eval $ac_link) 2>conftest.er1
47244   ac_status=$?
47245   grep -v '^ *+' conftest.er1 >conftest.err
47246   rm -f conftest.er1
47247   cat conftest.err >&5
47248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47249   (exit $ac_status); } &&
47250          { ac_try='test -z "$ac_c_werror_flag"
47251                          || test ! -s conftest.err'
47252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47253   (eval $ac_try) 2>&5
47254   ac_status=$?
47255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47256   (exit $ac_status); }; } &&
47257          { ac_try='test -s conftest$ac_exeext'
47258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47259   (eval $ac_try) 2>&5
47260   ac_status=$?
47261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47262   (exit $ac_status); }; }; then
47263   eval "$as_ac_var=yes"
47264 else
47265   echo "$as_me: failed program was:" >&5
47266 sed 's/^/| /' conftest.$ac_ext >&5
47267
47268 eval "$as_ac_var=no"
47269 fi
47270 rm -f conftest.err conftest.$ac_objext \
47271       conftest$ac_exeext conftest.$ac_ext
47272 fi
47273 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47274 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47275 if test `eval echo '${'$as_ac_var'}'` = yes; then
47276   cat >>confdefs.h <<_ACEOF
47277 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47278 _ACEOF
47279  ice_have_ruserok=yes
47280 fi
47281 done
47282
47283 if test "${ice_have_ruserok}" = yes; then
47284 echo "$as_me:$LINENO: checking for ruserok declaration in netdb.h sys/socket.h libc.h unistd.h" >&5
47285 echo $ECHO_N "checking for ruserok declaration in netdb.h sys/socket.h libc.h unistd.h... $ECHO_C" >&6
47286 if test "${ice_cv_have_ruserok_decl+set}" = set; then
47287   echo $ECHO_N "(cached) $ECHO_C" >&6
47288 else
47289
47290 ice_cv_have_ruserok_decl=no
47291 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
47292 ice_re_word='(^|[^a-zA-Z0-9_])'
47293 for header in netdb.h sys/socket.h libc.h unistd.h; do
47294 # Check for ordinary declaration
47295 cat >conftest.$ac_ext <<_ACEOF
47296 /* confdefs.h.  */
47297 _ACEOF
47298 cat confdefs.h >>conftest.$ac_ext
47299 cat >>conftest.$ac_ext <<_ACEOF
47300 /* end confdefs.h.  */
47301 #include <$header>
47302
47303 _ACEOF
47304 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47305   $EGREP "${ice_re_word}ruserok[        ]*\(" >/dev/null 2>&1; then
47306   ice_cv_have_ruserok_decl=yes
47307 fi
47308 rm -f conftest*
47309
47310 if test "$ice_cv_have_ruserok_decl" = yes; then
47311         break
47312 fi
47313 # Check for "fixed" declaration like "getpid _PARAMS((int))"
47314 cat >conftest.$ac_ext <<_ACEOF
47315 /* confdefs.h.  */
47316 _ACEOF
47317 cat confdefs.h >>conftest.$ac_ext
47318 cat >>conftest.$ac_ext <<_ACEOF
47319 /* end confdefs.h.  */
47320 #include <$header>
47321
47322 _ACEOF
47323 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47324   $EGREP "${ice_re_word}ruserok[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
47325   ice_cv_have_ruserok_decl=yes
47326 fi
47327 rm -f conftest*
47328
47329 if test "$ice_cv_have_ruserok_decl" = yes; then
47330         break
47331 fi
47332 done
47333
47334 fi
47335
47336 echo "$as_me:$LINENO: result: $ice_cv_have_ruserok_decl" >&5
47337 echo "${ECHO_T}$ice_cv_have_ruserok_decl" >&6
47338 if test "$ice_cv_have_ruserok_decl" = yes; then
47339
47340 cat >>confdefs.h <<_ACEOF
47341 #define HAVE_RUSEROK_DECL 1
47342 _ACEOF
47343
47344 fi
47345 fi
47346
47347
47348 ice_have_select=no
47349
47350 for ac_func in select
47351 do
47352 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47353 echo "$as_me:$LINENO: checking for $ac_func" >&5
47354 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47355 if eval "test \"\${$as_ac_var+set}\" = set"; then
47356   echo $ECHO_N "(cached) $ECHO_C" >&6
47357 else
47358   cat >conftest.$ac_ext <<_ACEOF
47359 /* confdefs.h.  */
47360 _ACEOF
47361 cat confdefs.h >>conftest.$ac_ext
47362 cat >>conftest.$ac_ext <<_ACEOF
47363 /* end confdefs.h.  */
47364 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47365    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
47366 #define $ac_func innocuous_$ac_func
47367
47368 /* System header to define __stub macros and hopefully few prototypes,
47369     which can conflict with char $ac_func (); below.
47370     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47371     <limits.h> exists even on freestanding compilers.  */
47372
47373 #ifdef __STDC__
47374 # include <limits.h>
47375 #else
47376 # include <assert.h>
47377 #endif
47378
47379 #undef $ac_func
47380
47381 /* Override any gcc2 internal prototype to avoid an error.  */
47382 #ifdef __cplusplus
47383 extern "C"
47384 {
47385 #endif
47386 /* We use char because int might match the return type of a gcc2
47387    builtin and then its argument prototype would still apply.  */
47388 char $ac_func ();
47389 /* The GNU C library defines this for functions which it implements
47390     to always fail with ENOSYS.  Some functions are actually named
47391     something starting with __ and the normal name is an alias.  */
47392 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47393 choke me
47394 #else
47395 char (*f) () = $ac_func;
47396 #endif
47397 #ifdef __cplusplus
47398 }
47399 #endif
47400
47401 int
47402 main ()
47403 {
47404 return f != $ac_func;
47405   ;
47406   return 0;
47407 }
47408 _ACEOF
47409 rm -f conftest.$ac_objext conftest$ac_exeext
47410 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47411   (eval $ac_link) 2>conftest.er1
47412   ac_status=$?
47413   grep -v '^ *+' conftest.er1 >conftest.err
47414   rm -f conftest.er1
47415   cat conftest.err >&5
47416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47417   (exit $ac_status); } &&
47418          { ac_try='test -z "$ac_c_werror_flag"
47419                          || test ! -s conftest.err'
47420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47421   (eval $ac_try) 2>&5
47422   ac_status=$?
47423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47424   (exit $ac_status); }; } &&
47425          { ac_try='test -s conftest$ac_exeext'
47426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47427   (eval $ac_try) 2>&5
47428   ac_status=$?
47429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47430   (exit $ac_status); }; }; then
47431   eval "$as_ac_var=yes"
47432 else
47433   echo "$as_me: failed program was:" >&5
47434 sed 's/^/| /' conftest.$ac_ext >&5
47435
47436 eval "$as_ac_var=no"
47437 fi
47438 rm -f conftest.err conftest.$ac_objext \
47439       conftest$ac_exeext conftest.$ac_ext
47440 fi
47441 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47442 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47443 if test `eval echo '${'$as_ac_var'}'` = yes; then
47444   cat >>confdefs.h <<_ACEOF
47445 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47446 _ACEOF
47447  ice_have_select=yes
47448 fi
47449 done
47450
47451 if test "${ice_have_select}" = yes; then
47452 echo "$as_me:$LINENO: checking for select declaration in sys/types.h sys/socket.h sys/select.h time.h sys/time.h" >&5
47453 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
47454 if test "${ice_cv_have_select_decl+set}" = set; then
47455   echo $ECHO_N "(cached) $ECHO_C" >&6
47456 else
47457
47458 ice_cv_have_select_decl=no
47459 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
47460 ice_re_word='(^|[^a-zA-Z0-9_])'
47461 for header in sys/types.h sys/socket.h sys/select.h time.h sys/time.h; do
47462 # Check for ordinary declaration
47463 cat >conftest.$ac_ext <<_ACEOF
47464 /* confdefs.h.  */
47465 _ACEOF
47466 cat confdefs.h >>conftest.$ac_ext
47467 cat >>conftest.$ac_ext <<_ACEOF
47468 /* end confdefs.h.  */
47469 #include <$header>
47470
47471 _ACEOF
47472 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47473   $EGREP "${ice_re_word}select[         ]*\(" >/dev/null 2>&1; then
47474   ice_cv_have_select_decl=yes
47475 fi
47476 rm -f conftest*
47477
47478 if test "$ice_cv_have_select_decl" = yes; then
47479         break
47480 fi
47481 # Check for "fixed" declaration like "getpid _PARAMS((int))"
47482 cat >conftest.$ac_ext <<_ACEOF
47483 /* confdefs.h.  */
47484 _ACEOF
47485 cat confdefs.h >>conftest.$ac_ext
47486 cat >>conftest.$ac_ext <<_ACEOF
47487 /* end confdefs.h.  */
47488 #include <$header>
47489
47490 _ACEOF
47491 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47492   $EGREP "${ice_re_word}select[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
47493   ice_cv_have_select_decl=yes
47494 fi
47495 rm -f conftest*
47496
47497 if test "$ice_cv_have_select_decl" = yes; then
47498         break
47499 fi
47500 done
47501
47502 fi
47503
47504 echo "$as_me:$LINENO: result: $ice_cv_have_select_decl" >&5
47505 echo "${ECHO_T}$ice_cv_have_select_decl" >&6
47506 if test "$ice_cv_have_select_decl" = yes; then
47507
47508 cat >>confdefs.h <<_ACEOF
47509 #define HAVE_SELECT_DECL 1
47510 _ACEOF
47511
47512 fi
47513 fi
47514
47515
47516         echo "$as_me:$LINENO: checking for select() argument type" >&5
47517 echo $ECHO_N "checking for select() argument type... $ECHO_C" >&6
47518 if test "${amanda_cv_select_arg_type+set}" = set; then
47519   echo $ECHO_N "(cached) $ECHO_C" >&6
47520 else
47521
47522                 rm -f conftest.c
47523                 cat <<EOF >conftest.$ac_ext
47524 #include "confdefs.h"
47525 #ifdef HAVE_SYS_TIME_H
47526 # include <sys/time.h>
47527 #endif
47528 #ifdef HAVE_SYS_TYPES_H
47529 # include <sys/types.h>
47530 #endif
47531 #ifdef HAVE_SYS_SELECT_H
47532 #  include <sys/select.h>
47533 #endif
47534 #ifdef HAVE_SYS_SOCKET_H
47535 #  include <sys/socket.h>
47536 #endif
47537 #ifdef HAVE_UNISTD_H
47538 # include <unistd.h>
47539 #endif
47540
47541 int main()
47542 {
47543 #ifdef FD_SET_POINTER
47544         (void)select(0, (fd_set *) 0, (fd_set *) 0, (fd_set *) 0, 0);
47545 #else
47546         (void)select(0, (int *) 0, (int *) 0, (int *) 0, 0);
47547 #endif
47548         return 0;
47549 }
47550 EOF
47551
47552                                                                                                                                 amanda_cv_select_arg_type=no
47553                 select_compile="${CC-cc} -c $CFLAGS $CPPFLAGS"
47554                 $select_compile -DFD_SET_POINTER conftest.$ac_ext 1>conftest.fd_set 2>&1
47555                 if test $? -ne 0; then
47556                     amanda_cv_select_arg_type=int
47557                 fi
47558                 if test "$amanda_cv_select_arg_type" = no; then
47559                     $select_compile conftest.$ac_ext 1>conftest.int 2>&1
47560                     if test $? -ne 0; then
47561                         amanda_cv_select_arg_type=fd_set
47562                     fi
47563                 fi
47564                 if test "$amanda_cv_select_arg_type" = no; then
47565                     wc_fdset=`wc -l <conftest.fd_set`
47566                     wc_int=`wc -l <conftest.int`
47567                     if test "$wc_fdset" -le "$wc_int"; then
47568                         amanda_cv_select_arg_type=fd_set
47569                     else
47570                         amanda_cv_select_arg_type=int
47571                     fi
47572                 fi
47573                 rm -f conftest*
47574
47575
47576 fi
47577 echo "$as_me:$LINENO: result: $amanda_cv_select_arg_type" >&5
47578 echo "${ECHO_T}$amanda_cv_select_arg_type" >&6
47579
47580 cat >>confdefs.h <<_ACEOF
47581 #define SELECT_ARG_TYPE $amanda_cv_select_arg_type
47582 _ACEOF
47583
47584
47585
47586
47587 ice_have_sendto=no
47588
47589 for ac_func in sendto
47590 do
47591 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47592 echo "$as_me:$LINENO: checking for $ac_func" >&5
47593 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47594 if eval "test \"\${$as_ac_var+set}\" = set"; then
47595   echo $ECHO_N "(cached) $ECHO_C" >&6
47596 else
47597   cat >conftest.$ac_ext <<_ACEOF
47598 /* confdefs.h.  */
47599 _ACEOF
47600 cat confdefs.h >>conftest.$ac_ext
47601 cat >>conftest.$ac_ext <<_ACEOF
47602 /* end confdefs.h.  */
47603 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47604    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
47605 #define $ac_func innocuous_$ac_func
47606
47607 /* System header to define __stub macros and hopefully few prototypes,
47608     which can conflict with char $ac_func (); below.
47609     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47610     <limits.h> exists even on freestanding compilers.  */
47611
47612 #ifdef __STDC__
47613 # include <limits.h>
47614 #else
47615 # include <assert.h>
47616 #endif
47617
47618 #undef $ac_func
47619
47620 /* Override any gcc2 internal prototype to avoid an error.  */
47621 #ifdef __cplusplus
47622 extern "C"
47623 {
47624 #endif
47625 /* We use char because int might match the return type of a gcc2
47626    builtin and then its argument prototype would still apply.  */
47627 char $ac_func ();
47628 /* The GNU C library defines this for functions which it implements
47629     to always fail with ENOSYS.  Some functions are actually named
47630     something starting with __ and the normal name is an alias.  */
47631 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47632 choke me
47633 #else
47634 char (*f) () = $ac_func;
47635 #endif
47636 #ifdef __cplusplus
47637 }
47638 #endif
47639
47640 int
47641 main ()
47642 {
47643 return f != $ac_func;
47644   ;
47645   return 0;
47646 }
47647 _ACEOF
47648 rm -f conftest.$ac_objext conftest$ac_exeext
47649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47650   (eval $ac_link) 2>conftest.er1
47651   ac_status=$?
47652   grep -v '^ *+' conftest.er1 >conftest.err
47653   rm -f conftest.er1
47654   cat conftest.err >&5
47655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47656   (exit $ac_status); } &&
47657          { ac_try='test -z "$ac_c_werror_flag"
47658                          || test ! -s conftest.err'
47659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47660   (eval $ac_try) 2>&5
47661   ac_status=$?
47662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47663   (exit $ac_status); }; } &&
47664          { ac_try='test -s conftest$ac_exeext'
47665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47666   (eval $ac_try) 2>&5
47667   ac_status=$?
47668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47669   (exit $ac_status); }; }; then
47670   eval "$as_ac_var=yes"
47671 else
47672   echo "$as_me: failed program was:" >&5
47673 sed 's/^/| /' conftest.$ac_ext >&5
47674
47675 eval "$as_ac_var=no"
47676 fi
47677 rm -f conftest.err conftest.$ac_objext \
47678       conftest$ac_exeext conftest.$ac_ext
47679 fi
47680 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47681 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47682 if test `eval echo '${'$as_ac_var'}'` = yes; then
47683   cat >>confdefs.h <<_ACEOF
47684 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47685 _ACEOF
47686  ice_have_sendto=yes
47687 fi
47688 done
47689
47690 if test "${ice_have_sendto}" = yes; then
47691 echo "$as_me:$LINENO: checking for sendto declaration in sys/types.h sys/socket.h" >&5
47692 echo $ECHO_N "checking for sendto declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
47693 if test "${ice_cv_have_sendto_decl+set}" = set; then
47694   echo $ECHO_N "(cached) $ECHO_C" >&6
47695 else
47696
47697 ice_cv_have_sendto_decl=no
47698 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
47699 ice_re_word='(^|[^a-zA-Z0-9_])'
47700 for header in sys/types.h sys/socket.h; do
47701 # Check for ordinary declaration
47702 cat >conftest.$ac_ext <<_ACEOF
47703 /* confdefs.h.  */
47704 _ACEOF
47705 cat confdefs.h >>conftest.$ac_ext
47706 cat >>conftest.$ac_ext <<_ACEOF
47707 /* end confdefs.h.  */
47708 #include <$header>
47709
47710 _ACEOF
47711 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47712   $EGREP "${ice_re_word}sendto[         ]*\(" >/dev/null 2>&1; then
47713   ice_cv_have_sendto_decl=yes
47714 fi
47715 rm -f conftest*
47716
47717 if test "$ice_cv_have_sendto_decl" = yes; then
47718         break
47719 fi
47720 # Check for "fixed" declaration like "getpid _PARAMS((int))"
47721 cat >conftest.$ac_ext <<_ACEOF
47722 /* confdefs.h.  */
47723 _ACEOF
47724 cat confdefs.h >>conftest.$ac_ext
47725 cat >>conftest.$ac_ext <<_ACEOF
47726 /* end confdefs.h.  */
47727 #include <$header>
47728
47729 _ACEOF
47730 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47731   $EGREP "${ice_re_word}sendto[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
47732   ice_cv_have_sendto_decl=yes
47733 fi
47734 rm -f conftest*
47735
47736 if test "$ice_cv_have_sendto_decl" = yes; then
47737         break
47738 fi
47739 done
47740
47741 fi
47742
47743 echo "$as_me:$LINENO: result: $ice_cv_have_sendto_decl" >&5
47744 echo "${ECHO_T}$ice_cv_have_sendto_decl" >&6
47745 if test "$ice_cv_have_sendto_decl" = yes; then
47746
47747 cat >>confdefs.h <<_ACEOF
47748 #define HAVE_SENDTO_DECL 1
47749 _ACEOF
47750
47751 fi
47752 fi
47753
47754
47755 ice_have_setegid=no
47756
47757 for ac_func in setegid
47758 do
47759 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47760 echo "$as_me:$LINENO: checking for $ac_func" >&5
47761 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47762 if eval "test \"\${$as_ac_var+set}\" = set"; then
47763   echo $ECHO_N "(cached) $ECHO_C" >&6
47764 else
47765   cat >conftest.$ac_ext <<_ACEOF
47766 /* confdefs.h.  */
47767 _ACEOF
47768 cat confdefs.h >>conftest.$ac_ext
47769 cat >>conftest.$ac_ext <<_ACEOF
47770 /* end confdefs.h.  */
47771 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47772    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
47773 #define $ac_func innocuous_$ac_func
47774
47775 /* System header to define __stub macros and hopefully few prototypes,
47776     which can conflict with char $ac_func (); below.
47777     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47778     <limits.h> exists even on freestanding compilers.  */
47779
47780 #ifdef __STDC__
47781 # include <limits.h>
47782 #else
47783 # include <assert.h>
47784 #endif
47785
47786 #undef $ac_func
47787
47788 /* Override any gcc2 internal prototype to avoid an error.  */
47789 #ifdef __cplusplus
47790 extern "C"
47791 {
47792 #endif
47793 /* We use char because int might match the return type of a gcc2
47794    builtin and then its argument prototype would still apply.  */
47795 char $ac_func ();
47796 /* The GNU C library defines this for functions which it implements
47797     to always fail with ENOSYS.  Some functions are actually named
47798     something starting with __ and the normal name is an alias.  */
47799 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47800 choke me
47801 #else
47802 char (*f) () = $ac_func;
47803 #endif
47804 #ifdef __cplusplus
47805 }
47806 #endif
47807
47808 int
47809 main ()
47810 {
47811 return f != $ac_func;
47812   ;
47813   return 0;
47814 }
47815 _ACEOF
47816 rm -f conftest.$ac_objext conftest$ac_exeext
47817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47818   (eval $ac_link) 2>conftest.er1
47819   ac_status=$?
47820   grep -v '^ *+' conftest.er1 >conftest.err
47821   rm -f conftest.er1
47822   cat conftest.err >&5
47823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47824   (exit $ac_status); } &&
47825          { ac_try='test -z "$ac_c_werror_flag"
47826                          || test ! -s conftest.err'
47827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47828   (eval $ac_try) 2>&5
47829   ac_status=$?
47830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47831   (exit $ac_status); }; } &&
47832          { ac_try='test -s conftest$ac_exeext'
47833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47834   (eval $ac_try) 2>&5
47835   ac_status=$?
47836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47837   (exit $ac_status); }; }; then
47838   eval "$as_ac_var=yes"
47839 else
47840   echo "$as_me: failed program was:" >&5
47841 sed 's/^/| /' conftest.$ac_ext >&5
47842
47843 eval "$as_ac_var=no"
47844 fi
47845 rm -f conftest.err conftest.$ac_objext \
47846       conftest$ac_exeext conftest.$ac_ext
47847 fi
47848 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47849 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47850 if test `eval echo '${'$as_ac_var'}'` = yes; then
47851   cat >>confdefs.h <<_ACEOF
47852 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47853 _ACEOF
47854  ice_have_setegid=yes
47855 fi
47856 done
47857
47858 if test "${ice_have_setegid}" = yes; then
47859 echo "$as_me:$LINENO: checking for setegid declaration in unistd.h" >&5
47860 echo $ECHO_N "checking for setegid declaration in unistd.h... $ECHO_C" >&6
47861 if test "${ice_cv_have_setegid_decl+set}" = set; then
47862   echo $ECHO_N "(cached) $ECHO_C" >&6
47863 else
47864
47865 ice_cv_have_setegid_decl=no
47866 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
47867 ice_re_word='(^|[^a-zA-Z0-9_])'
47868 for header in unistd.h; do
47869 # Check for ordinary declaration
47870 cat >conftest.$ac_ext <<_ACEOF
47871 /* confdefs.h.  */
47872 _ACEOF
47873 cat confdefs.h >>conftest.$ac_ext
47874 cat >>conftest.$ac_ext <<_ACEOF
47875 /* end confdefs.h.  */
47876 #include <$header>
47877
47878 _ACEOF
47879 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47880   $EGREP "${ice_re_word}setegid[        ]*\(" >/dev/null 2>&1; then
47881   ice_cv_have_setegid_decl=yes
47882 fi
47883 rm -f conftest*
47884
47885 if test "$ice_cv_have_setegid_decl" = yes; then
47886         break
47887 fi
47888 # Check for "fixed" declaration like "getpid _PARAMS((int))"
47889 cat >conftest.$ac_ext <<_ACEOF
47890 /* confdefs.h.  */
47891 _ACEOF
47892 cat confdefs.h >>conftest.$ac_ext
47893 cat >>conftest.$ac_ext <<_ACEOF
47894 /* end confdefs.h.  */
47895 #include <$header>
47896
47897 _ACEOF
47898 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47899   $EGREP "${ice_re_word}setegid[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
47900   ice_cv_have_setegid_decl=yes
47901 fi
47902 rm -f conftest*
47903
47904 if test "$ice_cv_have_setegid_decl" = yes; then
47905         break
47906 fi
47907 done
47908
47909 fi
47910
47911 echo "$as_me:$LINENO: result: $ice_cv_have_setegid_decl" >&5
47912 echo "${ECHO_T}$ice_cv_have_setegid_decl" >&6
47913 if test "$ice_cv_have_setegid_decl" = yes; then
47914
47915 cat >>confdefs.h <<_ACEOF
47916 #define HAVE_SETEGID_DECL 1
47917 _ACEOF
47918
47919 fi
47920 fi
47921
47922
47923 ice_have_seteuid=no
47924
47925 for ac_func in seteuid
47926 do
47927 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47928 echo "$as_me:$LINENO: checking for $ac_func" >&5
47929 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47930 if eval "test \"\${$as_ac_var+set}\" = set"; then
47931   echo $ECHO_N "(cached) $ECHO_C" >&6
47932 else
47933   cat >conftest.$ac_ext <<_ACEOF
47934 /* confdefs.h.  */
47935 _ACEOF
47936 cat confdefs.h >>conftest.$ac_ext
47937 cat >>conftest.$ac_ext <<_ACEOF
47938 /* end confdefs.h.  */
47939 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47940    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
47941 #define $ac_func innocuous_$ac_func
47942
47943 /* System header to define __stub macros and hopefully few prototypes,
47944     which can conflict with char $ac_func (); below.
47945     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47946     <limits.h> exists even on freestanding compilers.  */
47947
47948 #ifdef __STDC__
47949 # include <limits.h>
47950 #else
47951 # include <assert.h>
47952 #endif
47953
47954 #undef $ac_func
47955
47956 /* Override any gcc2 internal prototype to avoid an error.  */
47957 #ifdef __cplusplus
47958 extern "C"
47959 {
47960 #endif
47961 /* We use char because int might match the return type of a gcc2
47962    builtin and then its argument prototype would still apply.  */
47963 char $ac_func ();
47964 /* The GNU C library defines this for functions which it implements
47965     to always fail with ENOSYS.  Some functions are actually named
47966     something starting with __ and the normal name is an alias.  */
47967 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47968 choke me
47969 #else
47970 char (*f) () = $ac_func;
47971 #endif
47972 #ifdef __cplusplus
47973 }
47974 #endif
47975
47976 int
47977 main ()
47978 {
47979 return f != $ac_func;
47980   ;
47981   return 0;
47982 }
47983 _ACEOF
47984 rm -f conftest.$ac_objext conftest$ac_exeext
47985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47986   (eval $ac_link) 2>conftest.er1
47987   ac_status=$?
47988   grep -v '^ *+' conftest.er1 >conftest.err
47989   rm -f conftest.er1
47990   cat conftest.err >&5
47991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47992   (exit $ac_status); } &&
47993          { ac_try='test -z "$ac_c_werror_flag"
47994                          || test ! -s conftest.err'
47995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47996   (eval $ac_try) 2>&5
47997   ac_status=$?
47998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47999   (exit $ac_status); }; } &&
48000          { ac_try='test -s conftest$ac_exeext'
48001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48002   (eval $ac_try) 2>&5
48003   ac_status=$?
48004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48005   (exit $ac_status); }; }; then
48006   eval "$as_ac_var=yes"
48007 else
48008   echo "$as_me: failed program was:" >&5
48009 sed 's/^/| /' conftest.$ac_ext >&5
48010
48011 eval "$as_ac_var=no"
48012 fi
48013 rm -f conftest.err conftest.$ac_objext \
48014       conftest$ac_exeext conftest.$ac_ext
48015 fi
48016 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
48017 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
48018 if test `eval echo '${'$as_ac_var'}'` = yes; then
48019   cat >>confdefs.h <<_ACEOF
48020 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48021 _ACEOF
48022  ice_have_seteuid=yes
48023 fi
48024 done
48025
48026 if test "${ice_have_seteuid}" = yes; then
48027 echo "$as_me:$LINENO: checking for seteuid declaration in unistd.h" >&5
48028 echo $ECHO_N "checking for seteuid declaration in unistd.h... $ECHO_C" >&6
48029 if test "${ice_cv_have_seteuid_decl+set}" = set; then
48030   echo $ECHO_N "(cached) $ECHO_C" >&6
48031 else
48032
48033 ice_cv_have_seteuid_decl=no
48034 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
48035 ice_re_word='(^|[^a-zA-Z0-9_])'
48036 for header in unistd.h; do
48037 # Check for ordinary declaration
48038 cat >conftest.$ac_ext <<_ACEOF
48039 /* confdefs.h.  */
48040 _ACEOF
48041 cat confdefs.h >>conftest.$ac_ext
48042 cat >>conftest.$ac_ext <<_ACEOF
48043 /* end confdefs.h.  */
48044 #include <$header>
48045
48046 _ACEOF
48047 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48048   $EGREP "${ice_re_word}seteuid[        ]*\(" >/dev/null 2>&1; then
48049   ice_cv_have_seteuid_decl=yes
48050 fi
48051 rm -f conftest*
48052
48053 if test "$ice_cv_have_seteuid_decl" = yes; then
48054         break
48055 fi
48056 # Check for "fixed" declaration like "getpid _PARAMS((int))"
48057 cat >conftest.$ac_ext <<_ACEOF
48058 /* confdefs.h.  */
48059 _ACEOF
48060 cat confdefs.h >>conftest.$ac_ext
48061 cat >>conftest.$ac_ext <<_ACEOF
48062 /* end confdefs.h.  */
48063 #include <$header>
48064
48065 _ACEOF
48066 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48067   $EGREP "${ice_re_word}seteuid[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
48068   ice_cv_have_seteuid_decl=yes
48069 fi
48070 rm -f conftest*
48071
48072 if test "$ice_cv_have_seteuid_decl" = yes; then
48073         break
48074 fi
48075 done
48076
48077 fi
48078
48079 echo "$as_me:$LINENO: result: $ice_cv_have_seteuid_decl" >&5
48080 echo "${ECHO_T}$ice_cv_have_seteuid_decl" >&6
48081 if test "$ice_cv_have_seteuid_decl" = yes; then
48082
48083 cat >>confdefs.h <<_ACEOF
48084 #define HAVE_SETEUID_DECL 1
48085 _ACEOF
48086
48087 fi
48088 fi
48089
48090
48091 for ac_func in setmntent
48092 do
48093 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48094 echo "$as_me:$LINENO: checking for $ac_func" >&5
48095 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
48096 if eval "test \"\${$as_ac_var+set}\" = set"; then
48097   echo $ECHO_N "(cached) $ECHO_C" >&6
48098 else
48099   cat >conftest.$ac_ext <<_ACEOF
48100 /* confdefs.h.  */
48101 _ACEOF
48102 cat confdefs.h >>conftest.$ac_ext
48103 cat >>conftest.$ac_ext <<_ACEOF
48104 /* end confdefs.h.  */
48105 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48106    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
48107 #define $ac_func innocuous_$ac_func
48108
48109 /* System header to define __stub macros and hopefully few prototypes,
48110     which can conflict with char $ac_func (); below.
48111     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48112     <limits.h> exists even on freestanding compilers.  */
48113
48114 #ifdef __STDC__
48115 # include <limits.h>
48116 #else
48117 # include <assert.h>
48118 #endif
48119
48120 #undef $ac_func
48121
48122 /* Override any gcc2 internal prototype to avoid an error.  */
48123 #ifdef __cplusplus
48124 extern "C"
48125 {
48126 #endif
48127 /* We use char because int might match the return type of a gcc2
48128    builtin and then its argument prototype would still apply.  */
48129 char $ac_func ();
48130 /* The GNU C library defines this for functions which it implements
48131     to always fail with ENOSYS.  Some functions are actually named
48132     something starting with __ and the normal name is an alias.  */
48133 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
48134 choke me
48135 #else
48136 char (*f) () = $ac_func;
48137 #endif
48138 #ifdef __cplusplus
48139 }
48140 #endif
48141
48142 int
48143 main ()
48144 {
48145 return f != $ac_func;
48146   ;
48147   return 0;
48148 }
48149 _ACEOF
48150 rm -f conftest.$ac_objext conftest$ac_exeext
48151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48152   (eval $ac_link) 2>conftest.er1
48153   ac_status=$?
48154   grep -v '^ *+' conftest.er1 >conftest.err
48155   rm -f conftest.er1
48156   cat conftest.err >&5
48157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48158   (exit $ac_status); } &&
48159          { ac_try='test -z "$ac_c_werror_flag"
48160                          || test ! -s conftest.err'
48161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48162   (eval $ac_try) 2>&5
48163   ac_status=$?
48164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48165   (exit $ac_status); }; } &&
48166          { ac_try='test -s conftest$ac_exeext'
48167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48168   (eval $ac_try) 2>&5
48169   ac_status=$?
48170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48171   (exit $ac_status); }; }; then
48172   eval "$as_ac_var=yes"
48173 else
48174   echo "$as_me: failed program was:" >&5
48175 sed 's/^/| /' conftest.$ac_ext >&5
48176
48177 eval "$as_ac_var=no"
48178 fi
48179 rm -f conftest.err conftest.$ac_objext \
48180       conftest$ac_exeext conftest.$ac_ext
48181 fi
48182 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
48183 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
48184 if test `eval echo '${'$as_ac_var'}'` = yes; then
48185   cat >>confdefs.h <<_ACEOF
48186 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48187 _ACEOF
48188
48189 fi
48190 done
48191
48192
48193 for ac_func in shquote
48194 do
48195 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48196 echo "$as_me:$LINENO: checking for $ac_func" >&5
48197 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
48198 if eval "test \"\${$as_ac_var+set}\" = set"; then
48199   echo $ECHO_N "(cached) $ECHO_C" >&6
48200 else
48201   cat >conftest.$ac_ext <<_ACEOF
48202 /* confdefs.h.  */
48203 _ACEOF
48204 cat confdefs.h >>conftest.$ac_ext
48205 cat >>conftest.$ac_ext <<_ACEOF
48206 /* end confdefs.h.  */
48207 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48208    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
48209 #define $ac_func innocuous_$ac_func
48210
48211 /* System header to define __stub macros and hopefully few prototypes,
48212     which can conflict with char $ac_func (); below.
48213     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48214     <limits.h> exists even on freestanding compilers.  */
48215
48216 #ifdef __STDC__
48217 # include <limits.h>
48218 #else
48219 # include <assert.h>
48220 #endif
48221
48222 #undef $ac_func
48223
48224 /* Override any gcc2 internal prototype to avoid an error.  */
48225 #ifdef __cplusplus
48226 extern "C"
48227 {
48228 #endif
48229 /* We use char because int might match the return type of a gcc2
48230    builtin and then its argument prototype would still apply.  */
48231 char $ac_func ();
48232 /* The GNU C library defines this for functions which it implements
48233     to always fail with ENOSYS.  Some functions are actually named
48234     something starting with __ and the normal name is an alias.  */
48235 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
48236 choke me
48237 #else
48238 char (*f) () = $ac_func;
48239 #endif
48240 #ifdef __cplusplus
48241 }
48242 #endif
48243
48244 int
48245 main ()
48246 {
48247 return f != $ac_func;
48248   ;
48249   return 0;
48250 }
48251 _ACEOF
48252 rm -f conftest.$ac_objext conftest$ac_exeext
48253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48254   (eval $ac_link) 2>conftest.er1
48255   ac_status=$?
48256   grep -v '^ *+' conftest.er1 >conftest.err
48257   rm -f conftest.er1
48258   cat conftest.err >&5
48259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48260   (exit $ac_status); } &&
48261          { ac_try='test -z "$ac_c_werror_flag"
48262                          || test ! -s conftest.err'
48263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48264   (eval $ac_try) 2>&5
48265   ac_status=$?
48266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48267   (exit $ac_status); }; } &&
48268          { ac_try='test -s conftest$ac_exeext'
48269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48270   (eval $ac_try) 2>&5
48271   ac_status=$?
48272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48273   (exit $ac_status); }; }; then
48274   eval "$as_ac_var=yes"
48275 else
48276   echo "$as_me: failed program was:" >&5
48277 sed 's/^/| /' conftest.$ac_ext >&5
48278
48279 eval "$as_ac_var=no"
48280 fi
48281 rm -f conftest.err conftest.$ac_objext \
48282       conftest$ac_exeext conftest.$ac_ext
48283 fi
48284 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
48285 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
48286 if test `eval echo '${'$as_ac_var'}'` = yes; then
48287   cat >>confdefs.h <<_ACEOF
48288 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48289 _ACEOF
48290
48291 fi
48292 done
48293
48294
48295
48296 ice_have_setresgid=no
48297
48298 for ac_func in setresgid
48299 do
48300 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48301 echo "$as_me:$LINENO: checking for $ac_func" >&5
48302 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
48303 if eval "test \"\${$as_ac_var+set}\" = set"; then
48304   echo $ECHO_N "(cached) $ECHO_C" >&6
48305 else
48306   cat >conftest.$ac_ext <<_ACEOF
48307 /* confdefs.h.  */
48308 _ACEOF
48309 cat confdefs.h >>conftest.$ac_ext
48310 cat >>conftest.$ac_ext <<_ACEOF
48311 /* end confdefs.h.  */
48312 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48313    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
48314 #define $ac_func innocuous_$ac_func
48315
48316 /* System header to define __stub macros and hopefully few prototypes,
48317     which can conflict with char $ac_func (); below.
48318     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48319     <limits.h> exists even on freestanding compilers.  */
48320
48321 #ifdef __STDC__
48322 # include <limits.h>
48323 #else
48324 # include <assert.h>
48325 #endif
48326
48327 #undef $ac_func
48328
48329 /* Override any gcc2 internal prototype to avoid an error.  */
48330 #ifdef __cplusplus
48331 extern "C"
48332 {
48333 #endif
48334 /* We use char because int might match the return type of a gcc2
48335    builtin and then its argument prototype would still apply.  */
48336 char $ac_func ();
48337 /* The GNU C library defines this for functions which it implements
48338     to always fail with ENOSYS.  Some functions are actually named
48339     something starting with __ and the normal name is an alias.  */
48340 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
48341 choke me
48342 #else
48343 char (*f) () = $ac_func;
48344 #endif
48345 #ifdef __cplusplus
48346 }
48347 #endif
48348
48349 int
48350 main ()
48351 {
48352 return f != $ac_func;
48353   ;
48354   return 0;
48355 }
48356 _ACEOF
48357 rm -f conftest.$ac_objext conftest$ac_exeext
48358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48359   (eval $ac_link) 2>conftest.er1
48360   ac_status=$?
48361   grep -v '^ *+' conftest.er1 >conftest.err
48362   rm -f conftest.er1
48363   cat conftest.err >&5
48364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48365   (exit $ac_status); } &&
48366          { ac_try='test -z "$ac_c_werror_flag"
48367                          || test ! -s conftest.err'
48368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48369   (eval $ac_try) 2>&5
48370   ac_status=$?
48371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48372   (exit $ac_status); }; } &&
48373          { ac_try='test -s conftest$ac_exeext'
48374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48375   (eval $ac_try) 2>&5
48376   ac_status=$?
48377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48378   (exit $ac_status); }; }; then
48379   eval "$as_ac_var=yes"
48380 else
48381   echo "$as_me: failed program was:" >&5
48382 sed 's/^/| /' conftest.$ac_ext >&5
48383
48384 eval "$as_ac_var=no"
48385 fi
48386 rm -f conftest.err conftest.$ac_objext \
48387       conftest$ac_exeext conftest.$ac_ext
48388 fi
48389 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
48390 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
48391 if test `eval echo '${'$as_ac_var'}'` = yes; then
48392   cat >>confdefs.h <<_ACEOF
48393 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48394 _ACEOF
48395  ice_have_setresgid=yes
48396 fi
48397 done
48398
48399 if test "${ice_have_setresgid}" = yes; then
48400 echo "$as_me:$LINENO: checking for setresgid declaration in unistd.h" >&5
48401 echo $ECHO_N "checking for setresgid declaration in unistd.h... $ECHO_C" >&6
48402 if test "${ice_cv_have_setresgid_decl+set}" = set; then
48403   echo $ECHO_N "(cached) $ECHO_C" >&6
48404 else
48405
48406 ice_cv_have_setresgid_decl=no
48407 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
48408 ice_re_word='(^|[^a-zA-Z0-9_])'
48409 for header in unistd.h; do
48410 # Check for ordinary declaration
48411 cat >conftest.$ac_ext <<_ACEOF
48412 /* confdefs.h.  */
48413 _ACEOF
48414 cat confdefs.h >>conftest.$ac_ext
48415 cat >>conftest.$ac_ext <<_ACEOF
48416 /* end confdefs.h.  */
48417 #include <$header>
48418
48419 _ACEOF
48420 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48421   $EGREP "${ice_re_word}setresgid[      ]*\(" >/dev/null 2>&1; then
48422   ice_cv_have_setresgid_decl=yes
48423 fi
48424 rm -f conftest*
48425
48426 if test "$ice_cv_have_setresgid_decl" = yes; then
48427         break
48428 fi
48429 # Check for "fixed" declaration like "getpid _PARAMS((int))"
48430 cat >conftest.$ac_ext <<_ACEOF
48431 /* confdefs.h.  */
48432 _ACEOF
48433 cat confdefs.h >>conftest.$ac_ext
48434 cat >>conftest.$ac_ext <<_ACEOF
48435 /* end confdefs.h.  */
48436 #include <$header>
48437
48438 _ACEOF
48439 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48440   $EGREP "${ice_re_word}setresgid[      ]*$ice_re_params\(\(" >/dev/null 2>&1; then
48441   ice_cv_have_setresgid_decl=yes
48442 fi
48443 rm -f conftest*
48444
48445 if test "$ice_cv_have_setresgid_decl" = yes; then
48446         break
48447 fi
48448 done
48449
48450 fi
48451
48452 echo "$as_me:$LINENO: result: $ice_cv_have_setresgid_decl" >&5
48453 echo "${ECHO_T}$ice_cv_have_setresgid_decl" >&6
48454 if test "$ice_cv_have_setresgid_decl" = yes; then
48455
48456 cat >>confdefs.h <<_ACEOF
48457 #define HAVE_SETRESGID_DECL 1
48458 _ACEOF
48459
48460 fi
48461 fi
48462
48463
48464 ice_have_setresuid=no
48465
48466 for ac_func in setresuid
48467 do
48468 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48469 echo "$as_me:$LINENO: checking for $ac_func" >&5
48470 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
48471 if eval "test \"\${$as_ac_var+set}\" = set"; then
48472   echo $ECHO_N "(cached) $ECHO_C" >&6
48473 else
48474   cat >conftest.$ac_ext <<_ACEOF
48475 /* confdefs.h.  */
48476 _ACEOF
48477 cat confdefs.h >>conftest.$ac_ext
48478 cat >>conftest.$ac_ext <<_ACEOF
48479 /* end confdefs.h.  */
48480 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48481    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
48482 #define $ac_func innocuous_$ac_func
48483
48484 /* System header to define __stub macros and hopefully few prototypes,
48485     which can conflict with char $ac_func (); below.
48486     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48487     <limits.h> exists even on freestanding compilers.  */
48488
48489 #ifdef __STDC__
48490 # include <limits.h>
48491 #else
48492 # include <assert.h>
48493 #endif
48494
48495 #undef $ac_func
48496
48497 /* Override any gcc2 internal prototype to avoid an error.  */
48498 #ifdef __cplusplus
48499 extern "C"
48500 {
48501 #endif
48502 /* We use char because int might match the return type of a gcc2
48503    builtin and then its argument prototype would still apply.  */
48504 char $ac_func ();
48505 /* The GNU C library defines this for functions which it implements
48506     to always fail with ENOSYS.  Some functions are actually named
48507     something starting with __ and the normal name is an alias.  */
48508 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
48509 choke me
48510 #else
48511 char (*f) () = $ac_func;
48512 #endif
48513 #ifdef __cplusplus
48514 }
48515 #endif
48516
48517 int
48518 main ()
48519 {
48520 return f != $ac_func;
48521   ;
48522   return 0;
48523 }
48524 _ACEOF
48525 rm -f conftest.$ac_objext conftest$ac_exeext
48526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48527   (eval $ac_link) 2>conftest.er1
48528   ac_status=$?
48529   grep -v '^ *+' conftest.er1 >conftest.err
48530   rm -f conftest.er1
48531   cat conftest.err >&5
48532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48533   (exit $ac_status); } &&
48534          { ac_try='test -z "$ac_c_werror_flag"
48535                          || test ! -s conftest.err'
48536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48537   (eval $ac_try) 2>&5
48538   ac_status=$?
48539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48540   (exit $ac_status); }; } &&
48541          { ac_try='test -s conftest$ac_exeext'
48542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48543   (eval $ac_try) 2>&5
48544   ac_status=$?
48545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48546   (exit $ac_status); }; }; then
48547   eval "$as_ac_var=yes"
48548 else
48549   echo "$as_me: failed program was:" >&5
48550 sed 's/^/| /' conftest.$ac_ext >&5
48551
48552 eval "$as_ac_var=no"
48553 fi
48554 rm -f conftest.err conftest.$ac_objext \
48555       conftest$ac_exeext conftest.$ac_ext
48556 fi
48557 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
48558 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
48559 if test `eval echo '${'$as_ac_var'}'` = yes; then
48560   cat >>confdefs.h <<_ACEOF
48561 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48562 _ACEOF
48563  ice_have_setresuid=yes
48564 fi
48565 done
48566
48567 if test "${ice_have_setresuid}" = yes; then
48568 echo "$as_me:$LINENO: checking for setresuid declaration in unistd.h" >&5
48569 echo $ECHO_N "checking for setresuid declaration in unistd.h... $ECHO_C" >&6
48570 if test "${ice_cv_have_setresuid_decl+set}" = set; then
48571   echo $ECHO_N "(cached) $ECHO_C" >&6
48572 else
48573
48574 ice_cv_have_setresuid_decl=no
48575 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
48576 ice_re_word='(^|[^a-zA-Z0-9_])'
48577 for header in unistd.h; do
48578 # Check for ordinary declaration
48579 cat >conftest.$ac_ext <<_ACEOF
48580 /* confdefs.h.  */
48581 _ACEOF
48582 cat confdefs.h >>conftest.$ac_ext
48583 cat >>conftest.$ac_ext <<_ACEOF
48584 /* end confdefs.h.  */
48585 #include <$header>
48586
48587 _ACEOF
48588 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48589   $EGREP "${ice_re_word}setresuid[      ]*\(" >/dev/null 2>&1; then
48590   ice_cv_have_setresuid_decl=yes
48591 fi
48592 rm -f conftest*
48593
48594 if test "$ice_cv_have_setresuid_decl" = yes; then
48595         break
48596 fi
48597 # Check for "fixed" declaration like "getpid _PARAMS((int))"
48598 cat >conftest.$ac_ext <<_ACEOF
48599 /* confdefs.h.  */
48600 _ACEOF
48601 cat confdefs.h >>conftest.$ac_ext
48602 cat >>conftest.$ac_ext <<_ACEOF
48603 /* end confdefs.h.  */
48604 #include <$header>
48605
48606 _ACEOF
48607 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48608   $EGREP "${ice_re_word}setresuid[      ]*$ice_re_params\(\(" >/dev/null 2>&1; then
48609   ice_cv_have_setresuid_decl=yes
48610 fi
48611 rm -f conftest*
48612
48613 if test "$ice_cv_have_setresuid_decl" = yes; then
48614         break
48615 fi
48616 done
48617
48618 fi
48619
48620 echo "$as_me:$LINENO: result: $ice_cv_have_setresuid_decl" >&5
48621 echo "${ECHO_T}$ice_cv_have_setresuid_decl" >&6
48622 if test "$ice_cv_have_setresuid_decl" = yes; then
48623
48624 cat >>confdefs.h <<_ACEOF
48625 #define HAVE_SETRESUID_DECL 1
48626 _ACEOF
48627
48628 fi
48629 fi
48630
48631
48632 echo "$as_me:$LINENO: checking for setpgid" >&5
48633 echo $ECHO_N "checking for setpgid... $ECHO_C" >&6
48634 if test "${ac_cv_func_setpgid+set}" = set; then
48635   echo $ECHO_N "(cached) $ECHO_C" >&6
48636 else
48637   cat >conftest.$ac_ext <<_ACEOF
48638 /* confdefs.h.  */
48639 _ACEOF
48640 cat confdefs.h >>conftest.$ac_ext
48641 cat >>conftest.$ac_ext <<_ACEOF
48642 /* end confdefs.h.  */
48643 /* Define setpgid to an innocuous variant, in case <limits.h> declares setpgid.
48644    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
48645 #define setpgid innocuous_setpgid
48646
48647 /* System header to define __stub macros and hopefully few prototypes,
48648     which can conflict with char setpgid (); below.
48649     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48650     <limits.h> exists even on freestanding compilers.  */
48651
48652 #ifdef __STDC__
48653 # include <limits.h>
48654 #else
48655 # include <assert.h>
48656 #endif
48657
48658 #undef setpgid
48659
48660 /* Override any gcc2 internal prototype to avoid an error.  */
48661 #ifdef __cplusplus
48662 extern "C"
48663 {
48664 #endif
48665 /* We use char because int might match the return type of a gcc2
48666    builtin and then its argument prototype would still apply.  */
48667 char setpgid ();
48668 /* The GNU C library defines this for functions which it implements
48669     to always fail with ENOSYS.  Some functions are actually named
48670     something starting with __ and the normal name is an alias.  */
48671 #if defined (__stub_setpgid) || defined (__stub___setpgid)
48672 choke me
48673 #else
48674 char (*f) () = setpgid;
48675 #endif
48676 #ifdef __cplusplus
48677 }
48678 #endif
48679
48680 int
48681 main ()
48682 {
48683 return f != setpgid;
48684   ;
48685   return 0;
48686 }
48687 _ACEOF
48688 rm -f conftest.$ac_objext conftest$ac_exeext
48689 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48690   (eval $ac_link) 2>conftest.er1
48691   ac_status=$?
48692   grep -v '^ *+' conftest.er1 >conftest.err
48693   rm -f conftest.er1
48694   cat conftest.err >&5
48695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48696   (exit $ac_status); } &&
48697          { ac_try='test -z "$ac_c_werror_flag"
48698                          || test ! -s conftest.err'
48699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48700   (eval $ac_try) 2>&5
48701   ac_status=$?
48702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48703   (exit $ac_status); }; } &&
48704          { ac_try='test -s conftest$ac_exeext'
48705   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48706   (eval $ac_try) 2>&5
48707   ac_status=$?
48708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48709   (exit $ac_status); }; }; then
48710   ac_cv_func_setpgid=yes
48711 else
48712   echo "$as_me: failed program was:" >&5
48713 sed 's/^/| /' conftest.$ac_ext >&5
48714
48715 ac_cv_func_setpgid=no
48716 fi
48717 rm -f conftest.err conftest.$ac_objext \
48718       conftest$ac_exeext conftest.$ac_ext
48719 fi
48720 echo "$as_me:$LINENO: result: $ac_cv_func_setpgid" >&5
48721 echo "${ECHO_T}$ac_cv_func_setpgid" >&6
48722 if test $ac_cv_func_setpgid = yes; then
48723
48724
48725 cat >>confdefs.h <<\_ACEOF
48726 #define HAVE_SETPGID 1
48727 _ACEOF
48728
48729
48730 ice_have_setpgid=no
48731
48732 for ac_func in setpgid
48733 do
48734 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48735 echo "$as_me:$LINENO: checking for $ac_func" >&5
48736 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
48737 if eval "test \"\${$as_ac_var+set}\" = set"; then
48738   echo $ECHO_N "(cached) $ECHO_C" >&6
48739 else
48740   cat >conftest.$ac_ext <<_ACEOF
48741 /* confdefs.h.  */
48742 _ACEOF
48743 cat confdefs.h >>conftest.$ac_ext
48744 cat >>conftest.$ac_ext <<_ACEOF
48745 /* end confdefs.h.  */
48746 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48747    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
48748 #define $ac_func innocuous_$ac_func
48749
48750 /* System header to define __stub macros and hopefully few prototypes,
48751     which can conflict with char $ac_func (); below.
48752     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48753     <limits.h> exists even on freestanding compilers.  */
48754
48755 #ifdef __STDC__
48756 # include <limits.h>
48757 #else
48758 # include <assert.h>
48759 #endif
48760
48761 #undef $ac_func
48762
48763 /* Override any gcc2 internal prototype to avoid an error.  */
48764 #ifdef __cplusplus
48765 extern "C"
48766 {
48767 #endif
48768 /* We use char because int might match the return type of a gcc2
48769    builtin and then its argument prototype would still apply.  */
48770 char $ac_func ();
48771 /* The GNU C library defines this for functions which it implements
48772     to always fail with ENOSYS.  Some functions are actually named
48773     something starting with __ and the normal name is an alias.  */
48774 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
48775 choke me
48776 #else
48777 char (*f) () = $ac_func;
48778 #endif
48779 #ifdef __cplusplus
48780 }
48781 #endif
48782
48783 int
48784 main ()
48785 {
48786 return f != $ac_func;
48787   ;
48788   return 0;
48789 }
48790 _ACEOF
48791 rm -f conftest.$ac_objext conftest$ac_exeext
48792 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48793   (eval $ac_link) 2>conftest.er1
48794   ac_status=$?
48795   grep -v '^ *+' conftest.er1 >conftest.err
48796   rm -f conftest.er1
48797   cat conftest.err >&5
48798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48799   (exit $ac_status); } &&
48800          { ac_try='test -z "$ac_c_werror_flag"
48801                          || test ! -s conftest.err'
48802   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48803   (eval $ac_try) 2>&5
48804   ac_status=$?
48805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48806   (exit $ac_status); }; } &&
48807          { ac_try='test -s conftest$ac_exeext'
48808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48809   (eval $ac_try) 2>&5
48810   ac_status=$?
48811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48812   (exit $ac_status); }; }; then
48813   eval "$as_ac_var=yes"
48814 else
48815   echo "$as_me: failed program was:" >&5
48816 sed 's/^/| /' conftest.$ac_ext >&5
48817
48818 eval "$as_ac_var=no"
48819 fi
48820 rm -f conftest.err conftest.$ac_objext \
48821       conftest$ac_exeext conftest.$ac_ext
48822 fi
48823 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
48824 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
48825 if test `eval echo '${'$as_ac_var'}'` = yes; then
48826   cat >>confdefs.h <<_ACEOF
48827 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48828 _ACEOF
48829  ice_have_setpgid=yes
48830 fi
48831 done
48832
48833 if test "${ice_have_setpgid}" = yes; then
48834 echo "$as_me:$LINENO: checking for setpgid declaration in sys/types.h unistd.h" >&5
48835 echo $ECHO_N "checking for setpgid declaration in sys/types.h unistd.h... $ECHO_C" >&6
48836 if test "${ice_cv_have_setpgid_decl+set}" = set; then
48837   echo $ECHO_N "(cached) $ECHO_C" >&6
48838 else
48839
48840 ice_cv_have_setpgid_decl=no
48841 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
48842 ice_re_word='(^|[^a-zA-Z0-9_])'
48843 for header in sys/types.h unistd.h; do
48844 # Check for ordinary declaration
48845 cat >conftest.$ac_ext <<_ACEOF
48846 /* confdefs.h.  */
48847 _ACEOF
48848 cat confdefs.h >>conftest.$ac_ext
48849 cat >>conftest.$ac_ext <<_ACEOF
48850 /* end confdefs.h.  */
48851 #include <$header>
48852
48853 _ACEOF
48854 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48855   $EGREP "${ice_re_word}setpgid[        ]*\(" >/dev/null 2>&1; then
48856   ice_cv_have_setpgid_decl=yes
48857 fi
48858 rm -f conftest*
48859
48860 if test "$ice_cv_have_setpgid_decl" = yes; then
48861         break
48862 fi
48863 # Check for "fixed" declaration like "getpid _PARAMS((int))"
48864 cat >conftest.$ac_ext <<_ACEOF
48865 /* confdefs.h.  */
48866 _ACEOF
48867 cat confdefs.h >>conftest.$ac_ext
48868 cat >>conftest.$ac_ext <<_ACEOF
48869 /* end confdefs.h.  */
48870 #include <$header>
48871
48872 _ACEOF
48873 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48874   $EGREP "${ice_re_word}setpgid[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
48875   ice_cv_have_setpgid_decl=yes
48876 fi
48877 rm -f conftest*
48878
48879 if test "$ice_cv_have_setpgid_decl" = yes; then
48880         break
48881 fi
48882 done
48883
48884 fi
48885
48886 echo "$as_me:$LINENO: result: $ice_cv_have_setpgid_decl" >&5
48887 echo "${ECHO_T}$ice_cv_have_setpgid_decl" >&6
48888 if test "$ice_cv_have_setpgid_decl" = yes; then
48889
48890 cat >>confdefs.h <<_ACEOF
48891 #define HAVE_SETPGID_DECL 1
48892 _ACEOF
48893
48894 fi
48895 fi
48896
48897
48898 fi
48899
48900 echo "$as_me:$LINENO: checking for setpgrp" >&5
48901 echo $ECHO_N "checking for setpgrp... $ECHO_C" >&6
48902 if test "${ac_cv_func_setpgrp+set}" = set; then
48903   echo $ECHO_N "(cached) $ECHO_C" >&6
48904 else
48905   cat >conftest.$ac_ext <<_ACEOF
48906 /* confdefs.h.  */
48907 _ACEOF
48908 cat confdefs.h >>conftest.$ac_ext
48909 cat >>conftest.$ac_ext <<_ACEOF
48910 /* end confdefs.h.  */
48911 /* Define setpgrp to an innocuous variant, in case <limits.h> declares setpgrp.
48912    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
48913 #define setpgrp innocuous_setpgrp
48914
48915 /* System header to define __stub macros and hopefully few prototypes,
48916     which can conflict with char setpgrp (); below.
48917     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48918     <limits.h> exists even on freestanding compilers.  */
48919
48920 #ifdef __STDC__
48921 # include <limits.h>
48922 #else
48923 # include <assert.h>
48924 #endif
48925
48926 #undef setpgrp
48927
48928 /* Override any gcc2 internal prototype to avoid an error.  */
48929 #ifdef __cplusplus
48930 extern "C"
48931 {
48932 #endif
48933 /* We use char because int might match the return type of a gcc2
48934    builtin and then its argument prototype would still apply.  */
48935 char setpgrp ();
48936 /* The GNU C library defines this for functions which it implements
48937     to always fail with ENOSYS.  Some functions are actually named
48938     something starting with __ and the normal name is an alias.  */
48939 #if defined (__stub_setpgrp) || defined (__stub___setpgrp)
48940 choke me
48941 #else
48942 char (*f) () = setpgrp;
48943 #endif
48944 #ifdef __cplusplus
48945 }
48946 #endif
48947
48948 int
48949 main ()
48950 {
48951 return f != setpgrp;
48952   ;
48953   return 0;
48954 }
48955 _ACEOF
48956 rm -f conftest.$ac_objext conftest$ac_exeext
48957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48958   (eval $ac_link) 2>conftest.er1
48959   ac_status=$?
48960   grep -v '^ *+' conftest.er1 >conftest.err
48961   rm -f conftest.er1
48962   cat conftest.err >&5
48963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48964   (exit $ac_status); } &&
48965          { ac_try='test -z "$ac_c_werror_flag"
48966                          || test ! -s conftest.err'
48967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48968   (eval $ac_try) 2>&5
48969   ac_status=$?
48970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48971   (exit $ac_status); }; } &&
48972          { ac_try='test -s conftest$ac_exeext'
48973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48974   (eval $ac_try) 2>&5
48975   ac_status=$?
48976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48977   (exit $ac_status); }; }; then
48978   ac_cv_func_setpgrp=yes
48979 else
48980   echo "$as_me: failed program was:" >&5
48981 sed 's/^/| /' conftest.$ac_ext >&5
48982
48983 ac_cv_func_setpgrp=no
48984 fi
48985 rm -f conftest.err conftest.$ac_objext \
48986       conftest$ac_exeext conftest.$ac_ext
48987 fi
48988 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp" >&5
48989 echo "${ECHO_T}$ac_cv_func_setpgrp" >&6
48990 if test $ac_cv_func_setpgrp = yes; then
48991   echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
48992 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
48993 if test "${ac_cv_func_setpgrp_void+set}" = set; then
48994   echo $ECHO_N "(cached) $ECHO_C" >&6
48995 else
48996   if test "$cross_compiling" = yes; then
48997   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
48998 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
48999    { (exit 1); exit 1; }; }
49000 else
49001   cat >conftest.$ac_ext <<_ACEOF
49002 /* confdefs.h.  */
49003 _ACEOF
49004 cat confdefs.h >>conftest.$ac_ext
49005 cat >>conftest.$ac_ext <<_ACEOF
49006 /* end confdefs.h.  */
49007 #if HAVE_UNISTD_H
49008 # include <unistd.h>
49009 #endif
49010
49011 int
49012 main ()
49013 {
49014 /* If this system has a BSD-style setpgrp which takes arguments,
49015   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
49016   exit successfully. */
49017   exit (setpgrp (1,1) == -1 ? 0 : 1);
49018   ;
49019   return 0;
49020 }
49021 _ACEOF
49022 rm -f conftest$ac_exeext
49023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49024   (eval $ac_link) 2>&5
49025   ac_status=$?
49026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49027   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
49028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49029   (eval $ac_try) 2>&5
49030   ac_status=$?
49031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49032   (exit $ac_status); }; }; then
49033   ac_cv_func_setpgrp_void=no
49034 else
49035   echo "$as_me: program exited with status $ac_status" >&5
49036 echo "$as_me: failed program was:" >&5
49037 sed 's/^/| /' conftest.$ac_ext >&5
49038
49039 ( exit $ac_status )
49040 ac_cv_func_setpgrp_void=yes
49041 fi
49042 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
49043 fi
49044 fi
49045 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
49046 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
49047 if test $ac_cv_func_setpgrp_void = yes; then
49048
49049 cat >>confdefs.h <<\_ACEOF
49050 #define SETPGRP_VOID 1
49051 _ACEOF
49052
49053 fi
49054
49055 fi
49056
49057
49058 ice_have_setpgrp=no
49059
49060 for ac_func in setpgrp
49061 do
49062 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49063 echo "$as_me:$LINENO: checking for $ac_func" >&5
49064 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
49065 if eval "test \"\${$as_ac_var+set}\" = set"; then
49066   echo $ECHO_N "(cached) $ECHO_C" >&6
49067 else
49068   cat >conftest.$ac_ext <<_ACEOF
49069 /* confdefs.h.  */
49070 _ACEOF
49071 cat confdefs.h >>conftest.$ac_ext
49072 cat >>conftest.$ac_ext <<_ACEOF
49073 /* end confdefs.h.  */
49074 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
49075    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
49076 #define $ac_func innocuous_$ac_func
49077
49078 /* System header to define __stub macros and hopefully few prototypes,
49079     which can conflict with char $ac_func (); below.
49080     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49081     <limits.h> exists even on freestanding compilers.  */
49082
49083 #ifdef __STDC__
49084 # include <limits.h>
49085 #else
49086 # include <assert.h>
49087 #endif
49088
49089 #undef $ac_func
49090
49091 /* Override any gcc2 internal prototype to avoid an error.  */
49092 #ifdef __cplusplus
49093 extern "C"
49094 {
49095 #endif
49096 /* We use char because int might match the return type of a gcc2
49097    builtin and then its argument prototype would still apply.  */
49098 char $ac_func ();
49099 /* The GNU C library defines this for functions which it implements
49100     to always fail with ENOSYS.  Some functions are actually named
49101     something starting with __ and the normal name is an alias.  */
49102 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
49103 choke me
49104 #else
49105 char (*f) () = $ac_func;
49106 #endif
49107 #ifdef __cplusplus
49108 }
49109 #endif
49110
49111 int
49112 main ()
49113 {
49114 return f != $ac_func;
49115   ;
49116   return 0;
49117 }
49118 _ACEOF
49119 rm -f conftest.$ac_objext conftest$ac_exeext
49120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49121   (eval $ac_link) 2>conftest.er1
49122   ac_status=$?
49123   grep -v '^ *+' conftest.er1 >conftest.err
49124   rm -f conftest.er1
49125   cat conftest.err >&5
49126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49127   (exit $ac_status); } &&
49128          { ac_try='test -z "$ac_c_werror_flag"
49129                          || test ! -s conftest.err'
49130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49131   (eval $ac_try) 2>&5
49132   ac_status=$?
49133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49134   (exit $ac_status); }; } &&
49135          { ac_try='test -s conftest$ac_exeext'
49136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49137   (eval $ac_try) 2>&5
49138   ac_status=$?
49139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49140   (exit $ac_status); }; }; then
49141   eval "$as_ac_var=yes"
49142 else
49143   echo "$as_me: failed program was:" >&5
49144 sed 's/^/| /' conftest.$ac_ext >&5
49145
49146 eval "$as_ac_var=no"
49147 fi
49148 rm -f conftest.err conftest.$ac_objext \
49149       conftest$ac_exeext conftest.$ac_ext
49150 fi
49151 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
49152 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
49153 if test `eval echo '${'$as_ac_var'}'` = yes; then
49154   cat >>confdefs.h <<_ACEOF
49155 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49156 _ACEOF
49157  ice_have_setpgrp=yes
49158 fi
49159 done
49160
49161 if test "${ice_have_setpgrp}" = yes; then
49162 echo "$as_me:$LINENO: checking for setpgrp declaration in sys/types.h unistd.h libc.h" >&5
49163 echo $ECHO_N "checking for setpgrp declaration in sys/types.h unistd.h libc.h... $ECHO_C" >&6
49164 if test "${ice_cv_have_setpgrp_decl+set}" = set; then
49165   echo $ECHO_N "(cached) $ECHO_C" >&6
49166 else
49167
49168 ice_cv_have_setpgrp_decl=no
49169 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
49170 ice_re_word='(^|[^a-zA-Z0-9_])'
49171 for header in sys/types.h unistd.h libc.h; do
49172 # Check for ordinary declaration
49173 cat >conftest.$ac_ext <<_ACEOF
49174 /* confdefs.h.  */
49175 _ACEOF
49176 cat confdefs.h >>conftest.$ac_ext
49177 cat >>conftest.$ac_ext <<_ACEOF
49178 /* end confdefs.h.  */
49179 #include <$header>
49180
49181 _ACEOF
49182 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
49183   $EGREP "${ice_re_word}setpgrp[        ]*\(" >/dev/null 2>&1; then
49184   ice_cv_have_setpgrp_decl=yes
49185 fi
49186 rm -f conftest*
49187
49188 if test "$ice_cv_have_setpgrp_decl" = yes; then
49189         break
49190 fi
49191 # Check for "fixed" declaration like "getpid _PARAMS((int))"
49192 cat >conftest.$ac_ext <<_ACEOF
49193 /* confdefs.h.  */
49194 _ACEOF
49195 cat confdefs.h >>conftest.$ac_ext
49196 cat >>conftest.$ac_ext <<_ACEOF
49197 /* end confdefs.h.  */
49198 #include <$header>
49199
49200 _ACEOF
49201 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
49202   $EGREP "${ice_re_word}setpgrp[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
49203   ice_cv_have_setpgrp_decl=yes
49204 fi
49205 rm -f conftest*
49206
49207 if test "$ice_cv_have_setpgrp_decl" = yes; then
49208         break
49209 fi
49210 done
49211
49212 fi
49213
49214 echo "$as_me:$LINENO: result: $ice_cv_have_setpgrp_decl" >&5
49215 echo "${ECHO_T}$ice_cv_have_setpgrp_decl" >&6
49216 if test "$ice_cv_have_setpgrp_decl" = yes; then
49217
49218 cat >>confdefs.h <<_ACEOF
49219 #define HAVE_SETPGRP_DECL 1
49220 _ACEOF
49221
49222 fi
49223 fi
49224
49225
49226
49227 ice_have_setsockopt=no
49228
49229 for ac_func in setsockopt
49230 do
49231 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49232 echo "$as_me:$LINENO: checking for $ac_func" >&5
49233 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
49234 if eval "test \"\${$as_ac_var+set}\" = set"; then
49235   echo $ECHO_N "(cached) $ECHO_C" >&6
49236 else
49237   cat >conftest.$ac_ext <<_ACEOF
49238 /* confdefs.h.  */
49239 _ACEOF
49240 cat confdefs.h >>conftest.$ac_ext
49241 cat >>conftest.$ac_ext <<_ACEOF
49242 /* end confdefs.h.  */
49243 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
49244    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
49245 #define $ac_func innocuous_$ac_func
49246
49247 /* System header to define __stub macros and hopefully few prototypes,
49248     which can conflict with char $ac_func (); below.
49249     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49250     <limits.h> exists even on freestanding compilers.  */
49251
49252 #ifdef __STDC__
49253 # include <limits.h>
49254 #else
49255 # include <assert.h>
49256 #endif
49257
49258 #undef $ac_func
49259
49260 /* Override any gcc2 internal prototype to avoid an error.  */
49261 #ifdef __cplusplus
49262 extern "C"
49263 {
49264 #endif
49265 /* We use char because int might match the return type of a gcc2
49266    builtin and then its argument prototype would still apply.  */
49267 char $ac_func ();
49268 /* The GNU C library defines this for functions which it implements
49269     to always fail with ENOSYS.  Some functions are actually named
49270     something starting with __ and the normal name is an alias.  */
49271 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
49272 choke me
49273 #else
49274 char (*f) () = $ac_func;
49275 #endif
49276 #ifdef __cplusplus
49277 }
49278 #endif
49279
49280 int
49281 main ()
49282 {
49283 return f != $ac_func;
49284   ;
49285   return 0;
49286 }
49287 _ACEOF
49288 rm -f conftest.$ac_objext conftest$ac_exeext
49289 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49290   (eval $ac_link) 2>conftest.er1
49291   ac_status=$?
49292   grep -v '^ *+' conftest.er1 >conftest.err
49293   rm -f conftest.er1
49294   cat conftest.err >&5
49295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49296   (exit $ac_status); } &&
49297          { ac_try='test -z "$ac_c_werror_flag"
49298                          || test ! -s conftest.err'
49299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49300   (eval $ac_try) 2>&5
49301   ac_status=$?
49302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49303   (exit $ac_status); }; } &&
49304          { ac_try='test -s conftest$ac_exeext'
49305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49306   (eval $ac_try) 2>&5
49307   ac_status=$?
49308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49309   (exit $ac_status); }; }; then
49310   eval "$as_ac_var=yes"
49311 else
49312   echo "$as_me: failed program was:" >&5
49313 sed 's/^/| /' conftest.$ac_ext >&5
49314
49315 eval "$as_ac_var=no"
49316 fi
49317 rm -f conftest.err conftest.$ac_objext \
49318       conftest$ac_exeext conftest.$ac_ext
49319 fi
49320 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
49321 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
49322 if test `eval echo '${'$as_ac_var'}'` = yes; then
49323   cat >>confdefs.h <<_ACEOF
49324 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49325 _ACEOF
49326  ice_have_setsockopt=yes
49327 fi
49328 done
49329
49330 if test "${ice_have_setsockopt}" = yes; then
49331 echo "$as_me:$LINENO: checking for setsockopt declaration in sys/types.h sys/socket.h" >&5
49332 echo $ECHO_N "checking for setsockopt declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
49333 if test "${ice_cv_have_setsockopt_decl+set}" = set; then
49334   echo $ECHO_N "(cached) $ECHO_C" >&6
49335 else
49336
49337 ice_cv_have_setsockopt_decl=no
49338 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
49339 ice_re_word='(^|[^a-zA-Z0-9_])'
49340 for header in sys/types.h sys/socket.h; do
49341 # Check for ordinary declaration
49342 cat >conftest.$ac_ext <<_ACEOF
49343 /* confdefs.h.  */
49344 _ACEOF
49345 cat confdefs.h >>conftest.$ac_ext
49346 cat >>conftest.$ac_ext <<_ACEOF
49347 /* end confdefs.h.  */
49348 #include <$header>
49349
49350 _ACEOF
49351 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
49352   $EGREP "${ice_re_word}setsockopt[     ]*\(" >/dev/null 2>&1; then
49353   ice_cv_have_setsockopt_decl=yes
49354 fi
49355 rm -f conftest*
49356
49357 if test "$ice_cv_have_setsockopt_decl" = yes; then
49358         break
49359 fi
49360 # Check for "fixed" declaration like "getpid _PARAMS((int))"
49361 cat >conftest.$ac_ext <<_ACEOF
49362 /* confdefs.h.  */
49363 _ACEOF
49364 cat confdefs.h >>conftest.$ac_ext
49365 cat >>conftest.$ac_ext <<_ACEOF
49366 /* end confdefs.h.  */
49367 #include <$header>
49368
49369 _ACEOF
49370 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
49371   $EGREP "${ice_re_word}setsockopt[     ]*$ice_re_params\(\(" >/dev/null 2>&1; then
49372   ice_cv_have_setsockopt_decl=yes
49373 fi
49374 rm -f conftest*
49375
49376 if test "$ice_cv_have_setsockopt_decl" = yes; then
49377         break
49378 fi
49379 done
49380
49381 fi
49382
49383 echo "$as_me:$LINENO: result: $ice_cv_have_setsockopt_decl" >&5
49384 echo "${ECHO_T}$ice_cv_have_setsockopt_decl" >&6
49385 if test "$ice_cv_have_setsockopt_decl" = yes; then
49386
49387 cat >>confdefs.h <<_ACEOF
49388 #define HAVE_SETSOCKOPT_DECL 1
49389 _ACEOF
49390
49391 fi
49392 fi
49393
49394
49395
49396 for ac_func in shmget
49397 do
49398 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49399 echo "$as_me:$LINENO: checking for $ac_func" >&5
49400 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
49401 if eval "test \"\${$as_ac_var+set}\" = set"; then
49402   echo $ECHO_N "(cached) $ECHO_C" >&6
49403 else
49404   cat >conftest.$ac_ext <<_ACEOF
49405 /* confdefs.h.  */
49406 _ACEOF
49407 cat confdefs.h >>conftest.$ac_ext
49408 cat >>conftest.$ac_ext <<_ACEOF
49409 /* end confdefs.h.  */
49410 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
49411    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
49412 #define $ac_func innocuous_$ac_func
49413
49414 /* System header to define __stub macros and hopefully few prototypes,
49415     which can conflict with char $ac_func (); below.
49416     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49417     <limits.h> exists even on freestanding compilers.  */
49418
49419 #ifdef __STDC__
49420 # include <limits.h>
49421 #else
49422 # include <assert.h>
49423 #endif
49424
49425 #undef $ac_func
49426
49427 /* Override any gcc2 internal prototype to avoid an error.  */
49428 #ifdef __cplusplus
49429 extern "C"
49430 {
49431 #endif
49432 /* We use char because int might match the return type of a gcc2
49433    builtin and then its argument prototype would still apply.  */
49434 char $ac_func ();
49435 /* The GNU C library defines this for functions which it implements
49436     to always fail with ENOSYS.  Some functions are actually named
49437     something starting with __ and the normal name is an alias.  */
49438 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
49439 choke me
49440 #else
49441 char (*f) () = $ac_func;
49442 #endif
49443 #ifdef __cplusplus
49444 }
49445 #endif
49446
49447 int
49448 main ()
49449 {
49450 return f != $ac_func;
49451   ;
49452   return 0;
49453 }
49454 _ACEOF
49455 rm -f conftest.$ac_objext conftest$ac_exeext
49456 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49457   (eval $ac_link) 2>conftest.er1
49458   ac_status=$?
49459   grep -v '^ *+' conftest.er1 >conftest.err
49460   rm -f conftest.er1
49461   cat conftest.err >&5
49462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49463   (exit $ac_status); } &&
49464          { ac_try='test -z "$ac_c_werror_flag"
49465                          || test ! -s conftest.err'
49466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49467   (eval $ac_try) 2>&5
49468   ac_status=$?
49469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49470   (exit $ac_status); }; } &&
49471          { ac_try='test -s conftest$ac_exeext'
49472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49473   (eval $ac_try) 2>&5
49474   ac_status=$?
49475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49476   (exit $ac_status); }; }; then
49477   eval "$as_ac_var=yes"
49478 else
49479   echo "$as_me: failed program was:" >&5
49480 sed 's/^/| /' conftest.$ac_ext >&5
49481
49482 eval "$as_ac_var=no"
49483 fi
49484 rm -f conftest.err conftest.$ac_objext \
49485       conftest$ac_exeext conftest.$ac_ext
49486 fi
49487 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
49488 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
49489 if test `eval echo '${'$as_ac_var'}'` = yes; then
49490   cat >>confdefs.h <<_ACEOF
49491 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49492 _ACEOF
49493
49494
49495         echo "$as_me:$LINENO: checking for shmdt() argument type" >&5
49496 echo $ECHO_N "checking for shmdt() argument type... $ECHO_C" >&6
49497 if test "${amanda_cv_shmdt_arg_type+set}" = set; then
49498   echo $ECHO_N "(cached) $ECHO_C" >&6
49499 else
49500
49501                 if test "$ac_cv_func_shmget" = yes; then
49502                     cat <<EOF >conftest.$ac_ext
49503 #include "confdefs.h"
49504 #ifdef HAVE_SYS_TYPES_H
49505 # include <sys/types.h>
49506 #endif
49507 #ifdef HAVE_SYS_IPC_H
49508 # include <sys/ipc.h>
49509 #endif
49510 #ifdef HAVE_SYS_SHM_H
49511 # include <sys/shm.h>
49512 #endif
49513
49514 #ifdef __cplusplus
49515 extern "C" void *shmat(int, void *, int);
49516 #else
49517 void *shmat();
49518 #endif
49519
49520 int main()
49521 {
49522     int i;
49523     return 0;
49524 }
49525 EOF
49526                     ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext >/dev/null 2>/dev/null
49527                     if test $? = 0; then
49528                         amanda_cv_shmdt_arg_type=void
49529                     else
49530                         amanda_cv_shmdt_arg_type=char
49531                     fi
49532                     rm -f conftest*
49533                 else
49534                     amanda_cv_shmdt_arg_type=nothing
49535                 fi
49536
49537
49538 fi
49539 echo "$as_me:$LINENO: result: $amanda_cv_shmdt_arg_type" >&5
49540 echo "${ECHO_T}$amanda_cv_shmdt_arg_type" >&6
49541
49542 cat >>confdefs.h <<_ACEOF
49543 #define SHM_ARG_TYPE $amanda_cv_shmdt_arg_type
49544 _ACEOF
49545
49546
49547
49548         case "$FORCE_MMAP" in
49549         n | no)
49550
49551 cat >>confdefs.h <<\_ACEOF
49552 #define HAVE_SYSVSHM 1
49553 _ACEOF
49554
49555           ;;
49556         esac
49557
49558
49559 fi
49560 done
49561
49562
49563 ice_have_shmat=no
49564
49565 for ac_func in shmat
49566 do
49567 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49568 echo "$as_me:$LINENO: checking for $ac_func" >&5
49569 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
49570 if eval "test \"\${$as_ac_var+set}\" = set"; then
49571   echo $ECHO_N "(cached) $ECHO_C" >&6
49572 else
49573   cat >conftest.$ac_ext <<_ACEOF
49574 /* confdefs.h.  */
49575 _ACEOF
49576 cat confdefs.h >>conftest.$ac_ext
49577 cat >>conftest.$ac_ext <<_ACEOF
49578 /* end confdefs.h.  */
49579 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
49580    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
49581 #define $ac_func innocuous_$ac_func
49582
49583 /* System header to define __stub macros and hopefully few prototypes,
49584     which can conflict with char $ac_func (); below.
49585     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49586     <limits.h> exists even on freestanding compilers.  */
49587
49588 #ifdef __STDC__
49589 # include <limits.h>
49590 #else
49591 # include <assert.h>
49592 #endif
49593
49594 #undef $ac_func
49595
49596 /* Override any gcc2 internal prototype to avoid an error.  */
49597 #ifdef __cplusplus
49598 extern "C"
49599 {
49600 #endif
49601 /* We use char because int might match the return type of a gcc2
49602    builtin and then its argument prototype would still apply.  */
49603 char $ac_func ();
49604 /* The GNU C library defines this for functions which it implements
49605     to always fail with ENOSYS.  Some functions are actually named
49606     something starting with __ and the normal name is an alias.  */
49607 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
49608 choke me
49609 #else
49610 char (*f) () = $ac_func;
49611 #endif
49612 #ifdef __cplusplus
49613 }
49614 #endif
49615
49616 int
49617 main ()
49618 {
49619 return f != $ac_func;
49620   ;
49621   return 0;
49622 }
49623 _ACEOF
49624 rm -f conftest.$ac_objext conftest$ac_exeext
49625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49626   (eval $ac_link) 2>conftest.er1
49627   ac_status=$?
49628   grep -v '^ *+' conftest.er1 >conftest.err
49629   rm -f conftest.er1
49630   cat conftest.err >&5
49631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49632   (exit $ac_status); } &&
49633          { ac_try='test -z "$ac_c_werror_flag"
49634                          || test ! -s conftest.err'
49635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49636   (eval $ac_try) 2>&5
49637   ac_status=$?
49638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49639   (exit $ac_status); }; } &&
49640          { ac_try='test -s conftest$ac_exeext'
49641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49642   (eval $ac_try) 2>&5
49643   ac_status=$?
49644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49645   (exit $ac_status); }; }; then
49646   eval "$as_ac_var=yes"
49647 else
49648   echo "$as_me: failed program was:" >&5
49649 sed 's/^/| /' conftest.$ac_ext >&5
49650
49651 eval "$as_ac_var=no"
49652 fi
49653 rm -f conftest.err conftest.$ac_objext \
49654       conftest$ac_exeext conftest.$ac_ext
49655 fi
49656 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
49657 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
49658 if test `eval echo '${'$as_ac_var'}'` = yes; then
49659   cat >>confdefs.h <<_ACEOF
49660 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49661 _ACEOF
49662  ice_have_shmat=yes
49663 fi
49664 done
49665
49666 if test "${ice_have_shmat}" = yes; then
49667 echo "$as_me:$LINENO: checking for shmat declaration in sys/types.h sys/ipc.h sys/shm.h" >&5
49668 echo $ECHO_N "checking for shmat declaration in sys/types.h sys/ipc.h sys/shm.h... $ECHO_C" >&6
49669 if test "${ice_cv_have_shmat_decl+set}" = set; then
49670   echo $ECHO_N "(cached) $ECHO_C" >&6
49671 else
49672
49673 ice_cv_have_shmat_decl=no
49674 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
49675 ice_re_word='(^|[^a-zA-Z0-9_])'
49676 for header in sys/types.h sys/ipc.h sys/shm.h; do
49677 # Check for ordinary declaration
49678 cat >conftest.$ac_ext <<_ACEOF
49679 /* confdefs.h.  */
49680 _ACEOF
49681 cat confdefs.h >>conftest.$ac_ext
49682 cat >>conftest.$ac_ext <<_ACEOF
49683 /* end confdefs.h.  */
49684 #include <$header>
49685
49686 _ACEOF
49687 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
49688   $EGREP "${ice_re_word}shmat[  ]*\(" >/dev/null 2>&1; then
49689   ice_cv_have_shmat_decl=yes
49690 fi
49691 rm -f conftest*
49692
49693 if test "$ice_cv_have_shmat_decl" = yes; then
49694         break
49695 fi
49696 # Check for "fixed" declaration like "getpid _PARAMS((int))"
49697 cat >conftest.$ac_ext <<_ACEOF
49698 /* confdefs.h.  */
49699 _ACEOF
49700 cat confdefs.h >>conftest.$ac_ext
49701 cat >>conftest.$ac_ext <<_ACEOF
49702 /* end confdefs.h.  */
49703 #include <$header>
49704
49705 _ACEOF
49706 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
49707   $EGREP "${ice_re_word}shmat[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
49708   ice_cv_have_shmat_decl=yes
49709 fi
49710 rm -f conftest*
49711
49712 if test "$ice_cv_have_shmat_decl" = yes; then
49713         break
49714 fi
49715 done
49716
49717 fi
49718
49719 echo "$as_me:$LINENO: result: $ice_cv_have_shmat_decl" >&5
49720 echo "${ECHO_T}$ice_cv_have_shmat_decl" >&6
49721 if test "$ice_cv_have_shmat_decl" = yes; then
49722
49723 cat >>confdefs.h <<_ACEOF
49724 #define HAVE_SHMAT_DECL 1
49725 _ACEOF
49726
49727 fi
49728 fi
49729
49730
49731 ice_have_shmctl=no
49732
49733 for ac_func in shmctl
49734 do
49735 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49736 echo "$as_me:$LINENO: checking for $ac_func" >&5
49737 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
49738 if eval "test \"\${$as_ac_var+set}\" = set"; then
49739   echo $ECHO_N "(cached) $ECHO_C" >&6
49740 else
49741   cat >conftest.$ac_ext <<_ACEOF
49742 /* confdefs.h.  */
49743 _ACEOF
49744 cat confdefs.h >>conftest.$ac_ext
49745 cat >>conftest.$ac_ext <<_ACEOF
49746 /* end confdefs.h.  */
49747 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
49748    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
49749 #define $ac_func innocuous_$ac_func
49750
49751 /* System header to define __stub macros and hopefully few prototypes,
49752     which can conflict with char $ac_func (); below.
49753     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49754     <limits.h> exists even on freestanding compilers.  */
49755
49756 #ifdef __STDC__
49757 # include <limits.h>
49758 #else
49759 # include <assert.h>
49760 #endif
49761
49762 #undef $ac_func
49763
49764 /* Override any gcc2 internal prototype to avoid an error.  */
49765 #ifdef __cplusplus
49766 extern "C"
49767 {
49768 #endif
49769 /* We use char because int might match the return type of a gcc2
49770    builtin and then its argument prototype would still apply.  */
49771 char $ac_func ();
49772 /* The GNU C library defines this for functions which it implements
49773     to always fail with ENOSYS.  Some functions are actually named
49774     something starting with __ and the normal name is an alias.  */
49775 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
49776 choke me
49777 #else
49778 char (*f) () = $ac_func;
49779 #endif
49780 #ifdef __cplusplus
49781 }
49782 #endif
49783
49784 int
49785 main ()
49786 {
49787 return f != $ac_func;
49788   ;
49789   return 0;
49790 }
49791 _ACEOF
49792 rm -f conftest.$ac_objext conftest$ac_exeext
49793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49794   (eval $ac_link) 2>conftest.er1
49795   ac_status=$?
49796   grep -v '^ *+' conftest.er1 >conftest.err
49797   rm -f conftest.er1
49798   cat conftest.err >&5
49799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49800   (exit $ac_status); } &&
49801          { ac_try='test -z "$ac_c_werror_flag"
49802                          || test ! -s conftest.err'
49803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49804   (eval $ac_try) 2>&5
49805   ac_status=$?
49806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49807   (exit $ac_status); }; } &&
49808          { ac_try='test -s conftest$ac_exeext'
49809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49810   (eval $ac_try) 2>&5
49811   ac_status=$?
49812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49813   (exit $ac_status); }; }; then
49814   eval "$as_ac_var=yes"
49815 else
49816   echo "$as_me: failed program was:" >&5
49817 sed 's/^/| /' conftest.$ac_ext >&5
49818
49819 eval "$as_ac_var=no"
49820 fi
49821 rm -f conftest.err conftest.$ac_objext \
49822       conftest$ac_exeext conftest.$ac_ext
49823 fi
49824 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
49825 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
49826 if test `eval echo '${'$as_ac_var'}'` = yes; then
49827   cat >>confdefs.h <<_ACEOF
49828 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49829 _ACEOF
49830  ice_have_shmctl=yes
49831 fi
49832 done
49833
49834 if test "${ice_have_shmctl}" = yes; then
49835 echo "$as_me:$LINENO: checking for shmctl declaration in sys/types.h sys/ipc.h sys/shm.h" >&5
49836 echo $ECHO_N "checking for shmctl declaration in sys/types.h sys/ipc.h sys/shm.h... $ECHO_C" >&6
49837 if test "${ice_cv_have_shmctl_decl+set}" = set; then
49838   echo $ECHO_N "(cached) $ECHO_C" >&6
49839 else
49840
49841 ice_cv_have_shmctl_decl=no
49842 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
49843 ice_re_word='(^|[^a-zA-Z0-9_])'
49844 for header in sys/types.h sys/ipc.h sys/shm.h; do
49845 # Check for ordinary declaration
49846 cat >conftest.$ac_ext <<_ACEOF
49847 /* confdefs.h.  */
49848 _ACEOF
49849 cat confdefs.h >>conftest.$ac_ext
49850 cat >>conftest.$ac_ext <<_ACEOF
49851 /* end confdefs.h.  */
49852 #include <$header>
49853
49854 _ACEOF
49855 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
49856   $EGREP "${ice_re_word}shmctl[         ]*\(" >/dev/null 2>&1; then
49857   ice_cv_have_shmctl_decl=yes
49858 fi
49859 rm -f conftest*
49860
49861 if test "$ice_cv_have_shmctl_decl" = yes; then
49862         break
49863 fi
49864 # Check for "fixed" declaration like "getpid _PARAMS((int))"
49865 cat >conftest.$ac_ext <<_ACEOF
49866 /* confdefs.h.  */
49867 _ACEOF
49868 cat confdefs.h >>conftest.$ac_ext
49869 cat >>conftest.$ac_ext <<_ACEOF
49870 /* end confdefs.h.  */
49871 #include <$header>
49872
49873 _ACEOF
49874 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
49875   $EGREP "${ice_re_word}shmctl[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
49876   ice_cv_have_shmctl_decl=yes
49877 fi
49878 rm -f conftest*
49879
49880 if test "$ice_cv_have_shmctl_decl" = yes; then
49881         break
49882 fi
49883 done
49884
49885 fi
49886
49887 echo "$as_me:$LINENO: result: $ice_cv_have_shmctl_decl" >&5
49888 echo "${ECHO_T}$ice_cv_have_shmctl_decl" >&6
49889 if test "$ice_cv_have_shmctl_decl" = yes; then
49890
49891 cat >>confdefs.h <<_ACEOF
49892 #define HAVE_SHMCTL_DECL 1
49893 _ACEOF
49894
49895 fi
49896 fi
49897
49898
49899 ice_have_shmdt=no
49900
49901 for ac_func in shmdt
49902 do
49903 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49904 echo "$as_me:$LINENO: checking for $ac_func" >&5
49905 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
49906 if eval "test \"\${$as_ac_var+set}\" = set"; then
49907   echo $ECHO_N "(cached) $ECHO_C" >&6
49908 else
49909   cat >conftest.$ac_ext <<_ACEOF
49910 /* confdefs.h.  */
49911 _ACEOF
49912 cat confdefs.h >>conftest.$ac_ext
49913 cat >>conftest.$ac_ext <<_ACEOF
49914 /* end confdefs.h.  */
49915 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
49916    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
49917 #define $ac_func innocuous_$ac_func
49918
49919 /* System header to define __stub macros and hopefully few prototypes,
49920     which can conflict with char $ac_func (); below.
49921     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49922     <limits.h> exists even on freestanding compilers.  */
49923
49924 #ifdef __STDC__
49925 # include <limits.h>
49926 #else
49927 # include <assert.h>
49928 #endif
49929
49930 #undef $ac_func
49931
49932 /* Override any gcc2 internal prototype to avoid an error.  */
49933 #ifdef __cplusplus
49934 extern "C"
49935 {
49936 #endif
49937 /* We use char because int might match the return type of a gcc2
49938    builtin and then its argument prototype would still apply.  */
49939 char $ac_func ();
49940 /* The GNU C library defines this for functions which it implements
49941     to always fail with ENOSYS.  Some functions are actually named
49942     something starting with __ and the normal name is an alias.  */
49943 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
49944 choke me
49945 #else
49946 char (*f) () = $ac_func;
49947 #endif
49948 #ifdef __cplusplus
49949 }
49950 #endif
49951
49952 int
49953 main ()
49954 {
49955 return f != $ac_func;
49956   ;
49957   return 0;
49958 }
49959 _ACEOF
49960 rm -f conftest.$ac_objext conftest$ac_exeext
49961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49962   (eval $ac_link) 2>conftest.er1
49963   ac_status=$?
49964   grep -v '^ *+' conftest.er1 >conftest.err
49965   rm -f conftest.er1
49966   cat conftest.err >&5
49967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49968   (exit $ac_status); } &&
49969          { ac_try='test -z "$ac_c_werror_flag"
49970                          || test ! -s conftest.err'
49971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49972   (eval $ac_try) 2>&5
49973   ac_status=$?
49974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49975   (exit $ac_status); }; } &&
49976          { ac_try='test -s conftest$ac_exeext'
49977   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49978   (eval $ac_try) 2>&5
49979   ac_status=$?
49980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49981   (exit $ac_status); }; }; then
49982   eval "$as_ac_var=yes"
49983 else
49984   echo "$as_me: failed program was:" >&5
49985 sed 's/^/| /' conftest.$ac_ext >&5
49986
49987 eval "$as_ac_var=no"
49988 fi
49989 rm -f conftest.err conftest.$ac_objext \
49990       conftest$ac_exeext conftest.$ac_ext
49991 fi
49992 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
49993 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
49994 if test `eval echo '${'$as_ac_var'}'` = yes; then
49995   cat >>confdefs.h <<_ACEOF
49996 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49997 _ACEOF
49998  ice_have_shmdt=yes
49999 fi
50000 done
50001
50002 if test "${ice_have_shmdt}" = yes; then
50003 echo "$as_me:$LINENO: checking for shmdt declaration in sys/types.h sys/ipc.h sys/shm.h" >&5
50004 echo $ECHO_N "checking for shmdt declaration in sys/types.h sys/ipc.h sys/shm.h... $ECHO_C" >&6
50005 if test "${ice_cv_have_shmdt_decl+set}" = set; then
50006   echo $ECHO_N "(cached) $ECHO_C" >&6
50007 else
50008
50009 ice_cv_have_shmdt_decl=no
50010 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
50011 ice_re_word='(^|[^a-zA-Z0-9_])'
50012 for header in sys/types.h sys/ipc.h sys/shm.h; do
50013 # Check for ordinary declaration
50014 cat >conftest.$ac_ext <<_ACEOF
50015 /* confdefs.h.  */
50016 _ACEOF
50017 cat confdefs.h >>conftest.$ac_ext
50018 cat >>conftest.$ac_ext <<_ACEOF
50019 /* end confdefs.h.  */
50020 #include <$header>
50021
50022 _ACEOF
50023 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
50024   $EGREP "${ice_re_word}shmdt[  ]*\(" >/dev/null 2>&1; then
50025   ice_cv_have_shmdt_decl=yes
50026 fi
50027 rm -f conftest*
50028
50029 if test "$ice_cv_have_shmdt_decl" = yes; then
50030         break
50031 fi
50032 # Check for "fixed" declaration like "getpid _PARAMS((int))"
50033 cat >conftest.$ac_ext <<_ACEOF
50034 /* confdefs.h.  */
50035 _ACEOF
50036 cat confdefs.h >>conftest.$ac_ext
50037 cat >>conftest.$ac_ext <<_ACEOF
50038 /* end confdefs.h.  */
50039 #include <$header>
50040
50041 _ACEOF
50042 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
50043   $EGREP "${ice_re_word}shmdt[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
50044   ice_cv_have_shmdt_decl=yes
50045 fi
50046 rm -f conftest*
50047
50048 if test "$ice_cv_have_shmdt_decl" = yes; then
50049         break
50050 fi
50051 done
50052
50053 fi
50054
50055 echo "$as_me:$LINENO: result: $ice_cv_have_shmdt_decl" >&5
50056 echo "${ECHO_T}$ice_cv_have_shmdt_decl" >&6
50057 if test "$ice_cv_have_shmdt_decl" = yes; then
50058
50059 cat >>confdefs.h <<_ACEOF
50060 #define HAVE_SHMDT_DECL 1
50061 _ACEOF
50062
50063 fi
50064 fi
50065
50066
50067 ice_have_shmget=no
50068
50069 for ac_func in shmget
50070 do
50071 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
50072 echo "$as_me:$LINENO: checking for $ac_func" >&5
50073 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
50074 if eval "test \"\${$as_ac_var+set}\" = set"; then
50075   echo $ECHO_N "(cached) $ECHO_C" >&6
50076 else
50077   cat >conftest.$ac_ext <<_ACEOF
50078 /* confdefs.h.  */
50079 _ACEOF
50080 cat confdefs.h >>conftest.$ac_ext
50081 cat >>conftest.$ac_ext <<_ACEOF
50082 /* end confdefs.h.  */
50083 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
50084    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
50085 #define $ac_func innocuous_$ac_func
50086
50087 /* System header to define __stub macros and hopefully few prototypes,
50088     which can conflict with char $ac_func (); below.
50089     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50090     <limits.h> exists even on freestanding compilers.  */
50091
50092 #ifdef __STDC__
50093 # include <limits.h>
50094 #else
50095 # include <assert.h>
50096 #endif
50097
50098 #undef $ac_func
50099
50100 /* Override any gcc2 internal prototype to avoid an error.  */
50101 #ifdef __cplusplus
50102 extern "C"
50103 {
50104 #endif
50105 /* We use char because int might match the return type of a gcc2
50106    builtin and then its argument prototype would still apply.  */
50107 char $ac_func ();
50108 /* The GNU C library defines this for functions which it implements
50109     to always fail with ENOSYS.  Some functions are actually named
50110     something starting with __ and the normal name is an alias.  */
50111 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
50112 choke me
50113 #else
50114 char (*f) () = $ac_func;
50115 #endif
50116 #ifdef __cplusplus
50117 }
50118 #endif
50119
50120 int
50121 main ()
50122 {
50123 return f != $ac_func;
50124   ;
50125   return 0;
50126 }
50127 _ACEOF
50128 rm -f conftest.$ac_objext conftest$ac_exeext
50129 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50130   (eval $ac_link) 2>conftest.er1
50131   ac_status=$?
50132   grep -v '^ *+' conftest.er1 >conftest.err
50133   rm -f conftest.er1
50134   cat conftest.err >&5
50135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50136   (exit $ac_status); } &&
50137          { ac_try='test -z "$ac_c_werror_flag"
50138                          || test ! -s conftest.err'
50139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50140   (eval $ac_try) 2>&5
50141   ac_status=$?
50142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50143   (exit $ac_status); }; } &&
50144          { ac_try='test -s conftest$ac_exeext'
50145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50146   (eval $ac_try) 2>&5
50147   ac_status=$?
50148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50149   (exit $ac_status); }; }; then
50150   eval "$as_ac_var=yes"
50151 else
50152   echo "$as_me: failed program was:" >&5
50153 sed 's/^/| /' conftest.$ac_ext >&5
50154
50155 eval "$as_ac_var=no"
50156 fi
50157 rm -f conftest.err conftest.$ac_objext \
50158       conftest$ac_exeext conftest.$ac_ext
50159 fi
50160 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
50161 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
50162 if test `eval echo '${'$as_ac_var'}'` = yes; then
50163   cat >>confdefs.h <<_ACEOF
50164 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
50165 _ACEOF
50166  ice_have_shmget=yes
50167 fi
50168 done
50169
50170 if test "${ice_have_shmget}" = yes; then
50171 echo "$as_me:$LINENO: checking for shmget declaration in sys/types.h sys/ipc.h sys/shm.h" >&5
50172 echo $ECHO_N "checking for shmget declaration in sys/types.h sys/ipc.h sys/shm.h... $ECHO_C" >&6
50173 if test "${ice_cv_have_shmget_decl+set}" = set; then
50174   echo $ECHO_N "(cached) $ECHO_C" >&6
50175 else
50176
50177 ice_cv_have_shmget_decl=no
50178 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
50179 ice_re_word='(^|[^a-zA-Z0-9_])'
50180 for header in sys/types.h sys/ipc.h sys/shm.h; do
50181 # Check for ordinary declaration
50182 cat >conftest.$ac_ext <<_ACEOF
50183 /* confdefs.h.  */
50184 _ACEOF
50185 cat confdefs.h >>conftest.$ac_ext
50186 cat >>conftest.$ac_ext <<_ACEOF
50187 /* end confdefs.h.  */
50188 #include <$header>
50189
50190 _ACEOF
50191 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
50192   $EGREP "${ice_re_word}shmget[         ]*\(" >/dev/null 2>&1; then
50193   ice_cv_have_shmget_decl=yes
50194 fi
50195 rm -f conftest*
50196
50197 if test "$ice_cv_have_shmget_decl" = yes; then
50198         break
50199 fi
50200 # Check for "fixed" declaration like "getpid _PARAMS((int))"
50201 cat >conftest.$ac_ext <<_ACEOF
50202 /* confdefs.h.  */
50203 _ACEOF
50204 cat confdefs.h >>conftest.$ac_ext
50205 cat >>conftest.$ac_ext <<_ACEOF
50206 /* end confdefs.h.  */
50207 #include <$header>
50208
50209 _ACEOF
50210 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
50211   $EGREP "${ice_re_word}shmget[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
50212   ice_cv_have_shmget_decl=yes
50213 fi
50214 rm -f conftest*
50215
50216 if test "$ice_cv_have_shmget_decl" = yes; then
50217         break
50218 fi
50219 done
50220
50221 fi
50222
50223 echo "$as_me:$LINENO: result: $ice_cv_have_shmget_decl" >&5
50224 echo "${ECHO_T}$ice_cv_have_shmget_decl" >&6
50225 if test "$ice_cv_have_shmget_decl" = yes; then
50226
50227 cat >>confdefs.h <<_ACEOF
50228 #define HAVE_SHMGET_DECL 1
50229 _ACEOF
50230
50231 fi
50232 fi
50233
50234
50235 if test "x$ac_cv_func_mmap_fixed_mapped" != xyes; then
50236     case "$FORCE_MMAP" in
50237     n | no)
50238         if test "x$ac_cv_func_shmget" != xyes; then
50239             { echo "$as_me:$LINENO: WARNING: *** Neither shmget() nor mmap() found!" >&5
50240 echo "$as_me: WARNING: *** Neither shmget() nor mmap() found!" >&2;}
50241             { echo "$as_me:$LINENO: WARNING: *** This system will not support the Amanda server." >&5
50242 echo "$as_me: WARNING: *** This system will not support the Amanda server." >&2;}
50243             NO_SERVER_MODE=true
50244         fi
50245       ;;
50246     y | ye | yes)
50247         { echo "$as_me:$LINENO: WARNING: *** --with-mmap used on a system with no mmap() support!" >&5
50248 echo "$as_me: WARNING: *** --with-mmap used on a system with no mmap() support!" >&2;}
50249         { echo "$as_me:$LINENO: WARNING: *** This system will not support the Amanda server." >&5
50250 echo "$as_me: WARNING: *** This system will not support the Amanda server." >&2;}
50251         NO_SERVER_MODE=true
50252       ;;
50253     esac
50254 fi
50255
50256
50257 ice_have_snprintf=no
50258
50259 for ac_func in snprintf
50260 do
50261 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
50262 echo "$as_me:$LINENO: checking for $ac_func" >&5
50263 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
50264 if eval "test \"\${$as_ac_var+set}\" = set"; then
50265   echo $ECHO_N "(cached) $ECHO_C" >&6
50266 else
50267   cat >conftest.$ac_ext <<_ACEOF
50268 /* confdefs.h.  */
50269 _ACEOF
50270 cat confdefs.h >>conftest.$ac_ext
50271 cat >>conftest.$ac_ext <<_ACEOF
50272 /* end confdefs.h.  */
50273 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
50274    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
50275 #define $ac_func innocuous_$ac_func
50276
50277 /* System header to define __stub macros and hopefully few prototypes,
50278     which can conflict with char $ac_func (); below.
50279     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50280     <limits.h> exists even on freestanding compilers.  */
50281
50282 #ifdef __STDC__
50283 # include <limits.h>
50284 #else
50285 # include <assert.h>
50286 #endif
50287
50288 #undef $ac_func
50289
50290 /* Override any gcc2 internal prototype to avoid an error.  */
50291 #ifdef __cplusplus
50292 extern "C"
50293 {
50294 #endif
50295 /* We use char because int might match the return type of a gcc2
50296    builtin and then its argument prototype would still apply.  */
50297 char $ac_func ();
50298 /* The GNU C library defines this for functions which it implements
50299     to always fail with ENOSYS.  Some functions are actually named
50300     something starting with __ and the normal name is an alias.  */
50301 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
50302 choke me
50303 #else
50304 char (*f) () = $ac_func;
50305 #endif
50306 #ifdef __cplusplus
50307 }
50308 #endif
50309
50310 int
50311 main ()
50312 {
50313 return f != $ac_func;
50314   ;
50315   return 0;
50316 }
50317 _ACEOF
50318 rm -f conftest.$ac_objext conftest$ac_exeext
50319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50320   (eval $ac_link) 2>conftest.er1
50321   ac_status=$?
50322   grep -v '^ *+' conftest.er1 >conftest.err
50323   rm -f conftest.er1
50324   cat conftest.err >&5
50325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50326   (exit $ac_status); } &&
50327          { ac_try='test -z "$ac_c_werror_flag"
50328                          || test ! -s conftest.err'
50329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50330   (eval $ac_try) 2>&5
50331   ac_status=$?
50332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50333   (exit $ac_status); }; } &&
50334          { ac_try='test -s conftest$ac_exeext'
50335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50336   (eval $ac_try) 2>&5
50337   ac_status=$?
50338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50339   (exit $ac_status); }; }; then
50340   eval "$as_ac_var=yes"
50341 else
50342   echo "$as_me: failed program was:" >&5
50343 sed 's/^/| /' conftest.$ac_ext >&5
50344
50345 eval "$as_ac_var=no"
50346 fi
50347 rm -f conftest.err conftest.$ac_objext \
50348       conftest$ac_exeext conftest.$ac_ext
50349 fi
50350 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
50351 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
50352 if test `eval echo '${'$as_ac_var'}'` = yes; then
50353   cat >>confdefs.h <<_ACEOF
50354 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
50355 _ACEOF
50356  ice_have_snprintf=yes
50357 fi
50358 done
50359
50360 if test "${ice_have_snprintf}" = yes; then
50361 echo "$as_me:$LINENO: checking for snprintf declaration in stdio.h" >&5
50362 echo $ECHO_N "checking for snprintf declaration in stdio.h... $ECHO_C" >&6
50363 if test "${ice_cv_have_snprintf_decl+set}" = set; then
50364   echo $ECHO_N "(cached) $ECHO_C" >&6
50365 else
50366
50367 ice_cv_have_snprintf_decl=no
50368 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
50369 ice_re_word='(^|[^a-zA-Z0-9_])'
50370 for header in stdio.h; do
50371 # Check for ordinary declaration
50372 cat >conftest.$ac_ext <<_ACEOF
50373 /* confdefs.h.  */
50374 _ACEOF
50375 cat confdefs.h >>conftest.$ac_ext
50376 cat >>conftest.$ac_ext <<_ACEOF
50377 /* end confdefs.h.  */
50378 #include <$header>
50379
50380 _ACEOF
50381 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
50382   $EGREP "${ice_re_word}snprintf[       ]*\(" >/dev/null 2>&1; then
50383   ice_cv_have_snprintf_decl=yes
50384 fi
50385 rm -f conftest*
50386
50387 if test "$ice_cv_have_snprintf_decl" = yes; then
50388         break
50389 fi
50390 # Check for "fixed" declaration like "getpid _PARAMS((int))"
50391 cat >conftest.$ac_ext <<_ACEOF
50392 /* confdefs.h.  */
50393 _ACEOF
50394 cat confdefs.h >>conftest.$ac_ext
50395 cat >>conftest.$ac_ext <<_ACEOF
50396 /* end confdefs.h.  */
50397 #include <$header>
50398
50399 _ACEOF
50400 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
50401   $EGREP "${ice_re_word}snprintf[       ]*$ice_re_params\(\(" >/dev/null 2>&1; then
50402   ice_cv_have_snprintf_decl=yes
50403 fi
50404 rm -f conftest*
50405
50406 if test "$ice_cv_have_snprintf_decl" = yes; then
50407         break
50408 fi
50409 done
50410
50411 fi
50412
50413 echo "$as_me:$LINENO: result: $ice_cv_have_snprintf_decl" >&5
50414 echo "${ECHO_T}$ice_cv_have_snprintf_decl" >&6
50415 if test "$ice_cv_have_snprintf_decl" = yes; then
50416
50417 cat >>confdefs.h <<_ACEOF
50418 #define HAVE_SNPRINTF_DECL 1
50419 _ACEOF
50420
50421 fi
50422 fi
50423
50424
50425 ice_have_vsnprintf=no
50426
50427 for ac_func in vsnprintf
50428 do
50429 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
50430 echo "$as_me:$LINENO: checking for $ac_func" >&5
50431 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
50432 if eval "test \"\${$as_ac_var+set}\" = set"; then
50433   echo $ECHO_N "(cached) $ECHO_C" >&6
50434 else
50435   cat >conftest.$ac_ext <<_ACEOF
50436 /* confdefs.h.  */
50437 _ACEOF
50438 cat confdefs.h >>conftest.$ac_ext
50439 cat >>conftest.$ac_ext <<_ACEOF
50440 /* end confdefs.h.  */
50441 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
50442    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
50443 #define $ac_func innocuous_$ac_func
50444
50445 /* System header to define __stub macros and hopefully few prototypes,
50446     which can conflict with char $ac_func (); below.
50447     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50448     <limits.h> exists even on freestanding compilers.  */
50449
50450 #ifdef __STDC__
50451 # include <limits.h>
50452 #else
50453 # include <assert.h>
50454 #endif
50455
50456 #undef $ac_func
50457
50458 /* Override any gcc2 internal prototype to avoid an error.  */
50459 #ifdef __cplusplus
50460 extern "C"
50461 {
50462 #endif
50463 /* We use char because int might match the return type of a gcc2
50464    builtin and then its argument prototype would still apply.  */
50465 char $ac_func ();
50466 /* The GNU C library defines this for functions which it implements
50467     to always fail with ENOSYS.  Some functions are actually named
50468     something starting with __ and the normal name is an alias.  */
50469 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
50470 choke me
50471 #else
50472 char (*f) () = $ac_func;
50473 #endif
50474 #ifdef __cplusplus
50475 }
50476 #endif
50477
50478 int
50479 main ()
50480 {
50481 return f != $ac_func;
50482   ;
50483   return 0;
50484 }
50485 _ACEOF
50486 rm -f conftest.$ac_objext conftest$ac_exeext
50487 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50488   (eval $ac_link) 2>conftest.er1
50489   ac_status=$?
50490   grep -v '^ *+' conftest.er1 >conftest.err
50491   rm -f conftest.er1
50492   cat conftest.err >&5
50493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50494   (exit $ac_status); } &&
50495          { ac_try='test -z "$ac_c_werror_flag"
50496                          || test ! -s conftest.err'
50497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50498   (eval $ac_try) 2>&5
50499   ac_status=$?
50500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50501   (exit $ac_status); }; } &&
50502          { ac_try='test -s conftest$ac_exeext'
50503   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50504   (eval $ac_try) 2>&5
50505   ac_status=$?
50506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50507   (exit $ac_status); }; }; then
50508   eval "$as_ac_var=yes"
50509 else
50510   echo "$as_me: failed program was:" >&5
50511 sed 's/^/| /' conftest.$ac_ext >&5
50512
50513 eval "$as_ac_var=no"
50514 fi
50515 rm -f conftest.err conftest.$ac_objext \
50516       conftest$ac_exeext conftest.$ac_ext
50517 fi
50518 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
50519 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
50520 if test `eval echo '${'$as_ac_var'}'` = yes; then
50521   cat >>confdefs.h <<_ACEOF
50522 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
50523 _ACEOF
50524  ice_have_vsnprintf=yes
50525 fi
50526 done
50527
50528 if test "${ice_have_vsnprintf}" = yes; then
50529 echo "$as_me:$LINENO: checking for vsnprintf declaration in stdio.h" >&5
50530 echo $ECHO_N "checking for vsnprintf declaration in stdio.h... $ECHO_C" >&6
50531 if test "${ice_cv_have_vsnprintf_decl+set}" = set; then
50532   echo $ECHO_N "(cached) $ECHO_C" >&6
50533 else
50534
50535 ice_cv_have_vsnprintf_decl=no
50536 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
50537 ice_re_word='(^|[^a-zA-Z0-9_])'
50538 for header in stdio.h; do
50539 # Check for ordinary declaration
50540 cat >conftest.$ac_ext <<_ACEOF
50541 /* confdefs.h.  */
50542 _ACEOF
50543 cat confdefs.h >>conftest.$ac_ext
50544 cat >>conftest.$ac_ext <<_ACEOF
50545 /* end confdefs.h.  */
50546 #include <$header>
50547
50548 _ACEOF
50549 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
50550   $EGREP "${ice_re_word}vsnprintf[      ]*\(" >/dev/null 2>&1; then
50551   ice_cv_have_vsnprintf_decl=yes
50552 fi
50553 rm -f conftest*
50554
50555 if test "$ice_cv_have_vsnprintf_decl" = yes; then
50556         break
50557 fi
50558 # Check for "fixed" declaration like "getpid _PARAMS((int))"
50559 cat >conftest.$ac_ext <<_ACEOF
50560 /* confdefs.h.  */
50561 _ACEOF
50562 cat confdefs.h >>conftest.$ac_ext
50563 cat >>conftest.$ac_ext <<_ACEOF
50564 /* end confdefs.h.  */
50565 #include <$header>
50566
50567 _ACEOF
50568 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
50569   $EGREP "${ice_re_word}vsnprintf[      ]*$ice_re_params\(\(" >/dev/null 2>&1; then
50570   ice_cv_have_vsnprintf_decl=yes
50571 fi
50572 rm -f conftest*
50573
50574 if test "$ice_cv_have_vsnprintf_decl" = yes; then
50575         break
50576 fi
50577 done
50578
50579 fi
50580
50581 echo "$as_me:$LINENO: result: $ice_cv_have_vsnprintf_decl" >&5
50582 echo "${ECHO_T}$ice_cv_have_vsnprintf_decl" >&6
50583 if test "$ice_cv_have_vsnprintf_decl" = yes; then
50584
50585 cat >>confdefs.h <<_ACEOF
50586 #define HAVE_VSNPRINTF_DECL 1
50587 _ACEOF
50588
50589 fi
50590 fi
50591
50592 if test x"$ice_have_snprintf" != x"yes" ||
50593    test x"$ice_have_vsnprintf" != x"yes"; then
50594     case $LIBOBJS in
50595     "snprintf.$ac_objext"   | \
50596   *" snprintf.$ac_objext"   | \
50597     "snprintf.$ac_objext "* | \
50598   *" snprintf.$ac_objext "* ) ;;
50599   *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" ;;
50600 esac
50601
50602     if false; then :
50603
50604 for ac_func in snprintf
50605 do
50606 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
50607 echo "$as_me:$LINENO: checking for $ac_func" >&5
50608 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
50609 if eval "test \"\${$as_ac_var+set}\" = set"; then
50610   echo $ECHO_N "(cached) $ECHO_C" >&6
50611 else
50612   cat >conftest.$ac_ext <<_ACEOF
50613 /* confdefs.h.  */
50614 _ACEOF
50615 cat confdefs.h >>conftest.$ac_ext
50616 cat >>conftest.$ac_ext <<_ACEOF
50617 /* end confdefs.h.  */
50618 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
50619    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
50620 #define $ac_func innocuous_$ac_func
50621
50622 /* System header to define __stub macros and hopefully few prototypes,
50623     which can conflict with char $ac_func (); below.
50624     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50625     <limits.h> exists even on freestanding compilers.  */
50626
50627 #ifdef __STDC__
50628 # include <limits.h>
50629 #else
50630 # include <assert.h>
50631 #endif
50632
50633 #undef $ac_func
50634
50635 /* Override any gcc2 internal prototype to avoid an error.  */
50636 #ifdef __cplusplus
50637 extern "C"
50638 {
50639 #endif
50640 /* We use char because int might match the return type of a gcc2
50641    builtin and then its argument prototype would still apply.  */
50642 char $ac_func ();
50643 /* The GNU C library defines this for functions which it implements
50644     to always fail with ENOSYS.  Some functions are actually named
50645     something starting with __ and the normal name is an alias.  */
50646 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
50647 choke me
50648 #else
50649 char (*f) () = $ac_func;
50650 #endif
50651 #ifdef __cplusplus
50652 }
50653 #endif
50654
50655 int
50656 main ()
50657 {
50658 return f != $ac_func;
50659   ;
50660   return 0;
50661 }
50662 _ACEOF
50663 rm -f conftest.$ac_objext conftest$ac_exeext
50664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50665   (eval $ac_link) 2>conftest.er1
50666   ac_status=$?
50667   grep -v '^ *+' conftest.er1 >conftest.err
50668   rm -f conftest.er1
50669   cat conftest.err >&5
50670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50671   (exit $ac_status); } &&
50672          { ac_try='test -z "$ac_c_werror_flag"
50673                          || test ! -s conftest.err'
50674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50675   (eval $ac_try) 2>&5
50676   ac_status=$?
50677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50678   (exit $ac_status); }; } &&
50679          { ac_try='test -s conftest$ac_exeext'
50680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50681   (eval $ac_try) 2>&5
50682   ac_status=$?
50683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50684   (exit $ac_status); }; }; then
50685   eval "$as_ac_var=yes"
50686 else
50687   echo "$as_me: failed program was:" >&5
50688 sed 's/^/| /' conftest.$ac_ext >&5
50689
50690 eval "$as_ac_var=no"
50691 fi
50692 rm -f conftest.err conftest.$ac_objext \
50693       conftest$ac_exeext conftest.$ac_ext
50694 fi
50695 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
50696 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
50697 if test `eval echo '${'$as_ac_var'}'` = yes; then
50698   cat >>confdefs.h <<_ACEOF
50699 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
50700 _ACEOF
50701
50702 else
50703   case $LIBOBJS in
50704     "$ac_func.$ac_objext"   | \
50705   *" $ac_func.$ac_objext"   | \
50706     "$ac_func.$ac_objext "* | \
50707   *" $ac_func.$ac_objext "* ) ;;
50708   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
50709 esac
50710
50711 fi
50712 done
50713
50714
50715     fi
50716 fi
50717
50718
50719
50720
50721 for ac_func in sigaction sigemptyset sigvec
50722 do
50723 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
50724 echo "$as_me:$LINENO: checking for $ac_func" >&5
50725 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
50726 if eval "test \"\${$as_ac_var+set}\" = set"; then
50727   echo $ECHO_N "(cached) $ECHO_C" >&6
50728 else
50729   cat >conftest.$ac_ext <<_ACEOF
50730 /* confdefs.h.  */
50731 _ACEOF
50732 cat confdefs.h >>conftest.$ac_ext
50733 cat >>conftest.$ac_ext <<_ACEOF
50734 /* end confdefs.h.  */
50735 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
50736    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
50737 #define $ac_func innocuous_$ac_func
50738
50739 /* System header to define __stub macros and hopefully few prototypes,
50740     which can conflict with char $ac_func (); below.
50741     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50742     <limits.h> exists even on freestanding compilers.  */
50743
50744 #ifdef __STDC__
50745 # include <limits.h>
50746 #else
50747 # include <assert.h>
50748 #endif
50749
50750 #undef $ac_func
50751
50752 /* Override any gcc2 internal prototype to avoid an error.  */
50753 #ifdef __cplusplus
50754 extern "C"
50755 {
50756 #endif
50757 /* We use char because int might match the return type of a gcc2
50758    builtin and then its argument prototype would still apply.  */
50759 char $ac_func ();
50760 /* The GNU C library defines this for functions which it implements
50761     to always fail with ENOSYS.  Some functions are actually named
50762     something starting with __ and the normal name is an alias.  */
50763 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
50764 choke me
50765 #else
50766 char (*f) () = $ac_func;
50767 #endif
50768 #ifdef __cplusplus
50769 }
50770 #endif
50771
50772 int
50773 main ()
50774 {
50775 return f != $ac_func;
50776   ;
50777   return 0;
50778 }
50779 _ACEOF
50780 rm -f conftest.$ac_objext conftest$ac_exeext
50781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50782   (eval $ac_link) 2>conftest.er1
50783   ac_status=$?
50784   grep -v '^ *+' conftest.er1 >conftest.err
50785   rm -f conftest.er1
50786   cat conftest.err >&5
50787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50788   (exit $ac_status); } &&
50789          { ac_try='test -z "$ac_c_werror_flag"
50790                          || test ! -s conftest.err'
50791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50792   (eval $ac_try) 2>&5
50793   ac_status=$?
50794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50795   (exit $ac_status); }; } &&
50796          { ac_try='test -s conftest$ac_exeext'
50797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50798   (eval $ac_try) 2>&5
50799   ac_status=$?
50800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50801   (exit $ac_status); }; }; then
50802   eval "$as_ac_var=yes"
50803 else
50804   echo "$as_me: failed program was:" >&5
50805 sed 's/^/| /' conftest.$ac_ext >&5
50806
50807 eval "$as_ac_var=no"
50808 fi
50809 rm -f conftest.err conftest.$ac_objext \
50810       conftest$ac_exeext conftest.$ac_ext
50811 fi
50812 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
50813 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
50814 if test `eval echo '${'$as_ac_var'}'` = yes; then
50815   cat >>confdefs.h <<_ACEOF
50816 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
50817 _ACEOF
50818
50819 fi
50820 done
50821
50822
50823 ice_have_socket=no
50824
50825 for ac_func in socket
50826 do
50827 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
50828 echo "$as_me:$LINENO: checking for $ac_func" >&5
50829 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
50830 if eval "test \"\${$as_ac_var+set}\" = set"; then
50831   echo $ECHO_N "(cached) $ECHO_C" >&6
50832 else
50833   cat >conftest.$ac_ext <<_ACEOF
50834 /* confdefs.h.  */
50835 _ACEOF
50836 cat confdefs.h >>conftest.$ac_ext
50837 cat >>conftest.$ac_ext <<_ACEOF
50838 /* end confdefs.h.  */
50839 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
50840    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
50841 #define $ac_func innocuous_$ac_func
50842
50843 /* System header to define __stub macros and hopefully few prototypes,
50844     which can conflict with char $ac_func (); below.
50845     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50846     <limits.h> exists even on freestanding compilers.  */
50847
50848 #ifdef __STDC__
50849 # include <limits.h>
50850 #else
50851 # include <assert.h>
50852 #endif
50853
50854 #undef $ac_func
50855
50856 /* Override any gcc2 internal prototype to avoid an error.  */
50857 #ifdef __cplusplus
50858 extern "C"
50859 {
50860 #endif
50861 /* We use char because int might match the return type of a gcc2
50862    builtin and then its argument prototype would still apply.  */
50863 char $ac_func ();
50864 /* The GNU C library defines this for functions which it implements
50865     to always fail with ENOSYS.  Some functions are actually named
50866     something starting with __ and the normal name is an alias.  */
50867 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
50868 choke me
50869 #else
50870 char (*f) () = $ac_func;
50871 #endif
50872 #ifdef __cplusplus
50873 }
50874 #endif
50875
50876 int
50877 main ()
50878 {
50879 return f != $ac_func;
50880   ;
50881   return 0;
50882 }
50883 _ACEOF
50884 rm -f conftest.$ac_objext conftest$ac_exeext
50885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50886   (eval $ac_link) 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          { ac_try='test -z "$ac_c_werror_flag"
50894                          || test ! -s conftest.err'
50895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50896   (eval $ac_try) 2>&5
50897   ac_status=$?
50898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50899   (exit $ac_status); }; } &&
50900          { ac_try='test -s conftest$ac_exeext'
50901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50902   (eval $ac_try) 2>&5
50903   ac_status=$?
50904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50905   (exit $ac_status); }; }; then
50906   eval "$as_ac_var=yes"
50907 else
50908   echo "$as_me: failed program was:" >&5
50909 sed 's/^/| /' conftest.$ac_ext >&5
50910
50911 eval "$as_ac_var=no"
50912 fi
50913 rm -f conftest.err conftest.$ac_objext \
50914       conftest$ac_exeext conftest.$ac_ext
50915 fi
50916 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
50917 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
50918 if test `eval echo '${'$as_ac_var'}'` = yes; then
50919   cat >>confdefs.h <<_ACEOF
50920 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
50921 _ACEOF
50922  ice_have_socket=yes
50923 fi
50924 done
50925
50926 if test "${ice_have_socket}" = yes; then
50927 echo "$as_me:$LINENO: checking for socket declaration in sys/types.h sys/socket.h" >&5
50928 echo $ECHO_N "checking for socket declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
50929 if test "${ice_cv_have_socket_decl+set}" = set; then
50930   echo $ECHO_N "(cached) $ECHO_C" >&6
50931 else
50932
50933 ice_cv_have_socket_decl=no
50934 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
50935 ice_re_word='(^|[^a-zA-Z0-9_])'
50936 for header in sys/types.h sys/socket.h; do
50937 # Check for ordinary declaration
50938 cat >conftest.$ac_ext <<_ACEOF
50939 /* confdefs.h.  */
50940 _ACEOF
50941 cat confdefs.h >>conftest.$ac_ext
50942 cat >>conftest.$ac_ext <<_ACEOF
50943 /* end confdefs.h.  */
50944 #include <$header>
50945
50946 _ACEOF
50947 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
50948   $EGREP "${ice_re_word}socket[         ]*\(" >/dev/null 2>&1; then
50949   ice_cv_have_socket_decl=yes
50950 fi
50951 rm -f conftest*
50952
50953 if test "$ice_cv_have_socket_decl" = yes; then
50954         break
50955 fi
50956 # Check for "fixed" declaration like "getpid _PARAMS((int))"
50957 cat >conftest.$ac_ext <<_ACEOF
50958 /* confdefs.h.  */
50959 _ACEOF
50960 cat confdefs.h >>conftest.$ac_ext
50961 cat >>conftest.$ac_ext <<_ACEOF
50962 /* end confdefs.h.  */
50963 #include <$header>
50964
50965 _ACEOF
50966 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
50967   $EGREP "${ice_re_word}socket[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
50968   ice_cv_have_socket_decl=yes
50969 fi
50970 rm -f conftest*
50971
50972 if test "$ice_cv_have_socket_decl" = yes; then
50973         break
50974 fi
50975 done
50976
50977 fi
50978
50979 echo "$as_me:$LINENO: result: $ice_cv_have_socket_decl" >&5
50980 echo "${ECHO_T}$ice_cv_have_socket_decl" >&6
50981 if test "$ice_cv_have_socket_decl" = yes; then
50982
50983 cat >>confdefs.h <<_ACEOF
50984 #define HAVE_SOCKET_DECL 1
50985 _ACEOF
50986
50987 fi
50988 fi
50989
50990
50991 ice_have_socketpair=no
50992
50993 for ac_func in socketpair
50994 do
50995 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
50996 echo "$as_me:$LINENO: checking for $ac_func" >&5
50997 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
50998 if eval "test \"\${$as_ac_var+set}\" = set"; then
50999   echo $ECHO_N "(cached) $ECHO_C" >&6
51000 else
51001   cat >conftest.$ac_ext <<_ACEOF
51002 /* confdefs.h.  */
51003 _ACEOF
51004 cat confdefs.h >>conftest.$ac_ext
51005 cat >>conftest.$ac_ext <<_ACEOF
51006 /* end confdefs.h.  */
51007 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51008    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
51009 #define $ac_func innocuous_$ac_func
51010
51011 /* System header to define __stub macros and hopefully few prototypes,
51012     which can conflict with char $ac_func (); below.
51013     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51014     <limits.h> exists even on freestanding compilers.  */
51015
51016 #ifdef __STDC__
51017 # include <limits.h>
51018 #else
51019 # include <assert.h>
51020 #endif
51021
51022 #undef $ac_func
51023
51024 /* Override any gcc2 internal prototype to avoid an error.  */
51025 #ifdef __cplusplus
51026 extern "C"
51027 {
51028 #endif
51029 /* We use char because int might match the return type of a gcc2
51030    builtin and then its argument prototype would still apply.  */
51031 char $ac_func ();
51032 /* The GNU C library defines this for functions which it implements
51033     to always fail with ENOSYS.  Some functions are actually named
51034     something starting with __ and the normal name is an alias.  */
51035 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51036 choke me
51037 #else
51038 char (*f) () = $ac_func;
51039 #endif
51040 #ifdef __cplusplus
51041 }
51042 #endif
51043
51044 int
51045 main ()
51046 {
51047 return f != $ac_func;
51048   ;
51049   return 0;
51050 }
51051 _ACEOF
51052 rm -f conftest.$ac_objext conftest$ac_exeext
51053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51054   (eval $ac_link) 2>conftest.er1
51055   ac_status=$?
51056   grep -v '^ *+' conftest.er1 >conftest.err
51057   rm -f conftest.er1
51058   cat conftest.err >&5
51059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51060   (exit $ac_status); } &&
51061          { ac_try='test -z "$ac_c_werror_flag"
51062                          || test ! -s conftest.err'
51063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51064   (eval $ac_try) 2>&5
51065   ac_status=$?
51066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51067   (exit $ac_status); }; } &&
51068          { ac_try='test -s conftest$ac_exeext'
51069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51070   (eval $ac_try) 2>&5
51071   ac_status=$?
51072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51073   (exit $ac_status); }; }; then
51074   eval "$as_ac_var=yes"
51075 else
51076   echo "$as_me: failed program was:" >&5
51077 sed 's/^/| /' conftest.$ac_ext >&5
51078
51079 eval "$as_ac_var=no"
51080 fi
51081 rm -f conftest.err conftest.$ac_objext \
51082       conftest$ac_exeext conftest.$ac_ext
51083 fi
51084 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51085 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51086 if test `eval echo '${'$as_ac_var'}'` = yes; then
51087   cat >>confdefs.h <<_ACEOF
51088 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51089 _ACEOF
51090  ice_have_socketpair=yes
51091 fi
51092 done
51093
51094 if test "${ice_have_socketpair}" = yes; then
51095 echo "$as_me:$LINENO: checking for socketpair declaration in sys/types.h sys/socket.h" >&5
51096 echo $ECHO_N "checking for socketpair declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
51097 if test "${ice_cv_have_socketpair_decl+set}" = set; then
51098   echo $ECHO_N "(cached) $ECHO_C" >&6
51099 else
51100
51101 ice_cv_have_socketpair_decl=no
51102 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
51103 ice_re_word='(^|[^a-zA-Z0-9_])'
51104 for header in sys/types.h sys/socket.h; do
51105 # Check for ordinary declaration
51106 cat >conftest.$ac_ext <<_ACEOF
51107 /* confdefs.h.  */
51108 _ACEOF
51109 cat confdefs.h >>conftest.$ac_ext
51110 cat >>conftest.$ac_ext <<_ACEOF
51111 /* end confdefs.h.  */
51112 #include <$header>
51113
51114 _ACEOF
51115 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
51116   $EGREP "${ice_re_word}socketpair[     ]*\(" >/dev/null 2>&1; then
51117   ice_cv_have_socketpair_decl=yes
51118 fi
51119 rm -f conftest*
51120
51121 if test "$ice_cv_have_socketpair_decl" = yes; then
51122         break
51123 fi
51124 # Check for "fixed" declaration like "getpid _PARAMS((int))"
51125 cat >conftest.$ac_ext <<_ACEOF
51126 /* confdefs.h.  */
51127 _ACEOF
51128 cat confdefs.h >>conftest.$ac_ext
51129 cat >>conftest.$ac_ext <<_ACEOF
51130 /* end confdefs.h.  */
51131 #include <$header>
51132
51133 _ACEOF
51134 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
51135   $EGREP "${ice_re_word}socketpair[     ]*$ice_re_params\(\(" >/dev/null 2>&1; then
51136   ice_cv_have_socketpair_decl=yes
51137 fi
51138 rm -f conftest*
51139
51140 if test "$ice_cv_have_socketpair_decl" = yes; then
51141         break
51142 fi
51143 done
51144
51145 fi
51146
51147 echo "$as_me:$LINENO: result: $ice_cv_have_socketpair_decl" >&5
51148 echo "${ECHO_T}$ice_cv_have_socketpair_decl" >&6
51149 if test "$ice_cv_have_socketpair_decl" = yes; then
51150
51151 cat >>confdefs.h <<_ACEOF
51152 #define HAVE_SOCKETPAIR_DECL 1
51153 _ACEOF
51154
51155 fi
51156 fi
51157
51158
51159 ice_have_sscanf=no
51160
51161 for ac_func in sscanf
51162 do
51163 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51164 echo "$as_me:$LINENO: checking for $ac_func" >&5
51165 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51166 if eval "test \"\${$as_ac_var+set}\" = set"; then
51167   echo $ECHO_N "(cached) $ECHO_C" >&6
51168 else
51169   cat >conftest.$ac_ext <<_ACEOF
51170 /* confdefs.h.  */
51171 _ACEOF
51172 cat confdefs.h >>conftest.$ac_ext
51173 cat >>conftest.$ac_ext <<_ACEOF
51174 /* end confdefs.h.  */
51175 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51176    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
51177 #define $ac_func innocuous_$ac_func
51178
51179 /* System header to define __stub macros and hopefully few prototypes,
51180     which can conflict with char $ac_func (); below.
51181     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51182     <limits.h> exists even on freestanding compilers.  */
51183
51184 #ifdef __STDC__
51185 # include <limits.h>
51186 #else
51187 # include <assert.h>
51188 #endif
51189
51190 #undef $ac_func
51191
51192 /* Override any gcc2 internal prototype to avoid an error.  */
51193 #ifdef __cplusplus
51194 extern "C"
51195 {
51196 #endif
51197 /* We use char because int might match the return type of a gcc2
51198    builtin and then its argument prototype would still apply.  */
51199 char $ac_func ();
51200 /* The GNU C library defines this for functions which it implements
51201     to always fail with ENOSYS.  Some functions are actually named
51202     something starting with __ and the normal name is an alias.  */
51203 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51204 choke me
51205 #else
51206 char (*f) () = $ac_func;
51207 #endif
51208 #ifdef __cplusplus
51209 }
51210 #endif
51211
51212 int
51213 main ()
51214 {
51215 return f != $ac_func;
51216   ;
51217   return 0;
51218 }
51219 _ACEOF
51220 rm -f conftest.$ac_objext conftest$ac_exeext
51221 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51222   (eval $ac_link) 2>conftest.er1
51223   ac_status=$?
51224   grep -v '^ *+' conftest.er1 >conftest.err
51225   rm -f conftest.er1
51226   cat conftest.err >&5
51227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51228   (exit $ac_status); } &&
51229          { ac_try='test -z "$ac_c_werror_flag"
51230                          || test ! -s conftest.err'
51231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51232   (eval $ac_try) 2>&5
51233   ac_status=$?
51234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51235   (exit $ac_status); }; } &&
51236          { ac_try='test -s conftest$ac_exeext'
51237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51238   (eval $ac_try) 2>&5
51239   ac_status=$?
51240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51241   (exit $ac_status); }; }; then
51242   eval "$as_ac_var=yes"
51243 else
51244   echo "$as_me: failed program was:" >&5
51245 sed 's/^/| /' conftest.$ac_ext >&5
51246
51247 eval "$as_ac_var=no"
51248 fi
51249 rm -f conftest.err conftest.$ac_objext \
51250       conftest$ac_exeext conftest.$ac_ext
51251 fi
51252 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51253 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51254 if test `eval echo '${'$as_ac_var'}'` = yes; then
51255   cat >>confdefs.h <<_ACEOF
51256 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51257 _ACEOF
51258  ice_have_sscanf=yes
51259 fi
51260 done
51261
51262 if test "${ice_have_sscanf}" = yes; then
51263 echo "$as_me:$LINENO: checking for sscanf declaration in stdio.h" >&5
51264 echo $ECHO_N "checking for sscanf declaration in stdio.h... $ECHO_C" >&6
51265 if test "${ice_cv_have_sscanf_decl+set}" = set; then
51266   echo $ECHO_N "(cached) $ECHO_C" >&6
51267 else
51268
51269 ice_cv_have_sscanf_decl=no
51270 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
51271 ice_re_word='(^|[^a-zA-Z0-9_])'
51272 for header in stdio.h; do
51273 # Check for ordinary declaration
51274 cat >conftest.$ac_ext <<_ACEOF
51275 /* confdefs.h.  */
51276 _ACEOF
51277 cat confdefs.h >>conftest.$ac_ext
51278 cat >>conftest.$ac_ext <<_ACEOF
51279 /* end confdefs.h.  */
51280 #include <$header>
51281
51282 _ACEOF
51283 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
51284   $EGREP "${ice_re_word}sscanf[         ]*\(" >/dev/null 2>&1; then
51285   ice_cv_have_sscanf_decl=yes
51286 fi
51287 rm -f conftest*
51288
51289 if test "$ice_cv_have_sscanf_decl" = yes; then
51290         break
51291 fi
51292 # Check for "fixed" declaration like "getpid _PARAMS((int))"
51293 cat >conftest.$ac_ext <<_ACEOF
51294 /* confdefs.h.  */
51295 _ACEOF
51296 cat confdefs.h >>conftest.$ac_ext
51297 cat >>conftest.$ac_ext <<_ACEOF
51298 /* end confdefs.h.  */
51299 #include <$header>
51300
51301 _ACEOF
51302 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
51303   $EGREP "${ice_re_word}sscanf[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
51304   ice_cv_have_sscanf_decl=yes
51305 fi
51306 rm -f conftest*
51307
51308 if test "$ice_cv_have_sscanf_decl" = yes; then
51309         break
51310 fi
51311 done
51312
51313 fi
51314
51315 echo "$as_me:$LINENO: result: $ice_cv_have_sscanf_decl" >&5
51316 echo "${ECHO_T}$ice_cv_have_sscanf_decl" >&6
51317 if test "$ice_cv_have_sscanf_decl" = yes; then
51318
51319 cat >>confdefs.h <<_ACEOF
51320 #define HAVE_SSCANF_DECL 1
51321 _ACEOF
51322
51323 fi
51324 fi
51325
51326
51327
51328 for ac_func in statfs statvfs
51329 do
51330 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51331 echo "$as_me:$LINENO: checking for $ac_func" >&5
51332 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51333 if eval "test \"\${$as_ac_var+set}\" = set"; then
51334   echo $ECHO_N "(cached) $ECHO_C" >&6
51335 else
51336   cat >conftest.$ac_ext <<_ACEOF
51337 /* confdefs.h.  */
51338 _ACEOF
51339 cat confdefs.h >>conftest.$ac_ext
51340 cat >>conftest.$ac_ext <<_ACEOF
51341 /* end confdefs.h.  */
51342 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51343    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
51344 #define $ac_func innocuous_$ac_func
51345
51346 /* System header to define __stub macros and hopefully few prototypes,
51347     which can conflict with char $ac_func (); below.
51348     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51349     <limits.h> exists even on freestanding compilers.  */
51350
51351 #ifdef __STDC__
51352 # include <limits.h>
51353 #else
51354 # include <assert.h>
51355 #endif
51356
51357 #undef $ac_func
51358
51359 /* Override any gcc2 internal prototype to avoid an error.  */
51360 #ifdef __cplusplus
51361 extern "C"
51362 {
51363 #endif
51364 /* We use char because int might match the return type of a gcc2
51365    builtin and then its argument prototype would still apply.  */
51366 char $ac_func ();
51367 /* The GNU C library defines this for functions which it implements
51368     to always fail with ENOSYS.  Some functions are actually named
51369     something starting with __ and the normal name is an alias.  */
51370 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51371 choke me
51372 #else
51373 char (*f) () = $ac_func;
51374 #endif
51375 #ifdef __cplusplus
51376 }
51377 #endif
51378
51379 int
51380 main ()
51381 {
51382 return f != $ac_func;
51383   ;
51384   return 0;
51385 }
51386 _ACEOF
51387 rm -f conftest.$ac_objext conftest$ac_exeext
51388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51389   (eval $ac_link) 2>conftest.er1
51390   ac_status=$?
51391   grep -v '^ *+' conftest.er1 >conftest.err
51392   rm -f conftest.er1
51393   cat conftest.err >&5
51394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51395   (exit $ac_status); } &&
51396          { ac_try='test -z "$ac_c_werror_flag"
51397                          || test ! -s conftest.err'
51398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51399   (eval $ac_try) 2>&5
51400   ac_status=$?
51401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51402   (exit $ac_status); }; } &&
51403          { ac_try='test -s conftest$ac_exeext'
51404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51405   (eval $ac_try) 2>&5
51406   ac_status=$?
51407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51408   (exit $ac_status); }; }; then
51409   eval "$as_ac_var=yes"
51410 else
51411   echo "$as_me: failed program was:" >&5
51412 sed 's/^/| /' conftest.$ac_ext >&5
51413
51414 eval "$as_ac_var=no"
51415 fi
51416 rm -f conftest.err conftest.$ac_objext \
51417       conftest$ac_exeext conftest.$ac_ext
51418 fi
51419 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51420 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51421 if test `eval echo '${'$as_ac_var'}'` = yes; then
51422   cat >>confdefs.h <<_ACEOF
51423 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51424 _ACEOF
51425
51426 fi
51427 done
51428
51429
51430 for ac_func in strerror
51431 do
51432 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51433 echo "$as_me:$LINENO: checking for $ac_func" >&5
51434 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51435 if eval "test \"\${$as_ac_var+set}\" = set"; then
51436   echo $ECHO_N "(cached) $ECHO_C" >&6
51437 else
51438   cat >conftest.$ac_ext <<_ACEOF
51439 /* confdefs.h.  */
51440 _ACEOF
51441 cat confdefs.h >>conftest.$ac_ext
51442 cat >>conftest.$ac_ext <<_ACEOF
51443 /* end confdefs.h.  */
51444 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51445    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
51446 #define $ac_func innocuous_$ac_func
51447
51448 /* System header to define __stub macros and hopefully few prototypes,
51449     which can conflict with char $ac_func (); below.
51450     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51451     <limits.h> exists even on freestanding compilers.  */
51452
51453 #ifdef __STDC__
51454 # include <limits.h>
51455 #else
51456 # include <assert.h>
51457 #endif
51458
51459 #undef $ac_func
51460
51461 /* Override any gcc2 internal prototype to avoid an error.  */
51462 #ifdef __cplusplus
51463 extern "C"
51464 {
51465 #endif
51466 /* We use char because int might match the return type of a gcc2
51467    builtin and then its argument prototype would still apply.  */
51468 char $ac_func ();
51469 /* The GNU C library defines this for functions which it implements
51470     to always fail with ENOSYS.  Some functions are actually named
51471     something starting with __ and the normal name is an alias.  */
51472 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51473 choke me
51474 #else
51475 char (*f) () = $ac_func;
51476 #endif
51477 #ifdef __cplusplus
51478 }
51479 #endif
51480
51481 int
51482 main ()
51483 {
51484 return f != $ac_func;
51485   ;
51486   return 0;
51487 }
51488 _ACEOF
51489 rm -f conftest.$ac_objext conftest$ac_exeext
51490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51491   (eval $ac_link) 2>conftest.er1
51492   ac_status=$?
51493   grep -v '^ *+' conftest.er1 >conftest.err
51494   rm -f conftest.er1
51495   cat conftest.err >&5
51496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51497   (exit $ac_status); } &&
51498          { ac_try='test -z "$ac_c_werror_flag"
51499                          || test ! -s conftest.err'
51500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51501   (eval $ac_try) 2>&5
51502   ac_status=$?
51503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51504   (exit $ac_status); }; } &&
51505          { ac_try='test -s conftest$ac_exeext'
51506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51507   (eval $ac_try) 2>&5
51508   ac_status=$?
51509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51510   (exit $ac_status); }; }; then
51511   eval "$as_ac_var=yes"
51512 else
51513   echo "$as_me: failed program was:" >&5
51514 sed 's/^/| /' conftest.$ac_ext >&5
51515
51516 eval "$as_ac_var=no"
51517 fi
51518 rm -f conftest.err conftest.$ac_objext \
51519       conftest$ac_exeext conftest.$ac_ext
51520 fi
51521 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51522 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51523 if test `eval echo '${'$as_ac_var'}'` = yes; then
51524   cat >>confdefs.h <<_ACEOF
51525 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51526 _ACEOF
51527
51528 else
51529   case $LIBOBJS in
51530     "$ac_func.$ac_objext"   | \
51531   *" $ac_func.$ac_objext"   | \
51532     "$ac_func.$ac_objext "* | \
51533   *" $ac_func.$ac_objext "* ) ;;
51534   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
51535 esac
51536
51537 fi
51538 done
51539
51540
51541
51542 ice_have_strerror=no
51543
51544 for ac_func in strerror
51545 do
51546 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51547 echo "$as_me:$LINENO: checking for $ac_func" >&5
51548 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51549 if eval "test \"\${$as_ac_var+set}\" = set"; then
51550   echo $ECHO_N "(cached) $ECHO_C" >&6
51551 else
51552   cat >conftest.$ac_ext <<_ACEOF
51553 /* confdefs.h.  */
51554 _ACEOF
51555 cat confdefs.h >>conftest.$ac_ext
51556 cat >>conftest.$ac_ext <<_ACEOF
51557 /* end confdefs.h.  */
51558 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51559    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
51560 #define $ac_func innocuous_$ac_func
51561
51562 /* System header to define __stub macros and hopefully few prototypes,
51563     which can conflict with char $ac_func (); below.
51564     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51565     <limits.h> exists even on freestanding compilers.  */
51566
51567 #ifdef __STDC__
51568 # include <limits.h>
51569 #else
51570 # include <assert.h>
51571 #endif
51572
51573 #undef $ac_func
51574
51575 /* Override any gcc2 internal prototype to avoid an error.  */
51576 #ifdef __cplusplus
51577 extern "C"
51578 {
51579 #endif
51580 /* We use char because int might match the return type of a gcc2
51581    builtin and then its argument prototype would still apply.  */
51582 char $ac_func ();
51583 /* The GNU C library defines this for functions which it implements
51584     to always fail with ENOSYS.  Some functions are actually named
51585     something starting with __ and the normal name is an alias.  */
51586 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51587 choke me
51588 #else
51589 char (*f) () = $ac_func;
51590 #endif
51591 #ifdef __cplusplus
51592 }
51593 #endif
51594
51595 int
51596 main ()
51597 {
51598 return f != $ac_func;
51599   ;
51600   return 0;
51601 }
51602 _ACEOF
51603 rm -f conftest.$ac_objext conftest$ac_exeext
51604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51605   (eval $ac_link) 2>conftest.er1
51606   ac_status=$?
51607   grep -v '^ *+' conftest.er1 >conftest.err
51608   rm -f conftest.er1
51609   cat conftest.err >&5
51610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51611   (exit $ac_status); } &&
51612          { ac_try='test -z "$ac_c_werror_flag"
51613                          || test ! -s conftest.err'
51614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51615   (eval $ac_try) 2>&5
51616   ac_status=$?
51617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51618   (exit $ac_status); }; } &&
51619          { ac_try='test -s conftest$ac_exeext'
51620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51621   (eval $ac_try) 2>&5
51622   ac_status=$?
51623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51624   (exit $ac_status); }; }; then
51625   eval "$as_ac_var=yes"
51626 else
51627   echo "$as_me: failed program was:" >&5
51628 sed 's/^/| /' conftest.$ac_ext >&5
51629
51630 eval "$as_ac_var=no"
51631 fi
51632 rm -f conftest.err conftest.$ac_objext \
51633       conftest$ac_exeext conftest.$ac_ext
51634 fi
51635 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51636 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51637 if test `eval echo '${'$as_ac_var'}'` = yes; then
51638   cat >>confdefs.h <<_ACEOF
51639 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51640 _ACEOF
51641  ice_have_strerror=yes
51642 fi
51643 done
51644
51645 if test "${ice_have_strerror}" = yes; then
51646 echo "$as_me:$LINENO: checking for strerror declaration in string.h strings.h" >&5
51647 echo $ECHO_N "checking for strerror declaration in string.h strings.h... $ECHO_C" >&6
51648 if test "${ice_cv_have_strerror_decl+set}" = set; then
51649   echo $ECHO_N "(cached) $ECHO_C" >&6
51650 else
51651
51652 ice_cv_have_strerror_decl=no
51653 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
51654 ice_re_word='(^|[^a-zA-Z0-9_])'
51655 for header in string.h strings.h; do
51656 # Check for ordinary declaration
51657 cat >conftest.$ac_ext <<_ACEOF
51658 /* confdefs.h.  */
51659 _ACEOF
51660 cat confdefs.h >>conftest.$ac_ext
51661 cat >>conftest.$ac_ext <<_ACEOF
51662 /* end confdefs.h.  */
51663 #include <$header>
51664
51665 _ACEOF
51666 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
51667   $EGREP "${ice_re_word}strerror[       ]*\(" >/dev/null 2>&1; then
51668   ice_cv_have_strerror_decl=yes
51669 fi
51670 rm -f conftest*
51671
51672 if test "$ice_cv_have_strerror_decl" = yes; then
51673         break
51674 fi
51675 # Check for "fixed" declaration like "getpid _PARAMS((int))"
51676 cat >conftest.$ac_ext <<_ACEOF
51677 /* confdefs.h.  */
51678 _ACEOF
51679 cat confdefs.h >>conftest.$ac_ext
51680 cat >>conftest.$ac_ext <<_ACEOF
51681 /* end confdefs.h.  */
51682 #include <$header>
51683
51684 _ACEOF
51685 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
51686   $EGREP "${ice_re_word}strerror[       ]*$ice_re_params\(\(" >/dev/null 2>&1; then
51687   ice_cv_have_strerror_decl=yes
51688 fi
51689 rm -f conftest*
51690
51691 if test "$ice_cv_have_strerror_decl" = yes; then
51692         break
51693 fi
51694 done
51695
51696 fi
51697
51698 echo "$as_me:$LINENO: result: $ice_cv_have_strerror_decl" >&5
51699 echo "${ECHO_T}$ice_cv_have_strerror_decl" >&6
51700 if test "$ice_cv_have_strerror_decl" = yes; then
51701
51702 cat >>confdefs.h <<_ACEOF
51703 #define HAVE_STRERROR_DECL 1
51704 _ACEOF
51705
51706 fi
51707 fi
51708
51709
51710 for ac_func in strftime
51711 do
51712 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51713 echo "$as_me:$LINENO: checking for $ac_func" >&5
51714 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51715 if eval "test \"\${$as_ac_var+set}\" = set"; then
51716   echo $ECHO_N "(cached) $ECHO_C" >&6
51717 else
51718   cat >conftest.$ac_ext <<_ACEOF
51719 /* confdefs.h.  */
51720 _ACEOF
51721 cat confdefs.h >>conftest.$ac_ext
51722 cat >>conftest.$ac_ext <<_ACEOF
51723 /* end confdefs.h.  */
51724 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51725    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
51726 #define $ac_func innocuous_$ac_func
51727
51728 /* System header to define __stub macros and hopefully few prototypes,
51729     which can conflict with char $ac_func (); below.
51730     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51731     <limits.h> exists even on freestanding compilers.  */
51732
51733 #ifdef __STDC__
51734 # include <limits.h>
51735 #else
51736 # include <assert.h>
51737 #endif
51738
51739 #undef $ac_func
51740
51741 /* Override any gcc2 internal prototype to avoid an error.  */
51742 #ifdef __cplusplus
51743 extern "C"
51744 {
51745 #endif
51746 /* We use char because int might match the return type of a gcc2
51747    builtin and then its argument prototype would still apply.  */
51748 char $ac_func ();
51749 /* The GNU C library defines this for functions which it implements
51750     to always fail with ENOSYS.  Some functions are actually named
51751     something starting with __ and the normal name is an alias.  */
51752 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51753 choke me
51754 #else
51755 char (*f) () = $ac_func;
51756 #endif
51757 #ifdef __cplusplus
51758 }
51759 #endif
51760
51761 int
51762 main ()
51763 {
51764 return f != $ac_func;
51765   ;
51766   return 0;
51767 }
51768 _ACEOF
51769 rm -f conftest.$ac_objext conftest$ac_exeext
51770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51771   (eval $ac_link) 2>conftest.er1
51772   ac_status=$?
51773   grep -v '^ *+' conftest.er1 >conftest.err
51774   rm -f conftest.er1
51775   cat conftest.err >&5
51776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51777   (exit $ac_status); } &&
51778          { ac_try='test -z "$ac_c_werror_flag"
51779                          || test ! -s conftest.err'
51780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51781   (eval $ac_try) 2>&5
51782   ac_status=$?
51783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51784   (exit $ac_status); }; } &&
51785          { ac_try='test -s conftest$ac_exeext'
51786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51787   (eval $ac_try) 2>&5
51788   ac_status=$?
51789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51790   (exit $ac_status); }; }; then
51791   eval "$as_ac_var=yes"
51792 else
51793   echo "$as_me: failed program was:" >&5
51794 sed 's/^/| /' conftest.$ac_ext >&5
51795
51796 eval "$as_ac_var=no"
51797 fi
51798 rm -f conftest.err conftest.$ac_objext \
51799       conftest$ac_exeext conftest.$ac_ext
51800 fi
51801 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51802 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51803 if test `eval echo '${'$as_ac_var'}'` = yes; then
51804   cat >>confdefs.h <<_ACEOF
51805 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51806 _ACEOF
51807
51808 else
51809   # strftime is in -lintl on SCO UNIX.
51810 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
51811 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
51812 if test "${ac_cv_lib_intl_strftime+set}" = set; then
51813   echo $ECHO_N "(cached) $ECHO_C" >&6
51814 else
51815   ac_check_lib_save_LIBS=$LIBS
51816 LIBS="-lintl  $LIBS"
51817 cat >conftest.$ac_ext <<_ACEOF
51818 /* confdefs.h.  */
51819 _ACEOF
51820 cat confdefs.h >>conftest.$ac_ext
51821 cat >>conftest.$ac_ext <<_ACEOF
51822 /* end confdefs.h.  */
51823
51824 /* Override any gcc2 internal prototype to avoid an error.  */
51825 #ifdef __cplusplus
51826 extern "C"
51827 #endif
51828 /* We use char because int might match the return type of a gcc2
51829    builtin and then its argument prototype would still apply.  */
51830 char strftime ();
51831 int
51832 main ()
51833 {
51834 strftime ();
51835   ;
51836   return 0;
51837 }
51838 _ACEOF
51839 rm -f conftest.$ac_objext conftest$ac_exeext
51840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51841   (eval $ac_link) 2>conftest.er1
51842   ac_status=$?
51843   grep -v '^ *+' conftest.er1 >conftest.err
51844   rm -f conftest.er1
51845   cat conftest.err >&5
51846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51847   (exit $ac_status); } &&
51848          { ac_try='test -z "$ac_c_werror_flag"
51849                          || test ! -s conftest.err'
51850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51851   (eval $ac_try) 2>&5
51852   ac_status=$?
51853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51854   (exit $ac_status); }; } &&
51855          { ac_try='test -s conftest$ac_exeext'
51856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51857   (eval $ac_try) 2>&5
51858   ac_status=$?
51859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51860   (exit $ac_status); }; }; then
51861   ac_cv_lib_intl_strftime=yes
51862 else
51863   echo "$as_me: failed program was:" >&5
51864 sed 's/^/| /' conftest.$ac_ext >&5
51865
51866 ac_cv_lib_intl_strftime=no
51867 fi
51868 rm -f conftest.err conftest.$ac_objext \
51869       conftest$ac_exeext conftest.$ac_ext
51870 LIBS=$ac_check_lib_save_LIBS
51871 fi
51872 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
51873 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
51874 if test $ac_cv_lib_intl_strftime = yes; then
51875   cat >>confdefs.h <<\_ACEOF
51876 #define HAVE_STRFTIME 1
51877 _ACEOF
51878
51879 LIBS="-lintl $LIBS"
51880 fi
51881
51882 fi
51883 done
51884
51885
51886 for ac_func in strftime
51887 do
51888 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51889 echo "$as_me:$LINENO: checking for $ac_func" >&5
51890 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51891 if eval "test \"\${$as_ac_var+set}\" = set"; then
51892   echo $ECHO_N "(cached) $ECHO_C" >&6
51893 else
51894   cat >conftest.$ac_ext <<_ACEOF
51895 /* confdefs.h.  */
51896 _ACEOF
51897 cat confdefs.h >>conftest.$ac_ext
51898 cat >>conftest.$ac_ext <<_ACEOF
51899 /* end confdefs.h.  */
51900 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51901    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
51902 #define $ac_func innocuous_$ac_func
51903
51904 /* System header to define __stub macros and hopefully few prototypes,
51905     which can conflict with char $ac_func (); below.
51906     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51907     <limits.h> exists even on freestanding compilers.  */
51908
51909 #ifdef __STDC__
51910 # include <limits.h>
51911 #else
51912 # include <assert.h>
51913 #endif
51914
51915 #undef $ac_func
51916
51917 /* Override any gcc2 internal prototype to avoid an error.  */
51918 #ifdef __cplusplus
51919 extern "C"
51920 {
51921 #endif
51922 /* We use char because int might match the return type of a gcc2
51923    builtin and then its argument prototype would still apply.  */
51924 char $ac_func ();
51925 /* The GNU C library defines this for functions which it implements
51926     to always fail with ENOSYS.  Some functions are actually named
51927     something starting with __ and the normal name is an alias.  */
51928 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51929 choke me
51930 #else
51931 char (*f) () = $ac_func;
51932 #endif
51933 #ifdef __cplusplus
51934 }
51935 #endif
51936
51937 int
51938 main ()
51939 {
51940 return f != $ac_func;
51941   ;
51942   return 0;
51943 }
51944 _ACEOF
51945 rm -f conftest.$ac_objext conftest$ac_exeext
51946 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51947   (eval $ac_link) 2>conftest.er1
51948   ac_status=$?
51949   grep -v '^ *+' conftest.er1 >conftest.err
51950   rm -f conftest.er1
51951   cat conftest.err >&5
51952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51953   (exit $ac_status); } &&
51954          { ac_try='test -z "$ac_c_werror_flag"
51955                          || test ! -s conftest.err'
51956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51957   (eval $ac_try) 2>&5
51958   ac_status=$?
51959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51960   (exit $ac_status); }; } &&
51961          { ac_try='test -s conftest$ac_exeext'
51962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51963   (eval $ac_try) 2>&5
51964   ac_status=$?
51965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51966   (exit $ac_status); }; }; then
51967   eval "$as_ac_var=yes"
51968 else
51969   echo "$as_me: failed program was:" >&5
51970 sed 's/^/| /' conftest.$ac_ext >&5
51971
51972 eval "$as_ac_var=no"
51973 fi
51974 rm -f conftest.err conftest.$ac_objext \
51975       conftest$ac_exeext conftest.$ac_ext
51976 fi
51977 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51978 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51979 if test `eval echo '${'$as_ac_var'}'` = yes; then
51980   cat >>confdefs.h <<_ACEOF
51981 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51982 _ACEOF
51983
51984 else
51985   case $LIBOBJS in
51986     "$ac_func.$ac_objext"   | \
51987   *" $ac_func.$ac_objext"   | \
51988     "$ac_func.$ac_objext "* | \
51989   *" $ac_func.$ac_objext "* ) ;;
51990   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
51991 esac
51992
51993 fi
51994 done
51995
51996
51997
51998 ice_have_strftime=no
51999
52000 for ac_func in strftime
52001 do
52002 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
52003 echo "$as_me:$LINENO: checking for $ac_func" >&5
52004 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
52005 if eval "test \"\${$as_ac_var+set}\" = set"; then
52006   echo $ECHO_N "(cached) $ECHO_C" >&6
52007 else
52008   cat >conftest.$ac_ext <<_ACEOF
52009 /* confdefs.h.  */
52010 _ACEOF
52011 cat confdefs.h >>conftest.$ac_ext
52012 cat >>conftest.$ac_ext <<_ACEOF
52013 /* end confdefs.h.  */
52014 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
52015    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
52016 #define $ac_func innocuous_$ac_func
52017
52018 /* System header to define __stub macros and hopefully few prototypes,
52019     which can conflict with char $ac_func (); below.
52020     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
52021     <limits.h> exists even on freestanding compilers.  */
52022
52023 #ifdef __STDC__
52024 # include <limits.h>
52025 #else
52026 # include <assert.h>
52027 #endif
52028
52029 #undef $ac_func
52030
52031 /* Override any gcc2 internal prototype to avoid an error.  */
52032 #ifdef __cplusplus
52033 extern "C"
52034 {
52035 #endif
52036 /* We use char because int might match the return type of a gcc2
52037    builtin and then its argument prototype would still apply.  */
52038 char $ac_func ();
52039 /* The GNU C library defines this for functions which it implements
52040     to always fail with ENOSYS.  Some functions are actually named
52041     something starting with __ and the normal name is an alias.  */
52042 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
52043 choke me
52044 #else
52045 char (*f) () = $ac_func;
52046 #endif
52047 #ifdef __cplusplus
52048 }
52049 #endif
52050
52051 int
52052 main ()
52053 {
52054 return f != $ac_func;
52055   ;
52056   return 0;
52057 }
52058 _ACEOF
52059 rm -f conftest.$ac_objext conftest$ac_exeext
52060 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52061   (eval $ac_link) 2>conftest.er1
52062   ac_status=$?
52063   grep -v '^ *+' conftest.er1 >conftest.err
52064   rm -f conftest.er1
52065   cat conftest.err >&5
52066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52067   (exit $ac_status); } &&
52068          { ac_try='test -z "$ac_c_werror_flag"
52069                          || test ! -s conftest.err'
52070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52071   (eval $ac_try) 2>&5
52072   ac_status=$?
52073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52074   (exit $ac_status); }; } &&
52075          { ac_try='test -s conftest$ac_exeext'
52076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52077   (eval $ac_try) 2>&5
52078   ac_status=$?
52079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52080   (exit $ac_status); }; }; then
52081   eval "$as_ac_var=yes"
52082 else
52083   echo "$as_me: failed program was:" >&5
52084 sed 's/^/| /' conftest.$ac_ext >&5
52085
52086 eval "$as_ac_var=no"
52087 fi
52088 rm -f conftest.err conftest.$ac_objext \
52089       conftest$ac_exeext conftest.$ac_ext
52090 fi
52091 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
52092 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
52093 if test `eval echo '${'$as_ac_var'}'` = yes; then
52094   cat >>confdefs.h <<_ACEOF
52095 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
52096 _ACEOF
52097  ice_have_strftime=yes
52098 fi
52099 done
52100
52101 if test "${ice_have_strftime}" = yes; then
52102 echo "$as_me:$LINENO: checking for strftime declaration in time.h sys/time.h" >&5
52103 echo $ECHO_N "checking for strftime declaration in time.h sys/time.h... $ECHO_C" >&6
52104 if test "${ice_cv_have_strftime_decl+set}" = set; then
52105   echo $ECHO_N "(cached) $ECHO_C" >&6
52106 else
52107
52108 ice_cv_have_strftime_decl=no
52109 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
52110 ice_re_word='(^|[^a-zA-Z0-9_])'
52111 for header in time.h sys/time.h; do
52112 # Check for ordinary declaration
52113 cat >conftest.$ac_ext <<_ACEOF
52114 /* confdefs.h.  */
52115 _ACEOF
52116 cat confdefs.h >>conftest.$ac_ext
52117 cat >>conftest.$ac_ext <<_ACEOF
52118 /* end confdefs.h.  */
52119 #include <$header>
52120
52121 _ACEOF
52122 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
52123   $EGREP "${ice_re_word}strftime[       ]*\(" >/dev/null 2>&1; then
52124   ice_cv_have_strftime_decl=yes
52125 fi
52126 rm -f conftest*
52127
52128 if test "$ice_cv_have_strftime_decl" = yes; then
52129         break
52130 fi
52131 # Check for "fixed" declaration like "getpid _PARAMS((int))"
52132 cat >conftest.$ac_ext <<_ACEOF
52133 /* confdefs.h.  */
52134 _ACEOF
52135 cat confdefs.h >>conftest.$ac_ext
52136 cat >>conftest.$ac_ext <<_ACEOF
52137 /* end confdefs.h.  */
52138 #include <$header>
52139
52140 _ACEOF
52141 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
52142   $EGREP "${ice_re_word}strftime[       ]*$ice_re_params\(\(" >/dev/null 2>&1; then
52143   ice_cv_have_strftime_decl=yes
52144 fi
52145 rm -f conftest*
52146
52147 if test "$ice_cv_have_strftime_decl" = yes; then
52148         break
52149 fi
52150 done
52151
52152 fi
52153
52154 echo "$as_me:$LINENO: result: $ice_cv_have_strftime_decl" >&5
52155 echo "${ECHO_T}$ice_cv_have_strftime_decl" >&6
52156 if test "$ice_cv_have_strftime_decl" = yes; then
52157
52158 cat >>confdefs.h <<_ACEOF
52159 #define HAVE_STRFTIME_DECL 1
52160 _ACEOF
52161
52162 fi
52163 fi
52164
52165
52166 for ac_func in strncasecmp
52167 do
52168 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
52169 echo "$as_me:$LINENO: checking for $ac_func" >&5
52170 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
52171 if eval "test \"\${$as_ac_var+set}\" = set"; then
52172   echo $ECHO_N "(cached) $ECHO_C" >&6
52173 else
52174   cat >conftest.$ac_ext <<_ACEOF
52175 /* confdefs.h.  */
52176 _ACEOF
52177 cat confdefs.h >>conftest.$ac_ext
52178 cat >>conftest.$ac_ext <<_ACEOF
52179 /* end confdefs.h.  */
52180 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
52181    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
52182 #define $ac_func innocuous_$ac_func
52183
52184 /* System header to define __stub macros and hopefully few prototypes,
52185     which can conflict with char $ac_func (); below.
52186     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
52187     <limits.h> exists even on freestanding compilers.  */
52188
52189 #ifdef __STDC__
52190 # include <limits.h>
52191 #else
52192 # include <assert.h>
52193 #endif
52194
52195 #undef $ac_func
52196
52197 /* Override any gcc2 internal prototype to avoid an error.  */
52198 #ifdef __cplusplus
52199 extern "C"
52200 {
52201 #endif
52202 /* We use char because int might match the return type of a gcc2
52203    builtin and then its argument prototype would still apply.  */
52204 char $ac_func ();
52205 /* The GNU C library defines this for functions which it implements
52206     to always fail with ENOSYS.  Some functions are actually named
52207     something starting with __ and the normal name is an alias.  */
52208 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
52209 choke me
52210 #else
52211 char (*f) () = $ac_func;
52212 #endif
52213 #ifdef __cplusplus
52214 }
52215 #endif
52216
52217 int
52218 main ()
52219 {
52220 return f != $ac_func;
52221   ;
52222   return 0;
52223 }
52224 _ACEOF
52225 rm -f conftest.$ac_objext conftest$ac_exeext
52226 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52227   (eval $ac_link) 2>conftest.er1
52228   ac_status=$?
52229   grep -v '^ *+' conftest.er1 >conftest.err
52230   rm -f conftest.er1
52231   cat conftest.err >&5
52232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52233   (exit $ac_status); } &&
52234          { ac_try='test -z "$ac_c_werror_flag"
52235                          || test ! -s conftest.err'
52236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52237   (eval $ac_try) 2>&5
52238   ac_status=$?
52239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52240   (exit $ac_status); }; } &&
52241          { ac_try='test -s conftest$ac_exeext'
52242   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52243   (eval $ac_try) 2>&5
52244   ac_status=$?
52245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52246   (exit $ac_status); }; }; then
52247   eval "$as_ac_var=yes"
52248 else
52249   echo "$as_me: failed program was:" >&5
52250 sed 's/^/| /' conftest.$ac_ext >&5
52251
52252 eval "$as_ac_var=no"
52253 fi
52254 rm -f conftest.err conftest.$ac_objext \
52255       conftest$ac_exeext conftest.$ac_ext
52256 fi
52257 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
52258 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
52259 if test `eval echo '${'$as_ac_var'}'` = yes; then
52260   cat >>confdefs.h <<_ACEOF
52261 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
52262 _ACEOF
52263
52264 else
52265   case $LIBOBJS in
52266     "$ac_func.$ac_objext"   | \
52267   *" $ac_func.$ac_objext"   | \
52268     "$ac_func.$ac_objext "* | \
52269   *" $ac_func.$ac_objext "* ) ;;
52270   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
52271 esac
52272
52273 fi
52274 done
52275
52276
52277
52278 ice_have_strncasecmp=no
52279
52280 for ac_func in strncasecmp
52281 do
52282 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
52283 echo "$as_me:$LINENO: checking for $ac_func" >&5
52284 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
52285 if eval "test \"\${$as_ac_var+set}\" = set"; then
52286   echo $ECHO_N "(cached) $ECHO_C" >&6
52287 else
52288   cat >conftest.$ac_ext <<_ACEOF
52289 /* confdefs.h.  */
52290 _ACEOF
52291 cat confdefs.h >>conftest.$ac_ext
52292 cat >>conftest.$ac_ext <<_ACEOF
52293 /* end confdefs.h.  */
52294 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
52295    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
52296 #define $ac_func innocuous_$ac_func
52297
52298 /* System header to define __stub macros and hopefully few prototypes,
52299     which can conflict with char $ac_func (); below.
52300     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
52301     <limits.h> exists even on freestanding compilers.  */
52302
52303 #ifdef __STDC__
52304 # include <limits.h>
52305 #else
52306 # include <assert.h>
52307 #endif
52308
52309 #undef $ac_func
52310
52311 /* Override any gcc2 internal prototype to avoid an error.  */
52312 #ifdef __cplusplus
52313 extern "C"
52314 {
52315 #endif
52316 /* We use char because int might match the return type of a gcc2
52317    builtin and then its argument prototype would still apply.  */
52318 char $ac_func ();
52319 /* The GNU C library defines this for functions which it implements
52320     to always fail with ENOSYS.  Some functions are actually named
52321     something starting with __ and the normal name is an alias.  */
52322 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
52323 choke me
52324 #else
52325 char (*f) () = $ac_func;
52326 #endif
52327 #ifdef __cplusplus
52328 }
52329 #endif
52330
52331 int
52332 main ()
52333 {
52334 return f != $ac_func;
52335   ;
52336   return 0;
52337 }
52338 _ACEOF
52339 rm -f conftest.$ac_objext conftest$ac_exeext
52340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52341   (eval $ac_link) 2>conftest.er1
52342   ac_status=$?
52343   grep -v '^ *+' conftest.er1 >conftest.err
52344   rm -f conftest.er1
52345   cat conftest.err >&5
52346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52347   (exit $ac_status); } &&
52348          { ac_try='test -z "$ac_c_werror_flag"
52349                          || test ! -s conftest.err'
52350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52351   (eval $ac_try) 2>&5
52352   ac_status=$?
52353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52354   (exit $ac_status); }; } &&
52355          { ac_try='test -s conftest$ac_exeext'
52356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52357   (eval $ac_try) 2>&5
52358   ac_status=$?
52359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52360   (exit $ac_status); }; }; then
52361   eval "$as_ac_var=yes"
52362 else
52363   echo "$as_me: failed program was:" >&5
52364 sed 's/^/| /' conftest.$ac_ext >&5
52365
52366 eval "$as_ac_var=no"
52367 fi
52368 rm -f conftest.err conftest.$ac_objext \
52369       conftest$ac_exeext conftest.$ac_ext
52370 fi
52371 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
52372 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
52373 if test `eval echo '${'$as_ac_var'}'` = yes; then
52374   cat >>confdefs.h <<_ACEOF
52375 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
52376 _ACEOF
52377  ice_have_strncasecmp=yes
52378 fi
52379 done
52380
52381 if test "${ice_have_strncasecmp}" = yes; then
52382 echo "$as_me:$LINENO: checking for strncasecmp declaration in string.h strings.h" >&5
52383 echo $ECHO_N "checking for strncasecmp declaration in string.h strings.h... $ECHO_C" >&6
52384 if test "${ice_cv_have_strncasecmp_decl+set}" = set; then
52385   echo $ECHO_N "(cached) $ECHO_C" >&6
52386 else
52387
52388 ice_cv_have_strncasecmp_decl=no
52389 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
52390 ice_re_word='(^|[^a-zA-Z0-9_])'
52391 for header in string.h strings.h; do
52392 # Check for ordinary declaration
52393 cat >conftest.$ac_ext <<_ACEOF
52394 /* confdefs.h.  */
52395 _ACEOF
52396 cat confdefs.h >>conftest.$ac_ext
52397 cat >>conftest.$ac_ext <<_ACEOF
52398 /* end confdefs.h.  */
52399 #include <$header>
52400
52401 _ACEOF
52402 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
52403   $EGREP "${ice_re_word}strncasecmp[    ]*\(" >/dev/null 2>&1; then
52404   ice_cv_have_strncasecmp_decl=yes
52405 fi
52406 rm -f conftest*
52407
52408 if test "$ice_cv_have_strncasecmp_decl" = yes; then
52409         break
52410 fi
52411 # Check for "fixed" declaration like "getpid _PARAMS((int))"
52412 cat >conftest.$ac_ext <<_ACEOF
52413 /* confdefs.h.  */
52414 _ACEOF
52415 cat confdefs.h >>conftest.$ac_ext
52416 cat >>conftest.$ac_ext <<_ACEOF
52417 /* end confdefs.h.  */
52418 #include <$header>
52419
52420 _ACEOF
52421 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
52422   $EGREP "${ice_re_word}strncasecmp[    ]*$ice_re_params\(\(" >/dev/null 2>&1; then
52423   ice_cv_have_strncasecmp_decl=yes
52424 fi
52425 rm -f conftest*
52426
52427 if test "$ice_cv_have_strncasecmp_decl" = yes; then
52428         break
52429 fi
52430 done
52431
52432 fi
52433
52434 echo "$as_me:$LINENO: result: $ice_cv_have_strncasecmp_decl" >&5
52435 echo "${ECHO_T}$ice_cv_have_strncasecmp_decl" >&6
52436 if test "$ice_cv_have_strncasecmp_decl" = yes; then
52437
52438 cat >>confdefs.h <<_ACEOF
52439 #define HAVE_STRNCASECMP_DECL 1
52440 _ACEOF
52441
52442 fi
52443 fi
52444
52445
52446 for ac_func in strstr
52447 do
52448 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
52449 echo "$as_me:$LINENO: checking for $ac_func" >&5
52450 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
52451 if eval "test \"\${$as_ac_var+set}\" = set"; then
52452   echo $ECHO_N "(cached) $ECHO_C" >&6
52453 else
52454   cat >conftest.$ac_ext <<_ACEOF
52455 /* confdefs.h.  */
52456 _ACEOF
52457 cat confdefs.h >>conftest.$ac_ext
52458 cat >>conftest.$ac_ext <<_ACEOF
52459 /* end confdefs.h.  */
52460 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
52461    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
52462 #define $ac_func innocuous_$ac_func
52463
52464 /* System header to define __stub macros and hopefully few prototypes,
52465     which can conflict with char $ac_func (); below.
52466     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
52467     <limits.h> exists even on freestanding compilers.  */
52468
52469 #ifdef __STDC__
52470 # include <limits.h>
52471 #else
52472 # include <assert.h>
52473 #endif
52474
52475 #undef $ac_func
52476
52477 /* Override any gcc2 internal prototype to avoid an error.  */
52478 #ifdef __cplusplus
52479 extern "C"
52480 {
52481 #endif
52482 /* We use char because int might match the return type of a gcc2
52483    builtin and then its argument prototype would still apply.  */
52484 char $ac_func ();
52485 /* The GNU C library defines this for functions which it implements
52486     to always fail with ENOSYS.  Some functions are actually named
52487     something starting with __ and the normal name is an alias.  */
52488 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
52489 choke me
52490 #else
52491 char (*f) () = $ac_func;
52492 #endif
52493 #ifdef __cplusplus
52494 }
52495 #endif
52496
52497 int
52498 main ()
52499 {
52500 return f != $ac_func;
52501   ;
52502   return 0;
52503 }
52504 _ACEOF
52505 rm -f conftest.$ac_objext conftest$ac_exeext
52506 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52507   (eval $ac_link) 2>conftest.er1
52508   ac_status=$?
52509   grep -v '^ *+' conftest.er1 >conftest.err
52510   rm -f conftest.er1
52511   cat conftest.err >&5
52512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52513   (exit $ac_status); } &&
52514          { ac_try='test -z "$ac_c_werror_flag"
52515                          || test ! -s conftest.err'
52516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52517   (eval $ac_try) 2>&5
52518   ac_status=$?
52519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52520   (exit $ac_status); }; } &&
52521          { ac_try='test -s conftest$ac_exeext'
52522   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52523   (eval $ac_try) 2>&5
52524   ac_status=$?
52525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52526   (exit $ac_status); }; }; then
52527   eval "$as_ac_var=yes"
52528 else
52529   echo "$as_me: failed program was:" >&5
52530 sed 's/^/| /' conftest.$ac_ext >&5
52531
52532 eval "$as_ac_var=no"
52533 fi
52534 rm -f conftest.err conftest.$ac_objext \
52535       conftest$ac_exeext conftest.$ac_ext
52536 fi
52537 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
52538 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
52539 if test `eval echo '${'$as_ac_var'}'` = yes; then
52540   cat >>confdefs.h <<_ACEOF
52541 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
52542 _ACEOF
52543
52544 else
52545   case $LIBOBJS in
52546     "$ac_func.$ac_objext"   | \
52547   *" $ac_func.$ac_objext"   | \
52548     "$ac_func.$ac_objext "* | \
52549   *" $ac_func.$ac_objext "* ) ;;
52550   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
52551 esac
52552
52553 fi
52554 done
52555
52556
52557
52558 ice_have_syslog=no
52559
52560 for ac_func in syslog
52561 do
52562 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
52563 echo "$as_me:$LINENO: checking for $ac_func" >&5
52564 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
52565 if eval "test \"\${$as_ac_var+set}\" = set"; then
52566   echo $ECHO_N "(cached) $ECHO_C" >&6
52567 else
52568   cat >conftest.$ac_ext <<_ACEOF
52569 /* confdefs.h.  */
52570 _ACEOF
52571 cat confdefs.h >>conftest.$ac_ext
52572 cat >>conftest.$ac_ext <<_ACEOF
52573 /* end confdefs.h.  */
52574 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
52575    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
52576 #define $ac_func innocuous_$ac_func
52577
52578 /* System header to define __stub macros and hopefully few prototypes,
52579     which can conflict with char $ac_func (); below.
52580     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
52581     <limits.h> exists even on freestanding compilers.  */
52582
52583 #ifdef __STDC__
52584 # include <limits.h>
52585 #else
52586 # include <assert.h>
52587 #endif
52588
52589 #undef $ac_func
52590
52591 /* Override any gcc2 internal prototype to avoid an error.  */
52592 #ifdef __cplusplus
52593 extern "C"
52594 {
52595 #endif
52596 /* We use char because int might match the return type of a gcc2
52597    builtin and then its argument prototype would still apply.  */
52598 char $ac_func ();
52599 /* The GNU C library defines this for functions which it implements
52600     to always fail with ENOSYS.  Some functions are actually named
52601     something starting with __ and the normal name is an alias.  */
52602 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
52603 choke me
52604 #else
52605 char (*f) () = $ac_func;
52606 #endif
52607 #ifdef __cplusplus
52608 }
52609 #endif
52610
52611 int
52612 main ()
52613 {
52614 return f != $ac_func;
52615   ;
52616   return 0;
52617 }
52618 _ACEOF
52619 rm -f conftest.$ac_objext conftest$ac_exeext
52620 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52621   (eval $ac_link) 2>conftest.er1
52622   ac_status=$?
52623   grep -v '^ *+' conftest.er1 >conftest.err
52624   rm -f conftest.er1
52625   cat conftest.err >&5
52626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52627   (exit $ac_status); } &&
52628          { ac_try='test -z "$ac_c_werror_flag"
52629                          || test ! -s conftest.err'
52630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52631   (eval $ac_try) 2>&5
52632   ac_status=$?
52633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52634   (exit $ac_status); }; } &&
52635          { ac_try='test -s conftest$ac_exeext'
52636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52637   (eval $ac_try) 2>&5
52638   ac_status=$?
52639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52640   (exit $ac_status); }; }; then
52641   eval "$as_ac_var=yes"
52642 else
52643   echo "$as_me: failed program was:" >&5
52644 sed 's/^/| /' conftest.$ac_ext >&5
52645
52646 eval "$as_ac_var=no"
52647 fi
52648 rm -f conftest.err conftest.$ac_objext \
52649       conftest$ac_exeext conftest.$ac_ext
52650 fi
52651 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
52652 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
52653 if test `eval echo '${'$as_ac_var'}'` = yes; then
52654   cat >>confdefs.h <<_ACEOF
52655 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
52656 _ACEOF
52657  ice_have_syslog=yes
52658 fi
52659 done
52660
52661 if test "${ice_have_syslog}" = yes; then
52662 echo "$as_me:$LINENO: checking for syslog declaration in syslog.h" >&5
52663 echo $ECHO_N "checking for syslog declaration in syslog.h... $ECHO_C" >&6
52664 if test "${ice_cv_have_syslog_decl+set}" = set; then
52665   echo $ECHO_N "(cached) $ECHO_C" >&6
52666 else
52667
52668 ice_cv_have_syslog_decl=no
52669 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
52670 ice_re_word='(^|[^a-zA-Z0-9_])'
52671 for header in syslog.h; do
52672 # Check for ordinary declaration
52673 cat >conftest.$ac_ext <<_ACEOF
52674 /* confdefs.h.  */
52675 _ACEOF
52676 cat confdefs.h >>conftest.$ac_ext
52677 cat >>conftest.$ac_ext <<_ACEOF
52678 /* end confdefs.h.  */
52679 #include <$header>
52680
52681 _ACEOF
52682 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
52683   $EGREP "${ice_re_word}syslog[         ]*\(" >/dev/null 2>&1; then
52684   ice_cv_have_syslog_decl=yes
52685 fi
52686 rm -f conftest*
52687
52688 if test "$ice_cv_have_syslog_decl" = yes; then
52689         break
52690 fi
52691 # Check for "fixed" declaration like "getpid _PARAMS((int))"
52692 cat >conftest.$ac_ext <<_ACEOF
52693 /* confdefs.h.  */
52694 _ACEOF
52695 cat confdefs.h >>conftest.$ac_ext
52696 cat >>conftest.$ac_ext <<_ACEOF
52697 /* end confdefs.h.  */
52698 #include <$header>
52699
52700 _ACEOF
52701 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
52702   $EGREP "${ice_re_word}syslog[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
52703   ice_cv_have_syslog_decl=yes
52704 fi
52705 rm -f conftest*
52706
52707 if test "$ice_cv_have_syslog_decl" = yes; then
52708         break
52709 fi
52710 done
52711
52712 fi
52713
52714 echo "$as_me:$LINENO: result: $ice_cv_have_syslog_decl" >&5
52715 echo "${ECHO_T}$ice_cv_have_syslog_decl" >&6
52716 if test "$ice_cv_have_syslog_decl" = yes; then
52717
52718 cat >>confdefs.h <<_ACEOF
52719 #define HAVE_SYSLOG_DECL 1
52720 _ACEOF
52721
52722 fi
52723 fi
52724
52725
52726 ice_have_system=no
52727
52728 for ac_func in system
52729 do
52730 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
52731 echo "$as_me:$LINENO: checking for $ac_func" >&5
52732 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
52733 if eval "test \"\${$as_ac_var+set}\" = set"; then
52734   echo $ECHO_N "(cached) $ECHO_C" >&6
52735 else
52736   cat >conftest.$ac_ext <<_ACEOF
52737 /* confdefs.h.  */
52738 _ACEOF
52739 cat confdefs.h >>conftest.$ac_ext
52740 cat >>conftest.$ac_ext <<_ACEOF
52741 /* end confdefs.h.  */
52742 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
52743    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
52744 #define $ac_func innocuous_$ac_func
52745
52746 /* System header to define __stub macros and hopefully few prototypes,
52747     which can conflict with char $ac_func (); below.
52748     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
52749     <limits.h> exists even on freestanding compilers.  */
52750
52751 #ifdef __STDC__
52752 # include <limits.h>
52753 #else
52754 # include <assert.h>
52755 #endif
52756
52757 #undef $ac_func
52758
52759 /* Override any gcc2 internal prototype to avoid an error.  */
52760 #ifdef __cplusplus
52761 extern "C"
52762 {
52763 #endif
52764 /* We use char because int might match the return type of a gcc2
52765    builtin and then its argument prototype would still apply.  */
52766 char $ac_func ();
52767 /* The GNU C library defines this for functions which it implements
52768     to always fail with ENOSYS.  Some functions are actually named
52769     something starting with __ and the normal name is an alias.  */
52770 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
52771 choke me
52772 #else
52773 char (*f) () = $ac_func;
52774 #endif
52775 #ifdef __cplusplus
52776 }
52777 #endif
52778
52779 int
52780 main ()
52781 {
52782 return f != $ac_func;
52783   ;
52784   return 0;
52785 }
52786 _ACEOF
52787 rm -f conftest.$ac_objext conftest$ac_exeext
52788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52789   (eval $ac_link) 2>conftest.er1
52790   ac_status=$?
52791   grep -v '^ *+' conftest.er1 >conftest.err
52792   rm -f conftest.er1
52793   cat conftest.err >&5
52794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52795   (exit $ac_status); } &&
52796          { ac_try='test -z "$ac_c_werror_flag"
52797                          || test ! -s conftest.err'
52798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52799   (eval $ac_try) 2>&5
52800   ac_status=$?
52801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52802   (exit $ac_status); }; } &&
52803          { ac_try='test -s conftest$ac_exeext'
52804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52805   (eval $ac_try) 2>&5
52806   ac_status=$?
52807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52808   (exit $ac_status); }; }; then
52809   eval "$as_ac_var=yes"
52810 else
52811   echo "$as_me: failed program was:" >&5
52812 sed 's/^/| /' conftest.$ac_ext >&5
52813
52814 eval "$as_ac_var=no"
52815 fi
52816 rm -f conftest.err conftest.$ac_objext \
52817       conftest$ac_exeext conftest.$ac_ext
52818 fi
52819 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
52820 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
52821 if test `eval echo '${'$as_ac_var'}'` = yes; then
52822   cat >>confdefs.h <<_ACEOF
52823 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
52824 _ACEOF
52825  ice_have_system=yes
52826 fi
52827 done
52828
52829 if test "${ice_have_system}" = yes; then
52830 echo "$as_me:$LINENO: checking for system declaration in stdlib.h" >&5
52831 echo $ECHO_N "checking for system declaration in stdlib.h... $ECHO_C" >&6
52832 if test "${ice_cv_have_system_decl+set}" = set; then
52833   echo $ECHO_N "(cached) $ECHO_C" >&6
52834 else
52835
52836 ice_cv_have_system_decl=no
52837 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
52838 ice_re_word='(^|[^a-zA-Z0-9_])'
52839 for header in stdlib.h; do
52840 # Check for ordinary declaration
52841 cat >conftest.$ac_ext <<_ACEOF
52842 /* confdefs.h.  */
52843 _ACEOF
52844 cat confdefs.h >>conftest.$ac_ext
52845 cat >>conftest.$ac_ext <<_ACEOF
52846 /* end confdefs.h.  */
52847 #include <$header>
52848
52849 _ACEOF
52850 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
52851   $EGREP "${ice_re_word}system[         ]*\(" >/dev/null 2>&1; then
52852   ice_cv_have_system_decl=yes
52853 fi
52854 rm -f conftest*
52855
52856 if test "$ice_cv_have_system_decl" = yes; then
52857         break
52858 fi
52859 # Check for "fixed" declaration like "getpid _PARAMS((int))"
52860 cat >conftest.$ac_ext <<_ACEOF
52861 /* confdefs.h.  */
52862 _ACEOF
52863 cat confdefs.h >>conftest.$ac_ext
52864 cat >>conftest.$ac_ext <<_ACEOF
52865 /* end confdefs.h.  */
52866 #include <$header>
52867
52868 _ACEOF
52869 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
52870   $EGREP "${ice_re_word}system[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
52871   ice_cv_have_system_decl=yes
52872 fi
52873 rm -f conftest*
52874
52875 if test "$ice_cv_have_system_decl" = yes; then
52876         break
52877 fi
52878 done
52879
52880 fi
52881
52882 echo "$as_me:$LINENO: result: $ice_cv_have_system_decl" >&5
52883 echo "${ECHO_T}$ice_cv_have_system_decl" >&6
52884 if test "$ice_cv_have_system_decl" = yes; then
52885
52886 cat >>confdefs.h <<_ACEOF
52887 #define HAVE_SYSTEM_DECL 1
52888 _ACEOF
52889
52890 fi
52891 fi
52892
52893
52894 ice_have_time=no
52895
52896 for ac_func in time
52897 do
52898 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
52899 echo "$as_me:$LINENO: checking for $ac_func" >&5
52900 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
52901 if eval "test \"\${$as_ac_var+set}\" = set"; then
52902   echo $ECHO_N "(cached) $ECHO_C" >&6
52903 else
52904   cat >conftest.$ac_ext <<_ACEOF
52905 /* confdefs.h.  */
52906 _ACEOF
52907 cat confdefs.h >>conftest.$ac_ext
52908 cat >>conftest.$ac_ext <<_ACEOF
52909 /* end confdefs.h.  */
52910 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
52911    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
52912 #define $ac_func innocuous_$ac_func
52913
52914 /* System header to define __stub macros and hopefully few prototypes,
52915     which can conflict with char $ac_func (); below.
52916     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
52917     <limits.h> exists even on freestanding compilers.  */
52918
52919 #ifdef __STDC__
52920 # include <limits.h>
52921 #else
52922 # include <assert.h>
52923 #endif
52924
52925 #undef $ac_func
52926
52927 /* Override any gcc2 internal prototype to avoid an error.  */
52928 #ifdef __cplusplus
52929 extern "C"
52930 {
52931 #endif
52932 /* We use char because int might match the return type of a gcc2
52933    builtin and then its argument prototype would still apply.  */
52934 char $ac_func ();
52935 /* The GNU C library defines this for functions which it implements
52936     to always fail with ENOSYS.  Some functions are actually named
52937     something starting with __ and the normal name is an alias.  */
52938 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
52939 choke me
52940 #else
52941 char (*f) () = $ac_func;
52942 #endif
52943 #ifdef __cplusplus
52944 }
52945 #endif
52946
52947 int
52948 main ()
52949 {
52950 return f != $ac_func;
52951   ;
52952   return 0;
52953 }
52954 _ACEOF
52955 rm -f conftest.$ac_objext conftest$ac_exeext
52956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52957   (eval $ac_link) 2>conftest.er1
52958   ac_status=$?
52959   grep -v '^ *+' conftest.er1 >conftest.err
52960   rm -f conftest.er1
52961   cat conftest.err >&5
52962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52963   (exit $ac_status); } &&
52964          { ac_try='test -z "$ac_c_werror_flag"
52965                          || test ! -s conftest.err'
52966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52967   (eval $ac_try) 2>&5
52968   ac_status=$?
52969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52970   (exit $ac_status); }; } &&
52971          { ac_try='test -s conftest$ac_exeext'
52972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52973   (eval $ac_try) 2>&5
52974   ac_status=$?
52975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52976   (exit $ac_status); }; }; then
52977   eval "$as_ac_var=yes"
52978 else
52979   echo "$as_me: failed program was:" >&5
52980 sed 's/^/| /' conftest.$ac_ext >&5
52981
52982 eval "$as_ac_var=no"
52983 fi
52984 rm -f conftest.err conftest.$ac_objext \
52985       conftest$ac_exeext conftest.$ac_ext
52986 fi
52987 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
52988 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
52989 if test `eval echo '${'$as_ac_var'}'` = yes; then
52990   cat >>confdefs.h <<_ACEOF
52991 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
52992 _ACEOF
52993  ice_have_time=yes
52994 fi
52995 done
52996
52997 if test "${ice_have_time}" = yes; then
52998 echo "$as_me:$LINENO: checking for time declaration in time.h sys/time.h" >&5
52999 echo $ECHO_N "checking for time declaration in time.h sys/time.h... $ECHO_C" >&6
53000 if test "${ice_cv_have_time_decl+set}" = set; then
53001   echo $ECHO_N "(cached) $ECHO_C" >&6
53002 else
53003
53004 ice_cv_have_time_decl=no
53005 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
53006 ice_re_word='(^|[^a-zA-Z0-9_])'
53007 for header in time.h sys/time.h; do
53008 # Check for ordinary declaration
53009 cat >conftest.$ac_ext <<_ACEOF
53010 /* confdefs.h.  */
53011 _ACEOF
53012 cat confdefs.h >>conftest.$ac_ext
53013 cat >>conftest.$ac_ext <<_ACEOF
53014 /* end confdefs.h.  */
53015 #include <$header>
53016
53017 _ACEOF
53018 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
53019   $EGREP "${ice_re_word}time[   ]*\(" >/dev/null 2>&1; then
53020   ice_cv_have_time_decl=yes
53021 fi
53022 rm -f conftest*
53023
53024 if test "$ice_cv_have_time_decl" = yes; then
53025         break
53026 fi
53027 # Check for "fixed" declaration like "getpid _PARAMS((int))"
53028 cat >conftest.$ac_ext <<_ACEOF
53029 /* confdefs.h.  */
53030 _ACEOF
53031 cat confdefs.h >>conftest.$ac_ext
53032 cat >>conftest.$ac_ext <<_ACEOF
53033 /* end confdefs.h.  */
53034 #include <$header>
53035
53036 _ACEOF
53037 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
53038   $EGREP "${ice_re_word}time[   ]*$ice_re_params\(\(" >/dev/null 2>&1; then
53039   ice_cv_have_time_decl=yes
53040 fi
53041 rm -f conftest*
53042
53043 if test "$ice_cv_have_time_decl" = yes; then
53044         break
53045 fi
53046 done
53047
53048 fi
53049
53050 echo "$as_me:$LINENO: result: $ice_cv_have_time_decl" >&5
53051 echo "${ECHO_T}$ice_cv_have_time_decl" >&6
53052 if test "$ice_cv_have_time_decl" = yes; then
53053
53054 cat >>confdefs.h <<_ACEOF
53055 #define HAVE_TIME_DECL 1
53056 _ACEOF
53057
53058 fi
53059 fi
53060
53061
53062 ice_have_tolower=no
53063
53064 for ac_func in tolower
53065 do
53066 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
53067 echo "$as_me:$LINENO: checking for $ac_func" >&5
53068 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
53069 if eval "test \"\${$as_ac_var+set}\" = set"; then
53070   echo $ECHO_N "(cached) $ECHO_C" >&6
53071 else
53072   cat >conftest.$ac_ext <<_ACEOF
53073 /* confdefs.h.  */
53074 _ACEOF
53075 cat confdefs.h >>conftest.$ac_ext
53076 cat >>conftest.$ac_ext <<_ACEOF
53077 /* end confdefs.h.  */
53078 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
53079    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
53080 #define $ac_func innocuous_$ac_func
53081
53082 /* System header to define __stub macros and hopefully few prototypes,
53083     which can conflict with char $ac_func (); below.
53084     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
53085     <limits.h> exists even on freestanding compilers.  */
53086
53087 #ifdef __STDC__
53088 # include <limits.h>
53089 #else
53090 # include <assert.h>
53091 #endif
53092
53093 #undef $ac_func
53094
53095 /* Override any gcc2 internal prototype to avoid an error.  */
53096 #ifdef __cplusplus
53097 extern "C"
53098 {
53099 #endif
53100 /* We use char because int might match the return type of a gcc2
53101    builtin and then its argument prototype would still apply.  */
53102 char $ac_func ();
53103 /* The GNU C library defines this for functions which it implements
53104     to always fail with ENOSYS.  Some functions are actually named
53105     something starting with __ and the normal name is an alias.  */
53106 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
53107 choke me
53108 #else
53109 char (*f) () = $ac_func;
53110 #endif
53111 #ifdef __cplusplus
53112 }
53113 #endif
53114
53115 int
53116 main ()
53117 {
53118 return f != $ac_func;
53119   ;
53120   return 0;
53121 }
53122 _ACEOF
53123 rm -f conftest.$ac_objext conftest$ac_exeext
53124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
53125   (eval $ac_link) 2>conftest.er1
53126   ac_status=$?
53127   grep -v '^ *+' conftest.er1 >conftest.err
53128   rm -f conftest.er1
53129   cat conftest.err >&5
53130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53131   (exit $ac_status); } &&
53132          { ac_try='test -z "$ac_c_werror_flag"
53133                          || test ! -s conftest.err'
53134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53135   (eval $ac_try) 2>&5
53136   ac_status=$?
53137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53138   (exit $ac_status); }; } &&
53139          { ac_try='test -s conftest$ac_exeext'
53140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53141   (eval $ac_try) 2>&5
53142   ac_status=$?
53143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53144   (exit $ac_status); }; }; then
53145   eval "$as_ac_var=yes"
53146 else
53147   echo "$as_me: failed program was:" >&5
53148 sed 's/^/| /' conftest.$ac_ext >&5
53149
53150 eval "$as_ac_var=no"
53151 fi
53152 rm -f conftest.err conftest.$ac_objext \
53153       conftest$ac_exeext conftest.$ac_ext
53154 fi
53155 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
53156 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
53157 if test `eval echo '${'$as_ac_var'}'` = yes; then
53158   cat >>confdefs.h <<_ACEOF
53159 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
53160 _ACEOF
53161  ice_have_tolower=yes
53162 fi
53163 done
53164
53165 if test "${ice_have_tolower}" = yes; then
53166 echo "$as_me:$LINENO: checking for tolower declaration in ctype.h" >&5
53167 echo $ECHO_N "checking for tolower declaration in ctype.h... $ECHO_C" >&6
53168 if test "${ice_cv_have_tolower_decl+set}" = set; then
53169   echo $ECHO_N "(cached) $ECHO_C" >&6
53170 else
53171
53172 ice_cv_have_tolower_decl=no
53173 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
53174 ice_re_word='(^|[^a-zA-Z0-9_])'
53175 for header in ctype.h; do
53176 # Check for ordinary declaration
53177 cat >conftest.$ac_ext <<_ACEOF
53178 /* confdefs.h.  */
53179 _ACEOF
53180 cat confdefs.h >>conftest.$ac_ext
53181 cat >>conftest.$ac_ext <<_ACEOF
53182 /* end confdefs.h.  */
53183 #include <$header>
53184
53185 _ACEOF
53186 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
53187   $EGREP "${ice_re_word}tolower[        ]*\(" >/dev/null 2>&1; then
53188   ice_cv_have_tolower_decl=yes
53189 fi
53190 rm -f conftest*
53191
53192 if test "$ice_cv_have_tolower_decl" = yes; then
53193         break
53194 fi
53195 # Check for "fixed" declaration like "getpid _PARAMS((int))"
53196 cat >conftest.$ac_ext <<_ACEOF
53197 /* confdefs.h.  */
53198 _ACEOF
53199 cat confdefs.h >>conftest.$ac_ext
53200 cat >>conftest.$ac_ext <<_ACEOF
53201 /* end confdefs.h.  */
53202 #include <$header>
53203
53204 _ACEOF
53205 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
53206   $EGREP "${ice_re_word}tolower[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
53207   ice_cv_have_tolower_decl=yes
53208 fi
53209 rm -f conftest*
53210
53211 if test "$ice_cv_have_tolower_decl" = yes; then
53212         break
53213 fi
53214 done
53215
53216 fi
53217
53218 echo "$as_me:$LINENO: result: $ice_cv_have_tolower_decl" >&5
53219 echo "${ECHO_T}$ice_cv_have_tolower_decl" >&6
53220 if test "$ice_cv_have_tolower_decl" = yes; then
53221
53222 cat >>confdefs.h <<_ACEOF
53223 #define HAVE_TOLOWER_DECL 1
53224 _ACEOF
53225
53226 fi
53227 fi
53228
53229
53230 ice_have_toupper=no
53231
53232 for ac_func in toupper
53233 do
53234 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
53235 echo "$as_me:$LINENO: checking for $ac_func" >&5
53236 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
53237 if eval "test \"\${$as_ac_var+set}\" = set"; then
53238   echo $ECHO_N "(cached) $ECHO_C" >&6
53239 else
53240   cat >conftest.$ac_ext <<_ACEOF
53241 /* confdefs.h.  */
53242 _ACEOF
53243 cat confdefs.h >>conftest.$ac_ext
53244 cat >>conftest.$ac_ext <<_ACEOF
53245 /* end confdefs.h.  */
53246 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
53247    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
53248 #define $ac_func innocuous_$ac_func
53249
53250 /* System header to define __stub macros and hopefully few prototypes,
53251     which can conflict with char $ac_func (); below.
53252     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
53253     <limits.h> exists even on freestanding compilers.  */
53254
53255 #ifdef __STDC__
53256 # include <limits.h>
53257 #else
53258 # include <assert.h>
53259 #endif
53260
53261 #undef $ac_func
53262
53263 /* Override any gcc2 internal prototype to avoid an error.  */
53264 #ifdef __cplusplus
53265 extern "C"
53266 {
53267 #endif
53268 /* We use char because int might match the return type of a gcc2
53269    builtin and then its argument prototype would still apply.  */
53270 char $ac_func ();
53271 /* The GNU C library defines this for functions which it implements
53272     to always fail with ENOSYS.  Some functions are actually named
53273     something starting with __ and the normal name is an alias.  */
53274 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
53275 choke me
53276 #else
53277 char (*f) () = $ac_func;
53278 #endif
53279 #ifdef __cplusplus
53280 }
53281 #endif
53282
53283 int
53284 main ()
53285 {
53286 return f != $ac_func;
53287   ;
53288   return 0;
53289 }
53290 _ACEOF
53291 rm -f conftest.$ac_objext conftest$ac_exeext
53292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
53293   (eval $ac_link) 2>conftest.er1
53294   ac_status=$?
53295   grep -v '^ *+' conftest.er1 >conftest.err
53296   rm -f conftest.er1
53297   cat conftest.err >&5
53298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53299   (exit $ac_status); } &&
53300          { ac_try='test -z "$ac_c_werror_flag"
53301                          || test ! -s conftest.err'
53302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53303   (eval $ac_try) 2>&5
53304   ac_status=$?
53305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53306   (exit $ac_status); }; } &&
53307          { ac_try='test -s conftest$ac_exeext'
53308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53309   (eval $ac_try) 2>&5
53310   ac_status=$?
53311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53312   (exit $ac_status); }; }; then
53313   eval "$as_ac_var=yes"
53314 else
53315   echo "$as_me: failed program was:" >&5
53316 sed 's/^/| /' conftest.$ac_ext >&5
53317
53318 eval "$as_ac_var=no"
53319 fi
53320 rm -f conftest.err conftest.$ac_objext \
53321       conftest$ac_exeext conftest.$ac_ext
53322 fi
53323 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
53324 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
53325 if test `eval echo '${'$as_ac_var'}'` = yes; then
53326   cat >>confdefs.h <<_ACEOF
53327 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
53328 _ACEOF
53329  ice_have_toupper=yes
53330 fi
53331 done
53332
53333 if test "${ice_have_toupper}" = yes; then
53334 echo "$as_me:$LINENO: checking for toupper declaration in ctype.h" >&5
53335 echo $ECHO_N "checking for toupper declaration in ctype.h... $ECHO_C" >&6
53336 if test "${ice_cv_have_toupper_decl+set}" = set; then
53337   echo $ECHO_N "(cached) $ECHO_C" >&6
53338 else
53339
53340 ice_cv_have_toupper_decl=no
53341 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
53342 ice_re_word='(^|[^a-zA-Z0-9_])'
53343 for header in ctype.h; do
53344 # Check for ordinary declaration
53345 cat >conftest.$ac_ext <<_ACEOF
53346 /* confdefs.h.  */
53347 _ACEOF
53348 cat confdefs.h >>conftest.$ac_ext
53349 cat >>conftest.$ac_ext <<_ACEOF
53350 /* end confdefs.h.  */
53351 #include <$header>
53352
53353 _ACEOF
53354 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
53355   $EGREP "${ice_re_word}toupper[        ]*\(" >/dev/null 2>&1; then
53356   ice_cv_have_toupper_decl=yes
53357 fi
53358 rm -f conftest*
53359
53360 if test "$ice_cv_have_toupper_decl" = yes; then
53361         break
53362 fi
53363 # Check for "fixed" declaration like "getpid _PARAMS((int))"
53364 cat >conftest.$ac_ext <<_ACEOF
53365 /* confdefs.h.  */
53366 _ACEOF
53367 cat confdefs.h >>conftest.$ac_ext
53368 cat >>conftest.$ac_ext <<_ACEOF
53369 /* end confdefs.h.  */
53370 #include <$header>
53371
53372 _ACEOF
53373 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
53374   $EGREP "${ice_re_word}toupper[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
53375   ice_cv_have_toupper_decl=yes
53376 fi
53377 rm -f conftest*
53378
53379 if test "$ice_cv_have_toupper_decl" = yes; then
53380         break
53381 fi
53382 done
53383
53384 fi
53385
53386 echo "$as_me:$LINENO: result: $ice_cv_have_toupper_decl" >&5
53387 echo "${ECHO_T}$ice_cv_have_toupper_decl" >&6
53388 if test "$ice_cv_have_toupper_decl" = yes; then
53389
53390 cat >>confdefs.h <<_ACEOF
53391 #define HAVE_TOUPPER_DECL 1
53392 _ACEOF
53393
53394 fi
53395 fi
53396
53397
53398 ice_have_ungetc=no
53399
53400 for ac_func in ungetc
53401 do
53402 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
53403 echo "$as_me:$LINENO: checking for $ac_func" >&5
53404 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
53405 if eval "test \"\${$as_ac_var+set}\" = set"; then
53406   echo $ECHO_N "(cached) $ECHO_C" >&6
53407 else
53408   cat >conftest.$ac_ext <<_ACEOF
53409 /* confdefs.h.  */
53410 _ACEOF
53411 cat confdefs.h >>conftest.$ac_ext
53412 cat >>conftest.$ac_ext <<_ACEOF
53413 /* end confdefs.h.  */
53414 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
53415    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
53416 #define $ac_func innocuous_$ac_func
53417
53418 /* System header to define __stub macros and hopefully few prototypes,
53419     which can conflict with char $ac_func (); below.
53420     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
53421     <limits.h> exists even on freestanding compilers.  */
53422
53423 #ifdef __STDC__
53424 # include <limits.h>
53425 #else
53426 # include <assert.h>
53427 #endif
53428
53429 #undef $ac_func
53430
53431 /* Override any gcc2 internal prototype to avoid an error.  */
53432 #ifdef __cplusplus
53433 extern "C"
53434 {
53435 #endif
53436 /* We use char because int might match the return type of a gcc2
53437    builtin and then its argument prototype would still apply.  */
53438 char $ac_func ();
53439 /* The GNU C library defines this for functions which it implements
53440     to always fail with ENOSYS.  Some functions are actually named
53441     something starting with __ and the normal name is an alias.  */
53442 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
53443 choke me
53444 #else
53445 char (*f) () = $ac_func;
53446 #endif
53447 #ifdef __cplusplus
53448 }
53449 #endif
53450
53451 int
53452 main ()
53453 {
53454 return f != $ac_func;
53455   ;
53456   return 0;
53457 }
53458 _ACEOF
53459 rm -f conftest.$ac_objext conftest$ac_exeext
53460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
53461   (eval $ac_link) 2>conftest.er1
53462   ac_status=$?
53463   grep -v '^ *+' conftest.er1 >conftest.err
53464   rm -f conftest.er1
53465   cat conftest.err >&5
53466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53467   (exit $ac_status); } &&
53468          { ac_try='test -z "$ac_c_werror_flag"
53469                          || test ! -s conftest.err'
53470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53471   (eval $ac_try) 2>&5
53472   ac_status=$?
53473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53474   (exit $ac_status); }; } &&
53475          { ac_try='test -s conftest$ac_exeext'
53476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53477   (eval $ac_try) 2>&5
53478   ac_status=$?
53479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53480   (exit $ac_status); }; }; then
53481   eval "$as_ac_var=yes"
53482 else
53483   echo "$as_me: failed program was:" >&5
53484 sed 's/^/| /' conftest.$ac_ext >&5
53485
53486 eval "$as_ac_var=no"
53487 fi
53488 rm -f conftest.err conftest.$ac_objext \
53489       conftest$ac_exeext conftest.$ac_ext
53490 fi
53491 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
53492 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
53493 if test `eval echo '${'$as_ac_var'}'` = yes; then
53494   cat >>confdefs.h <<_ACEOF
53495 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
53496 _ACEOF
53497  ice_have_ungetc=yes
53498 fi
53499 done
53500
53501 if test "${ice_have_ungetc}" = yes; then
53502 echo "$as_me:$LINENO: checking for ungetc declaration in stdio.h" >&5
53503 echo $ECHO_N "checking for ungetc declaration in stdio.h... $ECHO_C" >&6
53504 if test "${ice_cv_have_ungetc_decl+set}" = set; then
53505   echo $ECHO_N "(cached) $ECHO_C" >&6
53506 else
53507
53508 ice_cv_have_ungetc_decl=no
53509 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
53510 ice_re_word='(^|[^a-zA-Z0-9_])'
53511 for header in stdio.h; do
53512 # Check for ordinary declaration
53513 cat >conftest.$ac_ext <<_ACEOF
53514 /* confdefs.h.  */
53515 _ACEOF
53516 cat confdefs.h >>conftest.$ac_ext
53517 cat >>conftest.$ac_ext <<_ACEOF
53518 /* end confdefs.h.  */
53519 #include <$header>
53520
53521 _ACEOF
53522 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
53523   $EGREP "${ice_re_word}ungetc[         ]*\(" >/dev/null 2>&1; then
53524   ice_cv_have_ungetc_decl=yes
53525 fi
53526 rm -f conftest*
53527
53528 if test "$ice_cv_have_ungetc_decl" = yes; then
53529         break
53530 fi
53531 # Check for "fixed" declaration like "getpid _PARAMS((int))"
53532 cat >conftest.$ac_ext <<_ACEOF
53533 /* confdefs.h.  */
53534 _ACEOF
53535 cat confdefs.h >>conftest.$ac_ext
53536 cat >>conftest.$ac_ext <<_ACEOF
53537 /* end confdefs.h.  */
53538 #include <$header>
53539
53540 _ACEOF
53541 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
53542   $EGREP "${ice_re_word}ungetc[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
53543   ice_cv_have_ungetc_decl=yes
53544 fi
53545 rm -f conftest*
53546
53547 if test "$ice_cv_have_ungetc_decl" = yes; then
53548         break
53549 fi
53550 done
53551
53552 fi
53553
53554 echo "$as_me:$LINENO: result: $ice_cv_have_ungetc_decl" >&5
53555 echo "${ECHO_T}$ice_cv_have_ungetc_decl" >&6
53556 if test "$ice_cv_have_ungetc_decl" = yes; then
53557
53558 cat >>confdefs.h <<_ACEOF
53559 #define HAVE_UNGETC_DECL 1
53560 _ACEOF
53561
53562 fi
53563 fi
53564
53565
53566 for ac_func in vprintf
53567 do
53568 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
53569 echo "$as_me:$LINENO: checking for $ac_func" >&5
53570 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
53571 if eval "test \"\${$as_ac_var+set}\" = set"; then
53572   echo $ECHO_N "(cached) $ECHO_C" >&6
53573 else
53574   cat >conftest.$ac_ext <<_ACEOF
53575 /* confdefs.h.  */
53576 _ACEOF
53577 cat confdefs.h >>conftest.$ac_ext
53578 cat >>conftest.$ac_ext <<_ACEOF
53579 /* end confdefs.h.  */
53580 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
53581    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
53582 #define $ac_func innocuous_$ac_func
53583
53584 /* System header to define __stub macros and hopefully few prototypes,
53585     which can conflict with char $ac_func (); below.
53586     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
53587     <limits.h> exists even on freestanding compilers.  */
53588
53589 #ifdef __STDC__
53590 # include <limits.h>
53591 #else
53592 # include <assert.h>
53593 #endif
53594
53595 #undef $ac_func
53596
53597 /* Override any gcc2 internal prototype to avoid an error.  */
53598 #ifdef __cplusplus
53599 extern "C"
53600 {
53601 #endif
53602 /* We use char because int might match the return type of a gcc2
53603    builtin and then its argument prototype would still apply.  */
53604 char $ac_func ();
53605 /* The GNU C library defines this for functions which it implements
53606     to always fail with ENOSYS.  Some functions are actually named
53607     something starting with __ and the normal name is an alias.  */
53608 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
53609 choke me
53610 #else
53611 char (*f) () = $ac_func;
53612 #endif
53613 #ifdef __cplusplus
53614 }
53615 #endif
53616
53617 int
53618 main ()
53619 {
53620 return f != $ac_func;
53621   ;
53622   return 0;
53623 }
53624 _ACEOF
53625 rm -f conftest.$ac_objext conftest$ac_exeext
53626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
53627   (eval $ac_link) 2>conftest.er1
53628   ac_status=$?
53629   grep -v '^ *+' conftest.er1 >conftest.err
53630   rm -f conftest.er1
53631   cat conftest.err >&5
53632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53633   (exit $ac_status); } &&
53634          { ac_try='test -z "$ac_c_werror_flag"
53635                          || test ! -s conftest.err'
53636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53637   (eval $ac_try) 2>&5
53638   ac_status=$?
53639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53640   (exit $ac_status); }; } &&
53641          { ac_try='test -s conftest$ac_exeext'
53642   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53643   (eval $ac_try) 2>&5
53644   ac_status=$?
53645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53646   (exit $ac_status); }; }; then
53647   eval "$as_ac_var=yes"
53648 else
53649   echo "$as_me: failed program was:" >&5
53650 sed 's/^/| /' conftest.$ac_ext >&5
53651
53652 eval "$as_ac_var=no"
53653 fi
53654 rm -f conftest.err conftest.$ac_objext \
53655       conftest$ac_exeext conftest.$ac_ext
53656 fi
53657 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
53658 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
53659 if test `eval echo '${'$as_ac_var'}'` = yes; then
53660   cat >>confdefs.h <<_ACEOF
53661 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
53662 _ACEOF
53663
53664 echo "$as_me:$LINENO: checking for _doprnt" >&5
53665 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
53666 if test "${ac_cv_func__doprnt+set}" = set; then
53667   echo $ECHO_N "(cached) $ECHO_C" >&6
53668 else
53669   cat >conftest.$ac_ext <<_ACEOF
53670 /* confdefs.h.  */
53671 _ACEOF
53672 cat confdefs.h >>conftest.$ac_ext
53673 cat >>conftest.$ac_ext <<_ACEOF
53674 /* end confdefs.h.  */
53675 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
53676    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
53677 #define _doprnt innocuous__doprnt
53678
53679 /* System header to define __stub macros and hopefully few prototypes,
53680     which can conflict with char _doprnt (); below.
53681     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
53682     <limits.h> exists even on freestanding compilers.  */
53683
53684 #ifdef __STDC__
53685 # include <limits.h>
53686 #else
53687 # include <assert.h>
53688 #endif
53689
53690 #undef _doprnt
53691
53692 /* Override any gcc2 internal prototype to avoid an error.  */
53693 #ifdef __cplusplus
53694 extern "C"
53695 {
53696 #endif
53697 /* We use char because int might match the return type of a gcc2
53698    builtin and then its argument prototype would still apply.  */
53699 char _doprnt ();
53700 /* The GNU C library defines this for functions which it implements
53701     to always fail with ENOSYS.  Some functions are actually named
53702     something starting with __ and the normal name is an alias.  */
53703 #if defined (__stub__doprnt) || defined (__stub____doprnt)
53704 choke me
53705 #else
53706 char (*f) () = _doprnt;
53707 #endif
53708 #ifdef __cplusplus
53709 }
53710 #endif
53711
53712 int
53713 main ()
53714 {
53715 return f != _doprnt;
53716   ;
53717   return 0;
53718 }
53719 _ACEOF
53720 rm -f conftest.$ac_objext conftest$ac_exeext
53721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
53722   (eval $ac_link) 2>conftest.er1
53723   ac_status=$?
53724   grep -v '^ *+' conftest.er1 >conftest.err
53725   rm -f conftest.er1
53726   cat conftest.err >&5
53727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53728   (exit $ac_status); } &&
53729          { ac_try='test -z "$ac_c_werror_flag"
53730                          || test ! -s conftest.err'
53731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53732   (eval $ac_try) 2>&5
53733   ac_status=$?
53734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53735   (exit $ac_status); }; } &&
53736          { ac_try='test -s conftest$ac_exeext'
53737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53738   (eval $ac_try) 2>&5
53739   ac_status=$?
53740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53741   (exit $ac_status); }; }; then
53742   ac_cv_func__doprnt=yes
53743 else
53744   echo "$as_me: failed program was:" >&5
53745 sed 's/^/| /' conftest.$ac_ext >&5
53746
53747 ac_cv_func__doprnt=no
53748 fi
53749 rm -f conftest.err conftest.$ac_objext \
53750       conftest$ac_exeext conftest.$ac_ext
53751 fi
53752 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
53753 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
53754 if test $ac_cv_func__doprnt = yes; then
53755
53756 cat >>confdefs.h <<\_ACEOF
53757 #define HAVE_DOPRNT 1
53758 _ACEOF
53759
53760 fi
53761
53762 fi
53763 done
53764
53765
53766
53767 ice_have_vfprintf=no
53768
53769 for ac_func in vfprintf
53770 do
53771 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
53772 echo "$as_me:$LINENO: checking for $ac_func" >&5
53773 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
53774 if eval "test \"\${$as_ac_var+set}\" = set"; then
53775   echo $ECHO_N "(cached) $ECHO_C" >&6
53776 else
53777   cat >conftest.$ac_ext <<_ACEOF
53778 /* confdefs.h.  */
53779 _ACEOF
53780 cat confdefs.h >>conftest.$ac_ext
53781 cat >>conftest.$ac_ext <<_ACEOF
53782 /* end confdefs.h.  */
53783 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
53784    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
53785 #define $ac_func innocuous_$ac_func
53786
53787 /* System header to define __stub macros and hopefully few prototypes,
53788     which can conflict with char $ac_func (); below.
53789     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
53790     <limits.h> exists even on freestanding compilers.  */
53791
53792 #ifdef __STDC__
53793 # include <limits.h>
53794 #else
53795 # include <assert.h>
53796 #endif
53797
53798 #undef $ac_func
53799
53800 /* Override any gcc2 internal prototype to avoid an error.  */
53801 #ifdef __cplusplus
53802 extern "C"
53803 {
53804 #endif
53805 /* We use char because int might match the return type of a gcc2
53806    builtin and then its argument prototype would still apply.  */
53807 char $ac_func ();
53808 /* The GNU C library defines this for functions which it implements
53809     to always fail with ENOSYS.  Some functions are actually named
53810     something starting with __ and the normal name is an alias.  */
53811 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
53812 choke me
53813 #else
53814 char (*f) () = $ac_func;
53815 #endif
53816 #ifdef __cplusplus
53817 }
53818 #endif
53819
53820 int
53821 main ()
53822 {
53823 return f != $ac_func;
53824   ;
53825   return 0;
53826 }
53827 _ACEOF
53828 rm -f conftest.$ac_objext conftest$ac_exeext
53829 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
53830   (eval $ac_link) 2>conftest.er1
53831   ac_status=$?
53832   grep -v '^ *+' conftest.er1 >conftest.err
53833   rm -f conftest.er1
53834   cat conftest.err >&5
53835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53836   (exit $ac_status); } &&
53837          { ac_try='test -z "$ac_c_werror_flag"
53838                          || test ! -s conftest.err'
53839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53840   (eval $ac_try) 2>&5
53841   ac_status=$?
53842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53843   (exit $ac_status); }; } &&
53844          { ac_try='test -s conftest$ac_exeext'
53845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
53846   (eval $ac_try) 2>&5
53847   ac_status=$?
53848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
53849   (exit $ac_status); }; }; then
53850   eval "$as_ac_var=yes"
53851 else
53852   echo "$as_me: failed program was:" >&5
53853 sed 's/^/| /' conftest.$ac_ext >&5
53854
53855 eval "$as_ac_var=no"
53856 fi
53857 rm -f conftest.err conftest.$ac_objext \
53858       conftest$ac_exeext conftest.$ac_ext
53859 fi
53860 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
53861 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
53862 if test `eval echo '${'$as_ac_var'}'` = yes; then
53863   cat >>confdefs.h <<_ACEOF
53864 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
53865 _ACEOF
53866  ice_have_vfprintf=yes
53867 fi
53868 done
53869
53870 if test "${ice_have_vfprintf}" = yes; then
53871 echo "$as_me:$LINENO: checking for vfprintf declaration in stdio.h stdlib.h" >&5
53872 echo $ECHO_N "checking for vfprintf declaration in stdio.h stdlib.h... $ECHO_C" >&6
53873 if test "${ice_cv_have_vfprintf_decl+set}" = set; then
53874   echo $ECHO_N "(cached) $ECHO_C" >&6
53875 else
53876
53877 ice_cv_have_vfprintf_decl=no
53878 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
53879 ice_re_word='(^|[^a-zA-Z0-9_])'
53880 for header in stdio.h stdlib.h; do
53881 # Check for ordinary declaration
53882 cat >conftest.$ac_ext <<_ACEOF
53883 /* confdefs.h.  */
53884 _ACEOF
53885 cat confdefs.h >>conftest.$ac_ext
53886 cat >>conftest.$ac_ext <<_ACEOF
53887 /* end confdefs.h.  */
53888 #include <$header>
53889
53890 _ACEOF
53891 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
53892   $EGREP "${ice_re_word}vfprintf[       ]*\(" >/dev/null 2>&1; then
53893   ice_cv_have_vfprintf_decl=yes
53894 fi
53895 rm -f conftest*
53896
53897 if test "$ice_cv_have_vfprintf_decl" = yes; then
53898         break
53899 fi
53900 # Check for "fixed" declaration like "getpid _PARAMS((int))"
53901 cat >conftest.$ac_ext <<_ACEOF
53902 /* confdefs.h.  */
53903 _ACEOF
53904 cat confdefs.h >>conftest.$ac_ext
53905 cat >>conftest.$ac_ext <<_ACEOF
53906 /* end confdefs.h.  */
53907 #include <$header>
53908
53909 _ACEOF
53910 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
53911   $EGREP "${ice_re_word}vfprintf[       ]*$ice_re_params\(\(" >/dev/null 2>&1; then
53912   ice_cv_have_vfprintf_decl=yes
53913 fi
53914 rm -f conftest*
53915
53916 if test "$ice_cv_have_vfprintf_decl" = yes; then
53917         break
53918 fi
53919 done
53920
53921 fi
53922
53923 echo "$as_me:$LINENO: result: $ice_cv_have_vfprintf_decl" >&5
53924 echo "${ECHO_T}$ice_cv_have_vfprintf_decl" >&6
53925 if test "$ice_cv_have_vfprintf_decl" = yes; then
53926
53927 cat >>confdefs.h <<_ACEOF
53928 #define HAVE_VFPRINTF_DECL 1
53929 _ACEOF
53930
53931 fi
53932 fi
53933
53934
53935 ice_have_vprintf=no
53936
53937 for ac_func in vprintf
53938 do
53939 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
53940 echo "$as_me:$LINENO: checking for $ac_func" >&5
53941 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
53942 if eval "test \"\${$as_ac_var+set}\" = set"; then
53943   echo $ECHO_N "(cached) $ECHO_C" >&6
53944 else
53945   cat >conftest.$ac_ext <<_ACEOF
53946 /* confdefs.h.  */
53947 _ACEOF
53948 cat confdefs.h >>conftest.$ac_ext
53949 cat >>conftest.$ac_ext <<_ACEOF
53950 /* end confdefs.h.  */
53951 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
53952    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
53953 #define $ac_func innocuous_$ac_func
53954
53955 /* System header to define __stub macros and hopefully few prototypes,
53956     which can conflict with char $ac_func (); below.
53957     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
53958     <limits.h> exists even on freestanding compilers.  */
53959
53960 #ifdef __STDC__
53961 # include <limits.h>
53962 #else
53963 # include <assert.h>
53964 #endif
53965
53966 #undef $ac_func
53967
53968 /* Override any gcc2 internal prototype to avoid an error.  */
53969 #ifdef __cplusplus
53970 extern "C"
53971 {
53972 #endif
53973 /* We use char because int might match the return type of a gcc2
53974    builtin and then its argument prototype would still apply.  */
53975 char $ac_func ();
53976 /* The GNU C library defines this for functions which it implements
53977     to always fail with ENOSYS.  Some functions are actually named
53978     something starting with __ and the normal name is an alias.  */
53979 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
53980 choke me
53981 #else
53982 char (*f) () = $ac_func;
53983 #endif
53984 #ifdef __cplusplus
53985 }
53986 #endif
53987
53988 int
53989 main ()
53990 {
53991 return f != $ac_func;
53992   ;
53993   return 0;
53994 }
53995 _ACEOF
53996 rm -f conftest.$ac_objext conftest$ac_exeext
53997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
53998   (eval $ac_link) 2>conftest.er1
53999   ac_status=$?
54000   grep -v '^ *+' conftest.er1 >conftest.err
54001   rm -f conftest.er1
54002   cat conftest.err >&5
54003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54004   (exit $ac_status); } &&
54005          { ac_try='test -z "$ac_c_werror_flag"
54006                          || test ! -s conftest.err'
54007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54008   (eval $ac_try) 2>&5
54009   ac_status=$?
54010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54011   (exit $ac_status); }; } &&
54012          { ac_try='test -s conftest$ac_exeext'
54013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54014   (eval $ac_try) 2>&5
54015   ac_status=$?
54016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54017   (exit $ac_status); }; }; then
54018   eval "$as_ac_var=yes"
54019 else
54020   echo "$as_me: failed program was:" >&5
54021 sed 's/^/| /' conftest.$ac_ext >&5
54022
54023 eval "$as_ac_var=no"
54024 fi
54025 rm -f conftest.err conftest.$ac_objext \
54026       conftest$ac_exeext conftest.$ac_ext
54027 fi
54028 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
54029 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
54030 if test `eval echo '${'$as_ac_var'}'` = yes; then
54031   cat >>confdefs.h <<_ACEOF
54032 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
54033 _ACEOF
54034  ice_have_vprintf=yes
54035 fi
54036 done
54037
54038 if test "${ice_have_vprintf}" = yes; then
54039 echo "$as_me:$LINENO: checking for vprintf declaration in stdio.h stdlib.h" >&5
54040 echo $ECHO_N "checking for vprintf declaration in stdio.h stdlib.h... $ECHO_C" >&6
54041 if test "${ice_cv_have_vprintf_decl+set}" = set; then
54042   echo $ECHO_N "(cached) $ECHO_C" >&6
54043 else
54044
54045 ice_cv_have_vprintf_decl=no
54046 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
54047 ice_re_word='(^|[^a-zA-Z0-9_])'
54048 for header in stdio.h stdlib.h; do
54049 # Check for ordinary declaration
54050 cat >conftest.$ac_ext <<_ACEOF
54051 /* confdefs.h.  */
54052 _ACEOF
54053 cat confdefs.h >>conftest.$ac_ext
54054 cat >>conftest.$ac_ext <<_ACEOF
54055 /* end confdefs.h.  */
54056 #include <$header>
54057
54058 _ACEOF
54059 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
54060   $EGREP "${ice_re_word}vprintf[        ]*\(" >/dev/null 2>&1; then
54061   ice_cv_have_vprintf_decl=yes
54062 fi
54063 rm -f conftest*
54064
54065 if test "$ice_cv_have_vprintf_decl" = yes; then
54066         break
54067 fi
54068 # Check for "fixed" declaration like "getpid _PARAMS((int))"
54069 cat >conftest.$ac_ext <<_ACEOF
54070 /* confdefs.h.  */
54071 _ACEOF
54072 cat confdefs.h >>conftest.$ac_ext
54073 cat >>conftest.$ac_ext <<_ACEOF
54074 /* end confdefs.h.  */
54075 #include <$header>
54076
54077 _ACEOF
54078 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
54079   $EGREP "${ice_re_word}vprintf[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
54080   ice_cv_have_vprintf_decl=yes
54081 fi
54082 rm -f conftest*
54083
54084 if test "$ice_cv_have_vprintf_decl" = yes; then
54085         break
54086 fi
54087 done
54088
54089 fi
54090
54091 echo "$as_me:$LINENO: result: $ice_cv_have_vprintf_decl" >&5
54092 echo "${ECHO_T}$ice_cv_have_vprintf_decl" >&6
54093 if test "$ice_cv_have_vprintf_decl" = yes; then
54094
54095 cat >>confdefs.h <<_ACEOF
54096 #define HAVE_VPRINTF_DECL 1
54097 _ACEOF
54098
54099 fi
54100 fi
54101
54102
54103 ice_have_vsprintf=no
54104
54105 for ac_func in vsprintf
54106 do
54107 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
54108 echo "$as_me:$LINENO: checking for $ac_func" >&5
54109 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
54110 if eval "test \"\${$as_ac_var+set}\" = set"; then
54111   echo $ECHO_N "(cached) $ECHO_C" >&6
54112 else
54113   cat >conftest.$ac_ext <<_ACEOF
54114 /* confdefs.h.  */
54115 _ACEOF
54116 cat confdefs.h >>conftest.$ac_ext
54117 cat >>conftest.$ac_ext <<_ACEOF
54118 /* end confdefs.h.  */
54119 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
54120    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
54121 #define $ac_func innocuous_$ac_func
54122
54123 /* System header to define __stub macros and hopefully few prototypes,
54124     which can conflict with char $ac_func (); below.
54125     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
54126     <limits.h> exists even on freestanding compilers.  */
54127
54128 #ifdef __STDC__
54129 # include <limits.h>
54130 #else
54131 # include <assert.h>
54132 #endif
54133
54134 #undef $ac_func
54135
54136 /* Override any gcc2 internal prototype to avoid an error.  */
54137 #ifdef __cplusplus
54138 extern "C"
54139 {
54140 #endif
54141 /* We use char because int might match the return type of a gcc2
54142    builtin and then its argument prototype would still apply.  */
54143 char $ac_func ();
54144 /* The GNU C library defines this for functions which it implements
54145     to always fail with ENOSYS.  Some functions are actually named
54146     something starting with __ and the normal name is an alias.  */
54147 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
54148 choke me
54149 #else
54150 char (*f) () = $ac_func;
54151 #endif
54152 #ifdef __cplusplus
54153 }
54154 #endif
54155
54156 int
54157 main ()
54158 {
54159 return f != $ac_func;
54160   ;
54161   return 0;
54162 }
54163 _ACEOF
54164 rm -f conftest.$ac_objext conftest$ac_exeext
54165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
54166   (eval $ac_link) 2>conftest.er1
54167   ac_status=$?
54168   grep -v '^ *+' conftest.er1 >conftest.err
54169   rm -f conftest.er1
54170   cat conftest.err >&5
54171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54172   (exit $ac_status); } &&
54173          { ac_try='test -z "$ac_c_werror_flag"
54174                          || test ! -s conftest.err'
54175   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54176   (eval $ac_try) 2>&5
54177   ac_status=$?
54178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54179   (exit $ac_status); }; } &&
54180          { ac_try='test -s conftest$ac_exeext'
54181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54182   (eval $ac_try) 2>&5
54183   ac_status=$?
54184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54185   (exit $ac_status); }; }; then
54186   eval "$as_ac_var=yes"
54187 else
54188   echo "$as_me: failed program was:" >&5
54189 sed 's/^/| /' conftest.$ac_ext >&5
54190
54191 eval "$as_ac_var=no"
54192 fi
54193 rm -f conftest.err conftest.$ac_objext \
54194       conftest$ac_exeext conftest.$ac_ext
54195 fi
54196 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
54197 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
54198 if test `eval echo '${'$as_ac_var'}'` = yes; then
54199   cat >>confdefs.h <<_ACEOF
54200 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
54201 _ACEOF
54202  ice_have_vsprintf=yes
54203 fi
54204 done
54205
54206 if test "${ice_have_vsprintf}" = yes; then
54207 echo "$as_me:$LINENO: checking for vsprintf declaration in stdio.h stdlib.h" >&5
54208 echo $ECHO_N "checking for vsprintf declaration in stdio.h stdlib.h... $ECHO_C" >&6
54209 if test "${ice_cv_have_vsprintf_decl+set}" = set; then
54210   echo $ECHO_N "(cached) $ECHO_C" >&6
54211 else
54212
54213 ice_cv_have_vsprintf_decl=no
54214 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
54215 ice_re_word='(^|[^a-zA-Z0-9_])'
54216 for header in stdio.h stdlib.h; do
54217 # Check for ordinary declaration
54218 cat >conftest.$ac_ext <<_ACEOF
54219 /* confdefs.h.  */
54220 _ACEOF
54221 cat confdefs.h >>conftest.$ac_ext
54222 cat >>conftest.$ac_ext <<_ACEOF
54223 /* end confdefs.h.  */
54224 #include <$header>
54225
54226 _ACEOF
54227 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
54228   $EGREP "${ice_re_word}vsprintf[       ]*\(" >/dev/null 2>&1; then
54229   ice_cv_have_vsprintf_decl=yes
54230 fi
54231 rm -f conftest*
54232
54233 if test "$ice_cv_have_vsprintf_decl" = yes; then
54234         break
54235 fi
54236 # Check for "fixed" declaration like "getpid _PARAMS((int))"
54237 cat >conftest.$ac_ext <<_ACEOF
54238 /* confdefs.h.  */
54239 _ACEOF
54240 cat confdefs.h >>conftest.$ac_ext
54241 cat >>conftest.$ac_ext <<_ACEOF
54242 /* end confdefs.h.  */
54243 #include <$header>
54244
54245 _ACEOF
54246 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
54247   $EGREP "${ice_re_word}vsprintf[       ]*$ice_re_params\(\(" >/dev/null 2>&1; then
54248   ice_cv_have_vsprintf_decl=yes
54249 fi
54250 rm -f conftest*
54251
54252 if test "$ice_cv_have_vsprintf_decl" = yes; then
54253         break
54254 fi
54255 done
54256
54257 fi
54258
54259 echo "$as_me:$LINENO: result: $ice_cv_have_vsprintf_decl" >&5
54260 echo "${ECHO_T}$ice_cv_have_vsprintf_decl" >&6
54261 if test "$ice_cv_have_vsprintf_decl" = yes; then
54262
54263 cat >>confdefs.h <<_ACEOF
54264 #define HAVE_VSPRINTF_DECL 1
54265 _ACEOF
54266
54267 fi
54268 fi
54269
54270 echo "$as_me:$LINENO: checking for wait4" >&5
54271 echo $ECHO_N "checking for wait4... $ECHO_C" >&6
54272 if test "${ac_cv_func_wait4+set}" = set; then
54273   echo $ECHO_N "(cached) $ECHO_C" >&6
54274 else
54275   cat >conftest.$ac_ext <<_ACEOF
54276 /* confdefs.h.  */
54277 _ACEOF
54278 cat confdefs.h >>conftest.$ac_ext
54279 cat >>conftest.$ac_ext <<_ACEOF
54280 /* end confdefs.h.  */
54281 /* Define wait4 to an innocuous variant, in case <limits.h> declares wait4.
54282    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
54283 #define wait4 innocuous_wait4
54284
54285 /* System header to define __stub macros and hopefully few prototypes,
54286     which can conflict with char wait4 (); below.
54287     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
54288     <limits.h> exists even on freestanding compilers.  */
54289
54290 #ifdef __STDC__
54291 # include <limits.h>
54292 #else
54293 # include <assert.h>
54294 #endif
54295
54296 #undef wait4
54297
54298 /* Override any gcc2 internal prototype to avoid an error.  */
54299 #ifdef __cplusplus
54300 extern "C"
54301 {
54302 #endif
54303 /* We use char because int might match the return type of a gcc2
54304    builtin and then its argument prototype would still apply.  */
54305 char wait4 ();
54306 /* The GNU C library defines this for functions which it implements
54307     to always fail with ENOSYS.  Some functions are actually named
54308     something starting with __ and the normal name is an alias.  */
54309 #if defined (__stub_wait4) || defined (__stub___wait4)
54310 choke me
54311 #else
54312 char (*f) () = wait4;
54313 #endif
54314 #ifdef __cplusplus
54315 }
54316 #endif
54317
54318 int
54319 main ()
54320 {
54321 return f != wait4;
54322   ;
54323   return 0;
54324 }
54325 _ACEOF
54326 rm -f conftest.$ac_objext conftest$ac_exeext
54327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
54328   (eval $ac_link) 2>conftest.er1
54329   ac_status=$?
54330   grep -v '^ *+' conftest.er1 >conftest.err
54331   rm -f conftest.er1
54332   cat conftest.err >&5
54333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54334   (exit $ac_status); } &&
54335          { ac_try='test -z "$ac_c_werror_flag"
54336                          || test ! -s conftest.err'
54337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54338   (eval $ac_try) 2>&5
54339   ac_status=$?
54340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54341   (exit $ac_status); }; } &&
54342          { ac_try='test -s conftest$ac_exeext'
54343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54344   (eval $ac_try) 2>&5
54345   ac_status=$?
54346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54347   (exit $ac_status); }; }; then
54348   ac_cv_func_wait4=yes
54349 else
54350   echo "$as_me: failed program was:" >&5
54351 sed 's/^/| /' conftest.$ac_ext >&5
54352
54353 ac_cv_func_wait4=no
54354 fi
54355 rm -f conftest.err conftest.$ac_objext \
54356       conftest$ac_exeext conftest.$ac_ext
54357 fi
54358 echo "$as_me:$LINENO: result: $ac_cv_func_wait4" >&5
54359 echo "${ECHO_T}$ac_cv_func_wait4" >&6
54360
54361
54362 for ac_func in waitpid
54363 do
54364 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
54365 echo "$as_me:$LINENO: checking for $ac_func" >&5
54366 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
54367 if eval "test \"\${$as_ac_var+set}\" = set"; then
54368   echo $ECHO_N "(cached) $ECHO_C" >&6
54369 else
54370   cat >conftest.$ac_ext <<_ACEOF
54371 /* confdefs.h.  */
54372 _ACEOF
54373 cat confdefs.h >>conftest.$ac_ext
54374 cat >>conftest.$ac_ext <<_ACEOF
54375 /* end confdefs.h.  */
54376 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
54377    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
54378 #define $ac_func innocuous_$ac_func
54379
54380 /* System header to define __stub macros and hopefully few prototypes,
54381     which can conflict with char $ac_func (); below.
54382     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
54383     <limits.h> exists even on freestanding compilers.  */
54384
54385 #ifdef __STDC__
54386 # include <limits.h>
54387 #else
54388 # include <assert.h>
54389 #endif
54390
54391 #undef $ac_func
54392
54393 /* Override any gcc2 internal prototype to avoid an error.  */
54394 #ifdef __cplusplus
54395 extern "C"
54396 {
54397 #endif
54398 /* We use char because int might match the return type of a gcc2
54399    builtin and then its argument prototype would still apply.  */
54400 char $ac_func ();
54401 /* The GNU C library defines this for functions which it implements
54402     to always fail with ENOSYS.  Some functions are actually named
54403     something starting with __ and the normal name is an alias.  */
54404 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
54405 choke me
54406 #else
54407 char (*f) () = $ac_func;
54408 #endif
54409 #ifdef __cplusplus
54410 }
54411 #endif
54412
54413 int
54414 main ()
54415 {
54416 return f != $ac_func;
54417   ;
54418   return 0;
54419 }
54420 _ACEOF
54421 rm -f conftest.$ac_objext conftest$ac_exeext
54422 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
54423   (eval $ac_link) 2>conftest.er1
54424   ac_status=$?
54425   grep -v '^ *+' conftest.er1 >conftest.err
54426   rm -f conftest.er1
54427   cat conftest.err >&5
54428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54429   (exit $ac_status); } &&
54430          { ac_try='test -z "$ac_c_werror_flag"
54431                          || test ! -s conftest.err'
54432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54433   (eval $ac_try) 2>&5
54434   ac_status=$?
54435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54436   (exit $ac_status); }; } &&
54437          { ac_try='test -s conftest$ac_exeext'
54438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54439   (eval $ac_try) 2>&5
54440   ac_status=$?
54441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54442   (exit $ac_status); }; }; then
54443   eval "$as_ac_var=yes"
54444 else
54445   echo "$as_me: failed program was:" >&5
54446 sed 's/^/| /' conftest.$ac_ext >&5
54447
54448 eval "$as_ac_var=no"
54449 fi
54450 rm -f conftest.err conftest.$ac_objext \
54451       conftest$ac_exeext conftest.$ac_ext
54452 fi
54453 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
54454 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
54455 if test `eval echo '${'$as_ac_var'}'` = yes; then
54456   cat >>confdefs.h <<_ACEOF
54457 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
54458 _ACEOF
54459
54460 else
54461   case $LIBOBJS in
54462     "$ac_func.$ac_objext"   | \
54463   *" $ac_func.$ac_objext"   | \
54464     "$ac_func.$ac_objext "* | \
54465   *" $ac_func.$ac_objext "* ) ;;
54466   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
54467 esac
54468
54469 fi
54470 done
54471
54472
54473
54474 for ac_func in writev
54475 do
54476 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
54477 echo "$as_me:$LINENO: checking for $ac_func" >&5
54478 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
54479 if eval "test \"\${$as_ac_var+set}\" = set"; then
54480   echo $ECHO_N "(cached) $ECHO_C" >&6
54481 else
54482   cat >conftest.$ac_ext <<_ACEOF
54483 /* confdefs.h.  */
54484 _ACEOF
54485 cat confdefs.h >>conftest.$ac_ext
54486 cat >>conftest.$ac_ext <<_ACEOF
54487 /* end confdefs.h.  */
54488 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
54489    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
54490 #define $ac_func innocuous_$ac_func
54491
54492 /* System header to define __stub macros and hopefully few prototypes,
54493     which can conflict with char $ac_func (); below.
54494     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
54495     <limits.h> exists even on freestanding compilers.  */
54496
54497 #ifdef __STDC__
54498 # include <limits.h>
54499 #else
54500 # include <assert.h>
54501 #endif
54502
54503 #undef $ac_func
54504
54505 /* Override any gcc2 internal prototype to avoid an error.  */
54506 #ifdef __cplusplus
54507 extern "C"
54508 {
54509 #endif
54510 /* We use char because int might match the return type of a gcc2
54511    builtin and then its argument prototype would still apply.  */
54512 char $ac_func ();
54513 /* The GNU C library defines this for functions which it implements
54514     to always fail with ENOSYS.  Some functions are actually named
54515     something starting with __ and the normal name is an alias.  */
54516 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
54517 choke me
54518 #else
54519 char (*f) () = $ac_func;
54520 #endif
54521 #ifdef __cplusplus
54522 }
54523 #endif
54524
54525 int
54526 main ()
54527 {
54528 return f != $ac_func;
54529   ;
54530   return 0;
54531 }
54532 _ACEOF
54533 rm -f conftest.$ac_objext conftest$ac_exeext
54534 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
54535   (eval $ac_link) 2>conftest.er1
54536   ac_status=$?
54537   grep -v '^ *+' conftest.er1 >conftest.err
54538   rm -f conftest.er1
54539   cat conftest.err >&5
54540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54541   (exit $ac_status); } &&
54542          { ac_try='test -z "$ac_c_werror_flag"
54543                          || test ! -s conftest.err'
54544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54545   (eval $ac_try) 2>&5
54546   ac_status=$?
54547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54548   (exit $ac_status); }; } &&
54549          { ac_try='test -s conftest$ac_exeext'
54550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54551   (eval $ac_try) 2>&5
54552   ac_status=$?
54553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54554   (exit $ac_status); }; }; then
54555   eval "$as_ac_var=yes"
54556 else
54557   echo "$as_me: failed program was:" >&5
54558 sed 's/^/| /' conftest.$ac_ext >&5
54559
54560 eval "$as_ac_var=no"
54561 fi
54562 rm -f conftest.err conftest.$ac_objext \
54563       conftest$ac_exeext conftest.$ac_ext
54564 fi
54565 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
54566 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
54567 if test `eval echo '${'$as_ac_var'}'` = yes; then
54568   cat >>confdefs.h <<_ACEOF
54569 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
54570 _ACEOF
54571
54572 else
54573   case $LIBOBJS in
54574     "$ac_func.$ac_objext"   | \
54575   *" $ac_func.$ac_objext"   | \
54576     "$ac_func.$ac_objext "* | \
54577   *" $ac_func.$ac_objext "* ) ;;
54578   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
54579 esac
54580
54581 fi
54582 done
54583
54584
54585
54586 ice_have_writev=no
54587
54588 for ac_func in writev
54589 do
54590 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
54591 echo "$as_me:$LINENO: checking for $ac_func" >&5
54592 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
54593 if eval "test \"\${$as_ac_var+set}\" = set"; then
54594   echo $ECHO_N "(cached) $ECHO_C" >&6
54595 else
54596   cat >conftest.$ac_ext <<_ACEOF
54597 /* confdefs.h.  */
54598 _ACEOF
54599 cat confdefs.h >>conftest.$ac_ext
54600 cat >>conftest.$ac_ext <<_ACEOF
54601 /* end confdefs.h.  */
54602 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
54603    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
54604 #define $ac_func innocuous_$ac_func
54605
54606 /* System header to define __stub macros and hopefully few prototypes,
54607     which can conflict with char $ac_func (); below.
54608     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
54609     <limits.h> exists even on freestanding compilers.  */
54610
54611 #ifdef __STDC__
54612 # include <limits.h>
54613 #else
54614 # include <assert.h>
54615 #endif
54616
54617 #undef $ac_func
54618
54619 /* Override any gcc2 internal prototype to avoid an error.  */
54620 #ifdef __cplusplus
54621 extern "C"
54622 {
54623 #endif
54624 /* We use char because int might match the return type of a gcc2
54625    builtin and then its argument prototype would still apply.  */
54626 char $ac_func ();
54627 /* The GNU C library defines this for functions which it implements
54628     to always fail with ENOSYS.  Some functions are actually named
54629     something starting with __ and the normal name is an alias.  */
54630 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
54631 choke me
54632 #else
54633 char (*f) () = $ac_func;
54634 #endif
54635 #ifdef __cplusplus
54636 }
54637 #endif
54638
54639 int
54640 main ()
54641 {
54642 return f != $ac_func;
54643   ;
54644   return 0;
54645 }
54646 _ACEOF
54647 rm -f conftest.$ac_objext conftest$ac_exeext
54648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
54649   (eval $ac_link) 2>conftest.er1
54650   ac_status=$?
54651   grep -v '^ *+' conftest.er1 >conftest.err
54652   rm -f conftest.er1
54653   cat conftest.err >&5
54654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54655   (exit $ac_status); } &&
54656          { ac_try='test -z "$ac_c_werror_flag"
54657                          || test ! -s conftest.err'
54658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54659   (eval $ac_try) 2>&5
54660   ac_status=$?
54661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54662   (exit $ac_status); }; } &&
54663          { ac_try='test -s conftest$ac_exeext'
54664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54665   (eval $ac_try) 2>&5
54666   ac_status=$?
54667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54668   (exit $ac_status); }; }; then
54669   eval "$as_ac_var=yes"
54670 else
54671   echo "$as_me: failed program was:" >&5
54672 sed 's/^/| /' conftest.$ac_ext >&5
54673
54674 eval "$as_ac_var=no"
54675 fi
54676 rm -f conftest.err conftest.$ac_objext \
54677       conftest$ac_exeext conftest.$ac_ext
54678 fi
54679 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
54680 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
54681 if test `eval echo '${'$as_ac_var'}'` = yes; then
54682   cat >>confdefs.h <<_ACEOF
54683 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
54684 _ACEOF
54685  ice_have_writev=yes
54686 fi
54687 done
54688
54689 if test "${ice_have_writev}" = yes; then
54690 echo "$as_me:$LINENO: checking for writev declaration in unistd.h sys/uio.h" >&5
54691 echo $ECHO_N "checking for writev declaration in unistd.h sys/uio.h... $ECHO_C" >&6
54692 if test "${ice_cv_have_writev_decl+set}" = set; then
54693   echo $ECHO_N "(cached) $ECHO_C" >&6
54694 else
54695
54696 ice_cv_have_writev_decl=no
54697 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
54698 ice_re_word='(^|[^a-zA-Z0-9_])'
54699 for header in unistd.h sys/uio.h; do
54700 # Check for ordinary declaration
54701 cat >conftest.$ac_ext <<_ACEOF
54702 /* confdefs.h.  */
54703 _ACEOF
54704 cat confdefs.h >>conftest.$ac_ext
54705 cat >>conftest.$ac_ext <<_ACEOF
54706 /* end confdefs.h.  */
54707 #include <$header>
54708
54709 _ACEOF
54710 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
54711   $EGREP "${ice_re_word}writev[         ]*\(" >/dev/null 2>&1; then
54712   ice_cv_have_writev_decl=yes
54713 fi
54714 rm -f conftest*
54715
54716 if test "$ice_cv_have_writev_decl" = yes; then
54717         break
54718 fi
54719 # Check for "fixed" declaration like "getpid _PARAMS((int))"
54720 cat >conftest.$ac_ext <<_ACEOF
54721 /* confdefs.h.  */
54722 _ACEOF
54723 cat confdefs.h >>conftest.$ac_ext
54724 cat >>conftest.$ac_ext <<_ACEOF
54725 /* end confdefs.h.  */
54726 #include <$header>
54727
54728 _ACEOF
54729 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
54730   $EGREP "${ice_re_word}writev[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
54731   ice_cv_have_writev_decl=yes
54732 fi
54733 rm -f conftest*
54734
54735 if test "$ice_cv_have_writev_decl" = yes; then
54736         break
54737 fi
54738 done
54739
54740 fi
54741
54742 echo "$as_me:$LINENO: result: $ice_cv_have_writev_decl" >&5
54743 echo "${ECHO_T}$ice_cv_have_writev_decl" >&6
54744 if test "$ice_cv_have_writev_decl" = yes; then
54745
54746 cat >>confdefs.h <<_ACEOF
54747 #define HAVE_WRITEV_DECL 1
54748 _ACEOF
54749
54750 fi
54751 fi
54752
54753
54754 for ac_func in strcasecmp
54755 do
54756 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
54757 echo "$as_me:$LINENO: checking for $ac_func" >&5
54758 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
54759 if eval "test \"\${$as_ac_var+set}\" = set"; then
54760   echo $ECHO_N "(cached) $ECHO_C" >&6
54761 else
54762   cat >conftest.$ac_ext <<_ACEOF
54763 /* confdefs.h.  */
54764 _ACEOF
54765 cat confdefs.h >>conftest.$ac_ext
54766 cat >>conftest.$ac_ext <<_ACEOF
54767 /* end confdefs.h.  */
54768 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
54769    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
54770 #define $ac_func innocuous_$ac_func
54771
54772 /* System header to define __stub macros and hopefully few prototypes,
54773     which can conflict with char $ac_func (); below.
54774     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
54775     <limits.h> exists even on freestanding compilers.  */
54776
54777 #ifdef __STDC__
54778 # include <limits.h>
54779 #else
54780 # include <assert.h>
54781 #endif
54782
54783 #undef $ac_func
54784
54785 /* Override any gcc2 internal prototype to avoid an error.  */
54786 #ifdef __cplusplus
54787 extern "C"
54788 {
54789 #endif
54790 /* We use char because int might match the return type of a gcc2
54791    builtin and then its argument prototype would still apply.  */
54792 char $ac_func ();
54793 /* The GNU C library defines this for functions which it implements
54794     to always fail with ENOSYS.  Some functions are actually named
54795     something starting with __ and the normal name is an alias.  */
54796 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
54797 choke me
54798 #else
54799 char (*f) () = $ac_func;
54800 #endif
54801 #ifdef __cplusplus
54802 }
54803 #endif
54804
54805 int
54806 main ()
54807 {
54808 return f != $ac_func;
54809   ;
54810   return 0;
54811 }
54812 _ACEOF
54813 rm -f conftest.$ac_objext conftest$ac_exeext
54814 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
54815   (eval $ac_link) 2>conftest.er1
54816   ac_status=$?
54817   grep -v '^ *+' conftest.er1 >conftest.err
54818   rm -f conftest.er1
54819   cat conftest.err >&5
54820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54821   (exit $ac_status); } &&
54822          { ac_try='test -z "$ac_c_werror_flag"
54823                          || test ! -s conftest.err'
54824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54825   (eval $ac_try) 2>&5
54826   ac_status=$?
54827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54828   (exit $ac_status); }; } &&
54829          { ac_try='test -s conftest$ac_exeext'
54830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54831   (eval $ac_try) 2>&5
54832   ac_status=$?
54833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54834   (exit $ac_status); }; }; then
54835   eval "$as_ac_var=yes"
54836 else
54837   echo "$as_me: failed program was:" >&5
54838 sed 's/^/| /' conftest.$ac_ext >&5
54839
54840 eval "$as_ac_var=no"
54841 fi
54842 rm -f conftest.err conftest.$ac_objext \
54843       conftest$ac_exeext conftest.$ac_ext
54844 fi
54845 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
54846 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
54847 if test `eval echo '${'$as_ac_var'}'` = yes; then
54848   cat >>confdefs.h <<_ACEOF
54849 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
54850 _ACEOF
54851
54852 else
54853   case $LIBOBJS in
54854     "$ac_func.$ac_objext"   | \
54855   *" $ac_func.$ac_objext"   | \
54856     "$ac_func.$ac_objext "* | \
54857   *" $ac_func.$ac_objext "* ) ;;
54858   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
54859 esac
54860
54861 fi
54862 done
54863
54864
54865
54866 ice_have_strcasecmp=no
54867
54868 for ac_func in strcasecmp
54869 do
54870 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
54871 echo "$as_me:$LINENO: checking for $ac_func" >&5
54872 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
54873 if eval "test \"\${$as_ac_var+set}\" = set"; then
54874   echo $ECHO_N "(cached) $ECHO_C" >&6
54875 else
54876   cat >conftest.$ac_ext <<_ACEOF
54877 /* confdefs.h.  */
54878 _ACEOF
54879 cat confdefs.h >>conftest.$ac_ext
54880 cat >>conftest.$ac_ext <<_ACEOF
54881 /* end confdefs.h.  */
54882 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
54883    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
54884 #define $ac_func innocuous_$ac_func
54885
54886 /* System header to define __stub macros and hopefully few prototypes,
54887     which can conflict with char $ac_func (); below.
54888     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
54889     <limits.h> exists even on freestanding compilers.  */
54890
54891 #ifdef __STDC__
54892 # include <limits.h>
54893 #else
54894 # include <assert.h>
54895 #endif
54896
54897 #undef $ac_func
54898
54899 /* Override any gcc2 internal prototype to avoid an error.  */
54900 #ifdef __cplusplus
54901 extern "C"
54902 {
54903 #endif
54904 /* We use char because int might match the return type of a gcc2
54905    builtin and then its argument prototype would still apply.  */
54906 char $ac_func ();
54907 /* The GNU C library defines this for functions which it implements
54908     to always fail with ENOSYS.  Some functions are actually named
54909     something starting with __ and the normal name is an alias.  */
54910 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
54911 choke me
54912 #else
54913 char (*f) () = $ac_func;
54914 #endif
54915 #ifdef __cplusplus
54916 }
54917 #endif
54918
54919 int
54920 main ()
54921 {
54922 return f != $ac_func;
54923   ;
54924   return 0;
54925 }
54926 _ACEOF
54927 rm -f conftest.$ac_objext conftest$ac_exeext
54928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
54929   (eval $ac_link) 2>conftest.er1
54930   ac_status=$?
54931   grep -v '^ *+' conftest.er1 >conftest.err
54932   rm -f conftest.er1
54933   cat conftest.err >&5
54934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54935   (exit $ac_status); } &&
54936          { ac_try='test -z "$ac_c_werror_flag"
54937                          || test ! -s conftest.err'
54938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54939   (eval $ac_try) 2>&5
54940   ac_status=$?
54941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54942   (exit $ac_status); }; } &&
54943          { ac_try='test -s conftest$ac_exeext'
54944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
54945   (eval $ac_try) 2>&5
54946   ac_status=$?
54947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
54948   (exit $ac_status); }; }; then
54949   eval "$as_ac_var=yes"
54950 else
54951   echo "$as_me: failed program was:" >&5
54952 sed 's/^/| /' conftest.$ac_ext >&5
54953
54954 eval "$as_ac_var=no"
54955 fi
54956 rm -f conftest.err conftest.$ac_objext \
54957       conftest$ac_exeext conftest.$ac_ext
54958 fi
54959 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
54960 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
54961 if test `eval echo '${'$as_ac_var'}'` = yes; then
54962   cat >>confdefs.h <<_ACEOF
54963 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
54964 _ACEOF
54965  ice_have_strcasecmp=yes
54966 fi
54967 done
54968
54969 if test "${ice_have_strcasecmp}" = yes; then
54970 echo "$as_me:$LINENO: checking for strcasecmp declaration in string.h strings.h" >&5
54971 echo $ECHO_N "checking for strcasecmp declaration in string.h strings.h... $ECHO_C" >&6
54972 if test "${ice_cv_have_strcasecmp_decl+set}" = set; then
54973   echo $ECHO_N "(cached) $ECHO_C" >&6
54974 else
54975
54976 ice_cv_have_strcasecmp_decl=no
54977 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
54978 ice_re_word='(^|[^a-zA-Z0-9_])'
54979 for header in string.h strings.h; do
54980 # Check for ordinary declaration
54981 cat >conftest.$ac_ext <<_ACEOF
54982 /* confdefs.h.  */
54983 _ACEOF
54984 cat confdefs.h >>conftest.$ac_ext
54985 cat >>conftest.$ac_ext <<_ACEOF
54986 /* end confdefs.h.  */
54987 #include <$header>
54988
54989 _ACEOF
54990 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
54991   $EGREP "${ice_re_word}strcasecmp[     ]*\(" >/dev/null 2>&1; then
54992   ice_cv_have_strcasecmp_decl=yes
54993 fi
54994 rm -f conftest*
54995
54996 if test "$ice_cv_have_strcasecmp_decl" = yes; then
54997         break
54998 fi
54999 # Check for "fixed" declaration like "getpid _PARAMS((int))"
55000 cat >conftest.$ac_ext <<_ACEOF
55001 /* confdefs.h.  */
55002 _ACEOF
55003 cat confdefs.h >>conftest.$ac_ext
55004 cat >>conftest.$ac_ext <<_ACEOF
55005 /* end confdefs.h.  */
55006 #include <$header>
55007
55008 _ACEOF
55009 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
55010   $EGREP "${ice_re_word}strcasecmp[     ]*$ice_re_params\(\(" >/dev/null 2>&1; then
55011   ice_cv_have_strcasecmp_decl=yes
55012 fi
55013 rm -f conftest*
55014
55015 if test "$ice_cv_have_strcasecmp_decl" = yes; then
55016         break
55017 fi
55018 done
55019
55020 fi
55021
55022 echo "$as_me:$LINENO: result: $ice_cv_have_strcasecmp_decl" >&5
55023 echo "${ECHO_T}$ice_cv_have_strcasecmp_decl" >&6
55024 if test "$ice_cv_have_strcasecmp_decl" = yes; then
55025
55026 cat >>confdefs.h <<_ACEOF
55027 #define HAVE_STRCASECMP_DECL 1
55028 _ACEOF
55029
55030 fi
55031 fi
55032
55033
55034
55035 for ac_func in fnmatch
55036 do
55037 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
55038 echo "$as_me:$LINENO: checking for $ac_func" >&5
55039 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
55040 if eval "test \"\${$as_ac_var+set}\" = set"; then
55041   echo $ECHO_N "(cached) $ECHO_C" >&6
55042 else
55043   cat >conftest.$ac_ext <<_ACEOF
55044 /* confdefs.h.  */
55045 _ACEOF
55046 cat confdefs.h >>conftest.$ac_ext
55047 cat >>conftest.$ac_ext <<_ACEOF
55048 /* end confdefs.h.  */
55049 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
55050    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
55051 #define $ac_func innocuous_$ac_func
55052
55053 /* System header to define __stub macros and hopefully few prototypes,
55054     which can conflict with char $ac_func (); below.
55055     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
55056     <limits.h> exists even on freestanding compilers.  */
55057
55058 #ifdef __STDC__
55059 # include <limits.h>
55060 #else
55061 # include <assert.h>
55062 #endif
55063
55064 #undef $ac_func
55065
55066 /* Override any gcc2 internal prototype to avoid an error.  */
55067 #ifdef __cplusplus
55068 extern "C"
55069 {
55070 #endif
55071 /* We use char because int might match the return type of a gcc2
55072    builtin and then its argument prototype would still apply.  */
55073 char $ac_func ();
55074 /* The GNU C library defines this for functions which it implements
55075     to always fail with ENOSYS.  Some functions are actually named
55076     something starting with __ and the normal name is an alias.  */
55077 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
55078 choke me
55079 #else
55080 char (*f) () = $ac_func;
55081 #endif
55082 #ifdef __cplusplus
55083 }
55084 #endif
55085
55086 int
55087 main ()
55088 {
55089 return f != $ac_func;
55090   ;
55091   return 0;
55092 }
55093 _ACEOF
55094 rm -f conftest.$ac_objext conftest$ac_exeext
55095 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
55096   (eval $ac_link) 2>conftest.er1
55097   ac_status=$?
55098   grep -v '^ *+' conftest.er1 >conftest.err
55099   rm -f conftest.er1
55100   cat conftest.err >&5
55101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55102   (exit $ac_status); } &&
55103          { ac_try='test -z "$ac_c_werror_flag"
55104                          || test ! -s conftest.err'
55105   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55106   (eval $ac_try) 2>&5
55107   ac_status=$?
55108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55109   (exit $ac_status); }; } &&
55110          { ac_try='test -s conftest$ac_exeext'
55111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55112   (eval $ac_try) 2>&5
55113   ac_status=$?
55114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55115   (exit $ac_status); }; }; then
55116   eval "$as_ac_var=yes"
55117 else
55118   echo "$as_me: failed program was:" >&5
55119 sed 's/^/| /' conftest.$ac_ext >&5
55120
55121 eval "$as_ac_var=no"
55122 fi
55123 rm -f conftest.err conftest.$ac_objext \
55124       conftest$ac_exeext conftest.$ac_ext
55125 fi
55126 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
55127 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
55128 if test `eval echo '${'$as_ac_var'}'` = yes; then
55129   cat >>confdefs.h <<_ACEOF
55130 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
55131 _ACEOF
55132
55133 fi
55134 done
55135
55136
55137
55138 echo "$as_me:$LINENO: checking disk device prefixes" >&5
55139 echo $ECHO_N "checking disk device prefixes... $ECHO_C" >&6
55140 dfline=`(
55141     df / | while read line; do
55142         set -- $line
55143         while test $# -gt 0; do
55144             if test "x$1" = "x/"; then
55145                 echo $line
55146                 break 2
55147             fi
55148             shift
55149         done
55150     done
55151 ) | sed 's/(//' | sed 's/)//' `
55152
55153 mount=`(
55154     set -- $dfline
55155     while test $# -gt 0; do
55156         if expr "$1" : '.*dev' >/dev/null 2>&1; then
55157             echo $1
55158             break
55159         fi
55160         shift
55161     done
55162 )`
55163
55164 if test "$DEV_PREFIX" && test "$RDEV_PREFIX"; then
55165     echo "$as_me:$LINENO: result: (predefined) $DEV_PREFIX - $RDEV_PREFIX" >&5
55166 echo "${ECHO_T}(predefined) $DEV_PREFIX - $RDEV_PREFIX" >&6
55167 else
55168     if test -d /dev/dsk; then
55169         DEV_PREFIX=/dev/dsk/
55170         if test -d /dev/rdsk; then
55171             RDEV_PREFIX=/dev/rdsk/
55172         else
55173             RDEV_PREFIX=/dev/dsk/
55174         fi
55175     elif test -d /dev; then
55176         case "$target" in
55177             *-sni-sysv4)
55178                 dev_prefix=/dev/dsk/
55179                 rdev_prefix=/dev/rdsk/
55180                 { echo "$as_me:$LINENO: WARNING: \"*** Run amsinixfixdevs on Sinix systems using VxFS.\"" >&5
55181 echo "$as_me: WARNING: \"*** Run amsinixfixdevs on Sinix systems using VxFS.\"" >&2;}
55182                 ;;
55183
55184             *)
55185                 DEV_PREFIX=/dev/
55186                 # Some systems, notably Linux, do not have raw disk devices
55187                 # names.  Check this by trying to see if a raw disk device name
55188                 # exists using the normal raw device path prepended to the
55189                 # mount point of the root filesystem.
55190                 if test "$mount"; then
55191                     dev_name="/dev/r`basename $mount`"
55192                     if test -b $dev_name -o -c $dev_name; then
55193                         RDEV_PREFIX=/dev/r
55194                     else
55195                         RDEV_PREFIX=/dev/
55196                     fi
55197                 else
55198                     RDEV_PREFIX=/dev/r
55199                 fi
55200                 ;;
55201         esac
55202     else
55203         DEV_PREFIX=/
55204         RDEV_PREFIX=/
55205     fi
55206     echo "$as_me:$LINENO: result: $DEV_PREFIX - $RDEV_PREFIX" >&5
55207 echo "${ECHO_T}$DEV_PREFIX - $RDEV_PREFIX" >&6
55208 fi
55209
55210
55211 cat >>confdefs.h <<_ACEOF
55212 #define DEV_PREFIX "${DEV_PREFIX}"
55213 _ACEOF
55214
55215
55216 cat >>confdefs.h <<_ACEOF
55217 #define RDEV_PREFIX "${RDEV_PREFIX}"
55218 _ACEOF
55219
55220
55221 case $mount in
55222     /dev/vg*)
55223         { echo "$as_me:$LINENO: WARNING: \"*** Run amhpfixdevs on HP-UX systems using /dev/vg??.\"" >&5
55224 echo "$as_me: WARNING: \"*** Run amhpfixdevs on HP-UX systems using /dev/vg??.\"" >&2;}
55225         ;;
55226 esac
55227
55228 echo "$as_me:$LINENO: checking whether posix fcntl locking works" >&5
55229 echo $ECHO_N "checking whether posix fcntl locking works... $ECHO_C" >&6
55230 if test "${amanda_cv_posix_filelocking+set}" = set; then
55231   echo $ECHO_N "(cached) $ECHO_C" >&6
55232 else
55233
55234         if test "$cross_compiling" = yes; then
55235
55236         amanda_cv_posix_filelocking="no (cannot run test)"
55237
55238 else
55239   cat >conftest.$ac_ext <<_ACEOF
55240 /* confdefs.h.  */
55241 _ACEOF
55242 cat confdefs.h >>conftest.$ac_ext
55243 cat >>conftest.$ac_ext <<_ACEOF
55244 /* end confdefs.h.  */
55245
55246 #undef  ASSERTIONS
55247 #define CONFIGURE_TEST
55248 #define USE_POSIX_FCNTL
55249 #include "${srcdir-.}/common-src/amflock.c"
55250
55251 _ACEOF
55252 rm -f conftest$ac_exeext
55253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
55254   (eval $ac_link) 2>&5
55255   ac_status=$?
55256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55257   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
55258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55259   (eval $ac_try) 2>&5
55260   ac_status=$?
55261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55262   (exit $ac_status); }; }; then
55263
55264         amanda_cv_posix_filelocking=yes
55265
55266 else
55267   echo "$as_me: program exited with status $ac_status" >&5
55268 echo "$as_me: failed program was:" >&5
55269 sed 's/^/| /' conftest.$ac_ext >&5
55270
55271 ( exit $ac_status )
55272
55273         amanda_cv_posix_filelocking="no"
55274
55275 fi
55276 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
55277 fi
55278     rm -f /tmp/conftest.lock
55279
55280 fi
55281 echo "$as_me:$LINENO: result: $amanda_cv_posix_filelocking" >&5
55282 echo "${ECHO_T}$amanda_cv_posix_filelocking" >&6
55283 if test "x$amanda_cv_posix_filelocking" = xyes; then
55284
55285 cat >>confdefs.h <<\_ACEOF
55286 #define USE_POSIX_FCNTL 1
55287 _ACEOF
55288
55289     HAS_WORKING_FILE_LOCK=1
55290 fi
55291
55292 if test -z "$HAS_WORKING_FILE_LOCK"; then
55293     echo "$as_me:$LINENO: checking whether flock locking works" >&5
55294 echo $ECHO_N "checking whether flock locking works... $ECHO_C" >&6
55295 if test "${amanda_cv_flock_filelocking+set}" = set; then
55296   echo $ECHO_N "(cached) $ECHO_C" >&6
55297 else
55298
55299             if test "$cross_compiling" = yes; then
55300
55301                     amanda_cv_flock_filelocking="no (cannot run test)"
55302
55303 else
55304   cat >conftest.$ac_ext <<_ACEOF
55305 /* confdefs.h.  */
55306 _ACEOF
55307 cat confdefs.h >>conftest.$ac_ext
55308 cat >>conftest.$ac_ext <<_ACEOF
55309 /* end confdefs.h.  */
55310
55311 #undef  ASSERTIONS
55312 #define CONFIGURE_TEST
55313 #define USE_FLOCK
55314 #include "${srcdir-.}/common-src/amflock.c"
55315
55316 _ACEOF
55317 rm -f conftest$ac_exeext
55318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
55319   (eval $ac_link) 2>&5
55320   ac_status=$?
55321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55322   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
55323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55324   (eval $ac_try) 2>&5
55325   ac_status=$?
55326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55327   (exit $ac_status); }; }; then
55328
55329                     amanda_cv_flock_filelocking="yes"
55330
55331 else
55332   echo "$as_me: program exited with status $ac_status" >&5
55333 echo "$as_me: failed program was:" >&5
55334 sed 's/^/| /' conftest.$ac_ext >&5
55335
55336 ( exit $ac_status )
55337
55338                     amanda_cv_flock_filelocking="no"
55339
55340 fi
55341 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
55342 fi
55343         rm -f /tmp/conftest.lock
55344
55345 fi
55346 echo "$as_me:$LINENO: result: $amanda_cv_flock_filelocking" >&5
55347 echo "${ECHO_T}$amanda_cv_flock_filelocking" >&6
55348     if test "x$amanda_cv_flock_filelocking" = xyes; then
55349
55350 cat >>confdefs.h <<\_ACEOF
55351 #define USE_FLOCK 1
55352 _ACEOF
55353
55354         HAS_WORKING_FILE_LOCK=1
55355     fi
55356 fi
55357
55358 if test -z "$HAS_WORKING_FILE_LOCK"; then
55359     echo "$as_me:$LINENO: checking whether lockf locking works" >&5
55360 echo $ECHO_N "checking whether lockf locking works... $ECHO_C" >&6
55361 if test "${amanda_cv_lockf_filelocking+set}" = set; then
55362   echo $ECHO_N "(cached) $ECHO_C" >&6
55363 else
55364
55365             if test "$cross_compiling" = yes; then
55366
55367                     amanda_cv_lockf_filelocking="no (cannot run test)"
55368
55369 else
55370   cat >conftest.$ac_ext <<_ACEOF
55371 /* confdefs.h.  */
55372 _ACEOF
55373 cat confdefs.h >>conftest.$ac_ext
55374 cat >>conftest.$ac_ext <<_ACEOF
55375 /* end confdefs.h.  */
55376
55377 #undef  ASSERTIONS
55378 #define CONFIGURE_TEST
55379 #define USE_LOCKF
55380 #include "${srcdir-.}/common-src/amflock.c"
55381
55382 _ACEOF
55383 rm -f conftest$ac_exeext
55384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
55385   (eval $ac_link) 2>&5
55386   ac_status=$?
55387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55388   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
55389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55390   (eval $ac_try) 2>&5
55391   ac_status=$?
55392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55393   (exit $ac_status); }; }; then
55394
55395                     amanda_cv_lockf_filelocking="yes"
55396
55397 else
55398   echo "$as_me: program exited with status $ac_status" >&5
55399 echo "$as_me: failed program was:" >&5
55400 sed 's/^/| /' conftest.$ac_ext >&5
55401
55402 ( exit $ac_status )
55403
55404                     amanda_cv_lockf_filelocking="no"
55405
55406 fi
55407 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
55408 fi
55409         rm -f /tmp/conftest.lock
55410
55411 fi
55412 echo "$as_me:$LINENO: result: $amanda_cv_lockf_filelocking" >&5
55413 echo "${ECHO_T}$amanda_cv_lockf_filelocking" >&6
55414     if test "x$amanda_cv_lockf_filelocking" = xyes; then
55415
55416 cat >>confdefs.h <<\_ACEOF
55417 #define USE_LOCKF 1
55418 _ACEOF
55419
55420         HAS_WORKING_FILE_LOCK=1
55421     fi
55422 fi
55423
55424 if test -z "$HAS_WORKING_FILE_LOCK"; then
55425     echo "$as_me:$LINENO: checking whether lnlock locking works" >&5
55426 echo $ECHO_N "checking whether lnlock locking works... $ECHO_C" >&6
55427 if test "${amanda_cv_lnlock_filelocking+set}" = set; then
55428   echo $ECHO_N "(cached) $ECHO_C" >&6
55429 else
55430
55431             if test "$cross_compiling" = yes; then
55432
55433                     amanda_cv_lnlock_filelocking="no (cannot run test)"
55434
55435 else
55436   cat >conftest.$ac_ext <<_ACEOF
55437 /* confdefs.h.  */
55438 _ACEOF
55439 cat confdefs.h >>conftest.$ac_ext
55440 cat >>conftest.$ac_ext <<_ACEOF
55441 /* end confdefs.h.  */
55442
55443 #undef  ASSERTIONS
55444 #define CONFIGURE_TEST
55445 #define USE_LNLOCK
55446 #include "${srcdir-.}/common-src/amflock.c"
55447 #include "${srcdir-.}/common-src/alloc.c"
55448 #include "${srcdir-.}/common-src/error.c"
55449 #include "${srcdir-.}/common-src/snprintf.c"
55450
55451 _ACEOF
55452 rm -f conftest$ac_exeext
55453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
55454   (eval $ac_link) 2>&5
55455   ac_status=$?
55456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55457   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
55458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
55459   (eval $ac_try) 2>&5
55460   ac_status=$?
55461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
55462   (exit $ac_status); }; }; then
55463
55464                     amanda_cv_lnlock_filelocking="yes"
55465
55466 else
55467   echo "$as_me: program exited with status $ac_status" >&5
55468 echo "$as_me: failed program was:" >&5
55469 sed 's/^/| /' conftest.$ac_ext >&5
55470
55471 ( exit $ac_status )
55472
55473                     amanda_cv_lnlock_filelocking="no"
55474
55475 fi
55476 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
55477 fi
55478         rm -f /tmp/conftest.lock
55479
55480 fi
55481 echo "$as_me:$LINENO: result: $amanda_cv_lnlock_filelocking" >&5
55482 echo "${ECHO_T}$amanda_cv_lnlock_filelocking" >&6
55483     if test "x$amanda_cv_lnlock_filelocking" = xyes; then
55484
55485 cat >>confdefs.h <<\_ACEOF
55486 #define USE_LNLOCK 1
55487 _ACEOF
55488
55489         HAS_WORKING_FILE_LOCK=1
55490     fi
55491 fi
55492
55493 if test -z "$HAS_WORKING_FILE_LOCK"; then
55494     { echo "$as_me:$LINENO: WARNING: *** No working file locking capability found!" >&5
55495 echo "$as_me: WARNING: *** No working file locking capability found!" >&2;}
55496     { echo "$as_me:$LINENO: WARNING: *** Be VERY VERY careful." >&5
55497 echo "$as_me: WARNING: *** Be VERY VERY careful." >&2;}
55498 fi
55499
55500
55501
55502
55503
55504
55505
55506
55507
55508 if test x"$NO_CLIENT_MODE" != x"true"; then
55509   WANT_CLIENT_TRUE=
55510   WANT_CLIENT_FALSE='#'
55511 else
55512   WANT_CLIENT_TRUE='#'
55513   WANT_CLIENT_FALSE=
55514 fi
55515
55516
55517
55518 if test ! -z "$SAMBA_CLIENT"; then
55519   WANT_SAMBA_TRUE=
55520   WANT_SAMBA_FALSE='#'
55521 else
55522   WANT_SAMBA_TRUE='#'
55523   WANT_SAMBA_FALSE=
55524 fi
55525
55526
55527
55528 if test x"$NO_RESTORE_MODE" != x"true"; then
55529   WANT_RESTORE_TRUE=
55530   WANT_RESTORE_FALSE='#'
55531 else
55532   WANT_RESTORE_TRUE='#'
55533   WANT_RESTORE_FALSE=
55534 fi
55535
55536
55537
55538 if test x"$NO_SERVER_MODE" != x"true"; then
55539   WANT_SERVER_TRUE=
55540   WANT_SERVER_FALSE='#'
55541 else
55542   WANT_SERVER_TRUE='#'
55543   WANT_SERVER_FALSE=
55544 fi
55545
55546
55547
55548 if test x"$NO_RECOVER_MODE" != x"true" && test x"$NO_CLIENT_MODE" != x"true"; then
55549   WANT_RECOVER_TRUE=
55550   WANT_RECOVER_FALSE='#'
55551 else
55552   WANT_RECOVER_TRUE='#'
55553   WANT_RECOVER_FALSE=
55554 fi
55555
55556
55557
55558 if test x"$NO_SERVER_MODE" != x"true" || test x"$NO_RESTORE_MODE" != x"true"; then
55559   WANT_TAPE_TRUE=
55560   WANT_TAPE_FALSE='#'
55561 else
55562   WANT_TAPE_TRUE='#'
55563   WANT_TAPE_FALSE=
55564 fi
55565
55566
55567
55568 if test x"$NO_AMPLOT_MODE" != x"true"; then
55569   WANT_AMPLOT_TRUE=
55570   WANT_AMPLOT_FALSE='#'
55571 else
55572   WANT_AMPLOT_TRUE='#'
55573   WANT_AMPLOT_FALSE=
55574 fi
55575
55576
55577
55578 if test x"$NO_SCSI_CHANGER_MODE" != x"true"; then
55579   WANT_CHG_SCSI_TRUE=
55580   WANT_CHG_SCSI_FALSE='#'
55581 else
55582   WANT_CHG_SCSI_TRUE='#'
55583   WANT_CHG_SCSI_FALSE=
55584 fi
55585
55586
55587
55588 if test x"$NO_CHIO_CHANGER_MODE" != x"true"; then
55589   WANT_CHIO_SCSI_TRUE=
55590   WANT_CHIO_SCSI_FALSE='#'
55591 else
55592   WANT_CHIO_SCSI_TRUE='#'
55593   WANT_CHIO_SCSI_FALSE=
55594 fi
55595
55596
55597
55598 if test x"$NEED_RUNTIME_PSEUDO_RELOC" = x"true"; then
55599   WANT_RUNTIME_PSEUDO_RELOC_TRUE=
55600   WANT_RUNTIME_PSEUDO_RELOC_FALSE='#'
55601 else
55602   WANT_RUNTIME_PSEUDO_RELOC_TRUE='#'
55603   WANT_RUNTIME_PSEUDO_RELOC_FALSE=
55604 fi
55605
55606
55607
55608 if test x"$NEED_SETUID_CLIENT" != x"false"; then
55609   WANT_SETUID_CLIENT_TRUE=
55610   WANT_SETUID_CLIENT_FALSE='#'
55611 else
55612   WANT_SETUID_CLIENT_TRUE='#'
55613   WANT_SETUID_CLIENT_FALSE=
55614 fi
55615
55616
55617
55618 if test x"$SSH_SECURITY_SET" = x"true"; then
55619   WANT_SSH_SECURITY_TRUE=
55620   WANT_SSH_SECURITY_FALSE='#'
55621 else
55622   WANT_SSH_SECURITY_TRUE='#'
55623   WANT_SSH_SECURITY_FALSE=
55624 fi
55625
55626
55627 case "${FORCE_USE_RUNDUMP-${USE_RUNDUMP}}" in
55628 y |  ye | yes)
55629 cat >>confdefs.h <<\_ACEOF
55630 #define USE_RUNDUMP 1
55631 _ACEOF
55632 ;;
55633 esac
55634
55635 # This is necessary so that .o files in LIBOBJS are also built via
55636 # the ANSI2KNR-filtering rules.
55637 LIBOBJS=`echo "$LIBOBJS" |
55638              sed 's,\.[^.]* ,$U&,g;s,\.[^.]*$,$U&,'`
55639 LTLIBOBJS=`echo "$LIBOBJS" |
55640            sed 's,\.[^.]* ,.lo ,g;s,\.[^.]*$,.lo,'`
55641
55642
55643 LTALLOCA=`echo "$ALLOCA" | sed 's/\.'"${ac_objext}"'/\.lo/g'`
55644
55645
55646 ## This stuff is needed for the documentation.
55647 DOC_BUILD_DATE=`date '+%d-%m-%Y'`
55648
55649
55650
55651 # Check whether --with-built-manpages or --without-built-manpages was given.
55652 if test "${with_built_manpages+set}" = set; then
55653   withval="$with_built_manpages"
55654    BUILDMANPAGES=$withval;
55655 else
55656    BUILDMANPAGES=yes;
55657 fi;
55658
55659
55660 if test "x$BUILDMANPAGES" = "xyes"; then
55661   BUILD_MAN_PAGES_TRUE=
55662   BUILD_MAN_PAGES_FALSE='#'
55663 else
55664   BUILD_MAN_PAGES_TRUE='#'
55665   BUILD_MAN_PAGES_FALSE=
55666 fi
55667
55668
55669 for ac_prog in xsltproc
55670 do
55671   # Extract the first word of "$ac_prog", so it can be a program name with args.
55672 set dummy $ac_prog; ac_word=$2
55673 echo "$as_me:$LINENO: checking for $ac_word" >&5
55674 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
55675 if test "${ac_cv_path_XSLTPROC+set}" = set; then
55676   echo $ECHO_N "(cached) $ECHO_C" >&6
55677 else
55678   case $XSLTPROC in
55679   [\\/]* | ?:[\\/]*)
55680   ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
55681   ;;
55682   *)
55683   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
55684 for as_dir in $LOCSYSPATH
55685 do
55686   IFS=$as_save_IFS
55687   test -z "$as_dir" && as_dir=.
55688   for ac_exec_ext in '' $ac_executable_extensions; do
55689   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
55690     ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
55691     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
55692     break 2
55693   fi
55694 done
55695 done
55696
55697   ;;
55698 esac
55699 fi
55700 XSLTPROC=$ac_cv_path_XSLTPROC
55701
55702 if test -n "$XSLTPROC"; then
55703   echo "$as_me:$LINENO: result: $XSLTPROC" >&5
55704 echo "${ECHO_T}$XSLTPROC" >&6
55705 else
55706   echo "$as_me:$LINENO: result: no" >&5
55707 echo "${ECHO_T}no" >&6
55708 fi
55709
55710   test -n "$XSLTPROC" && break
55711 done
55712
55713 if test -z "$XSLTPROC"; then
55714   USE_XSLTPROC=no
55715   { echo "$as_me:$LINENO: WARNING: can't find xsltproc, xsltproc support is unavailable" >&5
55716 echo "$as_me: WARNING: can't find xsltproc, xsltproc support is unavailable" >&2;}
55717 else
55718   USE_XSLTPROC=yes
55719
55720 cat >>confdefs.h <<\_ACEOF
55721 #define HAVE_XSLTPROC 1
55722 _ACEOF
55723
55724 fi
55725
55726
55727 if test "x$USE_XSLTPROC" = "xyes"; then
55728   HAVE_XSLTPROC_TRUE=
55729   HAVE_XSLTPROC_FALSE='#'
55730 else
55731   HAVE_XSLTPROC_TRUE='#'
55732   HAVE_XSLTPROC_FALSE=
55733 fi
55734
55735
55736 #### Enforce amanda code cleanliness rules.
55737 #### Done here to allow configuration code to remain intact.
55738 if test "x$CC" = "xgcc"; then
55739   AM_CFLAGS="$AM_CFLAGS -Wall"
55740   $CC -v --help 2>&1 | $GREP -- '-Wextra ' 2>&1 > /dev/null
55741   if test $? -eq 0; then
55742     AM_CFLAGS="$AM_CFLAGS -Wextra"
55743   else
55744    AM_CFLAGS="$AM_CFLAGS -W"
55745   fi
55746
55747   $CC -v --help 2>&1 | $GREP -- '-Wparentheses' 2>&1 > /dev/null
55748   if test $? -eq 0; then
55749     AM_CFLAGS="$AM_CFLAGS -Wparentheses"
55750   fi
55751
55752   $CC -v --help 2>&1 | $GREP -- '-Wdeclaration-after-statement' 2>&1 > /dev/null
55753   if test $? -eq 0; then
55754     AM_CFLAGS="$AM_CFLAGS -Wdeclaration-after-statement"
55755   fi
55756
55757   $CC -v --help 2>&1 | $GREP -- '-Wmissing-prototypes ' 2>&1 > /dev/null
55758   if test $? -eq 0; then
55759     AM_CFLAGS="$AM_CFLAGS -Wmissing-prototypes"
55760   fi
55761
55762   $CC -v --help 2>&1 | $GREP -- '-Wstrict-prototypes ' 2>&1 > /dev/null
55763   if test $? -eq 0; then
55764     AM_CFLAGS="$AM_CFLAGS -Wstrict-prototypes"
55765   fi
55766
55767   $CC -v --help 2>&1 | $GREP -- '-Wmissing-declarations ' 2>&1 > /dev/null
55768   if test $? -eq 0; then
55769     AM_CFLAGS="$AM_CFLAGS -Wmissing-declarations"
55770   fi
55771
55772   $CC -v --help 2>&1 | $GREP -- '-Wformat' 2>&1 > /dev/null
55773   if test $? -eq 0; then
55774     AM_CFLAGS="$AM_CFLAGS -Wformat"
55775   fi
55776
55777   $CC -v --help 2>&1 | $GREP -- '-Wsign-compare' 2>&1 > /dev/null
55778   if test $? -eq 0; then
55779     AM_CFLAGS="$AM_CFLAGS -Wsign-compare"
55780   fi
55781
55782   $CC -v --help 2>&1 | $GREP -- '-fno-strict-aliasing' 2>&1 > /dev/null
55783   if test $? -eq 0; then
55784     AM_CFLAGS="$AM_CFLAGS -fno-strict-aliasing"
55785   fi
55786
55787   $CC -v --help 2>&1 | $GREP -- '-Wfloat-equal' 2>&1 > /dev/null
55788   if test $? -eq 0; then
55789     AM_CFLAGS="$AM_CFLAGS -Wfloat-equal"
55790   fi
55791
55792   $CC -v --help 2>&1 | $GREP -- '-Wold-style-definition' 2>&1 > /dev/null
55793   if test $? -eq 0; then
55794     AM_CFLAGS="$AM_CFLAGS -Wold-style-definition"
55795   fi
55796 fi
55797
55798
55799                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         ac_config_files="$ac_config_files amplot/amcat.awk amplot/amplot.sh amplot/Makefile amandad-src/Makefile changer-src/chg-manual.sh changer-src/chg-multi.sh changer-src/chg-mtx.sh changer-src/chg-chs.sh changer-src/chg-rth.pl changer-src/chg-chio.pl changer-src/chg-zd-mtx.sh changer-src/Makefile changer-src/chg-juke.sh changer-src/chg-rait.sh changer-src/chg-null.sh changer-src/chg-mcutil.sh changer-src/chg-disk.sh changer-src/chg-iomega.pl client-src/patch-system.sh client-src/Makefile dumper-src/gnutar.pl dumper-src/generic-dumper.pl dumper-src/Makefile common-src/versuff.c common-src/Makefile example/amanda.conf example/Makefile example/chg-mcutil.conf example/amanda-client.conf man/Makefile docs/Makefile recover-src/Makefile oldrecover-src/Makefile restore-src/Makefile server-src/amcheckdb.sh server-src/amcleanup.sh server-src/amdump.sh server-src/amfreetapes.sh server-src/amoverview.pl server-src/amrmtape.sh server-src/amtoc.pl server-src/amverify.sh server-src/Makefile server-src/amstatus.pl server-src/amverifyrun.sh server-src/amcrypt.sh server-src/amaespipe.sh server-src/amcrypt-ossl.sh server-src/amcrypt-ossl-asym.sh tape-src/Makefile config/Makefile Makefile"
55800
55801
55802 cat >confcache <<\_ACEOF
55803 # This file is a shell script that caches the results of configure
55804 # tests run on this system so they can be shared between configure
55805 # scripts and configure runs, see configure's option --config-cache.
55806 # It is not useful on other systems.  If it contains results you don't
55807 # want to keep, you may remove or edit it.
55808 #
55809 # config.status only pays attention to the cache file if you give it
55810 # the --recheck option to rerun configure.
55811 #
55812 # `ac_cv_env_foo' variables (set or unset) will be overridden when
55813 # loading this file, other *unset* `ac_cv_foo' will be assigned the
55814 # following values.
55815
55816 _ACEOF
55817
55818 # The following way of writing the cache mishandles newlines in values,
55819 # but we know of no workaround that is simple, portable, and efficient.
55820 # So, don't put newlines in cache variables' values.
55821 # Ultrix sh set writes to stderr and can't be redirected directly,
55822 # and sets the high bit in the cache file unless we assign to the vars.
55823 {
55824   (set) 2>&1 |
55825     case `(ac_space=' '; set | grep ac_space) 2>&1` in
55826     *ac_space=\ *)
55827       # `set' does not quote correctly, so add quotes (double-quote
55828       # substitution turns \\\\ into \\, and sed turns \\ into \).
55829       sed -n \
55830         "s/'/'\\\\''/g;
55831           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
55832       ;;
55833     *)
55834       # `set' quotes correctly as required by POSIX, so do not add quotes.
55835       sed -n \
55836         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
55837       ;;
55838     esac;
55839 } |
55840   sed '
55841      t clear
55842      : clear
55843      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
55844      t end
55845      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
55846      : end' >>confcache
55847 if diff $cache_file confcache >/dev/null 2>&1; then :; else
55848   if test -w $cache_file; then
55849     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
55850     cat confcache >$cache_file
55851   else
55852     echo "not updating unwritable cache $cache_file"
55853   fi
55854 fi
55855 rm -f confcache
55856
55857 test "x$prefix" = xNONE && prefix=$ac_default_prefix
55858 # Let make expand exec_prefix.
55859 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
55860
55861 # VPATH may cause trouble with some makes, so we remove $(srcdir),
55862 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
55863 # trailing colons and then remove the whole line if VPATH becomes empty
55864 # (actually we leave an empty line to preserve line numbers).
55865 if test "x$srcdir" = x.; then
55866   ac_vpsub='/^[  ]*VPATH[        ]*=/{
55867 s/:*\$(srcdir):*/:/;
55868 s/:*\${srcdir}:*/:/;
55869 s/:*@srcdir@:*/:/;
55870 s/^\([^=]*=[     ]*\):*/\1/;
55871 s/:*$//;
55872 s/^[^=]*=[       ]*$//;
55873 }'
55874 fi
55875
55876 DEFS=-DHAVE_CONFIG_H
55877
55878 ac_libobjs=
55879 ac_ltlibobjs=
55880 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
55881   # 1. Remove the extension, and $U if already installed.
55882   ac_i=`echo "$ac_i" |
55883          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
55884   # 2. Add them.
55885   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
55886   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
55887 done
55888 LIBOBJS=$ac_libobjs
55889
55890 LTLIBOBJS=$ac_ltlibobjs
55891
55892
55893 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
55894   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
55895 Usually this means the macro was only invoked conditionally." >&5
55896 echo "$as_me: error: conditional \"AMDEP\" was never defined.
55897 Usually this means the macro was only invoked conditionally." >&2;}
55898    { (exit 1); exit 1; }; }
55899 fi
55900 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
55901   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
55902 Usually this means the macro was only invoked conditionally." >&5
55903 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
55904 Usually this means the macro was only invoked conditionally." >&2;}
55905    { (exit 1); exit 1; }; }
55906 fi
55907 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
55908   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
55909 Usually this means the macro was only invoked conditionally." >&5
55910 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
55911 Usually this means the macro was only invoked conditionally." >&2;}
55912    { (exit 1); exit 1; }; }
55913 fi
55914 if test -z "${WANT_CLIENT_TRUE}" && test -z "${WANT_CLIENT_FALSE}"; then
55915   { { echo "$as_me:$LINENO: error: conditional \"WANT_CLIENT\" was never defined.
55916 Usually this means the macro was only invoked conditionally." >&5
55917 echo "$as_me: error: conditional \"WANT_CLIENT\" was never defined.
55918 Usually this means the macro was only invoked conditionally." >&2;}
55919    { (exit 1); exit 1; }; }
55920 fi
55921 if test -z "${WANT_SAMBA_TRUE}" && test -z "${WANT_SAMBA_FALSE}"; then
55922   { { echo "$as_me:$LINENO: error: conditional \"WANT_SAMBA\" was never defined.
55923 Usually this means the macro was only invoked conditionally." >&5
55924 echo "$as_me: error: conditional \"WANT_SAMBA\" was never defined.
55925 Usually this means the macro was only invoked conditionally." >&2;}
55926    { (exit 1); exit 1; }; }
55927 fi
55928 if test -z "${WANT_RESTORE_TRUE}" && test -z "${WANT_RESTORE_FALSE}"; then
55929   { { echo "$as_me:$LINENO: error: conditional \"WANT_RESTORE\" was never defined.
55930 Usually this means the macro was only invoked conditionally." >&5
55931 echo "$as_me: error: conditional \"WANT_RESTORE\" was never defined.
55932 Usually this means the macro was only invoked conditionally." >&2;}
55933    { (exit 1); exit 1; }; }
55934 fi
55935 if test -z "${WANT_SERVER_TRUE}" && test -z "${WANT_SERVER_FALSE}"; then
55936   { { echo "$as_me:$LINENO: error: conditional \"WANT_SERVER\" was never defined.
55937 Usually this means the macro was only invoked conditionally." >&5
55938 echo "$as_me: error: conditional \"WANT_SERVER\" was never defined.
55939 Usually this means the macro was only invoked conditionally." >&2;}
55940    { (exit 1); exit 1; }; }
55941 fi
55942 if test -z "${WANT_RECOVER_TRUE}" && test -z "${WANT_RECOVER_FALSE}"; then
55943   { { echo "$as_me:$LINENO: error: conditional \"WANT_RECOVER\" was never defined.
55944 Usually this means the macro was only invoked conditionally." >&5
55945 echo "$as_me: error: conditional \"WANT_RECOVER\" was never defined.
55946 Usually this means the macro was only invoked conditionally." >&2;}
55947    { (exit 1); exit 1; }; }
55948 fi
55949 if test -z "${WANT_TAPE_TRUE}" && test -z "${WANT_TAPE_FALSE}"; then
55950   { { echo "$as_me:$LINENO: error: conditional \"WANT_TAPE\" was never defined.
55951 Usually this means the macro was only invoked conditionally." >&5
55952 echo "$as_me: error: conditional \"WANT_TAPE\" was never defined.
55953 Usually this means the macro was only invoked conditionally." >&2;}
55954    { (exit 1); exit 1; }; }
55955 fi
55956 if test -z "${WANT_AMPLOT_TRUE}" && test -z "${WANT_AMPLOT_FALSE}"; then
55957   { { echo "$as_me:$LINENO: error: conditional \"WANT_AMPLOT\" was never defined.
55958 Usually this means the macro was only invoked conditionally." >&5
55959 echo "$as_me: error: conditional \"WANT_AMPLOT\" was never defined.
55960 Usually this means the macro was only invoked conditionally." >&2;}
55961    { (exit 1); exit 1; }; }
55962 fi
55963 if test -z "${WANT_CHG_SCSI_TRUE}" && test -z "${WANT_CHG_SCSI_FALSE}"; then
55964   { { echo "$as_me:$LINENO: error: conditional \"WANT_CHG_SCSI\" was never defined.
55965 Usually this means the macro was only invoked conditionally." >&5
55966 echo "$as_me: error: conditional \"WANT_CHG_SCSI\" was never defined.
55967 Usually this means the macro was only invoked conditionally." >&2;}
55968    { (exit 1); exit 1; }; }
55969 fi
55970 if test -z "${WANT_CHIO_SCSI_TRUE}" && test -z "${WANT_CHIO_SCSI_FALSE}"; then
55971   { { echo "$as_me:$LINENO: error: conditional \"WANT_CHIO_SCSI\" was never defined.
55972 Usually this means the macro was only invoked conditionally." >&5
55973 echo "$as_me: error: conditional \"WANT_CHIO_SCSI\" was never defined.
55974 Usually this means the macro was only invoked conditionally." >&2;}
55975    { (exit 1); exit 1; }; }
55976 fi
55977 if test -z "${WANT_RUNTIME_PSEUDO_RELOC_TRUE}" && test -z "${WANT_RUNTIME_PSEUDO_RELOC_FALSE}"; then
55978   { { echo "$as_me:$LINENO: error: conditional \"WANT_RUNTIME_PSEUDO_RELOC\" was never defined.
55979 Usually this means the macro was only invoked conditionally." >&5
55980 echo "$as_me: error: conditional \"WANT_RUNTIME_PSEUDO_RELOC\" was never defined.
55981 Usually this means the macro was only invoked conditionally." >&2;}
55982    { (exit 1); exit 1; }; }
55983 fi
55984 if test -z "${WANT_SETUID_CLIENT_TRUE}" && test -z "${WANT_SETUID_CLIENT_FALSE}"; then
55985   { { echo "$as_me:$LINENO: error: conditional \"WANT_SETUID_CLIENT\" was never defined.
55986 Usually this means the macro was only invoked conditionally." >&5
55987 echo "$as_me: error: conditional \"WANT_SETUID_CLIENT\" was never defined.
55988 Usually this means the macro was only invoked conditionally." >&2;}
55989    { (exit 1); exit 1; }; }
55990 fi
55991 if test -z "${WANT_SSH_SECURITY_TRUE}" && test -z "${WANT_SSH_SECURITY_FALSE}"; then
55992   { { echo "$as_me:$LINENO: error: conditional \"WANT_SSH_SECURITY\" was never defined.
55993 Usually this means the macro was only invoked conditionally." >&5
55994 echo "$as_me: error: conditional \"WANT_SSH_SECURITY\" was never defined.
55995 Usually this means the macro was only invoked conditionally." >&2;}
55996    { (exit 1); exit 1; }; }
55997 fi
55998 if test -z "${BUILD_MAN_PAGES_TRUE}" && test -z "${BUILD_MAN_PAGES_FALSE}"; then
55999   { { echo "$as_me:$LINENO: error: conditional \"BUILD_MAN_PAGES\" was never defined.
56000 Usually this means the macro was only invoked conditionally." >&5
56001 echo "$as_me: error: conditional \"BUILD_MAN_PAGES\" was never defined.
56002 Usually this means the macro was only invoked conditionally." >&2;}
56003    { (exit 1); exit 1; }; }
56004 fi
56005 if test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then
56006   { { echo "$as_me:$LINENO: error: conditional \"HAVE_XSLTPROC\" was never defined.
56007 Usually this means the macro was only invoked conditionally." >&5
56008 echo "$as_me: error: conditional \"HAVE_XSLTPROC\" was never defined.
56009 Usually this means the macro was only invoked conditionally." >&2;}
56010    { (exit 1); exit 1; }; }
56011 fi
56012
56013 : ${CONFIG_STATUS=./config.status}
56014 ac_clean_files_save=$ac_clean_files
56015 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
56016 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
56017 echo "$as_me: creating $CONFIG_STATUS" >&6;}
56018 cat >$CONFIG_STATUS <<_ACEOF
56019 #! $SHELL
56020 # Generated by $as_me.
56021 # Run this file to recreate the current configuration.
56022 # Compiler output produced by configure, useful for debugging
56023 # configure, is in config.log if it exists.
56024
56025 debug=false
56026 ac_cs_recheck=false
56027 ac_cs_silent=false
56028 SHELL=\${CONFIG_SHELL-$SHELL}
56029 _ACEOF
56030
56031 cat >>$CONFIG_STATUS <<\_ACEOF
56032 ## --------------------- ##
56033 ## M4sh Initialization.  ##
56034 ## --------------------- ##
56035
56036 # Be Bourne compatible
56037 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
56038   emulate sh
56039   NULLCMD=:
56040   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
56041   # is contrary to our usage.  Disable this feature.
56042   alias -g '${1+"$@"}'='"$@"'
56043 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
56044   set -o posix
56045 fi
56046 DUALCASE=1; export DUALCASE # for MKS sh
56047
56048 # Support unset when possible.
56049 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
56050   as_unset=unset
56051 else
56052   as_unset=false
56053 fi
56054
56055
56056 # Work around bugs in pre-3.0 UWIN ksh.
56057 $as_unset ENV MAIL MAILPATH
56058 PS1='$ '
56059 PS2='> '
56060 PS4='+ '
56061
56062 # NLS nuisances.
56063 for as_var in \
56064   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
56065   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
56066   LC_TELEPHONE LC_TIME
56067 do
56068   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
56069     eval $as_var=C; export $as_var
56070   else
56071     $as_unset $as_var
56072   fi
56073 done
56074
56075 # Required to use basename.
56076 if expr a : '\(a\)' >/dev/null 2>&1; then
56077   as_expr=expr
56078 else
56079   as_expr=false
56080 fi
56081
56082 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
56083   as_basename=basename
56084 else
56085   as_basename=false
56086 fi
56087
56088
56089 # Name of the executable.
56090 as_me=`$as_basename "$0" ||
56091 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
56092          X"$0" : 'X\(//\)$' \| \
56093          X"$0" : 'X\(/\)$' \| \
56094          .     : '\(.\)' 2>/dev/null ||
56095 echo X/"$0" |
56096     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
56097           /^X\/\(\/\/\)$/{ s//\1/; q; }
56098           /^X\/\(\/\).*/{ s//\1/; q; }
56099           s/.*/./; q'`
56100
56101
56102 # PATH needs CR, and LINENO needs CR and PATH.
56103 # Avoid depending upon Character Ranges.
56104 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
56105 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
56106 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
56107 as_cr_digits='0123456789'
56108 as_cr_alnum=$as_cr_Letters$as_cr_digits
56109
56110 # The user is always right.
56111 if test "${PATH_SEPARATOR+set}" != set; then
56112   echo "#! /bin/sh" >conf$$.sh
56113   echo  "exit 0"   >>conf$$.sh
56114   chmod +x conf$$.sh
56115   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
56116     PATH_SEPARATOR=';'
56117   else
56118     PATH_SEPARATOR=:
56119   fi
56120   rm -f conf$$.sh
56121 fi
56122
56123
56124   as_lineno_1=$LINENO
56125   as_lineno_2=$LINENO
56126   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
56127   test "x$as_lineno_1" != "x$as_lineno_2" &&
56128   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
56129   # Find who we are.  Look in the path if we contain no path at all
56130   # relative or not.
56131   case $0 in
56132     *[\\/]* ) as_myself=$0 ;;
56133     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
56134 for as_dir in $PATH
56135 do
56136   IFS=$as_save_IFS
56137   test -z "$as_dir" && as_dir=.
56138   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
56139 done
56140
56141        ;;
56142   esac
56143   # We did not find ourselves, most probably we were run as `sh COMMAND'
56144   # in which case we are not to be found in the path.
56145   if test "x$as_myself" = x; then
56146     as_myself=$0
56147   fi
56148   if test ! -f "$as_myself"; then
56149     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
56150 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
56151    { (exit 1); exit 1; }; }
56152   fi
56153   case $CONFIG_SHELL in
56154   '')
56155     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
56156 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
56157 do
56158   IFS=$as_save_IFS
56159   test -z "$as_dir" && as_dir=.
56160   for as_base in sh bash ksh sh5; do
56161          case $as_dir in
56162          /*)
56163            if ("$as_dir/$as_base" -c '
56164   as_lineno_1=$LINENO
56165   as_lineno_2=$LINENO
56166   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
56167   test "x$as_lineno_1" != "x$as_lineno_2" &&
56168   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
56169              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
56170              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
56171              CONFIG_SHELL=$as_dir/$as_base
56172              export CONFIG_SHELL
56173              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
56174            fi;;
56175          esac
56176        done
56177 done
56178 ;;
56179   esac
56180
56181   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
56182   # uniformly replaced by the line number.  The first 'sed' inserts a
56183   # line-number line before each line; the second 'sed' does the real
56184   # work.  The second script uses 'N' to pair each line-number line
56185   # with the numbered line, and appends trailing '-' during
56186   # substitution so that $LINENO is not a special case at line end.
56187   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
56188   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
56189   sed '=' <$as_myself |
56190     sed '
56191       N
56192       s,$,-,
56193       : loop
56194       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
56195       t loop
56196       s,-$,,
56197       s,^['$as_cr_digits']*\n,,
56198     ' >$as_me.lineno &&
56199   chmod +x $as_me.lineno ||
56200     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
56201 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
56202    { (exit 1); exit 1; }; }
56203
56204   # Don't try to exec as it changes $[0], causing all sort of problems
56205   # (the dirname of $[0] is not the place where we might find the
56206   # original and so on.  Autoconf is especially sensible to this).
56207   . ./$as_me.lineno
56208   # Exit status is that of the last command.
56209   exit
56210 }
56211
56212
56213 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
56214   *c*,-n*) ECHO_N= ECHO_C='
56215 ' ECHO_T='      ' ;;
56216   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
56217   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
56218 esac
56219
56220 if expr a : '\(a\)' >/dev/null 2>&1; then
56221   as_expr=expr
56222 else
56223   as_expr=false
56224 fi
56225
56226 rm -f conf$$ conf$$.exe conf$$.file
56227 echo >conf$$.file
56228 if ln -s conf$$.file conf$$ 2>/dev/null; then
56229   # We could just check for DJGPP; but this test a) works b) is more generic
56230   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
56231   if test -f conf$$.exe; then
56232     # Don't use ln at all; we don't have any links
56233     as_ln_s='cp -p'
56234   else
56235     as_ln_s='ln -s'
56236   fi
56237 elif ln conf$$.file conf$$ 2>/dev/null; then
56238   as_ln_s=ln
56239 else
56240   as_ln_s='cp -p'
56241 fi
56242 rm -f conf$$ conf$$.exe conf$$.file
56243
56244 if mkdir -p . 2>/dev/null; then
56245   as_mkdir_p=:
56246 else
56247   test -d ./-p && rmdir ./-p
56248   as_mkdir_p=false
56249 fi
56250
56251 as_executable_p="test -f"
56252
56253 # Sed expression to map a string onto a valid CPP name.
56254 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
56255
56256 # Sed expression to map a string onto a valid variable name.
56257 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
56258
56259
56260 # IFS
56261 # We need space, tab and new line, in precisely that order.
56262 as_nl='
56263 '
56264 IFS="   $as_nl"
56265
56266 # CDPATH.
56267 $as_unset CDPATH
56268
56269 exec 6>&1
56270
56271 # Open the log real soon, to keep \$[0] and so on meaningful, and to
56272 # report actual input values of CONFIG_FILES etc. instead of their
56273 # values after options handling.  Logging --version etc. is OK.
56274 exec 5>>config.log
56275 {
56276   echo
56277   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
56278 ## Running $as_me. ##
56279 _ASBOX
56280 } >&5
56281 cat >&5 <<_CSEOF
56282
56283 This file was extended by $as_me, which was
56284 generated by GNU Autoconf 2.59.  Invocation command line was
56285
56286   CONFIG_FILES    = $CONFIG_FILES
56287   CONFIG_HEADERS  = $CONFIG_HEADERS
56288   CONFIG_LINKS    = $CONFIG_LINKS
56289   CONFIG_COMMANDS = $CONFIG_COMMANDS
56290   $ $0 $@
56291
56292 _CSEOF
56293 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
56294 echo >&5
56295 _ACEOF
56296
56297 # Files that config.status was made for.
56298 if test -n "$ac_config_files"; then
56299   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
56300 fi
56301
56302 if test -n "$ac_config_headers"; then
56303   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
56304 fi
56305
56306 if test -n "$ac_config_links"; then
56307   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
56308 fi
56309
56310 if test -n "$ac_config_commands"; then
56311   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
56312 fi
56313
56314 cat >>$CONFIG_STATUS <<\_ACEOF
56315
56316 ac_cs_usage="\
56317 \`$as_me' instantiates files from templates according to the
56318 current configuration.
56319
56320 Usage: $0 [OPTIONS] [FILE]...
56321
56322   -h, --help       print this help, then exit
56323   -V, --version    print version number, then exit
56324   -q, --quiet      do not print progress messages
56325   -d, --debug      don't remove temporary files
56326       --recheck    update $as_me by reconfiguring in the same conditions
56327   --file=FILE[:TEMPLATE]
56328                    instantiate the configuration file FILE
56329   --header=FILE[:TEMPLATE]
56330                    instantiate the configuration header FILE
56331
56332 Configuration files:
56333 $config_files
56334
56335 Configuration headers:
56336 $config_headers
56337
56338 Configuration commands:
56339 $config_commands
56340
56341 Report bugs to <bug-autoconf@gnu.org>."
56342 _ACEOF
56343
56344 cat >>$CONFIG_STATUS <<_ACEOF
56345 ac_cs_version="\\
56346 config.status
56347 configured by $0, generated by GNU Autoconf 2.59,
56348   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
56349
56350 Copyright (C) 2003 Free Software Foundation, Inc.
56351 This config.status script is free software; the Free Software Foundation
56352 gives unlimited permission to copy, distribute and modify it."
56353 srcdir=$srcdir
56354 INSTALL="$INSTALL"
56355 _ACEOF
56356
56357 cat >>$CONFIG_STATUS <<\_ACEOF
56358 # If no file are specified by the user, then we need to provide default
56359 # value.  By we need to know if files were specified by the user.
56360 ac_need_defaults=:
56361 while test $# != 0
56362 do
56363   case $1 in
56364   --*=*)
56365     ac_option=`expr "x$1" : 'x\([^=]*\)='`
56366     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
56367     ac_shift=:
56368     ;;
56369   -*)
56370     ac_option=$1
56371     ac_optarg=$2
56372     ac_shift=shift
56373     ;;
56374   *) # This is not an option, so the user has probably given explicit
56375      # arguments.
56376      ac_option=$1
56377      ac_need_defaults=false;;
56378   esac
56379
56380   case $ac_option in
56381   # Handling of the options.
56382 _ACEOF
56383 cat >>$CONFIG_STATUS <<\_ACEOF
56384   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
56385     ac_cs_recheck=: ;;
56386   --version | --vers* | -V )
56387     echo "$ac_cs_version"; exit 0 ;;
56388   --he | --h)
56389     # Conflict between --help and --header
56390     { { echo "$as_me:$LINENO: error: ambiguous option: $1
56391 Try \`$0 --help' for more information." >&5
56392 echo "$as_me: error: ambiguous option: $1
56393 Try \`$0 --help' for more information." >&2;}
56394    { (exit 1); exit 1; }; };;
56395   --help | --hel | -h )
56396     echo "$ac_cs_usage"; exit 0 ;;
56397   --debug | --d* | -d )
56398     debug=: ;;
56399   --file | --fil | --fi | --f )
56400     $ac_shift
56401     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
56402     ac_need_defaults=false;;
56403   --header | --heade | --head | --hea )
56404     $ac_shift
56405     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
56406     ac_need_defaults=false;;
56407   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
56408   | -silent | --silent | --silen | --sile | --sil | --si | --s)
56409     ac_cs_silent=: ;;
56410
56411   # This is an error.
56412   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
56413 Try \`$0 --help' for more information." >&5
56414 echo "$as_me: error: unrecognized option: $1
56415 Try \`$0 --help' for more information." >&2;}
56416    { (exit 1); exit 1; }; } ;;
56417
56418   *) ac_config_targets="$ac_config_targets $1" ;;
56419
56420   esac
56421   shift
56422 done
56423
56424 ac_configure_extra_args=
56425
56426 if $ac_cs_silent; then
56427   exec 6>/dev/null
56428   ac_configure_extra_args="$ac_configure_extra_args --silent"
56429 fi
56430
56431 _ACEOF
56432 cat >>$CONFIG_STATUS <<_ACEOF
56433 if \$ac_cs_recheck; then
56434   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
56435   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
56436 fi
56437
56438 _ACEOF
56439
56440 cat >>$CONFIG_STATUS <<_ACEOF
56441 #
56442 # INIT-COMMANDS section.
56443 #
56444
56445 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
56446 # variables for create stdint.h replacement
56447 PACKAGE="$PACKAGE"
56448 VERSION="$VERSION"
56449 ac_stdint_h="$ac_stdint_h"
56450 _ac_stdint_h=`echo "_$PACKAGE-$ac_stdint_h" | $as_tr_cpp`
56451 ac_cv_stdint_message="$ac_cv_stdint_message"
56452 ac_cv_header_stdint_t="$ac_cv_header_stdint_t"
56453 ac_cv_header_stdint_x="$ac_cv_header_stdint_x"
56454 ac_cv_header_stdint_o="$ac_cv_header_stdint_o"
56455 ac_cv_header_stdint_u="$ac_cv_header_stdint_u"
56456 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
56457 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
56458 ac_cv_char_data_model="$ac_cv_char_data_model"
56459 ac_cv_long_data_model="$ac_cv_long_data_model"
56460 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
56461 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
56462 ac_cv_type_intmax_t="$ac_cv_type_intmax_t"
56463
56464
56465 _ACEOF
56466
56467
56468
56469 cat >>$CONFIG_STATUS <<\_ACEOF
56470 for ac_config_target in $ac_config_targets
56471 do
56472   case "$ac_config_target" in
56473   # Handling of arguments.
56474   "amplot/amcat.awk" ) CONFIG_FILES="$CONFIG_FILES amplot/amcat.awk" ;;
56475   "amplot/amplot.sh" ) CONFIG_FILES="$CONFIG_FILES amplot/amplot.sh" ;;
56476   "amplot/Makefile" ) CONFIG_FILES="$CONFIG_FILES amplot/Makefile" ;;
56477   "amandad-src/Makefile" ) CONFIG_FILES="$CONFIG_FILES amandad-src/Makefile" ;;
56478   "changer-src/chg-manual.sh" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-manual.sh" ;;
56479   "changer-src/chg-multi.sh" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-multi.sh" ;;
56480   "changer-src/chg-mtx.sh" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-mtx.sh" ;;
56481   "changer-src/chg-chs.sh" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-chs.sh" ;;
56482   "changer-src/chg-rth.pl" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-rth.pl" ;;
56483   "changer-src/chg-chio.pl" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-chio.pl" ;;
56484   "changer-src/chg-zd-mtx.sh" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-zd-mtx.sh" ;;
56485   "changer-src/Makefile" ) CONFIG_FILES="$CONFIG_FILES changer-src/Makefile" ;;
56486   "changer-src/chg-juke.sh" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-juke.sh" ;;
56487   "changer-src/chg-rait.sh" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-rait.sh" ;;
56488   "changer-src/chg-null.sh" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-null.sh" ;;
56489   "changer-src/chg-mcutil.sh" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-mcutil.sh" ;;
56490   "changer-src/chg-disk.sh" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-disk.sh" ;;
56491   "changer-src/chg-iomega.pl" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-iomega.pl" ;;
56492   "client-src/patch-system.sh" ) CONFIG_FILES="$CONFIG_FILES client-src/patch-system.sh" ;;
56493   "client-src/Makefile" ) CONFIG_FILES="$CONFIG_FILES client-src/Makefile" ;;
56494   "dumper-src/gnutar.pl" ) CONFIG_FILES="$CONFIG_FILES dumper-src/gnutar.pl" ;;
56495   "dumper-src/generic-dumper.pl" ) CONFIG_FILES="$CONFIG_FILES dumper-src/generic-dumper.pl" ;;
56496   "dumper-src/Makefile" ) CONFIG_FILES="$CONFIG_FILES dumper-src/Makefile" ;;
56497   "common-src/versuff.c" ) CONFIG_FILES="$CONFIG_FILES common-src/versuff.c" ;;
56498   "common-src/Makefile" ) CONFIG_FILES="$CONFIG_FILES common-src/Makefile" ;;
56499   "example/amanda.conf" ) CONFIG_FILES="$CONFIG_FILES example/amanda.conf" ;;
56500   "example/Makefile" ) CONFIG_FILES="$CONFIG_FILES example/Makefile" ;;
56501   "example/chg-mcutil.conf" ) CONFIG_FILES="$CONFIG_FILES example/chg-mcutil.conf" ;;
56502   "example/amanda-client.conf" ) CONFIG_FILES="$CONFIG_FILES example/amanda-client.conf" ;;
56503   "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
56504   "docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
56505   "recover-src/Makefile" ) CONFIG_FILES="$CONFIG_FILES recover-src/Makefile" ;;
56506   "oldrecover-src/Makefile" ) CONFIG_FILES="$CONFIG_FILES oldrecover-src/Makefile" ;;
56507   "restore-src/Makefile" ) CONFIG_FILES="$CONFIG_FILES restore-src/Makefile" ;;
56508   "server-src/amcheckdb.sh" ) CONFIG_FILES="$CONFIG_FILES server-src/amcheckdb.sh" ;;
56509   "server-src/amcleanup.sh" ) CONFIG_FILES="$CONFIG_FILES server-src/amcleanup.sh" ;;
56510   "server-src/amdump.sh" ) CONFIG_FILES="$CONFIG_FILES server-src/amdump.sh" ;;
56511   "server-src/amfreetapes.sh" ) CONFIG_FILES="$CONFIG_FILES server-src/amfreetapes.sh" ;;
56512   "server-src/amoverview.pl" ) CONFIG_FILES="$CONFIG_FILES server-src/amoverview.pl" ;;
56513   "server-src/amrmtape.sh" ) CONFIG_FILES="$CONFIG_FILES server-src/amrmtape.sh" ;;
56514   "server-src/amtoc.pl" ) CONFIG_FILES="$CONFIG_FILES server-src/amtoc.pl" ;;
56515   "server-src/amverify.sh" ) CONFIG_FILES="$CONFIG_FILES server-src/amverify.sh" ;;
56516   "server-src/Makefile" ) CONFIG_FILES="$CONFIG_FILES server-src/Makefile" ;;
56517   "server-src/amstatus.pl" ) CONFIG_FILES="$CONFIG_FILES server-src/amstatus.pl" ;;
56518   "server-src/amverifyrun.sh" ) CONFIG_FILES="$CONFIG_FILES server-src/amverifyrun.sh" ;;
56519   "server-src/amcrypt.sh" ) CONFIG_FILES="$CONFIG_FILES server-src/amcrypt.sh" ;;
56520   "server-src/amaespipe.sh" ) CONFIG_FILES="$CONFIG_FILES server-src/amaespipe.sh" ;;
56521   "server-src/amcrypt-ossl.sh" ) CONFIG_FILES="$CONFIG_FILES server-src/amcrypt-ossl.sh" ;;
56522   "server-src/amcrypt-ossl-asym.sh" ) CONFIG_FILES="$CONFIG_FILES server-src/amcrypt-ossl-asym.sh" ;;
56523   "tape-src/Makefile" ) CONFIG_FILES="$CONFIG_FILES tape-src/Makefile" ;;
56524   "config/Makefile" ) CONFIG_FILES="$CONFIG_FILES config/Makefile" ;;
56525   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
56526   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
56527   "$ac_stdint_h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS $ac_stdint_h" ;;
56528   "config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
56529   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
56530 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
56531    { (exit 1); exit 1; }; };;
56532   esac
56533 done
56534
56535 # If the user did not use the arguments to specify the items to instantiate,
56536 # then the envvar interface is used.  Set only those that are not.
56537 # We use the long form for the default assignment because of an extremely
56538 # bizarre bug on SunOS 4.1.3.
56539 if $ac_need_defaults; then
56540   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
56541   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
56542   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
56543 fi
56544
56545 # Have a temporary directory for convenience.  Make it in the build tree
56546 # simply because there is no reason to put it here, and in addition,
56547 # creating and moving files from /tmp can sometimes cause problems.
56548 # Create a temporary directory, and hook for its removal unless debugging.
56549 $debug ||
56550 {
56551   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
56552   trap '{ (exit 1); exit 1; }' 1 2 13 15
56553 }
56554
56555 # Create a (secure) tmp directory for tmp files.
56556
56557 {
56558   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
56559   test -n "$tmp" && test -d "$tmp"
56560 }  ||
56561 {
56562   tmp=./confstat$$-$RANDOM
56563   (umask 077 && mkdir $tmp)
56564 } ||
56565 {
56566    echo "$me: cannot create a temporary directory in ." >&2
56567    { (exit 1); exit 1; }
56568 }
56569
56570 _ACEOF
56571
56572 cat >>$CONFIG_STATUS <<_ACEOF
56573
56574 #
56575 # CONFIG_FILES section.
56576 #
56577
56578 # No need to generate the scripts if there are no CONFIG_FILES.
56579 # This happens for instance when ./config.status config.h
56580 if test -n "\$CONFIG_FILES"; then
56581   # Protect against being on the right side of a sed subst in config.status.
56582   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
56583    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
56584 s,@SHELL@,$SHELL,;t t
56585 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
56586 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
56587 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
56588 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
56589 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
56590 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
56591 s,@exec_prefix@,$exec_prefix,;t t
56592 s,@prefix@,$prefix,;t t
56593 s,@program_transform_name@,$program_transform_name,;t t
56594 s,@bindir@,$bindir,;t t
56595 s,@sbindir@,$sbindir,;t t
56596 s,@libexecdir@,$libexecdir,;t t
56597 s,@datadir@,$datadir,;t t
56598 s,@sysconfdir@,$sysconfdir,;t t
56599 s,@sharedstatedir@,$sharedstatedir,;t t
56600 s,@localstatedir@,$localstatedir,;t t
56601 s,@libdir@,$libdir,;t t
56602 s,@includedir@,$includedir,;t t
56603 s,@oldincludedir@,$oldincludedir,;t t
56604 s,@infodir@,$infodir,;t t
56605 s,@mandir@,$mandir,;t t
56606 s,@build_alias@,$build_alias,;t t
56607 s,@host_alias@,$host_alias,;t t
56608 s,@target_alias@,$target_alias,;t t
56609 s,@DEFS@,$DEFS,;t t
56610 s,@ECHO_C@,$ECHO_C,;t t
56611 s,@ECHO_N@,$ECHO_N,;t t
56612 s,@ECHO_T@,$ECHO_T,;t t
56613 s,@LIBS@,$LIBS,;t t
56614 s,@build@,$build,;t t
56615 s,@build_cpu@,$build_cpu,;t t
56616 s,@build_vendor@,$build_vendor,;t t
56617 s,@build_os@,$build_os,;t t
56618 s,@host@,$host,;t t
56619 s,@host_cpu@,$host_cpu,;t t
56620 s,@host_vendor@,$host_vendor,;t t
56621 s,@host_os@,$host_os,;t t
56622 s,@target@,$target,;t t
56623 s,@target_cpu@,$target_cpu,;t t
56624 s,@target_vendor@,$target_vendor,;t t
56625 s,@target_os@,$target_os,;t t
56626 s,@CONFIGURE_COMMAND@,$CONFIGURE_COMMAND,;t t
56627 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
56628 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
56629 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
56630 s,@CYGPATH_W@,$CYGPATH_W,;t t
56631 s,@PACKAGE@,$PACKAGE,;t t
56632 s,@VERSION@,$VERSION,;t t
56633 s,@ACLOCAL@,$ACLOCAL,;t t
56634 s,@AUTOCONF@,$AUTOCONF,;t t
56635 s,@AUTOMAKE@,$AUTOMAKE,;t t
56636 s,@AUTOHEADER@,$AUTOHEADER,;t t
56637 s,@MAKEINFO@,$MAKEINFO,;t t
56638 s,@install_sh@,$install_sh,;t t
56639 s,@STRIP@,$STRIP,;t t
56640 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
56641 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
56642 s,@mkdir_p@,$mkdir_p,;t t
56643 s,@AWK@,$AWK,;t t
56644 s,@SET_MAKE@,$SET_MAKE,;t t
56645 s,@am__leading_dot@,$am__leading_dot,;t t
56646 s,@AMTAR@,$AMTAR,;t t
56647 s,@am__tar@,$am__tar,;t t
56648 s,@am__untar@,$am__untar,;t t
56649 s,@SNAPSHOT_STAMP@,$SNAPSHOT_STAMP,;t t
56650 s,@VERSION_MAJOR@,$VERSION_MAJOR,;t t
56651 s,@VERSION_MINOR@,$VERSION_MINOR,;t t
56652 s,@VERSION_PATCH@,$VERSION_PATCH,;t t
56653 s,@VERSION_COMMENT@,$VERSION_COMMENT,;t t
56654 s,@VERSION_SUFFIX@,$VERSION_SUFFIX,;t t
56655 s,@CC@,$CC,;t t
56656 s,@CFLAGS@,$CFLAGS,;t t
56657 s,@LDFLAGS@,$LDFLAGS,;t t
56658 s,@CPPFLAGS@,$CPPFLAGS,;t t
56659 s,@ac_ct_CC@,$ac_ct_CC,;t t
56660 s,@EXEEXT@,$EXEEXT,;t t
56661 s,@OBJEXT@,$OBJEXT,;t t
56662 s,@DEPDIR@,$DEPDIR,;t t
56663 s,@am__include@,$am__include,;t t
56664 s,@am__quote@,$am__quote,;t t
56665 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
56666 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
56667 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
56668 s,@CCDEPMODE@,$CCDEPMODE,;t t
56669 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
56670 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
56671 s,@GREP@,$GREP,;t t
56672 s,@EGREP@,$EGREP,;t t
56673 s,@AMLINT@,$AMLINT,;t t
56674 s,@AMLINTFLAGS@,$AMLINTFLAGS,;t t
56675 s,@DUMPER_DIR@,$DUMPER_DIR,;t t
56676 s,@CONFIG_DIR@,$CONFIG_DIR,;t t
56677 s,@USE_VERSION_SUFFIXES@,$USE_VERSION_SUFFIXES,;t t
56678 s,@CLIENT_SCRIPTS_OPT@,$CLIENT_SCRIPTS_OPT,;t t
56679 s,@DEFAULT_SERVER@,$DEFAULT_SERVER,;t t
56680 s,@CLIENT_LOGIN@,$CLIENT_LOGIN,;t t
56681 s,@SETUID_GROUP@,$SETUID_GROUP,;t t
56682 s,@BINARY_OWNER@,$BINARY_OWNER,;t t
56683 s,@DEFAULT_CONFIG@,$DEFAULT_CONFIG,;t t
56684 s,@DEFAULT_TAPE_SERVER@,$DEFAULT_TAPE_SERVER,;t t
56685 s,@DEFAULT_TAPE_DEVICE@,$DEFAULT_TAPE_DEVICE,;t t
56686 s,@DEFAULT_RAW_TAPE_DEVICE@,$DEFAULT_RAW_TAPE_DEVICE,;t t
56687 s,@DEFAULT_CHANGER_DEVICE@,$DEFAULT_CHANGER_DEVICE,;t t
56688 s,@GNUTAR_LISTED_INCREMENTAL_DIRX@,$GNUTAR_LISTED_INCREMENTAL_DIRX,;t t
56689 s,@GNUTAR_LISTED_INCREMENTAL_DIR@,$GNUTAR_LISTED_INCREMENTAL_DIR,;t t
56690 s,@MAXTAPEBLOCKSIZE@,$MAXTAPEBLOCKSIZE,;t t
56691 s,@AMANDA_TMPDIR@,$AMANDA_TMPDIR,;t t
56692 s,@AMANDA_DBGDIR@,$AMANDA_DBGDIR,;t t
56693 s,@AMANDA_DEBUG_DAYS@,$AMANDA_DEBUG_DAYS,;t t
56694 s,@SERVICE_SUFFIX@,$SERVICE_SUFFIX,;t t
56695 s,@MT_FILE_FLAG@,$MT_FILE_FLAG,;t t
56696 s,@CPP@,$CPP,;t t
56697 s,@AR@,$AR,;t t
56698 s,@AWK_VAR_ASSIGNMENT_OPT@,$AWK_VAR_ASSIGNMENT_OPT,;t t
56699 s,@YACC@,$YACC,;t t
56700 s,@CAT@,$CAT,;t t
56701 s,@COMPRESS@,$COMPRESS,;t t
56702 s,@DD@,$DD,;t t
56703 s,@GETCONF@,$GETCONF,;t t
56704 s,@GNUPLOT@,$GNUPLOT,;t t
56705 s,@GNUTAR@,$GNUTAR,;t t
56706 s,@SAMBA_CLIENT@,$SAMBA_CLIENT,;t t
56707 s,@GZIP@,$GZIP,;t t
56708 s,@SORT@,$SORT,;t t
56709 s,@MAILER@,$MAILER,;t t
56710 s,@MT@,$MT,;t t
56711 s,@CHIO@,$CHIO,;t t
56712 s,@CHS@,$CHS,;t t
56713 s,@MTX@,$MTX,;t t
56714 s,@MCUTIL@,$MCUTIL,;t t
56715 s,@PRINT@,$PRINT,;t t
56716 s,@PCAT@,$PCAT,;t t
56717 s,@PERL@,$PERL,;t t
56718 s,@DUMP@,$DUMP,;t t
56719 s,@RESTORE@,$RESTORE,;t t
56720 s,@XFSDUMP@,$XFSDUMP,;t t
56721 s,@XFSRESTORE@,$XFSRESTORE,;t t
56722 s,@VXDUMP@,$VXDUMP,;t t
56723 s,@VXRESTORE@,$VXRESTORE,;t t
56724 s,@VDUMP@,$VDUMP,;t t
56725 s,@VRESTORE@,$VRESTORE,;t t
56726 s,@AMPLOT_COMPRESS@,$AMPLOT_COMPRESS,;t t
56727 s,@AMPLOT_CAT_GZIP@,$AMPLOT_CAT_GZIP,;t t
56728 s,@AMPLOT_CAT_COMPRESS@,$AMPLOT_CAT_COMPRESS,;t t
56729 s,@AMPLOT_CAT_PACK@,$AMPLOT_CAT_PACK,;t t
56730 s,@LL_FMT@,$LL_FMT,;t t
56731 s,@LL_RFMT@,$LL_RFMT,;t t
56732 s,@LN_S@,$LN_S,;t t
56733 s,@ECHO@,$ECHO,;t t
56734 s,@ac_ct_AR@,$ac_ct_AR,;t t
56735 s,@RANLIB@,$RANLIB,;t t
56736 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
56737 s,@CXX@,$CXX,;t t
56738 s,@CXXFLAGS@,$CXXFLAGS,;t t
56739 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
56740 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
56741 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
56742 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
56743 s,@CXXCPP@,$CXXCPP,;t t
56744 s,@F77@,$F77,;t t
56745 s,@FFLAGS@,$FFLAGS,;t t
56746 s,@ac_ct_F77@,$ac_ct_F77,;t t
56747 s,@LIBTOOL@,$LIBTOOL,;t t
56748 s,@LIBTOOL_DEPS@,$LIBTOOL_DEPS,;t t
56749 s,@LEX@,$LEX,;t t
56750 s,@LEXLIB@,$LEXLIB,;t t
56751 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
56752 s,@READLINE_LIBS@,$READLINE_LIBS,;t t
56753 s,@DB_EXT@,$DB_EXT,;t t
56754 s,@ALLOCA@,$ALLOCA,;t t
56755 s,@LIBOBJS@,$LIBOBJS,;t t
56756 s,@ac_n@,$ac_n,;t t
56757 s,@ac_c@,$ac_c,;t t
56758 s,@WANT_CLIENT_TRUE@,$WANT_CLIENT_TRUE,;t t
56759 s,@WANT_CLIENT_FALSE@,$WANT_CLIENT_FALSE,;t t
56760 s,@WANT_SAMBA_TRUE@,$WANT_SAMBA_TRUE,;t t
56761 s,@WANT_SAMBA_FALSE@,$WANT_SAMBA_FALSE,;t t
56762 s,@WANT_RESTORE_TRUE@,$WANT_RESTORE_TRUE,;t t
56763 s,@WANT_RESTORE_FALSE@,$WANT_RESTORE_FALSE,;t t
56764 s,@WANT_SERVER_TRUE@,$WANT_SERVER_TRUE,;t t
56765 s,@WANT_SERVER_FALSE@,$WANT_SERVER_FALSE,;t t
56766 s,@WANT_RECOVER_TRUE@,$WANT_RECOVER_TRUE,;t t
56767 s,@WANT_RECOVER_FALSE@,$WANT_RECOVER_FALSE,;t t
56768 s,@WANT_TAPE_TRUE@,$WANT_TAPE_TRUE,;t t
56769 s,@WANT_TAPE_FALSE@,$WANT_TAPE_FALSE,;t t
56770 s,@WANT_AMPLOT_TRUE@,$WANT_AMPLOT_TRUE,;t t
56771 s,@WANT_AMPLOT_FALSE@,$WANT_AMPLOT_FALSE,;t t
56772 s,@WANT_CHG_SCSI_TRUE@,$WANT_CHG_SCSI_TRUE,;t t
56773 s,@WANT_CHG_SCSI_FALSE@,$WANT_CHG_SCSI_FALSE,;t t
56774 s,@WANT_CHIO_SCSI_TRUE@,$WANT_CHIO_SCSI_TRUE,;t t
56775 s,@WANT_CHIO_SCSI_FALSE@,$WANT_CHIO_SCSI_FALSE,;t t
56776 s,@WANT_RUNTIME_PSEUDO_RELOC_TRUE@,$WANT_RUNTIME_PSEUDO_RELOC_TRUE,;t t
56777 s,@WANT_RUNTIME_PSEUDO_RELOC_FALSE@,$WANT_RUNTIME_PSEUDO_RELOC_FALSE,;t t
56778 s,@WANT_SETUID_CLIENT_TRUE@,$WANT_SETUID_CLIENT_TRUE,;t t
56779 s,@WANT_SETUID_CLIENT_FALSE@,$WANT_SETUID_CLIENT_FALSE,;t t
56780 s,@WANT_SSH_SECURITY_TRUE@,$WANT_SSH_SECURITY_TRUE,;t t
56781 s,@WANT_SSH_SECURITY_FALSE@,$WANT_SSH_SECURITY_FALSE,;t t
56782 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
56783 s,@LTALLOCA@,$LTALLOCA,;t t
56784 s,@DOC_BUILD_DATE@,$DOC_BUILD_DATE,;t t
56785 s,@BUILD_MAN_PAGES_TRUE@,$BUILD_MAN_PAGES_TRUE,;t t
56786 s,@BUILD_MAN_PAGES_FALSE@,$BUILD_MAN_PAGES_FALSE,;t t
56787 s,@XSLTPROC@,$XSLTPROC,;t t
56788 s,@HAVE_XSLTPROC_TRUE@,$HAVE_XSLTPROC_TRUE,;t t
56789 s,@HAVE_XSLTPROC_FALSE@,$HAVE_XSLTPROC_FALSE,;t t
56790 s,@AM_CFLAGS@,$AM_CFLAGS,;t t
56791 CEOF
56792
56793 _ACEOF
56794
56795   cat >>$CONFIG_STATUS <<\_ACEOF
56796   # Split the substitutions into bite-sized pieces for seds with
56797   # small command number limits, like on Digital OSF/1 and HP-UX.
56798   ac_max_sed_lines=48
56799   ac_sed_frag=1 # Number of current file.
56800   ac_beg=1 # First line for current file.
56801   ac_end=$ac_max_sed_lines # Line after last line for current file.
56802   ac_more_lines=:
56803   ac_sed_cmds=
56804   while $ac_more_lines; do
56805     if test $ac_beg -gt 1; then
56806       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
56807     else
56808       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
56809     fi
56810     if test ! -s $tmp/subs.frag; then
56811       ac_more_lines=false
56812     else
56813       # The purpose of the label and of the branching condition is to
56814       # speed up the sed processing (if there are no `@' at all, there
56815       # is no need to browse any of the substitutions).
56816       # These are the two extra sed commands mentioned above.
56817       (echo ':t
56818   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
56819       if test -z "$ac_sed_cmds"; then
56820         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
56821       else
56822         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
56823       fi
56824       ac_sed_frag=`expr $ac_sed_frag + 1`
56825       ac_beg=$ac_end
56826       ac_end=`expr $ac_end + $ac_max_sed_lines`
56827     fi
56828   done
56829   if test -z "$ac_sed_cmds"; then
56830     ac_sed_cmds=cat
56831   fi
56832 fi # test -n "$CONFIG_FILES"
56833
56834 _ACEOF
56835 cat >>$CONFIG_STATUS <<\_ACEOF
56836 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
56837   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
56838   case $ac_file in
56839   - | *:- | *:-:* ) # input from stdin
56840         cat >$tmp/stdin
56841         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
56842         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
56843   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
56844         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
56845   * )   ac_file_in=$ac_file.in ;;
56846   esac
56847
56848   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
56849   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
56850 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
56851          X"$ac_file" : 'X\(//\)[^/]' \| \
56852          X"$ac_file" : 'X\(//\)$' \| \
56853          X"$ac_file" : 'X\(/\)' \| \
56854          .     : '\(.\)' 2>/dev/null ||
56855 echo X"$ac_file" |
56856     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
56857           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
56858           /^X\(\/\/\)$/{ s//\1/; q; }
56859           /^X\(\/\).*/{ s//\1/; q; }
56860           s/.*/./; q'`
56861   { if $as_mkdir_p; then
56862     mkdir -p "$ac_dir"
56863   else
56864     as_dir="$ac_dir"
56865     as_dirs=
56866     while test ! -d "$as_dir"; do
56867       as_dirs="$as_dir $as_dirs"
56868       as_dir=`(dirname "$as_dir") 2>/dev/null ||
56869 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
56870          X"$as_dir" : 'X\(//\)[^/]' \| \
56871          X"$as_dir" : 'X\(//\)$' \| \
56872          X"$as_dir" : 'X\(/\)' \| \
56873          .     : '\(.\)' 2>/dev/null ||
56874 echo X"$as_dir" |
56875     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
56876           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
56877           /^X\(\/\/\)$/{ s//\1/; q; }
56878           /^X\(\/\).*/{ s//\1/; q; }
56879           s/.*/./; q'`
56880     done
56881     test ! -n "$as_dirs" || mkdir $as_dirs
56882   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
56883 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
56884    { (exit 1); exit 1; }; }; }
56885
56886   ac_builddir=.
56887
56888 if test "$ac_dir" != .; then
56889   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
56890   # A "../" for each directory in $ac_dir_suffix.
56891   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
56892 else
56893   ac_dir_suffix= ac_top_builddir=
56894 fi
56895
56896 case $srcdir in
56897   .)  # No --srcdir option.  We are building in place.
56898     ac_srcdir=.
56899     if test -z "$ac_top_builddir"; then
56900        ac_top_srcdir=.
56901     else
56902        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
56903     fi ;;
56904   [\\/]* | ?:[\\/]* )  # Absolute path.
56905     ac_srcdir=$srcdir$ac_dir_suffix;
56906     ac_top_srcdir=$srcdir ;;
56907   *) # Relative path.
56908     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
56909     ac_top_srcdir=$ac_top_builddir$srcdir ;;
56910 esac
56911
56912 # Do not use `cd foo && pwd` to compute absolute paths, because
56913 # the directories may not exist.
56914 case `pwd` in
56915 .) ac_abs_builddir="$ac_dir";;
56916 *)
56917   case "$ac_dir" in
56918   .) ac_abs_builddir=`pwd`;;
56919   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
56920   *) ac_abs_builddir=`pwd`/"$ac_dir";;
56921   esac;;
56922 esac
56923 case $ac_abs_builddir in
56924 .) ac_abs_top_builddir=${ac_top_builddir}.;;
56925 *)
56926   case ${ac_top_builddir}. in
56927   .) ac_abs_top_builddir=$ac_abs_builddir;;
56928   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
56929   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
56930   esac;;
56931 esac
56932 case $ac_abs_builddir in
56933 .) ac_abs_srcdir=$ac_srcdir;;
56934 *)
56935   case $ac_srcdir in
56936   .) ac_abs_srcdir=$ac_abs_builddir;;
56937   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
56938   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
56939   esac;;
56940 esac
56941 case $ac_abs_builddir in
56942 .) ac_abs_top_srcdir=$ac_top_srcdir;;
56943 *)
56944   case $ac_top_srcdir in
56945   .) ac_abs_top_srcdir=$ac_abs_builddir;;
56946   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
56947   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
56948   esac;;
56949 esac
56950
56951
56952   case $INSTALL in
56953   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
56954   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
56955   esac
56956
56957   if test x"$ac_file" != x-; then
56958     { echo "$as_me:$LINENO: creating $ac_file" >&5
56959 echo "$as_me: creating $ac_file" >&6;}
56960     rm -f "$ac_file"
56961   fi
56962   # Let's still pretend it is `configure' which instantiates (i.e., don't
56963   # use $as_me), people would be surprised to read:
56964   #    /* config.h.  Generated by config.status.  */
56965   if test x"$ac_file" = x-; then
56966     configure_input=
56967   else
56968     configure_input="$ac_file.  "
56969   fi
56970   configure_input=$configure_input"Generated from `echo $ac_file_in |
56971                                      sed 's,.*/,,'` by configure."
56972
56973   # First look for the input files in the build tree, otherwise in the
56974   # src tree.
56975   ac_file_inputs=`IFS=:
56976     for f in $ac_file_in; do
56977       case $f in
56978       -) echo $tmp/stdin ;;
56979       [\\/$]*)
56980          # Absolute (can't be DOS-style, as IFS=:)
56981          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
56982 echo "$as_me: error: cannot find input file: $f" >&2;}
56983    { (exit 1); exit 1; }; }
56984          echo "$f";;
56985       *) # Relative
56986          if test -f "$f"; then
56987            # Build tree
56988            echo "$f"
56989          elif test -f "$srcdir/$f"; then
56990            # Source tree
56991            echo "$srcdir/$f"
56992          else
56993            # /dev/null tree
56994            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
56995 echo "$as_me: error: cannot find input file: $f" >&2;}
56996    { (exit 1); exit 1; }; }
56997          fi;;
56998       esac
56999     done` || { (exit 1); exit 1; }
57000 _ACEOF
57001 cat >>$CONFIG_STATUS <<_ACEOF
57002   sed "$ac_vpsub
57003 $extrasub
57004 _ACEOF
57005 cat >>$CONFIG_STATUS <<\_ACEOF
57006 :t
57007 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
57008 s,@configure_input@,$configure_input,;t t
57009 s,@srcdir@,$ac_srcdir,;t t
57010 s,@abs_srcdir@,$ac_abs_srcdir,;t t
57011 s,@top_srcdir@,$ac_top_srcdir,;t t
57012 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
57013 s,@builddir@,$ac_builddir,;t t
57014 s,@abs_builddir@,$ac_abs_builddir,;t t
57015 s,@top_builddir@,$ac_top_builddir,;t t
57016 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
57017 s,@INSTALL@,$ac_INSTALL,;t t
57018 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
57019   rm -f $tmp/stdin
57020   if test x"$ac_file" != x-; then
57021     mv $tmp/out $ac_file
57022   else
57023     cat $tmp/out
57024     rm -f $tmp/out
57025   fi
57026
57027 done
57028 _ACEOF
57029 cat >>$CONFIG_STATUS <<\_ACEOF
57030
57031 #
57032 # CONFIG_HEADER section.
57033 #
57034
57035 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
57036 # NAME is the cpp macro being defined and VALUE is the value it is being given.
57037 #
57038 # ac_d sets the value in "#define NAME VALUE" lines.
57039 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
57040 ac_dB='[         ].*$,\1#\2'
57041 ac_dC=' '
57042 ac_dD=',;t'
57043 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
57044 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
57045 ac_uB='$,\1#\2define\3'
57046 ac_uC=' '
57047 ac_uD=',;t'
57048
57049 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
57050   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
57051   case $ac_file in
57052   - | *:- | *:-:* ) # input from stdin
57053         cat >$tmp/stdin
57054         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
57055         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
57056   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
57057         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
57058   * )   ac_file_in=$ac_file.in ;;
57059   esac
57060
57061   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
57062 echo "$as_me: creating $ac_file" >&6;}
57063
57064   # First look for the input files in the build tree, otherwise in the
57065   # src tree.
57066   ac_file_inputs=`IFS=:
57067     for f in $ac_file_in; do
57068       case $f in
57069       -) echo $tmp/stdin ;;
57070       [\\/$]*)
57071          # Absolute (can't be DOS-style, as IFS=:)
57072          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
57073 echo "$as_me: error: cannot find input file: $f" >&2;}
57074    { (exit 1); exit 1; }; }
57075          # Do quote $f, to prevent DOS paths from being IFS'd.
57076          echo "$f";;
57077       *) # Relative
57078          if test -f "$f"; then
57079            # Build tree
57080            echo "$f"
57081          elif test -f "$srcdir/$f"; then
57082            # Source tree
57083            echo "$srcdir/$f"
57084          else
57085            # /dev/null tree
57086            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
57087 echo "$as_me: error: cannot find input file: $f" >&2;}
57088    { (exit 1); exit 1; }; }
57089          fi;;
57090       esac
57091     done` || { (exit 1); exit 1; }
57092   # Remove the trailing spaces.
57093   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
57094
57095 _ACEOF
57096
57097 # Transform confdefs.h into two sed scripts, `conftest.defines' and
57098 # `conftest.undefs', that substitutes the proper values into
57099 # config.h.in to produce config.h.  The first handles `#define'
57100 # templates, and the second `#undef' templates.
57101 # And first: Protect against being on the right side of a sed subst in
57102 # config.status.  Protect against being in an unquoted here document
57103 # in config.status.
57104 rm -f conftest.defines conftest.undefs
57105 # Using a here document instead of a string reduces the quoting nightmare.
57106 # Putting comments in sed scripts is not portable.
57107 #
57108 # `end' is used to avoid that the second main sed command (meant for
57109 # 0-ary CPP macros) applies to n-ary macro definitions.
57110 # See the Autoconf documentation for `clear'.
57111 cat >confdef2sed.sed <<\_ACEOF
57112 s/[\\&,]/\\&/g
57113 s,[\\$`],\\&,g
57114 t clear
57115 : clear
57116 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
57117 t end
57118 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
57119 : end
57120 _ACEOF
57121 # If some macros were called several times there might be several times
57122 # the same #defines, which is useless.  Nevertheless, we may not want to
57123 # sort them, since we want the *last* AC-DEFINE to be honored.
57124 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
57125 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
57126 rm -f confdef2sed.sed
57127
57128 # This sed command replaces #undef with comments.  This is necessary, for
57129 # example, in the case of _POSIX_SOURCE, which is predefined and required
57130 # on some systems where configure will not decide to define it.
57131 cat >>conftest.undefs <<\_ACEOF
57132 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
57133 _ACEOF
57134
57135 # Break up conftest.defines because some shells have a limit on the size
57136 # of here documents, and old seds have small limits too (100 cmds).
57137 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
57138 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
57139 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
57140 echo '  :' >>$CONFIG_STATUS
57141 rm -f conftest.tail
57142 while grep . conftest.defines >/dev/null
57143 do
57144   # Write a limited-size here document to $tmp/defines.sed.
57145   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
57146   # Speed up: don't consider the non `#define' lines.
57147   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
57148   # Work around the forget-to-reset-the-flag bug.
57149   echo 't clr' >>$CONFIG_STATUS
57150   echo ': clr' >>$CONFIG_STATUS
57151   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
57152   echo 'CEOF
57153   sed -f $tmp/defines.sed $tmp/in >$tmp/out
57154   rm -f $tmp/in
57155   mv $tmp/out $tmp/in
57156 ' >>$CONFIG_STATUS
57157   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
57158   rm -f conftest.defines
57159   mv conftest.tail conftest.defines
57160 done
57161 rm -f conftest.defines
57162 echo '  fi # grep' >>$CONFIG_STATUS
57163 echo >>$CONFIG_STATUS
57164
57165 # Break up conftest.undefs because some shells have a limit on the size
57166 # of here documents, and old seds have small limits too (100 cmds).
57167 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
57168 rm -f conftest.tail
57169 while grep . conftest.undefs >/dev/null
57170 do
57171   # Write a limited-size here document to $tmp/undefs.sed.
57172   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
57173   # Speed up: don't consider the non `#undef'
57174   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
57175   # Work around the forget-to-reset-the-flag bug.
57176   echo 't clr' >>$CONFIG_STATUS
57177   echo ': clr' >>$CONFIG_STATUS
57178   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
57179   echo 'CEOF
57180   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
57181   rm -f $tmp/in
57182   mv $tmp/out $tmp/in
57183 ' >>$CONFIG_STATUS
57184   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
57185   rm -f conftest.undefs
57186   mv conftest.tail conftest.undefs
57187 done
57188 rm -f conftest.undefs
57189
57190 cat >>$CONFIG_STATUS <<\_ACEOF
57191   # Let's still pretend it is `configure' which instantiates (i.e., don't
57192   # use $as_me), people would be surprised to read:
57193   #    /* config.h.  Generated by config.status.  */
57194   if test x"$ac_file" = x-; then
57195     echo "/* Generated by configure.  */" >$tmp/config.h
57196   else
57197     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
57198   fi
57199   cat $tmp/in >>$tmp/config.h
57200   rm -f $tmp/in
57201   if test x"$ac_file" != x-; then
57202     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
57203       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
57204 echo "$as_me: $ac_file is unchanged" >&6;}
57205     else
57206       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
57207 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
57208          X"$ac_file" : 'X\(//\)[^/]' \| \
57209          X"$ac_file" : 'X\(//\)$' \| \
57210          X"$ac_file" : 'X\(/\)' \| \
57211          .     : '\(.\)' 2>/dev/null ||
57212 echo X"$ac_file" |
57213     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
57214           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
57215           /^X\(\/\/\)$/{ s//\1/; q; }
57216           /^X\(\/\).*/{ s//\1/; q; }
57217           s/.*/./; q'`
57218       { if $as_mkdir_p; then
57219     mkdir -p "$ac_dir"
57220   else
57221     as_dir="$ac_dir"
57222     as_dirs=
57223     while test ! -d "$as_dir"; do
57224       as_dirs="$as_dir $as_dirs"
57225       as_dir=`(dirname "$as_dir") 2>/dev/null ||
57226 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
57227          X"$as_dir" : 'X\(//\)[^/]' \| \
57228          X"$as_dir" : 'X\(//\)$' \| \
57229          X"$as_dir" : 'X\(/\)' \| \
57230          .     : '\(.\)' 2>/dev/null ||
57231 echo X"$as_dir" |
57232     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
57233           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
57234           /^X\(\/\/\)$/{ s//\1/; q; }
57235           /^X\(\/\).*/{ s//\1/; q; }
57236           s/.*/./; q'`
57237     done
57238     test ! -n "$as_dirs" || mkdir $as_dirs
57239   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
57240 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
57241    { (exit 1); exit 1; }; }; }
57242
57243       rm -f $ac_file
57244       mv $tmp/config.h $ac_file
57245     fi
57246   else
57247     cat $tmp/config.h
57248     rm -f $tmp/config.h
57249   fi
57250 # Compute $ac_file's index in $config_headers.
57251 _am_stamp_count=1
57252 for _am_header in $config_headers :; do
57253   case $_am_header in
57254     $ac_file | $ac_file:* )
57255       break ;;
57256     * )
57257       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
57258   esac
57259 done
57260 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
57261 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
57262          X$ac_file : 'X\(//\)[^/]' \| \
57263          X$ac_file : 'X\(//\)$' \| \
57264          X$ac_file : 'X\(/\)' \| \
57265          .     : '\(.\)' 2>/dev/null ||
57266 echo X$ac_file |
57267     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
57268           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
57269           /^X\(\/\/\)$/{ s//\1/; q; }
57270           /^X\(\/\).*/{ s//\1/; q; }
57271           s/.*/./; q'`/stamp-h$_am_stamp_count
57272 done
57273 _ACEOF
57274 cat >>$CONFIG_STATUS <<\_ACEOF
57275
57276 #
57277 # CONFIG_COMMANDS section.
57278 #
57279 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
57280   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
57281   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
57282   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
57283 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
57284          X"$ac_dest" : 'X\(//\)[^/]' \| \
57285          X"$ac_dest" : 'X\(//\)$' \| \
57286          X"$ac_dest" : 'X\(/\)' \| \
57287          .     : '\(.\)' 2>/dev/null ||
57288 echo X"$ac_dest" |
57289     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
57290           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
57291           /^X\(\/\/\)$/{ s//\1/; q; }
57292           /^X\(\/\).*/{ s//\1/; q; }
57293           s/.*/./; q'`
57294   { if $as_mkdir_p; then
57295     mkdir -p "$ac_dir"
57296   else
57297     as_dir="$ac_dir"
57298     as_dirs=
57299     while test ! -d "$as_dir"; do
57300       as_dirs="$as_dir $as_dirs"
57301       as_dir=`(dirname "$as_dir") 2>/dev/null ||
57302 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
57303          X"$as_dir" : 'X\(//\)[^/]' \| \
57304          X"$as_dir" : 'X\(//\)$' \| \
57305          X"$as_dir" : 'X\(/\)' \| \
57306          .     : '\(.\)' 2>/dev/null ||
57307 echo X"$as_dir" |
57308     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
57309           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
57310           /^X\(\/\/\)$/{ s//\1/; q; }
57311           /^X\(\/\).*/{ s//\1/; q; }
57312           s/.*/./; q'`
57313     done
57314     test ! -n "$as_dirs" || mkdir $as_dirs
57315   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
57316 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
57317    { (exit 1); exit 1; }; }; }
57318
57319   ac_builddir=.
57320
57321 if test "$ac_dir" != .; then
57322   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
57323   # A "../" for each directory in $ac_dir_suffix.
57324   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
57325 else
57326   ac_dir_suffix= ac_top_builddir=
57327 fi
57328
57329 case $srcdir in
57330   .)  # No --srcdir option.  We are building in place.
57331     ac_srcdir=.
57332     if test -z "$ac_top_builddir"; then
57333        ac_top_srcdir=.
57334     else
57335        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
57336     fi ;;
57337   [\\/]* | ?:[\\/]* )  # Absolute path.
57338     ac_srcdir=$srcdir$ac_dir_suffix;
57339     ac_top_srcdir=$srcdir ;;
57340   *) # Relative path.
57341     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
57342     ac_top_srcdir=$ac_top_builddir$srcdir ;;
57343 esac
57344
57345 # Do not use `cd foo && pwd` to compute absolute paths, because
57346 # the directories may not exist.
57347 case `pwd` in
57348 .) ac_abs_builddir="$ac_dir";;
57349 *)
57350   case "$ac_dir" in
57351   .) ac_abs_builddir=`pwd`;;
57352   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
57353   *) ac_abs_builddir=`pwd`/"$ac_dir";;
57354   esac;;
57355 esac
57356 case $ac_abs_builddir in
57357 .) ac_abs_top_builddir=${ac_top_builddir}.;;
57358 *)
57359   case ${ac_top_builddir}. in
57360   .) ac_abs_top_builddir=$ac_abs_builddir;;
57361   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
57362   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
57363   esac;;
57364 esac
57365 case $ac_abs_builddir in
57366 .) ac_abs_srcdir=$ac_srcdir;;
57367 *)
57368   case $ac_srcdir in
57369   .) ac_abs_srcdir=$ac_abs_builddir;;
57370   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
57371   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
57372   esac;;
57373 esac
57374 case $ac_abs_builddir in
57375 .) ac_abs_top_srcdir=$ac_top_srcdir;;
57376 *)
57377   case $ac_top_srcdir in
57378   .) ac_abs_top_srcdir=$ac_abs_builddir;;
57379   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
57380   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
57381   esac;;
57382 esac
57383
57384
57385   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
57386 echo "$as_me: executing $ac_dest commands" >&6;}
57387   case $ac_dest in
57388     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
57389   # Strip MF so we end up with the name of the file.
57390   mf=`echo "$mf" | sed -e 's/:.*$//'`
57391   # Check whether this is an Automake generated Makefile or not.
57392   # We used to match only the files named `Makefile.in', but
57393   # some people rename them; so instead we look at the file content.
57394   # Grep'ing the first line is not enough: some people post-process
57395   # each Makefile.in and add a new line on top of each file to say so.
57396   # So let's grep whole file.
57397   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
57398     dirpart=`(dirname "$mf") 2>/dev/null ||
57399 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
57400          X"$mf" : 'X\(//\)[^/]' \| \
57401          X"$mf" : 'X\(//\)$' \| \
57402          X"$mf" : 'X\(/\)' \| \
57403          .     : '\(.\)' 2>/dev/null ||
57404 echo X"$mf" |
57405     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
57406           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
57407           /^X\(\/\/\)$/{ s//\1/; q; }
57408           /^X\(\/\).*/{ s//\1/; q; }
57409           s/.*/./; q'`
57410   else
57411     continue
57412   fi
57413   # Extract the definition of DEPDIR, am__include, and am__quote
57414   # from the Makefile without running `make'.
57415   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
57416   test -z "$DEPDIR" && continue
57417   am__include=`sed -n 's/^am__include = //p' < "$mf"`
57418   test -z "am__include" && continue
57419   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
57420   # When using ansi2knr, U may be empty or an underscore; expand it
57421   U=`sed -n 's/^U = //p' < "$mf"`
57422   # Find all dependency output files, they are included files with
57423   # $(DEPDIR) in their names.  We invoke sed twice because it is the
57424   # simplest approach to changing $(DEPDIR) to its actual value in the
57425   # expansion.
57426   for file in `sed -n "
57427     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
57428        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
57429     # Make sure the directory exists.
57430     test -f "$dirpart/$file" && continue
57431     fdir=`(dirname "$file") 2>/dev/null ||
57432 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
57433          X"$file" : 'X\(//\)[^/]' \| \
57434          X"$file" : 'X\(//\)$' \| \
57435          X"$file" : 'X\(/\)' \| \
57436          .     : '\(.\)' 2>/dev/null ||
57437 echo X"$file" |
57438     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
57439           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
57440           /^X\(\/\/\)$/{ s//\1/; q; }
57441           /^X\(\/\).*/{ s//\1/; q; }
57442           s/.*/./; q'`
57443     { if $as_mkdir_p; then
57444     mkdir -p $dirpart/$fdir
57445   else
57446     as_dir=$dirpart/$fdir
57447     as_dirs=
57448     while test ! -d "$as_dir"; do
57449       as_dirs="$as_dir $as_dirs"
57450       as_dir=`(dirname "$as_dir") 2>/dev/null ||
57451 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
57452          X"$as_dir" : 'X\(//\)[^/]' \| \
57453          X"$as_dir" : 'X\(//\)$' \| \
57454          X"$as_dir" : 'X\(/\)' \| \
57455          .     : '\(.\)' 2>/dev/null ||
57456 echo X"$as_dir" |
57457     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
57458           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
57459           /^X\(\/\/\)$/{ s//\1/; q; }
57460           /^X\(\/\).*/{ s//\1/; q; }
57461           s/.*/./; q'`
57462     done
57463     test ! -n "$as_dirs" || mkdir $as_dirs
57464   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
57465 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
57466    { (exit 1); exit 1; }; }; }
57467
57468     # echo "creating $dirpart/$file"
57469     echo '# dummy' > "$dirpart/$file"
57470   done
57471 done
57472  ;;
57473     $ac_stdint_h )
57474 { echo "$as_me:$LINENO: creating $ac_stdint_h : $_ac_stdint_h" >&5
57475 echo "$as_me: creating $ac_stdint_h : $_ac_stdint_h" >&6;}
57476 ac_stdint=$tmp/_stdint.h
57477
57478 echo "#ifndef" $_ac_stdint_h >$ac_stdint
57479 echo "#define" $_ac_stdint_h "1" >>$ac_stdint
57480 echo "#ifndef" _GENERATED_STDINT_H >>$ac_stdint
57481 echo "#define" _GENERATED_STDINT_H '"'$PACKAGE $VERSION'"' >>$ac_stdint
57482 echo "/* generated $ac_cv_stdint_message */" >>$ac_stdint
57483 if test "_$ac_cv_header_stdint_t" != "_" ; then
57484 echo "#define _STDINT_HAVE_STDINT_H" "1" >>$ac_stdint
57485 echo "#include <stdint.h>" >>$ac_stdint
57486 echo "#endif" >>$ac_stdint
57487 echo "#endif" >>$ac_stdint
57488 else
57489
57490 cat >>$ac_stdint <<STDINT_EOF
57491
57492 /* ................... shortcircuit part ........................... */
57493
57494 #if defined HAVE_STDINT_H || defined _STDINT_HAVE_STDINT_H
57495 #include <stdint.h>
57496 #else
57497 #include <stddef.h>
57498
57499 /* .................... configured part ............................ */
57500
57501 STDINT_EOF
57502
57503 echo "/* whether we have a C99 compatible stdint header file */" >>$ac_stdint
57504 if test "_$ac_cv_header_stdint_x" != "_" ; then
57505   ac_header="$ac_cv_header_stdint_x"
57506   echo "#define _STDINT_HEADER_INTPTR" '"'"$ac_header"'"' >>$ac_stdint
57507 else
57508   echo "/* #undef _STDINT_HEADER_INTPTR */" >>$ac_stdint
57509 fi
57510
57511 echo "/* whether we have a C96 compatible inttypes header file */" >>$ac_stdint
57512 if  test "_$ac_cv_header_stdint_o" != "_" ; then
57513   ac_header="$ac_cv_header_stdint_o"
57514   echo "#define _STDINT_HEADER_UINT32" '"'"$ac_header"'"' >>$ac_stdint
57515 else
57516   echo "/* #undef _STDINT_HEADER_UINT32 */" >>$ac_stdint
57517 fi
57518
57519 echo "/* whether we have a BSD compatible inet types header */" >>$ac_stdint
57520 if  test "_$ac_cv_header_stdint_u" != "_" ; then
57521   ac_header="$ac_cv_header_stdint_u"
57522   echo "#define _STDINT_HEADER_U_INT32" '"'"$ac_header"'"' >>$ac_stdint
57523 else
57524   echo "/* #undef _STDINT_HEADER_U_INT32 */" >>$ac_stdint
57525 fi
57526
57527 echo "" >>$ac_stdint
57528
57529 if test "_$ac_header" != "_" ; then if test "$ac_header" != "stddef.h" ; then
57530   echo "#include <$ac_header>" >>$ac_stdint
57531   echo "" >>$ac_stdint
57532 fi fi
57533
57534 echo "/* which 64bit typedef has been found */" >>$ac_stdint
57535 if test "$ac_cv_type_uint64_t" = "yes" ; then
57536 echo "#define   _STDINT_HAVE_UINT64_T" "1"  >>$ac_stdint
57537 else
57538 echo "/* #undef _STDINT_HAVE_UINT64_T */" >>$ac_stdint
57539 fi
57540 if test "$ac_cv_type_u_int64_t" = "yes" ; then
57541 echo "#define   _STDINT_HAVE_U_INT64_T" "1"  >>$ac_stdint
57542 else
57543 echo "/* #undef _STDINT_HAVE_U_INT64_T */" >>$ac_stdint
57544 fi
57545 echo "" >>$ac_stdint
57546
57547 echo "/* which type model has been detected */" >>$ac_stdint
57548 if test "_$ac_cv_char_data_model" != "_" ; then
57549 echo "#define   _STDINT_CHAR_MODEL" "$ac_cv_char_data_model" >>$ac_stdint
57550 echo "#define   _STDINT_LONG_MODEL" "$ac_cv_long_data_model" >>$ac_stdint
57551 else
57552 echo "/* #undef _STDINT_CHAR_MODEL // skipped */" >>$ac_stdint
57553 echo "/* #undef _STDINT_LONG_MODEL // skipped */" >>$ac_stdint
57554 fi
57555 echo "" >>$ac_stdint
57556
57557 echo "/* whether int_least types were detected */" >>$ac_stdint
57558 if test "$ac_cv_type_int_least32_t" = "yes"; then
57559 echo "#define   _STDINT_HAVE_INT_LEAST32_T" "1"  >>$ac_stdint
57560 else
57561 echo "/* #undef _STDINT_HAVE_INT_LEAST32_T */" >>$ac_stdint
57562 fi
57563 echo "/* whether int_fast types were detected */" >>$ac_stdint
57564 if test "$ac_cv_type_int_fast32_t" = "yes"; then
57565 echo "#define   _STDINT_HAVE_INT_FAST32_T" "1" >>$ac_stdint
57566 else
57567 echo "/* #undef _STDINT_HAVE_INT_FAST32_T */" >>$ac_stdint
57568 fi
57569 echo "/* whether intmax_t type was detected */" >>$ac_stdint
57570 if test "$ac_cv_type_intmax_t" = "yes"; then
57571 echo "#define   _STDINT_HAVE_INTMAX_T" "1" >>$ac_stdint
57572 else
57573 echo "/* #undef _STDINT_HAVE_INTMAX_T */" >>$ac_stdint
57574 fi
57575 echo "" >>$ac_stdint
57576
57577   cat >>$ac_stdint <<STDINT_EOF
57578 /* .................... detections part ............................ */
57579
57580 /* whether we need to define bitspecific types from compiler base types */
57581 #ifndef _STDINT_HEADER_INTPTR
57582 #ifndef _STDINT_HEADER_UINT32
57583 #ifndef _STDINT_HEADER_U_INT32
57584 #define _STDINT_NEED_INT_MODEL_T
57585 #else
57586 #define _STDINT_HAVE_U_INT_TYPES
57587 #endif
57588 #endif
57589 #endif
57590
57591 #ifdef _STDINT_HAVE_U_INT_TYPES
57592 #undef _STDINT_NEED_INT_MODEL_T
57593 #endif
57594
57595 #ifdef  _STDINT_CHAR_MODEL
57596 #if     _STDINT_CHAR_MODEL+0 == 122 || _STDINT_CHAR_MODEL+0 == 124
57597 #ifndef _STDINT_BYTE_MODEL
57598 #define _STDINT_BYTE_MODEL 12
57599 #endif
57600 #endif
57601 #endif
57602
57603 #ifndef _STDINT_HAVE_INT_LEAST32_T
57604 #define _STDINT_NEED_INT_LEAST_T
57605 #endif
57606
57607 #ifndef _STDINT_HAVE_INT_FAST32_T
57608 #define _STDINT_NEED_INT_FAST_T
57609 #endif
57610
57611 #ifndef _STDINT_HEADER_INTPTR
57612 #define _STDINT_NEED_INTPTR_T
57613 #ifndef _STDINT_HAVE_INTMAX_T
57614 #define _STDINT_NEED_INTMAX_T
57615 #endif
57616 #endif
57617
57618
57619 /* .................... definition part ............................ */
57620
57621 /* some system headers have good uint64_t */
57622 #ifndef _HAVE_UINT64_T
57623 #if     defined _STDINT_HAVE_UINT64_T  || defined HAVE_UINT64_T
57624 #define _HAVE_UINT64_T
57625 #elif   defined _STDINT_HAVE_U_INT64_T || defined HAVE_U_INT64_T
57626 #define _HAVE_UINT64_T
57627 typedef u_int64_t uint64_t;
57628 #endif
57629 #endif
57630
57631 #ifndef _HAVE_UINT64_T
57632 /* .. here are some common heuristics using compiler runtime specifics */
57633 #if defined __STDC_VERSION__ && defined __STDC_VERSION__ >= 199901L
57634 #define _HAVE_UINT64_T
57635 #define _HAVE_LONGLONG_UINT64_T
57636 typedef long long int64_t;
57637 typedef unsigned long long uint64_t;
57638
57639 #elif !defined __STRICT_ANSI__
57640 #if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
57641 #define _HAVE_UINT64_T
57642 typedef __int64 int64_t;
57643 typedef unsigned __int64 uint64_t;
57644
57645 #elif defined __GNUC__ || defined __MWERKS__ || defined __ELF__
57646 /* note: all ELF-systems seem to have loff-support which needs 64-bit */
57647 #if !defined _NO_LONGLONG
57648 #define _HAVE_UINT64_T
57649 #define _HAVE_LONGLONG_UINT64_T
57650 typedef long long int64_t;
57651 typedef unsigned long long uint64_t;
57652 #endif
57653
57654 #elif defined __alpha || (defined __mips && defined _ABIN32)
57655 #if !defined _NO_LONGLONG
57656 #define _HAVE_UINT64_T
57657 typedef long int64_t;
57658 typedef unsigned long uint64_t;
57659 #endif
57660   /* compiler/cpu type to define int64_t */
57661 #endif
57662 #endif
57663 #endif
57664
57665 #if defined _STDINT_HAVE_U_INT_TYPES
57666 /* int8_t int16_t int32_t defined by inet code, redeclare the u_intXX types */
57667 typedef u_int8_t uint8_t;
57668 typedef u_int16_t uint16_t;
57669 typedef u_int32_t uint32_t;
57670
57671 /* glibc compatibility */
57672 #ifndef __int8_t_defined
57673 #define __int8_t_defined
57674 #endif
57675 #endif
57676
57677 #ifdef _STDINT_NEED_INT_MODEL_T
57678 /* we must guess all the basic types. Apart from byte-adressable system, */
57679 /* there a few 32-bit-only dsp-systems that we guard with BYTE_MODEL 8-} */
57680 /* (btw, those nibble-addressable systems are way off, or so we assume) */
57681
57682
57683 #if defined _STDINT_BYTE_MODEL
57684 #if _STDINT_LONG_MODEL+0 == 242
57685 /* 2:4:2 =  IP16 = a normal 16-bit system                */
57686 typedef unsigned char   uint8_t;
57687 typedef unsigned short  uint16_t;
57688 typedef unsigned long   uint32_t;
57689 #ifndef __int8_t_defined
57690 #define __int8_t_defined
57691 typedef          char    int8_t;
57692 typedef          short   int16_t;
57693 typedef          long    int32_t;
57694 #endif
57695 #elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL == 444
57696 /* 2:4:4 =  LP32 = a 32-bit system derived from a 16-bit */
57697 /* 4:4:4 = ILP32 = a normal 32-bit system                */
57698 typedef unsigned char   uint8_t;
57699 typedef unsigned short  uint16_t;
57700 typedef unsigned int    uint32_t;
57701 #ifndef __int8_t_defined
57702 #define __int8_t_defined
57703 typedef          char    int8_t;
57704 typedef          short   int16_t;
57705 typedef          int     int32_t;
57706 #endif
57707 #elif _STDINT_LONG_MODEL+0 == 484 || _STDINT_LONG_MODEL+0 == 488
57708 /* 4:8:4 =  IP32 = a 32-bit system prepared for 64-bit    */
57709 /* 4:8:8 =  LP64 = a normal 64-bit system                 */
57710 typedef unsigned char   uint8_t;
57711 typedef unsigned short  uint16_t;
57712 typedef unsigned int    uint32_t;
57713 #ifndef __int8_t_defined
57714 #define __int8_t_defined
57715 typedef          char    int8_t;
57716 typedef          short   int16_t;
57717 typedef          int     int32_t;
57718 #endif
57719 /* this system has a "long" of 64bit */
57720 #ifndef _HAVE_UINT64_T
57721 #define _HAVE_UINT64_T
57722 typedef unsigned long   uint64_t;
57723 typedef          long    int64_t;
57724 #endif
57725 #elif _STDINT_LONG_MODEL+0 == 448
57726 /*      LLP64   a 64-bit system derived from a 32-bit system */
57727 typedef unsigned char   uint8_t;
57728 typedef unsigned short  uint16_t;
57729 typedef unsigned int    uint32_t;
57730 #ifndef __int8_t_defined
57731 #define __int8_t_defined
57732 typedef          char    int8_t;
57733 typedef          short   int16_t;
57734 typedef          int     int32_t;
57735 #endif
57736 /* assuming the system has a "long long" */
57737 #ifndef _HAVE_UINT64_T
57738 #define _HAVE_UINT64_T
57739 #define _HAVE_LONGLONG_UINT64_T
57740 typedef unsigned long long uint64_t;
57741 typedef          long long  int64_t;
57742 #endif
57743 #else
57744 #define _STDINT_NO_INT32_T
57745 #endif
57746 #else
57747 #define _STDINT_NO_INT8_T
57748 #define _STDINT_NO_INT32_T
57749 #endif
57750 #endif
57751
57752 /*
57753  * quote from SunOS-5.8 sys/inttypes.h:
57754  * Use at your own risk.  As of February 1996, the committee is squarely
57755  * behind the fixed sized types; the "least" and "fast" types are still being
57756  * discussed.  The probability that the "fast" types may be removed before
57757  * the standard is finalized is high enough that they are not currently
57758  * implemented.
57759  */
57760
57761 #if defined _STDINT_NEED_INT_LEAST_T
57762 typedef  int8_t    int_least8_t;
57763 typedef  int16_t   int_least16_t;
57764 typedef  int32_t   int_least32_t;
57765 #ifdef _HAVE_UINT64_T
57766 typedef  int64_t   int_least64_t;
57767 #endif
57768
57769 typedef uint8_t   uint_least8_t;
57770 typedef uint16_t  uint_least16_t;
57771 typedef uint32_t  uint_least32_t;
57772 #ifdef _HAVE_UINT64_T
57773 typedef uint64_t  uint_least64_t;
57774 #endif
57775   /* least types */
57776 #endif
57777
57778 #if defined _STDINT_NEED_INT_FAST_T
57779 typedef  int8_t    int_fast8_t;
57780 typedef  int       int_fast16_t;
57781 typedef  int32_t   int_fast32_t;
57782 #ifdef _HAVE_UINT64_T
57783 typedef  int64_t   int_fast64_t;
57784 #endif
57785
57786 typedef uint8_t   uint_fast8_t;
57787 typedef unsigned  uint_fast16_t;
57788 typedef uint32_t  uint_fast32_t;
57789 #ifdef _HAVE_UINT64_T
57790 typedef uint64_t  uint_fast64_t;
57791 #endif
57792   /* fast types */
57793 #endif
57794
57795 #ifdef _STDINT_NEED_INTMAX_T
57796 #ifdef _HAVE_UINT64_T
57797 typedef  int64_t       intmax_t;
57798 typedef uint64_t      uintmax_t;
57799 #else
57800 typedef          long  intmax_t;
57801 typedef unsigned long uintmax_t;
57802 #endif
57803 #endif
57804
57805 #ifdef _STDINT_NEED_INTPTR_T
57806 #ifndef __intptr_t_defined
57807 #define __intptr_t_defined
57808 /* we encourage using "long" to store pointer values, never use "int" ! */
57809 #if   _STDINT_LONG_MODEL+0 == 242 || _STDINT_LONG_MODEL+0 == 484
57810 typedef  unsinged int   uintptr_t;
57811 typedef           int    intptr_t;
57812 #elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL+0 == 444
57813 typedef  unsigned long  uintptr_t;
57814 typedef           long   intptr_t;
57815 #elif _STDINT_LONG_MODEL+0 == 448 && defined _HAVE_UINT64_T
57816 typedef        uint64_t uintptr_t;
57817 typedef         int64_t  intptr_t;
57818 #else /* matches typical system types ILP32 and LP64 - but not IP16 or LLP64 */
57819 typedef  unsigned long  uintptr_t;
57820 typedef           long   intptr_t;
57821 #endif
57822 #endif
57823 #endif
57824
57825 /* The ISO C99 standard specifies that in C++ implementations these
57826    should only be defined if explicitly requested.  */
57827 #if !defined __cplusplus || defined __STDC_CONSTANT_MACROS
57828 #ifndef UINT32_C
57829
57830 /* Signed.  */
57831 # define INT8_C(c)      c
57832 # define INT16_C(c)     c
57833 # define INT32_C(c)     c
57834 # ifdef _HAVE_LONGLONG_UINT64_T
57835 #  define INT64_C(c)    c ## L
57836 # else
57837 #  define INT64_C(c)    c ## LL
57838 # endif
57839
57840 /* Unsigned.  */
57841 # define UINT8_C(c)     c ## U
57842 # define UINT16_C(c)    c ## U
57843 # define UINT32_C(c)    c ## U
57844 # ifdef _HAVE_LONGLONG_UINT64_T
57845 #  define UINT64_C(c)   c ## UL
57846 # else
57847 #  define UINT64_C(c)   c ## ULL
57848 # endif
57849
57850 /* Maximal type.  */
57851 # ifdef _HAVE_LONGLONG_UINT64_T
57852 #  define INTMAX_C(c)   c ## L
57853 #  define UINTMAX_C(c)  c ## UL
57854 # else
57855 #  define INTMAX_C(c)   c ## LL
57856 #  define UINTMAX_C(c)  c ## ULL
57857 # endif
57858
57859   /* literalnumbers */
57860 #endif
57861 #endif
57862
57863 /* These limits are merily those of a two complement byte-oriented system */
57864
57865 /* Minimum of signed integral types.  */
57866 # define INT8_MIN               (-128)
57867 # define INT16_MIN              (-32767-1)
57868 # define INT32_MIN              (-2147483647-1)
57869 # define INT64_MIN              (-__INT64_C(9223372036854775807)-1)
57870 /* Maximum of signed integral types.  */
57871 # define INT8_MAX               (127)
57872 # define INT16_MAX              (32767)
57873 # define INT32_MAX              (2147483647)
57874 # define INT64_MAX              (__INT64_C(9223372036854775807))
57875
57876 /* Maximum of unsigned integral types.  */
57877 # define UINT8_MAX              (255)
57878 # define UINT16_MAX             (65535)
57879 # define UINT32_MAX             (4294967295U)
57880 # define UINT64_MAX             (__UINT64_C(18446744073709551615))
57881
57882 /* Minimum of signed integral types having a minimum size.  */
57883 # define INT_LEAST8_MIN         INT8_MIN
57884 # define INT_LEAST16_MIN        INT16_MIN
57885 # define INT_LEAST32_MIN        INT32_MIN
57886 # define INT_LEAST64_MIN        INT64_MIN
57887 /* Maximum of signed integral types having a minimum size.  */
57888 # define INT_LEAST8_MAX         INT8_MAX
57889 # define INT_LEAST16_MAX        INT16_MAX
57890 # define INT_LEAST32_MAX        INT32_MAX
57891 # define INT_LEAST64_MAX        INT64_MAX
57892
57893 /* Maximum of unsigned integral types having a minimum size.  */
57894 # define UINT_LEAST8_MAX        UINT8_MAX
57895 # define UINT_LEAST16_MAX       UINT16_MAX
57896 # define UINT_LEAST32_MAX       UINT32_MAX
57897 # define UINT_LEAST64_MAX       UINT64_MAX
57898
57899   /* shortcircuit*/
57900 #endif
57901   /* once */
57902 #endif
57903 #endif
57904 STDINT_EOF
57905 fi
57906     if cmp -s $ac_stdint_h $ac_stdint 2>/dev/null; then
57907       { echo "$as_me:$LINENO: $ac_stdint_h is unchanged" >&5
57908 echo "$as_me: $ac_stdint_h is unchanged" >&6;}
57909     else
57910       ac_dir=`(dirname "$ac_stdint_h") 2>/dev/null ||
57911 $as_expr X"$ac_stdint_h" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
57912          X"$ac_stdint_h" : 'X\(//\)[^/]' \| \
57913          X"$ac_stdint_h" : 'X\(//\)$' \| \
57914          X"$ac_stdint_h" : 'X\(/\)' \| \
57915          .     : '\(.\)' 2>/dev/null ||
57916 echo X"$ac_stdint_h" |
57917     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
57918           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
57919           /^X\(\/\/\)$/{ s//\1/; q; }
57920           /^X\(\/\).*/{ s//\1/; q; }
57921           s/.*/./; q'`
57922       { if $as_mkdir_p; then
57923     mkdir -p "$ac_dir"
57924   else
57925     as_dir="$ac_dir"
57926     as_dirs=
57927     while test ! -d "$as_dir"; do
57928       as_dirs="$as_dir $as_dirs"
57929       as_dir=`(dirname "$as_dir") 2>/dev/null ||
57930 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
57931          X"$as_dir" : 'X\(//\)[^/]' \| \
57932          X"$as_dir" : 'X\(//\)$' \| \
57933          X"$as_dir" : 'X\(/\)' \| \
57934          .     : '\(.\)' 2>/dev/null ||
57935 echo X"$as_dir" |
57936     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
57937           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
57938           /^X\(\/\/\)$/{ s//\1/; q; }
57939           /^X\(\/\).*/{ s//\1/; q; }
57940           s/.*/./; q'`
57941     done
57942     test ! -n "$as_dirs" || mkdir $as_dirs
57943   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
57944 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
57945    { (exit 1); exit 1; }; }; }
57946
57947       rm -f $ac_stdint_h
57948       mv $ac_stdint $ac_stdint_h
57949     fi
57950  ;;
57951   esac
57952 done
57953 _ACEOF
57954
57955 cat >>$CONFIG_STATUS <<\_ACEOF
57956
57957 { (exit 0); exit 0; }
57958 _ACEOF
57959 chmod +x $CONFIG_STATUS
57960 ac_clean_files=$ac_clean_files_save
57961
57962
57963 # configure is writing to config.log, and then calls config.status.
57964 # config.status does its own redirection, appending to config.log.
57965 # Unfortunately, on DOS this fails, as config.log is still kept open
57966 # by configure, so config.status won't be able to write to it; its
57967 # output is simply discarded.  So we exec the FD to /dev/null,
57968 # effectively closing config.log, so it can be properly (re)opened and
57969 # appended to by config.status.  When coming back to configure, we
57970 # need to make the FD available again.
57971 if test "$no_create" != yes; then
57972   ac_cs_success=:
57973   ac_config_status_args=
57974   test "$silent" = yes &&
57975     ac_config_status_args="$ac_config_status_args --quiet"
57976   exec 5>/dev/null
57977   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
57978   exec 5>>config.log
57979   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
57980   # would make configure fail if this is the last instruction.
57981   $ac_cs_success || { (exit 1); exit 1; }
57982 fi
57983