4b65cf8ec01a5189fb9b2b25d7049cc6a9aeac16
[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 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 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 MT_FILE_FLAG CPP EGREP AR AWK_VAR_ASSIGNMENT_OPT YACC CAT COMPRESS DD GETCONF GNUPLOT GREP GNUTAR SAMBA_CLIENT GZIP 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 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 XSLTPROC HAVE_XSLTPROC_TRUE HAVE_XSLTPROC_FALSE'
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   --enable-shared[=PKGS]
1030                           build shared libraries [default=yes]
1031   --enable-static[=PKGS]
1032                           build static libraries [default=yes]
1033   --enable-fast-install[=PKGS]
1034                           optimize for fast installation [default=yes]
1035   --disable-libtool-lock  avoid locking (might break parallel builds)
1036   --disable-largefile     omit support for large files
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   --with-gnutar[=PROG]      use PROG as GNU tar executable [default: looks for one]
1072   --with-smbclient[=PROG]   use PROG as Samba's smbclient executable [default: looks for one]
1073   --with-samba-user was deprecated
1074   --with-gnutar-listdir=DIR  gnutar directory lists go in DIR [localstatedir/amanda/gnutar-lists]
1075   --with-gnutar-listed-incremental was deprecated, use --with-gnutar-listdir
1076   --without-bsd-security do not use BSD rsh/rlogin style security
1077   --without-amandahosts  use .rhosts instead of .amandahosts
1078   --with-dbmalloc=DIR  Location of dbmalloc libs and headers
1079   --with-krb4-security=DIR   Location of Kerberos software [/usr/kerberos /usr/cygnus /usr /opt/kerberos]
1080   --with-rsh-security use rsh as a transport
1081   --with-ssh-security use ssh as a transport
1082     --with-server-principal=ARG    server host principal  ["amanda"]
1083     --with-server-instance=ARG     server host instance   ["amanda"]
1084     --with-server-keyfile=ARG      server host key file   ["/.amanda"]
1085     --with-client-principal=ARG    client host principal  ["rcmd"]
1086     --with-client-instance=ARG     client host instance   [HOSTNAME_INSTANCE]
1087     --with-client-keyfile=ARG      client host key file   [KEYFILE]
1088     --with-ticket-lifetime=ARG     ticket lifetime        [128]
1089   --with-krb5-security=DIR   Location of Kerberos V software [/usr/kerberos /usr/cygnus /usr /opt/kerberos]
1090   --with-portrange=low,high     bind unreserved TCP server sockets to ports within this range [unlimited]
1091   --with-tcpportrange=low,high  bind unreserved TCP server sockets to ports within this range [unlimited]
1092   --with-udpportrange=low,high  bind reserved UDP server sockets to ports within this range [unlimited]
1093   --with-maxtapeblocksize=kb            Maximum size of a tape block
1094   --with-db={text,db,dbm,gdbm,ndbm} use the selected database format [text]
1095   --with-mmap            force use of mmap instead of shared memory support
1096   --with-buffered-dump   buffer the dumping sockets on the server for speed
1097   --with-assertions      compile assertions into code
1098   --with-tmpdir=/temp/dir area Amanda can use for temp files [/tmp/amanda]
1099   --with[out]-debugging[=/debug/dir] [do not] record runtime debugging information in specified directory [--with-tmpdir]
1100   --with-debug-days=NN    number of days to keep debugging files [default=4]
1101   --with-testing[=suffix] use alternate service names
1102   --with-dump-honor-nodump  if dump supports -h, use it for level0s too
1103   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1104   --with-pic              try to use only PIC/non-PIC objects [default=use
1105                           both]
1106   --with-tags[=TAGS]
1107                           include additional configurations [automatic]
1108   --without-built-manpages Do not build manpages from XML source.
1109
1110 Some influential environment variables:
1111   CC          C compiler command
1112   CFLAGS      C compiler flags
1113   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1114               nonstandard directory <lib dir>
1115   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1116               headers in a nonstandard directory <include dir>
1117   CPP         C preprocessor
1118   CXX         C++ compiler command
1119   CXXFLAGS    C++ compiler flags
1120   CXXCPP      C++ preprocessor
1121   F77         Fortran 77 compiler command
1122   FFLAGS      Fortran 77 compiler flags
1123
1124 Use these variables to override the choices made by `configure' or to help
1125 it to find libraries and programs with nonstandard names/locations.
1126
1127 _ACEOF
1128 fi
1129
1130 if test "$ac_init_help" = "recursive"; then
1131   # If there are subdirs, report their specific --help.
1132   ac_popdir=`pwd`
1133   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1134     test -d $ac_dir || continue
1135     ac_builddir=.
1136
1137 if test "$ac_dir" != .; then
1138   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1139   # A "../" for each directory in $ac_dir_suffix.
1140   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1141 else
1142   ac_dir_suffix= ac_top_builddir=
1143 fi
1144
1145 case $srcdir in
1146   .)  # No --srcdir option.  We are building in place.
1147     ac_srcdir=.
1148     if test -z "$ac_top_builddir"; then
1149        ac_top_srcdir=.
1150     else
1151        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1152     fi ;;
1153   [\\/]* | ?:[\\/]* )  # Absolute path.
1154     ac_srcdir=$srcdir$ac_dir_suffix;
1155     ac_top_srcdir=$srcdir ;;
1156   *) # Relative path.
1157     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1158     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1159 esac
1160
1161 # Do not use `cd foo && pwd` to compute absolute paths, because
1162 # the directories may not exist.
1163 case `pwd` in
1164 .) ac_abs_builddir="$ac_dir";;
1165 *)
1166   case "$ac_dir" in
1167   .) ac_abs_builddir=`pwd`;;
1168   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1169   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1170   esac;;
1171 esac
1172 case $ac_abs_builddir in
1173 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1174 *)
1175   case ${ac_top_builddir}. in
1176   .) ac_abs_top_builddir=$ac_abs_builddir;;
1177   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1178   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1179   esac;;
1180 esac
1181 case $ac_abs_builddir in
1182 .) ac_abs_srcdir=$ac_srcdir;;
1183 *)
1184   case $ac_srcdir in
1185   .) ac_abs_srcdir=$ac_abs_builddir;;
1186   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1187   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1188   esac;;
1189 esac
1190 case $ac_abs_builddir in
1191 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1192 *)
1193   case $ac_top_srcdir in
1194   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1195   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1196   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1197   esac;;
1198 esac
1199
1200     cd $ac_dir
1201     # Check for guested configure; otherwise get Cygnus style configure.
1202     if test -f $ac_srcdir/configure.gnu; then
1203       echo
1204       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1205     elif test -f $ac_srcdir/configure; then
1206       echo
1207       $SHELL $ac_srcdir/configure  --help=recursive
1208     elif test -f $ac_srcdir/configure.ac ||
1209            test -f $ac_srcdir/configure.in; then
1210       echo
1211       $ac_configure --help
1212     else
1213       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1214     fi
1215     cd $ac_popdir
1216   done
1217 fi
1218
1219 test -n "$ac_init_help" && exit 0
1220 if $ac_init_version; then
1221   cat <<\_ACEOF
1222
1223 Copyright (C) 2003 Free Software Foundation, Inc.
1224 This configure script is free software; the Free Software Foundation
1225 gives unlimited permission to copy, distribute and modify it.
1226 _ACEOF
1227   exit 0
1228 fi
1229 exec 5>config.log
1230 cat >&5 <<_ACEOF
1231 This file contains any messages produced by compilers while
1232 running configure, to aid debugging if configure makes a mistake.
1233
1234 It was created by $as_me, which was
1235 generated by GNU Autoconf 2.59.  Invocation command line was
1236
1237   $ $0 $@
1238
1239 _ACEOF
1240 {
1241 cat <<_ASUNAME
1242 ## --------- ##
1243 ## Platform. ##
1244 ## --------- ##
1245
1246 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1247 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1248 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1249 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1250 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1251
1252 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1253 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1254
1255 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1256 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1257 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1258 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1259 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1260 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1261 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1262
1263 _ASUNAME
1264
1265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1266 for as_dir in $PATH
1267 do
1268   IFS=$as_save_IFS
1269   test -z "$as_dir" && as_dir=.
1270   echo "PATH: $as_dir"
1271 done
1272
1273 } >&5
1274
1275 cat >&5 <<_ACEOF
1276
1277
1278 ## ----------- ##
1279 ## Core tests. ##
1280 ## ----------- ##
1281
1282 _ACEOF
1283
1284
1285 # Keep a trace of the command line.
1286 # Strip out --no-create and --no-recursion so they do not pile up.
1287 # Strip out --silent because we don't want to record it for future runs.
1288 # Also quote any args containing shell meta-characters.
1289 # Make two passes to allow for proper duplicate-argument suppression.
1290 ac_configure_args=
1291 ac_configure_args0=
1292 ac_configure_args1=
1293 ac_sep=
1294 ac_must_keep_next=false
1295 for ac_pass in 1 2
1296 do
1297   for ac_arg
1298   do
1299     case $ac_arg in
1300     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1301     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1302     | -silent | --silent | --silen | --sile | --sil)
1303       continue ;;
1304     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1305       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1306     esac
1307     case $ac_pass in
1308     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1309     2)
1310       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1311       if test $ac_must_keep_next = true; then
1312         ac_must_keep_next=false # Got value, back to normal.
1313       else
1314         case $ac_arg in
1315           *=* | --config-cache | -C | -disable-* | --disable-* \
1316           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1317           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1318           | -with-* | --with-* | -without-* | --without-* | --x)
1319             case "$ac_configure_args0 " in
1320               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1321             esac
1322             ;;
1323           -* ) ac_must_keep_next=true ;;
1324         esac
1325       fi
1326       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1327       # Get rid of the leading space.
1328       ac_sep=" "
1329       ;;
1330     esac
1331   done
1332 done
1333 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1334 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1335
1336 # When interrupted or exit'd, cleanup temporary files, and complete
1337 # config.log.  We remove comments because anyway the quotes in there
1338 # would cause problems or look ugly.
1339 # WARNING: Be sure not to use single quotes in there, as some shells,
1340 # such as our DU 5.0 friend, will then `close' the trap.
1341 trap 'exit_status=$?
1342   # Save into config.log some information that might help in debugging.
1343   {
1344     echo
1345
1346     cat <<\_ASBOX
1347 ## ---------------- ##
1348 ## Cache variables. ##
1349 ## ---------------- ##
1350 _ASBOX
1351     echo
1352     # The following way of writing the cache mishandles newlines in values,
1353 {
1354   (set) 2>&1 |
1355     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1356     *ac_space=\ *)
1357       sed -n \
1358         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1359           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1360       ;;
1361     *)
1362       sed -n \
1363         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1364       ;;
1365     esac;
1366 }
1367     echo
1368
1369     cat <<\_ASBOX
1370 ## ----------------- ##
1371 ## Output variables. ##
1372 ## ----------------- ##
1373 _ASBOX
1374     echo
1375     for ac_var in $ac_subst_vars
1376     do
1377       eval ac_val=$`echo $ac_var`
1378       echo "$ac_var='"'"'$ac_val'"'"'"
1379     done | sort
1380     echo
1381
1382     if test -n "$ac_subst_files"; then
1383       cat <<\_ASBOX
1384 ## ------------- ##
1385 ## Output files. ##
1386 ## ------------- ##
1387 _ASBOX
1388       echo
1389       for ac_var in $ac_subst_files
1390       do
1391         eval ac_val=$`echo $ac_var`
1392         echo "$ac_var='"'"'$ac_val'"'"'"
1393       done | sort
1394       echo
1395     fi
1396
1397     if test -s confdefs.h; then
1398       cat <<\_ASBOX
1399 ## ----------- ##
1400 ## confdefs.h. ##
1401 ## ----------- ##
1402 _ASBOX
1403       echo
1404       sed "/^$/d" confdefs.h | sort
1405       echo
1406     fi
1407     test "$ac_signal" != 0 &&
1408       echo "$as_me: caught signal $ac_signal"
1409     echo "$as_me: exit $exit_status"
1410   } >&5
1411   rm -f core *.core &&
1412   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1413     exit $exit_status
1414      ' 0
1415 for ac_signal in 1 2 13 15; do
1416   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1417 done
1418 ac_signal=0
1419
1420 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1421 rm -rf conftest* confdefs.h
1422 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1423 echo >confdefs.h
1424
1425 # Predefined preprocessor variables.
1426
1427 cat >>confdefs.h <<_ACEOF
1428 #define PACKAGE_NAME "$PACKAGE_NAME"
1429 _ACEOF
1430
1431
1432 cat >>confdefs.h <<_ACEOF
1433 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1434 _ACEOF
1435
1436
1437 cat >>confdefs.h <<_ACEOF
1438 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1439 _ACEOF
1440
1441
1442 cat >>confdefs.h <<_ACEOF
1443 #define PACKAGE_STRING "$PACKAGE_STRING"
1444 _ACEOF
1445
1446
1447 cat >>confdefs.h <<_ACEOF
1448 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1449 _ACEOF
1450
1451
1452 # Let the site file select an alternate cache file if it wants to.
1453 # Prefer explicitly selected file to automatically selected ones.
1454 if test -z "$CONFIG_SITE"; then
1455   if test "x$prefix" != xNONE; then
1456     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1457   else
1458     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1459   fi
1460 fi
1461 for ac_site_file in $CONFIG_SITE; do
1462   if test -r "$ac_site_file"; then
1463     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1464 echo "$as_me: loading site script $ac_site_file" >&6;}
1465     sed 's/^/| /' "$ac_site_file" >&5
1466     . "$ac_site_file"
1467   fi
1468 done
1469
1470 if test -r "$cache_file"; then
1471   # Some versions of bash will fail to source /dev/null (special
1472   # files actually), so we avoid doing that.
1473   if test -f "$cache_file"; then
1474     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1475 echo "$as_me: loading cache $cache_file" >&6;}
1476     case $cache_file in
1477       [\\/]* | ?:[\\/]* ) . $cache_file;;
1478       *)                      . ./$cache_file;;
1479     esac
1480   fi
1481 else
1482   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1483 echo "$as_me: creating cache $cache_file" >&6;}
1484   >$cache_file
1485 fi
1486
1487 # Check that the precious variables saved in the cache have kept the same
1488 # value.
1489 ac_cache_corrupted=false
1490 for ac_var in `(set) 2>&1 |
1491                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1492   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1493   eval ac_new_set=\$ac_env_${ac_var}_set
1494   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1495   eval ac_new_val="\$ac_env_${ac_var}_value"
1496   case $ac_old_set,$ac_new_set in
1497     set,)
1498       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1499 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1500       ac_cache_corrupted=: ;;
1501     ,set)
1502       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1503 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1504       ac_cache_corrupted=: ;;
1505     ,);;
1506     *)
1507       if test "x$ac_old_val" != "x$ac_new_val"; then
1508         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1509 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1510         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1511 echo "$as_me:   former value:  $ac_old_val" >&2;}
1512         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1513 echo "$as_me:   current value: $ac_new_val" >&2;}
1514         ac_cache_corrupted=:
1515       fi;;
1516   esac
1517   # Pass precious variables to config.status.
1518   if test "$ac_new_set" = set; then
1519     case $ac_new_val in
1520     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1521       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1522     *) ac_arg=$ac_var=$ac_new_val ;;
1523     esac
1524     case " $ac_configure_args " in
1525       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1526       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1527     esac
1528   fi
1529 done
1530 if $ac_cache_corrupted; then
1531   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1532 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1533   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1534 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1535    { (exit 1); exit 1; }; }
1536 fi
1537
1538 ac_ext=c
1539 ac_cpp='$CPP $CPPFLAGS'
1540 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1541 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1542 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563 ac_aux_dir=
1564 for ac_dir in config $srcdir/config; do
1565   if test -f $ac_dir/install-sh; then
1566     ac_aux_dir=$ac_dir
1567     ac_install_sh="$ac_aux_dir/install-sh -c"
1568     break
1569   elif test -f $ac_dir/install.sh; then
1570     ac_aux_dir=$ac_dir
1571     ac_install_sh="$ac_aux_dir/install.sh -c"
1572     break
1573   elif test -f $ac_dir/shtool; then
1574     ac_aux_dir=$ac_dir
1575     ac_install_sh="$ac_aux_dir/shtool install -c"
1576     break
1577   fi
1578 done
1579 if test -z "$ac_aux_dir"; then
1580   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1581 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1582    { (exit 1); exit 1; }; }
1583 fi
1584 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1585 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1586 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1587
1588 # Make sure we can run config.sub.
1589 $ac_config_sub sun4 >/dev/null 2>&1 ||
1590   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1591 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1592    { (exit 1); exit 1; }; }
1593
1594 echo "$as_me:$LINENO: checking build system type" >&5
1595 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1596 if test "${ac_cv_build+set}" = set; then
1597   echo $ECHO_N "(cached) $ECHO_C" >&6
1598 else
1599   ac_cv_build_alias=$build_alias
1600 test -z "$ac_cv_build_alias" &&
1601   ac_cv_build_alias=`$ac_config_guess`
1602 test -z "$ac_cv_build_alias" &&
1603   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1604 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1605    { (exit 1); exit 1; }; }
1606 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1607   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1608 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1609    { (exit 1); exit 1; }; }
1610
1611 fi
1612 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1613 echo "${ECHO_T}$ac_cv_build" >&6
1614 build=$ac_cv_build
1615 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1616 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1617 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1618
1619
1620 echo "$as_me:$LINENO: checking host system type" >&5
1621 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1622 if test "${ac_cv_host+set}" = set; then
1623   echo $ECHO_N "(cached) $ECHO_C" >&6
1624 else
1625   ac_cv_host_alias=$host_alias
1626 test -z "$ac_cv_host_alias" &&
1627   ac_cv_host_alias=$ac_cv_build_alias
1628 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1629   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1630 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1631    { (exit 1); exit 1; }; }
1632
1633 fi
1634 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1635 echo "${ECHO_T}$ac_cv_host" >&6
1636 host=$ac_cv_host
1637 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1638 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1639 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1640
1641
1642 echo "$as_me:$LINENO: checking target system type" >&5
1643 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1644 if test "${ac_cv_target+set}" = set; then
1645   echo $ECHO_N "(cached) $ECHO_C" >&6
1646 else
1647   ac_cv_target_alias=$target_alias
1648 test "x$ac_cv_target_alias" = "x" &&
1649   ac_cv_target_alias=$ac_cv_host_alias
1650 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1651   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1652 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1653    { (exit 1); exit 1; }; }
1654
1655 fi
1656 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1657 echo "${ECHO_T}$ac_cv_target" >&6
1658 target=$ac_cv_target
1659 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1660 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1661 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1662
1663
1664 # The aliases save the names the user supplied, while $host etc.
1665 # will get canonicalized.
1666 test -n "$target_alias" &&
1667   test "$program_prefix$program_suffix$program_transform_name" = \
1668     NONENONEs,x,x, &&
1669   program_prefix=${target_alias}-
1670
1671
1672 CONFIGURE_COMMAND="'$0'"
1673 for arg in "$@"; do
1674   CONFIGURE_COMMAND="$CONFIGURE_COMMAND '$arg'"
1675 done
1676
1677 cat >>confdefs.h <<_ACEOF
1678 #define CONFIGURE_COMMAND "$CONFIGURE_COMMAND"
1679 _ACEOF
1680
1681
1682
1683 am__api_version="1.9"
1684 # Find a good install program.  We prefer a C program (faster),
1685 # so one script is as good as another.  But avoid the broken or
1686 # incompatible versions:
1687 # SysV /etc/install, /usr/sbin/install
1688 # SunOS /usr/etc/install
1689 # IRIX /sbin/install
1690 # AIX /bin/install
1691 # AmigaOS /C/install, which installs bootblocks on floppy discs
1692 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1693 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1694 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1695 # OS/2's system install, which has a completely different semantic
1696 # ./install, which can be erroneously created by make from ./install.sh.
1697 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1698 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1699 if test -z "$INSTALL"; then
1700 if test "${ac_cv_path_install+set}" = set; then
1701   echo $ECHO_N "(cached) $ECHO_C" >&6
1702 else
1703   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1704 for as_dir in $PATH
1705 do
1706   IFS=$as_save_IFS
1707   test -z "$as_dir" && as_dir=.
1708   # Account for people who put trailing slashes in PATH elements.
1709 case $as_dir/ in
1710   ./ | .// | /cC/* | \
1711   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1712   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1713   /usr/ucb/* ) ;;
1714   *)
1715     # OSF1 and SCO ODT 3.0 have their own names for install.
1716     # Don't use installbsd from OSF since it installs stuff as root
1717     # by default.
1718     for ac_prog in ginstall scoinst install; do
1719       for ac_exec_ext in '' $ac_executable_extensions; do
1720         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1721           if test $ac_prog = install &&
1722             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1723             # AIX install.  It has an incompatible calling convention.
1724             :
1725           elif test $ac_prog = install &&
1726             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1727             # program-specific install script used by HP pwplus--don't use.
1728             :
1729           else
1730             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1731             break 3
1732           fi
1733         fi
1734       done
1735     done
1736     ;;
1737 esac
1738 done
1739
1740
1741 fi
1742   if test "${ac_cv_path_install+set}" = set; then
1743     INSTALL=$ac_cv_path_install
1744   else
1745     # As a last resort, use the slow shell script.  We don't cache a
1746     # path for INSTALL within a source directory, because that will
1747     # break other packages using the cache if that directory is
1748     # removed, or if the path is relative.
1749     INSTALL=$ac_install_sh
1750   fi
1751 fi
1752 echo "$as_me:$LINENO: result: $INSTALL" >&5
1753 echo "${ECHO_T}$INSTALL" >&6
1754
1755 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1756 # It thinks the first close brace ends the variable substitution.
1757 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1758
1759 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1760
1761 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1762
1763 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1764 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1765 # Just in case
1766 sleep 1
1767 echo timestamp > conftest.file
1768 # Do `set' in a subshell so we don't clobber the current shell's
1769 # arguments.  Must try -L first in case configure is actually a
1770 # symlink; some systems play weird games with the mod time of symlinks
1771 # (eg FreeBSD returns the mod time of the symlink's containing
1772 # directory).
1773 if (
1774    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1775    if test "$*" = "X"; then
1776       # -L didn't work.
1777       set X `ls -t $srcdir/configure conftest.file`
1778    fi
1779    rm -f conftest.file
1780    if test "$*" != "X $srcdir/configure conftest.file" \
1781       && test "$*" != "X conftest.file $srcdir/configure"; then
1782
1783       # If neither matched, then we have a broken ls.  This can happen
1784       # if, for instance, CONFIG_SHELL is bash and it inherits a
1785       # broken ls alias from the environment.  This has actually
1786       # happened.  Such a system could not be considered "sane".
1787       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1788 alias in your environment" >&5
1789 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1790 alias in your environment" >&2;}
1791    { (exit 1); exit 1; }; }
1792    fi
1793
1794    test "$2" = conftest.file
1795    )
1796 then
1797    # Ok.
1798    :
1799 else
1800    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1801 Check your system clock" >&5
1802 echo "$as_me: error: newly created file is older than distributed files!
1803 Check your system clock" >&2;}
1804    { (exit 1); exit 1; }; }
1805 fi
1806 echo "$as_me:$LINENO: result: yes" >&5
1807 echo "${ECHO_T}yes" >&6
1808 test "$program_prefix" != NONE &&
1809   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1810 # Use a double $ so make ignores it.
1811 test "$program_suffix" != NONE &&
1812   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1813 # Double any \ or $.  echo might interpret backslashes.
1814 # By default was `s,x,x', remove it if useless.
1815 cat <<\_ACEOF >conftest.sed
1816 s/[\\$]/&&/g;s/;s,x,x,$//
1817 _ACEOF
1818 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1819 rm conftest.sed
1820
1821 # expand $ac_aux_dir to an absolute path
1822 am_aux_dir=`cd $ac_aux_dir && pwd`
1823
1824 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1825 # Use eval to expand $SHELL
1826 if eval "$MISSING --run true"; then
1827   am_missing_run="$MISSING --run "
1828 else
1829   am_missing_run=
1830   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1831 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1832 fi
1833
1834 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1835   # We used to keeping the `.' as first argument, in order to
1836   # allow $(mkdir_p) to be used without argument.  As in
1837   #   $(mkdir_p) $(somedir)
1838   # where $(somedir) is conditionally defined.  However this is wrong
1839   # for two reasons:
1840   #  1. if the package is installed by a user who cannot write `.'
1841   #     make install will fail,
1842   #  2. the above comment should most certainly read
1843   #     $(mkdir_p) $(DESTDIR)$(somedir)
1844   #     so it does not work when $(somedir) is undefined and
1845   #     $(DESTDIR) is not.
1846   #  To support the latter case, we have to write
1847   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1848   #  so the `.' trick is pointless.
1849   mkdir_p='mkdir -p --'
1850 else
1851   # On NextStep and OpenStep, the `mkdir' command does not
1852   # recognize any option.  It will interpret all options as
1853   # directories to create, and then abort because `.' already
1854   # exists.
1855   for d in ./-p ./--version;
1856   do
1857     test -d $d && rmdir $d
1858   done
1859   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1860   if test -f "$ac_aux_dir/mkinstalldirs"; then
1861     mkdir_p='$(mkinstalldirs)'
1862   else
1863     mkdir_p='$(install_sh) -d'
1864   fi
1865 fi
1866
1867 for ac_prog in gawk mawk nawk awk
1868 do
1869   # Extract the first word of "$ac_prog", so it can be a program name with args.
1870 set dummy $ac_prog; ac_word=$2
1871 echo "$as_me:$LINENO: checking for $ac_word" >&5
1872 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1873 if test "${ac_cv_prog_AWK+set}" = set; then
1874   echo $ECHO_N "(cached) $ECHO_C" >&6
1875 else
1876   if test -n "$AWK"; then
1877   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1878 else
1879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1880 for as_dir in $PATH
1881 do
1882   IFS=$as_save_IFS
1883   test -z "$as_dir" && as_dir=.
1884   for ac_exec_ext in '' $ac_executable_extensions; do
1885   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1886     ac_cv_prog_AWK="$ac_prog"
1887     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1888     break 2
1889   fi
1890 done
1891 done
1892
1893 fi
1894 fi
1895 AWK=$ac_cv_prog_AWK
1896 if test -n "$AWK"; then
1897   echo "$as_me:$LINENO: result: $AWK" >&5
1898 echo "${ECHO_T}$AWK" >&6
1899 else
1900   echo "$as_me:$LINENO: result: no" >&5
1901 echo "${ECHO_T}no" >&6
1902 fi
1903
1904   test -n "$AWK" && break
1905 done
1906
1907 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1908 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1909 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1910 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1911   echo $ECHO_N "(cached) $ECHO_C" >&6
1912 else
1913   cat >conftest.make <<\_ACEOF
1914 all:
1915         @echo 'ac_maketemp="$(MAKE)"'
1916 _ACEOF
1917 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1918 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1919 if test -n "$ac_maketemp"; then
1920   eval ac_cv_prog_make_${ac_make}_set=yes
1921 else
1922   eval ac_cv_prog_make_${ac_make}_set=no
1923 fi
1924 rm -f conftest.make
1925 fi
1926 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1927   echo "$as_me:$LINENO: result: yes" >&5
1928 echo "${ECHO_T}yes" >&6
1929   SET_MAKE=
1930 else
1931   echo "$as_me:$LINENO: result: no" >&5
1932 echo "${ECHO_T}no" >&6
1933   SET_MAKE="MAKE=${MAKE-make}"
1934 fi
1935
1936 rm -rf .tst 2>/dev/null
1937 mkdir .tst 2>/dev/null
1938 if test -d .tst; then
1939   am__leading_dot=.
1940 else
1941   am__leading_dot=_
1942 fi
1943 rmdir .tst 2>/dev/null
1944
1945 # test to see if srcdir already configured
1946 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1947    test -f $srcdir/config.status; then
1948   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1949 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1950    { (exit 1); exit 1; }; }
1951 fi
1952
1953 # test whether we have cygpath
1954 if test -z "$CYGPATH_W"; then
1955   if (cygpath --version) >/dev/null 2>/dev/null; then
1956     CYGPATH_W='cygpath -w'
1957   else
1958     CYGPATH_W=echo
1959   fi
1960 fi
1961
1962
1963 # Define the identity of the package.
1964  PACKAGE=amanda
1965  VERSION=2.5.0p2
1966
1967
1968 cat >>confdefs.h <<_ACEOF
1969 #define PACKAGE "$PACKAGE"
1970 _ACEOF
1971
1972
1973 cat >>confdefs.h <<_ACEOF
1974 #define VERSION "$VERSION"
1975 _ACEOF
1976
1977 # Some tools Automake needs.
1978
1979 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1980
1981
1982 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1983
1984
1985 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1986
1987
1988 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1989
1990
1991 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1992
1993 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1994
1995 # Installed binaries are usually stripped using `strip' when the user
1996 # run `make install-strip'.  However `strip' might not be the right
1997 # tool to use in cross-compilation environments, therefore Automake
1998 # will honor the `STRIP' environment variable to overrule this program.
1999 if test "$cross_compiling" != no; then
2000   if test -n "$ac_tool_prefix"; then
2001   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2002 set dummy ${ac_tool_prefix}strip; ac_word=$2
2003 echo "$as_me:$LINENO: checking for $ac_word" >&5
2004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2005 if test "${ac_cv_prog_STRIP+set}" = set; then
2006   echo $ECHO_N "(cached) $ECHO_C" >&6
2007 else
2008   if test -n "$STRIP"; then
2009   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2010 else
2011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2012 for as_dir in $PATH
2013 do
2014   IFS=$as_save_IFS
2015   test -z "$as_dir" && as_dir=.
2016   for ac_exec_ext in '' $ac_executable_extensions; do
2017   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2018     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2019     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2020     break 2
2021   fi
2022 done
2023 done
2024
2025 fi
2026 fi
2027 STRIP=$ac_cv_prog_STRIP
2028 if test -n "$STRIP"; then
2029   echo "$as_me:$LINENO: result: $STRIP" >&5
2030 echo "${ECHO_T}$STRIP" >&6
2031 else
2032   echo "$as_me:$LINENO: result: no" >&5
2033 echo "${ECHO_T}no" >&6
2034 fi
2035
2036 fi
2037 if test -z "$ac_cv_prog_STRIP"; then
2038   ac_ct_STRIP=$STRIP
2039   # Extract the first word of "strip", so it can be a program name with args.
2040 set dummy strip; ac_word=$2
2041 echo "$as_me:$LINENO: checking for $ac_word" >&5
2042 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2043 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2044   echo $ECHO_N "(cached) $ECHO_C" >&6
2045 else
2046   if test -n "$ac_ct_STRIP"; then
2047   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2048 else
2049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2050 for as_dir in $PATH
2051 do
2052   IFS=$as_save_IFS
2053   test -z "$as_dir" && as_dir=.
2054   for ac_exec_ext in '' $ac_executable_extensions; do
2055   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2056     ac_cv_prog_ac_ct_STRIP="strip"
2057     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2058     break 2
2059   fi
2060 done
2061 done
2062
2063   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2064 fi
2065 fi
2066 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2067 if test -n "$ac_ct_STRIP"; then
2068   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2069 echo "${ECHO_T}$ac_ct_STRIP" >&6
2070 else
2071   echo "$as_me:$LINENO: result: no" >&5
2072 echo "${ECHO_T}no" >&6
2073 fi
2074
2075   STRIP=$ac_ct_STRIP
2076 else
2077   STRIP="$ac_cv_prog_STRIP"
2078 fi
2079
2080 fi
2081 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2082
2083 # We need awk for the "check" target.  The system "awk" is bad on
2084 # some platforms.
2085 # Always define AMTAR for backward compatibility.
2086
2087 AMTAR=${AMTAR-"${am_missing_run}tar"}
2088
2089 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2090
2091
2092
2093
2094
2095           ac_config_headers="$ac_config_headers config/config.h"
2096
2097
2098
2099 if test -f "$srcdir/SNAPSHOT"; then
2100   cat < "$srcdir/SNAPSHOT"
2101
2102   snapdate=`sed -n '/^Snapshot Date: \([0-9]*\)/ s//\1/p' < $srcdir/SNAPSHOT`
2103
2104   test -z "$snapdate" || VERSION="$VERSION-$snapdate"
2105   SNAPSHOT_STAMP=SNAPSHOT
2106 else
2107   SNAPSHOT_STAMP=
2108 fi
2109
2110
2111 if test -f config.local; then
2112     echo "running local script ./config.local"
2113     . ./config.local
2114 fi
2115
2116
2117 VERSION_MAJOR=`expr "$VERSION" : '\([0-9]*\)'`
2118 VERSION_MINOR=`expr "$VERSION" : '[0-9]*\.\([0-9]*\)'`
2119 VERSION_PATCH=`expr "$VERSION" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
2120 VERSION_COMMENT=\"`expr "$VERSION" : '[0-9]*\.[0-9]*\.[0-9]*\(.*\)'`\"
2121
2122
2123 VERSION_SUFFIX="$VERSION"
2124
2125
2126
2127
2128
2129
2130 SYSPATH="/bin:/usr/bin:/sbin:/usr/sbin:/usr/ucb:/usr/bsd:/etc:/usr/etc"
2131 LOCPATH=`(
2132     test "x$prefix" = xNONE && prefix=$ac_default_prefix
2133     test "x$exec_prefix" = xNONE && exec_prefix=${prefix}
2134     eval echo "$libexecdir:$PATH:/usr/local/sbin:/usr/local/bin:/usr/ccs/bin"
2135 )`
2136 SYSLOCPATH="$SYSPATH:$LOCPATH"
2137 LOCSYSPATH="$LOCPATH:$SYSPATH"
2138
2139
2140 # Check whether --with-cflags or --without-cflags was given.
2141 if test "${with_cflags+set}" = set; then
2142   withval="$with_cflags"
2143
2144         case "$withval" in
2145         "" | y | ye | yes | n | no)
2146             { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-includes option." >&5
2147 echo "$as_me: error: *** You must supply an argument to the --with-includes option." >&2;}
2148    { (exit 1); exit 1; }; }
2149             ;;
2150         esac
2151         CFLAGS="$withval"
2152
2153 fi;
2154
2155
2156 # Check whether --with-includes or --without-includes was given.
2157 if test "${with_includes+set}" = set; then
2158   withval="$with_includes"
2159
2160         case "$withval" in
2161         "" | y | ye | yes | n | no)
2162             { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-includes option." >&5
2163 echo "$as_me: error: *** You must supply an argument to the --with-includes option." >&2;}
2164    { (exit 1); exit 1; }; }
2165           ;;
2166         esac
2167         INCLUDE_DIRS="$withval"
2168
2169 fi;
2170
2171 if test "$INCLUDE_DIRS"; then
2172         for dir in $INCLUDE_DIRS; do
2173             if test -d "$dir"; then
2174                 AMANDA_CPPFLAGS="$AMANDA_CPPFLAGS -I$dir"
2175             else
2176                 { echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
2177 echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
2178             fi
2179         done
2180 fi
2181
2182
2183 # Check whether --with-libraries or --without-libraries was given.
2184 if test "${with_libraries+set}" = set; then
2185   withval="$with_libraries"
2186
2187         case "$withval" in
2188         "" | y | ye | yes | n | no)
2189             { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-libraries option." >&5
2190 echo "$as_me: error: *** You must supply an argument to the --with-libraries option." >&2;}
2191    { (exit 1); exit 1; }; }
2192           ;;
2193         esac
2194         LIBRARY_DIRS="$withval"
2195
2196 fi;
2197
2198 if test "$LIBRARY_DIRS"; then
2199         for dir in $LIBRARY_DIRS; do
2200             if test -d "$dir"; then
2201                 case "$target" in
2202                   *-solaris2*,*-netbsd*)
2203                         AMANDA_LDFLAGS="$AMANDA_LDFLAGS -R$dir"
2204                         ;;
2205                 esac
2206                 AMANDA_LDFLAGS="$AMANDA_LDFLAGS -L$dir"
2207             else
2208                 { echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
2209 echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
2210             fi
2211         done
2212 fi
2213
2214
2215 # Check whether --with-dumperdir or --without-dumperdir was given.
2216 if test "${with_dumperdir+set}" = set; then
2217   withval="$with_dumperdir"
2218
2219         case "$withval" in
2220         "" | y | ye | yes | n | no)
2221             { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-dumperdir option." >&5
2222 echo "$as_me: error: *** You must supply an argument to the --with-dumperdir option." >&2;}
2223    { (exit 1); exit 1; }; }
2224           ;;
2225         esac
2226         DUMPER_DIR="$withval"
2227
2228 else
2229
2230         test "x$prefix" = xNONE && prefix=$ac_default_prefix
2231         test "x$exec_prefix" = xNONE && exec_prefix=${prefix}
2232         DUMPER_DIR=$exec_prefix/dumper
2233
2234
2235 fi;
2236 DUMPER_DIR=`(
2237     test "x$prefix" = xNONE && prefix=$ac_default_prefix
2238     test "x$exec_prefix" = xNONE && exec_prefix=${prefix}
2239     eval echo "$DUMPER_DIR"
2240 )`
2241
2242 cat >>confdefs.h <<_ACEOF
2243 #define DUMPER_DIR "$DUMPER_DIR"
2244 _ACEOF
2245
2246
2247
2248
2249 # Check whether --with-configdir or --without-configdir was given.
2250 if test "${with_configdir+set}" = set; then
2251   withval="$with_configdir"
2252
2253         case "$withval" in
2254         "" | y | ye | yes | n | no)
2255             { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-configdir option." >&5
2256 echo "$as_me: error: *** You must supply an argument to the --with-configdir option." >&2;}
2257    { (exit 1); exit 1; }; }
2258           ;;
2259         *) CONFIG_DIR="$withval"
2260           ;;
2261         esac
2262
2263 else
2264   : ${CONFIG_DIR="$sysconfdir/amanda"}
2265
2266 fi;
2267 CONFIG_DIR=`(
2268     test "x$prefix" = xNONE && prefix=$ac_default_prefix
2269     test "x$exec_prefix" = xNONE && exec_prefix=${prefix}
2270     eval echo "$CONFIG_DIR"
2271 )`
2272
2273 cat >>confdefs.h <<_ACEOF
2274 #define CONFIG_DIR "$CONFIG_DIR"
2275 _ACEOF
2276
2277
2278
2279
2280 # Check whether --with-indexdir or --without-indexdir was given.
2281 if test "${with_indexdir+set}" = set; then
2282   withval="$with_indexdir"
2283      { { echo "$as_me:$LINENO: error: *** --with-indexdir is deprecated, use indexdir in amanda.conf instead." >&5
2284 echo "$as_me: error: *** --with-indexdir is deprecated, use indexdir in amanda.conf instead." >&2;}
2285    { (exit 1); exit 1; }; }
2286
2287 fi;
2288
2289
2290 # Check whether --with-dbdir or --without-dbdir was given.
2291 if test "${with_dbdir+set}" = set; then
2292   withval="$with_dbdir"
2293      { { echo "$as_me:$LINENO: error: *** --with-dbdir is deprecated, use infofile in amanda.conf instead." >&5
2294 echo "$as_me: error: *** --with-dbdir is deprecated, use infofile in amanda.conf instead." >&2;}
2295    { (exit 1); exit 1; }; }
2296
2297 fi;
2298
2299
2300 # Check whether --with-logdir or --without-logdir was given.
2301 if test "${with_logdir+set}" = set; then
2302   withval="$with_logdir"
2303      { { echo "$as_me:$LINENO: error: *** --with-logdir is deprecated, use logdir in amanda.conf instead." >&5
2304 echo "$as_me: error: *** --with-logdir is deprecated, use logdir in amanda.conf instead." >&2;}
2305    { (exit 1); exit 1; }; }
2306
2307 fi;
2308
2309
2310 # Check whether --with-suffixes or --without-suffixes was given.
2311 if test "${with_suffixes+set}" = set; then
2312   withval="$with_suffixes"
2313   USE_VERSION_SUFFIXES=$withval
2314 else
2315   : ${USE_VERSION_SUFFIXES=no}
2316
2317 fi;
2318 case "$USE_VERSION_SUFFIXES" in
2319 y | ye | yes)
2320
2321 cat >>confdefs.h <<\_ACEOF
2322 #define USE_VERSION_SUFFIXES 1
2323 _ACEOF
2324
2325
2326     program_suffix="-$VERSION"
2327     # This is from the output of configure.in.
2328     if test "x$program_transform_name" = xs,x,x,; then
2329         program_transform_name=
2330     else
2331         # Double any \ or $.  echo might interpret backslashes.
2332         cat <<\EOF_SED > conftestsed
2333 s,\\,\\\\,g; s,\$,$$,g
2334 EOF_SED
2335         program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
2336         rm -f conftestsed
2337     fi
2338     test "x$program_prefix" != xNONE &&
2339         program_transform_name="s,^,${program_prefix},; $program_transform_name"
2340     # Use a double $ so make ignores it.
2341     test "x$program_suffix" != xNONE &&
2342         program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
2343
2344     # sed with no file args requires a program.
2345     test "x$program_transform_name" = "" && program_transform_name="xs,x,x,"
2346     # Remove empty command
2347     cat <<\EOF_SED > conftestsed
2348 s,\;\;,\;,g; s,\; \$,,g; s,\;$,,g
2349 EOF_SED
2350     program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
2351     rm -f conftestsed
2352   ;;
2353 n | no) USE_VERSION_SUFFIXES=no
2354   ;;
2355 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-suffixes option." >&5
2356 echo "$as_me: error: *** You must not supply an argument to --with-suffixes option." >&2;}
2357    { (exit 1); exit 1; }; }
2358   ;;
2359 esac
2360
2361
2362 case "$target" in
2363     *-hp-*)
2364         CLIENT_SCRIPTS_OPT=amhpfixdevs
2365         ;;
2366     *-sni-sysv4)
2367         CLIENT_SCRIPTS_OPT=amsinixfixdevs
2368         ;;
2369     *)
2370         CLIENT_SCRIPTS_OPT=
2371         ;;
2372 esac
2373
2374
2375
2376
2377 # Check whether --with-client-only or --without-client-only was given.
2378 if test "${with_client_only+set}" = set; then
2379   withval="$with_client_only"
2380      { { echo "$as_me:$LINENO: error: *** --with-client-only is deprecated, use --without-server instead." >&5
2381 echo "$as_me: error: *** --with-client-only is deprecated, use --without-server instead." >&2;}
2382    { (exit 1); exit 1; }; }
2383
2384 fi;
2385
2386 # Check whether --with-server-only or --without-server-only was given.
2387 if test "${with_server_only+set}" = set; then
2388   withval="$with_server_only"
2389      { { echo "$as_me:$LINENO: error: *** --with-server-only is deprecated, use --without-client instead." >&5
2390 echo "$as_me: error: *** --with-server-only is deprecated, use --without-client instead." >&2;}
2391    { (exit 1); exit 1; }; }
2392
2393 fi;
2394
2395
2396 # Check whether --with-client or --without-client was given.
2397 if test "${with_client+set}" = set; then
2398   withval="$with_client"
2399
2400         case "$withval" in
2401         y | ye | yes) NO_CLIENT_MODE=false;;
2402         n | no) NO_CLIENT_MODE=true;;
2403         *)
2404             { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-client option." >&5
2405 echo "$as_me: error: *** You must not supply an argument to --with-client option." >&2;}
2406    { (exit 1); exit 1; }; }
2407           ;;
2408         esac
2409
2410
2411 fi;
2412
2413
2414 # Check whether --with-server or --without-server was given.
2415 if test "${with_server+set}" = set; then
2416   withval="$with_server"
2417
2418         case "$withval" in
2419         y | ye | yes) NO_SERVER_MODE=false ;;
2420         n | no) NO_SERVER_MODE=true;NO_RESTORE_MODE=true;;
2421         *)
2422             { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-server option.  Maybe you meant --with-index-server=$withval" >&5
2423 echo "$as_me: error: *** You must not supply an argument to --with-server option.  Maybe you meant --with-index-server=$withval" >&2;}
2424    { (exit 1); exit 1; }; }
2425           ;;
2426         esac
2427
2428
2429 fi;
2430 if test "x${NO_SERVER_MODE+set}" != xset ; then
2431    NO_SERVER_MODE=false
2432 fi
2433
2434
2435 # Check whether --with-restore or --without-restore was given.
2436 if test "${with_restore+set}" = set; then
2437   withval="$with_restore"
2438
2439         case "$withval" in
2440         y | ye | yes) NO_RESTORE_MODE=false;;
2441         n | no) NO_RESTORE_MODE=true;;
2442         *)
2443             { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-restore option." >&5
2444 echo "$as_me: error: *** You must not supply an argument to --with-restore option." >&2;}
2445    { (exit 1); exit 1; }; }
2446           ;;
2447         esac
2448
2449
2450 fi;
2451 if test "x${NO_RESTORE_MODE+set}" != xset ; then
2452    NO_RESTORE_MODE=${NO_SERVER_MODE-false}
2453 fi
2454
2455 if ${NO_SERVER_MODE-false}; then
2456    if ${NO_RESTORE_MODE-false}; then
2457                         true
2458    else
2459       { { echo "$as_me:$LINENO: error: *** --without-server requires --without-restore" >&5
2460 echo "$as_me: error: *** --without-server requires --without-restore" >&2;}
2461    { (exit 1); exit 1; }; }
2462    fi
2463 fi
2464
2465
2466 # Check whether --with-amrecover or --without-amrecover was given.
2467 if test "${with_amrecover+set}" = set; then
2468   withval="$with_amrecover"
2469
2470         case "$withval" in
2471         y | ye | yes)
2472             if ${NO_CLIENT_MODE-false}; then
2473                 { { echo "$as_me:$LINENO: error: *** --without-client and --with-amrecover are incompatible" >&5
2474 echo "$as_me: error: *** --without-client and --with-amrecover are incompatible" >&2;}
2475    { (exit 1); exit 1; }; }
2476             fi
2477             NO_RECOVER_MODE=false;;
2478         n | no) NO_RECOVER_MODE=true;;
2479         *)
2480             { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-amrecover option." >&5
2481 echo "$as_me: error: *** You must not supply an argument to --with-amrecover option." >&2;}
2482    { (exit 1); exit 1; }; }
2483           ;;
2484         esac
2485
2486
2487 fi;
2488
2489
2490 # Check whether --with-index-server or --without-index-server was given.
2491 if test "${with_index_server+set}" = set; then
2492   withval="$with_index_server"
2493
2494         case "$withval" in
2495         "" | y | ye | yes | n | no)
2496             { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-index-server option." >&5
2497 echo "$as_me: error: *** You must supply an argument to the --with-index-server option." >&2;}
2498    { (exit 1); exit 1; }; }
2499           ;;
2500         *) DEFAULT_SERVER="$withval"
2501           ;;
2502         esac
2503
2504 else
2505   : ${DEFAULT_SERVER=`uname -n`}
2506
2507 fi;
2508
2509 cat >>confdefs.h <<_ACEOF
2510 #define DEFAULT_SERVER "$DEFAULT_SERVER"
2511 _ACEOF
2512
2513
2514
2515
2516 # Check whether --with-force-uid or --without-force-uid was given.
2517 if test "${with_force_uid+set}" = set; then
2518   withval="$with_force_uid"
2519   FORCE_USERID="$withval"
2520 else
2521   : ${FORCE_USERID=yes}
2522
2523 fi;
2524 case "$FORCE_USERID" in
2525 y | ye | yes)
2526 cat >>confdefs.h <<\_ACEOF
2527 #define FORCE_USERID 1
2528 _ACEOF
2529
2530   ;;
2531 n | no) :
2532   ;;
2533 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-force-uid option." >&5
2534 echo "$as_me: error: *** You must not supply an argument to --with-force-uid option." >&2;}
2535    { (exit 1); exit 1; }; }
2536 esac
2537
2538
2539 # Check whether --with-user or --without-user was given.
2540 if test "${with_user+set}" = set; then
2541   withval="$with_user"
2542
2543         case "$withval" in
2544         "" | y | ye | yes | n | no)
2545             { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-user option." >&5
2546 echo "$as_me: error: *** You must supply an argument to the --with-user option." >&2;}
2547    { (exit 1); exit 1; }; }
2548           ;;
2549         *) CLIENT_LOGIN="$withval"
2550           ;;
2551         esac
2552
2553
2554 fi;
2555 if test "x${CLIENT_LOGIN+set}" != xset; then
2556     { { echo "$as_me:$LINENO: error: *** --with-user=USER is missing" >&5
2557 echo "$as_me: error: *** --with-user=USER is missing" >&2;}
2558    { (exit 1); exit 1; }; }
2559 fi
2560
2561 cat >>confdefs.h <<_ACEOF
2562 #define CLIENT_LOGIN "$CLIENT_LOGIN"
2563 _ACEOF
2564
2565
2566
2567
2568 # Check whether --with-group or --without-group was given.
2569 if test "${with_group+set}" = set; then
2570   withval="$with_group"
2571
2572         case "$withval" in
2573         "" | y | ye | yes | n | no)
2574             { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-group option." >&5
2575 echo "$as_me: error: *** You must supply an argument to the --with-group option." >&2;}
2576    { (exit 1); exit 1; }; }
2577           ;;
2578         *) SETUID_GROUP="$withval"
2579           ;;
2580         esac
2581
2582
2583 fi;
2584 if test "x${SETUID_GROUP+set}" != xset; then
2585     { { echo "$as_me:$LINENO: error: *** --with-group=GROUP is missing" >&5
2586 echo "$as_me: error: *** --with-group=GROUP is missing" >&2;}
2587    { (exit 1); exit 1; }; }
2588 fi
2589
2590
2591
2592 # Check whether --with-owner or --without-owner was given.
2593 if test "${with_owner+set}" = set; then
2594   withval="$with_owner"
2595
2596         case "$withval" in
2597         "" | y | ye | yes | n | no)
2598             { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-owner option." >&5
2599 echo "$as_me: error: *** You must supply an argument to the --with-owner option." >&2;}
2600    { (exit 1); exit 1; }; }
2601           ;;
2602         *) BINARY_OWNER="$withval"
2603           ;;
2604         esac
2605
2606
2607 fi;
2608 if test "x${BINARY_OWNER+set}" != xset ; then
2609    BINARY_OWNER=$CLIENT_LOGIN
2610 fi
2611
2612 cat >>confdefs.h <<_ACEOF
2613 #define BINARY_OWNER "$BINARY_OWNER"
2614 _ACEOF
2615
2616
2617
2618
2619 # Check whether --with-rundump or --without-rundump was given.
2620 if test "${with_rundump+set}" = set; then
2621   withval="$with_rundump"
2622
2623     case "$withval" in
2624         n | no | y | ye | yes) FORCE_USE_RUNDUMP="$withval";;
2625         *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-rundump option." >&5
2626 echo "$as_me: error: *** You must not supply an argument to --with-rundump option." >&2;}
2627    { (exit 1); exit 1; }; };;
2628     esac
2629
2630
2631 fi;
2632
2633
2634 # Check whether --with-config or --without-config was given.
2635 if test "${with_config+set}" = set; then
2636   withval="$with_config"
2637
2638         case "$withval" in
2639         "" | y | ye | yes | n | no)
2640             { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-config option." >&5
2641 echo "$as_me: error: *** You must supply an argument to the --with-config option." >&2;}
2642    { (exit 1); exit 1; }; }
2643           ;;
2644         *) DEFAULT_CONFIG="$withval"
2645           ;;
2646         esac
2647
2648 else
2649   : ${DEFAULT_CONFIG=DailySet1}
2650
2651 fi;
2652
2653 cat >>confdefs.h <<_ACEOF
2654 #define DEFAULT_CONFIG "$DEFAULT_CONFIG"
2655 _ACEOF
2656
2657
2658
2659
2660 # Check whether --with-tape-server or --without-tape-server was given.
2661 if test "${with_tape_server+set}" = set; then
2662   withval="$with_tape_server"
2663
2664         case "$withval" in
2665         "" | y | ye | yes | n | no)
2666             { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-tape-server option." >&5
2667 echo "$as_me: error: *** You must supply an argument to the --with-tape-server option." >&2;}
2668    { (exit 1); exit 1; }; }
2669           ;;
2670         *) DEFAULT_TAPE_SERVER="$withval"
2671           ;;
2672         esac
2673
2674 else
2675   : ${DEFAULT_TAPE_SERVER=$DEFAULT_SERVER}
2676
2677 fi;
2678
2679 cat >>confdefs.h <<_ACEOF
2680 #define DEFAULT_TAPE_SERVER "$DEFAULT_TAPE_SERVER"
2681 _ACEOF
2682
2683
2684
2685
2686 # Check whether --with-tape-device or --without-tape-device was given.
2687 if test "${with_tape_device+set}" = set; then
2688   withval="$with_tape_device"
2689
2690         case "$withval" in
2691         "" | y | ye | yes | n | no)
2692             { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-tape-device option." >&5
2693 echo "$as_me: error: *** You must supply an argument to the --with-tape-device option." >&2;}
2694    { (exit 1); exit 1; }; }
2695           ;;
2696         *) DEFAULT_TAPE_DEVICE="$withval"
2697           ;;
2698         esac
2699
2700 else
2701
2702         if test -z "$DEFAULT_TAPE_DEVICE"; then
2703             echo "$as_me:$LINENO: checking for non-rewinding tape device" >&5
2704 echo $ECHO_N "checking for non-rewinding tape device... $ECHO_C" >&6
2705                                                                     tape_dev=null:
2706             nr_tape_dev=null:
2707             if test -d /dev/rmt; then
2708
2709
2710                 for num in 9 8 7 6 5 4 3 2 1 0; do
2711                     td=/dev/rmt/${num}b
2712                     ntd=/dev/rmt/${num}bn
2713                     if test -r $td -a -r $ntd; then
2714                         tape_dev=$td
2715                         nr_tape_dev=$ntd
2716                     fi
2717                 done
2718             else
2719                                 for num in 9 8 7 6 5 4 3 2 1 0; do
2720                     td=/dev/rst${num}
2721                     ntd=/dev/nrst${num}
2722                     if test -r $td -a -r $ntd; then
2723                         tape_dev=$td
2724                         nr_tape_dev=$ntd
2725                     fi
2726                 done
2727             fi
2728             DEFAULT_TAPE_DEVICE=$nr_tape_dev
2729             echo "$as_me:$LINENO: result: $DEFAULT_TAPE_DEVICE" >&5
2730 echo "${ECHO_T}$DEFAULT_TAPE_DEVICE" >&6
2731         fi
2732
2733
2734 fi;
2735
2736 if test -z "$DEFAULT_TAPE_DEVICE"; then
2737     DEFAULT_TAPE_DEVICE=/dev/null
2738 fi
2739
2740
2741 cat >>confdefs.h <<_ACEOF
2742 #define DEFAULT_TAPE_DEVICE "$DEFAULT_TAPE_DEVICE"
2743 _ACEOF
2744
2745
2746
2747
2748 # Check whether --with-ftape-raw-device or --without-ftape-raw-device was given.
2749 if test "${with_ftape_raw_device+set}" = set; then
2750   withval="$with_ftape_raw_device"
2751
2752         case "$withval" in
2753         "" | y | ye | yes | n | no)
2754             { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-ftape-rawdevice option." >&5
2755 echo "$as_me: error: *** You must supply an argument to the --with-ftape-rawdevice option." >&2;}
2756    { (exit 1); exit 1; }; }
2757           ;;
2758         *) DEFAULT_RAW_TAPE_DEVICE="$withval"
2759           ;;
2760         esac
2761
2762 else
2763
2764         if test -z "$DEFAULT_RAW_TAPE_DEVICE"; then
2765             echo "$as_me:$LINENO: checking for raw ftape device" >&5
2766 echo $ECHO_N "checking for raw ftape device... $ECHO_C" >&6
2767                     raw_tape_dev=/dev/null
2768                                 for num in 3 2 1 0 ; do
2769                     td=/dev/rawft${num}
2770                     if test -r $td; then
2771                         raw_tape_dev=$td
2772                     fi
2773                 done
2774             DEFAULT_RAW_TAPE_DEVICE=$raw_tape_dev
2775             echo "$as_me:$LINENO: result: $DEFAULT_RAW_TAPE_DEVICE" >&5
2776 echo "${ECHO_T}$DEFAULT_RAW_TAPE_DEVICE" >&6
2777         fi
2778
2779
2780 fi;
2781
2782 if test -z "$DEFAULT_RAW_TAPE_DEVICE"; then
2783     DEFAULT_RAW_TAPE_DEVICE=/dev/null
2784 fi
2785
2786
2787 cat >>confdefs.h <<_ACEOF
2788 #define DEFAULT_RAW_TAPE_DEVICE "$DEFAULT_RAW_TAPE_DEVICE"
2789 _ACEOF
2790
2791
2792
2793
2794 # Check whether --with-rew-tape or --without-rew-tape was given.
2795 if test "${with_rew_tape+set}" = set; then
2796   withval="$with_rew_tape"
2797      { { echo "$as_me:$LINENO: error: *** --with-rew-tape is deprecated, use --with-tape-device instead." >&5
2798 echo "$as_me: error: *** --with-rew-tape is deprecated, use --with-tape-device instead." >&2;}
2799    { (exit 1); exit 1; }; }
2800
2801 fi;
2802
2803
2804 # Check whether --with-norew-tape or --without-norew-tape was given.
2805 if test "${with_norew_tape+set}" = set; then
2806   withval="$with_norew_tape"
2807      { { echo "$as_me:$LINENO: error: *** --with-norew-tape is deprecated, use --with-tape-device instead." >&5
2808 echo "$as_me: error: *** --with-norew-tape is deprecated, use --with-tape-device instead." >&2;}
2809    { (exit 1); exit 1; }; }
2810
2811 fi;
2812
2813
2814 # Check whether --with-changer-device or --without-changer-device was given.
2815 if test "${with_changer_device+set}" = set; then
2816   withval="$with_changer_device"
2817
2818         case "$withval" in
2819         "" | y | ye | yes | n | no)
2820             { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-changer-device option." >&5
2821 echo "$as_me: error: *** You must supply an argument to the --with-changer-device option." >&2;}
2822    { (exit 1); exit 1; }; }
2823           ;;
2824         *) DEFAULT_CHANGER_DEVICE="$withval"
2825           ;;
2826         esac
2827
2828 else
2829
2830         if test -z "$DEFAULT_CHANGER_DEVICE" &&
2831            test -f /dev/ch0; then
2832             DEFAULT_CHANGER_DEVICE=/dev/ch0
2833         fi
2834
2835
2836 fi;
2837
2838 if test -z "$DEFAULT_CHANGER_DEVICE"; then
2839     DEFAULT_CHANGER_DEVICE=/dev/null
2840 fi
2841
2842
2843 cat >>confdefs.h <<_ACEOF
2844 #define DEFAULT_CHANGER_DEVICE "$DEFAULT_CHANGER_DEVICE"
2845 _ACEOF
2846
2847
2848
2849
2850 # Check whether --with-fqdn or --without-fqdn was given.
2851 if test "${with_fqdn+set}" = set; then
2852   withval="$with_fqdn"
2853   USE_FQDN=$withval
2854 else
2855   : ${USE_FQDN=no}
2856
2857 fi;
2858 case "$USE_FQDN" in
2859 n | no) : ;;
2860 y |  ye | yes)
2861 cat >>confdefs.h <<\_ACEOF
2862 #define USE_FQDN 1
2863 _ACEOF
2864
2865   ;;
2866 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-fqdn option." >&5
2867 echo "$as_me: error: *** You must not supply an argument to --with-fqdn option." >&2;}
2868    { (exit 1); exit 1; }; }
2869   ;;
2870 esac
2871
2872
2873 # Check whether --with-broken-fsf or --without-broken-fsf was given.
2874 if test "${with_broken_fsf+set}" = set; then
2875   withval="$with_broken_fsf"
2876   HAVE_BROKEN_FSF=$withval
2877 else
2878   : ${HAVE_BROKEN_FSF=no}
2879
2880 fi;
2881 case "$HAVE_BROKEN_FSF" in
2882 n | no) : ;;
2883 y |  ye | yes)
2884 cat >>confdefs.h <<\_ACEOF
2885 #define HAVE_BROKEN_FSF 1
2886 _ACEOF
2887
2888   ;;
2889 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-broken-fsf option." >&5
2890 echo "$as_me: error: *** You must not supply an argument to --with-broken-fsf option." >&2;}
2891    { (exit 1); exit 1; }; }
2892   ;;
2893 esac
2894
2895
2896 # Check whether --with-gnutar or --without-gnutar was given.
2897 if test "${with_gnutar+set}" = set; then
2898   withval="$with_gnutar"
2899
2900         case "$withval" in
2901             /*) GNUTAR="$withval";;
2902             y|ye|yes) :;;
2903             n|no) GNUTAR=;;
2904             *)  { { echo "$as_me:$LINENO: error: *** You must supply a full pathname to --with-gnutar" >&5
2905 echo "$as_me: error: *** You must supply a full pathname to --with-gnutar" >&2;}
2906    { (exit 1); exit 1; }; };;
2907         esac
2908
2909
2910 fi;
2911
2912
2913 # Check whether --with-smbclient or --without-smbclient was given.
2914 if test "${with_smbclient+set}" = set; then
2915   withval="$with_smbclient"
2916
2917         case "$withval" in
2918             /*) SAMBA_CLIENT="$withval";;
2919             y|ye|yes) :;;
2920             n|no) SAMBA_CLIENT=;;
2921             *)  { { echo "$as_me:$LINENO: error: *** You must supply a full pathname to --with-smbclient" >&5
2922 echo "$as_me: error: *** You must supply a full pathname to --with-smbclient" >&2;}
2923    { (exit 1); exit 1; }; };;
2924         esac
2925
2926
2927 fi;
2928
2929
2930 # Check whether --with-samba-user or --without-samba-user was given.
2931 if test "${with_samba_user+set}" = set; then
2932   withval="$with_samba_user"
2933       { { echo "$as_me:$LINENO: error: *** The samba-user option was deprecated, the username go in the amandapass" >&5
2934 echo "$as_me: error: *** The samba-user option was deprecated, the username go in the amandapass" >&2;}
2935    { (exit 1); exit 1; }; }
2936
2937
2938 fi;
2939
2940
2941 # Check whether --with-gnutar-listdir or --without-gnutar-listdir was given.
2942 if test "${with_gnutar_listdir+set}" = set; then
2943   withval="$with_gnutar_listdir"
2944
2945         case "$withval" in
2946             n | no)             unset GNUTAR_LISTDIR ;;
2947             y | ye | yes)       : ${GNUTAR_LISTDIR=$localstatedir/amanda/gnutar-lists} ;;
2948             /*)                 GNUTAR_LISTDIR="$withval" ;;
2949             *)                  { { echo "$as_me:$LINENO: error: *** You must supply a full pathname to --with-gnutar-listdir" >&5
2950 echo "$as_me: error: *** You must supply a full pathname to --with-gnutar-listdir" >&2;}
2951    { (exit 1); exit 1; }; }
2952         esac
2953
2954 else
2955   : ${GNUTAR_LISTDIR="$localstatedir/amanda/gnutar-lists"}
2956
2957 fi;
2958 if test "$GNUTAR_LISTDIR"; then
2959     GNUTAR_LISTDIR=`(
2960         test "x$prefix" = xNONE && prefix=$ac_default_prefix
2961         eval echo "$GNUTAR_LISTDIR"
2962     )`
2963
2964 cat >>confdefs.h <<_ACEOF
2965 #define GNUTAR_LISTED_INCREMENTAL_DIR "$GNUTAR_LISTDIR"
2966 _ACEOF
2967
2968     GNUTAR_LISTED_INCREMENTAL_DIRX=$GNUTAR_LISTDIR
2969 else
2970     GNUTAR_LISTED_INCREMENTAL_DIRX=
2971 fi
2972
2973
2974
2975 # Check whether --with-gnutar-listed-incremental or --without-gnutar-listed-incremental was given.
2976 if test "${with_gnutar_listed_incremental+set}" = set; then
2977   withval="$with_gnutar_listed_incremental"
2978       { { echo "$as_me:$LINENO: error: *** The gnutar-listed-incremental option was deprecated, use gnutar-listdir instead" >&5
2979 echo "$as_me: error: *** The gnutar-listed-incremental option was deprecated, use gnutar-listdir instead" >&2;}
2980    { (exit 1); exit 1; }; }
2981
2982
2983 fi;
2984 GNUTAR_LISTED_INCREMENTAL_DIR=$GNUTAR_LISTDIR
2985
2986
2987
2988 # Check whether --with-bsd-security or --without-bsd-security was given.
2989 if test "${with_bsd_security+set}" = set; then
2990   withval="$with_bsd_security"
2991   BSD_SECURITY=$withval
2992 else
2993   : ${BSD_SECURITY=yes}
2994
2995 fi;
2996 case "$BSD_SECURITY" in
2997 n | no) : ;;
2998 y |  ye | yes)
2999 cat >>confdefs.h <<\_ACEOF
3000 #define BSD_SECURITY 1
3001 _ACEOF
3002
3003   ;;
3004 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-bsd-security option." >&5
3005 echo "$as_me: error: *** You must not supply an argument to --with-bsd-security option." >&2;}
3006    { (exit 1); exit 1; }; }
3007   ;;
3008 esac
3009
3010
3011 # Check whether --with-amandahosts or --without-amandahosts was given.
3012 if test "${with_amandahosts+set}" = set; then
3013   withval="$with_amandahosts"
3014   USE_AMANDAHOSTS=$withval
3015 else
3016   : ${USE_AMANDAHOSTS=yes}
3017
3018 fi;
3019 case "$USE_AMANDAHOSTS" in
3020 n | no) : ;;
3021 y |  ye | yes) :
3022   case "$BSD_SECURITY" in
3023   y | ye | yes)
3024 cat >>confdefs.h <<\_ACEOF
3025 #define USE_AMANDAHOSTS 1
3026 _ACEOF
3027
3028     ;;
3029   esac
3030   ;;
3031 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-amandahosts option." >&5
3032 echo "$as_me: error: *** You must not supply an argument to --with-amandahosts option." >&2;}
3033    { (exit 1); exit 1; }; }
3034   ;;
3035 esac
3036
3037
3038
3039 # Check whether --with-dbmalloc or --without-dbmalloc was given.
3040 if test "${with_dbmalloc+set}" = set; then
3041   withval="$with_dbmalloc"
3042   DBMALLOC="$withval"
3043 else
3044   : ${DBMALLOC=no}
3045
3046 fi;
3047
3048 case "$DBMALLOC" in
3049 n | no)
3050     DBMALLOCCFLAGS=""
3051     DBMALLOCLIBS=""
3052     ;;
3053 *)
3054     DBMALLOCCFLAGS="-I$DBMALLOC -DUSE_DBMALLOC"
3055     DBMALLOCLIBS="-L$DBMALLOC -ldbmalloc"
3056     ;;
3057 esac
3058
3059
3060 : ${KRB4_SPOTS="/usr/kerberos /usr/cygnus /usr /opt/kerberos"}
3061
3062
3063 # Check whether --with-krb4-security or --without-krb4-security was given.
3064 if test "${with_krb4_security+set}" = set; then
3065   withval="$with_krb4_security"
3066   KRB4_SECURITY="$withval"
3067 else
3068   : ${KRB4_SECURITY=no}
3069
3070 fi;
3071
3072 case "$KRB4_SECURITY" in
3073 n | no) KRB4_SECURITY=no ;;
3074 y | ye | yes) : ;;
3075 *) KRB4_SPOTS="$KRB4_SECURITY"
3076    KRB4_SECURITY=yes
3077    ;;
3078 esac
3079
3080 echo "$as_me:$LINENO: checking for Kerberos and Amanda kerberos4 bits" >&5
3081 echo $ECHO_N "checking for Kerberos and Amanda kerberos4 bits... $ECHO_C" >&6
3082 if test "x${KRB4_SECURITY}" = xyes -a -f  ${srcdir-.}/common-src/krb4-security.c ; then
3083     for dir in $KRB4_SPOTS; do
3084         if test -f ${dir}/lib/libkrb.a -a -f ${dir}/lib/libdes.a ; then
3085             #
3086             # This is the original Kerberos 4.
3087             #
3088             echo "$as_me:$LINENO: result: found in $dir" >&5
3089 echo "${ECHO_T}found in $dir" >&6
3090             KRB4_SECURITY=yes
3091
3092 cat >>confdefs.h <<\_ACEOF
3093 #define KRB4_SECURITY 1
3094 _ACEOF
3095
3096             if test -d $dir/include/kerberosIV ; then
3097                 #
3098                 # This handles BSD/OS.
3099                 #
3100                 KRB4INCLUDES=-I$dir/include/kerberosIV
3101             else
3102                 KRB4INCLUDES=-I$dir/include
3103             fi
3104             KRB4LDFLAGS=-L$dir/lib
3105             KRB4LIBS="-lkrb -ldes"
3106             if test -f ${dir}/lib/libcom_err.a; then
3107                 KRB4LIBS="$KRB4LIBS -lcom_err"
3108             fi
3109             break
3110         elif test -f ${dir}/lib/libkrb4.a &&
3111              test -f ${dir}/lib/libcrypto.a &&
3112              test -f ${dir}/lib/libdes425.a ; then
3113             #
3114             # This is Kerberos 5 with Kerberos 4 back-support.
3115             #
3116             echo "$as_me:$LINENO: result: found in $dir" >&5
3117 echo "${ECHO_T}found in $dir" >&6
3118             KRB4_SECURITY=yes
3119
3120 cat >>confdefs.h <<\_ACEOF
3121 #define KRB4_SECURITY 1
3122 _ACEOF
3123
3124             KRB4INCLUDES="-I$dir/include -I$dir/include/kerberosIV"
3125             KRB4LDFLAGS=-L$dir/lib
3126             if test -f ${dir}/lib/libkrb5.a &&
3127                test -f ${dir}/lib/libcom_err.a; then
3128                 KRB4LIBS="-lkrb4 -lkrb5 -lcrypto -ldes425 -lcom_err"
3129             else
3130                 KRB4LIBS="-lkrb4 -lcrypto -ldes425"
3131             fi
3132             break
3133         fi
3134     done
3135
3136     if test "x$KRB4LDFLAGS" = "x" ; then
3137         echo "$as_me:$LINENO: result: no libraries found" >&5
3138 echo "${ECHO_T}no libraries found" >&6
3139     fi
3140 else
3141     echo "$as_me:$LINENO: result: no" >&5
3142 echo "${ECHO_T}no" >&6
3143 fi
3144
3145
3146 # Check whether --with-rsh-security or --without-rsh-security was given.
3147 if test "${with_rsh_security+set}" = set; then
3148   withval="$with_rsh_security"
3149   RSH_SECURITY=$withval
3150 else
3151   : ${RSH_SECURITY=yes}
3152
3153 fi;
3154 case "$RSH_SECURITY" in
3155 n | no) : ;;
3156 y |  ye | yes)
3157 cat >>confdefs.h <<\_ACEOF
3158 #define RSH_SECURITY 1
3159 _ACEOF
3160
3161   ;;
3162 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument the to --with-rsh-security option." >&5
3163 echo "$as_me: error: *** You must not supply an argument the to --with-rsh-security option." >&2;}
3164    { (exit 1); exit 1; }; }
3165   ;;
3166 esac
3167
3168
3169 # Check whether --with-ssh-security or --without-ssh-security was given.
3170 if test "${with_ssh_security+set}" = set; then
3171   withval="$with_ssh_security"
3172   SSH_SECURITY=$withval
3173 else
3174   : ${SSH_SECURITY=no}
3175
3176 fi;
3177 case "$SSH_SECURITY" in
3178 n | no) : ;;
3179 y |  ye | yes)
3180 cat >>confdefs.h <<\_ACEOF
3181 #define SSH_SECURITY 1
3182 _ACEOF
3183
3184                SSH_SECURITY_SET=true
3185   ;;
3186 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument the to --with-ssh-security option." >&5
3187 echo "$as_me: error: *** You must not supply an argument the to --with-ssh-security option." >&2;}
3188    { (exit 1); exit 1; }; }
3189   ;;
3190 esac
3191
3192
3193 # Check whether --with-server-principal or --without-server-principal was given.
3194 if test "${with_server_principal+set}" = set; then
3195   withval="$with_server_principal"
3196
3197         case "$withval" in
3198         "" | y | ye | yes | n | no)
3199             { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-server-principal option." >&5
3200 echo "$as_me: error: *** You must supply an argument to the --with-server-principal option." >&2;}
3201    { (exit 1); exit 1; }; }
3202           ;;
3203         *)
3204             SERVER_HOST_PRINCIPLE="$withval"
3205           ;;
3206         esac
3207
3208 else
3209   : ${SERVER_HOST_PRINCIPLE="amanda"}
3210
3211 fi;
3212
3213 cat >>confdefs.h <<_ACEOF
3214 #define SERVER_HOST_PRINCIPLE "$SERVER_HOST_PRINCIPLE"
3215 _ACEOF
3216
3217
3218
3219 # Check whether --with-server-instance or --without-server-instance was given.
3220 if test "${with_server_instance+set}" = set; then
3221   withval="$with_server_instance"
3222
3223         case "$withval" in
3224         "" | y | ye | yes | n | no)
3225             { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-server-instance option." >&5
3226 echo "$as_me: error: *** You must supply an argument to the --with-server-instance option." >&2;}
3227    { (exit 1); exit 1; }; }
3228           ;;
3229         *) SERVER_HOST_INSTANCE="$withval"
3230           ;;
3231         esac
3232
3233 else
3234   : ${SERVER_HOST_INSTANCE="amanda"}
3235
3236 fi;
3237
3238 cat >>confdefs.h <<_ACEOF
3239 #define SERVER_HOST_INSTANCE "$SERVER_HOST_INSTANCE"
3240 _ACEOF
3241
3242
3243
3244 # Check whether --with-server-keyfile or --without-server-keyfile was given.
3245 if test "${with_server_keyfile+set}" = set; then
3246   withval="$with_server_keyfile"
3247
3248         case "$withval" in
3249         "" | y | ye | yes | n | no)
3250             { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-server-keyfile option." >&5
3251 echo "$as_me: error: *** You must supply an argument to the --with-server-keyfile option." >&2;}
3252    { (exit 1); exit 1; }; }
3253           ;;
3254         *) SERVER_HOST_KEY_FILE="$withval"
3255           ;;
3256         esac
3257
3258 else
3259   : ${SERVER_HOST_KEY_FILE="/.amanda"}
3260
3261 fi;
3262
3263 cat >>confdefs.h <<_ACEOF
3264 #define SERVER_HOST_KEY_FILE "$SERVER_HOST_KEY_FILE"
3265 _ACEOF
3266
3267
3268
3269 # Check whether --with-client-principal or --without-client-principal was given.
3270 if test "${with_client_principal+set}" = set; then
3271   withval="$with_client_principal"
3272
3273         case "$withval" in
3274         "" | y | ye | yes | n | no)
3275             { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-client-principal option." >&5
3276 echo "$as_me: error: *** You must supply an argument to the --with-client-principal option." >&2;}
3277    { (exit 1); exit 1; }; }
3278           ;;
3279         *) CLIENT_HOST_PRINCIPLE="$withval"
3280           ;;
3281         esac
3282
3283 else
3284   : ${CLIENT_HOST_PRINCIPLE="rcmd"}
3285
3286 fi;
3287
3288 cat >>confdefs.h <<_ACEOF
3289 #define CLIENT_HOST_PRINCIPLE "$CLIENT_HOST_PRINCIPLE"
3290 _ACEOF
3291
3292
3293
3294 # Check whether --with-client-instance or --without-client-instance was given.
3295 if test "${with_client_instance+set}" = set; then
3296   withval="$with_client_instance"
3297
3298         case "$withval" in
3299         "" | y | ye | yes | n | no)
3300             { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-client-instance option." >&5
3301 echo "$as_me: error: *** You must supply an argument to the --with-client-instance option." >&2;}
3302    { (exit 1); exit 1; }; }
3303           ;;
3304         *) CLIENT_HOST_INSTANCE="$withval"
3305           ;;
3306         esac
3307
3308 else
3309   : ${CLIENT_HOST_INSTANCE=HOSTNAME_INSTANCE}
3310
3311 fi;
3312
3313 cat >>confdefs.h <<_ACEOF
3314 #define CLIENT_HOST_INSTANCE $CLIENT_HOST_INSTANCE
3315 _ACEOF
3316
3317
3318
3319 # Check whether --with-client-keyfile or --without-client-keyfile was given.
3320 if test "${with_client_keyfile+set}" = set; then
3321   withval="$with_client_keyfile"
3322
3323         case "$withval" in
3324         "" | y | ye | yes | n | no)
3325             { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-client-keyfile option." >&5
3326 echo "$as_me: error: *** You must supply an argument to the --with-client-keyfile option." >&2;}
3327    { (exit 1); exit 1; }; }
3328           ;;
3329         *) CLIENT_HOST_KEY_FILE="$withval"
3330           ;;
3331         esac
3332
3333 else
3334   : ${CLIENT_HOST_KEY_FILE=KEYFILE}
3335
3336 fi;
3337
3338 # Assume it's either KEYFILE (defined in krb.h), or a string filename...
3339 if test "x$CLIENT_HOST_KEY_FILE" != "xKEYFILE"; then
3340   CLIENT_HOST_KEY_FILE="\"$CLIENT_HOST_KEY_FILE\""
3341 fi
3342
3343
3344 cat >>confdefs.h <<_ACEOF
3345 #define CLIENT_HOST_KEY_FILE $CLIENT_HOST_KEY_FILE
3346 _ACEOF
3347
3348
3349
3350 # Check whether --with-ticket-lifetime or --without-ticket-lifetime was given.
3351 if test "${with_ticket_lifetime+set}" = set; then
3352   withval="$with_ticket_lifetime"
3353
3354         case "$withval" in
3355         "" | y | ye | yes | n | no)
3356             { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-ticket-lifetime option." >&5
3357 echo "$as_me: error: *** You must supply an argument to the --with-ticket-lifetime option." >&2;}
3358    { (exit 1); exit 1; }; }
3359           ;;
3360         *) TICKET_LIFETIME="$withval"
3361           ;;
3362         esac
3363
3364 else
3365   : ${TICKET_LIFETIME=128}
3366
3367 fi;
3368
3369 cat >>confdefs.h <<_ACEOF
3370 #define TICKET_LIFETIME $TICKET_LIFETIME
3371 _ACEOF
3372
3373
3374
3375 : ${KRB5_SPOTS="/usr/kerberos /usr/cygnus /usr /opt/kerberos"}
3376
3377
3378 # Check whether --with-krb5-security or --without-krb5-security was given.
3379 if test "${with_krb5_security+set}" = set; then
3380   withval="$with_krb5_security"
3381   KRB5_SECURITY="$withval"
3382 else
3383   : ${KRB5_SECURITY=no}
3384
3385 fi;
3386
3387 case "$KRB5_SECURITY" in
3388 n | no) KRB5_SECURITY=no
3389         KRB5_SPOTS=""
3390         ;;
3391 y | ye | yes) : ;;
3392 *) KRB5_SPOTS="$KRB5_SECURITY"
3393    KRB5_SECURITY=yes
3394    ;;
3395 esac
3396
3397 # if found, force the static versions of these libs (.a) by linking directly
3398 # with the .a files.  I don't know how to get -R dependancies checked
3399 # in autoconf at this time. -kashmir
3400 echo "$as_me:$LINENO: checking for Kerberos V" >&5
3401 echo $ECHO_N "checking for Kerberos V... $ECHO_C" >&6
3402 KRB5_DIR_FOUND=""
3403 KRB5_CFLAGS=""
3404 for dir in $KRB5_SPOTS; do
3405     k5libdir=${dir}/lib
3406     if test -f ${k5libdir}/libkrb5.a -a -f ${k5libdir}/libgssapi_krb5.a -a -f ${k5libdir}/libcom_err.a; then
3407         if test -f ${k5libdir}/libcrypto.a; then
3408             K5CRYPTO=${k5libdir}/libcrypto.a
3409         elif test -f ${k5libdir}/libk5crypto.a; then
3410             K5CRYPTO=${k5libdir}/libk5crypto.a
3411         else
3412             K5CRYPTO=""
3413         fi
3414         KRB5_DIR_FOUND=$dir
3415         KRB5LIBS="${k5libdir}/libgssapi_krb5.a ${k5libdir}/libkrb5.a $K5CRYPTO ${k5libdir}/libcom_err.a"
3416         KRB5CFLAGS=""
3417         break
3418     elif test -f ${k5libdir}/libkrb5.a -a -f ${k5libdir}/libasn1.a -a -f ${k5libdir}/libgssapi.a; then
3419         KRB5_DIR_FOUND=$dir
3420         KRB5LIBS="${k5libdir}/libgssapi.a ${k5libdir}/libkrb5.a ${k5libdir}/libasn1.a"
3421         KRB5_CFLAGS="-DKRB5_HEIMDAL_INCLUDES"
3422         break
3423     fi
3424 done
3425
3426 if test "$KRB5_DIR_FOUND"; then
3427         echo "$as_me:$LINENO: result: found in $KRB5_DIR_FOUND" >&5
3428 echo "${ECHO_T}found in $KRB5_DIR_FOUND" >&6
3429         KRB5_SECURITY=yes
3430
3431 cat >>confdefs.h <<\_ACEOF
3432 #define KRB5_SECURITY 1
3433 _ACEOF
3434
3435         #
3436         # some OS's, such as NetBSD, stick krb5 includes out of the way...
3437         # should probably just use autoconf to look for various include
3438         # options and set them, but don't quite want to do that until I've
3439         # dug into it a bit more.
3440         #
3441         if test -d "$KRB5_DIR_FOUND/krb5" ; then
3442                 KRB5INCLUDES="-I$KRB5_DIR_FOUND/include/krb5"
3443         else
3444                 KRB5INCLUDES="-I$KRB5_DIR_FOUND/include"
3445         fi
3446         if test "$KRB5_CFLAGS" ; then
3447                 KRB5INCLUDES="$KRB5INCLUDES $KRB5_CFLAGS"
3448         fi
3449         KRB5LDFLAGS=-L$k5libdir
3450         break
3451 fi
3452
3453 if test "x$KRB5LDFLAGS" = "x" ; then
3454     echo "$as_me:$LINENO: result: no krb5 system libraries found" >&5
3455 echo "${ECHO_T}no krb5 system libraries found" >&6
3456 fi
3457
3458
3459
3460 # Check whether --with-portrange or --without-portrange was given.
3461 if test "${with_portrange+set}" = set; then
3462   withval="$with_portrange"
3463
3464         TCPPORTRANGE="$withval"
3465
3466
3467 fi;
3468
3469 # Check whether --with-tcpportrange or --without-tcpportrange was given.
3470 if test "${with_tcpportrange+set}" = set; then
3471   withval="$with_tcpportrange"
3472
3473         TCPPORTRANGE="$withval"
3474
3475
3476 fi;
3477 if test x"${TCPPORTRANGE+set}" = x"set"; then
3478     if test x`echo "$TCPPORTRANGE" | sed 's/[0-9][0-9]*,[0-9][0-9]*//'` != x""; then
3479         { { echo "$as_me:$LINENO: error: *** --with-tcpportrange requires two comma-separated positive numbers" >&5
3480 echo "$as_me: error: *** --with-tcpportrange requires two comma-separated positive numbers" >&2;}
3481    { (exit 1); exit 1; }; }
3482     fi
3483     min_tcp_port=`echo "$TCPPORTRANGE" | sed 's/,.*//'`
3484     max_tcp_port=`echo "$TCPPORTRANGE" | sed 's/.*,//'`
3485     if test $min_tcp_port -gt $max_tcp_port; then
3486         { { echo "$as_me:$LINENO: error: *** the second TCP port number must be greater than the first in --with-tcpportrange" >&5
3487 echo "$as_me: error: *** the second TCP port number must be greater than the first in --with-tcpportrange" >&2;}
3488    { (exit 1); exit 1; }; }
3489     fi
3490     if test $min_tcp_port -lt 1024; then
3491         { echo "$as_me:$LINENO: WARNING: *** the TCP port range should be 1024 or greater in --with-tcpportrange" >&5
3492 echo "$as_me: WARNING: *** the TCP port range should be 1024 or greater in --with-tcpportrange" >&2;}
3493     fi
3494     if test $max_tcp_port -ge 65536; then
3495         { echo "$as_me:$LINENO: WARNING: *** the TCP port range should be less than 65536 in --with-tcpportrange" >&5
3496 echo "$as_me: WARNING: *** the TCP port range should be less than 65536 in --with-tcpportrange" >&2;}
3497     fi
3498
3499 cat >>confdefs.h <<_ACEOF
3500 #define TCPPORTRANGE $TCPPORTRANGE
3501 _ACEOF
3502
3503 fi
3504
3505
3506 # Check whether --with-udpportrange or --without-udpportrange was given.
3507 if test "${with_udpportrange+set}" = set; then
3508   withval="$with_udpportrange"
3509
3510         UDPPORTRANGE="$withval"
3511
3512
3513 fi;
3514 if test x"${UDPPORTRANGE+set}" = x"set"; then
3515     if test x`echo "$UDPPORTRANGE" | sed 's/[0-9][0-9]*,[0-9][0-9]*//'` != x""; then
3516         { { echo "$as_me:$LINENO: error: *** --with-udpportrange requires two comma-separated positive numbers" >&5
3517 echo "$as_me: error: *** --with-udpportrange requires two comma-separated positive numbers" >&2;}
3518    { (exit 1); exit 1; }; }
3519     fi
3520     min_udp_port=`echo "$UDPPORTRANGE" | sed 's/,.*//'`
3521     max_udp_port=`echo "$UDPPORTRANGE" | sed 's/.*,//'`
3522     if test $min_udp_port -gt $max_udp_port; then
3523         { { echo "$as_me:$LINENO: error: *** the second UDP port number must be greater than the first in --with-udpportrange" >&5
3524 echo "$as_me: error: *** the second UDP port number must be greater than the first in --with-udpportrange" >&2;}
3525    { (exit 1); exit 1; }; }
3526     fi
3527     if test $max_udp_port -ge 1024; then
3528         { echo "$as_me:$LINENO: WARNING: *** the UDP port range should be less than 1024 in --with-udpportrange" >&5
3529 echo "$as_me: WARNING: *** the UDP port range should be less than 1024 in --with-udpportrange" >&2;}
3530     fi
3531     if test $min_udp_port -le 0; then
3532         { echo "$as_me:$LINENO: WARNING: *** the UDP port range should be greater than 0 in --with-udpportrange" >&5
3533 echo "$as_me: WARNING: *** the UDP port range should be greater than 0 in --with-udpportrange" >&2;}
3534     fi
3535
3536 cat >>confdefs.h <<_ACEOF
3537 #define UDPPORTRANGE $UDPPORTRANGE
3538 _ACEOF
3539
3540 fi
3541
3542
3543 # Check whether --with-maxtapeblocksize or --without-maxtapeblocksize was given.
3544 if test "${with_maxtapeblocksize+set}" = set; then
3545   withval="$with_maxtapeblocksize"
3546
3547         MAXTAPEBLOCKSIZE="$withval"
3548
3549 else
3550   : ${MAXTAPEBLOCKSIZE=32}
3551
3552 fi;
3553
3554
3555 cat >>confdefs.h <<_ACEOF
3556 #define MAX_TAPE_BLOCK_KB ($MAXTAPEBLOCKSIZE)
3557 _ACEOF
3558
3559
3560
3561
3562 # Check whether --with-db or --without-db was given.
3563 if test "${with_db+set}" = set; then
3564   withval="$with_db"
3565
3566         case "$withval" in
3567         "" | y | ye | yes | n | no)
3568             { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-db option." >&5
3569 echo "$as_me: error: *** You must supply an argument to the --with-db option." >&2;}
3570    { (exit 1); exit 1; }; }
3571           ;;
3572         *) DB_STYLE="$withval"
3573           ;;
3574         esac
3575
3576
3577 fi;
3578 if test "$DB_STYLE"; then
3579     case "$DB_STYLE" in
3580         db | dbm | gdbm | ndbm | text)  ;;
3581         *)
3582             { { echo "$as_me:$LINENO: error: *** Unknown argument $DB_STYLE given to --with-db.  Choose from db, dbm, gdbm, ndbm, text." >&5
3583 echo "$as_me: error: *** Unknown argument $DB_STYLE given to --with-db.  Choose from db, dbm, gdbm, ndbm, text." >&2;}
3584    { (exit 1); exit 1; }; }
3585             DB_STYLE=
3586             ;;
3587     esac
3588 fi
3589
3590
3591 # Check whether --with-mmap or --without-mmap was given.
3592 if test "${with_mmap+set}" = set; then
3593   withval="$with_mmap"
3594   FORCE_MMAP=$withval
3595 else
3596   : ${FORCE_MMAP=no}
3597
3598 fi;
3599 case "$FORCE_MMAP" in
3600 y | ye | yes | n | no) : ;;
3601 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-mmap." >&5
3602 echo "$as_me: error: *** You must not supply an argument to --with-mmap." >&2;}
3603    { (exit 1); exit 1; }; }
3604   ;;
3605 esac
3606
3607
3608 # Check whether --with-buffered-dump or --without-buffered-dump was given.
3609 if test "${with_buffered_dump+set}" = set; then
3610   withval="$with_buffered_dump"
3611   DUMPER_SOCKET_BUFFERING=$withval
3612 else
3613   : ${DUMPER_SOCKET_BUFFERING=no}
3614
3615 fi;
3616 case "$DUMPER_SOCKET_BUFFERING" in
3617 n | no) :
3618   ;;
3619 y | ye | yes)
3620 cat >>confdefs.h <<\_ACEOF
3621 #define DUMPER_SOCKET_BUFFERING 1
3622 _ACEOF
3623
3624   ;;
3625 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-buffered-dump." >&5
3626 echo "$as_me: error: *** You must not supply an argument to --with-buffered-dump." >&2;}
3627    { (exit 1); exit 1; }; }
3628   ;;
3629 esac
3630
3631
3632 # Check whether --with-assertions or --without-assertions was given.
3633 if test "${with_assertions+set}" = set; then
3634   withval="$with_assertions"
3635   ASSERTIONS="$withval"
3636 else
3637   : ${ASSERTIONS=no}
3638
3639 fi;
3640 case "$ASSERTIONS" in
3641 n | no) : ;;
3642 y |  ye | yes)
3643 cat >>confdefs.h <<\_ACEOF
3644 #define ASSERTIONS 1
3645 _ACEOF
3646
3647   ;;
3648 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-assertions option." >&5
3649 echo "$as_me: error: *** You must not supply an argument to --with-assertions option." >&2;}
3650    { (exit 1); exit 1; }; }
3651   ;;
3652 esac
3653
3654
3655 # Check whether --with-tmpdir or --without-tmpdir was given.
3656 if test "${with_tmpdir+set}" = set; then
3657   withval="$with_tmpdir"
3658   tmpdir="$withval"
3659 else
3660   : ${tmpdir=yes}
3661
3662 fi;
3663 tmpdir=`(
3664     test "x$prefix" = xNONE && prefix=$ac_default_prefix
3665     test "x$exec_prefix" = xNONE && exec_prefix=${prefix}
3666     eval echo "$tmpdir"
3667 )`
3668 case "$tmpdir" in
3669 n | no) { { echo "$as_me:$LINENO: error: *** --without-tmpdir is not allowed." >&5
3670 echo "$as_me: error: *** --without-tmpdir is not allowed." >&2;}
3671    { (exit 1); exit 1; }; };;
3672 y |  ye | yes)
3673         AMANDA_TMPDIR="/tmp/amanda";;
3674 /*)
3675         AMANDA_TMPDIR="$tmpdir";;
3676 *) { { echo "$as_me:$LINENO: error: *** You must supply a full pathname to --with-tmpdir option." >&5
3677 echo "$as_me: error: *** You must supply a full pathname to --with-tmpdir option." >&2;}
3678    { (exit 1); exit 1; }; };;
3679 esac
3680
3681 cat >>confdefs.h <<_ACEOF
3682 #define AMANDA_TMPDIR "$AMANDA_TMPDIR"
3683 _ACEOF
3684
3685
3686
3687
3688 # Check whether --with-debugging or --without-debugging was given.
3689 if test "${with_debugging+set}" = set; then
3690   withval="$with_debugging"
3691   debugging="$withval"
3692 else
3693   : ${debugging=yes}
3694
3695 fi;
3696 debugging=`(
3697     test "x$prefix" = xNONE && prefix=$ac_default_prefix
3698     test "x$exec_prefix" = xNONE && exec_prefix=${prefix}
3699     eval echo "$debugging"
3700 )`
3701 case "$debugging" in
3702 n | no) AMANDA_DBGDIR="";;
3703 y |  ye | yes) AMANDA_DBGDIR="$AMANDA_TMPDIR";;
3704 /*) AMANDA_DBGDIR="$debugging";;
3705 *) { { echo "$as_me:$LINENO: error: *** You must supply a full pathname to --with-debugging option." >&5
3706 echo "$as_me: error: *** You must supply a full pathname to --with-debugging option." >&2;}
3707    { (exit 1); exit 1; }; }
3708   ;;
3709 esac
3710 case "$AMANDA_DBGDIR" in
3711 "") :;;
3712 *)
3713 cat >>confdefs.h <<\_ACEOF
3714 #define DEBUG_CODE 1
3715 _ACEOF
3716
3717
3718 cat >>confdefs.h <<_ACEOF
3719 #define AMANDA_DBGDIR "$AMANDA_DBGDIR"
3720 _ACEOF
3721
3722    ;;
3723 esac
3724
3725
3726 # Check whether --with-debug_days or --without-debug_days was given.
3727 if test "${with_debug_days+set}" = set; then
3728   withval="$with_debug_days"
3729   debug_days="$withval"
3730 else
3731   : ${debug_days=4}
3732
3733 fi;
3734 case "$debug_days" in
3735 n | no) AMANDA_DEBUG_DAYS=0 ;;
3736 y |  ye | yes) AMANDA_DEBUG_DAYS=4 ;;
3737 [0-9] | [0-9][0-9] | [0-9][0-9][0-9]) AMANDA_DEBUG_DAYS="$debug_days" ;;
3738 *) { { echo "$as_me:$LINENO: error: *** --with-debug-days value not numeric or out of range." >&5
3739 echo "$as_me: error: *** --with-debug-days value not numeric or out of range." >&2;}
3740    { (exit 1); exit 1; }; }
3741   ;;
3742 esac
3743
3744 cat >>confdefs.h <<_ACEOF
3745 #define AMANDA_DEBUG_DAYS $AMANDA_DEBUG_DAYS
3746 _ACEOF
3747
3748
3749
3750
3751 # Check whether --with-testing or --without-testing was given.
3752 if test "${with_testing+set}" = set; then
3753   withval="$with_testing"
3754   TESTING="$withval"
3755 else
3756   : ${TESTING=no}
3757
3758 fi;
3759 case "$TESTING" in
3760 n | no) SERVICE_SUFFIX="";;
3761 y |  ye | yes) SERVICE_SUFFIX="-test";;
3762 *) SERVICE_SUFFIX="-$TESTING";;
3763 esac
3764 AMANDA_SERVICE_NAME="amanda$SERVICE_SUFFIX"
3765 KAMANDA_SERVICE_NAME="kamanda$SERVICE_SUFFIX"
3766
3767
3768 cat >>confdefs.h <<_ACEOF
3769 #define SERVICE_SUFFIX "$SERVICE_SUFFIX"
3770 _ACEOF
3771
3772
3773 cat >>confdefs.h <<_ACEOF
3774 #define AMANDA_SERVICE_NAME "$AMANDA_SERVICE_NAME"
3775 _ACEOF
3776
3777
3778 cat >>confdefs.h <<_ACEOF
3779 #define KAMANDA_SERVICE_NAME "$KAMANDA_SERVICE_NAME"
3780 _ACEOF
3781
3782
3783 (
3784     test "x$prefix" = xNONE && prefix=$ac_default_prefix
3785     test "x$exec_prefix" = xNONE && exec_prefix=${prefix}
3786
3787     tmp=`eval echo "$bindir"`
3788
3789 cat >>confdefs.h <<_ACEOF
3790 #define bindir "$tmp"
3791 _ACEOF
3792
3793
3794     tmp=`eval echo "$sbindir"`
3795
3796 cat >>confdefs.h <<_ACEOF
3797 #define sbindir "$tmp"
3798 _ACEOF
3799
3800
3801     tmp=`eval echo "$libexecdir"`
3802
3803 cat >>confdefs.h <<_ACEOF
3804 #define libexecdir "$tmp"
3805 _ACEOF
3806
3807
3808     tmp=`eval echo $mandir`
3809
3810 cat >>confdefs.h <<_ACEOF
3811 #define mandir "$tmp"
3812 _ACEOF
3813
3814 )
3815
3816 ac_ext=c
3817 ac_cpp='$CPP $CPPFLAGS'
3818 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3819 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3820 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3821 if test -n "$ac_tool_prefix"; then
3822   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3823 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3824 echo "$as_me:$LINENO: checking for $ac_word" >&5
3825 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3826 if test "${ac_cv_prog_CC+set}" = set; then
3827   echo $ECHO_N "(cached) $ECHO_C" >&6
3828 else
3829   if test -n "$CC"; then
3830   ac_cv_prog_CC="$CC" # Let the user override the test.
3831 else
3832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3833 for as_dir in $PATH
3834 do
3835   IFS=$as_save_IFS
3836   test -z "$as_dir" && as_dir=.
3837   for ac_exec_ext in '' $ac_executable_extensions; do
3838   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3839     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3840     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3841     break 2
3842   fi
3843 done
3844 done
3845
3846 fi
3847 fi
3848 CC=$ac_cv_prog_CC
3849 if test -n "$CC"; then
3850   echo "$as_me:$LINENO: result: $CC" >&5
3851 echo "${ECHO_T}$CC" >&6
3852 else
3853   echo "$as_me:$LINENO: result: no" >&5
3854 echo "${ECHO_T}no" >&6
3855 fi
3856
3857 fi
3858 if test -z "$ac_cv_prog_CC"; then
3859   ac_ct_CC=$CC
3860   # Extract the first word of "gcc", so it can be a program name with args.
3861 set dummy gcc; ac_word=$2
3862 echo "$as_me:$LINENO: checking for $ac_word" >&5
3863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3864 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3865   echo $ECHO_N "(cached) $ECHO_C" >&6
3866 else
3867   if test -n "$ac_ct_CC"; then
3868   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3869 else
3870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3871 for as_dir in $PATH
3872 do
3873   IFS=$as_save_IFS
3874   test -z "$as_dir" && as_dir=.
3875   for ac_exec_ext in '' $ac_executable_extensions; do
3876   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3877     ac_cv_prog_ac_ct_CC="gcc"
3878     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3879     break 2
3880   fi
3881 done
3882 done
3883
3884 fi
3885 fi
3886 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3887 if test -n "$ac_ct_CC"; then
3888   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3889 echo "${ECHO_T}$ac_ct_CC" >&6
3890 else
3891   echo "$as_me:$LINENO: result: no" >&5
3892 echo "${ECHO_T}no" >&6
3893 fi
3894
3895   CC=$ac_ct_CC
3896 else
3897   CC="$ac_cv_prog_CC"
3898 fi
3899
3900 if test -z "$CC"; then
3901   if test -n "$ac_tool_prefix"; then
3902   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3903 set dummy ${ac_tool_prefix}cc; ac_word=$2
3904 echo "$as_me:$LINENO: checking for $ac_word" >&5
3905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3906 if test "${ac_cv_prog_CC+set}" = set; then
3907   echo $ECHO_N "(cached) $ECHO_C" >&6
3908 else
3909   if test -n "$CC"; then
3910   ac_cv_prog_CC="$CC" # Let the user override the test.
3911 else
3912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3913 for as_dir in $PATH
3914 do
3915   IFS=$as_save_IFS
3916   test -z "$as_dir" && as_dir=.
3917   for ac_exec_ext in '' $ac_executable_extensions; do
3918   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3919     ac_cv_prog_CC="${ac_tool_prefix}cc"
3920     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3921     break 2
3922   fi
3923 done
3924 done
3925
3926 fi
3927 fi
3928 CC=$ac_cv_prog_CC
3929 if test -n "$CC"; then
3930   echo "$as_me:$LINENO: result: $CC" >&5
3931 echo "${ECHO_T}$CC" >&6
3932 else
3933   echo "$as_me:$LINENO: result: no" >&5
3934 echo "${ECHO_T}no" >&6
3935 fi
3936
3937 fi
3938 if test -z "$ac_cv_prog_CC"; then
3939   ac_ct_CC=$CC
3940   # Extract the first word of "cc", so it can be a program name with args.
3941 set dummy cc; ac_word=$2
3942 echo "$as_me:$LINENO: checking for $ac_word" >&5
3943 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3944 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3945   echo $ECHO_N "(cached) $ECHO_C" >&6
3946 else
3947   if test -n "$ac_ct_CC"; then
3948   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3949 else
3950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3951 for as_dir in $PATH
3952 do
3953   IFS=$as_save_IFS
3954   test -z "$as_dir" && as_dir=.
3955   for ac_exec_ext in '' $ac_executable_extensions; do
3956   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3957     ac_cv_prog_ac_ct_CC="cc"
3958     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3959     break 2
3960   fi
3961 done
3962 done
3963
3964 fi
3965 fi
3966 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3967 if test -n "$ac_ct_CC"; then
3968   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3969 echo "${ECHO_T}$ac_ct_CC" >&6
3970 else
3971   echo "$as_me:$LINENO: result: no" >&5
3972 echo "${ECHO_T}no" >&6
3973 fi
3974
3975   CC=$ac_ct_CC
3976 else
3977   CC="$ac_cv_prog_CC"
3978 fi
3979
3980 fi
3981 if test -z "$CC"; then
3982   # Extract the first word of "cc", so it can be a program name with args.
3983 set dummy cc; ac_word=$2
3984 echo "$as_me:$LINENO: checking for $ac_word" >&5
3985 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3986 if test "${ac_cv_prog_CC+set}" = set; then
3987   echo $ECHO_N "(cached) $ECHO_C" >&6
3988 else
3989   if test -n "$CC"; then
3990   ac_cv_prog_CC="$CC" # Let the user override the test.
3991 else
3992   ac_prog_rejected=no
3993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3994 for as_dir in $PATH
3995 do
3996   IFS=$as_save_IFS
3997   test -z "$as_dir" && as_dir=.
3998   for ac_exec_ext in '' $ac_executable_extensions; do
3999   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4000     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4001        ac_prog_rejected=yes
4002        continue
4003      fi
4004     ac_cv_prog_CC="cc"
4005     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4006     break 2
4007   fi
4008 done
4009 done
4010
4011 if test $ac_prog_rejected = yes; then
4012   # We found a bogon in the path, so make sure we never use it.
4013   set dummy $ac_cv_prog_CC
4014   shift
4015   if test $# != 0; then
4016     # We chose a different compiler from the bogus one.
4017     # However, it has the same basename, so the bogon will be chosen
4018     # first if we set CC to just the basename; use the full file name.
4019     shift
4020     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4021   fi
4022 fi
4023 fi
4024 fi
4025 CC=$ac_cv_prog_CC
4026 if test -n "$CC"; then
4027   echo "$as_me:$LINENO: result: $CC" >&5
4028 echo "${ECHO_T}$CC" >&6
4029 else
4030   echo "$as_me:$LINENO: result: no" >&5
4031 echo "${ECHO_T}no" >&6
4032 fi
4033
4034 fi
4035 if test -z "$CC"; then
4036   if test -n "$ac_tool_prefix"; then
4037   for ac_prog in cl
4038   do
4039     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4040 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4041 echo "$as_me:$LINENO: checking for $ac_word" >&5
4042 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4043 if test "${ac_cv_prog_CC+set}" = set; then
4044   echo $ECHO_N "(cached) $ECHO_C" >&6
4045 else
4046   if test -n "$CC"; then
4047   ac_cv_prog_CC="$CC" # Let the user override the test.
4048 else
4049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4050 for as_dir in $PATH
4051 do
4052   IFS=$as_save_IFS
4053   test -z "$as_dir" && as_dir=.
4054   for ac_exec_ext in '' $ac_executable_extensions; do
4055   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4056     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4057     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4058     break 2
4059   fi
4060 done
4061 done
4062
4063 fi
4064 fi
4065 CC=$ac_cv_prog_CC
4066 if test -n "$CC"; then
4067   echo "$as_me:$LINENO: result: $CC" >&5
4068 echo "${ECHO_T}$CC" >&6
4069 else
4070   echo "$as_me:$LINENO: result: no" >&5
4071 echo "${ECHO_T}no" >&6
4072 fi
4073
4074     test -n "$CC" && break
4075   done
4076 fi
4077 if test -z "$CC"; then
4078   ac_ct_CC=$CC
4079   for ac_prog in cl
4080 do
4081   # Extract the first word of "$ac_prog", so it can be a program name with args.
4082 set dummy $ac_prog; ac_word=$2
4083 echo "$as_me:$LINENO: checking for $ac_word" >&5
4084 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4085 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4086   echo $ECHO_N "(cached) $ECHO_C" >&6
4087 else
4088   if test -n "$ac_ct_CC"; then
4089   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4090 else
4091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4092 for as_dir in $PATH
4093 do
4094   IFS=$as_save_IFS
4095   test -z "$as_dir" && as_dir=.
4096   for ac_exec_ext in '' $ac_executable_extensions; do
4097   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4098     ac_cv_prog_ac_ct_CC="$ac_prog"
4099     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4100     break 2
4101   fi
4102 done
4103 done
4104
4105 fi
4106 fi
4107 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4108 if test -n "$ac_ct_CC"; then
4109   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4110 echo "${ECHO_T}$ac_ct_CC" >&6
4111 else
4112   echo "$as_me:$LINENO: result: no" >&5
4113 echo "${ECHO_T}no" >&6
4114 fi
4115
4116   test -n "$ac_ct_CC" && break
4117 done
4118
4119   CC=$ac_ct_CC
4120 fi
4121
4122 fi
4123
4124
4125 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4126 See \`config.log' for more details." >&5
4127 echo "$as_me: error: no acceptable C compiler found in \$PATH
4128 See \`config.log' for more details." >&2;}
4129    { (exit 1); exit 1; }; }
4130
4131 # Provide some information about the compiler.
4132 echo "$as_me:$LINENO:" \
4133      "checking for C compiler version" >&5
4134 ac_compiler=`set X $ac_compile; echo $2`
4135 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4136   (eval $ac_compiler --version </dev/null >&5) 2>&5
4137   ac_status=$?
4138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4139   (exit $ac_status); }
4140 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4141   (eval $ac_compiler -v </dev/null >&5) 2>&5
4142   ac_status=$?
4143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4144   (exit $ac_status); }
4145 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4146   (eval $ac_compiler -V </dev/null >&5) 2>&5
4147   ac_status=$?
4148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4149   (exit $ac_status); }
4150
4151 cat >conftest.$ac_ext <<_ACEOF
4152 /* confdefs.h.  */
4153 _ACEOF
4154 cat confdefs.h >>conftest.$ac_ext
4155 cat >>conftest.$ac_ext <<_ACEOF
4156 /* end confdefs.h.  */
4157
4158 int
4159 main ()
4160 {
4161
4162   ;
4163   return 0;
4164 }
4165 _ACEOF
4166 ac_clean_files_save=$ac_clean_files
4167 ac_clean_files="$ac_clean_files a.out a.exe b.out"
4168 # Try to create an executable without -o first, disregard a.out.
4169 # It will help us diagnose broken compilers, and finding out an intuition
4170 # of exeext.
4171 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4172 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
4173 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4174 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
4175   (eval $ac_link_default) 2>&5
4176   ac_status=$?
4177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4178   (exit $ac_status); }; then
4179   # Find the output, starting from the most likely.  This scheme is
4180 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
4181 # resort.
4182
4183 # Be careful to initialize this variable, since it used to be cached.
4184 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
4185 ac_cv_exeext=
4186 # b.out is created by i960 compilers.
4187 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
4188 do
4189   test -f "$ac_file" || continue
4190   case $ac_file in
4191     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
4192         ;;
4193     conftest.$ac_ext )
4194         # This is the source file.
4195         ;;
4196     [ab].out )
4197         # We found the default executable, but exeext='' is most
4198         # certainly right.
4199         break;;
4200     *.* )
4201         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4202         # FIXME: I believe we export ac_cv_exeext for Libtool,
4203         # but it would be cool to find out if it's true.  Does anybody
4204         # maintain Libtool? --akim.
4205         export ac_cv_exeext
4206         break;;
4207     * )
4208         break;;
4209   esac
4210 done
4211 else
4212   echo "$as_me: failed program was:" >&5
4213 sed 's/^/| /' conftest.$ac_ext >&5
4214
4215 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
4216 See \`config.log' for more details." >&5
4217 echo "$as_me: error: C compiler cannot create executables
4218 See \`config.log' for more details." >&2;}
4219    { (exit 77); exit 77; }; }
4220 fi
4221
4222 ac_exeext=$ac_cv_exeext
4223 echo "$as_me:$LINENO: result: $ac_file" >&5
4224 echo "${ECHO_T}$ac_file" >&6
4225
4226 # Check the compiler produces executables we can run.  If not, either
4227 # the compiler is broken, or we cross compile.
4228 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4229 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
4230 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4231 # If not cross compiling, check that we can run a simple program.
4232 if test "$cross_compiling" != yes; then
4233   if { ac_try='./$ac_file'
4234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4235   (eval $ac_try) 2>&5
4236   ac_status=$?
4237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4238   (exit $ac_status); }; }; then
4239     cross_compiling=no
4240   else
4241     if test "$cross_compiling" = maybe; then
4242         cross_compiling=yes
4243     else
4244         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
4245 If you meant to cross compile, use \`--host'.
4246 See \`config.log' for more details." >&5
4247 echo "$as_me: error: cannot run C compiled programs.
4248 If you meant to cross compile, use \`--host'.
4249 See \`config.log' for more details." >&2;}
4250    { (exit 1); exit 1; }; }
4251     fi
4252   fi
4253 fi
4254 echo "$as_me:$LINENO: result: yes" >&5
4255 echo "${ECHO_T}yes" >&6
4256
4257 rm -f a.out a.exe conftest$ac_cv_exeext b.out
4258 ac_clean_files=$ac_clean_files_save
4259 # Check the compiler produces executables we can run.  If not, either
4260 # the compiler is broken, or we cross compile.
4261 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4262 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
4263 echo "$as_me:$LINENO: result: $cross_compiling" >&5
4264 echo "${ECHO_T}$cross_compiling" >&6
4265
4266 echo "$as_me:$LINENO: checking for suffix of executables" >&5
4267 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
4268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4269   (eval $ac_link) 2>&5
4270   ac_status=$?
4271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4272   (exit $ac_status); }; then
4273   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4274 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4275 # work properly (i.e., refer to `conftest.exe'), while it won't with
4276 # `rm'.
4277 for ac_file in conftest.exe conftest conftest.*; do
4278   test -f "$ac_file" || continue
4279   case $ac_file in
4280     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
4281     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4282           export ac_cv_exeext
4283           break;;
4284     * ) break;;
4285   esac
4286 done
4287 else
4288   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4289 See \`config.log' for more details." >&5
4290 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4291 See \`config.log' for more details." >&2;}
4292    { (exit 1); exit 1; }; }
4293 fi
4294
4295 rm -f conftest$ac_cv_exeext
4296 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
4297 echo "${ECHO_T}$ac_cv_exeext" >&6
4298
4299 rm -f conftest.$ac_ext
4300 EXEEXT=$ac_cv_exeext
4301 ac_exeext=$EXEEXT
4302 echo "$as_me:$LINENO: checking for suffix of object files" >&5
4303 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
4304 if test "${ac_cv_objext+set}" = set; then
4305   echo $ECHO_N "(cached) $ECHO_C" >&6
4306 else
4307   cat >conftest.$ac_ext <<_ACEOF
4308 /* confdefs.h.  */
4309 _ACEOF
4310 cat confdefs.h >>conftest.$ac_ext
4311 cat >>conftest.$ac_ext <<_ACEOF
4312 /* end confdefs.h.  */
4313
4314 int
4315 main ()
4316 {
4317
4318   ;
4319   return 0;
4320 }
4321 _ACEOF
4322 rm -f conftest.o conftest.obj
4323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4324   (eval $ac_compile) 2>&5
4325   ac_status=$?
4326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4327   (exit $ac_status); }; then
4328   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
4329   case $ac_file in
4330     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
4331     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4332        break;;
4333   esac
4334 done
4335 else
4336   echo "$as_me: failed program was:" >&5
4337 sed 's/^/| /' conftest.$ac_ext >&5
4338
4339 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
4340 See \`config.log' for more details." >&5
4341 echo "$as_me: error: cannot compute suffix of object files: cannot compile
4342 See \`config.log' for more details." >&2;}
4343    { (exit 1); exit 1; }; }
4344 fi
4345
4346 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4347 fi
4348 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
4349 echo "${ECHO_T}$ac_cv_objext" >&6
4350 OBJEXT=$ac_cv_objext
4351 ac_objext=$OBJEXT
4352 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4353 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4354 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4355   echo $ECHO_N "(cached) $ECHO_C" >&6
4356 else
4357   cat >conftest.$ac_ext <<_ACEOF
4358 /* confdefs.h.  */
4359 _ACEOF
4360 cat confdefs.h >>conftest.$ac_ext
4361 cat >>conftest.$ac_ext <<_ACEOF
4362 /* end confdefs.h.  */
4363
4364 int
4365 main ()
4366 {
4367 #ifndef __GNUC__
4368        choke me
4369 #endif
4370
4371   ;
4372   return 0;
4373 }
4374 _ACEOF
4375 rm -f conftest.$ac_objext
4376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4377   (eval $ac_compile) 2>conftest.er1
4378   ac_status=$?
4379   grep -v '^ *+' conftest.er1 >conftest.err
4380   rm -f conftest.er1
4381   cat conftest.err >&5
4382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4383   (exit $ac_status); } &&
4384          { ac_try='test -z "$ac_c_werror_flag"
4385                          || test ! -s conftest.err'
4386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4387   (eval $ac_try) 2>&5
4388   ac_status=$?
4389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4390   (exit $ac_status); }; } &&
4391          { ac_try='test -s conftest.$ac_objext'
4392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4393   (eval $ac_try) 2>&5
4394   ac_status=$?
4395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4396   (exit $ac_status); }; }; then
4397   ac_compiler_gnu=yes
4398 else
4399   echo "$as_me: failed program was:" >&5
4400 sed 's/^/| /' conftest.$ac_ext >&5
4401
4402 ac_compiler_gnu=no
4403 fi
4404 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4405 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4406
4407 fi
4408 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4409 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4410 GCC=`test $ac_compiler_gnu = yes && echo yes`
4411 ac_test_CFLAGS=${CFLAGS+set}
4412 ac_save_CFLAGS=$CFLAGS
4413 CFLAGS="-g"
4414 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4415 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4416 if test "${ac_cv_prog_cc_g+set}" = set; then
4417   echo $ECHO_N "(cached) $ECHO_C" >&6
4418 else
4419   cat >conftest.$ac_ext <<_ACEOF
4420 /* confdefs.h.  */
4421 _ACEOF
4422 cat confdefs.h >>conftest.$ac_ext
4423 cat >>conftest.$ac_ext <<_ACEOF
4424 /* end confdefs.h.  */
4425
4426 int
4427 main ()
4428 {
4429
4430   ;
4431   return 0;
4432 }
4433 _ACEOF
4434 rm -f conftest.$ac_objext
4435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4436   (eval $ac_compile) 2>conftest.er1
4437   ac_status=$?
4438   grep -v '^ *+' conftest.er1 >conftest.err
4439   rm -f conftest.er1
4440   cat conftest.err >&5
4441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4442   (exit $ac_status); } &&
4443          { ac_try='test -z "$ac_c_werror_flag"
4444                          || test ! -s conftest.err'
4445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4446   (eval $ac_try) 2>&5
4447   ac_status=$?
4448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4449   (exit $ac_status); }; } &&
4450          { ac_try='test -s conftest.$ac_objext'
4451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4452   (eval $ac_try) 2>&5
4453   ac_status=$?
4454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4455   (exit $ac_status); }; }; then
4456   ac_cv_prog_cc_g=yes
4457 else
4458   echo "$as_me: failed program was:" >&5
4459 sed 's/^/| /' conftest.$ac_ext >&5
4460
4461 ac_cv_prog_cc_g=no
4462 fi
4463 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4464 fi
4465 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4466 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4467 if test "$ac_test_CFLAGS" = set; then
4468   CFLAGS=$ac_save_CFLAGS
4469 elif test $ac_cv_prog_cc_g = yes; then
4470   if test "$GCC" = yes; then
4471     CFLAGS="-g -O2"
4472   else
4473     CFLAGS="-g"
4474   fi
4475 else
4476   if test "$GCC" = yes; then
4477     CFLAGS="-O2"
4478   else
4479     CFLAGS=
4480   fi
4481 fi
4482 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4483 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4484 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4485   echo $ECHO_N "(cached) $ECHO_C" >&6
4486 else
4487   ac_cv_prog_cc_stdc=no
4488 ac_save_CC=$CC
4489 cat >conftest.$ac_ext <<_ACEOF
4490 /* confdefs.h.  */
4491 _ACEOF
4492 cat confdefs.h >>conftest.$ac_ext
4493 cat >>conftest.$ac_ext <<_ACEOF
4494 /* end confdefs.h.  */
4495 #include <stdarg.h>
4496 #include <stdio.h>
4497 #include <sys/types.h>
4498 #include <sys/stat.h>
4499 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4500 struct buf { int x; };
4501 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4502 static char *e (p, i)
4503      char **p;
4504      int i;
4505 {
4506   return p[i];
4507 }
4508 static char *f (char * (*g) (char **, int), char **p, ...)
4509 {
4510   char *s;
4511   va_list v;
4512   va_start (v,p);
4513   s = g (p, va_arg (v,int));
4514   va_end (v);
4515   return s;
4516 }
4517
4518 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4519    function prototypes and stuff, but not '\xHH' hex character constants.
4520    These don't provoke an error unfortunately, instead are silently treated
4521    as 'x'.  The following induces an error, until -std1 is added to get
4522    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4523    array size at least.  It's necessary to write '\x00'==0 to get something
4524    that's true only with -std1.  */
4525 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4526
4527 int test (int i, double x);
4528 struct s1 {int (*f) (int a);};
4529 struct s2 {int (*f) (double a);};
4530 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4531 int argc;
4532 char **argv;
4533 int
4534 main ()
4535 {
4536 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4537   ;
4538   return 0;
4539 }
4540 _ACEOF
4541 # Don't try gcc -ansi; that turns off useful extensions and
4542 # breaks some systems' header files.
4543 # AIX                   -qlanglvl=ansi
4544 # Ultrix and OSF/1      -std1
4545 # HP-UX 10.20 and later -Ae
4546 # HP-UX older versions  -Aa -D_HPUX_SOURCE
4547 # SVR4                  -Xc -D__EXTENSIONS__
4548 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4549 do
4550   CC="$ac_save_CC $ac_arg"
4551   rm -f conftest.$ac_objext
4552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4553   (eval $ac_compile) 2>conftest.er1
4554   ac_status=$?
4555   grep -v '^ *+' conftest.er1 >conftest.err
4556   rm -f conftest.er1
4557   cat conftest.err >&5
4558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4559   (exit $ac_status); } &&
4560          { ac_try='test -z "$ac_c_werror_flag"
4561                          || test ! -s conftest.err'
4562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4563   (eval $ac_try) 2>&5
4564   ac_status=$?
4565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4566   (exit $ac_status); }; } &&
4567          { ac_try='test -s conftest.$ac_objext'
4568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4569   (eval $ac_try) 2>&5
4570   ac_status=$?
4571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4572   (exit $ac_status); }; }; then
4573   ac_cv_prog_cc_stdc=$ac_arg
4574 break
4575 else
4576   echo "$as_me: failed program was:" >&5
4577 sed 's/^/| /' conftest.$ac_ext >&5
4578
4579 fi
4580 rm -f conftest.err conftest.$ac_objext
4581 done
4582 rm -f conftest.$ac_ext conftest.$ac_objext
4583 CC=$ac_save_CC
4584
4585 fi
4586
4587 case "x$ac_cv_prog_cc_stdc" in
4588   x|xno)
4589     echo "$as_me:$LINENO: result: none needed" >&5
4590 echo "${ECHO_T}none needed" >&6 ;;
4591   *)
4592     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4593 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4594     CC="$CC $ac_cv_prog_cc_stdc" ;;
4595 esac
4596
4597 # Some people use a C++ compiler to compile C.  Since we use `exit',
4598 # in C++ we need to declare it.  In case someone uses the same compiler
4599 # for both compiling C and C++ we need to have the C++ compiler decide
4600 # the declaration of exit, since it's the most demanding environment.
4601 cat >conftest.$ac_ext <<_ACEOF
4602 #ifndef __cplusplus
4603   choke me
4604 #endif
4605 _ACEOF
4606 rm -f conftest.$ac_objext
4607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4608   (eval $ac_compile) 2>conftest.er1
4609   ac_status=$?
4610   grep -v '^ *+' conftest.er1 >conftest.err
4611   rm -f conftest.er1
4612   cat conftest.err >&5
4613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4614   (exit $ac_status); } &&
4615          { ac_try='test -z "$ac_c_werror_flag"
4616                          || test ! -s conftest.err'
4617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4618   (eval $ac_try) 2>&5
4619   ac_status=$?
4620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4621   (exit $ac_status); }; } &&
4622          { ac_try='test -s conftest.$ac_objext'
4623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4624   (eval $ac_try) 2>&5
4625   ac_status=$?
4626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4627   (exit $ac_status); }; }; then
4628   for ac_declaration in \
4629    '' \
4630    'extern "C" void std::exit (int) throw (); using std::exit;' \
4631    'extern "C" void std::exit (int); using std::exit;' \
4632    'extern "C" void exit (int) throw ();' \
4633    'extern "C" void exit (int);' \
4634    'void exit (int);'
4635 do
4636   cat >conftest.$ac_ext <<_ACEOF
4637 /* confdefs.h.  */
4638 _ACEOF
4639 cat confdefs.h >>conftest.$ac_ext
4640 cat >>conftest.$ac_ext <<_ACEOF
4641 /* end confdefs.h.  */
4642 $ac_declaration
4643 #include <stdlib.h>
4644 int
4645 main ()
4646 {
4647 exit (42);
4648   ;
4649   return 0;
4650 }
4651 _ACEOF
4652 rm -f conftest.$ac_objext
4653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4654   (eval $ac_compile) 2>conftest.er1
4655   ac_status=$?
4656   grep -v '^ *+' conftest.er1 >conftest.err
4657   rm -f conftest.er1
4658   cat conftest.err >&5
4659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4660   (exit $ac_status); } &&
4661          { ac_try='test -z "$ac_c_werror_flag"
4662                          || test ! -s conftest.err'
4663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4664   (eval $ac_try) 2>&5
4665   ac_status=$?
4666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4667   (exit $ac_status); }; } &&
4668          { ac_try='test -s conftest.$ac_objext'
4669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4670   (eval $ac_try) 2>&5
4671   ac_status=$?
4672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4673   (exit $ac_status); }; }; then
4674   :
4675 else
4676   echo "$as_me: failed program was:" >&5
4677 sed 's/^/| /' conftest.$ac_ext >&5
4678
4679 continue
4680 fi
4681 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4682   cat >conftest.$ac_ext <<_ACEOF
4683 /* confdefs.h.  */
4684 _ACEOF
4685 cat confdefs.h >>conftest.$ac_ext
4686 cat >>conftest.$ac_ext <<_ACEOF
4687 /* end confdefs.h.  */
4688 $ac_declaration
4689 int
4690 main ()
4691 {
4692 exit (42);
4693   ;
4694   return 0;
4695 }
4696 _ACEOF
4697 rm -f conftest.$ac_objext
4698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4699   (eval $ac_compile) 2>conftest.er1
4700   ac_status=$?
4701   grep -v '^ *+' conftest.er1 >conftest.err
4702   rm -f conftest.er1
4703   cat conftest.err >&5
4704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4705   (exit $ac_status); } &&
4706          { ac_try='test -z "$ac_c_werror_flag"
4707                          || test ! -s conftest.err'
4708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4709   (eval $ac_try) 2>&5
4710   ac_status=$?
4711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4712   (exit $ac_status); }; } &&
4713          { ac_try='test -s conftest.$ac_objext'
4714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4715   (eval $ac_try) 2>&5
4716   ac_status=$?
4717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4718   (exit $ac_status); }; }; then
4719   break
4720 else
4721   echo "$as_me: failed program was:" >&5
4722 sed 's/^/| /' conftest.$ac_ext >&5
4723
4724 fi
4725 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4726 done
4727 rm -f conftest*
4728 if test -n "$ac_declaration"; then
4729   echo '#ifdef __cplusplus' >>confdefs.h
4730   echo $ac_declaration      >>confdefs.h
4731   echo '#endif'             >>confdefs.h
4732 fi
4733
4734 else
4735   echo "$as_me: failed program was:" >&5
4736 sed 's/^/| /' conftest.$ac_ext >&5
4737
4738 fi
4739 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4740 ac_ext=c
4741 ac_cpp='$CPP $CPPFLAGS'
4742 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4743 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4744 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4745 DEPDIR="${am__leading_dot}deps"
4746
4747           ac_config_commands="$ac_config_commands depfiles"
4748
4749
4750 am_make=${MAKE-make}
4751 cat > confinc << 'END'
4752 am__doit:
4753         @echo done
4754 .PHONY: am__doit
4755 END
4756 # If we don't find an include directive, just comment out the code.
4757 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4758 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4759 am__include="#"
4760 am__quote=
4761 _am_result=none
4762 # First try GNU make style include.
4763 echo "include confinc" > confmf
4764 # We grep out `Entering directory' and `Leaving directory'
4765 # messages which can occur if `w' ends up in MAKEFLAGS.
4766 # In particular we don't look at `^make:' because GNU make might
4767 # be invoked under some other name (usually "gmake"), in which
4768 # case it prints its new name instead of `make'.
4769 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4770    am__include=include
4771    am__quote=
4772    _am_result=GNU
4773 fi
4774 # Now try BSD make style include.
4775 if test "$am__include" = "#"; then
4776    echo '.include "confinc"' > confmf
4777    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4778       am__include=.include
4779       am__quote="\""
4780       _am_result=BSD
4781    fi
4782 fi
4783
4784
4785 echo "$as_me:$LINENO: result: $_am_result" >&5
4786 echo "${ECHO_T}$_am_result" >&6
4787 rm -f confinc confmf
4788
4789 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4790 if test "${enable_dependency_tracking+set}" = set; then
4791   enableval="$enable_dependency_tracking"
4792
4793 fi;
4794 if test "x$enable_dependency_tracking" != xno; then
4795   am_depcomp="$ac_aux_dir/depcomp"
4796   AMDEPBACKSLASH='\'
4797 fi
4798
4799
4800 if test "x$enable_dependency_tracking" != xno; then
4801   AMDEP_TRUE=
4802   AMDEP_FALSE='#'
4803 else
4804   AMDEP_TRUE='#'
4805   AMDEP_FALSE=
4806 fi
4807
4808
4809
4810
4811 depcc="$CC"   am_compiler_list=
4812
4813 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4814 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4815 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4816   echo $ECHO_N "(cached) $ECHO_C" >&6
4817 else
4818   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4819   # We make a subdir and do the tests there.  Otherwise we can end up
4820   # making bogus files that we don't know about and never remove.  For
4821   # instance it was reported that on HP-UX the gcc test will end up
4822   # making a dummy file named `D' -- because `-MD' means `put the output
4823   # in D'.
4824   mkdir conftest.dir
4825   # Copy depcomp to subdir because otherwise we won't find it if we're
4826   # using a relative directory.
4827   cp "$am_depcomp" conftest.dir
4828   cd conftest.dir
4829   # We will build objects and dependencies in a subdirectory because
4830   # it helps to detect inapplicable dependency modes.  For instance
4831   # both Tru64's cc and ICC support -MD to output dependencies as a
4832   # side effect of compilation, but ICC will put the dependencies in
4833   # the current directory while Tru64 will put them in the object
4834   # directory.
4835   mkdir sub
4836
4837   am_cv_CC_dependencies_compiler_type=none
4838   if test "$am_compiler_list" = ""; then
4839      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4840   fi
4841   for depmode in $am_compiler_list; do
4842     # Setup a source with many dependencies, because some compilers
4843     # like to wrap large dependency lists on column 80 (with \), and
4844     # we should not choose a depcomp mode which is confused by this.
4845     #
4846     # We need to recreate these files for each test, as the compiler may
4847     # overwrite some of them when testing with obscure command lines.
4848     # This happens at least with the AIX C compiler.
4849     : > sub/conftest.c
4850     for i in 1 2 3 4 5 6; do
4851       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4852       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4853       # Solaris 8's {/usr,}/bin/sh.
4854       touch sub/conftst$i.h
4855     done
4856     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4857
4858     case $depmode in
4859     nosideeffect)
4860       # after this tag, mechanisms are not by side-effect, so they'll
4861       # only be used when explicitly requested
4862       if test "x$enable_dependency_tracking" = xyes; then
4863         continue
4864       else
4865         break
4866       fi
4867       ;;
4868     none) break ;;
4869     esac
4870     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4871     # mode.  It turns out that the SunPro C++ compiler does not properly
4872     # handle `-M -o', and we need to detect this.
4873     if depmode=$depmode \
4874        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4875        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4876        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4877          >/dev/null 2>conftest.err &&
4878        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4879        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4880        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4881       # icc doesn't choke on unknown options, it will just issue warnings
4882       # or remarks (even with -Werror).  So we grep stderr for any message
4883       # that says an option was ignored or not supported.
4884       # When given -MP, icc 7.0 and 7.1 complain thusly:
4885       #   icc: Command line warning: ignoring option '-M'; no argument required
4886       # The diagnosis changed in icc 8.0:
4887       #   icc: Command line remark: option '-MP' not supported
4888       if (grep 'ignoring option' conftest.err ||
4889           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4890         am_cv_CC_dependencies_compiler_type=$depmode
4891         break
4892       fi
4893     fi
4894   done
4895
4896   cd ..
4897   rm -rf conftest.dir
4898 else
4899   am_cv_CC_dependencies_compiler_type=none
4900 fi
4901
4902 fi
4903 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4904 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4905 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4906
4907
4908
4909 if
4910   test "x$enable_dependency_tracking" != xno \
4911   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4912   am__fastdepCC_TRUE=
4913   am__fastdepCC_FALSE='#'
4914 else
4915   am__fastdepCC_TRUE='#'
4916   am__fastdepCC_FALSE=
4917 fi
4918
4919
4920
4921
4922
4923 DUMP_PROGRAMS="ufsdump dump backup"
4924 GETCONF_LFS="LFS"
4925
4926 dump_returns_1=
4927 xenix_tapeio=
4928 case "$target" in
4929     *-dec-osf*)
4930
4931 cat >>confdefs.h <<\_ACEOF
4932 #define STATFS_OSF1 1
4933 _ACEOF
4934
4935                         ;;
4936     *-dg-*)
4937                         DUMP_PROGRAMS="dump "$DUMP_PROGRAMS
4938                         : ${USE_RUNDUMP=yes}
4939                         dump_returns_1=yes
4940                         ;;
4941     *-netbsd*)
4942                         ;;
4943     *-freebsd*)
4944                         ;;
4945     *-openbsd*)
4946                         ;;
4947     *-hp-*)
4948                         MT_FILE_FLAG="-t"
4949                         GETCONF_LFS="XBS5_ILP32_OFFBIG"
4950                         case "$CC" in
4951                             *gcc*)
4952                                 AMANDA_CPPFLAGS="-D__STDC_EXT__ $AMANDA_CPPFLAGS"
4953                                 ;;
4954                             *cc*)
4955                                 AMANDA_CFLAGS="-Ae $AMANDA_CFLAGS"
4956                                 ;;
4957                         esac
4958                         ;;
4959   *-ibm-aix*)
4960                         GETCONF_LFS="XBS5_ILP32_OFFBIG"
4961                         DUMP_PROGRAMS="backup "$DUMP_PROGRAMS
4962
4963 cat >>confdefs.h <<\_ACEOF
4964 #define AIX_TAPEIO 1
4965 _ACEOF
4966
4967
4968 cat >>confdefs.h <<\_ACEOF
4969 #define AIX_BACKUP 1
4970 _ACEOF
4971
4972                         ;;
4973   m88k-motorola-sysv4)
4974                         ;;
4975   *-nextstep3)
4976                         ;;
4977   *-pc-bsdi*)
4978                         ;;
4979   *-pc-linux-*)
4980                         ;;
4981   x86_64-*-linux-*)
4982                         ;;
4983   alpha*-*-linux-*)
4984                         ;;
4985   sparc*-*-linux-*)
4986                         ;;
4987   powerpc-*-linux-*)
4988                         ;;
4989   *-sgi-irix3*)
4990                                                 CC=gcc
4991                         ;;
4992   *-sgi-irix4*)
4993                         ;;
4994   *-sgi-irix5*)
4995                         ;;
4996   *-sgi-irix6*)
4997                         ;;
4998   *-solaris2*)
4999                         ;;
5000   *-sun-sunos4.1*)
5001                         ;;
5002   *-ultrix*)
5003                         : ${USE_RUNDUMP=yes}
5004
5005 cat >>confdefs.h <<\_ACEOF
5006 #define STATFS_ULTRIX 1
5007 _ACEOF
5008
5009                         dump_returns_1=yes
5010                         ;;
5011   *-sysv4.2uw2*)
5012
5013 cat >>confdefs.h <<\_ACEOF
5014 #define UWARE_TAPEIO 1
5015 _ACEOF
5016
5017                         ;;
5018   *-sco3.2v4*)
5019                         DEV_PREFIX=/dev/
5020                         RDEV_PREFIX=/dev/
5021                         ;;
5022   *-sco3.2v5*)
5023                         xenix_tapeio=yes
5024
5025 cat >>confdefs.h <<\_ACEOF
5026 #define STATFS_SCO_OS5 1
5027 _ACEOF
5028
5029                         ;;
5030   i386-pc-isc4*)
5031                         xenix_tapeio=yes
5032                         ;;
5033   *-sni-sysv4)
5034                         ;;
5035   *-pc-cygwin)
5036
5037 cat >>confdefs.h <<\_ACEOF
5038 #define IGNORE_TAR_ERRORS 1
5039 _ACEOF
5040
5041                         # Cygwin needs PATH to find cygwin1.dll
5042
5043 cat >>confdefs.h <<\_ACEOF
5044 #define NEED_PATH_ENV 1
5045 _ACEOF
5046
5047
5048 cat >>confdefs.h <<\_ACEOF
5049 #define IGNORE_UID_CHECK 1
5050 _ACEOF
5051
5052
5053 cat >>confdefs.h <<\_ACEOF
5054 #define IGNORE_FSTAB 1
5055 _ACEOF
5056
5057
5058 cat >>confdefs.h <<\_ACEOF
5059 #define DONT_SUID_ROOT 1
5060 _ACEOF
5061
5062                         NEED_SETUID_CLIENT=false
5063                         NEED_RUNTIME_PSEUDO_RELOC=true
5064                         ;;
5065   *)
5066                         cat <<END
5067
5068 *****
5069 This machine, target type $target, is not known
5070 to be fully supported by this configure script.  If the
5071 installation of Amanda on this system succeeds or needed
5072 any patches, please email amanda-hackers@amanda.org with
5073 the patches or an indication of the sucess or failure of
5074 the Amanda installation on your system.
5075 *****
5076
5077 END
5078                 ;;
5079 esac
5080
5081 if test -n "$dump_returns_1"; then
5082
5083 cat >>confdefs.h <<\_ACEOF
5084 #define DUMP_RETURNS_1 1
5085 _ACEOF
5086
5087 fi
5088
5089 if test -n "$xenix_tapeio"; then
5090
5091 cat >>confdefs.h <<\_ACEOF
5092 #define XENIX_TAPEIO 1
5093 _ACEOF
5094
5095 fi
5096
5097 AMANDA_CFLAGS="$AMANDA_CFLAGS $KRB4INCLUDES $KRB5INCLUDES $DBMALLOCCFLAGS"
5098 AMANDA_CPPFLAGS="$AMANDA_CPPFLAGS $KRB4INCLUDES $KRB5INCLUDES $DBMALLOCINCLUDES"
5099 AMANDA_LDFLAGS="$AMANDA_LDFLAGS $KRB4LDFLAGS $KRB5LDFLAGS"
5100 AMANDA_LIBS="$KRB4LIBS $KRB5LIBS $DBMALLOCLIBS $AMANDA_LIBS"
5101 CFLAGS="$CFLAGS $AMANDA_CFLAGS"
5102 CPPFLAGS="$CPPFLAGS $AMANDA_CPPFLAGS"
5103 LDFLAGS="$LDFLAGS $AMANDA_LDFLAGS"
5104 LIBS="$AMANDA_LIBS $LIBS"
5105
5106
5107 : ${MT_FILE_FLAG="-f"}
5108
5109
5110 cat >>confdefs.h <<_ACEOF
5111 #define MT_FILE_FLAG "$MT_FILE_FLAG"
5112 _ACEOF
5113
5114
5115
5116 ac_ext=c
5117 ac_cpp='$CPP $CPPFLAGS'
5118 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5119 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5120 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5121 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5122 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5123 # On Suns, sometimes $CPP names a directory.
5124 if test -n "$CPP" && test -d "$CPP"; then
5125   CPP=
5126 fi
5127 if test -z "$CPP"; then
5128   if test "${ac_cv_prog_CPP+set}" = set; then
5129   echo $ECHO_N "(cached) $ECHO_C" >&6
5130 else
5131       # Double quotes because CPP needs to be expanded
5132     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5133     do
5134       ac_preproc_ok=false
5135 for ac_c_preproc_warn_flag in '' yes
5136 do
5137   # Use a header file that comes with gcc, so configuring glibc
5138   # with a fresh cross-compiler works.
5139   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5140   # <limits.h> exists even on freestanding compilers.
5141   # On the NeXT, cc -E runs the code through the compiler's parser,
5142   # not just through cpp. "Syntax error" is here to catch this case.
5143   cat >conftest.$ac_ext <<_ACEOF
5144 /* confdefs.h.  */
5145 _ACEOF
5146 cat confdefs.h >>conftest.$ac_ext
5147 cat >>conftest.$ac_ext <<_ACEOF
5148 /* end confdefs.h.  */
5149 #ifdef __STDC__
5150 # include <limits.h>
5151 #else
5152 # include <assert.h>
5153 #endif
5154                      Syntax error
5155 _ACEOF
5156 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5157   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5158   ac_status=$?
5159   grep -v '^ *+' conftest.er1 >conftest.err
5160   rm -f conftest.er1
5161   cat conftest.err >&5
5162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5163   (exit $ac_status); } >/dev/null; then
5164   if test -s conftest.err; then
5165     ac_cpp_err=$ac_c_preproc_warn_flag
5166     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5167   else
5168     ac_cpp_err=
5169   fi
5170 else
5171   ac_cpp_err=yes
5172 fi
5173 if test -z "$ac_cpp_err"; then
5174   :
5175 else
5176   echo "$as_me: failed program was:" >&5
5177 sed 's/^/| /' conftest.$ac_ext >&5
5178
5179   # Broken: fails on valid input.
5180 continue
5181 fi
5182 rm -f conftest.err conftest.$ac_ext
5183
5184   # OK, works on sane cases.  Now check whether non-existent headers
5185   # can be detected and how.
5186   cat >conftest.$ac_ext <<_ACEOF
5187 /* confdefs.h.  */
5188 _ACEOF
5189 cat confdefs.h >>conftest.$ac_ext
5190 cat >>conftest.$ac_ext <<_ACEOF
5191 /* end confdefs.h.  */
5192 #include <ac_nonexistent.h>
5193 _ACEOF
5194 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5195   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5196   ac_status=$?
5197   grep -v '^ *+' conftest.er1 >conftest.err
5198   rm -f conftest.er1
5199   cat conftest.err >&5
5200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5201   (exit $ac_status); } >/dev/null; then
5202   if test -s conftest.err; then
5203     ac_cpp_err=$ac_c_preproc_warn_flag
5204     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5205   else
5206     ac_cpp_err=
5207   fi
5208 else
5209   ac_cpp_err=yes
5210 fi
5211 if test -z "$ac_cpp_err"; then
5212   # Broken: success on invalid input.
5213 continue
5214 else
5215   echo "$as_me: failed program was:" >&5
5216 sed 's/^/| /' conftest.$ac_ext >&5
5217
5218   # Passes both tests.
5219 ac_preproc_ok=:
5220 break
5221 fi
5222 rm -f conftest.err conftest.$ac_ext
5223
5224 done
5225 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5226 rm -f conftest.err conftest.$ac_ext
5227 if $ac_preproc_ok; then
5228   break
5229 fi
5230
5231     done
5232     ac_cv_prog_CPP=$CPP
5233
5234 fi
5235   CPP=$ac_cv_prog_CPP
5236 else
5237   ac_cv_prog_CPP=$CPP
5238 fi
5239 echo "$as_me:$LINENO: result: $CPP" >&5
5240 echo "${ECHO_T}$CPP" >&6
5241 ac_preproc_ok=false
5242 for ac_c_preproc_warn_flag in '' yes
5243 do
5244   # Use a header file that comes with gcc, so configuring glibc
5245   # with a fresh cross-compiler works.
5246   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5247   # <limits.h> exists even on freestanding compilers.
5248   # On the NeXT, cc -E runs the code through the compiler's parser,
5249   # not just through cpp. "Syntax error" is here to catch this case.
5250   cat >conftest.$ac_ext <<_ACEOF
5251 /* confdefs.h.  */
5252 _ACEOF
5253 cat confdefs.h >>conftest.$ac_ext
5254 cat >>conftest.$ac_ext <<_ACEOF
5255 /* end confdefs.h.  */
5256 #ifdef __STDC__
5257 # include <limits.h>
5258 #else
5259 # include <assert.h>
5260 #endif
5261                      Syntax error
5262 _ACEOF
5263 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5264   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5265   ac_status=$?
5266   grep -v '^ *+' conftest.er1 >conftest.err
5267   rm -f conftest.er1
5268   cat conftest.err >&5
5269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5270   (exit $ac_status); } >/dev/null; then
5271   if test -s conftest.err; then
5272     ac_cpp_err=$ac_c_preproc_warn_flag
5273     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5274   else
5275     ac_cpp_err=
5276   fi
5277 else
5278   ac_cpp_err=yes
5279 fi
5280 if test -z "$ac_cpp_err"; then
5281   :
5282 else
5283   echo "$as_me: failed program was:" >&5
5284 sed 's/^/| /' conftest.$ac_ext >&5
5285
5286   # Broken: fails on valid input.
5287 continue
5288 fi
5289 rm -f conftest.err conftest.$ac_ext
5290
5291   # OK, works on sane cases.  Now check whether non-existent headers
5292   # can be detected and how.
5293   cat >conftest.$ac_ext <<_ACEOF
5294 /* confdefs.h.  */
5295 _ACEOF
5296 cat confdefs.h >>conftest.$ac_ext
5297 cat >>conftest.$ac_ext <<_ACEOF
5298 /* end confdefs.h.  */
5299 #include <ac_nonexistent.h>
5300 _ACEOF
5301 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5302   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5303   ac_status=$?
5304   grep -v '^ *+' conftest.er1 >conftest.err
5305   rm -f conftest.er1
5306   cat conftest.err >&5
5307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5308   (exit $ac_status); } >/dev/null; then
5309   if test -s conftest.err; then
5310     ac_cpp_err=$ac_c_preproc_warn_flag
5311     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5312   else
5313     ac_cpp_err=
5314   fi
5315 else
5316   ac_cpp_err=yes
5317 fi
5318 if test -z "$ac_cpp_err"; then
5319   # Broken: success on invalid input.
5320 continue
5321 else
5322   echo "$as_me: failed program was:" >&5
5323 sed 's/^/| /' conftest.$ac_ext >&5
5324
5325   # Passes both tests.
5326 ac_preproc_ok=:
5327 break
5328 fi
5329 rm -f conftest.err conftest.$ac_ext
5330
5331 done
5332 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5333 rm -f conftest.err conftest.$ac_ext
5334 if $ac_preproc_ok; then
5335   :
5336 else
5337   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5338 See \`config.log' for more details." >&5
5339 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5340 See \`config.log' for more details." >&2;}
5341    { (exit 1); exit 1; }; }
5342 fi
5343
5344 ac_ext=c
5345 ac_cpp='$CPP $CPPFLAGS'
5346 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5347 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5348 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5349
5350
5351 echo "$as_me:$LINENO: checking for egrep" >&5
5352 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5353 if test "${ac_cv_prog_egrep+set}" = set; then
5354   echo $ECHO_N "(cached) $ECHO_C" >&6
5355 else
5356   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5357     then ac_cv_prog_egrep='grep -E'
5358     else ac_cv_prog_egrep='egrep'
5359     fi
5360 fi
5361 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5362 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5363  EGREP=$ac_cv_prog_egrep
5364
5365
5366 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5367 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5368 if test "${ac_cv_header_stdc+set}" = set; then
5369   echo $ECHO_N "(cached) $ECHO_C" >&6
5370 else
5371   cat >conftest.$ac_ext <<_ACEOF
5372 /* confdefs.h.  */
5373 _ACEOF
5374 cat confdefs.h >>conftest.$ac_ext
5375 cat >>conftest.$ac_ext <<_ACEOF
5376 /* end confdefs.h.  */
5377 #include <stdlib.h>
5378 #include <stdarg.h>
5379 #include <string.h>
5380 #include <float.h>
5381
5382 int
5383 main ()
5384 {
5385
5386   ;
5387   return 0;
5388 }
5389 _ACEOF
5390 rm -f conftest.$ac_objext
5391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5392   (eval $ac_compile) 2>conftest.er1
5393   ac_status=$?
5394   grep -v '^ *+' conftest.er1 >conftest.err
5395   rm -f conftest.er1
5396   cat conftest.err >&5
5397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5398   (exit $ac_status); } &&
5399          { ac_try='test -z "$ac_c_werror_flag"
5400                          || test ! -s conftest.err'
5401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5402   (eval $ac_try) 2>&5
5403   ac_status=$?
5404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5405   (exit $ac_status); }; } &&
5406          { ac_try='test -s conftest.$ac_objext'
5407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5408   (eval $ac_try) 2>&5
5409   ac_status=$?
5410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5411   (exit $ac_status); }; }; then
5412   ac_cv_header_stdc=yes
5413 else
5414   echo "$as_me: failed program was:" >&5
5415 sed 's/^/| /' conftest.$ac_ext >&5
5416
5417 ac_cv_header_stdc=no
5418 fi
5419 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5420
5421 if test $ac_cv_header_stdc = yes; then
5422   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5423   cat >conftest.$ac_ext <<_ACEOF
5424 /* confdefs.h.  */
5425 _ACEOF
5426 cat confdefs.h >>conftest.$ac_ext
5427 cat >>conftest.$ac_ext <<_ACEOF
5428 /* end confdefs.h.  */
5429 #include <string.h>
5430
5431 _ACEOF
5432 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5433   $EGREP "memchr" >/dev/null 2>&1; then
5434   :
5435 else
5436   ac_cv_header_stdc=no
5437 fi
5438 rm -f conftest*
5439
5440 fi
5441
5442 if test $ac_cv_header_stdc = yes; then
5443   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5444   cat >conftest.$ac_ext <<_ACEOF
5445 /* confdefs.h.  */
5446 _ACEOF
5447 cat confdefs.h >>conftest.$ac_ext
5448 cat >>conftest.$ac_ext <<_ACEOF
5449 /* end confdefs.h.  */
5450 #include <stdlib.h>
5451
5452 _ACEOF
5453 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5454   $EGREP "free" >/dev/null 2>&1; then
5455   :
5456 else
5457   ac_cv_header_stdc=no
5458 fi
5459 rm -f conftest*
5460
5461 fi
5462
5463 if test $ac_cv_header_stdc = yes; then
5464   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5465   if test "$cross_compiling" = yes; then
5466   :
5467 else
5468   cat >conftest.$ac_ext <<_ACEOF
5469 /* confdefs.h.  */
5470 _ACEOF
5471 cat confdefs.h >>conftest.$ac_ext
5472 cat >>conftest.$ac_ext <<_ACEOF
5473 /* end confdefs.h.  */
5474 #include <ctype.h>
5475 #if ((' ' & 0x0FF) == 0x020)
5476 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5477 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5478 #else
5479 # define ISLOWER(c) \
5480                    (('a' <= (c) && (c) <= 'i') \
5481                      || ('j' <= (c) && (c) <= 'r') \
5482                      || ('s' <= (c) && (c) <= 'z'))
5483 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5484 #endif
5485
5486 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5487 int
5488 main ()
5489 {
5490   int i;
5491   for (i = 0; i < 256; i++)
5492     if (XOR (islower (i), ISLOWER (i))
5493         || toupper (i) != TOUPPER (i))
5494       exit(2);
5495   exit (0);
5496 }
5497 _ACEOF
5498 rm -f conftest$ac_exeext
5499 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5500   (eval $ac_link) 2>&5
5501   ac_status=$?
5502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5503   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5504   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5505   (eval $ac_try) 2>&5
5506   ac_status=$?
5507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5508   (exit $ac_status); }; }; then
5509   :
5510 else
5511   echo "$as_me: program exited with status $ac_status" >&5
5512 echo "$as_me: failed program was:" >&5
5513 sed 's/^/| /' conftest.$ac_ext >&5
5514
5515 ( exit $ac_status )
5516 ac_cv_header_stdc=no
5517 fi
5518 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5519 fi
5520 fi
5521 fi
5522 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5523 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5524 if test $ac_cv_header_stdc = yes; then
5525
5526 cat >>confdefs.h <<\_ACEOF
5527 #define STDC_HEADERS 1
5528 _ACEOF
5529
5530 fi
5531
5532 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5543                   inttypes.h stdint.h unistd.h
5544 do
5545 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5546 echo "$as_me:$LINENO: checking for $ac_header" >&5
5547 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5548 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5549   echo $ECHO_N "(cached) $ECHO_C" >&6
5550 else
5551   cat >conftest.$ac_ext <<_ACEOF
5552 /* confdefs.h.  */
5553 _ACEOF
5554 cat confdefs.h >>conftest.$ac_ext
5555 cat >>conftest.$ac_ext <<_ACEOF
5556 /* end confdefs.h.  */
5557 $ac_includes_default
5558
5559 #include <$ac_header>
5560 _ACEOF
5561 rm -f conftest.$ac_objext
5562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5563   (eval $ac_compile) 2>conftest.er1
5564   ac_status=$?
5565   grep -v '^ *+' conftest.er1 >conftest.err
5566   rm -f conftest.er1
5567   cat conftest.err >&5
5568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5569   (exit $ac_status); } &&
5570          { ac_try='test -z "$ac_c_werror_flag"
5571                          || test ! -s conftest.err'
5572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5573   (eval $ac_try) 2>&5
5574   ac_status=$?
5575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5576   (exit $ac_status); }; } &&
5577          { ac_try='test -s conftest.$ac_objext'
5578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5579   (eval $ac_try) 2>&5
5580   ac_status=$?
5581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5582   (exit $ac_status); }; }; then
5583   eval "$as_ac_Header=yes"
5584 else
5585   echo "$as_me: failed program was:" >&5
5586 sed 's/^/| /' conftest.$ac_ext >&5
5587
5588 eval "$as_ac_Header=no"
5589 fi
5590 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5591 fi
5592 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5593 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5594 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5595   cat >>confdefs.h <<_ACEOF
5596 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5597 _ACEOF
5598
5599 fi
5600
5601 done
5602
5603
5604 # ------ AX CREATE STDINT H -------------------------------------
5605 echo "$as_me:$LINENO: checking for stdint types" >&5
5606 echo $ECHO_N "checking for stdint types... $ECHO_C" >&6
5607 ac_stdint_h=`echo common-src/amanda-int.h`
5608 # try to shortcircuit - if the default include path of the compiler
5609 # can find a "stdint.h" header then we assume that all compilers can.
5610 if test "${ac_cv_header_stdint_t+set}" = set; then
5611   echo $ECHO_N "(cached) $ECHO_C" >&6
5612 else
5613
5614 old_CXXFLAGS="$CXXFLAGS" ; CXXFLAGS=""
5615 old_CPPFLAGS="$CPPFLAGS" ; CPPFLAGS=""
5616 old_CFLAGS="$CFLAGS"     ; CFLAGS=""
5617 cat >conftest.$ac_ext <<_ACEOF
5618 /* confdefs.h.  */
5619 _ACEOF
5620 cat confdefs.h >>conftest.$ac_ext
5621 cat >>conftest.$ac_ext <<_ACEOF
5622 /* end confdefs.h.  */
5623 #include <stdint.h>
5624 int
5625 main ()
5626 {
5627 int_least32_t v = 0;
5628   ;
5629   return 0;
5630 }
5631 _ACEOF
5632 rm -f conftest.$ac_objext
5633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5634   (eval $ac_compile) 2>conftest.er1
5635   ac_status=$?
5636   grep -v '^ *+' conftest.er1 >conftest.err
5637   rm -f conftest.er1
5638   cat conftest.err >&5
5639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5640   (exit $ac_status); } &&
5641          { ac_try='test -z "$ac_c_werror_flag"
5642                          || test ! -s conftest.err'
5643   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5644   (eval $ac_try) 2>&5
5645   ac_status=$?
5646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5647   (exit $ac_status); }; } &&
5648          { ac_try='test -s conftest.$ac_objext'
5649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5650   (eval $ac_try) 2>&5
5651   ac_status=$?
5652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5653   (exit $ac_status); }; }; then
5654   ac_cv_stdint_result="(assuming C99 compatible system)"
5655  ac_cv_header_stdint_t="stdint.h";
5656 else
5657   echo "$as_me: failed program was:" >&5
5658 sed 's/^/| /' conftest.$ac_ext >&5
5659
5660 ac_cv_header_stdint_t=""
5661 fi
5662 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5663 CXXFLAGS="$old_CXXFLAGS"
5664 CPPFLAGS="$old_CPPFLAGS"
5665 CFLAGS="$old_CFLAGS"
5666 fi
5667
5668
5669 v="... $ac_cv_header_stdint_h"
5670 if test "$ac_stdint_h" = "stdint.h" ; then
5671  echo "$as_me:$LINENO: result: (are you sure you want them in ./stdint.h?)" >&5
5672 echo "${ECHO_T}(are you sure you want them in ./stdint.h?)" >&6
5673 elif test "$ac_stdint_h" = "inttypes.h" ; then
5674  echo "$as_me:$LINENO: result: (are you sure you want them in ./inttypes.h?)" >&5
5675 echo "${ECHO_T}(are you sure you want them in ./inttypes.h?)" >&6
5676 elif test "_$ac_cv_header_stdint_t" = "_" ; then
5677  echo "$as_me:$LINENO: result: (putting them into $ac_stdint_h)$v" >&5
5678 echo "${ECHO_T}(putting them into $ac_stdint_h)$v" >&6
5679 else
5680  ac_cv_header_stdint="$ac_cv_header_stdint_t"
5681  echo "$as_me:$LINENO: result: $ac_cv_header_stdint (shortcircuit)" >&5
5682 echo "${ECHO_T}$ac_cv_header_stdint (shortcircuit)" >&6
5683 fi
5684
5685 if test "_$ac_cv_header_stdint_t" = "_" ; then # can not shortcircuit..
5686
5687
5688 inttype_headers=`echo  | sed -e 's/,/ /g'`
5689
5690 ac_cv_stdint_result="(no helpful system typedefs seen)"
5691
5692 echo "$as_me:$LINENO: checking for stdint uintptr_t" >&5
5693 echo $ECHO_N "checking for stdint uintptr_t... $ECHO_C" >&6
5694 if test "${ac_cv_header_stdint_x+set}" = set; then
5695   echo $ECHO_N "(cached) $ECHO_C" >&6
5696 else
5697
5698  ac_cv_header_stdint_x="" # the 1997 typedefs (inttypes.h)
5699   echo "$as_me:$LINENO: result: (..)" >&5
5700 echo "${ECHO_T}(..)" >&6
5701   for i in    stdint.h inttypes.h sys/inttypes.h $inttype_headers ; do
5702    unset ac_cv_type_uintptr_t
5703    unset ac_cv_type_uint64_t
5704    echo "$as_me:$LINENO: checking for uintptr_t" >&5
5705 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
5706 if test "${ac_cv_type_uintptr_t+set}" = set; then
5707   echo $ECHO_N "(cached) $ECHO_C" >&6
5708 else
5709   cat >conftest.$ac_ext <<_ACEOF
5710 /* confdefs.h.  */
5711 _ACEOF
5712 cat confdefs.h >>conftest.$ac_ext
5713 cat >>conftest.$ac_ext <<_ACEOF
5714 /* end confdefs.h.  */
5715 #include <$i>
5716
5717 int
5718 main ()
5719 {
5720 if ((uintptr_t *) 0)
5721   return 0;
5722 if (sizeof (uintptr_t))
5723   return 0;
5724   ;
5725   return 0;
5726 }
5727 _ACEOF
5728 rm -f conftest.$ac_objext
5729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5730   (eval $ac_compile) 2>conftest.er1
5731   ac_status=$?
5732   grep -v '^ *+' conftest.er1 >conftest.err
5733   rm -f conftest.er1
5734   cat conftest.err >&5
5735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5736   (exit $ac_status); } &&
5737          { ac_try='test -z "$ac_c_werror_flag"
5738                          || test ! -s conftest.err'
5739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5740   (eval $ac_try) 2>&5
5741   ac_status=$?
5742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5743   (exit $ac_status); }; } &&
5744          { ac_try='test -s conftest.$ac_objext'
5745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5746   (eval $ac_try) 2>&5
5747   ac_status=$?
5748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5749   (exit $ac_status); }; }; then
5750   ac_cv_type_uintptr_t=yes
5751 else
5752   echo "$as_me: failed program was:" >&5
5753 sed 's/^/| /' conftest.$ac_ext >&5
5754
5755 ac_cv_type_uintptr_t=no
5756 fi
5757 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5758 fi
5759 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
5760 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
5761 if test $ac_cv_type_uintptr_t = yes; then
5762   ac_cv_header_stdint_x=$i
5763 else
5764   continue
5765 fi
5766
5767    echo "$as_me:$LINENO: checking for uint64_t" >&5
5768 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
5769 if test "${ac_cv_type_uint64_t+set}" = set; then
5770   echo $ECHO_N "(cached) $ECHO_C" >&6
5771 else
5772   cat >conftest.$ac_ext <<_ACEOF
5773 /* confdefs.h.  */
5774 _ACEOF
5775 cat confdefs.h >>conftest.$ac_ext
5776 cat >>conftest.$ac_ext <<_ACEOF
5777 /* end confdefs.h.  */
5778 #include<$i>
5779
5780 int
5781 main ()
5782 {
5783 if ((uint64_t *) 0)
5784   return 0;
5785 if (sizeof (uint64_t))
5786   return 0;
5787   ;
5788   return 0;
5789 }
5790 _ACEOF
5791 rm -f conftest.$ac_objext
5792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5793   (eval $ac_compile) 2>conftest.er1
5794   ac_status=$?
5795   grep -v '^ *+' conftest.er1 >conftest.err
5796   rm -f conftest.er1
5797   cat conftest.err >&5
5798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5799   (exit $ac_status); } &&
5800          { ac_try='test -z "$ac_c_werror_flag"
5801                          || test ! -s conftest.err'
5802   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5803   (eval $ac_try) 2>&5
5804   ac_status=$?
5805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5806   (exit $ac_status); }; } &&
5807          { ac_try='test -s conftest.$ac_objext'
5808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5809   (eval $ac_try) 2>&5
5810   ac_status=$?
5811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5812   (exit $ac_status); }; }; then
5813   ac_cv_type_uint64_t=yes
5814 else
5815   echo "$as_me: failed program was:" >&5
5816 sed 's/^/| /' conftest.$ac_ext >&5
5817
5818 ac_cv_type_uint64_t=no
5819 fi
5820 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5821 fi
5822 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
5823 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
5824 if test $ac_cv_type_uint64_t = yes; then
5825   and64="/uint64_t"
5826 else
5827   and64=""
5828 fi
5829
5830       stdint.h inttypes.h sys/inttypes.h $inttype_headers
5831  break
5832   done
5833   echo "$as_me:$LINENO: checking for stdint uintptr_t" >&5
5834 echo $ECHO_N "checking for stdint uintptr_t... $ECHO_C" >&6
5835
5836 fi
5837 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_x" >&5
5838 echo "${ECHO_T}$ac_cv_header_stdint_x" >&6
5839
5840
5841 if test "_$ac_cv_header_stdint_x" = "_" ; then
5842
5843 echo "$as_me:$LINENO: checking for stdint uint32_t" >&5
5844 echo $ECHO_N "checking for stdint uint32_t... $ECHO_C" >&6
5845 if test "${ac_cv_header_stdint_o+set}" = set; then
5846   echo $ECHO_N "(cached) $ECHO_C" >&6
5847 else
5848
5849  ac_cv_header_stdint_o="" # the 1995 typedefs (sys/inttypes.h)
5850   echo "$as_me:$LINENO: result: (..)" >&5
5851 echo "${ECHO_T}(..)" >&6
5852   for i in    inttypes.h sys/inttypes.h stdint.h $inttype_headers ; do
5853    unset ac_cv_type_uint32_t
5854    unset ac_cv_type_uint64_t
5855    echo "$as_me:$LINENO: checking for uint32_t" >&5
5856 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
5857 if test "${ac_cv_type_uint32_t+set}" = set; then
5858   echo $ECHO_N "(cached) $ECHO_C" >&6
5859 else
5860   cat >conftest.$ac_ext <<_ACEOF
5861 /* confdefs.h.  */
5862 _ACEOF
5863 cat confdefs.h >>conftest.$ac_ext
5864 cat >>conftest.$ac_ext <<_ACEOF
5865 /* end confdefs.h.  */
5866 #include <$i>
5867
5868 int
5869 main ()
5870 {
5871 if ((uint32_t *) 0)
5872   return 0;
5873 if (sizeof (uint32_t))
5874   return 0;
5875   ;
5876   return 0;
5877 }
5878 _ACEOF
5879 rm -f conftest.$ac_objext
5880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5881   (eval $ac_compile) 2>conftest.er1
5882   ac_status=$?
5883   grep -v '^ *+' conftest.er1 >conftest.err
5884   rm -f conftest.er1
5885   cat conftest.err >&5
5886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5887   (exit $ac_status); } &&
5888          { ac_try='test -z "$ac_c_werror_flag"
5889                          || test ! -s conftest.err'
5890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5891   (eval $ac_try) 2>&5
5892   ac_status=$?
5893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5894   (exit $ac_status); }; } &&
5895          { ac_try='test -s conftest.$ac_objext'
5896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5897   (eval $ac_try) 2>&5
5898   ac_status=$?
5899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5900   (exit $ac_status); }; }; then
5901   ac_cv_type_uint32_t=yes
5902 else
5903   echo "$as_me: failed program was:" >&5
5904 sed 's/^/| /' conftest.$ac_ext >&5
5905
5906 ac_cv_type_uint32_t=no
5907 fi
5908 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5909 fi
5910 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
5911 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
5912 if test $ac_cv_type_uint32_t = yes; then
5913   ac_cv_header_stdint_o=$i
5914 else
5915   continue
5916 fi
5917
5918    echo "$as_me:$LINENO: checking for uint64_t" >&5
5919 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
5920 if test "${ac_cv_type_uint64_t+set}" = set; then
5921   echo $ECHO_N "(cached) $ECHO_C" >&6
5922 else
5923   cat >conftest.$ac_ext <<_ACEOF
5924 /* confdefs.h.  */
5925 _ACEOF
5926 cat confdefs.h >>conftest.$ac_ext
5927 cat >>conftest.$ac_ext <<_ACEOF
5928 /* end confdefs.h.  */
5929 #include<$i>
5930
5931 int
5932 main ()
5933 {
5934 if ((uint64_t *) 0)
5935   return 0;
5936 if (sizeof (uint64_t))
5937   return 0;
5938   ;
5939   return 0;
5940 }
5941 _ACEOF
5942 rm -f conftest.$ac_objext
5943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5944   (eval $ac_compile) 2>conftest.er1
5945   ac_status=$?
5946   grep -v '^ *+' conftest.er1 >conftest.err
5947   rm -f conftest.er1
5948   cat conftest.err >&5
5949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5950   (exit $ac_status); } &&
5951          { ac_try='test -z "$ac_c_werror_flag"
5952                          || test ! -s conftest.err'
5953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5954   (eval $ac_try) 2>&5
5955   ac_status=$?
5956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5957   (exit $ac_status); }; } &&
5958          { ac_try='test -s conftest.$ac_objext'
5959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5960   (eval $ac_try) 2>&5
5961   ac_status=$?
5962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5963   (exit $ac_status); }; }; then
5964   ac_cv_type_uint64_t=yes
5965 else
5966   echo "$as_me: failed program was:" >&5
5967 sed 's/^/| /' conftest.$ac_ext >&5
5968
5969 ac_cv_type_uint64_t=no
5970 fi
5971 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5972 fi
5973 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
5974 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
5975 if test $ac_cv_type_uint64_t = yes; then
5976   and64="/uint64_t"
5977 else
5978   and64=""
5979 fi
5980
5981       inttypes.h sys/inttypes.h stdint.h $inttype_headers
5982  break
5983    break;
5984   done
5985   echo "$as_me:$LINENO: checking for stdint uint32_t" >&5
5986 echo $ECHO_N "checking for stdint uint32_t... $ECHO_C" >&6
5987
5988 fi
5989 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_o" >&5
5990 echo "${ECHO_T}$ac_cv_header_stdint_o" >&6
5991
5992 fi
5993
5994 if test "_$ac_cv_header_stdint_x" = "_" ; then
5995 if test "_$ac_cv_header_stdint_o" = "_" ; then
5996
5997 echo "$as_me:$LINENO: checking for stdint u_int32_t" >&5
5998 echo $ECHO_N "checking for stdint u_int32_t... $ECHO_C" >&6
5999 if test "${ac_cv_header_stdint_u+set}" = set; then
6000   echo $ECHO_N "(cached) $ECHO_C" >&6
6001 else
6002
6003  ac_cv_header_stdint_u="" # the BSD typedefs (sys/types.h)
6004   echo "$as_me:$LINENO: result: (..)" >&5
6005 echo "${ECHO_T}(..)" >&6
6006   for i in    sys/types.h inttypes.h sys/inttypes.h $inttype_headers ; do
6007    unset ac_cv_type_u_int32_t
6008    unset ac_cv_type_u_int64_t
6009    echo "$as_me:$LINENO: checking for u_int32_t" >&5
6010 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
6011 if test "${ac_cv_type_u_int32_t+set}" = set; then
6012   echo $ECHO_N "(cached) $ECHO_C" >&6
6013 else
6014   cat >conftest.$ac_ext <<_ACEOF
6015 /* confdefs.h.  */
6016 _ACEOF
6017 cat confdefs.h >>conftest.$ac_ext
6018 cat >>conftest.$ac_ext <<_ACEOF
6019 /* end confdefs.h.  */
6020 #include <$i>
6021
6022 int
6023 main ()
6024 {
6025 if ((u_int32_t *) 0)
6026   return 0;
6027 if (sizeof (u_int32_t))
6028   return 0;
6029   ;
6030   return 0;
6031 }
6032 _ACEOF
6033 rm -f conftest.$ac_objext
6034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6035   (eval $ac_compile) 2>conftest.er1
6036   ac_status=$?
6037   grep -v '^ *+' conftest.er1 >conftest.err
6038   rm -f conftest.er1
6039   cat conftest.err >&5
6040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6041   (exit $ac_status); } &&
6042          { ac_try='test -z "$ac_c_werror_flag"
6043                          || test ! -s conftest.err'
6044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6045   (eval $ac_try) 2>&5
6046   ac_status=$?
6047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6048   (exit $ac_status); }; } &&
6049          { ac_try='test -s conftest.$ac_objext'
6050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6051   (eval $ac_try) 2>&5
6052   ac_status=$?
6053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6054   (exit $ac_status); }; }; then
6055   ac_cv_type_u_int32_t=yes
6056 else
6057   echo "$as_me: failed program was:" >&5
6058 sed 's/^/| /' conftest.$ac_ext >&5
6059
6060 ac_cv_type_u_int32_t=no
6061 fi
6062 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6063 fi
6064 echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
6065 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
6066 if test $ac_cv_type_u_int32_t = yes; then
6067   ac_cv_header_stdint_u=$i
6068 else
6069   continue
6070 fi
6071
6072    echo "$as_me:$LINENO: checking for u_int64_t" >&5
6073 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
6074 if test "${ac_cv_type_u_int64_t+set}" = set; then
6075   echo $ECHO_N "(cached) $ECHO_C" >&6
6076 else
6077   cat >conftest.$ac_ext <<_ACEOF
6078 /* confdefs.h.  */
6079 _ACEOF
6080 cat confdefs.h >>conftest.$ac_ext
6081 cat >>conftest.$ac_ext <<_ACEOF
6082 /* end confdefs.h.  */
6083 #include<$i>
6084
6085 int
6086 main ()
6087 {
6088 if ((u_int64_t *) 0)
6089   return 0;
6090 if (sizeof (u_int64_t))
6091   return 0;
6092   ;
6093   return 0;
6094 }
6095 _ACEOF
6096 rm -f conftest.$ac_objext
6097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6098   (eval $ac_compile) 2>conftest.er1
6099   ac_status=$?
6100   grep -v '^ *+' conftest.er1 >conftest.err
6101   rm -f conftest.er1
6102   cat conftest.err >&5
6103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6104   (exit $ac_status); } &&
6105          { ac_try='test -z "$ac_c_werror_flag"
6106                          || test ! -s conftest.err'
6107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6108   (eval $ac_try) 2>&5
6109   ac_status=$?
6110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6111   (exit $ac_status); }; } &&
6112          { ac_try='test -s conftest.$ac_objext'
6113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6114   (eval $ac_try) 2>&5
6115   ac_status=$?
6116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6117   (exit $ac_status); }; }; then
6118   ac_cv_type_u_int64_t=yes
6119 else
6120   echo "$as_me: failed program was:" >&5
6121 sed 's/^/| /' conftest.$ac_ext >&5
6122
6123 ac_cv_type_u_int64_t=no
6124 fi
6125 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6126 fi
6127 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
6128 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
6129 if test $ac_cv_type_u_int64_t = yes; then
6130   and64="/u_int64_t"
6131 else
6132   and64=""
6133 fi
6134
6135       sys/types.h inttypes.h sys/inttypes.h $inttype_headers
6136  break
6137    break;
6138   done
6139   echo "$as_me:$LINENO: checking for stdint u_int32_t" >&5
6140 echo $ECHO_N "checking for stdint u_int32_t... $ECHO_C" >&6
6141
6142 fi
6143 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_u" >&5
6144 echo "${ECHO_T}$ac_cv_header_stdint_u" >&6
6145
6146 fi fi
6147
6148 if test "_$ac_cv_header_stdint_x" = "_" ; then
6149    echo "$as_me:$LINENO: checking for stdint datatype model" >&5
6150 echo $ECHO_N "checking for stdint datatype model... $ECHO_C" >&6
6151    echo "$as_me:$LINENO: result: (..)" >&5
6152 echo "${ECHO_T}(..)" >&6
6153
6154    echo "$as_me:$LINENO: checking for char" >&5
6155 echo $ECHO_N "checking for char... $ECHO_C" >&6
6156 if test "${ac_cv_type_char+set}" = set; then
6157   echo $ECHO_N "(cached) $ECHO_C" >&6
6158 else
6159   cat >conftest.$ac_ext <<_ACEOF
6160 /* confdefs.h.  */
6161 _ACEOF
6162 cat confdefs.h >>conftest.$ac_ext
6163 cat >>conftest.$ac_ext <<_ACEOF
6164 /* end confdefs.h.  */
6165 $ac_includes_default
6166 int
6167 main ()
6168 {
6169 if ((char *) 0)
6170   return 0;
6171 if (sizeof (char))
6172   return 0;
6173   ;
6174   return 0;
6175 }
6176 _ACEOF
6177 rm -f conftest.$ac_objext
6178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6179   (eval $ac_compile) 2>conftest.er1
6180   ac_status=$?
6181   grep -v '^ *+' conftest.er1 >conftest.err
6182   rm -f conftest.er1
6183   cat conftest.err >&5
6184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6185   (exit $ac_status); } &&
6186          { ac_try='test -z "$ac_c_werror_flag"
6187                          || test ! -s conftest.err'
6188   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6189   (eval $ac_try) 2>&5
6190   ac_status=$?
6191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6192   (exit $ac_status); }; } &&
6193          { ac_try='test -s conftest.$ac_objext'
6194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6195   (eval $ac_try) 2>&5
6196   ac_status=$?
6197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6198   (exit $ac_status); }; }; then
6199   ac_cv_type_char=yes
6200 else
6201   echo "$as_me: failed program was:" >&5
6202 sed 's/^/| /' conftest.$ac_ext >&5
6203
6204 ac_cv_type_char=no
6205 fi
6206 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6207 fi
6208 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
6209 echo "${ECHO_T}$ac_cv_type_char" >&6
6210
6211 echo "$as_me:$LINENO: checking size of char" >&5
6212 echo $ECHO_N "checking size of char... $ECHO_C" >&6
6213 if test "${ac_cv_sizeof_char+set}" = set; then
6214   echo $ECHO_N "(cached) $ECHO_C" >&6
6215 else
6216   if test "$ac_cv_type_char" = yes; then
6217   # The cast to unsigned long works around a bug in the HP C Compiler
6218   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6219   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6220   # This bug is HP SR number 8606223364.
6221   if test "$cross_compiling" = yes; then
6222   # Depending upon the size, compute the lo and hi bounds.
6223 cat >conftest.$ac_ext <<_ACEOF
6224 /* confdefs.h.  */
6225 _ACEOF
6226 cat confdefs.h >>conftest.$ac_ext
6227 cat >>conftest.$ac_ext <<_ACEOF
6228 /* end confdefs.h.  */
6229 $ac_includes_default
6230 int
6231 main ()
6232 {
6233 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
6234 test_array [0] = 0
6235
6236   ;
6237   return 0;
6238 }
6239 _ACEOF
6240 rm -f conftest.$ac_objext
6241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6242   (eval $ac_compile) 2>conftest.er1
6243   ac_status=$?
6244   grep -v '^ *+' conftest.er1 >conftest.err
6245   rm -f conftest.er1
6246   cat conftest.err >&5
6247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6248   (exit $ac_status); } &&
6249          { ac_try='test -z "$ac_c_werror_flag"
6250                          || test ! -s conftest.err'
6251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6252   (eval $ac_try) 2>&5
6253   ac_status=$?
6254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6255   (exit $ac_status); }; } &&
6256          { ac_try='test -s conftest.$ac_objext'
6257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6258   (eval $ac_try) 2>&5
6259   ac_status=$?
6260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6261   (exit $ac_status); }; }; then
6262   ac_lo=0 ac_mid=0
6263   while :; do
6264     cat >conftest.$ac_ext <<_ACEOF
6265 /* confdefs.h.  */
6266 _ACEOF
6267 cat confdefs.h >>conftest.$ac_ext
6268 cat >>conftest.$ac_ext <<_ACEOF
6269 /* end confdefs.h.  */
6270 $ac_includes_default
6271 int
6272 main ()
6273 {
6274 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
6275 test_array [0] = 0
6276
6277   ;
6278   return 0;
6279 }
6280 _ACEOF
6281 rm -f conftest.$ac_objext
6282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6283   (eval $ac_compile) 2>conftest.er1
6284   ac_status=$?
6285   grep -v '^ *+' conftest.er1 >conftest.err
6286   rm -f conftest.er1
6287   cat conftest.err >&5
6288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6289   (exit $ac_status); } &&
6290          { ac_try='test -z "$ac_c_werror_flag"
6291                          || test ! -s conftest.err'
6292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6293   (eval $ac_try) 2>&5
6294   ac_status=$?
6295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6296   (exit $ac_status); }; } &&
6297          { ac_try='test -s conftest.$ac_objext'
6298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6299   (eval $ac_try) 2>&5
6300   ac_status=$?
6301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6302   (exit $ac_status); }; }; then
6303   ac_hi=$ac_mid; break
6304 else
6305   echo "$as_me: failed program was:" >&5
6306 sed 's/^/| /' conftest.$ac_ext >&5
6307
6308 ac_lo=`expr $ac_mid + 1`
6309                     if test $ac_lo -le $ac_mid; then
6310                       ac_lo= ac_hi=
6311                       break
6312                     fi
6313                     ac_mid=`expr 2 '*' $ac_mid + 1`
6314 fi
6315 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6316   done
6317 else
6318   echo "$as_me: failed program was:" >&5
6319 sed 's/^/| /' conftest.$ac_ext >&5
6320
6321 cat >conftest.$ac_ext <<_ACEOF
6322 /* confdefs.h.  */
6323 _ACEOF
6324 cat confdefs.h >>conftest.$ac_ext
6325 cat >>conftest.$ac_ext <<_ACEOF
6326 /* end confdefs.h.  */
6327 $ac_includes_default
6328 int
6329 main ()
6330 {
6331 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
6332 test_array [0] = 0
6333
6334   ;
6335   return 0;
6336 }
6337 _ACEOF
6338 rm -f conftest.$ac_objext
6339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6340   (eval $ac_compile) 2>conftest.er1
6341   ac_status=$?
6342   grep -v '^ *+' conftest.er1 >conftest.err
6343   rm -f conftest.er1
6344   cat conftest.err >&5
6345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6346   (exit $ac_status); } &&
6347          { ac_try='test -z "$ac_c_werror_flag"
6348                          || test ! -s conftest.err'
6349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6350   (eval $ac_try) 2>&5
6351   ac_status=$?
6352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6353   (exit $ac_status); }; } &&
6354          { ac_try='test -s conftest.$ac_objext'
6355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6356   (eval $ac_try) 2>&5
6357   ac_status=$?
6358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6359   (exit $ac_status); }; }; then
6360   ac_hi=-1 ac_mid=-1
6361   while :; do
6362     cat >conftest.$ac_ext <<_ACEOF
6363 /* confdefs.h.  */
6364 _ACEOF
6365 cat confdefs.h >>conftest.$ac_ext
6366 cat >>conftest.$ac_ext <<_ACEOF
6367 /* end confdefs.h.  */
6368 $ac_includes_default
6369 int
6370 main ()
6371 {
6372 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
6373 test_array [0] = 0
6374
6375   ;
6376   return 0;
6377 }
6378 _ACEOF
6379 rm -f conftest.$ac_objext
6380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6381   (eval $ac_compile) 2>conftest.er1
6382   ac_status=$?
6383   grep -v '^ *+' conftest.er1 >conftest.err
6384   rm -f conftest.er1
6385   cat conftest.err >&5
6386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6387   (exit $ac_status); } &&
6388          { ac_try='test -z "$ac_c_werror_flag"
6389                          || test ! -s conftest.err'
6390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6391   (eval $ac_try) 2>&5
6392   ac_status=$?
6393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6394   (exit $ac_status); }; } &&
6395          { ac_try='test -s conftest.$ac_objext'
6396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6397   (eval $ac_try) 2>&5
6398   ac_status=$?
6399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6400   (exit $ac_status); }; }; then
6401   ac_lo=$ac_mid; break
6402 else
6403   echo "$as_me: failed program was:" >&5
6404 sed 's/^/| /' conftest.$ac_ext >&5
6405
6406 ac_hi=`expr '(' $ac_mid ')' - 1`
6407                        if test $ac_mid -le $ac_hi; then
6408                          ac_lo= ac_hi=
6409                          break
6410                        fi
6411                        ac_mid=`expr 2 '*' $ac_mid`
6412 fi
6413 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6414   done
6415 else
6416   echo "$as_me: failed program was:" >&5
6417 sed 's/^/| /' conftest.$ac_ext >&5
6418
6419 ac_lo= ac_hi=
6420 fi
6421 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6422 fi
6423 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6424 # Binary search between lo and hi bounds.
6425 while test "x$ac_lo" != "x$ac_hi"; do
6426   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
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 int
6435 main ()
6436 {
6437 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
6438 test_array [0] = 0
6439
6440   ;
6441   return 0;
6442 }
6443 _ACEOF
6444 rm -f conftest.$ac_objext
6445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6446   (eval $ac_compile) 2>conftest.er1
6447   ac_status=$?
6448   grep -v '^ *+' conftest.er1 >conftest.err
6449   rm -f conftest.er1
6450   cat conftest.err >&5
6451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6452   (exit $ac_status); } &&
6453          { ac_try='test -z "$ac_c_werror_flag"
6454                          || test ! -s conftest.err'
6455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6456   (eval $ac_try) 2>&5
6457   ac_status=$?
6458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6459   (exit $ac_status); }; } &&
6460          { ac_try='test -s conftest.$ac_objext'
6461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6462   (eval $ac_try) 2>&5
6463   ac_status=$?
6464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6465   (exit $ac_status); }; }; then
6466   ac_hi=$ac_mid
6467 else
6468   echo "$as_me: failed program was:" >&5
6469 sed 's/^/| /' conftest.$ac_ext >&5
6470
6471 ac_lo=`expr '(' $ac_mid ')' + 1`
6472 fi
6473 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6474 done
6475 case $ac_lo in
6476 ?*) ac_cv_sizeof_char=$ac_lo;;
6477 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
6478 See \`config.log' for more details." >&5
6479 echo "$as_me: error: cannot compute sizeof (char), 77
6480 See \`config.log' for more details." >&2;}
6481    { (exit 1); exit 1; }; } ;;
6482 esac
6483 else
6484   if test "$cross_compiling" = yes; then
6485   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6486 See \`config.log' for more details." >&5
6487 echo "$as_me: error: cannot run test program while cross compiling
6488 See \`config.log' for more details." >&2;}
6489    { (exit 1); exit 1; }; }
6490 else
6491   cat >conftest.$ac_ext <<_ACEOF
6492 /* confdefs.h.  */
6493 _ACEOF
6494 cat confdefs.h >>conftest.$ac_ext
6495 cat >>conftest.$ac_ext <<_ACEOF
6496 /* end confdefs.h.  */
6497 $ac_includes_default
6498 long longval () { return (long) (sizeof (char)); }
6499 unsigned long ulongval () { return (long) (sizeof (char)); }
6500 #include <stdio.h>
6501 #include <stdlib.h>
6502 int
6503 main ()
6504 {
6505
6506   FILE *f = fopen ("conftest.val", "w");
6507   if (! f)
6508     exit (1);
6509   if (((long) (sizeof (char))) < 0)
6510     {
6511       long i = longval ();
6512       if (i != ((long) (sizeof (char))))
6513         exit (1);
6514       fprintf (f, "%ld\n", i);
6515     }
6516   else
6517     {
6518       unsigned long i = ulongval ();
6519       if (i != ((long) (sizeof (char))))
6520         exit (1);
6521       fprintf (f, "%lu\n", i);
6522     }
6523   exit (ferror (f) || fclose (f) != 0);
6524
6525   ;
6526   return 0;
6527 }
6528 _ACEOF
6529 rm -f conftest$ac_exeext
6530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6531   (eval $ac_link) 2>&5
6532   ac_status=$?
6533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6534   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6536   (eval $ac_try) 2>&5
6537   ac_status=$?
6538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6539   (exit $ac_status); }; }; then
6540   ac_cv_sizeof_char=`cat conftest.val`
6541 else
6542   echo "$as_me: program exited with status $ac_status" >&5
6543 echo "$as_me: failed program was:" >&5
6544 sed 's/^/| /' conftest.$ac_ext >&5
6545
6546 ( exit $ac_status )
6547 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
6548 See \`config.log' for more details." >&5
6549 echo "$as_me: error: cannot compute sizeof (char), 77
6550 See \`config.log' for more details." >&2;}
6551    { (exit 1); exit 1; }; }
6552 fi
6553 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6554 fi
6555 fi
6556 rm -f conftest.val
6557 else
6558   ac_cv_sizeof_char=0
6559 fi
6560 fi
6561 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
6562 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
6563 cat >>confdefs.h <<_ACEOF
6564 #define SIZEOF_CHAR $ac_cv_sizeof_char
6565 _ACEOF
6566
6567
6568    echo "$as_me:$LINENO: checking for short" >&5
6569 echo $ECHO_N "checking for short... $ECHO_C" >&6
6570 if test "${ac_cv_type_short+set}" = set; then
6571   echo $ECHO_N "(cached) $ECHO_C" >&6
6572 else
6573   cat >conftest.$ac_ext <<_ACEOF
6574 /* confdefs.h.  */
6575 _ACEOF
6576 cat confdefs.h >>conftest.$ac_ext
6577 cat >>conftest.$ac_ext <<_ACEOF
6578 /* end confdefs.h.  */
6579 $ac_includes_default
6580 int
6581 main ()
6582 {
6583 if ((short *) 0)
6584   return 0;
6585 if (sizeof (short))
6586   return 0;
6587   ;
6588   return 0;
6589 }
6590 _ACEOF
6591 rm -f conftest.$ac_objext
6592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6593   (eval $ac_compile) 2>conftest.er1
6594   ac_status=$?
6595   grep -v '^ *+' conftest.er1 >conftest.err
6596   rm -f conftest.er1
6597   cat conftest.err >&5
6598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6599   (exit $ac_status); } &&
6600          { ac_try='test -z "$ac_c_werror_flag"
6601                          || test ! -s conftest.err'
6602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6603   (eval $ac_try) 2>&5
6604   ac_status=$?
6605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6606   (exit $ac_status); }; } &&
6607          { ac_try='test -s conftest.$ac_objext'
6608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6609   (eval $ac_try) 2>&5
6610   ac_status=$?
6611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6612   (exit $ac_status); }; }; then
6613   ac_cv_type_short=yes
6614 else
6615   echo "$as_me: failed program was:" >&5
6616 sed 's/^/| /' conftest.$ac_ext >&5
6617
6618 ac_cv_type_short=no
6619 fi
6620 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6621 fi
6622 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
6623 echo "${ECHO_T}$ac_cv_type_short" >&6
6624
6625 echo "$as_me:$LINENO: checking size of short" >&5
6626 echo $ECHO_N "checking size of short... $ECHO_C" >&6
6627 if test "${ac_cv_sizeof_short+set}" = set; then
6628   echo $ECHO_N "(cached) $ECHO_C" >&6
6629 else
6630   if test "$ac_cv_type_short" = yes; then
6631   # The cast to unsigned long works around a bug in the HP C Compiler
6632   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6633   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6634   # This bug is HP SR number 8606223364.
6635   if test "$cross_compiling" = yes; then
6636   # Depending upon the size, compute the lo and hi bounds.
6637 cat >conftest.$ac_ext <<_ACEOF
6638 /* confdefs.h.  */
6639 _ACEOF
6640 cat confdefs.h >>conftest.$ac_ext
6641 cat >>conftest.$ac_ext <<_ACEOF
6642 /* end confdefs.h.  */
6643 $ac_includes_default
6644 int
6645 main ()
6646 {
6647 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
6648 test_array [0] = 0
6649
6650   ;
6651   return 0;
6652 }
6653 _ACEOF
6654 rm -f conftest.$ac_objext
6655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6656   (eval $ac_compile) 2>conftest.er1
6657   ac_status=$?
6658   grep -v '^ *+' conftest.er1 >conftest.err
6659   rm -f conftest.er1
6660   cat conftest.err >&5
6661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6662   (exit $ac_status); } &&
6663          { ac_try='test -z "$ac_c_werror_flag"
6664                          || test ! -s conftest.err'
6665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6666   (eval $ac_try) 2>&5
6667   ac_status=$?
6668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6669   (exit $ac_status); }; } &&
6670          { ac_try='test -s conftest.$ac_objext'
6671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6672   (eval $ac_try) 2>&5
6673   ac_status=$?
6674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6675   (exit $ac_status); }; }; then
6676   ac_lo=0 ac_mid=0
6677   while :; do
6678     cat >conftest.$ac_ext <<_ACEOF
6679 /* confdefs.h.  */
6680 _ACEOF
6681 cat confdefs.h >>conftest.$ac_ext
6682 cat >>conftest.$ac_ext <<_ACEOF
6683 /* end confdefs.h.  */
6684 $ac_includes_default
6685 int
6686 main ()
6687 {
6688 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
6689 test_array [0] = 0
6690
6691   ;
6692   return 0;
6693 }
6694 _ACEOF
6695 rm -f conftest.$ac_objext
6696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6697   (eval $ac_compile) 2>conftest.er1
6698   ac_status=$?
6699   grep -v '^ *+' conftest.er1 >conftest.err
6700   rm -f conftest.er1
6701   cat conftest.err >&5
6702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6703   (exit $ac_status); } &&
6704          { ac_try='test -z "$ac_c_werror_flag"
6705                          || test ! -s conftest.err'
6706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6707   (eval $ac_try) 2>&5
6708   ac_status=$?
6709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6710   (exit $ac_status); }; } &&
6711          { ac_try='test -s conftest.$ac_objext'
6712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6713   (eval $ac_try) 2>&5
6714   ac_status=$?
6715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6716   (exit $ac_status); }; }; then
6717   ac_hi=$ac_mid; break
6718 else
6719   echo "$as_me: failed program was:" >&5
6720 sed 's/^/| /' conftest.$ac_ext >&5
6721
6722 ac_lo=`expr $ac_mid + 1`
6723                     if test $ac_lo -le $ac_mid; then
6724                       ac_lo= ac_hi=
6725                       break
6726                     fi
6727                     ac_mid=`expr 2 '*' $ac_mid + 1`
6728 fi
6729 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6730   done
6731 else
6732   echo "$as_me: failed program was:" >&5
6733 sed 's/^/| /' conftest.$ac_ext >&5
6734
6735 cat >conftest.$ac_ext <<_ACEOF
6736 /* confdefs.h.  */
6737 _ACEOF
6738 cat confdefs.h >>conftest.$ac_ext
6739 cat >>conftest.$ac_ext <<_ACEOF
6740 /* end confdefs.h.  */
6741 $ac_includes_default
6742 int
6743 main ()
6744 {
6745 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
6746 test_array [0] = 0
6747
6748   ;
6749   return 0;
6750 }
6751 _ACEOF
6752 rm -f conftest.$ac_objext
6753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6754   (eval $ac_compile) 2>conftest.er1
6755   ac_status=$?
6756   grep -v '^ *+' conftest.er1 >conftest.err
6757   rm -f conftest.er1
6758   cat conftest.err >&5
6759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6760   (exit $ac_status); } &&
6761          { ac_try='test -z "$ac_c_werror_flag"
6762                          || test ! -s conftest.err'
6763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6764   (eval $ac_try) 2>&5
6765   ac_status=$?
6766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6767   (exit $ac_status); }; } &&
6768          { ac_try='test -s conftest.$ac_objext'
6769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6770   (eval $ac_try) 2>&5
6771   ac_status=$?
6772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6773   (exit $ac_status); }; }; then
6774   ac_hi=-1 ac_mid=-1
6775   while :; do
6776     cat >conftest.$ac_ext <<_ACEOF
6777 /* confdefs.h.  */
6778 _ACEOF
6779 cat confdefs.h >>conftest.$ac_ext
6780 cat >>conftest.$ac_ext <<_ACEOF
6781 /* end confdefs.h.  */
6782 $ac_includes_default
6783 int
6784 main ()
6785 {
6786 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
6787 test_array [0] = 0
6788
6789   ;
6790   return 0;
6791 }
6792 _ACEOF
6793 rm -f conftest.$ac_objext
6794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6795   (eval $ac_compile) 2>conftest.er1
6796   ac_status=$?
6797   grep -v '^ *+' conftest.er1 >conftest.err
6798   rm -f conftest.er1
6799   cat conftest.err >&5
6800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6801   (exit $ac_status); } &&
6802          { ac_try='test -z "$ac_c_werror_flag"
6803                          || test ! -s conftest.err'
6804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6805   (eval $ac_try) 2>&5
6806   ac_status=$?
6807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6808   (exit $ac_status); }; } &&
6809          { ac_try='test -s conftest.$ac_objext'
6810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6811   (eval $ac_try) 2>&5
6812   ac_status=$?
6813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6814   (exit $ac_status); }; }; then
6815   ac_lo=$ac_mid; break
6816 else
6817   echo "$as_me: failed program was:" >&5
6818 sed 's/^/| /' conftest.$ac_ext >&5
6819
6820 ac_hi=`expr '(' $ac_mid ')' - 1`
6821                        if test $ac_mid -le $ac_hi; then
6822                          ac_lo= ac_hi=
6823                          break
6824                        fi
6825                        ac_mid=`expr 2 '*' $ac_mid`
6826 fi
6827 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6828   done
6829 else
6830   echo "$as_me: failed program was:" >&5
6831 sed 's/^/| /' conftest.$ac_ext >&5
6832
6833 ac_lo= ac_hi=
6834 fi
6835 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6836 fi
6837 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6838 # Binary search between lo and hi bounds.
6839 while test "x$ac_lo" != "x$ac_hi"; do
6840   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6841   cat >conftest.$ac_ext <<_ACEOF
6842 /* confdefs.h.  */
6843 _ACEOF
6844 cat confdefs.h >>conftest.$ac_ext
6845 cat >>conftest.$ac_ext <<_ACEOF
6846 /* end confdefs.h.  */
6847 $ac_includes_default
6848 int
6849 main ()
6850 {
6851 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
6852 test_array [0] = 0
6853
6854   ;
6855   return 0;
6856 }
6857 _ACEOF
6858 rm -f conftest.$ac_objext
6859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6860   (eval $ac_compile) 2>conftest.er1
6861   ac_status=$?
6862   grep -v '^ *+' conftest.er1 >conftest.err
6863   rm -f conftest.er1
6864   cat conftest.err >&5
6865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6866   (exit $ac_status); } &&
6867          { ac_try='test -z "$ac_c_werror_flag"
6868                          || test ! -s conftest.err'
6869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6870   (eval $ac_try) 2>&5
6871   ac_status=$?
6872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6873   (exit $ac_status); }; } &&
6874          { ac_try='test -s conftest.$ac_objext'
6875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6876   (eval $ac_try) 2>&5
6877   ac_status=$?
6878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6879   (exit $ac_status); }; }; then
6880   ac_hi=$ac_mid
6881 else
6882   echo "$as_me: failed program was:" >&5
6883 sed 's/^/| /' conftest.$ac_ext >&5
6884
6885 ac_lo=`expr '(' $ac_mid ')' + 1`
6886 fi
6887 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6888 done
6889 case $ac_lo in
6890 ?*) ac_cv_sizeof_short=$ac_lo;;
6891 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
6892 See \`config.log' for more details." >&5
6893 echo "$as_me: error: cannot compute sizeof (short), 77
6894 See \`config.log' for more details." >&2;}
6895    { (exit 1); exit 1; }; } ;;
6896 esac
6897 else
6898   if test "$cross_compiling" = yes; then
6899   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6900 See \`config.log' for more details." >&5
6901 echo "$as_me: error: cannot run test program while cross compiling
6902 See \`config.log' for more details." >&2;}
6903    { (exit 1); exit 1; }; }
6904 else
6905   cat >conftest.$ac_ext <<_ACEOF
6906 /* confdefs.h.  */
6907 _ACEOF
6908 cat confdefs.h >>conftest.$ac_ext
6909 cat >>conftest.$ac_ext <<_ACEOF
6910 /* end confdefs.h.  */
6911 $ac_includes_default
6912 long longval () { return (long) (sizeof (short)); }
6913 unsigned long ulongval () { return (long) (sizeof (short)); }
6914 #include <stdio.h>
6915 #include <stdlib.h>
6916 int
6917 main ()
6918 {
6919
6920   FILE *f = fopen ("conftest.val", "w");
6921   if (! f)
6922     exit (1);
6923   if (((long) (sizeof (short))) < 0)
6924     {
6925       long i = longval ();
6926       if (i != ((long) (sizeof (short))))
6927         exit (1);
6928       fprintf (f, "%ld\n", i);
6929     }
6930   else
6931     {
6932       unsigned long i = ulongval ();
6933       if (i != ((long) (sizeof (short))))
6934         exit (1);
6935       fprintf (f, "%lu\n", i);
6936     }
6937   exit (ferror (f) || fclose (f) != 0);
6938
6939   ;
6940   return 0;
6941 }
6942 _ACEOF
6943 rm -f conftest$ac_exeext
6944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6945   (eval $ac_link) 2>&5
6946   ac_status=$?
6947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6948   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6950   (eval $ac_try) 2>&5
6951   ac_status=$?
6952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6953   (exit $ac_status); }; }; then
6954   ac_cv_sizeof_short=`cat conftest.val`
6955 else
6956   echo "$as_me: program exited with status $ac_status" >&5
6957 echo "$as_me: failed program was:" >&5
6958 sed 's/^/| /' conftest.$ac_ext >&5
6959
6960 ( exit $ac_status )
6961 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
6962 See \`config.log' for more details." >&5
6963 echo "$as_me: error: cannot compute sizeof (short), 77
6964 See \`config.log' for more details." >&2;}
6965    { (exit 1); exit 1; }; }
6966 fi
6967 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6968 fi
6969 fi
6970 rm -f conftest.val
6971 else
6972   ac_cv_sizeof_short=0
6973 fi
6974 fi
6975 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
6976 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
6977 cat >>confdefs.h <<_ACEOF
6978 #define SIZEOF_SHORT $ac_cv_sizeof_short
6979 _ACEOF
6980
6981
6982    echo "$as_me:$LINENO: checking for int" >&5
6983 echo $ECHO_N "checking for int... $ECHO_C" >&6
6984 if test "${ac_cv_type_int+set}" = set; then
6985   echo $ECHO_N "(cached) $ECHO_C" >&6
6986 else
6987   cat >conftest.$ac_ext <<_ACEOF
6988 /* confdefs.h.  */
6989 _ACEOF
6990 cat confdefs.h >>conftest.$ac_ext
6991 cat >>conftest.$ac_ext <<_ACEOF
6992 /* end confdefs.h.  */
6993 $ac_includes_default
6994 int
6995 main ()
6996 {
6997 if ((int *) 0)
6998   return 0;
6999 if (sizeof (int))
7000   return 0;
7001   ;
7002   return 0;
7003 }
7004 _ACEOF
7005 rm -f conftest.$ac_objext
7006 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7007   (eval $ac_compile) 2>conftest.er1
7008   ac_status=$?
7009   grep -v '^ *+' conftest.er1 >conftest.err
7010   rm -f conftest.er1
7011   cat conftest.err >&5
7012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7013   (exit $ac_status); } &&
7014          { ac_try='test -z "$ac_c_werror_flag"
7015                          || test ! -s conftest.err'
7016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7017   (eval $ac_try) 2>&5
7018   ac_status=$?
7019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7020   (exit $ac_status); }; } &&
7021          { ac_try='test -s conftest.$ac_objext'
7022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7023   (eval $ac_try) 2>&5
7024   ac_status=$?
7025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7026   (exit $ac_status); }; }; then
7027   ac_cv_type_int=yes
7028 else
7029   echo "$as_me: failed program was:" >&5
7030 sed 's/^/| /' conftest.$ac_ext >&5
7031
7032 ac_cv_type_int=no
7033 fi
7034 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7035 fi
7036 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
7037 echo "${ECHO_T}$ac_cv_type_int" >&6
7038
7039 echo "$as_me:$LINENO: checking size of int" >&5
7040 echo $ECHO_N "checking size of int... $ECHO_C" >&6
7041 if test "${ac_cv_sizeof_int+set}" = set; then
7042   echo $ECHO_N "(cached) $ECHO_C" >&6
7043 else
7044   if test "$ac_cv_type_int" = yes; then
7045   # The cast to unsigned long works around a bug in the HP C Compiler
7046   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7047   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7048   # This bug is HP SR number 8606223364.
7049   if test "$cross_compiling" = yes; then
7050   # Depending upon the size, compute the lo and hi bounds.
7051 cat >conftest.$ac_ext <<_ACEOF
7052 /* confdefs.h.  */
7053 _ACEOF
7054 cat confdefs.h >>conftest.$ac_ext
7055 cat >>conftest.$ac_ext <<_ACEOF
7056 /* end confdefs.h.  */
7057 $ac_includes_default
7058 int
7059 main ()
7060 {
7061 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
7062 test_array [0] = 0
7063
7064   ;
7065   return 0;
7066 }
7067 _ACEOF
7068 rm -f conftest.$ac_objext
7069 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7070   (eval $ac_compile) 2>conftest.er1
7071   ac_status=$?
7072   grep -v '^ *+' conftest.er1 >conftest.err
7073   rm -f conftest.er1
7074   cat conftest.err >&5
7075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7076   (exit $ac_status); } &&
7077          { ac_try='test -z "$ac_c_werror_flag"
7078                          || test ! -s conftest.err'
7079   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7080   (eval $ac_try) 2>&5
7081   ac_status=$?
7082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7083   (exit $ac_status); }; } &&
7084          { ac_try='test -s conftest.$ac_objext'
7085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7086   (eval $ac_try) 2>&5
7087   ac_status=$?
7088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7089   (exit $ac_status); }; }; then
7090   ac_lo=0 ac_mid=0
7091   while :; do
7092     cat >conftest.$ac_ext <<_ACEOF
7093 /* confdefs.h.  */
7094 _ACEOF
7095 cat confdefs.h >>conftest.$ac_ext
7096 cat >>conftest.$ac_ext <<_ACEOF
7097 /* end confdefs.h.  */
7098 $ac_includes_default
7099 int
7100 main ()
7101 {
7102 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
7103 test_array [0] = 0
7104
7105   ;
7106   return 0;
7107 }
7108 _ACEOF
7109 rm -f conftest.$ac_objext
7110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7111   (eval $ac_compile) 2>conftest.er1
7112   ac_status=$?
7113   grep -v '^ *+' conftest.er1 >conftest.err
7114   rm -f conftest.er1
7115   cat conftest.err >&5
7116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7117   (exit $ac_status); } &&
7118          { ac_try='test -z "$ac_c_werror_flag"
7119                          || test ! -s conftest.err'
7120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7121   (eval $ac_try) 2>&5
7122   ac_status=$?
7123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7124   (exit $ac_status); }; } &&
7125          { ac_try='test -s conftest.$ac_objext'
7126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7127   (eval $ac_try) 2>&5
7128   ac_status=$?
7129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7130   (exit $ac_status); }; }; then
7131   ac_hi=$ac_mid; break
7132 else
7133   echo "$as_me: failed program was:" >&5
7134 sed 's/^/| /' conftest.$ac_ext >&5
7135
7136 ac_lo=`expr $ac_mid + 1`
7137                     if test $ac_lo -le $ac_mid; then
7138                       ac_lo= ac_hi=
7139                       break
7140                     fi
7141                     ac_mid=`expr 2 '*' $ac_mid + 1`
7142 fi
7143 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7144   done
7145 else
7146   echo "$as_me: failed program was:" >&5
7147 sed 's/^/| /' conftest.$ac_ext >&5
7148
7149 cat >conftest.$ac_ext <<_ACEOF
7150 /* confdefs.h.  */
7151 _ACEOF
7152 cat confdefs.h >>conftest.$ac_ext
7153 cat >>conftest.$ac_ext <<_ACEOF
7154 /* end confdefs.h.  */
7155 $ac_includes_default
7156 int
7157 main ()
7158 {
7159 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
7160 test_array [0] = 0
7161
7162   ;
7163   return 0;
7164 }
7165 _ACEOF
7166 rm -f conftest.$ac_objext
7167 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7168   (eval $ac_compile) 2>conftest.er1
7169   ac_status=$?
7170   grep -v '^ *+' conftest.er1 >conftest.err
7171   rm -f conftest.er1
7172   cat conftest.err >&5
7173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7174   (exit $ac_status); } &&
7175          { ac_try='test -z "$ac_c_werror_flag"
7176                          || test ! -s conftest.err'
7177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7178   (eval $ac_try) 2>&5
7179   ac_status=$?
7180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7181   (exit $ac_status); }; } &&
7182          { ac_try='test -s conftest.$ac_objext'
7183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7184   (eval $ac_try) 2>&5
7185   ac_status=$?
7186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7187   (exit $ac_status); }; }; then
7188   ac_hi=-1 ac_mid=-1
7189   while :; do
7190     cat >conftest.$ac_ext <<_ACEOF
7191 /* confdefs.h.  */
7192 _ACEOF
7193 cat confdefs.h >>conftest.$ac_ext
7194 cat >>conftest.$ac_ext <<_ACEOF
7195 /* end confdefs.h.  */
7196 $ac_includes_default
7197 int
7198 main ()
7199 {
7200 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
7201 test_array [0] = 0
7202
7203   ;
7204   return 0;
7205 }
7206 _ACEOF
7207 rm -f conftest.$ac_objext
7208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7209   (eval $ac_compile) 2>conftest.er1
7210   ac_status=$?
7211   grep -v '^ *+' conftest.er1 >conftest.err
7212   rm -f conftest.er1
7213   cat conftest.err >&5
7214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7215   (exit $ac_status); } &&
7216          { ac_try='test -z "$ac_c_werror_flag"
7217                          || test ! -s conftest.err'
7218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7219   (eval $ac_try) 2>&5
7220   ac_status=$?
7221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7222   (exit $ac_status); }; } &&
7223          { ac_try='test -s conftest.$ac_objext'
7224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7225   (eval $ac_try) 2>&5
7226   ac_status=$?
7227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7228   (exit $ac_status); }; }; then
7229   ac_lo=$ac_mid; break
7230 else
7231   echo "$as_me: failed program was:" >&5
7232 sed 's/^/| /' conftest.$ac_ext >&5
7233
7234 ac_hi=`expr '(' $ac_mid ')' - 1`
7235                        if test $ac_mid -le $ac_hi; then
7236                          ac_lo= ac_hi=
7237                          break
7238                        fi
7239                        ac_mid=`expr 2 '*' $ac_mid`
7240 fi
7241 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7242   done
7243 else
7244   echo "$as_me: failed program was:" >&5
7245 sed 's/^/| /' conftest.$ac_ext >&5
7246
7247 ac_lo= ac_hi=
7248 fi
7249 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7250 fi
7251 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7252 # Binary search between lo and hi bounds.
7253 while test "x$ac_lo" != "x$ac_hi"; do
7254   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7255   cat >conftest.$ac_ext <<_ACEOF
7256 /* confdefs.h.  */
7257 _ACEOF
7258 cat confdefs.h >>conftest.$ac_ext
7259 cat >>conftest.$ac_ext <<_ACEOF
7260 /* end confdefs.h.  */
7261 $ac_includes_default
7262 int
7263 main ()
7264 {
7265 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
7266 test_array [0] = 0
7267
7268   ;
7269   return 0;
7270 }
7271 _ACEOF
7272 rm -f conftest.$ac_objext
7273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7274   (eval $ac_compile) 2>conftest.er1
7275   ac_status=$?
7276   grep -v '^ *+' conftest.er1 >conftest.err
7277   rm -f conftest.er1
7278   cat conftest.err >&5
7279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7280   (exit $ac_status); } &&
7281          { ac_try='test -z "$ac_c_werror_flag"
7282                          || test ! -s conftest.err'
7283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7284   (eval $ac_try) 2>&5
7285   ac_status=$?
7286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7287   (exit $ac_status); }; } &&
7288          { ac_try='test -s conftest.$ac_objext'
7289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7290   (eval $ac_try) 2>&5
7291   ac_status=$?
7292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7293   (exit $ac_status); }; }; then
7294   ac_hi=$ac_mid
7295 else
7296   echo "$as_me: failed program was:" >&5
7297 sed 's/^/| /' conftest.$ac_ext >&5
7298
7299 ac_lo=`expr '(' $ac_mid ')' + 1`
7300 fi
7301 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7302 done
7303 case $ac_lo in
7304 ?*) ac_cv_sizeof_int=$ac_lo;;
7305 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
7306 See \`config.log' for more details." >&5
7307 echo "$as_me: error: cannot compute sizeof (int), 77
7308 See \`config.log' for more details." >&2;}
7309    { (exit 1); exit 1; }; } ;;
7310 esac
7311 else
7312   if test "$cross_compiling" = yes; then
7313   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7314 See \`config.log' for more details." >&5
7315 echo "$as_me: error: cannot run test program while cross compiling
7316 See \`config.log' for more details." >&2;}
7317    { (exit 1); exit 1; }; }
7318 else
7319   cat >conftest.$ac_ext <<_ACEOF
7320 /* confdefs.h.  */
7321 _ACEOF
7322 cat confdefs.h >>conftest.$ac_ext
7323 cat >>conftest.$ac_ext <<_ACEOF
7324 /* end confdefs.h.  */
7325 $ac_includes_default
7326 long longval () { return (long) (sizeof (int)); }
7327 unsigned long ulongval () { return (long) (sizeof (int)); }
7328 #include <stdio.h>
7329 #include <stdlib.h>
7330 int
7331 main ()
7332 {
7333
7334   FILE *f = fopen ("conftest.val", "w");
7335   if (! f)
7336     exit (1);
7337   if (((long) (sizeof (int))) < 0)
7338     {
7339       long i = longval ();
7340       if (i != ((long) (sizeof (int))))
7341         exit (1);
7342       fprintf (f, "%ld\n", i);
7343     }
7344   else
7345     {
7346       unsigned long i = ulongval ();
7347       if (i != ((long) (sizeof (int))))
7348         exit (1);
7349       fprintf (f, "%lu\n", i);
7350     }
7351   exit (ferror (f) || fclose (f) != 0);
7352
7353   ;
7354   return 0;
7355 }
7356 _ACEOF
7357 rm -f conftest$ac_exeext
7358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7359   (eval $ac_link) 2>&5
7360   ac_status=$?
7361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7362   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7364   (eval $ac_try) 2>&5
7365   ac_status=$?
7366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7367   (exit $ac_status); }; }; then
7368   ac_cv_sizeof_int=`cat conftest.val`
7369 else
7370   echo "$as_me: program exited with status $ac_status" >&5
7371 echo "$as_me: failed program was:" >&5
7372 sed 's/^/| /' conftest.$ac_ext >&5
7373
7374 ( exit $ac_status )
7375 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
7376 See \`config.log' for more details." >&5
7377 echo "$as_me: error: cannot compute sizeof (int), 77
7378 See \`config.log' for more details." >&2;}
7379    { (exit 1); exit 1; }; }
7380 fi
7381 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7382 fi
7383 fi
7384 rm -f conftest.val
7385 else
7386   ac_cv_sizeof_int=0
7387 fi
7388 fi
7389 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
7390 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
7391 cat >>confdefs.h <<_ACEOF
7392 #define SIZEOF_INT $ac_cv_sizeof_int
7393 _ACEOF
7394
7395
7396    echo "$as_me:$LINENO: checking for long" >&5
7397 echo $ECHO_N "checking for long... $ECHO_C" >&6
7398 if test "${ac_cv_type_long+set}" = set; then
7399   echo $ECHO_N "(cached) $ECHO_C" >&6
7400 else
7401   cat >conftest.$ac_ext <<_ACEOF
7402 /* confdefs.h.  */
7403 _ACEOF
7404 cat confdefs.h >>conftest.$ac_ext
7405 cat >>conftest.$ac_ext <<_ACEOF
7406 /* end confdefs.h.  */
7407 $ac_includes_default
7408 int
7409 main ()
7410 {
7411 if ((long *) 0)
7412   return 0;
7413 if (sizeof (long))
7414   return 0;
7415   ;
7416   return 0;
7417 }
7418 _ACEOF
7419 rm -f conftest.$ac_objext
7420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7421   (eval $ac_compile) 2>conftest.er1
7422   ac_status=$?
7423   grep -v '^ *+' conftest.er1 >conftest.err
7424   rm -f conftest.er1
7425   cat conftest.err >&5
7426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7427   (exit $ac_status); } &&
7428          { ac_try='test -z "$ac_c_werror_flag"
7429                          || test ! -s conftest.err'
7430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7431   (eval $ac_try) 2>&5
7432   ac_status=$?
7433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7434   (exit $ac_status); }; } &&
7435          { ac_try='test -s conftest.$ac_objext'
7436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7437   (eval $ac_try) 2>&5
7438   ac_status=$?
7439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7440   (exit $ac_status); }; }; then
7441   ac_cv_type_long=yes
7442 else
7443   echo "$as_me: failed program was:" >&5
7444 sed 's/^/| /' conftest.$ac_ext >&5
7445
7446 ac_cv_type_long=no
7447 fi
7448 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7449 fi
7450 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
7451 echo "${ECHO_T}$ac_cv_type_long" >&6
7452
7453 echo "$as_me:$LINENO: checking size of long" >&5
7454 echo $ECHO_N "checking size of long... $ECHO_C" >&6
7455 if test "${ac_cv_sizeof_long+set}" = set; then
7456   echo $ECHO_N "(cached) $ECHO_C" >&6
7457 else
7458   if test "$ac_cv_type_long" = yes; then
7459   # The cast to unsigned long works around a bug in the HP C Compiler
7460   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7461   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7462   # This bug is HP SR number 8606223364.
7463   if test "$cross_compiling" = yes; then
7464   # Depending upon the size, compute the lo and hi bounds.
7465 cat >conftest.$ac_ext <<_ACEOF
7466 /* confdefs.h.  */
7467 _ACEOF
7468 cat confdefs.h >>conftest.$ac_ext
7469 cat >>conftest.$ac_ext <<_ACEOF
7470 /* end confdefs.h.  */
7471 $ac_includes_default
7472 int
7473 main ()
7474 {
7475 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
7476 test_array [0] = 0
7477
7478   ;
7479   return 0;
7480 }
7481 _ACEOF
7482 rm -f conftest.$ac_objext
7483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7484   (eval $ac_compile) 2>conftest.er1
7485   ac_status=$?
7486   grep -v '^ *+' conftest.er1 >conftest.err
7487   rm -f conftest.er1
7488   cat conftest.err >&5
7489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7490   (exit $ac_status); } &&
7491          { ac_try='test -z "$ac_c_werror_flag"
7492                          || test ! -s conftest.err'
7493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7494   (eval $ac_try) 2>&5
7495   ac_status=$?
7496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7497   (exit $ac_status); }; } &&
7498          { ac_try='test -s conftest.$ac_objext'
7499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7500   (eval $ac_try) 2>&5
7501   ac_status=$?
7502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7503   (exit $ac_status); }; }; then
7504   ac_lo=0 ac_mid=0
7505   while :; do
7506     cat >conftest.$ac_ext <<_ACEOF
7507 /* confdefs.h.  */
7508 _ACEOF
7509 cat confdefs.h >>conftest.$ac_ext
7510 cat >>conftest.$ac_ext <<_ACEOF
7511 /* end confdefs.h.  */
7512 $ac_includes_default
7513 int
7514 main ()
7515 {
7516 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
7517 test_array [0] = 0
7518
7519   ;
7520   return 0;
7521 }
7522 _ACEOF
7523 rm -f conftest.$ac_objext
7524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7525   (eval $ac_compile) 2>conftest.er1
7526   ac_status=$?
7527   grep -v '^ *+' conftest.er1 >conftest.err
7528   rm -f conftest.er1
7529   cat conftest.err >&5
7530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7531   (exit $ac_status); } &&
7532          { ac_try='test -z "$ac_c_werror_flag"
7533                          || test ! -s conftest.err'
7534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7535   (eval $ac_try) 2>&5
7536   ac_status=$?
7537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7538   (exit $ac_status); }; } &&
7539          { ac_try='test -s conftest.$ac_objext'
7540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7541   (eval $ac_try) 2>&5
7542   ac_status=$?
7543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7544   (exit $ac_status); }; }; then
7545   ac_hi=$ac_mid; break
7546 else
7547   echo "$as_me: failed program was:" >&5
7548 sed 's/^/| /' conftest.$ac_ext >&5
7549
7550 ac_lo=`expr $ac_mid + 1`
7551                     if test $ac_lo -le $ac_mid; then
7552                       ac_lo= ac_hi=
7553                       break
7554                     fi
7555                     ac_mid=`expr 2 '*' $ac_mid + 1`
7556 fi
7557 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7558   done
7559 else
7560   echo "$as_me: failed program was:" >&5
7561 sed 's/^/| /' conftest.$ac_ext >&5
7562
7563 cat >conftest.$ac_ext <<_ACEOF
7564 /* confdefs.h.  */
7565 _ACEOF
7566 cat confdefs.h >>conftest.$ac_ext
7567 cat >>conftest.$ac_ext <<_ACEOF
7568 /* end confdefs.h.  */
7569 $ac_includes_default
7570 int
7571 main ()
7572 {
7573 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
7574 test_array [0] = 0
7575
7576   ;
7577   return 0;
7578 }
7579 _ACEOF
7580 rm -f conftest.$ac_objext
7581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7582   (eval $ac_compile) 2>conftest.er1
7583   ac_status=$?
7584   grep -v '^ *+' conftest.er1 >conftest.err
7585   rm -f conftest.er1
7586   cat conftest.err >&5
7587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7588   (exit $ac_status); } &&
7589          { ac_try='test -z "$ac_c_werror_flag"
7590                          || test ! -s conftest.err'
7591   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7592   (eval $ac_try) 2>&5
7593   ac_status=$?
7594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7595   (exit $ac_status); }; } &&
7596          { ac_try='test -s conftest.$ac_objext'
7597   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7598   (eval $ac_try) 2>&5
7599   ac_status=$?
7600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7601   (exit $ac_status); }; }; then
7602   ac_hi=-1 ac_mid=-1
7603   while :; do
7604     cat >conftest.$ac_ext <<_ACEOF
7605 /* confdefs.h.  */
7606 _ACEOF
7607 cat confdefs.h >>conftest.$ac_ext
7608 cat >>conftest.$ac_ext <<_ACEOF
7609 /* end confdefs.h.  */
7610 $ac_includes_default
7611 int
7612 main ()
7613 {
7614 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
7615 test_array [0] = 0
7616
7617   ;
7618   return 0;
7619 }
7620 _ACEOF
7621 rm -f conftest.$ac_objext
7622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7623   (eval $ac_compile) 2>conftest.er1
7624   ac_status=$?
7625   grep -v '^ *+' conftest.er1 >conftest.err
7626   rm -f conftest.er1
7627   cat conftest.err >&5
7628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7629   (exit $ac_status); } &&
7630          { ac_try='test -z "$ac_c_werror_flag"
7631                          || test ! -s conftest.err'
7632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7633   (eval $ac_try) 2>&5
7634   ac_status=$?
7635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7636   (exit $ac_status); }; } &&
7637          { ac_try='test -s conftest.$ac_objext'
7638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7639   (eval $ac_try) 2>&5
7640   ac_status=$?
7641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7642   (exit $ac_status); }; }; then
7643   ac_lo=$ac_mid; break
7644 else
7645   echo "$as_me: failed program was:" >&5
7646 sed 's/^/| /' conftest.$ac_ext >&5
7647
7648 ac_hi=`expr '(' $ac_mid ')' - 1`
7649                        if test $ac_mid -le $ac_hi; then
7650                          ac_lo= ac_hi=
7651                          break
7652                        fi
7653                        ac_mid=`expr 2 '*' $ac_mid`
7654 fi
7655 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7656   done
7657 else
7658   echo "$as_me: failed program was:" >&5
7659 sed 's/^/| /' conftest.$ac_ext >&5
7660
7661 ac_lo= ac_hi=
7662 fi
7663 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7664 fi
7665 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7666 # Binary search between lo and hi bounds.
7667 while test "x$ac_lo" != "x$ac_hi"; do
7668   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7669   cat >conftest.$ac_ext <<_ACEOF
7670 /* confdefs.h.  */
7671 _ACEOF
7672 cat confdefs.h >>conftest.$ac_ext
7673 cat >>conftest.$ac_ext <<_ACEOF
7674 /* end confdefs.h.  */
7675 $ac_includes_default
7676 int
7677 main ()
7678 {
7679 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
7680 test_array [0] = 0
7681
7682   ;
7683   return 0;
7684 }
7685 _ACEOF
7686 rm -f conftest.$ac_objext
7687 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7688   (eval $ac_compile) 2>conftest.er1
7689   ac_status=$?
7690   grep -v '^ *+' conftest.er1 >conftest.err
7691   rm -f conftest.er1
7692   cat conftest.err >&5
7693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7694   (exit $ac_status); } &&
7695          { ac_try='test -z "$ac_c_werror_flag"
7696                          || test ! -s conftest.err'
7697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7698   (eval $ac_try) 2>&5
7699   ac_status=$?
7700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7701   (exit $ac_status); }; } &&
7702          { ac_try='test -s conftest.$ac_objext'
7703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7704   (eval $ac_try) 2>&5
7705   ac_status=$?
7706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7707   (exit $ac_status); }; }; then
7708   ac_hi=$ac_mid
7709 else
7710   echo "$as_me: failed program was:" >&5
7711 sed 's/^/| /' conftest.$ac_ext >&5
7712
7713 ac_lo=`expr '(' $ac_mid ')' + 1`
7714 fi
7715 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7716 done
7717 case $ac_lo in
7718 ?*) ac_cv_sizeof_long=$ac_lo;;
7719 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7720 See \`config.log' for more details." >&5
7721 echo "$as_me: error: cannot compute sizeof (long), 77
7722 See \`config.log' for more details." >&2;}
7723    { (exit 1); exit 1; }; } ;;
7724 esac
7725 else
7726   if test "$cross_compiling" = yes; then
7727   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7728 See \`config.log' for more details." >&5
7729 echo "$as_me: error: cannot run test program while cross compiling
7730 See \`config.log' for more details." >&2;}
7731    { (exit 1); exit 1; }; }
7732 else
7733   cat >conftest.$ac_ext <<_ACEOF
7734 /* confdefs.h.  */
7735 _ACEOF
7736 cat confdefs.h >>conftest.$ac_ext
7737 cat >>conftest.$ac_ext <<_ACEOF
7738 /* end confdefs.h.  */
7739 $ac_includes_default
7740 long longval () { return (long) (sizeof (long)); }
7741 unsigned long ulongval () { return (long) (sizeof (long)); }
7742 #include <stdio.h>
7743 #include <stdlib.h>
7744 int
7745 main ()
7746 {
7747
7748   FILE *f = fopen ("conftest.val", "w");
7749   if (! f)
7750     exit (1);
7751   if (((long) (sizeof (long))) < 0)
7752     {
7753       long i = longval ();
7754       if (i != ((long) (sizeof (long))))
7755         exit (1);
7756       fprintf (f, "%ld\n", i);
7757     }
7758   else
7759     {
7760       unsigned long i = ulongval ();
7761       if (i != ((long) (sizeof (long))))
7762         exit (1);
7763       fprintf (f, "%lu\n", i);
7764     }
7765   exit (ferror (f) || fclose (f) != 0);
7766
7767   ;
7768   return 0;
7769 }
7770 _ACEOF
7771 rm -f conftest$ac_exeext
7772 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7773   (eval $ac_link) 2>&5
7774   ac_status=$?
7775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7776   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7778   (eval $ac_try) 2>&5
7779   ac_status=$?
7780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7781   (exit $ac_status); }; }; then
7782   ac_cv_sizeof_long=`cat conftest.val`
7783 else
7784   echo "$as_me: program exited with status $ac_status" >&5
7785 echo "$as_me: failed program was:" >&5
7786 sed 's/^/| /' conftest.$ac_ext >&5
7787
7788 ( exit $ac_status )
7789 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7790 See \`config.log' for more details." >&5
7791 echo "$as_me: error: cannot compute sizeof (long), 77
7792 See \`config.log' for more details." >&2;}
7793    { (exit 1); exit 1; }; }
7794 fi
7795 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7796 fi
7797 fi
7798 rm -f conftest.val
7799 else
7800   ac_cv_sizeof_long=0
7801 fi
7802 fi
7803 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7804 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
7805 cat >>confdefs.h <<_ACEOF
7806 #define SIZEOF_LONG $ac_cv_sizeof_long
7807 _ACEOF
7808
7809
7810    echo "$as_me:$LINENO: checking for void*" >&5
7811 echo $ECHO_N "checking for void*... $ECHO_C" >&6
7812 if test "${ac_cv_type_voidp+set}" = set; then
7813   echo $ECHO_N "(cached) $ECHO_C" >&6
7814 else
7815   cat >conftest.$ac_ext <<_ACEOF
7816 /* confdefs.h.  */
7817 _ACEOF
7818 cat confdefs.h >>conftest.$ac_ext
7819 cat >>conftest.$ac_ext <<_ACEOF
7820 /* end confdefs.h.  */
7821 $ac_includes_default
7822 int
7823 main ()
7824 {
7825 if ((void* *) 0)
7826   return 0;
7827 if (sizeof (void*))
7828   return 0;
7829   ;
7830   return 0;
7831 }
7832 _ACEOF
7833 rm -f conftest.$ac_objext
7834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7835   (eval $ac_compile) 2>conftest.er1
7836   ac_status=$?
7837   grep -v '^ *+' conftest.er1 >conftest.err
7838   rm -f conftest.er1
7839   cat conftest.err >&5
7840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7841   (exit $ac_status); } &&
7842          { ac_try='test -z "$ac_c_werror_flag"
7843                          || test ! -s conftest.err'
7844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7845   (eval $ac_try) 2>&5
7846   ac_status=$?
7847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7848   (exit $ac_status); }; } &&
7849          { ac_try='test -s conftest.$ac_objext'
7850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7851   (eval $ac_try) 2>&5
7852   ac_status=$?
7853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7854   (exit $ac_status); }; }; then
7855   ac_cv_type_voidp=yes
7856 else
7857   echo "$as_me: failed program was:" >&5
7858 sed 's/^/| /' conftest.$ac_ext >&5
7859
7860 ac_cv_type_voidp=no
7861 fi
7862 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7863 fi
7864 echo "$as_me:$LINENO: result: $ac_cv_type_voidp" >&5
7865 echo "${ECHO_T}$ac_cv_type_voidp" >&6
7866
7867 echo "$as_me:$LINENO: checking size of void*" >&5
7868 echo $ECHO_N "checking size of void*... $ECHO_C" >&6
7869 if test "${ac_cv_sizeof_voidp+set}" = set; then
7870   echo $ECHO_N "(cached) $ECHO_C" >&6
7871 else
7872   if test "$ac_cv_type_voidp" = yes; then
7873   # The cast to unsigned long works around a bug in the HP C Compiler
7874   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7875   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7876   # This bug is HP SR number 8606223364.
7877   if test "$cross_compiling" = yes; then
7878   # Depending upon the size, compute the lo and hi bounds.
7879 cat >conftest.$ac_ext <<_ACEOF
7880 /* confdefs.h.  */
7881 _ACEOF
7882 cat confdefs.h >>conftest.$ac_ext
7883 cat >>conftest.$ac_ext <<_ACEOF
7884 /* end confdefs.h.  */
7885 $ac_includes_default
7886 int
7887 main ()
7888 {
7889 static int test_array [1 - 2 * !(((long) (sizeof (void*))) >= 0)];
7890 test_array [0] = 0
7891
7892   ;
7893   return 0;
7894 }
7895 _ACEOF
7896 rm -f conftest.$ac_objext
7897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7898   (eval $ac_compile) 2>conftest.er1
7899   ac_status=$?
7900   grep -v '^ *+' conftest.er1 >conftest.err
7901   rm -f conftest.er1
7902   cat conftest.err >&5
7903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7904   (exit $ac_status); } &&
7905          { ac_try='test -z "$ac_c_werror_flag"
7906                          || test ! -s conftest.err'
7907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7908   (eval $ac_try) 2>&5
7909   ac_status=$?
7910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7911   (exit $ac_status); }; } &&
7912          { ac_try='test -s conftest.$ac_objext'
7913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7914   (eval $ac_try) 2>&5
7915   ac_status=$?
7916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7917   (exit $ac_status); }; }; then
7918   ac_lo=0 ac_mid=0
7919   while :; do
7920     cat >conftest.$ac_ext <<_ACEOF
7921 /* confdefs.h.  */
7922 _ACEOF
7923 cat confdefs.h >>conftest.$ac_ext
7924 cat >>conftest.$ac_ext <<_ACEOF
7925 /* end confdefs.h.  */
7926 $ac_includes_default
7927 int
7928 main ()
7929 {
7930 static int test_array [1 - 2 * !(((long) (sizeof (void*))) <= $ac_mid)];
7931 test_array [0] = 0
7932
7933   ;
7934   return 0;
7935 }
7936 _ACEOF
7937 rm -f conftest.$ac_objext
7938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7939   (eval $ac_compile) 2>conftest.er1
7940   ac_status=$?
7941   grep -v '^ *+' conftest.er1 >conftest.err
7942   rm -f conftest.er1
7943   cat conftest.err >&5
7944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7945   (exit $ac_status); } &&
7946          { ac_try='test -z "$ac_c_werror_flag"
7947                          || test ! -s conftest.err'
7948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7949   (eval $ac_try) 2>&5
7950   ac_status=$?
7951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7952   (exit $ac_status); }; } &&
7953          { ac_try='test -s conftest.$ac_objext'
7954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7955   (eval $ac_try) 2>&5
7956   ac_status=$?
7957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7958   (exit $ac_status); }; }; then
7959   ac_hi=$ac_mid; break
7960 else
7961   echo "$as_me: failed program was:" >&5
7962 sed 's/^/| /' conftest.$ac_ext >&5
7963
7964 ac_lo=`expr $ac_mid + 1`
7965                     if test $ac_lo -le $ac_mid; then
7966                       ac_lo= ac_hi=
7967                       break
7968                     fi
7969                     ac_mid=`expr 2 '*' $ac_mid + 1`
7970 fi
7971 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7972   done
7973 else
7974   echo "$as_me: failed program was:" >&5
7975 sed 's/^/| /' conftest.$ac_ext >&5
7976
7977 cat >conftest.$ac_ext <<_ACEOF
7978 /* confdefs.h.  */
7979 _ACEOF
7980 cat confdefs.h >>conftest.$ac_ext
7981 cat >>conftest.$ac_ext <<_ACEOF
7982 /* end confdefs.h.  */
7983 $ac_includes_default
7984 int
7985 main ()
7986 {
7987 static int test_array [1 - 2 * !(((long) (sizeof (void*))) < 0)];
7988 test_array [0] = 0
7989
7990   ;
7991   return 0;
7992 }
7993 _ACEOF
7994 rm -f conftest.$ac_objext
7995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7996   (eval $ac_compile) 2>conftest.er1
7997   ac_status=$?
7998   grep -v '^ *+' conftest.er1 >conftest.err
7999   rm -f conftest.er1
8000   cat conftest.err >&5
8001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8002   (exit $ac_status); } &&
8003          { ac_try='test -z "$ac_c_werror_flag"
8004                          || test ! -s conftest.err'
8005   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8006   (eval $ac_try) 2>&5
8007   ac_status=$?
8008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8009   (exit $ac_status); }; } &&
8010          { ac_try='test -s conftest.$ac_objext'
8011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8012   (eval $ac_try) 2>&5
8013   ac_status=$?
8014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8015   (exit $ac_status); }; }; then
8016   ac_hi=-1 ac_mid=-1
8017   while :; do
8018     cat >conftest.$ac_ext <<_ACEOF
8019 /* confdefs.h.  */
8020 _ACEOF
8021 cat confdefs.h >>conftest.$ac_ext
8022 cat >>conftest.$ac_ext <<_ACEOF
8023 /* end confdefs.h.  */
8024 $ac_includes_default
8025 int
8026 main ()
8027 {
8028 static int test_array [1 - 2 * !(((long) (sizeof (void*))) >= $ac_mid)];
8029 test_array [0] = 0
8030
8031   ;
8032   return 0;
8033 }
8034 _ACEOF
8035 rm -f conftest.$ac_objext
8036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8037   (eval $ac_compile) 2>conftest.er1
8038   ac_status=$?
8039   grep -v '^ *+' conftest.er1 >conftest.err
8040   rm -f conftest.er1
8041   cat conftest.err >&5
8042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8043   (exit $ac_status); } &&
8044          { ac_try='test -z "$ac_c_werror_flag"
8045                          || test ! -s conftest.err'
8046   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8047   (eval $ac_try) 2>&5
8048   ac_status=$?
8049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8050   (exit $ac_status); }; } &&
8051          { ac_try='test -s conftest.$ac_objext'
8052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8053   (eval $ac_try) 2>&5
8054   ac_status=$?
8055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8056   (exit $ac_status); }; }; then
8057   ac_lo=$ac_mid; break
8058 else
8059   echo "$as_me: failed program was:" >&5
8060 sed 's/^/| /' conftest.$ac_ext >&5
8061
8062 ac_hi=`expr '(' $ac_mid ')' - 1`
8063                        if test $ac_mid -le $ac_hi; then
8064                          ac_lo= ac_hi=
8065                          break
8066                        fi
8067                        ac_mid=`expr 2 '*' $ac_mid`
8068 fi
8069 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8070   done
8071 else
8072   echo "$as_me: failed program was:" >&5
8073 sed 's/^/| /' conftest.$ac_ext >&5
8074
8075 ac_lo= ac_hi=
8076 fi
8077 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8078 fi
8079 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8080 # Binary search between lo and hi bounds.
8081 while test "x$ac_lo" != "x$ac_hi"; do
8082   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8083   cat >conftest.$ac_ext <<_ACEOF
8084 /* confdefs.h.  */
8085 _ACEOF
8086 cat confdefs.h >>conftest.$ac_ext
8087 cat >>conftest.$ac_ext <<_ACEOF
8088 /* end confdefs.h.  */
8089 $ac_includes_default
8090 int
8091 main ()
8092 {
8093 static int test_array [1 - 2 * !(((long) (sizeof (void*))) <= $ac_mid)];
8094 test_array [0] = 0
8095
8096   ;
8097   return 0;
8098 }
8099 _ACEOF
8100 rm -f conftest.$ac_objext
8101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8102   (eval $ac_compile) 2>conftest.er1
8103   ac_status=$?
8104   grep -v '^ *+' conftest.er1 >conftest.err
8105   rm -f conftest.er1
8106   cat conftest.err >&5
8107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8108   (exit $ac_status); } &&
8109          { ac_try='test -z "$ac_c_werror_flag"
8110                          || test ! -s conftest.err'
8111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8112   (eval $ac_try) 2>&5
8113   ac_status=$?
8114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8115   (exit $ac_status); }; } &&
8116          { ac_try='test -s conftest.$ac_objext'
8117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8118   (eval $ac_try) 2>&5
8119   ac_status=$?
8120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8121   (exit $ac_status); }; }; then
8122   ac_hi=$ac_mid
8123 else
8124   echo "$as_me: failed program was:" >&5
8125 sed 's/^/| /' conftest.$ac_ext >&5
8126
8127 ac_lo=`expr '(' $ac_mid ')' + 1`
8128 fi
8129 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8130 done
8131 case $ac_lo in
8132 ?*) ac_cv_sizeof_voidp=$ac_lo;;
8133 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void*), 77
8134 See \`config.log' for more details." >&5
8135 echo "$as_me: error: cannot compute sizeof (void*), 77
8136 See \`config.log' for more details." >&2;}
8137    { (exit 1); exit 1; }; } ;;
8138 esac
8139 else
8140   if test "$cross_compiling" = yes; then
8141   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8142 See \`config.log' for more details." >&5
8143 echo "$as_me: error: cannot run test program while cross compiling
8144 See \`config.log' for more details." >&2;}
8145    { (exit 1); exit 1; }; }
8146 else
8147   cat >conftest.$ac_ext <<_ACEOF
8148 /* confdefs.h.  */
8149 _ACEOF
8150 cat confdefs.h >>conftest.$ac_ext
8151 cat >>conftest.$ac_ext <<_ACEOF
8152 /* end confdefs.h.  */
8153 $ac_includes_default
8154 long longval () { return (long) (sizeof (void*)); }
8155 unsigned long ulongval () { return (long) (sizeof (void*)); }
8156 #include <stdio.h>
8157 #include <stdlib.h>
8158 int
8159 main ()
8160 {
8161
8162   FILE *f = fopen ("conftest.val", "w");
8163   if (! f)
8164     exit (1);
8165   if (((long) (sizeof (void*))) < 0)
8166     {
8167       long i = longval ();
8168       if (i != ((long) (sizeof (void*))))
8169         exit (1);
8170       fprintf (f, "%ld\n", i);
8171     }
8172   else
8173     {
8174       unsigned long i = ulongval ();
8175       if (i != ((long) (sizeof (void*))))
8176         exit (1);
8177       fprintf (f, "%lu\n", i);
8178     }
8179   exit (ferror (f) || fclose (f) != 0);
8180
8181   ;
8182   return 0;
8183 }
8184 _ACEOF
8185 rm -f conftest$ac_exeext
8186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8187   (eval $ac_link) 2>&5
8188   ac_status=$?
8189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8190   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8192   (eval $ac_try) 2>&5
8193   ac_status=$?
8194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8195   (exit $ac_status); }; }; then
8196   ac_cv_sizeof_voidp=`cat conftest.val`
8197 else
8198   echo "$as_me: program exited with status $ac_status" >&5
8199 echo "$as_me: failed program was:" >&5
8200 sed 's/^/| /' conftest.$ac_ext >&5
8201
8202 ( exit $ac_status )
8203 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void*), 77
8204 See \`config.log' for more details." >&5
8205 echo "$as_me: error: cannot compute sizeof (void*), 77
8206 See \`config.log' for more details." >&2;}
8207    { (exit 1); exit 1; }; }
8208 fi
8209 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8210 fi
8211 fi
8212 rm -f conftest.val
8213 else
8214   ac_cv_sizeof_voidp=0
8215 fi
8216 fi
8217 echo "$as_me:$LINENO: result: $ac_cv_sizeof_voidp" >&5
8218 echo "${ECHO_T}$ac_cv_sizeof_voidp" >&6
8219 cat >>confdefs.h <<_ACEOF
8220 #define SIZEOF_VOIDP $ac_cv_sizeof_voidp
8221 _ACEOF
8222
8223
8224    ac_cv_char_data_model=""
8225    ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_char"
8226    ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_short"
8227    ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_int"
8228    ac_cv_long_data_model=""
8229    ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_int"
8230    ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_long"
8231    ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_voidp"
8232    echo "$as_me:$LINENO: checking data model" >&5
8233 echo $ECHO_N "checking data model... $ECHO_C" >&6
8234    case "$ac_cv_char_data_model/$ac_cv_long_data_model" in
8235     122/242)     ac_cv_data_model="IP16"  ; n="standard 16bit machine" ;;
8236     122/244)     ac_cv_data_model="LP32"  ; n="standard 32bit machine" ;;
8237     122/*)       ac_cv_data_model="i16"   ; n="unusual int16 model" ;;
8238     124/444)     ac_cv_data_model="ILP32" ; n="standard 32bit unixish" ;;
8239     124/488)     ac_cv_data_model="LP64"  ; n="standard 64bit unixish" ;;
8240     124/448)     ac_cv_data_model="LLP64" ; n="unusual 64bit unixish" ;;
8241     124/*)       ac_cv_data_model="i32"   ; n="unusual int32 model" ;;
8242     128/888)     ac_cv_data_model="ILP64" ; n="unusual 64bit numeric" ;;
8243     128/*)       ac_cv_data_model="i64"   ; n="unusual int64 model" ;;
8244     222/*2)      ac_cv_data_model="DSP16" ; n="strict 16bit dsptype" ;;
8245     333/*3)      ac_cv_data_model="DSP24" ; n="strict 24bit dsptype" ;;
8246     444/*4)      ac_cv_data_model="DSP32" ; n="strict 32bit dsptype" ;;
8247     666/*6)      ac_cv_data_model="DSP48" ; n="strict 48bit dsptype" ;;
8248     888/*8)      ac_cv_data_model="DSP64" ; n="strict 64bit dsptype" ;;
8249     222/*|333/*|444/*|666/*|888/*) :
8250                  ac_cv_data_model="iDSP"  ; n="unusual dsptype" ;;
8251      *)          ac_cv_data_model="none"  ; n="very unusual model" ;;
8252    esac
8253    echo "$as_me:$LINENO: result: $ac_cv_data_model ($ac_cv_long_data_model, $n)" >&5
8254 echo "${ECHO_T}$ac_cv_data_model ($ac_cv_long_data_model, $n)" >&6
8255
8256 fi
8257
8258 if test "_$ac_cv_header_stdint_x" != "_" ; then
8259    ac_cv_header_stdint="$ac_cv_header_stdint_x"
8260 elif  test "_$ac_cv_header_stdint_o" != "_" ; then
8261    ac_cv_header_stdint="$ac_cv_header_stdint_o"
8262 elif  test "_$ac_cv_header_stdint_u" != "_" ; then
8263    ac_cv_header_stdint="$ac_cv_header_stdint_u"
8264 else
8265    ac_cv_header_stdint="stddef.h"
8266 fi
8267
8268 echo "$as_me:$LINENO: checking for extra inttypes in chosen header" >&5
8269 echo $ECHO_N "checking for extra inttypes in chosen header... $ECHO_C" >&6
8270 echo "$as_me:$LINENO: result: ($ac_cv_header_stdint)" >&5
8271 echo "${ECHO_T}($ac_cv_header_stdint)" >&6
8272 unset ac_cv_type_int_least32_t
8273 unset ac_cv_type_int_fast32_t
8274 echo "$as_me:$LINENO: checking for int_least32_t" >&5
8275 echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6
8276 if test "${ac_cv_type_int_least32_t+set}" = set; then
8277   echo $ECHO_N "(cached) $ECHO_C" >&6
8278 else
8279   cat >conftest.$ac_ext <<_ACEOF
8280 /* confdefs.h.  */
8281 _ACEOF
8282 cat confdefs.h >>conftest.$ac_ext
8283 cat >>conftest.$ac_ext <<_ACEOF
8284 /* end confdefs.h.  */
8285 #include <$ac_cv_header_stdint>
8286
8287 int
8288 main ()
8289 {
8290 if ((int_least32_t *) 0)
8291   return 0;
8292 if (sizeof (int_least32_t))
8293   return 0;
8294   ;
8295   return 0;
8296 }
8297 _ACEOF
8298 rm -f conftest.$ac_objext
8299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8300   (eval $ac_compile) 2>conftest.er1
8301   ac_status=$?
8302   grep -v '^ *+' conftest.er1 >conftest.err
8303   rm -f conftest.er1
8304   cat conftest.err >&5
8305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8306   (exit $ac_status); } &&
8307          { ac_try='test -z "$ac_c_werror_flag"
8308                          || test ! -s conftest.err'
8309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8310   (eval $ac_try) 2>&5
8311   ac_status=$?
8312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8313   (exit $ac_status); }; } &&
8314          { ac_try='test -s conftest.$ac_objext'
8315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8316   (eval $ac_try) 2>&5
8317   ac_status=$?
8318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8319   (exit $ac_status); }; }; then
8320   ac_cv_type_int_least32_t=yes
8321 else
8322   echo "$as_me: failed program was:" >&5
8323 sed 's/^/| /' conftest.$ac_ext >&5
8324
8325 ac_cv_type_int_least32_t=no
8326 fi
8327 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8328 fi
8329 echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5
8330 echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6
8331
8332 echo "$as_me:$LINENO: checking for int_fast32_t" >&5
8333 echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6
8334 if test "${ac_cv_type_int_fast32_t+set}" = set; then
8335   echo $ECHO_N "(cached) $ECHO_C" >&6
8336 else
8337   cat >conftest.$ac_ext <<_ACEOF
8338 /* confdefs.h.  */
8339 _ACEOF
8340 cat confdefs.h >>conftest.$ac_ext
8341 cat >>conftest.$ac_ext <<_ACEOF
8342 /* end confdefs.h.  */
8343 #include<$ac_cv_header_stdint>
8344
8345 int
8346 main ()
8347 {
8348 if ((int_fast32_t *) 0)
8349   return 0;
8350 if (sizeof (int_fast32_t))
8351   return 0;
8352   ;
8353   return 0;
8354 }
8355 _ACEOF
8356 rm -f conftest.$ac_objext
8357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8358   (eval $ac_compile) 2>conftest.er1
8359   ac_status=$?
8360   grep -v '^ *+' conftest.er1 >conftest.err
8361   rm -f conftest.er1
8362   cat conftest.err >&5
8363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8364   (exit $ac_status); } &&
8365          { ac_try='test -z "$ac_c_werror_flag"
8366                          || test ! -s conftest.err'
8367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8368   (eval $ac_try) 2>&5
8369   ac_status=$?
8370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8371   (exit $ac_status); }; } &&
8372          { ac_try='test -s conftest.$ac_objext'
8373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8374   (eval $ac_try) 2>&5
8375   ac_status=$?
8376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8377   (exit $ac_status); }; }; then
8378   ac_cv_type_int_fast32_t=yes
8379 else
8380   echo "$as_me: failed program was:" >&5
8381 sed 's/^/| /' conftest.$ac_ext >&5
8382
8383 ac_cv_type_int_fast32_t=no
8384 fi
8385 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8386 fi
8387 echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5
8388 echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6
8389
8390 echo "$as_me:$LINENO: checking for intmax_t" >&5
8391 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
8392 if test "${ac_cv_type_intmax_t+set}" = set; then
8393   echo $ECHO_N "(cached) $ECHO_C" >&6
8394 else
8395   cat >conftest.$ac_ext <<_ACEOF
8396 /* confdefs.h.  */
8397 _ACEOF
8398 cat confdefs.h >>conftest.$ac_ext
8399 cat >>conftest.$ac_ext <<_ACEOF
8400 /* end confdefs.h.  */
8401 #include <$ac_cv_header_stdint>
8402
8403 int
8404 main ()
8405 {
8406 if ((intmax_t *) 0)
8407   return 0;
8408 if (sizeof (intmax_t))
8409   return 0;
8410   ;
8411   return 0;
8412 }
8413 _ACEOF
8414 rm -f conftest.$ac_objext
8415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8416   (eval $ac_compile) 2>conftest.er1
8417   ac_status=$?
8418   grep -v '^ *+' conftest.er1 >conftest.err
8419   rm -f conftest.er1
8420   cat conftest.err >&5
8421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8422   (exit $ac_status); } &&
8423          { ac_try='test -z "$ac_c_werror_flag"
8424                          || test ! -s conftest.err'
8425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8426   (eval $ac_try) 2>&5
8427   ac_status=$?
8428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8429   (exit $ac_status); }; } &&
8430          { ac_try='test -s conftest.$ac_objext'
8431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8432   (eval $ac_try) 2>&5
8433   ac_status=$?
8434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8435   (exit $ac_status); }; }; then
8436   ac_cv_type_intmax_t=yes
8437 else
8438   echo "$as_me: failed program was:" >&5
8439 sed 's/^/| /' conftest.$ac_ext >&5
8440
8441 ac_cv_type_intmax_t=no
8442 fi
8443 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8444 fi
8445 echo "$as_me:$LINENO: result: $ac_cv_type_intmax_t" >&5
8446 echo "${ECHO_T}$ac_cv_type_intmax_t" >&6
8447
8448
8449 fi # shortcircut to system "stdint.h"
8450 # ------------------ PREPARE VARIABLES ------------------------------
8451 if test "$GCC" = "yes" ; then
8452 ac_cv_stdint_message="using gnu compiler "`$CC --version | head -1`
8453 else
8454 ac_cv_stdint_message="using $CC"
8455 fi
8456
8457 echo "$as_me:$LINENO: result: make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&5
8458 echo "${ECHO_T}make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&6
8459
8460 # ----------------- DONE inttypes.h checks START header -------------
8461           ac_config_commands="$ac_config_commands $ac_stdint_h"
8462
8463
8464
8465 for ac_prog in ar
8466 do
8467   # Extract the first word of "$ac_prog", so it can be a program name with args.
8468 set dummy $ac_prog; ac_word=$2
8469 echo "$as_me:$LINENO: checking for $ac_word" >&5
8470 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8471 if test "${ac_cv_path_AR+set}" = set; then
8472   echo $ECHO_N "(cached) $ECHO_C" >&6
8473 else
8474   case $AR in
8475   [\\/]* | ?:[\\/]*)
8476   ac_cv_path_AR="$AR" # Let the user override the test with a path.
8477   ;;
8478   *)
8479   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8480 for as_dir in $LOCSYSPATH
8481 do
8482   IFS=$as_save_IFS
8483   test -z "$as_dir" && as_dir=.
8484   for ac_exec_ext in '' $ac_executable_extensions; do
8485   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8486     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
8487     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8488     break 2
8489   fi
8490 done
8491 done
8492
8493   ;;
8494 esac
8495 fi
8496 AR=$ac_cv_path_AR
8497
8498 if test -n "$AR"; then
8499   echo "$as_me:$LINENO: result: $AR" >&5
8500 echo "${ECHO_T}$AR" >&6
8501 else
8502   echo "$as_me:$LINENO: result: no" >&5
8503 echo "${ECHO_T}no" >&6
8504 fi
8505
8506   test -n "$AR" && break
8507 done
8508
8509
8510 for ac_prog in gawk mawk nawk awk
8511 do
8512   # Extract the first word of "$ac_prog", so it can be a program name with args.
8513 set dummy $ac_prog; ac_word=$2
8514 echo "$as_me:$LINENO: checking for $ac_word" >&5
8515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8516 if test "${ac_cv_prog_AWK+set}" = set; then
8517   echo $ECHO_N "(cached) $ECHO_C" >&6
8518 else
8519   if test -n "$AWK"; then
8520   ac_cv_prog_AWK="$AWK" # Let the user override the test.
8521 else
8522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8523 for as_dir in $PATH
8524 do
8525   IFS=$as_save_IFS
8526   test -z "$as_dir" && as_dir=.
8527   for ac_exec_ext in '' $ac_executable_extensions; do
8528   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8529     ac_cv_prog_AWK="$ac_prog"
8530     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8531     break 2
8532   fi
8533 done
8534 done
8535
8536 fi
8537 fi
8538 AWK=$ac_cv_prog_AWK
8539 if test -n "$AWK"; then
8540   echo "$as_me:$LINENO: result: $AWK" >&5
8541 echo "${ECHO_T}$AWK" >&6
8542 else
8543   echo "$as_me:$LINENO: result: no" >&5
8544 echo "${ECHO_T}no" >&6
8545 fi
8546
8547   test -n "$AWK" && break
8548 done
8549
8550
8551
8552         echo "$as_me:$LINENO: checking for $AWK command line variable assignment" >&5
8553 echo $ECHO_N "checking for $AWK command line variable assignment... $ECHO_C" >&6
8554 if test "${amanda_cv_awk_var_assignment+set}" = set; then
8555   echo $ECHO_N "(cached) $ECHO_C" >&6
8556 else
8557
8558                 echo 'BEGIN{print i; exit}' > conftest.awk
8559                 result=`$AWK -f conftest.awk i=xx | wc -c`
8560                 if test "$result" -le 1; then
8561                     result=`$AWK -f conftest.awk -v i=xx | wc -c`
8562                     if test "$result" -le 1; then
8563                         amanda_cv_awk_var_assignment=no
8564                     else
8565                         amanda_cv_awk_var_assignment="yes with -v"
8566                     fi
8567                 else
8568                     amanda_cv_awk_var_assignment="yes"
8569                 fi
8570                 rm -fr conftest.awk
8571
8572
8573 fi
8574 echo "$as_me:$LINENO: result: $amanda_cv_awk_var_assignment" >&5
8575 echo "${ECHO_T}$amanda_cv_awk_var_assignment" >&6
8576         AWK_VAR_ASSIGNMENT_OPT=
8577         case "$amanda_cv_awk_var_assignment" in
8578             no)
8579                 HAVE_AWK_WITH_VAR=no
8580                 ;;
8581             yes)
8582                 HAVE_AWK_WITH_VAR=yes
8583                 ;;
8584             "yes with -v")
8585                 HAVE_AWK_WITH_VAR=yes
8586                 AWK_VAR_ASSIGNMENT_OPT=-v
8587                 ;;
8588         esac
8589
8590
8591
8592 if test "x$amanda_cv_awk_var_assignment" = xno; then
8593     NO_AMPLOT_MODE=true
8594     { echo "$as_me:$LINENO: WARNING: *** Your $awk cannot do command line variable assignment.  Amplot will not be installed." >&5
8595 echo "$as_me: WARNING: *** Your $awk cannot do command line variable assignment.  Amplot will not be installed." >&2;}
8596 fi
8597
8598 for ac_prog in 'bison -y' byacc
8599 do
8600   # Extract the first word of "$ac_prog", so it can be a program name with args.
8601 set dummy $ac_prog; ac_word=$2
8602 echo "$as_me:$LINENO: checking for $ac_word" >&5
8603 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8604 if test "${ac_cv_prog_YACC+set}" = set; then
8605   echo $ECHO_N "(cached) $ECHO_C" >&6
8606 else
8607   if test -n "$YACC"; then
8608   ac_cv_prog_YACC="$YACC" # Let the user override the test.
8609 else
8610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8611 for as_dir in $PATH
8612 do
8613   IFS=$as_save_IFS
8614   test -z "$as_dir" && as_dir=.
8615   for ac_exec_ext in '' $ac_executable_extensions; do
8616   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8617     ac_cv_prog_YACC="$ac_prog"
8618     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8619     break 2
8620   fi
8621 done
8622 done
8623
8624 fi
8625 fi
8626 YACC=$ac_cv_prog_YACC
8627 if test -n "$YACC"; then
8628   echo "$as_me:$LINENO: result: $YACC" >&5
8629 echo "${ECHO_T}$YACC" >&6
8630 else
8631   echo "$as_me:$LINENO: result: no" >&5
8632 echo "${ECHO_T}no" >&6
8633 fi
8634
8635   test -n "$YACC" && break
8636 done
8637 test -n "$YACC" || YACC="yacc"
8638
8639 for ac_prog in cat
8640 do
8641   # Extract the first word of "$ac_prog", so it can be a program name with args.
8642 set dummy $ac_prog; ac_word=$2
8643 echo "$as_me:$LINENO: checking for $ac_word" >&5
8644 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8645 if test "${ac_cv_path_CAT+set}" = set; then
8646   echo $ECHO_N "(cached) $ECHO_C" >&6
8647 else
8648   case $CAT in
8649   [\\/]* | ?:[\\/]*)
8650   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
8651   ;;
8652   *)
8653   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8654 for as_dir in $LOCSYSPATH
8655 do
8656   IFS=$as_save_IFS
8657   test -z "$as_dir" && as_dir=.
8658   for ac_exec_ext in '' $ac_executable_extensions; do
8659   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8660     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
8661     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8662     break 2
8663   fi
8664 done
8665 done
8666
8667   ;;
8668 esac
8669 fi
8670 CAT=$ac_cv_path_CAT
8671
8672 if test -n "$CAT"; then
8673   echo "$as_me:$LINENO: result: $CAT" >&5
8674 echo "${ECHO_T}$CAT" >&6
8675 else
8676   echo "$as_me:$LINENO: result: no" >&5
8677 echo "${ECHO_T}no" >&6
8678 fi
8679
8680   test -n "$CAT" && break
8681 done
8682
8683 if test -z "$CAT"; then
8684     CAT=cat
8685 fi
8686 for ac_prog in compress
8687 do
8688   # Extract the first word of "$ac_prog", so it can be a program name with args.
8689 set dummy $ac_prog; ac_word=$2
8690 echo "$as_me:$LINENO: checking for $ac_word" >&5
8691 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8692 if test "${ac_cv_path_COMPRESS+set}" = set; then
8693   echo $ECHO_N "(cached) $ECHO_C" >&6
8694 else
8695   case $COMPRESS in
8696   [\\/]* | ?:[\\/]*)
8697   ac_cv_path_COMPRESS="$COMPRESS" # Let the user override the test with a path.
8698   ;;
8699   *)
8700   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8701 for as_dir in $LOCSYSPATH
8702 do
8703   IFS=$as_save_IFS
8704   test -z "$as_dir" && as_dir=.
8705   for ac_exec_ext in '' $ac_executable_extensions; do
8706   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8707     ac_cv_path_COMPRESS="$as_dir/$ac_word$ac_exec_ext"
8708     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8709     break 2
8710   fi
8711 done
8712 done
8713
8714   ;;
8715 esac
8716 fi
8717 COMPRESS=$ac_cv_path_COMPRESS
8718
8719 if test -n "$COMPRESS"; then
8720   echo "$as_me:$LINENO: result: $COMPRESS" >&5
8721 echo "${ECHO_T}$COMPRESS" >&6
8722 else
8723   echo "$as_me:$LINENO: result: no" >&5
8724 echo "${ECHO_T}no" >&6
8725 fi
8726
8727   test -n "$COMPRESS" && break
8728 done
8729
8730 for ac_prog in dd
8731 do
8732   # Extract the first word of "$ac_prog", so it can be a program name with args.
8733 set dummy $ac_prog; ac_word=$2
8734 echo "$as_me:$LINENO: checking for $ac_word" >&5
8735 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8736 if test "${ac_cv_path_DD+set}" = set; then
8737   echo $ECHO_N "(cached) $ECHO_C" >&6
8738 else
8739   case $DD in
8740   [\\/]* | ?:[\\/]*)
8741   ac_cv_path_DD="$DD" # Let the user override the test with a path.
8742   ;;
8743   *)
8744   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8745 for as_dir in $LOCSYSPATH
8746 do
8747   IFS=$as_save_IFS
8748   test -z "$as_dir" && as_dir=.
8749   for ac_exec_ext in '' $ac_executable_extensions; do
8750   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8751     ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
8752     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8753     break 2
8754   fi
8755 done
8756 done
8757
8758   ;;
8759 esac
8760 fi
8761 DD=$ac_cv_path_DD
8762
8763 if test -n "$DD"; then
8764   echo "$as_me:$LINENO: result: $DD" >&5
8765 echo "${ECHO_T}$DD" >&6
8766 else
8767   echo "$as_me:$LINENO: result: no" >&5
8768 echo "${ECHO_T}no" >&6
8769 fi
8770
8771   test -n "$DD" && break
8772 done
8773
8774 for ac_prog in egrep
8775 do
8776   # Extract the first word of "$ac_prog", so it can be a program name with args.
8777 set dummy $ac_prog; ac_word=$2
8778 echo "$as_me:$LINENO: checking for $ac_word" >&5
8779 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8780 if test "${ac_cv_path_EGREP+set}" = set; then
8781   echo $ECHO_N "(cached) $ECHO_C" >&6
8782 else
8783   case $EGREP in
8784   [\\/]* | ?:[\\/]*)
8785   ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
8786   ;;
8787   *)
8788   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8789 for as_dir in $LOCSYSPATH
8790 do
8791   IFS=$as_save_IFS
8792   test -z "$as_dir" && as_dir=.
8793   for ac_exec_ext in '' $ac_executable_extensions; do
8794   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8795     ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext"
8796     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8797     break 2
8798   fi
8799 done
8800 done
8801
8802   ;;
8803 esac
8804 fi
8805 EGREP=$ac_cv_path_EGREP
8806
8807 if test -n "$EGREP"; then
8808   echo "$as_me:$LINENO: result: $EGREP" >&5
8809 echo "${ECHO_T}$EGREP" >&6
8810 else
8811   echo "$as_me:$LINENO: result: no" >&5
8812 echo "${ECHO_T}no" >&6
8813 fi
8814
8815   test -n "$EGREP" && break
8816 done
8817
8818 for ac_prog in getconf
8819 do
8820   # Extract the first word of "$ac_prog", so it can be a program name with args.
8821 set dummy $ac_prog; ac_word=$2
8822 echo "$as_me:$LINENO: checking for $ac_word" >&5
8823 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8824 if test "${ac_cv_path_GETCONF+set}" = set; then
8825   echo $ECHO_N "(cached) $ECHO_C" >&6
8826 else
8827   case $GETCONF in
8828   [\\/]* | ?:[\\/]*)
8829   ac_cv_path_GETCONF="$GETCONF" # Let the user override the test with a path.
8830   ;;
8831   *)
8832   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8833 for as_dir in $SYSPATH
8834 do
8835   IFS=$as_save_IFS
8836   test -z "$as_dir" && as_dir=.
8837   for ac_exec_ext in '' $ac_executable_extensions; do
8838   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8839     ac_cv_path_GETCONF="$as_dir/$ac_word$ac_exec_ext"
8840     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8841     break 2
8842   fi
8843 done
8844 done
8845
8846   ;;
8847 esac
8848 fi
8849 GETCONF=$ac_cv_path_GETCONF
8850
8851 if test -n "$GETCONF"; then
8852   echo "$as_me:$LINENO: result: $GETCONF" >&5
8853 echo "${ECHO_T}$GETCONF" >&6
8854 else
8855   echo "$as_me:$LINENO: result: no" >&5
8856 echo "${ECHO_T}no" >&6
8857 fi
8858
8859   test -n "$GETCONF" && break
8860 done
8861
8862
8863 for ac_prog in gnuplot
8864 do
8865   # Extract the first word of "$ac_prog", so it can be a program name with args.
8866 set dummy $ac_prog; ac_word=$2
8867 echo "$as_me:$LINENO: checking for $ac_word" >&5
8868 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8869 if test "${ac_cv_path_GNUPLOT+set}" = set; then
8870   echo $ECHO_N "(cached) $ECHO_C" >&6
8871 else
8872   case $GNUPLOT in
8873   [\\/]* | ?:[\\/]*)
8874   ac_cv_path_GNUPLOT="$GNUPLOT" # Let the user override the test with a path.
8875   ;;
8876   *)
8877   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8878 for as_dir in $LOCSYSPATH
8879 do
8880   IFS=$as_save_IFS
8881   test -z "$as_dir" && as_dir=.
8882   for ac_exec_ext in '' $ac_executable_extensions; do
8883   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8884     ac_cv_path_GNUPLOT="$as_dir/$ac_word$ac_exec_ext"
8885     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8886     break 2
8887   fi
8888 done
8889 done
8890
8891   ;;
8892 esac
8893 fi
8894 GNUPLOT=$ac_cv_path_GNUPLOT
8895
8896 if test -n "$GNUPLOT"; then
8897   echo "$as_me:$LINENO: result: $GNUPLOT" >&5
8898 echo "${ECHO_T}$GNUPLOT" >&6
8899 else
8900   echo "$as_me:$LINENO: result: no" >&5
8901 echo "${ECHO_T}no" >&6
8902 fi
8903
8904   test -n "$GNUPLOT" && break
8905 done
8906
8907 if test -z "$GNUPLOT"; then
8908     NO_AMPLOT_MODE=true
8909     { echo "$as_me:$LINENO: WARNING: *** You do not have gnuplot.  Amplot will not be installed." >&5
8910 echo "$as_me: WARNING: *** You do not have gnuplot.  Amplot will not be installed." >&2;}
8911 fi
8912
8913 for ac_prog in grep
8914 do
8915   # Extract the first word of "$ac_prog", so it can be a program name with args.
8916 set dummy $ac_prog; ac_word=$2
8917 echo "$as_me:$LINENO: checking for $ac_word" >&5
8918 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8919 if test "${ac_cv_path_GREP+set}" = set; then
8920   echo $ECHO_N "(cached) $ECHO_C" >&6
8921 else
8922   case $GREP in
8923   [\\/]* | ?:[\\/]*)
8924   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
8925   ;;
8926   *)
8927   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8928 for as_dir in $LOCSYSPATH
8929 do
8930   IFS=$as_save_IFS
8931   test -z "$as_dir" && as_dir=.
8932   for ac_exec_ext in '' $ac_executable_extensions; do
8933   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8934     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
8935     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8936     break 2
8937   fi
8938 done
8939 done
8940
8941   ;;
8942 esac
8943 fi
8944 GREP=$ac_cv_path_GREP
8945
8946 if test -n "$GREP"; then
8947   echo "$as_me:$LINENO: result: $GREP" >&5
8948 echo "${ECHO_T}$GREP" >&6
8949 else
8950   echo "$as_me:$LINENO: result: no" >&5
8951 echo "${ECHO_T}no" >&6
8952 fi
8953
8954   test -n "$GREP" && break
8955 done
8956
8957 if test -z "$GREP"; then
8958     GREP=grep
8959 fi
8960
8961 cat >>confdefs.h <<_ACEOF
8962 #define GREP "$GREP"
8963 _ACEOF
8964
8965
8966 for ac_prog in gtar gnutar tar
8967 do
8968   # Extract the first word of "$ac_prog", so it can be a program name with args.
8969 set dummy $ac_prog; ac_word=$2
8970 echo "$as_me:$LINENO: checking for $ac_word" >&5
8971 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8972 if test "${ac_cv_path_GNUTAR+set}" = set; then
8973   echo $ECHO_N "(cached) $ECHO_C" >&6
8974 else
8975   case $GNUTAR in
8976   [\\/]* | ?:[\\/]*)
8977   ac_cv_path_GNUTAR="$GNUTAR" # Let the user override the test with a path.
8978   ;;
8979   *)
8980   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8981 for as_dir in $LOCSYSPATH
8982 do
8983   IFS=$as_save_IFS
8984   test -z "$as_dir" && as_dir=.
8985   for ac_exec_ext in '' $ac_executable_extensions; do
8986   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8987     ac_cv_path_GNUTAR="$as_dir/$ac_word$ac_exec_ext"
8988     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8989     break 2
8990   fi
8991 done
8992 done
8993
8994   ;;
8995 esac
8996 fi
8997 GNUTAR=$ac_cv_path_GNUTAR
8998
8999 if test -n "$GNUTAR"; then
9000   echo "$as_me:$LINENO: result: $GNUTAR" >&5
9001 echo "${ECHO_T}$GNUTAR" >&6
9002 else
9003   echo "$as_me:$LINENO: result: no" >&5
9004 echo "${ECHO_T}no" >&6
9005 fi
9006
9007   test -n "$GNUTAR" && break
9008 done
9009
9010 if test ! -z "$GNUTAR"; then
9011   case "`\"$GNUTAR\" --version 2>&1`" in
9012    *GNU*tar* | *Free*paxutils* )
9013
9014 cat >>confdefs.h <<_ACEOF
9015 #define GNUTAR "$GNUTAR"
9016 _ACEOF
9017
9018                 ;;
9019    *)
9020                 { echo "$as_me:$LINENO: WARNING: *** $GNUTAR is not GNU tar, so it will not be used." >&5
9021 echo "$as_me: WARNING: *** $GNUTAR is not GNU tar, so it will not be used." >&2;}
9022                 GNUTAR=
9023                 ;;
9024   esac
9025 fi
9026
9027 for ac_prog in smbclient
9028 do
9029   # Extract the first word of "$ac_prog", so it can be a program name with args.
9030 set dummy $ac_prog; ac_word=$2
9031 echo "$as_me:$LINENO: checking for $ac_word" >&5
9032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9033 if test "${ac_cv_path_SAMBA_CLIENT+set}" = set; then
9034   echo $ECHO_N "(cached) $ECHO_C" >&6
9035 else
9036   case $SAMBA_CLIENT in
9037   [\\/]* | ?:[\\/]*)
9038   ac_cv_path_SAMBA_CLIENT="$SAMBA_CLIENT" # Let the user override the test with a path.
9039   ;;
9040   *)
9041   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9042 for as_dir in $LOCSYSPATH
9043 do
9044   IFS=$as_save_IFS
9045   test -z "$as_dir" && as_dir=.
9046   for ac_exec_ext in '' $ac_executable_extensions; do
9047   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9048     ac_cv_path_SAMBA_CLIENT="$as_dir/$ac_word$ac_exec_ext"
9049     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9050     break 2
9051   fi
9052 done
9053 done
9054
9055   ;;
9056 esac
9057 fi
9058 SAMBA_CLIENT=$ac_cv_path_SAMBA_CLIENT
9059
9060 if test -n "$SAMBA_CLIENT"; then
9061   echo "$as_me:$LINENO: result: $SAMBA_CLIENT" >&5
9062 echo "${ECHO_T}$SAMBA_CLIENT" >&6
9063 else
9064   echo "$as_me:$LINENO: result: no" >&5
9065 echo "${ECHO_T}no" >&6
9066 fi
9067
9068   test -n "$SAMBA_CLIENT" && break
9069 done
9070
9071 if test ! -z "$SAMBA_CLIENT"; then
9072   case "`\"$SAMBA_CLIENT\" '\\\\not.a.host.name\\notashare' -U nosuchuser -N -Tx /dev/null 2>&1`" in
9073   *"Unknown host"*)
9074                 smbversion=1
9075                 ;;
9076   *"Connection to not.a.host.name failed"*)
9077                 smbversion=2
9078                 ;;
9079   *)
9080                 { echo "$as_me:$LINENO: WARNING: *** $SAMBA_CLIENT does not seem to be smbclient, so it will not be used." >&5
9081 echo "$as_me: WARNING: *** $SAMBA_CLIENT does not seem to be smbclient, so it will not be used." >&2;}
9082                 SAMBA_CLIENT=
9083                 ;;
9084   esac
9085   if test -n "$SAMBA_CLIENT"; then
9086
9087 cat >>confdefs.h <<_ACEOF
9088 #define SAMBA_CLIENT "$SAMBA_CLIENT"
9089 _ACEOF
9090
9091
9092 cat >>confdefs.h <<_ACEOF
9093 #define SAMBA_VERSION $smbversion
9094 _ACEOF
9095
9096   fi
9097 fi
9098
9099 for ac_prog in gzip
9100 do
9101   # Extract the first word of "$ac_prog", so it can be a program name with args.
9102 set dummy $ac_prog; ac_word=$2
9103 echo "$as_me:$LINENO: checking for $ac_word" >&5
9104 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9105 if test "${ac_cv_path_GZIP+set}" = set; then
9106   echo $ECHO_N "(cached) $ECHO_C" >&6
9107 else
9108   case $GZIP in
9109   [\\/]* | ?:[\\/]*)
9110   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
9111   ;;
9112   *)
9113   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9114 for as_dir in $LOCSYSPATH
9115 do
9116   IFS=$as_save_IFS
9117   test -z "$as_dir" && as_dir=.
9118   for ac_exec_ext in '' $ac_executable_extensions; do
9119   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9120     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
9121     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9122     break 2
9123   fi
9124 done
9125 done
9126
9127   ;;
9128 esac
9129 fi
9130 GZIP=$ac_cv_path_GZIP
9131
9132 if test -n "$GZIP"; then
9133   echo "$as_me:$LINENO: result: $GZIP" >&5
9134 echo "${ECHO_T}$GZIP" >&6
9135 else
9136   echo "$as_me:$LINENO: result: no" >&5
9137 echo "${ECHO_T}no" >&6
9138 fi
9139
9140   test -n "$GZIP" && break
9141 done
9142
9143 if test "$GZIP"; then
9144
9145 cat >>confdefs.h <<\_ACEOF
9146 #define HAVE_GZIP 1
9147 _ACEOF
9148
9149     COMPRESS_PATH="$GZIP"
9150     COMPRESS_SUFFIX=".gz"
9151     COMPRESS_FAST_OPT="--fast"
9152     COMPRESS_BEST_OPT="--best"
9153     UNCOMPRESS_PATH="$GZIP"
9154     UNCOMPRESS_OPT="-dc"
9155 else
9156     if test "$COMPRESS"; then
9157         COMPRESS_PATH="$COMPRESS"
9158         COMPRESS_SUFFIX=".Z"
9159         COMPRESS_FAST_OPT="-f"
9160         COMPRESS_BEST_OPT="-f"
9161         UNCOMPRESS_PATH="$COMPRESS"
9162         UNCOMPRESS_OPT="-dc"
9163     else
9164                                 { echo "$as_me:$LINENO: WARNING: *** Cannot find either gzip or compress.  Using cat. ***" >&5
9165 echo "$as_me: WARNING: *** Cannot find either gzip or compress.  Using cat. ***" >&2;}
9166         COMPRESS_PATH="$CAT"
9167         COMPRESS_SUFFIX=""
9168         COMPRESS_FAST_OPT=""
9169         COMPRESS_BEST_OPT=""
9170         UNCOMPRESS_PATH="$CAT"
9171         UNCOMPRESS_OPT=""
9172     fi
9173 fi
9174
9175 cat >>confdefs.h <<_ACEOF
9176 #define COMPRESS_PATH "$COMPRESS_PATH"
9177 _ACEOF
9178
9179
9180 cat >>confdefs.h <<_ACEOF
9181 #define COMPRESS_SUFFIX "$COMPRESS_SUFFIX"
9182 _ACEOF
9183
9184
9185 cat >>confdefs.h <<_ACEOF
9186 #define COMPRESS_FAST_OPT "$COMPRESS_FAST_OPT"
9187 _ACEOF
9188
9189
9190 cat >>confdefs.h <<_ACEOF
9191 #define COMPRESS_BEST_OPT "$COMPRESS_BEST_OPT"
9192 _ACEOF
9193
9194
9195 cat >>confdefs.h <<_ACEOF
9196 #define UNCOMPRESS_PATH "$UNCOMPRESS_PATH"
9197 _ACEOF
9198
9199
9200 cat >>confdefs.h <<_ACEOF
9201 #define UNCOMPRESS_OPT "$UNCOMPRESS_OPT"
9202 _ACEOF
9203
9204
9205 for ac_prog in Mail mailx mail
9206 do
9207   # Extract the first word of "$ac_prog", so it can be a program name with args.
9208 set dummy $ac_prog; ac_word=$2
9209 echo "$as_me:$LINENO: checking for $ac_word" >&5
9210 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9211 if test "${ac_cv_path_MAILER+set}" = set; then
9212   echo $ECHO_N "(cached) $ECHO_C" >&6
9213 else
9214   case $MAILER in
9215   [\\/]* | ?:[\\/]*)
9216   ac_cv_path_MAILER="$MAILER" # Let the user override the test with a path.
9217   ;;
9218   *)
9219   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9220 for as_dir in $PATH
9221 do
9222   IFS=$as_save_IFS
9223   test -z "$as_dir" && as_dir=.
9224   for ac_exec_ext in '' $ac_executable_extensions; do
9225   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9226     ac_cv_path_MAILER="$as_dir/$ac_word$ac_exec_ext"
9227     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9228     break 2
9229   fi
9230 done
9231 done
9232
9233   ;;
9234 esac
9235 fi
9236 MAILER=$ac_cv_path_MAILER
9237
9238 if test -n "$MAILER"; then
9239   echo "$as_me:$LINENO: result: $MAILER" >&5
9240 echo "${ECHO_T}$MAILER" >&6
9241 else
9242   echo "$as_me:$LINENO: result: no" >&5
9243 echo "${ECHO_T}no" >&6
9244 fi
9245
9246   test -n "$MAILER" && break
9247 done
9248
9249 if test -z "$MAILER"; then
9250     if $NO_SERVER_MODE; then
9251         MAILER="NONE"
9252         { echo "$as_me:$LINENO: WARNING: *** WARNING: Amanda cannot send mail reports without these programs." >&5
9253 echo "$as_me: WARNING: *** WARNING: Amanda cannot send mail reports without these programs." >&2;}
9254     else
9255         { { echo "$as_me:$LINENO: error: Set MAILER to some program that accepts -s subject user < message_file." >&5
9256 echo "$as_me: error: Set MAILER to some program that accepts -s subject user < message_file." >&2;}
9257    { (exit 1); exit 1; }; }
9258     fi
9259 fi
9260
9261 cat >>confdefs.h <<_ACEOF
9262 #define MAILER "$MAILER"
9263 _ACEOF
9264
9265
9266 for ac_prog in mt
9267 do
9268   # Extract the first word of "$ac_prog", so it can be a program name with args.
9269 set dummy $ac_prog; ac_word=$2
9270 echo "$as_me:$LINENO: checking for $ac_word" >&5
9271 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9272 if test "${ac_cv_path_MT+set}" = set; then
9273   echo $ECHO_N "(cached) $ECHO_C" >&6
9274 else
9275   case $MT in
9276   [\\/]* | ?:[\\/]*)
9277   ac_cv_path_MT="$MT" # Let the user override the test with a path.
9278   ;;
9279   *)
9280   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9281 for as_dir in $LOCSYSPATH
9282 do
9283   IFS=$as_save_IFS
9284   test -z "$as_dir" && as_dir=.
9285   for ac_exec_ext in '' $ac_executable_extensions; do
9286   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9287     ac_cv_path_MT="$as_dir/$ac_word$ac_exec_ext"
9288     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9289     break 2
9290   fi
9291 done
9292 done
9293
9294   ;;
9295 esac
9296 fi
9297 MT=$ac_cv_path_MT
9298
9299 if test -n "$MT"; then
9300   echo "$as_me:$LINENO: result: $MT" >&5
9301 echo "${ECHO_T}$MT" >&6
9302 else
9303   echo "$as_me:$LINENO: result: no" >&5
9304 echo "${ECHO_T}no" >&6
9305 fi
9306
9307   test -n "$MT" && break
9308 done
9309 test -n "$MT" || MT="mt"
9310
9311
9312 for ac_prog in chio
9313 do
9314   # Extract the first word of "$ac_prog", so it can be a program name with args.
9315 set dummy $ac_prog; ac_word=$2
9316 echo "$as_me:$LINENO: checking for $ac_word" >&5
9317 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9318 if test "${ac_cv_path_CHIO+set}" = set; then
9319   echo $ECHO_N "(cached) $ECHO_C" >&6
9320 else
9321   case $CHIO in
9322   [\\/]* | ?:[\\/]*)
9323   ac_cv_path_CHIO="$CHIO" # Let the user override the test with a path.
9324   ;;
9325   *)
9326   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9327 for as_dir in $LOCSYSPATH
9328 do
9329   IFS=$as_save_IFS
9330   test -z "$as_dir" && as_dir=.
9331   for ac_exec_ext in '' $ac_executable_extensions; do
9332   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9333     ac_cv_path_CHIO="$as_dir/$ac_word$ac_exec_ext"
9334     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9335     break 2
9336   fi
9337 done
9338 done
9339
9340   ;;
9341 esac
9342 fi
9343 CHIO=$ac_cv_path_CHIO
9344
9345 if test -n "$CHIO"; then
9346   echo "$as_me:$LINENO: result: $CHIO" >&5
9347 echo "${ECHO_T}$CHIO" >&6
9348 else
9349   echo "$as_me:$LINENO: result: no" >&5
9350 echo "${ECHO_T}no" >&6
9351 fi
9352
9353   test -n "$CHIO" && break
9354 done
9355 test -n "$CHIO" || CHIO="chio"
9356
9357
9358 for ac_prog in chs
9359 do
9360   # Extract the first word of "$ac_prog", so it can be a program name with args.
9361 set dummy $ac_prog; ac_word=$2
9362 echo "$as_me:$LINENO: checking for $ac_word" >&5
9363 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9364 if test "${ac_cv_path_CHS+set}" = set; then
9365   echo $ECHO_N "(cached) $ECHO_C" >&6
9366 else
9367   case $CHS in
9368   [\\/]* | ?:[\\/]*)
9369   ac_cv_path_CHS="$CHS" # Let the user override the test with a path.
9370   ;;
9371   *)
9372   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9373 for as_dir in $LOCSYSPATH
9374 do
9375   IFS=$as_save_IFS
9376   test -z "$as_dir" && as_dir=.
9377   for ac_exec_ext in '' $ac_executable_extensions; do
9378   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9379     ac_cv_path_CHS="$as_dir/$ac_word$ac_exec_ext"
9380     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9381     break 2
9382   fi
9383 done
9384 done
9385
9386   ;;
9387 esac
9388 fi
9389 CHS=$ac_cv_path_CHS
9390
9391 if test -n "$CHS"; then
9392   echo "$as_me:$LINENO: result: $CHS" >&5
9393 echo "${ECHO_T}$CHS" >&6
9394 else
9395   echo "$as_me:$LINENO: result: no" >&5
9396 echo "${ECHO_T}no" >&6
9397 fi
9398
9399   test -n "$CHS" && break
9400 done
9401 test -n "$CHS" || CHS="chs"
9402
9403
9404 for ac_prog in mtx
9405 do
9406   # Extract the first word of "$ac_prog", so it can be a program name with args.
9407 set dummy $ac_prog; ac_word=$2
9408 echo "$as_me:$LINENO: checking for $ac_word" >&5
9409 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9410 if test "${ac_cv_path_MTX+set}" = set; then
9411   echo $ECHO_N "(cached) $ECHO_C" >&6
9412 else
9413   case $MTX in
9414   [\\/]* | ?:[\\/]*)
9415   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
9416   ;;
9417   *)
9418   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9419 for as_dir in $LOCSYSPATH
9420 do
9421   IFS=$as_save_IFS
9422   test -z "$as_dir" && as_dir=.
9423   for ac_exec_ext in '' $ac_executable_extensions; do
9424   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9425     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
9426     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9427     break 2
9428   fi
9429 done
9430 done
9431
9432   ;;
9433 esac
9434 fi
9435 MTX=$ac_cv_path_MTX
9436
9437 if test -n "$MTX"; then
9438   echo "$as_me:$LINENO: result: $MTX" >&5
9439 echo "${ECHO_T}$MTX" >&6
9440 else
9441   echo "$as_me:$LINENO: result: no" >&5
9442 echo "${ECHO_T}no" >&6
9443 fi
9444
9445   test -n "$MTX" && break
9446 done
9447 test -n "$MTX" || MTX="mtx"
9448
9449
9450 for ac_prog in mcutil
9451 do
9452   # Extract the first word of "$ac_prog", so it can be a program name with args.
9453 set dummy $ac_prog; ac_word=$2
9454 echo "$as_me:$LINENO: checking for $ac_word" >&5
9455 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9456 if test "${ac_cv_path_MCUTIL+set}" = set; then
9457   echo $ECHO_N "(cached) $ECHO_C" >&6
9458 else
9459   case $MCUTIL in
9460   [\\/]* | ?:[\\/]*)
9461   ac_cv_path_MCUTIL="$MCUTIL" # Let the user override the test with a path.
9462   ;;
9463   *)
9464   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9465 for as_dir in $LOCSYSPATH
9466 do
9467   IFS=$as_save_IFS
9468   test -z "$as_dir" && as_dir=.
9469   for ac_exec_ext in '' $ac_executable_extensions; do
9470   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9471     ac_cv_path_MCUTIL="$as_dir/$ac_word$ac_exec_ext"
9472     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9473     break 2
9474   fi
9475 done
9476 done
9477
9478   ;;
9479 esac
9480 fi
9481 MCUTIL=$ac_cv_path_MCUTIL
9482
9483 if test -n "$MCUTIL"; then
9484   echo "$as_me:$LINENO: result: $MCUTIL" >&5
9485 echo "${ECHO_T}$MCUTIL" >&6
9486 else
9487   echo "$as_me:$LINENO: result: no" >&5
9488 echo "${ECHO_T}no" >&6
9489 fi
9490
9491   test -n "$MCUTIL" && break
9492 done
9493 test -n "$MCUTIL" || MCUTIL="mcutil"
9494
9495
9496 for ac_prog in lpr lp
9497 do
9498   # Extract the first word of "$ac_prog", so it can be a program name with args.
9499 set dummy $ac_prog; ac_word=$2
9500 echo "$as_me:$LINENO: checking for $ac_word" >&5
9501 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9502 if test "${ac_cv_path_PRINT+set}" = set; then
9503   echo $ECHO_N "(cached) $ECHO_C" >&6
9504 else
9505   case $PRINT in
9506   [\\/]* | ?:[\\/]*)
9507   ac_cv_path_PRINT="$PRINT" # Let the user override the test with a path.
9508   ;;
9509   *)
9510   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9511 for as_dir in $PATH
9512 do
9513   IFS=$as_save_IFS
9514   test -z "$as_dir" && as_dir=.
9515   for ac_exec_ext in '' $ac_executable_extensions; do
9516   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9517     ac_cv_path_PRINT="$as_dir/$ac_word$ac_exec_ext"
9518     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9519     break 2
9520   fi
9521 done
9522 done
9523
9524   ;;
9525 esac
9526 fi
9527 PRINT=$ac_cv_path_PRINT
9528
9529 if test -n "$PRINT"; then
9530   echo "$as_me:$LINENO: result: $PRINT" >&5
9531 echo "${ECHO_T}$PRINT" >&6
9532 else
9533   echo "$as_me:$LINENO: result: no" >&5
9534 echo "${ECHO_T}no" >&6
9535 fi
9536
9537   test -n "$PRINT" && break
9538 done
9539
9540 if test ! -z "$PRINT"; then
9541
9542 cat >>confdefs.h <<_ACEOF
9543 #define LPRCMD "$PRINT"
9544 _ACEOF
9545
9546     echo "$as_me:$LINENO: checking which flag to use to select a printer" >&5
9547 echo $ECHO_N "checking which flag to use to select a printer... $ECHO_C" >&6
9548 if test "${amanda_cv_printer_flag+set}" = set; then
9549   echo $ECHO_N "(cached) $ECHO_C" >&6
9550 else
9551
9552         amanda_cv_printer_flag=$PRINTER_FLAG
9553         case "$PRINT" in
9554         lpr|*/lpr) amanda_cv_printer_flag="-P";;
9555         lp|*/lp) amanda_cv_printer_flag="-d";;
9556         esac
9557
9558 fi
9559 echo "$as_me:$LINENO: result: $amanda_cv_printer_flag" >&5
9560 echo "${ECHO_T}$amanda_cv_printer_flag" >&6
9561     if test ! -z "$amanda_cv_printer_flag"; then
9562
9563 cat >>confdefs.h <<_ACEOF
9564 #define LPRFLAG "$amanda_cv_printer_flag"
9565 _ACEOF
9566
9567     else
9568         { echo "$as_me:$LINENO: WARNING: *** WARNING: amanda will always print to the default printer" >&5
9569 echo "$as_me: WARNING: *** WARNING: amanda will always print to the default printer" >&2;}
9570     fi
9571 fi
9572
9573 for ac_prog in pcat
9574 do
9575   # Extract the first word of "$ac_prog", so it can be a program name with args.
9576 set dummy $ac_prog; ac_word=$2
9577 echo "$as_me:$LINENO: checking for $ac_word" >&5
9578 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9579 if test "${ac_cv_path_PCAT+set}" = set; then
9580   echo $ECHO_N "(cached) $ECHO_C" >&6
9581 else
9582   case $PCAT in
9583   [\\/]* | ?:[\\/]*)
9584   ac_cv_path_PCAT="$PCAT" # Let the user override the test with a path.
9585   ;;
9586   *)
9587   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9588 for as_dir in $LOCSYSPATH
9589 do
9590   IFS=$as_save_IFS
9591   test -z "$as_dir" && as_dir=.
9592   for ac_exec_ext in '' $ac_executable_extensions; do
9593   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9594     ac_cv_path_PCAT="$as_dir/$ac_word$ac_exec_ext"
9595     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9596     break 2
9597   fi
9598 done
9599 done
9600
9601   ;;
9602 esac
9603 fi
9604 PCAT=$ac_cv_path_PCAT
9605
9606 if test -n "$PCAT"; then
9607   echo "$as_me:$LINENO: result: $PCAT" >&5
9608 echo "${ECHO_T}$PCAT" >&6
9609 else
9610   echo "$as_me:$LINENO: result: no" >&5
9611 echo "${ECHO_T}no" >&6
9612 fi
9613
9614   test -n "$PCAT" && break
9615 done
9616
9617 for ac_prog in perl5 perl
9618 do
9619   # Extract the first word of "$ac_prog", so it can be a program name with args.
9620 set dummy $ac_prog; ac_word=$2
9621 echo "$as_me:$LINENO: checking for $ac_word" >&5
9622 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9623 if test "${ac_cv_path_PERL+set}" = set; then
9624   echo $ECHO_N "(cached) $ECHO_C" >&6
9625 else
9626   case $PERL in
9627   [\\/]* | ?:[\\/]*)
9628   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
9629   ;;
9630   *)
9631   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9632 for as_dir in $LOCSYSPATH
9633 do
9634   IFS=$as_save_IFS
9635   test -z "$as_dir" && as_dir=.
9636   for ac_exec_ext in '' $ac_executable_extensions; do
9637   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9638     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
9639     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9640     break 2
9641   fi
9642 done
9643 done
9644
9645   ;;
9646 esac
9647 fi
9648 PERL=$ac_cv_path_PERL
9649
9650 if test -n "$PERL"; then
9651   echo "$as_me:$LINENO: result: $PERL" >&5
9652 echo "${ECHO_T}$PERL" >&6
9653 else
9654   echo "$as_me:$LINENO: result: no" >&5
9655 echo "${ECHO_T}no" >&6
9656 fi
9657
9658   test -n "$PERL" && break
9659 done
9660
9661
9662
9663 for ac_prog in $DUMP_PROGRAMS
9664 do
9665   # Extract the first word of "$ac_prog", so it can be a program name with args.
9666 set dummy $ac_prog; ac_word=$2
9667 echo "$as_me:$LINENO: checking for $ac_word" >&5
9668 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9669 if test "${ac_cv_path_DUMP+set}" = set; then
9670   echo $ECHO_N "(cached) $ECHO_C" >&6
9671 else
9672   case $DUMP in
9673   [\\/]* | ?:[\\/]*)
9674   ac_cv_path_DUMP="$DUMP" # Let the user override the test with a path.
9675   ;;
9676   *)
9677   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9678 for as_dir in $SYSLOCPATH
9679 do
9680   IFS=$as_save_IFS
9681   test -z "$as_dir" && as_dir=.
9682   for ac_exec_ext in '' $ac_executable_extensions; do
9683   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9684     ac_cv_path_DUMP="$as_dir/$ac_word$ac_exec_ext"
9685     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9686     break 2
9687   fi
9688 done
9689 done
9690
9691   ;;
9692 esac
9693 fi
9694 DUMP=$ac_cv_path_DUMP
9695
9696 if test -n "$DUMP"; then
9697   echo "$as_me:$LINENO: result: $DUMP" >&5
9698 echo "${ECHO_T}$DUMP" >&6
9699 else
9700   echo "$as_me:$LINENO: result: no" >&5
9701 echo "${ECHO_T}no" >&6
9702 fi
9703
9704   test -n "$DUMP" && break
9705 done
9706
9707 for ac_prog in ufsrestore restore
9708 do
9709   # Extract the first word of "$ac_prog", so it can be a program name with args.
9710 set dummy $ac_prog; ac_word=$2
9711 echo "$as_me:$LINENO: checking for $ac_word" >&5
9712 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9713 if test "${ac_cv_path_RESTORE+set}" = set; then
9714   echo $ECHO_N "(cached) $ECHO_C" >&6
9715 else
9716   case $RESTORE in
9717   [\\/]* | ?:[\\/]*)
9718   ac_cv_path_RESTORE="$RESTORE" # Let the user override the test with a path.
9719   ;;
9720   *)
9721   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9722 for as_dir in $SYSLOCPATH
9723 do
9724   IFS=$as_save_IFS
9725   test -z "$as_dir" && as_dir=.
9726   for ac_exec_ext in '' $ac_executable_extensions; do
9727   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9728     ac_cv_path_RESTORE="$as_dir/$ac_word$ac_exec_ext"
9729     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9730     break 2
9731   fi
9732 done
9733 done
9734
9735   ;;
9736 esac
9737 fi
9738 RESTORE=$ac_cv_path_RESTORE
9739
9740 if test -n "$RESTORE"; then
9741   echo "$as_me:$LINENO: result: $RESTORE" >&5
9742 echo "${ECHO_T}$RESTORE" >&6
9743 else
9744   echo "$as_me:$LINENO: result: no" >&5
9745 echo "${ECHO_T}no" >&6
9746 fi
9747
9748   test -n "$RESTORE" && break
9749 done
9750
9751 if test "$DUMP" -a "$RESTORE"; then
9752
9753 cat >>confdefs.h <<_ACEOF
9754 #define DUMP "$DUMP"
9755 _ACEOF
9756
9757
9758 cat >>confdefs.h <<_ACEOF
9759 #define RESTORE "$RESTORE"
9760 _ACEOF
9761
9762     if test -x $DUMP; then
9763         echo "$as_me:$LINENO: checking whether $DUMP supports -E or -S for estimates" >&5
9764 echo $ECHO_N "checking whether $DUMP supports -E or -S for estimates... $ECHO_C" >&6
9765 if test "${amanda_cv_dump_estimate+set}" = set; then
9766   echo $ECHO_N "(cached) $ECHO_C" >&6
9767 else
9768
9769                 case "$DUMP" in
9770                 *dump)
9771                     { ac_try='$DUMP 9Ef /dev/null /dev/null/invalid/fs 2>&1
9772                         | $GREP -v Dumping
9773                         | $GREP -v Date
9774                         | $GREP -v Label >conftest.d-E 2>&1'
9775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9776   (eval $ac_try) 2>&5
9777   ac_status=$?
9778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9779   (exit $ac_status); }; }
9780                     cat conftest.d-E >&5
9781                     { ac_try='$DUMP 9Sf /dev/null /dev/null/invalid/fs 2>&1
9782                         | $GREP -v Dumping
9783                         | $GREP -v Date
9784                         | $GREP -v Label >conftest.d-S 2>&1'
9785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9786   (eval $ac_try) 2>&5
9787   ac_status=$?
9788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9789   (exit $ac_status); }; }
9790                     cat conftest.d-S >&5
9791                     { ac_try='$DUMP 9f /dev/null /dev/null/invalid/fs 2>&1
9792                         | $GREP -v Dumping
9793                         | $GREP -v Date
9794                         | $GREP -v Label >conftest.d 2>&1'
9795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9796   (eval $ac_try) 2>&5
9797   ac_status=$?
9798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9799   (exit $ac_status); }; }
9800                     cat conftest.d >&5
9801                     if { ac_try='cmp conftest.d-E conftest.d 1>&2'
9802   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9803   (eval $ac_try) 2>&5
9804   ac_status=$?
9805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9806   (exit $ac_status); }; }; then
9807                         amanda_cv_dump_estimate=E
9808                     elif { ac_try='cmp conftest.d-S conftest.d 1>&2'
9809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9810   (eval $ac_try) 2>&5
9811   ac_status=$?
9812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9813   (exit $ac_status); }; }; then
9814                         amanda_cv_dump_estimate=S
9815                     else
9816                         amanda_cv_dump_estimate=no
9817                     fi
9818                     rm -f conftest.d conftest.d-E conftest.d-S
9819                   ;;
9820                 *) amanda_cv_dump_estimate=no
9821                   ;;
9822                 esac
9823
9824 fi
9825 echo "$as_me:$LINENO: result: $amanda_cv_dump_estimate" >&5
9826 echo "${ECHO_T}$amanda_cv_dump_estimate" >&6
9827     else
9828         { echo "$as_me:$LINENO: WARNING: *** $DUMP is not executable, cannot run -E/-S test" >&5
9829 echo "$as_me: WARNING: *** $DUMP is not executable, cannot run -E/-S test" >&2;}
9830         amanda_cv_dump_estimate=no
9831     fi
9832     if test "x$amanda_cv_dump_estimate" != xno; then
9833
9834 cat >>confdefs.h <<_ACEOF
9835 #define HAVE_DUMP_ESTIMATE "$amanda_cv_dump_estimate"
9836 _ACEOF
9837
9838     fi
9839
9840
9841 # Check whether --with-dump-honor-nodump or --without-dump-honor-nodump was given.
9842 if test "${with_dump_honor_nodump+set}" = set; then
9843   withval="$with_dump_honor_nodump"
9844    if test -x $DUMP; then
9845         echo "$as_me:$LINENO: checking whether $DUMP supports -h (honor nodump flag)" >&5
9846 echo $ECHO_N "checking whether $DUMP supports -h (honor nodump flag)... $ECHO_C" >&6
9847 if test "${amanda_cv_honor_nodump+set}" = set; then
9848   echo $ECHO_N "(cached) $ECHO_C" >&6
9849 else
9850
9851             case "$DUMP" in
9852             *dump)
9853                 { ac_try='$DUMP 9hf 0 /dev/null /dev/null/invalid/fs 2>&1
9854                     | $GREP -v Dumping
9855                     | $GREP -v Date
9856                     | $GREP -v Label >conftest.d-h 2>&1'
9857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9858   (eval $ac_try) 2>&5
9859   ac_status=$?
9860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9861   (exit $ac_status); }; }
9862                 cat conftest.d-h >&5
9863                 { ac_try='$DUMP 9f /dev/null /dev/null/invalid/fs 2>&1
9864                     | $GREP -v Dumping
9865                     | $GREP -v Date
9866                     | $GREP -v Label >conftest.d 2>&1'
9867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9868   (eval $ac_try) 2>&5
9869   ac_status=$?
9870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9871   (exit $ac_status); }; }
9872                 cat conftest.d >&5
9873                 if { ac_try='diff conftest.d-h conftest.d 1>&2'
9874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9875   (eval $ac_try) 2>&5
9876   ac_status=$?
9877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9878   (exit $ac_status); }; }; then
9879                     amanda_cv_honor_nodump=yes
9880                 else
9881                     amanda_cv_honor_nodump=no
9882                 fi
9883                 rm -f conftest.d conftest.d-h
9884               ;;
9885             *) amanda_cv_honor_nodump=no
9886               ;;
9887             esac
9888
9889 fi
9890 echo "$as_me:$LINENO: result: $amanda_cv_honor_nodump" >&5
9891 echo "${ECHO_T}$amanda_cv_honor_nodump" >&6
9892       else
9893         { echo "$as_me:$LINENO: WARNING: *** $DUMP is not executable, cannot run -h test" >&5
9894 echo "$as_me: WARNING: *** $DUMP is not executable, cannot run -h test" >&2;}
9895         amanda_cv_honor_nodump=no
9896       fi
9897       if test "x$amanda_cv_honor_nodump" = xyes; then
9898
9899 cat >>confdefs.h <<\_ACEOF
9900 #define HAVE_HONOR_NODUMP 1
9901 _ACEOF
9902
9903       fi
9904
9905 fi;
9906 fi
9907
9908 for ac_prog in xfsdump
9909 do
9910   # Extract the first word of "$ac_prog", so it can be a program name with args.
9911 set dummy $ac_prog; ac_word=$2
9912 echo "$as_me:$LINENO: checking for $ac_word" >&5
9913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9914 if test "${ac_cv_path_XFSDUMP+set}" = set; then
9915   echo $ECHO_N "(cached) $ECHO_C" >&6
9916 else
9917   case $XFSDUMP in
9918   [\\/]* | ?:[\\/]*)
9919   ac_cv_path_XFSDUMP="$XFSDUMP" # Let the user override the test with a path.
9920   ;;
9921   *)
9922   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9923 for as_dir in $SYSLOCPATH
9924 do
9925   IFS=$as_save_IFS
9926   test -z "$as_dir" && as_dir=.
9927   for ac_exec_ext in '' $ac_executable_extensions; do
9928   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9929     ac_cv_path_XFSDUMP="$as_dir/$ac_word$ac_exec_ext"
9930     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9931     break 2
9932   fi
9933 done
9934 done
9935
9936   ;;
9937 esac
9938 fi
9939 XFSDUMP=$ac_cv_path_XFSDUMP
9940
9941 if test -n "$XFSDUMP"; then
9942   echo "$as_me:$LINENO: result: $XFSDUMP" >&5
9943 echo "${ECHO_T}$XFSDUMP" >&6
9944 else
9945   echo "$as_me:$LINENO: result: no" >&5
9946 echo "${ECHO_T}no" >&6
9947 fi
9948
9949   test -n "$XFSDUMP" && break
9950 done
9951
9952 for ac_prog in xfsrestore
9953 do
9954   # Extract the first word of "$ac_prog", so it can be a program name with args.
9955 set dummy $ac_prog; ac_word=$2
9956 echo "$as_me:$LINENO: checking for $ac_word" >&5
9957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9958 if test "${ac_cv_path_XFSRESTORE+set}" = set; then
9959   echo $ECHO_N "(cached) $ECHO_C" >&6
9960 else
9961   case $XFSRESTORE in
9962   [\\/]* | ?:[\\/]*)
9963   ac_cv_path_XFSRESTORE="$XFSRESTORE" # Let the user override the test with a path.
9964   ;;
9965   *)
9966   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9967 for as_dir in $SYSLOCPATH
9968 do
9969   IFS=$as_save_IFS
9970   test -z "$as_dir" && as_dir=.
9971   for ac_exec_ext in '' $ac_executable_extensions; do
9972   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9973     ac_cv_path_XFSRESTORE="$as_dir/$ac_word$ac_exec_ext"
9974     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9975     break 2
9976   fi
9977 done
9978 done
9979
9980   ;;
9981 esac
9982 fi
9983 XFSRESTORE=$ac_cv_path_XFSRESTORE
9984
9985 if test -n "$XFSRESTORE"; then
9986   echo "$as_me:$LINENO: result: $XFSRESTORE" >&5
9987 echo "${ECHO_T}$XFSRESTORE" >&6
9988 else
9989   echo "$as_me:$LINENO: result: no" >&5
9990 echo "${ECHO_T}no" >&6
9991 fi
9992
9993   test -n "$XFSRESTORE" && break
9994 done
9995
9996 if test "$XFSDUMP" -a "$XFSRESTORE"; then
9997
9998 cat >>confdefs.h <<_ACEOF
9999 #define XFSDUMP "$XFSDUMP"
10000 _ACEOF
10001
10002
10003 cat >>confdefs.h <<_ACEOF
10004 #define XFSRESTORE "$XFSRESTORE"
10005 _ACEOF
10006
10007     { echo "$as_me:$LINENO: WARNING: *** xfsdump causes the setuid-root rundump program to be enabled" >&5
10008 echo "$as_me: WARNING: *** xfsdump causes the setuid-root rundump program to be enabled" >&2;}
10009     { echo "$as_me:$LINENO: WARNING: *** to disable it, just #undef XFSDUMP in config/config.h" >&5
10010 echo "$as_me: WARNING: *** to disable it, just #undef XFSDUMP in config/config.h" >&2;}
10011 fi
10012
10013 VXSYSLOCPATH="$SYSLOCPATH:/usr/lib/fs/vxfs"
10014 for ac_prog in vxdump
10015 do
10016   # Extract the first word of "$ac_prog", so it can be a program name with args.
10017 set dummy $ac_prog; ac_word=$2
10018 echo "$as_me:$LINENO: checking for $ac_word" >&5
10019 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10020 if test "${ac_cv_path_VXDUMP+set}" = set; then
10021   echo $ECHO_N "(cached) $ECHO_C" >&6
10022 else
10023   case $VXDUMP in
10024   [\\/]* | ?:[\\/]*)
10025   ac_cv_path_VXDUMP="$VXDUMP" # Let the user override the test with a path.
10026   ;;
10027   *)
10028   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10029 for as_dir in $VXSYSLOCPATH
10030 do
10031   IFS=$as_save_IFS
10032   test -z "$as_dir" && as_dir=.
10033   for ac_exec_ext in '' $ac_executable_extensions; do
10034   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10035     ac_cv_path_VXDUMP="$as_dir/$ac_word$ac_exec_ext"
10036     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10037     break 2
10038   fi
10039 done
10040 done
10041
10042   ;;
10043 esac
10044 fi
10045 VXDUMP=$ac_cv_path_VXDUMP
10046
10047 if test -n "$VXDUMP"; then
10048   echo "$as_me:$LINENO: result: $VXDUMP" >&5
10049 echo "${ECHO_T}$VXDUMP" >&6
10050 else
10051   echo "$as_me:$LINENO: result: no" >&5
10052 echo "${ECHO_T}no" >&6
10053 fi
10054
10055   test -n "$VXDUMP" && break
10056 done
10057
10058 for ac_prog in vxrestore
10059 do
10060   # Extract the first word of "$ac_prog", so it can be a program name with args.
10061 set dummy $ac_prog; ac_word=$2
10062 echo "$as_me:$LINENO: checking for $ac_word" >&5
10063 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10064 if test "${ac_cv_path_VXRESTORE+set}" = set; then
10065   echo $ECHO_N "(cached) $ECHO_C" >&6
10066 else
10067   case $VXRESTORE in
10068   [\\/]* | ?:[\\/]*)
10069   ac_cv_path_VXRESTORE="$VXRESTORE" # Let the user override the test with a path.
10070   ;;
10071   *)
10072   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10073 for as_dir in $VXSYSLOCPATH
10074 do
10075   IFS=$as_save_IFS
10076   test -z "$as_dir" && as_dir=.
10077   for ac_exec_ext in '' $ac_executable_extensions; do
10078   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10079     ac_cv_path_VXRESTORE="$as_dir/$ac_word$ac_exec_ext"
10080     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10081     break 2
10082   fi
10083 done
10084 done
10085
10086   ;;
10087 esac
10088 fi
10089 VXRESTORE=$ac_cv_path_VXRESTORE
10090
10091 if test -n "$VXRESTORE"; then
10092   echo "$as_me:$LINENO: result: $VXRESTORE" >&5
10093 echo "${ECHO_T}$VXRESTORE" >&6
10094 else
10095   echo "$as_me:$LINENO: result: no" >&5
10096 echo "${ECHO_T}no" >&6
10097 fi
10098
10099   test -n "$VXRESTORE" && break
10100 done
10101
10102 if test "$VXDUMP" -a "$VXRESTORE"; then
10103
10104 cat >>confdefs.h <<_ACEOF
10105 #define VXDUMP "$VXDUMP"
10106 _ACEOF
10107
10108
10109 cat >>confdefs.h <<_ACEOF
10110 #define VXRESTORE "$VXRESTORE"
10111 _ACEOF
10112
10113 fi
10114
10115 for ac_prog in vdump
10116 do
10117   # Extract the first word of "$ac_prog", so it can be a program name with args.
10118 set dummy $ac_prog; ac_word=$2
10119 echo "$as_me:$LINENO: checking for $ac_word" >&5
10120 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10121 if test "${ac_cv_path_VDUMP+set}" = set; then
10122   echo $ECHO_N "(cached) $ECHO_C" >&6
10123 else
10124   case $VDUMP in
10125   [\\/]* | ?:[\\/]*)
10126   ac_cv_path_VDUMP="$VDUMP" # Let the user override the test with a path.
10127   ;;
10128   *)
10129   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10130 for as_dir in $SYSLOCPATH
10131 do
10132   IFS=$as_save_IFS
10133   test -z "$as_dir" && as_dir=.
10134   for ac_exec_ext in '' $ac_executable_extensions; do
10135   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10136     ac_cv_path_VDUMP="$as_dir/$ac_word$ac_exec_ext"
10137     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10138     break 2
10139   fi
10140 done
10141 done
10142
10143   ;;
10144 esac
10145 fi
10146 VDUMP=$ac_cv_path_VDUMP
10147
10148 if test -n "$VDUMP"; then
10149   echo "$as_me:$LINENO: result: $VDUMP" >&5
10150 echo "${ECHO_T}$VDUMP" >&6
10151 else
10152   echo "$as_me:$LINENO: result: no" >&5
10153 echo "${ECHO_T}no" >&6
10154 fi
10155
10156   test -n "$VDUMP" && break
10157 done
10158
10159 for ac_prog in vrestore
10160 do
10161   # Extract the first word of "$ac_prog", so it can be a program name with args.
10162 set dummy $ac_prog; ac_word=$2
10163 echo "$as_me:$LINENO: checking for $ac_word" >&5
10164 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10165 if test "${ac_cv_path_VRESTORE+set}" = set; then
10166   echo $ECHO_N "(cached) $ECHO_C" >&6
10167 else
10168   case $VRESTORE in
10169   [\\/]* | ?:[\\/]*)
10170   ac_cv_path_VRESTORE="$VRESTORE" # Let the user override the test with a path.
10171   ;;
10172   *)
10173   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10174 for as_dir in $SYSLOCPATH
10175 do
10176   IFS=$as_save_IFS
10177   test -z "$as_dir" && as_dir=.
10178   for ac_exec_ext in '' $ac_executable_extensions; do
10179   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10180     ac_cv_path_VRESTORE="$as_dir/$ac_word$ac_exec_ext"
10181     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10182     break 2
10183   fi
10184 done
10185 done
10186
10187   ;;
10188 esac
10189 fi
10190 VRESTORE=$ac_cv_path_VRESTORE
10191
10192 if test -n "$VRESTORE"; then
10193   echo "$as_me:$LINENO: result: $VRESTORE" >&5
10194 echo "${ECHO_T}$VRESTORE" >&6
10195 else
10196   echo "$as_me:$LINENO: result: no" >&5
10197 echo "${ECHO_T}no" >&6
10198 fi
10199
10200   test -n "$VRESTORE" && break
10201 done
10202
10203 if test "$VDUMP" -a "$VRESTORE"; then
10204
10205 cat >>confdefs.h <<_ACEOF
10206 #define VDUMP "$VDUMP"
10207 _ACEOF
10208
10209
10210 cat >>confdefs.h <<_ACEOF
10211 #define VRESTORE "$VRESTORE"
10212 _ACEOF
10213
10214 fi
10215
10216 if test "$PCAT"; then
10217     AMPLOT_CAT_PACK="if(o==\"z\")print \"$PCAT\"; else"
10218 else
10219     AMPLOT_CAT_PACK=
10220 fi
10221 if test "$COMPRESS"; then
10222     AMPLOT_COMPRESS=$COMPRESS
10223     AMPLOT_CAT_COMPRESS="if(o==\"Z\")print \"$COMPRESS -dc\"; else"
10224 else
10225     AMPLOT_CAT_COMPRESS=
10226 fi
10227 if test "$GZIP"; then
10228     AMPLOT_COMPRESS=$GZIP
10229     AMPLOT_CAT_GZIP="if(o==\"gz\")print \"$GZIP -dc\"; else"
10230 else
10231     AMPLOT_CAT_GZIP=
10232 fi
10233
10234
10235
10236
10237
10238 # Determine the printf format characters to use when printing
10239 # values of type long long. This will normally be "ll", but where
10240 # the compiler treats "long long" as a alias for "long" and printf
10241 # doesn't know about "long long" use "l".  Hopefully the sprintf
10242 # will produce a inconsistant result in the later case.  If the compiler
10243 # fails due to seeing "%lld" we fall back to "l".
10244 #
10245 # Win32 uses "%I64d", but that's defined elsewhere since we don't use
10246 # configure on Win32.
10247 #
10248 echo "$as_me:$LINENO: checking printf format modifier for 64-bit integers" >&5
10249 echo $ECHO_N "checking printf format modifier for 64-bit integers... $ECHO_C" >&6
10250 if test "$cross_compiling" = yes; then
10251   echo "$as_me:$LINENO: result: assuming target platform uses ll" >&5
10252 echo "${ECHO_T}assuming target platform uses ll" >&6
10253         LL_FMT="%lld"
10254 else
10255   cat >conftest.$ac_ext <<_ACEOF
10256 /* confdefs.h.  */
10257 _ACEOF
10258 cat confdefs.h >>conftest.$ac_ext
10259 cat >>conftest.$ac_ext <<_ACEOF
10260 /* end confdefs.h.  */
10261
10262 #include <stdio.h>
10263 main() {
10264         long long int j = 0;
10265         char buf[100];
10266         buf[0] = 0;
10267         sprintf(buf, "%lld", j);
10268         exit((sizeof(long long int) != sizeof(long int))? 0 :
10269              (strcmp(buf, "0") != 0));
10270 }
10271
10272 _ACEOF
10273 rm -f conftest$ac_exeext
10274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10275   (eval $ac_link) 2>&5
10276   ac_status=$?
10277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10278   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10280   (eval $ac_try) 2>&5
10281   ac_status=$?
10282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10283   (exit $ac_status); }; }; then
10284   echo "$as_me:$LINENO: result: ll" >&5
10285 echo "${ECHO_T}ll" >&6
10286         LL_FMT="%lld"
10287 else
10288   echo "$as_me: program exited with status $ac_status" >&5
10289 echo "$as_me: failed program was:" >&5
10290 sed 's/^/| /' conftest.$ac_ext >&5
10291
10292 ( exit $ac_status )
10293 echo "$as_me:$LINENO: result: l" >&5
10294 echo "${ECHO_T}l" >&6
10295         LL_FMT="%ld"
10296 fi
10297 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10298 fi
10299
10300 cat >>confdefs.h <<_ACEOF
10301 #define LL_FMT "$LL_FMT"
10302 _ACEOF
10303
10304
10305
10306 GZIP=
10307
10308 need_resetofs=yes
10309 echo "$as_me:$LINENO: checking for large file compilation CFLAGS" >&5
10310 echo $ECHO_N "checking for large file compilation CFLAGS... $ECHO_C" >&6
10311 if test "${amanda_cv_LFS_CFLAGS+set}" = set; then
10312   echo $ECHO_N "(cached) $ECHO_C" >&6
10313 else
10314
10315         amanda_cv_LFS_CFLAGS=
10316         if test "$GETCONF"; then
10317             if $GETCONF ${GETCONF_LFS}_CFLAGS >/dev/null 2>&1; then
10318                 amanda_cv_LFS_CFLAGS=`$GETCONF ${GETCONF_LFS}_CFLAGS 2>/dev/null`
10319                 need_resetofs=no
10320             fi
10321         fi
10322
10323
10324 fi
10325 echo "$as_me:$LINENO: result: $amanda_cv_LFS_CFLAGS" >&5
10326 echo "${ECHO_T}$amanda_cv_LFS_CFLAGS" >&6
10327 echo "$as_me:$LINENO: checking for large file compilation LDFLAGS" >&5
10328 echo $ECHO_N "checking for large file compilation LDFLAGS... $ECHO_C" >&6
10329 if test "${amanda_cv_LFS_LDFLAGS+set}" = set; then
10330   echo $ECHO_N "(cached) $ECHO_C" >&6
10331 else
10332
10333         amanda_cv_LFS_LDFLAGS=
10334         if test "$GETCONF"; then
10335             if $GETCONF ${GETCONF_LFS}_LDFLAGS >/dev/null 2>&1; then
10336                 amanda_cv_LFS_LDFLAGS=`$GETCONF ${GETCONF_LFS}_LDFLAGS 2>/dev/null`
10337                 need_resetofs=no
10338             fi
10339         fi
10340
10341
10342 fi
10343 echo "$as_me:$LINENO: result: $amanda_cv_LFS_LDFLAGS" >&5
10344 echo "${ECHO_T}$amanda_cv_LFS_LDFLAGS" >&6
10345 echo "$as_me:$LINENO: checking for large file compilation LIBS" >&5
10346 echo $ECHO_N "checking for large file compilation LIBS... $ECHO_C" >&6
10347 if test "${amanda_cv_LFS_LIBS+set}" = set; then
10348   echo $ECHO_N "(cached) $ECHO_C" >&6
10349 else
10350
10351         amanda_cv_LFS_LIBS=
10352         if test "$GETCONF"; then
10353             if $GETCONF ${GETCONF_LFS}_LIBS >/dev/null 2>&1; then
10354                 amanda_cv_LFS_LIBS=`$GETCONF ${GETCONF_LFS}_LIBS 2>/dev/null`
10355                 need_resetofs=no
10356             fi
10357         fi
10358
10359
10360 fi
10361 echo "$as_me:$LINENO: result: $amanda_cv_LFS_LIBS" >&5
10362 echo "${ECHO_T}$amanda_cv_LFS_LIBS" >&6
10363 if test "x$need_resetofs" = xyes; then
10364
10365 cat >>confdefs.h <<\_ACEOF
10366 #define NEED_RESETOFS 1
10367 _ACEOF
10368
10369 fi
10370 CFLAGS="$amanda_cv_LFS_CFLAGS $CFLAGS"
10371 CPPFLAGS="$amanda_cv_LFS_CFLAGS $CPPFLAGS"
10372 LDFLAGS="$amanda_cv_LFS_LDFLAGS $LDFLAGS"
10373 LIBS="$amanda_cv_LFS_LIBS $LIBS"
10374
10375 echo "$as_me:$LINENO: checking for int" >&5
10376 echo $ECHO_N "checking for int... $ECHO_C" >&6
10377 if test "${ac_cv_type_int+set}" = set; then
10378   echo $ECHO_N "(cached) $ECHO_C" >&6
10379 else
10380   cat >conftest.$ac_ext <<_ACEOF
10381 /* confdefs.h.  */
10382 _ACEOF
10383 cat confdefs.h >>conftest.$ac_ext
10384 cat >>conftest.$ac_ext <<_ACEOF
10385 /* end confdefs.h.  */
10386 $ac_includes_default
10387 int
10388 main ()
10389 {
10390 if ((int *) 0)
10391   return 0;
10392 if (sizeof (int))
10393   return 0;
10394   ;
10395   return 0;
10396 }
10397 _ACEOF
10398 rm -f conftest.$ac_objext
10399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10400   (eval $ac_compile) 2>conftest.er1
10401   ac_status=$?
10402   grep -v '^ *+' conftest.er1 >conftest.err
10403   rm -f conftest.er1
10404   cat conftest.err >&5
10405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10406   (exit $ac_status); } &&
10407          { ac_try='test -z "$ac_c_werror_flag"
10408                          || test ! -s conftest.err'
10409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10410   (eval $ac_try) 2>&5
10411   ac_status=$?
10412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10413   (exit $ac_status); }; } &&
10414          { ac_try='test -s conftest.$ac_objext'
10415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10416   (eval $ac_try) 2>&5
10417   ac_status=$?
10418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10419   (exit $ac_status); }; }; then
10420   ac_cv_type_int=yes
10421 else
10422   echo "$as_me: failed program was:" >&5
10423 sed 's/^/| /' conftest.$ac_ext >&5
10424
10425 ac_cv_type_int=no
10426 fi
10427 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10428 fi
10429 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
10430 echo "${ECHO_T}$ac_cv_type_int" >&6
10431
10432 echo "$as_me:$LINENO: checking size of int" >&5
10433 echo $ECHO_N "checking size of int... $ECHO_C" >&6
10434 if test "${ac_cv_sizeof_int+set}" = set; then
10435   echo $ECHO_N "(cached) $ECHO_C" >&6
10436 else
10437   if test "$ac_cv_type_int" = yes; then
10438   # The cast to unsigned long works around a bug in the HP C Compiler
10439   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10440   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10441   # This bug is HP SR number 8606223364.
10442   if test "$cross_compiling" = yes; then
10443   # Depending upon the size, compute the lo and hi bounds.
10444 cat >conftest.$ac_ext <<_ACEOF
10445 /* confdefs.h.  */
10446 _ACEOF
10447 cat confdefs.h >>conftest.$ac_ext
10448 cat >>conftest.$ac_ext <<_ACEOF
10449 /* end confdefs.h.  */
10450 $ac_includes_default
10451 int
10452 main ()
10453 {
10454 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
10455 test_array [0] = 0
10456
10457   ;
10458   return 0;
10459 }
10460 _ACEOF
10461 rm -f conftest.$ac_objext
10462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10463   (eval $ac_compile) 2>conftest.er1
10464   ac_status=$?
10465   grep -v '^ *+' conftest.er1 >conftest.err
10466   rm -f conftest.er1
10467   cat conftest.err >&5
10468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10469   (exit $ac_status); } &&
10470          { ac_try='test -z "$ac_c_werror_flag"
10471                          || test ! -s conftest.err'
10472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10473   (eval $ac_try) 2>&5
10474   ac_status=$?
10475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10476   (exit $ac_status); }; } &&
10477          { ac_try='test -s conftest.$ac_objext'
10478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10479   (eval $ac_try) 2>&5
10480   ac_status=$?
10481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10482   (exit $ac_status); }; }; then
10483   ac_lo=0 ac_mid=0
10484   while :; do
10485     cat >conftest.$ac_ext <<_ACEOF
10486 /* confdefs.h.  */
10487 _ACEOF
10488 cat confdefs.h >>conftest.$ac_ext
10489 cat >>conftest.$ac_ext <<_ACEOF
10490 /* end confdefs.h.  */
10491 $ac_includes_default
10492 int
10493 main ()
10494 {
10495 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
10496 test_array [0] = 0
10497
10498   ;
10499   return 0;
10500 }
10501 _ACEOF
10502 rm -f conftest.$ac_objext
10503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10504   (eval $ac_compile) 2>conftest.er1
10505   ac_status=$?
10506   grep -v '^ *+' conftest.er1 >conftest.err
10507   rm -f conftest.er1
10508   cat conftest.err >&5
10509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10510   (exit $ac_status); } &&
10511          { ac_try='test -z "$ac_c_werror_flag"
10512                          || test ! -s conftest.err'
10513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10514   (eval $ac_try) 2>&5
10515   ac_status=$?
10516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10517   (exit $ac_status); }; } &&
10518          { ac_try='test -s conftest.$ac_objext'
10519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10520   (eval $ac_try) 2>&5
10521   ac_status=$?
10522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10523   (exit $ac_status); }; }; then
10524   ac_hi=$ac_mid; break
10525 else
10526   echo "$as_me: failed program was:" >&5
10527 sed 's/^/| /' conftest.$ac_ext >&5
10528
10529 ac_lo=`expr $ac_mid + 1`
10530                     if test $ac_lo -le $ac_mid; then
10531                       ac_lo= ac_hi=
10532                       break
10533                     fi
10534                     ac_mid=`expr 2 '*' $ac_mid + 1`
10535 fi
10536 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10537   done
10538 else
10539   echo "$as_me: failed program was:" >&5
10540 sed 's/^/| /' conftest.$ac_ext >&5
10541
10542 cat >conftest.$ac_ext <<_ACEOF
10543 /* confdefs.h.  */
10544 _ACEOF
10545 cat confdefs.h >>conftest.$ac_ext
10546 cat >>conftest.$ac_ext <<_ACEOF
10547 /* end confdefs.h.  */
10548 $ac_includes_default
10549 int
10550 main ()
10551 {
10552 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
10553 test_array [0] = 0
10554
10555   ;
10556   return 0;
10557 }
10558 _ACEOF
10559 rm -f conftest.$ac_objext
10560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10561   (eval $ac_compile) 2>conftest.er1
10562   ac_status=$?
10563   grep -v '^ *+' conftest.er1 >conftest.err
10564   rm -f conftest.er1
10565   cat conftest.err >&5
10566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10567   (exit $ac_status); } &&
10568          { ac_try='test -z "$ac_c_werror_flag"
10569                          || test ! -s conftest.err'
10570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10571   (eval $ac_try) 2>&5
10572   ac_status=$?
10573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10574   (exit $ac_status); }; } &&
10575          { ac_try='test -s conftest.$ac_objext'
10576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10577   (eval $ac_try) 2>&5
10578   ac_status=$?
10579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10580   (exit $ac_status); }; }; then
10581   ac_hi=-1 ac_mid=-1
10582   while :; do
10583     cat >conftest.$ac_ext <<_ACEOF
10584 /* confdefs.h.  */
10585 _ACEOF
10586 cat confdefs.h >>conftest.$ac_ext
10587 cat >>conftest.$ac_ext <<_ACEOF
10588 /* end confdefs.h.  */
10589 $ac_includes_default
10590 int
10591 main ()
10592 {
10593 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
10594 test_array [0] = 0
10595
10596   ;
10597   return 0;
10598 }
10599 _ACEOF
10600 rm -f conftest.$ac_objext
10601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10602   (eval $ac_compile) 2>conftest.er1
10603   ac_status=$?
10604   grep -v '^ *+' conftest.er1 >conftest.err
10605   rm -f conftest.er1
10606   cat conftest.err >&5
10607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10608   (exit $ac_status); } &&
10609          { ac_try='test -z "$ac_c_werror_flag"
10610                          || test ! -s conftest.err'
10611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10612   (eval $ac_try) 2>&5
10613   ac_status=$?
10614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10615   (exit $ac_status); }; } &&
10616          { ac_try='test -s conftest.$ac_objext'
10617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10618   (eval $ac_try) 2>&5
10619   ac_status=$?
10620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10621   (exit $ac_status); }; }; then
10622   ac_lo=$ac_mid; break
10623 else
10624   echo "$as_me: failed program was:" >&5
10625 sed 's/^/| /' conftest.$ac_ext >&5
10626
10627 ac_hi=`expr '(' $ac_mid ')' - 1`
10628                        if test $ac_mid -le $ac_hi; then
10629                          ac_lo= ac_hi=
10630                          break
10631                        fi
10632                        ac_mid=`expr 2 '*' $ac_mid`
10633 fi
10634 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10635   done
10636 else
10637   echo "$as_me: failed program was:" >&5
10638 sed 's/^/| /' conftest.$ac_ext >&5
10639
10640 ac_lo= ac_hi=
10641 fi
10642 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10643 fi
10644 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10645 # Binary search between lo and hi bounds.
10646 while test "x$ac_lo" != "x$ac_hi"; do
10647   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10648   cat >conftest.$ac_ext <<_ACEOF
10649 /* confdefs.h.  */
10650 _ACEOF
10651 cat confdefs.h >>conftest.$ac_ext
10652 cat >>conftest.$ac_ext <<_ACEOF
10653 /* end confdefs.h.  */
10654 $ac_includes_default
10655 int
10656 main ()
10657 {
10658 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
10659 test_array [0] = 0
10660
10661   ;
10662   return 0;
10663 }
10664 _ACEOF
10665 rm -f conftest.$ac_objext
10666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10667   (eval $ac_compile) 2>conftest.er1
10668   ac_status=$?
10669   grep -v '^ *+' conftest.er1 >conftest.err
10670   rm -f conftest.er1
10671   cat conftest.err >&5
10672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10673   (exit $ac_status); } &&
10674          { ac_try='test -z "$ac_c_werror_flag"
10675                          || test ! -s conftest.err'
10676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10677   (eval $ac_try) 2>&5
10678   ac_status=$?
10679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10680   (exit $ac_status); }; } &&
10681          { ac_try='test -s conftest.$ac_objext'
10682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10683   (eval $ac_try) 2>&5
10684   ac_status=$?
10685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10686   (exit $ac_status); }; }; then
10687   ac_hi=$ac_mid
10688 else
10689   echo "$as_me: failed program was:" >&5
10690 sed 's/^/| /' conftest.$ac_ext >&5
10691
10692 ac_lo=`expr '(' $ac_mid ')' + 1`
10693 fi
10694 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10695 done
10696 case $ac_lo in
10697 ?*) ac_cv_sizeof_int=$ac_lo;;
10698 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
10699 See \`config.log' for more details." >&5
10700 echo "$as_me: error: cannot compute sizeof (int), 77
10701 See \`config.log' for more details." >&2;}
10702    { (exit 1); exit 1; }; } ;;
10703 esac
10704 else
10705   if test "$cross_compiling" = yes; then
10706   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10707 See \`config.log' for more details." >&5
10708 echo "$as_me: error: cannot run test program while cross compiling
10709 See \`config.log' for more details." >&2;}
10710    { (exit 1); exit 1; }; }
10711 else
10712   cat >conftest.$ac_ext <<_ACEOF
10713 /* confdefs.h.  */
10714 _ACEOF
10715 cat confdefs.h >>conftest.$ac_ext
10716 cat >>conftest.$ac_ext <<_ACEOF
10717 /* end confdefs.h.  */
10718 $ac_includes_default
10719 long longval () { return (long) (sizeof (int)); }
10720 unsigned long ulongval () { return (long) (sizeof (int)); }
10721 #include <stdio.h>
10722 #include <stdlib.h>
10723 int
10724 main ()
10725 {
10726
10727   FILE *f = fopen ("conftest.val", "w");
10728   if (! f)
10729     exit (1);
10730   if (((long) (sizeof (int))) < 0)
10731     {
10732       long i = longval ();
10733       if (i != ((long) (sizeof (int))))
10734         exit (1);
10735       fprintf (f, "%ld\n", i);
10736     }
10737   else
10738     {
10739       unsigned long i = ulongval ();
10740       if (i != ((long) (sizeof (int))))
10741         exit (1);
10742       fprintf (f, "%lu\n", i);
10743     }
10744   exit (ferror (f) || fclose (f) != 0);
10745
10746   ;
10747   return 0;
10748 }
10749 _ACEOF
10750 rm -f conftest$ac_exeext
10751 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10752   (eval $ac_link) 2>&5
10753   ac_status=$?
10754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10755   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10757   (eval $ac_try) 2>&5
10758   ac_status=$?
10759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10760   (exit $ac_status); }; }; then
10761   ac_cv_sizeof_int=`cat conftest.val`
10762 else
10763   echo "$as_me: program exited with status $ac_status" >&5
10764 echo "$as_me: failed program was:" >&5
10765 sed 's/^/| /' conftest.$ac_ext >&5
10766
10767 ( exit $ac_status )
10768 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
10769 See \`config.log' for more details." >&5
10770 echo "$as_me: error: cannot compute sizeof (int), 77
10771 See \`config.log' for more details." >&2;}
10772    { (exit 1); exit 1; }; }
10773 fi
10774 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10775 fi
10776 fi
10777 rm -f conftest.val
10778 else
10779   ac_cv_sizeof_int=0
10780 fi
10781 fi
10782 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
10783 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
10784 cat >>confdefs.h <<_ACEOF
10785 #define SIZEOF_INT $ac_cv_sizeof_int
10786 _ACEOF
10787
10788
10789 echo "$as_me:$LINENO: checking for long" >&5
10790 echo $ECHO_N "checking for long... $ECHO_C" >&6
10791 if test "${ac_cv_type_long+set}" = set; then
10792   echo $ECHO_N "(cached) $ECHO_C" >&6
10793 else
10794   cat >conftest.$ac_ext <<_ACEOF
10795 /* confdefs.h.  */
10796 _ACEOF
10797 cat confdefs.h >>conftest.$ac_ext
10798 cat >>conftest.$ac_ext <<_ACEOF
10799 /* end confdefs.h.  */
10800 $ac_includes_default
10801 int
10802 main ()
10803 {
10804 if ((long *) 0)
10805   return 0;
10806 if (sizeof (long))
10807   return 0;
10808   ;
10809   return 0;
10810 }
10811 _ACEOF
10812 rm -f conftest.$ac_objext
10813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10814   (eval $ac_compile) 2>conftest.er1
10815   ac_status=$?
10816   grep -v '^ *+' conftest.er1 >conftest.err
10817   rm -f conftest.er1
10818   cat conftest.err >&5
10819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10820   (exit $ac_status); } &&
10821          { ac_try='test -z "$ac_c_werror_flag"
10822                          || test ! -s conftest.err'
10823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10824   (eval $ac_try) 2>&5
10825   ac_status=$?
10826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10827   (exit $ac_status); }; } &&
10828          { ac_try='test -s conftest.$ac_objext'
10829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10830   (eval $ac_try) 2>&5
10831   ac_status=$?
10832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10833   (exit $ac_status); }; }; then
10834   ac_cv_type_long=yes
10835 else
10836   echo "$as_me: failed program was:" >&5
10837 sed 's/^/| /' conftest.$ac_ext >&5
10838
10839 ac_cv_type_long=no
10840 fi
10841 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10842 fi
10843 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
10844 echo "${ECHO_T}$ac_cv_type_long" >&6
10845
10846 echo "$as_me:$LINENO: checking size of long" >&5
10847 echo $ECHO_N "checking size of long... $ECHO_C" >&6
10848 if test "${ac_cv_sizeof_long+set}" = set; then
10849   echo $ECHO_N "(cached) $ECHO_C" >&6
10850 else
10851   if test "$ac_cv_type_long" = yes; then
10852   # The cast to unsigned long works around a bug in the HP C Compiler
10853   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10854   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10855   # This bug is HP SR number 8606223364.
10856   if test "$cross_compiling" = yes; then
10857   # Depending upon the size, compute the lo and hi bounds.
10858 cat >conftest.$ac_ext <<_ACEOF
10859 /* confdefs.h.  */
10860 _ACEOF
10861 cat confdefs.h >>conftest.$ac_ext
10862 cat >>conftest.$ac_ext <<_ACEOF
10863 /* end confdefs.h.  */
10864 $ac_includes_default
10865 int
10866 main ()
10867 {
10868 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
10869 test_array [0] = 0
10870
10871   ;
10872   return 0;
10873 }
10874 _ACEOF
10875 rm -f conftest.$ac_objext
10876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10877   (eval $ac_compile) 2>conftest.er1
10878   ac_status=$?
10879   grep -v '^ *+' conftest.er1 >conftest.err
10880   rm -f conftest.er1
10881   cat conftest.err >&5
10882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10883   (exit $ac_status); } &&
10884          { ac_try='test -z "$ac_c_werror_flag"
10885                          || test ! -s conftest.err'
10886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10887   (eval $ac_try) 2>&5
10888   ac_status=$?
10889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10890   (exit $ac_status); }; } &&
10891          { ac_try='test -s conftest.$ac_objext'
10892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10893   (eval $ac_try) 2>&5
10894   ac_status=$?
10895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10896   (exit $ac_status); }; }; then
10897   ac_lo=0 ac_mid=0
10898   while :; do
10899     cat >conftest.$ac_ext <<_ACEOF
10900 /* confdefs.h.  */
10901 _ACEOF
10902 cat confdefs.h >>conftest.$ac_ext
10903 cat >>conftest.$ac_ext <<_ACEOF
10904 /* end confdefs.h.  */
10905 $ac_includes_default
10906 int
10907 main ()
10908 {
10909 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
10910 test_array [0] = 0
10911
10912   ;
10913   return 0;
10914 }
10915 _ACEOF
10916 rm -f conftest.$ac_objext
10917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10918   (eval $ac_compile) 2>conftest.er1
10919   ac_status=$?
10920   grep -v '^ *+' conftest.er1 >conftest.err
10921   rm -f conftest.er1
10922   cat conftest.err >&5
10923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10924   (exit $ac_status); } &&
10925          { ac_try='test -z "$ac_c_werror_flag"
10926                          || test ! -s conftest.err'
10927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10928   (eval $ac_try) 2>&5
10929   ac_status=$?
10930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10931   (exit $ac_status); }; } &&
10932          { ac_try='test -s conftest.$ac_objext'
10933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10934   (eval $ac_try) 2>&5
10935   ac_status=$?
10936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10937   (exit $ac_status); }; }; then
10938   ac_hi=$ac_mid; break
10939 else
10940   echo "$as_me: failed program was:" >&5
10941 sed 's/^/| /' conftest.$ac_ext >&5
10942
10943 ac_lo=`expr $ac_mid + 1`
10944                     if test $ac_lo -le $ac_mid; then
10945                       ac_lo= ac_hi=
10946                       break
10947                     fi
10948                     ac_mid=`expr 2 '*' $ac_mid + 1`
10949 fi
10950 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10951   done
10952 else
10953   echo "$as_me: failed program was:" >&5
10954 sed 's/^/| /' conftest.$ac_ext >&5
10955
10956 cat >conftest.$ac_ext <<_ACEOF
10957 /* confdefs.h.  */
10958 _ACEOF
10959 cat confdefs.h >>conftest.$ac_ext
10960 cat >>conftest.$ac_ext <<_ACEOF
10961 /* end confdefs.h.  */
10962 $ac_includes_default
10963 int
10964 main ()
10965 {
10966 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
10967 test_array [0] = 0
10968
10969   ;
10970   return 0;
10971 }
10972 _ACEOF
10973 rm -f conftest.$ac_objext
10974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10975   (eval $ac_compile) 2>conftest.er1
10976   ac_status=$?
10977   grep -v '^ *+' conftest.er1 >conftest.err
10978   rm -f conftest.er1
10979   cat conftest.err >&5
10980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10981   (exit $ac_status); } &&
10982          { ac_try='test -z "$ac_c_werror_flag"
10983                          || test ! -s conftest.err'
10984   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10985   (eval $ac_try) 2>&5
10986   ac_status=$?
10987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10988   (exit $ac_status); }; } &&
10989          { ac_try='test -s conftest.$ac_objext'
10990   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10991   (eval $ac_try) 2>&5
10992   ac_status=$?
10993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10994   (exit $ac_status); }; }; then
10995   ac_hi=-1 ac_mid=-1
10996   while :; do
10997     cat >conftest.$ac_ext <<_ACEOF
10998 /* confdefs.h.  */
10999 _ACEOF
11000 cat confdefs.h >>conftest.$ac_ext
11001 cat >>conftest.$ac_ext <<_ACEOF
11002 /* end confdefs.h.  */
11003 $ac_includes_default
11004 int
11005 main ()
11006 {
11007 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
11008 test_array [0] = 0
11009
11010   ;
11011   return 0;
11012 }
11013 _ACEOF
11014 rm -f conftest.$ac_objext
11015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11016   (eval $ac_compile) 2>conftest.er1
11017   ac_status=$?
11018   grep -v '^ *+' conftest.er1 >conftest.err
11019   rm -f conftest.er1
11020   cat conftest.err >&5
11021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11022   (exit $ac_status); } &&
11023          { ac_try='test -z "$ac_c_werror_flag"
11024                          || test ! -s conftest.err'
11025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11026   (eval $ac_try) 2>&5
11027   ac_status=$?
11028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11029   (exit $ac_status); }; } &&
11030          { ac_try='test -s conftest.$ac_objext'
11031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11032   (eval $ac_try) 2>&5
11033   ac_status=$?
11034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11035   (exit $ac_status); }; }; then
11036   ac_lo=$ac_mid; break
11037 else
11038   echo "$as_me: failed program was:" >&5
11039 sed 's/^/| /' conftest.$ac_ext >&5
11040
11041 ac_hi=`expr '(' $ac_mid ')' - 1`
11042                        if test $ac_mid -le $ac_hi; then
11043                          ac_lo= ac_hi=
11044                          break
11045                        fi
11046                        ac_mid=`expr 2 '*' $ac_mid`
11047 fi
11048 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11049   done
11050 else
11051   echo "$as_me: failed program was:" >&5
11052 sed 's/^/| /' conftest.$ac_ext >&5
11053
11054 ac_lo= ac_hi=
11055 fi
11056 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11057 fi
11058 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11059 # Binary search between lo and hi bounds.
11060 while test "x$ac_lo" != "x$ac_hi"; do
11061   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11062   cat >conftest.$ac_ext <<_ACEOF
11063 /* confdefs.h.  */
11064 _ACEOF
11065 cat confdefs.h >>conftest.$ac_ext
11066 cat >>conftest.$ac_ext <<_ACEOF
11067 /* end confdefs.h.  */
11068 $ac_includes_default
11069 int
11070 main ()
11071 {
11072 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
11073 test_array [0] = 0
11074
11075   ;
11076   return 0;
11077 }
11078 _ACEOF
11079 rm -f conftest.$ac_objext
11080 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11081   (eval $ac_compile) 2>conftest.er1
11082   ac_status=$?
11083   grep -v '^ *+' conftest.er1 >conftest.err
11084   rm -f conftest.er1
11085   cat conftest.err >&5
11086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11087   (exit $ac_status); } &&
11088          { ac_try='test -z "$ac_c_werror_flag"
11089                          || test ! -s conftest.err'
11090   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11091   (eval $ac_try) 2>&5
11092   ac_status=$?
11093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11094   (exit $ac_status); }; } &&
11095          { ac_try='test -s conftest.$ac_objext'
11096   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11097   (eval $ac_try) 2>&5
11098   ac_status=$?
11099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11100   (exit $ac_status); }; }; then
11101   ac_hi=$ac_mid
11102 else
11103   echo "$as_me: failed program was:" >&5
11104 sed 's/^/| /' conftest.$ac_ext >&5
11105
11106 ac_lo=`expr '(' $ac_mid ')' + 1`
11107 fi
11108 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11109 done
11110 case $ac_lo in
11111 ?*) ac_cv_sizeof_long=$ac_lo;;
11112 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
11113 See \`config.log' for more details." >&5
11114 echo "$as_me: error: cannot compute sizeof (long), 77
11115 See \`config.log' for more details." >&2;}
11116    { (exit 1); exit 1; }; } ;;
11117 esac
11118 else
11119   if test "$cross_compiling" = yes; then
11120   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11121 See \`config.log' for more details." >&5
11122 echo "$as_me: error: cannot run test program while cross compiling
11123 See \`config.log' for more details." >&2;}
11124    { (exit 1); exit 1; }; }
11125 else
11126   cat >conftest.$ac_ext <<_ACEOF
11127 /* confdefs.h.  */
11128 _ACEOF
11129 cat confdefs.h >>conftest.$ac_ext
11130 cat >>conftest.$ac_ext <<_ACEOF
11131 /* end confdefs.h.  */
11132 $ac_includes_default
11133 long longval () { return (long) (sizeof (long)); }
11134 unsigned long ulongval () { return (long) (sizeof (long)); }
11135 #include <stdio.h>
11136 #include <stdlib.h>
11137 int
11138 main ()
11139 {
11140
11141   FILE *f = fopen ("conftest.val", "w");
11142   if (! f)
11143     exit (1);
11144   if (((long) (sizeof (long))) < 0)
11145     {
11146       long i = longval ();
11147       if (i != ((long) (sizeof (long))))
11148         exit (1);
11149       fprintf (f, "%ld\n", i);
11150     }
11151   else
11152     {
11153       unsigned long i = ulongval ();
11154       if (i != ((long) (sizeof (long))))
11155         exit (1);
11156       fprintf (f, "%lu\n", i);
11157     }
11158   exit (ferror (f) || fclose (f) != 0);
11159
11160   ;
11161   return 0;
11162 }
11163 _ACEOF
11164 rm -f conftest$ac_exeext
11165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11166   (eval $ac_link) 2>&5
11167   ac_status=$?
11168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11169   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11170   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11171   (eval $ac_try) 2>&5
11172   ac_status=$?
11173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11174   (exit $ac_status); }; }; then
11175   ac_cv_sizeof_long=`cat conftest.val`
11176 else
11177   echo "$as_me: program exited with status $ac_status" >&5
11178 echo "$as_me: failed program was:" >&5
11179 sed 's/^/| /' conftest.$ac_ext >&5
11180
11181 ( exit $ac_status )
11182 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
11183 See \`config.log' for more details." >&5
11184 echo "$as_me: error: cannot compute sizeof (long), 77
11185 See \`config.log' for more details." >&2;}
11186    { (exit 1); exit 1; }; }
11187 fi
11188 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11189 fi
11190 fi
11191 rm -f conftest.val
11192 else
11193   ac_cv_sizeof_long=0
11194 fi
11195 fi
11196 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
11197 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
11198 cat >>confdefs.h <<_ACEOF
11199 #define SIZEOF_LONG $ac_cv_sizeof_long
11200 _ACEOF
11201
11202
11203 echo "$as_me:$LINENO: checking for long long" >&5
11204 echo $ECHO_N "checking for long long... $ECHO_C" >&6
11205 if test "${ac_cv_type_long_long+set}" = set; then
11206   echo $ECHO_N "(cached) $ECHO_C" >&6
11207 else
11208   cat >conftest.$ac_ext <<_ACEOF
11209 /* confdefs.h.  */
11210 _ACEOF
11211 cat confdefs.h >>conftest.$ac_ext
11212 cat >>conftest.$ac_ext <<_ACEOF
11213 /* end confdefs.h.  */
11214 $ac_includes_default
11215 int
11216 main ()
11217 {
11218 if ((long long *) 0)
11219   return 0;
11220 if (sizeof (long long))
11221   return 0;
11222   ;
11223   return 0;
11224 }
11225 _ACEOF
11226 rm -f conftest.$ac_objext
11227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11228   (eval $ac_compile) 2>conftest.er1
11229   ac_status=$?
11230   grep -v '^ *+' conftest.er1 >conftest.err
11231   rm -f conftest.er1
11232   cat conftest.err >&5
11233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11234   (exit $ac_status); } &&
11235          { ac_try='test -z "$ac_c_werror_flag"
11236                          || test ! -s conftest.err'
11237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11238   (eval $ac_try) 2>&5
11239   ac_status=$?
11240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11241   (exit $ac_status); }; } &&
11242          { ac_try='test -s conftest.$ac_objext'
11243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11244   (eval $ac_try) 2>&5
11245   ac_status=$?
11246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11247   (exit $ac_status); }; }; then
11248   ac_cv_type_long_long=yes
11249 else
11250   echo "$as_me: failed program was:" >&5
11251 sed 's/^/| /' conftest.$ac_ext >&5
11252
11253 ac_cv_type_long_long=no
11254 fi
11255 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11256 fi
11257 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
11258 echo "${ECHO_T}$ac_cv_type_long_long" >&6
11259
11260 echo "$as_me:$LINENO: checking size of long long" >&5
11261 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
11262 if test "${ac_cv_sizeof_long_long+set}" = set; then
11263   echo $ECHO_N "(cached) $ECHO_C" >&6
11264 else
11265   if test "$ac_cv_type_long_long" = yes; then
11266   # The cast to unsigned long works around a bug in the HP C Compiler
11267   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11268   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11269   # This bug is HP SR number 8606223364.
11270   if test "$cross_compiling" = yes; then
11271   # Depending upon the size, compute the lo and hi bounds.
11272 cat >conftest.$ac_ext <<_ACEOF
11273 /* confdefs.h.  */
11274 _ACEOF
11275 cat confdefs.h >>conftest.$ac_ext
11276 cat >>conftest.$ac_ext <<_ACEOF
11277 /* end confdefs.h.  */
11278 $ac_includes_default
11279 int
11280 main ()
11281 {
11282 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
11283 test_array [0] = 0
11284
11285   ;
11286   return 0;
11287 }
11288 _ACEOF
11289 rm -f conftest.$ac_objext
11290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11291   (eval $ac_compile) 2>conftest.er1
11292   ac_status=$?
11293   grep -v '^ *+' conftest.er1 >conftest.err
11294   rm -f conftest.er1
11295   cat conftest.err >&5
11296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11297   (exit $ac_status); } &&
11298          { ac_try='test -z "$ac_c_werror_flag"
11299                          || test ! -s conftest.err'
11300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11301   (eval $ac_try) 2>&5
11302   ac_status=$?
11303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11304   (exit $ac_status); }; } &&
11305          { ac_try='test -s conftest.$ac_objext'
11306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11307   (eval $ac_try) 2>&5
11308   ac_status=$?
11309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11310   (exit $ac_status); }; }; then
11311   ac_lo=0 ac_mid=0
11312   while :; do
11313     cat >conftest.$ac_ext <<_ACEOF
11314 /* confdefs.h.  */
11315 _ACEOF
11316 cat confdefs.h >>conftest.$ac_ext
11317 cat >>conftest.$ac_ext <<_ACEOF
11318 /* end confdefs.h.  */
11319 $ac_includes_default
11320 int
11321 main ()
11322 {
11323 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
11324 test_array [0] = 0
11325
11326   ;
11327   return 0;
11328 }
11329 _ACEOF
11330 rm -f conftest.$ac_objext
11331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11332   (eval $ac_compile) 2>conftest.er1
11333   ac_status=$?
11334   grep -v '^ *+' conftest.er1 >conftest.err
11335   rm -f conftest.er1
11336   cat conftest.err >&5
11337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11338   (exit $ac_status); } &&
11339          { ac_try='test -z "$ac_c_werror_flag"
11340                          || test ! -s conftest.err'
11341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11342   (eval $ac_try) 2>&5
11343   ac_status=$?
11344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11345   (exit $ac_status); }; } &&
11346          { ac_try='test -s conftest.$ac_objext'
11347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11348   (eval $ac_try) 2>&5
11349   ac_status=$?
11350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11351   (exit $ac_status); }; }; then
11352   ac_hi=$ac_mid; break
11353 else
11354   echo "$as_me: failed program was:" >&5
11355 sed 's/^/| /' conftest.$ac_ext >&5
11356
11357 ac_lo=`expr $ac_mid + 1`
11358                     if test $ac_lo -le $ac_mid; then
11359                       ac_lo= ac_hi=
11360                       break
11361                     fi
11362                     ac_mid=`expr 2 '*' $ac_mid + 1`
11363 fi
11364 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11365   done
11366 else
11367   echo "$as_me: failed program was:" >&5
11368 sed 's/^/| /' conftest.$ac_ext >&5
11369
11370 cat >conftest.$ac_ext <<_ACEOF
11371 /* confdefs.h.  */
11372 _ACEOF
11373 cat confdefs.h >>conftest.$ac_ext
11374 cat >>conftest.$ac_ext <<_ACEOF
11375 /* end confdefs.h.  */
11376 $ac_includes_default
11377 int
11378 main ()
11379 {
11380 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
11381 test_array [0] = 0
11382
11383   ;
11384   return 0;
11385 }
11386 _ACEOF
11387 rm -f conftest.$ac_objext
11388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11389   (eval $ac_compile) 2>conftest.er1
11390   ac_status=$?
11391   grep -v '^ *+' conftest.er1 >conftest.err
11392   rm -f conftest.er1
11393   cat conftest.err >&5
11394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11395   (exit $ac_status); } &&
11396          { ac_try='test -z "$ac_c_werror_flag"
11397                          || test ! -s conftest.err'
11398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11399   (eval $ac_try) 2>&5
11400   ac_status=$?
11401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11402   (exit $ac_status); }; } &&
11403          { ac_try='test -s conftest.$ac_objext'
11404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11405   (eval $ac_try) 2>&5
11406   ac_status=$?
11407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11408   (exit $ac_status); }; }; then
11409   ac_hi=-1 ac_mid=-1
11410   while :; do
11411     cat >conftest.$ac_ext <<_ACEOF
11412 /* confdefs.h.  */
11413 _ACEOF
11414 cat confdefs.h >>conftest.$ac_ext
11415 cat >>conftest.$ac_ext <<_ACEOF
11416 /* end confdefs.h.  */
11417 $ac_includes_default
11418 int
11419 main ()
11420 {
11421 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
11422 test_array [0] = 0
11423
11424   ;
11425   return 0;
11426 }
11427 _ACEOF
11428 rm -f conftest.$ac_objext
11429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11430   (eval $ac_compile) 2>conftest.er1
11431   ac_status=$?
11432   grep -v '^ *+' conftest.er1 >conftest.err
11433   rm -f conftest.er1
11434   cat conftest.err >&5
11435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11436   (exit $ac_status); } &&
11437          { ac_try='test -z "$ac_c_werror_flag"
11438                          || test ! -s conftest.err'
11439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11440   (eval $ac_try) 2>&5
11441   ac_status=$?
11442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11443   (exit $ac_status); }; } &&
11444          { ac_try='test -s conftest.$ac_objext'
11445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11446   (eval $ac_try) 2>&5
11447   ac_status=$?
11448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11449   (exit $ac_status); }; }; then
11450   ac_lo=$ac_mid; break
11451 else
11452   echo "$as_me: failed program was:" >&5
11453 sed 's/^/| /' conftest.$ac_ext >&5
11454
11455 ac_hi=`expr '(' $ac_mid ')' - 1`
11456                        if test $ac_mid -le $ac_hi; then
11457                          ac_lo= ac_hi=
11458                          break
11459                        fi
11460                        ac_mid=`expr 2 '*' $ac_mid`
11461 fi
11462 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11463   done
11464 else
11465   echo "$as_me: failed program was:" >&5
11466 sed 's/^/| /' conftest.$ac_ext >&5
11467
11468 ac_lo= ac_hi=
11469 fi
11470 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11471 fi
11472 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11473 # Binary search between lo and hi bounds.
11474 while test "x$ac_lo" != "x$ac_hi"; do
11475   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11476   cat >conftest.$ac_ext <<_ACEOF
11477 /* confdefs.h.  */
11478 _ACEOF
11479 cat confdefs.h >>conftest.$ac_ext
11480 cat >>conftest.$ac_ext <<_ACEOF
11481 /* end confdefs.h.  */
11482 $ac_includes_default
11483 int
11484 main ()
11485 {
11486 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
11487 test_array [0] = 0
11488
11489   ;
11490   return 0;
11491 }
11492 _ACEOF
11493 rm -f conftest.$ac_objext
11494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11495   (eval $ac_compile) 2>conftest.er1
11496   ac_status=$?
11497   grep -v '^ *+' conftest.er1 >conftest.err
11498   rm -f conftest.er1
11499   cat conftest.err >&5
11500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11501   (exit $ac_status); } &&
11502          { ac_try='test -z "$ac_c_werror_flag"
11503                          || test ! -s conftest.err'
11504   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11505   (eval $ac_try) 2>&5
11506   ac_status=$?
11507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11508   (exit $ac_status); }; } &&
11509          { ac_try='test -s conftest.$ac_objext'
11510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11511   (eval $ac_try) 2>&5
11512   ac_status=$?
11513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11514   (exit $ac_status); }; }; then
11515   ac_hi=$ac_mid
11516 else
11517   echo "$as_me: failed program was:" >&5
11518 sed 's/^/| /' conftest.$ac_ext >&5
11519
11520 ac_lo=`expr '(' $ac_mid ')' + 1`
11521 fi
11522 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11523 done
11524 case $ac_lo in
11525 ?*) ac_cv_sizeof_long_long=$ac_lo;;
11526 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
11527 See \`config.log' for more details." >&5
11528 echo "$as_me: error: cannot compute sizeof (long long), 77
11529 See \`config.log' for more details." >&2;}
11530    { (exit 1); exit 1; }; } ;;
11531 esac
11532 else
11533   if test "$cross_compiling" = yes; then
11534   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11535 See \`config.log' for more details." >&5
11536 echo "$as_me: error: cannot run test program while cross compiling
11537 See \`config.log' for more details." >&2;}
11538    { (exit 1); exit 1; }; }
11539 else
11540   cat >conftest.$ac_ext <<_ACEOF
11541 /* confdefs.h.  */
11542 _ACEOF
11543 cat confdefs.h >>conftest.$ac_ext
11544 cat >>conftest.$ac_ext <<_ACEOF
11545 /* end confdefs.h.  */
11546 $ac_includes_default
11547 long longval () { return (long) (sizeof (long long)); }
11548 unsigned long ulongval () { return (long) (sizeof (long long)); }
11549 #include <stdio.h>
11550 #include <stdlib.h>
11551 int
11552 main ()
11553 {
11554
11555   FILE *f = fopen ("conftest.val", "w");
11556   if (! f)
11557     exit (1);
11558   if (((long) (sizeof (long long))) < 0)
11559     {
11560       long i = longval ();
11561       if (i != ((long) (sizeof (long long))))
11562         exit (1);
11563       fprintf (f, "%ld\n", i);
11564     }
11565   else
11566     {
11567       unsigned long i = ulongval ();
11568       if (i != ((long) (sizeof (long long))))
11569         exit (1);
11570       fprintf (f, "%lu\n", i);
11571     }
11572   exit (ferror (f) || fclose (f) != 0);
11573
11574   ;
11575   return 0;
11576 }
11577 _ACEOF
11578 rm -f conftest$ac_exeext
11579 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11580   (eval $ac_link) 2>&5
11581   ac_status=$?
11582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11583   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11585   (eval $ac_try) 2>&5
11586   ac_status=$?
11587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11588   (exit $ac_status); }; }; then
11589   ac_cv_sizeof_long_long=`cat conftest.val`
11590 else
11591   echo "$as_me: program exited with status $ac_status" >&5
11592 echo "$as_me: failed program was:" >&5
11593 sed 's/^/| /' conftest.$ac_ext >&5
11594
11595 ( exit $ac_status )
11596 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
11597 See \`config.log' for more details." >&5
11598 echo "$as_me: error: cannot compute sizeof (long long), 77
11599 See \`config.log' for more details." >&2;}
11600    { (exit 1); exit 1; }; }
11601 fi
11602 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11603 fi
11604 fi
11605 rm -f conftest.val
11606 else
11607   ac_cv_sizeof_long_long=0
11608 fi
11609 fi
11610 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
11611 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
11612 cat >>confdefs.h <<_ACEOF
11613 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
11614 _ACEOF
11615
11616
11617 echo "$as_me:$LINENO: checking for intmax_t" >&5
11618 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
11619 if test "${ac_cv_type_intmax_t+set}" = set; then
11620   echo $ECHO_N "(cached) $ECHO_C" >&6
11621 else
11622   cat >conftest.$ac_ext <<_ACEOF
11623 /* confdefs.h.  */
11624 _ACEOF
11625 cat confdefs.h >>conftest.$ac_ext
11626 cat >>conftest.$ac_ext <<_ACEOF
11627 /* end confdefs.h.  */
11628 $ac_includes_default
11629 int
11630 main ()
11631 {
11632 if ((intmax_t *) 0)
11633   return 0;
11634 if (sizeof (intmax_t))
11635   return 0;
11636   ;
11637   return 0;
11638 }
11639 _ACEOF
11640 rm -f conftest.$ac_objext
11641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11642   (eval $ac_compile) 2>conftest.er1
11643   ac_status=$?
11644   grep -v '^ *+' conftest.er1 >conftest.err
11645   rm -f conftest.er1
11646   cat conftest.err >&5
11647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11648   (exit $ac_status); } &&
11649          { ac_try='test -z "$ac_c_werror_flag"
11650                          || test ! -s conftest.err'
11651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11652   (eval $ac_try) 2>&5
11653   ac_status=$?
11654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11655   (exit $ac_status); }; } &&
11656          { ac_try='test -s conftest.$ac_objext'
11657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11658   (eval $ac_try) 2>&5
11659   ac_status=$?
11660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11661   (exit $ac_status); }; }; then
11662   ac_cv_type_intmax_t=yes
11663 else
11664   echo "$as_me: failed program was:" >&5
11665 sed 's/^/| /' conftest.$ac_ext >&5
11666
11667 ac_cv_type_intmax_t=no
11668 fi
11669 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11670 fi
11671 echo "$as_me:$LINENO: result: $ac_cv_type_intmax_t" >&5
11672 echo "${ECHO_T}$ac_cv_type_intmax_t" >&6
11673
11674 echo "$as_me:$LINENO: checking size of intmax_t" >&5
11675 echo $ECHO_N "checking size of intmax_t... $ECHO_C" >&6
11676 if test "${ac_cv_sizeof_intmax_t+set}" = set; then
11677   echo $ECHO_N "(cached) $ECHO_C" >&6
11678 else
11679   if test "$ac_cv_type_intmax_t" = yes; then
11680   # The cast to unsigned long works around a bug in the HP C Compiler
11681   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11682   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11683   # This bug is HP SR number 8606223364.
11684   if test "$cross_compiling" = yes; then
11685   # Depending upon the size, compute the lo and hi bounds.
11686 cat >conftest.$ac_ext <<_ACEOF
11687 /* confdefs.h.  */
11688 _ACEOF
11689 cat confdefs.h >>conftest.$ac_ext
11690 cat >>conftest.$ac_ext <<_ACEOF
11691 /* end confdefs.h.  */
11692 $ac_includes_default
11693 int
11694 main ()
11695 {
11696 static int test_array [1 - 2 * !(((long) (sizeof (intmax_t))) >= 0)];
11697 test_array [0] = 0
11698
11699   ;
11700   return 0;
11701 }
11702 _ACEOF
11703 rm -f conftest.$ac_objext
11704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11705   (eval $ac_compile) 2>conftest.er1
11706   ac_status=$?
11707   grep -v '^ *+' conftest.er1 >conftest.err
11708   rm -f conftest.er1
11709   cat conftest.err >&5
11710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11711   (exit $ac_status); } &&
11712          { ac_try='test -z "$ac_c_werror_flag"
11713                          || test ! -s conftest.err'
11714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11715   (eval $ac_try) 2>&5
11716   ac_status=$?
11717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11718   (exit $ac_status); }; } &&
11719          { ac_try='test -s conftest.$ac_objext'
11720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11721   (eval $ac_try) 2>&5
11722   ac_status=$?
11723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11724   (exit $ac_status); }; }; then
11725   ac_lo=0 ac_mid=0
11726   while :; do
11727     cat >conftest.$ac_ext <<_ACEOF
11728 /* confdefs.h.  */
11729 _ACEOF
11730 cat confdefs.h >>conftest.$ac_ext
11731 cat >>conftest.$ac_ext <<_ACEOF
11732 /* end confdefs.h.  */
11733 $ac_includes_default
11734 int
11735 main ()
11736 {
11737 static int test_array [1 - 2 * !(((long) (sizeof (intmax_t))) <= $ac_mid)];
11738 test_array [0] = 0
11739
11740   ;
11741   return 0;
11742 }
11743 _ACEOF
11744 rm -f conftest.$ac_objext
11745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11746   (eval $ac_compile) 2>conftest.er1
11747   ac_status=$?
11748   grep -v '^ *+' conftest.er1 >conftest.err
11749   rm -f conftest.er1
11750   cat conftest.err >&5
11751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11752   (exit $ac_status); } &&
11753          { ac_try='test -z "$ac_c_werror_flag"
11754                          || test ! -s conftest.err'
11755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11756   (eval $ac_try) 2>&5
11757   ac_status=$?
11758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11759   (exit $ac_status); }; } &&
11760          { ac_try='test -s conftest.$ac_objext'
11761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11762   (eval $ac_try) 2>&5
11763   ac_status=$?
11764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11765   (exit $ac_status); }; }; then
11766   ac_hi=$ac_mid; break
11767 else
11768   echo "$as_me: failed program was:" >&5
11769 sed 's/^/| /' conftest.$ac_ext >&5
11770
11771 ac_lo=`expr $ac_mid + 1`
11772                     if test $ac_lo -le $ac_mid; then
11773                       ac_lo= ac_hi=
11774                       break
11775                     fi
11776                     ac_mid=`expr 2 '*' $ac_mid + 1`
11777 fi
11778 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11779   done
11780 else
11781   echo "$as_me: failed program was:" >&5
11782 sed 's/^/| /' conftest.$ac_ext >&5
11783
11784 cat >conftest.$ac_ext <<_ACEOF
11785 /* confdefs.h.  */
11786 _ACEOF
11787 cat confdefs.h >>conftest.$ac_ext
11788 cat >>conftest.$ac_ext <<_ACEOF
11789 /* end confdefs.h.  */
11790 $ac_includes_default
11791 int
11792 main ()
11793 {
11794 static int test_array [1 - 2 * !(((long) (sizeof (intmax_t))) < 0)];
11795 test_array [0] = 0
11796
11797   ;
11798   return 0;
11799 }
11800 _ACEOF
11801 rm -f conftest.$ac_objext
11802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11803   (eval $ac_compile) 2>conftest.er1
11804   ac_status=$?
11805   grep -v '^ *+' conftest.er1 >conftest.err
11806   rm -f conftest.er1
11807   cat conftest.err >&5
11808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11809   (exit $ac_status); } &&
11810          { ac_try='test -z "$ac_c_werror_flag"
11811                          || test ! -s conftest.err'
11812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11813   (eval $ac_try) 2>&5
11814   ac_status=$?
11815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11816   (exit $ac_status); }; } &&
11817          { ac_try='test -s conftest.$ac_objext'
11818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11819   (eval $ac_try) 2>&5
11820   ac_status=$?
11821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11822   (exit $ac_status); }; }; then
11823   ac_hi=-1 ac_mid=-1
11824   while :; do
11825     cat >conftest.$ac_ext <<_ACEOF
11826 /* confdefs.h.  */
11827 _ACEOF
11828 cat confdefs.h >>conftest.$ac_ext
11829 cat >>conftest.$ac_ext <<_ACEOF
11830 /* end confdefs.h.  */
11831 $ac_includes_default
11832 int
11833 main ()
11834 {
11835 static int test_array [1 - 2 * !(((long) (sizeof (intmax_t))) >= $ac_mid)];
11836 test_array [0] = 0
11837
11838   ;
11839   return 0;
11840 }
11841 _ACEOF
11842 rm -f conftest.$ac_objext
11843 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11844   (eval $ac_compile) 2>conftest.er1
11845   ac_status=$?
11846   grep -v '^ *+' conftest.er1 >conftest.err
11847   rm -f conftest.er1
11848   cat conftest.err >&5
11849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11850   (exit $ac_status); } &&
11851          { ac_try='test -z "$ac_c_werror_flag"
11852                          || test ! -s conftest.err'
11853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11854   (eval $ac_try) 2>&5
11855   ac_status=$?
11856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11857   (exit $ac_status); }; } &&
11858          { ac_try='test -s conftest.$ac_objext'
11859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11860   (eval $ac_try) 2>&5
11861   ac_status=$?
11862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11863   (exit $ac_status); }; }; then
11864   ac_lo=$ac_mid; break
11865 else
11866   echo "$as_me: failed program was:" >&5
11867 sed 's/^/| /' conftest.$ac_ext >&5
11868
11869 ac_hi=`expr '(' $ac_mid ')' - 1`
11870                        if test $ac_mid -le $ac_hi; then
11871                          ac_lo= ac_hi=
11872                          break
11873                        fi
11874                        ac_mid=`expr 2 '*' $ac_mid`
11875 fi
11876 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11877   done
11878 else
11879   echo "$as_me: failed program was:" >&5
11880 sed 's/^/| /' conftest.$ac_ext >&5
11881
11882 ac_lo= ac_hi=
11883 fi
11884 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11885 fi
11886 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11887 # Binary search between lo and hi bounds.
11888 while test "x$ac_lo" != "x$ac_hi"; do
11889   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11890   cat >conftest.$ac_ext <<_ACEOF
11891 /* confdefs.h.  */
11892 _ACEOF
11893 cat confdefs.h >>conftest.$ac_ext
11894 cat >>conftest.$ac_ext <<_ACEOF
11895 /* end confdefs.h.  */
11896 $ac_includes_default
11897 int
11898 main ()
11899 {
11900 static int test_array [1 - 2 * !(((long) (sizeof (intmax_t))) <= $ac_mid)];
11901 test_array [0] = 0
11902
11903   ;
11904   return 0;
11905 }
11906 _ACEOF
11907 rm -f conftest.$ac_objext
11908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11909   (eval $ac_compile) 2>conftest.er1
11910   ac_status=$?
11911   grep -v '^ *+' conftest.er1 >conftest.err
11912   rm -f conftest.er1
11913   cat conftest.err >&5
11914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11915   (exit $ac_status); } &&
11916          { ac_try='test -z "$ac_c_werror_flag"
11917                          || test ! -s conftest.err'
11918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11919   (eval $ac_try) 2>&5
11920   ac_status=$?
11921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11922   (exit $ac_status); }; } &&
11923          { ac_try='test -s conftest.$ac_objext'
11924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11925   (eval $ac_try) 2>&5
11926   ac_status=$?
11927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11928   (exit $ac_status); }; }; then
11929   ac_hi=$ac_mid
11930 else
11931   echo "$as_me: failed program was:" >&5
11932 sed 's/^/| /' conftest.$ac_ext >&5
11933
11934 ac_lo=`expr '(' $ac_mid ')' + 1`
11935 fi
11936 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11937 done
11938 case $ac_lo in
11939 ?*) ac_cv_sizeof_intmax_t=$ac_lo;;
11940 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (intmax_t), 77
11941 See \`config.log' for more details." >&5
11942 echo "$as_me: error: cannot compute sizeof (intmax_t), 77
11943 See \`config.log' for more details." >&2;}
11944    { (exit 1); exit 1; }; } ;;
11945 esac
11946 else
11947   if test "$cross_compiling" = yes; then
11948   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11949 See \`config.log' for more details." >&5
11950 echo "$as_me: error: cannot run test program while cross compiling
11951 See \`config.log' for more details." >&2;}
11952    { (exit 1); exit 1; }; }
11953 else
11954   cat >conftest.$ac_ext <<_ACEOF
11955 /* confdefs.h.  */
11956 _ACEOF
11957 cat confdefs.h >>conftest.$ac_ext
11958 cat >>conftest.$ac_ext <<_ACEOF
11959 /* end confdefs.h.  */
11960 $ac_includes_default
11961 long longval () { return (long) (sizeof (intmax_t)); }
11962 unsigned long ulongval () { return (long) (sizeof (intmax_t)); }
11963 #include <stdio.h>
11964 #include <stdlib.h>
11965 int
11966 main ()
11967 {
11968
11969   FILE *f = fopen ("conftest.val", "w");
11970   if (! f)
11971     exit (1);
11972   if (((long) (sizeof (intmax_t))) < 0)
11973     {
11974       long i = longval ();
11975       if (i != ((long) (sizeof (intmax_t))))
11976         exit (1);
11977       fprintf (f, "%ld\n", i);
11978     }
11979   else
11980     {
11981       unsigned long i = ulongval ();
11982       if (i != ((long) (sizeof (intmax_t))))
11983         exit (1);
11984       fprintf (f, "%lu\n", i);
11985     }
11986   exit (ferror (f) || fclose (f) != 0);
11987
11988   ;
11989   return 0;
11990 }
11991 _ACEOF
11992 rm -f conftest$ac_exeext
11993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11994   (eval $ac_link) 2>&5
11995   ac_status=$?
11996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11997   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11999   (eval $ac_try) 2>&5
12000   ac_status=$?
12001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12002   (exit $ac_status); }; }; then
12003   ac_cv_sizeof_intmax_t=`cat conftest.val`
12004 else
12005   echo "$as_me: program exited with status $ac_status" >&5
12006 echo "$as_me: failed program was:" >&5
12007 sed 's/^/| /' conftest.$ac_ext >&5
12008
12009 ( exit $ac_status )
12010 { { echo "$as_me:$LINENO: error: cannot compute sizeof (intmax_t), 77
12011 See \`config.log' for more details." >&5
12012 echo "$as_me: error: cannot compute sizeof (intmax_t), 77
12013 See \`config.log' for more details." >&2;}
12014    { (exit 1); exit 1; }; }
12015 fi
12016 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12017 fi
12018 fi
12019 rm -f conftest.val
12020 else
12021   ac_cv_sizeof_intmax_t=0
12022 fi
12023 fi
12024 echo "$as_me:$LINENO: result: $ac_cv_sizeof_intmax_t" >&5
12025 echo "${ECHO_T}$ac_cv_sizeof_intmax_t" >&6
12026 cat >>confdefs.h <<_ACEOF
12027 #define SIZEOF_INTMAX_T $ac_cv_sizeof_intmax_t
12028 _ACEOF
12029
12030
12031 echo "$as_me:$LINENO: checking for off_t" >&5
12032 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
12033 if test "${ac_cv_type_off_t+set}" = set; then
12034   echo $ECHO_N "(cached) $ECHO_C" >&6
12035 else
12036   cat >conftest.$ac_ext <<_ACEOF
12037 /* confdefs.h.  */
12038 _ACEOF
12039 cat confdefs.h >>conftest.$ac_ext
12040 cat >>conftest.$ac_ext <<_ACEOF
12041 /* end confdefs.h.  */
12042 $ac_includes_default
12043 int
12044 main ()
12045 {
12046 if ((off_t *) 0)
12047   return 0;
12048 if (sizeof (off_t))
12049   return 0;
12050   ;
12051   return 0;
12052 }
12053 _ACEOF
12054 rm -f conftest.$ac_objext
12055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12056   (eval $ac_compile) 2>conftest.er1
12057   ac_status=$?
12058   grep -v '^ *+' conftest.er1 >conftest.err
12059   rm -f conftest.er1
12060   cat conftest.err >&5
12061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12062   (exit $ac_status); } &&
12063          { ac_try='test -z "$ac_c_werror_flag"
12064                          || test ! -s conftest.err'
12065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12066   (eval $ac_try) 2>&5
12067   ac_status=$?
12068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12069   (exit $ac_status); }; } &&
12070          { ac_try='test -s conftest.$ac_objext'
12071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12072   (eval $ac_try) 2>&5
12073   ac_status=$?
12074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12075   (exit $ac_status); }; }; then
12076   ac_cv_type_off_t=yes
12077 else
12078   echo "$as_me: failed program was:" >&5
12079 sed 's/^/| /' conftest.$ac_ext >&5
12080
12081 ac_cv_type_off_t=no
12082 fi
12083 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12084 fi
12085 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
12086 echo "${ECHO_T}$ac_cv_type_off_t" >&6
12087
12088 echo "$as_me:$LINENO: checking size of off_t" >&5
12089 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6
12090 if test "${ac_cv_sizeof_off_t+set}" = set; then
12091   echo $ECHO_N "(cached) $ECHO_C" >&6
12092 else
12093   if test "$ac_cv_type_off_t" = yes; then
12094   # The cast to unsigned long works around a bug in the HP C Compiler
12095   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12096   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12097   # This bug is HP SR number 8606223364.
12098   if test "$cross_compiling" = yes; then
12099   # Depending upon the size, compute the lo and hi bounds.
12100 cat >conftest.$ac_ext <<_ACEOF
12101 /* confdefs.h.  */
12102 _ACEOF
12103 cat confdefs.h >>conftest.$ac_ext
12104 cat >>conftest.$ac_ext <<_ACEOF
12105 /* end confdefs.h.  */
12106 $ac_includes_default
12107 int
12108 main ()
12109 {
12110 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= 0)];
12111 test_array [0] = 0
12112
12113   ;
12114   return 0;
12115 }
12116 _ACEOF
12117 rm -f conftest.$ac_objext
12118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12119   (eval $ac_compile) 2>conftest.er1
12120   ac_status=$?
12121   grep -v '^ *+' conftest.er1 >conftest.err
12122   rm -f conftest.er1
12123   cat conftest.err >&5
12124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12125   (exit $ac_status); } &&
12126          { ac_try='test -z "$ac_c_werror_flag"
12127                          || test ! -s conftest.err'
12128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12129   (eval $ac_try) 2>&5
12130   ac_status=$?
12131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12132   (exit $ac_status); }; } &&
12133          { ac_try='test -s conftest.$ac_objext'
12134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12135   (eval $ac_try) 2>&5
12136   ac_status=$?
12137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12138   (exit $ac_status); }; }; then
12139   ac_lo=0 ac_mid=0
12140   while :; do
12141     cat >conftest.$ac_ext <<_ACEOF
12142 /* confdefs.h.  */
12143 _ACEOF
12144 cat confdefs.h >>conftest.$ac_ext
12145 cat >>conftest.$ac_ext <<_ACEOF
12146 /* end confdefs.h.  */
12147 $ac_includes_default
12148 int
12149 main ()
12150 {
12151 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
12152 test_array [0] = 0
12153
12154   ;
12155   return 0;
12156 }
12157 _ACEOF
12158 rm -f conftest.$ac_objext
12159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12160   (eval $ac_compile) 2>conftest.er1
12161   ac_status=$?
12162   grep -v '^ *+' conftest.er1 >conftest.err
12163   rm -f conftest.er1
12164   cat conftest.err >&5
12165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12166   (exit $ac_status); } &&
12167          { ac_try='test -z "$ac_c_werror_flag"
12168                          || test ! -s conftest.err'
12169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12170   (eval $ac_try) 2>&5
12171   ac_status=$?
12172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12173   (exit $ac_status); }; } &&
12174          { ac_try='test -s conftest.$ac_objext'
12175   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12176   (eval $ac_try) 2>&5
12177   ac_status=$?
12178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12179   (exit $ac_status); }; }; then
12180   ac_hi=$ac_mid; break
12181 else
12182   echo "$as_me: failed program was:" >&5
12183 sed 's/^/| /' conftest.$ac_ext >&5
12184
12185 ac_lo=`expr $ac_mid + 1`
12186                     if test $ac_lo -le $ac_mid; then
12187                       ac_lo= ac_hi=
12188                       break
12189                     fi
12190                     ac_mid=`expr 2 '*' $ac_mid + 1`
12191 fi
12192 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12193   done
12194 else
12195   echo "$as_me: failed program was:" >&5
12196 sed 's/^/| /' conftest.$ac_ext >&5
12197
12198 cat >conftest.$ac_ext <<_ACEOF
12199 /* confdefs.h.  */
12200 _ACEOF
12201 cat confdefs.h >>conftest.$ac_ext
12202 cat >>conftest.$ac_ext <<_ACEOF
12203 /* end confdefs.h.  */
12204 $ac_includes_default
12205 int
12206 main ()
12207 {
12208 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) < 0)];
12209 test_array [0] = 0
12210
12211   ;
12212   return 0;
12213 }
12214 _ACEOF
12215 rm -f conftest.$ac_objext
12216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12217   (eval $ac_compile) 2>conftest.er1
12218   ac_status=$?
12219   grep -v '^ *+' conftest.er1 >conftest.err
12220   rm -f conftest.er1
12221   cat conftest.err >&5
12222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12223   (exit $ac_status); } &&
12224          { ac_try='test -z "$ac_c_werror_flag"
12225                          || test ! -s conftest.err'
12226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12227   (eval $ac_try) 2>&5
12228   ac_status=$?
12229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12230   (exit $ac_status); }; } &&
12231          { ac_try='test -s conftest.$ac_objext'
12232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12233   (eval $ac_try) 2>&5
12234   ac_status=$?
12235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12236   (exit $ac_status); }; }; then
12237   ac_hi=-1 ac_mid=-1
12238   while :; do
12239     cat >conftest.$ac_ext <<_ACEOF
12240 /* confdefs.h.  */
12241 _ACEOF
12242 cat confdefs.h >>conftest.$ac_ext
12243 cat >>conftest.$ac_ext <<_ACEOF
12244 /* end confdefs.h.  */
12245 $ac_includes_default
12246 int
12247 main ()
12248 {
12249 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= $ac_mid)];
12250 test_array [0] = 0
12251
12252   ;
12253   return 0;
12254 }
12255 _ACEOF
12256 rm -f conftest.$ac_objext
12257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12258   (eval $ac_compile) 2>conftest.er1
12259   ac_status=$?
12260   grep -v '^ *+' conftest.er1 >conftest.err
12261   rm -f conftest.er1
12262   cat conftest.err >&5
12263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12264   (exit $ac_status); } &&
12265          { ac_try='test -z "$ac_c_werror_flag"
12266                          || test ! -s conftest.err'
12267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12268   (eval $ac_try) 2>&5
12269   ac_status=$?
12270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12271   (exit $ac_status); }; } &&
12272          { ac_try='test -s conftest.$ac_objext'
12273   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12274   (eval $ac_try) 2>&5
12275   ac_status=$?
12276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12277   (exit $ac_status); }; }; then
12278   ac_lo=$ac_mid; break
12279 else
12280   echo "$as_me: failed program was:" >&5
12281 sed 's/^/| /' conftest.$ac_ext >&5
12282
12283 ac_hi=`expr '(' $ac_mid ')' - 1`
12284                        if test $ac_mid -le $ac_hi; then
12285                          ac_lo= ac_hi=
12286                          break
12287                        fi
12288                        ac_mid=`expr 2 '*' $ac_mid`
12289 fi
12290 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12291   done
12292 else
12293   echo "$as_me: failed program was:" >&5
12294 sed 's/^/| /' conftest.$ac_ext >&5
12295
12296 ac_lo= ac_hi=
12297 fi
12298 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12299 fi
12300 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12301 # Binary search between lo and hi bounds.
12302 while test "x$ac_lo" != "x$ac_hi"; do
12303   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12304   cat >conftest.$ac_ext <<_ACEOF
12305 /* confdefs.h.  */
12306 _ACEOF
12307 cat confdefs.h >>conftest.$ac_ext
12308 cat >>conftest.$ac_ext <<_ACEOF
12309 /* end confdefs.h.  */
12310 $ac_includes_default
12311 int
12312 main ()
12313 {
12314 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
12315 test_array [0] = 0
12316
12317   ;
12318   return 0;
12319 }
12320 _ACEOF
12321 rm -f conftest.$ac_objext
12322 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12323   (eval $ac_compile) 2>conftest.er1
12324   ac_status=$?
12325   grep -v '^ *+' conftest.er1 >conftest.err
12326   rm -f conftest.er1
12327   cat conftest.err >&5
12328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12329   (exit $ac_status); } &&
12330          { ac_try='test -z "$ac_c_werror_flag"
12331                          || test ! -s conftest.err'
12332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12333   (eval $ac_try) 2>&5
12334   ac_status=$?
12335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12336   (exit $ac_status); }; } &&
12337          { ac_try='test -s conftest.$ac_objext'
12338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12339   (eval $ac_try) 2>&5
12340   ac_status=$?
12341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12342   (exit $ac_status); }; }; then
12343   ac_hi=$ac_mid
12344 else
12345   echo "$as_me: failed program was:" >&5
12346 sed 's/^/| /' conftest.$ac_ext >&5
12347
12348 ac_lo=`expr '(' $ac_mid ')' + 1`
12349 fi
12350 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12351 done
12352 case $ac_lo in
12353 ?*) ac_cv_sizeof_off_t=$ac_lo;;
12354 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
12355 See \`config.log' for more details." >&5
12356 echo "$as_me: error: cannot compute sizeof (off_t), 77
12357 See \`config.log' for more details." >&2;}
12358    { (exit 1); exit 1; }; } ;;
12359 esac
12360 else
12361   if test "$cross_compiling" = yes; then
12362   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12363 See \`config.log' for more details." >&5
12364 echo "$as_me: error: cannot run test program while cross compiling
12365 See \`config.log' for more details." >&2;}
12366    { (exit 1); exit 1; }; }
12367 else
12368   cat >conftest.$ac_ext <<_ACEOF
12369 /* confdefs.h.  */
12370 _ACEOF
12371 cat confdefs.h >>conftest.$ac_ext
12372 cat >>conftest.$ac_ext <<_ACEOF
12373 /* end confdefs.h.  */
12374 $ac_includes_default
12375 long longval () { return (long) (sizeof (off_t)); }
12376 unsigned long ulongval () { return (long) (sizeof (off_t)); }
12377 #include <stdio.h>
12378 #include <stdlib.h>
12379 int
12380 main ()
12381 {
12382
12383   FILE *f = fopen ("conftest.val", "w");
12384   if (! f)
12385     exit (1);
12386   if (((long) (sizeof (off_t))) < 0)
12387     {
12388       long i = longval ();
12389       if (i != ((long) (sizeof (off_t))))
12390         exit (1);
12391       fprintf (f, "%ld\n", i);
12392     }
12393   else
12394     {
12395       unsigned long i = ulongval ();
12396       if (i != ((long) (sizeof (off_t))))
12397         exit (1);
12398       fprintf (f, "%lu\n", i);
12399     }
12400   exit (ferror (f) || fclose (f) != 0);
12401
12402   ;
12403   return 0;
12404 }
12405 _ACEOF
12406 rm -f conftest$ac_exeext
12407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12408   (eval $ac_link) 2>&5
12409   ac_status=$?
12410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12411   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12413   (eval $ac_try) 2>&5
12414   ac_status=$?
12415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12416   (exit $ac_status); }; }; then
12417   ac_cv_sizeof_off_t=`cat conftest.val`
12418 else
12419   echo "$as_me: program exited with status $ac_status" >&5
12420 echo "$as_me: failed program was:" >&5
12421 sed 's/^/| /' conftest.$ac_ext >&5
12422
12423 ( exit $ac_status )
12424 { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
12425 See \`config.log' for more details." >&5
12426 echo "$as_me: error: cannot compute sizeof (off_t), 77
12427 See \`config.log' for more details." >&2;}
12428    { (exit 1); exit 1; }; }
12429 fi
12430 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12431 fi
12432 fi
12433 rm -f conftest.val
12434 else
12435   ac_cv_sizeof_off_t=0
12436 fi
12437 fi
12438 echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
12439 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6
12440 cat >>confdefs.h <<_ACEOF
12441 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
12442 _ACEOF
12443
12444
12445
12446 # Check whether --enable-shared or --disable-shared was given.
12447 if test "${enable_shared+set}" = set; then
12448   enableval="$enable_shared"
12449   p=${PACKAGE-default}
12450     case $enableval in
12451     yes) enable_shared=yes ;;
12452     no) enable_shared=no ;;
12453     *)
12454       enable_shared=no
12455       # Look at the argument we got.  We use all the common list separators.
12456       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12457       for pkg in $enableval; do
12458         IFS="$lt_save_ifs"
12459         if test "X$pkg" = "X$p"; then
12460           enable_shared=yes
12461         fi
12462       done
12463       IFS="$lt_save_ifs"
12464       ;;
12465     esac
12466 else
12467   enable_shared=yes
12468 fi;
12469
12470 # Check whether --enable-static or --disable-static was given.
12471 if test "${enable_static+set}" = set; then
12472   enableval="$enable_static"
12473   p=${PACKAGE-default}
12474     case $enableval in
12475     yes) enable_static=yes ;;
12476     no) enable_static=no ;;
12477     *)
12478      enable_static=no
12479       # Look at the argument we got.  We use all the common list separators.
12480       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12481       for pkg in $enableval; do
12482         IFS="$lt_save_ifs"
12483         if test "X$pkg" = "X$p"; then
12484           enable_static=yes
12485         fi
12486       done
12487       IFS="$lt_save_ifs"
12488       ;;
12489     esac
12490 else
12491   enable_static=yes
12492 fi;
12493
12494 # Check whether --enable-fast-install or --disable-fast-install was given.
12495 if test "${enable_fast_install+set}" = set; then
12496   enableval="$enable_fast_install"
12497   p=${PACKAGE-default}
12498     case $enableval in
12499     yes) enable_fast_install=yes ;;
12500     no) enable_fast_install=no ;;
12501     *)
12502       enable_fast_install=no
12503       # Look at the argument we got.  We use all the common list separators.
12504       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12505       for pkg in $enableval; do
12506         IFS="$lt_save_ifs"
12507         if test "X$pkg" = "X$p"; then
12508           enable_fast_install=yes
12509         fi
12510       done
12511       IFS="$lt_save_ifs"
12512       ;;
12513     esac
12514 else
12515   enable_fast_install=yes
12516 fi;
12517
12518 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12519 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
12520 if test "${lt_cv_path_SED+set}" = set; then
12521   echo $ECHO_N "(cached) $ECHO_C" >&6
12522 else
12523   # Loop through the user's path and test for sed and gsed.
12524 # Then use that list of sed's as ones to test for truncation.
12525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12526 for as_dir in $PATH
12527 do
12528   IFS=$as_save_IFS
12529   test -z "$as_dir" && as_dir=.
12530   for lt_ac_prog in sed gsed; do
12531     for ac_exec_ext in '' $ac_executable_extensions; do
12532       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12533         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12534       fi
12535     done
12536   done
12537 done
12538 lt_ac_max=0
12539 lt_ac_count=0
12540 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
12541 # along with /bin/sed that truncates output.
12542 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
12543   test ! -f $lt_ac_sed && continue
12544   cat /dev/null > conftest.in
12545   lt_ac_count=0
12546   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12547   # Check for GNU sed and select it if it is found.
12548   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12549     lt_cv_path_SED=$lt_ac_sed
12550     break
12551   fi
12552   while true; do
12553     cat conftest.in conftest.in >conftest.tmp
12554     mv conftest.tmp conftest.in
12555     cp conftest.in conftest.nl
12556     echo >>conftest.nl
12557     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12558     cmp -s conftest.out conftest.nl || break
12559     # 10000 chars as input seems more than enough
12560     test $lt_ac_count -gt 10 && break
12561     lt_ac_count=`expr $lt_ac_count + 1`
12562     if test $lt_ac_count -gt $lt_ac_max; then
12563       lt_ac_max=$lt_ac_count
12564       lt_cv_path_SED=$lt_ac_sed
12565     fi
12566   done
12567 done
12568
12569 fi
12570
12571 SED=$lt_cv_path_SED
12572 echo "$as_me:$LINENO: result: $SED" >&5
12573 echo "${ECHO_T}$SED" >&6
12574
12575
12576 # Check whether --with-gnu-ld or --without-gnu-ld was given.
12577 if test "${with_gnu_ld+set}" = set; then
12578   withval="$with_gnu_ld"
12579   test "$withval" = no || with_gnu_ld=yes
12580 else
12581   with_gnu_ld=no
12582 fi;
12583 ac_prog=ld
12584 if test "$GCC" = yes; then
12585   # Check if gcc -print-prog-name=ld gives a path.
12586   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12587 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
12588   case $host in
12589   *-*-mingw*)
12590     # gcc leaves a trailing carriage return which upsets mingw
12591     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12592   *)
12593     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12594   esac
12595   case $ac_prog in
12596     # Accept absolute paths.
12597     [\\/]* | ?:[\\/]*)
12598       re_direlt='/[^/][^/]*/\.\./'
12599       # Canonicalize the pathname of ld
12600       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12601       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12602         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12603       done
12604       test -z "$LD" && LD="$ac_prog"
12605       ;;
12606   "")
12607     # If it fails, then pretend we aren't using GCC.
12608     ac_prog=ld
12609     ;;
12610   *)
12611     # If it is relative, then search for the first ld in PATH.
12612     with_gnu_ld=unknown
12613     ;;
12614   esac
12615 elif test "$with_gnu_ld" = yes; then
12616   echo "$as_me:$LINENO: checking for GNU ld" >&5
12617 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
12618 else
12619   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12620 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
12621 fi
12622 if test "${lt_cv_path_LD+set}" = set; then
12623   echo $ECHO_N "(cached) $ECHO_C" >&6
12624 else
12625   if test -z "$LD"; then
12626   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12627   for ac_dir in $PATH; do
12628     IFS="$lt_save_ifs"
12629     test -z "$ac_dir" && ac_dir=.
12630     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12631       lt_cv_path_LD="$ac_dir/$ac_prog"
12632       # Check to see if the program is GNU ld.  I'd rather use --version,
12633       # but apparently some variants of GNU ld only accept -v.
12634       # Break only if it was the GNU/non-GNU ld that we prefer.
12635       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12636       *GNU* | *'with BFD'*)
12637         test "$with_gnu_ld" != no && break
12638         ;;
12639       *)
12640         test "$with_gnu_ld" != yes && break
12641         ;;
12642       esac
12643     fi
12644   done
12645   IFS="$lt_save_ifs"
12646 else
12647   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12648 fi
12649 fi
12650
12651 LD="$lt_cv_path_LD"
12652 if test -n "$LD"; then
12653   echo "$as_me:$LINENO: result: $LD" >&5
12654 echo "${ECHO_T}$LD" >&6
12655 else
12656   echo "$as_me:$LINENO: result: no" >&5
12657 echo "${ECHO_T}no" >&6
12658 fi
12659 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12660 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12661    { (exit 1); exit 1; }; }
12662 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12663 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
12664 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12665   echo $ECHO_N "(cached) $ECHO_C" >&6
12666 else
12667   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12668 case `$LD -v 2>&1 </dev/null` in
12669 *GNU* | *'with BFD'*)
12670   lt_cv_prog_gnu_ld=yes
12671   ;;
12672 *)
12673   lt_cv_prog_gnu_ld=no
12674   ;;
12675 esac
12676 fi
12677 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12678 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
12679 with_gnu_ld=$lt_cv_prog_gnu_ld
12680
12681
12682 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12683 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
12684 if test "${lt_cv_ld_reload_flag+set}" = set; then
12685   echo $ECHO_N "(cached) $ECHO_C" >&6
12686 else
12687   lt_cv_ld_reload_flag='-r'
12688 fi
12689 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12690 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
12691 reload_flag=$lt_cv_ld_reload_flag
12692 case $reload_flag in
12693 "" | " "*) ;;
12694 *) reload_flag=" $reload_flag" ;;
12695 esac
12696 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12697 case $host_os in
12698   darwin*)
12699     if test "$GCC" = yes; then
12700       reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
12701     else
12702       reload_cmds='$LD$reload_flag -o $output$reload_objs'
12703     fi
12704     ;;
12705 esac
12706
12707 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
12708 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
12709 if test "${lt_cv_path_NM+set}" = set; then
12710   echo $ECHO_N "(cached) $ECHO_C" >&6
12711 else
12712   if test -n "$NM"; then
12713   # Let the user override the test.
12714   lt_cv_path_NM="$NM"
12715 else
12716   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12717   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
12718     IFS="$lt_save_ifs"
12719     test -z "$ac_dir" && ac_dir=.
12720     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
12721     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
12722       # Check to see if the nm accepts a BSD-compat flag.
12723       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
12724       #   nm: unknown option "B" ignored
12725       # Tru64's nm complains that /dev/null is an invalid object file
12726       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
12727       */dev/null* | *'Invalid file or object type'*)
12728         lt_cv_path_NM="$tmp_nm -B"
12729         break
12730         ;;
12731       *)
12732         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12733         */dev/null*)
12734           lt_cv_path_NM="$tmp_nm -p"
12735           break
12736           ;;
12737         *)
12738           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12739           continue # so that we can try to find one that supports BSD flags
12740           ;;
12741         esac
12742       esac
12743     fi
12744   done
12745   IFS="$lt_save_ifs"
12746   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
12747 fi
12748 fi
12749 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
12750 echo "${ECHO_T}$lt_cv_path_NM" >&6
12751 NM="$lt_cv_path_NM"
12752
12753 echo "$as_me:$LINENO: checking whether ln -s works" >&5
12754 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
12755 LN_S=$as_ln_s
12756 if test "$LN_S" = "ln -s"; then
12757   echo "$as_me:$LINENO: result: yes" >&5
12758 echo "${ECHO_T}yes" >&6
12759 else
12760   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
12761 echo "${ECHO_T}no, using $LN_S" >&6
12762 fi
12763
12764 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12765 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
12766 if test "${lt_cv_deplibs_check_method+set}" = set; then
12767   echo $ECHO_N "(cached) $ECHO_C" >&6
12768 else
12769   lt_cv_file_magic_cmd='$MAGIC_CMD'
12770 lt_cv_file_magic_test_file=
12771 lt_cv_deplibs_check_method='unknown'
12772 # Need to set the preceding variable on all platforms that support
12773 # interlibrary dependencies.
12774 # 'none' -- dependencies not supported.
12775 # `unknown' -- same as none, but documents that we really don't know.
12776 # 'pass_all' -- all dependencies passed with no checks.
12777 # 'test_compile' -- check by making test program.
12778 # 'file_magic [[regex]]' -- check by looking for files in library path
12779 # which responds to the $file_magic_cmd with a given extended regex.
12780 # If you have `file' or equivalent on your system and you're not sure
12781 # whether `pass_all' will *always* work, you probably want this one.
12782
12783 case $host_os in
12784 aix4* | aix5*)
12785   lt_cv_deplibs_check_method=pass_all
12786   ;;
12787
12788 beos*)
12789   lt_cv_deplibs_check_method=pass_all
12790   ;;
12791
12792 bsdi[45]*)
12793   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12794   lt_cv_file_magic_cmd='/usr/bin/file -L'
12795   lt_cv_file_magic_test_file=/shlib/libc.so
12796   ;;
12797
12798 cygwin*)
12799   # func_win32_libid is a shell function defined in ltmain.sh
12800   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12801   lt_cv_file_magic_cmd='func_win32_libid'
12802   ;;
12803
12804 mingw* | pw32*)
12805   # Base MSYS/MinGW do not provide the 'file' command needed by
12806   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12807   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12808   lt_cv_file_magic_cmd='$OBJDUMP -f'
12809   ;;
12810
12811 darwin* | rhapsody*)
12812   lt_cv_deplibs_check_method=pass_all
12813   ;;
12814
12815 freebsd* | kfreebsd*-gnu | dragonfly*)
12816   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12817     case $host_cpu in
12818     i*86 )
12819       # Not sure whether the presence of OpenBSD here was a mistake.
12820       # Let's accept both of them until this is cleared up.
12821       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12822       lt_cv_file_magic_cmd=/usr/bin/file
12823       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12824       ;;
12825     esac
12826   else
12827     lt_cv_deplibs_check_method=pass_all
12828   fi
12829   ;;
12830
12831 gnu*)
12832   lt_cv_deplibs_check_method=pass_all
12833   ;;
12834
12835 hpux10.20* | hpux11*)
12836   lt_cv_file_magic_cmd=/usr/bin/file
12837   case $host_cpu in
12838   ia64*)
12839     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12840     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12841     ;;
12842   hppa*64*)
12843     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]'
12844     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12845     ;;
12846   *)
12847     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12848     lt_cv_file_magic_test_file=/usr/lib/libc.sl
12849     ;;
12850   esac
12851   ;;
12852
12853 irix5* | irix6* | nonstopux*)
12854   case $LD in
12855   *-32|*"-32 ") libmagic=32-bit;;
12856   *-n32|*"-n32 ") libmagic=N32;;
12857   *-64|*"-64 ") libmagic=64-bit;;
12858   *) libmagic=never-match;;
12859   esac
12860   lt_cv_deplibs_check_method=pass_all
12861   ;;
12862
12863 # This must be Linux ELF.
12864 linux*)
12865   lt_cv_deplibs_check_method=pass_all
12866   ;;
12867
12868 netbsd*)
12869   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12870     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12871   else
12872     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12873   fi
12874   ;;
12875
12876 newos6*)
12877   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12878   lt_cv_file_magic_cmd=/usr/bin/file
12879   lt_cv_file_magic_test_file=/usr/lib/libnls.so
12880   ;;
12881
12882 nto-qnx*)
12883   lt_cv_deplibs_check_method=unknown
12884   ;;
12885
12886 openbsd*)
12887   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12888     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12889   else
12890     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12891   fi
12892   ;;
12893
12894 osf3* | osf4* | osf5*)
12895   lt_cv_deplibs_check_method=pass_all
12896   ;;
12897
12898 sco3.2v5*)
12899   lt_cv_deplibs_check_method=pass_all
12900   ;;
12901
12902 solaris*)
12903   lt_cv_deplibs_check_method=pass_all
12904   ;;
12905
12906 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12907   case $host_vendor in
12908   motorola)
12909     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]'
12910     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12911     ;;
12912   ncr)
12913     lt_cv_deplibs_check_method=pass_all
12914     ;;
12915   sequent)
12916     lt_cv_file_magic_cmd='/bin/file'
12917     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12918     ;;
12919   sni)
12920     lt_cv_file_magic_cmd='/bin/file'
12921     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12922     lt_cv_file_magic_test_file=/lib/libc.so
12923     ;;
12924   siemens)
12925     lt_cv_deplibs_check_method=pass_all
12926     ;;
12927   esac
12928   ;;
12929
12930 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
12931   lt_cv_deplibs_check_method=pass_all
12932   ;;
12933 esac
12934
12935 fi
12936 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12937 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
12938 file_magic_cmd=$lt_cv_file_magic_cmd
12939 deplibs_check_method=$lt_cv_deplibs_check_method
12940 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12941
12942
12943 # If no C compiler was specified, use CC.
12944 LTCC=${LTCC-"$CC"}
12945
12946 # Allow CC to be a program name with arguments.
12947 compiler=$CC
12948
12949 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
12950 if test "${enable_libtool_lock+set}" = set; then
12951   enableval="$enable_libtool_lock"
12952
12953 fi;
12954 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12955
12956 # Some flags need to be propagated to the compiler or linker for good
12957 # libtool support.
12958 case $host in
12959 ia64-*-hpux*)
12960   # Find out which ABI we are using.
12961   echo 'int i;' > conftest.$ac_ext
12962   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12963   (eval $ac_compile) 2>&5
12964   ac_status=$?
12965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12966   (exit $ac_status); }; then
12967     case `/usr/bin/file conftest.$ac_objext` in
12968     *ELF-32*)
12969       HPUX_IA64_MODE="32"
12970       ;;
12971     *ELF-64*)
12972       HPUX_IA64_MODE="64"
12973       ;;
12974     esac
12975   fi
12976   rm -rf conftest*
12977   ;;
12978 *-*-irix6*)
12979   # Find out which ABI we are using.
12980   echo '#line 12980 "configure"' > conftest.$ac_ext
12981   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12982   (eval $ac_compile) 2>&5
12983   ac_status=$?
12984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12985   (exit $ac_status); }; then
12986    if test "$lt_cv_prog_gnu_ld" = yes; then
12987     case `/usr/bin/file conftest.$ac_objext` in
12988     *32-bit*)
12989       LD="${LD-ld} -melf32bsmip"
12990       ;;
12991     *N32*)
12992       LD="${LD-ld} -melf32bmipn32"
12993       ;;
12994     *64-bit*)
12995       LD="${LD-ld} -melf64bmip"
12996       ;;
12997     esac
12998    else
12999     case `/usr/bin/file conftest.$ac_objext` in
13000     *32-bit*)
13001       LD="${LD-ld} -32"
13002       ;;
13003     *N32*)
13004       LD="${LD-ld} -n32"
13005       ;;
13006     *64-bit*)
13007       LD="${LD-ld} -64"
13008       ;;
13009     esac
13010    fi
13011   fi
13012   rm -rf conftest*
13013   ;;
13014
13015 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
13016   # Find out which ABI we are using.
13017   echo 'int i;' > conftest.$ac_ext
13018   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13019   (eval $ac_compile) 2>&5
13020   ac_status=$?
13021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13022   (exit $ac_status); }; then
13023     case `/usr/bin/file conftest.o` in
13024     *32-bit*)
13025       case $host in
13026         x86_64-*linux*)
13027           LD="${LD-ld} -m elf_i386"
13028           ;;
13029         ppc64-*linux*|powerpc64-*linux*)
13030           LD="${LD-ld} -m elf32ppclinux"
13031           ;;
13032         s390x-*linux*)
13033           LD="${LD-ld} -m elf_s390"
13034           ;;
13035         sparc64-*linux*)
13036           LD="${LD-ld} -m elf32_sparc"
13037           ;;
13038       esac
13039       ;;
13040     *64-bit*)
13041       case $host in
13042         x86_64-*linux*)
13043           LD="${LD-ld} -m elf_x86_64"
13044           ;;
13045         ppc*-*linux*|powerpc*-*linux*)
13046           LD="${LD-ld} -m elf64ppc"
13047           ;;
13048         s390*-*linux*)
13049           LD="${LD-ld} -m elf64_s390"
13050           ;;
13051         sparc*-*linux*)
13052           LD="${LD-ld} -m elf64_sparc"
13053           ;;
13054       esac
13055       ;;
13056     esac
13057   fi
13058   rm -rf conftest*
13059   ;;
13060
13061 *-*-sco3.2v5*)
13062   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13063   SAVE_CFLAGS="$CFLAGS"
13064   CFLAGS="$CFLAGS -belf"
13065   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
13066 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
13067 if test "${lt_cv_cc_needs_belf+set}" = set; then
13068   echo $ECHO_N "(cached) $ECHO_C" >&6
13069 else
13070   ac_ext=c
13071 ac_cpp='$CPP $CPPFLAGS'
13072 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13073 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13074 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13075
13076      cat >conftest.$ac_ext <<_ACEOF
13077 /* confdefs.h.  */
13078 _ACEOF
13079 cat confdefs.h >>conftest.$ac_ext
13080 cat >>conftest.$ac_ext <<_ACEOF
13081 /* end confdefs.h.  */
13082
13083 int
13084 main ()
13085 {
13086
13087   ;
13088   return 0;
13089 }
13090 _ACEOF
13091 rm -f conftest.$ac_objext conftest$ac_exeext
13092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13093   (eval $ac_link) 2>conftest.er1
13094   ac_status=$?
13095   grep -v '^ *+' conftest.er1 >conftest.err
13096   rm -f conftest.er1
13097   cat conftest.err >&5
13098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13099   (exit $ac_status); } &&
13100          { ac_try='test -z "$ac_c_werror_flag"
13101                          || test ! -s conftest.err'
13102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13103   (eval $ac_try) 2>&5
13104   ac_status=$?
13105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13106   (exit $ac_status); }; } &&
13107          { ac_try='test -s conftest$ac_exeext'
13108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13109   (eval $ac_try) 2>&5
13110   ac_status=$?
13111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13112   (exit $ac_status); }; }; then
13113   lt_cv_cc_needs_belf=yes
13114 else
13115   echo "$as_me: failed program was:" >&5
13116 sed 's/^/| /' conftest.$ac_ext >&5
13117
13118 lt_cv_cc_needs_belf=no
13119 fi
13120 rm -f conftest.err conftest.$ac_objext \
13121       conftest$ac_exeext conftest.$ac_ext
13122      ac_ext=c
13123 ac_cpp='$CPP $CPPFLAGS'
13124 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13125 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13126 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13127
13128 fi
13129 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
13130 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
13131   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13132     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13133     CFLAGS="$SAVE_CFLAGS"
13134   fi
13135   ;;
13136
13137 esac
13138
13139 need_locks="$enable_libtool_lock"
13140
13141
13142
13143 for ac_header in dlfcn.h
13144 do
13145 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13146 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13147   echo "$as_me:$LINENO: checking for $ac_header" >&5
13148 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13149 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13150   echo $ECHO_N "(cached) $ECHO_C" >&6
13151 fi
13152 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13153 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13154 else
13155   # Is the header compilable?
13156 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13157 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13158 cat >conftest.$ac_ext <<_ACEOF
13159 /* confdefs.h.  */
13160 _ACEOF
13161 cat confdefs.h >>conftest.$ac_ext
13162 cat >>conftest.$ac_ext <<_ACEOF
13163 /* end confdefs.h.  */
13164 $ac_includes_default
13165 #include <$ac_header>
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_header_compiler=yes
13190 else
13191   echo "$as_me: failed program was:" >&5
13192 sed 's/^/| /' conftest.$ac_ext >&5
13193
13194 ac_header_compiler=no
13195 fi
13196 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13197 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13198 echo "${ECHO_T}$ac_header_compiler" >&6
13199
13200 # Is the header present?
13201 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13202 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13203 cat >conftest.$ac_ext <<_ACEOF
13204 /* confdefs.h.  */
13205 _ACEOF
13206 cat confdefs.h >>conftest.$ac_ext
13207 cat >>conftest.$ac_ext <<_ACEOF
13208 /* end confdefs.h.  */
13209 #include <$ac_header>
13210 _ACEOF
13211 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13212   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13213   ac_status=$?
13214   grep -v '^ *+' conftest.er1 >conftest.err
13215   rm -f conftest.er1
13216   cat conftest.err >&5
13217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13218   (exit $ac_status); } >/dev/null; then
13219   if test -s conftest.err; then
13220     ac_cpp_err=$ac_c_preproc_warn_flag
13221     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13222   else
13223     ac_cpp_err=
13224   fi
13225 else
13226   ac_cpp_err=yes
13227 fi
13228 if test -z "$ac_cpp_err"; then
13229   ac_header_preproc=yes
13230 else
13231   echo "$as_me: failed program was:" >&5
13232 sed 's/^/| /' conftest.$ac_ext >&5
13233
13234   ac_header_preproc=no
13235 fi
13236 rm -f conftest.err conftest.$ac_ext
13237 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13238 echo "${ECHO_T}$ac_header_preproc" >&6
13239
13240 # So?  What about this header?
13241 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13242   yes:no: )
13243     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13244 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13245     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13246 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13247     ac_header_preproc=yes
13248     ;;
13249   no:yes:* )
13250     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13251 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13252     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13253 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13254     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13255 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13256     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13257 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13258     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13259 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13260     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13261 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13262     (
13263       cat <<\_ASBOX
13264 ## ------------------------------------------ ##
13265 ## Report this to the AC_PACKAGE_NAME lists.  ##
13266 ## ------------------------------------------ ##
13267 _ASBOX
13268     ) |
13269       sed "s/^/$as_me: WARNING:     /" >&2
13270     ;;
13271 esac
13272 echo "$as_me:$LINENO: checking for $ac_header" >&5
13273 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13274 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13275   echo $ECHO_N "(cached) $ECHO_C" >&6
13276 else
13277   eval "$as_ac_Header=\$ac_header_preproc"
13278 fi
13279 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13280 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13281
13282 fi
13283 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13284   cat >>confdefs.h <<_ACEOF
13285 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13286 _ACEOF
13287
13288 fi
13289
13290 done
13291
13292 ac_ext=cc
13293 ac_cpp='$CXXCPP $CPPFLAGS'
13294 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13295 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13296 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13297 if test -n "$ac_tool_prefix"; then
13298   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
13299   do
13300     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13301 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13302 echo "$as_me:$LINENO: checking for $ac_word" >&5
13303 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13304 if test "${ac_cv_prog_CXX+set}" = set; then
13305   echo $ECHO_N "(cached) $ECHO_C" >&6
13306 else
13307   if test -n "$CXX"; then
13308   ac_cv_prog_CXX="$CXX" # Let the user override the test.
13309 else
13310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13311 for as_dir in $PATH
13312 do
13313   IFS=$as_save_IFS
13314   test -z "$as_dir" && as_dir=.
13315   for ac_exec_ext in '' $ac_executable_extensions; do
13316   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13317     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
13318     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13319     break 2
13320   fi
13321 done
13322 done
13323
13324 fi
13325 fi
13326 CXX=$ac_cv_prog_CXX
13327 if test -n "$CXX"; then
13328   echo "$as_me:$LINENO: result: $CXX" >&5
13329 echo "${ECHO_T}$CXX" >&6
13330 else
13331   echo "$as_me:$LINENO: result: no" >&5
13332 echo "${ECHO_T}no" >&6
13333 fi
13334
13335     test -n "$CXX" && break
13336   done
13337 fi
13338 if test -z "$CXX"; then
13339   ac_ct_CXX=$CXX
13340   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
13341 do
13342   # Extract the first word of "$ac_prog", so it can be a program name with args.
13343 set dummy $ac_prog; ac_word=$2
13344 echo "$as_me:$LINENO: checking for $ac_word" >&5
13345 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13346 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
13347   echo $ECHO_N "(cached) $ECHO_C" >&6
13348 else
13349   if test -n "$ac_ct_CXX"; then
13350   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
13351 else
13352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13353 for as_dir in $PATH
13354 do
13355   IFS=$as_save_IFS
13356   test -z "$as_dir" && as_dir=.
13357   for ac_exec_ext in '' $ac_executable_extensions; do
13358   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13359     ac_cv_prog_ac_ct_CXX="$ac_prog"
13360     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13361     break 2
13362   fi
13363 done
13364 done
13365
13366 fi
13367 fi
13368 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
13369 if test -n "$ac_ct_CXX"; then
13370   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
13371 echo "${ECHO_T}$ac_ct_CXX" >&6
13372 else
13373   echo "$as_me:$LINENO: result: no" >&5
13374 echo "${ECHO_T}no" >&6
13375 fi
13376
13377   test -n "$ac_ct_CXX" && break
13378 done
13379 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
13380
13381   CXX=$ac_ct_CXX
13382 fi
13383
13384
13385 # Provide some information about the compiler.
13386 echo "$as_me:$LINENO:" \
13387      "checking for C++ compiler version" >&5
13388 ac_compiler=`set X $ac_compile; echo $2`
13389 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
13390   (eval $ac_compiler --version </dev/null >&5) 2>&5
13391   ac_status=$?
13392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13393   (exit $ac_status); }
13394 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
13395   (eval $ac_compiler -v </dev/null >&5) 2>&5
13396   ac_status=$?
13397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13398   (exit $ac_status); }
13399 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
13400   (eval $ac_compiler -V </dev/null >&5) 2>&5
13401   ac_status=$?
13402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13403   (exit $ac_status); }
13404
13405 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
13406 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
13407 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
13408   echo $ECHO_N "(cached) $ECHO_C" >&6
13409 else
13410   cat >conftest.$ac_ext <<_ACEOF
13411 /* confdefs.h.  */
13412 _ACEOF
13413 cat confdefs.h >>conftest.$ac_ext
13414 cat >>conftest.$ac_ext <<_ACEOF
13415 /* end confdefs.h.  */
13416
13417 int
13418 main ()
13419 {
13420 #ifndef __GNUC__
13421        choke me
13422 #endif
13423
13424   ;
13425   return 0;
13426 }
13427 _ACEOF
13428 rm -f conftest.$ac_objext
13429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13430   (eval $ac_compile) 2>conftest.er1
13431   ac_status=$?
13432   grep -v '^ *+' conftest.er1 >conftest.err
13433   rm -f conftest.er1
13434   cat conftest.err >&5
13435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13436   (exit $ac_status); } &&
13437          { ac_try='test -z "$ac_cxx_werror_flag"
13438                          || test ! -s conftest.err'
13439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13440   (eval $ac_try) 2>&5
13441   ac_status=$?
13442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13443   (exit $ac_status); }; } &&
13444          { ac_try='test -s conftest.$ac_objext'
13445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13446   (eval $ac_try) 2>&5
13447   ac_status=$?
13448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13449   (exit $ac_status); }; }; then
13450   ac_compiler_gnu=yes
13451 else
13452   echo "$as_me: failed program was:" >&5
13453 sed 's/^/| /' conftest.$ac_ext >&5
13454
13455 ac_compiler_gnu=no
13456 fi
13457 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13458 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
13459
13460 fi
13461 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
13462 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
13463 GXX=`test $ac_compiler_gnu = yes && echo yes`
13464 ac_test_CXXFLAGS=${CXXFLAGS+set}
13465 ac_save_CXXFLAGS=$CXXFLAGS
13466 CXXFLAGS="-g"
13467 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
13468 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
13469 if test "${ac_cv_prog_cxx_g+set}" = set; then
13470   echo $ECHO_N "(cached) $ECHO_C" >&6
13471 else
13472   cat >conftest.$ac_ext <<_ACEOF
13473 /* confdefs.h.  */
13474 _ACEOF
13475 cat confdefs.h >>conftest.$ac_ext
13476 cat >>conftest.$ac_ext <<_ACEOF
13477 /* end confdefs.h.  */
13478
13479 int
13480 main ()
13481 {
13482
13483   ;
13484   return 0;
13485 }
13486 _ACEOF
13487 rm -f conftest.$ac_objext
13488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13489   (eval $ac_compile) 2>conftest.er1
13490   ac_status=$?
13491   grep -v '^ *+' conftest.er1 >conftest.err
13492   rm -f conftest.er1
13493   cat conftest.err >&5
13494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13495   (exit $ac_status); } &&
13496          { ac_try='test -z "$ac_cxx_werror_flag"
13497                          || test ! -s conftest.err'
13498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13499   (eval $ac_try) 2>&5
13500   ac_status=$?
13501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13502   (exit $ac_status); }; } &&
13503          { ac_try='test -s conftest.$ac_objext'
13504   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13505   (eval $ac_try) 2>&5
13506   ac_status=$?
13507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13508   (exit $ac_status); }; }; then
13509   ac_cv_prog_cxx_g=yes
13510 else
13511   echo "$as_me: failed program was:" >&5
13512 sed 's/^/| /' conftest.$ac_ext >&5
13513
13514 ac_cv_prog_cxx_g=no
13515 fi
13516 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13517 fi
13518 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
13519 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
13520 if test "$ac_test_CXXFLAGS" = set; then
13521   CXXFLAGS=$ac_save_CXXFLAGS
13522 elif test $ac_cv_prog_cxx_g = yes; then
13523   if test "$GXX" = yes; then
13524     CXXFLAGS="-g -O2"
13525   else
13526     CXXFLAGS="-g"
13527   fi
13528 else
13529   if test "$GXX" = yes; then
13530     CXXFLAGS="-O2"
13531   else
13532     CXXFLAGS=
13533   fi
13534 fi
13535 for ac_declaration in \
13536    '' \
13537    'extern "C" void std::exit (int) throw (); using std::exit;' \
13538    'extern "C" void std::exit (int); using std::exit;' \
13539    'extern "C" void exit (int) throw ();' \
13540    'extern "C" void exit (int);' \
13541    'void exit (int);'
13542 do
13543   cat >conftest.$ac_ext <<_ACEOF
13544 /* confdefs.h.  */
13545 _ACEOF
13546 cat confdefs.h >>conftest.$ac_ext
13547 cat >>conftest.$ac_ext <<_ACEOF
13548 /* end confdefs.h.  */
13549 $ac_declaration
13550 #include <stdlib.h>
13551 int
13552 main ()
13553 {
13554 exit (42);
13555   ;
13556   return 0;
13557 }
13558 _ACEOF
13559 rm -f conftest.$ac_objext
13560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13561   (eval $ac_compile) 2>conftest.er1
13562   ac_status=$?
13563   grep -v '^ *+' conftest.er1 >conftest.err
13564   rm -f conftest.er1
13565   cat conftest.err >&5
13566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13567   (exit $ac_status); } &&
13568          { ac_try='test -z "$ac_cxx_werror_flag"
13569                          || test ! -s conftest.err'
13570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13571   (eval $ac_try) 2>&5
13572   ac_status=$?
13573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13574   (exit $ac_status); }; } &&
13575          { ac_try='test -s conftest.$ac_objext'
13576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13577   (eval $ac_try) 2>&5
13578   ac_status=$?
13579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13580   (exit $ac_status); }; }; then
13581   :
13582 else
13583   echo "$as_me: failed program was:" >&5
13584 sed 's/^/| /' conftest.$ac_ext >&5
13585
13586 continue
13587 fi
13588 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13589   cat >conftest.$ac_ext <<_ACEOF
13590 /* confdefs.h.  */
13591 _ACEOF
13592 cat confdefs.h >>conftest.$ac_ext
13593 cat >>conftest.$ac_ext <<_ACEOF
13594 /* end confdefs.h.  */
13595 $ac_declaration
13596 int
13597 main ()
13598 {
13599 exit (42);
13600   ;
13601   return 0;
13602 }
13603 _ACEOF
13604 rm -f conftest.$ac_objext
13605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13606   (eval $ac_compile) 2>conftest.er1
13607   ac_status=$?
13608   grep -v '^ *+' conftest.er1 >conftest.err
13609   rm -f conftest.er1
13610   cat conftest.err >&5
13611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13612   (exit $ac_status); } &&
13613          { ac_try='test -z "$ac_cxx_werror_flag"
13614                          || test ! -s conftest.err'
13615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13616   (eval $ac_try) 2>&5
13617   ac_status=$?
13618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13619   (exit $ac_status); }; } &&
13620          { ac_try='test -s conftest.$ac_objext'
13621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13622   (eval $ac_try) 2>&5
13623   ac_status=$?
13624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13625   (exit $ac_status); }; }; then
13626   break
13627 else
13628   echo "$as_me: failed program was:" >&5
13629 sed 's/^/| /' conftest.$ac_ext >&5
13630
13631 fi
13632 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13633 done
13634 rm -f conftest*
13635 if test -n "$ac_declaration"; then
13636   echo '#ifdef __cplusplus' >>confdefs.h
13637   echo $ac_declaration      >>confdefs.h
13638   echo '#endif'             >>confdefs.h
13639 fi
13640
13641 ac_ext=cc
13642 ac_cpp='$CXXCPP $CPPFLAGS'
13643 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13644 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13645 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13646
13647 depcc="$CXX"  am_compiler_list=
13648
13649 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
13650 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
13651 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
13652   echo $ECHO_N "(cached) $ECHO_C" >&6
13653 else
13654   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13655   # We make a subdir and do the tests there.  Otherwise we can end up
13656   # making bogus files that we don't know about and never remove.  For
13657   # instance it was reported that on HP-UX the gcc test will end up
13658   # making a dummy file named `D' -- because `-MD' means `put the output
13659   # in D'.
13660   mkdir conftest.dir
13661   # Copy depcomp to subdir because otherwise we won't find it if we're
13662   # using a relative directory.
13663   cp "$am_depcomp" conftest.dir
13664   cd conftest.dir
13665   # We will build objects and dependencies in a subdirectory because
13666   # it helps to detect inapplicable dependency modes.  For instance
13667   # both Tru64's cc and ICC support -MD to output dependencies as a
13668   # side effect of compilation, but ICC will put the dependencies in
13669   # the current directory while Tru64 will put them in the object
13670   # directory.
13671   mkdir sub
13672
13673   am_cv_CXX_dependencies_compiler_type=none
13674   if test "$am_compiler_list" = ""; then
13675      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13676   fi
13677   for depmode in $am_compiler_list; do
13678     # Setup a source with many dependencies, because some compilers
13679     # like to wrap large dependency lists on column 80 (with \), and
13680     # we should not choose a depcomp mode which is confused by this.
13681     #
13682     # We need to recreate these files for each test, as the compiler may
13683     # overwrite some of them when testing with obscure command lines.
13684     # This happens at least with the AIX C compiler.
13685     : > sub/conftest.c
13686     for i in 1 2 3 4 5 6; do
13687       echo '#include "conftst'$i'.h"' >> sub/conftest.c
13688       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
13689       # Solaris 8's {/usr,}/bin/sh.
13690       touch sub/conftst$i.h
13691     done
13692     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13693
13694     case $depmode in
13695     nosideeffect)
13696       # after this tag, mechanisms are not by side-effect, so they'll
13697       # only be used when explicitly requested
13698       if test "x$enable_dependency_tracking" = xyes; then
13699         continue
13700       else
13701         break
13702       fi
13703       ;;
13704     none) break ;;
13705     esac
13706     # We check with `-c' and `-o' for the sake of the "dashmstdout"
13707     # mode.  It turns out that the SunPro C++ compiler does not properly
13708     # handle `-M -o', and we need to detect this.
13709     if depmode=$depmode \
13710        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
13711        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13712        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
13713          >/dev/null 2>conftest.err &&
13714        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13715        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
13716        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13717       # icc doesn't choke on unknown options, it will just issue warnings
13718       # or remarks (even with -Werror).  So we grep stderr for any message
13719       # that says an option was ignored or not supported.
13720       # When given -MP, icc 7.0 and 7.1 complain thusly:
13721       #   icc: Command line warning: ignoring option '-M'; no argument required
13722       # The diagnosis changed in icc 8.0:
13723       #   icc: Command line remark: option '-MP' not supported
13724       if (grep 'ignoring option' conftest.err ||
13725           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13726         am_cv_CXX_dependencies_compiler_type=$depmode
13727         break
13728       fi
13729     fi
13730   done
13731
13732   cd ..
13733   rm -rf conftest.dir
13734 else
13735   am_cv_CXX_dependencies_compiler_type=none
13736 fi
13737
13738 fi
13739 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
13740 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
13741 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
13742
13743
13744
13745 if
13746   test "x$enable_dependency_tracking" != xno \
13747   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
13748   am__fastdepCXX_TRUE=
13749   am__fastdepCXX_FALSE='#'
13750 else
13751   am__fastdepCXX_TRUE='#'
13752   am__fastdepCXX_FALSE=
13753 fi
13754
13755
13756
13757
13758 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13759     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13760     (test "X$CXX" != "Xg++"))) ; then
13761   ac_ext=cc
13762 ac_cpp='$CXXCPP $CPPFLAGS'
13763 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13764 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13765 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13766 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
13767 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
13768 if test -z "$CXXCPP"; then
13769   if test "${ac_cv_prog_CXXCPP+set}" = set; then
13770   echo $ECHO_N "(cached) $ECHO_C" >&6
13771 else
13772       # Double quotes because CXXCPP needs to be expanded
13773     for CXXCPP in "$CXX -E" "/lib/cpp"
13774     do
13775       ac_preproc_ok=false
13776 for ac_cxx_preproc_warn_flag in '' yes
13777 do
13778   # Use a header file that comes with gcc, so configuring glibc
13779   # with a fresh cross-compiler works.
13780   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13781   # <limits.h> exists even on freestanding compilers.
13782   # On the NeXT, cc -E runs the code through the compiler's parser,
13783   # not just through cpp. "Syntax error" is here to catch this case.
13784   cat >conftest.$ac_ext <<_ACEOF
13785 /* confdefs.h.  */
13786 _ACEOF
13787 cat confdefs.h >>conftest.$ac_ext
13788 cat >>conftest.$ac_ext <<_ACEOF
13789 /* end confdefs.h.  */
13790 #ifdef __STDC__
13791 # include <limits.h>
13792 #else
13793 # include <assert.h>
13794 #endif
13795                      Syntax error
13796 _ACEOF
13797 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13798   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13799   ac_status=$?
13800   grep -v '^ *+' conftest.er1 >conftest.err
13801   rm -f conftest.er1
13802   cat conftest.err >&5
13803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13804   (exit $ac_status); } >/dev/null; then
13805   if test -s conftest.err; then
13806     ac_cpp_err=$ac_cxx_preproc_warn_flag
13807     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13808   else
13809     ac_cpp_err=
13810   fi
13811 else
13812   ac_cpp_err=yes
13813 fi
13814 if test -z "$ac_cpp_err"; then
13815   :
13816 else
13817   echo "$as_me: failed program was:" >&5
13818 sed 's/^/| /' conftest.$ac_ext >&5
13819
13820   # Broken: fails on valid input.
13821 continue
13822 fi
13823 rm -f conftest.err conftest.$ac_ext
13824
13825   # OK, works on sane cases.  Now check whether non-existent headers
13826   # can be detected and how.
13827   cat >conftest.$ac_ext <<_ACEOF
13828 /* confdefs.h.  */
13829 _ACEOF
13830 cat confdefs.h >>conftest.$ac_ext
13831 cat >>conftest.$ac_ext <<_ACEOF
13832 /* end confdefs.h.  */
13833 #include <ac_nonexistent.h>
13834 _ACEOF
13835 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13836   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13837   ac_status=$?
13838   grep -v '^ *+' conftest.er1 >conftest.err
13839   rm -f conftest.er1
13840   cat conftest.err >&5
13841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13842   (exit $ac_status); } >/dev/null; then
13843   if test -s conftest.err; then
13844     ac_cpp_err=$ac_cxx_preproc_warn_flag
13845     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13846   else
13847     ac_cpp_err=
13848   fi
13849 else
13850   ac_cpp_err=yes
13851 fi
13852 if test -z "$ac_cpp_err"; then
13853   # Broken: success on invalid input.
13854 continue
13855 else
13856   echo "$as_me: failed program was:" >&5
13857 sed 's/^/| /' conftest.$ac_ext >&5
13858
13859   # Passes both tests.
13860 ac_preproc_ok=:
13861 break
13862 fi
13863 rm -f conftest.err conftest.$ac_ext
13864
13865 done
13866 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13867 rm -f conftest.err conftest.$ac_ext
13868 if $ac_preproc_ok; then
13869   break
13870 fi
13871
13872     done
13873     ac_cv_prog_CXXCPP=$CXXCPP
13874
13875 fi
13876   CXXCPP=$ac_cv_prog_CXXCPP
13877 else
13878   ac_cv_prog_CXXCPP=$CXXCPP
13879 fi
13880 echo "$as_me:$LINENO: result: $CXXCPP" >&5
13881 echo "${ECHO_T}$CXXCPP" >&6
13882 ac_preproc_ok=false
13883 for ac_cxx_preproc_warn_flag in '' yes
13884 do
13885   # Use a header file that comes with gcc, so configuring glibc
13886   # with a fresh cross-compiler works.
13887   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13888   # <limits.h> exists even on freestanding compilers.
13889   # On the NeXT, cc -E runs the code through the compiler's parser,
13890   # not just through cpp. "Syntax error" is here to catch this case.
13891   cat >conftest.$ac_ext <<_ACEOF
13892 /* confdefs.h.  */
13893 _ACEOF
13894 cat confdefs.h >>conftest.$ac_ext
13895 cat >>conftest.$ac_ext <<_ACEOF
13896 /* end confdefs.h.  */
13897 #ifdef __STDC__
13898 # include <limits.h>
13899 #else
13900 # include <assert.h>
13901 #endif
13902                      Syntax error
13903 _ACEOF
13904 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13905   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13906   ac_status=$?
13907   grep -v '^ *+' conftest.er1 >conftest.err
13908   rm -f conftest.er1
13909   cat conftest.err >&5
13910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13911   (exit $ac_status); } >/dev/null; then
13912   if test -s conftest.err; then
13913     ac_cpp_err=$ac_cxx_preproc_warn_flag
13914     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13915   else
13916     ac_cpp_err=
13917   fi
13918 else
13919   ac_cpp_err=yes
13920 fi
13921 if test -z "$ac_cpp_err"; then
13922   :
13923 else
13924   echo "$as_me: failed program was:" >&5
13925 sed 's/^/| /' conftest.$ac_ext >&5
13926
13927   # Broken: fails on valid input.
13928 continue
13929 fi
13930 rm -f conftest.err conftest.$ac_ext
13931
13932   # OK, works on sane cases.  Now check whether non-existent headers
13933   # can be detected and how.
13934   cat >conftest.$ac_ext <<_ACEOF
13935 /* confdefs.h.  */
13936 _ACEOF
13937 cat confdefs.h >>conftest.$ac_ext
13938 cat >>conftest.$ac_ext <<_ACEOF
13939 /* end confdefs.h.  */
13940 #include <ac_nonexistent.h>
13941 _ACEOF
13942 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13943   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13944   ac_status=$?
13945   grep -v '^ *+' conftest.er1 >conftest.err
13946   rm -f conftest.er1
13947   cat conftest.err >&5
13948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13949   (exit $ac_status); } >/dev/null; then
13950   if test -s conftest.err; then
13951     ac_cpp_err=$ac_cxx_preproc_warn_flag
13952     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13953   else
13954     ac_cpp_err=
13955   fi
13956 else
13957   ac_cpp_err=yes
13958 fi
13959 if test -z "$ac_cpp_err"; then
13960   # Broken: success on invalid input.
13961 continue
13962 else
13963   echo "$as_me: failed program was:" >&5
13964 sed 's/^/| /' conftest.$ac_ext >&5
13965
13966   # Passes both tests.
13967 ac_preproc_ok=:
13968 break
13969 fi
13970 rm -f conftest.err conftest.$ac_ext
13971
13972 done
13973 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13974 rm -f conftest.err conftest.$ac_ext
13975 if $ac_preproc_ok; then
13976   :
13977 else
13978   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13979 See \`config.log' for more details." >&5
13980 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13981 See \`config.log' for more details." >&2;}
13982    { (exit 1); exit 1; }; }
13983 fi
13984
13985 ac_ext=cc
13986 ac_cpp='$CXXCPP $CPPFLAGS'
13987 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13988 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13989 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13990
13991 fi
13992
13993
13994 ac_ext=f
13995 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13996 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13997 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13998 if test -n "$ac_tool_prefix"; then
13999   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
14000   do
14001     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14002 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14003 echo "$as_me:$LINENO: checking for $ac_word" >&5
14004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14005 if test "${ac_cv_prog_F77+set}" = set; then
14006   echo $ECHO_N "(cached) $ECHO_C" >&6
14007 else
14008   if test -n "$F77"; then
14009   ac_cv_prog_F77="$F77" # Let the user override the test.
14010 else
14011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14012 for as_dir in $PATH
14013 do
14014   IFS=$as_save_IFS
14015   test -z "$as_dir" && as_dir=.
14016   for ac_exec_ext in '' $ac_executable_extensions; do
14017   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14018     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
14019     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14020     break 2
14021   fi
14022 done
14023 done
14024
14025 fi
14026 fi
14027 F77=$ac_cv_prog_F77
14028 if test -n "$F77"; then
14029   echo "$as_me:$LINENO: result: $F77" >&5
14030 echo "${ECHO_T}$F77" >&6
14031 else
14032   echo "$as_me:$LINENO: result: no" >&5
14033 echo "${ECHO_T}no" >&6
14034 fi
14035
14036     test -n "$F77" && break
14037   done
14038 fi
14039 if test -z "$F77"; then
14040   ac_ct_F77=$F77
14041   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
14042 do
14043   # Extract the first word of "$ac_prog", so it can be a program name with args.
14044 set dummy $ac_prog; ac_word=$2
14045 echo "$as_me:$LINENO: checking for $ac_word" >&5
14046 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14047 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
14048   echo $ECHO_N "(cached) $ECHO_C" >&6
14049 else
14050   if test -n "$ac_ct_F77"; then
14051   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
14052 else
14053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14054 for as_dir in $PATH
14055 do
14056   IFS=$as_save_IFS
14057   test -z "$as_dir" && as_dir=.
14058   for ac_exec_ext in '' $ac_executable_extensions; do
14059   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14060     ac_cv_prog_ac_ct_F77="$ac_prog"
14061     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14062     break 2
14063   fi
14064 done
14065 done
14066
14067 fi
14068 fi
14069 ac_ct_F77=$ac_cv_prog_ac_ct_F77
14070 if test -n "$ac_ct_F77"; then
14071   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
14072 echo "${ECHO_T}$ac_ct_F77" >&6
14073 else
14074   echo "$as_me:$LINENO: result: no" >&5
14075 echo "${ECHO_T}no" >&6
14076 fi
14077
14078   test -n "$ac_ct_F77" && break
14079 done
14080
14081   F77=$ac_ct_F77
14082 fi
14083
14084
14085 # Provide some information about the compiler.
14086 echo "$as_me:14086:" \
14087      "checking for Fortran 77 compiler version" >&5
14088 ac_compiler=`set X $ac_compile; echo $2`
14089 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
14090   (eval $ac_compiler --version </dev/null >&5) 2>&5
14091   ac_status=$?
14092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14093   (exit $ac_status); }
14094 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
14095   (eval $ac_compiler -v </dev/null >&5) 2>&5
14096   ac_status=$?
14097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14098   (exit $ac_status); }
14099 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
14100   (eval $ac_compiler -V </dev/null >&5) 2>&5
14101   ac_status=$?
14102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14103   (exit $ac_status); }
14104 rm -f a.out
14105
14106 # If we don't use `.F' as extension, the preprocessor is not run on the
14107 # input file.  (Note that this only needs to work for GNU compilers.)
14108 ac_save_ext=$ac_ext
14109 ac_ext=F
14110 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
14111 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
14112 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
14113   echo $ECHO_N "(cached) $ECHO_C" >&6
14114 else
14115   cat >conftest.$ac_ext <<_ACEOF
14116       program main
14117 #ifndef __GNUC__
14118        choke me
14119 #endif
14120
14121       end
14122 _ACEOF
14123 rm -f conftest.$ac_objext
14124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14125   (eval $ac_compile) 2>conftest.er1
14126   ac_status=$?
14127   grep -v '^ *+' conftest.er1 >conftest.err
14128   rm -f conftest.er1
14129   cat conftest.err >&5
14130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14131   (exit $ac_status); } &&
14132          { ac_try='test -z "$ac_f77_werror_flag"
14133                          || test ! -s conftest.err'
14134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14135   (eval $ac_try) 2>&5
14136   ac_status=$?
14137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14138   (exit $ac_status); }; } &&
14139          { ac_try='test -s conftest.$ac_objext'
14140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14141   (eval $ac_try) 2>&5
14142   ac_status=$?
14143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14144   (exit $ac_status); }; }; then
14145   ac_compiler_gnu=yes
14146 else
14147   echo "$as_me: failed program was:" >&5
14148 sed 's/^/| /' conftest.$ac_ext >&5
14149
14150 ac_compiler_gnu=no
14151 fi
14152 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14153 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
14154
14155 fi
14156 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
14157 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
14158 ac_ext=$ac_save_ext
14159 ac_test_FFLAGS=${FFLAGS+set}
14160 ac_save_FFLAGS=$FFLAGS
14161 FFLAGS=
14162 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
14163 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
14164 if test "${ac_cv_prog_f77_g+set}" = set; then
14165   echo $ECHO_N "(cached) $ECHO_C" >&6
14166 else
14167   FFLAGS=-g
14168 cat >conftest.$ac_ext <<_ACEOF
14169       program main
14170
14171       end
14172 _ACEOF
14173 rm -f conftest.$ac_objext
14174 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14175   (eval $ac_compile) 2>conftest.er1
14176   ac_status=$?
14177   grep -v '^ *+' conftest.er1 >conftest.err
14178   rm -f conftest.er1
14179   cat conftest.err >&5
14180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14181   (exit $ac_status); } &&
14182          { ac_try='test -z "$ac_f77_werror_flag"
14183                          || test ! -s conftest.err'
14184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14185   (eval $ac_try) 2>&5
14186   ac_status=$?
14187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14188   (exit $ac_status); }; } &&
14189          { ac_try='test -s conftest.$ac_objext'
14190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14191   (eval $ac_try) 2>&5
14192   ac_status=$?
14193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14194   (exit $ac_status); }; }; then
14195   ac_cv_prog_f77_g=yes
14196 else
14197   echo "$as_me: failed program was:" >&5
14198 sed 's/^/| /' conftest.$ac_ext >&5
14199
14200 ac_cv_prog_f77_g=no
14201 fi
14202 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14203
14204 fi
14205 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
14206 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
14207 if test "$ac_test_FFLAGS" = set; then
14208   FFLAGS=$ac_save_FFLAGS
14209 elif test $ac_cv_prog_f77_g = yes; then
14210   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
14211     FFLAGS="-g -O2"
14212   else
14213     FFLAGS="-g"
14214   fi
14215 else
14216   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
14217     FFLAGS="-O2"
14218   else
14219     FFLAGS=
14220   fi
14221 fi
14222
14223 G77=`test $ac_compiler_gnu = yes && echo yes`
14224 ac_ext=c
14225 ac_cpp='$CPP $CPPFLAGS'
14226 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14227 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14228 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14229
14230
14231
14232 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
14233
14234 # find the maximum length of command line arguments
14235 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
14236 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
14237 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
14238   echo $ECHO_N "(cached) $ECHO_C" >&6
14239 else
14240     i=0
14241   teststring="ABCD"
14242
14243   case $build_os in
14244   msdosdjgpp*)
14245     # On DJGPP, this test can blow up pretty badly due to problems in libc
14246     # (any single argument exceeding 2000 bytes causes a buffer overrun
14247     # during glob expansion).  Even if it were fixed, the result of this
14248     # check would be larger than it should be.
14249     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
14250     ;;
14251
14252   gnu*)
14253     # Under GNU Hurd, this test is not required because there is
14254     # no limit to the length of command line arguments.
14255     # Libtool will interpret -1 as no limit whatsoever
14256     lt_cv_sys_max_cmd_len=-1;
14257     ;;
14258
14259   cygwin* | mingw*)
14260     # On Win9x/ME, this test blows up -- it succeeds, but takes
14261     # about 5 minutes as the teststring grows exponentially.
14262     # Worse, since 9x/ME are not pre-emptively multitasking,
14263     # you end up with a "frozen" computer, even though with patience
14264     # the test eventually succeeds (with a max line length of 256k).
14265     # Instead, let's just punt: use the minimum linelength reported by
14266     # all of the supported platforms: 8192 (on NT/2K/XP).
14267     lt_cv_sys_max_cmd_len=8192;
14268     ;;
14269
14270   amigaos*)
14271     # On AmigaOS with pdksh, this test takes hours, literally.
14272     # So we just punt and use a minimum line length of 8192.
14273     lt_cv_sys_max_cmd_len=8192;
14274     ;;
14275
14276   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
14277     # This has been around since 386BSD, at least.  Likely further.
14278     if test -x /sbin/sysctl; then
14279       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
14280     elif test -x /usr/sbin/sysctl; then
14281       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
14282     else
14283       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
14284     fi
14285     # And add a safety zone
14286     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
14287     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
14288     ;;
14289   osf*)
14290     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
14291     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
14292     # nice to cause kernel panics so lets avoid the loop below.
14293     # First set a reasonable default.
14294     lt_cv_sys_max_cmd_len=16384
14295     #
14296     if test -x /sbin/sysconfig; then
14297       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
14298         *1*) lt_cv_sys_max_cmd_len=-1 ;;
14299       esac
14300     fi
14301     ;;
14302   *)
14303     # If test is not a shell built-in, we'll probably end up computing a
14304     # maximum length that is only half of the actual maximum length, but
14305     # we can't tell.
14306     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
14307     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
14308                = "XX$teststring") >/dev/null 2>&1 &&
14309             new_result=`expr "X$teststring" : ".*" 2>&1` &&
14310             lt_cv_sys_max_cmd_len=$new_result &&
14311             test $i != 17 # 1/2 MB should be enough
14312     do
14313       i=`expr $i + 1`
14314       teststring=$teststring$teststring
14315     done
14316     teststring=
14317     # Add a significant safety factor because C++ compilers can tack on massive
14318     # amounts of additional arguments before passing them to the linker.
14319     # It appears as though 1/2 is a usable value.
14320     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
14321     ;;
14322   esac
14323
14324 fi
14325
14326 if test -n $lt_cv_sys_max_cmd_len ; then
14327   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
14328 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
14329 else
14330   echo "$as_me:$LINENO: result: none" >&5
14331 echo "${ECHO_T}none" >&6
14332 fi
14333
14334
14335
14336
14337 # Check for command to grab the raw symbol name followed by C symbol from nm.
14338 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
14339 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
14340 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
14341   echo $ECHO_N "(cached) $ECHO_C" >&6
14342 else
14343
14344 # These are sane defaults that work on at least a few old systems.
14345 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
14346
14347 # Character class describing NM global symbol codes.
14348 symcode='[BCDEGRST]'
14349
14350 # Regexp to match symbols that can be accessed directly from C.
14351 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
14352
14353 # Transform an extracted symbol line into a proper C declaration
14354 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
14355
14356 # Transform an extracted symbol line into symbol name and symbol address
14357 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'"
14358
14359 # Define system-specific variables.
14360 case $host_os in
14361 aix*)
14362   symcode='[BCDT]'
14363   ;;
14364 cygwin* | mingw* | pw32*)
14365   symcode='[ABCDGISTW]'
14366   ;;
14367 hpux*) # Its linker distinguishes data from code symbols
14368   if test "$host_cpu" = ia64; then
14369     symcode='[ABCDEGRST]'
14370   fi
14371   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
14372   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'"
14373   ;;
14374 linux*)
14375   if test "$host_cpu" = ia64; then
14376     symcode='[ABCDGIRSTW]'
14377     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
14378     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'"
14379   fi
14380   ;;
14381 irix* | nonstopux*)
14382   symcode='[BCDEGRST]'
14383   ;;
14384 osf*)
14385   symcode='[BCDEGQRST]'
14386   ;;
14387 solaris* | sysv5*)
14388   symcode='[BDRT]'
14389   ;;
14390 sysv4)
14391   symcode='[DFNSTU]'
14392   ;;
14393 esac
14394
14395 # Handle CRLF in mingw tool chain
14396 opt_cr=
14397 case $build_os in
14398 mingw*)
14399   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
14400   ;;
14401 esac
14402
14403 # If we're using GNU nm, then use its standard symbol codes.
14404 case `$NM -V 2>&1` in
14405 *GNU* | *'with BFD'*)
14406   symcode='[ABCDGIRSTW]' ;;
14407 esac
14408
14409 # Try without a prefix undercore, then with it.
14410 for ac_symprfx in "" "_"; do
14411
14412   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
14413   symxfrm="\\1 $ac_symprfx\\2 \\2"
14414
14415   # Write the raw and C identifiers.
14416   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
14417
14418   # Check to see that the pipe works correctly.
14419   pipe_works=no
14420
14421   rm -f conftest*
14422   cat > conftest.$ac_ext <<EOF
14423 #ifdef __cplusplus
14424 extern "C" {
14425 #endif
14426 char nm_test_var;
14427 void nm_test_func(){}
14428 #ifdef __cplusplus
14429 }
14430 #endif
14431 int main(){nm_test_var='a';nm_test_func();return(0);}
14432 EOF
14433
14434   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14435   (eval $ac_compile) 2>&5
14436   ac_status=$?
14437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14438   (exit $ac_status); }; then
14439     # Now try to grab the symbols.
14440     nlist=conftest.nm
14441     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
14442   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
14443   ac_status=$?
14444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14445   (exit $ac_status); } && test -s "$nlist"; then
14446       # Try sorting and uniquifying the output.
14447       if sort "$nlist" | uniq > "$nlist"T; then
14448         mv -f "$nlist"T "$nlist"
14449       else
14450         rm -f "$nlist"T
14451       fi
14452
14453       # Make sure that we snagged all the symbols we need.
14454       if grep ' nm_test_var$' "$nlist" >/dev/null; then
14455         if grep ' nm_test_func$' "$nlist" >/dev/null; then
14456           cat <<EOF > conftest.$ac_ext
14457 #ifdef __cplusplus
14458 extern "C" {
14459 #endif
14460
14461 EOF
14462           # Now generate the symbol file.
14463           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
14464
14465           cat <<EOF >> conftest.$ac_ext
14466 #if defined (__STDC__) && __STDC__
14467 # define lt_ptr_t void *
14468 #else
14469 # define lt_ptr_t char *
14470 # define const
14471 #endif
14472
14473 /* The mapping between symbol names and symbols. */
14474 const struct {
14475   const char *name;
14476   lt_ptr_t address;
14477 }
14478 lt_preloaded_symbols[] =
14479 {
14480 EOF
14481           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
14482           cat <<\EOF >> conftest.$ac_ext
14483   {0, (lt_ptr_t) 0}
14484 };
14485
14486 #ifdef __cplusplus
14487 }
14488 #endif
14489 EOF
14490           # Now try linking the two files.
14491           mv conftest.$ac_objext conftstm.$ac_objext
14492           lt_save_LIBS="$LIBS"
14493           lt_save_CFLAGS="$CFLAGS"
14494           LIBS="conftstm.$ac_objext"
14495           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14496           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14497   (eval $ac_link) 2>&5
14498   ac_status=$?
14499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14500   (exit $ac_status); } && test -s conftest${ac_exeext}; then
14501             pipe_works=yes
14502           fi
14503           LIBS="$lt_save_LIBS"
14504           CFLAGS="$lt_save_CFLAGS"
14505         else
14506           echo "cannot find nm_test_func in $nlist" >&5
14507         fi
14508       else
14509         echo "cannot find nm_test_var in $nlist" >&5
14510       fi
14511     else
14512       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
14513     fi
14514   else
14515     echo "$progname: failed program was:" >&5
14516     cat conftest.$ac_ext >&5
14517   fi
14518   rm -f conftest* conftst*
14519
14520   # Do not use the global_symbol_pipe unless it works.
14521   if test "$pipe_works" = yes; then
14522     break
14523   else
14524     lt_cv_sys_global_symbol_pipe=
14525   fi
14526 done
14527
14528 fi
14529
14530 if test -z "$lt_cv_sys_global_symbol_pipe"; then
14531   lt_cv_sys_global_symbol_to_cdecl=
14532 fi
14533 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14534   echo "$as_me:$LINENO: result: failed" >&5
14535 echo "${ECHO_T}failed" >&6
14536 else
14537   echo "$as_me:$LINENO: result: ok" >&5
14538 echo "${ECHO_T}ok" >&6
14539 fi
14540
14541 echo "$as_me:$LINENO: checking for objdir" >&5
14542 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
14543 if test "${lt_cv_objdir+set}" = set; then
14544   echo $ECHO_N "(cached) $ECHO_C" >&6
14545 else
14546   rm -f .libs 2>/dev/null
14547 mkdir .libs 2>/dev/null
14548 if test -d .libs; then
14549   lt_cv_objdir=.libs
14550 else
14551   # MS-DOS does not allow filenames that begin with a dot.
14552   lt_cv_objdir=_libs
14553 fi
14554 rmdir .libs 2>/dev/null
14555 fi
14556 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
14557 echo "${ECHO_T}$lt_cv_objdir" >&6
14558 objdir=$lt_cv_objdir
14559
14560
14561
14562
14563
14564 case $host_os in
14565 aix3*)
14566   # AIX sometimes has problems with the GCC collect2 program.  For some
14567   # reason, if we set the COLLECT_NAMES environment variable, the problems
14568   # vanish in a puff of smoke.
14569   if test "X${COLLECT_NAMES+set}" != Xset; then
14570     COLLECT_NAMES=
14571     export COLLECT_NAMES
14572   fi
14573   ;;
14574 esac
14575
14576 # Sed substitution that helps us do robust quoting.  It backslashifies
14577 # metacharacters that are still active within double-quoted strings.
14578 Xsed='sed -e 1s/^X//'
14579 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
14580
14581 # Same as above, but do not quote variable references.
14582 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
14583
14584 # Sed substitution to delay expansion of an escaped shell variable in a
14585 # double_quote_subst'ed string.
14586 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
14587
14588 # Sed substitution to avoid accidental globbing in evaled expressions
14589 no_glob_subst='s/\*/\\\*/g'
14590
14591 # Constants:
14592 rm="rm -f"
14593
14594 # Global variables:
14595 default_ofile=libtool
14596 can_build_shared=yes
14597
14598 # All known linkers require a `.a' archive for static linking (except MSVC,
14599 # which needs '.lib').
14600 libext=a
14601 ltmain="$ac_aux_dir/ltmain.sh"
14602 ofile="$default_ofile"
14603 with_gnu_ld="$lt_cv_prog_gnu_ld"
14604
14605 if test -n "$ac_tool_prefix"; then
14606   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14607 set dummy ${ac_tool_prefix}ar; ac_word=$2
14608 echo "$as_me:$LINENO: checking for $ac_word" >&5
14609 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14610 if test "${ac_cv_prog_AR+set}" = set; then
14611   echo $ECHO_N "(cached) $ECHO_C" >&6
14612 else
14613   if test -n "$AR"; then
14614   ac_cv_prog_AR="$AR" # Let the user override the test.
14615 else
14616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14617 for as_dir in $PATH
14618 do
14619   IFS=$as_save_IFS
14620   test -z "$as_dir" && as_dir=.
14621   for ac_exec_ext in '' $ac_executable_extensions; do
14622   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14623     ac_cv_prog_AR="${ac_tool_prefix}ar"
14624     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14625     break 2
14626   fi
14627 done
14628 done
14629
14630 fi
14631 fi
14632 AR=$ac_cv_prog_AR
14633 if test -n "$AR"; then
14634   echo "$as_me:$LINENO: result: $AR" >&5
14635 echo "${ECHO_T}$AR" >&6
14636 else
14637   echo "$as_me:$LINENO: result: no" >&5
14638 echo "${ECHO_T}no" >&6
14639 fi
14640
14641 fi
14642 if test -z "$ac_cv_prog_AR"; then
14643   ac_ct_AR=$AR
14644   # Extract the first word of "ar", so it can be a program name with args.
14645 set dummy ar; ac_word=$2
14646 echo "$as_me:$LINENO: checking for $ac_word" >&5
14647 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14648 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
14649   echo $ECHO_N "(cached) $ECHO_C" >&6
14650 else
14651   if test -n "$ac_ct_AR"; then
14652   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14653 else
14654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14655 for as_dir in $PATH
14656 do
14657   IFS=$as_save_IFS
14658   test -z "$as_dir" && as_dir=.
14659   for ac_exec_ext in '' $ac_executable_extensions; do
14660   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14661     ac_cv_prog_ac_ct_AR="ar"
14662     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14663     break 2
14664   fi
14665 done
14666 done
14667
14668   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
14669 fi
14670 fi
14671 ac_ct_AR=$ac_cv_prog_ac_ct_AR
14672 if test -n "$ac_ct_AR"; then
14673   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
14674 echo "${ECHO_T}$ac_ct_AR" >&6
14675 else
14676   echo "$as_me:$LINENO: result: no" >&5
14677 echo "${ECHO_T}no" >&6
14678 fi
14679
14680   AR=$ac_ct_AR
14681 else
14682   AR="$ac_cv_prog_AR"
14683 fi
14684
14685 if test -n "$ac_tool_prefix"; then
14686   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14687 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14688 echo "$as_me:$LINENO: checking for $ac_word" >&5
14689 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14690 if test "${ac_cv_prog_RANLIB+set}" = set; then
14691   echo $ECHO_N "(cached) $ECHO_C" >&6
14692 else
14693   if test -n "$RANLIB"; then
14694   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14695 else
14696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14697 for as_dir in $PATH
14698 do
14699   IFS=$as_save_IFS
14700   test -z "$as_dir" && as_dir=.
14701   for ac_exec_ext in '' $ac_executable_extensions; do
14702   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14703     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14704     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14705     break 2
14706   fi
14707 done
14708 done
14709
14710 fi
14711 fi
14712 RANLIB=$ac_cv_prog_RANLIB
14713 if test -n "$RANLIB"; then
14714   echo "$as_me:$LINENO: result: $RANLIB" >&5
14715 echo "${ECHO_T}$RANLIB" >&6
14716 else
14717   echo "$as_me:$LINENO: result: no" >&5
14718 echo "${ECHO_T}no" >&6
14719 fi
14720
14721 fi
14722 if test -z "$ac_cv_prog_RANLIB"; then
14723   ac_ct_RANLIB=$RANLIB
14724   # Extract the first word of "ranlib", so it can be a program name with args.
14725 set dummy ranlib; ac_word=$2
14726 echo "$as_me:$LINENO: checking for $ac_word" >&5
14727 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14728 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14729   echo $ECHO_N "(cached) $ECHO_C" >&6
14730 else
14731   if test -n "$ac_ct_RANLIB"; then
14732   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14733 else
14734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14735 for as_dir in $PATH
14736 do
14737   IFS=$as_save_IFS
14738   test -z "$as_dir" && as_dir=.
14739   for ac_exec_ext in '' $ac_executable_extensions; do
14740   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14741     ac_cv_prog_ac_ct_RANLIB="ranlib"
14742     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14743     break 2
14744   fi
14745 done
14746 done
14747
14748   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
14749 fi
14750 fi
14751 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14752 if test -n "$ac_ct_RANLIB"; then
14753   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14754 echo "${ECHO_T}$ac_ct_RANLIB" >&6
14755 else
14756   echo "$as_me:$LINENO: result: no" >&5
14757 echo "${ECHO_T}no" >&6
14758 fi
14759
14760   RANLIB=$ac_ct_RANLIB
14761 else
14762   RANLIB="$ac_cv_prog_RANLIB"
14763 fi
14764
14765 if test -n "$ac_tool_prefix"; then
14766   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14767 set dummy ${ac_tool_prefix}strip; ac_word=$2
14768 echo "$as_me:$LINENO: checking for $ac_word" >&5
14769 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14770 if test "${ac_cv_prog_STRIP+set}" = set; then
14771   echo $ECHO_N "(cached) $ECHO_C" >&6
14772 else
14773   if test -n "$STRIP"; then
14774   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14775 else
14776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14777 for as_dir in $PATH
14778 do
14779   IFS=$as_save_IFS
14780   test -z "$as_dir" && as_dir=.
14781   for ac_exec_ext in '' $ac_executable_extensions; do
14782   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14783     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14784     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14785     break 2
14786   fi
14787 done
14788 done
14789
14790 fi
14791 fi
14792 STRIP=$ac_cv_prog_STRIP
14793 if test -n "$STRIP"; then
14794   echo "$as_me:$LINENO: result: $STRIP" >&5
14795 echo "${ECHO_T}$STRIP" >&6
14796 else
14797   echo "$as_me:$LINENO: result: no" >&5
14798 echo "${ECHO_T}no" >&6
14799 fi
14800
14801 fi
14802 if test -z "$ac_cv_prog_STRIP"; then
14803   ac_ct_STRIP=$STRIP
14804   # Extract the first word of "strip", so it can be a program name with args.
14805 set dummy strip; ac_word=$2
14806 echo "$as_me:$LINENO: checking for $ac_word" >&5
14807 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14808 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14809   echo $ECHO_N "(cached) $ECHO_C" >&6
14810 else
14811   if test -n "$ac_ct_STRIP"; then
14812   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14813 else
14814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14815 for as_dir in $PATH
14816 do
14817   IFS=$as_save_IFS
14818   test -z "$as_dir" && as_dir=.
14819   for ac_exec_ext in '' $ac_executable_extensions; do
14820   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14821     ac_cv_prog_ac_ct_STRIP="strip"
14822     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14823     break 2
14824   fi
14825 done
14826 done
14827
14828   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
14829 fi
14830 fi
14831 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14832 if test -n "$ac_ct_STRIP"; then
14833   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14834 echo "${ECHO_T}$ac_ct_STRIP" >&6
14835 else
14836   echo "$as_me:$LINENO: result: no" >&5
14837 echo "${ECHO_T}no" >&6
14838 fi
14839
14840   STRIP=$ac_ct_STRIP
14841 else
14842   STRIP="$ac_cv_prog_STRIP"
14843 fi
14844
14845
14846 old_CC="$CC"
14847 old_CFLAGS="$CFLAGS"
14848
14849 # Set sane defaults for various variables
14850 test -z "$AR" && AR=ar
14851 test -z "$AR_FLAGS" && AR_FLAGS=cru
14852 test -z "$AS" && AS=as
14853 test -z "$CC" && CC=cc
14854 test -z "$LTCC" && LTCC=$CC
14855 test -z "$DLLTOOL" && DLLTOOL=dlltool
14856 test -z "$LD" && LD=ld
14857 test -z "$LN_S" && LN_S="ln -s"
14858 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14859 test -z "$NM" && NM=nm
14860 test -z "$SED" && SED=sed
14861 test -z "$OBJDUMP" && OBJDUMP=objdump
14862 test -z "$RANLIB" && RANLIB=:
14863 test -z "$STRIP" && STRIP=:
14864 test -z "$ac_objext" && ac_objext=o
14865
14866 # Determine commands to create old-style static archives.
14867 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14868 old_postinstall_cmds='chmod 644 $oldlib'
14869 old_postuninstall_cmds=
14870
14871 if test -n "$RANLIB"; then
14872   case $host_os in
14873   openbsd*)
14874     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
14875     ;;
14876   *)
14877     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
14878     ;;
14879   esac
14880   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
14881 fi
14882
14883 for cc_temp in $compiler""; do
14884   case $cc_temp in
14885     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14886     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14887     \-*) ;;
14888     *) break;;
14889   esac
14890 done
14891 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14892
14893
14894 # Only perform the check for file, if the check method requires it
14895 case $deplibs_check_method in
14896 file_magic*)
14897   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14898     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14899 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
14900 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14901   echo $ECHO_N "(cached) $ECHO_C" >&6
14902 else
14903   case $MAGIC_CMD in
14904 [\\/*] |  ?:[\\/]*)
14905   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14906   ;;
14907 *)
14908   lt_save_MAGIC_CMD="$MAGIC_CMD"
14909   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14910   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14911   for ac_dir in $ac_dummy; do
14912     IFS="$lt_save_ifs"
14913     test -z "$ac_dir" && ac_dir=.
14914     if test -f $ac_dir/${ac_tool_prefix}file; then
14915       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14916       if test -n "$file_magic_test_file"; then
14917         case $deplibs_check_method in
14918         "file_magic "*)
14919           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14920           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14921           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14922             $EGREP "$file_magic_regex" > /dev/null; then
14923             :
14924           else
14925             cat <<EOF 1>&2
14926
14927 *** Warning: the command libtool uses to detect shared libraries,
14928 *** $file_magic_cmd, produces output that libtool cannot recognize.
14929 *** The result is that libtool may fail to recognize shared libraries
14930 *** as such.  This will affect the creation of libtool libraries that
14931 *** depend on shared libraries, but programs linked with such libtool
14932 *** libraries will work regardless of this problem.  Nevertheless, you
14933 *** may want to report the problem to your system manager and/or to
14934 *** bug-libtool@gnu.org
14935
14936 EOF
14937           fi ;;
14938         esac
14939       fi
14940       break
14941     fi
14942   done
14943   IFS="$lt_save_ifs"
14944   MAGIC_CMD="$lt_save_MAGIC_CMD"
14945   ;;
14946 esac
14947 fi
14948
14949 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14950 if test -n "$MAGIC_CMD"; then
14951   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14952 echo "${ECHO_T}$MAGIC_CMD" >&6
14953 else
14954   echo "$as_me:$LINENO: result: no" >&5
14955 echo "${ECHO_T}no" >&6
14956 fi
14957
14958 if test -z "$lt_cv_path_MAGIC_CMD"; then
14959   if test -n "$ac_tool_prefix"; then
14960     echo "$as_me:$LINENO: checking for file" >&5
14961 echo $ECHO_N "checking for file... $ECHO_C" >&6
14962 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14963   echo $ECHO_N "(cached) $ECHO_C" >&6
14964 else
14965   case $MAGIC_CMD in
14966 [\\/*] |  ?:[\\/]*)
14967   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14968   ;;
14969 *)
14970   lt_save_MAGIC_CMD="$MAGIC_CMD"
14971   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14972   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14973   for ac_dir in $ac_dummy; do
14974     IFS="$lt_save_ifs"
14975     test -z "$ac_dir" && ac_dir=.
14976     if test -f $ac_dir/file; then
14977       lt_cv_path_MAGIC_CMD="$ac_dir/file"
14978       if test -n "$file_magic_test_file"; then
14979         case $deplibs_check_method in
14980         "file_magic "*)
14981           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14982           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14983           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14984             $EGREP "$file_magic_regex" > /dev/null; then
14985             :
14986           else
14987             cat <<EOF 1>&2
14988
14989 *** Warning: the command libtool uses to detect shared libraries,
14990 *** $file_magic_cmd, produces output that libtool cannot recognize.
14991 *** The result is that libtool may fail to recognize shared libraries
14992 *** as such.  This will affect the creation of libtool libraries that
14993 *** depend on shared libraries, but programs linked with such libtool
14994 *** libraries will work regardless of this problem.  Nevertheless, you
14995 *** may want to report the problem to your system manager and/or to
14996 *** bug-libtool@gnu.org
14997
14998 EOF
14999           fi ;;
15000         esac
15001       fi
15002       break
15003     fi
15004   done
15005   IFS="$lt_save_ifs"
15006   MAGIC_CMD="$lt_save_MAGIC_CMD"
15007   ;;
15008 esac
15009 fi
15010
15011 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15012 if test -n "$MAGIC_CMD"; then
15013   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
15014 echo "${ECHO_T}$MAGIC_CMD" >&6
15015 else
15016   echo "$as_me:$LINENO: result: no" >&5
15017 echo "${ECHO_T}no" >&6
15018 fi
15019
15020   else
15021     MAGIC_CMD=:
15022   fi
15023 fi
15024
15025   fi
15026   ;;
15027 esac
15028
15029 enable_dlopen=no
15030 enable_win32_dll=no
15031
15032 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
15033 if test "${enable_libtool_lock+set}" = set; then
15034   enableval="$enable_libtool_lock"
15035
15036 fi;
15037 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
15038
15039
15040 # Check whether --with-pic or --without-pic was given.
15041 if test "${with_pic+set}" = set; then
15042   withval="$with_pic"
15043   pic_mode="$withval"
15044 else
15045   pic_mode=default
15046 fi;
15047 test -z "$pic_mode" && pic_mode=default
15048
15049 # Use C for the default configuration in the libtool script
15050 tagname=
15051 lt_save_CC="$CC"
15052 ac_ext=c
15053 ac_cpp='$CPP $CPPFLAGS'
15054 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15055 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15056 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15057
15058
15059 # Source file extension for C test sources.
15060 ac_ext=c
15061
15062 # Object file extension for compiled C test sources.
15063 objext=o
15064 objext=$objext
15065
15066 # Code to be used in simple compile tests
15067 lt_simple_compile_test_code="int some_variable = 0;\n"
15068
15069 # Code to be used in simple link tests
15070 lt_simple_link_test_code='int main(){return(0);}\n'
15071
15072
15073 # If no C compiler was specified, use CC.
15074 LTCC=${LTCC-"$CC"}
15075
15076 # Allow CC to be a program name with arguments.
15077 compiler=$CC
15078
15079
15080 # save warnings/boilerplate of simple test code
15081 ac_outfile=conftest.$ac_objext
15082 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15083 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
15084 _lt_compiler_boilerplate=`cat conftest.err`
15085 $rm conftest*
15086
15087 ac_outfile=conftest.$ac_objext
15088 printf "$lt_simple_link_test_code" >conftest.$ac_ext
15089 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
15090 _lt_linker_boilerplate=`cat conftest.err`
15091 $rm conftest*
15092
15093
15094 #
15095 # Check for any special shared library compilation flags.
15096 #
15097 lt_prog_cc_shlib=
15098 if test "$GCC" = no; then
15099   case $host_os in
15100   sco3.2v5*)
15101     lt_prog_cc_shlib='-belf'
15102     ;;
15103   esac
15104 fi
15105 if test -n "$lt_prog_cc_shlib"; then
15106   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
15107 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
15108   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
15109   else
15110     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
15111 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
15112     lt_cv_prog_cc_can_build_shared=no
15113   fi
15114 fi
15115
15116
15117 #
15118 # Check to make sure the static flag actually works.
15119 #
15120 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
15121 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
15122 if test "${lt_prog_compiler_static_works+set}" = set; then
15123   echo $ECHO_N "(cached) $ECHO_C" >&6
15124 else
15125   lt_prog_compiler_static_works=no
15126    save_LDFLAGS="$LDFLAGS"
15127    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
15128    printf "$lt_simple_link_test_code" > conftest.$ac_ext
15129    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15130      # The linker can only warn and ignore the option if not recognized
15131      # So say no if there are warnings
15132      if test -s conftest.err; then
15133        # Append any errors to the config.log.
15134        cat conftest.err 1>&5
15135        $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
15136        $SED '/^$/d' conftest.err >conftest.er2
15137        if diff conftest.exp conftest.er2 >/dev/null; then
15138          lt_prog_compiler_static_works=yes
15139        fi
15140      else
15141        lt_prog_compiler_static_works=yes
15142      fi
15143    fi
15144    $rm conftest*
15145    LDFLAGS="$save_LDFLAGS"
15146
15147 fi
15148 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
15149 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
15150
15151 if test x"$lt_prog_compiler_static_works" = xyes; then
15152     :
15153 else
15154     lt_prog_compiler_static=
15155 fi
15156
15157
15158
15159 ## CAVEAT EMPTOR:
15160 ## There is no encapsulation within the following macros, do not change
15161 ## the running order or otherwise move them around unless you know exactly
15162 ## what you are doing...
15163
15164 lt_prog_compiler_no_builtin_flag=
15165
15166 if test "$GCC" = yes; then
15167   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
15168
15169
15170 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15171 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15172 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15173   echo $ECHO_N "(cached) $ECHO_C" >&6
15174 else
15175   lt_cv_prog_compiler_rtti_exceptions=no
15176   ac_outfile=conftest.$ac_objext
15177    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15178    lt_compiler_flag="-fno-rtti -fno-exceptions"
15179    # Insert the option either (1) after the last *FLAGS variable, or
15180    # (2) before a word containing "conftest.", or (3) at the end.
15181    # Note that $ac_compile itself does not contain backslashes and begins
15182    # with a dollar sign (not a hyphen), so the echo should work correctly.
15183    # The option is referenced via a variable to avoid confusing sed.
15184    lt_compile=`echo "$ac_compile" | $SED \
15185    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15186    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15187    -e 's:$: $lt_compiler_flag:'`
15188    (eval echo "\"\$as_me:15188: $lt_compile\"" >&5)
15189    (eval "$lt_compile" 2>conftest.err)
15190    ac_status=$?
15191    cat conftest.err >&5
15192    echo "$as_me:15192: \$? = $ac_status" >&5
15193    if (exit $ac_status) && test -s "$ac_outfile"; then
15194      # The compiler can only warn and ignore the option if not recognized
15195      # So say no if there are warnings other than the usual output.
15196      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
15197      $SED '/^$/d' conftest.err >conftest.er2
15198      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
15199        lt_cv_prog_compiler_rtti_exceptions=yes
15200      fi
15201    fi
15202    $rm conftest*
15203
15204 fi
15205 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15206 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15207
15208 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15209     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15210 else
15211     :
15212 fi
15213
15214 fi
15215
15216 lt_prog_compiler_wl=
15217 lt_prog_compiler_pic=
15218 lt_prog_compiler_static=
15219
15220 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15221 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15222
15223   if test "$GCC" = yes; then
15224     lt_prog_compiler_wl='-Wl,'
15225     lt_prog_compiler_static='-static'
15226
15227     case $host_os in
15228       aix*)
15229       # All AIX code is PIC.
15230       if test "$host_cpu" = ia64; then
15231         # AIX 5 now supports IA64 processor
15232         lt_prog_compiler_static='-Bstatic'
15233       fi
15234       ;;
15235
15236     amigaos*)
15237       # FIXME: we need at least 68020 code to build shared libraries, but
15238       # adding the `-m68020' flag to GCC prevents building anything better,
15239       # like `-m68040'.
15240       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15241       ;;
15242
15243     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15244       # PIC is the default for these OSes.
15245       ;;
15246
15247     mingw* | pw32* | os2*)
15248       # This hack is so that the source file can tell whether it is being
15249       # built for inclusion in a dll (and should export symbols for example).
15250       lt_prog_compiler_pic='-DDLL_EXPORT'
15251       ;;
15252
15253     darwin* | rhapsody*)
15254       # PIC is the default on this platform
15255       # Common symbols not allowed in MH_DYLIB files
15256       lt_prog_compiler_pic='-fno-common'
15257       ;;
15258
15259     msdosdjgpp*)
15260       # Just because we use GCC doesn't mean we suddenly get shared libraries
15261       # on systems that don't support them.
15262       lt_prog_compiler_can_build_shared=no
15263       enable_shared=no
15264       ;;
15265
15266     sysv4*MP*)
15267       if test -d /usr/nec; then
15268         lt_prog_compiler_pic=-Kconform_pic
15269       fi
15270       ;;
15271
15272     hpux*)
15273       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15274       # not for PA HP-UX.
15275       case $host_cpu in
15276       hppa*64*|ia64*)
15277         # +Z the default
15278         ;;
15279       *)
15280         lt_prog_compiler_pic='-fPIC'
15281         ;;
15282       esac
15283       ;;
15284
15285     *)
15286       lt_prog_compiler_pic='-fPIC'
15287       ;;
15288     esac
15289   else
15290     # PORTME Check for flag to pass linker flags through the system compiler.
15291     case $host_os in
15292     aix*)
15293       lt_prog_compiler_wl='-Wl,'
15294       if test "$host_cpu" = ia64; then
15295         # AIX 5 now supports IA64 processor
15296         lt_prog_compiler_static='-Bstatic'
15297       else
15298         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15299       fi
15300       ;;
15301       darwin*)
15302         # PIC is the default on this platform
15303         # Common symbols not allowed in MH_DYLIB files
15304        case $cc_basename in
15305          xlc*)
15306          lt_prog_compiler_pic='-qnocommon'
15307          lt_prog_compiler_wl='-Wl,'
15308          ;;
15309        esac
15310        ;;
15311
15312     mingw* | pw32* | os2*)
15313       # This hack is so that the source file can tell whether it is being
15314       # built for inclusion in a dll (and should export symbols for example).
15315       lt_prog_compiler_pic='-DDLL_EXPORT'
15316       ;;
15317
15318     hpux9* | hpux10* | hpux11*)
15319       lt_prog_compiler_wl='-Wl,'
15320       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15321       # not for PA HP-UX.
15322       case $host_cpu in
15323       hppa*64*|ia64*)
15324         # +Z the default
15325         ;;
15326       *)
15327         lt_prog_compiler_pic='+Z'
15328         ;;
15329       esac
15330       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15331       lt_prog_compiler_static='${wl}-a ${wl}archive'
15332       ;;
15333
15334     irix5* | irix6* | nonstopux*)
15335       lt_prog_compiler_wl='-Wl,'
15336       # PIC (with -KPIC) is the default.
15337       lt_prog_compiler_static='-non_shared'
15338       ;;
15339
15340     newsos6)
15341       lt_prog_compiler_pic='-KPIC'
15342       lt_prog_compiler_static='-Bstatic'
15343       ;;
15344
15345     linux*)
15346       case $cc_basename in
15347       icc* | ecc*)
15348         lt_prog_compiler_wl='-Wl,'
15349         lt_prog_compiler_pic='-KPIC'
15350         lt_prog_compiler_static='-static'
15351         ;;
15352       pgcc* | pgf77* | pgf90* | pgf95*)
15353         # Portland Group compilers (*not* the Pentium gcc compiler,
15354         # which looks to be a dead project)
15355         lt_prog_compiler_wl='-Wl,'
15356         lt_prog_compiler_pic='-fpic'
15357         lt_prog_compiler_static='-Bstatic'
15358         ;;
15359       ccc*)
15360         lt_prog_compiler_wl='-Wl,'
15361         # All Alpha code is PIC.
15362         lt_prog_compiler_static='-non_shared'
15363         ;;
15364       esac
15365       ;;
15366
15367     osf3* | osf4* | osf5*)
15368       lt_prog_compiler_wl='-Wl,'
15369       # All OSF/1 code is PIC.
15370       lt_prog_compiler_static='-non_shared'
15371       ;;
15372
15373     sco3.2v5*)
15374       lt_prog_compiler_pic='-Kpic'
15375       lt_prog_compiler_static='-dn'
15376       ;;
15377
15378     solaris*)
15379       lt_prog_compiler_pic='-KPIC'
15380       lt_prog_compiler_static='-Bstatic'
15381       case $cc_basename in
15382       f77* | f90* | f95*)
15383         lt_prog_compiler_wl='-Qoption ld ';;
15384       *)
15385         lt_prog_compiler_wl='-Wl,';;
15386       esac
15387       ;;
15388
15389     sunos4*)
15390       lt_prog_compiler_wl='-Qoption ld '
15391       lt_prog_compiler_pic='-PIC'
15392       lt_prog_compiler_static='-Bstatic'
15393       ;;
15394
15395     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15396       lt_prog_compiler_wl='-Wl,'
15397       lt_prog_compiler_pic='-KPIC'
15398       lt_prog_compiler_static='-Bstatic'
15399       ;;
15400
15401     sysv4*MP*)
15402       if test -d /usr/nec ;then
15403         lt_prog_compiler_pic='-Kconform_pic'
15404         lt_prog_compiler_static='-Bstatic'
15405       fi
15406       ;;
15407
15408     unicos*)
15409       lt_prog_compiler_wl='-Wl,'
15410       lt_prog_compiler_can_build_shared=no
15411       ;;
15412
15413     uts4*)
15414       lt_prog_compiler_pic='-pic'
15415       lt_prog_compiler_static='-Bstatic'
15416       ;;
15417
15418     *)
15419       lt_prog_compiler_can_build_shared=no
15420       ;;
15421     esac
15422   fi
15423
15424 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
15425 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
15426
15427 #
15428 # Check to make sure the PIC flag actually works.
15429 #
15430 if test -n "$lt_prog_compiler_pic"; then
15431
15432 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15433 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
15434 if test "${lt_prog_compiler_pic_works+set}" = set; then
15435   echo $ECHO_N "(cached) $ECHO_C" >&6
15436 else
15437   lt_prog_compiler_pic_works=no
15438   ac_outfile=conftest.$ac_objext
15439    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15440    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15441    # Insert the option either (1) after the last *FLAGS variable, or
15442    # (2) before a word containing "conftest.", or (3) at the end.
15443    # Note that $ac_compile itself does not contain backslashes and begins
15444    # with a dollar sign (not a hyphen), so the echo should work correctly.
15445    # The option is referenced via a variable to avoid confusing sed.
15446    lt_compile=`echo "$ac_compile" | $SED \
15447    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15448    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15449    -e 's:$: $lt_compiler_flag:'`
15450    (eval echo "\"\$as_me:15450: $lt_compile\"" >&5)
15451    (eval "$lt_compile" 2>conftest.err)
15452    ac_status=$?
15453    cat conftest.err >&5
15454    echo "$as_me:15454: \$? = $ac_status" >&5
15455    if (exit $ac_status) && test -s "$ac_outfile"; then
15456      # The compiler can only warn and ignore the option if not recognized
15457      # So say no if there are warnings other than the usual output.
15458      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
15459      $SED '/^$/d' conftest.err >conftest.er2
15460      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
15461        lt_prog_compiler_pic_works=yes
15462      fi
15463    fi
15464    $rm conftest*
15465
15466 fi
15467 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
15468 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
15469
15470 if test x"$lt_prog_compiler_pic_works" = xyes; then
15471     case $lt_prog_compiler_pic in
15472      "" | " "*) ;;
15473      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15474      esac
15475 else
15476     lt_prog_compiler_pic=
15477      lt_prog_compiler_can_build_shared=no
15478 fi
15479
15480 fi
15481 case $host_os in
15482   # For platforms which do not support PIC, -DPIC is meaningless:
15483   *djgpp*)
15484     lt_prog_compiler_pic=
15485     ;;
15486   *)
15487     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15488     ;;
15489 esac
15490
15491 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15492 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15493 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
15494   echo $ECHO_N "(cached) $ECHO_C" >&6
15495 else
15496   lt_cv_prog_compiler_c_o=no
15497    $rm -r conftest 2>/dev/null
15498    mkdir conftest
15499    cd conftest
15500    mkdir out
15501    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15502
15503    lt_compiler_flag="-o out/conftest2.$ac_objext"
15504    # Insert the option either (1) after the last *FLAGS variable, or
15505    # (2) before a word containing "conftest.", or (3) at the end.
15506    # Note that $ac_compile itself does not contain backslashes and begins
15507    # with a dollar sign (not a hyphen), so the echo should work correctly.
15508    lt_compile=`echo "$ac_compile" | $SED \
15509    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15510    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15511    -e 's:$: $lt_compiler_flag:'`
15512    (eval echo "\"\$as_me:15512: $lt_compile\"" >&5)
15513    (eval "$lt_compile" 2>out/conftest.err)
15514    ac_status=$?
15515    cat out/conftest.err >&5
15516    echo "$as_me:15516: \$? = $ac_status" >&5
15517    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15518    then
15519      # The compiler can only warn and ignore the option if not recognized
15520      # So say no if there are warnings
15521      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
15522      $SED '/^$/d' out/conftest.err >out/conftest.er2
15523      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15524        lt_cv_prog_compiler_c_o=yes
15525      fi
15526    fi
15527    chmod u+w . 2>&5
15528    $rm conftest*
15529    # SGI C++ compiler will create directory out/ii_files/ for
15530    # template instantiation
15531    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15532    $rm out/* && rmdir out
15533    cd ..
15534    rmdir conftest
15535    $rm conftest*
15536
15537 fi
15538 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
15539 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
15540
15541
15542 hard_links="nottested"
15543 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15544   # do not overwrite the value of need_locks provided by the user
15545   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15546 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15547   hard_links=yes
15548   $rm conftest*
15549   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15550   touch conftest.a
15551   ln conftest.a conftest.b 2>&5 || hard_links=no
15552   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15553   echo "$as_me:$LINENO: result: $hard_links" >&5
15554 echo "${ECHO_T}$hard_links" >&6
15555   if test "$hard_links" = no; then
15556     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15557 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15558     need_locks=warn
15559   fi
15560 else
15561   need_locks=no
15562 fi
15563
15564 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15565 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15566
15567   runpath_var=
15568   allow_undefined_flag=
15569   enable_shared_with_static_runtimes=no
15570   archive_cmds=
15571   archive_expsym_cmds=
15572   old_archive_From_new_cmds=
15573   old_archive_from_expsyms_cmds=
15574   export_dynamic_flag_spec=
15575   whole_archive_flag_spec=
15576   thread_safe_flag_spec=
15577   hardcode_libdir_flag_spec=
15578   hardcode_libdir_flag_spec_ld=
15579   hardcode_libdir_separator=
15580   hardcode_direct=no
15581   hardcode_minus_L=no
15582   hardcode_shlibpath_var=unsupported
15583   link_all_deplibs=unknown
15584   hardcode_automatic=no
15585   module_cmds=
15586   module_expsym_cmds=
15587   always_export_symbols=no
15588   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15589   # include_expsyms should be a list of space-separated symbols to be *always*
15590   # included in the symbol list
15591   include_expsyms=
15592   # exclude_expsyms can be an extended regexp of symbols to exclude
15593   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15594   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15595   # as well as any symbol that contains `d'.
15596   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
15597   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15598   # platforms (ab)use it in PIC code, but their linkers get confused if
15599   # the symbol is explicitly referenced.  Since portable code cannot
15600   # rely on this symbol name, it's probably fine to never include it in
15601   # preloaded symbol tables.
15602   extract_expsyms_cmds=
15603   # Just being paranoid about ensuring that cc_basename is set.
15604   for cc_temp in $compiler""; do
15605   case $cc_temp in
15606     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15607     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15608     \-*) ;;
15609     *) break;;
15610   esac
15611 done
15612 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15613
15614   case $host_os in
15615   cygwin* | mingw* | pw32*)
15616     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15617     # When not using gcc, we currently assume that we are using
15618     # Microsoft Visual C++.
15619     if test "$GCC" != yes; then
15620       with_gnu_ld=no
15621     fi
15622     ;;
15623   openbsd*)
15624     with_gnu_ld=no
15625     ;;
15626   esac
15627
15628   ld_shlibs=yes
15629   if test "$with_gnu_ld" = yes; then
15630     # If archive_cmds runs LD, not CC, wlarc should be empty
15631     wlarc='${wl}'
15632
15633     # Set some defaults for GNU ld with shared library support. These
15634     # are reset later if shared libraries are not supported. Putting them
15635     # here allows them to be overridden if necessary.
15636     runpath_var=LD_RUN_PATH
15637     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
15638     export_dynamic_flag_spec='${wl}--export-dynamic'
15639     # ancient GNU ld didn't support --whole-archive et. al.
15640     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15641         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15642       else
15643         whole_archive_flag_spec=
15644     fi
15645     supports_anon_versioning=no
15646     case `$LD -v 2>/dev/null` in
15647       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15648       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15649       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15650       *\ 2.11.*) ;; # other 2.11 versions
15651       *) supports_anon_versioning=yes ;;
15652     esac
15653
15654     # See if GNU ld supports shared libraries.
15655     case $host_os in
15656     aix3* | aix4* | aix5*)
15657       # On AIX/PPC, the GNU linker is very broken
15658       if test "$host_cpu" != ia64; then
15659         ld_shlibs=no
15660         cat <<EOF 1>&2
15661
15662 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15663 *** to be unable to reliably create shared libraries on AIX.
15664 *** Therefore, libtool is disabling shared libraries support.  If you
15665 *** really care for shared libraries, you may want to modify your PATH
15666 *** so that a non-GNU linker is found, and then restart.
15667
15668 EOF
15669       fi
15670       ;;
15671
15672     amigaos*)
15673       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)'
15674       hardcode_libdir_flag_spec='-L$libdir'
15675       hardcode_minus_L=yes
15676
15677       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15678       # that the semantics of dynamic libraries on AmigaOS, at least up
15679       # to version 4, is to share data among multiple programs linked
15680       # with the same dynamic library.  Since this doesn't match the
15681       # behavior of shared libraries on other platforms, we can't use
15682       # them.
15683       ld_shlibs=no
15684       ;;
15685
15686     beos*)
15687       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15688         allow_undefined_flag=unsupported
15689         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15690         # support --undefined.  This deserves some investigation.  FIXME
15691         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15692       else
15693         ld_shlibs=no
15694       fi
15695       ;;
15696
15697     cygwin* | mingw* | pw32*)
15698       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15699       # as there is no search path for DLLs.
15700       hardcode_libdir_flag_spec='-L$libdir'
15701       allow_undefined_flag=unsupported
15702       always_export_symbols=no
15703       enable_shared_with_static_runtimes=yes
15704       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15705
15706       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15707         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15708         # If the export-symbols file already is a .def file (1st line
15709         # is EXPORTS), use it as is; otherwise, prepend...
15710         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15711           cp $export_symbols $output_objdir/$soname.def;
15712         else
15713           echo EXPORTS > $output_objdir/$soname.def;
15714           cat $export_symbols >> $output_objdir/$soname.def;
15715         fi~
15716         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
15717       else
15718         ld_shlibs=no
15719       fi
15720       ;;
15721
15722     linux*)
15723       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15724         tmp_addflag=
15725         case $cc_basename,$host_cpu in
15726         pgcc*)                          # Portland Group C compiler
15727           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'
15728           tmp_addflag=' $pic_flag'
15729           ;;
15730         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
15731           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'
15732           tmp_addflag=' $pic_flag -Mnomain' ;;
15733         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
15734           tmp_addflag=' -i_dynamic' ;;
15735         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
15736           tmp_addflag=' -i_dynamic -nofor_main' ;;
15737         ifc* | ifort*)                  # Intel Fortran compiler
15738           tmp_addflag=' -nofor_main' ;;
15739         esac
15740         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15741
15742         if test $supports_anon_versioning = yes; then
15743           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15744   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15745   $echo "local: *; };" >> $output_objdir/$libname.ver~
15746           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15747         fi
15748       else
15749         ld_shlibs=no
15750       fi
15751       ;;
15752
15753     netbsd*)
15754       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15755         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15756         wlarc=
15757       else
15758         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15759         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15760       fi
15761       ;;
15762
15763     solaris* | sysv5*)
15764       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15765         ld_shlibs=no
15766         cat <<EOF 1>&2
15767
15768 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15769 *** create shared libraries on Solaris systems.  Therefore, libtool
15770 *** is disabling shared libraries support.  We urge you to upgrade GNU
15771 *** binutils to release 2.9.1 or newer.  Another option is to modify
15772 *** your PATH or compiler configuration so that the native linker is
15773 *** used, and then restart.
15774
15775 EOF
15776       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15777         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15778         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15779       else
15780         ld_shlibs=no
15781       fi
15782       ;;
15783
15784     sunos4*)
15785       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15786       wlarc=
15787       hardcode_direct=yes
15788       hardcode_shlibpath_var=no
15789       ;;
15790
15791     *)
15792       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15793         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15794         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15795       else
15796         ld_shlibs=no
15797       fi
15798       ;;
15799     esac
15800
15801     if test "$ld_shlibs" = no; then
15802       runpath_var=
15803       hardcode_libdir_flag_spec=
15804       export_dynamic_flag_spec=
15805       whole_archive_flag_spec=
15806     fi
15807   else
15808     # PORTME fill in a description of your system's linker (not GNU ld)
15809     case $host_os in
15810     aix3*)
15811       allow_undefined_flag=unsupported
15812       always_export_symbols=yes
15813       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'
15814       # Note: this linker hardcodes the directories in LIBPATH if there
15815       # are no directories specified by -L.
15816       hardcode_minus_L=yes
15817       if test "$GCC" = yes && test -z "$link_static_flag"; then
15818         # Neither direct hardcoding nor static linking is supported with a
15819         # broken collect2.
15820         hardcode_direct=unsupported
15821       fi
15822       ;;
15823
15824     aix4* | aix5*)
15825       if test "$host_cpu" = ia64; then
15826         # On IA64, the linker does run time linking by default, so we don't
15827         # have to do anything special.
15828         aix_use_runtimelinking=no
15829         exp_sym_flag='-Bexport'
15830         no_entry_flag=""
15831       else
15832         # If we're using GNU nm, then we don't want the "-C" option.
15833         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15834         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15835           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'
15836         else
15837           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'
15838         fi
15839         aix_use_runtimelinking=no
15840
15841         # Test if we are trying to use run time linking or normal
15842         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15843         # need to do runtime linking.
15844         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15845           for ld_flag in $LDFLAGS; do
15846           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15847             aix_use_runtimelinking=yes
15848             break
15849           fi
15850           done
15851         esac
15852
15853         exp_sym_flag='-bexport'
15854         no_entry_flag='-bnoentry'
15855       fi
15856
15857       # When large executables or shared objects are built, AIX ld can
15858       # have problems creating the table of contents.  If linking a library
15859       # or program results in "error TOC overflow" add -mminimal-toc to
15860       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15861       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15862
15863       archive_cmds=''
15864       hardcode_direct=yes
15865       hardcode_libdir_separator=':'
15866       link_all_deplibs=yes
15867
15868       if test "$GCC" = yes; then
15869         case $host_os in aix4.[012]|aix4.[012].*)
15870         # We only want to do this on AIX 4.2 and lower, the check
15871         # below for broken collect2 doesn't work under 4.3+
15872           collect2name=`${CC} -print-prog-name=collect2`
15873           if test -f "$collect2name" && \
15874            strings "$collect2name" | grep resolve_lib_name >/dev/null
15875           then
15876           # We have reworked collect2
15877           hardcode_direct=yes
15878           else
15879           # We have old collect2
15880           hardcode_direct=unsupported
15881           # It fails to find uninstalled libraries when the uninstalled
15882           # path is not listed in the libpath.  Setting hardcode_minus_L
15883           # to unsupported forces relinking
15884           hardcode_minus_L=yes
15885           hardcode_libdir_flag_spec='-L$libdir'
15886           hardcode_libdir_separator=
15887           fi
15888         esac
15889         shared_flag='-shared'
15890         if test "$aix_use_runtimelinking" = yes; then
15891           shared_flag="$shared_flag "'${wl}-G'
15892         fi
15893       else
15894         # not using gcc
15895         if test "$host_cpu" = ia64; then
15896         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15897         # chokes on -Wl,-G. The following line is correct:
15898           shared_flag='-G'
15899         else
15900         if test "$aix_use_runtimelinking" = yes; then
15901             shared_flag='${wl}-G'
15902           else
15903             shared_flag='${wl}-bM:SRE'
15904         fi
15905         fi
15906       fi
15907
15908       # It seems that -bexpall does not export symbols beginning with
15909       # underscore (_), so it is better to generate a list of symbols to export.
15910       always_export_symbols=yes
15911       if test "$aix_use_runtimelinking" = yes; then
15912         # Warning - without using the other runtime loading flags (-brtl),
15913         # -berok will link without error, but may produce a broken library.
15914         allow_undefined_flag='-berok'
15915        # Determine the default libpath from the value encoded in an empty executable.
15916        cat >conftest.$ac_ext <<_ACEOF
15917 /* confdefs.h.  */
15918 _ACEOF
15919 cat confdefs.h >>conftest.$ac_ext
15920 cat >>conftest.$ac_ext <<_ACEOF
15921 /* end confdefs.h.  */
15922
15923 int
15924 main ()
15925 {
15926
15927   ;
15928   return 0;
15929 }
15930 _ACEOF
15931 rm -f conftest.$ac_objext conftest$ac_exeext
15932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15933   (eval $ac_link) 2>conftest.er1
15934   ac_status=$?
15935   grep -v '^ *+' conftest.er1 >conftest.err
15936   rm -f conftest.er1
15937   cat conftest.err >&5
15938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15939   (exit $ac_status); } &&
15940          { ac_try='test -z "$ac_c_werror_flag"
15941                          || test ! -s conftest.err'
15942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15943   (eval $ac_try) 2>&5
15944   ac_status=$?
15945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15946   (exit $ac_status); }; } &&
15947          { ac_try='test -s conftest$ac_exeext'
15948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15949   (eval $ac_try) 2>&5
15950   ac_status=$?
15951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15952   (exit $ac_status); }; }; then
15953
15954 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15955 }'`
15956 # Check for a 64-bit object if we didn't find anything.
15957 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; }
15958 }'`; fi
15959 else
15960   echo "$as_me: failed program was:" >&5
15961 sed 's/^/| /' conftest.$ac_ext >&5
15962
15963 fi
15964 rm -f conftest.err conftest.$ac_objext \
15965       conftest$ac_exeext conftest.$ac_ext
15966 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15967
15968        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15969         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"
15970        else
15971         if test "$host_cpu" = ia64; then
15972           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15973           allow_undefined_flag="-z nodefs"
15974           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"
15975         else
15976          # Determine the default libpath from the value encoded in an empty executable.
15977          cat >conftest.$ac_ext <<_ACEOF
15978 /* confdefs.h.  */
15979 _ACEOF
15980 cat confdefs.h >>conftest.$ac_ext
15981 cat >>conftest.$ac_ext <<_ACEOF
15982 /* end confdefs.h.  */
15983
15984 int
15985 main ()
15986 {
15987
15988   ;
15989   return 0;
15990 }
15991 _ACEOF
15992 rm -f conftest.$ac_objext conftest$ac_exeext
15993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15994   (eval $ac_link) 2>conftest.er1
15995   ac_status=$?
15996   grep -v '^ *+' conftest.er1 >conftest.err
15997   rm -f conftest.er1
15998   cat conftest.err >&5
15999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16000   (exit $ac_status); } &&
16001          { ac_try='test -z "$ac_c_werror_flag"
16002                          || test ! -s conftest.err'
16003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16004   (eval $ac_try) 2>&5
16005   ac_status=$?
16006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16007   (exit $ac_status); }; } &&
16008          { ac_try='test -s conftest$ac_exeext'
16009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16010   (eval $ac_try) 2>&5
16011   ac_status=$?
16012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16013   (exit $ac_status); }; }; then
16014
16015 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16016 }'`
16017 # Check for a 64-bit object if we didn't find anything.
16018 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; }
16019 }'`; fi
16020 else
16021   echo "$as_me: failed program was:" >&5
16022 sed 's/^/| /' conftest.$ac_ext >&5
16023
16024 fi
16025 rm -f conftest.err conftest.$ac_objext \
16026       conftest$ac_exeext conftest.$ac_ext
16027 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16028
16029          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16030           # Warning - without using the other run time loading flags,
16031           # -berok will link without error, but may produce a broken library.
16032           no_undefined_flag=' ${wl}-bernotok'
16033           allow_undefined_flag=' ${wl}-berok'
16034           # -bexpall does not export symbols beginning with underscore (_)
16035           always_export_symbols=yes
16036           # Exported symbols can be pulled into shared objects from archives
16037           whole_archive_flag_spec=' '
16038           archive_cmds_need_lc=yes
16039           # This is similar to how AIX traditionally builds its shared libraries.
16040           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'
16041         fi
16042       fi
16043       ;;
16044
16045     amigaos*)
16046       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)'
16047       hardcode_libdir_flag_spec='-L$libdir'
16048       hardcode_minus_L=yes
16049       # see comment about different semantics on the GNU ld section
16050       ld_shlibs=no
16051       ;;
16052
16053     bsdi[45]*)
16054       export_dynamic_flag_spec=-rdynamic
16055       ;;
16056
16057     cygwin* | mingw* | pw32*)
16058       # When not using gcc, we currently assume that we are using
16059       # Microsoft Visual C++.
16060       # hardcode_libdir_flag_spec is actually meaningless, as there is
16061       # no search path for DLLs.
16062       hardcode_libdir_flag_spec=' '
16063       allow_undefined_flag=unsupported
16064       # Tell ltmain to make .lib files, not .a files.
16065       libext=lib
16066       # Tell ltmain to make .dll files, not .so files.
16067       shrext_cmds=".dll"
16068       # FIXME: Setting linknames here is a bad hack.
16069       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16070       # The linker will automatically build a .lib file if we build a DLL.
16071       old_archive_From_new_cmds='true'
16072       # FIXME: Should let the user specify the lib program.
16073       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
16074       fix_srcfile_path='`cygpath -w "$srcfile"`'
16075       enable_shared_with_static_runtimes=yes
16076       ;;
16077
16078     darwin* | rhapsody*)
16079       case $host_os in
16080         rhapsody* | darwin1.[012])
16081          allow_undefined_flag='${wl}-undefined ${wl}suppress'
16082          ;;
16083        *) # Darwin 1.3 on
16084          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16085            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16086          else
16087            case ${MACOSX_DEPLOYMENT_TARGET} in
16088              10.[012])
16089                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16090                ;;
16091              10.*)
16092                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
16093                ;;
16094            esac
16095          fi
16096          ;;
16097       esac
16098       archive_cmds_need_lc=no
16099       hardcode_direct=no
16100       hardcode_automatic=yes
16101       hardcode_shlibpath_var=unsupported
16102       whole_archive_flag_spec=''
16103       link_all_deplibs=yes
16104     if test "$GCC" = yes ; then
16105         output_verbose_link_cmd='echo'
16106         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16107       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16108       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16109       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}'
16110       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}'
16111     else
16112       case $cc_basename in
16113         xlc*)
16114          output_verbose_link_cmd='echo'
16115          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16116          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16117           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16118          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}'
16119           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}'
16120           ;;
16121        *)
16122          ld_shlibs=no
16123           ;;
16124       esac
16125     fi
16126       ;;
16127
16128     dgux*)
16129       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16130       hardcode_libdir_flag_spec='-L$libdir'
16131       hardcode_shlibpath_var=no
16132       ;;
16133
16134     freebsd1*)
16135       ld_shlibs=no
16136       ;;
16137
16138     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16139     # support.  Future versions do this automatically, but an explicit c++rt0.o
16140     # does not break anything, and helps significantly (at the cost of a little
16141     # extra space).
16142     freebsd2.2*)
16143       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16144       hardcode_libdir_flag_spec='-R$libdir'
16145       hardcode_direct=yes
16146       hardcode_shlibpath_var=no
16147       ;;
16148
16149     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16150     freebsd2*)
16151       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16152       hardcode_direct=yes
16153       hardcode_minus_L=yes
16154       hardcode_shlibpath_var=no
16155       ;;
16156
16157     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16158     freebsd* | kfreebsd*-gnu | dragonfly*)
16159       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16160       hardcode_libdir_flag_spec='-R$libdir'
16161       hardcode_direct=yes
16162       hardcode_shlibpath_var=no
16163       ;;
16164
16165     hpux9*)
16166       if test "$GCC" = yes; then
16167         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'
16168       else
16169         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'
16170       fi
16171       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16172       hardcode_libdir_separator=:
16173       hardcode_direct=yes
16174
16175       # hardcode_minus_L: Not really in the search PATH,
16176       # but as the default location of the library.
16177       hardcode_minus_L=yes
16178       export_dynamic_flag_spec='${wl}-E'
16179       ;;
16180
16181     hpux10* | hpux11*)
16182       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16183         case $host_cpu in
16184         hppa*64*|ia64*)
16185           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16186           ;;
16187         *)
16188           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16189           ;;
16190         esac
16191       else
16192         case $host_cpu in
16193         hppa*64*|ia64*)
16194           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16195           ;;
16196         *)
16197           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16198           ;;
16199         esac
16200       fi
16201       if test "$with_gnu_ld" = no; then
16202         case $host_cpu in
16203         hppa*64*)
16204           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16205           hardcode_libdir_flag_spec_ld='+b $libdir'
16206           hardcode_libdir_separator=:
16207           hardcode_direct=no
16208           hardcode_shlibpath_var=no
16209           ;;
16210         ia64*)
16211           hardcode_libdir_flag_spec='-L$libdir'
16212           hardcode_direct=no
16213           hardcode_shlibpath_var=no
16214
16215           # hardcode_minus_L: Not really in the search PATH,
16216           # but as the default location of the library.
16217           hardcode_minus_L=yes
16218           ;;
16219         *)
16220           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16221           hardcode_libdir_separator=:
16222           hardcode_direct=yes
16223           export_dynamic_flag_spec='${wl}-E'
16224
16225           # hardcode_minus_L: Not really in the search PATH,
16226           # but as the default location of the library.
16227           hardcode_minus_L=yes
16228           ;;
16229         esac
16230       fi
16231       ;;
16232
16233     irix5* | irix6* | nonstopux*)
16234       if test "$GCC" = yes; then
16235         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'
16236       else
16237         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'
16238         hardcode_libdir_flag_spec_ld='-rpath $libdir'
16239       fi
16240       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16241       hardcode_libdir_separator=:
16242       link_all_deplibs=yes
16243       ;;
16244
16245     netbsd*)
16246       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16247         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16248       else
16249         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16250       fi
16251       hardcode_libdir_flag_spec='-R$libdir'
16252       hardcode_direct=yes
16253       hardcode_shlibpath_var=no
16254       ;;
16255
16256     newsos6)
16257       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16258       hardcode_direct=yes
16259       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16260       hardcode_libdir_separator=:
16261       hardcode_shlibpath_var=no
16262       ;;
16263
16264     openbsd*)
16265       hardcode_direct=yes
16266       hardcode_shlibpath_var=no
16267       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16268         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16269         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16270         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16271         export_dynamic_flag_spec='${wl}-E'
16272       else
16273        case $host_os in
16274          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16275            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16276            hardcode_libdir_flag_spec='-R$libdir'
16277            ;;
16278          *)
16279            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16280            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16281            ;;
16282        esac
16283       fi
16284       ;;
16285
16286     os2*)
16287       hardcode_libdir_flag_spec='-L$libdir'
16288       hardcode_minus_L=yes
16289       allow_undefined_flag=unsupported
16290       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'
16291       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16292       ;;
16293
16294     osf3*)
16295       if test "$GCC" = yes; then
16296         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16297         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'
16298       else
16299         allow_undefined_flag=' -expect_unresolved \*'
16300         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'
16301       fi
16302       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16303       hardcode_libdir_separator=:
16304       ;;
16305
16306     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16307       if test "$GCC" = yes; then
16308         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16309         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'
16310         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16311       else
16312         allow_undefined_flag=' -expect_unresolved \*'
16313         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'
16314         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
16315         $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'
16316
16317         # Both c and cxx compiler support -rpath directly
16318         hardcode_libdir_flag_spec='-rpath $libdir'
16319       fi
16320       hardcode_libdir_separator=:
16321       ;;
16322
16323     sco3.2v5*)
16324       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16325       hardcode_shlibpath_var=no
16326       export_dynamic_flag_spec='${wl}-Bexport'
16327       runpath_var=LD_RUN_PATH
16328       hardcode_runpath_var=yes
16329       ;;
16330
16331     solaris*)
16332       no_undefined_flag=' -z text'
16333       if test "$GCC" = yes; then
16334         wlarc='${wl}'
16335         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16336         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16337           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16338       else
16339         wlarc=''
16340         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16341         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16342         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16343       fi
16344       hardcode_libdir_flag_spec='-R$libdir'
16345       hardcode_shlibpath_var=no
16346       case $host_os in
16347       solaris2.[0-5] | solaris2.[0-5].*) ;;
16348       *)
16349         # The compiler driver will combine linker options so we
16350         # cannot just pass the convience library names through
16351         # without $wl, iff we do not link with $LD.
16352         # Luckily, gcc supports the same syntax we need for Sun Studio.
16353         # Supported since Solaris 2.6 (maybe 2.5.1?)
16354         case $wlarc in
16355         '')
16356           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
16357         *)
16358           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' ;;
16359         esac ;;
16360       esac
16361       link_all_deplibs=yes
16362       ;;
16363
16364     sunos4*)
16365       if test "x$host_vendor" = xsequent; then
16366         # Use $CC to link under sequent, because it throws in some extra .o
16367         # files that make .init and .fini sections work.
16368         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16369       else
16370         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16371       fi
16372       hardcode_libdir_flag_spec='-L$libdir'
16373       hardcode_direct=yes
16374       hardcode_minus_L=yes
16375       hardcode_shlibpath_var=no
16376       ;;
16377
16378     sysv4)
16379       case $host_vendor in
16380         sni)
16381           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16382           hardcode_direct=yes # is this really true???
16383         ;;
16384         siemens)
16385           ## LD is ld it makes a PLAMLIB
16386           ## CC just makes a GrossModule.
16387           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16388           reload_cmds='$CC -r -o $output$reload_objs'
16389           hardcode_direct=no
16390         ;;
16391         motorola)
16392           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16393           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16394         ;;
16395       esac
16396       runpath_var='LD_RUN_PATH'
16397       hardcode_shlibpath_var=no
16398       ;;
16399
16400     sysv4.3*)
16401       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16402       hardcode_shlibpath_var=no
16403       export_dynamic_flag_spec='-Bexport'
16404       ;;
16405
16406     sysv4*MP*)
16407       if test -d /usr/nec; then
16408         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16409         hardcode_shlibpath_var=no
16410         runpath_var=LD_RUN_PATH
16411         hardcode_runpath_var=yes
16412         ld_shlibs=yes
16413       fi
16414       ;;
16415
16416     sysv4.2uw2*)
16417       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16418       hardcode_direct=yes
16419       hardcode_minus_L=no
16420       hardcode_shlibpath_var=no
16421       hardcode_runpath_var=yes
16422       runpath_var=LD_RUN_PATH
16423       ;;
16424
16425    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
16426       no_undefined_flag='${wl}-z ${wl}text'
16427       if test "$GCC" = yes; then
16428         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16429       else
16430         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16431       fi
16432       runpath_var='LD_RUN_PATH'
16433       hardcode_shlibpath_var=no
16434       ;;
16435
16436     sysv5*)
16437       no_undefined_flag=' -z text'
16438       # $CC -shared without GNU ld will not create a library from C++
16439       # object files and a static libstdc++, better avoid it by now
16440       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16441       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16442                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16443       hardcode_libdir_flag_spec=
16444       hardcode_shlibpath_var=no
16445       runpath_var='LD_RUN_PATH'
16446       ;;
16447
16448     uts4*)
16449       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16450       hardcode_libdir_flag_spec='-L$libdir'
16451       hardcode_shlibpath_var=no
16452       ;;
16453
16454     *)
16455       ld_shlibs=no
16456       ;;
16457     esac
16458   fi
16459
16460 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
16461 echo "${ECHO_T}$ld_shlibs" >&6
16462 test "$ld_shlibs" = no && can_build_shared=no
16463
16464 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16465 if test "$GCC" = yes; then
16466   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16467 fi
16468
16469 #
16470 # Do we need to explicitly link libc?
16471 #
16472 case "x$archive_cmds_need_lc" in
16473 x|xyes)
16474   # Assume -lc should be added
16475   archive_cmds_need_lc=yes
16476
16477   if test "$enable_shared" = yes && test "$GCC" = yes; then
16478     case $archive_cmds in
16479     *'~'*)
16480       # FIXME: we may have to deal with multi-command sequences.
16481       ;;
16482     '$CC '*)
16483       # Test whether the compiler implicitly links with -lc since on some
16484       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16485       # to ld, don't add -lc before -lgcc.
16486       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16487 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16488       $rm conftest*
16489       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16490
16491       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16492   (eval $ac_compile) 2>&5
16493   ac_status=$?
16494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16495   (exit $ac_status); } 2>conftest.err; then
16496         soname=conftest
16497         lib=conftest
16498         libobjs=conftest.$ac_objext
16499         deplibs=
16500         wl=$lt_prog_compiler_wl
16501         compiler_flags=-v
16502         linker_flags=-v
16503         verstring=
16504         output_objdir=.
16505         libname=conftest
16506         lt_save_allow_undefined_flag=$allow_undefined_flag
16507         allow_undefined_flag=
16508         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16509   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16510   ac_status=$?
16511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16512   (exit $ac_status); }
16513         then
16514           archive_cmds_need_lc=no
16515         else
16516           archive_cmds_need_lc=yes
16517         fi
16518         allow_undefined_flag=$lt_save_allow_undefined_flag
16519       else
16520         cat conftest.err 1>&5
16521       fi
16522       $rm conftest*
16523       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
16524 echo "${ECHO_T}$archive_cmds_need_lc" >&6
16525       ;;
16526     esac
16527   fi
16528   ;;
16529 esac
16530
16531 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16532 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16533 library_names_spec=
16534 libname_spec='lib$name'
16535 soname_spec=
16536 shrext_cmds=".so"
16537 postinstall_cmds=
16538 postuninstall_cmds=
16539 finish_cmds=
16540 finish_eval=
16541 shlibpath_var=
16542 shlibpath_overrides_runpath=unknown
16543 version_type=none
16544 dynamic_linker="$host_os ld.so"
16545 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16546 if test "$GCC" = yes; then
16547   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16548   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16549     # if the path contains ";" then we assume it to be the separator
16550     # otherwise default to the standard path separator (i.e. ":") - it is
16551     # assumed that no part of a normal pathname contains ";" but that should
16552     # okay in the real world where ";" in dirpaths is itself problematic.
16553     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16554   else
16555     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16556   fi
16557 else
16558   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16559 fi
16560 need_lib_prefix=unknown
16561 hardcode_into_libs=no
16562
16563 # when you set need_version to no, make sure it does not cause -set_version
16564 # flags to be left without arguments
16565 need_version=unknown
16566
16567 case $host_os in
16568 aix3*)
16569   version_type=linux
16570   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16571   shlibpath_var=LIBPATH
16572
16573   # AIX 3 has no versioning support, so we append a major version to the name.
16574   soname_spec='${libname}${release}${shared_ext}$major'
16575   ;;
16576
16577 aix4* | aix5*)
16578   version_type=linux
16579   need_lib_prefix=no
16580   need_version=no
16581   hardcode_into_libs=yes
16582   if test "$host_cpu" = ia64; then
16583     # AIX 5 supports IA64
16584     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16585     shlibpath_var=LD_LIBRARY_PATH
16586   else
16587     # With GCC up to 2.95.x, collect2 would create an import file
16588     # for dependence libraries.  The import file would start with
16589     # the line `#! .'.  This would cause the generated library to
16590     # depend on `.', always an invalid library.  This was fixed in
16591     # development snapshots of GCC prior to 3.0.
16592     case $host_os in
16593       aix4 | aix4.[01] | aix4.[01].*)
16594       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16595            echo ' yes '
16596            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16597         :
16598       else
16599         can_build_shared=no
16600       fi
16601       ;;
16602     esac
16603     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16604     # soname into executable. Probably we can add versioning support to
16605     # collect2, so additional links can be useful in future.
16606     if test "$aix_use_runtimelinking" = yes; then
16607       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16608       # instead of lib<name>.a to let people know that these are not
16609       # typical AIX shared libraries.
16610       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16611     else
16612       # We preserve .a as extension for shared libraries through AIX4.2
16613       # and later when we are not doing run time linking.
16614       library_names_spec='${libname}${release}.a $libname.a'
16615       soname_spec='${libname}${release}${shared_ext}$major'
16616     fi
16617     shlibpath_var=LIBPATH
16618   fi
16619   ;;
16620
16621 amigaos*)
16622   library_names_spec='$libname.ixlibrary $libname.a'
16623   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16624   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'
16625   ;;
16626
16627 beos*)
16628   library_names_spec='${libname}${shared_ext}'
16629   dynamic_linker="$host_os ld.so"
16630   shlibpath_var=LIBRARY_PATH
16631   ;;
16632
16633 bsdi[45]*)
16634   version_type=linux
16635   need_version=no
16636   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16637   soname_spec='${libname}${release}${shared_ext}$major'
16638   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16639   shlibpath_var=LD_LIBRARY_PATH
16640   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16641   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16642   # the default ld.so.conf also contains /usr/contrib/lib and
16643   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16644   # libtool to hard-code these into programs
16645   ;;
16646
16647 cygwin* | mingw* | pw32*)
16648   version_type=windows
16649   shrext_cmds=".dll"
16650   need_version=no
16651   need_lib_prefix=no
16652
16653   case $GCC,$host_os in
16654   yes,cygwin* | yes,mingw* | yes,pw32*)
16655     library_names_spec='$libname.dll.a'
16656     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16657     postinstall_cmds='base_file=`basename \${file}`~
16658       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16659       dldir=$destdir/`dirname \$dlpath`~
16660       test -d \$dldir || mkdir -p \$dldir~
16661       $install_prog $dir/$dlname \$dldir/$dlname~
16662       chmod a+x \$dldir/$dlname'
16663     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16664       dlpath=$dir/\$dldll~
16665        $rm \$dlpath'
16666     shlibpath_overrides_runpath=yes
16667
16668     case $host_os in
16669     cygwin*)
16670       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16671       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16672       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16673       ;;
16674     mingw*)
16675       # MinGW DLLs use traditional 'lib' prefix
16676       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16677       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16678       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16679         # It is most probably a Windows format PATH printed by
16680         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16681         # path with ; separators, and with drive letters. We can handle the
16682         # drive letters (cygwin fileutils understands them), so leave them,
16683         # especially as we might pass files found there to a mingw objdump,
16684         # which wouldn't understand a cygwinified path. Ahh.
16685         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16686       else
16687         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16688       fi
16689       ;;
16690     pw32*)
16691       # pw32 DLLs use 'pw' prefix rather than 'lib'
16692       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16693       ;;
16694     esac
16695     ;;
16696
16697   *)
16698     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16699     ;;
16700   esac
16701   dynamic_linker='Win32 ld.exe'
16702   # FIXME: first we should search . and the directory the executable is in
16703   shlibpath_var=PATH
16704   ;;
16705
16706 darwin* | rhapsody*)
16707   dynamic_linker="$host_os dyld"
16708   version_type=darwin
16709   need_lib_prefix=no
16710   need_version=no
16711   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16712   soname_spec='${libname}${release}${major}$shared_ext'
16713   shlibpath_overrides_runpath=yes
16714   shlibpath_var=DYLD_LIBRARY_PATH
16715   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16716   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16717   if test "$GCC" = yes; then
16718     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"`
16719   else
16720     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16721   fi
16722   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16723   ;;
16724
16725 dgux*)
16726   version_type=linux
16727   need_lib_prefix=no
16728   need_version=no
16729   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16730   soname_spec='${libname}${release}${shared_ext}$major'
16731   shlibpath_var=LD_LIBRARY_PATH
16732   ;;
16733
16734 freebsd1*)
16735   dynamic_linker=no
16736   ;;
16737
16738 kfreebsd*-gnu)
16739   version_type=linux
16740   need_lib_prefix=no
16741   need_version=no
16742   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16743   soname_spec='${libname}${release}${shared_ext}$major'
16744   shlibpath_var=LD_LIBRARY_PATH
16745   shlibpath_overrides_runpath=no
16746   hardcode_into_libs=yes
16747   dynamic_linker='GNU ld.so'
16748   ;;
16749
16750 freebsd* | dragonfly*)
16751   # DragonFly does not have aout.  When/if they implement a new
16752   # versioning mechanism, adjust this.
16753   if test -x /usr/bin/objformat; then
16754     objformat=`/usr/bin/objformat`
16755   else
16756     case $host_os in
16757     freebsd[123]*) objformat=aout ;;
16758     *) objformat=elf ;;
16759     esac
16760   fi
16761   version_type=freebsd-$objformat
16762   case $version_type in
16763     freebsd-elf*)
16764       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16765       need_version=no
16766       need_lib_prefix=no
16767       ;;
16768     freebsd-*)
16769       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16770       need_version=yes
16771       ;;
16772   esac
16773   shlibpath_var=LD_LIBRARY_PATH
16774   case $host_os in
16775   freebsd2*)
16776     shlibpath_overrides_runpath=yes
16777     ;;
16778   freebsd3.[01]* | freebsdelf3.[01]*)
16779     shlibpath_overrides_runpath=yes
16780     hardcode_into_libs=yes
16781     ;;
16782   *) # from 3.2 on
16783     shlibpath_overrides_runpath=no
16784     hardcode_into_libs=yes
16785     ;;
16786   esac
16787   ;;
16788
16789 gnu*)
16790   version_type=linux
16791   need_lib_prefix=no
16792   need_version=no
16793   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16794   soname_spec='${libname}${release}${shared_ext}$major'
16795   shlibpath_var=LD_LIBRARY_PATH
16796   hardcode_into_libs=yes
16797   ;;
16798
16799 hpux9* | hpux10* | hpux11*)
16800   # Give a soname corresponding to the major version so that dld.sl refuses to
16801   # link against other versions.
16802   version_type=sunos
16803   need_lib_prefix=no
16804   need_version=no
16805   case $host_cpu in
16806   ia64*)
16807     shrext_cmds='.so'
16808     hardcode_into_libs=yes
16809     dynamic_linker="$host_os dld.so"
16810     shlibpath_var=LD_LIBRARY_PATH
16811     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16812     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16813     soname_spec='${libname}${release}${shared_ext}$major'
16814     if test "X$HPUX_IA64_MODE" = X32; then
16815       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16816     else
16817       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16818     fi
16819     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16820     ;;
16821    hppa*64*)
16822      shrext_cmds='.sl'
16823      hardcode_into_libs=yes
16824      dynamic_linker="$host_os dld.sl"
16825      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16826      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16827      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16828      soname_spec='${libname}${release}${shared_ext}$major'
16829      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16830      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16831      ;;
16832    *)
16833     shrext_cmds='.sl'
16834     dynamic_linker="$host_os dld.sl"
16835     shlibpath_var=SHLIB_PATH
16836     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16837     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16838     soname_spec='${libname}${release}${shared_ext}$major'
16839     ;;
16840   esac
16841   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16842   postinstall_cmds='chmod 555 $lib'
16843   ;;
16844
16845 irix5* | irix6* | nonstopux*)
16846   case $host_os in
16847     nonstopux*) version_type=nonstopux ;;
16848     *)
16849         if test "$lt_cv_prog_gnu_ld" = yes; then
16850                 version_type=linux
16851         else
16852                 version_type=irix
16853         fi ;;
16854   esac
16855   need_lib_prefix=no
16856   need_version=no
16857   soname_spec='${libname}${release}${shared_ext}$major'
16858   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16859   case $host_os in
16860   irix5* | nonstopux*)
16861     libsuff= shlibsuff=
16862     ;;
16863   *)
16864     case $LD in # libtool.m4 will add one of these switches to LD
16865     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16866       libsuff= shlibsuff= libmagic=32-bit;;
16867     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16868       libsuff=32 shlibsuff=N32 libmagic=N32;;
16869     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16870       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16871     *) libsuff= shlibsuff= libmagic=never-match;;
16872     esac
16873     ;;
16874   esac
16875   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16876   shlibpath_overrides_runpath=no
16877   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16878   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16879   hardcode_into_libs=yes
16880   ;;
16881
16882 # No shared lib support for Linux oldld, aout, or coff.
16883 linux*oldld* | linux*aout* | linux*coff*)
16884   dynamic_linker=no
16885   ;;
16886
16887 # This must be Linux ELF.
16888 linux*)
16889   version_type=linux
16890   need_lib_prefix=no
16891   need_version=no
16892   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16893   soname_spec='${libname}${release}${shared_ext}$major'
16894   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16895   shlibpath_var=LD_LIBRARY_PATH
16896   shlibpath_overrides_runpath=no
16897   # This implies no fast_install, which is unacceptable.
16898   # Some rework will be needed to allow for fast_install
16899   # before this can be enabled.
16900   hardcode_into_libs=yes
16901
16902   # Append ld.so.conf contents to the search path
16903   if test -f /etc/ld.so.conf; then
16904     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' ' '`
16905     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16906   fi
16907
16908   # We used to test for /lib/ld.so.1 and disable shared libraries on
16909   # powerpc, because MkLinux only supported shared libraries with the
16910   # GNU dynamic linker.  Since this was broken with cross compilers,
16911   # most powerpc-linux boxes support dynamic linking these days and
16912   # people can always --disable-shared, the test was removed, and we
16913   # assume the GNU/Linux dynamic linker is in use.
16914   dynamic_linker='GNU/Linux ld.so'
16915   ;;
16916
16917 knetbsd*-gnu)
16918   version_type=linux
16919   need_lib_prefix=no
16920   need_version=no
16921   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16922   soname_spec='${libname}${release}${shared_ext}$major'
16923   shlibpath_var=LD_LIBRARY_PATH
16924   shlibpath_overrides_runpath=no
16925   hardcode_into_libs=yes
16926   dynamic_linker='GNU ld.so'
16927   ;;
16928
16929 netbsd*)
16930   version_type=sunos
16931   need_lib_prefix=no
16932   need_version=no
16933   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16934     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16935     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16936     dynamic_linker='NetBSD (a.out) ld.so'
16937   else
16938     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16939     soname_spec='${libname}${release}${shared_ext}$major'
16940     dynamic_linker='NetBSD ld.elf_so'
16941   fi
16942   shlibpath_var=LD_LIBRARY_PATH
16943   shlibpath_overrides_runpath=yes
16944   hardcode_into_libs=yes
16945   ;;
16946
16947 newsos6)
16948   version_type=linux
16949   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16950   shlibpath_var=LD_LIBRARY_PATH
16951   shlibpath_overrides_runpath=yes
16952   ;;
16953
16954 nto-qnx*)
16955   version_type=linux
16956   need_lib_prefix=no
16957   need_version=no
16958   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16959   soname_spec='${libname}${release}${shared_ext}$major'
16960   shlibpath_var=LD_LIBRARY_PATH
16961   shlibpath_overrides_runpath=yes
16962   ;;
16963
16964 openbsd*)
16965   version_type=sunos
16966   need_lib_prefix=no
16967   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16968   case $host_os in
16969     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16970     *)                         need_version=no  ;;
16971   esac
16972   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16973   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16974   shlibpath_var=LD_LIBRARY_PATH
16975   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16976     case $host_os in
16977       openbsd2.[89] | openbsd2.[89].*)
16978         shlibpath_overrides_runpath=no
16979         ;;
16980       *)
16981         shlibpath_overrides_runpath=yes
16982         ;;
16983       esac
16984   else
16985     shlibpath_overrides_runpath=yes
16986   fi
16987   ;;
16988
16989 os2*)
16990   libname_spec='$name'
16991   shrext_cmds=".dll"
16992   need_lib_prefix=no
16993   library_names_spec='$libname${shared_ext} $libname.a'
16994   dynamic_linker='OS/2 ld.exe'
16995   shlibpath_var=LIBPATH
16996   ;;
16997
16998 osf3* | osf4* | osf5*)
16999   version_type=osf
17000   need_lib_prefix=no
17001   need_version=no
17002   soname_spec='${libname}${release}${shared_ext}$major'
17003   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17004   shlibpath_var=LD_LIBRARY_PATH
17005   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17006   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17007   ;;
17008
17009 sco3.2v5*)
17010   version_type=osf
17011   soname_spec='${libname}${release}${shared_ext}$major'
17012   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17013   shlibpath_var=LD_LIBRARY_PATH
17014   ;;
17015
17016 solaris*)
17017   version_type=linux
17018   need_lib_prefix=no
17019   need_version=no
17020   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17021   soname_spec='${libname}${release}${shared_ext}$major'
17022   shlibpath_var=LD_LIBRARY_PATH
17023   shlibpath_overrides_runpath=yes
17024   hardcode_into_libs=yes
17025   # ldd complains unless libraries are executable
17026   postinstall_cmds='chmod +x $lib'
17027   ;;
17028
17029 sunos4*)
17030   version_type=sunos
17031   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17032   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17033   shlibpath_var=LD_LIBRARY_PATH
17034   shlibpath_overrides_runpath=yes
17035   if test "$with_gnu_ld" = yes; then
17036     need_lib_prefix=no
17037   fi
17038   need_version=yes
17039   ;;
17040
17041 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17042   version_type=linux
17043   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17044   soname_spec='${libname}${release}${shared_ext}$major'
17045   shlibpath_var=LD_LIBRARY_PATH
17046   case $host_vendor in
17047     sni)
17048       shlibpath_overrides_runpath=no
17049       need_lib_prefix=no
17050       export_dynamic_flag_spec='${wl}-Blargedynsym'
17051       runpath_var=LD_RUN_PATH
17052       ;;
17053     siemens)
17054       need_lib_prefix=no
17055       ;;
17056     motorola)
17057       need_lib_prefix=no
17058       need_version=no
17059       shlibpath_overrides_runpath=no
17060       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17061       ;;
17062   esac
17063   ;;
17064
17065 sysv4*MP*)
17066   if test -d /usr/nec ;then
17067     version_type=linux
17068     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17069     soname_spec='$libname${shared_ext}.$major'
17070     shlibpath_var=LD_LIBRARY_PATH
17071   fi
17072   ;;
17073
17074 uts4*)
17075   version_type=linux
17076   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17077   soname_spec='${libname}${release}${shared_ext}$major'
17078   shlibpath_var=LD_LIBRARY_PATH
17079   ;;
17080
17081 *)
17082   dynamic_linker=no
17083   ;;
17084 esac
17085 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17086 echo "${ECHO_T}$dynamic_linker" >&6
17087 test "$dynamic_linker" = no && can_build_shared=no
17088
17089 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17090 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17091 hardcode_action=
17092 if test -n "$hardcode_libdir_flag_spec" || \
17093    test -n "$runpath_var" || \
17094    test "X$hardcode_automatic" = "Xyes" ; then
17095
17096   # We can hardcode non-existant directories.
17097   if test "$hardcode_direct" != no &&
17098      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17099      # have to relink, otherwise we might link with an installed library
17100      # when we should be linking with a yet-to-be-installed one
17101      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
17102      test "$hardcode_minus_L" != no; then
17103     # Linking always hardcodes the temporary library directory.
17104     hardcode_action=relink
17105   else
17106     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17107     hardcode_action=immediate
17108   fi
17109 else
17110   # We cannot hardcode anything, or else we can only hardcode existing
17111   # directories.
17112   hardcode_action=unsupported
17113 fi
17114 echo "$as_me:$LINENO: result: $hardcode_action" >&5
17115 echo "${ECHO_T}$hardcode_action" >&6
17116
17117 if test "$hardcode_action" = relink; then
17118   # Fast installation is not supported
17119   enable_fast_install=no
17120 elif test "$shlibpath_overrides_runpath" = yes ||
17121      test "$enable_shared" = no; then
17122   # Fast installation is not necessary
17123   enable_fast_install=needless
17124 fi
17125
17126 striplib=
17127 old_striplib=
17128 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17129 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17130 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17131   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17132   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17133   echo "$as_me:$LINENO: result: yes" >&5
17134 echo "${ECHO_T}yes" >&6
17135 else
17136 # FIXME - insert some real tests, host_os isn't really good enough
17137   case $host_os in
17138    darwin*)
17139        if test -n "$STRIP" ; then
17140          striplib="$STRIP -x"
17141          echo "$as_me:$LINENO: result: yes" >&5
17142 echo "${ECHO_T}yes" >&6
17143        else
17144   echo "$as_me:$LINENO: result: no" >&5
17145 echo "${ECHO_T}no" >&6
17146 fi
17147        ;;
17148    *)
17149   echo "$as_me:$LINENO: result: no" >&5
17150 echo "${ECHO_T}no" >&6
17151     ;;
17152   esac
17153 fi
17154
17155 if test "x$enable_dlopen" != xyes; then
17156   enable_dlopen=unknown
17157   enable_dlopen_self=unknown
17158   enable_dlopen_self_static=unknown
17159 else
17160   lt_cv_dlopen=no
17161   lt_cv_dlopen_libs=
17162
17163   case $host_os in
17164   beos*)
17165     lt_cv_dlopen="load_add_on"
17166     lt_cv_dlopen_libs=
17167     lt_cv_dlopen_self=yes
17168     ;;
17169
17170   mingw* | pw32*)
17171     lt_cv_dlopen="LoadLibrary"
17172     lt_cv_dlopen_libs=
17173    ;;
17174
17175   cygwin*)
17176     lt_cv_dlopen="dlopen"
17177     lt_cv_dlopen_libs=
17178    ;;
17179
17180   darwin*)
17181   # if libdl is installed we need to link against it
17182     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17183 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17184 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17185   echo $ECHO_N "(cached) $ECHO_C" >&6
17186 else
17187   ac_check_lib_save_LIBS=$LIBS
17188 LIBS="-ldl  $LIBS"
17189 cat >conftest.$ac_ext <<_ACEOF
17190 /* confdefs.h.  */
17191 _ACEOF
17192 cat confdefs.h >>conftest.$ac_ext
17193 cat >>conftest.$ac_ext <<_ACEOF
17194 /* end confdefs.h.  */
17195
17196 /* Override any gcc2 internal prototype to avoid an error.  */
17197 #ifdef __cplusplus
17198 extern "C"
17199 #endif
17200 /* We use char because int might match the return type of a gcc2
17201    builtin and then its argument prototype would still apply.  */
17202 char dlopen ();
17203 int
17204 main ()
17205 {
17206 dlopen ();
17207   ;
17208   return 0;
17209 }
17210 _ACEOF
17211 rm -f conftest.$ac_objext conftest$ac_exeext
17212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17213   (eval $ac_link) 2>conftest.er1
17214   ac_status=$?
17215   grep -v '^ *+' conftest.er1 >conftest.err
17216   rm -f conftest.er1
17217   cat conftest.err >&5
17218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17219   (exit $ac_status); } &&
17220          { ac_try='test -z "$ac_c_werror_flag"
17221                          || test ! -s conftest.err'
17222   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17223   (eval $ac_try) 2>&5
17224   ac_status=$?
17225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17226   (exit $ac_status); }; } &&
17227          { ac_try='test -s conftest$ac_exeext'
17228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17229   (eval $ac_try) 2>&5
17230   ac_status=$?
17231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17232   (exit $ac_status); }; }; then
17233   ac_cv_lib_dl_dlopen=yes
17234 else
17235   echo "$as_me: failed program was:" >&5
17236 sed 's/^/| /' conftest.$ac_ext >&5
17237
17238 ac_cv_lib_dl_dlopen=no
17239 fi
17240 rm -f conftest.err conftest.$ac_objext \
17241       conftest$ac_exeext conftest.$ac_ext
17242 LIBS=$ac_check_lib_save_LIBS
17243 fi
17244 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17245 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17246 if test $ac_cv_lib_dl_dlopen = yes; then
17247   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17248 else
17249
17250     lt_cv_dlopen="dyld"
17251     lt_cv_dlopen_libs=
17252     lt_cv_dlopen_self=yes
17253
17254 fi
17255
17256    ;;
17257
17258   *)
17259     echo "$as_me:$LINENO: checking for shl_load" >&5
17260 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17261 if test "${ac_cv_func_shl_load+set}" = set; then
17262   echo $ECHO_N "(cached) $ECHO_C" >&6
17263 else
17264   cat >conftest.$ac_ext <<_ACEOF
17265 /* confdefs.h.  */
17266 _ACEOF
17267 cat confdefs.h >>conftest.$ac_ext
17268 cat >>conftest.$ac_ext <<_ACEOF
17269 /* end confdefs.h.  */
17270 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17271    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17272 #define shl_load innocuous_shl_load
17273
17274 /* System header to define __stub macros and hopefully few prototypes,
17275     which can conflict with char shl_load (); below.
17276     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17277     <limits.h> exists even on freestanding compilers.  */
17278
17279 #ifdef __STDC__
17280 # include <limits.h>
17281 #else
17282 # include <assert.h>
17283 #endif
17284
17285 #undef shl_load
17286
17287 /* Override any gcc2 internal prototype to avoid an error.  */
17288 #ifdef __cplusplus
17289 extern "C"
17290 {
17291 #endif
17292 /* We use char because int might match the return type of a gcc2
17293    builtin and then its argument prototype would still apply.  */
17294 char shl_load ();
17295 /* The GNU C library defines this for functions which it implements
17296     to always fail with ENOSYS.  Some functions are actually named
17297     something starting with __ and the normal name is an alias.  */
17298 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17299 choke me
17300 #else
17301 char (*f) () = shl_load;
17302 #endif
17303 #ifdef __cplusplus
17304 }
17305 #endif
17306
17307 int
17308 main ()
17309 {
17310 return f != shl_load;
17311   ;
17312   return 0;
17313 }
17314 _ACEOF
17315 rm -f conftest.$ac_objext conftest$ac_exeext
17316 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17317   (eval $ac_link) 2>conftest.er1
17318   ac_status=$?
17319   grep -v '^ *+' conftest.er1 >conftest.err
17320   rm -f conftest.er1
17321   cat conftest.err >&5
17322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17323   (exit $ac_status); } &&
17324          { ac_try='test -z "$ac_c_werror_flag"
17325                          || test ! -s conftest.err'
17326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17327   (eval $ac_try) 2>&5
17328   ac_status=$?
17329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17330   (exit $ac_status); }; } &&
17331          { ac_try='test -s conftest$ac_exeext'
17332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17333   (eval $ac_try) 2>&5
17334   ac_status=$?
17335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17336   (exit $ac_status); }; }; then
17337   ac_cv_func_shl_load=yes
17338 else
17339   echo "$as_me: failed program was:" >&5
17340 sed 's/^/| /' conftest.$ac_ext >&5
17341
17342 ac_cv_func_shl_load=no
17343 fi
17344 rm -f conftest.err conftest.$ac_objext \
17345       conftest$ac_exeext conftest.$ac_ext
17346 fi
17347 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17348 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17349 if test $ac_cv_func_shl_load = yes; then
17350   lt_cv_dlopen="shl_load"
17351 else
17352   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17353 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17354 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17355   echo $ECHO_N "(cached) $ECHO_C" >&6
17356 else
17357   ac_check_lib_save_LIBS=$LIBS
17358 LIBS="-ldld  $LIBS"
17359 cat >conftest.$ac_ext <<_ACEOF
17360 /* confdefs.h.  */
17361 _ACEOF
17362 cat confdefs.h >>conftest.$ac_ext
17363 cat >>conftest.$ac_ext <<_ACEOF
17364 /* end confdefs.h.  */
17365
17366 /* Override any gcc2 internal prototype to avoid an error.  */
17367 #ifdef __cplusplus
17368 extern "C"
17369 #endif
17370 /* We use char because int might match the return type of a gcc2
17371    builtin and then its argument prototype would still apply.  */
17372 char shl_load ();
17373 int
17374 main ()
17375 {
17376 shl_load ();
17377   ;
17378   return 0;
17379 }
17380 _ACEOF
17381 rm -f conftest.$ac_objext conftest$ac_exeext
17382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17383   (eval $ac_link) 2>conftest.er1
17384   ac_status=$?
17385   grep -v '^ *+' conftest.er1 >conftest.err
17386   rm -f conftest.er1
17387   cat conftest.err >&5
17388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17389   (exit $ac_status); } &&
17390          { ac_try='test -z "$ac_c_werror_flag"
17391                          || test ! -s conftest.err'
17392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17393   (eval $ac_try) 2>&5
17394   ac_status=$?
17395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17396   (exit $ac_status); }; } &&
17397          { ac_try='test -s conftest$ac_exeext'
17398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17399   (eval $ac_try) 2>&5
17400   ac_status=$?
17401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17402   (exit $ac_status); }; }; then
17403   ac_cv_lib_dld_shl_load=yes
17404 else
17405   echo "$as_me: failed program was:" >&5
17406 sed 's/^/| /' conftest.$ac_ext >&5
17407
17408 ac_cv_lib_dld_shl_load=no
17409 fi
17410 rm -f conftest.err conftest.$ac_objext \
17411       conftest$ac_exeext conftest.$ac_ext
17412 LIBS=$ac_check_lib_save_LIBS
17413 fi
17414 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17415 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17416 if test $ac_cv_lib_dld_shl_load = yes; then
17417   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17418 else
17419   echo "$as_me:$LINENO: checking for dlopen" >&5
17420 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17421 if test "${ac_cv_func_dlopen+set}" = set; then
17422   echo $ECHO_N "(cached) $ECHO_C" >&6
17423 else
17424   cat >conftest.$ac_ext <<_ACEOF
17425 /* confdefs.h.  */
17426 _ACEOF
17427 cat confdefs.h >>conftest.$ac_ext
17428 cat >>conftest.$ac_ext <<_ACEOF
17429 /* end confdefs.h.  */
17430 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17431    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17432 #define dlopen innocuous_dlopen
17433
17434 /* System header to define __stub macros and hopefully few prototypes,
17435     which can conflict with char dlopen (); below.
17436     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17437     <limits.h> exists even on freestanding compilers.  */
17438
17439 #ifdef __STDC__
17440 # include <limits.h>
17441 #else
17442 # include <assert.h>
17443 #endif
17444
17445 #undef dlopen
17446
17447 /* Override any gcc2 internal prototype to avoid an error.  */
17448 #ifdef __cplusplus
17449 extern "C"
17450 {
17451 #endif
17452 /* We use char because int might match the return type of a gcc2
17453    builtin and then its argument prototype would still apply.  */
17454 char dlopen ();
17455 /* The GNU C library defines this for functions which it implements
17456     to always fail with ENOSYS.  Some functions are actually named
17457     something starting with __ and the normal name is an alias.  */
17458 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17459 choke me
17460 #else
17461 char (*f) () = dlopen;
17462 #endif
17463 #ifdef __cplusplus
17464 }
17465 #endif
17466
17467 int
17468 main ()
17469 {
17470 return f != dlopen;
17471   ;
17472   return 0;
17473 }
17474 _ACEOF
17475 rm -f conftest.$ac_objext conftest$ac_exeext
17476 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17477   (eval $ac_link) 2>conftest.er1
17478   ac_status=$?
17479   grep -v '^ *+' conftest.er1 >conftest.err
17480   rm -f conftest.er1
17481   cat conftest.err >&5
17482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17483   (exit $ac_status); } &&
17484          { ac_try='test -z "$ac_c_werror_flag"
17485                          || test ! -s conftest.err'
17486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17487   (eval $ac_try) 2>&5
17488   ac_status=$?
17489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17490   (exit $ac_status); }; } &&
17491          { ac_try='test -s conftest$ac_exeext'
17492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17493   (eval $ac_try) 2>&5
17494   ac_status=$?
17495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17496   (exit $ac_status); }; }; then
17497   ac_cv_func_dlopen=yes
17498 else
17499   echo "$as_me: failed program was:" >&5
17500 sed 's/^/| /' conftest.$ac_ext >&5
17501
17502 ac_cv_func_dlopen=no
17503 fi
17504 rm -f conftest.err conftest.$ac_objext \
17505       conftest$ac_exeext conftest.$ac_ext
17506 fi
17507 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17508 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17509 if test $ac_cv_func_dlopen = yes; then
17510   lt_cv_dlopen="dlopen"
17511 else
17512   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17513 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17514 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17515   echo $ECHO_N "(cached) $ECHO_C" >&6
17516 else
17517   ac_check_lib_save_LIBS=$LIBS
17518 LIBS="-ldl  $LIBS"
17519 cat >conftest.$ac_ext <<_ACEOF
17520 /* confdefs.h.  */
17521 _ACEOF
17522 cat confdefs.h >>conftest.$ac_ext
17523 cat >>conftest.$ac_ext <<_ACEOF
17524 /* end confdefs.h.  */
17525
17526 /* Override any gcc2 internal prototype to avoid an error.  */
17527 #ifdef __cplusplus
17528 extern "C"
17529 #endif
17530 /* We use char because int might match the return type of a gcc2
17531    builtin and then its argument prototype would still apply.  */
17532 char dlopen ();
17533 int
17534 main ()
17535 {
17536 dlopen ();
17537   ;
17538   return 0;
17539 }
17540 _ACEOF
17541 rm -f conftest.$ac_objext conftest$ac_exeext
17542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17543   (eval $ac_link) 2>conftest.er1
17544   ac_status=$?
17545   grep -v '^ *+' conftest.er1 >conftest.err
17546   rm -f conftest.er1
17547   cat conftest.err >&5
17548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17549   (exit $ac_status); } &&
17550          { ac_try='test -z "$ac_c_werror_flag"
17551                          || test ! -s conftest.err'
17552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17553   (eval $ac_try) 2>&5
17554   ac_status=$?
17555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17556   (exit $ac_status); }; } &&
17557          { ac_try='test -s conftest$ac_exeext'
17558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17559   (eval $ac_try) 2>&5
17560   ac_status=$?
17561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17562   (exit $ac_status); }; }; then
17563   ac_cv_lib_dl_dlopen=yes
17564 else
17565   echo "$as_me: failed program was:" >&5
17566 sed 's/^/| /' conftest.$ac_ext >&5
17567
17568 ac_cv_lib_dl_dlopen=no
17569 fi
17570 rm -f conftest.err conftest.$ac_objext \
17571       conftest$ac_exeext conftest.$ac_ext
17572 LIBS=$ac_check_lib_save_LIBS
17573 fi
17574 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17575 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17576 if test $ac_cv_lib_dl_dlopen = yes; then
17577   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17578 else
17579   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17580 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17581 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17582   echo $ECHO_N "(cached) $ECHO_C" >&6
17583 else
17584   ac_check_lib_save_LIBS=$LIBS
17585 LIBS="-lsvld  $LIBS"
17586 cat >conftest.$ac_ext <<_ACEOF
17587 /* confdefs.h.  */
17588 _ACEOF
17589 cat confdefs.h >>conftest.$ac_ext
17590 cat >>conftest.$ac_ext <<_ACEOF
17591 /* end confdefs.h.  */
17592
17593 /* Override any gcc2 internal prototype to avoid an error.  */
17594 #ifdef __cplusplus
17595 extern "C"
17596 #endif
17597 /* We use char because int might match the return type of a gcc2
17598    builtin and then its argument prototype would still apply.  */
17599 char dlopen ();
17600 int
17601 main ()
17602 {
17603 dlopen ();
17604   ;
17605   return 0;
17606 }
17607 _ACEOF
17608 rm -f conftest.$ac_objext conftest$ac_exeext
17609 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17610   (eval $ac_link) 2>conftest.er1
17611   ac_status=$?
17612   grep -v '^ *+' conftest.er1 >conftest.err
17613   rm -f conftest.er1
17614   cat conftest.err >&5
17615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17616   (exit $ac_status); } &&
17617          { ac_try='test -z "$ac_c_werror_flag"
17618                          || test ! -s conftest.err'
17619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17620   (eval $ac_try) 2>&5
17621   ac_status=$?
17622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17623   (exit $ac_status); }; } &&
17624          { ac_try='test -s conftest$ac_exeext'
17625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17626   (eval $ac_try) 2>&5
17627   ac_status=$?
17628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17629   (exit $ac_status); }; }; then
17630   ac_cv_lib_svld_dlopen=yes
17631 else
17632   echo "$as_me: failed program was:" >&5
17633 sed 's/^/| /' conftest.$ac_ext >&5
17634
17635 ac_cv_lib_svld_dlopen=no
17636 fi
17637 rm -f conftest.err conftest.$ac_objext \
17638       conftest$ac_exeext conftest.$ac_ext
17639 LIBS=$ac_check_lib_save_LIBS
17640 fi
17641 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17642 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17643 if test $ac_cv_lib_svld_dlopen = yes; then
17644   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17645 else
17646   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17647 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17648 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17649   echo $ECHO_N "(cached) $ECHO_C" >&6
17650 else
17651   ac_check_lib_save_LIBS=$LIBS
17652 LIBS="-ldld  $LIBS"
17653 cat >conftest.$ac_ext <<_ACEOF
17654 /* confdefs.h.  */
17655 _ACEOF
17656 cat confdefs.h >>conftest.$ac_ext
17657 cat >>conftest.$ac_ext <<_ACEOF
17658 /* end confdefs.h.  */
17659
17660 /* Override any gcc2 internal prototype to avoid an error.  */
17661 #ifdef __cplusplus
17662 extern "C"
17663 #endif
17664 /* We use char because int might match the return type of a gcc2
17665    builtin and then its argument prototype would still apply.  */
17666 char dld_link ();
17667 int
17668 main ()
17669 {
17670 dld_link ();
17671   ;
17672   return 0;
17673 }
17674 _ACEOF
17675 rm -f conftest.$ac_objext conftest$ac_exeext
17676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17677   (eval $ac_link) 2>conftest.er1
17678   ac_status=$?
17679   grep -v '^ *+' conftest.er1 >conftest.err
17680   rm -f conftest.er1
17681   cat conftest.err >&5
17682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17683   (exit $ac_status); } &&
17684          { ac_try='test -z "$ac_c_werror_flag"
17685                          || test ! -s conftest.err'
17686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17687   (eval $ac_try) 2>&5
17688   ac_status=$?
17689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17690   (exit $ac_status); }; } &&
17691          { ac_try='test -s conftest$ac_exeext'
17692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17693   (eval $ac_try) 2>&5
17694   ac_status=$?
17695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17696   (exit $ac_status); }; }; then
17697   ac_cv_lib_dld_dld_link=yes
17698 else
17699   echo "$as_me: failed program was:" >&5
17700 sed 's/^/| /' conftest.$ac_ext >&5
17701
17702 ac_cv_lib_dld_dld_link=no
17703 fi
17704 rm -f conftest.err conftest.$ac_objext \
17705       conftest$ac_exeext conftest.$ac_ext
17706 LIBS=$ac_check_lib_save_LIBS
17707 fi
17708 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17709 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17710 if test $ac_cv_lib_dld_dld_link = yes; then
17711   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17712 fi
17713
17714
17715 fi
17716
17717
17718 fi
17719
17720
17721 fi
17722
17723
17724 fi
17725
17726
17727 fi
17728
17729     ;;
17730   esac
17731
17732   if test "x$lt_cv_dlopen" != xno; then
17733     enable_dlopen=yes
17734   else
17735     enable_dlopen=no
17736   fi
17737
17738   case $lt_cv_dlopen in
17739   dlopen)
17740     save_CPPFLAGS="$CPPFLAGS"
17741     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17742
17743     save_LDFLAGS="$LDFLAGS"
17744     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17745
17746     save_LIBS="$LIBS"
17747     LIBS="$lt_cv_dlopen_libs $LIBS"
17748
17749     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17750 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17751 if test "${lt_cv_dlopen_self+set}" = set; then
17752   echo $ECHO_N "(cached) $ECHO_C" >&6
17753 else
17754           if test "$cross_compiling" = yes; then :
17755   lt_cv_dlopen_self=cross
17756 else
17757   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17758   lt_status=$lt_dlunknown
17759   cat > conftest.$ac_ext <<EOF
17760 #line 17760 "configure"
17761 #include "confdefs.h"
17762
17763 #if HAVE_DLFCN_H
17764 #include <dlfcn.h>
17765 #endif
17766
17767 #include <stdio.h>
17768
17769 #ifdef RTLD_GLOBAL
17770 #  define LT_DLGLOBAL           RTLD_GLOBAL
17771 #else
17772 #  ifdef DL_GLOBAL
17773 #    define LT_DLGLOBAL         DL_GLOBAL
17774 #  else
17775 #    define LT_DLGLOBAL         0
17776 #  endif
17777 #endif
17778
17779 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17780    find out it does not work in some platform. */
17781 #ifndef LT_DLLAZY_OR_NOW
17782 #  ifdef RTLD_LAZY
17783 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17784 #  else
17785 #    ifdef DL_LAZY
17786 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17787 #    else
17788 #      ifdef RTLD_NOW
17789 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17790 #      else
17791 #        ifdef DL_NOW
17792 #          define LT_DLLAZY_OR_NOW      DL_NOW
17793 #        else
17794 #          define LT_DLLAZY_OR_NOW      0
17795 #        endif
17796 #      endif
17797 #    endif
17798 #  endif
17799 #endif
17800
17801 #ifdef __cplusplus
17802 extern "C" void exit (int);
17803 #endif
17804
17805 void fnord() { int i=42;}
17806 int main ()
17807 {
17808   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17809   int status = $lt_dlunknown;
17810
17811   if (self)
17812     {
17813       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17814       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17815       /* dlclose (self); */
17816     }
17817
17818     exit (status);
17819 }
17820 EOF
17821   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17822   (eval $ac_link) 2>&5
17823   ac_status=$?
17824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17825   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17826     (./conftest; exit; ) >&5 2>/dev/null
17827     lt_status=$?
17828     case x$lt_status in
17829       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17830       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17831       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17832     esac
17833   else :
17834     # compilation failed
17835     lt_cv_dlopen_self=no
17836   fi
17837 fi
17838 rm -fr conftest*
17839
17840
17841 fi
17842 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17843 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17844
17845     if test "x$lt_cv_dlopen_self" = xyes; then
17846       LDFLAGS="$LDFLAGS $link_static_flag"
17847       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17848 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17849 if test "${lt_cv_dlopen_self_static+set}" = set; then
17850   echo $ECHO_N "(cached) $ECHO_C" >&6
17851 else
17852           if test "$cross_compiling" = yes; then :
17853   lt_cv_dlopen_self_static=cross
17854 else
17855   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17856   lt_status=$lt_dlunknown
17857   cat > conftest.$ac_ext <<EOF
17858 #line 17858 "configure"
17859 #include "confdefs.h"
17860
17861 #if HAVE_DLFCN_H
17862 #include <dlfcn.h>
17863 #endif
17864
17865 #include <stdio.h>
17866
17867 #ifdef RTLD_GLOBAL
17868 #  define LT_DLGLOBAL           RTLD_GLOBAL
17869 #else
17870 #  ifdef DL_GLOBAL
17871 #    define LT_DLGLOBAL         DL_GLOBAL
17872 #  else
17873 #    define LT_DLGLOBAL         0
17874 #  endif
17875 #endif
17876
17877 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17878    find out it does not work in some platform. */
17879 #ifndef LT_DLLAZY_OR_NOW
17880 #  ifdef RTLD_LAZY
17881 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17882 #  else
17883 #    ifdef DL_LAZY
17884 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17885 #    else
17886 #      ifdef RTLD_NOW
17887 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17888 #      else
17889 #        ifdef DL_NOW
17890 #          define LT_DLLAZY_OR_NOW      DL_NOW
17891 #        else
17892 #          define LT_DLLAZY_OR_NOW      0
17893 #        endif
17894 #      endif
17895 #    endif
17896 #  endif
17897 #endif
17898
17899 #ifdef __cplusplus
17900 extern "C" void exit (int);
17901 #endif
17902
17903 void fnord() { int i=42;}
17904 int main ()
17905 {
17906   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17907   int status = $lt_dlunknown;
17908
17909   if (self)
17910     {
17911       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17912       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17913       /* dlclose (self); */
17914     }
17915
17916     exit (status);
17917 }
17918 EOF
17919   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17920   (eval $ac_link) 2>&5
17921   ac_status=$?
17922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17923   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17924     (./conftest; exit; ) >&5 2>/dev/null
17925     lt_status=$?
17926     case x$lt_status in
17927       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17928       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17929       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17930     esac
17931   else :
17932     # compilation failed
17933     lt_cv_dlopen_self_static=no
17934   fi
17935 fi
17936 rm -fr conftest*
17937
17938
17939 fi
17940 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17941 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17942     fi
17943
17944     CPPFLAGS="$save_CPPFLAGS"
17945     LDFLAGS="$save_LDFLAGS"
17946     LIBS="$save_LIBS"
17947     ;;
17948   esac
17949
17950   case $lt_cv_dlopen_self in
17951   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17952   *) enable_dlopen_self=unknown ;;
17953   esac
17954
17955   case $lt_cv_dlopen_self_static in
17956   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17957   *) enable_dlopen_self_static=unknown ;;
17958   esac
17959 fi
17960
17961
17962 # Report which librarie types wil actually be built
17963 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17964 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
17965 echo "$as_me:$LINENO: result: $can_build_shared" >&5
17966 echo "${ECHO_T}$can_build_shared" >&6
17967
17968 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17969 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
17970 test "$can_build_shared" = "no" && enable_shared=no
17971
17972 # On AIX, shared libraries and static libraries use the same namespace, and
17973 # are all built from PIC.
17974 case $host_os in
17975 aix3*)
17976   test "$enable_shared" = yes && enable_static=no
17977   if test -n "$RANLIB"; then
17978     archive_cmds="$archive_cmds~\$RANLIB \$lib"
17979     postinstall_cmds='$RANLIB $lib'
17980   fi
17981   ;;
17982
17983 aix4* | aix5*)
17984   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17985     test "$enable_shared" = yes && enable_static=no
17986   fi
17987     ;;
17988 esac
17989 echo "$as_me:$LINENO: result: $enable_shared" >&5
17990 echo "${ECHO_T}$enable_shared" >&6
17991
17992 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17993 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
17994 # Make sure either enable_shared or enable_static is yes.
17995 test "$enable_shared" = yes || enable_static=yes
17996 echo "$as_me:$LINENO: result: $enable_static" >&5
17997 echo "${ECHO_T}$enable_static" >&6
17998
17999 # The else clause should only fire when bootstrapping the
18000 # libtool distribution, otherwise you forgot to ship ltmain.sh
18001 # with your package, and you will get complaints that there are
18002 # no rules to generate ltmain.sh.
18003 if test -f "$ltmain"; then
18004   # See if we are running on zsh, and set the options which allow our commands through
18005   # without removal of \ escapes.
18006   if test -n "${ZSH_VERSION+set}" ; then
18007     setopt NO_GLOB_SUBST
18008   fi
18009   # Now quote all the things that may contain metacharacters while being
18010   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18011   # variables and quote the copies for generation of the libtool script.
18012   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18013     SED SHELL STRIP \
18014     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18015     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18016     deplibs_check_method reload_flag reload_cmds need_locks \
18017     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18018     lt_cv_sys_global_symbol_to_c_name_address \
18019     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18020     old_postinstall_cmds old_postuninstall_cmds \
18021     compiler \
18022     CC \
18023     LD \
18024     lt_prog_compiler_wl \
18025     lt_prog_compiler_pic \
18026     lt_prog_compiler_static \
18027     lt_prog_compiler_no_builtin_flag \
18028     export_dynamic_flag_spec \
18029     thread_safe_flag_spec \
18030     whole_archive_flag_spec \
18031     enable_shared_with_static_runtimes \
18032     old_archive_cmds \
18033     old_archive_from_new_cmds \
18034     predep_objects \
18035     postdep_objects \
18036     predeps \
18037     postdeps \
18038     compiler_lib_search_path \
18039     archive_cmds \
18040     archive_expsym_cmds \
18041     postinstall_cmds \
18042     postuninstall_cmds \
18043     old_archive_from_expsyms_cmds \
18044     allow_undefined_flag \
18045     no_undefined_flag \
18046     export_symbols_cmds \
18047     hardcode_libdir_flag_spec \
18048     hardcode_libdir_flag_spec_ld \
18049     hardcode_libdir_separator \
18050     hardcode_automatic \
18051     module_cmds \
18052     module_expsym_cmds \
18053     lt_cv_prog_compiler_c_o \
18054     exclude_expsyms \
18055     include_expsyms; do
18056
18057     case $var in
18058     old_archive_cmds | \
18059     old_archive_from_new_cmds | \
18060     archive_cmds | \
18061     archive_expsym_cmds | \
18062     module_cmds | \
18063     module_expsym_cmds | \
18064     old_archive_from_expsyms_cmds | \
18065     export_symbols_cmds | \
18066     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18067     postinstall_cmds | postuninstall_cmds | \
18068     old_postinstall_cmds | old_postuninstall_cmds | \
18069     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18070       # Double-quote double-evaled strings.
18071       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18072       ;;
18073     *)
18074       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18075       ;;
18076     esac
18077   done
18078
18079   case $lt_echo in
18080   *'\$0 --fallback-echo"')
18081     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18082     ;;
18083   esac
18084
18085 cfgfile="${ofile}T"
18086   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
18087   $rm -f "$cfgfile"
18088   { echo "$as_me:$LINENO: creating $ofile" >&5
18089 echo "$as_me: creating $ofile" >&6;}
18090
18091   cat <<__EOF__ >> "$cfgfile"
18092 #! $SHELL
18093
18094 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18095 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
18096 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18097 #
18098 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
18099 # Free Software Foundation, Inc.
18100 #
18101 # This file is part of GNU Libtool:
18102 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
18103 #
18104 # This program is free software; you can redistribute it and/or modify
18105 # it under the terms of the GNU General Public License as published by
18106 # the Free Software Foundation; either version 2 of the License, or
18107 # (at your option) any later version.
18108 #
18109 # This program is distributed in the hope that it will be useful, but
18110 # WITHOUT ANY WARRANTY; without even the implied warranty of
18111 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
18112 # General Public License for more details.
18113 #
18114 # You should have received a copy of the GNU General Public License
18115 # along with this program; if not, write to the Free Software
18116 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18117 #
18118 # As a special exception to the GNU General Public License, if you
18119 # distribute this file as part of a program that contains a
18120 # configuration script generated by Autoconf, you may include it under
18121 # the same distribution terms that you use for the rest of that program.
18122
18123 # A sed program that does not truncate output.
18124 SED=$lt_SED
18125
18126 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18127 Xsed="$SED -e 1s/^X//"
18128
18129 # The HP-UX ksh and POSIX shell print the target directory to stdout
18130 # if CDPATH is set.
18131 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18132
18133 # The names of the tagged configurations supported by this script.
18134 available_tags=
18135
18136 # ### BEGIN LIBTOOL CONFIG
18137
18138 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18139
18140 # Shell to use when invoking shell scripts.
18141 SHELL=$lt_SHELL
18142
18143 # Whether or not to build shared libraries.
18144 build_libtool_libs=$enable_shared
18145
18146 # Whether or not to build static libraries.
18147 build_old_libs=$enable_static
18148
18149 # Whether or not to add -lc for building shared libraries.
18150 build_libtool_need_lc=$archive_cmds_need_lc
18151
18152 # Whether or not to disallow shared libs when runtime libs are static
18153 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18154
18155 # Whether or not to optimize for fast installation.
18156 fast_install=$enable_fast_install
18157
18158 # The host system.
18159 host_alias=$host_alias
18160 host=$host
18161 host_os=$host_os
18162
18163 # The build system.
18164 build_alias=$build_alias
18165 build=$build
18166 build_os=$build_os
18167
18168 # An echo program that does not interpret backslashes.
18169 echo=$lt_echo
18170
18171 # The archiver.
18172 AR=$lt_AR
18173 AR_FLAGS=$lt_AR_FLAGS
18174
18175 # A C compiler.
18176 LTCC=$lt_LTCC
18177
18178 # A language-specific compiler.
18179 CC=$lt_compiler
18180
18181 # Is the compiler the GNU C compiler?
18182 with_gcc=$GCC
18183
18184 # An ERE matcher.
18185 EGREP=$lt_EGREP
18186
18187 # The linker used to build libraries.
18188 LD=$lt_LD
18189
18190 # Whether we need hard or soft links.
18191 LN_S=$lt_LN_S
18192
18193 # A BSD-compatible nm program.
18194 NM=$lt_NM
18195
18196 # A symbol stripping program
18197 STRIP=$lt_STRIP
18198
18199 # Used to examine libraries when file_magic_cmd begins "file"
18200 MAGIC_CMD=$MAGIC_CMD
18201
18202 # Used on cygwin: DLL creation program.
18203 DLLTOOL="$DLLTOOL"
18204
18205 # Used on cygwin: object dumper.
18206 OBJDUMP="$OBJDUMP"
18207
18208 # Used on cygwin: assembler.
18209 AS="$AS"
18210
18211 # The name of the directory that contains temporary libtool files.
18212 objdir=$objdir
18213
18214 # How to create reloadable object files.
18215 reload_flag=$lt_reload_flag
18216 reload_cmds=$lt_reload_cmds
18217
18218 # How to pass a linker flag through the compiler.
18219 wl=$lt_lt_prog_compiler_wl
18220
18221 # Object file suffix (normally "o").
18222 objext="$ac_objext"
18223
18224 # Old archive suffix (normally "a").
18225 libext="$libext"
18226
18227 # Shared library suffix (normally ".so").
18228 shrext_cmds='$shrext_cmds'
18229
18230 # Executable file suffix (normally "").
18231 exeext="$exeext"
18232
18233 # Additional compiler flags for building library objects.
18234 pic_flag=$lt_lt_prog_compiler_pic
18235 pic_mode=$pic_mode
18236
18237 # What is the maximum length of a command?
18238 max_cmd_len=$lt_cv_sys_max_cmd_len
18239
18240 # Does compiler simultaneously support -c and -o options?
18241 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18242
18243 # Must we lock files when doing compilation?
18244 need_locks=$lt_need_locks
18245
18246 # Do we need the lib prefix for modules?
18247 need_lib_prefix=$need_lib_prefix
18248
18249 # Do we need a version for libraries?
18250 need_version=$need_version
18251
18252 # Whether dlopen is supported.
18253 dlopen_support=$enable_dlopen
18254
18255 # Whether dlopen of programs is supported.
18256 dlopen_self=$enable_dlopen_self
18257
18258 # Whether dlopen of statically linked programs is supported.
18259 dlopen_self_static=$enable_dlopen_self_static
18260
18261 # Compiler flag to prevent dynamic linking.
18262 link_static_flag=$lt_lt_prog_compiler_static
18263
18264 # Compiler flag to turn off builtin functions.
18265 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18266
18267 # Compiler flag to allow reflexive dlopens.
18268 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18269
18270 # Compiler flag to generate shared objects directly from archives.
18271 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18272
18273 # Compiler flag to generate thread-safe objects.
18274 thread_safe_flag_spec=$lt_thread_safe_flag_spec
18275
18276 # Library versioning type.
18277 version_type=$version_type
18278
18279 # Format of library name prefix.
18280 libname_spec=$lt_libname_spec
18281
18282 # List of archive names.  First name is the real one, the rest are links.
18283 # The last name is the one that the linker finds with -lNAME.
18284 library_names_spec=$lt_library_names_spec
18285
18286 # The coded name of the library, if different from the real name.
18287 soname_spec=$lt_soname_spec
18288
18289 # Commands used to build and install an old-style archive.
18290 RANLIB=$lt_RANLIB
18291 old_archive_cmds=$lt_old_archive_cmds
18292 old_postinstall_cmds=$lt_old_postinstall_cmds
18293 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18294
18295 # Create an old-style archive from a shared archive.
18296 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18297
18298 # Create a temporary old-style archive to link instead of a shared archive.
18299 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18300
18301 # Commands used to build and install a shared archive.
18302 archive_cmds=$lt_archive_cmds
18303 archive_expsym_cmds=$lt_archive_expsym_cmds
18304 postinstall_cmds=$lt_postinstall_cmds
18305 postuninstall_cmds=$lt_postuninstall_cmds
18306
18307 # Commands used to build a loadable module (assumed same as above if empty)
18308 module_cmds=$lt_module_cmds
18309 module_expsym_cmds=$lt_module_expsym_cmds
18310
18311 # Commands to strip libraries.
18312 old_striplib=$lt_old_striplib
18313 striplib=$lt_striplib
18314
18315 # Dependencies to place before the objects being linked to create a
18316 # shared library.
18317 predep_objects=$lt_predep_objects
18318
18319 # Dependencies to place after the objects being linked to create a
18320 # shared library.
18321 postdep_objects=$lt_postdep_objects
18322
18323 # Dependencies to place before the objects being linked to create a
18324 # shared library.
18325 predeps=$lt_predeps
18326
18327 # Dependencies to place after the objects being linked to create a
18328 # shared library.
18329 postdeps=$lt_postdeps
18330
18331 # The library search path used internally by the compiler when linking
18332 # a shared library.
18333 compiler_lib_search_path=$lt_compiler_lib_search_path
18334
18335 # Method to check whether dependent libraries are shared objects.
18336 deplibs_check_method=$lt_deplibs_check_method
18337
18338 # Command to use when deplibs_check_method == file_magic.
18339 file_magic_cmd=$lt_file_magic_cmd
18340
18341 # Flag that allows shared libraries with undefined symbols to be built.
18342 allow_undefined_flag=$lt_allow_undefined_flag
18343
18344 # Flag that forces no undefined symbols.
18345 no_undefined_flag=$lt_no_undefined_flag
18346
18347 # Commands used to finish a libtool library installation in a directory.
18348 finish_cmds=$lt_finish_cmds
18349
18350 # Same as above, but a single script fragment to be evaled but not shown.
18351 finish_eval=$lt_finish_eval
18352
18353 # Take the output of nm and produce a listing of raw symbols and C names.
18354 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18355
18356 # Transform the output of nm in a proper C declaration
18357 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18358
18359 # Transform the output of nm in a C name address pair
18360 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18361
18362 # This is the shared library runtime path variable.
18363 runpath_var=$runpath_var
18364
18365 # This is the shared library path variable.
18366 shlibpath_var=$shlibpath_var
18367
18368 # Is shlibpath searched before the hard-coded library search path?
18369 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18370
18371 # How to hardcode a shared library path into an executable.
18372 hardcode_action=$hardcode_action
18373
18374 # Whether we should hardcode library paths into libraries.
18375 hardcode_into_libs=$hardcode_into_libs
18376
18377 # Flag to hardcode \$libdir into a binary during linking.
18378 # This must work even if \$libdir does not exist.
18379 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18380
18381 # If ld is used when linking, flag to hardcode \$libdir into
18382 # a binary during linking. This must work even if \$libdir does
18383 # not exist.
18384 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18385
18386 # Whether we need a single -rpath flag with a separated argument.
18387 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18388
18389 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18390 # resulting binary.
18391 hardcode_direct=$hardcode_direct
18392
18393 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18394 # resulting binary.
18395 hardcode_minus_L=$hardcode_minus_L
18396
18397 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18398 # the resulting binary.
18399 hardcode_shlibpath_var=$hardcode_shlibpath_var
18400
18401 # Set to yes if building a shared library automatically hardcodes DIR into the library
18402 # and all subsequent libraries and executables linked against it.
18403 hardcode_automatic=$hardcode_automatic
18404
18405 # Variables whose values should be saved in libtool wrapper scripts and
18406 # restored at relink time.
18407 variables_saved_for_relink="$variables_saved_for_relink"
18408
18409 # Whether libtool must link a program against all its dependency libraries.
18410 link_all_deplibs=$link_all_deplibs
18411
18412 # Compile-time system search path for libraries
18413 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18414
18415 # Run-time system search path for libraries
18416 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18417
18418 # Fix the shell variable \$srcfile for the compiler.
18419 fix_srcfile_path="$fix_srcfile_path"
18420
18421 # Set to yes if exported symbols are required.
18422 always_export_symbols=$always_export_symbols
18423
18424 # The commands to list exported symbols.
18425 export_symbols_cmds=$lt_export_symbols_cmds
18426
18427 # The commands to extract the exported symbol list from a shared archive.
18428 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18429
18430 # Symbols that should not be listed in the preloaded symbols.
18431 exclude_expsyms=$lt_exclude_expsyms
18432
18433 # Symbols that must always be exported.
18434 include_expsyms=$lt_include_expsyms
18435
18436 # ### END LIBTOOL CONFIG
18437
18438 __EOF__
18439
18440
18441   case $host_os in
18442   aix3*)
18443     cat <<\EOF >> "$cfgfile"
18444
18445 # AIX sometimes has problems with the GCC collect2 program.  For some
18446 # reason, if we set the COLLECT_NAMES environment variable, the problems
18447 # vanish in a puff of smoke.
18448 if test "X${COLLECT_NAMES+set}" != Xset; then
18449   COLLECT_NAMES=
18450   export COLLECT_NAMES
18451 fi
18452 EOF
18453     ;;
18454   esac
18455
18456   # We use sed instead of cat because bash on DJGPP gets confused if
18457   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
18458   # text mode, it properly converts lines to CR/LF.  This bash problem
18459   # is reportedly fixed, but why not run on old versions too?
18460   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
18461
18462   mv -f "$cfgfile" "$ofile" || \
18463     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18464   chmod +x "$ofile"
18465
18466 else
18467   # If there is no Makefile yet, we rely on a make rule to execute
18468   # `config.status --recheck' to rerun these tests and create the
18469   # libtool script then.
18470   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18471   if test -f "$ltmain_in"; then
18472     test -f Makefile && make "$ltmain"
18473   fi
18474 fi
18475
18476
18477 ac_ext=c
18478 ac_cpp='$CPP $CPPFLAGS'
18479 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18480 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18481 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18482
18483 CC="$lt_save_CC"
18484
18485
18486 # Check whether --with-tags or --without-tags was given.
18487 if test "${with_tags+set}" = set; then
18488   withval="$with_tags"
18489   tagnames="$withval"
18490 fi;
18491
18492 if test -f "$ltmain" && test -n "$tagnames"; then
18493   if test ! -f "${ofile}"; then
18494     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
18495 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
18496   fi
18497
18498   if test -z "$LTCC"; then
18499     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
18500     if test -z "$LTCC"; then
18501       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
18502 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
18503     else
18504       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
18505 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
18506     fi
18507   fi
18508
18509   # Extract list of available tagged configurations in $ofile.
18510   # Note that this assumes the entire list is on one line.
18511   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
18512
18513   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18514   for tagname in $tagnames; do
18515     IFS="$lt_save_ifs"
18516     # Check whether tagname contains only valid characters
18517     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18518     "") ;;
18519     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18520 echo "$as_me: error: invalid tag name: $tagname" >&2;}
18521    { (exit 1); exit 1; }; }
18522         ;;
18523     esac
18524
18525     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18526     then
18527       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18528 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18529    { (exit 1); exit 1; }; }
18530     fi
18531
18532     # Update the list of available tags.
18533     if test -n "$tagname"; then
18534       echo appending configuration tag \"$tagname\" to $ofile
18535
18536       case $tagname in
18537       CXX)
18538         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18539             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18540             (test "X$CXX" != "Xg++"))) ; then
18541           ac_ext=cc
18542 ac_cpp='$CXXCPP $CPPFLAGS'
18543 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18544 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18545 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18546
18547
18548
18549
18550 archive_cmds_need_lc_CXX=no
18551 allow_undefined_flag_CXX=
18552 always_export_symbols_CXX=no
18553 archive_expsym_cmds_CXX=
18554 export_dynamic_flag_spec_CXX=
18555 hardcode_direct_CXX=no
18556 hardcode_libdir_flag_spec_CXX=
18557 hardcode_libdir_flag_spec_ld_CXX=
18558 hardcode_libdir_separator_CXX=
18559 hardcode_minus_L_CXX=no
18560 hardcode_automatic_CXX=no
18561 module_cmds_CXX=
18562 module_expsym_cmds_CXX=
18563 link_all_deplibs_CXX=unknown
18564 old_archive_cmds_CXX=$old_archive_cmds
18565 no_undefined_flag_CXX=
18566 whole_archive_flag_spec_CXX=
18567 enable_shared_with_static_runtimes_CXX=no
18568
18569 # Dependencies to place before and after the object being linked:
18570 predep_objects_CXX=
18571 postdep_objects_CXX=
18572 predeps_CXX=
18573 postdeps_CXX=
18574 compiler_lib_search_path_CXX=
18575
18576 # Source file extension for C++ test sources.
18577 ac_ext=cpp
18578
18579 # Object file extension for compiled C++ test sources.
18580 objext=o
18581 objext_CXX=$objext
18582
18583 # Code to be used in simple compile tests
18584 lt_simple_compile_test_code="int some_variable = 0;\n"
18585
18586 # Code to be used in simple link tests
18587 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
18588
18589 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18590
18591 # If no C compiler was specified, use CC.
18592 LTCC=${LTCC-"$CC"}
18593
18594 # Allow CC to be a program name with arguments.
18595 compiler=$CC
18596
18597
18598 # save warnings/boilerplate of simple test code
18599 ac_outfile=conftest.$ac_objext
18600 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18601 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
18602 _lt_compiler_boilerplate=`cat conftest.err`
18603 $rm conftest*
18604
18605 ac_outfile=conftest.$ac_objext
18606 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18607 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
18608 _lt_linker_boilerplate=`cat conftest.err`
18609 $rm conftest*
18610
18611
18612 # Allow CC to be a program name with arguments.
18613 lt_save_CC=$CC
18614 lt_save_LD=$LD
18615 lt_save_GCC=$GCC
18616 GCC=$GXX
18617 lt_save_with_gnu_ld=$with_gnu_ld
18618 lt_save_path_LD=$lt_cv_path_LD
18619 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18620   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18621 else
18622   unset lt_cv_prog_gnu_ld
18623 fi
18624 if test -n "${lt_cv_path_LDCXX+set}"; then
18625   lt_cv_path_LD=$lt_cv_path_LDCXX
18626 else
18627   unset lt_cv_path_LD
18628 fi
18629 test -z "${LDCXX+set}" || LD=$LDCXX
18630 CC=${CXX-"c++"}
18631 compiler=$CC
18632 compiler_CXX=$CC
18633 for cc_temp in $compiler""; do
18634   case $cc_temp in
18635     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18636     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18637     \-*) ;;
18638     *) break;;
18639   esac
18640 done
18641 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18642
18643
18644 # We don't want -fno-exception wen compiling C++ code, so set the
18645 # no_builtin_flag separately
18646 if test "$GXX" = yes; then
18647   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18648 else
18649   lt_prog_compiler_no_builtin_flag_CXX=
18650 fi
18651
18652 if test "$GXX" = yes; then
18653   # Set up default GNU C++ configuration
18654
18655
18656 # Check whether --with-gnu-ld or --without-gnu-ld was given.
18657 if test "${with_gnu_ld+set}" = set; then
18658   withval="$with_gnu_ld"
18659   test "$withval" = no || with_gnu_ld=yes
18660 else
18661   with_gnu_ld=no
18662 fi;
18663 ac_prog=ld
18664 if test "$GCC" = yes; then
18665   # Check if gcc -print-prog-name=ld gives a path.
18666   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18667 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
18668   case $host in
18669   *-*-mingw*)
18670     # gcc leaves a trailing carriage return which upsets mingw
18671     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18672   *)
18673     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18674   esac
18675   case $ac_prog in
18676     # Accept absolute paths.
18677     [\\/]* | ?:[\\/]*)
18678       re_direlt='/[^/][^/]*/\.\./'
18679       # Canonicalize the pathname of ld
18680       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18681       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18682         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18683       done
18684       test -z "$LD" && LD="$ac_prog"
18685       ;;
18686   "")
18687     # If it fails, then pretend we aren't using GCC.
18688     ac_prog=ld
18689     ;;
18690   *)
18691     # If it is relative, then search for the first ld in PATH.
18692     with_gnu_ld=unknown
18693     ;;
18694   esac
18695 elif test "$with_gnu_ld" = yes; then
18696   echo "$as_me:$LINENO: checking for GNU ld" >&5
18697 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
18698 else
18699   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18700 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
18701 fi
18702 if test "${lt_cv_path_LD+set}" = set; then
18703   echo $ECHO_N "(cached) $ECHO_C" >&6
18704 else
18705   if test -z "$LD"; then
18706   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18707   for ac_dir in $PATH; do
18708     IFS="$lt_save_ifs"
18709     test -z "$ac_dir" && ac_dir=.
18710     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18711       lt_cv_path_LD="$ac_dir/$ac_prog"
18712       # Check to see if the program is GNU ld.  I'd rather use --version,
18713       # but apparently some variants of GNU ld only accept -v.
18714       # Break only if it was the GNU/non-GNU ld that we prefer.
18715       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18716       *GNU* | *'with BFD'*)
18717         test "$with_gnu_ld" != no && break
18718         ;;
18719       *)
18720         test "$with_gnu_ld" != yes && break
18721         ;;
18722       esac
18723     fi
18724   done
18725   IFS="$lt_save_ifs"
18726 else
18727   lt_cv_path_LD="$LD" # Let the user override the test with a path.
18728 fi
18729 fi
18730
18731 LD="$lt_cv_path_LD"
18732 if test -n "$LD"; then
18733   echo "$as_me:$LINENO: result: $LD" >&5
18734 echo "${ECHO_T}$LD" >&6
18735 else
18736   echo "$as_me:$LINENO: result: no" >&5
18737 echo "${ECHO_T}no" >&6
18738 fi
18739 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18740 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18741    { (exit 1); exit 1; }; }
18742 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18743 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
18744 if test "${lt_cv_prog_gnu_ld+set}" = set; then
18745   echo $ECHO_N "(cached) $ECHO_C" >&6
18746 else
18747   # I'd rather use --version here, but apparently some GNU lds only accept -v.
18748 case `$LD -v 2>&1 </dev/null` in
18749 *GNU* | *'with BFD'*)
18750   lt_cv_prog_gnu_ld=yes
18751   ;;
18752 *)
18753   lt_cv_prog_gnu_ld=no
18754   ;;
18755 esac
18756 fi
18757 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18758 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
18759 with_gnu_ld=$lt_cv_prog_gnu_ld
18760
18761
18762
18763   # Check if GNU C++ uses GNU ld as the underlying linker, since the
18764   # archiving commands below assume that GNU ld is being used.
18765   if test "$with_gnu_ld" = yes; then
18766     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18767     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'
18768
18769     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18770     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18771
18772     # If archive_cmds runs LD, not CC, wlarc should be empty
18773     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18774     #     investigate it a little bit more. (MM)
18775     wlarc='${wl}'
18776
18777     # ancient GNU ld didn't support --whole-archive et. al.
18778     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18779         grep 'no-whole-archive' > /dev/null; then
18780       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18781     else
18782       whole_archive_flag_spec_CXX=
18783     fi
18784   else
18785     with_gnu_ld=no
18786     wlarc=
18787
18788     # A generic and very simple default shared library creation
18789     # command for GNU C++ for the case where it uses the native
18790     # linker, instead of GNU ld.  If possible, this setting should
18791     # overridden to take advantage of the native linker features on
18792     # the platform it is being used on.
18793     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18794   fi
18795
18796   # Commands to make compiler produce verbose output that lists
18797   # what "hidden" libraries, object files and flags are used when
18798   # linking a shared library.
18799   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18800
18801 else
18802   GXX=no
18803   with_gnu_ld=no
18804   wlarc=
18805 fi
18806
18807 # PORTME: fill in a description of your system's C++ link characteristics
18808 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18809 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
18810 ld_shlibs_CXX=yes
18811 case $host_os in
18812   aix3*)
18813     # FIXME: insert proper C++ library support
18814     ld_shlibs_CXX=no
18815     ;;
18816   aix4* | aix5*)
18817     if test "$host_cpu" = ia64; then
18818       # On IA64, the linker does run time linking by default, so we don't
18819       # have to do anything special.
18820       aix_use_runtimelinking=no
18821       exp_sym_flag='-Bexport'
18822       no_entry_flag=""
18823     else
18824       aix_use_runtimelinking=no
18825
18826       # Test if we are trying to use run time linking or normal
18827       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18828       # need to do runtime linking.
18829       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18830         for ld_flag in $LDFLAGS; do
18831           case $ld_flag in
18832           *-brtl*)
18833             aix_use_runtimelinking=yes
18834             break
18835             ;;
18836           esac
18837         done
18838       esac
18839
18840       exp_sym_flag='-bexport'
18841       no_entry_flag='-bnoentry'
18842     fi
18843
18844     # When large executables or shared objects are built, AIX ld can
18845     # have problems creating the table of contents.  If linking a library
18846     # or program results in "error TOC overflow" add -mminimal-toc to
18847     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18848     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18849
18850     archive_cmds_CXX=''
18851     hardcode_direct_CXX=yes
18852     hardcode_libdir_separator_CXX=':'
18853     link_all_deplibs_CXX=yes
18854
18855     if test "$GXX" = yes; then
18856       case $host_os in aix4.[012]|aix4.[012].*)
18857       # We only want to do this on AIX 4.2 and lower, the check
18858       # below for broken collect2 doesn't work under 4.3+
18859         collect2name=`${CC} -print-prog-name=collect2`
18860         if test -f "$collect2name" && \
18861            strings "$collect2name" | grep resolve_lib_name >/dev/null
18862         then
18863           # We have reworked collect2
18864           hardcode_direct_CXX=yes
18865         else
18866           # We have old collect2
18867           hardcode_direct_CXX=unsupported
18868           # It fails to find uninstalled libraries when the uninstalled
18869           # path is not listed in the libpath.  Setting hardcode_minus_L
18870           # to unsupported forces relinking
18871           hardcode_minus_L_CXX=yes
18872           hardcode_libdir_flag_spec_CXX='-L$libdir'
18873           hardcode_libdir_separator_CXX=
18874         fi
18875       esac
18876       shared_flag='-shared'
18877       if test "$aix_use_runtimelinking" = yes; then
18878         shared_flag="$shared_flag "'${wl}-G'
18879       fi
18880     else
18881       # not using gcc
18882       if test "$host_cpu" = ia64; then
18883         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18884         # chokes on -Wl,-G. The following line is correct:
18885         shared_flag='-G'
18886       else
18887         if test "$aix_use_runtimelinking" = yes; then
18888           shared_flag='${wl}-G'
18889         else
18890           shared_flag='${wl}-bM:SRE'
18891         fi
18892       fi
18893     fi
18894
18895     # It seems that -bexpall does not export symbols beginning with
18896     # underscore (_), so it is better to generate a list of symbols to export.
18897     always_export_symbols_CXX=yes
18898     if test "$aix_use_runtimelinking" = yes; then
18899       # Warning - without using the other runtime loading flags (-brtl),
18900       # -berok will link without error, but may produce a broken library.
18901       allow_undefined_flag_CXX='-berok'
18902       # Determine the default libpath from the value encoded in an empty executable.
18903       cat >conftest.$ac_ext <<_ACEOF
18904 /* confdefs.h.  */
18905 _ACEOF
18906 cat confdefs.h >>conftest.$ac_ext
18907 cat >>conftest.$ac_ext <<_ACEOF
18908 /* end confdefs.h.  */
18909
18910 int
18911 main ()
18912 {
18913
18914   ;
18915   return 0;
18916 }
18917 _ACEOF
18918 rm -f conftest.$ac_objext conftest$ac_exeext
18919 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18920   (eval $ac_link) 2>conftest.er1
18921   ac_status=$?
18922   grep -v '^ *+' conftest.er1 >conftest.err
18923   rm -f conftest.er1
18924   cat conftest.err >&5
18925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18926   (exit $ac_status); } &&
18927          { ac_try='test -z "$ac_cxx_werror_flag"
18928                          || test ! -s conftest.err'
18929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18930   (eval $ac_try) 2>&5
18931   ac_status=$?
18932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18933   (exit $ac_status); }; } &&
18934          { ac_try='test -s conftest$ac_exeext'
18935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18936   (eval $ac_try) 2>&5
18937   ac_status=$?
18938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18939   (exit $ac_status); }; }; then
18940
18941 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18942 }'`
18943 # Check for a 64-bit object if we didn't find anything.
18944 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; }
18945 }'`; fi
18946 else
18947   echo "$as_me: failed program was:" >&5
18948 sed 's/^/| /' conftest.$ac_ext >&5
18949
18950 fi
18951 rm -f conftest.err conftest.$ac_objext \
18952       conftest$ac_exeext conftest.$ac_ext
18953 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18954
18955       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18956
18957       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"
18958      else
18959       if test "$host_cpu" = ia64; then
18960         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18961         allow_undefined_flag_CXX="-z nodefs"
18962         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"
18963       else
18964         # Determine the default libpath from the value encoded in an empty executable.
18965         cat >conftest.$ac_ext <<_ACEOF
18966 /* confdefs.h.  */
18967 _ACEOF
18968 cat confdefs.h >>conftest.$ac_ext
18969 cat >>conftest.$ac_ext <<_ACEOF
18970 /* end confdefs.h.  */
18971
18972 int
18973 main ()
18974 {
18975
18976   ;
18977   return 0;
18978 }
18979 _ACEOF
18980 rm -f conftest.$ac_objext conftest$ac_exeext
18981 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18982   (eval $ac_link) 2>conftest.er1
18983   ac_status=$?
18984   grep -v '^ *+' conftest.er1 >conftest.err
18985   rm -f conftest.er1
18986   cat conftest.err >&5
18987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18988   (exit $ac_status); } &&
18989          { ac_try='test -z "$ac_cxx_werror_flag"
18990                          || test ! -s conftest.err'
18991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18992   (eval $ac_try) 2>&5
18993   ac_status=$?
18994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18995   (exit $ac_status); }; } &&
18996          { ac_try='test -s conftest$ac_exeext'
18997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18998   (eval $ac_try) 2>&5
18999   ac_status=$?
19000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19001   (exit $ac_status); }; }; then
19002
19003 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
19004 }'`
19005 # Check for a 64-bit object if we didn't find anything.
19006 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; }
19007 }'`; fi
19008 else
19009   echo "$as_me: failed program was:" >&5
19010 sed 's/^/| /' conftest.$ac_ext >&5
19011
19012 fi
19013 rm -f conftest.err conftest.$ac_objext \
19014       conftest$ac_exeext conftest.$ac_ext
19015 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19016
19017         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19018         # Warning - without using the other run time loading flags,
19019         # -berok will link without error, but may produce a broken library.
19020         no_undefined_flag_CXX=' ${wl}-bernotok'
19021         allow_undefined_flag_CXX=' ${wl}-berok'
19022         # -bexpall does not export symbols beginning with underscore (_)
19023         always_export_symbols_CXX=yes
19024         # Exported symbols can be pulled into shared objects from archives
19025         whole_archive_flag_spec_CXX=' '
19026         archive_cmds_need_lc_CXX=yes
19027         # This is similar to how AIX traditionally builds its shared libraries.
19028         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'
19029       fi
19030     fi
19031     ;;
19032   chorus*)
19033     case $cc_basename in
19034       *)
19035         # FIXME: insert proper C++ library support
19036         ld_shlibs_CXX=no
19037         ;;
19038     esac
19039     ;;
19040
19041
19042   cygwin* | mingw* | pw32*)
19043     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19044     # as there is no search path for DLLs.
19045     hardcode_libdir_flag_spec_CXX='-L$libdir'
19046     allow_undefined_flag_CXX=unsupported
19047     always_export_symbols_CXX=no
19048     enable_shared_with_static_runtimes_CXX=yes
19049
19050     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19051       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'
19052       # If the export-symbols file already is a .def file (1st line
19053       # is EXPORTS), use it as is; otherwise, prepend...
19054       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19055         cp $export_symbols $output_objdir/$soname.def;
19056       else
19057         echo EXPORTS > $output_objdir/$soname.def;
19058         cat $export_symbols >> $output_objdir/$soname.def;
19059       fi~
19060       $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'
19061     else
19062       ld_shlibs_CXX=no
19063     fi
19064   ;;
19065       darwin* | rhapsody*)
19066         case $host_os in
19067         rhapsody* | darwin1.[012])
19068          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
19069          ;;
19070        *) # Darwin 1.3 on
19071          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19072            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19073          else
19074            case ${MACOSX_DEPLOYMENT_TARGET} in
19075              10.[012])
19076                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19077                ;;
19078              10.*)
19079                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
19080                ;;
19081            esac
19082          fi
19083          ;;
19084         esac
19085       archive_cmds_need_lc_CXX=no
19086       hardcode_direct_CXX=no
19087       hardcode_automatic_CXX=yes
19088       hardcode_shlibpath_var_CXX=unsupported
19089       whole_archive_flag_spec_CXX=''
19090       link_all_deplibs_CXX=yes
19091
19092     if test "$GXX" = yes ; then
19093       lt_int_apple_cc_single_mod=no
19094       output_verbose_link_cmd='echo'
19095       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
19096        lt_int_apple_cc_single_mod=yes
19097       fi
19098       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
19099        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19100       else
19101           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'
19102         fi
19103         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19104         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19105           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
19106             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}'
19107           else
19108             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}'
19109           fi
19110             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}'
19111       else
19112       case $cc_basename in
19113         xlc*)
19114          output_verbose_link_cmd='echo'
19115           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'
19116           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19117           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19118           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}'
19119           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}'
19120           ;;
19121        *)
19122          ld_shlibs_CXX=no
19123           ;;
19124       esac
19125       fi
19126         ;;
19127
19128   dgux*)
19129     case $cc_basename in
19130       ec++*)
19131         # FIXME: insert proper C++ library support
19132         ld_shlibs_CXX=no
19133         ;;
19134       ghcx*)
19135         # Green Hills C++ Compiler
19136         # FIXME: insert proper C++ library support
19137         ld_shlibs_CXX=no
19138         ;;
19139       *)
19140         # FIXME: insert proper C++ library support
19141         ld_shlibs_CXX=no
19142         ;;
19143     esac
19144     ;;
19145   freebsd[12]*)
19146     # C++ shared libraries reported to be fairly broken before switch to ELF
19147     ld_shlibs_CXX=no
19148     ;;
19149   freebsd-elf*)
19150     archive_cmds_need_lc_CXX=no
19151     ;;
19152   freebsd* | kfreebsd*-gnu | dragonfly*)
19153     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19154     # conventions
19155     ld_shlibs_CXX=yes
19156     ;;
19157   gnu*)
19158     ;;
19159   hpux9*)
19160     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19161     hardcode_libdir_separator_CXX=:
19162     export_dynamic_flag_spec_CXX='${wl}-E'
19163     hardcode_direct_CXX=yes
19164     hardcode_minus_L_CXX=yes # Not in the search PATH,
19165                                 # but as the default
19166                                 # location of the library.
19167
19168     case $cc_basename in
19169     CC*)
19170       # FIXME: insert proper C++ library support
19171       ld_shlibs_CXX=no
19172       ;;
19173     aCC*)
19174       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'
19175       # Commands to make compiler produce verbose output that lists
19176       # what "hidden" libraries, object files and flags are used when
19177       # linking a shared library.
19178       #
19179       # There doesn't appear to be a way to prevent this compiler from
19180       # explicitly linking system object files so we need to strip them
19181       # from the output so that they don't get included in the library
19182       # dependencies.
19183       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'
19184       ;;
19185     *)
19186       if test "$GXX" = yes; then
19187         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'
19188       else
19189         # FIXME: insert proper C++ library support
19190         ld_shlibs_CXX=no
19191       fi
19192       ;;
19193     esac
19194     ;;
19195   hpux10*|hpux11*)
19196     if test $with_gnu_ld = no; then
19197       case $host_cpu in
19198       hppa*64*)
19199         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19200         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
19201         hardcode_libdir_separator_CXX=:
19202         ;;
19203       ia64*)
19204         hardcode_libdir_flag_spec_CXX='-L$libdir'
19205         ;;
19206       *)
19207         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19208         hardcode_libdir_separator_CXX=:
19209         export_dynamic_flag_spec_CXX='${wl}-E'
19210         ;;
19211       esac
19212     fi
19213     case $host_cpu in
19214     hppa*64*)
19215       hardcode_direct_CXX=no
19216       hardcode_shlibpath_var_CXX=no
19217       ;;
19218     ia64*)
19219       hardcode_direct_CXX=no
19220       hardcode_shlibpath_var_CXX=no
19221       hardcode_minus_L_CXX=yes # Not in the search PATH,
19222                                               # but as the default
19223                                               # location of the library.
19224       ;;
19225     *)
19226       hardcode_direct_CXX=yes
19227       hardcode_minus_L_CXX=yes # Not in the search PATH,
19228                                               # but as the default
19229                                               # location of the library.
19230       ;;
19231     esac
19232
19233     case $cc_basename in
19234       CC*)
19235         # FIXME: insert proper C++ library support
19236         ld_shlibs_CXX=no
19237         ;;
19238       aCC*)
19239         case $host_cpu in
19240         hppa*64*|ia64*)
19241           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
19242           ;;
19243         *)
19244           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19245           ;;
19246         esac
19247         # Commands to make compiler produce verbose output that lists
19248         # what "hidden" libraries, object files and flags are used when
19249         # linking a shared library.
19250         #
19251         # There doesn't appear to be a way to prevent this compiler from
19252         # explicitly linking system object files so we need to strip them
19253         # from the output so that they don't get included in the library
19254         # dependencies.
19255         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'
19256         ;;
19257       *)
19258         if test "$GXX" = yes; then
19259           if test $with_gnu_ld = no; then
19260             case $host_cpu in
19261             ia64*|hppa*64*)
19262               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
19263               ;;
19264             *)
19265               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'
19266               ;;
19267             esac
19268           fi
19269         else
19270           # FIXME: insert proper C++ library support
19271           ld_shlibs_CXX=no
19272         fi
19273         ;;
19274     esac
19275     ;;
19276   irix5* | irix6*)
19277     case $cc_basename in
19278       CC*)
19279         # SGI C++
19280         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'
19281
19282         # Archives containing C++ object files must be created using
19283         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
19284         # necessary to make sure instantiated templates are included
19285         # in the archive.
19286         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19287         ;;
19288       *)
19289         if test "$GXX" = yes; then
19290           if test "$with_gnu_ld" = no; then
19291             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'
19292           else
19293             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'
19294           fi
19295         fi
19296         link_all_deplibs_CXX=yes
19297         ;;
19298     esac
19299     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19300     hardcode_libdir_separator_CXX=:
19301     ;;
19302   linux*)
19303     case $cc_basename in
19304       KCC*)
19305         # Kuck and Associates, Inc. (KAI) C++ Compiler
19306
19307         # KCC will only create a shared library if the output file
19308         # ends with ".so" (or ".sl" for HP-UX), so rename the library
19309         # to its proper name (with version) after linking.
19310         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'
19311         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'
19312         # Commands to make compiler produce verbose output that lists
19313         # what "hidden" libraries, object files and flags are used when
19314         # linking a shared library.
19315         #
19316         # There doesn't appear to be a way to prevent this compiler from
19317         # explicitly linking system object files so we need to strip them
19318         # from the output so that they don't get included in the library
19319         # dependencies.
19320         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'
19321
19322         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
19323         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19324
19325         # Archives containing C++ object files must be created using
19326         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19327         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19328         ;;
19329       icpc*)
19330         # Intel C++
19331         with_gnu_ld=yes
19332         # version 8.0 and above of icpc choke on multiply defined symbols
19333         # if we add $predep_objects and $postdep_objects, however 7.1 and
19334         # earlier do not add the objects themselves.
19335         case `$CC -V 2>&1` in
19336         *"Version 7."*)
19337           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19338           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'
19339           ;;
19340         *)  # Version 8.0 or newer
19341           tmp_idyn=
19342           case $host_cpu in
19343             ia64*) tmp_idyn=' -i_dynamic';;
19344           esac
19345           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19346           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'
19347           ;;
19348         esac
19349         archive_cmds_need_lc_CXX=no
19350         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19351         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19352         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19353         ;;
19354       pgCC*)
19355         # Portland Group C++ compiler
19356         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19357         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'
19358
19359         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19360         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19361         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'
19362         ;;
19363       cxx*)
19364         # Compaq C++
19365         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19366         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'
19367
19368         runpath_var=LD_RUN_PATH
19369         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19370         hardcode_libdir_separator_CXX=:
19371
19372         # Commands to make compiler produce verbose output that lists
19373         # what "hidden" libraries, object files and flags are used when
19374         # linking a shared library.
19375         #
19376         # There doesn't appear to be a way to prevent this compiler from
19377         # explicitly linking system object files so we need to strip them
19378         # from the output so that they don't get included in the library
19379         # dependencies.
19380         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'
19381         ;;
19382     esac
19383     ;;
19384   lynxos*)
19385     # FIXME: insert proper C++ library support
19386     ld_shlibs_CXX=no
19387     ;;
19388   m88k*)
19389     # FIXME: insert proper C++ library support
19390     ld_shlibs_CXX=no
19391     ;;
19392   mvs*)
19393     case $cc_basename in
19394       cxx*)
19395         # FIXME: insert proper C++ library support
19396         ld_shlibs_CXX=no
19397         ;;
19398       *)
19399         # FIXME: insert proper C++ library support
19400         ld_shlibs_CXX=no
19401         ;;
19402     esac
19403     ;;
19404   netbsd*)
19405     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19406       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19407       wlarc=
19408       hardcode_libdir_flag_spec_CXX='-R$libdir'
19409       hardcode_direct_CXX=yes
19410       hardcode_shlibpath_var_CXX=no
19411     fi
19412     # Workaround some broken pre-1.5 toolchains
19413     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19414     ;;
19415   openbsd2*)
19416     # C++ shared libraries are fairly broken
19417     ld_shlibs_CXX=no
19418     ;;
19419   openbsd*)
19420     hardcode_direct_CXX=yes
19421     hardcode_shlibpath_var_CXX=no
19422     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19423     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19424     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19425       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19426       export_dynamic_flag_spec_CXX='${wl}-E'
19427       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19428     fi
19429     output_verbose_link_cmd='echo'
19430     ;;
19431   osf3*)
19432     case $cc_basename in
19433       KCC*)
19434         # Kuck and Associates, Inc. (KAI) C++ Compiler
19435
19436         # KCC will only create a shared library if the output file
19437         # ends with ".so" (or ".sl" for HP-UX), so rename the library
19438         # to its proper name (with version) after linking.
19439         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'
19440
19441         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19442         hardcode_libdir_separator_CXX=:
19443
19444         # Archives containing C++ object files must be created using
19445         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19446         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19447
19448         ;;
19449       RCC*)
19450         # Rational C++ 2.4.1
19451         # FIXME: insert proper C++ library support
19452         ld_shlibs_CXX=no
19453         ;;
19454       cxx*)
19455         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19456         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'
19457
19458         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19459         hardcode_libdir_separator_CXX=:
19460
19461         # Commands to make compiler produce verbose output that lists
19462         # what "hidden" libraries, object files and flags are used when
19463         # linking a shared library.
19464         #
19465         # There doesn't appear to be a way to prevent this compiler from
19466         # explicitly linking system object files so we need to strip them
19467         # from the output so that they don't get included in the library
19468         # dependencies.
19469         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'
19470         ;;
19471       *)
19472         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19473           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19474           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'
19475
19476           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19477           hardcode_libdir_separator_CXX=:
19478
19479           # Commands to make compiler produce verbose output that lists
19480           # what "hidden" libraries, object files and flags are used when
19481           # linking a shared library.
19482           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19483
19484         else
19485           # FIXME: insert proper C++ library support
19486           ld_shlibs_CXX=no
19487         fi
19488         ;;
19489     esac
19490     ;;
19491   osf4* | osf5*)
19492     case $cc_basename in
19493       KCC*)
19494         # Kuck and Associates, Inc. (KAI) C++ Compiler
19495
19496         # KCC will only create a shared library if the output file
19497         # ends with ".so" (or ".sl" for HP-UX), so rename the library
19498         # to its proper name (with version) after linking.
19499         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'
19500
19501         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19502         hardcode_libdir_separator_CXX=:
19503
19504         # Archives containing C++ object files must be created using
19505         # the KAI C++ compiler.
19506         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
19507         ;;
19508       RCC*)
19509         # Rational C++ 2.4.1
19510         # FIXME: insert proper C++ library support
19511         ld_shlibs_CXX=no
19512         ;;
19513       cxx*)
19514         allow_undefined_flag_CXX=' -expect_unresolved \*'
19515         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'
19516         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19517           echo "-hidden">> $lib.exp~
19518           $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~
19519           $rm $lib.exp'
19520
19521         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19522         hardcode_libdir_separator_CXX=:
19523
19524         # Commands to make compiler produce verbose output that lists
19525         # what "hidden" libraries, object files and flags are used when
19526         # linking a shared library.
19527         #
19528         # There doesn't appear to be a way to prevent this compiler from
19529         # explicitly linking system object files so we need to strip them
19530         # from the output so that they don't get included in the library
19531         # dependencies.
19532         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'
19533         ;;
19534       *)
19535         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19536           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19537          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'
19538
19539           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19540           hardcode_libdir_separator_CXX=:
19541
19542           # Commands to make compiler produce verbose output that lists
19543           # what "hidden" libraries, object files and flags are used when
19544           # linking a shared library.
19545           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19546
19547         else
19548           # FIXME: insert proper C++ library support
19549           ld_shlibs_CXX=no
19550         fi
19551         ;;
19552     esac
19553     ;;
19554   psos*)
19555     # FIXME: insert proper C++ library support
19556     ld_shlibs_CXX=no
19557     ;;
19558   sco*)
19559     archive_cmds_need_lc_CXX=no
19560     case $cc_basename in
19561       CC*)
19562         # FIXME: insert proper C++ library support
19563         ld_shlibs_CXX=no
19564         ;;
19565       *)
19566         # FIXME: insert proper C++ library support
19567         ld_shlibs_CXX=no
19568         ;;
19569     esac
19570     ;;
19571   sunos4*)
19572     case $cc_basename in
19573       CC*)
19574         # Sun C++ 4.x
19575         # FIXME: insert proper C++ library support
19576         ld_shlibs_CXX=no
19577         ;;
19578       lcc*)
19579         # Lucid
19580         # FIXME: insert proper C++ library support
19581         ld_shlibs_CXX=no
19582         ;;
19583       *)
19584         # FIXME: insert proper C++ library support
19585         ld_shlibs_CXX=no
19586         ;;
19587     esac
19588     ;;
19589   solaris*)
19590     case $cc_basename in
19591       CC*)
19592         # Sun C++ 4.2, 5.x and Centerline C++
19593         archive_cmds_need_lc_CXX=yes
19594         no_undefined_flag_CXX=' -zdefs'
19595         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19596         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19597         $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'
19598
19599         hardcode_libdir_flag_spec_CXX='-R$libdir'
19600         hardcode_shlibpath_var_CXX=no
19601         case $host_os in
19602           solaris2.[0-5] | solaris2.[0-5].*) ;;
19603           *)
19604             # The C++ compiler is used as linker so we must use $wl
19605             # flag to pass the commands to the underlying system
19606             # linker. We must also pass each convience library through
19607             # to the system linker between allextract/defaultextract.
19608             # The C++ compiler will combine linker options so we
19609             # cannot just pass the convience library names through
19610             # without $wl.
19611             # Supported since Solaris 2.6 (maybe 2.5.1?)
19612             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'
19613             ;;
19614         esac
19615         link_all_deplibs_CXX=yes
19616
19617         output_verbose_link_cmd='echo'
19618
19619         # Archives containing C++ object files must be created using
19620         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
19621         # necessary to make sure instantiated templates are included
19622         # in the archive.
19623         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19624         ;;
19625       gcx*)
19626         # Green Hills C++ Compiler
19627         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19628
19629         # The C++ compiler must be used to create the archive.
19630         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19631         ;;
19632       *)
19633         # GNU C++ compiler with Solaris linker
19634         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19635           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19636           if $CC --version | grep -v '^2\.7' > /dev/null; then
19637             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19638             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19639                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19640
19641             # Commands to make compiler produce verbose output that lists
19642             # what "hidden" libraries, object files and flags are used when
19643             # linking a shared library.
19644             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19645           else
19646             # g++ 2.7 appears to require `-G' NOT `-shared' on this
19647             # platform.
19648             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19649             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19650                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19651
19652             # Commands to make compiler produce verbose output that lists
19653             # what "hidden" libraries, object files and flags are used when
19654             # linking a shared library.
19655             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19656           fi
19657
19658           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19659         fi
19660         ;;
19661     esac
19662     ;;
19663   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
19664     archive_cmds_need_lc_CXX=no
19665     ;;
19666   tandem*)
19667     case $cc_basename in
19668       NCC*)
19669         # NonStop-UX NCC 3.20
19670         # FIXME: insert proper C++ library support
19671         ld_shlibs_CXX=no
19672         ;;
19673       *)
19674         # FIXME: insert proper C++ library support
19675         ld_shlibs_CXX=no
19676         ;;
19677     esac
19678     ;;
19679   vxworks*)
19680     # FIXME: insert proper C++ library support
19681     ld_shlibs_CXX=no
19682     ;;
19683   *)
19684     # FIXME: insert proper C++ library support
19685     ld_shlibs_CXX=no
19686     ;;
19687 esac
19688 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19689 echo "${ECHO_T}$ld_shlibs_CXX" >&6
19690 test "$ld_shlibs_CXX" = no && can_build_shared=no
19691
19692 GCC_CXX="$GXX"
19693 LD_CXX="$LD"
19694
19695 ## CAVEAT EMPTOR:
19696 ## There is no encapsulation within the following macros, do not change
19697 ## the running order or otherwise move them around unless you know exactly
19698 ## what you are doing...
19699
19700 cat > conftest.$ac_ext <<EOF
19701 class Foo
19702 {
19703 public:
19704   Foo (void) { a = 0; }
19705 private:
19706   int a;
19707 };
19708 EOF
19709
19710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19711   (eval $ac_compile) 2>&5
19712   ac_status=$?
19713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19714   (exit $ac_status); }; then
19715   # Parse the compiler output and extract the necessary
19716   # objects, libraries and library flags.
19717
19718   # Sentinel used to keep track of whether or not we are before
19719   # the conftest object file.
19720   pre_test_object_deps_done=no
19721
19722   # The `*' in the case matches for architectures that use `case' in
19723   # $output_verbose_cmd can trigger glob expansion during the loop
19724   # eval without this substitution.
19725   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
19726
19727   for p in `eval $output_verbose_link_cmd`; do
19728     case $p in
19729
19730     -L* | -R* | -l*)
19731        # Some compilers place space between "-{L,R}" and the path.
19732        # Remove the space.
19733        if test $p = "-L" \
19734           || test $p = "-R"; then
19735          prev=$p
19736          continue
19737        else
19738          prev=
19739        fi
19740
19741        if test "$pre_test_object_deps_done" = no; then
19742          case $p in
19743          -L* | -R*)
19744            # Internal compiler library paths should come after those
19745            # provided the user.  The postdeps already come after the
19746            # user supplied libs so there is no need to process them.
19747            if test -z "$compiler_lib_search_path_CXX"; then
19748              compiler_lib_search_path_CXX="${prev}${p}"
19749            else
19750              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19751            fi
19752            ;;
19753          # The "-l" case would never come before the object being
19754          # linked, so don't bother handling this case.
19755          esac
19756        else
19757          if test -z "$postdeps_CXX"; then
19758            postdeps_CXX="${prev}${p}"
19759          else
19760            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19761          fi
19762        fi
19763        ;;
19764
19765     *.$objext)
19766        # This assumes that the test object file only shows up
19767        # once in the compiler output.
19768        if test "$p" = "conftest.$objext"; then
19769          pre_test_object_deps_done=yes
19770          continue
19771        fi
19772
19773        if test "$pre_test_object_deps_done" = no; then
19774          if test -z "$predep_objects_CXX"; then
19775            predep_objects_CXX="$p"
19776          else
19777            predep_objects_CXX="$predep_objects_CXX $p"
19778          fi
19779        else
19780          if test -z "$postdep_objects_CXX"; then
19781            postdep_objects_CXX="$p"
19782          else
19783            postdep_objects_CXX="$postdep_objects_CXX $p"
19784          fi
19785        fi
19786        ;;
19787
19788     *) ;; # Ignore the rest.
19789
19790     esac
19791   done
19792
19793   # Clean up.
19794   rm -f a.out a.exe
19795 else
19796   echo "libtool.m4: error: problem compiling CXX test program"
19797 fi
19798
19799 $rm -f confest.$objext
19800
19801 # PORTME: override above test on systems where it is broken
19802 case $host_os in
19803 solaris*)
19804   case $cc_basename in
19805   CC*)
19806     # Adding this requires a known-good setup of shared libraries for
19807     # Sun compiler versions before 5.6, else PIC objects from an old
19808     # archive will be linked into the output, leading to subtle bugs.
19809     postdeps_CXX='-lCstd -lCrun'
19810     ;;
19811   esac
19812 esac
19813
19814
19815 case " $postdeps_CXX " in
19816 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19817 esac
19818
19819 lt_prog_compiler_wl_CXX=
19820 lt_prog_compiler_pic_CXX=
19821 lt_prog_compiler_static_CXX=
19822
19823 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19824 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
19825
19826   # C++ specific cases for pic, static, wl, etc.
19827   if test "$GXX" = yes; then
19828     lt_prog_compiler_wl_CXX='-Wl,'
19829     lt_prog_compiler_static_CXX='-static'
19830
19831     case $host_os in
19832     aix*)
19833       # All AIX code is PIC.
19834       if test "$host_cpu" = ia64; then
19835         # AIX 5 now supports IA64 processor
19836         lt_prog_compiler_static_CXX='-Bstatic'
19837       fi
19838       ;;
19839     amigaos*)
19840       # FIXME: we need at least 68020 code to build shared libraries, but
19841       # adding the `-m68020' flag to GCC prevents building anything better,
19842       # like `-m68040'.
19843       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19844       ;;
19845     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19846       # PIC is the default for these OSes.
19847       ;;
19848     mingw* | os2* | pw32*)
19849       # This hack is so that the source file can tell whether it is being
19850       # built for inclusion in a dll (and should export symbols for example).
19851       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19852       ;;
19853     darwin* | rhapsody*)
19854       # PIC is the default on this platform
19855       # Common symbols not allowed in MH_DYLIB files
19856       lt_prog_compiler_pic_CXX='-fno-common'
19857       ;;
19858     *djgpp*)
19859       # DJGPP does not support shared libraries at all
19860       lt_prog_compiler_pic_CXX=
19861       ;;
19862     sysv4*MP*)
19863       if test -d /usr/nec; then
19864         lt_prog_compiler_pic_CXX=-Kconform_pic
19865       fi
19866       ;;
19867     hpux*)
19868       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19869       # not for PA HP-UX.
19870       case $host_cpu in
19871       hppa*64*|ia64*)
19872         ;;
19873       *)
19874         lt_prog_compiler_pic_CXX='-fPIC'
19875         ;;
19876       esac
19877       ;;
19878     *)
19879       lt_prog_compiler_pic_CXX='-fPIC'
19880       ;;
19881     esac
19882   else
19883     case $host_os in
19884       aix4* | aix5*)
19885         # All AIX code is PIC.
19886         if test "$host_cpu" = ia64; then
19887           # AIX 5 now supports IA64 processor
19888           lt_prog_compiler_static_CXX='-Bstatic'
19889         else
19890           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19891         fi
19892         ;;
19893       chorus*)
19894         case $cc_basename in
19895         cxch68*)
19896           # Green Hills C++ Compiler
19897           # _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"
19898           ;;
19899         esac
19900         ;;
19901        darwin*)
19902          # PIC is the default on this platform
19903          # Common symbols not allowed in MH_DYLIB files
19904          case $cc_basename in
19905            xlc*)
19906            lt_prog_compiler_pic_CXX='-qnocommon'
19907            lt_prog_compiler_wl_CXX='-Wl,'
19908            ;;
19909          esac
19910        ;;
19911       dgux*)
19912         case $cc_basename in
19913           ec++*)
19914             lt_prog_compiler_pic_CXX='-KPIC'
19915             ;;
19916           ghcx*)
19917             # Green Hills C++ Compiler
19918             lt_prog_compiler_pic_CXX='-pic'
19919             ;;
19920           *)
19921             ;;
19922         esac
19923         ;;
19924       freebsd* | kfreebsd*-gnu | dragonfly*)
19925         # FreeBSD uses GNU C++
19926         ;;
19927       hpux9* | hpux10* | hpux11*)
19928         case $cc_basename in
19929           CC*)
19930             lt_prog_compiler_wl_CXX='-Wl,'
19931             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
19932             if test "$host_cpu" != ia64; then
19933               lt_prog_compiler_pic_CXX='+Z'
19934             fi
19935             ;;
19936           aCC*)
19937             lt_prog_compiler_wl_CXX='-Wl,'
19938             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
19939             case $host_cpu in
19940             hppa*64*|ia64*)
19941               # +Z the default
19942               ;;
19943             *)
19944               lt_prog_compiler_pic_CXX='+Z'
19945               ;;
19946             esac
19947             ;;
19948           *)
19949             ;;
19950         esac
19951         ;;
19952       irix5* | irix6* | nonstopux*)
19953         case $cc_basename in
19954           CC*)
19955             lt_prog_compiler_wl_CXX='-Wl,'
19956             lt_prog_compiler_static_CXX='-non_shared'
19957             # CC pic flag -KPIC is the default.
19958             ;;
19959           *)
19960             ;;
19961         esac
19962         ;;
19963       linux*)
19964         case $cc_basename in
19965           KCC*)
19966             # KAI C++ Compiler
19967             lt_prog_compiler_wl_CXX='--backend -Wl,'
19968             lt_prog_compiler_pic_CXX='-fPIC'
19969             ;;
19970           icpc* | ecpc*)
19971             # Intel C++
19972             lt_prog_compiler_wl_CXX='-Wl,'
19973             lt_prog_compiler_pic_CXX='-KPIC'
19974             lt_prog_compiler_static_CXX='-static'
19975             ;;
19976           pgCC*)
19977             # Portland Group C++ compiler.
19978             lt_prog_compiler_wl_CXX='-Wl,'
19979             lt_prog_compiler_pic_CXX='-fpic'
19980             lt_prog_compiler_static_CXX='-Bstatic'
19981             ;;
19982           cxx*)
19983             # Compaq C++
19984             # Make sure the PIC flag is empty.  It appears that all Alpha
19985             # Linux and Compaq Tru64 Unix objects are PIC.
19986             lt_prog_compiler_pic_CXX=
19987             lt_prog_compiler_static_CXX='-non_shared'
19988             ;;
19989           *)
19990             ;;
19991         esac
19992         ;;
19993       lynxos*)
19994         ;;
19995       m88k*)
19996         ;;
19997       mvs*)
19998         case $cc_basename in
19999           cxx*)
20000             lt_prog_compiler_pic_CXX='-W c,exportall'
20001             ;;
20002           *)
20003             ;;
20004         esac
20005         ;;
20006       netbsd*)
20007         ;;
20008       osf3* | osf4* | osf5*)
20009         case $cc_basename in
20010           KCC*)
20011             lt_prog_compiler_wl_CXX='--backend -Wl,'
20012             ;;
20013           RCC*)
20014             # Rational C++ 2.4.1
20015             lt_prog_compiler_pic_CXX='-pic'
20016             ;;
20017           cxx*)
20018             # Digital/Compaq C++
20019             lt_prog_compiler_wl_CXX='-Wl,'
20020             # Make sure the PIC flag is empty.  It appears that all Alpha
20021             # Linux and Compaq Tru64 Unix objects are PIC.
20022             lt_prog_compiler_pic_CXX=
20023             lt_prog_compiler_static_CXX='-non_shared'
20024             ;;
20025           *)
20026             ;;
20027         esac
20028         ;;
20029       psos*)
20030         ;;
20031       sco*)
20032         case $cc_basename in
20033           CC*)
20034             lt_prog_compiler_pic_CXX='-fPIC'
20035             ;;
20036           *)
20037             ;;
20038         esac
20039         ;;
20040       solaris*)
20041         case $cc_basename in
20042           CC*)
20043             # Sun C++ 4.2, 5.x and Centerline C++
20044             lt_prog_compiler_pic_CXX='-KPIC'
20045             lt_prog_compiler_static_CXX='-Bstatic'
20046             lt_prog_compiler_wl_CXX='-Qoption ld '
20047             ;;
20048           gcx*)
20049             # Green Hills C++ Compiler
20050             lt_prog_compiler_pic_CXX='-PIC'
20051             ;;
20052           *)
20053             ;;
20054         esac
20055         ;;
20056       sunos4*)
20057         case $cc_basename in
20058           CC*)
20059             # Sun C++ 4.x
20060             lt_prog_compiler_pic_CXX='-pic'
20061             lt_prog_compiler_static_CXX='-Bstatic'
20062             ;;
20063           lcc*)
20064             # Lucid
20065             lt_prog_compiler_pic_CXX='-pic'
20066             ;;
20067           *)
20068             ;;
20069         esac
20070         ;;
20071       tandem*)
20072         case $cc_basename in
20073           NCC*)
20074             # NonStop-UX NCC 3.20
20075             lt_prog_compiler_pic_CXX='-KPIC'
20076             ;;
20077           *)
20078             ;;
20079         esac
20080         ;;
20081       unixware*)
20082         ;;
20083       vxworks*)
20084         ;;
20085       *)
20086         lt_prog_compiler_can_build_shared_CXX=no
20087         ;;
20088     esac
20089   fi
20090
20091 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
20092 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
20093
20094 #
20095 # Check to make sure the PIC flag actually works.
20096 #
20097 if test -n "$lt_prog_compiler_pic_CXX"; then
20098
20099 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20100 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
20101 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
20102   echo $ECHO_N "(cached) $ECHO_C" >&6
20103 else
20104   lt_prog_compiler_pic_works_CXX=no
20105   ac_outfile=conftest.$ac_objext
20106    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20107    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20108    # Insert the option either (1) after the last *FLAGS variable, or
20109    # (2) before a word containing "conftest.", or (3) at the end.
20110    # Note that $ac_compile itself does not contain backslashes and begins
20111    # with a dollar sign (not a hyphen), so the echo should work correctly.
20112    # The option is referenced via a variable to avoid confusing sed.
20113    lt_compile=`echo "$ac_compile" | $SED \
20114    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20115    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20116    -e 's:$: $lt_compiler_flag:'`
20117    (eval echo "\"\$as_me:20117: $lt_compile\"" >&5)
20118    (eval "$lt_compile" 2>conftest.err)
20119    ac_status=$?
20120    cat conftest.err >&5
20121    echo "$as_me:20121: \$? = $ac_status" >&5
20122    if (exit $ac_status) && test -s "$ac_outfile"; then
20123      # The compiler can only warn and ignore the option if not recognized
20124      # So say no if there are warnings other than the usual output.
20125      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
20126      $SED '/^$/d' conftest.err >conftest.er2
20127      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
20128        lt_prog_compiler_pic_works_CXX=yes
20129      fi
20130    fi
20131    $rm conftest*
20132
20133 fi
20134 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
20135 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
20136
20137 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
20138     case $lt_prog_compiler_pic_CXX in
20139      "" | " "*) ;;
20140      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20141      esac
20142 else
20143     lt_prog_compiler_pic_CXX=
20144      lt_prog_compiler_can_build_shared_CXX=no
20145 fi
20146
20147 fi
20148 case $host_os in
20149   # For platforms which do not support PIC, -DPIC is meaningless:
20150   *djgpp*)
20151     lt_prog_compiler_pic_CXX=
20152     ;;
20153   *)
20154     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20155     ;;
20156 esac
20157
20158 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
20159 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
20160 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
20161   echo $ECHO_N "(cached) $ECHO_C" >&6
20162 else
20163   lt_cv_prog_compiler_c_o_CXX=no
20164    $rm -r conftest 2>/dev/null
20165    mkdir conftest
20166    cd conftest
20167    mkdir out
20168    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20169
20170    lt_compiler_flag="-o out/conftest2.$ac_objext"
20171    # Insert the option either (1) after the last *FLAGS variable, or
20172    # (2) before a word containing "conftest.", or (3) at the end.
20173    # Note that $ac_compile itself does not contain backslashes and begins
20174    # with a dollar sign (not a hyphen), so the echo should work correctly.
20175    lt_compile=`echo "$ac_compile" | $SED \
20176    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20177    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20178    -e 's:$: $lt_compiler_flag:'`
20179    (eval echo "\"\$as_me:20179: $lt_compile\"" >&5)
20180    (eval "$lt_compile" 2>out/conftest.err)
20181    ac_status=$?
20182    cat out/conftest.err >&5
20183    echo "$as_me:20183: \$? = $ac_status" >&5
20184    if (exit $ac_status) && test -s out/conftest2.$ac_objext
20185    then
20186      # The compiler can only warn and ignore the option if not recognized
20187      # So say no if there are warnings
20188      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
20189      $SED '/^$/d' out/conftest.err >out/conftest.er2
20190      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20191        lt_cv_prog_compiler_c_o_CXX=yes
20192      fi
20193    fi
20194    chmod u+w . 2>&5
20195    $rm conftest*
20196    # SGI C++ compiler will create directory out/ii_files/ for
20197    # template instantiation
20198    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
20199    $rm out/* && rmdir out
20200    cd ..
20201    rmdir conftest
20202    $rm conftest*
20203
20204 fi
20205 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20206 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
20207
20208
20209 hard_links="nottested"
20210 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20211   # do not overwrite the value of need_locks provided by the user
20212   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
20213 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
20214   hard_links=yes
20215   $rm conftest*
20216   ln conftest.a conftest.b 2>/dev/null && hard_links=no
20217   touch conftest.a
20218   ln conftest.a conftest.b 2>&5 || hard_links=no
20219   ln conftest.a conftest.b 2>/dev/null && hard_links=no
20220   echo "$as_me:$LINENO: result: $hard_links" >&5
20221 echo "${ECHO_T}$hard_links" >&6
20222   if test "$hard_links" = no; then
20223     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20224 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20225     need_locks=warn
20226   fi
20227 else
20228   need_locks=no
20229 fi
20230
20231 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20232 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
20233
20234   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20235   case $host_os in
20236   aix4* | aix5*)
20237     # If we're using GNU nm, then we don't want the "-C" option.
20238     # -C means demangle to AIX nm, but means don't demangle with GNU nm
20239     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
20240       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'
20241     else
20242       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'
20243     fi
20244     ;;
20245   pw32*)
20246     export_symbols_cmds_CXX="$ltdll_cmds"
20247   ;;
20248   cygwin* | mingw*)
20249     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'
20250   ;;
20251   *)
20252     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20253   ;;
20254   esac
20255
20256 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
20257 echo "${ECHO_T}$ld_shlibs_CXX" >&6
20258 test "$ld_shlibs_CXX" = no && can_build_shared=no
20259
20260 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20261 if test "$GCC" = yes; then
20262   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20263 fi
20264
20265 #
20266 # Do we need to explicitly link libc?
20267 #
20268 case "x$archive_cmds_need_lc_CXX" in
20269 x|xyes)
20270   # Assume -lc should be added
20271   archive_cmds_need_lc_CXX=yes
20272
20273   if test "$enable_shared" = yes && test "$GCC" = yes; then
20274     case $archive_cmds_CXX in
20275     *'~'*)
20276       # FIXME: we may have to deal with multi-command sequences.
20277       ;;
20278     '$CC '*)
20279       # Test whether the compiler implicitly links with -lc since on some
20280       # systems, -lgcc has to come before -lc. If gcc already passes -lc
20281       # to ld, don't add -lc before -lgcc.
20282       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20283 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
20284       $rm conftest*
20285       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20286
20287       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20288   (eval $ac_compile) 2>&5
20289   ac_status=$?
20290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20291   (exit $ac_status); } 2>conftest.err; then
20292         soname=conftest
20293         lib=conftest
20294         libobjs=conftest.$ac_objext
20295         deplibs=
20296         wl=$lt_prog_compiler_wl_CXX
20297         compiler_flags=-v
20298         linker_flags=-v
20299         verstring=
20300         output_objdir=.
20301         libname=conftest
20302         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20303         allow_undefined_flag_CXX=
20304         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20305   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20306   ac_status=$?
20307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20308   (exit $ac_status); }
20309         then
20310           archive_cmds_need_lc_CXX=no
20311         else
20312           archive_cmds_need_lc_CXX=yes
20313         fi
20314         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20315       else
20316         cat conftest.err 1>&5
20317       fi
20318       $rm conftest*
20319       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
20320 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
20321       ;;
20322     esac
20323   fi
20324   ;;
20325 esac
20326
20327 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20328 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
20329 library_names_spec=
20330 libname_spec='lib$name'
20331 soname_spec=
20332 shrext_cmds=".so"
20333 postinstall_cmds=
20334 postuninstall_cmds=
20335 finish_cmds=
20336 finish_eval=
20337 shlibpath_var=
20338 shlibpath_overrides_runpath=unknown
20339 version_type=none
20340 dynamic_linker="$host_os ld.so"
20341 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20342 if test "$GCC" = yes; then
20343   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20344   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20345     # if the path contains ";" then we assume it to be the separator
20346     # otherwise default to the standard path separator (i.e. ":") - it is
20347     # assumed that no part of a normal pathname contains ";" but that should
20348     # okay in the real world where ";" in dirpaths is itself problematic.
20349     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20350   else
20351     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20352   fi
20353 else
20354   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20355 fi
20356 need_lib_prefix=unknown
20357 hardcode_into_libs=no
20358
20359 # when you set need_version to no, make sure it does not cause -set_version
20360 # flags to be left without arguments
20361 need_version=unknown
20362
20363 case $host_os in
20364 aix3*)
20365   version_type=linux
20366   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20367   shlibpath_var=LIBPATH
20368
20369   # AIX 3 has no versioning support, so we append a major version to the name.
20370   soname_spec='${libname}${release}${shared_ext}$major'
20371   ;;
20372
20373 aix4* | aix5*)
20374   version_type=linux
20375   need_lib_prefix=no
20376   need_version=no
20377   hardcode_into_libs=yes
20378   if test "$host_cpu" = ia64; then
20379     # AIX 5 supports IA64
20380     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20381     shlibpath_var=LD_LIBRARY_PATH
20382   else
20383     # With GCC up to 2.95.x, collect2 would create an import file
20384     # for dependence libraries.  The import file would start with
20385     # the line `#! .'.  This would cause the generated library to
20386     # depend on `.', always an invalid library.  This was fixed in
20387     # development snapshots of GCC prior to 3.0.
20388     case $host_os in
20389       aix4 | aix4.[01] | aix4.[01].*)
20390       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20391            echo ' yes '
20392            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20393         :
20394       else
20395         can_build_shared=no
20396       fi
20397       ;;
20398     esac
20399     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20400     # soname into executable. Probably we can add versioning support to
20401     # collect2, so additional links can be useful in future.
20402     if test "$aix_use_runtimelinking" = yes; then
20403       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20404       # instead of lib<name>.a to let people know that these are not
20405       # typical AIX shared libraries.
20406       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20407     else
20408       # We preserve .a as extension for shared libraries through AIX4.2
20409       # and later when we are not doing run time linking.
20410       library_names_spec='${libname}${release}.a $libname.a'
20411       soname_spec='${libname}${release}${shared_ext}$major'
20412     fi
20413     shlibpath_var=LIBPATH
20414   fi
20415   ;;
20416
20417 amigaos*)
20418   library_names_spec='$libname.ixlibrary $libname.a'
20419   # Create ${libname}_ixlibrary.a entries in /sys/libs.
20420   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'
20421   ;;
20422
20423 beos*)
20424   library_names_spec='${libname}${shared_ext}'
20425   dynamic_linker="$host_os ld.so"
20426   shlibpath_var=LIBRARY_PATH
20427   ;;
20428
20429 bsdi[45]*)
20430   version_type=linux
20431   need_version=no
20432   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20433   soname_spec='${libname}${release}${shared_ext}$major'
20434   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20435   shlibpath_var=LD_LIBRARY_PATH
20436   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20437   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20438   # the default ld.so.conf also contains /usr/contrib/lib and
20439   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20440   # libtool to hard-code these into programs
20441   ;;
20442
20443 cygwin* | mingw* | pw32*)
20444   version_type=windows
20445   shrext_cmds=".dll"
20446   need_version=no
20447   need_lib_prefix=no
20448
20449   case $GCC,$host_os in
20450   yes,cygwin* | yes,mingw* | yes,pw32*)
20451     library_names_spec='$libname.dll.a'
20452     # DLL is installed to $(libdir)/../bin by postinstall_cmds
20453     postinstall_cmds='base_file=`basename \${file}`~
20454       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20455       dldir=$destdir/`dirname \$dlpath`~
20456       test -d \$dldir || mkdir -p \$dldir~
20457       $install_prog $dir/$dlname \$dldir/$dlname~
20458       chmod a+x \$dldir/$dlname'
20459     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20460       dlpath=$dir/\$dldll~
20461        $rm \$dlpath'
20462     shlibpath_overrides_runpath=yes
20463
20464     case $host_os in
20465     cygwin*)
20466       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20467       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20468       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20469       ;;
20470     mingw*)
20471       # MinGW DLLs use traditional 'lib' prefix
20472       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20473       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20474       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20475         # It is most probably a Windows format PATH printed by
20476         # mingw gcc, but we are running on Cygwin. Gcc prints its search
20477         # path with ; separators, and with drive letters. We can handle the
20478         # drive letters (cygwin fileutils understands them), so leave them,
20479         # especially as we might pass files found there to a mingw objdump,
20480         # which wouldn't understand a cygwinified path. Ahh.
20481         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20482       else
20483         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20484       fi
20485       ;;
20486     pw32*)
20487       # pw32 DLLs use 'pw' prefix rather than 'lib'
20488       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20489       ;;
20490     esac
20491     ;;
20492
20493   *)
20494     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20495     ;;
20496   esac
20497   dynamic_linker='Win32 ld.exe'
20498   # FIXME: first we should search . and the directory the executable is in
20499   shlibpath_var=PATH
20500   ;;
20501
20502 darwin* | rhapsody*)
20503   dynamic_linker="$host_os dyld"
20504   version_type=darwin
20505   need_lib_prefix=no
20506   need_version=no
20507   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20508   soname_spec='${libname}${release}${major}$shared_ext'
20509   shlibpath_overrides_runpath=yes
20510   shlibpath_var=DYLD_LIBRARY_PATH
20511   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20512   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20513   if test "$GCC" = yes; then
20514     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"`
20515   else
20516     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20517   fi
20518   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20519   ;;
20520
20521 dgux*)
20522   version_type=linux
20523   need_lib_prefix=no
20524   need_version=no
20525   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20526   soname_spec='${libname}${release}${shared_ext}$major'
20527   shlibpath_var=LD_LIBRARY_PATH
20528   ;;
20529
20530 freebsd1*)
20531   dynamic_linker=no
20532   ;;
20533
20534 kfreebsd*-gnu)
20535   version_type=linux
20536   need_lib_prefix=no
20537   need_version=no
20538   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20539   soname_spec='${libname}${release}${shared_ext}$major'
20540   shlibpath_var=LD_LIBRARY_PATH
20541   shlibpath_overrides_runpath=no
20542   hardcode_into_libs=yes
20543   dynamic_linker='GNU ld.so'
20544   ;;
20545
20546 freebsd* | dragonfly*)
20547   # DragonFly does not have aout.  When/if they implement a new
20548   # versioning mechanism, adjust this.
20549   if test -x /usr/bin/objformat; then
20550     objformat=`/usr/bin/objformat`
20551   else
20552     case $host_os in
20553     freebsd[123]*) objformat=aout ;;
20554     *) objformat=elf ;;
20555     esac
20556   fi
20557   version_type=freebsd-$objformat
20558   case $version_type in
20559     freebsd-elf*)
20560       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20561       need_version=no
20562       need_lib_prefix=no
20563       ;;
20564     freebsd-*)
20565       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20566       need_version=yes
20567       ;;
20568   esac
20569   shlibpath_var=LD_LIBRARY_PATH
20570   case $host_os in
20571   freebsd2*)
20572     shlibpath_overrides_runpath=yes
20573     ;;
20574   freebsd3.[01]* | freebsdelf3.[01]*)
20575     shlibpath_overrides_runpath=yes
20576     hardcode_into_libs=yes
20577     ;;
20578   *) # from 3.2 on
20579     shlibpath_overrides_runpath=no
20580     hardcode_into_libs=yes
20581     ;;
20582   esac
20583   ;;
20584
20585 gnu*)
20586   version_type=linux
20587   need_lib_prefix=no
20588   need_version=no
20589   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20590   soname_spec='${libname}${release}${shared_ext}$major'
20591   shlibpath_var=LD_LIBRARY_PATH
20592   hardcode_into_libs=yes
20593   ;;
20594
20595 hpux9* | hpux10* | hpux11*)
20596   # Give a soname corresponding to the major version so that dld.sl refuses to
20597   # link against other versions.
20598   version_type=sunos
20599   need_lib_prefix=no
20600   need_version=no
20601   case $host_cpu in
20602   ia64*)
20603     shrext_cmds='.so'
20604     hardcode_into_libs=yes
20605     dynamic_linker="$host_os dld.so"
20606     shlibpath_var=LD_LIBRARY_PATH
20607     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20608     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20609     soname_spec='${libname}${release}${shared_ext}$major'
20610     if test "X$HPUX_IA64_MODE" = X32; then
20611       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20612     else
20613       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20614     fi
20615     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20616     ;;
20617    hppa*64*)
20618      shrext_cmds='.sl'
20619      hardcode_into_libs=yes
20620      dynamic_linker="$host_os dld.sl"
20621      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20622      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20623      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20624      soname_spec='${libname}${release}${shared_ext}$major'
20625      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20626      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20627      ;;
20628    *)
20629     shrext_cmds='.sl'
20630     dynamic_linker="$host_os dld.sl"
20631     shlibpath_var=SHLIB_PATH
20632     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20633     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20634     soname_spec='${libname}${release}${shared_ext}$major'
20635     ;;
20636   esac
20637   # HP-UX runs *really* slowly unless shared libraries are mode 555.
20638   postinstall_cmds='chmod 555 $lib'
20639   ;;
20640
20641 irix5* | irix6* | nonstopux*)
20642   case $host_os in
20643     nonstopux*) version_type=nonstopux ;;
20644     *)
20645         if test "$lt_cv_prog_gnu_ld" = yes; then
20646                 version_type=linux
20647         else
20648                 version_type=irix
20649         fi ;;
20650   esac
20651   need_lib_prefix=no
20652   need_version=no
20653   soname_spec='${libname}${release}${shared_ext}$major'
20654   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20655   case $host_os in
20656   irix5* | nonstopux*)
20657     libsuff= shlibsuff=
20658     ;;
20659   *)
20660     case $LD in # libtool.m4 will add one of these switches to LD
20661     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20662       libsuff= shlibsuff= libmagic=32-bit;;
20663     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20664       libsuff=32 shlibsuff=N32 libmagic=N32;;
20665     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20666       libsuff=64 shlibsuff=64 libmagic=64-bit;;
20667     *) libsuff= shlibsuff= libmagic=never-match;;
20668     esac
20669     ;;
20670   esac
20671   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20672   shlibpath_overrides_runpath=no
20673   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20674   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20675   hardcode_into_libs=yes
20676   ;;
20677
20678 # No shared lib support for Linux oldld, aout, or coff.
20679 linux*oldld* | linux*aout* | linux*coff*)
20680   dynamic_linker=no
20681   ;;
20682
20683 # This must be Linux ELF.
20684 linux*)
20685   version_type=linux
20686   need_lib_prefix=no
20687   need_version=no
20688   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20689   soname_spec='${libname}${release}${shared_ext}$major'
20690   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20691   shlibpath_var=LD_LIBRARY_PATH
20692   shlibpath_overrides_runpath=no
20693   # This implies no fast_install, which is unacceptable.
20694   # Some rework will be needed to allow for fast_install
20695   # before this can be enabled.
20696   hardcode_into_libs=yes
20697
20698   # Append ld.so.conf contents to the search path
20699   if test -f /etc/ld.so.conf; then
20700     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' ' '`
20701     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20702   fi
20703
20704   # We used to test for /lib/ld.so.1 and disable shared libraries on
20705   # powerpc, because MkLinux only supported shared libraries with the
20706   # GNU dynamic linker.  Since this was broken with cross compilers,
20707   # most powerpc-linux boxes support dynamic linking these days and
20708   # people can always --disable-shared, the test was removed, and we
20709   # assume the GNU/Linux dynamic linker is in use.
20710   dynamic_linker='GNU/Linux ld.so'
20711   ;;
20712
20713 knetbsd*-gnu)
20714   version_type=linux
20715   need_lib_prefix=no
20716   need_version=no
20717   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20718   soname_spec='${libname}${release}${shared_ext}$major'
20719   shlibpath_var=LD_LIBRARY_PATH
20720   shlibpath_overrides_runpath=no
20721   hardcode_into_libs=yes
20722   dynamic_linker='GNU ld.so'
20723   ;;
20724
20725 netbsd*)
20726   version_type=sunos
20727   need_lib_prefix=no
20728   need_version=no
20729   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20730     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20731     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20732     dynamic_linker='NetBSD (a.out) ld.so'
20733   else
20734     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20735     soname_spec='${libname}${release}${shared_ext}$major'
20736     dynamic_linker='NetBSD ld.elf_so'
20737   fi
20738   shlibpath_var=LD_LIBRARY_PATH
20739   shlibpath_overrides_runpath=yes
20740   hardcode_into_libs=yes
20741   ;;
20742
20743 newsos6)
20744   version_type=linux
20745   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20746   shlibpath_var=LD_LIBRARY_PATH
20747   shlibpath_overrides_runpath=yes
20748   ;;
20749
20750 nto-qnx*)
20751   version_type=linux
20752   need_lib_prefix=no
20753   need_version=no
20754   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20755   soname_spec='${libname}${release}${shared_ext}$major'
20756   shlibpath_var=LD_LIBRARY_PATH
20757   shlibpath_overrides_runpath=yes
20758   ;;
20759
20760 openbsd*)
20761   version_type=sunos
20762   need_lib_prefix=no
20763   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20764   case $host_os in
20765     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20766     *)                         need_version=no  ;;
20767   esac
20768   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20769   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20770   shlibpath_var=LD_LIBRARY_PATH
20771   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20772     case $host_os in
20773       openbsd2.[89] | openbsd2.[89].*)
20774         shlibpath_overrides_runpath=no
20775         ;;
20776       *)
20777         shlibpath_overrides_runpath=yes
20778         ;;
20779       esac
20780   else
20781     shlibpath_overrides_runpath=yes
20782   fi
20783   ;;
20784
20785 os2*)
20786   libname_spec='$name'
20787   shrext_cmds=".dll"
20788   need_lib_prefix=no
20789   library_names_spec='$libname${shared_ext} $libname.a'
20790   dynamic_linker='OS/2 ld.exe'
20791   shlibpath_var=LIBPATH
20792   ;;
20793
20794 osf3* | osf4* | osf5*)
20795   version_type=osf
20796   need_lib_prefix=no
20797   need_version=no
20798   soname_spec='${libname}${release}${shared_ext}$major'
20799   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20800   shlibpath_var=LD_LIBRARY_PATH
20801   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20802   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20803   ;;
20804
20805 sco3.2v5*)
20806   version_type=osf
20807   soname_spec='${libname}${release}${shared_ext}$major'
20808   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20809   shlibpath_var=LD_LIBRARY_PATH
20810   ;;
20811
20812 solaris*)
20813   version_type=linux
20814   need_lib_prefix=no
20815   need_version=no
20816   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20817   soname_spec='${libname}${release}${shared_ext}$major'
20818   shlibpath_var=LD_LIBRARY_PATH
20819   shlibpath_overrides_runpath=yes
20820   hardcode_into_libs=yes
20821   # ldd complains unless libraries are executable
20822   postinstall_cmds='chmod +x $lib'
20823   ;;
20824
20825 sunos4*)
20826   version_type=sunos
20827   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20828   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20829   shlibpath_var=LD_LIBRARY_PATH
20830   shlibpath_overrides_runpath=yes
20831   if test "$with_gnu_ld" = yes; then
20832     need_lib_prefix=no
20833   fi
20834   need_version=yes
20835   ;;
20836
20837 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20838   version_type=linux
20839   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20840   soname_spec='${libname}${release}${shared_ext}$major'
20841   shlibpath_var=LD_LIBRARY_PATH
20842   case $host_vendor in
20843     sni)
20844       shlibpath_overrides_runpath=no
20845       need_lib_prefix=no
20846       export_dynamic_flag_spec='${wl}-Blargedynsym'
20847       runpath_var=LD_RUN_PATH
20848       ;;
20849     siemens)
20850       need_lib_prefix=no
20851       ;;
20852     motorola)
20853       need_lib_prefix=no
20854       need_version=no
20855       shlibpath_overrides_runpath=no
20856       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20857       ;;
20858   esac
20859   ;;
20860
20861 sysv4*MP*)
20862   if test -d /usr/nec ;then
20863     version_type=linux
20864     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20865     soname_spec='$libname${shared_ext}.$major'
20866     shlibpath_var=LD_LIBRARY_PATH
20867   fi
20868   ;;
20869
20870 uts4*)
20871   version_type=linux
20872   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20873   soname_spec='${libname}${release}${shared_ext}$major'
20874   shlibpath_var=LD_LIBRARY_PATH
20875   ;;
20876
20877 *)
20878   dynamic_linker=no
20879   ;;
20880 esac
20881 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20882 echo "${ECHO_T}$dynamic_linker" >&6
20883 test "$dynamic_linker" = no && can_build_shared=no
20884
20885 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20886 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
20887 hardcode_action_CXX=
20888 if test -n "$hardcode_libdir_flag_spec_CXX" || \
20889    test -n "$runpath_var_CXX" || \
20890    test "X$hardcode_automatic_CXX" = "Xyes" ; then
20891
20892   # We can hardcode non-existant directories.
20893   if test "$hardcode_direct_CXX" != no &&
20894      # If the only mechanism to avoid hardcoding is shlibpath_var, we
20895      # have to relink, otherwise we might link with an installed library
20896      # when we should be linking with a yet-to-be-installed one
20897      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20898      test "$hardcode_minus_L_CXX" != no; then
20899     # Linking always hardcodes the temporary library directory.
20900     hardcode_action_CXX=relink
20901   else
20902     # We can link without hardcoding, and we can hardcode nonexisting dirs.
20903     hardcode_action_CXX=immediate
20904   fi
20905 else
20906   # We cannot hardcode anything, or else we can only hardcode existing
20907   # directories.
20908   hardcode_action_CXX=unsupported
20909 fi
20910 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20911 echo "${ECHO_T}$hardcode_action_CXX" >&6
20912
20913 if test "$hardcode_action_CXX" = relink; then
20914   # Fast installation is not supported
20915   enable_fast_install=no
20916 elif test "$shlibpath_overrides_runpath" = yes ||
20917      test "$enable_shared" = no; then
20918   # Fast installation is not necessary
20919   enable_fast_install=needless
20920 fi
20921
20922 striplib=
20923 old_striplib=
20924 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
20925 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
20926 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
20927   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
20928   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
20929   echo "$as_me:$LINENO: result: yes" >&5
20930 echo "${ECHO_T}yes" >&6
20931 else
20932 # FIXME - insert some real tests, host_os isn't really good enough
20933   case $host_os in
20934    darwin*)
20935        if test -n "$STRIP" ; then
20936          striplib="$STRIP -x"
20937          echo "$as_me:$LINENO: result: yes" >&5
20938 echo "${ECHO_T}yes" >&6
20939        else
20940   echo "$as_me:$LINENO: result: no" >&5
20941 echo "${ECHO_T}no" >&6
20942 fi
20943        ;;
20944    *)
20945   echo "$as_me:$LINENO: result: no" >&5
20946 echo "${ECHO_T}no" >&6
20947     ;;
20948   esac
20949 fi
20950
20951 if test "x$enable_dlopen" != xyes; then
20952   enable_dlopen=unknown
20953   enable_dlopen_self=unknown
20954   enable_dlopen_self_static=unknown
20955 else
20956   lt_cv_dlopen=no
20957   lt_cv_dlopen_libs=
20958
20959   case $host_os in
20960   beos*)
20961     lt_cv_dlopen="load_add_on"
20962     lt_cv_dlopen_libs=
20963     lt_cv_dlopen_self=yes
20964     ;;
20965
20966   mingw* | pw32*)
20967     lt_cv_dlopen="LoadLibrary"
20968     lt_cv_dlopen_libs=
20969    ;;
20970
20971   cygwin*)
20972     lt_cv_dlopen="dlopen"
20973     lt_cv_dlopen_libs=
20974    ;;
20975
20976   darwin*)
20977   # if libdl is installed we need to link against it
20978     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
20979 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
20980 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
20981   echo $ECHO_N "(cached) $ECHO_C" >&6
20982 else
20983   ac_check_lib_save_LIBS=$LIBS
20984 LIBS="-ldl  $LIBS"
20985 cat >conftest.$ac_ext <<_ACEOF
20986 /* confdefs.h.  */
20987 _ACEOF
20988 cat confdefs.h >>conftest.$ac_ext
20989 cat >>conftest.$ac_ext <<_ACEOF
20990 /* end confdefs.h.  */
20991
20992 /* Override any gcc2 internal prototype to avoid an error.  */
20993 #ifdef __cplusplus
20994 extern "C"
20995 #endif
20996 /* We use char because int might match the return type of a gcc2
20997    builtin and then its argument prototype would still apply.  */
20998 char dlopen ();
20999 int
21000 main ()
21001 {
21002 dlopen ();
21003   ;
21004   return 0;
21005 }
21006 _ACEOF
21007 rm -f conftest.$ac_objext conftest$ac_exeext
21008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21009   (eval $ac_link) 2>conftest.er1
21010   ac_status=$?
21011   grep -v '^ *+' conftest.er1 >conftest.err
21012   rm -f conftest.er1
21013   cat conftest.err >&5
21014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21015   (exit $ac_status); } &&
21016          { ac_try='test -z "$ac_cxx_werror_flag"
21017                          || test ! -s conftest.err'
21018   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21019   (eval $ac_try) 2>&5
21020   ac_status=$?
21021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21022   (exit $ac_status); }; } &&
21023          { ac_try='test -s conftest$ac_exeext'
21024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21025   (eval $ac_try) 2>&5
21026   ac_status=$?
21027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21028   (exit $ac_status); }; }; then
21029   ac_cv_lib_dl_dlopen=yes
21030 else
21031   echo "$as_me: failed program was:" >&5
21032 sed 's/^/| /' conftest.$ac_ext >&5
21033
21034 ac_cv_lib_dl_dlopen=no
21035 fi
21036 rm -f conftest.err conftest.$ac_objext \
21037       conftest$ac_exeext conftest.$ac_ext
21038 LIBS=$ac_check_lib_save_LIBS
21039 fi
21040 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
21041 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
21042 if test $ac_cv_lib_dl_dlopen = yes; then
21043   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
21044 else
21045
21046     lt_cv_dlopen="dyld"
21047     lt_cv_dlopen_libs=
21048     lt_cv_dlopen_self=yes
21049
21050 fi
21051
21052    ;;
21053
21054   *)
21055     echo "$as_me:$LINENO: checking for shl_load" >&5
21056 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
21057 if test "${ac_cv_func_shl_load+set}" = set; then
21058   echo $ECHO_N "(cached) $ECHO_C" >&6
21059 else
21060   cat >conftest.$ac_ext <<_ACEOF
21061 /* confdefs.h.  */
21062 _ACEOF
21063 cat confdefs.h >>conftest.$ac_ext
21064 cat >>conftest.$ac_ext <<_ACEOF
21065 /* end confdefs.h.  */
21066 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
21067    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21068 #define shl_load innocuous_shl_load
21069
21070 /* System header to define __stub macros and hopefully few prototypes,
21071     which can conflict with char shl_load (); below.
21072     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21073     <limits.h> exists even on freestanding compilers.  */
21074
21075 #ifdef __STDC__
21076 # include <limits.h>
21077 #else
21078 # include <assert.h>
21079 #endif
21080
21081 #undef shl_load
21082
21083 /* Override any gcc2 internal prototype to avoid an error.  */
21084 #ifdef __cplusplus
21085 extern "C"
21086 {
21087 #endif
21088 /* We use char because int might match the return type of a gcc2
21089    builtin and then its argument prototype would still apply.  */
21090 char shl_load ();
21091 /* The GNU C library defines this for functions which it implements
21092     to always fail with ENOSYS.  Some functions are actually named
21093     something starting with __ and the normal name is an alias.  */
21094 #if defined (__stub_shl_load) || defined (__stub___shl_load)
21095 choke me
21096 #else
21097 char (*f) () = shl_load;
21098 #endif
21099 #ifdef __cplusplus
21100 }
21101 #endif
21102
21103 int
21104 main ()
21105 {
21106 return f != shl_load;
21107   ;
21108   return 0;
21109 }
21110 _ACEOF
21111 rm -f conftest.$ac_objext conftest$ac_exeext
21112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21113   (eval $ac_link) 2>conftest.er1
21114   ac_status=$?
21115   grep -v '^ *+' conftest.er1 >conftest.err
21116   rm -f conftest.er1
21117   cat conftest.err >&5
21118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21119   (exit $ac_status); } &&
21120          { ac_try='test -z "$ac_cxx_werror_flag"
21121                          || test ! -s conftest.err'
21122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21123   (eval $ac_try) 2>&5
21124   ac_status=$?
21125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21126   (exit $ac_status); }; } &&
21127          { ac_try='test -s conftest$ac_exeext'
21128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21129   (eval $ac_try) 2>&5
21130   ac_status=$?
21131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21132   (exit $ac_status); }; }; then
21133   ac_cv_func_shl_load=yes
21134 else
21135   echo "$as_me: failed program was:" >&5
21136 sed 's/^/| /' conftest.$ac_ext >&5
21137
21138 ac_cv_func_shl_load=no
21139 fi
21140 rm -f conftest.err conftest.$ac_objext \
21141       conftest$ac_exeext conftest.$ac_ext
21142 fi
21143 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
21144 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
21145 if test $ac_cv_func_shl_load = yes; then
21146   lt_cv_dlopen="shl_load"
21147 else
21148   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
21149 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
21150 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
21151   echo $ECHO_N "(cached) $ECHO_C" >&6
21152 else
21153   ac_check_lib_save_LIBS=$LIBS
21154 LIBS="-ldld  $LIBS"
21155 cat >conftest.$ac_ext <<_ACEOF
21156 /* confdefs.h.  */
21157 _ACEOF
21158 cat confdefs.h >>conftest.$ac_ext
21159 cat >>conftest.$ac_ext <<_ACEOF
21160 /* end confdefs.h.  */
21161
21162 /* Override any gcc2 internal prototype to avoid an error.  */
21163 #ifdef __cplusplus
21164 extern "C"
21165 #endif
21166 /* We use char because int might match the return type of a gcc2
21167    builtin and then its argument prototype would still apply.  */
21168 char shl_load ();
21169 int
21170 main ()
21171 {
21172 shl_load ();
21173   ;
21174   return 0;
21175 }
21176 _ACEOF
21177 rm -f conftest.$ac_objext conftest$ac_exeext
21178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21179   (eval $ac_link) 2>conftest.er1
21180   ac_status=$?
21181   grep -v '^ *+' conftest.er1 >conftest.err
21182   rm -f conftest.er1
21183   cat conftest.err >&5
21184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21185   (exit $ac_status); } &&
21186          { ac_try='test -z "$ac_cxx_werror_flag"
21187                          || test ! -s conftest.err'
21188   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21189   (eval $ac_try) 2>&5
21190   ac_status=$?
21191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21192   (exit $ac_status); }; } &&
21193          { ac_try='test -s conftest$ac_exeext'
21194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21195   (eval $ac_try) 2>&5
21196   ac_status=$?
21197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21198   (exit $ac_status); }; }; then
21199   ac_cv_lib_dld_shl_load=yes
21200 else
21201   echo "$as_me: failed program was:" >&5
21202 sed 's/^/| /' conftest.$ac_ext >&5
21203
21204 ac_cv_lib_dld_shl_load=no
21205 fi
21206 rm -f conftest.err conftest.$ac_objext \
21207       conftest$ac_exeext conftest.$ac_ext
21208 LIBS=$ac_check_lib_save_LIBS
21209 fi
21210 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
21211 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
21212 if test $ac_cv_lib_dld_shl_load = yes; then
21213   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
21214 else
21215   echo "$as_me:$LINENO: checking for dlopen" >&5
21216 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
21217 if test "${ac_cv_func_dlopen+set}" = set; then
21218   echo $ECHO_N "(cached) $ECHO_C" >&6
21219 else
21220   cat >conftest.$ac_ext <<_ACEOF
21221 /* confdefs.h.  */
21222 _ACEOF
21223 cat confdefs.h >>conftest.$ac_ext
21224 cat >>conftest.$ac_ext <<_ACEOF
21225 /* end confdefs.h.  */
21226 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
21227    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21228 #define dlopen innocuous_dlopen
21229
21230 /* System header to define __stub macros and hopefully few prototypes,
21231     which can conflict with char dlopen (); below.
21232     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21233     <limits.h> exists even on freestanding compilers.  */
21234
21235 #ifdef __STDC__
21236 # include <limits.h>
21237 #else
21238 # include <assert.h>
21239 #endif
21240
21241 #undef dlopen
21242
21243 /* Override any gcc2 internal prototype to avoid an error.  */
21244 #ifdef __cplusplus
21245 extern "C"
21246 {
21247 #endif
21248 /* We use char because int might match the return type of a gcc2
21249    builtin and then its argument prototype would still apply.  */
21250 char dlopen ();
21251 /* The GNU C library defines this for functions which it implements
21252     to always fail with ENOSYS.  Some functions are actually named
21253     something starting with __ and the normal name is an alias.  */
21254 #if defined (__stub_dlopen) || defined (__stub___dlopen)
21255 choke me
21256 #else
21257 char (*f) () = dlopen;
21258 #endif
21259 #ifdef __cplusplus
21260 }
21261 #endif
21262
21263 int
21264 main ()
21265 {
21266 return f != dlopen;
21267   ;
21268   return 0;
21269 }
21270 _ACEOF
21271 rm -f conftest.$ac_objext conftest$ac_exeext
21272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21273   (eval $ac_link) 2>conftest.er1
21274   ac_status=$?
21275   grep -v '^ *+' conftest.er1 >conftest.err
21276   rm -f conftest.er1
21277   cat conftest.err >&5
21278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21279   (exit $ac_status); } &&
21280          { ac_try='test -z "$ac_cxx_werror_flag"
21281                          || test ! -s conftest.err'
21282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21283   (eval $ac_try) 2>&5
21284   ac_status=$?
21285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21286   (exit $ac_status); }; } &&
21287          { ac_try='test -s conftest$ac_exeext'
21288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21289   (eval $ac_try) 2>&5
21290   ac_status=$?
21291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21292   (exit $ac_status); }; }; then
21293   ac_cv_func_dlopen=yes
21294 else
21295   echo "$as_me: failed program was:" >&5
21296 sed 's/^/| /' conftest.$ac_ext >&5
21297
21298 ac_cv_func_dlopen=no
21299 fi
21300 rm -f conftest.err conftest.$ac_objext \
21301       conftest$ac_exeext conftest.$ac_ext
21302 fi
21303 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
21304 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
21305 if test $ac_cv_func_dlopen = yes; then
21306   lt_cv_dlopen="dlopen"
21307 else
21308   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
21309 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
21310 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
21311   echo $ECHO_N "(cached) $ECHO_C" >&6
21312 else
21313   ac_check_lib_save_LIBS=$LIBS
21314 LIBS="-ldl  $LIBS"
21315 cat >conftest.$ac_ext <<_ACEOF
21316 /* confdefs.h.  */
21317 _ACEOF
21318 cat confdefs.h >>conftest.$ac_ext
21319 cat >>conftest.$ac_ext <<_ACEOF
21320 /* end confdefs.h.  */
21321
21322 /* Override any gcc2 internal prototype to avoid an error.  */
21323 #ifdef __cplusplus
21324 extern "C"
21325 #endif
21326 /* We use char because int might match the return type of a gcc2
21327    builtin and then its argument prototype would still apply.  */
21328 char dlopen ();
21329 int
21330 main ()
21331 {
21332 dlopen ();
21333   ;
21334   return 0;
21335 }
21336 _ACEOF
21337 rm -f conftest.$ac_objext conftest$ac_exeext
21338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21339   (eval $ac_link) 2>conftest.er1
21340   ac_status=$?
21341   grep -v '^ *+' conftest.er1 >conftest.err
21342   rm -f conftest.er1
21343   cat conftest.err >&5
21344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21345   (exit $ac_status); } &&
21346          { ac_try='test -z "$ac_cxx_werror_flag"
21347                          || test ! -s conftest.err'
21348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21349   (eval $ac_try) 2>&5
21350   ac_status=$?
21351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21352   (exit $ac_status); }; } &&
21353          { ac_try='test -s conftest$ac_exeext'
21354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21355   (eval $ac_try) 2>&5
21356   ac_status=$?
21357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21358   (exit $ac_status); }; }; then
21359   ac_cv_lib_dl_dlopen=yes
21360 else
21361   echo "$as_me: failed program was:" >&5
21362 sed 's/^/| /' conftest.$ac_ext >&5
21363
21364 ac_cv_lib_dl_dlopen=no
21365 fi
21366 rm -f conftest.err conftest.$ac_objext \
21367       conftest$ac_exeext conftest.$ac_ext
21368 LIBS=$ac_check_lib_save_LIBS
21369 fi
21370 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
21371 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
21372 if test $ac_cv_lib_dl_dlopen = yes; then
21373   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
21374 else
21375   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
21376 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
21377 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
21378   echo $ECHO_N "(cached) $ECHO_C" >&6
21379 else
21380   ac_check_lib_save_LIBS=$LIBS
21381 LIBS="-lsvld  $LIBS"
21382 cat >conftest.$ac_ext <<_ACEOF
21383 /* confdefs.h.  */
21384 _ACEOF
21385 cat confdefs.h >>conftest.$ac_ext
21386 cat >>conftest.$ac_ext <<_ACEOF
21387 /* end confdefs.h.  */
21388
21389 /* Override any gcc2 internal prototype to avoid an error.  */
21390 #ifdef __cplusplus
21391 extern "C"
21392 #endif
21393 /* We use char because int might match the return type of a gcc2
21394    builtin and then its argument prototype would still apply.  */
21395 char dlopen ();
21396 int
21397 main ()
21398 {
21399 dlopen ();
21400   ;
21401   return 0;
21402 }
21403 _ACEOF
21404 rm -f conftest.$ac_objext conftest$ac_exeext
21405 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21406   (eval $ac_link) 2>conftest.er1
21407   ac_status=$?
21408   grep -v '^ *+' conftest.er1 >conftest.err
21409   rm -f conftest.er1
21410   cat conftest.err >&5
21411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21412   (exit $ac_status); } &&
21413          { ac_try='test -z "$ac_cxx_werror_flag"
21414                          || test ! -s conftest.err'
21415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21416   (eval $ac_try) 2>&5
21417   ac_status=$?
21418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21419   (exit $ac_status); }; } &&
21420          { ac_try='test -s conftest$ac_exeext'
21421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21422   (eval $ac_try) 2>&5
21423   ac_status=$?
21424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21425   (exit $ac_status); }; }; then
21426   ac_cv_lib_svld_dlopen=yes
21427 else
21428   echo "$as_me: failed program was:" >&5
21429 sed 's/^/| /' conftest.$ac_ext >&5
21430
21431 ac_cv_lib_svld_dlopen=no
21432 fi
21433 rm -f conftest.err conftest.$ac_objext \
21434       conftest$ac_exeext conftest.$ac_ext
21435 LIBS=$ac_check_lib_save_LIBS
21436 fi
21437 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
21438 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
21439 if test $ac_cv_lib_svld_dlopen = yes; then
21440   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
21441 else
21442   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
21443 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
21444 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
21445   echo $ECHO_N "(cached) $ECHO_C" >&6
21446 else
21447   ac_check_lib_save_LIBS=$LIBS
21448 LIBS="-ldld  $LIBS"
21449 cat >conftest.$ac_ext <<_ACEOF
21450 /* confdefs.h.  */
21451 _ACEOF
21452 cat confdefs.h >>conftest.$ac_ext
21453 cat >>conftest.$ac_ext <<_ACEOF
21454 /* end confdefs.h.  */
21455
21456 /* Override any gcc2 internal prototype to avoid an error.  */
21457 #ifdef __cplusplus
21458 extern "C"
21459 #endif
21460 /* We use char because int might match the return type of a gcc2
21461    builtin and then its argument prototype would still apply.  */
21462 char dld_link ();
21463 int
21464 main ()
21465 {
21466 dld_link ();
21467   ;
21468   return 0;
21469 }
21470 _ACEOF
21471 rm -f conftest.$ac_objext conftest$ac_exeext
21472 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21473   (eval $ac_link) 2>conftest.er1
21474   ac_status=$?
21475   grep -v '^ *+' conftest.er1 >conftest.err
21476   rm -f conftest.er1
21477   cat conftest.err >&5
21478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21479   (exit $ac_status); } &&
21480          { ac_try='test -z "$ac_cxx_werror_flag"
21481                          || test ! -s conftest.err'
21482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21483   (eval $ac_try) 2>&5
21484   ac_status=$?
21485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21486   (exit $ac_status); }; } &&
21487          { ac_try='test -s conftest$ac_exeext'
21488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21489   (eval $ac_try) 2>&5
21490   ac_status=$?
21491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21492   (exit $ac_status); }; }; then
21493   ac_cv_lib_dld_dld_link=yes
21494 else
21495   echo "$as_me: failed program was:" >&5
21496 sed 's/^/| /' conftest.$ac_ext >&5
21497
21498 ac_cv_lib_dld_dld_link=no
21499 fi
21500 rm -f conftest.err conftest.$ac_objext \
21501       conftest$ac_exeext conftest.$ac_ext
21502 LIBS=$ac_check_lib_save_LIBS
21503 fi
21504 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
21505 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
21506 if test $ac_cv_lib_dld_dld_link = yes; then
21507   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
21508 fi
21509
21510
21511 fi
21512
21513
21514 fi
21515
21516
21517 fi
21518
21519
21520 fi
21521
21522
21523 fi
21524
21525     ;;
21526   esac
21527
21528   if test "x$lt_cv_dlopen" != xno; then
21529     enable_dlopen=yes
21530   else
21531     enable_dlopen=no
21532   fi
21533
21534   case $lt_cv_dlopen in
21535   dlopen)
21536     save_CPPFLAGS="$CPPFLAGS"
21537     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
21538
21539     save_LDFLAGS="$LDFLAGS"
21540     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
21541
21542     save_LIBS="$LIBS"
21543     LIBS="$lt_cv_dlopen_libs $LIBS"
21544
21545     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
21546 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
21547 if test "${lt_cv_dlopen_self+set}" = set; then
21548   echo $ECHO_N "(cached) $ECHO_C" >&6
21549 else
21550           if test "$cross_compiling" = yes; then :
21551   lt_cv_dlopen_self=cross
21552 else
21553   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
21554   lt_status=$lt_dlunknown
21555   cat > conftest.$ac_ext <<EOF
21556 #line 21556 "configure"
21557 #include "confdefs.h"
21558
21559 #if HAVE_DLFCN_H
21560 #include <dlfcn.h>
21561 #endif
21562
21563 #include <stdio.h>
21564
21565 #ifdef RTLD_GLOBAL
21566 #  define LT_DLGLOBAL           RTLD_GLOBAL
21567 #else
21568 #  ifdef DL_GLOBAL
21569 #    define LT_DLGLOBAL         DL_GLOBAL
21570 #  else
21571 #    define LT_DLGLOBAL         0
21572 #  endif
21573 #endif
21574
21575 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
21576    find out it does not work in some platform. */
21577 #ifndef LT_DLLAZY_OR_NOW
21578 #  ifdef RTLD_LAZY
21579 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
21580 #  else
21581 #    ifdef DL_LAZY
21582 #      define LT_DLLAZY_OR_NOW          DL_LAZY
21583 #    else
21584 #      ifdef RTLD_NOW
21585 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
21586 #      else
21587 #        ifdef DL_NOW
21588 #          define LT_DLLAZY_OR_NOW      DL_NOW
21589 #        else
21590 #          define LT_DLLAZY_OR_NOW      0
21591 #        endif
21592 #      endif
21593 #    endif
21594 #  endif
21595 #endif
21596
21597 #ifdef __cplusplus
21598 extern "C" void exit (int);
21599 #endif
21600
21601 void fnord() { int i=42;}
21602 int main ()
21603 {
21604   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
21605   int status = $lt_dlunknown;
21606
21607   if (self)
21608     {
21609       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
21610       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
21611       /* dlclose (self); */
21612     }
21613
21614     exit (status);
21615 }
21616 EOF
21617   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21618   (eval $ac_link) 2>&5
21619   ac_status=$?
21620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21621   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
21622     (./conftest; exit; ) >&5 2>/dev/null
21623     lt_status=$?
21624     case x$lt_status in
21625       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
21626       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
21627       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
21628     esac
21629   else :
21630     # compilation failed
21631     lt_cv_dlopen_self=no
21632   fi
21633 fi
21634 rm -fr conftest*
21635
21636
21637 fi
21638 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
21639 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
21640
21641     if test "x$lt_cv_dlopen_self" = xyes; then
21642       LDFLAGS="$LDFLAGS $link_static_flag"
21643       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
21644 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
21645 if test "${lt_cv_dlopen_self_static+set}" = set; then
21646   echo $ECHO_N "(cached) $ECHO_C" >&6
21647 else
21648           if test "$cross_compiling" = yes; then :
21649   lt_cv_dlopen_self_static=cross
21650 else
21651   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
21652   lt_status=$lt_dlunknown
21653   cat > conftest.$ac_ext <<EOF
21654 #line 21654 "configure"
21655 #include "confdefs.h"
21656
21657 #if HAVE_DLFCN_H
21658 #include <dlfcn.h>
21659 #endif
21660
21661 #include <stdio.h>
21662
21663 #ifdef RTLD_GLOBAL
21664 #  define LT_DLGLOBAL           RTLD_GLOBAL
21665 #else
21666 #  ifdef DL_GLOBAL
21667 #    define LT_DLGLOBAL         DL_GLOBAL
21668 #  else
21669 #    define LT_DLGLOBAL         0
21670 #  endif
21671 #endif
21672
21673 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
21674    find out it does not work in some platform. */
21675 #ifndef LT_DLLAZY_OR_NOW
21676 #  ifdef RTLD_LAZY
21677 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
21678 #  else
21679 #    ifdef DL_LAZY
21680 #      define LT_DLLAZY_OR_NOW          DL_LAZY
21681 #    else
21682 #      ifdef RTLD_NOW
21683 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
21684 #      else
21685 #        ifdef DL_NOW
21686 #          define LT_DLLAZY_OR_NOW      DL_NOW
21687 #        else
21688 #          define LT_DLLAZY_OR_NOW      0
21689 #        endif
21690 #      endif
21691 #    endif
21692 #  endif
21693 #endif
21694
21695 #ifdef __cplusplus
21696 extern "C" void exit (int);
21697 #endif
21698
21699 void fnord() { int i=42;}
21700 int main ()
21701 {
21702   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
21703   int status = $lt_dlunknown;
21704
21705   if (self)
21706     {
21707       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
21708       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
21709       /* dlclose (self); */
21710     }
21711
21712     exit (status);
21713 }
21714 EOF
21715   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21716   (eval $ac_link) 2>&5
21717   ac_status=$?
21718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21719   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
21720     (./conftest; exit; ) >&5 2>/dev/null
21721     lt_status=$?
21722     case x$lt_status in
21723       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
21724       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
21725       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
21726     esac
21727   else :
21728     # compilation failed
21729     lt_cv_dlopen_self_static=no
21730   fi
21731 fi
21732 rm -fr conftest*
21733
21734
21735 fi
21736 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
21737 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
21738     fi
21739
21740     CPPFLAGS="$save_CPPFLAGS"
21741     LDFLAGS="$save_LDFLAGS"
21742     LIBS="$save_LIBS"
21743     ;;
21744   esac
21745
21746   case $lt_cv_dlopen_self in
21747   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
21748   *) enable_dlopen_self=unknown ;;
21749   esac
21750
21751   case $lt_cv_dlopen_self_static in
21752   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
21753   *) enable_dlopen_self_static=unknown ;;
21754   esac
21755 fi
21756
21757
21758 # The else clause should only fire when bootstrapping the
21759 # libtool distribution, otherwise you forgot to ship ltmain.sh
21760 # with your package, and you will get complaints that there are
21761 # no rules to generate ltmain.sh.
21762 if test -f "$ltmain"; then
21763   # See if we are running on zsh, and set the options which allow our commands through
21764   # without removal of \ escapes.
21765   if test -n "${ZSH_VERSION+set}" ; then
21766     setopt NO_GLOB_SUBST
21767   fi
21768   # Now quote all the things that may contain metacharacters while being
21769   # careful not to overquote the AC_SUBSTed values.  We take copies of the
21770   # variables and quote the copies for generation of the libtool script.
21771   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
21772     SED SHELL STRIP \
21773     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
21774     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
21775     deplibs_check_method reload_flag reload_cmds need_locks \
21776     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
21777     lt_cv_sys_global_symbol_to_c_name_address \
21778     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
21779     old_postinstall_cmds old_postuninstall_cmds \
21780     compiler_CXX \
21781     CC_CXX \
21782     LD_CXX \
21783     lt_prog_compiler_wl_CXX \
21784     lt_prog_compiler_pic_CXX \
21785     lt_prog_compiler_static_CXX \
21786     lt_prog_compiler_no_builtin_flag_CXX \
21787     export_dynamic_flag_spec_CXX \
21788     thread_safe_flag_spec_CXX \
21789     whole_archive_flag_spec_CXX \
21790     enable_shared_with_static_runtimes_CXX \
21791     old_archive_cmds_CXX \
21792     old_archive_from_new_cmds_CXX \
21793     predep_objects_CXX \
21794     postdep_objects_CXX \
21795     predeps_CXX \
21796     postdeps_CXX \
21797     compiler_lib_search_path_CXX \
21798     archive_cmds_CXX \
21799     archive_expsym_cmds_CXX \
21800     postinstall_cmds_CXX \
21801     postuninstall_cmds_CXX \
21802     old_archive_from_expsyms_cmds_CXX \
21803     allow_undefined_flag_CXX \
21804     no_undefined_flag_CXX \
21805     export_symbols_cmds_CXX \
21806     hardcode_libdir_flag_spec_CXX \
21807     hardcode_libdir_flag_spec_ld_CXX \
21808     hardcode_libdir_separator_CXX \
21809     hardcode_automatic_CXX \
21810     module_cmds_CXX \
21811     module_expsym_cmds_CXX \
21812     lt_cv_prog_compiler_c_o_CXX \
21813     exclude_expsyms_CXX \
21814     include_expsyms_CXX; do
21815
21816     case $var in
21817     old_archive_cmds_CXX | \
21818     old_archive_from_new_cmds_CXX | \
21819     archive_cmds_CXX | \
21820     archive_expsym_cmds_CXX | \
21821     module_cmds_CXX | \
21822     module_expsym_cmds_CXX | \
21823     old_archive_from_expsyms_cmds_CXX | \
21824     export_symbols_cmds_CXX | \
21825     extract_expsyms_cmds | reload_cmds | finish_cmds | \
21826     postinstall_cmds | postuninstall_cmds | \
21827     old_postinstall_cmds | old_postuninstall_cmds | \
21828     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21829       # Double-quote double-evaled strings.
21830       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
21831       ;;
21832     *)
21833       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21834       ;;
21835     esac
21836   done
21837
21838   case $lt_echo in
21839   *'\$0 --fallback-echo"')
21840     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21841     ;;
21842   esac
21843
21844 cfgfile="$ofile"
21845
21846   cat <<__EOF__ >> "$cfgfile"
21847 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
21848
21849 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21850
21851 # Shell to use when invoking shell scripts.
21852 SHELL=$lt_SHELL
21853
21854 # Whether or not to build shared libraries.
21855 build_libtool_libs=$enable_shared
21856
21857 # Whether or not to build static libraries.
21858 build_old_libs=$enable_static
21859
21860 # Whether or not to add -lc for building shared libraries.
21861 build_libtool_need_lc=$archive_cmds_need_lc_CXX
21862
21863 # Whether or not to disallow shared libs when runtime libs are static
21864 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
21865
21866 # Whether or not to optimize for fast installation.
21867 fast_install=$enable_fast_install
21868
21869 # The host system.
21870 host_alias=$host_alias
21871 host=$host
21872 host_os=$host_os
21873
21874 # The build system.
21875 build_alias=$build_alias
21876 build=$build
21877 build_os=$build_os
21878
21879 # An echo program that does not interpret backslashes.
21880 echo=$lt_echo
21881
21882 # The archiver.
21883 AR=$lt_AR
21884 AR_FLAGS=$lt_AR_FLAGS
21885
21886 # A C compiler.
21887 LTCC=$lt_LTCC
21888
21889 # A language-specific compiler.
21890 CC=$lt_compiler_CXX
21891
21892 # Is the compiler the GNU C compiler?
21893 with_gcc=$GCC_CXX
21894
21895 # An ERE matcher.
21896 EGREP=$lt_EGREP
21897
21898 # The linker used to build libraries.
21899 LD=$lt_LD_CXX
21900
21901 # Whether we need hard or soft links.
21902 LN_S=$lt_LN_S
21903
21904 # A BSD-compatible nm program.
21905 NM=$lt_NM
21906
21907 # A symbol stripping program
21908 STRIP=$lt_STRIP
21909
21910 # Used to examine libraries when file_magic_cmd begins "file"
21911 MAGIC_CMD=$MAGIC_CMD
21912
21913 # Used on cygwin: DLL creation program.
21914 DLLTOOL="$DLLTOOL"
21915
21916 # Used on cygwin: object dumper.
21917 OBJDUMP="$OBJDUMP"
21918
21919 # Used on cygwin: assembler.
21920 AS="$AS"
21921
21922 # The name of the directory that contains temporary libtool files.
21923 objdir=$objdir
21924
21925 # How to create reloadable object files.
21926 reload_flag=$lt_reload_flag
21927 reload_cmds=$lt_reload_cmds
21928
21929 # How to pass a linker flag through the compiler.
21930 wl=$lt_lt_prog_compiler_wl_CXX
21931
21932 # Object file suffix (normally "o").
21933 objext="$ac_objext"
21934
21935 # Old archive suffix (normally "a").
21936 libext="$libext"
21937
21938 # Shared library suffix (normally ".so").
21939 shrext_cmds='$shrext_cmds'
21940
21941 # Executable file suffix (normally "").
21942 exeext="$exeext"
21943
21944 # Additional compiler flags for building library objects.
21945 pic_flag=$lt_lt_prog_compiler_pic_CXX
21946 pic_mode=$pic_mode
21947
21948 # What is the maximum length of a command?
21949 max_cmd_len=$lt_cv_sys_max_cmd_len
21950
21951 # Does compiler simultaneously support -c and -o options?
21952 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21953
21954 # Must we lock files when doing compilation?
21955 need_locks=$lt_need_locks
21956
21957 # Do we need the lib prefix for modules?
21958 need_lib_prefix=$need_lib_prefix
21959
21960 # Do we need a version for libraries?
21961 need_version=$need_version
21962
21963 # Whether dlopen is supported.
21964 dlopen_support=$enable_dlopen
21965
21966 # Whether dlopen of programs is supported.
21967 dlopen_self=$enable_dlopen_self
21968
21969 # Whether dlopen of statically linked programs is supported.
21970 dlopen_self_static=$enable_dlopen_self_static
21971
21972 # Compiler flag to prevent dynamic linking.
21973 link_static_flag=$lt_lt_prog_compiler_static_CXX
21974
21975 # Compiler flag to turn off builtin functions.
21976 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21977
21978 # Compiler flag to allow reflexive dlopens.
21979 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21980
21981 # Compiler flag to generate shared objects directly from archives.
21982 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21983
21984 # Compiler flag to generate thread-safe objects.
21985 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
21986
21987 # Library versioning type.
21988 version_type=$version_type
21989
21990 # Format of library name prefix.
21991 libname_spec=$lt_libname_spec
21992
21993 # List of archive names.  First name is the real one, the rest are links.
21994 # The last name is the one that the linker finds with -lNAME.
21995 library_names_spec=$lt_library_names_spec
21996
21997 # The coded name of the library, if different from the real name.
21998 soname_spec=$lt_soname_spec
21999
22000 # Commands used to build and install an old-style archive.
22001 RANLIB=$lt_RANLIB
22002 old_archive_cmds=$lt_old_archive_cmds_CXX
22003 old_postinstall_cmds=$lt_old_postinstall_cmds
22004 old_postuninstall_cmds=$lt_old_postuninstall_cmds
22005
22006 # Create an old-style archive from a shared archive.
22007 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
22008
22009 # Create a temporary old-style archive to link instead of a shared archive.
22010 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
22011
22012 # Commands used to build and install a shared archive.
22013 archive_cmds=$lt_archive_cmds_CXX
22014 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
22015 postinstall_cmds=$lt_postinstall_cmds
22016 postuninstall_cmds=$lt_postuninstall_cmds
22017
22018 # Commands used to build a loadable module (assumed same as above if empty)
22019 module_cmds=$lt_module_cmds_CXX
22020 module_expsym_cmds=$lt_module_expsym_cmds_CXX
22021
22022 # Commands to strip libraries.
22023 old_striplib=$lt_old_striplib
22024 striplib=$lt_striplib
22025
22026 # Dependencies to place before the objects being linked to create a
22027 # shared library.
22028 predep_objects=$lt_predep_objects_CXX
22029
22030 # Dependencies to place after the objects being linked to create a
22031 # shared library.
22032 postdep_objects=$lt_postdep_objects_CXX
22033
22034 # Dependencies to place before the objects being linked to create a
22035 # shared library.
22036 predeps=$lt_predeps_CXX
22037
22038 # Dependencies to place after the objects being linked to create a
22039 # shared library.
22040 postdeps=$lt_postdeps_CXX
22041
22042 # The library search path used internally by the compiler when linking
22043 # a shared library.
22044 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
22045
22046 # Method to check whether dependent libraries are shared objects.
22047 deplibs_check_method=$lt_deplibs_check_method
22048
22049 # Command to use when deplibs_check_method == file_magic.
22050 file_magic_cmd=$lt_file_magic_cmd
22051
22052 # Flag that allows shared libraries with undefined symbols to be built.
22053 allow_undefined_flag=$lt_allow_undefined_flag_CXX
22054
22055 # Flag that forces no undefined symbols.
22056 no_undefined_flag=$lt_no_undefined_flag_CXX
22057
22058 # Commands used to finish a libtool library installation in a directory.
22059 finish_cmds=$lt_finish_cmds
22060
22061 # Same as above, but a single script fragment to be evaled but not shown.
22062 finish_eval=$lt_finish_eval
22063
22064 # Take the output of nm and produce a listing of raw symbols and C names.
22065 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22066
22067 # Transform the output of nm in a proper C declaration
22068 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22069
22070 # Transform the output of nm in a C name address pair
22071 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22072
22073 # This is the shared library runtime path variable.
22074 runpath_var=$runpath_var
22075
22076 # This is the shared library path variable.
22077 shlibpath_var=$shlibpath_var
22078
22079 # Is shlibpath searched before the hard-coded library search path?
22080 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22081
22082 # How to hardcode a shared library path into an executable.
22083 hardcode_action=$hardcode_action_CXX
22084
22085 # Whether we should hardcode library paths into libraries.
22086 hardcode_into_libs=$hardcode_into_libs
22087
22088 # Flag to hardcode \$libdir into a binary during linking.
22089 # This must work even if \$libdir does not exist.
22090 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
22091
22092 # If ld is used when linking, flag to hardcode \$libdir into
22093 # a binary during linking. This must work even if \$libdir does
22094 # not exist.
22095 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
22096
22097 # Whether we need a single -rpath flag with a separated argument.
22098 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
22099
22100 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
22101 # resulting binary.
22102 hardcode_direct=$hardcode_direct_CXX
22103
22104 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
22105 # resulting binary.
22106 hardcode_minus_L=$hardcode_minus_L_CXX
22107
22108 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
22109 # the resulting binary.
22110 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
22111
22112 # Set to yes if building a shared library automatically hardcodes DIR into the library
22113 # and all subsequent libraries and executables linked against it.
22114 hardcode_automatic=$hardcode_automatic_CXX
22115
22116 # Variables whose values should be saved in libtool wrapper scripts and
22117 # restored at relink time.
22118 variables_saved_for_relink="$variables_saved_for_relink"
22119
22120 # Whether libtool must link a program against all its dependency libraries.
22121 link_all_deplibs=$link_all_deplibs_CXX
22122
22123 # Compile-time system search path for libraries
22124 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22125
22126 # Run-time system search path for libraries
22127 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22128
22129 # Fix the shell variable \$srcfile for the compiler.
22130 fix_srcfile_path="$fix_srcfile_path_CXX"
22131
22132 # Set to yes if exported symbols are required.
22133 always_export_symbols=$always_export_symbols_CXX
22134
22135 # The commands to list exported symbols.
22136 export_symbols_cmds=$lt_export_symbols_cmds_CXX
22137
22138 # The commands to extract the exported symbol list from a shared archive.
22139 extract_expsyms_cmds=$lt_extract_expsyms_cmds
22140
22141 # Symbols that should not be listed in the preloaded symbols.
22142 exclude_expsyms=$lt_exclude_expsyms_CXX
22143
22144 # Symbols that must always be exported.
22145 include_expsyms=$lt_include_expsyms_CXX
22146
22147 # ### END LIBTOOL TAG CONFIG: $tagname
22148
22149 __EOF__
22150
22151
22152 else
22153   # If there is no Makefile yet, we rely on a make rule to execute
22154   # `config.status --recheck' to rerun these tests and create the
22155   # libtool script then.
22156   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
22157   if test -f "$ltmain_in"; then
22158     test -f Makefile && make "$ltmain"
22159   fi
22160 fi
22161
22162
22163 ac_ext=c
22164 ac_cpp='$CPP $CPPFLAGS'
22165 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22166 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22167 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22168
22169 CC=$lt_save_CC
22170 LDCXX=$LD
22171 LD=$lt_save_LD
22172 GCC=$lt_save_GCC
22173 with_gnu_ldcxx=$with_gnu_ld
22174 with_gnu_ld=$lt_save_with_gnu_ld
22175 lt_cv_path_LDCXX=$lt_cv_path_LD
22176 lt_cv_path_LD=$lt_save_path_LD
22177 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
22178 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
22179
22180         else
22181           tagname=""
22182         fi
22183         ;;
22184
22185       F77)
22186         if test -n "$F77" && test "X$F77" != "Xno"; then
22187
22188 ac_ext=f
22189 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
22190 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22191 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
22192
22193
22194 archive_cmds_need_lc_F77=no
22195 allow_undefined_flag_F77=
22196 always_export_symbols_F77=no
22197 archive_expsym_cmds_F77=
22198 export_dynamic_flag_spec_F77=
22199 hardcode_direct_F77=no
22200 hardcode_libdir_flag_spec_F77=
22201 hardcode_libdir_flag_spec_ld_F77=
22202 hardcode_libdir_separator_F77=
22203 hardcode_minus_L_F77=no
22204 hardcode_automatic_F77=no
22205 module_cmds_F77=
22206 module_expsym_cmds_F77=
22207 link_all_deplibs_F77=unknown
22208 old_archive_cmds_F77=$old_archive_cmds
22209 no_undefined_flag_F77=
22210 whole_archive_flag_spec_F77=
22211 enable_shared_with_static_runtimes_F77=no
22212
22213 # Source file extension for f77 test sources.
22214 ac_ext=f
22215
22216 # Object file extension for compiled f77 test sources.
22217 objext=o
22218 objext_F77=$objext
22219
22220 # Code to be used in simple compile tests
22221 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
22222
22223 # Code to be used in simple link tests
22224 lt_simple_link_test_code="      program t\n      end\n"
22225
22226 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
22227
22228 # If no C compiler was specified, use CC.
22229 LTCC=${LTCC-"$CC"}
22230
22231 # Allow CC to be a program name with arguments.
22232 compiler=$CC
22233
22234
22235 # save warnings/boilerplate of simple test code
22236 ac_outfile=conftest.$ac_objext
22237 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
22238 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
22239 _lt_compiler_boilerplate=`cat conftest.err`
22240 $rm conftest*
22241
22242 ac_outfile=conftest.$ac_objext
22243 printf "$lt_simple_link_test_code" >conftest.$ac_ext
22244 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
22245 _lt_linker_boilerplate=`cat conftest.err`
22246 $rm conftest*
22247
22248
22249 # Allow CC to be a program name with arguments.
22250 lt_save_CC="$CC"
22251 CC=${F77-"f77"}
22252 compiler=$CC
22253 compiler_F77=$CC
22254 for cc_temp in $compiler""; do
22255   case $cc_temp in
22256     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22257     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22258     \-*) ;;
22259     *) break;;
22260   esac
22261 done
22262 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
22263
22264
22265 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
22266 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
22267 echo "$as_me:$LINENO: result: $can_build_shared" >&5
22268 echo "${ECHO_T}$can_build_shared" >&6
22269
22270 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
22271 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
22272 test "$can_build_shared" = "no" && enable_shared=no
22273
22274 # On AIX, shared libraries and static libraries use the same namespace, and
22275 # are all built from PIC.
22276 case $host_os in
22277 aix3*)
22278   test "$enable_shared" = yes && enable_static=no
22279   if test -n "$RANLIB"; then
22280     archive_cmds="$archive_cmds~\$RANLIB \$lib"
22281     postinstall_cmds='$RANLIB $lib'
22282   fi
22283   ;;
22284 aix4* | aix5*)
22285   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
22286     test "$enable_shared" = yes && enable_static=no
22287   fi
22288   ;;
22289 esac
22290 echo "$as_me:$LINENO: result: $enable_shared" >&5
22291 echo "${ECHO_T}$enable_shared" >&6
22292
22293 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
22294 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
22295 # Make sure either enable_shared or enable_static is yes.
22296 test "$enable_shared" = yes || enable_static=yes
22297 echo "$as_me:$LINENO: result: $enable_static" >&5
22298 echo "${ECHO_T}$enable_static" >&6
22299
22300 test "$ld_shlibs_F77" = no && can_build_shared=no
22301
22302 GCC_F77="$G77"
22303 LD_F77="$LD"
22304
22305 lt_prog_compiler_wl_F77=
22306 lt_prog_compiler_pic_F77=
22307 lt_prog_compiler_static_F77=
22308
22309 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
22310 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
22311
22312   if test "$GCC" = yes; then
22313     lt_prog_compiler_wl_F77='-Wl,'
22314     lt_prog_compiler_static_F77='-static'
22315
22316     case $host_os in
22317       aix*)
22318       # All AIX code is PIC.
22319       if test "$host_cpu" = ia64; then
22320         # AIX 5 now supports IA64 processor
22321         lt_prog_compiler_static_F77='-Bstatic'
22322       fi
22323       ;;
22324
22325     amigaos*)
22326       # FIXME: we need at least 68020 code to build shared libraries, but
22327       # adding the `-m68020' flag to GCC prevents building anything better,
22328       # like `-m68040'.
22329       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
22330       ;;
22331
22332     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
22333       # PIC is the default for these OSes.
22334       ;;
22335
22336     mingw* | pw32* | os2*)
22337       # This hack is so that the source file can tell whether it is being
22338       # built for inclusion in a dll (and should export symbols for example).
22339       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
22340       ;;
22341
22342     darwin* | rhapsody*)
22343       # PIC is the default on this platform
22344       # Common symbols not allowed in MH_DYLIB files
22345       lt_prog_compiler_pic_F77='-fno-common'
22346       ;;
22347
22348     msdosdjgpp*)
22349       # Just because we use GCC doesn't mean we suddenly get shared libraries
22350       # on systems that don't support them.
22351       lt_prog_compiler_can_build_shared_F77=no
22352       enable_shared=no
22353       ;;
22354
22355     sysv4*MP*)
22356       if test -d /usr/nec; then
22357         lt_prog_compiler_pic_F77=-Kconform_pic
22358       fi
22359       ;;
22360
22361     hpux*)
22362       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
22363       # not for PA HP-UX.
22364       case $host_cpu in
22365       hppa*64*|ia64*)
22366         # +Z the default
22367         ;;
22368       *)
22369         lt_prog_compiler_pic_F77='-fPIC'
22370         ;;
22371       esac
22372       ;;
22373
22374     *)
22375       lt_prog_compiler_pic_F77='-fPIC'
22376       ;;
22377     esac
22378   else
22379     # PORTME Check for flag to pass linker flags through the system compiler.
22380     case $host_os in
22381     aix*)
22382       lt_prog_compiler_wl_F77='-Wl,'
22383       if test "$host_cpu" = ia64; then
22384         # AIX 5 now supports IA64 processor
22385         lt_prog_compiler_static_F77='-Bstatic'
22386       else
22387         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
22388       fi
22389       ;;
22390       darwin*)
22391         # PIC is the default on this platform
22392         # Common symbols not allowed in MH_DYLIB files
22393        case $cc_basename in
22394          xlc*)
22395          lt_prog_compiler_pic_F77='-qnocommon'
22396          lt_prog_compiler_wl_F77='-Wl,'
22397          ;;
22398        esac
22399        ;;
22400
22401     mingw* | pw32* | os2*)
22402       # This hack is so that the source file can tell whether it is being
22403       # built for inclusion in a dll (and should export symbols for example).
22404       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
22405       ;;
22406
22407     hpux9* | hpux10* | hpux11*)
22408       lt_prog_compiler_wl_F77='-Wl,'
22409       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
22410       # not for PA HP-UX.
22411       case $host_cpu in
22412       hppa*64*|ia64*)
22413         # +Z the default
22414         ;;
22415       *)
22416         lt_prog_compiler_pic_F77='+Z'
22417         ;;
22418       esac
22419       # Is there a better lt_prog_compiler_static that works with the bundled CC?
22420       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
22421       ;;
22422
22423     irix5* | irix6* | nonstopux*)
22424       lt_prog_compiler_wl_F77='-Wl,'
22425       # PIC (with -KPIC) is the default.
22426       lt_prog_compiler_static_F77='-non_shared'
22427       ;;
22428
22429     newsos6)
22430       lt_prog_compiler_pic_F77='-KPIC'
22431       lt_prog_compiler_static_F77='-Bstatic'
22432       ;;
22433
22434     linux*)
22435       case $cc_basename in
22436       icc* | ecc*)
22437         lt_prog_compiler_wl_F77='-Wl,'
22438         lt_prog_compiler_pic_F77='-KPIC'
22439         lt_prog_compiler_static_F77='-static'
22440         ;;
22441       pgcc* | pgf77* | pgf90* | pgf95*)
22442         # Portland Group compilers (*not* the Pentium gcc compiler,
22443         # which looks to be a dead project)
22444         lt_prog_compiler_wl_F77='-Wl,'
22445         lt_prog_compiler_pic_F77='-fpic'
22446         lt_prog_compiler_static_F77='-Bstatic'
22447         ;;
22448       ccc*)
22449         lt_prog_compiler_wl_F77='-Wl,'
22450         # All Alpha code is PIC.
22451         lt_prog_compiler_static_F77='-non_shared'
22452         ;;
22453       esac
22454       ;;
22455
22456     osf3* | osf4* | osf5*)
22457       lt_prog_compiler_wl_F77='-Wl,'
22458       # All OSF/1 code is PIC.
22459       lt_prog_compiler_static_F77='-non_shared'
22460       ;;
22461
22462     sco3.2v5*)
22463       lt_prog_compiler_pic_F77='-Kpic'
22464       lt_prog_compiler_static_F77='-dn'
22465       ;;
22466
22467     solaris*)
22468       lt_prog_compiler_pic_F77='-KPIC'
22469       lt_prog_compiler_static_F77='-Bstatic'
22470       case $cc_basename in
22471       f77* | f90* | f95*)
22472         lt_prog_compiler_wl_F77='-Qoption ld ';;
22473       *)
22474         lt_prog_compiler_wl_F77='-Wl,';;
22475       esac
22476       ;;
22477
22478     sunos4*)
22479       lt_prog_compiler_wl_F77='-Qoption ld '
22480       lt_prog_compiler_pic_F77='-PIC'
22481       lt_prog_compiler_static_F77='-Bstatic'
22482       ;;
22483
22484     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
22485       lt_prog_compiler_wl_F77='-Wl,'
22486       lt_prog_compiler_pic_F77='-KPIC'
22487       lt_prog_compiler_static_F77='-Bstatic'
22488       ;;
22489
22490     sysv4*MP*)
22491       if test -d /usr/nec ;then
22492         lt_prog_compiler_pic_F77='-Kconform_pic'
22493         lt_prog_compiler_static_F77='-Bstatic'
22494       fi
22495       ;;
22496
22497     unicos*)
22498       lt_prog_compiler_wl_F77='-Wl,'
22499       lt_prog_compiler_can_build_shared_F77=no
22500       ;;
22501
22502     uts4*)
22503       lt_prog_compiler_pic_F77='-pic'
22504       lt_prog_compiler_static_F77='-Bstatic'
22505       ;;
22506
22507     *)
22508       lt_prog_compiler_can_build_shared_F77=no
22509       ;;
22510     esac
22511   fi
22512
22513 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
22514 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
22515
22516 #
22517 # Check to make sure the PIC flag actually works.
22518 #
22519 if test -n "$lt_prog_compiler_pic_F77"; then
22520
22521 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
22522 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
22523 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
22524   echo $ECHO_N "(cached) $ECHO_C" >&6
22525 else
22526   lt_prog_compiler_pic_works_F77=no
22527   ac_outfile=conftest.$ac_objext
22528    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22529    lt_compiler_flag="$lt_prog_compiler_pic_F77"
22530    # Insert the option either (1) after the last *FLAGS variable, or
22531    # (2) before a word containing "conftest.", or (3) at the end.
22532    # Note that $ac_compile itself does not contain backslashes and begins
22533    # with a dollar sign (not a hyphen), so the echo should work correctly.
22534    # The option is referenced via a variable to avoid confusing sed.
22535    lt_compile=`echo "$ac_compile" | $SED \
22536    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22537    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22538    -e 's:$: $lt_compiler_flag:'`
22539    (eval echo "\"\$as_me:22539: $lt_compile\"" >&5)
22540    (eval "$lt_compile" 2>conftest.err)
22541    ac_status=$?
22542    cat conftest.err >&5
22543    echo "$as_me:22543: \$? = $ac_status" >&5
22544    if (exit $ac_status) && test -s "$ac_outfile"; then
22545      # The compiler can only warn and ignore the option if not recognized
22546      # So say no if there are warnings other than the usual output.
22547      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
22548      $SED '/^$/d' conftest.err >conftest.er2
22549      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
22550        lt_prog_compiler_pic_works_F77=yes
22551      fi
22552    fi
22553    $rm conftest*
22554
22555 fi
22556 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
22557 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
22558
22559 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
22560     case $lt_prog_compiler_pic_F77 in
22561      "" | " "*) ;;
22562      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
22563      esac
22564 else
22565     lt_prog_compiler_pic_F77=
22566      lt_prog_compiler_can_build_shared_F77=no
22567 fi
22568
22569 fi
22570 case $host_os in
22571   # For platforms which do not support PIC, -DPIC is meaningless:
22572   *djgpp*)
22573     lt_prog_compiler_pic_F77=
22574     ;;
22575   *)
22576     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
22577     ;;
22578 esac
22579
22580 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
22581 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
22582 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
22583   echo $ECHO_N "(cached) $ECHO_C" >&6
22584 else
22585   lt_cv_prog_compiler_c_o_F77=no
22586    $rm -r conftest 2>/dev/null
22587    mkdir conftest
22588    cd conftest
22589    mkdir out
22590    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22591
22592    lt_compiler_flag="-o out/conftest2.$ac_objext"
22593    # Insert the option either (1) after the last *FLAGS variable, or
22594    # (2) before a word containing "conftest.", or (3) at the end.
22595    # Note that $ac_compile itself does not contain backslashes and begins
22596    # with a dollar sign (not a hyphen), so the echo should work correctly.
22597    lt_compile=`echo "$ac_compile" | $SED \
22598    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22599    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22600    -e 's:$: $lt_compiler_flag:'`
22601    (eval echo "\"\$as_me:22601: $lt_compile\"" >&5)
22602    (eval "$lt_compile" 2>out/conftest.err)
22603    ac_status=$?
22604    cat out/conftest.err >&5
22605    echo "$as_me:22605: \$? = $ac_status" >&5
22606    if (exit $ac_status) && test -s out/conftest2.$ac_objext
22607    then
22608      # The compiler can only warn and ignore the option if not recognized
22609      # So say no if there are warnings
22610      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
22611      $SED '/^$/d' out/conftest.err >out/conftest.er2
22612      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
22613        lt_cv_prog_compiler_c_o_F77=yes
22614      fi
22615    fi
22616    chmod u+w . 2>&5
22617    $rm conftest*
22618    # SGI C++ compiler will create directory out/ii_files/ for
22619    # template instantiation
22620    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
22621    $rm out/* && rmdir out
22622    cd ..
22623    rmdir conftest
22624    $rm conftest*
22625
22626 fi
22627 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
22628 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
22629
22630
22631 hard_links="nottested"
22632 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
22633   # do not overwrite the value of need_locks provided by the user
22634   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
22635 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
22636   hard_links=yes
22637   $rm conftest*
22638   ln conftest.a conftest.b 2>/dev/null && hard_links=no
22639   touch conftest.a
22640   ln conftest.a conftest.b 2>&5 || hard_links=no
22641   ln conftest.a conftest.b 2>/dev/null && hard_links=no
22642   echo "$as_me:$LINENO: result: $hard_links" >&5
22643 echo "${ECHO_T}$hard_links" >&6
22644   if test "$hard_links" = no; then
22645     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
22646 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
22647     need_locks=warn
22648   fi
22649 else
22650   need_locks=no
22651 fi
22652
22653 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
22654 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
22655
22656   runpath_var=
22657   allow_undefined_flag_F77=
22658   enable_shared_with_static_runtimes_F77=no
22659   archive_cmds_F77=
22660   archive_expsym_cmds_F77=
22661   old_archive_From_new_cmds_F77=
22662   old_archive_from_expsyms_cmds_F77=
22663   export_dynamic_flag_spec_F77=
22664   whole_archive_flag_spec_F77=
22665   thread_safe_flag_spec_F77=
22666   hardcode_libdir_flag_spec_F77=
22667   hardcode_libdir_flag_spec_ld_F77=
22668   hardcode_libdir_separator_F77=
22669   hardcode_direct_F77=no
22670   hardcode_minus_L_F77=no
22671   hardcode_shlibpath_var_F77=unsupported
22672   link_all_deplibs_F77=unknown
22673   hardcode_automatic_F77=no
22674   module_cmds_F77=
22675   module_expsym_cmds_F77=
22676   always_export_symbols_F77=no
22677   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
22678   # include_expsyms should be a list of space-separated symbols to be *always*
22679   # included in the symbol list
22680   include_expsyms_F77=
22681   # exclude_expsyms can be an extended regexp of symbols to exclude
22682   # it will be wrapped by ` (' and `)$', so one must not match beginning or
22683   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
22684   # as well as any symbol that contains `d'.
22685   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
22686   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
22687   # platforms (ab)use it in PIC code, but their linkers get confused if
22688   # the symbol is explicitly referenced.  Since portable code cannot
22689   # rely on this symbol name, it's probably fine to never include it in
22690   # preloaded symbol tables.
22691   extract_expsyms_cmds=
22692   # Just being paranoid about ensuring that cc_basename is set.
22693   for cc_temp in $compiler""; do
22694   case $cc_temp in
22695     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22696     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22697     \-*) ;;
22698     *) break;;
22699   esac
22700 done
22701 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
22702
22703   case $host_os in
22704   cygwin* | mingw* | pw32*)
22705     # FIXME: the MSVC++ port hasn't been tested in a loooong time
22706     # When not using gcc, we currently assume that we are using
22707     # Microsoft Visual C++.
22708     if test "$GCC" != yes; then
22709       with_gnu_ld=no
22710     fi
22711     ;;
22712   openbsd*)
22713     with_gnu_ld=no
22714     ;;
22715   esac
22716
22717   ld_shlibs_F77=yes
22718   if test "$with_gnu_ld" = yes; then
22719     # If archive_cmds runs LD, not CC, wlarc should be empty
22720     wlarc='${wl}'
22721
22722     # Set some defaults for GNU ld with shared library support. These
22723     # are reset later if shared libraries are not supported. Putting them
22724     # here allows them to be overridden if necessary.
22725     runpath_var=LD_RUN_PATH
22726     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
22727     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
22728     # ancient GNU ld didn't support --whole-archive et. al.
22729     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
22730         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
22731       else
22732         whole_archive_flag_spec_F77=
22733     fi
22734     supports_anon_versioning=no
22735     case `$LD -v 2>/dev/null` in
22736       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
22737       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
22738       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
22739       *\ 2.11.*) ;; # other 2.11 versions
22740       *) supports_anon_versioning=yes ;;
22741     esac
22742
22743     # See if GNU ld supports shared libraries.
22744     case $host_os in
22745     aix3* | aix4* | aix5*)
22746       # On AIX/PPC, the GNU linker is very broken
22747       if test "$host_cpu" != ia64; then
22748         ld_shlibs_F77=no
22749         cat <<EOF 1>&2
22750
22751 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
22752 *** to be unable to reliably create shared libraries on AIX.
22753 *** Therefore, libtool is disabling shared libraries support.  If you
22754 *** really care for shared libraries, you may want to modify your PATH
22755 *** so that a non-GNU linker is found, and then restart.
22756
22757 EOF
22758       fi
22759       ;;
22760
22761     amigaos*)
22762       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)'
22763       hardcode_libdir_flag_spec_F77='-L$libdir'
22764       hardcode_minus_L_F77=yes
22765
22766       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
22767       # that the semantics of dynamic libraries on AmigaOS, at least up
22768       # to version 4, is to share data among multiple programs linked
22769       # with the same dynamic library.  Since this doesn't match the
22770       # behavior of shared libraries on other platforms, we can't use
22771       # them.
22772       ld_shlibs_F77=no
22773       ;;
22774
22775     beos*)
22776       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22777         allow_undefined_flag_F77=unsupported
22778         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
22779         # support --undefined.  This deserves some investigation.  FIXME
22780         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22781       else
22782         ld_shlibs_F77=no
22783       fi
22784       ;;
22785
22786     cygwin* | mingw* | pw32*)
22787       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
22788       # as there is no search path for DLLs.
22789       hardcode_libdir_flag_spec_F77='-L$libdir'
22790       allow_undefined_flag_F77=unsupported
22791       always_export_symbols_F77=no
22792       enable_shared_with_static_runtimes_F77=yes
22793       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
22794
22795       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
22796         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
22797         # If the export-symbols file already is a .def file (1st line
22798         # is EXPORTS), use it as is; otherwise, prepend...
22799         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
22800           cp $export_symbols $output_objdir/$soname.def;
22801         else
22802           echo EXPORTS > $output_objdir/$soname.def;
22803           cat $export_symbols >> $output_objdir/$soname.def;
22804         fi~
22805         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
22806       else
22807         ld_shlibs_F77=no
22808       fi
22809       ;;
22810
22811     linux*)
22812       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22813         tmp_addflag=
22814         case $cc_basename,$host_cpu in
22815         pgcc*)                          # Portland Group C compiler
22816           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'
22817           tmp_addflag=' $pic_flag'
22818           ;;
22819         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
22820           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'
22821           tmp_addflag=' $pic_flag -Mnomain' ;;
22822         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
22823           tmp_addflag=' -i_dynamic' ;;
22824         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
22825           tmp_addflag=' -i_dynamic -nofor_main' ;;
22826         ifc* | ifort*)                  # Intel Fortran compiler
22827           tmp_addflag=' -nofor_main' ;;
22828         esac
22829         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22830
22831         if test $supports_anon_versioning = yes; then
22832           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
22833   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
22834   $echo "local: *; };" >> $output_objdir/$libname.ver~
22835           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
22836         fi
22837       else
22838         ld_shlibs_F77=no
22839       fi
22840       ;;
22841
22842     netbsd*)
22843       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22844         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
22845         wlarc=
22846       else
22847         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22848         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22849       fi
22850       ;;
22851
22852     solaris* | sysv5*)
22853       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
22854         ld_shlibs_F77=no
22855         cat <<EOF 1>&2
22856
22857 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
22858 *** create shared libraries on Solaris systems.  Therefore, libtool
22859 *** is disabling shared libraries support.  We urge you to upgrade GNU
22860 *** binutils to release 2.9.1 or newer.  Another option is to modify
22861 *** your PATH or compiler configuration so that the native linker is
22862 *** used, and then restart.
22863
22864 EOF
22865       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22866         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22867         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22868       else
22869         ld_shlibs_F77=no
22870       fi
22871       ;;
22872
22873     sunos4*)
22874       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22875       wlarc=
22876       hardcode_direct_F77=yes
22877       hardcode_shlibpath_var_F77=no
22878       ;;
22879
22880     *)
22881       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22882         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22883         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22884       else
22885         ld_shlibs_F77=no
22886       fi
22887       ;;
22888     esac
22889
22890     if test "$ld_shlibs_F77" = no; then
22891       runpath_var=
22892       hardcode_libdir_flag_spec_F77=
22893       export_dynamic_flag_spec_F77=
22894       whole_archive_flag_spec_F77=
22895     fi
22896   else
22897     # PORTME fill in a description of your system's linker (not GNU ld)
22898     case $host_os in
22899     aix3*)
22900       allow_undefined_flag_F77=unsupported
22901       always_export_symbols_F77=yes
22902       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'
22903       # Note: this linker hardcodes the directories in LIBPATH if there
22904       # are no directories specified by -L.
22905       hardcode_minus_L_F77=yes
22906       if test "$GCC" = yes && test -z "$link_static_flag"; then
22907         # Neither direct hardcoding nor static linking is supported with a
22908         # broken collect2.
22909         hardcode_direct_F77=unsupported
22910       fi
22911       ;;
22912
22913     aix4* | aix5*)
22914       if test "$host_cpu" = ia64; then
22915         # On IA64, the linker does run time linking by default, so we don't
22916         # have to do anything special.
22917         aix_use_runtimelinking=no
22918         exp_sym_flag='-Bexport'
22919         no_entry_flag=""
22920       else
22921         # If we're using GNU nm, then we don't want the "-C" option.
22922         # -C means demangle to AIX nm, but means don't demangle with GNU nm
22923         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
22924           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'
22925         else
22926           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'
22927         fi
22928         aix_use_runtimelinking=no
22929
22930         # Test if we are trying to use run time linking or normal
22931         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
22932         # need to do runtime linking.
22933         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
22934           for ld_flag in $LDFLAGS; do
22935           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
22936             aix_use_runtimelinking=yes
22937             break
22938           fi
22939           done
22940         esac
22941
22942         exp_sym_flag='-bexport'
22943         no_entry_flag='-bnoentry'
22944       fi
22945
22946       # When large executables or shared objects are built, AIX ld can
22947       # have problems creating the table of contents.  If linking a library
22948       # or program results in "error TOC overflow" add -mminimal-toc to
22949       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
22950       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
22951
22952       archive_cmds_F77=''
22953       hardcode_direct_F77=yes
22954       hardcode_libdir_separator_F77=':'
22955       link_all_deplibs_F77=yes
22956
22957       if test "$GCC" = yes; then
22958         case $host_os in aix4.[012]|aix4.[012].*)
22959         # We only want to do this on AIX 4.2 and lower, the check
22960         # below for broken collect2 doesn't work under 4.3+
22961           collect2name=`${CC} -print-prog-name=collect2`
22962           if test -f "$collect2name" && \
22963            strings "$collect2name" | grep resolve_lib_name >/dev/null
22964           then
22965           # We have reworked collect2
22966           hardcode_direct_F77=yes
22967           else
22968           # We have old collect2
22969           hardcode_direct_F77=unsupported
22970           # It fails to find uninstalled libraries when the uninstalled
22971           # path is not listed in the libpath.  Setting hardcode_minus_L
22972           # to unsupported forces relinking
22973           hardcode_minus_L_F77=yes
22974           hardcode_libdir_flag_spec_F77='-L$libdir'
22975           hardcode_libdir_separator_F77=
22976           fi
22977         esac
22978         shared_flag='-shared'
22979         if test "$aix_use_runtimelinking" = yes; then
22980           shared_flag="$shared_flag "'${wl}-G'
22981         fi
22982       else
22983         # not using gcc
22984         if test "$host_cpu" = ia64; then
22985         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
22986         # chokes on -Wl,-G. The following line is correct:
22987           shared_flag='-G'
22988         else
22989         if test "$aix_use_runtimelinking" = yes; then
22990             shared_flag='${wl}-G'
22991           else
22992             shared_flag='${wl}-bM:SRE'
22993         fi
22994         fi
22995       fi
22996
22997       # It seems that -bexpall does not export symbols beginning with
22998       # underscore (_), so it is better to generate a list of symbols to export.
22999       always_export_symbols_F77=yes
23000       if test "$aix_use_runtimelinking" = yes; then
23001         # Warning - without using the other runtime loading flags (-brtl),
23002         # -berok will link without error, but may produce a broken library.
23003         allow_undefined_flag_F77='-berok'
23004        # Determine the default libpath from the value encoded in an empty executable.
23005        cat >conftest.$ac_ext <<_ACEOF
23006       program main
23007
23008       end
23009 _ACEOF
23010 rm -f conftest.$ac_objext conftest$ac_exeext
23011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23012   (eval $ac_link) 2>conftest.er1
23013   ac_status=$?
23014   grep -v '^ *+' conftest.er1 >conftest.err
23015   rm -f conftest.er1
23016   cat conftest.err >&5
23017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23018   (exit $ac_status); } &&
23019          { ac_try='test -z "$ac_f77_werror_flag"
23020                          || test ! -s conftest.err'
23021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23022   (eval $ac_try) 2>&5
23023   ac_status=$?
23024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23025   (exit $ac_status); }; } &&
23026          { ac_try='test -s conftest$ac_exeext'
23027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23028   (eval $ac_try) 2>&5
23029   ac_status=$?
23030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23031   (exit $ac_status); }; }; then
23032
23033 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
23034 }'`
23035 # Check for a 64-bit object if we didn't find anything.
23036 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; }
23037 }'`; fi
23038 else
23039   echo "$as_me: failed program was:" >&5
23040 sed 's/^/| /' conftest.$ac_ext >&5
23041
23042 fi
23043 rm -f conftest.err conftest.$ac_objext \
23044       conftest$ac_exeext conftest.$ac_ext
23045 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
23046
23047        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
23048         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"
23049        else
23050         if test "$host_cpu" = ia64; then
23051           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
23052           allow_undefined_flag_F77="-z nodefs"
23053           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"
23054         else
23055          # Determine the default libpath from the value encoded in an empty executable.
23056          cat >conftest.$ac_ext <<_ACEOF
23057       program main
23058
23059       end
23060 _ACEOF
23061 rm -f conftest.$ac_objext conftest$ac_exeext
23062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23063   (eval $ac_link) 2>conftest.er1
23064   ac_status=$?
23065   grep -v '^ *+' conftest.er1 >conftest.err
23066   rm -f conftest.er1
23067   cat conftest.err >&5
23068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23069   (exit $ac_status); } &&
23070          { ac_try='test -z "$ac_f77_werror_flag"
23071                          || test ! -s conftest.err'
23072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23073   (eval $ac_try) 2>&5
23074   ac_status=$?
23075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23076   (exit $ac_status); }; } &&
23077          { ac_try='test -s conftest$ac_exeext'
23078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23079   (eval $ac_try) 2>&5
23080   ac_status=$?
23081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23082   (exit $ac_status); }; }; then
23083
23084 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
23085 }'`
23086 # Check for a 64-bit object if we didn't find anything.
23087 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; }
23088 }'`; fi
23089 else
23090   echo "$as_me: failed program was:" >&5
23091 sed 's/^/| /' conftest.$ac_ext >&5
23092
23093 fi
23094 rm -f conftest.err conftest.$ac_objext \
23095       conftest$ac_exeext conftest.$ac_ext
23096 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
23097
23098          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
23099           # Warning - without using the other run time loading flags,
23100           # -berok will link without error, but may produce a broken library.
23101           no_undefined_flag_F77=' ${wl}-bernotok'
23102           allow_undefined_flag_F77=' ${wl}-berok'
23103           # -bexpall does not export symbols beginning with underscore (_)
23104           always_export_symbols_F77=yes
23105           # Exported symbols can be pulled into shared objects from archives
23106           whole_archive_flag_spec_F77=' '
23107           archive_cmds_need_lc_F77=yes
23108           # This is similar to how AIX traditionally builds its shared libraries.
23109           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'
23110         fi
23111       fi
23112       ;;
23113
23114     amigaos*)
23115       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)'
23116       hardcode_libdir_flag_spec_F77='-L$libdir'
23117       hardcode_minus_L_F77=yes
23118       # see comment about different semantics on the GNU ld section
23119       ld_shlibs_F77=no
23120       ;;
23121
23122     bsdi[45]*)
23123       export_dynamic_flag_spec_F77=-rdynamic
23124       ;;
23125
23126     cygwin* | mingw* | pw32*)
23127       # When not using gcc, we currently assume that we are using
23128       # Microsoft Visual C++.
23129       # hardcode_libdir_flag_spec is actually meaningless, as there is
23130       # no search path for DLLs.
23131       hardcode_libdir_flag_spec_F77=' '
23132       allow_undefined_flag_F77=unsupported
23133       # Tell ltmain to make .lib files, not .a files.
23134       libext=lib
23135       # Tell ltmain to make .dll files, not .so files.
23136       shrext_cmds=".dll"
23137       # FIXME: Setting linknames here is a bad hack.
23138       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
23139       # The linker will automatically build a .lib file if we build a DLL.
23140       old_archive_From_new_cmds_F77='true'
23141       # FIXME: Should let the user specify the lib program.
23142       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
23143       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
23144       enable_shared_with_static_runtimes_F77=yes
23145       ;;
23146
23147     darwin* | rhapsody*)
23148       case $host_os in
23149         rhapsody* | darwin1.[012])
23150          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
23151          ;;
23152        *) # Darwin 1.3 on
23153          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
23154            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
23155          else
23156            case ${MACOSX_DEPLOYMENT_TARGET} in
23157              10.[012])
23158                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
23159                ;;
23160              10.*)
23161                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
23162                ;;
23163            esac
23164          fi
23165          ;;
23166       esac
23167       archive_cmds_need_lc_F77=no
23168       hardcode_direct_F77=no
23169       hardcode_automatic_F77=yes
23170       hardcode_shlibpath_var_F77=unsupported
23171       whole_archive_flag_spec_F77=''
23172       link_all_deplibs_F77=yes
23173     if test "$GCC" = yes ; then
23174         output_verbose_link_cmd='echo'
23175         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
23176       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
23177       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
23178       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}'
23179       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}'
23180     else
23181       case $cc_basename in
23182         xlc*)
23183          output_verbose_link_cmd='echo'
23184          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
23185          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
23186           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
23187          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}'
23188           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}'
23189           ;;
23190        *)
23191          ld_shlibs_F77=no
23192           ;;
23193       esac
23194     fi
23195       ;;
23196
23197     dgux*)
23198       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23199       hardcode_libdir_flag_spec_F77='-L$libdir'
23200       hardcode_shlibpath_var_F77=no
23201       ;;
23202
23203     freebsd1*)
23204       ld_shlibs_F77=no
23205       ;;
23206
23207     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
23208     # support.  Future versions do this automatically, but an explicit c++rt0.o
23209     # does not break anything, and helps significantly (at the cost of a little
23210     # extra space).
23211     freebsd2.2*)
23212       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
23213       hardcode_libdir_flag_spec_F77='-R$libdir'
23214       hardcode_direct_F77=yes
23215       hardcode_shlibpath_var_F77=no
23216       ;;
23217
23218     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
23219     freebsd2*)
23220       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
23221       hardcode_direct_F77=yes
23222       hardcode_minus_L_F77=yes
23223       hardcode_shlibpath_var_F77=no
23224       ;;
23225
23226     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
23227     freebsd* | kfreebsd*-gnu | dragonfly*)
23228       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
23229       hardcode_libdir_flag_spec_F77='-R$libdir'
23230       hardcode_direct_F77=yes
23231       hardcode_shlibpath_var_F77=no
23232       ;;
23233
23234     hpux9*)
23235       if test "$GCC" = yes; then
23236         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'
23237       else
23238         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'
23239       fi
23240       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
23241       hardcode_libdir_separator_F77=:
23242       hardcode_direct_F77=yes
23243
23244       # hardcode_minus_L: Not really in the search PATH,
23245       # but as the default location of the library.
23246       hardcode_minus_L_F77=yes
23247       export_dynamic_flag_spec_F77='${wl}-E'
23248       ;;
23249
23250     hpux10* | hpux11*)
23251       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
23252         case $host_cpu in
23253         hppa*64*|ia64*)
23254           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
23255           ;;
23256         *)
23257           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
23258           ;;
23259         esac
23260       else
23261         case $host_cpu in
23262         hppa*64*|ia64*)
23263           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
23264           ;;
23265         *)
23266           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
23267           ;;
23268         esac
23269       fi
23270       if test "$with_gnu_ld" = no; then
23271         case $host_cpu in
23272         hppa*64*)
23273           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
23274           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
23275           hardcode_libdir_separator_F77=:
23276           hardcode_direct_F77=no
23277           hardcode_shlibpath_var_F77=no
23278           ;;
23279         ia64*)
23280           hardcode_libdir_flag_spec_F77='-L$libdir'
23281           hardcode_direct_F77=no
23282           hardcode_shlibpath_var_F77=no
23283
23284           # hardcode_minus_L: Not really in the search PATH,
23285           # but as the default location of the library.
23286           hardcode_minus_L_F77=yes
23287           ;;
23288         *)
23289           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
23290           hardcode_libdir_separator_F77=:
23291           hardcode_direct_F77=yes
23292           export_dynamic_flag_spec_F77='${wl}-E'
23293
23294           # hardcode_minus_L: Not really in the search PATH,
23295           # but as the default location of the library.
23296           hardcode_minus_L_F77=yes
23297           ;;
23298         esac
23299       fi
23300       ;;
23301
23302     irix5* | irix6* | nonstopux*)
23303       if test "$GCC" = yes; then
23304         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'
23305       else
23306         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'
23307         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
23308       fi
23309       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
23310       hardcode_libdir_separator_F77=:
23311       link_all_deplibs_F77=yes
23312       ;;
23313
23314     netbsd*)
23315       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23316         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
23317       else
23318         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
23319       fi
23320       hardcode_libdir_flag_spec_F77='-R$libdir'
23321       hardcode_direct_F77=yes
23322       hardcode_shlibpath_var_F77=no
23323       ;;
23324
23325     newsos6)
23326       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23327       hardcode_direct_F77=yes
23328       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
23329       hardcode_libdir_separator_F77=:
23330       hardcode_shlibpath_var_F77=no
23331       ;;
23332
23333     openbsd*)
23334       hardcode_direct_F77=yes
23335       hardcode_shlibpath_var_F77=no
23336       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23337         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
23338         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
23339         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
23340         export_dynamic_flag_spec_F77='${wl}-E'
23341       else
23342        case $host_os in
23343          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
23344            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
23345            hardcode_libdir_flag_spec_F77='-R$libdir'
23346            ;;
23347          *)
23348            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
23349            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
23350            ;;
23351        esac
23352       fi
23353       ;;
23354
23355     os2*)
23356       hardcode_libdir_flag_spec_F77='-L$libdir'
23357       hardcode_minus_L_F77=yes
23358       allow_undefined_flag_F77=unsupported
23359       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'
23360       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
23361       ;;
23362
23363     osf3*)
23364       if test "$GCC" = yes; then
23365         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
23366         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'
23367       else
23368         allow_undefined_flag_F77=' -expect_unresolved \*'
23369         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'
23370       fi
23371       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
23372       hardcode_libdir_separator_F77=:
23373       ;;
23374
23375     osf4* | osf5*)      # as osf3* with the addition of -msym flag
23376       if test "$GCC" = yes; then
23377         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
23378         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'
23379         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
23380       else
23381         allow_undefined_flag_F77=' -expect_unresolved \*'
23382         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'
23383         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~
23384         $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'
23385
23386         # Both c and cxx compiler support -rpath directly
23387         hardcode_libdir_flag_spec_F77='-rpath $libdir'
23388       fi
23389       hardcode_libdir_separator_F77=:
23390       ;;
23391
23392     sco3.2v5*)
23393       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23394       hardcode_shlibpath_var_F77=no
23395       export_dynamic_flag_spec_F77='${wl}-Bexport'
23396       runpath_var=LD_RUN_PATH
23397       hardcode_runpath_var=yes
23398       ;;
23399
23400     solaris*)
23401       no_undefined_flag_F77=' -z text'
23402       if test "$GCC" = yes; then
23403         wlarc='${wl}'
23404         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
23405         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
23406           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
23407       else
23408         wlarc=''
23409         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
23410         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
23411         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
23412       fi
23413       hardcode_libdir_flag_spec_F77='-R$libdir'
23414       hardcode_shlibpath_var_F77=no
23415       case $host_os in
23416       solaris2.[0-5] | solaris2.[0-5].*) ;;
23417       *)
23418         # The compiler driver will combine linker options so we
23419         # cannot just pass the convience library names through
23420         # without $wl, iff we do not link with $LD.
23421         # Luckily, gcc supports the same syntax we need for Sun Studio.
23422         # Supported since Solaris 2.6 (maybe 2.5.1?)
23423         case $wlarc in
23424         '')
23425           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
23426         *)
23427           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' ;;
23428         esac ;;
23429       esac
23430       link_all_deplibs_F77=yes
23431       ;;
23432
23433     sunos4*)
23434       if test "x$host_vendor" = xsequent; then
23435         # Use $CC to link under sequent, because it throws in some extra .o
23436         # files that make .init and .fini sections work.
23437         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
23438       else
23439         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
23440       fi
23441       hardcode_libdir_flag_spec_F77='-L$libdir'
23442       hardcode_direct_F77=yes
23443       hardcode_minus_L_F77=yes
23444       hardcode_shlibpath_var_F77=no
23445       ;;
23446
23447     sysv4)
23448       case $host_vendor in
23449         sni)
23450           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23451           hardcode_direct_F77=yes # is this really true???
23452         ;;
23453         siemens)
23454           ## LD is ld it makes a PLAMLIB
23455           ## CC just makes a GrossModule.
23456           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
23457           reload_cmds_F77='$CC -r -o $output$reload_objs'
23458           hardcode_direct_F77=no
23459         ;;
23460         motorola)
23461           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23462           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
23463         ;;
23464       esac
23465       runpath_var='LD_RUN_PATH'
23466       hardcode_shlibpath_var_F77=no
23467       ;;
23468
23469     sysv4.3*)
23470       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23471       hardcode_shlibpath_var_F77=no
23472       export_dynamic_flag_spec_F77='-Bexport'
23473       ;;
23474
23475     sysv4*MP*)
23476       if test -d /usr/nec; then
23477         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23478         hardcode_shlibpath_var_F77=no
23479         runpath_var=LD_RUN_PATH
23480         hardcode_runpath_var=yes
23481         ld_shlibs_F77=yes
23482       fi
23483       ;;
23484
23485     sysv4.2uw2*)
23486       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
23487       hardcode_direct_F77=yes
23488       hardcode_minus_L_F77=no
23489       hardcode_shlibpath_var_F77=no
23490       hardcode_runpath_var=yes
23491       runpath_var=LD_RUN_PATH
23492       ;;
23493
23494    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
23495       no_undefined_flag_F77='${wl}-z ${wl}text'
23496       if test "$GCC" = yes; then
23497         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
23498       else
23499         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
23500       fi
23501       runpath_var='LD_RUN_PATH'
23502       hardcode_shlibpath_var_F77=no
23503       ;;
23504
23505     sysv5*)
23506       no_undefined_flag_F77=' -z text'
23507       # $CC -shared without GNU ld will not create a library from C++
23508       # object files and a static libstdc++, better avoid it by now
23509       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
23510       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
23511                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
23512       hardcode_libdir_flag_spec_F77=
23513       hardcode_shlibpath_var_F77=no
23514       runpath_var='LD_RUN_PATH'
23515       ;;
23516
23517     uts4*)
23518       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23519       hardcode_libdir_flag_spec_F77='-L$libdir'
23520       hardcode_shlibpath_var_F77=no
23521       ;;
23522
23523     *)
23524       ld_shlibs_F77=no
23525       ;;
23526     esac
23527   fi
23528
23529 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
23530 echo "${ECHO_T}$ld_shlibs_F77" >&6
23531 test "$ld_shlibs_F77" = no && can_build_shared=no
23532
23533 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23534 if test "$GCC" = yes; then
23535   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23536 fi
23537
23538 #
23539 # Do we need to explicitly link libc?
23540 #
23541 case "x$archive_cmds_need_lc_F77" in
23542 x|xyes)
23543   # Assume -lc should be added
23544   archive_cmds_need_lc_F77=yes
23545
23546   if test "$enable_shared" = yes && test "$GCC" = yes; then
23547     case $archive_cmds_F77 in
23548     *'~'*)
23549       # FIXME: we may have to deal with multi-command sequences.
23550       ;;
23551     '$CC '*)
23552       # Test whether the compiler implicitly links with -lc since on some
23553       # systems, -lgcc has to come before -lc. If gcc already passes -lc
23554       # to ld, don't add -lc before -lgcc.
23555       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
23556 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
23557       $rm conftest*
23558       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23559
23560       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23561   (eval $ac_compile) 2>&5
23562   ac_status=$?
23563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23564   (exit $ac_status); } 2>conftest.err; then
23565         soname=conftest
23566         lib=conftest
23567         libobjs=conftest.$ac_objext
23568         deplibs=
23569         wl=$lt_prog_compiler_wl_F77
23570         compiler_flags=-v
23571         linker_flags=-v
23572         verstring=
23573         output_objdir=.
23574         libname=conftest
23575         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
23576         allow_undefined_flag_F77=
23577         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
23578   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
23579   ac_status=$?
23580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23581   (exit $ac_status); }
23582         then
23583           archive_cmds_need_lc_F77=no
23584         else
23585           archive_cmds_need_lc_F77=yes
23586         fi
23587         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
23588       else
23589         cat conftest.err 1>&5
23590       fi
23591       $rm conftest*
23592       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
23593 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
23594       ;;
23595     esac
23596   fi
23597   ;;
23598 esac
23599
23600 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
23601 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
23602 library_names_spec=
23603 libname_spec='lib$name'
23604 soname_spec=
23605 shrext_cmds=".so"
23606 postinstall_cmds=
23607 postuninstall_cmds=
23608 finish_cmds=
23609 finish_eval=
23610 shlibpath_var=
23611 shlibpath_overrides_runpath=unknown
23612 version_type=none
23613 dynamic_linker="$host_os ld.so"
23614 sys_lib_dlsearch_path_spec="/lib /usr/lib"
23615 if test "$GCC" = yes; then
23616   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
23617   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
23618     # if the path contains ";" then we assume it to be the separator
23619     # otherwise default to the standard path separator (i.e. ":") - it is
23620     # assumed that no part of a normal pathname contains ";" but that should
23621     # okay in the real world where ";" in dirpaths is itself problematic.
23622     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23623   else
23624     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
23625   fi
23626 else
23627   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
23628 fi
23629 need_lib_prefix=unknown
23630 hardcode_into_libs=no
23631
23632 # when you set need_version to no, make sure it does not cause -set_version
23633 # flags to be left without arguments
23634 need_version=unknown
23635
23636 case $host_os in
23637 aix3*)
23638   version_type=linux
23639   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
23640   shlibpath_var=LIBPATH
23641
23642   # AIX 3 has no versioning support, so we append a major version to the name.
23643   soname_spec='${libname}${release}${shared_ext}$major'
23644   ;;
23645
23646 aix4* | aix5*)
23647   version_type=linux
23648   need_lib_prefix=no
23649   need_version=no
23650   hardcode_into_libs=yes
23651   if test "$host_cpu" = ia64; then
23652     # AIX 5 supports IA64
23653     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
23654     shlibpath_var=LD_LIBRARY_PATH
23655   else
23656     # With GCC up to 2.95.x, collect2 would create an import file
23657     # for dependence libraries.  The import file would start with
23658     # the line `#! .'.  This would cause the generated library to
23659     # depend on `.', always an invalid library.  This was fixed in
23660     # development snapshots of GCC prior to 3.0.
23661     case $host_os in
23662       aix4 | aix4.[01] | aix4.[01].*)
23663       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
23664            echo ' yes '
23665            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
23666         :
23667       else
23668         can_build_shared=no
23669       fi
23670       ;;
23671     esac
23672     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
23673     # soname into executable. Probably we can add versioning support to
23674     # collect2, so additional links can be useful in future.
23675     if test "$aix_use_runtimelinking" = yes; then
23676       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
23677       # instead of lib<name>.a to let people know that these are not
23678       # typical AIX shared libraries.
23679       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23680     else
23681       # We preserve .a as extension for shared libraries through AIX4.2
23682       # and later when we are not doing run time linking.
23683       library_names_spec='${libname}${release}.a $libname.a'
23684       soname_spec='${libname}${release}${shared_ext}$major'
23685     fi
23686     shlibpath_var=LIBPATH
23687   fi
23688   ;;
23689
23690 amigaos*)
23691   library_names_spec='$libname.ixlibrary $libname.a'
23692   # Create ${libname}_ixlibrary.a entries in /sys/libs.
23693   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'
23694   ;;
23695
23696 beos*)
23697   library_names_spec='${libname}${shared_ext}'
23698   dynamic_linker="$host_os ld.so"
23699   shlibpath_var=LIBRARY_PATH
23700   ;;
23701
23702 bsdi[45]*)
23703   version_type=linux
23704   need_version=no
23705   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23706   soname_spec='${libname}${release}${shared_ext}$major'
23707   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
23708   shlibpath_var=LD_LIBRARY_PATH
23709   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
23710   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
23711   # the default ld.so.conf also contains /usr/contrib/lib and
23712   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
23713   # libtool to hard-code these into programs
23714   ;;
23715
23716 cygwin* | mingw* | pw32*)
23717   version_type=windows
23718   shrext_cmds=".dll"
23719   need_version=no
23720   need_lib_prefix=no
23721
23722   case $GCC,$host_os in
23723   yes,cygwin* | yes,mingw* | yes,pw32*)
23724     library_names_spec='$libname.dll.a'
23725     # DLL is installed to $(libdir)/../bin by postinstall_cmds
23726     postinstall_cmds='base_file=`basename \${file}`~
23727       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
23728       dldir=$destdir/`dirname \$dlpath`~
23729       test -d \$dldir || mkdir -p \$dldir~
23730       $install_prog $dir/$dlname \$dldir/$dlname~
23731       chmod a+x \$dldir/$dlname'
23732     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
23733       dlpath=$dir/\$dldll~
23734        $rm \$dlpath'
23735     shlibpath_overrides_runpath=yes
23736
23737     case $host_os in
23738     cygwin*)
23739       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
23740       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23741       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
23742       ;;
23743     mingw*)
23744       # MinGW DLLs use traditional 'lib' prefix
23745       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23746       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
23747       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
23748         # It is most probably a Windows format PATH printed by
23749         # mingw gcc, but we are running on Cygwin. Gcc prints its search
23750         # path with ; separators, and with drive letters. We can handle the
23751         # drive letters (cygwin fileutils understands them), so leave them,
23752         # especially as we might pass files found there to a mingw objdump,
23753         # which wouldn't understand a cygwinified path. Ahh.
23754         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23755       else
23756         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
23757       fi
23758       ;;
23759     pw32*)
23760       # pw32 DLLs use 'pw' prefix rather than 'lib'
23761       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23762       ;;
23763     esac
23764     ;;
23765
23766   *)
23767     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
23768     ;;
23769   esac
23770   dynamic_linker='Win32 ld.exe'
23771   # FIXME: first we should search . and the directory the executable is in
23772   shlibpath_var=PATH
23773   ;;
23774
23775 darwin* | rhapsody*)
23776   dynamic_linker="$host_os dyld"
23777   version_type=darwin
23778   need_lib_prefix=no
23779   need_version=no
23780   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
23781   soname_spec='${libname}${release}${major}$shared_ext'
23782   shlibpath_overrides_runpath=yes
23783   shlibpath_var=DYLD_LIBRARY_PATH
23784   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
23785   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
23786   if test "$GCC" = yes; then
23787     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"`
23788   else
23789     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
23790   fi
23791   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
23792   ;;
23793
23794 dgux*)
23795   version_type=linux
23796   need_lib_prefix=no
23797   need_version=no
23798   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
23799   soname_spec='${libname}${release}${shared_ext}$major'
23800   shlibpath_var=LD_LIBRARY_PATH
23801   ;;
23802
23803 freebsd1*)
23804   dynamic_linker=no
23805   ;;
23806
23807 kfreebsd*-gnu)
23808   version_type=linux
23809   need_lib_prefix=no
23810   need_version=no
23811   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23812   soname_spec='${libname}${release}${shared_ext}$major'
23813   shlibpath_var=LD_LIBRARY_PATH
23814   shlibpath_overrides_runpath=no
23815   hardcode_into_libs=yes
23816   dynamic_linker='GNU ld.so'
23817   ;;
23818
23819 freebsd* | dragonfly*)
23820   # DragonFly does not have aout.  When/if they implement a new
23821   # versioning mechanism, adjust this.
23822   if test -x /usr/bin/objformat; then
23823     objformat=`/usr/bin/objformat`
23824   else
23825     case $host_os in
23826     freebsd[123]*) objformat=aout ;;
23827     *) objformat=elf ;;
23828     esac
23829   fi
23830   version_type=freebsd-$objformat
23831   case $version_type in
23832     freebsd-elf*)
23833       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23834       need_version=no
23835       need_lib_prefix=no
23836       ;;
23837     freebsd-*)
23838       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
23839       need_version=yes
23840       ;;
23841   esac
23842   shlibpath_var=LD_LIBRARY_PATH
23843   case $host_os in
23844   freebsd2*)
23845     shlibpath_overrides_runpath=yes
23846     ;;
23847   freebsd3.[01]* | freebsdelf3.[01]*)
23848     shlibpath_overrides_runpath=yes
23849     hardcode_into_libs=yes
23850     ;;
23851   *) # from 3.2 on
23852     shlibpath_overrides_runpath=no
23853     hardcode_into_libs=yes
23854     ;;
23855   esac
23856   ;;
23857
23858 gnu*)
23859   version_type=linux
23860   need_lib_prefix=no
23861   need_version=no
23862   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
23863   soname_spec='${libname}${release}${shared_ext}$major'
23864   shlibpath_var=LD_LIBRARY_PATH
23865   hardcode_into_libs=yes
23866   ;;
23867
23868 hpux9* | hpux10* | hpux11*)
23869   # Give a soname corresponding to the major version so that dld.sl refuses to
23870   # link against other versions.
23871   version_type=sunos
23872   need_lib_prefix=no
23873   need_version=no
23874   case $host_cpu in
23875   ia64*)
23876     shrext_cmds='.so'
23877     hardcode_into_libs=yes
23878     dynamic_linker="$host_os dld.so"
23879     shlibpath_var=LD_LIBRARY_PATH
23880     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23881     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23882     soname_spec='${libname}${release}${shared_ext}$major'
23883     if test "X$HPUX_IA64_MODE" = X32; then
23884       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
23885     else
23886       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
23887     fi
23888     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23889     ;;
23890    hppa*64*)
23891      shrext_cmds='.sl'
23892      hardcode_into_libs=yes
23893      dynamic_linker="$host_os dld.sl"
23894      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
23895      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23896      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23897      soname_spec='${libname}${release}${shared_ext}$major'
23898      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
23899      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23900      ;;
23901    *)
23902     shrext_cmds='.sl'
23903     dynamic_linker="$host_os dld.sl"
23904     shlibpath_var=SHLIB_PATH
23905     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
23906     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23907     soname_spec='${libname}${release}${shared_ext}$major'
23908     ;;
23909   esac
23910   # HP-UX runs *really* slowly unless shared libraries are mode 555.
23911   postinstall_cmds='chmod 555 $lib'
23912   ;;
23913
23914 irix5* | irix6* | nonstopux*)
23915   case $host_os in
23916     nonstopux*) version_type=nonstopux ;;
23917     *)
23918         if test "$lt_cv_prog_gnu_ld" = yes; then
23919                 version_type=linux
23920         else
23921                 version_type=irix
23922         fi ;;
23923   esac
23924   need_lib_prefix=no
23925   need_version=no
23926   soname_spec='${libname}${release}${shared_ext}$major'
23927   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
23928   case $host_os in
23929   irix5* | nonstopux*)
23930     libsuff= shlibsuff=
23931     ;;
23932   *)
23933     case $LD in # libtool.m4 will add one of these switches to LD
23934     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
23935       libsuff= shlibsuff= libmagic=32-bit;;
23936     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
23937       libsuff=32 shlibsuff=N32 libmagic=N32;;
23938     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
23939       libsuff=64 shlibsuff=64 libmagic=64-bit;;
23940     *) libsuff= shlibsuff= libmagic=never-match;;
23941     esac
23942     ;;
23943   esac
23944   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
23945   shlibpath_overrides_runpath=no
23946   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
23947   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
23948   hardcode_into_libs=yes
23949   ;;
23950
23951 # No shared lib support for Linux oldld, aout, or coff.
23952 linux*oldld* | linux*aout* | linux*coff*)
23953   dynamic_linker=no
23954   ;;
23955
23956 # This must be Linux ELF.
23957 linux*)
23958   version_type=linux
23959   need_lib_prefix=no
23960   need_version=no
23961   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23962   soname_spec='${libname}${release}${shared_ext}$major'
23963   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
23964   shlibpath_var=LD_LIBRARY_PATH
23965   shlibpath_overrides_runpath=no
23966   # This implies no fast_install, which is unacceptable.
23967   # Some rework will be needed to allow for fast_install
23968   # before this can be enabled.
23969   hardcode_into_libs=yes
23970
23971   # Append ld.so.conf contents to the search path
23972   if test -f /etc/ld.so.conf; then
23973     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' ' '`
23974     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
23975   fi
23976
23977   # We used to test for /lib/ld.so.1 and disable shared libraries on
23978   # powerpc, because MkLinux only supported shared libraries with the
23979   # GNU dynamic linker.  Since this was broken with cross compilers,
23980   # most powerpc-linux boxes support dynamic linking these days and
23981   # people can always --disable-shared, the test was removed, and we
23982   # assume the GNU/Linux dynamic linker is in use.
23983   dynamic_linker='GNU/Linux ld.so'
23984   ;;
23985
23986 knetbsd*-gnu)
23987   version_type=linux
23988   need_lib_prefix=no
23989   need_version=no
23990   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23991   soname_spec='${libname}${release}${shared_ext}$major'
23992   shlibpath_var=LD_LIBRARY_PATH
23993   shlibpath_overrides_runpath=no
23994   hardcode_into_libs=yes
23995   dynamic_linker='GNU ld.so'
23996   ;;
23997
23998 netbsd*)
23999   version_type=sunos
24000   need_lib_prefix=no
24001   need_version=no
24002   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24003     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24004     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
24005     dynamic_linker='NetBSD (a.out) ld.so'
24006   else
24007     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24008     soname_spec='${libname}${release}${shared_ext}$major'
24009     dynamic_linker='NetBSD ld.elf_so'
24010   fi
24011   shlibpath_var=LD_LIBRARY_PATH
24012   shlibpath_overrides_runpath=yes
24013   hardcode_into_libs=yes
24014   ;;
24015
24016 newsos6)
24017   version_type=linux
24018   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24019   shlibpath_var=LD_LIBRARY_PATH
24020   shlibpath_overrides_runpath=yes
24021   ;;
24022
24023 nto-qnx*)
24024   version_type=linux
24025   need_lib_prefix=no
24026   need_version=no
24027   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24028   soname_spec='${libname}${release}${shared_ext}$major'
24029   shlibpath_var=LD_LIBRARY_PATH
24030   shlibpath_overrides_runpath=yes
24031   ;;
24032
24033 openbsd*)
24034   version_type=sunos
24035   need_lib_prefix=no
24036   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
24037   case $host_os in
24038     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
24039     *)                         need_version=no  ;;
24040   esac
24041   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24042   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
24043   shlibpath_var=LD_LIBRARY_PATH
24044   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24045     case $host_os in
24046       openbsd2.[89] | openbsd2.[89].*)
24047         shlibpath_overrides_runpath=no
24048         ;;
24049       *)
24050         shlibpath_overrides_runpath=yes
24051         ;;
24052       esac
24053   else
24054     shlibpath_overrides_runpath=yes
24055   fi
24056   ;;
24057
24058 os2*)
24059   libname_spec='$name'
24060   shrext_cmds=".dll"
24061   need_lib_prefix=no
24062   library_names_spec='$libname${shared_ext} $libname.a'
24063   dynamic_linker='OS/2 ld.exe'
24064   shlibpath_var=LIBPATH
24065   ;;
24066
24067 osf3* | osf4* | osf5*)
24068   version_type=osf
24069   need_lib_prefix=no
24070   need_version=no
24071   soname_spec='${libname}${release}${shared_ext}$major'
24072   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24073   shlibpath_var=LD_LIBRARY_PATH
24074   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
24075   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
24076   ;;
24077
24078 sco3.2v5*)
24079   version_type=osf
24080   soname_spec='${libname}${release}${shared_ext}$major'
24081   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24082   shlibpath_var=LD_LIBRARY_PATH
24083   ;;
24084
24085 solaris*)
24086   version_type=linux
24087   need_lib_prefix=no
24088   need_version=no
24089   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24090   soname_spec='${libname}${release}${shared_ext}$major'
24091   shlibpath_var=LD_LIBRARY_PATH
24092   shlibpath_overrides_runpath=yes
24093   hardcode_into_libs=yes
24094   # ldd complains unless libraries are executable
24095   postinstall_cmds='chmod +x $lib'
24096   ;;
24097
24098 sunos4*)
24099   version_type=sunos
24100   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24101   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
24102   shlibpath_var=LD_LIBRARY_PATH
24103   shlibpath_overrides_runpath=yes
24104   if test "$with_gnu_ld" = yes; then
24105     need_lib_prefix=no
24106   fi
24107   need_version=yes
24108   ;;
24109
24110 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
24111   version_type=linux
24112   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24113   soname_spec='${libname}${release}${shared_ext}$major'
24114   shlibpath_var=LD_LIBRARY_PATH
24115   case $host_vendor in
24116     sni)
24117       shlibpath_overrides_runpath=no
24118       need_lib_prefix=no
24119       export_dynamic_flag_spec='${wl}-Blargedynsym'
24120       runpath_var=LD_RUN_PATH
24121       ;;
24122     siemens)
24123       need_lib_prefix=no
24124       ;;
24125     motorola)
24126       need_lib_prefix=no
24127       need_version=no
24128       shlibpath_overrides_runpath=no
24129       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
24130       ;;
24131   esac
24132   ;;
24133
24134 sysv4*MP*)
24135   if test -d /usr/nec ;then
24136     version_type=linux
24137     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
24138     soname_spec='$libname${shared_ext}.$major'
24139     shlibpath_var=LD_LIBRARY_PATH
24140   fi
24141   ;;
24142
24143 uts4*)
24144   version_type=linux
24145   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24146   soname_spec='${libname}${release}${shared_ext}$major'
24147   shlibpath_var=LD_LIBRARY_PATH
24148   ;;
24149
24150 *)
24151   dynamic_linker=no
24152   ;;
24153 esac
24154 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
24155 echo "${ECHO_T}$dynamic_linker" >&6
24156 test "$dynamic_linker" = no && can_build_shared=no
24157
24158 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
24159 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
24160 hardcode_action_F77=
24161 if test -n "$hardcode_libdir_flag_spec_F77" || \
24162    test -n "$runpath_var_F77" || \
24163    test "X$hardcode_automatic_F77" = "Xyes" ; then
24164
24165   # We can hardcode non-existant directories.
24166   if test "$hardcode_direct_F77" != no &&
24167      # If the only mechanism to avoid hardcoding is shlibpath_var, we
24168      # have to relink, otherwise we might link with an installed library
24169      # when we should be linking with a yet-to-be-installed one
24170      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
24171      test "$hardcode_minus_L_F77" != no; then
24172     # Linking always hardcodes the temporary library directory.
24173     hardcode_action_F77=relink
24174   else
24175     # We can link without hardcoding, and we can hardcode nonexisting dirs.
24176     hardcode_action_F77=immediate
24177   fi
24178 else
24179   # We cannot hardcode anything, or else we can only hardcode existing
24180   # directories.
24181   hardcode_action_F77=unsupported
24182 fi
24183 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
24184 echo "${ECHO_T}$hardcode_action_F77" >&6
24185
24186 if test "$hardcode_action_F77" = relink; then
24187   # Fast installation is not supported
24188   enable_fast_install=no
24189 elif test "$shlibpath_overrides_runpath" = yes ||
24190      test "$enable_shared" = no; then
24191   # Fast installation is not necessary
24192   enable_fast_install=needless
24193 fi
24194
24195 striplib=
24196 old_striplib=
24197 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
24198 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
24199 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
24200   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
24201   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
24202   echo "$as_me:$LINENO: result: yes" >&5
24203 echo "${ECHO_T}yes" >&6
24204 else
24205 # FIXME - insert some real tests, host_os isn't really good enough
24206   case $host_os in
24207    darwin*)
24208        if test -n "$STRIP" ; then
24209          striplib="$STRIP -x"
24210          echo "$as_me:$LINENO: result: yes" >&5
24211 echo "${ECHO_T}yes" >&6
24212        else
24213   echo "$as_me:$LINENO: result: no" >&5
24214 echo "${ECHO_T}no" >&6
24215 fi
24216        ;;
24217    *)
24218   echo "$as_me:$LINENO: result: no" >&5
24219 echo "${ECHO_T}no" >&6
24220     ;;
24221   esac
24222 fi
24223
24224
24225
24226 # The else clause should only fire when bootstrapping the
24227 # libtool distribution, otherwise you forgot to ship ltmain.sh
24228 # with your package, and you will get complaints that there are
24229 # no rules to generate ltmain.sh.
24230 if test -f "$ltmain"; then
24231   # See if we are running on zsh, and set the options which allow our commands through
24232   # without removal of \ escapes.
24233   if test -n "${ZSH_VERSION+set}" ; then
24234     setopt NO_GLOB_SUBST
24235   fi
24236   # Now quote all the things that may contain metacharacters while being
24237   # careful not to overquote the AC_SUBSTed values.  We take copies of the
24238   # variables and quote the copies for generation of the libtool script.
24239   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
24240     SED SHELL STRIP \
24241     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24242     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24243     deplibs_check_method reload_flag reload_cmds need_locks \
24244     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24245     lt_cv_sys_global_symbol_to_c_name_address \
24246     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24247     old_postinstall_cmds old_postuninstall_cmds \
24248     compiler_F77 \
24249     CC_F77 \
24250     LD_F77 \
24251     lt_prog_compiler_wl_F77 \
24252     lt_prog_compiler_pic_F77 \
24253     lt_prog_compiler_static_F77 \
24254     lt_prog_compiler_no_builtin_flag_F77 \
24255     export_dynamic_flag_spec_F77 \
24256     thread_safe_flag_spec_F77 \
24257     whole_archive_flag_spec_F77 \
24258     enable_shared_with_static_runtimes_F77 \
24259     old_archive_cmds_F77 \
24260     old_archive_from_new_cmds_F77 \
24261     predep_objects_F77 \
24262     postdep_objects_F77 \
24263     predeps_F77 \
24264     postdeps_F77 \
24265     compiler_lib_search_path_F77 \
24266     archive_cmds_F77 \
24267     archive_expsym_cmds_F77 \
24268     postinstall_cmds_F77 \
24269     postuninstall_cmds_F77 \
24270     old_archive_from_expsyms_cmds_F77 \
24271     allow_undefined_flag_F77 \
24272     no_undefined_flag_F77 \
24273     export_symbols_cmds_F77 \
24274     hardcode_libdir_flag_spec_F77 \
24275     hardcode_libdir_flag_spec_ld_F77 \
24276     hardcode_libdir_separator_F77 \
24277     hardcode_automatic_F77 \
24278     module_cmds_F77 \
24279     module_expsym_cmds_F77 \
24280     lt_cv_prog_compiler_c_o_F77 \
24281     exclude_expsyms_F77 \
24282     include_expsyms_F77; do
24283
24284     case $var in
24285     old_archive_cmds_F77 | \
24286     old_archive_from_new_cmds_F77 | \
24287     archive_cmds_F77 | \
24288     archive_expsym_cmds_F77 | \
24289     module_cmds_F77 | \
24290     module_expsym_cmds_F77 | \
24291     old_archive_from_expsyms_cmds_F77 | \
24292     export_symbols_cmds_F77 | \
24293     extract_expsyms_cmds | reload_cmds | finish_cmds | \
24294     postinstall_cmds | postuninstall_cmds | \
24295     old_postinstall_cmds | old_postuninstall_cmds | \
24296     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24297       # Double-quote double-evaled strings.
24298       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
24299       ;;
24300     *)
24301       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24302       ;;
24303     esac
24304   done
24305
24306   case $lt_echo in
24307   *'\$0 --fallback-echo"')
24308     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24309     ;;
24310   esac
24311
24312 cfgfile="$ofile"
24313
24314   cat <<__EOF__ >> "$cfgfile"
24315 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
24316
24317 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24318
24319 # Shell to use when invoking shell scripts.
24320 SHELL=$lt_SHELL
24321
24322 # Whether or not to build shared libraries.
24323 build_libtool_libs=$enable_shared
24324
24325 # Whether or not to build static libraries.
24326 build_old_libs=$enable_static
24327
24328 # Whether or not to add -lc for building shared libraries.
24329 build_libtool_need_lc=$archive_cmds_need_lc_F77
24330
24331 # Whether or not to disallow shared libs when runtime libs are static
24332 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
24333
24334 # Whether or not to optimize for fast installation.
24335 fast_install=$enable_fast_install
24336
24337 # The host system.
24338 host_alias=$host_alias
24339 host=$host
24340 host_os=$host_os
24341
24342 # The build system.
24343 build_alias=$build_alias
24344 build=$build
24345 build_os=$build_os
24346
24347 # An echo program that does not interpret backslashes.
24348 echo=$lt_echo
24349
24350 # The archiver.
24351 AR=$lt_AR
24352 AR_FLAGS=$lt_AR_FLAGS
24353
24354 # A C compiler.
24355 LTCC=$lt_LTCC
24356
24357 # A language-specific compiler.
24358 CC=$lt_compiler_F77
24359
24360 # Is the compiler the GNU C compiler?
24361 with_gcc=$GCC_F77
24362
24363 # An ERE matcher.
24364 EGREP=$lt_EGREP
24365
24366 # The linker used to build libraries.
24367 LD=$lt_LD_F77
24368
24369 # Whether we need hard or soft links.
24370 LN_S=$lt_LN_S
24371
24372 # A BSD-compatible nm program.
24373 NM=$lt_NM
24374
24375 # A symbol stripping program
24376 STRIP=$lt_STRIP
24377
24378 # Used to examine libraries when file_magic_cmd begins "file"
24379 MAGIC_CMD=$MAGIC_CMD
24380
24381 # Used on cygwin: DLL creation program.
24382 DLLTOOL="$DLLTOOL"
24383
24384 # Used on cygwin: object dumper.
24385 OBJDUMP="$OBJDUMP"
24386
24387 # Used on cygwin: assembler.
24388 AS="$AS"
24389
24390 # The name of the directory that contains temporary libtool files.
24391 objdir=$objdir
24392
24393 # How to create reloadable object files.
24394 reload_flag=$lt_reload_flag
24395 reload_cmds=$lt_reload_cmds
24396
24397 # How to pass a linker flag through the compiler.
24398 wl=$lt_lt_prog_compiler_wl_F77
24399
24400 # Object file suffix (normally "o").
24401 objext="$ac_objext"
24402
24403 # Old archive suffix (normally "a").
24404 libext="$libext"
24405
24406 # Shared library suffix (normally ".so").
24407 shrext_cmds='$shrext_cmds'
24408
24409 # Executable file suffix (normally "").
24410 exeext="$exeext"
24411
24412 # Additional compiler flags for building library objects.
24413 pic_flag=$lt_lt_prog_compiler_pic_F77
24414 pic_mode=$pic_mode
24415
24416 # What is the maximum length of a command?
24417 max_cmd_len=$lt_cv_sys_max_cmd_len
24418
24419 # Does compiler simultaneously support -c and -o options?
24420 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
24421
24422 # Must we lock files when doing compilation?
24423 need_locks=$lt_need_locks
24424
24425 # Do we need the lib prefix for modules?
24426 need_lib_prefix=$need_lib_prefix
24427
24428 # Do we need a version for libraries?
24429 need_version=$need_version
24430
24431 # Whether dlopen is supported.
24432 dlopen_support=$enable_dlopen
24433
24434 # Whether dlopen of programs is supported.
24435 dlopen_self=$enable_dlopen_self
24436
24437 # Whether dlopen of statically linked programs is supported.
24438 dlopen_self_static=$enable_dlopen_self_static
24439
24440 # Compiler flag to prevent dynamic linking.
24441 link_static_flag=$lt_lt_prog_compiler_static_F77
24442
24443 # Compiler flag to turn off builtin functions.
24444 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
24445
24446 # Compiler flag to allow reflexive dlopens.
24447 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
24448
24449 # Compiler flag to generate shared objects directly from archives.
24450 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
24451
24452 # Compiler flag to generate thread-safe objects.
24453 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
24454
24455 # Library versioning type.
24456 version_type=$version_type
24457
24458 # Format of library name prefix.
24459 libname_spec=$lt_libname_spec
24460
24461 # List of archive names.  First name is the real one, the rest are links.
24462 # The last name is the one that the linker finds with -lNAME.
24463 library_names_spec=$lt_library_names_spec
24464
24465 # The coded name of the library, if different from the real name.
24466 soname_spec=$lt_soname_spec
24467
24468 # Commands used to build and install an old-style archive.
24469 RANLIB=$lt_RANLIB
24470 old_archive_cmds=$lt_old_archive_cmds_F77
24471 old_postinstall_cmds=$lt_old_postinstall_cmds
24472 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24473
24474 # Create an old-style archive from a shared archive.
24475 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
24476
24477 # Create a temporary old-style archive to link instead of a shared archive.
24478 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
24479
24480 # Commands used to build and install a shared archive.
24481 archive_cmds=$lt_archive_cmds_F77
24482 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
24483 postinstall_cmds=$lt_postinstall_cmds
24484 postuninstall_cmds=$lt_postuninstall_cmds
24485
24486 # Commands used to build a loadable module (assumed same as above if empty)
24487 module_cmds=$lt_module_cmds_F77
24488 module_expsym_cmds=$lt_module_expsym_cmds_F77
24489
24490 # Commands to strip libraries.
24491 old_striplib=$lt_old_striplib
24492 striplib=$lt_striplib
24493
24494 # Dependencies to place before the objects being linked to create a
24495 # shared library.
24496 predep_objects=$lt_predep_objects_F77
24497
24498 # Dependencies to place after the objects being linked to create a
24499 # shared library.
24500 postdep_objects=$lt_postdep_objects_F77
24501
24502 # Dependencies to place before the objects being linked to create a
24503 # shared library.
24504 predeps=$lt_predeps_F77
24505
24506 # Dependencies to place after the objects being linked to create a
24507 # shared library.
24508 postdeps=$lt_postdeps_F77
24509
24510 # The library search path used internally by the compiler when linking
24511 # a shared library.
24512 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
24513
24514 # Method to check whether dependent libraries are shared objects.
24515 deplibs_check_method=$lt_deplibs_check_method
24516
24517 # Command to use when deplibs_check_method == file_magic.
24518 file_magic_cmd=$lt_file_magic_cmd
24519
24520 # Flag that allows shared libraries with undefined symbols to be built.
24521 allow_undefined_flag=$lt_allow_undefined_flag_F77
24522
24523 # Flag that forces no undefined symbols.
24524 no_undefined_flag=$lt_no_undefined_flag_F77
24525
24526 # Commands used to finish a libtool library installation in a directory.
24527 finish_cmds=$lt_finish_cmds
24528
24529 # Same as above, but a single script fragment to be evaled but not shown.
24530 finish_eval=$lt_finish_eval
24531
24532 # Take the output of nm and produce a listing of raw symbols and C names.
24533 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24534
24535 # Transform the output of nm in a proper C declaration
24536 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24537
24538 # Transform the output of nm in a C name address pair
24539 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24540
24541 # This is the shared library runtime path variable.
24542 runpath_var=$runpath_var
24543
24544 # This is the shared library path variable.
24545 shlibpath_var=$shlibpath_var
24546
24547 # Is shlibpath searched before the hard-coded library search path?
24548 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24549
24550 # How to hardcode a shared library path into an executable.
24551 hardcode_action=$hardcode_action_F77
24552
24553 # Whether we should hardcode library paths into libraries.
24554 hardcode_into_libs=$hardcode_into_libs
24555
24556 # Flag to hardcode \$libdir into a binary during linking.
24557 # This must work even if \$libdir does not exist.
24558 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
24559
24560 # If ld is used when linking, flag to hardcode \$libdir into
24561 # a binary during linking. This must work even if \$libdir does
24562 # not exist.
24563 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
24564
24565 # Whether we need a single -rpath flag with a separated argument.
24566 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
24567
24568 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24569 # resulting binary.
24570 hardcode_direct=$hardcode_direct_F77
24571
24572 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24573 # resulting binary.
24574 hardcode_minus_L=$hardcode_minus_L_F77
24575
24576 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24577 # the resulting binary.
24578 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
24579
24580 # Set to yes if building a shared library automatically hardcodes DIR into the library
24581 # and all subsequent libraries and executables linked against it.
24582 hardcode_automatic=$hardcode_automatic_F77
24583
24584 # Variables whose values should be saved in libtool wrapper scripts and
24585 # restored at relink time.
24586 variables_saved_for_relink="$variables_saved_for_relink"
24587
24588 # Whether libtool must link a program against all its dependency libraries.
24589 link_all_deplibs=$link_all_deplibs_F77
24590
24591 # Compile-time system search path for libraries
24592 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24593
24594 # Run-time system search path for libraries
24595 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24596
24597 # Fix the shell variable \$srcfile for the compiler.
24598 fix_srcfile_path="$fix_srcfile_path_F77"
24599
24600 # Set to yes if exported symbols are required.
24601 always_export_symbols=$always_export_symbols_F77
24602
24603 # The commands to list exported symbols.
24604 export_symbols_cmds=$lt_export_symbols_cmds_F77
24605
24606 # The commands to extract the exported symbol list from a shared archive.
24607 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24608
24609 # Symbols that should not be listed in the preloaded symbols.
24610 exclude_expsyms=$lt_exclude_expsyms_F77
24611
24612 # Symbols that must always be exported.
24613 include_expsyms=$lt_include_expsyms_F77
24614
24615 # ### END LIBTOOL TAG CONFIG: $tagname
24616
24617 __EOF__
24618
24619
24620 else
24621   # If there is no Makefile yet, we rely on a make rule to execute
24622   # `config.status --recheck' to rerun these tests and create the
24623   # libtool script then.
24624   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24625   if test -f "$ltmain_in"; then
24626     test -f Makefile && make "$ltmain"
24627   fi
24628 fi
24629
24630
24631 ac_ext=c
24632 ac_cpp='$CPP $CPPFLAGS'
24633 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24634 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24635 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24636
24637 CC="$lt_save_CC"
24638
24639         else
24640           tagname=""
24641         fi
24642         ;;
24643
24644       GCJ)
24645         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
24646
24647
24648
24649 # Source file extension for Java test sources.
24650 ac_ext=java
24651
24652 # Object file extension for compiled Java test sources.
24653 objext=o
24654 objext_GCJ=$objext
24655
24656 # Code to be used in simple compile tests
24657 lt_simple_compile_test_code="class foo {}\n"
24658
24659 # Code to be used in simple link tests
24660 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
24661
24662 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
24663
24664 # If no C compiler was specified, use CC.
24665 LTCC=${LTCC-"$CC"}
24666
24667 # Allow CC to be a program name with arguments.
24668 compiler=$CC
24669
24670
24671 # save warnings/boilerplate of simple test code
24672 ac_outfile=conftest.$ac_objext
24673 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
24674 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
24675 _lt_compiler_boilerplate=`cat conftest.err`
24676 $rm conftest*
24677
24678 ac_outfile=conftest.$ac_objext
24679 printf "$lt_simple_link_test_code" >conftest.$ac_ext
24680 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
24681 _lt_linker_boilerplate=`cat conftest.err`
24682 $rm conftest*
24683
24684
24685 # Allow CC to be a program name with arguments.
24686 lt_save_CC="$CC"
24687 CC=${GCJ-"gcj"}
24688 compiler=$CC
24689 compiler_GCJ=$CC
24690 for cc_temp in $compiler""; do
24691   case $cc_temp in
24692     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24693     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24694     \-*) ;;
24695     *) break;;
24696   esac
24697 done
24698 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24699
24700
24701 # GCJ did not exist at the time GCC didn't implicitly link libc in.
24702 archive_cmds_need_lc_GCJ=no
24703
24704 old_archive_cmds_GCJ=$old_archive_cmds
24705
24706 ## CAVEAT EMPTOR:
24707 ## There is no encapsulation within the following macros, do not change
24708 ## the running order or otherwise move them around unless you know exactly
24709 ## what you are doing...
24710
24711 lt_prog_compiler_no_builtin_flag_GCJ=
24712
24713 if test "$GCC" = yes; then
24714   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
24715
24716
24717 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
24718 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
24719 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
24720   echo $ECHO_N "(cached) $ECHO_C" >&6
24721 else
24722   lt_cv_prog_compiler_rtti_exceptions=no
24723   ac_outfile=conftest.$ac_objext
24724    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24725    lt_compiler_flag="-fno-rtti -fno-exceptions"
24726    # Insert the option either (1) after the last *FLAGS variable, or
24727    # (2) before a word containing "conftest.", or (3) at the end.
24728    # Note that $ac_compile itself does not contain backslashes and begins
24729    # with a dollar sign (not a hyphen), so the echo should work correctly.
24730    # The option is referenced via a variable to avoid confusing sed.
24731    lt_compile=`echo "$ac_compile" | $SED \
24732    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24733    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24734    -e 's:$: $lt_compiler_flag:'`
24735    (eval echo "\"\$as_me:24735: $lt_compile\"" >&5)
24736    (eval "$lt_compile" 2>conftest.err)
24737    ac_status=$?
24738    cat conftest.err >&5
24739    echo "$as_me:24739: \$? = $ac_status" >&5
24740    if (exit $ac_status) && test -s "$ac_outfile"; then
24741      # The compiler can only warn and ignore the option if not recognized
24742      # So say no if there are warnings other than the usual output.
24743      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
24744      $SED '/^$/d' conftest.err >conftest.er2
24745      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
24746        lt_cv_prog_compiler_rtti_exceptions=yes
24747      fi
24748    fi
24749    $rm conftest*
24750
24751 fi
24752 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
24753 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
24754
24755 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
24756     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
24757 else
24758     :
24759 fi
24760
24761 fi
24762
24763 lt_prog_compiler_wl_GCJ=
24764 lt_prog_compiler_pic_GCJ=
24765 lt_prog_compiler_static_GCJ=
24766
24767 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
24768 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
24769
24770   if test "$GCC" = yes; then
24771     lt_prog_compiler_wl_GCJ='-Wl,'
24772     lt_prog_compiler_static_GCJ='-static'
24773
24774     case $host_os in
24775       aix*)
24776       # All AIX code is PIC.
24777       if test "$host_cpu" = ia64; then
24778         # AIX 5 now supports IA64 processor
24779         lt_prog_compiler_static_GCJ='-Bstatic'
24780       fi
24781       ;;
24782
24783     amigaos*)
24784       # FIXME: we need at least 68020 code to build shared libraries, but
24785       # adding the `-m68020' flag to GCC prevents building anything better,
24786       # like `-m68040'.
24787       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
24788       ;;
24789
24790     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
24791       # PIC is the default for these OSes.
24792       ;;
24793
24794     mingw* | pw32* | os2*)
24795       # This hack is so that the source file can tell whether it is being
24796       # built for inclusion in a dll (and should export symbols for example).
24797       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
24798       ;;
24799
24800     darwin* | rhapsody*)
24801       # PIC is the default on this platform
24802       # Common symbols not allowed in MH_DYLIB files
24803       lt_prog_compiler_pic_GCJ='-fno-common'
24804       ;;
24805
24806     msdosdjgpp*)
24807       # Just because we use GCC doesn't mean we suddenly get shared libraries
24808       # on systems that don't support them.
24809       lt_prog_compiler_can_build_shared_GCJ=no
24810       enable_shared=no
24811       ;;
24812
24813     sysv4*MP*)
24814       if test -d /usr/nec; then
24815         lt_prog_compiler_pic_GCJ=-Kconform_pic
24816       fi
24817       ;;
24818
24819     hpux*)
24820       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24821       # not for PA HP-UX.
24822       case $host_cpu in
24823       hppa*64*|ia64*)
24824         # +Z the default
24825         ;;
24826       *)
24827         lt_prog_compiler_pic_GCJ='-fPIC'
24828         ;;
24829       esac
24830       ;;
24831
24832     *)
24833       lt_prog_compiler_pic_GCJ='-fPIC'
24834       ;;
24835     esac
24836   else
24837     # PORTME Check for flag to pass linker flags through the system compiler.
24838     case $host_os in
24839     aix*)
24840       lt_prog_compiler_wl_GCJ='-Wl,'
24841       if test "$host_cpu" = ia64; then
24842         # AIX 5 now supports IA64 processor
24843         lt_prog_compiler_static_GCJ='-Bstatic'
24844       else
24845         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
24846       fi
24847       ;;
24848       darwin*)
24849         # PIC is the default on this platform
24850         # Common symbols not allowed in MH_DYLIB files
24851        case $cc_basename in
24852          xlc*)
24853          lt_prog_compiler_pic_GCJ='-qnocommon'
24854          lt_prog_compiler_wl_GCJ='-Wl,'
24855          ;;
24856        esac
24857        ;;
24858
24859     mingw* | pw32* | os2*)
24860       # This hack is so that the source file can tell whether it is being
24861       # built for inclusion in a dll (and should export symbols for example).
24862       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
24863       ;;
24864
24865     hpux9* | hpux10* | hpux11*)
24866       lt_prog_compiler_wl_GCJ='-Wl,'
24867       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24868       # not for PA HP-UX.
24869       case $host_cpu in
24870       hppa*64*|ia64*)
24871         # +Z the default
24872         ;;
24873       *)
24874         lt_prog_compiler_pic_GCJ='+Z'
24875         ;;
24876       esac
24877       # Is there a better lt_prog_compiler_static that works with the bundled CC?
24878       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
24879       ;;
24880
24881     irix5* | irix6* | nonstopux*)
24882       lt_prog_compiler_wl_GCJ='-Wl,'
24883       # PIC (with -KPIC) is the default.
24884       lt_prog_compiler_static_GCJ='-non_shared'
24885       ;;
24886
24887     newsos6)
24888       lt_prog_compiler_pic_GCJ='-KPIC'
24889       lt_prog_compiler_static_GCJ='-Bstatic'
24890       ;;
24891
24892     linux*)
24893       case $cc_basename in
24894       icc* | ecc*)
24895         lt_prog_compiler_wl_GCJ='-Wl,'
24896         lt_prog_compiler_pic_GCJ='-KPIC'
24897         lt_prog_compiler_static_GCJ='-static'
24898         ;;
24899       pgcc* | pgf77* | pgf90* | pgf95*)
24900         # Portland Group compilers (*not* the Pentium gcc compiler,
24901         # which looks to be a dead project)
24902         lt_prog_compiler_wl_GCJ='-Wl,'
24903         lt_prog_compiler_pic_GCJ='-fpic'
24904         lt_prog_compiler_static_GCJ='-Bstatic'
24905         ;;
24906       ccc*)
24907         lt_prog_compiler_wl_GCJ='-Wl,'
24908         # All Alpha code is PIC.
24909         lt_prog_compiler_static_GCJ='-non_shared'
24910         ;;
24911       esac
24912       ;;
24913
24914     osf3* | osf4* | osf5*)
24915       lt_prog_compiler_wl_GCJ='-Wl,'
24916       # All OSF/1 code is PIC.
24917       lt_prog_compiler_static_GCJ='-non_shared'
24918       ;;
24919
24920     sco3.2v5*)
24921       lt_prog_compiler_pic_GCJ='-Kpic'
24922       lt_prog_compiler_static_GCJ='-dn'
24923       ;;
24924
24925     solaris*)
24926       lt_prog_compiler_pic_GCJ='-KPIC'
24927       lt_prog_compiler_static_GCJ='-Bstatic'
24928       case $cc_basename in
24929       f77* | f90* | f95*)
24930         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
24931       *)
24932         lt_prog_compiler_wl_GCJ='-Wl,';;
24933       esac
24934       ;;
24935
24936     sunos4*)
24937       lt_prog_compiler_wl_GCJ='-Qoption ld '
24938       lt_prog_compiler_pic_GCJ='-PIC'
24939       lt_prog_compiler_static_GCJ='-Bstatic'
24940       ;;
24941
24942     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
24943       lt_prog_compiler_wl_GCJ='-Wl,'
24944       lt_prog_compiler_pic_GCJ='-KPIC'
24945       lt_prog_compiler_static_GCJ='-Bstatic'
24946       ;;
24947
24948     sysv4*MP*)
24949       if test -d /usr/nec ;then
24950         lt_prog_compiler_pic_GCJ='-Kconform_pic'
24951         lt_prog_compiler_static_GCJ='-Bstatic'
24952       fi
24953       ;;
24954
24955     unicos*)
24956       lt_prog_compiler_wl_GCJ='-Wl,'
24957       lt_prog_compiler_can_build_shared_GCJ=no
24958       ;;
24959
24960     uts4*)
24961       lt_prog_compiler_pic_GCJ='-pic'
24962       lt_prog_compiler_static_GCJ='-Bstatic'
24963       ;;
24964
24965     *)
24966       lt_prog_compiler_can_build_shared_GCJ=no
24967       ;;
24968     esac
24969   fi
24970
24971 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
24972 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
24973
24974 #
24975 # Check to make sure the PIC flag actually works.
24976 #
24977 if test -n "$lt_prog_compiler_pic_GCJ"; then
24978
24979 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
24980 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
24981 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
24982   echo $ECHO_N "(cached) $ECHO_C" >&6
24983 else
24984   lt_prog_compiler_pic_works_GCJ=no
24985   ac_outfile=conftest.$ac_objext
24986    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24987    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
24988    # Insert the option either (1) after the last *FLAGS variable, or
24989    # (2) before a word containing "conftest.", or (3) at the end.
24990    # Note that $ac_compile itself does not contain backslashes and begins
24991    # with a dollar sign (not a hyphen), so the echo should work correctly.
24992    # The option is referenced via a variable to avoid confusing sed.
24993    lt_compile=`echo "$ac_compile" | $SED \
24994    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
24995    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24996    -e 's:$: $lt_compiler_flag:'`
24997    (eval echo "\"\$as_me:24997: $lt_compile\"" >&5)
24998    (eval "$lt_compile" 2>conftest.err)
24999    ac_status=$?
25000    cat conftest.err >&5
25001    echo "$as_me:25001: \$? = $ac_status" >&5
25002    if (exit $ac_status) && test -s "$ac_outfile"; then
25003      # The compiler can only warn and ignore the option if not recognized
25004      # So say no if there are warnings other than the usual output.
25005      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
25006      $SED '/^$/d' conftest.err >conftest.er2
25007      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
25008        lt_prog_compiler_pic_works_GCJ=yes
25009      fi
25010    fi
25011    $rm conftest*
25012
25013 fi
25014 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
25015 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
25016
25017 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
25018     case $lt_prog_compiler_pic_GCJ in
25019      "" | " "*) ;;
25020      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
25021      esac
25022 else
25023     lt_prog_compiler_pic_GCJ=
25024      lt_prog_compiler_can_build_shared_GCJ=no
25025 fi
25026
25027 fi
25028 case $host_os in
25029   # For platforms which do not support PIC, -DPIC is meaningless:
25030   *djgpp*)
25031     lt_prog_compiler_pic_GCJ=
25032     ;;
25033   *)
25034     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
25035     ;;
25036 esac
25037
25038 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
25039 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
25040 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
25041   echo $ECHO_N "(cached) $ECHO_C" >&6
25042 else
25043   lt_cv_prog_compiler_c_o_GCJ=no
25044    $rm -r conftest 2>/dev/null
25045    mkdir conftest
25046    cd conftest
25047    mkdir out
25048    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25049
25050    lt_compiler_flag="-o out/conftest2.$ac_objext"
25051    # Insert the option either (1) after the last *FLAGS variable, or
25052    # (2) before a word containing "conftest.", or (3) at the end.
25053    # Note that $ac_compile itself does not contain backslashes and begins
25054    # with a dollar sign (not a hyphen), so the echo should work correctly.
25055    lt_compile=`echo "$ac_compile" | $SED \
25056    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
25057    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
25058    -e 's:$: $lt_compiler_flag:'`
25059    (eval echo "\"\$as_me:25059: $lt_compile\"" >&5)
25060    (eval "$lt_compile" 2>out/conftest.err)
25061    ac_status=$?
25062    cat out/conftest.err >&5
25063    echo "$as_me:25063: \$? = $ac_status" >&5
25064    if (exit $ac_status) && test -s out/conftest2.$ac_objext
25065    then
25066      # The compiler can only warn and ignore the option if not recognized
25067      # So say no if there are warnings
25068      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
25069      $SED '/^$/d' out/conftest.err >out/conftest.er2
25070      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
25071        lt_cv_prog_compiler_c_o_GCJ=yes
25072      fi
25073    fi
25074    chmod u+w . 2>&5
25075    $rm conftest*
25076    # SGI C++ compiler will create directory out/ii_files/ for
25077    # template instantiation
25078    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
25079    $rm out/* && rmdir out
25080    cd ..
25081    rmdir conftest
25082    $rm conftest*
25083
25084 fi
25085 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
25086 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
25087
25088
25089 hard_links="nottested"
25090 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
25091   # do not overwrite the value of need_locks provided by the user
25092   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
25093 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
25094   hard_links=yes
25095   $rm conftest*
25096   ln conftest.a conftest.b 2>/dev/null && hard_links=no
25097   touch conftest.a
25098   ln conftest.a conftest.b 2>&5 || hard_links=no
25099   ln conftest.a conftest.b 2>/dev/null && hard_links=no
25100   echo "$as_me:$LINENO: result: $hard_links" >&5
25101 echo "${ECHO_T}$hard_links" >&6
25102   if test "$hard_links" = no; then
25103     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
25104 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
25105     need_locks=warn
25106   fi
25107 else
25108   need_locks=no
25109 fi
25110
25111 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
25112 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
25113
25114   runpath_var=
25115   allow_undefined_flag_GCJ=
25116   enable_shared_with_static_runtimes_GCJ=no
25117   archive_cmds_GCJ=
25118   archive_expsym_cmds_GCJ=
25119   old_archive_From_new_cmds_GCJ=
25120   old_archive_from_expsyms_cmds_GCJ=
25121   export_dynamic_flag_spec_GCJ=
25122   whole_archive_flag_spec_GCJ=
25123   thread_safe_flag_spec_GCJ=
25124   hardcode_libdir_flag_spec_GCJ=
25125   hardcode_libdir_flag_spec_ld_GCJ=
25126   hardcode_libdir_separator_GCJ=
25127   hardcode_direct_GCJ=no
25128   hardcode_minus_L_GCJ=no
25129   hardcode_shlibpath_var_GCJ=unsupported
25130   link_all_deplibs_GCJ=unknown
25131   hardcode_automatic_GCJ=no
25132   module_cmds_GCJ=
25133   module_expsym_cmds_GCJ=
25134   always_export_symbols_GCJ=no
25135   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
25136   # include_expsyms should be a list of space-separated symbols to be *always*
25137   # included in the symbol list
25138   include_expsyms_GCJ=
25139   # exclude_expsyms can be an extended regexp of symbols to exclude
25140   # it will be wrapped by ` (' and `)$', so one must not match beginning or
25141   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
25142   # as well as any symbol that contains `d'.
25143   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
25144   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
25145   # platforms (ab)use it in PIC code, but their linkers get confused if
25146   # the symbol is explicitly referenced.  Since portable code cannot
25147   # rely on this symbol name, it's probably fine to never include it in
25148   # preloaded symbol tables.
25149   extract_expsyms_cmds=
25150   # Just being paranoid about ensuring that cc_basename is set.
25151   for cc_temp in $compiler""; do
25152   case $cc_temp in
25153     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
25154     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
25155     \-*) ;;
25156     *) break;;
25157   esac
25158 done
25159 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
25160
25161   case $host_os in
25162   cygwin* | mingw* | pw32*)
25163     # FIXME: the MSVC++ port hasn't been tested in a loooong time
25164     # When not using gcc, we currently assume that we are using
25165     # Microsoft Visual C++.
25166     if test "$GCC" != yes; then
25167       with_gnu_ld=no
25168     fi
25169     ;;
25170   openbsd*)
25171     with_gnu_ld=no
25172     ;;
25173   esac
25174
25175   ld_shlibs_GCJ=yes
25176   if test "$with_gnu_ld" = yes; then
25177     # If archive_cmds runs LD, not CC, wlarc should be empty
25178     wlarc='${wl}'
25179
25180     # Set some defaults for GNU ld with shared library support. These
25181     # are reset later if shared libraries are not supported. Putting them
25182     # here allows them to be overridden if necessary.
25183     runpath_var=LD_RUN_PATH
25184     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
25185     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
25186     # ancient GNU ld didn't support --whole-archive et. al.
25187     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
25188         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
25189       else
25190         whole_archive_flag_spec_GCJ=
25191     fi
25192     supports_anon_versioning=no
25193     case `$LD -v 2>/dev/null` in
25194       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
25195       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
25196       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
25197       *\ 2.11.*) ;; # other 2.11 versions
25198       *) supports_anon_versioning=yes ;;
25199     esac
25200
25201     # See if GNU ld supports shared libraries.
25202     case $host_os in
25203     aix3* | aix4* | aix5*)
25204       # On AIX/PPC, the GNU linker is very broken
25205       if test "$host_cpu" != ia64; then
25206         ld_shlibs_GCJ=no
25207         cat <<EOF 1>&2
25208
25209 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
25210 *** to be unable to reliably create shared libraries on AIX.
25211 *** Therefore, libtool is disabling shared libraries support.  If you
25212 *** really care for shared libraries, you may want to modify your PATH
25213 *** so that a non-GNU linker is found, and then restart.
25214
25215 EOF
25216       fi
25217       ;;
25218
25219     amigaos*)
25220       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)'
25221       hardcode_libdir_flag_spec_GCJ='-L$libdir'
25222       hardcode_minus_L_GCJ=yes
25223
25224       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
25225       # that the semantics of dynamic libraries on AmigaOS, at least up
25226       # to version 4, is to share data among multiple programs linked
25227       # with the same dynamic library.  Since this doesn't match the
25228       # behavior of shared libraries on other platforms, we can't use
25229       # them.
25230       ld_shlibs_GCJ=no
25231       ;;
25232
25233     beos*)
25234       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
25235         allow_undefined_flag_GCJ=unsupported
25236         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
25237         # support --undefined.  This deserves some investigation.  FIXME
25238         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
25239       else
25240         ld_shlibs_GCJ=no
25241       fi
25242       ;;
25243
25244     cygwin* | mingw* | pw32*)
25245       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
25246       # as there is no search path for DLLs.
25247       hardcode_libdir_flag_spec_GCJ='-L$libdir'
25248       allow_undefined_flag_GCJ=unsupported
25249       always_export_symbols_GCJ=no
25250       enable_shared_with_static_runtimes_GCJ=yes
25251       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
25252
25253       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
25254         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
25255         # If the export-symbols file already is a .def file (1st line
25256         # is EXPORTS), use it as is; otherwise, prepend...
25257         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
25258           cp $export_symbols $output_objdir/$soname.def;
25259         else
25260           echo EXPORTS > $output_objdir/$soname.def;
25261           cat $export_symbols >> $output_objdir/$soname.def;
25262         fi~
25263         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
25264       else
25265         ld_shlibs_GCJ=no
25266       fi
25267       ;;
25268
25269     linux*)
25270       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
25271         tmp_addflag=
25272         case $cc_basename,$host_cpu in
25273         pgcc*)                          # Portland Group C compiler
25274           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'
25275           tmp_addflag=' $pic_flag'
25276           ;;
25277         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
25278           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'
25279           tmp_addflag=' $pic_flag -Mnomain' ;;
25280         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
25281           tmp_addflag=' -i_dynamic' ;;
25282         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
25283           tmp_addflag=' -i_dynamic -nofor_main' ;;
25284         ifc* | ifort*)                  # Intel Fortran compiler
25285           tmp_addflag=' -nofor_main' ;;
25286         esac
25287         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
25288
25289         if test $supports_anon_versioning = yes; then
25290           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
25291   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
25292   $echo "local: *; };" >> $output_objdir/$libname.ver~
25293           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
25294         fi
25295       else
25296         ld_shlibs_GCJ=no
25297       fi
25298       ;;
25299
25300     netbsd*)
25301       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25302         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
25303         wlarc=
25304       else
25305         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
25306         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
25307       fi
25308       ;;
25309
25310     solaris* | sysv5*)
25311       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
25312         ld_shlibs_GCJ=no
25313         cat <<EOF 1>&2
25314
25315 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
25316 *** create shared libraries on Solaris systems.  Therefore, libtool
25317 *** is disabling shared libraries support.  We urge you to upgrade GNU
25318 *** binutils to release 2.9.1 or newer.  Another option is to modify
25319 *** your PATH or compiler configuration so that the native linker is
25320 *** used, and then restart.
25321
25322 EOF
25323       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
25324         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
25325         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
25326       else
25327         ld_shlibs_GCJ=no
25328       fi
25329       ;;
25330
25331     sunos4*)
25332       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25333       wlarc=
25334       hardcode_direct_GCJ=yes
25335       hardcode_shlibpath_var_GCJ=no
25336       ;;
25337
25338     *)
25339       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
25340         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
25341         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
25342       else
25343         ld_shlibs_GCJ=no
25344       fi
25345       ;;
25346     esac
25347
25348     if test "$ld_shlibs_GCJ" = no; then
25349       runpath_var=
25350       hardcode_libdir_flag_spec_GCJ=
25351       export_dynamic_flag_spec_GCJ=
25352       whole_archive_flag_spec_GCJ=
25353     fi
25354   else
25355     # PORTME fill in a description of your system's linker (not GNU ld)
25356     case $host_os in
25357     aix3*)
25358       allow_undefined_flag_GCJ=unsupported
25359       always_export_symbols_GCJ=yes
25360       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'
25361       # Note: this linker hardcodes the directories in LIBPATH if there
25362       # are no directories specified by -L.
25363       hardcode_minus_L_GCJ=yes
25364       if test "$GCC" = yes && test -z "$link_static_flag"; then
25365         # Neither direct hardcoding nor static linking is supported with a
25366         # broken collect2.
25367         hardcode_direct_GCJ=unsupported
25368       fi
25369       ;;
25370
25371     aix4* | aix5*)
25372       if test "$host_cpu" = ia64; then
25373         # On IA64, the linker does run time linking by default, so we don't
25374         # have to do anything special.
25375         aix_use_runtimelinking=no
25376         exp_sym_flag='-Bexport'
25377         no_entry_flag=""
25378       else
25379         # If we're using GNU nm, then we don't want the "-C" option.
25380         # -C means demangle to AIX nm, but means don't demangle with GNU nm
25381         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
25382           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'
25383         else
25384           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'
25385         fi
25386         aix_use_runtimelinking=no
25387
25388         # Test if we are trying to use run time linking or normal
25389         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
25390         # need to do runtime linking.
25391         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
25392           for ld_flag in $LDFLAGS; do
25393           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
25394             aix_use_runtimelinking=yes
25395             break
25396           fi
25397           done
25398         esac
25399
25400         exp_sym_flag='-bexport'
25401         no_entry_flag='-bnoentry'
25402       fi
25403
25404       # When large executables or shared objects are built, AIX ld can
25405       # have problems creating the table of contents.  If linking a library
25406       # or program results in "error TOC overflow" add -mminimal-toc to
25407       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
25408       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
25409
25410       archive_cmds_GCJ=''
25411       hardcode_direct_GCJ=yes
25412       hardcode_libdir_separator_GCJ=':'
25413       link_all_deplibs_GCJ=yes
25414
25415       if test "$GCC" = yes; then
25416         case $host_os in aix4.[012]|aix4.[012].*)
25417         # We only want to do this on AIX 4.2 and lower, the check
25418         # below for broken collect2 doesn't work under 4.3+
25419           collect2name=`${CC} -print-prog-name=collect2`
25420           if test -f "$collect2name" && \
25421            strings "$collect2name" | grep resolve_lib_name >/dev/null
25422           then
25423           # We have reworked collect2
25424           hardcode_direct_GCJ=yes
25425           else
25426           # We have old collect2
25427           hardcode_direct_GCJ=unsupported
25428           # It fails to find uninstalled libraries when the uninstalled
25429           # path is not listed in the libpath.  Setting hardcode_minus_L
25430           # to unsupported forces relinking
25431           hardcode_minus_L_GCJ=yes
25432           hardcode_libdir_flag_spec_GCJ='-L$libdir'
25433           hardcode_libdir_separator_GCJ=
25434           fi
25435         esac
25436         shared_flag='-shared'
25437         if test "$aix_use_runtimelinking" = yes; then
25438           shared_flag="$shared_flag "'${wl}-G'
25439         fi
25440       else
25441         # not using gcc
25442         if test "$host_cpu" = ia64; then
25443         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
25444         # chokes on -Wl,-G. The following line is correct:
25445           shared_flag='-G'
25446         else
25447         if test "$aix_use_runtimelinking" = yes; then
25448             shared_flag='${wl}-G'
25449           else
25450             shared_flag='${wl}-bM:SRE'
25451         fi
25452         fi
25453       fi
25454
25455       # It seems that -bexpall does not export symbols beginning with
25456       # underscore (_), so it is better to generate a list of symbols to export.
25457       always_export_symbols_GCJ=yes
25458       if test "$aix_use_runtimelinking" = yes; then
25459         # Warning - without using the other runtime loading flags (-brtl),
25460         # -berok will link without error, but may produce a broken library.
25461         allow_undefined_flag_GCJ='-berok'
25462        # Determine the default libpath from the value encoded in an empty executable.
25463        cat >conftest.$ac_ext <<_ACEOF
25464 /* confdefs.h.  */
25465 _ACEOF
25466 cat confdefs.h >>conftest.$ac_ext
25467 cat >>conftest.$ac_ext <<_ACEOF
25468 /* end confdefs.h.  */
25469
25470 int
25471 main ()
25472 {
25473
25474   ;
25475   return 0;
25476 }
25477 _ACEOF
25478 rm -f conftest.$ac_objext conftest$ac_exeext
25479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25480   (eval $ac_link) 2>conftest.er1
25481   ac_status=$?
25482   grep -v '^ *+' conftest.er1 >conftest.err
25483   rm -f conftest.er1
25484   cat conftest.err >&5
25485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25486   (exit $ac_status); } &&
25487          { ac_try='test -z "$ac_c_werror_flag"
25488                          || test ! -s conftest.err'
25489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25490   (eval $ac_try) 2>&5
25491   ac_status=$?
25492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25493   (exit $ac_status); }; } &&
25494          { ac_try='test -s conftest$ac_exeext'
25495   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25496   (eval $ac_try) 2>&5
25497   ac_status=$?
25498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25499   (exit $ac_status); }; }; then
25500
25501 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
25502 }'`
25503 # Check for a 64-bit object if we didn't find anything.
25504 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; }
25505 }'`; fi
25506 else
25507   echo "$as_me: failed program was:" >&5
25508 sed 's/^/| /' conftest.$ac_ext >&5
25509
25510 fi
25511 rm -f conftest.err conftest.$ac_objext \
25512       conftest$ac_exeext conftest.$ac_ext
25513 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
25514
25515        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
25516         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"
25517        else
25518         if test "$host_cpu" = ia64; then
25519           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
25520           allow_undefined_flag_GCJ="-z nodefs"
25521           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"
25522         else
25523          # Determine the default libpath from the value encoded in an empty executable.
25524          cat >conftest.$ac_ext <<_ACEOF
25525 /* confdefs.h.  */
25526 _ACEOF
25527 cat confdefs.h >>conftest.$ac_ext
25528 cat >>conftest.$ac_ext <<_ACEOF
25529 /* end confdefs.h.  */
25530
25531 int
25532 main ()
25533 {
25534
25535   ;
25536   return 0;
25537 }
25538 _ACEOF
25539 rm -f conftest.$ac_objext conftest$ac_exeext
25540 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25541   (eval $ac_link) 2>conftest.er1
25542   ac_status=$?
25543   grep -v '^ *+' conftest.er1 >conftest.err
25544   rm -f conftest.er1
25545   cat conftest.err >&5
25546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25547   (exit $ac_status); } &&
25548          { ac_try='test -z "$ac_c_werror_flag"
25549                          || test ! -s conftest.err'
25550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25551   (eval $ac_try) 2>&5
25552   ac_status=$?
25553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25554   (exit $ac_status); }; } &&
25555          { ac_try='test -s conftest$ac_exeext'
25556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25557   (eval $ac_try) 2>&5
25558   ac_status=$?
25559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25560   (exit $ac_status); }; }; then
25561
25562 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
25563 }'`
25564 # Check for a 64-bit object if we didn't find anything.
25565 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; }
25566 }'`; fi
25567 else
25568   echo "$as_me: failed program was:" >&5
25569 sed 's/^/| /' conftest.$ac_ext >&5
25570
25571 fi
25572 rm -f conftest.err conftest.$ac_objext \
25573       conftest$ac_exeext conftest.$ac_ext
25574 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
25575
25576          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
25577           # Warning - without using the other run time loading flags,
25578           # -berok will link without error, but may produce a broken library.
25579           no_undefined_flag_GCJ=' ${wl}-bernotok'
25580           allow_undefined_flag_GCJ=' ${wl}-berok'
25581           # -bexpall does not export symbols beginning with underscore (_)
25582           always_export_symbols_GCJ=yes
25583           # Exported symbols can be pulled into shared objects from archives
25584           whole_archive_flag_spec_GCJ=' '
25585           archive_cmds_need_lc_GCJ=yes
25586           # This is similar to how AIX traditionally builds its shared libraries.
25587           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'
25588         fi
25589       fi
25590       ;;
25591
25592     amigaos*)
25593       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)'
25594       hardcode_libdir_flag_spec_GCJ='-L$libdir'
25595       hardcode_minus_L_GCJ=yes
25596       # see comment about different semantics on the GNU ld section
25597       ld_shlibs_GCJ=no
25598       ;;
25599
25600     bsdi[45]*)
25601       export_dynamic_flag_spec_GCJ=-rdynamic
25602       ;;
25603
25604     cygwin* | mingw* | pw32*)
25605       # When not using gcc, we currently assume that we are using
25606       # Microsoft Visual C++.
25607       # hardcode_libdir_flag_spec is actually meaningless, as there is
25608       # no search path for DLLs.
25609       hardcode_libdir_flag_spec_GCJ=' '
25610       allow_undefined_flag_GCJ=unsupported
25611       # Tell ltmain to make .lib files, not .a files.
25612       libext=lib
25613       # Tell ltmain to make .dll files, not .so files.
25614       shrext_cmds=".dll"
25615       # FIXME: Setting linknames here is a bad hack.
25616       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
25617       # The linker will automatically build a .lib file if we build a DLL.
25618       old_archive_From_new_cmds_GCJ='true'
25619       # FIXME: Should let the user specify the lib program.
25620       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
25621       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
25622       enable_shared_with_static_runtimes_GCJ=yes
25623       ;;
25624
25625     darwin* | rhapsody*)
25626       case $host_os in
25627         rhapsody* | darwin1.[012])
25628          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
25629          ;;
25630        *) # Darwin 1.3 on
25631          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
25632            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25633          else
25634            case ${MACOSX_DEPLOYMENT_TARGET} in
25635              10.[012])
25636                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25637                ;;
25638              10.*)
25639                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
25640                ;;
25641            esac
25642          fi
25643          ;;
25644       esac
25645       archive_cmds_need_lc_GCJ=no
25646       hardcode_direct_GCJ=no
25647       hardcode_automatic_GCJ=yes
25648       hardcode_shlibpath_var_GCJ=unsupported
25649       whole_archive_flag_spec_GCJ=''
25650       link_all_deplibs_GCJ=yes
25651     if test "$GCC" = yes ; then
25652         output_verbose_link_cmd='echo'
25653         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
25654       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
25655       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
25656       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}'
25657       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}'
25658     else
25659       case $cc_basename in
25660         xlc*)
25661          output_verbose_link_cmd='echo'
25662          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
25663          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
25664           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
25665          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}'
25666           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}'
25667           ;;
25668        *)
25669          ld_shlibs_GCJ=no
25670           ;;
25671       esac
25672     fi
25673       ;;
25674
25675     dgux*)
25676       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25677       hardcode_libdir_flag_spec_GCJ='-L$libdir'
25678       hardcode_shlibpath_var_GCJ=no
25679       ;;
25680
25681     freebsd1*)
25682       ld_shlibs_GCJ=no
25683       ;;
25684
25685     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
25686     # support.  Future versions do this automatically, but an explicit c++rt0.o
25687     # does not break anything, and helps significantly (at the cost of a little
25688     # extra space).
25689     freebsd2.2*)
25690       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
25691       hardcode_libdir_flag_spec_GCJ='-R$libdir'
25692       hardcode_direct_GCJ=yes
25693       hardcode_shlibpath_var_GCJ=no
25694       ;;
25695
25696     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
25697     freebsd2*)
25698       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25699       hardcode_direct_GCJ=yes
25700       hardcode_minus_L_GCJ=yes
25701       hardcode_shlibpath_var_GCJ=no
25702       ;;
25703
25704     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
25705     freebsd* | kfreebsd*-gnu | dragonfly*)
25706       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
25707       hardcode_libdir_flag_spec_GCJ='-R$libdir'
25708       hardcode_direct_GCJ=yes
25709       hardcode_shlibpath_var_GCJ=no
25710       ;;
25711
25712     hpux9*)
25713       if test "$GCC" = yes; then
25714         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'
25715       else
25716         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'
25717       fi
25718       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25719       hardcode_libdir_separator_GCJ=:
25720       hardcode_direct_GCJ=yes
25721
25722       # hardcode_minus_L: Not really in the search PATH,
25723       # but as the default location of the library.
25724       hardcode_minus_L_GCJ=yes
25725       export_dynamic_flag_spec_GCJ='${wl}-E'
25726       ;;
25727
25728     hpux10* | hpux11*)
25729       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
25730         case $host_cpu in
25731         hppa*64*|ia64*)
25732           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25733           ;;
25734         *)
25735           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25736           ;;
25737         esac
25738       else
25739         case $host_cpu in
25740         hppa*64*|ia64*)
25741           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
25742           ;;
25743         *)
25744           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
25745           ;;
25746         esac
25747       fi
25748       if test "$with_gnu_ld" = no; then
25749         case $host_cpu in
25750         hppa*64*)
25751           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25752           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
25753           hardcode_libdir_separator_GCJ=:
25754           hardcode_direct_GCJ=no
25755           hardcode_shlibpath_var_GCJ=no
25756           ;;
25757         ia64*)
25758           hardcode_libdir_flag_spec_GCJ='-L$libdir'
25759           hardcode_direct_GCJ=no
25760           hardcode_shlibpath_var_GCJ=no
25761
25762           # hardcode_minus_L: Not really in the search PATH,
25763           # but as the default location of the library.
25764           hardcode_minus_L_GCJ=yes
25765           ;;
25766         *)
25767           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25768           hardcode_libdir_separator_GCJ=:
25769           hardcode_direct_GCJ=yes
25770           export_dynamic_flag_spec_GCJ='${wl}-E'
25771
25772           # hardcode_minus_L: Not really in the search PATH,
25773           # but as the default location of the library.
25774           hardcode_minus_L_GCJ=yes
25775           ;;
25776         esac
25777       fi
25778       ;;
25779
25780     irix5* | irix6* | nonstopux*)
25781       if test "$GCC" = yes; then
25782         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'
25783       else
25784         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'
25785         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
25786       fi
25787       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25788       hardcode_libdir_separator_GCJ=:
25789       link_all_deplibs_GCJ=yes
25790       ;;
25791
25792     netbsd*)
25793       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25794         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
25795       else
25796         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
25797       fi
25798       hardcode_libdir_flag_spec_GCJ='-R$libdir'
25799       hardcode_direct_GCJ=yes
25800       hardcode_shlibpath_var_GCJ=no
25801       ;;
25802
25803     newsos6)
25804       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25805       hardcode_direct_GCJ=yes
25806       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25807       hardcode_libdir_separator_GCJ=:
25808       hardcode_shlibpath_var_GCJ=no
25809       ;;
25810
25811     openbsd*)
25812       hardcode_direct_GCJ=yes
25813       hardcode_shlibpath_var_GCJ=no
25814       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25815         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25816         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
25817         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25818         export_dynamic_flag_spec_GCJ='${wl}-E'
25819       else
25820        case $host_os in
25821          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
25822            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25823            hardcode_libdir_flag_spec_GCJ='-R$libdir'
25824            ;;
25825          *)
25826            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25827            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25828            ;;
25829        esac
25830       fi
25831       ;;
25832
25833     os2*)
25834       hardcode_libdir_flag_spec_GCJ='-L$libdir'
25835       hardcode_minus_L_GCJ=yes
25836       allow_undefined_flag_GCJ=unsupported
25837       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'
25838       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
25839       ;;
25840
25841     osf3*)
25842       if test "$GCC" = yes; then
25843         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25844         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'
25845       else
25846         allow_undefined_flag_GCJ=' -expect_unresolved \*'
25847         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'
25848       fi
25849       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25850       hardcode_libdir_separator_GCJ=:
25851       ;;
25852
25853     osf4* | osf5*)      # as osf3* with the addition of -msym flag
25854       if test "$GCC" = yes; then
25855         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25856         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'
25857         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25858       else
25859         allow_undefined_flag_GCJ=' -expect_unresolved \*'
25860         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'
25861         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~
25862         $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'
25863
25864         # Both c and cxx compiler support -rpath directly
25865         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
25866       fi
25867       hardcode_libdir_separator_GCJ=:
25868       ;;
25869
25870     sco3.2v5*)
25871       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25872       hardcode_shlibpath_var_GCJ=no
25873       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
25874       runpath_var=LD_RUN_PATH
25875       hardcode_runpath_var=yes
25876       ;;
25877
25878     solaris*)
25879       no_undefined_flag_GCJ=' -z text'
25880       if test "$GCC" = yes; then
25881         wlarc='${wl}'
25882         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25883         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25884           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
25885       else
25886         wlarc=''
25887         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
25888         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25889         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
25890       fi
25891       hardcode_libdir_flag_spec_GCJ='-R$libdir'
25892       hardcode_shlibpath_var_GCJ=no
25893       case $host_os in
25894       solaris2.[0-5] | solaris2.[0-5].*) ;;
25895       *)
25896         # The compiler driver will combine linker options so we
25897         # cannot just pass the convience library names through
25898         # without $wl, iff we do not link with $LD.
25899         # Luckily, gcc supports the same syntax we need for Sun Studio.
25900         # Supported since Solaris 2.6 (maybe 2.5.1?)
25901         case $wlarc in
25902         '')
25903           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
25904         *)
25905           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' ;;
25906         esac ;;
25907       esac
25908       link_all_deplibs_GCJ=yes
25909       ;;
25910
25911     sunos4*)
25912       if test "x$host_vendor" = xsequent; then
25913         # Use $CC to link under sequent, because it throws in some extra .o
25914         # files that make .init and .fini sections work.
25915         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25916       else
25917         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25918       fi
25919       hardcode_libdir_flag_spec_GCJ='-L$libdir'
25920       hardcode_direct_GCJ=yes
25921       hardcode_minus_L_GCJ=yes
25922       hardcode_shlibpath_var_GCJ=no
25923       ;;
25924
25925     sysv4)
25926       case $host_vendor in
25927         sni)
25928           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25929           hardcode_direct_GCJ=yes # is this really true???
25930         ;;
25931         siemens)
25932           ## LD is ld it makes a PLAMLIB
25933           ## CC just makes a GrossModule.
25934           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25935           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
25936           hardcode_direct_GCJ=no
25937         ;;
25938         motorola)
25939           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25940           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
25941         ;;
25942       esac
25943       runpath_var='LD_RUN_PATH'
25944       hardcode_shlibpath_var_GCJ=no
25945       ;;
25946
25947     sysv4.3*)
25948       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25949       hardcode_shlibpath_var_GCJ=no
25950       export_dynamic_flag_spec_GCJ='-Bexport'
25951       ;;
25952
25953     sysv4*MP*)
25954       if test -d /usr/nec; then
25955         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25956         hardcode_shlibpath_var_GCJ=no
25957         runpath_var=LD_RUN_PATH
25958         hardcode_runpath_var=yes
25959         ld_shlibs_GCJ=yes
25960       fi
25961       ;;
25962
25963     sysv4.2uw2*)
25964       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25965       hardcode_direct_GCJ=yes
25966       hardcode_minus_L_GCJ=no
25967       hardcode_shlibpath_var_GCJ=no
25968       hardcode_runpath_var=yes
25969       runpath_var=LD_RUN_PATH
25970       ;;
25971
25972    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
25973       no_undefined_flag_GCJ='${wl}-z ${wl}text'
25974       if test "$GCC" = yes; then
25975         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25976       else
25977         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25978       fi
25979       runpath_var='LD_RUN_PATH'
25980       hardcode_shlibpath_var_GCJ=no
25981       ;;
25982
25983     sysv5*)
25984       no_undefined_flag_GCJ=' -z text'
25985       # $CC -shared without GNU ld will not create a library from C++
25986       # object files and a static libstdc++, better avoid it by now
25987       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
25988       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25989                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
25990       hardcode_libdir_flag_spec_GCJ=
25991       hardcode_shlibpath_var_GCJ=no
25992       runpath_var='LD_RUN_PATH'
25993       ;;
25994
25995     uts4*)
25996       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25997       hardcode_libdir_flag_spec_GCJ='-L$libdir'
25998       hardcode_shlibpath_var_GCJ=no
25999       ;;
26000
26001     *)
26002       ld_shlibs_GCJ=no
26003       ;;
26004     esac
26005   fi
26006
26007 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
26008 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
26009 test "$ld_shlibs_GCJ" = no && can_build_shared=no
26010
26011 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
26012 if test "$GCC" = yes; then
26013   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
26014 fi
26015
26016 #
26017 # Do we need to explicitly link libc?
26018 #
26019 case "x$archive_cmds_need_lc_GCJ" in
26020 x|xyes)
26021   # Assume -lc should be added
26022   archive_cmds_need_lc_GCJ=yes
26023
26024   if test "$enable_shared" = yes && test "$GCC" = yes; then
26025     case $archive_cmds_GCJ in
26026     *'~'*)
26027       # FIXME: we may have to deal with multi-command sequences.
26028       ;;
26029     '$CC '*)
26030       # Test whether the compiler implicitly links with -lc since on some
26031       # systems, -lgcc has to come before -lc. If gcc already passes -lc
26032       # to ld, don't add -lc before -lgcc.
26033       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
26034 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
26035       $rm conftest*
26036       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
26037
26038       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26039   (eval $ac_compile) 2>&5
26040   ac_status=$?
26041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26042   (exit $ac_status); } 2>conftest.err; then
26043         soname=conftest
26044         lib=conftest
26045         libobjs=conftest.$ac_objext
26046         deplibs=
26047         wl=$lt_prog_compiler_wl_GCJ
26048         compiler_flags=-v
26049         linker_flags=-v
26050         verstring=
26051         output_objdir=.
26052         libname=conftest
26053         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
26054         allow_undefined_flag_GCJ=
26055         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
26056   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
26057   ac_status=$?
26058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26059   (exit $ac_status); }
26060         then
26061           archive_cmds_need_lc_GCJ=no
26062         else
26063           archive_cmds_need_lc_GCJ=yes
26064         fi
26065         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
26066       else
26067         cat conftest.err 1>&5
26068       fi
26069       $rm conftest*
26070       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
26071 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
26072       ;;
26073     esac
26074   fi
26075   ;;
26076 esac
26077
26078 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
26079 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
26080 library_names_spec=
26081 libname_spec='lib$name'
26082 soname_spec=
26083 shrext_cmds=".so"
26084 postinstall_cmds=
26085 postuninstall_cmds=
26086 finish_cmds=
26087 finish_eval=
26088 shlibpath_var=
26089 shlibpath_overrides_runpath=unknown
26090 version_type=none
26091 dynamic_linker="$host_os ld.so"
26092 sys_lib_dlsearch_path_spec="/lib /usr/lib"
26093 if test "$GCC" = yes; then
26094   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
26095   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
26096     # if the path contains ";" then we assume it to be the separator
26097     # otherwise default to the standard path separator (i.e. ":") - it is
26098     # assumed that no part of a normal pathname contains ";" but that should
26099     # okay in the real world where ";" in dirpaths is itself problematic.
26100     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
26101   else
26102     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
26103   fi
26104 else
26105   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
26106 fi
26107 need_lib_prefix=unknown
26108 hardcode_into_libs=no
26109
26110 # when you set need_version to no, make sure it does not cause -set_version
26111 # flags to be left without arguments
26112 need_version=unknown
26113
26114 case $host_os in
26115 aix3*)
26116   version_type=linux
26117   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
26118   shlibpath_var=LIBPATH
26119
26120   # AIX 3 has no versioning support, so we append a major version to the name.
26121   soname_spec='${libname}${release}${shared_ext}$major'
26122   ;;
26123
26124 aix4* | aix5*)
26125   version_type=linux
26126   need_lib_prefix=no
26127   need_version=no
26128   hardcode_into_libs=yes
26129   if test "$host_cpu" = ia64; then
26130     # AIX 5 supports IA64
26131     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
26132     shlibpath_var=LD_LIBRARY_PATH
26133   else
26134     # With GCC up to 2.95.x, collect2 would create an import file
26135     # for dependence libraries.  The import file would start with
26136     # the line `#! .'.  This would cause the generated library to
26137     # depend on `.', always an invalid library.  This was fixed in
26138     # development snapshots of GCC prior to 3.0.
26139     case $host_os in
26140       aix4 | aix4.[01] | aix4.[01].*)
26141       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
26142            echo ' yes '
26143            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
26144         :
26145       else
26146         can_build_shared=no
26147       fi
26148       ;;
26149     esac
26150     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
26151     # soname into executable. Probably we can add versioning support to
26152     # collect2, so additional links can be useful in future.
26153     if test "$aix_use_runtimelinking" = yes; then
26154       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
26155       # instead of lib<name>.a to let people know that these are not
26156       # typical AIX shared libraries.
26157       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26158     else
26159       # We preserve .a as extension for shared libraries through AIX4.2
26160       # and later when we are not doing run time linking.
26161       library_names_spec='${libname}${release}.a $libname.a'
26162       soname_spec='${libname}${release}${shared_ext}$major'
26163     fi
26164     shlibpath_var=LIBPATH
26165   fi
26166   ;;
26167
26168 amigaos*)
26169   library_names_spec='$libname.ixlibrary $libname.a'
26170   # Create ${libname}_ixlibrary.a entries in /sys/libs.
26171   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'
26172   ;;
26173
26174 beos*)
26175   library_names_spec='${libname}${shared_ext}'
26176   dynamic_linker="$host_os ld.so"
26177   shlibpath_var=LIBRARY_PATH
26178   ;;
26179
26180 bsdi[45]*)
26181   version_type=linux
26182   need_version=no
26183   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26184   soname_spec='${libname}${release}${shared_ext}$major'
26185   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
26186   shlibpath_var=LD_LIBRARY_PATH
26187   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
26188   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
26189   # the default ld.so.conf also contains /usr/contrib/lib and
26190   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
26191   # libtool to hard-code these into programs
26192   ;;
26193
26194 cygwin* | mingw* | pw32*)
26195   version_type=windows
26196   shrext_cmds=".dll"
26197   need_version=no
26198   need_lib_prefix=no
26199
26200   case $GCC,$host_os in
26201   yes,cygwin* | yes,mingw* | yes,pw32*)
26202     library_names_spec='$libname.dll.a'
26203     # DLL is installed to $(libdir)/../bin by postinstall_cmds
26204     postinstall_cmds='base_file=`basename \${file}`~
26205       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
26206       dldir=$destdir/`dirname \$dlpath`~
26207       test -d \$dldir || mkdir -p \$dldir~
26208       $install_prog $dir/$dlname \$dldir/$dlname~
26209       chmod a+x \$dldir/$dlname'
26210     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
26211       dlpath=$dir/\$dldll~
26212        $rm \$dlpath'
26213     shlibpath_overrides_runpath=yes
26214
26215     case $host_os in
26216     cygwin*)
26217       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
26218       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
26219       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
26220       ;;
26221     mingw*)
26222       # MinGW DLLs use traditional 'lib' prefix
26223       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
26224       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
26225       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
26226         # It is most probably a Windows format PATH printed by
26227         # mingw gcc, but we are running on Cygwin. Gcc prints its search
26228         # path with ; separators, and with drive letters. We can handle the
26229         # drive letters (cygwin fileutils understands them), so leave them,
26230         # especially as we might pass files found there to a mingw objdump,
26231         # which wouldn't understand a cygwinified path. Ahh.
26232         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
26233       else
26234         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
26235       fi
26236       ;;
26237     pw32*)
26238       # pw32 DLLs use 'pw' prefix rather than 'lib'
26239       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
26240       ;;
26241     esac
26242     ;;
26243
26244   *)
26245     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
26246     ;;
26247   esac
26248   dynamic_linker='Win32 ld.exe'
26249   # FIXME: first we should search . and the directory the executable is in
26250   shlibpath_var=PATH
26251   ;;
26252
26253 darwin* | rhapsody*)
26254   dynamic_linker="$host_os dyld"
26255   version_type=darwin
26256   need_lib_prefix=no
26257   need_version=no
26258   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
26259   soname_spec='${libname}${release}${major}$shared_ext'
26260   shlibpath_overrides_runpath=yes
26261   shlibpath_var=DYLD_LIBRARY_PATH
26262   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
26263   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
26264   if test "$GCC" = yes; then
26265     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"`
26266   else
26267     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
26268   fi
26269   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
26270   ;;
26271
26272 dgux*)
26273   version_type=linux
26274   need_lib_prefix=no
26275   need_version=no
26276   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
26277   soname_spec='${libname}${release}${shared_ext}$major'
26278   shlibpath_var=LD_LIBRARY_PATH
26279   ;;
26280
26281 freebsd1*)
26282   dynamic_linker=no
26283   ;;
26284
26285 kfreebsd*-gnu)
26286   version_type=linux
26287   need_lib_prefix=no
26288   need_version=no
26289   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
26290   soname_spec='${libname}${release}${shared_ext}$major'
26291   shlibpath_var=LD_LIBRARY_PATH
26292   shlibpath_overrides_runpath=no
26293   hardcode_into_libs=yes
26294   dynamic_linker='GNU ld.so'
26295   ;;
26296
26297 freebsd* | dragonfly*)
26298   # DragonFly does not have aout.  When/if they implement a new
26299   # versioning mechanism, adjust this.
26300   if test -x /usr/bin/objformat; then
26301     objformat=`/usr/bin/objformat`
26302   else
26303     case $host_os in
26304     freebsd[123]*) objformat=aout ;;
26305     *) objformat=elf ;;
26306     esac
26307   fi
26308   version_type=freebsd-$objformat
26309   case $version_type in
26310     freebsd-elf*)
26311       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
26312       need_version=no
26313       need_lib_prefix=no
26314       ;;
26315     freebsd-*)
26316       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
26317       need_version=yes
26318       ;;
26319   esac
26320   shlibpath_var=LD_LIBRARY_PATH
26321   case $host_os in
26322   freebsd2*)
26323     shlibpath_overrides_runpath=yes
26324     ;;
26325   freebsd3.[01]* | freebsdelf3.[01]*)
26326     shlibpath_overrides_runpath=yes
26327     hardcode_into_libs=yes
26328     ;;
26329   *) # from 3.2 on
26330     shlibpath_overrides_runpath=no
26331     hardcode_into_libs=yes
26332     ;;
26333   esac
26334   ;;
26335
26336 gnu*)
26337   version_type=linux
26338   need_lib_prefix=no
26339   need_version=no
26340   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
26341   soname_spec='${libname}${release}${shared_ext}$major'
26342   shlibpath_var=LD_LIBRARY_PATH
26343   hardcode_into_libs=yes
26344   ;;
26345
26346 hpux9* | hpux10* | hpux11*)
26347   # Give a soname corresponding to the major version so that dld.sl refuses to
26348   # link against other versions.
26349   version_type=sunos
26350   need_lib_prefix=no
26351   need_version=no
26352   case $host_cpu in
26353   ia64*)
26354     shrext_cmds='.so'
26355     hardcode_into_libs=yes
26356     dynamic_linker="$host_os dld.so"
26357     shlibpath_var=LD_LIBRARY_PATH
26358     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
26359     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26360     soname_spec='${libname}${release}${shared_ext}$major'
26361     if test "X$HPUX_IA64_MODE" = X32; then
26362       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
26363     else
26364       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
26365     fi
26366     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
26367     ;;
26368    hppa*64*)
26369      shrext_cmds='.sl'
26370      hardcode_into_libs=yes
26371      dynamic_linker="$host_os dld.sl"
26372      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
26373      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
26374      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26375      soname_spec='${libname}${release}${shared_ext}$major'
26376      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
26377      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
26378      ;;
26379    *)
26380     shrext_cmds='.sl'
26381     dynamic_linker="$host_os dld.sl"
26382     shlibpath_var=SHLIB_PATH
26383     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
26384     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26385     soname_spec='${libname}${release}${shared_ext}$major'
26386     ;;
26387   esac
26388   # HP-UX runs *really* slowly unless shared libraries are mode 555.
26389   postinstall_cmds='chmod 555 $lib'
26390   ;;
26391
26392 irix5* | irix6* | nonstopux*)
26393   case $host_os in
26394     nonstopux*) version_type=nonstopux ;;
26395     *)
26396         if test "$lt_cv_prog_gnu_ld" = yes; then
26397                 version_type=linux
26398         else
26399                 version_type=irix
26400         fi ;;
26401   esac
26402   need_lib_prefix=no
26403   need_version=no
26404   soname_spec='${libname}${release}${shared_ext}$major'
26405   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
26406   case $host_os in
26407   irix5* | nonstopux*)
26408     libsuff= shlibsuff=
26409     ;;
26410   *)
26411     case $LD in # libtool.m4 will add one of these switches to LD
26412     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
26413       libsuff= shlibsuff= libmagic=32-bit;;
26414     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
26415       libsuff=32 shlibsuff=N32 libmagic=N32;;
26416     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
26417       libsuff=64 shlibsuff=64 libmagic=64-bit;;
26418     *) libsuff= shlibsuff= libmagic=never-match;;
26419     esac
26420     ;;
26421   esac
26422   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
26423   shlibpath_overrides_runpath=no
26424   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
26425   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
26426   hardcode_into_libs=yes
26427   ;;
26428
26429 # No shared lib support for Linux oldld, aout, or coff.
26430 linux*oldld* | linux*aout* | linux*coff*)
26431   dynamic_linker=no
26432   ;;
26433
26434 # This must be Linux ELF.
26435 linux*)
26436   version_type=linux
26437   need_lib_prefix=no
26438   need_version=no
26439   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26440   soname_spec='${libname}${release}${shared_ext}$major'
26441   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
26442   shlibpath_var=LD_LIBRARY_PATH
26443   shlibpath_overrides_runpath=no
26444   # This implies no fast_install, which is unacceptable.
26445   # Some rework will be needed to allow for fast_install
26446   # before this can be enabled.
26447   hardcode_into_libs=yes
26448
26449   # Append ld.so.conf contents to the search path
26450   if test -f /etc/ld.so.conf; then
26451     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' ' '`
26452     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
26453   fi
26454
26455   # We used to test for /lib/ld.so.1 and disable shared libraries on
26456   # powerpc, because MkLinux only supported shared libraries with the
26457   # GNU dynamic linker.  Since this was broken with cross compilers,
26458   # most powerpc-linux boxes support dynamic linking these days and
26459   # people can always --disable-shared, the test was removed, and we
26460   # assume the GNU/Linux dynamic linker is in use.
26461   dynamic_linker='GNU/Linux ld.so'
26462   ;;
26463
26464 knetbsd*-gnu)
26465   version_type=linux
26466   need_lib_prefix=no
26467   need_version=no
26468   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
26469   soname_spec='${libname}${release}${shared_ext}$major'
26470   shlibpath_var=LD_LIBRARY_PATH
26471   shlibpath_overrides_runpath=no
26472   hardcode_into_libs=yes
26473   dynamic_linker='GNU ld.so'
26474   ;;
26475
26476 netbsd*)
26477   version_type=sunos
26478   need_lib_prefix=no
26479   need_version=no
26480   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
26481     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26482     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
26483     dynamic_linker='NetBSD (a.out) ld.so'
26484   else
26485     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
26486     soname_spec='${libname}${release}${shared_ext}$major'
26487     dynamic_linker='NetBSD ld.elf_so'
26488   fi
26489   shlibpath_var=LD_LIBRARY_PATH
26490   shlibpath_overrides_runpath=yes
26491   hardcode_into_libs=yes
26492   ;;
26493
26494 newsos6)
26495   version_type=linux
26496   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26497   shlibpath_var=LD_LIBRARY_PATH
26498   shlibpath_overrides_runpath=yes
26499   ;;
26500
26501 nto-qnx*)
26502   version_type=linux
26503   need_lib_prefix=no
26504   need_version=no
26505   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26506   soname_spec='${libname}${release}${shared_ext}$major'
26507   shlibpath_var=LD_LIBRARY_PATH
26508   shlibpath_overrides_runpath=yes
26509   ;;
26510
26511 openbsd*)
26512   version_type=sunos
26513   need_lib_prefix=no
26514   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
26515   case $host_os in
26516     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
26517     *)                         need_version=no  ;;
26518   esac
26519   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26520   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
26521   shlibpath_var=LD_LIBRARY_PATH
26522   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
26523     case $host_os in
26524       openbsd2.[89] | openbsd2.[89].*)
26525         shlibpath_overrides_runpath=no
26526         ;;
26527       *)
26528         shlibpath_overrides_runpath=yes
26529         ;;
26530       esac
26531   else
26532     shlibpath_overrides_runpath=yes
26533   fi
26534   ;;
26535
26536 os2*)
26537   libname_spec='$name'
26538   shrext_cmds=".dll"
26539   need_lib_prefix=no
26540   library_names_spec='$libname${shared_ext} $libname.a'
26541   dynamic_linker='OS/2 ld.exe'
26542   shlibpath_var=LIBPATH
26543   ;;
26544
26545 osf3* | osf4* | osf5*)
26546   version_type=osf
26547   need_lib_prefix=no
26548   need_version=no
26549   soname_spec='${libname}${release}${shared_ext}$major'
26550   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26551   shlibpath_var=LD_LIBRARY_PATH
26552   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
26553   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
26554   ;;
26555
26556 sco3.2v5*)
26557   version_type=osf
26558   soname_spec='${libname}${release}${shared_ext}$major'
26559   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26560   shlibpath_var=LD_LIBRARY_PATH
26561   ;;
26562
26563 solaris*)
26564   version_type=linux
26565   need_lib_prefix=no
26566   need_version=no
26567   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26568   soname_spec='${libname}${release}${shared_ext}$major'
26569   shlibpath_var=LD_LIBRARY_PATH
26570   shlibpath_overrides_runpath=yes
26571   hardcode_into_libs=yes
26572   # ldd complains unless libraries are executable
26573   postinstall_cmds='chmod +x $lib'
26574   ;;
26575
26576 sunos4*)
26577   version_type=sunos
26578   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26579   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
26580   shlibpath_var=LD_LIBRARY_PATH
26581   shlibpath_overrides_runpath=yes
26582   if test "$with_gnu_ld" = yes; then
26583     need_lib_prefix=no
26584   fi
26585   need_version=yes
26586   ;;
26587
26588 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
26589   version_type=linux
26590   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26591   soname_spec='${libname}${release}${shared_ext}$major'
26592   shlibpath_var=LD_LIBRARY_PATH
26593   case $host_vendor in
26594     sni)
26595       shlibpath_overrides_runpath=no
26596       need_lib_prefix=no
26597       export_dynamic_flag_spec='${wl}-Blargedynsym'
26598       runpath_var=LD_RUN_PATH
26599       ;;
26600     siemens)
26601       need_lib_prefix=no
26602       ;;
26603     motorola)
26604       need_lib_prefix=no
26605       need_version=no
26606       shlibpath_overrides_runpath=no
26607       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
26608       ;;
26609   esac
26610   ;;
26611
26612 sysv4*MP*)
26613   if test -d /usr/nec ;then
26614     version_type=linux
26615     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
26616     soname_spec='$libname${shared_ext}.$major'
26617     shlibpath_var=LD_LIBRARY_PATH
26618   fi
26619   ;;
26620
26621 uts4*)
26622   version_type=linux
26623   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26624   soname_spec='${libname}${release}${shared_ext}$major'
26625   shlibpath_var=LD_LIBRARY_PATH
26626   ;;
26627
26628 *)
26629   dynamic_linker=no
26630   ;;
26631 esac
26632 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
26633 echo "${ECHO_T}$dynamic_linker" >&6
26634 test "$dynamic_linker" = no && can_build_shared=no
26635
26636 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
26637 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
26638 hardcode_action_GCJ=
26639 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
26640    test -n "$runpath_var_GCJ" || \
26641    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
26642
26643   # We can hardcode non-existant directories.
26644   if test "$hardcode_direct_GCJ" != no &&
26645      # If the only mechanism to avoid hardcoding is shlibpath_var, we
26646      # have to relink, otherwise we might link with an installed library
26647      # when we should be linking with a yet-to-be-installed one
26648      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
26649      test "$hardcode_minus_L_GCJ" != no; then
26650     # Linking always hardcodes the temporary library directory.
26651     hardcode_action_GCJ=relink
26652   else
26653     # We can link without hardcoding, and we can hardcode nonexisting dirs.
26654     hardcode_action_GCJ=immediate
26655   fi
26656 else
26657   # We cannot hardcode anything, or else we can only hardcode existing
26658   # directories.
26659   hardcode_action_GCJ=unsupported
26660 fi
26661 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
26662 echo "${ECHO_T}$hardcode_action_GCJ" >&6
26663
26664 if test "$hardcode_action_GCJ" = relink; then
26665   # Fast installation is not supported
26666   enable_fast_install=no
26667 elif test "$shlibpath_overrides_runpath" = yes ||
26668      test "$enable_shared" = no; then
26669   # Fast installation is not necessary
26670   enable_fast_install=needless
26671 fi
26672
26673 striplib=
26674 old_striplib=
26675 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
26676 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
26677 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
26678   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
26679   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
26680   echo "$as_me:$LINENO: result: yes" >&5
26681 echo "${ECHO_T}yes" >&6
26682 else
26683 # FIXME - insert some real tests, host_os isn't really good enough
26684   case $host_os in
26685    darwin*)
26686        if test -n "$STRIP" ; then
26687          striplib="$STRIP -x"
26688          echo "$as_me:$LINENO: result: yes" >&5
26689 echo "${ECHO_T}yes" >&6
26690        else
26691   echo "$as_me:$LINENO: result: no" >&5
26692 echo "${ECHO_T}no" >&6
26693 fi
26694        ;;
26695    *)
26696   echo "$as_me:$LINENO: result: no" >&5
26697 echo "${ECHO_T}no" >&6
26698     ;;
26699   esac
26700 fi
26701
26702 if test "x$enable_dlopen" != xyes; then
26703   enable_dlopen=unknown
26704   enable_dlopen_self=unknown
26705   enable_dlopen_self_static=unknown
26706 else
26707   lt_cv_dlopen=no
26708   lt_cv_dlopen_libs=
26709
26710   case $host_os in
26711   beos*)
26712     lt_cv_dlopen="load_add_on"
26713     lt_cv_dlopen_libs=
26714     lt_cv_dlopen_self=yes
26715     ;;
26716
26717   mingw* | pw32*)
26718     lt_cv_dlopen="LoadLibrary"
26719     lt_cv_dlopen_libs=
26720    ;;
26721
26722   cygwin*)
26723     lt_cv_dlopen="dlopen"
26724     lt_cv_dlopen_libs=
26725    ;;
26726
26727   darwin*)
26728   # if libdl is installed we need to link against it
26729     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
26730 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
26731 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
26732   echo $ECHO_N "(cached) $ECHO_C" >&6
26733 else
26734   ac_check_lib_save_LIBS=$LIBS
26735 LIBS="-ldl  $LIBS"
26736 cat >conftest.$ac_ext <<_ACEOF
26737 /* confdefs.h.  */
26738 _ACEOF
26739 cat confdefs.h >>conftest.$ac_ext
26740 cat >>conftest.$ac_ext <<_ACEOF
26741 /* end confdefs.h.  */
26742
26743 /* Override any gcc2 internal prototype to avoid an error.  */
26744 #ifdef __cplusplus
26745 extern "C"
26746 #endif
26747 /* We use char because int might match the return type of a gcc2
26748    builtin and then its argument prototype would still apply.  */
26749 char dlopen ();
26750 int
26751 main ()
26752 {
26753 dlopen ();
26754   ;
26755   return 0;
26756 }
26757 _ACEOF
26758 rm -f conftest.$ac_objext conftest$ac_exeext
26759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26760   (eval $ac_link) 2>conftest.er1
26761   ac_status=$?
26762   grep -v '^ *+' conftest.er1 >conftest.err
26763   rm -f conftest.er1
26764   cat conftest.err >&5
26765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26766   (exit $ac_status); } &&
26767          { ac_try='test -z "$ac_c_werror_flag"
26768                          || test ! -s conftest.err'
26769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26770   (eval $ac_try) 2>&5
26771   ac_status=$?
26772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26773   (exit $ac_status); }; } &&
26774          { ac_try='test -s conftest$ac_exeext'
26775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26776   (eval $ac_try) 2>&5
26777   ac_status=$?
26778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26779   (exit $ac_status); }; }; then
26780   ac_cv_lib_dl_dlopen=yes
26781 else
26782   echo "$as_me: failed program was:" >&5
26783 sed 's/^/| /' conftest.$ac_ext >&5
26784
26785 ac_cv_lib_dl_dlopen=no
26786 fi
26787 rm -f conftest.err conftest.$ac_objext \
26788       conftest$ac_exeext conftest.$ac_ext
26789 LIBS=$ac_check_lib_save_LIBS
26790 fi
26791 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
26792 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
26793 if test $ac_cv_lib_dl_dlopen = yes; then
26794   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
26795 else
26796
26797     lt_cv_dlopen="dyld"
26798     lt_cv_dlopen_libs=
26799     lt_cv_dlopen_self=yes
26800
26801 fi
26802
26803    ;;
26804
26805   *)
26806     echo "$as_me:$LINENO: checking for shl_load" >&5
26807 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
26808 if test "${ac_cv_func_shl_load+set}" = set; then
26809   echo $ECHO_N "(cached) $ECHO_C" >&6
26810 else
26811   cat >conftest.$ac_ext <<_ACEOF
26812 /* confdefs.h.  */
26813 _ACEOF
26814 cat confdefs.h >>conftest.$ac_ext
26815 cat >>conftest.$ac_ext <<_ACEOF
26816 /* end confdefs.h.  */
26817 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
26818    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26819 #define shl_load innocuous_shl_load
26820
26821 /* System header to define __stub macros and hopefully few prototypes,
26822     which can conflict with char shl_load (); below.
26823     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26824     <limits.h> exists even on freestanding compilers.  */
26825
26826 #ifdef __STDC__
26827 # include <limits.h>
26828 #else
26829 # include <assert.h>
26830 #endif
26831
26832 #undef shl_load
26833
26834 /* Override any gcc2 internal prototype to avoid an error.  */
26835 #ifdef __cplusplus
26836 extern "C"
26837 {
26838 #endif
26839 /* We use char because int might match the return type of a gcc2
26840    builtin and then its argument prototype would still apply.  */
26841 char shl_load ();
26842 /* The GNU C library defines this for functions which it implements
26843     to always fail with ENOSYS.  Some functions are actually named
26844     something starting with __ and the normal name is an alias.  */
26845 #if defined (__stub_shl_load) || defined (__stub___shl_load)
26846 choke me
26847 #else
26848 char (*f) () = shl_load;
26849 #endif
26850 #ifdef __cplusplus
26851 }
26852 #endif
26853
26854 int
26855 main ()
26856 {
26857 return f != shl_load;
26858   ;
26859   return 0;
26860 }
26861 _ACEOF
26862 rm -f conftest.$ac_objext conftest$ac_exeext
26863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26864   (eval $ac_link) 2>conftest.er1
26865   ac_status=$?
26866   grep -v '^ *+' conftest.er1 >conftest.err
26867   rm -f conftest.er1
26868   cat conftest.err >&5
26869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26870   (exit $ac_status); } &&
26871          { ac_try='test -z "$ac_c_werror_flag"
26872                          || test ! -s conftest.err'
26873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26874   (eval $ac_try) 2>&5
26875   ac_status=$?
26876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26877   (exit $ac_status); }; } &&
26878          { ac_try='test -s conftest$ac_exeext'
26879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26880   (eval $ac_try) 2>&5
26881   ac_status=$?
26882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26883   (exit $ac_status); }; }; then
26884   ac_cv_func_shl_load=yes
26885 else
26886   echo "$as_me: failed program was:" >&5
26887 sed 's/^/| /' conftest.$ac_ext >&5
26888
26889 ac_cv_func_shl_load=no
26890 fi
26891 rm -f conftest.err conftest.$ac_objext \
26892       conftest$ac_exeext conftest.$ac_ext
26893 fi
26894 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
26895 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
26896 if test $ac_cv_func_shl_load = yes; then
26897   lt_cv_dlopen="shl_load"
26898 else
26899   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
26900 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
26901 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
26902   echo $ECHO_N "(cached) $ECHO_C" >&6
26903 else
26904   ac_check_lib_save_LIBS=$LIBS
26905 LIBS="-ldld  $LIBS"
26906 cat >conftest.$ac_ext <<_ACEOF
26907 /* confdefs.h.  */
26908 _ACEOF
26909 cat confdefs.h >>conftest.$ac_ext
26910 cat >>conftest.$ac_ext <<_ACEOF
26911 /* end confdefs.h.  */
26912
26913 /* Override any gcc2 internal prototype to avoid an error.  */
26914 #ifdef __cplusplus
26915 extern "C"
26916 #endif
26917 /* We use char because int might match the return type of a gcc2
26918    builtin and then its argument prototype would still apply.  */
26919 char shl_load ();
26920 int
26921 main ()
26922 {
26923 shl_load ();
26924   ;
26925   return 0;
26926 }
26927 _ACEOF
26928 rm -f conftest.$ac_objext conftest$ac_exeext
26929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26930   (eval $ac_link) 2>conftest.er1
26931   ac_status=$?
26932   grep -v '^ *+' conftest.er1 >conftest.err
26933   rm -f conftest.er1
26934   cat conftest.err >&5
26935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26936   (exit $ac_status); } &&
26937          { ac_try='test -z "$ac_c_werror_flag"
26938                          || test ! -s conftest.err'
26939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26940   (eval $ac_try) 2>&5
26941   ac_status=$?
26942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26943   (exit $ac_status); }; } &&
26944          { ac_try='test -s conftest$ac_exeext'
26945   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26946   (eval $ac_try) 2>&5
26947   ac_status=$?
26948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26949   (exit $ac_status); }; }; then
26950   ac_cv_lib_dld_shl_load=yes
26951 else
26952   echo "$as_me: failed program was:" >&5
26953 sed 's/^/| /' conftest.$ac_ext >&5
26954
26955 ac_cv_lib_dld_shl_load=no
26956 fi
26957 rm -f conftest.err conftest.$ac_objext \
26958       conftest$ac_exeext conftest.$ac_ext
26959 LIBS=$ac_check_lib_save_LIBS
26960 fi
26961 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
26962 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
26963 if test $ac_cv_lib_dld_shl_load = yes; then
26964   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
26965 else
26966   echo "$as_me:$LINENO: checking for dlopen" >&5
26967 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
26968 if test "${ac_cv_func_dlopen+set}" = set; then
26969   echo $ECHO_N "(cached) $ECHO_C" >&6
26970 else
26971   cat >conftest.$ac_ext <<_ACEOF
26972 /* confdefs.h.  */
26973 _ACEOF
26974 cat confdefs.h >>conftest.$ac_ext
26975 cat >>conftest.$ac_ext <<_ACEOF
26976 /* end confdefs.h.  */
26977 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
26978    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26979 #define dlopen innocuous_dlopen
26980
26981 /* System header to define __stub macros and hopefully few prototypes,
26982     which can conflict with char dlopen (); below.
26983     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26984     <limits.h> exists even on freestanding compilers.  */
26985
26986 #ifdef __STDC__
26987 # include <limits.h>
26988 #else
26989 # include <assert.h>
26990 #endif
26991
26992 #undef dlopen
26993
26994 /* Override any gcc2 internal prototype to avoid an error.  */
26995 #ifdef __cplusplus
26996 extern "C"
26997 {
26998 #endif
26999 /* We use char because int might match the return type of a gcc2
27000    builtin and then its argument prototype would still apply.  */
27001 char dlopen ();
27002 /* The GNU C library defines this for functions which it implements
27003     to always fail with ENOSYS.  Some functions are actually named
27004     something starting with __ and the normal name is an alias.  */
27005 #if defined (__stub_dlopen) || defined (__stub___dlopen)
27006 choke me
27007 #else
27008 char (*f) () = dlopen;
27009 #endif
27010 #ifdef __cplusplus
27011 }
27012 #endif
27013
27014 int
27015 main ()
27016 {
27017 return f != dlopen;
27018   ;
27019   return 0;
27020 }
27021 _ACEOF
27022 rm -f conftest.$ac_objext conftest$ac_exeext
27023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27024   (eval $ac_link) 2>conftest.er1
27025   ac_status=$?
27026   grep -v '^ *+' conftest.er1 >conftest.err
27027   rm -f conftest.er1
27028   cat conftest.err >&5
27029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27030   (exit $ac_status); } &&
27031          { ac_try='test -z "$ac_c_werror_flag"
27032                          || test ! -s conftest.err'
27033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27034   (eval $ac_try) 2>&5
27035   ac_status=$?
27036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27037   (exit $ac_status); }; } &&
27038          { ac_try='test -s conftest$ac_exeext'
27039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27040   (eval $ac_try) 2>&5
27041   ac_status=$?
27042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27043   (exit $ac_status); }; }; then
27044   ac_cv_func_dlopen=yes
27045 else
27046   echo "$as_me: failed program was:" >&5
27047 sed 's/^/| /' conftest.$ac_ext >&5
27048
27049 ac_cv_func_dlopen=no
27050 fi
27051 rm -f conftest.err conftest.$ac_objext \
27052       conftest$ac_exeext conftest.$ac_ext
27053 fi
27054 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
27055 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
27056 if test $ac_cv_func_dlopen = yes; then
27057   lt_cv_dlopen="dlopen"
27058 else
27059   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
27060 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
27061 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
27062   echo $ECHO_N "(cached) $ECHO_C" >&6
27063 else
27064   ac_check_lib_save_LIBS=$LIBS
27065 LIBS="-ldl  $LIBS"
27066 cat >conftest.$ac_ext <<_ACEOF
27067 /* confdefs.h.  */
27068 _ACEOF
27069 cat confdefs.h >>conftest.$ac_ext
27070 cat >>conftest.$ac_ext <<_ACEOF
27071 /* end confdefs.h.  */
27072
27073 /* Override any gcc2 internal prototype to avoid an error.  */
27074 #ifdef __cplusplus
27075 extern "C"
27076 #endif
27077 /* We use char because int might match the return type of a gcc2
27078    builtin and then its argument prototype would still apply.  */
27079 char dlopen ();
27080 int
27081 main ()
27082 {
27083 dlopen ();
27084   ;
27085   return 0;
27086 }
27087 _ACEOF
27088 rm -f conftest.$ac_objext conftest$ac_exeext
27089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27090   (eval $ac_link) 2>conftest.er1
27091   ac_status=$?
27092   grep -v '^ *+' conftest.er1 >conftest.err
27093   rm -f conftest.er1
27094   cat conftest.err >&5
27095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27096   (exit $ac_status); } &&
27097          { ac_try='test -z "$ac_c_werror_flag"
27098                          || test ! -s conftest.err'
27099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27100   (eval $ac_try) 2>&5
27101   ac_status=$?
27102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27103   (exit $ac_status); }; } &&
27104          { ac_try='test -s conftest$ac_exeext'
27105   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27106   (eval $ac_try) 2>&5
27107   ac_status=$?
27108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27109   (exit $ac_status); }; }; then
27110   ac_cv_lib_dl_dlopen=yes
27111 else
27112   echo "$as_me: failed program was:" >&5
27113 sed 's/^/| /' conftest.$ac_ext >&5
27114
27115 ac_cv_lib_dl_dlopen=no
27116 fi
27117 rm -f conftest.err conftest.$ac_objext \
27118       conftest$ac_exeext conftest.$ac_ext
27119 LIBS=$ac_check_lib_save_LIBS
27120 fi
27121 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
27122 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
27123 if test $ac_cv_lib_dl_dlopen = yes; then
27124   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
27125 else
27126   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
27127 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
27128 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
27129   echo $ECHO_N "(cached) $ECHO_C" >&6
27130 else
27131   ac_check_lib_save_LIBS=$LIBS
27132 LIBS="-lsvld  $LIBS"
27133 cat >conftest.$ac_ext <<_ACEOF
27134 /* confdefs.h.  */
27135 _ACEOF
27136 cat confdefs.h >>conftest.$ac_ext
27137 cat >>conftest.$ac_ext <<_ACEOF
27138 /* end confdefs.h.  */
27139
27140 /* Override any gcc2 internal prototype to avoid an error.  */
27141 #ifdef __cplusplus
27142 extern "C"
27143 #endif
27144 /* We use char because int might match the return type of a gcc2
27145    builtin and then its argument prototype would still apply.  */
27146 char dlopen ();
27147 int
27148 main ()
27149 {
27150 dlopen ();
27151   ;
27152   return 0;
27153 }
27154 _ACEOF
27155 rm -f conftest.$ac_objext conftest$ac_exeext
27156 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27157   (eval $ac_link) 2>conftest.er1
27158   ac_status=$?
27159   grep -v '^ *+' conftest.er1 >conftest.err
27160   rm -f conftest.er1
27161   cat conftest.err >&5
27162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27163   (exit $ac_status); } &&
27164          { ac_try='test -z "$ac_c_werror_flag"
27165                          || test ! -s conftest.err'
27166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27167   (eval $ac_try) 2>&5
27168   ac_status=$?
27169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27170   (exit $ac_status); }; } &&
27171          { ac_try='test -s conftest$ac_exeext'
27172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27173   (eval $ac_try) 2>&5
27174   ac_status=$?
27175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27176   (exit $ac_status); }; }; then
27177   ac_cv_lib_svld_dlopen=yes
27178 else
27179   echo "$as_me: failed program was:" >&5
27180 sed 's/^/| /' conftest.$ac_ext >&5
27181
27182 ac_cv_lib_svld_dlopen=no
27183 fi
27184 rm -f conftest.err conftest.$ac_objext \
27185       conftest$ac_exeext conftest.$ac_ext
27186 LIBS=$ac_check_lib_save_LIBS
27187 fi
27188 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
27189 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
27190 if test $ac_cv_lib_svld_dlopen = yes; then
27191   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
27192 else
27193   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
27194 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
27195 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
27196   echo $ECHO_N "(cached) $ECHO_C" >&6
27197 else
27198   ac_check_lib_save_LIBS=$LIBS
27199 LIBS="-ldld  $LIBS"
27200 cat >conftest.$ac_ext <<_ACEOF
27201 /* confdefs.h.  */
27202 _ACEOF
27203 cat confdefs.h >>conftest.$ac_ext
27204 cat >>conftest.$ac_ext <<_ACEOF
27205 /* end confdefs.h.  */
27206
27207 /* Override any gcc2 internal prototype to avoid an error.  */
27208 #ifdef __cplusplus
27209 extern "C"
27210 #endif
27211 /* We use char because int might match the return type of a gcc2
27212    builtin and then its argument prototype would still apply.  */
27213 char dld_link ();
27214 int
27215 main ()
27216 {
27217 dld_link ();
27218   ;
27219   return 0;
27220 }
27221 _ACEOF
27222 rm -f conftest.$ac_objext conftest$ac_exeext
27223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27224   (eval $ac_link) 2>conftest.er1
27225   ac_status=$?
27226   grep -v '^ *+' conftest.er1 >conftest.err
27227   rm -f conftest.er1
27228   cat conftest.err >&5
27229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27230   (exit $ac_status); } &&
27231          { ac_try='test -z "$ac_c_werror_flag"
27232                          || test ! -s conftest.err'
27233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27234   (eval $ac_try) 2>&5
27235   ac_status=$?
27236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27237   (exit $ac_status); }; } &&
27238          { ac_try='test -s conftest$ac_exeext'
27239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27240   (eval $ac_try) 2>&5
27241   ac_status=$?
27242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27243   (exit $ac_status); }; }; then
27244   ac_cv_lib_dld_dld_link=yes
27245 else
27246   echo "$as_me: failed program was:" >&5
27247 sed 's/^/| /' conftest.$ac_ext >&5
27248
27249 ac_cv_lib_dld_dld_link=no
27250 fi
27251 rm -f conftest.err conftest.$ac_objext \
27252       conftest$ac_exeext conftest.$ac_ext
27253 LIBS=$ac_check_lib_save_LIBS
27254 fi
27255 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
27256 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
27257 if test $ac_cv_lib_dld_dld_link = yes; then
27258   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
27259 fi
27260
27261
27262 fi
27263
27264
27265 fi
27266
27267
27268 fi
27269
27270
27271 fi
27272
27273
27274 fi
27275
27276     ;;
27277   esac
27278
27279   if test "x$lt_cv_dlopen" != xno; then
27280     enable_dlopen=yes
27281   else
27282     enable_dlopen=no
27283   fi
27284
27285   case $lt_cv_dlopen in
27286   dlopen)
27287     save_CPPFLAGS="$CPPFLAGS"
27288     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
27289
27290     save_LDFLAGS="$LDFLAGS"
27291     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
27292
27293     save_LIBS="$LIBS"
27294     LIBS="$lt_cv_dlopen_libs $LIBS"
27295
27296     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
27297 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
27298 if test "${lt_cv_dlopen_self+set}" = set; then
27299   echo $ECHO_N "(cached) $ECHO_C" >&6
27300 else
27301           if test "$cross_compiling" = yes; then :
27302   lt_cv_dlopen_self=cross
27303 else
27304   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
27305   lt_status=$lt_dlunknown
27306   cat > conftest.$ac_ext <<EOF
27307 #line 27307 "configure"
27308 #include "confdefs.h"
27309
27310 #if HAVE_DLFCN_H
27311 #include <dlfcn.h>
27312 #endif
27313
27314 #include <stdio.h>
27315
27316 #ifdef RTLD_GLOBAL
27317 #  define LT_DLGLOBAL           RTLD_GLOBAL
27318 #else
27319 #  ifdef DL_GLOBAL
27320 #    define LT_DLGLOBAL         DL_GLOBAL
27321 #  else
27322 #    define LT_DLGLOBAL         0
27323 #  endif
27324 #endif
27325
27326 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
27327    find out it does not work in some platform. */
27328 #ifndef LT_DLLAZY_OR_NOW
27329 #  ifdef RTLD_LAZY
27330 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
27331 #  else
27332 #    ifdef DL_LAZY
27333 #      define LT_DLLAZY_OR_NOW          DL_LAZY
27334 #    else
27335 #      ifdef RTLD_NOW
27336 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
27337 #      else
27338 #        ifdef DL_NOW
27339 #          define LT_DLLAZY_OR_NOW      DL_NOW
27340 #        else
27341 #          define LT_DLLAZY_OR_NOW      0
27342 #        endif
27343 #      endif
27344 #    endif
27345 #  endif
27346 #endif
27347
27348 #ifdef __cplusplus
27349 extern "C" void exit (int);
27350 #endif
27351
27352 void fnord() { int i=42;}
27353 int main ()
27354 {
27355   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
27356   int status = $lt_dlunknown;
27357
27358   if (self)
27359     {
27360       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
27361       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
27362       /* dlclose (self); */
27363     }
27364
27365     exit (status);
27366 }
27367 EOF
27368   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27369   (eval $ac_link) 2>&5
27370   ac_status=$?
27371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27372   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
27373     (./conftest; exit; ) >&5 2>/dev/null
27374     lt_status=$?
27375     case x$lt_status in
27376       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
27377       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
27378       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
27379     esac
27380   else :
27381     # compilation failed
27382     lt_cv_dlopen_self=no
27383   fi
27384 fi
27385 rm -fr conftest*
27386
27387
27388 fi
27389 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
27390 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
27391
27392     if test "x$lt_cv_dlopen_self" = xyes; then
27393       LDFLAGS="$LDFLAGS $link_static_flag"
27394       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
27395 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
27396 if test "${lt_cv_dlopen_self_static+set}" = set; then
27397   echo $ECHO_N "(cached) $ECHO_C" >&6
27398 else
27399           if test "$cross_compiling" = yes; then :
27400   lt_cv_dlopen_self_static=cross
27401 else
27402   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
27403   lt_status=$lt_dlunknown
27404   cat > conftest.$ac_ext <<EOF
27405 #line 27405 "configure"
27406 #include "confdefs.h"
27407
27408 #if HAVE_DLFCN_H
27409 #include <dlfcn.h>
27410 #endif
27411
27412 #include <stdio.h>
27413
27414 #ifdef RTLD_GLOBAL
27415 #  define LT_DLGLOBAL           RTLD_GLOBAL
27416 #else
27417 #  ifdef DL_GLOBAL
27418 #    define LT_DLGLOBAL         DL_GLOBAL
27419 #  else
27420 #    define LT_DLGLOBAL         0
27421 #  endif
27422 #endif
27423
27424 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
27425    find out it does not work in some platform. */
27426 #ifndef LT_DLLAZY_OR_NOW
27427 #  ifdef RTLD_LAZY
27428 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
27429 #  else
27430 #    ifdef DL_LAZY
27431 #      define LT_DLLAZY_OR_NOW          DL_LAZY
27432 #    else
27433 #      ifdef RTLD_NOW
27434 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
27435 #      else
27436 #        ifdef DL_NOW
27437 #          define LT_DLLAZY_OR_NOW      DL_NOW
27438 #        else
27439 #          define LT_DLLAZY_OR_NOW      0
27440 #        endif
27441 #      endif
27442 #    endif
27443 #  endif
27444 #endif
27445
27446 #ifdef __cplusplus
27447 extern "C" void exit (int);
27448 #endif
27449
27450 void fnord() { int i=42;}
27451 int main ()
27452 {
27453   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
27454   int status = $lt_dlunknown;
27455
27456   if (self)
27457     {
27458       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
27459       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
27460       /* dlclose (self); */
27461     }
27462
27463     exit (status);
27464 }
27465 EOF
27466   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27467   (eval $ac_link) 2>&5
27468   ac_status=$?
27469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27470   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
27471     (./conftest; exit; ) >&5 2>/dev/null
27472     lt_status=$?
27473     case x$lt_status in
27474       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
27475       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
27476       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
27477     esac
27478   else :
27479     # compilation failed
27480     lt_cv_dlopen_self_static=no
27481   fi
27482 fi
27483 rm -fr conftest*
27484
27485
27486 fi
27487 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
27488 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
27489     fi
27490
27491     CPPFLAGS="$save_CPPFLAGS"
27492     LDFLAGS="$save_LDFLAGS"
27493     LIBS="$save_LIBS"
27494     ;;
27495   esac
27496
27497   case $lt_cv_dlopen_self in
27498   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
27499   *) enable_dlopen_self=unknown ;;
27500   esac
27501
27502   case $lt_cv_dlopen_self_static in
27503   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
27504   *) enable_dlopen_self_static=unknown ;;
27505   esac
27506 fi
27507
27508
27509 # The else clause should only fire when bootstrapping the
27510 # libtool distribution, otherwise you forgot to ship ltmain.sh
27511 # with your package, and you will get complaints that there are
27512 # no rules to generate ltmain.sh.
27513 if test -f "$ltmain"; then
27514   # See if we are running on zsh, and set the options which allow our commands through
27515   # without removal of \ escapes.
27516   if test -n "${ZSH_VERSION+set}" ; then
27517     setopt NO_GLOB_SUBST
27518   fi
27519   # Now quote all the things that may contain metacharacters while being
27520   # careful not to overquote the AC_SUBSTed values.  We take copies of the
27521   # variables and quote the copies for generation of the libtool script.
27522   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
27523     SED SHELL STRIP \
27524     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
27525     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
27526     deplibs_check_method reload_flag reload_cmds need_locks \
27527     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
27528     lt_cv_sys_global_symbol_to_c_name_address \
27529     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
27530     old_postinstall_cmds old_postuninstall_cmds \
27531     compiler_GCJ \
27532     CC_GCJ \
27533     LD_GCJ \
27534     lt_prog_compiler_wl_GCJ \
27535     lt_prog_compiler_pic_GCJ \
27536     lt_prog_compiler_static_GCJ \
27537     lt_prog_compiler_no_builtin_flag_GCJ \
27538     export_dynamic_flag_spec_GCJ \
27539     thread_safe_flag_spec_GCJ \
27540     whole_archive_flag_spec_GCJ \
27541     enable_shared_with_static_runtimes_GCJ \
27542     old_archive_cmds_GCJ \
27543     old_archive_from_new_cmds_GCJ \
27544     predep_objects_GCJ \
27545     postdep_objects_GCJ \
27546     predeps_GCJ \
27547     postdeps_GCJ \
27548     compiler_lib_search_path_GCJ \
27549     archive_cmds_GCJ \
27550     archive_expsym_cmds_GCJ \
27551     postinstall_cmds_GCJ \
27552     postuninstall_cmds_GCJ \
27553     old_archive_from_expsyms_cmds_GCJ \
27554     allow_undefined_flag_GCJ \
27555     no_undefined_flag_GCJ \
27556     export_symbols_cmds_GCJ \
27557     hardcode_libdir_flag_spec_GCJ \
27558     hardcode_libdir_flag_spec_ld_GCJ \
27559     hardcode_libdir_separator_GCJ \
27560     hardcode_automatic_GCJ \
27561     module_cmds_GCJ \
27562     module_expsym_cmds_GCJ \
27563     lt_cv_prog_compiler_c_o_GCJ \
27564     exclude_expsyms_GCJ \
27565     include_expsyms_GCJ; do
27566
27567     case $var in
27568     old_archive_cmds_GCJ | \
27569     old_archive_from_new_cmds_GCJ | \
27570     archive_cmds_GCJ | \
27571     archive_expsym_cmds_GCJ | \
27572     module_cmds_GCJ | \
27573     module_expsym_cmds_GCJ | \
27574     old_archive_from_expsyms_cmds_GCJ | \
27575     export_symbols_cmds_GCJ | \
27576     extract_expsyms_cmds | reload_cmds | finish_cmds | \
27577     postinstall_cmds | postuninstall_cmds | \
27578     old_postinstall_cmds | old_postuninstall_cmds | \
27579     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
27580       # Double-quote double-evaled strings.
27581       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
27582       ;;
27583     *)
27584       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
27585       ;;
27586     esac
27587   done
27588
27589   case $lt_echo in
27590   *'\$0 --fallback-echo"')
27591     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
27592     ;;
27593   esac
27594
27595 cfgfile="$ofile"
27596
27597   cat <<__EOF__ >> "$cfgfile"
27598 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
27599
27600 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
27601
27602 # Shell to use when invoking shell scripts.
27603 SHELL=$lt_SHELL
27604
27605 # Whether or not to build shared libraries.
27606 build_libtool_libs=$enable_shared
27607
27608 # Whether or not to build static libraries.
27609 build_old_libs=$enable_static
27610
27611 # Whether or not to add -lc for building shared libraries.
27612 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
27613
27614 # Whether or not to disallow shared libs when runtime libs are static
27615 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
27616
27617 # Whether or not to optimize for fast installation.
27618 fast_install=$enable_fast_install
27619
27620 # The host system.
27621 host_alias=$host_alias
27622 host=$host
27623 host_os=$host_os
27624
27625 # The build system.
27626 build_alias=$build_alias
27627 build=$build
27628 build_os=$build_os
27629
27630 # An echo program that does not interpret backslashes.
27631 echo=$lt_echo
27632
27633 # The archiver.
27634 AR=$lt_AR
27635 AR_FLAGS=$lt_AR_FLAGS
27636
27637 # A C compiler.
27638 LTCC=$lt_LTCC
27639
27640 # A language-specific compiler.
27641 CC=$lt_compiler_GCJ
27642
27643 # Is the compiler the GNU C compiler?
27644 with_gcc=$GCC_GCJ
27645
27646 # An ERE matcher.
27647 EGREP=$lt_EGREP
27648
27649 # The linker used to build libraries.
27650 LD=$lt_LD_GCJ
27651
27652 # Whether we need hard or soft links.
27653 LN_S=$lt_LN_S
27654
27655 # A BSD-compatible nm program.
27656 NM=$lt_NM
27657
27658 # A symbol stripping program
27659 STRIP=$lt_STRIP
27660
27661 # Used to examine libraries when file_magic_cmd begins "file"
27662 MAGIC_CMD=$MAGIC_CMD
27663
27664 # Used on cygwin: DLL creation program.
27665 DLLTOOL="$DLLTOOL"
27666
27667 # Used on cygwin: object dumper.
27668 OBJDUMP="$OBJDUMP"
27669
27670 # Used on cygwin: assembler.
27671 AS="$AS"
27672
27673 # The name of the directory that contains temporary libtool files.
27674 objdir=$objdir
27675
27676 # How to create reloadable object files.
27677 reload_flag=$lt_reload_flag
27678 reload_cmds=$lt_reload_cmds
27679
27680 # How to pass a linker flag through the compiler.
27681 wl=$lt_lt_prog_compiler_wl_GCJ
27682
27683 # Object file suffix (normally "o").
27684 objext="$ac_objext"
27685
27686 # Old archive suffix (normally "a").
27687 libext="$libext"
27688
27689 # Shared library suffix (normally ".so").
27690 shrext_cmds='$shrext_cmds'
27691
27692 # Executable file suffix (normally "").
27693 exeext="$exeext"
27694
27695 # Additional compiler flags for building library objects.
27696 pic_flag=$lt_lt_prog_compiler_pic_GCJ
27697 pic_mode=$pic_mode
27698
27699 # What is the maximum length of a command?
27700 max_cmd_len=$lt_cv_sys_max_cmd_len
27701
27702 # Does compiler simultaneously support -c and -o options?
27703 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
27704
27705 # Must we lock files when doing compilation?
27706 need_locks=$lt_need_locks
27707
27708 # Do we need the lib prefix for modules?
27709 need_lib_prefix=$need_lib_prefix
27710
27711 # Do we need a version for libraries?
27712 need_version=$need_version
27713
27714 # Whether dlopen is supported.
27715 dlopen_support=$enable_dlopen
27716
27717 # Whether dlopen of programs is supported.
27718 dlopen_self=$enable_dlopen_self
27719
27720 # Whether dlopen of statically linked programs is supported.
27721 dlopen_self_static=$enable_dlopen_self_static
27722
27723 # Compiler flag to prevent dynamic linking.
27724 link_static_flag=$lt_lt_prog_compiler_static_GCJ
27725
27726 # Compiler flag to turn off builtin functions.
27727 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
27728
27729 # Compiler flag to allow reflexive dlopens.
27730 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
27731
27732 # Compiler flag to generate shared objects directly from archives.
27733 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
27734
27735 # Compiler flag to generate thread-safe objects.
27736 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
27737
27738 # Library versioning type.
27739 version_type=$version_type
27740
27741 # Format of library name prefix.
27742 libname_spec=$lt_libname_spec
27743
27744 # List of archive names.  First name is the real one, the rest are links.
27745 # The last name is the one that the linker finds with -lNAME.
27746 library_names_spec=$lt_library_names_spec
27747
27748 # The coded name of the library, if different from the real name.
27749 soname_spec=$lt_soname_spec
27750
27751 # Commands used to build and install an old-style archive.
27752 RANLIB=$lt_RANLIB
27753 old_archive_cmds=$lt_old_archive_cmds_GCJ
27754 old_postinstall_cmds=$lt_old_postinstall_cmds
27755 old_postuninstall_cmds=$lt_old_postuninstall_cmds
27756
27757 # Create an old-style archive from a shared archive.
27758 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
27759
27760 # Create a temporary old-style archive to link instead of a shared archive.
27761 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
27762
27763 # Commands used to build and install a shared archive.
27764 archive_cmds=$lt_archive_cmds_GCJ
27765 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
27766 postinstall_cmds=$lt_postinstall_cmds
27767 postuninstall_cmds=$lt_postuninstall_cmds
27768
27769 # Commands used to build a loadable module (assumed same as above if empty)
27770 module_cmds=$lt_module_cmds_GCJ
27771 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
27772
27773 # Commands to strip libraries.
27774 old_striplib=$lt_old_striplib
27775 striplib=$lt_striplib
27776
27777 # Dependencies to place before the objects being linked to create a
27778 # shared library.
27779 predep_objects=$lt_predep_objects_GCJ
27780
27781 # Dependencies to place after the objects being linked to create a
27782 # shared library.
27783 postdep_objects=$lt_postdep_objects_GCJ
27784
27785 # Dependencies to place before the objects being linked to create a
27786 # shared library.
27787 predeps=$lt_predeps_GCJ
27788
27789 # Dependencies to place after the objects being linked to create a
27790 # shared library.
27791 postdeps=$lt_postdeps_GCJ
27792
27793 # The library search path used internally by the compiler when linking
27794 # a shared library.
27795 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
27796
27797 # Method to check whether dependent libraries are shared objects.
27798 deplibs_check_method=$lt_deplibs_check_method
27799
27800 # Command to use when deplibs_check_method == file_magic.
27801 file_magic_cmd=$lt_file_magic_cmd
27802
27803 # Flag that allows shared libraries with undefined symbols to be built.
27804 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
27805
27806 # Flag that forces no undefined symbols.
27807 no_undefined_flag=$lt_no_undefined_flag_GCJ
27808
27809 # Commands used to finish a libtool library installation in a directory.
27810 finish_cmds=$lt_finish_cmds
27811
27812 # Same as above, but a single script fragment to be evaled but not shown.
27813 finish_eval=$lt_finish_eval
27814
27815 # Take the output of nm and produce a listing of raw symbols and C names.
27816 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
27817
27818 # Transform the output of nm in a proper C declaration
27819 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
27820
27821 # Transform the output of nm in a C name address pair
27822 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
27823
27824 # This is the shared library runtime path variable.
27825 runpath_var=$runpath_var
27826
27827 # This is the shared library path variable.
27828 shlibpath_var=$shlibpath_var
27829
27830 # Is shlibpath searched before the hard-coded library search path?
27831 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
27832
27833 # How to hardcode a shared library path into an executable.
27834 hardcode_action=$hardcode_action_GCJ
27835
27836 # Whether we should hardcode library paths into libraries.
27837 hardcode_into_libs=$hardcode_into_libs
27838
27839 # Flag to hardcode \$libdir into a binary during linking.
27840 # This must work even if \$libdir does not exist.
27841 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
27842
27843 # If ld is used when linking, flag to hardcode \$libdir into
27844 # a binary during linking. This must work even if \$libdir does
27845 # not exist.
27846 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
27847
27848 # Whether we need a single -rpath flag with a separated argument.
27849 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
27850
27851 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
27852 # resulting binary.
27853 hardcode_direct=$hardcode_direct_GCJ
27854
27855 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
27856 # resulting binary.
27857 hardcode_minus_L=$hardcode_minus_L_GCJ
27858
27859 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
27860 # the resulting binary.
27861 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
27862
27863 # Set to yes if building a shared library automatically hardcodes DIR into the library
27864 # and all subsequent libraries and executables linked against it.
27865 hardcode_automatic=$hardcode_automatic_GCJ
27866
27867 # Variables whose values should be saved in libtool wrapper scripts and
27868 # restored at relink time.
27869 variables_saved_for_relink="$variables_saved_for_relink"
27870
27871 # Whether libtool must link a program against all its dependency libraries.
27872 link_all_deplibs=$link_all_deplibs_GCJ
27873
27874 # Compile-time system search path for libraries
27875 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
27876
27877 # Run-time system search path for libraries
27878 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
27879
27880 # Fix the shell variable \$srcfile for the compiler.
27881 fix_srcfile_path="$fix_srcfile_path_GCJ"
27882
27883 # Set to yes if exported symbols are required.
27884 always_export_symbols=$always_export_symbols_GCJ
27885
27886 # The commands to list exported symbols.
27887 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
27888
27889 # The commands to extract the exported symbol list from a shared archive.
27890 extract_expsyms_cmds=$lt_extract_expsyms_cmds
27891
27892 # Symbols that should not be listed in the preloaded symbols.
27893 exclude_expsyms=$lt_exclude_expsyms_GCJ
27894
27895 # Symbols that must always be exported.
27896 include_expsyms=$lt_include_expsyms_GCJ
27897
27898 # ### END LIBTOOL TAG CONFIG: $tagname
27899
27900 __EOF__
27901
27902
27903 else
27904   # If there is no Makefile yet, we rely on a make rule to execute
27905   # `config.status --recheck' to rerun these tests and create the
27906   # libtool script then.
27907   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
27908   if test -f "$ltmain_in"; then
27909     test -f Makefile && make "$ltmain"
27910   fi
27911 fi
27912
27913
27914 ac_ext=c
27915 ac_cpp='$CPP $CPPFLAGS'
27916 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27917 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27918 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27919
27920 CC="$lt_save_CC"
27921
27922         else
27923           tagname=""
27924         fi
27925         ;;
27926
27927       RC)
27928
27929
27930
27931 # Source file extension for RC test sources.
27932 ac_ext=rc
27933
27934 # Object file extension for compiled RC test sources.
27935 objext=o
27936 objext_RC=$objext
27937
27938 # Code to be used in simple compile tests
27939 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
27940
27941 # Code to be used in simple link tests
27942 lt_simple_link_test_code="$lt_simple_compile_test_code"
27943
27944 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
27945
27946 # If no C compiler was specified, use CC.
27947 LTCC=${LTCC-"$CC"}
27948
27949 # Allow CC to be a program name with arguments.
27950 compiler=$CC
27951
27952
27953 # save warnings/boilerplate of simple test code
27954 ac_outfile=conftest.$ac_objext
27955 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
27956 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
27957 _lt_compiler_boilerplate=`cat conftest.err`
27958 $rm conftest*
27959
27960 ac_outfile=conftest.$ac_objext
27961 printf "$lt_simple_link_test_code" >conftest.$ac_ext
27962 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
27963 _lt_linker_boilerplate=`cat conftest.err`
27964 $rm conftest*
27965
27966
27967 # Allow CC to be a program name with arguments.
27968 lt_save_CC="$CC"
27969 CC=${RC-"windres"}
27970 compiler=$CC
27971 compiler_RC=$CC
27972 for cc_temp in $compiler""; do
27973   case $cc_temp in
27974     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
27975     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
27976     \-*) ;;
27977     *) break;;
27978   esac
27979 done
27980 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
27981
27982 lt_cv_prog_compiler_c_o_RC=yes
27983
27984 # The else clause should only fire when bootstrapping the
27985 # libtool distribution, otherwise you forgot to ship ltmain.sh
27986 # with your package, and you will get complaints that there are
27987 # no rules to generate ltmain.sh.
27988 if test -f "$ltmain"; then
27989   # See if we are running on zsh, and set the options which allow our commands through
27990   # without removal of \ escapes.
27991   if test -n "${ZSH_VERSION+set}" ; then
27992     setopt NO_GLOB_SUBST
27993   fi
27994   # Now quote all the things that may contain metacharacters while being
27995   # careful not to overquote the AC_SUBSTed values.  We take copies of the
27996   # variables and quote the copies for generation of the libtool script.
27997   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
27998     SED SHELL STRIP \
27999     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
28000     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
28001     deplibs_check_method reload_flag reload_cmds need_locks \
28002     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
28003     lt_cv_sys_global_symbol_to_c_name_address \
28004     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
28005     old_postinstall_cmds old_postuninstall_cmds \
28006     compiler_RC \
28007     CC_RC \
28008     LD_RC \
28009     lt_prog_compiler_wl_RC \
28010     lt_prog_compiler_pic_RC \
28011     lt_prog_compiler_static_RC \
28012     lt_prog_compiler_no_builtin_flag_RC \
28013     export_dynamic_flag_spec_RC \
28014     thread_safe_flag_spec_RC \
28015     whole_archive_flag_spec_RC \
28016     enable_shared_with_static_runtimes_RC \
28017     old_archive_cmds_RC \
28018     old_archive_from_new_cmds_RC \
28019     predep_objects_RC \
28020     postdep_objects_RC \
28021     predeps_RC \
28022     postdeps_RC \
28023     compiler_lib_search_path_RC \
28024     archive_cmds_RC \
28025     archive_expsym_cmds_RC \
28026     postinstall_cmds_RC \
28027     postuninstall_cmds_RC \
28028     old_archive_from_expsyms_cmds_RC \
28029     allow_undefined_flag_RC \
28030     no_undefined_flag_RC \
28031     export_symbols_cmds_RC \
28032     hardcode_libdir_flag_spec_RC \
28033     hardcode_libdir_flag_spec_ld_RC \
28034     hardcode_libdir_separator_RC \
28035     hardcode_automatic_RC \
28036     module_cmds_RC \
28037     module_expsym_cmds_RC \
28038     lt_cv_prog_compiler_c_o_RC \
28039     exclude_expsyms_RC \
28040     include_expsyms_RC; do
28041
28042     case $var in
28043     old_archive_cmds_RC | \
28044     old_archive_from_new_cmds_RC | \
28045     archive_cmds_RC | \
28046     archive_expsym_cmds_RC | \
28047     module_cmds_RC | \
28048     module_expsym_cmds_RC | \
28049     old_archive_from_expsyms_cmds_RC | \
28050     export_symbols_cmds_RC | \
28051     extract_expsyms_cmds | reload_cmds | finish_cmds | \
28052     postinstall_cmds | postuninstall_cmds | \
28053     old_postinstall_cmds | old_postuninstall_cmds | \
28054     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
28055       # Double-quote double-evaled strings.
28056       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
28057       ;;
28058     *)
28059       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
28060       ;;
28061     esac
28062   done
28063
28064   case $lt_echo in
28065   *'\$0 --fallback-echo"')
28066     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
28067     ;;
28068   esac
28069
28070 cfgfile="$ofile"
28071
28072   cat <<__EOF__ >> "$cfgfile"
28073 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
28074
28075 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
28076
28077 # Shell to use when invoking shell scripts.
28078 SHELL=$lt_SHELL
28079
28080 # Whether or not to build shared libraries.
28081 build_libtool_libs=$enable_shared
28082
28083 # Whether or not to build static libraries.
28084 build_old_libs=$enable_static
28085
28086 # Whether or not to add -lc for building shared libraries.
28087 build_libtool_need_lc=$archive_cmds_need_lc_RC
28088
28089 # Whether or not to disallow shared libs when runtime libs are static
28090 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
28091
28092 # Whether or not to optimize for fast installation.
28093 fast_install=$enable_fast_install
28094
28095 # The host system.
28096 host_alias=$host_alias
28097 host=$host
28098 host_os=$host_os
28099
28100 # The build system.
28101 build_alias=$build_alias
28102 build=$build
28103 build_os=$build_os
28104
28105 # An echo program that does not interpret backslashes.
28106 echo=$lt_echo
28107
28108 # The archiver.
28109 AR=$lt_AR
28110 AR_FLAGS=$lt_AR_FLAGS
28111
28112 # A C compiler.
28113 LTCC=$lt_LTCC
28114
28115 # A language-specific compiler.
28116 CC=$lt_compiler_RC
28117
28118 # Is the compiler the GNU C compiler?
28119 with_gcc=$GCC_RC
28120
28121 # An ERE matcher.
28122 EGREP=$lt_EGREP
28123
28124 # The linker used to build libraries.
28125 LD=$lt_LD_RC
28126
28127 # Whether we need hard or soft links.
28128 LN_S=$lt_LN_S
28129
28130 # A BSD-compatible nm program.
28131 NM=$lt_NM
28132
28133 # A symbol stripping program
28134 STRIP=$lt_STRIP
28135
28136 # Used to examine libraries when file_magic_cmd begins "file"
28137 MAGIC_CMD=$MAGIC_CMD
28138
28139 # Used on cygwin: DLL creation program.
28140 DLLTOOL="$DLLTOOL"
28141
28142 # Used on cygwin: object dumper.
28143 OBJDUMP="$OBJDUMP"
28144
28145 # Used on cygwin: assembler.
28146 AS="$AS"
28147
28148 # The name of the directory that contains temporary libtool files.
28149 objdir=$objdir
28150
28151 # How to create reloadable object files.
28152 reload_flag=$lt_reload_flag
28153 reload_cmds=$lt_reload_cmds
28154
28155 # How to pass a linker flag through the compiler.
28156 wl=$lt_lt_prog_compiler_wl_RC
28157
28158 # Object file suffix (normally "o").
28159 objext="$ac_objext"
28160
28161 # Old archive suffix (normally "a").
28162 libext="$libext"
28163
28164 # Shared library suffix (normally ".so").
28165 shrext_cmds='$shrext_cmds'
28166
28167 # Executable file suffix (normally "").
28168 exeext="$exeext"
28169
28170 # Additional compiler flags for building library objects.
28171 pic_flag=$lt_lt_prog_compiler_pic_RC
28172 pic_mode=$pic_mode
28173
28174 # What is the maximum length of a command?
28175 max_cmd_len=$lt_cv_sys_max_cmd_len
28176
28177 # Does compiler simultaneously support -c and -o options?
28178 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
28179
28180 # Must we lock files when doing compilation?
28181 need_locks=$lt_need_locks
28182
28183 # Do we need the lib prefix for modules?
28184 need_lib_prefix=$need_lib_prefix
28185
28186 # Do we need a version for libraries?
28187 need_version=$need_version
28188
28189 # Whether dlopen is supported.
28190 dlopen_support=$enable_dlopen
28191
28192 # Whether dlopen of programs is supported.
28193 dlopen_self=$enable_dlopen_self
28194
28195 # Whether dlopen of statically linked programs is supported.
28196 dlopen_self_static=$enable_dlopen_self_static
28197
28198 # Compiler flag to prevent dynamic linking.
28199 link_static_flag=$lt_lt_prog_compiler_static_RC
28200
28201 # Compiler flag to turn off builtin functions.
28202 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
28203
28204 # Compiler flag to allow reflexive dlopens.
28205 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
28206
28207 # Compiler flag to generate shared objects directly from archives.
28208 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
28209
28210 # Compiler flag to generate thread-safe objects.
28211 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
28212
28213 # Library versioning type.
28214 version_type=$version_type
28215
28216 # Format of library name prefix.
28217 libname_spec=$lt_libname_spec
28218
28219 # List of archive names.  First name is the real one, the rest are links.
28220 # The last name is the one that the linker finds with -lNAME.
28221 library_names_spec=$lt_library_names_spec
28222
28223 # The coded name of the library, if different from the real name.
28224 soname_spec=$lt_soname_spec
28225
28226 # Commands used to build and install an old-style archive.
28227 RANLIB=$lt_RANLIB
28228 old_archive_cmds=$lt_old_archive_cmds_RC
28229 old_postinstall_cmds=$lt_old_postinstall_cmds
28230 old_postuninstall_cmds=$lt_old_postuninstall_cmds
28231
28232 # Create an old-style archive from a shared archive.
28233 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
28234
28235 # Create a temporary old-style archive to link instead of a shared archive.
28236 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
28237
28238 # Commands used to build and install a shared archive.
28239 archive_cmds=$lt_archive_cmds_RC
28240 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
28241 postinstall_cmds=$lt_postinstall_cmds
28242 postuninstall_cmds=$lt_postuninstall_cmds
28243
28244 # Commands used to build a loadable module (assumed same as above if empty)
28245 module_cmds=$lt_module_cmds_RC
28246 module_expsym_cmds=$lt_module_expsym_cmds_RC
28247
28248 # Commands to strip libraries.
28249 old_striplib=$lt_old_striplib
28250 striplib=$lt_striplib
28251
28252 # Dependencies to place before the objects being linked to create a
28253 # shared library.
28254 predep_objects=$lt_predep_objects_RC
28255
28256 # Dependencies to place after the objects being linked to create a
28257 # shared library.
28258 postdep_objects=$lt_postdep_objects_RC
28259
28260 # Dependencies to place before the objects being linked to create a
28261 # shared library.
28262 predeps=$lt_predeps_RC
28263
28264 # Dependencies to place after the objects being linked to create a
28265 # shared library.
28266 postdeps=$lt_postdeps_RC
28267
28268 # The library search path used internally by the compiler when linking
28269 # a shared library.
28270 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
28271
28272 # Method to check whether dependent libraries are shared objects.
28273 deplibs_check_method=$lt_deplibs_check_method
28274
28275 # Command to use when deplibs_check_method == file_magic.
28276 file_magic_cmd=$lt_file_magic_cmd
28277
28278 # Flag that allows shared libraries with undefined symbols to be built.
28279 allow_undefined_flag=$lt_allow_undefined_flag_RC
28280
28281 # Flag that forces no undefined symbols.
28282 no_undefined_flag=$lt_no_undefined_flag_RC
28283
28284 # Commands used to finish a libtool library installation in a directory.
28285 finish_cmds=$lt_finish_cmds
28286
28287 # Same as above, but a single script fragment to be evaled but not shown.
28288 finish_eval=$lt_finish_eval
28289
28290 # Take the output of nm and produce a listing of raw symbols and C names.
28291 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
28292
28293 # Transform the output of nm in a proper C declaration
28294 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
28295
28296 # Transform the output of nm in a C name address pair
28297 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
28298
28299 # This is the shared library runtime path variable.
28300 runpath_var=$runpath_var
28301
28302 # This is the shared library path variable.
28303 shlibpath_var=$shlibpath_var
28304
28305 # Is shlibpath searched before the hard-coded library search path?
28306 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
28307
28308 # How to hardcode a shared library path into an executable.
28309 hardcode_action=$hardcode_action_RC
28310
28311 # Whether we should hardcode library paths into libraries.
28312 hardcode_into_libs=$hardcode_into_libs
28313
28314 # Flag to hardcode \$libdir into a binary during linking.
28315 # This must work even if \$libdir does not exist.
28316 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
28317
28318 # If ld is used when linking, flag to hardcode \$libdir into
28319 # a binary during linking. This must work even if \$libdir does
28320 # not exist.
28321 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
28322
28323 # Whether we need a single -rpath flag with a separated argument.
28324 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
28325
28326 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
28327 # resulting binary.
28328 hardcode_direct=$hardcode_direct_RC
28329
28330 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
28331 # resulting binary.
28332 hardcode_minus_L=$hardcode_minus_L_RC
28333
28334 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
28335 # the resulting binary.
28336 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
28337
28338 # Set to yes if building a shared library automatically hardcodes DIR into the library
28339 # and all subsequent libraries and executables linked against it.
28340 hardcode_automatic=$hardcode_automatic_RC
28341
28342 # Variables whose values should be saved in libtool wrapper scripts and
28343 # restored at relink time.
28344 variables_saved_for_relink="$variables_saved_for_relink"
28345
28346 # Whether libtool must link a program against all its dependency libraries.
28347 link_all_deplibs=$link_all_deplibs_RC
28348
28349 # Compile-time system search path for libraries
28350 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
28351
28352 # Run-time system search path for libraries
28353 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
28354
28355 # Fix the shell variable \$srcfile for the compiler.
28356 fix_srcfile_path="$fix_srcfile_path_RC"
28357
28358 # Set to yes if exported symbols are required.
28359 always_export_symbols=$always_export_symbols_RC
28360
28361 # The commands to list exported symbols.
28362 export_symbols_cmds=$lt_export_symbols_cmds_RC
28363
28364 # The commands to extract the exported symbol list from a shared archive.
28365 extract_expsyms_cmds=$lt_extract_expsyms_cmds
28366
28367 # Symbols that should not be listed in the preloaded symbols.
28368 exclude_expsyms=$lt_exclude_expsyms_RC
28369
28370 # Symbols that must always be exported.
28371 include_expsyms=$lt_include_expsyms_RC
28372
28373 # ### END LIBTOOL TAG CONFIG: $tagname
28374
28375 __EOF__
28376
28377
28378 else
28379   # If there is no Makefile yet, we rely on a make rule to execute
28380   # `config.status --recheck' to rerun these tests and create the
28381   # libtool script then.
28382   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
28383   if test -f "$ltmain_in"; then
28384     test -f Makefile && make "$ltmain"
28385   fi
28386 fi
28387
28388
28389 ac_ext=c
28390 ac_cpp='$CPP $CPPFLAGS'
28391 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28392 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28393 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28394
28395 CC="$lt_save_CC"
28396
28397         ;;
28398
28399       *)
28400         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
28401 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
28402    { (exit 1); exit 1; }; }
28403         ;;
28404       esac
28405
28406       # Append the new tag name to the list of available tags.
28407       if test -n "$tagname" ; then
28408       available_tags="$available_tags $tagname"
28409     fi
28410     fi
28411   done
28412   IFS="$lt_save_ifs"
28413
28414   # Now substitute the updated list of available tags.
28415   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
28416     mv "${ofile}T" "$ofile"
28417     chmod +x "$ofile"
28418   else
28419     rm -f "${ofile}T"
28420     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
28421 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
28422    { (exit 1); exit 1; }; }
28423   fi
28424 fi
28425
28426
28427
28428 # This can be used to rebuild libtool when needed
28429 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
28430
28431 # Always use our own libtool.
28432 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
28433
28434 # Prevent multiple expansion
28435
28436
28437
28438
28439
28440
28441
28442
28443
28444
28445
28446
28447
28448
28449
28450
28451
28452
28453
28454
28455
28456
28457 if test $ac_cv_c_compiler_gnu = yes; then
28458     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
28459 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
28460 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
28461   echo $ECHO_N "(cached) $ECHO_C" >&6
28462 else
28463     ac_pattern="Autoconf.*'x'"
28464   cat >conftest.$ac_ext <<_ACEOF
28465 /* confdefs.h.  */
28466 _ACEOF
28467 cat confdefs.h >>conftest.$ac_ext
28468 cat >>conftest.$ac_ext <<_ACEOF
28469 /* end confdefs.h.  */
28470 #include <sgtty.h>
28471 Autoconf TIOCGETP
28472 _ACEOF
28473 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28474   $EGREP "$ac_pattern" >/dev/null 2>&1; then
28475   ac_cv_prog_gcc_traditional=yes
28476 else
28477   ac_cv_prog_gcc_traditional=no
28478 fi
28479 rm -f conftest*
28480
28481
28482   if test $ac_cv_prog_gcc_traditional = no; then
28483     cat >conftest.$ac_ext <<_ACEOF
28484 /* confdefs.h.  */
28485 _ACEOF
28486 cat confdefs.h >>conftest.$ac_ext
28487 cat >>conftest.$ac_ext <<_ACEOF
28488 /* end confdefs.h.  */
28489 #include <termio.h>
28490 Autoconf TCGETA
28491 _ACEOF
28492 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28493   $EGREP "$ac_pattern" >/dev/null 2>&1; then
28494   ac_cv_prog_gcc_traditional=yes
28495 fi
28496 rm -f conftest*
28497
28498   fi
28499 fi
28500 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
28501 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
28502   if test $ac_cv_prog_gcc_traditional = yes; then
28503     CC="$CC -traditional"
28504   fi
28505 fi
28506
28507 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
28508 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
28509 if test "${ac_cv_c_const+set}" = set; then
28510   echo $ECHO_N "(cached) $ECHO_C" >&6
28511 else
28512   cat >conftest.$ac_ext <<_ACEOF
28513 /* confdefs.h.  */
28514 _ACEOF
28515 cat confdefs.h >>conftest.$ac_ext
28516 cat >>conftest.$ac_ext <<_ACEOF
28517 /* end confdefs.h.  */
28518
28519 int
28520 main ()
28521 {
28522 /* FIXME: Include the comments suggested by Paul. */
28523 #ifndef __cplusplus
28524   /* Ultrix mips cc rejects this.  */
28525   typedef int charset[2];
28526   const charset x;
28527   /* SunOS 4.1.1 cc rejects this.  */
28528   char const *const *ccp;
28529   char **p;
28530   /* NEC SVR4.0.2 mips cc rejects this.  */
28531   struct point {int x, y;};
28532   static struct point const zero = {0,0};
28533   /* AIX XL C 1.02.0.0 rejects this.
28534      It does not let you subtract one const X* pointer from another in
28535      an arm of an if-expression whose if-part is not a constant
28536      expression */
28537   const char *g = "string";
28538   ccp = &g + (g ? g-g : 0);
28539   /* HPUX 7.0 cc rejects these. */
28540   ++ccp;
28541   p = (char**) ccp;
28542   ccp = (char const *const *) p;
28543   { /* SCO 3.2v4 cc rejects this.  */
28544     char *t;
28545     char const *s = 0 ? (char *) 0 : (char const *) 0;
28546
28547     *t++ = 0;
28548   }
28549   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
28550     int x[] = {25, 17};
28551     const int *foo = &x[0];
28552     ++foo;
28553   }
28554   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
28555     typedef const int *iptr;
28556     iptr p = 0;
28557     ++p;
28558   }
28559   { /* AIX XL C 1.02.0.0 rejects this saying
28560        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
28561     struct s { int j; const int *ap[3]; };
28562     struct s *b; b->j = 5;
28563   }
28564   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
28565     const int foo = 10;
28566   }
28567 #endif
28568
28569   ;
28570   return 0;
28571 }
28572 _ACEOF
28573 rm -f conftest.$ac_objext
28574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28575   (eval $ac_compile) 2>conftest.er1
28576   ac_status=$?
28577   grep -v '^ *+' conftest.er1 >conftest.err
28578   rm -f conftest.er1
28579   cat conftest.err >&5
28580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28581   (exit $ac_status); } &&
28582          { ac_try='test -z "$ac_c_werror_flag"
28583                          || test ! -s conftest.err'
28584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28585   (eval $ac_try) 2>&5
28586   ac_status=$?
28587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28588   (exit $ac_status); }; } &&
28589          { ac_try='test -s conftest.$ac_objext'
28590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28591   (eval $ac_try) 2>&5
28592   ac_status=$?
28593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28594   (exit $ac_status); }; }; then
28595   ac_cv_c_const=yes
28596 else
28597   echo "$as_me: failed program was:" >&5
28598 sed 's/^/| /' conftest.$ac_ext >&5
28599
28600 ac_cv_c_const=no
28601 fi
28602 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28603 fi
28604 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
28605 echo "${ECHO_T}$ac_cv_c_const" >&6
28606 if test $ac_cv_c_const = no; then
28607
28608 cat >>confdefs.h <<\_ACEOF
28609 #define const
28610 _ACEOF
28611
28612 fi
28613
28614
28615         echo "$as_me:$LINENO: checking for working volatile" >&5
28616 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
28617 if test "${amanda_cv_c_volatile+set}" = set; then
28618   echo $ECHO_N "(cached) $ECHO_C" >&6
28619 else
28620
28621                 cat >conftest.$ac_ext <<_ACEOF
28622 /* confdefs.h.  */
28623 _ACEOF
28624 cat confdefs.h >>conftest.$ac_ext
28625 cat >>conftest.$ac_ext <<_ACEOF
28626 /* end confdefs.h.  */
28627
28628 int
28629 main ()
28630 {
28631
28632                         volatile int aaa = 0;
28633
28634   ;
28635   return 0;
28636 }
28637 _ACEOF
28638 rm -f conftest.$ac_objext
28639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28640   (eval $ac_compile) 2>conftest.er1
28641   ac_status=$?
28642   grep -v '^ *+' conftest.er1 >conftest.err
28643   rm -f conftest.er1
28644   cat conftest.err >&5
28645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28646   (exit $ac_status); } &&
28647          { ac_try='test -z "$ac_c_werror_flag"
28648                          || test ! -s conftest.err'
28649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28650   (eval $ac_try) 2>&5
28651   ac_status=$?
28652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28653   (exit $ac_status); }; } &&
28654          { ac_try='test -s conftest.$ac_objext'
28655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28656   (eval $ac_try) 2>&5
28657   ac_status=$?
28658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28659   (exit $ac_status); }; }; then
28660   amanda_cv_c_volatile=yes
28661 else
28662   echo "$as_me: failed program was:" >&5
28663 sed 's/^/| /' conftest.$ac_ext >&5
28664
28665 amanda_cv_c_volatile=no
28666
28667 fi
28668 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28669
28670
28671 fi
28672 echo "$as_me:$LINENO: result: $amanda_cv_c_volatile" >&5
28673 echo "${ECHO_T}$amanda_cv_c_volatile" >&6
28674         if test $amanda_cv_c_volatile = no; then
28675
28676 cat >>confdefs.h <<\_ACEOF
28677 #define volatile
28678 _ACEOF
28679
28680         fi
28681
28682
28683
28684         echo "$as_me:$LINENO: checking for working unsigned long constants" >&5
28685 echo $ECHO_N "checking for working unsigned long constants... $ECHO_C" >&6
28686 if test "${amanda_cv_c_unsigned_long_constants+set}" = set; then
28687   echo $ECHO_N "(cached) $ECHO_C" >&6
28688 else
28689
28690                 cat >conftest.$ac_ext <<_ACEOF
28691 /* confdefs.h.  */
28692 _ACEOF
28693 cat confdefs.h >>conftest.$ac_ext
28694 cat >>conftest.$ac_ext <<_ACEOF
28695 /* end confdefs.h.  */
28696
28697
28698 int
28699 main ()
28700 {
28701
28702                         long l = 1ul;
28703
28704   ;
28705   return 0;
28706 }
28707 _ACEOF
28708 rm -f conftest.$ac_objext
28709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28710   (eval $ac_compile) 2>conftest.er1
28711   ac_status=$?
28712   grep -v '^ *+' conftest.er1 >conftest.err
28713   rm -f conftest.er1
28714   cat conftest.err >&5
28715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28716   (exit $ac_status); } &&
28717          { ac_try='test -z "$ac_c_werror_flag"
28718                          || test ! -s conftest.err'
28719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28720   (eval $ac_try) 2>&5
28721   ac_status=$?
28722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28723   (exit $ac_status); }; } &&
28724          { ac_try='test -s conftest.$ac_objext'
28725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28726   (eval $ac_try) 2>&5
28727   ac_status=$?
28728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28729   (exit $ac_status); }; }; then
28730   amanda_cv_c_unsigned_long_constants=yes
28731 else
28732   echo "$as_me: failed program was:" >&5
28733 sed 's/^/| /' conftest.$ac_ext >&5
28734
28735 amanda_cv_c_unsigned_long_constants=no
28736
28737 fi
28738 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28739
28740
28741 fi
28742 echo "$as_me:$LINENO: result: $amanda_cv_c_unsigned_long_constants" >&5
28743 echo "${ECHO_T}$amanda_cv_c_unsigned_long_constants" >&6
28744         if test "$amanda_cv_c_unsigned_long_constants" = yes; then
28745
28746 cat >>confdefs.h <<\_ACEOF
28747 #define HAVE_UNSIGNED_LONG_CONSTANTS 1
28748 _ACEOF
28749
28750         fi
28751
28752
28753 echo "$as_me:$LINENO: checking for off_t" >&5
28754 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
28755 if test "${ac_cv_type_off_t+set}" = set; then
28756   echo $ECHO_N "(cached) $ECHO_C" >&6
28757 else
28758   cat >conftest.$ac_ext <<_ACEOF
28759 /* confdefs.h.  */
28760 _ACEOF
28761 cat confdefs.h >>conftest.$ac_ext
28762 cat >>conftest.$ac_ext <<_ACEOF
28763 /* end confdefs.h.  */
28764 $ac_includes_default
28765 int
28766 main ()
28767 {
28768 if ((off_t *) 0)
28769   return 0;
28770 if (sizeof (off_t))
28771   return 0;
28772   ;
28773   return 0;
28774 }
28775 _ACEOF
28776 rm -f conftest.$ac_objext
28777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28778   (eval $ac_compile) 2>conftest.er1
28779   ac_status=$?
28780   grep -v '^ *+' conftest.er1 >conftest.err
28781   rm -f conftest.er1
28782   cat conftest.err >&5
28783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28784   (exit $ac_status); } &&
28785          { ac_try='test -z "$ac_c_werror_flag"
28786                          || test ! -s conftest.err'
28787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28788   (eval $ac_try) 2>&5
28789   ac_status=$?
28790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28791   (exit $ac_status); }; } &&
28792          { ac_try='test -s conftest.$ac_objext'
28793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28794   (eval $ac_try) 2>&5
28795   ac_status=$?
28796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28797   (exit $ac_status); }; }; then
28798   ac_cv_type_off_t=yes
28799 else
28800   echo "$as_me: failed program was:" >&5
28801 sed 's/^/| /' conftest.$ac_ext >&5
28802
28803 ac_cv_type_off_t=no
28804 fi
28805 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28806 fi
28807 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
28808 echo "${ECHO_T}$ac_cv_type_off_t" >&6
28809 if test $ac_cv_type_off_t = yes; then
28810   :
28811 else
28812
28813 cat >>confdefs.h <<_ACEOF
28814 #define off_t long
28815 _ACEOF
28816
28817 fi
28818
28819 echo "$as_me:$LINENO: checking for pid_t" >&5
28820 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
28821 if test "${ac_cv_type_pid_t+set}" = set; then
28822   echo $ECHO_N "(cached) $ECHO_C" >&6
28823 else
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 $ac_includes_default
28831 int
28832 main ()
28833 {
28834 if ((pid_t *) 0)
28835   return 0;
28836 if (sizeof (pid_t))
28837   return 0;
28838   ;
28839   return 0;
28840 }
28841 _ACEOF
28842 rm -f conftest.$ac_objext
28843 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28844   (eval $ac_compile) 2>conftest.er1
28845   ac_status=$?
28846   grep -v '^ *+' conftest.er1 >conftest.err
28847   rm -f conftest.er1
28848   cat conftest.err >&5
28849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28850   (exit $ac_status); } &&
28851          { ac_try='test -z "$ac_c_werror_flag"
28852                          || test ! -s conftest.err'
28853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28854   (eval $ac_try) 2>&5
28855   ac_status=$?
28856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28857   (exit $ac_status); }; } &&
28858          { ac_try='test -s conftest.$ac_objext'
28859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28860   (eval $ac_try) 2>&5
28861   ac_status=$?
28862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28863   (exit $ac_status); }; }; then
28864   ac_cv_type_pid_t=yes
28865 else
28866   echo "$as_me: failed program was:" >&5
28867 sed 's/^/| /' conftest.$ac_ext >&5
28868
28869 ac_cv_type_pid_t=no
28870 fi
28871 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28872 fi
28873 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
28874 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
28875 if test $ac_cv_type_pid_t = yes; then
28876   :
28877 else
28878
28879 cat >>confdefs.h <<_ACEOF
28880 #define pid_t int
28881 _ACEOF
28882
28883 fi
28884
28885 echo "$as_me:$LINENO: checking for size_t" >&5
28886 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
28887 if test "${ac_cv_type_size_t+set}" = set; then
28888   echo $ECHO_N "(cached) $ECHO_C" >&6
28889 else
28890   cat >conftest.$ac_ext <<_ACEOF
28891 /* confdefs.h.  */
28892 _ACEOF
28893 cat confdefs.h >>conftest.$ac_ext
28894 cat >>conftest.$ac_ext <<_ACEOF
28895 /* end confdefs.h.  */
28896 $ac_includes_default
28897 int
28898 main ()
28899 {
28900 if ((size_t *) 0)
28901   return 0;
28902 if (sizeof (size_t))
28903   return 0;
28904   ;
28905   return 0;
28906 }
28907 _ACEOF
28908 rm -f conftest.$ac_objext
28909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28910   (eval $ac_compile) 2>conftest.er1
28911   ac_status=$?
28912   grep -v '^ *+' conftest.er1 >conftest.err
28913   rm -f conftest.er1
28914   cat conftest.err >&5
28915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28916   (exit $ac_status); } &&
28917          { ac_try='test -z "$ac_c_werror_flag"
28918                          || test ! -s conftest.err'
28919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28920   (eval $ac_try) 2>&5
28921   ac_status=$?
28922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28923   (exit $ac_status); }; } &&
28924          { ac_try='test -s conftest.$ac_objext'
28925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28926   (eval $ac_try) 2>&5
28927   ac_status=$?
28928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28929   (exit $ac_status); }; }; then
28930   ac_cv_type_size_t=yes
28931 else
28932   echo "$as_me: failed program was:" >&5
28933 sed 's/^/| /' conftest.$ac_ext >&5
28934
28935 ac_cv_type_size_t=no
28936 fi
28937 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28938 fi
28939 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
28940 echo "${ECHO_T}$ac_cv_type_size_t" >&6
28941 if test $ac_cv_type_size_t = yes; then
28942   :
28943 else
28944
28945 cat >>confdefs.h <<_ACEOF
28946 #define size_t unsigned
28947 _ACEOF
28948
28949 fi
28950
28951
28952 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
28953 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
28954 if test "${ac_cv_type_uid_t+set}" = set; then
28955   echo $ECHO_N "(cached) $ECHO_C" >&6
28956 else
28957   cat >conftest.$ac_ext <<_ACEOF
28958 /* confdefs.h.  */
28959 _ACEOF
28960 cat confdefs.h >>conftest.$ac_ext
28961 cat >>conftest.$ac_ext <<_ACEOF
28962 /* end confdefs.h.  */
28963 #include <sys/types.h>
28964
28965 _ACEOF
28966 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28967   $EGREP "uid_t" >/dev/null 2>&1; then
28968   ac_cv_type_uid_t=yes
28969 else
28970   ac_cv_type_uid_t=no
28971 fi
28972 rm -f conftest*
28973
28974 fi
28975 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
28976 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
28977 if test $ac_cv_type_uid_t = no; then
28978
28979 cat >>confdefs.h <<\_ACEOF
28980 #define uid_t int
28981 _ACEOF
28982
28983
28984 cat >>confdefs.h <<\_ACEOF
28985 #define gid_t int
28986 _ACEOF
28987
28988 fi
28989
28990 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
28991 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
28992 if test "${ac_cv_type_signal+set}" = set; then
28993   echo $ECHO_N "(cached) $ECHO_C" >&6
28994 else
28995   cat >conftest.$ac_ext <<_ACEOF
28996 /* confdefs.h.  */
28997 _ACEOF
28998 cat confdefs.h >>conftest.$ac_ext
28999 cat >>conftest.$ac_ext <<_ACEOF
29000 /* end confdefs.h.  */
29001 #include <sys/types.h>
29002 #include <signal.h>
29003 #ifdef signal
29004 # undef signal
29005 #endif
29006 #ifdef __cplusplus
29007 extern "C" void (*signal (int, void (*)(int)))(int);
29008 #else
29009 void (*signal ()) ();
29010 #endif
29011
29012 int
29013 main ()
29014 {
29015 int i;
29016   ;
29017   return 0;
29018 }
29019 _ACEOF
29020 rm -f conftest.$ac_objext
29021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29022   (eval $ac_compile) 2>conftest.er1
29023   ac_status=$?
29024   grep -v '^ *+' conftest.er1 >conftest.err
29025   rm -f conftest.er1
29026   cat conftest.err >&5
29027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29028   (exit $ac_status); } &&
29029          { ac_try='test -z "$ac_c_werror_flag"
29030                          || test ! -s conftest.err'
29031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29032   (eval $ac_try) 2>&5
29033   ac_status=$?
29034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29035   (exit $ac_status); }; } &&
29036          { ac_try='test -s conftest.$ac_objext'
29037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29038   (eval $ac_try) 2>&5
29039   ac_status=$?
29040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29041   (exit $ac_status); }; }; then
29042   ac_cv_type_signal=void
29043 else
29044   echo "$as_me: failed program was:" >&5
29045 sed 's/^/| /' conftest.$ac_ext >&5
29046
29047 ac_cv_type_signal=int
29048 fi
29049 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29050 fi
29051 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
29052 echo "${ECHO_T}$ac_cv_type_signal" >&6
29053
29054 cat >>confdefs.h <<_ACEOF
29055 #define RETSIGTYPE $ac_cv_type_signal
29056 _ACEOF
29057
29058
29059 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
29060 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
29061 if test "${ac_cv_struct_tm+set}" = set; then
29062   echo $ECHO_N "(cached) $ECHO_C" >&6
29063 else
29064   cat >conftest.$ac_ext <<_ACEOF
29065 /* confdefs.h.  */
29066 _ACEOF
29067 cat confdefs.h >>conftest.$ac_ext
29068 cat >>conftest.$ac_ext <<_ACEOF
29069 /* end confdefs.h.  */
29070 #include <sys/types.h>
29071 #include <time.h>
29072
29073 int
29074 main ()
29075 {
29076 struct tm *tp; tp->tm_sec;
29077   ;
29078   return 0;
29079 }
29080 _ACEOF
29081 rm -f conftest.$ac_objext
29082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29083   (eval $ac_compile) 2>conftest.er1
29084   ac_status=$?
29085   grep -v '^ *+' conftest.er1 >conftest.err
29086   rm -f conftest.er1
29087   cat conftest.err >&5
29088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29089   (exit $ac_status); } &&
29090          { ac_try='test -z "$ac_c_werror_flag"
29091                          || test ! -s conftest.err'
29092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29093   (eval $ac_try) 2>&5
29094   ac_status=$?
29095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29096   (exit $ac_status); }; } &&
29097          { ac_try='test -s conftest.$ac_objext'
29098   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29099   (eval $ac_try) 2>&5
29100   ac_status=$?
29101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29102   (exit $ac_status); }; }; then
29103   ac_cv_struct_tm=time.h
29104 else
29105   echo "$as_me: failed program was:" >&5
29106 sed 's/^/| /' conftest.$ac_ext >&5
29107
29108 ac_cv_struct_tm=sys/time.h
29109 fi
29110 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29111 fi
29112 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
29113 echo "${ECHO_T}$ac_cv_struct_tm" >&6
29114 if test $ac_cv_struct_tm = sys/time.h; then
29115
29116 cat >>confdefs.h <<\_ACEOF
29117 #define TM_IN_SYS_TIME 1
29118 _ACEOF
29119
29120 fi
29121
29122 for ac_prog in flex lex
29123 do
29124   # Extract the first word of "$ac_prog", so it can be a program name with args.
29125 set dummy $ac_prog; ac_word=$2
29126 echo "$as_me:$LINENO: checking for $ac_word" >&5
29127 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29128 if test "${ac_cv_prog_LEX+set}" = set; then
29129   echo $ECHO_N "(cached) $ECHO_C" >&6
29130 else
29131   if test -n "$LEX"; then
29132   ac_cv_prog_LEX="$LEX" # Let the user override the test.
29133 else
29134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29135 for as_dir in $PATH
29136 do
29137   IFS=$as_save_IFS
29138   test -z "$as_dir" && as_dir=.
29139   for ac_exec_ext in '' $ac_executable_extensions; do
29140   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29141     ac_cv_prog_LEX="$ac_prog"
29142     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29143     break 2
29144   fi
29145 done
29146 done
29147
29148 fi
29149 fi
29150 LEX=$ac_cv_prog_LEX
29151 if test -n "$LEX"; then
29152   echo "$as_me:$LINENO: result: $LEX" >&5
29153 echo "${ECHO_T}$LEX" >&6
29154 else
29155   echo "$as_me:$LINENO: result: no" >&5
29156 echo "${ECHO_T}no" >&6
29157 fi
29158
29159   test -n "$LEX" && break
29160 done
29161 test -n "$LEX" || LEX=":"
29162
29163 if test -z "$LEXLIB"
29164 then
29165   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
29166 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
29167 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
29168   echo $ECHO_N "(cached) $ECHO_C" >&6
29169 else
29170   ac_check_lib_save_LIBS=$LIBS
29171 LIBS="-lfl  $LIBS"
29172 cat >conftest.$ac_ext <<_ACEOF
29173 /* confdefs.h.  */
29174 _ACEOF
29175 cat confdefs.h >>conftest.$ac_ext
29176 cat >>conftest.$ac_ext <<_ACEOF
29177 /* end confdefs.h.  */
29178
29179 /* Override any gcc2 internal prototype to avoid an error.  */
29180 #ifdef __cplusplus
29181 extern "C"
29182 #endif
29183 /* We use char because int might match the return type of a gcc2
29184    builtin and then its argument prototype would still apply.  */
29185 char yywrap ();
29186 int
29187 main ()
29188 {
29189 yywrap ();
29190   ;
29191   return 0;
29192 }
29193 _ACEOF
29194 rm -f conftest.$ac_objext conftest$ac_exeext
29195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29196   (eval $ac_link) 2>conftest.er1
29197   ac_status=$?
29198   grep -v '^ *+' conftest.er1 >conftest.err
29199   rm -f conftest.er1
29200   cat conftest.err >&5
29201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29202   (exit $ac_status); } &&
29203          { ac_try='test -z "$ac_c_werror_flag"
29204                          || test ! -s conftest.err'
29205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29206   (eval $ac_try) 2>&5
29207   ac_status=$?
29208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29209   (exit $ac_status); }; } &&
29210          { ac_try='test -s conftest$ac_exeext'
29211   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29212   (eval $ac_try) 2>&5
29213   ac_status=$?
29214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29215   (exit $ac_status); }; }; then
29216   ac_cv_lib_fl_yywrap=yes
29217 else
29218   echo "$as_me: failed program was:" >&5
29219 sed 's/^/| /' conftest.$ac_ext >&5
29220
29221 ac_cv_lib_fl_yywrap=no
29222 fi
29223 rm -f conftest.err conftest.$ac_objext \
29224       conftest$ac_exeext conftest.$ac_ext
29225 LIBS=$ac_check_lib_save_LIBS
29226 fi
29227 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
29228 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
29229 if test $ac_cv_lib_fl_yywrap = yes; then
29230   LEXLIB="-lfl"
29231 else
29232   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
29233 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
29234 if test "${ac_cv_lib_l_yywrap+set}" = set; then
29235   echo $ECHO_N "(cached) $ECHO_C" >&6
29236 else
29237   ac_check_lib_save_LIBS=$LIBS
29238 LIBS="-ll  $LIBS"
29239 cat >conftest.$ac_ext <<_ACEOF
29240 /* confdefs.h.  */
29241 _ACEOF
29242 cat confdefs.h >>conftest.$ac_ext
29243 cat >>conftest.$ac_ext <<_ACEOF
29244 /* end confdefs.h.  */
29245
29246 /* Override any gcc2 internal prototype to avoid an error.  */
29247 #ifdef __cplusplus
29248 extern "C"
29249 #endif
29250 /* We use char because int might match the return type of a gcc2
29251    builtin and then its argument prototype would still apply.  */
29252 char yywrap ();
29253 int
29254 main ()
29255 {
29256 yywrap ();
29257   ;
29258   return 0;
29259 }
29260 _ACEOF
29261 rm -f conftest.$ac_objext conftest$ac_exeext
29262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29263   (eval $ac_link) 2>conftest.er1
29264   ac_status=$?
29265   grep -v '^ *+' conftest.er1 >conftest.err
29266   rm -f conftest.er1
29267   cat conftest.err >&5
29268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29269   (exit $ac_status); } &&
29270          { ac_try='test -z "$ac_c_werror_flag"
29271                          || test ! -s conftest.err'
29272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29273   (eval $ac_try) 2>&5
29274   ac_status=$?
29275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29276   (exit $ac_status); }; } &&
29277          { ac_try='test -s conftest$ac_exeext'
29278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29279   (eval $ac_try) 2>&5
29280   ac_status=$?
29281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29282   (exit $ac_status); }; }; then
29283   ac_cv_lib_l_yywrap=yes
29284 else
29285   echo "$as_me: failed program was:" >&5
29286 sed 's/^/| /' conftest.$ac_ext >&5
29287
29288 ac_cv_lib_l_yywrap=no
29289 fi
29290 rm -f conftest.err conftest.$ac_objext \
29291       conftest$ac_exeext conftest.$ac_ext
29292 LIBS=$ac_check_lib_save_LIBS
29293 fi
29294 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
29295 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
29296 if test $ac_cv_lib_l_yywrap = yes; then
29297   LEXLIB="-ll"
29298 fi
29299
29300 fi
29301
29302 fi
29303
29304 if test "x$LEX" != "x:"; then
29305   echo "$as_me:$LINENO: checking lex output file root" >&5
29306 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
29307 if test "${ac_cv_prog_lex_root+set}" = set; then
29308   echo $ECHO_N "(cached) $ECHO_C" >&6
29309 else
29310   # The minimal lex program is just a single line: %%.  But some broken lexes
29311 # (Solaris, I think it was) want two %% lines, so accommodate them.
29312 cat >conftest.l <<_ACEOF
29313 %%
29314 %%
29315 _ACEOF
29316 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
29317   (eval $LEX conftest.l) 2>&5
29318   ac_status=$?
29319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29320   (exit $ac_status); }
29321 if test -f lex.yy.c; then
29322   ac_cv_prog_lex_root=lex.yy
29323 elif test -f lexyy.c; then
29324   ac_cv_prog_lex_root=lexyy
29325 else
29326   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
29327 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
29328    { (exit 1); exit 1; }; }
29329 fi
29330 fi
29331 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
29332 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
29333 rm -f conftest.l
29334 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
29335
29336 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
29337 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
29338 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
29339   echo $ECHO_N "(cached) $ECHO_C" >&6
29340 else
29341   # POSIX says lex can declare yytext either as a pointer or an array; the
29342 # default is implementation-dependent. Figure out which it is, since
29343 # not all implementations provide the %pointer and %array declarations.
29344 ac_cv_prog_lex_yytext_pointer=no
29345 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
29346 ac_save_LIBS=$LIBS
29347 LIBS="$LIBS $LEXLIB"
29348 cat >conftest.$ac_ext <<_ACEOF
29349 `cat $LEX_OUTPUT_ROOT.c`
29350 _ACEOF
29351 rm -f conftest.$ac_objext conftest$ac_exeext
29352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29353   (eval $ac_link) 2>conftest.er1
29354   ac_status=$?
29355   grep -v '^ *+' conftest.er1 >conftest.err
29356   rm -f conftest.er1
29357   cat conftest.err >&5
29358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29359   (exit $ac_status); } &&
29360          { ac_try='test -z "$ac_c_werror_flag"
29361                          || test ! -s conftest.err'
29362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29363   (eval $ac_try) 2>&5
29364   ac_status=$?
29365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29366   (exit $ac_status); }; } &&
29367          { ac_try='test -s conftest$ac_exeext'
29368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29369   (eval $ac_try) 2>&5
29370   ac_status=$?
29371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29372   (exit $ac_status); }; }; then
29373   ac_cv_prog_lex_yytext_pointer=yes
29374 else
29375   echo "$as_me: failed program was:" >&5
29376 sed 's/^/| /' conftest.$ac_ext >&5
29377
29378 fi
29379 rm -f conftest.err conftest.$ac_objext \
29380       conftest$ac_exeext conftest.$ac_ext
29381 LIBS=$ac_save_LIBS
29382 rm -f "${LEX_OUTPUT_ROOT}.c"
29383
29384 fi
29385 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
29386 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
29387 if test $ac_cv_prog_lex_yytext_pointer = yes; then
29388
29389 cat >>confdefs.h <<\_ACEOF
29390 #define YYTEXT_POINTER 1
29391 _ACEOF
29392
29393 fi
29394
29395 fi
29396 if test "$LEX" = :; then
29397   LEX=${am_missing_run}flex
29398 fi
29399
29400
29401 echo "$as_me:$LINENO: checking for socklen_t" >&5
29402 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
29403 if test "${ac_cv_type_socklen_t+set}" = set; then
29404   echo $ECHO_N "(cached) $ECHO_C" >&6
29405 else
29406   cat >conftest.$ac_ext <<_ACEOF
29407 /* confdefs.h.  */
29408 _ACEOF
29409 cat confdefs.h >>conftest.$ac_ext
29410 cat >>conftest.$ac_ext <<_ACEOF
29411 /* end confdefs.h.  */
29412 #include <sys/types.h>
29413 #if STDC_HEADERS
29414 #include <stdlib.h>
29415 #include <stddef.h>
29416 #endif
29417 #include <sys/socket.h>
29418 _ACEOF
29419 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29420   $EGREP "(^|[^a-zA-Z_0-9])socklen_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
29421   ac_cv_type_socklen_t=yes
29422 else
29423   ac_cv_type_socklen_t=no
29424 fi
29425 rm -f conftest*
29426
29427 fi
29428 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
29429 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
29430 if test "x$ac_cv_type_socklen_t" = xno; then
29431
29432 cat >>confdefs.h <<\_ACEOF
29433 #define socklen_t int
29434 _ACEOF
29435
29436 fi
29437
29438
29439 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
29440 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
29441 if test "${ac_cv_header_stdc+set}" = set; then
29442   echo $ECHO_N "(cached) $ECHO_C" >&6
29443 else
29444   cat >conftest.$ac_ext <<_ACEOF
29445 /* confdefs.h.  */
29446 _ACEOF
29447 cat confdefs.h >>conftest.$ac_ext
29448 cat >>conftest.$ac_ext <<_ACEOF
29449 /* end confdefs.h.  */
29450 #include <stdlib.h>
29451 #include <stdarg.h>
29452 #include <string.h>
29453 #include <float.h>
29454
29455 int
29456 main ()
29457 {
29458
29459   ;
29460   return 0;
29461 }
29462 _ACEOF
29463 rm -f conftest.$ac_objext
29464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29465   (eval $ac_compile) 2>conftest.er1
29466   ac_status=$?
29467   grep -v '^ *+' conftest.er1 >conftest.err
29468   rm -f conftest.er1
29469   cat conftest.err >&5
29470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29471   (exit $ac_status); } &&
29472          { ac_try='test -z "$ac_c_werror_flag"
29473                          || test ! -s conftest.err'
29474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29475   (eval $ac_try) 2>&5
29476   ac_status=$?
29477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29478   (exit $ac_status); }; } &&
29479          { ac_try='test -s conftest.$ac_objext'
29480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29481   (eval $ac_try) 2>&5
29482   ac_status=$?
29483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29484   (exit $ac_status); }; }; then
29485   ac_cv_header_stdc=yes
29486 else
29487   echo "$as_me: failed program was:" >&5
29488 sed 's/^/| /' conftest.$ac_ext >&5
29489
29490 ac_cv_header_stdc=no
29491 fi
29492 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29493
29494 if test $ac_cv_header_stdc = yes; then
29495   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
29496   cat >conftest.$ac_ext <<_ACEOF
29497 /* confdefs.h.  */
29498 _ACEOF
29499 cat confdefs.h >>conftest.$ac_ext
29500 cat >>conftest.$ac_ext <<_ACEOF
29501 /* end confdefs.h.  */
29502 #include <string.h>
29503
29504 _ACEOF
29505 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29506   $EGREP "memchr" >/dev/null 2>&1; then
29507   :
29508 else
29509   ac_cv_header_stdc=no
29510 fi
29511 rm -f conftest*
29512
29513 fi
29514
29515 if test $ac_cv_header_stdc = yes; then
29516   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
29517   cat >conftest.$ac_ext <<_ACEOF
29518 /* confdefs.h.  */
29519 _ACEOF
29520 cat confdefs.h >>conftest.$ac_ext
29521 cat >>conftest.$ac_ext <<_ACEOF
29522 /* end confdefs.h.  */
29523 #include <stdlib.h>
29524
29525 _ACEOF
29526 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29527   $EGREP "free" >/dev/null 2>&1; then
29528   :
29529 else
29530   ac_cv_header_stdc=no
29531 fi
29532 rm -f conftest*
29533
29534 fi
29535
29536 if test $ac_cv_header_stdc = yes; then
29537   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
29538   if test "$cross_compiling" = yes; then
29539   :
29540 else
29541   cat >conftest.$ac_ext <<_ACEOF
29542 /* confdefs.h.  */
29543 _ACEOF
29544 cat confdefs.h >>conftest.$ac_ext
29545 cat >>conftest.$ac_ext <<_ACEOF
29546 /* end confdefs.h.  */
29547 #include <ctype.h>
29548 #if ((' ' & 0x0FF) == 0x020)
29549 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
29550 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
29551 #else
29552 # define ISLOWER(c) \
29553                    (('a' <= (c) && (c) <= 'i') \
29554                      || ('j' <= (c) && (c) <= 'r') \
29555                      || ('s' <= (c) && (c) <= 'z'))
29556 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
29557 #endif
29558
29559 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
29560 int
29561 main ()
29562 {
29563   int i;
29564   for (i = 0; i < 256; i++)
29565     if (XOR (islower (i), ISLOWER (i))
29566         || toupper (i) != TOUPPER (i))
29567       exit(2);
29568   exit (0);
29569 }
29570 _ACEOF
29571 rm -f conftest$ac_exeext
29572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29573   (eval $ac_link) 2>&5
29574   ac_status=$?
29575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29576   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29578   (eval $ac_try) 2>&5
29579   ac_status=$?
29580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29581   (exit $ac_status); }; }; then
29582   :
29583 else
29584   echo "$as_me: program exited with status $ac_status" >&5
29585 echo "$as_me: failed program was:" >&5
29586 sed 's/^/| /' conftest.$ac_ext >&5
29587
29588 ( exit $ac_status )
29589 ac_cv_header_stdc=no
29590 fi
29591 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29592 fi
29593 fi
29594 fi
29595 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
29596 echo "${ECHO_T}$ac_cv_header_stdc" >&6
29597 if test $ac_cv_header_stdc = yes; then
29598
29599 cat >>confdefs.h <<\_ACEOF
29600 #define STDC_HEADERS 1
29601 _ACEOF
29602
29603 fi
29604
29605
29606
29607
29608
29609
29610 ac_header_dirent=no
29611 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
29612   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
29613 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
29614 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
29615 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29616   echo $ECHO_N "(cached) $ECHO_C" >&6
29617 else
29618   cat >conftest.$ac_ext <<_ACEOF
29619 /* confdefs.h.  */
29620 _ACEOF
29621 cat confdefs.h >>conftest.$ac_ext
29622 cat >>conftest.$ac_ext <<_ACEOF
29623 /* end confdefs.h.  */
29624 #include <sys/types.h>
29625 #include <$ac_hdr>
29626
29627 int
29628 main ()
29629 {
29630 if ((DIR *) 0)
29631 return 0;
29632   ;
29633   return 0;
29634 }
29635 _ACEOF
29636 rm -f conftest.$ac_objext
29637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29638   (eval $ac_compile) 2>conftest.er1
29639   ac_status=$?
29640   grep -v '^ *+' conftest.er1 >conftest.err
29641   rm -f conftest.er1
29642   cat conftest.err >&5
29643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29644   (exit $ac_status); } &&
29645          { ac_try='test -z "$ac_c_werror_flag"
29646                          || test ! -s conftest.err'
29647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29648   (eval $ac_try) 2>&5
29649   ac_status=$?
29650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29651   (exit $ac_status); }; } &&
29652          { ac_try='test -s conftest.$ac_objext'
29653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29654   (eval $ac_try) 2>&5
29655   ac_status=$?
29656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29657   (exit $ac_status); }; }; then
29658   eval "$as_ac_Header=yes"
29659 else
29660   echo "$as_me: failed program was:" >&5
29661 sed 's/^/| /' conftest.$ac_ext >&5
29662
29663 eval "$as_ac_Header=no"
29664 fi
29665 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29666 fi
29667 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29668 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29669 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29670   cat >>confdefs.h <<_ACEOF
29671 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
29672 _ACEOF
29673
29674 ac_header_dirent=$ac_hdr; break
29675 fi
29676
29677 done
29678 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
29679 if test $ac_header_dirent = dirent.h; then
29680   echo "$as_me:$LINENO: checking for library containing opendir" >&5
29681 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
29682 if test "${ac_cv_search_opendir+set}" = set; then
29683   echo $ECHO_N "(cached) $ECHO_C" >&6
29684 else
29685   ac_func_search_save_LIBS=$LIBS
29686 ac_cv_search_opendir=no
29687 cat >conftest.$ac_ext <<_ACEOF
29688 /* confdefs.h.  */
29689 _ACEOF
29690 cat confdefs.h >>conftest.$ac_ext
29691 cat >>conftest.$ac_ext <<_ACEOF
29692 /* end confdefs.h.  */
29693
29694 /* Override any gcc2 internal prototype to avoid an error.  */
29695 #ifdef __cplusplus
29696 extern "C"
29697 #endif
29698 /* We use char because int might match the return type of a gcc2
29699    builtin and then its argument prototype would still apply.  */
29700 char opendir ();
29701 int
29702 main ()
29703 {
29704 opendir ();
29705   ;
29706   return 0;
29707 }
29708 _ACEOF
29709 rm -f conftest.$ac_objext conftest$ac_exeext
29710 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29711   (eval $ac_link) 2>conftest.er1
29712   ac_status=$?
29713   grep -v '^ *+' conftest.er1 >conftest.err
29714   rm -f conftest.er1
29715   cat conftest.err >&5
29716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29717   (exit $ac_status); } &&
29718          { ac_try='test -z "$ac_c_werror_flag"
29719                          || test ! -s conftest.err'
29720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29721   (eval $ac_try) 2>&5
29722   ac_status=$?
29723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29724   (exit $ac_status); }; } &&
29725          { ac_try='test -s conftest$ac_exeext'
29726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29727   (eval $ac_try) 2>&5
29728   ac_status=$?
29729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29730   (exit $ac_status); }; }; then
29731   ac_cv_search_opendir="none required"
29732 else
29733   echo "$as_me: failed program was:" >&5
29734 sed 's/^/| /' conftest.$ac_ext >&5
29735
29736 fi
29737 rm -f conftest.err conftest.$ac_objext \
29738       conftest$ac_exeext conftest.$ac_ext
29739 if test "$ac_cv_search_opendir" = no; then
29740   for ac_lib in dir; do
29741     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
29742     cat >conftest.$ac_ext <<_ACEOF
29743 /* confdefs.h.  */
29744 _ACEOF
29745 cat confdefs.h >>conftest.$ac_ext
29746 cat >>conftest.$ac_ext <<_ACEOF
29747 /* end confdefs.h.  */
29748
29749 /* Override any gcc2 internal prototype to avoid an error.  */
29750 #ifdef __cplusplus
29751 extern "C"
29752 #endif
29753 /* We use char because int might match the return type of a gcc2
29754    builtin and then its argument prototype would still apply.  */
29755 char opendir ();
29756 int
29757 main ()
29758 {
29759 opendir ();
29760   ;
29761   return 0;
29762 }
29763 _ACEOF
29764 rm -f conftest.$ac_objext conftest$ac_exeext
29765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29766   (eval $ac_link) 2>conftest.er1
29767   ac_status=$?
29768   grep -v '^ *+' conftest.er1 >conftest.err
29769   rm -f conftest.er1
29770   cat conftest.err >&5
29771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29772   (exit $ac_status); } &&
29773          { ac_try='test -z "$ac_c_werror_flag"
29774                          || test ! -s conftest.err'
29775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29776   (eval $ac_try) 2>&5
29777   ac_status=$?
29778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29779   (exit $ac_status); }; } &&
29780          { ac_try='test -s conftest$ac_exeext'
29781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29782   (eval $ac_try) 2>&5
29783   ac_status=$?
29784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29785   (exit $ac_status); }; }; then
29786   ac_cv_search_opendir="-l$ac_lib"
29787 break
29788 else
29789   echo "$as_me: failed program was:" >&5
29790 sed 's/^/| /' conftest.$ac_ext >&5
29791
29792 fi
29793 rm -f conftest.err conftest.$ac_objext \
29794       conftest$ac_exeext conftest.$ac_ext
29795   done
29796 fi
29797 LIBS=$ac_func_search_save_LIBS
29798 fi
29799 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
29800 echo "${ECHO_T}$ac_cv_search_opendir" >&6
29801 if test "$ac_cv_search_opendir" != no; then
29802   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
29803
29804 fi
29805
29806 else
29807   echo "$as_me:$LINENO: checking for library containing opendir" >&5
29808 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
29809 if test "${ac_cv_search_opendir+set}" = set; then
29810   echo $ECHO_N "(cached) $ECHO_C" >&6
29811 else
29812   ac_func_search_save_LIBS=$LIBS
29813 ac_cv_search_opendir=no
29814 cat >conftest.$ac_ext <<_ACEOF
29815 /* confdefs.h.  */
29816 _ACEOF
29817 cat confdefs.h >>conftest.$ac_ext
29818 cat >>conftest.$ac_ext <<_ACEOF
29819 /* end confdefs.h.  */
29820
29821 /* Override any gcc2 internal prototype to avoid an error.  */
29822 #ifdef __cplusplus
29823 extern "C"
29824 #endif
29825 /* We use char because int might match the return type of a gcc2
29826    builtin and then its argument prototype would still apply.  */
29827 char opendir ();
29828 int
29829 main ()
29830 {
29831 opendir ();
29832   ;
29833   return 0;
29834 }
29835 _ACEOF
29836 rm -f conftest.$ac_objext conftest$ac_exeext
29837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29838   (eval $ac_link) 2>conftest.er1
29839   ac_status=$?
29840   grep -v '^ *+' conftest.er1 >conftest.err
29841   rm -f conftest.er1
29842   cat conftest.err >&5
29843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29844   (exit $ac_status); } &&
29845          { ac_try='test -z "$ac_c_werror_flag"
29846                          || test ! -s conftest.err'
29847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29848   (eval $ac_try) 2>&5
29849   ac_status=$?
29850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29851   (exit $ac_status); }; } &&
29852          { ac_try='test -s conftest$ac_exeext'
29853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29854   (eval $ac_try) 2>&5
29855   ac_status=$?
29856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29857   (exit $ac_status); }; }; then
29858   ac_cv_search_opendir="none required"
29859 else
29860   echo "$as_me: failed program was:" >&5
29861 sed 's/^/| /' conftest.$ac_ext >&5
29862
29863 fi
29864 rm -f conftest.err conftest.$ac_objext \
29865       conftest$ac_exeext conftest.$ac_ext
29866 if test "$ac_cv_search_opendir" = no; then
29867   for ac_lib in x; do
29868     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
29869     cat >conftest.$ac_ext <<_ACEOF
29870 /* confdefs.h.  */
29871 _ACEOF
29872 cat confdefs.h >>conftest.$ac_ext
29873 cat >>conftest.$ac_ext <<_ACEOF
29874 /* end confdefs.h.  */
29875
29876 /* Override any gcc2 internal prototype to avoid an error.  */
29877 #ifdef __cplusplus
29878 extern "C"
29879 #endif
29880 /* We use char because int might match the return type of a gcc2
29881    builtin and then its argument prototype would still apply.  */
29882 char opendir ();
29883 int
29884 main ()
29885 {
29886 opendir ();
29887   ;
29888   return 0;
29889 }
29890 _ACEOF
29891 rm -f conftest.$ac_objext conftest$ac_exeext
29892 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29893   (eval $ac_link) 2>conftest.er1
29894   ac_status=$?
29895   grep -v '^ *+' conftest.er1 >conftest.err
29896   rm -f conftest.er1
29897   cat conftest.err >&5
29898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29899   (exit $ac_status); } &&
29900          { ac_try='test -z "$ac_c_werror_flag"
29901                          || test ! -s conftest.err'
29902   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29903   (eval $ac_try) 2>&5
29904   ac_status=$?
29905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29906   (exit $ac_status); }; } &&
29907          { ac_try='test -s conftest$ac_exeext'
29908   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29909   (eval $ac_try) 2>&5
29910   ac_status=$?
29911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29912   (exit $ac_status); }; }; then
29913   ac_cv_search_opendir="-l$ac_lib"
29914 break
29915 else
29916   echo "$as_me: failed program was:" >&5
29917 sed 's/^/| /' conftest.$ac_ext >&5
29918
29919 fi
29920 rm -f conftest.err conftest.$ac_objext \
29921       conftest$ac_exeext conftest.$ac_ext
29922   done
29923 fi
29924 LIBS=$ac_func_search_save_LIBS
29925 fi
29926 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
29927 echo "${ECHO_T}$ac_cv_search_opendir" >&6
29928 if test "$ac_cv_search_opendir" != no; then
29929   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
29930
29931 fi
29932
29933 fi
29934
29935
29936
29937
29938
29939 for ac_header in sys/wait.h wait.h
29940 do
29941 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29942 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29943   echo "$as_me:$LINENO: checking for $ac_header" >&5
29944 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29945 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29946   echo $ECHO_N "(cached) $ECHO_C" >&6
29947 fi
29948 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29949 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29950 else
29951   # Is the header compilable?
29952 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29953 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29954 cat >conftest.$ac_ext <<_ACEOF
29955 /* confdefs.h.  */
29956 _ACEOF
29957 cat confdefs.h >>conftest.$ac_ext
29958 cat >>conftest.$ac_ext <<_ACEOF
29959 /* end confdefs.h.  */
29960 $ac_includes_default
29961 #include <$ac_header>
29962 _ACEOF
29963 rm -f conftest.$ac_objext
29964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29965   (eval $ac_compile) 2>conftest.er1
29966   ac_status=$?
29967   grep -v '^ *+' conftest.er1 >conftest.err
29968   rm -f conftest.er1
29969   cat conftest.err >&5
29970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29971   (exit $ac_status); } &&
29972          { ac_try='test -z "$ac_c_werror_flag"
29973                          || test ! -s conftest.err'
29974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29975   (eval $ac_try) 2>&5
29976   ac_status=$?
29977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29978   (exit $ac_status); }; } &&
29979          { ac_try='test -s conftest.$ac_objext'
29980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29981   (eval $ac_try) 2>&5
29982   ac_status=$?
29983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29984   (exit $ac_status); }; }; then
29985   ac_header_compiler=yes
29986 else
29987   echo "$as_me: failed program was:" >&5
29988 sed 's/^/| /' conftest.$ac_ext >&5
29989
29990 ac_header_compiler=no
29991 fi
29992 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29993 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29994 echo "${ECHO_T}$ac_header_compiler" >&6
29995
29996 # Is the header present?
29997 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29998 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29999 cat >conftest.$ac_ext <<_ACEOF
30000 /* confdefs.h.  */
30001 _ACEOF
30002 cat confdefs.h >>conftest.$ac_ext
30003 cat >>conftest.$ac_ext <<_ACEOF
30004 /* end confdefs.h.  */
30005 #include <$ac_header>
30006 _ACEOF
30007 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30008   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30009   ac_status=$?
30010   grep -v '^ *+' conftest.er1 >conftest.err
30011   rm -f conftest.er1
30012   cat conftest.err >&5
30013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30014   (exit $ac_status); } >/dev/null; then
30015   if test -s conftest.err; then
30016     ac_cpp_err=$ac_c_preproc_warn_flag
30017     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30018   else
30019     ac_cpp_err=
30020   fi
30021 else
30022   ac_cpp_err=yes
30023 fi
30024 if test -z "$ac_cpp_err"; then
30025   ac_header_preproc=yes
30026 else
30027   echo "$as_me: failed program was:" >&5
30028 sed 's/^/| /' conftest.$ac_ext >&5
30029
30030   ac_header_preproc=no
30031 fi
30032 rm -f conftest.err conftest.$ac_ext
30033 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30034 echo "${ECHO_T}$ac_header_preproc" >&6
30035
30036 # So?  What about this header?
30037 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30038   yes:no: )
30039     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30040 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30041     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30042 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30043     ac_header_preproc=yes
30044     ;;
30045   no:yes:* )
30046     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30047 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30048     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30049 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30050     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30051 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30052     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30053 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30054     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30055 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30056     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30057 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30058     (
30059       cat <<\_ASBOX
30060 ## ------------------------------------------ ##
30061 ## Report this to the AC_PACKAGE_NAME lists.  ##
30062 ## ------------------------------------------ ##
30063 _ASBOX
30064     ) |
30065       sed "s/^/$as_me: WARNING:     /" >&2
30066     ;;
30067 esac
30068 echo "$as_me:$LINENO: checking for $ac_header" >&5
30069 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30070 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30071   echo $ECHO_N "(cached) $ECHO_C" >&6
30072 else
30073   eval "$as_ac_Header=\$ac_header_preproc"
30074 fi
30075 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30076 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30077
30078 fi
30079 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30080   cat >>confdefs.h <<_ACEOF
30081 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30082 _ACEOF
30083
30084 fi
30085
30086 done
30087
30088 echo "$as_me:$LINENO: checking whether wait uses union wait" >&5
30089 echo $ECHO_N "checking whether wait uses union wait... $ECHO_C" >&6
30090 if test "${cf_cv_arg_union_wait+set}" = set; then
30091   echo $ECHO_N "(cached) $ECHO_C" >&6
30092 else
30093   cat >conftest.$ac_ext <<_ACEOF
30094 /* confdefs.h.  */
30095 _ACEOF
30096 cat confdefs.h >>conftest.$ac_ext
30097 cat >>conftest.$ac_ext <<_ACEOF
30098 /* end confdefs.h.  */
30099
30100 #include <sys/types.h>
30101
30102 #if HAVE_SYS_WAIT_H
30103 # include <sys/wait.h>
30104 #else
30105 # if HAVE_WAIT_H
30106 #  include <wait.h>
30107 # endif
30108 #endif
30109
30110 #ifdef __STDC__
30111 pid_t wait(union wait *);
30112 #endif
30113
30114 int
30115 main ()
30116 {
30117
30118   union wait x; int i;
30119   wait(&x); i = WIFEXITED(x)
30120
30121   ;
30122   return 0;
30123 }
30124 _ACEOF
30125 rm -f conftest.$ac_objext
30126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30127   (eval $ac_compile) 2>conftest.er1
30128   ac_status=$?
30129   grep -v '^ *+' conftest.er1 >conftest.err
30130   rm -f conftest.er1
30131   cat conftest.err >&5
30132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30133   (exit $ac_status); } &&
30134          { ac_try='test -z "$ac_c_werror_flag"
30135                          || test ! -s conftest.err'
30136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30137   (eval $ac_try) 2>&5
30138   ac_status=$?
30139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30140   (exit $ac_status); }; } &&
30141          { ac_try='test -s conftest.$ac_objext'
30142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30143   (eval $ac_try) 2>&5
30144   ac_status=$?
30145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30146   (exit $ac_status); }; }; then
30147   cf_cv_arg_union_wait=yes
30148 else
30149   echo "$as_me: failed program was:" >&5
30150 sed 's/^/| /' conftest.$ac_ext >&5
30151
30152 cf_cv_arg_union_wait=no
30153 fi
30154 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30155 fi
30156 echo "$as_me:$LINENO: result: $cf_cv_arg_union_wait" >&5
30157 echo "${ECHO_T}$cf_cv_arg_union_wait" >&6
30158 if test $cf_cv_arg_union_wait = yes; then
30159
30160 cat >>confdefs.h <<\_ACEOF
30161 #define WAIT_USES_UNION 1
30162 _ACEOF
30163
30164 fi
30165
30166
30167
30168
30169
30170 for ac_header in sys/wait.h wait.h
30171 do
30172 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30173 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30174   echo "$as_me:$LINENO: checking for $ac_header" >&5
30175 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30176 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30177   echo $ECHO_N "(cached) $ECHO_C" >&6
30178 fi
30179 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30180 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30181 else
30182   # Is the header compilable?
30183 echo "$as_me:$LINENO: checking $ac_header usability" >&5
30184 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30185 cat >conftest.$ac_ext <<_ACEOF
30186 /* confdefs.h.  */
30187 _ACEOF
30188 cat confdefs.h >>conftest.$ac_ext
30189 cat >>conftest.$ac_ext <<_ACEOF
30190 /* end confdefs.h.  */
30191 $ac_includes_default
30192 #include <$ac_header>
30193 _ACEOF
30194 rm -f conftest.$ac_objext
30195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30196   (eval $ac_compile) 2>conftest.er1
30197   ac_status=$?
30198   grep -v '^ *+' conftest.er1 >conftest.err
30199   rm -f conftest.er1
30200   cat conftest.err >&5
30201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30202   (exit $ac_status); } &&
30203          { ac_try='test -z "$ac_c_werror_flag"
30204                          || test ! -s conftest.err'
30205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30206   (eval $ac_try) 2>&5
30207   ac_status=$?
30208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30209   (exit $ac_status); }; } &&
30210          { ac_try='test -s conftest.$ac_objext'
30211   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30212   (eval $ac_try) 2>&5
30213   ac_status=$?
30214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30215   (exit $ac_status); }; }; then
30216   ac_header_compiler=yes
30217 else
30218   echo "$as_me: failed program was:" >&5
30219 sed 's/^/| /' conftest.$ac_ext >&5
30220
30221 ac_header_compiler=no
30222 fi
30223 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30224 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30225 echo "${ECHO_T}$ac_header_compiler" >&6
30226
30227 # Is the header present?
30228 echo "$as_me:$LINENO: checking $ac_header presence" >&5
30229 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30230 cat >conftest.$ac_ext <<_ACEOF
30231 /* confdefs.h.  */
30232 _ACEOF
30233 cat confdefs.h >>conftest.$ac_ext
30234 cat >>conftest.$ac_ext <<_ACEOF
30235 /* end confdefs.h.  */
30236 #include <$ac_header>
30237 _ACEOF
30238 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30239   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30240   ac_status=$?
30241   grep -v '^ *+' conftest.er1 >conftest.err
30242   rm -f conftest.er1
30243   cat conftest.err >&5
30244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30245   (exit $ac_status); } >/dev/null; then
30246   if test -s conftest.err; then
30247     ac_cpp_err=$ac_c_preproc_warn_flag
30248     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30249   else
30250     ac_cpp_err=
30251   fi
30252 else
30253   ac_cpp_err=yes
30254 fi
30255 if test -z "$ac_cpp_err"; then
30256   ac_header_preproc=yes
30257 else
30258   echo "$as_me: failed program was:" >&5
30259 sed 's/^/| /' conftest.$ac_ext >&5
30260
30261   ac_header_preproc=no
30262 fi
30263 rm -f conftest.err conftest.$ac_ext
30264 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30265 echo "${ECHO_T}$ac_header_preproc" >&6
30266
30267 # So?  What about this header?
30268 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30269   yes:no: )
30270     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30271 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30272     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30273 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30274     ac_header_preproc=yes
30275     ;;
30276   no:yes:* )
30277     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30278 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30279     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30280 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30281     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30282 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30283     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30284 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30285     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30286 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30287     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30288 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30289     (
30290       cat <<\_ASBOX
30291 ## ------------------------------------------ ##
30292 ## Report this to the AC_PACKAGE_NAME lists.  ##
30293 ## ------------------------------------------ ##
30294 _ASBOX
30295     ) |
30296       sed "s/^/$as_me: WARNING:     /" >&2
30297     ;;
30298 esac
30299 echo "$as_me:$LINENO: checking for $ac_header" >&5
30300 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30301 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30302   echo $ECHO_N "(cached) $ECHO_C" >&6
30303 else
30304   eval "$as_ac_Header=\$ac_header_preproc"
30305 fi
30306 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30307 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30308
30309 fi
30310 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30311   cat >>confdefs.h <<_ACEOF
30312 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30313 _ACEOF
30314
30315 fi
30316
30317 done
30318
30319 echo "$as_me:$LINENO: checking whether wait uses int" >&5
30320 echo $ECHO_N "checking whether wait uses int... $ECHO_C" >&6
30321 if test "${cf_cv_arg_int+set}" = set; then
30322   echo $ECHO_N "(cached) $ECHO_C" >&6
30323 else
30324   cat >conftest.$ac_ext <<_ACEOF
30325 /* confdefs.h.  */
30326 _ACEOF
30327 cat confdefs.h >>conftest.$ac_ext
30328 cat >>conftest.$ac_ext <<_ACEOF
30329 /* end confdefs.h.  */
30330
30331 #include <sys/types.h>
30332
30333 #if HAVE_SYS_WAIT_H
30334 # include <sys/wait.h>
30335 #else
30336 # if HAVE_WAIT_H
30337 #  include <wait.h>
30338 # endif
30339 #endif
30340
30341 #ifdef __STDC__
30342 pid_t wait(int *);
30343 #endif
30344
30345 int
30346 main ()
30347 {
30348
30349   int x; int i;
30350   wait(&x); i = WIFEXITED(x)
30351
30352   ;
30353   return 0;
30354 }
30355 _ACEOF
30356 rm -f conftest.$ac_objext
30357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30358   (eval $ac_compile) 2>conftest.er1
30359   ac_status=$?
30360   grep -v '^ *+' conftest.er1 >conftest.err
30361   rm -f conftest.er1
30362   cat conftest.err >&5
30363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30364   (exit $ac_status); } &&
30365          { ac_try='test -z "$ac_c_werror_flag"
30366                          || test ! -s conftest.err'
30367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30368   (eval $ac_try) 2>&5
30369   ac_status=$?
30370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30371   (exit $ac_status); }; } &&
30372          { ac_try='test -s conftest.$ac_objext'
30373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30374   (eval $ac_try) 2>&5
30375   ac_status=$?
30376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30377   (exit $ac_status); }; }; then
30378   cf_cv_arg_int=yes
30379 else
30380   echo "$as_me: failed program was:" >&5
30381 sed 's/^/| /' conftest.$ac_ext >&5
30382
30383 cf_cv_arg_int=no
30384 fi
30385 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30386 fi
30387 echo "$as_me:$LINENO: result: $cf_cv_arg_int" >&5
30388 echo "${ECHO_T}$cf_cv_arg_int" >&6
30389 if test $cf_cv_arg_int = yes; then
30390
30391 cat >>confdefs.h <<\_ACEOF
30392 #define WAIT_USES_INT 1
30393 _ACEOF
30394
30395 fi
30396
30397 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
30398 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
30399 if test "${ac_cv_header_time+set}" = set; then
30400   echo $ECHO_N "(cached) $ECHO_C" >&6
30401 else
30402   cat >conftest.$ac_ext <<_ACEOF
30403 /* confdefs.h.  */
30404 _ACEOF
30405 cat confdefs.h >>conftest.$ac_ext
30406 cat >>conftest.$ac_ext <<_ACEOF
30407 /* end confdefs.h.  */
30408 #include <sys/types.h>
30409 #include <sys/time.h>
30410 #include <time.h>
30411
30412 int
30413 main ()
30414 {
30415 if ((struct tm *) 0)
30416 return 0;
30417   ;
30418   return 0;
30419 }
30420 _ACEOF
30421 rm -f conftest.$ac_objext
30422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30423   (eval $ac_compile) 2>conftest.er1
30424   ac_status=$?
30425   grep -v '^ *+' conftest.er1 >conftest.err
30426   rm -f conftest.er1
30427   cat conftest.err >&5
30428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30429   (exit $ac_status); } &&
30430          { ac_try='test -z "$ac_c_werror_flag"
30431                          || test ! -s conftest.err'
30432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30433   (eval $ac_try) 2>&5
30434   ac_status=$?
30435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30436   (exit $ac_status); }; } &&
30437          { ac_try='test -s conftest.$ac_objext'
30438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30439   (eval $ac_try) 2>&5
30440   ac_status=$?
30441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30442   (exit $ac_status); }; }; then
30443   ac_cv_header_time=yes
30444 else
30445   echo "$as_me: failed program was:" >&5
30446 sed 's/^/| /' conftest.$ac_ext >&5
30447
30448 ac_cv_header_time=no
30449 fi
30450 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30451 fi
30452 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
30453 echo "${ECHO_T}$ac_cv_header_time" >&6
30454 if test $ac_cv_header_time = yes; then
30455
30456 cat >>confdefs.h <<\_ACEOF
30457 #define TIME_WITH_SYS_TIME 1
30458 _ACEOF
30459
30460 fi
30461
30462
30463
30464
30465
30466
30467
30468
30469
30470
30471
30472
30473
30474
30475
30476
30477
30478
30479
30480
30481
30482
30483
30484
30485
30486
30487
30488
30489
30490
30491
30492
30493
30494
30495
30496
30497
30498
30499
30500
30501
30502
30503
30504
30505
30506
30507
30508
30509
30510
30511
30512
30513
30514
30515
30516
30517
30518
30519
30520 for ac_header in \
30521         arpa/inet.h \
30522         camlib.h \
30523         cam/cam.h \
30524         cam/scsi/scsi_message.h \
30525         chio.h \
30526         db.h \
30527         dbm.h \
30528         fcntl.h \
30529         fnmatch.h \
30530         fstab.h \
30531         grp.h \
30532         history.h \
30533         libc.h \
30534         limits.h \
30535         linux/zftape.h \
30536         mntent.h \
30537         mnttab.h \
30538         ndbm.h \
30539         netdb.h \
30540         netinet/in_systm.h \
30541         readline.h \
30542         readline/history.h \
30543         readline/readline.h \
30544         scsi/sg.h \
30545         scsi/scsi_ioctl.h \
30546         stdlib.h \
30547         string.h \
30548         strings.h \
30549         sys/chio.h \
30550         sys/dsreq.h \
30551         sys/fcntl.h \
30552         sys/file.h \
30553         sys/ioctl.h \
30554         sys/ipc.h \
30555         sys/mman.h \
30556         sys/mntent.h \
30557         sys/mtio.h \
30558         sys/param.h \
30559         sys/scarray.h \
30560         sys/gscdds.h \
30561         sys/scsiio.h \
30562         sys/scsi.h \
30563         sys/scsi/impl/uscsi.h \
30564         sys/scsi/scsi/ioctl.h \
30565         sys/select.h \
30566         sys/shm.h \
30567         sys/stat.h \
30568         sys/statfs.h \
30569         sys/statvfs.h \
30570         sys/tape.h \
30571         sys/time.h \
30572         sys/types.h \
30573         sys/uio.h \
30574         sys/vfs.h \
30575         sys/vfstab.h \
30576         syslog.h \
30577         unistd.h \
30578         vtblc.h \
30579
30580 do
30581 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30582 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30583   echo "$as_me:$LINENO: checking for $ac_header" >&5
30584 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30585 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30586   echo $ECHO_N "(cached) $ECHO_C" >&6
30587 fi
30588 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30589 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30590 else
30591   # Is the header compilable?
30592 echo "$as_me:$LINENO: checking $ac_header usability" >&5
30593 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30594 cat >conftest.$ac_ext <<_ACEOF
30595 /* confdefs.h.  */
30596 _ACEOF
30597 cat confdefs.h >>conftest.$ac_ext
30598 cat >>conftest.$ac_ext <<_ACEOF
30599 /* end confdefs.h.  */
30600 $ac_includes_default
30601 #include <$ac_header>
30602 _ACEOF
30603 rm -f conftest.$ac_objext
30604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30605   (eval $ac_compile) 2>conftest.er1
30606   ac_status=$?
30607   grep -v '^ *+' conftest.er1 >conftest.err
30608   rm -f conftest.er1
30609   cat conftest.err >&5
30610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30611   (exit $ac_status); } &&
30612          { ac_try='test -z "$ac_c_werror_flag"
30613                          || test ! -s conftest.err'
30614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30615   (eval $ac_try) 2>&5
30616   ac_status=$?
30617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30618   (exit $ac_status); }; } &&
30619          { ac_try='test -s conftest.$ac_objext'
30620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30621   (eval $ac_try) 2>&5
30622   ac_status=$?
30623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30624   (exit $ac_status); }; }; then
30625   ac_header_compiler=yes
30626 else
30627   echo "$as_me: failed program was:" >&5
30628 sed 's/^/| /' conftest.$ac_ext >&5
30629
30630 ac_header_compiler=no
30631 fi
30632 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30633 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30634 echo "${ECHO_T}$ac_header_compiler" >&6
30635
30636 # Is the header present?
30637 echo "$as_me:$LINENO: checking $ac_header presence" >&5
30638 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30639 cat >conftest.$ac_ext <<_ACEOF
30640 /* confdefs.h.  */
30641 _ACEOF
30642 cat confdefs.h >>conftest.$ac_ext
30643 cat >>conftest.$ac_ext <<_ACEOF
30644 /* end confdefs.h.  */
30645 #include <$ac_header>
30646 _ACEOF
30647 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30648   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30649   ac_status=$?
30650   grep -v '^ *+' conftest.er1 >conftest.err
30651   rm -f conftest.er1
30652   cat conftest.err >&5
30653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30654   (exit $ac_status); } >/dev/null; then
30655   if test -s conftest.err; then
30656     ac_cpp_err=$ac_c_preproc_warn_flag
30657     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30658   else
30659     ac_cpp_err=
30660   fi
30661 else
30662   ac_cpp_err=yes
30663 fi
30664 if test -z "$ac_cpp_err"; then
30665   ac_header_preproc=yes
30666 else
30667   echo "$as_me: failed program was:" >&5
30668 sed 's/^/| /' conftest.$ac_ext >&5
30669
30670   ac_header_preproc=no
30671 fi
30672 rm -f conftest.err conftest.$ac_ext
30673 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30674 echo "${ECHO_T}$ac_header_preproc" >&6
30675
30676 # So?  What about this header?
30677 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30678   yes:no: )
30679     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30680 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30681     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30682 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30683     ac_header_preproc=yes
30684     ;;
30685   no:yes:* )
30686     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30687 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30688     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30689 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30690     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30691 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30692     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30693 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30694     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30695 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30696     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30697 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30698     (
30699       cat <<\_ASBOX
30700 ## ------------------------------------------ ##
30701 ## Report this to the AC_PACKAGE_NAME lists.  ##
30702 ## ------------------------------------------ ##
30703 _ASBOX
30704     ) |
30705       sed "s/^/$as_me: WARNING:     /" >&2
30706     ;;
30707 esac
30708 echo "$as_me:$LINENO: checking for $ac_header" >&5
30709 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30710 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30711   echo $ECHO_N "(cached) $ECHO_C" >&6
30712 else
30713   eval "$as_ac_Header=\$ac_header_preproc"
30714 fi
30715 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30716 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30717
30718 fi
30719 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30720   cat >>confdefs.h <<_ACEOF
30721 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30722 _ACEOF
30723
30724 fi
30725
30726 done
30727
30728
30729
30730 for ac_header in netinet/ip.h
30731 do
30732 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30733 echo "$as_me:$LINENO: checking for $ac_header" >&5
30734 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30735 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30736   echo $ECHO_N "(cached) $ECHO_C" >&6
30737 else
30738   cat >conftest.$ac_ext <<_ACEOF
30739 /* confdefs.h.  */
30740 _ACEOF
30741 cat confdefs.h >>conftest.$ac_ext
30742 cat >>conftest.$ac_ext <<_ACEOF
30743 /* end confdefs.h.  */
30744 #include <sys/socket.h>
30745 #if HAVE_SYS_TYPES_H
30746 #include <sys/types.h>
30747 #endif
30748 #ifdef HAVE_NETINET_IN_SYSTM_H
30749 #include <netinet/in_systm.h>
30750 #endif
30751 #include <netinet/in.h>
30752
30753
30754 #include <$ac_header>
30755 _ACEOF
30756 rm -f conftest.$ac_objext
30757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30758   (eval $ac_compile) 2>conftest.er1
30759   ac_status=$?
30760   grep -v '^ *+' conftest.er1 >conftest.err
30761   rm -f conftest.er1
30762   cat conftest.err >&5
30763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30764   (exit $ac_status); } &&
30765          { ac_try='test -z "$ac_c_werror_flag"
30766                          || test ! -s conftest.err'
30767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30768   (eval $ac_try) 2>&5
30769   ac_status=$?
30770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30771   (exit $ac_status); }; } &&
30772          { ac_try='test -s conftest.$ac_objext'
30773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30774   (eval $ac_try) 2>&5
30775   ac_status=$?
30776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30777   (exit $ac_status); }; }; then
30778   eval "$as_ac_Header=yes"
30779 else
30780   echo "$as_me: failed program was:" >&5
30781 sed 's/^/| /' conftest.$ac_ext >&5
30782
30783 eval "$as_ac_Header=no"
30784 fi
30785 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30786 fi
30787 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30788 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30789 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30790   cat >>confdefs.h <<_ACEOF
30791 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30792 _ACEOF
30793
30794 fi
30795
30796 done
30797
30798
30799
30800 for ac_header in sys/mount.h
30801 do
30802 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30803 echo "$as_me:$LINENO: checking for $ac_header" >&5
30804 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30805 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30806   echo $ECHO_N "(cached) $ECHO_C" >&6
30807 else
30808   cat >conftest.$ac_ext <<_ACEOF
30809 /* confdefs.h.  */
30810 _ACEOF
30811 cat confdefs.h >>conftest.$ac_ext
30812 cat >>conftest.$ac_ext <<_ACEOF
30813 /* end confdefs.h.  */
30814 #ifdef HAVE_SYS_PARAM_H
30815 #include <sys/param.h>
30816 #endif
30817
30818
30819 #include <$ac_header>
30820 _ACEOF
30821 rm -f conftest.$ac_objext
30822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30823   (eval $ac_compile) 2>conftest.er1
30824   ac_status=$?
30825   grep -v '^ *+' conftest.er1 >conftest.err
30826   rm -f conftest.er1
30827   cat conftest.err >&5
30828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30829   (exit $ac_status); } &&
30830          { ac_try='test -z "$ac_c_werror_flag"
30831                          || test ! -s conftest.err'
30832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30833   (eval $ac_try) 2>&5
30834   ac_status=$?
30835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30836   (exit $ac_status); }; } &&
30837          { ac_try='test -s conftest.$ac_objext'
30838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30839   (eval $ac_try) 2>&5
30840   ac_status=$?
30841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30842   (exit $ac_status); }; }; then
30843   eval "$as_ac_Header=yes"
30844 else
30845   echo "$as_me: failed program was:" >&5
30846 sed 's/^/| /' conftest.$ac_ext >&5
30847
30848 eval "$as_ac_Header=no"
30849 fi
30850 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30851 fi
30852 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30853 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30854 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30855   cat >>confdefs.h <<_ACEOF
30856 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30857 _ACEOF
30858
30859 fi
30860
30861 done
30862
30863
30864 NO_SCSI_CHANGER_MODE=true
30865 NO_CHIO_CHANGER_MODE=true
30866
30867 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
30868 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
30869 if test "${ac_cv_c_bigendian+set}" = set; then
30870   echo $ECHO_N "(cached) $ECHO_C" >&6
30871 else
30872   # See if sys/param.h defines the BYTE_ORDER macro.
30873 cat >conftest.$ac_ext <<_ACEOF
30874 /* confdefs.h.  */
30875 _ACEOF
30876 cat confdefs.h >>conftest.$ac_ext
30877 cat >>conftest.$ac_ext <<_ACEOF
30878 /* end confdefs.h.  */
30879 #include <sys/types.h>
30880 #include <sys/param.h>
30881
30882 int
30883 main ()
30884 {
30885 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
30886  bogus endian macros
30887 #endif
30888
30889   ;
30890   return 0;
30891 }
30892 _ACEOF
30893 rm -f conftest.$ac_objext
30894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30895   (eval $ac_compile) 2>conftest.er1
30896   ac_status=$?
30897   grep -v '^ *+' conftest.er1 >conftest.err
30898   rm -f conftest.er1
30899   cat conftest.err >&5
30900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30901   (exit $ac_status); } &&
30902          { ac_try='test -z "$ac_c_werror_flag"
30903                          || test ! -s conftest.err'
30904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30905   (eval $ac_try) 2>&5
30906   ac_status=$?
30907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30908   (exit $ac_status); }; } &&
30909          { ac_try='test -s conftest.$ac_objext'
30910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30911   (eval $ac_try) 2>&5
30912   ac_status=$?
30913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30914   (exit $ac_status); }; }; then
30915   # It does; now see whether it defined to BIG_ENDIAN or not.
30916 cat >conftest.$ac_ext <<_ACEOF
30917 /* confdefs.h.  */
30918 _ACEOF
30919 cat confdefs.h >>conftest.$ac_ext
30920 cat >>conftest.$ac_ext <<_ACEOF
30921 /* end confdefs.h.  */
30922 #include <sys/types.h>
30923 #include <sys/param.h>
30924
30925 int
30926 main ()
30927 {
30928 #if BYTE_ORDER != BIG_ENDIAN
30929  not big endian
30930 #endif
30931
30932   ;
30933   return 0;
30934 }
30935 _ACEOF
30936 rm -f conftest.$ac_objext
30937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30938   (eval $ac_compile) 2>conftest.er1
30939   ac_status=$?
30940   grep -v '^ *+' conftest.er1 >conftest.err
30941   rm -f conftest.er1
30942   cat conftest.err >&5
30943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30944   (exit $ac_status); } &&
30945          { ac_try='test -z "$ac_c_werror_flag"
30946                          || test ! -s conftest.err'
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); }; } &&
30952          { ac_try='test -s conftest.$ac_objext'
30953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30954   (eval $ac_try) 2>&5
30955   ac_status=$?
30956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30957   (exit $ac_status); }; }; then
30958   ac_cv_c_bigendian=yes
30959 else
30960   echo "$as_me: failed program was:" >&5
30961 sed 's/^/| /' conftest.$ac_ext >&5
30962
30963 ac_cv_c_bigendian=no
30964 fi
30965 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30966 else
30967   echo "$as_me: failed program was:" >&5
30968 sed 's/^/| /' conftest.$ac_ext >&5
30969
30970 # It does not; compile a test program.
30971 if test "$cross_compiling" = yes; then
30972   # try to guess the endianness by grepping values into an object file
30973   ac_cv_c_bigendian=unknown
30974   cat >conftest.$ac_ext <<_ACEOF
30975 /* confdefs.h.  */
30976 _ACEOF
30977 cat confdefs.h >>conftest.$ac_ext
30978 cat >>conftest.$ac_ext <<_ACEOF
30979 /* end confdefs.h.  */
30980 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
30981 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
30982 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
30983 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
30984 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
30985 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
30986 int
30987 main ()
30988 {
30989  _ascii (); _ebcdic ();
30990   ;
30991   return 0;
30992 }
30993 _ACEOF
30994 rm -f conftest.$ac_objext
30995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30996   (eval $ac_compile) 2>conftest.er1
30997   ac_status=$?
30998   grep -v '^ *+' conftest.er1 >conftest.err
30999   rm -f conftest.er1
31000   cat conftest.err >&5
31001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31002   (exit $ac_status); } &&
31003          { ac_try='test -z "$ac_c_werror_flag"
31004                          || test ! -s conftest.err'
31005   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31006   (eval $ac_try) 2>&5
31007   ac_status=$?
31008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31009   (exit $ac_status); }; } &&
31010          { ac_try='test -s conftest.$ac_objext'
31011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31012   (eval $ac_try) 2>&5
31013   ac_status=$?
31014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31015   (exit $ac_status); }; }; then
31016   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
31017   ac_cv_c_bigendian=yes
31018 fi
31019 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
31020   if test "$ac_cv_c_bigendian" = unknown; then
31021     ac_cv_c_bigendian=no
31022   else
31023     # finding both strings is unlikely to happen, but who knows?
31024     ac_cv_c_bigendian=unknown
31025   fi
31026 fi
31027 else
31028   echo "$as_me: failed program was:" >&5
31029 sed 's/^/| /' conftest.$ac_ext >&5
31030
31031 fi
31032 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31033 else
31034   cat >conftest.$ac_ext <<_ACEOF
31035 /* confdefs.h.  */
31036 _ACEOF
31037 cat confdefs.h >>conftest.$ac_ext
31038 cat >>conftest.$ac_ext <<_ACEOF
31039 /* end confdefs.h.  */
31040 int
31041 main ()
31042 {
31043   /* Are we little or big endian?  From Harbison&Steele.  */
31044   union
31045   {
31046     long l;
31047     char c[sizeof (long)];
31048   } u;
31049   u.l = 1;
31050   exit (u.c[sizeof (long) - 1] == 1);
31051 }
31052 _ACEOF
31053 rm -f conftest$ac_exeext
31054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31055   (eval $ac_link) 2>&5
31056   ac_status=$?
31057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31058   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31060   (eval $ac_try) 2>&5
31061   ac_status=$?
31062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31063   (exit $ac_status); }; }; then
31064   ac_cv_c_bigendian=no
31065 else
31066   echo "$as_me: program exited with status $ac_status" >&5
31067 echo "$as_me: failed program was:" >&5
31068 sed 's/^/| /' conftest.$ac_ext >&5
31069
31070 ( exit $ac_status )
31071 ac_cv_c_bigendian=yes
31072 fi
31073 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31074 fi
31075 fi
31076 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31077 fi
31078 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
31079 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
31080 case $ac_cv_c_bigendian in
31081   yes)
31082
31083 cat >>confdefs.h <<\_ACEOF
31084 #define WORDS_BIGENDIAN 1
31085 _ACEOF
31086  ;;
31087   no)
31088      ;;
31089   *)
31090     { { echo "$as_me:$LINENO: error: unknown endianness
31091 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
31092 echo "$as_me: error: unknown endianness
31093 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
31094    { (exit 1); exit 1; }; } ;;
31095 esac
31096
31097
31098 if test x"$ac_cv_header_sys_scsi_h" = x"yes"; then
31099     echo "$as_me:$LINENO: checking for HP/UX-like scsi changer support" >&5
31100 echo $ECHO_N "checking for HP/UX-like scsi changer support... $ECHO_C" >&6
31101 if test "${amanda_cv_hpux_scsi_chio+set}" = set; then
31102   echo $ECHO_N "(cached) $ECHO_C" >&6
31103 else
31104   cat >conftest.$ac_ext <<_ACEOF
31105 /* confdefs.h.  */
31106 _ACEOF
31107 cat confdefs.h >>conftest.$ac_ext
31108 cat >>conftest.$ac_ext <<_ACEOF
31109 /* end confdefs.h.  */
31110
31111 #include <sys/scsi.h>
31112
31113 int
31114 main ()
31115 {
31116
31117         static struct element_addresses changer_info;
31118         int i = SIOC_ELEMENT_ADDRESSES;
31119         int j = SIOC_ELEMENT_STATUS;
31120         int k = SIOC_MOVE_MEDIUM;
31121
31122   ;
31123   return 0;
31124 }
31125 _ACEOF
31126 rm -f conftest.$ac_objext
31127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31128   (eval $ac_compile) 2>conftest.er1
31129   ac_status=$?
31130   grep -v '^ *+' conftest.er1 >conftest.err
31131   rm -f conftest.er1
31132   cat conftest.err >&5
31133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31134   (exit $ac_status); } &&
31135          { ac_try='test -z "$ac_c_werror_flag"
31136                          || test ! -s conftest.err'
31137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31138   (eval $ac_try) 2>&5
31139   ac_status=$?
31140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31141   (exit $ac_status); }; } &&
31142          { ac_try='test -s conftest.$ac_objext'
31143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31144   (eval $ac_try) 2>&5
31145   ac_status=$?
31146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31147   (exit $ac_status); }; }; then
31148   amanda_cv_hpux_scsi_chio=yes
31149 else
31150   echo "$as_me: failed program was:" >&5
31151 sed 's/^/| /' conftest.$ac_ext >&5
31152
31153 amanda_cv_hpux_scsi_chio=no
31154 fi
31155 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31156 fi
31157 echo "$as_me:$LINENO: result: $amanda_cv_hpux_scsi_chio" >&5
31158 echo "${ECHO_T}$amanda_cv_hpux_scsi_chio" >&6
31159     if test x"$amanda_cv_hpux_scsi_chio" = x"yes"; then
31160
31161 cat >>confdefs.h <<\_ACEOF
31162 #define HAVE_HPUX_SCSI_CHIO 1
31163 _ACEOF
31164
31165         NO_SCSI_CHANGER_MODE=false
31166     fi
31167 fi
31168
31169 if test x"$ac_cv_header_sys_mtio_h" = x"yes" &&
31170    test x"$ac_cv_header_scsi_scsi_ioctl_h" = x"yes"; then
31171         echo "$as_me:$LINENO: checking for Linux like scsi support (ioctl)" >&5
31172 echo $ECHO_N "checking for Linux like scsi support (ioctl)... $ECHO_C" >&6
31173 if test "${amanda_cv_linux_scsi+set}" = set; then
31174   echo $ECHO_N "(cached) $ECHO_C" >&6
31175 else
31176   cat >conftest.$ac_ext <<_ACEOF
31177 /* confdefs.h.  */
31178 _ACEOF
31179 cat confdefs.h >>conftest.$ac_ext
31180 cat >>conftest.$ac_ext <<_ACEOF
31181 /* end confdefs.h.  */
31182
31183 #include <scsi/scsi_ioctl.h>
31184 #include <sys/mtio.h>
31185
31186 int
31187 main ()
31188 {
31189
31190         int device;
31191         char *Command;
31192         ioctl(device, SCSI_IOCTL_SEND_COMMAND, Command);
31193
31194   ;
31195   return 0;
31196 }
31197 _ACEOF
31198 rm -f conftest.$ac_objext
31199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31200   (eval $ac_compile) 2>conftest.er1
31201   ac_status=$?
31202   grep -v '^ *+' conftest.er1 >conftest.err
31203   rm -f conftest.er1
31204   cat conftest.err >&5
31205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31206   (exit $ac_status); } &&
31207          { ac_try='test -z "$ac_c_werror_flag"
31208                          || test ! -s conftest.err'
31209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31210   (eval $ac_try) 2>&5
31211   ac_status=$?
31212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31213   (exit $ac_status); }; } &&
31214          { ac_try='test -s conftest.$ac_objext'
31215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31216   (eval $ac_try) 2>&5
31217   ac_status=$?
31218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31219   (exit $ac_status); }; }; then
31220   amanda_cv_linux_scsi=yes
31221 else
31222   echo "$as_me: failed program was:" >&5
31223 sed 's/^/| /' conftest.$ac_ext >&5
31224
31225 amanda_cv_linux_scsi=no
31226 fi
31227 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31228 fi
31229 echo "$as_me:$LINENO: result: $amanda_cv_linux_scsi" >&5
31230 echo "${ECHO_T}$amanda_cv_linux_scsi" >&6
31231 fi
31232
31233 if test x"$ac_cv_header_sys_mtio_h" = x"yes" &&
31234    test x"$ac_cv_header_scsi_sg_h" = x"yes"; then
31235         echo "$as_me:$LINENO: checking for Linux like scsi support (sg)" >&5
31236 echo $ECHO_N "checking for Linux like scsi support (sg)... $ECHO_C" >&6
31237 if test "${amanda_cv_linux_sg_scsi+set}" = set; then
31238   echo $ECHO_N "(cached) $ECHO_C" >&6
31239 else
31240   cat >conftest.$ac_ext <<_ACEOF
31241 /* confdefs.h.  */
31242 _ACEOF
31243 cat confdefs.h >>conftest.$ac_ext
31244 cat >>conftest.$ac_ext <<_ACEOF
31245 /* end confdefs.h.  */
31246
31247 #include <sys/types.h>
31248 #include <scsi/sg.h>
31249 #include <sys/mtio.h>
31250
31251 int
31252 main ()
31253 {
31254
31255         int device;
31256         struct sg_header *psg_header;
31257         char *buffer;
31258         write(device, buffer, 1);
31259
31260   ;
31261   return 0;
31262 }
31263 _ACEOF
31264 rm -f conftest.$ac_objext
31265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31266   (eval $ac_compile) 2>conftest.er1
31267   ac_status=$?
31268   grep -v '^ *+' conftest.er1 >conftest.err
31269   rm -f conftest.er1
31270   cat conftest.err >&5
31271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31272   (exit $ac_status); } &&
31273          { ac_try='test -z "$ac_c_werror_flag"
31274                          || test ! -s conftest.err'
31275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31276   (eval $ac_try) 2>&5
31277   ac_status=$?
31278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31279   (exit $ac_status); }; } &&
31280          { ac_try='test -s conftest.$ac_objext'
31281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31282   (eval $ac_try) 2>&5
31283   ac_status=$?
31284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31285   (exit $ac_status); }; }; then
31286   amanda_cv_linux_sg_scsi=yes
31287 else
31288   echo "$as_me: failed program was:" >&5
31289 sed 's/^/| /' conftest.$ac_ext >&5
31290
31291 amanda_cv_linux_sg_scsi=no
31292 fi
31293 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31294 fi
31295 echo "$as_me:$LINENO: result: $amanda_cv_linux_sg_scsi" >&5
31296 echo "${ECHO_T}$amanda_cv_linux_sg_scsi" >&6
31297 fi
31298
31299 if test x"$amanda_cv_linux_scsi" = x"yes" ||
31300  test x"$amanda_cv_linux_sg_scsi" = x"yes";then
31301
31302 cat >>confdefs.h <<\_ACEOF
31303 #define HAVE_LINUX_LIKE_SCSI 1
31304 _ACEOF
31305
31306         NO_SCSI_CHANGER_MODE=false
31307 fi
31308
31309 if test x"$ac_cv_header_sys_mtio_h" = x"yes" &&
31310    test x"$ac_cv_header_sys_scsi_h" = x"yes"; then
31311         echo "$as_me:$LINENO: checking for HP-UX like scsi support" >&5
31312 echo $ECHO_N "checking for HP-UX like scsi support... $ECHO_C" >&6
31313 if test "${amanda_cv_hpux_scsi+set}" = set; then
31314   echo $ECHO_N "(cached) $ECHO_C" >&6
31315 else
31316   cat >conftest.$ac_ext <<_ACEOF
31317 /* confdefs.h.  */
31318 _ACEOF
31319 cat confdefs.h >>conftest.$ac_ext
31320 cat >>conftest.$ac_ext <<_ACEOF
31321 /* end confdefs.h.  */
31322
31323 #include <stdio.h>
31324 #include <sys/ioctl.h>
31325 #include <sys/scsi.h>
31326 #include <sys/mtio.h>
31327
31328 int
31329 main ()
31330 {
31331
31332         int device;
31333         char *Command;
31334         ioctl(device, SIOC_IO, Command);
31335
31336   ;
31337   return 0;
31338 }
31339 _ACEOF
31340 rm -f conftest.$ac_objext
31341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31342   (eval $ac_compile) 2>conftest.er1
31343   ac_status=$?
31344   grep -v '^ *+' conftest.er1 >conftest.err
31345   rm -f conftest.er1
31346   cat conftest.err >&5
31347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31348   (exit $ac_status); } &&
31349          { ac_try='test -z "$ac_c_werror_flag"
31350                          || test ! -s conftest.err'
31351   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31352   (eval $ac_try) 2>&5
31353   ac_status=$?
31354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31355   (exit $ac_status); }; } &&
31356          { ac_try='test -s conftest.$ac_objext'
31357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31358   (eval $ac_try) 2>&5
31359   ac_status=$?
31360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31361   (exit $ac_status); }; }; then
31362   amanda_cv_hpux_scsi=yes
31363 else
31364   echo "$as_me: failed program was:" >&5
31365 sed 's/^/| /' conftest.$ac_ext >&5
31366
31367 amanda_cv_hpux_scsi=no
31368 fi
31369 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31370 fi
31371 echo "$as_me:$LINENO: result: $amanda_cv_hpux_scsi" >&5
31372 echo "${ECHO_T}$amanda_cv_hpux_scsi" >&6
31373         if test x"$amanda_cv_hpux_scsi" = x"yes";then
31374
31375 cat >>confdefs.h <<\_ACEOF
31376 #define HAVE_HPUX_LIKE_SCSI 1
31377 _ACEOF
31378
31379                 NO_SCSI_CHANGER_MODE=false
31380                 NO_CHIO_CHANGER_MODE=false
31381         fi
31382 fi
31383
31384 if test x"$ac_cv_header_sys_mtio_h" = x"yes" &&
31385    test x"$ac_cv_header_sys_dsreq_h" = x"yes"; then
31386         echo "$as_me:$LINENO: checking for Irix like scsi support" >&5
31387 echo $ECHO_N "checking for Irix like scsi support... $ECHO_C" >&6
31388 if test "${amanda_cv_irix_scsi+set}" = set; then
31389   echo $ECHO_N "(cached) $ECHO_C" >&6
31390 else
31391   cat >conftest.$ac_ext <<_ACEOF
31392 /* confdefs.h.  */
31393 _ACEOF
31394 cat confdefs.h >>conftest.$ac_ext
31395 cat >>conftest.$ac_ext <<_ACEOF
31396 /* end confdefs.h.  */
31397
31398 #include <sys/types.h>
31399 #include <sys/dsreq.h>
31400 #include <sys/mtio.h>
31401
31402 int
31403 main ()
31404 {
31405
31406         int device=1;
31407         char Command;
31408         ioctl(device, DS_ENTER, &Command);
31409
31410   ;
31411   return 0;
31412 }
31413 _ACEOF
31414 rm -f conftest.$ac_objext
31415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31416   (eval $ac_compile) 2>conftest.er1
31417   ac_status=$?
31418   grep -v '^ *+' conftest.er1 >conftest.err
31419   rm -f conftest.er1
31420   cat conftest.err >&5
31421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31422   (exit $ac_status); } &&
31423          { ac_try='test -z "$ac_c_werror_flag"
31424                          || test ! -s conftest.err'
31425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31426   (eval $ac_try) 2>&5
31427   ac_status=$?
31428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31429   (exit $ac_status); }; } &&
31430          { ac_try='test -s conftest.$ac_objext'
31431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31432   (eval $ac_try) 2>&5
31433   ac_status=$?
31434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31435   (exit $ac_status); }; }; then
31436   amanda_cv_irix_scsi=yes
31437 else
31438   echo "$as_me: failed program was:" >&5
31439 sed 's/^/| /' conftest.$ac_ext >&5
31440
31441 amanda_cv_irix_scsi=no
31442 fi
31443 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31444 fi
31445 echo "$as_me:$LINENO: result: $amanda_cv_irix_scsi" >&5
31446 echo "${ECHO_T}$amanda_cv_irix_scsi" >&6
31447         if test x"$amanda_cv_irix_scsi" = x"yes";then
31448
31449 cat >>confdefs.h <<\_ACEOF
31450 #define HAVE_IRIX_LIKE_SCSI 1
31451 _ACEOF
31452
31453                 NO_SCSI_CHANGER_MODE=false
31454         fi
31455 fi
31456
31457 if test x"$ac_cv_header_sys_mtio_h" = x"yes" &&
31458    test x"$ac_cv_header_sys_scsi_impl_uscsi_h" = x"yes"; then
31459         echo "$as_me:$LINENO: checking for Solaris-like scsi support" >&5
31460 echo $ECHO_N "checking for Solaris-like scsi support... $ECHO_C" >&6
31461 if test "${amanda_cv_solaris_scsi+set}" = set; then
31462   echo $ECHO_N "(cached) $ECHO_C" >&6
31463 else
31464   cat >conftest.$ac_ext <<_ACEOF
31465 /* confdefs.h.  */
31466 _ACEOF
31467 cat confdefs.h >>conftest.$ac_ext
31468 cat >>conftest.$ac_ext <<_ACEOF
31469 /* end confdefs.h.  */
31470
31471 #include <sys/types.h>
31472 #include <sys/scsi/impl/uscsi.h>
31473 #include <sys/mtio.h>
31474
31475 int
31476 main ()
31477 {
31478
31479         int device;
31480         char *Command;
31481         ioctl(device, USCSICMD, Command);
31482
31483   ;
31484   return 0;
31485 }
31486 _ACEOF
31487 rm -f conftest.$ac_objext
31488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31489   (eval $ac_compile) 2>conftest.er1
31490   ac_status=$?
31491   grep -v '^ *+' conftest.er1 >conftest.err
31492   rm -f conftest.er1
31493   cat conftest.err >&5
31494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31495   (exit $ac_status); } &&
31496          { ac_try='test -z "$ac_c_werror_flag"
31497                          || test ! -s conftest.err'
31498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31499   (eval $ac_try) 2>&5
31500   ac_status=$?
31501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31502   (exit $ac_status); }; } &&
31503          { ac_try='test -s conftest.$ac_objext'
31504   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31505   (eval $ac_try) 2>&5
31506   ac_status=$?
31507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31508   (exit $ac_status); }; }; then
31509   amanda_cv_solaris_scsi=yes
31510 else
31511   echo "$as_me: failed program was:" >&5
31512 sed 's/^/| /' conftest.$ac_ext >&5
31513
31514 amanda_cv_solaris_scsi=no
31515 fi
31516 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31517 fi
31518 echo "$as_me:$LINENO: result: $amanda_cv_solaris_scsi" >&5
31519 echo "${ECHO_T}$amanda_cv_solaris_scsi" >&6
31520         if test x"$amanda_cv_solaris_scsi" = x"yes";then
31521
31522 cat >>confdefs.h <<\_ACEOF
31523 #define HAVE_SOLARIS_LIKE_SCSI 1
31524 _ACEOF
31525
31526                 NO_SCSI_CHANGER_MODE=false
31527         fi
31528 fi
31529
31530 if test x"$ac_cv_header_sys_tape_h" = x"yes" &&
31531    test x"$ac_cv_header_sys_scarray_h" = x"yes" &&
31532    test x"$ac_cv_header_sys_gscdds_h" = x"yes"; then
31533         echo "$as_me:$LINENO: checking for AIX like scsi support" >&5
31534 echo $ECHO_N "checking for AIX like scsi support... $ECHO_C" >&6
31535 if test "${amanda_cv_aix_scsi+set}" = set; then
31536   echo $ECHO_N "(cached) $ECHO_C" >&6
31537 else
31538   cat >conftest.$ac_ext <<_ACEOF
31539 /* confdefs.h.  */
31540 _ACEOF
31541 cat confdefs.h >>conftest.$ac_ext
31542 cat >>conftest.$ac_ext <<_ACEOF
31543 /* end confdefs.h.  */
31544
31545 #include <sys/types.h>
31546 #include <sys/scarray.h>
31547 #include <sys/tape.h>
31548
31549 int
31550 main ()
31551 {
31552
31553         int device;
31554         char *Command;
31555         ioctl(device, STIOCMD, Command);
31556
31557   ;
31558   return 0;
31559 }
31560 _ACEOF
31561 rm -f conftest.$ac_objext
31562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31563   (eval $ac_compile) 2>conftest.er1
31564   ac_status=$?
31565   grep -v '^ *+' conftest.er1 >conftest.err
31566   rm -f conftest.er1
31567   cat conftest.err >&5
31568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31569   (exit $ac_status); } &&
31570          { ac_try='test -z "$ac_c_werror_flag"
31571                          || test ! -s conftest.err'
31572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31573   (eval $ac_try) 2>&5
31574   ac_status=$?
31575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31576   (exit $ac_status); }; } &&
31577          { ac_try='test -s conftest.$ac_objext'
31578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31579   (eval $ac_try) 2>&5
31580   ac_status=$?
31581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31582   (exit $ac_status); }; }; then
31583   amanda_cv_aix_scsi=yes
31584 else
31585   echo "$as_me: failed program was:" >&5
31586 sed 's/^/| /' conftest.$ac_ext >&5
31587
31588 amanda_cv_aix_scsi=no
31589 fi
31590 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31591 fi
31592 echo "$as_me:$LINENO: result: $amanda_cv_aix_scsi" >&5
31593 echo "${ECHO_T}$amanda_cv_aix_scsi" >&6
31594         if test x"$amanda_cv_aix_scsi" = x"yes";then
31595
31596 cat >>confdefs.h <<\_ACEOF
31597 #define HAVE_AIX_LIKE_SCSI 1
31598 _ACEOF
31599
31600                 NO_SCSI_CHANGER_MODE=false
31601         fi
31602 fi
31603 if test x"$ac_cv_header_cam_cam_h" = x"yes";then
31604         echo "$as_me:$LINENO: checking for CAM like scsi support" >&5
31605 echo $ECHO_N "checking for CAM like scsi support... $ECHO_C" >&6
31606 if test "${amanda_cv_cam_scsi+set}" = set; then
31607   echo $ECHO_N "(cached) $ECHO_C" >&6
31608 else
31609   cat >conftest.$ac_ext <<_ACEOF
31610 /* confdefs.h.  */
31611 _ACEOF
31612 cat confdefs.h >>conftest.$ac_ext
31613 cat >>conftest.$ac_ext <<_ACEOF
31614 /* end confdefs.h.  */
31615
31616 #include <stdio.h>
31617 # include <fcntl.h>
31618 # include <cam/cam.h>
31619 # include <cam/cam_ccb.h>
31620 # include <cam/scsi/scsi_message.h>
31621 # include <cam/scsi/scsi_pass.h>
31622 # include <camlib.h>
31623
31624 int
31625 main ()
31626 {
31627
31628         struct cam_device *curdev;
31629
31630         curdev = cam_open_pass("", O_RDWR, NULL);
31631
31632   ;
31633   return 0;
31634 }
31635 _ACEOF
31636 rm -f conftest.$ac_objext
31637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31638   (eval $ac_compile) 2>conftest.er1
31639   ac_status=$?
31640   grep -v '^ *+' conftest.er1 >conftest.err
31641   rm -f conftest.er1
31642   cat conftest.err >&5
31643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31644   (exit $ac_status); } &&
31645          { ac_try='test -z "$ac_c_werror_flag"
31646                          || test ! -s conftest.err'
31647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31648   (eval $ac_try) 2>&5
31649   ac_status=$?
31650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31651   (exit $ac_status); }; } &&
31652          { ac_try='test -s conftest.$ac_objext'
31653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31654   (eval $ac_try) 2>&5
31655   ac_status=$?
31656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31657   (exit $ac_status); }; }; then
31658   amanda_cv_cam_scsi=yes
31659 else
31660   echo "$as_me: failed program was:" >&5
31661 sed 's/^/| /' conftest.$ac_ext >&5
31662
31663 amanda_cv_cam_scsi=no
31664 fi
31665 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31666 fi
31667 echo "$as_me:$LINENO: result: $amanda_cv_cam_scsi" >&5
31668 echo "${ECHO_T}$amanda_cv_cam_scsi" >&6
31669         if test x"$amanda_cv_cam_scsi" = x"yes";then
31670
31671 cat >>confdefs.h <<\_ACEOF
31672 #define HAVE_CAM_LIKE_SCSI 1
31673 _ACEOF
31674
31675                 NO_SCSI_CHANGER_MODE=false
31676
31677 echo "$as_me:$LINENO: checking for main in -lcam" >&5
31678 echo $ECHO_N "checking for main in -lcam... $ECHO_C" >&6
31679 if test "${ac_cv_lib_cam_main+set}" = set; then
31680   echo $ECHO_N "(cached) $ECHO_C" >&6
31681 else
31682   ac_check_lib_save_LIBS=$LIBS
31683 LIBS="-lcam  $LIBS"
31684 cat >conftest.$ac_ext <<_ACEOF
31685 /* confdefs.h.  */
31686 _ACEOF
31687 cat confdefs.h >>conftest.$ac_ext
31688 cat >>conftest.$ac_ext <<_ACEOF
31689 /* end confdefs.h.  */
31690
31691
31692 int
31693 main ()
31694 {
31695 main ();
31696   ;
31697   return 0;
31698 }
31699 _ACEOF
31700 rm -f conftest.$ac_objext conftest$ac_exeext
31701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31702   (eval $ac_link) 2>conftest.er1
31703   ac_status=$?
31704   grep -v '^ *+' conftest.er1 >conftest.err
31705   rm -f conftest.er1
31706   cat conftest.err >&5
31707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31708   (exit $ac_status); } &&
31709          { ac_try='test -z "$ac_c_werror_flag"
31710                          || test ! -s conftest.err'
31711   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31712   (eval $ac_try) 2>&5
31713   ac_status=$?
31714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31715   (exit $ac_status); }; } &&
31716          { ac_try='test -s conftest$ac_exeext'
31717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31718   (eval $ac_try) 2>&5
31719   ac_status=$?
31720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31721   (exit $ac_status); }; }; then
31722   ac_cv_lib_cam_main=yes
31723 else
31724   echo "$as_me: failed program was:" >&5
31725 sed 's/^/| /' conftest.$ac_ext >&5
31726
31727 ac_cv_lib_cam_main=no
31728 fi
31729 rm -f conftest.err conftest.$ac_objext \
31730       conftest$ac_exeext conftest.$ac_ext
31731 LIBS=$ac_check_lib_save_LIBS
31732 fi
31733 echo "$as_me:$LINENO: result: $ac_cv_lib_cam_main" >&5
31734 echo "${ECHO_T}$ac_cv_lib_cam_main" >&6
31735 if test $ac_cv_lib_cam_main = yes; then
31736   cat >>confdefs.h <<_ACEOF
31737 #define HAVE_LIBCAM 1
31738 _ACEOF
31739
31740   LIBS="-lcam $LIBS"
31741
31742 fi
31743
31744         fi
31745 fi
31746
31747
31748 if test x"$ac_cv_header_sys_mtio_h" = x"yes" &&
31749    test x"$ac_cv_header_sys_scsiio_h" = x"yes"; then
31750     echo "$as_me:$LINENO: checking for BSD like scsi support" >&5
31751 echo $ECHO_N "checking for BSD like scsi support... $ECHO_C" >&6
31752 if test "${amanda_cv_bsd_scsi+set}" = set; then
31753   echo $ECHO_N "(cached) $ECHO_C" >&6
31754 else
31755   cat >conftest.$ac_ext <<_ACEOF
31756 /* confdefs.h.  */
31757 _ACEOF
31758 cat confdefs.h >>conftest.$ac_ext
31759 cat >>conftest.$ac_ext <<_ACEOF
31760 /* end confdefs.h.  */
31761
31762 #include <sys/types.h>
31763 #include <sys/scsiio.h>
31764 #include <sys/mtio.h>
31765
31766 int
31767 main ()
31768 {
31769
31770     int device=1;
31771     char Command;
31772     ioctl(device, SCIOCCOMMAND, &Command);
31773
31774   ;
31775   return 0;
31776 }
31777 _ACEOF
31778 rm -f conftest.$ac_objext
31779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31780   (eval $ac_compile) 2>conftest.er1
31781   ac_status=$?
31782   grep -v '^ *+' conftest.er1 >conftest.err
31783   rm -f conftest.er1
31784   cat conftest.err >&5
31785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31786   (exit $ac_status); } &&
31787          { ac_try='test -z "$ac_c_werror_flag"
31788                          || test ! -s conftest.err'
31789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31790   (eval $ac_try) 2>&5
31791   ac_status=$?
31792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31793   (exit $ac_status); }; } &&
31794          { ac_try='test -s conftest.$ac_objext'
31795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31796   (eval $ac_try) 2>&5
31797   ac_status=$?
31798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31799   (exit $ac_status); }; }; then
31800   amanda_cv_bsd_scsi=yes
31801 else
31802   echo "$as_me: failed program was:" >&5
31803 sed 's/^/| /' conftest.$ac_ext >&5
31804
31805 amanda_cv_bsd_scsi=no
31806 fi
31807 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31808 fi
31809 echo "$as_me:$LINENO: result: $amanda_cv_bsd_scsi" >&5
31810 echo "${ECHO_T}$amanda_cv_bsd_scsi" >&6
31811     if test x"$amanda_cv_bsd_scsi" = x"yes";then
31812
31813 cat >>confdefs.h <<\_ACEOF
31814 #define HAVE_BSD_LIKE_SCSI 1
31815 _ACEOF
31816
31817        NO_SCSI_CHANGER_MODE=false
31818     fi
31819 fi
31820
31821 if test x"$ac_cv_header_chio_h" = x"yes" ||
31822    test x"$ac_cv_header_sys_chio_h" = x"yes"; then
31823          if test x"$ac_cv_header_camlib_h" != x"yes"; then
31824      if $NO_SCSI_CHANGER_MODE; then
31825        NO_SCSI_CHANGER_MODE=false
31826      else
31827        NO_CHIO_CHANGER_MODE=false
31828      fi
31829    fi
31830 fi
31831
31832
31833 echo "$as_me:$LINENO: checking for main in -lcur_colr" >&5
31834 echo $ECHO_N "checking for main in -lcur_colr... $ECHO_C" >&6
31835 if test "${ac_cv_lib_cur_colr_main+set}" = set; then
31836   echo $ECHO_N "(cached) $ECHO_C" >&6
31837 else
31838   ac_check_lib_save_LIBS=$LIBS
31839 LIBS="-lcur_colr  $LIBS"
31840 cat >conftest.$ac_ext <<_ACEOF
31841 /* confdefs.h.  */
31842 _ACEOF
31843 cat confdefs.h >>conftest.$ac_ext
31844 cat >>conftest.$ac_ext <<_ACEOF
31845 /* end confdefs.h.  */
31846
31847
31848 int
31849 main ()
31850 {
31851 main ();
31852   ;
31853   return 0;
31854 }
31855 _ACEOF
31856 rm -f conftest.$ac_objext conftest$ac_exeext
31857 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31858   (eval $ac_link) 2>conftest.er1
31859   ac_status=$?
31860   grep -v '^ *+' conftest.er1 >conftest.err
31861   rm -f conftest.er1
31862   cat conftest.err >&5
31863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31864   (exit $ac_status); } &&
31865          { ac_try='test -z "$ac_c_werror_flag"
31866                          || test ! -s conftest.err'
31867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31868   (eval $ac_try) 2>&5
31869   ac_status=$?
31870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31871   (exit $ac_status); }; } &&
31872          { ac_try='test -s conftest$ac_exeext'
31873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31874   (eval $ac_try) 2>&5
31875   ac_status=$?
31876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31877   (exit $ac_status); }; }; then
31878   ac_cv_lib_cur_colr_main=yes
31879 else
31880   echo "$as_me: failed program was:" >&5
31881 sed 's/^/| /' conftest.$ac_ext >&5
31882
31883 ac_cv_lib_cur_colr_main=no
31884 fi
31885 rm -f conftest.err conftest.$ac_objext \
31886       conftest$ac_exeext conftest.$ac_ext
31887 LIBS=$ac_check_lib_save_LIBS
31888 fi
31889 echo "$as_me:$LINENO: result: $ac_cv_lib_cur_colr_main" >&5
31890 echo "${ECHO_T}$ac_cv_lib_cur_colr_main" >&6
31891 if test $ac_cv_lib_cur_colr_main = yes; then
31892   cat >>confdefs.h <<_ACEOF
31893 #define HAVE_LIBCUR_COLR 1
31894 _ACEOF
31895
31896   LIBS="-lcur_colr $LIBS"
31897
31898 fi
31899
31900
31901
31902 echo "$as_me:$LINENO: checking for main in -lintl" >&5
31903 echo $ECHO_N "checking for main in -lintl... $ECHO_C" >&6
31904 if test "${ac_cv_lib_intl_main+set}" = set; then
31905   echo $ECHO_N "(cached) $ECHO_C" >&6
31906 else
31907   ac_check_lib_save_LIBS=$LIBS
31908 LIBS="-lintl  $LIBS"
31909 cat >conftest.$ac_ext <<_ACEOF
31910 /* confdefs.h.  */
31911 _ACEOF
31912 cat confdefs.h >>conftest.$ac_ext
31913 cat >>conftest.$ac_ext <<_ACEOF
31914 /* end confdefs.h.  */
31915
31916
31917 int
31918 main ()
31919 {
31920 main ();
31921   ;
31922   return 0;
31923 }
31924 _ACEOF
31925 rm -f conftest.$ac_objext conftest$ac_exeext
31926 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31927   (eval $ac_link) 2>conftest.er1
31928   ac_status=$?
31929   grep -v '^ *+' conftest.er1 >conftest.err
31930   rm -f conftest.er1
31931   cat conftest.err >&5
31932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31933   (exit $ac_status); } &&
31934          { ac_try='test -z "$ac_c_werror_flag"
31935                          || test ! -s conftest.err'
31936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31937   (eval $ac_try) 2>&5
31938   ac_status=$?
31939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31940   (exit $ac_status); }; } &&
31941          { ac_try='test -s conftest$ac_exeext'
31942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31943   (eval $ac_try) 2>&5
31944   ac_status=$?
31945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31946   (exit $ac_status); }; }; then
31947   ac_cv_lib_intl_main=yes
31948 else
31949   echo "$as_me: failed program was:" >&5
31950 sed 's/^/| /' conftest.$ac_ext >&5
31951
31952 ac_cv_lib_intl_main=no
31953 fi
31954 rm -f conftest.err conftest.$ac_objext \
31955       conftest$ac_exeext conftest.$ac_ext
31956 LIBS=$ac_check_lib_save_LIBS
31957 fi
31958 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_main" >&5
31959 echo "${ECHO_T}$ac_cv_lib_intl_main" >&6
31960 if test $ac_cv_lib_intl_main = yes; then
31961   cat >>confdefs.h <<_ACEOF
31962 #define HAVE_LIBINTL 1
31963 _ACEOF
31964
31965   LIBS="-lintl $LIBS"
31966
31967 fi
31968
31969
31970 case "$target" in
31971     *sgi-irix*)
31972
31973 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
31974 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
31975 if test "${ac_cv_lib_socket_main+set}" = set; then
31976   echo $ECHO_N "(cached) $ECHO_C" >&6
31977 else
31978   ac_check_lib_save_LIBS=$LIBS
31979 LIBS="-lsocket  $LIBS"
31980 cat >conftest.$ac_ext <<_ACEOF
31981 /* confdefs.h.  */
31982 _ACEOF
31983 cat confdefs.h >>conftest.$ac_ext
31984 cat >>conftest.$ac_ext <<_ACEOF
31985 /* end confdefs.h.  */
31986
31987
31988 int
31989 main ()
31990 {
31991 main ();
31992   ;
31993   return 0;
31994 }
31995 _ACEOF
31996 rm -f conftest.$ac_objext conftest$ac_exeext
31997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31998   (eval $ac_link) 2>conftest.er1
31999   ac_status=$?
32000   grep -v '^ *+' conftest.er1 >conftest.err
32001   rm -f conftest.er1
32002   cat conftest.err >&5
32003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32004   (exit $ac_status); } &&
32005          { ac_try='test -z "$ac_c_werror_flag"
32006                          || test ! -s conftest.err'
32007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32008   (eval $ac_try) 2>&5
32009   ac_status=$?
32010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32011   (exit $ac_status); }; } &&
32012          { ac_try='test -s conftest$ac_exeext'
32013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32014   (eval $ac_try) 2>&5
32015   ac_status=$?
32016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32017   (exit $ac_status); }; }; then
32018   ac_cv_lib_socket_main=yes
32019 else
32020   echo "$as_me: failed program was:" >&5
32021 sed 's/^/| /' conftest.$ac_ext >&5
32022
32023 ac_cv_lib_socket_main=no
32024 fi
32025 rm -f conftest.err conftest.$ac_objext \
32026       conftest$ac_exeext conftest.$ac_ext
32027 LIBS=$ac_check_lib_save_LIBS
32028 fi
32029 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
32030 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
32031 if test $ac_cv_lib_socket_main = yes; then
32032   cat >>confdefs.h <<_ACEOF
32033 #define HAVE_LIBSOCKET 1
32034 _ACEOF
32035
32036   LIBS="-lsocket $LIBS"
32037
32038 fi
32039
32040                         ;;
32041     *)
32042
32043 echo "$as_me:$LINENO: checking for main in -lresolv" >&5
32044 echo $ECHO_N "checking for main in -lresolv... $ECHO_C" >&6
32045 if test "${ac_cv_lib_resolv_main+set}" = set; then
32046   echo $ECHO_N "(cached) $ECHO_C" >&6
32047 else
32048   ac_check_lib_save_LIBS=$LIBS
32049 LIBS="-lresolv  $LIBS"
32050 cat >conftest.$ac_ext <<_ACEOF
32051 /* confdefs.h.  */
32052 _ACEOF
32053 cat confdefs.h >>conftest.$ac_ext
32054 cat >>conftest.$ac_ext <<_ACEOF
32055 /* end confdefs.h.  */
32056
32057
32058 int
32059 main ()
32060 {
32061 main ();
32062   ;
32063   return 0;
32064 }
32065 _ACEOF
32066 rm -f conftest.$ac_objext conftest$ac_exeext
32067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32068   (eval $ac_link) 2>conftest.er1
32069   ac_status=$?
32070   grep -v '^ *+' conftest.er1 >conftest.err
32071   rm -f conftest.er1
32072   cat conftest.err >&5
32073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32074   (exit $ac_status); } &&
32075          { ac_try='test -z "$ac_c_werror_flag"
32076                          || test ! -s conftest.err'
32077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32078   (eval $ac_try) 2>&5
32079   ac_status=$?
32080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32081   (exit $ac_status); }; } &&
32082          { ac_try='test -s conftest$ac_exeext'
32083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32084   (eval $ac_try) 2>&5
32085   ac_status=$?
32086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32087   (exit $ac_status); }; }; then
32088   ac_cv_lib_resolv_main=yes
32089 else
32090   echo "$as_me: failed program was:" >&5
32091 sed 's/^/| /' conftest.$ac_ext >&5
32092
32093 ac_cv_lib_resolv_main=no
32094 fi
32095 rm -f conftest.err conftest.$ac_objext \
32096       conftest$ac_exeext conftest.$ac_ext
32097 LIBS=$ac_check_lib_save_LIBS
32098 fi
32099 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_main" >&5
32100 echo "${ECHO_T}$ac_cv_lib_resolv_main" >&6
32101 if test $ac_cv_lib_resolv_main = yes; then
32102   cat >>confdefs.h <<_ACEOF
32103 #define HAVE_LIBRESOLV 1
32104 _ACEOF
32105
32106   LIBS="-lresolv $LIBS"
32107
32108 fi
32109
32110
32111 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
32112 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
32113 if test "${ac_cv_lib_nsl_main+set}" = set; then
32114   echo $ECHO_N "(cached) $ECHO_C" >&6
32115 else
32116   ac_check_lib_save_LIBS=$LIBS
32117 LIBS="-lnsl  $LIBS"
32118 cat >conftest.$ac_ext <<_ACEOF
32119 /* confdefs.h.  */
32120 _ACEOF
32121 cat confdefs.h >>conftest.$ac_ext
32122 cat >>conftest.$ac_ext <<_ACEOF
32123 /* end confdefs.h.  */
32124
32125
32126 int
32127 main ()
32128 {
32129 main ();
32130   ;
32131   return 0;
32132 }
32133 _ACEOF
32134 rm -f conftest.$ac_objext conftest$ac_exeext
32135 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32136   (eval $ac_link) 2>conftest.er1
32137   ac_status=$?
32138   grep -v '^ *+' conftest.er1 >conftest.err
32139   rm -f conftest.er1
32140   cat conftest.err >&5
32141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32142   (exit $ac_status); } &&
32143          { ac_try='test -z "$ac_c_werror_flag"
32144                          || test ! -s conftest.err'
32145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32146   (eval $ac_try) 2>&5
32147   ac_status=$?
32148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32149   (exit $ac_status); }; } &&
32150          { ac_try='test -s conftest$ac_exeext'
32151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32152   (eval $ac_try) 2>&5
32153   ac_status=$?
32154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32155   (exit $ac_status); }; }; then
32156   ac_cv_lib_nsl_main=yes
32157 else
32158   echo "$as_me: failed program was:" >&5
32159 sed 's/^/| /' conftest.$ac_ext >&5
32160
32161 ac_cv_lib_nsl_main=no
32162 fi
32163 rm -f conftest.err conftest.$ac_objext \
32164       conftest$ac_exeext conftest.$ac_ext
32165 LIBS=$ac_check_lib_save_LIBS
32166 fi
32167 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
32168 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
32169 if test $ac_cv_lib_nsl_main = yes; then
32170   cat >>confdefs.h <<_ACEOF
32171 #define HAVE_LIBNSL 1
32172 _ACEOF
32173
32174   LIBS="-lnsl $LIBS"
32175
32176 fi
32177
32178
32179 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
32180 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
32181 if test "${ac_cv_lib_socket_main+set}" = set; then
32182   echo $ECHO_N "(cached) $ECHO_C" >&6
32183 else
32184   ac_check_lib_save_LIBS=$LIBS
32185 LIBS="-lsocket  $LIBS"
32186 cat >conftest.$ac_ext <<_ACEOF
32187 /* confdefs.h.  */
32188 _ACEOF
32189 cat confdefs.h >>conftest.$ac_ext
32190 cat >>conftest.$ac_ext <<_ACEOF
32191 /* end confdefs.h.  */
32192
32193
32194 int
32195 main ()
32196 {
32197 main ();
32198   ;
32199   return 0;
32200 }
32201 _ACEOF
32202 rm -f conftest.$ac_objext conftest$ac_exeext
32203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32204   (eval $ac_link) 2>conftest.er1
32205   ac_status=$?
32206   grep -v '^ *+' conftest.er1 >conftest.err
32207   rm -f conftest.er1
32208   cat conftest.err >&5
32209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32210   (exit $ac_status); } &&
32211          { ac_try='test -z "$ac_c_werror_flag"
32212                          || test ! -s conftest.err'
32213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32214   (eval $ac_try) 2>&5
32215   ac_status=$?
32216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32217   (exit $ac_status); }; } &&
32218          { ac_try='test -s conftest$ac_exeext'
32219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32220   (eval $ac_try) 2>&5
32221   ac_status=$?
32222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32223   (exit $ac_status); }; }; then
32224   ac_cv_lib_socket_main=yes
32225 else
32226   echo "$as_me: failed program was:" >&5
32227 sed 's/^/| /' conftest.$ac_ext >&5
32228
32229 ac_cv_lib_socket_main=no
32230 fi
32231 rm -f conftest.err conftest.$ac_objext \
32232       conftest$ac_exeext conftest.$ac_ext
32233 LIBS=$ac_check_lib_save_LIBS
32234 fi
32235 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
32236 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
32237 if test $ac_cv_lib_socket_main = yes; then
32238   cat >>confdefs.h <<_ACEOF
32239 #define HAVE_LIBSOCKET 1
32240 _ACEOF
32241
32242   LIBS="-lsocket $LIBS"
32243
32244 fi
32245
32246
32247 echo "$as_me:$LINENO: checking for main in -lsun" >&5
32248 echo $ECHO_N "checking for main in -lsun... $ECHO_C" >&6
32249 if test "${ac_cv_lib_sun_main+set}" = set; then
32250   echo $ECHO_N "(cached) $ECHO_C" >&6
32251 else
32252   ac_check_lib_save_LIBS=$LIBS
32253 LIBS="-lsun  $LIBS"
32254 cat >conftest.$ac_ext <<_ACEOF
32255 /* confdefs.h.  */
32256 _ACEOF
32257 cat confdefs.h >>conftest.$ac_ext
32258 cat >>conftest.$ac_ext <<_ACEOF
32259 /* end confdefs.h.  */
32260
32261
32262 int
32263 main ()
32264 {
32265 main ();
32266   ;
32267   return 0;
32268 }
32269 _ACEOF
32270 rm -f conftest.$ac_objext conftest$ac_exeext
32271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32272   (eval $ac_link) 2>conftest.er1
32273   ac_status=$?
32274   grep -v '^ *+' conftest.er1 >conftest.err
32275   rm -f conftest.er1
32276   cat conftest.err >&5
32277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32278   (exit $ac_status); } &&
32279          { ac_try='test -z "$ac_c_werror_flag"
32280                          || test ! -s conftest.err'
32281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32282   (eval $ac_try) 2>&5
32283   ac_status=$?
32284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32285   (exit $ac_status); }; } &&
32286          { ac_try='test -s conftest$ac_exeext'
32287   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32288   (eval $ac_try) 2>&5
32289   ac_status=$?
32290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32291   (exit $ac_status); }; }; then
32292   ac_cv_lib_sun_main=yes
32293 else
32294   echo "$as_me: failed program was:" >&5
32295 sed 's/^/| /' conftest.$ac_ext >&5
32296
32297 ac_cv_lib_sun_main=no
32298 fi
32299 rm -f conftest.err conftest.$ac_objext \
32300       conftest$ac_exeext conftest.$ac_ext
32301 LIBS=$ac_check_lib_save_LIBS
32302 fi
32303 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_main" >&5
32304 echo "${ECHO_T}$ac_cv_lib_sun_main" >&6
32305 if test $ac_cv_lib_sun_main = yes; then
32306   cat >>confdefs.h <<_ACEOF
32307 #define HAVE_LIBSUN 1
32308 _ACEOF
32309
32310   LIBS="-lsun $LIBS"
32311
32312 fi
32313
32314                         ;;
32315 esac
32316
32317
32318 echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
32319 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
32320 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
32321   echo $ECHO_N "(cached) $ECHO_C" >&6
32322 else
32323   ac_check_lib_save_LIBS=$LIBS
32324 LIBS="-ltermcap  $LIBS"
32325 cat >conftest.$ac_ext <<_ACEOF
32326 /* confdefs.h.  */
32327 _ACEOF
32328 cat confdefs.h >>conftest.$ac_ext
32329 cat >>conftest.$ac_ext <<_ACEOF
32330 /* end confdefs.h.  */
32331
32332 /* Override any gcc2 internal prototype to avoid an error.  */
32333 #ifdef __cplusplus
32334 extern "C"
32335 #endif
32336 /* We use char because int might match the return type of a gcc2
32337    builtin and then its argument prototype would still apply.  */
32338 char tgetent ();
32339 int
32340 main ()
32341 {
32342 tgetent ();
32343   ;
32344   return 0;
32345 }
32346 _ACEOF
32347 rm -f conftest.$ac_objext conftest$ac_exeext
32348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32349   (eval $ac_link) 2>conftest.er1
32350   ac_status=$?
32351   grep -v '^ *+' conftest.er1 >conftest.err
32352   rm -f conftest.er1
32353   cat conftest.err >&5
32354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32355   (exit $ac_status); } &&
32356          { ac_try='test -z "$ac_c_werror_flag"
32357                          || test ! -s conftest.err'
32358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32359   (eval $ac_try) 2>&5
32360   ac_status=$?
32361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32362   (exit $ac_status); }; } &&
32363          { ac_try='test -s conftest$ac_exeext'
32364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32365   (eval $ac_try) 2>&5
32366   ac_status=$?
32367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32368   (exit $ac_status); }; }; then
32369   ac_cv_lib_termcap_tgetent=yes
32370 else
32371   echo "$as_me: failed program was:" >&5
32372 sed 's/^/| /' conftest.$ac_ext >&5
32373
32374 ac_cv_lib_termcap_tgetent=no
32375 fi
32376 rm -f conftest.err conftest.$ac_objext \
32377       conftest$ac_exeext conftest.$ac_ext
32378 LIBS=$ac_check_lib_save_LIBS
32379 fi
32380 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
32381 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
32382 if test $ac_cv_lib_termcap_tgetent = yes; then
32383   cat >>confdefs.h <<_ACEOF
32384 #define HAVE_LIBTERMCAP 1
32385 _ACEOF
32386
32387   LIBS="-ltermcap $LIBS"
32388
32389 fi
32390
32391 if test "x$ac_cv_lib_termcap_tgetent" != xyes; then
32392
32393 echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
32394 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6
32395 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
32396   echo $ECHO_N "(cached) $ECHO_C" >&6
32397 else
32398   ac_check_lib_save_LIBS=$LIBS
32399 LIBS="-lcurses  $LIBS"
32400 cat >conftest.$ac_ext <<_ACEOF
32401 /* confdefs.h.  */
32402 _ACEOF
32403 cat confdefs.h >>conftest.$ac_ext
32404 cat >>conftest.$ac_ext <<_ACEOF
32405 /* end confdefs.h.  */
32406
32407 /* Override any gcc2 internal prototype to avoid an error.  */
32408 #ifdef __cplusplus
32409 extern "C"
32410 #endif
32411 /* We use char because int might match the return type of a gcc2
32412    builtin and then its argument prototype would still apply.  */
32413 char tgetent ();
32414 int
32415 main ()
32416 {
32417 tgetent ();
32418   ;
32419   return 0;
32420 }
32421 _ACEOF
32422 rm -f conftest.$ac_objext conftest$ac_exeext
32423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32424   (eval $ac_link) 2>conftest.er1
32425   ac_status=$?
32426   grep -v '^ *+' conftest.er1 >conftest.err
32427   rm -f conftest.er1
32428   cat conftest.err >&5
32429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32430   (exit $ac_status); } &&
32431          { ac_try='test -z "$ac_c_werror_flag"
32432                          || test ! -s conftest.err'
32433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32434   (eval $ac_try) 2>&5
32435   ac_status=$?
32436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32437   (exit $ac_status); }; } &&
32438          { ac_try='test -s conftest$ac_exeext'
32439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32440   (eval $ac_try) 2>&5
32441   ac_status=$?
32442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32443   (exit $ac_status); }; }; then
32444   ac_cv_lib_curses_tgetent=yes
32445 else
32446   echo "$as_me: failed program was:" >&5
32447 sed 's/^/| /' conftest.$ac_ext >&5
32448
32449 ac_cv_lib_curses_tgetent=no
32450 fi
32451 rm -f conftest.err conftest.$ac_objext \
32452       conftest$ac_exeext conftest.$ac_ext
32453 LIBS=$ac_check_lib_save_LIBS
32454 fi
32455 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
32456 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6
32457 if test $ac_cv_lib_curses_tgetent = yes; then
32458   cat >>confdefs.h <<_ACEOF
32459 #define HAVE_LIBCURSES 1
32460 _ACEOF
32461
32462   LIBS="-lcurses $LIBS"
32463
32464 fi
32465
32466     if test "x$ac_cv_lib_curses_tgetent" != xyes; then
32467
32468 echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
32469 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
32470 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
32471   echo $ECHO_N "(cached) $ECHO_C" >&6
32472 else
32473   ac_check_lib_save_LIBS=$LIBS
32474 LIBS="-lncurses  $LIBS"
32475 cat >conftest.$ac_ext <<_ACEOF
32476 /* confdefs.h.  */
32477 _ACEOF
32478 cat confdefs.h >>conftest.$ac_ext
32479 cat >>conftest.$ac_ext <<_ACEOF
32480 /* end confdefs.h.  */
32481
32482 /* Override any gcc2 internal prototype to avoid an error.  */
32483 #ifdef __cplusplus
32484 extern "C"
32485 #endif
32486 /* We use char because int might match the return type of a gcc2
32487    builtin and then its argument prototype would still apply.  */
32488 char tgetent ();
32489 int
32490 main ()
32491 {
32492 tgetent ();
32493   ;
32494   return 0;
32495 }
32496 _ACEOF
32497 rm -f conftest.$ac_objext conftest$ac_exeext
32498 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32499   (eval $ac_link) 2>conftest.er1
32500   ac_status=$?
32501   grep -v '^ *+' conftest.er1 >conftest.err
32502   rm -f conftest.er1
32503   cat conftest.err >&5
32504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32505   (exit $ac_status); } &&
32506          { ac_try='test -z "$ac_c_werror_flag"
32507                          || test ! -s conftest.err'
32508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32509   (eval $ac_try) 2>&5
32510   ac_status=$?
32511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32512   (exit $ac_status); }; } &&
32513          { ac_try='test -s conftest$ac_exeext'
32514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32515   (eval $ac_try) 2>&5
32516   ac_status=$?
32517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32518   (exit $ac_status); }; }; then
32519   ac_cv_lib_ncurses_tgetent=yes
32520 else
32521   echo "$as_me: failed program was:" >&5
32522 sed 's/^/| /' conftest.$ac_ext >&5
32523
32524 ac_cv_lib_ncurses_tgetent=no
32525 fi
32526 rm -f conftest.err conftest.$ac_objext \
32527       conftest$ac_exeext conftest.$ac_ext
32528 LIBS=$ac_check_lib_save_LIBS
32529 fi
32530 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
32531 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
32532 if test $ac_cv_lib_ncurses_tgetent = yes; then
32533   cat >>confdefs.h <<_ACEOF
32534 #define HAVE_LIBNCURSES 1
32535 _ACEOF
32536
32537   LIBS="-lncurses $LIBS"
32538
32539 fi
32540
32541     fi
32542 fi
32543 if test "x$ac_cv_lib_termcap_tgetent" = xyes ||
32544    test "x$ac_cv_lib_curses_tgetent" = xyes ||
32545    test "x$ac_cv_lib_ncurses_tgetent" = xyes; then
32546     echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
32547 echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6
32548 if test "${ac_cv_lib_readline_readline+set}" = set; then
32549   echo $ECHO_N "(cached) $ECHO_C" >&6
32550 else
32551   ac_check_lib_save_LIBS=$LIBS
32552 LIBS="-lreadline  $LIBS"
32553 cat >conftest.$ac_ext <<_ACEOF
32554 /* confdefs.h.  */
32555 _ACEOF
32556 cat confdefs.h >>conftest.$ac_ext
32557 cat >>conftest.$ac_ext <<_ACEOF
32558 /* end confdefs.h.  */
32559
32560 /* Override any gcc2 internal prototype to avoid an error.  */
32561 #ifdef __cplusplus
32562 extern "C"
32563 #endif
32564 /* We use char because int might match the return type of a gcc2
32565    builtin and then its argument prototype would still apply.  */
32566 char readline ();
32567 int
32568 main ()
32569 {
32570 readline ();
32571   ;
32572   return 0;
32573 }
32574 _ACEOF
32575 rm -f conftest.$ac_objext conftest$ac_exeext
32576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32577   (eval $ac_link) 2>conftest.er1
32578   ac_status=$?
32579   grep -v '^ *+' conftest.er1 >conftest.err
32580   rm -f conftest.er1
32581   cat conftest.err >&5
32582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32583   (exit $ac_status); } &&
32584          { ac_try='test -z "$ac_c_werror_flag"
32585                          || test ! -s conftest.err'
32586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32587   (eval $ac_try) 2>&5
32588   ac_status=$?
32589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32590   (exit $ac_status); }; } &&
32591          { ac_try='test -s conftest$ac_exeext'
32592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32593   (eval $ac_try) 2>&5
32594   ac_status=$?
32595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32596   (exit $ac_status); }; }; then
32597   ac_cv_lib_readline_readline=yes
32598 else
32599   echo "$as_me: failed program was:" >&5
32600 sed 's/^/| /' conftest.$ac_ext >&5
32601
32602 ac_cv_lib_readline_readline=no
32603 fi
32604 rm -f conftest.err conftest.$ac_objext \
32605       conftest$ac_exeext conftest.$ac_ext
32606 LIBS=$ac_check_lib_save_LIBS
32607 fi
32608 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
32609 echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6
32610 if test $ac_cv_lib_readline_readline = yes; then
32611   READLINE_LIBS="-lreadline";
32612
32613 fi
32614
32615     if test "x$ac_cv_lib_readline_readline" != xyes; then
32616         { echo "$as_me:$LINENO: WARNING: *** No readline library, no history and command line editing in amrecover!" >&5
32617 echo "$as_me: WARNING: *** No readline library, no history and command line editing in amrecover!" >&2;}
32618     fi
32619 else
32620     { echo "$as_me:$LINENO: WARNING: *** No terminal library, no history and command line editing in amrecover!" >&5
32621 echo "$as_me: WARNING: *** No terminal library, no history and command line editing in amrecover!" >&2;}
32622 fi
32623
32624 if test "x$ac_cv_header_linux_zftape_h" = xyes; then
32625     if test "x$ac_cv_header_vtblc_h" = xyes; then
32626
32627 echo "$as_me:$LINENO: checking for main in -lvtblc" >&5
32628 echo $ECHO_N "checking for main in -lvtblc... $ECHO_C" >&6
32629 if test "${ac_cv_lib_vtblc_main+set}" = set; then
32630   echo $ECHO_N "(cached) $ECHO_C" >&6
32631 else
32632   ac_check_lib_save_LIBS=$LIBS
32633 LIBS="-lvtblc  $LIBS"
32634 cat >conftest.$ac_ext <<_ACEOF
32635 /* confdefs.h.  */
32636 _ACEOF
32637 cat confdefs.h >>conftest.$ac_ext
32638 cat >>conftest.$ac_ext <<_ACEOF
32639 /* end confdefs.h.  */
32640
32641
32642 int
32643 main ()
32644 {
32645 main ();
32646   ;
32647   return 0;
32648 }
32649 _ACEOF
32650 rm -f conftest.$ac_objext conftest$ac_exeext
32651 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32652   (eval $ac_link) 2>conftest.er1
32653   ac_status=$?
32654   grep -v '^ *+' conftest.er1 >conftest.err
32655   rm -f conftest.er1
32656   cat conftest.err >&5
32657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32658   (exit $ac_status); } &&
32659          { ac_try='test -z "$ac_c_werror_flag"
32660                          || test ! -s conftest.err'
32661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32662   (eval $ac_try) 2>&5
32663   ac_status=$?
32664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32665   (exit $ac_status); }; } &&
32666          { ac_try='test -s conftest$ac_exeext'
32667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32668   (eval $ac_try) 2>&5
32669   ac_status=$?
32670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32671   (exit $ac_status); }; }; then
32672   ac_cv_lib_vtblc_main=yes
32673 else
32674   echo "$as_me: failed program was:" >&5
32675 sed 's/^/| /' conftest.$ac_ext >&5
32676
32677 ac_cv_lib_vtblc_main=no
32678 fi
32679 rm -f conftest.err conftest.$ac_objext \
32680       conftest$ac_exeext conftest.$ac_ext
32681 LIBS=$ac_check_lib_save_LIBS
32682 fi
32683 echo "$as_me:$LINENO: result: $ac_cv_lib_vtblc_main" >&5
32684 echo "${ECHO_T}$ac_cv_lib_vtblc_main" >&6
32685 if test $ac_cv_lib_vtblc_main = yes; then
32686   cat >>confdefs.h <<_ACEOF
32687 #define HAVE_LIBVTBLC 1
32688 _ACEOF
32689
32690   LIBS="-lvtblc $LIBS"
32691
32692 fi
32693
32694         if test "x$ac_cv_lib_vtblc_main" != xyes; then
32695             { echo "$as_me:$LINENO: WARNING: *** vtblc library not found - no QIC volume table support!" >&5
32696 echo "$as_me: WARNING: *** vtblc library not found - no QIC volume table support!" >&2;}
32697         fi
32698     else
32699         { echo "$as_me:$LINENO: WARNING: *** vtblc headers not found - no QIC volume table support!" >&5
32700 echo "$as_me: WARNING: *** vtblc headers not found - no QIC volume table support!" >&2;}
32701     fi
32702 fi
32703
32704
32705 echo "$as_me:$LINENO: checking for modf in -lm" >&5
32706 echo $ECHO_N "checking for modf in -lm... $ECHO_C" >&6
32707 if test "${ac_cv_lib_m_modf+set}" = set; then
32708   echo $ECHO_N "(cached) $ECHO_C" >&6
32709 else
32710   ac_check_lib_save_LIBS=$LIBS
32711 LIBS="-lm  $LIBS"
32712 cat >conftest.$ac_ext <<_ACEOF
32713 /* confdefs.h.  */
32714 _ACEOF
32715 cat confdefs.h >>conftest.$ac_ext
32716 cat >>conftest.$ac_ext <<_ACEOF
32717 /* end confdefs.h.  */
32718
32719 /* Override any gcc2 internal prototype to avoid an error.  */
32720 #ifdef __cplusplus
32721 extern "C"
32722 #endif
32723 /* We use char because int might match the return type of a gcc2
32724    builtin and then its argument prototype would still apply.  */
32725 char modf ();
32726 int
32727 main ()
32728 {
32729 modf ();
32730   ;
32731   return 0;
32732 }
32733 _ACEOF
32734 rm -f conftest.$ac_objext conftest$ac_exeext
32735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32736   (eval $ac_link) 2>conftest.er1
32737   ac_status=$?
32738   grep -v '^ *+' conftest.er1 >conftest.err
32739   rm -f conftest.er1
32740   cat conftest.err >&5
32741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32742   (exit $ac_status); } &&
32743          { ac_try='test -z "$ac_c_werror_flag"
32744                          || test ! -s conftest.err'
32745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32746   (eval $ac_try) 2>&5
32747   ac_status=$?
32748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32749   (exit $ac_status); }; } &&
32750          { ac_try='test -s conftest$ac_exeext'
32751   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32752   (eval $ac_try) 2>&5
32753   ac_status=$?
32754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32755   (exit $ac_status); }; }; then
32756   ac_cv_lib_m_modf=yes
32757 else
32758   echo "$as_me: failed program was:" >&5
32759 sed 's/^/| /' conftest.$ac_ext >&5
32760
32761 ac_cv_lib_m_modf=no
32762 fi
32763 rm -f conftest.err conftest.$ac_objext \
32764       conftest$ac_exeext conftest.$ac_ext
32765 LIBS=$ac_check_lib_save_LIBS
32766 fi
32767 echo "$as_me:$LINENO: result: $ac_cv_lib_m_modf" >&5
32768 echo "${ECHO_T}$ac_cv_lib_m_modf" >&6
32769 if test $ac_cv_lib_m_modf = yes; then
32770   cat >>confdefs.h <<_ACEOF
32771 #define HAVE_LIBM 1
32772 _ACEOF
32773
32774   LIBS="-lm $LIBS"
32775
32776 fi
32777
32778
32779
32780 echo "$as_me:$LINENO: checking for mt_flags mtget structure element" >&5
32781 echo $ECHO_N "checking for mt_flags mtget structure element... $ECHO_C" >&6
32782 mt_flags_result="found"
32783 cat >conftest.$ac_ext <<_ACEOF
32784 /* confdefs.h.  */
32785 _ACEOF
32786 cat confdefs.h >>conftest.$ac_ext
32787 cat >>conftest.$ac_ext <<_ACEOF
32788 /* end confdefs.h.  */
32789
32790 #include <stdio.h>
32791 #include <sys/types.h>
32792 #include <sys/mtio.h>
32793
32794 int
32795 main ()
32796 {
32797
32798     struct mtget buf;
32799     long ds;
32800
32801     ds = buf.mt_flags;
32802
32803   ;
32804   return 0;
32805 }
32806 _ACEOF
32807 rm -f conftest.$ac_objext
32808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32809   (eval $ac_compile) 2>conftest.er1
32810   ac_status=$?
32811   grep -v '^ *+' conftest.er1 >conftest.err
32812   rm -f conftest.er1
32813   cat conftest.err >&5
32814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32815   (exit $ac_status); } &&
32816          { ac_try='test -z "$ac_c_werror_flag"
32817                          || test ! -s conftest.err'
32818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32819   (eval $ac_try) 2>&5
32820   ac_status=$?
32821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32822   (exit $ac_status); }; } &&
32823          { ac_try='test -s conftest.$ac_objext'
32824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32825   (eval $ac_try) 2>&5
32826   ac_status=$?
32827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32828   (exit $ac_status); }; }; then
32829
32830 cat >>confdefs.h <<\_ACEOF
32831 #define HAVE_MT_FLAGS 1
32832 _ACEOF
32833
32834 else
32835   echo "$as_me: failed program was:" >&5
32836 sed 's/^/| /' conftest.$ac_ext >&5
32837
32838 mt_flags_result="not found"
32839 fi
32840 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32841 echo "$as_me:$LINENO: result: $mt_flags_result" >&5
32842 echo "${ECHO_T}$mt_flags_result" >&6
32843
32844 echo "$as_me:$LINENO: checking for mt_fileno mtget structure element" >&5
32845 echo $ECHO_N "checking for mt_fileno mtget structure element... $ECHO_C" >&6
32846 mt_fileno_result="found"
32847 cat >conftest.$ac_ext <<_ACEOF
32848 /* confdefs.h.  */
32849 _ACEOF
32850 cat confdefs.h >>conftest.$ac_ext
32851 cat >>conftest.$ac_ext <<_ACEOF
32852 /* end confdefs.h.  */
32853
32854 #include <stdio.h>
32855 #include <sys/types.h>
32856 #include <sys/mtio.h>
32857
32858 int
32859 main ()
32860 {
32861
32862     struct mtget buf;
32863     long ds;
32864
32865     ds = buf.mt_fileno;
32866
32867   ;
32868   return 0;
32869 }
32870 _ACEOF
32871 rm -f conftest.$ac_objext
32872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32873   (eval $ac_compile) 2>conftest.er1
32874   ac_status=$?
32875   grep -v '^ *+' conftest.er1 >conftest.err
32876   rm -f conftest.er1
32877   cat conftest.err >&5
32878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32879   (exit $ac_status); } &&
32880          { ac_try='test -z "$ac_c_werror_flag"
32881                          || test ! -s conftest.err'
32882   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32883   (eval $ac_try) 2>&5
32884   ac_status=$?
32885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32886   (exit $ac_status); }; } &&
32887          { ac_try='test -s conftest.$ac_objext'
32888   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32889   (eval $ac_try) 2>&5
32890   ac_status=$?
32891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32892   (exit $ac_status); }; }; then
32893
32894 cat >>confdefs.h <<\_ACEOF
32895 #define HAVE_MT_FILENO 1
32896 _ACEOF
32897
32898 else
32899   echo "$as_me: failed program was:" >&5
32900 sed 's/^/| /' conftest.$ac_ext >&5
32901
32902 mt_fileno_result="not found"
32903 fi
32904 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32905 echo "$as_me:$LINENO: result: $mt_fileno_result" >&5
32906 echo "${ECHO_T}$mt_fileno_result" >&6
32907
32908 echo "$as_me:$LINENO: checking for mt_blkno mtget structure element" >&5
32909 echo $ECHO_N "checking for mt_blkno mtget structure element... $ECHO_C" >&6
32910 mt_blkno_result="found"
32911 cat >conftest.$ac_ext <<_ACEOF
32912 /* confdefs.h.  */
32913 _ACEOF
32914 cat confdefs.h >>conftest.$ac_ext
32915 cat >>conftest.$ac_ext <<_ACEOF
32916 /* end confdefs.h.  */
32917
32918 #include <stdio.h>
32919 #include <sys/types.h>
32920 #include <sys/mtio.h>
32921
32922 int
32923 main ()
32924 {
32925
32926     struct mtget buf;
32927     long ds;
32928
32929     ds = buf.mt_blkno;
32930
32931   ;
32932   return 0;
32933 }
32934 _ACEOF
32935 rm -f conftest.$ac_objext
32936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32937   (eval $ac_compile) 2>conftest.er1
32938   ac_status=$?
32939   grep -v '^ *+' conftest.er1 >conftest.err
32940   rm -f conftest.er1
32941   cat conftest.err >&5
32942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32943   (exit $ac_status); } &&
32944          { ac_try='test -z "$ac_c_werror_flag"
32945                          || test ! -s conftest.err'
32946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32947   (eval $ac_try) 2>&5
32948   ac_status=$?
32949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32950   (exit $ac_status); }; } &&
32951          { ac_try='test -s conftest.$ac_objext'
32952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32953   (eval $ac_try) 2>&5
32954   ac_status=$?
32955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32956   (exit $ac_status); }; }; then
32957
32958 cat >>confdefs.h <<\_ACEOF
32959 #define HAVE_MT_BLKNO 1
32960 _ACEOF
32961
32962 else
32963   echo "$as_me: failed program was:" >&5
32964 sed 's/^/| /' conftest.$ac_ext >&5
32965
32966 mt_blkno_result="not found"
32967 fi
32968 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32969 echo "$as_me:$LINENO: result: $mt_blkno_result" >&5
32970 echo "${ECHO_T}$mt_blkno_result" >&6
32971
32972 echo "$as_me:$LINENO: checking for mt_dsreg mtget structure element" >&5
32973 echo $ECHO_N "checking for mt_dsreg mtget structure element... $ECHO_C" >&6
32974 mt_dsreg_result="found"
32975 cat >conftest.$ac_ext <<_ACEOF
32976 /* confdefs.h.  */
32977 _ACEOF
32978 cat confdefs.h >>conftest.$ac_ext
32979 cat >>conftest.$ac_ext <<_ACEOF
32980 /* end confdefs.h.  */
32981
32982 #include <stdio.h>
32983 #include <sys/types.h>
32984 #include <sys/mtio.h>
32985
32986 int
32987 main ()
32988 {
32989
32990     struct mtget buf;
32991     long ds;
32992
32993     ds = buf.mt_dsreg;
32994
32995   ;
32996   return 0;
32997 }
32998 _ACEOF
32999 rm -f conftest.$ac_objext
33000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33001   (eval $ac_compile) 2>conftest.er1
33002   ac_status=$?
33003   grep -v '^ *+' conftest.er1 >conftest.err
33004   rm -f conftest.er1
33005   cat conftest.err >&5
33006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33007   (exit $ac_status); } &&
33008          { ac_try='test -z "$ac_c_werror_flag"
33009                          || test ! -s conftest.err'
33010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33011   (eval $ac_try) 2>&5
33012   ac_status=$?
33013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33014   (exit $ac_status); }; } &&
33015          { ac_try='test -s conftest.$ac_objext'
33016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33017   (eval $ac_try) 2>&5
33018   ac_status=$?
33019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33020   (exit $ac_status); }; }; then
33021
33022 cat >>confdefs.h <<\_ACEOF
33023 #define HAVE_MT_DSREG 1
33024 _ACEOF
33025
33026 else
33027   echo "$as_me: failed program was:" >&5
33028 sed 's/^/| /' conftest.$ac_ext >&5
33029
33030 mt_dsreg_result="not found"
33031 fi
33032 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33033 echo "$as_me:$LINENO: result: $mt_dsreg_result" >&5
33034 echo "${ECHO_T}$mt_dsreg_result" >&6
33035
33036 echo "$as_me:$LINENO: checking for mt_erreg mtget structure element" >&5
33037 echo $ECHO_N "checking for mt_erreg mtget structure element... $ECHO_C" >&6
33038 mt_erreg_result="found"
33039 cat >conftest.$ac_ext <<_ACEOF
33040 /* confdefs.h.  */
33041 _ACEOF
33042 cat confdefs.h >>conftest.$ac_ext
33043 cat >>conftest.$ac_ext <<_ACEOF
33044 /* end confdefs.h.  */
33045
33046 #include <stdio.h>
33047 #include <sys/types.h>
33048 #include <sys/mtio.h>
33049
33050 int
33051 main ()
33052 {
33053
33054     struct mtget buf;
33055     long ds;
33056
33057     ds = buf.mt_erreg;
33058
33059   ;
33060   return 0;
33061 }
33062 _ACEOF
33063 rm -f conftest.$ac_objext
33064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33065   (eval $ac_compile) 2>conftest.er1
33066   ac_status=$?
33067   grep -v '^ *+' conftest.er1 >conftest.err
33068   rm -f conftest.er1
33069   cat conftest.err >&5
33070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33071   (exit $ac_status); } &&
33072          { ac_try='test -z "$ac_c_werror_flag"
33073                          || test ! -s conftest.err'
33074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33075   (eval $ac_try) 2>&5
33076   ac_status=$?
33077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33078   (exit $ac_status); }; } &&
33079          { ac_try='test -s conftest.$ac_objext'
33080   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33081   (eval $ac_try) 2>&5
33082   ac_status=$?
33083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33084   (exit $ac_status); }; }; then
33085
33086 cat >>confdefs.h <<\_ACEOF
33087 #define HAVE_MT_ERREG 1
33088 _ACEOF
33089
33090 else
33091   echo "$as_me: failed program was:" >&5
33092 sed 's/^/| /' conftest.$ac_ext >&5
33093
33094 mt_erreg_result="not found"
33095 fi
33096 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33097 echo "$as_me:$LINENO: result: $mt_erreg_result" >&5
33098 echo "${ECHO_T}$mt_erreg_result" >&6
33099
33100
33101 DB_HEADER=
33102 DB_LIB=
33103
33104 save_LIBS="$LIBS"
33105
33106 echo "$as_me:$LINENO: checking for dbm_open in -lc" >&5
33107 echo $ECHO_N "checking for dbm_open in -lc... $ECHO_C" >&6
33108 if test "${ac_cv_lib_c_dbm_open+set}" = set; then
33109   echo $ECHO_N "(cached) $ECHO_C" >&6
33110 else
33111   ac_check_lib_save_LIBS=$LIBS
33112 LIBS="-lc  $LIBS"
33113 cat >conftest.$ac_ext <<_ACEOF
33114 /* confdefs.h.  */
33115 _ACEOF
33116 cat confdefs.h >>conftest.$ac_ext
33117 cat >>conftest.$ac_ext <<_ACEOF
33118 /* end confdefs.h.  */
33119
33120 /* Override any gcc2 internal prototype to avoid an error.  */
33121 #ifdef __cplusplus
33122 extern "C"
33123 #endif
33124 /* We use char because int might match the return type of a gcc2
33125    builtin and then its argument prototype would still apply.  */
33126 char dbm_open ();
33127 int
33128 main ()
33129 {
33130 dbm_open ();
33131   ;
33132   return 0;
33133 }
33134 _ACEOF
33135 rm -f conftest.$ac_objext conftest$ac_exeext
33136 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33137   (eval $ac_link) 2>conftest.er1
33138   ac_status=$?
33139   grep -v '^ *+' conftest.er1 >conftest.err
33140   rm -f conftest.er1
33141   cat conftest.err >&5
33142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33143   (exit $ac_status); } &&
33144          { ac_try='test -z "$ac_c_werror_flag"
33145                          || test ! -s conftest.err'
33146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33147   (eval $ac_try) 2>&5
33148   ac_status=$?
33149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33150   (exit $ac_status); }; } &&
33151          { ac_try='test -s conftest$ac_exeext'
33152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33153   (eval $ac_try) 2>&5
33154   ac_status=$?
33155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33156   (exit $ac_status); }; }; then
33157   ac_cv_lib_c_dbm_open=yes
33158 else
33159   echo "$as_me: failed program was:" >&5
33160 sed 's/^/| /' conftest.$ac_ext >&5
33161
33162 ac_cv_lib_c_dbm_open=no
33163 fi
33164 rm -f conftest.err conftest.$ac_objext \
33165       conftest$ac_exeext conftest.$ac_ext
33166 LIBS=$ac_check_lib_save_LIBS
33167 fi
33168 echo "$as_me:$LINENO: result: $ac_cv_lib_c_dbm_open" >&5
33169 echo "${ECHO_T}$ac_cv_lib_c_dbm_open" >&6
33170 if test $ac_cv_lib_c_dbm_open = yes; then
33171   cat >>confdefs.h <<_ACEOF
33172 #define HAVE_LIBC 1
33173 _ACEOF
33174
33175   LIBS="-lc $LIBS"
33176
33177 fi
33178
33179 LIBS="$save_LIBS"
33180
33181 case "$DB_STYLE" in
33182     db)
33183         if test "x$ac_cv_header_db_h" = xyes; then
33184
33185 echo "$as_me:$LINENO: checking for main in -ldb" >&5
33186 echo $ECHO_N "checking for main in -ldb... $ECHO_C" >&6
33187 if test "${ac_cv_lib_db_main+set}" = set; then
33188   echo $ECHO_N "(cached) $ECHO_C" >&6
33189 else
33190   ac_check_lib_save_LIBS=$LIBS
33191 LIBS="-ldb  $LIBS"
33192 cat >conftest.$ac_ext <<_ACEOF
33193 /* confdefs.h.  */
33194 _ACEOF
33195 cat confdefs.h >>conftest.$ac_ext
33196 cat >>conftest.$ac_ext <<_ACEOF
33197 /* end confdefs.h.  */
33198
33199
33200 int
33201 main ()
33202 {
33203 main ();
33204   ;
33205   return 0;
33206 }
33207 _ACEOF
33208 rm -f conftest.$ac_objext conftest$ac_exeext
33209 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33210   (eval $ac_link) 2>conftest.er1
33211   ac_status=$?
33212   grep -v '^ *+' conftest.er1 >conftest.err
33213   rm -f conftest.er1
33214   cat conftest.err >&5
33215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33216   (exit $ac_status); } &&
33217          { ac_try='test -z "$ac_c_werror_flag"
33218                          || test ! -s conftest.err'
33219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33220   (eval $ac_try) 2>&5
33221   ac_status=$?
33222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33223   (exit $ac_status); }; } &&
33224          { ac_try='test -s conftest$ac_exeext'
33225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33226   (eval $ac_try) 2>&5
33227   ac_status=$?
33228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33229   (exit $ac_status); }; }; then
33230   ac_cv_lib_db_main=yes
33231 else
33232   echo "$as_me: failed program was:" >&5
33233 sed 's/^/| /' conftest.$ac_ext >&5
33234
33235 ac_cv_lib_db_main=no
33236 fi
33237 rm -f conftest.err conftest.$ac_objext \
33238       conftest$ac_exeext conftest.$ac_ext
33239 LIBS=$ac_check_lib_save_LIBS
33240 fi
33241 echo "$as_me:$LINENO: result: $ac_cv_lib_db_main" >&5
33242 echo "${ECHO_T}$ac_cv_lib_db_main" >&6
33243 if test $ac_cv_lib_db_main = yes; then
33244   cat >>confdefs.h <<_ACEOF
33245 #define HAVE_LIBDB 1
33246 _ACEOF
33247
33248   LIBS="-ldb $LIBS"
33249
33250 fi
33251
33252             if test "x$ac_cv_lib_db_main" = xyes; then
33253
33254 echo "$as_me:$LINENO: checking for dbm_open in -ldb" >&5
33255 echo $ECHO_N "checking for dbm_open in -ldb... $ECHO_C" >&6
33256 if test "${ac_cv_lib_db_dbm_open+set}" = set; then
33257   echo $ECHO_N "(cached) $ECHO_C" >&6
33258 else
33259   ac_check_lib_save_LIBS=$LIBS
33260 LIBS="-ldb  $LIBS"
33261 cat >conftest.$ac_ext <<_ACEOF
33262 /* confdefs.h.  */
33263 _ACEOF
33264 cat confdefs.h >>conftest.$ac_ext
33265 cat >>conftest.$ac_ext <<_ACEOF
33266 /* end confdefs.h.  */
33267
33268 /* Override any gcc2 internal prototype to avoid an error.  */
33269 #ifdef __cplusplus
33270 extern "C"
33271 #endif
33272 /* We use char because int might match the return type of a gcc2
33273    builtin and then its argument prototype would still apply.  */
33274 char dbm_open ();
33275 int
33276 main ()
33277 {
33278 dbm_open ();
33279   ;
33280   return 0;
33281 }
33282 _ACEOF
33283 rm -f conftest.$ac_objext conftest$ac_exeext
33284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33285   (eval $ac_link) 2>conftest.er1
33286   ac_status=$?
33287   grep -v '^ *+' conftest.er1 >conftest.err
33288   rm -f conftest.er1
33289   cat conftest.err >&5
33290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33291   (exit $ac_status); } &&
33292          { ac_try='test -z "$ac_c_werror_flag"
33293                          || test ! -s conftest.err'
33294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33295   (eval $ac_try) 2>&5
33296   ac_status=$?
33297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33298   (exit $ac_status); }; } &&
33299          { ac_try='test -s conftest$ac_exeext'
33300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33301   (eval $ac_try) 2>&5
33302   ac_status=$?
33303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33304   (exit $ac_status); }; }; then
33305   ac_cv_lib_db_dbm_open=yes
33306 else
33307   echo "$as_me: failed program was:" >&5
33308 sed 's/^/| /' conftest.$ac_ext >&5
33309
33310 ac_cv_lib_db_dbm_open=no
33311 fi
33312 rm -f conftest.err conftest.$ac_objext \
33313       conftest$ac_exeext conftest.$ac_ext
33314 LIBS=$ac_check_lib_save_LIBS
33315 fi
33316 echo "$as_me:$LINENO: result: $ac_cv_lib_db_dbm_open" >&5
33317 echo "${ECHO_T}$ac_cv_lib_db_dbm_open" >&6
33318 if test $ac_cv_lib_db_dbm_open = yes; then
33319   cat >>confdefs.h <<_ACEOF
33320 #define HAVE_LIBDB 1
33321 _ACEOF
33322
33323   LIBS="-ldb $LIBS"
33324
33325 fi
33326
33327                 if test "x$ac_cv_lib_db_dbm_open" = xyes; then
33328                     DB_HEADER=db.h
33329                     DB_LIB=db
33330                 else
33331                     DB_STYLE=
33332                     { echo "$as_me:$LINENO: WARNING: *** db database library requested but dbm_open not found in -ldb." >&5
33333 echo "$as_me: WARNING: *** db database library requested but dbm_open not found in -ldb." >&2;}
33334                 fi
33335             else
33336                 if test "x$ac_cv_lib_c_dbm_open" = xyes; then
33337                     DB_HEADER=db.h
33338                     DB_LIB=c
33339                 else
33340                     DB_STYLE=
33341                     { echo "$as_me:$LINENO: WARNING: *** db library requested but -ldb doesn't exist and dbm_open cannot be found." >&5
33342 echo "$as_me: WARNING: *** db library requested but -ldb doesn't exist and dbm_open cannot be found." >&2;}
33343                 fi
33344             fi
33345         else
33346             DB_STYLE=
33347             { echo "$as_me:$LINENO: WARNING: *** db database library requested but db.h not found." >&5
33348 echo "$as_me: WARNING: *** db database library requested but db.h not found." >&2;}
33349         fi
33350         ;;
33351
33352     dbm)
33353         if test "x$ac_cv_header_dbm_h" = xyes; then
33354
33355 echo "$as_me:$LINENO: checking for main in -ldbm" >&5
33356 echo $ECHO_N "checking for main in -ldbm... $ECHO_C" >&6
33357 if test "${ac_cv_lib_dbm_main+set}" = set; then
33358   echo $ECHO_N "(cached) $ECHO_C" >&6
33359 else
33360   ac_check_lib_save_LIBS=$LIBS
33361 LIBS="-ldbm  $LIBS"
33362 cat >conftest.$ac_ext <<_ACEOF
33363 /* confdefs.h.  */
33364 _ACEOF
33365 cat confdefs.h >>conftest.$ac_ext
33366 cat >>conftest.$ac_ext <<_ACEOF
33367 /* end confdefs.h.  */
33368
33369
33370 int
33371 main ()
33372 {
33373 main ();
33374   ;
33375   return 0;
33376 }
33377 _ACEOF
33378 rm -f conftest.$ac_objext conftest$ac_exeext
33379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33380   (eval $ac_link) 2>conftest.er1
33381   ac_status=$?
33382   grep -v '^ *+' conftest.er1 >conftest.err
33383   rm -f conftest.er1
33384   cat conftest.err >&5
33385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33386   (exit $ac_status); } &&
33387          { ac_try='test -z "$ac_c_werror_flag"
33388                          || test ! -s conftest.err'
33389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33390   (eval $ac_try) 2>&5
33391   ac_status=$?
33392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33393   (exit $ac_status); }; } &&
33394          { ac_try='test -s conftest$ac_exeext'
33395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33396   (eval $ac_try) 2>&5
33397   ac_status=$?
33398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33399   (exit $ac_status); }; }; then
33400   ac_cv_lib_dbm_main=yes
33401 else
33402   echo "$as_me: failed program was:" >&5
33403 sed 's/^/| /' conftest.$ac_ext >&5
33404
33405 ac_cv_lib_dbm_main=no
33406 fi
33407 rm -f conftest.err conftest.$ac_objext \
33408       conftest$ac_exeext conftest.$ac_ext
33409 LIBS=$ac_check_lib_save_LIBS
33410 fi
33411 echo "$as_me:$LINENO: result: $ac_cv_lib_dbm_main" >&5
33412 echo "${ECHO_T}$ac_cv_lib_dbm_main" >&6
33413 if test $ac_cv_lib_dbm_main = yes; then
33414   cat >>confdefs.h <<_ACEOF
33415 #define HAVE_LIBDBM 1
33416 _ACEOF
33417
33418   LIBS="-ldbm $LIBS"
33419
33420 fi
33421
33422             if test "x$ac_cv_lib_dbm_main" = xyes; then
33423
33424 echo "$as_me:$LINENO: checking for dbm_open in -ldbm" >&5
33425 echo $ECHO_N "checking for dbm_open in -ldbm... $ECHO_C" >&6
33426 if test "${ac_cv_lib_dbm_dbm_open+set}" = set; then
33427   echo $ECHO_N "(cached) $ECHO_C" >&6
33428 else
33429   ac_check_lib_save_LIBS=$LIBS
33430 LIBS="-ldbm  $LIBS"
33431 cat >conftest.$ac_ext <<_ACEOF
33432 /* confdefs.h.  */
33433 _ACEOF
33434 cat confdefs.h >>conftest.$ac_ext
33435 cat >>conftest.$ac_ext <<_ACEOF
33436 /* end confdefs.h.  */
33437
33438 /* Override any gcc2 internal prototype to avoid an error.  */
33439 #ifdef __cplusplus
33440 extern "C"
33441 #endif
33442 /* We use char because int might match the return type of a gcc2
33443    builtin and then its argument prototype would still apply.  */
33444 char dbm_open ();
33445 int
33446 main ()
33447 {
33448 dbm_open ();
33449   ;
33450   return 0;
33451 }
33452 _ACEOF
33453 rm -f conftest.$ac_objext conftest$ac_exeext
33454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33455   (eval $ac_link) 2>conftest.er1
33456   ac_status=$?
33457   grep -v '^ *+' conftest.er1 >conftest.err
33458   rm -f conftest.er1
33459   cat conftest.err >&5
33460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33461   (exit $ac_status); } &&
33462          { ac_try='test -z "$ac_c_werror_flag"
33463                          || test ! -s conftest.err'
33464   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33465   (eval $ac_try) 2>&5
33466   ac_status=$?
33467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33468   (exit $ac_status); }; } &&
33469          { ac_try='test -s conftest$ac_exeext'
33470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33471   (eval $ac_try) 2>&5
33472   ac_status=$?
33473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33474   (exit $ac_status); }; }; then
33475   ac_cv_lib_dbm_dbm_open=yes
33476 else
33477   echo "$as_me: failed program was:" >&5
33478 sed 's/^/| /' conftest.$ac_ext >&5
33479
33480 ac_cv_lib_dbm_dbm_open=no
33481 fi
33482 rm -f conftest.err conftest.$ac_objext \
33483       conftest$ac_exeext conftest.$ac_ext
33484 LIBS=$ac_check_lib_save_LIBS
33485 fi
33486 echo "$as_me:$LINENO: result: $ac_cv_lib_dbm_dbm_open" >&5
33487 echo "${ECHO_T}$ac_cv_lib_dbm_dbm_open" >&6
33488 if test $ac_cv_lib_dbm_dbm_open = yes; then
33489   cat >>confdefs.h <<_ACEOF
33490 #define HAVE_LIBDBM 1
33491 _ACEOF
33492
33493   LIBS="-ldbm $LIBS"
33494
33495 fi
33496
33497                 if test "x$ac_cv_lib_dbm_dbm_open" = xyes; then
33498                     DB_HEADER=dbm.h
33499                     DB_LIB=dbm
33500                 else
33501                     DB_STYLE=
33502                     { echo "$as_me:$LINENO: WARNING: *** dbm database library requested but dbm_open not found in -ldbm." >&5
33503 echo "$as_me: WARNING: *** dbm database library requested but dbm_open not found in -ldbm." >&2;}
33504                 fi
33505             else
33506                 if test "x$ac_cv_lib_c_dbm_open" = xyes; then
33507                     DB_HEADER=dbm.h
33508                     DB_LIB=c
33509                 else
33510                     DB_STYLE=
33511                     { echo "$as_me:$LINENO: WARNING: *** dbm library requested but -ldbm doesn't exist and dbm_open cannot be found." >&5
33512 echo "$as_me: WARNING: *** dbm library requested but -ldbm doesn't exist and dbm_open cannot be found." >&2;}
33513                 fi
33514             fi
33515         else
33516             DB_STYLE=
33517             { echo "$as_me:$LINENO: WARNING: *** dbm database library requested but dbm.h not found." >&5
33518 echo "$as_me: WARNING: *** dbm database library requested but dbm.h not found." >&2;}
33519         fi
33520         ;;
33521
33522     gdbm)
33523         if test "x$ac_cv_header_ndbm_h" = xyes; then
33524
33525 echo "$as_me:$LINENO: checking for main in -lgdbm" >&5
33526 echo $ECHO_N "checking for main in -lgdbm... $ECHO_C" >&6
33527 if test "${ac_cv_lib_gdbm_main+set}" = set; then
33528   echo $ECHO_N "(cached) $ECHO_C" >&6
33529 else
33530   ac_check_lib_save_LIBS=$LIBS
33531 LIBS="-lgdbm  $LIBS"
33532 cat >conftest.$ac_ext <<_ACEOF
33533 /* confdefs.h.  */
33534 _ACEOF
33535 cat confdefs.h >>conftest.$ac_ext
33536 cat >>conftest.$ac_ext <<_ACEOF
33537 /* end confdefs.h.  */
33538
33539
33540 int
33541 main ()
33542 {
33543 main ();
33544   ;
33545   return 0;
33546 }
33547 _ACEOF
33548 rm -f conftest.$ac_objext conftest$ac_exeext
33549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33550   (eval $ac_link) 2>conftest.er1
33551   ac_status=$?
33552   grep -v '^ *+' conftest.er1 >conftest.err
33553   rm -f conftest.er1
33554   cat conftest.err >&5
33555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33556   (exit $ac_status); } &&
33557          { ac_try='test -z "$ac_c_werror_flag"
33558                          || test ! -s conftest.err'
33559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33560   (eval $ac_try) 2>&5
33561   ac_status=$?
33562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33563   (exit $ac_status); }; } &&
33564          { ac_try='test -s conftest$ac_exeext'
33565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33566   (eval $ac_try) 2>&5
33567   ac_status=$?
33568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33569   (exit $ac_status); }; }; then
33570   ac_cv_lib_gdbm_main=yes
33571 else
33572   echo "$as_me: failed program was:" >&5
33573 sed 's/^/| /' conftest.$ac_ext >&5
33574
33575 ac_cv_lib_gdbm_main=no
33576 fi
33577 rm -f conftest.err conftest.$ac_objext \
33578       conftest$ac_exeext conftest.$ac_ext
33579 LIBS=$ac_check_lib_save_LIBS
33580 fi
33581 echo "$as_me:$LINENO: result: $ac_cv_lib_gdbm_main" >&5
33582 echo "${ECHO_T}$ac_cv_lib_gdbm_main" >&6
33583 if test $ac_cv_lib_gdbm_main = yes; then
33584   cat >>confdefs.h <<_ACEOF
33585 #define HAVE_LIBGDBM 1
33586 _ACEOF
33587
33588   LIBS="-lgdbm $LIBS"
33589
33590 fi
33591
33592             if test "x$ac_cv_lib_gdbm_main" = xyes; then
33593
33594 echo "$as_me:$LINENO: checking for dbm_open in -lgdbm" >&5
33595 echo $ECHO_N "checking for dbm_open in -lgdbm... $ECHO_C" >&6
33596 if test "${ac_cv_lib_gdbm_dbm_open+set}" = set; then
33597   echo $ECHO_N "(cached) $ECHO_C" >&6
33598 else
33599   ac_check_lib_save_LIBS=$LIBS
33600 LIBS="-lgdbm  $LIBS"
33601 cat >conftest.$ac_ext <<_ACEOF
33602 /* confdefs.h.  */
33603 _ACEOF
33604 cat confdefs.h >>conftest.$ac_ext
33605 cat >>conftest.$ac_ext <<_ACEOF
33606 /* end confdefs.h.  */
33607
33608 /* Override any gcc2 internal prototype to avoid an error.  */
33609 #ifdef __cplusplus
33610 extern "C"
33611 #endif
33612 /* We use char because int might match the return type of a gcc2
33613    builtin and then its argument prototype would still apply.  */
33614 char dbm_open ();
33615 int
33616 main ()
33617 {
33618 dbm_open ();
33619   ;
33620   return 0;
33621 }
33622 _ACEOF
33623 rm -f conftest.$ac_objext conftest$ac_exeext
33624 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33625   (eval $ac_link) 2>conftest.er1
33626   ac_status=$?
33627   grep -v '^ *+' conftest.er1 >conftest.err
33628   rm -f conftest.er1
33629   cat conftest.err >&5
33630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33631   (exit $ac_status); } &&
33632          { ac_try='test -z "$ac_c_werror_flag"
33633                          || test ! -s conftest.err'
33634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33635   (eval $ac_try) 2>&5
33636   ac_status=$?
33637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33638   (exit $ac_status); }; } &&
33639          { ac_try='test -s conftest$ac_exeext'
33640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33641   (eval $ac_try) 2>&5
33642   ac_status=$?
33643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33644   (exit $ac_status); }; }; then
33645   ac_cv_lib_gdbm_dbm_open=yes
33646 else
33647   echo "$as_me: failed program was:" >&5
33648 sed 's/^/| /' conftest.$ac_ext >&5
33649
33650 ac_cv_lib_gdbm_dbm_open=no
33651 fi
33652 rm -f conftest.err conftest.$ac_objext \
33653       conftest$ac_exeext conftest.$ac_ext
33654 LIBS=$ac_check_lib_save_LIBS
33655 fi
33656 echo "$as_me:$LINENO: result: $ac_cv_lib_gdbm_dbm_open" >&5
33657 echo "${ECHO_T}$ac_cv_lib_gdbm_dbm_open" >&6
33658 if test $ac_cv_lib_gdbm_dbm_open = yes; then
33659   cat >>confdefs.h <<_ACEOF
33660 #define HAVE_LIBGDBM 1
33661 _ACEOF
33662
33663   LIBS="-lgdbm $LIBS"
33664
33665 fi
33666
33667                 if test "x$ac_cv_lib_gdbm_dbm_open" = xyes; then
33668                     DB_HEADER=ndbm.h
33669                     DB_LIB=gdbm
33670                 else
33671                     DB_STYLE=
33672                     { echo "$as_me:$LINENO: WARNING: *** gdbm database library requested but -lgdbm not found." >&5
33673 echo "$as_me: WARNING: *** gdbm database library requested but -lgdbm not found." >&2;}
33674                 fi
33675             else
33676                 if test "x$ac_cv_lib_c_dbm_open" = xyes; then
33677                     DB_HEADER=ndbm.h
33678                     DB_LIB=c
33679                 else
33680                     DB_STYLE=
33681                     { echo "$as_me:$LINENO: WARNING: *** gdbm library requested but -lgdbm doesn't exist and dbm_open cannot be found." >&5
33682 echo "$as_me: WARNING: *** gdbm library requested but -lgdbm doesn't exist and dbm_open cannot be found." >&2;}
33683                 fi
33684             fi
33685         else
33686             DB_STYLE=
33687             { echo "$as_me:$LINENO: WARNING: *** gdbm database library requested but ndbm.h not found." >&5
33688 echo "$as_me: WARNING: *** gdbm database library requested but ndbm.h not found." >&2;}
33689         fi
33690         ;;
33691
33692     ndbm)
33693         if test "x$ac_cv_header_ndbm_h" = xyes; then
33694
33695 echo "$as_me:$LINENO: checking for main in -lndbm" >&5
33696 echo $ECHO_N "checking for main in -lndbm... $ECHO_C" >&6
33697 if test "${ac_cv_lib_ndbm_main+set}" = set; then
33698   echo $ECHO_N "(cached) $ECHO_C" >&6
33699 else
33700   ac_check_lib_save_LIBS=$LIBS
33701 LIBS="-lndbm  $LIBS"
33702 cat >conftest.$ac_ext <<_ACEOF
33703 /* confdefs.h.  */
33704 _ACEOF
33705 cat confdefs.h >>conftest.$ac_ext
33706 cat >>conftest.$ac_ext <<_ACEOF
33707 /* end confdefs.h.  */
33708
33709
33710 int
33711 main ()
33712 {
33713 main ();
33714   ;
33715   return 0;
33716 }
33717 _ACEOF
33718 rm -f conftest.$ac_objext conftest$ac_exeext
33719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33720   (eval $ac_link) 2>conftest.er1
33721   ac_status=$?
33722   grep -v '^ *+' conftest.er1 >conftest.err
33723   rm -f conftest.er1
33724   cat conftest.err >&5
33725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33726   (exit $ac_status); } &&
33727          { ac_try='test -z "$ac_c_werror_flag"
33728                          || test ! -s conftest.err'
33729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33730   (eval $ac_try) 2>&5
33731   ac_status=$?
33732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33733   (exit $ac_status); }; } &&
33734          { ac_try='test -s conftest$ac_exeext'
33735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33736   (eval $ac_try) 2>&5
33737   ac_status=$?
33738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33739   (exit $ac_status); }; }; then
33740   ac_cv_lib_ndbm_main=yes
33741 else
33742   echo "$as_me: failed program was:" >&5
33743 sed 's/^/| /' conftest.$ac_ext >&5
33744
33745 ac_cv_lib_ndbm_main=no
33746 fi
33747 rm -f conftest.err conftest.$ac_objext \
33748       conftest$ac_exeext conftest.$ac_ext
33749 LIBS=$ac_check_lib_save_LIBS
33750 fi
33751 echo "$as_me:$LINENO: result: $ac_cv_lib_ndbm_main" >&5
33752 echo "${ECHO_T}$ac_cv_lib_ndbm_main" >&6
33753 if test $ac_cv_lib_ndbm_main = yes; then
33754   cat >>confdefs.h <<_ACEOF
33755 #define HAVE_LIBNDBM 1
33756 _ACEOF
33757
33758   LIBS="-lndbm $LIBS"
33759
33760 fi
33761
33762             if test "x$ac_cv_lib_ndbm_main" = xyes; then
33763
33764 echo "$as_me:$LINENO: checking for dbm_open in -lndbm" >&5
33765 echo $ECHO_N "checking for dbm_open in -lndbm... $ECHO_C" >&6
33766 if test "${ac_cv_lib_ndbm_dbm_open+set}" = set; then
33767   echo $ECHO_N "(cached) $ECHO_C" >&6
33768 else
33769   ac_check_lib_save_LIBS=$LIBS
33770 LIBS="-lndbm  $LIBS"
33771 cat >conftest.$ac_ext <<_ACEOF
33772 /* confdefs.h.  */
33773 _ACEOF
33774 cat confdefs.h >>conftest.$ac_ext
33775 cat >>conftest.$ac_ext <<_ACEOF
33776 /* end confdefs.h.  */
33777
33778 /* Override any gcc2 internal prototype to avoid an error.  */
33779 #ifdef __cplusplus
33780 extern "C"
33781 #endif
33782 /* We use char because int might match the return type of a gcc2
33783    builtin and then its argument prototype would still apply.  */
33784 char dbm_open ();
33785 int
33786 main ()
33787 {
33788 dbm_open ();
33789   ;
33790   return 0;
33791 }
33792 _ACEOF
33793 rm -f conftest.$ac_objext conftest$ac_exeext
33794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33795   (eval $ac_link) 2>conftest.er1
33796   ac_status=$?
33797   grep -v '^ *+' conftest.er1 >conftest.err
33798   rm -f conftest.er1
33799   cat conftest.err >&5
33800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33801   (exit $ac_status); } &&
33802          { ac_try='test -z "$ac_c_werror_flag"
33803                          || test ! -s conftest.err'
33804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33805   (eval $ac_try) 2>&5
33806   ac_status=$?
33807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33808   (exit $ac_status); }; } &&
33809          { ac_try='test -s conftest$ac_exeext'
33810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33811   (eval $ac_try) 2>&5
33812   ac_status=$?
33813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33814   (exit $ac_status); }; }; then
33815   ac_cv_lib_ndbm_dbm_open=yes
33816 else
33817   echo "$as_me: failed program was:" >&5
33818 sed 's/^/| /' conftest.$ac_ext >&5
33819
33820 ac_cv_lib_ndbm_dbm_open=no
33821 fi
33822 rm -f conftest.err conftest.$ac_objext \
33823       conftest$ac_exeext conftest.$ac_ext
33824 LIBS=$ac_check_lib_save_LIBS
33825 fi
33826 echo "$as_me:$LINENO: result: $ac_cv_lib_ndbm_dbm_open" >&5
33827 echo "${ECHO_T}$ac_cv_lib_ndbm_dbm_open" >&6
33828 if test $ac_cv_lib_ndbm_dbm_open = yes; then
33829   cat >>confdefs.h <<_ACEOF
33830 #define HAVE_LIBNDBM 1
33831 _ACEOF
33832
33833   LIBS="-lndbm $LIBS"
33834
33835 fi
33836
33837                 if test "x$ac_cv_lib_ndbm_dbm_open" = xyes; then
33838                     DB_HEADER=ndbm.h
33839                     DB_LIB=ndbm
33840                 else
33841                     DB_STYLE=
33842                     { echo "$as_me:$LINENO: WARNING: *** ndbm database library requested but -lndbm not found." >&5
33843 echo "$as_me: WARNING: *** ndbm database library requested but -lndbm not found." >&2;}
33844                 fi
33845             else
33846                 if test "x$ac_cv_lib_c_dbm_open" = xyes; then
33847                     DB_HEADER=ndbm.h
33848                     DB_LIB=c
33849                 else
33850                     DB_STYLE=
33851                     { echo "$as_me:$LINENO: WARNING: *** ndbm library requested but -lndbm doesn't exist and dbm_open cannot be found." >&5
33852 echo "$as_me: WARNING: *** ndbm library requested but -lndbm doesn't exist and dbm_open cannot be found." >&2;}
33853                 fi
33854             fi
33855         else
33856             DB_STYLE=
33857             { echo "$as_me:$LINENO: WARNING: *** ndbm database library requested but ndbm.h not found." >&5
33858 echo "$as_me: WARNING: *** ndbm database library requested but ndbm.h not found." >&2;}
33859         fi
33860         ;;
33861     text)
33862         DB_HEADER=
33863         DB_LIB=
33864         ;;
33865 esac
33866
33867
33868 if test -z "$DB_STYLE"; then
33869     DB_STYLE=text
33870     DB_HEADER=
33871     DB_LIB=
33872 fi
33873
33874
33875 if test "x$DB_STYLE" = xtext; then
33876
33877 cat >>confdefs.h <<\_ACEOF
33878 #define TEXTDB 1
33879 _ACEOF
33880
33881 else
33882     echo "$as_me:$LINENO: checking for database" >&5
33883 echo $ECHO_N "checking for database... $ECHO_C" >&6
33884     echo "$as_me:$LINENO: result: header is $DB_HEADER, linking against -l$DB_LIB" >&5
33885 echo "${ECHO_T}header is $DB_HEADER, linking against -l$DB_LIB" >&6
33886     case "$DB_STYLE" in
33887         db)
33888 cat >>confdefs.h <<\_ACEOF
33889 #define USE_DB_H 1
33890 _ACEOF
33891    ;;
33892         dbm)
33893 cat >>confdefs.h <<\_ACEOF
33894 #define USE_DBM_H 1
33895 _ACEOF
33896   ;;
33897         gdbm)
33898 cat >>confdefs.h <<\_ACEOF
33899 #define USE_GDBM_H 1
33900 _ACEOF
33901  ;;
33902         ndbm)
33903 cat >>confdefs.h <<\_ACEOF
33904 #define USE_NDBM_H 1
33905 _ACEOF
33906  ;;
33907     esac
33908
33909     echo "$as_me:$LINENO: checking for struct datum declared in header files" >&5
33910 echo $ECHO_N "checking for struct datum declared in header files... $ECHO_C" >&6
33911 if test "${amanda_cv_struct_datum+set}" = set; then
33912   echo $ECHO_N "(cached) $ECHO_C" >&6
33913 else
33914
33915             cat >conftest.$ac_ext <<_ACEOF
33916 /* confdefs.h.  */
33917 _ACEOF
33918 cat confdefs.h >>conftest.$ac_ext
33919 cat >>conftest.$ac_ext <<_ACEOF
33920 /* end confdefs.h.  */
33921
33922 #if defined(USE_DB_H)
33923 #  include <db.h>
33924 #else
33925 #  if defined(USE_DBM_H)
33926 #    include <dbm.h>
33927 #  else
33928 #    if defined(USE_NDBM_H)
33929 #      include <ndbm.h>
33930 #    endif
33931 #  endif
33932 #endif
33933
33934 int
33935 main ()
33936 {
33937
33938                     datum a;
33939
33940   ;
33941   return 0;
33942 }
33943 _ACEOF
33944 rm -f conftest.$ac_objext
33945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33946   (eval $ac_compile) 2>conftest.er1
33947   ac_status=$?
33948   grep -v '^ *+' conftest.er1 >conftest.err
33949   rm -f conftest.er1
33950   cat conftest.err >&5
33951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33952   (exit $ac_status); } &&
33953          { ac_try='test -z "$ac_c_werror_flag"
33954                          || test ! -s conftest.err'
33955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33956   (eval $ac_try) 2>&5
33957   ac_status=$?
33958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33959   (exit $ac_status); }; } &&
33960          { ac_try='test -s conftest.$ac_objext'
33961   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33962   (eval $ac_try) 2>&5
33963   ac_status=$?
33964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33965   (exit $ac_status); }; }; then
33966   amanda_cv_struct_datum=yes
33967 else
33968   echo "$as_me: failed program was:" >&5
33969 sed 's/^/| /' conftest.$ac_ext >&5
33970
33971 amanda_cv_struct_datum=no
33972
33973 fi
33974 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33975
33976 fi
33977 echo "$as_me:$LINENO: result: $amanda_cv_struct_datum" >&5
33978 echo "${ECHO_T}$amanda_cv_struct_datum" >&6
33979     if test "x$amanda_cv_struct_datum" = xyes; then
33980
33981 cat >>confdefs.h <<\_ACEOF
33982 #define HAVE_STRUCT_DATUM 1
33983 _ACEOF
33984
33985     fi
33986 fi
33987
33988 case "$DB_STYLE" in
33989     db) DB_EXT=.db;;
33990     gdbm) DB_EXT='""';;
33991     dbm | ndbm) DB_EXT=".dir .pag";;
33992     text) DB_EXT='""';;
33993     *) DB_EXT=;;
33994 esac
33995
33996
33997 echo "$as_me:$LINENO: checking whether _POSIX2_RE_DUP_MAX is defined" >&5
33998 echo $ECHO_N "checking whether _POSIX2_RE_DUP_MAX is defined... $ECHO_C" >&6
33999 if test "${amanda_cv_have__posix2_re_dup_max+set}" = set; then
34000   echo $ECHO_N "(cached) $ECHO_C" >&6
34001 else
34002   cat >conftest.$ac_ext <<_ACEOF
34003 /* confdefs.h.  */
34004 _ACEOF
34005 cat confdefs.h >>conftest.$ac_ext
34006 cat >>conftest.$ac_ext <<_ACEOF
34007 /* end confdefs.h.  */
34008
34009 #include <limits.h>
34010 #ifdef _POSIX2_RE_DUP_MAX
34011   yes
34012 #endif
34013
34014 _ACEOF
34015 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34016   $EGREP "yes" >/dev/null 2>&1; then
34017   amanda_cv_have__posix2_re_dup_max=yes
34018 else
34019   amanda_cv_have__posix2_re_dup_max=no
34020 fi
34021 rm -f conftest*
34022
34023 fi
34024 echo "$as_me:$LINENO: result: $amanda_cv_have__posix2_re_dup_max" >&5
34025 echo "${ECHO_T}$amanda_cv_have__posix2_re_dup_max" >&6
34026 if test "x$amanda_cv_have__posix2_re_dup_max" = xyes; then
34027
34028 cat >>confdefs.h <<\_ACEOF
34029 #define HAVE__POSIX2_RE_DUP_MAX 1
34030 _ACEOF
34031
34032 fi
34033
34034 echo "$as_me:$LINENO: checking whether CHAR_MIN is defined" >&5
34035 echo $ECHO_N "checking whether CHAR_MIN is defined... $ECHO_C" >&6
34036 if test "${amanda_cv_have_char_min+set}" = set; then
34037   echo $ECHO_N "(cached) $ECHO_C" >&6
34038 else
34039   cat >conftest.$ac_ext <<_ACEOF
34040 /* confdefs.h.  */
34041 _ACEOF
34042 cat confdefs.h >>conftest.$ac_ext
34043 cat >>conftest.$ac_ext <<_ACEOF
34044 /* end confdefs.h.  */
34045
34046 #include <limits.h>
34047 #ifdef CHAR_MIN
34048   yes
34049 #endif
34050
34051 _ACEOF
34052 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34053   $EGREP "yes" >/dev/null 2>&1; then
34054   amanda_cv_have_char_min=yes
34055 else
34056   amanda_cv_have_char_min=no
34057 fi
34058 rm -f conftest*
34059
34060 fi
34061 echo "$as_me:$LINENO: result: $amanda_cv_have_char_min" >&5
34062 echo "${ECHO_T}$amanda_cv_have_char_min" >&6
34063 if test "x$amanda_cv_have_char_min" = xyes; then
34064
34065 cat >>confdefs.h <<\_ACEOF
34066 #define HAVE_CHAR_MIN 1
34067 _ACEOF
34068
34069 fi
34070
34071 echo "$as_me:$LINENO: checking whether CHAR_MAX is defined" >&5
34072 echo $ECHO_N "checking whether CHAR_MAX is defined... $ECHO_C" >&6
34073 if test "${amanda_cv_have_char_max+set}" = set; then
34074   echo $ECHO_N "(cached) $ECHO_C" >&6
34075 else
34076   cat >conftest.$ac_ext <<_ACEOF
34077 /* confdefs.h.  */
34078 _ACEOF
34079 cat confdefs.h >>conftest.$ac_ext
34080 cat >>conftest.$ac_ext <<_ACEOF
34081 /* end confdefs.h.  */
34082
34083 #include <limits.h>
34084 #ifdef CHAR_MAX
34085   yes
34086 #endif
34087
34088 _ACEOF
34089 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34090   $EGREP "yes" >/dev/null 2>&1; then
34091   amanda_cv_have_char_max=yes
34092 else
34093   amanda_cv_have_char_max=no
34094 fi
34095 rm -f conftest*
34096
34097 fi
34098 echo "$as_me:$LINENO: result: $amanda_cv_have_char_max" >&5
34099 echo "${ECHO_T}$amanda_cv_have_char_max" >&6
34100 if test "x$amanda_cv_have_char_max" = xyes; then
34101
34102 cat >>confdefs.h <<\_ACEOF
34103 #define HAVE_CHAR_MAX 1
34104 _ACEOF
34105
34106 fi
34107
34108 echo "$as_me:$LINENO: checking whether CHAR_BIT is defined" >&5
34109 echo $ECHO_N "checking whether CHAR_BIT is defined... $ECHO_C" >&6
34110 if test "${amanda_cv_have_char_bit+set}" = set; then
34111   echo $ECHO_N "(cached) $ECHO_C" >&6
34112 else
34113   cat >conftest.$ac_ext <<_ACEOF
34114 /* confdefs.h.  */
34115 _ACEOF
34116 cat confdefs.h >>conftest.$ac_ext
34117 cat >>conftest.$ac_ext <<_ACEOF
34118 /* end confdefs.h.  */
34119
34120 #include <limits.h>
34121 #ifdef CHAR_BIT
34122   yes
34123 #endif
34124
34125 _ACEOF
34126 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34127   $EGREP "yes" >/dev/null 2>&1; then
34128   amanda_cv_have_char_bit=yes
34129 else
34130   amanda_cv_have_char_bit=no
34131 fi
34132 rm -f conftest*
34133
34134 fi
34135 echo "$as_me:$LINENO: result: $amanda_cv_have_char_bit" >&5
34136 echo "${ECHO_T}$amanda_cv_have_char_bit" >&6
34137 if test "x$amanda_cv_have_char_bit" = xyes; then
34138
34139 cat >>confdefs.h <<\_ACEOF
34140 #define HAVE_CHAR_BIT 1
34141 _ACEOF
34142
34143 fi
34144
34145
34146 ice_have_accept=no
34147
34148 for ac_func in accept
34149 do
34150 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34151 echo "$as_me:$LINENO: checking for $ac_func" >&5
34152 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34153 if eval "test \"\${$as_ac_var+set}\" = set"; then
34154   echo $ECHO_N "(cached) $ECHO_C" >&6
34155 else
34156   cat >conftest.$ac_ext <<_ACEOF
34157 /* confdefs.h.  */
34158 _ACEOF
34159 cat confdefs.h >>conftest.$ac_ext
34160 cat >>conftest.$ac_ext <<_ACEOF
34161 /* end confdefs.h.  */
34162 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34163    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34164 #define $ac_func innocuous_$ac_func
34165
34166 /* System header to define __stub macros and hopefully few prototypes,
34167     which can conflict with char $ac_func (); below.
34168     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34169     <limits.h> exists even on freestanding compilers.  */
34170
34171 #ifdef __STDC__
34172 # include <limits.h>
34173 #else
34174 # include <assert.h>
34175 #endif
34176
34177 #undef $ac_func
34178
34179 /* Override any gcc2 internal prototype to avoid an error.  */
34180 #ifdef __cplusplus
34181 extern "C"
34182 {
34183 #endif
34184 /* We use char because int might match the return type of a gcc2
34185    builtin and then its argument prototype would still apply.  */
34186 char $ac_func ();
34187 /* The GNU C library defines this for functions which it implements
34188     to always fail with ENOSYS.  Some functions are actually named
34189     something starting with __ and the normal name is an alias.  */
34190 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34191 choke me
34192 #else
34193 char (*f) () = $ac_func;
34194 #endif
34195 #ifdef __cplusplus
34196 }
34197 #endif
34198
34199 int
34200 main ()
34201 {
34202 return f != $ac_func;
34203   ;
34204   return 0;
34205 }
34206 _ACEOF
34207 rm -f conftest.$ac_objext conftest$ac_exeext
34208 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34209   (eval $ac_link) 2>conftest.er1
34210   ac_status=$?
34211   grep -v '^ *+' conftest.er1 >conftest.err
34212   rm -f conftest.er1
34213   cat conftest.err >&5
34214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34215   (exit $ac_status); } &&
34216          { ac_try='test -z "$ac_c_werror_flag"
34217                          || test ! -s conftest.err'
34218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34219   (eval $ac_try) 2>&5
34220   ac_status=$?
34221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34222   (exit $ac_status); }; } &&
34223          { ac_try='test -s conftest$ac_exeext'
34224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34225   (eval $ac_try) 2>&5
34226   ac_status=$?
34227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34228   (exit $ac_status); }; }; then
34229   eval "$as_ac_var=yes"
34230 else
34231   echo "$as_me: failed program was:" >&5
34232 sed 's/^/| /' conftest.$ac_ext >&5
34233
34234 eval "$as_ac_var=no"
34235 fi
34236 rm -f conftest.err conftest.$ac_objext \
34237       conftest$ac_exeext conftest.$ac_ext
34238 fi
34239 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34240 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34241 if test `eval echo '${'$as_ac_var'}'` = yes; then
34242   cat >>confdefs.h <<_ACEOF
34243 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34244 _ACEOF
34245  ice_have_accept=yes
34246 fi
34247 done
34248
34249 if test "${ice_have_accept}" = yes; then
34250 echo "$as_me:$LINENO: checking for accept declaration in sys/types.h sys/socket.h" >&5
34251 echo $ECHO_N "checking for accept declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
34252 if test "${ice_cv_have_accept_decl+set}" = set; then
34253   echo $ECHO_N "(cached) $ECHO_C" >&6
34254 else
34255
34256 ice_cv_have_accept_decl=no
34257 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
34258 ice_re_word='(^|[^a-zA-Z0-9_])'
34259 for header in sys/types.h sys/socket.h; do
34260 # Check for ordinary declaration
34261 cat >conftest.$ac_ext <<_ACEOF
34262 /* confdefs.h.  */
34263 _ACEOF
34264 cat confdefs.h >>conftest.$ac_ext
34265 cat >>conftest.$ac_ext <<_ACEOF
34266 /* end confdefs.h.  */
34267 #include <$header>
34268
34269 _ACEOF
34270 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34271   $EGREP "${ice_re_word}accept[         ]*\(" >/dev/null 2>&1; then
34272   ice_cv_have_accept_decl=yes
34273 fi
34274 rm -f conftest*
34275
34276 if test "$ice_cv_have_accept_decl" = yes; then
34277         break
34278 fi
34279 # Check for "fixed" declaration like "getpid _PARAMS((int))"
34280 cat >conftest.$ac_ext <<_ACEOF
34281 /* confdefs.h.  */
34282 _ACEOF
34283 cat confdefs.h >>conftest.$ac_ext
34284 cat >>conftest.$ac_ext <<_ACEOF
34285 /* end confdefs.h.  */
34286 #include <$header>
34287
34288 _ACEOF
34289 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34290   $EGREP "${ice_re_word}accept[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
34291   ice_cv_have_accept_decl=yes
34292 fi
34293 rm -f conftest*
34294
34295 if test "$ice_cv_have_accept_decl" = yes; then
34296         break
34297 fi
34298 done
34299
34300 fi
34301
34302 echo "$as_me:$LINENO: result: $ice_cv_have_accept_decl" >&5
34303 echo "${ECHO_T}$ice_cv_have_accept_decl" >&6
34304 if test "$ice_cv_have_accept_decl" = yes; then
34305
34306 cat >>confdefs.h <<_ACEOF
34307 #define HAVE_ACCEPT_DECL 1
34308 _ACEOF
34309
34310 fi
34311 fi
34312
34313 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
34314 # for constant arguments.  Useless!
34315 echo "$as_me:$LINENO: checking for working alloca.h" >&5
34316 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
34317 if test "${ac_cv_working_alloca_h+set}" = set; then
34318   echo $ECHO_N "(cached) $ECHO_C" >&6
34319 else
34320   cat >conftest.$ac_ext <<_ACEOF
34321 /* confdefs.h.  */
34322 _ACEOF
34323 cat confdefs.h >>conftest.$ac_ext
34324 cat >>conftest.$ac_ext <<_ACEOF
34325 /* end confdefs.h.  */
34326 #include <alloca.h>
34327 int
34328 main ()
34329 {
34330 char *p = (char *) alloca (2 * sizeof (int));
34331   ;
34332   return 0;
34333 }
34334 _ACEOF
34335 rm -f conftest.$ac_objext conftest$ac_exeext
34336 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34337   (eval $ac_link) 2>conftest.er1
34338   ac_status=$?
34339   grep -v '^ *+' conftest.er1 >conftest.err
34340   rm -f conftest.er1
34341   cat conftest.err >&5
34342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34343   (exit $ac_status); } &&
34344          { ac_try='test -z "$ac_c_werror_flag"
34345                          || test ! -s conftest.err'
34346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34347   (eval $ac_try) 2>&5
34348   ac_status=$?
34349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34350   (exit $ac_status); }; } &&
34351          { ac_try='test -s conftest$ac_exeext'
34352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34353   (eval $ac_try) 2>&5
34354   ac_status=$?
34355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34356   (exit $ac_status); }; }; then
34357   ac_cv_working_alloca_h=yes
34358 else
34359   echo "$as_me: failed program was:" >&5
34360 sed 's/^/| /' conftest.$ac_ext >&5
34361
34362 ac_cv_working_alloca_h=no
34363 fi
34364 rm -f conftest.err conftest.$ac_objext \
34365       conftest$ac_exeext conftest.$ac_ext
34366 fi
34367 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
34368 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
34369 if test $ac_cv_working_alloca_h = yes; then
34370
34371 cat >>confdefs.h <<\_ACEOF
34372 #define HAVE_ALLOCA_H 1
34373 _ACEOF
34374
34375 fi
34376
34377 echo "$as_me:$LINENO: checking for alloca" >&5
34378 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
34379 if test "${ac_cv_func_alloca_works+set}" = set; then
34380   echo $ECHO_N "(cached) $ECHO_C" >&6
34381 else
34382   cat >conftest.$ac_ext <<_ACEOF
34383 /* confdefs.h.  */
34384 _ACEOF
34385 cat confdefs.h >>conftest.$ac_ext
34386 cat >>conftest.$ac_ext <<_ACEOF
34387 /* end confdefs.h.  */
34388 #ifdef __GNUC__
34389 # define alloca __builtin_alloca
34390 #else
34391 # ifdef _MSC_VER
34392 #  include <malloc.h>
34393 #  define alloca _alloca
34394 # else
34395 #  if HAVE_ALLOCA_H
34396 #   include <alloca.h>
34397 #  else
34398 #   ifdef _AIX
34399  #pragma alloca
34400 #   else
34401 #    ifndef alloca /* predefined by HP cc +Olibcalls */
34402 char *alloca ();
34403 #    endif
34404 #   endif
34405 #  endif
34406 # endif
34407 #endif
34408
34409 int
34410 main ()
34411 {
34412 char *p = (char *) alloca (1);
34413   ;
34414   return 0;
34415 }
34416 _ACEOF
34417 rm -f conftest.$ac_objext conftest$ac_exeext
34418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34419   (eval $ac_link) 2>conftest.er1
34420   ac_status=$?
34421   grep -v '^ *+' conftest.er1 >conftest.err
34422   rm -f conftest.er1
34423   cat conftest.err >&5
34424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34425   (exit $ac_status); } &&
34426          { ac_try='test -z "$ac_c_werror_flag"
34427                          || test ! -s conftest.err'
34428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34429   (eval $ac_try) 2>&5
34430   ac_status=$?
34431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34432   (exit $ac_status); }; } &&
34433          { ac_try='test -s conftest$ac_exeext'
34434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34435   (eval $ac_try) 2>&5
34436   ac_status=$?
34437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34438   (exit $ac_status); }; }; then
34439   ac_cv_func_alloca_works=yes
34440 else
34441   echo "$as_me: failed program was:" >&5
34442 sed 's/^/| /' conftest.$ac_ext >&5
34443
34444 ac_cv_func_alloca_works=no
34445 fi
34446 rm -f conftest.err conftest.$ac_objext \
34447       conftest$ac_exeext conftest.$ac_ext
34448 fi
34449 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
34450 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
34451
34452 if test $ac_cv_func_alloca_works = yes; then
34453
34454 cat >>confdefs.h <<\_ACEOF
34455 #define HAVE_ALLOCA 1
34456 _ACEOF
34457
34458 else
34459   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
34460 # that cause trouble.  Some versions do not even contain alloca or
34461 # contain a buggy version.  If you still want to use their alloca,
34462 # use ar to extract alloca.o from them instead of compiling alloca.c.
34463
34464 ALLOCA=alloca.$ac_objext
34465
34466 cat >>confdefs.h <<\_ACEOF
34467 #define C_ALLOCA 1
34468 _ACEOF
34469
34470
34471 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
34472 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
34473 if test "${ac_cv_os_cray+set}" = set; then
34474   echo $ECHO_N "(cached) $ECHO_C" >&6
34475 else
34476   cat >conftest.$ac_ext <<_ACEOF
34477 /* confdefs.h.  */
34478 _ACEOF
34479 cat confdefs.h >>conftest.$ac_ext
34480 cat >>conftest.$ac_ext <<_ACEOF
34481 /* end confdefs.h.  */
34482 #if defined(CRAY) && ! defined(CRAY2)
34483 webecray
34484 #else
34485 wenotbecray
34486 #endif
34487
34488 _ACEOF
34489 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34490   $EGREP "webecray" >/dev/null 2>&1; then
34491   ac_cv_os_cray=yes
34492 else
34493   ac_cv_os_cray=no
34494 fi
34495 rm -f conftest*
34496
34497 fi
34498 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
34499 echo "${ECHO_T}$ac_cv_os_cray" >&6
34500 if test $ac_cv_os_cray = yes; then
34501   for ac_func in _getb67 GETB67 getb67; do
34502     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34503 echo "$as_me:$LINENO: checking for $ac_func" >&5
34504 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34505 if eval "test \"\${$as_ac_var+set}\" = set"; then
34506   echo $ECHO_N "(cached) $ECHO_C" >&6
34507 else
34508   cat >conftest.$ac_ext <<_ACEOF
34509 /* confdefs.h.  */
34510 _ACEOF
34511 cat confdefs.h >>conftest.$ac_ext
34512 cat >>conftest.$ac_ext <<_ACEOF
34513 /* end confdefs.h.  */
34514 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34515    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34516 #define $ac_func innocuous_$ac_func
34517
34518 /* System header to define __stub macros and hopefully few prototypes,
34519     which can conflict with char $ac_func (); below.
34520     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34521     <limits.h> exists even on freestanding compilers.  */
34522
34523 #ifdef __STDC__
34524 # include <limits.h>
34525 #else
34526 # include <assert.h>
34527 #endif
34528
34529 #undef $ac_func
34530
34531 /* Override any gcc2 internal prototype to avoid an error.  */
34532 #ifdef __cplusplus
34533 extern "C"
34534 {
34535 #endif
34536 /* We use char because int might match the return type of a gcc2
34537    builtin and then its argument prototype would still apply.  */
34538 char $ac_func ();
34539 /* The GNU C library defines this for functions which it implements
34540     to always fail with ENOSYS.  Some functions are actually named
34541     something starting with __ and the normal name is an alias.  */
34542 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34543 choke me
34544 #else
34545 char (*f) () = $ac_func;
34546 #endif
34547 #ifdef __cplusplus
34548 }
34549 #endif
34550
34551 int
34552 main ()
34553 {
34554 return f != $ac_func;
34555   ;
34556   return 0;
34557 }
34558 _ACEOF
34559 rm -f conftest.$ac_objext conftest$ac_exeext
34560 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34561   (eval $ac_link) 2>conftest.er1
34562   ac_status=$?
34563   grep -v '^ *+' conftest.er1 >conftest.err
34564   rm -f conftest.er1
34565   cat conftest.err >&5
34566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34567   (exit $ac_status); } &&
34568          { ac_try='test -z "$ac_c_werror_flag"
34569                          || test ! -s conftest.err'
34570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34571   (eval $ac_try) 2>&5
34572   ac_status=$?
34573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34574   (exit $ac_status); }; } &&
34575          { ac_try='test -s conftest$ac_exeext'
34576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34577   (eval $ac_try) 2>&5
34578   ac_status=$?
34579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34580   (exit $ac_status); }; }; then
34581   eval "$as_ac_var=yes"
34582 else
34583   echo "$as_me: failed program was:" >&5
34584 sed 's/^/| /' conftest.$ac_ext >&5
34585
34586 eval "$as_ac_var=no"
34587 fi
34588 rm -f conftest.err conftest.$ac_objext \
34589       conftest$ac_exeext conftest.$ac_ext
34590 fi
34591 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34592 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34593 if test `eval echo '${'$as_ac_var'}'` = yes; then
34594
34595 cat >>confdefs.h <<_ACEOF
34596 #define CRAY_STACKSEG_END $ac_func
34597 _ACEOF
34598
34599     break
34600 fi
34601
34602   done
34603 fi
34604
34605 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
34606 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
34607 if test "${ac_cv_c_stack_direction+set}" = set; then
34608   echo $ECHO_N "(cached) $ECHO_C" >&6
34609 else
34610   if test "$cross_compiling" = yes; then
34611   ac_cv_c_stack_direction=0
34612 else
34613   cat >conftest.$ac_ext <<_ACEOF
34614 /* confdefs.h.  */
34615 _ACEOF
34616 cat confdefs.h >>conftest.$ac_ext
34617 cat >>conftest.$ac_ext <<_ACEOF
34618 /* end confdefs.h.  */
34619 int
34620 find_stack_direction ()
34621 {
34622   static char *addr = 0;
34623   auto char dummy;
34624   if (addr == 0)
34625     {
34626       addr = &dummy;
34627       return find_stack_direction ();
34628     }
34629   else
34630     return (&dummy > addr) ? 1 : -1;
34631 }
34632
34633 int
34634 main ()
34635 {
34636   exit (find_stack_direction () < 0);
34637 }
34638 _ACEOF
34639 rm -f conftest$ac_exeext
34640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34641   (eval $ac_link) 2>&5
34642   ac_status=$?
34643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34644   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34646   (eval $ac_try) 2>&5
34647   ac_status=$?
34648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34649   (exit $ac_status); }; }; then
34650   ac_cv_c_stack_direction=1
34651 else
34652   echo "$as_me: program exited with status $ac_status" >&5
34653 echo "$as_me: failed program was:" >&5
34654 sed 's/^/| /' conftest.$ac_ext >&5
34655
34656 ( exit $ac_status )
34657 ac_cv_c_stack_direction=-1
34658 fi
34659 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34660 fi
34661 fi
34662 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
34663 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
34664
34665 cat >>confdefs.h <<_ACEOF
34666 #define STACK_DIRECTION $ac_cv_c_stack_direction
34667 _ACEOF
34668
34669
34670 fi
34671
34672
34673 for ac_func in atexit
34674 do
34675 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34676 echo "$as_me:$LINENO: checking for $ac_func" >&5
34677 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34678 if eval "test \"\${$as_ac_var+set}\" = set"; then
34679   echo $ECHO_N "(cached) $ECHO_C" >&6
34680 else
34681   cat >conftest.$ac_ext <<_ACEOF
34682 /* confdefs.h.  */
34683 _ACEOF
34684 cat confdefs.h >>conftest.$ac_ext
34685 cat >>conftest.$ac_ext <<_ACEOF
34686 /* end confdefs.h.  */
34687 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34688    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34689 #define $ac_func innocuous_$ac_func
34690
34691 /* System header to define __stub macros and hopefully few prototypes,
34692     which can conflict with char $ac_func (); below.
34693     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34694     <limits.h> exists even on freestanding compilers.  */
34695
34696 #ifdef __STDC__
34697 # include <limits.h>
34698 #else
34699 # include <assert.h>
34700 #endif
34701
34702 #undef $ac_func
34703
34704 /* Override any gcc2 internal prototype to avoid an error.  */
34705 #ifdef __cplusplus
34706 extern "C"
34707 {
34708 #endif
34709 /* We use char because int might match the return type of a gcc2
34710    builtin and then its argument prototype would still apply.  */
34711 char $ac_func ();
34712 /* The GNU C library defines this for functions which it implements
34713     to always fail with ENOSYS.  Some functions are actually named
34714     something starting with __ and the normal name is an alias.  */
34715 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34716 choke me
34717 #else
34718 char (*f) () = $ac_func;
34719 #endif
34720 #ifdef __cplusplus
34721 }
34722 #endif
34723
34724 int
34725 main ()
34726 {
34727 return f != $ac_func;
34728   ;
34729   return 0;
34730 }
34731 _ACEOF
34732 rm -f conftest.$ac_objext conftest$ac_exeext
34733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34734   (eval $ac_link) 2>conftest.er1
34735   ac_status=$?
34736   grep -v '^ *+' conftest.er1 >conftest.err
34737   rm -f conftest.er1
34738   cat conftest.err >&5
34739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34740   (exit $ac_status); } &&
34741          { ac_try='test -z "$ac_c_werror_flag"
34742                          || test ! -s conftest.err'
34743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34744   (eval $ac_try) 2>&5
34745   ac_status=$?
34746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34747   (exit $ac_status); }; } &&
34748          { ac_try='test -s conftest$ac_exeext'
34749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34750   (eval $ac_try) 2>&5
34751   ac_status=$?
34752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34753   (exit $ac_status); }; }; then
34754   eval "$as_ac_var=yes"
34755 else
34756   echo "$as_me: failed program was:" >&5
34757 sed 's/^/| /' conftest.$ac_ext >&5
34758
34759 eval "$as_ac_var=no"
34760 fi
34761 rm -f conftest.err conftest.$ac_objext \
34762       conftest$ac_exeext conftest.$ac_ext
34763 fi
34764 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34765 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34766 if test `eval echo '${'$as_ac_var'}'` = yes; then
34767   cat >>confdefs.h <<_ACEOF
34768 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34769 _ACEOF
34770
34771 fi
34772 done
34773
34774
34775 ice_have_atof=no
34776
34777 for ac_func in atof
34778 do
34779 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34780 echo "$as_me:$LINENO: checking for $ac_func" >&5
34781 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34782 if eval "test \"\${$as_ac_var+set}\" = set"; then
34783   echo $ECHO_N "(cached) $ECHO_C" >&6
34784 else
34785   cat >conftest.$ac_ext <<_ACEOF
34786 /* confdefs.h.  */
34787 _ACEOF
34788 cat confdefs.h >>conftest.$ac_ext
34789 cat >>conftest.$ac_ext <<_ACEOF
34790 /* end confdefs.h.  */
34791 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34792    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34793 #define $ac_func innocuous_$ac_func
34794
34795 /* System header to define __stub macros and hopefully few prototypes,
34796     which can conflict with char $ac_func (); below.
34797     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34798     <limits.h> exists even on freestanding compilers.  */
34799
34800 #ifdef __STDC__
34801 # include <limits.h>
34802 #else
34803 # include <assert.h>
34804 #endif
34805
34806 #undef $ac_func
34807
34808 /* Override any gcc2 internal prototype to avoid an error.  */
34809 #ifdef __cplusplus
34810 extern "C"
34811 {
34812 #endif
34813 /* We use char because int might match the return type of a gcc2
34814    builtin and then its argument prototype would still apply.  */
34815 char $ac_func ();
34816 /* The GNU C library defines this for functions which it implements
34817     to always fail with ENOSYS.  Some functions are actually named
34818     something starting with __ and the normal name is an alias.  */
34819 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34820 choke me
34821 #else
34822 char (*f) () = $ac_func;
34823 #endif
34824 #ifdef __cplusplus
34825 }
34826 #endif
34827
34828 int
34829 main ()
34830 {
34831 return f != $ac_func;
34832   ;
34833   return 0;
34834 }
34835 _ACEOF
34836 rm -f conftest.$ac_objext conftest$ac_exeext
34837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34838   (eval $ac_link) 2>conftest.er1
34839   ac_status=$?
34840   grep -v '^ *+' conftest.er1 >conftest.err
34841   rm -f conftest.er1
34842   cat conftest.err >&5
34843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34844   (exit $ac_status); } &&
34845          { ac_try='test -z "$ac_c_werror_flag"
34846                          || test ! -s conftest.err'
34847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34848   (eval $ac_try) 2>&5
34849   ac_status=$?
34850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34851   (exit $ac_status); }; } &&
34852          { ac_try='test -s conftest$ac_exeext'
34853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34854   (eval $ac_try) 2>&5
34855   ac_status=$?
34856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34857   (exit $ac_status); }; }; then
34858   eval "$as_ac_var=yes"
34859 else
34860   echo "$as_me: failed program was:" >&5
34861 sed 's/^/| /' conftest.$ac_ext >&5
34862
34863 eval "$as_ac_var=no"
34864 fi
34865 rm -f conftest.err conftest.$ac_objext \
34866       conftest$ac_exeext conftest.$ac_ext
34867 fi
34868 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34869 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34870 if test `eval echo '${'$as_ac_var'}'` = yes; then
34871   cat >>confdefs.h <<_ACEOF
34872 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34873 _ACEOF
34874  ice_have_atof=yes
34875 fi
34876 done
34877
34878 if test "${ice_have_atof}" = yes; then
34879 echo "$as_me:$LINENO: checking for atof declaration in stdlib.h" >&5
34880 echo $ECHO_N "checking for atof declaration in stdlib.h... $ECHO_C" >&6
34881 if test "${ice_cv_have_atof_decl+set}" = set; then
34882   echo $ECHO_N "(cached) $ECHO_C" >&6
34883 else
34884
34885 ice_cv_have_atof_decl=no
34886 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
34887 ice_re_word='(^|[^a-zA-Z0-9_])'
34888 for header in stdlib.h; do
34889 # Check for ordinary declaration
34890 cat >conftest.$ac_ext <<_ACEOF
34891 /* confdefs.h.  */
34892 _ACEOF
34893 cat confdefs.h >>conftest.$ac_ext
34894 cat >>conftest.$ac_ext <<_ACEOF
34895 /* end confdefs.h.  */
34896 #include <$header>
34897
34898 _ACEOF
34899 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34900   $EGREP "${ice_re_word}atof[   ]*\(" >/dev/null 2>&1; then
34901   ice_cv_have_atof_decl=yes
34902 fi
34903 rm -f conftest*
34904
34905 if test "$ice_cv_have_atof_decl" = yes; then
34906         break
34907 fi
34908 # Check for "fixed" declaration like "getpid _PARAMS((int))"
34909 cat >conftest.$ac_ext <<_ACEOF
34910 /* confdefs.h.  */
34911 _ACEOF
34912 cat confdefs.h >>conftest.$ac_ext
34913 cat >>conftest.$ac_ext <<_ACEOF
34914 /* end confdefs.h.  */
34915 #include <$header>
34916
34917 _ACEOF
34918 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34919   $EGREP "${ice_re_word}atof[   ]*$ice_re_params\(\(" >/dev/null 2>&1; then
34920   ice_cv_have_atof_decl=yes
34921 fi
34922 rm -f conftest*
34923
34924 if test "$ice_cv_have_atof_decl" = yes; then
34925         break
34926 fi
34927 done
34928
34929 fi
34930
34931 echo "$as_me:$LINENO: result: $ice_cv_have_atof_decl" >&5
34932 echo "${ECHO_T}$ice_cv_have_atof_decl" >&6
34933 if test "$ice_cv_have_atof_decl" = yes; then
34934
34935 cat >>confdefs.h <<_ACEOF
34936 #define HAVE_ATOF_DECL 1
34937 _ACEOF
34938
34939 fi
34940 fi
34941
34942
34943 for ac_func in basename
34944 do
34945 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34946 echo "$as_me:$LINENO: checking for $ac_func" >&5
34947 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34948 if eval "test \"\${$as_ac_var+set}\" = set"; then
34949   echo $ECHO_N "(cached) $ECHO_C" >&6
34950 else
34951   cat >conftest.$ac_ext <<_ACEOF
34952 /* confdefs.h.  */
34953 _ACEOF
34954 cat confdefs.h >>conftest.$ac_ext
34955 cat >>conftest.$ac_ext <<_ACEOF
34956 /* end confdefs.h.  */
34957 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34958    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34959 #define $ac_func innocuous_$ac_func
34960
34961 /* System header to define __stub macros and hopefully few prototypes,
34962     which can conflict with char $ac_func (); below.
34963     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34964     <limits.h> exists even on freestanding compilers.  */
34965
34966 #ifdef __STDC__
34967 # include <limits.h>
34968 #else
34969 # include <assert.h>
34970 #endif
34971
34972 #undef $ac_func
34973
34974 /* Override any gcc2 internal prototype to avoid an error.  */
34975 #ifdef __cplusplus
34976 extern "C"
34977 {
34978 #endif
34979 /* We use char because int might match the return type of a gcc2
34980    builtin and then its argument prototype would still apply.  */
34981 char $ac_func ();
34982 /* The GNU C library defines this for functions which it implements
34983     to always fail with ENOSYS.  Some functions are actually named
34984     something starting with __ and the normal name is an alias.  */
34985 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34986 choke me
34987 #else
34988 char (*f) () = $ac_func;
34989 #endif
34990 #ifdef __cplusplus
34991 }
34992 #endif
34993
34994 int
34995 main ()
34996 {
34997 return f != $ac_func;
34998   ;
34999   return 0;
35000 }
35001 _ACEOF
35002 rm -f conftest.$ac_objext conftest$ac_exeext
35003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35004   (eval $ac_link) 2>conftest.er1
35005   ac_status=$?
35006   grep -v '^ *+' conftest.er1 >conftest.err
35007   rm -f conftest.er1
35008   cat conftest.err >&5
35009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35010   (exit $ac_status); } &&
35011          { ac_try='test -z "$ac_c_werror_flag"
35012                          || test ! -s conftest.err'
35013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35014   (eval $ac_try) 2>&5
35015   ac_status=$?
35016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35017   (exit $ac_status); }; } &&
35018          { ac_try='test -s conftest$ac_exeext'
35019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35020   (eval $ac_try) 2>&5
35021   ac_status=$?
35022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35023   (exit $ac_status); }; }; then
35024   eval "$as_ac_var=yes"
35025 else
35026   echo "$as_me: failed program was:" >&5
35027 sed 's/^/| /' conftest.$ac_ext >&5
35028
35029 eval "$as_ac_var=no"
35030 fi
35031 rm -f conftest.err conftest.$ac_objext \
35032       conftest$ac_exeext conftest.$ac_ext
35033 fi
35034 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35035 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35036 if test `eval echo '${'$as_ac_var'}'` = yes; then
35037   cat >>confdefs.h <<_ACEOF
35038 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35039 _ACEOF
35040
35041 fi
35042 done
35043
35044
35045 ice_have_bind=no
35046
35047 for ac_func in bind
35048 do
35049 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35050 echo "$as_me:$LINENO: checking for $ac_func" >&5
35051 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35052 if eval "test \"\${$as_ac_var+set}\" = set"; then
35053   echo $ECHO_N "(cached) $ECHO_C" >&6
35054 else
35055   cat >conftest.$ac_ext <<_ACEOF
35056 /* confdefs.h.  */
35057 _ACEOF
35058 cat confdefs.h >>conftest.$ac_ext
35059 cat >>conftest.$ac_ext <<_ACEOF
35060 /* end confdefs.h.  */
35061 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35062    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35063 #define $ac_func innocuous_$ac_func
35064
35065 /* System header to define __stub macros and hopefully few prototypes,
35066     which can conflict with char $ac_func (); below.
35067     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35068     <limits.h> exists even on freestanding compilers.  */
35069
35070 #ifdef __STDC__
35071 # include <limits.h>
35072 #else
35073 # include <assert.h>
35074 #endif
35075
35076 #undef $ac_func
35077
35078 /* Override any gcc2 internal prototype to avoid an error.  */
35079 #ifdef __cplusplus
35080 extern "C"
35081 {
35082 #endif
35083 /* We use char because int might match the return type of a gcc2
35084    builtin and then its argument prototype would still apply.  */
35085 char $ac_func ();
35086 /* The GNU C library defines this for functions which it implements
35087     to always fail with ENOSYS.  Some functions are actually named
35088     something starting with __ and the normal name is an alias.  */
35089 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35090 choke me
35091 #else
35092 char (*f) () = $ac_func;
35093 #endif
35094 #ifdef __cplusplus
35095 }
35096 #endif
35097
35098 int
35099 main ()
35100 {
35101 return f != $ac_func;
35102   ;
35103   return 0;
35104 }
35105 _ACEOF
35106 rm -f conftest.$ac_objext conftest$ac_exeext
35107 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35108   (eval $ac_link) 2>conftest.er1
35109   ac_status=$?
35110   grep -v '^ *+' conftest.er1 >conftest.err
35111   rm -f conftest.er1
35112   cat conftest.err >&5
35113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35114   (exit $ac_status); } &&
35115          { ac_try='test -z "$ac_c_werror_flag"
35116                          || test ! -s conftest.err'
35117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35118   (eval $ac_try) 2>&5
35119   ac_status=$?
35120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35121   (exit $ac_status); }; } &&
35122          { ac_try='test -s conftest$ac_exeext'
35123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35124   (eval $ac_try) 2>&5
35125   ac_status=$?
35126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35127   (exit $ac_status); }; }; then
35128   eval "$as_ac_var=yes"
35129 else
35130   echo "$as_me: failed program was:" >&5
35131 sed 's/^/| /' conftest.$ac_ext >&5
35132
35133 eval "$as_ac_var=no"
35134 fi
35135 rm -f conftest.err conftest.$ac_objext \
35136       conftest$ac_exeext conftest.$ac_ext
35137 fi
35138 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35139 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35140 if test `eval echo '${'$as_ac_var'}'` = yes; then
35141   cat >>confdefs.h <<_ACEOF
35142 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35143 _ACEOF
35144  ice_have_bind=yes
35145 fi
35146 done
35147
35148 if test "${ice_have_bind}" = yes; then
35149 echo "$as_me:$LINENO: checking for bind declaration in sys/types.h sys/socket.h" >&5
35150 echo $ECHO_N "checking for bind declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
35151 if test "${ice_cv_have_bind_decl+set}" = set; then
35152   echo $ECHO_N "(cached) $ECHO_C" >&6
35153 else
35154
35155 ice_cv_have_bind_decl=no
35156 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
35157 ice_re_word='(^|[^a-zA-Z0-9_])'
35158 for header in sys/types.h sys/socket.h; do
35159 # Check for ordinary declaration
35160 cat >conftest.$ac_ext <<_ACEOF
35161 /* confdefs.h.  */
35162 _ACEOF
35163 cat confdefs.h >>conftest.$ac_ext
35164 cat >>conftest.$ac_ext <<_ACEOF
35165 /* end confdefs.h.  */
35166 #include <$header>
35167
35168 _ACEOF
35169 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35170   $EGREP "${ice_re_word}bind[   ]*\(" >/dev/null 2>&1; then
35171   ice_cv_have_bind_decl=yes
35172 fi
35173 rm -f conftest*
35174
35175 if test "$ice_cv_have_bind_decl" = yes; then
35176         break
35177 fi
35178 # Check for "fixed" declaration like "getpid _PARAMS((int))"
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 #include <$header>
35186
35187 _ACEOF
35188 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35189   $EGREP "${ice_re_word}bind[   ]*$ice_re_params\(\(" >/dev/null 2>&1; then
35190   ice_cv_have_bind_decl=yes
35191 fi
35192 rm -f conftest*
35193
35194 if test "$ice_cv_have_bind_decl" = yes; then
35195         break
35196 fi
35197 done
35198
35199 fi
35200
35201 echo "$as_me:$LINENO: result: $ice_cv_have_bind_decl" >&5
35202 echo "${ECHO_T}$ice_cv_have_bind_decl" >&6
35203 if test "$ice_cv_have_bind_decl" = yes; then
35204
35205 cat >>confdefs.h <<_ACEOF
35206 #define HAVE_BIND_DECL 1
35207 _ACEOF
35208
35209 fi
35210 fi
35211
35212
35213 ice_have_bcopy=no
35214
35215 for ac_func in bcopy
35216 do
35217 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35218 echo "$as_me:$LINENO: checking for $ac_func" >&5
35219 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35220 if eval "test \"\${$as_ac_var+set}\" = set"; then
35221   echo $ECHO_N "(cached) $ECHO_C" >&6
35222 else
35223   cat >conftest.$ac_ext <<_ACEOF
35224 /* confdefs.h.  */
35225 _ACEOF
35226 cat confdefs.h >>conftest.$ac_ext
35227 cat >>conftest.$ac_ext <<_ACEOF
35228 /* end confdefs.h.  */
35229 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35230    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35231 #define $ac_func innocuous_$ac_func
35232
35233 /* System header to define __stub macros and hopefully few prototypes,
35234     which can conflict with char $ac_func (); below.
35235     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35236     <limits.h> exists even on freestanding compilers.  */
35237
35238 #ifdef __STDC__
35239 # include <limits.h>
35240 #else
35241 # include <assert.h>
35242 #endif
35243
35244 #undef $ac_func
35245
35246 /* Override any gcc2 internal prototype to avoid an error.  */
35247 #ifdef __cplusplus
35248 extern "C"
35249 {
35250 #endif
35251 /* We use char because int might match the return type of a gcc2
35252    builtin and then its argument prototype would still apply.  */
35253 char $ac_func ();
35254 /* The GNU C library defines this for functions which it implements
35255     to always fail with ENOSYS.  Some functions are actually named
35256     something starting with __ and the normal name is an alias.  */
35257 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35258 choke me
35259 #else
35260 char (*f) () = $ac_func;
35261 #endif
35262 #ifdef __cplusplus
35263 }
35264 #endif
35265
35266 int
35267 main ()
35268 {
35269 return f != $ac_func;
35270   ;
35271   return 0;
35272 }
35273 _ACEOF
35274 rm -f conftest.$ac_objext conftest$ac_exeext
35275 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35276   (eval $ac_link) 2>conftest.er1
35277   ac_status=$?
35278   grep -v '^ *+' conftest.er1 >conftest.err
35279   rm -f conftest.er1
35280   cat conftest.err >&5
35281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35282   (exit $ac_status); } &&
35283          { ac_try='test -z "$ac_c_werror_flag"
35284                          || test ! -s conftest.err'
35285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35286   (eval $ac_try) 2>&5
35287   ac_status=$?
35288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35289   (exit $ac_status); }; } &&
35290          { ac_try='test -s conftest$ac_exeext'
35291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35292   (eval $ac_try) 2>&5
35293   ac_status=$?
35294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35295   (exit $ac_status); }; }; then
35296   eval "$as_ac_var=yes"
35297 else
35298   echo "$as_me: failed program was:" >&5
35299 sed 's/^/| /' conftest.$ac_ext >&5
35300
35301 eval "$as_ac_var=no"
35302 fi
35303 rm -f conftest.err conftest.$ac_objext \
35304       conftest$ac_exeext conftest.$ac_ext
35305 fi
35306 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35307 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35308 if test `eval echo '${'$as_ac_var'}'` = yes; then
35309   cat >>confdefs.h <<_ACEOF
35310 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35311 _ACEOF
35312  ice_have_bcopy=yes
35313 fi
35314 done
35315
35316 if test "${ice_have_bcopy}" = yes; then
35317 echo "$as_me:$LINENO: checking for bcopy declaration in string.h strings.h stdlib.h" >&5
35318 echo $ECHO_N "checking for bcopy declaration in string.h strings.h stdlib.h... $ECHO_C" >&6
35319 if test "${ice_cv_have_bcopy_decl+set}" = set; then
35320   echo $ECHO_N "(cached) $ECHO_C" >&6
35321 else
35322
35323 ice_cv_have_bcopy_decl=no
35324 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
35325 ice_re_word='(^|[^a-zA-Z0-9_])'
35326 for header in string.h strings.h stdlib.h; do
35327 # Check for ordinary declaration
35328 cat >conftest.$ac_ext <<_ACEOF
35329 /* confdefs.h.  */
35330 _ACEOF
35331 cat confdefs.h >>conftest.$ac_ext
35332 cat >>conftest.$ac_ext <<_ACEOF
35333 /* end confdefs.h.  */
35334 #include <$header>
35335
35336 _ACEOF
35337 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35338   $EGREP "${ice_re_word}bcopy[  ]*\(" >/dev/null 2>&1; then
35339   ice_cv_have_bcopy_decl=yes
35340 fi
35341 rm -f conftest*
35342
35343 if test "$ice_cv_have_bcopy_decl" = yes; then
35344         break
35345 fi
35346 # Check for "fixed" declaration like "getpid _PARAMS((int))"
35347 cat >conftest.$ac_ext <<_ACEOF
35348 /* confdefs.h.  */
35349 _ACEOF
35350 cat confdefs.h >>conftest.$ac_ext
35351 cat >>conftest.$ac_ext <<_ACEOF
35352 /* end confdefs.h.  */
35353 #include <$header>
35354
35355 _ACEOF
35356 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35357   $EGREP "${ice_re_word}bcopy[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
35358   ice_cv_have_bcopy_decl=yes
35359 fi
35360 rm -f conftest*
35361
35362 if test "$ice_cv_have_bcopy_decl" = yes; then
35363         break
35364 fi
35365 done
35366
35367 fi
35368
35369 echo "$as_me:$LINENO: result: $ice_cv_have_bcopy_decl" >&5
35370 echo "${ECHO_T}$ice_cv_have_bcopy_decl" >&6
35371 if test "$ice_cv_have_bcopy_decl" = yes; then
35372
35373 cat >>confdefs.h <<_ACEOF
35374 #define HAVE_BCOPY_DECL 1
35375 _ACEOF
35376
35377 fi
35378 fi
35379
35380
35381 ice_have_bzero=no
35382
35383 for ac_func in bzero
35384 do
35385 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35386 echo "$as_me:$LINENO: checking for $ac_func" >&5
35387 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35388 if eval "test \"\${$as_ac_var+set}\" = set"; then
35389   echo $ECHO_N "(cached) $ECHO_C" >&6
35390 else
35391   cat >conftest.$ac_ext <<_ACEOF
35392 /* confdefs.h.  */
35393 _ACEOF
35394 cat confdefs.h >>conftest.$ac_ext
35395 cat >>conftest.$ac_ext <<_ACEOF
35396 /* end confdefs.h.  */
35397 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35398    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35399 #define $ac_func innocuous_$ac_func
35400
35401 /* System header to define __stub macros and hopefully few prototypes,
35402     which can conflict with char $ac_func (); below.
35403     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35404     <limits.h> exists even on freestanding compilers.  */
35405
35406 #ifdef __STDC__
35407 # include <limits.h>
35408 #else
35409 # include <assert.h>
35410 #endif
35411
35412 #undef $ac_func
35413
35414 /* Override any gcc2 internal prototype to avoid an error.  */
35415 #ifdef __cplusplus
35416 extern "C"
35417 {
35418 #endif
35419 /* We use char because int might match the return type of a gcc2
35420    builtin and then its argument prototype would still apply.  */
35421 char $ac_func ();
35422 /* The GNU C library defines this for functions which it implements
35423     to always fail with ENOSYS.  Some functions are actually named
35424     something starting with __ and the normal name is an alias.  */
35425 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35426 choke me
35427 #else
35428 char (*f) () = $ac_func;
35429 #endif
35430 #ifdef __cplusplus
35431 }
35432 #endif
35433
35434 int
35435 main ()
35436 {
35437 return f != $ac_func;
35438   ;
35439   return 0;
35440 }
35441 _ACEOF
35442 rm -f conftest.$ac_objext conftest$ac_exeext
35443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35444   (eval $ac_link) 2>conftest.er1
35445   ac_status=$?
35446   grep -v '^ *+' conftest.er1 >conftest.err
35447   rm -f conftest.er1
35448   cat conftest.err >&5
35449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35450   (exit $ac_status); } &&
35451          { ac_try='test -z "$ac_c_werror_flag"
35452                          || test ! -s conftest.err'
35453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35454   (eval $ac_try) 2>&5
35455   ac_status=$?
35456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35457   (exit $ac_status); }; } &&
35458          { ac_try='test -s conftest$ac_exeext'
35459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35460   (eval $ac_try) 2>&5
35461   ac_status=$?
35462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35463   (exit $ac_status); }; }; then
35464   eval "$as_ac_var=yes"
35465 else
35466   echo "$as_me: failed program was:" >&5
35467 sed 's/^/| /' conftest.$ac_ext >&5
35468
35469 eval "$as_ac_var=no"
35470 fi
35471 rm -f conftest.err conftest.$ac_objext \
35472       conftest$ac_exeext conftest.$ac_ext
35473 fi
35474 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35475 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35476 if test `eval echo '${'$as_ac_var'}'` = yes; then
35477   cat >>confdefs.h <<_ACEOF
35478 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35479 _ACEOF
35480  ice_have_bzero=yes
35481 fi
35482 done
35483
35484 if test "${ice_have_bzero}" = yes; then
35485 echo "$as_me:$LINENO: checking for bzero declaration in string.h strings.h stdlib.h" >&5
35486 echo $ECHO_N "checking for bzero declaration in string.h strings.h stdlib.h... $ECHO_C" >&6
35487 if test "${ice_cv_have_bzero_decl+set}" = set; then
35488   echo $ECHO_N "(cached) $ECHO_C" >&6
35489 else
35490
35491 ice_cv_have_bzero_decl=no
35492 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
35493 ice_re_word='(^|[^a-zA-Z0-9_])'
35494 for header in string.h strings.h stdlib.h; do
35495 # Check for ordinary declaration
35496 cat >conftest.$ac_ext <<_ACEOF
35497 /* confdefs.h.  */
35498 _ACEOF
35499 cat confdefs.h >>conftest.$ac_ext
35500 cat >>conftest.$ac_ext <<_ACEOF
35501 /* end confdefs.h.  */
35502 #include <$header>
35503
35504 _ACEOF
35505 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35506   $EGREP "${ice_re_word}bzero[  ]*\(" >/dev/null 2>&1; then
35507   ice_cv_have_bzero_decl=yes
35508 fi
35509 rm -f conftest*
35510
35511 if test "$ice_cv_have_bzero_decl" = yes; then
35512         break
35513 fi
35514 # Check for "fixed" declaration like "getpid _PARAMS((int))"
35515 cat >conftest.$ac_ext <<_ACEOF
35516 /* confdefs.h.  */
35517 _ACEOF
35518 cat confdefs.h >>conftest.$ac_ext
35519 cat >>conftest.$ac_ext <<_ACEOF
35520 /* end confdefs.h.  */
35521 #include <$header>
35522
35523 _ACEOF
35524 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35525   $EGREP "${ice_re_word}bzero[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
35526   ice_cv_have_bzero_decl=yes
35527 fi
35528 rm -f conftest*
35529
35530 if test "$ice_cv_have_bzero_decl" = yes; then
35531         break
35532 fi
35533 done
35534
35535 fi
35536
35537 echo "$as_me:$LINENO: result: $ice_cv_have_bzero_decl" >&5
35538 echo "${ECHO_T}$ice_cv_have_bzero_decl" >&6
35539 if test "$ice_cv_have_bzero_decl" = yes; then
35540
35541 cat >>confdefs.h <<_ACEOF
35542 #define HAVE_BZERO_DECL 1
35543 _ACEOF
35544
35545 fi
35546 fi
35547
35548 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
35549 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
35550 if test "${ac_cv_func_closedir_void+set}" = set; then
35551   echo $ECHO_N "(cached) $ECHO_C" >&6
35552 else
35553   if test "$cross_compiling" = yes; then
35554   ac_cv_func_closedir_void=yes
35555 else
35556   cat >conftest.$ac_ext <<_ACEOF
35557 /* confdefs.h.  */
35558 _ACEOF
35559 cat confdefs.h >>conftest.$ac_ext
35560 cat >>conftest.$ac_ext <<_ACEOF
35561 /* end confdefs.h.  */
35562 $ac_includes_default
35563 #include <$ac_header_dirent>
35564 #ifndef __cplusplus
35565 int closedir ();
35566 #endif
35567
35568 int
35569 main ()
35570 {
35571 exit (closedir (opendir (".")) != 0);
35572   ;
35573   return 0;
35574 }
35575 _ACEOF
35576 rm -f conftest$ac_exeext
35577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35578   (eval $ac_link) 2>&5
35579   ac_status=$?
35580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35581   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35583   (eval $ac_try) 2>&5
35584   ac_status=$?
35585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35586   (exit $ac_status); }; }; then
35587   ac_cv_func_closedir_void=no
35588 else
35589   echo "$as_me: program exited with status $ac_status" >&5
35590 echo "$as_me: failed program was:" >&5
35591 sed 's/^/| /' conftest.$ac_ext >&5
35592
35593 ( exit $ac_status )
35594 ac_cv_func_closedir_void=yes
35595 fi
35596 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35597 fi
35598 fi
35599 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
35600 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
35601 if test $ac_cv_func_closedir_void = yes; then
35602
35603 cat >>confdefs.h <<\_ACEOF
35604 #define CLOSEDIR_VOID 1
35605 _ACEOF
35606
35607 fi
35608
35609
35610 ice_have_closelog=no
35611
35612 for ac_func in closelog
35613 do
35614 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35615 echo "$as_me:$LINENO: checking for $ac_func" >&5
35616 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35617 if eval "test \"\${$as_ac_var+set}\" = set"; then
35618   echo $ECHO_N "(cached) $ECHO_C" >&6
35619 else
35620   cat >conftest.$ac_ext <<_ACEOF
35621 /* confdefs.h.  */
35622 _ACEOF
35623 cat confdefs.h >>conftest.$ac_ext
35624 cat >>conftest.$ac_ext <<_ACEOF
35625 /* end confdefs.h.  */
35626 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35627    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35628 #define $ac_func innocuous_$ac_func
35629
35630 /* System header to define __stub macros and hopefully few prototypes,
35631     which can conflict with char $ac_func (); below.
35632     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35633     <limits.h> exists even on freestanding compilers.  */
35634
35635 #ifdef __STDC__
35636 # include <limits.h>
35637 #else
35638 # include <assert.h>
35639 #endif
35640
35641 #undef $ac_func
35642
35643 /* Override any gcc2 internal prototype to avoid an error.  */
35644 #ifdef __cplusplus
35645 extern "C"
35646 {
35647 #endif
35648 /* We use char because int might match the return type of a gcc2
35649    builtin and then its argument prototype would still apply.  */
35650 char $ac_func ();
35651 /* The GNU C library defines this for functions which it implements
35652     to always fail with ENOSYS.  Some functions are actually named
35653     something starting with __ and the normal name is an alias.  */
35654 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35655 choke me
35656 #else
35657 char (*f) () = $ac_func;
35658 #endif
35659 #ifdef __cplusplus
35660 }
35661 #endif
35662
35663 int
35664 main ()
35665 {
35666 return f != $ac_func;
35667   ;
35668   return 0;
35669 }
35670 _ACEOF
35671 rm -f conftest.$ac_objext conftest$ac_exeext
35672 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35673   (eval $ac_link) 2>conftest.er1
35674   ac_status=$?
35675   grep -v '^ *+' conftest.er1 >conftest.err
35676   rm -f conftest.er1
35677   cat conftest.err >&5
35678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35679   (exit $ac_status); } &&
35680          { ac_try='test -z "$ac_c_werror_flag"
35681                          || test ! -s conftest.err'
35682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35683   (eval $ac_try) 2>&5
35684   ac_status=$?
35685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35686   (exit $ac_status); }; } &&
35687          { ac_try='test -s conftest$ac_exeext'
35688   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35689   (eval $ac_try) 2>&5
35690   ac_status=$?
35691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35692   (exit $ac_status); }; }; then
35693   eval "$as_ac_var=yes"
35694 else
35695   echo "$as_me: failed program was:" >&5
35696 sed 's/^/| /' conftest.$ac_ext >&5
35697
35698 eval "$as_ac_var=no"
35699 fi
35700 rm -f conftest.err conftest.$ac_objext \
35701       conftest$ac_exeext conftest.$ac_ext
35702 fi
35703 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35704 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35705 if test `eval echo '${'$as_ac_var'}'` = yes; then
35706   cat >>confdefs.h <<_ACEOF
35707 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35708 _ACEOF
35709  ice_have_closelog=yes
35710 fi
35711 done
35712
35713 if test "${ice_have_closelog}" = yes; then
35714 echo "$as_me:$LINENO: checking for closelog declaration in syslog.h" >&5
35715 echo $ECHO_N "checking for closelog declaration in syslog.h... $ECHO_C" >&6
35716 if test "${ice_cv_have_closelog_decl+set}" = set; then
35717   echo $ECHO_N "(cached) $ECHO_C" >&6
35718 else
35719
35720 ice_cv_have_closelog_decl=no
35721 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
35722 ice_re_word='(^|[^a-zA-Z0-9_])'
35723 for header in syslog.h; do
35724 # Check for ordinary declaration
35725 cat >conftest.$ac_ext <<_ACEOF
35726 /* confdefs.h.  */
35727 _ACEOF
35728 cat confdefs.h >>conftest.$ac_ext
35729 cat >>conftest.$ac_ext <<_ACEOF
35730 /* end confdefs.h.  */
35731 #include <$header>
35732
35733 _ACEOF
35734 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35735   $EGREP "${ice_re_word}closelog[       ]*\(" >/dev/null 2>&1; then
35736   ice_cv_have_closelog_decl=yes
35737 fi
35738 rm -f conftest*
35739
35740 if test "$ice_cv_have_closelog_decl" = yes; then
35741         break
35742 fi
35743 # Check for "fixed" declaration like "getpid _PARAMS((int))"
35744 cat >conftest.$ac_ext <<_ACEOF
35745 /* confdefs.h.  */
35746 _ACEOF
35747 cat confdefs.h >>conftest.$ac_ext
35748 cat >>conftest.$ac_ext <<_ACEOF
35749 /* end confdefs.h.  */
35750 #include <$header>
35751
35752 _ACEOF
35753 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35754   $EGREP "${ice_re_word}closelog[       ]*$ice_re_params\(\(" >/dev/null 2>&1; then
35755   ice_cv_have_closelog_decl=yes
35756 fi
35757 rm -f conftest*
35758
35759 if test "$ice_cv_have_closelog_decl" = yes; then
35760         break
35761 fi
35762 done
35763
35764 fi
35765
35766 echo "$as_me:$LINENO: result: $ice_cv_have_closelog_decl" >&5
35767 echo "${ECHO_T}$ice_cv_have_closelog_decl" >&6
35768 if test "$ice_cv_have_closelog_decl" = yes; then
35769
35770 cat >>confdefs.h <<_ACEOF
35771 #define HAVE_CLOSELOG_DECL 1
35772 _ACEOF
35773
35774 fi
35775 fi
35776
35777
35778 ice_have_connect=no
35779
35780 for ac_func in connect
35781 do
35782 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35783 echo "$as_me:$LINENO: checking for $ac_func" >&5
35784 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35785 if eval "test \"\${$as_ac_var+set}\" = set"; then
35786   echo $ECHO_N "(cached) $ECHO_C" >&6
35787 else
35788   cat >conftest.$ac_ext <<_ACEOF
35789 /* confdefs.h.  */
35790 _ACEOF
35791 cat confdefs.h >>conftest.$ac_ext
35792 cat >>conftest.$ac_ext <<_ACEOF
35793 /* end confdefs.h.  */
35794 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35795    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35796 #define $ac_func innocuous_$ac_func
35797
35798 /* System header to define __stub macros and hopefully few prototypes,
35799     which can conflict with char $ac_func (); below.
35800     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35801     <limits.h> exists even on freestanding compilers.  */
35802
35803 #ifdef __STDC__
35804 # include <limits.h>
35805 #else
35806 # include <assert.h>
35807 #endif
35808
35809 #undef $ac_func
35810
35811 /* Override any gcc2 internal prototype to avoid an error.  */
35812 #ifdef __cplusplus
35813 extern "C"
35814 {
35815 #endif
35816 /* We use char because int might match the return type of a gcc2
35817    builtin and then its argument prototype would still apply.  */
35818 char $ac_func ();
35819 /* The GNU C library defines this for functions which it implements
35820     to always fail with ENOSYS.  Some functions are actually named
35821     something starting with __ and the normal name is an alias.  */
35822 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35823 choke me
35824 #else
35825 char (*f) () = $ac_func;
35826 #endif
35827 #ifdef __cplusplus
35828 }
35829 #endif
35830
35831 int
35832 main ()
35833 {
35834 return f != $ac_func;
35835   ;
35836   return 0;
35837 }
35838 _ACEOF
35839 rm -f conftest.$ac_objext conftest$ac_exeext
35840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35841   (eval $ac_link) 2>conftest.er1
35842   ac_status=$?
35843   grep -v '^ *+' conftest.er1 >conftest.err
35844   rm -f conftest.er1
35845   cat conftest.err >&5
35846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35847   (exit $ac_status); } &&
35848          { ac_try='test -z "$ac_c_werror_flag"
35849                          || test ! -s conftest.err'
35850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35851   (eval $ac_try) 2>&5
35852   ac_status=$?
35853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35854   (exit $ac_status); }; } &&
35855          { ac_try='test -s conftest$ac_exeext'
35856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35857   (eval $ac_try) 2>&5
35858   ac_status=$?
35859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35860   (exit $ac_status); }; }; then
35861   eval "$as_ac_var=yes"
35862 else
35863   echo "$as_me: failed program was:" >&5
35864 sed 's/^/| /' conftest.$ac_ext >&5
35865
35866 eval "$as_ac_var=no"
35867 fi
35868 rm -f conftest.err conftest.$ac_objext \
35869       conftest$ac_exeext conftest.$ac_ext
35870 fi
35871 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35872 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35873 if test `eval echo '${'$as_ac_var'}'` = yes; then
35874   cat >>confdefs.h <<_ACEOF
35875 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35876 _ACEOF
35877  ice_have_connect=yes
35878 fi
35879 done
35880
35881 if test "${ice_have_connect}" = yes; then
35882 echo "$as_me:$LINENO: checking for connect declaration in sys/types.h sys/socket.h" >&5
35883 echo $ECHO_N "checking for connect declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
35884 if test "${ice_cv_have_connect_decl+set}" = set; then
35885   echo $ECHO_N "(cached) $ECHO_C" >&6
35886 else
35887
35888 ice_cv_have_connect_decl=no
35889 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
35890 ice_re_word='(^|[^a-zA-Z0-9_])'
35891 for header in sys/types.h sys/socket.h; do
35892 # Check for ordinary declaration
35893 cat >conftest.$ac_ext <<_ACEOF
35894 /* confdefs.h.  */
35895 _ACEOF
35896 cat confdefs.h >>conftest.$ac_ext
35897 cat >>conftest.$ac_ext <<_ACEOF
35898 /* end confdefs.h.  */
35899 #include <$header>
35900
35901 _ACEOF
35902 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35903   $EGREP "${ice_re_word}connect[        ]*\(" >/dev/null 2>&1; then
35904   ice_cv_have_connect_decl=yes
35905 fi
35906 rm -f conftest*
35907
35908 if test "$ice_cv_have_connect_decl" = yes; then
35909         break
35910 fi
35911 # Check for "fixed" declaration like "getpid _PARAMS((int))"
35912 cat >conftest.$ac_ext <<_ACEOF
35913 /* confdefs.h.  */
35914 _ACEOF
35915 cat confdefs.h >>conftest.$ac_ext
35916 cat >>conftest.$ac_ext <<_ACEOF
35917 /* end confdefs.h.  */
35918 #include <$header>
35919
35920 _ACEOF
35921 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35922   $EGREP "${ice_re_word}connect[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
35923   ice_cv_have_connect_decl=yes
35924 fi
35925 rm -f conftest*
35926
35927 if test "$ice_cv_have_connect_decl" = yes; then
35928         break
35929 fi
35930 done
35931
35932 fi
35933
35934 echo "$as_me:$LINENO: result: $ice_cv_have_connect_decl" >&5
35935 echo "${ECHO_T}$ice_cv_have_connect_decl" >&6
35936 if test "$ice_cv_have_connect_decl" = yes; then
35937
35938 cat >>confdefs.h <<_ACEOF
35939 #define HAVE_CONNECT_DECL 1
35940 _ACEOF
35941
35942 fi
35943 fi
35944
35945
35946 ice_have_dbm_open=no
35947
35948 for ac_func in dbm_open
35949 do
35950 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35951 echo "$as_me:$LINENO: checking for $ac_func" >&5
35952 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35953 if eval "test \"\${$as_ac_var+set}\" = set"; then
35954   echo $ECHO_N "(cached) $ECHO_C" >&6
35955 else
35956   cat >conftest.$ac_ext <<_ACEOF
35957 /* confdefs.h.  */
35958 _ACEOF
35959 cat confdefs.h >>conftest.$ac_ext
35960 cat >>conftest.$ac_ext <<_ACEOF
35961 /* end confdefs.h.  */
35962 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35963    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35964 #define $ac_func innocuous_$ac_func
35965
35966 /* System header to define __stub macros and hopefully few prototypes,
35967     which can conflict with char $ac_func (); below.
35968     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35969     <limits.h> exists even on freestanding compilers.  */
35970
35971 #ifdef __STDC__
35972 # include <limits.h>
35973 #else
35974 # include <assert.h>
35975 #endif
35976
35977 #undef $ac_func
35978
35979 /* Override any gcc2 internal prototype to avoid an error.  */
35980 #ifdef __cplusplus
35981 extern "C"
35982 {
35983 #endif
35984 /* We use char because int might match the return type of a gcc2
35985    builtin and then its argument prototype would still apply.  */
35986 char $ac_func ();
35987 /* The GNU C library defines this for functions which it implements
35988     to always fail with ENOSYS.  Some functions are actually named
35989     something starting with __ and the normal name is an alias.  */
35990 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35991 choke me
35992 #else
35993 char (*f) () = $ac_func;
35994 #endif
35995 #ifdef __cplusplus
35996 }
35997 #endif
35998
35999 int
36000 main ()
36001 {
36002 return f != $ac_func;
36003   ;
36004   return 0;
36005 }
36006 _ACEOF
36007 rm -f conftest.$ac_objext conftest$ac_exeext
36008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36009   (eval $ac_link) 2>conftest.er1
36010   ac_status=$?
36011   grep -v '^ *+' conftest.er1 >conftest.err
36012   rm -f conftest.er1
36013   cat conftest.err >&5
36014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36015   (exit $ac_status); } &&
36016          { ac_try='test -z "$ac_c_werror_flag"
36017                          || test ! -s conftest.err'
36018   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36019   (eval $ac_try) 2>&5
36020   ac_status=$?
36021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36022   (exit $ac_status); }; } &&
36023          { ac_try='test -s conftest$ac_exeext'
36024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36025   (eval $ac_try) 2>&5
36026   ac_status=$?
36027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36028   (exit $ac_status); }; }; then
36029   eval "$as_ac_var=yes"
36030 else
36031   echo "$as_me: failed program was:" >&5
36032 sed 's/^/| /' conftest.$ac_ext >&5
36033
36034 eval "$as_ac_var=no"
36035 fi
36036 rm -f conftest.err conftest.$ac_objext \
36037       conftest$ac_exeext conftest.$ac_ext
36038 fi
36039 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36040 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36041 if test `eval echo '${'$as_ac_var'}'` = yes; then
36042   cat >>confdefs.h <<_ACEOF
36043 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36044 _ACEOF
36045  ice_have_dbm_open=yes
36046 fi
36047 done
36048
36049 if test "${ice_have_dbm_open}" = yes; then
36050 echo "$as_me:$LINENO: checking for dbm_open declaration in ${DB_HEADER-no/db/header/file}" >&5
36051 echo $ECHO_N "checking for dbm_open declaration in ${DB_HEADER-no/db/header/file}... $ECHO_C" >&6
36052 if test "${ice_cv_have_dbm_open_decl+set}" = set; then
36053   echo $ECHO_N "(cached) $ECHO_C" >&6
36054 else
36055
36056 ice_cv_have_dbm_open_decl=no
36057 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
36058 ice_re_word='(^|[^a-zA-Z0-9_])'
36059 for header in ${DB_HEADER-no/db/header/file}; do
36060 # Check for ordinary declaration
36061 cat >conftest.$ac_ext <<_ACEOF
36062 /* confdefs.h.  */
36063 _ACEOF
36064 cat confdefs.h >>conftest.$ac_ext
36065 cat >>conftest.$ac_ext <<_ACEOF
36066 /* end confdefs.h.  */
36067 #include <$header>
36068
36069 _ACEOF
36070 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36071   $EGREP "${ice_re_word}dbm_open[       ]*\(" >/dev/null 2>&1; then
36072   ice_cv_have_dbm_open_decl=yes
36073 fi
36074 rm -f conftest*
36075
36076 if test "$ice_cv_have_dbm_open_decl" = yes; then
36077         break
36078 fi
36079 # Check for "fixed" declaration like "getpid _PARAMS((int))"
36080 cat >conftest.$ac_ext <<_ACEOF
36081 /* confdefs.h.  */
36082 _ACEOF
36083 cat confdefs.h >>conftest.$ac_ext
36084 cat >>conftest.$ac_ext <<_ACEOF
36085 /* end confdefs.h.  */
36086 #include <$header>
36087
36088 _ACEOF
36089 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36090   $EGREP "${ice_re_word}dbm_open[       ]*$ice_re_params\(\(" >/dev/null 2>&1; then
36091   ice_cv_have_dbm_open_decl=yes
36092 fi
36093 rm -f conftest*
36094
36095 if test "$ice_cv_have_dbm_open_decl" = yes; then
36096         break
36097 fi
36098 done
36099
36100 fi
36101
36102 echo "$as_me:$LINENO: result: $ice_cv_have_dbm_open_decl" >&5
36103 echo "${ECHO_T}$ice_cv_have_dbm_open_decl" >&6
36104 if test "$ice_cv_have_dbm_open_decl" = yes; then
36105
36106 cat >>confdefs.h <<_ACEOF
36107 #define HAVE_DBM_OPEN_DECL 1
36108 _ACEOF
36109
36110 fi
36111 fi
36112
36113
36114 for ac_func in endmntent
36115 do
36116 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36117 echo "$as_me:$LINENO: checking for $ac_func" >&5
36118 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36119 if eval "test \"\${$as_ac_var+set}\" = set"; then
36120   echo $ECHO_N "(cached) $ECHO_C" >&6
36121 else
36122   cat >conftest.$ac_ext <<_ACEOF
36123 /* confdefs.h.  */
36124 _ACEOF
36125 cat confdefs.h >>conftest.$ac_ext
36126 cat >>conftest.$ac_ext <<_ACEOF
36127 /* end confdefs.h.  */
36128 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36129    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36130 #define $ac_func innocuous_$ac_func
36131
36132 /* System header to define __stub macros and hopefully few prototypes,
36133     which can conflict with char $ac_func (); below.
36134     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36135     <limits.h> exists even on freestanding compilers.  */
36136
36137 #ifdef __STDC__
36138 # include <limits.h>
36139 #else
36140 # include <assert.h>
36141 #endif
36142
36143 #undef $ac_func
36144
36145 /* Override any gcc2 internal prototype to avoid an error.  */
36146 #ifdef __cplusplus
36147 extern "C"
36148 {
36149 #endif
36150 /* We use char because int might match the return type of a gcc2
36151    builtin and then its argument prototype would still apply.  */
36152 char $ac_func ();
36153 /* The GNU C library defines this for functions which it implements
36154     to always fail with ENOSYS.  Some functions are actually named
36155     something starting with __ and the normal name is an alias.  */
36156 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36157 choke me
36158 #else
36159 char (*f) () = $ac_func;
36160 #endif
36161 #ifdef __cplusplus
36162 }
36163 #endif
36164
36165 int
36166 main ()
36167 {
36168 return f != $ac_func;
36169   ;
36170   return 0;
36171 }
36172 _ACEOF
36173 rm -f conftest.$ac_objext conftest$ac_exeext
36174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36175   (eval $ac_link) 2>conftest.er1
36176   ac_status=$?
36177   grep -v '^ *+' conftest.er1 >conftest.err
36178   rm -f conftest.er1
36179   cat conftest.err >&5
36180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36181   (exit $ac_status); } &&
36182          { ac_try='test -z "$ac_c_werror_flag"
36183                          || test ! -s conftest.err'
36184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36185   (eval $ac_try) 2>&5
36186   ac_status=$?
36187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36188   (exit $ac_status); }; } &&
36189          { ac_try='test -s conftest$ac_exeext'
36190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36191   (eval $ac_try) 2>&5
36192   ac_status=$?
36193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36194   (exit $ac_status); }; }; then
36195   eval "$as_ac_var=yes"
36196 else
36197   echo "$as_me: failed program was:" >&5
36198 sed 's/^/| /' conftest.$ac_ext >&5
36199
36200 eval "$as_ac_var=no"
36201 fi
36202 rm -f conftest.err conftest.$ac_objext \
36203       conftest$ac_exeext conftest.$ac_ext
36204 fi
36205 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36206 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36207 if test `eval echo '${'$as_ac_var'}'` = yes; then
36208   cat >>confdefs.h <<_ACEOF
36209 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36210 _ACEOF
36211
36212 fi
36213 done
36214
36215
36216 ice_have_fclose=no
36217
36218 for ac_func in fclose
36219 do
36220 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36221 echo "$as_me:$LINENO: checking for $ac_func" >&5
36222 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36223 if eval "test \"\${$as_ac_var+set}\" = set"; then
36224   echo $ECHO_N "(cached) $ECHO_C" >&6
36225 else
36226   cat >conftest.$ac_ext <<_ACEOF
36227 /* confdefs.h.  */
36228 _ACEOF
36229 cat confdefs.h >>conftest.$ac_ext
36230 cat >>conftest.$ac_ext <<_ACEOF
36231 /* end confdefs.h.  */
36232 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36233    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36234 #define $ac_func innocuous_$ac_func
36235
36236 /* System header to define __stub macros and hopefully few prototypes,
36237     which can conflict with char $ac_func (); below.
36238     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36239     <limits.h> exists even on freestanding compilers.  */
36240
36241 #ifdef __STDC__
36242 # include <limits.h>
36243 #else
36244 # include <assert.h>
36245 #endif
36246
36247 #undef $ac_func
36248
36249 /* Override any gcc2 internal prototype to avoid an error.  */
36250 #ifdef __cplusplus
36251 extern "C"
36252 {
36253 #endif
36254 /* We use char because int might match the return type of a gcc2
36255    builtin and then its argument prototype would still apply.  */
36256 char $ac_func ();
36257 /* The GNU C library defines this for functions which it implements
36258     to always fail with ENOSYS.  Some functions are actually named
36259     something starting with __ and the normal name is an alias.  */
36260 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36261 choke me
36262 #else
36263 char (*f) () = $ac_func;
36264 #endif
36265 #ifdef __cplusplus
36266 }
36267 #endif
36268
36269 int
36270 main ()
36271 {
36272 return f != $ac_func;
36273   ;
36274   return 0;
36275 }
36276 _ACEOF
36277 rm -f conftest.$ac_objext conftest$ac_exeext
36278 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36279   (eval $ac_link) 2>conftest.er1
36280   ac_status=$?
36281   grep -v '^ *+' conftest.er1 >conftest.err
36282   rm -f conftest.er1
36283   cat conftest.err >&5
36284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36285   (exit $ac_status); } &&
36286          { ac_try='test -z "$ac_c_werror_flag"
36287                          || test ! -s conftest.err'
36288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36289   (eval $ac_try) 2>&5
36290   ac_status=$?
36291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36292   (exit $ac_status); }; } &&
36293          { ac_try='test -s conftest$ac_exeext'
36294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36295   (eval $ac_try) 2>&5
36296   ac_status=$?
36297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36298   (exit $ac_status); }; }; then
36299   eval "$as_ac_var=yes"
36300 else
36301   echo "$as_me: failed program was:" >&5
36302 sed 's/^/| /' conftest.$ac_ext >&5
36303
36304 eval "$as_ac_var=no"
36305 fi
36306 rm -f conftest.err conftest.$ac_objext \
36307       conftest$ac_exeext conftest.$ac_ext
36308 fi
36309 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36310 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36311 if test `eval echo '${'$as_ac_var'}'` = yes; then
36312   cat >>confdefs.h <<_ACEOF
36313 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36314 _ACEOF
36315  ice_have_fclose=yes
36316 fi
36317 done
36318
36319 if test "${ice_have_fclose}" = yes; then
36320 echo "$as_me:$LINENO: checking for fclose declaration in stdio.h" >&5
36321 echo $ECHO_N "checking for fclose declaration in stdio.h... $ECHO_C" >&6
36322 if test "${ice_cv_have_fclose_decl+set}" = set; then
36323   echo $ECHO_N "(cached) $ECHO_C" >&6
36324 else
36325
36326 ice_cv_have_fclose_decl=no
36327 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
36328 ice_re_word='(^|[^a-zA-Z0-9_])'
36329 for header in stdio.h; do
36330 # Check for ordinary declaration
36331 cat >conftest.$ac_ext <<_ACEOF
36332 /* confdefs.h.  */
36333 _ACEOF
36334 cat confdefs.h >>conftest.$ac_ext
36335 cat >>conftest.$ac_ext <<_ACEOF
36336 /* end confdefs.h.  */
36337 #include <$header>
36338
36339 _ACEOF
36340 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36341   $EGREP "${ice_re_word}fclose[         ]*\(" >/dev/null 2>&1; then
36342   ice_cv_have_fclose_decl=yes
36343 fi
36344 rm -f conftest*
36345
36346 if test "$ice_cv_have_fclose_decl" = yes; then
36347         break
36348 fi
36349 # Check for "fixed" declaration like "getpid _PARAMS((int))"
36350 cat >conftest.$ac_ext <<_ACEOF
36351 /* confdefs.h.  */
36352 _ACEOF
36353 cat confdefs.h >>conftest.$ac_ext
36354 cat >>conftest.$ac_ext <<_ACEOF
36355 /* end confdefs.h.  */
36356 #include <$header>
36357
36358 _ACEOF
36359 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36360   $EGREP "${ice_re_word}fclose[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
36361   ice_cv_have_fclose_decl=yes
36362 fi
36363 rm -f conftest*
36364
36365 if test "$ice_cv_have_fclose_decl" = yes; then
36366         break
36367 fi
36368 done
36369
36370 fi
36371
36372 echo "$as_me:$LINENO: result: $ice_cv_have_fclose_decl" >&5
36373 echo "${ECHO_T}$ice_cv_have_fclose_decl" >&6
36374 if test "$ice_cv_have_fclose_decl" = yes; then
36375
36376 cat >>confdefs.h <<_ACEOF
36377 #define HAVE_FCLOSE_DECL 1
36378 _ACEOF
36379
36380 fi
36381 fi
36382
36383
36384 ice_have_fflush=no
36385
36386 for ac_func in fflush
36387 do
36388 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36389 echo "$as_me:$LINENO: checking for $ac_func" >&5
36390 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36391 if eval "test \"\${$as_ac_var+set}\" = set"; then
36392   echo $ECHO_N "(cached) $ECHO_C" >&6
36393 else
36394   cat >conftest.$ac_ext <<_ACEOF
36395 /* confdefs.h.  */
36396 _ACEOF
36397 cat confdefs.h >>conftest.$ac_ext
36398 cat >>conftest.$ac_ext <<_ACEOF
36399 /* end confdefs.h.  */
36400 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36401    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36402 #define $ac_func innocuous_$ac_func
36403
36404 /* System header to define __stub macros and hopefully few prototypes,
36405     which can conflict with char $ac_func (); below.
36406     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36407     <limits.h> exists even on freestanding compilers.  */
36408
36409 #ifdef __STDC__
36410 # include <limits.h>
36411 #else
36412 # include <assert.h>
36413 #endif
36414
36415 #undef $ac_func
36416
36417 /* Override any gcc2 internal prototype to avoid an error.  */
36418 #ifdef __cplusplus
36419 extern "C"
36420 {
36421 #endif
36422 /* We use char because int might match the return type of a gcc2
36423    builtin and then its argument prototype would still apply.  */
36424 char $ac_func ();
36425 /* The GNU C library defines this for functions which it implements
36426     to always fail with ENOSYS.  Some functions are actually named
36427     something starting with __ and the normal name is an alias.  */
36428 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36429 choke me
36430 #else
36431 char (*f) () = $ac_func;
36432 #endif
36433 #ifdef __cplusplus
36434 }
36435 #endif
36436
36437 int
36438 main ()
36439 {
36440 return f != $ac_func;
36441   ;
36442   return 0;
36443 }
36444 _ACEOF
36445 rm -f conftest.$ac_objext conftest$ac_exeext
36446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36447   (eval $ac_link) 2>conftest.er1
36448   ac_status=$?
36449   grep -v '^ *+' conftest.er1 >conftest.err
36450   rm -f conftest.er1
36451   cat conftest.err >&5
36452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36453   (exit $ac_status); } &&
36454          { ac_try='test -z "$ac_c_werror_flag"
36455                          || test ! -s conftest.err'
36456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36457   (eval $ac_try) 2>&5
36458   ac_status=$?
36459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36460   (exit $ac_status); }; } &&
36461          { ac_try='test -s conftest$ac_exeext'
36462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36463   (eval $ac_try) 2>&5
36464   ac_status=$?
36465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36466   (exit $ac_status); }; }; then
36467   eval "$as_ac_var=yes"
36468 else
36469   echo "$as_me: failed program was:" >&5
36470 sed 's/^/| /' conftest.$ac_ext >&5
36471
36472 eval "$as_ac_var=no"
36473 fi
36474 rm -f conftest.err conftest.$ac_objext \
36475       conftest$ac_exeext conftest.$ac_ext
36476 fi
36477 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36478 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36479 if test `eval echo '${'$as_ac_var'}'` = yes; then
36480   cat >>confdefs.h <<_ACEOF
36481 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36482 _ACEOF
36483  ice_have_fflush=yes
36484 fi
36485 done
36486
36487 if test "${ice_have_fflush}" = yes; then
36488 echo "$as_me:$LINENO: checking for fflush declaration in stdio.h" >&5
36489 echo $ECHO_N "checking for fflush declaration in stdio.h... $ECHO_C" >&6
36490 if test "${ice_cv_have_fflush_decl+set}" = set; then
36491   echo $ECHO_N "(cached) $ECHO_C" >&6
36492 else
36493
36494 ice_cv_have_fflush_decl=no
36495 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
36496 ice_re_word='(^|[^a-zA-Z0-9_])'
36497 for header in stdio.h; do
36498 # Check for ordinary declaration
36499 cat >conftest.$ac_ext <<_ACEOF
36500 /* confdefs.h.  */
36501 _ACEOF
36502 cat confdefs.h >>conftest.$ac_ext
36503 cat >>conftest.$ac_ext <<_ACEOF
36504 /* end confdefs.h.  */
36505 #include <$header>
36506
36507 _ACEOF
36508 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36509   $EGREP "${ice_re_word}fflush[         ]*\(" >/dev/null 2>&1; then
36510   ice_cv_have_fflush_decl=yes
36511 fi
36512 rm -f conftest*
36513
36514 if test "$ice_cv_have_fflush_decl" = yes; then
36515         break
36516 fi
36517 # Check for "fixed" declaration like "getpid _PARAMS((int))"
36518 cat >conftest.$ac_ext <<_ACEOF
36519 /* confdefs.h.  */
36520 _ACEOF
36521 cat confdefs.h >>conftest.$ac_ext
36522 cat >>conftest.$ac_ext <<_ACEOF
36523 /* end confdefs.h.  */
36524 #include <$header>
36525
36526 _ACEOF
36527 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36528   $EGREP "${ice_re_word}fflush[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
36529   ice_cv_have_fflush_decl=yes
36530 fi
36531 rm -f conftest*
36532
36533 if test "$ice_cv_have_fflush_decl" = yes; then
36534         break
36535 fi
36536 done
36537
36538 fi
36539
36540 echo "$as_me:$LINENO: result: $ice_cv_have_fflush_decl" >&5
36541 echo "${ECHO_T}$ice_cv_have_fflush_decl" >&6
36542 if test "$ice_cv_have_fflush_decl" = yes; then
36543
36544 cat >>confdefs.h <<_ACEOF
36545 #define HAVE_FFLUSH_DECL 1
36546 _ACEOF
36547
36548 fi
36549 fi
36550
36551
36552 ice_have_flock=no
36553
36554 for ac_func in flock
36555 do
36556 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36557 echo "$as_me:$LINENO: checking for $ac_func" >&5
36558 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36559 if eval "test \"\${$as_ac_var+set}\" = set"; then
36560   echo $ECHO_N "(cached) $ECHO_C" >&6
36561 else
36562   cat >conftest.$ac_ext <<_ACEOF
36563 /* confdefs.h.  */
36564 _ACEOF
36565 cat confdefs.h >>conftest.$ac_ext
36566 cat >>conftest.$ac_ext <<_ACEOF
36567 /* end confdefs.h.  */
36568 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36569    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36570 #define $ac_func innocuous_$ac_func
36571
36572 /* System header to define __stub macros and hopefully few prototypes,
36573     which can conflict with char $ac_func (); below.
36574     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36575     <limits.h> exists even on freestanding compilers.  */
36576
36577 #ifdef __STDC__
36578 # include <limits.h>
36579 #else
36580 # include <assert.h>
36581 #endif
36582
36583 #undef $ac_func
36584
36585 /* Override any gcc2 internal prototype to avoid an error.  */
36586 #ifdef __cplusplus
36587 extern "C"
36588 {
36589 #endif
36590 /* We use char because int might match the return type of a gcc2
36591    builtin and then its argument prototype would still apply.  */
36592 char $ac_func ();
36593 /* The GNU C library defines this for functions which it implements
36594     to always fail with ENOSYS.  Some functions are actually named
36595     something starting with __ and the normal name is an alias.  */
36596 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36597 choke me
36598 #else
36599 char (*f) () = $ac_func;
36600 #endif
36601 #ifdef __cplusplus
36602 }
36603 #endif
36604
36605 int
36606 main ()
36607 {
36608 return f != $ac_func;
36609   ;
36610   return 0;
36611 }
36612 _ACEOF
36613 rm -f conftest.$ac_objext conftest$ac_exeext
36614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36615   (eval $ac_link) 2>conftest.er1
36616   ac_status=$?
36617   grep -v '^ *+' conftest.er1 >conftest.err
36618   rm -f conftest.er1
36619   cat conftest.err >&5
36620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36621   (exit $ac_status); } &&
36622          { ac_try='test -z "$ac_c_werror_flag"
36623                          || test ! -s conftest.err'
36624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36625   (eval $ac_try) 2>&5
36626   ac_status=$?
36627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36628   (exit $ac_status); }; } &&
36629          { ac_try='test -s conftest$ac_exeext'
36630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36631   (eval $ac_try) 2>&5
36632   ac_status=$?
36633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36634   (exit $ac_status); }; }; then
36635   eval "$as_ac_var=yes"
36636 else
36637   echo "$as_me: failed program was:" >&5
36638 sed 's/^/| /' conftest.$ac_ext >&5
36639
36640 eval "$as_ac_var=no"
36641 fi
36642 rm -f conftest.err conftest.$ac_objext \
36643       conftest$ac_exeext conftest.$ac_ext
36644 fi
36645 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36646 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36647 if test `eval echo '${'$as_ac_var'}'` = yes; then
36648   cat >>confdefs.h <<_ACEOF
36649 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36650 _ACEOF
36651  ice_have_flock=yes
36652 fi
36653 done
36654
36655 if test "${ice_have_flock}" = yes; then
36656 echo "$as_me:$LINENO: checking for flock declaration in sys/file.h" >&5
36657 echo $ECHO_N "checking for flock declaration in sys/file.h... $ECHO_C" >&6
36658 if test "${ice_cv_have_flock_decl+set}" = set; then
36659   echo $ECHO_N "(cached) $ECHO_C" >&6
36660 else
36661
36662 ice_cv_have_flock_decl=no
36663 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
36664 ice_re_word='(^|[^a-zA-Z0-9_])'
36665 for header in sys/file.h; do
36666 # Check for ordinary declaration
36667 cat >conftest.$ac_ext <<_ACEOF
36668 /* confdefs.h.  */
36669 _ACEOF
36670 cat confdefs.h >>conftest.$ac_ext
36671 cat >>conftest.$ac_ext <<_ACEOF
36672 /* end confdefs.h.  */
36673 #include <$header>
36674
36675 _ACEOF
36676 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36677   $EGREP "${ice_re_word}flock[  ]*\(" >/dev/null 2>&1; then
36678   ice_cv_have_flock_decl=yes
36679 fi
36680 rm -f conftest*
36681
36682 if test "$ice_cv_have_flock_decl" = yes; then
36683         break
36684 fi
36685 # Check for "fixed" declaration like "getpid _PARAMS((int))"
36686 cat >conftest.$ac_ext <<_ACEOF
36687 /* confdefs.h.  */
36688 _ACEOF
36689 cat confdefs.h >>conftest.$ac_ext
36690 cat >>conftest.$ac_ext <<_ACEOF
36691 /* end confdefs.h.  */
36692 #include <$header>
36693
36694 _ACEOF
36695 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36696   $EGREP "${ice_re_word}flock[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
36697   ice_cv_have_flock_decl=yes
36698 fi
36699 rm -f conftest*
36700
36701 if test "$ice_cv_have_flock_decl" = yes; then
36702         break
36703 fi
36704 done
36705
36706 fi
36707
36708 echo "$as_me:$LINENO: result: $ice_cv_have_flock_decl" >&5
36709 echo "${ECHO_T}$ice_cv_have_flock_decl" >&6
36710 if test "$ice_cv_have_flock_decl" = yes; then
36711
36712 cat >>confdefs.h <<_ACEOF
36713 #define HAVE_FLOCK_DECL 1
36714 _ACEOF
36715
36716 fi
36717 fi
36718
36719
36720 ice_have_fprintf=no
36721
36722 for ac_func in fprintf
36723 do
36724 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36725 echo "$as_me:$LINENO: checking for $ac_func" >&5
36726 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36727 if eval "test \"\${$as_ac_var+set}\" = set"; then
36728   echo $ECHO_N "(cached) $ECHO_C" >&6
36729 else
36730   cat >conftest.$ac_ext <<_ACEOF
36731 /* confdefs.h.  */
36732 _ACEOF
36733 cat confdefs.h >>conftest.$ac_ext
36734 cat >>conftest.$ac_ext <<_ACEOF
36735 /* end confdefs.h.  */
36736 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36737    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36738 #define $ac_func innocuous_$ac_func
36739
36740 /* System header to define __stub macros and hopefully few prototypes,
36741     which can conflict with char $ac_func (); below.
36742     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36743     <limits.h> exists even on freestanding compilers.  */
36744
36745 #ifdef __STDC__
36746 # include <limits.h>
36747 #else
36748 # include <assert.h>
36749 #endif
36750
36751 #undef $ac_func
36752
36753 /* Override any gcc2 internal prototype to avoid an error.  */
36754 #ifdef __cplusplus
36755 extern "C"
36756 {
36757 #endif
36758 /* We use char because int might match the return type of a gcc2
36759    builtin and then its argument prototype would still apply.  */
36760 char $ac_func ();
36761 /* The GNU C library defines this for functions which it implements
36762     to always fail with ENOSYS.  Some functions are actually named
36763     something starting with __ and the normal name is an alias.  */
36764 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36765 choke me
36766 #else
36767 char (*f) () = $ac_func;
36768 #endif
36769 #ifdef __cplusplus
36770 }
36771 #endif
36772
36773 int
36774 main ()
36775 {
36776 return f != $ac_func;
36777   ;
36778   return 0;
36779 }
36780 _ACEOF
36781 rm -f conftest.$ac_objext conftest$ac_exeext
36782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36783   (eval $ac_link) 2>conftest.er1
36784   ac_status=$?
36785   grep -v '^ *+' conftest.er1 >conftest.err
36786   rm -f conftest.er1
36787   cat conftest.err >&5
36788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36789   (exit $ac_status); } &&
36790          { ac_try='test -z "$ac_c_werror_flag"
36791                          || test ! -s conftest.err'
36792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36793   (eval $ac_try) 2>&5
36794   ac_status=$?
36795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36796   (exit $ac_status); }; } &&
36797          { ac_try='test -s conftest$ac_exeext'
36798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36799   (eval $ac_try) 2>&5
36800   ac_status=$?
36801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36802   (exit $ac_status); }; }; then
36803   eval "$as_ac_var=yes"
36804 else
36805   echo "$as_me: failed program was:" >&5
36806 sed 's/^/| /' conftest.$ac_ext >&5
36807
36808 eval "$as_ac_var=no"
36809 fi
36810 rm -f conftest.err conftest.$ac_objext \
36811       conftest$ac_exeext conftest.$ac_ext
36812 fi
36813 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36814 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36815 if test `eval echo '${'$as_ac_var'}'` = yes; then
36816   cat >>confdefs.h <<_ACEOF
36817 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36818 _ACEOF
36819  ice_have_fprintf=yes
36820 fi
36821 done
36822
36823 if test "${ice_have_fprintf}" = yes; then
36824 echo "$as_me:$LINENO: checking for fprintf declaration in stdio.h" >&5
36825 echo $ECHO_N "checking for fprintf declaration in stdio.h... $ECHO_C" >&6
36826 if test "${ice_cv_have_fprintf_decl+set}" = set; then
36827   echo $ECHO_N "(cached) $ECHO_C" >&6
36828 else
36829
36830 ice_cv_have_fprintf_decl=no
36831 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
36832 ice_re_word='(^|[^a-zA-Z0-9_])'
36833 for header in stdio.h; do
36834 # Check for ordinary declaration
36835 cat >conftest.$ac_ext <<_ACEOF
36836 /* confdefs.h.  */
36837 _ACEOF
36838 cat confdefs.h >>conftest.$ac_ext
36839 cat >>conftest.$ac_ext <<_ACEOF
36840 /* end confdefs.h.  */
36841 #include <$header>
36842
36843 _ACEOF
36844 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36845   $EGREP "${ice_re_word}fprintf[        ]*\(" >/dev/null 2>&1; then
36846   ice_cv_have_fprintf_decl=yes
36847 fi
36848 rm -f conftest*
36849
36850 if test "$ice_cv_have_fprintf_decl" = yes; then
36851         break
36852 fi
36853 # Check for "fixed" declaration like "getpid _PARAMS((int))"
36854 cat >conftest.$ac_ext <<_ACEOF
36855 /* confdefs.h.  */
36856 _ACEOF
36857 cat confdefs.h >>conftest.$ac_ext
36858 cat >>conftest.$ac_ext <<_ACEOF
36859 /* end confdefs.h.  */
36860 #include <$header>
36861
36862 _ACEOF
36863 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36864   $EGREP "${ice_re_word}fprintf[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
36865   ice_cv_have_fprintf_decl=yes
36866 fi
36867 rm -f conftest*
36868
36869 if test "$ice_cv_have_fprintf_decl" = yes; then
36870         break
36871 fi
36872 done
36873
36874 fi
36875
36876 echo "$as_me:$LINENO: result: $ice_cv_have_fprintf_decl" >&5
36877 echo "${ECHO_T}$ice_cv_have_fprintf_decl" >&6
36878 if test "$ice_cv_have_fprintf_decl" = yes; then
36879
36880 cat >>confdefs.h <<_ACEOF
36881 #define HAVE_FPRINTF_DECL 1
36882 _ACEOF
36883
36884 fi
36885 fi
36886
36887
36888 ice_have_fputc=no
36889
36890 for ac_func in fputc
36891 do
36892 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36893 echo "$as_me:$LINENO: checking for $ac_func" >&5
36894 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36895 if eval "test \"\${$as_ac_var+set}\" = set"; then
36896   echo $ECHO_N "(cached) $ECHO_C" >&6
36897 else
36898   cat >conftest.$ac_ext <<_ACEOF
36899 /* confdefs.h.  */
36900 _ACEOF
36901 cat confdefs.h >>conftest.$ac_ext
36902 cat >>conftest.$ac_ext <<_ACEOF
36903 /* end confdefs.h.  */
36904 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36905    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36906 #define $ac_func innocuous_$ac_func
36907
36908 /* System header to define __stub macros and hopefully few prototypes,
36909     which can conflict with char $ac_func (); below.
36910     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36911     <limits.h> exists even on freestanding compilers.  */
36912
36913 #ifdef __STDC__
36914 # include <limits.h>
36915 #else
36916 # include <assert.h>
36917 #endif
36918
36919 #undef $ac_func
36920
36921 /* Override any gcc2 internal prototype to avoid an error.  */
36922 #ifdef __cplusplus
36923 extern "C"
36924 {
36925 #endif
36926 /* We use char because int might match the return type of a gcc2
36927    builtin and then its argument prototype would still apply.  */
36928 char $ac_func ();
36929 /* The GNU C library defines this for functions which it implements
36930     to always fail with ENOSYS.  Some functions are actually named
36931     something starting with __ and the normal name is an alias.  */
36932 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36933 choke me
36934 #else
36935 char (*f) () = $ac_func;
36936 #endif
36937 #ifdef __cplusplus
36938 }
36939 #endif
36940
36941 int
36942 main ()
36943 {
36944 return f != $ac_func;
36945   ;
36946   return 0;
36947 }
36948 _ACEOF
36949 rm -f conftest.$ac_objext conftest$ac_exeext
36950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36951   (eval $ac_link) 2>conftest.er1
36952   ac_status=$?
36953   grep -v '^ *+' conftest.er1 >conftest.err
36954   rm -f conftest.er1
36955   cat conftest.err >&5
36956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36957   (exit $ac_status); } &&
36958          { ac_try='test -z "$ac_c_werror_flag"
36959                          || test ! -s conftest.err'
36960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36961   (eval $ac_try) 2>&5
36962   ac_status=$?
36963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36964   (exit $ac_status); }; } &&
36965          { ac_try='test -s conftest$ac_exeext'
36966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36967   (eval $ac_try) 2>&5
36968   ac_status=$?
36969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36970   (exit $ac_status); }; }; then
36971   eval "$as_ac_var=yes"
36972 else
36973   echo "$as_me: failed program was:" >&5
36974 sed 's/^/| /' conftest.$ac_ext >&5
36975
36976 eval "$as_ac_var=no"
36977 fi
36978 rm -f conftest.err conftest.$ac_objext \
36979       conftest$ac_exeext conftest.$ac_ext
36980 fi
36981 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36982 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36983 if test `eval echo '${'$as_ac_var'}'` = yes; then
36984   cat >>confdefs.h <<_ACEOF
36985 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36986 _ACEOF
36987  ice_have_fputc=yes
36988 fi
36989 done
36990
36991 if test "${ice_have_fputc}" = yes; then
36992 echo "$as_me:$LINENO: checking for fputc declaration in stdio.h" >&5
36993 echo $ECHO_N "checking for fputc declaration in stdio.h... $ECHO_C" >&6
36994 if test "${ice_cv_have_fputc_decl+set}" = set; then
36995   echo $ECHO_N "(cached) $ECHO_C" >&6
36996 else
36997
36998 ice_cv_have_fputc_decl=no
36999 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
37000 ice_re_word='(^|[^a-zA-Z0-9_])'
37001 for header in stdio.h; do
37002 # Check for ordinary declaration
37003 cat >conftest.$ac_ext <<_ACEOF
37004 /* confdefs.h.  */
37005 _ACEOF
37006 cat confdefs.h >>conftest.$ac_ext
37007 cat >>conftest.$ac_ext <<_ACEOF
37008 /* end confdefs.h.  */
37009 #include <$header>
37010
37011 _ACEOF
37012 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37013   $EGREP "${ice_re_word}fputc[  ]*\(" >/dev/null 2>&1; then
37014   ice_cv_have_fputc_decl=yes
37015 fi
37016 rm -f conftest*
37017
37018 if test "$ice_cv_have_fputc_decl" = yes; then
37019         break
37020 fi
37021 # Check for "fixed" declaration like "getpid _PARAMS((int))"
37022 cat >conftest.$ac_ext <<_ACEOF
37023 /* confdefs.h.  */
37024 _ACEOF
37025 cat confdefs.h >>conftest.$ac_ext
37026 cat >>conftest.$ac_ext <<_ACEOF
37027 /* end confdefs.h.  */
37028 #include <$header>
37029
37030 _ACEOF
37031 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37032   $EGREP "${ice_re_word}fputc[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
37033   ice_cv_have_fputc_decl=yes
37034 fi
37035 rm -f conftest*
37036
37037 if test "$ice_cv_have_fputc_decl" = yes; then
37038         break
37039 fi
37040 done
37041
37042 fi
37043
37044 echo "$as_me:$LINENO: result: $ice_cv_have_fputc_decl" >&5
37045 echo "${ECHO_T}$ice_cv_have_fputc_decl" >&6
37046 if test "$ice_cv_have_fputc_decl" = yes; then
37047
37048 cat >>confdefs.h <<_ACEOF
37049 #define HAVE_FPUTC_DECL 1
37050 _ACEOF
37051
37052 fi
37053 fi
37054
37055
37056 ice_have_fputs=no
37057
37058 for ac_func in fputs
37059 do
37060 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37061 echo "$as_me:$LINENO: checking for $ac_func" >&5
37062 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37063 if eval "test \"\${$as_ac_var+set}\" = set"; then
37064   echo $ECHO_N "(cached) $ECHO_C" >&6
37065 else
37066   cat >conftest.$ac_ext <<_ACEOF
37067 /* confdefs.h.  */
37068 _ACEOF
37069 cat confdefs.h >>conftest.$ac_ext
37070 cat >>conftest.$ac_ext <<_ACEOF
37071 /* end confdefs.h.  */
37072 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37073    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37074 #define $ac_func innocuous_$ac_func
37075
37076 /* System header to define __stub macros and hopefully few prototypes,
37077     which can conflict with char $ac_func (); below.
37078     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37079     <limits.h> exists even on freestanding compilers.  */
37080
37081 #ifdef __STDC__
37082 # include <limits.h>
37083 #else
37084 # include <assert.h>
37085 #endif
37086
37087 #undef $ac_func
37088
37089 /* Override any gcc2 internal prototype to avoid an error.  */
37090 #ifdef __cplusplus
37091 extern "C"
37092 {
37093 #endif
37094 /* We use char because int might match the return type of a gcc2
37095    builtin and then its argument prototype would still apply.  */
37096 char $ac_func ();
37097 /* The GNU C library defines this for functions which it implements
37098     to always fail with ENOSYS.  Some functions are actually named
37099     something starting with __ and the normal name is an alias.  */
37100 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37101 choke me
37102 #else
37103 char (*f) () = $ac_func;
37104 #endif
37105 #ifdef __cplusplus
37106 }
37107 #endif
37108
37109 int
37110 main ()
37111 {
37112 return f != $ac_func;
37113   ;
37114   return 0;
37115 }
37116 _ACEOF
37117 rm -f conftest.$ac_objext conftest$ac_exeext
37118 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37119   (eval $ac_link) 2>conftest.er1
37120   ac_status=$?
37121   grep -v '^ *+' conftest.er1 >conftest.err
37122   rm -f conftest.er1
37123   cat conftest.err >&5
37124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37125   (exit $ac_status); } &&
37126          { ac_try='test -z "$ac_c_werror_flag"
37127                          || test ! -s conftest.err'
37128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37129   (eval $ac_try) 2>&5
37130   ac_status=$?
37131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37132   (exit $ac_status); }; } &&
37133          { ac_try='test -s conftest$ac_exeext'
37134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37135   (eval $ac_try) 2>&5
37136   ac_status=$?
37137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37138   (exit $ac_status); }; }; then
37139   eval "$as_ac_var=yes"
37140 else
37141   echo "$as_me: failed program was:" >&5
37142 sed 's/^/| /' conftest.$ac_ext >&5
37143
37144 eval "$as_ac_var=no"
37145 fi
37146 rm -f conftest.err conftest.$ac_objext \
37147       conftest$ac_exeext conftest.$ac_ext
37148 fi
37149 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37150 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37151 if test `eval echo '${'$as_ac_var'}'` = yes; then
37152   cat >>confdefs.h <<_ACEOF
37153 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37154 _ACEOF
37155  ice_have_fputs=yes
37156 fi
37157 done
37158
37159 if test "${ice_have_fputs}" = yes; then
37160 echo "$as_me:$LINENO: checking for fputs declaration in stdio.h" >&5
37161 echo $ECHO_N "checking for fputs declaration in stdio.h... $ECHO_C" >&6
37162 if test "${ice_cv_have_fputs_decl+set}" = set; then
37163   echo $ECHO_N "(cached) $ECHO_C" >&6
37164 else
37165
37166 ice_cv_have_fputs_decl=no
37167 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
37168 ice_re_word='(^|[^a-zA-Z0-9_])'
37169 for header in stdio.h; do
37170 # Check for ordinary declaration
37171 cat >conftest.$ac_ext <<_ACEOF
37172 /* confdefs.h.  */
37173 _ACEOF
37174 cat confdefs.h >>conftest.$ac_ext
37175 cat >>conftest.$ac_ext <<_ACEOF
37176 /* end confdefs.h.  */
37177 #include <$header>
37178
37179 _ACEOF
37180 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37181   $EGREP "${ice_re_word}fputs[  ]*\(" >/dev/null 2>&1; then
37182   ice_cv_have_fputs_decl=yes
37183 fi
37184 rm -f conftest*
37185
37186 if test "$ice_cv_have_fputs_decl" = yes; then
37187         break
37188 fi
37189 # Check for "fixed" declaration like "getpid _PARAMS((int))"
37190 cat >conftest.$ac_ext <<_ACEOF
37191 /* confdefs.h.  */
37192 _ACEOF
37193 cat confdefs.h >>conftest.$ac_ext
37194 cat >>conftest.$ac_ext <<_ACEOF
37195 /* end confdefs.h.  */
37196 #include <$header>
37197
37198 _ACEOF
37199 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37200   $EGREP "${ice_re_word}fputs[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
37201   ice_cv_have_fputs_decl=yes
37202 fi
37203 rm -f conftest*
37204
37205 if test "$ice_cv_have_fputs_decl" = yes; then
37206         break
37207 fi
37208 done
37209
37210 fi
37211
37212 echo "$as_me:$LINENO: result: $ice_cv_have_fputs_decl" >&5
37213 echo "${ECHO_T}$ice_cv_have_fputs_decl" >&6
37214 if test "$ice_cv_have_fputs_decl" = yes; then
37215
37216 cat >>confdefs.h <<_ACEOF
37217 #define HAVE_FPUTS_DECL 1
37218 _ACEOF
37219
37220 fi
37221 fi
37222
37223
37224 ice_have_fread=no
37225
37226 for ac_func in fread
37227 do
37228 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37229 echo "$as_me:$LINENO: checking for $ac_func" >&5
37230 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37231 if eval "test \"\${$as_ac_var+set}\" = set"; then
37232   echo $ECHO_N "(cached) $ECHO_C" >&6
37233 else
37234   cat >conftest.$ac_ext <<_ACEOF
37235 /* confdefs.h.  */
37236 _ACEOF
37237 cat confdefs.h >>conftest.$ac_ext
37238 cat >>conftest.$ac_ext <<_ACEOF
37239 /* end confdefs.h.  */
37240 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37241    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37242 #define $ac_func innocuous_$ac_func
37243
37244 /* System header to define __stub macros and hopefully few prototypes,
37245     which can conflict with char $ac_func (); below.
37246     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37247     <limits.h> exists even on freestanding compilers.  */
37248
37249 #ifdef __STDC__
37250 # include <limits.h>
37251 #else
37252 # include <assert.h>
37253 #endif
37254
37255 #undef $ac_func
37256
37257 /* Override any gcc2 internal prototype to avoid an error.  */
37258 #ifdef __cplusplus
37259 extern "C"
37260 {
37261 #endif
37262 /* We use char because int might match the return type of a gcc2
37263    builtin and then its argument prototype would still apply.  */
37264 char $ac_func ();
37265 /* The GNU C library defines this for functions which it implements
37266     to always fail with ENOSYS.  Some functions are actually named
37267     something starting with __ and the normal name is an alias.  */
37268 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37269 choke me
37270 #else
37271 char (*f) () = $ac_func;
37272 #endif
37273 #ifdef __cplusplus
37274 }
37275 #endif
37276
37277 int
37278 main ()
37279 {
37280 return f != $ac_func;
37281   ;
37282   return 0;
37283 }
37284 _ACEOF
37285 rm -f conftest.$ac_objext conftest$ac_exeext
37286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37287   (eval $ac_link) 2>conftest.er1
37288   ac_status=$?
37289   grep -v '^ *+' conftest.er1 >conftest.err
37290   rm -f conftest.er1
37291   cat conftest.err >&5
37292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37293   (exit $ac_status); } &&
37294          { ac_try='test -z "$ac_c_werror_flag"
37295                          || test ! -s conftest.err'
37296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37297   (eval $ac_try) 2>&5
37298   ac_status=$?
37299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37300   (exit $ac_status); }; } &&
37301          { ac_try='test -s conftest$ac_exeext'
37302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37303   (eval $ac_try) 2>&5
37304   ac_status=$?
37305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37306   (exit $ac_status); }; }; then
37307   eval "$as_ac_var=yes"
37308 else
37309   echo "$as_me: failed program was:" >&5
37310 sed 's/^/| /' conftest.$ac_ext >&5
37311
37312 eval "$as_ac_var=no"
37313 fi
37314 rm -f conftest.err conftest.$ac_objext \
37315       conftest$ac_exeext conftest.$ac_ext
37316 fi
37317 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37318 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37319 if test `eval echo '${'$as_ac_var'}'` = yes; then
37320   cat >>confdefs.h <<_ACEOF
37321 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37322 _ACEOF
37323  ice_have_fread=yes
37324 fi
37325 done
37326
37327 if test "${ice_have_fread}" = yes; then
37328 echo "$as_me:$LINENO: checking for fread declaration in stdio.h stdlib.h" >&5
37329 echo $ECHO_N "checking for fread declaration in stdio.h stdlib.h... $ECHO_C" >&6
37330 if test "${ice_cv_have_fread_decl+set}" = set; then
37331   echo $ECHO_N "(cached) $ECHO_C" >&6
37332 else
37333
37334 ice_cv_have_fread_decl=no
37335 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
37336 ice_re_word='(^|[^a-zA-Z0-9_])'
37337 for header in stdio.h stdlib.h; do
37338 # Check for ordinary declaration
37339 cat >conftest.$ac_ext <<_ACEOF
37340 /* confdefs.h.  */
37341 _ACEOF
37342 cat confdefs.h >>conftest.$ac_ext
37343 cat >>conftest.$ac_ext <<_ACEOF
37344 /* end confdefs.h.  */
37345 #include <$header>
37346
37347 _ACEOF
37348 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37349   $EGREP "${ice_re_word}fread[  ]*\(" >/dev/null 2>&1; then
37350   ice_cv_have_fread_decl=yes
37351 fi
37352 rm -f conftest*
37353
37354 if test "$ice_cv_have_fread_decl" = yes; then
37355         break
37356 fi
37357 # Check for "fixed" declaration like "getpid _PARAMS((int))"
37358 cat >conftest.$ac_ext <<_ACEOF
37359 /* confdefs.h.  */
37360 _ACEOF
37361 cat confdefs.h >>conftest.$ac_ext
37362 cat >>conftest.$ac_ext <<_ACEOF
37363 /* end confdefs.h.  */
37364 #include <$header>
37365
37366 _ACEOF
37367 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37368   $EGREP "${ice_re_word}fread[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
37369   ice_cv_have_fread_decl=yes
37370 fi
37371 rm -f conftest*
37372
37373 if test "$ice_cv_have_fread_decl" = yes; then
37374         break
37375 fi
37376 done
37377
37378 fi
37379
37380 echo "$as_me:$LINENO: result: $ice_cv_have_fread_decl" >&5
37381 echo "${ECHO_T}$ice_cv_have_fread_decl" >&6
37382 if test "$ice_cv_have_fread_decl" = yes; then
37383
37384 cat >>confdefs.h <<_ACEOF
37385 #define HAVE_FREAD_DECL 1
37386 _ACEOF
37387
37388 fi
37389 fi
37390
37391
37392 ice_have_fseek=no
37393
37394 for ac_func in fseek
37395 do
37396 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37397 echo "$as_me:$LINENO: checking for $ac_func" >&5
37398 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37399 if eval "test \"\${$as_ac_var+set}\" = set"; then
37400   echo $ECHO_N "(cached) $ECHO_C" >&6
37401 else
37402   cat >conftest.$ac_ext <<_ACEOF
37403 /* confdefs.h.  */
37404 _ACEOF
37405 cat confdefs.h >>conftest.$ac_ext
37406 cat >>conftest.$ac_ext <<_ACEOF
37407 /* end confdefs.h.  */
37408 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37409    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37410 #define $ac_func innocuous_$ac_func
37411
37412 /* System header to define __stub macros and hopefully few prototypes,
37413     which can conflict with char $ac_func (); below.
37414     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37415     <limits.h> exists even on freestanding compilers.  */
37416
37417 #ifdef __STDC__
37418 # include <limits.h>
37419 #else
37420 # include <assert.h>
37421 #endif
37422
37423 #undef $ac_func
37424
37425 /* Override any gcc2 internal prototype to avoid an error.  */
37426 #ifdef __cplusplus
37427 extern "C"
37428 {
37429 #endif
37430 /* We use char because int might match the return type of a gcc2
37431    builtin and then its argument prototype would still apply.  */
37432 char $ac_func ();
37433 /* The GNU C library defines this for functions which it implements
37434     to always fail with ENOSYS.  Some functions are actually named
37435     something starting with __ and the normal name is an alias.  */
37436 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37437 choke me
37438 #else
37439 char (*f) () = $ac_func;
37440 #endif
37441 #ifdef __cplusplus
37442 }
37443 #endif
37444
37445 int
37446 main ()
37447 {
37448 return f != $ac_func;
37449   ;
37450   return 0;
37451 }
37452 _ACEOF
37453 rm -f conftest.$ac_objext conftest$ac_exeext
37454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37455   (eval $ac_link) 2>conftest.er1
37456   ac_status=$?
37457   grep -v '^ *+' conftest.er1 >conftest.err
37458   rm -f conftest.er1
37459   cat conftest.err >&5
37460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37461   (exit $ac_status); } &&
37462          { ac_try='test -z "$ac_c_werror_flag"
37463                          || test ! -s conftest.err'
37464   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37465   (eval $ac_try) 2>&5
37466   ac_status=$?
37467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37468   (exit $ac_status); }; } &&
37469          { ac_try='test -s conftest$ac_exeext'
37470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37471   (eval $ac_try) 2>&5
37472   ac_status=$?
37473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37474   (exit $ac_status); }; }; then
37475   eval "$as_ac_var=yes"
37476 else
37477   echo "$as_me: failed program was:" >&5
37478 sed 's/^/| /' conftest.$ac_ext >&5
37479
37480 eval "$as_ac_var=no"
37481 fi
37482 rm -f conftest.err conftest.$ac_objext \
37483       conftest$ac_exeext conftest.$ac_ext
37484 fi
37485 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37486 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37487 if test `eval echo '${'$as_ac_var'}'` = yes; then
37488   cat >>confdefs.h <<_ACEOF
37489 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37490 _ACEOF
37491  ice_have_fseek=yes
37492 fi
37493 done
37494
37495 if test "${ice_have_fseek}" = yes; then
37496 echo "$as_me:$LINENO: checking for fseek declaration in stdio.h" >&5
37497 echo $ECHO_N "checking for fseek declaration in stdio.h... $ECHO_C" >&6
37498 if test "${ice_cv_have_fseek_decl+set}" = set; then
37499   echo $ECHO_N "(cached) $ECHO_C" >&6
37500 else
37501
37502 ice_cv_have_fseek_decl=no
37503 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
37504 ice_re_word='(^|[^a-zA-Z0-9_])'
37505 for header in stdio.h; do
37506 # Check for ordinary declaration
37507 cat >conftest.$ac_ext <<_ACEOF
37508 /* confdefs.h.  */
37509 _ACEOF
37510 cat confdefs.h >>conftest.$ac_ext
37511 cat >>conftest.$ac_ext <<_ACEOF
37512 /* end confdefs.h.  */
37513 #include <$header>
37514
37515 _ACEOF
37516 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37517   $EGREP "${ice_re_word}fseek[  ]*\(" >/dev/null 2>&1; then
37518   ice_cv_have_fseek_decl=yes
37519 fi
37520 rm -f conftest*
37521
37522 if test "$ice_cv_have_fseek_decl" = yes; then
37523         break
37524 fi
37525 # Check for "fixed" declaration like "getpid _PARAMS((int))"
37526 cat >conftest.$ac_ext <<_ACEOF
37527 /* confdefs.h.  */
37528 _ACEOF
37529 cat confdefs.h >>conftest.$ac_ext
37530 cat >>conftest.$ac_ext <<_ACEOF
37531 /* end confdefs.h.  */
37532 #include <$header>
37533
37534 _ACEOF
37535 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37536   $EGREP "${ice_re_word}fseek[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
37537   ice_cv_have_fseek_decl=yes
37538 fi
37539 rm -f conftest*
37540
37541 if test "$ice_cv_have_fseek_decl" = yes; then
37542         break
37543 fi
37544 done
37545
37546 fi
37547
37548 echo "$as_me:$LINENO: result: $ice_cv_have_fseek_decl" >&5
37549 echo "${ECHO_T}$ice_cv_have_fseek_decl" >&6
37550 if test "$ice_cv_have_fseek_decl" = yes; then
37551
37552 cat >>confdefs.h <<_ACEOF
37553 #define HAVE_FSEEK_DECL 1
37554 _ACEOF
37555
37556 fi
37557 fi
37558
37559
37560 ice_have_fwrite=no
37561
37562 for ac_func in fwrite
37563 do
37564 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37565 echo "$as_me:$LINENO: checking for $ac_func" >&5
37566 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37567 if eval "test \"\${$as_ac_var+set}\" = set"; then
37568   echo $ECHO_N "(cached) $ECHO_C" >&6
37569 else
37570   cat >conftest.$ac_ext <<_ACEOF
37571 /* confdefs.h.  */
37572 _ACEOF
37573 cat confdefs.h >>conftest.$ac_ext
37574 cat >>conftest.$ac_ext <<_ACEOF
37575 /* end confdefs.h.  */
37576 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37577    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37578 #define $ac_func innocuous_$ac_func
37579
37580 /* System header to define __stub macros and hopefully few prototypes,
37581     which can conflict with char $ac_func (); below.
37582     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37583     <limits.h> exists even on freestanding compilers.  */
37584
37585 #ifdef __STDC__
37586 # include <limits.h>
37587 #else
37588 # include <assert.h>
37589 #endif
37590
37591 #undef $ac_func
37592
37593 /* Override any gcc2 internal prototype to avoid an error.  */
37594 #ifdef __cplusplus
37595 extern "C"
37596 {
37597 #endif
37598 /* We use char because int might match the return type of a gcc2
37599    builtin and then its argument prototype would still apply.  */
37600 char $ac_func ();
37601 /* The GNU C library defines this for functions which it implements
37602     to always fail with ENOSYS.  Some functions are actually named
37603     something starting with __ and the normal name is an alias.  */
37604 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37605 choke me
37606 #else
37607 char (*f) () = $ac_func;
37608 #endif
37609 #ifdef __cplusplus
37610 }
37611 #endif
37612
37613 int
37614 main ()
37615 {
37616 return f != $ac_func;
37617   ;
37618   return 0;
37619 }
37620 _ACEOF
37621 rm -f conftest.$ac_objext conftest$ac_exeext
37622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37623   (eval $ac_link) 2>conftest.er1
37624   ac_status=$?
37625   grep -v '^ *+' conftest.er1 >conftest.err
37626   rm -f conftest.er1
37627   cat conftest.err >&5
37628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37629   (exit $ac_status); } &&
37630          { ac_try='test -z "$ac_c_werror_flag"
37631                          || test ! -s conftest.err'
37632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37633   (eval $ac_try) 2>&5
37634   ac_status=$?
37635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37636   (exit $ac_status); }; } &&
37637          { ac_try='test -s conftest$ac_exeext'
37638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37639   (eval $ac_try) 2>&5
37640   ac_status=$?
37641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37642   (exit $ac_status); }; }; then
37643   eval "$as_ac_var=yes"
37644 else
37645   echo "$as_me: failed program was:" >&5
37646 sed 's/^/| /' conftest.$ac_ext >&5
37647
37648 eval "$as_ac_var=no"
37649 fi
37650 rm -f conftest.err conftest.$ac_objext \
37651       conftest$ac_exeext conftest.$ac_ext
37652 fi
37653 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37654 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37655 if test `eval echo '${'$as_ac_var'}'` = yes; then
37656   cat >>confdefs.h <<_ACEOF
37657 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37658 _ACEOF
37659  ice_have_fwrite=yes
37660 fi
37661 done
37662
37663 if test "${ice_have_fwrite}" = yes; then
37664 echo "$as_me:$LINENO: checking for fwrite declaration in stdio.h stdlib.h" >&5
37665 echo $ECHO_N "checking for fwrite declaration in stdio.h stdlib.h... $ECHO_C" >&6
37666 if test "${ice_cv_have_fwrite_decl+set}" = set; then
37667   echo $ECHO_N "(cached) $ECHO_C" >&6
37668 else
37669
37670 ice_cv_have_fwrite_decl=no
37671 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
37672 ice_re_word='(^|[^a-zA-Z0-9_])'
37673 for header in stdio.h stdlib.h; do
37674 # Check for ordinary declaration
37675 cat >conftest.$ac_ext <<_ACEOF
37676 /* confdefs.h.  */
37677 _ACEOF
37678 cat confdefs.h >>conftest.$ac_ext
37679 cat >>conftest.$ac_ext <<_ACEOF
37680 /* end confdefs.h.  */
37681 #include <$header>
37682
37683 _ACEOF
37684 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37685   $EGREP "${ice_re_word}fwrite[         ]*\(" >/dev/null 2>&1; then
37686   ice_cv_have_fwrite_decl=yes
37687 fi
37688 rm -f conftest*
37689
37690 if test "$ice_cv_have_fwrite_decl" = yes; then
37691         break
37692 fi
37693 # Check for "fixed" declaration like "getpid _PARAMS((int))"
37694 cat >conftest.$ac_ext <<_ACEOF
37695 /* confdefs.h.  */
37696 _ACEOF
37697 cat confdefs.h >>conftest.$ac_ext
37698 cat >>conftest.$ac_ext <<_ACEOF
37699 /* end confdefs.h.  */
37700 #include <$header>
37701
37702 _ACEOF
37703 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37704   $EGREP "${ice_re_word}fwrite[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
37705   ice_cv_have_fwrite_decl=yes
37706 fi
37707 rm -f conftest*
37708
37709 if test "$ice_cv_have_fwrite_decl" = yes; then
37710         break
37711 fi
37712 done
37713
37714 fi
37715
37716 echo "$as_me:$LINENO: result: $ice_cv_have_fwrite_decl" >&5
37717 echo "${ECHO_T}$ice_cv_have_fwrite_decl" >&6
37718 if test "$ice_cv_have_fwrite_decl" = yes; then
37719
37720 cat >>confdefs.h <<_ACEOF
37721 #define HAVE_FWRITE_DECL 1
37722 _ACEOF
37723
37724 fi
37725 fi
37726
37727
37728 for ac_func in getcwd
37729 do
37730 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37731 echo "$as_me:$LINENO: checking for $ac_func" >&5
37732 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37733 if eval "test \"\${$as_ac_var+set}\" = set"; then
37734   echo $ECHO_N "(cached) $ECHO_C" >&6
37735 else
37736   cat >conftest.$ac_ext <<_ACEOF
37737 /* confdefs.h.  */
37738 _ACEOF
37739 cat confdefs.h >>conftest.$ac_ext
37740 cat >>conftest.$ac_ext <<_ACEOF
37741 /* end confdefs.h.  */
37742 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37743    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37744 #define $ac_func innocuous_$ac_func
37745
37746 /* System header to define __stub macros and hopefully few prototypes,
37747     which can conflict with char $ac_func (); below.
37748     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37749     <limits.h> exists even on freestanding compilers.  */
37750
37751 #ifdef __STDC__
37752 # include <limits.h>
37753 #else
37754 # include <assert.h>
37755 #endif
37756
37757 #undef $ac_func
37758
37759 /* Override any gcc2 internal prototype to avoid an error.  */
37760 #ifdef __cplusplus
37761 extern "C"
37762 {
37763 #endif
37764 /* We use char because int might match the return type of a gcc2
37765    builtin and then its argument prototype would still apply.  */
37766 char $ac_func ();
37767 /* The GNU C library defines this for functions which it implements
37768     to always fail with ENOSYS.  Some functions are actually named
37769     something starting with __ and the normal name is an alias.  */
37770 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37771 choke me
37772 #else
37773 char (*f) () = $ac_func;
37774 #endif
37775 #ifdef __cplusplus
37776 }
37777 #endif
37778
37779 int
37780 main ()
37781 {
37782 return f != $ac_func;
37783   ;
37784   return 0;
37785 }
37786 _ACEOF
37787 rm -f conftest.$ac_objext conftest$ac_exeext
37788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37789   (eval $ac_link) 2>conftest.er1
37790   ac_status=$?
37791   grep -v '^ *+' conftest.er1 >conftest.err
37792   rm -f conftest.er1
37793   cat conftest.err >&5
37794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37795   (exit $ac_status); } &&
37796          { ac_try='test -z "$ac_c_werror_flag"
37797                          || test ! -s conftest.err'
37798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37799   (eval $ac_try) 2>&5
37800   ac_status=$?
37801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37802   (exit $ac_status); }; } &&
37803          { ac_try='test -s conftest$ac_exeext'
37804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37805   (eval $ac_try) 2>&5
37806   ac_status=$?
37807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37808   (exit $ac_status); }; }; then
37809   eval "$as_ac_var=yes"
37810 else
37811   echo "$as_me: failed program was:" >&5
37812 sed 's/^/| /' conftest.$ac_ext >&5
37813
37814 eval "$as_ac_var=no"
37815 fi
37816 rm -f conftest.err conftest.$ac_objext \
37817       conftest$ac_exeext conftest.$ac_ext
37818 fi
37819 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37820 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37821 if test `eval echo '${'$as_ac_var'}'` = yes; then
37822   cat >>confdefs.h <<_ACEOF
37823 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37824 _ACEOF
37825
37826 else
37827   case $LIBOBJS in
37828     "$ac_func.$ac_objext"   | \
37829   *" $ac_func.$ac_objext"   | \
37830     "$ac_func.$ac_objext "* | \
37831   *" $ac_func.$ac_objext "* ) ;;
37832   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
37833 esac
37834
37835 fi
37836 done
37837
37838
37839
37840 for ac_func in getfsent
37841 do
37842 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37843 echo "$as_me:$LINENO: checking for $ac_func" >&5
37844 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37845 if eval "test \"\${$as_ac_var+set}\" = set"; then
37846   echo $ECHO_N "(cached) $ECHO_C" >&6
37847 else
37848   cat >conftest.$ac_ext <<_ACEOF
37849 /* confdefs.h.  */
37850 _ACEOF
37851 cat confdefs.h >>conftest.$ac_ext
37852 cat >>conftest.$ac_ext <<_ACEOF
37853 /* end confdefs.h.  */
37854 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37855    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37856 #define $ac_func innocuous_$ac_func
37857
37858 /* System header to define __stub macros and hopefully few prototypes,
37859     which can conflict with char $ac_func (); below.
37860     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37861     <limits.h> exists even on freestanding compilers.  */
37862
37863 #ifdef __STDC__
37864 # include <limits.h>
37865 #else
37866 # include <assert.h>
37867 #endif
37868
37869 #undef $ac_func
37870
37871 /* Override any gcc2 internal prototype to avoid an error.  */
37872 #ifdef __cplusplus
37873 extern "C"
37874 {
37875 #endif
37876 /* We use char because int might match the return type of a gcc2
37877    builtin and then its argument prototype would still apply.  */
37878 char $ac_func ();
37879 /* The GNU C library defines this for functions which it implements
37880     to always fail with ENOSYS.  Some functions are actually named
37881     something starting with __ and the normal name is an alias.  */
37882 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37883 choke me
37884 #else
37885 char (*f) () = $ac_func;
37886 #endif
37887 #ifdef __cplusplus
37888 }
37889 #endif
37890
37891 int
37892 main ()
37893 {
37894 return f != $ac_func;
37895   ;
37896   return 0;
37897 }
37898 _ACEOF
37899 rm -f conftest.$ac_objext conftest$ac_exeext
37900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37901   (eval $ac_link) 2>conftest.er1
37902   ac_status=$?
37903   grep -v '^ *+' conftest.er1 >conftest.err
37904   rm -f conftest.er1
37905   cat conftest.err >&5
37906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37907   (exit $ac_status); } &&
37908          { ac_try='test -z "$ac_c_werror_flag"
37909                          || test ! -s conftest.err'
37910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37911   (eval $ac_try) 2>&5
37912   ac_status=$?
37913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37914   (exit $ac_status); }; } &&
37915          { ac_try='test -s conftest$ac_exeext'
37916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37917   (eval $ac_try) 2>&5
37918   ac_status=$?
37919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37920   (exit $ac_status); }; }; then
37921   eval "$as_ac_var=yes"
37922 else
37923   echo "$as_me: failed program was:" >&5
37924 sed 's/^/| /' conftest.$ac_ext >&5
37925
37926 eval "$as_ac_var=no"
37927 fi
37928 rm -f conftest.err conftest.$ac_objext \
37929       conftest$ac_exeext conftest.$ac_ext
37930 fi
37931 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37932 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37933 if test `eval echo '${'$as_ac_var'}'` = yes; then
37934   cat >>confdefs.h <<_ACEOF
37935 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37936 _ACEOF
37937
37938 fi
37939 done
37940
37941
37942 ice_have_gethostname=no
37943
37944 for ac_func in gethostname
37945 do
37946 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37947 echo "$as_me:$LINENO: checking for $ac_func" >&5
37948 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37949 if eval "test \"\${$as_ac_var+set}\" = set"; then
37950   echo $ECHO_N "(cached) $ECHO_C" >&6
37951 else
37952   cat >conftest.$ac_ext <<_ACEOF
37953 /* confdefs.h.  */
37954 _ACEOF
37955 cat confdefs.h >>conftest.$ac_ext
37956 cat >>conftest.$ac_ext <<_ACEOF
37957 /* end confdefs.h.  */
37958 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37959    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37960 #define $ac_func innocuous_$ac_func
37961
37962 /* System header to define __stub macros and hopefully few prototypes,
37963     which can conflict with char $ac_func (); below.
37964     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37965     <limits.h> exists even on freestanding compilers.  */
37966
37967 #ifdef __STDC__
37968 # include <limits.h>
37969 #else
37970 # include <assert.h>
37971 #endif
37972
37973 #undef $ac_func
37974
37975 /* Override any gcc2 internal prototype to avoid an error.  */
37976 #ifdef __cplusplus
37977 extern "C"
37978 {
37979 #endif
37980 /* We use char because int might match the return type of a gcc2
37981    builtin and then its argument prototype would still apply.  */
37982 char $ac_func ();
37983 /* The GNU C library defines this for functions which it implements
37984     to always fail with ENOSYS.  Some functions are actually named
37985     something starting with __ and the normal name is an alias.  */
37986 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37987 choke me
37988 #else
37989 char (*f) () = $ac_func;
37990 #endif
37991 #ifdef __cplusplus
37992 }
37993 #endif
37994
37995 int
37996 main ()
37997 {
37998 return f != $ac_func;
37999   ;
38000   return 0;
38001 }
38002 _ACEOF
38003 rm -f conftest.$ac_objext conftest$ac_exeext
38004 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38005   (eval $ac_link) 2>conftest.er1
38006   ac_status=$?
38007   grep -v '^ *+' conftest.er1 >conftest.err
38008   rm -f conftest.er1
38009   cat conftest.err >&5
38010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38011   (exit $ac_status); } &&
38012          { ac_try='test -z "$ac_c_werror_flag"
38013                          || test ! -s conftest.err'
38014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38015   (eval $ac_try) 2>&5
38016   ac_status=$?
38017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38018   (exit $ac_status); }; } &&
38019          { ac_try='test -s conftest$ac_exeext'
38020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38021   (eval $ac_try) 2>&5
38022   ac_status=$?
38023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38024   (exit $ac_status); }; }; then
38025   eval "$as_ac_var=yes"
38026 else
38027   echo "$as_me: failed program was:" >&5
38028 sed 's/^/| /' conftest.$ac_ext >&5
38029
38030 eval "$as_ac_var=no"
38031 fi
38032 rm -f conftest.err conftest.$ac_objext \
38033       conftest$ac_exeext conftest.$ac_ext
38034 fi
38035 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38036 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38037 if test `eval echo '${'$as_ac_var'}'` = yes; then
38038   cat >>confdefs.h <<_ACEOF
38039 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38040 _ACEOF
38041  ice_have_gethostname=yes
38042 fi
38043 done
38044
38045 if test "${ice_have_gethostname}" = yes; then
38046 echo "$as_me:$LINENO: checking for gethostname declaration in unistd.h" >&5
38047 echo $ECHO_N "checking for gethostname declaration in unistd.h... $ECHO_C" >&6
38048 if test "${ice_cv_have_gethostname_decl+set}" = set; then
38049   echo $ECHO_N "(cached) $ECHO_C" >&6
38050 else
38051
38052 ice_cv_have_gethostname_decl=no
38053 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
38054 ice_re_word='(^|[^a-zA-Z0-9_])'
38055 for header in unistd.h; do
38056 # Check for ordinary declaration
38057 cat >conftest.$ac_ext <<_ACEOF
38058 /* confdefs.h.  */
38059 _ACEOF
38060 cat confdefs.h >>conftest.$ac_ext
38061 cat >>conftest.$ac_ext <<_ACEOF
38062 /* end confdefs.h.  */
38063 #include <$header>
38064
38065 _ACEOF
38066 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38067   $EGREP "${ice_re_word}gethostname[    ]*\(" >/dev/null 2>&1; then
38068   ice_cv_have_gethostname_decl=yes
38069 fi
38070 rm -f conftest*
38071
38072 if test "$ice_cv_have_gethostname_decl" = yes; then
38073         break
38074 fi
38075 # Check for "fixed" declaration like "getpid _PARAMS((int))"
38076 cat >conftest.$ac_ext <<_ACEOF
38077 /* confdefs.h.  */
38078 _ACEOF
38079 cat confdefs.h >>conftest.$ac_ext
38080 cat >>conftest.$ac_ext <<_ACEOF
38081 /* end confdefs.h.  */
38082 #include <$header>
38083
38084 _ACEOF
38085 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38086   $EGREP "${ice_re_word}gethostname[    ]*$ice_re_params\(\(" >/dev/null 2>&1; then
38087   ice_cv_have_gethostname_decl=yes
38088 fi
38089 rm -f conftest*
38090
38091 if test "$ice_cv_have_gethostname_decl" = yes; then
38092         break
38093 fi
38094 done
38095
38096 fi
38097
38098 echo "$as_me:$LINENO: result: $ice_cv_have_gethostname_decl" >&5
38099 echo "${ECHO_T}$ice_cv_have_gethostname_decl" >&6
38100 if test "$ice_cv_have_gethostname_decl" = yes; then
38101
38102 cat >>confdefs.h <<_ACEOF
38103 #define HAVE_GETHOSTNAME_DECL 1
38104 _ACEOF
38105
38106 fi
38107 fi
38108
38109 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
38110 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
38111 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
38112 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
38113   echo $ECHO_N "(cached) $ECHO_C" >&6
38114 else
38115   ac_check_lib_save_LIBS=$LIBS
38116 LIBS="-lsun  $LIBS"
38117 cat >conftest.$ac_ext <<_ACEOF
38118 /* confdefs.h.  */
38119 _ACEOF
38120 cat confdefs.h >>conftest.$ac_ext
38121 cat >>conftest.$ac_ext <<_ACEOF
38122 /* end confdefs.h.  */
38123
38124 /* Override any gcc2 internal prototype to avoid an error.  */
38125 #ifdef __cplusplus
38126 extern "C"
38127 #endif
38128 /* We use char because int might match the return type of a gcc2
38129    builtin and then its argument prototype would still apply.  */
38130 char getmntent ();
38131 int
38132 main ()
38133 {
38134 getmntent ();
38135   ;
38136   return 0;
38137 }
38138 _ACEOF
38139 rm -f conftest.$ac_objext conftest$ac_exeext
38140 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38141   (eval $ac_link) 2>conftest.er1
38142   ac_status=$?
38143   grep -v '^ *+' conftest.er1 >conftest.err
38144   rm -f conftest.er1
38145   cat conftest.err >&5
38146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38147   (exit $ac_status); } &&
38148          { ac_try='test -z "$ac_c_werror_flag"
38149                          || test ! -s conftest.err'
38150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38151   (eval $ac_try) 2>&5
38152   ac_status=$?
38153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38154   (exit $ac_status); }; } &&
38155          { ac_try='test -s conftest$ac_exeext'
38156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38157   (eval $ac_try) 2>&5
38158   ac_status=$?
38159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38160   (exit $ac_status); }; }; then
38161   ac_cv_lib_sun_getmntent=yes
38162 else
38163   echo "$as_me: failed program was:" >&5
38164 sed 's/^/| /' conftest.$ac_ext >&5
38165
38166 ac_cv_lib_sun_getmntent=no
38167 fi
38168 rm -f conftest.err conftest.$ac_objext \
38169       conftest$ac_exeext conftest.$ac_ext
38170 LIBS=$ac_check_lib_save_LIBS
38171 fi
38172 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
38173 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
38174 if test $ac_cv_lib_sun_getmntent = yes; then
38175   LIBS="-lsun $LIBS"
38176 else
38177   echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
38178 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
38179 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
38180   echo $ECHO_N "(cached) $ECHO_C" >&6
38181 else
38182   ac_check_lib_save_LIBS=$LIBS
38183 LIBS="-lseq  $LIBS"
38184 cat >conftest.$ac_ext <<_ACEOF
38185 /* confdefs.h.  */
38186 _ACEOF
38187 cat confdefs.h >>conftest.$ac_ext
38188 cat >>conftest.$ac_ext <<_ACEOF
38189 /* end confdefs.h.  */
38190
38191 /* Override any gcc2 internal prototype to avoid an error.  */
38192 #ifdef __cplusplus
38193 extern "C"
38194 #endif
38195 /* We use char because int might match the return type of a gcc2
38196    builtin and then its argument prototype would still apply.  */
38197 char getmntent ();
38198 int
38199 main ()
38200 {
38201 getmntent ();
38202   ;
38203   return 0;
38204 }
38205 _ACEOF
38206 rm -f conftest.$ac_objext conftest$ac_exeext
38207 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38208   (eval $ac_link) 2>conftest.er1
38209   ac_status=$?
38210   grep -v '^ *+' conftest.er1 >conftest.err
38211   rm -f conftest.er1
38212   cat conftest.err >&5
38213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38214   (exit $ac_status); } &&
38215          { ac_try='test -z "$ac_c_werror_flag"
38216                          || test ! -s conftest.err'
38217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38218   (eval $ac_try) 2>&5
38219   ac_status=$?
38220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38221   (exit $ac_status); }; } &&
38222          { ac_try='test -s conftest$ac_exeext'
38223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38224   (eval $ac_try) 2>&5
38225   ac_status=$?
38226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38227   (exit $ac_status); }; }; then
38228   ac_cv_lib_seq_getmntent=yes
38229 else
38230   echo "$as_me: failed program was:" >&5
38231 sed 's/^/| /' conftest.$ac_ext >&5
38232
38233 ac_cv_lib_seq_getmntent=no
38234 fi
38235 rm -f conftest.err conftest.$ac_objext \
38236       conftest$ac_exeext conftest.$ac_ext
38237 LIBS=$ac_check_lib_save_LIBS
38238 fi
38239 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
38240 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
38241 if test $ac_cv_lib_seq_getmntent = yes; then
38242   LIBS="-lseq $LIBS"
38243 else
38244   echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
38245 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
38246 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
38247   echo $ECHO_N "(cached) $ECHO_C" >&6
38248 else
38249   ac_check_lib_save_LIBS=$LIBS
38250 LIBS="-lgen  $LIBS"
38251 cat >conftest.$ac_ext <<_ACEOF
38252 /* confdefs.h.  */
38253 _ACEOF
38254 cat confdefs.h >>conftest.$ac_ext
38255 cat >>conftest.$ac_ext <<_ACEOF
38256 /* end confdefs.h.  */
38257
38258 /* Override any gcc2 internal prototype to avoid an error.  */
38259 #ifdef __cplusplus
38260 extern "C"
38261 #endif
38262 /* We use char because int might match the return type of a gcc2
38263    builtin and then its argument prototype would still apply.  */
38264 char getmntent ();
38265 int
38266 main ()
38267 {
38268 getmntent ();
38269   ;
38270   return 0;
38271 }
38272 _ACEOF
38273 rm -f conftest.$ac_objext conftest$ac_exeext
38274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38275   (eval $ac_link) 2>conftest.er1
38276   ac_status=$?
38277   grep -v '^ *+' conftest.er1 >conftest.err
38278   rm -f conftest.er1
38279   cat conftest.err >&5
38280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38281   (exit $ac_status); } &&
38282          { ac_try='test -z "$ac_c_werror_flag"
38283                          || test ! -s conftest.err'
38284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38285   (eval $ac_try) 2>&5
38286   ac_status=$?
38287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38288   (exit $ac_status); }; } &&
38289          { ac_try='test -s conftest$ac_exeext'
38290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38291   (eval $ac_try) 2>&5
38292   ac_status=$?
38293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38294   (exit $ac_status); }; }; then
38295   ac_cv_lib_gen_getmntent=yes
38296 else
38297   echo "$as_me: failed program was:" >&5
38298 sed 's/^/| /' conftest.$ac_ext >&5
38299
38300 ac_cv_lib_gen_getmntent=no
38301 fi
38302 rm -f conftest.err conftest.$ac_objext \
38303       conftest$ac_exeext conftest.$ac_ext
38304 LIBS=$ac_check_lib_save_LIBS
38305 fi
38306 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
38307 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
38308 if test $ac_cv_lib_gen_getmntent = yes; then
38309   LIBS="-lgen $LIBS"
38310 fi
38311
38312 fi
38313
38314 fi
38315
38316
38317 for ac_func in getmntent
38318 do
38319 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38320 echo "$as_me:$LINENO: checking for $ac_func" >&5
38321 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38322 if eval "test \"\${$as_ac_var+set}\" = set"; then
38323   echo $ECHO_N "(cached) $ECHO_C" >&6
38324 else
38325   cat >conftest.$ac_ext <<_ACEOF
38326 /* confdefs.h.  */
38327 _ACEOF
38328 cat confdefs.h >>conftest.$ac_ext
38329 cat >>conftest.$ac_ext <<_ACEOF
38330 /* end confdefs.h.  */
38331 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38332    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38333 #define $ac_func innocuous_$ac_func
38334
38335 /* System header to define __stub macros and hopefully few prototypes,
38336     which can conflict with char $ac_func (); below.
38337     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38338     <limits.h> exists even on freestanding compilers.  */
38339
38340 #ifdef __STDC__
38341 # include <limits.h>
38342 #else
38343 # include <assert.h>
38344 #endif
38345
38346 #undef $ac_func
38347
38348 /* Override any gcc2 internal prototype to avoid an error.  */
38349 #ifdef __cplusplus
38350 extern "C"
38351 {
38352 #endif
38353 /* We use char because int might match the return type of a gcc2
38354    builtin and then its argument prototype would still apply.  */
38355 char $ac_func ();
38356 /* The GNU C library defines this for functions which it implements
38357     to always fail with ENOSYS.  Some functions are actually named
38358     something starting with __ and the normal name is an alias.  */
38359 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38360 choke me
38361 #else
38362 char (*f) () = $ac_func;
38363 #endif
38364 #ifdef __cplusplus
38365 }
38366 #endif
38367
38368 int
38369 main ()
38370 {
38371 return f != $ac_func;
38372   ;
38373   return 0;
38374 }
38375 _ACEOF
38376 rm -f conftest.$ac_objext conftest$ac_exeext
38377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38378   (eval $ac_link) 2>conftest.er1
38379   ac_status=$?
38380   grep -v '^ *+' conftest.er1 >conftest.err
38381   rm -f conftest.er1
38382   cat conftest.err >&5
38383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38384   (exit $ac_status); } &&
38385          { ac_try='test -z "$ac_c_werror_flag"
38386                          || test ! -s conftest.err'
38387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38388   (eval $ac_try) 2>&5
38389   ac_status=$?
38390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38391   (exit $ac_status); }; } &&
38392          { ac_try='test -s conftest$ac_exeext'
38393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38394   (eval $ac_try) 2>&5
38395   ac_status=$?
38396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38397   (exit $ac_status); }; }; then
38398   eval "$as_ac_var=yes"
38399 else
38400   echo "$as_me: failed program was:" >&5
38401 sed 's/^/| /' conftest.$ac_ext >&5
38402
38403 eval "$as_ac_var=no"
38404 fi
38405 rm -f conftest.err conftest.$ac_objext \
38406       conftest$ac_exeext conftest.$ac_ext
38407 fi
38408 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38409 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38410 if test `eval echo '${'$as_ac_var'}'` = yes; then
38411   cat >>confdefs.h <<_ACEOF
38412 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38413 _ACEOF
38414
38415 fi
38416 done
38417
38418
38419
38420 ice_have_getopt=no
38421
38422 for ac_func in getopt
38423 do
38424 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38425 echo "$as_me:$LINENO: checking for $ac_func" >&5
38426 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38427 if eval "test \"\${$as_ac_var+set}\" = set"; then
38428   echo $ECHO_N "(cached) $ECHO_C" >&6
38429 else
38430   cat >conftest.$ac_ext <<_ACEOF
38431 /* confdefs.h.  */
38432 _ACEOF
38433 cat confdefs.h >>conftest.$ac_ext
38434 cat >>conftest.$ac_ext <<_ACEOF
38435 /* end confdefs.h.  */
38436 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38437    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38438 #define $ac_func innocuous_$ac_func
38439
38440 /* System header to define __stub macros and hopefully few prototypes,
38441     which can conflict with char $ac_func (); below.
38442     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38443     <limits.h> exists even on freestanding compilers.  */
38444
38445 #ifdef __STDC__
38446 # include <limits.h>
38447 #else
38448 # include <assert.h>
38449 #endif
38450
38451 #undef $ac_func
38452
38453 /* Override any gcc2 internal prototype to avoid an error.  */
38454 #ifdef __cplusplus
38455 extern "C"
38456 {
38457 #endif
38458 /* We use char because int might match the return type of a gcc2
38459    builtin and then its argument prototype would still apply.  */
38460 char $ac_func ();
38461 /* The GNU C library defines this for functions which it implements
38462     to always fail with ENOSYS.  Some functions are actually named
38463     something starting with __ and the normal name is an alias.  */
38464 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38465 choke me
38466 #else
38467 char (*f) () = $ac_func;
38468 #endif
38469 #ifdef __cplusplus
38470 }
38471 #endif
38472
38473 int
38474 main ()
38475 {
38476 return f != $ac_func;
38477   ;
38478   return 0;
38479 }
38480 _ACEOF
38481 rm -f conftest.$ac_objext conftest$ac_exeext
38482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38483   (eval $ac_link) 2>conftest.er1
38484   ac_status=$?
38485   grep -v '^ *+' conftest.er1 >conftest.err
38486   rm -f conftest.er1
38487   cat conftest.err >&5
38488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38489   (exit $ac_status); } &&
38490          { ac_try='test -z "$ac_c_werror_flag"
38491                          || test ! -s conftest.err'
38492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38493   (eval $ac_try) 2>&5
38494   ac_status=$?
38495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38496   (exit $ac_status); }; } &&
38497          { ac_try='test -s conftest$ac_exeext'
38498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38499   (eval $ac_try) 2>&5
38500   ac_status=$?
38501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38502   (exit $ac_status); }; }; then
38503   eval "$as_ac_var=yes"
38504 else
38505   echo "$as_me: failed program was:" >&5
38506 sed 's/^/| /' conftest.$ac_ext >&5
38507
38508 eval "$as_ac_var=no"
38509 fi
38510 rm -f conftest.err conftest.$ac_objext \
38511       conftest$ac_exeext conftest.$ac_ext
38512 fi
38513 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38514 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38515 if test `eval echo '${'$as_ac_var'}'` = yes; then
38516   cat >>confdefs.h <<_ACEOF
38517 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38518 _ACEOF
38519  ice_have_getopt=yes
38520 fi
38521 done
38522
38523 if test "${ice_have_getopt}" = yes; then
38524 echo "$as_me:$LINENO: checking for getopt declaration in stdlib.h unistd.h libc.h" >&5
38525 echo $ECHO_N "checking for getopt declaration in stdlib.h unistd.h libc.h... $ECHO_C" >&6
38526 if test "${ice_cv_have_getopt_decl+set}" = set; then
38527   echo $ECHO_N "(cached) $ECHO_C" >&6
38528 else
38529
38530 ice_cv_have_getopt_decl=no
38531 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
38532 ice_re_word='(^|[^a-zA-Z0-9_])'
38533 for header in stdlib.h unistd.h libc.h; do
38534 # Check for ordinary declaration
38535 cat >conftest.$ac_ext <<_ACEOF
38536 /* confdefs.h.  */
38537 _ACEOF
38538 cat confdefs.h >>conftest.$ac_ext
38539 cat >>conftest.$ac_ext <<_ACEOF
38540 /* end confdefs.h.  */
38541 #include <$header>
38542
38543 _ACEOF
38544 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38545   $EGREP "${ice_re_word}getopt[         ]*\(" >/dev/null 2>&1; then
38546   ice_cv_have_getopt_decl=yes
38547 fi
38548 rm -f conftest*
38549
38550 if test "$ice_cv_have_getopt_decl" = yes; then
38551         break
38552 fi
38553 # Check for "fixed" declaration like "getpid _PARAMS((int))"
38554 cat >conftest.$ac_ext <<_ACEOF
38555 /* confdefs.h.  */
38556 _ACEOF
38557 cat confdefs.h >>conftest.$ac_ext
38558 cat >>conftest.$ac_ext <<_ACEOF
38559 /* end confdefs.h.  */
38560 #include <$header>
38561
38562 _ACEOF
38563 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38564   $EGREP "${ice_re_word}getopt[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
38565   ice_cv_have_getopt_decl=yes
38566 fi
38567 rm -f conftest*
38568
38569 if test "$ice_cv_have_getopt_decl" = yes; then
38570         break
38571 fi
38572 done
38573
38574 fi
38575
38576 echo "$as_me:$LINENO: result: $ice_cv_have_getopt_decl" >&5
38577 echo "${ECHO_T}$ice_cv_have_getopt_decl" >&6
38578 if test "$ice_cv_have_getopt_decl" = yes; then
38579
38580 cat >>confdefs.h <<_ACEOF
38581 #define HAVE_GETOPT_DECL 1
38582 _ACEOF
38583
38584 fi
38585 fi
38586
38587
38588 ice_have_getpeername=no
38589
38590 for ac_func in getpeername
38591 do
38592 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38593 echo "$as_me:$LINENO: checking for $ac_func" >&5
38594 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38595 if eval "test \"\${$as_ac_var+set}\" = set"; then
38596   echo $ECHO_N "(cached) $ECHO_C" >&6
38597 else
38598   cat >conftest.$ac_ext <<_ACEOF
38599 /* confdefs.h.  */
38600 _ACEOF
38601 cat confdefs.h >>conftest.$ac_ext
38602 cat >>conftest.$ac_ext <<_ACEOF
38603 /* end confdefs.h.  */
38604 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38605    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38606 #define $ac_func innocuous_$ac_func
38607
38608 /* System header to define __stub macros and hopefully few prototypes,
38609     which can conflict with char $ac_func (); below.
38610     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38611     <limits.h> exists even on freestanding compilers.  */
38612
38613 #ifdef __STDC__
38614 # include <limits.h>
38615 #else
38616 # include <assert.h>
38617 #endif
38618
38619 #undef $ac_func
38620
38621 /* Override any gcc2 internal prototype to avoid an error.  */
38622 #ifdef __cplusplus
38623 extern "C"
38624 {
38625 #endif
38626 /* We use char because int might match the return type of a gcc2
38627    builtin and then its argument prototype would still apply.  */
38628 char $ac_func ();
38629 /* The GNU C library defines this for functions which it implements
38630     to always fail with ENOSYS.  Some functions are actually named
38631     something starting with __ and the normal name is an alias.  */
38632 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38633 choke me
38634 #else
38635 char (*f) () = $ac_func;
38636 #endif
38637 #ifdef __cplusplus
38638 }
38639 #endif
38640
38641 int
38642 main ()
38643 {
38644 return f != $ac_func;
38645   ;
38646   return 0;
38647 }
38648 _ACEOF
38649 rm -f conftest.$ac_objext conftest$ac_exeext
38650 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38651   (eval $ac_link) 2>conftest.er1
38652   ac_status=$?
38653   grep -v '^ *+' conftest.er1 >conftest.err
38654   rm -f conftest.er1
38655   cat conftest.err >&5
38656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38657   (exit $ac_status); } &&
38658          { ac_try='test -z "$ac_c_werror_flag"
38659                          || test ! -s conftest.err'
38660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38661   (eval $ac_try) 2>&5
38662   ac_status=$?
38663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38664   (exit $ac_status); }; } &&
38665          { ac_try='test -s conftest$ac_exeext'
38666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38667   (eval $ac_try) 2>&5
38668   ac_status=$?
38669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38670   (exit $ac_status); }; }; then
38671   eval "$as_ac_var=yes"
38672 else
38673   echo "$as_me: failed program was:" >&5
38674 sed 's/^/| /' conftest.$ac_ext >&5
38675
38676 eval "$as_ac_var=no"
38677 fi
38678 rm -f conftest.err conftest.$ac_objext \
38679       conftest$ac_exeext conftest.$ac_ext
38680 fi
38681 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38682 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38683 if test `eval echo '${'$as_ac_var'}'` = yes; then
38684   cat >>confdefs.h <<_ACEOF
38685 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38686 _ACEOF
38687  ice_have_getpeername=yes
38688 fi
38689 done
38690
38691 if test "${ice_have_getpeername}" = yes; then
38692 echo "$as_me:$LINENO: checking for getpeername declaration in sys/types.h sys/socket.h" >&5
38693 echo $ECHO_N "checking for getpeername declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
38694 if test "${ice_cv_have_getpeername_decl+set}" = set; then
38695   echo $ECHO_N "(cached) $ECHO_C" >&6
38696 else
38697
38698 ice_cv_have_getpeername_decl=no
38699 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
38700 ice_re_word='(^|[^a-zA-Z0-9_])'
38701 for header in sys/types.h sys/socket.h; do
38702 # Check for ordinary declaration
38703 cat >conftest.$ac_ext <<_ACEOF
38704 /* confdefs.h.  */
38705 _ACEOF
38706 cat confdefs.h >>conftest.$ac_ext
38707 cat >>conftest.$ac_ext <<_ACEOF
38708 /* end confdefs.h.  */
38709 #include <$header>
38710
38711 _ACEOF
38712 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38713   $EGREP "${ice_re_word}getpeername[    ]*\(" >/dev/null 2>&1; then
38714   ice_cv_have_getpeername_decl=yes
38715 fi
38716 rm -f conftest*
38717
38718 if test "$ice_cv_have_getpeername_decl" = yes; then
38719         break
38720 fi
38721 # Check for "fixed" declaration like "getpid _PARAMS((int))"
38722 cat >conftest.$ac_ext <<_ACEOF
38723 /* confdefs.h.  */
38724 _ACEOF
38725 cat confdefs.h >>conftest.$ac_ext
38726 cat >>conftest.$ac_ext <<_ACEOF
38727 /* end confdefs.h.  */
38728 #include <$header>
38729
38730 _ACEOF
38731 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38732   $EGREP "${ice_re_word}getpeername[    ]*$ice_re_params\(\(" >/dev/null 2>&1; then
38733   ice_cv_have_getpeername_decl=yes
38734 fi
38735 rm -f conftest*
38736
38737 if test "$ice_cv_have_getpeername_decl" = yes; then
38738         break
38739 fi
38740 done
38741
38742 fi
38743
38744 echo "$as_me:$LINENO: result: $ice_cv_have_getpeername_decl" >&5
38745 echo "${ECHO_T}$ice_cv_have_getpeername_decl" >&6
38746 if test "$ice_cv_have_getpeername_decl" = yes; then
38747
38748 cat >>confdefs.h <<_ACEOF
38749 #define HAVE_GETPEERNAME_DECL 1
38750 _ACEOF
38751
38752 fi
38753 fi
38754
38755
38756 for ac_func in getpgrp
38757 do
38758 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38759 echo "$as_me:$LINENO: checking for $ac_func" >&5
38760 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38761 if eval "test \"\${$as_ac_var+set}\" = set"; then
38762   echo $ECHO_N "(cached) $ECHO_C" >&6
38763 else
38764   cat >conftest.$ac_ext <<_ACEOF
38765 /* confdefs.h.  */
38766 _ACEOF
38767 cat confdefs.h >>conftest.$ac_ext
38768 cat >>conftest.$ac_ext <<_ACEOF
38769 /* end confdefs.h.  */
38770 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38771    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38772 #define $ac_func innocuous_$ac_func
38773
38774 /* System header to define __stub macros and hopefully few prototypes,
38775     which can conflict with char $ac_func (); below.
38776     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38777     <limits.h> exists even on freestanding compilers.  */
38778
38779 #ifdef __STDC__
38780 # include <limits.h>
38781 #else
38782 # include <assert.h>
38783 #endif
38784
38785 #undef $ac_func
38786
38787 /* Override any gcc2 internal prototype to avoid an error.  */
38788 #ifdef __cplusplus
38789 extern "C"
38790 {
38791 #endif
38792 /* We use char because int might match the return type of a gcc2
38793    builtin and then its argument prototype would still apply.  */
38794 char $ac_func ();
38795 /* The GNU C library defines this for functions which it implements
38796     to always fail with ENOSYS.  Some functions are actually named
38797     something starting with __ and the normal name is an alias.  */
38798 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38799 choke me
38800 #else
38801 char (*f) () = $ac_func;
38802 #endif
38803 #ifdef __cplusplus
38804 }
38805 #endif
38806
38807 int
38808 main ()
38809 {
38810 return f != $ac_func;
38811   ;
38812   return 0;
38813 }
38814 _ACEOF
38815 rm -f conftest.$ac_objext conftest$ac_exeext
38816 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38817   (eval $ac_link) 2>conftest.er1
38818   ac_status=$?
38819   grep -v '^ *+' conftest.er1 >conftest.err
38820   rm -f conftest.er1
38821   cat conftest.err >&5
38822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38823   (exit $ac_status); } &&
38824          { ac_try='test -z "$ac_c_werror_flag"
38825                          || test ! -s conftest.err'
38826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38827   (eval $ac_try) 2>&5
38828   ac_status=$?
38829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38830   (exit $ac_status); }; } &&
38831          { ac_try='test -s conftest$ac_exeext'
38832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38833   (eval $ac_try) 2>&5
38834   ac_status=$?
38835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38836   (exit $ac_status); }; }; then
38837   eval "$as_ac_var=yes"
38838 else
38839   echo "$as_me: failed program was:" >&5
38840 sed 's/^/| /' conftest.$ac_ext >&5
38841
38842 eval "$as_ac_var=no"
38843 fi
38844 rm -f conftest.err conftest.$ac_objext \
38845       conftest$ac_exeext conftest.$ac_ext
38846 fi
38847 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38848 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38849 if test `eval echo '${'$as_ac_var'}'` = yes; then
38850   cat >>confdefs.h <<_ACEOF
38851 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38852 _ACEOF
38853
38854 fi
38855 done
38856
38857 echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
38858 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
38859 if test "${ac_cv_func_getpgrp_void+set}" = set; then
38860   echo $ECHO_N "(cached) $ECHO_C" >&6
38861 else
38862   # Use it with a single arg.
38863 cat >conftest.$ac_ext <<_ACEOF
38864 /* confdefs.h.  */
38865 _ACEOF
38866 cat confdefs.h >>conftest.$ac_ext
38867 cat >>conftest.$ac_ext <<_ACEOF
38868 /* end confdefs.h.  */
38869 $ac_includes_default
38870 int
38871 main ()
38872 {
38873 getpgrp (0);
38874   ;
38875   return 0;
38876 }
38877 _ACEOF
38878 rm -f conftest.$ac_objext
38879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38880   (eval $ac_compile) 2>conftest.er1
38881   ac_status=$?
38882   grep -v '^ *+' conftest.er1 >conftest.err
38883   rm -f conftest.er1
38884   cat conftest.err >&5
38885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38886   (exit $ac_status); } &&
38887          { ac_try='test -z "$ac_c_werror_flag"
38888                          || test ! -s conftest.err'
38889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38890   (eval $ac_try) 2>&5
38891   ac_status=$?
38892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38893   (exit $ac_status); }; } &&
38894          { ac_try='test -s conftest.$ac_objext'
38895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38896   (eval $ac_try) 2>&5
38897   ac_status=$?
38898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38899   (exit $ac_status); }; }; then
38900   ac_cv_func_getpgrp_void=no
38901 else
38902   echo "$as_me: failed program was:" >&5
38903 sed 's/^/| /' conftest.$ac_ext >&5
38904
38905 ac_cv_func_getpgrp_void=yes
38906 fi
38907 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38908
38909 fi
38910 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
38911 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
38912 if test $ac_cv_func_getpgrp_void = yes; then
38913
38914 cat >>confdefs.h <<\_ACEOF
38915 #define GETPGRP_VOID 1
38916 _ACEOF
38917
38918 fi
38919
38920
38921 ice_have_getsockname=no
38922
38923 for ac_func in getsockname
38924 do
38925 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38926 echo "$as_me:$LINENO: checking for $ac_func" >&5
38927 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38928 if eval "test \"\${$as_ac_var+set}\" = set"; then
38929   echo $ECHO_N "(cached) $ECHO_C" >&6
38930 else
38931   cat >conftest.$ac_ext <<_ACEOF
38932 /* confdefs.h.  */
38933 _ACEOF
38934 cat confdefs.h >>conftest.$ac_ext
38935 cat >>conftest.$ac_ext <<_ACEOF
38936 /* end confdefs.h.  */
38937 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38938    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38939 #define $ac_func innocuous_$ac_func
38940
38941 /* System header to define __stub macros and hopefully few prototypes,
38942     which can conflict with char $ac_func (); below.
38943     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38944     <limits.h> exists even on freestanding compilers.  */
38945
38946 #ifdef __STDC__
38947 # include <limits.h>
38948 #else
38949 # include <assert.h>
38950 #endif
38951
38952 #undef $ac_func
38953
38954 /* Override any gcc2 internal prototype to avoid an error.  */
38955 #ifdef __cplusplus
38956 extern "C"
38957 {
38958 #endif
38959 /* We use char because int might match the return type of a gcc2
38960    builtin and then its argument prototype would still apply.  */
38961 char $ac_func ();
38962 /* The GNU C library defines this for functions which it implements
38963     to always fail with ENOSYS.  Some functions are actually named
38964     something starting with __ and the normal name is an alias.  */
38965 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38966 choke me
38967 #else
38968 char (*f) () = $ac_func;
38969 #endif
38970 #ifdef __cplusplus
38971 }
38972 #endif
38973
38974 int
38975 main ()
38976 {
38977 return f != $ac_func;
38978   ;
38979   return 0;
38980 }
38981 _ACEOF
38982 rm -f conftest.$ac_objext conftest$ac_exeext
38983 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38984   (eval $ac_link) 2>conftest.er1
38985   ac_status=$?
38986   grep -v '^ *+' conftest.er1 >conftest.err
38987   rm -f conftest.er1
38988   cat conftest.err >&5
38989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38990   (exit $ac_status); } &&
38991          { ac_try='test -z "$ac_c_werror_flag"
38992                          || test ! -s conftest.err'
38993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38994   (eval $ac_try) 2>&5
38995   ac_status=$?
38996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38997   (exit $ac_status); }; } &&
38998          { ac_try='test -s conftest$ac_exeext'
38999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39000   (eval $ac_try) 2>&5
39001   ac_status=$?
39002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39003   (exit $ac_status); }; }; then
39004   eval "$as_ac_var=yes"
39005 else
39006   echo "$as_me: failed program was:" >&5
39007 sed 's/^/| /' conftest.$ac_ext >&5
39008
39009 eval "$as_ac_var=no"
39010 fi
39011 rm -f conftest.err conftest.$ac_objext \
39012       conftest$ac_exeext conftest.$ac_ext
39013 fi
39014 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39015 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39016 if test `eval echo '${'$as_ac_var'}'` = yes; then
39017   cat >>confdefs.h <<_ACEOF
39018 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39019 _ACEOF
39020  ice_have_getsockname=yes
39021 fi
39022 done
39023
39024 if test "${ice_have_getsockname}" = yes; then
39025 echo "$as_me:$LINENO: checking for getsockname declaration in sys/types.h sys/socket.h" >&5
39026 echo $ECHO_N "checking for getsockname declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
39027 if test "${ice_cv_have_getsockname_decl+set}" = set; then
39028   echo $ECHO_N "(cached) $ECHO_C" >&6
39029 else
39030
39031 ice_cv_have_getsockname_decl=no
39032 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
39033 ice_re_word='(^|[^a-zA-Z0-9_])'
39034 for header in sys/types.h sys/socket.h; do
39035 # Check for ordinary declaration
39036 cat >conftest.$ac_ext <<_ACEOF
39037 /* confdefs.h.  */
39038 _ACEOF
39039 cat confdefs.h >>conftest.$ac_ext
39040 cat >>conftest.$ac_ext <<_ACEOF
39041 /* end confdefs.h.  */
39042 #include <$header>
39043
39044 _ACEOF
39045 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39046   $EGREP "${ice_re_word}getsockname[    ]*\(" >/dev/null 2>&1; then
39047   ice_cv_have_getsockname_decl=yes
39048 fi
39049 rm -f conftest*
39050
39051 if test "$ice_cv_have_getsockname_decl" = yes; then
39052         break
39053 fi
39054 # Check for "fixed" declaration like "getpid _PARAMS((int))"
39055 cat >conftest.$ac_ext <<_ACEOF
39056 /* confdefs.h.  */
39057 _ACEOF
39058 cat confdefs.h >>conftest.$ac_ext
39059 cat >>conftest.$ac_ext <<_ACEOF
39060 /* end confdefs.h.  */
39061 #include <$header>
39062
39063 _ACEOF
39064 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39065   $EGREP "${ice_re_word}getsockname[    ]*$ice_re_params\(\(" >/dev/null 2>&1; then
39066   ice_cv_have_getsockname_decl=yes
39067 fi
39068 rm -f conftest*
39069
39070 if test "$ice_cv_have_getsockname_decl" = yes; then
39071         break
39072 fi
39073 done
39074
39075 fi
39076
39077 echo "$as_me:$LINENO: result: $ice_cv_have_getsockname_decl" >&5
39078 echo "${ECHO_T}$ice_cv_have_getsockname_decl" >&6
39079 if test "$ice_cv_have_getsockname_decl" = yes; then
39080
39081 cat >>confdefs.h <<_ACEOF
39082 #define HAVE_GETSOCKNAME_DECL 1
39083 _ACEOF
39084
39085 fi
39086 fi
39087
39088
39089 ice_have_getsockopt=no
39090
39091 for ac_func in getsockopt
39092 do
39093 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39094 echo "$as_me:$LINENO: checking for $ac_func" >&5
39095 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39096 if eval "test \"\${$as_ac_var+set}\" = set"; then
39097   echo $ECHO_N "(cached) $ECHO_C" >&6
39098 else
39099   cat >conftest.$ac_ext <<_ACEOF
39100 /* confdefs.h.  */
39101 _ACEOF
39102 cat confdefs.h >>conftest.$ac_ext
39103 cat >>conftest.$ac_ext <<_ACEOF
39104 /* end confdefs.h.  */
39105 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39106    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39107 #define $ac_func innocuous_$ac_func
39108
39109 /* System header to define __stub macros and hopefully few prototypes,
39110     which can conflict with char $ac_func (); below.
39111     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39112     <limits.h> exists even on freestanding compilers.  */
39113
39114 #ifdef __STDC__
39115 # include <limits.h>
39116 #else
39117 # include <assert.h>
39118 #endif
39119
39120 #undef $ac_func
39121
39122 /* Override any gcc2 internal prototype to avoid an error.  */
39123 #ifdef __cplusplus
39124 extern "C"
39125 {
39126 #endif
39127 /* We use char because int might match the return type of a gcc2
39128    builtin and then its argument prototype would still apply.  */
39129 char $ac_func ();
39130 /* The GNU C library defines this for functions which it implements
39131     to always fail with ENOSYS.  Some functions are actually named
39132     something starting with __ and the normal name is an alias.  */
39133 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39134 choke me
39135 #else
39136 char (*f) () = $ac_func;
39137 #endif
39138 #ifdef __cplusplus
39139 }
39140 #endif
39141
39142 int
39143 main ()
39144 {
39145 return f != $ac_func;
39146   ;
39147   return 0;
39148 }
39149 _ACEOF
39150 rm -f conftest.$ac_objext conftest$ac_exeext
39151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39152   (eval $ac_link) 2>conftest.er1
39153   ac_status=$?
39154   grep -v '^ *+' conftest.er1 >conftest.err
39155   rm -f conftest.er1
39156   cat conftest.err >&5
39157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39158   (exit $ac_status); } &&
39159          { ac_try='test -z "$ac_c_werror_flag"
39160                          || test ! -s conftest.err'
39161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39162   (eval $ac_try) 2>&5
39163   ac_status=$?
39164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39165   (exit $ac_status); }; } &&
39166          { ac_try='test -s conftest$ac_exeext'
39167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39168   (eval $ac_try) 2>&5
39169   ac_status=$?
39170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39171   (exit $ac_status); }; }; then
39172   eval "$as_ac_var=yes"
39173 else
39174   echo "$as_me: failed program was:" >&5
39175 sed 's/^/| /' conftest.$ac_ext >&5
39176
39177 eval "$as_ac_var=no"
39178 fi
39179 rm -f conftest.err conftest.$ac_objext \
39180       conftest$ac_exeext conftest.$ac_ext
39181 fi
39182 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39183 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39184 if test `eval echo '${'$as_ac_var'}'` = yes; then
39185   cat >>confdefs.h <<_ACEOF
39186 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39187 _ACEOF
39188  ice_have_getsockopt=yes
39189 fi
39190 done
39191
39192 if test "${ice_have_getsockopt}" = yes; then
39193 echo "$as_me:$LINENO: checking for getsockopt declaration in sys/types.h sys/socket.h" >&5
39194 echo $ECHO_N "checking for getsockopt declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
39195 if test "${ice_cv_have_getsockopt_decl+set}" = set; then
39196   echo $ECHO_N "(cached) $ECHO_C" >&6
39197 else
39198
39199 ice_cv_have_getsockopt_decl=no
39200 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
39201 ice_re_word='(^|[^a-zA-Z0-9_])'
39202 for header in sys/types.h sys/socket.h; do
39203 # Check for ordinary declaration
39204 cat >conftest.$ac_ext <<_ACEOF
39205 /* confdefs.h.  */
39206 _ACEOF
39207 cat confdefs.h >>conftest.$ac_ext
39208 cat >>conftest.$ac_ext <<_ACEOF
39209 /* end confdefs.h.  */
39210 #include <$header>
39211
39212 _ACEOF
39213 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39214   $EGREP "${ice_re_word}getsockopt[     ]*\(" >/dev/null 2>&1; then
39215   ice_cv_have_getsockopt_decl=yes
39216 fi
39217 rm -f conftest*
39218
39219 if test "$ice_cv_have_getsockopt_decl" = yes; then
39220         break
39221 fi
39222 # Check for "fixed" declaration like "getpid _PARAMS((int))"
39223 cat >conftest.$ac_ext <<_ACEOF
39224 /* confdefs.h.  */
39225 _ACEOF
39226 cat confdefs.h >>conftest.$ac_ext
39227 cat >>conftest.$ac_ext <<_ACEOF
39228 /* end confdefs.h.  */
39229 #include <$header>
39230
39231 _ACEOF
39232 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39233   $EGREP "${ice_re_word}getsockopt[     ]*$ice_re_params\(\(" >/dev/null 2>&1; then
39234   ice_cv_have_getsockopt_decl=yes
39235 fi
39236 rm -f conftest*
39237
39238 if test "$ice_cv_have_getsockopt_decl" = yes; then
39239         break
39240 fi
39241 done
39242
39243 fi
39244
39245 echo "$as_me:$LINENO: result: $ice_cv_have_getsockopt_decl" >&5
39246 echo "${ECHO_T}$ice_cv_have_getsockopt_decl" >&6
39247 if test "$ice_cv_have_getsockopt_decl" = yes; then
39248
39249 cat >>confdefs.h <<_ACEOF
39250 #define HAVE_GETSOCKOPT_DECL 1
39251 _ACEOF
39252
39253 fi
39254 fi
39255
39256
39257 ice_have_gettimeofday=no
39258
39259 for ac_func in gettimeofday
39260 do
39261 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39262 echo "$as_me:$LINENO: checking for $ac_func" >&5
39263 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39264 if eval "test \"\${$as_ac_var+set}\" = set"; then
39265   echo $ECHO_N "(cached) $ECHO_C" >&6
39266 else
39267   cat >conftest.$ac_ext <<_ACEOF
39268 /* confdefs.h.  */
39269 _ACEOF
39270 cat confdefs.h >>conftest.$ac_ext
39271 cat >>conftest.$ac_ext <<_ACEOF
39272 /* end confdefs.h.  */
39273 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39274    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39275 #define $ac_func innocuous_$ac_func
39276
39277 /* System header to define __stub macros and hopefully few prototypes,
39278     which can conflict with char $ac_func (); below.
39279     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39280     <limits.h> exists even on freestanding compilers.  */
39281
39282 #ifdef __STDC__
39283 # include <limits.h>
39284 #else
39285 # include <assert.h>
39286 #endif
39287
39288 #undef $ac_func
39289
39290 /* Override any gcc2 internal prototype to avoid an error.  */
39291 #ifdef __cplusplus
39292 extern "C"
39293 {
39294 #endif
39295 /* We use char because int might match the return type of a gcc2
39296    builtin and then its argument prototype would still apply.  */
39297 char $ac_func ();
39298 /* The GNU C library defines this for functions which it implements
39299     to always fail with ENOSYS.  Some functions are actually named
39300     something starting with __ and the normal name is an alias.  */
39301 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39302 choke me
39303 #else
39304 char (*f) () = $ac_func;
39305 #endif
39306 #ifdef __cplusplus
39307 }
39308 #endif
39309
39310 int
39311 main ()
39312 {
39313 return f != $ac_func;
39314   ;
39315   return 0;
39316 }
39317 _ACEOF
39318 rm -f conftest.$ac_objext conftest$ac_exeext
39319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39320   (eval $ac_link) 2>conftest.er1
39321   ac_status=$?
39322   grep -v '^ *+' conftest.er1 >conftest.err
39323   rm -f conftest.er1
39324   cat conftest.err >&5
39325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39326   (exit $ac_status); } &&
39327          { ac_try='test -z "$ac_c_werror_flag"
39328                          || test ! -s conftest.err'
39329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39330   (eval $ac_try) 2>&5
39331   ac_status=$?
39332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39333   (exit $ac_status); }; } &&
39334          { ac_try='test -s conftest$ac_exeext'
39335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39336   (eval $ac_try) 2>&5
39337   ac_status=$?
39338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39339   (exit $ac_status); }; }; then
39340   eval "$as_ac_var=yes"
39341 else
39342   echo "$as_me: failed program was:" >&5
39343 sed 's/^/| /' conftest.$ac_ext >&5
39344
39345 eval "$as_ac_var=no"
39346 fi
39347 rm -f conftest.err conftest.$ac_objext \
39348       conftest$ac_exeext conftest.$ac_ext
39349 fi
39350 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39351 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39352 if test `eval echo '${'$as_ac_var'}'` = yes; then
39353   cat >>confdefs.h <<_ACEOF
39354 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39355 _ACEOF
39356  ice_have_gettimeofday=yes
39357 fi
39358 done
39359
39360 if test "${ice_have_gettimeofday}" = yes; then
39361 echo "$as_me:$LINENO: checking for gettimeofday declaration in time.h sys/time.h" >&5
39362 echo $ECHO_N "checking for gettimeofday declaration in time.h sys/time.h... $ECHO_C" >&6
39363 if test "${ice_cv_have_gettimeofday_decl+set}" = set; then
39364   echo $ECHO_N "(cached) $ECHO_C" >&6
39365 else
39366
39367 ice_cv_have_gettimeofday_decl=no
39368 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
39369 ice_re_word='(^|[^a-zA-Z0-9_])'
39370 for header in time.h sys/time.h; do
39371 # Check for ordinary declaration
39372 cat >conftest.$ac_ext <<_ACEOF
39373 /* confdefs.h.  */
39374 _ACEOF
39375 cat confdefs.h >>conftest.$ac_ext
39376 cat >>conftest.$ac_ext <<_ACEOF
39377 /* end confdefs.h.  */
39378 #include <$header>
39379
39380 _ACEOF
39381 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39382   $EGREP "${ice_re_word}gettimeofday[   ]*\(" >/dev/null 2>&1; then
39383   ice_cv_have_gettimeofday_decl=yes
39384 fi
39385 rm -f conftest*
39386
39387 if test "$ice_cv_have_gettimeofday_decl" = yes; then
39388         break
39389 fi
39390 # Check for "fixed" declaration like "getpid _PARAMS((int))"
39391 cat >conftest.$ac_ext <<_ACEOF
39392 /* confdefs.h.  */
39393 _ACEOF
39394 cat confdefs.h >>conftest.$ac_ext
39395 cat >>conftest.$ac_ext <<_ACEOF
39396 /* end confdefs.h.  */
39397 #include <$header>
39398
39399 _ACEOF
39400 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39401   $EGREP "${ice_re_word}gettimeofday[   ]*$ice_re_params\(\(" >/dev/null 2>&1; then
39402   ice_cv_have_gettimeofday_decl=yes
39403 fi
39404 rm -f conftest*
39405
39406 if test "$ice_cv_have_gettimeofday_decl" = yes; then
39407         break
39408 fi
39409 done
39410
39411 fi
39412
39413 echo "$as_me:$LINENO: result: $ice_cv_have_gettimeofday_decl" >&5
39414 echo "${ECHO_T}$ice_cv_have_gettimeofday_decl" >&6
39415 if test "$ice_cv_have_gettimeofday_decl" = yes; then
39416
39417 cat >>confdefs.h <<_ACEOF
39418 #define HAVE_GETTIMEOFDAY_DECL 1
39419 _ACEOF
39420
39421 fi
39422 fi
39423
39424
39425
39426         echo "$as_me:$LINENO: checking for gettimeofday number of arguments" >&5
39427 echo $ECHO_N "checking for gettimeofday number of arguments... $ECHO_C" >&6
39428 if test "${amanda_cv_gettimeofday_args+set}" = set; then
39429   echo $ECHO_N "(cached) $ECHO_C" >&6
39430 else
39431
39432                 cat >conftest.$ac_ext <<_ACEOF
39433 /* confdefs.h.  */
39434 _ACEOF
39435 cat confdefs.h >>conftest.$ac_ext
39436 cat >>conftest.$ac_ext <<_ACEOF
39437 /* end confdefs.h.  */
39438
39439 #ifdef TIME_WITH_SYS_TIME
39440 #  include <sys/time.h>
39441 #  include <time.h>
39442 #else
39443 #  ifdef HAVE_SYS_TIME_H
39444 #    include <sys/time.h>
39445 #  else
39446 #    include <time.h>
39447 #  endif
39448 #endif
39449
39450 int
39451 main ()
39452 {
39453
39454                         struct timeval val;
39455                         struct timezone zone;
39456                         gettimeofday(&val, &zone);
39457
39458   ;
39459   return 0;
39460 }
39461 _ACEOF
39462 rm -f conftest.$ac_objext
39463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39464   (eval $ac_compile) 2>conftest.er1
39465   ac_status=$?
39466   grep -v '^ *+' conftest.er1 >conftest.err
39467   rm -f conftest.er1
39468   cat conftest.err >&5
39469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39470   (exit $ac_status); } &&
39471          { ac_try='test -z "$ac_c_werror_flag"
39472                          || test ! -s conftest.err'
39473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39474   (eval $ac_try) 2>&5
39475   ac_status=$?
39476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39477   (exit $ac_status); }; } &&
39478          { ac_try='test -s conftest.$ac_objext'
39479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39480   (eval $ac_try) 2>&5
39481   ac_status=$?
39482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39483   (exit $ac_status); }; }; then
39484   amanda_cv_gettimeofday_args=2
39485 else
39486   echo "$as_me: failed program was:" >&5
39487 sed 's/^/| /' conftest.$ac_ext >&5
39488
39489 amanda_cv_gettimeofday_args=1
39490
39491 fi
39492 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39493
39494
39495 fi
39496 echo "$as_me:$LINENO: result: $amanda_cv_gettimeofday_args" >&5
39497 echo "${ECHO_T}$amanda_cv_gettimeofday_args" >&6
39498         if test "$amanda_cv_gettimeofday_args" = 2; then
39499
39500 cat >>confdefs.h <<\_ACEOF
39501 #define HAVE_TWO_ARG_GETTIMEOFDAY 1
39502 _ACEOF
39503
39504         fi
39505
39506
39507
39508
39509
39510 for ac_func in getvfsent initgroups isascii
39511 do
39512 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39513 echo "$as_me:$LINENO: checking for $ac_func" >&5
39514 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39515 if eval "test \"\${$as_ac_var+set}\" = set"; then
39516   echo $ECHO_N "(cached) $ECHO_C" >&6
39517 else
39518   cat >conftest.$ac_ext <<_ACEOF
39519 /* confdefs.h.  */
39520 _ACEOF
39521 cat confdefs.h >>conftest.$ac_ext
39522 cat >>conftest.$ac_ext <<_ACEOF
39523 /* end confdefs.h.  */
39524 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39525    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39526 #define $ac_func innocuous_$ac_func
39527
39528 /* System header to define __stub macros and hopefully few prototypes,
39529     which can conflict with char $ac_func (); below.
39530     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39531     <limits.h> exists even on freestanding compilers.  */
39532
39533 #ifdef __STDC__
39534 # include <limits.h>
39535 #else
39536 # include <assert.h>
39537 #endif
39538
39539 #undef $ac_func
39540
39541 /* Override any gcc2 internal prototype to avoid an error.  */
39542 #ifdef __cplusplus
39543 extern "C"
39544 {
39545 #endif
39546 /* We use char because int might match the return type of a gcc2
39547    builtin and then its argument prototype would still apply.  */
39548 char $ac_func ();
39549 /* The GNU C library defines this for functions which it implements
39550     to always fail with ENOSYS.  Some functions are actually named
39551     something starting with __ and the normal name is an alias.  */
39552 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39553 choke me
39554 #else
39555 char (*f) () = $ac_func;
39556 #endif
39557 #ifdef __cplusplus
39558 }
39559 #endif
39560
39561 int
39562 main ()
39563 {
39564 return f != $ac_func;
39565   ;
39566   return 0;
39567 }
39568 _ACEOF
39569 rm -f conftest.$ac_objext conftest$ac_exeext
39570 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39571   (eval $ac_link) 2>conftest.er1
39572   ac_status=$?
39573   grep -v '^ *+' conftest.er1 >conftest.err
39574   rm -f conftest.er1
39575   cat conftest.err >&5
39576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39577   (exit $ac_status); } &&
39578          { ac_try='test -z "$ac_c_werror_flag"
39579                          || test ! -s conftest.err'
39580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39581   (eval $ac_try) 2>&5
39582   ac_status=$?
39583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39584   (exit $ac_status); }; } &&
39585          { ac_try='test -s conftest$ac_exeext'
39586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39587   (eval $ac_try) 2>&5
39588   ac_status=$?
39589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39590   (exit $ac_status); }; }; then
39591   eval "$as_ac_var=yes"
39592 else
39593   echo "$as_me: failed program was:" >&5
39594 sed 's/^/| /' conftest.$ac_ext >&5
39595
39596 eval "$as_ac_var=no"
39597 fi
39598 rm -f conftest.err conftest.$ac_objext \
39599       conftest$ac_exeext conftest.$ac_ext
39600 fi
39601 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39602 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39603 if test `eval echo '${'$as_ac_var'}'` = yes; then
39604   cat >>confdefs.h <<_ACEOF
39605 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39606 _ACEOF
39607
39608 fi
39609 done
39610
39611
39612 ice_have_initgroups=no
39613
39614 for ac_func in initgroups
39615 do
39616 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39617 echo "$as_me:$LINENO: checking for $ac_func" >&5
39618 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39619 if eval "test \"\${$as_ac_var+set}\" = set"; then
39620   echo $ECHO_N "(cached) $ECHO_C" >&6
39621 else
39622   cat >conftest.$ac_ext <<_ACEOF
39623 /* confdefs.h.  */
39624 _ACEOF
39625 cat confdefs.h >>conftest.$ac_ext
39626 cat >>conftest.$ac_ext <<_ACEOF
39627 /* end confdefs.h.  */
39628 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39629    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39630 #define $ac_func innocuous_$ac_func
39631
39632 /* System header to define __stub macros and hopefully few prototypes,
39633     which can conflict with char $ac_func (); below.
39634     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39635     <limits.h> exists even on freestanding compilers.  */
39636
39637 #ifdef __STDC__
39638 # include <limits.h>
39639 #else
39640 # include <assert.h>
39641 #endif
39642
39643 #undef $ac_func
39644
39645 /* Override any gcc2 internal prototype to avoid an error.  */
39646 #ifdef __cplusplus
39647 extern "C"
39648 {
39649 #endif
39650 /* We use char because int might match the return type of a gcc2
39651    builtin and then its argument prototype would still apply.  */
39652 char $ac_func ();
39653 /* The GNU C library defines this for functions which it implements
39654     to always fail with ENOSYS.  Some functions are actually named
39655     something starting with __ and the normal name is an alias.  */
39656 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39657 choke me
39658 #else
39659 char (*f) () = $ac_func;
39660 #endif
39661 #ifdef __cplusplus
39662 }
39663 #endif
39664
39665 int
39666 main ()
39667 {
39668 return f != $ac_func;
39669   ;
39670   return 0;
39671 }
39672 _ACEOF
39673 rm -f conftest.$ac_objext conftest$ac_exeext
39674 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39675   (eval $ac_link) 2>conftest.er1
39676   ac_status=$?
39677   grep -v '^ *+' conftest.er1 >conftest.err
39678   rm -f conftest.er1
39679   cat conftest.err >&5
39680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39681   (exit $ac_status); } &&
39682          { ac_try='test -z "$ac_c_werror_flag"
39683                          || test ! -s conftest.err'
39684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39685   (eval $ac_try) 2>&5
39686   ac_status=$?
39687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39688   (exit $ac_status); }; } &&
39689          { ac_try='test -s conftest$ac_exeext'
39690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39691   (eval $ac_try) 2>&5
39692   ac_status=$?
39693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39694   (exit $ac_status); }; }; then
39695   eval "$as_ac_var=yes"
39696 else
39697   echo "$as_me: failed program was:" >&5
39698 sed 's/^/| /' conftest.$ac_ext >&5
39699
39700 eval "$as_ac_var=no"
39701 fi
39702 rm -f conftest.err conftest.$ac_objext \
39703       conftest$ac_exeext conftest.$ac_ext
39704 fi
39705 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39706 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39707 if test `eval echo '${'$as_ac_var'}'` = yes; then
39708   cat >>confdefs.h <<_ACEOF
39709 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39710 _ACEOF
39711  ice_have_initgroups=yes
39712 fi
39713 done
39714
39715 if test "${ice_have_initgroups}" = yes; then
39716 echo "$as_me:$LINENO: checking for initgroups declaration in grp.h sys/types.h unistd.h libc.h" >&5
39717 echo $ECHO_N "checking for initgroups declaration in grp.h sys/types.h unistd.h libc.h... $ECHO_C" >&6
39718 if test "${ice_cv_have_initgroups_decl+set}" = set; then
39719   echo $ECHO_N "(cached) $ECHO_C" >&6
39720 else
39721
39722 ice_cv_have_initgroups_decl=no
39723 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
39724 ice_re_word='(^|[^a-zA-Z0-9_])'
39725 for header in grp.h sys/types.h unistd.h libc.h; do
39726 # Check for ordinary declaration
39727 cat >conftest.$ac_ext <<_ACEOF
39728 /* confdefs.h.  */
39729 _ACEOF
39730 cat confdefs.h >>conftest.$ac_ext
39731 cat >>conftest.$ac_ext <<_ACEOF
39732 /* end confdefs.h.  */
39733 #include <$header>
39734
39735 _ACEOF
39736 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39737   $EGREP "${ice_re_word}initgroups[     ]*\(" >/dev/null 2>&1; then
39738   ice_cv_have_initgroups_decl=yes
39739 fi
39740 rm -f conftest*
39741
39742 if test "$ice_cv_have_initgroups_decl" = yes; then
39743         break
39744 fi
39745 # Check for "fixed" declaration like "getpid _PARAMS((int))"
39746 cat >conftest.$ac_ext <<_ACEOF
39747 /* confdefs.h.  */
39748 _ACEOF
39749 cat confdefs.h >>conftest.$ac_ext
39750 cat >>conftest.$ac_ext <<_ACEOF
39751 /* end confdefs.h.  */
39752 #include <$header>
39753
39754 _ACEOF
39755 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39756   $EGREP "${ice_re_word}initgroups[     ]*$ice_re_params\(\(" >/dev/null 2>&1; then
39757   ice_cv_have_initgroups_decl=yes
39758 fi
39759 rm -f conftest*
39760
39761 if test "$ice_cv_have_initgroups_decl" = yes; then
39762         break
39763 fi
39764 done
39765
39766 fi
39767
39768 echo "$as_me:$LINENO: result: $ice_cv_have_initgroups_decl" >&5
39769 echo "${ECHO_T}$ice_cv_have_initgroups_decl" >&6
39770 if test "$ice_cv_have_initgroups_decl" = yes; then
39771
39772 cat >>confdefs.h <<_ACEOF
39773 #define HAVE_INITGROUPS_DECL 1
39774 _ACEOF
39775
39776 fi
39777 fi
39778
39779
39780 ice_have_ioctl=no
39781
39782 for ac_func in ioctl
39783 do
39784 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39785 echo "$as_me:$LINENO: checking for $ac_func" >&5
39786 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39787 if eval "test \"\${$as_ac_var+set}\" = set"; then
39788   echo $ECHO_N "(cached) $ECHO_C" >&6
39789 else
39790   cat >conftest.$ac_ext <<_ACEOF
39791 /* confdefs.h.  */
39792 _ACEOF
39793 cat confdefs.h >>conftest.$ac_ext
39794 cat >>conftest.$ac_ext <<_ACEOF
39795 /* end confdefs.h.  */
39796 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39797    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39798 #define $ac_func innocuous_$ac_func
39799
39800 /* System header to define __stub macros and hopefully few prototypes,
39801     which can conflict with char $ac_func (); below.
39802     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39803     <limits.h> exists even on freestanding compilers.  */
39804
39805 #ifdef __STDC__
39806 # include <limits.h>
39807 #else
39808 # include <assert.h>
39809 #endif
39810
39811 #undef $ac_func
39812
39813 /* Override any gcc2 internal prototype to avoid an error.  */
39814 #ifdef __cplusplus
39815 extern "C"
39816 {
39817 #endif
39818 /* We use char because int might match the return type of a gcc2
39819    builtin and then its argument prototype would still apply.  */
39820 char $ac_func ();
39821 /* The GNU C library defines this for functions which it implements
39822     to always fail with ENOSYS.  Some functions are actually named
39823     something starting with __ and the normal name is an alias.  */
39824 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39825 choke me
39826 #else
39827 char (*f) () = $ac_func;
39828 #endif
39829 #ifdef __cplusplus
39830 }
39831 #endif
39832
39833 int
39834 main ()
39835 {
39836 return f != $ac_func;
39837   ;
39838   return 0;
39839 }
39840 _ACEOF
39841 rm -f conftest.$ac_objext conftest$ac_exeext
39842 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39843   (eval $ac_link) 2>conftest.er1
39844   ac_status=$?
39845   grep -v '^ *+' conftest.er1 >conftest.err
39846   rm -f conftest.er1
39847   cat conftest.err >&5
39848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39849   (exit $ac_status); } &&
39850          { ac_try='test -z "$ac_c_werror_flag"
39851                          || test ! -s conftest.err'
39852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39853   (eval $ac_try) 2>&5
39854   ac_status=$?
39855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39856   (exit $ac_status); }; } &&
39857          { ac_try='test -s conftest$ac_exeext'
39858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39859   (eval $ac_try) 2>&5
39860   ac_status=$?
39861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39862   (exit $ac_status); }; }; then
39863   eval "$as_ac_var=yes"
39864 else
39865   echo "$as_me: failed program was:" >&5
39866 sed 's/^/| /' conftest.$ac_ext >&5
39867
39868 eval "$as_ac_var=no"
39869 fi
39870 rm -f conftest.err conftest.$ac_objext \
39871       conftest$ac_exeext conftest.$ac_ext
39872 fi
39873 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39874 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39875 if test `eval echo '${'$as_ac_var'}'` = yes; then
39876   cat >>confdefs.h <<_ACEOF
39877 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39878 _ACEOF
39879  ice_have_ioctl=yes
39880 fi
39881 done
39882
39883 if test "${ice_have_ioctl}" = yes; then
39884 echo "$as_me:$LINENO: checking for ioctl declaration in sys/ioctl.h unistd.h libc.h" >&5
39885 echo $ECHO_N "checking for ioctl declaration in sys/ioctl.h unistd.h libc.h... $ECHO_C" >&6
39886 if test "${ice_cv_have_ioctl_decl+set}" = set; then
39887   echo $ECHO_N "(cached) $ECHO_C" >&6
39888 else
39889
39890 ice_cv_have_ioctl_decl=no
39891 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
39892 ice_re_word='(^|[^a-zA-Z0-9_])'
39893 for header in sys/ioctl.h unistd.h libc.h; do
39894 # Check for ordinary declaration
39895 cat >conftest.$ac_ext <<_ACEOF
39896 /* confdefs.h.  */
39897 _ACEOF
39898 cat confdefs.h >>conftest.$ac_ext
39899 cat >>conftest.$ac_ext <<_ACEOF
39900 /* end confdefs.h.  */
39901 #include <$header>
39902
39903 _ACEOF
39904 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39905   $EGREP "${ice_re_word}ioctl[  ]*\(" >/dev/null 2>&1; then
39906   ice_cv_have_ioctl_decl=yes
39907 fi
39908 rm -f conftest*
39909
39910 if test "$ice_cv_have_ioctl_decl" = yes; then
39911         break
39912 fi
39913 # Check for "fixed" declaration like "getpid _PARAMS((int))"
39914 cat >conftest.$ac_ext <<_ACEOF
39915 /* confdefs.h.  */
39916 _ACEOF
39917 cat confdefs.h >>conftest.$ac_ext
39918 cat >>conftest.$ac_ext <<_ACEOF
39919 /* end confdefs.h.  */
39920 #include <$header>
39921
39922 _ACEOF
39923 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39924   $EGREP "${ice_re_word}ioctl[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
39925   ice_cv_have_ioctl_decl=yes
39926 fi
39927 rm -f conftest*
39928
39929 if test "$ice_cv_have_ioctl_decl" = yes; then
39930         break
39931 fi
39932 done
39933
39934 fi
39935
39936 echo "$as_me:$LINENO: result: $ice_cv_have_ioctl_decl" >&5
39937 echo "${ECHO_T}$ice_cv_have_ioctl_decl" >&6
39938 if test "$ice_cv_have_ioctl_decl" = yes; then
39939
39940 cat >>confdefs.h <<_ACEOF
39941 #define HAVE_IOCTL_DECL 1
39942 _ACEOF
39943
39944 fi
39945 fi
39946
39947
39948 ice_have_listen=no
39949
39950 for ac_func in listen
39951 do
39952 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39953 echo "$as_me:$LINENO: checking for $ac_func" >&5
39954 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39955 if eval "test \"\${$as_ac_var+set}\" = set"; then
39956   echo $ECHO_N "(cached) $ECHO_C" >&6
39957 else
39958   cat >conftest.$ac_ext <<_ACEOF
39959 /* confdefs.h.  */
39960 _ACEOF
39961 cat confdefs.h >>conftest.$ac_ext
39962 cat >>conftest.$ac_ext <<_ACEOF
39963 /* end confdefs.h.  */
39964 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39965    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39966 #define $ac_func innocuous_$ac_func
39967
39968 /* System header to define __stub macros and hopefully few prototypes,
39969     which can conflict with char $ac_func (); below.
39970     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39971     <limits.h> exists even on freestanding compilers.  */
39972
39973 #ifdef __STDC__
39974 # include <limits.h>
39975 #else
39976 # include <assert.h>
39977 #endif
39978
39979 #undef $ac_func
39980
39981 /* Override any gcc2 internal prototype to avoid an error.  */
39982 #ifdef __cplusplus
39983 extern "C"
39984 {
39985 #endif
39986 /* We use char because int might match the return type of a gcc2
39987    builtin and then its argument prototype would still apply.  */
39988 char $ac_func ();
39989 /* The GNU C library defines this for functions which it implements
39990     to always fail with ENOSYS.  Some functions are actually named
39991     something starting with __ and the normal name is an alias.  */
39992 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39993 choke me
39994 #else
39995 char (*f) () = $ac_func;
39996 #endif
39997 #ifdef __cplusplus
39998 }
39999 #endif
40000
40001 int
40002 main ()
40003 {
40004 return f != $ac_func;
40005   ;
40006   return 0;
40007 }
40008 _ACEOF
40009 rm -f conftest.$ac_objext conftest$ac_exeext
40010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40011   (eval $ac_link) 2>conftest.er1
40012   ac_status=$?
40013   grep -v '^ *+' conftest.er1 >conftest.err
40014   rm -f conftest.er1
40015   cat conftest.err >&5
40016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40017   (exit $ac_status); } &&
40018          { ac_try='test -z "$ac_c_werror_flag"
40019                          || test ! -s conftest.err'
40020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40021   (eval $ac_try) 2>&5
40022   ac_status=$?
40023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40024   (exit $ac_status); }; } &&
40025          { ac_try='test -s conftest$ac_exeext'
40026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40027   (eval $ac_try) 2>&5
40028   ac_status=$?
40029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40030   (exit $ac_status); }; }; then
40031   eval "$as_ac_var=yes"
40032 else
40033   echo "$as_me: failed program was:" >&5
40034 sed 's/^/| /' conftest.$ac_ext >&5
40035
40036 eval "$as_ac_var=no"
40037 fi
40038 rm -f conftest.err conftest.$ac_objext \
40039       conftest$ac_exeext conftest.$ac_ext
40040 fi
40041 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40042 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40043 if test `eval echo '${'$as_ac_var'}'` = yes; then
40044   cat >>confdefs.h <<_ACEOF
40045 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40046 _ACEOF
40047  ice_have_listen=yes
40048 fi
40049 done
40050
40051 if test "${ice_have_listen}" = yes; then
40052 echo "$as_me:$LINENO: checking for listen declaration in sys/types.h sys/socket.h" >&5
40053 echo $ECHO_N "checking for listen declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
40054 if test "${ice_cv_have_listen_decl+set}" = set; then
40055   echo $ECHO_N "(cached) $ECHO_C" >&6
40056 else
40057
40058 ice_cv_have_listen_decl=no
40059 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
40060 ice_re_word='(^|[^a-zA-Z0-9_])'
40061 for header in sys/types.h sys/socket.h; do
40062 # Check for ordinary declaration
40063 cat >conftest.$ac_ext <<_ACEOF
40064 /* confdefs.h.  */
40065 _ACEOF
40066 cat confdefs.h >>conftest.$ac_ext
40067 cat >>conftest.$ac_ext <<_ACEOF
40068 /* end confdefs.h.  */
40069 #include <$header>
40070
40071 _ACEOF
40072 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40073   $EGREP "${ice_re_word}listen[         ]*\(" >/dev/null 2>&1; then
40074   ice_cv_have_listen_decl=yes
40075 fi
40076 rm -f conftest*
40077
40078 if test "$ice_cv_have_listen_decl" = yes; then
40079         break
40080 fi
40081 # Check for "fixed" declaration like "getpid _PARAMS((int))"
40082 cat >conftest.$ac_ext <<_ACEOF
40083 /* confdefs.h.  */
40084 _ACEOF
40085 cat confdefs.h >>conftest.$ac_ext
40086 cat >>conftest.$ac_ext <<_ACEOF
40087 /* end confdefs.h.  */
40088 #include <$header>
40089
40090 _ACEOF
40091 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40092   $EGREP "${ice_re_word}listen[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
40093   ice_cv_have_listen_decl=yes
40094 fi
40095 rm -f conftest*
40096
40097 if test "$ice_cv_have_listen_decl" = yes; then
40098         break
40099 fi
40100 done
40101
40102 fi
40103
40104 echo "$as_me:$LINENO: result: $ice_cv_have_listen_decl" >&5
40105 echo "${ECHO_T}$ice_cv_have_listen_decl" >&6
40106 if test "$ice_cv_have_listen_decl" = yes; then
40107
40108 cat >>confdefs.h <<_ACEOF
40109 #define HAVE_LISTEN_DECL 1
40110 _ACEOF
40111
40112 fi
40113 fi
40114
40115
40116 ice_have_lstat=no
40117
40118 for ac_func in lstat
40119 do
40120 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40121 echo "$as_me:$LINENO: checking for $ac_func" >&5
40122 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40123 if eval "test \"\${$as_ac_var+set}\" = set"; then
40124   echo $ECHO_N "(cached) $ECHO_C" >&6
40125 else
40126   cat >conftest.$ac_ext <<_ACEOF
40127 /* confdefs.h.  */
40128 _ACEOF
40129 cat confdefs.h >>conftest.$ac_ext
40130 cat >>conftest.$ac_ext <<_ACEOF
40131 /* end confdefs.h.  */
40132 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40133    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40134 #define $ac_func innocuous_$ac_func
40135
40136 /* System header to define __stub macros and hopefully few prototypes,
40137     which can conflict with char $ac_func (); below.
40138     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40139     <limits.h> exists even on freestanding compilers.  */
40140
40141 #ifdef __STDC__
40142 # include <limits.h>
40143 #else
40144 # include <assert.h>
40145 #endif
40146
40147 #undef $ac_func
40148
40149 /* Override any gcc2 internal prototype to avoid an error.  */
40150 #ifdef __cplusplus
40151 extern "C"
40152 {
40153 #endif
40154 /* We use char because int might match the return type of a gcc2
40155    builtin and then its argument prototype would still apply.  */
40156 char $ac_func ();
40157 /* The GNU C library defines this for functions which it implements
40158     to always fail with ENOSYS.  Some functions are actually named
40159     something starting with __ and the normal name is an alias.  */
40160 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40161 choke me
40162 #else
40163 char (*f) () = $ac_func;
40164 #endif
40165 #ifdef __cplusplus
40166 }
40167 #endif
40168
40169 int
40170 main ()
40171 {
40172 return f != $ac_func;
40173   ;
40174   return 0;
40175 }
40176 _ACEOF
40177 rm -f conftest.$ac_objext conftest$ac_exeext
40178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40179   (eval $ac_link) 2>conftest.er1
40180   ac_status=$?
40181   grep -v '^ *+' conftest.er1 >conftest.err
40182   rm -f conftest.er1
40183   cat conftest.err >&5
40184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40185   (exit $ac_status); } &&
40186          { ac_try='test -z "$ac_c_werror_flag"
40187                          || test ! -s conftest.err'
40188   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40189   (eval $ac_try) 2>&5
40190   ac_status=$?
40191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40192   (exit $ac_status); }; } &&
40193          { ac_try='test -s conftest$ac_exeext'
40194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40195   (eval $ac_try) 2>&5
40196   ac_status=$?
40197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40198   (exit $ac_status); }; }; then
40199   eval "$as_ac_var=yes"
40200 else
40201   echo "$as_me: failed program was:" >&5
40202 sed 's/^/| /' conftest.$ac_ext >&5
40203
40204 eval "$as_ac_var=no"
40205 fi
40206 rm -f conftest.err conftest.$ac_objext \
40207       conftest$ac_exeext conftest.$ac_ext
40208 fi
40209 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40210 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40211 if test `eval echo '${'$as_ac_var'}'` = yes; then
40212   cat >>confdefs.h <<_ACEOF
40213 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40214 _ACEOF
40215  ice_have_lstat=yes
40216 fi
40217 done
40218
40219 if test "${ice_have_lstat}" = yes; then
40220 echo "$as_me:$LINENO: checking for lstat declaration in sys/types.h sys/stat.h" >&5
40221 echo $ECHO_N "checking for lstat declaration in sys/types.h sys/stat.h... $ECHO_C" >&6
40222 if test "${ice_cv_have_lstat_decl+set}" = set; then
40223   echo $ECHO_N "(cached) $ECHO_C" >&6
40224 else
40225
40226 ice_cv_have_lstat_decl=no
40227 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
40228 ice_re_word='(^|[^a-zA-Z0-9_])'
40229 for header in sys/types.h sys/stat.h; do
40230 # Check for ordinary declaration
40231 cat >conftest.$ac_ext <<_ACEOF
40232 /* confdefs.h.  */
40233 _ACEOF
40234 cat confdefs.h >>conftest.$ac_ext
40235 cat >>conftest.$ac_ext <<_ACEOF
40236 /* end confdefs.h.  */
40237 #include <$header>
40238
40239 _ACEOF
40240 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40241   $EGREP "${ice_re_word}lstat[  ]*\(" >/dev/null 2>&1; then
40242   ice_cv_have_lstat_decl=yes
40243 fi
40244 rm -f conftest*
40245
40246 if test "$ice_cv_have_lstat_decl" = yes; then
40247         break
40248 fi
40249 # Check for "fixed" declaration like "getpid _PARAMS((int))"
40250 cat >conftest.$ac_ext <<_ACEOF
40251 /* confdefs.h.  */
40252 _ACEOF
40253 cat confdefs.h >>conftest.$ac_ext
40254 cat >>conftest.$ac_ext <<_ACEOF
40255 /* end confdefs.h.  */
40256 #include <$header>
40257
40258 _ACEOF
40259 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40260   $EGREP "${ice_re_word}lstat[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
40261   ice_cv_have_lstat_decl=yes
40262 fi
40263 rm -f conftest*
40264
40265 if test "$ice_cv_have_lstat_decl" = yes; then
40266         break
40267 fi
40268 done
40269
40270 fi
40271
40272 echo "$as_me:$LINENO: result: $ice_cv_have_lstat_decl" >&5
40273 echo "${ECHO_T}$ice_cv_have_lstat_decl" >&6
40274 if test "$ice_cv_have_lstat_decl" = yes; then
40275
40276 cat >>confdefs.h <<_ACEOF
40277 #define HAVE_LSTAT_DECL 1
40278 _ACEOF
40279
40280 fi
40281 fi
40282
40283
40284 ice_have_malloc=no
40285
40286 for ac_func in malloc
40287 do
40288 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40289 echo "$as_me:$LINENO: checking for $ac_func" >&5
40290 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40291 if eval "test \"\${$as_ac_var+set}\" = set"; then
40292   echo $ECHO_N "(cached) $ECHO_C" >&6
40293 else
40294   cat >conftest.$ac_ext <<_ACEOF
40295 /* confdefs.h.  */
40296 _ACEOF
40297 cat confdefs.h >>conftest.$ac_ext
40298 cat >>conftest.$ac_ext <<_ACEOF
40299 /* end confdefs.h.  */
40300 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40301    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40302 #define $ac_func innocuous_$ac_func
40303
40304 /* System header to define __stub macros and hopefully few prototypes,
40305     which can conflict with char $ac_func (); below.
40306     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40307     <limits.h> exists even on freestanding compilers.  */
40308
40309 #ifdef __STDC__
40310 # include <limits.h>
40311 #else
40312 # include <assert.h>
40313 #endif
40314
40315 #undef $ac_func
40316
40317 /* Override any gcc2 internal prototype to avoid an error.  */
40318 #ifdef __cplusplus
40319 extern "C"
40320 {
40321 #endif
40322 /* We use char because int might match the return type of a gcc2
40323    builtin and then its argument prototype would still apply.  */
40324 char $ac_func ();
40325 /* The GNU C library defines this for functions which it implements
40326     to always fail with ENOSYS.  Some functions are actually named
40327     something starting with __ and the normal name is an alias.  */
40328 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40329 choke me
40330 #else
40331 char (*f) () = $ac_func;
40332 #endif
40333 #ifdef __cplusplus
40334 }
40335 #endif
40336
40337 int
40338 main ()
40339 {
40340 return f != $ac_func;
40341   ;
40342   return 0;
40343 }
40344 _ACEOF
40345 rm -f conftest.$ac_objext conftest$ac_exeext
40346 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40347   (eval $ac_link) 2>conftest.er1
40348   ac_status=$?
40349   grep -v '^ *+' conftest.er1 >conftest.err
40350   rm -f conftest.er1
40351   cat conftest.err >&5
40352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40353   (exit $ac_status); } &&
40354          { ac_try='test -z "$ac_c_werror_flag"
40355                          || test ! -s conftest.err'
40356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40357   (eval $ac_try) 2>&5
40358   ac_status=$?
40359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40360   (exit $ac_status); }; } &&
40361          { ac_try='test -s conftest$ac_exeext'
40362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40363   (eval $ac_try) 2>&5
40364   ac_status=$?
40365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40366   (exit $ac_status); }; }; then
40367   eval "$as_ac_var=yes"
40368 else
40369   echo "$as_me: failed program was:" >&5
40370 sed 's/^/| /' conftest.$ac_ext >&5
40371
40372 eval "$as_ac_var=no"
40373 fi
40374 rm -f conftest.err conftest.$ac_objext \
40375       conftest$ac_exeext conftest.$ac_ext
40376 fi
40377 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40378 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40379 if test `eval echo '${'$as_ac_var'}'` = yes; then
40380   cat >>confdefs.h <<_ACEOF
40381 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40382 _ACEOF
40383  ice_have_malloc=yes
40384 fi
40385 done
40386
40387 if test "${ice_have_malloc}" = yes; then
40388 echo "$as_me:$LINENO: checking for malloc declaration in stdlib.h" >&5
40389 echo $ECHO_N "checking for malloc declaration in stdlib.h... $ECHO_C" >&6
40390 if test "${ice_cv_have_malloc_decl+set}" = set; then
40391   echo $ECHO_N "(cached) $ECHO_C" >&6
40392 else
40393
40394 ice_cv_have_malloc_decl=no
40395 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
40396 ice_re_word='(^|[^a-zA-Z0-9_])'
40397 for header in stdlib.h; do
40398 # Check for ordinary declaration
40399 cat >conftest.$ac_ext <<_ACEOF
40400 /* confdefs.h.  */
40401 _ACEOF
40402 cat confdefs.h >>conftest.$ac_ext
40403 cat >>conftest.$ac_ext <<_ACEOF
40404 /* end confdefs.h.  */
40405 #include <$header>
40406
40407 _ACEOF
40408 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40409   $EGREP "${ice_re_word}malloc[         ]*\(" >/dev/null 2>&1; then
40410   ice_cv_have_malloc_decl=yes
40411 fi
40412 rm -f conftest*
40413
40414 if test "$ice_cv_have_malloc_decl" = yes; then
40415         break
40416 fi
40417 # Check for "fixed" declaration like "getpid _PARAMS((int))"
40418 cat >conftest.$ac_ext <<_ACEOF
40419 /* confdefs.h.  */
40420 _ACEOF
40421 cat confdefs.h >>conftest.$ac_ext
40422 cat >>conftest.$ac_ext <<_ACEOF
40423 /* end confdefs.h.  */
40424 #include <$header>
40425
40426 _ACEOF
40427 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40428   $EGREP "${ice_re_word}malloc[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
40429   ice_cv_have_malloc_decl=yes
40430 fi
40431 rm -f conftest*
40432
40433 if test "$ice_cv_have_malloc_decl" = yes; then
40434         break
40435 fi
40436 done
40437
40438 fi
40439
40440 echo "$as_me:$LINENO: result: $ice_cv_have_malloc_decl" >&5
40441 echo "${ECHO_T}$ice_cv_have_malloc_decl" >&6
40442 if test "$ice_cv_have_malloc_decl" = yes; then
40443
40444 cat >>confdefs.h <<_ACEOF
40445 #define HAVE_MALLOC_DECL 1
40446 _ACEOF
40447
40448 fi
40449 fi
40450
40451
40452 for ac_func in memmove
40453 do
40454 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40455 echo "$as_me:$LINENO: checking for $ac_func" >&5
40456 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40457 if eval "test \"\${$as_ac_var+set}\" = set"; then
40458   echo $ECHO_N "(cached) $ECHO_C" >&6
40459 else
40460   cat >conftest.$ac_ext <<_ACEOF
40461 /* confdefs.h.  */
40462 _ACEOF
40463 cat confdefs.h >>conftest.$ac_ext
40464 cat >>conftest.$ac_ext <<_ACEOF
40465 /* end confdefs.h.  */
40466 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40467    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40468 #define $ac_func innocuous_$ac_func
40469
40470 /* System header to define __stub macros and hopefully few prototypes,
40471     which can conflict with char $ac_func (); below.
40472     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40473     <limits.h> exists even on freestanding compilers.  */
40474
40475 #ifdef __STDC__
40476 # include <limits.h>
40477 #else
40478 # include <assert.h>
40479 #endif
40480
40481 #undef $ac_func
40482
40483 /* Override any gcc2 internal prototype to avoid an error.  */
40484 #ifdef __cplusplus
40485 extern "C"
40486 {
40487 #endif
40488 /* We use char because int might match the return type of a gcc2
40489    builtin and then its argument prototype would still apply.  */
40490 char $ac_func ();
40491 /* The GNU C library defines this for functions which it implements
40492     to always fail with ENOSYS.  Some functions are actually named
40493     something starting with __ and the normal name is an alias.  */
40494 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40495 choke me
40496 #else
40497 char (*f) () = $ac_func;
40498 #endif
40499 #ifdef __cplusplus
40500 }
40501 #endif
40502
40503 int
40504 main ()
40505 {
40506 return f != $ac_func;
40507   ;
40508   return 0;
40509 }
40510 _ACEOF
40511 rm -f conftest.$ac_objext conftest$ac_exeext
40512 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40513   (eval $ac_link) 2>conftest.er1
40514   ac_status=$?
40515   grep -v '^ *+' conftest.er1 >conftest.err
40516   rm -f conftest.er1
40517   cat conftest.err >&5
40518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40519   (exit $ac_status); } &&
40520          { ac_try='test -z "$ac_c_werror_flag"
40521                          || test ! -s conftest.err'
40522   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40523   (eval $ac_try) 2>&5
40524   ac_status=$?
40525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40526   (exit $ac_status); }; } &&
40527          { ac_try='test -s conftest$ac_exeext'
40528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40529   (eval $ac_try) 2>&5
40530   ac_status=$?
40531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40532   (exit $ac_status); }; }; then
40533   eval "$as_ac_var=yes"
40534 else
40535   echo "$as_me: failed program was:" >&5
40536 sed 's/^/| /' conftest.$ac_ext >&5
40537
40538 eval "$as_ac_var=no"
40539 fi
40540 rm -f conftest.err conftest.$ac_objext \
40541       conftest$ac_exeext conftest.$ac_ext
40542 fi
40543 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40544 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40545 if test `eval echo '${'$as_ac_var'}'` = yes; then
40546   cat >>confdefs.h <<_ACEOF
40547 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40548 _ACEOF
40549
40550 else
40551   case $LIBOBJS in
40552     "$ac_func.$ac_objext"   | \
40553   *" $ac_func.$ac_objext"   | \
40554     "$ac_func.$ac_objext "* | \
40555   *" $ac_func.$ac_objext "* ) ;;
40556   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
40557 esac
40558
40559 fi
40560 done
40561
40562
40563
40564 ice_have_memmove=no
40565
40566 for ac_func in memmove
40567 do
40568 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40569 echo "$as_me:$LINENO: checking for $ac_func" >&5
40570 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40571 if eval "test \"\${$as_ac_var+set}\" = set"; then
40572   echo $ECHO_N "(cached) $ECHO_C" >&6
40573 else
40574   cat >conftest.$ac_ext <<_ACEOF
40575 /* confdefs.h.  */
40576 _ACEOF
40577 cat confdefs.h >>conftest.$ac_ext
40578 cat >>conftest.$ac_ext <<_ACEOF
40579 /* end confdefs.h.  */
40580 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40581    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40582 #define $ac_func innocuous_$ac_func
40583
40584 /* System header to define __stub macros and hopefully few prototypes,
40585     which can conflict with char $ac_func (); below.
40586     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40587     <limits.h> exists even on freestanding compilers.  */
40588
40589 #ifdef __STDC__
40590 # include <limits.h>
40591 #else
40592 # include <assert.h>
40593 #endif
40594
40595 #undef $ac_func
40596
40597 /* Override any gcc2 internal prototype to avoid an error.  */
40598 #ifdef __cplusplus
40599 extern "C"
40600 {
40601 #endif
40602 /* We use char because int might match the return type of a gcc2
40603    builtin and then its argument prototype would still apply.  */
40604 char $ac_func ();
40605 /* The GNU C library defines this for functions which it implements
40606     to always fail with ENOSYS.  Some functions are actually named
40607     something starting with __ and the normal name is an alias.  */
40608 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40609 choke me
40610 #else
40611 char (*f) () = $ac_func;
40612 #endif
40613 #ifdef __cplusplus
40614 }
40615 #endif
40616
40617 int
40618 main ()
40619 {
40620 return f != $ac_func;
40621   ;
40622   return 0;
40623 }
40624 _ACEOF
40625 rm -f conftest.$ac_objext conftest$ac_exeext
40626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40627   (eval $ac_link) 2>conftest.er1
40628   ac_status=$?
40629   grep -v '^ *+' conftest.er1 >conftest.err
40630   rm -f conftest.er1
40631   cat conftest.err >&5
40632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40633   (exit $ac_status); } &&
40634          { ac_try='test -z "$ac_c_werror_flag"
40635                          || test ! -s conftest.err'
40636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40637   (eval $ac_try) 2>&5
40638   ac_status=$?
40639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40640   (exit $ac_status); }; } &&
40641          { ac_try='test -s conftest$ac_exeext'
40642   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40643   (eval $ac_try) 2>&5
40644   ac_status=$?
40645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40646   (exit $ac_status); }; }; then
40647   eval "$as_ac_var=yes"
40648 else
40649   echo "$as_me: failed program was:" >&5
40650 sed 's/^/| /' conftest.$ac_ext >&5
40651
40652 eval "$as_ac_var=no"
40653 fi
40654 rm -f conftest.err conftest.$ac_objext \
40655       conftest$ac_exeext conftest.$ac_ext
40656 fi
40657 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40658 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40659 if test `eval echo '${'$as_ac_var'}'` = yes; then
40660   cat >>confdefs.h <<_ACEOF
40661 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40662 _ACEOF
40663  ice_have_memmove=yes
40664 fi
40665 done
40666
40667 if test "${ice_have_memmove}" = yes; then
40668 echo "$as_me:$LINENO: checking for memmove declaration in string.h strings.h" >&5
40669 echo $ECHO_N "checking for memmove declaration in string.h strings.h... $ECHO_C" >&6
40670 if test "${ice_cv_have_memmove_decl+set}" = set; then
40671   echo $ECHO_N "(cached) $ECHO_C" >&6
40672 else
40673
40674 ice_cv_have_memmove_decl=no
40675 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
40676 ice_re_word='(^|[^a-zA-Z0-9_])'
40677 for header in string.h strings.h; do
40678 # Check for ordinary declaration
40679 cat >conftest.$ac_ext <<_ACEOF
40680 /* confdefs.h.  */
40681 _ACEOF
40682 cat confdefs.h >>conftest.$ac_ext
40683 cat >>conftest.$ac_ext <<_ACEOF
40684 /* end confdefs.h.  */
40685 #include <$header>
40686
40687 _ACEOF
40688 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40689   $EGREP "${ice_re_word}memmove[        ]*\(" >/dev/null 2>&1; then
40690   ice_cv_have_memmove_decl=yes
40691 fi
40692 rm -f conftest*
40693
40694 if test "$ice_cv_have_memmove_decl" = yes; then
40695         break
40696 fi
40697 # Check for "fixed" declaration like "getpid _PARAMS((int))"
40698 cat >conftest.$ac_ext <<_ACEOF
40699 /* confdefs.h.  */
40700 _ACEOF
40701 cat confdefs.h >>conftest.$ac_ext
40702 cat >>conftest.$ac_ext <<_ACEOF
40703 /* end confdefs.h.  */
40704 #include <$header>
40705
40706 _ACEOF
40707 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40708   $EGREP "${ice_re_word}memmove[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
40709   ice_cv_have_memmove_decl=yes
40710 fi
40711 rm -f conftest*
40712
40713 if test "$ice_cv_have_memmove_decl" = yes; then
40714         break
40715 fi
40716 done
40717
40718 fi
40719
40720 echo "$as_me:$LINENO: result: $ice_cv_have_memmove_decl" >&5
40721 echo "${ECHO_T}$ice_cv_have_memmove_decl" >&6
40722 if test "$ice_cv_have_memmove_decl" = yes; then
40723
40724 cat >>confdefs.h <<_ACEOF
40725 #define HAVE_MEMMOVE_DECL 1
40726 _ACEOF
40727
40728 fi
40729 fi
40730
40731
40732 ice_have_memset=no
40733
40734 for ac_func in memset
40735 do
40736 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40737 echo "$as_me:$LINENO: checking for $ac_func" >&5
40738 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40739 if eval "test \"\${$as_ac_var+set}\" = set"; then
40740   echo $ECHO_N "(cached) $ECHO_C" >&6
40741 else
40742   cat >conftest.$ac_ext <<_ACEOF
40743 /* confdefs.h.  */
40744 _ACEOF
40745 cat confdefs.h >>conftest.$ac_ext
40746 cat >>conftest.$ac_ext <<_ACEOF
40747 /* end confdefs.h.  */
40748 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40749    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40750 #define $ac_func innocuous_$ac_func
40751
40752 /* System header to define __stub macros and hopefully few prototypes,
40753     which can conflict with char $ac_func (); below.
40754     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40755     <limits.h> exists even on freestanding compilers.  */
40756
40757 #ifdef __STDC__
40758 # include <limits.h>
40759 #else
40760 # include <assert.h>
40761 #endif
40762
40763 #undef $ac_func
40764
40765 /* Override any gcc2 internal prototype to avoid an error.  */
40766 #ifdef __cplusplus
40767 extern "C"
40768 {
40769 #endif
40770 /* We use char because int might match the return type of a gcc2
40771    builtin and then its argument prototype would still apply.  */
40772 char $ac_func ();
40773 /* The GNU C library defines this for functions which it implements
40774     to always fail with ENOSYS.  Some functions are actually named
40775     something starting with __ and the normal name is an alias.  */
40776 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40777 choke me
40778 #else
40779 char (*f) () = $ac_func;
40780 #endif
40781 #ifdef __cplusplus
40782 }
40783 #endif
40784
40785 int
40786 main ()
40787 {
40788 return f != $ac_func;
40789   ;
40790   return 0;
40791 }
40792 _ACEOF
40793 rm -f conftest.$ac_objext conftest$ac_exeext
40794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40795   (eval $ac_link) 2>conftest.er1
40796   ac_status=$?
40797   grep -v '^ *+' conftest.er1 >conftest.err
40798   rm -f conftest.er1
40799   cat conftest.err >&5
40800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40801   (exit $ac_status); } &&
40802          { ac_try='test -z "$ac_c_werror_flag"
40803                          || test ! -s conftest.err'
40804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40805   (eval $ac_try) 2>&5
40806   ac_status=$?
40807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40808   (exit $ac_status); }; } &&
40809          { ac_try='test -s conftest$ac_exeext'
40810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40811   (eval $ac_try) 2>&5
40812   ac_status=$?
40813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40814   (exit $ac_status); }; }; then
40815   eval "$as_ac_var=yes"
40816 else
40817   echo "$as_me: failed program was:" >&5
40818 sed 's/^/| /' conftest.$ac_ext >&5
40819
40820 eval "$as_ac_var=no"
40821 fi
40822 rm -f conftest.err conftest.$ac_objext \
40823       conftest$ac_exeext conftest.$ac_ext
40824 fi
40825 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40826 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40827 if test `eval echo '${'$as_ac_var'}'` = yes; then
40828   cat >>confdefs.h <<_ACEOF
40829 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40830 _ACEOF
40831  ice_have_memset=yes
40832 fi
40833 done
40834
40835 if test "${ice_have_memset}" = yes; then
40836 echo "$as_me:$LINENO: checking for memset declaration in string.h strings.h" >&5
40837 echo $ECHO_N "checking for memset declaration in string.h strings.h... $ECHO_C" >&6
40838 if test "${ice_cv_have_memset_decl+set}" = set; then
40839   echo $ECHO_N "(cached) $ECHO_C" >&6
40840 else
40841
40842 ice_cv_have_memset_decl=no
40843 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
40844 ice_re_word='(^|[^a-zA-Z0-9_])'
40845 for header in string.h strings.h; do
40846 # Check for ordinary declaration
40847 cat >conftest.$ac_ext <<_ACEOF
40848 /* confdefs.h.  */
40849 _ACEOF
40850 cat confdefs.h >>conftest.$ac_ext
40851 cat >>conftest.$ac_ext <<_ACEOF
40852 /* end confdefs.h.  */
40853 #include <$header>
40854
40855 _ACEOF
40856 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40857   $EGREP "${ice_re_word}memset[         ]*\(" >/dev/null 2>&1; then
40858   ice_cv_have_memset_decl=yes
40859 fi
40860 rm -f conftest*
40861
40862 if test "$ice_cv_have_memset_decl" = yes; then
40863         break
40864 fi
40865 # Check for "fixed" declaration like "getpid _PARAMS((int))"
40866 cat >conftest.$ac_ext <<_ACEOF
40867 /* confdefs.h.  */
40868 _ACEOF
40869 cat confdefs.h >>conftest.$ac_ext
40870 cat >>conftest.$ac_ext <<_ACEOF
40871 /* end confdefs.h.  */
40872 #include <$header>
40873
40874 _ACEOF
40875 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40876   $EGREP "${ice_re_word}memset[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
40877   ice_cv_have_memset_decl=yes
40878 fi
40879 rm -f conftest*
40880
40881 if test "$ice_cv_have_memset_decl" = yes; then
40882         break
40883 fi
40884 done
40885
40886 fi
40887
40888 echo "$as_me:$LINENO: result: $ice_cv_have_memset_decl" >&5
40889 echo "${ECHO_T}$ice_cv_have_memset_decl" >&6
40890 if test "$ice_cv_have_memset_decl" = yes; then
40891
40892 cat >>confdefs.h <<_ACEOF
40893 #define HAVE_MEMSET_DECL 1
40894 _ACEOF
40895
40896 fi
40897 fi
40898
40899
40900 for ac_func in mkdir
40901 do
40902 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40903 echo "$as_me:$LINENO: checking for $ac_func" >&5
40904 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40905 if eval "test \"\${$as_ac_var+set}\" = set"; then
40906   echo $ECHO_N "(cached) $ECHO_C" >&6
40907 else
40908   cat >conftest.$ac_ext <<_ACEOF
40909 /* confdefs.h.  */
40910 _ACEOF
40911 cat confdefs.h >>conftest.$ac_ext
40912 cat >>conftest.$ac_ext <<_ACEOF
40913 /* end confdefs.h.  */
40914 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40915    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40916 #define $ac_func innocuous_$ac_func
40917
40918 /* System header to define __stub macros and hopefully few prototypes,
40919     which can conflict with char $ac_func (); below.
40920     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40921     <limits.h> exists even on freestanding compilers.  */
40922
40923 #ifdef __STDC__
40924 # include <limits.h>
40925 #else
40926 # include <assert.h>
40927 #endif
40928
40929 #undef $ac_func
40930
40931 /* Override any gcc2 internal prototype to avoid an error.  */
40932 #ifdef __cplusplus
40933 extern "C"
40934 {
40935 #endif
40936 /* We use char because int might match the return type of a gcc2
40937    builtin and then its argument prototype would still apply.  */
40938 char $ac_func ();
40939 /* The GNU C library defines this for functions which it implements
40940     to always fail with ENOSYS.  Some functions are actually named
40941     something starting with __ and the normal name is an alias.  */
40942 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40943 choke me
40944 #else
40945 char (*f) () = $ac_func;
40946 #endif
40947 #ifdef __cplusplus
40948 }
40949 #endif
40950
40951 int
40952 main ()
40953 {
40954 return f != $ac_func;
40955   ;
40956   return 0;
40957 }
40958 _ACEOF
40959 rm -f conftest.$ac_objext conftest$ac_exeext
40960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40961   (eval $ac_link) 2>conftest.er1
40962   ac_status=$?
40963   grep -v '^ *+' conftest.er1 >conftest.err
40964   rm -f conftest.er1
40965   cat conftest.err >&5
40966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40967   (exit $ac_status); } &&
40968          { ac_try='test -z "$ac_c_werror_flag"
40969                          || test ! -s conftest.err'
40970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40971   (eval $ac_try) 2>&5
40972   ac_status=$?
40973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40974   (exit $ac_status); }; } &&
40975          { ac_try='test -s conftest$ac_exeext'
40976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40977   (eval $ac_try) 2>&5
40978   ac_status=$?
40979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40980   (exit $ac_status); }; }; then
40981   eval "$as_ac_var=yes"
40982 else
40983   echo "$as_me: failed program was:" >&5
40984 sed 's/^/| /' conftest.$ac_ext >&5
40985
40986 eval "$as_ac_var=no"
40987 fi
40988 rm -f conftest.err conftest.$ac_objext \
40989       conftest$ac_exeext conftest.$ac_ext
40990 fi
40991 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40992 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40993 if test `eval echo '${'$as_ac_var'}'` = yes; then
40994   cat >>confdefs.h <<_ACEOF
40995 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40996 _ACEOF
40997
40998 fi
40999 done
41000
41001
41002 ice_have_mkstemp=no
41003
41004 for ac_func in mkstemp
41005 do
41006 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41007 echo "$as_me:$LINENO: checking for $ac_func" >&5
41008 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41009 if eval "test \"\${$as_ac_var+set}\" = set"; then
41010   echo $ECHO_N "(cached) $ECHO_C" >&6
41011 else
41012   cat >conftest.$ac_ext <<_ACEOF
41013 /* confdefs.h.  */
41014 _ACEOF
41015 cat confdefs.h >>conftest.$ac_ext
41016 cat >>conftest.$ac_ext <<_ACEOF
41017 /* end confdefs.h.  */
41018 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41019    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41020 #define $ac_func innocuous_$ac_func
41021
41022 /* System header to define __stub macros and hopefully few prototypes,
41023     which can conflict with char $ac_func (); below.
41024     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41025     <limits.h> exists even on freestanding compilers.  */
41026
41027 #ifdef __STDC__
41028 # include <limits.h>
41029 #else
41030 # include <assert.h>
41031 #endif
41032
41033 #undef $ac_func
41034
41035 /* Override any gcc2 internal prototype to avoid an error.  */
41036 #ifdef __cplusplus
41037 extern "C"
41038 {
41039 #endif
41040 /* We use char because int might match the return type of a gcc2
41041    builtin and then its argument prototype would still apply.  */
41042 char $ac_func ();
41043 /* The GNU C library defines this for functions which it implements
41044     to always fail with ENOSYS.  Some functions are actually named
41045     something starting with __ and the normal name is an alias.  */
41046 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41047 choke me
41048 #else
41049 char (*f) () = $ac_func;
41050 #endif
41051 #ifdef __cplusplus
41052 }
41053 #endif
41054
41055 int
41056 main ()
41057 {
41058 return f != $ac_func;
41059   ;
41060   return 0;
41061 }
41062 _ACEOF
41063 rm -f conftest.$ac_objext conftest$ac_exeext
41064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41065   (eval $ac_link) 2>conftest.er1
41066   ac_status=$?
41067   grep -v '^ *+' conftest.er1 >conftest.err
41068   rm -f conftest.er1
41069   cat conftest.err >&5
41070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41071   (exit $ac_status); } &&
41072          { ac_try='test -z "$ac_c_werror_flag"
41073                          || test ! -s conftest.err'
41074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41075   (eval $ac_try) 2>&5
41076   ac_status=$?
41077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41078   (exit $ac_status); }; } &&
41079          { ac_try='test -s conftest$ac_exeext'
41080   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41081   (eval $ac_try) 2>&5
41082   ac_status=$?
41083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41084   (exit $ac_status); }; }; then
41085   eval "$as_ac_var=yes"
41086 else
41087   echo "$as_me: failed program was:" >&5
41088 sed 's/^/| /' conftest.$ac_ext >&5
41089
41090 eval "$as_ac_var=no"
41091 fi
41092 rm -f conftest.err conftest.$ac_objext \
41093       conftest$ac_exeext conftest.$ac_ext
41094 fi
41095 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41096 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41097 if test `eval echo '${'$as_ac_var'}'` = yes; then
41098   cat >>confdefs.h <<_ACEOF
41099 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41100 _ACEOF
41101  ice_have_mkstemp=yes
41102 fi
41103 done
41104
41105 if test "${ice_have_mkstemp}" = yes; then
41106 echo "$as_me:$LINENO: checking for mkstemp declaration in stdlib.h" >&5
41107 echo $ECHO_N "checking for mkstemp declaration in stdlib.h... $ECHO_C" >&6
41108 if test "${ice_cv_have_mkstemp_decl+set}" = set; then
41109   echo $ECHO_N "(cached) $ECHO_C" >&6
41110 else
41111
41112 ice_cv_have_mkstemp_decl=no
41113 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
41114 ice_re_word='(^|[^a-zA-Z0-9_])'
41115 for header in stdlib.h; do
41116 # Check for ordinary declaration
41117 cat >conftest.$ac_ext <<_ACEOF
41118 /* confdefs.h.  */
41119 _ACEOF
41120 cat confdefs.h >>conftest.$ac_ext
41121 cat >>conftest.$ac_ext <<_ACEOF
41122 /* end confdefs.h.  */
41123 #include <$header>
41124
41125 _ACEOF
41126 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41127   $EGREP "${ice_re_word}mkstemp[        ]*\(" >/dev/null 2>&1; then
41128   ice_cv_have_mkstemp_decl=yes
41129 fi
41130 rm -f conftest*
41131
41132 if test "$ice_cv_have_mkstemp_decl" = yes; then
41133         break
41134 fi
41135 # Check for "fixed" declaration like "getpid _PARAMS((int))"
41136 cat >conftest.$ac_ext <<_ACEOF
41137 /* confdefs.h.  */
41138 _ACEOF
41139 cat confdefs.h >>conftest.$ac_ext
41140 cat >>conftest.$ac_ext <<_ACEOF
41141 /* end confdefs.h.  */
41142 #include <$header>
41143
41144 _ACEOF
41145 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41146   $EGREP "${ice_re_word}mkstemp[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
41147   ice_cv_have_mkstemp_decl=yes
41148 fi
41149 rm -f conftest*
41150
41151 if test "$ice_cv_have_mkstemp_decl" = yes; then
41152         break
41153 fi
41154 done
41155
41156 fi
41157
41158 echo "$as_me:$LINENO: result: $ice_cv_have_mkstemp_decl" >&5
41159 echo "${ECHO_T}$ice_cv_have_mkstemp_decl" >&6
41160 if test "$ice_cv_have_mkstemp_decl" = yes; then
41161
41162 cat >>confdefs.h <<_ACEOF
41163 #define HAVE_MKSTEMP_DECL 1
41164 _ACEOF
41165
41166 fi
41167 fi
41168
41169
41170 ice_have_mktemp=no
41171
41172 for ac_func in mktemp
41173 do
41174 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41175 echo "$as_me:$LINENO: checking for $ac_func" >&5
41176 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41177 if eval "test \"\${$as_ac_var+set}\" = set"; then
41178   echo $ECHO_N "(cached) $ECHO_C" >&6
41179 else
41180   cat >conftest.$ac_ext <<_ACEOF
41181 /* confdefs.h.  */
41182 _ACEOF
41183 cat confdefs.h >>conftest.$ac_ext
41184 cat >>conftest.$ac_ext <<_ACEOF
41185 /* end confdefs.h.  */
41186 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41187    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41188 #define $ac_func innocuous_$ac_func
41189
41190 /* System header to define __stub macros and hopefully few prototypes,
41191     which can conflict with char $ac_func (); below.
41192     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41193     <limits.h> exists even on freestanding compilers.  */
41194
41195 #ifdef __STDC__
41196 # include <limits.h>
41197 #else
41198 # include <assert.h>
41199 #endif
41200
41201 #undef $ac_func
41202
41203 /* Override any gcc2 internal prototype to avoid an error.  */
41204 #ifdef __cplusplus
41205 extern "C"
41206 {
41207 #endif
41208 /* We use char because int might match the return type of a gcc2
41209    builtin and then its argument prototype would still apply.  */
41210 char $ac_func ();
41211 /* The GNU C library defines this for functions which it implements
41212     to always fail with ENOSYS.  Some functions are actually named
41213     something starting with __ and the normal name is an alias.  */
41214 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41215 choke me
41216 #else
41217 char (*f) () = $ac_func;
41218 #endif
41219 #ifdef __cplusplus
41220 }
41221 #endif
41222
41223 int
41224 main ()
41225 {
41226 return f != $ac_func;
41227   ;
41228   return 0;
41229 }
41230 _ACEOF
41231 rm -f conftest.$ac_objext conftest$ac_exeext
41232 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41233   (eval $ac_link) 2>conftest.er1
41234   ac_status=$?
41235   grep -v '^ *+' conftest.er1 >conftest.err
41236   rm -f conftest.er1
41237   cat conftest.err >&5
41238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41239   (exit $ac_status); } &&
41240          { ac_try='test -z "$ac_c_werror_flag"
41241                          || test ! -s conftest.err'
41242   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41243   (eval $ac_try) 2>&5
41244   ac_status=$?
41245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41246   (exit $ac_status); }; } &&
41247          { ac_try='test -s conftest$ac_exeext'
41248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41249   (eval $ac_try) 2>&5
41250   ac_status=$?
41251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41252   (exit $ac_status); }; }; then
41253   eval "$as_ac_var=yes"
41254 else
41255   echo "$as_me: failed program was:" >&5
41256 sed 's/^/| /' conftest.$ac_ext >&5
41257
41258 eval "$as_ac_var=no"
41259 fi
41260 rm -f conftest.err conftest.$ac_objext \
41261       conftest$ac_exeext conftest.$ac_ext
41262 fi
41263 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41264 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41265 if test `eval echo '${'$as_ac_var'}'` = yes; then
41266   cat >>confdefs.h <<_ACEOF
41267 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41268 _ACEOF
41269  ice_have_mktemp=yes
41270 fi
41271 done
41272
41273 if test "${ice_have_mktemp}" = yes; then
41274 echo "$as_me:$LINENO: checking for mktemp declaration in stdlib.h" >&5
41275 echo $ECHO_N "checking for mktemp declaration in stdlib.h... $ECHO_C" >&6
41276 if test "${ice_cv_have_mktemp_decl+set}" = set; then
41277   echo $ECHO_N "(cached) $ECHO_C" >&6
41278 else
41279
41280 ice_cv_have_mktemp_decl=no
41281 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
41282 ice_re_word='(^|[^a-zA-Z0-9_])'
41283 for header in stdlib.h; do
41284 # Check for ordinary declaration
41285 cat >conftest.$ac_ext <<_ACEOF
41286 /* confdefs.h.  */
41287 _ACEOF
41288 cat confdefs.h >>conftest.$ac_ext
41289 cat >>conftest.$ac_ext <<_ACEOF
41290 /* end confdefs.h.  */
41291 #include <$header>
41292
41293 _ACEOF
41294 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41295   $EGREP "${ice_re_word}mktemp[         ]*\(" >/dev/null 2>&1; then
41296   ice_cv_have_mktemp_decl=yes
41297 fi
41298 rm -f conftest*
41299
41300 if test "$ice_cv_have_mktemp_decl" = yes; then
41301         break
41302 fi
41303 # Check for "fixed" declaration like "getpid _PARAMS((int))"
41304 cat >conftest.$ac_ext <<_ACEOF
41305 /* confdefs.h.  */
41306 _ACEOF
41307 cat confdefs.h >>conftest.$ac_ext
41308 cat >>conftest.$ac_ext <<_ACEOF
41309 /* end confdefs.h.  */
41310 #include <$header>
41311
41312 _ACEOF
41313 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41314   $EGREP "${ice_re_word}mktemp[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
41315   ice_cv_have_mktemp_decl=yes
41316 fi
41317 rm -f conftest*
41318
41319 if test "$ice_cv_have_mktemp_decl" = yes; then
41320         break
41321 fi
41322 done
41323
41324 fi
41325
41326 echo "$as_me:$LINENO: result: $ice_cv_have_mktemp_decl" >&5
41327 echo "${ECHO_T}$ice_cv_have_mktemp_decl" >&6
41328 if test "$ice_cv_have_mktemp_decl" = yes; then
41329
41330 cat >>confdefs.h <<_ACEOF
41331 #define HAVE_MKTEMP_DECL 1
41332 _ACEOF
41333
41334 fi
41335 fi
41336
41337
41338 for ac_func in mktime
41339 do
41340 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41341 echo "$as_me:$LINENO: checking for $ac_func" >&5
41342 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41343 if eval "test \"\${$as_ac_var+set}\" = set"; then
41344   echo $ECHO_N "(cached) $ECHO_C" >&6
41345 else
41346   cat >conftest.$ac_ext <<_ACEOF
41347 /* confdefs.h.  */
41348 _ACEOF
41349 cat confdefs.h >>conftest.$ac_ext
41350 cat >>conftest.$ac_ext <<_ACEOF
41351 /* end confdefs.h.  */
41352 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41353    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41354 #define $ac_func innocuous_$ac_func
41355
41356 /* System header to define __stub macros and hopefully few prototypes,
41357     which can conflict with char $ac_func (); below.
41358     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41359     <limits.h> exists even on freestanding compilers.  */
41360
41361 #ifdef __STDC__
41362 # include <limits.h>
41363 #else
41364 # include <assert.h>
41365 #endif
41366
41367 #undef $ac_func
41368
41369 /* Override any gcc2 internal prototype to avoid an error.  */
41370 #ifdef __cplusplus
41371 extern "C"
41372 {
41373 #endif
41374 /* We use char because int might match the return type of a gcc2
41375    builtin and then its argument prototype would still apply.  */
41376 char $ac_func ();
41377 /* The GNU C library defines this for functions which it implements
41378     to always fail with ENOSYS.  Some functions are actually named
41379     something starting with __ and the normal name is an alias.  */
41380 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41381 choke me
41382 #else
41383 char (*f) () = $ac_func;
41384 #endif
41385 #ifdef __cplusplus
41386 }
41387 #endif
41388
41389 int
41390 main ()
41391 {
41392 return f != $ac_func;
41393   ;
41394   return 0;
41395 }
41396 _ACEOF
41397 rm -f conftest.$ac_objext conftest$ac_exeext
41398 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41399   (eval $ac_link) 2>conftest.er1
41400   ac_status=$?
41401   grep -v '^ *+' conftest.er1 >conftest.err
41402   rm -f conftest.er1
41403   cat conftest.err >&5
41404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41405   (exit $ac_status); } &&
41406          { ac_try='test -z "$ac_c_werror_flag"
41407                          || test ! -s conftest.err'
41408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41409   (eval $ac_try) 2>&5
41410   ac_status=$?
41411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41412   (exit $ac_status); }; } &&
41413          { ac_try='test -s conftest$ac_exeext'
41414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41415   (eval $ac_try) 2>&5
41416   ac_status=$?
41417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41418   (exit $ac_status); }; }; then
41419   eval "$as_ac_var=yes"
41420 else
41421   echo "$as_me: failed program was:" >&5
41422 sed 's/^/| /' conftest.$ac_ext >&5
41423
41424 eval "$as_ac_var=no"
41425 fi
41426 rm -f conftest.err conftest.$ac_objext \
41427       conftest$ac_exeext conftest.$ac_ext
41428 fi
41429 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41430 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41431 if test `eval echo '${'$as_ac_var'}'` = yes; then
41432   cat >>confdefs.h <<_ACEOF
41433 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41434 _ACEOF
41435
41436 else
41437   case $LIBOBJS in
41438     "$ac_func.$ac_objext"   | \
41439   *" $ac_func.$ac_objext"   | \
41440     "$ac_func.$ac_objext "* | \
41441   *" $ac_func.$ac_objext "* ) ;;
41442   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
41443 esac
41444
41445 fi
41446 done
41447
41448
41449
41450 ice_have_mktime=no
41451
41452 for ac_func in mktime
41453 do
41454 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41455 echo "$as_me:$LINENO: checking for $ac_func" >&5
41456 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41457 if eval "test \"\${$as_ac_var+set}\" = set"; then
41458   echo $ECHO_N "(cached) $ECHO_C" >&6
41459 else
41460   cat >conftest.$ac_ext <<_ACEOF
41461 /* confdefs.h.  */
41462 _ACEOF
41463 cat confdefs.h >>conftest.$ac_ext
41464 cat >>conftest.$ac_ext <<_ACEOF
41465 /* end confdefs.h.  */
41466 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41467    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41468 #define $ac_func innocuous_$ac_func
41469
41470 /* System header to define __stub macros and hopefully few prototypes,
41471     which can conflict with char $ac_func (); below.
41472     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41473     <limits.h> exists even on freestanding compilers.  */
41474
41475 #ifdef __STDC__
41476 # include <limits.h>
41477 #else
41478 # include <assert.h>
41479 #endif
41480
41481 #undef $ac_func
41482
41483 /* Override any gcc2 internal prototype to avoid an error.  */
41484 #ifdef __cplusplus
41485 extern "C"
41486 {
41487 #endif
41488 /* We use char because int might match the return type of a gcc2
41489    builtin and then its argument prototype would still apply.  */
41490 char $ac_func ();
41491 /* The GNU C library defines this for functions which it implements
41492     to always fail with ENOSYS.  Some functions are actually named
41493     something starting with __ and the normal name is an alias.  */
41494 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41495 choke me
41496 #else
41497 char (*f) () = $ac_func;
41498 #endif
41499 #ifdef __cplusplus
41500 }
41501 #endif
41502
41503 int
41504 main ()
41505 {
41506 return f != $ac_func;
41507   ;
41508   return 0;
41509 }
41510 _ACEOF
41511 rm -f conftest.$ac_objext conftest$ac_exeext
41512 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41513   (eval $ac_link) 2>conftest.er1
41514   ac_status=$?
41515   grep -v '^ *+' conftest.er1 >conftest.err
41516   rm -f conftest.er1
41517   cat conftest.err >&5
41518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41519   (exit $ac_status); } &&
41520          { ac_try='test -z "$ac_c_werror_flag"
41521                          || test ! -s conftest.err'
41522   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41523   (eval $ac_try) 2>&5
41524   ac_status=$?
41525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41526   (exit $ac_status); }; } &&
41527          { ac_try='test -s conftest$ac_exeext'
41528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41529   (eval $ac_try) 2>&5
41530   ac_status=$?
41531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41532   (exit $ac_status); }; }; then
41533   eval "$as_ac_var=yes"
41534 else
41535   echo "$as_me: failed program was:" >&5
41536 sed 's/^/| /' conftest.$ac_ext >&5
41537
41538 eval "$as_ac_var=no"
41539 fi
41540 rm -f conftest.err conftest.$ac_objext \
41541       conftest$ac_exeext conftest.$ac_ext
41542 fi
41543 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41544 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41545 if test `eval echo '${'$as_ac_var'}'` = yes; then
41546   cat >>confdefs.h <<_ACEOF
41547 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41548 _ACEOF
41549  ice_have_mktime=yes
41550 fi
41551 done
41552
41553 if test "${ice_have_mktime}" = yes; then
41554 echo "$as_me:$LINENO: checking for mktime declaration in time.h sys/time.h" >&5
41555 echo $ECHO_N "checking for mktime declaration in time.h sys/time.h... $ECHO_C" >&6
41556 if test "${ice_cv_have_mktime_decl+set}" = set; then
41557   echo $ECHO_N "(cached) $ECHO_C" >&6
41558 else
41559
41560 ice_cv_have_mktime_decl=no
41561 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
41562 ice_re_word='(^|[^a-zA-Z0-9_])'
41563 for header in time.h sys/time.h; do
41564 # Check for ordinary declaration
41565 cat >conftest.$ac_ext <<_ACEOF
41566 /* confdefs.h.  */
41567 _ACEOF
41568 cat confdefs.h >>conftest.$ac_ext
41569 cat >>conftest.$ac_ext <<_ACEOF
41570 /* end confdefs.h.  */
41571 #include <$header>
41572
41573 _ACEOF
41574 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41575   $EGREP "${ice_re_word}mktime[         ]*\(" >/dev/null 2>&1; then
41576   ice_cv_have_mktime_decl=yes
41577 fi
41578 rm -f conftest*
41579
41580 if test "$ice_cv_have_mktime_decl" = yes; then
41581         break
41582 fi
41583 # Check for "fixed" declaration like "getpid _PARAMS((int))"
41584 cat >conftest.$ac_ext <<_ACEOF
41585 /* confdefs.h.  */
41586 _ACEOF
41587 cat confdefs.h >>conftest.$ac_ext
41588 cat >>conftest.$ac_ext <<_ACEOF
41589 /* end confdefs.h.  */
41590 #include <$header>
41591
41592 _ACEOF
41593 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41594   $EGREP "${ice_re_word}mktime[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
41595   ice_cv_have_mktime_decl=yes
41596 fi
41597 rm -f conftest*
41598
41599 if test "$ice_cv_have_mktime_decl" = yes; then
41600         break
41601 fi
41602 done
41603
41604 fi
41605
41606 echo "$as_me:$LINENO: result: $ice_cv_have_mktime_decl" >&5
41607 echo "${ECHO_T}$ice_cv_have_mktime_decl" >&6
41608 if test "$ice_cv_have_mktime_decl" = yes; then
41609
41610 cat >>confdefs.h <<_ACEOF
41611 #define HAVE_MKTIME_DECL 1
41612 _ACEOF
41613
41614 fi
41615 fi
41616
41617
41618
41619 for ac_header in stdlib.h unistd.h
41620 do
41621 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
41622 if eval "test \"\${$as_ac_Header+set}\" = set"; then
41623   echo "$as_me:$LINENO: checking for $ac_header" >&5
41624 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
41625 if eval "test \"\${$as_ac_Header+set}\" = set"; then
41626   echo $ECHO_N "(cached) $ECHO_C" >&6
41627 fi
41628 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
41629 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
41630 else
41631   # Is the header compilable?
41632 echo "$as_me:$LINENO: checking $ac_header usability" >&5
41633 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
41634 cat >conftest.$ac_ext <<_ACEOF
41635 /* confdefs.h.  */
41636 _ACEOF
41637 cat confdefs.h >>conftest.$ac_ext
41638 cat >>conftest.$ac_ext <<_ACEOF
41639 /* end confdefs.h.  */
41640 $ac_includes_default
41641 #include <$ac_header>
41642 _ACEOF
41643 rm -f conftest.$ac_objext
41644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41645   (eval $ac_compile) 2>conftest.er1
41646   ac_status=$?
41647   grep -v '^ *+' conftest.er1 >conftest.err
41648   rm -f conftest.er1
41649   cat conftest.err >&5
41650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41651   (exit $ac_status); } &&
41652          { ac_try='test -z "$ac_c_werror_flag"
41653                          || test ! -s conftest.err'
41654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41655   (eval $ac_try) 2>&5
41656   ac_status=$?
41657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41658   (exit $ac_status); }; } &&
41659          { ac_try='test -s conftest.$ac_objext'
41660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41661   (eval $ac_try) 2>&5
41662   ac_status=$?
41663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41664   (exit $ac_status); }; }; then
41665   ac_header_compiler=yes
41666 else
41667   echo "$as_me: failed program was:" >&5
41668 sed 's/^/| /' conftest.$ac_ext >&5
41669
41670 ac_header_compiler=no
41671 fi
41672 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41673 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41674 echo "${ECHO_T}$ac_header_compiler" >&6
41675
41676 # Is the header present?
41677 echo "$as_me:$LINENO: checking $ac_header presence" >&5
41678 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
41679 cat >conftest.$ac_ext <<_ACEOF
41680 /* confdefs.h.  */
41681 _ACEOF
41682 cat confdefs.h >>conftest.$ac_ext
41683 cat >>conftest.$ac_ext <<_ACEOF
41684 /* end confdefs.h.  */
41685 #include <$ac_header>
41686 _ACEOF
41687 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
41688   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
41689   ac_status=$?
41690   grep -v '^ *+' conftest.er1 >conftest.err
41691   rm -f conftest.er1
41692   cat conftest.err >&5
41693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41694   (exit $ac_status); } >/dev/null; then
41695   if test -s conftest.err; then
41696     ac_cpp_err=$ac_c_preproc_warn_flag
41697     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
41698   else
41699     ac_cpp_err=
41700   fi
41701 else
41702   ac_cpp_err=yes
41703 fi
41704 if test -z "$ac_cpp_err"; then
41705   ac_header_preproc=yes
41706 else
41707   echo "$as_me: failed program was:" >&5
41708 sed 's/^/| /' conftest.$ac_ext >&5
41709
41710   ac_header_preproc=no
41711 fi
41712 rm -f conftest.err conftest.$ac_ext
41713 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41714 echo "${ECHO_T}$ac_header_preproc" >&6
41715
41716 # So?  What about this header?
41717 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41718   yes:no: )
41719     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
41720 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
41721     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
41722 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
41723     ac_header_preproc=yes
41724     ;;
41725   no:yes:* )
41726     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
41727 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
41728     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
41729 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
41730     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
41731 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
41732     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
41733 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
41734     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
41735 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
41736     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
41737 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
41738     (
41739       cat <<\_ASBOX
41740 ## ------------------------------------------ ##
41741 ## Report this to the AC_PACKAGE_NAME lists.  ##
41742 ## ------------------------------------------ ##
41743 _ASBOX
41744     ) |
41745       sed "s/^/$as_me: WARNING:     /" >&2
41746     ;;
41747 esac
41748 echo "$as_me:$LINENO: checking for $ac_header" >&5
41749 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
41750 if eval "test \"\${$as_ac_Header+set}\" = set"; then
41751   echo $ECHO_N "(cached) $ECHO_C" >&6
41752 else
41753   eval "$as_ac_Header=\$ac_header_preproc"
41754 fi
41755 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
41756 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
41757
41758 fi
41759 if test `eval echo '${'$as_ac_Header'}'` = yes; then
41760   cat >>confdefs.h <<_ACEOF
41761 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
41762 _ACEOF
41763
41764 fi
41765
41766 done
41767
41768
41769 for ac_func in getpagesize
41770 do
41771 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41772 echo "$as_me:$LINENO: checking for $ac_func" >&5
41773 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41774 if eval "test \"\${$as_ac_var+set}\" = set"; then
41775   echo $ECHO_N "(cached) $ECHO_C" >&6
41776 else
41777   cat >conftest.$ac_ext <<_ACEOF
41778 /* confdefs.h.  */
41779 _ACEOF
41780 cat confdefs.h >>conftest.$ac_ext
41781 cat >>conftest.$ac_ext <<_ACEOF
41782 /* end confdefs.h.  */
41783 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41784    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41785 #define $ac_func innocuous_$ac_func
41786
41787 /* System header to define __stub macros and hopefully few prototypes,
41788     which can conflict with char $ac_func (); below.
41789     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41790     <limits.h> exists even on freestanding compilers.  */
41791
41792 #ifdef __STDC__
41793 # include <limits.h>
41794 #else
41795 # include <assert.h>
41796 #endif
41797
41798 #undef $ac_func
41799
41800 /* Override any gcc2 internal prototype to avoid an error.  */
41801 #ifdef __cplusplus
41802 extern "C"
41803 {
41804 #endif
41805 /* We use char because int might match the return type of a gcc2
41806    builtin and then its argument prototype would still apply.  */
41807 char $ac_func ();
41808 /* The GNU C library defines this for functions which it implements
41809     to always fail with ENOSYS.  Some functions are actually named
41810     something starting with __ and the normal name is an alias.  */
41811 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41812 choke me
41813 #else
41814 char (*f) () = $ac_func;
41815 #endif
41816 #ifdef __cplusplus
41817 }
41818 #endif
41819
41820 int
41821 main ()
41822 {
41823 return f != $ac_func;
41824   ;
41825   return 0;
41826 }
41827 _ACEOF
41828 rm -f conftest.$ac_objext conftest$ac_exeext
41829 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41830   (eval $ac_link) 2>conftest.er1
41831   ac_status=$?
41832   grep -v '^ *+' conftest.er1 >conftest.err
41833   rm -f conftest.er1
41834   cat conftest.err >&5
41835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41836   (exit $ac_status); } &&
41837          { ac_try='test -z "$ac_c_werror_flag"
41838                          || test ! -s conftest.err'
41839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41840   (eval $ac_try) 2>&5
41841   ac_status=$?
41842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41843   (exit $ac_status); }; } &&
41844          { ac_try='test -s conftest$ac_exeext'
41845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41846   (eval $ac_try) 2>&5
41847   ac_status=$?
41848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41849   (exit $ac_status); }; }; then
41850   eval "$as_ac_var=yes"
41851 else
41852   echo "$as_me: failed program was:" >&5
41853 sed 's/^/| /' conftest.$ac_ext >&5
41854
41855 eval "$as_ac_var=no"
41856 fi
41857 rm -f conftest.err conftest.$ac_objext \
41858       conftest$ac_exeext conftest.$ac_ext
41859 fi
41860 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41861 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41862 if test `eval echo '${'$as_ac_var'}'` = yes; then
41863   cat >>confdefs.h <<_ACEOF
41864 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41865 _ACEOF
41866
41867 fi
41868 done
41869
41870 echo "$as_me:$LINENO: checking for working mmap" >&5
41871 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
41872 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
41873   echo $ECHO_N "(cached) $ECHO_C" >&6
41874 else
41875   if test "$cross_compiling" = yes; then
41876   ac_cv_func_mmap_fixed_mapped=no
41877 else
41878   cat >conftest.$ac_ext <<_ACEOF
41879 /* confdefs.h.  */
41880 _ACEOF
41881 cat confdefs.h >>conftest.$ac_ext
41882 cat >>conftest.$ac_ext <<_ACEOF
41883 /* end confdefs.h.  */
41884 $ac_includes_default
41885 /* malloc might have been renamed as rpl_malloc. */
41886 #undef malloc
41887
41888 /* Thanks to Mike Haertel and Jim Avera for this test.
41889    Here is a matrix of mmap possibilities:
41890         mmap private not fixed
41891         mmap private fixed at somewhere currently unmapped
41892         mmap private fixed at somewhere already mapped
41893         mmap shared not fixed
41894         mmap shared fixed at somewhere currently unmapped
41895         mmap shared fixed at somewhere already mapped
41896    For private mappings, we should verify that changes cannot be read()
41897    back from the file, nor mmap's back from the file at a different
41898    address.  (There have been systems where private was not correctly
41899    implemented like the infamous i386 svr4.0, and systems where the
41900    VM page cache was not coherent with the file system buffer cache
41901    like early versions of FreeBSD and possibly contemporary NetBSD.)
41902    For shared mappings, we should conversely verify that changes get
41903    propagated back to all the places they're supposed to be.
41904
41905    Grep wants private fixed already mapped.
41906    The main things grep needs to know about mmap are:
41907    * does it exist and is it safe to write into the mmap'd area
41908    * how to use it (BSD variants)  */
41909
41910 #include <fcntl.h>
41911 #include <sys/mman.h>
41912
41913 #if !STDC_HEADERS && !HAVE_STDLIB_H
41914 char *malloc ();
41915 #endif
41916
41917 /* This mess was copied from the GNU getpagesize.h.  */
41918 #if !HAVE_GETPAGESIZE
41919 /* Assume that all systems that can run configure have sys/param.h.  */
41920 # if !HAVE_SYS_PARAM_H
41921 #  define HAVE_SYS_PARAM_H 1
41922 # endif
41923
41924 # ifdef _SC_PAGESIZE
41925 #  define getpagesize() sysconf(_SC_PAGESIZE)
41926 # else /* no _SC_PAGESIZE */
41927 #  if HAVE_SYS_PARAM_H
41928 #   include <sys/param.h>
41929 #   ifdef EXEC_PAGESIZE
41930 #    define getpagesize() EXEC_PAGESIZE
41931 #   else /* no EXEC_PAGESIZE */
41932 #    ifdef NBPG
41933 #     define getpagesize() NBPG * CLSIZE
41934 #     ifndef CLSIZE
41935 #      define CLSIZE 1
41936 #     endif /* no CLSIZE */
41937 #    else /* no NBPG */
41938 #     ifdef NBPC
41939 #      define getpagesize() NBPC
41940 #     else /* no NBPC */
41941 #      ifdef PAGESIZE
41942 #       define getpagesize() PAGESIZE
41943 #      endif /* PAGESIZE */
41944 #     endif /* no NBPC */
41945 #    endif /* no NBPG */
41946 #   endif /* no EXEC_PAGESIZE */
41947 #  else /* no HAVE_SYS_PARAM_H */
41948 #   define getpagesize() 8192   /* punt totally */
41949 #  endif /* no HAVE_SYS_PARAM_H */
41950 # endif /* no _SC_PAGESIZE */
41951
41952 #endif /* no HAVE_GETPAGESIZE */
41953
41954 int
41955 main ()
41956 {
41957   char *data, *data2, *data3;
41958   int i, pagesize;
41959   int fd;
41960
41961   pagesize = getpagesize ();
41962
41963   /* First, make a file with some known garbage in it. */
41964   data = (char *) malloc (pagesize);
41965   if (!data)
41966     exit (1);
41967   for (i = 0; i < pagesize; ++i)
41968     *(data + i) = rand ();
41969   umask (0);
41970   fd = creat ("conftest.mmap", 0600);
41971   if (fd < 0)
41972     exit (1);
41973   if (write (fd, data, pagesize) != pagesize)
41974     exit (1);
41975   close (fd);
41976
41977   /* Next, try to mmap the file at a fixed address which already has
41978      something else allocated at it.  If we can, also make sure that
41979      we see the same garbage.  */
41980   fd = open ("conftest.mmap", O_RDWR);
41981   if (fd < 0)
41982     exit (1);
41983   data2 = (char *) malloc (2 * pagesize);
41984   if (!data2)
41985     exit (1);
41986   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
41987   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
41988                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
41989     exit (1);
41990   for (i = 0; i < pagesize; ++i)
41991     if (*(data + i) != *(data2 + i))
41992       exit (1);
41993
41994   /* Finally, make sure that changes to the mapped area do not
41995      percolate back to the file as seen by read().  (This is a bug on
41996      some variants of i386 svr4.0.)  */
41997   for (i = 0; i < pagesize; ++i)
41998     *(data2 + i) = *(data2 + i) + 1;
41999   data3 = (char *) malloc (pagesize);
42000   if (!data3)
42001     exit (1);
42002   if (read (fd, data3, pagesize) != pagesize)
42003     exit (1);
42004   for (i = 0; i < pagesize; ++i)
42005     if (*(data + i) != *(data3 + i))
42006       exit (1);
42007   close (fd);
42008   exit (0);
42009 }
42010 _ACEOF
42011 rm -f conftest$ac_exeext
42012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42013   (eval $ac_link) 2>&5
42014   ac_status=$?
42015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42016   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
42017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42018   (eval $ac_try) 2>&5
42019   ac_status=$?
42020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42021   (exit $ac_status); }; }; then
42022   ac_cv_func_mmap_fixed_mapped=yes
42023 else
42024   echo "$as_me: program exited with status $ac_status" >&5
42025 echo "$as_me: failed program was:" >&5
42026 sed 's/^/| /' conftest.$ac_ext >&5
42027
42028 ( exit $ac_status )
42029 ac_cv_func_mmap_fixed_mapped=no
42030 fi
42031 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
42032 fi
42033 fi
42034 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
42035 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
42036 if test $ac_cv_func_mmap_fixed_mapped = yes; then
42037
42038 cat >>confdefs.h <<\_ACEOF
42039 #define HAVE_MMAP 1
42040 _ACEOF
42041
42042 fi
42043 rm -f conftest.mmap
42044
42045
42046 for ac_func in on_exit
42047 do
42048 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42049 echo "$as_me:$LINENO: checking for $ac_func" >&5
42050 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42051 if eval "test \"\${$as_ac_var+set}\" = set"; then
42052   echo $ECHO_N "(cached) $ECHO_C" >&6
42053 else
42054   cat >conftest.$ac_ext <<_ACEOF
42055 /* confdefs.h.  */
42056 _ACEOF
42057 cat confdefs.h >>conftest.$ac_ext
42058 cat >>conftest.$ac_ext <<_ACEOF
42059 /* end confdefs.h.  */
42060 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42061    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42062 #define $ac_func innocuous_$ac_func
42063
42064 /* System header to define __stub macros and hopefully few prototypes,
42065     which can conflict with char $ac_func (); below.
42066     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42067     <limits.h> exists even on freestanding compilers.  */
42068
42069 #ifdef __STDC__
42070 # include <limits.h>
42071 #else
42072 # include <assert.h>
42073 #endif
42074
42075 #undef $ac_func
42076
42077 /* Override any gcc2 internal prototype to avoid an error.  */
42078 #ifdef __cplusplus
42079 extern "C"
42080 {
42081 #endif
42082 /* We use char because int might match the return type of a gcc2
42083    builtin and then its argument prototype would still apply.  */
42084 char $ac_func ();
42085 /* The GNU C library defines this for functions which it implements
42086     to always fail with ENOSYS.  Some functions are actually named
42087     something starting with __ and the normal name is an alias.  */
42088 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42089 choke me
42090 #else
42091 char (*f) () = $ac_func;
42092 #endif
42093 #ifdef __cplusplus
42094 }
42095 #endif
42096
42097 int
42098 main ()
42099 {
42100 return f != $ac_func;
42101   ;
42102   return 0;
42103 }
42104 _ACEOF
42105 rm -f conftest.$ac_objext conftest$ac_exeext
42106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42107   (eval $ac_link) 2>conftest.er1
42108   ac_status=$?
42109   grep -v '^ *+' conftest.er1 >conftest.err
42110   rm -f conftest.er1
42111   cat conftest.err >&5
42112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42113   (exit $ac_status); } &&
42114          { ac_try='test -z "$ac_c_werror_flag"
42115                          || test ! -s conftest.err'
42116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42117   (eval $ac_try) 2>&5
42118   ac_status=$?
42119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42120   (exit $ac_status); }; } &&
42121          { ac_try='test -s conftest$ac_exeext'
42122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42123   (eval $ac_try) 2>&5
42124   ac_status=$?
42125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42126   (exit $ac_status); }; }; then
42127   eval "$as_ac_var=yes"
42128 else
42129   echo "$as_me: failed program was:" >&5
42130 sed 's/^/| /' conftest.$ac_ext >&5
42131
42132 eval "$as_ac_var=no"
42133 fi
42134 rm -f conftest.err conftest.$ac_objext \
42135       conftest$ac_exeext conftest.$ac_ext
42136 fi
42137 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42138 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42139 if test `eval echo '${'$as_ac_var'}'` = yes; then
42140   cat >>confdefs.h <<_ACEOF
42141 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42142 _ACEOF
42143
42144 fi
42145 done
42146
42147
42148 ice_have_openlog=no
42149
42150 for ac_func in openlog
42151 do
42152 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42153 echo "$as_me:$LINENO: checking for $ac_func" >&5
42154 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42155 if eval "test \"\${$as_ac_var+set}\" = set"; then
42156   echo $ECHO_N "(cached) $ECHO_C" >&6
42157 else
42158   cat >conftest.$ac_ext <<_ACEOF
42159 /* confdefs.h.  */
42160 _ACEOF
42161 cat confdefs.h >>conftest.$ac_ext
42162 cat >>conftest.$ac_ext <<_ACEOF
42163 /* end confdefs.h.  */
42164 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42165    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42166 #define $ac_func innocuous_$ac_func
42167
42168 /* System header to define __stub macros and hopefully few prototypes,
42169     which can conflict with char $ac_func (); below.
42170     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42171     <limits.h> exists even on freestanding compilers.  */
42172
42173 #ifdef __STDC__
42174 # include <limits.h>
42175 #else
42176 # include <assert.h>
42177 #endif
42178
42179 #undef $ac_func
42180
42181 /* Override any gcc2 internal prototype to avoid an error.  */
42182 #ifdef __cplusplus
42183 extern "C"
42184 {
42185 #endif
42186 /* We use char because int might match the return type of a gcc2
42187    builtin and then its argument prototype would still apply.  */
42188 char $ac_func ();
42189 /* The GNU C library defines this for functions which it implements
42190     to always fail with ENOSYS.  Some functions are actually named
42191     something starting with __ and the normal name is an alias.  */
42192 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42193 choke me
42194 #else
42195 char (*f) () = $ac_func;
42196 #endif
42197 #ifdef __cplusplus
42198 }
42199 #endif
42200
42201 int
42202 main ()
42203 {
42204 return f != $ac_func;
42205   ;
42206   return 0;
42207 }
42208 _ACEOF
42209 rm -f conftest.$ac_objext conftest$ac_exeext
42210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42211   (eval $ac_link) 2>conftest.er1
42212   ac_status=$?
42213   grep -v '^ *+' conftest.er1 >conftest.err
42214   rm -f conftest.er1
42215   cat conftest.err >&5
42216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42217   (exit $ac_status); } &&
42218          { ac_try='test -z "$ac_c_werror_flag"
42219                          || test ! -s conftest.err'
42220   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42221   (eval $ac_try) 2>&5
42222   ac_status=$?
42223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42224   (exit $ac_status); }; } &&
42225          { ac_try='test -s conftest$ac_exeext'
42226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42227   (eval $ac_try) 2>&5
42228   ac_status=$?
42229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42230   (exit $ac_status); }; }; then
42231   eval "$as_ac_var=yes"
42232 else
42233   echo "$as_me: failed program was:" >&5
42234 sed 's/^/| /' conftest.$ac_ext >&5
42235
42236 eval "$as_ac_var=no"
42237 fi
42238 rm -f conftest.err conftest.$ac_objext \
42239       conftest$ac_exeext conftest.$ac_ext
42240 fi
42241 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42242 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42243 if test `eval echo '${'$as_ac_var'}'` = yes; then
42244   cat >>confdefs.h <<_ACEOF
42245 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42246 _ACEOF
42247  ice_have_openlog=yes
42248 fi
42249 done
42250
42251 if test "${ice_have_openlog}" = yes; then
42252 echo "$as_me:$LINENO: checking for openlog declaration in syslog.h" >&5
42253 echo $ECHO_N "checking for openlog declaration in syslog.h... $ECHO_C" >&6
42254 if test "${ice_cv_have_openlog_decl+set}" = set; then
42255   echo $ECHO_N "(cached) $ECHO_C" >&6
42256 else
42257
42258 ice_cv_have_openlog_decl=no
42259 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
42260 ice_re_word='(^|[^a-zA-Z0-9_])'
42261 for header in syslog.h; do
42262 # Check for ordinary declaration
42263 cat >conftest.$ac_ext <<_ACEOF
42264 /* confdefs.h.  */
42265 _ACEOF
42266 cat confdefs.h >>conftest.$ac_ext
42267 cat >>conftest.$ac_ext <<_ACEOF
42268 /* end confdefs.h.  */
42269 #include <$header>
42270
42271 _ACEOF
42272 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42273   $EGREP "${ice_re_word}openlog[        ]*\(" >/dev/null 2>&1; then
42274   ice_cv_have_openlog_decl=yes
42275 fi
42276 rm -f conftest*
42277
42278 if test "$ice_cv_have_openlog_decl" = yes; then
42279         break
42280 fi
42281 # Check for "fixed" declaration like "getpid _PARAMS((int))"
42282 cat >conftest.$ac_ext <<_ACEOF
42283 /* confdefs.h.  */
42284 _ACEOF
42285 cat confdefs.h >>conftest.$ac_ext
42286 cat >>conftest.$ac_ext <<_ACEOF
42287 /* end confdefs.h.  */
42288 #include <$header>
42289
42290 _ACEOF
42291 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42292   $EGREP "${ice_re_word}openlog[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
42293   ice_cv_have_openlog_decl=yes
42294 fi
42295 rm -f conftest*
42296
42297 if test "$ice_cv_have_openlog_decl" = yes; then
42298         break
42299 fi
42300 done
42301
42302 fi
42303
42304 echo "$as_me:$LINENO: result: $ice_cv_have_openlog_decl" >&5
42305 echo "${ECHO_T}$ice_cv_have_openlog_decl" >&6
42306 if test "$ice_cv_have_openlog_decl" = yes; then
42307
42308 cat >>confdefs.h <<_ACEOF
42309 #define HAVE_OPENLOG_DECL 1
42310 _ACEOF
42311
42312 fi
42313 fi
42314
42315
42316 ice_have_pclose=no
42317
42318 for ac_func in pclose
42319 do
42320 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42321 echo "$as_me:$LINENO: checking for $ac_func" >&5
42322 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42323 if eval "test \"\${$as_ac_var+set}\" = set"; then
42324   echo $ECHO_N "(cached) $ECHO_C" >&6
42325 else
42326   cat >conftest.$ac_ext <<_ACEOF
42327 /* confdefs.h.  */
42328 _ACEOF
42329 cat confdefs.h >>conftest.$ac_ext
42330 cat >>conftest.$ac_ext <<_ACEOF
42331 /* end confdefs.h.  */
42332 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42333    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42334 #define $ac_func innocuous_$ac_func
42335
42336 /* System header to define __stub macros and hopefully few prototypes,
42337     which can conflict with char $ac_func (); below.
42338     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42339     <limits.h> exists even on freestanding compilers.  */
42340
42341 #ifdef __STDC__
42342 # include <limits.h>
42343 #else
42344 # include <assert.h>
42345 #endif
42346
42347 #undef $ac_func
42348
42349 /* Override any gcc2 internal prototype to avoid an error.  */
42350 #ifdef __cplusplus
42351 extern "C"
42352 {
42353 #endif
42354 /* We use char because int might match the return type of a gcc2
42355    builtin and then its argument prototype would still apply.  */
42356 char $ac_func ();
42357 /* The GNU C library defines this for functions which it implements
42358     to always fail with ENOSYS.  Some functions are actually named
42359     something starting with __ and the normal name is an alias.  */
42360 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42361 choke me
42362 #else
42363 char (*f) () = $ac_func;
42364 #endif
42365 #ifdef __cplusplus
42366 }
42367 #endif
42368
42369 int
42370 main ()
42371 {
42372 return f != $ac_func;
42373   ;
42374   return 0;
42375 }
42376 _ACEOF
42377 rm -f conftest.$ac_objext conftest$ac_exeext
42378 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42379   (eval $ac_link) 2>conftest.er1
42380   ac_status=$?
42381   grep -v '^ *+' conftest.er1 >conftest.err
42382   rm -f conftest.er1
42383   cat conftest.err >&5
42384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42385   (exit $ac_status); } &&
42386          { ac_try='test -z "$ac_c_werror_flag"
42387                          || test ! -s conftest.err'
42388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42389   (eval $ac_try) 2>&5
42390   ac_status=$?
42391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42392   (exit $ac_status); }; } &&
42393          { ac_try='test -s conftest$ac_exeext'
42394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42395   (eval $ac_try) 2>&5
42396   ac_status=$?
42397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42398   (exit $ac_status); }; }; then
42399   eval "$as_ac_var=yes"
42400 else
42401   echo "$as_me: failed program was:" >&5
42402 sed 's/^/| /' conftest.$ac_ext >&5
42403
42404 eval "$as_ac_var=no"
42405 fi
42406 rm -f conftest.err conftest.$ac_objext \
42407       conftest$ac_exeext conftest.$ac_ext
42408 fi
42409 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42410 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42411 if test `eval echo '${'$as_ac_var'}'` = yes; then
42412   cat >>confdefs.h <<_ACEOF
42413 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42414 _ACEOF
42415  ice_have_pclose=yes
42416 fi
42417 done
42418
42419 if test "${ice_have_pclose}" = yes; then
42420 echo "$as_me:$LINENO: checking for pclose declaration in stdio.h" >&5
42421 echo $ECHO_N "checking for pclose declaration in stdio.h... $ECHO_C" >&6
42422 if test "${ice_cv_have_pclose_decl+set}" = set; then
42423   echo $ECHO_N "(cached) $ECHO_C" >&6
42424 else
42425
42426 ice_cv_have_pclose_decl=no
42427 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
42428 ice_re_word='(^|[^a-zA-Z0-9_])'
42429 for header in stdio.h; do
42430 # Check for ordinary declaration
42431 cat >conftest.$ac_ext <<_ACEOF
42432 /* confdefs.h.  */
42433 _ACEOF
42434 cat confdefs.h >>conftest.$ac_ext
42435 cat >>conftest.$ac_ext <<_ACEOF
42436 /* end confdefs.h.  */
42437 #include <$header>
42438
42439 _ACEOF
42440 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42441   $EGREP "${ice_re_word}pclose[         ]*\(" >/dev/null 2>&1; then
42442   ice_cv_have_pclose_decl=yes
42443 fi
42444 rm -f conftest*
42445
42446 if test "$ice_cv_have_pclose_decl" = yes; then
42447         break
42448 fi
42449 # Check for "fixed" declaration like "getpid _PARAMS((int))"
42450 cat >conftest.$ac_ext <<_ACEOF
42451 /* confdefs.h.  */
42452 _ACEOF
42453 cat confdefs.h >>conftest.$ac_ext
42454 cat >>conftest.$ac_ext <<_ACEOF
42455 /* end confdefs.h.  */
42456 #include <$header>
42457
42458 _ACEOF
42459 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42460   $EGREP "${ice_re_word}pclose[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
42461   ice_cv_have_pclose_decl=yes
42462 fi
42463 rm -f conftest*
42464
42465 if test "$ice_cv_have_pclose_decl" = yes; then
42466         break
42467 fi
42468 done
42469
42470 fi
42471
42472 echo "$as_me:$LINENO: result: $ice_cv_have_pclose_decl" >&5
42473 echo "${ECHO_T}$ice_cv_have_pclose_decl" >&6
42474 if test "$ice_cv_have_pclose_decl" = yes; then
42475
42476 cat >>confdefs.h <<_ACEOF
42477 #define HAVE_PCLOSE_DECL 1
42478 _ACEOF
42479
42480 fi
42481 fi
42482
42483
42484 ice_have_perror=no
42485
42486 for ac_func in perror
42487 do
42488 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42489 echo "$as_me:$LINENO: checking for $ac_func" >&5
42490 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42491 if eval "test \"\${$as_ac_var+set}\" = set"; then
42492   echo $ECHO_N "(cached) $ECHO_C" >&6
42493 else
42494   cat >conftest.$ac_ext <<_ACEOF
42495 /* confdefs.h.  */
42496 _ACEOF
42497 cat confdefs.h >>conftest.$ac_ext
42498 cat >>conftest.$ac_ext <<_ACEOF
42499 /* end confdefs.h.  */
42500 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42501    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42502 #define $ac_func innocuous_$ac_func
42503
42504 /* System header to define __stub macros and hopefully few prototypes,
42505     which can conflict with char $ac_func (); below.
42506     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42507     <limits.h> exists even on freestanding compilers.  */
42508
42509 #ifdef __STDC__
42510 # include <limits.h>
42511 #else
42512 # include <assert.h>
42513 #endif
42514
42515 #undef $ac_func
42516
42517 /* Override any gcc2 internal prototype to avoid an error.  */
42518 #ifdef __cplusplus
42519 extern "C"
42520 {
42521 #endif
42522 /* We use char because int might match the return type of a gcc2
42523    builtin and then its argument prototype would still apply.  */
42524 char $ac_func ();
42525 /* The GNU C library defines this for functions which it implements
42526     to always fail with ENOSYS.  Some functions are actually named
42527     something starting with __ and the normal name is an alias.  */
42528 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42529 choke me
42530 #else
42531 char (*f) () = $ac_func;
42532 #endif
42533 #ifdef __cplusplus
42534 }
42535 #endif
42536
42537 int
42538 main ()
42539 {
42540 return f != $ac_func;
42541   ;
42542   return 0;
42543 }
42544 _ACEOF
42545 rm -f conftest.$ac_objext conftest$ac_exeext
42546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42547   (eval $ac_link) 2>conftest.er1
42548   ac_status=$?
42549   grep -v '^ *+' conftest.er1 >conftest.err
42550   rm -f conftest.er1
42551   cat conftest.err >&5
42552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42553   (exit $ac_status); } &&
42554          { ac_try='test -z "$ac_c_werror_flag"
42555                          || test ! -s conftest.err'
42556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42557   (eval $ac_try) 2>&5
42558   ac_status=$?
42559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42560   (exit $ac_status); }; } &&
42561          { ac_try='test -s conftest$ac_exeext'
42562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42563   (eval $ac_try) 2>&5
42564   ac_status=$?
42565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42566   (exit $ac_status); }; }; then
42567   eval "$as_ac_var=yes"
42568 else
42569   echo "$as_me: failed program was:" >&5
42570 sed 's/^/| /' conftest.$ac_ext >&5
42571
42572 eval "$as_ac_var=no"
42573 fi
42574 rm -f conftest.err conftest.$ac_objext \
42575       conftest$ac_exeext conftest.$ac_ext
42576 fi
42577 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42578 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42579 if test `eval echo '${'$as_ac_var'}'` = yes; then
42580   cat >>confdefs.h <<_ACEOF
42581 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42582 _ACEOF
42583  ice_have_perror=yes
42584 fi
42585 done
42586
42587 if test "${ice_have_perror}" = yes; then
42588 echo "$as_me:$LINENO: checking for perror declaration in stdio.h" >&5
42589 echo $ECHO_N "checking for perror declaration in stdio.h... $ECHO_C" >&6
42590 if test "${ice_cv_have_perror_decl+set}" = set; then
42591   echo $ECHO_N "(cached) $ECHO_C" >&6
42592 else
42593
42594 ice_cv_have_perror_decl=no
42595 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
42596 ice_re_word='(^|[^a-zA-Z0-9_])'
42597 for header in stdio.h; do
42598 # Check for ordinary declaration
42599 cat >conftest.$ac_ext <<_ACEOF
42600 /* confdefs.h.  */
42601 _ACEOF
42602 cat confdefs.h >>conftest.$ac_ext
42603 cat >>conftest.$ac_ext <<_ACEOF
42604 /* end confdefs.h.  */
42605 #include <$header>
42606
42607 _ACEOF
42608 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42609   $EGREP "${ice_re_word}perror[         ]*\(" >/dev/null 2>&1; then
42610   ice_cv_have_perror_decl=yes
42611 fi
42612 rm -f conftest*
42613
42614 if test "$ice_cv_have_perror_decl" = yes; then
42615         break
42616 fi
42617 # Check for "fixed" declaration like "getpid _PARAMS((int))"
42618 cat >conftest.$ac_ext <<_ACEOF
42619 /* confdefs.h.  */
42620 _ACEOF
42621 cat confdefs.h >>conftest.$ac_ext
42622 cat >>conftest.$ac_ext <<_ACEOF
42623 /* end confdefs.h.  */
42624 #include <$header>
42625
42626 _ACEOF
42627 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42628   $EGREP "${ice_re_word}perror[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
42629   ice_cv_have_perror_decl=yes
42630 fi
42631 rm -f conftest*
42632
42633 if test "$ice_cv_have_perror_decl" = yes; then
42634         break
42635 fi
42636 done
42637
42638 fi
42639
42640 echo "$as_me:$LINENO: result: $ice_cv_have_perror_decl" >&5
42641 echo "${ECHO_T}$ice_cv_have_perror_decl" >&6
42642 if test "$ice_cv_have_perror_decl" = yes; then
42643
42644 cat >>confdefs.h <<_ACEOF
42645 #define HAVE_PERROR_DECL 1
42646 _ACEOF
42647
42648 fi
42649 fi
42650
42651
42652 ice_have_printf=no
42653
42654 for ac_func in printf
42655 do
42656 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42657 echo "$as_me:$LINENO: checking for $ac_func" >&5
42658 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42659 if eval "test \"\${$as_ac_var+set}\" = set"; then
42660   echo $ECHO_N "(cached) $ECHO_C" >&6
42661 else
42662   cat >conftest.$ac_ext <<_ACEOF
42663 /* confdefs.h.  */
42664 _ACEOF
42665 cat confdefs.h >>conftest.$ac_ext
42666 cat >>conftest.$ac_ext <<_ACEOF
42667 /* end confdefs.h.  */
42668 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42669    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42670 #define $ac_func innocuous_$ac_func
42671
42672 /* System header to define __stub macros and hopefully few prototypes,
42673     which can conflict with char $ac_func (); below.
42674     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42675     <limits.h> exists even on freestanding compilers.  */
42676
42677 #ifdef __STDC__
42678 # include <limits.h>
42679 #else
42680 # include <assert.h>
42681 #endif
42682
42683 #undef $ac_func
42684
42685 /* Override any gcc2 internal prototype to avoid an error.  */
42686 #ifdef __cplusplus
42687 extern "C"
42688 {
42689 #endif
42690 /* We use char because int might match the return type of a gcc2
42691    builtin and then its argument prototype would still apply.  */
42692 char $ac_func ();
42693 /* The GNU C library defines this for functions which it implements
42694     to always fail with ENOSYS.  Some functions are actually named
42695     something starting with __ and the normal name is an alias.  */
42696 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42697 choke me
42698 #else
42699 char (*f) () = $ac_func;
42700 #endif
42701 #ifdef __cplusplus
42702 }
42703 #endif
42704
42705 int
42706 main ()
42707 {
42708 return f != $ac_func;
42709   ;
42710   return 0;
42711 }
42712 _ACEOF
42713 rm -f conftest.$ac_objext conftest$ac_exeext
42714 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42715   (eval $ac_link) 2>conftest.er1
42716   ac_status=$?
42717   grep -v '^ *+' conftest.er1 >conftest.err
42718   rm -f conftest.er1
42719   cat conftest.err >&5
42720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42721   (exit $ac_status); } &&
42722          { ac_try='test -z "$ac_c_werror_flag"
42723                          || test ! -s conftest.err'
42724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42725   (eval $ac_try) 2>&5
42726   ac_status=$?
42727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42728   (exit $ac_status); }; } &&
42729          { ac_try='test -s conftest$ac_exeext'
42730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42731   (eval $ac_try) 2>&5
42732   ac_status=$?
42733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42734   (exit $ac_status); }; }; then
42735   eval "$as_ac_var=yes"
42736 else
42737   echo "$as_me: failed program was:" >&5
42738 sed 's/^/| /' conftest.$ac_ext >&5
42739
42740 eval "$as_ac_var=no"
42741 fi
42742 rm -f conftest.err conftest.$ac_objext \
42743       conftest$ac_exeext conftest.$ac_ext
42744 fi
42745 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42746 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42747 if test `eval echo '${'$as_ac_var'}'` = yes; then
42748   cat >>confdefs.h <<_ACEOF
42749 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42750 _ACEOF
42751  ice_have_printf=yes
42752 fi
42753 done
42754
42755 if test "${ice_have_printf}" = yes; then
42756 echo "$as_me:$LINENO: checking for printf declaration in stdio.h" >&5
42757 echo $ECHO_N "checking for printf declaration in stdio.h... $ECHO_C" >&6
42758 if test "${ice_cv_have_printf_decl+set}" = set; then
42759   echo $ECHO_N "(cached) $ECHO_C" >&6
42760 else
42761
42762 ice_cv_have_printf_decl=no
42763 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
42764 ice_re_word='(^|[^a-zA-Z0-9_])'
42765 for header in stdio.h; do
42766 # Check for ordinary declaration
42767 cat >conftest.$ac_ext <<_ACEOF
42768 /* confdefs.h.  */
42769 _ACEOF
42770 cat confdefs.h >>conftest.$ac_ext
42771 cat >>conftest.$ac_ext <<_ACEOF
42772 /* end confdefs.h.  */
42773 #include <$header>
42774
42775 _ACEOF
42776 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42777   $EGREP "${ice_re_word}printf[         ]*\(" >/dev/null 2>&1; then
42778   ice_cv_have_printf_decl=yes
42779 fi
42780 rm -f conftest*
42781
42782 if test "$ice_cv_have_printf_decl" = yes; then
42783         break
42784 fi
42785 # Check for "fixed" declaration like "getpid _PARAMS((int))"
42786 cat >conftest.$ac_ext <<_ACEOF
42787 /* confdefs.h.  */
42788 _ACEOF
42789 cat confdefs.h >>conftest.$ac_ext
42790 cat >>conftest.$ac_ext <<_ACEOF
42791 /* end confdefs.h.  */
42792 #include <$header>
42793
42794 _ACEOF
42795 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42796   $EGREP "${ice_re_word}printf[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
42797   ice_cv_have_printf_decl=yes
42798 fi
42799 rm -f conftest*
42800
42801 if test "$ice_cv_have_printf_decl" = yes; then
42802         break
42803 fi
42804 done
42805
42806 fi
42807
42808 echo "$as_me:$LINENO: result: $ice_cv_have_printf_decl" >&5
42809 echo "${ECHO_T}$ice_cv_have_printf_decl" >&6
42810 if test "$ice_cv_have_printf_decl" = yes; then
42811
42812 cat >>confdefs.h <<_ACEOF
42813 #define HAVE_PRINTF_DECL 1
42814 _ACEOF
42815
42816 fi
42817 fi
42818
42819
42820 for ac_func in putenv
42821 do
42822 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42823 echo "$as_me:$LINENO: checking for $ac_func" >&5
42824 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42825 if eval "test \"\${$as_ac_var+set}\" = set"; then
42826   echo $ECHO_N "(cached) $ECHO_C" >&6
42827 else
42828   cat >conftest.$ac_ext <<_ACEOF
42829 /* confdefs.h.  */
42830 _ACEOF
42831 cat confdefs.h >>conftest.$ac_ext
42832 cat >>conftest.$ac_ext <<_ACEOF
42833 /* end confdefs.h.  */
42834 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42835    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42836 #define $ac_func innocuous_$ac_func
42837
42838 /* System header to define __stub macros and hopefully few prototypes,
42839     which can conflict with char $ac_func (); below.
42840     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42841     <limits.h> exists even on freestanding compilers.  */
42842
42843 #ifdef __STDC__
42844 # include <limits.h>
42845 #else
42846 # include <assert.h>
42847 #endif
42848
42849 #undef $ac_func
42850
42851 /* Override any gcc2 internal prototype to avoid an error.  */
42852 #ifdef __cplusplus
42853 extern "C"
42854 {
42855 #endif
42856 /* We use char because int might match the return type of a gcc2
42857    builtin and then its argument prototype would still apply.  */
42858 char $ac_func ();
42859 /* The GNU C library defines this for functions which it implements
42860     to always fail with ENOSYS.  Some functions are actually named
42861     something starting with __ and the normal name is an alias.  */
42862 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42863 choke me
42864 #else
42865 char (*f) () = $ac_func;
42866 #endif
42867 #ifdef __cplusplus
42868 }
42869 #endif
42870
42871 int
42872 main ()
42873 {
42874 return f != $ac_func;
42875   ;
42876   return 0;
42877 }
42878 _ACEOF
42879 rm -f conftest.$ac_objext conftest$ac_exeext
42880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42881   (eval $ac_link) 2>conftest.er1
42882   ac_status=$?
42883   grep -v '^ *+' conftest.er1 >conftest.err
42884   rm -f conftest.er1
42885   cat conftest.err >&5
42886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42887   (exit $ac_status); } &&
42888          { ac_try='test -z "$ac_c_werror_flag"
42889                          || test ! -s conftest.err'
42890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42891   (eval $ac_try) 2>&5
42892   ac_status=$?
42893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42894   (exit $ac_status); }; } &&
42895          { ac_try='test -s conftest$ac_exeext'
42896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42897   (eval $ac_try) 2>&5
42898   ac_status=$?
42899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42900   (exit $ac_status); }; }; then
42901   eval "$as_ac_var=yes"
42902 else
42903   echo "$as_me: failed program was:" >&5
42904 sed 's/^/| /' conftest.$ac_ext >&5
42905
42906 eval "$as_ac_var=no"
42907 fi
42908 rm -f conftest.err conftest.$ac_objext \
42909       conftest$ac_exeext conftest.$ac_ext
42910 fi
42911 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42912 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42913 if test `eval echo '${'$as_ac_var'}'` = yes; then
42914   cat >>confdefs.h <<_ACEOF
42915 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42916 _ACEOF
42917
42918 fi
42919 done
42920
42921
42922 ice_have_puts=no
42923
42924 for ac_func in puts
42925 do
42926 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42927 echo "$as_me:$LINENO: checking for $ac_func" >&5
42928 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42929 if eval "test \"\${$as_ac_var+set}\" = set"; then
42930   echo $ECHO_N "(cached) $ECHO_C" >&6
42931 else
42932   cat >conftest.$ac_ext <<_ACEOF
42933 /* confdefs.h.  */
42934 _ACEOF
42935 cat confdefs.h >>conftest.$ac_ext
42936 cat >>conftest.$ac_ext <<_ACEOF
42937 /* end confdefs.h.  */
42938 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42939    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42940 #define $ac_func innocuous_$ac_func
42941
42942 /* System header to define __stub macros and hopefully few prototypes,
42943     which can conflict with char $ac_func (); below.
42944     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42945     <limits.h> exists even on freestanding compilers.  */
42946
42947 #ifdef __STDC__
42948 # include <limits.h>
42949 #else
42950 # include <assert.h>
42951 #endif
42952
42953 #undef $ac_func
42954
42955 /* Override any gcc2 internal prototype to avoid an error.  */
42956 #ifdef __cplusplus
42957 extern "C"
42958 {
42959 #endif
42960 /* We use char because int might match the return type of a gcc2
42961    builtin and then its argument prototype would still apply.  */
42962 char $ac_func ();
42963 /* The GNU C library defines this for functions which it implements
42964     to always fail with ENOSYS.  Some functions are actually named
42965     something starting with __ and the normal name is an alias.  */
42966 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42967 choke me
42968 #else
42969 char (*f) () = $ac_func;
42970 #endif
42971 #ifdef __cplusplus
42972 }
42973 #endif
42974
42975 int
42976 main ()
42977 {
42978 return f != $ac_func;
42979   ;
42980   return 0;
42981 }
42982 _ACEOF
42983 rm -f conftest.$ac_objext conftest$ac_exeext
42984 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42985   (eval $ac_link) 2>conftest.er1
42986   ac_status=$?
42987   grep -v '^ *+' conftest.er1 >conftest.err
42988   rm -f conftest.er1
42989   cat conftest.err >&5
42990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42991   (exit $ac_status); } &&
42992          { ac_try='test -z "$ac_c_werror_flag"
42993                          || test ! -s conftest.err'
42994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42995   (eval $ac_try) 2>&5
42996   ac_status=$?
42997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42998   (exit $ac_status); }; } &&
42999          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
43005   eval "$as_ac_var=yes"
43006 else
43007   echo "$as_me: failed program was:" >&5
43008 sed 's/^/| /' conftest.$ac_ext >&5
43009
43010 eval "$as_ac_var=no"
43011 fi
43012 rm -f conftest.err conftest.$ac_objext \
43013       conftest$ac_exeext conftest.$ac_ext
43014 fi
43015 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43016 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43017 if test `eval echo '${'$as_ac_var'}'` = yes; then
43018   cat >>confdefs.h <<_ACEOF
43019 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43020 _ACEOF
43021  ice_have_puts=yes
43022 fi
43023 done
43024
43025 if test "${ice_have_puts}" = yes; then
43026 echo "$as_me:$LINENO: checking for puts declaration in stdio.h" >&5
43027 echo $ECHO_N "checking for puts declaration in stdio.h... $ECHO_C" >&6
43028 if test "${ice_cv_have_puts_decl+set}" = set; then
43029   echo $ECHO_N "(cached) $ECHO_C" >&6
43030 else
43031
43032 ice_cv_have_puts_decl=no
43033 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
43034 ice_re_word='(^|[^a-zA-Z0-9_])'
43035 for header in stdio.h; do
43036 # Check for ordinary declaration
43037 cat >conftest.$ac_ext <<_ACEOF
43038 /* confdefs.h.  */
43039 _ACEOF
43040 cat confdefs.h >>conftest.$ac_ext
43041 cat >>conftest.$ac_ext <<_ACEOF
43042 /* end confdefs.h.  */
43043 #include <$header>
43044
43045 _ACEOF
43046 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43047   $EGREP "${ice_re_word}puts[   ]*\(" >/dev/null 2>&1; then
43048   ice_cv_have_puts_decl=yes
43049 fi
43050 rm -f conftest*
43051
43052 if test "$ice_cv_have_puts_decl" = yes; then
43053         break
43054 fi
43055 # Check for "fixed" declaration like "getpid _PARAMS((int))"
43056 cat >conftest.$ac_ext <<_ACEOF
43057 /* confdefs.h.  */
43058 _ACEOF
43059 cat confdefs.h >>conftest.$ac_ext
43060 cat >>conftest.$ac_ext <<_ACEOF
43061 /* end confdefs.h.  */
43062 #include <$header>
43063
43064 _ACEOF
43065 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43066   $EGREP "${ice_re_word}puts[   ]*$ice_re_params\(\(" >/dev/null 2>&1; then
43067   ice_cv_have_puts_decl=yes
43068 fi
43069 rm -f conftest*
43070
43071 if test "$ice_cv_have_puts_decl" = yes; then
43072         break
43073 fi
43074 done
43075
43076 fi
43077
43078 echo "$as_me:$LINENO: result: $ice_cv_have_puts_decl" >&5
43079 echo "${ECHO_T}$ice_cv_have_puts_decl" >&6
43080 if test "$ice_cv_have_puts_decl" = yes; then
43081
43082 cat >>confdefs.h <<_ACEOF
43083 #define HAVE_PUTS_DECL 1
43084 _ACEOF
43085
43086 fi
43087 fi
43088
43089
43090 ice_have_realloc=no
43091
43092 for ac_func in realloc
43093 do
43094 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43095 echo "$as_me:$LINENO: checking for $ac_func" >&5
43096 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43097 if eval "test \"\${$as_ac_var+set}\" = set"; then
43098   echo $ECHO_N "(cached) $ECHO_C" >&6
43099 else
43100   cat >conftest.$ac_ext <<_ACEOF
43101 /* confdefs.h.  */
43102 _ACEOF
43103 cat confdefs.h >>conftest.$ac_ext
43104 cat >>conftest.$ac_ext <<_ACEOF
43105 /* end confdefs.h.  */
43106 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43107    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43108 #define $ac_func innocuous_$ac_func
43109
43110 /* System header to define __stub macros and hopefully few prototypes,
43111     which can conflict with char $ac_func (); below.
43112     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43113     <limits.h> exists even on freestanding compilers.  */
43114
43115 #ifdef __STDC__
43116 # include <limits.h>
43117 #else
43118 # include <assert.h>
43119 #endif
43120
43121 #undef $ac_func
43122
43123 /* Override any gcc2 internal prototype to avoid an error.  */
43124 #ifdef __cplusplus
43125 extern "C"
43126 {
43127 #endif
43128 /* We use char because int might match the return type of a gcc2
43129    builtin and then its argument prototype would still apply.  */
43130 char $ac_func ();
43131 /* The GNU C library defines this for functions which it implements
43132     to always fail with ENOSYS.  Some functions are actually named
43133     something starting with __ and the normal name is an alias.  */
43134 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43135 choke me
43136 #else
43137 char (*f) () = $ac_func;
43138 #endif
43139 #ifdef __cplusplus
43140 }
43141 #endif
43142
43143 int
43144 main ()
43145 {
43146 return f != $ac_func;
43147   ;
43148   return 0;
43149 }
43150 _ACEOF
43151 rm -f conftest.$ac_objext conftest$ac_exeext
43152 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43153   (eval $ac_link) 2>conftest.er1
43154   ac_status=$?
43155   grep -v '^ *+' conftest.er1 >conftest.err
43156   rm -f conftest.er1
43157   cat conftest.err >&5
43158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43159   (exit $ac_status); } &&
43160          { ac_try='test -z "$ac_c_werror_flag"
43161                          || test ! -s conftest.err'
43162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43163   (eval $ac_try) 2>&5
43164   ac_status=$?
43165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43166   (exit $ac_status); }; } &&
43167          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
43173   eval "$as_ac_var=yes"
43174 else
43175   echo "$as_me: failed program was:" >&5
43176 sed 's/^/| /' conftest.$ac_ext >&5
43177
43178 eval "$as_ac_var=no"
43179 fi
43180 rm -f conftest.err conftest.$ac_objext \
43181       conftest$ac_exeext conftest.$ac_ext
43182 fi
43183 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43184 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43185 if test `eval echo '${'$as_ac_var'}'` = yes; then
43186   cat >>confdefs.h <<_ACEOF
43187 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43188 _ACEOF
43189  ice_have_realloc=yes
43190 fi
43191 done
43192
43193 if test "${ice_have_realloc}" = yes; then
43194 echo "$as_me:$LINENO: checking for realloc declaration in stdlib.h" >&5
43195 echo $ECHO_N "checking for realloc declaration in stdlib.h... $ECHO_C" >&6
43196 if test "${ice_cv_have_realloc_decl+set}" = set; then
43197   echo $ECHO_N "(cached) $ECHO_C" >&6
43198 else
43199
43200 ice_cv_have_realloc_decl=no
43201 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
43202 ice_re_word='(^|[^a-zA-Z0-9_])'
43203 for header in stdlib.h; do
43204 # Check for ordinary declaration
43205 cat >conftest.$ac_ext <<_ACEOF
43206 /* confdefs.h.  */
43207 _ACEOF
43208 cat confdefs.h >>conftest.$ac_ext
43209 cat >>conftest.$ac_ext <<_ACEOF
43210 /* end confdefs.h.  */
43211 #include <$header>
43212
43213 _ACEOF
43214 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43215   $EGREP "${ice_re_word}realloc[        ]*\(" >/dev/null 2>&1; then
43216   ice_cv_have_realloc_decl=yes
43217 fi
43218 rm -f conftest*
43219
43220 if test "$ice_cv_have_realloc_decl" = yes; then
43221         break
43222 fi
43223 # Check for "fixed" declaration like "getpid _PARAMS((int))"
43224 cat >conftest.$ac_ext <<_ACEOF
43225 /* confdefs.h.  */
43226 _ACEOF
43227 cat confdefs.h >>conftest.$ac_ext
43228 cat >>conftest.$ac_ext <<_ACEOF
43229 /* end confdefs.h.  */
43230 #include <$header>
43231
43232 _ACEOF
43233 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43234   $EGREP "${ice_re_word}realloc[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
43235   ice_cv_have_realloc_decl=yes
43236 fi
43237 rm -f conftest*
43238
43239 if test "$ice_cv_have_realloc_decl" = yes; then
43240         break
43241 fi
43242 done
43243
43244 fi
43245
43246 echo "$as_me:$LINENO: result: $ice_cv_have_realloc_decl" >&5
43247 echo "${ECHO_T}$ice_cv_have_realloc_decl" >&6
43248 if test "$ice_cv_have_realloc_decl" = yes; then
43249
43250 cat >>confdefs.h <<_ACEOF
43251 #define HAVE_REALLOC_DECL 1
43252 _ACEOF
43253
43254 fi
43255 fi
43256
43257
43258 ice_have_recvfrom=no
43259
43260 for ac_func in recvfrom
43261 do
43262 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43263 echo "$as_me:$LINENO: checking for $ac_func" >&5
43264 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43265 if eval "test \"\${$as_ac_var+set}\" = set"; then
43266   echo $ECHO_N "(cached) $ECHO_C" >&6
43267 else
43268   cat >conftest.$ac_ext <<_ACEOF
43269 /* confdefs.h.  */
43270 _ACEOF
43271 cat confdefs.h >>conftest.$ac_ext
43272 cat >>conftest.$ac_ext <<_ACEOF
43273 /* end confdefs.h.  */
43274 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43275    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43276 #define $ac_func innocuous_$ac_func
43277
43278 /* System header to define __stub macros and hopefully few prototypes,
43279     which can conflict with char $ac_func (); below.
43280     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43281     <limits.h> exists even on freestanding compilers.  */
43282
43283 #ifdef __STDC__
43284 # include <limits.h>
43285 #else
43286 # include <assert.h>
43287 #endif
43288
43289 #undef $ac_func
43290
43291 /* Override any gcc2 internal prototype to avoid an error.  */
43292 #ifdef __cplusplus
43293 extern "C"
43294 {
43295 #endif
43296 /* We use char because int might match the return type of a gcc2
43297    builtin and then its argument prototype would still apply.  */
43298 char $ac_func ();
43299 /* The GNU C library defines this for functions which it implements
43300     to always fail with ENOSYS.  Some functions are actually named
43301     something starting with __ and the normal name is an alias.  */
43302 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43303 choke me
43304 #else
43305 char (*f) () = $ac_func;
43306 #endif
43307 #ifdef __cplusplus
43308 }
43309 #endif
43310
43311 int
43312 main ()
43313 {
43314 return f != $ac_func;
43315   ;
43316   return 0;
43317 }
43318 _ACEOF
43319 rm -f conftest.$ac_objext conftest$ac_exeext
43320 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43321   (eval $ac_link) 2>conftest.er1
43322   ac_status=$?
43323   grep -v '^ *+' conftest.er1 >conftest.err
43324   rm -f conftest.er1
43325   cat conftest.err >&5
43326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43327   (exit $ac_status); } &&
43328          { ac_try='test -z "$ac_c_werror_flag"
43329                          || test ! -s conftest.err'
43330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43331   (eval $ac_try) 2>&5
43332   ac_status=$?
43333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43334   (exit $ac_status); }; } &&
43335          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
43341   eval "$as_ac_var=yes"
43342 else
43343   echo "$as_me: failed program was:" >&5
43344 sed 's/^/| /' conftest.$ac_ext >&5
43345
43346 eval "$as_ac_var=no"
43347 fi
43348 rm -f conftest.err conftest.$ac_objext \
43349       conftest$ac_exeext conftest.$ac_ext
43350 fi
43351 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43352 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43353 if test `eval echo '${'$as_ac_var'}'` = yes; then
43354   cat >>confdefs.h <<_ACEOF
43355 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43356 _ACEOF
43357  ice_have_recvfrom=yes
43358 fi
43359 done
43360
43361 if test "${ice_have_recvfrom}" = yes; then
43362 echo "$as_me:$LINENO: checking for recvfrom declaration in sys/types.h sys/socket.h" >&5
43363 echo $ECHO_N "checking for recvfrom declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
43364 if test "${ice_cv_have_recvfrom_decl+set}" = set; then
43365   echo $ECHO_N "(cached) $ECHO_C" >&6
43366 else
43367
43368 ice_cv_have_recvfrom_decl=no
43369 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
43370 ice_re_word='(^|[^a-zA-Z0-9_])'
43371 for header in sys/types.h sys/socket.h; do
43372 # Check for ordinary declaration
43373 cat >conftest.$ac_ext <<_ACEOF
43374 /* confdefs.h.  */
43375 _ACEOF
43376 cat confdefs.h >>conftest.$ac_ext
43377 cat >>conftest.$ac_ext <<_ACEOF
43378 /* end confdefs.h.  */
43379 #include <$header>
43380
43381 _ACEOF
43382 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43383   $EGREP "${ice_re_word}recvfrom[       ]*\(" >/dev/null 2>&1; then
43384   ice_cv_have_recvfrom_decl=yes
43385 fi
43386 rm -f conftest*
43387
43388 if test "$ice_cv_have_recvfrom_decl" = yes; then
43389         break
43390 fi
43391 # Check for "fixed" declaration like "getpid _PARAMS((int))"
43392 cat >conftest.$ac_ext <<_ACEOF
43393 /* confdefs.h.  */
43394 _ACEOF
43395 cat confdefs.h >>conftest.$ac_ext
43396 cat >>conftest.$ac_ext <<_ACEOF
43397 /* end confdefs.h.  */
43398 #include <$header>
43399
43400 _ACEOF
43401 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43402   $EGREP "${ice_re_word}recvfrom[       ]*$ice_re_params\(\(" >/dev/null 2>&1; then
43403   ice_cv_have_recvfrom_decl=yes
43404 fi
43405 rm -f conftest*
43406
43407 if test "$ice_cv_have_recvfrom_decl" = yes; then
43408         break
43409 fi
43410 done
43411
43412 fi
43413
43414 echo "$as_me:$LINENO: result: $ice_cv_have_recvfrom_decl" >&5
43415 echo "${ECHO_T}$ice_cv_have_recvfrom_decl" >&6
43416 if test "$ice_cv_have_recvfrom_decl" = yes; then
43417
43418 cat >>confdefs.h <<_ACEOF
43419 #define HAVE_RECVFROM_DECL 1
43420 _ACEOF
43421
43422 fi
43423 fi
43424
43425
43426 ice_have_remove=no
43427
43428 for ac_func in remove
43429 do
43430 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43431 echo "$as_me:$LINENO: checking for $ac_func" >&5
43432 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43433 if eval "test \"\${$as_ac_var+set}\" = set"; then
43434   echo $ECHO_N "(cached) $ECHO_C" >&6
43435 else
43436   cat >conftest.$ac_ext <<_ACEOF
43437 /* confdefs.h.  */
43438 _ACEOF
43439 cat confdefs.h >>conftest.$ac_ext
43440 cat >>conftest.$ac_ext <<_ACEOF
43441 /* end confdefs.h.  */
43442 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43443    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43444 #define $ac_func innocuous_$ac_func
43445
43446 /* System header to define __stub macros and hopefully few prototypes,
43447     which can conflict with char $ac_func (); below.
43448     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43449     <limits.h> exists even on freestanding compilers.  */
43450
43451 #ifdef __STDC__
43452 # include <limits.h>
43453 #else
43454 # include <assert.h>
43455 #endif
43456
43457 #undef $ac_func
43458
43459 /* Override any gcc2 internal prototype to avoid an error.  */
43460 #ifdef __cplusplus
43461 extern "C"
43462 {
43463 #endif
43464 /* We use char because int might match the return type of a gcc2
43465    builtin and then its argument prototype would still apply.  */
43466 char $ac_func ();
43467 /* The GNU C library defines this for functions which it implements
43468     to always fail with ENOSYS.  Some functions are actually named
43469     something starting with __ and the normal name is an alias.  */
43470 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43471 choke me
43472 #else
43473 char (*f) () = $ac_func;
43474 #endif
43475 #ifdef __cplusplus
43476 }
43477 #endif
43478
43479 int
43480 main ()
43481 {
43482 return f != $ac_func;
43483   ;
43484   return 0;
43485 }
43486 _ACEOF
43487 rm -f conftest.$ac_objext conftest$ac_exeext
43488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43489   (eval $ac_link) 2>conftest.er1
43490   ac_status=$?
43491   grep -v '^ *+' conftest.er1 >conftest.err
43492   rm -f conftest.er1
43493   cat conftest.err >&5
43494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43495   (exit $ac_status); } &&
43496          { ac_try='test -z "$ac_c_werror_flag"
43497                          || test ! -s conftest.err'
43498   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43499   (eval $ac_try) 2>&5
43500   ac_status=$?
43501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43502   (exit $ac_status); }; } &&
43503          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
43509   eval "$as_ac_var=yes"
43510 else
43511   echo "$as_me: failed program was:" >&5
43512 sed 's/^/| /' conftest.$ac_ext >&5
43513
43514 eval "$as_ac_var=no"
43515 fi
43516 rm -f conftest.err conftest.$ac_objext \
43517       conftest$ac_exeext conftest.$ac_ext
43518 fi
43519 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43520 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43521 if test `eval echo '${'$as_ac_var'}'` = yes; then
43522   cat >>confdefs.h <<_ACEOF
43523 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43524 _ACEOF
43525  ice_have_remove=yes
43526 fi
43527 done
43528
43529 if test "${ice_have_remove}" = yes; then
43530 echo "$as_me:$LINENO: checking for remove declaration in stdio.h" >&5
43531 echo $ECHO_N "checking for remove declaration in stdio.h... $ECHO_C" >&6
43532 if test "${ice_cv_have_remove_decl+set}" = set; then
43533   echo $ECHO_N "(cached) $ECHO_C" >&6
43534 else
43535
43536 ice_cv_have_remove_decl=no
43537 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
43538 ice_re_word='(^|[^a-zA-Z0-9_])'
43539 for header in stdio.h; do
43540 # Check for ordinary declaration
43541 cat >conftest.$ac_ext <<_ACEOF
43542 /* confdefs.h.  */
43543 _ACEOF
43544 cat confdefs.h >>conftest.$ac_ext
43545 cat >>conftest.$ac_ext <<_ACEOF
43546 /* end confdefs.h.  */
43547 #include <$header>
43548
43549 _ACEOF
43550 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43551   $EGREP "${ice_re_word}remove[         ]*\(" >/dev/null 2>&1; then
43552   ice_cv_have_remove_decl=yes
43553 fi
43554 rm -f conftest*
43555
43556 if test "$ice_cv_have_remove_decl" = yes; then
43557         break
43558 fi
43559 # Check for "fixed" declaration like "getpid _PARAMS((int))"
43560 cat >conftest.$ac_ext <<_ACEOF
43561 /* confdefs.h.  */
43562 _ACEOF
43563 cat confdefs.h >>conftest.$ac_ext
43564 cat >>conftest.$ac_ext <<_ACEOF
43565 /* end confdefs.h.  */
43566 #include <$header>
43567
43568 _ACEOF
43569 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43570   $EGREP "${ice_re_word}remove[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
43571   ice_cv_have_remove_decl=yes
43572 fi
43573 rm -f conftest*
43574
43575 if test "$ice_cv_have_remove_decl" = yes; then
43576         break
43577 fi
43578 done
43579
43580 fi
43581
43582 echo "$as_me:$LINENO: result: $ice_cv_have_remove_decl" >&5
43583 echo "${ECHO_T}$ice_cv_have_remove_decl" >&6
43584 if test "$ice_cv_have_remove_decl" = yes; then
43585
43586 cat >>confdefs.h <<_ACEOF
43587 #define HAVE_REMOVE_DECL 1
43588 _ACEOF
43589
43590 fi
43591 fi
43592
43593
43594 ice_have_rename=no
43595
43596 for ac_func in rename
43597 do
43598 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43599 echo "$as_me:$LINENO: checking for $ac_func" >&5
43600 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43601 if eval "test \"\${$as_ac_var+set}\" = set"; then
43602   echo $ECHO_N "(cached) $ECHO_C" >&6
43603 else
43604   cat >conftest.$ac_ext <<_ACEOF
43605 /* confdefs.h.  */
43606 _ACEOF
43607 cat confdefs.h >>conftest.$ac_ext
43608 cat >>conftest.$ac_ext <<_ACEOF
43609 /* end confdefs.h.  */
43610 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43611    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43612 #define $ac_func innocuous_$ac_func
43613
43614 /* System header to define __stub macros and hopefully few prototypes,
43615     which can conflict with char $ac_func (); below.
43616     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43617     <limits.h> exists even on freestanding compilers.  */
43618
43619 #ifdef __STDC__
43620 # include <limits.h>
43621 #else
43622 # include <assert.h>
43623 #endif
43624
43625 #undef $ac_func
43626
43627 /* Override any gcc2 internal prototype to avoid an error.  */
43628 #ifdef __cplusplus
43629 extern "C"
43630 {
43631 #endif
43632 /* We use char because int might match the return type of a gcc2
43633    builtin and then its argument prototype would still apply.  */
43634 char $ac_func ();
43635 /* The GNU C library defines this for functions which it implements
43636     to always fail with ENOSYS.  Some functions are actually named
43637     something starting with __ and the normal name is an alias.  */
43638 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43639 choke me
43640 #else
43641 char (*f) () = $ac_func;
43642 #endif
43643 #ifdef __cplusplus
43644 }
43645 #endif
43646
43647 int
43648 main ()
43649 {
43650 return f != $ac_func;
43651   ;
43652   return 0;
43653 }
43654 _ACEOF
43655 rm -f conftest.$ac_objext conftest$ac_exeext
43656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43657   (eval $ac_link) 2>conftest.er1
43658   ac_status=$?
43659   grep -v '^ *+' conftest.er1 >conftest.err
43660   rm -f conftest.er1
43661   cat conftest.err >&5
43662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43663   (exit $ac_status); } &&
43664          { ac_try='test -z "$ac_c_werror_flag"
43665                          || test ! -s conftest.err'
43666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43667   (eval $ac_try) 2>&5
43668   ac_status=$?
43669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43670   (exit $ac_status); }; } &&
43671          { ac_try='test -s conftest$ac_exeext'
43672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43673   (eval $ac_try) 2>&5
43674   ac_status=$?
43675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43676   (exit $ac_status); }; }; then
43677   eval "$as_ac_var=yes"
43678 else
43679   echo "$as_me: failed program was:" >&5
43680 sed 's/^/| /' conftest.$ac_ext >&5
43681
43682 eval "$as_ac_var=no"
43683 fi
43684 rm -f conftest.err conftest.$ac_objext \
43685       conftest$ac_exeext conftest.$ac_ext
43686 fi
43687 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43688 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43689 if test `eval echo '${'$as_ac_var'}'` = yes; then
43690   cat >>confdefs.h <<_ACEOF
43691 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43692 _ACEOF
43693  ice_have_rename=yes
43694 fi
43695 done
43696
43697 if test "${ice_have_rename}" = yes; then
43698 echo "$as_me:$LINENO: checking for rename declaration in stdio.h" >&5
43699 echo $ECHO_N "checking for rename declaration in stdio.h... $ECHO_C" >&6
43700 if test "${ice_cv_have_rename_decl+set}" = set; then
43701   echo $ECHO_N "(cached) $ECHO_C" >&6
43702 else
43703
43704 ice_cv_have_rename_decl=no
43705 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
43706 ice_re_word='(^|[^a-zA-Z0-9_])'
43707 for header in stdio.h; do
43708 # Check for ordinary declaration
43709 cat >conftest.$ac_ext <<_ACEOF
43710 /* confdefs.h.  */
43711 _ACEOF
43712 cat confdefs.h >>conftest.$ac_ext
43713 cat >>conftest.$ac_ext <<_ACEOF
43714 /* end confdefs.h.  */
43715 #include <$header>
43716
43717 _ACEOF
43718 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43719   $EGREP "${ice_re_word}rename[         ]*\(" >/dev/null 2>&1; then
43720   ice_cv_have_rename_decl=yes
43721 fi
43722 rm -f conftest*
43723
43724 if test "$ice_cv_have_rename_decl" = yes; then
43725         break
43726 fi
43727 # Check for "fixed" declaration like "getpid _PARAMS((int))"
43728 cat >conftest.$ac_ext <<_ACEOF
43729 /* confdefs.h.  */
43730 _ACEOF
43731 cat confdefs.h >>conftest.$ac_ext
43732 cat >>conftest.$ac_ext <<_ACEOF
43733 /* end confdefs.h.  */
43734 #include <$header>
43735
43736 _ACEOF
43737 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43738   $EGREP "${ice_re_word}rename[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
43739   ice_cv_have_rename_decl=yes
43740 fi
43741 rm -f conftest*
43742
43743 if test "$ice_cv_have_rename_decl" = yes; then
43744         break
43745 fi
43746 done
43747
43748 fi
43749
43750 echo "$as_me:$LINENO: result: $ice_cv_have_rename_decl" >&5
43751 echo "${ECHO_T}$ice_cv_have_rename_decl" >&6
43752 if test "$ice_cv_have_rename_decl" = yes; then
43753
43754 cat >>confdefs.h <<_ACEOF
43755 #define HAVE_RENAME_DECL 1
43756 _ACEOF
43757
43758 fi
43759 fi
43760
43761
43762 ice_have_rewind=no
43763
43764 for ac_func in rewind
43765 do
43766 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43767 echo "$as_me:$LINENO: checking for $ac_func" >&5
43768 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43769 if eval "test \"\${$as_ac_var+set}\" = set"; then
43770   echo $ECHO_N "(cached) $ECHO_C" >&6
43771 else
43772   cat >conftest.$ac_ext <<_ACEOF
43773 /* confdefs.h.  */
43774 _ACEOF
43775 cat confdefs.h >>conftest.$ac_ext
43776 cat >>conftest.$ac_ext <<_ACEOF
43777 /* end confdefs.h.  */
43778 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43779    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43780 #define $ac_func innocuous_$ac_func
43781
43782 /* System header to define __stub macros and hopefully few prototypes,
43783     which can conflict with char $ac_func (); below.
43784     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43785     <limits.h> exists even on freestanding compilers.  */
43786
43787 #ifdef __STDC__
43788 # include <limits.h>
43789 #else
43790 # include <assert.h>
43791 #endif
43792
43793 #undef $ac_func
43794
43795 /* Override any gcc2 internal prototype to avoid an error.  */
43796 #ifdef __cplusplus
43797 extern "C"
43798 {
43799 #endif
43800 /* We use char because int might match the return type of a gcc2
43801    builtin and then its argument prototype would still apply.  */
43802 char $ac_func ();
43803 /* The GNU C library defines this for functions which it implements
43804     to always fail with ENOSYS.  Some functions are actually named
43805     something starting with __ and the normal name is an alias.  */
43806 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43807 choke me
43808 #else
43809 char (*f) () = $ac_func;
43810 #endif
43811 #ifdef __cplusplus
43812 }
43813 #endif
43814
43815 int
43816 main ()
43817 {
43818 return f != $ac_func;
43819   ;
43820   return 0;
43821 }
43822 _ACEOF
43823 rm -f conftest.$ac_objext conftest$ac_exeext
43824 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43825   (eval $ac_link) 2>conftest.er1
43826   ac_status=$?
43827   grep -v '^ *+' conftest.er1 >conftest.err
43828   rm -f conftest.er1
43829   cat conftest.err >&5
43830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43831   (exit $ac_status); } &&
43832          { ac_try='test -z "$ac_c_werror_flag"
43833                          || test ! -s conftest.err'
43834   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43835   (eval $ac_try) 2>&5
43836   ac_status=$?
43837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43838   (exit $ac_status); }; } &&
43839          { ac_try='test -s conftest$ac_exeext'
43840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43841   (eval $ac_try) 2>&5
43842   ac_status=$?
43843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43844   (exit $ac_status); }; }; then
43845   eval "$as_ac_var=yes"
43846 else
43847   echo "$as_me: failed program was:" >&5
43848 sed 's/^/| /' conftest.$ac_ext >&5
43849
43850 eval "$as_ac_var=no"
43851 fi
43852 rm -f conftest.err conftest.$ac_objext \
43853       conftest$ac_exeext conftest.$ac_ext
43854 fi
43855 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43856 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43857 if test `eval echo '${'$as_ac_var'}'` = yes; then
43858   cat >>confdefs.h <<_ACEOF
43859 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43860 _ACEOF
43861  ice_have_rewind=yes
43862 fi
43863 done
43864
43865 if test "${ice_have_rewind}" = yes; then
43866 echo "$as_me:$LINENO: checking for rewind declaration in stdio.h" >&5
43867 echo $ECHO_N "checking for rewind declaration in stdio.h... $ECHO_C" >&6
43868 if test "${ice_cv_have_rewind_decl+set}" = set; then
43869   echo $ECHO_N "(cached) $ECHO_C" >&6
43870 else
43871
43872 ice_cv_have_rewind_decl=no
43873 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
43874 ice_re_word='(^|[^a-zA-Z0-9_])'
43875 for header in stdio.h; do
43876 # Check for ordinary declaration
43877 cat >conftest.$ac_ext <<_ACEOF
43878 /* confdefs.h.  */
43879 _ACEOF
43880 cat confdefs.h >>conftest.$ac_ext
43881 cat >>conftest.$ac_ext <<_ACEOF
43882 /* end confdefs.h.  */
43883 #include <$header>
43884
43885 _ACEOF
43886 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43887   $EGREP "${ice_re_word}rewind[         ]*\(" >/dev/null 2>&1; then
43888   ice_cv_have_rewind_decl=yes
43889 fi
43890 rm -f conftest*
43891
43892 if test "$ice_cv_have_rewind_decl" = yes; then
43893         break
43894 fi
43895 # Check for "fixed" declaration like "getpid _PARAMS((int))"
43896 cat >conftest.$ac_ext <<_ACEOF
43897 /* confdefs.h.  */
43898 _ACEOF
43899 cat confdefs.h >>conftest.$ac_ext
43900 cat >>conftest.$ac_ext <<_ACEOF
43901 /* end confdefs.h.  */
43902 #include <$header>
43903
43904 _ACEOF
43905 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43906   $EGREP "${ice_re_word}rewind[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
43907   ice_cv_have_rewind_decl=yes
43908 fi
43909 rm -f conftest*
43910
43911 if test "$ice_cv_have_rewind_decl" = yes; then
43912         break
43913 fi
43914 done
43915
43916 fi
43917
43918 echo "$as_me:$LINENO: result: $ice_cv_have_rewind_decl" >&5
43919 echo "${ECHO_T}$ice_cv_have_rewind_decl" >&6
43920 if test "$ice_cv_have_rewind_decl" = yes; then
43921
43922 cat >>confdefs.h <<_ACEOF
43923 #define HAVE_REWIND_DECL 1
43924 _ACEOF
43925
43926 fi
43927 fi
43928
43929
43930 for ac_func in rmdir
43931 do
43932 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43933 echo "$as_me:$LINENO: checking for $ac_func" >&5
43934 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43935 if eval "test \"\${$as_ac_var+set}\" = set"; then
43936   echo $ECHO_N "(cached) $ECHO_C" >&6
43937 else
43938   cat >conftest.$ac_ext <<_ACEOF
43939 /* confdefs.h.  */
43940 _ACEOF
43941 cat confdefs.h >>conftest.$ac_ext
43942 cat >>conftest.$ac_ext <<_ACEOF
43943 /* end confdefs.h.  */
43944 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43945    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43946 #define $ac_func innocuous_$ac_func
43947
43948 /* System header to define __stub macros and hopefully few prototypes,
43949     which can conflict with char $ac_func (); below.
43950     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43951     <limits.h> exists even on freestanding compilers.  */
43952
43953 #ifdef __STDC__
43954 # include <limits.h>
43955 #else
43956 # include <assert.h>
43957 #endif
43958
43959 #undef $ac_func
43960
43961 /* Override any gcc2 internal prototype to avoid an error.  */
43962 #ifdef __cplusplus
43963 extern "C"
43964 {
43965 #endif
43966 /* We use char because int might match the return type of a gcc2
43967    builtin and then its argument prototype would still apply.  */
43968 char $ac_func ();
43969 /* The GNU C library defines this for functions which it implements
43970     to always fail with ENOSYS.  Some functions are actually named
43971     something starting with __ and the normal name is an alias.  */
43972 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43973 choke me
43974 #else
43975 char (*f) () = $ac_func;
43976 #endif
43977 #ifdef __cplusplus
43978 }
43979 #endif
43980
43981 int
43982 main ()
43983 {
43984 return f != $ac_func;
43985   ;
43986   return 0;
43987 }
43988 _ACEOF
43989 rm -f conftest.$ac_objext conftest$ac_exeext
43990 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43991   (eval $ac_link) 2>conftest.er1
43992   ac_status=$?
43993   grep -v '^ *+' conftest.er1 >conftest.err
43994   rm -f conftest.er1
43995   cat conftest.err >&5
43996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43997   (exit $ac_status); } &&
43998          { ac_try='test -z "$ac_c_werror_flag"
43999                          || test ! -s conftest.err'
44000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44001   (eval $ac_try) 2>&5
44002   ac_status=$?
44003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44004   (exit $ac_status); }; } &&
44005          { ac_try='test -s conftest$ac_exeext'
44006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44007   (eval $ac_try) 2>&5
44008   ac_status=$?
44009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44010   (exit $ac_status); }; }; then
44011   eval "$as_ac_var=yes"
44012 else
44013   echo "$as_me: failed program was:" >&5
44014 sed 's/^/| /' conftest.$ac_ext >&5
44015
44016 eval "$as_ac_var=no"
44017 fi
44018 rm -f conftest.err conftest.$ac_objext \
44019       conftest$ac_exeext conftest.$ac_ext
44020 fi
44021 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44022 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44023 if test `eval echo '${'$as_ac_var'}'` = yes; then
44024   cat >>confdefs.h <<_ACEOF
44025 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44026 _ACEOF
44027
44028 fi
44029 done
44030
44031
44032 ice_have_ruserok=no
44033
44034 for ac_func in ruserok
44035 do
44036 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44037 echo "$as_me:$LINENO: checking for $ac_func" >&5
44038 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44039 if eval "test \"\${$as_ac_var+set}\" = set"; then
44040   echo $ECHO_N "(cached) $ECHO_C" >&6
44041 else
44042   cat >conftest.$ac_ext <<_ACEOF
44043 /* confdefs.h.  */
44044 _ACEOF
44045 cat confdefs.h >>conftest.$ac_ext
44046 cat >>conftest.$ac_ext <<_ACEOF
44047 /* end confdefs.h.  */
44048 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44049    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44050 #define $ac_func innocuous_$ac_func
44051
44052 /* System header to define __stub macros and hopefully few prototypes,
44053     which can conflict with char $ac_func (); below.
44054     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44055     <limits.h> exists even on freestanding compilers.  */
44056
44057 #ifdef __STDC__
44058 # include <limits.h>
44059 #else
44060 # include <assert.h>
44061 #endif
44062
44063 #undef $ac_func
44064
44065 /* Override any gcc2 internal prototype to avoid an error.  */
44066 #ifdef __cplusplus
44067 extern "C"
44068 {
44069 #endif
44070 /* We use char because int might match the return type of a gcc2
44071    builtin and then its argument prototype would still apply.  */
44072 char $ac_func ();
44073 /* The GNU C library defines this for functions which it implements
44074     to always fail with ENOSYS.  Some functions are actually named
44075     something starting with __ and the normal name is an alias.  */
44076 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44077 choke me
44078 #else
44079 char (*f) () = $ac_func;
44080 #endif
44081 #ifdef __cplusplus
44082 }
44083 #endif
44084
44085 int
44086 main ()
44087 {
44088 return f != $ac_func;
44089   ;
44090   return 0;
44091 }
44092 _ACEOF
44093 rm -f conftest.$ac_objext conftest$ac_exeext
44094 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44095   (eval $ac_link) 2>conftest.er1
44096   ac_status=$?
44097   grep -v '^ *+' conftest.er1 >conftest.err
44098   rm -f conftest.er1
44099   cat conftest.err >&5
44100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44101   (exit $ac_status); } &&
44102          { ac_try='test -z "$ac_c_werror_flag"
44103                          || test ! -s conftest.err'
44104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44105   (eval $ac_try) 2>&5
44106   ac_status=$?
44107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44108   (exit $ac_status); }; } &&
44109          { ac_try='test -s conftest$ac_exeext'
44110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44111   (eval $ac_try) 2>&5
44112   ac_status=$?
44113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44114   (exit $ac_status); }; }; then
44115   eval "$as_ac_var=yes"
44116 else
44117   echo "$as_me: failed program was:" >&5
44118 sed 's/^/| /' conftest.$ac_ext >&5
44119
44120 eval "$as_ac_var=no"
44121 fi
44122 rm -f conftest.err conftest.$ac_objext \
44123       conftest$ac_exeext conftest.$ac_ext
44124 fi
44125 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44126 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44127 if test `eval echo '${'$as_ac_var'}'` = yes; then
44128   cat >>confdefs.h <<_ACEOF
44129 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44130 _ACEOF
44131  ice_have_ruserok=yes
44132 fi
44133 done
44134
44135 if test "${ice_have_ruserok}" = yes; then
44136 echo "$as_me:$LINENO: checking for ruserok declaration in netdb.h sys/socket.h libc.h unistd.h" >&5
44137 echo $ECHO_N "checking for ruserok declaration in netdb.h sys/socket.h libc.h unistd.h... $ECHO_C" >&6
44138 if test "${ice_cv_have_ruserok_decl+set}" = set; then
44139   echo $ECHO_N "(cached) $ECHO_C" >&6
44140 else
44141
44142 ice_cv_have_ruserok_decl=no
44143 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
44144 ice_re_word='(^|[^a-zA-Z0-9_])'
44145 for header in netdb.h sys/socket.h libc.h unistd.h; do
44146 # Check for ordinary declaration
44147 cat >conftest.$ac_ext <<_ACEOF
44148 /* confdefs.h.  */
44149 _ACEOF
44150 cat confdefs.h >>conftest.$ac_ext
44151 cat >>conftest.$ac_ext <<_ACEOF
44152 /* end confdefs.h.  */
44153 #include <$header>
44154
44155 _ACEOF
44156 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44157   $EGREP "${ice_re_word}ruserok[        ]*\(" >/dev/null 2>&1; then
44158   ice_cv_have_ruserok_decl=yes
44159 fi
44160 rm -f conftest*
44161
44162 if test "$ice_cv_have_ruserok_decl" = yes; then
44163         break
44164 fi
44165 # Check for "fixed" declaration like "getpid _PARAMS((int))"
44166 cat >conftest.$ac_ext <<_ACEOF
44167 /* confdefs.h.  */
44168 _ACEOF
44169 cat confdefs.h >>conftest.$ac_ext
44170 cat >>conftest.$ac_ext <<_ACEOF
44171 /* end confdefs.h.  */
44172 #include <$header>
44173
44174 _ACEOF
44175 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44176   $EGREP "${ice_re_word}ruserok[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
44177   ice_cv_have_ruserok_decl=yes
44178 fi
44179 rm -f conftest*
44180
44181 if test "$ice_cv_have_ruserok_decl" = yes; then
44182         break
44183 fi
44184 done
44185
44186 fi
44187
44188 echo "$as_me:$LINENO: result: $ice_cv_have_ruserok_decl" >&5
44189 echo "${ECHO_T}$ice_cv_have_ruserok_decl" >&6
44190 if test "$ice_cv_have_ruserok_decl" = yes; then
44191
44192 cat >>confdefs.h <<_ACEOF
44193 #define HAVE_RUSEROK_DECL 1
44194 _ACEOF
44195
44196 fi
44197 fi
44198
44199
44200 ice_have_select=no
44201
44202 for ac_func in select
44203 do
44204 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44205 echo "$as_me:$LINENO: checking for $ac_func" >&5
44206 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44207 if eval "test \"\${$as_ac_var+set}\" = set"; then
44208   echo $ECHO_N "(cached) $ECHO_C" >&6
44209 else
44210   cat >conftest.$ac_ext <<_ACEOF
44211 /* confdefs.h.  */
44212 _ACEOF
44213 cat confdefs.h >>conftest.$ac_ext
44214 cat >>conftest.$ac_ext <<_ACEOF
44215 /* end confdefs.h.  */
44216 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44217    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44218 #define $ac_func innocuous_$ac_func
44219
44220 /* System header to define __stub macros and hopefully few prototypes,
44221     which can conflict with char $ac_func (); below.
44222     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44223     <limits.h> exists even on freestanding compilers.  */
44224
44225 #ifdef __STDC__
44226 # include <limits.h>
44227 #else
44228 # include <assert.h>
44229 #endif
44230
44231 #undef $ac_func
44232
44233 /* Override any gcc2 internal prototype to avoid an error.  */
44234 #ifdef __cplusplus
44235 extern "C"
44236 {
44237 #endif
44238 /* We use char because int might match the return type of a gcc2
44239    builtin and then its argument prototype would still apply.  */
44240 char $ac_func ();
44241 /* The GNU C library defines this for functions which it implements
44242     to always fail with ENOSYS.  Some functions are actually named
44243     something starting with __ and the normal name is an alias.  */
44244 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44245 choke me
44246 #else
44247 char (*f) () = $ac_func;
44248 #endif
44249 #ifdef __cplusplus
44250 }
44251 #endif
44252
44253 int
44254 main ()
44255 {
44256 return f != $ac_func;
44257   ;
44258   return 0;
44259 }
44260 _ACEOF
44261 rm -f conftest.$ac_objext conftest$ac_exeext
44262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44263   (eval $ac_link) 2>conftest.er1
44264   ac_status=$?
44265   grep -v '^ *+' conftest.er1 >conftest.err
44266   rm -f conftest.er1
44267   cat conftest.err >&5
44268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44269   (exit $ac_status); } &&
44270          { ac_try='test -z "$ac_c_werror_flag"
44271                          || test ! -s conftest.err'
44272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44273   (eval $ac_try) 2>&5
44274   ac_status=$?
44275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44276   (exit $ac_status); }; } &&
44277          { ac_try='test -s conftest$ac_exeext'
44278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44279   (eval $ac_try) 2>&5
44280   ac_status=$?
44281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44282   (exit $ac_status); }; }; then
44283   eval "$as_ac_var=yes"
44284 else
44285   echo "$as_me: failed program was:" >&5
44286 sed 's/^/| /' conftest.$ac_ext >&5
44287
44288 eval "$as_ac_var=no"
44289 fi
44290 rm -f conftest.err conftest.$ac_objext \
44291       conftest$ac_exeext conftest.$ac_ext
44292 fi
44293 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44294 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44295 if test `eval echo '${'$as_ac_var'}'` = yes; then
44296   cat >>confdefs.h <<_ACEOF
44297 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44298 _ACEOF
44299  ice_have_select=yes
44300 fi
44301 done
44302
44303 if test "${ice_have_select}" = yes; then
44304 echo "$as_me:$LINENO: checking for select declaration in sys/types.h sys/socket.h sys/select.h time.h sys/time.h" >&5
44305 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
44306 if test "${ice_cv_have_select_decl+set}" = set; then
44307   echo $ECHO_N "(cached) $ECHO_C" >&6
44308 else
44309
44310 ice_cv_have_select_decl=no
44311 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
44312 ice_re_word='(^|[^a-zA-Z0-9_])'
44313 for header in sys/types.h sys/socket.h sys/select.h time.h sys/time.h; do
44314 # Check for ordinary declaration
44315 cat >conftest.$ac_ext <<_ACEOF
44316 /* confdefs.h.  */
44317 _ACEOF
44318 cat confdefs.h >>conftest.$ac_ext
44319 cat >>conftest.$ac_ext <<_ACEOF
44320 /* end confdefs.h.  */
44321 #include <$header>
44322
44323 _ACEOF
44324 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44325   $EGREP "${ice_re_word}select[         ]*\(" >/dev/null 2>&1; then
44326   ice_cv_have_select_decl=yes
44327 fi
44328 rm -f conftest*
44329
44330 if test "$ice_cv_have_select_decl" = yes; then
44331         break
44332 fi
44333 # Check for "fixed" declaration like "getpid _PARAMS((int))"
44334 cat >conftest.$ac_ext <<_ACEOF
44335 /* confdefs.h.  */
44336 _ACEOF
44337 cat confdefs.h >>conftest.$ac_ext
44338 cat >>conftest.$ac_ext <<_ACEOF
44339 /* end confdefs.h.  */
44340 #include <$header>
44341
44342 _ACEOF
44343 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44344   $EGREP "${ice_re_word}select[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
44345   ice_cv_have_select_decl=yes
44346 fi
44347 rm -f conftest*
44348
44349 if test "$ice_cv_have_select_decl" = yes; then
44350         break
44351 fi
44352 done
44353
44354 fi
44355
44356 echo "$as_me:$LINENO: result: $ice_cv_have_select_decl" >&5
44357 echo "${ECHO_T}$ice_cv_have_select_decl" >&6
44358 if test "$ice_cv_have_select_decl" = yes; then
44359
44360 cat >>confdefs.h <<_ACEOF
44361 #define HAVE_SELECT_DECL 1
44362 _ACEOF
44363
44364 fi
44365 fi
44366
44367
44368         echo "$as_me:$LINENO: checking for select() argument type" >&5
44369 echo $ECHO_N "checking for select() argument type... $ECHO_C" >&6
44370 if test "${amanda_cv_select_arg_type+set}" = set; then
44371   echo $ECHO_N "(cached) $ECHO_C" >&6
44372 else
44373
44374                 rm -f conftest.c
44375                 cat <<EOF >conftest.$ac_ext
44376 #include "confdefs.h"
44377 #ifdef HAVE_SYS_TIME_H
44378 # include <sys/time.h>
44379 #endif
44380 #ifdef HAVE_SYS_TYPES_H
44381 # include <sys/types.h>
44382 #endif
44383 #ifdef HAVE_SYS_SELECT_H
44384 #  include <sys/select.h>
44385 #endif
44386 #ifdef HAVE_SYS_SOCKET_H
44387 #  include <sys/socket.h>
44388 #endif
44389 #ifdef HAVE_UNISTD_H
44390 # include <unistd.h>
44391 #endif
44392
44393 int main()
44394 {
44395 #ifdef FD_SET_POINTER
44396         (void)select(0, (fd_set *) 0, (fd_set *) 0, (fd_set *) 0, 0);
44397 #else
44398         (void)select(0, (int *) 0, (int *) 0, (int *) 0, 0);
44399 #endif
44400         return 0;
44401 }
44402 EOF
44403
44404                                                                                                                                 amanda_cv_select_arg_type=no
44405                 select_compile="${CC-cc} -c $CFLAGS $CPPFLAGS"
44406                 $select_compile -DFD_SET_POINTER conftest.$ac_ext 1>conftest.fd_set 2>&1
44407                 if test $? -ne 0; then
44408                     amanda_cv_select_arg_type=int
44409                 fi
44410                 if test "$amanda_cv_select_arg_type" = no; then
44411                     $select_compile conftest.$ac_ext 1>conftest.int 2>&1
44412                     if test $? -ne 0; then
44413                         amanda_cv_select_arg_type=fd_set
44414                     fi
44415                 fi
44416                 if test "$amanda_cv_select_arg_type" = no; then
44417                     wc_fdset=`wc -l <conftest.fd_set`
44418                     wc_int=`wc -l <conftest.int`
44419                     if test "$wc_fdset" -le "$wc_int"; then
44420                         amanda_cv_select_arg_type=fd_set
44421                     else
44422                         amanda_cv_select_arg_type=int
44423                     fi
44424                 fi
44425                 rm -f conftest*
44426
44427
44428 fi
44429 echo "$as_me:$LINENO: result: $amanda_cv_select_arg_type" >&5
44430 echo "${ECHO_T}$amanda_cv_select_arg_type" >&6
44431
44432 cat >>confdefs.h <<_ACEOF
44433 #define SELECT_ARG_TYPE $amanda_cv_select_arg_type
44434 _ACEOF
44435
44436
44437
44438
44439 ice_have_sendto=no
44440
44441 for ac_func in sendto
44442 do
44443 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44444 echo "$as_me:$LINENO: checking for $ac_func" >&5
44445 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44446 if eval "test \"\${$as_ac_var+set}\" = set"; then
44447   echo $ECHO_N "(cached) $ECHO_C" >&6
44448 else
44449   cat >conftest.$ac_ext <<_ACEOF
44450 /* confdefs.h.  */
44451 _ACEOF
44452 cat confdefs.h >>conftest.$ac_ext
44453 cat >>conftest.$ac_ext <<_ACEOF
44454 /* end confdefs.h.  */
44455 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44456    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44457 #define $ac_func innocuous_$ac_func
44458
44459 /* System header to define __stub macros and hopefully few prototypes,
44460     which can conflict with char $ac_func (); below.
44461     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44462     <limits.h> exists even on freestanding compilers.  */
44463
44464 #ifdef __STDC__
44465 # include <limits.h>
44466 #else
44467 # include <assert.h>
44468 #endif
44469
44470 #undef $ac_func
44471
44472 /* Override any gcc2 internal prototype to avoid an error.  */
44473 #ifdef __cplusplus
44474 extern "C"
44475 {
44476 #endif
44477 /* We use char because int might match the return type of a gcc2
44478    builtin and then its argument prototype would still apply.  */
44479 char $ac_func ();
44480 /* The GNU C library defines this for functions which it implements
44481     to always fail with ENOSYS.  Some functions are actually named
44482     something starting with __ and the normal name is an alias.  */
44483 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44484 choke me
44485 #else
44486 char (*f) () = $ac_func;
44487 #endif
44488 #ifdef __cplusplus
44489 }
44490 #endif
44491
44492 int
44493 main ()
44494 {
44495 return f != $ac_func;
44496   ;
44497   return 0;
44498 }
44499 _ACEOF
44500 rm -f conftest.$ac_objext conftest$ac_exeext
44501 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44502   (eval $ac_link) 2>conftest.er1
44503   ac_status=$?
44504   grep -v '^ *+' conftest.er1 >conftest.err
44505   rm -f conftest.er1
44506   cat conftest.err >&5
44507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44508   (exit $ac_status); } &&
44509          { ac_try='test -z "$ac_c_werror_flag"
44510                          || test ! -s conftest.err'
44511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44512   (eval $ac_try) 2>&5
44513   ac_status=$?
44514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44515   (exit $ac_status); }; } &&
44516          { ac_try='test -s conftest$ac_exeext'
44517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44518   (eval $ac_try) 2>&5
44519   ac_status=$?
44520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44521   (exit $ac_status); }; }; then
44522   eval "$as_ac_var=yes"
44523 else
44524   echo "$as_me: failed program was:" >&5
44525 sed 's/^/| /' conftest.$ac_ext >&5
44526
44527 eval "$as_ac_var=no"
44528 fi
44529 rm -f conftest.err conftest.$ac_objext \
44530       conftest$ac_exeext conftest.$ac_ext
44531 fi
44532 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44533 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44534 if test `eval echo '${'$as_ac_var'}'` = yes; then
44535   cat >>confdefs.h <<_ACEOF
44536 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44537 _ACEOF
44538  ice_have_sendto=yes
44539 fi
44540 done
44541
44542 if test "${ice_have_sendto}" = yes; then
44543 echo "$as_me:$LINENO: checking for sendto declaration in sys/types.h sys/socket.h" >&5
44544 echo $ECHO_N "checking for sendto declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
44545 if test "${ice_cv_have_sendto_decl+set}" = set; then
44546   echo $ECHO_N "(cached) $ECHO_C" >&6
44547 else
44548
44549 ice_cv_have_sendto_decl=no
44550 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
44551 ice_re_word='(^|[^a-zA-Z0-9_])'
44552 for header in sys/types.h sys/socket.h; do
44553 # Check for ordinary declaration
44554 cat >conftest.$ac_ext <<_ACEOF
44555 /* confdefs.h.  */
44556 _ACEOF
44557 cat confdefs.h >>conftest.$ac_ext
44558 cat >>conftest.$ac_ext <<_ACEOF
44559 /* end confdefs.h.  */
44560 #include <$header>
44561
44562 _ACEOF
44563 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44564   $EGREP "${ice_re_word}sendto[         ]*\(" >/dev/null 2>&1; then
44565   ice_cv_have_sendto_decl=yes
44566 fi
44567 rm -f conftest*
44568
44569 if test "$ice_cv_have_sendto_decl" = yes; then
44570         break
44571 fi
44572 # Check for "fixed" declaration like "getpid _PARAMS((int))"
44573 cat >conftest.$ac_ext <<_ACEOF
44574 /* confdefs.h.  */
44575 _ACEOF
44576 cat confdefs.h >>conftest.$ac_ext
44577 cat >>conftest.$ac_ext <<_ACEOF
44578 /* end confdefs.h.  */
44579 #include <$header>
44580
44581 _ACEOF
44582 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44583   $EGREP "${ice_re_word}sendto[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
44584   ice_cv_have_sendto_decl=yes
44585 fi
44586 rm -f conftest*
44587
44588 if test "$ice_cv_have_sendto_decl" = yes; then
44589         break
44590 fi
44591 done
44592
44593 fi
44594
44595 echo "$as_me:$LINENO: result: $ice_cv_have_sendto_decl" >&5
44596 echo "${ECHO_T}$ice_cv_have_sendto_decl" >&6
44597 if test "$ice_cv_have_sendto_decl" = yes; then
44598
44599 cat >>confdefs.h <<_ACEOF
44600 #define HAVE_SENDTO_DECL 1
44601 _ACEOF
44602
44603 fi
44604 fi
44605
44606
44607 ice_have_setegid=no
44608
44609 for ac_func in setegid
44610 do
44611 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44612 echo "$as_me:$LINENO: checking for $ac_func" >&5
44613 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44614 if eval "test \"\${$as_ac_var+set}\" = set"; then
44615   echo $ECHO_N "(cached) $ECHO_C" >&6
44616 else
44617   cat >conftest.$ac_ext <<_ACEOF
44618 /* confdefs.h.  */
44619 _ACEOF
44620 cat confdefs.h >>conftest.$ac_ext
44621 cat >>conftest.$ac_ext <<_ACEOF
44622 /* end confdefs.h.  */
44623 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44624    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44625 #define $ac_func innocuous_$ac_func
44626
44627 /* System header to define __stub macros and hopefully few prototypes,
44628     which can conflict with char $ac_func (); below.
44629     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44630     <limits.h> exists even on freestanding compilers.  */
44631
44632 #ifdef __STDC__
44633 # include <limits.h>
44634 #else
44635 # include <assert.h>
44636 #endif
44637
44638 #undef $ac_func
44639
44640 /* Override any gcc2 internal prototype to avoid an error.  */
44641 #ifdef __cplusplus
44642 extern "C"
44643 {
44644 #endif
44645 /* We use char because int might match the return type of a gcc2
44646    builtin and then its argument prototype would still apply.  */
44647 char $ac_func ();
44648 /* The GNU C library defines this for functions which it implements
44649     to always fail with ENOSYS.  Some functions are actually named
44650     something starting with __ and the normal name is an alias.  */
44651 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44652 choke me
44653 #else
44654 char (*f) () = $ac_func;
44655 #endif
44656 #ifdef __cplusplus
44657 }
44658 #endif
44659
44660 int
44661 main ()
44662 {
44663 return f != $ac_func;
44664   ;
44665   return 0;
44666 }
44667 _ACEOF
44668 rm -f conftest.$ac_objext conftest$ac_exeext
44669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44670   (eval $ac_link) 2>conftest.er1
44671   ac_status=$?
44672   grep -v '^ *+' conftest.er1 >conftest.err
44673   rm -f conftest.er1
44674   cat conftest.err >&5
44675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44676   (exit $ac_status); } &&
44677          { ac_try='test -z "$ac_c_werror_flag"
44678                          || test ! -s conftest.err'
44679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44680   (eval $ac_try) 2>&5
44681   ac_status=$?
44682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44683   (exit $ac_status); }; } &&
44684          { ac_try='test -s conftest$ac_exeext'
44685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44686   (eval $ac_try) 2>&5
44687   ac_status=$?
44688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44689   (exit $ac_status); }; }; then
44690   eval "$as_ac_var=yes"
44691 else
44692   echo "$as_me: failed program was:" >&5
44693 sed 's/^/| /' conftest.$ac_ext >&5
44694
44695 eval "$as_ac_var=no"
44696 fi
44697 rm -f conftest.err conftest.$ac_objext \
44698       conftest$ac_exeext conftest.$ac_ext
44699 fi
44700 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44701 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44702 if test `eval echo '${'$as_ac_var'}'` = yes; then
44703   cat >>confdefs.h <<_ACEOF
44704 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44705 _ACEOF
44706  ice_have_setegid=yes
44707 fi
44708 done
44709
44710 if test "${ice_have_setegid}" = yes; then
44711 echo "$as_me:$LINENO: checking for setegid declaration in unistd.h" >&5
44712 echo $ECHO_N "checking for setegid declaration in unistd.h... $ECHO_C" >&6
44713 if test "${ice_cv_have_setegid_decl+set}" = set; then
44714   echo $ECHO_N "(cached) $ECHO_C" >&6
44715 else
44716
44717 ice_cv_have_setegid_decl=no
44718 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
44719 ice_re_word='(^|[^a-zA-Z0-9_])'
44720 for header in unistd.h; do
44721 # Check for ordinary declaration
44722 cat >conftest.$ac_ext <<_ACEOF
44723 /* confdefs.h.  */
44724 _ACEOF
44725 cat confdefs.h >>conftest.$ac_ext
44726 cat >>conftest.$ac_ext <<_ACEOF
44727 /* end confdefs.h.  */
44728 #include <$header>
44729
44730 _ACEOF
44731 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44732   $EGREP "${ice_re_word}setegid[        ]*\(" >/dev/null 2>&1; then
44733   ice_cv_have_setegid_decl=yes
44734 fi
44735 rm -f conftest*
44736
44737 if test "$ice_cv_have_setegid_decl" = yes; then
44738         break
44739 fi
44740 # Check for "fixed" declaration like "getpid _PARAMS((int))"
44741 cat >conftest.$ac_ext <<_ACEOF
44742 /* confdefs.h.  */
44743 _ACEOF
44744 cat confdefs.h >>conftest.$ac_ext
44745 cat >>conftest.$ac_ext <<_ACEOF
44746 /* end confdefs.h.  */
44747 #include <$header>
44748
44749 _ACEOF
44750 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44751   $EGREP "${ice_re_word}setegid[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
44752   ice_cv_have_setegid_decl=yes
44753 fi
44754 rm -f conftest*
44755
44756 if test "$ice_cv_have_setegid_decl" = yes; then
44757         break
44758 fi
44759 done
44760
44761 fi
44762
44763 echo "$as_me:$LINENO: result: $ice_cv_have_setegid_decl" >&5
44764 echo "${ECHO_T}$ice_cv_have_setegid_decl" >&6
44765 if test "$ice_cv_have_setegid_decl" = yes; then
44766
44767 cat >>confdefs.h <<_ACEOF
44768 #define HAVE_SETEGID_DECL 1
44769 _ACEOF
44770
44771 fi
44772 fi
44773
44774
44775 ice_have_seteuid=no
44776
44777 for ac_func in seteuid
44778 do
44779 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44780 echo "$as_me:$LINENO: checking for $ac_func" >&5
44781 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44782 if eval "test \"\${$as_ac_var+set}\" = set"; then
44783   echo $ECHO_N "(cached) $ECHO_C" >&6
44784 else
44785   cat >conftest.$ac_ext <<_ACEOF
44786 /* confdefs.h.  */
44787 _ACEOF
44788 cat confdefs.h >>conftest.$ac_ext
44789 cat >>conftest.$ac_ext <<_ACEOF
44790 /* end confdefs.h.  */
44791 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44792    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44793 #define $ac_func innocuous_$ac_func
44794
44795 /* System header to define __stub macros and hopefully few prototypes,
44796     which can conflict with char $ac_func (); below.
44797     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44798     <limits.h> exists even on freestanding compilers.  */
44799
44800 #ifdef __STDC__
44801 # include <limits.h>
44802 #else
44803 # include <assert.h>
44804 #endif
44805
44806 #undef $ac_func
44807
44808 /* Override any gcc2 internal prototype to avoid an error.  */
44809 #ifdef __cplusplus
44810 extern "C"
44811 {
44812 #endif
44813 /* We use char because int might match the return type of a gcc2
44814    builtin and then its argument prototype would still apply.  */
44815 char $ac_func ();
44816 /* The GNU C library defines this for functions which it implements
44817     to always fail with ENOSYS.  Some functions are actually named
44818     something starting with __ and the normal name is an alias.  */
44819 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44820 choke me
44821 #else
44822 char (*f) () = $ac_func;
44823 #endif
44824 #ifdef __cplusplus
44825 }
44826 #endif
44827
44828 int
44829 main ()
44830 {
44831 return f != $ac_func;
44832   ;
44833   return 0;
44834 }
44835 _ACEOF
44836 rm -f conftest.$ac_objext conftest$ac_exeext
44837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44838   (eval $ac_link) 2>conftest.er1
44839   ac_status=$?
44840   grep -v '^ *+' conftest.er1 >conftest.err
44841   rm -f conftest.er1
44842   cat conftest.err >&5
44843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44844   (exit $ac_status); } &&
44845          { ac_try='test -z "$ac_c_werror_flag"
44846                          || test ! -s conftest.err'
44847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44848   (eval $ac_try) 2>&5
44849   ac_status=$?
44850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44851   (exit $ac_status); }; } &&
44852          { ac_try='test -s conftest$ac_exeext'
44853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44854   (eval $ac_try) 2>&5
44855   ac_status=$?
44856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44857   (exit $ac_status); }; }; then
44858   eval "$as_ac_var=yes"
44859 else
44860   echo "$as_me: failed program was:" >&5
44861 sed 's/^/| /' conftest.$ac_ext >&5
44862
44863 eval "$as_ac_var=no"
44864 fi
44865 rm -f conftest.err conftest.$ac_objext \
44866       conftest$ac_exeext conftest.$ac_ext
44867 fi
44868 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44869 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44870 if test `eval echo '${'$as_ac_var'}'` = yes; then
44871   cat >>confdefs.h <<_ACEOF
44872 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44873 _ACEOF
44874  ice_have_seteuid=yes
44875 fi
44876 done
44877
44878 if test "${ice_have_seteuid}" = yes; then
44879 echo "$as_me:$LINENO: checking for seteuid declaration in unistd.h" >&5
44880 echo $ECHO_N "checking for seteuid declaration in unistd.h... $ECHO_C" >&6
44881 if test "${ice_cv_have_seteuid_decl+set}" = set; then
44882   echo $ECHO_N "(cached) $ECHO_C" >&6
44883 else
44884
44885 ice_cv_have_seteuid_decl=no
44886 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
44887 ice_re_word='(^|[^a-zA-Z0-9_])'
44888 for header in unistd.h; do
44889 # Check for ordinary declaration
44890 cat >conftest.$ac_ext <<_ACEOF
44891 /* confdefs.h.  */
44892 _ACEOF
44893 cat confdefs.h >>conftest.$ac_ext
44894 cat >>conftest.$ac_ext <<_ACEOF
44895 /* end confdefs.h.  */
44896 #include <$header>
44897
44898 _ACEOF
44899 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44900   $EGREP "${ice_re_word}seteuid[        ]*\(" >/dev/null 2>&1; then
44901   ice_cv_have_seteuid_decl=yes
44902 fi
44903 rm -f conftest*
44904
44905 if test "$ice_cv_have_seteuid_decl" = yes; then
44906         break
44907 fi
44908 # Check for "fixed" declaration like "getpid _PARAMS((int))"
44909 cat >conftest.$ac_ext <<_ACEOF
44910 /* confdefs.h.  */
44911 _ACEOF
44912 cat confdefs.h >>conftest.$ac_ext
44913 cat >>conftest.$ac_ext <<_ACEOF
44914 /* end confdefs.h.  */
44915 #include <$header>
44916
44917 _ACEOF
44918 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44919   $EGREP "${ice_re_word}seteuid[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
44920   ice_cv_have_seteuid_decl=yes
44921 fi
44922 rm -f conftest*
44923
44924 if test "$ice_cv_have_seteuid_decl" = yes; then
44925         break
44926 fi
44927 done
44928
44929 fi
44930
44931 echo "$as_me:$LINENO: result: $ice_cv_have_seteuid_decl" >&5
44932 echo "${ECHO_T}$ice_cv_have_seteuid_decl" >&6
44933 if test "$ice_cv_have_seteuid_decl" = yes; then
44934
44935 cat >>confdefs.h <<_ACEOF
44936 #define HAVE_SETEUID_DECL 1
44937 _ACEOF
44938
44939 fi
44940 fi
44941
44942
44943 for ac_func in setmntent
44944 do
44945 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44946 echo "$as_me:$LINENO: checking for $ac_func" >&5
44947 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44948 if eval "test \"\${$as_ac_var+set}\" = set"; then
44949   echo $ECHO_N "(cached) $ECHO_C" >&6
44950 else
44951   cat >conftest.$ac_ext <<_ACEOF
44952 /* confdefs.h.  */
44953 _ACEOF
44954 cat confdefs.h >>conftest.$ac_ext
44955 cat >>conftest.$ac_ext <<_ACEOF
44956 /* end confdefs.h.  */
44957 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44958    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44959 #define $ac_func innocuous_$ac_func
44960
44961 /* System header to define __stub macros and hopefully few prototypes,
44962     which can conflict with char $ac_func (); below.
44963     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44964     <limits.h> exists even on freestanding compilers.  */
44965
44966 #ifdef __STDC__
44967 # include <limits.h>
44968 #else
44969 # include <assert.h>
44970 #endif
44971
44972 #undef $ac_func
44973
44974 /* Override any gcc2 internal prototype to avoid an error.  */
44975 #ifdef __cplusplus
44976 extern "C"
44977 {
44978 #endif
44979 /* We use char because int might match the return type of a gcc2
44980    builtin and then its argument prototype would still apply.  */
44981 char $ac_func ();
44982 /* The GNU C library defines this for functions which it implements
44983     to always fail with ENOSYS.  Some functions are actually named
44984     something starting with __ and the normal name is an alias.  */
44985 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44986 choke me
44987 #else
44988 char (*f) () = $ac_func;
44989 #endif
44990 #ifdef __cplusplus
44991 }
44992 #endif
44993
44994 int
44995 main ()
44996 {
44997 return f != $ac_func;
44998   ;
44999   return 0;
45000 }
45001 _ACEOF
45002 rm -f conftest.$ac_objext conftest$ac_exeext
45003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45004   (eval $ac_link) 2>conftest.er1
45005   ac_status=$?
45006   grep -v '^ *+' conftest.er1 >conftest.err
45007   rm -f conftest.er1
45008   cat conftest.err >&5
45009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45010   (exit $ac_status); } &&
45011          { ac_try='test -z "$ac_c_werror_flag"
45012                          || test ! -s conftest.err'
45013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45014   (eval $ac_try) 2>&5
45015   ac_status=$?
45016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45017   (exit $ac_status); }; } &&
45018          { ac_try='test -s conftest$ac_exeext'
45019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45020   (eval $ac_try) 2>&5
45021   ac_status=$?
45022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45023   (exit $ac_status); }; }; then
45024   eval "$as_ac_var=yes"
45025 else
45026   echo "$as_me: failed program was:" >&5
45027 sed 's/^/| /' conftest.$ac_ext >&5
45028
45029 eval "$as_ac_var=no"
45030 fi
45031 rm -f conftest.err conftest.$ac_objext \
45032       conftest$ac_exeext conftest.$ac_ext
45033 fi
45034 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45035 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45036 if test `eval echo '${'$as_ac_var'}'` = yes; then
45037   cat >>confdefs.h <<_ACEOF
45038 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45039 _ACEOF
45040
45041 fi
45042 done
45043
45044
45045 for ac_func in shquote
45046 do
45047 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45048 echo "$as_me:$LINENO: checking for $ac_func" >&5
45049 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45050 if eval "test \"\${$as_ac_var+set}\" = set"; then
45051   echo $ECHO_N "(cached) $ECHO_C" >&6
45052 else
45053   cat >conftest.$ac_ext <<_ACEOF
45054 /* confdefs.h.  */
45055 _ACEOF
45056 cat confdefs.h >>conftest.$ac_ext
45057 cat >>conftest.$ac_ext <<_ACEOF
45058 /* end confdefs.h.  */
45059 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45060    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45061 #define $ac_func innocuous_$ac_func
45062
45063 /* System header to define __stub macros and hopefully few prototypes,
45064     which can conflict with char $ac_func (); below.
45065     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45066     <limits.h> exists even on freestanding compilers.  */
45067
45068 #ifdef __STDC__
45069 # include <limits.h>
45070 #else
45071 # include <assert.h>
45072 #endif
45073
45074 #undef $ac_func
45075
45076 /* Override any gcc2 internal prototype to avoid an error.  */
45077 #ifdef __cplusplus
45078 extern "C"
45079 {
45080 #endif
45081 /* We use char because int might match the return type of a gcc2
45082    builtin and then its argument prototype would still apply.  */
45083 char $ac_func ();
45084 /* The GNU C library defines this for functions which it implements
45085     to always fail with ENOSYS.  Some functions are actually named
45086     something starting with __ and the normal name is an alias.  */
45087 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45088 choke me
45089 #else
45090 char (*f) () = $ac_func;
45091 #endif
45092 #ifdef __cplusplus
45093 }
45094 #endif
45095
45096 int
45097 main ()
45098 {
45099 return f != $ac_func;
45100   ;
45101   return 0;
45102 }
45103 _ACEOF
45104 rm -f conftest.$ac_objext conftest$ac_exeext
45105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45106   (eval $ac_link) 2>conftest.er1
45107   ac_status=$?
45108   grep -v '^ *+' conftest.er1 >conftest.err
45109   rm -f conftest.er1
45110   cat conftest.err >&5
45111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45112   (exit $ac_status); } &&
45113          { ac_try='test -z "$ac_c_werror_flag"
45114                          || test ! -s conftest.err'
45115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45116   (eval $ac_try) 2>&5
45117   ac_status=$?
45118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45119   (exit $ac_status); }; } &&
45120          { ac_try='test -s conftest$ac_exeext'
45121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45122   (eval $ac_try) 2>&5
45123   ac_status=$?
45124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45125   (exit $ac_status); }; }; then
45126   eval "$as_ac_var=yes"
45127 else
45128   echo "$as_me: failed program was:" >&5
45129 sed 's/^/| /' conftest.$ac_ext >&5
45130
45131 eval "$as_ac_var=no"
45132 fi
45133 rm -f conftest.err conftest.$ac_objext \
45134       conftest$ac_exeext conftest.$ac_ext
45135 fi
45136 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45137 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45138 if test `eval echo '${'$as_ac_var'}'` = yes; then
45139   cat >>confdefs.h <<_ACEOF
45140 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45141 _ACEOF
45142
45143 fi
45144 done
45145
45146
45147
45148 ice_have_setresgid=no
45149
45150 for ac_func in setresgid
45151 do
45152 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45153 echo "$as_me:$LINENO: checking for $ac_func" >&5
45154 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45155 if eval "test \"\${$as_ac_var+set}\" = set"; then
45156   echo $ECHO_N "(cached) $ECHO_C" >&6
45157 else
45158   cat >conftest.$ac_ext <<_ACEOF
45159 /* confdefs.h.  */
45160 _ACEOF
45161 cat confdefs.h >>conftest.$ac_ext
45162 cat >>conftest.$ac_ext <<_ACEOF
45163 /* end confdefs.h.  */
45164 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45165    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45166 #define $ac_func innocuous_$ac_func
45167
45168 /* System header to define __stub macros and hopefully few prototypes,
45169     which can conflict with char $ac_func (); below.
45170     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45171     <limits.h> exists even on freestanding compilers.  */
45172
45173 #ifdef __STDC__
45174 # include <limits.h>
45175 #else
45176 # include <assert.h>
45177 #endif
45178
45179 #undef $ac_func
45180
45181 /* Override any gcc2 internal prototype to avoid an error.  */
45182 #ifdef __cplusplus
45183 extern "C"
45184 {
45185 #endif
45186 /* We use char because int might match the return type of a gcc2
45187    builtin and then its argument prototype would still apply.  */
45188 char $ac_func ();
45189 /* The GNU C library defines this for functions which it implements
45190     to always fail with ENOSYS.  Some functions are actually named
45191     something starting with __ and the normal name is an alias.  */
45192 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45193 choke me
45194 #else
45195 char (*f) () = $ac_func;
45196 #endif
45197 #ifdef __cplusplus
45198 }
45199 #endif
45200
45201 int
45202 main ()
45203 {
45204 return f != $ac_func;
45205   ;
45206   return 0;
45207 }
45208 _ACEOF
45209 rm -f conftest.$ac_objext conftest$ac_exeext
45210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45211   (eval $ac_link) 2>conftest.er1
45212   ac_status=$?
45213   grep -v '^ *+' conftest.er1 >conftest.err
45214   rm -f conftest.er1
45215   cat conftest.err >&5
45216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45217   (exit $ac_status); } &&
45218          { ac_try='test -z "$ac_c_werror_flag"
45219                          || test ! -s conftest.err'
45220   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45221   (eval $ac_try) 2>&5
45222   ac_status=$?
45223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45224   (exit $ac_status); }; } &&
45225          { ac_try='test -s conftest$ac_exeext'
45226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45227   (eval $ac_try) 2>&5
45228   ac_status=$?
45229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45230   (exit $ac_status); }; }; then
45231   eval "$as_ac_var=yes"
45232 else
45233   echo "$as_me: failed program was:" >&5
45234 sed 's/^/| /' conftest.$ac_ext >&5
45235
45236 eval "$as_ac_var=no"
45237 fi
45238 rm -f conftest.err conftest.$ac_objext \
45239       conftest$ac_exeext conftest.$ac_ext
45240 fi
45241 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45242 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45243 if test `eval echo '${'$as_ac_var'}'` = yes; then
45244   cat >>confdefs.h <<_ACEOF
45245 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45246 _ACEOF
45247  ice_have_setresgid=yes
45248 fi
45249 done
45250
45251 if test "${ice_have_setresgid}" = yes; then
45252 echo "$as_me:$LINENO: checking for setresgid declaration in unistd.h" >&5
45253 echo $ECHO_N "checking for setresgid declaration in unistd.h... $ECHO_C" >&6
45254 if test "${ice_cv_have_setresgid_decl+set}" = set; then
45255   echo $ECHO_N "(cached) $ECHO_C" >&6
45256 else
45257
45258 ice_cv_have_setresgid_decl=no
45259 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
45260 ice_re_word='(^|[^a-zA-Z0-9_])'
45261 for header in unistd.h; do
45262 # Check for ordinary declaration
45263 cat >conftest.$ac_ext <<_ACEOF
45264 /* confdefs.h.  */
45265 _ACEOF
45266 cat confdefs.h >>conftest.$ac_ext
45267 cat >>conftest.$ac_ext <<_ACEOF
45268 /* end confdefs.h.  */
45269 #include <$header>
45270
45271 _ACEOF
45272 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45273   $EGREP "${ice_re_word}setresgid[      ]*\(" >/dev/null 2>&1; then
45274   ice_cv_have_setresgid_decl=yes
45275 fi
45276 rm -f conftest*
45277
45278 if test "$ice_cv_have_setresgid_decl" = yes; then
45279         break
45280 fi
45281 # Check for "fixed" declaration like "getpid _PARAMS((int))"
45282 cat >conftest.$ac_ext <<_ACEOF
45283 /* confdefs.h.  */
45284 _ACEOF
45285 cat confdefs.h >>conftest.$ac_ext
45286 cat >>conftest.$ac_ext <<_ACEOF
45287 /* end confdefs.h.  */
45288 #include <$header>
45289
45290 _ACEOF
45291 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45292   $EGREP "${ice_re_word}setresgid[      ]*$ice_re_params\(\(" >/dev/null 2>&1; then
45293   ice_cv_have_setresgid_decl=yes
45294 fi
45295 rm -f conftest*
45296
45297 if test "$ice_cv_have_setresgid_decl" = yes; then
45298         break
45299 fi
45300 done
45301
45302 fi
45303
45304 echo "$as_me:$LINENO: result: $ice_cv_have_setresgid_decl" >&5
45305 echo "${ECHO_T}$ice_cv_have_setresgid_decl" >&6
45306 if test "$ice_cv_have_setresgid_decl" = yes; then
45307
45308 cat >>confdefs.h <<_ACEOF
45309 #define HAVE_SETRESGID_DECL 1
45310 _ACEOF
45311
45312 fi
45313 fi
45314
45315
45316 ice_have_setresuid=no
45317
45318 for ac_func in setresuid
45319 do
45320 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45321 echo "$as_me:$LINENO: checking for $ac_func" >&5
45322 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45323 if eval "test \"\${$as_ac_var+set}\" = set"; then
45324   echo $ECHO_N "(cached) $ECHO_C" >&6
45325 else
45326   cat >conftest.$ac_ext <<_ACEOF
45327 /* confdefs.h.  */
45328 _ACEOF
45329 cat confdefs.h >>conftest.$ac_ext
45330 cat >>conftest.$ac_ext <<_ACEOF
45331 /* end confdefs.h.  */
45332 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45333    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45334 #define $ac_func innocuous_$ac_func
45335
45336 /* System header to define __stub macros and hopefully few prototypes,
45337     which can conflict with char $ac_func (); below.
45338     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45339     <limits.h> exists even on freestanding compilers.  */
45340
45341 #ifdef __STDC__
45342 # include <limits.h>
45343 #else
45344 # include <assert.h>
45345 #endif
45346
45347 #undef $ac_func
45348
45349 /* Override any gcc2 internal prototype to avoid an error.  */
45350 #ifdef __cplusplus
45351 extern "C"
45352 {
45353 #endif
45354 /* We use char because int might match the return type of a gcc2
45355    builtin and then its argument prototype would still apply.  */
45356 char $ac_func ();
45357 /* The GNU C library defines this for functions which it implements
45358     to always fail with ENOSYS.  Some functions are actually named
45359     something starting with __ and the normal name is an alias.  */
45360 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45361 choke me
45362 #else
45363 char (*f) () = $ac_func;
45364 #endif
45365 #ifdef __cplusplus
45366 }
45367 #endif
45368
45369 int
45370 main ()
45371 {
45372 return f != $ac_func;
45373   ;
45374   return 0;
45375 }
45376 _ACEOF
45377 rm -f conftest.$ac_objext conftest$ac_exeext
45378 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45379   (eval $ac_link) 2>conftest.er1
45380   ac_status=$?
45381   grep -v '^ *+' conftest.er1 >conftest.err
45382   rm -f conftest.er1
45383   cat conftest.err >&5
45384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45385   (exit $ac_status); } &&
45386          { ac_try='test -z "$ac_c_werror_flag"
45387                          || test ! -s conftest.err'
45388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45389   (eval $ac_try) 2>&5
45390   ac_status=$?
45391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45392   (exit $ac_status); }; } &&
45393          { ac_try='test -s conftest$ac_exeext'
45394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45395   (eval $ac_try) 2>&5
45396   ac_status=$?
45397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45398   (exit $ac_status); }; }; then
45399   eval "$as_ac_var=yes"
45400 else
45401   echo "$as_me: failed program was:" >&5
45402 sed 's/^/| /' conftest.$ac_ext >&5
45403
45404 eval "$as_ac_var=no"
45405 fi
45406 rm -f conftest.err conftest.$ac_objext \
45407       conftest$ac_exeext conftest.$ac_ext
45408 fi
45409 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45410 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45411 if test `eval echo '${'$as_ac_var'}'` = yes; then
45412   cat >>confdefs.h <<_ACEOF
45413 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45414 _ACEOF
45415  ice_have_setresuid=yes
45416 fi
45417 done
45418
45419 if test "${ice_have_setresuid}" = yes; then
45420 echo "$as_me:$LINENO: checking for setresuid declaration in unistd.h" >&5
45421 echo $ECHO_N "checking for setresuid declaration in unistd.h... $ECHO_C" >&6
45422 if test "${ice_cv_have_setresuid_decl+set}" = set; then
45423   echo $ECHO_N "(cached) $ECHO_C" >&6
45424 else
45425
45426 ice_cv_have_setresuid_decl=no
45427 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
45428 ice_re_word='(^|[^a-zA-Z0-9_])'
45429 for header in unistd.h; do
45430 # Check for ordinary declaration
45431 cat >conftest.$ac_ext <<_ACEOF
45432 /* confdefs.h.  */
45433 _ACEOF
45434 cat confdefs.h >>conftest.$ac_ext
45435 cat >>conftest.$ac_ext <<_ACEOF
45436 /* end confdefs.h.  */
45437 #include <$header>
45438
45439 _ACEOF
45440 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45441   $EGREP "${ice_re_word}setresuid[      ]*\(" >/dev/null 2>&1; then
45442   ice_cv_have_setresuid_decl=yes
45443 fi
45444 rm -f conftest*
45445
45446 if test "$ice_cv_have_setresuid_decl" = yes; then
45447         break
45448 fi
45449 # Check for "fixed" declaration like "getpid _PARAMS((int))"
45450 cat >conftest.$ac_ext <<_ACEOF
45451 /* confdefs.h.  */
45452 _ACEOF
45453 cat confdefs.h >>conftest.$ac_ext
45454 cat >>conftest.$ac_ext <<_ACEOF
45455 /* end confdefs.h.  */
45456 #include <$header>
45457
45458 _ACEOF
45459 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45460   $EGREP "${ice_re_word}setresuid[      ]*$ice_re_params\(\(" >/dev/null 2>&1; then
45461   ice_cv_have_setresuid_decl=yes
45462 fi
45463 rm -f conftest*
45464
45465 if test "$ice_cv_have_setresuid_decl" = yes; then
45466         break
45467 fi
45468 done
45469
45470 fi
45471
45472 echo "$as_me:$LINENO: result: $ice_cv_have_setresuid_decl" >&5
45473 echo "${ECHO_T}$ice_cv_have_setresuid_decl" >&6
45474 if test "$ice_cv_have_setresuid_decl" = yes; then
45475
45476 cat >>confdefs.h <<_ACEOF
45477 #define HAVE_SETRESUID_DECL 1
45478 _ACEOF
45479
45480 fi
45481 fi
45482
45483
45484 echo "$as_me:$LINENO: checking for setpgid" >&5
45485 echo $ECHO_N "checking for setpgid... $ECHO_C" >&6
45486 if test "${ac_cv_func_setpgid+set}" = set; then
45487   echo $ECHO_N "(cached) $ECHO_C" >&6
45488 else
45489   cat >conftest.$ac_ext <<_ACEOF
45490 /* confdefs.h.  */
45491 _ACEOF
45492 cat confdefs.h >>conftest.$ac_ext
45493 cat >>conftest.$ac_ext <<_ACEOF
45494 /* end confdefs.h.  */
45495 /* Define setpgid to an innocuous variant, in case <limits.h> declares setpgid.
45496    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45497 #define setpgid innocuous_setpgid
45498
45499 /* System header to define __stub macros and hopefully few prototypes,
45500     which can conflict with char setpgid (); below.
45501     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45502     <limits.h> exists even on freestanding compilers.  */
45503
45504 #ifdef __STDC__
45505 # include <limits.h>
45506 #else
45507 # include <assert.h>
45508 #endif
45509
45510 #undef setpgid
45511
45512 /* Override any gcc2 internal prototype to avoid an error.  */
45513 #ifdef __cplusplus
45514 extern "C"
45515 {
45516 #endif
45517 /* We use char because int might match the return type of a gcc2
45518    builtin and then its argument prototype would still apply.  */
45519 char setpgid ();
45520 /* The GNU C library defines this for functions which it implements
45521     to always fail with ENOSYS.  Some functions are actually named
45522     something starting with __ and the normal name is an alias.  */
45523 #if defined (__stub_setpgid) || defined (__stub___setpgid)
45524 choke me
45525 #else
45526 char (*f) () = setpgid;
45527 #endif
45528 #ifdef __cplusplus
45529 }
45530 #endif
45531
45532 int
45533 main ()
45534 {
45535 return f != setpgid;
45536   ;
45537   return 0;
45538 }
45539 _ACEOF
45540 rm -f conftest.$ac_objext conftest$ac_exeext
45541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45542   (eval $ac_link) 2>conftest.er1
45543   ac_status=$?
45544   grep -v '^ *+' conftest.er1 >conftest.err
45545   rm -f conftest.er1
45546   cat conftest.err >&5
45547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45548   (exit $ac_status); } &&
45549          { ac_try='test -z "$ac_c_werror_flag"
45550                          || test ! -s conftest.err'
45551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45552   (eval $ac_try) 2>&5
45553   ac_status=$?
45554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45555   (exit $ac_status); }; } &&
45556          { ac_try='test -s conftest$ac_exeext'
45557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45558   (eval $ac_try) 2>&5
45559   ac_status=$?
45560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45561   (exit $ac_status); }; }; then
45562   ac_cv_func_setpgid=yes
45563 else
45564   echo "$as_me: failed program was:" >&5
45565 sed 's/^/| /' conftest.$ac_ext >&5
45566
45567 ac_cv_func_setpgid=no
45568 fi
45569 rm -f conftest.err conftest.$ac_objext \
45570       conftest$ac_exeext conftest.$ac_ext
45571 fi
45572 echo "$as_me:$LINENO: result: $ac_cv_func_setpgid" >&5
45573 echo "${ECHO_T}$ac_cv_func_setpgid" >&6
45574 if test $ac_cv_func_setpgid = yes; then
45575
45576
45577 cat >>confdefs.h <<\_ACEOF
45578 #define HAVE_SETPGID 1
45579 _ACEOF
45580
45581
45582 ice_have_setpgid=no
45583
45584 for ac_func in setpgid
45585 do
45586 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45587 echo "$as_me:$LINENO: checking for $ac_func" >&5
45588 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45589 if eval "test \"\${$as_ac_var+set}\" = set"; then
45590   echo $ECHO_N "(cached) $ECHO_C" >&6
45591 else
45592   cat >conftest.$ac_ext <<_ACEOF
45593 /* confdefs.h.  */
45594 _ACEOF
45595 cat confdefs.h >>conftest.$ac_ext
45596 cat >>conftest.$ac_ext <<_ACEOF
45597 /* end confdefs.h.  */
45598 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45599    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45600 #define $ac_func innocuous_$ac_func
45601
45602 /* System header to define __stub macros and hopefully few prototypes,
45603     which can conflict with char $ac_func (); below.
45604     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45605     <limits.h> exists even on freestanding compilers.  */
45606
45607 #ifdef __STDC__
45608 # include <limits.h>
45609 #else
45610 # include <assert.h>
45611 #endif
45612
45613 #undef $ac_func
45614
45615 /* Override any gcc2 internal prototype to avoid an error.  */
45616 #ifdef __cplusplus
45617 extern "C"
45618 {
45619 #endif
45620 /* We use char because int might match the return type of a gcc2
45621    builtin and then its argument prototype would still apply.  */
45622 char $ac_func ();
45623 /* The GNU C library defines this for functions which it implements
45624     to always fail with ENOSYS.  Some functions are actually named
45625     something starting with __ and the normal name is an alias.  */
45626 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45627 choke me
45628 #else
45629 char (*f) () = $ac_func;
45630 #endif
45631 #ifdef __cplusplus
45632 }
45633 #endif
45634
45635 int
45636 main ()
45637 {
45638 return f != $ac_func;
45639   ;
45640   return 0;
45641 }
45642 _ACEOF
45643 rm -f conftest.$ac_objext conftest$ac_exeext
45644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45645   (eval $ac_link) 2>conftest.er1
45646   ac_status=$?
45647   grep -v '^ *+' conftest.er1 >conftest.err
45648   rm -f conftest.er1
45649   cat conftest.err >&5
45650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45651   (exit $ac_status); } &&
45652          { ac_try='test -z "$ac_c_werror_flag"
45653                          || test ! -s conftest.err'
45654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45655   (eval $ac_try) 2>&5
45656   ac_status=$?
45657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45658   (exit $ac_status); }; } &&
45659          { ac_try='test -s conftest$ac_exeext'
45660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45661   (eval $ac_try) 2>&5
45662   ac_status=$?
45663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45664   (exit $ac_status); }; }; then
45665   eval "$as_ac_var=yes"
45666 else
45667   echo "$as_me: failed program was:" >&5
45668 sed 's/^/| /' conftest.$ac_ext >&5
45669
45670 eval "$as_ac_var=no"
45671 fi
45672 rm -f conftest.err conftest.$ac_objext \
45673       conftest$ac_exeext conftest.$ac_ext
45674 fi
45675 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45676 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45677 if test `eval echo '${'$as_ac_var'}'` = yes; then
45678   cat >>confdefs.h <<_ACEOF
45679 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45680 _ACEOF
45681  ice_have_setpgid=yes
45682 fi
45683 done
45684
45685 if test "${ice_have_setpgid}" = yes; then
45686 echo "$as_me:$LINENO: checking for setpgid declaration in sys/types.h unistd.h" >&5
45687 echo $ECHO_N "checking for setpgid declaration in sys/types.h unistd.h... $ECHO_C" >&6
45688 if test "${ice_cv_have_setpgid_decl+set}" = set; then
45689   echo $ECHO_N "(cached) $ECHO_C" >&6
45690 else
45691
45692 ice_cv_have_setpgid_decl=no
45693 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
45694 ice_re_word='(^|[^a-zA-Z0-9_])'
45695 for header in sys/types.h unistd.h; do
45696 # Check for ordinary declaration
45697 cat >conftest.$ac_ext <<_ACEOF
45698 /* confdefs.h.  */
45699 _ACEOF
45700 cat confdefs.h >>conftest.$ac_ext
45701 cat >>conftest.$ac_ext <<_ACEOF
45702 /* end confdefs.h.  */
45703 #include <$header>
45704
45705 _ACEOF
45706 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45707   $EGREP "${ice_re_word}setpgid[        ]*\(" >/dev/null 2>&1; then
45708   ice_cv_have_setpgid_decl=yes
45709 fi
45710 rm -f conftest*
45711
45712 if test "$ice_cv_have_setpgid_decl" = yes; then
45713         break
45714 fi
45715 # Check for "fixed" declaration like "getpid _PARAMS((int))"
45716 cat >conftest.$ac_ext <<_ACEOF
45717 /* confdefs.h.  */
45718 _ACEOF
45719 cat confdefs.h >>conftest.$ac_ext
45720 cat >>conftest.$ac_ext <<_ACEOF
45721 /* end confdefs.h.  */
45722 #include <$header>
45723
45724 _ACEOF
45725 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45726   $EGREP "${ice_re_word}setpgid[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
45727   ice_cv_have_setpgid_decl=yes
45728 fi
45729 rm -f conftest*
45730
45731 if test "$ice_cv_have_setpgid_decl" = yes; then
45732         break
45733 fi
45734 done
45735
45736 fi
45737
45738 echo "$as_me:$LINENO: result: $ice_cv_have_setpgid_decl" >&5
45739 echo "${ECHO_T}$ice_cv_have_setpgid_decl" >&6
45740 if test "$ice_cv_have_setpgid_decl" = yes; then
45741
45742 cat >>confdefs.h <<_ACEOF
45743 #define HAVE_SETPGID_DECL 1
45744 _ACEOF
45745
45746 fi
45747 fi
45748
45749
45750 fi
45751
45752 echo "$as_me:$LINENO: checking for setpgrp" >&5
45753 echo $ECHO_N "checking for setpgrp... $ECHO_C" >&6
45754 if test "${ac_cv_func_setpgrp+set}" = set; then
45755   echo $ECHO_N "(cached) $ECHO_C" >&6
45756 else
45757   cat >conftest.$ac_ext <<_ACEOF
45758 /* confdefs.h.  */
45759 _ACEOF
45760 cat confdefs.h >>conftest.$ac_ext
45761 cat >>conftest.$ac_ext <<_ACEOF
45762 /* end confdefs.h.  */
45763 /* Define setpgrp to an innocuous variant, in case <limits.h> declares setpgrp.
45764    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45765 #define setpgrp innocuous_setpgrp
45766
45767 /* System header to define __stub macros and hopefully few prototypes,
45768     which can conflict with char setpgrp (); below.
45769     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45770     <limits.h> exists even on freestanding compilers.  */
45771
45772 #ifdef __STDC__
45773 # include <limits.h>
45774 #else
45775 # include <assert.h>
45776 #endif
45777
45778 #undef setpgrp
45779
45780 /* Override any gcc2 internal prototype to avoid an error.  */
45781 #ifdef __cplusplus
45782 extern "C"
45783 {
45784 #endif
45785 /* We use char because int might match the return type of a gcc2
45786    builtin and then its argument prototype would still apply.  */
45787 char setpgrp ();
45788 /* The GNU C library defines this for functions which it implements
45789     to always fail with ENOSYS.  Some functions are actually named
45790     something starting with __ and the normal name is an alias.  */
45791 #if defined (__stub_setpgrp) || defined (__stub___setpgrp)
45792 choke me
45793 #else
45794 char (*f) () = setpgrp;
45795 #endif
45796 #ifdef __cplusplus
45797 }
45798 #endif
45799
45800 int
45801 main ()
45802 {
45803 return f != setpgrp;
45804   ;
45805   return 0;
45806 }
45807 _ACEOF
45808 rm -f conftest.$ac_objext conftest$ac_exeext
45809 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45810   (eval $ac_link) 2>conftest.er1
45811   ac_status=$?
45812   grep -v '^ *+' conftest.er1 >conftest.err
45813   rm -f conftest.er1
45814   cat conftest.err >&5
45815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45816   (exit $ac_status); } &&
45817          { ac_try='test -z "$ac_c_werror_flag"
45818                          || test ! -s conftest.err'
45819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45820   (eval $ac_try) 2>&5
45821   ac_status=$?
45822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45823   (exit $ac_status); }; } &&
45824          { ac_try='test -s conftest$ac_exeext'
45825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45826   (eval $ac_try) 2>&5
45827   ac_status=$?
45828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45829   (exit $ac_status); }; }; then
45830   ac_cv_func_setpgrp=yes
45831 else
45832   echo "$as_me: failed program was:" >&5
45833 sed 's/^/| /' conftest.$ac_ext >&5
45834
45835 ac_cv_func_setpgrp=no
45836 fi
45837 rm -f conftest.err conftest.$ac_objext \
45838       conftest$ac_exeext conftest.$ac_ext
45839 fi
45840 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp" >&5
45841 echo "${ECHO_T}$ac_cv_func_setpgrp" >&6
45842 if test $ac_cv_func_setpgrp = yes; then
45843   echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
45844 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
45845 if test "${ac_cv_func_setpgrp_void+set}" = set; then
45846   echo $ECHO_N "(cached) $ECHO_C" >&6
45847 else
45848   if test "$cross_compiling" = yes; then
45849   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
45850 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
45851    { (exit 1); exit 1; }; }
45852 else
45853   cat >conftest.$ac_ext <<_ACEOF
45854 /* confdefs.h.  */
45855 _ACEOF
45856 cat confdefs.h >>conftest.$ac_ext
45857 cat >>conftest.$ac_ext <<_ACEOF
45858 /* end confdefs.h.  */
45859 #if HAVE_UNISTD_H
45860 # include <unistd.h>
45861 #endif
45862
45863 int
45864 main ()
45865 {
45866 /* If this system has a BSD-style setpgrp which takes arguments,
45867   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
45868   exit successfully. */
45869   exit (setpgrp (1,1) == -1 ? 0 : 1);
45870   ;
45871   return 0;
45872 }
45873 _ACEOF
45874 rm -f conftest$ac_exeext
45875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45876   (eval $ac_link) 2>&5
45877   ac_status=$?
45878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45879   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
45880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45881   (eval $ac_try) 2>&5
45882   ac_status=$?
45883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45884   (exit $ac_status); }; }; then
45885   ac_cv_func_setpgrp_void=no
45886 else
45887   echo "$as_me: program exited with status $ac_status" >&5
45888 echo "$as_me: failed program was:" >&5
45889 sed 's/^/| /' conftest.$ac_ext >&5
45890
45891 ( exit $ac_status )
45892 ac_cv_func_setpgrp_void=yes
45893 fi
45894 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
45895 fi
45896 fi
45897 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
45898 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
45899 if test $ac_cv_func_setpgrp_void = yes; then
45900
45901 cat >>confdefs.h <<\_ACEOF
45902 #define SETPGRP_VOID 1
45903 _ACEOF
45904
45905 fi
45906
45907 fi
45908
45909
45910 ice_have_setpgrp=no
45911
45912 for ac_func in setpgrp
45913 do
45914 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45915 echo "$as_me:$LINENO: checking for $ac_func" >&5
45916 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45917 if eval "test \"\${$as_ac_var+set}\" = set"; then
45918   echo $ECHO_N "(cached) $ECHO_C" >&6
45919 else
45920   cat >conftest.$ac_ext <<_ACEOF
45921 /* confdefs.h.  */
45922 _ACEOF
45923 cat confdefs.h >>conftest.$ac_ext
45924 cat >>conftest.$ac_ext <<_ACEOF
45925 /* end confdefs.h.  */
45926 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45927    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45928 #define $ac_func innocuous_$ac_func
45929
45930 /* System header to define __stub macros and hopefully few prototypes,
45931     which can conflict with char $ac_func (); below.
45932     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45933     <limits.h> exists even on freestanding compilers.  */
45934
45935 #ifdef __STDC__
45936 # include <limits.h>
45937 #else
45938 # include <assert.h>
45939 #endif
45940
45941 #undef $ac_func
45942
45943 /* Override any gcc2 internal prototype to avoid an error.  */
45944 #ifdef __cplusplus
45945 extern "C"
45946 {
45947 #endif
45948 /* We use char because int might match the return type of a gcc2
45949    builtin and then its argument prototype would still apply.  */
45950 char $ac_func ();
45951 /* The GNU C library defines this for functions which it implements
45952     to always fail with ENOSYS.  Some functions are actually named
45953     something starting with __ and the normal name is an alias.  */
45954 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45955 choke me
45956 #else
45957 char (*f) () = $ac_func;
45958 #endif
45959 #ifdef __cplusplus
45960 }
45961 #endif
45962
45963 int
45964 main ()
45965 {
45966 return f != $ac_func;
45967   ;
45968   return 0;
45969 }
45970 _ACEOF
45971 rm -f conftest.$ac_objext conftest$ac_exeext
45972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45973   (eval $ac_link) 2>conftest.er1
45974   ac_status=$?
45975   grep -v '^ *+' conftest.er1 >conftest.err
45976   rm -f conftest.er1
45977   cat conftest.err >&5
45978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45979   (exit $ac_status); } &&
45980          { ac_try='test -z "$ac_c_werror_flag"
45981                          || test ! -s conftest.err'
45982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45983   (eval $ac_try) 2>&5
45984   ac_status=$?
45985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45986   (exit $ac_status); }; } &&
45987          { ac_try='test -s conftest$ac_exeext'
45988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45989   (eval $ac_try) 2>&5
45990   ac_status=$?
45991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45992   (exit $ac_status); }; }; then
45993   eval "$as_ac_var=yes"
45994 else
45995   echo "$as_me: failed program was:" >&5
45996 sed 's/^/| /' conftest.$ac_ext >&5
45997
45998 eval "$as_ac_var=no"
45999 fi
46000 rm -f conftest.err conftest.$ac_objext \
46001       conftest$ac_exeext conftest.$ac_ext
46002 fi
46003 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46004 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46005 if test `eval echo '${'$as_ac_var'}'` = yes; then
46006   cat >>confdefs.h <<_ACEOF
46007 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46008 _ACEOF
46009  ice_have_setpgrp=yes
46010 fi
46011 done
46012
46013 if test "${ice_have_setpgrp}" = yes; then
46014 echo "$as_me:$LINENO: checking for setpgrp declaration in sys/types.h unistd.h libc.h" >&5
46015 echo $ECHO_N "checking for setpgrp declaration in sys/types.h unistd.h libc.h... $ECHO_C" >&6
46016 if test "${ice_cv_have_setpgrp_decl+set}" = set; then
46017   echo $ECHO_N "(cached) $ECHO_C" >&6
46018 else
46019
46020 ice_cv_have_setpgrp_decl=no
46021 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
46022 ice_re_word='(^|[^a-zA-Z0-9_])'
46023 for header in sys/types.h unistd.h libc.h; do
46024 # Check for ordinary declaration
46025 cat >conftest.$ac_ext <<_ACEOF
46026 /* confdefs.h.  */
46027 _ACEOF
46028 cat confdefs.h >>conftest.$ac_ext
46029 cat >>conftest.$ac_ext <<_ACEOF
46030 /* end confdefs.h.  */
46031 #include <$header>
46032
46033 _ACEOF
46034 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46035   $EGREP "${ice_re_word}setpgrp[        ]*\(" >/dev/null 2>&1; then
46036   ice_cv_have_setpgrp_decl=yes
46037 fi
46038 rm -f conftest*
46039
46040 if test "$ice_cv_have_setpgrp_decl" = yes; then
46041         break
46042 fi
46043 # Check for "fixed" declaration like "getpid _PARAMS((int))"
46044 cat >conftest.$ac_ext <<_ACEOF
46045 /* confdefs.h.  */
46046 _ACEOF
46047 cat confdefs.h >>conftest.$ac_ext
46048 cat >>conftest.$ac_ext <<_ACEOF
46049 /* end confdefs.h.  */
46050 #include <$header>
46051
46052 _ACEOF
46053 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46054   $EGREP "${ice_re_word}setpgrp[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
46055   ice_cv_have_setpgrp_decl=yes
46056 fi
46057 rm -f conftest*
46058
46059 if test "$ice_cv_have_setpgrp_decl" = yes; then
46060         break
46061 fi
46062 done
46063
46064 fi
46065
46066 echo "$as_me:$LINENO: result: $ice_cv_have_setpgrp_decl" >&5
46067 echo "${ECHO_T}$ice_cv_have_setpgrp_decl" >&6
46068 if test "$ice_cv_have_setpgrp_decl" = yes; then
46069
46070 cat >>confdefs.h <<_ACEOF
46071 #define HAVE_SETPGRP_DECL 1
46072 _ACEOF
46073
46074 fi
46075 fi
46076
46077
46078
46079 ice_have_setsockopt=no
46080
46081 for ac_func in setsockopt
46082 do
46083 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46084 echo "$as_me:$LINENO: checking for $ac_func" >&5
46085 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46086 if eval "test \"\${$as_ac_var+set}\" = set"; then
46087   echo $ECHO_N "(cached) $ECHO_C" >&6
46088 else
46089   cat >conftest.$ac_ext <<_ACEOF
46090 /* confdefs.h.  */
46091 _ACEOF
46092 cat confdefs.h >>conftest.$ac_ext
46093 cat >>conftest.$ac_ext <<_ACEOF
46094 /* end confdefs.h.  */
46095 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46096    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46097 #define $ac_func innocuous_$ac_func
46098
46099 /* System header to define __stub macros and hopefully few prototypes,
46100     which can conflict with char $ac_func (); below.
46101     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46102     <limits.h> exists even on freestanding compilers.  */
46103
46104 #ifdef __STDC__
46105 # include <limits.h>
46106 #else
46107 # include <assert.h>
46108 #endif
46109
46110 #undef $ac_func
46111
46112 /* Override any gcc2 internal prototype to avoid an error.  */
46113 #ifdef __cplusplus
46114 extern "C"
46115 {
46116 #endif
46117 /* We use char because int might match the return type of a gcc2
46118    builtin and then its argument prototype would still apply.  */
46119 char $ac_func ();
46120 /* The GNU C library defines this for functions which it implements
46121     to always fail with ENOSYS.  Some functions are actually named
46122     something starting with __ and the normal name is an alias.  */
46123 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46124 choke me
46125 #else
46126 char (*f) () = $ac_func;
46127 #endif
46128 #ifdef __cplusplus
46129 }
46130 #endif
46131
46132 int
46133 main ()
46134 {
46135 return f != $ac_func;
46136   ;
46137   return 0;
46138 }
46139 _ACEOF
46140 rm -f conftest.$ac_objext conftest$ac_exeext
46141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46142   (eval $ac_link) 2>conftest.er1
46143   ac_status=$?
46144   grep -v '^ *+' conftest.er1 >conftest.err
46145   rm -f conftest.er1
46146   cat conftest.err >&5
46147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46148   (exit $ac_status); } &&
46149          { ac_try='test -z "$ac_c_werror_flag"
46150                          || test ! -s conftest.err'
46151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46152   (eval $ac_try) 2>&5
46153   ac_status=$?
46154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46155   (exit $ac_status); }; } &&
46156          { ac_try='test -s conftest$ac_exeext'
46157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46158   (eval $ac_try) 2>&5
46159   ac_status=$?
46160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46161   (exit $ac_status); }; }; then
46162   eval "$as_ac_var=yes"
46163 else
46164   echo "$as_me: failed program was:" >&5
46165 sed 's/^/| /' conftest.$ac_ext >&5
46166
46167 eval "$as_ac_var=no"
46168 fi
46169 rm -f conftest.err conftest.$ac_objext \
46170       conftest$ac_exeext conftest.$ac_ext
46171 fi
46172 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46173 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46174 if test `eval echo '${'$as_ac_var'}'` = yes; then
46175   cat >>confdefs.h <<_ACEOF
46176 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46177 _ACEOF
46178  ice_have_setsockopt=yes
46179 fi
46180 done
46181
46182 if test "${ice_have_setsockopt}" = yes; then
46183 echo "$as_me:$LINENO: checking for setsockopt declaration in sys/types.h sys/socket.h" >&5
46184 echo $ECHO_N "checking for setsockopt declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
46185 if test "${ice_cv_have_setsockopt_decl+set}" = set; then
46186   echo $ECHO_N "(cached) $ECHO_C" >&6
46187 else
46188
46189 ice_cv_have_setsockopt_decl=no
46190 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
46191 ice_re_word='(^|[^a-zA-Z0-9_])'
46192 for header in sys/types.h sys/socket.h; do
46193 # Check for ordinary declaration
46194 cat >conftest.$ac_ext <<_ACEOF
46195 /* confdefs.h.  */
46196 _ACEOF
46197 cat confdefs.h >>conftest.$ac_ext
46198 cat >>conftest.$ac_ext <<_ACEOF
46199 /* end confdefs.h.  */
46200 #include <$header>
46201
46202 _ACEOF
46203 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46204   $EGREP "${ice_re_word}setsockopt[     ]*\(" >/dev/null 2>&1; then
46205   ice_cv_have_setsockopt_decl=yes
46206 fi
46207 rm -f conftest*
46208
46209 if test "$ice_cv_have_setsockopt_decl" = yes; then
46210         break
46211 fi
46212 # Check for "fixed" declaration like "getpid _PARAMS((int))"
46213 cat >conftest.$ac_ext <<_ACEOF
46214 /* confdefs.h.  */
46215 _ACEOF
46216 cat confdefs.h >>conftest.$ac_ext
46217 cat >>conftest.$ac_ext <<_ACEOF
46218 /* end confdefs.h.  */
46219 #include <$header>
46220
46221 _ACEOF
46222 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46223   $EGREP "${ice_re_word}setsockopt[     ]*$ice_re_params\(\(" >/dev/null 2>&1; then
46224   ice_cv_have_setsockopt_decl=yes
46225 fi
46226 rm -f conftest*
46227
46228 if test "$ice_cv_have_setsockopt_decl" = yes; then
46229         break
46230 fi
46231 done
46232
46233 fi
46234
46235 echo "$as_me:$LINENO: result: $ice_cv_have_setsockopt_decl" >&5
46236 echo "${ECHO_T}$ice_cv_have_setsockopt_decl" >&6
46237 if test "$ice_cv_have_setsockopt_decl" = yes; then
46238
46239 cat >>confdefs.h <<_ACEOF
46240 #define HAVE_SETSOCKOPT_DECL 1
46241 _ACEOF
46242
46243 fi
46244 fi
46245
46246
46247
46248 for ac_func in shmget
46249 do
46250 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46251 echo "$as_me:$LINENO: checking for $ac_func" >&5
46252 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46253 if eval "test \"\${$as_ac_var+set}\" = set"; then
46254   echo $ECHO_N "(cached) $ECHO_C" >&6
46255 else
46256   cat >conftest.$ac_ext <<_ACEOF
46257 /* confdefs.h.  */
46258 _ACEOF
46259 cat confdefs.h >>conftest.$ac_ext
46260 cat >>conftest.$ac_ext <<_ACEOF
46261 /* end confdefs.h.  */
46262 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46263    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46264 #define $ac_func innocuous_$ac_func
46265
46266 /* System header to define __stub macros and hopefully few prototypes,
46267     which can conflict with char $ac_func (); below.
46268     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46269     <limits.h> exists even on freestanding compilers.  */
46270
46271 #ifdef __STDC__
46272 # include <limits.h>
46273 #else
46274 # include <assert.h>
46275 #endif
46276
46277 #undef $ac_func
46278
46279 /* Override any gcc2 internal prototype to avoid an error.  */
46280 #ifdef __cplusplus
46281 extern "C"
46282 {
46283 #endif
46284 /* We use char because int might match the return type of a gcc2
46285    builtin and then its argument prototype would still apply.  */
46286 char $ac_func ();
46287 /* The GNU C library defines this for functions which it implements
46288     to always fail with ENOSYS.  Some functions are actually named
46289     something starting with __ and the normal name is an alias.  */
46290 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46291 choke me
46292 #else
46293 char (*f) () = $ac_func;
46294 #endif
46295 #ifdef __cplusplus
46296 }
46297 #endif
46298
46299 int
46300 main ()
46301 {
46302 return f != $ac_func;
46303   ;
46304   return 0;
46305 }
46306 _ACEOF
46307 rm -f conftest.$ac_objext conftest$ac_exeext
46308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46309   (eval $ac_link) 2>conftest.er1
46310   ac_status=$?
46311   grep -v '^ *+' conftest.er1 >conftest.err
46312   rm -f conftest.er1
46313   cat conftest.err >&5
46314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46315   (exit $ac_status); } &&
46316          { ac_try='test -z "$ac_c_werror_flag"
46317                          || test ! -s conftest.err'
46318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46319   (eval $ac_try) 2>&5
46320   ac_status=$?
46321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46322   (exit $ac_status); }; } &&
46323          { ac_try='test -s conftest$ac_exeext'
46324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46325   (eval $ac_try) 2>&5
46326   ac_status=$?
46327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46328   (exit $ac_status); }; }; then
46329   eval "$as_ac_var=yes"
46330 else
46331   echo "$as_me: failed program was:" >&5
46332 sed 's/^/| /' conftest.$ac_ext >&5
46333
46334 eval "$as_ac_var=no"
46335 fi
46336 rm -f conftest.err conftest.$ac_objext \
46337       conftest$ac_exeext conftest.$ac_ext
46338 fi
46339 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46340 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46341 if test `eval echo '${'$as_ac_var'}'` = yes; then
46342   cat >>confdefs.h <<_ACEOF
46343 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46344 _ACEOF
46345
46346
46347         echo "$as_me:$LINENO: checking for shmdt() argument type" >&5
46348 echo $ECHO_N "checking for shmdt() argument type... $ECHO_C" >&6
46349 if test "${amanda_cv_shmdt_arg_type+set}" = set; then
46350   echo $ECHO_N "(cached) $ECHO_C" >&6
46351 else
46352
46353                 if test "$ac_cv_func_shmget" = yes; then
46354                     cat <<EOF >conftest.$ac_ext
46355 #include "confdefs.h"
46356 #ifdef HAVE_SYS_TYPES_H
46357 # include <sys/types.h>
46358 #endif
46359 #ifdef HAVE_SYS_IPC_H
46360 # include <sys/ipc.h>
46361 #endif
46362 #ifdef HAVE_SYS_SHM_H
46363 # include <sys/shm.h>
46364 #endif
46365
46366 #ifdef __cplusplus
46367 extern "C" void *shmat(int, void *, int);
46368 #else
46369 void *shmat();
46370 #endif
46371
46372 int main()
46373 {
46374     int i;
46375     return 0;
46376 }
46377 EOF
46378                     ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext >/dev/null 2>/dev/null
46379                     if test $? = 0; then
46380                         amanda_cv_shmdt_arg_type=void
46381                     else
46382                         amanda_cv_shmdt_arg_type=char
46383                     fi
46384                     rm -f conftest*
46385                 else
46386                     amanda_cv_shmdt_arg_type=nothing
46387                 fi
46388
46389
46390 fi
46391 echo "$as_me:$LINENO: result: $amanda_cv_shmdt_arg_type" >&5
46392 echo "${ECHO_T}$amanda_cv_shmdt_arg_type" >&6
46393
46394 cat >>confdefs.h <<_ACEOF
46395 #define SHM_ARG_TYPE $amanda_cv_shmdt_arg_type
46396 _ACEOF
46397
46398
46399
46400         case "$FORCE_MMAP" in
46401         n | no)
46402
46403 cat >>confdefs.h <<\_ACEOF
46404 #define HAVE_SYSVSHM 1
46405 _ACEOF
46406
46407           ;;
46408         esac
46409
46410
46411 fi
46412 done
46413
46414
46415 ice_have_shmat=no
46416
46417 for ac_func in shmat
46418 do
46419 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46420 echo "$as_me:$LINENO: checking for $ac_func" >&5
46421 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46422 if eval "test \"\${$as_ac_var+set}\" = set"; then
46423   echo $ECHO_N "(cached) $ECHO_C" >&6
46424 else
46425   cat >conftest.$ac_ext <<_ACEOF
46426 /* confdefs.h.  */
46427 _ACEOF
46428 cat confdefs.h >>conftest.$ac_ext
46429 cat >>conftest.$ac_ext <<_ACEOF
46430 /* end confdefs.h.  */
46431 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46432    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46433 #define $ac_func innocuous_$ac_func
46434
46435 /* System header to define __stub macros and hopefully few prototypes,
46436     which can conflict with char $ac_func (); below.
46437     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46438     <limits.h> exists even on freestanding compilers.  */
46439
46440 #ifdef __STDC__
46441 # include <limits.h>
46442 #else
46443 # include <assert.h>
46444 #endif
46445
46446 #undef $ac_func
46447
46448 /* Override any gcc2 internal prototype to avoid an error.  */
46449 #ifdef __cplusplus
46450 extern "C"
46451 {
46452 #endif
46453 /* We use char because int might match the return type of a gcc2
46454    builtin and then its argument prototype would still apply.  */
46455 char $ac_func ();
46456 /* The GNU C library defines this for functions which it implements
46457     to always fail with ENOSYS.  Some functions are actually named
46458     something starting with __ and the normal name is an alias.  */
46459 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46460 choke me
46461 #else
46462 char (*f) () = $ac_func;
46463 #endif
46464 #ifdef __cplusplus
46465 }
46466 #endif
46467
46468 int
46469 main ()
46470 {
46471 return f != $ac_func;
46472   ;
46473   return 0;
46474 }
46475 _ACEOF
46476 rm -f conftest.$ac_objext conftest$ac_exeext
46477 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46478   (eval $ac_link) 2>conftest.er1
46479   ac_status=$?
46480   grep -v '^ *+' conftest.er1 >conftest.err
46481   rm -f conftest.er1
46482   cat conftest.err >&5
46483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46484   (exit $ac_status); } &&
46485          { ac_try='test -z "$ac_c_werror_flag"
46486                          || test ! -s conftest.err'
46487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46488   (eval $ac_try) 2>&5
46489   ac_status=$?
46490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46491   (exit $ac_status); }; } &&
46492          { ac_try='test -s conftest$ac_exeext'
46493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46494   (eval $ac_try) 2>&5
46495   ac_status=$?
46496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46497   (exit $ac_status); }; }; then
46498   eval "$as_ac_var=yes"
46499 else
46500   echo "$as_me: failed program was:" >&5
46501 sed 's/^/| /' conftest.$ac_ext >&5
46502
46503 eval "$as_ac_var=no"
46504 fi
46505 rm -f conftest.err conftest.$ac_objext \
46506       conftest$ac_exeext conftest.$ac_ext
46507 fi
46508 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46509 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46510 if test `eval echo '${'$as_ac_var'}'` = yes; then
46511   cat >>confdefs.h <<_ACEOF
46512 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46513 _ACEOF
46514  ice_have_shmat=yes
46515 fi
46516 done
46517
46518 if test "${ice_have_shmat}" = yes; then
46519 echo "$as_me:$LINENO: checking for shmat declaration in sys/types.h sys/ipc.h sys/shm.h" >&5
46520 echo $ECHO_N "checking for shmat declaration in sys/types.h sys/ipc.h sys/shm.h... $ECHO_C" >&6
46521 if test "${ice_cv_have_shmat_decl+set}" = set; then
46522   echo $ECHO_N "(cached) $ECHO_C" >&6
46523 else
46524
46525 ice_cv_have_shmat_decl=no
46526 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
46527 ice_re_word='(^|[^a-zA-Z0-9_])'
46528 for header in sys/types.h sys/ipc.h sys/shm.h; do
46529 # Check for ordinary declaration
46530 cat >conftest.$ac_ext <<_ACEOF
46531 /* confdefs.h.  */
46532 _ACEOF
46533 cat confdefs.h >>conftest.$ac_ext
46534 cat >>conftest.$ac_ext <<_ACEOF
46535 /* end confdefs.h.  */
46536 #include <$header>
46537
46538 _ACEOF
46539 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46540   $EGREP "${ice_re_word}shmat[  ]*\(" >/dev/null 2>&1; then
46541   ice_cv_have_shmat_decl=yes
46542 fi
46543 rm -f conftest*
46544
46545 if test "$ice_cv_have_shmat_decl" = yes; then
46546         break
46547 fi
46548 # Check for "fixed" declaration like "getpid _PARAMS((int))"
46549 cat >conftest.$ac_ext <<_ACEOF
46550 /* confdefs.h.  */
46551 _ACEOF
46552 cat confdefs.h >>conftest.$ac_ext
46553 cat >>conftest.$ac_ext <<_ACEOF
46554 /* end confdefs.h.  */
46555 #include <$header>
46556
46557 _ACEOF
46558 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46559   $EGREP "${ice_re_word}shmat[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
46560   ice_cv_have_shmat_decl=yes
46561 fi
46562 rm -f conftest*
46563
46564 if test "$ice_cv_have_shmat_decl" = yes; then
46565         break
46566 fi
46567 done
46568
46569 fi
46570
46571 echo "$as_me:$LINENO: result: $ice_cv_have_shmat_decl" >&5
46572 echo "${ECHO_T}$ice_cv_have_shmat_decl" >&6
46573 if test "$ice_cv_have_shmat_decl" = yes; then
46574
46575 cat >>confdefs.h <<_ACEOF
46576 #define HAVE_SHMAT_DECL 1
46577 _ACEOF
46578
46579 fi
46580 fi
46581
46582
46583 ice_have_shmctl=no
46584
46585 for ac_func in shmctl
46586 do
46587 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46588 echo "$as_me:$LINENO: checking for $ac_func" >&5
46589 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46590 if eval "test \"\${$as_ac_var+set}\" = set"; then
46591   echo $ECHO_N "(cached) $ECHO_C" >&6
46592 else
46593   cat >conftest.$ac_ext <<_ACEOF
46594 /* confdefs.h.  */
46595 _ACEOF
46596 cat confdefs.h >>conftest.$ac_ext
46597 cat >>conftest.$ac_ext <<_ACEOF
46598 /* end confdefs.h.  */
46599 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46600    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46601 #define $ac_func innocuous_$ac_func
46602
46603 /* System header to define __stub macros and hopefully few prototypes,
46604     which can conflict with char $ac_func (); below.
46605     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46606     <limits.h> exists even on freestanding compilers.  */
46607
46608 #ifdef __STDC__
46609 # include <limits.h>
46610 #else
46611 # include <assert.h>
46612 #endif
46613
46614 #undef $ac_func
46615
46616 /* Override any gcc2 internal prototype to avoid an error.  */
46617 #ifdef __cplusplus
46618 extern "C"
46619 {
46620 #endif
46621 /* We use char because int might match the return type of a gcc2
46622    builtin and then its argument prototype would still apply.  */
46623 char $ac_func ();
46624 /* The GNU C library defines this for functions which it implements
46625     to always fail with ENOSYS.  Some functions are actually named
46626     something starting with __ and the normal name is an alias.  */
46627 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46628 choke me
46629 #else
46630 char (*f) () = $ac_func;
46631 #endif
46632 #ifdef __cplusplus
46633 }
46634 #endif
46635
46636 int
46637 main ()
46638 {
46639 return f != $ac_func;
46640   ;
46641   return 0;
46642 }
46643 _ACEOF
46644 rm -f conftest.$ac_objext conftest$ac_exeext
46645 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46646   (eval $ac_link) 2>conftest.er1
46647   ac_status=$?
46648   grep -v '^ *+' conftest.er1 >conftest.err
46649   rm -f conftest.er1
46650   cat conftest.err >&5
46651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46652   (exit $ac_status); } &&
46653          { ac_try='test -z "$ac_c_werror_flag"
46654                          || test ! -s conftest.err'
46655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46656   (eval $ac_try) 2>&5
46657   ac_status=$?
46658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46659   (exit $ac_status); }; } &&
46660          { ac_try='test -s conftest$ac_exeext'
46661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46662   (eval $ac_try) 2>&5
46663   ac_status=$?
46664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46665   (exit $ac_status); }; }; then
46666   eval "$as_ac_var=yes"
46667 else
46668   echo "$as_me: failed program was:" >&5
46669 sed 's/^/| /' conftest.$ac_ext >&5
46670
46671 eval "$as_ac_var=no"
46672 fi
46673 rm -f conftest.err conftest.$ac_objext \
46674       conftest$ac_exeext conftest.$ac_ext
46675 fi
46676 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46677 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46678 if test `eval echo '${'$as_ac_var'}'` = yes; then
46679   cat >>confdefs.h <<_ACEOF
46680 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46681 _ACEOF
46682  ice_have_shmctl=yes
46683 fi
46684 done
46685
46686 if test "${ice_have_shmctl}" = yes; then
46687 echo "$as_me:$LINENO: checking for shmctl declaration in sys/types.h sys/ipc.h sys/shm.h" >&5
46688 echo $ECHO_N "checking for shmctl declaration in sys/types.h sys/ipc.h sys/shm.h... $ECHO_C" >&6
46689 if test "${ice_cv_have_shmctl_decl+set}" = set; then
46690   echo $ECHO_N "(cached) $ECHO_C" >&6
46691 else
46692
46693 ice_cv_have_shmctl_decl=no
46694 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
46695 ice_re_word='(^|[^a-zA-Z0-9_])'
46696 for header in sys/types.h sys/ipc.h sys/shm.h; do
46697 # Check for ordinary declaration
46698 cat >conftest.$ac_ext <<_ACEOF
46699 /* confdefs.h.  */
46700 _ACEOF
46701 cat confdefs.h >>conftest.$ac_ext
46702 cat >>conftest.$ac_ext <<_ACEOF
46703 /* end confdefs.h.  */
46704 #include <$header>
46705
46706 _ACEOF
46707 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46708   $EGREP "${ice_re_word}shmctl[         ]*\(" >/dev/null 2>&1; then
46709   ice_cv_have_shmctl_decl=yes
46710 fi
46711 rm -f conftest*
46712
46713 if test "$ice_cv_have_shmctl_decl" = yes; then
46714         break
46715 fi
46716 # Check for "fixed" declaration like "getpid _PARAMS((int))"
46717 cat >conftest.$ac_ext <<_ACEOF
46718 /* confdefs.h.  */
46719 _ACEOF
46720 cat confdefs.h >>conftest.$ac_ext
46721 cat >>conftest.$ac_ext <<_ACEOF
46722 /* end confdefs.h.  */
46723 #include <$header>
46724
46725 _ACEOF
46726 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46727   $EGREP "${ice_re_word}shmctl[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
46728   ice_cv_have_shmctl_decl=yes
46729 fi
46730 rm -f conftest*
46731
46732 if test "$ice_cv_have_shmctl_decl" = yes; then
46733         break
46734 fi
46735 done
46736
46737 fi
46738
46739 echo "$as_me:$LINENO: result: $ice_cv_have_shmctl_decl" >&5
46740 echo "${ECHO_T}$ice_cv_have_shmctl_decl" >&6
46741 if test "$ice_cv_have_shmctl_decl" = yes; then
46742
46743 cat >>confdefs.h <<_ACEOF
46744 #define HAVE_SHMCTL_DECL 1
46745 _ACEOF
46746
46747 fi
46748 fi
46749
46750
46751 ice_have_shmdt=no
46752
46753 for ac_func in shmdt
46754 do
46755 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46756 echo "$as_me:$LINENO: checking for $ac_func" >&5
46757 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46758 if eval "test \"\${$as_ac_var+set}\" = set"; then
46759   echo $ECHO_N "(cached) $ECHO_C" >&6
46760 else
46761   cat >conftest.$ac_ext <<_ACEOF
46762 /* confdefs.h.  */
46763 _ACEOF
46764 cat confdefs.h >>conftest.$ac_ext
46765 cat >>conftest.$ac_ext <<_ACEOF
46766 /* end confdefs.h.  */
46767 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46768    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46769 #define $ac_func innocuous_$ac_func
46770
46771 /* System header to define __stub macros and hopefully few prototypes,
46772     which can conflict with char $ac_func (); below.
46773     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46774     <limits.h> exists even on freestanding compilers.  */
46775
46776 #ifdef __STDC__
46777 # include <limits.h>
46778 #else
46779 # include <assert.h>
46780 #endif
46781
46782 #undef $ac_func
46783
46784 /* Override any gcc2 internal prototype to avoid an error.  */
46785 #ifdef __cplusplus
46786 extern "C"
46787 {
46788 #endif
46789 /* We use char because int might match the return type of a gcc2
46790    builtin and then its argument prototype would still apply.  */
46791 char $ac_func ();
46792 /* The GNU C library defines this for functions which it implements
46793     to always fail with ENOSYS.  Some functions are actually named
46794     something starting with __ and the normal name is an alias.  */
46795 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46796 choke me
46797 #else
46798 char (*f) () = $ac_func;
46799 #endif
46800 #ifdef __cplusplus
46801 }
46802 #endif
46803
46804 int
46805 main ()
46806 {
46807 return f != $ac_func;
46808   ;
46809   return 0;
46810 }
46811 _ACEOF
46812 rm -f conftest.$ac_objext conftest$ac_exeext
46813 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46814   (eval $ac_link) 2>conftest.er1
46815   ac_status=$?
46816   grep -v '^ *+' conftest.er1 >conftest.err
46817   rm -f conftest.er1
46818   cat conftest.err >&5
46819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46820   (exit $ac_status); } &&
46821          { ac_try='test -z "$ac_c_werror_flag"
46822                          || test ! -s conftest.err'
46823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46824   (eval $ac_try) 2>&5
46825   ac_status=$?
46826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46827   (exit $ac_status); }; } &&
46828          { ac_try='test -s conftest$ac_exeext'
46829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46830   (eval $ac_try) 2>&5
46831   ac_status=$?
46832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46833   (exit $ac_status); }; }; then
46834   eval "$as_ac_var=yes"
46835 else
46836   echo "$as_me: failed program was:" >&5
46837 sed 's/^/| /' conftest.$ac_ext >&5
46838
46839 eval "$as_ac_var=no"
46840 fi
46841 rm -f conftest.err conftest.$ac_objext \
46842       conftest$ac_exeext conftest.$ac_ext
46843 fi
46844 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46845 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46846 if test `eval echo '${'$as_ac_var'}'` = yes; then
46847   cat >>confdefs.h <<_ACEOF
46848 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46849 _ACEOF
46850  ice_have_shmdt=yes
46851 fi
46852 done
46853
46854 if test "${ice_have_shmdt}" = yes; then
46855 echo "$as_me:$LINENO: checking for shmdt declaration in sys/types.h sys/ipc.h sys/shm.h" >&5
46856 echo $ECHO_N "checking for shmdt declaration in sys/types.h sys/ipc.h sys/shm.h... $ECHO_C" >&6
46857 if test "${ice_cv_have_shmdt_decl+set}" = set; then
46858   echo $ECHO_N "(cached) $ECHO_C" >&6
46859 else
46860
46861 ice_cv_have_shmdt_decl=no
46862 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
46863 ice_re_word='(^|[^a-zA-Z0-9_])'
46864 for header in sys/types.h sys/ipc.h sys/shm.h; do
46865 # Check for ordinary declaration
46866 cat >conftest.$ac_ext <<_ACEOF
46867 /* confdefs.h.  */
46868 _ACEOF
46869 cat confdefs.h >>conftest.$ac_ext
46870 cat >>conftest.$ac_ext <<_ACEOF
46871 /* end confdefs.h.  */
46872 #include <$header>
46873
46874 _ACEOF
46875 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46876   $EGREP "${ice_re_word}shmdt[  ]*\(" >/dev/null 2>&1; then
46877   ice_cv_have_shmdt_decl=yes
46878 fi
46879 rm -f conftest*
46880
46881 if test "$ice_cv_have_shmdt_decl" = yes; then
46882         break
46883 fi
46884 # Check for "fixed" declaration like "getpid _PARAMS((int))"
46885 cat >conftest.$ac_ext <<_ACEOF
46886 /* confdefs.h.  */
46887 _ACEOF
46888 cat confdefs.h >>conftest.$ac_ext
46889 cat >>conftest.$ac_ext <<_ACEOF
46890 /* end confdefs.h.  */
46891 #include <$header>
46892
46893 _ACEOF
46894 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46895   $EGREP "${ice_re_word}shmdt[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
46896   ice_cv_have_shmdt_decl=yes
46897 fi
46898 rm -f conftest*
46899
46900 if test "$ice_cv_have_shmdt_decl" = yes; then
46901         break
46902 fi
46903 done
46904
46905 fi
46906
46907 echo "$as_me:$LINENO: result: $ice_cv_have_shmdt_decl" >&5
46908 echo "${ECHO_T}$ice_cv_have_shmdt_decl" >&6
46909 if test "$ice_cv_have_shmdt_decl" = yes; then
46910
46911 cat >>confdefs.h <<_ACEOF
46912 #define HAVE_SHMDT_DECL 1
46913 _ACEOF
46914
46915 fi
46916 fi
46917
46918
46919 ice_have_shmget=no
46920
46921 for ac_func in shmget
46922 do
46923 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46924 echo "$as_me:$LINENO: checking for $ac_func" >&5
46925 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46926 if eval "test \"\${$as_ac_var+set}\" = set"; then
46927   echo $ECHO_N "(cached) $ECHO_C" >&6
46928 else
46929   cat >conftest.$ac_ext <<_ACEOF
46930 /* confdefs.h.  */
46931 _ACEOF
46932 cat confdefs.h >>conftest.$ac_ext
46933 cat >>conftest.$ac_ext <<_ACEOF
46934 /* end confdefs.h.  */
46935 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46936    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46937 #define $ac_func innocuous_$ac_func
46938
46939 /* System header to define __stub macros and hopefully few prototypes,
46940     which can conflict with char $ac_func (); below.
46941     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46942     <limits.h> exists even on freestanding compilers.  */
46943
46944 #ifdef __STDC__
46945 # include <limits.h>
46946 #else
46947 # include <assert.h>
46948 #endif
46949
46950 #undef $ac_func
46951
46952 /* Override any gcc2 internal prototype to avoid an error.  */
46953 #ifdef __cplusplus
46954 extern "C"
46955 {
46956 #endif
46957 /* We use char because int might match the return type of a gcc2
46958    builtin and then its argument prototype would still apply.  */
46959 char $ac_func ();
46960 /* The GNU C library defines this for functions which it implements
46961     to always fail with ENOSYS.  Some functions are actually named
46962     something starting with __ and the normal name is an alias.  */
46963 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46964 choke me
46965 #else
46966 char (*f) () = $ac_func;
46967 #endif
46968 #ifdef __cplusplus
46969 }
46970 #endif
46971
46972 int
46973 main ()
46974 {
46975 return f != $ac_func;
46976   ;
46977   return 0;
46978 }
46979 _ACEOF
46980 rm -f conftest.$ac_objext conftest$ac_exeext
46981 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46982   (eval $ac_link) 2>conftest.er1
46983   ac_status=$?
46984   grep -v '^ *+' conftest.er1 >conftest.err
46985   rm -f conftest.er1
46986   cat conftest.err >&5
46987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46988   (exit $ac_status); } &&
46989          { ac_try='test -z "$ac_c_werror_flag"
46990                          || test ! -s conftest.err'
46991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46992   (eval $ac_try) 2>&5
46993   ac_status=$?
46994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46995   (exit $ac_status); }; } &&
46996          { ac_try='test -s conftest$ac_exeext'
46997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46998   (eval $ac_try) 2>&5
46999   ac_status=$?
47000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47001   (exit $ac_status); }; }; then
47002   eval "$as_ac_var=yes"
47003 else
47004   echo "$as_me: failed program was:" >&5
47005 sed 's/^/| /' conftest.$ac_ext >&5
47006
47007 eval "$as_ac_var=no"
47008 fi
47009 rm -f conftest.err conftest.$ac_objext \
47010       conftest$ac_exeext conftest.$ac_ext
47011 fi
47012 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47013 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47014 if test `eval echo '${'$as_ac_var'}'` = yes; then
47015   cat >>confdefs.h <<_ACEOF
47016 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47017 _ACEOF
47018  ice_have_shmget=yes
47019 fi
47020 done
47021
47022 if test "${ice_have_shmget}" = yes; then
47023 echo "$as_me:$LINENO: checking for shmget declaration in sys/types.h sys/ipc.h sys/shm.h" >&5
47024 echo $ECHO_N "checking for shmget declaration in sys/types.h sys/ipc.h sys/shm.h... $ECHO_C" >&6
47025 if test "${ice_cv_have_shmget_decl+set}" = set; then
47026   echo $ECHO_N "(cached) $ECHO_C" >&6
47027 else
47028
47029 ice_cv_have_shmget_decl=no
47030 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
47031 ice_re_word='(^|[^a-zA-Z0-9_])'
47032 for header in sys/types.h sys/ipc.h sys/shm.h; do
47033 # Check for ordinary declaration
47034 cat >conftest.$ac_ext <<_ACEOF
47035 /* confdefs.h.  */
47036 _ACEOF
47037 cat confdefs.h >>conftest.$ac_ext
47038 cat >>conftest.$ac_ext <<_ACEOF
47039 /* end confdefs.h.  */
47040 #include <$header>
47041
47042 _ACEOF
47043 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47044   $EGREP "${ice_re_word}shmget[         ]*\(" >/dev/null 2>&1; then
47045   ice_cv_have_shmget_decl=yes
47046 fi
47047 rm -f conftest*
47048
47049 if test "$ice_cv_have_shmget_decl" = yes; then
47050         break
47051 fi
47052 # Check for "fixed" declaration like "getpid _PARAMS((int))"
47053 cat >conftest.$ac_ext <<_ACEOF
47054 /* confdefs.h.  */
47055 _ACEOF
47056 cat confdefs.h >>conftest.$ac_ext
47057 cat >>conftest.$ac_ext <<_ACEOF
47058 /* end confdefs.h.  */
47059 #include <$header>
47060
47061 _ACEOF
47062 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47063   $EGREP "${ice_re_word}shmget[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
47064   ice_cv_have_shmget_decl=yes
47065 fi
47066 rm -f conftest*
47067
47068 if test "$ice_cv_have_shmget_decl" = yes; then
47069         break
47070 fi
47071 done
47072
47073 fi
47074
47075 echo "$as_me:$LINENO: result: $ice_cv_have_shmget_decl" >&5
47076 echo "${ECHO_T}$ice_cv_have_shmget_decl" >&6
47077 if test "$ice_cv_have_shmget_decl" = yes; then
47078
47079 cat >>confdefs.h <<_ACEOF
47080 #define HAVE_SHMGET_DECL 1
47081 _ACEOF
47082
47083 fi
47084 fi
47085
47086
47087 if test "x$ac_cv_func_mmap_fixed_mapped" != xyes; then
47088     case "$FORCE_MMAP" in
47089     n | no)
47090         if test "x$ac_cv_func_shmget" != xyes; then
47091             { echo "$as_me:$LINENO: WARNING: *** Neither shmget() nor mmap() found!" >&5
47092 echo "$as_me: WARNING: *** Neither shmget() nor mmap() found!" >&2;}
47093             { echo "$as_me:$LINENO: WARNING: *** This system will not support the Amanda server." >&5
47094 echo "$as_me: WARNING: *** This system will not support the Amanda server." >&2;}
47095             NO_SERVER_MODE=true
47096         fi
47097       ;;
47098     y | ye | yes)
47099         { echo "$as_me:$LINENO: WARNING: *** --with-mmap used on a system with no mmap() support!" >&5
47100 echo "$as_me: WARNING: *** --with-mmap used on a system with no mmap() support!" >&2;}
47101         { echo "$as_me:$LINENO: WARNING: *** This system will not support the Amanda server." >&5
47102 echo "$as_me: WARNING: *** This system will not support the Amanda server." >&2;}
47103         NO_SERVER_MODE=true
47104       ;;
47105     esac
47106 fi
47107
47108
47109 ice_have_snprintf=no
47110
47111 for ac_func in snprintf
47112 do
47113 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47114 echo "$as_me:$LINENO: checking for $ac_func" >&5
47115 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47116 if eval "test \"\${$as_ac_var+set}\" = set"; then
47117   echo $ECHO_N "(cached) $ECHO_C" >&6
47118 else
47119   cat >conftest.$ac_ext <<_ACEOF
47120 /* confdefs.h.  */
47121 _ACEOF
47122 cat confdefs.h >>conftest.$ac_ext
47123 cat >>conftest.$ac_ext <<_ACEOF
47124 /* end confdefs.h.  */
47125 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47126    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
47127 #define $ac_func innocuous_$ac_func
47128
47129 /* System header to define __stub macros and hopefully few prototypes,
47130     which can conflict with char $ac_func (); below.
47131     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47132     <limits.h> exists even on freestanding compilers.  */
47133
47134 #ifdef __STDC__
47135 # include <limits.h>
47136 #else
47137 # include <assert.h>
47138 #endif
47139
47140 #undef $ac_func
47141
47142 /* Override any gcc2 internal prototype to avoid an error.  */
47143 #ifdef __cplusplus
47144 extern "C"
47145 {
47146 #endif
47147 /* We use char because int might match the return type of a gcc2
47148    builtin and then its argument prototype would still apply.  */
47149 char $ac_func ();
47150 /* The GNU C library defines this for functions which it implements
47151     to always fail with ENOSYS.  Some functions are actually named
47152     something starting with __ and the normal name is an alias.  */
47153 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47154 choke me
47155 #else
47156 char (*f) () = $ac_func;
47157 #endif
47158 #ifdef __cplusplus
47159 }
47160 #endif
47161
47162 int
47163 main ()
47164 {
47165 return f != $ac_func;
47166   ;
47167   return 0;
47168 }
47169 _ACEOF
47170 rm -f conftest.$ac_objext conftest$ac_exeext
47171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47172   (eval $ac_link) 2>conftest.er1
47173   ac_status=$?
47174   grep -v '^ *+' conftest.er1 >conftest.err
47175   rm -f conftest.er1
47176   cat conftest.err >&5
47177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47178   (exit $ac_status); } &&
47179          { ac_try='test -z "$ac_c_werror_flag"
47180                          || test ! -s conftest.err'
47181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47182   (eval $ac_try) 2>&5
47183   ac_status=$?
47184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47185   (exit $ac_status); }; } &&
47186          { ac_try='test -s conftest$ac_exeext'
47187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47188   (eval $ac_try) 2>&5
47189   ac_status=$?
47190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47191   (exit $ac_status); }; }; then
47192   eval "$as_ac_var=yes"
47193 else
47194   echo "$as_me: failed program was:" >&5
47195 sed 's/^/| /' conftest.$ac_ext >&5
47196
47197 eval "$as_ac_var=no"
47198 fi
47199 rm -f conftest.err conftest.$ac_objext \
47200       conftest$ac_exeext conftest.$ac_ext
47201 fi
47202 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47203 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47204 if test `eval echo '${'$as_ac_var'}'` = yes; then
47205   cat >>confdefs.h <<_ACEOF
47206 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47207 _ACEOF
47208  ice_have_snprintf=yes
47209 fi
47210 done
47211
47212 if test "${ice_have_snprintf}" = yes; then
47213 echo "$as_me:$LINENO: checking for snprintf declaration in stdio.h" >&5
47214 echo $ECHO_N "checking for snprintf declaration in stdio.h... $ECHO_C" >&6
47215 if test "${ice_cv_have_snprintf_decl+set}" = set; then
47216   echo $ECHO_N "(cached) $ECHO_C" >&6
47217 else
47218
47219 ice_cv_have_snprintf_decl=no
47220 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
47221 ice_re_word='(^|[^a-zA-Z0-9_])'
47222 for header in stdio.h; do
47223 # Check for ordinary declaration
47224 cat >conftest.$ac_ext <<_ACEOF
47225 /* confdefs.h.  */
47226 _ACEOF
47227 cat confdefs.h >>conftest.$ac_ext
47228 cat >>conftest.$ac_ext <<_ACEOF
47229 /* end confdefs.h.  */
47230 #include <$header>
47231
47232 _ACEOF
47233 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47234   $EGREP "${ice_re_word}snprintf[       ]*\(" >/dev/null 2>&1; then
47235   ice_cv_have_snprintf_decl=yes
47236 fi
47237 rm -f conftest*
47238
47239 if test "$ice_cv_have_snprintf_decl" = yes; then
47240         break
47241 fi
47242 # Check for "fixed" declaration like "getpid _PARAMS((int))"
47243 cat >conftest.$ac_ext <<_ACEOF
47244 /* confdefs.h.  */
47245 _ACEOF
47246 cat confdefs.h >>conftest.$ac_ext
47247 cat >>conftest.$ac_ext <<_ACEOF
47248 /* end confdefs.h.  */
47249 #include <$header>
47250
47251 _ACEOF
47252 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47253   $EGREP "${ice_re_word}snprintf[       ]*$ice_re_params\(\(" >/dev/null 2>&1; then
47254   ice_cv_have_snprintf_decl=yes
47255 fi
47256 rm -f conftest*
47257
47258 if test "$ice_cv_have_snprintf_decl" = yes; then
47259         break
47260 fi
47261 done
47262
47263 fi
47264
47265 echo "$as_me:$LINENO: result: $ice_cv_have_snprintf_decl" >&5
47266 echo "${ECHO_T}$ice_cv_have_snprintf_decl" >&6
47267 if test "$ice_cv_have_snprintf_decl" = yes; then
47268
47269 cat >>confdefs.h <<_ACEOF
47270 #define HAVE_SNPRINTF_DECL 1
47271 _ACEOF
47272
47273 fi
47274 fi
47275
47276
47277 ice_have_vsnprintf=no
47278
47279 for ac_func in vsnprintf
47280 do
47281 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47282 echo "$as_me:$LINENO: checking for $ac_func" >&5
47283 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47284 if eval "test \"\${$as_ac_var+set}\" = set"; then
47285   echo $ECHO_N "(cached) $ECHO_C" >&6
47286 else
47287   cat >conftest.$ac_ext <<_ACEOF
47288 /* confdefs.h.  */
47289 _ACEOF
47290 cat confdefs.h >>conftest.$ac_ext
47291 cat >>conftest.$ac_ext <<_ACEOF
47292 /* end confdefs.h.  */
47293 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47294    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
47295 #define $ac_func innocuous_$ac_func
47296
47297 /* System header to define __stub macros and hopefully few prototypes,
47298     which can conflict with char $ac_func (); below.
47299     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47300     <limits.h> exists even on freestanding compilers.  */
47301
47302 #ifdef __STDC__
47303 # include <limits.h>
47304 #else
47305 # include <assert.h>
47306 #endif
47307
47308 #undef $ac_func
47309
47310 /* Override any gcc2 internal prototype to avoid an error.  */
47311 #ifdef __cplusplus
47312 extern "C"
47313 {
47314 #endif
47315 /* We use char because int might match the return type of a gcc2
47316    builtin and then its argument prototype would still apply.  */
47317 char $ac_func ();
47318 /* The GNU C library defines this for functions which it implements
47319     to always fail with ENOSYS.  Some functions are actually named
47320     something starting with __ and the normal name is an alias.  */
47321 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47322 choke me
47323 #else
47324 char (*f) () = $ac_func;
47325 #endif
47326 #ifdef __cplusplus
47327 }
47328 #endif
47329
47330 int
47331 main ()
47332 {
47333 return f != $ac_func;
47334   ;
47335   return 0;
47336 }
47337 _ACEOF
47338 rm -f conftest.$ac_objext conftest$ac_exeext
47339 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47340   (eval $ac_link) 2>conftest.er1
47341   ac_status=$?
47342   grep -v '^ *+' conftest.er1 >conftest.err
47343   rm -f conftest.er1
47344   cat conftest.err >&5
47345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47346   (exit $ac_status); } &&
47347          { ac_try='test -z "$ac_c_werror_flag"
47348                          || test ! -s conftest.err'
47349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47350   (eval $ac_try) 2>&5
47351   ac_status=$?
47352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47353   (exit $ac_status); }; } &&
47354          { ac_try='test -s conftest$ac_exeext'
47355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47356   (eval $ac_try) 2>&5
47357   ac_status=$?
47358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47359   (exit $ac_status); }; }; then
47360   eval "$as_ac_var=yes"
47361 else
47362   echo "$as_me: failed program was:" >&5
47363 sed 's/^/| /' conftest.$ac_ext >&5
47364
47365 eval "$as_ac_var=no"
47366 fi
47367 rm -f conftest.err conftest.$ac_objext \
47368       conftest$ac_exeext conftest.$ac_ext
47369 fi
47370 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47371 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47372 if test `eval echo '${'$as_ac_var'}'` = yes; then
47373   cat >>confdefs.h <<_ACEOF
47374 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47375 _ACEOF
47376  ice_have_vsnprintf=yes
47377 fi
47378 done
47379
47380 if test "${ice_have_vsnprintf}" = yes; then
47381 echo "$as_me:$LINENO: checking for vsnprintf declaration in stdio.h" >&5
47382 echo $ECHO_N "checking for vsnprintf declaration in stdio.h... $ECHO_C" >&6
47383 if test "${ice_cv_have_vsnprintf_decl+set}" = set; then
47384   echo $ECHO_N "(cached) $ECHO_C" >&6
47385 else
47386
47387 ice_cv_have_vsnprintf_decl=no
47388 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
47389 ice_re_word='(^|[^a-zA-Z0-9_])'
47390 for header in stdio.h; do
47391 # Check for ordinary declaration
47392 cat >conftest.$ac_ext <<_ACEOF
47393 /* confdefs.h.  */
47394 _ACEOF
47395 cat confdefs.h >>conftest.$ac_ext
47396 cat >>conftest.$ac_ext <<_ACEOF
47397 /* end confdefs.h.  */
47398 #include <$header>
47399
47400 _ACEOF
47401 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47402   $EGREP "${ice_re_word}vsnprintf[      ]*\(" >/dev/null 2>&1; then
47403   ice_cv_have_vsnprintf_decl=yes
47404 fi
47405 rm -f conftest*
47406
47407 if test "$ice_cv_have_vsnprintf_decl" = yes; then
47408         break
47409 fi
47410 # Check for "fixed" declaration like "getpid _PARAMS((int))"
47411 cat >conftest.$ac_ext <<_ACEOF
47412 /* confdefs.h.  */
47413 _ACEOF
47414 cat confdefs.h >>conftest.$ac_ext
47415 cat >>conftest.$ac_ext <<_ACEOF
47416 /* end confdefs.h.  */
47417 #include <$header>
47418
47419 _ACEOF
47420 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47421   $EGREP "${ice_re_word}vsnprintf[      ]*$ice_re_params\(\(" >/dev/null 2>&1; then
47422   ice_cv_have_vsnprintf_decl=yes
47423 fi
47424 rm -f conftest*
47425
47426 if test "$ice_cv_have_vsnprintf_decl" = yes; then
47427         break
47428 fi
47429 done
47430
47431 fi
47432
47433 echo "$as_me:$LINENO: result: $ice_cv_have_vsnprintf_decl" >&5
47434 echo "${ECHO_T}$ice_cv_have_vsnprintf_decl" >&6
47435 if test "$ice_cv_have_vsnprintf_decl" = yes; then
47436
47437 cat >>confdefs.h <<_ACEOF
47438 #define HAVE_VSNPRINTF_DECL 1
47439 _ACEOF
47440
47441 fi
47442 fi
47443
47444 if test x"$ice_have_snprintf" != x"yes" ||
47445    test x"$ice_have_vsnprintf" != x"yes"; then
47446     case $LIBOBJS in
47447     "snprintf.$ac_objext"   | \
47448   *" snprintf.$ac_objext"   | \
47449     "snprintf.$ac_objext "* | \
47450   *" snprintf.$ac_objext "* ) ;;
47451   *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" ;;
47452 esac
47453
47454     if false; then :
47455
47456 for ac_func in snprintf
47457 do
47458 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47459 echo "$as_me:$LINENO: checking for $ac_func" >&5
47460 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47461 if eval "test \"\${$as_ac_var+set}\" = set"; then
47462   echo $ECHO_N "(cached) $ECHO_C" >&6
47463 else
47464   cat >conftest.$ac_ext <<_ACEOF
47465 /* confdefs.h.  */
47466 _ACEOF
47467 cat confdefs.h >>conftest.$ac_ext
47468 cat >>conftest.$ac_ext <<_ACEOF
47469 /* end confdefs.h.  */
47470 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47471    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
47472 #define $ac_func innocuous_$ac_func
47473
47474 /* System header to define __stub macros and hopefully few prototypes,
47475     which can conflict with char $ac_func (); below.
47476     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47477     <limits.h> exists even on freestanding compilers.  */
47478
47479 #ifdef __STDC__
47480 # include <limits.h>
47481 #else
47482 # include <assert.h>
47483 #endif
47484
47485 #undef $ac_func
47486
47487 /* Override any gcc2 internal prototype to avoid an error.  */
47488 #ifdef __cplusplus
47489 extern "C"
47490 {
47491 #endif
47492 /* We use char because int might match the return type of a gcc2
47493    builtin and then its argument prototype would still apply.  */
47494 char $ac_func ();
47495 /* The GNU C library defines this for functions which it implements
47496     to always fail with ENOSYS.  Some functions are actually named
47497     something starting with __ and the normal name is an alias.  */
47498 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47499 choke me
47500 #else
47501 char (*f) () = $ac_func;
47502 #endif
47503 #ifdef __cplusplus
47504 }
47505 #endif
47506
47507 int
47508 main ()
47509 {
47510 return f != $ac_func;
47511   ;
47512   return 0;
47513 }
47514 _ACEOF
47515 rm -f conftest.$ac_objext conftest$ac_exeext
47516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47517   (eval $ac_link) 2>conftest.er1
47518   ac_status=$?
47519   grep -v '^ *+' conftest.er1 >conftest.err
47520   rm -f conftest.er1
47521   cat conftest.err >&5
47522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47523   (exit $ac_status); } &&
47524          { ac_try='test -z "$ac_c_werror_flag"
47525                          || test ! -s conftest.err'
47526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47527   (eval $ac_try) 2>&5
47528   ac_status=$?
47529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47530   (exit $ac_status); }; } &&
47531          { ac_try='test -s conftest$ac_exeext'
47532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47533   (eval $ac_try) 2>&5
47534   ac_status=$?
47535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47536   (exit $ac_status); }; }; then
47537   eval "$as_ac_var=yes"
47538 else
47539   echo "$as_me: failed program was:" >&5
47540 sed 's/^/| /' conftest.$ac_ext >&5
47541
47542 eval "$as_ac_var=no"
47543 fi
47544 rm -f conftest.err conftest.$ac_objext \
47545       conftest$ac_exeext conftest.$ac_ext
47546 fi
47547 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47548 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47549 if test `eval echo '${'$as_ac_var'}'` = yes; then
47550   cat >>confdefs.h <<_ACEOF
47551 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47552 _ACEOF
47553
47554 else
47555   case $LIBOBJS in
47556     "$ac_func.$ac_objext"   | \
47557   *" $ac_func.$ac_objext"   | \
47558     "$ac_func.$ac_objext "* | \
47559   *" $ac_func.$ac_objext "* ) ;;
47560   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
47561 esac
47562
47563 fi
47564 done
47565
47566
47567     fi
47568 fi
47569
47570
47571
47572
47573 for ac_func in sigaction sigemptyset sigvec
47574 do
47575 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47576 echo "$as_me:$LINENO: checking for $ac_func" >&5
47577 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47578 if eval "test \"\${$as_ac_var+set}\" = set"; then
47579   echo $ECHO_N "(cached) $ECHO_C" >&6
47580 else
47581   cat >conftest.$ac_ext <<_ACEOF
47582 /* confdefs.h.  */
47583 _ACEOF
47584 cat confdefs.h >>conftest.$ac_ext
47585 cat >>conftest.$ac_ext <<_ACEOF
47586 /* end confdefs.h.  */
47587 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47588    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
47589 #define $ac_func innocuous_$ac_func
47590
47591 /* System header to define __stub macros and hopefully few prototypes,
47592     which can conflict with char $ac_func (); below.
47593     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47594     <limits.h> exists even on freestanding compilers.  */
47595
47596 #ifdef __STDC__
47597 # include <limits.h>
47598 #else
47599 # include <assert.h>
47600 #endif
47601
47602 #undef $ac_func
47603
47604 /* Override any gcc2 internal prototype to avoid an error.  */
47605 #ifdef __cplusplus
47606 extern "C"
47607 {
47608 #endif
47609 /* We use char because int might match the return type of a gcc2
47610    builtin and then its argument prototype would still apply.  */
47611 char $ac_func ();
47612 /* The GNU C library defines this for functions which it implements
47613     to always fail with ENOSYS.  Some functions are actually named
47614     something starting with __ and the normal name is an alias.  */
47615 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47616 choke me
47617 #else
47618 char (*f) () = $ac_func;
47619 #endif
47620 #ifdef __cplusplus
47621 }
47622 #endif
47623
47624 int
47625 main ()
47626 {
47627 return f != $ac_func;
47628   ;
47629   return 0;
47630 }
47631 _ACEOF
47632 rm -f conftest.$ac_objext conftest$ac_exeext
47633 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47634   (eval $ac_link) 2>conftest.er1
47635   ac_status=$?
47636   grep -v '^ *+' conftest.er1 >conftest.err
47637   rm -f conftest.er1
47638   cat conftest.err >&5
47639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47640   (exit $ac_status); } &&
47641          { ac_try='test -z "$ac_c_werror_flag"
47642                          || test ! -s conftest.err'
47643   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47644   (eval $ac_try) 2>&5
47645   ac_status=$?
47646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47647   (exit $ac_status); }; } &&
47648          { ac_try='test -s conftest$ac_exeext'
47649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47650   (eval $ac_try) 2>&5
47651   ac_status=$?
47652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47653   (exit $ac_status); }; }; then
47654   eval "$as_ac_var=yes"
47655 else
47656   echo "$as_me: failed program was:" >&5
47657 sed 's/^/| /' conftest.$ac_ext >&5
47658
47659 eval "$as_ac_var=no"
47660 fi
47661 rm -f conftest.err conftest.$ac_objext \
47662       conftest$ac_exeext conftest.$ac_ext
47663 fi
47664 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47665 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47666 if test `eval echo '${'$as_ac_var'}'` = yes; then
47667   cat >>confdefs.h <<_ACEOF
47668 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47669 _ACEOF
47670
47671 fi
47672 done
47673
47674
47675 ice_have_socket=no
47676
47677 for ac_func in socket
47678 do
47679 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47680 echo "$as_me:$LINENO: checking for $ac_func" >&5
47681 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47682 if eval "test \"\${$as_ac_var+set}\" = set"; then
47683   echo $ECHO_N "(cached) $ECHO_C" >&6
47684 else
47685   cat >conftest.$ac_ext <<_ACEOF
47686 /* confdefs.h.  */
47687 _ACEOF
47688 cat confdefs.h >>conftest.$ac_ext
47689 cat >>conftest.$ac_ext <<_ACEOF
47690 /* end confdefs.h.  */
47691 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47692    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
47693 #define $ac_func innocuous_$ac_func
47694
47695 /* System header to define __stub macros and hopefully few prototypes,
47696     which can conflict with char $ac_func (); below.
47697     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47698     <limits.h> exists even on freestanding compilers.  */
47699
47700 #ifdef __STDC__
47701 # include <limits.h>
47702 #else
47703 # include <assert.h>
47704 #endif
47705
47706 #undef $ac_func
47707
47708 /* Override any gcc2 internal prototype to avoid an error.  */
47709 #ifdef __cplusplus
47710 extern "C"
47711 {
47712 #endif
47713 /* We use char because int might match the return type of a gcc2
47714    builtin and then its argument prototype would still apply.  */
47715 char $ac_func ();
47716 /* The GNU C library defines this for functions which it implements
47717     to always fail with ENOSYS.  Some functions are actually named
47718     something starting with __ and the normal name is an alias.  */
47719 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47720 choke me
47721 #else
47722 char (*f) () = $ac_func;
47723 #endif
47724 #ifdef __cplusplus
47725 }
47726 #endif
47727
47728 int
47729 main ()
47730 {
47731 return f != $ac_func;
47732   ;
47733   return 0;
47734 }
47735 _ACEOF
47736 rm -f conftest.$ac_objext conftest$ac_exeext
47737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47738   (eval $ac_link) 2>conftest.er1
47739   ac_status=$?
47740   grep -v '^ *+' conftest.er1 >conftest.err
47741   rm -f conftest.er1
47742   cat conftest.err >&5
47743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47744   (exit $ac_status); } &&
47745          { ac_try='test -z "$ac_c_werror_flag"
47746                          || test ! -s conftest.err'
47747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47748   (eval $ac_try) 2>&5
47749   ac_status=$?
47750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47751   (exit $ac_status); }; } &&
47752          { ac_try='test -s conftest$ac_exeext'
47753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47754   (eval $ac_try) 2>&5
47755   ac_status=$?
47756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47757   (exit $ac_status); }; }; then
47758   eval "$as_ac_var=yes"
47759 else
47760   echo "$as_me: failed program was:" >&5
47761 sed 's/^/| /' conftest.$ac_ext >&5
47762
47763 eval "$as_ac_var=no"
47764 fi
47765 rm -f conftest.err conftest.$ac_objext \
47766       conftest$ac_exeext conftest.$ac_ext
47767 fi
47768 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47769 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47770 if test `eval echo '${'$as_ac_var'}'` = yes; then
47771   cat >>confdefs.h <<_ACEOF
47772 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47773 _ACEOF
47774  ice_have_socket=yes
47775 fi
47776 done
47777
47778 if test "${ice_have_socket}" = yes; then
47779 echo "$as_me:$LINENO: checking for socket declaration in sys/types.h sys/socket.h" >&5
47780 echo $ECHO_N "checking for socket declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
47781 if test "${ice_cv_have_socket_decl+set}" = set; then
47782   echo $ECHO_N "(cached) $ECHO_C" >&6
47783 else
47784
47785 ice_cv_have_socket_decl=no
47786 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
47787 ice_re_word='(^|[^a-zA-Z0-9_])'
47788 for header in sys/types.h sys/socket.h; do
47789 # Check for ordinary declaration
47790 cat >conftest.$ac_ext <<_ACEOF
47791 /* confdefs.h.  */
47792 _ACEOF
47793 cat confdefs.h >>conftest.$ac_ext
47794 cat >>conftest.$ac_ext <<_ACEOF
47795 /* end confdefs.h.  */
47796 #include <$header>
47797
47798 _ACEOF
47799 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47800   $EGREP "${ice_re_word}socket[         ]*\(" >/dev/null 2>&1; then
47801   ice_cv_have_socket_decl=yes
47802 fi
47803 rm -f conftest*
47804
47805 if test "$ice_cv_have_socket_decl" = yes; then
47806         break
47807 fi
47808 # Check for "fixed" declaration like "getpid _PARAMS((int))"
47809 cat >conftest.$ac_ext <<_ACEOF
47810 /* confdefs.h.  */
47811 _ACEOF
47812 cat confdefs.h >>conftest.$ac_ext
47813 cat >>conftest.$ac_ext <<_ACEOF
47814 /* end confdefs.h.  */
47815 #include <$header>
47816
47817 _ACEOF
47818 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47819   $EGREP "${ice_re_word}socket[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
47820   ice_cv_have_socket_decl=yes
47821 fi
47822 rm -f conftest*
47823
47824 if test "$ice_cv_have_socket_decl" = yes; then
47825         break
47826 fi
47827 done
47828
47829 fi
47830
47831 echo "$as_me:$LINENO: result: $ice_cv_have_socket_decl" >&5
47832 echo "${ECHO_T}$ice_cv_have_socket_decl" >&6
47833 if test "$ice_cv_have_socket_decl" = yes; then
47834
47835 cat >>confdefs.h <<_ACEOF
47836 #define HAVE_SOCKET_DECL 1
47837 _ACEOF
47838
47839 fi
47840 fi
47841
47842
47843 ice_have_socketpair=no
47844
47845 for ac_func in socketpair
47846 do
47847 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47848 echo "$as_me:$LINENO: checking for $ac_func" >&5
47849 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47850 if eval "test \"\${$as_ac_var+set}\" = set"; then
47851   echo $ECHO_N "(cached) $ECHO_C" >&6
47852 else
47853   cat >conftest.$ac_ext <<_ACEOF
47854 /* confdefs.h.  */
47855 _ACEOF
47856 cat confdefs.h >>conftest.$ac_ext
47857 cat >>conftest.$ac_ext <<_ACEOF
47858 /* end confdefs.h.  */
47859 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47860    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
47861 #define $ac_func innocuous_$ac_func
47862
47863 /* System header to define __stub macros and hopefully few prototypes,
47864     which can conflict with char $ac_func (); below.
47865     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47866     <limits.h> exists even on freestanding compilers.  */
47867
47868 #ifdef __STDC__
47869 # include <limits.h>
47870 #else
47871 # include <assert.h>
47872 #endif
47873
47874 #undef $ac_func
47875
47876 /* Override any gcc2 internal prototype to avoid an error.  */
47877 #ifdef __cplusplus
47878 extern "C"
47879 {
47880 #endif
47881 /* We use char because int might match the return type of a gcc2
47882    builtin and then its argument prototype would still apply.  */
47883 char $ac_func ();
47884 /* The GNU C library defines this for functions which it implements
47885     to always fail with ENOSYS.  Some functions are actually named
47886     something starting with __ and the normal name is an alias.  */
47887 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47888 choke me
47889 #else
47890 char (*f) () = $ac_func;
47891 #endif
47892 #ifdef __cplusplus
47893 }
47894 #endif
47895
47896 int
47897 main ()
47898 {
47899 return f != $ac_func;
47900   ;
47901   return 0;
47902 }
47903 _ACEOF
47904 rm -f conftest.$ac_objext conftest$ac_exeext
47905 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47906   (eval $ac_link) 2>conftest.er1
47907   ac_status=$?
47908   grep -v '^ *+' conftest.er1 >conftest.err
47909   rm -f conftest.er1
47910   cat conftest.err >&5
47911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47912   (exit $ac_status); } &&
47913          { ac_try='test -z "$ac_c_werror_flag"
47914                          || test ! -s conftest.err'
47915   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47916   (eval $ac_try) 2>&5
47917   ac_status=$?
47918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47919   (exit $ac_status); }; } &&
47920          { ac_try='test -s conftest$ac_exeext'
47921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47922   (eval $ac_try) 2>&5
47923   ac_status=$?
47924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47925   (exit $ac_status); }; }; then
47926   eval "$as_ac_var=yes"
47927 else
47928   echo "$as_me: failed program was:" >&5
47929 sed 's/^/| /' conftest.$ac_ext >&5
47930
47931 eval "$as_ac_var=no"
47932 fi
47933 rm -f conftest.err conftest.$ac_objext \
47934       conftest$ac_exeext conftest.$ac_ext
47935 fi
47936 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47937 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47938 if test `eval echo '${'$as_ac_var'}'` = yes; then
47939   cat >>confdefs.h <<_ACEOF
47940 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47941 _ACEOF
47942  ice_have_socketpair=yes
47943 fi
47944 done
47945
47946 if test "${ice_have_socketpair}" = yes; then
47947 echo "$as_me:$LINENO: checking for socketpair declaration in sys/types.h sys/socket.h" >&5
47948 echo $ECHO_N "checking for socketpair declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
47949 if test "${ice_cv_have_socketpair_decl+set}" = set; then
47950   echo $ECHO_N "(cached) $ECHO_C" >&6
47951 else
47952
47953 ice_cv_have_socketpair_decl=no
47954 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
47955 ice_re_word='(^|[^a-zA-Z0-9_])'
47956 for header in sys/types.h sys/socket.h; do
47957 # Check for ordinary declaration
47958 cat >conftest.$ac_ext <<_ACEOF
47959 /* confdefs.h.  */
47960 _ACEOF
47961 cat confdefs.h >>conftest.$ac_ext
47962 cat >>conftest.$ac_ext <<_ACEOF
47963 /* end confdefs.h.  */
47964 #include <$header>
47965
47966 _ACEOF
47967 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47968   $EGREP "${ice_re_word}socketpair[     ]*\(" >/dev/null 2>&1; then
47969   ice_cv_have_socketpair_decl=yes
47970 fi
47971 rm -f conftest*
47972
47973 if test "$ice_cv_have_socketpair_decl" = yes; then
47974         break
47975 fi
47976 # Check for "fixed" declaration like "getpid _PARAMS((int))"
47977 cat >conftest.$ac_ext <<_ACEOF
47978 /* confdefs.h.  */
47979 _ACEOF
47980 cat confdefs.h >>conftest.$ac_ext
47981 cat >>conftest.$ac_ext <<_ACEOF
47982 /* end confdefs.h.  */
47983 #include <$header>
47984
47985 _ACEOF
47986 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47987   $EGREP "${ice_re_word}socketpair[     ]*$ice_re_params\(\(" >/dev/null 2>&1; then
47988   ice_cv_have_socketpair_decl=yes
47989 fi
47990 rm -f conftest*
47991
47992 if test "$ice_cv_have_socketpair_decl" = yes; then
47993         break
47994 fi
47995 done
47996
47997 fi
47998
47999 echo "$as_me:$LINENO: result: $ice_cv_have_socketpair_decl" >&5
48000 echo "${ECHO_T}$ice_cv_have_socketpair_decl" >&6
48001 if test "$ice_cv_have_socketpair_decl" = yes; then
48002
48003 cat >>confdefs.h <<_ACEOF
48004 #define HAVE_SOCKETPAIR_DECL 1
48005 _ACEOF
48006
48007 fi
48008 fi
48009
48010
48011 ice_have_sscanf=no
48012
48013 for ac_func in sscanf
48014 do
48015 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48016 echo "$as_me:$LINENO: checking for $ac_func" >&5
48017 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
48018 if eval "test \"\${$as_ac_var+set}\" = set"; then
48019   echo $ECHO_N "(cached) $ECHO_C" >&6
48020 else
48021   cat >conftest.$ac_ext <<_ACEOF
48022 /* confdefs.h.  */
48023 _ACEOF
48024 cat confdefs.h >>conftest.$ac_ext
48025 cat >>conftest.$ac_ext <<_ACEOF
48026 /* end confdefs.h.  */
48027 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48028    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
48029 #define $ac_func innocuous_$ac_func
48030
48031 /* System header to define __stub macros and hopefully few prototypes,
48032     which can conflict with char $ac_func (); below.
48033     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48034     <limits.h> exists even on freestanding compilers.  */
48035
48036 #ifdef __STDC__
48037 # include <limits.h>
48038 #else
48039 # include <assert.h>
48040 #endif
48041
48042 #undef $ac_func
48043
48044 /* Override any gcc2 internal prototype to avoid an error.  */
48045 #ifdef __cplusplus
48046 extern "C"
48047 {
48048 #endif
48049 /* We use char because int might match the return type of a gcc2
48050    builtin and then its argument prototype would still apply.  */
48051 char $ac_func ();
48052 /* The GNU C library defines this for functions which it implements
48053     to always fail with ENOSYS.  Some functions are actually named
48054     something starting with __ and the normal name is an alias.  */
48055 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
48056 choke me
48057 #else
48058 char (*f) () = $ac_func;
48059 #endif
48060 #ifdef __cplusplus
48061 }
48062 #endif
48063
48064 int
48065 main ()
48066 {
48067 return f != $ac_func;
48068   ;
48069   return 0;
48070 }
48071 _ACEOF
48072 rm -f conftest.$ac_objext conftest$ac_exeext
48073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48074   (eval $ac_link) 2>conftest.er1
48075   ac_status=$?
48076   grep -v '^ *+' conftest.er1 >conftest.err
48077   rm -f conftest.er1
48078   cat conftest.err >&5
48079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48080   (exit $ac_status); } &&
48081          { ac_try='test -z "$ac_c_werror_flag"
48082                          || test ! -s conftest.err'
48083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48084   (eval $ac_try) 2>&5
48085   ac_status=$?
48086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48087   (exit $ac_status); }; } &&
48088          { ac_try='test -s conftest$ac_exeext'
48089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48090   (eval $ac_try) 2>&5
48091   ac_status=$?
48092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48093   (exit $ac_status); }; }; then
48094   eval "$as_ac_var=yes"
48095 else
48096   echo "$as_me: failed program was:" >&5
48097 sed 's/^/| /' conftest.$ac_ext >&5
48098
48099 eval "$as_ac_var=no"
48100 fi
48101 rm -f conftest.err conftest.$ac_objext \
48102       conftest$ac_exeext conftest.$ac_ext
48103 fi
48104 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
48105 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
48106 if test `eval echo '${'$as_ac_var'}'` = yes; then
48107   cat >>confdefs.h <<_ACEOF
48108 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48109 _ACEOF
48110  ice_have_sscanf=yes
48111 fi
48112 done
48113
48114 if test "${ice_have_sscanf}" = yes; then
48115 echo "$as_me:$LINENO: checking for sscanf declaration in stdio.h" >&5
48116 echo $ECHO_N "checking for sscanf declaration in stdio.h... $ECHO_C" >&6
48117 if test "${ice_cv_have_sscanf_decl+set}" = set; then
48118   echo $ECHO_N "(cached) $ECHO_C" >&6
48119 else
48120
48121 ice_cv_have_sscanf_decl=no
48122 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
48123 ice_re_word='(^|[^a-zA-Z0-9_])'
48124 for header in stdio.h; do
48125 # Check for ordinary declaration
48126 cat >conftest.$ac_ext <<_ACEOF
48127 /* confdefs.h.  */
48128 _ACEOF
48129 cat confdefs.h >>conftest.$ac_ext
48130 cat >>conftest.$ac_ext <<_ACEOF
48131 /* end confdefs.h.  */
48132 #include <$header>
48133
48134 _ACEOF
48135 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48136   $EGREP "${ice_re_word}sscanf[         ]*\(" >/dev/null 2>&1; then
48137   ice_cv_have_sscanf_decl=yes
48138 fi
48139 rm -f conftest*
48140
48141 if test "$ice_cv_have_sscanf_decl" = yes; then
48142         break
48143 fi
48144 # Check for "fixed" declaration like "getpid _PARAMS((int))"
48145 cat >conftest.$ac_ext <<_ACEOF
48146 /* confdefs.h.  */
48147 _ACEOF
48148 cat confdefs.h >>conftest.$ac_ext
48149 cat >>conftest.$ac_ext <<_ACEOF
48150 /* end confdefs.h.  */
48151 #include <$header>
48152
48153 _ACEOF
48154 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48155   $EGREP "${ice_re_word}sscanf[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
48156   ice_cv_have_sscanf_decl=yes
48157 fi
48158 rm -f conftest*
48159
48160 if test "$ice_cv_have_sscanf_decl" = yes; then
48161         break
48162 fi
48163 done
48164
48165 fi
48166
48167 echo "$as_me:$LINENO: result: $ice_cv_have_sscanf_decl" >&5
48168 echo "${ECHO_T}$ice_cv_have_sscanf_decl" >&6
48169 if test "$ice_cv_have_sscanf_decl" = yes; then
48170
48171 cat >>confdefs.h <<_ACEOF
48172 #define HAVE_SSCANF_DECL 1
48173 _ACEOF
48174
48175 fi
48176 fi
48177
48178
48179
48180 for ac_func in statfs statvfs
48181 do
48182 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48183 echo "$as_me:$LINENO: checking for $ac_func" >&5
48184 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
48185 if eval "test \"\${$as_ac_var+set}\" = set"; then
48186   echo $ECHO_N "(cached) $ECHO_C" >&6
48187 else
48188   cat >conftest.$ac_ext <<_ACEOF
48189 /* confdefs.h.  */
48190 _ACEOF
48191 cat confdefs.h >>conftest.$ac_ext
48192 cat >>conftest.$ac_ext <<_ACEOF
48193 /* end confdefs.h.  */
48194 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48195    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
48196 #define $ac_func innocuous_$ac_func
48197
48198 /* System header to define __stub macros and hopefully few prototypes,
48199     which can conflict with char $ac_func (); below.
48200     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48201     <limits.h> exists even on freestanding compilers.  */
48202
48203 #ifdef __STDC__
48204 # include <limits.h>
48205 #else
48206 # include <assert.h>
48207 #endif
48208
48209 #undef $ac_func
48210
48211 /* Override any gcc2 internal prototype to avoid an error.  */
48212 #ifdef __cplusplus
48213 extern "C"
48214 {
48215 #endif
48216 /* We use char because int might match the return type of a gcc2
48217    builtin and then its argument prototype would still apply.  */
48218 char $ac_func ();
48219 /* The GNU C library defines this for functions which it implements
48220     to always fail with ENOSYS.  Some functions are actually named
48221     something starting with __ and the normal name is an alias.  */
48222 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
48223 choke me
48224 #else
48225 char (*f) () = $ac_func;
48226 #endif
48227 #ifdef __cplusplus
48228 }
48229 #endif
48230
48231 int
48232 main ()
48233 {
48234 return f != $ac_func;
48235   ;
48236   return 0;
48237 }
48238 _ACEOF
48239 rm -f conftest.$ac_objext conftest$ac_exeext
48240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48241   (eval $ac_link) 2>conftest.er1
48242   ac_status=$?
48243   grep -v '^ *+' conftest.er1 >conftest.err
48244   rm -f conftest.er1
48245   cat conftest.err >&5
48246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48247   (exit $ac_status); } &&
48248          { ac_try='test -z "$ac_c_werror_flag"
48249                          || test ! -s conftest.err'
48250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48251   (eval $ac_try) 2>&5
48252   ac_status=$?
48253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48254   (exit $ac_status); }; } &&
48255          { ac_try='test -s conftest$ac_exeext'
48256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48257   (eval $ac_try) 2>&5
48258   ac_status=$?
48259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48260   (exit $ac_status); }; }; then
48261   eval "$as_ac_var=yes"
48262 else
48263   echo "$as_me: failed program was:" >&5
48264 sed 's/^/| /' conftest.$ac_ext >&5
48265
48266 eval "$as_ac_var=no"
48267 fi
48268 rm -f conftest.err conftest.$ac_objext \
48269       conftest$ac_exeext conftest.$ac_ext
48270 fi
48271 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
48272 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
48273 if test `eval echo '${'$as_ac_var'}'` = yes; then
48274   cat >>confdefs.h <<_ACEOF
48275 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48276 _ACEOF
48277
48278 fi
48279 done
48280
48281
48282 for ac_func in strerror
48283 do
48284 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48285 echo "$as_me:$LINENO: checking for $ac_func" >&5
48286 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
48287 if eval "test \"\${$as_ac_var+set}\" = set"; then
48288   echo $ECHO_N "(cached) $ECHO_C" >&6
48289 else
48290   cat >conftest.$ac_ext <<_ACEOF
48291 /* confdefs.h.  */
48292 _ACEOF
48293 cat confdefs.h >>conftest.$ac_ext
48294 cat >>conftest.$ac_ext <<_ACEOF
48295 /* end confdefs.h.  */
48296 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48297    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
48298 #define $ac_func innocuous_$ac_func
48299
48300 /* System header to define __stub macros and hopefully few prototypes,
48301     which can conflict with char $ac_func (); below.
48302     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48303     <limits.h> exists even on freestanding compilers.  */
48304
48305 #ifdef __STDC__
48306 # include <limits.h>
48307 #else
48308 # include <assert.h>
48309 #endif
48310
48311 #undef $ac_func
48312
48313 /* Override any gcc2 internal prototype to avoid an error.  */
48314 #ifdef __cplusplus
48315 extern "C"
48316 {
48317 #endif
48318 /* We use char because int might match the return type of a gcc2
48319    builtin and then its argument prototype would still apply.  */
48320 char $ac_func ();
48321 /* The GNU C library defines this for functions which it implements
48322     to always fail with ENOSYS.  Some functions are actually named
48323     something starting with __ and the normal name is an alias.  */
48324 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
48325 choke me
48326 #else
48327 char (*f) () = $ac_func;
48328 #endif
48329 #ifdef __cplusplus
48330 }
48331 #endif
48332
48333 int
48334 main ()
48335 {
48336 return f != $ac_func;
48337   ;
48338   return 0;
48339 }
48340 _ACEOF
48341 rm -f conftest.$ac_objext conftest$ac_exeext
48342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48343   (eval $ac_link) 2>conftest.er1
48344   ac_status=$?
48345   grep -v '^ *+' conftest.er1 >conftest.err
48346   rm -f conftest.er1
48347   cat conftest.err >&5
48348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48349   (exit $ac_status); } &&
48350          { ac_try='test -z "$ac_c_werror_flag"
48351                          || test ! -s conftest.err'
48352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48353   (eval $ac_try) 2>&5
48354   ac_status=$?
48355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48356   (exit $ac_status); }; } &&
48357          { ac_try='test -s conftest$ac_exeext'
48358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48359   (eval $ac_try) 2>&5
48360   ac_status=$?
48361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48362   (exit $ac_status); }; }; then
48363   eval "$as_ac_var=yes"
48364 else
48365   echo "$as_me: failed program was:" >&5
48366 sed 's/^/| /' conftest.$ac_ext >&5
48367
48368 eval "$as_ac_var=no"
48369 fi
48370 rm -f conftest.err conftest.$ac_objext \
48371       conftest$ac_exeext conftest.$ac_ext
48372 fi
48373 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
48374 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
48375 if test `eval echo '${'$as_ac_var'}'` = yes; then
48376   cat >>confdefs.h <<_ACEOF
48377 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48378 _ACEOF
48379
48380 else
48381   case $LIBOBJS in
48382     "$ac_func.$ac_objext"   | \
48383   *" $ac_func.$ac_objext"   | \
48384     "$ac_func.$ac_objext "* | \
48385   *" $ac_func.$ac_objext "* ) ;;
48386   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
48387 esac
48388
48389 fi
48390 done
48391
48392
48393
48394 ice_have_strerror=no
48395
48396 for ac_func in strerror
48397 do
48398 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48399 echo "$as_me:$LINENO: checking for $ac_func" >&5
48400 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
48401 if eval "test \"\${$as_ac_var+set}\" = set"; then
48402   echo $ECHO_N "(cached) $ECHO_C" >&6
48403 else
48404   cat >conftest.$ac_ext <<_ACEOF
48405 /* confdefs.h.  */
48406 _ACEOF
48407 cat confdefs.h >>conftest.$ac_ext
48408 cat >>conftest.$ac_ext <<_ACEOF
48409 /* end confdefs.h.  */
48410 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48411    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
48412 #define $ac_func innocuous_$ac_func
48413
48414 /* System header to define __stub macros and hopefully few prototypes,
48415     which can conflict with char $ac_func (); below.
48416     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48417     <limits.h> exists even on freestanding compilers.  */
48418
48419 #ifdef __STDC__
48420 # include <limits.h>
48421 #else
48422 # include <assert.h>
48423 #endif
48424
48425 #undef $ac_func
48426
48427 /* Override any gcc2 internal prototype to avoid an error.  */
48428 #ifdef __cplusplus
48429 extern "C"
48430 {
48431 #endif
48432 /* We use char because int might match the return type of a gcc2
48433    builtin and then its argument prototype would still apply.  */
48434 char $ac_func ();
48435 /* The GNU C library defines this for functions which it implements
48436     to always fail with ENOSYS.  Some functions are actually named
48437     something starting with __ and the normal name is an alias.  */
48438 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
48439 choke me
48440 #else
48441 char (*f) () = $ac_func;
48442 #endif
48443 #ifdef __cplusplus
48444 }
48445 #endif
48446
48447 int
48448 main ()
48449 {
48450 return f != $ac_func;
48451   ;
48452   return 0;
48453 }
48454 _ACEOF
48455 rm -f conftest.$ac_objext conftest$ac_exeext
48456 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48457   (eval $ac_link) 2>conftest.er1
48458   ac_status=$?
48459   grep -v '^ *+' conftest.er1 >conftest.err
48460   rm -f conftest.er1
48461   cat conftest.err >&5
48462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48463   (exit $ac_status); } &&
48464          { ac_try='test -z "$ac_c_werror_flag"
48465                          || test ! -s conftest.err'
48466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48467   (eval $ac_try) 2>&5
48468   ac_status=$?
48469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48470   (exit $ac_status); }; } &&
48471          { ac_try='test -s conftest$ac_exeext'
48472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48473   (eval $ac_try) 2>&5
48474   ac_status=$?
48475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48476   (exit $ac_status); }; }; then
48477   eval "$as_ac_var=yes"
48478 else
48479   echo "$as_me: failed program was:" >&5
48480 sed 's/^/| /' conftest.$ac_ext >&5
48481
48482 eval "$as_ac_var=no"
48483 fi
48484 rm -f conftest.err conftest.$ac_objext \
48485       conftest$ac_exeext conftest.$ac_ext
48486 fi
48487 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
48488 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
48489 if test `eval echo '${'$as_ac_var'}'` = yes; then
48490   cat >>confdefs.h <<_ACEOF
48491 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48492 _ACEOF
48493  ice_have_strerror=yes
48494 fi
48495 done
48496
48497 if test "${ice_have_strerror}" = yes; then
48498 echo "$as_me:$LINENO: checking for strerror declaration in string.h strings.h" >&5
48499 echo $ECHO_N "checking for strerror declaration in string.h strings.h... $ECHO_C" >&6
48500 if test "${ice_cv_have_strerror_decl+set}" = set; then
48501   echo $ECHO_N "(cached) $ECHO_C" >&6
48502 else
48503
48504 ice_cv_have_strerror_decl=no
48505 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
48506 ice_re_word='(^|[^a-zA-Z0-9_])'
48507 for header in string.h strings.h; do
48508 # Check for ordinary declaration
48509 cat >conftest.$ac_ext <<_ACEOF
48510 /* confdefs.h.  */
48511 _ACEOF
48512 cat confdefs.h >>conftest.$ac_ext
48513 cat >>conftest.$ac_ext <<_ACEOF
48514 /* end confdefs.h.  */
48515 #include <$header>
48516
48517 _ACEOF
48518 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48519   $EGREP "${ice_re_word}strerror[       ]*\(" >/dev/null 2>&1; then
48520   ice_cv_have_strerror_decl=yes
48521 fi
48522 rm -f conftest*
48523
48524 if test "$ice_cv_have_strerror_decl" = yes; then
48525         break
48526 fi
48527 # Check for "fixed" declaration like "getpid _PARAMS((int))"
48528 cat >conftest.$ac_ext <<_ACEOF
48529 /* confdefs.h.  */
48530 _ACEOF
48531 cat confdefs.h >>conftest.$ac_ext
48532 cat >>conftest.$ac_ext <<_ACEOF
48533 /* end confdefs.h.  */
48534 #include <$header>
48535
48536 _ACEOF
48537 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48538   $EGREP "${ice_re_word}strerror[       ]*$ice_re_params\(\(" >/dev/null 2>&1; then
48539   ice_cv_have_strerror_decl=yes
48540 fi
48541 rm -f conftest*
48542
48543 if test "$ice_cv_have_strerror_decl" = yes; then
48544         break
48545 fi
48546 done
48547
48548 fi
48549
48550 echo "$as_me:$LINENO: result: $ice_cv_have_strerror_decl" >&5
48551 echo "${ECHO_T}$ice_cv_have_strerror_decl" >&6
48552 if test "$ice_cv_have_strerror_decl" = yes; then
48553
48554 cat >>confdefs.h <<_ACEOF
48555 #define HAVE_STRERROR_DECL 1
48556 _ACEOF
48557
48558 fi
48559 fi
48560
48561
48562 for ac_func in strftime
48563 do
48564 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48565 echo "$as_me:$LINENO: checking for $ac_func" >&5
48566 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
48567 if eval "test \"\${$as_ac_var+set}\" = set"; then
48568   echo $ECHO_N "(cached) $ECHO_C" >&6
48569 else
48570   cat >conftest.$ac_ext <<_ACEOF
48571 /* confdefs.h.  */
48572 _ACEOF
48573 cat confdefs.h >>conftest.$ac_ext
48574 cat >>conftest.$ac_ext <<_ACEOF
48575 /* end confdefs.h.  */
48576 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48577    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
48578 #define $ac_func innocuous_$ac_func
48579
48580 /* System header to define __stub macros and hopefully few prototypes,
48581     which can conflict with char $ac_func (); below.
48582     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48583     <limits.h> exists even on freestanding compilers.  */
48584
48585 #ifdef __STDC__
48586 # include <limits.h>
48587 #else
48588 # include <assert.h>
48589 #endif
48590
48591 #undef $ac_func
48592
48593 /* Override any gcc2 internal prototype to avoid an error.  */
48594 #ifdef __cplusplus
48595 extern "C"
48596 {
48597 #endif
48598 /* We use char because int might match the return type of a gcc2
48599    builtin and then its argument prototype would still apply.  */
48600 char $ac_func ();
48601 /* The GNU C library defines this for functions which it implements
48602     to always fail with ENOSYS.  Some functions are actually named
48603     something starting with __ and the normal name is an alias.  */
48604 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
48605 choke me
48606 #else
48607 char (*f) () = $ac_func;
48608 #endif
48609 #ifdef __cplusplus
48610 }
48611 #endif
48612
48613 int
48614 main ()
48615 {
48616 return f != $ac_func;
48617   ;
48618   return 0;
48619 }
48620 _ACEOF
48621 rm -f conftest.$ac_objext conftest$ac_exeext
48622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48623   (eval $ac_link) 2>conftest.er1
48624   ac_status=$?
48625   grep -v '^ *+' conftest.er1 >conftest.err
48626   rm -f conftest.er1
48627   cat conftest.err >&5
48628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48629   (exit $ac_status); } &&
48630          { ac_try='test -z "$ac_c_werror_flag"
48631                          || test ! -s conftest.err'
48632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48633   (eval $ac_try) 2>&5
48634   ac_status=$?
48635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48636   (exit $ac_status); }; } &&
48637          { ac_try='test -s conftest$ac_exeext'
48638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48639   (eval $ac_try) 2>&5
48640   ac_status=$?
48641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48642   (exit $ac_status); }; }; then
48643   eval "$as_ac_var=yes"
48644 else
48645   echo "$as_me: failed program was:" >&5
48646 sed 's/^/| /' conftest.$ac_ext >&5
48647
48648 eval "$as_ac_var=no"
48649 fi
48650 rm -f conftest.err conftest.$ac_objext \
48651       conftest$ac_exeext conftest.$ac_ext
48652 fi
48653 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
48654 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
48655 if test `eval echo '${'$as_ac_var'}'` = yes; then
48656   cat >>confdefs.h <<_ACEOF
48657 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48658 _ACEOF
48659
48660 else
48661   # strftime is in -lintl on SCO UNIX.
48662 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
48663 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
48664 if test "${ac_cv_lib_intl_strftime+set}" = set; then
48665   echo $ECHO_N "(cached) $ECHO_C" >&6
48666 else
48667   ac_check_lib_save_LIBS=$LIBS
48668 LIBS="-lintl  $LIBS"
48669 cat >conftest.$ac_ext <<_ACEOF
48670 /* confdefs.h.  */
48671 _ACEOF
48672 cat confdefs.h >>conftest.$ac_ext
48673 cat >>conftest.$ac_ext <<_ACEOF
48674 /* end confdefs.h.  */
48675
48676 /* Override any gcc2 internal prototype to avoid an error.  */
48677 #ifdef __cplusplus
48678 extern "C"
48679 #endif
48680 /* We use char because int might match the return type of a gcc2
48681    builtin and then its argument prototype would still apply.  */
48682 char strftime ();
48683 int
48684 main ()
48685 {
48686 strftime ();
48687   ;
48688   return 0;
48689 }
48690 _ACEOF
48691 rm -f conftest.$ac_objext conftest$ac_exeext
48692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48693   (eval $ac_link) 2>conftest.er1
48694   ac_status=$?
48695   grep -v '^ *+' conftest.er1 >conftest.err
48696   rm -f conftest.er1
48697   cat conftest.err >&5
48698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48699   (exit $ac_status); } &&
48700          { ac_try='test -z "$ac_c_werror_flag"
48701                          || test ! -s conftest.err'
48702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48703   (eval $ac_try) 2>&5
48704   ac_status=$?
48705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48706   (exit $ac_status); }; } &&
48707          { ac_try='test -s conftest$ac_exeext'
48708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48709   (eval $ac_try) 2>&5
48710   ac_status=$?
48711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48712   (exit $ac_status); }; }; then
48713   ac_cv_lib_intl_strftime=yes
48714 else
48715   echo "$as_me: failed program was:" >&5
48716 sed 's/^/| /' conftest.$ac_ext >&5
48717
48718 ac_cv_lib_intl_strftime=no
48719 fi
48720 rm -f conftest.err conftest.$ac_objext \
48721       conftest$ac_exeext conftest.$ac_ext
48722 LIBS=$ac_check_lib_save_LIBS
48723 fi
48724 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
48725 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
48726 if test $ac_cv_lib_intl_strftime = yes; then
48727   cat >>confdefs.h <<\_ACEOF
48728 #define HAVE_STRFTIME 1
48729 _ACEOF
48730
48731 LIBS="-lintl $LIBS"
48732 fi
48733
48734 fi
48735 done
48736
48737
48738 for ac_func in strftime
48739 do
48740 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48741 echo "$as_me:$LINENO: checking for $ac_func" >&5
48742 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
48743 if eval "test \"\${$as_ac_var+set}\" = set"; then
48744   echo $ECHO_N "(cached) $ECHO_C" >&6
48745 else
48746   cat >conftest.$ac_ext <<_ACEOF
48747 /* confdefs.h.  */
48748 _ACEOF
48749 cat confdefs.h >>conftest.$ac_ext
48750 cat >>conftest.$ac_ext <<_ACEOF
48751 /* end confdefs.h.  */
48752 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48753    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
48754 #define $ac_func innocuous_$ac_func
48755
48756 /* System header to define __stub macros and hopefully few prototypes,
48757     which can conflict with char $ac_func (); below.
48758     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48759     <limits.h> exists even on freestanding compilers.  */
48760
48761 #ifdef __STDC__
48762 # include <limits.h>
48763 #else
48764 # include <assert.h>
48765 #endif
48766
48767 #undef $ac_func
48768
48769 /* Override any gcc2 internal prototype to avoid an error.  */
48770 #ifdef __cplusplus
48771 extern "C"
48772 {
48773 #endif
48774 /* We use char because int might match the return type of a gcc2
48775    builtin and then its argument prototype would still apply.  */
48776 char $ac_func ();
48777 /* The GNU C library defines this for functions which it implements
48778     to always fail with ENOSYS.  Some functions are actually named
48779     something starting with __ and the normal name is an alias.  */
48780 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
48781 choke me
48782 #else
48783 char (*f) () = $ac_func;
48784 #endif
48785 #ifdef __cplusplus
48786 }
48787 #endif
48788
48789 int
48790 main ()
48791 {
48792 return f != $ac_func;
48793   ;
48794   return 0;
48795 }
48796 _ACEOF
48797 rm -f conftest.$ac_objext conftest$ac_exeext
48798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48799   (eval $ac_link) 2>conftest.er1
48800   ac_status=$?
48801   grep -v '^ *+' conftest.er1 >conftest.err
48802   rm -f conftest.er1
48803   cat conftest.err >&5
48804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48805   (exit $ac_status); } &&
48806          { ac_try='test -z "$ac_c_werror_flag"
48807                          || test ! -s conftest.err'
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); }; } &&
48813          { ac_try='test -s conftest$ac_exeext'
48814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48815   (eval $ac_try) 2>&5
48816   ac_status=$?
48817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48818   (exit $ac_status); }; }; then
48819   eval "$as_ac_var=yes"
48820 else
48821   echo "$as_me: failed program was:" >&5
48822 sed 's/^/| /' conftest.$ac_ext >&5
48823
48824 eval "$as_ac_var=no"
48825 fi
48826 rm -f conftest.err conftest.$ac_objext \
48827       conftest$ac_exeext conftest.$ac_ext
48828 fi
48829 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
48830 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
48831 if test `eval echo '${'$as_ac_var'}'` = yes; then
48832   cat >>confdefs.h <<_ACEOF
48833 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48834 _ACEOF
48835
48836 else
48837   case $LIBOBJS in
48838     "$ac_func.$ac_objext"   | \
48839   *" $ac_func.$ac_objext"   | \
48840     "$ac_func.$ac_objext "* | \
48841   *" $ac_func.$ac_objext "* ) ;;
48842   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
48843 esac
48844
48845 fi
48846 done
48847
48848
48849
48850 ice_have_strftime=no
48851
48852 for ac_func in strftime
48853 do
48854 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48855 echo "$as_me:$LINENO: checking for $ac_func" >&5
48856 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
48857 if eval "test \"\${$as_ac_var+set}\" = set"; then
48858   echo $ECHO_N "(cached) $ECHO_C" >&6
48859 else
48860   cat >conftest.$ac_ext <<_ACEOF
48861 /* confdefs.h.  */
48862 _ACEOF
48863 cat confdefs.h >>conftest.$ac_ext
48864 cat >>conftest.$ac_ext <<_ACEOF
48865 /* end confdefs.h.  */
48866 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48867    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
48868 #define $ac_func innocuous_$ac_func
48869
48870 /* System header to define __stub macros and hopefully few prototypes,
48871     which can conflict with char $ac_func (); below.
48872     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48873     <limits.h> exists even on freestanding compilers.  */
48874
48875 #ifdef __STDC__
48876 # include <limits.h>
48877 #else
48878 # include <assert.h>
48879 #endif
48880
48881 #undef $ac_func
48882
48883 /* Override any gcc2 internal prototype to avoid an error.  */
48884 #ifdef __cplusplus
48885 extern "C"
48886 {
48887 #endif
48888 /* We use char because int might match the return type of a gcc2
48889    builtin and then its argument prototype would still apply.  */
48890 char $ac_func ();
48891 /* The GNU C library defines this for functions which it implements
48892     to always fail with ENOSYS.  Some functions are actually named
48893     something starting with __ and the normal name is an alias.  */
48894 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
48895 choke me
48896 #else
48897 char (*f) () = $ac_func;
48898 #endif
48899 #ifdef __cplusplus
48900 }
48901 #endif
48902
48903 int
48904 main ()
48905 {
48906 return f != $ac_func;
48907   ;
48908   return 0;
48909 }
48910 _ACEOF
48911 rm -f conftest.$ac_objext conftest$ac_exeext
48912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48913   (eval $ac_link) 2>conftest.er1
48914   ac_status=$?
48915   grep -v '^ *+' conftest.er1 >conftest.err
48916   rm -f conftest.er1
48917   cat conftest.err >&5
48918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48919   (exit $ac_status); } &&
48920          { ac_try='test -z "$ac_c_werror_flag"
48921                          || test ! -s conftest.err'
48922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48923   (eval $ac_try) 2>&5
48924   ac_status=$?
48925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48926   (exit $ac_status); }; } &&
48927          { ac_try='test -s conftest$ac_exeext'
48928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48929   (eval $ac_try) 2>&5
48930   ac_status=$?
48931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48932   (exit $ac_status); }; }; then
48933   eval "$as_ac_var=yes"
48934 else
48935   echo "$as_me: failed program was:" >&5
48936 sed 's/^/| /' conftest.$ac_ext >&5
48937
48938 eval "$as_ac_var=no"
48939 fi
48940 rm -f conftest.err conftest.$ac_objext \
48941       conftest$ac_exeext conftest.$ac_ext
48942 fi
48943 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
48944 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
48945 if test `eval echo '${'$as_ac_var'}'` = yes; then
48946   cat >>confdefs.h <<_ACEOF
48947 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48948 _ACEOF
48949  ice_have_strftime=yes
48950 fi
48951 done
48952
48953 if test "${ice_have_strftime}" = yes; then
48954 echo "$as_me:$LINENO: checking for strftime declaration in time.h sys/time.h" >&5
48955 echo $ECHO_N "checking for strftime declaration in time.h sys/time.h... $ECHO_C" >&6
48956 if test "${ice_cv_have_strftime_decl+set}" = set; then
48957   echo $ECHO_N "(cached) $ECHO_C" >&6
48958 else
48959
48960 ice_cv_have_strftime_decl=no
48961 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
48962 ice_re_word='(^|[^a-zA-Z0-9_])'
48963 for header in time.h sys/time.h; do
48964 # Check for ordinary declaration
48965 cat >conftest.$ac_ext <<_ACEOF
48966 /* confdefs.h.  */
48967 _ACEOF
48968 cat confdefs.h >>conftest.$ac_ext
48969 cat >>conftest.$ac_ext <<_ACEOF
48970 /* end confdefs.h.  */
48971 #include <$header>
48972
48973 _ACEOF
48974 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48975   $EGREP "${ice_re_word}strftime[       ]*\(" >/dev/null 2>&1; then
48976   ice_cv_have_strftime_decl=yes
48977 fi
48978 rm -f conftest*
48979
48980 if test "$ice_cv_have_strftime_decl" = yes; then
48981         break
48982 fi
48983 # Check for "fixed" declaration like "getpid _PARAMS((int))"
48984 cat >conftest.$ac_ext <<_ACEOF
48985 /* confdefs.h.  */
48986 _ACEOF
48987 cat confdefs.h >>conftest.$ac_ext
48988 cat >>conftest.$ac_ext <<_ACEOF
48989 /* end confdefs.h.  */
48990 #include <$header>
48991
48992 _ACEOF
48993 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48994   $EGREP "${ice_re_word}strftime[       ]*$ice_re_params\(\(" >/dev/null 2>&1; then
48995   ice_cv_have_strftime_decl=yes
48996 fi
48997 rm -f conftest*
48998
48999 if test "$ice_cv_have_strftime_decl" = yes; then
49000         break
49001 fi
49002 done
49003
49004 fi
49005
49006 echo "$as_me:$LINENO: result: $ice_cv_have_strftime_decl" >&5
49007 echo "${ECHO_T}$ice_cv_have_strftime_decl" >&6
49008 if test "$ice_cv_have_strftime_decl" = yes; then
49009
49010 cat >>confdefs.h <<_ACEOF
49011 #define HAVE_STRFTIME_DECL 1
49012 _ACEOF
49013
49014 fi
49015 fi
49016
49017
49018 for ac_func in strncasecmp
49019 do
49020 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49021 echo "$as_me:$LINENO: checking for $ac_func" >&5
49022 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
49023 if eval "test \"\${$as_ac_var+set}\" = set"; then
49024   echo $ECHO_N "(cached) $ECHO_C" >&6
49025 else
49026   cat >conftest.$ac_ext <<_ACEOF
49027 /* confdefs.h.  */
49028 _ACEOF
49029 cat confdefs.h >>conftest.$ac_ext
49030 cat >>conftest.$ac_ext <<_ACEOF
49031 /* end confdefs.h.  */
49032 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
49033    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
49034 #define $ac_func innocuous_$ac_func
49035
49036 /* System header to define __stub macros and hopefully few prototypes,
49037     which can conflict with char $ac_func (); below.
49038     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49039     <limits.h> exists even on freestanding compilers.  */
49040
49041 #ifdef __STDC__
49042 # include <limits.h>
49043 #else
49044 # include <assert.h>
49045 #endif
49046
49047 #undef $ac_func
49048
49049 /* Override any gcc2 internal prototype to avoid an error.  */
49050 #ifdef __cplusplus
49051 extern "C"
49052 {
49053 #endif
49054 /* We use char because int might match the return type of a gcc2
49055    builtin and then its argument prototype would still apply.  */
49056 char $ac_func ();
49057 /* The GNU C library defines this for functions which it implements
49058     to always fail with ENOSYS.  Some functions are actually named
49059     something starting with __ and the normal name is an alias.  */
49060 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
49061 choke me
49062 #else
49063 char (*f) () = $ac_func;
49064 #endif
49065 #ifdef __cplusplus
49066 }
49067 #endif
49068
49069 int
49070 main ()
49071 {
49072 return f != $ac_func;
49073   ;
49074   return 0;
49075 }
49076 _ACEOF
49077 rm -f conftest.$ac_objext conftest$ac_exeext
49078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49079   (eval $ac_link) 2>conftest.er1
49080   ac_status=$?
49081   grep -v '^ *+' conftest.er1 >conftest.err
49082   rm -f conftest.er1
49083   cat conftest.err >&5
49084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49085   (exit $ac_status); } &&
49086          { ac_try='test -z "$ac_c_werror_flag"
49087                          || test ! -s conftest.err'
49088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49089   (eval $ac_try) 2>&5
49090   ac_status=$?
49091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49092   (exit $ac_status); }; } &&
49093          { ac_try='test -s conftest$ac_exeext'
49094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49095   (eval $ac_try) 2>&5
49096   ac_status=$?
49097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49098   (exit $ac_status); }; }; then
49099   eval "$as_ac_var=yes"
49100 else
49101   echo "$as_me: failed program was:" >&5
49102 sed 's/^/| /' conftest.$ac_ext >&5
49103
49104 eval "$as_ac_var=no"
49105 fi
49106 rm -f conftest.err conftest.$ac_objext \
49107       conftest$ac_exeext conftest.$ac_ext
49108 fi
49109 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
49110 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
49111 if test `eval echo '${'$as_ac_var'}'` = yes; then
49112   cat >>confdefs.h <<_ACEOF
49113 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49114 _ACEOF
49115
49116 else
49117   case $LIBOBJS in
49118     "$ac_func.$ac_objext"   | \
49119   *" $ac_func.$ac_objext"   | \
49120     "$ac_func.$ac_objext "* | \
49121   *" $ac_func.$ac_objext "* ) ;;
49122   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
49123 esac
49124
49125 fi
49126 done
49127
49128
49129
49130 ice_have_strncasecmp=no
49131
49132 for ac_func in strncasecmp
49133 do
49134 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49135 echo "$as_me:$LINENO: checking for $ac_func" >&5
49136 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
49137 if eval "test \"\${$as_ac_var+set}\" = set"; then
49138   echo $ECHO_N "(cached) $ECHO_C" >&6
49139 else
49140   cat >conftest.$ac_ext <<_ACEOF
49141 /* confdefs.h.  */
49142 _ACEOF
49143 cat confdefs.h >>conftest.$ac_ext
49144 cat >>conftest.$ac_ext <<_ACEOF
49145 /* end confdefs.h.  */
49146 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
49147    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
49148 #define $ac_func innocuous_$ac_func
49149
49150 /* System header to define __stub macros and hopefully few prototypes,
49151     which can conflict with char $ac_func (); below.
49152     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49153     <limits.h> exists even on freestanding compilers.  */
49154
49155 #ifdef __STDC__
49156 # include <limits.h>
49157 #else
49158 # include <assert.h>
49159 #endif
49160
49161 #undef $ac_func
49162
49163 /* Override any gcc2 internal prototype to avoid an error.  */
49164 #ifdef __cplusplus
49165 extern "C"
49166 {
49167 #endif
49168 /* We use char because int might match the return type of a gcc2
49169    builtin and then its argument prototype would still apply.  */
49170 char $ac_func ();
49171 /* The GNU C library defines this for functions which it implements
49172     to always fail with ENOSYS.  Some functions are actually named
49173     something starting with __ and the normal name is an alias.  */
49174 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
49175 choke me
49176 #else
49177 char (*f) () = $ac_func;
49178 #endif
49179 #ifdef __cplusplus
49180 }
49181 #endif
49182
49183 int
49184 main ()
49185 {
49186 return f != $ac_func;
49187   ;
49188   return 0;
49189 }
49190 _ACEOF
49191 rm -f conftest.$ac_objext conftest$ac_exeext
49192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49193   (eval $ac_link) 2>conftest.er1
49194   ac_status=$?
49195   grep -v '^ *+' conftest.er1 >conftest.err
49196   rm -f conftest.er1
49197   cat conftest.err >&5
49198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49199   (exit $ac_status); } &&
49200          { ac_try='test -z "$ac_c_werror_flag"
49201                          || test ! -s conftest.err'
49202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49203   (eval $ac_try) 2>&5
49204   ac_status=$?
49205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49206   (exit $ac_status); }; } &&
49207          { ac_try='test -s conftest$ac_exeext'
49208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49209   (eval $ac_try) 2>&5
49210   ac_status=$?
49211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49212   (exit $ac_status); }; }; then
49213   eval "$as_ac_var=yes"
49214 else
49215   echo "$as_me: failed program was:" >&5
49216 sed 's/^/| /' conftest.$ac_ext >&5
49217
49218 eval "$as_ac_var=no"
49219 fi
49220 rm -f conftest.err conftest.$ac_objext \
49221       conftest$ac_exeext conftest.$ac_ext
49222 fi
49223 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
49224 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
49225 if test `eval echo '${'$as_ac_var'}'` = yes; then
49226   cat >>confdefs.h <<_ACEOF
49227 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49228 _ACEOF
49229  ice_have_strncasecmp=yes
49230 fi
49231 done
49232
49233 if test "${ice_have_strncasecmp}" = yes; then
49234 echo "$as_me:$LINENO: checking for strncasecmp declaration in string.h strings.h" >&5
49235 echo $ECHO_N "checking for strncasecmp declaration in string.h strings.h... $ECHO_C" >&6
49236 if test "${ice_cv_have_strncasecmp_decl+set}" = set; then
49237   echo $ECHO_N "(cached) $ECHO_C" >&6
49238 else
49239
49240 ice_cv_have_strncasecmp_decl=no
49241 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
49242 ice_re_word='(^|[^a-zA-Z0-9_])'
49243 for header in string.h strings.h; do
49244 # Check for ordinary declaration
49245 cat >conftest.$ac_ext <<_ACEOF
49246 /* confdefs.h.  */
49247 _ACEOF
49248 cat confdefs.h >>conftest.$ac_ext
49249 cat >>conftest.$ac_ext <<_ACEOF
49250 /* end confdefs.h.  */
49251 #include <$header>
49252
49253 _ACEOF
49254 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
49255   $EGREP "${ice_re_word}strncasecmp[    ]*\(" >/dev/null 2>&1; then
49256   ice_cv_have_strncasecmp_decl=yes
49257 fi
49258 rm -f conftest*
49259
49260 if test "$ice_cv_have_strncasecmp_decl" = yes; then
49261         break
49262 fi
49263 # Check for "fixed" declaration like "getpid _PARAMS((int))"
49264 cat >conftest.$ac_ext <<_ACEOF
49265 /* confdefs.h.  */
49266 _ACEOF
49267 cat confdefs.h >>conftest.$ac_ext
49268 cat >>conftest.$ac_ext <<_ACEOF
49269 /* end confdefs.h.  */
49270 #include <$header>
49271
49272 _ACEOF
49273 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
49274   $EGREP "${ice_re_word}strncasecmp[    ]*$ice_re_params\(\(" >/dev/null 2>&1; then
49275   ice_cv_have_strncasecmp_decl=yes
49276 fi
49277 rm -f conftest*
49278
49279 if test "$ice_cv_have_strncasecmp_decl" = yes; then
49280         break
49281 fi
49282 done
49283
49284 fi
49285
49286 echo "$as_me:$LINENO: result: $ice_cv_have_strncasecmp_decl" >&5
49287 echo "${ECHO_T}$ice_cv_have_strncasecmp_decl" >&6
49288 if test "$ice_cv_have_strncasecmp_decl" = yes; then
49289
49290 cat >>confdefs.h <<_ACEOF
49291 #define HAVE_STRNCASECMP_DECL 1
49292 _ACEOF
49293
49294 fi
49295 fi
49296
49297
49298 for ac_func in strstr
49299 do
49300 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49301 echo "$as_me:$LINENO: checking for $ac_func" >&5
49302 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
49303 if eval "test \"\${$as_ac_var+set}\" = set"; then
49304   echo $ECHO_N "(cached) $ECHO_C" >&6
49305 else
49306   cat >conftest.$ac_ext <<_ACEOF
49307 /* confdefs.h.  */
49308 _ACEOF
49309 cat confdefs.h >>conftest.$ac_ext
49310 cat >>conftest.$ac_ext <<_ACEOF
49311 /* end confdefs.h.  */
49312 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
49313    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
49314 #define $ac_func innocuous_$ac_func
49315
49316 /* System header to define __stub macros and hopefully few prototypes,
49317     which can conflict with char $ac_func (); below.
49318     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49319     <limits.h> exists even on freestanding compilers.  */
49320
49321 #ifdef __STDC__
49322 # include <limits.h>
49323 #else
49324 # include <assert.h>
49325 #endif
49326
49327 #undef $ac_func
49328
49329 /* Override any gcc2 internal prototype to avoid an error.  */
49330 #ifdef __cplusplus
49331 extern "C"
49332 {
49333 #endif
49334 /* We use char because int might match the return type of a gcc2
49335    builtin and then its argument prototype would still apply.  */
49336 char $ac_func ();
49337 /* The GNU C library defines this for functions which it implements
49338     to always fail with ENOSYS.  Some functions are actually named
49339     something starting with __ and the normal name is an alias.  */
49340 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
49341 choke me
49342 #else
49343 char (*f) () = $ac_func;
49344 #endif
49345 #ifdef __cplusplus
49346 }
49347 #endif
49348
49349 int
49350 main ()
49351 {
49352 return f != $ac_func;
49353   ;
49354   return 0;
49355 }
49356 _ACEOF
49357 rm -f conftest.$ac_objext conftest$ac_exeext
49358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49359   (eval $ac_link) 2>conftest.er1
49360   ac_status=$?
49361   grep -v '^ *+' conftest.er1 >conftest.err
49362   rm -f conftest.er1
49363   cat conftest.err >&5
49364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49365   (exit $ac_status); } &&
49366          { ac_try='test -z "$ac_c_werror_flag"
49367                          || test ! -s conftest.err'
49368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49369   (eval $ac_try) 2>&5
49370   ac_status=$?
49371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49372   (exit $ac_status); }; } &&
49373          { ac_try='test -s conftest$ac_exeext'
49374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49375   (eval $ac_try) 2>&5
49376   ac_status=$?
49377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49378   (exit $ac_status); }; }; then
49379   eval "$as_ac_var=yes"
49380 else
49381   echo "$as_me: failed program was:" >&5
49382 sed 's/^/| /' conftest.$ac_ext >&5
49383
49384 eval "$as_ac_var=no"
49385 fi
49386 rm -f conftest.err conftest.$ac_objext \
49387       conftest$ac_exeext conftest.$ac_ext
49388 fi
49389 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
49390 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
49391 if test `eval echo '${'$as_ac_var'}'` = yes; then
49392   cat >>confdefs.h <<_ACEOF
49393 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49394 _ACEOF
49395
49396 else
49397   case $LIBOBJS in
49398     "$ac_func.$ac_objext"   | \
49399   *" $ac_func.$ac_objext"   | \
49400     "$ac_func.$ac_objext "* | \
49401   *" $ac_func.$ac_objext "* ) ;;
49402   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
49403 esac
49404
49405 fi
49406 done
49407
49408
49409
49410 ice_have_syslog=no
49411
49412 for ac_func in syslog
49413 do
49414 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49415 echo "$as_me:$LINENO: checking for $ac_func" >&5
49416 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
49417 if eval "test \"\${$as_ac_var+set}\" = set"; then
49418   echo $ECHO_N "(cached) $ECHO_C" >&6
49419 else
49420   cat >conftest.$ac_ext <<_ACEOF
49421 /* confdefs.h.  */
49422 _ACEOF
49423 cat confdefs.h >>conftest.$ac_ext
49424 cat >>conftest.$ac_ext <<_ACEOF
49425 /* end confdefs.h.  */
49426 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
49427    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
49428 #define $ac_func innocuous_$ac_func
49429
49430 /* System header to define __stub macros and hopefully few prototypes,
49431     which can conflict with char $ac_func (); below.
49432     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49433     <limits.h> exists even on freestanding compilers.  */
49434
49435 #ifdef __STDC__
49436 # include <limits.h>
49437 #else
49438 # include <assert.h>
49439 #endif
49440
49441 #undef $ac_func
49442
49443 /* Override any gcc2 internal prototype to avoid an error.  */
49444 #ifdef __cplusplus
49445 extern "C"
49446 {
49447 #endif
49448 /* We use char because int might match the return type of a gcc2
49449    builtin and then its argument prototype would still apply.  */
49450 char $ac_func ();
49451 /* The GNU C library defines this for functions which it implements
49452     to always fail with ENOSYS.  Some functions are actually named
49453     something starting with __ and the normal name is an alias.  */
49454 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
49455 choke me
49456 #else
49457 char (*f) () = $ac_func;
49458 #endif
49459 #ifdef __cplusplus
49460 }
49461 #endif
49462
49463 int
49464 main ()
49465 {
49466 return f != $ac_func;
49467   ;
49468   return 0;
49469 }
49470 _ACEOF
49471 rm -f conftest.$ac_objext conftest$ac_exeext
49472 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49473   (eval $ac_link) 2>conftest.er1
49474   ac_status=$?
49475   grep -v '^ *+' conftest.er1 >conftest.err
49476   rm -f conftest.er1
49477   cat conftest.err >&5
49478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49479   (exit $ac_status); } &&
49480          { ac_try='test -z "$ac_c_werror_flag"
49481                          || test ! -s conftest.err'
49482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49483   (eval $ac_try) 2>&5
49484   ac_status=$?
49485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49486   (exit $ac_status); }; } &&
49487          { ac_try='test -s conftest$ac_exeext'
49488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49489   (eval $ac_try) 2>&5
49490   ac_status=$?
49491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49492   (exit $ac_status); }; }; then
49493   eval "$as_ac_var=yes"
49494 else
49495   echo "$as_me: failed program was:" >&5
49496 sed 's/^/| /' conftest.$ac_ext >&5
49497
49498 eval "$as_ac_var=no"
49499 fi
49500 rm -f conftest.err conftest.$ac_objext \
49501       conftest$ac_exeext conftest.$ac_ext
49502 fi
49503 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
49504 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
49505 if test `eval echo '${'$as_ac_var'}'` = yes; then
49506   cat >>confdefs.h <<_ACEOF
49507 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49508 _ACEOF
49509  ice_have_syslog=yes
49510 fi
49511 done
49512
49513 if test "${ice_have_syslog}" = yes; then
49514 echo "$as_me:$LINENO: checking for syslog declaration in syslog.h" >&5
49515 echo $ECHO_N "checking for syslog declaration in syslog.h... $ECHO_C" >&6
49516 if test "${ice_cv_have_syslog_decl+set}" = set; then
49517   echo $ECHO_N "(cached) $ECHO_C" >&6
49518 else
49519
49520 ice_cv_have_syslog_decl=no
49521 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
49522 ice_re_word='(^|[^a-zA-Z0-9_])'
49523 for header in syslog.h; do
49524 # Check for ordinary declaration
49525 cat >conftest.$ac_ext <<_ACEOF
49526 /* confdefs.h.  */
49527 _ACEOF
49528 cat confdefs.h >>conftest.$ac_ext
49529 cat >>conftest.$ac_ext <<_ACEOF
49530 /* end confdefs.h.  */
49531 #include <$header>
49532
49533 _ACEOF
49534 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
49535   $EGREP "${ice_re_word}syslog[         ]*\(" >/dev/null 2>&1; then
49536   ice_cv_have_syslog_decl=yes
49537 fi
49538 rm -f conftest*
49539
49540 if test "$ice_cv_have_syslog_decl" = yes; then
49541         break
49542 fi
49543 # Check for "fixed" declaration like "getpid _PARAMS((int))"
49544 cat >conftest.$ac_ext <<_ACEOF
49545 /* confdefs.h.  */
49546 _ACEOF
49547 cat confdefs.h >>conftest.$ac_ext
49548 cat >>conftest.$ac_ext <<_ACEOF
49549 /* end confdefs.h.  */
49550 #include <$header>
49551
49552 _ACEOF
49553 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
49554   $EGREP "${ice_re_word}syslog[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
49555   ice_cv_have_syslog_decl=yes
49556 fi
49557 rm -f conftest*
49558
49559 if test "$ice_cv_have_syslog_decl" = yes; then
49560         break
49561 fi
49562 done
49563
49564 fi
49565
49566 echo "$as_me:$LINENO: result: $ice_cv_have_syslog_decl" >&5
49567 echo "${ECHO_T}$ice_cv_have_syslog_decl" >&6
49568 if test "$ice_cv_have_syslog_decl" = yes; then
49569
49570 cat >>confdefs.h <<_ACEOF
49571 #define HAVE_SYSLOG_DECL 1
49572 _ACEOF
49573
49574 fi
49575 fi
49576
49577
49578 ice_have_system=no
49579
49580 for ac_func in system
49581 do
49582 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49583 echo "$as_me:$LINENO: checking for $ac_func" >&5
49584 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
49585 if eval "test \"\${$as_ac_var+set}\" = set"; then
49586   echo $ECHO_N "(cached) $ECHO_C" >&6
49587 else
49588   cat >conftest.$ac_ext <<_ACEOF
49589 /* confdefs.h.  */
49590 _ACEOF
49591 cat confdefs.h >>conftest.$ac_ext
49592 cat >>conftest.$ac_ext <<_ACEOF
49593 /* end confdefs.h.  */
49594 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
49595    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
49596 #define $ac_func innocuous_$ac_func
49597
49598 /* System header to define __stub macros and hopefully few prototypes,
49599     which can conflict with char $ac_func (); below.
49600     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49601     <limits.h> exists even on freestanding compilers.  */
49602
49603 #ifdef __STDC__
49604 # include <limits.h>
49605 #else
49606 # include <assert.h>
49607 #endif
49608
49609 #undef $ac_func
49610
49611 /* Override any gcc2 internal prototype to avoid an error.  */
49612 #ifdef __cplusplus
49613 extern "C"
49614 {
49615 #endif
49616 /* We use char because int might match the return type of a gcc2
49617    builtin and then its argument prototype would still apply.  */
49618 char $ac_func ();
49619 /* The GNU C library defines this for functions which it implements
49620     to always fail with ENOSYS.  Some functions are actually named
49621     something starting with __ and the normal name is an alias.  */
49622 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
49623 choke me
49624 #else
49625 char (*f) () = $ac_func;
49626 #endif
49627 #ifdef __cplusplus
49628 }
49629 #endif
49630
49631 int
49632 main ()
49633 {
49634 return f != $ac_func;
49635   ;
49636   return 0;
49637 }
49638 _ACEOF
49639 rm -f conftest.$ac_objext conftest$ac_exeext
49640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49641   (eval $ac_link) 2>conftest.er1
49642   ac_status=$?
49643   grep -v '^ *+' conftest.er1 >conftest.err
49644   rm -f conftest.er1
49645   cat conftest.err >&5
49646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49647   (exit $ac_status); } &&
49648          { ac_try='test -z "$ac_c_werror_flag"
49649                          || test ! -s conftest.err'
49650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49651   (eval $ac_try) 2>&5
49652   ac_status=$?
49653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49654   (exit $ac_status); }; } &&
49655          { ac_try='test -s conftest$ac_exeext'
49656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49657   (eval $ac_try) 2>&5
49658   ac_status=$?
49659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49660   (exit $ac_status); }; }; then
49661   eval "$as_ac_var=yes"
49662 else
49663   echo "$as_me: failed program was:" >&5
49664 sed 's/^/| /' conftest.$ac_ext >&5
49665
49666 eval "$as_ac_var=no"
49667 fi
49668 rm -f conftest.err conftest.$ac_objext \
49669       conftest$ac_exeext conftest.$ac_ext
49670 fi
49671 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
49672 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
49673 if test `eval echo '${'$as_ac_var'}'` = yes; then
49674   cat >>confdefs.h <<_ACEOF
49675 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49676 _ACEOF
49677  ice_have_system=yes
49678 fi
49679 done
49680
49681 if test "${ice_have_system}" = yes; then
49682 echo "$as_me:$LINENO: checking for system declaration in stdlib.h" >&5
49683 echo $ECHO_N "checking for system declaration in stdlib.h... $ECHO_C" >&6
49684 if test "${ice_cv_have_system_decl+set}" = set; then
49685   echo $ECHO_N "(cached) $ECHO_C" >&6
49686 else
49687
49688 ice_cv_have_system_decl=no
49689 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
49690 ice_re_word='(^|[^a-zA-Z0-9_])'
49691 for header in stdlib.h; do
49692 # Check for ordinary declaration
49693 cat >conftest.$ac_ext <<_ACEOF
49694 /* confdefs.h.  */
49695 _ACEOF
49696 cat confdefs.h >>conftest.$ac_ext
49697 cat >>conftest.$ac_ext <<_ACEOF
49698 /* end confdefs.h.  */
49699 #include <$header>
49700
49701 _ACEOF
49702 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
49703   $EGREP "${ice_re_word}system[         ]*\(" >/dev/null 2>&1; then
49704   ice_cv_have_system_decl=yes
49705 fi
49706 rm -f conftest*
49707
49708 if test "$ice_cv_have_system_decl" = yes; then
49709         break
49710 fi
49711 # Check for "fixed" declaration like "getpid _PARAMS((int))"
49712 cat >conftest.$ac_ext <<_ACEOF
49713 /* confdefs.h.  */
49714 _ACEOF
49715 cat confdefs.h >>conftest.$ac_ext
49716 cat >>conftest.$ac_ext <<_ACEOF
49717 /* end confdefs.h.  */
49718 #include <$header>
49719
49720 _ACEOF
49721 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
49722   $EGREP "${ice_re_word}system[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
49723   ice_cv_have_system_decl=yes
49724 fi
49725 rm -f conftest*
49726
49727 if test "$ice_cv_have_system_decl" = yes; then
49728         break
49729 fi
49730 done
49731
49732 fi
49733
49734 echo "$as_me:$LINENO: result: $ice_cv_have_system_decl" >&5
49735 echo "${ECHO_T}$ice_cv_have_system_decl" >&6
49736 if test "$ice_cv_have_system_decl" = yes; then
49737
49738 cat >>confdefs.h <<_ACEOF
49739 #define HAVE_SYSTEM_DECL 1
49740 _ACEOF
49741
49742 fi
49743 fi
49744
49745
49746 ice_have_time=no
49747
49748 for ac_func in time
49749 do
49750 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49751 echo "$as_me:$LINENO: checking for $ac_func" >&5
49752 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
49753 if eval "test \"\${$as_ac_var+set}\" = set"; then
49754   echo $ECHO_N "(cached) $ECHO_C" >&6
49755 else
49756   cat >conftest.$ac_ext <<_ACEOF
49757 /* confdefs.h.  */
49758 _ACEOF
49759 cat confdefs.h >>conftest.$ac_ext
49760 cat >>conftest.$ac_ext <<_ACEOF
49761 /* end confdefs.h.  */
49762 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
49763    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
49764 #define $ac_func innocuous_$ac_func
49765
49766 /* System header to define __stub macros and hopefully few prototypes,
49767     which can conflict with char $ac_func (); below.
49768     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49769     <limits.h> exists even on freestanding compilers.  */
49770
49771 #ifdef __STDC__
49772 # include <limits.h>
49773 #else
49774 # include <assert.h>
49775 #endif
49776
49777 #undef $ac_func
49778
49779 /* Override any gcc2 internal prototype to avoid an error.  */
49780 #ifdef __cplusplus
49781 extern "C"
49782 {
49783 #endif
49784 /* We use char because int might match the return type of a gcc2
49785    builtin and then its argument prototype would still apply.  */
49786 char $ac_func ();
49787 /* The GNU C library defines this for functions which it implements
49788     to always fail with ENOSYS.  Some functions are actually named
49789     something starting with __ and the normal name is an alias.  */
49790 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
49791 choke me
49792 #else
49793 char (*f) () = $ac_func;
49794 #endif
49795 #ifdef __cplusplus
49796 }
49797 #endif
49798
49799 int
49800 main ()
49801 {
49802 return f != $ac_func;
49803   ;
49804   return 0;
49805 }
49806 _ACEOF
49807 rm -f conftest.$ac_objext conftest$ac_exeext
49808 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49809   (eval $ac_link) 2>conftest.er1
49810   ac_status=$?
49811   grep -v '^ *+' conftest.er1 >conftest.err
49812   rm -f conftest.er1
49813   cat conftest.err >&5
49814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49815   (exit $ac_status); } &&
49816          { ac_try='test -z "$ac_c_werror_flag"
49817                          || test ! -s conftest.err'
49818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49819   (eval $ac_try) 2>&5
49820   ac_status=$?
49821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49822   (exit $ac_status); }; } &&
49823          { ac_try='test -s conftest$ac_exeext'
49824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49825   (eval $ac_try) 2>&5
49826   ac_status=$?
49827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49828   (exit $ac_status); }; }; then
49829   eval "$as_ac_var=yes"
49830 else
49831   echo "$as_me: failed program was:" >&5
49832 sed 's/^/| /' conftest.$ac_ext >&5
49833
49834 eval "$as_ac_var=no"
49835 fi
49836 rm -f conftest.err conftest.$ac_objext \
49837       conftest$ac_exeext conftest.$ac_ext
49838 fi
49839 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
49840 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
49841 if test `eval echo '${'$as_ac_var'}'` = yes; then
49842   cat >>confdefs.h <<_ACEOF
49843 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49844 _ACEOF
49845  ice_have_time=yes
49846 fi
49847 done
49848
49849 if test "${ice_have_time}" = yes; then
49850 echo "$as_me:$LINENO: checking for time declaration in time.h sys/time.h" >&5
49851 echo $ECHO_N "checking for time declaration in time.h sys/time.h... $ECHO_C" >&6
49852 if test "${ice_cv_have_time_decl+set}" = set; then
49853   echo $ECHO_N "(cached) $ECHO_C" >&6
49854 else
49855
49856 ice_cv_have_time_decl=no
49857 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
49858 ice_re_word='(^|[^a-zA-Z0-9_])'
49859 for header in time.h sys/time.h; do
49860 # Check for ordinary declaration
49861 cat >conftest.$ac_ext <<_ACEOF
49862 /* confdefs.h.  */
49863 _ACEOF
49864 cat confdefs.h >>conftest.$ac_ext
49865 cat >>conftest.$ac_ext <<_ACEOF
49866 /* end confdefs.h.  */
49867 #include <$header>
49868
49869 _ACEOF
49870 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
49871   $EGREP "${ice_re_word}time[   ]*\(" >/dev/null 2>&1; then
49872   ice_cv_have_time_decl=yes
49873 fi
49874 rm -f conftest*
49875
49876 if test "$ice_cv_have_time_decl" = yes; then
49877         break
49878 fi
49879 # Check for "fixed" declaration like "getpid _PARAMS((int))"
49880 cat >conftest.$ac_ext <<_ACEOF
49881 /* confdefs.h.  */
49882 _ACEOF
49883 cat confdefs.h >>conftest.$ac_ext
49884 cat >>conftest.$ac_ext <<_ACEOF
49885 /* end confdefs.h.  */
49886 #include <$header>
49887
49888 _ACEOF
49889 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
49890   $EGREP "${ice_re_word}time[   ]*$ice_re_params\(\(" >/dev/null 2>&1; then
49891   ice_cv_have_time_decl=yes
49892 fi
49893 rm -f conftest*
49894
49895 if test "$ice_cv_have_time_decl" = yes; then
49896         break
49897 fi
49898 done
49899
49900 fi
49901
49902 echo "$as_me:$LINENO: result: $ice_cv_have_time_decl" >&5
49903 echo "${ECHO_T}$ice_cv_have_time_decl" >&6
49904 if test "$ice_cv_have_time_decl" = yes; then
49905
49906 cat >>confdefs.h <<_ACEOF
49907 #define HAVE_TIME_DECL 1
49908 _ACEOF
49909
49910 fi
49911 fi
49912
49913
49914 ice_have_tolower=no
49915
49916 for ac_func in tolower
49917 do
49918 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49919 echo "$as_me:$LINENO: checking for $ac_func" >&5
49920 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
49921 if eval "test \"\${$as_ac_var+set}\" = set"; then
49922   echo $ECHO_N "(cached) $ECHO_C" >&6
49923 else
49924   cat >conftest.$ac_ext <<_ACEOF
49925 /* confdefs.h.  */
49926 _ACEOF
49927 cat confdefs.h >>conftest.$ac_ext
49928 cat >>conftest.$ac_ext <<_ACEOF
49929 /* end confdefs.h.  */
49930 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
49931    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
49932 #define $ac_func innocuous_$ac_func
49933
49934 /* System header to define __stub macros and hopefully few prototypes,
49935     which can conflict with char $ac_func (); below.
49936     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49937     <limits.h> exists even on freestanding compilers.  */
49938
49939 #ifdef __STDC__
49940 # include <limits.h>
49941 #else
49942 # include <assert.h>
49943 #endif
49944
49945 #undef $ac_func
49946
49947 /* Override any gcc2 internal prototype to avoid an error.  */
49948 #ifdef __cplusplus
49949 extern "C"
49950 {
49951 #endif
49952 /* We use char because int might match the return type of a gcc2
49953    builtin and then its argument prototype would still apply.  */
49954 char $ac_func ();
49955 /* The GNU C library defines this for functions which it implements
49956     to always fail with ENOSYS.  Some functions are actually named
49957     something starting with __ and the normal name is an alias.  */
49958 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
49959 choke me
49960 #else
49961 char (*f) () = $ac_func;
49962 #endif
49963 #ifdef __cplusplus
49964 }
49965 #endif
49966
49967 int
49968 main ()
49969 {
49970 return f != $ac_func;
49971   ;
49972   return 0;
49973 }
49974 _ACEOF
49975 rm -f conftest.$ac_objext conftest$ac_exeext
49976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49977   (eval $ac_link) 2>conftest.er1
49978   ac_status=$?
49979   grep -v '^ *+' conftest.er1 >conftest.err
49980   rm -f conftest.er1
49981   cat conftest.err >&5
49982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49983   (exit $ac_status); } &&
49984          { ac_try='test -z "$ac_c_werror_flag"
49985                          || test ! -s conftest.err'
49986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49987   (eval $ac_try) 2>&5
49988   ac_status=$?
49989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49990   (exit $ac_status); }; } &&
49991          { ac_try='test -s conftest$ac_exeext'
49992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49993   (eval $ac_try) 2>&5
49994   ac_status=$?
49995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49996   (exit $ac_status); }; }; then
49997   eval "$as_ac_var=yes"
49998 else
49999   echo "$as_me: failed program was:" >&5
50000 sed 's/^/| /' conftest.$ac_ext >&5
50001
50002 eval "$as_ac_var=no"
50003 fi
50004 rm -f conftest.err conftest.$ac_objext \
50005       conftest$ac_exeext conftest.$ac_ext
50006 fi
50007 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
50008 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
50009 if test `eval echo '${'$as_ac_var'}'` = yes; then
50010   cat >>confdefs.h <<_ACEOF
50011 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
50012 _ACEOF
50013  ice_have_tolower=yes
50014 fi
50015 done
50016
50017 if test "${ice_have_tolower}" = yes; then
50018 echo "$as_me:$LINENO: checking for tolower declaration in ctype.h" >&5
50019 echo $ECHO_N "checking for tolower declaration in ctype.h... $ECHO_C" >&6
50020 if test "${ice_cv_have_tolower_decl+set}" = set; then
50021   echo $ECHO_N "(cached) $ECHO_C" >&6
50022 else
50023
50024 ice_cv_have_tolower_decl=no
50025 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
50026 ice_re_word='(^|[^a-zA-Z0-9_])'
50027 for header in ctype.h; do
50028 # Check for ordinary declaration
50029 cat >conftest.$ac_ext <<_ACEOF
50030 /* confdefs.h.  */
50031 _ACEOF
50032 cat confdefs.h >>conftest.$ac_ext
50033 cat >>conftest.$ac_ext <<_ACEOF
50034 /* end confdefs.h.  */
50035 #include <$header>
50036
50037 _ACEOF
50038 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
50039   $EGREP "${ice_re_word}tolower[        ]*\(" >/dev/null 2>&1; then
50040   ice_cv_have_tolower_decl=yes
50041 fi
50042 rm -f conftest*
50043
50044 if test "$ice_cv_have_tolower_decl" = yes; then
50045         break
50046 fi
50047 # Check for "fixed" declaration like "getpid _PARAMS((int))"
50048 cat >conftest.$ac_ext <<_ACEOF
50049 /* confdefs.h.  */
50050 _ACEOF
50051 cat confdefs.h >>conftest.$ac_ext
50052 cat >>conftest.$ac_ext <<_ACEOF
50053 /* end confdefs.h.  */
50054 #include <$header>
50055
50056 _ACEOF
50057 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
50058   $EGREP "${ice_re_word}tolower[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
50059   ice_cv_have_tolower_decl=yes
50060 fi
50061 rm -f conftest*
50062
50063 if test "$ice_cv_have_tolower_decl" = yes; then
50064         break
50065 fi
50066 done
50067
50068 fi
50069
50070 echo "$as_me:$LINENO: result: $ice_cv_have_tolower_decl" >&5
50071 echo "${ECHO_T}$ice_cv_have_tolower_decl" >&6
50072 if test "$ice_cv_have_tolower_decl" = yes; then
50073
50074 cat >>confdefs.h <<_ACEOF
50075 #define HAVE_TOLOWER_DECL 1
50076 _ACEOF
50077
50078 fi
50079 fi
50080
50081
50082 ice_have_toupper=no
50083
50084 for ac_func in toupper
50085 do
50086 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
50087 echo "$as_me:$LINENO: checking for $ac_func" >&5
50088 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
50089 if eval "test \"\${$as_ac_var+set}\" = set"; then
50090   echo $ECHO_N "(cached) $ECHO_C" >&6
50091 else
50092   cat >conftest.$ac_ext <<_ACEOF
50093 /* confdefs.h.  */
50094 _ACEOF
50095 cat confdefs.h >>conftest.$ac_ext
50096 cat >>conftest.$ac_ext <<_ACEOF
50097 /* end confdefs.h.  */
50098 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
50099    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
50100 #define $ac_func innocuous_$ac_func
50101
50102 /* System header to define __stub macros and hopefully few prototypes,
50103     which can conflict with char $ac_func (); below.
50104     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50105     <limits.h> exists even on freestanding compilers.  */
50106
50107 #ifdef __STDC__
50108 # include <limits.h>
50109 #else
50110 # include <assert.h>
50111 #endif
50112
50113 #undef $ac_func
50114
50115 /* Override any gcc2 internal prototype to avoid an error.  */
50116 #ifdef __cplusplus
50117 extern "C"
50118 {
50119 #endif
50120 /* We use char because int might match the return type of a gcc2
50121    builtin and then its argument prototype would still apply.  */
50122 char $ac_func ();
50123 /* The GNU C library defines this for functions which it implements
50124     to always fail with ENOSYS.  Some functions are actually named
50125     something starting with __ and the normal name is an alias.  */
50126 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
50127 choke me
50128 #else
50129 char (*f) () = $ac_func;
50130 #endif
50131 #ifdef __cplusplus
50132 }
50133 #endif
50134
50135 int
50136 main ()
50137 {
50138 return f != $ac_func;
50139   ;
50140   return 0;
50141 }
50142 _ACEOF
50143 rm -f conftest.$ac_objext conftest$ac_exeext
50144 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50145   (eval $ac_link) 2>conftest.er1
50146   ac_status=$?
50147   grep -v '^ *+' conftest.er1 >conftest.err
50148   rm -f conftest.er1
50149   cat conftest.err >&5
50150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50151   (exit $ac_status); } &&
50152          { ac_try='test -z "$ac_c_werror_flag"
50153                          || test ! -s conftest.err'
50154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50155   (eval $ac_try) 2>&5
50156   ac_status=$?
50157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50158   (exit $ac_status); }; } &&
50159          { ac_try='test -s conftest$ac_exeext'
50160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50161   (eval $ac_try) 2>&5
50162   ac_status=$?
50163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50164   (exit $ac_status); }; }; then
50165   eval "$as_ac_var=yes"
50166 else
50167   echo "$as_me: failed program was:" >&5
50168 sed 's/^/| /' conftest.$ac_ext >&5
50169
50170 eval "$as_ac_var=no"
50171 fi
50172 rm -f conftest.err conftest.$ac_objext \
50173       conftest$ac_exeext conftest.$ac_ext
50174 fi
50175 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
50176 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
50177 if test `eval echo '${'$as_ac_var'}'` = yes; then
50178   cat >>confdefs.h <<_ACEOF
50179 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
50180 _ACEOF
50181  ice_have_toupper=yes
50182 fi
50183 done
50184
50185 if test "${ice_have_toupper}" = yes; then
50186 echo "$as_me:$LINENO: checking for toupper declaration in ctype.h" >&5
50187 echo $ECHO_N "checking for toupper declaration in ctype.h... $ECHO_C" >&6
50188 if test "${ice_cv_have_toupper_decl+set}" = set; then
50189   echo $ECHO_N "(cached) $ECHO_C" >&6
50190 else
50191
50192 ice_cv_have_toupper_decl=no
50193 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
50194 ice_re_word='(^|[^a-zA-Z0-9_])'
50195 for header in ctype.h; do
50196 # Check for ordinary declaration
50197 cat >conftest.$ac_ext <<_ACEOF
50198 /* confdefs.h.  */
50199 _ACEOF
50200 cat confdefs.h >>conftest.$ac_ext
50201 cat >>conftest.$ac_ext <<_ACEOF
50202 /* end confdefs.h.  */
50203 #include <$header>
50204
50205 _ACEOF
50206 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
50207   $EGREP "${ice_re_word}toupper[        ]*\(" >/dev/null 2>&1; then
50208   ice_cv_have_toupper_decl=yes
50209 fi
50210 rm -f conftest*
50211
50212 if test "$ice_cv_have_toupper_decl" = yes; then
50213         break
50214 fi
50215 # Check for "fixed" declaration like "getpid _PARAMS((int))"
50216 cat >conftest.$ac_ext <<_ACEOF
50217 /* confdefs.h.  */
50218 _ACEOF
50219 cat confdefs.h >>conftest.$ac_ext
50220 cat >>conftest.$ac_ext <<_ACEOF
50221 /* end confdefs.h.  */
50222 #include <$header>
50223
50224 _ACEOF
50225 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
50226   $EGREP "${ice_re_word}toupper[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
50227   ice_cv_have_toupper_decl=yes
50228 fi
50229 rm -f conftest*
50230
50231 if test "$ice_cv_have_toupper_decl" = yes; then
50232         break
50233 fi
50234 done
50235
50236 fi
50237
50238 echo "$as_me:$LINENO: result: $ice_cv_have_toupper_decl" >&5
50239 echo "${ECHO_T}$ice_cv_have_toupper_decl" >&6
50240 if test "$ice_cv_have_toupper_decl" = yes; then
50241
50242 cat >>confdefs.h <<_ACEOF
50243 #define HAVE_TOUPPER_DECL 1
50244 _ACEOF
50245
50246 fi
50247 fi
50248
50249
50250 ice_have_ungetc=no
50251
50252 for ac_func in ungetc
50253 do
50254 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
50255 echo "$as_me:$LINENO: checking for $ac_func" >&5
50256 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
50257 if eval "test \"\${$as_ac_var+set}\" = set"; then
50258   echo $ECHO_N "(cached) $ECHO_C" >&6
50259 else
50260   cat >conftest.$ac_ext <<_ACEOF
50261 /* confdefs.h.  */
50262 _ACEOF
50263 cat confdefs.h >>conftest.$ac_ext
50264 cat >>conftest.$ac_ext <<_ACEOF
50265 /* end confdefs.h.  */
50266 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
50267    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
50268 #define $ac_func innocuous_$ac_func
50269
50270 /* System header to define __stub macros and hopefully few prototypes,
50271     which can conflict with char $ac_func (); below.
50272     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50273     <limits.h> exists even on freestanding compilers.  */
50274
50275 #ifdef __STDC__
50276 # include <limits.h>
50277 #else
50278 # include <assert.h>
50279 #endif
50280
50281 #undef $ac_func
50282
50283 /* Override any gcc2 internal prototype to avoid an error.  */
50284 #ifdef __cplusplus
50285 extern "C"
50286 {
50287 #endif
50288 /* We use char because int might match the return type of a gcc2
50289    builtin and then its argument prototype would still apply.  */
50290 char $ac_func ();
50291 /* The GNU C library defines this for functions which it implements
50292     to always fail with ENOSYS.  Some functions are actually named
50293     something starting with __ and the normal name is an alias.  */
50294 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
50295 choke me
50296 #else
50297 char (*f) () = $ac_func;
50298 #endif
50299 #ifdef __cplusplus
50300 }
50301 #endif
50302
50303 int
50304 main ()
50305 {
50306 return f != $ac_func;
50307   ;
50308   return 0;
50309 }
50310 _ACEOF
50311 rm -f conftest.$ac_objext conftest$ac_exeext
50312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50313   (eval $ac_link) 2>conftest.er1
50314   ac_status=$?
50315   grep -v '^ *+' conftest.er1 >conftest.err
50316   rm -f conftest.er1
50317   cat conftest.err >&5
50318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50319   (exit $ac_status); } &&
50320          { ac_try='test -z "$ac_c_werror_flag"
50321                          || test ! -s conftest.err'
50322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50323   (eval $ac_try) 2>&5
50324   ac_status=$?
50325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50326   (exit $ac_status); }; } &&
50327          { ac_try='test -s conftest$ac_exeext'
50328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50329   (eval $ac_try) 2>&5
50330   ac_status=$?
50331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50332   (exit $ac_status); }; }; then
50333   eval "$as_ac_var=yes"
50334 else
50335   echo "$as_me: failed program was:" >&5
50336 sed 's/^/| /' conftest.$ac_ext >&5
50337
50338 eval "$as_ac_var=no"
50339 fi
50340 rm -f conftest.err conftest.$ac_objext \
50341       conftest$ac_exeext conftest.$ac_ext
50342 fi
50343 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
50344 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
50345 if test `eval echo '${'$as_ac_var'}'` = yes; then
50346   cat >>confdefs.h <<_ACEOF
50347 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
50348 _ACEOF
50349  ice_have_ungetc=yes
50350 fi
50351 done
50352
50353 if test "${ice_have_ungetc}" = yes; then
50354 echo "$as_me:$LINENO: checking for ungetc declaration in stdio.h" >&5
50355 echo $ECHO_N "checking for ungetc declaration in stdio.h... $ECHO_C" >&6
50356 if test "${ice_cv_have_ungetc_decl+set}" = set; then
50357   echo $ECHO_N "(cached) $ECHO_C" >&6
50358 else
50359
50360 ice_cv_have_ungetc_decl=no
50361 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
50362 ice_re_word='(^|[^a-zA-Z0-9_])'
50363 for header in stdio.h; do
50364 # Check for ordinary declaration
50365 cat >conftest.$ac_ext <<_ACEOF
50366 /* confdefs.h.  */
50367 _ACEOF
50368 cat confdefs.h >>conftest.$ac_ext
50369 cat >>conftest.$ac_ext <<_ACEOF
50370 /* end confdefs.h.  */
50371 #include <$header>
50372
50373 _ACEOF
50374 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
50375   $EGREP "${ice_re_word}ungetc[         ]*\(" >/dev/null 2>&1; then
50376   ice_cv_have_ungetc_decl=yes
50377 fi
50378 rm -f conftest*
50379
50380 if test "$ice_cv_have_ungetc_decl" = yes; then
50381         break
50382 fi
50383 # Check for "fixed" declaration like "getpid _PARAMS((int))"
50384 cat >conftest.$ac_ext <<_ACEOF
50385 /* confdefs.h.  */
50386 _ACEOF
50387 cat confdefs.h >>conftest.$ac_ext
50388 cat >>conftest.$ac_ext <<_ACEOF
50389 /* end confdefs.h.  */
50390 #include <$header>
50391
50392 _ACEOF
50393 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
50394   $EGREP "${ice_re_word}ungetc[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
50395   ice_cv_have_ungetc_decl=yes
50396 fi
50397 rm -f conftest*
50398
50399 if test "$ice_cv_have_ungetc_decl" = yes; then
50400         break
50401 fi
50402 done
50403
50404 fi
50405
50406 echo "$as_me:$LINENO: result: $ice_cv_have_ungetc_decl" >&5
50407 echo "${ECHO_T}$ice_cv_have_ungetc_decl" >&6
50408 if test "$ice_cv_have_ungetc_decl" = yes; then
50409
50410 cat >>confdefs.h <<_ACEOF
50411 #define HAVE_UNGETC_DECL 1
50412 _ACEOF
50413
50414 fi
50415 fi
50416
50417
50418 for ac_func in vprintf
50419 do
50420 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
50421 echo "$as_me:$LINENO: checking for $ac_func" >&5
50422 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
50423 if eval "test \"\${$as_ac_var+set}\" = set"; then
50424   echo $ECHO_N "(cached) $ECHO_C" >&6
50425 else
50426   cat >conftest.$ac_ext <<_ACEOF
50427 /* confdefs.h.  */
50428 _ACEOF
50429 cat confdefs.h >>conftest.$ac_ext
50430 cat >>conftest.$ac_ext <<_ACEOF
50431 /* end confdefs.h.  */
50432 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
50433    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
50434 #define $ac_func innocuous_$ac_func
50435
50436 /* System header to define __stub macros and hopefully few prototypes,
50437     which can conflict with char $ac_func (); below.
50438     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50439     <limits.h> exists even on freestanding compilers.  */
50440
50441 #ifdef __STDC__
50442 # include <limits.h>
50443 #else
50444 # include <assert.h>
50445 #endif
50446
50447 #undef $ac_func
50448
50449 /* Override any gcc2 internal prototype to avoid an error.  */
50450 #ifdef __cplusplus
50451 extern "C"
50452 {
50453 #endif
50454 /* We use char because int might match the return type of a gcc2
50455    builtin and then its argument prototype would still apply.  */
50456 char $ac_func ();
50457 /* The GNU C library defines this for functions which it implements
50458     to always fail with ENOSYS.  Some functions are actually named
50459     something starting with __ and the normal name is an alias.  */
50460 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
50461 choke me
50462 #else
50463 char (*f) () = $ac_func;
50464 #endif
50465 #ifdef __cplusplus
50466 }
50467 #endif
50468
50469 int
50470 main ()
50471 {
50472 return f != $ac_func;
50473   ;
50474   return 0;
50475 }
50476 _ACEOF
50477 rm -f conftest.$ac_objext conftest$ac_exeext
50478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50479   (eval $ac_link) 2>conftest.er1
50480   ac_status=$?
50481   grep -v '^ *+' conftest.er1 >conftest.err
50482   rm -f conftest.er1
50483   cat conftest.err >&5
50484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50485   (exit $ac_status); } &&
50486          { ac_try='test -z "$ac_c_werror_flag"
50487                          || test ! -s conftest.err'
50488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50489   (eval $ac_try) 2>&5
50490   ac_status=$?
50491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50492   (exit $ac_status); }; } &&
50493          { ac_try='test -s conftest$ac_exeext'
50494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50495   (eval $ac_try) 2>&5
50496   ac_status=$?
50497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50498   (exit $ac_status); }; }; then
50499   eval "$as_ac_var=yes"
50500 else
50501   echo "$as_me: failed program was:" >&5
50502 sed 's/^/| /' conftest.$ac_ext >&5
50503
50504 eval "$as_ac_var=no"
50505 fi
50506 rm -f conftest.err conftest.$ac_objext \
50507       conftest$ac_exeext conftest.$ac_ext
50508 fi
50509 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
50510 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
50511 if test `eval echo '${'$as_ac_var'}'` = yes; then
50512   cat >>confdefs.h <<_ACEOF
50513 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
50514 _ACEOF
50515
50516 echo "$as_me:$LINENO: checking for _doprnt" >&5
50517 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
50518 if test "${ac_cv_func__doprnt+set}" = set; then
50519   echo $ECHO_N "(cached) $ECHO_C" >&6
50520 else
50521   cat >conftest.$ac_ext <<_ACEOF
50522 /* confdefs.h.  */
50523 _ACEOF
50524 cat confdefs.h >>conftest.$ac_ext
50525 cat >>conftest.$ac_ext <<_ACEOF
50526 /* end confdefs.h.  */
50527 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
50528    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
50529 #define _doprnt innocuous__doprnt
50530
50531 /* System header to define __stub macros and hopefully few prototypes,
50532     which can conflict with char _doprnt (); below.
50533     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50534     <limits.h> exists even on freestanding compilers.  */
50535
50536 #ifdef __STDC__
50537 # include <limits.h>
50538 #else
50539 # include <assert.h>
50540 #endif
50541
50542 #undef _doprnt
50543
50544 /* Override any gcc2 internal prototype to avoid an error.  */
50545 #ifdef __cplusplus
50546 extern "C"
50547 {
50548 #endif
50549 /* We use char because int might match the return type of a gcc2
50550    builtin and then its argument prototype would still apply.  */
50551 char _doprnt ();
50552 /* The GNU C library defines this for functions which it implements
50553     to always fail with ENOSYS.  Some functions are actually named
50554     something starting with __ and the normal name is an alias.  */
50555 #if defined (__stub__doprnt) || defined (__stub____doprnt)
50556 choke me
50557 #else
50558 char (*f) () = _doprnt;
50559 #endif
50560 #ifdef __cplusplus
50561 }
50562 #endif
50563
50564 int
50565 main ()
50566 {
50567 return f != _doprnt;
50568   ;
50569   return 0;
50570 }
50571 _ACEOF
50572 rm -f conftest.$ac_objext conftest$ac_exeext
50573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50574   (eval $ac_link) 2>conftest.er1
50575   ac_status=$?
50576   grep -v '^ *+' conftest.er1 >conftest.err
50577   rm -f conftest.er1
50578   cat conftest.err >&5
50579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50580   (exit $ac_status); } &&
50581          { ac_try='test -z "$ac_c_werror_flag"
50582                          || test ! -s conftest.err'
50583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50584   (eval $ac_try) 2>&5
50585   ac_status=$?
50586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50587   (exit $ac_status); }; } &&
50588          { ac_try='test -s conftest$ac_exeext'
50589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50590   (eval $ac_try) 2>&5
50591   ac_status=$?
50592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50593   (exit $ac_status); }; }; then
50594   ac_cv_func__doprnt=yes
50595 else
50596   echo "$as_me: failed program was:" >&5
50597 sed 's/^/| /' conftest.$ac_ext >&5
50598
50599 ac_cv_func__doprnt=no
50600 fi
50601 rm -f conftest.err conftest.$ac_objext \
50602       conftest$ac_exeext conftest.$ac_ext
50603 fi
50604 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
50605 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
50606 if test $ac_cv_func__doprnt = yes; then
50607
50608 cat >>confdefs.h <<\_ACEOF
50609 #define HAVE_DOPRNT 1
50610 _ACEOF
50611
50612 fi
50613
50614 fi
50615 done
50616
50617
50618
50619 ice_have_vfprintf=no
50620
50621 for ac_func in vfprintf
50622 do
50623 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
50624 echo "$as_me:$LINENO: checking for $ac_func" >&5
50625 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
50626 if eval "test \"\${$as_ac_var+set}\" = set"; then
50627   echo $ECHO_N "(cached) $ECHO_C" >&6
50628 else
50629   cat >conftest.$ac_ext <<_ACEOF
50630 /* confdefs.h.  */
50631 _ACEOF
50632 cat confdefs.h >>conftest.$ac_ext
50633 cat >>conftest.$ac_ext <<_ACEOF
50634 /* end confdefs.h.  */
50635 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
50636    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
50637 #define $ac_func innocuous_$ac_func
50638
50639 /* System header to define __stub macros and hopefully few prototypes,
50640     which can conflict with char $ac_func (); below.
50641     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50642     <limits.h> exists even on freestanding compilers.  */
50643
50644 #ifdef __STDC__
50645 # include <limits.h>
50646 #else
50647 # include <assert.h>
50648 #endif
50649
50650 #undef $ac_func
50651
50652 /* Override any gcc2 internal prototype to avoid an error.  */
50653 #ifdef __cplusplus
50654 extern "C"
50655 {
50656 #endif
50657 /* We use char because int might match the return type of a gcc2
50658    builtin and then its argument prototype would still apply.  */
50659 char $ac_func ();
50660 /* The GNU C library defines this for functions which it implements
50661     to always fail with ENOSYS.  Some functions are actually named
50662     something starting with __ and the normal name is an alias.  */
50663 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
50664 choke me
50665 #else
50666 char (*f) () = $ac_func;
50667 #endif
50668 #ifdef __cplusplus
50669 }
50670 #endif
50671
50672 int
50673 main ()
50674 {
50675 return f != $ac_func;
50676   ;
50677   return 0;
50678 }
50679 _ACEOF
50680 rm -f conftest.$ac_objext conftest$ac_exeext
50681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50682   (eval $ac_link) 2>conftest.er1
50683   ac_status=$?
50684   grep -v '^ *+' conftest.er1 >conftest.err
50685   rm -f conftest.er1
50686   cat conftest.err >&5
50687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50688   (exit $ac_status); } &&
50689          { ac_try='test -z "$ac_c_werror_flag"
50690                          || test ! -s conftest.err'
50691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50692   (eval $ac_try) 2>&5
50693   ac_status=$?
50694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50695   (exit $ac_status); }; } &&
50696          { ac_try='test -s conftest$ac_exeext'
50697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50698   (eval $ac_try) 2>&5
50699   ac_status=$?
50700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50701   (exit $ac_status); }; }; then
50702   eval "$as_ac_var=yes"
50703 else
50704   echo "$as_me: failed program was:" >&5
50705 sed 's/^/| /' conftest.$ac_ext >&5
50706
50707 eval "$as_ac_var=no"
50708 fi
50709 rm -f conftest.err conftest.$ac_objext \
50710       conftest$ac_exeext conftest.$ac_ext
50711 fi
50712 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
50713 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
50714 if test `eval echo '${'$as_ac_var'}'` = yes; then
50715   cat >>confdefs.h <<_ACEOF
50716 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
50717 _ACEOF
50718  ice_have_vfprintf=yes
50719 fi
50720 done
50721
50722 if test "${ice_have_vfprintf}" = yes; then
50723 echo "$as_me:$LINENO: checking for vfprintf declaration in stdio.h stdlib.h" >&5
50724 echo $ECHO_N "checking for vfprintf declaration in stdio.h stdlib.h... $ECHO_C" >&6
50725 if test "${ice_cv_have_vfprintf_decl+set}" = set; then
50726   echo $ECHO_N "(cached) $ECHO_C" >&6
50727 else
50728
50729 ice_cv_have_vfprintf_decl=no
50730 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
50731 ice_re_word='(^|[^a-zA-Z0-9_])'
50732 for header in stdio.h stdlib.h; do
50733 # Check for ordinary declaration
50734 cat >conftest.$ac_ext <<_ACEOF
50735 /* confdefs.h.  */
50736 _ACEOF
50737 cat confdefs.h >>conftest.$ac_ext
50738 cat >>conftest.$ac_ext <<_ACEOF
50739 /* end confdefs.h.  */
50740 #include <$header>
50741
50742 _ACEOF
50743 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
50744   $EGREP "${ice_re_word}vfprintf[       ]*\(" >/dev/null 2>&1; then
50745   ice_cv_have_vfprintf_decl=yes
50746 fi
50747 rm -f conftest*
50748
50749 if test "$ice_cv_have_vfprintf_decl" = yes; then
50750         break
50751 fi
50752 # Check for "fixed" declaration like "getpid _PARAMS((int))"
50753 cat >conftest.$ac_ext <<_ACEOF
50754 /* confdefs.h.  */
50755 _ACEOF
50756 cat confdefs.h >>conftest.$ac_ext
50757 cat >>conftest.$ac_ext <<_ACEOF
50758 /* end confdefs.h.  */
50759 #include <$header>
50760
50761 _ACEOF
50762 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
50763   $EGREP "${ice_re_word}vfprintf[       ]*$ice_re_params\(\(" >/dev/null 2>&1; then
50764   ice_cv_have_vfprintf_decl=yes
50765 fi
50766 rm -f conftest*
50767
50768 if test "$ice_cv_have_vfprintf_decl" = yes; then
50769         break
50770 fi
50771 done
50772
50773 fi
50774
50775 echo "$as_me:$LINENO: result: $ice_cv_have_vfprintf_decl" >&5
50776 echo "${ECHO_T}$ice_cv_have_vfprintf_decl" >&6
50777 if test "$ice_cv_have_vfprintf_decl" = yes; then
50778
50779 cat >>confdefs.h <<_ACEOF
50780 #define HAVE_VFPRINTF_DECL 1
50781 _ACEOF
50782
50783 fi
50784 fi
50785
50786
50787 ice_have_vprintf=no
50788
50789 for ac_func in vprintf
50790 do
50791 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
50792 echo "$as_me:$LINENO: checking for $ac_func" >&5
50793 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
50794 if eval "test \"\${$as_ac_var+set}\" = set"; then
50795   echo $ECHO_N "(cached) $ECHO_C" >&6
50796 else
50797   cat >conftest.$ac_ext <<_ACEOF
50798 /* confdefs.h.  */
50799 _ACEOF
50800 cat confdefs.h >>conftest.$ac_ext
50801 cat >>conftest.$ac_ext <<_ACEOF
50802 /* end confdefs.h.  */
50803 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
50804    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
50805 #define $ac_func innocuous_$ac_func
50806
50807 /* System header to define __stub macros and hopefully few prototypes,
50808     which can conflict with char $ac_func (); below.
50809     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50810     <limits.h> exists even on freestanding compilers.  */
50811
50812 #ifdef __STDC__
50813 # include <limits.h>
50814 #else
50815 # include <assert.h>
50816 #endif
50817
50818 #undef $ac_func
50819
50820 /* Override any gcc2 internal prototype to avoid an error.  */
50821 #ifdef __cplusplus
50822 extern "C"
50823 {
50824 #endif
50825 /* We use char because int might match the return type of a gcc2
50826    builtin and then its argument prototype would still apply.  */
50827 char $ac_func ();
50828 /* The GNU C library defines this for functions which it implements
50829     to always fail with ENOSYS.  Some functions are actually named
50830     something starting with __ and the normal name is an alias.  */
50831 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
50832 choke me
50833 #else
50834 char (*f) () = $ac_func;
50835 #endif
50836 #ifdef __cplusplus
50837 }
50838 #endif
50839
50840 int
50841 main ()
50842 {
50843 return f != $ac_func;
50844   ;
50845   return 0;
50846 }
50847 _ACEOF
50848 rm -f conftest.$ac_objext conftest$ac_exeext
50849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50850   (eval $ac_link) 2>conftest.er1
50851   ac_status=$?
50852   grep -v '^ *+' conftest.er1 >conftest.err
50853   rm -f conftest.er1
50854   cat conftest.err >&5
50855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50856   (exit $ac_status); } &&
50857          { ac_try='test -z "$ac_c_werror_flag"
50858                          || test ! -s conftest.err'
50859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50860   (eval $ac_try) 2>&5
50861   ac_status=$?
50862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50863   (exit $ac_status); }; } &&
50864          { ac_try='test -s conftest$ac_exeext'
50865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50866   (eval $ac_try) 2>&5
50867   ac_status=$?
50868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50869   (exit $ac_status); }; }; then
50870   eval "$as_ac_var=yes"
50871 else
50872   echo "$as_me: failed program was:" >&5
50873 sed 's/^/| /' conftest.$ac_ext >&5
50874
50875 eval "$as_ac_var=no"
50876 fi
50877 rm -f conftest.err conftest.$ac_objext \
50878       conftest$ac_exeext conftest.$ac_ext
50879 fi
50880 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
50881 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
50882 if test `eval echo '${'$as_ac_var'}'` = yes; then
50883   cat >>confdefs.h <<_ACEOF
50884 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
50885 _ACEOF
50886  ice_have_vprintf=yes
50887 fi
50888 done
50889
50890 if test "${ice_have_vprintf}" = yes; then
50891 echo "$as_me:$LINENO: checking for vprintf declaration in stdio.h stdlib.h" >&5
50892 echo $ECHO_N "checking for vprintf declaration in stdio.h stdlib.h... $ECHO_C" >&6
50893 if test "${ice_cv_have_vprintf_decl+set}" = set; then
50894   echo $ECHO_N "(cached) $ECHO_C" >&6
50895 else
50896
50897 ice_cv_have_vprintf_decl=no
50898 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
50899 ice_re_word='(^|[^a-zA-Z0-9_])'
50900 for header in stdio.h stdlib.h; do
50901 # Check for ordinary declaration
50902 cat >conftest.$ac_ext <<_ACEOF
50903 /* confdefs.h.  */
50904 _ACEOF
50905 cat confdefs.h >>conftest.$ac_ext
50906 cat >>conftest.$ac_ext <<_ACEOF
50907 /* end confdefs.h.  */
50908 #include <$header>
50909
50910 _ACEOF
50911 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
50912   $EGREP "${ice_re_word}vprintf[        ]*\(" >/dev/null 2>&1; then
50913   ice_cv_have_vprintf_decl=yes
50914 fi
50915 rm -f conftest*
50916
50917 if test "$ice_cv_have_vprintf_decl" = yes; then
50918         break
50919 fi
50920 # Check for "fixed" declaration like "getpid _PARAMS((int))"
50921 cat >conftest.$ac_ext <<_ACEOF
50922 /* confdefs.h.  */
50923 _ACEOF
50924 cat confdefs.h >>conftest.$ac_ext
50925 cat >>conftest.$ac_ext <<_ACEOF
50926 /* end confdefs.h.  */
50927 #include <$header>
50928
50929 _ACEOF
50930 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
50931   $EGREP "${ice_re_word}vprintf[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
50932   ice_cv_have_vprintf_decl=yes
50933 fi
50934 rm -f conftest*
50935
50936 if test "$ice_cv_have_vprintf_decl" = yes; then
50937         break
50938 fi
50939 done
50940
50941 fi
50942
50943 echo "$as_me:$LINENO: result: $ice_cv_have_vprintf_decl" >&5
50944 echo "${ECHO_T}$ice_cv_have_vprintf_decl" >&6
50945 if test "$ice_cv_have_vprintf_decl" = yes; then
50946
50947 cat >>confdefs.h <<_ACEOF
50948 #define HAVE_VPRINTF_DECL 1
50949 _ACEOF
50950
50951 fi
50952 fi
50953
50954
50955 ice_have_vsprintf=no
50956
50957 for ac_func in vsprintf
50958 do
50959 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
50960 echo "$as_me:$LINENO: checking for $ac_func" >&5
50961 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
50962 if eval "test \"\${$as_ac_var+set}\" = set"; then
50963   echo $ECHO_N "(cached) $ECHO_C" >&6
50964 else
50965   cat >conftest.$ac_ext <<_ACEOF
50966 /* confdefs.h.  */
50967 _ACEOF
50968 cat confdefs.h >>conftest.$ac_ext
50969 cat >>conftest.$ac_ext <<_ACEOF
50970 /* end confdefs.h.  */
50971 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
50972    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
50973 #define $ac_func innocuous_$ac_func
50974
50975 /* System header to define __stub macros and hopefully few prototypes,
50976     which can conflict with char $ac_func (); below.
50977     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50978     <limits.h> exists even on freestanding compilers.  */
50979
50980 #ifdef __STDC__
50981 # include <limits.h>
50982 #else
50983 # include <assert.h>
50984 #endif
50985
50986 #undef $ac_func
50987
50988 /* Override any gcc2 internal prototype to avoid an error.  */
50989 #ifdef __cplusplus
50990 extern "C"
50991 {
50992 #endif
50993 /* We use char because int might match the return type of a gcc2
50994    builtin and then its argument prototype would still apply.  */
50995 char $ac_func ();
50996 /* The GNU C library defines this for functions which it implements
50997     to always fail with ENOSYS.  Some functions are actually named
50998     something starting with __ and the normal name is an alias.  */
50999 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51000 choke me
51001 #else
51002 char (*f) () = $ac_func;
51003 #endif
51004 #ifdef __cplusplus
51005 }
51006 #endif
51007
51008 int
51009 main ()
51010 {
51011 return f != $ac_func;
51012   ;
51013   return 0;
51014 }
51015 _ACEOF
51016 rm -f conftest.$ac_objext conftest$ac_exeext
51017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51018   (eval $ac_link) 2>conftest.er1
51019   ac_status=$?
51020   grep -v '^ *+' conftest.er1 >conftest.err
51021   rm -f conftest.er1
51022   cat conftest.err >&5
51023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51024   (exit $ac_status); } &&
51025          { ac_try='test -z "$ac_c_werror_flag"
51026                          || test ! -s conftest.err'
51027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51028   (eval $ac_try) 2>&5
51029   ac_status=$?
51030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51031   (exit $ac_status); }; } &&
51032          { ac_try='test -s conftest$ac_exeext'
51033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51034   (eval $ac_try) 2>&5
51035   ac_status=$?
51036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51037   (exit $ac_status); }; }; then
51038   eval "$as_ac_var=yes"
51039 else
51040   echo "$as_me: failed program was:" >&5
51041 sed 's/^/| /' conftest.$ac_ext >&5
51042
51043 eval "$as_ac_var=no"
51044 fi
51045 rm -f conftest.err conftest.$ac_objext \
51046       conftest$ac_exeext conftest.$ac_ext
51047 fi
51048 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51049 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51050 if test `eval echo '${'$as_ac_var'}'` = yes; then
51051   cat >>confdefs.h <<_ACEOF
51052 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51053 _ACEOF
51054  ice_have_vsprintf=yes
51055 fi
51056 done
51057
51058 if test "${ice_have_vsprintf}" = yes; then
51059 echo "$as_me:$LINENO: checking for vsprintf declaration in stdio.h stdlib.h" >&5
51060 echo $ECHO_N "checking for vsprintf declaration in stdio.h stdlib.h... $ECHO_C" >&6
51061 if test "${ice_cv_have_vsprintf_decl+set}" = set; then
51062   echo $ECHO_N "(cached) $ECHO_C" >&6
51063 else
51064
51065 ice_cv_have_vsprintf_decl=no
51066 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
51067 ice_re_word='(^|[^a-zA-Z0-9_])'
51068 for header in stdio.h stdlib.h; do
51069 # Check for ordinary declaration
51070 cat >conftest.$ac_ext <<_ACEOF
51071 /* confdefs.h.  */
51072 _ACEOF
51073 cat confdefs.h >>conftest.$ac_ext
51074 cat >>conftest.$ac_ext <<_ACEOF
51075 /* end confdefs.h.  */
51076 #include <$header>
51077
51078 _ACEOF
51079 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
51080   $EGREP "${ice_re_word}vsprintf[       ]*\(" >/dev/null 2>&1; then
51081   ice_cv_have_vsprintf_decl=yes
51082 fi
51083 rm -f conftest*
51084
51085 if test "$ice_cv_have_vsprintf_decl" = yes; then
51086         break
51087 fi
51088 # Check for "fixed" declaration like "getpid _PARAMS((int))"
51089 cat >conftest.$ac_ext <<_ACEOF
51090 /* confdefs.h.  */
51091 _ACEOF
51092 cat confdefs.h >>conftest.$ac_ext
51093 cat >>conftest.$ac_ext <<_ACEOF
51094 /* end confdefs.h.  */
51095 #include <$header>
51096
51097 _ACEOF
51098 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
51099   $EGREP "${ice_re_word}vsprintf[       ]*$ice_re_params\(\(" >/dev/null 2>&1; then
51100   ice_cv_have_vsprintf_decl=yes
51101 fi
51102 rm -f conftest*
51103
51104 if test "$ice_cv_have_vsprintf_decl" = yes; then
51105         break
51106 fi
51107 done
51108
51109 fi
51110
51111 echo "$as_me:$LINENO: result: $ice_cv_have_vsprintf_decl" >&5
51112 echo "${ECHO_T}$ice_cv_have_vsprintf_decl" >&6
51113 if test "$ice_cv_have_vsprintf_decl" = yes; then
51114
51115 cat >>confdefs.h <<_ACEOF
51116 #define HAVE_VSPRINTF_DECL 1
51117 _ACEOF
51118
51119 fi
51120 fi
51121
51122 echo "$as_me:$LINENO: checking for wait4" >&5
51123 echo $ECHO_N "checking for wait4... $ECHO_C" >&6
51124 if test "${ac_cv_func_wait4+set}" = set; then
51125   echo $ECHO_N "(cached) $ECHO_C" >&6
51126 else
51127   cat >conftest.$ac_ext <<_ACEOF
51128 /* confdefs.h.  */
51129 _ACEOF
51130 cat confdefs.h >>conftest.$ac_ext
51131 cat >>conftest.$ac_ext <<_ACEOF
51132 /* end confdefs.h.  */
51133 /* Define wait4 to an innocuous variant, in case <limits.h> declares wait4.
51134    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
51135 #define wait4 innocuous_wait4
51136
51137 /* System header to define __stub macros and hopefully few prototypes,
51138     which can conflict with char wait4 (); below.
51139     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51140     <limits.h> exists even on freestanding compilers.  */
51141
51142 #ifdef __STDC__
51143 # include <limits.h>
51144 #else
51145 # include <assert.h>
51146 #endif
51147
51148 #undef wait4
51149
51150 /* Override any gcc2 internal prototype to avoid an error.  */
51151 #ifdef __cplusplus
51152 extern "C"
51153 {
51154 #endif
51155 /* We use char because int might match the return type of a gcc2
51156    builtin and then its argument prototype would still apply.  */
51157 char wait4 ();
51158 /* The GNU C library defines this for functions which it implements
51159     to always fail with ENOSYS.  Some functions are actually named
51160     something starting with __ and the normal name is an alias.  */
51161 #if defined (__stub_wait4) || defined (__stub___wait4)
51162 choke me
51163 #else
51164 char (*f) () = wait4;
51165 #endif
51166 #ifdef __cplusplus
51167 }
51168 #endif
51169
51170 int
51171 main ()
51172 {
51173 return f != wait4;
51174   ;
51175   return 0;
51176 }
51177 _ACEOF
51178 rm -f conftest.$ac_objext conftest$ac_exeext
51179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51180   (eval $ac_link) 2>conftest.er1
51181   ac_status=$?
51182   grep -v '^ *+' conftest.er1 >conftest.err
51183   rm -f conftest.er1
51184   cat conftest.err >&5
51185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51186   (exit $ac_status); } &&
51187          { ac_try='test -z "$ac_c_werror_flag"
51188                          || test ! -s conftest.err'
51189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51190   (eval $ac_try) 2>&5
51191   ac_status=$?
51192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51193   (exit $ac_status); }; } &&
51194          { ac_try='test -s conftest$ac_exeext'
51195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51196   (eval $ac_try) 2>&5
51197   ac_status=$?
51198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51199   (exit $ac_status); }; }; then
51200   ac_cv_func_wait4=yes
51201 else
51202   echo "$as_me: failed program was:" >&5
51203 sed 's/^/| /' conftest.$ac_ext >&5
51204
51205 ac_cv_func_wait4=no
51206 fi
51207 rm -f conftest.err conftest.$ac_objext \
51208       conftest$ac_exeext conftest.$ac_ext
51209 fi
51210 echo "$as_me:$LINENO: result: $ac_cv_func_wait4" >&5
51211 echo "${ECHO_T}$ac_cv_func_wait4" >&6
51212
51213
51214 for ac_func in waitpid
51215 do
51216 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51217 echo "$as_me:$LINENO: checking for $ac_func" >&5
51218 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51219 if eval "test \"\${$as_ac_var+set}\" = set"; then
51220   echo $ECHO_N "(cached) $ECHO_C" >&6
51221 else
51222   cat >conftest.$ac_ext <<_ACEOF
51223 /* confdefs.h.  */
51224 _ACEOF
51225 cat confdefs.h >>conftest.$ac_ext
51226 cat >>conftest.$ac_ext <<_ACEOF
51227 /* end confdefs.h.  */
51228 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51229    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
51230 #define $ac_func innocuous_$ac_func
51231
51232 /* System header to define __stub macros and hopefully few prototypes,
51233     which can conflict with char $ac_func (); below.
51234     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51235     <limits.h> exists even on freestanding compilers.  */
51236
51237 #ifdef __STDC__
51238 # include <limits.h>
51239 #else
51240 # include <assert.h>
51241 #endif
51242
51243 #undef $ac_func
51244
51245 /* Override any gcc2 internal prototype to avoid an error.  */
51246 #ifdef __cplusplus
51247 extern "C"
51248 {
51249 #endif
51250 /* We use char because int might match the return type of a gcc2
51251    builtin and then its argument prototype would still apply.  */
51252 char $ac_func ();
51253 /* The GNU C library defines this for functions which it implements
51254     to always fail with ENOSYS.  Some functions are actually named
51255     something starting with __ and the normal name is an alias.  */
51256 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51257 choke me
51258 #else
51259 char (*f) () = $ac_func;
51260 #endif
51261 #ifdef __cplusplus
51262 }
51263 #endif
51264
51265 int
51266 main ()
51267 {
51268 return f != $ac_func;
51269   ;
51270   return 0;
51271 }
51272 _ACEOF
51273 rm -f conftest.$ac_objext conftest$ac_exeext
51274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51275   (eval $ac_link) 2>conftest.er1
51276   ac_status=$?
51277   grep -v '^ *+' conftest.er1 >conftest.err
51278   rm -f conftest.er1
51279   cat conftest.err >&5
51280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51281   (exit $ac_status); } &&
51282          { ac_try='test -z "$ac_c_werror_flag"
51283                          || test ! -s conftest.err'
51284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51285   (eval $ac_try) 2>&5
51286   ac_status=$?
51287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51288   (exit $ac_status); }; } &&
51289          { ac_try='test -s conftest$ac_exeext'
51290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51291   (eval $ac_try) 2>&5
51292   ac_status=$?
51293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51294   (exit $ac_status); }; }; then
51295   eval "$as_ac_var=yes"
51296 else
51297   echo "$as_me: failed program was:" >&5
51298 sed 's/^/| /' conftest.$ac_ext >&5
51299
51300 eval "$as_ac_var=no"
51301 fi
51302 rm -f conftest.err conftest.$ac_objext \
51303       conftest$ac_exeext conftest.$ac_ext
51304 fi
51305 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51306 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51307 if test `eval echo '${'$as_ac_var'}'` = yes; then
51308   cat >>confdefs.h <<_ACEOF
51309 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51310 _ACEOF
51311
51312 else
51313   case $LIBOBJS in
51314     "$ac_func.$ac_objext"   | \
51315   *" $ac_func.$ac_objext"   | \
51316     "$ac_func.$ac_objext "* | \
51317   *" $ac_func.$ac_objext "* ) ;;
51318   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
51319 esac
51320
51321 fi
51322 done
51323
51324
51325
51326 for ac_func in writev
51327 do
51328 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51329 echo "$as_me:$LINENO: checking for $ac_func" >&5
51330 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51331 if eval "test \"\${$as_ac_var+set}\" = set"; then
51332   echo $ECHO_N "(cached) $ECHO_C" >&6
51333 else
51334   cat >conftest.$ac_ext <<_ACEOF
51335 /* confdefs.h.  */
51336 _ACEOF
51337 cat confdefs.h >>conftest.$ac_ext
51338 cat >>conftest.$ac_ext <<_ACEOF
51339 /* end confdefs.h.  */
51340 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51341    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
51342 #define $ac_func innocuous_$ac_func
51343
51344 /* System header to define __stub macros and hopefully few prototypes,
51345     which can conflict with char $ac_func (); below.
51346     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51347     <limits.h> exists even on freestanding compilers.  */
51348
51349 #ifdef __STDC__
51350 # include <limits.h>
51351 #else
51352 # include <assert.h>
51353 #endif
51354
51355 #undef $ac_func
51356
51357 /* Override any gcc2 internal prototype to avoid an error.  */
51358 #ifdef __cplusplus
51359 extern "C"
51360 {
51361 #endif
51362 /* We use char because int might match the return type of a gcc2
51363    builtin and then its argument prototype would still apply.  */
51364 char $ac_func ();
51365 /* The GNU C library defines this for functions which it implements
51366     to always fail with ENOSYS.  Some functions are actually named
51367     something starting with __ and the normal name is an alias.  */
51368 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51369 choke me
51370 #else
51371 char (*f) () = $ac_func;
51372 #endif
51373 #ifdef __cplusplus
51374 }
51375 #endif
51376
51377 int
51378 main ()
51379 {
51380 return f != $ac_func;
51381   ;
51382   return 0;
51383 }
51384 _ACEOF
51385 rm -f conftest.$ac_objext conftest$ac_exeext
51386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51387   (eval $ac_link) 2>conftest.er1
51388   ac_status=$?
51389   grep -v '^ *+' conftest.er1 >conftest.err
51390   rm -f conftest.er1
51391   cat conftest.err >&5
51392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51393   (exit $ac_status); } &&
51394          { ac_try='test -z "$ac_c_werror_flag"
51395                          || test ! -s conftest.err'
51396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51397   (eval $ac_try) 2>&5
51398   ac_status=$?
51399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51400   (exit $ac_status); }; } &&
51401          { ac_try='test -s conftest$ac_exeext'
51402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51403   (eval $ac_try) 2>&5
51404   ac_status=$?
51405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51406   (exit $ac_status); }; }; then
51407   eval "$as_ac_var=yes"
51408 else
51409   echo "$as_me: failed program was:" >&5
51410 sed 's/^/| /' conftest.$ac_ext >&5
51411
51412 eval "$as_ac_var=no"
51413 fi
51414 rm -f conftest.err conftest.$ac_objext \
51415       conftest$ac_exeext conftest.$ac_ext
51416 fi
51417 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51418 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51419 if test `eval echo '${'$as_ac_var'}'` = yes; then
51420   cat >>confdefs.h <<_ACEOF
51421 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51422 _ACEOF
51423
51424 else
51425   case $LIBOBJS in
51426     "$ac_func.$ac_objext"   | \
51427   *" $ac_func.$ac_objext"   | \
51428     "$ac_func.$ac_objext "* | \
51429   *" $ac_func.$ac_objext "* ) ;;
51430   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
51431 esac
51432
51433 fi
51434 done
51435
51436
51437
51438 ice_have_writev=no
51439
51440 for ac_func in writev
51441 do
51442 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51443 echo "$as_me:$LINENO: checking for $ac_func" >&5
51444 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51445 if eval "test \"\${$as_ac_var+set}\" = set"; then
51446   echo $ECHO_N "(cached) $ECHO_C" >&6
51447 else
51448   cat >conftest.$ac_ext <<_ACEOF
51449 /* confdefs.h.  */
51450 _ACEOF
51451 cat confdefs.h >>conftest.$ac_ext
51452 cat >>conftest.$ac_ext <<_ACEOF
51453 /* end confdefs.h.  */
51454 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51455    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
51456 #define $ac_func innocuous_$ac_func
51457
51458 /* System header to define __stub macros and hopefully few prototypes,
51459     which can conflict with char $ac_func (); below.
51460     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51461     <limits.h> exists even on freestanding compilers.  */
51462
51463 #ifdef __STDC__
51464 # include <limits.h>
51465 #else
51466 # include <assert.h>
51467 #endif
51468
51469 #undef $ac_func
51470
51471 /* Override any gcc2 internal prototype to avoid an error.  */
51472 #ifdef __cplusplus
51473 extern "C"
51474 {
51475 #endif
51476 /* We use char because int might match the return type of a gcc2
51477    builtin and then its argument prototype would still apply.  */
51478 char $ac_func ();
51479 /* The GNU C library defines this for functions which it implements
51480     to always fail with ENOSYS.  Some functions are actually named
51481     something starting with __ and the normal name is an alias.  */
51482 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51483 choke me
51484 #else
51485 char (*f) () = $ac_func;
51486 #endif
51487 #ifdef __cplusplus
51488 }
51489 #endif
51490
51491 int
51492 main ()
51493 {
51494 return f != $ac_func;
51495   ;
51496   return 0;
51497 }
51498 _ACEOF
51499 rm -f conftest.$ac_objext conftest$ac_exeext
51500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51501   (eval $ac_link) 2>conftest.er1
51502   ac_status=$?
51503   grep -v '^ *+' conftest.er1 >conftest.err
51504   rm -f conftest.er1
51505   cat conftest.err >&5
51506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51507   (exit $ac_status); } &&
51508          { ac_try='test -z "$ac_c_werror_flag"
51509                          || test ! -s conftest.err'
51510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51511   (eval $ac_try) 2>&5
51512   ac_status=$?
51513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51514   (exit $ac_status); }; } &&
51515          { ac_try='test -s conftest$ac_exeext'
51516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51517   (eval $ac_try) 2>&5
51518   ac_status=$?
51519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51520   (exit $ac_status); }; }; then
51521   eval "$as_ac_var=yes"
51522 else
51523   echo "$as_me: failed program was:" >&5
51524 sed 's/^/| /' conftest.$ac_ext >&5
51525
51526 eval "$as_ac_var=no"
51527 fi
51528 rm -f conftest.err conftest.$ac_objext \
51529       conftest$ac_exeext conftest.$ac_ext
51530 fi
51531 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51532 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51533 if test `eval echo '${'$as_ac_var'}'` = yes; then
51534   cat >>confdefs.h <<_ACEOF
51535 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51536 _ACEOF
51537  ice_have_writev=yes
51538 fi
51539 done
51540
51541 if test "${ice_have_writev}" = yes; then
51542 echo "$as_me:$LINENO: checking for writev declaration in unistd.h sys/uio.h" >&5
51543 echo $ECHO_N "checking for writev declaration in unistd.h sys/uio.h... $ECHO_C" >&6
51544 if test "${ice_cv_have_writev_decl+set}" = set; then
51545   echo $ECHO_N "(cached) $ECHO_C" >&6
51546 else
51547
51548 ice_cv_have_writev_decl=no
51549 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
51550 ice_re_word='(^|[^a-zA-Z0-9_])'
51551 for header in unistd.h sys/uio.h; do
51552 # Check for ordinary declaration
51553 cat >conftest.$ac_ext <<_ACEOF
51554 /* confdefs.h.  */
51555 _ACEOF
51556 cat confdefs.h >>conftest.$ac_ext
51557 cat >>conftest.$ac_ext <<_ACEOF
51558 /* end confdefs.h.  */
51559 #include <$header>
51560
51561 _ACEOF
51562 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
51563   $EGREP "${ice_re_word}writev[         ]*\(" >/dev/null 2>&1; then
51564   ice_cv_have_writev_decl=yes
51565 fi
51566 rm -f conftest*
51567
51568 if test "$ice_cv_have_writev_decl" = yes; then
51569         break
51570 fi
51571 # Check for "fixed" declaration like "getpid _PARAMS((int))"
51572 cat >conftest.$ac_ext <<_ACEOF
51573 /* confdefs.h.  */
51574 _ACEOF
51575 cat confdefs.h >>conftest.$ac_ext
51576 cat >>conftest.$ac_ext <<_ACEOF
51577 /* end confdefs.h.  */
51578 #include <$header>
51579
51580 _ACEOF
51581 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
51582   $EGREP "${ice_re_word}writev[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
51583   ice_cv_have_writev_decl=yes
51584 fi
51585 rm -f conftest*
51586
51587 if test "$ice_cv_have_writev_decl" = yes; then
51588         break
51589 fi
51590 done
51591
51592 fi
51593
51594 echo "$as_me:$LINENO: result: $ice_cv_have_writev_decl" >&5
51595 echo "${ECHO_T}$ice_cv_have_writev_decl" >&6
51596 if test "$ice_cv_have_writev_decl" = yes; then
51597
51598 cat >>confdefs.h <<_ACEOF
51599 #define HAVE_WRITEV_DECL 1
51600 _ACEOF
51601
51602 fi
51603 fi
51604
51605
51606 for ac_func in strcasecmp
51607 do
51608 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51609 echo "$as_me:$LINENO: checking for $ac_func" >&5
51610 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51611 if eval "test \"\${$as_ac_var+set}\" = set"; then
51612   echo $ECHO_N "(cached) $ECHO_C" >&6
51613 else
51614   cat >conftest.$ac_ext <<_ACEOF
51615 /* confdefs.h.  */
51616 _ACEOF
51617 cat confdefs.h >>conftest.$ac_ext
51618 cat >>conftest.$ac_ext <<_ACEOF
51619 /* end confdefs.h.  */
51620 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51621    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
51622 #define $ac_func innocuous_$ac_func
51623
51624 /* System header to define __stub macros and hopefully few prototypes,
51625     which can conflict with char $ac_func (); below.
51626     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51627     <limits.h> exists even on freestanding compilers.  */
51628
51629 #ifdef __STDC__
51630 # include <limits.h>
51631 #else
51632 # include <assert.h>
51633 #endif
51634
51635 #undef $ac_func
51636
51637 /* Override any gcc2 internal prototype to avoid an error.  */
51638 #ifdef __cplusplus
51639 extern "C"
51640 {
51641 #endif
51642 /* We use char because int might match the return type of a gcc2
51643    builtin and then its argument prototype would still apply.  */
51644 char $ac_func ();
51645 /* The GNU C library defines this for functions which it implements
51646     to always fail with ENOSYS.  Some functions are actually named
51647     something starting with __ and the normal name is an alias.  */
51648 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51649 choke me
51650 #else
51651 char (*f) () = $ac_func;
51652 #endif
51653 #ifdef __cplusplus
51654 }
51655 #endif
51656
51657 int
51658 main ()
51659 {
51660 return f != $ac_func;
51661   ;
51662   return 0;
51663 }
51664 _ACEOF
51665 rm -f conftest.$ac_objext conftest$ac_exeext
51666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51667   (eval $ac_link) 2>conftest.er1
51668   ac_status=$?
51669   grep -v '^ *+' conftest.er1 >conftest.err
51670   rm -f conftest.er1
51671   cat conftest.err >&5
51672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51673   (exit $ac_status); } &&
51674          { ac_try='test -z "$ac_c_werror_flag"
51675                          || test ! -s conftest.err'
51676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51677   (eval $ac_try) 2>&5
51678   ac_status=$?
51679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51680   (exit $ac_status); }; } &&
51681          { ac_try='test -s conftest$ac_exeext'
51682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51683   (eval $ac_try) 2>&5
51684   ac_status=$?
51685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51686   (exit $ac_status); }; }; then
51687   eval "$as_ac_var=yes"
51688 else
51689   echo "$as_me: failed program was:" >&5
51690 sed 's/^/| /' conftest.$ac_ext >&5
51691
51692 eval "$as_ac_var=no"
51693 fi
51694 rm -f conftest.err conftest.$ac_objext \
51695       conftest$ac_exeext conftest.$ac_ext
51696 fi
51697 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51698 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51699 if test `eval echo '${'$as_ac_var'}'` = yes; then
51700   cat >>confdefs.h <<_ACEOF
51701 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51702 _ACEOF
51703
51704 else
51705   case $LIBOBJS in
51706     "$ac_func.$ac_objext"   | \
51707   *" $ac_func.$ac_objext"   | \
51708     "$ac_func.$ac_objext "* | \
51709   *" $ac_func.$ac_objext "* ) ;;
51710   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
51711 esac
51712
51713 fi
51714 done
51715
51716
51717
51718 ice_have_strcasecmp=no
51719
51720 for ac_func in strcasecmp
51721 do
51722 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51723 echo "$as_me:$LINENO: checking for $ac_func" >&5
51724 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51725 if eval "test \"\${$as_ac_var+set}\" = set"; then
51726   echo $ECHO_N "(cached) $ECHO_C" >&6
51727 else
51728   cat >conftest.$ac_ext <<_ACEOF
51729 /* confdefs.h.  */
51730 _ACEOF
51731 cat confdefs.h >>conftest.$ac_ext
51732 cat >>conftest.$ac_ext <<_ACEOF
51733 /* end confdefs.h.  */
51734 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51735    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
51736 #define $ac_func innocuous_$ac_func
51737
51738 /* System header to define __stub macros and hopefully few prototypes,
51739     which can conflict with char $ac_func (); below.
51740     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51741     <limits.h> exists even on freestanding compilers.  */
51742
51743 #ifdef __STDC__
51744 # include <limits.h>
51745 #else
51746 # include <assert.h>
51747 #endif
51748
51749 #undef $ac_func
51750
51751 /* Override any gcc2 internal prototype to avoid an error.  */
51752 #ifdef __cplusplus
51753 extern "C"
51754 {
51755 #endif
51756 /* We use char because int might match the return type of a gcc2
51757    builtin and then its argument prototype would still apply.  */
51758 char $ac_func ();
51759 /* The GNU C library defines this for functions which it implements
51760     to always fail with ENOSYS.  Some functions are actually named
51761     something starting with __ and the normal name is an alias.  */
51762 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51763 choke me
51764 #else
51765 char (*f) () = $ac_func;
51766 #endif
51767 #ifdef __cplusplus
51768 }
51769 #endif
51770
51771 int
51772 main ()
51773 {
51774 return f != $ac_func;
51775   ;
51776   return 0;
51777 }
51778 _ACEOF
51779 rm -f conftest.$ac_objext conftest$ac_exeext
51780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51781   (eval $ac_link) 2>conftest.er1
51782   ac_status=$?
51783   grep -v '^ *+' conftest.er1 >conftest.err
51784   rm -f conftest.er1
51785   cat conftest.err >&5
51786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51787   (exit $ac_status); } &&
51788          { ac_try='test -z "$ac_c_werror_flag"
51789                          || test ! -s conftest.err'
51790   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51791   (eval $ac_try) 2>&5
51792   ac_status=$?
51793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51794   (exit $ac_status); }; } &&
51795          { ac_try='test -s conftest$ac_exeext'
51796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51797   (eval $ac_try) 2>&5
51798   ac_status=$?
51799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51800   (exit $ac_status); }; }; then
51801   eval "$as_ac_var=yes"
51802 else
51803   echo "$as_me: failed program was:" >&5
51804 sed 's/^/| /' conftest.$ac_ext >&5
51805
51806 eval "$as_ac_var=no"
51807 fi
51808 rm -f conftest.err conftest.$ac_objext \
51809       conftest$ac_exeext conftest.$ac_ext
51810 fi
51811 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51812 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51813 if test `eval echo '${'$as_ac_var'}'` = yes; then
51814   cat >>confdefs.h <<_ACEOF
51815 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51816 _ACEOF
51817  ice_have_strcasecmp=yes
51818 fi
51819 done
51820
51821 if test "${ice_have_strcasecmp}" = yes; then
51822 echo "$as_me:$LINENO: checking for strcasecmp declaration in string.h strings.h" >&5
51823 echo $ECHO_N "checking for strcasecmp declaration in string.h strings.h... $ECHO_C" >&6
51824 if test "${ice_cv_have_strcasecmp_decl+set}" = set; then
51825   echo $ECHO_N "(cached) $ECHO_C" >&6
51826 else
51827
51828 ice_cv_have_strcasecmp_decl=no
51829 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
51830 ice_re_word='(^|[^a-zA-Z0-9_])'
51831 for header in string.h strings.h; do
51832 # Check for ordinary declaration
51833 cat >conftest.$ac_ext <<_ACEOF
51834 /* confdefs.h.  */
51835 _ACEOF
51836 cat confdefs.h >>conftest.$ac_ext
51837 cat >>conftest.$ac_ext <<_ACEOF
51838 /* end confdefs.h.  */
51839 #include <$header>
51840
51841 _ACEOF
51842 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
51843   $EGREP "${ice_re_word}strcasecmp[     ]*\(" >/dev/null 2>&1; then
51844   ice_cv_have_strcasecmp_decl=yes
51845 fi
51846 rm -f conftest*
51847
51848 if test "$ice_cv_have_strcasecmp_decl" = yes; then
51849         break
51850 fi
51851 # Check for "fixed" declaration like "getpid _PARAMS((int))"
51852 cat >conftest.$ac_ext <<_ACEOF
51853 /* confdefs.h.  */
51854 _ACEOF
51855 cat confdefs.h >>conftest.$ac_ext
51856 cat >>conftest.$ac_ext <<_ACEOF
51857 /* end confdefs.h.  */
51858 #include <$header>
51859
51860 _ACEOF
51861 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
51862   $EGREP "${ice_re_word}strcasecmp[     ]*$ice_re_params\(\(" >/dev/null 2>&1; then
51863   ice_cv_have_strcasecmp_decl=yes
51864 fi
51865 rm -f conftest*
51866
51867 if test "$ice_cv_have_strcasecmp_decl" = yes; then
51868         break
51869 fi
51870 done
51871
51872 fi
51873
51874 echo "$as_me:$LINENO: result: $ice_cv_have_strcasecmp_decl" >&5
51875 echo "${ECHO_T}$ice_cv_have_strcasecmp_decl" >&6
51876 if test "$ice_cv_have_strcasecmp_decl" = yes; then
51877
51878 cat >>confdefs.h <<_ACEOF
51879 #define HAVE_STRCASECMP_DECL 1
51880 _ACEOF
51881
51882 fi
51883 fi
51884
51885
51886
51887 for ac_func in fnmatch
51888 do
51889 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51890 echo "$as_me:$LINENO: checking for $ac_func" >&5
51891 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51892 if eval "test \"\${$as_ac_var+set}\" = set"; then
51893   echo $ECHO_N "(cached) $ECHO_C" >&6
51894 else
51895   cat >conftest.$ac_ext <<_ACEOF
51896 /* confdefs.h.  */
51897 _ACEOF
51898 cat confdefs.h >>conftest.$ac_ext
51899 cat >>conftest.$ac_ext <<_ACEOF
51900 /* end confdefs.h.  */
51901 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51902    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
51903 #define $ac_func innocuous_$ac_func
51904
51905 /* System header to define __stub macros and hopefully few prototypes,
51906     which can conflict with char $ac_func (); below.
51907     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51908     <limits.h> exists even on freestanding compilers.  */
51909
51910 #ifdef __STDC__
51911 # include <limits.h>
51912 #else
51913 # include <assert.h>
51914 #endif
51915
51916 #undef $ac_func
51917
51918 /* Override any gcc2 internal prototype to avoid an error.  */
51919 #ifdef __cplusplus
51920 extern "C"
51921 {
51922 #endif
51923 /* We use char because int might match the return type of a gcc2
51924    builtin and then its argument prototype would still apply.  */
51925 char $ac_func ();
51926 /* The GNU C library defines this for functions which it implements
51927     to always fail with ENOSYS.  Some functions are actually named
51928     something starting with __ and the normal name is an alias.  */
51929 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51930 choke me
51931 #else
51932 char (*f) () = $ac_func;
51933 #endif
51934 #ifdef __cplusplus
51935 }
51936 #endif
51937
51938 int
51939 main ()
51940 {
51941 return f != $ac_func;
51942   ;
51943   return 0;
51944 }
51945 _ACEOF
51946 rm -f conftest.$ac_objext conftest$ac_exeext
51947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51948   (eval $ac_link) 2>conftest.er1
51949   ac_status=$?
51950   grep -v '^ *+' conftest.er1 >conftest.err
51951   rm -f conftest.er1
51952   cat conftest.err >&5
51953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51954   (exit $ac_status); } &&
51955          { ac_try='test -z "$ac_c_werror_flag"
51956                          || test ! -s conftest.err'
51957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51958   (eval $ac_try) 2>&5
51959   ac_status=$?
51960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51961   (exit $ac_status); }; } &&
51962          { ac_try='test -s conftest$ac_exeext'
51963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51964   (eval $ac_try) 2>&5
51965   ac_status=$?
51966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51967   (exit $ac_status); }; }; then
51968   eval "$as_ac_var=yes"
51969 else
51970   echo "$as_me: failed program was:" >&5
51971 sed 's/^/| /' conftest.$ac_ext >&5
51972
51973 eval "$as_ac_var=no"
51974 fi
51975 rm -f conftest.err conftest.$ac_objext \
51976       conftest$ac_exeext conftest.$ac_ext
51977 fi
51978 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51979 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51980 if test `eval echo '${'$as_ac_var'}'` = yes; then
51981   cat >>confdefs.h <<_ACEOF
51982 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51983 _ACEOF
51984
51985 fi
51986 done
51987
51988
51989 # Check whether --enable-largefile or --disable-largefile was given.
51990 if test "${enable_largefile+set}" = set; then
51991   enableval="$enable_largefile"
51992
51993 fi;
51994 if test "$enable_largefile" != no; then
51995
51996   echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
51997 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
51998 if test "${ac_cv_sys_largefile_CC+set}" = set; then
51999   echo $ECHO_N "(cached) $ECHO_C" >&6
52000 else
52001   ac_cv_sys_largefile_CC=no
52002      if test "$GCC" != yes; then
52003        ac_save_CC=$CC
52004        while :; do
52005          # IRIX 6.2 and later do not support large files by default,
52006          # so use the C compiler's -n32 option if that helps.
52007          cat >conftest.$ac_ext <<_ACEOF
52008 /* confdefs.h.  */
52009 _ACEOF
52010 cat confdefs.h >>conftest.$ac_ext
52011 cat >>conftest.$ac_ext <<_ACEOF
52012 /* end confdefs.h.  */
52013 #include <sys/types.h>
52014  /* Check that off_t can represent 2**63 - 1 correctly.
52015     We can't simply define LARGE_OFF_T to be 9223372036854775807,
52016     since some C++ compilers masquerading as C compilers
52017     incorrectly reject 9223372036854775807.  */
52018 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
52019   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
52020                        && LARGE_OFF_T % 2147483647 == 1)
52021                       ? 1 : -1];
52022 int
52023 main ()
52024 {
52025
52026   ;
52027   return 0;
52028 }
52029 _ACEOF
52030          rm -f conftest.$ac_objext
52031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
52032   (eval $ac_compile) 2>conftest.er1
52033   ac_status=$?
52034   grep -v '^ *+' conftest.er1 >conftest.err
52035   rm -f conftest.er1
52036   cat conftest.err >&5
52037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52038   (exit $ac_status); } &&
52039          { ac_try='test -z "$ac_c_werror_flag"
52040                          || test ! -s conftest.err'
52041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52042   (eval $ac_try) 2>&5
52043   ac_status=$?
52044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52045   (exit $ac_status); }; } &&
52046          { ac_try='test -s conftest.$ac_objext'
52047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52048   (eval $ac_try) 2>&5
52049   ac_status=$?
52050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52051   (exit $ac_status); }; }; then
52052   break
52053 else
52054   echo "$as_me: failed program was:" >&5
52055 sed 's/^/| /' conftest.$ac_ext >&5
52056
52057 fi
52058 rm -f conftest.err conftest.$ac_objext
52059          CC="$CC -n32"
52060          rm -f conftest.$ac_objext
52061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
52062   (eval $ac_compile) 2>conftest.er1
52063   ac_status=$?
52064   grep -v '^ *+' conftest.er1 >conftest.err
52065   rm -f conftest.er1
52066   cat conftest.err >&5
52067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52068   (exit $ac_status); } &&
52069          { ac_try='test -z "$ac_c_werror_flag"
52070                          || test ! -s conftest.err'
52071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52072   (eval $ac_try) 2>&5
52073   ac_status=$?
52074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52075   (exit $ac_status); }; } &&
52076          { ac_try='test -s conftest.$ac_objext'
52077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52078   (eval $ac_try) 2>&5
52079   ac_status=$?
52080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52081   (exit $ac_status); }; }; then
52082   ac_cv_sys_largefile_CC=' -n32'; break
52083 else
52084   echo "$as_me: failed program was:" >&5
52085 sed 's/^/| /' conftest.$ac_ext >&5
52086
52087 fi
52088 rm -f conftest.err conftest.$ac_objext
52089          break
52090        done
52091        CC=$ac_save_CC
52092        rm -f conftest.$ac_ext
52093     fi
52094 fi
52095 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
52096 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
52097   if test "$ac_cv_sys_largefile_CC" != no; then
52098     CC=$CC$ac_cv_sys_largefile_CC
52099   fi
52100
52101   echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
52102 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
52103 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
52104   echo $ECHO_N "(cached) $ECHO_C" >&6
52105 else
52106   while :; do
52107   ac_cv_sys_file_offset_bits=no
52108   cat >conftest.$ac_ext <<_ACEOF
52109 /* confdefs.h.  */
52110 _ACEOF
52111 cat confdefs.h >>conftest.$ac_ext
52112 cat >>conftest.$ac_ext <<_ACEOF
52113 /* end confdefs.h.  */
52114 #include <sys/types.h>
52115  /* Check that off_t can represent 2**63 - 1 correctly.
52116     We can't simply define LARGE_OFF_T to be 9223372036854775807,
52117     since some C++ compilers masquerading as C compilers
52118     incorrectly reject 9223372036854775807.  */
52119 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
52120   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
52121                        && LARGE_OFF_T % 2147483647 == 1)
52122                       ? 1 : -1];
52123 int
52124 main ()
52125 {
52126
52127   ;
52128   return 0;
52129 }
52130 _ACEOF
52131 rm -f conftest.$ac_objext
52132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
52133   (eval $ac_compile) 2>conftest.er1
52134   ac_status=$?
52135   grep -v '^ *+' conftest.er1 >conftest.err
52136   rm -f conftest.er1
52137   cat conftest.err >&5
52138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52139   (exit $ac_status); } &&
52140          { ac_try='test -z "$ac_c_werror_flag"
52141                          || test ! -s conftest.err'
52142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52143   (eval $ac_try) 2>&5
52144   ac_status=$?
52145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52146   (exit $ac_status); }; } &&
52147          { ac_try='test -s conftest.$ac_objext'
52148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52149   (eval $ac_try) 2>&5
52150   ac_status=$?
52151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52152   (exit $ac_status); }; }; then
52153   break
52154 else
52155   echo "$as_me: failed program was:" >&5
52156 sed 's/^/| /' conftest.$ac_ext >&5
52157
52158 fi
52159 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
52160   cat >conftest.$ac_ext <<_ACEOF
52161 /* confdefs.h.  */
52162 _ACEOF
52163 cat confdefs.h >>conftest.$ac_ext
52164 cat >>conftest.$ac_ext <<_ACEOF
52165 /* end confdefs.h.  */
52166 #define _FILE_OFFSET_BITS 64
52167 #include <sys/types.h>
52168  /* Check that off_t can represent 2**63 - 1 correctly.
52169     We can't simply define LARGE_OFF_T to be 9223372036854775807,
52170     since some C++ compilers masquerading as C compilers
52171     incorrectly reject 9223372036854775807.  */
52172 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
52173   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
52174                        && LARGE_OFF_T % 2147483647 == 1)
52175                       ? 1 : -1];
52176 int
52177 main ()
52178 {
52179
52180   ;
52181   return 0;
52182 }
52183 _ACEOF
52184 rm -f conftest.$ac_objext
52185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
52186   (eval $ac_compile) 2>conftest.er1
52187   ac_status=$?
52188   grep -v '^ *+' conftest.er1 >conftest.err
52189   rm -f conftest.er1
52190   cat conftest.err >&5
52191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52192   (exit $ac_status); } &&
52193          { ac_try='test -z "$ac_c_werror_flag"
52194                          || test ! -s conftest.err'
52195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52196   (eval $ac_try) 2>&5
52197   ac_status=$?
52198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52199   (exit $ac_status); }; } &&
52200          { ac_try='test -s conftest.$ac_objext'
52201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52202   (eval $ac_try) 2>&5
52203   ac_status=$?
52204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52205   (exit $ac_status); }; }; then
52206   ac_cv_sys_file_offset_bits=64; break
52207 else
52208   echo "$as_me: failed program was:" >&5
52209 sed 's/^/| /' conftest.$ac_ext >&5
52210
52211 fi
52212 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
52213   break
52214 done
52215 fi
52216 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
52217 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
52218 if test "$ac_cv_sys_file_offset_bits" != no; then
52219
52220 cat >>confdefs.h <<_ACEOF
52221 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
52222 _ACEOF
52223
52224 fi
52225 rm -f conftest*
52226   echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
52227 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
52228 if test "${ac_cv_sys_large_files+set}" = set; then
52229   echo $ECHO_N "(cached) $ECHO_C" >&6
52230 else
52231   while :; do
52232   ac_cv_sys_large_files=no
52233   cat >conftest.$ac_ext <<_ACEOF
52234 /* confdefs.h.  */
52235 _ACEOF
52236 cat confdefs.h >>conftest.$ac_ext
52237 cat >>conftest.$ac_ext <<_ACEOF
52238 /* end confdefs.h.  */
52239 #include <sys/types.h>
52240  /* Check that off_t can represent 2**63 - 1 correctly.
52241     We can't simply define LARGE_OFF_T to be 9223372036854775807,
52242     since some C++ compilers masquerading as C compilers
52243     incorrectly reject 9223372036854775807.  */
52244 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
52245   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
52246                        && LARGE_OFF_T % 2147483647 == 1)
52247                       ? 1 : -1];
52248 int
52249 main ()
52250 {
52251
52252   ;
52253   return 0;
52254 }
52255 _ACEOF
52256 rm -f conftest.$ac_objext
52257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
52258   (eval $ac_compile) 2>conftest.er1
52259   ac_status=$?
52260   grep -v '^ *+' conftest.er1 >conftest.err
52261   rm -f conftest.er1
52262   cat conftest.err >&5
52263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52264   (exit $ac_status); } &&
52265          { ac_try='test -z "$ac_c_werror_flag"
52266                          || test ! -s conftest.err'
52267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52268   (eval $ac_try) 2>&5
52269   ac_status=$?
52270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52271   (exit $ac_status); }; } &&
52272          { ac_try='test -s conftest.$ac_objext'
52273   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52274   (eval $ac_try) 2>&5
52275   ac_status=$?
52276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52277   (exit $ac_status); }; }; then
52278   break
52279 else
52280   echo "$as_me: failed program was:" >&5
52281 sed 's/^/| /' conftest.$ac_ext >&5
52282
52283 fi
52284 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
52285   cat >conftest.$ac_ext <<_ACEOF
52286 /* confdefs.h.  */
52287 _ACEOF
52288 cat confdefs.h >>conftest.$ac_ext
52289 cat >>conftest.$ac_ext <<_ACEOF
52290 /* end confdefs.h.  */
52291 #define _LARGE_FILES 1
52292 #include <sys/types.h>
52293  /* Check that off_t can represent 2**63 - 1 correctly.
52294     We can't simply define LARGE_OFF_T to be 9223372036854775807,
52295     since some C++ compilers masquerading as C compilers
52296     incorrectly reject 9223372036854775807.  */
52297 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
52298   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
52299                        && LARGE_OFF_T % 2147483647 == 1)
52300                       ? 1 : -1];
52301 int
52302 main ()
52303 {
52304
52305   ;
52306   return 0;
52307 }
52308 _ACEOF
52309 rm -f conftest.$ac_objext
52310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
52311   (eval $ac_compile) 2>conftest.er1
52312   ac_status=$?
52313   grep -v '^ *+' conftest.er1 >conftest.err
52314   rm -f conftest.er1
52315   cat conftest.err >&5
52316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52317   (exit $ac_status); } &&
52318          { ac_try='test -z "$ac_c_werror_flag"
52319                          || test ! -s conftest.err'
52320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52321   (eval $ac_try) 2>&5
52322   ac_status=$?
52323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52324   (exit $ac_status); }; } &&
52325          { ac_try='test -s conftest.$ac_objext'
52326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52327   (eval $ac_try) 2>&5
52328   ac_status=$?
52329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52330   (exit $ac_status); }; }; then
52331   ac_cv_sys_large_files=1; break
52332 else
52333   echo "$as_me: failed program was:" >&5
52334 sed 's/^/| /' conftest.$ac_ext >&5
52335
52336 fi
52337 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
52338   break
52339 done
52340 fi
52341 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
52342 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
52343 if test "$ac_cv_sys_large_files" != no; then
52344
52345 cat >>confdefs.h <<_ACEOF
52346 #define _LARGE_FILES $ac_cv_sys_large_files
52347 _ACEOF
52348
52349 fi
52350 rm -f conftest*
52351 fi
52352
52353
52354 echo "$as_me:$LINENO: checking disk device prefixes" >&5
52355 echo $ECHO_N "checking disk device prefixes... $ECHO_C" >&6
52356 dfline=`(
52357     df / | while read line; do
52358         set -- $line
52359         while test $# -gt 0; do
52360             if test "x$1" = "x/"; then
52361                 echo $line
52362                 break 2
52363             fi
52364             shift
52365         done
52366     done
52367 ) | sed 's/(//' | sed 's/)//' `
52368
52369 mount=`(
52370     set -- $dfline
52371     while test $# -gt 0; do
52372         if expr "$1" : '.*dev' >/dev/null 2>&1; then
52373             echo $1
52374             break
52375         fi
52376         shift
52377     done
52378 )`
52379
52380 if test "$DEV_PREFIX" && test "$RDEV_PREFIX"; then
52381     echo "$as_me:$LINENO: result: (predefined) $DEV_PREFIX - $RDEV_PREFIX" >&5
52382 echo "${ECHO_T}(predefined) $DEV_PREFIX - $RDEV_PREFIX" >&6
52383 else
52384     if test -d /dev/dsk; then
52385         DEV_PREFIX=/dev/dsk/
52386         if test -d /dev/rdsk; then
52387             RDEV_PREFIX=/dev/rdsk/
52388         else
52389             RDEV_PREFIX=/dev/dsk/
52390         fi
52391     elif test -d /dev; then
52392         case "$target" in
52393             *-sni-sysv4)
52394                 dev_prefix=/dev/dsk/
52395                 rdev_prefix=/dev/rdsk/
52396                 { echo "$as_me:$LINENO: WARNING: \"*** Run amsinixfixdevs on Sinix systems using VxFS.\"" >&5
52397 echo "$as_me: WARNING: \"*** Run amsinixfixdevs on Sinix systems using VxFS.\"" >&2;}
52398                 ;;
52399
52400             *)
52401                 DEV_PREFIX=/dev/
52402                 # Some systems, notably Linux, do not have raw disk devices
52403                 # names.  Check this by trying to see if a raw disk device name
52404                 # exists using the normal raw device path prepended to the
52405                 # mount point of the root filesystem.
52406                 if test "$mount"; then
52407                     dev_name="/dev/r`basename $mount`"
52408                     if test -b $dev_name -o -c $dev_name; then
52409                         RDEV_PREFIX=/dev/r
52410                     else
52411                         RDEV_PREFIX=/dev/
52412                     fi
52413                 else
52414                     RDEV_PREFIX=/dev/r
52415                 fi
52416                 ;;
52417         esac
52418     else
52419         DEV_PREFIX=/
52420         RDEV_PREFIX=/
52421     fi
52422     echo "$as_me:$LINENO: result: $DEV_PREFIX - $RDEV_PREFIX" >&5
52423 echo "${ECHO_T}$DEV_PREFIX - $RDEV_PREFIX" >&6
52424 fi
52425
52426
52427 cat >>confdefs.h <<_ACEOF
52428 #define DEV_PREFIX "${DEV_PREFIX}"
52429 _ACEOF
52430
52431
52432 cat >>confdefs.h <<_ACEOF
52433 #define RDEV_PREFIX "${RDEV_PREFIX}"
52434 _ACEOF
52435
52436
52437 case $mount in
52438     /dev/vg*)
52439         { echo "$as_me:$LINENO: WARNING: \"*** Run amhpfixdevs on HP-UX systems using /dev/vg??.\"" >&5
52440 echo "$as_me: WARNING: \"*** Run amhpfixdevs on HP-UX systems using /dev/vg??.\"" >&2;}
52441         ;;
52442 esac
52443
52444 echo "$as_me:$LINENO: checking whether posix fcntl locking works" >&5
52445 echo $ECHO_N "checking whether posix fcntl locking works... $ECHO_C" >&6
52446 if test "${amanda_cv_posix_filelocking+set}" = set; then
52447   echo $ECHO_N "(cached) $ECHO_C" >&6
52448 else
52449
52450         if test "$cross_compiling" = yes; then
52451
52452         amanda_cv_posix_filelocking="no (cannot run test)"
52453
52454 else
52455   cat >conftest.$ac_ext <<_ACEOF
52456 /* confdefs.h.  */
52457 _ACEOF
52458 cat confdefs.h >>conftest.$ac_ext
52459 cat >>conftest.$ac_ext <<_ACEOF
52460 /* end confdefs.h.  */
52461
52462 #undef  ASSERTIONS
52463 #define CONFIGURE_TEST
52464 #define USE_POSIX_FCNTL
52465 #include "${srcdir-.}/common-src/amflock.c"
52466
52467 _ACEOF
52468 rm -f conftest$ac_exeext
52469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52470   (eval $ac_link) 2>&5
52471   ac_status=$?
52472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52473   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
52474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52475   (eval $ac_try) 2>&5
52476   ac_status=$?
52477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52478   (exit $ac_status); }; }; then
52479
52480         amanda_cv_posix_filelocking=yes
52481
52482 else
52483   echo "$as_me: program exited with status $ac_status" >&5
52484 echo "$as_me: failed program was:" >&5
52485 sed 's/^/| /' conftest.$ac_ext >&5
52486
52487 ( exit $ac_status )
52488
52489         amanda_cv_posix_filelocking="no"
52490
52491 fi
52492 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
52493 fi
52494     rm -f /tmp/conftest.lock
52495
52496 fi
52497 echo "$as_me:$LINENO: result: $amanda_cv_posix_filelocking" >&5
52498 echo "${ECHO_T}$amanda_cv_posix_filelocking" >&6
52499 if test "x$amanda_cv_posix_filelocking" = xyes; then
52500
52501 cat >>confdefs.h <<\_ACEOF
52502 #define USE_POSIX_FCNTL 1
52503 _ACEOF
52504
52505     HAS_WORKING_FILE_LOCK=1
52506 fi
52507
52508 if test -z "$HAS_WORKING_FILE_LOCK"; then
52509     echo "$as_me:$LINENO: checking whether flock locking works" >&5
52510 echo $ECHO_N "checking whether flock locking works... $ECHO_C" >&6
52511 if test "${amanda_cv_flock_filelocking+set}" = set; then
52512   echo $ECHO_N "(cached) $ECHO_C" >&6
52513 else
52514
52515             if test "$cross_compiling" = yes; then
52516
52517                     amanda_cv_flock_filelocking="no (cannot run test)"
52518
52519 else
52520   cat >conftest.$ac_ext <<_ACEOF
52521 /* confdefs.h.  */
52522 _ACEOF
52523 cat confdefs.h >>conftest.$ac_ext
52524 cat >>conftest.$ac_ext <<_ACEOF
52525 /* end confdefs.h.  */
52526
52527 #undef  ASSERTIONS
52528 #define CONFIGURE_TEST
52529 #define USE_FLOCK
52530 #include "${srcdir-.}/common-src/amflock.c"
52531
52532 _ACEOF
52533 rm -f conftest$ac_exeext
52534 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52535   (eval $ac_link) 2>&5
52536   ac_status=$?
52537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52538   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
52539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52540   (eval $ac_try) 2>&5
52541   ac_status=$?
52542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52543   (exit $ac_status); }; }; then
52544
52545                     amanda_cv_flock_filelocking="yes"
52546
52547 else
52548   echo "$as_me: program exited with status $ac_status" >&5
52549 echo "$as_me: failed program was:" >&5
52550 sed 's/^/| /' conftest.$ac_ext >&5
52551
52552 ( exit $ac_status )
52553
52554                     amanda_cv_flock_filelocking="no"
52555
52556 fi
52557 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
52558 fi
52559         rm -f /tmp/conftest.lock
52560
52561 fi
52562 echo "$as_me:$LINENO: result: $amanda_cv_flock_filelocking" >&5
52563 echo "${ECHO_T}$amanda_cv_flock_filelocking" >&6
52564     if test "x$amanda_cv_flock_filelocking" = xyes; then
52565
52566 cat >>confdefs.h <<\_ACEOF
52567 #define USE_FLOCK 1
52568 _ACEOF
52569
52570         HAS_WORKING_FILE_LOCK=1
52571     fi
52572 fi
52573
52574 if test -z "$HAS_WORKING_FILE_LOCK"; then
52575     echo "$as_me:$LINENO: checking whether lockf locking works" >&5
52576 echo $ECHO_N "checking whether lockf locking works... $ECHO_C" >&6
52577 if test "${amanda_cv_lockf_filelocking+set}" = set; then
52578   echo $ECHO_N "(cached) $ECHO_C" >&6
52579 else
52580
52581             if test "$cross_compiling" = yes; then
52582
52583                     amanda_cv_lockf_filelocking="no (cannot run test)"
52584
52585 else
52586   cat >conftest.$ac_ext <<_ACEOF
52587 /* confdefs.h.  */
52588 _ACEOF
52589 cat confdefs.h >>conftest.$ac_ext
52590 cat >>conftest.$ac_ext <<_ACEOF
52591 /* end confdefs.h.  */
52592
52593 #undef  ASSERTIONS
52594 #define CONFIGURE_TEST
52595 #define USE_LOCKF
52596 #include "${srcdir-.}/common-src/amflock.c"
52597
52598 _ACEOF
52599 rm -f conftest$ac_exeext
52600 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52601   (eval $ac_link) 2>&5
52602   ac_status=$?
52603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52604   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
52605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52606   (eval $ac_try) 2>&5
52607   ac_status=$?
52608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52609   (exit $ac_status); }; }; then
52610
52611                     amanda_cv_lockf_filelocking="yes"
52612
52613 else
52614   echo "$as_me: program exited with status $ac_status" >&5
52615 echo "$as_me: failed program was:" >&5
52616 sed 's/^/| /' conftest.$ac_ext >&5
52617
52618 ( exit $ac_status )
52619
52620                     amanda_cv_lockf_filelocking="no"
52621
52622 fi
52623 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
52624 fi
52625         rm -f /tmp/conftest.lock
52626
52627 fi
52628 echo "$as_me:$LINENO: result: $amanda_cv_lockf_filelocking" >&5
52629 echo "${ECHO_T}$amanda_cv_lockf_filelocking" >&6
52630     if test "x$amanda_cv_lockf_filelocking" = xyes; then
52631
52632 cat >>confdefs.h <<\_ACEOF
52633 #define USE_LOCKF 1
52634 _ACEOF
52635
52636         HAS_WORKING_FILE_LOCK=1
52637     fi
52638 fi
52639
52640 if test -z "$HAS_WORKING_FILE_LOCK"; then
52641     echo "$as_me:$LINENO: checking whether lnlock locking works" >&5
52642 echo $ECHO_N "checking whether lnlock locking works... $ECHO_C" >&6
52643 if test "${amanda_cv_lnlock_filelocking+set}" = set; then
52644   echo $ECHO_N "(cached) $ECHO_C" >&6
52645 else
52646
52647             if test "$cross_compiling" = yes; then
52648
52649                     amanda_cv_lnlock_filelocking="no (cannot run test)"
52650
52651 else
52652   cat >conftest.$ac_ext <<_ACEOF
52653 /* confdefs.h.  */
52654 _ACEOF
52655 cat confdefs.h >>conftest.$ac_ext
52656 cat >>conftest.$ac_ext <<_ACEOF
52657 /* end confdefs.h.  */
52658
52659 #undef  ASSERTIONS
52660 #define CONFIGURE_TEST
52661 #define USE_LNLOCK
52662 #include "${srcdir-.}/common-src/amflock.c"
52663 #include "${srcdir-.}/common-src/alloc.c"
52664 #include "${srcdir-.}/common-src/error.c"
52665 #include "${srcdir-.}/common-src/snprintf.c"
52666
52667 _ACEOF
52668 rm -f conftest$ac_exeext
52669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
52670   (eval $ac_link) 2>&5
52671   ac_status=$?
52672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52673   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
52674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
52675   (eval $ac_try) 2>&5
52676   ac_status=$?
52677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52678   (exit $ac_status); }; }; then
52679
52680                     amanda_cv_lnlock_filelocking="yes"
52681
52682 else
52683   echo "$as_me: program exited with status $ac_status" >&5
52684 echo "$as_me: failed program was:" >&5
52685 sed 's/^/| /' conftest.$ac_ext >&5
52686
52687 ( exit $ac_status )
52688
52689                     amanda_cv_lnlock_filelocking="no"
52690
52691 fi
52692 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
52693 fi
52694         rm -f /tmp/conftest.lock
52695
52696 fi
52697 echo "$as_me:$LINENO: result: $amanda_cv_lnlock_filelocking" >&5
52698 echo "${ECHO_T}$amanda_cv_lnlock_filelocking" >&6
52699     if test "x$amanda_cv_lnlock_filelocking" = xyes; then
52700
52701 cat >>confdefs.h <<\_ACEOF
52702 #define USE_LNLOCK 1
52703 _ACEOF
52704
52705         HAS_WORKING_FILE_LOCK=1
52706     fi
52707 fi
52708
52709 if test -z "$HAS_WORKING_FILE_LOCK"; then
52710     { echo "$as_me:$LINENO: WARNING: *** No working file locking capability found!" >&5
52711 echo "$as_me: WARNING: *** No working file locking capability found!" >&2;}
52712     { echo "$as_me:$LINENO: WARNING: *** Be VERY VERY careful." >&5
52713 echo "$as_me: WARNING: *** Be VERY VERY careful." >&2;}
52714 fi
52715
52716
52717
52718
52719
52720
52721
52722
52723
52724 if test x"$NO_CLIENT_MODE" != x"true"; then
52725   WANT_CLIENT_TRUE=
52726   WANT_CLIENT_FALSE='#'
52727 else
52728   WANT_CLIENT_TRUE='#'
52729   WANT_CLIENT_FALSE=
52730 fi
52731
52732
52733
52734 if test ! -z "$SAMBA_CLIENT"; then
52735   WANT_SAMBA_TRUE=
52736   WANT_SAMBA_FALSE='#'
52737 else
52738   WANT_SAMBA_TRUE='#'
52739   WANT_SAMBA_FALSE=
52740 fi
52741
52742
52743
52744 if test x"$NO_RESTORE_MODE" != x"true"; then
52745   WANT_RESTORE_TRUE=
52746   WANT_RESTORE_FALSE='#'
52747 else
52748   WANT_RESTORE_TRUE='#'
52749   WANT_RESTORE_FALSE=
52750 fi
52751
52752
52753
52754 if test x"$NO_SERVER_MODE" != x"true"; then
52755   WANT_SERVER_TRUE=
52756   WANT_SERVER_FALSE='#'
52757 else
52758   WANT_SERVER_TRUE='#'
52759   WANT_SERVER_FALSE=
52760 fi
52761
52762
52763
52764 if test x"$NO_RECOVER_MODE" != x"true" && test x"$NO_CLIENT_MODE" != x"true"; then
52765   WANT_RECOVER_TRUE=
52766   WANT_RECOVER_FALSE='#'
52767 else
52768   WANT_RECOVER_TRUE='#'
52769   WANT_RECOVER_FALSE=
52770 fi
52771
52772
52773
52774 if test x"$NO_SERVER_MODE" != x"true" || test x"$NO_RESTORE_MODE" != x"true"; then
52775   WANT_TAPE_TRUE=
52776   WANT_TAPE_FALSE='#'
52777 else
52778   WANT_TAPE_TRUE='#'
52779   WANT_TAPE_FALSE=
52780 fi
52781
52782
52783
52784 if test x"$NO_AMPLOT_MODE" != x"true"; then
52785   WANT_AMPLOT_TRUE=
52786   WANT_AMPLOT_FALSE='#'
52787 else
52788   WANT_AMPLOT_TRUE='#'
52789   WANT_AMPLOT_FALSE=
52790 fi
52791
52792
52793
52794 if test x"$NO_SCSI_CHANGER_MODE" != x"true"; then
52795   WANT_CHG_SCSI_TRUE=
52796   WANT_CHG_SCSI_FALSE='#'
52797 else
52798   WANT_CHG_SCSI_TRUE='#'
52799   WANT_CHG_SCSI_FALSE=
52800 fi
52801
52802
52803
52804 if test x"$NO_CHIO_CHANGER_MODE" != x"true"; then
52805   WANT_CHIO_SCSI_TRUE=
52806   WANT_CHIO_SCSI_FALSE='#'
52807 else
52808   WANT_CHIO_SCSI_TRUE='#'
52809   WANT_CHIO_SCSI_FALSE=
52810 fi
52811
52812
52813
52814 if test x"$NEED_RUNTIME_PSEUDO_RELOC" = x"true"; then
52815   WANT_RUNTIME_PSEUDO_RELOC_TRUE=
52816   WANT_RUNTIME_PSEUDO_RELOC_FALSE='#'
52817 else
52818   WANT_RUNTIME_PSEUDO_RELOC_TRUE='#'
52819   WANT_RUNTIME_PSEUDO_RELOC_FALSE=
52820 fi
52821
52822
52823
52824 if test x"$NEED_SETUID_CLIENT" != x"false"; then
52825   WANT_SETUID_CLIENT_TRUE=
52826   WANT_SETUID_CLIENT_FALSE='#'
52827 else
52828   WANT_SETUID_CLIENT_TRUE='#'
52829   WANT_SETUID_CLIENT_FALSE=
52830 fi
52831
52832
52833
52834 if test x"$SSH_SECURITY_SET" = x"true"; then
52835   WANT_SSH_SECURITY_TRUE=
52836   WANT_SSH_SECURITY_FALSE='#'
52837 else
52838   WANT_SSH_SECURITY_TRUE='#'
52839   WANT_SSH_SECURITY_FALSE=
52840 fi
52841
52842
52843 case "${FORCE_USE_RUNDUMP-${USE_RUNDUMP}}" in
52844 y |  ye | yes)
52845 cat >>confdefs.h <<\_ACEOF
52846 #define USE_RUNDUMP 1
52847 _ACEOF
52848 ;;
52849 esac
52850
52851 # This is necessary so that .o files in LIBOBJS are also built via
52852 # the ANSI2KNR-filtering rules.
52853 LIBOBJS=`echo "$LIBOBJS" |
52854              sed 's,\.[^.]* ,$U&,g;s,\.[^.]*$,$U&,'`
52855 LTLIBOBJS=`echo "$LIBOBJS" |
52856            sed 's,\.[^.]* ,.lo ,g;s,\.[^.]*$,.lo,'`
52857
52858
52859 LTALLOCA=`echo "$ALLOCA" | sed 's/\.'"${ac_objext}"'/\.lo/g'`
52860
52861
52862 ## This stuff is needed for the documentation.
52863 DOC_BUILD_DATE=`date '+%d-%m-%Y'`
52864
52865
52866
52867 # Check whether --with-xsltproc or --without-xsltproc was given.
52868 if test "${with_xsltproc+set}" = set; then
52869   withval="$with_xsltproc"
52870    case "$withval" in
52871         y | ye | yes)
52872           USE_XSLTPROC=yes;;
52873         n | no)
52874           USE_XSLTPROC=no;;
52875         *)
52876           USE_XSLTPROC=yes;
52877           XSLTPROC="$withval";;
52878       esac
52879
52880 else
52881    USE_XSLTPROC=maybe;
52882 fi;
52883
52884
52885
52886 # This looks bad, but && and || have equal precedence in shells, so
52887 # actually it's all OK.
52888 if test "$USE_XSLTPROC" = "yes" || test "$USE_XSLTPROC" = "maybe" && \
52889    test -z "$XSLTPROC"; then
52890     # Extract the first word of "xsltproc", so it can be a program name with args.
52891 set dummy xsltproc; ac_word=$2
52892 echo "$as_me:$LINENO: checking for $ac_word" >&5
52893 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
52894 if test "${ac_cv_path_XSLTPROC+set}" = set; then
52895   echo $ECHO_N "(cached) $ECHO_C" >&6
52896 else
52897   case $XSLTPROC in
52898   [\\/]* | ?:[\\/]*)
52899   ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
52900   ;;
52901   *)
52902   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
52903 for as_dir in $PATH
52904 do
52905   IFS=$as_save_IFS
52906   test -z "$as_dir" && as_dir=.
52907   for ac_exec_ext in '' $ac_executable_extensions; do
52908   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
52909     ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
52910     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
52911     break 2
52912   fi
52913 done
52914 done
52915
52916   ;;
52917 esac
52918 fi
52919 XSLTPROC=$ac_cv_path_XSLTPROC
52920
52921 if test -n "$XSLTPROC"; then
52922   echo "$as_me:$LINENO: result: $XSLTPROC" >&5
52923 echo "${ECHO_T}$XSLTPROC" >&6
52924 else
52925   echo "$as_me:$LINENO: result: no" >&5
52926 echo "${ECHO_T}no" >&6
52927 fi
52928
52929     if test -n "$XSLTPROC"; then
52930         USE_XSLTPROC=yes;
52931     else
52932         if test "$USE_XSLTPROC" = yes; then
52933            { { echo "$as_me:$LINENO: error: can't find xsltproc, but running with --with-xsltproc." >&5
52934 echo "$as_me: error: can't find xsltproc, but running with --with-xsltproc." >&2;}
52935    { (exit 1); exit 1; }; }
52936         else
52937            USE_XSLTPROC=no;
52938         fi
52939     fi
52940 fi
52941
52942
52943
52944 if test "$USE_XSLTPROC" = yes; then
52945   HAVE_XSLTPROC_TRUE=
52946   HAVE_XSLTPROC_FALSE='#'
52947 else
52948   HAVE_XSLTPROC_TRUE='#'
52949   HAVE_XSLTPROC_FALSE=
52950 fi
52951
52952
52953                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       ac_config_files="$ac_config_files amplot/amcat.awk amplot/amplot.sh amplot/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 man/Makefile docs/Makefile recover-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 tape-src/Makefile config/Makefile Makefile"
52954
52955 cat >confcache <<\_ACEOF
52956 # This file is a shell script that caches the results of configure
52957 # tests run on this system so they can be shared between configure
52958 # scripts and configure runs, see configure's option --config-cache.
52959 # It is not useful on other systems.  If it contains results you don't
52960 # want to keep, you may remove or edit it.
52961 #
52962 # config.status only pays attention to the cache file if you give it
52963 # the --recheck option to rerun configure.
52964 #
52965 # `ac_cv_env_foo' variables (set or unset) will be overridden when
52966 # loading this file, other *unset* `ac_cv_foo' will be assigned the
52967 # following values.
52968
52969 _ACEOF
52970
52971 # The following way of writing the cache mishandles newlines in values,
52972 # but we know of no workaround that is simple, portable, and efficient.
52973 # So, don't put newlines in cache variables' values.
52974 # Ultrix sh set writes to stderr and can't be redirected directly,
52975 # and sets the high bit in the cache file unless we assign to the vars.
52976 {
52977   (set) 2>&1 |
52978     case `(ac_space=' '; set | grep ac_space) 2>&1` in
52979     *ac_space=\ *)
52980       # `set' does not quote correctly, so add quotes (double-quote
52981       # substitution turns \\\\ into \\, and sed turns \\ into \).
52982       sed -n \
52983         "s/'/'\\\\''/g;
52984           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
52985       ;;
52986     *)
52987       # `set' quotes correctly as required by POSIX, so do not add quotes.
52988       sed -n \
52989         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
52990       ;;
52991     esac;
52992 } |
52993   sed '
52994      t clear
52995      : clear
52996      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
52997      t end
52998      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
52999      : end' >>confcache
53000 if diff $cache_file confcache >/dev/null 2>&1; then :; else
53001   if test -w $cache_file; then
53002     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
53003     cat confcache >$cache_file
53004   else
53005     echo "not updating unwritable cache $cache_file"
53006   fi
53007 fi
53008 rm -f confcache
53009
53010 test "x$prefix" = xNONE && prefix=$ac_default_prefix
53011 # Let make expand exec_prefix.
53012 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
53013
53014 # VPATH may cause trouble with some makes, so we remove $(srcdir),
53015 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
53016 # trailing colons and then remove the whole line if VPATH becomes empty
53017 # (actually we leave an empty line to preserve line numbers).
53018 if test "x$srcdir" = x.; then
53019   ac_vpsub='/^[  ]*VPATH[        ]*=/{
53020 s/:*\$(srcdir):*/:/;
53021 s/:*\${srcdir}:*/:/;
53022 s/:*@srcdir@:*/:/;
53023 s/^\([^=]*=[     ]*\):*/\1/;
53024 s/:*$//;
53025 s/^[^=]*=[       ]*$//;
53026 }'
53027 fi
53028
53029 DEFS=-DHAVE_CONFIG_H
53030
53031 ac_libobjs=
53032 ac_ltlibobjs=
53033 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
53034   # 1. Remove the extension, and $U if already installed.
53035   ac_i=`echo "$ac_i" |
53036          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
53037   # 2. Add them.
53038   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
53039   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
53040 done
53041 LIBOBJS=$ac_libobjs
53042
53043 LTLIBOBJS=$ac_ltlibobjs
53044
53045
53046 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
53047   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
53048 Usually this means the macro was only invoked conditionally." >&5
53049 echo "$as_me: error: conditional \"AMDEP\" was never defined.
53050 Usually this means the macro was only invoked conditionally." >&2;}
53051    { (exit 1); exit 1; }; }
53052 fi
53053 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
53054   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
53055 Usually this means the macro was only invoked conditionally." >&5
53056 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
53057 Usually this means the macro was only invoked conditionally." >&2;}
53058    { (exit 1); exit 1; }; }
53059 fi
53060 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
53061   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
53062 Usually this means the macro was only invoked conditionally." >&5
53063 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
53064 Usually this means the macro was only invoked conditionally." >&2;}
53065    { (exit 1); exit 1; }; }
53066 fi
53067 if test -z "${WANT_CLIENT_TRUE}" && test -z "${WANT_CLIENT_FALSE}"; then
53068   { { echo "$as_me:$LINENO: error: conditional \"WANT_CLIENT\" was never defined.
53069 Usually this means the macro was only invoked conditionally." >&5
53070 echo "$as_me: error: conditional \"WANT_CLIENT\" was never defined.
53071 Usually this means the macro was only invoked conditionally." >&2;}
53072    { (exit 1); exit 1; }; }
53073 fi
53074 if test -z "${WANT_SAMBA_TRUE}" && test -z "${WANT_SAMBA_FALSE}"; then
53075   { { echo "$as_me:$LINENO: error: conditional \"WANT_SAMBA\" was never defined.
53076 Usually this means the macro was only invoked conditionally." >&5
53077 echo "$as_me: error: conditional \"WANT_SAMBA\" was never defined.
53078 Usually this means the macro was only invoked conditionally." >&2;}
53079    { (exit 1); exit 1; }; }
53080 fi
53081 if test -z "${WANT_RESTORE_TRUE}" && test -z "${WANT_RESTORE_FALSE}"; then
53082   { { echo "$as_me:$LINENO: error: conditional \"WANT_RESTORE\" was never defined.
53083 Usually this means the macro was only invoked conditionally." >&5
53084 echo "$as_me: error: conditional \"WANT_RESTORE\" was never defined.
53085 Usually this means the macro was only invoked conditionally." >&2;}
53086    { (exit 1); exit 1; }; }
53087 fi
53088 if test -z "${WANT_SERVER_TRUE}" && test -z "${WANT_SERVER_FALSE}"; then
53089   { { echo "$as_me:$LINENO: error: conditional \"WANT_SERVER\" was never defined.
53090 Usually this means the macro was only invoked conditionally." >&5
53091 echo "$as_me: error: conditional \"WANT_SERVER\" was never defined.
53092 Usually this means the macro was only invoked conditionally." >&2;}
53093    { (exit 1); exit 1; }; }
53094 fi
53095 if test -z "${WANT_RECOVER_TRUE}" && test -z "${WANT_RECOVER_FALSE}"; then
53096   { { echo "$as_me:$LINENO: error: conditional \"WANT_RECOVER\" was never defined.
53097 Usually this means the macro was only invoked conditionally." >&5
53098 echo "$as_me: error: conditional \"WANT_RECOVER\" was never defined.
53099 Usually this means the macro was only invoked conditionally." >&2;}
53100    { (exit 1); exit 1; }; }
53101 fi
53102 if test -z "${WANT_TAPE_TRUE}" && test -z "${WANT_TAPE_FALSE}"; then
53103   { { echo "$as_me:$LINENO: error: conditional \"WANT_TAPE\" was never defined.
53104 Usually this means the macro was only invoked conditionally." >&5
53105 echo "$as_me: error: conditional \"WANT_TAPE\" was never defined.
53106 Usually this means the macro was only invoked conditionally." >&2;}
53107    { (exit 1); exit 1; }; }
53108 fi
53109 if test -z "${WANT_AMPLOT_TRUE}" && test -z "${WANT_AMPLOT_FALSE}"; then
53110   { { echo "$as_me:$LINENO: error: conditional \"WANT_AMPLOT\" was never defined.
53111 Usually this means the macro was only invoked conditionally." >&5
53112 echo "$as_me: error: conditional \"WANT_AMPLOT\" was never defined.
53113 Usually this means the macro was only invoked conditionally." >&2;}
53114    { (exit 1); exit 1; }; }
53115 fi
53116 if test -z "${WANT_CHG_SCSI_TRUE}" && test -z "${WANT_CHG_SCSI_FALSE}"; then
53117   { { echo "$as_me:$LINENO: error: conditional \"WANT_CHG_SCSI\" was never defined.
53118 Usually this means the macro was only invoked conditionally." >&5
53119 echo "$as_me: error: conditional \"WANT_CHG_SCSI\" was never defined.
53120 Usually this means the macro was only invoked conditionally." >&2;}
53121    { (exit 1); exit 1; }; }
53122 fi
53123 if test -z "${WANT_CHIO_SCSI_TRUE}" && test -z "${WANT_CHIO_SCSI_FALSE}"; then
53124   { { echo "$as_me:$LINENO: error: conditional \"WANT_CHIO_SCSI\" was never defined.
53125 Usually this means the macro was only invoked conditionally." >&5
53126 echo "$as_me: error: conditional \"WANT_CHIO_SCSI\" was never defined.
53127 Usually this means the macro was only invoked conditionally." >&2;}
53128    { (exit 1); exit 1; }; }
53129 fi
53130 if test -z "${WANT_RUNTIME_PSEUDO_RELOC_TRUE}" && test -z "${WANT_RUNTIME_PSEUDO_RELOC_FALSE}"; then
53131   { { echo "$as_me:$LINENO: error: conditional \"WANT_RUNTIME_PSEUDO_RELOC\" was never defined.
53132 Usually this means the macro was only invoked conditionally." >&5
53133 echo "$as_me: error: conditional \"WANT_RUNTIME_PSEUDO_RELOC\" was never defined.
53134 Usually this means the macro was only invoked conditionally." >&2;}
53135    { (exit 1); exit 1; }; }
53136 fi
53137 if test -z "${WANT_SETUID_CLIENT_TRUE}" && test -z "${WANT_SETUID_CLIENT_FALSE}"; then
53138   { { echo "$as_me:$LINENO: error: conditional \"WANT_SETUID_CLIENT\" was never defined.
53139 Usually this means the macro was only invoked conditionally." >&5
53140 echo "$as_me: error: conditional \"WANT_SETUID_CLIENT\" was never defined.
53141 Usually this means the macro was only invoked conditionally." >&2;}
53142    { (exit 1); exit 1; }; }
53143 fi
53144 if test -z "${WANT_SSH_SECURITY_TRUE}" && test -z "${WANT_SSH_SECURITY_FALSE}"; then
53145   { { echo "$as_me:$LINENO: error: conditional \"WANT_SSH_SECURITY\" was never defined.
53146 Usually this means the macro was only invoked conditionally." >&5
53147 echo "$as_me: error: conditional \"WANT_SSH_SECURITY\" was never defined.
53148 Usually this means the macro was only invoked conditionally." >&2;}
53149    { (exit 1); exit 1; }; }
53150 fi
53151 if test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then
53152   { { echo "$as_me:$LINENO: error: conditional \"HAVE_XSLTPROC\" was never defined.
53153 Usually this means the macro was only invoked conditionally." >&5
53154 echo "$as_me: error: conditional \"HAVE_XSLTPROC\" was never defined.
53155 Usually this means the macro was only invoked conditionally." >&2;}
53156    { (exit 1); exit 1; }; }
53157 fi
53158
53159 : ${CONFIG_STATUS=./config.status}
53160 ac_clean_files_save=$ac_clean_files
53161 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
53162 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
53163 echo "$as_me: creating $CONFIG_STATUS" >&6;}
53164 cat >$CONFIG_STATUS <<_ACEOF
53165 #! $SHELL
53166 # Generated by $as_me.
53167 # Run this file to recreate the current configuration.
53168 # Compiler output produced by configure, useful for debugging
53169 # configure, is in config.log if it exists.
53170
53171 debug=false
53172 ac_cs_recheck=false
53173 ac_cs_silent=false
53174 SHELL=\${CONFIG_SHELL-$SHELL}
53175 _ACEOF
53176
53177 cat >>$CONFIG_STATUS <<\_ACEOF
53178 ## --------------------- ##
53179 ## M4sh Initialization.  ##
53180 ## --------------------- ##
53181
53182 # Be Bourne compatible
53183 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
53184   emulate sh
53185   NULLCMD=:
53186   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
53187   # is contrary to our usage.  Disable this feature.
53188   alias -g '${1+"$@"}'='"$@"'
53189 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
53190   set -o posix
53191 fi
53192 DUALCASE=1; export DUALCASE # for MKS sh
53193
53194 # Support unset when possible.
53195 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
53196   as_unset=unset
53197 else
53198   as_unset=false
53199 fi
53200
53201
53202 # Work around bugs in pre-3.0 UWIN ksh.
53203 $as_unset ENV MAIL MAILPATH
53204 PS1='$ '
53205 PS2='> '
53206 PS4='+ '
53207
53208 # NLS nuisances.
53209 for as_var in \
53210   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
53211   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
53212   LC_TELEPHONE LC_TIME
53213 do
53214   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53215     eval $as_var=C; export $as_var
53216   else
53217     $as_unset $as_var
53218   fi
53219 done
53220
53221 # Required to use basename.
53222 if expr a : '\(a\)' >/dev/null 2>&1; then
53223   as_expr=expr
53224 else
53225   as_expr=false
53226 fi
53227
53228 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
53229   as_basename=basename
53230 else
53231   as_basename=false
53232 fi
53233
53234
53235 # Name of the executable.
53236 as_me=`$as_basename "$0" ||
53237 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
53238          X"$0" : 'X\(//\)$' \| \
53239          X"$0" : 'X\(/\)$' \| \
53240          .     : '\(.\)' 2>/dev/null ||
53241 echo X/"$0" |
53242     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
53243           /^X\/\(\/\/\)$/{ s//\1/; q; }
53244           /^X\/\(\/\).*/{ s//\1/; q; }
53245           s/.*/./; q'`
53246
53247
53248 # PATH needs CR, and LINENO needs CR and PATH.
53249 # Avoid depending upon Character Ranges.
53250 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
53251 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
53252 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
53253 as_cr_digits='0123456789'
53254 as_cr_alnum=$as_cr_Letters$as_cr_digits
53255
53256 # The user is always right.
53257 if test "${PATH_SEPARATOR+set}" != set; then
53258   echo "#! /bin/sh" >conf$$.sh
53259   echo  "exit 0"   >>conf$$.sh
53260   chmod +x conf$$.sh
53261   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53262     PATH_SEPARATOR=';'
53263   else
53264     PATH_SEPARATOR=:
53265   fi
53266   rm -f conf$$.sh
53267 fi
53268
53269
53270   as_lineno_1=$LINENO
53271   as_lineno_2=$LINENO
53272   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
53273   test "x$as_lineno_1" != "x$as_lineno_2" &&
53274   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
53275   # Find who we are.  Look in the path if we contain no path at all
53276   # relative or not.
53277   case $0 in
53278     *[\\/]* ) as_myself=$0 ;;
53279     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
53280 for as_dir in $PATH
53281 do
53282   IFS=$as_save_IFS
53283   test -z "$as_dir" && as_dir=.
53284   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
53285 done
53286
53287        ;;
53288   esac
53289   # We did not find ourselves, most probably we were run as `sh COMMAND'
53290   # in which case we are not to be found in the path.
53291   if test "x$as_myself" = x; then
53292     as_myself=$0
53293   fi
53294   if test ! -f "$as_myself"; then
53295     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
53296 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
53297    { (exit 1); exit 1; }; }
53298   fi
53299   case $CONFIG_SHELL in
53300   '')
53301     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
53302 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
53303 do
53304   IFS=$as_save_IFS
53305   test -z "$as_dir" && as_dir=.
53306   for as_base in sh bash ksh sh5; do
53307          case $as_dir in
53308          /*)
53309            if ("$as_dir/$as_base" -c '
53310   as_lineno_1=$LINENO
53311   as_lineno_2=$LINENO
53312   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
53313   test "x$as_lineno_1" != "x$as_lineno_2" &&
53314   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
53315              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
53316              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
53317              CONFIG_SHELL=$as_dir/$as_base
53318              export CONFIG_SHELL
53319              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
53320            fi;;
53321          esac
53322        done
53323 done
53324 ;;
53325   esac
53326
53327   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
53328   # uniformly replaced by the line number.  The first 'sed' inserts a
53329   # line-number line before each line; the second 'sed' does the real
53330   # work.  The second script uses 'N' to pair each line-number line
53331   # with the numbered line, and appends trailing '-' during
53332   # substitution so that $LINENO is not a special case at line end.
53333   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
53334   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
53335   sed '=' <$as_myself |
53336     sed '
53337       N
53338       s,$,-,
53339       : loop
53340       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
53341       t loop
53342       s,-$,,
53343       s,^['$as_cr_digits']*\n,,
53344     ' >$as_me.lineno &&
53345   chmod +x $as_me.lineno ||
53346     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
53347 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
53348    { (exit 1); exit 1; }; }
53349
53350   # Don't try to exec as it changes $[0], causing all sort of problems
53351   # (the dirname of $[0] is not the place where we might find the
53352   # original and so on.  Autoconf is especially sensible to this).
53353   . ./$as_me.lineno
53354   # Exit status is that of the last command.
53355   exit
53356 }
53357
53358
53359 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
53360   *c*,-n*) ECHO_N= ECHO_C='
53361 ' ECHO_T='      ' ;;
53362   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
53363   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
53364 esac
53365
53366 if expr a : '\(a\)' >/dev/null 2>&1; then
53367   as_expr=expr
53368 else
53369   as_expr=false
53370 fi
53371
53372 rm -f conf$$ conf$$.exe conf$$.file
53373 echo >conf$$.file
53374 if ln -s conf$$.file conf$$ 2>/dev/null; then
53375   # We could just check for DJGPP; but this test a) works b) is more generic
53376   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
53377   if test -f conf$$.exe; then
53378     # Don't use ln at all; we don't have any links
53379     as_ln_s='cp -p'
53380   else
53381     as_ln_s='ln -s'
53382   fi
53383 elif ln conf$$.file conf$$ 2>/dev/null; then
53384   as_ln_s=ln
53385 else
53386   as_ln_s='cp -p'
53387 fi
53388 rm -f conf$$ conf$$.exe conf$$.file
53389
53390 if mkdir -p . 2>/dev/null; then
53391   as_mkdir_p=:
53392 else
53393   test -d ./-p && rmdir ./-p
53394   as_mkdir_p=false
53395 fi
53396
53397 as_executable_p="test -f"
53398
53399 # Sed expression to map a string onto a valid CPP name.
53400 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
53401
53402 # Sed expression to map a string onto a valid variable name.
53403 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
53404
53405
53406 # IFS
53407 # We need space, tab and new line, in precisely that order.
53408 as_nl='
53409 '
53410 IFS="   $as_nl"
53411
53412 # CDPATH.
53413 $as_unset CDPATH
53414
53415 exec 6>&1
53416
53417 # Open the log real soon, to keep \$[0] and so on meaningful, and to
53418 # report actual input values of CONFIG_FILES etc. instead of their
53419 # values after options handling.  Logging --version etc. is OK.
53420 exec 5>>config.log
53421 {
53422   echo
53423   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
53424 ## Running $as_me. ##
53425 _ASBOX
53426 } >&5
53427 cat >&5 <<_CSEOF
53428
53429 This file was extended by $as_me, which was
53430 generated by GNU Autoconf 2.59.  Invocation command line was
53431
53432   CONFIG_FILES    = $CONFIG_FILES
53433   CONFIG_HEADERS  = $CONFIG_HEADERS
53434   CONFIG_LINKS    = $CONFIG_LINKS
53435   CONFIG_COMMANDS = $CONFIG_COMMANDS
53436   $ $0 $@
53437
53438 _CSEOF
53439 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
53440 echo >&5
53441 _ACEOF
53442
53443 # Files that config.status was made for.
53444 if test -n "$ac_config_files"; then
53445   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
53446 fi
53447
53448 if test -n "$ac_config_headers"; then
53449   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
53450 fi
53451
53452 if test -n "$ac_config_links"; then
53453   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
53454 fi
53455
53456 if test -n "$ac_config_commands"; then
53457   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
53458 fi
53459
53460 cat >>$CONFIG_STATUS <<\_ACEOF
53461
53462 ac_cs_usage="\
53463 \`$as_me' instantiates files from templates according to the
53464 current configuration.
53465
53466 Usage: $0 [OPTIONS] [FILE]...
53467
53468   -h, --help       print this help, then exit
53469   -V, --version    print version number, then exit
53470   -q, --quiet      do not print progress messages
53471   -d, --debug      don't remove temporary files
53472       --recheck    update $as_me by reconfiguring in the same conditions
53473   --file=FILE[:TEMPLATE]
53474                    instantiate the configuration file FILE
53475   --header=FILE[:TEMPLATE]
53476                    instantiate the configuration header FILE
53477
53478 Configuration files:
53479 $config_files
53480
53481 Configuration headers:
53482 $config_headers
53483
53484 Configuration commands:
53485 $config_commands
53486
53487 Report bugs to <bug-autoconf@gnu.org>."
53488 _ACEOF
53489
53490 cat >>$CONFIG_STATUS <<_ACEOF
53491 ac_cs_version="\\
53492 config.status
53493 configured by $0, generated by GNU Autoconf 2.59,
53494   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
53495
53496 Copyright (C) 2003 Free Software Foundation, Inc.
53497 This config.status script is free software; the Free Software Foundation
53498 gives unlimited permission to copy, distribute and modify it."
53499 srcdir=$srcdir
53500 INSTALL="$INSTALL"
53501 _ACEOF
53502
53503 cat >>$CONFIG_STATUS <<\_ACEOF
53504 # If no file are specified by the user, then we need to provide default
53505 # value.  By we need to know if files were specified by the user.
53506 ac_need_defaults=:
53507 while test $# != 0
53508 do
53509   case $1 in
53510   --*=*)
53511     ac_option=`expr "x$1" : 'x\([^=]*\)='`
53512     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
53513     ac_shift=:
53514     ;;
53515   -*)
53516     ac_option=$1
53517     ac_optarg=$2
53518     ac_shift=shift
53519     ;;
53520   *) # This is not an option, so the user has probably given explicit
53521      # arguments.
53522      ac_option=$1
53523      ac_need_defaults=false;;
53524   esac
53525
53526   case $ac_option in
53527   # Handling of the options.
53528 _ACEOF
53529 cat >>$CONFIG_STATUS <<\_ACEOF
53530   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
53531     ac_cs_recheck=: ;;
53532   --version | --vers* | -V )
53533     echo "$ac_cs_version"; exit 0 ;;
53534   --he | --h)
53535     # Conflict between --help and --header
53536     { { echo "$as_me:$LINENO: error: ambiguous option: $1
53537 Try \`$0 --help' for more information." >&5
53538 echo "$as_me: error: ambiguous option: $1
53539 Try \`$0 --help' for more information." >&2;}
53540    { (exit 1); exit 1; }; };;
53541   --help | --hel | -h )
53542     echo "$ac_cs_usage"; exit 0 ;;
53543   --debug | --d* | -d )
53544     debug=: ;;
53545   --file | --fil | --fi | --f )
53546     $ac_shift
53547     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
53548     ac_need_defaults=false;;
53549   --header | --heade | --head | --hea )
53550     $ac_shift
53551     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
53552     ac_need_defaults=false;;
53553   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
53554   | -silent | --silent | --silen | --sile | --sil | --si | --s)
53555     ac_cs_silent=: ;;
53556
53557   # This is an error.
53558   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
53559 Try \`$0 --help' for more information." >&5
53560 echo "$as_me: error: unrecognized option: $1
53561 Try \`$0 --help' for more information." >&2;}
53562    { (exit 1); exit 1; }; } ;;
53563
53564   *) ac_config_targets="$ac_config_targets $1" ;;
53565
53566   esac
53567   shift
53568 done
53569
53570 ac_configure_extra_args=
53571
53572 if $ac_cs_silent; then
53573   exec 6>/dev/null
53574   ac_configure_extra_args="$ac_configure_extra_args --silent"
53575 fi
53576
53577 _ACEOF
53578 cat >>$CONFIG_STATUS <<_ACEOF
53579 if \$ac_cs_recheck; then
53580   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
53581   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
53582 fi
53583
53584 _ACEOF
53585
53586 cat >>$CONFIG_STATUS <<_ACEOF
53587 #
53588 # INIT-COMMANDS section.
53589 #
53590
53591 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
53592 # variables for create stdint.h replacement
53593 PACKAGE="$PACKAGE"
53594 VERSION="$VERSION"
53595 ac_stdint_h="$ac_stdint_h"
53596 _ac_stdint_h=`echo "_$PACKAGE-$ac_stdint_h" | $as_tr_cpp`
53597 ac_cv_stdint_message="$ac_cv_stdint_message"
53598 ac_cv_header_stdint_t="$ac_cv_header_stdint_t"
53599 ac_cv_header_stdint_x="$ac_cv_header_stdint_x"
53600 ac_cv_header_stdint_o="$ac_cv_header_stdint_o"
53601 ac_cv_header_stdint_u="$ac_cv_header_stdint_u"
53602 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
53603 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
53604 ac_cv_char_data_model="$ac_cv_char_data_model"
53605 ac_cv_long_data_model="$ac_cv_long_data_model"
53606 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
53607 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
53608 ac_cv_type_intmax_t="$ac_cv_type_intmax_t"
53609
53610
53611 _ACEOF
53612
53613
53614
53615 cat >>$CONFIG_STATUS <<\_ACEOF
53616 for ac_config_target in $ac_config_targets
53617 do
53618   case "$ac_config_target" in
53619   # Handling of arguments.
53620   "amplot/amcat.awk" ) CONFIG_FILES="$CONFIG_FILES amplot/amcat.awk" ;;
53621   "amplot/amplot.sh" ) CONFIG_FILES="$CONFIG_FILES amplot/amplot.sh" ;;
53622   "amplot/Makefile" ) CONFIG_FILES="$CONFIG_FILES amplot/Makefile" ;;
53623   "changer-src/chg-manual.sh" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-manual.sh" ;;
53624   "changer-src/chg-multi.sh" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-multi.sh" ;;
53625   "changer-src/chg-mtx.sh" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-mtx.sh" ;;
53626   "changer-src/chg-chs.sh" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-chs.sh" ;;
53627   "changer-src/chg-rth.pl" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-rth.pl" ;;
53628   "changer-src/chg-chio.pl" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-chio.pl" ;;
53629   "changer-src/chg-zd-mtx.sh" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-zd-mtx.sh" ;;
53630   "changer-src/Makefile" ) CONFIG_FILES="$CONFIG_FILES changer-src/Makefile" ;;
53631   "changer-src/chg-juke.sh" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-juke.sh" ;;
53632   "changer-src/chg-rait.sh" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-rait.sh" ;;
53633   "changer-src/chg-null.sh" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-null.sh" ;;
53634   "changer-src/chg-mcutil.sh" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-mcutil.sh" ;;
53635   "changer-src/chg-disk.sh" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-disk.sh" ;;
53636   "changer-src/chg-iomega.pl" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-iomega.pl" ;;
53637   "client-src/patch-system.sh" ) CONFIG_FILES="$CONFIG_FILES client-src/patch-system.sh" ;;
53638   "client-src/Makefile" ) CONFIG_FILES="$CONFIG_FILES client-src/Makefile" ;;
53639   "dumper-src/gnutar.pl" ) CONFIG_FILES="$CONFIG_FILES dumper-src/gnutar.pl" ;;
53640   "dumper-src/generic-dumper.pl" ) CONFIG_FILES="$CONFIG_FILES dumper-src/generic-dumper.pl" ;;
53641   "dumper-src/Makefile" ) CONFIG_FILES="$CONFIG_FILES dumper-src/Makefile" ;;
53642   "common-src/versuff.c" ) CONFIG_FILES="$CONFIG_FILES common-src/versuff.c" ;;
53643   "common-src/Makefile" ) CONFIG_FILES="$CONFIG_FILES common-src/Makefile" ;;
53644   "example/amanda.conf" ) CONFIG_FILES="$CONFIG_FILES example/amanda.conf" ;;
53645   "example/Makefile" ) CONFIG_FILES="$CONFIG_FILES example/Makefile" ;;
53646   "example/chg-mcutil.conf" ) CONFIG_FILES="$CONFIG_FILES example/chg-mcutil.conf" ;;
53647   "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
53648   "docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
53649   "recover-src/Makefile" ) CONFIG_FILES="$CONFIG_FILES recover-src/Makefile" ;;
53650   "restore-src/Makefile" ) CONFIG_FILES="$CONFIG_FILES restore-src/Makefile" ;;
53651   "server-src/amcheckdb.sh" ) CONFIG_FILES="$CONFIG_FILES server-src/amcheckdb.sh" ;;
53652   "server-src/amcleanup.sh" ) CONFIG_FILES="$CONFIG_FILES server-src/amcleanup.sh" ;;
53653   "server-src/amdump.sh" ) CONFIG_FILES="$CONFIG_FILES server-src/amdump.sh" ;;
53654   "server-src/amfreetapes.sh" ) CONFIG_FILES="$CONFIG_FILES server-src/amfreetapes.sh" ;;
53655   "server-src/amoverview.pl" ) CONFIG_FILES="$CONFIG_FILES server-src/amoverview.pl" ;;
53656   "server-src/amrmtape.sh" ) CONFIG_FILES="$CONFIG_FILES server-src/amrmtape.sh" ;;
53657   "server-src/amtoc.pl" ) CONFIG_FILES="$CONFIG_FILES server-src/amtoc.pl" ;;
53658   "server-src/amverify.sh" ) CONFIG_FILES="$CONFIG_FILES server-src/amverify.sh" ;;
53659   "server-src/Makefile" ) CONFIG_FILES="$CONFIG_FILES server-src/Makefile" ;;
53660   "server-src/amstatus.pl" ) CONFIG_FILES="$CONFIG_FILES server-src/amstatus.pl" ;;
53661   "server-src/amverifyrun.sh" ) CONFIG_FILES="$CONFIG_FILES server-src/amverifyrun.sh" ;;
53662   "server-src/amcrypt.sh" ) CONFIG_FILES="$CONFIG_FILES server-src/amcrypt.sh" ;;
53663   "server-src/amaespipe.sh" ) CONFIG_FILES="$CONFIG_FILES server-src/amaespipe.sh" ;;
53664   "tape-src/Makefile" ) CONFIG_FILES="$CONFIG_FILES tape-src/Makefile" ;;
53665   "config/Makefile" ) CONFIG_FILES="$CONFIG_FILES config/Makefile" ;;
53666   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
53667   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
53668   "$ac_stdint_h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS $ac_stdint_h" ;;
53669   "config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
53670   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
53671 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
53672    { (exit 1); exit 1; }; };;
53673   esac
53674 done
53675
53676 # If the user did not use the arguments to specify the items to instantiate,
53677 # then the envvar interface is used.  Set only those that are not.
53678 # We use the long form for the default assignment because of an extremely
53679 # bizarre bug on SunOS 4.1.3.
53680 if $ac_need_defaults; then
53681   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
53682   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
53683   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
53684 fi
53685
53686 # Have a temporary directory for convenience.  Make it in the build tree
53687 # simply because there is no reason to put it here, and in addition,
53688 # creating and moving files from /tmp can sometimes cause problems.
53689 # Create a temporary directory, and hook for its removal unless debugging.
53690 $debug ||
53691 {
53692   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
53693   trap '{ (exit 1); exit 1; }' 1 2 13 15
53694 }
53695
53696 # Create a (secure) tmp directory for tmp files.
53697
53698 {
53699   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
53700   test -n "$tmp" && test -d "$tmp"
53701 }  ||
53702 {
53703   tmp=./confstat$$-$RANDOM
53704   (umask 077 && mkdir $tmp)
53705 } ||
53706 {
53707    echo "$me: cannot create a temporary directory in ." >&2
53708    { (exit 1); exit 1; }
53709 }
53710
53711 _ACEOF
53712
53713 cat >>$CONFIG_STATUS <<_ACEOF
53714
53715 #
53716 # CONFIG_FILES section.
53717 #
53718
53719 # No need to generate the scripts if there are no CONFIG_FILES.
53720 # This happens for instance when ./config.status config.h
53721 if test -n "\$CONFIG_FILES"; then
53722   # Protect against being on the right side of a sed subst in config.status.
53723   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
53724    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
53725 s,@SHELL@,$SHELL,;t t
53726 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
53727 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
53728 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
53729 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
53730 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
53731 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
53732 s,@exec_prefix@,$exec_prefix,;t t
53733 s,@prefix@,$prefix,;t t
53734 s,@program_transform_name@,$program_transform_name,;t t
53735 s,@bindir@,$bindir,;t t
53736 s,@sbindir@,$sbindir,;t t
53737 s,@libexecdir@,$libexecdir,;t t
53738 s,@datadir@,$datadir,;t t
53739 s,@sysconfdir@,$sysconfdir,;t t
53740 s,@sharedstatedir@,$sharedstatedir,;t t
53741 s,@localstatedir@,$localstatedir,;t t
53742 s,@libdir@,$libdir,;t t
53743 s,@includedir@,$includedir,;t t
53744 s,@oldincludedir@,$oldincludedir,;t t
53745 s,@infodir@,$infodir,;t t
53746 s,@mandir@,$mandir,;t t
53747 s,@build_alias@,$build_alias,;t t
53748 s,@host_alias@,$host_alias,;t t
53749 s,@target_alias@,$target_alias,;t t
53750 s,@DEFS@,$DEFS,;t t
53751 s,@ECHO_C@,$ECHO_C,;t t
53752 s,@ECHO_N@,$ECHO_N,;t t
53753 s,@ECHO_T@,$ECHO_T,;t t
53754 s,@LIBS@,$LIBS,;t t
53755 s,@build@,$build,;t t
53756 s,@build_cpu@,$build_cpu,;t t
53757 s,@build_vendor@,$build_vendor,;t t
53758 s,@build_os@,$build_os,;t t
53759 s,@host@,$host,;t t
53760 s,@host_cpu@,$host_cpu,;t t
53761 s,@host_vendor@,$host_vendor,;t t
53762 s,@host_os@,$host_os,;t t
53763 s,@target@,$target,;t t
53764 s,@target_cpu@,$target_cpu,;t t
53765 s,@target_vendor@,$target_vendor,;t t
53766 s,@target_os@,$target_os,;t t
53767 s,@CONFIGURE_COMMAND@,$CONFIGURE_COMMAND,;t t
53768 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
53769 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
53770 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
53771 s,@CYGPATH_W@,$CYGPATH_W,;t t
53772 s,@PACKAGE@,$PACKAGE,;t t
53773 s,@VERSION@,$VERSION,;t t
53774 s,@ACLOCAL@,$ACLOCAL,;t t
53775 s,@AUTOCONF@,$AUTOCONF,;t t
53776 s,@AUTOMAKE@,$AUTOMAKE,;t t
53777 s,@AUTOHEADER@,$AUTOHEADER,;t t
53778 s,@MAKEINFO@,$MAKEINFO,;t t
53779 s,@install_sh@,$install_sh,;t t
53780 s,@STRIP@,$STRIP,;t t
53781 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
53782 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
53783 s,@mkdir_p@,$mkdir_p,;t t
53784 s,@AWK@,$AWK,;t t
53785 s,@SET_MAKE@,$SET_MAKE,;t t
53786 s,@am__leading_dot@,$am__leading_dot,;t t
53787 s,@AMTAR@,$AMTAR,;t t
53788 s,@am__tar@,$am__tar,;t t
53789 s,@am__untar@,$am__untar,;t t
53790 s,@SNAPSHOT_STAMP@,$SNAPSHOT_STAMP,;t t
53791 s,@VERSION_MAJOR@,$VERSION_MAJOR,;t t
53792 s,@VERSION_MINOR@,$VERSION_MINOR,;t t
53793 s,@VERSION_PATCH@,$VERSION_PATCH,;t t
53794 s,@VERSION_COMMENT@,$VERSION_COMMENT,;t t
53795 s,@VERSION_SUFFIX@,$VERSION_SUFFIX,;t t
53796 s,@DUMPER_DIR@,$DUMPER_DIR,;t t
53797 s,@CONFIG_DIR@,$CONFIG_DIR,;t t
53798 s,@USE_VERSION_SUFFIXES@,$USE_VERSION_SUFFIXES,;t t
53799 s,@CLIENT_SCRIPTS_OPT@,$CLIENT_SCRIPTS_OPT,;t t
53800 s,@DEFAULT_SERVER@,$DEFAULT_SERVER,;t t
53801 s,@CLIENT_LOGIN@,$CLIENT_LOGIN,;t t
53802 s,@SETUID_GROUP@,$SETUID_GROUP,;t t
53803 s,@BINARY_OWNER@,$BINARY_OWNER,;t t
53804 s,@DEFAULT_CONFIG@,$DEFAULT_CONFIG,;t t
53805 s,@DEFAULT_TAPE_SERVER@,$DEFAULT_TAPE_SERVER,;t t
53806 s,@DEFAULT_TAPE_DEVICE@,$DEFAULT_TAPE_DEVICE,;t t
53807 s,@DEFAULT_RAW_TAPE_DEVICE@,$DEFAULT_RAW_TAPE_DEVICE,;t t
53808 s,@DEFAULT_CHANGER_DEVICE@,$DEFAULT_CHANGER_DEVICE,;t t
53809 s,@GNUTAR_LISTED_INCREMENTAL_DIRX@,$GNUTAR_LISTED_INCREMENTAL_DIRX,;t t
53810 s,@GNUTAR_LISTED_INCREMENTAL_DIR@,$GNUTAR_LISTED_INCREMENTAL_DIR,;t t
53811 s,@MAXTAPEBLOCKSIZE@,$MAXTAPEBLOCKSIZE,;t t
53812 s,@AMANDA_TMPDIR@,$AMANDA_TMPDIR,;t t
53813 s,@AMANDA_DBGDIR@,$AMANDA_DBGDIR,;t t
53814 s,@AMANDA_DEBUG_DAYS@,$AMANDA_DEBUG_DAYS,;t t
53815 s,@SERVICE_SUFFIX@,$SERVICE_SUFFIX,;t t
53816 s,@CC@,$CC,;t t
53817 s,@CFLAGS@,$CFLAGS,;t t
53818 s,@LDFLAGS@,$LDFLAGS,;t t
53819 s,@CPPFLAGS@,$CPPFLAGS,;t t
53820 s,@ac_ct_CC@,$ac_ct_CC,;t t
53821 s,@EXEEXT@,$EXEEXT,;t t
53822 s,@OBJEXT@,$OBJEXT,;t t
53823 s,@DEPDIR@,$DEPDIR,;t t
53824 s,@am__include@,$am__include,;t t
53825 s,@am__quote@,$am__quote,;t t
53826 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
53827 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
53828 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
53829 s,@CCDEPMODE@,$CCDEPMODE,;t t
53830 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
53831 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
53832 s,@MT_FILE_FLAG@,$MT_FILE_FLAG,;t t
53833 s,@CPP@,$CPP,;t t
53834 s,@EGREP@,$EGREP,;t t
53835 s,@AR@,$AR,;t t
53836 s,@AWK_VAR_ASSIGNMENT_OPT@,$AWK_VAR_ASSIGNMENT_OPT,;t t
53837 s,@YACC@,$YACC,;t t
53838 s,@CAT@,$CAT,;t t
53839 s,@COMPRESS@,$COMPRESS,;t t
53840 s,@DD@,$DD,;t t
53841 s,@GETCONF@,$GETCONF,;t t
53842 s,@GNUPLOT@,$GNUPLOT,;t t
53843 s,@GREP@,$GREP,;t t
53844 s,@GNUTAR@,$GNUTAR,;t t
53845 s,@SAMBA_CLIENT@,$SAMBA_CLIENT,;t t
53846 s,@GZIP@,$GZIP,;t t
53847 s,@MAILER@,$MAILER,;t t
53848 s,@MT@,$MT,;t t
53849 s,@CHIO@,$CHIO,;t t
53850 s,@CHS@,$CHS,;t t
53851 s,@MTX@,$MTX,;t t
53852 s,@MCUTIL@,$MCUTIL,;t t
53853 s,@PRINT@,$PRINT,;t t
53854 s,@PCAT@,$PCAT,;t t
53855 s,@PERL@,$PERL,;t t
53856 s,@DUMP@,$DUMP,;t t
53857 s,@RESTORE@,$RESTORE,;t t
53858 s,@XFSDUMP@,$XFSDUMP,;t t
53859 s,@XFSRESTORE@,$XFSRESTORE,;t t
53860 s,@VXDUMP@,$VXDUMP,;t t
53861 s,@VXRESTORE@,$VXRESTORE,;t t
53862 s,@VDUMP@,$VDUMP,;t t
53863 s,@VRESTORE@,$VRESTORE,;t t
53864 s,@AMPLOT_COMPRESS@,$AMPLOT_COMPRESS,;t t
53865 s,@AMPLOT_CAT_GZIP@,$AMPLOT_CAT_GZIP,;t t
53866 s,@AMPLOT_CAT_COMPRESS@,$AMPLOT_CAT_COMPRESS,;t t
53867 s,@AMPLOT_CAT_PACK@,$AMPLOT_CAT_PACK,;t t
53868 s,@LL_FMT@,$LL_FMT,;t t
53869 s,@LN_S@,$LN_S,;t t
53870 s,@ECHO@,$ECHO,;t t
53871 s,@ac_ct_AR@,$ac_ct_AR,;t t
53872 s,@RANLIB@,$RANLIB,;t t
53873 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
53874 s,@CXX@,$CXX,;t t
53875 s,@CXXFLAGS@,$CXXFLAGS,;t t
53876 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
53877 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
53878 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
53879 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
53880 s,@CXXCPP@,$CXXCPP,;t t
53881 s,@F77@,$F77,;t t
53882 s,@FFLAGS@,$FFLAGS,;t t
53883 s,@ac_ct_F77@,$ac_ct_F77,;t t
53884 s,@LIBTOOL@,$LIBTOOL,;t t
53885 s,@LIBTOOL_DEPS@,$LIBTOOL_DEPS,;t t
53886 s,@LEX@,$LEX,;t t
53887 s,@LEXLIB@,$LEXLIB,;t t
53888 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
53889 s,@READLINE_LIBS@,$READLINE_LIBS,;t t
53890 s,@DB_EXT@,$DB_EXT,;t t
53891 s,@ALLOCA@,$ALLOCA,;t t
53892 s,@LIBOBJS@,$LIBOBJS,;t t
53893 s,@ac_n@,$ac_n,;t t
53894 s,@ac_c@,$ac_c,;t t
53895 s,@WANT_CLIENT_TRUE@,$WANT_CLIENT_TRUE,;t t
53896 s,@WANT_CLIENT_FALSE@,$WANT_CLIENT_FALSE,;t t
53897 s,@WANT_SAMBA_TRUE@,$WANT_SAMBA_TRUE,;t t
53898 s,@WANT_SAMBA_FALSE@,$WANT_SAMBA_FALSE,;t t
53899 s,@WANT_RESTORE_TRUE@,$WANT_RESTORE_TRUE,;t t
53900 s,@WANT_RESTORE_FALSE@,$WANT_RESTORE_FALSE,;t t
53901 s,@WANT_SERVER_TRUE@,$WANT_SERVER_TRUE,;t t
53902 s,@WANT_SERVER_FALSE@,$WANT_SERVER_FALSE,;t t
53903 s,@WANT_RECOVER_TRUE@,$WANT_RECOVER_TRUE,;t t
53904 s,@WANT_RECOVER_FALSE@,$WANT_RECOVER_FALSE,;t t
53905 s,@WANT_TAPE_TRUE@,$WANT_TAPE_TRUE,;t t
53906 s,@WANT_TAPE_FALSE@,$WANT_TAPE_FALSE,;t t
53907 s,@WANT_AMPLOT_TRUE@,$WANT_AMPLOT_TRUE,;t t
53908 s,@WANT_AMPLOT_FALSE@,$WANT_AMPLOT_FALSE,;t t
53909 s,@WANT_CHG_SCSI_TRUE@,$WANT_CHG_SCSI_TRUE,;t t
53910 s,@WANT_CHG_SCSI_FALSE@,$WANT_CHG_SCSI_FALSE,;t t
53911 s,@WANT_CHIO_SCSI_TRUE@,$WANT_CHIO_SCSI_TRUE,;t t
53912 s,@WANT_CHIO_SCSI_FALSE@,$WANT_CHIO_SCSI_FALSE,;t t
53913 s,@WANT_RUNTIME_PSEUDO_RELOC_TRUE@,$WANT_RUNTIME_PSEUDO_RELOC_TRUE,;t t
53914 s,@WANT_RUNTIME_PSEUDO_RELOC_FALSE@,$WANT_RUNTIME_PSEUDO_RELOC_FALSE,;t t
53915 s,@WANT_SETUID_CLIENT_TRUE@,$WANT_SETUID_CLIENT_TRUE,;t t
53916 s,@WANT_SETUID_CLIENT_FALSE@,$WANT_SETUID_CLIENT_FALSE,;t t
53917 s,@WANT_SSH_SECURITY_TRUE@,$WANT_SSH_SECURITY_TRUE,;t t
53918 s,@WANT_SSH_SECURITY_FALSE@,$WANT_SSH_SECURITY_FALSE,;t t
53919 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
53920 s,@LTALLOCA@,$LTALLOCA,;t t
53921 s,@DOC_BUILD_DATE@,$DOC_BUILD_DATE,;t t
53922 s,@XSLTPROC@,$XSLTPROC,;t t
53923 s,@HAVE_XSLTPROC_TRUE@,$HAVE_XSLTPROC_TRUE,;t t
53924 s,@HAVE_XSLTPROC_FALSE@,$HAVE_XSLTPROC_FALSE,;t t
53925 CEOF
53926
53927 _ACEOF
53928
53929   cat >>$CONFIG_STATUS <<\_ACEOF
53930   # Split the substitutions into bite-sized pieces for seds with
53931   # small command number limits, like on Digital OSF/1 and HP-UX.
53932   ac_max_sed_lines=48
53933   ac_sed_frag=1 # Number of current file.
53934   ac_beg=1 # First line for current file.
53935   ac_end=$ac_max_sed_lines # Line after last line for current file.
53936   ac_more_lines=:
53937   ac_sed_cmds=
53938   while $ac_more_lines; do
53939     if test $ac_beg -gt 1; then
53940       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
53941     else
53942       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
53943     fi
53944     if test ! -s $tmp/subs.frag; then
53945       ac_more_lines=false
53946     else
53947       # The purpose of the label and of the branching condition is to
53948       # speed up the sed processing (if there are no `@' at all, there
53949       # is no need to browse any of the substitutions).
53950       # These are the two extra sed commands mentioned above.
53951       (echo ':t
53952   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
53953       if test -z "$ac_sed_cmds"; then
53954         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
53955       else
53956         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
53957       fi
53958       ac_sed_frag=`expr $ac_sed_frag + 1`
53959       ac_beg=$ac_end
53960       ac_end=`expr $ac_end + $ac_max_sed_lines`
53961     fi
53962   done
53963   if test -z "$ac_sed_cmds"; then
53964     ac_sed_cmds=cat
53965   fi
53966 fi # test -n "$CONFIG_FILES"
53967
53968 _ACEOF
53969 cat >>$CONFIG_STATUS <<\_ACEOF
53970 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
53971   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
53972   case $ac_file in
53973   - | *:- | *:-:* ) # input from stdin
53974         cat >$tmp/stdin
53975         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
53976         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
53977   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
53978         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
53979   * )   ac_file_in=$ac_file.in ;;
53980   esac
53981
53982   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
53983   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
53984 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
53985          X"$ac_file" : 'X\(//\)[^/]' \| \
53986          X"$ac_file" : 'X\(//\)$' \| \
53987          X"$ac_file" : 'X\(/\)' \| \
53988          .     : '\(.\)' 2>/dev/null ||
53989 echo X"$ac_file" |
53990     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
53991           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
53992           /^X\(\/\/\)$/{ s//\1/; q; }
53993           /^X\(\/\).*/{ s//\1/; q; }
53994           s/.*/./; q'`
53995   { if $as_mkdir_p; then
53996     mkdir -p "$ac_dir"
53997   else
53998     as_dir="$ac_dir"
53999     as_dirs=
54000     while test ! -d "$as_dir"; do
54001       as_dirs="$as_dir $as_dirs"
54002       as_dir=`(dirname "$as_dir") 2>/dev/null ||
54003 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54004          X"$as_dir" : 'X\(//\)[^/]' \| \
54005          X"$as_dir" : 'X\(//\)$' \| \
54006          X"$as_dir" : 'X\(/\)' \| \
54007          .     : '\(.\)' 2>/dev/null ||
54008 echo X"$as_dir" |
54009     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
54010           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
54011           /^X\(\/\/\)$/{ s//\1/; q; }
54012           /^X\(\/\).*/{ s//\1/; q; }
54013           s/.*/./; q'`
54014     done
54015     test ! -n "$as_dirs" || mkdir $as_dirs
54016   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
54017 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
54018    { (exit 1); exit 1; }; }; }
54019
54020   ac_builddir=.
54021
54022 if test "$ac_dir" != .; then
54023   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
54024   # A "../" for each directory in $ac_dir_suffix.
54025   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
54026 else
54027   ac_dir_suffix= ac_top_builddir=
54028 fi
54029
54030 case $srcdir in
54031   .)  # No --srcdir option.  We are building in place.
54032     ac_srcdir=.
54033     if test -z "$ac_top_builddir"; then
54034        ac_top_srcdir=.
54035     else
54036        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
54037     fi ;;
54038   [\\/]* | ?:[\\/]* )  # Absolute path.
54039     ac_srcdir=$srcdir$ac_dir_suffix;
54040     ac_top_srcdir=$srcdir ;;
54041   *) # Relative path.
54042     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
54043     ac_top_srcdir=$ac_top_builddir$srcdir ;;
54044 esac
54045
54046 # Do not use `cd foo && pwd` to compute absolute paths, because
54047 # the directories may not exist.
54048 case `pwd` in
54049 .) ac_abs_builddir="$ac_dir";;
54050 *)
54051   case "$ac_dir" in
54052   .) ac_abs_builddir=`pwd`;;
54053   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
54054   *) ac_abs_builddir=`pwd`/"$ac_dir";;
54055   esac;;
54056 esac
54057 case $ac_abs_builddir in
54058 .) ac_abs_top_builddir=${ac_top_builddir}.;;
54059 *)
54060   case ${ac_top_builddir}. in
54061   .) ac_abs_top_builddir=$ac_abs_builddir;;
54062   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
54063   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
54064   esac;;
54065 esac
54066 case $ac_abs_builddir in
54067 .) ac_abs_srcdir=$ac_srcdir;;
54068 *)
54069   case $ac_srcdir in
54070   .) ac_abs_srcdir=$ac_abs_builddir;;
54071   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
54072   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
54073   esac;;
54074 esac
54075 case $ac_abs_builddir in
54076 .) ac_abs_top_srcdir=$ac_top_srcdir;;
54077 *)
54078   case $ac_top_srcdir in
54079   .) ac_abs_top_srcdir=$ac_abs_builddir;;
54080   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
54081   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
54082   esac;;
54083 esac
54084
54085
54086   case $INSTALL in
54087   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
54088   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
54089   esac
54090
54091   if test x"$ac_file" != x-; then
54092     { echo "$as_me:$LINENO: creating $ac_file" >&5
54093 echo "$as_me: creating $ac_file" >&6;}
54094     rm -f "$ac_file"
54095   fi
54096   # Let's still pretend it is `configure' which instantiates (i.e., don't
54097   # use $as_me), people would be surprised to read:
54098   #    /* config.h.  Generated by config.status.  */
54099   if test x"$ac_file" = x-; then
54100     configure_input=
54101   else
54102     configure_input="$ac_file.  "
54103   fi
54104   configure_input=$configure_input"Generated from `echo $ac_file_in |
54105                                      sed 's,.*/,,'` by configure."
54106
54107   # First look for the input files in the build tree, otherwise in the
54108   # src tree.
54109   ac_file_inputs=`IFS=:
54110     for f in $ac_file_in; do
54111       case $f in
54112       -) echo $tmp/stdin ;;
54113       [\\/$]*)
54114          # Absolute (can't be DOS-style, as IFS=:)
54115          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
54116 echo "$as_me: error: cannot find input file: $f" >&2;}
54117    { (exit 1); exit 1; }; }
54118          echo "$f";;
54119       *) # Relative
54120          if test -f "$f"; then
54121            # Build tree
54122            echo "$f"
54123          elif test -f "$srcdir/$f"; then
54124            # Source tree
54125            echo "$srcdir/$f"
54126          else
54127            # /dev/null tree
54128            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
54129 echo "$as_me: error: cannot find input file: $f" >&2;}
54130    { (exit 1); exit 1; }; }
54131          fi;;
54132       esac
54133     done` || { (exit 1); exit 1; }
54134 _ACEOF
54135 cat >>$CONFIG_STATUS <<_ACEOF
54136   sed "$ac_vpsub
54137 $extrasub
54138 _ACEOF
54139 cat >>$CONFIG_STATUS <<\_ACEOF
54140 :t
54141 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
54142 s,@configure_input@,$configure_input,;t t
54143 s,@srcdir@,$ac_srcdir,;t t
54144 s,@abs_srcdir@,$ac_abs_srcdir,;t t
54145 s,@top_srcdir@,$ac_top_srcdir,;t t
54146 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
54147 s,@builddir@,$ac_builddir,;t t
54148 s,@abs_builddir@,$ac_abs_builddir,;t t
54149 s,@top_builddir@,$ac_top_builddir,;t t
54150 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
54151 s,@INSTALL@,$ac_INSTALL,;t t
54152 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
54153   rm -f $tmp/stdin
54154   if test x"$ac_file" != x-; then
54155     mv $tmp/out $ac_file
54156   else
54157     cat $tmp/out
54158     rm -f $tmp/out
54159   fi
54160
54161 done
54162 _ACEOF
54163 cat >>$CONFIG_STATUS <<\_ACEOF
54164
54165 #
54166 # CONFIG_HEADER section.
54167 #
54168
54169 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
54170 # NAME is the cpp macro being defined and VALUE is the value it is being given.
54171 #
54172 # ac_d sets the value in "#define NAME VALUE" lines.
54173 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
54174 ac_dB='[         ].*$,\1#\2'
54175 ac_dC=' '
54176 ac_dD=',;t'
54177 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
54178 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
54179 ac_uB='$,\1#\2define\3'
54180 ac_uC=' '
54181 ac_uD=',;t'
54182
54183 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
54184   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
54185   case $ac_file in
54186   - | *:- | *:-:* ) # input from stdin
54187         cat >$tmp/stdin
54188         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
54189         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
54190   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
54191         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
54192   * )   ac_file_in=$ac_file.in ;;
54193   esac
54194
54195   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
54196 echo "$as_me: creating $ac_file" >&6;}
54197
54198   # First look for the input files in the build tree, otherwise in the
54199   # src tree.
54200   ac_file_inputs=`IFS=:
54201     for f in $ac_file_in; do
54202       case $f in
54203       -) echo $tmp/stdin ;;
54204       [\\/$]*)
54205          # Absolute (can't be DOS-style, as IFS=:)
54206          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
54207 echo "$as_me: error: cannot find input file: $f" >&2;}
54208    { (exit 1); exit 1; }; }
54209          # Do quote $f, to prevent DOS paths from being IFS'd.
54210          echo "$f";;
54211       *) # Relative
54212          if test -f "$f"; then
54213            # Build tree
54214            echo "$f"
54215          elif test -f "$srcdir/$f"; then
54216            # Source tree
54217            echo "$srcdir/$f"
54218          else
54219            # /dev/null tree
54220            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
54221 echo "$as_me: error: cannot find input file: $f" >&2;}
54222    { (exit 1); exit 1; }; }
54223          fi;;
54224       esac
54225     done` || { (exit 1); exit 1; }
54226   # Remove the trailing spaces.
54227   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
54228
54229 _ACEOF
54230
54231 # Transform confdefs.h into two sed scripts, `conftest.defines' and
54232 # `conftest.undefs', that substitutes the proper values into
54233 # config.h.in to produce config.h.  The first handles `#define'
54234 # templates, and the second `#undef' templates.
54235 # And first: Protect against being on the right side of a sed subst in
54236 # config.status.  Protect against being in an unquoted here document
54237 # in config.status.
54238 rm -f conftest.defines conftest.undefs
54239 # Using a here document instead of a string reduces the quoting nightmare.
54240 # Putting comments in sed scripts is not portable.
54241 #
54242 # `end' is used to avoid that the second main sed command (meant for
54243 # 0-ary CPP macros) applies to n-ary macro definitions.
54244 # See the Autoconf documentation for `clear'.
54245 cat >confdef2sed.sed <<\_ACEOF
54246 s/[\\&,]/\\&/g
54247 s,[\\$`],\\&,g
54248 t clear
54249 : clear
54250 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
54251 t end
54252 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
54253 : end
54254 _ACEOF
54255 # If some macros were called several times there might be several times
54256 # the same #defines, which is useless.  Nevertheless, we may not want to
54257 # sort them, since we want the *last* AC-DEFINE to be honored.
54258 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
54259 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
54260 rm -f confdef2sed.sed
54261
54262 # This sed command replaces #undef with comments.  This is necessary, for
54263 # example, in the case of _POSIX_SOURCE, which is predefined and required
54264 # on some systems where configure will not decide to define it.
54265 cat >>conftest.undefs <<\_ACEOF
54266 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
54267 _ACEOF
54268
54269 # Break up conftest.defines because some shells have a limit on the size
54270 # of here documents, and old seds have small limits too (100 cmds).
54271 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
54272 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
54273 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
54274 echo '  :' >>$CONFIG_STATUS
54275 rm -f conftest.tail
54276 while grep . conftest.defines >/dev/null
54277 do
54278   # Write a limited-size here document to $tmp/defines.sed.
54279   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
54280   # Speed up: don't consider the non `#define' lines.
54281   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
54282   # Work around the forget-to-reset-the-flag bug.
54283   echo 't clr' >>$CONFIG_STATUS
54284   echo ': clr' >>$CONFIG_STATUS
54285   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
54286   echo 'CEOF
54287   sed -f $tmp/defines.sed $tmp/in >$tmp/out
54288   rm -f $tmp/in
54289   mv $tmp/out $tmp/in
54290 ' >>$CONFIG_STATUS
54291   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
54292   rm -f conftest.defines
54293   mv conftest.tail conftest.defines
54294 done
54295 rm -f conftest.defines
54296 echo '  fi # grep' >>$CONFIG_STATUS
54297 echo >>$CONFIG_STATUS
54298
54299 # Break up conftest.undefs because some shells have a limit on the size
54300 # of here documents, and old seds have small limits too (100 cmds).
54301 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
54302 rm -f conftest.tail
54303 while grep . conftest.undefs >/dev/null
54304 do
54305   # Write a limited-size here document to $tmp/undefs.sed.
54306   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
54307   # Speed up: don't consider the non `#undef'
54308   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
54309   # Work around the forget-to-reset-the-flag bug.
54310   echo 't clr' >>$CONFIG_STATUS
54311   echo ': clr' >>$CONFIG_STATUS
54312   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
54313   echo 'CEOF
54314   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
54315   rm -f $tmp/in
54316   mv $tmp/out $tmp/in
54317 ' >>$CONFIG_STATUS
54318   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
54319   rm -f conftest.undefs
54320   mv conftest.tail conftest.undefs
54321 done
54322 rm -f conftest.undefs
54323
54324 cat >>$CONFIG_STATUS <<\_ACEOF
54325   # Let's still pretend it is `configure' which instantiates (i.e., don't
54326   # use $as_me), people would be surprised to read:
54327   #    /* config.h.  Generated by config.status.  */
54328   if test x"$ac_file" = x-; then
54329     echo "/* Generated by configure.  */" >$tmp/config.h
54330   else
54331     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
54332   fi
54333   cat $tmp/in >>$tmp/config.h
54334   rm -f $tmp/in
54335   if test x"$ac_file" != x-; then
54336     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
54337       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
54338 echo "$as_me: $ac_file is unchanged" >&6;}
54339     else
54340       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
54341 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54342          X"$ac_file" : 'X\(//\)[^/]' \| \
54343          X"$ac_file" : 'X\(//\)$' \| \
54344          X"$ac_file" : 'X\(/\)' \| \
54345          .     : '\(.\)' 2>/dev/null ||
54346 echo X"$ac_file" |
54347     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
54348           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
54349           /^X\(\/\/\)$/{ s//\1/; q; }
54350           /^X\(\/\).*/{ s//\1/; q; }
54351           s/.*/./; q'`
54352       { if $as_mkdir_p; then
54353     mkdir -p "$ac_dir"
54354   else
54355     as_dir="$ac_dir"
54356     as_dirs=
54357     while test ! -d "$as_dir"; do
54358       as_dirs="$as_dir $as_dirs"
54359       as_dir=`(dirname "$as_dir") 2>/dev/null ||
54360 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54361          X"$as_dir" : 'X\(//\)[^/]' \| \
54362          X"$as_dir" : 'X\(//\)$' \| \
54363          X"$as_dir" : 'X\(/\)' \| \
54364          .     : '\(.\)' 2>/dev/null ||
54365 echo X"$as_dir" |
54366     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
54367           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
54368           /^X\(\/\/\)$/{ s//\1/; q; }
54369           /^X\(\/\).*/{ s//\1/; q; }
54370           s/.*/./; q'`
54371     done
54372     test ! -n "$as_dirs" || mkdir $as_dirs
54373   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
54374 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
54375    { (exit 1); exit 1; }; }; }
54376
54377       rm -f $ac_file
54378       mv $tmp/config.h $ac_file
54379     fi
54380   else
54381     cat $tmp/config.h
54382     rm -f $tmp/config.h
54383   fi
54384 # Compute $ac_file's index in $config_headers.
54385 _am_stamp_count=1
54386 for _am_header in $config_headers :; do
54387   case $_am_header in
54388     $ac_file | $ac_file:* )
54389       break ;;
54390     * )
54391       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
54392   esac
54393 done
54394 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
54395 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54396          X$ac_file : 'X\(//\)[^/]' \| \
54397          X$ac_file : 'X\(//\)$' \| \
54398          X$ac_file : 'X\(/\)' \| \
54399          .     : '\(.\)' 2>/dev/null ||
54400 echo X$ac_file |
54401     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
54402           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
54403           /^X\(\/\/\)$/{ s//\1/; q; }
54404           /^X\(\/\).*/{ s//\1/; q; }
54405           s/.*/./; q'`/stamp-h$_am_stamp_count
54406 done
54407 _ACEOF
54408 cat >>$CONFIG_STATUS <<\_ACEOF
54409
54410 #
54411 # CONFIG_COMMANDS section.
54412 #
54413 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
54414   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
54415   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
54416   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
54417 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54418          X"$ac_dest" : 'X\(//\)[^/]' \| \
54419          X"$ac_dest" : 'X\(//\)$' \| \
54420          X"$ac_dest" : 'X\(/\)' \| \
54421          .     : '\(.\)' 2>/dev/null ||
54422 echo X"$ac_dest" |
54423     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
54424           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
54425           /^X\(\/\/\)$/{ s//\1/; q; }
54426           /^X\(\/\).*/{ s//\1/; q; }
54427           s/.*/./; q'`
54428   { if $as_mkdir_p; then
54429     mkdir -p "$ac_dir"
54430   else
54431     as_dir="$ac_dir"
54432     as_dirs=
54433     while test ! -d "$as_dir"; do
54434       as_dirs="$as_dir $as_dirs"
54435       as_dir=`(dirname "$as_dir") 2>/dev/null ||
54436 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54437          X"$as_dir" : 'X\(//\)[^/]' \| \
54438          X"$as_dir" : 'X\(//\)$' \| \
54439          X"$as_dir" : 'X\(/\)' \| \
54440          .     : '\(.\)' 2>/dev/null ||
54441 echo X"$as_dir" |
54442     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
54443           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
54444           /^X\(\/\/\)$/{ s//\1/; q; }
54445           /^X\(\/\).*/{ s//\1/; q; }
54446           s/.*/./; q'`
54447     done
54448     test ! -n "$as_dirs" || mkdir $as_dirs
54449   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
54450 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
54451    { (exit 1); exit 1; }; }; }
54452
54453   ac_builddir=.
54454
54455 if test "$ac_dir" != .; then
54456   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
54457   # A "../" for each directory in $ac_dir_suffix.
54458   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
54459 else
54460   ac_dir_suffix= ac_top_builddir=
54461 fi
54462
54463 case $srcdir in
54464   .)  # No --srcdir option.  We are building in place.
54465     ac_srcdir=.
54466     if test -z "$ac_top_builddir"; then
54467        ac_top_srcdir=.
54468     else
54469        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
54470     fi ;;
54471   [\\/]* | ?:[\\/]* )  # Absolute path.
54472     ac_srcdir=$srcdir$ac_dir_suffix;
54473     ac_top_srcdir=$srcdir ;;
54474   *) # Relative path.
54475     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
54476     ac_top_srcdir=$ac_top_builddir$srcdir ;;
54477 esac
54478
54479 # Do not use `cd foo && pwd` to compute absolute paths, because
54480 # the directories may not exist.
54481 case `pwd` in
54482 .) ac_abs_builddir="$ac_dir";;
54483 *)
54484   case "$ac_dir" in
54485   .) ac_abs_builddir=`pwd`;;
54486   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
54487   *) ac_abs_builddir=`pwd`/"$ac_dir";;
54488   esac;;
54489 esac
54490 case $ac_abs_builddir in
54491 .) ac_abs_top_builddir=${ac_top_builddir}.;;
54492 *)
54493   case ${ac_top_builddir}. in
54494   .) ac_abs_top_builddir=$ac_abs_builddir;;
54495   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
54496   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
54497   esac;;
54498 esac
54499 case $ac_abs_builddir in
54500 .) ac_abs_srcdir=$ac_srcdir;;
54501 *)
54502   case $ac_srcdir in
54503   .) ac_abs_srcdir=$ac_abs_builddir;;
54504   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
54505   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
54506   esac;;
54507 esac
54508 case $ac_abs_builddir in
54509 .) ac_abs_top_srcdir=$ac_top_srcdir;;
54510 *)
54511   case $ac_top_srcdir in
54512   .) ac_abs_top_srcdir=$ac_abs_builddir;;
54513   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
54514   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
54515   esac;;
54516 esac
54517
54518
54519   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
54520 echo "$as_me: executing $ac_dest commands" >&6;}
54521   case $ac_dest in
54522     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
54523   # Strip MF so we end up with the name of the file.
54524   mf=`echo "$mf" | sed -e 's/:.*$//'`
54525   # Check whether this is an Automake generated Makefile or not.
54526   # We used to match only the files named `Makefile.in', but
54527   # some people rename them; so instead we look at the file content.
54528   # Grep'ing the first line is not enough: some people post-process
54529   # each Makefile.in and add a new line on top of each file to say so.
54530   # So let's grep whole file.
54531   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
54532     dirpart=`(dirname "$mf") 2>/dev/null ||
54533 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54534          X"$mf" : 'X\(//\)[^/]' \| \
54535          X"$mf" : 'X\(//\)$' \| \
54536          X"$mf" : 'X\(/\)' \| \
54537          .     : '\(.\)' 2>/dev/null ||
54538 echo X"$mf" |
54539     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
54540           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
54541           /^X\(\/\/\)$/{ s//\1/; q; }
54542           /^X\(\/\).*/{ s//\1/; q; }
54543           s/.*/./; q'`
54544   else
54545     continue
54546   fi
54547   # Extract the definition of DEPDIR, am__include, and am__quote
54548   # from the Makefile without running `make'.
54549   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
54550   test -z "$DEPDIR" && continue
54551   am__include=`sed -n 's/^am__include = //p' < "$mf"`
54552   test -z "am__include" && continue
54553   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
54554   # When using ansi2knr, U may be empty or an underscore; expand it
54555   U=`sed -n 's/^U = //p' < "$mf"`
54556   # Find all dependency output files, they are included files with
54557   # $(DEPDIR) in their names.  We invoke sed twice because it is the
54558   # simplest approach to changing $(DEPDIR) to its actual value in the
54559   # expansion.
54560   for file in `sed -n "
54561     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
54562        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
54563     # Make sure the directory exists.
54564     test -f "$dirpart/$file" && continue
54565     fdir=`(dirname "$file") 2>/dev/null ||
54566 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54567          X"$file" : 'X\(//\)[^/]' \| \
54568          X"$file" : 'X\(//\)$' \| \
54569          X"$file" : 'X\(/\)' \| \
54570          .     : '\(.\)' 2>/dev/null ||
54571 echo X"$file" |
54572     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
54573           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
54574           /^X\(\/\/\)$/{ s//\1/; q; }
54575           /^X\(\/\).*/{ s//\1/; q; }
54576           s/.*/./; q'`
54577     { if $as_mkdir_p; then
54578     mkdir -p $dirpart/$fdir
54579   else
54580     as_dir=$dirpart/$fdir
54581     as_dirs=
54582     while test ! -d "$as_dir"; do
54583       as_dirs="$as_dir $as_dirs"
54584       as_dir=`(dirname "$as_dir") 2>/dev/null ||
54585 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54586          X"$as_dir" : 'X\(//\)[^/]' \| \
54587          X"$as_dir" : 'X\(//\)$' \| \
54588          X"$as_dir" : 'X\(/\)' \| \
54589          .     : '\(.\)' 2>/dev/null ||
54590 echo X"$as_dir" |
54591     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
54592           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
54593           /^X\(\/\/\)$/{ s//\1/; q; }
54594           /^X\(\/\).*/{ s//\1/; q; }
54595           s/.*/./; q'`
54596     done
54597     test ! -n "$as_dirs" || mkdir $as_dirs
54598   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
54599 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
54600    { (exit 1); exit 1; }; }; }
54601
54602     # echo "creating $dirpart/$file"
54603     echo '# dummy' > "$dirpart/$file"
54604   done
54605 done
54606  ;;
54607     $ac_stdint_h )
54608 { echo "$as_me:$LINENO: creating $ac_stdint_h : $_ac_stdint_h" >&5
54609 echo "$as_me: creating $ac_stdint_h : $_ac_stdint_h" >&6;}
54610 ac_stdint=$tmp/_stdint.h
54611
54612 echo "#ifndef" $_ac_stdint_h >$ac_stdint
54613 echo "#define" $_ac_stdint_h "1" >>$ac_stdint
54614 echo "#ifndef" _GENERATED_STDINT_H >>$ac_stdint
54615 echo "#define" _GENERATED_STDINT_H '"'$PACKAGE $VERSION'"' >>$ac_stdint
54616 echo "/* generated $ac_cv_stdint_message */" >>$ac_stdint
54617 if test "_$ac_cv_header_stdint_t" != "_" ; then
54618 echo "#define _STDINT_HAVE_STDINT_H" "1" >>$ac_stdint
54619 echo "#include <stdint.h>" >>$ac_stdint
54620 echo "#endif" >>$ac_stdint
54621 echo "#endif" >>$ac_stdint
54622 else
54623
54624 cat >>$ac_stdint <<STDINT_EOF
54625
54626 /* ................... shortcircuit part ........................... */
54627
54628 #if defined HAVE_STDINT_H || defined _STDINT_HAVE_STDINT_H
54629 #include <stdint.h>
54630 #else
54631 #include <stddef.h>
54632
54633 /* .................... configured part ............................ */
54634
54635 STDINT_EOF
54636
54637 echo "/* whether we have a C99 compatible stdint header file */" >>$ac_stdint
54638 if test "_$ac_cv_header_stdint_x" != "_" ; then
54639   ac_header="$ac_cv_header_stdint_x"
54640   echo "#define _STDINT_HEADER_INTPTR" '"'"$ac_header"'"' >>$ac_stdint
54641 else
54642   echo "/* #undef _STDINT_HEADER_INTPTR */" >>$ac_stdint
54643 fi
54644
54645 echo "/* whether we have a C96 compatible inttypes header file */" >>$ac_stdint
54646 if  test "_$ac_cv_header_stdint_o" != "_" ; then
54647   ac_header="$ac_cv_header_stdint_o"
54648   echo "#define _STDINT_HEADER_UINT32" '"'"$ac_header"'"' >>$ac_stdint
54649 else
54650   echo "/* #undef _STDINT_HEADER_UINT32 */" >>$ac_stdint
54651 fi
54652
54653 echo "/* whether we have a BSD compatible inet types header */" >>$ac_stdint
54654 if  test "_$ac_cv_header_stdint_u" != "_" ; then
54655   ac_header="$ac_cv_header_stdint_u"
54656   echo "#define _STDINT_HEADER_U_INT32" '"'"$ac_header"'"' >>$ac_stdint
54657 else
54658   echo "/* #undef _STDINT_HEADER_U_INT32 */" >>$ac_stdint
54659 fi
54660
54661 echo "" >>$ac_stdint
54662
54663 if test "_$ac_header" != "_" ; then if test "$ac_header" != "stddef.h" ; then
54664   echo "#include <$ac_header>" >>$ac_stdint
54665   echo "" >>$ac_stdint
54666 fi fi
54667
54668 echo "/* which 64bit typedef has been found */" >>$ac_stdint
54669 if test "$ac_cv_type_uint64_t" = "yes" ; then
54670 echo "#define   _STDINT_HAVE_UINT64_T" "1"  >>$ac_stdint
54671 else
54672 echo "/* #undef _STDINT_HAVE_UINT64_T */" >>$ac_stdint
54673 fi
54674 if test "$ac_cv_type_u_int64_t" = "yes" ; then
54675 echo "#define   _STDINT_HAVE_U_INT64_T" "1"  >>$ac_stdint
54676 else
54677 echo "/* #undef _STDINT_HAVE_U_INT64_T */" >>$ac_stdint
54678 fi
54679 echo "" >>$ac_stdint
54680
54681 echo "/* which type model has been detected */" >>$ac_stdint
54682 if test "_$ac_cv_char_data_model" != "_" ; then
54683 echo "#define   _STDINT_CHAR_MODEL" "$ac_cv_char_data_model" >>$ac_stdint
54684 echo "#define   _STDINT_LONG_MODEL" "$ac_cv_long_data_model" >>$ac_stdint
54685 else
54686 echo "/* #undef _STDINT_CHAR_MODEL // skipped */" >>$ac_stdint
54687 echo "/* #undef _STDINT_LONG_MODEL // skipped */" >>$ac_stdint
54688 fi
54689 echo "" >>$ac_stdint
54690
54691 echo "/* whether int_least types were detected */" >>$ac_stdint
54692 if test "$ac_cv_type_int_least32_t" = "yes"; then
54693 echo "#define   _STDINT_HAVE_INT_LEAST32_T" "1"  >>$ac_stdint
54694 else
54695 echo "/* #undef _STDINT_HAVE_INT_LEAST32_T */" >>$ac_stdint
54696 fi
54697 echo "/* whether int_fast types were detected */" >>$ac_stdint
54698 if test "$ac_cv_type_int_fast32_t" = "yes"; then
54699 echo "#define   _STDINT_HAVE_INT_FAST32_T" "1" >>$ac_stdint
54700 else
54701 echo "/* #undef _STDINT_HAVE_INT_FAST32_T */" >>$ac_stdint
54702 fi
54703 echo "/* whether intmax_t type was detected */" >>$ac_stdint
54704 if test "$ac_cv_type_intmax_t" = "yes"; then
54705 echo "#define   _STDINT_HAVE_INTMAX_T" "1" >>$ac_stdint
54706 else
54707 echo "/* #undef _STDINT_HAVE_INTMAX_T */" >>$ac_stdint
54708 fi
54709 echo "" >>$ac_stdint
54710
54711   cat >>$ac_stdint <<STDINT_EOF
54712 /* .................... detections part ............................ */
54713
54714 /* whether we need to define bitspecific types from compiler base types */
54715 #ifndef _STDINT_HEADER_INTPTR
54716 #ifndef _STDINT_HEADER_UINT32
54717 #ifndef _STDINT_HEADER_U_INT32
54718 #define _STDINT_NEED_INT_MODEL_T
54719 #else
54720 #define _STDINT_HAVE_U_INT_TYPES
54721 #endif
54722 #endif
54723 #endif
54724
54725 #ifdef _STDINT_HAVE_U_INT_TYPES
54726 #undef _STDINT_NEED_INT_MODEL_T
54727 #endif
54728
54729 #ifdef  _STDINT_CHAR_MODEL
54730 #if     _STDINT_CHAR_MODEL+0 == 122 || _STDINT_CHAR_MODEL+0 == 124
54731 #ifndef _STDINT_BYTE_MODEL
54732 #define _STDINT_BYTE_MODEL 12
54733 #endif
54734 #endif
54735 #endif
54736
54737 #ifndef _STDINT_HAVE_INT_LEAST32_T
54738 #define _STDINT_NEED_INT_LEAST_T
54739 #endif
54740
54741 #ifndef _STDINT_HAVE_INT_FAST32_T
54742 #define _STDINT_NEED_INT_FAST_T
54743 #endif
54744
54745 #ifndef _STDINT_HEADER_INTPTR
54746 #define _STDINT_NEED_INTPTR_T
54747 #ifndef _STDINT_HAVE_INTMAX_T
54748 #define _STDINT_NEED_INTMAX_T
54749 #endif
54750 #endif
54751
54752
54753 /* .................... definition part ............................ */
54754
54755 /* some system headers have good uint64_t */
54756 #ifndef _HAVE_UINT64_T
54757 #if     defined _STDINT_HAVE_UINT64_T  || defined HAVE_UINT64_T
54758 #define _HAVE_UINT64_T
54759 #elif   defined _STDINT_HAVE_U_INT64_T || defined HAVE_U_INT64_T
54760 #define _HAVE_UINT64_T
54761 typedef u_int64_t uint64_t;
54762 #endif
54763 #endif
54764
54765 #ifndef _HAVE_UINT64_T
54766 /* .. here are some common heuristics using compiler runtime specifics */
54767 #if defined __STDC_VERSION__ && defined __STDC_VERSION__ >= 199901L
54768 #define _HAVE_UINT64_T
54769 #define _HAVE_LONGLONG_UINT64_T
54770 typedef long long int64_t;
54771 typedef unsigned long long uint64_t;
54772
54773 #elif !defined __STRICT_ANSI__
54774 #if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
54775 #define _HAVE_UINT64_T
54776 typedef __int64 int64_t;
54777 typedef unsigned __int64 uint64_t;
54778
54779 #elif defined __GNUC__ || defined __MWERKS__ || defined __ELF__
54780 /* note: all ELF-systems seem to have loff-support which needs 64-bit */
54781 #if !defined _NO_LONGLONG
54782 #define _HAVE_UINT64_T
54783 #define _HAVE_LONGLONG_UINT64_T
54784 typedef long long int64_t;
54785 typedef unsigned long long uint64_t;
54786 #endif
54787
54788 #elif defined __alpha || (defined __mips && defined _ABIN32)
54789 #if !defined _NO_LONGLONG
54790 #define _HAVE_UINT64_T
54791 typedef long int64_t;
54792 typedef unsigned long uint64_t;
54793 #endif
54794   /* compiler/cpu type to define int64_t */
54795 #endif
54796 #endif
54797 #endif
54798
54799 #if defined _STDINT_HAVE_U_INT_TYPES
54800 /* int8_t int16_t int32_t defined by inet code, redeclare the u_intXX types */
54801 typedef u_int8_t uint8_t;
54802 typedef u_int16_t uint16_t;
54803 typedef u_int32_t uint32_t;
54804
54805 /* glibc compatibility */
54806 #ifndef __int8_t_defined
54807 #define __int8_t_defined
54808 #endif
54809 #endif
54810
54811 #ifdef _STDINT_NEED_INT_MODEL_T
54812 /* we must guess all the basic types. Apart from byte-adressable system, */
54813 /* there a few 32-bit-only dsp-systems that we guard with BYTE_MODEL 8-} */
54814 /* (btw, those nibble-addressable systems are way off, or so we assume) */
54815
54816
54817 #if defined _STDINT_BYTE_MODEL
54818 #if _STDINT_LONG_MODEL+0 == 242
54819 /* 2:4:2 =  IP16 = a normal 16-bit system                */
54820 typedef unsigned char   uint8_t;
54821 typedef unsigned short  uint16_t;
54822 typedef unsigned long   uint32_t;
54823 #ifndef __int8_t_defined
54824 #define __int8_t_defined
54825 typedef          char    int8_t;
54826 typedef          short   int16_t;
54827 typedef          long    int32_t;
54828 #endif
54829 #elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL == 444
54830 /* 2:4:4 =  LP32 = a 32-bit system derived from a 16-bit */
54831 /* 4:4:4 = ILP32 = a normal 32-bit system                */
54832 typedef unsigned char   uint8_t;
54833 typedef unsigned short  uint16_t;
54834 typedef unsigned int    uint32_t;
54835 #ifndef __int8_t_defined
54836 #define __int8_t_defined
54837 typedef          char    int8_t;
54838 typedef          short   int16_t;
54839 typedef          int     int32_t;
54840 #endif
54841 #elif _STDINT_LONG_MODEL+0 == 484 || _STDINT_LONG_MODEL+0 == 488
54842 /* 4:8:4 =  IP32 = a 32-bit system prepared for 64-bit    */
54843 /* 4:8:8 =  LP64 = a normal 64-bit system                 */
54844 typedef unsigned char   uint8_t;
54845 typedef unsigned short  uint16_t;
54846 typedef unsigned int    uint32_t;
54847 #ifndef __int8_t_defined
54848 #define __int8_t_defined
54849 typedef          char    int8_t;
54850 typedef          short   int16_t;
54851 typedef          int     int32_t;
54852 #endif
54853 /* this system has a "long" of 64bit */
54854 #ifndef _HAVE_UINT64_T
54855 #define _HAVE_UINT64_T
54856 typedef unsigned long   uint64_t;
54857 typedef          long    int64_t;
54858 #endif
54859 #elif _STDINT_LONG_MODEL+0 == 448
54860 /*      LLP64   a 64-bit system derived from a 32-bit system */
54861 typedef unsigned char   uint8_t;
54862 typedef unsigned short  uint16_t;
54863 typedef unsigned int    uint32_t;
54864 #ifndef __int8_t_defined
54865 #define __int8_t_defined
54866 typedef          char    int8_t;
54867 typedef          short   int16_t;
54868 typedef          int     int32_t;
54869 #endif
54870 /* assuming the system has a "long long" */
54871 #ifndef _HAVE_UINT64_T
54872 #define _HAVE_UINT64_T
54873 #define _HAVE_LONGLONG_UINT64_T
54874 typedef unsigned long long uint64_t;
54875 typedef          long long  int64_t;
54876 #endif
54877 #else
54878 #define _STDINT_NO_INT32_T
54879 #endif
54880 #else
54881 #define _STDINT_NO_INT8_T
54882 #define _STDINT_NO_INT32_T
54883 #endif
54884 #endif
54885
54886 /*
54887  * quote from SunOS-5.8 sys/inttypes.h:
54888  * Use at your own risk.  As of February 1996, the committee is squarely
54889  * behind the fixed sized types; the "least" and "fast" types are still being
54890  * discussed.  The probability that the "fast" types may be removed before
54891  * the standard is finalized is high enough that they are not currently
54892  * implemented.
54893  */
54894
54895 #if defined _STDINT_NEED_INT_LEAST_T
54896 typedef  int8_t    int_least8_t;
54897 typedef  int16_t   int_least16_t;
54898 typedef  int32_t   int_least32_t;
54899 #ifdef _HAVE_UINT64_T
54900 typedef  int64_t   int_least64_t;
54901 #endif
54902
54903 typedef uint8_t   uint_least8_t;
54904 typedef uint16_t  uint_least16_t;
54905 typedef uint32_t  uint_least32_t;
54906 #ifdef _HAVE_UINT64_T
54907 typedef uint64_t  uint_least64_t;
54908 #endif
54909   /* least types */
54910 #endif
54911
54912 #if defined _STDINT_NEED_INT_FAST_T
54913 typedef  int8_t    int_fast8_t;
54914 typedef  int       int_fast16_t;
54915 typedef  int32_t   int_fast32_t;
54916 #ifdef _HAVE_UINT64_T
54917 typedef  int64_t   int_fast64_t;
54918 #endif
54919
54920 typedef uint8_t   uint_fast8_t;
54921 typedef unsigned  uint_fast16_t;
54922 typedef uint32_t  uint_fast32_t;
54923 #ifdef _HAVE_UINT64_T
54924 typedef uint64_t  uint_fast64_t;
54925 #endif
54926   /* fast types */
54927 #endif
54928
54929 #ifdef _STDINT_NEED_INTMAX_T
54930 #ifdef _HAVE_UINT64_T
54931 typedef  int64_t       intmax_t;
54932 typedef uint64_t      uintmax_t;
54933 #else
54934 typedef          long  intmax_t;
54935 typedef unsigned long uintmax_t;
54936 #endif
54937 #endif
54938
54939 #ifdef _STDINT_NEED_INTPTR_T
54940 #ifndef __intptr_t_defined
54941 #define __intptr_t_defined
54942 /* we encourage using "long" to store pointer values, never use "int" ! */
54943 #if   _STDINT_LONG_MODEL+0 == 242 || _STDINT_LONG_MODEL+0 == 484
54944 typedef  unsinged int   uintptr_t;
54945 typedef           int    intptr_t;
54946 #elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL+0 == 444
54947 typedef  unsigned long  uintptr_t;
54948 typedef           long   intptr_t;
54949 #elif _STDINT_LONG_MODEL+0 == 448 && defined _HAVE_UINT64_T
54950 typedef        uint64_t uintptr_t;
54951 typedef         int64_t  intptr_t;
54952 #else /* matches typical system types ILP32 and LP64 - but not IP16 or LLP64 */
54953 typedef  unsigned long  uintptr_t;
54954 typedef           long   intptr_t;
54955 #endif
54956 #endif
54957 #endif
54958
54959 /* The ISO C99 standard specifies that in C++ implementations these
54960    should only be defined if explicitly requested.  */
54961 #if !defined __cplusplus || defined __STDC_CONSTANT_MACROS
54962 #ifndef UINT32_C
54963
54964 /* Signed.  */
54965 # define INT8_C(c)      c
54966 # define INT16_C(c)     c
54967 # define INT32_C(c)     c
54968 # ifdef _HAVE_LONGLONG_UINT64_T
54969 #  define INT64_C(c)    c ## L
54970 # else
54971 #  define INT64_C(c)    c ## LL
54972 # endif
54973
54974 /* Unsigned.  */
54975 # define UINT8_C(c)     c ## U
54976 # define UINT16_C(c)    c ## U
54977 # define UINT32_C(c)    c ## U
54978 # ifdef _HAVE_LONGLONG_UINT64_T
54979 #  define UINT64_C(c)   c ## UL
54980 # else
54981 #  define UINT64_C(c)   c ## ULL
54982 # endif
54983
54984 /* Maximal type.  */
54985 # ifdef _HAVE_LONGLONG_UINT64_T
54986 #  define INTMAX_C(c)   c ## L
54987 #  define UINTMAX_C(c)  c ## UL
54988 # else
54989 #  define INTMAX_C(c)   c ## LL
54990 #  define UINTMAX_C(c)  c ## ULL
54991 # endif
54992
54993   /* literalnumbers */
54994 #endif
54995 #endif
54996
54997 /* These limits are merily those of a two complement byte-oriented system */
54998
54999 /* Minimum of signed integral types.  */
55000 # define INT8_MIN               (-128)
55001 # define INT16_MIN              (-32767-1)
55002 # define INT32_MIN              (-2147483647-1)
55003 # define INT64_MIN              (-__INT64_C(9223372036854775807)-1)
55004 /* Maximum of signed integral types.  */
55005 # define INT8_MAX               (127)
55006 # define INT16_MAX              (32767)
55007 # define INT32_MAX              (2147483647)
55008 # define INT64_MAX              (__INT64_C(9223372036854775807))
55009
55010 /* Maximum of unsigned integral types.  */
55011 # define UINT8_MAX              (255)
55012 # define UINT16_MAX             (65535)
55013 # define UINT32_MAX             (4294967295U)
55014 # define UINT64_MAX             (__UINT64_C(18446744073709551615))
55015
55016 /* Minimum of signed integral types having a minimum size.  */
55017 # define INT_LEAST8_MIN         INT8_MIN
55018 # define INT_LEAST16_MIN        INT16_MIN
55019 # define INT_LEAST32_MIN        INT32_MIN
55020 # define INT_LEAST64_MIN        INT64_MIN
55021 /* Maximum of signed integral types having a minimum size.  */
55022 # define INT_LEAST8_MAX         INT8_MAX
55023 # define INT_LEAST16_MAX        INT16_MAX
55024 # define INT_LEAST32_MAX        INT32_MAX
55025 # define INT_LEAST64_MAX        INT64_MAX
55026
55027 /* Maximum of unsigned integral types having a minimum size.  */
55028 # define UINT_LEAST8_MAX        UINT8_MAX
55029 # define UINT_LEAST16_MAX       UINT16_MAX
55030 # define UINT_LEAST32_MAX       UINT32_MAX
55031 # define UINT_LEAST64_MAX       UINT64_MAX
55032
55033   /* shortcircuit*/
55034 #endif
55035   /* once */
55036 #endif
55037 #endif
55038 STDINT_EOF
55039 fi
55040     if cmp -s $ac_stdint_h $ac_stdint 2>/dev/null; then
55041       { echo "$as_me:$LINENO: $ac_stdint_h is unchanged" >&5
55042 echo "$as_me: $ac_stdint_h is unchanged" >&6;}
55043     else
55044       ac_dir=`(dirname "$ac_stdint_h") 2>/dev/null ||
55045 $as_expr X"$ac_stdint_h" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
55046          X"$ac_stdint_h" : 'X\(//\)[^/]' \| \
55047          X"$ac_stdint_h" : 'X\(//\)$' \| \
55048          X"$ac_stdint_h" : 'X\(/\)' \| \
55049          .     : '\(.\)' 2>/dev/null ||
55050 echo X"$ac_stdint_h" |
55051     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
55052           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
55053           /^X\(\/\/\)$/{ s//\1/; q; }
55054           /^X\(\/\).*/{ s//\1/; q; }
55055           s/.*/./; q'`
55056       { if $as_mkdir_p; then
55057     mkdir -p "$ac_dir"
55058   else
55059     as_dir="$ac_dir"
55060     as_dirs=
55061     while test ! -d "$as_dir"; do
55062       as_dirs="$as_dir $as_dirs"
55063       as_dir=`(dirname "$as_dir") 2>/dev/null ||
55064 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
55065          X"$as_dir" : 'X\(//\)[^/]' \| \
55066          X"$as_dir" : 'X\(//\)$' \| \
55067          X"$as_dir" : 'X\(/\)' \| \
55068          .     : '\(.\)' 2>/dev/null ||
55069 echo X"$as_dir" |
55070     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
55071           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
55072           /^X\(\/\/\)$/{ s//\1/; q; }
55073           /^X\(\/\).*/{ s//\1/; q; }
55074           s/.*/./; q'`
55075     done
55076     test ! -n "$as_dirs" || mkdir $as_dirs
55077   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
55078 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
55079    { (exit 1); exit 1; }; }; }
55080
55081       rm -f $ac_stdint_h
55082       mv $ac_stdint $ac_stdint_h
55083     fi
55084  ;;
55085   esac
55086 done
55087 _ACEOF
55088
55089 cat >>$CONFIG_STATUS <<\_ACEOF
55090
55091 { (exit 0); exit 0; }
55092 _ACEOF
55093 chmod +x $CONFIG_STATUS
55094 ac_clean_files=$ac_clean_files_save
55095
55096
55097 # configure is writing to config.log, and then calls config.status.
55098 # config.status does its own redirection, appending to config.log.
55099 # Unfortunately, on DOS this fails, as config.log is still kept open
55100 # by configure, so config.status won't be able to write to it; its
55101 # output is simply discarded.  So we exec the FD to /dev/null,
55102 # effectively closing config.log, so it can be properly (re)opened and
55103 # appended to by config.status.  When coming back to configure, we
55104 # need to make the FD available again.
55105 if test "$no_create" != yes; then
55106   ac_cs_success=:
55107   ac_config_status_args=
55108   test "$silent" = yes &&
55109     ac_config_status_args="$ac_config_status_args --quiet"
55110   exec 5>/dev/null
55111   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
55112   exec 5>>config.log
55113   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
55114   # would make configure fail if this is the last instruction.
55115   $ac_cs_success || { (exit 1); exit 1; }
55116 fi
55117