Imported Upstream version 2.4.5p1
[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 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 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 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 LTLIBOBJS LTALLOCA'
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
1037 Optional Packages:
1038   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1039   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1040   --with-includes=DIR    site header files for readline, etc in DIR
1041   --with-libraries=DIR   site library directories for readline, etc in DIR
1042   --with-configdir=DIR   runtime config files in DIR sysconfdir/amanda
1043   --with-indexdir        deprecated, use indexdir in amanda.conf
1044   --with-dbdir           deprecated, use infofile in amanda.conf
1045   --with-logdir          deprecated, use logfile in amanda.conf
1046   --with-suffixes        install binaries with version string appended to name
1047   --with-client-only     deprecated, use --without-server
1048   --with-server-only     deprecated, use --without-client
1049   --without-client       do not build client stuff
1050   --without-server       do not build server stuff (set --without-restore)
1051   --without-restore      do not build amrestore nor amidxtaped
1052   --without-amrecover    do not build amrecover
1053   --with-index-server=HOST default amanda index server `uname -n`
1054   --without-force-uid    do not force the uid to --with-user
1055   --with-user=USER       force execution to USER on client systems required
1056   --with-group=GROUP     group allowed to execute setuid-root programs required
1057   --with-owner=USER       force ownership of files to USER default == --with-user value
1058   --with-rundump         use rundump (setuid-root) to invoke dump
1059   --with-config=CONFIG   default configuration DailySet1
1060   --with-tape-server=HOST default restoring tape server is HOST same as --with-index-server
1061   --with-tape-device=ARG restoring tape server HOST's no rewinding tape drive
1062   --with-ftape-rawdevice=ARG raw device on tape server HOST's if using Linux ftape >=3.04d
1063   --with-rew-tape        deprecated, use --with-tape-device
1064   --with-norew-tape=ARG  deprecated, use --with-tape-device
1065   --with-changer-device=ARG default tape changer device /dev/ch0 if it exists
1066   --with-fqdn            use FQDN's to backup multiple networks
1067   --with-broken-fsf      only enable if tape fsf calls fail mid-file
1068   --with-gnutar=PROG     use PROG as GNU tar executable default: looks for one
1069    --with-qde                use quick-and-dirty estimates for gnutar
1070   --with-smbclient=PROG   use PROG as Samba's smbclient executable default: looks for one
1071   --with-samba-user was deprecated
1072   --with-gnutar-listdir=DIR  gnutar directory lists go in DIR localstatedir/amanda/gnutar-lists
1073   --with-gnutar-listed-incremental was deprecated, use --with-gnutar-listdir
1074   --without-bsd-security do not use BSD rsh/rlogin style security
1075   --without-amandahosts  use .rhosts instead of .amandahosts
1076   --with-krb4-security=DIR   Location of Kerberos software /usr/kerberos /usr/cygnus /usr /opt/kerberos
1077     --with-server-principal=ARG    server host principal  "amanda"
1078     --with-server-instance=ARG     server host instance   "amanda"
1079     --with-server-keyfile=ARG      server host key file   "/.amanda"
1080     --with-client-principal=ARG    client host principal  "rcmd"
1081     --with-client-instance=ARG     client host instance   HOSTNAME_INSTANCE
1082     --with-client-keyfile=ARG      client host key file   KEYFILE
1083     --with-ticket-lifetime=ARG     ticket lifetime        128
1084   --with-portrange=low,high     bind unreserved TCP server sockets to ports within this range unlimited
1085   --with-tcpportrange=low,high  bind unreserved TCP server sockets to ports within this range unlimited
1086   --with-udpportrange=low,high  bind reserved UDP server sockets to ports within this range unlimited
1087   --with-maxtapeblocksize=kb            Maximum size of a tape block
1088   --with-db={text,db,dbm,gdbm,ndbm} use the selected database format text
1089   --with-mmap            force use of mmap instead of shared memory support
1090   --with-buffered-dump   buffer the dumping sockets on the server for speed
1091   --with-assertions      compile assertions into code
1092   --with-tmpdir=/temp/dir area Amanda can use for temp files /tmp/amanda
1093   --without-debugging=/debug/dir do not record runtime debugging information in specified directory --with-tmpdir
1094   --with-debug-days=NN    number of days to keep debugging files default=4
1095   --with-testing=suffix use alternate service names
1096   --with-dump-honor-nodump  if dump supports -h, use it for level0s too
1097   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1098   --with-pic              try to use only PIC/non-PIC objects [default=use
1099                           both]
1100   --with-tags[=TAGS]
1101                           include additional configurations [automatic]
1102
1103 Some influential environment variables:
1104   CC          C compiler command
1105   CFLAGS      C compiler flags
1106   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1107               nonstandard directory <lib dir>
1108   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1109               headers in a nonstandard directory <include dir>
1110   CPP         C preprocessor
1111   CXX         C++ compiler command
1112   CXXFLAGS    C++ compiler flags
1113   CXXCPP      C++ preprocessor
1114   F77         Fortran 77 compiler command
1115   FFLAGS      Fortran 77 compiler flags
1116
1117 Use these variables to override the choices made by `configure' or to help
1118 it to find libraries and programs with nonstandard names/locations.
1119
1120 _ACEOF
1121 fi
1122
1123 if test "$ac_init_help" = "recursive"; then
1124   # If there are subdirs, report their specific --help.
1125   ac_popdir=`pwd`
1126   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1127     test -d $ac_dir || continue
1128     ac_builddir=.
1129
1130 if test "$ac_dir" != .; then
1131   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1132   # A "../" for each directory in $ac_dir_suffix.
1133   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1134 else
1135   ac_dir_suffix= ac_top_builddir=
1136 fi
1137
1138 case $srcdir in
1139   .)  # No --srcdir option.  We are building in place.
1140     ac_srcdir=.
1141     if test -z "$ac_top_builddir"; then
1142        ac_top_srcdir=.
1143     else
1144        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1145     fi ;;
1146   [\\/]* | ?:[\\/]* )  # Absolute path.
1147     ac_srcdir=$srcdir$ac_dir_suffix;
1148     ac_top_srcdir=$srcdir ;;
1149   *) # Relative path.
1150     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1151     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1152 esac
1153
1154 # Do not use `cd foo && pwd` to compute absolute paths, because
1155 # the directories may not exist.
1156 case `pwd` in
1157 .) ac_abs_builddir="$ac_dir";;
1158 *)
1159   case "$ac_dir" in
1160   .) ac_abs_builddir=`pwd`;;
1161   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1162   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1163   esac;;
1164 esac
1165 case $ac_abs_builddir in
1166 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1167 *)
1168   case ${ac_top_builddir}. in
1169   .) ac_abs_top_builddir=$ac_abs_builddir;;
1170   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1171   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1172   esac;;
1173 esac
1174 case $ac_abs_builddir in
1175 .) ac_abs_srcdir=$ac_srcdir;;
1176 *)
1177   case $ac_srcdir in
1178   .) ac_abs_srcdir=$ac_abs_builddir;;
1179   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1180   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1181   esac;;
1182 esac
1183 case $ac_abs_builddir in
1184 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1185 *)
1186   case $ac_top_srcdir in
1187   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1188   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1189   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1190   esac;;
1191 esac
1192
1193     cd $ac_dir
1194     # Check for guested configure; otherwise get Cygnus style configure.
1195     if test -f $ac_srcdir/configure.gnu; then
1196       echo
1197       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1198     elif test -f $ac_srcdir/configure; then
1199       echo
1200       $SHELL $ac_srcdir/configure  --help=recursive
1201     elif test -f $ac_srcdir/configure.ac ||
1202            test -f $ac_srcdir/configure.in; then
1203       echo
1204       $ac_configure --help
1205     else
1206       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1207     fi
1208     cd $ac_popdir
1209   done
1210 fi
1211
1212 test -n "$ac_init_help" && exit 0
1213 if $ac_init_version; then
1214   cat <<\_ACEOF
1215
1216 Copyright (C) 2003 Free Software Foundation, Inc.
1217 This configure script is free software; the Free Software Foundation
1218 gives unlimited permission to copy, distribute and modify it.
1219 _ACEOF
1220   exit 0
1221 fi
1222 exec 5>config.log
1223 cat >&5 <<_ACEOF
1224 This file contains any messages produced by compilers while
1225 running configure, to aid debugging if configure makes a mistake.
1226
1227 It was created by $as_me, which was
1228 generated by GNU Autoconf 2.59.  Invocation command line was
1229
1230   $ $0 $@
1231
1232 _ACEOF
1233 {
1234 cat <<_ASUNAME
1235 ## --------- ##
1236 ## Platform. ##
1237 ## --------- ##
1238
1239 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1240 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1241 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1242 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1243 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1244
1245 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1246 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1247
1248 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1249 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1250 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1251 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1252 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1253 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1254 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1255
1256 _ASUNAME
1257
1258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1259 for as_dir in $PATH
1260 do
1261   IFS=$as_save_IFS
1262   test -z "$as_dir" && as_dir=.
1263   echo "PATH: $as_dir"
1264 done
1265
1266 } >&5
1267
1268 cat >&5 <<_ACEOF
1269
1270
1271 ## ----------- ##
1272 ## Core tests. ##
1273 ## ----------- ##
1274
1275 _ACEOF
1276
1277
1278 # Keep a trace of the command line.
1279 # Strip out --no-create and --no-recursion so they do not pile up.
1280 # Strip out --silent because we don't want to record it for future runs.
1281 # Also quote any args containing shell meta-characters.
1282 # Make two passes to allow for proper duplicate-argument suppression.
1283 ac_configure_args=
1284 ac_configure_args0=
1285 ac_configure_args1=
1286 ac_sep=
1287 ac_must_keep_next=false
1288 for ac_pass in 1 2
1289 do
1290   for ac_arg
1291   do
1292     case $ac_arg in
1293     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1294     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1295     | -silent | --silent | --silen | --sile | --sil)
1296       continue ;;
1297     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1298       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1299     esac
1300     case $ac_pass in
1301     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1302     2)
1303       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1304       if test $ac_must_keep_next = true; then
1305         ac_must_keep_next=false # Got value, back to normal.
1306       else
1307         case $ac_arg in
1308           *=* | --config-cache | -C | -disable-* | --disable-* \
1309           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1310           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1311           | -with-* | --with-* | -without-* | --without-* | --x)
1312             case "$ac_configure_args0 " in
1313               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1314             esac
1315             ;;
1316           -* ) ac_must_keep_next=true ;;
1317         esac
1318       fi
1319       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1320       # Get rid of the leading space.
1321       ac_sep=" "
1322       ;;
1323     esac
1324   done
1325 done
1326 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1327 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1328
1329 # When interrupted or exit'd, cleanup temporary files, and complete
1330 # config.log.  We remove comments because anyway the quotes in there
1331 # would cause problems or look ugly.
1332 # WARNING: Be sure not to use single quotes in there, as some shells,
1333 # such as our DU 5.0 friend, will then `close' the trap.
1334 trap 'exit_status=$?
1335   # Save into config.log some information that might help in debugging.
1336   {
1337     echo
1338
1339     cat <<\_ASBOX
1340 ## ---------------- ##
1341 ## Cache variables. ##
1342 ## ---------------- ##
1343 _ASBOX
1344     echo
1345     # The following way of writing the cache mishandles newlines in values,
1346 {
1347   (set) 2>&1 |
1348     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1349     *ac_space=\ *)
1350       sed -n \
1351         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1352           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1353       ;;
1354     *)
1355       sed -n \
1356         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1357       ;;
1358     esac;
1359 }
1360     echo
1361
1362     cat <<\_ASBOX
1363 ## ----------------- ##
1364 ## Output variables. ##
1365 ## ----------------- ##
1366 _ASBOX
1367     echo
1368     for ac_var in $ac_subst_vars
1369     do
1370       eval ac_val=$`echo $ac_var`
1371       echo "$ac_var='"'"'$ac_val'"'"'"
1372     done | sort
1373     echo
1374
1375     if test -n "$ac_subst_files"; then
1376       cat <<\_ASBOX
1377 ## ------------- ##
1378 ## Output files. ##
1379 ## ------------- ##
1380 _ASBOX
1381       echo
1382       for ac_var in $ac_subst_files
1383       do
1384         eval ac_val=$`echo $ac_var`
1385         echo "$ac_var='"'"'$ac_val'"'"'"
1386       done | sort
1387       echo
1388     fi
1389
1390     if test -s confdefs.h; then
1391       cat <<\_ASBOX
1392 ## ----------- ##
1393 ## confdefs.h. ##
1394 ## ----------- ##
1395 _ASBOX
1396       echo
1397       sed "/^$/d" confdefs.h | sort
1398       echo
1399     fi
1400     test "$ac_signal" != 0 &&
1401       echo "$as_me: caught signal $ac_signal"
1402     echo "$as_me: exit $exit_status"
1403   } >&5
1404   rm -f core *.core &&
1405   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1406     exit $exit_status
1407      ' 0
1408 for ac_signal in 1 2 13 15; do
1409   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1410 done
1411 ac_signal=0
1412
1413 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1414 rm -rf conftest* confdefs.h
1415 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1416 echo >confdefs.h
1417
1418 # Predefined preprocessor variables.
1419
1420 cat >>confdefs.h <<_ACEOF
1421 #define PACKAGE_NAME "$PACKAGE_NAME"
1422 _ACEOF
1423
1424
1425 cat >>confdefs.h <<_ACEOF
1426 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1427 _ACEOF
1428
1429
1430 cat >>confdefs.h <<_ACEOF
1431 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1432 _ACEOF
1433
1434
1435 cat >>confdefs.h <<_ACEOF
1436 #define PACKAGE_STRING "$PACKAGE_STRING"
1437 _ACEOF
1438
1439
1440 cat >>confdefs.h <<_ACEOF
1441 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1442 _ACEOF
1443
1444
1445 # Let the site file select an alternate cache file if it wants to.
1446 # Prefer explicitly selected file to automatically selected ones.
1447 if test -z "$CONFIG_SITE"; then
1448   if test "x$prefix" != xNONE; then
1449     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1450   else
1451     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1452   fi
1453 fi
1454 for ac_site_file in $CONFIG_SITE; do
1455   if test -r "$ac_site_file"; then
1456     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1457 echo "$as_me: loading site script $ac_site_file" >&6;}
1458     sed 's/^/| /' "$ac_site_file" >&5
1459     . "$ac_site_file"
1460   fi
1461 done
1462
1463 if test -r "$cache_file"; then
1464   # Some versions of bash will fail to source /dev/null (special
1465   # files actually), so we avoid doing that.
1466   if test -f "$cache_file"; then
1467     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1468 echo "$as_me: loading cache $cache_file" >&6;}
1469     case $cache_file in
1470       [\\/]* | ?:[\\/]* ) . $cache_file;;
1471       *)                      . ./$cache_file;;
1472     esac
1473   fi
1474 else
1475   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1476 echo "$as_me: creating cache $cache_file" >&6;}
1477   >$cache_file
1478 fi
1479
1480 # Check that the precious variables saved in the cache have kept the same
1481 # value.
1482 ac_cache_corrupted=false
1483 for ac_var in `(set) 2>&1 |
1484                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1485   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1486   eval ac_new_set=\$ac_env_${ac_var}_set
1487   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1488   eval ac_new_val="\$ac_env_${ac_var}_value"
1489   case $ac_old_set,$ac_new_set in
1490     set,)
1491       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1492 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1493       ac_cache_corrupted=: ;;
1494     ,set)
1495       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1496 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1497       ac_cache_corrupted=: ;;
1498     ,);;
1499     *)
1500       if test "x$ac_old_val" != "x$ac_new_val"; then
1501         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1502 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1503         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1504 echo "$as_me:   former value:  $ac_old_val" >&2;}
1505         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1506 echo "$as_me:   current value: $ac_new_val" >&2;}
1507         ac_cache_corrupted=:
1508       fi;;
1509   esac
1510   # Pass precious variables to config.status.
1511   if test "$ac_new_set" = set; then
1512     case $ac_new_val in
1513     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1514       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1515     *) ac_arg=$ac_var=$ac_new_val ;;
1516     esac
1517     case " $ac_configure_args " in
1518       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1519       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1520     esac
1521   fi
1522 done
1523 if $ac_cache_corrupted; then
1524   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1525 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1526   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1527 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1528    { (exit 1); exit 1; }; }
1529 fi
1530
1531 ac_ext=c
1532 ac_cpp='$CPP $CPPFLAGS'
1533 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1534 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1535 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556 ac_aux_dir=
1557 for ac_dir in config $srcdir/config; do
1558   if test -f $ac_dir/install-sh; then
1559     ac_aux_dir=$ac_dir
1560     ac_install_sh="$ac_aux_dir/install-sh -c"
1561     break
1562   elif test -f $ac_dir/install.sh; then
1563     ac_aux_dir=$ac_dir
1564     ac_install_sh="$ac_aux_dir/install.sh -c"
1565     break
1566   elif test -f $ac_dir/shtool; then
1567     ac_aux_dir=$ac_dir
1568     ac_install_sh="$ac_aux_dir/shtool install -c"
1569     break
1570   fi
1571 done
1572 if test -z "$ac_aux_dir"; then
1573   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1574 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1575    { (exit 1); exit 1; }; }
1576 fi
1577 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1578 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1579 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1580
1581 # Make sure we can run config.sub.
1582 $ac_config_sub sun4 >/dev/null 2>&1 ||
1583   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1584 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1585    { (exit 1); exit 1; }; }
1586
1587 echo "$as_me:$LINENO: checking build system type" >&5
1588 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1589 if test "${ac_cv_build+set}" = set; then
1590   echo $ECHO_N "(cached) $ECHO_C" >&6
1591 else
1592   ac_cv_build_alias=$build_alias
1593 test -z "$ac_cv_build_alias" &&
1594   ac_cv_build_alias=`$ac_config_guess`
1595 test -z "$ac_cv_build_alias" &&
1596   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1597 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1598    { (exit 1); exit 1; }; }
1599 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1600   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1601 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1602    { (exit 1); exit 1; }; }
1603
1604 fi
1605 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1606 echo "${ECHO_T}$ac_cv_build" >&6
1607 build=$ac_cv_build
1608 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1609 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1610 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1611
1612
1613 echo "$as_me:$LINENO: checking host system type" >&5
1614 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1615 if test "${ac_cv_host+set}" = set; then
1616   echo $ECHO_N "(cached) $ECHO_C" >&6
1617 else
1618   ac_cv_host_alias=$host_alias
1619 test -z "$ac_cv_host_alias" &&
1620   ac_cv_host_alias=$ac_cv_build_alias
1621 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1622   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1623 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1624    { (exit 1); exit 1; }; }
1625
1626 fi
1627 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1628 echo "${ECHO_T}$ac_cv_host" >&6
1629 host=$ac_cv_host
1630 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1631 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1632 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1633
1634
1635 echo "$as_me:$LINENO: checking target system type" >&5
1636 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1637 if test "${ac_cv_target+set}" = set; then
1638   echo $ECHO_N "(cached) $ECHO_C" >&6
1639 else
1640   ac_cv_target_alias=$target_alias
1641 test "x$ac_cv_target_alias" = "x" &&
1642   ac_cv_target_alias=$ac_cv_host_alias
1643 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1644   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1645 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1646    { (exit 1); exit 1; }; }
1647
1648 fi
1649 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1650 echo "${ECHO_T}$ac_cv_target" >&6
1651 target=$ac_cv_target
1652 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1653 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1654 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1655
1656
1657 # The aliases save the names the user supplied, while $host etc.
1658 # will get canonicalized.
1659 test -n "$target_alias" &&
1660   test "$program_prefix$program_suffix$program_transform_name" = \
1661     NONENONEs,x,x, &&
1662   program_prefix=${target_alias}-
1663
1664
1665 CONFIGURE_COMMAND="'$0'"
1666 for arg in "$@"; do
1667   CONFIGURE_COMMAND="$CONFIGURE_COMMAND '$arg'"
1668 done
1669
1670 cat >>confdefs.h <<_ACEOF
1671 #define CONFIGURE_COMMAND "$CONFIGURE_COMMAND"
1672 _ACEOF
1673
1674
1675
1676 am__api_version="1.9"
1677 # Find a good install program.  We prefer a C program (faster),
1678 # so one script is as good as another.  But avoid the broken or
1679 # incompatible versions:
1680 # SysV /etc/install, /usr/sbin/install
1681 # SunOS /usr/etc/install
1682 # IRIX /sbin/install
1683 # AIX /bin/install
1684 # AmigaOS /C/install, which installs bootblocks on floppy discs
1685 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1686 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1687 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1688 # OS/2's system install, which has a completely different semantic
1689 # ./install, which can be erroneously created by make from ./install.sh.
1690 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1691 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1692 if test -z "$INSTALL"; then
1693 if test "${ac_cv_path_install+set}" = set; then
1694   echo $ECHO_N "(cached) $ECHO_C" >&6
1695 else
1696   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1697 for as_dir in $PATH
1698 do
1699   IFS=$as_save_IFS
1700   test -z "$as_dir" && as_dir=.
1701   # Account for people who put trailing slashes in PATH elements.
1702 case $as_dir/ in
1703   ./ | .// | /cC/* | \
1704   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1705   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1706   /usr/ucb/* ) ;;
1707   *)
1708     # OSF1 and SCO ODT 3.0 have their own names for install.
1709     # Don't use installbsd from OSF since it installs stuff as root
1710     # by default.
1711     for ac_prog in ginstall scoinst install; do
1712       for ac_exec_ext in '' $ac_executable_extensions; do
1713         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1714           if test $ac_prog = install &&
1715             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1716             # AIX install.  It has an incompatible calling convention.
1717             :
1718           elif test $ac_prog = install &&
1719             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1720             # program-specific install script used by HP pwplus--don't use.
1721             :
1722           else
1723             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1724             break 3
1725           fi
1726         fi
1727       done
1728     done
1729     ;;
1730 esac
1731 done
1732
1733
1734 fi
1735   if test "${ac_cv_path_install+set}" = set; then
1736     INSTALL=$ac_cv_path_install
1737   else
1738     # As a last resort, use the slow shell script.  We don't cache a
1739     # path for INSTALL within a source directory, because that will
1740     # break other packages using the cache if that directory is
1741     # removed, or if the path is relative.
1742     INSTALL=$ac_install_sh
1743   fi
1744 fi
1745 echo "$as_me:$LINENO: result: $INSTALL" >&5
1746 echo "${ECHO_T}$INSTALL" >&6
1747
1748 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1749 # It thinks the first close brace ends the variable substitution.
1750 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1751
1752 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1753
1754 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1755
1756 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1757 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1758 # Just in case
1759 sleep 1
1760 echo timestamp > conftest.file
1761 # Do `set' in a subshell so we don't clobber the current shell's
1762 # arguments.  Must try -L first in case configure is actually a
1763 # symlink; some systems play weird games with the mod time of symlinks
1764 # (eg FreeBSD returns the mod time of the symlink's containing
1765 # directory).
1766 if (
1767    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1768    if test "$*" = "X"; then
1769       # -L didn't work.
1770       set X `ls -t $srcdir/configure conftest.file`
1771    fi
1772    rm -f conftest.file
1773    if test "$*" != "X $srcdir/configure conftest.file" \
1774       && test "$*" != "X conftest.file $srcdir/configure"; then
1775
1776       # If neither matched, then we have a broken ls.  This can happen
1777       # if, for instance, CONFIG_SHELL is bash and it inherits a
1778       # broken ls alias from the environment.  This has actually
1779       # happened.  Such a system could not be considered "sane".
1780       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1781 alias in your environment" >&5
1782 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1783 alias in your environment" >&2;}
1784    { (exit 1); exit 1; }; }
1785    fi
1786
1787    test "$2" = conftest.file
1788    )
1789 then
1790    # Ok.
1791    :
1792 else
1793    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1794 Check your system clock" >&5
1795 echo "$as_me: error: newly created file is older than distributed files!
1796 Check your system clock" >&2;}
1797    { (exit 1); exit 1; }; }
1798 fi
1799 echo "$as_me:$LINENO: result: yes" >&5
1800 echo "${ECHO_T}yes" >&6
1801 test "$program_prefix" != NONE &&
1802   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1803 # Use a double $ so make ignores it.
1804 test "$program_suffix" != NONE &&
1805   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1806 # Double any \ or $.  echo might interpret backslashes.
1807 # By default was `s,x,x', remove it if useless.
1808 cat <<\_ACEOF >conftest.sed
1809 s/[\\$]/&&/g;s/;s,x,x,$//
1810 _ACEOF
1811 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1812 rm conftest.sed
1813
1814 # expand $ac_aux_dir to an absolute path
1815 am_aux_dir=`cd $ac_aux_dir && pwd`
1816
1817 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1818 # Use eval to expand $SHELL
1819 if eval "$MISSING --run true"; then
1820   am_missing_run="$MISSING --run "
1821 else
1822   am_missing_run=
1823   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1824 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1825 fi
1826
1827 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1828   # We used to keeping the `.' as first argument, in order to
1829   # allow $(mkdir_p) to be used without argument.  As in
1830   #   $(mkdir_p) $(somedir)
1831   # where $(somedir) is conditionally defined.  However this is wrong
1832   # for two reasons:
1833   #  1. if the package is installed by a user who cannot write `.'
1834   #     make install will fail,
1835   #  2. the above comment should most certainly read
1836   #     $(mkdir_p) $(DESTDIR)$(somedir)
1837   #     so it does not work when $(somedir) is undefined and
1838   #     $(DESTDIR) is not.
1839   #  To support the latter case, we have to write
1840   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1841   #  so the `.' trick is pointless.
1842   mkdir_p='mkdir -p --'
1843 else
1844   # On NextStep and OpenStep, the `mkdir' command does not
1845   # recognize any option.  It will interpret all options as
1846   # directories to create, and then abort because `.' already
1847   # exists.
1848   for d in ./-p ./--version;
1849   do
1850     test -d $d && rmdir $d
1851   done
1852   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1853   if test -f "$ac_aux_dir/mkinstalldirs"; then
1854     mkdir_p='$(mkinstalldirs)'
1855   else
1856     mkdir_p='$(install_sh) -d'
1857   fi
1858 fi
1859
1860 for ac_prog in gawk mawk nawk awk
1861 do
1862   # Extract the first word of "$ac_prog", so it can be a program name with args.
1863 set dummy $ac_prog; ac_word=$2
1864 echo "$as_me:$LINENO: checking for $ac_word" >&5
1865 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1866 if test "${ac_cv_prog_AWK+set}" = set; then
1867   echo $ECHO_N "(cached) $ECHO_C" >&6
1868 else
1869   if test -n "$AWK"; then
1870   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1871 else
1872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1873 for as_dir in $PATH
1874 do
1875   IFS=$as_save_IFS
1876   test -z "$as_dir" && as_dir=.
1877   for ac_exec_ext in '' $ac_executable_extensions; do
1878   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1879     ac_cv_prog_AWK="$ac_prog"
1880     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1881     break 2
1882   fi
1883 done
1884 done
1885
1886 fi
1887 fi
1888 AWK=$ac_cv_prog_AWK
1889 if test -n "$AWK"; then
1890   echo "$as_me:$LINENO: result: $AWK" >&5
1891 echo "${ECHO_T}$AWK" >&6
1892 else
1893   echo "$as_me:$LINENO: result: no" >&5
1894 echo "${ECHO_T}no" >&6
1895 fi
1896
1897   test -n "$AWK" && break
1898 done
1899
1900 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1901 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1902 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1903 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1904   echo $ECHO_N "(cached) $ECHO_C" >&6
1905 else
1906   cat >conftest.make <<\_ACEOF
1907 all:
1908         @echo 'ac_maketemp="$(MAKE)"'
1909 _ACEOF
1910 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1911 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1912 if test -n "$ac_maketemp"; then
1913   eval ac_cv_prog_make_${ac_make}_set=yes
1914 else
1915   eval ac_cv_prog_make_${ac_make}_set=no
1916 fi
1917 rm -f conftest.make
1918 fi
1919 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1920   echo "$as_me:$LINENO: result: yes" >&5
1921 echo "${ECHO_T}yes" >&6
1922   SET_MAKE=
1923 else
1924   echo "$as_me:$LINENO: result: no" >&5
1925 echo "${ECHO_T}no" >&6
1926   SET_MAKE="MAKE=${MAKE-make}"
1927 fi
1928
1929 rm -rf .tst 2>/dev/null
1930 mkdir .tst 2>/dev/null
1931 if test -d .tst; then
1932   am__leading_dot=.
1933 else
1934   am__leading_dot=_
1935 fi
1936 rmdir .tst 2>/dev/null
1937
1938 # test to see if srcdir already configured
1939 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1940    test -f $srcdir/config.status; then
1941   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1942 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1943    { (exit 1); exit 1; }; }
1944 fi
1945
1946 # test whether we have cygpath
1947 if test -z "$CYGPATH_W"; then
1948   if (cygpath --version) >/dev/null 2>/dev/null; then
1949     CYGPATH_W='cygpath -w'
1950   else
1951     CYGPATH_W=echo
1952   fi
1953 fi
1954
1955
1956 # Define the identity of the package.
1957  PACKAGE=amanda
1958  VERSION=2.4.5p1
1959
1960
1961 cat >>confdefs.h <<_ACEOF
1962 #define PACKAGE "$PACKAGE"
1963 _ACEOF
1964
1965
1966 cat >>confdefs.h <<_ACEOF
1967 #define VERSION "$VERSION"
1968 _ACEOF
1969
1970 # Some tools Automake needs.
1971
1972 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1973
1974
1975 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1976
1977
1978 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1979
1980
1981 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1982
1983
1984 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1985
1986 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1987
1988 # Installed binaries are usually stripped using `strip' when the user
1989 # run `make install-strip'.  However `strip' might not be the right
1990 # tool to use in cross-compilation environments, therefore Automake
1991 # will honor the `STRIP' environment variable to overrule this program.
1992 if test "$cross_compiling" != no; then
1993   if test -n "$ac_tool_prefix"; then
1994   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1995 set dummy ${ac_tool_prefix}strip; ac_word=$2
1996 echo "$as_me:$LINENO: checking for $ac_word" >&5
1997 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1998 if test "${ac_cv_prog_STRIP+set}" = set; then
1999   echo $ECHO_N "(cached) $ECHO_C" >&6
2000 else
2001   if test -n "$STRIP"; then
2002   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2003 else
2004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2005 for as_dir in $PATH
2006 do
2007   IFS=$as_save_IFS
2008   test -z "$as_dir" && as_dir=.
2009   for ac_exec_ext in '' $ac_executable_extensions; do
2010   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2011     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2012     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2013     break 2
2014   fi
2015 done
2016 done
2017
2018 fi
2019 fi
2020 STRIP=$ac_cv_prog_STRIP
2021 if test -n "$STRIP"; then
2022   echo "$as_me:$LINENO: result: $STRIP" >&5
2023 echo "${ECHO_T}$STRIP" >&6
2024 else
2025   echo "$as_me:$LINENO: result: no" >&5
2026 echo "${ECHO_T}no" >&6
2027 fi
2028
2029 fi
2030 if test -z "$ac_cv_prog_STRIP"; then
2031   ac_ct_STRIP=$STRIP
2032   # Extract the first word of "strip", so it can be a program name with args.
2033 set dummy strip; ac_word=$2
2034 echo "$as_me:$LINENO: checking for $ac_word" >&5
2035 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2036 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2037   echo $ECHO_N "(cached) $ECHO_C" >&6
2038 else
2039   if test -n "$ac_ct_STRIP"; then
2040   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2041 else
2042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2043 for as_dir in $PATH
2044 do
2045   IFS=$as_save_IFS
2046   test -z "$as_dir" && as_dir=.
2047   for ac_exec_ext in '' $ac_executable_extensions; do
2048   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2049     ac_cv_prog_ac_ct_STRIP="strip"
2050     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2051     break 2
2052   fi
2053 done
2054 done
2055
2056   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2057 fi
2058 fi
2059 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2060 if test -n "$ac_ct_STRIP"; then
2061   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2062 echo "${ECHO_T}$ac_ct_STRIP" >&6
2063 else
2064   echo "$as_me:$LINENO: result: no" >&5
2065 echo "${ECHO_T}no" >&6
2066 fi
2067
2068   STRIP=$ac_ct_STRIP
2069 else
2070   STRIP="$ac_cv_prog_STRIP"
2071 fi
2072
2073 fi
2074 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2075
2076 # We need awk for the "check" target.  The system "awk" is bad on
2077 # some platforms.
2078 # Always define AMTAR for backward compatibility.
2079
2080 AMTAR=${AMTAR-"${am_missing_run}tar"}
2081
2082 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2083
2084
2085
2086
2087
2088           ac_config_headers="$ac_config_headers config/config.h"
2089
2090
2091
2092 if test -f "$srcdir/SNAPSHOT"; then
2093   cat < "$srcdir/SNAPSHOT"
2094
2095   snapdate=`sed -n '/^Snapshot Date: \([0-9]*\)/ s//\1/p' < $srcdir/SNAPSHOT`
2096
2097   test -z "$snapdate" || VERSION="$VERSION-$snapdate"
2098   SNAPSHOT_STAMP=SNAPSHOT
2099 else
2100   SNAPSHOT_STAMP=
2101 fi
2102
2103
2104 if test -f config.local; then
2105     echo "running local script ./config.local"
2106     . ./config.local
2107 fi
2108
2109
2110 VERSION_MAJOR=`expr "$VERSION" : '\([0-9]*\)'`
2111 VERSION_MINOR=`expr "$VERSION" : '[0-9]*\.\([0-9]*\)'`
2112 VERSION_PATCH=`expr "$VERSION" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
2113 VERSION_COMMENT=\"`expr "$VERSION" : '[0-9]*\.[0-9]*\.[0-9]*\(.*\)'`\"
2114
2115
2116 VERSION_SUFFIX="$VERSION"
2117
2118
2119
2120
2121
2122
2123 SYSPATH="/bin:/usr/bin:/sbin:/usr/sbin:/usr/ucb:/usr/bsd:/etc:/usr/etc"
2124 LOCPATH=`(
2125     test "x$prefix" = xNONE && prefix=$ac_default_prefix
2126     test "x$exec_prefix" = xNONE && exec_prefix=${prefix}
2127     eval echo "$libexecdir:$PATH:/usr/local/sbin:/usr/local/bin"
2128 )`
2129 SYSLOCPATH="$SYSPATH:$LOCPATH"
2130 LOCSYSPATH="$LOCPATH:$SYSPATH"
2131
2132
2133 # Check whether --with-includes or --without-includes was given.
2134 if test "${with_includes+set}" = set; then
2135   withval="$with_includes"
2136
2137         case "$withval" in
2138         "" | y | ye | yes | n | no)
2139             { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-includes option." >&5
2140 echo "$as_me: error: *** You must supply an argument to the --with-includes option." >&2;}
2141    { (exit 1); exit 1; }; }
2142           ;;
2143         esac
2144         INCLUDE_DIRS="$withval"
2145
2146 fi;
2147
2148 if test "$INCLUDE_DIRS"; then
2149         for dir in $INCLUDE_DIRS; do
2150             if test -d "$dir"; then
2151                 AMANDA_CPPFLAGS="$AMANDA_CPPFLAGS -I$dir"
2152             else
2153                 { echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
2154 echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
2155             fi
2156         done
2157 fi
2158
2159
2160 # Check whether --with-libraries or --without-libraries was given.
2161 if test "${with_libraries+set}" = set; then
2162   withval="$with_libraries"
2163
2164         case "$withval" in
2165         "" | y | ye | yes | n | no)
2166             { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-libraries option." >&5
2167 echo "$as_me: error: *** You must supply an argument to the --with-libraries option." >&2;}
2168    { (exit 1); exit 1; }; }
2169           ;;
2170         esac
2171         LIBRARY_DIRS="$withval"
2172
2173 fi;
2174
2175 if test "$LIBRARY_DIRS"; then
2176         for dir in $LIBRARY_DIRS; do
2177             if test -d "$dir"; then
2178                 case "$target" in
2179                   *-solaris2*)
2180                         AMANDA_LDFLAGS="$AMANDA_LDFLAGS -R$dir"
2181                         ;;
2182                 esac
2183                 AMANDA_LDFLAGS="$AMANDA_LDFLAGS -L$dir"
2184             else
2185                 { echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
2186 echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
2187             fi
2188         done
2189 fi
2190
2191
2192 # Check whether --with-configdir or --without-configdir was given.
2193 if test "${with_configdir+set}" = set; then
2194   withval="$with_configdir"
2195
2196         case "$withval" in
2197         "" | y | ye | yes | n | no)
2198             { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-configdir option." >&5
2199 echo "$as_me: error: *** You must supply an argument to the --with-configdir option." >&2;}
2200    { (exit 1); exit 1; }; }
2201           ;;
2202         *) CONFIG_DIR="$withval"
2203           ;;
2204         esac
2205
2206 else
2207   : ${CONFIG_DIR=$sysconfdir/amanda}
2208
2209 fi;
2210 CONFIG_DIR=`(
2211     test "x$prefix" = xNONE && prefix=$ac_default_prefix
2212     test "x$exec_prefix" = xNONE && exec_prefix=${prefix}
2213     eval echo "$CONFIG_DIR"
2214 )`
2215
2216 cat >>confdefs.h <<_ACEOF
2217 #define CONFIG_DIR "$CONFIG_DIR"
2218 _ACEOF
2219
2220
2221
2222
2223 # Check whether --with-indexdir or --without-indexdir was given.
2224 if test "${with_indexdir+set}" = set; then
2225   withval="$with_indexdir"
2226      { { echo "$as_me:$LINENO: error: *** --with-indexdir is deprecated, use indexdir in amanda.conf instead." >&5
2227 echo "$as_me: error: *** --with-indexdir is deprecated, use indexdir in amanda.conf instead." >&2;}
2228    { (exit 1); exit 1; }; }
2229
2230 fi;
2231
2232
2233 # Check whether --with-dbdir or --without-dbdir was given.
2234 if test "${with_dbdir+set}" = set; then
2235   withval="$with_dbdir"
2236      { { echo "$as_me:$LINENO: error: *** --with-dbdir is deprecated, use infofile in amanda.conf instead." >&5
2237 echo "$as_me: error: *** --with-dbdir is deprecated, use infofile in amanda.conf instead." >&2;}
2238    { (exit 1); exit 1; }; }
2239
2240 fi;
2241
2242
2243 # Check whether --with-logdir or --without-logdir was given.
2244 if test "${with_logdir+set}" = set; then
2245   withval="$with_logdir"
2246      { { echo "$as_me:$LINENO: error: *** --with-logdir is deprecated, use logdir in amanda.conf instead." >&5
2247 echo "$as_me: error: *** --with-logdir is deprecated, use logdir in amanda.conf instead." >&2;}
2248    { (exit 1); exit 1; }; }
2249
2250 fi;
2251
2252
2253 # Check whether --with-suffixes or --without-suffixes was given.
2254 if test "${with_suffixes+set}" = set; then
2255   withval="$with_suffixes"
2256   USE_VERSION_SUFFIXES=$withval
2257 else
2258   : ${USE_VERSION_SUFFIXES=no}
2259
2260 fi;
2261 case "$USE_VERSION_SUFFIXES" in
2262 y | ye | yes)
2263
2264 cat >>confdefs.h <<\_ACEOF
2265 #define USE_VERSION_SUFFIXES 1
2266 _ACEOF
2267
2268
2269     program_suffix="-$VERSION"
2270     # This is from the output of configure.in.
2271     if test "$program_transform_name" = s,x,x,; then
2272         program_transform_name=
2273     else
2274         # Double any \ or $.  echo might interpret backslashes.
2275         cat <<\EOF_SED > conftestsed
2276 s,\\,\\\\,g; s,\$,$$,g
2277 EOF_SED
2278         program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
2279         rm -f conftestsed
2280     fi
2281     test "$program_prefix" != NONE &&
2282         program_transform_name="s,^,${program_prefix},; $program_transform_name"
2283     # Use a double $ so make ignores it.
2284     test "$program_suffix" != NONE &&
2285         program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
2286
2287     # sed with no file args requires a program.
2288     test "$program_transform_name" = "" && program_transform_name="s,x,x,"
2289     # Remove empty command
2290     cat <<\EOF_SED > conftestsed
2291 s,\;\;,\;,g; s,\; \$,,g; s,\;$,,g
2292 EOF_SED
2293     program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
2294     rm -f conftestsed
2295   ;;
2296 n | no) USE_VERSION_SUFFIXES=no
2297   ;;
2298 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-suffixes option." >&5
2299 echo "$as_me: error: *** You must not supply an argument to --with-suffixes option." >&2;}
2300    { (exit 1); exit 1; }; }
2301   ;;
2302 esac
2303
2304
2305 case "$target" in
2306     *-hp-*)
2307         CLIENT_SCRIPTS_OPT=amhpfixdevs
2308         ;;
2309     *-sni-sysv4)
2310         CLIENT_SCRIPTS_OPT=amsinixfixdevs
2311         ;;
2312     *)
2313         CLIENT_SCRIPTS_OPT=
2314         ;;
2315 esac
2316
2317
2318
2319
2320 # Check whether --with-client-only or --without-client-only was given.
2321 if test "${with_client_only+set}" = set; then
2322   withval="$with_client_only"
2323      { { echo "$as_me:$LINENO: error: *** --with-client-only is deprecated, use --without-server instead." >&5
2324 echo "$as_me: error: *** --with-client-only is deprecated, use --without-server instead." >&2;}
2325    { (exit 1); exit 1; }; }
2326
2327 fi;
2328
2329 # Check whether --with-server-only or --without-server-only was given.
2330 if test "${with_server_only+set}" = set; then
2331   withval="$with_server_only"
2332      { { echo "$as_me:$LINENO: error: *** --with-server-only is deprecated, use --without-client instead." >&5
2333 echo "$as_me: error: *** --with-server-only is deprecated, use --without-client instead." >&2;}
2334    { (exit 1); exit 1; }; }
2335
2336 fi;
2337
2338
2339 # Check whether --with-client or --without-client was given.
2340 if test "${with_client+set}" = set; then
2341   withval="$with_client"
2342
2343         case "$withval" in
2344         y | ye | yes) NO_CLIENT_MODE=false;;
2345         n | no) NO_CLIENT_MODE=true;;
2346         *)
2347             { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-client option." >&5
2348 echo "$as_me: error: *** You must not supply an argument to --with-client option." >&2;}
2349    { (exit 1); exit 1; }; }
2350           ;;
2351         esac
2352
2353
2354 fi;
2355
2356
2357 # Check whether --with-server or --without-server was given.
2358 if test "${with_server+set}" = set; then
2359   withval="$with_server"
2360
2361         case "$withval" in
2362         y | ye | yes) NO_SERVER_MODE=false ;;
2363         n | no) NO_SERVER_MODE=true;NO_RESTORE_MODE=true;;
2364         *)
2365             { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-server option.  Maybe you meant --with-index-server=$withval" >&5
2366 echo "$as_me: error: *** You must not supply an argument to --with-server option.  Maybe you meant --with-index-server=$withval" >&2;}
2367    { (exit 1); exit 1; }; }
2368           ;;
2369         esac
2370
2371
2372 fi;
2373 if test "x${NO_SERVER_MODE+set}" != xset ; then
2374    NO_SERVER_MODE=false
2375 fi
2376
2377
2378 # Check whether --with-restore or --without-restore was given.
2379 if test "${with_restore+set}" = set; then
2380   withval="$with_restore"
2381
2382         case "$withval" in
2383         y | ye | yes) NO_RESTORE_MODE=false;;
2384         n | no) NO_RESTORE_MODE=true;;
2385         *)
2386             { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-restore option." >&5
2387 echo "$as_me: error: *** You must not supply an argument to --with-restore option." >&2;}
2388    { (exit 1); exit 1; }; }
2389           ;;
2390         esac
2391
2392
2393 fi;
2394 if test "x${NO_RESTORE_MODE+set}" != xset ; then
2395    NO_RESTORE_MODE=${NO_SERVER_MODE-false}
2396 fi
2397
2398 if ${NO_SERVER_MODE-false}; then
2399    if ${NO_RESTORE_MODE-false}; then
2400                         true
2401    else
2402       { { echo "$as_me:$LINENO: error: *** --without-server requires --without-restore" >&5
2403 echo "$as_me: error: *** --without-server requires --without-restore" >&2;}
2404    { (exit 1); exit 1; }; }
2405    fi
2406 fi
2407
2408
2409 # Check whether --with-amrecover or --without-amrecover was given.
2410 if test "${with_amrecover+set}" = set; then
2411   withval="$with_amrecover"
2412
2413         case "$withval" in
2414         y | ye | yes)
2415             if ${NO_CLIENT_MODE-false}; then
2416                 { { echo "$as_me:$LINENO: error: *** --without-client and --with-amrecover are incompatible" >&5
2417 echo "$as_me: error: *** --without-client and --with-amrecover are incompatible" >&2;}
2418    { (exit 1); exit 1; }; }
2419             fi
2420             NO_RECOVER_MODE=false;;
2421         n | no) NO_RECOVER_MODE=true;;
2422         *)
2423             { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-amrecover option." >&5
2424 echo "$as_me: error: *** You must not supply an argument to --with-amrecover option." >&2;}
2425    { (exit 1); exit 1; }; }
2426           ;;
2427         esac
2428
2429
2430 fi;
2431
2432
2433 # Check whether --with-index-server or --without-index-server was given.
2434 if test "${with_index_server+set}" = set; then
2435   withval="$with_index_server"
2436
2437         case "$withval" in
2438         "" | y | ye | yes | n | no)
2439             { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-index-server option." >&5
2440 echo "$as_me: error: *** You must supply an argument to the --with-index-server option." >&2;}
2441    { (exit 1); exit 1; }; }
2442           ;;
2443         *) DEFAULT_SERVER="$withval"
2444           ;;
2445         esac
2446
2447 else
2448   : ${DEFAULT_SERVER=`uname -n`}
2449
2450 fi;
2451
2452 cat >>confdefs.h <<_ACEOF
2453 #define DEFAULT_SERVER "$DEFAULT_SERVER"
2454 _ACEOF
2455
2456
2457
2458
2459 # Check whether --with-force-uid or --without-force-uid was given.
2460 if test "${with_force_uid+set}" = set; then
2461   withval="$with_force_uid"
2462   FORCE_USERID="$withval"
2463 else
2464   : ${FORCE_USERID=yes}
2465
2466 fi;
2467 case "$FORCE_USERID" in
2468 y | ye | yes)
2469 cat >>confdefs.h <<\_ACEOF
2470 #define FORCE_USERID 1
2471 _ACEOF
2472
2473   ;;
2474 n | no) :
2475   ;;
2476 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-force-uid option." >&5
2477 echo "$as_me: error: *** You must not supply an argument to --with-force-uid option." >&2;}
2478    { (exit 1); exit 1; }; }
2479 esac
2480
2481
2482 # Check whether --with-user or --without-user was given.
2483 if test "${with_user+set}" = set; then
2484   withval="$with_user"
2485
2486         case "$withval" in
2487         "" | y | ye | yes | n | no)
2488             { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-user option." >&5
2489 echo "$as_me: error: *** You must supply an argument to the --with-user option." >&2;}
2490    { (exit 1); exit 1; }; }
2491           ;;
2492         *) CLIENT_LOGIN="$withval"
2493           ;;
2494         esac
2495
2496
2497 fi;
2498 if test "x${CLIENT_LOGIN+set}" != xset; then
2499     { { echo "$as_me:$LINENO: error: *** --with-user=USER is missing" >&5
2500 echo "$as_me: error: *** --with-user=USER is missing" >&2;}
2501    { (exit 1); exit 1; }; }
2502 fi
2503
2504 cat >>confdefs.h <<_ACEOF
2505 #define CLIENT_LOGIN "$CLIENT_LOGIN"
2506 _ACEOF
2507
2508
2509
2510
2511 # Check whether --with-group or --without-group was given.
2512 if test "${with_group+set}" = set; then
2513   withval="$with_group"
2514
2515         case "$withval" in
2516         "" | y | ye | yes | n | no)
2517             { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-group option." >&5
2518 echo "$as_me: error: *** You must supply an argument to the --with-group option." >&2;}
2519    { (exit 1); exit 1; }; }
2520           ;;
2521         *) SETUID_GROUP="$withval"
2522           ;;
2523         esac
2524
2525
2526 fi;
2527 if test "x${SETUID_GROUP+set}" != xset; then
2528     { { echo "$as_me:$LINENO: error: *** --with-group=GROUP is missing" >&5
2529 echo "$as_me: error: *** --with-group=GROUP is missing" >&2;}
2530    { (exit 1); exit 1; }; }
2531 fi
2532
2533
2534
2535 # Check whether --with-owner or --without-owner was given.
2536 if test "${with_owner+set}" = set; then
2537   withval="$with_owner"
2538
2539         case "$withval" in
2540         "" | y | ye | yes | n | no)
2541             { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-owner option." >&5
2542 echo "$as_me: error: *** You must supply an argument to the --with-owner option." >&2;}
2543    { (exit 1); exit 1; }; }
2544           ;;
2545         *) BINARY_OWNER="$withval"
2546           ;;
2547         esac
2548
2549
2550 fi;
2551 if test "x${BINARY_OWNER+set}" != xset ; then
2552    BINARY_OWNER=$CLIENT_LOGIN
2553 fi
2554
2555 cat >>confdefs.h <<_ACEOF
2556 #define BINARY_OWNER "$BINARY_OWNER"
2557 _ACEOF
2558
2559
2560
2561
2562 # Check whether --with-rundump or --without-rundump was given.
2563 if test "${with_rundump+set}" = set; then
2564   withval="$with_rundump"
2565
2566     case "$withval" in
2567         n | no | y | ye | yes) FORCE_USE_RUNDUMP="$withval";;
2568         *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-rundump option." >&5
2569 echo "$as_me: error: *** You must not supply an argument to --with-rundump option." >&2;}
2570    { (exit 1); exit 1; }; };;
2571     esac
2572
2573
2574 fi;
2575
2576
2577 # Check whether --with-config or --without-config was given.
2578 if test "${with_config+set}" = set; then
2579   withval="$with_config"
2580
2581         case "$withval" in
2582         "" | y | ye | yes | n | no)
2583             { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-config option." >&5
2584 echo "$as_me: error: *** You must supply an argument to the --with-config option." >&2;}
2585    { (exit 1); exit 1; }; }
2586           ;;
2587         *) DEFAULT_CONFIG="$withval"
2588           ;;
2589         esac
2590
2591 else
2592   : ${DEFAULT_CONFIG=DailySet1}
2593
2594 fi;
2595
2596 cat >>confdefs.h <<_ACEOF
2597 #define DEFAULT_CONFIG "$DEFAULT_CONFIG"
2598 _ACEOF
2599
2600
2601
2602
2603 # Check whether --with-tape-server or --without-tape-server was given.
2604 if test "${with_tape_server+set}" = set; then
2605   withval="$with_tape_server"
2606
2607         case "$withval" in
2608         "" | y | ye | yes | n | no)
2609             { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-tape-server option." >&5
2610 echo "$as_me: error: *** You must supply an argument to the --with-tape-server option." >&2;}
2611    { (exit 1); exit 1; }; }
2612           ;;
2613         *) DEFAULT_TAPE_SERVER="$withval"
2614           ;;
2615         esac
2616
2617 else
2618   : ${DEFAULT_TAPE_SERVER=$DEFAULT_SERVER}
2619
2620 fi;
2621
2622 cat >>confdefs.h <<_ACEOF
2623 #define DEFAULT_TAPE_SERVER "$DEFAULT_TAPE_SERVER"
2624 _ACEOF
2625
2626
2627
2628
2629 # Check whether --with-tape-device or --without-tape-device was given.
2630 if test "${with_tape_device+set}" = set; then
2631   withval="$with_tape_device"
2632
2633         case "$withval" in
2634         "" | y | ye | yes | n | no)
2635             { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-tape-device option." >&5
2636 echo "$as_me: error: *** You must supply an argument to the --with-tape-device option." >&2;}
2637    { (exit 1); exit 1; }; }
2638           ;;
2639         *) DEFAULT_TAPE_DEVICE="$withval"
2640           ;;
2641         esac
2642
2643 else
2644
2645         if test -z "$DEFAULT_TAPE_DEVICE"; then
2646             echo "$as_me:$LINENO: checking for non-rewinding tape device" >&5
2647 echo $ECHO_N "checking for non-rewinding tape device... $ECHO_C" >&6
2648                                                                     tape_dev=/dev/null
2649             nr_tape_dev=/dev/null
2650             if test -d /dev/rmt; then
2651
2652
2653                 for num in 9 8 7 6 5 4 3 2 1 0; do
2654                     td=/dev/rmt/${num}b
2655                     ntd=/dev/rmt/${num}bn
2656                     if test -r $td -a -r $ntd; then
2657                         tape_dev=$td
2658                         nr_tape_dev=$ntd
2659                     fi
2660                 done
2661             else
2662                                 for num in 9 8 7 6 5 4 3 2 1 0; do
2663                     td=/dev/rst${num}
2664                     ntd=/dev/nrst${num}
2665                     if test -r $td -a -r $ntd; then
2666                         tape_dev=$td
2667                         nr_tape_dev=$ntd
2668                     fi
2669                 done
2670             fi
2671             DEFAULT_TAPE_DEVICE=$nr_tape_dev
2672             echo "$as_me:$LINENO: result: $DEFAULT_TAPE_DEVICE" >&5
2673 echo "${ECHO_T}$DEFAULT_TAPE_DEVICE" >&6
2674         fi
2675
2676
2677 fi;
2678
2679 if test -z "$DEFAULT_TAPE_DEVICE"; then
2680     DEFAULT_TAPE_DEVICE=/dev/null
2681 fi
2682
2683
2684 cat >>confdefs.h <<_ACEOF
2685 #define DEFAULT_TAPE_DEVICE "$DEFAULT_TAPE_DEVICE"
2686 _ACEOF
2687
2688
2689
2690
2691 # Check whether --with-ftape-raw-device or --without-ftape-raw-device was given.
2692 if test "${with_ftape_raw_device+set}" = set; then
2693   withval="$with_ftape_raw_device"
2694
2695         case "$withval" in
2696         "" | y | ye | yes | n | no)
2697             { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-ftape-rawdevice option." >&5
2698 echo "$as_me: error: *** You must supply an argument to the --with-ftape-rawdevice option." >&2;}
2699    { (exit 1); exit 1; }; }
2700           ;;
2701         *) DEFAULT_RAW_TAPE_DEVICE="$withval"
2702           ;;
2703         esac
2704
2705 else
2706
2707         if test -z "$DEFAULT_RAW_TAPE_DEVICE"; then
2708             echo "$as_me:$LINENO: checking for raw ftape device" >&5
2709 echo $ECHO_N "checking for raw ftape device... $ECHO_C" >&6
2710                     raw_tape_dev=/dev/null
2711                                 for num in 3 2 1 0 ; do
2712                     td=/dev/rawft${num}
2713                     if test -r $td; then
2714                         raw_tape_dev=$td
2715                     fi
2716                 done
2717             DEFAULT_RAW_TAPE_DEVICE=$raw_tape_dev
2718             echo "$as_me:$LINENO: result: $DEFAULT_RAW_TAPE_DEVICE" >&5
2719 echo "${ECHO_T}$DEFAULT_RAW_TAPE_DEVICE" >&6
2720         fi
2721
2722
2723 fi;
2724
2725 if test -z "$DEFAULT_RAW_TAPE_DEVICE"; then
2726     DEFAULT_RAW_TAPE_DEVICE=/dev/null
2727 fi
2728
2729
2730 cat >>confdefs.h <<_ACEOF
2731 #define DEFAULT_RAW_TAPE_DEVICE "$DEFAULT_RAW_TAPE_DEVICE"
2732 _ACEOF
2733
2734
2735
2736
2737 # Check whether --with-rew-tape or --without-rew-tape was given.
2738 if test "${with_rew_tape+set}" = set; then
2739   withval="$with_rew_tape"
2740      { { echo "$as_me:$LINENO: error: *** --with-rew-tape is deprecated, use --with-tape-device instead." >&5
2741 echo "$as_me: error: *** --with-rew-tape is deprecated, use --with-tape-device instead." >&2;}
2742    { (exit 1); exit 1; }; }
2743
2744 fi;
2745
2746
2747 # Check whether --with-norew-tape or --without-norew-tape was given.
2748 if test "${with_norew_tape+set}" = set; then
2749   withval="$with_norew_tape"
2750      { { echo "$as_me:$LINENO: error: *** --with-norew-tape is deprecated, use --with-tape-device instead." >&5
2751 echo "$as_me: error: *** --with-norew-tape is deprecated, use --with-tape-device instead." >&2;}
2752    { (exit 1); exit 1; }; }
2753
2754 fi;
2755
2756
2757 # Check whether --with-changer-device or --without-changer-device was given.
2758 if test "${with_changer_device+set}" = set; then
2759   withval="$with_changer_device"
2760
2761         case "$withval" in
2762         "" | y | ye | yes | n | no)
2763             { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-changer-device option." >&5
2764 echo "$as_me: error: *** You must supply an argument to the --with-changer-device option." >&2;}
2765    { (exit 1); exit 1; }; }
2766           ;;
2767         *) DEFAULT_CHANGER_DEVICE="$withval"
2768           ;;
2769         esac
2770
2771 else
2772
2773         if test -z "$DEFAULT_CHANGER_DEVICE" &&
2774            test -f /dev/ch0; then
2775             DEFAULT_CHANGER_DEVICE=/dev/ch0
2776         fi
2777
2778
2779 fi;
2780
2781 if test -z "$DEFAULT_CHANGER_DEVICE"; then
2782     DEFAULT_CHANGER_DEVICE=/dev/null
2783 fi
2784
2785
2786 cat >>confdefs.h <<_ACEOF
2787 #define DEFAULT_CHANGER_DEVICE "$DEFAULT_CHANGER_DEVICE"
2788 _ACEOF
2789
2790
2791
2792
2793 # Check whether --with-fqdn or --without-fqdn was given.
2794 if test "${with_fqdn+set}" = set; then
2795   withval="$with_fqdn"
2796   USE_FQDN=$withval
2797 else
2798   : ${USE_FQDN=no}
2799
2800 fi;
2801 case "$USE_FQDN" in
2802 n | no) : ;;
2803 y |  ye | yes)
2804 cat >>confdefs.h <<\_ACEOF
2805 #define USE_FQDN 1
2806 _ACEOF
2807
2808   ;;
2809 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-fqdn option." >&5
2810 echo "$as_me: error: *** You must not supply an argument to --with-fqdn option." >&2;}
2811    { (exit 1); exit 1; }; }
2812   ;;
2813 esac
2814
2815
2816 # Check whether --with-broken-fsf or --without-broken-fsf was given.
2817 if test "${with_broken_fsf+set}" = set; then
2818   withval="$with_broken_fsf"
2819   HAVE_BROKEN_FSF=$withval
2820 else
2821   : ${HAVE_BROKEN_FSF=no}
2822
2823 fi;
2824 case "$HAVE_BROKEN_FSF" in
2825 n | no) : ;;
2826 y |  ye | yes)
2827 cat >>confdefs.h <<\_ACEOF
2828 #define HAVE_BROKEN_FSF 1
2829 _ACEOF
2830
2831   ;;
2832 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-broken-fsf option." >&5
2833 echo "$as_me: error: *** You must not supply an argument to --with-broken-fsf option." >&2;}
2834    { (exit 1); exit 1; }; }
2835   ;;
2836 esac
2837
2838
2839 # Check whether --with-gnutar or --without-gnutar was given.
2840 if test "${with_gnutar+set}" = set; then
2841   withval="$with_gnutar"
2842
2843         case "$withval" in
2844             /*) GNUTAR="$withval";;
2845             y|ye|yes) :;;
2846             n|no) GNUTAR=;;
2847             *)  { { echo "$as_me:$LINENO: error: *** You must supply a full pathname to --with-gnutar" >&5
2848 echo "$as_me: error: *** You must supply a full pathname to --with-gnutar" >&2;}
2849    { (exit 1); exit 1; }; };;
2850         esac
2851
2852
2853 fi;
2854
2855
2856 # Check whether --with-qde or --without-qde was given.
2857 if test "${with_qde+set}" = set; then
2858   withval="$with_qde"
2859   USE_QUICK_AND_DIRTY_ESTIMATES=$withval
2860 else
2861   : ${USE_QUICK_AND_DIRTY_ESTIMATES=no}
2862
2863 fi;
2864 case "$USE_QUICK_AND_DIRTY_ESTIMATES" in
2865 n | no) : USE_QUICK_AND_DIRTY_ESTIMATES=no;;
2866 y |  ye | yes) : USE_QUICK_AND_DIRTY_ESTIMATES=yes
2867
2868 cat >>confdefs.h <<\_ACEOF
2869 #define USE_QUICK_AND_DIRTY_ESTIMATES 1
2870 _ACEOF
2871
2872   ;;
2873 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-qde option." >&5
2874 echo "$as_me: error: *** You must not supply an argument to --with-qde option." >&2;}
2875    { (exit 1); exit 1; }; }
2876   ;;
2877 esac
2878
2879
2880
2881 # Check whether --with-smbclient or --without-smbclient was given.
2882 if test "${with_smbclient+set}" = set; then
2883   withval="$with_smbclient"
2884
2885         case "$withval" in
2886             /*) SAMBA_CLIENT="$withval";;
2887             y|ye|yes) :;;
2888             n|no) SAMBA_CLIENT="no";;
2889             *)  { { echo "$as_me:$LINENO: error: *** You must supply a full pathname to --with-smbclient" >&5
2890 echo "$as_me: error: *** You must supply a full pathname to --with-smbclient" >&2;}
2891    { (exit 1); exit 1; }; };;
2892         esac
2893
2894
2895 fi;
2896
2897
2898 # Check whether --with-samba-user or --without-samba-user was given.
2899 if test "${with_samba_user+set}" = set; then
2900   withval="$with_samba_user"
2901       { { echo "$as_me:$LINENO: error: *** The samba-user option was deprecated, the username go in the amandapass" >&5
2902 echo "$as_me: error: *** The samba-user option was deprecated, the username go in the amandapass" >&2;}
2903    { (exit 1); exit 1; }; }
2904
2905
2906 fi;
2907
2908
2909 # Check whether --with-gnutar-listdir or --without-gnutar-listdir was given.
2910 if test "${with_gnutar_listdir+set}" = set; then
2911   withval="$with_gnutar_listdir"
2912
2913         case "$withval" in
2914             n | no)             unset GNUTAR_LISTDIR ;;
2915             y | ye | yes)       : ${GNUTAR_LISTDIR=$localstatedir/amanda/gnutar-lists} ;;
2916             /*)                 GNUTAR_LISTDIR="$withval" ;;
2917             *)                  { { echo "$as_me:$LINENO: error: *** You must supply a full pathname to --with-gnutar-listdir" >&5
2918 echo "$as_me: error: *** You must supply a full pathname to --with-gnutar-listdir" >&2;}
2919    { (exit 1); exit 1; }; }
2920         esac
2921
2922 else
2923   : ${GNUTAR_LISTDIR=$localstatedir/amanda/gnutar-lists}
2924
2925 fi;
2926 if test "$GNUTAR_LISTDIR"; then
2927     GNUTAR_LISTDIR=`(
2928         test "x$prefix" = xNONE && prefix=$ac_default_prefix
2929         eval echo "$GNUTAR_LISTDIR"
2930     )`
2931
2932 cat >>confdefs.h <<_ACEOF
2933 #define GNUTAR_LISTED_INCREMENTAL_DIR "$GNUTAR_LISTDIR"
2934 _ACEOF
2935
2936     GNUTAR_LISTED_INCREMENTAL_DIRX=$GNUTAR_LISTDIR
2937 else
2938     GNUTAR_LISTED_INCREMENTAL_DIRX=
2939 fi
2940
2941
2942
2943 # Check whether --with-gnutar-listed-incremental or --without-gnutar-listed-incremental was given.
2944 if test "${with_gnutar_listed_incremental+set}" = set; then
2945   withval="$with_gnutar_listed_incremental"
2946       { { echo "$as_me:$LINENO: error: *** The gnutar-listed-incremental option was deprecated, use gnutar-listdir instead" >&5
2947 echo "$as_me: error: *** The gnutar-listed-incremental option was deprecated, use gnutar-listdir instead" >&2;}
2948    { (exit 1); exit 1; }; }
2949
2950
2951 fi;
2952
2953
2954 # Check whether --with-bsd-security or --without-bsd-security was given.
2955 if test "${with_bsd_security+set}" = set; then
2956   withval="$with_bsd_security"
2957   BSD_SECURITY=$withval
2958 else
2959   : ${BSD_SECURITY=yes}
2960
2961 fi;
2962 case "$BSD_SECURITY" in
2963 n | no) : ;;
2964 y |  ye | yes)
2965 cat >>confdefs.h <<\_ACEOF
2966 #define BSD_SECURITY 1
2967 _ACEOF
2968
2969   ;;
2970 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-bsd-security option." >&5
2971 echo "$as_me: error: *** You must not supply an argument to --with-bsd-security option." >&2;}
2972    { (exit 1); exit 1; }; }
2973   ;;
2974 esac
2975
2976
2977 # Check whether --with-amandahosts or --without-amandahosts was given.
2978 if test "${with_amandahosts+set}" = set; then
2979   withval="$with_amandahosts"
2980   USE_AMANDAHOSTS=$withval
2981 else
2982   : ${USE_AMANDAHOSTS=yes}
2983
2984 fi;
2985 case "$USE_AMANDAHOSTS" in
2986 n | no) : ;;
2987 y |  ye | yes) :
2988   case "$BSD_SECURITY" in
2989   y | ye | yes)
2990 cat >>confdefs.h <<\_ACEOF
2991 #define USE_AMANDAHOSTS 1
2992 _ACEOF
2993
2994     ;;
2995   esac
2996   ;;
2997 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-amandahosts option." >&5
2998 echo "$as_me: error: *** You must not supply an argument to --with-amandahosts option." >&2;}
2999    { (exit 1); exit 1; }; }
3000   ;;
3001 esac
3002
3003
3004 : ${KRB4_SPOTS="/usr/kerberos /usr/cygnus /usr /opt/kerberos"}
3005
3006
3007 # Check whether --with-krb4-security or --without-krb4-security was given.
3008 if test "${with_krb4_security+set}" = set; then
3009   withval="$with_krb4_security"
3010   KRB4_SECURITY="$withval"
3011 else
3012   : ${KRB4_SECURITY=no}
3013
3014 fi;
3015
3016 case "$KRB4_SECURITY" in
3017 n | no) KRB4_SECURITY=no ;;
3018 y | ye | yes) : ;;
3019 *) KRB4_SPOTS="$KRB4_SECURITY"
3020    KRB4_SECURITY=yes
3021    ;;
3022 esac
3023
3024 echo "$as_me:$LINENO: checking for Kerberos and Amanda kerberos4 bits" >&5
3025 echo $ECHO_N "checking for Kerberos and Amanda kerberos4 bits... $ECHO_C" >&6
3026 if test "${KRB4_SECURITY}" = yes -a -f  ${srcdir-.}/common-src/krb4-security.c ; then
3027     for dir in $KRB4_SPOTS; do
3028         if test -f ${dir}/lib/libkrb.a -a -f ${dir}/lib/libdes.a ; then
3029             #
3030             # This is the original Kerberos 4.
3031             #
3032             echo "$as_me:$LINENO: result: found in $dir" >&5
3033 echo "${ECHO_T}found in $dir" >&6
3034             KRB4_SECURITY=yes
3035
3036 cat >>confdefs.h <<\_ACEOF
3037 #define KRB4_SECURITY 1
3038 _ACEOF
3039
3040             if test -d $dir/include/kerberosIV ; then
3041                 #
3042                 # This handles BSD/OS.
3043                 #
3044                 KRB4INCLUDES=-I$dir/include/kerberosIV
3045             else
3046                 KRB4INCLUDES=-I$dir/include
3047             fi
3048             KRB4LDFLAGS=-L$dir/lib
3049             KRB4LIBS="-lkrb -ldes"
3050             if test -f ${dir}/lib/libcom_err.a ; then
3051                 KRB4LIBS="$KRB4LIBS -lcom_err"
3052             fi
3053             if test -f ${dir}/lib/libroken.a ; then
3054                 KRB4LIBS="$KRB4LIBS -lroken"
3055             fi
3056             break
3057         elif test -f ${dir}/lib/libkrb4.a &&
3058              test -f ${dir}/lib/libcrypto.a &&
3059              test -f ${dir}/lib/libdes425.a ; then
3060             #
3061             # This is Kerberos 5 with Kerberos 4 back-support.
3062             #
3063             echo "$as_me:$LINENO: result: found in $dir" >&5
3064 echo "${ECHO_T}found in $dir" >&6
3065             KRB4_SECURITY=yes
3066
3067 cat >>confdefs.h <<\_ACEOF
3068 #define KRB4_SECURITY 1
3069 _ACEOF
3070
3071             KRB4INCLUDES="-I$dir/include -I$dir/include/kerberosIV"
3072             KRB4LDFLAGS=-L$dir/lib
3073             if test -f ${dir}/lib/libkrb5.a &&
3074                test -f ${dir}/lib/libcom_err.a; then
3075                 KRB4LIBS="-lkrb4 -lkrb5 -lcrypto -ldes425 -lcom_err"
3076             else
3077                 KRB4LIBS="-lkrb4 -lcrypto -ldes425"
3078             fi
3079             break
3080         elif test -f ${dir}/lib/libkrb4.dylib &&
3081              test -f ${dir}/lib/libcrypto.dylib &&
3082              test -f ${dir}/lib/libdes425.dylib ; then
3083             #
3084             # This is Kerberos 5 with Kerberos 4 back-support for Mac OS X.
3085             #
3086             echo "$as_me:$LINENO: result: found in $dir" >&5
3087 echo "${ECHO_T}found in $dir" >&6
3088             KRB4_SECURITY=yes
3089
3090 cat >>confdefs.h <<\_ACEOF
3091 #define KRB4_SECURITY 1
3092 _ACEOF
3093
3094             KRB4INCLUDES="-I$dir/include -I$dir/include/kerberosIV"
3095             KRB4LDFLAGS=-L$dir/lib
3096             if test -f ${dir}/lib/libkrb5.dylib &&
3097                test -f ${dir}/lib/libcom_err.dylib; then
3098                 KRB4LIBS="-lkrb4 -lkrb5 -lcrypto -ldes425 -lcom_err"
3099             else
3100                 KRB4LIBS="-lkrb4 -lcrypto -ldes425"
3101             fi
3102             break
3103         fi
3104     done
3105
3106     if test "$KRB4LDFLAGS" = "" ; then
3107         { { echo "$as_me:$LINENO: error: *** Kerberos IV not found." >&5
3108 echo "$as_me: error: *** Kerberos IV not found." >&2;}
3109    { (exit 1); exit 1; }; }
3110     fi
3111 else
3112     echo "$as_me:$LINENO: result: no" >&5
3113 echo "${ECHO_T}no" >&6
3114 fi
3115
3116
3117 # Check whether --with-server-principal or --without-server-principal was given.
3118 if test "${with_server_principal+set}" = set; then
3119   withval="$with_server_principal"
3120
3121         case "$withval" in
3122         "" | y | ye | yes | n | no)
3123             { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-server-principal option." >&5
3124 echo "$as_me: error: *** You must supply an argument to the --with-server-principal option." >&2;}
3125    { (exit 1); exit 1; }; }
3126           ;;
3127         *)
3128             SERVER_HOST_PRINCIPLE="$withval"
3129           ;;
3130         esac
3131
3132 else
3133   : ${SERVER_HOST_PRINCIPLE="amanda"}
3134
3135 fi;
3136
3137 cat >>confdefs.h <<_ACEOF
3138 #define SERVER_HOST_PRINCIPLE "$SERVER_HOST_PRINCIPLE"
3139 _ACEOF
3140
3141
3142
3143 # Check whether --with-server-instance or --without-server-instance was given.
3144 if test "${with_server_instance+set}" = set; then
3145   withval="$with_server_instance"
3146
3147         case "$withval" in
3148         "" | y | ye | yes | n | no)
3149             { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-server-instance option." >&5
3150 echo "$as_me: error: *** You must supply an argument to the --with-server-instance option." >&2;}
3151    { (exit 1); exit 1; }; }
3152           ;;
3153         *) SERVER_HOST_INSTANCE="$withval"
3154           ;;
3155         esac
3156
3157 else
3158   : ${SERVER_HOST_INSTANCE="amanda"}
3159
3160 fi;
3161
3162 cat >>confdefs.h <<_ACEOF
3163 #define SERVER_HOST_INSTANCE "$SERVER_HOST_INSTANCE"
3164 _ACEOF
3165
3166
3167
3168 # Check whether --with-server-keyfile or --without-server-keyfile was given.
3169 if test "${with_server_keyfile+set}" = set; then
3170   withval="$with_server_keyfile"
3171
3172         case "$withval" in
3173         "" | y | ye | yes | n | no)
3174             { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-server-keyfile option." >&5
3175 echo "$as_me: error: *** You must supply an argument to the --with-server-keyfile option." >&2;}
3176    { (exit 1); exit 1; }; }
3177           ;;
3178         *) SERVER_HOST_KEY_FILE="$withval"
3179           ;;
3180         esac
3181
3182 else
3183   : ${SERVER_HOST_KEY_FILE="/.amanda"}
3184
3185 fi;
3186
3187 cat >>confdefs.h <<_ACEOF
3188 #define SERVER_HOST_KEY_FILE "$SERVER_HOST_KEY_FILE"
3189 _ACEOF
3190
3191
3192
3193 # Check whether --with-client-principal or --without-client-principal was given.
3194 if test "${with_client_principal+set}" = set; then
3195   withval="$with_client_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-client-principal option." >&5
3200 echo "$as_me: error: *** You must supply an argument to the --with-client-principal option." >&2;}
3201    { (exit 1); exit 1; }; }
3202           ;;
3203         *) CLIENT_HOST_PRINCIPLE="$withval"
3204           ;;
3205         esac
3206
3207 else
3208   : ${CLIENT_HOST_PRINCIPLE="rcmd"}
3209
3210 fi;
3211
3212 cat >>confdefs.h <<_ACEOF
3213 #define CLIENT_HOST_PRINCIPLE "$CLIENT_HOST_PRINCIPLE"
3214 _ACEOF
3215
3216
3217
3218 # Check whether --with-client-instance or --without-client-instance was given.
3219 if test "${with_client_instance+set}" = set; then
3220   withval="$with_client_instance"
3221
3222         case "$withval" in
3223         "" | y | ye | yes | n | no)
3224             { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-client-instance option." >&5
3225 echo "$as_me: error: *** You must supply an argument to the --with-client-instance option." >&2;}
3226    { (exit 1); exit 1; }; }
3227           ;;
3228         *) CLIENT_HOST_INSTANCE="$withval"
3229           ;;
3230         esac
3231
3232 else
3233   : ${CLIENT_HOST_INSTANCE=HOSTNAME_INSTANCE}
3234
3235 fi;
3236
3237 cat >>confdefs.h <<_ACEOF
3238 #define CLIENT_HOST_INSTANCE $CLIENT_HOST_INSTANCE
3239 _ACEOF
3240
3241
3242
3243 # Check whether --with-client-keyfile or --without-client-keyfile was given.
3244 if test "${with_client_keyfile+set}" = set; then
3245   withval="$with_client_keyfile"
3246
3247         case "$withval" in
3248         "" | y | ye | yes | n | no)
3249             { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-client-keyfile option." >&5
3250 echo "$as_me: error: *** You must supply an argument to the --with-client-keyfile option." >&2;}
3251    { (exit 1); exit 1; }; }
3252           ;;
3253         *) CLIENT_HOST_KEY_FILE="$withval"
3254           ;;
3255         esac
3256
3257 else
3258   : ${CLIENT_HOST_KEY_FILE=KEYFILE}
3259
3260 fi;
3261
3262 # Assume it's either KEYFILE (defined in krb.h), or a string filename...
3263 if test "$CLIENT_HOST_KEY_FILE" != "KEYFILE"; then
3264   CLIENT_HOST_KEY_FILE="\"$CLIENT_HOST_KEY_FILE\""
3265 fi
3266
3267
3268 cat >>confdefs.h <<_ACEOF
3269 #define CLIENT_HOST_KEY_FILE $CLIENT_HOST_KEY_FILE
3270 _ACEOF
3271
3272
3273
3274 # Check whether --with-ticket-lifetime or --without-ticket-lifetime was given.
3275 if test "${with_ticket_lifetime+set}" = set; then
3276   withval="$with_ticket_lifetime"
3277
3278         case "$withval" in
3279         "" | y | ye | yes | n | no)
3280             { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-ticket-lifetime option." >&5
3281 echo "$as_me: error: *** You must supply an argument to the --with-ticket-lifetime option." >&2;}
3282    { (exit 1); exit 1; }; }
3283           ;;
3284         *) TICKET_LIFETIME="$withval"
3285           ;;
3286         esac
3287
3288 else
3289   : ${TICKET_LIFETIME=128}
3290
3291 fi;
3292
3293 cat >>confdefs.h <<_ACEOF
3294 #define TICKET_LIFETIME $TICKET_LIFETIME
3295 _ACEOF
3296
3297
3298
3299
3300 # Check whether --with-portrange or --without-portrange was given.
3301 if test "${with_portrange+set}" = set; then
3302   withval="$with_portrange"
3303
3304         TCPPORTRANGE="$withval"
3305
3306
3307 fi;
3308
3309 # Check whether --with-tcpportrange or --without-tcpportrange was given.
3310 if test "${with_tcpportrange+set}" = set; then
3311   withval="$with_tcpportrange"
3312
3313         TCPPORTRANGE="$withval"
3314
3315
3316 fi;
3317 if test x"${TCPPORTRANGE+set}" = x"set"; then
3318     if test x`echo "$TCPPORTRANGE" | sed 's/[0-9][0-9]*,[0-9][0-9]*//'` != x""; then
3319         { { echo "$as_me:$LINENO: error: *** --with-tcpportrange requires two comma-separated positive numbers" >&5
3320 echo "$as_me: error: *** --with-tcpportrange requires two comma-separated positive numbers" >&2;}
3321    { (exit 1); exit 1; }; }
3322     fi
3323     min_tcp_port=`echo "$TCPPORTRANGE" | sed 's/,.*//'`
3324     max_tcp_port=`echo "$TCPPORTRANGE" | sed 's/.*,//'`
3325     if test $min_tcp_port -gt $max_tcp_port; then
3326         { { echo "$as_me:$LINENO: error: *** the second TCP port number must be greater than the first in --with-tcpportrange" >&5
3327 echo "$as_me: error: *** the second TCP port number must be greater than the first in --with-tcpportrange" >&2;}
3328    { (exit 1); exit 1; }; }
3329     fi
3330     if test $min_tcp_port -lt 1024; then
3331         { echo "$as_me:$LINENO: WARNING: *** the TCP port range should be 1024 or greater in --with-tcpportrange" >&5
3332 echo "$as_me: WARNING: *** the TCP port range should be 1024 or greater in --with-tcpportrange" >&2;}
3333     fi
3334     if test $max_tcp_port -ge 65536; then
3335         { echo "$as_me:$LINENO: WARNING: *** the TCP port range should be less than 65536 in --with-tcpportrange" >&5
3336 echo "$as_me: WARNING: *** the TCP port range should be less than 65536 in --with-tcpportrange" >&2;}
3337     fi
3338
3339 cat >>confdefs.h <<_ACEOF
3340 #define TCPPORTRANGE $TCPPORTRANGE
3341 _ACEOF
3342
3343 fi
3344
3345
3346 # Check whether --with-udpportrange or --without-udpportrange was given.
3347 if test "${with_udpportrange+set}" = set; then
3348   withval="$with_udpportrange"
3349
3350         UDPPORTRANGE="$withval"
3351
3352
3353 fi;
3354 if test x"${UDPPORTRANGE+set}" = x"set"; then
3355     if test x`echo "$UDPPORTRANGE" | sed 's/[0-9][0-9]*,[0-9][0-9]*//'` != x""; then
3356         { { echo "$as_me:$LINENO: error: *** --with-udpportrange requires two comma-separated positive numbers" >&5
3357 echo "$as_me: error: *** --with-udpportrange requires two comma-separated positive numbers" >&2;}
3358    { (exit 1); exit 1; }; }
3359     fi
3360     min_udp_port=`echo "$UDPPORTRANGE" | sed 's/,.*//'`
3361     max_udp_port=`echo "$UDPPORTRANGE" | sed 's/.*,//'`
3362     if test $min_udp_port -gt $max_udp_port; then
3363         { { echo "$as_me:$LINENO: error: *** the second UDP port number must be greater than the first in --with-udpportrange" >&5
3364 echo "$as_me: error: *** the second UDP port number must be greater than the first in --with-udpportrange" >&2;}
3365    { (exit 1); exit 1; }; }
3366     fi
3367     if test $max_udp_port -ge 1024; then
3368         { echo "$as_me:$LINENO: WARNING: *** the UDP port range should be less than 1024 in --with-udpportrange" >&5
3369 echo "$as_me: WARNING: *** the UDP port range should be less than 1024 in --with-udpportrange" >&2;}
3370     fi
3371     if test $min_udp_port -le 0; then
3372         { echo "$as_me:$LINENO: WARNING: *** the UDP port range should be greater than 0 in --with-udpportrange" >&5
3373 echo "$as_me: WARNING: *** the UDP port range should be greater than 0 in --with-udpportrange" >&2;}
3374     fi
3375
3376 cat >>confdefs.h <<_ACEOF
3377 #define UDPPORTRANGE $UDPPORTRANGE
3378 _ACEOF
3379
3380 fi
3381
3382
3383 # Check whether --with-maxtapeblocksize or --without-maxtapeblocksize was given.
3384 if test "${with_maxtapeblocksize+set}" = set; then
3385   withval="$with_maxtapeblocksize"
3386
3387         MAXTAPEBLOCKSIZE="$withval"
3388
3389 else
3390   : ${MAXTAPEBLOCKSIZE=32}
3391
3392 fi;
3393
3394
3395 cat >>confdefs.h <<_ACEOF
3396 #define MAX_TAPE_BLOCK_KB ($MAXTAPEBLOCKSIZE)
3397 _ACEOF
3398
3399
3400
3401
3402 # Check whether --with-db or --without-db was given.
3403 if test "${with_db+set}" = set; then
3404   withval="$with_db"
3405
3406         case "$withval" in
3407         "" | y | ye | yes | n | no)
3408             { { echo "$as_me:$LINENO: error: *** You must supply an argument to the --with-db option." >&5
3409 echo "$as_me: error: *** You must supply an argument to the --with-db option." >&2;}
3410    { (exit 1); exit 1; }; }
3411           ;;
3412         *) DB_STYLE="$withval"
3413           ;;
3414         esac
3415
3416
3417 fi;
3418 if test "$DB_STYLE"; then
3419     case "$DB_STYLE" in
3420         db | dbm | gdbm | ndbm | text)  ;;
3421         *)
3422             { { echo "$as_me:$LINENO: error: *** Unknown argument $DB_STYLE given to --with-db.  Choose from db, dbm, gdbm, ndbm, text." >&5
3423 echo "$as_me: error: *** Unknown argument $DB_STYLE given to --with-db.  Choose from db, dbm, gdbm, ndbm, text." >&2;}
3424    { (exit 1); exit 1; }; }
3425             DB_STYLE=
3426             ;;
3427     esac
3428 fi
3429
3430
3431 # Check whether --with-mmap or --without-mmap was given.
3432 if test "${with_mmap+set}" = set; then
3433   withval="$with_mmap"
3434   FORCE_MMAP=$withval
3435 else
3436   : ${FORCE_MMAP=no}
3437
3438 fi;
3439 case "$FORCE_MMAP" in
3440 y | ye | yes | n | no) : ;;
3441 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-mmap." >&5
3442 echo "$as_me: error: *** You must not supply an argument to --with-mmap." >&2;}
3443    { (exit 1); exit 1; }; }
3444   ;;
3445 esac
3446
3447
3448 # Check whether --with-buffered-dump or --without-buffered-dump was given.
3449 if test "${with_buffered_dump+set}" = set; then
3450   withval="$with_buffered_dump"
3451   DUMPER_SOCKET_BUFFERING=$withval
3452 else
3453   : ${DUMPER_SOCKET_BUFFERING=no}
3454
3455 fi;
3456 case "$DUMPER_SOCKET_BUFFERING" in
3457 n | no) :
3458   ;;
3459 y | ye | yes)
3460 cat >>confdefs.h <<\_ACEOF
3461 #define DUMPER_SOCKET_BUFFERING 1
3462 _ACEOF
3463
3464   ;;
3465 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-buffered-dump." >&5
3466 echo "$as_me: error: *** You must not supply an argument to --with-buffered-dump." >&2;}
3467    { (exit 1); exit 1; }; }
3468   ;;
3469 esac
3470
3471
3472 # Check whether --with-assertions or --without-assertions was given.
3473 if test "${with_assertions+set}" = set; then
3474   withval="$with_assertions"
3475   ASSERTIONS="$withval"
3476 else
3477   : ${ASSERTIONS=no}
3478
3479 fi;
3480 case "$ASSERTIONS" in
3481 n | no) : ;;
3482 y |  ye | yes)
3483 cat >>confdefs.h <<\_ACEOF
3484 #define ASSERTIONS 1
3485 _ACEOF
3486
3487   ;;
3488 *) { { echo "$as_me:$LINENO: error: *** You must not supply an argument to --with-assertions option." >&5
3489 echo "$as_me: error: *** You must not supply an argument to --with-assertions option." >&2;}
3490    { (exit 1); exit 1; }; }
3491   ;;
3492 esac
3493
3494
3495 # Check whether --with-tmpdir or --without-tmpdir was given.
3496 if test "${with_tmpdir+set}" = set; then
3497   withval="$with_tmpdir"
3498   tmpdir="$withval"
3499 else
3500   : ${tmpdir=yes}
3501
3502 fi;
3503 tmpdir=`(
3504     test "x$prefix" = xNONE && prefix=$ac_default_prefix
3505     test "x$exec_prefix" = xNONE && exec_prefix=${prefix}
3506     eval echo "$tmpdir"
3507 )`
3508 case "$tmpdir" in
3509 n | no) { { echo "$as_me:$LINENO: error: *** --without-tmpdir is not allowed." >&5
3510 echo "$as_me: error: *** --without-tmpdir is not allowed." >&2;}
3511    { (exit 1); exit 1; }; };;
3512 y |  ye | yes)
3513         AMANDA_TMPDIR="/tmp/amanda";;
3514 /*)
3515         AMANDA_TMPDIR="$tmpdir";;
3516 *) { { echo "$as_me:$LINENO: error: *** You must supply a full pathname to --with-tmpdir option." >&5
3517 echo "$as_me: error: *** You must supply a full pathname to --with-tmpdir option." >&2;}
3518    { (exit 1); exit 1; }; };;
3519 esac
3520
3521 cat >>confdefs.h <<_ACEOF
3522 #define AMANDA_TMPDIR "$AMANDA_TMPDIR"
3523 _ACEOF
3524
3525
3526
3527
3528 # Check whether --with-debugging or --without-debugging was given.
3529 if test "${with_debugging+set}" = set; then
3530   withval="$with_debugging"
3531   debugging="$withval"
3532 else
3533   : ${debugging=yes}
3534
3535 fi;
3536 debugging=`(
3537     test "x$prefix" = xNONE && prefix=$ac_default_prefix
3538     test "x$exec_prefix" = xNONE && exec_prefix=${prefix}
3539     eval echo "$debugging"
3540 )`
3541 case "$debugging" in
3542 n | no) AMANDA_DBGDIR="";;
3543 y |  ye | yes) AMANDA_DBGDIR="$AMANDA_TMPDIR" ;;
3544 /*) AMANDA_DBGDIR="$debugging" ;;
3545 *) { { echo "$as_me:$LINENO: error: *** You must supply a full pathname to --with-debugging option." >&5
3546 echo "$as_me: error: *** You must supply a full pathname to --with-debugging option." >&2;}
3547    { (exit 1); exit 1; }; }
3548   ;;
3549 esac
3550 case "$AMANDA_DBGDIR" in
3551 "") :;;
3552 *)
3553 cat >>confdefs.h <<\_ACEOF
3554 #define DEBUG_CODE 1
3555 _ACEOF
3556
3557
3558 cat >>confdefs.h <<_ACEOF
3559 #define AMANDA_DBGDIR "$AMANDA_DBGDIR"
3560 _ACEOF
3561
3562    ;;
3563 esac
3564
3565
3566 # Check whether --with-debug_days or --without-debug_days was given.
3567 if test "${with_debug_days+set}" = set; then
3568   withval="$with_debug_days"
3569   debug_days="$withval"
3570 else
3571   : ${debug_days=4}
3572
3573 fi;
3574 case "$debug_days" in
3575 n | no) AMANDA_DEBUG_DAYS=0 ;;
3576 y |  ye | yes) AMANDA_DEBUG_DAYS=4 ;;
3577 [0-9] | [0-9][0-9] | [0-9][0-9][0-9]) AMANDA_DEBUG_DAYS="$debug_days" ;;
3578 *) { { echo "$as_me:$LINENO: error: *** --with-debug-days value not numeric or out of range." >&5
3579 echo "$as_me: error: *** --with-debug-days value not numeric or out of range." >&2;}
3580    { (exit 1); exit 1; }; }
3581   ;;
3582 esac
3583
3584 cat >>confdefs.h <<_ACEOF
3585 #define AMANDA_DEBUG_DAYS $AMANDA_DEBUG_DAYS
3586 _ACEOF
3587
3588
3589
3590
3591 # Check whether --with-testing or --without-testing was given.
3592 if test "${with_testing+set}" = set; then
3593   withval="$with_testing"
3594   TESTING="$withval"
3595 else
3596   : ${TESTING=no}
3597
3598 fi;
3599 case "$TESTING" in
3600 n | no) SERVICE_SUFFIX="";;
3601 y |  ye | yes) SERVICE_SUFFIX="-test";;
3602 *) SERVICE_SUFFIX="-$TESTING";;
3603 esac
3604 AMANDA_SERVICE_NAME="amanda$SERVICE_SUFFIX"
3605 KAMANDA_SERVICE_NAME="kamanda$SERVICE_SUFFIX"
3606
3607
3608 cat >>confdefs.h <<_ACEOF
3609 #define SERVICE_SUFFIX "$SERVICE_SUFFIX"
3610 _ACEOF
3611
3612
3613 cat >>confdefs.h <<_ACEOF
3614 #define AMANDA_SERVICE_NAME "$AMANDA_SERVICE_NAME"
3615 _ACEOF
3616
3617
3618 cat >>confdefs.h <<_ACEOF
3619 #define KAMANDA_SERVICE_NAME "$KAMANDA_SERVICE_NAME"
3620 _ACEOF
3621
3622
3623 (
3624     test "x$prefix" = xNONE && prefix=$ac_default_prefix
3625     test "x$exec_prefix" = xNONE && exec_prefix=${prefix}
3626
3627     tmp=`eval echo "$bindir"`
3628
3629 cat >>confdefs.h <<_ACEOF
3630 #define bindir "$tmp"
3631 _ACEOF
3632
3633
3634     tmp=`eval echo "$sbindir"`
3635
3636 cat >>confdefs.h <<_ACEOF
3637 #define sbindir "$tmp"
3638 _ACEOF
3639
3640
3641     tmp=`eval echo "$libexecdir"`
3642
3643 cat >>confdefs.h <<_ACEOF
3644 #define libexecdir "$tmp"
3645 _ACEOF
3646
3647
3648     tmp=`eval echo $mandir`
3649
3650 cat >>confdefs.h <<_ACEOF
3651 #define mandir "$tmp"
3652 _ACEOF
3653
3654 )
3655
3656 ac_ext=c
3657 ac_cpp='$CPP $CPPFLAGS'
3658 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3659 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3660 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3661 if test -n "$ac_tool_prefix"; then
3662   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3663 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3664 echo "$as_me:$LINENO: checking for $ac_word" >&5
3665 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3666 if test "${ac_cv_prog_CC+set}" = set; then
3667   echo $ECHO_N "(cached) $ECHO_C" >&6
3668 else
3669   if test -n "$CC"; then
3670   ac_cv_prog_CC="$CC" # Let the user override the test.
3671 else
3672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3673 for as_dir in $PATH
3674 do
3675   IFS=$as_save_IFS
3676   test -z "$as_dir" && as_dir=.
3677   for ac_exec_ext in '' $ac_executable_extensions; do
3678   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3679     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3680     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3681     break 2
3682   fi
3683 done
3684 done
3685
3686 fi
3687 fi
3688 CC=$ac_cv_prog_CC
3689 if test -n "$CC"; then
3690   echo "$as_me:$LINENO: result: $CC" >&5
3691 echo "${ECHO_T}$CC" >&6
3692 else
3693   echo "$as_me:$LINENO: result: no" >&5
3694 echo "${ECHO_T}no" >&6
3695 fi
3696
3697 fi
3698 if test -z "$ac_cv_prog_CC"; then
3699   ac_ct_CC=$CC
3700   # Extract the first word of "gcc", so it can be a program name with args.
3701 set dummy gcc; ac_word=$2
3702 echo "$as_me:$LINENO: checking for $ac_word" >&5
3703 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3704 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3705   echo $ECHO_N "(cached) $ECHO_C" >&6
3706 else
3707   if test -n "$ac_ct_CC"; then
3708   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3709 else
3710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3711 for as_dir in $PATH
3712 do
3713   IFS=$as_save_IFS
3714   test -z "$as_dir" && as_dir=.
3715   for ac_exec_ext in '' $ac_executable_extensions; do
3716   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3717     ac_cv_prog_ac_ct_CC="gcc"
3718     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3719     break 2
3720   fi
3721 done
3722 done
3723
3724 fi
3725 fi
3726 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3727 if test -n "$ac_ct_CC"; then
3728   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3729 echo "${ECHO_T}$ac_ct_CC" >&6
3730 else
3731   echo "$as_me:$LINENO: result: no" >&5
3732 echo "${ECHO_T}no" >&6
3733 fi
3734
3735   CC=$ac_ct_CC
3736 else
3737   CC="$ac_cv_prog_CC"
3738 fi
3739
3740 if test -z "$CC"; then
3741   if test -n "$ac_tool_prefix"; then
3742   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3743 set dummy ${ac_tool_prefix}cc; ac_word=$2
3744 echo "$as_me:$LINENO: checking for $ac_word" >&5
3745 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3746 if test "${ac_cv_prog_CC+set}" = set; then
3747   echo $ECHO_N "(cached) $ECHO_C" >&6
3748 else
3749   if test -n "$CC"; then
3750   ac_cv_prog_CC="$CC" # Let the user override the test.
3751 else
3752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3753 for as_dir in $PATH
3754 do
3755   IFS=$as_save_IFS
3756   test -z "$as_dir" && as_dir=.
3757   for ac_exec_ext in '' $ac_executable_extensions; do
3758   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3759     ac_cv_prog_CC="${ac_tool_prefix}cc"
3760     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3761     break 2
3762   fi
3763 done
3764 done
3765
3766 fi
3767 fi
3768 CC=$ac_cv_prog_CC
3769 if test -n "$CC"; then
3770   echo "$as_me:$LINENO: result: $CC" >&5
3771 echo "${ECHO_T}$CC" >&6
3772 else
3773   echo "$as_me:$LINENO: result: no" >&5
3774 echo "${ECHO_T}no" >&6
3775 fi
3776
3777 fi
3778 if test -z "$ac_cv_prog_CC"; then
3779   ac_ct_CC=$CC
3780   # Extract the first word of "cc", so it can be a program name with args.
3781 set dummy cc; ac_word=$2
3782 echo "$as_me:$LINENO: checking for $ac_word" >&5
3783 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3784 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3785   echo $ECHO_N "(cached) $ECHO_C" >&6
3786 else
3787   if test -n "$ac_ct_CC"; then
3788   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3789 else
3790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3791 for as_dir in $PATH
3792 do
3793   IFS=$as_save_IFS
3794   test -z "$as_dir" && as_dir=.
3795   for ac_exec_ext in '' $ac_executable_extensions; do
3796   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3797     ac_cv_prog_ac_ct_CC="cc"
3798     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3799     break 2
3800   fi
3801 done
3802 done
3803
3804 fi
3805 fi
3806 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3807 if test -n "$ac_ct_CC"; then
3808   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3809 echo "${ECHO_T}$ac_ct_CC" >&6
3810 else
3811   echo "$as_me:$LINENO: result: no" >&5
3812 echo "${ECHO_T}no" >&6
3813 fi
3814
3815   CC=$ac_ct_CC
3816 else
3817   CC="$ac_cv_prog_CC"
3818 fi
3819
3820 fi
3821 if test -z "$CC"; then
3822   # Extract the first word of "cc", so it can be a program name with args.
3823 set dummy cc; 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   ac_prog_rejected=no
3833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3834 for as_dir in $PATH
3835 do
3836   IFS=$as_save_IFS
3837   test -z "$as_dir" && as_dir=.
3838   for ac_exec_ext in '' $ac_executable_extensions; do
3839   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3840     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3841        ac_prog_rejected=yes
3842        continue
3843      fi
3844     ac_cv_prog_CC="cc"
3845     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3846     break 2
3847   fi
3848 done
3849 done
3850
3851 if test $ac_prog_rejected = yes; then
3852   # We found a bogon in the path, so make sure we never use it.
3853   set dummy $ac_cv_prog_CC
3854   shift
3855   if test $# != 0; then
3856     # We chose a different compiler from the bogus one.
3857     # However, it has the same basename, so the bogon will be chosen
3858     # first if we set CC to just the basename; use the full file name.
3859     shift
3860     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3861   fi
3862 fi
3863 fi
3864 fi
3865 CC=$ac_cv_prog_CC
3866 if test -n "$CC"; then
3867   echo "$as_me:$LINENO: result: $CC" >&5
3868 echo "${ECHO_T}$CC" >&6
3869 else
3870   echo "$as_me:$LINENO: result: no" >&5
3871 echo "${ECHO_T}no" >&6
3872 fi
3873
3874 fi
3875 if test -z "$CC"; then
3876   if test -n "$ac_tool_prefix"; then
3877   for ac_prog in cl
3878   do
3879     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3880 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3881 echo "$as_me:$LINENO: checking for $ac_word" >&5
3882 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3883 if test "${ac_cv_prog_CC+set}" = set; then
3884   echo $ECHO_N "(cached) $ECHO_C" >&6
3885 else
3886   if test -n "$CC"; then
3887   ac_cv_prog_CC="$CC" # Let the user override the test.
3888 else
3889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3890 for as_dir in $PATH
3891 do
3892   IFS=$as_save_IFS
3893   test -z "$as_dir" && as_dir=.
3894   for ac_exec_ext in '' $ac_executable_extensions; do
3895   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3896     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3897     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3898     break 2
3899   fi
3900 done
3901 done
3902
3903 fi
3904 fi
3905 CC=$ac_cv_prog_CC
3906 if test -n "$CC"; then
3907   echo "$as_me:$LINENO: result: $CC" >&5
3908 echo "${ECHO_T}$CC" >&6
3909 else
3910   echo "$as_me:$LINENO: result: no" >&5
3911 echo "${ECHO_T}no" >&6
3912 fi
3913
3914     test -n "$CC" && break
3915   done
3916 fi
3917 if test -z "$CC"; then
3918   ac_ct_CC=$CC
3919   for ac_prog in cl
3920 do
3921   # Extract the first word of "$ac_prog", so it can be a program name with args.
3922 set dummy $ac_prog; ac_word=$2
3923 echo "$as_me:$LINENO: checking for $ac_word" >&5
3924 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3925 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3926   echo $ECHO_N "(cached) $ECHO_C" >&6
3927 else
3928   if test -n "$ac_ct_CC"; then
3929   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3930 else
3931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3932 for as_dir in $PATH
3933 do
3934   IFS=$as_save_IFS
3935   test -z "$as_dir" && as_dir=.
3936   for ac_exec_ext in '' $ac_executable_extensions; do
3937   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3938     ac_cv_prog_ac_ct_CC="$ac_prog"
3939     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3940     break 2
3941   fi
3942 done
3943 done
3944
3945 fi
3946 fi
3947 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3948 if test -n "$ac_ct_CC"; then
3949   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3950 echo "${ECHO_T}$ac_ct_CC" >&6
3951 else
3952   echo "$as_me:$LINENO: result: no" >&5
3953 echo "${ECHO_T}no" >&6
3954 fi
3955
3956   test -n "$ac_ct_CC" && break
3957 done
3958
3959   CC=$ac_ct_CC
3960 fi
3961
3962 fi
3963
3964
3965 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3966 See \`config.log' for more details." >&5
3967 echo "$as_me: error: no acceptable C compiler found in \$PATH
3968 See \`config.log' for more details." >&2;}
3969    { (exit 1); exit 1; }; }
3970
3971 # Provide some information about the compiler.
3972 echo "$as_me:$LINENO:" \
3973      "checking for C compiler version" >&5
3974 ac_compiler=`set X $ac_compile; echo $2`
3975 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3976   (eval $ac_compiler --version </dev/null >&5) 2>&5
3977   ac_status=$?
3978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3979   (exit $ac_status); }
3980 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3981   (eval $ac_compiler -v </dev/null >&5) 2>&5
3982   ac_status=$?
3983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3984   (exit $ac_status); }
3985 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3986   (eval $ac_compiler -V </dev/null >&5) 2>&5
3987   ac_status=$?
3988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3989   (exit $ac_status); }
3990
3991 cat >conftest.$ac_ext <<_ACEOF
3992 /* confdefs.h.  */
3993 _ACEOF
3994 cat confdefs.h >>conftest.$ac_ext
3995 cat >>conftest.$ac_ext <<_ACEOF
3996 /* end confdefs.h.  */
3997
3998 int
3999 main ()
4000 {
4001
4002   ;
4003   return 0;
4004 }
4005 _ACEOF
4006 ac_clean_files_save=$ac_clean_files
4007 ac_clean_files="$ac_clean_files a.out a.exe b.out"
4008 # Try to create an executable without -o first, disregard a.out.
4009 # It will help us diagnose broken compilers, and finding out an intuition
4010 # of exeext.
4011 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4012 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
4013 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4014 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
4015   (eval $ac_link_default) 2>&5
4016   ac_status=$?
4017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4018   (exit $ac_status); }; then
4019   # Find the output, starting from the most likely.  This scheme is
4020 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
4021 # resort.
4022
4023 # Be careful to initialize this variable, since it used to be cached.
4024 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
4025 ac_cv_exeext=
4026 # b.out is created by i960 compilers.
4027 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
4028 do
4029   test -f "$ac_file" || continue
4030   case $ac_file in
4031     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
4032         ;;
4033     conftest.$ac_ext )
4034         # This is the source file.
4035         ;;
4036     [ab].out )
4037         # We found the default executable, but exeext='' is most
4038         # certainly right.
4039         break;;
4040     *.* )
4041         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4042         # FIXME: I believe we export ac_cv_exeext for Libtool,
4043         # but it would be cool to find out if it's true.  Does anybody
4044         # maintain Libtool? --akim.
4045         export ac_cv_exeext
4046         break;;
4047     * )
4048         break;;
4049   esac
4050 done
4051 else
4052   echo "$as_me: failed program was:" >&5
4053 sed 's/^/| /' conftest.$ac_ext >&5
4054
4055 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
4056 See \`config.log' for more details." >&5
4057 echo "$as_me: error: C compiler cannot create executables
4058 See \`config.log' for more details." >&2;}
4059    { (exit 77); exit 77; }; }
4060 fi
4061
4062 ac_exeext=$ac_cv_exeext
4063 echo "$as_me:$LINENO: result: $ac_file" >&5
4064 echo "${ECHO_T}$ac_file" >&6
4065
4066 # Check the compiler produces executables we can run.  If not, either
4067 # the compiler is broken, or we cross compile.
4068 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4069 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
4070 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4071 # If not cross compiling, check that we can run a simple program.
4072 if test "$cross_compiling" != yes; then
4073   if { ac_try='./$ac_file'
4074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4075   (eval $ac_try) 2>&5
4076   ac_status=$?
4077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4078   (exit $ac_status); }; }; then
4079     cross_compiling=no
4080   else
4081     if test "$cross_compiling" = maybe; then
4082         cross_compiling=yes
4083     else
4084         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
4085 If you meant to cross compile, use \`--host'.
4086 See \`config.log' for more details." >&5
4087 echo "$as_me: error: cannot run C compiled programs.
4088 If you meant to cross compile, use \`--host'.
4089 See \`config.log' for more details." >&2;}
4090    { (exit 1); exit 1; }; }
4091     fi
4092   fi
4093 fi
4094 echo "$as_me:$LINENO: result: yes" >&5
4095 echo "${ECHO_T}yes" >&6
4096
4097 rm -f a.out a.exe conftest$ac_cv_exeext b.out
4098 ac_clean_files=$ac_clean_files_save
4099 # Check the compiler produces executables we can run.  If not, either
4100 # the compiler is broken, or we cross compile.
4101 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4102 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
4103 echo "$as_me:$LINENO: result: $cross_compiling" >&5
4104 echo "${ECHO_T}$cross_compiling" >&6
4105
4106 echo "$as_me:$LINENO: checking for suffix of executables" >&5
4107 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
4108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4109   (eval $ac_link) 2>&5
4110   ac_status=$?
4111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4112   (exit $ac_status); }; then
4113   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4114 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4115 # work properly (i.e., refer to `conftest.exe'), while it won't with
4116 # `rm'.
4117 for ac_file in conftest.exe conftest conftest.*; do
4118   test -f "$ac_file" || continue
4119   case $ac_file in
4120     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
4121     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4122           export ac_cv_exeext
4123           break;;
4124     * ) break;;
4125   esac
4126 done
4127 else
4128   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4129 See \`config.log' for more details." >&5
4130 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4131 See \`config.log' for more details." >&2;}
4132    { (exit 1); exit 1; }; }
4133 fi
4134
4135 rm -f conftest$ac_cv_exeext
4136 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
4137 echo "${ECHO_T}$ac_cv_exeext" >&6
4138
4139 rm -f conftest.$ac_ext
4140 EXEEXT=$ac_cv_exeext
4141 ac_exeext=$EXEEXT
4142 echo "$as_me:$LINENO: checking for suffix of object files" >&5
4143 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
4144 if test "${ac_cv_objext+set}" = set; then
4145   echo $ECHO_N "(cached) $ECHO_C" >&6
4146 else
4147   cat >conftest.$ac_ext <<_ACEOF
4148 /* confdefs.h.  */
4149 _ACEOF
4150 cat confdefs.h >>conftest.$ac_ext
4151 cat >>conftest.$ac_ext <<_ACEOF
4152 /* end confdefs.h.  */
4153
4154 int
4155 main ()
4156 {
4157
4158   ;
4159   return 0;
4160 }
4161 _ACEOF
4162 rm -f conftest.o conftest.obj
4163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4164   (eval $ac_compile) 2>&5
4165   ac_status=$?
4166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4167   (exit $ac_status); }; then
4168   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
4169   case $ac_file in
4170     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
4171     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4172        break;;
4173   esac
4174 done
4175 else
4176   echo "$as_me: failed program was:" >&5
4177 sed 's/^/| /' conftest.$ac_ext >&5
4178
4179 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
4180 See \`config.log' for more details." >&5
4181 echo "$as_me: error: cannot compute suffix of object files: cannot compile
4182 See \`config.log' for more details." >&2;}
4183    { (exit 1); exit 1; }; }
4184 fi
4185
4186 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4187 fi
4188 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
4189 echo "${ECHO_T}$ac_cv_objext" >&6
4190 OBJEXT=$ac_cv_objext
4191 ac_objext=$OBJEXT
4192 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4193 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4194 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4195   echo $ECHO_N "(cached) $ECHO_C" >&6
4196 else
4197   cat >conftest.$ac_ext <<_ACEOF
4198 /* confdefs.h.  */
4199 _ACEOF
4200 cat confdefs.h >>conftest.$ac_ext
4201 cat >>conftest.$ac_ext <<_ACEOF
4202 /* end confdefs.h.  */
4203
4204 int
4205 main ()
4206 {
4207 #ifndef __GNUC__
4208        choke me
4209 #endif
4210
4211   ;
4212   return 0;
4213 }
4214 _ACEOF
4215 rm -f conftest.$ac_objext
4216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4217   (eval $ac_compile) 2>conftest.er1
4218   ac_status=$?
4219   grep -v '^ *+' conftest.er1 >conftest.err
4220   rm -f conftest.er1
4221   cat conftest.err >&5
4222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4223   (exit $ac_status); } &&
4224          { ac_try='test -z "$ac_c_werror_flag"
4225                          || test ! -s conftest.err'
4226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4227   (eval $ac_try) 2>&5
4228   ac_status=$?
4229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4230   (exit $ac_status); }; } &&
4231          { ac_try='test -s conftest.$ac_objext'
4232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4233   (eval $ac_try) 2>&5
4234   ac_status=$?
4235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4236   (exit $ac_status); }; }; then
4237   ac_compiler_gnu=yes
4238 else
4239   echo "$as_me: failed program was:" >&5
4240 sed 's/^/| /' conftest.$ac_ext >&5
4241
4242 ac_compiler_gnu=no
4243 fi
4244 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4245 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4246
4247 fi
4248 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4249 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4250 GCC=`test $ac_compiler_gnu = yes && echo yes`
4251 ac_test_CFLAGS=${CFLAGS+set}
4252 ac_save_CFLAGS=$CFLAGS
4253 CFLAGS="-g"
4254 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4255 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4256 if test "${ac_cv_prog_cc_g+set}" = set; then
4257   echo $ECHO_N "(cached) $ECHO_C" >&6
4258 else
4259   cat >conftest.$ac_ext <<_ACEOF
4260 /* confdefs.h.  */
4261 _ACEOF
4262 cat confdefs.h >>conftest.$ac_ext
4263 cat >>conftest.$ac_ext <<_ACEOF
4264 /* end confdefs.h.  */
4265
4266 int
4267 main ()
4268 {
4269
4270   ;
4271   return 0;
4272 }
4273 _ACEOF
4274 rm -f conftest.$ac_objext
4275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4276   (eval $ac_compile) 2>conftest.er1
4277   ac_status=$?
4278   grep -v '^ *+' conftest.er1 >conftest.err
4279   rm -f conftest.er1
4280   cat conftest.err >&5
4281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4282   (exit $ac_status); } &&
4283          { ac_try='test -z "$ac_c_werror_flag"
4284                          || test ! -s conftest.err'
4285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4286   (eval $ac_try) 2>&5
4287   ac_status=$?
4288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4289   (exit $ac_status); }; } &&
4290          { ac_try='test -s conftest.$ac_objext'
4291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4292   (eval $ac_try) 2>&5
4293   ac_status=$?
4294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4295   (exit $ac_status); }; }; then
4296   ac_cv_prog_cc_g=yes
4297 else
4298   echo "$as_me: failed program was:" >&5
4299 sed 's/^/| /' conftest.$ac_ext >&5
4300
4301 ac_cv_prog_cc_g=no
4302 fi
4303 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4304 fi
4305 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4306 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4307 if test "$ac_test_CFLAGS" = set; then
4308   CFLAGS=$ac_save_CFLAGS
4309 elif test $ac_cv_prog_cc_g = yes; then
4310   if test "$GCC" = yes; then
4311     CFLAGS="-g -O2"
4312   else
4313     CFLAGS="-g"
4314   fi
4315 else
4316   if test "$GCC" = yes; then
4317     CFLAGS="-O2"
4318   else
4319     CFLAGS=
4320   fi
4321 fi
4322 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4323 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4324 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4325   echo $ECHO_N "(cached) $ECHO_C" >&6
4326 else
4327   ac_cv_prog_cc_stdc=no
4328 ac_save_CC=$CC
4329 cat >conftest.$ac_ext <<_ACEOF
4330 /* confdefs.h.  */
4331 _ACEOF
4332 cat confdefs.h >>conftest.$ac_ext
4333 cat >>conftest.$ac_ext <<_ACEOF
4334 /* end confdefs.h.  */
4335 #include <stdarg.h>
4336 #include <stdio.h>
4337 #include <sys/types.h>
4338 #include <sys/stat.h>
4339 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4340 struct buf { int x; };
4341 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4342 static char *e (p, i)
4343      char **p;
4344      int i;
4345 {
4346   return p[i];
4347 }
4348 static char *f (char * (*g) (char **, int), char **p, ...)
4349 {
4350   char *s;
4351   va_list v;
4352   va_start (v,p);
4353   s = g (p, va_arg (v,int));
4354   va_end (v);
4355   return s;
4356 }
4357
4358 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4359    function prototypes and stuff, but not '\xHH' hex character constants.
4360    These don't provoke an error unfortunately, instead are silently treated
4361    as 'x'.  The following induces an error, until -std1 is added to get
4362    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4363    array size at least.  It's necessary to write '\x00'==0 to get something
4364    that's true only with -std1.  */
4365 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4366
4367 int test (int i, double x);
4368 struct s1 {int (*f) (int a);};
4369 struct s2 {int (*f) (double a);};
4370 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4371 int argc;
4372 char **argv;
4373 int
4374 main ()
4375 {
4376 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4377   ;
4378   return 0;
4379 }
4380 _ACEOF
4381 # Don't try gcc -ansi; that turns off useful extensions and
4382 # breaks some systems' header files.
4383 # AIX                   -qlanglvl=ansi
4384 # Ultrix and OSF/1      -std1
4385 # HP-UX 10.20 and later -Ae
4386 # HP-UX older versions  -Aa -D_HPUX_SOURCE
4387 # SVR4                  -Xc -D__EXTENSIONS__
4388 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4389 do
4390   CC="$ac_save_CC $ac_arg"
4391   rm -f conftest.$ac_objext
4392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4393   (eval $ac_compile) 2>conftest.er1
4394   ac_status=$?
4395   grep -v '^ *+' conftest.er1 >conftest.err
4396   rm -f conftest.er1
4397   cat conftest.err >&5
4398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4399   (exit $ac_status); } &&
4400          { ac_try='test -z "$ac_c_werror_flag"
4401                          || test ! -s conftest.err'
4402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4403   (eval $ac_try) 2>&5
4404   ac_status=$?
4405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4406   (exit $ac_status); }; } &&
4407          { ac_try='test -s conftest.$ac_objext'
4408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4409   (eval $ac_try) 2>&5
4410   ac_status=$?
4411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4412   (exit $ac_status); }; }; then
4413   ac_cv_prog_cc_stdc=$ac_arg
4414 break
4415 else
4416   echo "$as_me: failed program was:" >&5
4417 sed 's/^/| /' conftest.$ac_ext >&5
4418
4419 fi
4420 rm -f conftest.err conftest.$ac_objext
4421 done
4422 rm -f conftest.$ac_ext conftest.$ac_objext
4423 CC=$ac_save_CC
4424
4425 fi
4426
4427 case "x$ac_cv_prog_cc_stdc" in
4428   x|xno)
4429     echo "$as_me:$LINENO: result: none needed" >&5
4430 echo "${ECHO_T}none needed" >&6 ;;
4431   *)
4432     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4433 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4434     CC="$CC $ac_cv_prog_cc_stdc" ;;
4435 esac
4436
4437 # Some people use a C++ compiler to compile C.  Since we use `exit',
4438 # in C++ we need to declare it.  In case someone uses the same compiler
4439 # for both compiling C and C++ we need to have the C++ compiler decide
4440 # the declaration of exit, since it's the most demanding environment.
4441 cat >conftest.$ac_ext <<_ACEOF
4442 #ifndef __cplusplus
4443   choke me
4444 #endif
4445 _ACEOF
4446 rm -f conftest.$ac_objext
4447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4448   (eval $ac_compile) 2>conftest.er1
4449   ac_status=$?
4450   grep -v '^ *+' conftest.er1 >conftest.err
4451   rm -f conftest.er1
4452   cat conftest.err >&5
4453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4454   (exit $ac_status); } &&
4455          { ac_try='test -z "$ac_c_werror_flag"
4456                          || test ! -s conftest.err'
4457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4458   (eval $ac_try) 2>&5
4459   ac_status=$?
4460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4461   (exit $ac_status); }; } &&
4462          { ac_try='test -s conftest.$ac_objext'
4463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4464   (eval $ac_try) 2>&5
4465   ac_status=$?
4466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4467   (exit $ac_status); }; }; then
4468   for ac_declaration in \
4469    '' \
4470    'extern "C" void std::exit (int) throw (); using std::exit;' \
4471    'extern "C" void std::exit (int); using std::exit;' \
4472    'extern "C" void exit (int) throw ();' \
4473    'extern "C" void exit (int);' \
4474    'void exit (int);'
4475 do
4476   cat >conftest.$ac_ext <<_ACEOF
4477 /* confdefs.h.  */
4478 _ACEOF
4479 cat confdefs.h >>conftest.$ac_ext
4480 cat >>conftest.$ac_ext <<_ACEOF
4481 /* end confdefs.h.  */
4482 $ac_declaration
4483 #include <stdlib.h>
4484 int
4485 main ()
4486 {
4487 exit (42);
4488   ;
4489   return 0;
4490 }
4491 _ACEOF
4492 rm -f conftest.$ac_objext
4493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4494   (eval $ac_compile) 2>conftest.er1
4495   ac_status=$?
4496   grep -v '^ *+' conftest.er1 >conftest.err
4497   rm -f conftest.er1
4498   cat conftest.err >&5
4499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4500   (exit $ac_status); } &&
4501          { ac_try='test -z "$ac_c_werror_flag"
4502                          || test ! -s conftest.err'
4503   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4504   (eval $ac_try) 2>&5
4505   ac_status=$?
4506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4507   (exit $ac_status); }; } &&
4508          { ac_try='test -s conftest.$ac_objext'
4509   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4510   (eval $ac_try) 2>&5
4511   ac_status=$?
4512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4513   (exit $ac_status); }; }; then
4514   :
4515 else
4516   echo "$as_me: failed program was:" >&5
4517 sed 's/^/| /' conftest.$ac_ext >&5
4518
4519 continue
4520 fi
4521 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4522   cat >conftest.$ac_ext <<_ACEOF
4523 /* confdefs.h.  */
4524 _ACEOF
4525 cat confdefs.h >>conftest.$ac_ext
4526 cat >>conftest.$ac_ext <<_ACEOF
4527 /* end confdefs.h.  */
4528 $ac_declaration
4529 int
4530 main ()
4531 {
4532 exit (42);
4533   ;
4534   return 0;
4535 }
4536 _ACEOF
4537 rm -f conftest.$ac_objext
4538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4539   (eval $ac_compile) 2>conftest.er1
4540   ac_status=$?
4541   grep -v '^ *+' conftest.er1 >conftest.err
4542   rm -f conftest.er1
4543   cat conftest.err >&5
4544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4545   (exit $ac_status); } &&
4546          { ac_try='test -z "$ac_c_werror_flag"
4547                          || test ! -s conftest.err'
4548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4549   (eval $ac_try) 2>&5
4550   ac_status=$?
4551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4552   (exit $ac_status); }; } &&
4553          { ac_try='test -s conftest.$ac_objext'
4554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4555   (eval $ac_try) 2>&5
4556   ac_status=$?
4557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4558   (exit $ac_status); }; }; then
4559   break
4560 else
4561   echo "$as_me: failed program was:" >&5
4562 sed 's/^/| /' conftest.$ac_ext >&5
4563
4564 fi
4565 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4566 done
4567 rm -f conftest*
4568 if test -n "$ac_declaration"; then
4569   echo '#ifdef __cplusplus' >>confdefs.h
4570   echo $ac_declaration      >>confdefs.h
4571   echo '#endif'             >>confdefs.h
4572 fi
4573
4574 else
4575   echo "$as_me: failed program was:" >&5
4576 sed 's/^/| /' conftest.$ac_ext >&5
4577
4578 fi
4579 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4580 ac_ext=c
4581 ac_cpp='$CPP $CPPFLAGS'
4582 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4583 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4584 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4585 DEPDIR="${am__leading_dot}deps"
4586
4587           ac_config_commands="$ac_config_commands depfiles"
4588
4589
4590 am_make=${MAKE-make}
4591 cat > confinc << 'END'
4592 am__doit:
4593         @echo done
4594 .PHONY: am__doit
4595 END
4596 # If we don't find an include directive, just comment out the code.
4597 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4598 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4599 am__include="#"
4600 am__quote=
4601 _am_result=none
4602 # First try GNU make style include.
4603 echo "include confinc" > confmf
4604 # We grep out `Entering directory' and `Leaving directory'
4605 # messages which can occur if `w' ends up in MAKEFLAGS.
4606 # In particular we don't look at `^make:' because GNU make might
4607 # be invoked under some other name (usually "gmake"), in which
4608 # case it prints its new name instead of `make'.
4609 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4610    am__include=include
4611    am__quote=
4612    _am_result=GNU
4613 fi
4614 # Now try BSD make style include.
4615 if test "$am__include" = "#"; then
4616    echo '.include "confinc"' > confmf
4617    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4618       am__include=.include
4619       am__quote="\""
4620       _am_result=BSD
4621    fi
4622 fi
4623
4624
4625 echo "$as_me:$LINENO: result: $_am_result" >&5
4626 echo "${ECHO_T}$_am_result" >&6
4627 rm -f confinc confmf
4628
4629 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4630 if test "${enable_dependency_tracking+set}" = set; then
4631   enableval="$enable_dependency_tracking"
4632
4633 fi;
4634 if test "x$enable_dependency_tracking" != xno; then
4635   am_depcomp="$ac_aux_dir/depcomp"
4636   AMDEPBACKSLASH='\'
4637 fi
4638
4639
4640 if test "x$enable_dependency_tracking" != xno; then
4641   AMDEP_TRUE=
4642   AMDEP_FALSE='#'
4643 else
4644   AMDEP_TRUE='#'
4645   AMDEP_FALSE=
4646 fi
4647
4648
4649
4650
4651 depcc="$CC"   am_compiler_list=
4652
4653 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4654 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4655 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4656   echo $ECHO_N "(cached) $ECHO_C" >&6
4657 else
4658   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4659   # We make a subdir and do the tests there.  Otherwise we can end up
4660   # making bogus files that we don't know about and never remove.  For
4661   # instance it was reported that on HP-UX the gcc test will end up
4662   # making a dummy file named `D' -- because `-MD' means `put the output
4663   # in D'.
4664   mkdir conftest.dir
4665   # Copy depcomp to subdir because otherwise we won't find it if we're
4666   # using a relative directory.
4667   cp "$am_depcomp" conftest.dir
4668   cd conftest.dir
4669   # We will build objects and dependencies in a subdirectory because
4670   # it helps to detect inapplicable dependency modes.  For instance
4671   # both Tru64's cc and ICC support -MD to output dependencies as a
4672   # side effect of compilation, but ICC will put the dependencies in
4673   # the current directory while Tru64 will put them in the object
4674   # directory.
4675   mkdir sub
4676
4677   am_cv_CC_dependencies_compiler_type=none
4678   if test "$am_compiler_list" = ""; then
4679      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4680   fi
4681   for depmode in $am_compiler_list; do
4682     # Setup a source with many dependencies, because some compilers
4683     # like to wrap large dependency lists on column 80 (with \), and
4684     # we should not choose a depcomp mode which is confused by this.
4685     #
4686     # We need to recreate these files for each test, as the compiler may
4687     # overwrite some of them when testing with obscure command lines.
4688     # This happens at least with the AIX C compiler.
4689     : > sub/conftest.c
4690     for i in 1 2 3 4 5 6; do
4691       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4692       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4693       # Solaris 8's {/usr,}/bin/sh.
4694       touch sub/conftst$i.h
4695     done
4696     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4697
4698     case $depmode in
4699     nosideeffect)
4700       # after this tag, mechanisms are not by side-effect, so they'll
4701       # only be used when explicitly requested
4702       if test "x$enable_dependency_tracking" = xyes; then
4703         continue
4704       else
4705         break
4706       fi
4707       ;;
4708     none) break ;;
4709     esac
4710     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4711     # mode.  It turns out that the SunPro C++ compiler does not properly
4712     # handle `-M -o', and we need to detect this.
4713     if depmode=$depmode \
4714        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4715        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4716        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4717          >/dev/null 2>conftest.err &&
4718        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4719        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4720        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4721       # icc doesn't choke on unknown options, it will just issue warnings
4722       # or remarks (even with -Werror).  So we grep stderr for any message
4723       # that says an option was ignored or not supported.
4724       # When given -MP, icc 7.0 and 7.1 complain thusly:
4725       #   icc: Command line warning: ignoring option '-M'; no argument required
4726       # The diagnosis changed in icc 8.0:
4727       #   icc: Command line remark: option '-MP' not supported
4728       if (grep 'ignoring option' conftest.err ||
4729           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4730         am_cv_CC_dependencies_compiler_type=$depmode
4731         break
4732       fi
4733     fi
4734   done
4735
4736   cd ..
4737   rm -rf conftest.dir
4738 else
4739   am_cv_CC_dependencies_compiler_type=none
4740 fi
4741
4742 fi
4743 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4744 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4745 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4746
4747
4748
4749 if
4750   test "x$enable_dependency_tracking" != xno \
4751   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4752   am__fastdepCC_TRUE=
4753   am__fastdepCC_FALSE='#'
4754 else
4755   am__fastdepCC_TRUE='#'
4756   am__fastdepCC_FALSE=
4757 fi
4758
4759
4760
4761
4762
4763 DUMP_PROGRAMS="ufsdump dump backup"
4764 GETCONF_LFS="LFS"
4765
4766 dump_returns_1=
4767 xenix_tapeio=
4768 case "$target" in
4769     *-dec-osf*)
4770
4771 cat >>confdefs.h <<\_ACEOF
4772 #define STATFS_OSF1 1
4773 _ACEOF
4774
4775                         ;;
4776     *-dg-*)
4777                         DUMP_PROGRAMS="dump "$DUMP_PROGRAMS
4778                         : ${USE_RUNDUMP=yes}
4779                         dump_returns_1=yes
4780                         ;;
4781     *-netbsd*)
4782                         ;;
4783     *-freebsd*)
4784                         ;;
4785     *-openbsd*)
4786                         ;;
4787     *-hp-*)
4788                         MT_FILE_FLAG="-t"
4789                         GETCONF_LFS="XBS5_ILP32_OFFBIG"
4790                         case "$CC" in
4791                             *gcc*)
4792                                 AMANDA_CPPFLAGS="-D__STDC_EXT__ $AMANDA_CPPFLAGS"
4793                                 ;;
4794                             *cc*)
4795                                 AMANDA_CFLAGS="-Ae $AMANDA_CFLAGS"
4796                                 ;;
4797                         esac
4798                         ;;
4799   *-ibm-aix*)
4800                         GETCONF_LFS="XBS5_ILP32_OFFBIG"
4801                         DUMP_PROGRAMS="backup "$DUMP_PROGRAMS
4802
4803 cat >>confdefs.h <<\_ACEOF
4804 #define AIX_TAPEIO 1
4805 _ACEOF
4806
4807
4808 cat >>confdefs.h <<\_ACEOF
4809 #define AIX_BACKUP 1
4810 _ACEOF
4811
4812                         ;;
4813   m88k-motorola-sysv4)
4814                         ;;
4815   *-nextstep3)
4816                         ;;
4817   *-pc-bsdi*)
4818                         ;;
4819   *-pc-linux-*)
4820                         ;;
4821   alpha*-*-linux-*)
4822                         ;;
4823   sparc*-*-linux-*)
4824                         ;;
4825   powerpc-*-linux-*)
4826                         ;;
4827   *-sgi-irix3*)
4828                                                 CC=gcc
4829                         ;;
4830   *-sgi-irix4*)
4831                         ;;
4832   *-sgi-irix5*)
4833                         ;;
4834   *-sgi-irix6*)
4835                         ;;
4836   *-solaris2*)
4837                         ;;
4838   *-sun-sunos4.1*)
4839                         ;;
4840   *-ultrix*)
4841                         : ${USE_RUNDUMP=yes}
4842
4843 cat >>confdefs.h <<\_ACEOF
4844 #define STATFS_ULTRIX 1
4845 _ACEOF
4846
4847                         dump_returns_1=yes
4848                         ;;
4849   *-sysv4.2uw2*)
4850
4851 cat >>confdefs.h <<\_ACEOF
4852 #define UWARE_TAPEIO 1
4853 _ACEOF
4854
4855                         ;;
4856   *-sco3.2v4*)
4857                         DEV_PREFIX=/dev/
4858                         RDEV_PREFIX=/dev/
4859                         ;;
4860   *-sco3.2v5*)
4861                         xenix_tapeio=yes
4862
4863 cat >>confdefs.h <<\_ACEOF
4864 #define STATFS_SCO_OS5 1
4865 _ACEOF
4866
4867                         ;;
4868   i386-pc-isc4*)
4869                         xenix_tapeio=yes
4870                         ;;
4871   *-sni-sysv4)
4872                         ;;
4873   *-pc-cygwin)
4874
4875 cat >>confdefs.h <<\_ACEOF
4876 #define IGNORE_TAR_ERRORS 1
4877 _ACEOF
4878
4879                         # Cygwin needs PATH to find cygwin1.dll
4880
4881 cat >>confdefs.h <<\_ACEOF
4882 #define NEED_PATH_ENV 1
4883 _ACEOF
4884
4885
4886 cat >>confdefs.h <<\_ACEOF
4887 #define IGNORE_UID_CHECK 1
4888 _ACEOF
4889
4890
4891 cat >>confdefs.h <<\_ACEOF
4892 #define IGNORE_FSTAB 1
4893 _ACEOF
4894
4895
4896 cat >>confdefs.h <<\_ACEOF
4897 #define DONT_SUID_ROOT 1
4898 _ACEOF
4899
4900                         NEED_SETUID_CLIENT=false
4901                         NEED_RUNTIME_PSEUDO_RELOC=true
4902                         ;;
4903   *)
4904                         cat <<END
4905
4906 *****
4907 This machine, target type $target, is not known
4908 to be fully supported by this configure script.  If the
4909 installation of Amanda on this system succeeds or needed
4910 any patches, please email amanda-hackers@amanda.org with
4911 the patches or an indication of the sucess or failure of
4912 the Amanda installation on your system.
4913 *****
4914
4915 END
4916                 ;;
4917 esac
4918
4919 if test -n "$dump_returns_1"; then
4920
4921 cat >>confdefs.h <<\_ACEOF
4922 #define DUMP_RETURNS_1 1
4923 _ACEOF
4924
4925 fi
4926
4927 if test -n "$xenix_tapeio"; then
4928
4929 cat >>confdefs.h <<\_ACEOF
4930 #define XENIX_TAPEIO 1
4931 _ACEOF
4932
4933 fi
4934
4935 AMANDA_CFLAGS="$AMANDA_CFLAGS $KRB4INCLUDES"
4936 AMANDA_CPPFLAGS="$AMANDA_CPPFLAGS $KRB4INCLUDES"
4937 AMANDA_LDFLAGS="$AMANDA_LDFLAGS $KRB4LDFLAGS"
4938 AMANDA_LIBS="$KRB4LIBS $AMANDA_LIBS"
4939 CFLAGS="$CFLAGS $AMANDA_CFLAGS"
4940 CPPFLAGS="$CPPFLAGS $AMANDA_CPPFLAGS"
4941 LDFLAGS="$LDFLAGS $AMANDA_LDFLAGS"
4942 LIBS="$AMANDA_LIBS $LIBS"
4943
4944
4945 : ${MT_FILE_FLAG="-f"}
4946
4947
4948 cat >>confdefs.h <<_ACEOF
4949 #define MT_FILE_FLAG "$MT_FILE_FLAG"
4950 _ACEOF
4951
4952
4953
4954 ac_ext=c
4955 ac_cpp='$CPP $CPPFLAGS'
4956 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4957 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4958 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4959 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4960 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4961 # On Suns, sometimes $CPP names a directory.
4962 if test -n "$CPP" && test -d "$CPP"; then
4963   CPP=
4964 fi
4965 if test -z "$CPP"; then
4966   if test "${ac_cv_prog_CPP+set}" = set; then
4967   echo $ECHO_N "(cached) $ECHO_C" >&6
4968 else
4969       # Double quotes because CPP needs to be expanded
4970     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4971     do
4972       ac_preproc_ok=false
4973 for ac_c_preproc_warn_flag in '' yes
4974 do
4975   # Use a header file that comes with gcc, so configuring glibc
4976   # with a fresh cross-compiler works.
4977   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4978   # <limits.h> exists even on freestanding compilers.
4979   # On the NeXT, cc -E runs the code through the compiler's parser,
4980   # not just through cpp. "Syntax error" is here to catch this case.
4981   cat >conftest.$ac_ext <<_ACEOF
4982 /* confdefs.h.  */
4983 _ACEOF
4984 cat confdefs.h >>conftest.$ac_ext
4985 cat >>conftest.$ac_ext <<_ACEOF
4986 /* end confdefs.h.  */
4987 #ifdef __STDC__
4988 # include <limits.h>
4989 #else
4990 # include <assert.h>
4991 #endif
4992                      Syntax error
4993 _ACEOF
4994 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4995   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4996   ac_status=$?
4997   grep -v '^ *+' conftest.er1 >conftest.err
4998   rm -f conftest.er1
4999   cat conftest.err >&5
5000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5001   (exit $ac_status); } >/dev/null; then
5002   if test -s conftest.err; then
5003     ac_cpp_err=$ac_c_preproc_warn_flag
5004     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5005   else
5006     ac_cpp_err=
5007   fi
5008 else
5009   ac_cpp_err=yes
5010 fi
5011 if test -z "$ac_cpp_err"; then
5012   :
5013 else
5014   echo "$as_me: failed program was:" >&5
5015 sed 's/^/| /' conftest.$ac_ext >&5
5016
5017   # Broken: fails on valid input.
5018 continue
5019 fi
5020 rm -f conftest.err conftest.$ac_ext
5021
5022   # OK, works on sane cases.  Now check whether non-existent headers
5023   # can be detected and how.
5024   cat >conftest.$ac_ext <<_ACEOF
5025 /* confdefs.h.  */
5026 _ACEOF
5027 cat confdefs.h >>conftest.$ac_ext
5028 cat >>conftest.$ac_ext <<_ACEOF
5029 /* end confdefs.h.  */
5030 #include <ac_nonexistent.h>
5031 _ACEOF
5032 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5033   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5034   ac_status=$?
5035   grep -v '^ *+' conftest.er1 >conftest.err
5036   rm -f conftest.er1
5037   cat conftest.err >&5
5038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5039   (exit $ac_status); } >/dev/null; then
5040   if test -s conftest.err; then
5041     ac_cpp_err=$ac_c_preproc_warn_flag
5042     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5043   else
5044     ac_cpp_err=
5045   fi
5046 else
5047   ac_cpp_err=yes
5048 fi
5049 if test -z "$ac_cpp_err"; then
5050   # Broken: success on invalid input.
5051 continue
5052 else
5053   echo "$as_me: failed program was:" >&5
5054 sed 's/^/| /' conftest.$ac_ext >&5
5055
5056   # Passes both tests.
5057 ac_preproc_ok=:
5058 break
5059 fi
5060 rm -f conftest.err conftest.$ac_ext
5061
5062 done
5063 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5064 rm -f conftest.err conftest.$ac_ext
5065 if $ac_preproc_ok; then
5066   break
5067 fi
5068
5069     done
5070     ac_cv_prog_CPP=$CPP
5071
5072 fi
5073   CPP=$ac_cv_prog_CPP
5074 else
5075   ac_cv_prog_CPP=$CPP
5076 fi
5077 echo "$as_me:$LINENO: result: $CPP" >&5
5078 echo "${ECHO_T}$CPP" >&6
5079 ac_preproc_ok=false
5080 for ac_c_preproc_warn_flag in '' yes
5081 do
5082   # Use a header file that comes with gcc, so configuring glibc
5083   # with a fresh cross-compiler works.
5084   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5085   # <limits.h> exists even on freestanding compilers.
5086   # On the NeXT, cc -E runs the code through the compiler's parser,
5087   # not just through cpp. "Syntax error" is here to catch this case.
5088   cat >conftest.$ac_ext <<_ACEOF
5089 /* confdefs.h.  */
5090 _ACEOF
5091 cat confdefs.h >>conftest.$ac_ext
5092 cat >>conftest.$ac_ext <<_ACEOF
5093 /* end confdefs.h.  */
5094 #ifdef __STDC__
5095 # include <limits.h>
5096 #else
5097 # include <assert.h>
5098 #endif
5099                      Syntax error
5100 _ACEOF
5101 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5102   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5103   ac_status=$?
5104   grep -v '^ *+' conftest.er1 >conftest.err
5105   rm -f conftest.er1
5106   cat conftest.err >&5
5107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5108   (exit $ac_status); } >/dev/null; then
5109   if test -s conftest.err; then
5110     ac_cpp_err=$ac_c_preproc_warn_flag
5111     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5112   else
5113     ac_cpp_err=
5114   fi
5115 else
5116   ac_cpp_err=yes
5117 fi
5118 if test -z "$ac_cpp_err"; then
5119   :
5120 else
5121   echo "$as_me: failed program was:" >&5
5122 sed 's/^/| /' conftest.$ac_ext >&5
5123
5124   # Broken: fails on valid input.
5125 continue
5126 fi
5127 rm -f conftest.err conftest.$ac_ext
5128
5129   # OK, works on sane cases.  Now check whether non-existent headers
5130   # can be detected and how.
5131   cat >conftest.$ac_ext <<_ACEOF
5132 /* confdefs.h.  */
5133 _ACEOF
5134 cat confdefs.h >>conftest.$ac_ext
5135 cat >>conftest.$ac_ext <<_ACEOF
5136 /* end confdefs.h.  */
5137 #include <ac_nonexistent.h>
5138 _ACEOF
5139 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5140   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5141   ac_status=$?
5142   grep -v '^ *+' conftest.er1 >conftest.err
5143   rm -f conftest.er1
5144   cat conftest.err >&5
5145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5146   (exit $ac_status); } >/dev/null; then
5147   if test -s conftest.err; then
5148     ac_cpp_err=$ac_c_preproc_warn_flag
5149     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5150   else
5151     ac_cpp_err=
5152   fi
5153 else
5154   ac_cpp_err=yes
5155 fi
5156 if test -z "$ac_cpp_err"; then
5157   # Broken: success on invalid input.
5158 continue
5159 else
5160   echo "$as_me: failed program was:" >&5
5161 sed 's/^/| /' conftest.$ac_ext >&5
5162
5163   # Passes both tests.
5164 ac_preproc_ok=:
5165 break
5166 fi
5167 rm -f conftest.err conftest.$ac_ext
5168
5169 done
5170 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5171 rm -f conftest.err conftest.$ac_ext
5172 if $ac_preproc_ok; then
5173   :
5174 else
5175   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5176 See \`config.log' for more details." >&5
5177 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5178 See \`config.log' for more details." >&2;}
5179    { (exit 1); exit 1; }; }
5180 fi
5181
5182 ac_ext=c
5183 ac_cpp='$CPP $CPPFLAGS'
5184 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5185 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5186 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5187
5188
5189 echo "$as_me:$LINENO: checking for egrep" >&5
5190 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5191 if test "${ac_cv_prog_egrep+set}" = set; then
5192   echo $ECHO_N "(cached) $ECHO_C" >&6
5193 else
5194   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5195     then ac_cv_prog_egrep='grep -E'
5196     else ac_cv_prog_egrep='egrep'
5197     fi
5198 fi
5199 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5200 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5201  EGREP=$ac_cv_prog_egrep
5202
5203
5204 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5205 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5206 if test "${ac_cv_header_stdc+set}" = set; then
5207   echo $ECHO_N "(cached) $ECHO_C" >&6
5208 else
5209   cat >conftest.$ac_ext <<_ACEOF
5210 /* confdefs.h.  */
5211 _ACEOF
5212 cat confdefs.h >>conftest.$ac_ext
5213 cat >>conftest.$ac_ext <<_ACEOF
5214 /* end confdefs.h.  */
5215 #include <stdlib.h>
5216 #include <stdarg.h>
5217 #include <string.h>
5218 #include <float.h>
5219
5220 int
5221 main ()
5222 {
5223
5224   ;
5225   return 0;
5226 }
5227 _ACEOF
5228 rm -f conftest.$ac_objext
5229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5230   (eval $ac_compile) 2>conftest.er1
5231   ac_status=$?
5232   grep -v '^ *+' conftest.er1 >conftest.err
5233   rm -f conftest.er1
5234   cat conftest.err >&5
5235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5236   (exit $ac_status); } &&
5237          { ac_try='test -z "$ac_c_werror_flag"
5238                          || test ! -s conftest.err'
5239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5240   (eval $ac_try) 2>&5
5241   ac_status=$?
5242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5243   (exit $ac_status); }; } &&
5244          { ac_try='test -s conftest.$ac_objext'
5245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5246   (eval $ac_try) 2>&5
5247   ac_status=$?
5248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5249   (exit $ac_status); }; }; then
5250   ac_cv_header_stdc=yes
5251 else
5252   echo "$as_me: failed program was:" >&5
5253 sed 's/^/| /' conftest.$ac_ext >&5
5254
5255 ac_cv_header_stdc=no
5256 fi
5257 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5258
5259 if test $ac_cv_header_stdc = yes; then
5260   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5261   cat >conftest.$ac_ext <<_ACEOF
5262 /* confdefs.h.  */
5263 _ACEOF
5264 cat confdefs.h >>conftest.$ac_ext
5265 cat >>conftest.$ac_ext <<_ACEOF
5266 /* end confdefs.h.  */
5267 #include <string.h>
5268
5269 _ACEOF
5270 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5271   $EGREP "memchr" >/dev/null 2>&1; then
5272   :
5273 else
5274   ac_cv_header_stdc=no
5275 fi
5276 rm -f conftest*
5277
5278 fi
5279
5280 if test $ac_cv_header_stdc = yes; then
5281   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5282   cat >conftest.$ac_ext <<_ACEOF
5283 /* confdefs.h.  */
5284 _ACEOF
5285 cat confdefs.h >>conftest.$ac_ext
5286 cat >>conftest.$ac_ext <<_ACEOF
5287 /* end confdefs.h.  */
5288 #include <stdlib.h>
5289
5290 _ACEOF
5291 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5292   $EGREP "free" >/dev/null 2>&1; then
5293   :
5294 else
5295   ac_cv_header_stdc=no
5296 fi
5297 rm -f conftest*
5298
5299 fi
5300
5301 if test $ac_cv_header_stdc = yes; then
5302   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5303   if test "$cross_compiling" = yes; then
5304   :
5305 else
5306   cat >conftest.$ac_ext <<_ACEOF
5307 /* confdefs.h.  */
5308 _ACEOF
5309 cat confdefs.h >>conftest.$ac_ext
5310 cat >>conftest.$ac_ext <<_ACEOF
5311 /* end confdefs.h.  */
5312 #include <ctype.h>
5313 #if ((' ' & 0x0FF) == 0x020)
5314 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5315 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5316 #else
5317 # define ISLOWER(c) \
5318                    (('a' <= (c) && (c) <= 'i') \
5319                      || ('j' <= (c) && (c) <= 'r') \
5320                      || ('s' <= (c) && (c) <= 'z'))
5321 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5322 #endif
5323
5324 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5325 int
5326 main ()
5327 {
5328   int i;
5329   for (i = 0; i < 256; i++)
5330     if (XOR (islower (i), ISLOWER (i))
5331         || toupper (i) != TOUPPER (i))
5332       exit(2);
5333   exit (0);
5334 }
5335 _ACEOF
5336 rm -f conftest$ac_exeext
5337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5338   (eval $ac_link) 2>&5
5339   ac_status=$?
5340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5341   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5343   (eval $ac_try) 2>&5
5344   ac_status=$?
5345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5346   (exit $ac_status); }; }; then
5347   :
5348 else
5349   echo "$as_me: program exited with status $ac_status" >&5
5350 echo "$as_me: failed program was:" >&5
5351 sed 's/^/| /' conftest.$ac_ext >&5
5352
5353 ( exit $ac_status )
5354 ac_cv_header_stdc=no
5355 fi
5356 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5357 fi
5358 fi
5359 fi
5360 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5361 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5362 if test $ac_cv_header_stdc = yes; then
5363
5364 cat >>confdefs.h <<\_ACEOF
5365 #define STDC_HEADERS 1
5366 _ACEOF
5367
5368 fi
5369
5370 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5381                   inttypes.h stdint.h unistd.h
5382 do
5383 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5384 echo "$as_me:$LINENO: checking for $ac_header" >&5
5385 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5386 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5387   echo $ECHO_N "(cached) $ECHO_C" >&6
5388 else
5389   cat >conftest.$ac_ext <<_ACEOF
5390 /* confdefs.h.  */
5391 _ACEOF
5392 cat confdefs.h >>conftest.$ac_ext
5393 cat >>conftest.$ac_ext <<_ACEOF
5394 /* end confdefs.h.  */
5395 $ac_includes_default
5396
5397 #include <$ac_header>
5398 _ACEOF
5399 rm -f conftest.$ac_objext
5400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5401   (eval $ac_compile) 2>conftest.er1
5402   ac_status=$?
5403   grep -v '^ *+' conftest.er1 >conftest.err
5404   rm -f conftest.er1
5405   cat conftest.err >&5
5406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5407   (exit $ac_status); } &&
5408          { ac_try='test -z "$ac_c_werror_flag"
5409                          || test ! -s conftest.err'
5410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5411   (eval $ac_try) 2>&5
5412   ac_status=$?
5413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5414   (exit $ac_status); }; } &&
5415          { ac_try='test -s conftest.$ac_objext'
5416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5417   (eval $ac_try) 2>&5
5418   ac_status=$?
5419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5420   (exit $ac_status); }; }; then
5421   eval "$as_ac_Header=yes"
5422 else
5423   echo "$as_me: failed program was:" >&5
5424 sed 's/^/| /' conftest.$ac_ext >&5
5425
5426 eval "$as_ac_Header=no"
5427 fi
5428 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5429 fi
5430 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5431 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5432 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5433   cat >>confdefs.h <<_ACEOF
5434 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5435 _ACEOF
5436
5437 fi
5438
5439 done
5440
5441
5442 # ------ AX CREATE STDINT H -------------------------------------
5443 echo "$as_me:$LINENO: checking for stdint types" >&5
5444 echo $ECHO_N "checking for stdint types... $ECHO_C" >&6
5445 ac_stdint_h=`echo common-src/amanda-int.h`
5446 # try to shortcircuit - if the default include path of the compiler
5447 # can find a "stdint.h" header then we assume that all compilers can.
5448 if test "${ac_cv_header_stdint_t+set}" = set; then
5449   echo $ECHO_N "(cached) $ECHO_C" >&6
5450 else
5451
5452 old_CXXFLAGS="$CXXFLAGS" ; CXXFLAGS=""
5453 old_CPPFLAGS="$CPPFLAGS" ; CPPFLAGS=""
5454 old_CFLAGS="$CFLAGS"     ; CFLAGS=""
5455 cat >conftest.$ac_ext <<_ACEOF
5456 /* confdefs.h.  */
5457 _ACEOF
5458 cat confdefs.h >>conftest.$ac_ext
5459 cat >>conftest.$ac_ext <<_ACEOF
5460 /* end confdefs.h.  */
5461 #include <stdint.h>
5462 int
5463 main ()
5464 {
5465 int_least32_t v = 0;
5466   ;
5467   return 0;
5468 }
5469 _ACEOF
5470 rm -f conftest.$ac_objext
5471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5472   (eval $ac_compile) 2>conftest.er1
5473   ac_status=$?
5474   grep -v '^ *+' conftest.er1 >conftest.err
5475   rm -f conftest.er1
5476   cat conftest.err >&5
5477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5478   (exit $ac_status); } &&
5479          { ac_try='test -z "$ac_c_werror_flag"
5480                          || test ! -s conftest.err'
5481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5482   (eval $ac_try) 2>&5
5483   ac_status=$?
5484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5485   (exit $ac_status); }; } &&
5486          { ac_try='test -s conftest.$ac_objext'
5487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5488   (eval $ac_try) 2>&5
5489   ac_status=$?
5490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5491   (exit $ac_status); }; }; then
5492   ac_cv_stdint_result="(assuming C99 compatible system)"
5493  ac_cv_header_stdint_t="stdint.h";
5494 else
5495   echo "$as_me: failed program was:" >&5
5496 sed 's/^/| /' conftest.$ac_ext >&5
5497
5498 ac_cv_header_stdint_t=""
5499 fi
5500 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5501 CXXFLAGS="$old_CXXFLAGS"
5502 CPPFLAGS="$old_CPPFLAGS"
5503 CFLAGS="$old_CFLAGS"
5504 fi
5505
5506
5507 v="... $ac_cv_header_stdint_h"
5508 if test "$ac_stdint_h" = "stdint.h" ; then
5509  echo "$as_me:$LINENO: result: (are you sure you want them in ./stdint.h?)" >&5
5510 echo "${ECHO_T}(are you sure you want them in ./stdint.h?)" >&6
5511 elif test "$ac_stdint_h" = "inttypes.h" ; then
5512  echo "$as_me:$LINENO: result: (are you sure you want them in ./inttypes.h?)" >&5
5513 echo "${ECHO_T}(are you sure you want them in ./inttypes.h?)" >&6
5514 elif test "_$ac_cv_header_stdint_t" = "_" ; then
5515  echo "$as_me:$LINENO: result: (putting them into $ac_stdint_h)$v" >&5
5516 echo "${ECHO_T}(putting them into $ac_stdint_h)$v" >&6
5517 else
5518  ac_cv_header_stdint="$ac_cv_header_stdint_t"
5519  echo "$as_me:$LINENO: result: $ac_cv_header_stdint (shortcircuit)" >&5
5520 echo "${ECHO_T}$ac_cv_header_stdint (shortcircuit)" >&6
5521 fi
5522
5523 if test "_$ac_cv_header_stdint_t" = "_" ; then # can not shortcircuit..
5524
5525
5526 inttype_headers=`echo  | sed -e 's/,/ /g'`
5527
5528 ac_cv_stdint_result="(no helpful system typedefs seen)"
5529 echo "$as_me:$LINENO: checking for stdint uintptr_t" >&5
5530 echo $ECHO_N "checking for stdint uintptr_t... $ECHO_C" >&6
5531 if test "${ac_cv_header_stdint_x+set}" = set; then
5532   echo $ECHO_N "(cached) $ECHO_C" >&6
5533 else
5534
5535  ac_cv_header_stdint_x="" # the 1997 typedefs (inttypes.h)
5536   echo "$as_me:$LINENO: result: (..)" >&5
5537 echo "${ECHO_T}(..)" >&6
5538   for i in stdint.h inttypes.h sys/inttypes.h $inttype_headers ; do
5539    unset ac_cv_type_uintptr_t
5540    unset ac_cv_type_uint64_t
5541    echo "$as_me:$LINENO: checking for uintptr_t" >&5
5542 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
5543 if test "${ac_cv_type_uintptr_t+set}" = set; then
5544   echo $ECHO_N "(cached) $ECHO_C" >&6
5545 else
5546   cat >conftest.$ac_ext <<_ACEOF
5547 /* confdefs.h.  */
5548 _ACEOF
5549 cat confdefs.h >>conftest.$ac_ext
5550 cat >>conftest.$ac_ext <<_ACEOF
5551 /* end confdefs.h.  */
5552 #include <$i>
5553
5554 int
5555 main ()
5556 {
5557 if ((uintptr_t *) 0)
5558   return 0;
5559 if (sizeof (uintptr_t))
5560   return 0;
5561   ;
5562   return 0;
5563 }
5564 _ACEOF
5565 rm -f conftest.$ac_objext
5566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5567   (eval $ac_compile) 2>conftest.er1
5568   ac_status=$?
5569   grep -v '^ *+' conftest.er1 >conftest.err
5570   rm -f conftest.er1
5571   cat conftest.err >&5
5572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5573   (exit $ac_status); } &&
5574          { ac_try='test -z "$ac_c_werror_flag"
5575                          || test ! -s conftest.err'
5576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5577   (eval $ac_try) 2>&5
5578   ac_status=$?
5579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5580   (exit $ac_status); }; } &&
5581          { ac_try='test -s conftest.$ac_objext'
5582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5583   (eval $ac_try) 2>&5
5584   ac_status=$?
5585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5586   (exit $ac_status); }; }; then
5587   ac_cv_type_uintptr_t=yes
5588 else
5589   echo "$as_me: failed program was:" >&5
5590 sed 's/^/| /' conftest.$ac_ext >&5
5591
5592 ac_cv_type_uintptr_t=no
5593 fi
5594 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5595 fi
5596 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
5597 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
5598 if test $ac_cv_type_uintptr_t = yes; then
5599   ac_cv_header_stdint_x=$i
5600 else
5601        continue
5602 fi
5603
5604    echo "$as_me:$LINENO: checking for uint64_t" >&5
5605 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
5606 if test "${ac_cv_type_uint64_t+set}" = set; then
5607   echo $ECHO_N "(cached) $ECHO_C" >&6
5608 else
5609   cat >conftest.$ac_ext <<_ACEOF
5610 /* confdefs.h.  */
5611 _ACEOF
5612 cat confdefs.h >>conftest.$ac_ext
5613 cat >>conftest.$ac_ext <<_ACEOF
5614 /* end confdefs.h.  */
5615 #include<$i>
5616
5617 int
5618 main ()
5619 {
5620 if ((uint64_t *) 0)
5621   return 0;
5622 if (sizeof (uint64_t))
5623   return 0;
5624   ;
5625   return 0;
5626 }
5627 _ACEOF
5628 rm -f conftest.$ac_objext
5629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5630   (eval $ac_compile) 2>conftest.er1
5631   ac_status=$?
5632   grep -v '^ *+' conftest.er1 >conftest.err
5633   rm -f conftest.er1
5634   cat conftest.err >&5
5635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5636   (exit $ac_status); } &&
5637          { ac_try='test -z "$ac_c_werror_flag"
5638                          || test ! -s conftest.err'
5639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5640   (eval $ac_try) 2>&5
5641   ac_status=$?
5642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5643   (exit $ac_status); }; } &&
5644          { ac_try='test -s conftest.$ac_objext'
5645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5646   (eval $ac_try) 2>&5
5647   ac_status=$?
5648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5649   (exit $ac_status); }; }; then
5650   ac_cv_type_uint64_t=yes
5651 else
5652   echo "$as_me: failed program was:" >&5
5653 sed 's/^/| /' conftest.$ac_ext >&5
5654
5655 ac_cv_type_uint64_t=no
5656 fi
5657 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5658 fi
5659 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
5660 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
5661 if test $ac_cv_type_uint64_t = yes; then
5662   and64="/uint64_t"
5663 else
5664   and64=""
5665 fi
5666
5667    ac_cv_stdint_result="(seen uintptr_t$and64 in $i)"
5668    break;
5669   done
5670   echo "$as_me:$LINENO: checking for stdint uintptr_t" >&5
5671 echo $ECHO_N "checking for stdint uintptr_t... $ECHO_C" >&6
5672
5673 fi
5674 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_x" >&5
5675 echo "${ECHO_T}$ac_cv_header_stdint_x" >&6
5676
5677 if test "_$ac_cv_header_stdint_x" = "_" ; then
5678 echo "$as_me:$LINENO: checking for stdint uint32_t" >&5
5679 echo $ECHO_N "checking for stdint uint32_t... $ECHO_C" >&6
5680 if test "${ac_cv_header_stdint_o+set}" = set; then
5681   echo $ECHO_N "(cached) $ECHO_C" >&6
5682 else
5683
5684  ac_cv_header_stdint_o="" # the 1995 typedefs (sys/inttypes.h)
5685   echo "$as_me:$LINENO: result: (..)" >&5
5686 echo "${ECHO_T}(..)" >&6
5687   for i in inttypes.h sys/inttypes.h stdint.h $inttype_headers ; do
5688    unset ac_cv_type_uint32_t
5689    unset ac_cv_type_uint64_t
5690    echo "$as_me:$LINENO: checking for uint32_t" >&5
5691 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
5692 if test "${ac_cv_type_uint32_t+set}" = set; then
5693   echo $ECHO_N "(cached) $ECHO_C" >&6
5694 else
5695   cat >conftest.$ac_ext <<_ACEOF
5696 /* confdefs.h.  */
5697 _ACEOF
5698 cat confdefs.h >>conftest.$ac_ext
5699 cat >>conftest.$ac_ext <<_ACEOF
5700 /* end confdefs.h.  */
5701 #include <$i>
5702
5703 int
5704 main ()
5705 {
5706 if ((uint32_t *) 0)
5707   return 0;
5708 if (sizeof (uint32_t))
5709   return 0;
5710   ;
5711   return 0;
5712 }
5713 _ACEOF
5714 rm -f conftest.$ac_objext
5715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5716   (eval $ac_compile) 2>conftest.er1
5717   ac_status=$?
5718   grep -v '^ *+' conftest.er1 >conftest.err
5719   rm -f conftest.er1
5720   cat conftest.err >&5
5721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5722   (exit $ac_status); } &&
5723          { ac_try='test -z "$ac_c_werror_flag"
5724                          || test ! -s conftest.err'
5725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5726   (eval $ac_try) 2>&5
5727   ac_status=$?
5728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5729   (exit $ac_status); }; } &&
5730          { ac_try='test -s conftest.$ac_objext'
5731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5732   (eval $ac_try) 2>&5
5733   ac_status=$?
5734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5735   (exit $ac_status); }; }; then
5736   ac_cv_type_uint32_t=yes
5737 else
5738   echo "$as_me: failed program was:" >&5
5739 sed 's/^/| /' conftest.$ac_ext >&5
5740
5741 ac_cv_type_uint32_t=no
5742 fi
5743 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5744 fi
5745 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
5746 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
5747 if test $ac_cv_type_uint32_t = yes; then
5748   ac_cv_header_stdint_o=$i
5749 else
5750        continue
5751 fi
5752
5753    echo "$as_me:$LINENO: checking for uint64_t" >&5
5754 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
5755 if test "${ac_cv_type_uint64_t+set}" = set; then
5756   echo $ECHO_N "(cached) $ECHO_C" >&6
5757 else
5758   cat >conftest.$ac_ext <<_ACEOF
5759 /* confdefs.h.  */
5760 _ACEOF
5761 cat confdefs.h >>conftest.$ac_ext
5762 cat >>conftest.$ac_ext <<_ACEOF
5763 /* end confdefs.h.  */
5764 #include<$i>
5765
5766 int
5767 main ()
5768 {
5769 if ((uint64_t *) 0)
5770   return 0;
5771 if (sizeof (uint64_t))
5772   return 0;
5773   ;
5774   return 0;
5775 }
5776 _ACEOF
5777 rm -f conftest.$ac_objext
5778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5779   (eval $ac_compile) 2>conftest.er1
5780   ac_status=$?
5781   grep -v '^ *+' conftest.er1 >conftest.err
5782   rm -f conftest.er1
5783   cat conftest.err >&5
5784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5785   (exit $ac_status); } &&
5786          { ac_try='test -z "$ac_c_werror_flag"
5787                          || test ! -s conftest.err'
5788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5789   (eval $ac_try) 2>&5
5790   ac_status=$?
5791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5792   (exit $ac_status); }; } &&
5793          { ac_try='test -s conftest.$ac_objext'
5794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5795   (eval $ac_try) 2>&5
5796   ac_status=$?
5797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5798   (exit $ac_status); }; }; then
5799   ac_cv_type_uint64_t=yes
5800 else
5801   echo "$as_me: failed program was:" >&5
5802 sed 's/^/| /' conftest.$ac_ext >&5
5803
5804 ac_cv_type_uint64_t=no
5805 fi
5806 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5807 fi
5808 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
5809 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
5810 if test $ac_cv_type_uint64_t = yes; then
5811   and64="/uint64_t"
5812 else
5813   and64=""
5814 fi
5815
5816    ac_cv_stdint_result="(seen uint32_t$and64 in $i)"
5817    break;
5818   done
5819   echo "$as_me:$LINENO: checking for stdint uint32_t" >&5
5820 echo $ECHO_N "checking for stdint uint32_t... $ECHO_C" >&6
5821
5822 fi
5823 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_o" >&5
5824 echo "${ECHO_T}$ac_cv_header_stdint_o" >&6
5825 fi
5826
5827 if test "_$ac_cv_header_stdint_x" = "_" ; then
5828 if test "_$ac_cv_header_stdint_o" = "_" ; then
5829 echo "$as_me:$LINENO: checking for stdint u_int32_t" >&5
5830 echo $ECHO_N "checking for stdint u_int32_t... $ECHO_C" >&6
5831 if test "${ac_cv_header_stdint_u+set}" = set; then
5832   echo $ECHO_N "(cached) $ECHO_C" >&6
5833 else
5834
5835  ac_cv_header_stdint_u="" # the BSD typedefs (sys/types.h)
5836   echo "$as_me:$LINENO: result: (..)" >&5
5837 echo "${ECHO_T}(..)" >&6
5838   for i in sys/types.h inttypes.h sys/inttypes.h $inttype_headers ; do
5839    unset ac_cv_type_u_int32_t
5840    unset ac_cv_type_u_int64_t
5841    echo "$as_me:$LINENO: checking for u_int32_t" >&5
5842 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
5843 if test "${ac_cv_type_u_int32_t+set}" = set; then
5844   echo $ECHO_N "(cached) $ECHO_C" >&6
5845 else
5846   cat >conftest.$ac_ext <<_ACEOF
5847 /* confdefs.h.  */
5848 _ACEOF
5849 cat confdefs.h >>conftest.$ac_ext
5850 cat >>conftest.$ac_ext <<_ACEOF
5851 /* end confdefs.h.  */
5852 #include <$i>
5853
5854 int
5855 main ()
5856 {
5857 if ((u_int32_t *) 0)
5858   return 0;
5859 if (sizeof (u_int32_t))
5860   return 0;
5861   ;
5862   return 0;
5863 }
5864 _ACEOF
5865 rm -f conftest.$ac_objext
5866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5867   (eval $ac_compile) 2>conftest.er1
5868   ac_status=$?
5869   grep -v '^ *+' conftest.er1 >conftest.err
5870   rm -f conftest.er1
5871   cat conftest.err >&5
5872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5873   (exit $ac_status); } &&
5874          { ac_try='test -z "$ac_c_werror_flag"
5875                          || test ! -s conftest.err'
5876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5877   (eval $ac_try) 2>&5
5878   ac_status=$?
5879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5880   (exit $ac_status); }; } &&
5881          { ac_try='test -s conftest.$ac_objext'
5882   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5883   (eval $ac_try) 2>&5
5884   ac_status=$?
5885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5886   (exit $ac_status); }; }; then
5887   ac_cv_type_u_int32_t=yes
5888 else
5889   echo "$as_me: failed program was:" >&5
5890 sed 's/^/| /' conftest.$ac_ext >&5
5891
5892 ac_cv_type_u_int32_t=no
5893 fi
5894 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5895 fi
5896 echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
5897 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
5898 if test $ac_cv_type_u_int32_t = yes; then
5899   ac_cv_header_stdint_u=$i
5900 else
5901        continue
5902 fi
5903
5904    echo "$as_me:$LINENO: checking for u_int64_t" >&5
5905 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
5906 if test "${ac_cv_type_u_int64_t+set}" = set; then
5907   echo $ECHO_N "(cached) $ECHO_C" >&6
5908 else
5909   cat >conftest.$ac_ext <<_ACEOF
5910 /* confdefs.h.  */
5911 _ACEOF
5912 cat confdefs.h >>conftest.$ac_ext
5913 cat >>conftest.$ac_ext <<_ACEOF
5914 /* end confdefs.h.  */
5915 #include<$i>
5916
5917 int
5918 main ()
5919 {
5920 if ((u_int64_t *) 0)
5921   return 0;
5922 if (sizeof (u_int64_t))
5923   return 0;
5924   ;
5925   return 0;
5926 }
5927 _ACEOF
5928 rm -f conftest.$ac_objext
5929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5930   (eval $ac_compile) 2>conftest.er1
5931   ac_status=$?
5932   grep -v '^ *+' conftest.er1 >conftest.err
5933   rm -f conftest.er1
5934   cat conftest.err >&5
5935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5936   (exit $ac_status); } &&
5937          { ac_try='test -z "$ac_c_werror_flag"
5938                          || test ! -s conftest.err'
5939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5940   (eval $ac_try) 2>&5
5941   ac_status=$?
5942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5943   (exit $ac_status); }; } &&
5944          { ac_try='test -s conftest.$ac_objext'
5945   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5946   (eval $ac_try) 2>&5
5947   ac_status=$?
5948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5949   (exit $ac_status); }; }; then
5950   ac_cv_type_u_int64_t=yes
5951 else
5952   echo "$as_me: failed program was:" >&5
5953 sed 's/^/| /' conftest.$ac_ext >&5
5954
5955 ac_cv_type_u_int64_t=no
5956 fi
5957 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5958 fi
5959 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
5960 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
5961 if test $ac_cv_type_u_int64_t = yes; then
5962   and64="/u_int64_t"
5963 else
5964   and64=""
5965 fi
5966
5967    ac_cv_stdint_result="(seen u_int32_t$and64 in $i)"
5968    break;
5969   done
5970   echo "$as_me:$LINENO: checking for stdint u_int32_t" >&5
5971 echo $ECHO_N "checking for stdint u_int32_t... $ECHO_C" >&6
5972
5973 fi
5974 echo "$as_me:$LINENO: result: $ac_cv_header_stdint_u" >&5
5975 echo "${ECHO_T}$ac_cv_header_stdint_u" >&6
5976 fi fi
5977
5978 if test "_$ac_cv_header_stdint_x" = "_" ; then
5979    echo "$as_me:$LINENO: checking for stdint datatype model" >&5
5980 echo $ECHO_N "checking for stdint datatype model... $ECHO_C" >&6
5981    echo "$as_me:$LINENO: result: (..)" >&5
5982 echo "${ECHO_T}(..)" >&6
5983    echo "$as_me:$LINENO: checking for char" >&5
5984 echo $ECHO_N "checking for char... $ECHO_C" >&6
5985 if test "${ac_cv_type_char+set}" = set; then
5986   echo $ECHO_N "(cached) $ECHO_C" >&6
5987 else
5988   cat >conftest.$ac_ext <<_ACEOF
5989 /* confdefs.h.  */
5990 _ACEOF
5991 cat confdefs.h >>conftest.$ac_ext
5992 cat >>conftest.$ac_ext <<_ACEOF
5993 /* end confdefs.h.  */
5994 $ac_includes_default
5995 int
5996 main ()
5997 {
5998 if ((char *) 0)
5999   return 0;
6000 if (sizeof (char))
6001   return 0;
6002   ;
6003   return 0;
6004 }
6005 _ACEOF
6006 rm -f conftest.$ac_objext
6007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6008   (eval $ac_compile) 2>conftest.er1
6009   ac_status=$?
6010   grep -v '^ *+' conftest.er1 >conftest.err
6011   rm -f conftest.er1
6012   cat conftest.err >&5
6013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6014   (exit $ac_status); } &&
6015          { ac_try='test -z "$ac_c_werror_flag"
6016                          || test ! -s conftest.err'
6017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6018   (eval $ac_try) 2>&5
6019   ac_status=$?
6020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021   (exit $ac_status); }; } &&
6022          { ac_try='test -s conftest.$ac_objext'
6023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6024   (eval $ac_try) 2>&5
6025   ac_status=$?
6026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6027   (exit $ac_status); }; }; then
6028   ac_cv_type_char=yes
6029 else
6030   echo "$as_me: failed program was:" >&5
6031 sed 's/^/| /' conftest.$ac_ext >&5
6032
6033 ac_cv_type_char=no
6034 fi
6035 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6036 fi
6037 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
6038 echo "${ECHO_T}$ac_cv_type_char" >&6
6039
6040 echo "$as_me:$LINENO: checking size of char" >&5
6041 echo $ECHO_N "checking size of char... $ECHO_C" >&6
6042 if test "${ac_cv_sizeof_char+set}" = set; then
6043   echo $ECHO_N "(cached) $ECHO_C" >&6
6044 else
6045   if test "$ac_cv_type_char" = yes; then
6046   # The cast to unsigned long works around a bug in the HP C Compiler
6047   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6048   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6049   # This bug is HP SR number 8606223364.
6050   if test "$cross_compiling" = yes; then
6051   # Depending upon the size, compute the lo and hi bounds.
6052 cat >conftest.$ac_ext <<_ACEOF
6053 /* confdefs.h.  */
6054 _ACEOF
6055 cat confdefs.h >>conftest.$ac_ext
6056 cat >>conftest.$ac_ext <<_ACEOF
6057 /* end confdefs.h.  */
6058 $ac_includes_default
6059 int
6060 main ()
6061 {
6062 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
6063 test_array [0] = 0
6064
6065   ;
6066   return 0;
6067 }
6068 _ACEOF
6069 rm -f conftest.$ac_objext
6070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6071   (eval $ac_compile) 2>conftest.er1
6072   ac_status=$?
6073   grep -v '^ *+' conftest.er1 >conftest.err
6074   rm -f conftest.er1
6075   cat conftest.err >&5
6076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6077   (exit $ac_status); } &&
6078          { ac_try='test -z "$ac_c_werror_flag"
6079                          || test ! -s conftest.err'
6080   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6081   (eval $ac_try) 2>&5
6082   ac_status=$?
6083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6084   (exit $ac_status); }; } &&
6085          { ac_try='test -s conftest.$ac_objext'
6086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6087   (eval $ac_try) 2>&5
6088   ac_status=$?
6089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6090   (exit $ac_status); }; }; then
6091   ac_lo=0 ac_mid=0
6092   while :; do
6093     cat >conftest.$ac_ext <<_ACEOF
6094 /* confdefs.h.  */
6095 _ACEOF
6096 cat confdefs.h >>conftest.$ac_ext
6097 cat >>conftest.$ac_ext <<_ACEOF
6098 /* end confdefs.h.  */
6099 $ac_includes_default
6100 int
6101 main ()
6102 {
6103 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
6104 test_array [0] = 0
6105
6106   ;
6107   return 0;
6108 }
6109 _ACEOF
6110 rm -f conftest.$ac_objext
6111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6112   (eval $ac_compile) 2>conftest.er1
6113   ac_status=$?
6114   grep -v '^ *+' conftest.er1 >conftest.err
6115   rm -f conftest.er1
6116   cat conftest.err >&5
6117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6118   (exit $ac_status); } &&
6119          { ac_try='test -z "$ac_c_werror_flag"
6120                          || test ! -s conftest.err'
6121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6122   (eval $ac_try) 2>&5
6123   ac_status=$?
6124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6125   (exit $ac_status); }; } &&
6126          { ac_try='test -s conftest.$ac_objext'
6127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6128   (eval $ac_try) 2>&5
6129   ac_status=$?
6130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6131   (exit $ac_status); }; }; then
6132   ac_hi=$ac_mid; break
6133 else
6134   echo "$as_me: failed program was:" >&5
6135 sed 's/^/| /' conftest.$ac_ext >&5
6136
6137 ac_lo=`expr $ac_mid + 1`
6138                     if test $ac_lo -le $ac_mid; then
6139                       ac_lo= ac_hi=
6140                       break
6141                     fi
6142                     ac_mid=`expr 2 '*' $ac_mid + 1`
6143 fi
6144 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6145   done
6146 else
6147   echo "$as_me: failed program was:" >&5
6148 sed 's/^/| /' conftest.$ac_ext >&5
6149
6150 cat >conftest.$ac_ext <<_ACEOF
6151 /* confdefs.h.  */
6152 _ACEOF
6153 cat confdefs.h >>conftest.$ac_ext
6154 cat >>conftest.$ac_ext <<_ACEOF
6155 /* end confdefs.h.  */
6156 $ac_includes_default
6157 int
6158 main ()
6159 {
6160 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
6161 test_array [0] = 0
6162
6163   ;
6164   return 0;
6165 }
6166 _ACEOF
6167 rm -f conftest.$ac_objext
6168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6169   (eval $ac_compile) 2>conftest.er1
6170   ac_status=$?
6171   grep -v '^ *+' conftest.er1 >conftest.err
6172   rm -f conftest.er1
6173   cat conftest.err >&5
6174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6175   (exit $ac_status); } &&
6176          { ac_try='test -z "$ac_c_werror_flag"
6177                          || test ! -s conftest.err'
6178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6179   (eval $ac_try) 2>&5
6180   ac_status=$?
6181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6182   (exit $ac_status); }; } &&
6183          { ac_try='test -s conftest.$ac_objext'
6184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6185   (eval $ac_try) 2>&5
6186   ac_status=$?
6187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6188   (exit $ac_status); }; }; then
6189   ac_hi=-1 ac_mid=-1
6190   while :; do
6191     cat >conftest.$ac_ext <<_ACEOF
6192 /* confdefs.h.  */
6193 _ACEOF
6194 cat confdefs.h >>conftest.$ac_ext
6195 cat >>conftest.$ac_ext <<_ACEOF
6196 /* end confdefs.h.  */
6197 $ac_includes_default
6198 int
6199 main ()
6200 {
6201 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
6202 test_array [0] = 0
6203
6204   ;
6205   return 0;
6206 }
6207 _ACEOF
6208 rm -f conftest.$ac_objext
6209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6210   (eval $ac_compile) 2>conftest.er1
6211   ac_status=$?
6212   grep -v '^ *+' conftest.er1 >conftest.err
6213   rm -f conftest.er1
6214   cat conftest.err >&5
6215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6216   (exit $ac_status); } &&
6217          { ac_try='test -z "$ac_c_werror_flag"
6218                          || test ! -s conftest.err'
6219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6220   (eval $ac_try) 2>&5
6221   ac_status=$?
6222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6223   (exit $ac_status); }; } &&
6224          { ac_try='test -s conftest.$ac_objext'
6225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6226   (eval $ac_try) 2>&5
6227   ac_status=$?
6228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6229   (exit $ac_status); }; }; then
6230   ac_lo=$ac_mid; break
6231 else
6232   echo "$as_me: failed program was:" >&5
6233 sed 's/^/| /' conftest.$ac_ext >&5
6234
6235 ac_hi=`expr '(' $ac_mid ')' - 1`
6236                        if test $ac_mid -le $ac_hi; then
6237                          ac_lo= ac_hi=
6238                          break
6239                        fi
6240                        ac_mid=`expr 2 '*' $ac_mid`
6241 fi
6242 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6243   done
6244 else
6245   echo "$as_me: failed program was:" >&5
6246 sed 's/^/| /' conftest.$ac_ext >&5
6247
6248 ac_lo= ac_hi=
6249 fi
6250 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6251 fi
6252 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6253 # Binary search between lo and hi bounds.
6254 while test "x$ac_lo" != "x$ac_hi"; do
6255   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6256   cat >conftest.$ac_ext <<_ACEOF
6257 /* confdefs.h.  */
6258 _ACEOF
6259 cat confdefs.h >>conftest.$ac_ext
6260 cat >>conftest.$ac_ext <<_ACEOF
6261 /* end confdefs.h.  */
6262 $ac_includes_default
6263 int
6264 main ()
6265 {
6266 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
6267 test_array [0] = 0
6268
6269   ;
6270   return 0;
6271 }
6272 _ACEOF
6273 rm -f conftest.$ac_objext
6274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6275   (eval $ac_compile) 2>conftest.er1
6276   ac_status=$?
6277   grep -v '^ *+' conftest.er1 >conftest.err
6278   rm -f conftest.er1
6279   cat conftest.err >&5
6280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6281   (exit $ac_status); } &&
6282          { ac_try='test -z "$ac_c_werror_flag"
6283                          || test ! -s conftest.err'
6284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6285   (eval $ac_try) 2>&5
6286   ac_status=$?
6287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6288   (exit $ac_status); }; } &&
6289          { ac_try='test -s conftest.$ac_objext'
6290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6291   (eval $ac_try) 2>&5
6292   ac_status=$?
6293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6294   (exit $ac_status); }; }; then
6295   ac_hi=$ac_mid
6296 else
6297   echo "$as_me: failed program was:" >&5
6298 sed 's/^/| /' conftest.$ac_ext >&5
6299
6300 ac_lo=`expr '(' $ac_mid ')' + 1`
6301 fi
6302 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6303 done
6304 case $ac_lo in
6305 ?*) ac_cv_sizeof_char=$ac_lo;;
6306 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
6307 See \`config.log' for more details." >&5
6308 echo "$as_me: error: cannot compute sizeof (char), 77
6309 See \`config.log' for more details." >&2;}
6310    { (exit 1); exit 1; }; } ;;
6311 esac
6312 else
6313   if test "$cross_compiling" = yes; then
6314   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6315 See \`config.log' for more details." >&5
6316 echo "$as_me: error: cannot run test program while cross compiling
6317 See \`config.log' for more details." >&2;}
6318    { (exit 1); exit 1; }; }
6319 else
6320   cat >conftest.$ac_ext <<_ACEOF
6321 /* confdefs.h.  */
6322 _ACEOF
6323 cat confdefs.h >>conftest.$ac_ext
6324 cat >>conftest.$ac_ext <<_ACEOF
6325 /* end confdefs.h.  */
6326 $ac_includes_default
6327 long longval () { return (long) (sizeof (char)); }
6328 unsigned long ulongval () { return (long) (sizeof (char)); }
6329 #include <stdio.h>
6330 #include <stdlib.h>
6331 int
6332 main ()
6333 {
6334
6335   FILE *f = fopen ("conftest.val", "w");
6336   if (! f)
6337     exit (1);
6338   if (((long) (sizeof (char))) < 0)
6339     {
6340       long i = longval ();
6341       if (i != ((long) (sizeof (char))))
6342         exit (1);
6343       fprintf (f, "%ld\n", i);
6344     }
6345   else
6346     {
6347       unsigned long i = ulongval ();
6348       if (i != ((long) (sizeof (char))))
6349         exit (1);
6350       fprintf (f, "%lu\n", i);
6351     }
6352   exit (ferror (f) || fclose (f) != 0);
6353
6354   ;
6355   return 0;
6356 }
6357 _ACEOF
6358 rm -f conftest$ac_exeext
6359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6360   (eval $ac_link) 2>&5
6361   ac_status=$?
6362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6363   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6365   (eval $ac_try) 2>&5
6366   ac_status=$?
6367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6368   (exit $ac_status); }; }; then
6369   ac_cv_sizeof_char=`cat conftest.val`
6370 else
6371   echo "$as_me: program exited with status $ac_status" >&5
6372 echo "$as_me: failed program was:" >&5
6373 sed 's/^/| /' conftest.$ac_ext >&5
6374
6375 ( exit $ac_status )
6376 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
6377 See \`config.log' for more details." >&5
6378 echo "$as_me: error: cannot compute sizeof (char), 77
6379 See \`config.log' for more details." >&2;}
6380    { (exit 1); exit 1; }; }
6381 fi
6382 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6383 fi
6384 fi
6385 rm -f conftest.val
6386 else
6387   ac_cv_sizeof_char=0
6388 fi
6389 fi
6390 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
6391 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
6392 cat >>confdefs.h <<_ACEOF
6393 #define SIZEOF_CHAR $ac_cv_sizeof_char
6394 _ACEOF
6395
6396
6397    echo "$as_me:$LINENO: checking for short" >&5
6398 echo $ECHO_N "checking for short... $ECHO_C" >&6
6399 if test "${ac_cv_type_short+set}" = set; then
6400   echo $ECHO_N "(cached) $ECHO_C" >&6
6401 else
6402   cat >conftest.$ac_ext <<_ACEOF
6403 /* confdefs.h.  */
6404 _ACEOF
6405 cat confdefs.h >>conftest.$ac_ext
6406 cat >>conftest.$ac_ext <<_ACEOF
6407 /* end confdefs.h.  */
6408 $ac_includes_default
6409 int
6410 main ()
6411 {
6412 if ((short *) 0)
6413   return 0;
6414 if (sizeof (short))
6415   return 0;
6416   ;
6417   return 0;
6418 }
6419 _ACEOF
6420 rm -f conftest.$ac_objext
6421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6422   (eval $ac_compile) 2>conftest.er1
6423   ac_status=$?
6424   grep -v '^ *+' conftest.er1 >conftest.err
6425   rm -f conftest.er1
6426   cat conftest.err >&5
6427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6428   (exit $ac_status); } &&
6429          { ac_try='test -z "$ac_c_werror_flag"
6430                          || test ! -s conftest.err'
6431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6432   (eval $ac_try) 2>&5
6433   ac_status=$?
6434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6435   (exit $ac_status); }; } &&
6436          { ac_try='test -s conftest.$ac_objext'
6437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6438   (eval $ac_try) 2>&5
6439   ac_status=$?
6440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6441   (exit $ac_status); }; }; then
6442   ac_cv_type_short=yes
6443 else
6444   echo "$as_me: failed program was:" >&5
6445 sed 's/^/| /' conftest.$ac_ext >&5
6446
6447 ac_cv_type_short=no
6448 fi
6449 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6450 fi
6451 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
6452 echo "${ECHO_T}$ac_cv_type_short" >&6
6453
6454 echo "$as_me:$LINENO: checking size of short" >&5
6455 echo $ECHO_N "checking size of short... $ECHO_C" >&6
6456 if test "${ac_cv_sizeof_short+set}" = set; then
6457   echo $ECHO_N "(cached) $ECHO_C" >&6
6458 else
6459   if test "$ac_cv_type_short" = yes; then
6460   # The cast to unsigned long works around a bug in the HP C Compiler
6461   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6462   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6463   # This bug is HP SR number 8606223364.
6464   if test "$cross_compiling" = yes; then
6465   # Depending upon the size, compute the lo and hi bounds.
6466 cat >conftest.$ac_ext <<_ACEOF
6467 /* confdefs.h.  */
6468 _ACEOF
6469 cat confdefs.h >>conftest.$ac_ext
6470 cat >>conftest.$ac_ext <<_ACEOF
6471 /* end confdefs.h.  */
6472 $ac_includes_default
6473 int
6474 main ()
6475 {
6476 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
6477 test_array [0] = 0
6478
6479   ;
6480   return 0;
6481 }
6482 _ACEOF
6483 rm -f conftest.$ac_objext
6484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6485   (eval $ac_compile) 2>conftest.er1
6486   ac_status=$?
6487   grep -v '^ *+' conftest.er1 >conftest.err
6488   rm -f conftest.er1
6489   cat conftest.err >&5
6490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6491   (exit $ac_status); } &&
6492          { ac_try='test -z "$ac_c_werror_flag"
6493                          || test ! -s conftest.err'
6494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6495   (eval $ac_try) 2>&5
6496   ac_status=$?
6497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6498   (exit $ac_status); }; } &&
6499          { ac_try='test -s conftest.$ac_objext'
6500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6501   (eval $ac_try) 2>&5
6502   ac_status=$?
6503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6504   (exit $ac_status); }; }; then
6505   ac_lo=0 ac_mid=0
6506   while :; do
6507     cat >conftest.$ac_ext <<_ACEOF
6508 /* confdefs.h.  */
6509 _ACEOF
6510 cat confdefs.h >>conftest.$ac_ext
6511 cat >>conftest.$ac_ext <<_ACEOF
6512 /* end confdefs.h.  */
6513 $ac_includes_default
6514 int
6515 main ()
6516 {
6517 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
6518 test_array [0] = 0
6519
6520   ;
6521   return 0;
6522 }
6523 _ACEOF
6524 rm -f conftest.$ac_objext
6525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6526   (eval $ac_compile) 2>conftest.er1
6527   ac_status=$?
6528   grep -v '^ *+' conftest.er1 >conftest.err
6529   rm -f conftest.er1
6530   cat conftest.err >&5
6531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6532   (exit $ac_status); } &&
6533          { ac_try='test -z "$ac_c_werror_flag"
6534                          || test ! -s conftest.err'
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); }; } &&
6540          { ac_try='test -s conftest.$ac_objext'
6541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6542   (eval $ac_try) 2>&5
6543   ac_status=$?
6544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6545   (exit $ac_status); }; }; then
6546   ac_hi=$ac_mid; break
6547 else
6548   echo "$as_me: failed program was:" >&5
6549 sed 's/^/| /' conftest.$ac_ext >&5
6550
6551 ac_lo=`expr $ac_mid + 1`
6552                     if test $ac_lo -le $ac_mid; then
6553                       ac_lo= ac_hi=
6554                       break
6555                     fi
6556                     ac_mid=`expr 2 '*' $ac_mid + 1`
6557 fi
6558 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6559   done
6560 else
6561   echo "$as_me: failed program was:" >&5
6562 sed 's/^/| /' conftest.$ac_ext >&5
6563
6564 cat >conftest.$ac_ext <<_ACEOF
6565 /* confdefs.h.  */
6566 _ACEOF
6567 cat confdefs.h >>conftest.$ac_ext
6568 cat >>conftest.$ac_ext <<_ACEOF
6569 /* end confdefs.h.  */
6570 $ac_includes_default
6571 int
6572 main ()
6573 {
6574 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
6575 test_array [0] = 0
6576
6577   ;
6578   return 0;
6579 }
6580 _ACEOF
6581 rm -f conftest.$ac_objext
6582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6583   (eval $ac_compile) 2>conftest.er1
6584   ac_status=$?
6585   grep -v '^ *+' conftest.er1 >conftest.err
6586   rm -f conftest.er1
6587   cat conftest.err >&5
6588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6589   (exit $ac_status); } &&
6590          { ac_try='test -z "$ac_c_werror_flag"
6591                          || test ! -s conftest.err'
6592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6593   (eval $ac_try) 2>&5
6594   ac_status=$?
6595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6596   (exit $ac_status); }; } &&
6597          { ac_try='test -s conftest.$ac_objext'
6598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6599   (eval $ac_try) 2>&5
6600   ac_status=$?
6601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6602   (exit $ac_status); }; }; then
6603   ac_hi=-1 ac_mid=-1
6604   while :; do
6605     cat >conftest.$ac_ext <<_ACEOF
6606 /* confdefs.h.  */
6607 _ACEOF
6608 cat confdefs.h >>conftest.$ac_ext
6609 cat >>conftest.$ac_ext <<_ACEOF
6610 /* end confdefs.h.  */
6611 $ac_includes_default
6612 int
6613 main ()
6614 {
6615 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
6616 test_array [0] = 0
6617
6618   ;
6619   return 0;
6620 }
6621 _ACEOF
6622 rm -f conftest.$ac_objext
6623 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6624   (eval $ac_compile) 2>conftest.er1
6625   ac_status=$?
6626   grep -v '^ *+' conftest.er1 >conftest.err
6627   rm -f conftest.er1
6628   cat conftest.err >&5
6629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6630   (exit $ac_status); } &&
6631          { ac_try='test -z "$ac_c_werror_flag"
6632                          || test ! -s conftest.err'
6633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6634   (eval $ac_try) 2>&5
6635   ac_status=$?
6636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6637   (exit $ac_status); }; } &&
6638          { ac_try='test -s conftest.$ac_objext'
6639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6640   (eval $ac_try) 2>&5
6641   ac_status=$?
6642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6643   (exit $ac_status); }; }; then
6644   ac_lo=$ac_mid; break
6645 else
6646   echo "$as_me: failed program was:" >&5
6647 sed 's/^/| /' conftest.$ac_ext >&5
6648
6649 ac_hi=`expr '(' $ac_mid ')' - 1`
6650                        if test $ac_mid -le $ac_hi; then
6651                          ac_lo= ac_hi=
6652                          break
6653                        fi
6654                        ac_mid=`expr 2 '*' $ac_mid`
6655 fi
6656 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6657   done
6658 else
6659   echo "$as_me: failed program was:" >&5
6660 sed 's/^/| /' conftest.$ac_ext >&5
6661
6662 ac_lo= ac_hi=
6663 fi
6664 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6665 fi
6666 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6667 # Binary search between lo and hi bounds.
6668 while test "x$ac_lo" != "x$ac_hi"; do
6669   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6670   cat >conftest.$ac_ext <<_ACEOF
6671 /* confdefs.h.  */
6672 _ACEOF
6673 cat confdefs.h >>conftest.$ac_ext
6674 cat >>conftest.$ac_ext <<_ACEOF
6675 /* end confdefs.h.  */
6676 $ac_includes_default
6677 int
6678 main ()
6679 {
6680 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
6681 test_array [0] = 0
6682
6683   ;
6684   return 0;
6685 }
6686 _ACEOF
6687 rm -f conftest.$ac_objext
6688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6689   (eval $ac_compile) 2>conftest.er1
6690   ac_status=$?
6691   grep -v '^ *+' conftest.er1 >conftest.err
6692   rm -f conftest.er1
6693   cat conftest.err >&5
6694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6695   (exit $ac_status); } &&
6696          { ac_try='test -z "$ac_c_werror_flag"
6697                          || test ! -s conftest.err'
6698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6699   (eval $ac_try) 2>&5
6700   ac_status=$?
6701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6702   (exit $ac_status); }; } &&
6703          { ac_try='test -s conftest.$ac_objext'
6704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6705   (eval $ac_try) 2>&5
6706   ac_status=$?
6707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6708   (exit $ac_status); }; }; then
6709   ac_hi=$ac_mid
6710 else
6711   echo "$as_me: failed program was:" >&5
6712 sed 's/^/| /' conftest.$ac_ext >&5
6713
6714 ac_lo=`expr '(' $ac_mid ')' + 1`
6715 fi
6716 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6717 done
6718 case $ac_lo in
6719 ?*) ac_cv_sizeof_short=$ac_lo;;
6720 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
6721 See \`config.log' for more details." >&5
6722 echo "$as_me: error: cannot compute sizeof (short), 77
6723 See \`config.log' for more details." >&2;}
6724    { (exit 1); exit 1; }; } ;;
6725 esac
6726 else
6727   if test "$cross_compiling" = yes; then
6728   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6729 See \`config.log' for more details." >&5
6730 echo "$as_me: error: cannot run test program while cross compiling
6731 See \`config.log' for more details." >&2;}
6732    { (exit 1); exit 1; }; }
6733 else
6734   cat >conftest.$ac_ext <<_ACEOF
6735 /* confdefs.h.  */
6736 _ACEOF
6737 cat confdefs.h >>conftest.$ac_ext
6738 cat >>conftest.$ac_ext <<_ACEOF
6739 /* end confdefs.h.  */
6740 $ac_includes_default
6741 long longval () { return (long) (sizeof (short)); }
6742 unsigned long ulongval () { return (long) (sizeof (short)); }
6743 #include <stdio.h>
6744 #include <stdlib.h>
6745 int
6746 main ()
6747 {
6748
6749   FILE *f = fopen ("conftest.val", "w");
6750   if (! f)
6751     exit (1);
6752   if (((long) (sizeof (short))) < 0)
6753     {
6754       long i = longval ();
6755       if (i != ((long) (sizeof (short))))
6756         exit (1);
6757       fprintf (f, "%ld\n", i);
6758     }
6759   else
6760     {
6761       unsigned long i = ulongval ();
6762       if (i != ((long) (sizeof (short))))
6763         exit (1);
6764       fprintf (f, "%lu\n", i);
6765     }
6766   exit (ferror (f) || fclose (f) != 0);
6767
6768   ;
6769   return 0;
6770 }
6771 _ACEOF
6772 rm -f conftest$ac_exeext
6773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6774   (eval $ac_link) 2>&5
6775   ac_status=$?
6776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6777   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6779   (eval $ac_try) 2>&5
6780   ac_status=$?
6781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6782   (exit $ac_status); }; }; then
6783   ac_cv_sizeof_short=`cat conftest.val`
6784 else
6785   echo "$as_me: program exited with status $ac_status" >&5
6786 echo "$as_me: failed program was:" >&5
6787 sed 's/^/| /' conftest.$ac_ext >&5
6788
6789 ( exit $ac_status )
6790 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
6791 See \`config.log' for more details." >&5
6792 echo "$as_me: error: cannot compute sizeof (short), 77
6793 See \`config.log' for more details." >&2;}
6794    { (exit 1); exit 1; }; }
6795 fi
6796 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6797 fi
6798 fi
6799 rm -f conftest.val
6800 else
6801   ac_cv_sizeof_short=0
6802 fi
6803 fi
6804 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
6805 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
6806 cat >>confdefs.h <<_ACEOF
6807 #define SIZEOF_SHORT $ac_cv_sizeof_short
6808 _ACEOF
6809
6810
6811    echo "$as_me:$LINENO: checking for int" >&5
6812 echo $ECHO_N "checking for int... $ECHO_C" >&6
6813 if test "${ac_cv_type_int+set}" = set; then
6814   echo $ECHO_N "(cached) $ECHO_C" >&6
6815 else
6816   cat >conftest.$ac_ext <<_ACEOF
6817 /* confdefs.h.  */
6818 _ACEOF
6819 cat confdefs.h >>conftest.$ac_ext
6820 cat >>conftest.$ac_ext <<_ACEOF
6821 /* end confdefs.h.  */
6822 $ac_includes_default
6823 int
6824 main ()
6825 {
6826 if ((int *) 0)
6827   return 0;
6828 if (sizeof (int))
6829   return 0;
6830   ;
6831   return 0;
6832 }
6833 _ACEOF
6834 rm -f conftest.$ac_objext
6835 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6836   (eval $ac_compile) 2>conftest.er1
6837   ac_status=$?
6838   grep -v '^ *+' conftest.er1 >conftest.err
6839   rm -f conftest.er1
6840   cat conftest.err >&5
6841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6842   (exit $ac_status); } &&
6843          { ac_try='test -z "$ac_c_werror_flag"
6844                          || test ! -s conftest.err'
6845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6846   (eval $ac_try) 2>&5
6847   ac_status=$?
6848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6849   (exit $ac_status); }; } &&
6850          { ac_try='test -s conftest.$ac_objext'
6851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6852   (eval $ac_try) 2>&5
6853   ac_status=$?
6854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6855   (exit $ac_status); }; }; then
6856   ac_cv_type_int=yes
6857 else
6858   echo "$as_me: failed program was:" >&5
6859 sed 's/^/| /' conftest.$ac_ext >&5
6860
6861 ac_cv_type_int=no
6862 fi
6863 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6864 fi
6865 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
6866 echo "${ECHO_T}$ac_cv_type_int" >&6
6867
6868 echo "$as_me:$LINENO: checking size of int" >&5
6869 echo $ECHO_N "checking size of int... $ECHO_C" >&6
6870 if test "${ac_cv_sizeof_int+set}" = set; then
6871   echo $ECHO_N "(cached) $ECHO_C" >&6
6872 else
6873   if test "$ac_cv_type_int" = yes; then
6874   # The cast to unsigned long works around a bug in the HP C Compiler
6875   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6876   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6877   # This bug is HP SR number 8606223364.
6878   if test "$cross_compiling" = yes; then
6879   # Depending upon the size, compute the lo and hi bounds.
6880 cat >conftest.$ac_ext <<_ACEOF
6881 /* confdefs.h.  */
6882 _ACEOF
6883 cat confdefs.h >>conftest.$ac_ext
6884 cat >>conftest.$ac_ext <<_ACEOF
6885 /* end confdefs.h.  */
6886 $ac_includes_default
6887 int
6888 main ()
6889 {
6890 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
6891 test_array [0] = 0
6892
6893   ;
6894   return 0;
6895 }
6896 _ACEOF
6897 rm -f conftest.$ac_objext
6898 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6899   (eval $ac_compile) 2>conftest.er1
6900   ac_status=$?
6901   grep -v '^ *+' conftest.er1 >conftest.err
6902   rm -f conftest.er1
6903   cat conftest.err >&5
6904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6905   (exit $ac_status); } &&
6906          { ac_try='test -z "$ac_c_werror_flag"
6907                          || test ! -s conftest.err'
6908   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6909   (eval $ac_try) 2>&5
6910   ac_status=$?
6911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6912   (exit $ac_status); }; } &&
6913          { ac_try='test -s conftest.$ac_objext'
6914   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6915   (eval $ac_try) 2>&5
6916   ac_status=$?
6917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6918   (exit $ac_status); }; }; then
6919   ac_lo=0 ac_mid=0
6920   while :; do
6921     cat >conftest.$ac_ext <<_ACEOF
6922 /* confdefs.h.  */
6923 _ACEOF
6924 cat confdefs.h >>conftest.$ac_ext
6925 cat >>conftest.$ac_ext <<_ACEOF
6926 /* end confdefs.h.  */
6927 $ac_includes_default
6928 int
6929 main ()
6930 {
6931 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
6932 test_array [0] = 0
6933
6934   ;
6935   return 0;
6936 }
6937 _ACEOF
6938 rm -f conftest.$ac_objext
6939 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6940   (eval $ac_compile) 2>conftest.er1
6941   ac_status=$?
6942   grep -v '^ *+' conftest.er1 >conftest.err
6943   rm -f conftest.er1
6944   cat conftest.err >&5
6945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6946   (exit $ac_status); } &&
6947          { ac_try='test -z "$ac_c_werror_flag"
6948                          || test ! -s conftest.err'
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); }; } &&
6954          { ac_try='test -s conftest.$ac_objext'
6955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6956   (eval $ac_try) 2>&5
6957   ac_status=$?
6958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6959   (exit $ac_status); }; }; then
6960   ac_hi=$ac_mid; break
6961 else
6962   echo "$as_me: failed program was:" >&5
6963 sed 's/^/| /' conftest.$ac_ext >&5
6964
6965 ac_lo=`expr $ac_mid + 1`
6966                     if test $ac_lo -le $ac_mid; then
6967                       ac_lo= ac_hi=
6968                       break
6969                     fi
6970                     ac_mid=`expr 2 '*' $ac_mid + 1`
6971 fi
6972 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6973   done
6974 else
6975   echo "$as_me: failed program was:" >&5
6976 sed 's/^/| /' conftest.$ac_ext >&5
6977
6978 cat >conftest.$ac_ext <<_ACEOF
6979 /* confdefs.h.  */
6980 _ACEOF
6981 cat confdefs.h >>conftest.$ac_ext
6982 cat >>conftest.$ac_ext <<_ACEOF
6983 /* end confdefs.h.  */
6984 $ac_includes_default
6985 int
6986 main ()
6987 {
6988 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
6989 test_array [0] = 0
6990
6991   ;
6992   return 0;
6993 }
6994 _ACEOF
6995 rm -f conftest.$ac_objext
6996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6997   (eval $ac_compile) 2>conftest.er1
6998   ac_status=$?
6999   grep -v '^ *+' conftest.er1 >conftest.err
7000   rm -f conftest.er1
7001   cat conftest.err >&5
7002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7003   (exit $ac_status); } &&
7004          { ac_try='test -z "$ac_c_werror_flag"
7005                          || test ! -s conftest.err'
7006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7007   (eval $ac_try) 2>&5
7008   ac_status=$?
7009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7010   (exit $ac_status); }; } &&
7011          { ac_try='test -s conftest.$ac_objext'
7012   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7013   (eval $ac_try) 2>&5
7014   ac_status=$?
7015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7016   (exit $ac_status); }; }; then
7017   ac_hi=-1 ac_mid=-1
7018   while :; do
7019     cat >conftest.$ac_ext <<_ACEOF
7020 /* confdefs.h.  */
7021 _ACEOF
7022 cat confdefs.h >>conftest.$ac_ext
7023 cat >>conftest.$ac_ext <<_ACEOF
7024 /* end confdefs.h.  */
7025 $ac_includes_default
7026 int
7027 main ()
7028 {
7029 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
7030 test_array [0] = 0
7031
7032   ;
7033   return 0;
7034 }
7035 _ACEOF
7036 rm -f conftest.$ac_objext
7037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7038   (eval $ac_compile) 2>conftest.er1
7039   ac_status=$?
7040   grep -v '^ *+' conftest.er1 >conftest.err
7041   rm -f conftest.er1
7042   cat conftest.err >&5
7043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7044   (exit $ac_status); } &&
7045          { ac_try='test -z "$ac_c_werror_flag"
7046                          || test ! -s conftest.err'
7047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7048   (eval $ac_try) 2>&5
7049   ac_status=$?
7050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7051   (exit $ac_status); }; } &&
7052          { ac_try='test -s conftest.$ac_objext'
7053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7054   (eval $ac_try) 2>&5
7055   ac_status=$?
7056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7057   (exit $ac_status); }; }; then
7058   ac_lo=$ac_mid; break
7059 else
7060   echo "$as_me: failed program was:" >&5
7061 sed 's/^/| /' conftest.$ac_ext >&5
7062
7063 ac_hi=`expr '(' $ac_mid ')' - 1`
7064                        if test $ac_mid -le $ac_hi; then
7065                          ac_lo= ac_hi=
7066                          break
7067                        fi
7068                        ac_mid=`expr 2 '*' $ac_mid`
7069 fi
7070 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7071   done
7072 else
7073   echo "$as_me: failed program was:" >&5
7074 sed 's/^/| /' conftest.$ac_ext >&5
7075
7076 ac_lo= ac_hi=
7077 fi
7078 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7079 fi
7080 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7081 # Binary search between lo and hi bounds.
7082 while test "x$ac_lo" != "x$ac_hi"; do
7083   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7084   cat >conftest.$ac_ext <<_ACEOF
7085 /* confdefs.h.  */
7086 _ACEOF
7087 cat confdefs.h >>conftest.$ac_ext
7088 cat >>conftest.$ac_ext <<_ACEOF
7089 /* end confdefs.h.  */
7090 $ac_includes_default
7091 int
7092 main ()
7093 {
7094 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
7095 test_array [0] = 0
7096
7097   ;
7098   return 0;
7099 }
7100 _ACEOF
7101 rm -f conftest.$ac_objext
7102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7103   (eval $ac_compile) 2>conftest.er1
7104   ac_status=$?
7105   grep -v '^ *+' conftest.er1 >conftest.err
7106   rm -f conftest.er1
7107   cat conftest.err >&5
7108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7109   (exit $ac_status); } &&
7110          { ac_try='test -z "$ac_c_werror_flag"
7111                          || test ! -s conftest.err'
7112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7113   (eval $ac_try) 2>&5
7114   ac_status=$?
7115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7116   (exit $ac_status); }; } &&
7117          { ac_try='test -s conftest.$ac_objext'
7118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7119   (eval $ac_try) 2>&5
7120   ac_status=$?
7121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7122   (exit $ac_status); }; }; then
7123   ac_hi=$ac_mid
7124 else
7125   echo "$as_me: failed program was:" >&5
7126 sed 's/^/| /' conftest.$ac_ext >&5
7127
7128 ac_lo=`expr '(' $ac_mid ')' + 1`
7129 fi
7130 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7131 done
7132 case $ac_lo in
7133 ?*) ac_cv_sizeof_int=$ac_lo;;
7134 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
7135 See \`config.log' for more details." >&5
7136 echo "$as_me: error: cannot compute sizeof (int), 77
7137 See \`config.log' for more details." >&2;}
7138    { (exit 1); exit 1; }; } ;;
7139 esac
7140 else
7141   if test "$cross_compiling" = yes; then
7142   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7143 See \`config.log' for more details." >&5
7144 echo "$as_me: error: cannot run test program while cross compiling
7145 See \`config.log' for more details." >&2;}
7146    { (exit 1); exit 1; }; }
7147 else
7148   cat >conftest.$ac_ext <<_ACEOF
7149 /* confdefs.h.  */
7150 _ACEOF
7151 cat confdefs.h >>conftest.$ac_ext
7152 cat >>conftest.$ac_ext <<_ACEOF
7153 /* end confdefs.h.  */
7154 $ac_includes_default
7155 long longval () { return (long) (sizeof (int)); }
7156 unsigned long ulongval () { return (long) (sizeof (int)); }
7157 #include <stdio.h>
7158 #include <stdlib.h>
7159 int
7160 main ()
7161 {
7162
7163   FILE *f = fopen ("conftest.val", "w");
7164   if (! f)
7165     exit (1);
7166   if (((long) (sizeof (int))) < 0)
7167     {
7168       long i = longval ();
7169       if (i != ((long) (sizeof (int))))
7170         exit (1);
7171       fprintf (f, "%ld\n", i);
7172     }
7173   else
7174     {
7175       unsigned long i = ulongval ();
7176       if (i != ((long) (sizeof (int))))
7177         exit (1);
7178       fprintf (f, "%lu\n", i);
7179     }
7180   exit (ferror (f) || fclose (f) != 0);
7181
7182   ;
7183   return 0;
7184 }
7185 _ACEOF
7186 rm -f conftest$ac_exeext
7187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7188   (eval $ac_link) 2>&5
7189   ac_status=$?
7190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7191   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7193   (eval $ac_try) 2>&5
7194   ac_status=$?
7195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7196   (exit $ac_status); }; }; then
7197   ac_cv_sizeof_int=`cat conftest.val`
7198 else
7199   echo "$as_me: program exited with status $ac_status" >&5
7200 echo "$as_me: failed program was:" >&5
7201 sed 's/^/| /' conftest.$ac_ext >&5
7202
7203 ( exit $ac_status )
7204 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
7205 See \`config.log' for more details." >&5
7206 echo "$as_me: error: cannot compute sizeof (int), 77
7207 See \`config.log' for more details." >&2;}
7208    { (exit 1); exit 1; }; }
7209 fi
7210 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7211 fi
7212 fi
7213 rm -f conftest.val
7214 else
7215   ac_cv_sizeof_int=0
7216 fi
7217 fi
7218 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
7219 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
7220 cat >>confdefs.h <<_ACEOF
7221 #define SIZEOF_INT $ac_cv_sizeof_int
7222 _ACEOF
7223
7224
7225    echo "$as_me:$LINENO: checking for long" >&5
7226 echo $ECHO_N "checking for long... $ECHO_C" >&6
7227 if test "${ac_cv_type_long+set}" = set; then
7228   echo $ECHO_N "(cached) $ECHO_C" >&6
7229 else
7230   cat >conftest.$ac_ext <<_ACEOF
7231 /* confdefs.h.  */
7232 _ACEOF
7233 cat confdefs.h >>conftest.$ac_ext
7234 cat >>conftest.$ac_ext <<_ACEOF
7235 /* end confdefs.h.  */
7236 $ac_includes_default
7237 int
7238 main ()
7239 {
7240 if ((long *) 0)
7241   return 0;
7242 if (sizeof (long))
7243   return 0;
7244   ;
7245   return 0;
7246 }
7247 _ACEOF
7248 rm -f conftest.$ac_objext
7249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7250   (eval $ac_compile) 2>conftest.er1
7251   ac_status=$?
7252   grep -v '^ *+' conftest.er1 >conftest.err
7253   rm -f conftest.er1
7254   cat conftest.err >&5
7255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7256   (exit $ac_status); } &&
7257          { ac_try='test -z "$ac_c_werror_flag"
7258                          || test ! -s conftest.err'
7259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7260   (eval $ac_try) 2>&5
7261   ac_status=$?
7262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7263   (exit $ac_status); }; } &&
7264          { ac_try='test -s conftest.$ac_objext'
7265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7266   (eval $ac_try) 2>&5
7267   ac_status=$?
7268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7269   (exit $ac_status); }; }; then
7270   ac_cv_type_long=yes
7271 else
7272   echo "$as_me: failed program was:" >&5
7273 sed 's/^/| /' conftest.$ac_ext >&5
7274
7275 ac_cv_type_long=no
7276 fi
7277 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7278 fi
7279 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
7280 echo "${ECHO_T}$ac_cv_type_long" >&6
7281
7282 echo "$as_me:$LINENO: checking size of long" >&5
7283 echo $ECHO_N "checking size of long... $ECHO_C" >&6
7284 if test "${ac_cv_sizeof_long+set}" = set; then
7285   echo $ECHO_N "(cached) $ECHO_C" >&6
7286 else
7287   if test "$ac_cv_type_long" = yes; then
7288   # The cast to unsigned long works around a bug in the HP C Compiler
7289   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7290   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7291   # This bug is HP SR number 8606223364.
7292   if test "$cross_compiling" = yes; then
7293   # Depending upon the size, compute the lo and hi bounds.
7294 cat >conftest.$ac_ext <<_ACEOF
7295 /* confdefs.h.  */
7296 _ACEOF
7297 cat confdefs.h >>conftest.$ac_ext
7298 cat >>conftest.$ac_ext <<_ACEOF
7299 /* end confdefs.h.  */
7300 $ac_includes_default
7301 int
7302 main ()
7303 {
7304 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
7305 test_array [0] = 0
7306
7307   ;
7308   return 0;
7309 }
7310 _ACEOF
7311 rm -f conftest.$ac_objext
7312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7313   (eval $ac_compile) 2>conftest.er1
7314   ac_status=$?
7315   grep -v '^ *+' conftest.er1 >conftest.err
7316   rm -f conftest.er1
7317   cat conftest.err >&5
7318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7319   (exit $ac_status); } &&
7320          { ac_try='test -z "$ac_c_werror_flag"
7321                          || test ! -s conftest.err'
7322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7323   (eval $ac_try) 2>&5
7324   ac_status=$?
7325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7326   (exit $ac_status); }; } &&
7327          { ac_try='test -s conftest.$ac_objext'
7328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7329   (eval $ac_try) 2>&5
7330   ac_status=$?
7331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7332   (exit $ac_status); }; }; then
7333   ac_lo=0 ac_mid=0
7334   while :; do
7335     cat >conftest.$ac_ext <<_ACEOF
7336 /* confdefs.h.  */
7337 _ACEOF
7338 cat confdefs.h >>conftest.$ac_ext
7339 cat >>conftest.$ac_ext <<_ACEOF
7340 /* end confdefs.h.  */
7341 $ac_includes_default
7342 int
7343 main ()
7344 {
7345 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
7346 test_array [0] = 0
7347
7348   ;
7349   return 0;
7350 }
7351 _ACEOF
7352 rm -f conftest.$ac_objext
7353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7354   (eval $ac_compile) 2>conftest.er1
7355   ac_status=$?
7356   grep -v '^ *+' conftest.er1 >conftest.err
7357   rm -f conftest.er1
7358   cat conftest.err >&5
7359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7360   (exit $ac_status); } &&
7361          { ac_try='test -z "$ac_c_werror_flag"
7362                          || test ! -s conftest.err'
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); }; } &&
7368          { ac_try='test -s conftest.$ac_objext'
7369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7370   (eval $ac_try) 2>&5
7371   ac_status=$?
7372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7373   (exit $ac_status); }; }; then
7374   ac_hi=$ac_mid; break
7375 else
7376   echo "$as_me: failed program was:" >&5
7377 sed 's/^/| /' conftest.$ac_ext >&5
7378
7379 ac_lo=`expr $ac_mid + 1`
7380                     if test $ac_lo -le $ac_mid; then
7381                       ac_lo= ac_hi=
7382                       break
7383                     fi
7384                     ac_mid=`expr 2 '*' $ac_mid + 1`
7385 fi
7386 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7387   done
7388 else
7389   echo "$as_me: failed program was:" >&5
7390 sed 's/^/| /' conftest.$ac_ext >&5
7391
7392 cat >conftest.$ac_ext <<_ACEOF
7393 /* confdefs.h.  */
7394 _ACEOF
7395 cat confdefs.h >>conftest.$ac_ext
7396 cat >>conftest.$ac_ext <<_ACEOF
7397 /* end confdefs.h.  */
7398 $ac_includes_default
7399 int
7400 main ()
7401 {
7402 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
7403 test_array [0] = 0
7404
7405   ;
7406   return 0;
7407 }
7408 _ACEOF
7409 rm -f conftest.$ac_objext
7410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7411   (eval $ac_compile) 2>conftest.er1
7412   ac_status=$?
7413   grep -v '^ *+' conftest.er1 >conftest.err
7414   rm -f conftest.er1
7415   cat conftest.err >&5
7416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7417   (exit $ac_status); } &&
7418          { ac_try='test -z "$ac_c_werror_flag"
7419                          || test ! -s conftest.err'
7420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7421   (eval $ac_try) 2>&5
7422   ac_status=$?
7423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7424   (exit $ac_status); }; } &&
7425          { ac_try='test -s conftest.$ac_objext'
7426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7427   (eval $ac_try) 2>&5
7428   ac_status=$?
7429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7430   (exit $ac_status); }; }; then
7431   ac_hi=-1 ac_mid=-1
7432   while :; do
7433     cat >conftest.$ac_ext <<_ACEOF
7434 /* confdefs.h.  */
7435 _ACEOF
7436 cat confdefs.h >>conftest.$ac_ext
7437 cat >>conftest.$ac_ext <<_ACEOF
7438 /* end confdefs.h.  */
7439 $ac_includes_default
7440 int
7441 main ()
7442 {
7443 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
7444 test_array [0] = 0
7445
7446   ;
7447   return 0;
7448 }
7449 _ACEOF
7450 rm -f conftest.$ac_objext
7451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7452   (eval $ac_compile) 2>conftest.er1
7453   ac_status=$?
7454   grep -v '^ *+' conftest.er1 >conftest.err
7455   rm -f conftest.er1
7456   cat conftest.err >&5
7457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7458   (exit $ac_status); } &&
7459          { ac_try='test -z "$ac_c_werror_flag"
7460                          || test ! -s conftest.err'
7461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7462   (eval $ac_try) 2>&5
7463   ac_status=$?
7464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7465   (exit $ac_status); }; } &&
7466          { ac_try='test -s conftest.$ac_objext'
7467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7468   (eval $ac_try) 2>&5
7469   ac_status=$?
7470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7471   (exit $ac_status); }; }; then
7472   ac_lo=$ac_mid; break
7473 else
7474   echo "$as_me: failed program was:" >&5
7475 sed 's/^/| /' conftest.$ac_ext >&5
7476
7477 ac_hi=`expr '(' $ac_mid ')' - 1`
7478                        if test $ac_mid -le $ac_hi; then
7479                          ac_lo= ac_hi=
7480                          break
7481                        fi
7482                        ac_mid=`expr 2 '*' $ac_mid`
7483 fi
7484 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7485   done
7486 else
7487   echo "$as_me: failed program was:" >&5
7488 sed 's/^/| /' conftest.$ac_ext >&5
7489
7490 ac_lo= ac_hi=
7491 fi
7492 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7493 fi
7494 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7495 # Binary search between lo and hi bounds.
7496 while test "x$ac_lo" != "x$ac_hi"; do
7497   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7498   cat >conftest.$ac_ext <<_ACEOF
7499 /* confdefs.h.  */
7500 _ACEOF
7501 cat confdefs.h >>conftest.$ac_ext
7502 cat >>conftest.$ac_ext <<_ACEOF
7503 /* end confdefs.h.  */
7504 $ac_includes_default
7505 int
7506 main ()
7507 {
7508 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
7509 test_array [0] = 0
7510
7511   ;
7512   return 0;
7513 }
7514 _ACEOF
7515 rm -f conftest.$ac_objext
7516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7517   (eval $ac_compile) 2>conftest.er1
7518   ac_status=$?
7519   grep -v '^ *+' conftest.er1 >conftest.err
7520   rm -f conftest.er1
7521   cat conftest.err >&5
7522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7523   (exit $ac_status); } &&
7524          { ac_try='test -z "$ac_c_werror_flag"
7525                          || test ! -s conftest.err'
7526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7527   (eval $ac_try) 2>&5
7528   ac_status=$?
7529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7530   (exit $ac_status); }; } &&
7531          { ac_try='test -s conftest.$ac_objext'
7532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7533   (eval $ac_try) 2>&5
7534   ac_status=$?
7535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7536   (exit $ac_status); }; }; then
7537   ac_hi=$ac_mid
7538 else
7539   echo "$as_me: failed program was:" >&5
7540 sed 's/^/| /' conftest.$ac_ext >&5
7541
7542 ac_lo=`expr '(' $ac_mid ')' + 1`
7543 fi
7544 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7545 done
7546 case $ac_lo in
7547 ?*) ac_cv_sizeof_long=$ac_lo;;
7548 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7549 See \`config.log' for more details." >&5
7550 echo "$as_me: error: cannot compute sizeof (long), 77
7551 See \`config.log' for more details." >&2;}
7552    { (exit 1); exit 1; }; } ;;
7553 esac
7554 else
7555   if test "$cross_compiling" = yes; then
7556   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7557 See \`config.log' for more details." >&5
7558 echo "$as_me: error: cannot run test program while cross compiling
7559 See \`config.log' for more details." >&2;}
7560    { (exit 1); exit 1; }; }
7561 else
7562   cat >conftest.$ac_ext <<_ACEOF
7563 /* confdefs.h.  */
7564 _ACEOF
7565 cat confdefs.h >>conftest.$ac_ext
7566 cat >>conftest.$ac_ext <<_ACEOF
7567 /* end confdefs.h.  */
7568 $ac_includes_default
7569 long longval () { return (long) (sizeof (long)); }
7570 unsigned long ulongval () { return (long) (sizeof (long)); }
7571 #include <stdio.h>
7572 #include <stdlib.h>
7573 int
7574 main ()
7575 {
7576
7577   FILE *f = fopen ("conftest.val", "w");
7578   if (! f)
7579     exit (1);
7580   if (((long) (sizeof (long))) < 0)
7581     {
7582       long i = longval ();
7583       if (i != ((long) (sizeof (long))))
7584         exit (1);
7585       fprintf (f, "%ld\n", i);
7586     }
7587   else
7588     {
7589       unsigned long i = ulongval ();
7590       if (i != ((long) (sizeof (long))))
7591         exit (1);
7592       fprintf (f, "%lu\n", i);
7593     }
7594   exit (ferror (f) || fclose (f) != 0);
7595
7596   ;
7597   return 0;
7598 }
7599 _ACEOF
7600 rm -f conftest$ac_exeext
7601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7602   (eval $ac_link) 2>&5
7603   ac_status=$?
7604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7605   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7607   (eval $ac_try) 2>&5
7608   ac_status=$?
7609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7610   (exit $ac_status); }; }; then
7611   ac_cv_sizeof_long=`cat conftest.val`
7612 else
7613   echo "$as_me: program exited with status $ac_status" >&5
7614 echo "$as_me: failed program was:" >&5
7615 sed 's/^/| /' conftest.$ac_ext >&5
7616
7617 ( exit $ac_status )
7618 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7619 See \`config.log' for more details." >&5
7620 echo "$as_me: error: cannot compute sizeof (long), 77
7621 See \`config.log' for more details." >&2;}
7622    { (exit 1); exit 1; }; }
7623 fi
7624 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7625 fi
7626 fi
7627 rm -f conftest.val
7628 else
7629   ac_cv_sizeof_long=0
7630 fi
7631 fi
7632 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7633 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
7634 cat >>confdefs.h <<_ACEOF
7635 #define SIZEOF_LONG $ac_cv_sizeof_long
7636 _ACEOF
7637
7638
7639    echo "$as_me:$LINENO: checking for void*" >&5
7640 echo $ECHO_N "checking for void*... $ECHO_C" >&6
7641 if test "${ac_cv_type_voidp+set}" = set; then
7642   echo $ECHO_N "(cached) $ECHO_C" >&6
7643 else
7644   cat >conftest.$ac_ext <<_ACEOF
7645 /* confdefs.h.  */
7646 _ACEOF
7647 cat confdefs.h >>conftest.$ac_ext
7648 cat >>conftest.$ac_ext <<_ACEOF
7649 /* end confdefs.h.  */
7650 $ac_includes_default
7651 int
7652 main ()
7653 {
7654 if ((void* *) 0)
7655   return 0;
7656 if (sizeof (void*))
7657   return 0;
7658   ;
7659   return 0;
7660 }
7661 _ACEOF
7662 rm -f conftest.$ac_objext
7663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7664   (eval $ac_compile) 2>conftest.er1
7665   ac_status=$?
7666   grep -v '^ *+' conftest.er1 >conftest.err
7667   rm -f conftest.er1
7668   cat conftest.err >&5
7669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7670   (exit $ac_status); } &&
7671          { ac_try='test -z "$ac_c_werror_flag"
7672                          || test ! -s conftest.err'
7673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7674   (eval $ac_try) 2>&5
7675   ac_status=$?
7676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7677   (exit $ac_status); }; } &&
7678          { ac_try='test -s conftest.$ac_objext'
7679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7680   (eval $ac_try) 2>&5
7681   ac_status=$?
7682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7683   (exit $ac_status); }; }; then
7684   ac_cv_type_voidp=yes
7685 else
7686   echo "$as_me: failed program was:" >&5
7687 sed 's/^/| /' conftest.$ac_ext >&5
7688
7689 ac_cv_type_voidp=no
7690 fi
7691 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7692 fi
7693 echo "$as_me:$LINENO: result: $ac_cv_type_voidp" >&5
7694 echo "${ECHO_T}$ac_cv_type_voidp" >&6
7695
7696 echo "$as_me:$LINENO: checking size of void*" >&5
7697 echo $ECHO_N "checking size of void*... $ECHO_C" >&6
7698 if test "${ac_cv_sizeof_voidp+set}" = set; then
7699   echo $ECHO_N "(cached) $ECHO_C" >&6
7700 else
7701   if test "$ac_cv_type_voidp" = yes; then
7702   # The cast to unsigned long works around a bug in the HP C Compiler
7703   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7704   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7705   # This bug is HP SR number 8606223364.
7706   if test "$cross_compiling" = yes; then
7707   # Depending upon the size, compute the lo and hi bounds.
7708 cat >conftest.$ac_ext <<_ACEOF
7709 /* confdefs.h.  */
7710 _ACEOF
7711 cat confdefs.h >>conftest.$ac_ext
7712 cat >>conftest.$ac_ext <<_ACEOF
7713 /* end confdefs.h.  */
7714 $ac_includes_default
7715 int
7716 main ()
7717 {
7718 static int test_array [1 - 2 * !(((long) (sizeof (void*))) >= 0)];
7719 test_array [0] = 0
7720
7721   ;
7722   return 0;
7723 }
7724 _ACEOF
7725 rm -f conftest.$ac_objext
7726 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7727   (eval $ac_compile) 2>conftest.er1
7728   ac_status=$?
7729   grep -v '^ *+' conftest.er1 >conftest.err
7730   rm -f conftest.er1
7731   cat conftest.err >&5
7732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7733   (exit $ac_status); } &&
7734          { ac_try='test -z "$ac_c_werror_flag"
7735                          || test ! -s conftest.err'
7736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7737   (eval $ac_try) 2>&5
7738   ac_status=$?
7739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7740   (exit $ac_status); }; } &&
7741          { ac_try='test -s conftest.$ac_objext'
7742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7743   (eval $ac_try) 2>&5
7744   ac_status=$?
7745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7746   (exit $ac_status); }; }; then
7747   ac_lo=0 ac_mid=0
7748   while :; do
7749     cat >conftest.$ac_ext <<_ACEOF
7750 /* confdefs.h.  */
7751 _ACEOF
7752 cat confdefs.h >>conftest.$ac_ext
7753 cat >>conftest.$ac_ext <<_ACEOF
7754 /* end confdefs.h.  */
7755 $ac_includes_default
7756 int
7757 main ()
7758 {
7759 static int test_array [1 - 2 * !(((long) (sizeof (void*))) <= $ac_mid)];
7760 test_array [0] = 0
7761
7762   ;
7763   return 0;
7764 }
7765 _ACEOF
7766 rm -f conftest.$ac_objext
7767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7768   (eval $ac_compile) 2>conftest.er1
7769   ac_status=$?
7770   grep -v '^ *+' conftest.er1 >conftest.err
7771   rm -f conftest.er1
7772   cat conftest.err >&5
7773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7774   (exit $ac_status); } &&
7775          { ac_try='test -z "$ac_c_werror_flag"
7776                          || test ! -s conftest.err'
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); }; } &&
7782          { ac_try='test -s conftest.$ac_objext'
7783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7784   (eval $ac_try) 2>&5
7785   ac_status=$?
7786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7787   (exit $ac_status); }; }; then
7788   ac_hi=$ac_mid; break
7789 else
7790   echo "$as_me: failed program was:" >&5
7791 sed 's/^/| /' conftest.$ac_ext >&5
7792
7793 ac_lo=`expr $ac_mid + 1`
7794                     if test $ac_lo -le $ac_mid; then
7795                       ac_lo= ac_hi=
7796                       break
7797                     fi
7798                     ac_mid=`expr 2 '*' $ac_mid + 1`
7799 fi
7800 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7801   done
7802 else
7803   echo "$as_me: failed program was:" >&5
7804 sed 's/^/| /' conftest.$ac_ext >&5
7805
7806 cat >conftest.$ac_ext <<_ACEOF
7807 /* confdefs.h.  */
7808 _ACEOF
7809 cat confdefs.h >>conftest.$ac_ext
7810 cat >>conftest.$ac_ext <<_ACEOF
7811 /* end confdefs.h.  */
7812 $ac_includes_default
7813 int
7814 main ()
7815 {
7816 static int test_array [1 - 2 * !(((long) (sizeof (void*))) < 0)];
7817 test_array [0] = 0
7818
7819   ;
7820   return 0;
7821 }
7822 _ACEOF
7823 rm -f conftest.$ac_objext
7824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7825   (eval $ac_compile) 2>conftest.er1
7826   ac_status=$?
7827   grep -v '^ *+' conftest.er1 >conftest.err
7828   rm -f conftest.er1
7829   cat conftest.err >&5
7830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7831   (exit $ac_status); } &&
7832          { ac_try='test -z "$ac_c_werror_flag"
7833                          || test ! -s conftest.err'
7834   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7835   (eval $ac_try) 2>&5
7836   ac_status=$?
7837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7838   (exit $ac_status); }; } &&
7839          { ac_try='test -s conftest.$ac_objext'
7840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7841   (eval $ac_try) 2>&5
7842   ac_status=$?
7843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7844   (exit $ac_status); }; }; then
7845   ac_hi=-1 ac_mid=-1
7846   while :; do
7847     cat >conftest.$ac_ext <<_ACEOF
7848 /* confdefs.h.  */
7849 _ACEOF
7850 cat confdefs.h >>conftest.$ac_ext
7851 cat >>conftest.$ac_ext <<_ACEOF
7852 /* end confdefs.h.  */
7853 $ac_includes_default
7854 int
7855 main ()
7856 {
7857 static int test_array [1 - 2 * !(((long) (sizeof (void*))) >= $ac_mid)];
7858 test_array [0] = 0
7859
7860   ;
7861   return 0;
7862 }
7863 _ACEOF
7864 rm -f conftest.$ac_objext
7865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7866   (eval $ac_compile) 2>conftest.er1
7867   ac_status=$?
7868   grep -v '^ *+' conftest.er1 >conftest.err
7869   rm -f conftest.er1
7870   cat conftest.err >&5
7871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7872   (exit $ac_status); } &&
7873          { ac_try='test -z "$ac_c_werror_flag"
7874                          || test ! -s conftest.err'
7875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7876   (eval $ac_try) 2>&5
7877   ac_status=$?
7878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7879   (exit $ac_status); }; } &&
7880          { ac_try='test -s conftest.$ac_objext'
7881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7882   (eval $ac_try) 2>&5
7883   ac_status=$?
7884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7885   (exit $ac_status); }; }; then
7886   ac_lo=$ac_mid; break
7887 else
7888   echo "$as_me: failed program was:" >&5
7889 sed 's/^/| /' conftest.$ac_ext >&5
7890
7891 ac_hi=`expr '(' $ac_mid ')' - 1`
7892                        if test $ac_mid -le $ac_hi; then
7893                          ac_lo= ac_hi=
7894                          break
7895                        fi
7896                        ac_mid=`expr 2 '*' $ac_mid`
7897 fi
7898 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7899   done
7900 else
7901   echo "$as_me: failed program was:" >&5
7902 sed 's/^/| /' conftest.$ac_ext >&5
7903
7904 ac_lo= ac_hi=
7905 fi
7906 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7907 fi
7908 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7909 # Binary search between lo and hi bounds.
7910 while test "x$ac_lo" != "x$ac_hi"; do
7911   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7912   cat >conftest.$ac_ext <<_ACEOF
7913 /* confdefs.h.  */
7914 _ACEOF
7915 cat confdefs.h >>conftest.$ac_ext
7916 cat >>conftest.$ac_ext <<_ACEOF
7917 /* end confdefs.h.  */
7918 $ac_includes_default
7919 int
7920 main ()
7921 {
7922 static int test_array [1 - 2 * !(((long) (sizeof (void*))) <= $ac_mid)];
7923 test_array [0] = 0
7924
7925   ;
7926   return 0;
7927 }
7928 _ACEOF
7929 rm -f conftest.$ac_objext
7930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7931   (eval $ac_compile) 2>conftest.er1
7932   ac_status=$?
7933   grep -v '^ *+' conftest.er1 >conftest.err
7934   rm -f conftest.er1
7935   cat conftest.err >&5
7936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7937   (exit $ac_status); } &&
7938          { ac_try='test -z "$ac_c_werror_flag"
7939                          || test ! -s conftest.err'
7940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7941   (eval $ac_try) 2>&5
7942   ac_status=$?
7943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7944   (exit $ac_status); }; } &&
7945          { ac_try='test -s conftest.$ac_objext'
7946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7947   (eval $ac_try) 2>&5
7948   ac_status=$?
7949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7950   (exit $ac_status); }; }; then
7951   ac_hi=$ac_mid
7952 else
7953   echo "$as_me: failed program was:" >&5
7954 sed 's/^/| /' conftest.$ac_ext >&5
7955
7956 ac_lo=`expr '(' $ac_mid ')' + 1`
7957 fi
7958 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7959 done
7960 case $ac_lo in
7961 ?*) ac_cv_sizeof_voidp=$ac_lo;;
7962 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void*), 77
7963 See \`config.log' for more details." >&5
7964 echo "$as_me: error: cannot compute sizeof (void*), 77
7965 See \`config.log' for more details." >&2;}
7966    { (exit 1); exit 1; }; } ;;
7967 esac
7968 else
7969   if test "$cross_compiling" = yes; then
7970   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7971 See \`config.log' for more details." >&5
7972 echo "$as_me: error: cannot run test program while cross compiling
7973 See \`config.log' for more details." >&2;}
7974    { (exit 1); exit 1; }; }
7975 else
7976   cat >conftest.$ac_ext <<_ACEOF
7977 /* confdefs.h.  */
7978 _ACEOF
7979 cat confdefs.h >>conftest.$ac_ext
7980 cat >>conftest.$ac_ext <<_ACEOF
7981 /* end confdefs.h.  */
7982 $ac_includes_default
7983 long longval () { return (long) (sizeof (void*)); }
7984 unsigned long ulongval () { return (long) (sizeof (void*)); }
7985 #include <stdio.h>
7986 #include <stdlib.h>
7987 int
7988 main ()
7989 {
7990
7991   FILE *f = fopen ("conftest.val", "w");
7992   if (! f)
7993     exit (1);
7994   if (((long) (sizeof (void*))) < 0)
7995     {
7996       long i = longval ();
7997       if (i != ((long) (sizeof (void*))))
7998         exit (1);
7999       fprintf (f, "%ld\n", i);
8000     }
8001   else
8002     {
8003       unsigned long i = ulongval ();
8004       if (i != ((long) (sizeof (void*))))
8005         exit (1);
8006       fprintf (f, "%lu\n", i);
8007     }
8008   exit (ferror (f) || fclose (f) != 0);
8009
8010   ;
8011   return 0;
8012 }
8013 _ACEOF
8014 rm -f conftest$ac_exeext
8015 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8016   (eval $ac_link) 2>&5
8017   ac_status=$?
8018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8019   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8021   (eval $ac_try) 2>&5
8022   ac_status=$?
8023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8024   (exit $ac_status); }; }; then
8025   ac_cv_sizeof_voidp=`cat conftest.val`
8026 else
8027   echo "$as_me: program exited with status $ac_status" >&5
8028 echo "$as_me: failed program was:" >&5
8029 sed 's/^/| /' conftest.$ac_ext >&5
8030
8031 ( exit $ac_status )
8032 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void*), 77
8033 See \`config.log' for more details." >&5
8034 echo "$as_me: error: cannot compute sizeof (void*), 77
8035 See \`config.log' for more details." >&2;}
8036    { (exit 1); exit 1; }; }
8037 fi
8038 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8039 fi
8040 fi
8041 rm -f conftest.val
8042 else
8043   ac_cv_sizeof_voidp=0
8044 fi
8045 fi
8046 echo "$as_me:$LINENO: result: $ac_cv_sizeof_voidp" >&5
8047 echo "${ECHO_T}$ac_cv_sizeof_voidp" >&6
8048 cat >>confdefs.h <<_ACEOF
8049 #define SIZEOF_VOIDP $ac_cv_sizeof_voidp
8050 _ACEOF
8051
8052
8053    ac_cv_stdint_char_model=""
8054    ac_cv_stdint_char_model="$ac_cv_stdint_char_model$ac_cv_sizeof_char"
8055    ac_cv_stdint_char_model="$ac_cv_stdint_char_model$ac_cv_sizeof_short"
8056    ac_cv_stdint_char_model="$ac_cv_stdint_char_model$ac_cv_sizeof_int"
8057    ac_cv_stdint_long_model=""
8058    ac_cv_stdint_long_model="$ac_cv_stdint_long_model$ac_cv_sizeof_int"
8059    ac_cv_stdint_long_model="$ac_cv_stdint_long_model$ac_cv_sizeof_long"
8060    ac_cv_stdint_long_model="$ac_cv_stdint_long_model$ac_cv_sizeof_voidp"
8061    name="$ac_cv_stdint_long_model"
8062    case "$ac_cv_stdint_char_model/$ac_cv_stdint_long_model" in
8063     122/242)     name="$name,  IP16 (standard 16bit machine)" ;;
8064     122/244)     name="$name,  LP32 (standard 32bit mac/win)" ;;
8065     122/*)       name="$name        (unusual int16 model)" ;;
8066     124/444)     name="$name, ILP32 (standard 32bit unixish)" ;;
8067     124/488)     name="$name,  LP64 (standard 64bit unixish)" ;;
8068     124/448)     name="$name, LLP64 (unusual  64bit unixish)" ;;
8069     124/*)       name="$name        (unusual int32 model)" ;;
8070     128/888)     name="$name, ILP64 (unusual  64bit numeric)" ;;
8071     128/*)       name="$name        (unusual int64 model)" ;;
8072     222/*|444/*) name="$name        (unusual dsptype)" ;;
8073      *)          name="$name        (very unusal model)" ;;
8074    esac
8075    echo "$as_me:$LINENO: result: combined for stdint datatype model...  $name" >&5
8076 echo "${ECHO_T}combined for stdint datatype model...  $name" >&6
8077 fi
8078
8079 if test "_$ac_cv_header_stdint_x" != "_" ; then
8080    ac_cv_header_stdint="$ac_cv_header_stdint_x"
8081 elif  test "_$ac_cv_header_stdint_o" != "_" ; then
8082    ac_cv_header_stdint="$ac_cv_header_stdint_o"
8083 elif  test "_$ac_cv_header_stdint_u" != "_" ; then
8084    ac_cv_header_stdint="$ac_cv_header_stdint_u"
8085 else
8086    ac_cv_header_stdint="stddef.h"
8087 fi
8088
8089 echo "$as_me:$LINENO: checking for extra inttypes in chosen header" >&5
8090 echo $ECHO_N "checking for extra inttypes in chosen header... $ECHO_C" >&6
8091 echo "$as_me:$LINENO: result: ($ac_cv_header_stdint)" >&5
8092 echo "${ECHO_T}($ac_cv_header_stdint)" >&6
8093 unset ac_cv_type_int_least32_t
8094 unset ac_cv_type_int_fast32_t
8095 echo "$as_me:$LINENO: checking for int_least32_t" >&5
8096 echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6
8097 if test "${ac_cv_type_int_least32_t+set}" = set; then
8098   echo $ECHO_N "(cached) $ECHO_C" >&6
8099 else
8100   cat >conftest.$ac_ext <<_ACEOF
8101 /* confdefs.h.  */
8102 _ACEOF
8103 cat confdefs.h >>conftest.$ac_ext
8104 cat >>conftest.$ac_ext <<_ACEOF
8105 /* end confdefs.h.  */
8106 #include <$ac_cv_header_stdint>
8107
8108 int
8109 main ()
8110 {
8111 if ((int_least32_t *) 0)
8112   return 0;
8113 if (sizeof (int_least32_t))
8114   return 0;
8115   ;
8116   return 0;
8117 }
8118 _ACEOF
8119 rm -f conftest.$ac_objext
8120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8121   (eval $ac_compile) 2>conftest.er1
8122   ac_status=$?
8123   grep -v '^ *+' conftest.er1 >conftest.err
8124   rm -f conftest.er1
8125   cat conftest.err >&5
8126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8127   (exit $ac_status); } &&
8128          { ac_try='test -z "$ac_c_werror_flag"
8129                          || test ! -s conftest.err'
8130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8131   (eval $ac_try) 2>&5
8132   ac_status=$?
8133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8134   (exit $ac_status); }; } &&
8135          { ac_try='test -s conftest.$ac_objext'
8136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8137   (eval $ac_try) 2>&5
8138   ac_status=$?
8139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8140   (exit $ac_status); }; }; then
8141   ac_cv_type_int_least32_t=yes
8142 else
8143   echo "$as_me: failed program was:" >&5
8144 sed 's/^/| /' conftest.$ac_ext >&5
8145
8146 ac_cv_type_int_least32_t=no
8147 fi
8148 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8149 fi
8150 echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5
8151 echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6
8152
8153 echo "$as_me:$LINENO: checking for int_fast32_t" >&5
8154 echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6
8155 if test "${ac_cv_type_int_fast32_t+set}" = set; then
8156   echo $ECHO_N "(cached) $ECHO_C" >&6
8157 else
8158   cat >conftest.$ac_ext <<_ACEOF
8159 /* confdefs.h.  */
8160 _ACEOF
8161 cat confdefs.h >>conftest.$ac_ext
8162 cat >>conftest.$ac_ext <<_ACEOF
8163 /* end confdefs.h.  */
8164 #include<$ac_cv_header_stdint>
8165
8166 int
8167 main ()
8168 {
8169 if ((int_fast32_t *) 0)
8170   return 0;
8171 if (sizeof (int_fast32_t))
8172   return 0;
8173   ;
8174   return 0;
8175 }
8176 _ACEOF
8177 rm -f conftest.$ac_objext
8178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8179   (eval $ac_compile) 2>conftest.er1
8180   ac_status=$?
8181   grep -v '^ *+' conftest.er1 >conftest.err
8182   rm -f conftest.er1
8183   cat conftest.err >&5
8184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8185   (exit $ac_status); } &&
8186          { ac_try='test -z "$ac_c_werror_flag"
8187                          || test ! -s conftest.err'
8188   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8189   (eval $ac_try) 2>&5
8190   ac_status=$?
8191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8192   (exit $ac_status); }; } &&
8193          { ac_try='test -s conftest.$ac_objext'
8194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8195   (eval $ac_try) 2>&5
8196   ac_status=$?
8197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8198   (exit $ac_status); }; }; then
8199   ac_cv_type_int_fast32_t=yes
8200 else
8201   echo "$as_me: failed program was:" >&5
8202 sed 's/^/| /' conftest.$ac_ext >&5
8203
8204 ac_cv_type_int_fast32_t=no
8205 fi
8206 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8207 fi
8208 echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5
8209 echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6
8210
8211 echo "$as_me:$LINENO: checking for intmax_t" >&5
8212 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
8213 if test "${ac_cv_type_intmax_t+set}" = set; then
8214   echo $ECHO_N "(cached) $ECHO_C" >&6
8215 else
8216   cat >conftest.$ac_ext <<_ACEOF
8217 /* confdefs.h.  */
8218 _ACEOF
8219 cat confdefs.h >>conftest.$ac_ext
8220 cat >>conftest.$ac_ext <<_ACEOF
8221 /* end confdefs.h.  */
8222 #include <$ac_cv_header_stdint>
8223
8224 int
8225 main ()
8226 {
8227 if ((intmax_t *) 0)
8228   return 0;
8229 if (sizeof (intmax_t))
8230   return 0;
8231   ;
8232   return 0;
8233 }
8234 _ACEOF
8235 rm -f conftest.$ac_objext
8236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8237   (eval $ac_compile) 2>conftest.er1
8238   ac_status=$?
8239   grep -v '^ *+' conftest.er1 >conftest.err
8240   rm -f conftest.er1
8241   cat conftest.err >&5
8242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8243   (exit $ac_status); } &&
8244          { ac_try='test -z "$ac_c_werror_flag"
8245                          || test ! -s conftest.err'
8246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8247   (eval $ac_try) 2>&5
8248   ac_status=$?
8249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8250   (exit $ac_status); }; } &&
8251          { ac_try='test -s conftest.$ac_objext'
8252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8253   (eval $ac_try) 2>&5
8254   ac_status=$?
8255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8256   (exit $ac_status); }; }; then
8257   ac_cv_type_intmax_t=yes
8258 else
8259   echo "$as_me: failed program was:" >&5
8260 sed 's/^/| /' conftest.$ac_ext >&5
8261
8262 ac_cv_type_intmax_t=no
8263 fi
8264 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8265 fi
8266 echo "$as_me:$LINENO: result: $ac_cv_type_intmax_t" >&5
8267 echo "${ECHO_T}$ac_cv_type_intmax_t" >&6
8268
8269
8270 fi # shortcircut to system "stdint.h"
8271 # ------------------ PREPARE VARIABLES ------------------------------
8272 if test "$GCC" = "yes" ; then
8273 ac_cv_stdint_message="using gnu compiler "`$CC --version | head -1`
8274 else
8275 ac_cv_stdint_message="using $CC"
8276 fi
8277
8278 echo "$as_me:$LINENO: result: make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&5
8279 echo "${ECHO_T}make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&6
8280
8281 # ----------------- DONE inttypes.h checks START header -------------
8282           ac_config_commands="$ac_config_commands $ac_stdint_h"
8283
8284
8285
8286 for ac_prog in ar
8287 do
8288   # Extract the first word of "$ac_prog", so it can be a program name with args.
8289 set dummy $ac_prog; ac_word=$2
8290 echo "$as_me:$LINENO: checking for $ac_word" >&5
8291 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8292 if test "${ac_cv_path_AR+set}" = set; then
8293   echo $ECHO_N "(cached) $ECHO_C" >&6
8294 else
8295   case $AR in
8296   [\\/]* | ?:[\\/]*)
8297   ac_cv_path_AR="$AR" # Let the user override the test with a path.
8298   ;;
8299   *)
8300   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8301 for as_dir in $LOCSYSPATH
8302 do
8303   IFS=$as_save_IFS
8304   test -z "$as_dir" && as_dir=.
8305   for ac_exec_ext in '' $ac_executable_extensions; do
8306   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8307     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
8308     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8309     break 2
8310   fi
8311 done
8312 done
8313
8314   ;;
8315 esac
8316 fi
8317 AR=$ac_cv_path_AR
8318
8319 if test -n "$AR"; then
8320   echo "$as_me:$LINENO: result: $AR" >&5
8321 echo "${ECHO_T}$AR" >&6
8322 else
8323   echo "$as_me:$LINENO: result: no" >&5
8324 echo "${ECHO_T}no" >&6
8325 fi
8326
8327   test -n "$AR" && break
8328 done
8329
8330
8331 for ac_prog in gawk mawk nawk awk
8332 do
8333   # Extract the first word of "$ac_prog", so it can be a program name with args.
8334 set dummy $ac_prog; ac_word=$2
8335 echo "$as_me:$LINENO: checking for $ac_word" >&5
8336 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8337 if test "${ac_cv_prog_AWK+set}" = set; then
8338   echo $ECHO_N "(cached) $ECHO_C" >&6
8339 else
8340   if test -n "$AWK"; then
8341   ac_cv_prog_AWK="$AWK" # Let the user override the test.
8342 else
8343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8344 for as_dir in $PATH
8345 do
8346   IFS=$as_save_IFS
8347   test -z "$as_dir" && as_dir=.
8348   for ac_exec_ext in '' $ac_executable_extensions; do
8349   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8350     ac_cv_prog_AWK="$ac_prog"
8351     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8352     break 2
8353   fi
8354 done
8355 done
8356
8357 fi
8358 fi
8359 AWK=$ac_cv_prog_AWK
8360 if test -n "$AWK"; then
8361   echo "$as_me:$LINENO: result: $AWK" >&5
8362 echo "${ECHO_T}$AWK" >&6
8363 else
8364   echo "$as_me:$LINENO: result: no" >&5
8365 echo "${ECHO_T}no" >&6
8366 fi
8367
8368   test -n "$AWK" && break
8369 done
8370
8371
8372
8373         echo "$as_me:$LINENO: checking for $AWK command line variable assignment" >&5
8374 echo $ECHO_N "checking for $AWK command line variable assignment... $ECHO_C" >&6
8375 if test "${amanda_cv_awk_var_assignment+set}" = set; then
8376   echo $ECHO_N "(cached) $ECHO_C" >&6
8377 else
8378
8379                 echo 'BEGIN{print i; exit}' > conftest.awk
8380                 result=`$AWK -f conftest.awk i=xx | wc -c`
8381                 if test "$result" -le 1; then
8382                     result=`$AWK -f conftest.awk -v i=xx | wc -c`
8383                     if test "$result" -le 1; then
8384                         amanda_cv_awk_var_assignment=no
8385                     else
8386                         amanda_cv_awk_var_assignment="yes with -v"
8387                     fi
8388                 else
8389                     amanda_cv_awk_var_assignment="yes"
8390                 fi
8391                 rm -fr conftest.awk
8392
8393
8394 fi
8395 echo "$as_me:$LINENO: result: $amanda_cv_awk_var_assignment" >&5
8396 echo "${ECHO_T}$amanda_cv_awk_var_assignment" >&6
8397         AWK_VAR_ASSIGNMENT_OPT=
8398         case "$amanda_cv_awk_var_assignment" in
8399             no)
8400                 HAVE_AWK_WITH_VAR=no
8401                 ;;
8402             yes)
8403                 HAVE_AWK_WITH_VAR=yes
8404                 ;;
8405             "yes with -v")
8406                 HAVE_AWK_WITH_VAR=yes
8407                 AWK_VAR_ASSIGNMENT_OPT=-v
8408                 ;;
8409         esac
8410
8411
8412
8413 if test "$amanda_cv_awk_var_assignment" = no; then
8414     NO_AMPLOT_MODE=true
8415     { echo "$as_me:$LINENO: WARNING: *** Your $awk cannot do command line variable assignment.  Amplot will not be installed." >&5
8416 echo "$as_me: WARNING: *** Your $awk cannot do command line variable assignment.  Amplot will not be installed." >&2;}
8417 fi
8418
8419 for ac_prog in 'bison -y' byacc
8420 do
8421   # Extract the first word of "$ac_prog", so it can be a program name with args.
8422 set dummy $ac_prog; ac_word=$2
8423 echo "$as_me:$LINENO: checking for $ac_word" >&5
8424 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8425 if test "${ac_cv_prog_YACC+set}" = set; then
8426   echo $ECHO_N "(cached) $ECHO_C" >&6
8427 else
8428   if test -n "$YACC"; then
8429   ac_cv_prog_YACC="$YACC" # Let the user override the test.
8430 else
8431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8432 for as_dir in $PATH
8433 do
8434   IFS=$as_save_IFS
8435   test -z "$as_dir" && as_dir=.
8436   for ac_exec_ext in '' $ac_executable_extensions; do
8437   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8438     ac_cv_prog_YACC="$ac_prog"
8439     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8440     break 2
8441   fi
8442 done
8443 done
8444
8445 fi
8446 fi
8447 YACC=$ac_cv_prog_YACC
8448 if test -n "$YACC"; then
8449   echo "$as_me:$LINENO: result: $YACC" >&5
8450 echo "${ECHO_T}$YACC" >&6
8451 else
8452   echo "$as_me:$LINENO: result: no" >&5
8453 echo "${ECHO_T}no" >&6
8454 fi
8455
8456   test -n "$YACC" && break
8457 done
8458 test -n "$YACC" || YACC="yacc"
8459
8460 for ac_prog in cat
8461 do
8462   # Extract the first word of "$ac_prog", so it can be a program name with args.
8463 set dummy $ac_prog; ac_word=$2
8464 echo "$as_me:$LINENO: checking for $ac_word" >&5
8465 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8466 if test "${ac_cv_path_CAT+set}" = set; then
8467   echo $ECHO_N "(cached) $ECHO_C" >&6
8468 else
8469   case $CAT in
8470   [\\/]* | ?:[\\/]*)
8471   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
8472   ;;
8473   *)
8474   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8475 for as_dir in $LOCSYSPATH
8476 do
8477   IFS=$as_save_IFS
8478   test -z "$as_dir" && as_dir=.
8479   for ac_exec_ext in '' $ac_executable_extensions; do
8480   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8481     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
8482     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8483     break 2
8484   fi
8485 done
8486 done
8487
8488   ;;
8489 esac
8490 fi
8491 CAT=$ac_cv_path_CAT
8492
8493 if test -n "$CAT"; then
8494   echo "$as_me:$LINENO: result: $CAT" >&5
8495 echo "${ECHO_T}$CAT" >&6
8496 else
8497   echo "$as_me:$LINENO: result: no" >&5
8498 echo "${ECHO_T}no" >&6
8499 fi
8500
8501   test -n "$CAT" && break
8502 done
8503
8504 if test -z "$CAT"; then
8505     CAT=cat
8506 fi
8507 for ac_prog in compress
8508 do
8509   # Extract the first word of "$ac_prog", so it can be a program name with args.
8510 set dummy $ac_prog; ac_word=$2
8511 echo "$as_me:$LINENO: checking for $ac_word" >&5
8512 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8513 if test "${ac_cv_path_COMPRESS+set}" = set; then
8514   echo $ECHO_N "(cached) $ECHO_C" >&6
8515 else
8516   case $COMPRESS in
8517   [\\/]* | ?:[\\/]*)
8518   ac_cv_path_COMPRESS="$COMPRESS" # Let the user override the test with a path.
8519   ;;
8520   *)
8521   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8522 for as_dir in $LOCSYSPATH
8523 do
8524   IFS=$as_save_IFS
8525   test -z "$as_dir" && as_dir=.
8526   for ac_exec_ext in '' $ac_executable_extensions; do
8527   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8528     ac_cv_path_COMPRESS="$as_dir/$ac_word$ac_exec_ext"
8529     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8530     break 2
8531   fi
8532 done
8533 done
8534
8535   ;;
8536 esac
8537 fi
8538 COMPRESS=$ac_cv_path_COMPRESS
8539
8540 if test -n "$COMPRESS"; then
8541   echo "$as_me:$LINENO: result: $COMPRESS" >&5
8542 echo "${ECHO_T}$COMPRESS" >&6
8543 else
8544   echo "$as_me:$LINENO: result: no" >&5
8545 echo "${ECHO_T}no" >&6
8546 fi
8547
8548   test -n "$COMPRESS" && break
8549 done
8550
8551 for ac_prog in dd
8552 do
8553   # Extract the first word of "$ac_prog", so it can be a program name with args.
8554 set dummy $ac_prog; ac_word=$2
8555 echo "$as_me:$LINENO: checking for $ac_word" >&5
8556 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8557 if test "${ac_cv_path_DD+set}" = set; then
8558   echo $ECHO_N "(cached) $ECHO_C" >&6
8559 else
8560   case $DD in
8561   [\\/]* | ?:[\\/]*)
8562   ac_cv_path_DD="$DD" # Let the user override the test with a path.
8563   ;;
8564   *)
8565   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8566 for as_dir in $LOCSYSPATH
8567 do
8568   IFS=$as_save_IFS
8569   test -z "$as_dir" && as_dir=.
8570   for ac_exec_ext in '' $ac_executable_extensions; do
8571   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8572     ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
8573     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8574     break 2
8575   fi
8576 done
8577 done
8578
8579   ;;
8580 esac
8581 fi
8582 DD=$ac_cv_path_DD
8583
8584 if test -n "$DD"; then
8585   echo "$as_me:$LINENO: result: $DD" >&5
8586 echo "${ECHO_T}$DD" >&6
8587 else
8588   echo "$as_me:$LINENO: result: no" >&5
8589 echo "${ECHO_T}no" >&6
8590 fi
8591
8592   test -n "$DD" && break
8593 done
8594
8595 for ac_prog in egrep
8596 do
8597   # Extract the first word of "$ac_prog", so it can be a program name with args.
8598 set dummy $ac_prog; ac_word=$2
8599 echo "$as_me:$LINENO: checking for $ac_word" >&5
8600 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8601 if test "${ac_cv_path_EGREP+set}" = set; then
8602   echo $ECHO_N "(cached) $ECHO_C" >&6
8603 else
8604   case $EGREP in
8605   [\\/]* | ?:[\\/]*)
8606   ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
8607   ;;
8608   *)
8609   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8610 for as_dir in $LOCSYSPATH
8611 do
8612   IFS=$as_save_IFS
8613   test -z "$as_dir" && as_dir=.
8614   for ac_exec_ext in '' $ac_executable_extensions; do
8615   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8616     ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext"
8617     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8618     break 2
8619   fi
8620 done
8621 done
8622
8623   ;;
8624 esac
8625 fi
8626 EGREP=$ac_cv_path_EGREP
8627
8628 if test -n "$EGREP"; then
8629   echo "$as_me:$LINENO: result: $EGREP" >&5
8630 echo "${ECHO_T}$EGREP" >&6
8631 else
8632   echo "$as_me:$LINENO: result: no" >&5
8633 echo "${ECHO_T}no" >&6
8634 fi
8635
8636   test -n "$EGREP" && break
8637 done
8638
8639 for ac_prog in getconf
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_GETCONF+set}" = set; then
8646   echo $ECHO_N "(cached) $ECHO_C" >&6
8647 else
8648   case $GETCONF in
8649   [\\/]* | ?:[\\/]*)
8650   ac_cv_path_GETCONF="$GETCONF" # Let the user override the test with a path.
8651   ;;
8652   *)
8653   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8654 for as_dir in $SYSPATH
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_GETCONF="$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 GETCONF=$ac_cv_path_GETCONF
8671
8672 if test -n "$GETCONF"; then
8673   echo "$as_me:$LINENO: result: $GETCONF" >&5
8674 echo "${ECHO_T}$GETCONF" >&6
8675 else
8676   echo "$as_me:$LINENO: result: no" >&5
8677 echo "${ECHO_T}no" >&6
8678 fi
8679
8680   test -n "$GETCONF" && break
8681 done
8682
8683
8684 for ac_prog in gnuplot
8685 do
8686   # Extract the first word of "$ac_prog", so it can be a program name with args.
8687 set dummy $ac_prog; ac_word=$2
8688 echo "$as_me:$LINENO: checking for $ac_word" >&5
8689 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8690 if test "${ac_cv_path_GNUPLOT+set}" = set; then
8691   echo $ECHO_N "(cached) $ECHO_C" >&6
8692 else
8693   case $GNUPLOT in
8694   [\\/]* | ?:[\\/]*)
8695   ac_cv_path_GNUPLOT="$GNUPLOT" # Let the user override the test with a path.
8696   ;;
8697   *)
8698   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8699 for as_dir in $LOCSYSPATH
8700 do
8701   IFS=$as_save_IFS
8702   test -z "$as_dir" && as_dir=.
8703   for ac_exec_ext in '' $ac_executable_extensions; do
8704   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8705     ac_cv_path_GNUPLOT="$as_dir/$ac_word$ac_exec_ext"
8706     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8707     break 2
8708   fi
8709 done
8710 done
8711
8712   ;;
8713 esac
8714 fi
8715 GNUPLOT=$ac_cv_path_GNUPLOT
8716
8717 if test -n "$GNUPLOT"; then
8718   echo "$as_me:$LINENO: result: $GNUPLOT" >&5
8719 echo "${ECHO_T}$GNUPLOT" >&6
8720 else
8721   echo "$as_me:$LINENO: result: no" >&5
8722 echo "${ECHO_T}no" >&6
8723 fi
8724
8725   test -n "$GNUPLOT" && break
8726 done
8727
8728 if test -z "$GNUPLOT"; then
8729     NO_AMPLOT_MODE=true
8730     { echo "$as_me:$LINENO: WARNING: *** You do not have gnuplot.  Amplot will not be installed." >&5
8731 echo "$as_me: WARNING: *** You do not have gnuplot.  Amplot will not be installed." >&2;}
8732 fi
8733
8734 for ac_prog in grep
8735 do
8736   # Extract the first word of "$ac_prog", so it can be a program name with args.
8737 set dummy $ac_prog; ac_word=$2
8738 echo "$as_me:$LINENO: checking for $ac_word" >&5
8739 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8740 if test "${ac_cv_path_GREP+set}" = set; then
8741   echo $ECHO_N "(cached) $ECHO_C" >&6
8742 else
8743   case $GREP in
8744   [\\/]* | ?:[\\/]*)
8745   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
8746   ;;
8747   *)
8748   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8749 for as_dir in $LOCSYSPATH
8750 do
8751   IFS=$as_save_IFS
8752   test -z "$as_dir" && as_dir=.
8753   for ac_exec_ext in '' $ac_executable_extensions; do
8754   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8755     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
8756     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8757     break 2
8758   fi
8759 done
8760 done
8761
8762   ;;
8763 esac
8764 fi
8765 GREP=$ac_cv_path_GREP
8766
8767 if test -n "$GREP"; then
8768   echo "$as_me:$LINENO: result: $GREP" >&5
8769 echo "${ECHO_T}$GREP" >&6
8770 else
8771   echo "$as_me:$LINENO: result: no" >&5
8772 echo "${ECHO_T}no" >&6
8773 fi
8774
8775   test -n "$GREP" && break
8776 done
8777
8778 if test -z "$GREP"; then
8779     GREP=grep
8780 fi
8781
8782 cat >>confdefs.h <<_ACEOF
8783 #define GREP "$GREP"
8784 _ACEOF
8785
8786
8787 for ac_prog in gtar gnutar tar
8788 do
8789   # Extract the first word of "$ac_prog", so it can be a program name with args.
8790 set dummy $ac_prog; ac_word=$2
8791 echo "$as_me:$LINENO: checking for $ac_word" >&5
8792 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8793 if test "${ac_cv_path_GNUTAR+set}" = set; then
8794   echo $ECHO_N "(cached) $ECHO_C" >&6
8795 else
8796   case $GNUTAR in
8797   [\\/]* | ?:[\\/]*)
8798   ac_cv_path_GNUTAR="$GNUTAR" # Let the user override the test with a path.
8799   ;;
8800   *)
8801   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8802 for as_dir in $LOCSYSPATH
8803 do
8804   IFS=$as_save_IFS
8805   test -z "$as_dir" && as_dir=.
8806   for ac_exec_ext in '' $ac_executable_extensions; do
8807   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8808     ac_cv_path_GNUTAR="$as_dir/$ac_word$ac_exec_ext"
8809     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8810     break 2
8811   fi
8812 done
8813 done
8814
8815   ;;
8816 esac
8817 fi
8818 GNUTAR=$ac_cv_path_GNUTAR
8819
8820 if test -n "$GNUTAR"; then
8821   echo "$as_me:$LINENO: result: $GNUTAR" >&5
8822 echo "${ECHO_T}$GNUTAR" >&6
8823 else
8824   echo "$as_me:$LINENO: result: no" >&5
8825 echo "${ECHO_T}no" >&6
8826 fi
8827
8828   test -n "$GNUTAR" && break
8829 done
8830
8831 if test ! -z "$GNUTAR"; then
8832   case "`\"$GNUTAR\" --version 2>&1`" in
8833    *GNU*tar* | *Free*paxutils* )
8834
8835 cat >>confdefs.h <<_ACEOF
8836 #define GNUTAR "$GNUTAR"
8837 _ACEOF
8838
8839                 ;;
8840    *)
8841                 { echo "$as_me:$LINENO: WARNING: *** $GNUTAR is not GNU tar, so it will not be used." >&5
8842 echo "$as_me: WARNING: *** $GNUTAR is not GNU tar, so it will not be used." >&2;}
8843                 GNUTAR=
8844                 ;;
8845   esac
8846 fi
8847
8848 if test "x$SAMBA_CLIENT" != "xno"
8849 then for ac_prog in smbclient
8850 do
8851   # Extract the first word of "$ac_prog", so it can be a program name with args.
8852 set dummy $ac_prog; ac_word=$2
8853 echo "$as_me:$LINENO: checking for $ac_word" >&5
8854 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8855 if test "${ac_cv_path_SAMBA_CLIENT+set}" = set; then
8856   echo $ECHO_N "(cached) $ECHO_C" >&6
8857 else
8858   case $SAMBA_CLIENT in
8859   [\\/]* | ?:[\\/]*)
8860   ac_cv_path_SAMBA_CLIENT="$SAMBA_CLIENT" # Let the user override the test with a path.
8861   ;;
8862   *)
8863   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8864 for as_dir in $LOCSYSPATH
8865 do
8866   IFS=$as_save_IFS
8867   test -z "$as_dir" && as_dir=.
8868   for ac_exec_ext in '' $ac_executable_extensions; do
8869   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8870     ac_cv_path_SAMBA_CLIENT="$as_dir/$ac_word$ac_exec_ext"
8871     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8872     break 2
8873   fi
8874 done
8875 done
8876
8877   ;;
8878 esac
8879 fi
8880 SAMBA_CLIENT=$ac_cv_path_SAMBA_CLIENT
8881
8882 if test -n "$SAMBA_CLIENT"; then
8883   echo "$as_me:$LINENO: result: $SAMBA_CLIENT" >&5
8884 echo "${ECHO_T}$SAMBA_CLIENT" >&6
8885 else
8886   echo "$as_me:$LINENO: result: no" >&5
8887 echo "${ECHO_T}no" >&6
8888 fi
8889
8890   test -n "$SAMBA_CLIENT" && break
8891 done
8892
8893 else SAMBA_CLIENT=
8894 fi
8895 if test ! -z "$SAMBA_CLIENT"; then
8896   case "`\"$SAMBA_CLIENT\" '\\\\not.a.host.name\\notashare' -U nosuchuser -N -Tx /dev/null 2>&1`" in
8897   *"Unknown host"*)
8898                 smbversion=1
8899                 ;;
8900   *"Connection to not.a.host.name failed"*)
8901                 smbversion=2
8902                 ;;
8903   *)
8904                 { echo "$as_me:$LINENO: WARNING: *** $SAMBA_CLIENT does not seem to be smbclient, so it will not be used." >&5
8905 echo "$as_me: WARNING: *** $SAMBA_CLIENT does not seem to be smbclient, so it will not be used." >&2;}
8906                 SAMBA_CLIENT=
8907                 ;;
8908   esac
8909   if test -n "$SAMBA_CLIENT"; then
8910
8911 cat >>confdefs.h <<_ACEOF
8912 #define SAMBA_CLIENT "$SAMBA_CLIENT"
8913 _ACEOF
8914
8915
8916 cat >>confdefs.h <<_ACEOF
8917 #define SAMBA_VERSION $smbversion
8918 _ACEOF
8919
8920   fi
8921
8922 fi
8923
8924
8925 for ac_prog in gzip
8926 do
8927   # Extract the first word of "$ac_prog", so it can be a program name with args.
8928 set dummy $ac_prog; ac_word=$2
8929 echo "$as_me:$LINENO: checking for $ac_word" >&5
8930 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8931 if test "${ac_cv_path_GZIP+set}" = set; then
8932   echo $ECHO_N "(cached) $ECHO_C" >&6
8933 else
8934   case $GZIP in
8935   [\\/]* | ?:[\\/]*)
8936   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
8937   ;;
8938   *)
8939   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8940 for as_dir in $LOCSYSPATH
8941 do
8942   IFS=$as_save_IFS
8943   test -z "$as_dir" && as_dir=.
8944   for ac_exec_ext in '' $ac_executable_extensions; do
8945   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8946     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
8947     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8948     break 2
8949   fi
8950 done
8951 done
8952
8953   ;;
8954 esac
8955 fi
8956 GZIP=$ac_cv_path_GZIP
8957
8958 if test -n "$GZIP"; then
8959   echo "$as_me:$LINENO: result: $GZIP" >&5
8960 echo "${ECHO_T}$GZIP" >&6
8961 else
8962   echo "$as_me:$LINENO: result: no" >&5
8963 echo "${ECHO_T}no" >&6
8964 fi
8965
8966   test -n "$GZIP" && break
8967 done
8968
8969 if test "$GZIP"; then
8970
8971 cat >>confdefs.h <<\_ACEOF
8972 #define HAVE_GZIP 1
8973 _ACEOF
8974
8975     COMPRESS_PATH="$GZIP"
8976     COMPRESS_SUFFIX=".gz"
8977     COMPRESS_FAST_OPT="--fast"
8978     COMPRESS_BEST_OPT="--best"
8979     UNCOMPRESS_PATH="$GZIP"
8980     UNCOMPRESS_OPT="-dc"
8981 else
8982     if test "$COMPRESS"; then
8983         COMPRESS_PATH="$COMPRESS"
8984         COMPRESS_SUFFIX=".Z"
8985         COMPRESS_FAST_OPT="-f"
8986         COMPRESS_BEST_OPT="-f"
8987         UNCOMPRESS_PATH="$COMPRESS"
8988         UNCOMPRESS_OPT="-dc"
8989     else
8990                                 { echo "$as_me:$LINENO: WARNING: *** Cannot find either gzip or compress.  Using cat. ***" >&5
8991 echo "$as_me: WARNING: *** Cannot find either gzip or compress.  Using cat. ***" >&2;}
8992         COMPRESS_PATH="$CAT"
8993         COMPRESS_SUFFIX=""
8994         COMPRESS_FAST_OPT=""
8995         COMPRESS_BEST_OPT=""
8996         UNCOMPRESS_PATH="$CAT"
8997         UNCOMPRESS_OPT=""
8998     fi
8999 fi
9000
9001 cat >>confdefs.h <<_ACEOF
9002 #define COMPRESS_PATH "$COMPRESS_PATH"
9003 _ACEOF
9004
9005
9006 cat >>confdefs.h <<_ACEOF
9007 #define COMPRESS_SUFFIX "$COMPRESS_SUFFIX"
9008 _ACEOF
9009
9010
9011 cat >>confdefs.h <<_ACEOF
9012 #define COMPRESS_FAST_OPT "$COMPRESS_FAST_OPT"
9013 _ACEOF
9014
9015
9016 cat >>confdefs.h <<_ACEOF
9017 #define COMPRESS_BEST_OPT "$COMPRESS_BEST_OPT"
9018 _ACEOF
9019
9020
9021 cat >>confdefs.h <<_ACEOF
9022 #define UNCOMPRESS_PATH "$UNCOMPRESS_PATH"
9023 _ACEOF
9024
9025
9026 cat >>confdefs.h <<_ACEOF
9027 #define UNCOMPRESS_OPT "$UNCOMPRESS_OPT"
9028 _ACEOF
9029
9030
9031 for ac_prog in Mail mailx mail
9032 do
9033   # Extract the first word of "$ac_prog", so it can be a program name with args.
9034 set dummy $ac_prog; ac_word=$2
9035 echo "$as_me:$LINENO: checking for $ac_word" >&5
9036 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9037 if test "${ac_cv_path_MAILER+set}" = set; then
9038   echo $ECHO_N "(cached) $ECHO_C" >&6
9039 else
9040   case $MAILER in
9041   [\\/]* | ?:[\\/]*)
9042   ac_cv_path_MAILER="$MAILER" # Let the user override the test with a path.
9043   ;;
9044   *)
9045   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9046 for as_dir in $PATH
9047 do
9048   IFS=$as_save_IFS
9049   test -z "$as_dir" && as_dir=.
9050   for ac_exec_ext in '' $ac_executable_extensions; do
9051   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9052     ac_cv_path_MAILER="$as_dir/$ac_word$ac_exec_ext"
9053     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9054     break 2
9055   fi
9056 done
9057 done
9058
9059   ;;
9060 esac
9061 fi
9062 MAILER=$ac_cv_path_MAILER
9063
9064 if test -n "$MAILER"; then
9065   echo "$as_me:$LINENO: result: $MAILER" >&5
9066 echo "${ECHO_T}$MAILER" >&6
9067 else
9068   echo "$as_me:$LINENO: result: no" >&5
9069 echo "${ECHO_T}no" >&6
9070 fi
9071
9072   test -n "$MAILER" && break
9073 done
9074
9075 if test -z "$MAILER"; then
9076     if $NO_SERVER_MODE; then
9077         MAILER="NONE"
9078         { echo "$as_me:$LINENO: WARNING: *** WARNING: Amanda cannot send mail reports without these programs." >&5
9079 echo "$as_me: WARNING: *** WARNING: Amanda cannot send mail reports without these programs." >&2;}
9080     else
9081         { { echo "$as_me:$LINENO: error: Set MAILER to some program that accepts -s subject user < message_file." >&5
9082 echo "$as_me: error: Set MAILER to some program that accepts -s subject user < message_file." >&2;}
9083    { (exit 1); exit 1; }; }
9084     fi
9085 fi
9086
9087 cat >>confdefs.h <<_ACEOF
9088 #define MAILER "$MAILER"
9089 _ACEOF
9090
9091
9092 for ac_prog in mt
9093 do
9094   # Extract the first word of "$ac_prog", so it can be a program name with args.
9095 set dummy $ac_prog; ac_word=$2
9096 echo "$as_me:$LINENO: checking for $ac_word" >&5
9097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9098 if test "${ac_cv_path_MT+set}" = set; then
9099   echo $ECHO_N "(cached) $ECHO_C" >&6
9100 else
9101   case $MT in
9102   [\\/]* | ?:[\\/]*)
9103   ac_cv_path_MT="$MT" # Let the user override the test with a path.
9104   ;;
9105   *)
9106   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9107 for as_dir in $LOCSYSPATH
9108 do
9109   IFS=$as_save_IFS
9110   test -z "$as_dir" && as_dir=.
9111   for ac_exec_ext in '' $ac_executable_extensions; do
9112   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9113     ac_cv_path_MT="$as_dir/$ac_word$ac_exec_ext"
9114     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9115     break 2
9116   fi
9117 done
9118 done
9119
9120   ;;
9121 esac
9122 fi
9123 MT=$ac_cv_path_MT
9124
9125 if test -n "$MT"; then
9126   echo "$as_me:$LINENO: result: $MT" >&5
9127 echo "${ECHO_T}$MT" >&6
9128 else
9129   echo "$as_me:$LINENO: result: no" >&5
9130 echo "${ECHO_T}no" >&6
9131 fi
9132
9133   test -n "$MT" && break
9134 done
9135 test -n "$MT" || MT="mt"
9136
9137
9138 for ac_prog in chio
9139 do
9140   # Extract the first word of "$ac_prog", so it can be a program name with args.
9141 set dummy $ac_prog; ac_word=$2
9142 echo "$as_me:$LINENO: checking for $ac_word" >&5
9143 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9144 if test "${ac_cv_path_CHIO+set}" = set; then
9145   echo $ECHO_N "(cached) $ECHO_C" >&6
9146 else
9147   case $CHIO in
9148   [\\/]* | ?:[\\/]*)
9149   ac_cv_path_CHIO="$CHIO" # Let the user override the test with a path.
9150   ;;
9151   *)
9152   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9153 for as_dir in $LOCSYSPATH
9154 do
9155   IFS=$as_save_IFS
9156   test -z "$as_dir" && as_dir=.
9157   for ac_exec_ext in '' $ac_executable_extensions; do
9158   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9159     ac_cv_path_CHIO="$as_dir/$ac_word$ac_exec_ext"
9160     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9161     break 2
9162   fi
9163 done
9164 done
9165
9166   ;;
9167 esac
9168 fi
9169 CHIO=$ac_cv_path_CHIO
9170
9171 if test -n "$CHIO"; then
9172   echo "$as_me:$LINENO: result: $CHIO" >&5
9173 echo "${ECHO_T}$CHIO" >&6
9174 else
9175   echo "$as_me:$LINENO: result: no" >&5
9176 echo "${ECHO_T}no" >&6
9177 fi
9178
9179   test -n "$CHIO" && break
9180 done
9181 test -n "$CHIO" || CHIO="chio"
9182
9183
9184 for ac_prog in chs
9185 do
9186   # Extract the first word of "$ac_prog", so it can be a program name with args.
9187 set dummy $ac_prog; ac_word=$2
9188 echo "$as_me:$LINENO: checking for $ac_word" >&5
9189 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9190 if test "${ac_cv_path_CHS+set}" = set; then
9191   echo $ECHO_N "(cached) $ECHO_C" >&6
9192 else
9193   case $CHS in
9194   [\\/]* | ?:[\\/]*)
9195   ac_cv_path_CHS="$CHS" # Let the user override the test with a path.
9196   ;;
9197   *)
9198   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9199 for as_dir in $LOCSYSPATH
9200 do
9201   IFS=$as_save_IFS
9202   test -z "$as_dir" && as_dir=.
9203   for ac_exec_ext in '' $ac_executable_extensions; do
9204   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9205     ac_cv_path_CHS="$as_dir/$ac_word$ac_exec_ext"
9206     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9207     break 2
9208   fi
9209 done
9210 done
9211
9212   ;;
9213 esac
9214 fi
9215 CHS=$ac_cv_path_CHS
9216
9217 if test -n "$CHS"; then
9218   echo "$as_me:$LINENO: result: $CHS" >&5
9219 echo "${ECHO_T}$CHS" >&6
9220 else
9221   echo "$as_me:$LINENO: result: no" >&5
9222 echo "${ECHO_T}no" >&6
9223 fi
9224
9225   test -n "$CHS" && break
9226 done
9227 test -n "$CHS" || CHS="chs"
9228
9229
9230 for ac_prog in mtx
9231 do
9232   # Extract the first word of "$ac_prog", so it can be a program name with args.
9233 set dummy $ac_prog; ac_word=$2
9234 echo "$as_me:$LINENO: checking for $ac_word" >&5
9235 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9236 if test "${ac_cv_path_MTX+set}" = set; then
9237   echo $ECHO_N "(cached) $ECHO_C" >&6
9238 else
9239   case $MTX in
9240   [\\/]* | ?:[\\/]*)
9241   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
9242   ;;
9243   *)
9244   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9245 for as_dir in $LOCSYSPATH
9246 do
9247   IFS=$as_save_IFS
9248   test -z "$as_dir" && as_dir=.
9249   for ac_exec_ext in '' $ac_executable_extensions; do
9250   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9251     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
9252     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9253     break 2
9254   fi
9255 done
9256 done
9257
9258   ;;
9259 esac
9260 fi
9261 MTX=$ac_cv_path_MTX
9262
9263 if test -n "$MTX"; then
9264   echo "$as_me:$LINENO: result: $MTX" >&5
9265 echo "${ECHO_T}$MTX" >&6
9266 else
9267   echo "$as_me:$LINENO: result: no" >&5
9268 echo "${ECHO_T}no" >&6
9269 fi
9270
9271   test -n "$MTX" && break
9272 done
9273 test -n "$MTX" || MTX="mtx"
9274
9275
9276 for ac_prog in mcutil
9277 do
9278   # Extract the first word of "$ac_prog", so it can be a program name with args.
9279 set dummy $ac_prog; ac_word=$2
9280 echo "$as_me:$LINENO: checking for $ac_word" >&5
9281 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9282 if test "${ac_cv_path_MCUTIL+set}" = set; then
9283   echo $ECHO_N "(cached) $ECHO_C" >&6
9284 else
9285   case $MCUTIL in
9286   [\\/]* | ?:[\\/]*)
9287   ac_cv_path_MCUTIL="$MCUTIL" # Let the user override the test with a path.
9288   ;;
9289   *)
9290   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9291 for as_dir in $LOCSYSPATH
9292 do
9293   IFS=$as_save_IFS
9294   test -z "$as_dir" && as_dir=.
9295   for ac_exec_ext in '' $ac_executable_extensions; do
9296   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9297     ac_cv_path_MCUTIL="$as_dir/$ac_word$ac_exec_ext"
9298     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9299     break 2
9300   fi
9301 done
9302 done
9303
9304   ;;
9305 esac
9306 fi
9307 MCUTIL=$ac_cv_path_MCUTIL
9308
9309 if test -n "$MCUTIL"; then
9310   echo "$as_me:$LINENO: result: $MCUTIL" >&5
9311 echo "${ECHO_T}$MCUTIL" >&6
9312 else
9313   echo "$as_me:$LINENO: result: no" >&5
9314 echo "${ECHO_T}no" >&6
9315 fi
9316
9317   test -n "$MCUTIL" && break
9318 done
9319 test -n "$MCUTIL" || MCUTIL="mcutil"
9320
9321
9322 for ac_prog in lpr lp
9323 do
9324   # Extract the first word of "$ac_prog", so it can be a program name with args.
9325 set dummy $ac_prog; ac_word=$2
9326 echo "$as_me:$LINENO: checking for $ac_word" >&5
9327 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9328 if test "${ac_cv_path_PRINT+set}" = set; then
9329   echo $ECHO_N "(cached) $ECHO_C" >&6
9330 else
9331   case $PRINT in
9332   [\\/]* | ?:[\\/]*)
9333   ac_cv_path_PRINT="$PRINT" # Let the user override the test with a path.
9334   ;;
9335   *)
9336   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9337 for as_dir in $PATH
9338 do
9339   IFS=$as_save_IFS
9340   test -z "$as_dir" && as_dir=.
9341   for ac_exec_ext in '' $ac_executable_extensions; do
9342   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9343     ac_cv_path_PRINT="$as_dir/$ac_word$ac_exec_ext"
9344     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9345     break 2
9346   fi
9347 done
9348 done
9349
9350   ;;
9351 esac
9352 fi
9353 PRINT=$ac_cv_path_PRINT
9354
9355 if test -n "$PRINT"; then
9356   echo "$as_me:$LINENO: result: $PRINT" >&5
9357 echo "${ECHO_T}$PRINT" >&6
9358 else
9359   echo "$as_me:$LINENO: result: no" >&5
9360 echo "${ECHO_T}no" >&6
9361 fi
9362
9363   test -n "$PRINT" && break
9364 done
9365
9366 if test ! -z "$PRINT"; then
9367
9368 cat >>confdefs.h <<_ACEOF
9369 #define LPRCMD "$PRINT"
9370 _ACEOF
9371
9372     echo "$as_me:$LINENO: checking which flag to use to select a printer" >&5
9373 echo $ECHO_N "checking which flag to use to select a printer... $ECHO_C" >&6
9374 if test "${amanda_cv_printer_flag+set}" = set; then
9375   echo $ECHO_N "(cached) $ECHO_C" >&6
9376 else
9377
9378         amanda_cv_printer_flag=$PRINTER_FLAG
9379         case "$PRINT" in
9380         lpr|*/lpr) amanda_cv_printer_flag="-P";;
9381         lp|*/lp) amanda_cv_printer_flag="-d";;
9382         esac
9383
9384 fi
9385 echo "$as_me:$LINENO: result: $amanda_cv_printer_flag" >&5
9386 echo "${ECHO_T}$amanda_cv_printer_flag" >&6
9387     if test ! -z "$amanda_cv_printer_flag"; then
9388
9389 cat >>confdefs.h <<_ACEOF
9390 #define LPRFLAG "$amanda_cv_printer_flag"
9391 _ACEOF
9392
9393     else
9394         { echo "$as_me:$LINENO: WARNING: *** WARNING: amanda will always print to the default printer" >&5
9395 echo "$as_me: WARNING: *** WARNING: amanda will always print to the default printer" >&2;}
9396     fi
9397 fi
9398
9399 for ac_prog in pcat
9400 do
9401   # Extract the first word of "$ac_prog", so it can be a program name with args.
9402 set dummy $ac_prog; ac_word=$2
9403 echo "$as_me:$LINENO: checking for $ac_word" >&5
9404 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9405 if test "${ac_cv_path_PCAT+set}" = set; then
9406   echo $ECHO_N "(cached) $ECHO_C" >&6
9407 else
9408   case $PCAT in
9409   [\\/]* | ?:[\\/]*)
9410   ac_cv_path_PCAT="$PCAT" # Let the user override the test with a path.
9411   ;;
9412   *)
9413   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9414 for as_dir in $LOCSYSPATH
9415 do
9416   IFS=$as_save_IFS
9417   test -z "$as_dir" && as_dir=.
9418   for ac_exec_ext in '' $ac_executable_extensions; do
9419   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9420     ac_cv_path_PCAT="$as_dir/$ac_word$ac_exec_ext"
9421     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9422     break 2
9423   fi
9424 done
9425 done
9426
9427   ;;
9428 esac
9429 fi
9430 PCAT=$ac_cv_path_PCAT
9431
9432 if test -n "$PCAT"; then
9433   echo "$as_me:$LINENO: result: $PCAT" >&5
9434 echo "${ECHO_T}$PCAT" >&6
9435 else
9436   echo "$as_me:$LINENO: result: no" >&5
9437 echo "${ECHO_T}no" >&6
9438 fi
9439
9440   test -n "$PCAT" && break
9441 done
9442
9443 for ac_prog in perl5 perl
9444 do
9445   # Extract the first word of "$ac_prog", so it can be a program name with args.
9446 set dummy $ac_prog; ac_word=$2
9447 echo "$as_me:$LINENO: checking for $ac_word" >&5
9448 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9449 if test "${ac_cv_path_PERL+set}" = set; then
9450   echo $ECHO_N "(cached) $ECHO_C" >&6
9451 else
9452   case $PERL in
9453   [\\/]* | ?:[\\/]*)
9454   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
9455   ;;
9456   *)
9457   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9458 for as_dir in $LOCSYSPATH
9459 do
9460   IFS=$as_save_IFS
9461   test -z "$as_dir" && as_dir=.
9462   for ac_exec_ext in '' $ac_executable_extensions; do
9463   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9464     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
9465     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9466     break 2
9467   fi
9468 done
9469 done
9470
9471   ;;
9472 esac
9473 fi
9474 PERL=$ac_cv_path_PERL
9475
9476 if test -n "$PERL"; then
9477   echo "$as_me:$LINENO: result: $PERL" >&5
9478 echo "${ECHO_T}$PERL" >&6
9479 else
9480   echo "$as_me:$LINENO: result: no" >&5
9481 echo "${ECHO_T}no" >&6
9482 fi
9483
9484   test -n "$PERL" && break
9485 done
9486
9487
9488
9489 for ac_prog in $DUMP_PROGRAMS
9490 do
9491   # Extract the first word of "$ac_prog", so it can be a program name with args.
9492 set dummy $ac_prog; ac_word=$2
9493 echo "$as_me:$LINENO: checking for $ac_word" >&5
9494 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9495 if test "${ac_cv_path_DUMP+set}" = set; then
9496   echo $ECHO_N "(cached) $ECHO_C" >&6
9497 else
9498   case $DUMP in
9499   [\\/]* | ?:[\\/]*)
9500   ac_cv_path_DUMP="$DUMP" # Let the user override the test with a path.
9501   ;;
9502   *)
9503   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9504 for as_dir in $SYSLOCPATH
9505 do
9506   IFS=$as_save_IFS
9507   test -z "$as_dir" && as_dir=.
9508   for ac_exec_ext in '' $ac_executable_extensions; do
9509   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9510     ac_cv_path_DUMP="$as_dir/$ac_word$ac_exec_ext"
9511     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9512     break 2
9513   fi
9514 done
9515 done
9516
9517   ;;
9518 esac
9519 fi
9520 DUMP=$ac_cv_path_DUMP
9521
9522 if test -n "$DUMP"; then
9523   echo "$as_me:$LINENO: result: $DUMP" >&5
9524 echo "${ECHO_T}$DUMP" >&6
9525 else
9526   echo "$as_me:$LINENO: result: no" >&5
9527 echo "${ECHO_T}no" >&6
9528 fi
9529
9530   test -n "$DUMP" && break
9531 done
9532
9533 for ac_prog in ufsrestore restore
9534 do
9535   # Extract the first word of "$ac_prog", so it can be a program name with args.
9536 set dummy $ac_prog; ac_word=$2
9537 echo "$as_me:$LINENO: checking for $ac_word" >&5
9538 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9539 if test "${ac_cv_path_RESTORE+set}" = set; then
9540   echo $ECHO_N "(cached) $ECHO_C" >&6
9541 else
9542   case $RESTORE in
9543   [\\/]* | ?:[\\/]*)
9544   ac_cv_path_RESTORE="$RESTORE" # Let the user override the test with a path.
9545   ;;
9546   *)
9547   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9548 for as_dir in $SYSLOCPATH
9549 do
9550   IFS=$as_save_IFS
9551   test -z "$as_dir" && as_dir=.
9552   for ac_exec_ext in '' $ac_executable_extensions; do
9553   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9554     ac_cv_path_RESTORE="$as_dir/$ac_word$ac_exec_ext"
9555     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9556     break 2
9557   fi
9558 done
9559 done
9560
9561   ;;
9562 esac
9563 fi
9564 RESTORE=$ac_cv_path_RESTORE
9565
9566 if test -n "$RESTORE"; then
9567   echo "$as_me:$LINENO: result: $RESTORE" >&5
9568 echo "${ECHO_T}$RESTORE" >&6
9569 else
9570   echo "$as_me:$LINENO: result: no" >&5
9571 echo "${ECHO_T}no" >&6
9572 fi
9573
9574   test -n "$RESTORE" && break
9575 done
9576
9577 if test "$DUMP" -a "$RESTORE"; then
9578
9579 cat >>confdefs.h <<_ACEOF
9580 #define DUMP "$DUMP"
9581 _ACEOF
9582
9583
9584 cat >>confdefs.h <<_ACEOF
9585 #define RESTORE "$RESTORE"
9586 _ACEOF
9587
9588     if test -x $DUMP; then
9589         echo "$as_me:$LINENO: checking whether $DUMP supports -E or -S for estimates" >&5
9590 echo $ECHO_N "checking whether $DUMP supports -E or -S for estimates... $ECHO_C" >&6
9591 if test "${amanda_cv_dump_estimate+set}" = set; then
9592   echo $ECHO_N "(cached) $ECHO_C" >&6
9593 else
9594
9595                 case "$DUMP" in
9596                 *dump)
9597                     { ac_try='$DUMP 9Ef /dev/null /dev/null/invalid/fs 2>&1
9598                         | $GREP -v Dumping
9599                         | $GREP -v Date
9600                         | $GREP -v Label >conftest.d-E 2>&1'
9601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9602   (eval $ac_try) 2>&5
9603   ac_status=$?
9604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9605   (exit $ac_status); }; }
9606                     cat conftest.d-E >&5
9607                     { ac_try='$DUMP 9Sf /dev/null /dev/null/invalid/fs 2>&1
9608                         | $GREP -v Dumping
9609                         | $GREP -v Date
9610                         | $GREP -v Label >conftest.d-S 2>&1'
9611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9612   (eval $ac_try) 2>&5
9613   ac_status=$?
9614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9615   (exit $ac_status); }; }
9616                     cat conftest.d-S >&5
9617                     { ac_try='$DUMP 9f /dev/null /dev/null/invalid/fs 2>&1
9618                         | $GREP -v Dumping
9619                         | $GREP -v Date
9620                         | $GREP -v Label >conftest.d 2>&1'
9621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9622   (eval $ac_try) 2>&5
9623   ac_status=$?
9624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9625   (exit $ac_status); }; }
9626                     cat conftest.d >&5
9627                     if { ac_try='cmp conftest.d-E conftest.d 1>&2'
9628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9629   (eval $ac_try) 2>&5
9630   ac_status=$?
9631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9632   (exit $ac_status); }; }; then
9633                         amanda_cv_dump_estimate=E
9634                     elif { ac_try='cmp conftest.d-S conftest.d 1>&2'
9635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9636   (eval $ac_try) 2>&5
9637   ac_status=$?
9638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9639   (exit $ac_status); }; }; then
9640                         amanda_cv_dump_estimate=S
9641                     else
9642                         amanda_cv_dump_estimate=no
9643                     fi
9644                     rm -f conftest.d conftest.d-E conftest.d-S
9645                   ;;
9646                 *) amanda_cv_dump_estimate=no
9647                   ;;
9648                 esac
9649
9650 fi
9651 echo "$as_me:$LINENO: result: $amanda_cv_dump_estimate" >&5
9652 echo "${ECHO_T}$amanda_cv_dump_estimate" >&6
9653     else
9654         { echo "$as_me:$LINENO: WARNING: *** $DUMP is not executable, cannot run -E/-S test" >&5
9655 echo "$as_me: WARNING: *** $DUMP is not executable, cannot run -E/-S test" >&2;}
9656         amanda_cv_dump_estimate=no
9657     fi
9658     if test "$amanda_cv_dump_estimate" != no; then
9659
9660 cat >>confdefs.h <<_ACEOF
9661 #define HAVE_DUMP_ESTIMATE "$amanda_cv_dump_estimate"
9662 _ACEOF
9663
9664     fi
9665
9666
9667 # Check whether --with-dump-honor-nodump or --without-dump-honor-nodump was given.
9668 if test "${with_dump_honor_nodump+set}" = set; then
9669   withval="$with_dump_honor_nodump"
9670    if test -x $DUMP; then
9671         echo "$as_me:$LINENO: checking whether $DUMP supports -h (honor nodump flag)" >&5
9672 echo $ECHO_N "checking whether $DUMP supports -h (honor nodump flag)... $ECHO_C" >&6
9673 if test "${amanda_cv_honor_nodump+set}" = set; then
9674   echo $ECHO_N "(cached) $ECHO_C" >&6
9675 else
9676
9677             case "$DUMP" in
9678             *dump)
9679                 { ac_try='$DUMP 9hf 0 /dev/null /dev/null/invalid/fs 2>&1
9680                     | $GREP -v Dumping
9681                     | $GREP -v Date
9682                     | $GREP -v Label >conftest.d-h 2>&1'
9683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9684   (eval $ac_try) 2>&5
9685   ac_status=$?
9686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9687   (exit $ac_status); }; }
9688                 cat conftest.d-h >&5
9689                 { ac_try='$DUMP 9f /dev/null /dev/null/invalid/fs 2>&1
9690                     | $GREP -v Dumping
9691                     | $GREP -v Date
9692                     | $GREP -v Label >conftest.d 2>&1'
9693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9694   (eval $ac_try) 2>&5
9695   ac_status=$?
9696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9697   (exit $ac_status); }; }
9698                 cat conftest.d >&5
9699                 if { ac_try='diff conftest.d-h conftest.d 1>&2'
9700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9701   (eval $ac_try) 2>&5
9702   ac_status=$?
9703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9704   (exit $ac_status); }; }; then
9705                     amanda_cv_honor_nodump=yes
9706                 else
9707                     amanda_cv_honor_nodump=no
9708                 fi
9709                 rm -f conftest.d conftest.d-h
9710               ;;
9711             *) amanda_cv_honor_nodump=no
9712               ;;
9713             esac
9714
9715 fi
9716 echo "$as_me:$LINENO: result: $amanda_cv_honor_nodump" >&5
9717 echo "${ECHO_T}$amanda_cv_honor_nodump" >&6
9718       else
9719         { echo "$as_me:$LINENO: WARNING: *** $DUMP is not executable, cannot run -h test" >&5
9720 echo "$as_me: WARNING: *** $DUMP is not executable, cannot run -h test" >&2;}
9721         amanda_cv_honor_nodump=no
9722       fi
9723       if test "$amanda_cv_honor_nodump" = yes; then
9724
9725 cat >>confdefs.h <<\_ACEOF
9726 #define HAVE_HONOR_NODUMP 1
9727 _ACEOF
9728
9729       fi
9730
9731 fi;
9732 fi
9733
9734 for ac_prog in xfsdump
9735 do
9736   # Extract the first word of "$ac_prog", so it can be a program name with args.
9737 set dummy $ac_prog; ac_word=$2
9738 echo "$as_me:$LINENO: checking for $ac_word" >&5
9739 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9740 if test "${ac_cv_path_XFSDUMP+set}" = set; then
9741   echo $ECHO_N "(cached) $ECHO_C" >&6
9742 else
9743   case $XFSDUMP in
9744   [\\/]* | ?:[\\/]*)
9745   ac_cv_path_XFSDUMP="$XFSDUMP" # Let the user override the test with a path.
9746   ;;
9747   *)
9748   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9749 for as_dir in $SYSLOCPATH
9750 do
9751   IFS=$as_save_IFS
9752   test -z "$as_dir" && as_dir=.
9753   for ac_exec_ext in '' $ac_executable_extensions; do
9754   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9755     ac_cv_path_XFSDUMP="$as_dir/$ac_word$ac_exec_ext"
9756     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9757     break 2
9758   fi
9759 done
9760 done
9761
9762   ;;
9763 esac
9764 fi
9765 XFSDUMP=$ac_cv_path_XFSDUMP
9766
9767 if test -n "$XFSDUMP"; then
9768   echo "$as_me:$LINENO: result: $XFSDUMP" >&5
9769 echo "${ECHO_T}$XFSDUMP" >&6
9770 else
9771   echo "$as_me:$LINENO: result: no" >&5
9772 echo "${ECHO_T}no" >&6
9773 fi
9774
9775   test -n "$XFSDUMP" && break
9776 done
9777
9778 for ac_prog in xfsrestore
9779 do
9780   # Extract the first word of "$ac_prog", so it can be a program name with args.
9781 set dummy $ac_prog; ac_word=$2
9782 echo "$as_me:$LINENO: checking for $ac_word" >&5
9783 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9784 if test "${ac_cv_path_XFSRESTORE+set}" = set; then
9785   echo $ECHO_N "(cached) $ECHO_C" >&6
9786 else
9787   case $XFSRESTORE in
9788   [\\/]* | ?:[\\/]*)
9789   ac_cv_path_XFSRESTORE="$XFSRESTORE" # Let the user override the test with a path.
9790   ;;
9791   *)
9792   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9793 for as_dir in $SYSLOCPATH
9794 do
9795   IFS=$as_save_IFS
9796   test -z "$as_dir" && as_dir=.
9797   for ac_exec_ext in '' $ac_executable_extensions; do
9798   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9799     ac_cv_path_XFSRESTORE="$as_dir/$ac_word$ac_exec_ext"
9800     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9801     break 2
9802   fi
9803 done
9804 done
9805
9806   ;;
9807 esac
9808 fi
9809 XFSRESTORE=$ac_cv_path_XFSRESTORE
9810
9811 if test -n "$XFSRESTORE"; then
9812   echo "$as_me:$LINENO: result: $XFSRESTORE" >&5
9813 echo "${ECHO_T}$XFSRESTORE" >&6
9814 else
9815   echo "$as_me:$LINENO: result: no" >&5
9816 echo "${ECHO_T}no" >&6
9817 fi
9818
9819   test -n "$XFSRESTORE" && break
9820 done
9821
9822 if test "$XFSDUMP" -a "$XFSRESTORE"; then
9823
9824 cat >>confdefs.h <<_ACEOF
9825 #define XFSDUMP "$XFSDUMP"
9826 _ACEOF
9827
9828
9829 cat >>confdefs.h <<_ACEOF
9830 #define XFSRESTORE "$XFSRESTORE"
9831 _ACEOF
9832
9833     { echo "$as_me:$LINENO: WARNING: *** xfsdump causes the setuid-root rundump program to be enabled" >&5
9834 echo "$as_me: WARNING: *** xfsdump causes the setuid-root rundump program to be enabled" >&2;}
9835     { echo "$as_me:$LINENO: WARNING: *** to disable it, just #undef XFSDUMP in config/config.h" >&5
9836 echo "$as_me: WARNING: *** to disable it, just #undef XFSDUMP in config/config.h" >&2;}
9837 fi
9838
9839 VXSYSLOCPATH="$SYSLOCPATH:/usr/lib/fs/vxfs"
9840 for ac_prog in vxdump
9841 do
9842   # Extract the first word of "$ac_prog", so it can be a program name with args.
9843 set dummy $ac_prog; ac_word=$2
9844 echo "$as_me:$LINENO: checking for $ac_word" >&5
9845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9846 if test "${ac_cv_path_VXDUMP+set}" = set; then
9847   echo $ECHO_N "(cached) $ECHO_C" >&6
9848 else
9849   case $VXDUMP in
9850   [\\/]* | ?:[\\/]*)
9851   ac_cv_path_VXDUMP="$VXDUMP" # Let the user override the test with a path.
9852   ;;
9853   *)
9854   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9855 for as_dir in $VXSYSLOCPATH
9856 do
9857   IFS=$as_save_IFS
9858   test -z "$as_dir" && as_dir=.
9859   for ac_exec_ext in '' $ac_executable_extensions; do
9860   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9861     ac_cv_path_VXDUMP="$as_dir/$ac_word$ac_exec_ext"
9862     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9863     break 2
9864   fi
9865 done
9866 done
9867
9868   ;;
9869 esac
9870 fi
9871 VXDUMP=$ac_cv_path_VXDUMP
9872
9873 if test -n "$VXDUMP"; then
9874   echo "$as_me:$LINENO: result: $VXDUMP" >&5
9875 echo "${ECHO_T}$VXDUMP" >&6
9876 else
9877   echo "$as_me:$LINENO: result: no" >&5
9878 echo "${ECHO_T}no" >&6
9879 fi
9880
9881   test -n "$VXDUMP" && break
9882 done
9883
9884 for ac_prog in vxrestore
9885 do
9886   # Extract the first word of "$ac_prog", so it can be a program name with args.
9887 set dummy $ac_prog; ac_word=$2
9888 echo "$as_me:$LINENO: checking for $ac_word" >&5
9889 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9890 if test "${ac_cv_path_VXRESTORE+set}" = set; then
9891   echo $ECHO_N "(cached) $ECHO_C" >&6
9892 else
9893   case $VXRESTORE in
9894   [\\/]* | ?:[\\/]*)
9895   ac_cv_path_VXRESTORE="$VXRESTORE" # Let the user override the test with a path.
9896   ;;
9897   *)
9898   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9899 for as_dir in $VXSYSLOCPATH
9900 do
9901   IFS=$as_save_IFS
9902   test -z "$as_dir" && as_dir=.
9903   for ac_exec_ext in '' $ac_executable_extensions; do
9904   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9905     ac_cv_path_VXRESTORE="$as_dir/$ac_word$ac_exec_ext"
9906     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9907     break 2
9908   fi
9909 done
9910 done
9911
9912   ;;
9913 esac
9914 fi
9915 VXRESTORE=$ac_cv_path_VXRESTORE
9916
9917 if test -n "$VXRESTORE"; then
9918   echo "$as_me:$LINENO: result: $VXRESTORE" >&5
9919 echo "${ECHO_T}$VXRESTORE" >&6
9920 else
9921   echo "$as_me:$LINENO: result: no" >&5
9922 echo "${ECHO_T}no" >&6
9923 fi
9924
9925   test -n "$VXRESTORE" && break
9926 done
9927
9928 if test "$VXDUMP" -a "$VXRESTORE"; then
9929
9930 cat >>confdefs.h <<_ACEOF
9931 #define VXDUMP "$VXDUMP"
9932 _ACEOF
9933
9934
9935 cat >>confdefs.h <<_ACEOF
9936 #define VXRESTORE "$VXRESTORE"
9937 _ACEOF
9938
9939 fi
9940
9941 for ac_prog in vdump
9942 do
9943   # Extract the first word of "$ac_prog", so it can be a program name with args.
9944 set dummy $ac_prog; ac_word=$2
9945 echo "$as_me:$LINENO: checking for $ac_word" >&5
9946 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9947 if test "${ac_cv_path_VDUMP+set}" = set; then
9948   echo $ECHO_N "(cached) $ECHO_C" >&6
9949 else
9950   case $VDUMP in
9951   [\\/]* | ?:[\\/]*)
9952   ac_cv_path_VDUMP="$VDUMP" # Let the user override the test with a path.
9953   ;;
9954   *)
9955   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9956 for as_dir in $SYSLOCPATH
9957 do
9958   IFS=$as_save_IFS
9959   test -z "$as_dir" && as_dir=.
9960   for ac_exec_ext in '' $ac_executable_extensions; do
9961   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9962     ac_cv_path_VDUMP="$as_dir/$ac_word$ac_exec_ext"
9963     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9964     break 2
9965   fi
9966 done
9967 done
9968
9969   ;;
9970 esac
9971 fi
9972 VDUMP=$ac_cv_path_VDUMP
9973
9974 if test -n "$VDUMP"; then
9975   echo "$as_me:$LINENO: result: $VDUMP" >&5
9976 echo "${ECHO_T}$VDUMP" >&6
9977 else
9978   echo "$as_me:$LINENO: result: no" >&5
9979 echo "${ECHO_T}no" >&6
9980 fi
9981
9982   test -n "$VDUMP" && break
9983 done
9984
9985 for ac_prog in vrestore
9986 do
9987   # Extract the first word of "$ac_prog", so it can be a program name with args.
9988 set dummy $ac_prog; ac_word=$2
9989 echo "$as_me:$LINENO: checking for $ac_word" >&5
9990 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9991 if test "${ac_cv_path_VRESTORE+set}" = set; then
9992   echo $ECHO_N "(cached) $ECHO_C" >&6
9993 else
9994   case $VRESTORE in
9995   [\\/]* | ?:[\\/]*)
9996   ac_cv_path_VRESTORE="$VRESTORE" # Let the user override the test with a path.
9997   ;;
9998   *)
9999   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10000 for as_dir in $SYSLOCPATH
10001 do
10002   IFS=$as_save_IFS
10003   test -z "$as_dir" && as_dir=.
10004   for ac_exec_ext in '' $ac_executable_extensions; do
10005   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10006     ac_cv_path_VRESTORE="$as_dir/$ac_word$ac_exec_ext"
10007     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10008     break 2
10009   fi
10010 done
10011 done
10012
10013   ;;
10014 esac
10015 fi
10016 VRESTORE=$ac_cv_path_VRESTORE
10017
10018 if test -n "$VRESTORE"; then
10019   echo "$as_me:$LINENO: result: $VRESTORE" >&5
10020 echo "${ECHO_T}$VRESTORE" >&6
10021 else
10022   echo "$as_me:$LINENO: result: no" >&5
10023 echo "${ECHO_T}no" >&6
10024 fi
10025
10026   test -n "$VRESTORE" && break
10027 done
10028
10029 if test "$VDUMP" -a "$VRESTORE"; then
10030
10031 cat >>confdefs.h <<_ACEOF
10032 #define VDUMP "$VDUMP"
10033 _ACEOF
10034
10035
10036 cat >>confdefs.h <<_ACEOF
10037 #define VRESTORE "$VRESTORE"
10038 _ACEOF
10039
10040 fi
10041
10042 if test "$PCAT"; then
10043     AMPLOT_CAT_PACK="if(o==\"z\")print \"$PCAT\"; else"
10044 else
10045     AMPLOT_CAT_PACK=
10046 fi
10047 if test "$COMPRESS"; then
10048     AMPLOT_COMPRESS=$COMPRESS
10049     AMPLOT_CAT_COMPRESS="if(o==\"Z\")print \"$COMPRESS -dc\"; else"
10050 else
10051     AMPLOT_CAT_COMPRESS=
10052 fi
10053 if test "$GZIP"; then
10054     AMPLOT_COMPRESS=$GZIP
10055     AMPLOT_CAT_GZIP="if(o==\"gz\")print \"$GZIP -dc\"; else"
10056 else
10057     AMPLOT_CAT_GZIP=
10058 fi
10059
10060
10061
10062
10063
10064 GZIP=
10065
10066 need_resetofs=yes
10067 echo "$as_me:$LINENO: checking for large file compilation CFLAGS" >&5
10068 echo $ECHO_N "checking for large file compilation CFLAGS... $ECHO_C" >&6
10069 if test "${amanda_cv_LFS_CFLAGS+set}" = set; then
10070   echo $ECHO_N "(cached) $ECHO_C" >&6
10071 else
10072
10073         amanda_cv_LFS_CFLAGS=
10074         if test "$GETCONF"; then
10075             if $GETCONF ${GETCONF_LFS}_CFLAGS >/dev/null 2>&1; then
10076                 amanda_cv_LFS_CFLAGS=`$GETCONF ${GETCONF_LFS}_CFLAGS 2>/dev/null`
10077                 need_resetofs=no
10078             fi
10079         fi
10080
10081
10082 fi
10083 echo "$as_me:$LINENO: result: $amanda_cv_LFS_CFLAGS" >&5
10084 echo "${ECHO_T}$amanda_cv_LFS_CFLAGS" >&6
10085 echo "$as_me:$LINENO: checking for large file compilation LDFLAGS" >&5
10086 echo $ECHO_N "checking for large file compilation LDFLAGS... $ECHO_C" >&6
10087 if test "${amanda_cv_LFS_LDFLAGS+set}" = set; then
10088   echo $ECHO_N "(cached) $ECHO_C" >&6
10089 else
10090
10091         amanda_cv_LFS_LDFLAGS=
10092         if test "$GETCONF"; then
10093             if $GETCONF ${GETCONF_LFS}_LDFLAGS >/dev/null 2>&1; then
10094                 amanda_cv_LFS_LDFLAGS=`$GETCONF ${GETCONF_LFS}_LDFLAGS 2>/dev/null`
10095                 need_resetofs=no
10096             fi
10097         fi
10098
10099
10100 fi
10101 echo "$as_me:$LINENO: result: $amanda_cv_LFS_LDFLAGS" >&5
10102 echo "${ECHO_T}$amanda_cv_LFS_LDFLAGS" >&6
10103 echo "$as_me:$LINENO: checking for large file compilation LIBS" >&5
10104 echo $ECHO_N "checking for large file compilation LIBS... $ECHO_C" >&6
10105 if test "${amanda_cv_LFS_LIBS+set}" = set; then
10106   echo $ECHO_N "(cached) $ECHO_C" >&6
10107 else
10108
10109         amanda_cv_LFS_LIBS=
10110         if test "$GETCONF"; then
10111             if $GETCONF ${GETCONF_LFS}_LIBS >/dev/null 2>&1; then
10112                 amanda_cv_LFS_LIBS=`$GETCONF ${GETCONF_LFS}_LIBS 2>/dev/null`
10113                 need_resetofs=no
10114             fi
10115         fi
10116
10117
10118 fi
10119 echo "$as_me:$LINENO: result: $amanda_cv_LFS_LIBS" >&5
10120 echo "${ECHO_T}$amanda_cv_LFS_LIBS" >&6
10121 if test "$need_resetofs" = yes; then
10122
10123 cat >>confdefs.h <<\_ACEOF
10124 #define NEED_RESETOFS 1
10125 _ACEOF
10126
10127 fi
10128 CFLAGS="$amanda_cv_LFS_CFLAGS $CFLAGS"
10129 CPPFLAGS="$amanda_cv_LFS_CFLAGS $CPPFLAGS"
10130 LDFLAGS="$amanda_cv_LFS_LDFLAGS $LDFLAGS"
10131 LIBS="$amanda_cv_LFS_LIBS $LIBS"
10132
10133 # Check whether --enable-shared or --disable-shared was given.
10134 if test "${enable_shared+set}" = set; then
10135   enableval="$enable_shared"
10136   p=${PACKAGE-default}
10137     case $enableval in
10138     yes) enable_shared=yes ;;
10139     no) enable_shared=no ;;
10140     *)
10141       enable_shared=no
10142       # Look at the argument we got.  We use all the common list separators.
10143       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10144       for pkg in $enableval; do
10145         IFS="$lt_save_ifs"
10146         if test "X$pkg" = "X$p"; then
10147           enable_shared=yes
10148         fi
10149       done
10150       IFS="$lt_save_ifs"
10151       ;;
10152     esac
10153 else
10154   enable_shared=yes
10155 fi;
10156
10157 # Check whether --enable-static or --disable-static was given.
10158 if test "${enable_static+set}" = set; then
10159   enableval="$enable_static"
10160   p=${PACKAGE-default}
10161     case $enableval in
10162     yes) enable_static=yes ;;
10163     no) enable_static=no ;;
10164     *)
10165      enable_static=no
10166       # Look at the argument we got.  We use all the common list separators.
10167       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10168       for pkg in $enableval; do
10169         IFS="$lt_save_ifs"
10170         if test "X$pkg" = "X$p"; then
10171           enable_static=yes
10172         fi
10173       done
10174       IFS="$lt_save_ifs"
10175       ;;
10176     esac
10177 else
10178   enable_static=yes
10179 fi;
10180
10181 # Check whether --enable-fast-install or --disable-fast-install was given.
10182 if test "${enable_fast_install+set}" = set; then
10183   enableval="$enable_fast_install"
10184   p=${PACKAGE-default}
10185     case $enableval in
10186     yes) enable_fast_install=yes ;;
10187     no) enable_fast_install=no ;;
10188     *)
10189       enable_fast_install=no
10190       # Look at the argument we got.  We use all the common list separators.
10191       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10192       for pkg in $enableval; do
10193         IFS="$lt_save_ifs"
10194         if test "X$pkg" = "X$p"; then
10195           enable_fast_install=yes
10196         fi
10197       done
10198       IFS="$lt_save_ifs"
10199       ;;
10200     esac
10201 else
10202   enable_fast_install=yes
10203 fi;
10204
10205 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
10206 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
10207 if test "${lt_cv_path_SED+set}" = set; then
10208   echo $ECHO_N "(cached) $ECHO_C" >&6
10209 else
10210   # Loop through the user's path and test for sed and gsed.
10211 # Then use that list of sed's as ones to test for truncation.
10212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10213 for as_dir in $PATH
10214 do
10215   IFS=$as_save_IFS
10216   test -z "$as_dir" && as_dir=.
10217   for lt_ac_prog in sed gsed; do
10218     for ac_exec_ext in '' $ac_executable_extensions; do
10219       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
10220         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
10221       fi
10222     done
10223   done
10224 done
10225 lt_ac_max=0
10226 lt_ac_count=0
10227 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
10228 # along with /bin/sed that truncates output.
10229 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
10230   test ! -f $lt_ac_sed && continue
10231   cat /dev/null > conftest.in
10232   lt_ac_count=0
10233   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
10234   # Check for GNU sed and select it if it is found.
10235   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
10236     lt_cv_path_SED=$lt_ac_sed
10237     break
10238   fi
10239   while true; do
10240     cat conftest.in conftest.in >conftest.tmp
10241     mv conftest.tmp conftest.in
10242     cp conftest.in conftest.nl
10243     echo >>conftest.nl
10244     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
10245     cmp -s conftest.out conftest.nl || break
10246     # 10000 chars as input seems more than enough
10247     test $lt_ac_count -gt 10 && break
10248     lt_ac_count=`expr $lt_ac_count + 1`
10249     if test $lt_ac_count -gt $lt_ac_max; then
10250       lt_ac_max=$lt_ac_count
10251       lt_cv_path_SED=$lt_ac_sed
10252     fi
10253   done
10254 done
10255
10256 fi
10257
10258 SED=$lt_cv_path_SED
10259 echo "$as_me:$LINENO: result: $SED" >&5
10260 echo "${ECHO_T}$SED" >&6
10261
10262
10263 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10264 if test "${with_gnu_ld+set}" = set; then
10265   withval="$with_gnu_ld"
10266   test "$withval" = no || with_gnu_ld=yes
10267 else
10268   with_gnu_ld=no
10269 fi;
10270 ac_prog=ld
10271 if test "$GCC" = yes; then
10272   # Check if gcc -print-prog-name=ld gives a path.
10273   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10274 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10275   case $host in
10276   *-*-mingw*)
10277     # gcc leaves a trailing carriage return which upsets mingw
10278     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10279   *)
10280     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10281   esac
10282   case $ac_prog in
10283     # Accept absolute paths.
10284     [\\/]* | ?:[\\/]*)
10285       re_direlt='/[^/][^/]*/\.\./'
10286       # Canonicalize the pathname of ld
10287       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10288       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10289         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10290       done
10291       test -z "$LD" && LD="$ac_prog"
10292       ;;
10293   "")
10294     # If it fails, then pretend we aren't using GCC.
10295     ac_prog=ld
10296     ;;
10297   *)
10298     # If it is relative, then search for the first ld in PATH.
10299     with_gnu_ld=unknown
10300     ;;
10301   esac
10302 elif test "$with_gnu_ld" = yes; then
10303   echo "$as_me:$LINENO: checking for GNU ld" >&5
10304 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10305 else
10306   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10307 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10308 fi
10309 if test "${lt_cv_path_LD+set}" = set; then
10310   echo $ECHO_N "(cached) $ECHO_C" >&6
10311 else
10312   if test -z "$LD"; then
10313   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10314   for ac_dir in $PATH; do
10315     IFS="$lt_save_ifs"
10316     test -z "$ac_dir" && ac_dir=.
10317     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10318       lt_cv_path_LD="$ac_dir/$ac_prog"
10319       # Check to see if the program is GNU ld.  I'd rather use --version,
10320       # but apparently some GNU ld's only accept -v.
10321       # Break only if it was the GNU/non-GNU ld that we prefer.
10322       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10323       *GNU* | *'with BFD'*)
10324         test "$with_gnu_ld" != no && break
10325         ;;
10326       *)
10327         test "$with_gnu_ld" != yes && break
10328         ;;
10329       esac
10330     fi
10331   done
10332   IFS="$lt_save_ifs"
10333 else
10334   lt_cv_path_LD="$LD" # Let the user override the test with a path.
10335 fi
10336 fi
10337
10338 LD="$lt_cv_path_LD"
10339 if test -n "$LD"; then
10340   echo "$as_me:$LINENO: result: $LD" >&5
10341 echo "${ECHO_T}$LD" >&6
10342 else
10343   echo "$as_me:$LINENO: result: no" >&5
10344 echo "${ECHO_T}no" >&6
10345 fi
10346 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10347 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10348    { (exit 1); exit 1; }; }
10349 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10350 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10351 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10352   echo $ECHO_N "(cached) $ECHO_C" >&6
10353 else
10354   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10355 case `$LD -v 2>&1 </dev/null` in
10356 *GNU* | *'with BFD'*)
10357   lt_cv_prog_gnu_ld=yes
10358   ;;
10359 *)
10360   lt_cv_prog_gnu_ld=no
10361   ;;
10362 esac
10363 fi
10364 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10365 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10366 with_gnu_ld=$lt_cv_prog_gnu_ld
10367
10368
10369 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
10370 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
10371 if test "${lt_cv_ld_reload_flag+set}" = set; then
10372   echo $ECHO_N "(cached) $ECHO_C" >&6
10373 else
10374   lt_cv_ld_reload_flag='-r'
10375 fi
10376 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
10377 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
10378 reload_flag=$lt_cv_ld_reload_flag
10379 case $reload_flag in
10380 "" | " "*) ;;
10381 *) reload_flag=" $reload_flag" ;;
10382 esac
10383 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10384 case $host_os in
10385   darwin*)
10386     if test "$GCC" = yes; then
10387       reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
10388     else
10389       reload_cmds='$LD$reload_flag -o $output$reload_objs'
10390     fi
10391     ;;
10392 esac
10393
10394 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
10395 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
10396 if test "${lt_cv_path_NM+set}" = set; then
10397   echo $ECHO_N "(cached) $ECHO_C" >&6
10398 else
10399   if test -n "$NM"; then
10400   # Let the user override the test.
10401   lt_cv_path_NM="$NM"
10402 else
10403   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10404   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
10405     IFS="$lt_save_ifs"
10406     test -z "$ac_dir" && ac_dir=.
10407     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
10408     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
10409       # Check to see if the nm accepts a BSD-compat flag.
10410       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
10411       #   nm: unknown option "B" ignored
10412       # Tru64's nm complains that /dev/null is an invalid object file
10413       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
10414       */dev/null* | *'Invalid file or object type'*)
10415         lt_cv_path_NM="$tmp_nm -B"
10416         break
10417         ;;
10418       *)
10419         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
10420         */dev/null*)
10421           lt_cv_path_NM="$tmp_nm -p"
10422           break
10423           ;;
10424         *)
10425           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
10426           continue # so that we can try to find one that supports BSD flags
10427           ;;
10428         esac
10429       esac
10430     fi
10431   done
10432   IFS="$lt_save_ifs"
10433   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
10434 fi
10435 fi
10436 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
10437 echo "${ECHO_T}$lt_cv_path_NM" >&6
10438 NM="$lt_cv_path_NM"
10439
10440 echo "$as_me:$LINENO: checking whether ln -s works" >&5
10441 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
10442 LN_S=$as_ln_s
10443 if test "$LN_S" = "ln -s"; then
10444   echo "$as_me:$LINENO: result: yes" >&5
10445 echo "${ECHO_T}yes" >&6
10446 else
10447   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
10448 echo "${ECHO_T}no, using $LN_S" >&6
10449 fi
10450
10451 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
10452 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
10453 if test "${lt_cv_deplibs_check_method+set}" = set; then
10454   echo $ECHO_N "(cached) $ECHO_C" >&6
10455 else
10456   lt_cv_file_magic_cmd='$MAGIC_CMD'
10457 lt_cv_file_magic_test_file=
10458 lt_cv_deplibs_check_method='unknown'
10459 # Need to set the preceding variable on all platforms that support
10460 # interlibrary dependencies.
10461 # 'none' -- dependencies not supported.
10462 # `unknown' -- same as none, but documents that we really don't know.
10463 # 'pass_all' -- all dependencies passed with no checks.
10464 # 'test_compile' -- check by making test program.
10465 # 'file_magic [[regex]]' -- check by looking for files in library path
10466 # which responds to the $file_magic_cmd with a given extended regex.
10467 # If you have `file' or equivalent on your system and you're not sure
10468 # whether `pass_all' will *always* work, you probably want this one.
10469
10470 case $host_os in
10471 aix4* | aix5*)
10472   lt_cv_deplibs_check_method=pass_all
10473   ;;
10474
10475 beos*)
10476   lt_cv_deplibs_check_method=pass_all
10477   ;;
10478
10479 bsdi[45]*)
10480   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10481   lt_cv_file_magic_cmd='/usr/bin/file -L'
10482   lt_cv_file_magic_test_file=/shlib/libc.so
10483   ;;
10484
10485 cygwin*)
10486   # func_win32_libid is a shell function defined in ltmain.sh
10487   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10488   lt_cv_file_magic_cmd='func_win32_libid'
10489   ;;
10490
10491 mingw* | pw32*)
10492   # Base MSYS/MinGW do not provide the 'file' command needed by
10493   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
10494   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
10495   lt_cv_file_magic_cmd='$OBJDUMP -f'
10496   ;;
10497
10498 darwin* | rhapsody*)
10499   lt_cv_deplibs_check_method=pass_all
10500   ;;
10501
10502 freebsd* | kfreebsd*-gnu | dragonfly*)
10503   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10504     case $host_cpu in
10505     i*86 )
10506       # Not sure whether the presence of OpenBSD here was a mistake.
10507       # Let's accept both of them until this is cleared up.
10508       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
10509       lt_cv_file_magic_cmd=/usr/bin/file
10510       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10511       ;;
10512     esac
10513   else
10514     lt_cv_deplibs_check_method=pass_all
10515   fi
10516   ;;
10517
10518 gnu*)
10519   lt_cv_deplibs_check_method=pass_all
10520   ;;
10521
10522 hpux10.20* | hpux11*)
10523   lt_cv_file_magic_cmd=/usr/bin/file
10524   case "$host_cpu" in
10525   ia64*)
10526     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10527     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10528     ;;
10529   hppa*64*)
10530     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]'
10531     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10532     ;;
10533   *)
10534     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
10535     lt_cv_file_magic_test_file=/usr/lib/libc.sl
10536     ;;
10537   esac
10538   ;;
10539
10540 irix5* | irix6* | nonstopux*)
10541   case $LD in
10542   *-32|*"-32 ") libmagic=32-bit;;
10543   *-n32|*"-n32 ") libmagic=N32;;
10544   *-64|*"-64 ") libmagic=64-bit;;
10545   *) libmagic=never-match;;
10546   esac
10547   lt_cv_deplibs_check_method=pass_all
10548   ;;
10549
10550 # This must be Linux ELF.
10551 linux*)
10552   lt_cv_deplibs_check_method=pass_all
10553   ;;
10554
10555 netbsd*)
10556   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10557     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10558   else
10559     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10560   fi
10561   ;;
10562
10563 newos6*)
10564   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10565   lt_cv_file_magic_cmd=/usr/bin/file
10566   lt_cv_file_magic_test_file=/usr/lib/libnls.so
10567   ;;
10568
10569 nto-qnx*)
10570   lt_cv_deplibs_check_method=unknown
10571   ;;
10572
10573 openbsd*)
10574   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10575     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10576   else
10577     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10578   fi
10579   ;;
10580
10581 osf3* | osf4* | osf5*)
10582   lt_cv_deplibs_check_method=pass_all
10583   ;;
10584
10585 sco3.2v5*)
10586   lt_cv_deplibs_check_method=pass_all
10587   ;;
10588
10589 solaris*)
10590   lt_cv_deplibs_check_method=pass_all
10591   ;;
10592
10593 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10594   case $host_vendor in
10595   motorola)
10596     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]'
10597     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10598     ;;
10599   ncr)
10600     lt_cv_deplibs_check_method=pass_all
10601     ;;
10602   sequent)
10603     lt_cv_file_magic_cmd='/bin/file'
10604     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10605     ;;
10606   sni)
10607     lt_cv_file_magic_cmd='/bin/file'
10608     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10609     lt_cv_file_magic_test_file=/lib/libc.so
10610     ;;
10611   siemens)
10612     lt_cv_deplibs_check_method=pass_all
10613     ;;
10614   esac
10615   ;;
10616
10617 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
10618   lt_cv_deplibs_check_method=pass_all
10619   ;;
10620 esac
10621
10622 fi
10623 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
10624 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
10625 file_magic_cmd=$lt_cv_file_magic_cmd
10626 deplibs_check_method=$lt_cv_deplibs_check_method
10627 test -z "$deplibs_check_method" && deplibs_check_method=unknown
10628
10629
10630 # If no C compiler was specified, use CC.
10631 LTCC=${LTCC-"$CC"}
10632
10633 # Allow CC to be a program name with arguments.
10634 compiler=$CC
10635
10636 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
10637 if test "${enable_libtool_lock+set}" = set; then
10638   enableval="$enable_libtool_lock"
10639
10640 fi;
10641 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10642
10643 # Some flags need to be propagated to the compiler or linker for good
10644 # libtool support.
10645 case $host in
10646 ia64-*-hpux*)
10647   # Find out which ABI we are using.
10648   echo 'int i;' > conftest.$ac_ext
10649   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10650   (eval $ac_compile) 2>&5
10651   ac_status=$?
10652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10653   (exit $ac_status); }; then
10654     case `/usr/bin/file conftest.$ac_objext` in
10655     *ELF-32*)
10656       HPUX_IA64_MODE="32"
10657       ;;
10658     *ELF-64*)
10659       HPUX_IA64_MODE="64"
10660       ;;
10661     esac
10662   fi
10663   rm -rf conftest*
10664   ;;
10665 *-*-irix6*)
10666   # Find out which ABI we are using.
10667   echo '#line 10667 "configure"' > conftest.$ac_ext
10668   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10669   (eval $ac_compile) 2>&5
10670   ac_status=$?
10671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10672   (exit $ac_status); }; then
10673    if test "$lt_cv_prog_gnu_ld" = yes; then
10674     case `/usr/bin/file conftest.$ac_objext` in
10675     *32-bit*)
10676       LD="${LD-ld} -melf32bsmip"
10677       ;;
10678     *N32*)
10679       LD="${LD-ld} -melf32bmipn32"
10680       ;;
10681     *64-bit*)
10682       LD="${LD-ld} -melf64bmip"
10683       ;;
10684     esac
10685    else
10686     case `/usr/bin/file conftest.$ac_objext` in
10687     *32-bit*)
10688       LD="${LD-ld} -32"
10689       ;;
10690     *N32*)
10691       LD="${LD-ld} -n32"
10692       ;;
10693     *64-bit*)
10694       LD="${LD-ld} -64"
10695       ;;
10696     esac
10697    fi
10698   fi
10699   rm -rf conftest*
10700   ;;
10701
10702 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
10703   # Find out which ABI we are using.
10704   echo 'int i;' > conftest.$ac_ext
10705   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10706   (eval $ac_compile) 2>&5
10707   ac_status=$?
10708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10709   (exit $ac_status); }; then
10710     case "`/usr/bin/file conftest.o`" in
10711     *32-bit*)
10712       case $host in
10713         x86_64-*linux*)
10714           LD="${LD-ld} -m elf_i386"
10715           ;;
10716         ppc64-*linux*|powerpc64-*linux*)
10717           LD="${LD-ld} -m elf32ppclinux"
10718           ;;
10719         s390x-*linux*)
10720           LD="${LD-ld} -m elf_s390"
10721           ;;
10722         sparc64-*linux*)
10723           LD="${LD-ld} -m elf32_sparc"
10724           ;;
10725       esac
10726       ;;
10727     *64-bit*)
10728       case $host in
10729         x86_64-*linux*)
10730           LD="${LD-ld} -m elf_x86_64"
10731           ;;
10732         ppc*-*linux*|powerpc*-*linux*)
10733           LD="${LD-ld} -m elf64ppc"
10734           ;;
10735         s390*-*linux*)
10736           LD="${LD-ld} -m elf64_s390"
10737           ;;
10738         sparc*-*linux*)
10739           LD="${LD-ld} -m elf64_sparc"
10740           ;;
10741       esac
10742       ;;
10743     esac
10744   fi
10745   rm -rf conftest*
10746   ;;
10747
10748 *-*-sco3.2v5*)
10749   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10750   SAVE_CFLAGS="$CFLAGS"
10751   CFLAGS="$CFLAGS -belf"
10752   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
10753 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
10754 if test "${lt_cv_cc_needs_belf+set}" = set; then
10755   echo $ECHO_N "(cached) $ECHO_C" >&6
10756 else
10757   ac_ext=c
10758 ac_cpp='$CPP $CPPFLAGS'
10759 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10760 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10761 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10762
10763      cat >conftest.$ac_ext <<_ACEOF
10764 /* confdefs.h.  */
10765 _ACEOF
10766 cat confdefs.h >>conftest.$ac_ext
10767 cat >>conftest.$ac_ext <<_ACEOF
10768 /* end confdefs.h.  */
10769
10770 int
10771 main ()
10772 {
10773
10774   ;
10775   return 0;
10776 }
10777 _ACEOF
10778 rm -f conftest.$ac_objext conftest$ac_exeext
10779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10780   (eval $ac_link) 2>conftest.er1
10781   ac_status=$?
10782   grep -v '^ *+' conftest.er1 >conftest.err
10783   rm -f conftest.er1
10784   cat conftest.err >&5
10785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10786   (exit $ac_status); } &&
10787          { ac_try='test -z "$ac_c_werror_flag"
10788                          || test ! -s conftest.err'
10789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10790   (eval $ac_try) 2>&5
10791   ac_status=$?
10792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10793   (exit $ac_status); }; } &&
10794          { ac_try='test -s conftest$ac_exeext'
10795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10796   (eval $ac_try) 2>&5
10797   ac_status=$?
10798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10799   (exit $ac_status); }; }; then
10800   lt_cv_cc_needs_belf=yes
10801 else
10802   echo "$as_me: failed program was:" >&5
10803 sed 's/^/| /' conftest.$ac_ext >&5
10804
10805 lt_cv_cc_needs_belf=no
10806 fi
10807 rm -f conftest.err conftest.$ac_objext \
10808       conftest$ac_exeext conftest.$ac_ext
10809      ac_ext=c
10810 ac_cpp='$CPP $CPPFLAGS'
10811 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10812 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10813 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10814
10815 fi
10816 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
10817 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
10818   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10819     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10820     CFLAGS="$SAVE_CFLAGS"
10821   fi
10822   ;;
10823
10824 esac
10825
10826 need_locks="$enable_libtool_lock"
10827
10828
10829
10830 for ac_header in dlfcn.h
10831 do
10832 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10833 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10834   echo "$as_me:$LINENO: checking for $ac_header" >&5
10835 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10836 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10837   echo $ECHO_N "(cached) $ECHO_C" >&6
10838 fi
10839 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10840 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10841 else
10842   # Is the header compilable?
10843 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10844 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10845 cat >conftest.$ac_ext <<_ACEOF
10846 /* confdefs.h.  */
10847 _ACEOF
10848 cat confdefs.h >>conftest.$ac_ext
10849 cat >>conftest.$ac_ext <<_ACEOF
10850 /* end confdefs.h.  */
10851 $ac_includes_default
10852 #include <$ac_header>
10853 _ACEOF
10854 rm -f conftest.$ac_objext
10855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10856   (eval $ac_compile) 2>conftest.er1
10857   ac_status=$?
10858   grep -v '^ *+' conftest.er1 >conftest.err
10859   rm -f conftest.er1
10860   cat conftest.err >&5
10861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10862   (exit $ac_status); } &&
10863          { ac_try='test -z "$ac_c_werror_flag"
10864                          || test ! -s conftest.err'
10865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10866   (eval $ac_try) 2>&5
10867   ac_status=$?
10868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10869   (exit $ac_status); }; } &&
10870          { ac_try='test -s conftest.$ac_objext'
10871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10872   (eval $ac_try) 2>&5
10873   ac_status=$?
10874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10875   (exit $ac_status); }; }; then
10876   ac_header_compiler=yes
10877 else
10878   echo "$as_me: failed program was:" >&5
10879 sed 's/^/| /' conftest.$ac_ext >&5
10880
10881 ac_header_compiler=no
10882 fi
10883 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10884 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10885 echo "${ECHO_T}$ac_header_compiler" >&6
10886
10887 # Is the header present?
10888 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10889 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10890 cat >conftest.$ac_ext <<_ACEOF
10891 /* confdefs.h.  */
10892 _ACEOF
10893 cat confdefs.h >>conftest.$ac_ext
10894 cat >>conftest.$ac_ext <<_ACEOF
10895 /* end confdefs.h.  */
10896 #include <$ac_header>
10897 _ACEOF
10898 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10899   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10900   ac_status=$?
10901   grep -v '^ *+' conftest.er1 >conftest.err
10902   rm -f conftest.er1
10903   cat conftest.err >&5
10904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10905   (exit $ac_status); } >/dev/null; then
10906   if test -s conftest.err; then
10907     ac_cpp_err=$ac_c_preproc_warn_flag
10908     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10909   else
10910     ac_cpp_err=
10911   fi
10912 else
10913   ac_cpp_err=yes
10914 fi
10915 if test -z "$ac_cpp_err"; then
10916   ac_header_preproc=yes
10917 else
10918   echo "$as_me: failed program was:" >&5
10919 sed 's/^/| /' conftest.$ac_ext >&5
10920
10921   ac_header_preproc=no
10922 fi
10923 rm -f conftest.err conftest.$ac_ext
10924 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10925 echo "${ECHO_T}$ac_header_preproc" >&6
10926
10927 # So?  What about this header?
10928 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10929   yes:no: )
10930     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10931 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10932     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10933 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10934     ac_header_preproc=yes
10935     ;;
10936   no:yes:* )
10937     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10938 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10939     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10940 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10941     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10942 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10943     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10944 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10945     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10946 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10947     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10948 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10949     (
10950       cat <<\_ASBOX
10951 ## ------------------------------------------ ##
10952 ## Report this to the AC_PACKAGE_NAME lists.  ##
10953 ## ------------------------------------------ ##
10954 _ASBOX
10955     ) |
10956       sed "s/^/$as_me: WARNING:     /" >&2
10957     ;;
10958 esac
10959 echo "$as_me:$LINENO: checking for $ac_header" >&5
10960 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10961 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10962   echo $ECHO_N "(cached) $ECHO_C" >&6
10963 else
10964   eval "$as_ac_Header=\$ac_header_preproc"
10965 fi
10966 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10967 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10968
10969 fi
10970 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10971   cat >>confdefs.h <<_ACEOF
10972 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10973 _ACEOF
10974
10975 fi
10976
10977 done
10978
10979 ac_ext=cc
10980 ac_cpp='$CXXCPP $CPPFLAGS'
10981 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10982 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10983 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10984 if test -n "$ac_tool_prefix"; then
10985   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
10986   do
10987     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10988 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10989 echo "$as_me:$LINENO: checking for $ac_word" >&5
10990 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10991 if test "${ac_cv_prog_CXX+set}" = set; then
10992   echo $ECHO_N "(cached) $ECHO_C" >&6
10993 else
10994   if test -n "$CXX"; then
10995   ac_cv_prog_CXX="$CXX" # Let the user override the test.
10996 else
10997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10998 for as_dir in $PATH
10999 do
11000   IFS=$as_save_IFS
11001   test -z "$as_dir" && as_dir=.
11002   for ac_exec_ext in '' $ac_executable_extensions; do
11003   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11004     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11005     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11006     break 2
11007   fi
11008 done
11009 done
11010
11011 fi
11012 fi
11013 CXX=$ac_cv_prog_CXX
11014 if test -n "$CXX"; then
11015   echo "$as_me:$LINENO: result: $CXX" >&5
11016 echo "${ECHO_T}$CXX" >&6
11017 else
11018   echo "$as_me:$LINENO: result: no" >&5
11019 echo "${ECHO_T}no" >&6
11020 fi
11021
11022     test -n "$CXX" && break
11023   done
11024 fi
11025 if test -z "$CXX"; then
11026   ac_ct_CXX=$CXX
11027   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
11028 do
11029   # Extract the first word of "$ac_prog", so it can be a program name with args.
11030 set dummy $ac_prog; ac_word=$2
11031 echo "$as_me:$LINENO: checking for $ac_word" >&5
11032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11033 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
11034   echo $ECHO_N "(cached) $ECHO_C" >&6
11035 else
11036   if test -n "$ac_ct_CXX"; then
11037   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11038 else
11039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11040 for as_dir in $PATH
11041 do
11042   IFS=$as_save_IFS
11043   test -z "$as_dir" && as_dir=.
11044   for ac_exec_ext in '' $ac_executable_extensions; do
11045   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11046     ac_cv_prog_ac_ct_CXX="$ac_prog"
11047     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11048     break 2
11049   fi
11050 done
11051 done
11052
11053 fi
11054 fi
11055 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11056 if test -n "$ac_ct_CXX"; then
11057   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
11058 echo "${ECHO_T}$ac_ct_CXX" >&6
11059 else
11060   echo "$as_me:$LINENO: result: no" >&5
11061 echo "${ECHO_T}no" >&6
11062 fi
11063
11064   test -n "$ac_ct_CXX" && break
11065 done
11066 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
11067
11068   CXX=$ac_ct_CXX
11069 fi
11070
11071
11072 # Provide some information about the compiler.
11073 echo "$as_me:$LINENO:" \
11074      "checking for C++ compiler version" >&5
11075 ac_compiler=`set X $ac_compile; echo $2`
11076 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11077   (eval $ac_compiler --version </dev/null >&5) 2>&5
11078   ac_status=$?
11079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11080   (exit $ac_status); }
11081 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11082   (eval $ac_compiler -v </dev/null >&5) 2>&5
11083   ac_status=$?
11084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11085   (exit $ac_status); }
11086 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11087   (eval $ac_compiler -V </dev/null >&5) 2>&5
11088   ac_status=$?
11089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11090   (exit $ac_status); }
11091
11092 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
11093 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
11094 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
11095   echo $ECHO_N "(cached) $ECHO_C" >&6
11096 else
11097   cat >conftest.$ac_ext <<_ACEOF
11098 /* confdefs.h.  */
11099 _ACEOF
11100 cat confdefs.h >>conftest.$ac_ext
11101 cat >>conftest.$ac_ext <<_ACEOF
11102 /* end confdefs.h.  */
11103
11104 int
11105 main ()
11106 {
11107 #ifndef __GNUC__
11108        choke me
11109 #endif
11110
11111   ;
11112   return 0;
11113 }
11114 _ACEOF
11115 rm -f conftest.$ac_objext
11116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11117   (eval $ac_compile) 2>conftest.er1
11118   ac_status=$?
11119   grep -v '^ *+' conftest.er1 >conftest.err
11120   rm -f conftest.er1
11121   cat conftest.err >&5
11122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11123   (exit $ac_status); } &&
11124          { ac_try='test -z "$ac_cxx_werror_flag"
11125                          || test ! -s conftest.err'
11126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11127   (eval $ac_try) 2>&5
11128   ac_status=$?
11129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11130   (exit $ac_status); }; } &&
11131          { ac_try='test -s conftest.$ac_objext'
11132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11133   (eval $ac_try) 2>&5
11134   ac_status=$?
11135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11136   (exit $ac_status); }; }; then
11137   ac_compiler_gnu=yes
11138 else
11139   echo "$as_me: failed program was:" >&5
11140 sed 's/^/| /' conftest.$ac_ext >&5
11141
11142 ac_compiler_gnu=no
11143 fi
11144 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11145 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11146
11147 fi
11148 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
11149 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
11150 GXX=`test $ac_compiler_gnu = yes && echo yes`
11151 ac_test_CXXFLAGS=${CXXFLAGS+set}
11152 ac_save_CXXFLAGS=$CXXFLAGS
11153 CXXFLAGS="-g"
11154 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
11155 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
11156 if test "${ac_cv_prog_cxx_g+set}" = set; then
11157   echo $ECHO_N "(cached) $ECHO_C" >&6
11158 else
11159   cat >conftest.$ac_ext <<_ACEOF
11160 /* confdefs.h.  */
11161 _ACEOF
11162 cat confdefs.h >>conftest.$ac_ext
11163 cat >>conftest.$ac_ext <<_ACEOF
11164 /* end confdefs.h.  */
11165
11166 int
11167 main ()
11168 {
11169
11170   ;
11171   return 0;
11172 }
11173 _ACEOF
11174 rm -f conftest.$ac_objext
11175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11176   (eval $ac_compile) 2>conftest.er1
11177   ac_status=$?
11178   grep -v '^ *+' conftest.er1 >conftest.err
11179   rm -f conftest.er1
11180   cat conftest.err >&5
11181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11182   (exit $ac_status); } &&
11183          { ac_try='test -z "$ac_cxx_werror_flag"
11184                          || test ! -s conftest.err'
11185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11186   (eval $ac_try) 2>&5
11187   ac_status=$?
11188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11189   (exit $ac_status); }; } &&
11190          { ac_try='test -s conftest.$ac_objext'
11191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11192   (eval $ac_try) 2>&5
11193   ac_status=$?
11194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11195   (exit $ac_status); }; }; then
11196   ac_cv_prog_cxx_g=yes
11197 else
11198   echo "$as_me: failed program was:" >&5
11199 sed 's/^/| /' conftest.$ac_ext >&5
11200
11201 ac_cv_prog_cxx_g=no
11202 fi
11203 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11204 fi
11205 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
11206 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
11207 if test "$ac_test_CXXFLAGS" = set; then
11208   CXXFLAGS=$ac_save_CXXFLAGS
11209 elif test $ac_cv_prog_cxx_g = yes; then
11210   if test "$GXX" = yes; then
11211     CXXFLAGS="-g -O2"
11212   else
11213     CXXFLAGS="-g"
11214   fi
11215 else
11216   if test "$GXX" = yes; then
11217     CXXFLAGS="-O2"
11218   else
11219     CXXFLAGS=
11220   fi
11221 fi
11222 for ac_declaration in \
11223    '' \
11224    'extern "C" void std::exit (int) throw (); using std::exit;' \
11225    'extern "C" void std::exit (int); using std::exit;' \
11226    'extern "C" void exit (int) throw ();' \
11227    'extern "C" void exit (int);' \
11228    'void exit (int);'
11229 do
11230   cat >conftest.$ac_ext <<_ACEOF
11231 /* confdefs.h.  */
11232 _ACEOF
11233 cat confdefs.h >>conftest.$ac_ext
11234 cat >>conftest.$ac_ext <<_ACEOF
11235 /* end confdefs.h.  */
11236 $ac_declaration
11237 #include <stdlib.h>
11238 int
11239 main ()
11240 {
11241 exit (42);
11242   ;
11243   return 0;
11244 }
11245 _ACEOF
11246 rm -f conftest.$ac_objext
11247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11248   (eval $ac_compile) 2>conftest.er1
11249   ac_status=$?
11250   grep -v '^ *+' conftest.er1 >conftest.err
11251   rm -f conftest.er1
11252   cat conftest.err >&5
11253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11254   (exit $ac_status); } &&
11255          { ac_try='test -z "$ac_cxx_werror_flag"
11256                          || test ! -s conftest.err'
11257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11258   (eval $ac_try) 2>&5
11259   ac_status=$?
11260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11261   (exit $ac_status); }; } &&
11262          { ac_try='test -s conftest.$ac_objext'
11263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11264   (eval $ac_try) 2>&5
11265   ac_status=$?
11266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11267   (exit $ac_status); }; }; then
11268   :
11269 else
11270   echo "$as_me: failed program was:" >&5
11271 sed 's/^/| /' conftest.$ac_ext >&5
11272
11273 continue
11274 fi
11275 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11276   cat >conftest.$ac_ext <<_ACEOF
11277 /* confdefs.h.  */
11278 _ACEOF
11279 cat confdefs.h >>conftest.$ac_ext
11280 cat >>conftest.$ac_ext <<_ACEOF
11281 /* end confdefs.h.  */
11282 $ac_declaration
11283 int
11284 main ()
11285 {
11286 exit (42);
11287   ;
11288   return 0;
11289 }
11290 _ACEOF
11291 rm -f conftest.$ac_objext
11292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11293   (eval $ac_compile) 2>conftest.er1
11294   ac_status=$?
11295   grep -v '^ *+' conftest.er1 >conftest.err
11296   rm -f conftest.er1
11297   cat conftest.err >&5
11298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11299   (exit $ac_status); } &&
11300          { ac_try='test -z "$ac_cxx_werror_flag"
11301                          || test ! -s conftest.err'
11302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11303   (eval $ac_try) 2>&5
11304   ac_status=$?
11305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11306   (exit $ac_status); }; } &&
11307          { ac_try='test -s conftest.$ac_objext'
11308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11309   (eval $ac_try) 2>&5
11310   ac_status=$?
11311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11312   (exit $ac_status); }; }; then
11313   break
11314 else
11315   echo "$as_me: failed program was:" >&5
11316 sed 's/^/| /' conftest.$ac_ext >&5
11317
11318 fi
11319 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11320 done
11321 rm -f conftest*
11322 if test -n "$ac_declaration"; then
11323   echo '#ifdef __cplusplus' >>confdefs.h
11324   echo $ac_declaration      >>confdefs.h
11325   echo '#endif'             >>confdefs.h
11326 fi
11327
11328 ac_ext=cc
11329 ac_cpp='$CXXCPP $CPPFLAGS'
11330 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11331 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11332 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11333
11334 depcc="$CXX"  am_compiler_list=
11335
11336 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
11337 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
11338 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
11339   echo $ECHO_N "(cached) $ECHO_C" >&6
11340 else
11341   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11342   # We make a subdir and do the tests there.  Otherwise we can end up
11343   # making bogus files that we don't know about and never remove.  For
11344   # instance it was reported that on HP-UX the gcc test will end up
11345   # making a dummy file named `D' -- because `-MD' means `put the output
11346   # in D'.
11347   mkdir conftest.dir
11348   # Copy depcomp to subdir because otherwise we won't find it if we're
11349   # using a relative directory.
11350   cp "$am_depcomp" conftest.dir
11351   cd conftest.dir
11352   # We will build objects and dependencies in a subdirectory because
11353   # it helps to detect inapplicable dependency modes.  For instance
11354   # both Tru64's cc and ICC support -MD to output dependencies as a
11355   # side effect of compilation, but ICC will put the dependencies in
11356   # the current directory while Tru64 will put them in the object
11357   # directory.
11358   mkdir sub
11359
11360   am_cv_CXX_dependencies_compiler_type=none
11361   if test "$am_compiler_list" = ""; then
11362      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11363   fi
11364   for depmode in $am_compiler_list; do
11365     # Setup a source with many dependencies, because some compilers
11366     # like to wrap large dependency lists on column 80 (with \), and
11367     # we should not choose a depcomp mode which is confused by this.
11368     #
11369     # We need to recreate these files for each test, as the compiler may
11370     # overwrite some of them when testing with obscure command lines.
11371     # This happens at least with the AIX C compiler.
11372     : > sub/conftest.c
11373     for i in 1 2 3 4 5 6; do
11374       echo '#include "conftst'$i'.h"' >> sub/conftest.c
11375       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11376       # Solaris 8's {/usr,}/bin/sh.
11377       touch sub/conftst$i.h
11378     done
11379     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11380
11381     case $depmode in
11382     nosideeffect)
11383       # after this tag, mechanisms are not by side-effect, so they'll
11384       # only be used when explicitly requested
11385       if test "x$enable_dependency_tracking" = xyes; then
11386         continue
11387       else
11388         break
11389       fi
11390       ;;
11391     none) break ;;
11392     esac
11393     # We check with `-c' and `-o' for the sake of the "dashmstdout"
11394     # mode.  It turns out that the SunPro C++ compiler does not properly
11395     # handle `-M -o', and we need to detect this.
11396     if depmode=$depmode \
11397        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
11398        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11399        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
11400          >/dev/null 2>conftest.err &&
11401        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11402        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
11403        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11404       # icc doesn't choke on unknown options, it will just issue warnings
11405       # or remarks (even with -Werror).  So we grep stderr for any message
11406       # that says an option was ignored or not supported.
11407       # When given -MP, icc 7.0 and 7.1 complain thusly:
11408       #   icc: Command line warning: ignoring option '-M'; no argument required
11409       # The diagnosis changed in icc 8.0:
11410       #   icc: Command line remark: option '-MP' not supported
11411       if (grep 'ignoring option' conftest.err ||
11412           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11413         am_cv_CXX_dependencies_compiler_type=$depmode
11414         break
11415       fi
11416     fi
11417   done
11418
11419   cd ..
11420   rm -rf conftest.dir
11421 else
11422   am_cv_CXX_dependencies_compiler_type=none
11423 fi
11424
11425 fi
11426 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
11427 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
11428 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
11429
11430
11431
11432 if
11433   test "x$enable_dependency_tracking" != xno \
11434   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
11435   am__fastdepCXX_TRUE=
11436   am__fastdepCXX_FALSE='#'
11437 else
11438   am__fastdepCXX_TRUE='#'
11439   am__fastdepCXX_FALSE=
11440 fi
11441
11442
11443
11444
11445 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11446     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11447     (test "X$CXX" != "Xg++"))) ; then
11448   ac_ext=cc
11449 ac_cpp='$CXXCPP $CPPFLAGS'
11450 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11451 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11452 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11453 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
11454 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
11455 if test -z "$CXXCPP"; then
11456   if test "${ac_cv_prog_CXXCPP+set}" = set; then
11457   echo $ECHO_N "(cached) $ECHO_C" >&6
11458 else
11459       # Double quotes because CXXCPP needs to be expanded
11460     for CXXCPP in "$CXX -E" "/lib/cpp"
11461     do
11462       ac_preproc_ok=false
11463 for ac_cxx_preproc_warn_flag in '' yes
11464 do
11465   # Use a header file that comes with gcc, so configuring glibc
11466   # with a fresh cross-compiler works.
11467   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11468   # <limits.h> exists even on freestanding compilers.
11469   # On the NeXT, cc -E runs the code through the compiler's parser,
11470   # not just through cpp. "Syntax error" is here to catch this case.
11471   cat >conftest.$ac_ext <<_ACEOF
11472 /* confdefs.h.  */
11473 _ACEOF
11474 cat confdefs.h >>conftest.$ac_ext
11475 cat >>conftest.$ac_ext <<_ACEOF
11476 /* end confdefs.h.  */
11477 #ifdef __STDC__
11478 # include <limits.h>
11479 #else
11480 # include <assert.h>
11481 #endif
11482                      Syntax error
11483 _ACEOF
11484 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11485   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11486   ac_status=$?
11487   grep -v '^ *+' conftest.er1 >conftest.err
11488   rm -f conftest.er1
11489   cat conftest.err >&5
11490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11491   (exit $ac_status); } >/dev/null; then
11492   if test -s conftest.err; then
11493     ac_cpp_err=$ac_cxx_preproc_warn_flag
11494     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11495   else
11496     ac_cpp_err=
11497   fi
11498 else
11499   ac_cpp_err=yes
11500 fi
11501 if test -z "$ac_cpp_err"; then
11502   :
11503 else
11504   echo "$as_me: failed program was:" >&5
11505 sed 's/^/| /' conftest.$ac_ext >&5
11506
11507   # Broken: fails on valid input.
11508 continue
11509 fi
11510 rm -f conftest.err conftest.$ac_ext
11511
11512   # OK, works on sane cases.  Now check whether non-existent headers
11513   # can be detected and how.
11514   cat >conftest.$ac_ext <<_ACEOF
11515 /* confdefs.h.  */
11516 _ACEOF
11517 cat confdefs.h >>conftest.$ac_ext
11518 cat >>conftest.$ac_ext <<_ACEOF
11519 /* end confdefs.h.  */
11520 #include <ac_nonexistent.h>
11521 _ACEOF
11522 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11523   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11524   ac_status=$?
11525   grep -v '^ *+' conftest.er1 >conftest.err
11526   rm -f conftest.er1
11527   cat conftest.err >&5
11528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11529   (exit $ac_status); } >/dev/null; then
11530   if test -s conftest.err; then
11531     ac_cpp_err=$ac_cxx_preproc_warn_flag
11532     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11533   else
11534     ac_cpp_err=
11535   fi
11536 else
11537   ac_cpp_err=yes
11538 fi
11539 if test -z "$ac_cpp_err"; then
11540   # Broken: success on invalid input.
11541 continue
11542 else
11543   echo "$as_me: failed program was:" >&5
11544 sed 's/^/| /' conftest.$ac_ext >&5
11545
11546   # Passes both tests.
11547 ac_preproc_ok=:
11548 break
11549 fi
11550 rm -f conftest.err conftest.$ac_ext
11551
11552 done
11553 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11554 rm -f conftest.err conftest.$ac_ext
11555 if $ac_preproc_ok; then
11556   break
11557 fi
11558
11559     done
11560     ac_cv_prog_CXXCPP=$CXXCPP
11561
11562 fi
11563   CXXCPP=$ac_cv_prog_CXXCPP
11564 else
11565   ac_cv_prog_CXXCPP=$CXXCPP
11566 fi
11567 echo "$as_me:$LINENO: result: $CXXCPP" >&5
11568 echo "${ECHO_T}$CXXCPP" >&6
11569 ac_preproc_ok=false
11570 for ac_cxx_preproc_warn_flag in '' yes
11571 do
11572   # Use a header file that comes with gcc, so configuring glibc
11573   # with a fresh cross-compiler works.
11574   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11575   # <limits.h> exists even on freestanding compilers.
11576   # On the NeXT, cc -E runs the code through the compiler's parser,
11577   # not just through cpp. "Syntax error" is here to catch this case.
11578   cat >conftest.$ac_ext <<_ACEOF
11579 /* confdefs.h.  */
11580 _ACEOF
11581 cat confdefs.h >>conftest.$ac_ext
11582 cat >>conftest.$ac_ext <<_ACEOF
11583 /* end confdefs.h.  */
11584 #ifdef __STDC__
11585 # include <limits.h>
11586 #else
11587 # include <assert.h>
11588 #endif
11589                      Syntax error
11590 _ACEOF
11591 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11592   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11593   ac_status=$?
11594   grep -v '^ *+' conftest.er1 >conftest.err
11595   rm -f conftest.er1
11596   cat conftest.err >&5
11597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11598   (exit $ac_status); } >/dev/null; then
11599   if test -s conftest.err; then
11600     ac_cpp_err=$ac_cxx_preproc_warn_flag
11601     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11602   else
11603     ac_cpp_err=
11604   fi
11605 else
11606   ac_cpp_err=yes
11607 fi
11608 if test -z "$ac_cpp_err"; then
11609   :
11610 else
11611   echo "$as_me: failed program was:" >&5
11612 sed 's/^/| /' conftest.$ac_ext >&5
11613
11614   # Broken: fails on valid input.
11615 continue
11616 fi
11617 rm -f conftest.err conftest.$ac_ext
11618
11619   # OK, works on sane cases.  Now check whether non-existent headers
11620   # can be detected and how.
11621   cat >conftest.$ac_ext <<_ACEOF
11622 /* confdefs.h.  */
11623 _ACEOF
11624 cat confdefs.h >>conftest.$ac_ext
11625 cat >>conftest.$ac_ext <<_ACEOF
11626 /* end confdefs.h.  */
11627 #include <ac_nonexistent.h>
11628 _ACEOF
11629 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11630   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11631   ac_status=$?
11632   grep -v '^ *+' conftest.er1 >conftest.err
11633   rm -f conftest.er1
11634   cat conftest.err >&5
11635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11636   (exit $ac_status); } >/dev/null; then
11637   if test -s conftest.err; then
11638     ac_cpp_err=$ac_cxx_preproc_warn_flag
11639     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11640   else
11641     ac_cpp_err=
11642   fi
11643 else
11644   ac_cpp_err=yes
11645 fi
11646 if test -z "$ac_cpp_err"; then
11647   # Broken: success on invalid input.
11648 continue
11649 else
11650   echo "$as_me: failed program was:" >&5
11651 sed 's/^/| /' conftest.$ac_ext >&5
11652
11653   # Passes both tests.
11654 ac_preproc_ok=:
11655 break
11656 fi
11657 rm -f conftest.err conftest.$ac_ext
11658
11659 done
11660 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11661 rm -f conftest.err conftest.$ac_ext
11662 if $ac_preproc_ok; then
11663   :
11664 else
11665   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
11666 See \`config.log' for more details." >&5
11667 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
11668 See \`config.log' for more details." >&2;}
11669    { (exit 1); exit 1; }; }
11670 fi
11671
11672 ac_ext=cc
11673 ac_cpp='$CXXCPP $CPPFLAGS'
11674 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11675 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11676 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11677
11678 fi
11679
11680
11681 ac_ext=f
11682 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
11683 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11684 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
11685 if test -n "$ac_tool_prefix"; then
11686   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
11687   do
11688     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11689 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11690 echo "$as_me:$LINENO: checking for $ac_word" >&5
11691 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11692 if test "${ac_cv_prog_F77+set}" = set; then
11693   echo $ECHO_N "(cached) $ECHO_C" >&6
11694 else
11695   if test -n "$F77"; then
11696   ac_cv_prog_F77="$F77" # Let the user override the test.
11697 else
11698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11699 for as_dir in $PATH
11700 do
11701   IFS=$as_save_IFS
11702   test -z "$as_dir" && as_dir=.
11703   for ac_exec_ext in '' $ac_executable_extensions; do
11704   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11705     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
11706     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11707     break 2
11708   fi
11709 done
11710 done
11711
11712 fi
11713 fi
11714 F77=$ac_cv_prog_F77
11715 if test -n "$F77"; then
11716   echo "$as_me:$LINENO: result: $F77" >&5
11717 echo "${ECHO_T}$F77" >&6
11718 else
11719   echo "$as_me:$LINENO: result: no" >&5
11720 echo "${ECHO_T}no" >&6
11721 fi
11722
11723     test -n "$F77" && break
11724   done
11725 fi
11726 if test -z "$F77"; then
11727   ac_ct_F77=$F77
11728   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
11729 do
11730   # Extract the first word of "$ac_prog", so it can be a program name with args.
11731 set dummy $ac_prog; ac_word=$2
11732 echo "$as_me:$LINENO: checking for $ac_word" >&5
11733 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11734 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
11735   echo $ECHO_N "(cached) $ECHO_C" >&6
11736 else
11737   if test -n "$ac_ct_F77"; then
11738   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
11739 else
11740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11741 for as_dir in $PATH
11742 do
11743   IFS=$as_save_IFS
11744   test -z "$as_dir" && as_dir=.
11745   for ac_exec_ext in '' $ac_executable_extensions; do
11746   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11747     ac_cv_prog_ac_ct_F77="$ac_prog"
11748     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11749     break 2
11750   fi
11751 done
11752 done
11753
11754 fi
11755 fi
11756 ac_ct_F77=$ac_cv_prog_ac_ct_F77
11757 if test -n "$ac_ct_F77"; then
11758   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
11759 echo "${ECHO_T}$ac_ct_F77" >&6
11760 else
11761   echo "$as_me:$LINENO: result: no" >&5
11762 echo "${ECHO_T}no" >&6
11763 fi
11764
11765   test -n "$ac_ct_F77" && break
11766 done
11767
11768   F77=$ac_ct_F77
11769 fi
11770
11771
11772 # Provide some information about the compiler.
11773 echo "$as_me:11773:" \
11774      "checking for Fortran 77 compiler version" >&5
11775 ac_compiler=`set X $ac_compile; echo $2`
11776 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11777   (eval $ac_compiler --version </dev/null >&5) 2>&5
11778   ac_status=$?
11779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11780   (exit $ac_status); }
11781 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11782   (eval $ac_compiler -v </dev/null >&5) 2>&5
11783   ac_status=$?
11784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11785   (exit $ac_status); }
11786 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11787   (eval $ac_compiler -V </dev/null >&5) 2>&5
11788   ac_status=$?
11789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11790   (exit $ac_status); }
11791 rm -f a.out
11792
11793 # If we don't use `.F' as extension, the preprocessor is not run on the
11794 # input file.  (Note that this only needs to work for GNU compilers.)
11795 ac_save_ext=$ac_ext
11796 ac_ext=F
11797 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
11798 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
11799 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
11800   echo $ECHO_N "(cached) $ECHO_C" >&6
11801 else
11802   cat >conftest.$ac_ext <<_ACEOF
11803       program main
11804 #ifndef __GNUC__
11805        choke me
11806 #endif
11807
11808       end
11809 _ACEOF
11810 rm -f conftest.$ac_objext
11811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11812   (eval $ac_compile) 2>conftest.er1
11813   ac_status=$?
11814   grep -v '^ *+' conftest.er1 >conftest.err
11815   rm -f conftest.er1
11816   cat conftest.err >&5
11817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11818   (exit $ac_status); } &&
11819          { ac_try='test -z "$ac_f77_werror_flag"
11820                          || test ! -s conftest.err'
11821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11822   (eval $ac_try) 2>&5
11823   ac_status=$?
11824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11825   (exit $ac_status); }; } &&
11826          { ac_try='test -s conftest.$ac_objext'
11827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11828   (eval $ac_try) 2>&5
11829   ac_status=$?
11830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11831   (exit $ac_status); }; }; then
11832   ac_compiler_gnu=yes
11833 else
11834   echo "$as_me: failed program was:" >&5
11835 sed 's/^/| /' conftest.$ac_ext >&5
11836
11837 ac_compiler_gnu=no
11838 fi
11839 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11840 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
11841
11842 fi
11843 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
11844 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
11845 ac_ext=$ac_save_ext
11846 ac_test_FFLAGS=${FFLAGS+set}
11847 ac_save_FFLAGS=$FFLAGS
11848 FFLAGS=
11849 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
11850 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
11851 if test "${ac_cv_prog_f77_g+set}" = set; then
11852   echo $ECHO_N "(cached) $ECHO_C" >&6
11853 else
11854   FFLAGS=-g
11855 cat >conftest.$ac_ext <<_ACEOF
11856       program main
11857
11858       end
11859 _ACEOF
11860 rm -f conftest.$ac_objext
11861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11862   (eval $ac_compile) 2>conftest.er1
11863   ac_status=$?
11864   grep -v '^ *+' conftest.er1 >conftest.err
11865   rm -f conftest.er1
11866   cat conftest.err >&5
11867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11868   (exit $ac_status); } &&
11869          { ac_try='test -z "$ac_f77_werror_flag"
11870                          || test ! -s conftest.err'
11871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11872   (eval $ac_try) 2>&5
11873   ac_status=$?
11874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11875   (exit $ac_status); }; } &&
11876          { ac_try='test -s conftest.$ac_objext'
11877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11878   (eval $ac_try) 2>&5
11879   ac_status=$?
11880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11881   (exit $ac_status); }; }; then
11882   ac_cv_prog_f77_g=yes
11883 else
11884   echo "$as_me: failed program was:" >&5
11885 sed 's/^/| /' conftest.$ac_ext >&5
11886
11887 ac_cv_prog_f77_g=no
11888 fi
11889 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11890
11891 fi
11892 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
11893 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
11894 if test "$ac_test_FFLAGS" = set; then
11895   FFLAGS=$ac_save_FFLAGS
11896 elif test $ac_cv_prog_f77_g = yes; then
11897   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
11898     FFLAGS="-g -O2"
11899   else
11900     FFLAGS="-g"
11901   fi
11902 else
11903   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
11904     FFLAGS="-O2"
11905   else
11906     FFLAGS=
11907   fi
11908 fi
11909
11910 G77=`test $ac_compiler_gnu = yes && echo yes`
11911 ac_ext=c
11912 ac_cpp='$CPP $CPPFLAGS'
11913 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11914 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11915 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11916
11917
11918
11919 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
11920
11921 # find the maximum length of command line arguments
11922 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
11923 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
11924 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
11925   echo $ECHO_N "(cached) $ECHO_C" >&6
11926 else
11927     i=0
11928   teststring="ABCD"
11929
11930   case $build_os in
11931   msdosdjgpp*)
11932     # On DJGPP, this test can blow up pretty badly due to problems in libc
11933     # (any single argument exceeding 2000 bytes causes a buffer overrun
11934     # during glob expansion).  Even if it were fixed, the result of this
11935     # check would be larger than it should be.
11936     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
11937     ;;
11938
11939   gnu*)
11940     # Under GNU Hurd, this test is not required because there is
11941     # no limit to the length of command line arguments.
11942     # Libtool will interpret -1 as no limit whatsoever
11943     lt_cv_sys_max_cmd_len=-1;
11944     ;;
11945
11946   cygwin* | mingw*)
11947     # On Win9x/ME, this test blows up -- it succeeds, but takes
11948     # about 5 minutes as the teststring grows exponentially.
11949     # Worse, since 9x/ME are not pre-emptively multitasking,
11950     # you end up with a "frozen" computer, even though with patience
11951     # the test eventually succeeds (with a max line length of 256k).
11952     # Instead, let's just punt: use the minimum linelength reported by
11953     # all of the supported platforms: 8192 (on NT/2K/XP).
11954     lt_cv_sys_max_cmd_len=8192;
11955     ;;
11956
11957   amigaos*)
11958     # On AmigaOS with pdksh, this test takes hours, literally.
11959     # So we just punt and use a minimum line length of 8192.
11960     lt_cv_sys_max_cmd_len=8192;
11961     ;;
11962
11963   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
11964     # This has been around since 386BSD, at least.  Likely further.
11965     if test -x /sbin/sysctl; then
11966       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11967     elif test -x /usr/sbin/sysctl; then
11968       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11969     else
11970       lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
11971     fi
11972     # And add a safety zone
11973     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11974     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11975     ;;
11976   osf*)
11977     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11978     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11979     # nice to cause kernel panics so lets avoid the loop below.
11980     # First set a reasonable default.
11981     lt_cv_sys_max_cmd_len=16384
11982     #
11983     if test -x /sbin/sysconfig; then
11984       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11985         *1*) lt_cv_sys_max_cmd_len=-1 ;;
11986       esac
11987     fi
11988     ;;
11989   *)
11990     # If test is not a shell built-in, we'll probably end up computing a
11991     # maximum length that is only half of the actual maximum length, but
11992     # we can't tell.
11993     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11994     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
11995                = "XX$teststring") >/dev/null 2>&1 &&
11996             new_result=`expr "X$teststring" : ".*" 2>&1` &&
11997             lt_cv_sys_max_cmd_len=$new_result &&
11998             test $i != 17 # 1/2 MB should be enough
11999     do
12000       i=`expr $i + 1`
12001       teststring=$teststring$teststring
12002     done
12003     teststring=
12004     # Add a significant safety factor because C++ compilers can tack on massive
12005     # amounts of additional arguments before passing them to the linker.
12006     # It appears as though 1/2 is a usable value.
12007     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12008     ;;
12009   esac
12010
12011 fi
12012
12013 if test -n $lt_cv_sys_max_cmd_len ; then
12014   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
12015 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
12016 else
12017   echo "$as_me:$LINENO: result: none" >&5
12018 echo "${ECHO_T}none" >&6
12019 fi
12020
12021
12022
12023
12024 # Check for command to grab the raw symbol name followed by C symbol from nm.
12025 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
12026 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
12027 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
12028   echo $ECHO_N "(cached) $ECHO_C" >&6
12029 else
12030
12031 # These are sane defaults that work on at least a few old systems.
12032 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
12033
12034 # Character class describing NM global symbol codes.
12035 symcode='[BCDEGRST]'
12036
12037 # Regexp to match symbols that can be accessed directly from C.
12038 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12039
12040 # Transform an extracted symbol line into a proper C declaration
12041 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
12042
12043 # Transform an extracted symbol line into symbol name and symbol address
12044 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'"
12045
12046 # Define system-specific variables.
12047 case $host_os in
12048 aix*)
12049   symcode='[BCDT]'
12050   ;;
12051 cygwin* | mingw* | pw32*)
12052   symcode='[ABCDGISTW]'
12053   ;;
12054 hpux*) # Its linker distinguishes data from code symbols
12055   if test "$host_cpu" = ia64; then
12056     symcode='[ABCDEGRST]'
12057   fi
12058   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12059   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'"
12060   ;;
12061 linux*)
12062   if test "$host_cpu" = ia64; then
12063     symcode='[ABCDGIRSTW]'
12064     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12065     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'"
12066   fi
12067   ;;
12068 irix* | nonstopux*)
12069   symcode='[BCDEGRST]'
12070   ;;
12071 osf*)
12072   symcode='[BCDEGQRST]'
12073   ;;
12074 solaris* | sysv5*)
12075   symcode='[BDRT]'
12076   ;;
12077 sysv4)
12078   symcode='[DFNSTU]'
12079   ;;
12080 esac
12081
12082 # Handle CRLF in mingw tool chain
12083 opt_cr=
12084 case $build_os in
12085 mingw*)
12086   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12087   ;;
12088 esac
12089
12090 # If we're using GNU nm, then use its standard symbol codes.
12091 case `$NM -V 2>&1` in
12092 *GNU* | *'with BFD'*)
12093   symcode='[ABCDGIRSTW]' ;;
12094 esac
12095
12096 # Try without a prefix undercore, then with it.
12097 for ac_symprfx in "" "_"; do
12098
12099   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12100   symxfrm="\\1 $ac_symprfx\\2 \\2"
12101
12102   # Write the raw and C identifiers.
12103   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12104
12105   # Check to see that the pipe works correctly.
12106   pipe_works=no
12107
12108   rm -f conftest*
12109   cat > conftest.$ac_ext <<EOF
12110 #ifdef __cplusplus
12111 extern "C" {
12112 #endif
12113 char nm_test_var;
12114 void nm_test_func(){}
12115 #ifdef __cplusplus
12116 }
12117 #endif
12118 int main(){nm_test_var='a';nm_test_func();return(0);}
12119 EOF
12120
12121   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12122   (eval $ac_compile) 2>&5
12123   ac_status=$?
12124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12125   (exit $ac_status); }; then
12126     # Now try to grab the symbols.
12127     nlist=conftest.nm
12128     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
12129   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
12130   ac_status=$?
12131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12132   (exit $ac_status); } && test -s "$nlist"; then
12133       # Try sorting and uniquifying the output.
12134       if sort "$nlist" | uniq > "$nlist"T; then
12135         mv -f "$nlist"T "$nlist"
12136       else
12137         rm -f "$nlist"T
12138       fi
12139
12140       # Make sure that we snagged all the symbols we need.
12141       if grep ' nm_test_var$' "$nlist" >/dev/null; then
12142         if grep ' nm_test_func$' "$nlist" >/dev/null; then
12143           cat <<EOF > conftest.$ac_ext
12144 #ifdef __cplusplus
12145 extern "C" {
12146 #endif
12147
12148 EOF
12149           # Now generate the symbol file.
12150           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
12151
12152           cat <<EOF >> conftest.$ac_ext
12153 #if defined (__STDC__) && __STDC__
12154 # define lt_ptr_t void *
12155 #else
12156 # define lt_ptr_t char *
12157 # define const
12158 #endif
12159
12160 /* The mapping between symbol names and symbols. */
12161 const struct {
12162   const char *name;
12163   lt_ptr_t address;
12164 }
12165 lt_preloaded_symbols[] =
12166 {
12167 EOF
12168           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
12169           cat <<\EOF >> conftest.$ac_ext
12170   {0, (lt_ptr_t) 0}
12171 };
12172
12173 #ifdef __cplusplus
12174 }
12175 #endif
12176 EOF
12177           # Now try linking the two files.
12178           mv conftest.$ac_objext conftstm.$ac_objext
12179           lt_save_LIBS="$LIBS"
12180           lt_save_CFLAGS="$CFLAGS"
12181           LIBS="conftstm.$ac_objext"
12182           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12183           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12184   (eval $ac_link) 2>&5
12185   ac_status=$?
12186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12187   (exit $ac_status); } && test -s conftest${ac_exeext}; then
12188             pipe_works=yes
12189           fi
12190           LIBS="$lt_save_LIBS"
12191           CFLAGS="$lt_save_CFLAGS"
12192         else
12193           echo "cannot find nm_test_func in $nlist" >&5
12194         fi
12195       else
12196         echo "cannot find nm_test_var in $nlist" >&5
12197       fi
12198     else
12199       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12200     fi
12201   else
12202     echo "$progname: failed program was:" >&5
12203     cat conftest.$ac_ext >&5
12204   fi
12205   rm -f conftest* conftst*
12206
12207   # Do not use the global_symbol_pipe unless it works.
12208   if test "$pipe_works" = yes; then
12209     break
12210   else
12211     lt_cv_sys_global_symbol_pipe=
12212   fi
12213 done
12214
12215 fi
12216
12217 if test -z "$lt_cv_sys_global_symbol_pipe"; then
12218   lt_cv_sys_global_symbol_to_cdecl=
12219 fi
12220 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12221   echo "$as_me:$LINENO: result: failed" >&5
12222 echo "${ECHO_T}failed" >&6
12223 else
12224   echo "$as_me:$LINENO: result: ok" >&5
12225 echo "${ECHO_T}ok" >&6
12226 fi
12227
12228 echo "$as_me:$LINENO: checking for objdir" >&5
12229 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
12230 if test "${lt_cv_objdir+set}" = set; then
12231   echo $ECHO_N "(cached) $ECHO_C" >&6
12232 else
12233   rm -f .libs 2>/dev/null
12234 mkdir .libs 2>/dev/null
12235 if test -d .libs; then
12236   lt_cv_objdir=.libs
12237 else
12238   # MS-DOS does not allow filenames that begin with a dot.
12239   lt_cv_objdir=_libs
12240 fi
12241 rmdir .libs 2>/dev/null
12242 fi
12243 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
12244 echo "${ECHO_T}$lt_cv_objdir" >&6
12245 objdir=$lt_cv_objdir
12246
12247
12248
12249
12250
12251 case $host_os in
12252 aix3*)
12253   # AIX sometimes has problems with the GCC collect2 program.  For some
12254   # reason, if we set the COLLECT_NAMES environment variable, the problems
12255   # vanish in a puff of smoke.
12256   if test "X${COLLECT_NAMES+set}" != Xset; then
12257     COLLECT_NAMES=
12258     export COLLECT_NAMES
12259   fi
12260   ;;
12261 esac
12262
12263 # Sed substitution that helps us do robust quoting.  It backslashifies
12264 # metacharacters that are still active within double-quoted strings.
12265 Xsed='sed -e 1s/^X//'
12266 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
12267
12268 # Same as above, but do not quote variable references.
12269 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
12270
12271 # Sed substitution to delay expansion of an escaped shell variable in a
12272 # double_quote_subst'ed string.
12273 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12274
12275 # Sed substitution to avoid accidental globbing in evaled expressions
12276 no_glob_subst='s/\*/\\\*/g'
12277
12278 # Constants:
12279 rm="rm -f"
12280
12281 # Global variables:
12282 default_ofile=libtool
12283 can_build_shared=yes
12284
12285 # All known linkers require a `.a' archive for static linking (except M$VC,
12286 # which needs '.lib').
12287 libext=a
12288 ltmain="$ac_aux_dir/ltmain.sh"
12289 ofile="$default_ofile"
12290 with_gnu_ld="$lt_cv_prog_gnu_ld"
12291
12292 if test -n "$ac_tool_prefix"; then
12293   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12294 set dummy ${ac_tool_prefix}ar; ac_word=$2
12295 echo "$as_me:$LINENO: checking for $ac_word" >&5
12296 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12297 if test "${ac_cv_prog_AR+set}" = set; then
12298   echo $ECHO_N "(cached) $ECHO_C" >&6
12299 else
12300   if test -n "$AR"; then
12301   ac_cv_prog_AR="$AR" # Let the user override the test.
12302 else
12303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12304 for as_dir in $PATH
12305 do
12306   IFS=$as_save_IFS
12307   test -z "$as_dir" && as_dir=.
12308   for ac_exec_ext in '' $ac_executable_extensions; do
12309   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12310     ac_cv_prog_AR="${ac_tool_prefix}ar"
12311     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12312     break 2
12313   fi
12314 done
12315 done
12316
12317 fi
12318 fi
12319 AR=$ac_cv_prog_AR
12320 if test -n "$AR"; then
12321   echo "$as_me:$LINENO: result: $AR" >&5
12322 echo "${ECHO_T}$AR" >&6
12323 else
12324   echo "$as_me:$LINENO: result: no" >&5
12325 echo "${ECHO_T}no" >&6
12326 fi
12327
12328 fi
12329 if test -z "$ac_cv_prog_AR"; then
12330   ac_ct_AR=$AR
12331   # Extract the first word of "ar", so it can be a program name with args.
12332 set dummy ar; ac_word=$2
12333 echo "$as_me:$LINENO: checking for $ac_word" >&5
12334 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12335 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
12336   echo $ECHO_N "(cached) $ECHO_C" >&6
12337 else
12338   if test -n "$ac_ct_AR"; then
12339   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12340 else
12341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12342 for as_dir in $PATH
12343 do
12344   IFS=$as_save_IFS
12345   test -z "$as_dir" && as_dir=.
12346   for ac_exec_ext in '' $ac_executable_extensions; do
12347   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12348     ac_cv_prog_ac_ct_AR="ar"
12349     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12350     break 2
12351   fi
12352 done
12353 done
12354
12355   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
12356 fi
12357 fi
12358 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12359 if test -n "$ac_ct_AR"; then
12360   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
12361 echo "${ECHO_T}$ac_ct_AR" >&6
12362 else
12363   echo "$as_me:$LINENO: result: no" >&5
12364 echo "${ECHO_T}no" >&6
12365 fi
12366
12367   AR=$ac_ct_AR
12368 else
12369   AR="$ac_cv_prog_AR"
12370 fi
12371
12372 if test -n "$ac_tool_prefix"; then
12373   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12374 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12375 echo "$as_me:$LINENO: checking for $ac_word" >&5
12376 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12377 if test "${ac_cv_prog_RANLIB+set}" = set; then
12378   echo $ECHO_N "(cached) $ECHO_C" >&6
12379 else
12380   if test -n "$RANLIB"; then
12381   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12382 else
12383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12384 for as_dir in $PATH
12385 do
12386   IFS=$as_save_IFS
12387   test -z "$as_dir" && as_dir=.
12388   for ac_exec_ext in '' $ac_executable_extensions; do
12389   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12390     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12391     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12392     break 2
12393   fi
12394 done
12395 done
12396
12397 fi
12398 fi
12399 RANLIB=$ac_cv_prog_RANLIB
12400 if test -n "$RANLIB"; then
12401   echo "$as_me:$LINENO: result: $RANLIB" >&5
12402 echo "${ECHO_T}$RANLIB" >&6
12403 else
12404   echo "$as_me:$LINENO: result: no" >&5
12405 echo "${ECHO_T}no" >&6
12406 fi
12407
12408 fi
12409 if test -z "$ac_cv_prog_RANLIB"; then
12410   ac_ct_RANLIB=$RANLIB
12411   # Extract the first word of "ranlib", so it can be a program name with args.
12412 set dummy ranlib; ac_word=$2
12413 echo "$as_me:$LINENO: checking for $ac_word" >&5
12414 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12415 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
12416   echo $ECHO_N "(cached) $ECHO_C" >&6
12417 else
12418   if test -n "$ac_ct_RANLIB"; then
12419   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12420 else
12421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12422 for as_dir in $PATH
12423 do
12424   IFS=$as_save_IFS
12425   test -z "$as_dir" && as_dir=.
12426   for ac_exec_ext in '' $ac_executable_extensions; do
12427   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12428     ac_cv_prog_ac_ct_RANLIB="ranlib"
12429     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12430     break 2
12431   fi
12432 done
12433 done
12434
12435   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
12436 fi
12437 fi
12438 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12439 if test -n "$ac_ct_RANLIB"; then
12440   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
12441 echo "${ECHO_T}$ac_ct_RANLIB" >&6
12442 else
12443   echo "$as_me:$LINENO: result: no" >&5
12444 echo "${ECHO_T}no" >&6
12445 fi
12446
12447   RANLIB=$ac_ct_RANLIB
12448 else
12449   RANLIB="$ac_cv_prog_RANLIB"
12450 fi
12451
12452 if test -n "$ac_tool_prefix"; then
12453   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12454 set dummy ${ac_tool_prefix}strip; ac_word=$2
12455 echo "$as_me:$LINENO: checking for $ac_word" >&5
12456 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12457 if test "${ac_cv_prog_STRIP+set}" = set; then
12458   echo $ECHO_N "(cached) $ECHO_C" >&6
12459 else
12460   if test -n "$STRIP"; then
12461   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12462 else
12463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12464 for as_dir in $PATH
12465 do
12466   IFS=$as_save_IFS
12467   test -z "$as_dir" && as_dir=.
12468   for ac_exec_ext in '' $ac_executable_extensions; do
12469   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12470     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12471     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12472     break 2
12473   fi
12474 done
12475 done
12476
12477 fi
12478 fi
12479 STRIP=$ac_cv_prog_STRIP
12480 if test -n "$STRIP"; then
12481   echo "$as_me:$LINENO: result: $STRIP" >&5
12482 echo "${ECHO_T}$STRIP" >&6
12483 else
12484   echo "$as_me:$LINENO: result: no" >&5
12485 echo "${ECHO_T}no" >&6
12486 fi
12487
12488 fi
12489 if test -z "$ac_cv_prog_STRIP"; then
12490   ac_ct_STRIP=$STRIP
12491   # Extract the first word of "strip", so it can be a program name with args.
12492 set dummy strip; ac_word=$2
12493 echo "$as_me:$LINENO: checking for $ac_word" >&5
12494 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12495 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
12496   echo $ECHO_N "(cached) $ECHO_C" >&6
12497 else
12498   if test -n "$ac_ct_STRIP"; then
12499   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12500 else
12501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12502 for as_dir in $PATH
12503 do
12504   IFS=$as_save_IFS
12505   test -z "$as_dir" && as_dir=.
12506   for ac_exec_ext in '' $ac_executable_extensions; do
12507   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12508     ac_cv_prog_ac_ct_STRIP="strip"
12509     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12510     break 2
12511   fi
12512 done
12513 done
12514
12515   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
12516 fi
12517 fi
12518 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12519 if test -n "$ac_ct_STRIP"; then
12520   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
12521 echo "${ECHO_T}$ac_ct_STRIP" >&6
12522 else
12523   echo "$as_me:$LINENO: result: no" >&5
12524 echo "${ECHO_T}no" >&6
12525 fi
12526
12527   STRIP=$ac_ct_STRIP
12528 else
12529   STRIP="$ac_cv_prog_STRIP"
12530 fi
12531
12532
12533 old_CC="$CC"
12534 old_CFLAGS="$CFLAGS"
12535
12536 # Set sane defaults for various variables
12537 test -z "$AR" && AR=ar
12538 test -z "$AR_FLAGS" && AR_FLAGS=cru
12539 test -z "$AS" && AS=as
12540 test -z "$CC" && CC=cc
12541 test -z "$LTCC" && LTCC=$CC
12542 test -z "$DLLTOOL" && DLLTOOL=dlltool
12543 test -z "$LD" && LD=ld
12544 test -z "$LN_S" && LN_S="ln -s"
12545 test -z "$MAGIC_CMD" && MAGIC_CMD=file
12546 test -z "$NM" && NM=nm
12547 test -z "$SED" && SED=sed
12548 test -z "$OBJDUMP" && OBJDUMP=objdump
12549 test -z "$RANLIB" && RANLIB=:
12550 test -z "$STRIP" && STRIP=:
12551 test -z "$ac_objext" && ac_objext=o
12552
12553 # Determine commands to create old-style static archives.
12554 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
12555 old_postinstall_cmds='chmod 644 $oldlib'
12556 old_postuninstall_cmds=
12557
12558 if test -n "$RANLIB"; then
12559   case $host_os in
12560   openbsd*)
12561     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
12562     ;;
12563   *)
12564     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
12565     ;;
12566   esac
12567   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
12568 fi
12569
12570 for cc_temp in $compiler""; do
12571   case $cc_temp in
12572     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12573     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12574     \-*) ;;
12575     *) break;;
12576   esac
12577 done
12578 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12579
12580
12581 # Only perform the check for file, if the check method requires it
12582 case $deplibs_check_method in
12583 file_magic*)
12584   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
12585     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
12586 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
12587 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
12588   echo $ECHO_N "(cached) $ECHO_C" >&6
12589 else
12590   case $MAGIC_CMD in
12591 [\\/*] |  ?:[\\/]*)
12592   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12593   ;;
12594 *)
12595   lt_save_MAGIC_CMD="$MAGIC_CMD"
12596   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12597   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12598   for ac_dir in $ac_dummy; do
12599     IFS="$lt_save_ifs"
12600     test -z "$ac_dir" && ac_dir=.
12601     if test -f $ac_dir/${ac_tool_prefix}file; then
12602       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
12603       if test -n "$file_magic_test_file"; then
12604         case $deplibs_check_method in
12605         "file_magic "*)
12606           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
12607           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12608           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12609             $EGREP "$file_magic_regex" > /dev/null; then
12610             :
12611           else
12612             cat <<EOF 1>&2
12613
12614 *** Warning: the command libtool uses to detect shared libraries,
12615 *** $file_magic_cmd, produces output that libtool cannot recognize.
12616 *** The result is that libtool may fail to recognize shared libraries
12617 *** as such.  This will affect the creation of libtool libraries that
12618 *** depend on shared libraries, but programs linked with such libtool
12619 *** libraries will work regardless of this problem.  Nevertheless, you
12620 *** may want to report the problem to your system manager and/or to
12621 *** bug-libtool@gnu.org
12622
12623 EOF
12624           fi ;;
12625         esac
12626       fi
12627       break
12628     fi
12629   done
12630   IFS="$lt_save_ifs"
12631   MAGIC_CMD="$lt_save_MAGIC_CMD"
12632   ;;
12633 esac
12634 fi
12635
12636 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12637 if test -n "$MAGIC_CMD"; then
12638   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
12639 echo "${ECHO_T}$MAGIC_CMD" >&6
12640 else
12641   echo "$as_me:$LINENO: result: no" >&5
12642 echo "${ECHO_T}no" >&6
12643 fi
12644
12645 if test -z "$lt_cv_path_MAGIC_CMD"; then
12646   if test -n "$ac_tool_prefix"; then
12647     echo "$as_me:$LINENO: checking for file" >&5
12648 echo $ECHO_N "checking for file... $ECHO_C" >&6
12649 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
12650   echo $ECHO_N "(cached) $ECHO_C" >&6
12651 else
12652   case $MAGIC_CMD in
12653 [\\/*] |  ?:[\\/]*)
12654   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12655   ;;
12656 *)
12657   lt_save_MAGIC_CMD="$MAGIC_CMD"
12658   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12659   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12660   for ac_dir in $ac_dummy; do
12661     IFS="$lt_save_ifs"
12662     test -z "$ac_dir" && ac_dir=.
12663     if test -f $ac_dir/file; then
12664       lt_cv_path_MAGIC_CMD="$ac_dir/file"
12665       if test -n "$file_magic_test_file"; then
12666         case $deplibs_check_method in
12667         "file_magic "*)
12668           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
12669           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12670           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12671             $EGREP "$file_magic_regex" > /dev/null; then
12672             :
12673           else
12674             cat <<EOF 1>&2
12675
12676 *** Warning: the command libtool uses to detect shared libraries,
12677 *** $file_magic_cmd, produces output that libtool cannot recognize.
12678 *** The result is that libtool may fail to recognize shared libraries
12679 *** as such.  This will affect the creation of libtool libraries that
12680 *** depend on shared libraries, but programs linked with such libtool
12681 *** libraries will work regardless of this problem.  Nevertheless, you
12682 *** may want to report the problem to your system manager and/or to
12683 *** bug-libtool@gnu.org
12684
12685 EOF
12686           fi ;;
12687         esac
12688       fi
12689       break
12690     fi
12691   done
12692   IFS="$lt_save_ifs"
12693   MAGIC_CMD="$lt_save_MAGIC_CMD"
12694   ;;
12695 esac
12696 fi
12697
12698 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12699 if test -n "$MAGIC_CMD"; then
12700   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
12701 echo "${ECHO_T}$MAGIC_CMD" >&6
12702 else
12703   echo "$as_me:$LINENO: result: no" >&5
12704 echo "${ECHO_T}no" >&6
12705 fi
12706
12707   else
12708     MAGIC_CMD=:
12709   fi
12710 fi
12711
12712   fi
12713   ;;
12714 esac
12715
12716 enable_dlopen=no
12717 enable_win32_dll=no
12718
12719 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
12720 if test "${enable_libtool_lock+set}" = set; then
12721   enableval="$enable_libtool_lock"
12722
12723 fi;
12724 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12725
12726
12727 # Check whether --with-pic or --without-pic was given.
12728 if test "${with_pic+set}" = set; then
12729   withval="$with_pic"
12730   pic_mode="$withval"
12731 else
12732   pic_mode=default
12733 fi;
12734 test -z "$pic_mode" && pic_mode=default
12735
12736 # Use C for the default configuration in the libtool script
12737 tagname=
12738 lt_save_CC="$CC"
12739 ac_ext=c
12740 ac_cpp='$CPP $CPPFLAGS'
12741 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12742 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12743 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12744
12745
12746 # Source file extension for C test sources.
12747 ac_ext=c
12748
12749 # Object file extension for compiled C test sources.
12750 objext=o
12751 objext=$objext
12752
12753 # Code to be used in simple compile tests
12754 lt_simple_compile_test_code="int some_variable = 0;\n"
12755
12756 # Code to be used in simple link tests
12757 lt_simple_link_test_code='int main(){return(0);}\n'
12758
12759
12760 # If no C compiler was specified, use CC.
12761 LTCC=${LTCC-"$CC"}
12762
12763 # Allow CC to be a program name with arguments.
12764 compiler=$CC
12765
12766
12767 # save warnings/boilerplate of simple test code
12768 ac_outfile=conftest.$ac_objext
12769 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
12770 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
12771 _lt_compiler_boilerplate=`cat conftest.err`
12772 $rm conftest*
12773
12774 ac_outfile=conftest.$ac_objext
12775 printf "$lt_simple_link_test_code" >conftest.$ac_ext
12776 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
12777 _lt_linker_boilerplate=`cat conftest.err`
12778 $rm conftest*
12779
12780
12781 #
12782 # Check for any special shared library compilation flags.
12783 #
12784 lt_prog_cc_shlib=
12785 if test "$GCC" = no; then
12786   case $host_os in
12787   sco3.2v5*)
12788     lt_prog_cc_shlib='-belf'
12789     ;;
12790   esac
12791 fi
12792 if test -n "$lt_prog_cc_shlib"; then
12793   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
12794 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
12795   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
12796   else
12797     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
12798 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
12799     lt_cv_prog_cc_can_build_shared=no
12800   fi
12801 fi
12802
12803
12804 #
12805 # Check to make sure the static flag actually works.
12806 #
12807 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
12808 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
12809 if test "${lt_prog_compiler_static_works+set}" = set; then
12810   echo $ECHO_N "(cached) $ECHO_C" >&6
12811 else
12812   lt_prog_compiler_static_works=no
12813    save_LDFLAGS="$LDFLAGS"
12814    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
12815    printf "$lt_simple_link_test_code" > conftest.$ac_ext
12816    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12817      # The compiler can only warn and ignore the option if not recognized
12818      # So say no if there are warnings
12819      if test -s conftest.err; then
12820        # Append any errors to the config.log.
12821        cat conftest.err 1>&5
12822        $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
12823        $SED '/^$/d' conftest.err >conftest.er2
12824        if diff conftest.exp conftest.er2 >/dev/null; then
12825          lt_prog_compiler_static_works=yes
12826        fi
12827      else
12828        lt_prog_compiler_static_works=yes
12829      fi
12830    fi
12831    $rm conftest*
12832    LDFLAGS="$save_LDFLAGS"
12833
12834 fi
12835 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
12836 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
12837
12838 if test x"$lt_prog_compiler_static_works" = xyes; then
12839     :
12840 else
12841     lt_prog_compiler_static=
12842 fi
12843
12844
12845
12846 ## CAVEAT EMPTOR:
12847 ## There is no encapsulation within the following macros, do not change
12848 ## the running order or otherwise move them around unless you know exactly
12849 ## what you are doing...
12850
12851 lt_prog_compiler_no_builtin_flag=
12852
12853 if test "$GCC" = yes; then
12854   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
12855
12856
12857 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
12858 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
12859 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
12860   echo $ECHO_N "(cached) $ECHO_C" >&6
12861 else
12862   lt_cv_prog_compiler_rtti_exceptions=no
12863   ac_outfile=conftest.$ac_objext
12864    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12865    lt_compiler_flag="-fno-rtti -fno-exceptions"
12866    # Insert the option either (1) after the last *FLAGS variable, or
12867    # (2) before a word containing "conftest.", or (3) at the end.
12868    # Note that $ac_compile itself does not contain backslashes and begins
12869    # with a dollar sign (not a hyphen), so the echo should work correctly.
12870    # The option is referenced via a variable to avoid confusing sed.
12871    lt_compile=`echo "$ac_compile" | $SED \
12872    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12873    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12874    -e 's:$: $lt_compiler_flag:'`
12875    (eval echo "\"\$as_me:12875: $lt_compile\"" >&5)
12876    (eval "$lt_compile" 2>conftest.err)
12877    ac_status=$?
12878    cat conftest.err >&5
12879    echo "$as_me:12879: \$? = $ac_status" >&5
12880    if (exit $ac_status) && test -s "$ac_outfile"; then
12881      # The compiler can only warn and ignore the option if not recognized
12882      # So say no if there are warnings other than the usual output.
12883      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
12884      $SED '/^$/d' conftest.err >conftest.er2
12885      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
12886        lt_cv_prog_compiler_rtti_exceptions=yes
12887      fi
12888    fi
12889    $rm conftest*
12890
12891 fi
12892 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12893 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
12894
12895 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
12896     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
12897 else
12898     :
12899 fi
12900
12901 fi
12902
12903 lt_prog_compiler_wl=
12904 lt_prog_compiler_pic=
12905 lt_prog_compiler_static=
12906
12907 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12908 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12909
12910   if test "$GCC" = yes; then
12911     lt_prog_compiler_wl='-Wl,'
12912     lt_prog_compiler_static='-static'
12913
12914     case $host_os in
12915       aix*)
12916       # All AIX code is PIC.
12917       if test "$host_cpu" = ia64; then
12918         # AIX 5 now supports IA64 processor
12919         lt_prog_compiler_static='-Bstatic'
12920       fi
12921       ;;
12922
12923     amigaos*)
12924       # FIXME: we need at least 68020 code to build shared libraries, but
12925       # adding the `-m68020' flag to GCC prevents building anything better,
12926       # like `-m68040'.
12927       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12928       ;;
12929
12930     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12931       # PIC is the default for these OSes.
12932       ;;
12933
12934     mingw* | pw32* | os2*)
12935       # This hack is so that the source file can tell whether it is being
12936       # built for inclusion in a dll (and should export symbols for example).
12937       lt_prog_compiler_pic='-DDLL_EXPORT'
12938       ;;
12939
12940     darwin* | rhapsody*)
12941       # PIC is the default on this platform
12942       # Common symbols not allowed in MH_DYLIB files
12943       lt_prog_compiler_pic='-fno-common'
12944       ;;
12945
12946     msdosdjgpp*)
12947       # Just because we use GCC doesn't mean we suddenly get shared libraries
12948       # on systems that don't support them.
12949       lt_prog_compiler_can_build_shared=no
12950       enable_shared=no
12951       ;;
12952
12953     sysv4*MP*)
12954       if test -d /usr/nec; then
12955         lt_prog_compiler_pic=-Kconform_pic
12956       fi
12957       ;;
12958
12959     hpux*)
12960       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12961       # not for PA HP-UX.
12962       case "$host_cpu" in
12963       hppa*64*|ia64*)
12964         # +Z the default
12965         ;;
12966       *)
12967         lt_prog_compiler_pic='-fPIC'
12968         ;;
12969       esac
12970       ;;
12971
12972     *)
12973       lt_prog_compiler_pic='-fPIC'
12974       ;;
12975     esac
12976   else
12977     # PORTME Check for flag to pass linker flags through the system compiler.
12978     case $host_os in
12979     aix*)
12980       lt_prog_compiler_wl='-Wl,'
12981       if test "$host_cpu" = ia64; then
12982         # AIX 5 now supports IA64 processor
12983         lt_prog_compiler_static='-Bstatic'
12984       else
12985         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12986       fi
12987       ;;
12988       darwin*)
12989         # PIC is the default on this platform
12990         # Common symbols not allowed in MH_DYLIB files
12991        case $cc_basename in
12992          xlc*)
12993          lt_prog_compiler_pic='-qnocommon'
12994          lt_prog_compiler_wl='-Wl,'
12995          ;;
12996        esac
12997        ;;
12998
12999     mingw* | pw32* | os2*)
13000       # This hack is so that the source file can tell whether it is being
13001       # built for inclusion in a dll (and should export symbols for example).
13002       lt_prog_compiler_pic='-DDLL_EXPORT'
13003       ;;
13004
13005     hpux9* | hpux10* | hpux11*)
13006       lt_prog_compiler_wl='-Wl,'
13007       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13008       # not for PA HP-UX.
13009       case "$host_cpu" in
13010       hppa*64*|ia64*)
13011         # +Z the default
13012         ;;
13013       *)
13014         lt_prog_compiler_pic='+Z'
13015         ;;
13016       esac
13017       # Is there a better lt_prog_compiler_static that works with the bundled CC?
13018       lt_prog_compiler_static='${wl}-a ${wl}archive'
13019       ;;
13020
13021     irix5* | irix6* | nonstopux*)
13022       lt_prog_compiler_wl='-Wl,'
13023       # PIC (with -KPIC) is the default.
13024       lt_prog_compiler_static='-non_shared'
13025       ;;
13026
13027     newsos6)
13028       lt_prog_compiler_pic='-KPIC'
13029       lt_prog_compiler_static='-Bstatic'
13030       ;;
13031
13032     linux*)
13033       case $cc_basename in
13034       icc* | ecc*)
13035         lt_prog_compiler_wl='-Wl,'
13036         lt_prog_compiler_pic='-KPIC'
13037         lt_prog_compiler_static='-static'
13038         ;;
13039       pgcc* | pgf77* | pgf90*)
13040         # Portland Group compilers (*not* the Pentium gcc compiler,
13041         # which looks to be a dead project)
13042         lt_prog_compiler_wl='-Wl,'
13043         lt_prog_compiler_pic='-fpic'
13044         lt_prog_compiler_static='-static'
13045         ;;
13046       ccc*)
13047         lt_prog_compiler_wl='-Wl,'
13048         # All Alpha code is PIC.
13049         lt_prog_compiler_static='-non_shared'
13050         ;;
13051       esac
13052       ;;
13053
13054     osf3* | osf4* | osf5*)
13055       lt_prog_compiler_wl='-Wl,'
13056       # All OSF/1 code is PIC.
13057       lt_prog_compiler_static='-non_shared'
13058       ;;
13059
13060     sco3.2v5*)
13061       lt_prog_compiler_pic='-Kpic'
13062       lt_prog_compiler_static='-dn'
13063       ;;
13064
13065     solaris*)
13066       lt_prog_compiler_pic='-KPIC'
13067       lt_prog_compiler_static='-Bstatic'
13068       case $cc_basename in
13069       f77* | f90* | f95*)
13070         lt_prog_compiler_wl='-Qoption ld ';;
13071       *)
13072         lt_prog_compiler_wl='-Wl,';;
13073       esac
13074       ;;
13075
13076     sunos4*)
13077       lt_prog_compiler_wl='-Qoption ld '
13078       lt_prog_compiler_pic='-PIC'
13079       lt_prog_compiler_static='-Bstatic'
13080       ;;
13081
13082     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13083       lt_prog_compiler_wl='-Wl,'
13084       lt_prog_compiler_pic='-KPIC'
13085       lt_prog_compiler_static='-Bstatic'
13086       ;;
13087
13088     sysv4*MP*)
13089       if test -d /usr/nec ;then
13090         lt_prog_compiler_pic='-Kconform_pic'
13091         lt_prog_compiler_static='-Bstatic'
13092       fi
13093       ;;
13094
13095     unicos*)
13096       lt_prog_compiler_wl='-Wl,'
13097       lt_prog_compiler_can_build_shared=no
13098       ;;
13099
13100     uts4*)
13101       lt_prog_compiler_pic='-pic'
13102       lt_prog_compiler_static='-Bstatic'
13103       ;;
13104
13105     *)
13106       lt_prog_compiler_can_build_shared=no
13107       ;;
13108     esac
13109   fi
13110
13111 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
13112 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
13113
13114 #
13115 # Check to make sure the PIC flag actually works.
13116 #
13117 if test -n "$lt_prog_compiler_pic"; then
13118
13119 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
13120 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
13121 if test "${lt_prog_compiler_pic_works+set}" = set; then
13122   echo $ECHO_N "(cached) $ECHO_C" >&6
13123 else
13124   lt_prog_compiler_pic_works=no
13125   ac_outfile=conftest.$ac_objext
13126    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13127    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
13128    # Insert the option either (1) after the last *FLAGS variable, or
13129    # (2) before a word containing "conftest.", or (3) at the end.
13130    # Note that $ac_compile itself does not contain backslashes and begins
13131    # with a dollar sign (not a hyphen), so the echo should work correctly.
13132    # The option is referenced via a variable to avoid confusing sed.
13133    lt_compile=`echo "$ac_compile" | $SED \
13134    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13135    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13136    -e 's:$: $lt_compiler_flag:'`
13137    (eval echo "\"\$as_me:13137: $lt_compile\"" >&5)
13138    (eval "$lt_compile" 2>conftest.err)
13139    ac_status=$?
13140    cat conftest.err >&5
13141    echo "$as_me:13141: \$? = $ac_status" >&5
13142    if (exit $ac_status) && test -s "$ac_outfile"; then
13143      # The compiler can only warn and ignore the option if not recognized
13144      # So say no if there are warnings other than the usual output.
13145      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
13146      $SED '/^$/d' conftest.err >conftest.er2
13147      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
13148        lt_prog_compiler_pic_works=yes
13149      fi
13150    fi
13151    $rm conftest*
13152
13153 fi
13154 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
13155 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
13156
13157 if test x"$lt_prog_compiler_pic_works" = xyes; then
13158     case $lt_prog_compiler_pic in
13159      "" | " "*) ;;
13160      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13161      esac
13162 else
13163     lt_prog_compiler_pic=
13164      lt_prog_compiler_can_build_shared=no
13165 fi
13166
13167 fi
13168 case "$host_os" in
13169   # For platforms which do not support PIC, -DPIC is meaningless:
13170   *djgpp*)
13171     lt_prog_compiler_pic=
13172     ;;
13173   *)
13174     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
13175     ;;
13176 esac
13177
13178 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13179 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13180 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
13181   echo $ECHO_N "(cached) $ECHO_C" >&6
13182 else
13183   lt_cv_prog_compiler_c_o=no
13184    $rm -r conftest 2>/dev/null
13185    mkdir conftest
13186    cd conftest
13187    mkdir out
13188    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13189
13190    lt_compiler_flag="-o out/conftest2.$ac_objext"
13191    # Insert the option either (1) after the last *FLAGS variable, or
13192    # (2) before a word containing "conftest.", or (3) at the end.
13193    # Note that $ac_compile itself does not contain backslashes and begins
13194    # with a dollar sign (not a hyphen), so the echo should work correctly.
13195    lt_compile=`echo "$ac_compile" | $SED \
13196    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13197    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13198    -e 's:$: $lt_compiler_flag:'`
13199    (eval echo "\"\$as_me:13199: $lt_compile\"" >&5)
13200    (eval "$lt_compile" 2>out/conftest.err)
13201    ac_status=$?
13202    cat out/conftest.err >&5
13203    echo "$as_me:13203: \$? = $ac_status" >&5
13204    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13205    then
13206      # The compiler can only warn and ignore the option if not recognized
13207      # So say no if there are warnings
13208      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
13209      $SED '/^$/d' out/conftest.err >out/conftest.er2
13210      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13211        lt_cv_prog_compiler_c_o=yes
13212      fi
13213    fi
13214    chmod u+w .
13215    $rm conftest*
13216    # SGI C++ compiler will create directory out/ii_files/ for
13217    # template instantiation
13218    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13219    $rm out/* && rmdir out
13220    cd ..
13221    rmdir conftest
13222    $rm conftest*
13223
13224 fi
13225 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
13226 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
13227
13228
13229 hard_links="nottested"
13230 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
13231   # do not overwrite the value of need_locks provided by the user
13232   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13233 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13234   hard_links=yes
13235   $rm conftest*
13236   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13237   touch conftest.a
13238   ln conftest.a conftest.b 2>&5 || hard_links=no
13239   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13240   echo "$as_me:$LINENO: result: $hard_links" >&5
13241 echo "${ECHO_T}$hard_links" >&6
13242   if test "$hard_links" = no; then
13243     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13244 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13245     need_locks=warn
13246   fi
13247 else
13248   need_locks=no
13249 fi
13250
13251 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13252 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13253
13254   runpath_var=
13255   allow_undefined_flag=
13256   enable_shared_with_static_runtimes=no
13257   archive_cmds=
13258   archive_expsym_cmds=
13259   old_archive_From_new_cmds=
13260   old_archive_from_expsyms_cmds=
13261   export_dynamic_flag_spec=
13262   whole_archive_flag_spec=
13263   thread_safe_flag_spec=
13264   hardcode_libdir_flag_spec=
13265   hardcode_libdir_flag_spec_ld=
13266   hardcode_libdir_separator=
13267   hardcode_direct=no
13268   hardcode_minus_L=no
13269   hardcode_shlibpath_var=unsupported
13270   link_all_deplibs=unknown
13271   hardcode_automatic=no
13272   module_cmds=
13273   module_expsym_cmds=
13274   always_export_symbols=no
13275   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13276   # include_expsyms should be a list of space-separated symbols to be *always*
13277   # included in the symbol list
13278   include_expsyms=
13279   # exclude_expsyms can be an extended regexp of symbols to exclude
13280   # it will be wrapped by ` (' and `)$', so one must not match beginning or
13281   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13282   # as well as any symbol that contains `d'.
13283   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
13284   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13285   # platforms (ab)use it in PIC code, but their linkers get confused if
13286   # the symbol is explicitly referenced.  Since portable code cannot
13287   # rely on this symbol name, it's probably fine to never include it in
13288   # preloaded symbol tables.
13289   extract_expsyms_cmds=
13290   # Just being paranoid about ensuring that cc_basename is set.
13291   for cc_temp in $compiler""; do
13292   case $cc_temp in
13293     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13294     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13295     \-*) ;;
13296     *) break;;
13297   esac
13298 done
13299 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13300
13301   case $host_os in
13302   cygwin* | mingw* | pw32*)
13303     # FIXME: the MSVC++ port hasn't been tested in a loooong time
13304     # When not using gcc, we currently assume that we are using
13305     # Microsoft Visual C++.
13306     if test "$GCC" != yes; then
13307       with_gnu_ld=no
13308     fi
13309     ;;
13310   openbsd*)
13311     with_gnu_ld=no
13312     ;;
13313   esac
13314
13315   ld_shlibs=yes
13316   if test "$with_gnu_ld" = yes; then
13317     # If archive_cmds runs LD, not CC, wlarc should be empty
13318     wlarc='${wl}'
13319
13320     # Set some defaults for GNU ld with shared library support. These
13321     # are reset later if shared libraries are not supported. Putting them
13322     # here allows them to be overridden if necessary.
13323     runpath_var=LD_RUN_PATH
13324     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
13325     export_dynamic_flag_spec='${wl}--export-dynamic'
13326     # ancient GNU ld didn't support --whole-archive et. al.
13327     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13328         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13329       else
13330         whole_archive_flag_spec=
13331     fi
13332     supports_anon_versioning=no
13333     case `$LD -v 2>/dev/null` in
13334       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13335       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13336       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13337       *\ 2.11.*) ;; # other 2.11 versions
13338       *) supports_anon_versioning=yes ;;
13339     esac
13340
13341     # See if GNU ld supports shared libraries.
13342     case $host_os in
13343     aix3* | aix4* | aix5*)
13344       # On AIX/PPC, the GNU linker is very broken
13345       if test "$host_cpu" != ia64; then
13346         ld_shlibs=no
13347         cat <<EOF 1>&2
13348
13349 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13350 *** to be unable to reliably create shared libraries on AIX.
13351 *** Therefore, libtool is disabling shared libraries support.  If you
13352 *** really care for shared libraries, you may want to modify your PATH
13353 *** so that a non-GNU linker is found, and then restart.
13354
13355 EOF
13356       fi
13357       ;;
13358
13359     amigaos*)
13360       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)'
13361       hardcode_libdir_flag_spec='-L$libdir'
13362       hardcode_minus_L=yes
13363
13364       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13365       # that the semantics of dynamic libraries on AmigaOS, at least up
13366       # to version 4, is to share data among multiple programs linked
13367       # with the same dynamic library.  Since this doesn't match the
13368       # behavior of shared libraries on other platforms, we can't use
13369       # them.
13370       ld_shlibs=no
13371       ;;
13372
13373     beos*)
13374       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13375         allow_undefined_flag=unsupported
13376         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13377         # support --undefined.  This deserves some investigation.  FIXME
13378         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13379       else
13380         ld_shlibs=no
13381       fi
13382       ;;
13383
13384     cygwin* | mingw* | pw32*)
13385       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
13386       # as there is no search path for DLLs.
13387       hardcode_libdir_flag_spec='-L$libdir'
13388       allow_undefined_flag=unsupported
13389       always_export_symbols=no
13390       enable_shared_with_static_runtimes=yes
13391       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13392
13393       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13394         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13395         # If the export-symbols file already is a .def file (1st line
13396         # is EXPORTS), use it as is; otherwise, prepend...
13397         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13398           cp $export_symbols $output_objdir/$soname.def;
13399         else
13400           echo EXPORTS > $output_objdir/$soname.def;
13401           cat $export_symbols >> $output_objdir/$soname.def;
13402         fi~
13403         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
13404       else
13405         ld_shlibs=no
13406       fi
13407       ;;
13408
13409     linux*)
13410       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13411         tmp_addflag=
13412         case $cc_basename,$host_cpu in
13413         pgcc*)                          # Portland Group C compiler
13414           whole_archive_flag_spec=
13415           ;;
13416         pgf77* | pgf90* )                       # Portland Group f77 and f90 compilers
13417           whole_archive_flag_spec=
13418           tmp_addflag=' -fpic -Mnomain' ;;
13419         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
13420           tmp_addflag=' -i_dynamic' ;;
13421         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
13422           tmp_addflag=' -i_dynamic -nofor_main' ;;
13423         ifc* | ifort*)                  # Intel Fortran compiler
13424           tmp_addflag=' -nofor_main' ;;
13425         esac
13426         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13427
13428         if test $supports_anon_versioning = yes; then
13429           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
13430   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13431   $echo "local: *; };" >> $output_objdir/$libname.ver~
13432           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13433         fi
13434       else
13435         ld_shlibs=no
13436       fi
13437       ;;
13438
13439     netbsd*)
13440       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13441         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13442         wlarc=
13443       else
13444         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13445         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13446       fi
13447       ;;
13448
13449     solaris* | sysv5*)
13450       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13451         ld_shlibs=no
13452         cat <<EOF 1>&2
13453
13454 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13455 *** create shared libraries on Solaris systems.  Therefore, libtool
13456 *** is disabling shared libraries support.  We urge you to upgrade GNU
13457 *** binutils to release 2.9.1 or newer.  Another option is to modify
13458 *** your PATH or compiler configuration so that the native linker is
13459 *** used, and then restart.
13460
13461 EOF
13462       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13463         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13464         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13465       else
13466         ld_shlibs=no
13467       fi
13468       ;;
13469
13470     sunos4*)
13471       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13472       wlarc=
13473       hardcode_direct=yes
13474       hardcode_shlibpath_var=no
13475       ;;
13476
13477     *)
13478       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13479         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13480         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13481       else
13482         ld_shlibs=no
13483       fi
13484       ;;
13485     esac
13486
13487     if test "$ld_shlibs" = no; then
13488       runpath_var=
13489       hardcode_libdir_flag_spec=
13490       export_dynamic_flag_spec=
13491       whole_archive_flag_spec=
13492     fi
13493   else
13494     # PORTME fill in a description of your system's linker (not GNU ld)
13495     case $host_os in
13496     aix3*)
13497       allow_undefined_flag=unsupported
13498       always_export_symbols=yes
13499       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'
13500       # Note: this linker hardcodes the directories in LIBPATH if there
13501       # are no directories specified by -L.
13502       hardcode_minus_L=yes
13503       if test "$GCC" = yes && test -z "$link_static_flag"; then
13504         # Neither direct hardcoding nor static linking is supported with a
13505         # broken collect2.
13506         hardcode_direct=unsupported
13507       fi
13508       ;;
13509
13510     aix4* | aix5*)
13511       if test "$host_cpu" = ia64; then
13512         # On IA64, the linker does run time linking by default, so we don't
13513         # have to do anything special.
13514         aix_use_runtimelinking=no
13515         exp_sym_flag='-Bexport'
13516         no_entry_flag=""
13517       else
13518         # If we're using GNU nm, then we don't want the "-C" option.
13519         # -C means demangle to AIX nm, but means don't demangle with GNU nm
13520         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13521           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'
13522         else
13523           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'
13524         fi
13525         aix_use_runtimelinking=no
13526
13527         # Test if we are trying to use run time linking or normal
13528         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13529         # need to do runtime linking.
13530         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13531           for ld_flag in $LDFLAGS; do
13532           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13533             aix_use_runtimelinking=yes
13534             break
13535           fi
13536           done
13537         esac
13538
13539         exp_sym_flag='-bexport'
13540         no_entry_flag='-bnoentry'
13541       fi
13542
13543       # When large executables or shared objects are built, AIX ld can
13544       # have problems creating the table of contents.  If linking a library
13545       # or program results in "error TOC overflow" add -mminimal-toc to
13546       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13547       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13548
13549       archive_cmds=''
13550       hardcode_direct=yes
13551       hardcode_libdir_separator=':'
13552       link_all_deplibs=yes
13553
13554       if test "$GCC" = yes; then
13555         case $host_os in aix4.[012]|aix4.[012].*)
13556         # We only want to do this on AIX 4.2 and lower, the check
13557         # below for broken collect2 doesn't work under 4.3+
13558           collect2name=`${CC} -print-prog-name=collect2`
13559           if test -f "$collect2name" && \
13560            strings "$collect2name" | grep resolve_lib_name >/dev/null
13561           then
13562           # We have reworked collect2
13563           hardcode_direct=yes
13564           else
13565           # We have old collect2
13566           hardcode_direct=unsupported
13567           # It fails to find uninstalled libraries when the uninstalled
13568           # path is not listed in the libpath.  Setting hardcode_minus_L
13569           # to unsupported forces relinking
13570           hardcode_minus_L=yes
13571           hardcode_libdir_flag_spec='-L$libdir'
13572           hardcode_libdir_separator=
13573           fi
13574         esac
13575         shared_flag='-shared'
13576         if test "$aix_use_runtimelinking" = yes; then
13577           shared_flag="$shared_flag "'${wl}-G'
13578         fi
13579       else
13580         # not using gcc
13581         if test "$host_cpu" = ia64; then
13582         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13583         # chokes on -Wl,-G. The following line is correct:
13584           shared_flag='-G'
13585         else
13586         if test "$aix_use_runtimelinking" = yes; then
13587             shared_flag='${wl}-G'
13588           else
13589             shared_flag='${wl}-bM:SRE'
13590         fi
13591         fi
13592       fi
13593
13594       # It seems that -bexpall does not export symbols beginning with
13595       # underscore (_), so it is better to generate a list of symbols to export.
13596       always_export_symbols=yes
13597       if test "$aix_use_runtimelinking" = yes; then
13598         # Warning - without using the other runtime loading flags (-brtl),
13599         # -berok will link without error, but may produce a broken library.
13600         allow_undefined_flag='-berok'
13601        # Determine the default libpath from the value encoded in an empty executable.
13602        cat >conftest.$ac_ext <<_ACEOF
13603 /* confdefs.h.  */
13604 _ACEOF
13605 cat confdefs.h >>conftest.$ac_ext
13606 cat >>conftest.$ac_ext <<_ACEOF
13607 /* end confdefs.h.  */
13608
13609 int
13610 main ()
13611 {
13612
13613   ;
13614   return 0;
13615 }
13616 _ACEOF
13617 rm -f conftest.$ac_objext conftest$ac_exeext
13618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13619   (eval $ac_link) 2>conftest.er1
13620   ac_status=$?
13621   grep -v '^ *+' conftest.er1 >conftest.err
13622   rm -f conftest.er1
13623   cat conftest.err >&5
13624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13625   (exit $ac_status); } &&
13626          { ac_try='test -z "$ac_c_werror_flag"
13627                          || test ! -s conftest.err'
13628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13629   (eval $ac_try) 2>&5
13630   ac_status=$?
13631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13632   (exit $ac_status); }; } &&
13633          { ac_try='test -s conftest$ac_exeext'
13634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13635   (eval $ac_try) 2>&5
13636   ac_status=$?
13637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13638   (exit $ac_status); }; }; then
13639
13640 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13641 }'`
13642 # Check for a 64-bit object if we didn't find anything.
13643 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; }
13644 }'`; fi
13645 else
13646   echo "$as_me: failed program was:" >&5
13647 sed 's/^/| /' conftest.$ac_ext >&5
13648
13649 fi
13650 rm -f conftest.err conftest.$ac_objext \
13651       conftest$ac_exeext conftest.$ac_ext
13652 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13653
13654        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
13655         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"
13656        else
13657         if test "$host_cpu" = ia64; then
13658           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
13659           allow_undefined_flag="-z nodefs"
13660           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"
13661         else
13662          # Determine the default libpath from the value encoded in an empty executable.
13663          cat >conftest.$ac_ext <<_ACEOF
13664 /* confdefs.h.  */
13665 _ACEOF
13666 cat confdefs.h >>conftest.$ac_ext
13667 cat >>conftest.$ac_ext <<_ACEOF
13668 /* end confdefs.h.  */
13669
13670 int
13671 main ()
13672 {
13673
13674   ;
13675   return 0;
13676 }
13677 _ACEOF
13678 rm -f conftest.$ac_objext conftest$ac_exeext
13679 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13680   (eval $ac_link) 2>conftest.er1
13681   ac_status=$?
13682   grep -v '^ *+' conftest.er1 >conftest.err
13683   rm -f conftest.er1
13684   cat conftest.err >&5
13685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13686   (exit $ac_status); } &&
13687          { ac_try='test -z "$ac_c_werror_flag"
13688                          || test ! -s conftest.err'
13689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13690   (eval $ac_try) 2>&5
13691   ac_status=$?
13692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13693   (exit $ac_status); }; } &&
13694          { ac_try='test -s conftest$ac_exeext'
13695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13696   (eval $ac_try) 2>&5
13697   ac_status=$?
13698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13699   (exit $ac_status); }; }; then
13700
13701 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13702 }'`
13703 # Check for a 64-bit object if we didn't find anything.
13704 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; }
13705 }'`; fi
13706 else
13707   echo "$as_me: failed program was:" >&5
13708 sed 's/^/| /' conftest.$ac_ext >&5
13709
13710 fi
13711 rm -f conftest.err conftest.$ac_objext \
13712       conftest$ac_exeext conftest.$ac_ext
13713 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13714
13715          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
13716           # Warning - without using the other run time loading flags,
13717           # -berok will link without error, but may produce a broken library.
13718           no_undefined_flag=' ${wl}-bernotok'
13719           allow_undefined_flag=' ${wl}-berok'
13720           # -bexpall does not export symbols beginning with underscore (_)
13721           always_export_symbols=yes
13722           # Exported symbols can be pulled into shared objects from archives
13723           whole_archive_flag_spec=' '
13724           archive_cmds_need_lc=yes
13725           # This is similar to how AIX traditionally builds it's shared libraries.
13726           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'
13727         fi
13728       fi
13729       ;;
13730
13731     amigaos*)
13732       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)'
13733       hardcode_libdir_flag_spec='-L$libdir'
13734       hardcode_minus_L=yes
13735       # see comment about different semantics on the GNU ld section
13736       ld_shlibs=no
13737       ;;
13738
13739     bsdi[45]*)
13740       export_dynamic_flag_spec=-rdynamic
13741       ;;
13742
13743     cygwin* | mingw* | pw32*)
13744       # When not using gcc, we currently assume that we are using
13745       # Microsoft Visual C++.
13746       # hardcode_libdir_flag_spec is actually meaningless, as there is
13747       # no search path for DLLs.
13748       hardcode_libdir_flag_spec=' '
13749       allow_undefined_flag=unsupported
13750       # Tell ltmain to make .lib files, not .a files.
13751       libext=lib
13752       # Tell ltmain to make .dll files, not .so files.
13753       shrext_cmds=".dll"
13754       # FIXME: Setting linknames here is a bad hack.
13755       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13756       # The linker will automatically build a .lib file if we build a DLL.
13757       old_archive_From_new_cmds='true'
13758       # FIXME: Should let the user specify the lib program.
13759       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
13760       fix_srcfile_path='`cygpath -w "$srcfile"`'
13761       enable_shared_with_static_runtimes=yes
13762       ;;
13763
13764     darwin* | rhapsody*)
13765       case "$host_os" in
13766         rhapsody* | darwin1.[012])
13767          allow_undefined_flag='${wl}-undefined ${wl}suppress'
13768          ;;
13769        *) # Darwin 1.3 on
13770          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13771            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13772          else
13773            case ${MACOSX_DEPLOYMENT_TARGET} in
13774              10.[012])
13775                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13776                ;;
13777              10.*)
13778                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
13779                ;;
13780            esac
13781          fi
13782          ;;
13783       esac
13784       archive_cmds_need_lc=no
13785       hardcode_direct=no
13786       hardcode_automatic=yes
13787       hardcode_shlibpath_var=unsupported
13788       whole_archive_flag_spec=''
13789       link_all_deplibs=yes
13790     if test "$GCC" = yes ; then
13791         output_verbose_link_cmd='echo'
13792         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13793       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13794       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13795       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}'
13796       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}'
13797     else
13798       case $cc_basename in
13799         xlc*)
13800          output_verbose_link_cmd='echo'
13801          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
13802          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13803           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13804          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}'
13805           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}'
13806           ;;
13807        *)
13808          ld_shlibs=no
13809           ;;
13810       esac
13811     fi
13812       ;;
13813
13814     dgux*)
13815       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13816       hardcode_libdir_flag_spec='-L$libdir'
13817       hardcode_shlibpath_var=no
13818       ;;
13819
13820     freebsd1*)
13821       ld_shlibs=no
13822       ;;
13823
13824     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13825     # support.  Future versions do this automatically, but an explicit c++rt0.o
13826     # does not break anything, and helps significantly (at the cost of a little
13827     # extra space).
13828     freebsd2.2*)
13829       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13830       hardcode_libdir_flag_spec='-R$libdir'
13831       hardcode_direct=yes
13832       hardcode_shlibpath_var=no
13833       ;;
13834
13835     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13836     freebsd2*)
13837       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13838       hardcode_direct=yes
13839       hardcode_minus_L=yes
13840       hardcode_shlibpath_var=no
13841       ;;
13842
13843     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13844     freebsd* | kfreebsd*-gnu | dragonfly*)
13845       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13846       hardcode_libdir_flag_spec='-R$libdir'
13847       hardcode_direct=yes
13848       hardcode_shlibpath_var=no
13849       ;;
13850
13851     hpux9*)
13852       if test "$GCC" = yes; then
13853         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'
13854       else
13855         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'
13856       fi
13857       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13858       hardcode_libdir_separator=:
13859       hardcode_direct=yes
13860
13861       # hardcode_minus_L: Not really in the search PATH,
13862       # but as the default location of the library.
13863       hardcode_minus_L=yes
13864       export_dynamic_flag_spec='${wl}-E'
13865       ;;
13866
13867     hpux10* | hpux11*)
13868       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13869         case "$host_cpu" in
13870         hppa*64*|ia64*)
13871           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13872           ;;
13873         *)
13874           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13875           ;;
13876         esac
13877       else
13878         case "$host_cpu" in
13879         hppa*64*|ia64*)
13880           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13881           ;;
13882         *)
13883           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13884           ;;
13885         esac
13886       fi
13887       if test "$with_gnu_ld" = no; then
13888         case "$host_cpu" in
13889         hppa*64*)
13890           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13891           hardcode_libdir_flag_spec_ld='+b $libdir'
13892           hardcode_libdir_separator=:
13893           hardcode_direct=no
13894           hardcode_shlibpath_var=no
13895           ;;
13896         ia64*)
13897           hardcode_libdir_flag_spec='-L$libdir'
13898           hardcode_direct=no
13899           hardcode_shlibpath_var=no
13900
13901           # hardcode_minus_L: Not really in the search PATH,
13902           # but as the default location of the library.
13903           hardcode_minus_L=yes
13904           ;;
13905         *)
13906           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13907           hardcode_libdir_separator=:
13908           hardcode_direct=yes
13909           export_dynamic_flag_spec='${wl}-E'
13910
13911           # hardcode_minus_L: Not really in the search PATH,
13912           # but as the default location of the library.
13913           hardcode_minus_L=yes
13914           ;;
13915         esac
13916       fi
13917       ;;
13918
13919     irix5* | irix6* | nonstopux*)
13920       if test "$GCC" = yes; then
13921         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'
13922       else
13923         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'
13924         hardcode_libdir_flag_spec_ld='-rpath $libdir'
13925       fi
13926       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13927       hardcode_libdir_separator=:
13928       link_all_deplibs=yes
13929       ;;
13930
13931     netbsd*)
13932       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13933         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13934       else
13935         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13936       fi
13937       hardcode_libdir_flag_spec='-R$libdir'
13938       hardcode_direct=yes
13939       hardcode_shlibpath_var=no
13940       ;;
13941
13942     newsos6)
13943       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13944       hardcode_direct=yes
13945       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13946       hardcode_libdir_separator=:
13947       hardcode_shlibpath_var=no
13948       ;;
13949
13950     openbsd*)
13951       hardcode_direct=yes
13952       hardcode_shlibpath_var=no
13953       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13954         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13955         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13956         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13957         export_dynamic_flag_spec='${wl}-E'
13958       else
13959        case $host_os in
13960          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13961            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13962            hardcode_libdir_flag_spec='-R$libdir'
13963            ;;
13964          *)
13965            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13966            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13967            ;;
13968        esac
13969       fi
13970       ;;
13971
13972     os2*)
13973       hardcode_libdir_flag_spec='-L$libdir'
13974       hardcode_minus_L=yes
13975       allow_undefined_flag=unsupported
13976       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'
13977       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13978       ;;
13979
13980     osf3*)
13981       if test "$GCC" = yes; then
13982         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13983         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'
13984       else
13985         allow_undefined_flag=' -expect_unresolved \*'
13986         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'
13987       fi
13988       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13989       hardcode_libdir_separator=:
13990       ;;
13991
13992     osf4* | osf5*)      # as osf3* with the addition of -msym flag
13993       if test "$GCC" = yes; then
13994         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13995         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'
13996         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13997       else
13998         allow_undefined_flag=' -expect_unresolved \*'
13999         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'
14000         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
14001         $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'
14002
14003         # Both c and cxx compiler support -rpath directly
14004         hardcode_libdir_flag_spec='-rpath $libdir'
14005       fi
14006       hardcode_libdir_separator=:
14007       ;;
14008
14009     sco3.2v5*)
14010       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14011       hardcode_shlibpath_var=no
14012       export_dynamic_flag_spec='${wl}-Bexport'
14013       runpath_var=LD_RUN_PATH
14014       hardcode_runpath_var=yes
14015       ;;
14016
14017     solaris*)
14018       no_undefined_flag=' -z text'
14019       if test "$GCC" = yes; then
14020         wlarc='${wl}'
14021         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14022         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14023           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14024       else
14025         wlarc=''
14026         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14027         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14028         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14029       fi
14030       hardcode_libdir_flag_spec='-R$libdir'
14031       hardcode_shlibpath_var=no
14032       case $host_os in
14033       solaris2.[0-5] | solaris2.[0-5].*) ;;
14034       *)
14035         # The compiler driver will combine linker options so we
14036         # cannot just pass the convience library names through
14037         # without $wl, iff we do not link with $LD.
14038         # Luckily, gcc supports the same syntax we need for Sun Studio.
14039         # Supported since Solaris 2.6 (maybe 2.5.1?)
14040         case $wlarc in
14041         '')
14042           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
14043         *)
14044           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' ;;
14045         esac ;;
14046       esac
14047       link_all_deplibs=yes
14048       ;;
14049
14050     sunos4*)
14051       if test "x$host_vendor" = xsequent; then
14052         # Use $CC to link under sequent, because it throws in some extra .o
14053         # files that make .init and .fini sections work.
14054         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14055       else
14056         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14057       fi
14058       hardcode_libdir_flag_spec='-L$libdir'
14059       hardcode_direct=yes
14060       hardcode_minus_L=yes
14061       hardcode_shlibpath_var=no
14062       ;;
14063
14064     sysv4)
14065       case $host_vendor in
14066         sni)
14067           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14068           hardcode_direct=yes # is this really true???
14069         ;;
14070         siemens)
14071           ## LD is ld it makes a PLAMLIB
14072           ## CC just makes a GrossModule.
14073           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14074           reload_cmds='$CC -r -o $output$reload_objs'
14075           hardcode_direct=no
14076         ;;
14077         motorola)
14078           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14079           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
14080         ;;
14081       esac
14082       runpath_var='LD_RUN_PATH'
14083       hardcode_shlibpath_var=no
14084       ;;
14085
14086     sysv4.3*)
14087       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14088       hardcode_shlibpath_var=no
14089       export_dynamic_flag_spec='-Bexport'
14090       ;;
14091
14092     sysv4*MP*)
14093       if test -d /usr/nec; then
14094         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14095         hardcode_shlibpath_var=no
14096         runpath_var=LD_RUN_PATH
14097         hardcode_runpath_var=yes
14098         ld_shlibs=yes
14099       fi
14100       ;;
14101
14102     sysv4.2uw2*)
14103       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14104       hardcode_direct=yes
14105       hardcode_minus_L=no
14106       hardcode_shlibpath_var=no
14107       hardcode_runpath_var=yes
14108       runpath_var=LD_RUN_PATH
14109       ;;
14110
14111    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
14112       no_undefined_flag='${wl}-z ${wl}text'
14113       if test "$GCC" = yes; then
14114         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14115       else
14116         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14117       fi
14118       runpath_var='LD_RUN_PATH'
14119       hardcode_shlibpath_var=no
14120       ;;
14121
14122     sysv5*)
14123       no_undefined_flag=' -z text'
14124       # $CC -shared without GNU ld will not create a library from C++
14125       # object files and a static libstdc++, better avoid it by now
14126       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14127       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14128                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14129       hardcode_libdir_flag_spec=
14130       hardcode_shlibpath_var=no
14131       runpath_var='LD_RUN_PATH'
14132       ;;
14133
14134     uts4*)
14135       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14136       hardcode_libdir_flag_spec='-L$libdir'
14137       hardcode_shlibpath_var=no
14138       ;;
14139
14140     *)
14141       ld_shlibs=no
14142       ;;
14143     esac
14144   fi
14145
14146 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
14147 echo "${ECHO_T}$ld_shlibs" >&6
14148 test "$ld_shlibs" = no && can_build_shared=no
14149
14150 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14151 if test "$GCC" = yes; then
14152   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14153 fi
14154
14155 #
14156 # Do we need to explicitly link libc?
14157 #
14158 case "x$archive_cmds_need_lc" in
14159 x|xyes)
14160   # Assume -lc should be added
14161   archive_cmds_need_lc=yes
14162
14163   if test "$enable_shared" = yes && test "$GCC" = yes; then
14164     case $archive_cmds in
14165     *'~'*)
14166       # FIXME: we may have to deal with multi-command sequences.
14167       ;;
14168     '$CC '*)
14169       # Test whether the compiler implicitly links with -lc since on some
14170       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14171       # to ld, don't add -lc before -lgcc.
14172       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14173 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14174       $rm conftest*
14175       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14176
14177       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14178   (eval $ac_compile) 2>&5
14179   ac_status=$?
14180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14181   (exit $ac_status); } 2>conftest.err; then
14182         soname=conftest
14183         lib=conftest
14184         libobjs=conftest.$ac_objext
14185         deplibs=
14186         wl=$lt_prog_compiler_wl
14187         compiler_flags=-v
14188         linker_flags=-v
14189         verstring=
14190         output_objdir=.
14191         libname=conftest
14192         lt_save_allow_undefined_flag=$allow_undefined_flag
14193         allow_undefined_flag=
14194         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14195   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14196   ac_status=$?
14197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14198   (exit $ac_status); }
14199         then
14200           archive_cmds_need_lc=no
14201         else
14202           archive_cmds_need_lc=yes
14203         fi
14204         allow_undefined_flag=$lt_save_allow_undefined_flag
14205       else
14206         cat conftest.err 1>&5
14207       fi
14208       $rm conftest*
14209       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
14210 echo "${ECHO_T}$archive_cmds_need_lc" >&6
14211       ;;
14212     esac
14213   fi
14214   ;;
14215 esac
14216
14217 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14218 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14219 library_names_spec=
14220 libname_spec='lib$name'
14221 soname_spec=
14222 shrext_cmds=".so"
14223 postinstall_cmds=
14224 postuninstall_cmds=
14225 finish_cmds=
14226 finish_eval=
14227 shlibpath_var=
14228 shlibpath_overrides_runpath=unknown
14229 version_type=none
14230 dynamic_linker="$host_os ld.so"
14231 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14232 if test "$GCC" = yes; then
14233   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14234   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14235     # if the path contains ";" then we assume it to be the separator
14236     # otherwise default to the standard path separator (i.e. ":") - it is
14237     # assumed that no part of a normal pathname contains ";" but that should
14238     # okay in the real world where ";" in dirpaths is itself problematic.
14239     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14240   else
14241     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14242   fi
14243 else
14244   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14245 fi
14246 need_lib_prefix=unknown
14247 hardcode_into_libs=no
14248
14249 # when you set need_version to no, make sure it does not cause -set_version
14250 # flags to be left without arguments
14251 need_version=unknown
14252
14253 case $host_os in
14254 aix3*)
14255   version_type=linux
14256   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14257   shlibpath_var=LIBPATH
14258
14259   # AIX 3 has no versioning support, so we append a major version to the name.
14260   soname_spec='${libname}${release}${shared_ext}$major'
14261   ;;
14262
14263 aix4* | aix5*)
14264   version_type=linux
14265   need_lib_prefix=no
14266   need_version=no
14267   hardcode_into_libs=yes
14268   if test "$host_cpu" = ia64; then
14269     # AIX 5 supports IA64
14270     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14271     shlibpath_var=LD_LIBRARY_PATH
14272   else
14273     # With GCC up to 2.95.x, collect2 would create an import file
14274     # for dependence libraries.  The import file would start with
14275     # the line `#! .'.  This would cause the generated library to
14276     # depend on `.', always an invalid library.  This was fixed in
14277     # development snapshots of GCC prior to 3.0.
14278     case $host_os in
14279       aix4 | aix4.[01] | aix4.[01].*)
14280       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14281            echo ' yes '
14282            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14283         :
14284       else
14285         can_build_shared=no
14286       fi
14287       ;;
14288     esac
14289     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14290     # soname into executable. Probably we can add versioning support to
14291     # collect2, so additional links can be useful in future.
14292     if test "$aix_use_runtimelinking" = yes; then
14293       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14294       # instead of lib<name>.a to let people know that these are not
14295       # typical AIX shared libraries.
14296       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14297     else
14298       # We preserve .a as extension for shared libraries through AIX4.2
14299       # and later when we are not doing run time linking.
14300       library_names_spec='${libname}${release}.a $libname.a'
14301       soname_spec='${libname}${release}${shared_ext}$major'
14302     fi
14303     shlibpath_var=LIBPATH
14304   fi
14305   ;;
14306
14307 amigaos*)
14308   library_names_spec='$libname.ixlibrary $libname.a'
14309   # Create ${libname}_ixlibrary.a entries in /sys/libs.
14310   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'
14311   ;;
14312
14313 beos*)
14314   library_names_spec='${libname}${shared_ext}'
14315   dynamic_linker="$host_os ld.so"
14316   shlibpath_var=LIBRARY_PATH
14317   ;;
14318
14319 bsdi[45]*)
14320   version_type=linux
14321   need_version=no
14322   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14323   soname_spec='${libname}${release}${shared_ext}$major'
14324   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14325   shlibpath_var=LD_LIBRARY_PATH
14326   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14327   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14328   # the default ld.so.conf also contains /usr/contrib/lib and
14329   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14330   # libtool to hard-code these into programs
14331   ;;
14332
14333 cygwin* | mingw* | pw32*)
14334   version_type=windows
14335   shrext_cmds=".dll"
14336   need_version=no
14337   need_lib_prefix=no
14338
14339   case $GCC,$host_os in
14340   yes,cygwin* | yes,mingw* | yes,pw32*)
14341     library_names_spec='$libname.dll.a'
14342     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14343     postinstall_cmds='base_file=`basename \${file}`~
14344       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14345       dldir=$destdir/`dirname \$dlpath`~
14346       test -d \$dldir || mkdir -p \$dldir~
14347       $install_prog $dir/$dlname \$dldir/$dlname'
14348     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14349       dlpath=$dir/\$dldll~
14350        $rm \$dlpath'
14351     shlibpath_overrides_runpath=yes
14352
14353     case $host_os in
14354     cygwin*)
14355       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14356       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14357       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14358       ;;
14359     mingw*)
14360       # MinGW DLLs use traditional 'lib' prefix
14361       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14362       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14363       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14364         # It is most probably a Windows format PATH printed by
14365         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14366         # path with ; separators, and with drive letters. We can handle the
14367         # drive letters (cygwin fileutils understands them), so leave them,
14368         # especially as we might pass files found there to a mingw objdump,
14369         # which wouldn't understand a cygwinified path. Ahh.
14370         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14371       else
14372         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14373       fi
14374       ;;
14375     pw32*)
14376       # pw32 DLLs use 'pw' prefix rather than 'lib'
14377       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14378       ;;
14379     esac
14380     ;;
14381
14382   *)
14383     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14384     ;;
14385   esac
14386   dynamic_linker='Win32 ld.exe'
14387   # FIXME: first we should search . and the directory the executable is in
14388   shlibpath_var=PATH
14389   ;;
14390
14391 darwin* | rhapsody*)
14392   dynamic_linker="$host_os dyld"
14393   version_type=darwin
14394   need_lib_prefix=no
14395   need_version=no
14396   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14397   soname_spec='${libname}${release}${major}$shared_ext'
14398   shlibpath_overrides_runpath=yes
14399   shlibpath_var=DYLD_LIBRARY_PATH
14400   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
14401   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14402   if test "$GCC" = yes; then
14403     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"`
14404   else
14405     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14406   fi
14407   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14408   ;;
14409
14410 dgux*)
14411   version_type=linux
14412   need_lib_prefix=no
14413   need_version=no
14414   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14415   soname_spec='${libname}${release}${shared_ext}$major'
14416   shlibpath_var=LD_LIBRARY_PATH
14417   ;;
14418
14419 freebsd1*)
14420   dynamic_linker=no
14421   ;;
14422
14423 kfreebsd*-gnu)
14424   version_type=linux
14425   need_lib_prefix=no
14426   need_version=no
14427   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14428   soname_spec='${libname}${release}${shared_ext}$major'
14429   shlibpath_var=LD_LIBRARY_PATH
14430   shlibpath_overrides_runpath=no
14431   hardcode_into_libs=yes
14432   dynamic_linker='GNU ld.so'
14433   ;;
14434
14435 freebsd* | dragonfly*)
14436   # DragonFly does not have aout.  When/if they implement a new
14437   # versioning mechanism, adjust this.
14438   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14439   version_type=freebsd-$objformat
14440   case $version_type in
14441     freebsd-elf*)
14442       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14443       need_version=no
14444       need_lib_prefix=no
14445       ;;
14446     freebsd-*)
14447       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14448       need_version=yes
14449       ;;
14450   esac
14451   shlibpath_var=LD_LIBRARY_PATH
14452   case $host_os in
14453   freebsd2*)
14454     shlibpath_overrides_runpath=yes
14455     ;;
14456   freebsd3.[01]* | freebsdelf3.[01]*)
14457     shlibpath_overrides_runpath=yes
14458     hardcode_into_libs=yes
14459     ;;
14460   *) # from 3.2 on
14461     shlibpath_overrides_runpath=no
14462     hardcode_into_libs=yes
14463     ;;
14464   esac
14465   ;;
14466
14467 gnu*)
14468   version_type=linux
14469   need_lib_prefix=no
14470   need_version=no
14471   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14472   soname_spec='${libname}${release}${shared_ext}$major'
14473   shlibpath_var=LD_LIBRARY_PATH
14474   hardcode_into_libs=yes
14475   ;;
14476
14477 hpux9* | hpux10* | hpux11*)
14478   # Give a soname corresponding to the major version so that dld.sl refuses to
14479   # link against other versions.
14480   version_type=sunos
14481   need_lib_prefix=no
14482   need_version=no
14483   case "$host_cpu" in
14484   ia64*)
14485     shrext_cmds='.so'
14486     hardcode_into_libs=yes
14487     dynamic_linker="$host_os dld.so"
14488     shlibpath_var=LD_LIBRARY_PATH
14489     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14490     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14491     soname_spec='${libname}${release}${shared_ext}$major'
14492     if test "X$HPUX_IA64_MODE" = X32; then
14493       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14494     else
14495       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14496     fi
14497     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14498     ;;
14499    hppa*64*)
14500      shrext_cmds='.sl'
14501      hardcode_into_libs=yes
14502      dynamic_linker="$host_os dld.sl"
14503      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14504      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14505      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14506      soname_spec='${libname}${release}${shared_ext}$major'
14507      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14508      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14509      ;;
14510    *)
14511     shrext_cmds='.sl'
14512     dynamic_linker="$host_os dld.sl"
14513     shlibpath_var=SHLIB_PATH
14514     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14515     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14516     soname_spec='${libname}${release}${shared_ext}$major'
14517     ;;
14518   esac
14519   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14520   postinstall_cmds='chmod 555 $lib'
14521   ;;
14522
14523 irix5* | irix6* | nonstopux*)
14524   case $host_os in
14525     nonstopux*) version_type=nonstopux ;;
14526     *)
14527         if test "$lt_cv_prog_gnu_ld" = yes; then
14528                 version_type=linux
14529         else
14530                 version_type=irix
14531         fi ;;
14532   esac
14533   need_lib_prefix=no
14534   need_version=no
14535   soname_spec='${libname}${release}${shared_ext}$major'
14536   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14537   case $host_os in
14538   irix5* | nonstopux*)
14539     libsuff= shlibsuff=
14540     ;;
14541   *)
14542     case $LD in # libtool.m4 will add one of these switches to LD
14543     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14544       libsuff= shlibsuff= libmagic=32-bit;;
14545     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14546       libsuff=32 shlibsuff=N32 libmagic=N32;;
14547     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14548       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14549     *) libsuff= shlibsuff= libmagic=never-match;;
14550     esac
14551     ;;
14552   esac
14553   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14554   shlibpath_overrides_runpath=no
14555   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14556   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14557   hardcode_into_libs=yes
14558   ;;
14559
14560 # No shared lib support for Linux oldld, aout, or coff.
14561 linux*oldld* | linux*aout* | linux*coff*)
14562   dynamic_linker=no
14563   ;;
14564
14565 # This must be Linux ELF.
14566 linux*)
14567   version_type=linux
14568   need_lib_prefix=no
14569   need_version=no
14570   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14571   soname_spec='${libname}${release}${shared_ext}$major'
14572   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14573   shlibpath_var=LD_LIBRARY_PATH
14574   shlibpath_overrides_runpath=no
14575   # This implies no fast_install, which is unacceptable.
14576   # Some rework will be needed to allow for fast_install
14577   # before this can be enabled.
14578   hardcode_into_libs=yes
14579
14580   # find out which ABI we are using
14581   libsuff=
14582   case "$host_cpu" in
14583   x86_64*|s390x*|powerpc64*)
14584     echo '#line 14584 "configure"' > conftest.$ac_ext
14585     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14586   (eval $ac_compile) 2>&5
14587   ac_status=$?
14588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14589   (exit $ac_status); }; then
14590       case `/usr/bin/file conftest.$ac_objext` in
14591       *64-bit*)
14592         libsuff=64
14593         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
14594         ;;
14595       esac
14596     fi
14597     rm -rf conftest*
14598     ;;
14599   esac
14600
14601   # Append ld.so.conf contents to the search path
14602   if test -f /etc/ld.so.conf; then
14603     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/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
14604     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
14605   fi
14606
14607   # We used to test for /lib/ld.so.1 and disable shared libraries on
14608   # powerpc, because MkLinux only supported shared libraries with the
14609   # GNU dynamic linker.  Since this was broken with cross compilers,
14610   # most powerpc-linux boxes support dynamic linking these days and
14611   # people can always --disable-shared, the test was removed, and we
14612   # assume the GNU/Linux dynamic linker is in use.
14613   dynamic_linker='GNU/Linux ld.so'
14614   ;;
14615
14616 knetbsd*-gnu)
14617   version_type=linux
14618   need_lib_prefix=no
14619   need_version=no
14620   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14621   soname_spec='${libname}${release}${shared_ext}$major'
14622   shlibpath_var=LD_LIBRARY_PATH
14623   shlibpath_overrides_runpath=no
14624   hardcode_into_libs=yes
14625   dynamic_linker='GNU ld.so'
14626   ;;
14627
14628 netbsd*)
14629   version_type=sunos
14630   need_lib_prefix=no
14631   need_version=no
14632   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14633     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14634     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14635     dynamic_linker='NetBSD (a.out) ld.so'
14636   else
14637     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14638     soname_spec='${libname}${release}${shared_ext}$major'
14639     dynamic_linker='NetBSD ld.elf_so'
14640   fi
14641   shlibpath_var=LD_LIBRARY_PATH
14642   shlibpath_overrides_runpath=yes
14643   hardcode_into_libs=yes
14644   ;;
14645
14646 newsos6)
14647   version_type=linux
14648   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14649   shlibpath_var=LD_LIBRARY_PATH
14650   shlibpath_overrides_runpath=yes
14651   ;;
14652
14653 nto-qnx*)
14654   version_type=linux
14655   need_lib_prefix=no
14656   need_version=no
14657   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14658   soname_spec='${libname}${release}${shared_ext}$major'
14659   shlibpath_var=LD_LIBRARY_PATH
14660   shlibpath_overrides_runpath=yes
14661   ;;
14662
14663 openbsd*)
14664   version_type=sunos
14665   need_lib_prefix=no
14666   need_version=no
14667   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14668   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14669   shlibpath_var=LD_LIBRARY_PATH
14670   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14671     case $host_os in
14672       openbsd2.[89] | openbsd2.[89].*)
14673         shlibpath_overrides_runpath=no
14674         ;;
14675       *)
14676         shlibpath_overrides_runpath=yes
14677         ;;
14678       esac
14679   else
14680     shlibpath_overrides_runpath=yes
14681   fi
14682   ;;
14683
14684 os2*)
14685   libname_spec='$name'
14686   shrext_cmds=".dll"
14687   need_lib_prefix=no
14688   library_names_spec='$libname${shared_ext} $libname.a'
14689   dynamic_linker='OS/2 ld.exe'
14690   shlibpath_var=LIBPATH
14691   ;;
14692
14693 osf3* | osf4* | osf5*)
14694   version_type=osf
14695   need_lib_prefix=no
14696   need_version=no
14697   soname_spec='${libname}${release}${shared_ext}$major'
14698   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14699   shlibpath_var=LD_LIBRARY_PATH
14700   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14701   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14702   ;;
14703
14704 sco3.2v5*)
14705   version_type=osf
14706   soname_spec='${libname}${release}${shared_ext}$major'
14707   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14708   shlibpath_var=LD_LIBRARY_PATH
14709   ;;
14710
14711 solaris*)
14712   version_type=linux
14713   need_lib_prefix=no
14714   need_version=no
14715   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14716   soname_spec='${libname}${release}${shared_ext}$major'
14717   shlibpath_var=LD_LIBRARY_PATH
14718   shlibpath_overrides_runpath=yes
14719   hardcode_into_libs=yes
14720   # ldd complains unless libraries are executable
14721   postinstall_cmds='chmod +x $lib'
14722   ;;
14723
14724 sunos4*)
14725   version_type=sunos
14726   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14727   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14728   shlibpath_var=LD_LIBRARY_PATH
14729   shlibpath_overrides_runpath=yes
14730   if test "$with_gnu_ld" = yes; then
14731     need_lib_prefix=no
14732   fi
14733   need_version=yes
14734   ;;
14735
14736 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14737   version_type=linux
14738   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14739   soname_spec='${libname}${release}${shared_ext}$major'
14740   shlibpath_var=LD_LIBRARY_PATH
14741   case $host_vendor in
14742     sni)
14743       shlibpath_overrides_runpath=no
14744       need_lib_prefix=no
14745       export_dynamic_flag_spec='${wl}-Blargedynsym'
14746       runpath_var=LD_RUN_PATH
14747       ;;
14748     siemens)
14749       need_lib_prefix=no
14750       ;;
14751     motorola)
14752       need_lib_prefix=no
14753       need_version=no
14754       shlibpath_overrides_runpath=no
14755       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14756       ;;
14757   esac
14758   ;;
14759
14760 sysv4*MP*)
14761   if test -d /usr/nec ;then
14762     version_type=linux
14763     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14764     soname_spec='$libname${shared_ext}.$major'
14765     shlibpath_var=LD_LIBRARY_PATH
14766   fi
14767   ;;
14768
14769 uts4*)
14770   version_type=linux
14771   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14772   soname_spec='${libname}${release}${shared_ext}$major'
14773   shlibpath_var=LD_LIBRARY_PATH
14774   ;;
14775
14776 *)
14777   dynamic_linker=no
14778   ;;
14779 esac
14780 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14781 echo "${ECHO_T}$dynamic_linker" >&6
14782 test "$dynamic_linker" = no && can_build_shared=no
14783
14784 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14785 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14786 hardcode_action=
14787 if test -n "$hardcode_libdir_flag_spec" || \
14788    test -n "$runpath_var" || \
14789    test "X$hardcode_automatic" = "Xyes" ; then
14790
14791   # We can hardcode non-existant directories.
14792   if test "$hardcode_direct" != no &&
14793      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14794      # have to relink, otherwise we might link with an installed library
14795      # when we should be linking with a yet-to-be-installed one
14796      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
14797      test "$hardcode_minus_L" != no; then
14798     # Linking always hardcodes the temporary library directory.
14799     hardcode_action=relink
14800   else
14801     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14802     hardcode_action=immediate
14803   fi
14804 else
14805   # We cannot hardcode anything, or else we can only hardcode existing
14806   # directories.
14807   hardcode_action=unsupported
14808 fi
14809 echo "$as_me:$LINENO: result: $hardcode_action" >&5
14810 echo "${ECHO_T}$hardcode_action" >&6
14811
14812 if test "$hardcode_action" = relink; then
14813   # Fast installation is not supported
14814   enable_fast_install=no
14815 elif test "$shlibpath_overrides_runpath" = yes ||
14816      test "$enable_shared" = no; then
14817   # Fast installation is not necessary
14818   enable_fast_install=needless
14819 fi
14820
14821 striplib=
14822 old_striplib=
14823 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14824 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14825 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14826   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14827   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14828   echo "$as_me:$LINENO: result: yes" >&5
14829 echo "${ECHO_T}yes" >&6
14830 else
14831 # FIXME - insert some real tests, host_os isn't really good enough
14832   case $host_os in
14833    darwin*)
14834        if test -n "$STRIP" ; then
14835          striplib="$STRIP -x"
14836          echo "$as_me:$LINENO: result: yes" >&5
14837 echo "${ECHO_T}yes" >&6
14838        else
14839   echo "$as_me:$LINENO: result: no" >&5
14840 echo "${ECHO_T}no" >&6
14841 fi
14842        ;;
14843    *)
14844   echo "$as_me:$LINENO: result: no" >&5
14845 echo "${ECHO_T}no" >&6
14846     ;;
14847   esac
14848 fi
14849
14850 if test "x$enable_dlopen" != xyes; then
14851   enable_dlopen=unknown
14852   enable_dlopen_self=unknown
14853   enable_dlopen_self_static=unknown
14854 else
14855   lt_cv_dlopen=no
14856   lt_cv_dlopen_libs=
14857
14858   case $host_os in
14859   beos*)
14860     lt_cv_dlopen="load_add_on"
14861     lt_cv_dlopen_libs=
14862     lt_cv_dlopen_self=yes
14863     ;;
14864
14865   mingw* | pw32*)
14866     lt_cv_dlopen="LoadLibrary"
14867     lt_cv_dlopen_libs=
14868    ;;
14869
14870   cygwin*)
14871     lt_cv_dlopen="dlopen"
14872     lt_cv_dlopen_libs=
14873    ;;
14874
14875   darwin*)
14876   # if libdl is installed we need to link against it
14877     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14878 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14879 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14880   echo $ECHO_N "(cached) $ECHO_C" >&6
14881 else
14882   ac_check_lib_save_LIBS=$LIBS
14883 LIBS="-ldl  $LIBS"
14884 cat >conftest.$ac_ext <<_ACEOF
14885 /* confdefs.h.  */
14886 _ACEOF
14887 cat confdefs.h >>conftest.$ac_ext
14888 cat >>conftest.$ac_ext <<_ACEOF
14889 /* end confdefs.h.  */
14890
14891 /* Override any gcc2 internal prototype to avoid an error.  */
14892 #ifdef __cplusplus
14893 extern "C"
14894 #endif
14895 /* We use char because int might match the return type of a gcc2
14896    builtin and then its argument prototype would still apply.  */
14897 char dlopen ();
14898 int
14899 main ()
14900 {
14901 dlopen ();
14902   ;
14903   return 0;
14904 }
14905 _ACEOF
14906 rm -f conftest.$ac_objext conftest$ac_exeext
14907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14908   (eval $ac_link) 2>conftest.er1
14909   ac_status=$?
14910   grep -v '^ *+' conftest.er1 >conftest.err
14911   rm -f conftest.er1
14912   cat conftest.err >&5
14913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14914   (exit $ac_status); } &&
14915          { ac_try='test -z "$ac_c_werror_flag"
14916                          || test ! -s conftest.err'
14917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14918   (eval $ac_try) 2>&5
14919   ac_status=$?
14920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14921   (exit $ac_status); }; } &&
14922          { ac_try='test -s conftest$ac_exeext'
14923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14924   (eval $ac_try) 2>&5
14925   ac_status=$?
14926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14927   (exit $ac_status); }; }; then
14928   ac_cv_lib_dl_dlopen=yes
14929 else
14930   echo "$as_me: failed program was:" >&5
14931 sed 's/^/| /' conftest.$ac_ext >&5
14932
14933 ac_cv_lib_dl_dlopen=no
14934 fi
14935 rm -f conftest.err conftest.$ac_objext \
14936       conftest$ac_exeext conftest.$ac_ext
14937 LIBS=$ac_check_lib_save_LIBS
14938 fi
14939 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14940 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14941 if test $ac_cv_lib_dl_dlopen = yes; then
14942   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14943 else
14944
14945     lt_cv_dlopen="dyld"
14946     lt_cv_dlopen_libs=
14947     lt_cv_dlopen_self=yes
14948
14949 fi
14950
14951    ;;
14952
14953   *)
14954     echo "$as_me:$LINENO: checking for shl_load" >&5
14955 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
14956 if test "${ac_cv_func_shl_load+set}" = set; then
14957   echo $ECHO_N "(cached) $ECHO_C" >&6
14958 else
14959   cat >conftest.$ac_ext <<_ACEOF
14960 /* confdefs.h.  */
14961 _ACEOF
14962 cat confdefs.h >>conftest.$ac_ext
14963 cat >>conftest.$ac_ext <<_ACEOF
14964 /* end confdefs.h.  */
14965 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
14966    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14967 #define shl_load innocuous_shl_load
14968
14969 /* System header to define __stub macros and hopefully few prototypes,
14970     which can conflict with char shl_load (); below.
14971     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14972     <limits.h> exists even on freestanding compilers.  */
14973
14974 #ifdef __STDC__
14975 # include <limits.h>
14976 #else
14977 # include <assert.h>
14978 #endif
14979
14980 #undef shl_load
14981
14982 /* Override any gcc2 internal prototype to avoid an error.  */
14983 #ifdef __cplusplus
14984 extern "C"
14985 {
14986 #endif
14987 /* We use char because int might match the return type of a gcc2
14988    builtin and then its argument prototype would still apply.  */
14989 char shl_load ();
14990 /* The GNU C library defines this for functions which it implements
14991     to always fail with ENOSYS.  Some functions are actually named
14992     something starting with __ and the normal name is an alias.  */
14993 #if defined (__stub_shl_load) || defined (__stub___shl_load)
14994 choke me
14995 #else
14996 char (*f) () = shl_load;
14997 #endif
14998 #ifdef __cplusplus
14999 }
15000 #endif
15001
15002 int
15003 main ()
15004 {
15005 return f != shl_load;
15006   ;
15007   return 0;
15008 }
15009 _ACEOF
15010 rm -f conftest.$ac_objext conftest$ac_exeext
15011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15012   (eval $ac_link) 2>conftest.er1
15013   ac_status=$?
15014   grep -v '^ *+' conftest.er1 >conftest.err
15015   rm -f conftest.er1
15016   cat conftest.err >&5
15017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15018   (exit $ac_status); } &&
15019          { ac_try='test -z "$ac_c_werror_flag"
15020                          || test ! -s conftest.err'
15021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15022   (eval $ac_try) 2>&5
15023   ac_status=$?
15024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15025   (exit $ac_status); }; } &&
15026          { ac_try='test -s conftest$ac_exeext'
15027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15028   (eval $ac_try) 2>&5
15029   ac_status=$?
15030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15031   (exit $ac_status); }; }; then
15032   ac_cv_func_shl_load=yes
15033 else
15034   echo "$as_me: failed program was:" >&5
15035 sed 's/^/| /' conftest.$ac_ext >&5
15036
15037 ac_cv_func_shl_load=no
15038 fi
15039 rm -f conftest.err conftest.$ac_objext \
15040       conftest$ac_exeext conftest.$ac_ext
15041 fi
15042 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
15043 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
15044 if test $ac_cv_func_shl_load = yes; then
15045   lt_cv_dlopen="shl_load"
15046 else
15047   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
15048 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
15049 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
15050   echo $ECHO_N "(cached) $ECHO_C" >&6
15051 else
15052   ac_check_lib_save_LIBS=$LIBS
15053 LIBS="-ldld  $LIBS"
15054 cat >conftest.$ac_ext <<_ACEOF
15055 /* confdefs.h.  */
15056 _ACEOF
15057 cat confdefs.h >>conftest.$ac_ext
15058 cat >>conftest.$ac_ext <<_ACEOF
15059 /* end confdefs.h.  */
15060
15061 /* Override any gcc2 internal prototype to avoid an error.  */
15062 #ifdef __cplusplus
15063 extern "C"
15064 #endif
15065 /* We use char because int might match the return type of a gcc2
15066    builtin and then its argument prototype would still apply.  */
15067 char shl_load ();
15068 int
15069 main ()
15070 {
15071 shl_load ();
15072   ;
15073   return 0;
15074 }
15075 _ACEOF
15076 rm -f conftest.$ac_objext conftest$ac_exeext
15077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15078   (eval $ac_link) 2>conftest.er1
15079   ac_status=$?
15080   grep -v '^ *+' conftest.er1 >conftest.err
15081   rm -f conftest.er1
15082   cat conftest.err >&5
15083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15084   (exit $ac_status); } &&
15085          { ac_try='test -z "$ac_c_werror_flag"
15086                          || test ! -s conftest.err'
15087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15088   (eval $ac_try) 2>&5
15089   ac_status=$?
15090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15091   (exit $ac_status); }; } &&
15092          { ac_try='test -s conftest$ac_exeext'
15093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15094   (eval $ac_try) 2>&5
15095   ac_status=$?
15096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15097   (exit $ac_status); }; }; then
15098   ac_cv_lib_dld_shl_load=yes
15099 else
15100   echo "$as_me: failed program was:" >&5
15101 sed 's/^/| /' conftest.$ac_ext >&5
15102
15103 ac_cv_lib_dld_shl_load=no
15104 fi
15105 rm -f conftest.err conftest.$ac_objext \
15106       conftest$ac_exeext conftest.$ac_ext
15107 LIBS=$ac_check_lib_save_LIBS
15108 fi
15109 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
15110 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
15111 if test $ac_cv_lib_dld_shl_load = yes; then
15112   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
15113 else
15114   echo "$as_me:$LINENO: checking for dlopen" >&5
15115 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
15116 if test "${ac_cv_func_dlopen+set}" = set; then
15117   echo $ECHO_N "(cached) $ECHO_C" >&6
15118 else
15119   cat >conftest.$ac_ext <<_ACEOF
15120 /* confdefs.h.  */
15121 _ACEOF
15122 cat confdefs.h >>conftest.$ac_ext
15123 cat >>conftest.$ac_ext <<_ACEOF
15124 /* end confdefs.h.  */
15125 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
15126    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15127 #define dlopen innocuous_dlopen
15128
15129 /* System header to define __stub macros and hopefully few prototypes,
15130     which can conflict with char dlopen (); below.
15131     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15132     <limits.h> exists even on freestanding compilers.  */
15133
15134 #ifdef __STDC__
15135 # include <limits.h>
15136 #else
15137 # include <assert.h>
15138 #endif
15139
15140 #undef dlopen
15141
15142 /* Override any gcc2 internal prototype to avoid an error.  */
15143 #ifdef __cplusplus
15144 extern "C"
15145 {
15146 #endif
15147 /* We use char because int might match the return type of a gcc2
15148    builtin and then its argument prototype would still apply.  */
15149 char dlopen ();
15150 /* The GNU C library defines this for functions which it implements
15151     to always fail with ENOSYS.  Some functions are actually named
15152     something starting with __ and the normal name is an alias.  */
15153 #if defined (__stub_dlopen) || defined (__stub___dlopen)
15154 choke me
15155 #else
15156 char (*f) () = dlopen;
15157 #endif
15158 #ifdef __cplusplus
15159 }
15160 #endif
15161
15162 int
15163 main ()
15164 {
15165 return f != dlopen;
15166   ;
15167   return 0;
15168 }
15169 _ACEOF
15170 rm -f conftest.$ac_objext conftest$ac_exeext
15171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15172   (eval $ac_link) 2>conftest.er1
15173   ac_status=$?
15174   grep -v '^ *+' conftest.er1 >conftest.err
15175   rm -f conftest.er1
15176   cat conftest.err >&5
15177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15178   (exit $ac_status); } &&
15179          { ac_try='test -z "$ac_c_werror_flag"
15180                          || test ! -s conftest.err'
15181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15182   (eval $ac_try) 2>&5
15183   ac_status=$?
15184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15185   (exit $ac_status); }; } &&
15186          { ac_try='test -s conftest$ac_exeext'
15187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15188   (eval $ac_try) 2>&5
15189   ac_status=$?
15190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15191   (exit $ac_status); }; }; then
15192   ac_cv_func_dlopen=yes
15193 else
15194   echo "$as_me: failed program was:" >&5
15195 sed 's/^/| /' conftest.$ac_ext >&5
15196
15197 ac_cv_func_dlopen=no
15198 fi
15199 rm -f conftest.err conftest.$ac_objext \
15200       conftest$ac_exeext conftest.$ac_ext
15201 fi
15202 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
15203 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
15204 if test $ac_cv_func_dlopen = yes; then
15205   lt_cv_dlopen="dlopen"
15206 else
15207   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
15208 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
15209 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
15210   echo $ECHO_N "(cached) $ECHO_C" >&6
15211 else
15212   ac_check_lib_save_LIBS=$LIBS
15213 LIBS="-ldl  $LIBS"
15214 cat >conftest.$ac_ext <<_ACEOF
15215 /* confdefs.h.  */
15216 _ACEOF
15217 cat confdefs.h >>conftest.$ac_ext
15218 cat >>conftest.$ac_ext <<_ACEOF
15219 /* end confdefs.h.  */
15220
15221 /* Override any gcc2 internal prototype to avoid an error.  */
15222 #ifdef __cplusplus
15223 extern "C"
15224 #endif
15225 /* We use char because int might match the return type of a gcc2
15226    builtin and then its argument prototype would still apply.  */
15227 char dlopen ();
15228 int
15229 main ()
15230 {
15231 dlopen ();
15232   ;
15233   return 0;
15234 }
15235 _ACEOF
15236 rm -f conftest.$ac_objext conftest$ac_exeext
15237 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15238   (eval $ac_link) 2>conftest.er1
15239   ac_status=$?
15240   grep -v '^ *+' conftest.er1 >conftest.err
15241   rm -f conftest.er1
15242   cat conftest.err >&5
15243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15244   (exit $ac_status); } &&
15245          { ac_try='test -z "$ac_c_werror_flag"
15246                          || test ! -s conftest.err'
15247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15248   (eval $ac_try) 2>&5
15249   ac_status=$?
15250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15251   (exit $ac_status); }; } &&
15252          { ac_try='test -s conftest$ac_exeext'
15253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15254   (eval $ac_try) 2>&5
15255   ac_status=$?
15256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15257   (exit $ac_status); }; }; then
15258   ac_cv_lib_dl_dlopen=yes
15259 else
15260   echo "$as_me: failed program was:" >&5
15261 sed 's/^/| /' conftest.$ac_ext >&5
15262
15263 ac_cv_lib_dl_dlopen=no
15264 fi
15265 rm -f conftest.err conftest.$ac_objext \
15266       conftest$ac_exeext conftest.$ac_ext
15267 LIBS=$ac_check_lib_save_LIBS
15268 fi
15269 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15270 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
15271 if test $ac_cv_lib_dl_dlopen = yes; then
15272   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15273 else
15274   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
15275 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
15276 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
15277   echo $ECHO_N "(cached) $ECHO_C" >&6
15278 else
15279   ac_check_lib_save_LIBS=$LIBS
15280 LIBS="-lsvld  $LIBS"
15281 cat >conftest.$ac_ext <<_ACEOF
15282 /* confdefs.h.  */
15283 _ACEOF
15284 cat confdefs.h >>conftest.$ac_ext
15285 cat >>conftest.$ac_ext <<_ACEOF
15286 /* end confdefs.h.  */
15287
15288 /* Override any gcc2 internal prototype to avoid an error.  */
15289 #ifdef __cplusplus
15290 extern "C"
15291 #endif
15292 /* We use char because int might match the return type of a gcc2
15293    builtin and then its argument prototype would still apply.  */
15294 char dlopen ();
15295 int
15296 main ()
15297 {
15298 dlopen ();
15299   ;
15300   return 0;
15301 }
15302 _ACEOF
15303 rm -f conftest.$ac_objext conftest$ac_exeext
15304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15305   (eval $ac_link) 2>conftest.er1
15306   ac_status=$?
15307   grep -v '^ *+' conftest.er1 >conftest.err
15308   rm -f conftest.er1
15309   cat conftest.err >&5
15310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15311   (exit $ac_status); } &&
15312          { ac_try='test -z "$ac_c_werror_flag"
15313                          || test ! -s conftest.err'
15314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15315   (eval $ac_try) 2>&5
15316   ac_status=$?
15317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15318   (exit $ac_status); }; } &&
15319          { ac_try='test -s conftest$ac_exeext'
15320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15321   (eval $ac_try) 2>&5
15322   ac_status=$?
15323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15324   (exit $ac_status); }; }; then
15325   ac_cv_lib_svld_dlopen=yes
15326 else
15327   echo "$as_me: failed program was:" >&5
15328 sed 's/^/| /' conftest.$ac_ext >&5
15329
15330 ac_cv_lib_svld_dlopen=no
15331 fi
15332 rm -f conftest.err conftest.$ac_objext \
15333       conftest$ac_exeext conftest.$ac_ext
15334 LIBS=$ac_check_lib_save_LIBS
15335 fi
15336 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
15337 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
15338 if test $ac_cv_lib_svld_dlopen = yes; then
15339   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
15340 else
15341   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
15342 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
15343 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
15344   echo $ECHO_N "(cached) $ECHO_C" >&6
15345 else
15346   ac_check_lib_save_LIBS=$LIBS
15347 LIBS="-ldld  $LIBS"
15348 cat >conftest.$ac_ext <<_ACEOF
15349 /* confdefs.h.  */
15350 _ACEOF
15351 cat confdefs.h >>conftest.$ac_ext
15352 cat >>conftest.$ac_ext <<_ACEOF
15353 /* end confdefs.h.  */
15354
15355 /* Override any gcc2 internal prototype to avoid an error.  */
15356 #ifdef __cplusplus
15357 extern "C"
15358 #endif
15359 /* We use char because int might match the return type of a gcc2
15360    builtin and then its argument prototype would still apply.  */
15361 char dld_link ();
15362 int
15363 main ()
15364 {
15365 dld_link ();
15366   ;
15367   return 0;
15368 }
15369 _ACEOF
15370 rm -f conftest.$ac_objext conftest$ac_exeext
15371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15372   (eval $ac_link) 2>conftest.er1
15373   ac_status=$?
15374   grep -v '^ *+' conftest.er1 >conftest.err
15375   rm -f conftest.er1
15376   cat conftest.err >&5
15377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15378   (exit $ac_status); } &&
15379          { ac_try='test -z "$ac_c_werror_flag"
15380                          || test ! -s conftest.err'
15381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15382   (eval $ac_try) 2>&5
15383   ac_status=$?
15384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15385   (exit $ac_status); }; } &&
15386          { ac_try='test -s conftest$ac_exeext'
15387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15388   (eval $ac_try) 2>&5
15389   ac_status=$?
15390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15391   (exit $ac_status); }; }; then
15392   ac_cv_lib_dld_dld_link=yes
15393 else
15394   echo "$as_me: failed program was:" >&5
15395 sed 's/^/| /' conftest.$ac_ext >&5
15396
15397 ac_cv_lib_dld_dld_link=no
15398 fi
15399 rm -f conftest.err conftest.$ac_objext \
15400       conftest$ac_exeext conftest.$ac_ext
15401 LIBS=$ac_check_lib_save_LIBS
15402 fi
15403 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
15404 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
15405 if test $ac_cv_lib_dld_dld_link = yes; then
15406   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
15407 fi
15408
15409
15410 fi
15411
15412
15413 fi
15414
15415
15416 fi
15417
15418
15419 fi
15420
15421
15422 fi
15423
15424     ;;
15425   esac
15426
15427   if test "x$lt_cv_dlopen" != xno; then
15428     enable_dlopen=yes
15429   else
15430     enable_dlopen=no
15431   fi
15432
15433   case $lt_cv_dlopen in
15434   dlopen)
15435     save_CPPFLAGS="$CPPFLAGS"
15436     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15437
15438     save_LDFLAGS="$LDFLAGS"
15439     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15440
15441     save_LIBS="$LIBS"
15442     LIBS="$lt_cv_dlopen_libs $LIBS"
15443
15444     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
15445 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
15446 if test "${lt_cv_dlopen_self+set}" = set; then
15447   echo $ECHO_N "(cached) $ECHO_C" >&6
15448 else
15449           if test "$cross_compiling" = yes; then :
15450   lt_cv_dlopen_self=cross
15451 else
15452   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15453   lt_status=$lt_dlunknown
15454   cat > conftest.$ac_ext <<EOF
15455 #line 15455 "configure"
15456 #include "confdefs.h"
15457
15458 #if HAVE_DLFCN_H
15459 #include <dlfcn.h>
15460 #endif
15461
15462 #include <stdio.h>
15463
15464 #ifdef RTLD_GLOBAL
15465 #  define LT_DLGLOBAL           RTLD_GLOBAL
15466 #else
15467 #  ifdef DL_GLOBAL
15468 #    define LT_DLGLOBAL         DL_GLOBAL
15469 #  else
15470 #    define LT_DLGLOBAL         0
15471 #  endif
15472 #endif
15473
15474 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15475    find out it does not work in some platform. */
15476 #ifndef LT_DLLAZY_OR_NOW
15477 #  ifdef RTLD_LAZY
15478 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
15479 #  else
15480 #    ifdef DL_LAZY
15481 #      define LT_DLLAZY_OR_NOW          DL_LAZY
15482 #    else
15483 #      ifdef RTLD_NOW
15484 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
15485 #      else
15486 #        ifdef DL_NOW
15487 #          define LT_DLLAZY_OR_NOW      DL_NOW
15488 #        else
15489 #          define LT_DLLAZY_OR_NOW      0
15490 #        endif
15491 #      endif
15492 #    endif
15493 #  endif
15494 #endif
15495
15496 #ifdef __cplusplus
15497 extern "C" void exit (int);
15498 #endif
15499
15500 void fnord() { int i=42;}
15501 int main ()
15502 {
15503   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15504   int status = $lt_dlunknown;
15505
15506   if (self)
15507     {
15508       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
15509       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15510       /* dlclose (self); */
15511     }
15512
15513     exit (status);
15514 }
15515 EOF
15516   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15517   (eval $ac_link) 2>&5
15518   ac_status=$?
15519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15520   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
15521     (./conftest; exit; ) 2>/dev/null
15522     lt_status=$?
15523     case x$lt_status in
15524       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15525       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15526       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
15527     esac
15528   else :
15529     # compilation failed
15530     lt_cv_dlopen_self=no
15531   fi
15532 fi
15533 rm -fr conftest*
15534
15535
15536 fi
15537 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
15538 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
15539
15540     if test "x$lt_cv_dlopen_self" = xyes; then
15541       LDFLAGS="$LDFLAGS $link_static_flag"
15542       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
15543 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
15544 if test "${lt_cv_dlopen_self_static+set}" = set; then
15545   echo $ECHO_N "(cached) $ECHO_C" >&6
15546 else
15547           if test "$cross_compiling" = yes; then :
15548   lt_cv_dlopen_self_static=cross
15549 else
15550   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15551   lt_status=$lt_dlunknown
15552   cat > conftest.$ac_ext <<EOF
15553 #line 15553 "configure"
15554 #include "confdefs.h"
15555
15556 #if HAVE_DLFCN_H
15557 #include <dlfcn.h>
15558 #endif
15559
15560 #include <stdio.h>
15561
15562 #ifdef RTLD_GLOBAL
15563 #  define LT_DLGLOBAL           RTLD_GLOBAL
15564 #else
15565 #  ifdef DL_GLOBAL
15566 #    define LT_DLGLOBAL         DL_GLOBAL
15567 #  else
15568 #    define LT_DLGLOBAL         0
15569 #  endif
15570 #endif
15571
15572 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15573    find out it does not work in some platform. */
15574 #ifndef LT_DLLAZY_OR_NOW
15575 #  ifdef RTLD_LAZY
15576 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
15577 #  else
15578 #    ifdef DL_LAZY
15579 #      define LT_DLLAZY_OR_NOW          DL_LAZY
15580 #    else
15581 #      ifdef RTLD_NOW
15582 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
15583 #      else
15584 #        ifdef DL_NOW
15585 #          define LT_DLLAZY_OR_NOW      DL_NOW
15586 #        else
15587 #          define LT_DLLAZY_OR_NOW      0
15588 #        endif
15589 #      endif
15590 #    endif
15591 #  endif
15592 #endif
15593
15594 #ifdef __cplusplus
15595 extern "C" void exit (int);
15596 #endif
15597
15598 void fnord() { int i=42;}
15599 int main ()
15600 {
15601   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15602   int status = $lt_dlunknown;
15603
15604   if (self)
15605     {
15606       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
15607       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15608       /* dlclose (self); */
15609     }
15610
15611     exit (status);
15612 }
15613 EOF
15614   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15615   (eval $ac_link) 2>&5
15616   ac_status=$?
15617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15618   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
15619     (./conftest; exit; ) 2>/dev/null
15620     lt_status=$?
15621     case x$lt_status in
15622       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15623       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15624       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
15625     esac
15626   else :
15627     # compilation failed
15628     lt_cv_dlopen_self_static=no
15629   fi
15630 fi
15631 rm -fr conftest*
15632
15633
15634 fi
15635 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
15636 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
15637     fi
15638
15639     CPPFLAGS="$save_CPPFLAGS"
15640     LDFLAGS="$save_LDFLAGS"
15641     LIBS="$save_LIBS"
15642     ;;
15643   esac
15644
15645   case $lt_cv_dlopen_self in
15646   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15647   *) enable_dlopen_self=unknown ;;
15648   esac
15649
15650   case $lt_cv_dlopen_self_static in
15651   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15652   *) enable_dlopen_self_static=unknown ;;
15653   esac
15654 fi
15655
15656
15657 # Report which librarie types wil actually be built
15658 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
15659 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
15660 echo "$as_me:$LINENO: result: $can_build_shared" >&5
15661 echo "${ECHO_T}$can_build_shared" >&6
15662
15663 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
15664 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
15665 test "$can_build_shared" = "no" && enable_shared=no
15666
15667 # On AIX, shared libraries and static libraries use the same namespace, and
15668 # are all built from PIC.
15669 case "$host_os" in
15670 aix3*)
15671   test "$enable_shared" = yes && enable_static=no
15672   if test -n "$RANLIB"; then
15673     archive_cmds="$archive_cmds~\$RANLIB \$lib"
15674     postinstall_cmds='$RANLIB $lib'
15675   fi
15676   ;;
15677
15678 aix4* | aix5*)
15679   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15680     test "$enable_shared" = yes && enable_static=no
15681   fi
15682     ;;
15683 esac
15684 echo "$as_me:$LINENO: result: $enable_shared" >&5
15685 echo "${ECHO_T}$enable_shared" >&6
15686
15687 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
15688 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
15689 # Make sure either enable_shared or enable_static is yes.
15690 test "$enable_shared" = yes || enable_static=yes
15691 echo "$as_me:$LINENO: result: $enable_static" >&5
15692 echo "${ECHO_T}$enable_static" >&6
15693
15694 # The else clause should only fire when bootstrapping the
15695 # libtool distribution, otherwise you forgot to ship ltmain.sh
15696 # with your package, and you will get complaints that there are
15697 # no rules to generate ltmain.sh.
15698 if test -f "$ltmain"; then
15699   # See if we are running on zsh, and set the options which allow our commands through
15700   # without removal of \ escapes.
15701   if test -n "${ZSH_VERSION+set}" ; then
15702     setopt NO_GLOB_SUBST
15703   fi
15704   # Now quote all the things that may contain metacharacters while being
15705   # careful not to overquote the AC_SUBSTed values.  We take copies of the
15706   # variables and quote the copies for generation of the libtool script.
15707   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15708     SED SHELL STRIP \
15709     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15710     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15711     deplibs_check_method reload_flag reload_cmds need_locks \
15712     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15713     lt_cv_sys_global_symbol_to_c_name_address \
15714     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15715     old_postinstall_cmds old_postuninstall_cmds \
15716     compiler \
15717     CC \
15718     LD \
15719     lt_prog_compiler_wl \
15720     lt_prog_compiler_pic \
15721     lt_prog_compiler_static \
15722     lt_prog_compiler_no_builtin_flag \
15723     export_dynamic_flag_spec \
15724     thread_safe_flag_spec \
15725     whole_archive_flag_spec \
15726     enable_shared_with_static_runtimes \
15727     old_archive_cmds \
15728     old_archive_from_new_cmds \
15729     predep_objects \
15730     postdep_objects \
15731     predeps \
15732     postdeps \
15733     compiler_lib_search_path \
15734     archive_cmds \
15735     archive_expsym_cmds \
15736     postinstall_cmds \
15737     postuninstall_cmds \
15738     old_archive_from_expsyms_cmds \
15739     allow_undefined_flag \
15740     no_undefined_flag \
15741     export_symbols_cmds \
15742     hardcode_libdir_flag_spec \
15743     hardcode_libdir_flag_spec_ld \
15744     hardcode_libdir_separator \
15745     hardcode_automatic \
15746     module_cmds \
15747     module_expsym_cmds \
15748     lt_cv_prog_compiler_c_o \
15749     exclude_expsyms \
15750     include_expsyms; do
15751
15752     case $var in
15753     old_archive_cmds | \
15754     old_archive_from_new_cmds | \
15755     archive_cmds | \
15756     archive_expsym_cmds | \
15757     module_cmds | \
15758     module_expsym_cmds | \
15759     old_archive_from_expsyms_cmds | \
15760     export_symbols_cmds | \
15761     extract_expsyms_cmds | reload_cmds | finish_cmds | \
15762     postinstall_cmds | postuninstall_cmds | \
15763     old_postinstall_cmds | old_postuninstall_cmds | \
15764     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15765       # Double-quote double-evaled strings.
15766       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15767       ;;
15768     *)
15769       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15770       ;;
15771     esac
15772   done
15773
15774   case $lt_echo in
15775   *'\$0 --fallback-echo"')
15776     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15777     ;;
15778   esac
15779
15780 cfgfile="${ofile}T"
15781   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
15782   $rm -f "$cfgfile"
15783   { echo "$as_me:$LINENO: creating $ofile" >&5
15784 echo "$as_me: creating $ofile" >&6;}
15785
15786   cat <<__EOF__ >> "$cfgfile"
15787 #! $SHELL
15788
15789 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15790 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
15791 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15792 #
15793 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
15794 # Free Software Foundation, Inc.
15795 #
15796 # This file is part of GNU Libtool:
15797 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
15798 #
15799 # This program is free software; you can redistribute it and/or modify
15800 # it under the terms of the GNU General Public License as published by
15801 # the Free Software Foundation; either version 2 of the License, or
15802 # (at your option) any later version.
15803 #
15804 # This program is distributed in the hope that it will be useful, but
15805 # WITHOUT ANY WARRANTY; without even the implied warranty of
15806 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15807 # General Public License for more details.
15808 #
15809 # You should have received a copy of the GNU General Public License
15810 # along with this program; if not, write to the Free Software
15811 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15812 #
15813 # As a special exception to the GNU General Public License, if you
15814 # distribute this file as part of a program that contains a
15815 # configuration script generated by Autoconf, you may include it under
15816 # the same distribution terms that you use for the rest of that program.
15817
15818 # A sed program that does not truncate output.
15819 SED=$lt_SED
15820
15821 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15822 Xsed="$SED -e 1s/^X//"
15823
15824 # The HP-UX ksh and POSIX shell print the target directory to stdout
15825 # if CDPATH is set.
15826 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15827
15828 # The names of the tagged configurations supported by this script.
15829 available_tags=
15830
15831 # ### BEGIN LIBTOOL CONFIG
15832
15833 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15834
15835 # Shell to use when invoking shell scripts.
15836 SHELL=$lt_SHELL
15837
15838 # Whether or not to build shared libraries.
15839 build_libtool_libs=$enable_shared
15840
15841 # Whether or not to build static libraries.
15842 build_old_libs=$enable_static
15843
15844 # Whether or not to add -lc for building shared libraries.
15845 build_libtool_need_lc=$archive_cmds_need_lc
15846
15847 # Whether or not to disallow shared libs when runtime libs are static
15848 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15849
15850 # Whether or not to optimize for fast installation.
15851 fast_install=$enable_fast_install
15852
15853 # The host system.
15854 host_alias=$host_alias
15855 host=$host
15856 host_os=$host_os
15857
15858 # The build system.
15859 build_alias=$build_alias
15860 build=$build
15861 build_os=$build_os
15862
15863 # An echo program that does not interpret backslashes.
15864 echo=$lt_echo
15865
15866 # The archiver.
15867 AR=$lt_AR
15868 AR_FLAGS=$lt_AR_FLAGS
15869
15870 # A C compiler.
15871 LTCC=$lt_LTCC
15872
15873 # A language-specific compiler.
15874 CC=$lt_compiler
15875
15876 # Is the compiler the GNU C compiler?
15877 with_gcc=$GCC
15878
15879 # An ERE matcher.
15880 EGREP=$lt_EGREP
15881
15882 # The linker used to build libraries.
15883 LD=$lt_LD
15884
15885 # Whether we need hard or soft links.
15886 LN_S=$lt_LN_S
15887
15888 # A BSD-compatible nm program.
15889 NM=$lt_NM
15890
15891 # A symbol stripping program
15892 STRIP=$lt_STRIP
15893
15894 # Used to examine libraries when file_magic_cmd begins "file"
15895 MAGIC_CMD=$MAGIC_CMD
15896
15897 # Used on cygwin: DLL creation program.
15898 DLLTOOL="$DLLTOOL"
15899
15900 # Used on cygwin: object dumper.
15901 OBJDUMP="$OBJDUMP"
15902
15903 # Used on cygwin: assembler.
15904 AS="$AS"
15905
15906 # The name of the directory that contains temporary libtool files.
15907 objdir=$objdir
15908
15909 # How to create reloadable object files.
15910 reload_flag=$lt_reload_flag
15911 reload_cmds=$lt_reload_cmds
15912
15913 # How to pass a linker flag through the compiler.
15914 wl=$lt_lt_prog_compiler_wl
15915
15916 # Object file suffix (normally "o").
15917 objext="$ac_objext"
15918
15919 # Old archive suffix (normally "a").
15920 libext="$libext"
15921
15922 # Shared library suffix (normally ".so").
15923 shrext_cmds='$shrext_cmds'
15924
15925 # Executable file suffix (normally "").
15926 exeext="$exeext"
15927
15928 # Additional compiler flags for building library objects.
15929 pic_flag=$lt_lt_prog_compiler_pic
15930 pic_mode=$pic_mode
15931
15932 # What is the maximum length of a command?
15933 max_cmd_len=$lt_cv_sys_max_cmd_len
15934
15935 # Does compiler simultaneously support -c and -o options?
15936 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15937
15938 # Must we lock files when doing compilation?
15939 need_locks=$lt_need_locks
15940
15941 # Do we need the lib prefix for modules?
15942 need_lib_prefix=$need_lib_prefix
15943
15944 # Do we need a version for libraries?
15945 need_version=$need_version
15946
15947 # Whether dlopen is supported.
15948 dlopen_support=$enable_dlopen
15949
15950 # Whether dlopen of programs is supported.
15951 dlopen_self=$enable_dlopen_self
15952
15953 # Whether dlopen of statically linked programs is supported.
15954 dlopen_self_static=$enable_dlopen_self_static
15955
15956 # Compiler flag to prevent dynamic linking.
15957 link_static_flag=$lt_lt_prog_compiler_static
15958
15959 # Compiler flag to turn off builtin functions.
15960 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15961
15962 # Compiler flag to allow reflexive dlopens.
15963 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15964
15965 # Compiler flag to generate shared objects directly from archives.
15966 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15967
15968 # Compiler flag to generate thread-safe objects.
15969 thread_safe_flag_spec=$lt_thread_safe_flag_spec
15970
15971 # Library versioning type.
15972 version_type=$version_type
15973
15974 # Format of library name prefix.
15975 libname_spec=$lt_libname_spec
15976
15977 # List of archive names.  First name is the real one, the rest are links.
15978 # The last name is the one that the linker finds with -lNAME.
15979 library_names_spec=$lt_library_names_spec
15980
15981 # The coded name of the library, if different from the real name.
15982 soname_spec=$lt_soname_spec
15983
15984 # Commands used to build and install an old-style archive.
15985 RANLIB=$lt_RANLIB
15986 old_archive_cmds=$lt_old_archive_cmds
15987 old_postinstall_cmds=$lt_old_postinstall_cmds
15988 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15989
15990 # Create an old-style archive from a shared archive.
15991 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15992
15993 # Create a temporary old-style archive to link instead of a shared archive.
15994 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15995
15996 # Commands used to build and install a shared archive.
15997 archive_cmds=$lt_archive_cmds
15998 archive_expsym_cmds=$lt_archive_expsym_cmds
15999 postinstall_cmds=$lt_postinstall_cmds
16000 postuninstall_cmds=$lt_postuninstall_cmds
16001
16002 # Commands used to build a loadable module (assumed same as above if empty)
16003 module_cmds=$lt_module_cmds
16004 module_expsym_cmds=$lt_module_expsym_cmds
16005
16006 # Commands to strip libraries.
16007 old_striplib=$lt_old_striplib
16008 striplib=$lt_striplib
16009
16010 # Dependencies to place before the objects being linked to create a
16011 # shared library.
16012 predep_objects=$lt_predep_objects
16013
16014 # Dependencies to place after the objects being linked to create a
16015 # shared library.
16016 postdep_objects=$lt_postdep_objects
16017
16018 # Dependencies to place before the objects being linked to create a
16019 # shared library.
16020 predeps=$lt_predeps
16021
16022 # Dependencies to place after the objects being linked to create a
16023 # shared library.
16024 postdeps=$lt_postdeps
16025
16026 # The library search path used internally by the compiler when linking
16027 # a shared library.
16028 compiler_lib_search_path=$lt_compiler_lib_search_path
16029
16030 # Method to check whether dependent libraries are shared objects.
16031 deplibs_check_method=$lt_deplibs_check_method
16032
16033 # Command to use when deplibs_check_method == file_magic.
16034 file_magic_cmd=$lt_file_magic_cmd
16035
16036 # Flag that allows shared libraries with undefined symbols to be built.
16037 allow_undefined_flag=$lt_allow_undefined_flag
16038
16039 # Flag that forces no undefined symbols.
16040 no_undefined_flag=$lt_no_undefined_flag
16041
16042 # Commands used to finish a libtool library installation in a directory.
16043 finish_cmds=$lt_finish_cmds
16044
16045 # Same as above, but a single script fragment to be evaled but not shown.
16046 finish_eval=$lt_finish_eval
16047
16048 # Take the output of nm and produce a listing of raw symbols and C names.
16049 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16050
16051 # Transform the output of nm in a proper C declaration
16052 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16053
16054 # Transform the output of nm in a C name address pair
16055 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16056
16057 # This is the shared library runtime path variable.
16058 runpath_var=$runpath_var
16059
16060 # This is the shared library path variable.
16061 shlibpath_var=$shlibpath_var
16062
16063 # Is shlibpath searched before the hard-coded library search path?
16064 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16065
16066 # How to hardcode a shared library path into an executable.
16067 hardcode_action=$hardcode_action
16068
16069 # Whether we should hardcode library paths into libraries.
16070 hardcode_into_libs=$hardcode_into_libs
16071
16072 # Flag to hardcode \$libdir into a binary during linking.
16073 # This must work even if \$libdir does not exist.
16074 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16075
16076 # If ld is used when linking, flag to hardcode \$libdir into
16077 # a binary during linking. This must work even if \$libdir does
16078 # not exist.
16079 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16080
16081 # Whether we need a single -rpath flag with a separated argument.
16082 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16083
16084 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16085 # resulting binary.
16086 hardcode_direct=$hardcode_direct
16087
16088 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16089 # resulting binary.
16090 hardcode_minus_L=$hardcode_minus_L
16091
16092 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16093 # the resulting binary.
16094 hardcode_shlibpath_var=$hardcode_shlibpath_var
16095
16096 # Set to yes if building a shared library automatically hardcodes DIR into the library
16097 # and all subsequent libraries and executables linked against it.
16098 hardcode_automatic=$hardcode_automatic
16099
16100 # Variables whose values should be saved in libtool wrapper scripts and
16101 # restored at relink time.
16102 variables_saved_for_relink="$variables_saved_for_relink"
16103
16104 # Whether libtool must link a program against all its dependency libraries.
16105 link_all_deplibs=$link_all_deplibs
16106
16107 # Compile-time system search path for libraries
16108 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16109
16110 # Run-time system search path for libraries
16111 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16112
16113 # Fix the shell variable \$srcfile for the compiler.
16114 fix_srcfile_path="$fix_srcfile_path"
16115
16116 # Set to yes if exported symbols are required.
16117 always_export_symbols=$always_export_symbols
16118
16119 # The commands to list exported symbols.
16120 export_symbols_cmds=$lt_export_symbols_cmds
16121
16122 # The commands to extract the exported symbol list from a shared archive.
16123 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16124
16125 # Symbols that should not be listed in the preloaded symbols.
16126 exclude_expsyms=$lt_exclude_expsyms
16127
16128 # Symbols that must always be exported.
16129 include_expsyms=$lt_include_expsyms
16130
16131 # ### END LIBTOOL CONFIG
16132
16133 __EOF__
16134
16135
16136   case $host_os in
16137   aix3*)
16138     cat <<\EOF >> "$cfgfile"
16139
16140 # AIX sometimes has problems with the GCC collect2 program.  For some
16141 # reason, if we set the COLLECT_NAMES environment variable, the problems
16142 # vanish in a puff of smoke.
16143 if test "X${COLLECT_NAMES+set}" != Xset; then
16144   COLLECT_NAMES=
16145   export COLLECT_NAMES
16146 fi
16147 EOF
16148     ;;
16149   esac
16150
16151   # We use sed instead of cat because bash on DJGPP gets confused if
16152   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
16153   # text mode, it properly converts lines to CR/LF.  This bash problem
16154   # is reportedly fixed, but why not run on old versions too?
16155   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
16156
16157   mv -f "$cfgfile" "$ofile" || \
16158     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16159   chmod +x "$ofile"
16160
16161 else
16162   # If there is no Makefile yet, we rely on a make rule to execute
16163   # `config.status --recheck' to rerun these tests and create the
16164   # libtool script then.
16165   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16166   if test -f "$ltmain_in"; then
16167     test -f Makefile && make "$ltmain"
16168   fi
16169 fi
16170
16171
16172 ac_ext=c
16173 ac_cpp='$CPP $CPPFLAGS'
16174 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16175 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16176 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16177
16178 CC="$lt_save_CC"
16179
16180
16181 # Check whether --with-tags or --without-tags was given.
16182 if test "${with_tags+set}" = set; then
16183   withval="$with_tags"
16184   tagnames="$withval"
16185 fi;
16186
16187 if test -f "$ltmain" && test -n "$tagnames"; then
16188   if test ! -f "${ofile}"; then
16189     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
16190 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
16191   fi
16192
16193   if test -z "$LTCC"; then
16194     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
16195     if test -z "$LTCC"; then
16196       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
16197 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
16198     else
16199       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
16200 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
16201     fi
16202   fi
16203
16204   # Extract list of available tagged configurations in $ofile.
16205   # Note that this assumes the entire list is on one line.
16206   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
16207
16208   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
16209   for tagname in $tagnames; do
16210     IFS="$lt_save_ifs"
16211     # Check whether tagname contains only valid characters
16212     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
16213     "") ;;
16214     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
16215 echo "$as_me: error: invalid tag name: $tagname" >&2;}
16216    { (exit 1); exit 1; }; }
16217         ;;
16218     esac
16219
16220     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
16221     then
16222       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
16223 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
16224    { (exit 1); exit 1; }; }
16225     fi
16226
16227     # Update the list of available tags.
16228     if test -n "$tagname"; then
16229       echo appending configuration tag \"$tagname\" to $ofile
16230
16231       case $tagname in
16232       CXX)
16233         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
16234             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
16235             (test "X$CXX" != "Xg++"))) ; then
16236           ac_ext=cc
16237 ac_cpp='$CXXCPP $CPPFLAGS'
16238 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16239 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16240 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16241
16242
16243
16244
16245 archive_cmds_need_lc_CXX=no
16246 allow_undefined_flag_CXX=
16247 always_export_symbols_CXX=no
16248 archive_expsym_cmds_CXX=
16249 export_dynamic_flag_spec_CXX=
16250 hardcode_direct_CXX=no
16251 hardcode_libdir_flag_spec_CXX=
16252 hardcode_libdir_flag_spec_ld_CXX=
16253 hardcode_libdir_separator_CXX=
16254 hardcode_minus_L_CXX=no
16255 hardcode_automatic_CXX=no
16256 module_cmds_CXX=
16257 module_expsym_cmds_CXX=
16258 link_all_deplibs_CXX=unknown
16259 old_archive_cmds_CXX=$old_archive_cmds
16260 no_undefined_flag_CXX=
16261 whole_archive_flag_spec_CXX=
16262 enable_shared_with_static_runtimes_CXX=no
16263
16264 # Dependencies to place before and after the object being linked:
16265 predep_objects_CXX=
16266 postdep_objects_CXX=
16267 predeps_CXX=
16268 postdeps_CXX=
16269 compiler_lib_search_path_CXX=
16270
16271 # Source file extension for C++ test sources.
16272 ac_ext=cc
16273
16274 # Object file extension for compiled C++ test sources.
16275 objext=o
16276 objext_CXX=$objext
16277
16278 # Code to be used in simple compile tests
16279 lt_simple_compile_test_code="int some_variable = 0;\n"
16280
16281 # Code to be used in simple link tests
16282 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
16283
16284 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16285
16286 # If no C compiler was specified, use CC.
16287 LTCC=${LTCC-"$CC"}
16288
16289 # Allow CC to be a program name with arguments.
16290 compiler=$CC
16291
16292
16293 # save warnings/boilerplate of simple test code
16294 ac_outfile=conftest.$ac_objext
16295 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16296 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
16297 _lt_compiler_boilerplate=`cat conftest.err`
16298 $rm conftest*
16299
16300 ac_outfile=conftest.$ac_objext
16301 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16302 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
16303 _lt_linker_boilerplate=`cat conftest.err`
16304 $rm conftest*
16305
16306
16307 # Allow CC to be a program name with arguments.
16308 lt_save_CC=$CC
16309 lt_save_LD=$LD
16310 lt_save_GCC=$GCC
16311 GCC=$GXX
16312 lt_save_with_gnu_ld=$with_gnu_ld
16313 lt_save_path_LD=$lt_cv_path_LD
16314 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
16315   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
16316 else
16317   unset lt_cv_prog_gnu_ld
16318 fi
16319 if test -n "${lt_cv_path_LDCXX+set}"; then
16320   lt_cv_path_LD=$lt_cv_path_LDCXX
16321 else
16322   unset lt_cv_path_LD
16323 fi
16324 test -z "${LDCXX+set}" || LD=$LDCXX
16325 CC=${CXX-"c++"}
16326 compiler=$CC
16327 compiler_CXX=$CC
16328 for cc_temp in $compiler""; do
16329   case $cc_temp in
16330     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16331     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16332     \-*) ;;
16333     *) break;;
16334   esac
16335 done
16336 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16337
16338
16339 # We don't want -fno-exception wen compiling C++ code, so set the
16340 # no_builtin_flag separately
16341 if test "$GXX" = yes; then
16342   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
16343 else
16344   lt_prog_compiler_no_builtin_flag_CXX=
16345 fi
16346
16347 if test "$GXX" = yes; then
16348   # Set up default GNU C++ configuration
16349
16350
16351 # Check whether --with-gnu-ld or --without-gnu-ld was given.
16352 if test "${with_gnu_ld+set}" = set; then
16353   withval="$with_gnu_ld"
16354   test "$withval" = no || with_gnu_ld=yes
16355 else
16356   with_gnu_ld=no
16357 fi;
16358 ac_prog=ld
16359 if test "$GCC" = yes; then
16360   # Check if gcc -print-prog-name=ld gives a path.
16361   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
16362 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
16363   case $host in
16364   *-*-mingw*)
16365     # gcc leaves a trailing carriage return which upsets mingw
16366     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16367   *)
16368     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16369   esac
16370   case $ac_prog in
16371     # Accept absolute paths.
16372     [\\/]* | ?:[\\/]*)
16373       re_direlt='/[^/][^/]*/\.\./'
16374       # Canonicalize the pathname of ld
16375       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
16376       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
16377         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
16378       done
16379       test -z "$LD" && LD="$ac_prog"
16380       ;;
16381   "")
16382     # If it fails, then pretend we aren't using GCC.
16383     ac_prog=ld
16384     ;;
16385   *)
16386     # If it is relative, then search for the first ld in PATH.
16387     with_gnu_ld=unknown
16388     ;;
16389   esac
16390 elif test "$with_gnu_ld" = yes; then
16391   echo "$as_me:$LINENO: checking for GNU ld" >&5
16392 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
16393 else
16394   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
16395 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
16396 fi
16397 if test "${lt_cv_path_LD+set}" = set; then
16398   echo $ECHO_N "(cached) $ECHO_C" >&6
16399 else
16400   if test -z "$LD"; then
16401   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16402   for ac_dir in $PATH; do
16403     IFS="$lt_save_ifs"
16404     test -z "$ac_dir" && ac_dir=.
16405     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16406       lt_cv_path_LD="$ac_dir/$ac_prog"
16407       # Check to see if the program is GNU ld.  I'd rather use --version,
16408       # but apparently some GNU ld's only accept -v.
16409       # Break only if it was the GNU/non-GNU ld that we prefer.
16410       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16411       *GNU* | *'with BFD'*)
16412         test "$with_gnu_ld" != no && break
16413         ;;
16414       *)
16415         test "$with_gnu_ld" != yes && break
16416         ;;
16417       esac
16418     fi
16419   done
16420   IFS="$lt_save_ifs"
16421 else
16422   lt_cv_path_LD="$LD" # Let the user override the test with a path.
16423 fi
16424 fi
16425
16426 LD="$lt_cv_path_LD"
16427 if test -n "$LD"; then
16428   echo "$as_me:$LINENO: result: $LD" >&5
16429 echo "${ECHO_T}$LD" >&6
16430 else
16431   echo "$as_me:$LINENO: result: no" >&5
16432 echo "${ECHO_T}no" >&6
16433 fi
16434 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
16435 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
16436    { (exit 1); exit 1; }; }
16437 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
16438 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
16439 if test "${lt_cv_prog_gnu_ld+set}" = set; then
16440   echo $ECHO_N "(cached) $ECHO_C" >&6
16441 else
16442   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
16443 case `$LD -v 2>&1 </dev/null` in
16444 *GNU* | *'with BFD'*)
16445   lt_cv_prog_gnu_ld=yes
16446   ;;
16447 *)
16448   lt_cv_prog_gnu_ld=no
16449   ;;
16450 esac
16451 fi
16452 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
16453 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
16454 with_gnu_ld=$lt_cv_prog_gnu_ld
16455
16456
16457
16458   # Check if GNU C++ uses GNU ld as the underlying linker, since the
16459   # archiving commands below assume that GNU ld is being used.
16460   if test "$with_gnu_ld" = yes; then
16461     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16462     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'
16463
16464     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
16465     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16466
16467     # If archive_cmds runs LD, not CC, wlarc should be empty
16468     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
16469     #     investigate it a little bit more. (MM)
16470     wlarc='${wl}'
16471
16472     # ancient GNU ld didn't support --whole-archive et. al.
16473     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
16474         grep 'no-whole-archive' > /dev/null; then
16475       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16476     else
16477       whole_archive_flag_spec_CXX=
16478     fi
16479   else
16480     with_gnu_ld=no
16481     wlarc=
16482
16483     # A generic and very simple default shared library creation
16484     # command for GNU C++ for the case where it uses the native
16485     # linker, instead of GNU ld.  If possible, this setting should
16486     # overridden to take advantage of the native linker features on
16487     # the platform it is being used on.
16488     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16489   fi
16490
16491   # Commands to make compiler produce verbose output that lists
16492   # what "hidden" libraries, object files and flags are used when
16493   # linking a shared library.
16494   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
16495
16496 else
16497   GXX=no
16498   with_gnu_ld=no
16499   wlarc=
16500 fi
16501
16502 # PORTME: fill in a description of your system's C++ link characteristics
16503 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16504 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16505 ld_shlibs_CXX=yes
16506 case $host_os in
16507   aix3*)
16508     # FIXME: insert proper C++ library support
16509     ld_shlibs_CXX=no
16510     ;;
16511   aix4* | aix5*)
16512     if test "$host_cpu" = ia64; then
16513       # On IA64, the linker does run time linking by default, so we don't
16514       # have to do anything special.
16515       aix_use_runtimelinking=no
16516       exp_sym_flag='-Bexport'
16517       no_entry_flag=""
16518     else
16519       aix_use_runtimelinking=no
16520
16521       # Test if we are trying to use run time linking or normal
16522       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16523       # need to do runtime linking.
16524       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16525         for ld_flag in $LDFLAGS; do
16526           case $ld_flag in
16527           *-brtl*)
16528             aix_use_runtimelinking=yes
16529             break
16530             ;;
16531           esac
16532         done
16533       esac
16534
16535       exp_sym_flag='-bexport'
16536       no_entry_flag='-bnoentry'
16537     fi
16538
16539     # When large executables or shared objects are built, AIX ld can
16540     # have problems creating the table of contents.  If linking a library
16541     # or program results in "error TOC overflow" add -mminimal-toc to
16542     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16543     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16544
16545     archive_cmds_CXX=''
16546     hardcode_direct_CXX=yes
16547     hardcode_libdir_separator_CXX=':'
16548     link_all_deplibs_CXX=yes
16549
16550     if test "$GXX" = yes; then
16551       case $host_os in aix4.[012]|aix4.[012].*)
16552       # We only want to do this on AIX 4.2 and lower, the check
16553       # below for broken collect2 doesn't work under 4.3+
16554         collect2name=`${CC} -print-prog-name=collect2`
16555         if test -f "$collect2name" && \
16556            strings "$collect2name" | grep resolve_lib_name >/dev/null
16557         then
16558           # We have reworked collect2
16559           hardcode_direct_CXX=yes
16560         else
16561           # We have old collect2
16562           hardcode_direct_CXX=unsupported
16563           # It fails to find uninstalled libraries when the uninstalled
16564           # path is not listed in the libpath.  Setting hardcode_minus_L
16565           # to unsupported forces relinking
16566           hardcode_minus_L_CXX=yes
16567           hardcode_libdir_flag_spec_CXX='-L$libdir'
16568           hardcode_libdir_separator_CXX=
16569         fi
16570       esac
16571       shared_flag='-shared'
16572       if test "$aix_use_runtimelinking" = yes; then
16573         shared_flag="$shared_flag "'${wl}-G'
16574       fi
16575     else
16576       # not using gcc
16577       if test "$host_cpu" = ia64; then
16578         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16579         # chokes on -Wl,-G. The following line is correct:
16580         shared_flag='-G'
16581       else
16582         if test "$aix_use_runtimelinking" = yes; then
16583           shared_flag='${wl}-G'
16584         else
16585           shared_flag='${wl}-bM:SRE'
16586         fi
16587       fi
16588     fi
16589
16590     # It seems that -bexpall does not export symbols beginning with
16591     # underscore (_), so it is better to generate a list of symbols to export.
16592     always_export_symbols_CXX=yes
16593     if test "$aix_use_runtimelinking" = yes; then
16594       # Warning - without using the other runtime loading flags (-brtl),
16595       # -berok will link without error, but may produce a broken library.
16596       allow_undefined_flag_CXX='-berok'
16597       # Determine the default libpath from the value encoded in an empty executable.
16598       cat >conftest.$ac_ext <<_ACEOF
16599 /* confdefs.h.  */
16600 _ACEOF
16601 cat confdefs.h >>conftest.$ac_ext
16602 cat >>conftest.$ac_ext <<_ACEOF
16603 /* end confdefs.h.  */
16604
16605 int
16606 main ()
16607 {
16608
16609   ;
16610   return 0;
16611 }
16612 _ACEOF
16613 rm -f conftest.$ac_objext conftest$ac_exeext
16614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16615   (eval $ac_link) 2>conftest.er1
16616   ac_status=$?
16617   grep -v '^ *+' conftest.er1 >conftest.err
16618   rm -f conftest.er1
16619   cat conftest.err >&5
16620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16621   (exit $ac_status); } &&
16622          { ac_try='test -z "$ac_cxx_werror_flag"
16623                          || test ! -s conftest.err'
16624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16625   (eval $ac_try) 2>&5
16626   ac_status=$?
16627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16628   (exit $ac_status); }; } &&
16629          { ac_try='test -s conftest$ac_exeext'
16630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16631   (eval $ac_try) 2>&5
16632   ac_status=$?
16633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16634   (exit $ac_status); }; }; then
16635
16636 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16637 }'`
16638 # Check for a 64-bit object if we didn't find anything.
16639 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; }
16640 }'`; fi
16641 else
16642   echo "$as_me: failed program was:" >&5
16643 sed 's/^/| /' conftest.$ac_ext >&5
16644
16645 fi
16646 rm -f conftest.err conftest.$ac_objext \
16647       conftest$ac_exeext conftest.$ac_ext
16648 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16649
16650       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
16651
16652       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"
16653      else
16654       if test "$host_cpu" = ia64; then
16655         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
16656         allow_undefined_flag_CXX="-z nodefs"
16657         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"
16658       else
16659         # Determine the default libpath from the value encoded in an empty executable.
16660         cat >conftest.$ac_ext <<_ACEOF
16661 /* confdefs.h.  */
16662 _ACEOF
16663 cat confdefs.h >>conftest.$ac_ext
16664 cat >>conftest.$ac_ext <<_ACEOF
16665 /* end confdefs.h.  */
16666
16667 int
16668 main ()
16669 {
16670
16671   ;
16672   return 0;
16673 }
16674 _ACEOF
16675 rm -f conftest.$ac_objext conftest$ac_exeext
16676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16677   (eval $ac_link) 2>conftest.er1
16678   ac_status=$?
16679   grep -v '^ *+' conftest.er1 >conftest.err
16680   rm -f conftest.er1
16681   cat conftest.err >&5
16682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16683   (exit $ac_status); } &&
16684          { ac_try='test -z "$ac_cxx_werror_flag"
16685                          || test ! -s conftest.err'
16686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16687   (eval $ac_try) 2>&5
16688   ac_status=$?
16689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16690   (exit $ac_status); }; } &&
16691          { ac_try='test -s conftest$ac_exeext'
16692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16693   (eval $ac_try) 2>&5
16694   ac_status=$?
16695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16696   (exit $ac_status); }; }; then
16697
16698 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16699 }'`
16700 # Check for a 64-bit object if we didn't find anything.
16701 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; }
16702 }'`; fi
16703 else
16704   echo "$as_me: failed program was:" >&5
16705 sed 's/^/| /' conftest.$ac_ext >&5
16706
16707 fi
16708 rm -f conftest.err conftest.$ac_objext \
16709       conftest$ac_exeext conftest.$ac_ext
16710 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16711
16712         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
16713         # Warning - without using the other run time loading flags,
16714         # -berok will link without error, but may produce a broken library.
16715         no_undefined_flag_CXX=' ${wl}-bernotok'
16716         allow_undefined_flag_CXX=' ${wl}-berok'
16717         # -bexpall does not export symbols beginning with underscore (_)
16718         always_export_symbols_CXX=yes
16719         # Exported symbols can be pulled into shared objects from archives
16720         whole_archive_flag_spec_CXX=' '
16721         archive_cmds_need_lc_CXX=yes
16722         # This is similar to how AIX traditionally builds it's shared libraries.
16723         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'
16724       fi
16725     fi
16726     ;;
16727   chorus*)
16728     case $cc_basename in
16729       *)
16730         # FIXME: insert proper C++ library support
16731         ld_shlibs_CXX=no
16732         ;;
16733     esac
16734     ;;
16735
16736
16737   cygwin* | mingw* | pw32*)
16738     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
16739     # as there is no search path for DLLs.
16740     hardcode_libdir_flag_spec_CXX='-L$libdir'
16741     allow_undefined_flag_CXX=unsupported
16742     always_export_symbols_CXX=no
16743     enable_shared_with_static_runtimes_CXX=yes
16744
16745     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16746       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'
16747       # If the export-symbols file already is a .def file (1st line
16748       # is EXPORTS), use it as is; otherwise, prepend...
16749       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16750         cp $export_symbols $output_objdir/$soname.def;
16751       else
16752         echo EXPORTS > $output_objdir/$soname.def;
16753         cat $export_symbols >> $output_objdir/$soname.def;
16754       fi~
16755       $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'
16756     else
16757       ld_shlibs_CXX=no
16758     fi
16759   ;;
16760       darwin* | rhapsody*)
16761         case "$host_os" in
16762         rhapsody* | darwin1.[012])
16763          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
16764          ;;
16765        *) # Darwin 1.3 on
16766          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16767            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16768          else
16769            case ${MACOSX_DEPLOYMENT_TARGET} in
16770              10.[012])
16771                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16772                ;;
16773              10.*)
16774                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
16775                ;;
16776            esac
16777          fi
16778          ;;
16779         esac
16780       archive_cmds_need_lc_CXX=no
16781       hardcode_direct_CXX=no
16782       hardcode_automatic_CXX=yes
16783       hardcode_shlibpath_var_CXX=unsupported
16784       whole_archive_flag_spec_CXX=''
16785       link_all_deplibs_CXX=yes
16786
16787     if test "$GXX" = yes ; then
16788       lt_int_apple_cc_single_mod=no
16789       output_verbose_link_cmd='echo'
16790       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
16791        lt_int_apple_cc_single_mod=yes
16792       fi
16793       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16794        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16795       else
16796           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'
16797         fi
16798         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16799         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16800           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16801             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}'
16802           else
16803             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}'
16804           fi
16805             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}'
16806       else
16807       case $cc_basename in
16808         xlc*)
16809          output_verbose_link_cmd='echo'
16810           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'
16811           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16812           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16813           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}'
16814           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}'
16815           ;;
16816        *)
16817          ld_shlibs_CXX=no
16818           ;;
16819       esac
16820       fi
16821         ;;
16822
16823   dgux*)
16824     case $cc_basename in
16825       ec++*)
16826         # FIXME: insert proper C++ library support
16827         ld_shlibs_CXX=no
16828         ;;
16829       ghcx*)
16830         # Green Hills C++ Compiler
16831         # FIXME: insert proper C++ library support
16832         ld_shlibs_CXX=no
16833         ;;
16834       *)
16835         # FIXME: insert proper C++ library support
16836         ld_shlibs_CXX=no
16837         ;;
16838     esac
16839     ;;
16840   freebsd[12]*)
16841     # C++ shared libraries reported to be fairly broken before switch to ELF
16842     ld_shlibs_CXX=no
16843     ;;
16844   freebsd-elf*)
16845     archive_cmds_need_lc_CXX=no
16846     ;;
16847   freebsd* | kfreebsd*-gnu | dragonfly*)
16848     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
16849     # conventions
16850     ld_shlibs_CXX=yes
16851     ;;
16852   gnu*)
16853     ;;
16854   hpux9*)
16855     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16856     hardcode_libdir_separator_CXX=:
16857     export_dynamic_flag_spec_CXX='${wl}-E'
16858     hardcode_direct_CXX=yes
16859     hardcode_minus_L_CXX=yes # Not in the search PATH,
16860                                 # but as the default
16861                                 # location of the library.
16862
16863     case $cc_basename in
16864     CC*)
16865       # FIXME: insert proper C++ library support
16866       ld_shlibs_CXX=no
16867       ;;
16868     aCC*)
16869       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'
16870       # Commands to make compiler produce verbose output that lists
16871       # what "hidden" libraries, object files and flags are used when
16872       # linking a shared library.
16873       #
16874       # There doesn't appear to be a way to prevent this compiler from
16875       # explicitly linking system object files so we need to strip them
16876       # from the output so that they don't get included in the library
16877       # dependencies.
16878       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'
16879       ;;
16880     *)
16881       if test "$GXX" = yes; then
16882         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'
16883       else
16884         # FIXME: insert proper C++ library support
16885         ld_shlibs_CXX=no
16886       fi
16887       ;;
16888     esac
16889     ;;
16890   hpux10*|hpux11*)
16891     if test $with_gnu_ld = no; then
16892       case "$host_cpu" in
16893       hppa*64*)
16894         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16895         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
16896         hardcode_libdir_separator_CXX=:
16897         ;;
16898       ia64*)
16899         hardcode_libdir_flag_spec_CXX='-L$libdir'
16900         ;;
16901       *)
16902         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16903         hardcode_libdir_separator_CXX=:
16904         export_dynamic_flag_spec_CXX='${wl}-E'
16905         ;;
16906       esac
16907     fi
16908     case "$host_cpu" in
16909     hppa*64*)
16910       hardcode_direct_CXX=no
16911       hardcode_shlibpath_var_CXX=no
16912       ;;
16913     ia64*)
16914       hardcode_direct_CXX=no
16915       hardcode_shlibpath_var_CXX=no
16916       hardcode_minus_L_CXX=yes # Not in the search PATH,
16917                                               # but as the default
16918                                               # location of the library.
16919       ;;
16920     *)
16921       hardcode_direct_CXX=yes
16922       hardcode_minus_L_CXX=yes # Not in the search PATH,
16923                                               # but as the default
16924                                               # location of the library.
16925       ;;
16926     esac
16927
16928     case $cc_basename in
16929       CC*)
16930         # FIXME: insert proper C++ library support
16931         ld_shlibs_CXX=no
16932         ;;
16933       aCC*)
16934         case "$host_cpu" in
16935         hppa*64*|ia64*)
16936           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
16937           ;;
16938         *)
16939           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16940           ;;
16941         esac
16942         # Commands to make compiler produce verbose output that lists
16943         # what "hidden" libraries, object files and flags are used when
16944         # linking a shared library.
16945         #
16946         # There doesn't appear to be a way to prevent this compiler from
16947         # explicitly linking system object files so we need to strip them
16948         # from the output so that they don't get included in the library
16949         # dependencies.
16950         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'
16951         ;;
16952       *)
16953         if test "$GXX" = yes; then
16954           if test $with_gnu_ld = no; then
16955             case "$host_cpu" in
16956             ia64*|hppa*64*)
16957               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
16958               ;;
16959             *)
16960               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'
16961               ;;
16962             esac
16963           fi
16964         else
16965           # FIXME: insert proper C++ library support
16966           ld_shlibs_CXX=no
16967         fi
16968         ;;
16969     esac
16970     ;;
16971   irix5* | irix6*)
16972     case $cc_basename in
16973       CC*)
16974         # SGI C++
16975         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'
16976
16977         # Archives containing C++ object files must be created using
16978         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
16979         # necessary to make sure instantiated templates are included
16980         # in the archive.
16981         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
16982         ;;
16983       *)
16984         if test "$GXX" = yes; then
16985           if test "$with_gnu_ld" = no; then
16986             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'
16987           else
16988             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'
16989           fi
16990         fi
16991         link_all_deplibs_CXX=yes
16992         ;;
16993     esac
16994     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16995     hardcode_libdir_separator_CXX=:
16996     ;;
16997   linux*)
16998     case $cc_basename in
16999       KCC*)
17000         # Kuck and Associates, Inc. (KAI) C++ Compiler
17001
17002         # KCC will only create a shared library if the output file
17003         # ends with ".so" (or ".sl" for HP-UX), so rename the library
17004         # to its proper name (with version) after linking.
17005         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'
17006         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'
17007         # Commands to make compiler produce verbose output that lists
17008         # what "hidden" libraries, object files and flags are used when
17009         # linking a shared library.
17010         #
17011         # There doesn't appear to be a way to prevent this compiler from
17012         # explicitly linking system object files so we need to strip them
17013         # from the output so that they don't get included in the library
17014         # dependencies.
17015         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'
17016
17017         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
17018         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17019
17020         # Archives containing C++ object files must be created using
17021         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
17022         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
17023         ;;
17024       icpc*)
17025         # Intel C++
17026         with_gnu_ld=yes
17027         # version 8.0 and above of icpc choke on multiply defined symbols
17028         # if we add $predep_objects and $postdep_objects, however 7.1 and
17029         # earlier do not add the objects themselves.
17030         case `$CC -V 2>&1` in
17031         *"Version 7."*)
17032           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17033           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'
17034           ;;
17035         *)  # Version 8.0 or newer
17036           tmp_idyn=
17037           case $host_cpu in
17038             ia64*) tmp_idyn=' -i_dynamic';;
17039           esac
17040           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17041           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'
17042           ;;
17043         esac
17044         archive_cmds_need_lc_CXX=no
17045         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17046         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17047         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17048         ;;
17049       pgCC*)
17050         # Portland Group C++ compiler
17051         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
17052         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'
17053
17054         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
17055         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17056         whole_archive_flag_spec_CXX=''
17057         ;;
17058       cxx*)
17059         # Compaq C++
17060         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17061         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'
17062
17063         runpath_var=LD_RUN_PATH
17064         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17065         hardcode_libdir_separator_CXX=:
17066
17067         # Commands to make compiler produce verbose output that lists
17068         # what "hidden" libraries, object files and flags are used when
17069         # linking a shared library.
17070         #
17071         # There doesn't appear to be a way to prevent this compiler from
17072         # explicitly linking system object files so we need to strip them
17073         # from the output so that they don't get included in the library
17074         # dependencies.
17075         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'
17076         ;;
17077     esac
17078     ;;
17079   lynxos*)
17080     # FIXME: insert proper C++ library support
17081     ld_shlibs_CXX=no
17082     ;;
17083   m88k*)
17084     # FIXME: insert proper C++ library support
17085     ld_shlibs_CXX=no
17086     ;;
17087   mvs*)
17088     case $cc_basename in
17089       cxx*)
17090         # FIXME: insert proper C++ library support
17091         ld_shlibs_CXX=no
17092         ;;
17093       *)
17094         # FIXME: insert proper C++ library support
17095         ld_shlibs_CXX=no
17096         ;;
17097     esac
17098     ;;
17099   netbsd*)
17100     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17101       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
17102       wlarc=
17103       hardcode_libdir_flag_spec_CXX='-R$libdir'
17104       hardcode_direct_CXX=yes
17105       hardcode_shlibpath_var_CXX=no
17106     fi
17107     # Workaround some broken pre-1.5 toolchains
17108     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
17109     ;;
17110   openbsd2*)
17111     # C++ shared libraries are fairly broken
17112     ld_shlibs_CXX=no
17113     ;;
17114   openbsd*)
17115     hardcode_direct_CXX=yes
17116     hardcode_shlibpath_var_CXX=no
17117     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17118     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17119     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17120       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
17121       export_dynamic_flag_spec_CXX='${wl}-E'
17122       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17123     fi
17124     output_verbose_link_cmd='echo'
17125     ;;
17126   osf3*)
17127     case $cc_basename in
17128       KCC*)
17129         # Kuck and Associates, Inc. (KAI) C++ Compiler
17130
17131         # KCC will only create a shared library if the output file
17132         # ends with ".so" (or ".sl" for HP-UX), so rename the library
17133         # to its proper name (with version) after linking.
17134         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'
17135
17136         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17137         hardcode_libdir_separator_CXX=:
17138
17139         # Archives containing C++ object files must be created using
17140         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
17141         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
17142
17143         ;;
17144       RCC*)
17145         # Rational C++ 2.4.1
17146         # FIXME: insert proper C++ library support
17147         ld_shlibs_CXX=no
17148         ;;
17149       cxx*)
17150         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
17151         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'
17152
17153         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17154         hardcode_libdir_separator_CXX=:
17155
17156         # Commands to make compiler produce verbose output that lists
17157         # what "hidden" libraries, object files and flags are used when
17158         # linking a shared library.
17159         #
17160         # There doesn't appear to be a way to prevent this compiler from
17161         # explicitly linking system object files so we need to strip them
17162         # from the output so that they don't get included in the library
17163         # dependencies.
17164         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'
17165         ;;
17166       *)
17167         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17168           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
17169           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'
17170
17171           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17172           hardcode_libdir_separator_CXX=:
17173
17174           # Commands to make compiler produce verbose output that lists
17175           # what "hidden" libraries, object files and flags are used when
17176           # linking a shared library.
17177           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
17178
17179         else
17180           # FIXME: insert proper C++ library support
17181           ld_shlibs_CXX=no
17182         fi
17183         ;;
17184     esac
17185     ;;
17186   osf4* | osf5*)
17187     case $cc_basename in
17188       KCC*)
17189         # Kuck and Associates, Inc. (KAI) C++ Compiler
17190
17191         # KCC will only create a shared library if the output file
17192         # ends with ".so" (or ".sl" for HP-UX), so rename the library
17193         # to its proper name (with version) after linking.
17194         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'
17195
17196         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17197         hardcode_libdir_separator_CXX=:
17198
17199         # Archives containing C++ object files must be created using
17200         # the KAI C++ compiler.
17201         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
17202         ;;
17203       RCC*)
17204         # Rational C++ 2.4.1
17205         # FIXME: insert proper C++ library support
17206         ld_shlibs_CXX=no
17207         ;;
17208       cxx*)
17209         allow_undefined_flag_CXX=' -expect_unresolved \*'
17210         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'
17211         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
17212           echo "-hidden">> $lib.exp~
17213           $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~
17214           $rm $lib.exp'
17215
17216         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17217         hardcode_libdir_separator_CXX=:
17218
17219         # Commands to make compiler produce verbose output that lists
17220         # what "hidden" libraries, object files and flags are used when
17221         # linking a shared library.
17222         #
17223         # There doesn't appear to be a way to prevent this compiler from
17224         # explicitly linking system object files so we need to strip them
17225         # from the output so that they don't get included in the library
17226         # dependencies.
17227         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'
17228         ;;
17229       *)
17230         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17231           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
17232          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'
17233
17234           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17235           hardcode_libdir_separator_CXX=:
17236
17237           # Commands to make compiler produce verbose output that lists
17238           # what "hidden" libraries, object files and flags are used when
17239           # linking a shared library.
17240           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
17241
17242         else
17243           # FIXME: insert proper C++ library support
17244           ld_shlibs_CXX=no
17245         fi
17246         ;;
17247     esac
17248     ;;
17249   psos*)
17250     # FIXME: insert proper C++ library support
17251     ld_shlibs_CXX=no
17252     ;;
17253   sco*)
17254     archive_cmds_need_lc_CXX=no
17255     case $cc_basename in
17256       CC*)
17257         # FIXME: insert proper C++ library support
17258         ld_shlibs_CXX=no
17259         ;;
17260       *)
17261         # FIXME: insert proper C++ library support
17262         ld_shlibs_CXX=no
17263         ;;
17264     esac
17265     ;;
17266   sunos4*)
17267     case $cc_basename in
17268       CC*)
17269         # Sun C++ 4.x
17270         # FIXME: insert proper C++ library support
17271         ld_shlibs_CXX=no
17272         ;;
17273       lcc*)
17274         # Lucid
17275         # FIXME: insert proper C++ library support
17276         ld_shlibs_CXX=no
17277         ;;
17278       *)
17279         # FIXME: insert proper C++ library support
17280         ld_shlibs_CXX=no
17281         ;;
17282     esac
17283     ;;
17284   solaris*)
17285     case $cc_basename in
17286       CC*)
17287         # Sun C++ 4.2, 5.x and Centerline C++
17288         no_undefined_flag_CXX=' -zdefs'
17289         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17290         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17291         $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
17292
17293         hardcode_libdir_flag_spec_CXX='-R$libdir'
17294         hardcode_shlibpath_var_CXX=no
17295         case $host_os in
17296           solaris2.[0-5] | solaris2.[0-5].*) ;;
17297           *)
17298             # The C++ compiler is used as linker so we must use $wl
17299             # flag to pass the commands to the underlying system
17300             # linker. We must also pass each convience library through
17301             # to the system linker between allextract/defaultextract.
17302             # The C++ compiler will combine linker options so we
17303             # cannot just pass the convience library names through
17304             # without $wl.
17305             # Supported since Solaris 2.6 (maybe 2.5.1?)
17306             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'
17307             ;;
17308         esac
17309         link_all_deplibs_CXX=yes
17310
17311         # Commands to make compiler produce verbose output that lists
17312         # what "hidden" libraries, object files and flags are used when
17313         # linking a shared library.
17314         #
17315         # There doesn't appear to be a way to prevent this compiler from
17316         # explicitly linking system object files so we need to strip them
17317         # from the output so that they don't get included in the library
17318         # dependencies.
17319         output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
17320
17321         # Archives containing C++ object files must be created using
17322         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
17323         # necessary to make sure instantiated templates are included
17324         # in the archive.
17325         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17326         ;;
17327       gcx*)
17328         # Green Hills C++ Compiler
17329         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17330
17331         # The C++ compiler must be used to create the archive.
17332         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
17333         ;;
17334       *)
17335         # GNU C++ compiler with Solaris linker
17336         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17337           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
17338           if $CC --version | grep -v '^2\.7' > /dev/null; then
17339             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17340             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17341                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
17342
17343             # Commands to make compiler produce verbose output that lists
17344             # what "hidden" libraries, object files and flags are used when
17345             # linking a shared library.
17346             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
17347           else
17348             # g++ 2.7 appears to require `-G' NOT `-shared' on this
17349             # platform.
17350             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17351             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17352                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
17353
17354             # Commands to make compiler produce verbose output that lists
17355             # what "hidden" libraries, object files and flags are used when
17356             # linking a shared library.
17357             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
17358           fi
17359
17360           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
17361         fi
17362         ;;
17363     esac
17364     ;;
17365   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
17366     archive_cmds_need_lc_CXX=no
17367     ;;
17368   tandem*)
17369     case $cc_basename in
17370       NCC*)
17371         # NonStop-UX NCC 3.20
17372         # FIXME: insert proper C++ library support
17373         ld_shlibs_CXX=no
17374         ;;
17375       *)
17376         # FIXME: insert proper C++ library support
17377         ld_shlibs_CXX=no
17378         ;;
17379     esac
17380     ;;
17381   vxworks*)
17382     # FIXME: insert proper C++ library support
17383     ld_shlibs_CXX=no
17384     ;;
17385   *)
17386     # FIXME: insert proper C++ library support
17387     ld_shlibs_CXX=no
17388     ;;
17389 esac
17390 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
17391 echo "${ECHO_T}$ld_shlibs_CXX" >&6
17392 test "$ld_shlibs_CXX" = no && can_build_shared=no
17393
17394 GCC_CXX="$GXX"
17395 LD_CXX="$LD"
17396
17397 ## CAVEAT EMPTOR:
17398 ## There is no encapsulation within the following macros, do not change
17399 ## the running order or otherwise move them around unless you know exactly
17400 ## what you are doing...
17401
17402 cat > conftest.$ac_ext <<EOF
17403 class Foo
17404 {
17405 public:
17406   Foo (void) { a = 0; }
17407 private:
17408   int a;
17409 };
17410 EOF
17411
17412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17413   (eval $ac_compile) 2>&5
17414   ac_status=$?
17415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17416   (exit $ac_status); }; then
17417   # Parse the compiler output and extract the necessary
17418   # objects, libraries and library flags.
17419
17420   # Sentinel used to keep track of whether or not we are before
17421   # the conftest object file.
17422   pre_test_object_deps_done=no
17423
17424   # The `*' in the case matches for architectures that use `case' in
17425   # $output_verbose_cmd can trigger glob expansion during the loop
17426   # eval without this substitution.
17427   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
17428
17429   for p in `eval $output_verbose_link_cmd`; do
17430     case $p in
17431
17432     -L* | -R* | -l*)
17433        # Some compilers place space between "-{L,R}" and the path.
17434        # Remove the space.
17435        if test $p = "-L" \
17436           || test $p = "-R"; then
17437          prev=$p
17438          continue
17439        else
17440          prev=
17441        fi
17442
17443        if test "$pre_test_object_deps_done" = no; then
17444          case $p in
17445          -L* | -R*)
17446            # Internal compiler library paths should come after those
17447            # provided the user.  The postdeps already come after the
17448            # user supplied libs so there is no need to process them.
17449            if test -z "$compiler_lib_search_path_CXX"; then
17450              compiler_lib_search_path_CXX="${prev}${p}"
17451            else
17452              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
17453            fi
17454            ;;
17455          # The "-l" case would never come before the object being
17456          # linked, so don't bother handling this case.
17457          esac
17458        else
17459          if test -z "$postdeps_CXX"; then
17460            postdeps_CXX="${prev}${p}"
17461          else
17462            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
17463          fi
17464        fi
17465        ;;
17466
17467     *.$objext)
17468        # This assumes that the test object file only shows up
17469        # once in the compiler output.
17470        if test "$p" = "conftest.$objext"; then
17471          pre_test_object_deps_done=yes
17472          continue
17473        fi
17474
17475        if test "$pre_test_object_deps_done" = no; then
17476          if test -z "$predep_objects_CXX"; then
17477            predep_objects_CXX="$p"
17478          else
17479            predep_objects_CXX="$predep_objects_CXX $p"
17480          fi
17481        else
17482          if test -z "$postdep_objects_CXX"; then
17483            postdep_objects_CXX="$p"
17484          else
17485            postdep_objects_CXX="$postdep_objects_CXX $p"
17486          fi
17487        fi
17488        ;;
17489
17490     *) ;; # Ignore the rest.
17491
17492     esac
17493   done
17494
17495   # Clean up.
17496   rm -f a.out a.exe
17497 else
17498   echo "libtool.m4: error: problem compiling CXX test program"
17499 fi
17500
17501 $rm -f confest.$objext
17502
17503 case " $postdeps_CXX " in
17504 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
17505 esac
17506
17507 lt_prog_compiler_wl_CXX=
17508 lt_prog_compiler_pic_CXX=
17509 lt_prog_compiler_static_CXX=
17510
17511 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17512 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
17513
17514   # C++ specific cases for pic, static, wl, etc.
17515   if test "$GXX" = yes; then
17516     lt_prog_compiler_wl_CXX='-Wl,'
17517     lt_prog_compiler_static_CXX='-static'
17518
17519     case $host_os in
17520     aix*)
17521       # All AIX code is PIC.
17522       if test "$host_cpu" = ia64; then
17523         # AIX 5 now supports IA64 processor
17524         lt_prog_compiler_static_CXX='-Bstatic'
17525       fi
17526       ;;
17527     amigaos*)
17528       # FIXME: we need at least 68020 code to build shared libraries, but
17529       # adding the `-m68020' flag to GCC prevents building anything better,
17530       # like `-m68040'.
17531       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
17532       ;;
17533     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17534       # PIC is the default for these OSes.
17535       ;;
17536     mingw* | os2* | pw32*)
17537       # This hack is so that the source file can tell whether it is being
17538       # built for inclusion in a dll (and should export symbols for example).
17539       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
17540       ;;
17541     darwin* | rhapsody*)
17542       # PIC is the default on this platform
17543       # Common symbols not allowed in MH_DYLIB files
17544       lt_prog_compiler_pic_CXX='-fno-common'
17545       ;;
17546     *djgpp*)
17547       # DJGPP does not support shared libraries at all
17548       lt_prog_compiler_pic_CXX=
17549       ;;
17550     sysv4*MP*)
17551       if test -d /usr/nec; then
17552         lt_prog_compiler_pic_CXX=-Kconform_pic
17553       fi
17554       ;;
17555     hpux*)
17556       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17557       # not for PA HP-UX.
17558       case "$host_cpu" in
17559       hppa*64*|ia64*)
17560         ;;
17561       *)
17562         lt_prog_compiler_pic_CXX='-fPIC'
17563         ;;
17564       esac
17565       ;;
17566     *)
17567       lt_prog_compiler_pic_CXX='-fPIC'
17568       ;;
17569     esac
17570   else
17571     case $host_os in
17572       aix4* | aix5*)
17573         # All AIX code is PIC.
17574         if test "$host_cpu" = ia64; then
17575           # AIX 5 now supports IA64 processor
17576           lt_prog_compiler_static_CXX='-Bstatic'
17577         else
17578           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
17579         fi
17580         ;;
17581       chorus*)
17582         case $cc_basename in
17583         cxch68*)
17584           # Green Hills C++ Compiler
17585           # _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"
17586           ;;
17587         esac
17588         ;;
17589        darwin*)
17590          # PIC is the default on this platform
17591          # Common symbols not allowed in MH_DYLIB files
17592          case $cc_basename in
17593            xlc*)
17594            lt_prog_compiler_pic_CXX='-qnocommon'
17595            lt_prog_compiler_wl_CXX='-Wl,'
17596            ;;
17597          esac
17598        ;;
17599       dgux*)
17600         case $cc_basename in
17601           ec++*)
17602             lt_prog_compiler_pic_CXX='-KPIC'
17603             ;;
17604           ghcx*)
17605             # Green Hills C++ Compiler
17606             lt_prog_compiler_pic_CXX='-pic'
17607             ;;
17608           *)
17609             ;;
17610         esac
17611         ;;
17612       freebsd* | kfreebsd*-gnu | dragonfly*)
17613         # FreeBSD uses GNU C++
17614         ;;
17615       hpux9* | hpux10* | hpux11*)
17616         case $cc_basename in
17617           CC*)
17618             lt_prog_compiler_wl_CXX='-Wl,'
17619             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
17620             if test "$host_cpu" != ia64; then
17621               lt_prog_compiler_pic_CXX='+Z'
17622             fi
17623             ;;
17624           aCC*)
17625             lt_prog_compiler_wl_CXX='-Wl,'
17626             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
17627             case "$host_cpu" in
17628             hppa*64*|ia64*)
17629               # +Z the default
17630               ;;
17631             *)
17632               lt_prog_compiler_pic_CXX='+Z'
17633               ;;
17634             esac
17635             ;;
17636           *)
17637             ;;
17638         esac
17639         ;;
17640       irix5* | irix6* | nonstopux*)
17641         case $cc_basename in
17642           CC*)
17643             lt_prog_compiler_wl_CXX='-Wl,'
17644             lt_prog_compiler_static_CXX='-non_shared'
17645             # CC pic flag -KPIC is the default.
17646             ;;
17647           *)
17648             ;;
17649         esac
17650         ;;
17651       linux*)
17652         case $cc_basename in
17653           KCC*)
17654             # KAI C++ Compiler
17655             lt_prog_compiler_wl_CXX='--backend -Wl,'
17656             lt_prog_compiler_pic_CXX='-fPIC'
17657             ;;
17658           icpc* | ecpc*)
17659             # Intel C++
17660             lt_prog_compiler_wl_CXX='-Wl,'
17661             lt_prog_compiler_pic_CXX='-KPIC'
17662             lt_prog_compiler_static_CXX='-static'
17663             ;;
17664           pgCC*)
17665             # Portland Group C++ compiler.
17666             lt_prog_compiler_wl_CXX='-Wl,'
17667             lt_prog_compiler_pic_CXX='-fpic'
17668             lt_prog_compiler_static_CXX='-static'
17669             ;;
17670           cxx*)
17671             # Compaq C++
17672             # Make sure the PIC flag is empty.  It appears that all Alpha
17673             # Linux and Compaq Tru64 Unix objects are PIC.
17674             lt_prog_compiler_pic_CXX=
17675             lt_prog_compiler_static_CXX='-non_shared'
17676             ;;
17677           *)
17678             ;;
17679         esac
17680         ;;
17681       lynxos*)
17682         ;;
17683       m88k*)
17684         ;;
17685       mvs*)
17686         case $cc_basename in
17687           cxx*)
17688             lt_prog_compiler_pic_CXX='-W c,exportall'
17689             ;;
17690           *)
17691             ;;
17692         esac
17693         ;;
17694       netbsd*)
17695         ;;
17696       osf3* | osf4* | osf5*)
17697         case $cc_basename in
17698           KCC*)
17699             lt_prog_compiler_wl_CXX='--backend -Wl,'
17700             ;;
17701           RCC*)
17702             # Rational C++ 2.4.1
17703             lt_prog_compiler_pic_CXX='-pic'
17704             ;;
17705           cxx*)
17706             # Digital/Compaq C++
17707             lt_prog_compiler_wl_CXX='-Wl,'
17708             # Make sure the PIC flag is empty.  It appears that all Alpha
17709             # Linux and Compaq Tru64 Unix objects are PIC.
17710             lt_prog_compiler_pic_CXX=
17711             lt_prog_compiler_static_CXX='-non_shared'
17712             ;;
17713           *)
17714             ;;
17715         esac
17716         ;;
17717       psos*)
17718         ;;
17719       sco*)
17720         case $cc_basename in
17721           CC*)
17722             lt_prog_compiler_pic_CXX='-fPIC'
17723             ;;
17724           *)
17725             ;;
17726         esac
17727         ;;
17728       solaris*)
17729         case $cc_basename in
17730           CC*)
17731             # Sun C++ 4.2, 5.x and Centerline C++
17732             lt_prog_compiler_pic_CXX='-KPIC'
17733             lt_prog_compiler_static_CXX='-Bstatic'
17734             lt_prog_compiler_wl_CXX='-Qoption ld '
17735             ;;
17736           gcx*)
17737             # Green Hills C++ Compiler
17738             lt_prog_compiler_pic_CXX='-PIC'
17739             ;;
17740           *)
17741             ;;
17742         esac
17743         ;;
17744       sunos4*)
17745         case $cc_basename in
17746           CC*)
17747             # Sun C++ 4.x
17748             lt_prog_compiler_pic_CXX='-pic'
17749             lt_prog_compiler_static_CXX='-Bstatic'
17750             ;;
17751           lcc*)
17752             # Lucid
17753             lt_prog_compiler_pic_CXX='-pic'
17754             ;;
17755           *)
17756             ;;
17757         esac
17758         ;;
17759       tandem*)
17760         case $cc_basename in
17761           NCC*)
17762             # NonStop-UX NCC 3.20
17763             lt_prog_compiler_pic_CXX='-KPIC'
17764             ;;
17765           *)
17766             ;;
17767         esac
17768         ;;
17769       unixware*)
17770         ;;
17771       vxworks*)
17772         ;;
17773       *)
17774         lt_prog_compiler_can_build_shared_CXX=no
17775         ;;
17776     esac
17777   fi
17778
17779 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
17780 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
17781
17782 #
17783 # Check to make sure the PIC flag actually works.
17784 #
17785 if test -n "$lt_prog_compiler_pic_CXX"; then
17786
17787 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
17788 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
17789 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
17790   echo $ECHO_N "(cached) $ECHO_C" >&6
17791 else
17792   lt_prog_compiler_pic_works_CXX=no
17793   ac_outfile=conftest.$ac_objext
17794    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17795    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
17796    # Insert the option either (1) after the last *FLAGS variable, or
17797    # (2) before a word containing "conftest.", or (3) at the end.
17798    # Note that $ac_compile itself does not contain backslashes and begins
17799    # with a dollar sign (not a hyphen), so the echo should work correctly.
17800    # The option is referenced via a variable to avoid confusing sed.
17801    lt_compile=`echo "$ac_compile" | $SED \
17802    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17803    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17804    -e 's:$: $lt_compiler_flag:'`
17805    (eval echo "\"\$as_me:17805: $lt_compile\"" >&5)
17806    (eval "$lt_compile" 2>conftest.err)
17807    ac_status=$?
17808    cat conftest.err >&5
17809    echo "$as_me:17809: \$? = $ac_status" >&5
17810    if (exit $ac_status) && test -s "$ac_outfile"; then
17811      # The compiler can only warn and ignore the option if not recognized
17812      # So say no if there are warnings other than the usual output.
17813      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
17814      $SED '/^$/d' conftest.err >conftest.er2
17815      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
17816        lt_prog_compiler_pic_works_CXX=yes
17817      fi
17818    fi
17819    $rm conftest*
17820
17821 fi
17822 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
17823 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
17824
17825 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
17826     case $lt_prog_compiler_pic_CXX in
17827      "" | " "*) ;;
17828      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
17829      esac
17830 else
17831     lt_prog_compiler_pic_CXX=
17832      lt_prog_compiler_can_build_shared_CXX=no
17833 fi
17834
17835 fi
17836 case "$host_os" in
17837   # For platforms which do not support PIC, -DPIC is meaningless:
17838   *djgpp*)
17839     lt_prog_compiler_pic_CXX=
17840     ;;
17841   *)
17842     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
17843     ;;
17844 esac
17845
17846 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17847 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
17848 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
17849   echo $ECHO_N "(cached) $ECHO_C" >&6
17850 else
17851   lt_cv_prog_compiler_c_o_CXX=no
17852    $rm -r conftest 2>/dev/null
17853    mkdir conftest
17854    cd conftest
17855    mkdir out
17856    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17857
17858    lt_compiler_flag="-o out/conftest2.$ac_objext"
17859    # Insert the option either (1) after the last *FLAGS variable, or
17860    # (2) before a word containing "conftest.", or (3) at the end.
17861    # Note that $ac_compile itself does not contain backslashes and begins
17862    # with a dollar sign (not a hyphen), so the echo should work correctly.
17863    lt_compile=`echo "$ac_compile" | $SED \
17864    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17865    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17866    -e 's:$: $lt_compiler_flag:'`
17867    (eval echo "\"\$as_me:17867: $lt_compile\"" >&5)
17868    (eval "$lt_compile" 2>out/conftest.err)
17869    ac_status=$?
17870    cat out/conftest.err >&5
17871    echo "$as_me:17871: \$? = $ac_status" >&5
17872    if (exit $ac_status) && test -s out/conftest2.$ac_objext
17873    then
17874      # The compiler can only warn and ignore the option if not recognized
17875      # So say no if there are warnings
17876      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
17877      $SED '/^$/d' out/conftest.err >out/conftest.er2
17878      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17879        lt_cv_prog_compiler_c_o_CXX=yes
17880      fi
17881    fi
17882    chmod u+w .
17883    $rm conftest*
17884    # SGI C++ compiler will create directory out/ii_files/ for
17885    # template instantiation
17886    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17887    $rm out/* && rmdir out
17888    cd ..
17889    rmdir conftest
17890    $rm conftest*
17891
17892 fi
17893 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17894 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
17895
17896
17897 hard_links="nottested"
17898 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
17899   # do not overwrite the value of need_locks provided by the user
17900   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17901 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
17902   hard_links=yes
17903   $rm conftest*
17904   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17905   touch conftest.a
17906   ln conftest.a conftest.b 2>&5 || hard_links=no
17907   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17908   echo "$as_me:$LINENO: result: $hard_links" >&5
17909 echo "${ECHO_T}$hard_links" >&6
17910   if test "$hard_links" = no; then
17911     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17912 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17913     need_locks=warn
17914   fi
17915 else
17916   need_locks=no
17917 fi
17918
17919 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17920 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
17921
17922   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17923   case $host_os in
17924   aix4* | aix5*)
17925     # If we're using GNU nm, then we don't want the "-C" option.
17926     # -C means demangle to AIX nm, but means don't demangle with GNU nm
17927     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17928       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'
17929     else
17930       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'
17931     fi
17932     ;;
17933   pw32*)
17934     export_symbols_cmds_CXX="$ltdll_cmds"
17935   ;;
17936   cygwin* | mingw*)
17937     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'
17938   ;;
17939   *)
17940     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17941   ;;
17942   esac
17943
17944 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
17945 echo "${ECHO_T}$ld_shlibs_CXX" >&6
17946 test "$ld_shlibs_CXX" = no && can_build_shared=no
17947
17948 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17949 if test "$GCC" = yes; then
17950   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17951 fi
17952
17953 #
17954 # Do we need to explicitly link libc?
17955 #
17956 case "x$archive_cmds_need_lc_CXX" in
17957 x|xyes)
17958   # Assume -lc should be added
17959   archive_cmds_need_lc_CXX=yes
17960
17961   if test "$enable_shared" = yes && test "$GCC" = yes; then
17962     case $archive_cmds_CXX in
17963     *'~'*)
17964       # FIXME: we may have to deal with multi-command sequences.
17965       ;;
17966     '$CC '*)
17967       # Test whether the compiler implicitly links with -lc since on some
17968       # systems, -lgcc has to come before -lc. If gcc already passes -lc
17969       # to ld, don't add -lc before -lgcc.
17970       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17971 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17972       $rm conftest*
17973       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17974
17975       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17976   (eval $ac_compile) 2>&5
17977   ac_status=$?
17978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17979   (exit $ac_status); } 2>conftest.err; then
17980         soname=conftest
17981         lib=conftest
17982         libobjs=conftest.$ac_objext
17983         deplibs=
17984         wl=$lt_prog_compiler_wl_CXX
17985         compiler_flags=-v
17986         linker_flags=-v
17987         verstring=
17988         output_objdir=.
17989         libname=conftest
17990         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
17991         allow_undefined_flag_CXX=
17992         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17993   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17994   ac_status=$?
17995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17996   (exit $ac_status); }
17997         then
17998           archive_cmds_need_lc_CXX=no
17999         else
18000           archive_cmds_need_lc_CXX=yes
18001         fi
18002         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
18003       else
18004         cat conftest.err 1>&5
18005       fi
18006       $rm conftest*
18007       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
18008 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
18009       ;;
18010     esac
18011   fi
18012   ;;
18013 esac
18014
18015 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18016 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
18017 library_names_spec=
18018 libname_spec='lib$name'
18019 soname_spec=
18020 shrext_cmds=".so"
18021 postinstall_cmds=
18022 postuninstall_cmds=
18023 finish_cmds=
18024 finish_eval=
18025 shlibpath_var=
18026 shlibpath_overrides_runpath=unknown
18027 version_type=none
18028 dynamic_linker="$host_os ld.so"
18029 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18030 if test "$GCC" = yes; then
18031   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18032   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18033     # if the path contains ";" then we assume it to be the separator
18034     # otherwise default to the standard path separator (i.e. ":") - it is
18035     # assumed that no part of a normal pathname contains ";" but that should
18036     # okay in the real world where ";" in dirpaths is itself problematic.
18037     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18038   else
18039     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18040   fi
18041 else
18042   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18043 fi
18044 need_lib_prefix=unknown
18045 hardcode_into_libs=no
18046
18047 # when you set need_version to no, make sure it does not cause -set_version
18048 # flags to be left without arguments
18049 need_version=unknown
18050
18051 case $host_os in
18052 aix3*)
18053   version_type=linux
18054   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18055   shlibpath_var=LIBPATH
18056
18057   # AIX 3 has no versioning support, so we append a major version to the name.
18058   soname_spec='${libname}${release}${shared_ext}$major'
18059   ;;
18060
18061 aix4* | aix5*)
18062   version_type=linux
18063   need_lib_prefix=no
18064   need_version=no
18065   hardcode_into_libs=yes
18066   if test "$host_cpu" = ia64; then
18067     # AIX 5 supports IA64
18068     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18069     shlibpath_var=LD_LIBRARY_PATH
18070   else
18071     # With GCC up to 2.95.x, collect2 would create an import file
18072     # for dependence libraries.  The import file would start with
18073     # the line `#! .'.  This would cause the generated library to
18074     # depend on `.', always an invalid library.  This was fixed in
18075     # development snapshots of GCC prior to 3.0.
18076     case $host_os in
18077       aix4 | aix4.[01] | aix4.[01].*)
18078       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18079            echo ' yes '
18080            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18081         :
18082       else
18083         can_build_shared=no
18084       fi
18085       ;;
18086     esac
18087     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18088     # soname into executable. Probably we can add versioning support to
18089     # collect2, so additional links can be useful in future.
18090     if test "$aix_use_runtimelinking" = yes; then
18091       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18092       # instead of lib<name>.a to let people know that these are not
18093       # typical AIX shared libraries.
18094       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18095     else
18096       # We preserve .a as extension for shared libraries through AIX4.2
18097       # and later when we are not doing run time linking.
18098       library_names_spec='${libname}${release}.a $libname.a'
18099       soname_spec='${libname}${release}${shared_ext}$major'
18100     fi
18101     shlibpath_var=LIBPATH
18102   fi
18103   ;;
18104
18105 amigaos*)
18106   library_names_spec='$libname.ixlibrary $libname.a'
18107   # Create ${libname}_ixlibrary.a entries in /sys/libs.
18108   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'
18109   ;;
18110
18111 beos*)
18112   library_names_spec='${libname}${shared_ext}'
18113   dynamic_linker="$host_os ld.so"
18114   shlibpath_var=LIBRARY_PATH
18115   ;;
18116
18117 bsdi[45]*)
18118   version_type=linux
18119   need_version=no
18120   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18121   soname_spec='${libname}${release}${shared_ext}$major'
18122   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18123   shlibpath_var=LD_LIBRARY_PATH
18124   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18125   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18126   # the default ld.so.conf also contains /usr/contrib/lib and
18127   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18128   # libtool to hard-code these into programs
18129   ;;
18130
18131 cygwin* | mingw* | pw32*)
18132   version_type=windows
18133   shrext_cmds=".dll"
18134   need_version=no
18135   need_lib_prefix=no
18136
18137   case $GCC,$host_os in
18138   yes,cygwin* | yes,mingw* | yes,pw32*)
18139     library_names_spec='$libname.dll.a'
18140     # DLL is installed to $(libdir)/../bin by postinstall_cmds
18141     postinstall_cmds='base_file=`basename \${file}`~
18142       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18143       dldir=$destdir/`dirname \$dlpath`~
18144       test -d \$dldir || mkdir -p \$dldir~
18145       $install_prog $dir/$dlname \$dldir/$dlname'
18146     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18147       dlpath=$dir/\$dldll~
18148        $rm \$dlpath'
18149     shlibpath_overrides_runpath=yes
18150
18151     case $host_os in
18152     cygwin*)
18153       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18154       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18155       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18156       ;;
18157     mingw*)
18158       # MinGW DLLs use traditional 'lib' prefix
18159       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18160       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18161       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18162         # It is most probably a Windows format PATH printed by
18163         # mingw gcc, but we are running on Cygwin. Gcc prints its search
18164         # path with ; separators, and with drive letters. We can handle the
18165         # drive letters (cygwin fileutils understands them), so leave them,
18166         # especially as we might pass files found there to a mingw objdump,
18167         # which wouldn't understand a cygwinified path. Ahh.
18168         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18169       else
18170         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18171       fi
18172       ;;
18173     pw32*)
18174       # pw32 DLLs use 'pw' prefix rather than 'lib'
18175       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18176       ;;
18177     esac
18178     ;;
18179
18180   *)
18181     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18182     ;;
18183   esac
18184   dynamic_linker='Win32 ld.exe'
18185   # FIXME: first we should search . and the directory the executable is in
18186   shlibpath_var=PATH
18187   ;;
18188
18189 darwin* | rhapsody*)
18190   dynamic_linker="$host_os dyld"
18191   version_type=darwin
18192   need_lib_prefix=no
18193   need_version=no
18194   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18195   soname_spec='${libname}${release}${major}$shared_ext'
18196   shlibpath_overrides_runpath=yes
18197   shlibpath_var=DYLD_LIBRARY_PATH
18198   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
18199   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18200   if test "$GCC" = yes; then
18201     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"`
18202   else
18203     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18204   fi
18205   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18206   ;;
18207
18208 dgux*)
18209   version_type=linux
18210   need_lib_prefix=no
18211   need_version=no
18212   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18213   soname_spec='${libname}${release}${shared_ext}$major'
18214   shlibpath_var=LD_LIBRARY_PATH
18215   ;;
18216
18217 freebsd1*)
18218   dynamic_linker=no
18219   ;;
18220
18221 kfreebsd*-gnu)
18222   version_type=linux
18223   need_lib_prefix=no
18224   need_version=no
18225   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18226   soname_spec='${libname}${release}${shared_ext}$major'
18227   shlibpath_var=LD_LIBRARY_PATH
18228   shlibpath_overrides_runpath=no
18229   hardcode_into_libs=yes
18230   dynamic_linker='GNU ld.so'
18231   ;;
18232
18233 freebsd* | dragonfly*)
18234   # DragonFly does not have aout.  When/if they implement a new
18235   # versioning mechanism, adjust this.
18236   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
18237   version_type=freebsd-$objformat
18238   case $version_type in
18239     freebsd-elf*)
18240       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18241       need_version=no
18242       need_lib_prefix=no
18243       ;;
18244     freebsd-*)
18245       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18246       need_version=yes
18247       ;;
18248   esac
18249   shlibpath_var=LD_LIBRARY_PATH
18250   case $host_os in
18251   freebsd2*)
18252     shlibpath_overrides_runpath=yes
18253     ;;
18254   freebsd3.[01]* | freebsdelf3.[01]*)
18255     shlibpath_overrides_runpath=yes
18256     hardcode_into_libs=yes
18257     ;;
18258   *) # from 3.2 on
18259     shlibpath_overrides_runpath=no
18260     hardcode_into_libs=yes
18261     ;;
18262   esac
18263   ;;
18264
18265 gnu*)
18266   version_type=linux
18267   need_lib_prefix=no
18268   need_version=no
18269   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18270   soname_spec='${libname}${release}${shared_ext}$major'
18271   shlibpath_var=LD_LIBRARY_PATH
18272   hardcode_into_libs=yes
18273   ;;
18274
18275 hpux9* | hpux10* | hpux11*)
18276   # Give a soname corresponding to the major version so that dld.sl refuses to
18277   # link against other versions.
18278   version_type=sunos
18279   need_lib_prefix=no
18280   need_version=no
18281   case "$host_cpu" in
18282   ia64*)
18283     shrext_cmds='.so'
18284     hardcode_into_libs=yes
18285     dynamic_linker="$host_os dld.so"
18286     shlibpath_var=LD_LIBRARY_PATH
18287     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18288     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18289     soname_spec='${libname}${release}${shared_ext}$major'
18290     if test "X$HPUX_IA64_MODE" = X32; then
18291       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18292     else
18293       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18294     fi
18295     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18296     ;;
18297    hppa*64*)
18298      shrext_cmds='.sl'
18299      hardcode_into_libs=yes
18300      dynamic_linker="$host_os dld.sl"
18301      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18302      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18303      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18304      soname_spec='${libname}${release}${shared_ext}$major'
18305      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18306      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18307      ;;
18308    *)
18309     shrext_cmds='.sl'
18310     dynamic_linker="$host_os dld.sl"
18311     shlibpath_var=SHLIB_PATH
18312     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18313     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18314     soname_spec='${libname}${release}${shared_ext}$major'
18315     ;;
18316   esac
18317   # HP-UX runs *really* slowly unless shared libraries are mode 555.
18318   postinstall_cmds='chmod 555 $lib'
18319   ;;
18320
18321 irix5* | irix6* | nonstopux*)
18322   case $host_os in
18323     nonstopux*) version_type=nonstopux ;;
18324     *)
18325         if test "$lt_cv_prog_gnu_ld" = yes; then
18326                 version_type=linux
18327         else
18328                 version_type=irix
18329         fi ;;
18330   esac
18331   need_lib_prefix=no
18332   need_version=no
18333   soname_spec='${libname}${release}${shared_ext}$major'
18334   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18335   case $host_os in
18336   irix5* | nonstopux*)
18337     libsuff= shlibsuff=
18338     ;;
18339   *)
18340     case $LD in # libtool.m4 will add one of these switches to LD
18341     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18342       libsuff= shlibsuff= libmagic=32-bit;;
18343     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18344       libsuff=32 shlibsuff=N32 libmagic=N32;;
18345     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18346       libsuff=64 shlibsuff=64 libmagic=64-bit;;
18347     *) libsuff= shlibsuff= libmagic=never-match;;
18348     esac
18349     ;;
18350   esac
18351   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18352   shlibpath_overrides_runpath=no
18353   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18354   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18355   hardcode_into_libs=yes
18356   ;;
18357
18358 # No shared lib support for Linux oldld, aout, or coff.
18359 linux*oldld* | linux*aout* | linux*coff*)
18360   dynamic_linker=no
18361   ;;
18362
18363 # This must be Linux ELF.
18364 linux*)
18365   version_type=linux
18366   need_lib_prefix=no
18367   need_version=no
18368   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18369   soname_spec='${libname}${release}${shared_ext}$major'
18370   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18371   shlibpath_var=LD_LIBRARY_PATH
18372   shlibpath_overrides_runpath=no
18373   # This implies no fast_install, which is unacceptable.
18374   # Some rework will be needed to allow for fast_install
18375   # before this can be enabled.
18376   hardcode_into_libs=yes
18377
18378   # find out which ABI we are using
18379   libsuff=
18380   case "$host_cpu" in
18381   x86_64*|s390x*|powerpc64*)
18382     echo '#line 18382 "configure"' > conftest.$ac_ext
18383     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18384   (eval $ac_compile) 2>&5
18385   ac_status=$?
18386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18387   (exit $ac_status); }; then
18388       case `/usr/bin/file conftest.$ac_objext` in
18389       *64-bit*)
18390         libsuff=64
18391         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
18392         ;;
18393       esac
18394     fi
18395     rm -rf conftest*
18396     ;;
18397   esac
18398
18399   # Append ld.so.conf contents to the search path
18400   if test -f /etc/ld.so.conf; then
18401     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/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18402     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
18403   fi
18404
18405   # We used to test for /lib/ld.so.1 and disable shared libraries on
18406   # powerpc, because MkLinux only supported shared libraries with the
18407   # GNU dynamic linker.  Since this was broken with cross compilers,
18408   # most powerpc-linux boxes support dynamic linking these days and
18409   # people can always --disable-shared, the test was removed, and we
18410   # assume the GNU/Linux dynamic linker is in use.
18411   dynamic_linker='GNU/Linux ld.so'
18412   ;;
18413
18414 knetbsd*-gnu)
18415   version_type=linux
18416   need_lib_prefix=no
18417   need_version=no
18418   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18419   soname_spec='${libname}${release}${shared_ext}$major'
18420   shlibpath_var=LD_LIBRARY_PATH
18421   shlibpath_overrides_runpath=no
18422   hardcode_into_libs=yes
18423   dynamic_linker='GNU ld.so'
18424   ;;
18425
18426 netbsd*)
18427   version_type=sunos
18428   need_lib_prefix=no
18429   need_version=no
18430   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18431     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18432     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18433     dynamic_linker='NetBSD (a.out) ld.so'
18434   else
18435     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18436     soname_spec='${libname}${release}${shared_ext}$major'
18437     dynamic_linker='NetBSD ld.elf_so'
18438   fi
18439   shlibpath_var=LD_LIBRARY_PATH
18440   shlibpath_overrides_runpath=yes
18441   hardcode_into_libs=yes
18442   ;;
18443
18444 newsos6)
18445   version_type=linux
18446   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18447   shlibpath_var=LD_LIBRARY_PATH
18448   shlibpath_overrides_runpath=yes
18449   ;;
18450
18451 nto-qnx*)
18452   version_type=linux
18453   need_lib_prefix=no
18454   need_version=no
18455   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18456   soname_spec='${libname}${release}${shared_ext}$major'
18457   shlibpath_var=LD_LIBRARY_PATH
18458   shlibpath_overrides_runpath=yes
18459   ;;
18460
18461 openbsd*)
18462   version_type=sunos
18463   need_lib_prefix=no
18464   need_version=no
18465   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18466   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18467   shlibpath_var=LD_LIBRARY_PATH
18468   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18469     case $host_os in
18470       openbsd2.[89] | openbsd2.[89].*)
18471         shlibpath_overrides_runpath=no
18472         ;;
18473       *)
18474         shlibpath_overrides_runpath=yes
18475         ;;
18476       esac
18477   else
18478     shlibpath_overrides_runpath=yes
18479   fi
18480   ;;
18481
18482 os2*)
18483   libname_spec='$name'
18484   shrext_cmds=".dll"
18485   need_lib_prefix=no
18486   library_names_spec='$libname${shared_ext} $libname.a'
18487   dynamic_linker='OS/2 ld.exe'
18488   shlibpath_var=LIBPATH
18489   ;;
18490
18491 osf3* | osf4* | osf5*)
18492   version_type=osf
18493   need_lib_prefix=no
18494   need_version=no
18495   soname_spec='${libname}${release}${shared_ext}$major'
18496   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18497   shlibpath_var=LD_LIBRARY_PATH
18498   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18499   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18500   ;;
18501
18502 sco3.2v5*)
18503   version_type=osf
18504   soname_spec='${libname}${release}${shared_ext}$major'
18505   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18506   shlibpath_var=LD_LIBRARY_PATH
18507   ;;
18508
18509 solaris*)
18510   version_type=linux
18511   need_lib_prefix=no
18512   need_version=no
18513   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18514   soname_spec='${libname}${release}${shared_ext}$major'
18515   shlibpath_var=LD_LIBRARY_PATH
18516   shlibpath_overrides_runpath=yes
18517   hardcode_into_libs=yes
18518   # ldd complains unless libraries are executable
18519   postinstall_cmds='chmod +x $lib'
18520   ;;
18521
18522 sunos4*)
18523   version_type=sunos
18524   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18525   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18526   shlibpath_var=LD_LIBRARY_PATH
18527   shlibpath_overrides_runpath=yes
18528   if test "$with_gnu_ld" = yes; then
18529     need_lib_prefix=no
18530   fi
18531   need_version=yes
18532   ;;
18533
18534 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18535   version_type=linux
18536   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18537   soname_spec='${libname}${release}${shared_ext}$major'
18538   shlibpath_var=LD_LIBRARY_PATH
18539   case $host_vendor in
18540     sni)
18541       shlibpath_overrides_runpath=no
18542       need_lib_prefix=no
18543       export_dynamic_flag_spec='${wl}-Blargedynsym'
18544       runpath_var=LD_RUN_PATH
18545       ;;
18546     siemens)
18547       need_lib_prefix=no
18548       ;;
18549     motorola)
18550       need_lib_prefix=no
18551       need_version=no
18552       shlibpath_overrides_runpath=no
18553       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18554       ;;
18555   esac
18556   ;;
18557
18558 sysv4*MP*)
18559   if test -d /usr/nec ;then
18560     version_type=linux
18561     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18562     soname_spec='$libname${shared_ext}.$major'
18563     shlibpath_var=LD_LIBRARY_PATH
18564   fi
18565   ;;
18566
18567 uts4*)
18568   version_type=linux
18569   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18570   soname_spec='${libname}${release}${shared_ext}$major'
18571   shlibpath_var=LD_LIBRARY_PATH
18572   ;;
18573
18574 *)
18575   dynamic_linker=no
18576   ;;
18577 esac
18578 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18579 echo "${ECHO_T}$dynamic_linker" >&6
18580 test "$dynamic_linker" = no && can_build_shared=no
18581
18582 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18583 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
18584 hardcode_action_CXX=
18585 if test -n "$hardcode_libdir_flag_spec_CXX" || \
18586    test -n "$runpath_var_CXX" || \
18587    test "X$hardcode_automatic_CXX" = "Xyes" ; then
18588
18589   # We can hardcode non-existant directories.
18590   if test "$hardcode_direct_CXX" != no &&
18591      # If the only mechanism to avoid hardcoding is shlibpath_var, we
18592      # have to relink, otherwise we might link with an installed library
18593      # when we should be linking with a yet-to-be-installed one
18594      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
18595      test "$hardcode_minus_L_CXX" != no; then
18596     # Linking always hardcodes the temporary library directory.
18597     hardcode_action_CXX=relink
18598   else
18599     # We can link without hardcoding, and we can hardcode nonexisting dirs.
18600     hardcode_action_CXX=immediate
18601   fi
18602 else
18603   # We cannot hardcode anything, or else we can only hardcode existing
18604   # directories.
18605   hardcode_action_CXX=unsupported
18606 fi
18607 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
18608 echo "${ECHO_T}$hardcode_action_CXX" >&6
18609
18610 if test "$hardcode_action_CXX" = relink; then
18611   # Fast installation is not supported
18612   enable_fast_install=no
18613 elif test "$shlibpath_overrides_runpath" = yes ||
18614      test "$enable_shared" = no; then
18615   # Fast installation is not necessary
18616   enable_fast_install=needless
18617 fi
18618
18619 striplib=
18620 old_striplib=
18621 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
18622 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
18623 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
18624   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18625   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18626   echo "$as_me:$LINENO: result: yes" >&5
18627 echo "${ECHO_T}yes" >&6
18628 else
18629 # FIXME - insert some real tests, host_os isn't really good enough
18630   case $host_os in
18631    darwin*)
18632        if test -n "$STRIP" ; then
18633          striplib="$STRIP -x"
18634          echo "$as_me:$LINENO: result: yes" >&5
18635 echo "${ECHO_T}yes" >&6
18636        else
18637   echo "$as_me:$LINENO: result: no" >&5
18638 echo "${ECHO_T}no" >&6
18639 fi
18640        ;;
18641    *)
18642   echo "$as_me:$LINENO: result: no" >&5
18643 echo "${ECHO_T}no" >&6
18644     ;;
18645   esac
18646 fi
18647
18648 if test "x$enable_dlopen" != xyes; then
18649   enable_dlopen=unknown
18650   enable_dlopen_self=unknown
18651   enable_dlopen_self_static=unknown
18652 else
18653   lt_cv_dlopen=no
18654   lt_cv_dlopen_libs=
18655
18656   case $host_os in
18657   beos*)
18658     lt_cv_dlopen="load_add_on"
18659     lt_cv_dlopen_libs=
18660     lt_cv_dlopen_self=yes
18661     ;;
18662
18663   mingw* | pw32*)
18664     lt_cv_dlopen="LoadLibrary"
18665     lt_cv_dlopen_libs=
18666    ;;
18667
18668   cygwin*)
18669     lt_cv_dlopen="dlopen"
18670     lt_cv_dlopen_libs=
18671    ;;
18672
18673   darwin*)
18674   # if libdl is installed we need to link against it
18675     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18676 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18677 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18678   echo $ECHO_N "(cached) $ECHO_C" >&6
18679 else
18680   ac_check_lib_save_LIBS=$LIBS
18681 LIBS="-ldl  $LIBS"
18682 cat >conftest.$ac_ext <<_ACEOF
18683 /* confdefs.h.  */
18684 _ACEOF
18685 cat confdefs.h >>conftest.$ac_ext
18686 cat >>conftest.$ac_ext <<_ACEOF
18687 /* end confdefs.h.  */
18688
18689 /* Override any gcc2 internal prototype to avoid an error.  */
18690 #ifdef __cplusplus
18691 extern "C"
18692 #endif
18693 /* We use char because int might match the return type of a gcc2
18694    builtin and then its argument prototype would still apply.  */
18695 char dlopen ();
18696 int
18697 main ()
18698 {
18699 dlopen ();
18700   ;
18701   return 0;
18702 }
18703 _ACEOF
18704 rm -f conftest.$ac_objext conftest$ac_exeext
18705 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18706   (eval $ac_link) 2>conftest.er1
18707   ac_status=$?
18708   grep -v '^ *+' conftest.er1 >conftest.err
18709   rm -f conftest.er1
18710   cat conftest.err >&5
18711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18712   (exit $ac_status); } &&
18713          { ac_try='test -z "$ac_cxx_werror_flag"
18714                          || test ! -s conftest.err'
18715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18716   (eval $ac_try) 2>&5
18717   ac_status=$?
18718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18719   (exit $ac_status); }; } &&
18720          { ac_try='test -s conftest$ac_exeext'
18721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18722   (eval $ac_try) 2>&5
18723   ac_status=$?
18724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18725   (exit $ac_status); }; }; then
18726   ac_cv_lib_dl_dlopen=yes
18727 else
18728   echo "$as_me: failed program was:" >&5
18729 sed 's/^/| /' conftest.$ac_ext >&5
18730
18731 ac_cv_lib_dl_dlopen=no
18732 fi
18733 rm -f conftest.err conftest.$ac_objext \
18734       conftest$ac_exeext conftest.$ac_ext
18735 LIBS=$ac_check_lib_save_LIBS
18736 fi
18737 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18738 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18739 if test $ac_cv_lib_dl_dlopen = yes; then
18740   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18741 else
18742
18743     lt_cv_dlopen="dyld"
18744     lt_cv_dlopen_libs=
18745     lt_cv_dlopen_self=yes
18746
18747 fi
18748
18749    ;;
18750
18751   *)
18752     echo "$as_me:$LINENO: checking for shl_load" >&5
18753 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
18754 if test "${ac_cv_func_shl_load+set}" = set; then
18755   echo $ECHO_N "(cached) $ECHO_C" >&6
18756 else
18757   cat >conftest.$ac_ext <<_ACEOF
18758 /* confdefs.h.  */
18759 _ACEOF
18760 cat confdefs.h >>conftest.$ac_ext
18761 cat >>conftest.$ac_ext <<_ACEOF
18762 /* end confdefs.h.  */
18763 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
18764    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18765 #define shl_load innocuous_shl_load
18766
18767 /* System header to define __stub macros and hopefully few prototypes,
18768     which can conflict with char shl_load (); below.
18769     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18770     <limits.h> exists even on freestanding compilers.  */
18771
18772 #ifdef __STDC__
18773 # include <limits.h>
18774 #else
18775 # include <assert.h>
18776 #endif
18777
18778 #undef shl_load
18779
18780 /* Override any gcc2 internal prototype to avoid an error.  */
18781 #ifdef __cplusplus
18782 extern "C"
18783 {
18784 #endif
18785 /* We use char because int might match the return type of a gcc2
18786    builtin and then its argument prototype would still apply.  */
18787 char shl_load ();
18788 /* The GNU C library defines this for functions which it implements
18789     to always fail with ENOSYS.  Some functions are actually named
18790     something starting with __ and the normal name is an alias.  */
18791 #if defined (__stub_shl_load) || defined (__stub___shl_load)
18792 choke me
18793 #else
18794 char (*f) () = shl_load;
18795 #endif
18796 #ifdef __cplusplus
18797 }
18798 #endif
18799
18800 int
18801 main ()
18802 {
18803 return f != shl_load;
18804   ;
18805   return 0;
18806 }
18807 _ACEOF
18808 rm -f conftest.$ac_objext conftest$ac_exeext
18809 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18810   (eval $ac_link) 2>conftest.er1
18811   ac_status=$?
18812   grep -v '^ *+' conftest.er1 >conftest.err
18813   rm -f conftest.er1
18814   cat conftest.err >&5
18815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18816   (exit $ac_status); } &&
18817          { ac_try='test -z "$ac_cxx_werror_flag"
18818                          || test ! -s conftest.err'
18819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18820   (eval $ac_try) 2>&5
18821   ac_status=$?
18822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18823   (exit $ac_status); }; } &&
18824          { ac_try='test -s conftest$ac_exeext'
18825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18826   (eval $ac_try) 2>&5
18827   ac_status=$?
18828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18829   (exit $ac_status); }; }; then
18830   ac_cv_func_shl_load=yes
18831 else
18832   echo "$as_me: failed program was:" >&5
18833 sed 's/^/| /' conftest.$ac_ext >&5
18834
18835 ac_cv_func_shl_load=no
18836 fi
18837 rm -f conftest.err conftest.$ac_objext \
18838       conftest$ac_exeext conftest.$ac_ext
18839 fi
18840 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
18841 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
18842 if test $ac_cv_func_shl_load = yes; then
18843   lt_cv_dlopen="shl_load"
18844 else
18845   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
18846 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
18847 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
18848   echo $ECHO_N "(cached) $ECHO_C" >&6
18849 else
18850   ac_check_lib_save_LIBS=$LIBS
18851 LIBS="-ldld  $LIBS"
18852 cat >conftest.$ac_ext <<_ACEOF
18853 /* confdefs.h.  */
18854 _ACEOF
18855 cat confdefs.h >>conftest.$ac_ext
18856 cat >>conftest.$ac_ext <<_ACEOF
18857 /* end confdefs.h.  */
18858
18859 /* Override any gcc2 internal prototype to avoid an error.  */
18860 #ifdef __cplusplus
18861 extern "C"
18862 #endif
18863 /* We use char because int might match the return type of a gcc2
18864    builtin and then its argument prototype would still apply.  */
18865 char shl_load ();
18866 int
18867 main ()
18868 {
18869 shl_load ();
18870   ;
18871   return 0;
18872 }
18873 _ACEOF
18874 rm -f conftest.$ac_objext conftest$ac_exeext
18875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18876   (eval $ac_link) 2>conftest.er1
18877   ac_status=$?
18878   grep -v '^ *+' conftest.er1 >conftest.err
18879   rm -f conftest.er1
18880   cat conftest.err >&5
18881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18882   (exit $ac_status); } &&
18883          { ac_try='test -z "$ac_cxx_werror_flag"
18884                          || test ! -s conftest.err'
18885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18886   (eval $ac_try) 2>&5
18887   ac_status=$?
18888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18889   (exit $ac_status); }; } &&
18890          { ac_try='test -s conftest$ac_exeext'
18891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18892   (eval $ac_try) 2>&5
18893   ac_status=$?
18894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18895   (exit $ac_status); }; }; then
18896   ac_cv_lib_dld_shl_load=yes
18897 else
18898   echo "$as_me: failed program was:" >&5
18899 sed 's/^/| /' conftest.$ac_ext >&5
18900
18901 ac_cv_lib_dld_shl_load=no
18902 fi
18903 rm -f conftest.err conftest.$ac_objext \
18904       conftest$ac_exeext conftest.$ac_ext
18905 LIBS=$ac_check_lib_save_LIBS
18906 fi
18907 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
18908 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
18909 if test $ac_cv_lib_dld_shl_load = yes; then
18910   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
18911 else
18912   echo "$as_me:$LINENO: checking for dlopen" >&5
18913 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
18914 if test "${ac_cv_func_dlopen+set}" = set; then
18915   echo $ECHO_N "(cached) $ECHO_C" >&6
18916 else
18917   cat >conftest.$ac_ext <<_ACEOF
18918 /* confdefs.h.  */
18919 _ACEOF
18920 cat confdefs.h >>conftest.$ac_ext
18921 cat >>conftest.$ac_ext <<_ACEOF
18922 /* end confdefs.h.  */
18923 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
18924    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18925 #define dlopen innocuous_dlopen
18926
18927 /* System header to define __stub macros and hopefully few prototypes,
18928     which can conflict with char dlopen (); below.
18929     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18930     <limits.h> exists even on freestanding compilers.  */
18931
18932 #ifdef __STDC__
18933 # include <limits.h>
18934 #else
18935 # include <assert.h>
18936 #endif
18937
18938 #undef dlopen
18939
18940 /* Override any gcc2 internal prototype to avoid an error.  */
18941 #ifdef __cplusplus
18942 extern "C"
18943 {
18944 #endif
18945 /* We use char because int might match the return type of a gcc2
18946    builtin and then its argument prototype would still apply.  */
18947 char dlopen ();
18948 /* The GNU C library defines this for functions which it implements
18949     to always fail with ENOSYS.  Some functions are actually named
18950     something starting with __ and the normal name is an alias.  */
18951 #if defined (__stub_dlopen) || defined (__stub___dlopen)
18952 choke me
18953 #else
18954 char (*f) () = dlopen;
18955 #endif
18956 #ifdef __cplusplus
18957 }
18958 #endif
18959
18960 int
18961 main ()
18962 {
18963 return f != dlopen;
18964   ;
18965   return 0;
18966 }
18967 _ACEOF
18968 rm -f conftest.$ac_objext conftest$ac_exeext
18969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18970   (eval $ac_link) 2>conftest.er1
18971   ac_status=$?
18972   grep -v '^ *+' conftest.er1 >conftest.err
18973   rm -f conftest.er1
18974   cat conftest.err >&5
18975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18976   (exit $ac_status); } &&
18977          { ac_try='test -z "$ac_cxx_werror_flag"
18978                          || test ! -s conftest.err'
18979   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18980   (eval $ac_try) 2>&5
18981   ac_status=$?
18982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18983   (exit $ac_status); }; } &&
18984          { ac_try='test -s conftest$ac_exeext'
18985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18986   (eval $ac_try) 2>&5
18987   ac_status=$?
18988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18989   (exit $ac_status); }; }; then
18990   ac_cv_func_dlopen=yes
18991 else
18992   echo "$as_me: failed program was:" >&5
18993 sed 's/^/| /' conftest.$ac_ext >&5
18994
18995 ac_cv_func_dlopen=no
18996 fi
18997 rm -f conftest.err conftest.$ac_objext \
18998       conftest$ac_exeext conftest.$ac_ext
18999 fi
19000 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
19001 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
19002 if test $ac_cv_func_dlopen = yes; then
19003   lt_cv_dlopen="dlopen"
19004 else
19005   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19006 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19007 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19008   echo $ECHO_N "(cached) $ECHO_C" >&6
19009 else
19010   ac_check_lib_save_LIBS=$LIBS
19011 LIBS="-ldl  $LIBS"
19012 cat >conftest.$ac_ext <<_ACEOF
19013 /* confdefs.h.  */
19014 _ACEOF
19015 cat confdefs.h >>conftest.$ac_ext
19016 cat >>conftest.$ac_ext <<_ACEOF
19017 /* end confdefs.h.  */
19018
19019 /* Override any gcc2 internal prototype to avoid an error.  */
19020 #ifdef __cplusplus
19021 extern "C"
19022 #endif
19023 /* We use char because int might match the return type of a gcc2
19024    builtin and then its argument prototype would still apply.  */
19025 char dlopen ();
19026 int
19027 main ()
19028 {
19029 dlopen ();
19030   ;
19031   return 0;
19032 }
19033 _ACEOF
19034 rm -f conftest.$ac_objext conftest$ac_exeext
19035 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19036   (eval $ac_link) 2>conftest.er1
19037   ac_status=$?
19038   grep -v '^ *+' conftest.er1 >conftest.err
19039   rm -f conftest.er1
19040   cat conftest.err >&5
19041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19042   (exit $ac_status); } &&
19043          { ac_try='test -z "$ac_cxx_werror_flag"
19044                          || test ! -s conftest.err'
19045   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19046   (eval $ac_try) 2>&5
19047   ac_status=$?
19048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19049   (exit $ac_status); }; } &&
19050          { ac_try='test -s conftest$ac_exeext'
19051   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19052   (eval $ac_try) 2>&5
19053   ac_status=$?
19054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19055   (exit $ac_status); }; }; then
19056   ac_cv_lib_dl_dlopen=yes
19057 else
19058   echo "$as_me: failed program was:" >&5
19059 sed 's/^/| /' conftest.$ac_ext >&5
19060
19061 ac_cv_lib_dl_dlopen=no
19062 fi
19063 rm -f conftest.err conftest.$ac_objext \
19064       conftest$ac_exeext conftest.$ac_ext
19065 LIBS=$ac_check_lib_save_LIBS
19066 fi
19067 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19068 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19069 if test $ac_cv_lib_dl_dlopen = yes; then
19070   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19071 else
19072   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
19073 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
19074 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
19075   echo $ECHO_N "(cached) $ECHO_C" >&6
19076 else
19077   ac_check_lib_save_LIBS=$LIBS
19078 LIBS="-lsvld  $LIBS"
19079 cat >conftest.$ac_ext <<_ACEOF
19080 /* confdefs.h.  */
19081 _ACEOF
19082 cat confdefs.h >>conftest.$ac_ext
19083 cat >>conftest.$ac_ext <<_ACEOF
19084 /* end confdefs.h.  */
19085
19086 /* Override any gcc2 internal prototype to avoid an error.  */
19087 #ifdef __cplusplus
19088 extern "C"
19089 #endif
19090 /* We use char because int might match the return type of a gcc2
19091    builtin and then its argument prototype would still apply.  */
19092 char dlopen ();
19093 int
19094 main ()
19095 {
19096 dlopen ();
19097   ;
19098   return 0;
19099 }
19100 _ACEOF
19101 rm -f conftest.$ac_objext conftest$ac_exeext
19102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19103   (eval $ac_link) 2>conftest.er1
19104   ac_status=$?
19105   grep -v '^ *+' conftest.er1 >conftest.err
19106   rm -f conftest.er1
19107   cat conftest.err >&5
19108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19109   (exit $ac_status); } &&
19110          { ac_try='test -z "$ac_cxx_werror_flag"
19111                          || test ! -s conftest.err'
19112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19113   (eval $ac_try) 2>&5
19114   ac_status=$?
19115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19116   (exit $ac_status); }; } &&
19117          { ac_try='test -s conftest$ac_exeext'
19118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19119   (eval $ac_try) 2>&5
19120   ac_status=$?
19121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19122   (exit $ac_status); }; }; then
19123   ac_cv_lib_svld_dlopen=yes
19124 else
19125   echo "$as_me: failed program was:" >&5
19126 sed 's/^/| /' conftest.$ac_ext >&5
19127
19128 ac_cv_lib_svld_dlopen=no
19129 fi
19130 rm -f conftest.err conftest.$ac_objext \
19131       conftest$ac_exeext conftest.$ac_ext
19132 LIBS=$ac_check_lib_save_LIBS
19133 fi
19134 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
19135 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
19136 if test $ac_cv_lib_svld_dlopen = yes; then
19137   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
19138 else
19139   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
19140 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
19141 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
19142   echo $ECHO_N "(cached) $ECHO_C" >&6
19143 else
19144   ac_check_lib_save_LIBS=$LIBS
19145 LIBS="-ldld  $LIBS"
19146 cat >conftest.$ac_ext <<_ACEOF
19147 /* confdefs.h.  */
19148 _ACEOF
19149 cat confdefs.h >>conftest.$ac_ext
19150 cat >>conftest.$ac_ext <<_ACEOF
19151 /* end confdefs.h.  */
19152
19153 /* Override any gcc2 internal prototype to avoid an error.  */
19154 #ifdef __cplusplus
19155 extern "C"
19156 #endif
19157 /* We use char because int might match the return type of a gcc2
19158    builtin and then its argument prototype would still apply.  */
19159 char dld_link ();
19160 int
19161 main ()
19162 {
19163 dld_link ();
19164   ;
19165   return 0;
19166 }
19167 _ACEOF
19168 rm -f conftest.$ac_objext conftest$ac_exeext
19169 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19170   (eval $ac_link) 2>conftest.er1
19171   ac_status=$?
19172   grep -v '^ *+' conftest.er1 >conftest.err
19173   rm -f conftest.er1
19174   cat conftest.err >&5
19175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19176   (exit $ac_status); } &&
19177          { ac_try='test -z "$ac_cxx_werror_flag"
19178                          || test ! -s conftest.err'
19179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19180   (eval $ac_try) 2>&5
19181   ac_status=$?
19182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19183   (exit $ac_status); }; } &&
19184          { ac_try='test -s conftest$ac_exeext'
19185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19186   (eval $ac_try) 2>&5
19187   ac_status=$?
19188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19189   (exit $ac_status); }; }; then
19190   ac_cv_lib_dld_dld_link=yes
19191 else
19192   echo "$as_me: failed program was:" >&5
19193 sed 's/^/| /' conftest.$ac_ext >&5
19194
19195 ac_cv_lib_dld_dld_link=no
19196 fi
19197 rm -f conftest.err conftest.$ac_objext \
19198       conftest$ac_exeext conftest.$ac_ext
19199 LIBS=$ac_check_lib_save_LIBS
19200 fi
19201 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
19202 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
19203 if test $ac_cv_lib_dld_dld_link = yes; then
19204   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
19205 fi
19206
19207
19208 fi
19209
19210
19211 fi
19212
19213
19214 fi
19215
19216
19217 fi
19218
19219
19220 fi
19221
19222     ;;
19223   esac
19224
19225   if test "x$lt_cv_dlopen" != xno; then
19226     enable_dlopen=yes
19227   else
19228     enable_dlopen=no
19229   fi
19230
19231   case $lt_cv_dlopen in
19232   dlopen)
19233     save_CPPFLAGS="$CPPFLAGS"
19234     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
19235
19236     save_LDFLAGS="$LDFLAGS"
19237     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
19238
19239     save_LIBS="$LIBS"
19240     LIBS="$lt_cv_dlopen_libs $LIBS"
19241
19242     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
19243 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
19244 if test "${lt_cv_dlopen_self+set}" = set; then
19245   echo $ECHO_N "(cached) $ECHO_C" >&6
19246 else
19247           if test "$cross_compiling" = yes; then :
19248   lt_cv_dlopen_self=cross
19249 else
19250   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19251   lt_status=$lt_dlunknown
19252   cat > conftest.$ac_ext <<EOF
19253 #line 19253 "configure"
19254 #include "confdefs.h"
19255
19256 #if HAVE_DLFCN_H
19257 #include <dlfcn.h>
19258 #endif
19259
19260 #include <stdio.h>
19261
19262 #ifdef RTLD_GLOBAL
19263 #  define LT_DLGLOBAL           RTLD_GLOBAL
19264 #else
19265 #  ifdef DL_GLOBAL
19266 #    define LT_DLGLOBAL         DL_GLOBAL
19267 #  else
19268 #    define LT_DLGLOBAL         0
19269 #  endif
19270 #endif
19271
19272 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19273    find out it does not work in some platform. */
19274 #ifndef LT_DLLAZY_OR_NOW
19275 #  ifdef RTLD_LAZY
19276 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
19277 #  else
19278 #    ifdef DL_LAZY
19279 #      define LT_DLLAZY_OR_NOW          DL_LAZY
19280 #    else
19281 #      ifdef RTLD_NOW
19282 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
19283 #      else
19284 #        ifdef DL_NOW
19285 #          define LT_DLLAZY_OR_NOW      DL_NOW
19286 #        else
19287 #          define LT_DLLAZY_OR_NOW      0
19288 #        endif
19289 #      endif
19290 #    endif
19291 #  endif
19292 #endif
19293
19294 #ifdef __cplusplus
19295 extern "C" void exit (int);
19296 #endif
19297
19298 void fnord() { int i=42;}
19299 int main ()
19300 {
19301   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19302   int status = $lt_dlunknown;
19303
19304   if (self)
19305     {
19306       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
19307       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19308       /* dlclose (self); */
19309     }
19310
19311     exit (status);
19312 }
19313 EOF
19314   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19315   (eval $ac_link) 2>&5
19316   ac_status=$?
19317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19318   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19319     (./conftest; exit; ) 2>/dev/null
19320     lt_status=$?
19321     case x$lt_status in
19322       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
19323       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
19324       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
19325     esac
19326   else :
19327     # compilation failed
19328     lt_cv_dlopen_self=no
19329   fi
19330 fi
19331 rm -fr conftest*
19332
19333
19334 fi
19335 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
19336 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
19337
19338     if test "x$lt_cv_dlopen_self" = xyes; then
19339       LDFLAGS="$LDFLAGS $link_static_flag"
19340       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
19341 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
19342 if test "${lt_cv_dlopen_self_static+set}" = set; then
19343   echo $ECHO_N "(cached) $ECHO_C" >&6
19344 else
19345           if test "$cross_compiling" = yes; then :
19346   lt_cv_dlopen_self_static=cross
19347 else
19348   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19349   lt_status=$lt_dlunknown
19350   cat > conftest.$ac_ext <<EOF
19351 #line 19351 "configure"
19352 #include "confdefs.h"
19353
19354 #if HAVE_DLFCN_H
19355 #include <dlfcn.h>
19356 #endif
19357
19358 #include <stdio.h>
19359
19360 #ifdef RTLD_GLOBAL
19361 #  define LT_DLGLOBAL           RTLD_GLOBAL
19362 #else
19363 #  ifdef DL_GLOBAL
19364 #    define LT_DLGLOBAL         DL_GLOBAL
19365 #  else
19366 #    define LT_DLGLOBAL         0
19367 #  endif
19368 #endif
19369
19370 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19371    find out it does not work in some platform. */
19372 #ifndef LT_DLLAZY_OR_NOW
19373 #  ifdef RTLD_LAZY
19374 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
19375 #  else
19376 #    ifdef DL_LAZY
19377 #      define LT_DLLAZY_OR_NOW          DL_LAZY
19378 #    else
19379 #      ifdef RTLD_NOW
19380 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
19381 #      else
19382 #        ifdef DL_NOW
19383 #          define LT_DLLAZY_OR_NOW      DL_NOW
19384 #        else
19385 #          define LT_DLLAZY_OR_NOW      0
19386 #        endif
19387 #      endif
19388 #    endif
19389 #  endif
19390 #endif
19391
19392 #ifdef __cplusplus
19393 extern "C" void exit (int);
19394 #endif
19395
19396 void fnord() { int i=42;}
19397 int main ()
19398 {
19399   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19400   int status = $lt_dlunknown;
19401
19402   if (self)
19403     {
19404       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
19405       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19406       /* dlclose (self); */
19407     }
19408
19409     exit (status);
19410 }
19411 EOF
19412   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19413   (eval $ac_link) 2>&5
19414   ac_status=$?
19415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19416   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19417     (./conftest; exit; ) 2>/dev/null
19418     lt_status=$?
19419     case x$lt_status in
19420       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19421       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19422       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
19423     esac
19424   else :
19425     # compilation failed
19426     lt_cv_dlopen_self_static=no
19427   fi
19428 fi
19429 rm -fr conftest*
19430
19431
19432 fi
19433 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
19434 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
19435     fi
19436
19437     CPPFLAGS="$save_CPPFLAGS"
19438     LDFLAGS="$save_LDFLAGS"
19439     LIBS="$save_LIBS"
19440     ;;
19441   esac
19442
19443   case $lt_cv_dlopen_self in
19444   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
19445   *) enable_dlopen_self=unknown ;;
19446   esac
19447
19448   case $lt_cv_dlopen_self_static in
19449   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
19450   *) enable_dlopen_self_static=unknown ;;
19451   esac
19452 fi
19453
19454
19455 # The else clause should only fire when bootstrapping the
19456 # libtool distribution, otherwise you forgot to ship ltmain.sh
19457 # with your package, and you will get complaints that there are
19458 # no rules to generate ltmain.sh.
19459 if test -f "$ltmain"; then
19460   # See if we are running on zsh, and set the options which allow our commands through
19461   # without removal of \ escapes.
19462   if test -n "${ZSH_VERSION+set}" ; then
19463     setopt NO_GLOB_SUBST
19464   fi
19465   # Now quote all the things that may contain metacharacters while being
19466   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19467   # variables and quote the copies for generation of the libtool script.
19468   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19469     SED SHELL STRIP \
19470     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19471     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19472     deplibs_check_method reload_flag reload_cmds need_locks \
19473     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19474     lt_cv_sys_global_symbol_to_c_name_address \
19475     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19476     old_postinstall_cmds old_postuninstall_cmds \
19477     compiler_CXX \
19478     CC_CXX \
19479     LD_CXX \
19480     lt_prog_compiler_wl_CXX \
19481     lt_prog_compiler_pic_CXX \
19482     lt_prog_compiler_static_CXX \
19483     lt_prog_compiler_no_builtin_flag_CXX \
19484     export_dynamic_flag_spec_CXX \
19485     thread_safe_flag_spec_CXX \
19486     whole_archive_flag_spec_CXX \
19487     enable_shared_with_static_runtimes_CXX \
19488     old_archive_cmds_CXX \
19489     old_archive_from_new_cmds_CXX \
19490     predep_objects_CXX \
19491     postdep_objects_CXX \
19492     predeps_CXX \
19493     postdeps_CXX \
19494     compiler_lib_search_path_CXX \
19495     archive_cmds_CXX \
19496     archive_expsym_cmds_CXX \
19497     postinstall_cmds_CXX \
19498     postuninstall_cmds_CXX \
19499     old_archive_from_expsyms_cmds_CXX \
19500     allow_undefined_flag_CXX \
19501     no_undefined_flag_CXX \
19502     export_symbols_cmds_CXX \
19503     hardcode_libdir_flag_spec_CXX \
19504     hardcode_libdir_flag_spec_ld_CXX \
19505     hardcode_libdir_separator_CXX \
19506     hardcode_automatic_CXX \
19507     module_cmds_CXX \
19508     module_expsym_cmds_CXX \
19509     lt_cv_prog_compiler_c_o_CXX \
19510     exclude_expsyms_CXX \
19511     include_expsyms_CXX; do
19512
19513     case $var in
19514     old_archive_cmds_CXX | \
19515     old_archive_from_new_cmds_CXX | \
19516     archive_cmds_CXX | \
19517     archive_expsym_cmds_CXX | \
19518     module_cmds_CXX | \
19519     module_expsym_cmds_CXX | \
19520     old_archive_from_expsyms_cmds_CXX | \
19521     export_symbols_cmds_CXX | \
19522     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19523     postinstall_cmds | postuninstall_cmds | \
19524     old_postinstall_cmds | old_postuninstall_cmds | \
19525     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19526       # Double-quote double-evaled strings.
19527       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19528       ;;
19529     *)
19530       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19531       ;;
19532     esac
19533   done
19534
19535   case $lt_echo in
19536   *'\$0 --fallback-echo"')
19537     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19538     ;;
19539   esac
19540
19541 cfgfile="$ofile"
19542
19543   cat <<__EOF__ >> "$cfgfile"
19544 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19545
19546 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19547
19548 # Shell to use when invoking shell scripts.
19549 SHELL=$lt_SHELL
19550
19551 # Whether or not to build shared libraries.
19552 build_libtool_libs=$enable_shared
19553
19554 # Whether or not to build static libraries.
19555 build_old_libs=$enable_static
19556
19557 # Whether or not to add -lc for building shared libraries.
19558 build_libtool_need_lc=$archive_cmds_need_lc_CXX
19559
19560 # Whether or not to disallow shared libs when runtime libs are static
19561 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19562
19563 # Whether or not to optimize for fast installation.
19564 fast_install=$enable_fast_install
19565
19566 # The host system.
19567 host_alias=$host_alias
19568 host=$host
19569 host_os=$host_os
19570
19571 # The build system.
19572 build_alias=$build_alias
19573 build=$build
19574 build_os=$build_os
19575
19576 # An echo program that does not interpret backslashes.
19577 echo=$lt_echo
19578
19579 # The archiver.
19580 AR=$lt_AR
19581 AR_FLAGS=$lt_AR_FLAGS
19582
19583 # A C compiler.
19584 LTCC=$lt_LTCC
19585
19586 # A language-specific compiler.
19587 CC=$lt_compiler_CXX
19588
19589 # Is the compiler the GNU C compiler?
19590 with_gcc=$GCC_CXX
19591
19592 # An ERE matcher.
19593 EGREP=$lt_EGREP
19594
19595 # The linker used to build libraries.
19596 LD=$lt_LD_CXX
19597
19598 # Whether we need hard or soft links.
19599 LN_S=$lt_LN_S
19600
19601 # A BSD-compatible nm program.
19602 NM=$lt_NM
19603
19604 # A symbol stripping program
19605 STRIP=$lt_STRIP
19606
19607 # Used to examine libraries when file_magic_cmd begins "file"
19608 MAGIC_CMD=$MAGIC_CMD
19609
19610 # Used on cygwin: DLL creation program.
19611 DLLTOOL="$DLLTOOL"
19612
19613 # Used on cygwin: object dumper.
19614 OBJDUMP="$OBJDUMP"
19615
19616 # Used on cygwin: assembler.
19617 AS="$AS"
19618
19619 # The name of the directory that contains temporary libtool files.
19620 objdir=$objdir
19621
19622 # How to create reloadable object files.
19623 reload_flag=$lt_reload_flag
19624 reload_cmds=$lt_reload_cmds
19625
19626 # How to pass a linker flag through the compiler.
19627 wl=$lt_lt_prog_compiler_wl_CXX
19628
19629 # Object file suffix (normally "o").
19630 objext="$ac_objext"
19631
19632 # Old archive suffix (normally "a").
19633 libext="$libext"
19634
19635 # Shared library suffix (normally ".so").
19636 shrext_cmds='$shrext_cmds'
19637
19638 # Executable file suffix (normally "").
19639 exeext="$exeext"
19640
19641 # Additional compiler flags for building library objects.
19642 pic_flag=$lt_lt_prog_compiler_pic_CXX
19643 pic_mode=$pic_mode
19644
19645 # What is the maximum length of a command?
19646 max_cmd_len=$lt_cv_sys_max_cmd_len
19647
19648 # Does compiler simultaneously support -c and -o options?
19649 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19650
19651 # Must we lock files when doing compilation?
19652 need_locks=$lt_need_locks
19653
19654 # Do we need the lib prefix for modules?
19655 need_lib_prefix=$need_lib_prefix
19656
19657 # Do we need a version for libraries?
19658 need_version=$need_version
19659
19660 # Whether dlopen is supported.
19661 dlopen_support=$enable_dlopen
19662
19663 # Whether dlopen of programs is supported.
19664 dlopen_self=$enable_dlopen_self
19665
19666 # Whether dlopen of statically linked programs is supported.
19667 dlopen_self_static=$enable_dlopen_self_static
19668
19669 # Compiler flag to prevent dynamic linking.
19670 link_static_flag=$lt_lt_prog_compiler_static_CXX
19671
19672 # Compiler flag to turn off builtin functions.
19673 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19674
19675 # Compiler flag to allow reflexive dlopens.
19676 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19677
19678 # Compiler flag to generate shared objects directly from archives.
19679 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19680
19681 # Compiler flag to generate thread-safe objects.
19682 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
19683
19684 # Library versioning type.
19685 version_type=$version_type
19686
19687 # Format of library name prefix.
19688 libname_spec=$lt_libname_spec
19689
19690 # List of archive names.  First name is the real one, the rest are links.
19691 # The last name is the one that the linker finds with -lNAME.
19692 library_names_spec=$lt_library_names_spec
19693
19694 # The coded name of the library, if different from the real name.
19695 soname_spec=$lt_soname_spec
19696
19697 # Commands used to build and install an old-style archive.
19698 RANLIB=$lt_RANLIB
19699 old_archive_cmds=$lt_old_archive_cmds_CXX
19700 old_postinstall_cmds=$lt_old_postinstall_cmds
19701 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19702
19703 # Create an old-style archive from a shared archive.
19704 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19705
19706 # Create a temporary old-style archive to link instead of a shared archive.
19707 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19708
19709 # Commands used to build and install a shared archive.
19710 archive_cmds=$lt_archive_cmds_CXX
19711 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19712 postinstall_cmds=$lt_postinstall_cmds
19713 postuninstall_cmds=$lt_postuninstall_cmds
19714
19715 # Commands used to build a loadable module (assumed same as above if empty)
19716 module_cmds=$lt_module_cmds_CXX
19717 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19718
19719 # Commands to strip libraries.
19720 old_striplib=$lt_old_striplib
19721 striplib=$lt_striplib
19722
19723 # Dependencies to place before the objects being linked to create a
19724 # shared library.
19725 predep_objects=$lt_predep_objects_CXX
19726
19727 # Dependencies to place after the objects being linked to create a
19728 # shared library.
19729 postdep_objects=$lt_postdep_objects_CXX
19730
19731 # Dependencies to place before the objects being linked to create a
19732 # shared library.
19733 predeps=$lt_predeps_CXX
19734
19735 # Dependencies to place after the objects being linked to create a
19736 # shared library.
19737 postdeps=$lt_postdeps_CXX
19738
19739 # The library search path used internally by the compiler when linking
19740 # a shared library.
19741 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19742
19743 # Method to check whether dependent libraries are shared objects.
19744 deplibs_check_method=$lt_deplibs_check_method
19745
19746 # Command to use when deplibs_check_method == file_magic.
19747 file_magic_cmd=$lt_file_magic_cmd
19748
19749 # Flag that allows shared libraries with undefined symbols to be built.
19750 allow_undefined_flag=$lt_allow_undefined_flag_CXX
19751
19752 # Flag that forces no undefined symbols.
19753 no_undefined_flag=$lt_no_undefined_flag_CXX
19754
19755 # Commands used to finish a libtool library installation in a directory.
19756 finish_cmds=$lt_finish_cmds
19757
19758 # Same as above, but a single script fragment to be evaled but not shown.
19759 finish_eval=$lt_finish_eval
19760
19761 # Take the output of nm and produce a listing of raw symbols and C names.
19762 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19763
19764 # Transform the output of nm in a proper C declaration
19765 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19766
19767 # Transform the output of nm in a C name address pair
19768 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19769
19770 # This is the shared library runtime path variable.
19771 runpath_var=$runpath_var
19772
19773 # This is the shared library path variable.
19774 shlibpath_var=$shlibpath_var
19775
19776 # Is shlibpath searched before the hard-coded library search path?
19777 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19778
19779 # How to hardcode a shared library path into an executable.
19780 hardcode_action=$hardcode_action_CXX
19781
19782 # Whether we should hardcode library paths into libraries.
19783 hardcode_into_libs=$hardcode_into_libs
19784
19785 # Flag to hardcode \$libdir into a binary during linking.
19786 # This must work even if \$libdir does not exist.
19787 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19788
19789 # If ld is used when linking, flag to hardcode \$libdir into
19790 # a binary during linking. This must work even if \$libdir does
19791 # not exist.
19792 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
19793
19794 # Whether we need a single -rpath flag with a separated argument.
19795 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19796
19797 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19798 # resulting binary.
19799 hardcode_direct=$hardcode_direct_CXX
19800
19801 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19802 # resulting binary.
19803 hardcode_minus_L=$hardcode_minus_L_CXX
19804
19805 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19806 # the resulting binary.
19807 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19808
19809 # Set to yes if building a shared library automatically hardcodes DIR into the library
19810 # and all subsequent libraries and executables linked against it.
19811 hardcode_automatic=$hardcode_automatic_CXX
19812
19813 # Variables whose values should be saved in libtool wrapper scripts and
19814 # restored at relink time.
19815 variables_saved_for_relink="$variables_saved_for_relink"
19816
19817 # Whether libtool must link a program against all its dependency libraries.
19818 link_all_deplibs=$link_all_deplibs_CXX
19819
19820 # Compile-time system search path for libraries
19821 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19822
19823 # Run-time system search path for libraries
19824 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19825
19826 # Fix the shell variable \$srcfile for the compiler.
19827 fix_srcfile_path="$fix_srcfile_path_CXX"
19828
19829 # Set to yes if exported symbols are required.
19830 always_export_symbols=$always_export_symbols_CXX
19831
19832 # The commands to list exported symbols.
19833 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19834
19835 # The commands to extract the exported symbol list from a shared archive.
19836 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19837
19838 # Symbols that should not be listed in the preloaded symbols.
19839 exclude_expsyms=$lt_exclude_expsyms_CXX
19840
19841 # Symbols that must always be exported.
19842 include_expsyms=$lt_include_expsyms_CXX
19843
19844 # ### END LIBTOOL TAG CONFIG: $tagname
19845
19846 __EOF__
19847
19848
19849 else
19850   # If there is no Makefile yet, we rely on a make rule to execute
19851   # `config.status --recheck' to rerun these tests and create the
19852   # libtool script then.
19853   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19854   if test -f "$ltmain_in"; then
19855     test -f Makefile && make "$ltmain"
19856   fi
19857 fi
19858
19859
19860 ac_ext=c
19861 ac_cpp='$CPP $CPPFLAGS'
19862 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19863 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19864 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19865
19866 CC=$lt_save_CC
19867 LDCXX=$LD
19868 LD=$lt_save_LD
19869 GCC=$lt_save_GCC
19870 with_gnu_ldcxx=$with_gnu_ld
19871 with_gnu_ld=$lt_save_with_gnu_ld
19872 lt_cv_path_LDCXX=$lt_cv_path_LD
19873 lt_cv_path_LD=$lt_save_path_LD
19874 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
19875 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
19876
19877         else
19878           tagname=""
19879         fi
19880         ;;
19881
19882       F77)
19883         if test -n "$F77" && test "X$F77" != "Xno"; then
19884
19885 ac_ext=f
19886 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
19887 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19888 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
19889
19890
19891 archive_cmds_need_lc_F77=no
19892 allow_undefined_flag_F77=
19893 always_export_symbols_F77=no
19894 archive_expsym_cmds_F77=
19895 export_dynamic_flag_spec_F77=
19896 hardcode_direct_F77=no
19897 hardcode_libdir_flag_spec_F77=
19898 hardcode_libdir_flag_spec_ld_F77=
19899 hardcode_libdir_separator_F77=
19900 hardcode_minus_L_F77=no
19901 hardcode_automatic_F77=no
19902 module_cmds_F77=
19903 module_expsym_cmds_F77=
19904 link_all_deplibs_F77=unknown
19905 old_archive_cmds_F77=$old_archive_cmds
19906 no_undefined_flag_F77=
19907 whole_archive_flag_spec_F77=
19908 enable_shared_with_static_runtimes_F77=no
19909
19910 # Source file extension for f77 test sources.
19911 ac_ext=f
19912
19913 # Object file extension for compiled f77 test sources.
19914 objext=o
19915 objext_F77=$objext
19916
19917 # Code to be used in simple compile tests
19918 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
19919
19920 # Code to be used in simple link tests
19921 lt_simple_link_test_code="      program t\n      end\n"
19922
19923 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19924
19925 # If no C compiler was specified, use CC.
19926 LTCC=${LTCC-"$CC"}
19927
19928 # Allow CC to be a program name with arguments.
19929 compiler=$CC
19930
19931
19932 # save warnings/boilerplate of simple test code
19933 ac_outfile=conftest.$ac_objext
19934 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19935 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
19936 _lt_compiler_boilerplate=`cat conftest.err`
19937 $rm conftest*
19938
19939 ac_outfile=conftest.$ac_objext
19940 printf "$lt_simple_link_test_code" >conftest.$ac_ext
19941 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
19942 _lt_linker_boilerplate=`cat conftest.err`
19943 $rm conftest*
19944
19945
19946 # Allow CC to be a program name with arguments.
19947 lt_save_CC="$CC"
19948 CC=${F77-"f77"}
19949 compiler=$CC
19950 compiler_F77=$CC
19951 for cc_temp in $compiler""; do
19952   case $cc_temp in
19953     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19954     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19955     \-*) ;;
19956     *) break;;
19957   esac
19958 done
19959 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19960
19961
19962 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
19963 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
19964 echo "$as_me:$LINENO: result: $can_build_shared" >&5
19965 echo "${ECHO_T}$can_build_shared" >&6
19966
19967 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
19968 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
19969 test "$can_build_shared" = "no" && enable_shared=no
19970
19971 # On AIX, shared libraries and static libraries use the same namespace, and
19972 # are all built from PIC.
19973 case "$host_os" in
19974 aix3*)
19975   test "$enable_shared" = yes && enable_static=no
19976   if test -n "$RANLIB"; then
19977     archive_cmds="$archive_cmds~\$RANLIB \$lib"
19978     postinstall_cmds='$RANLIB $lib'
19979   fi
19980   ;;
19981 aix4* | aix5*)
19982   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
19983     test "$enable_shared" = yes && enable_static=no
19984   fi
19985   ;;
19986 esac
19987 echo "$as_me:$LINENO: result: $enable_shared" >&5
19988 echo "${ECHO_T}$enable_shared" >&6
19989
19990 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
19991 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
19992 # Make sure either enable_shared or enable_static is yes.
19993 test "$enable_shared" = yes || enable_static=yes
19994 echo "$as_me:$LINENO: result: $enable_static" >&5
19995 echo "${ECHO_T}$enable_static" >&6
19996
19997 test "$ld_shlibs_F77" = no && can_build_shared=no
19998
19999 GCC_F77="$G77"
20000 LD_F77="$LD"
20001
20002 lt_prog_compiler_wl_F77=
20003 lt_prog_compiler_pic_F77=
20004 lt_prog_compiler_static_F77=
20005
20006 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
20007 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
20008
20009   if test "$GCC" = yes; then
20010     lt_prog_compiler_wl_F77='-Wl,'
20011     lt_prog_compiler_static_F77='-static'
20012
20013     case $host_os in
20014       aix*)
20015       # All AIX code is PIC.
20016       if test "$host_cpu" = ia64; then
20017         # AIX 5 now supports IA64 processor
20018         lt_prog_compiler_static_F77='-Bstatic'
20019       fi
20020       ;;
20021
20022     amigaos*)
20023       # FIXME: we need at least 68020 code to build shared libraries, but
20024       # adding the `-m68020' flag to GCC prevents building anything better,
20025       # like `-m68040'.
20026       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
20027       ;;
20028
20029     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20030       # PIC is the default for these OSes.
20031       ;;
20032
20033     mingw* | pw32* | os2*)
20034       # This hack is so that the source file can tell whether it is being
20035       # built for inclusion in a dll (and should export symbols for example).
20036       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
20037       ;;
20038
20039     darwin* | rhapsody*)
20040       # PIC is the default on this platform
20041       # Common symbols not allowed in MH_DYLIB files
20042       lt_prog_compiler_pic_F77='-fno-common'
20043       ;;
20044
20045     msdosdjgpp*)
20046       # Just because we use GCC doesn't mean we suddenly get shared libraries
20047       # on systems that don't support them.
20048       lt_prog_compiler_can_build_shared_F77=no
20049       enable_shared=no
20050       ;;
20051
20052     sysv4*MP*)
20053       if test -d /usr/nec; then
20054         lt_prog_compiler_pic_F77=-Kconform_pic
20055       fi
20056       ;;
20057
20058     hpux*)
20059       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20060       # not for PA HP-UX.
20061       case "$host_cpu" in
20062       hppa*64*|ia64*)
20063         # +Z the default
20064         ;;
20065       *)
20066         lt_prog_compiler_pic_F77='-fPIC'
20067         ;;
20068       esac
20069       ;;
20070
20071     *)
20072       lt_prog_compiler_pic_F77='-fPIC'
20073       ;;
20074     esac
20075   else
20076     # PORTME Check for flag to pass linker flags through the system compiler.
20077     case $host_os in
20078     aix*)
20079       lt_prog_compiler_wl_F77='-Wl,'
20080       if test "$host_cpu" = ia64; then
20081         # AIX 5 now supports IA64 processor
20082         lt_prog_compiler_static_F77='-Bstatic'
20083       else
20084         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
20085       fi
20086       ;;
20087       darwin*)
20088         # PIC is the default on this platform
20089         # Common symbols not allowed in MH_DYLIB files
20090        case $cc_basename in
20091          xlc*)
20092          lt_prog_compiler_pic_F77='-qnocommon'
20093          lt_prog_compiler_wl_F77='-Wl,'
20094          ;;
20095        esac
20096        ;;
20097
20098     mingw* | pw32* | os2*)
20099       # This hack is so that the source file can tell whether it is being
20100       # built for inclusion in a dll (and should export symbols for example).
20101       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
20102       ;;
20103
20104     hpux9* | hpux10* | hpux11*)
20105       lt_prog_compiler_wl_F77='-Wl,'
20106       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20107       # not for PA HP-UX.
20108       case "$host_cpu" in
20109       hppa*64*|ia64*)
20110         # +Z the default
20111         ;;
20112       *)
20113         lt_prog_compiler_pic_F77='+Z'
20114         ;;
20115       esac
20116       # Is there a better lt_prog_compiler_static that works with the bundled CC?
20117       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
20118       ;;
20119
20120     irix5* | irix6* | nonstopux*)
20121       lt_prog_compiler_wl_F77='-Wl,'
20122       # PIC (with -KPIC) is the default.
20123       lt_prog_compiler_static_F77='-non_shared'
20124       ;;
20125
20126     newsos6)
20127       lt_prog_compiler_pic_F77='-KPIC'
20128       lt_prog_compiler_static_F77='-Bstatic'
20129       ;;
20130
20131     linux*)
20132       case $cc_basename in
20133       icc* | ecc*)
20134         lt_prog_compiler_wl_F77='-Wl,'
20135         lt_prog_compiler_pic_F77='-KPIC'
20136         lt_prog_compiler_static_F77='-static'
20137         ;;
20138       pgcc* | pgf77* | pgf90*)
20139         # Portland Group compilers (*not* the Pentium gcc compiler,
20140         # which looks to be a dead project)
20141         lt_prog_compiler_wl_F77='-Wl,'
20142         lt_prog_compiler_pic_F77='-fpic'
20143         lt_prog_compiler_static_F77='-static'
20144         ;;
20145       ccc*)
20146         lt_prog_compiler_wl_F77='-Wl,'
20147         # All Alpha code is PIC.
20148         lt_prog_compiler_static_F77='-non_shared'
20149         ;;
20150       esac
20151       ;;
20152
20153     osf3* | osf4* | osf5*)
20154       lt_prog_compiler_wl_F77='-Wl,'
20155       # All OSF/1 code is PIC.
20156       lt_prog_compiler_static_F77='-non_shared'
20157       ;;
20158
20159     sco3.2v5*)
20160       lt_prog_compiler_pic_F77='-Kpic'
20161       lt_prog_compiler_static_F77='-dn'
20162       ;;
20163
20164     solaris*)
20165       lt_prog_compiler_pic_F77='-KPIC'
20166       lt_prog_compiler_static_F77='-Bstatic'
20167       case $cc_basename in
20168       f77* | f90* | f95*)
20169         lt_prog_compiler_wl_F77='-Qoption ld ';;
20170       *)
20171         lt_prog_compiler_wl_F77='-Wl,';;
20172       esac
20173       ;;
20174
20175     sunos4*)
20176       lt_prog_compiler_wl_F77='-Qoption ld '
20177       lt_prog_compiler_pic_F77='-PIC'
20178       lt_prog_compiler_static_F77='-Bstatic'
20179       ;;
20180
20181     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20182       lt_prog_compiler_wl_F77='-Wl,'
20183       lt_prog_compiler_pic_F77='-KPIC'
20184       lt_prog_compiler_static_F77='-Bstatic'
20185       ;;
20186
20187     sysv4*MP*)
20188       if test -d /usr/nec ;then
20189         lt_prog_compiler_pic_F77='-Kconform_pic'
20190         lt_prog_compiler_static_F77='-Bstatic'
20191       fi
20192       ;;
20193
20194     unicos*)
20195       lt_prog_compiler_wl_F77='-Wl,'
20196       lt_prog_compiler_can_build_shared_F77=no
20197       ;;
20198
20199     uts4*)
20200       lt_prog_compiler_pic_F77='-pic'
20201       lt_prog_compiler_static_F77='-Bstatic'
20202       ;;
20203
20204     *)
20205       lt_prog_compiler_can_build_shared_F77=no
20206       ;;
20207     esac
20208   fi
20209
20210 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
20211 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
20212
20213 #
20214 # Check to make sure the PIC flag actually works.
20215 #
20216 if test -n "$lt_prog_compiler_pic_F77"; then
20217
20218 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
20219 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
20220 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
20221   echo $ECHO_N "(cached) $ECHO_C" >&6
20222 else
20223   lt_prog_compiler_pic_works_F77=no
20224   ac_outfile=conftest.$ac_objext
20225    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20226    lt_compiler_flag="$lt_prog_compiler_pic_F77"
20227    # Insert the option either (1) after the last *FLAGS variable, or
20228    # (2) before a word containing "conftest.", or (3) at the end.
20229    # Note that $ac_compile itself does not contain backslashes and begins
20230    # with a dollar sign (not a hyphen), so the echo should work correctly.
20231    # The option is referenced via a variable to avoid confusing sed.
20232    lt_compile=`echo "$ac_compile" | $SED \
20233    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
20234    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20235    -e 's:$: $lt_compiler_flag:'`
20236    (eval echo "\"\$as_me:20236: $lt_compile\"" >&5)
20237    (eval "$lt_compile" 2>conftest.err)
20238    ac_status=$?
20239    cat conftest.err >&5
20240    echo "$as_me:20240: \$? = $ac_status" >&5
20241    if (exit $ac_status) && test -s "$ac_outfile"; then
20242      # The compiler can only warn and ignore the option if not recognized
20243      # So say no if there are warnings other than the usual output.
20244      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
20245      $SED '/^$/d' conftest.err >conftest.er2
20246      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
20247        lt_prog_compiler_pic_works_F77=yes
20248      fi
20249    fi
20250    $rm conftest*
20251
20252 fi
20253 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
20254 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
20255
20256 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
20257     case $lt_prog_compiler_pic_F77 in
20258      "" | " "*) ;;
20259      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
20260      esac
20261 else
20262     lt_prog_compiler_pic_F77=
20263      lt_prog_compiler_can_build_shared_F77=no
20264 fi
20265
20266 fi
20267 case "$host_os" in
20268   # For platforms which do not support PIC, -DPIC is meaningless:
20269   *djgpp*)
20270     lt_prog_compiler_pic_F77=
20271     ;;
20272   *)
20273     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
20274     ;;
20275 esac
20276
20277 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
20278 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
20279 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
20280   echo $ECHO_N "(cached) $ECHO_C" >&6
20281 else
20282   lt_cv_prog_compiler_c_o_F77=no
20283    $rm -r conftest 2>/dev/null
20284    mkdir conftest
20285    cd conftest
20286    mkdir out
20287    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20288
20289    lt_compiler_flag="-o out/conftest2.$ac_objext"
20290    # Insert the option either (1) after the last *FLAGS variable, or
20291    # (2) before a word containing "conftest.", or (3) at the end.
20292    # Note that $ac_compile itself does not contain backslashes and begins
20293    # with a dollar sign (not a hyphen), so the echo should work correctly.
20294    lt_compile=`echo "$ac_compile" | $SED \
20295    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
20296    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20297    -e 's:$: $lt_compiler_flag:'`
20298    (eval echo "\"\$as_me:20298: $lt_compile\"" >&5)
20299    (eval "$lt_compile" 2>out/conftest.err)
20300    ac_status=$?
20301    cat out/conftest.err >&5
20302    echo "$as_me:20302: \$? = $ac_status" >&5
20303    if (exit $ac_status) && test -s out/conftest2.$ac_objext
20304    then
20305      # The compiler can only warn and ignore the option if not recognized
20306      # So say no if there are warnings
20307      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
20308      $SED '/^$/d' out/conftest.err >out/conftest.er2
20309      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20310        lt_cv_prog_compiler_c_o_F77=yes
20311      fi
20312    fi
20313    chmod u+w .
20314    $rm conftest*
20315    # SGI C++ compiler will create directory out/ii_files/ for
20316    # template instantiation
20317    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
20318    $rm out/* && rmdir out
20319    cd ..
20320    rmdir conftest
20321    $rm conftest*
20322
20323 fi
20324 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
20325 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
20326
20327
20328 hard_links="nottested"
20329 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
20330   # do not overwrite the value of need_locks provided by the user
20331   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
20332 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
20333   hard_links=yes
20334   $rm conftest*
20335   ln conftest.a conftest.b 2>/dev/null && hard_links=no
20336   touch conftest.a
20337   ln conftest.a conftest.b 2>&5 || hard_links=no
20338   ln conftest.a conftest.b 2>/dev/null && hard_links=no
20339   echo "$as_me:$LINENO: result: $hard_links" >&5
20340 echo "${ECHO_T}$hard_links" >&6
20341   if test "$hard_links" = no; then
20342     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20343 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20344     need_locks=warn
20345   fi
20346 else
20347   need_locks=no
20348 fi
20349
20350 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20351 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
20352
20353   runpath_var=
20354   allow_undefined_flag_F77=
20355   enable_shared_with_static_runtimes_F77=no
20356   archive_cmds_F77=
20357   archive_expsym_cmds_F77=
20358   old_archive_From_new_cmds_F77=
20359   old_archive_from_expsyms_cmds_F77=
20360   export_dynamic_flag_spec_F77=
20361   whole_archive_flag_spec_F77=
20362   thread_safe_flag_spec_F77=
20363   hardcode_libdir_flag_spec_F77=
20364   hardcode_libdir_flag_spec_ld_F77=
20365   hardcode_libdir_separator_F77=
20366   hardcode_direct_F77=no
20367   hardcode_minus_L_F77=no
20368   hardcode_shlibpath_var_F77=unsupported
20369   link_all_deplibs_F77=unknown
20370   hardcode_automatic_F77=no
20371   module_cmds_F77=
20372   module_expsym_cmds_F77=
20373   always_export_symbols_F77=no
20374   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20375   # include_expsyms should be a list of space-separated symbols to be *always*
20376   # included in the symbol list
20377   include_expsyms_F77=
20378   # exclude_expsyms can be an extended regexp of symbols to exclude
20379   # it will be wrapped by ` (' and `)$', so one must not match beginning or
20380   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
20381   # as well as any symbol that contains `d'.
20382   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
20383   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
20384   # platforms (ab)use it in PIC code, but their linkers get confused if
20385   # the symbol is explicitly referenced.  Since portable code cannot
20386   # rely on this symbol name, it's probably fine to never include it in
20387   # preloaded symbol tables.
20388   extract_expsyms_cmds=
20389   # Just being paranoid about ensuring that cc_basename is set.
20390   for cc_temp in $compiler""; do
20391   case $cc_temp in
20392     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20393     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20394     \-*) ;;
20395     *) break;;
20396   esac
20397 done
20398 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20399
20400   case $host_os in
20401   cygwin* | mingw* | pw32*)
20402     # FIXME: the MSVC++ port hasn't been tested in a loooong time
20403     # When not using gcc, we currently assume that we are using
20404     # Microsoft Visual C++.
20405     if test "$GCC" != yes; then
20406       with_gnu_ld=no
20407     fi
20408     ;;
20409   openbsd*)
20410     with_gnu_ld=no
20411     ;;
20412   esac
20413
20414   ld_shlibs_F77=yes
20415   if test "$with_gnu_ld" = yes; then
20416     # If archive_cmds runs LD, not CC, wlarc should be empty
20417     wlarc='${wl}'
20418
20419     # Set some defaults for GNU ld with shared library support. These
20420     # are reset later if shared libraries are not supported. Putting them
20421     # here allows them to be overridden if necessary.
20422     runpath_var=LD_RUN_PATH
20423     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
20424     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
20425     # ancient GNU ld didn't support --whole-archive et. al.
20426     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
20427         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
20428       else
20429         whole_archive_flag_spec_F77=
20430     fi
20431     supports_anon_versioning=no
20432     case `$LD -v 2>/dev/null` in
20433       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
20434       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
20435       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
20436       *\ 2.11.*) ;; # other 2.11 versions
20437       *) supports_anon_versioning=yes ;;
20438     esac
20439
20440     # See if GNU ld supports shared libraries.
20441     case $host_os in
20442     aix3* | aix4* | aix5*)
20443       # On AIX/PPC, the GNU linker is very broken
20444       if test "$host_cpu" != ia64; then
20445         ld_shlibs_F77=no
20446         cat <<EOF 1>&2
20447
20448 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
20449 *** to be unable to reliably create shared libraries on AIX.
20450 *** Therefore, libtool is disabling shared libraries support.  If you
20451 *** really care for shared libraries, you may want to modify your PATH
20452 *** so that a non-GNU linker is found, and then restart.
20453
20454 EOF
20455       fi
20456       ;;
20457
20458     amigaos*)
20459       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)'
20460       hardcode_libdir_flag_spec_F77='-L$libdir'
20461       hardcode_minus_L_F77=yes
20462
20463       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
20464       # that the semantics of dynamic libraries on AmigaOS, at least up
20465       # to version 4, is to share data among multiple programs linked
20466       # with the same dynamic library.  Since this doesn't match the
20467       # behavior of shared libraries on other platforms, we can't use
20468       # them.
20469       ld_shlibs_F77=no
20470       ;;
20471
20472     beos*)
20473       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20474         allow_undefined_flag_F77=unsupported
20475         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
20476         # support --undefined.  This deserves some investigation.  FIXME
20477         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20478       else
20479         ld_shlibs_F77=no
20480       fi
20481       ;;
20482
20483     cygwin* | mingw* | pw32*)
20484       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
20485       # as there is no search path for DLLs.
20486       hardcode_libdir_flag_spec_F77='-L$libdir'
20487       allow_undefined_flag_F77=unsupported
20488       always_export_symbols_F77=no
20489       enable_shared_with_static_runtimes_F77=yes
20490       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
20491
20492       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
20493         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
20494         # If the export-symbols file already is a .def file (1st line
20495         # is EXPORTS), use it as is; otherwise, prepend...
20496         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
20497           cp $export_symbols $output_objdir/$soname.def;
20498         else
20499           echo EXPORTS > $output_objdir/$soname.def;
20500           cat $export_symbols >> $output_objdir/$soname.def;
20501         fi~
20502         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
20503       else
20504         ld_shlibs_F77=no
20505       fi
20506       ;;
20507
20508     linux*)
20509       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20510         tmp_addflag=
20511         case $cc_basename,$host_cpu in
20512         pgcc*)                          # Portland Group C compiler
20513           whole_archive_flag_spec_F77=
20514           ;;
20515         pgf77* | pgf90* )                       # Portland Group f77 and f90 compilers
20516           whole_archive_flag_spec_F77=
20517           tmp_addflag=' -fpic -Mnomain' ;;
20518         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
20519           tmp_addflag=' -i_dynamic' ;;
20520         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
20521           tmp_addflag=' -i_dynamic -nofor_main' ;;
20522         ifc* | ifort*)                  # Intel Fortran compiler
20523           tmp_addflag=' -nofor_main' ;;
20524         esac
20525         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20526
20527         if test $supports_anon_versioning = yes; then
20528           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
20529   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
20530   $echo "local: *; };" >> $output_objdir/$libname.ver~
20531           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
20532         fi
20533       else
20534         ld_shlibs_F77=no
20535       fi
20536       ;;
20537
20538     netbsd*)
20539       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20540         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
20541         wlarc=
20542       else
20543         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20544         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20545       fi
20546       ;;
20547
20548     solaris* | sysv5*)
20549       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
20550         ld_shlibs_F77=no
20551         cat <<EOF 1>&2
20552
20553 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
20554 *** create shared libraries on Solaris systems.  Therefore, libtool
20555 *** is disabling shared libraries support.  We urge you to upgrade GNU
20556 *** binutils to release 2.9.1 or newer.  Another option is to modify
20557 *** your PATH or compiler configuration so that the native linker is
20558 *** used, and then restart.
20559
20560 EOF
20561       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20562         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20563         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20564       else
20565         ld_shlibs_F77=no
20566       fi
20567       ;;
20568
20569     sunos4*)
20570       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
20571       wlarc=
20572       hardcode_direct_F77=yes
20573       hardcode_shlibpath_var_F77=no
20574       ;;
20575
20576     *)
20577       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20578         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20579         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20580       else
20581         ld_shlibs_F77=no
20582       fi
20583       ;;
20584     esac
20585
20586     if test "$ld_shlibs_F77" = no; then
20587       runpath_var=
20588       hardcode_libdir_flag_spec_F77=
20589       export_dynamic_flag_spec_F77=
20590       whole_archive_flag_spec_F77=
20591     fi
20592   else
20593     # PORTME fill in a description of your system's linker (not GNU ld)
20594     case $host_os in
20595     aix3*)
20596       allow_undefined_flag_F77=unsupported
20597       always_export_symbols_F77=yes
20598       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'
20599       # Note: this linker hardcodes the directories in LIBPATH if there
20600       # are no directories specified by -L.
20601       hardcode_minus_L_F77=yes
20602       if test "$GCC" = yes && test -z "$link_static_flag"; then
20603         # Neither direct hardcoding nor static linking is supported with a
20604         # broken collect2.
20605         hardcode_direct_F77=unsupported
20606       fi
20607       ;;
20608
20609     aix4* | aix5*)
20610       if test "$host_cpu" = ia64; then
20611         # On IA64, the linker does run time linking by default, so we don't
20612         # have to do anything special.
20613         aix_use_runtimelinking=no
20614         exp_sym_flag='-Bexport'
20615         no_entry_flag=""
20616       else
20617         # If we're using GNU nm, then we don't want the "-C" option.
20618         # -C means demangle to AIX nm, but means don't demangle with GNU nm
20619         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
20620           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'
20621         else
20622           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'
20623         fi
20624         aix_use_runtimelinking=no
20625
20626         # Test if we are trying to use run time linking or normal
20627         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
20628         # need to do runtime linking.
20629         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
20630           for ld_flag in $LDFLAGS; do
20631           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
20632             aix_use_runtimelinking=yes
20633             break
20634           fi
20635           done
20636         esac
20637
20638         exp_sym_flag='-bexport'
20639         no_entry_flag='-bnoentry'
20640       fi
20641
20642       # When large executables or shared objects are built, AIX ld can
20643       # have problems creating the table of contents.  If linking a library
20644       # or program results in "error TOC overflow" add -mminimal-toc to
20645       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
20646       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
20647
20648       archive_cmds_F77=''
20649       hardcode_direct_F77=yes
20650       hardcode_libdir_separator_F77=':'
20651       link_all_deplibs_F77=yes
20652
20653       if test "$GCC" = yes; then
20654         case $host_os in aix4.[012]|aix4.[012].*)
20655         # We only want to do this on AIX 4.2 and lower, the check
20656         # below for broken collect2 doesn't work under 4.3+
20657           collect2name=`${CC} -print-prog-name=collect2`
20658           if test -f "$collect2name" && \
20659            strings "$collect2name" | grep resolve_lib_name >/dev/null
20660           then
20661           # We have reworked collect2
20662           hardcode_direct_F77=yes
20663           else
20664           # We have old collect2
20665           hardcode_direct_F77=unsupported
20666           # It fails to find uninstalled libraries when the uninstalled
20667           # path is not listed in the libpath.  Setting hardcode_minus_L
20668           # to unsupported forces relinking
20669           hardcode_minus_L_F77=yes
20670           hardcode_libdir_flag_spec_F77='-L$libdir'
20671           hardcode_libdir_separator_F77=
20672           fi
20673         esac
20674         shared_flag='-shared'
20675         if test "$aix_use_runtimelinking" = yes; then
20676           shared_flag="$shared_flag "'${wl}-G'
20677         fi
20678       else
20679         # not using gcc
20680         if test "$host_cpu" = ia64; then
20681         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
20682         # chokes on -Wl,-G. The following line is correct:
20683           shared_flag='-G'
20684         else
20685         if test "$aix_use_runtimelinking" = yes; then
20686             shared_flag='${wl}-G'
20687           else
20688             shared_flag='${wl}-bM:SRE'
20689         fi
20690         fi
20691       fi
20692
20693       # It seems that -bexpall does not export symbols beginning with
20694       # underscore (_), so it is better to generate a list of symbols to export.
20695       always_export_symbols_F77=yes
20696       if test "$aix_use_runtimelinking" = yes; then
20697         # Warning - without using the other runtime loading flags (-brtl),
20698         # -berok will link without error, but may produce a broken library.
20699         allow_undefined_flag_F77='-berok'
20700        # Determine the default libpath from the value encoded in an empty executable.
20701        cat >conftest.$ac_ext <<_ACEOF
20702       program main
20703
20704       end
20705 _ACEOF
20706 rm -f conftest.$ac_objext conftest$ac_exeext
20707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20708   (eval $ac_link) 2>conftest.er1
20709   ac_status=$?
20710   grep -v '^ *+' conftest.er1 >conftest.err
20711   rm -f conftest.er1
20712   cat conftest.err >&5
20713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20714   (exit $ac_status); } &&
20715          { ac_try='test -z "$ac_f77_werror_flag"
20716                          || test ! -s conftest.err'
20717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20718   (eval $ac_try) 2>&5
20719   ac_status=$?
20720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20721   (exit $ac_status); }; } &&
20722          { ac_try='test -s conftest$ac_exeext'
20723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20724   (eval $ac_try) 2>&5
20725   ac_status=$?
20726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20727   (exit $ac_status); }; }; then
20728
20729 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
20730 }'`
20731 # Check for a 64-bit object if we didn't find anything.
20732 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; }
20733 }'`; fi
20734 else
20735   echo "$as_me: failed program was:" >&5
20736 sed 's/^/| /' conftest.$ac_ext >&5
20737
20738 fi
20739 rm -f conftest.err conftest.$ac_objext \
20740       conftest$ac_exeext conftest.$ac_ext
20741 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20742
20743        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
20744         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"
20745        else
20746         if test "$host_cpu" = ia64; then
20747           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
20748           allow_undefined_flag_F77="-z nodefs"
20749           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"
20750         else
20751          # Determine the default libpath from the value encoded in an empty executable.
20752          cat >conftest.$ac_ext <<_ACEOF
20753       program main
20754
20755       end
20756 _ACEOF
20757 rm -f conftest.$ac_objext conftest$ac_exeext
20758 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20759   (eval $ac_link) 2>conftest.er1
20760   ac_status=$?
20761   grep -v '^ *+' conftest.er1 >conftest.err
20762   rm -f conftest.er1
20763   cat conftest.err >&5
20764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20765   (exit $ac_status); } &&
20766          { ac_try='test -z "$ac_f77_werror_flag"
20767                          || test ! -s conftest.err'
20768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20769   (eval $ac_try) 2>&5
20770   ac_status=$?
20771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20772   (exit $ac_status); }; } &&
20773          { ac_try='test -s conftest$ac_exeext'
20774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20775   (eval $ac_try) 2>&5
20776   ac_status=$?
20777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20778   (exit $ac_status); }; }; then
20779
20780 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
20781 }'`
20782 # Check for a 64-bit object if we didn't find anything.
20783 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; }
20784 }'`; fi
20785 else
20786   echo "$as_me: failed program was:" >&5
20787 sed 's/^/| /' conftest.$ac_ext >&5
20788
20789 fi
20790 rm -f conftest.err conftest.$ac_objext \
20791       conftest$ac_exeext conftest.$ac_ext
20792 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20793
20794          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
20795           # Warning - without using the other run time loading flags,
20796           # -berok will link without error, but may produce a broken library.
20797           no_undefined_flag_F77=' ${wl}-bernotok'
20798           allow_undefined_flag_F77=' ${wl}-berok'
20799           # -bexpall does not export symbols beginning with underscore (_)
20800           always_export_symbols_F77=yes
20801           # Exported symbols can be pulled into shared objects from archives
20802           whole_archive_flag_spec_F77=' '
20803           archive_cmds_need_lc_F77=yes
20804           # This is similar to how AIX traditionally builds it's shared libraries.
20805           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'
20806         fi
20807       fi
20808       ;;
20809
20810     amigaos*)
20811       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)'
20812       hardcode_libdir_flag_spec_F77='-L$libdir'
20813       hardcode_minus_L_F77=yes
20814       # see comment about different semantics on the GNU ld section
20815       ld_shlibs_F77=no
20816       ;;
20817
20818     bsdi[45]*)
20819       export_dynamic_flag_spec_F77=-rdynamic
20820       ;;
20821
20822     cygwin* | mingw* | pw32*)
20823       # When not using gcc, we currently assume that we are using
20824       # Microsoft Visual C++.
20825       # hardcode_libdir_flag_spec is actually meaningless, as there is
20826       # no search path for DLLs.
20827       hardcode_libdir_flag_spec_F77=' '
20828       allow_undefined_flag_F77=unsupported
20829       # Tell ltmain to make .lib files, not .a files.
20830       libext=lib
20831       # Tell ltmain to make .dll files, not .so files.
20832       shrext_cmds=".dll"
20833       # FIXME: Setting linknames here is a bad hack.
20834       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
20835       # The linker will automatically build a .lib file if we build a DLL.
20836       old_archive_From_new_cmds_F77='true'
20837       # FIXME: Should let the user specify the lib program.
20838       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
20839       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
20840       enable_shared_with_static_runtimes_F77=yes
20841       ;;
20842
20843     darwin* | rhapsody*)
20844       case "$host_os" in
20845         rhapsody* | darwin1.[012])
20846          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
20847          ;;
20848        *) # Darwin 1.3 on
20849          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
20850            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
20851          else
20852            case ${MACOSX_DEPLOYMENT_TARGET} in
20853              10.[012])
20854                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
20855                ;;
20856              10.*)
20857                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
20858                ;;
20859            esac
20860          fi
20861          ;;
20862       esac
20863       archive_cmds_need_lc_F77=no
20864       hardcode_direct_F77=no
20865       hardcode_automatic_F77=yes
20866       hardcode_shlibpath_var_F77=unsupported
20867       whole_archive_flag_spec_F77=''
20868       link_all_deplibs_F77=yes
20869     if test "$GCC" = yes ; then
20870         output_verbose_link_cmd='echo'
20871         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
20872       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
20873       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
20874       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}'
20875       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}'
20876     else
20877       case $cc_basename in
20878         xlc*)
20879          output_verbose_link_cmd='echo'
20880          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
20881          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
20882           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
20883          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}'
20884           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}'
20885           ;;
20886        *)
20887          ld_shlibs_F77=no
20888           ;;
20889       esac
20890     fi
20891       ;;
20892
20893     dgux*)
20894       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20895       hardcode_libdir_flag_spec_F77='-L$libdir'
20896       hardcode_shlibpath_var_F77=no
20897       ;;
20898
20899     freebsd1*)
20900       ld_shlibs_F77=no
20901       ;;
20902
20903     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
20904     # support.  Future versions do this automatically, but an explicit c++rt0.o
20905     # does not break anything, and helps significantly (at the cost of a little
20906     # extra space).
20907     freebsd2.2*)
20908       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
20909       hardcode_libdir_flag_spec_F77='-R$libdir'
20910       hardcode_direct_F77=yes
20911       hardcode_shlibpath_var_F77=no
20912       ;;
20913
20914     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
20915     freebsd2*)
20916       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
20917       hardcode_direct_F77=yes
20918       hardcode_minus_L_F77=yes
20919       hardcode_shlibpath_var_F77=no
20920       ;;
20921
20922     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
20923     freebsd* | kfreebsd*-gnu | dragonfly*)
20924       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
20925       hardcode_libdir_flag_spec_F77='-R$libdir'
20926       hardcode_direct_F77=yes
20927       hardcode_shlibpath_var_F77=no
20928       ;;
20929
20930     hpux9*)
20931       if test "$GCC" = yes; then
20932         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'
20933       else
20934         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'
20935       fi
20936       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
20937       hardcode_libdir_separator_F77=:
20938       hardcode_direct_F77=yes
20939
20940       # hardcode_minus_L: Not really in the search PATH,
20941       # but as the default location of the library.
20942       hardcode_minus_L_F77=yes
20943       export_dynamic_flag_spec_F77='${wl}-E'
20944       ;;
20945
20946     hpux10* | hpux11*)
20947       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
20948         case "$host_cpu" in
20949         hppa*64*|ia64*)
20950           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20951           ;;
20952         *)
20953           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
20954           ;;
20955         esac
20956       else
20957         case "$host_cpu" in
20958         hppa*64*|ia64*)
20959           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
20960           ;;
20961         *)
20962           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
20963           ;;
20964         esac
20965       fi
20966       if test "$with_gnu_ld" = no; then
20967         case "$host_cpu" in
20968         hppa*64*)
20969           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
20970           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
20971           hardcode_libdir_separator_F77=:
20972           hardcode_direct_F77=no
20973           hardcode_shlibpath_var_F77=no
20974           ;;
20975         ia64*)
20976           hardcode_libdir_flag_spec_F77='-L$libdir'
20977           hardcode_direct_F77=no
20978           hardcode_shlibpath_var_F77=no
20979
20980           # hardcode_minus_L: Not really in the search PATH,
20981           # but as the default location of the library.
20982           hardcode_minus_L_F77=yes
20983           ;;
20984         *)
20985           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
20986           hardcode_libdir_separator_F77=:
20987           hardcode_direct_F77=yes
20988           export_dynamic_flag_spec_F77='${wl}-E'
20989
20990           # hardcode_minus_L: Not really in the search PATH,
20991           # but as the default location of the library.
20992           hardcode_minus_L_F77=yes
20993           ;;
20994         esac
20995       fi
20996       ;;
20997
20998     irix5* | irix6* | nonstopux*)
20999       if test "$GCC" = yes; then
21000         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'
21001       else
21002         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'
21003         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
21004       fi
21005       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
21006       hardcode_libdir_separator_F77=:
21007       link_all_deplibs_F77=yes
21008       ;;
21009
21010     netbsd*)
21011       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21012         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
21013       else
21014         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
21015       fi
21016       hardcode_libdir_flag_spec_F77='-R$libdir'
21017       hardcode_direct_F77=yes
21018       hardcode_shlibpath_var_F77=no
21019       ;;
21020
21021     newsos6)
21022       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21023       hardcode_direct_F77=yes
21024       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
21025       hardcode_libdir_separator_F77=:
21026       hardcode_shlibpath_var_F77=no
21027       ;;
21028
21029     openbsd*)
21030       hardcode_direct_F77=yes
21031       hardcode_shlibpath_var_F77=no
21032       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21033         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
21034         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
21035         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21036         export_dynamic_flag_spec_F77='${wl}-E'
21037       else
21038        case $host_os in
21039          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
21040            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21041            hardcode_libdir_flag_spec_F77='-R$libdir'
21042            ;;
21043          *)
21044            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
21045            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21046            ;;
21047        esac
21048       fi
21049       ;;
21050
21051     os2*)
21052       hardcode_libdir_flag_spec_F77='-L$libdir'
21053       hardcode_minus_L_F77=yes
21054       allow_undefined_flag_F77=unsupported
21055       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'
21056       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
21057       ;;
21058
21059     osf3*)
21060       if test "$GCC" = yes; then
21061         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
21062         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'
21063       else
21064         allow_undefined_flag_F77=' -expect_unresolved \*'
21065         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'
21066       fi
21067       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
21068       hardcode_libdir_separator_F77=:
21069       ;;
21070
21071     osf4* | osf5*)      # as osf3* with the addition of -msym flag
21072       if test "$GCC" = yes; then
21073         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
21074         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'
21075         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
21076       else
21077         allow_undefined_flag_F77=' -expect_unresolved \*'
21078         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'
21079         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~
21080         $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'
21081
21082         # Both c and cxx compiler support -rpath directly
21083         hardcode_libdir_flag_spec_F77='-rpath $libdir'
21084       fi
21085       hardcode_libdir_separator_F77=:
21086       ;;
21087
21088     sco3.2v5*)
21089       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21090       hardcode_shlibpath_var_F77=no
21091       export_dynamic_flag_spec_F77='${wl}-Bexport'
21092       runpath_var=LD_RUN_PATH
21093       hardcode_runpath_var=yes
21094       ;;
21095
21096     solaris*)
21097       no_undefined_flag_F77=' -z text'
21098       if test "$GCC" = yes; then
21099         wlarc='${wl}'
21100         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21101         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
21102           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
21103       else
21104         wlarc=''
21105         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
21106         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
21107         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
21108       fi
21109       hardcode_libdir_flag_spec_F77='-R$libdir'
21110       hardcode_shlibpath_var_F77=no
21111       case $host_os in
21112       solaris2.[0-5] | solaris2.[0-5].*) ;;
21113       *)
21114         # The compiler driver will combine linker options so we
21115         # cannot just pass the convience library names through
21116         # without $wl, iff we do not link with $LD.
21117         # Luckily, gcc supports the same syntax we need for Sun Studio.
21118         # Supported since Solaris 2.6 (maybe 2.5.1?)
21119         case $wlarc in
21120         '')
21121           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
21122         *)
21123           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' ;;
21124         esac ;;
21125       esac
21126       link_all_deplibs_F77=yes
21127       ;;
21128
21129     sunos4*)
21130       if test "x$host_vendor" = xsequent; then
21131         # Use $CC to link under sequent, because it throws in some extra .o
21132         # files that make .init and .fini sections work.
21133         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
21134       else
21135         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
21136       fi
21137       hardcode_libdir_flag_spec_F77='-L$libdir'
21138       hardcode_direct_F77=yes
21139       hardcode_minus_L_F77=yes
21140       hardcode_shlibpath_var_F77=no
21141       ;;
21142
21143     sysv4)
21144       case $host_vendor in
21145         sni)
21146           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21147           hardcode_direct_F77=yes # is this really true???
21148         ;;
21149         siemens)
21150           ## LD is ld it makes a PLAMLIB
21151           ## CC just makes a GrossModule.
21152           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
21153           reload_cmds_F77='$CC -r -o $output$reload_objs'
21154           hardcode_direct_F77=no
21155         ;;
21156         motorola)
21157           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21158           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
21159         ;;
21160       esac
21161       runpath_var='LD_RUN_PATH'
21162       hardcode_shlibpath_var_F77=no
21163       ;;
21164
21165     sysv4.3*)
21166       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21167       hardcode_shlibpath_var_F77=no
21168       export_dynamic_flag_spec_F77='-Bexport'
21169       ;;
21170
21171     sysv4*MP*)
21172       if test -d /usr/nec; then
21173         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21174         hardcode_shlibpath_var_F77=no
21175         runpath_var=LD_RUN_PATH
21176         hardcode_runpath_var=yes
21177         ld_shlibs_F77=yes
21178       fi
21179       ;;
21180
21181     sysv4.2uw2*)
21182       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
21183       hardcode_direct_F77=yes
21184       hardcode_minus_L_F77=no
21185       hardcode_shlibpath_var_F77=no
21186       hardcode_runpath_var=yes
21187       runpath_var=LD_RUN_PATH
21188       ;;
21189
21190    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
21191       no_undefined_flag_F77='${wl}-z ${wl}text'
21192       if test "$GCC" = yes; then
21193         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21194       else
21195         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21196       fi
21197       runpath_var='LD_RUN_PATH'
21198       hardcode_shlibpath_var_F77=no
21199       ;;
21200
21201     sysv5*)
21202       no_undefined_flag_F77=' -z text'
21203       # $CC -shared without GNU ld will not create a library from C++
21204       # object files and a static libstdc++, better avoid it by now
21205       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
21206       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
21207                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
21208       hardcode_libdir_flag_spec_F77=
21209       hardcode_shlibpath_var_F77=no
21210       runpath_var='LD_RUN_PATH'
21211       ;;
21212
21213     uts4*)
21214       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21215       hardcode_libdir_flag_spec_F77='-L$libdir'
21216       hardcode_shlibpath_var_F77=no
21217       ;;
21218
21219     *)
21220       ld_shlibs_F77=no
21221       ;;
21222     esac
21223   fi
21224
21225 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
21226 echo "${ECHO_T}$ld_shlibs_F77" >&6
21227 test "$ld_shlibs_F77" = no && can_build_shared=no
21228
21229 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21230 if test "$GCC" = yes; then
21231   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21232 fi
21233
21234 #
21235 # Do we need to explicitly link libc?
21236 #
21237 case "x$archive_cmds_need_lc_F77" in
21238 x|xyes)
21239   # Assume -lc should be added
21240   archive_cmds_need_lc_F77=yes
21241
21242   if test "$enable_shared" = yes && test "$GCC" = yes; then
21243     case $archive_cmds_F77 in
21244     *'~'*)
21245       # FIXME: we may have to deal with multi-command sequences.
21246       ;;
21247     '$CC '*)
21248       # Test whether the compiler implicitly links with -lc since on some
21249       # systems, -lgcc has to come before -lc. If gcc already passes -lc
21250       # to ld, don't add -lc before -lgcc.
21251       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
21252 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
21253       $rm conftest*
21254       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21255
21256       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21257   (eval $ac_compile) 2>&5
21258   ac_status=$?
21259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21260   (exit $ac_status); } 2>conftest.err; then
21261         soname=conftest
21262         lib=conftest
21263         libobjs=conftest.$ac_objext
21264         deplibs=
21265         wl=$lt_prog_compiler_wl_F77
21266         compiler_flags=-v
21267         linker_flags=-v
21268         verstring=
21269         output_objdir=.
21270         libname=conftest
21271         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
21272         allow_undefined_flag_F77=
21273         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
21274   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
21275   ac_status=$?
21276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21277   (exit $ac_status); }
21278         then
21279           archive_cmds_need_lc_F77=no
21280         else
21281           archive_cmds_need_lc_F77=yes
21282         fi
21283         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
21284       else
21285         cat conftest.err 1>&5
21286       fi
21287       $rm conftest*
21288       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
21289 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
21290       ;;
21291     esac
21292   fi
21293   ;;
21294 esac
21295
21296 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
21297 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
21298 library_names_spec=
21299 libname_spec='lib$name'
21300 soname_spec=
21301 shrext_cmds=".so"
21302 postinstall_cmds=
21303 postuninstall_cmds=
21304 finish_cmds=
21305 finish_eval=
21306 shlibpath_var=
21307 shlibpath_overrides_runpath=unknown
21308 version_type=none
21309 dynamic_linker="$host_os ld.so"
21310 sys_lib_dlsearch_path_spec="/lib /usr/lib"
21311 if test "$GCC" = yes; then
21312   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
21313   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
21314     # if the path contains ";" then we assume it to be the separator
21315     # otherwise default to the standard path separator (i.e. ":") - it is
21316     # assumed that no part of a normal pathname contains ";" but that should
21317     # okay in the real world where ";" in dirpaths is itself problematic.
21318     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
21319   else
21320     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
21321   fi
21322 else
21323   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
21324 fi
21325 need_lib_prefix=unknown
21326 hardcode_into_libs=no
21327
21328 # when you set need_version to no, make sure it does not cause -set_version
21329 # flags to be left without arguments
21330 need_version=unknown
21331
21332 case $host_os in
21333 aix3*)
21334   version_type=linux
21335   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
21336   shlibpath_var=LIBPATH
21337
21338   # AIX 3 has no versioning support, so we append a major version to the name.
21339   soname_spec='${libname}${release}${shared_ext}$major'
21340   ;;
21341
21342 aix4* | aix5*)
21343   version_type=linux
21344   need_lib_prefix=no
21345   need_version=no
21346   hardcode_into_libs=yes
21347   if test "$host_cpu" = ia64; then
21348     # AIX 5 supports IA64
21349     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
21350     shlibpath_var=LD_LIBRARY_PATH
21351   else
21352     # With GCC up to 2.95.x, collect2 would create an import file
21353     # for dependence libraries.  The import file would start with
21354     # the line `#! .'.  This would cause the generated library to
21355     # depend on `.', always an invalid library.  This was fixed in
21356     # development snapshots of GCC prior to 3.0.
21357     case $host_os in
21358       aix4 | aix4.[01] | aix4.[01].*)
21359       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21360            echo ' yes '
21361            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
21362         :
21363       else
21364         can_build_shared=no
21365       fi
21366       ;;
21367     esac
21368     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
21369     # soname into executable. Probably we can add versioning support to
21370     # collect2, so additional links can be useful in future.
21371     if test "$aix_use_runtimelinking" = yes; then
21372       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21373       # instead of lib<name>.a to let people know that these are not
21374       # typical AIX shared libraries.
21375       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21376     else
21377       # We preserve .a as extension for shared libraries through AIX4.2
21378       # and later when we are not doing run time linking.
21379       library_names_spec='${libname}${release}.a $libname.a'
21380       soname_spec='${libname}${release}${shared_ext}$major'
21381     fi
21382     shlibpath_var=LIBPATH
21383   fi
21384   ;;
21385
21386 amigaos*)
21387   library_names_spec='$libname.ixlibrary $libname.a'
21388   # Create ${libname}_ixlibrary.a entries in /sys/libs.
21389   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'
21390   ;;
21391
21392 beos*)
21393   library_names_spec='${libname}${shared_ext}'
21394   dynamic_linker="$host_os ld.so"
21395   shlibpath_var=LIBRARY_PATH
21396   ;;
21397
21398 bsdi[45]*)
21399   version_type=linux
21400   need_version=no
21401   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21402   soname_spec='${libname}${release}${shared_ext}$major'
21403   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
21404   shlibpath_var=LD_LIBRARY_PATH
21405   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21406   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
21407   # the default ld.so.conf also contains /usr/contrib/lib and
21408   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21409   # libtool to hard-code these into programs
21410   ;;
21411
21412 cygwin* | mingw* | pw32*)
21413   version_type=windows
21414   shrext_cmds=".dll"
21415   need_version=no
21416   need_lib_prefix=no
21417
21418   case $GCC,$host_os in
21419   yes,cygwin* | yes,mingw* | yes,pw32*)
21420     library_names_spec='$libname.dll.a'
21421     # DLL is installed to $(libdir)/../bin by postinstall_cmds
21422     postinstall_cmds='base_file=`basename \${file}`~
21423       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
21424       dldir=$destdir/`dirname \$dlpath`~
21425       test -d \$dldir || mkdir -p \$dldir~
21426       $install_prog $dir/$dlname \$dldir/$dlname'
21427     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21428       dlpath=$dir/\$dldll~
21429        $rm \$dlpath'
21430     shlibpath_overrides_runpath=yes
21431
21432     case $host_os in
21433     cygwin*)
21434       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21435       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21436       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
21437       ;;
21438     mingw*)
21439       # MinGW DLLs use traditional 'lib' prefix
21440       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21441       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
21442       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
21443         # It is most probably a Windows format PATH printed by
21444         # mingw gcc, but we are running on Cygwin. Gcc prints its search
21445         # path with ; separators, and with drive letters. We can handle the
21446         # drive letters (cygwin fileutils understands them), so leave them,
21447         # especially as we might pass files found there to a mingw objdump,
21448         # which wouldn't understand a cygwinified path. Ahh.
21449         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
21450       else
21451         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
21452       fi
21453       ;;
21454     pw32*)
21455       # pw32 DLLs use 'pw' prefix rather than 'lib'
21456       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21457       ;;
21458     esac
21459     ;;
21460
21461   *)
21462     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
21463     ;;
21464   esac
21465   dynamic_linker='Win32 ld.exe'
21466   # FIXME: first we should search . and the directory the executable is in
21467   shlibpath_var=PATH
21468   ;;
21469
21470 darwin* | rhapsody*)
21471   dynamic_linker="$host_os dyld"
21472   version_type=darwin
21473   need_lib_prefix=no
21474   need_version=no
21475   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
21476   soname_spec='${libname}${release}${major}$shared_ext'
21477   shlibpath_overrides_runpath=yes
21478   shlibpath_var=DYLD_LIBRARY_PATH
21479   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
21480   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
21481   if test "$GCC" = yes; then
21482     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"`
21483   else
21484     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
21485   fi
21486   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
21487   ;;
21488
21489 dgux*)
21490   version_type=linux
21491   need_lib_prefix=no
21492   need_version=no
21493   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
21494   soname_spec='${libname}${release}${shared_ext}$major'
21495   shlibpath_var=LD_LIBRARY_PATH
21496   ;;
21497
21498 freebsd1*)
21499   dynamic_linker=no
21500   ;;
21501
21502 kfreebsd*-gnu)
21503   version_type=linux
21504   need_lib_prefix=no
21505   need_version=no
21506   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21507   soname_spec='${libname}${release}${shared_ext}$major'
21508   shlibpath_var=LD_LIBRARY_PATH
21509   shlibpath_overrides_runpath=no
21510   hardcode_into_libs=yes
21511   dynamic_linker='GNU ld.so'
21512   ;;
21513
21514 freebsd* | dragonfly*)
21515   # DragonFly does not have aout.  When/if they implement a new
21516   # versioning mechanism, adjust this.
21517   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
21518   version_type=freebsd-$objformat
21519   case $version_type in
21520     freebsd-elf*)
21521       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21522       need_version=no
21523       need_lib_prefix=no
21524       ;;
21525     freebsd-*)
21526       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21527       need_version=yes
21528       ;;
21529   esac
21530   shlibpath_var=LD_LIBRARY_PATH
21531   case $host_os in
21532   freebsd2*)
21533     shlibpath_overrides_runpath=yes
21534     ;;
21535   freebsd3.[01]* | freebsdelf3.[01]*)
21536     shlibpath_overrides_runpath=yes
21537     hardcode_into_libs=yes
21538     ;;
21539   *) # from 3.2 on
21540     shlibpath_overrides_runpath=no
21541     hardcode_into_libs=yes
21542     ;;
21543   esac
21544   ;;
21545
21546 gnu*)
21547   version_type=linux
21548   need_lib_prefix=no
21549   need_version=no
21550   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21551   soname_spec='${libname}${release}${shared_ext}$major'
21552   shlibpath_var=LD_LIBRARY_PATH
21553   hardcode_into_libs=yes
21554   ;;
21555
21556 hpux9* | hpux10* | hpux11*)
21557   # Give a soname corresponding to the major version so that dld.sl refuses to
21558   # link against other versions.
21559   version_type=sunos
21560   need_lib_prefix=no
21561   need_version=no
21562   case "$host_cpu" in
21563   ia64*)
21564     shrext_cmds='.so'
21565     hardcode_into_libs=yes
21566     dynamic_linker="$host_os dld.so"
21567     shlibpath_var=LD_LIBRARY_PATH
21568     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21569     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21570     soname_spec='${libname}${release}${shared_ext}$major'
21571     if test "X$HPUX_IA64_MODE" = X32; then
21572       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21573     else
21574       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21575     fi
21576     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21577     ;;
21578    hppa*64*)
21579      shrext_cmds='.sl'
21580      hardcode_into_libs=yes
21581      dynamic_linker="$host_os dld.sl"
21582      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21583      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21584      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21585      soname_spec='${libname}${release}${shared_ext}$major'
21586      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21587      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21588      ;;
21589    *)
21590     shrext_cmds='.sl'
21591     dynamic_linker="$host_os dld.sl"
21592     shlibpath_var=SHLIB_PATH
21593     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21594     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21595     soname_spec='${libname}${release}${shared_ext}$major'
21596     ;;
21597   esac
21598   # HP-UX runs *really* slowly unless shared libraries are mode 555.
21599   postinstall_cmds='chmod 555 $lib'
21600   ;;
21601
21602 irix5* | irix6* | nonstopux*)
21603   case $host_os in
21604     nonstopux*) version_type=nonstopux ;;
21605     *)
21606         if test "$lt_cv_prog_gnu_ld" = yes; then
21607                 version_type=linux
21608         else
21609                 version_type=irix
21610         fi ;;
21611   esac
21612   need_lib_prefix=no
21613   need_version=no
21614   soname_spec='${libname}${release}${shared_ext}$major'
21615   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21616   case $host_os in
21617   irix5* | nonstopux*)
21618     libsuff= shlibsuff=
21619     ;;
21620   *)
21621     case $LD in # libtool.m4 will add one of these switches to LD
21622     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21623       libsuff= shlibsuff= libmagic=32-bit;;
21624     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21625       libsuff=32 shlibsuff=N32 libmagic=N32;;
21626     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21627       libsuff=64 shlibsuff=64 libmagic=64-bit;;
21628     *) libsuff= shlibsuff= libmagic=never-match;;
21629     esac
21630     ;;
21631   esac
21632   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21633   shlibpath_overrides_runpath=no
21634   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21635   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21636   hardcode_into_libs=yes
21637   ;;
21638
21639 # No shared lib support for Linux oldld, aout, or coff.
21640 linux*oldld* | linux*aout* | linux*coff*)
21641   dynamic_linker=no
21642   ;;
21643
21644 # This must be Linux ELF.
21645 linux*)
21646   version_type=linux
21647   need_lib_prefix=no
21648   need_version=no
21649   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21650   soname_spec='${libname}${release}${shared_ext}$major'
21651   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21652   shlibpath_var=LD_LIBRARY_PATH
21653   shlibpath_overrides_runpath=no
21654   # This implies no fast_install, which is unacceptable.
21655   # Some rework will be needed to allow for fast_install
21656   # before this can be enabled.
21657   hardcode_into_libs=yes
21658
21659   # find out which ABI we are using
21660   libsuff=
21661   case "$host_cpu" in
21662   x86_64*|s390x*|powerpc64*)
21663     echo '#line 21663 "configure"' > conftest.$ac_ext
21664     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21665   (eval $ac_compile) 2>&5
21666   ac_status=$?
21667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21668   (exit $ac_status); }; then
21669       case `/usr/bin/file conftest.$ac_objext` in
21670       *64-bit*)
21671         libsuff=64
21672         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
21673         ;;
21674       esac
21675     fi
21676     rm -rf conftest*
21677     ;;
21678   esac
21679
21680   # Append ld.so.conf contents to the search path
21681   if test -f /etc/ld.so.conf; then
21682     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/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
21683     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
21684   fi
21685
21686   # We used to test for /lib/ld.so.1 and disable shared libraries on
21687   # powerpc, because MkLinux only supported shared libraries with the
21688   # GNU dynamic linker.  Since this was broken with cross compilers,
21689   # most powerpc-linux boxes support dynamic linking these days and
21690   # people can always --disable-shared, the test was removed, and we
21691   # assume the GNU/Linux dynamic linker is in use.
21692   dynamic_linker='GNU/Linux ld.so'
21693   ;;
21694
21695 knetbsd*-gnu)
21696   version_type=linux
21697   need_lib_prefix=no
21698   need_version=no
21699   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21700   soname_spec='${libname}${release}${shared_ext}$major'
21701   shlibpath_var=LD_LIBRARY_PATH
21702   shlibpath_overrides_runpath=no
21703   hardcode_into_libs=yes
21704   dynamic_linker='GNU ld.so'
21705   ;;
21706
21707 netbsd*)
21708   version_type=sunos
21709   need_lib_prefix=no
21710   need_version=no
21711   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21712     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21713     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21714     dynamic_linker='NetBSD (a.out) ld.so'
21715   else
21716     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21717     soname_spec='${libname}${release}${shared_ext}$major'
21718     dynamic_linker='NetBSD ld.elf_so'
21719   fi
21720   shlibpath_var=LD_LIBRARY_PATH
21721   shlibpath_overrides_runpath=yes
21722   hardcode_into_libs=yes
21723   ;;
21724
21725 newsos6)
21726   version_type=linux
21727   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21728   shlibpath_var=LD_LIBRARY_PATH
21729   shlibpath_overrides_runpath=yes
21730   ;;
21731
21732 nto-qnx*)
21733   version_type=linux
21734   need_lib_prefix=no
21735   need_version=no
21736   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21737   soname_spec='${libname}${release}${shared_ext}$major'
21738   shlibpath_var=LD_LIBRARY_PATH
21739   shlibpath_overrides_runpath=yes
21740   ;;
21741
21742 openbsd*)
21743   version_type=sunos
21744   need_lib_prefix=no
21745   need_version=no
21746   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21747   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21748   shlibpath_var=LD_LIBRARY_PATH
21749   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21750     case $host_os in
21751       openbsd2.[89] | openbsd2.[89].*)
21752         shlibpath_overrides_runpath=no
21753         ;;
21754       *)
21755         shlibpath_overrides_runpath=yes
21756         ;;
21757       esac
21758   else
21759     shlibpath_overrides_runpath=yes
21760   fi
21761   ;;
21762
21763 os2*)
21764   libname_spec='$name'
21765   shrext_cmds=".dll"
21766   need_lib_prefix=no
21767   library_names_spec='$libname${shared_ext} $libname.a'
21768   dynamic_linker='OS/2 ld.exe'
21769   shlibpath_var=LIBPATH
21770   ;;
21771
21772 osf3* | osf4* | osf5*)
21773   version_type=osf
21774   need_lib_prefix=no
21775   need_version=no
21776   soname_spec='${libname}${release}${shared_ext}$major'
21777   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21778   shlibpath_var=LD_LIBRARY_PATH
21779   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21780   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21781   ;;
21782
21783 sco3.2v5*)
21784   version_type=osf
21785   soname_spec='${libname}${release}${shared_ext}$major'
21786   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21787   shlibpath_var=LD_LIBRARY_PATH
21788   ;;
21789
21790 solaris*)
21791   version_type=linux
21792   need_lib_prefix=no
21793   need_version=no
21794   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21795   soname_spec='${libname}${release}${shared_ext}$major'
21796   shlibpath_var=LD_LIBRARY_PATH
21797   shlibpath_overrides_runpath=yes
21798   hardcode_into_libs=yes
21799   # ldd complains unless libraries are executable
21800   postinstall_cmds='chmod +x $lib'
21801   ;;
21802
21803 sunos4*)
21804   version_type=sunos
21805   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21806   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21807   shlibpath_var=LD_LIBRARY_PATH
21808   shlibpath_overrides_runpath=yes
21809   if test "$with_gnu_ld" = yes; then
21810     need_lib_prefix=no
21811   fi
21812   need_version=yes
21813   ;;
21814
21815 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
21816   version_type=linux
21817   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21818   soname_spec='${libname}${release}${shared_ext}$major'
21819   shlibpath_var=LD_LIBRARY_PATH
21820   case $host_vendor in
21821     sni)
21822       shlibpath_overrides_runpath=no
21823       need_lib_prefix=no
21824       export_dynamic_flag_spec='${wl}-Blargedynsym'
21825       runpath_var=LD_RUN_PATH
21826       ;;
21827     siemens)
21828       need_lib_prefix=no
21829       ;;
21830     motorola)
21831       need_lib_prefix=no
21832       need_version=no
21833       shlibpath_overrides_runpath=no
21834       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21835       ;;
21836   esac
21837   ;;
21838
21839 sysv4*MP*)
21840   if test -d /usr/nec ;then
21841     version_type=linux
21842     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21843     soname_spec='$libname${shared_ext}.$major'
21844     shlibpath_var=LD_LIBRARY_PATH
21845   fi
21846   ;;
21847
21848 uts4*)
21849   version_type=linux
21850   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21851   soname_spec='${libname}${release}${shared_ext}$major'
21852   shlibpath_var=LD_LIBRARY_PATH
21853   ;;
21854
21855 *)
21856   dynamic_linker=no
21857   ;;
21858 esac
21859 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
21860 echo "${ECHO_T}$dynamic_linker" >&6
21861 test "$dynamic_linker" = no && can_build_shared=no
21862
21863 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
21864 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
21865 hardcode_action_F77=
21866 if test -n "$hardcode_libdir_flag_spec_F77" || \
21867    test -n "$runpath_var_F77" || \
21868    test "X$hardcode_automatic_F77" = "Xyes" ; then
21869
21870   # We can hardcode non-existant directories.
21871   if test "$hardcode_direct_F77" != no &&
21872      # If the only mechanism to avoid hardcoding is shlibpath_var, we
21873      # have to relink, otherwise we might link with an installed library
21874      # when we should be linking with a yet-to-be-installed one
21875      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
21876      test "$hardcode_minus_L_F77" != no; then
21877     # Linking always hardcodes the temporary library directory.
21878     hardcode_action_F77=relink
21879   else
21880     # We can link without hardcoding, and we can hardcode nonexisting dirs.
21881     hardcode_action_F77=immediate
21882   fi
21883 else
21884   # We cannot hardcode anything, or else we can only hardcode existing
21885   # directories.
21886   hardcode_action_F77=unsupported
21887 fi
21888 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
21889 echo "${ECHO_T}$hardcode_action_F77" >&6
21890
21891 if test "$hardcode_action_F77" = relink; then
21892   # Fast installation is not supported
21893   enable_fast_install=no
21894 elif test "$shlibpath_overrides_runpath" = yes ||
21895      test "$enable_shared" = no; then
21896   # Fast installation is not necessary
21897   enable_fast_install=needless
21898 fi
21899
21900 striplib=
21901 old_striplib=
21902 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
21903 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
21904 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
21905   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
21906   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
21907   echo "$as_me:$LINENO: result: yes" >&5
21908 echo "${ECHO_T}yes" >&6
21909 else
21910 # FIXME - insert some real tests, host_os isn't really good enough
21911   case $host_os in
21912    darwin*)
21913        if test -n "$STRIP" ; then
21914          striplib="$STRIP -x"
21915          echo "$as_me:$LINENO: result: yes" >&5
21916 echo "${ECHO_T}yes" >&6
21917        else
21918   echo "$as_me:$LINENO: result: no" >&5
21919 echo "${ECHO_T}no" >&6
21920 fi
21921        ;;
21922    *)
21923   echo "$as_me:$LINENO: result: no" >&5
21924 echo "${ECHO_T}no" >&6
21925     ;;
21926   esac
21927 fi
21928
21929
21930
21931 # The else clause should only fire when bootstrapping the
21932 # libtool distribution, otherwise you forgot to ship ltmain.sh
21933 # with your package, and you will get complaints that there are
21934 # no rules to generate ltmain.sh.
21935 if test -f "$ltmain"; then
21936   # See if we are running on zsh, and set the options which allow our commands through
21937   # without removal of \ escapes.
21938   if test -n "${ZSH_VERSION+set}" ; then
21939     setopt NO_GLOB_SUBST
21940   fi
21941   # Now quote all the things that may contain metacharacters while being
21942   # careful not to overquote the AC_SUBSTed values.  We take copies of the
21943   # variables and quote the copies for generation of the libtool script.
21944   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
21945     SED SHELL STRIP \
21946     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
21947     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
21948     deplibs_check_method reload_flag reload_cmds need_locks \
21949     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
21950     lt_cv_sys_global_symbol_to_c_name_address \
21951     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
21952     old_postinstall_cmds old_postuninstall_cmds \
21953     compiler_F77 \
21954     CC_F77 \
21955     LD_F77 \
21956     lt_prog_compiler_wl_F77 \
21957     lt_prog_compiler_pic_F77 \
21958     lt_prog_compiler_static_F77 \
21959     lt_prog_compiler_no_builtin_flag_F77 \
21960     export_dynamic_flag_spec_F77 \
21961     thread_safe_flag_spec_F77 \
21962     whole_archive_flag_spec_F77 \
21963     enable_shared_with_static_runtimes_F77 \
21964     old_archive_cmds_F77 \
21965     old_archive_from_new_cmds_F77 \
21966     predep_objects_F77 \
21967     postdep_objects_F77 \
21968     predeps_F77 \
21969     postdeps_F77 \
21970     compiler_lib_search_path_F77 \
21971     archive_cmds_F77 \
21972     archive_expsym_cmds_F77 \
21973     postinstall_cmds_F77 \
21974     postuninstall_cmds_F77 \
21975     old_archive_from_expsyms_cmds_F77 \
21976     allow_undefined_flag_F77 \
21977     no_undefined_flag_F77 \
21978     export_symbols_cmds_F77 \
21979     hardcode_libdir_flag_spec_F77 \
21980     hardcode_libdir_flag_spec_ld_F77 \
21981     hardcode_libdir_separator_F77 \
21982     hardcode_automatic_F77 \
21983     module_cmds_F77 \
21984     module_expsym_cmds_F77 \
21985     lt_cv_prog_compiler_c_o_F77 \
21986     exclude_expsyms_F77 \
21987     include_expsyms_F77; do
21988
21989     case $var in
21990     old_archive_cmds_F77 | \
21991     old_archive_from_new_cmds_F77 | \
21992     archive_cmds_F77 | \
21993     archive_expsym_cmds_F77 | \
21994     module_cmds_F77 | \
21995     module_expsym_cmds_F77 | \
21996     old_archive_from_expsyms_cmds_F77 | \
21997     export_symbols_cmds_F77 | \
21998     extract_expsyms_cmds | reload_cmds | finish_cmds | \
21999     postinstall_cmds | postuninstall_cmds | \
22000     old_postinstall_cmds | old_postuninstall_cmds | \
22001     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
22002       # Double-quote double-evaled strings.
22003       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
22004       ;;
22005     *)
22006       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
22007       ;;
22008     esac
22009   done
22010
22011   case $lt_echo in
22012   *'\$0 --fallback-echo"')
22013     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
22014     ;;
22015   esac
22016
22017 cfgfile="$ofile"
22018
22019   cat <<__EOF__ >> "$cfgfile"
22020 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
22021
22022 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22023
22024 # Shell to use when invoking shell scripts.
22025 SHELL=$lt_SHELL
22026
22027 # Whether or not to build shared libraries.
22028 build_libtool_libs=$enable_shared
22029
22030 # Whether or not to build static libraries.
22031 build_old_libs=$enable_static
22032
22033 # Whether or not to add -lc for building shared libraries.
22034 build_libtool_need_lc=$archive_cmds_need_lc_F77
22035
22036 # Whether or not to disallow shared libs when runtime libs are static
22037 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
22038
22039 # Whether or not to optimize for fast installation.
22040 fast_install=$enable_fast_install
22041
22042 # The host system.
22043 host_alias=$host_alias
22044 host=$host
22045 host_os=$host_os
22046
22047 # The build system.
22048 build_alias=$build_alias
22049 build=$build
22050 build_os=$build_os
22051
22052 # An echo program that does not interpret backslashes.
22053 echo=$lt_echo
22054
22055 # The archiver.
22056 AR=$lt_AR
22057 AR_FLAGS=$lt_AR_FLAGS
22058
22059 # A C compiler.
22060 LTCC=$lt_LTCC
22061
22062 # A language-specific compiler.
22063 CC=$lt_compiler_F77
22064
22065 # Is the compiler the GNU C compiler?
22066 with_gcc=$GCC_F77
22067
22068 # An ERE matcher.
22069 EGREP=$lt_EGREP
22070
22071 # The linker used to build libraries.
22072 LD=$lt_LD_F77
22073
22074 # Whether we need hard or soft links.
22075 LN_S=$lt_LN_S
22076
22077 # A BSD-compatible nm program.
22078 NM=$lt_NM
22079
22080 # A symbol stripping program
22081 STRIP=$lt_STRIP
22082
22083 # Used to examine libraries when file_magic_cmd begins "file"
22084 MAGIC_CMD=$MAGIC_CMD
22085
22086 # Used on cygwin: DLL creation program.
22087 DLLTOOL="$DLLTOOL"
22088
22089 # Used on cygwin: object dumper.
22090 OBJDUMP="$OBJDUMP"
22091
22092 # Used on cygwin: assembler.
22093 AS="$AS"
22094
22095 # The name of the directory that contains temporary libtool files.
22096 objdir=$objdir
22097
22098 # How to create reloadable object files.
22099 reload_flag=$lt_reload_flag
22100 reload_cmds=$lt_reload_cmds
22101
22102 # How to pass a linker flag through the compiler.
22103 wl=$lt_lt_prog_compiler_wl_F77
22104
22105 # Object file suffix (normally "o").
22106 objext="$ac_objext"
22107
22108 # Old archive suffix (normally "a").
22109 libext="$libext"
22110
22111 # Shared library suffix (normally ".so").
22112 shrext_cmds='$shrext_cmds'
22113
22114 # Executable file suffix (normally "").
22115 exeext="$exeext"
22116
22117 # Additional compiler flags for building library objects.
22118 pic_flag=$lt_lt_prog_compiler_pic_F77
22119 pic_mode=$pic_mode
22120
22121 # What is the maximum length of a command?
22122 max_cmd_len=$lt_cv_sys_max_cmd_len
22123
22124 # Does compiler simultaneously support -c and -o options?
22125 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
22126
22127 # Must we lock files when doing compilation?
22128 need_locks=$lt_need_locks
22129
22130 # Do we need the lib prefix for modules?
22131 need_lib_prefix=$need_lib_prefix
22132
22133 # Do we need a version for libraries?
22134 need_version=$need_version
22135
22136 # Whether dlopen is supported.
22137 dlopen_support=$enable_dlopen
22138
22139 # Whether dlopen of programs is supported.
22140 dlopen_self=$enable_dlopen_self
22141
22142 # Whether dlopen of statically linked programs is supported.
22143 dlopen_self_static=$enable_dlopen_self_static
22144
22145 # Compiler flag to prevent dynamic linking.
22146 link_static_flag=$lt_lt_prog_compiler_static_F77
22147
22148 # Compiler flag to turn off builtin functions.
22149 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
22150
22151 # Compiler flag to allow reflexive dlopens.
22152 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
22153
22154 # Compiler flag to generate shared objects directly from archives.
22155 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
22156
22157 # Compiler flag to generate thread-safe objects.
22158 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
22159
22160 # Library versioning type.
22161 version_type=$version_type
22162
22163 # Format of library name prefix.
22164 libname_spec=$lt_libname_spec
22165
22166 # List of archive names.  First name is the real one, the rest are links.
22167 # The last name is the one that the linker finds with -lNAME.
22168 library_names_spec=$lt_library_names_spec
22169
22170 # The coded name of the library, if different from the real name.
22171 soname_spec=$lt_soname_spec
22172
22173 # Commands used to build and install an old-style archive.
22174 RANLIB=$lt_RANLIB
22175 old_archive_cmds=$lt_old_archive_cmds_F77
22176 old_postinstall_cmds=$lt_old_postinstall_cmds
22177 old_postuninstall_cmds=$lt_old_postuninstall_cmds
22178
22179 # Create an old-style archive from a shared archive.
22180 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
22181
22182 # Create a temporary old-style archive to link instead of a shared archive.
22183 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
22184
22185 # Commands used to build and install a shared archive.
22186 archive_cmds=$lt_archive_cmds_F77
22187 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
22188 postinstall_cmds=$lt_postinstall_cmds
22189 postuninstall_cmds=$lt_postuninstall_cmds
22190
22191 # Commands used to build a loadable module (assumed same as above if empty)
22192 module_cmds=$lt_module_cmds_F77
22193 module_expsym_cmds=$lt_module_expsym_cmds_F77
22194
22195 # Commands to strip libraries.
22196 old_striplib=$lt_old_striplib
22197 striplib=$lt_striplib
22198
22199 # Dependencies to place before the objects being linked to create a
22200 # shared library.
22201 predep_objects=$lt_predep_objects_F77
22202
22203 # Dependencies to place after the objects being linked to create a
22204 # shared library.
22205 postdep_objects=$lt_postdep_objects_F77
22206
22207 # Dependencies to place before the objects being linked to create a
22208 # shared library.
22209 predeps=$lt_predeps_F77
22210
22211 # Dependencies to place after the objects being linked to create a
22212 # shared library.
22213 postdeps=$lt_postdeps_F77
22214
22215 # The library search path used internally by the compiler when linking
22216 # a shared library.
22217 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
22218
22219 # Method to check whether dependent libraries are shared objects.
22220 deplibs_check_method=$lt_deplibs_check_method
22221
22222 # Command to use when deplibs_check_method == file_magic.
22223 file_magic_cmd=$lt_file_magic_cmd
22224
22225 # Flag that allows shared libraries with undefined symbols to be built.
22226 allow_undefined_flag=$lt_allow_undefined_flag_F77
22227
22228 # Flag that forces no undefined symbols.
22229 no_undefined_flag=$lt_no_undefined_flag_F77
22230
22231 # Commands used to finish a libtool library installation in a directory.
22232 finish_cmds=$lt_finish_cmds
22233
22234 # Same as above, but a single script fragment to be evaled but not shown.
22235 finish_eval=$lt_finish_eval
22236
22237 # Take the output of nm and produce a listing of raw symbols and C names.
22238 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22239
22240 # Transform the output of nm in a proper C declaration
22241 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22242
22243 # Transform the output of nm in a C name address pair
22244 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22245
22246 # This is the shared library runtime path variable.
22247 runpath_var=$runpath_var
22248
22249 # This is the shared library path variable.
22250 shlibpath_var=$shlibpath_var
22251
22252 # Is shlibpath searched before the hard-coded library search path?
22253 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22254
22255 # How to hardcode a shared library path into an executable.
22256 hardcode_action=$hardcode_action_F77
22257
22258 # Whether we should hardcode library paths into libraries.
22259 hardcode_into_libs=$hardcode_into_libs
22260
22261 # Flag to hardcode \$libdir into a binary during linking.
22262 # This must work even if \$libdir does not exist.
22263 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
22264
22265 # If ld is used when linking, flag to hardcode \$libdir into
22266 # a binary during linking. This must work even if \$libdir does
22267 # not exist.
22268 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
22269
22270 # Whether we need a single -rpath flag with a separated argument.
22271 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
22272
22273 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
22274 # resulting binary.
22275 hardcode_direct=$hardcode_direct_F77
22276
22277 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
22278 # resulting binary.
22279 hardcode_minus_L=$hardcode_minus_L_F77
22280
22281 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
22282 # the resulting binary.
22283 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
22284
22285 # Set to yes if building a shared library automatically hardcodes DIR into the library
22286 # and all subsequent libraries and executables linked against it.
22287 hardcode_automatic=$hardcode_automatic_F77
22288
22289 # Variables whose values should be saved in libtool wrapper scripts and
22290 # restored at relink time.
22291 variables_saved_for_relink="$variables_saved_for_relink"
22292
22293 # Whether libtool must link a program against all its dependency libraries.
22294 link_all_deplibs=$link_all_deplibs_F77
22295
22296 # Compile-time system search path for libraries
22297 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22298
22299 # Run-time system search path for libraries
22300 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22301
22302 # Fix the shell variable \$srcfile for the compiler.
22303 fix_srcfile_path="$fix_srcfile_path_F77"
22304
22305 # Set to yes if exported symbols are required.
22306 always_export_symbols=$always_export_symbols_F77
22307
22308 # The commands to list exported symbols.
22309 export_symbols_cmds=$lt_export_symbols_cmds_F77
22310
22311 # The commands to extract the exported symbol list from a shared archive.
22312 extract_expsyms_cmds=$lt_extract_expsyms_cmds
22313
22314 # Symbols that should not be listed in the preloaded symbols.
22315 exclude_expsyms=$lt_exclude_expsyms_F77
22316
22317 # Symbols that must always be exported.
22318 include_expsyms=$lt_include_expsyms_F77
22319
22320 # ### END LIBTOOL TAG CONFIG: $tagname
22321
22322 __EOF__
22323
22324
22325 else
22326   # If there is no Makefile yet, we rely on a make rule to execute
22327   # `config.status --recheck' to rerun these tests and create the
22328   # libtool script then.
22329   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
22330   if test -f "$ltmain_in"; then
22331     test -f Makefile && make "$ltmain"
22332   fi
22333 fi
22334
22335
22336 ac_ext=c
22337 ac_cpp='$CPP $CPPFLAGS'
22338 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22339 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22340 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22341
22342 CC="$lt_save_CC"
22343
22344         else
22345           tagname=""
22346         fi
22347         ;;
22348
22349       GCJ)
22350         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
22351
22352
22353
22354 # Source file extension for Java test sources.
22355 ac_ext=java
22356
22357 # Object file extension for compiled Java test sources.
22358 objext=o
22359 objext_GCJ=$objext
22360
22361 # Code to be used in simple compile tests
22362 lt_simple_compile_test_code="class foo {}\n"
22363
22364 # Code to be used in simple link tests
22365 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
22366
22367 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
22368
22369 # If no C compiler was specified, use CC.
22370 LTCC=${LTCC-"$CC"}
22371
22372 # Allow CC to be a program name with arguments.
22373 compiler=$CC
22374
22375
22376 # save warnings/boilerplate of simple test code
22377 ac_outfile=conftest.$ac_objext
22378 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
22379 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
22380 _lt_compiler_boilerplate=`cat conftest.err`
22381 $rm conftest*
22382
22383 ac_outfile=conftest.$ac_objext
22384 printf "$lt_simple_link_test_code" >conftest.$ac_ext
22385 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
22386 _lt_linker_boilerplate=`cat conftest.err`
22387 $rm conftest*
22388
22389
22390 # Allow CC to be a program name with arguments.
22391 lt_save_CC="$CC"
22392 CC=${GCJ-"gcj"}
22393 compiler=$CC
22394 compiler_GCJ=$CC
22395 for cc_temp in $compiler""; do
22396   case $cc_temp in
22397     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22398     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22399     \-*) ;;
22400     *) break;;
22401   esac
22402 done
22403 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
22404
22405
22406 # GCJ did not exist at the time GCC didn't implicitly link libc in.
22407 archive_cmds_need_lc_GCJ=no
22408
22409 old_archive_cmds_GCJ=$old_archive_cmds
22410
22411 ## CAVEAT EMPTOR:
22412 ## There is no encapsulation within the following macros, do not change
22413 ## the running order or otherwise move them around unless you know exactly
22414 ## what you are doing...
22415
22416 lt_prog_compiler_no_builtin_flag_GCJ=
22417
22418 if test "$GCC" = yes; then
22419   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
22420
22421
22422 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
22423 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
22424 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
22425   echo $ECHO_N "(cached) $ECHO_C" >&6
22426 else
22427   lt_cv_prog_compiler_rtti_exceptions=no
22428   ac_outfile=conftest.$ac_objext
22429    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22430    lt_compiler_flag="-fno-rtti -fno-exceptions"
22431    # Insert the option either (1) after the last *FLAGS variable, or
22432    # (2) before a word containing "conftest.", or (3) at the end.
22433    # Note that $ac_compile itself does not contain backslashes and begins
22434    # with a dollar sign (not a hyphen), so the echo should work correctly.
22435    # The option is referenced via a variable to avoid confusing sed.
22436    lt_compile=`echo "$ac_compile" | $SED \
22437    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
22438    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22439    -e 's:$: $lt_compiler_flag:'`
22440    (eval echo "\"\$as_me:22440: $lt_compile\"" >&5)
22441    (eval "$lt_compile" 2>conftest.err)
22442    ac_status=$?
22443    cat conftest.err >&5
22444    echo "$as_me:22444: \$? = $ac_status" >&5
22445    if (exit $ac_status) && test -s "$ac_outfile"; then
22446      # The compiler can only warn and ignore the option if not recognized
22447      # So say no if there are warnings other than the usual output.
22448      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
22449      $SED '/^$/d' conftest.err >conftest.er2
22450      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
22451        lt_cv_prog_compiler_rtti_exceptions=yes
22452      fi
22453    fi
22454    $rm conftest*
22455
22456 fi
22457 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
22458 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
22459
22460 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
22461     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
22462 else
22463     :
22464 fi
22465
22466 fi
22467
22468 lt_prog_compiler_wl_GCJ=
22469 lt_prog_compiler_pic_GCJ=
22470 lt_prog_compiler_static_GCJ=
22471
22472 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
22473 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
22474
22475   if test "$GCC" = yes; then
22476     lt_prog_compiler_wl_GCJ='-Wl,'
22477     lt_prog_compiler_static_GCJ='-static'
22478
22479     case $host_os in
22480       aix*)
22481       # All AIX code is PIC.
22482       if test "$host_cpu" = ia64; then
22483         # AIX 5 now supports IA64 processor
22484         lt_prog_compiler_static_GCJ='-Bstatic'
22485       fi
22486       ;;
22487
22488     amigaos*)
22489       # FIXME: we need at least 68020 code to build shared libraries, but
22490       # adding the `-m68020' flag to GCC prevents building anything better,
22491       # like `-m68040'.
22492       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
22493       ;;
22494
22495     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
22496       # PIC is the default for these OSes.
22497       ;;
22498
22499     mingw* | pw32* | os2*)
22500       # This hack is so that the source file can tell whether it is being
22501       # built for inclusion in a dll (and should export symbols for example).
22502       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
22503       ;;
22504
22505     darwin* | rhapsody*)
22506       # PIC is the default on this platform
22507       # Common symbols not allowed in MH_DYLIB files
22508       lt_prog_compiler_pic_GCJ='-fno-common'
22509       ;;
22510
22511     msdosdjgpp*)
22512       # Just because we use GCC doesn't mean we suddenly get shared libraries
22513       # on systems that don't support them.
22514       lt_prog_compiler_can_build_shared_GCJ=no
22515       enable_shared=no
22516       ;;
22517
22518     sysv4*MP*)
22519       if test -d /usr/nec; then
22520         lt_prog_compiler_pic_GCJ=-Kconform_pic
22521       fi
22522       ;;
22523
22524     hpux*)
22525       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
22526       # not for PA HP-UX.
22527       case "$host_cpu" in
22528       hppa*64*|ia64*)
22529         # +Z the default
22530         ;;
22531       *)
22532         lt_prog_compiler_pic_GCJ='-fPIC'
22533         ;;
22534       esac
22535       ;;
22536
22537     *)
22538       lt_prog_compiler_pic_GCJ='-fPIC'
22539       ;;
22540     esac
22541   else
22542     # PORTME Check for flag to pass linker flags through the system compiler.
22543     case $host_os in
22544     aix*)
22545       lt_prog_compiler_wl_GCJ='-Wl,'
22546       if test "$host_cpu" = ia64; then
22547         # AIX 5 now supports IA64 processor
22548         lt_prog_compiler_static_GCJ='-Bstatic'
22549       else
22550         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
22551       fi
22552       ;;
22553       darwin*)
22554         # PIC is the default on this platform
22555         # Common symbols not allowed in MH_DYLIB files
22556        case $cc_basename in
22557          xlc*)
22558          lt_prog_compiler_pic_GCJ='-qnocommon'
22559          lt_prog_compiler_wl_GCJ='-Wl,'
22560          ;;
22561        esac
22562        ;;
22563
22564     mingw* | pw32* | os2*)
22565       # This hack is so that the source file can tell whether it is being
22566       # built for inclusion in a dll (and should export symbols for example).
22567       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
22568       ;;
22569
22570     hpux9* | hpux10* | hpux11*)
22571       lt_prog_compiler_wl_GCJ='-Wl,'
22572       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
22573       # not for PA HP-UX.
22574       case "$host_cpu" in
22575       hppa*64*|ia64*)
22576         # +Z the default
22577         ;;
22578       *)
22579         lt_prog_compiler_pic_GCJ='+Z'
22580         ;;
22581       esac
22582       # Is there a better lt_prog_compiler_static that works with the bundled CC?
22583       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
22584       ;;
22585
22586     irix5* | irix6* | nonstopux*)
22587       lt_prog_compiler_wl_GCJ='-Wl,'
22588       # PIC (with -KPIC) is the default.
22589       lt_prog_compiler_static_GCJ='-non_shared'
22590       ;;
22591
22592     newsos6)
22593       lt_prog_compiler_pic_GCJ='-KPIC'
22594       lt_prog_compiler_static_GCJ='-Bstatic'
22595       ;;
22596
22597     linux*)
22598       case $cc_basename in
22599       icc* | ecc*)
22600         lt_prog_compiler_wl_GCJ='-Wl,'
22601         lt_prog_compiler_pic_GCJ='-KPIC'
22602         lt_prog_compiler_static_GCJ='-static'
22603         ;;
22604       pgcc* | pgf77* | pgf90*)
22605         # Portland Group compilers (*not* the Pentium gcc compiler,
22606         # which looks to be a dead project)
22607         lt_prog_compiler_wl_GCJ='-Wl,'
22608         lt_prog_compiler_pic_GCJ='-fpic'
22609         lt_prog_compiler_static_GCJ='-static'
22610         ;;
22611       ccc*)
22612         lt_prog_compiler_wl_GCJ='-Wl,'
22613         # All Alpha code is PIC.
22614         lt_prog_compiler_static_GCJ='-non_shared'
22615         ;;
22616       esac
22617       ;;
22618
22619     osf3* | osf4* | osf5*)
22620       lt_prog_compiler_wl_GCJ='-Wl,'
22621       # All OSF/1 code is PIC.
22622       lt_prog_compiler_static_GCJ='-non_shared'
22623       ;;
22624
22625     sco3.2v5*)
22626       lt_prog_compiler_pic_GCJ='-Kpic'
22627       lt_prog_compiler_static_GCJ='-dn'
22628       ;;
22629
22630     solaris*)
22631       lt_prog_compiler_pic_GCJ='-KPIC'
22632       lt_prog_compiler_static_GCJ='-Bstatic'
22633       case $cc_basename in
22634       f77* | f90* | f95*)
22635         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
22636       *)
22637         lt_prog_compiler_wl_GCJ='-Wl,';;
22638       esac
22639       ;;
22640
22641     sunos4*)
22642       lt_prog_compiler_wl_GCJ='-Qoption ld '
22643       lt_prog_compiler_pic_GCJ='-PIC'
22644       lt_prog_compiler_static_GCJ='-Bstatic'
22645       ;;
22646
22647     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
22648       lt_prog_compiler_wl_GCJ='-Wl,'
22649       lt_prog_compiler_pic_GCJ='-KPIC'
22650       lt_prog_compiler_static_GCJ='-Bstatic'
22651       ;;
22652
22653     sysv4*MP*)
22654       if test -d /usr/nec ;then
22655         lt_prog_compiler_pic_GCJ='-Kconform_pic'
22656         lt_prog_compiler_static_GCJ='-Bstatic'
22657       fi
22658       ;;
22659
22660     unicos*)
22661       lt_prog_compiler_wl_GCJ='-Wl,'
22662       lt_prog_compiler_can_build_shared_GCJ=no
22663       ;;
22664
22665     uts4*)
22666       lt_prog_compiler_pic_GCJ='-pic'
22667       lt_prog_compiler_static_GCJ='-Bstatic'
22668       ;;
22669
22670     *)
22671       lt_prog_compiler_can_build_shared_GCJ=no
22672       ;;
22673     esac
22674   fi
22675
22676 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
22677 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
22678
22679 #
22680 # Check to make sure the PIC flag actually works.
22681 #
22682 if test -n "$lt_prog_compiler_pic_GCJ"; then
22683
22684 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
22685 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
22686 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
22687   echo $ECHO_N "(cached) $ECHO_C" >&6
22688 else
22689   lt_prog_compiler_pic_works_GCJ=no
22690   ac_outfile=conftest.$ac_objext
22691    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22692    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
22693    # Insert the option either (1) after the last *FLAGS variable, or
22694    # (2) before a word containing "conftest.", or (3) at the end.
22695    # Note that $ac_compile itself does not contain backslashes and begins
22696    # with a dollar sign (not a hyphen), so the echo should work correctly.
22697    # The option is referenced via a variable to avoid confusing sed.
22698    lt_compile=`echo "$ac_compile" | $SED \
22699    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
22700    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22701    -e 's:$: $lt_compiler_flag:'`
22702    (eval echo "\"\$as_me:22702: $lt_compile\"" >&5)
22703    (eval "$lt_compile" 2>conftest.err)
22704    ac_status=$?
22705    cat conftest.err >&5
22706    echo "$as_me:22706: \$? = $ac_status" >&5
22707    if (exit $ac_status) && test -s "$ac_outfile"; then
22708      # The compiler can only warn and ignore the option if not recognized
22709      # So say no if there are warnings other than the usual output.
22710      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
22711      $SED '/^$/d' conftest.err >conftest.er2
22712      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
22713        lt_prog_compiler_pic_works_GCJ=yes
22714      fi
22715    fi
22716    $rm conftest*
22717
22718 fi
22719 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
22720 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
22721
22722 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
22723     case $lt_prog_compiler_pic_GCJ in
22724      "" | " "*) ;;
22725      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
22726      esac
22727 else
22728     lt_prog_compiler_pic_GCJ=
22729      lt_prog_compiler_can_build_shared_GCJ=no
22730 fi
22731
22732 fi
22733 case "$host_os" in
22734   # For platforms which do not support PIC, -DPIC is meaningless:
22735   *djgpp*)
22736     lt_prog_compiler_pic_GCJ=
22737     ;;
22738   *)
22739     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
22740     ;;
22741 esac
22742
22743 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
22744 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
22745 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
22746   echo $ECHO_N "(cached) $ECHO_C" >&6
22747 else
22748   lt_cv_prog_compiler_c_o_GCJ=no
22749    $rm -r conftest 2>/dev/null
22750    mkdir conftest
22751    cd conftest
22752    mkdir out
22753    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22754
22755    lt_compiler_flag="-o out/conftest2.$ac_objext"
22756    # Insert the option either (1) after the last *FLAGS variable, or
22757    # (2) before a word containing "conftest.", or (3) at the end.
22758    # Note that $ac_compile itself does not contain backslashes and begins
22759    # with a dollar sign (not a hyphen), so the echo should work correctly.
22760    lt_compile=`echo "$ac_compile" | $SED \
22761    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
22762    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22763    -e 's:$: $lt_compiler_flag:'`
22764    (eval echo "\"\$as_me:22764: $lt_compile\"" >&5)
22765    (eval "$lt_compile" 2>out/conftest.err)
22766    ac_status=$?
22767    cat out/conftest.err >&5
22768    echo "$as_me:22768: \$? = $ac_status" >&5
22769    if (exit $ac_status) && test -s out/conftest2.$ac_objext
22770    then
22771      # The compiler can only warn and ignore the option if not recognized
22772      # So say no if there are warnings
22773      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
22774      $SED '/^$/d' out/conftest.err >out/conftest.er2
22775      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
22776        lt_cv_prog_compiler_c_o_GCJ=yes
22777      fi
22778    fi
22779    chmod u+w .
22780    $rm conftest*
22781    # SGI C++ compiler will create directory out/ii_files/ for
22782    # template instantiation
22783    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
22784    $rm out/* && rmdir out
22785    cd ..
22786    rmdir conftest
22787    $rm conftest*
22788
22789 fi
22790 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
22791 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
22792
22793
22794 hard_links="nottested"
22795 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
22796   # do not overwrite the value of need_locks provided by the user
22797   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
22798 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
22799   hard_links=yes
22800   $rm conftest*
22801   ln conftest.a conftest.b 2>/dev/null && hard_links=no
22802   touch conftest.a
22803   ln conftest.a conftest.b 2>&5 || hard_links=no
22804   ln conftest.a conftest.b 2>/dev/null && hard_links=no
22805   echo "$as_me:$LINENO: result: $hard_links" >&5
22806 echo "${ECHO_T}$hard_links" >&6
22807   if test "$hard_links" = no; then
22808     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
22809 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
22810     need_locks=warn
22811   fi
22812 else
22813   need_locks=no
22814 fi
22815
22816 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
22817 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
22818
22819   runpath_var=
22820   allow_undefined_flag_GCJ=
22821   enable_shared_with_static_runtimes_GCJ=no
22822   archive_cmds_GCJ=
22823   archive_expsym_cmds_GCJ=
22824   old_archive_From_new_cmds_GCJ=
22825   old_archive_from_expsyms_cmds_GCJ=
22826   export_dynamic_flag_spec_GCJ=
22827   whole_archive_flag_spec_GCJ=
22828   thread_safe_flag_spec_GCJ=
22829   hardcode_libdir_flag_spec_GCJ=
22830   hardcode_libdir_flag_spec_ld_GCJ=
22831   hardcode_libdir_separator_GCJ=
22832   hardcode_direct_GCJ=no
22833   hardcode_minus_L_GCJ=no
22834   hardcode_shlibpath_var_GCJ=unsupported
22835   link_all_deplibs_GCJ=unknown
22836   hardcode_automatic_GCJ=no
22837   module_cmds_GCJ=
22838   module_expsym_cmds_GCJ=
22839   always_export_symbols_GCJ=no
22840   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
22841   # include_expsyms should be a list of space-separated symbols to be *always*
22842   # included in the symbol list
22843   include_expsyms_GCJ=
22844   # exclude_expsyms can be an extended regexp of symbols to exclude
22845   # it will be wrapped by ` (' and `)$', so one must not match beginning or
22846   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
22847   # as well as any symbol that contains `d'.
22848   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
22849   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
22850   # platforms (ab)use it in PIC code, but their linkers get confused if
22851   # the symbol is explicitly referenced.  Since portable code cannot
22852   # rely on this symbol name, it's probably fine to never include it in
22853   # preloaded symbol tables.
22854   extract_expsyms_cmds=
22855   # Just being paranoid about ensuring that cc_basename is set.
22856   for cc_temp in $compiler""; do
22857   case $cc_temp in
22858     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22859     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22860     \-*) ;;
22861     *) break;;
22862   esac
22863 done
22864 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
22865
22866   case $host_os in
22867   cygwin* | mingw* | pw32*)
22868     # FIXME: the MSVC++ port hasn't been tested in a loooong time
22869     # When not using gcc, we currently assume that we are using
22870     # Microsoft Visual C++.
22871     if test "$GCC" != yes; then
22872       with_gnu_ld=no
22873     fi
22874     ;;
22875   openbsd*)
22876     with_gnu_ld=no
22877     ;;
22878   esac
22879
22880   ld_shlibs_GCJ=yes
22881   if test "$with_gnu_ld" = yes; then
22882     # If archive_cmds runs LD, not CC, wlarc should be empty
22883     wlarc='${wl}'
22884
22885     # Set some defaults for GNU ld with shared library support. These
22886     # are reset later if shared libraries are not supported. Putting them
22887     # here allows them to be overridden if necessary.
22888     runpath_var=LD_RUN_PATH
22889     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
22890     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
22891     # ancient GNU ld didn't support --whole-archive et. al.
22892     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
22893         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
22894       else
22895         whole_archive_flag_spec_GCJ=
22896     fi
22897     supports_anon_versioning=no
22898     case `$LD -v 2>/dev/null` in
22899       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
22900       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
22901       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
22902       *\ 2.11.*) ;; # other 2.11 versions
22903       *) supports_anon_versioning=yes ;;
22904     esac
22905
22906     # See if GNU ld supports shared libraries.
22907     case $host_os in
22908     aix3* | aix4* | aix5*)
22909       # On AIX/PPC, the GNU linker is very broken
22910       if test "$host_cpu" != ia64; then
22911         ld_shlibs_GCJ=no
22912         cat <<EOF 1>&2
22913
22914 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
22915 *** to be unable to reliably create shared libraries on AIX.
22916 *** Therefore, libtool is disabling shared libraries support.  If you
22917 *** really care for shared libraries, you may want to modify your PATH
22918 *** so that a non-GNU linker is found, and then restart.
22919
22920 EOF
22921       fi
22922       ;;
22923
22924     amigaos*)
22925       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)'
22926       hardcode_libdir_flag_spec_GCJ='-L$libdir'
22927       hardcode_minus_L_GCJ=yes
22928
22929       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
22930       # that the semantics of dynamic libraries on AmigaOS, at least up
22931       # to version 4, is to share data among multiple programs linked
22932       # with the same dynamic library.  Since this doesn't match the
22933       # behavior of shared libraries on other platforms, we can't use
22934       # them.
22935       ld_shlibs_GCJ=no
22936       ;;
22937
22938     beos*)
22939       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22940         allow_undefined_flag_GCJ=unsupported
22941         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
22942         # support --undefined.  This deserves some investigation.  FIXME
22943         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22944       else
22945         ld_shlibs_GCJ=no
22946       fi
22947       ;;
22948
22949     cygwin* | mingw* | pw32*)
22950       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
22951       # as there is no search path for DLLs.
22952       hardcode_libdir_flag_spec_GCJ='-L$libdir'
22953       allow_undefined_flag_GCJ=unsupported
22954       always_export_symbols_GCJ=no
22955       enable_shared_with_static_runtimes_GCJ=yes
22956       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
22957
22958       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
22959         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
22960         # If the export-symbols file already is a .def file (1st line
22961         # is EXPORTS), use it as is; otherwise, prepend...
22962         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
22963           cp $export_symbols $output_objdir/$soname.def;
22964         else
22965           echo EXPORTS > $output_objdir/$soname.def;
22966           cat $export_symbols >> $output_objdir/$soname.def;
22967         fi~
22968         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
22969       else
22970         ld_shlibs_GCJ=no
22971       fi
22972       ;;
22973
22974     linux*)
22975       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22976         tmp_addflag=
22977         case $cc_basename,$host_cpu in
22978         pgcc*)                          # Portland Group C compiler
22979           whole_archive_flag_spec_GCJ=
22980           ;;
22981         pgf77* | pgf90* )                       # Portland Group f77 and f90 compilers
22982           whole_archive_flag_spec_GCJ=
22983           tmp_addflag=' -fpic -Mnomain' ;;
22984         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
22985           tmp_addflag=' -i_dynamic' ;;
22986         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
22987           tmp_addflag=' -i_dynamic -nofor_main' ;;
22988         ifc* | ifort*)                  # Intel Fortran compiler
22989           tmp_addflag=' -nofor_main' ;;
22990         esac
22991         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22992
22993         if test $supports_anon_versioning = yes; then
22994           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
22995   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
22996   $echo "local: *; };" >> $output_objdir/$libname.ver~
22997           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
22998         fi
22999       else
23000         ld_shlibs_GCJ=no
23001       fi
23002       ;;
23003
23004     netbsd*)
23005       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23006         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
23007         wlarc=
23008       else
23009         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23010         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
23011       fi
23012       ;;
23013
23014     solaris* | sysv5*)
23015       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
23016         ld_shlibs_GCJ=no
23017         cat <<EOF 1>&2
23018
23019 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
23020 *** create shared libraries on Solaris systems.  Therefore, libtool
23021 *** is disabling shared libraries support.  We urge you to upgrade GNU
23022 *** binutils to release 2.9.1 or newer.  Another option is to modify
23023 *** your PATH or compiler configuration so that the native linker is
23024 *** used, and then restart.
23025
23026 EOF
23027       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23028         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23029         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
23030       else
23031         ld_shlibs_GCJ=no
23032       fi
23033       ;;
23034
23035     sunos4*)
23036       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
23037       wlarc=
23038       hardcode_direct_GCJ=yes
23039       hardcode_shlibpath_var_GCJ=no
23040       ;;
23041
23042     *)
23043       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
23044         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
23045         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
23046       else
23047         ld_shlibs_GCJ=no
23048       fi
23049       ;;
23050     esac
23051
23052     if test "$ld_shlibs_GCJ" = no; then
23053       runpath_var=
23054       hardcode_libdir_flag_spec_GCJ=
23055       export_dynamic_flag_spec_GCJ=
23056       whole_archive_flag_spec_GCJ=
23057     fi
23058   else
23059     # PORTME fill in a description of your system's linker (not GNU ld)
23060     case $host_os in
23061     aix3*)
23062       allow_undefined_flag_GCJ=unsupported
23063       always_export_symbols_GCJ=yes
23064       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'
23065       # Note: this linker hardcodes the directories in LIBPATH if there
23066       # are no directories specified by -L.
23067       hardcode_minus_L_GCJ=yes
23068       if test "$GCC" = yes && test -z "$link_static_flag"; then
23069         # Neither direct hardcoding nor static linking is supported with a
23070         # broken collect2.
23071         hardcode_direct_GCJ=unsupported
23072       fi
23073       ;;
23074
23075     aix4* | aix5*)
23076       if test "$host_cpu" = ia64; then
23077         # On IA64, the linker does run time linking by default, so we don't
23078         # have to do anything special.
23079         aix_use_runtimelinking=no
23080         exp_sym_flag='-Bexport'
23081         no_entry_flag=""
23082       else
23083         # If we're using GNU nm, then we don't want the "-C" option.
23084         # -C means demangle to AIX nm, but means don't demangle with GNU nm
23085         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
23086           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'
23087         else
23088           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'
23089         fi
23090         aix_use_runtimelinking=no
23091
23092         # Test if we are trying to use run time linking or normal
23093         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
23094         # need to do runtime linking.
23095         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
23096           for ld_flag in $LDFLAGS; do
23097           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
23098             aix_use_runtimelinking=yes
23099             break
23100           fi
23101           done
23102         esac
23103
23104         exp_sym_flag='-bexport'
23105         no_entry_flag='-bnoentry'
23106       fi
23107
23108       # When large executables or shared objects are built, AIX ld can
23109       # have problems creating the table of contents.  If linking a library
23110       # or program results in "error TOC overflow" add -mminimal-toc to
23111       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
23112       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
23113
23114       archive_cmds_GCJ=''
23115       hardcode_direct_GCJ=yes
23116       hardcode_libdir_separator_GCJ=':'
23117       link_all_deplibs_GCJ=yes
23118
23119       if test "$GCC" = yes; then
23120         case $host_os in aix4.[012]|aix4.[012].*)
23121         # We only want to do this on AIX 4.2 and lower, the check
23122         # below for broken collect2 doesn't work under 4.3+
23123           collect2name=`${CC} -print-prog-name=collect2`
23124           if test -f "$collect2name" && \
23125            strings "$collect2name" | grep resolve_lib_name >/dev/null
23126           then
23127           # We have reworked collect2
23128           hardcode_direct_GCJ=yes
23129           else
23130           # We have old collect2
23131           hardcode_direct_GCJ=unsupported
23132           # It fails to find uninstalled libraries when the uninstalled
23133           # path is not listed in the libpath.  Setting hardcode_minus_L
23134           # to unsupported forces relinking
23135           hardcode_minus_L_GCJ=yes
23136           hardcode_libdir_flag_spec_GCJ='-L$libdir'
23137           hardcode_libdir_separator_GCJ=
23138           fi
23139         esac
23140         shared_flag='-shared'
23141         if test "$aix_use_runtimelinking" = yes; then
23142           shared_flag="$shared_flag "'${wl}-G'
23143         fi
23144       else
23145         # not using gcc
23146         if test "$host_cpu" = ia64; then
23147         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
23148         # chokes on -Wl,-G. The following line is correct:
23149           shared_flag='-G'
23150         else
23151         if test "$aix_use_runtimelinking" = yes; then
23152             shared_flag='${wl}-G'
23153           else
23154             shared_flag='${wl}-bM:SRE'
23155         fi
23156         fi
23157       fi
23158
23159       # It seems that -bexpall does not export symbols beginning with
23160       # underscore (_), so it is better to generate a list of symbols to export.
23161       always_export_symbols_GCJ=yes
23162       if test "$aix_use_runtimelinking" = yes; then
23163         # Warning - without using the other runtime loading flags (-brtl),
23164         # -berok will link without error, but may produce a broken library.
23165         allow_undefined_flag_GCJ='-berok'
23166        # Determine the default libpath from the value encoded in an empty executable.
23167        cat >conftest.$ac_ext <<_ACEOF
23168 /* confdefs.h.  */
23169 _ACEOF
23170 cat confdefs.h >>conftest.$ac_ext
23171 cat >>conftest.$ac_ext <<_ACEOF
23172 /* end confdefs.h.  */
23173
23174 int
23175 main ()
23176 {
23177
23178   ;
23179   return 0;
23180 }
23181 _ACEOF
23182 rm -f conftest.$ac_objext conftest$ac_exeext
23183 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23184   (eval $ac_link) 2>conftest.er1
23185   ac_status=$?
23186   grep -v '^ *+' conftest.er1 >conftest.err
23187   rm -f conftest.er1
23188   cat conftest.err >&5
23189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23190   (exit $ac_status); } &&
23191          { ac_try='test -z "$ac_c_werror_flag"
23192                          || test ! -s conftest.err'
23193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23194   (eval $ac_try) 2>&5
23195   ac_status=$?
23196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23197   (exit $ac_status); }; } &&
23198          { ac_try='test -s conftest$ac_exeext'
23199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23200   (eval $ac_try) 2>&5
23201   ac_status=$?
23202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23203   (exit $ac_status); }; }; then
23204
23205 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
23206 }'`
23207 # Check for a 64-bit object if we didn't find anything.
23208 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; }
23209 }'`; fi
23210 else
23211   echo "$as_me: failed program was:" >&5
23212 sed 's/^/| /' conftest.$ac_ext >&5
23213
23214 fi
23215 rm -f conftest.err conftest.$ac_objext \
23216       conftest$ac_exeext conftest.$ac_ext
23217 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
23218
23219        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
23220         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"
23221        else
23222         if test "$host_cpu" = ia64; then
23223           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
23224           allow_undefined_flag_GCJ="-z nodefs"
23225           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"
23226         else
23227          # Determine the default libpath from the value encoded in an empty executable.
23228          cat >conftest.$ac_ext <<_ACEOF
23229 /* confdefs.h.  */
23230 _ACEOF
23231 cat confdefs.h >>conftest.$ac_ext
23232 cat >>conftest.$ac_ext <<_ACEOF
23233 /* end confdefs.h.  */
23234
23235 int
23236 main ()
23237 {
23238
23239   ;
23240   return 0;
23241 }
23242 _ACEOF
23243 rm -f conftest.$ac_objext conftest$ac_exeext
23244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23245   (eval $ac_link) 2>conftest.er1
23246   ac_status=$?
23247   grep -v '^ *+' conftest.er1 >conftest.err
23248   rm -f conftest.er1
23249   cat conftest.err >&5
23250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23251   (exit $ac_status); } &&
23252          { ac_try='test -z "$ac_c_werror_flag"
23253                          || test ! -s conftest.err'
23254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23255   (eval $ac_try) 2>&5
23256   ac_status=$?
23257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23258   (exit $ac_status); }; } &&
23259          { ac_try='test -s conftest$ac_exeext'
23260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23261   (eval $ac_try) 2>&5
23262   ac_status=$?
23263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23264   (exit $ac_status); }; }; then
23265
23266 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
23267 }'`
23268 # Check for a 64-bit object if we didn't find anything.
23269 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; }
23270 }'`; fi
23271 else
23272   echo "$as_me: failed program was:" >&5
23273 sed 's/^/| /' conftest.$ac_ext >&5
23274
23275 fi
23276 rm -f conftest.err conftest.$ac_objext \
23277       conftest$ac_exeext conftest.$ac_ext
23278 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
23279
23280          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
23281           # Warning - without using the other run time loading flags,
23282           # -berok will link without error, but may produce a broken library.
23283           no_undefined_flag_GCJ=' ${wl}-bernotok'
23284           allow_undefined_flag_GCJ=' ${wl}-berok'
23285           # -bexpall does not export symbols beginning with underscore (_)
23286           always_export_symbols_GCJ=yes
23287           # Exported symbols can be pulled into shared objects from archives
23288           whole_archive_flag_spec_GCJ=' '
23289           archive_cmds_need_lc_GCJ=yes
23290           # This is similar to how AIX traditionally builds it's shared libraries.
23291           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'
23292         fi
23293       fi
23294       ;;
23295
23296     amigaos*)
23297       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)'
23298       hardcode_libdir_flag_spec_GCJ='-L$libdir'
23299       hardcode_minus_L_GCJ=yes
23300       # see comment about different semantics on the GNU ld section
23301       ld_shlibs_GCJ=no
23302       ;;
23303
23304     bsdi[45]*)
23305       export_dynamic_flag_spec_GCJ=-rdynamic
23306       ;;
23307
23308     cygwin* | mingw* | pw32*)
23309       # When not using gcc, we currently assume that we are using
23310       # Microsoft Visual C++.
23311       # hardcode_libdir_flag_spec is actually meaningless, as there is
23312       # no search path for DLLs.
23313       hardcode_libdir_flag_spec_GCJ=' '
23314       allow_undefined_flag_GCJ=unsupported
23315       # Tell ltmain to make .lib files, not .a files.
23316       libext=lib
23317       # Tell ltmain to make .dll files, not .so files.
23318       shrext_cmds=".dll"
23319       # FIXME: Setting linknames here is a bad hack.
23320       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
23321       # The linker will automatically build a .lib file if we build a DLL.
23322       old_archive_From_new_cmds_GCJ='true'
23323       # FIXME: Should let the user specify the lib program.
23324       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
23325       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
23326       enable_shared_with_static_runtimes_GCJ=yes
23327       ;;
23328
23329     darwin* | rhapsody*)
23330       case "$host_os" in
23331         rhapsody* | darwin1.[012])
23332          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
23333          ;;
23334        *) # Darwin 1.3 on
23335          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
23336            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
23337          else
23338            case ${MACOSX_DEPLOYMENT_TARGET} in
23339              10.[012])
23340                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
23341                ;;
23342              10.*)
23343                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
23344                ;;
23345            esac
23346          fi
23347          ;;
23348       esac
23349       archive_cmds_need_lc_GCJ=no
23350       hardcode_direct_GCJ=no
23351       hardcode_automatic_GCJ=yes
23352       hardcode_shlibpath_var_GCJ=unsupported
23353       whole_archive_flag_spec_GCJ=''
23354       link_all_deplibs_GCJ=yes
23355     if test "$GCC" = yes ; then
23356         output_verbose_link_cmd='echo'
23357         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
23358       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
23359       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
23360       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}'
23361       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}'
23362     else
23363       case $cc_basename in
23364         xlc*)
23365          output_verbose_link_cmd='echo'
23366          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
23367          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
23368           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
23369          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}'
23370           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}'
23371           ;;
23372        *)
23373          ld_shlibs_GCJ=no
23374           ;;
23375       esac
23376     fi
23377       ;;
23378
23379     dgux*)
23380       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23381       hardcode_libdir_flag_spec_GCJ='-L$libdir'
23382       hardcode_shlibpath_var_GCJ=no
23383       ;;
23384
23385     freebsd1*)
23386       ld_shlibs_GCJ=no
23387       ;;
23388
23389     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
23390     # support.  Future versions do this automatically, but an explicit c++rt0.o
23391     # does not break anything, and helps significantly (at the cost of a little
23392     # extra space).
23393     freebsd2.2*)
23394       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
23395       hardcode_libdir_flag_spec_GCJ='-R$libdir'
23396       hardcode_direct_GCJ=yes
23397       hardcode_shlibpath_var_GCJ=no
23398       ;;
23399
23400     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
23401     freebsd2*)
23402       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
23403       hardcode_direct_GCJ=yes
23404       hardcode_minus_L_GCJ=yes
23405       hardcode_shlibpath_var_GCJ=no
23406       ;;
23407
23408     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
23409     freebsd* | kfreebsd*-gnu | dragonfly*)
23410       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
23411       hardcode_libdir_flag_spec_GCJ='-R$libdir'
23412       hardcode_direct_GCJ=yes
23413       hardcode_shlibpath_var_GCJ=no
23414       ;;
23415
23416     hpux9*)
23417       if test "$GCC" = yes; then
23418         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'
23419       else
23420         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'
23421       fi
23422       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
23423       hardcode_libdir_separator_GCJ=:
23424       hardcode_direct_GCJ=yes
23425
23426       # hardcode_minus_L: Not really in the search PATH,
23427       # but as the default location of the library.
23428       hardcode_minus_L_GCJ=yes
23429       export_dynamic_flag_spec_GCJ='${wl}-E'
23430       ;;
23431
23432     hpux10* | hpux11*)
23433       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
23434         case "$host_cpu" in
23435         hppa*64*|ia64*)
23436           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
23437           ;;
23438         *)
23439           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
23440           ;;
23441         esac
23442       else
23443         case "$host_cpu" in
23444         hppa*64*|ia64*)
23445           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
23446           ;;
23447         *)
23448           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
23449           ;;
23450         esac
23451       fi
23452       if test "$with_gnu_ld" = no; then
23453         case "$host_cpu" in
23454         hppa*64*)
23455           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
23456           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
23457           hardcode_libdir_separator_GCJ=:
23458           hardcode_direct_GCJ=no
23459           hardcode_shlibpath_var_GCJ=no
23460           ;;
23461         ia64*)
23462           hardcode_libdir_flag_spec_GCJ='-L$libdir'
23463           hardcode_direct_GCJ=no
23464           hardcode_shlibpath_var_GCJ=no
23465
23466           # hardcode_minus_L: Not really in the search PATH,
23467           # but as the default location of the library.
23468           hardcode_minus_L_GCJ=yes
23469           ;;
23470         *)
23471           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
23472           hardcode_libdir_separator_GCJ=:
23473           hardcode_direct_GCJ=yes
23474           export_dynamic_flag_spec_GCJ='${wl}-E'
23475
23476           # hardcode_minus_L: Not really in the search PATH,
23477           # but as the default location of the library.
23478           hardcode_minus_L_GCJ=yes
23479           ;;
23480         esac
23481       fi
23482       ;;
23483
23484     irix5* | irix6* | nonstopux*)
23485       if test "$GCC" = yes; then
23486         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'
23487       else
23488         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'
23489         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
23490       fi
23491       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
23492       hardcode_libdir_separator_GCJ=:
23493       link_all_deplibs_GCJ=yes
23494       ;;
23495
23496     netbsd*)
23497       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23498         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
23499       else
23500         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
23501       fi
23502       hardcode_libdir_flag_spec_GCJ='-R$libdir'
23503       hardcode_direct_GCJ=yes
23504       hardcode_shlibpath_var_GCJ=no
23505       ;;
23506
23507     newsos6)
23508       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23509       hardcode_direct_GCJ=yes
23510       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
23511       hardcode_libdir_separator_GCJ=:
23512       hardcode_shlibpath_var_GCJ=no
23513       ;;
23514
23515     openbsd*)
23516       hardcode_direct_GCJ=yes
23517       hardcode_shlibpath_var_GCJ=no
23518       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23519         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
23520         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
23521         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
23522         export_dynamic_flag_spec_GCJ='${wl}-E'
23523       else
23524        case $host_os in
23525          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
23526            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
23527            hardcode_libdir_flag_spec_GCJ='-R$libdir'
23528            ;;
23529          *)
23530            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
23531            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
23532            ;;
23533        esac
23534       fi
23535       ;;
23536
23537     os2*)
23538       hardcode_libdir_flag_spec_GCJ='-L$libdir'
23539       hardcode_minus_L_GCJ=yes
23540       allow_undefined_flag_GCJ=unsupported
23541       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'
23542       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
23543       ;;
23544
23545     osf3*)
23546       if test "$GCC" = yes; then
23547         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
23548         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'
23549       else
23550         allow_undefined_flag_GCJ=' -expect_unresolved \*'
23551         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'
23552       fi
23553       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
23554       hardcode_libdir_separator_GCJ=:
23555       ;;
23556
23557     osf4* | osf5*)      # as osf3* with the addition of -msym flag
23558       if test "$GCC" = yes; then
23559         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
23560         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'
23561         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
23562       else
23563         allow_undefined_flag_GCJ=' -expect_unresolved \*'
23564         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'
23565         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~
23566         $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'
23567
23568         # Both c and cxx compiler support -rpath directly
23569         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
23570       fi
23571       hardcode_libdir_separator_GCJ=:
23572       ;;
23573
23574     sco3.2v5*)
23575       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23576       hardcode_shlibpath_var_GCJ=no
23577       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
23578       runpath_var=LD_RUN_PATH
23579       hardcode_runpath_var=yes
23580       ;;
23581
23582     solaris*)
23583       no_undefined_flag_GCJ=' -z text'
23584       if test "$GCC" = yes; then
23585         wlarc='${wl}'
23586         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
23587         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
23588           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
23589       else
23590         wlarc=''
23591         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
23592         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
23593         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
23594       fi
23595       hardcode_libdir_flag_spec_GCJ='-R$libdir'
23596       hardcode_shlibpath_var_GCJ=no
23597       case $host_os in
23598       solaris2.[0-5] | solaris2.[0-5].*) ;;
23599       *)
23600         # The compiler driver will combine linker options so we
23601         # cannot just pass the convience library names through
23602         # without $wl, iff we do not link with $LD.
23603         # Luckily, gcc supports the same syntax we need for Sun Studio.
23604         # Supported since Solaris 2.6 (maybe 2.5.1?)
23605         case $wlarc in
23606         '')
23607           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
23608         *)
23609           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' ;;
23610         esac ;;
23611       esac
23612       link_all_deplibs_GCJ=yes
23613       ;;
23614
23615     sunos4*)
23616       if test "x$host_vendor" = xsequent; then
23617         # Use $CC to link under sequent, because it throws in some extra .o
23618         # files that make .init and .fini sections work.
23619         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
23620       else
23621         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
23622       fi
23623       hardcode_libdir_flag_spec_GCJ='-L$libdir'
23624       hardcode_direct_GCJ=yes
23625       hardcode_minus_L_GCJ=yes
23626       hardcode_shlibpath_var_GCJ=no
23627       ;;
23628
23629     sysv4)
23630       case $host_vendor in
23631         sni)
23632           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23633           hardcode_direct_GCJ=yes # is this really true???
23634         ;;
23635         siemens)
23636           ## LD is ld it makes a PLAMLIB
23637           ## CC just makes a GrossModule.
23638           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
23639           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
23640           hardcode_direct_GCJ=no
23641         ;;
23642         motorola)
23643           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23644           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
23645         ;;
23646       esac
23647       runpath_var='LD_RUN_PATH'
23648       hardcode_shlibpath_var_GCJ=no
23649       ;;
23650
23651     sysv4.3*)
23652       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23653       hardcode_shlibpath_var_GCJ=no
23654       export_dynamic_flag_spec_GCJ='-Bexport'
23655       ;;
23656
23657     sysv4*MP*)
23658       if test -d /usr/nec; then
23659         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23660         hardcode_shlibpath_var_GCJ=no
23661         runpath_var=LD_RUN_PATH
23662         hardcode_runpath_var=yes
23663         ld_shlibs_GCJ=yes
23664       fi
23665       ;;
23666
23667     sysv4.2uw2*)
23668       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
23669       hardcode_direct_GCJ=yes
23670       hardcode_minus_L_GCJ=no
23671       hardcode_shlibpath_var_GCJ=no
23672       hardcode_runpath_var=yes
23673       runpath_var=LD_RUN_PATH
23674       ;;
23675
23676    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
23677       no_undefined_flag_GCJ='${wl}-z ${wl}text'
23678       if test "$GCC" = yes; then
23679         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
23680       else
23681         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
23682       fi
23683       runpath_var='LD_RUN_PATH'
23684       hardcode_shlibpath_var_GCJ=no
23685       ;;
23686
23687     sysv5*)
23688       no_undefined_flag_GCJ=' -z text'
23689       # $CC -shared without GNU ld will not create a library from C++
23690       # object files and a static libstdc++, better avoid it by now
23691       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
23692       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
23693                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
23694       hardcode_libdir_flag_spec_GCJ=
23695       hardcode_shlibpath_var_GCJ=no
23696       runpath_var='LD_RUN_PATH'
23697       ;;
23698
23699     uts4*)
23700       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
23701       hardcode_libdir_flag_spec_GCJ='-L$libdir'
23702       hardcode_shlibpath_var_GCJ=no
23703       ;;
23704
23705     *)
23706       ld_shlibs_GCJ=no
23707       ;;
23708     esac
23709   fi
23710
23711 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
23712 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
23713 test "$ld_shlibs_GCJ" = no && can_build_shared=no
23714
23715 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23716 if test "$GCC" = yes; then
23717   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23718 fi
23719
23720 #
23721 # Do we need to explicitly link libc?
23722 #
23723 case "x$archive_cmds_need_lc_GCJ" in
23724 x|xyes)
23725   # Assume -lc should be added
23726   archive_cmds_need_lc_GCJ=yes
23727
23728   if test "$enable_shared" = yes && test "$GCC" = yes; then
23729     case $archive_cmds_GCJ in
23730     *'~'*)
23731       # FIXME: we may have to deal with multi-command sequences.
23732       ;;
23733     '$CC '*)
23734       # Test whether the compiler implicitly links with -lc since on some
23735       # systems, -lgcc has to come before -lc. If gcc already passes -lc
23736       # to ld, don't add -lc before -lgcc.
23737       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
23738 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
23739       $rm conftest*
23740       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23741
23742       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23743   (eval $ac_compile) 2>&5
23744   ac_status=$?
23745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23746   (exit $ac_status); } 2>conftest.err; then
23747         soname=conftest
23748         lib=conftest
23749         libobjs=conftest.$ac_objext
23750         deplibs=
23751         wl=$lt_prog_compiler_wl_GCJ
23752         compiler_flags=-v
23753         linker_flags=-v
23754         verstring=
23755         output_objdir=.
23756         libname=conftest
23757         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
23758         allow_undefined_flag_GCJ=
23759         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
23760   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
23761   ac_status=$?
23762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23763   (exit $ac_status); }
23764         then
23765           archive_cmds_need_lc_GCJ=no
23766         else
23767           archive_cmds_need_lc_GCJ=yes
23768         fi
23769         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
23770       else
23771         cat conftest.err 1>&5
23772       fi
23773       $rm conftest*
23774       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
23775 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
23776       ;;
23777     esac
23778   fi
23779   ;;
23780 esac
23781
23782 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
23783 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
23784 library_names_spec=
23785 libname_spec='lib$name'
23786 soname_spec=
23787 shrext_cmds=".so"
23788 postinstall_cmds=
23789 postuninstall_cmds=
23790 finish_cmds=
23791 finish_eval=
23792 shlibpath_var=
23793 shlibpath_overrides_runpath=unknown
23794 version_type=none
23795 dynamic_linker="$host_os ld.so"
23796 sys_lib_dlsearch_path_spec="/lib /usr/lib"
23797 if test "$GCC" = yes; then
23798   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
23799   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
23800     # if the path contains ";" then we assume it to be the separator
23801     # otherwise default to the standard path separator (i.e. ":") - it is
23802     # assumed that no part of a normal pathname contains ";" but that should
23803     # okay in the real world where ";" in dirpaths is itself problematic.
23804     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23805   else
23806     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
23807   fi
23808 else
23809   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
23810 fi
23811 need_lib_prefix=unknown
23812 hardcode_into_libs=no
23813
23814 # when you set need_version to no, make sure it does not cause -set_version
23815 # flags to be left without arguments
23816 need_version=unknown
23817
23818 case $host_os in
23819 aix3*)
23820   version_type=linux
23821   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
23822   shlibpath_var=LIBPATH
23823
23824   # AIX 3 has no versioning support, so we append a major version to the name.
23825   soname_spec='${libname}${release}${shared_ext}$major'
23826   ;;
23827
23828 aix4* | aix5*)
23829   version_type=linux
23830   need_lib_prefix=no
23831   need_version=no
23832   hardcode_into_libs=yes
23833   if test "$host_cpu" = ia64; then
23834     # AIX 5 supports IA64
23835     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
23836     shlibpath_var=LD_LIBRARY_PATH
23837   else
23838     # With GCC up to 2.95.x, collect2 would create an import file
23839     # for dependence libraries.  The import file would start with
23840     # the line `#! .'.  This would cause the generated library to
23841     # depend on `.', always an invalid library.  This was fixed in
23842     # development snapshots of GCC prior to 3.0.
23843     case $host_os in
23844       aix4 | aix4.[01] | aix4.[01].*)
23845       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
23846            echo ' yes '
23847            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
23848         :
23849       else
23850         can_build_shared=no
23851       fi
23852       ;;
23853     esac
23854     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
23855     # soname into executable. Probably we can add versioning support to
23856     # collect2, so additional links can be useful in future.
23857     if test "$aix_use_runtimelinking" = yes; then
23858       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
23859       # instead of lib<name>.a to let people know that these are not
23860       # typical AIX shared libraries.
23861       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23862     else
23863       # We preserve .a as extension for shared libraries through AIX4.2
23864       # and later when we are not doing run time linking.
23865       library_names_spec='${libname}${release}.a $libname.a'
23866       soname_spec='${libname}${release}${shared_ext}$major'
23867     fi
23868     shlibpath_var=LIBPATH
23869   fi
23870   ;;
23871
23872 amigaos*)
23873   library_names_spec='$libname.ixlibrary $libname.a'
23874   # Create ${libname}_ixlibrary.a entries in /sys/libs.
23875   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'
23876   ;;
23877
23878 beos*)
23879   library_names_spec='${libname}${shared_ext}'
23880   dynamic_linker="$host_os ld.so"
23881   shlibpath_var=LIBRARY_PATH
23882   ;;
23883
23884 bsdi[45]*)
23885   version_type=linux
23886   need_version=no
23887   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23888   soname_spec='${libname}${release}${shared_ext}$major'
23889   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
23890   shlibpath_var=LD_LIBRARY_PATH
23891   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
23892   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
23893   # the default ld.so.conf also contains /usr/contrib/lib and
23894   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
23895   # libtool to hard-code these into programs
23896   ;;
23897
23898 cygwin* | mingw* | pw32*)
23899   version_type=windows
23900   shrext_cmds=".dll"
23901   need_version=no
23902   need_lib_prefix=no
23903
23904   case $GCC,$host_os in
23905   yes,cygwin* | yes,mingw* | yes,pw32*)
23906     library_names_spec='$libname.dll.a'
23907     # DLL is installed to $(libdir)/../bin by postinstall_cmds
23908     postinstall_cmds='base_file=`basename \${file}`~
23909       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
23910       dldir=$destdir/`dirname \$dlpath`~
23911       test -d \$dldir || mkdir -p \$dldir~
23912       $install_prog $dir/$dlname \$dldir/$dlname'
23913     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
23914       dlpath=$dir/\$dldll~
23915        $rm \$dlpath'
23916     shlibpath_overrides_runpath=yes
23917
23918     case $host_os in
23919     cygwin*)
23920       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
23921       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23922       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
23923       ;;
23924     mingw*)
23925       # MinGW DLLs use traditional 'lib' prefix
23926       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23927       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
23928       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
23929         # It is most probably a Windows format PATH printed by
23930         # mingw gcc, but we are running on Cygwin. Gcc prints its search
23931         # path with ; separators, and with drive letters. We can handle the
23932         # drive letters (cygwin fileutils understands them), so leave them,
23933         # especially as we might pass files found there to a mingw objdump,
23934         # which wouldn't understand a cygwinified path. Ahh.
23935         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23936       else
23937         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
23938       fi
23939       ;;
23940     pw32*)
23941       # pw32 DLLs use 'pw' prefix rather than 'lib'
23942       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23943       ;;
23944     esac
23945     ;;
23946
23947   *)
23948     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
23949     ;;
23950   esac
23951   dynamic_linker='Win32 ld.exe'
23952   # FIXME: first we should search . and the directory the executable is in
23953   shlibpath_var=PATH
23954   ;;
23955
23956 darwin* | rhapsody*)
23957   dynamic_linker="$host_os dyld"
23958   version_type=darwin
23959   need_lib_prefix=no
23960   need_version=no
23961   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
23962   soname_spec='${libname}${release}${major}$shared_ext'
23963   shlibpath_overrides_runpath=yes
23964   shlibpath_var=DYLD_LIBRARY_PATH
23965   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
23966   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
23967   if test "$GCC" = yes; then
23968     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"`
23969   else
23970     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
23971   fi
23972   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
23973   ;;
23974
23975 dgux*)
23976   version_type=linux
23977   need_lib_prefix=no
23978   need_version=no
23979   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
23980   soname_spec='${libname}${release}${shared_ext}$major'
23981   shlibpath_var=LD_LIBRARY_PATH
23982   ;;
23983
23984 freebsd1*)
23985   dynamic_linker=no
23986   ;;
23987
23988 kfreebsd*-gnu)
23989   version_type=linux
23990   need_lib_prefix=no
23991   need_version=no
23992   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23993   soname_spec='${libname}${release}${shared_ext}$major'
23994   shlibpath_var=LD_LIBRARY_PATH
23995   shlibpath_overrides_runpath=no
23996   hardcode_into_libs=yes
23997   dynamic_linker='GNU ld.so'
23998   ;;
23999
24000 freebsd* | dragonfly*)
24001   # DragonFly does not have aout.  When/if they implement a new
24002   # versioning mechanism, adjust this.
24003   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
24004   version_type=freebsd-$objformat
24005   case $version_type in
24006     freebsd-elf*)
24007       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
24008       need_version=no
24009       need_lib_prefix=no
24010       ;;
24011     freebsd-*)
24012       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
24013       need_version=yes
24014       ;;
24015   esac
24016   shlibpath_var=LD_LIBRARY_PATH
24017   case $host_os in
24018   freebsd2*)
24019     shlibpath_overrides_runpath=yes
24020     ;;
24021   freebsd3.[01]* | freebsdelf3.[01]*)
24022     shlibpath_overrides_runpath=yes
24023     hardcode_into_libs=yes
24024     ;;
24025   *) # from 3.2 on
24026     shlibpath_overrides_runpath=no
24027     hardcode_into_libs=yes
24028     ;;
24029   esac
24030   ;;
24031
24032 gnu*)
24033   version_type=linux
24034   need_lib_prefix=no
24035   need_version=no
24036   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
24037   soname_spec='${libname}${release}${shared_ext}$major'
24038   shlibpath_var=LD_LIBRARY_PATH
24039   hardcode_into_libs=yes
24040   ;;
24041
24042 hpux9* | hpux10* | hpux11*)
24043   # Give a soname corresponding to the major version so that dld.sl refuses to
24044   # link against other versions.
24045   version_type=sunos
24046   need_lib_prefix=no
24047   need_version=no
24048   case "$host_cpu" in
24049   ia64*)
24050     shrext_cmds='.so'
24051     hardcode_into_libs=yes
24052     dynamic_linker="$host_os dld.so"
24053     shlibpath_var=LD_LIBRARY_PATH
24054     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
24055     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24056     soname_spec='${libname}${release}${shared_ext}$major'
24057     if test "X$HPUX_IA64_MODE" = X32; then
24058       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
24059     else
24060       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
24061     fi
24062     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
24063     ;;
24064    hppa*64*)
24065      shrext_cmds='.sl'
24066      hardcode_into_libs=yes
24067      dynamic_linker="$host_os dld.sl"
24068      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
24069      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
24070      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24071      soname_spec='${libname}${release}${shared_ext}$major'
24072      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
24073      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
24074      ;;
24075    *)
24076     shrext_cmds='.sl'
24077     dynamic_linker="$host_os dld.sl"
24078     shlibpath_var=SHLIB_PATH
24079     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
24080     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24081     soname_spec='${libname}${release}${shared_ext}$major'
24082     ;;
24083   esac
24084   # HP-UX runs *really* slowly unless shared libraries are mode 555.
24085   postinstall_cmds='chmod 555 $lib'
24086   ;;
24087
24088 irix5* | irix6* | nonstopux*)
24089   case $host_os in
24090     nonstopux*) version_type=nonstopux ;;
24091     *)
24092         if test "$lt_cv_prog_gnu_ld" = yes; then
24093                 version_type=linux
24094         else
24095                 version_type=irix
24096         fi ;;
24097   esac
24098   need_lib_prefix=no
24099   need_version=no
24100   soname_spec='${libname}${release}${shared_ext}$major'
24101   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
24102   case $host_os in
24103   irix5* | nonstopux*)
24104     libsuff= shlibsuff=
24105     ;;
24106   *)
24107     case $LD in # libtool.m4 will add one of these switches to LD
24108     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
24109       libsuff= shlibsuff= libmagic=32-bit;;
24110     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
24111       libsuff=32 shlibsuff=N32 libmagic=N32;;
24112     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
24113       libsuff=64 shlibsuff=64 libmagic=64-bit;;
24114     *) libsuff= shlibsuff= libmagic=never-match;;
24115     esac
24116     ;;
24117   esac
24118   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
24119   shlibpath_overrides_runpath=no
24120   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
24121   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
24122   hardcode_into_libs=yes
24123   ;;
24124
24125 # No shared lib support for Linux oldld, aout, or coff.
24126 linux*oldld* | linux*aout* | linux*coff*)
24127   dynamic_linker=no
24128   ;;
24129
24130 # This must be Linux ELF.
24131 linux*)
24132   version_type=linux
24133   need_lib_prefix=no
24134   need_version=no
24135   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24136   soname_spec='${libname}${release}${shared_ext}$major'
24137   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
24138   shlibpath_var=LD_LIBRARY_PATH
24139   shlibpath_overrides_runpath=no
24140   # This implies no fast_install, which is unacceptable.
24141   # Some rework will be needed to allow for fast_install
24142   # before this can be enabled.
24143   hardcode_into_libs=yes
24144
24145   # find out which ABI we are using
24146   libsuff=
24147   case "$host_cpu" in
24148   x86_64*|s390x*|powerpc64*)
24149     echo '#line 24149 "configure"' > conftest.$ac_ext
24150     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24151   (eval $ac_compile) 2>&5
24152   ac_status=$?
24153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24154   (exit $ac_status); }; then
24155       case `/usr/bin/file conftest.$ac_objext` in
24156       *64-bit*)
24157         libsuff=64
24158         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
24159         ;;
24160       esac
24161     fi
24162     rm -rf conftest*
24163     ;;
24164   esac
24165
24166   # Append ld.so.conf contents to the search path
24167   if test -f /etc/ld.so.conf; then
24168     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/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
24169     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
24170   fi
24171
24172   # We used to test for /lib/ld.so.1 and disable shared libraries on
24173   # powerpc, because MkLinux only supported shared libraries with the
24174   # GNU dynamic linker.  Since this was broken with cross compilers,
24175   # most powerpc-linux boxes support dynamic linking these days and
24176   # people can always --disable-shared, the test was removed, and we
24177   # assume the GNU/Linux dynamic linker is in use.
24178   dynamic_linker='GNU/Linux ld.so'
24179   ;;
24180
24181 knetbsd*-gnu)
24182   version_type=linux
24183   need_lib_prefix=no
24184   need_version=no
24185   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24186   soname_spec='${libname}${release}${shared_ext}$major'
24187   shlibpath_var=LD_LIBRARY_PATH
24188   shlibpath_overrides_runpath=no
24189   hardcode_into_libs=yes
24190   dynamic_linker='GNU ld.so'
24191   ;;
24192
24193 netbsd*)
24194   version_type=sunos
24195   need_lib_prefix=no
24196   need_version=no
24197   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24198     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24199     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
24200     dynamic_linker='NetBSD (a.out) ld.so'
24201   else
24202     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24203     soname_spec='${libname}${release}${shared_ext}$major'
24204     dynamic_linker='NetBSD ld.elf_so'
24205   fi
24206   shlibpath_var=LD_LIBRARY_PATH
24207   shlibpath_overrides_runpath=yes
24208   hardcode_into_libs=yes
24209   ;;
24210
24211 newsos6)
24212   version_type=linux
24213   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24214   shlibpath_var=LD_LIBRARY_PATH
24215   shlibpath_overrides_runpath=yes
24216   ;;
24217
24218 nto-qnx*)
24219   version_type=linux
24220   need_lib_prefix=no
24221   need_version=no
24222   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24223   soname_spec='${libname}${release}${shared_ext}$major'
24224   shlibpath_var=LD_LIBRARY_PATH
24225   shlibpath_overrides_runpath=yes
24226   ;;
24227
24228 openbsd*)
24229   version_type=sunos
24230   need_lib_prefix=no
24231   need_version=no
24232   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24233   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
24234   shlibpath_var=LD_LIBRARY_PATH
24235   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24236     case $host_os in
24237       openbsd2.[89] | openbsd2.[89].*)
24238         shlibpath_overrides_runpath=no
24239         ;;
24240       *)
24241         shlibpath_overrides_runpath=yes
24242         ;;
24243       esac
24244   else
24245     shlibpath_overrides_runpath=yes
24246   fi
24247   ;;
24248
24249 os2*)
24250   libname_spec='$name'
24251   shrext_cmds=".dll"
24252   need_lib_prefix=no
24253   library_names_spec='$libname${shared_ext} $libname.a'
24254   dynamic_linker='OS/2 ld.exe'
24255   shlibpath_var=LIBPATH
24256   ;;
24257
24258 osf3* | osf4* | osf5*)
24259   version_type=osf
24260   need_lib_prefix=no
24261   need_version=no
24262   soname_spec='${libname}${release}${shared_ext}$major'
24263   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24264   shlibpath_var=LD_LIBRARY_PATH
24265   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
24266   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
24267   ;;
24268
24269 sco3.2v5*)
24270   version_type=osf
24271   soname_spec='${libname}${release}${shared_ext}$major'
24272   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24273   shlibpath_var=LD_LIBRARY_PATH
24274   ;;
24275
24276 solaris*)
24277   version_type=linux
24278   need_lib_prefix=no
24279   need_version=no
24280   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24281   soname_spec='${libname}${release}${shared_ext}$major'
24282   shlibpath_var=LD_LIBRARY_PATH
24283   shlibpath_overrides_runpath=yes
24284   hardcode_into_libs=yes
24285   # ldd complains unless libraries are executable
24286   postinstall_cmds='chmod +x $lib'
24287   ;;
24288
24289 sunos4*)
24290   version_type=sunos
24291   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24292   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
24293   shlibpath_var=LD_LIBRARY_PATH
24294   shlibpath_overrides_runpath=yes
24295   if test "$with_gnu_ld" = yes; then
24296     need_lib_prefix=no
24297   fi
24298   need_version=yes
24299   ;;
24300
24301 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
24302   version_type=linux
24303   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24304   soname_spec='${libname}${release}${shared_ext}$major'
24305   shlibpath_var=LD_LIBRARY_PATH
24306   case $host_vendor in
24307     sni)
24308       shlibpath_overrides_runpath=no
24309       need_lib_prefix=no
24310       export_dynamic_flag_spec='${wl}-Blargedynsym'
24311       runpath_var=LD_RUN_PATH
24312       ;;
24313     siemens)
24314       need_lib_prefix=no
24315       ;;
24316     motorola)
24317       need_lib_prefix=no
24318       need_version=no
24319       shlibpath_overrides_runpath=no
24320       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
24321       ;;
24322   esac
24323   ;;
24324
24325 sysv4*MP*)
24326   if test -d /usr/nec ;then
24327     version_type=linux
24328     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
24329     soname_spec='$libname${shared_ext}.$major'
24330     shlibpath_var=LD_LIBRARY_PATH
24331   fi
24332   ;;
24333
24334 uts4*)
24335   version_type=linux
24336   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24337   soname_spec='${libname}${release}${shared_ext}$major'
24338   shlibpath_var=LD_LIBRARY_PATH
24339   ;;
24340
24341 *)
24342   dynamic_linker=no
24343   ;;
24344 esac
24345 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
24346 echo "${ECHO_T}$dynamic_linker" >&6
24347 test "$dynamic_linker" = no && can_build_shared=no
24348
24349 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
24350 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
24351 hardcode_action_GCJ=
24352 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
24353    test -n "$runpath_var_GCJ" || \
24354    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
24355
24356   # We can hardcode non-existant directories.
24357   if test "$hardcode_direct_GCJ" != no &&
24358      # If the only mechanism to avoid hardcoding is shlibpath_var, we
24359      # have to relink, otherwise we might link with an installed library
24360      # when we should be linking with a yet-to-be-installed one
24361      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
24362      test "$hardcode_minus_L_GCJ" != no; then
24363     # Linking always hardcodes the temporary library directory.
24364     hardcode_action_GCJ=relink
24365   else
24366     # We can link without hardcoding, and we can hardcode nonexisting dirs.
24367     hardcode_action_GCJ=immediate
24368   fi
24369 else
24370   # We cannot hardcode anything, or else we can only hardcode existing
24371   # directories.
24372   hardcode_action_GCJ=unsupported
24373 fi
24374 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
24375 echo "${ECHO_T}$hardcode_action_GCJ" >&6
24376
24377 if test "$hardcode_action_GCJ" = relink; then
24378   # Fast installation is not supported
24379   enable_fast_install=no
24380 elif test "$shlibpath_overrides_runpath" = yes ||
24381      test "$enable_shared" = no; then
24382   # Fast installation is not necessary
24383   enable_fast_install=needless
24384 fi
24385
24386 striplib=
24387 old_striplib=
24388 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
24389 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
24390 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
24391   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
24392   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
24393   echo "$as_me:$LINENO: result: yes" >&5
24394 echo "${ECHO_T}yes" >&6
24395 else
24396 # FIXME - insert some real tests, host_os isn't really good enough
24397   case $host_os in
24398    darwin*)
24399        if test -n "$STRIP" ; then
24400          striplib="$STRIP -x"
24401          echo "$as_me:$LINENO: result: yes" >&5
24402 echo "${ECHO_T}yes" >&6
24403        else
24404   echo "$as_me:$LINENO: result: no" >&5
24405 echo "${ECHO_T}no" >&6
24406 fi
24407        ;;
24408    *)
24409   echo "$as_me:$LINENO: result: no" >&5
24410 echo "${ECHO_T}no" >&6
24411     ;;
24412   esac
24413 fi
24414
24415 if test "x$enable_dlopen" != xyes; then
24416   enable_dlopen=unknown
24417   enable_dlopen_self=unknown
24418   enable_dlopen_self_static=unknown
24419 else
24420   lt_cv_dlopen=no
24421   lt_cv_dlopen_libs=
24422
24423   case $host_os in
24424   beos*)
24425     lt_cv_dlopen="load_add_on"
24426     lt_cv_dlopen_libs=
24427     lt_cv_dlopen_self=yes
24428     ;;
24429
24430   mingw* | pw32*)
24431     lt_cv_dlopen="LoadLibrary"
24432     lt_cv_dlopen_libs=
24433    ;;
24434
24435   cygwin*)
24436     lt_cv_dlopen="dlopen"
24437     lt_cv_dlopen_libs=
24438    ;;
24439
24440   darwin*)
24441   # if libdl is installed we need to link against it
24442     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
24443 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
24444 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
24445   echo $ECHO_N "(cached) $ECHO_C" >&6
24446 else
24447   ac_check_lib_save_LIBS=$LIBS
24448 LIBS="-ldl  $LIBS"
24449 cat >conftest.$ac_ext <<_ACEOF
24450 /* confdefs.h.  */
24451 _ACEOF
24452 cat confdefs.h >>conftest.$ac_ext
24453 cat >>conftest.$ac_ext <<_ACEOF
24454 /* end confdefs.h.  */
24455
24456 /* Override any gcc2 internal prototype to avoid an error.  */
24457 #ifdef __cplusplus
24458 extern "C"
24459 #endif
24460 /* We use char because int might match the return type of a gcc2
24461    builtin and then its argument prototype would still apply.  */
24462 char dlopen ();
24463 int
24464 main ()
24465 {
24466 dlopen ();
24467   ;
24468   return 0;
24469 }
24470 _ACEOF
24471 rm -f conftest.$ac_objext conftest$ac_exeext
24472 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24473   (eval $ac_link) 2>conftest.er1
24474   ac_status=$?
24475   grep -v '^ *+' conftest.er1 >conftest.err
24476   rm -f conftest.er1
24477   cat conftest.err >&5
24478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24479   (exit $ac_status); } &&
24480          { ac_try='test -z "$ac_c_werror_flag"
24481                          || test ! -s conftest.err'
24482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24483   (eval $ac_try) 2>&5
24484   ac_status=$?
24485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24486   (exit $ac_status); }; } &&
24487          { ac_try='test -s conftest$ac_exeext'
24488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24489   (eval $ac_try) 2>&5
24490   ac_status=$?
24491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24492   (exit $ac_status); }; }; then
24493   ac_cv_lib_dl_dlopen=yes
24494 else
24495   echo "$as_me: failed program was:" >&5
24496 sed 's/^/| /' conftest.$ac_ext >&5
24497
24498 ac_cv_lib_dl_dlopen=no
24499 fi
24500 rm -f conftest.err conftest.$ac_objext \
24501       conftest$ac_exeext conftest.$ac_ext
24502 LIBS=$ac_check_lib_save_LIBS
24503 fi
24504 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
24505 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
24506 if test $ac_cv_lib_dl_dlopen = yes; then
24507   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
24508 else
24509
24510     lt_cv_dlopen="dyld"
24511     lt_cv_dlopen_libs=
24512     lt_cv_dlopen_self=yes
24513
24514 fi
24515
24516    ;;
24517
24518   *)
24519     echo "$as_me:$LINENO: checking for shl_load" >&5
24520 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
24521 if test "${ac_cv_func_shl_load+set}" = set; then
24522   echo $ECHO_N "(cached) $ECHO_C" >&6
24523 else
24524   cat >conftest.$ac_ext <<_ACEOF
24525 /* confdefs.h.  */
24526 _ACEOF
24527 cat confdefs.h >>conftest.$ac_ext
24528 cat >>conftest.$ac_ext <<_ACEOF
24529 /* end confdefs.h.  */
24530 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
24531    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24532 #define shl_load innocuous_shl_load
24533
24534 /* System header to define __stub macros and hopefully few prototypes,
24535     which can conflict with char shl_load (); below.
24536     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24537     <limits.h> exists even on freestanding compilers.  */
24538
24539 #ifdef __STDC__
24540 # include <limits.h>
24541 #else
24542 # include <assert.h>
24543 #endif
24544
24545 #undef shl_load
24546
24547 /* Override any gcc2 internal prototype to avoid an error.  */
24548 #ifdef __cplusplus
24549 extern "C"
24550 {
24551 #endif
24552 /* We use char because int might match the return type of a gcc2
24553    builtin and then its argument prototype would still apply.  */
24554 char shl_load ();
24555 /* The GNU C library defines this for functions which it implements
24556     to always fail with ENOSYS.  Some functions are actually named
24557     something starting with __ and the normal name is an alias.  */
24558 #if defined (__stub_shl_load) || defined (__stub___shl_load)
24559 choke me
24560 #else
24561 char (*f) () = shl_load;
24562 #endif
24563 #ifdef __cplusplus
24564 }
24565 #endif
24566
24567 int
24568 main ()
24569 {
24570 return f != shl_load;
24571   ;
24572   return 0;
24573 }
24574 _ACEOF
24575 rm -f conftest.$ac_objext conftest$ac_exeext
24576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24577   (eval $ac_link) 2>conftest.er1
24578   ac_status=$?
24579   grep -v '^ *+' conftest.er1 >conftest.err
24580   rm -f conftest.er1
24581   cat conftest.err >&5
24582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24583   (exit $ac_status); } &&
24584          { ac_try='test -z "$ac_c_werror_flag"
24585                          || test ! -s conftest.err'
24586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24587   (eval $ac_try) 2>&5
24588   ac_status=$?
24589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24590   (exit $ac_status); }; } &&
24591          { ac_try='test -s conftest$ac_exeext'
24592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24593   (eval $ac_try) 2>&5
24594   ac_status=$?
24595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24596   (exit $ac_status); }; }; then
24597   ac_cv_func_shl_load=yes
24598 else
24599   echo "$as_me: failed program was:" >&5
24600 sed 's/^/| /' conftest.$ac_ext >&5
24601
24602 ac_cv_func_shl_load=no
24603 fi
24604 rm -f conftest.err conftest.$ac_objext \
24605       conftest$ac_exeext conftest.$ac_ext
24606 fi
24607 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
24608 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
24609 if test $ac_cv_func_shl_load = yes; then
24610   lt_cv_dlopen="shl_load"
24611 else
24612   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
24613 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
24614 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
24615   echo $ECHO_N "(cached) $ECHO_C" >&6
24616 else
24617   ac_check_lib_save_LIBS=$LIBS
24618 LIBS="-ldld  $LIBS"
24619 cat >conftest.$ac_ext <<_ACEOF
24620 /* confdefs.h.  */
24621 _ACEOF
24622 cat confdefs.h >>conftest.$ac_ext
24623 cat >>conftest.$ac_ext <<_ACEOF
24624 /* end confdefs.h.  */
24625
24626 /* Override any gcc2 internal prototype to avoid an error.  */
24627 #ifdef __cplusplus
24628 extern "C"
24629 #endif
24630 /* We use char because int might match the return type of a gcc2
24631    builtin and then its argument prototype would still apply.  */
24632 char shl_load ();
24633 int
24634 main ()
24635 {
24636 shl_load ();
24637   ;
24638   return 0;
24639 }
24640 _ACEOF
24641 rm -f conftest.$ac_objext conftest$ac_exeext
24642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24643   (eval $ac_link) 2>conftest.er1
24644   ac_status=$?
24645   grep -v '^ *+' conftest.er1 >conftest.err
24646   rm -f conftest.er1
24647   cat conftest.err >&5
24648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24649   (exit $ac_status); } &&
24650          { ac_try='test -z "$ac_c_werror_flag"
24651                          || test ! -s conftest.err'
24652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24653   (eval $ac_try) 2>&5
24654   ac_status=$?
24655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24656   (exit $ac_status); }; } &&
24657          { ac_try='test -s conftest$ac_exeext'
24658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24659   (eval $ac_try) 2>&5
24660   ac_status=$?
24661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24662   (exit $ac_status); }; }; then
24663   ac_cv_lib_dld_shl_load=yes
24664 else
24665   echo "$as_me: failed program was:" >&5
24666 sed 's/^/| /' conftest.$ac_ext >&5
24667
24668 ac_cv_lib_dld_shl_load=no
24669 fi
24670 rm -f conftest.err conftest.$ac_objext \
24671       conftest$ac_exeext conftest.$ac_ext
24672 LIBS=$ac_check_lib_save_LIBS
24673 fi
24674 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
24675 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
24676 if test $ac_cv_lib_dld_shl_load = yes; then
24677   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
24678 else
24679   echo "$as_me:$LINENO: checking for dlopen" >&5
24680 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
24681 if test "${ac_cv_func_dlopen+set}" = set; then
24682   echo $ECHO_N "(cached) $ECHO_C" >&6
24683 else
24684   cat >conftest.$ac_ext <<_ACEOF
24685 /* confdefs.h.  */
24686 _ACEOF
24687 cat confdefs.h >>conftest.$ac_ext
24688 cat >>conftest.$ac_ext <<_ACEOF
24689 /* end confdefs.h.  */
24690 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
24691    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24692 #define dlopen innocuous_dlopen
24693
24694 /* System header to define __stub macros and hopefully few prototypes,
24695     which can conflict with char dlopen (); below.
24696     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24697     <limits.h> exists even on freestanding compilers.  */
24698
24699 #ifdef __STDC__
24700 # include <limits.h>
24701 #else
24702 # include <assert.h>
24703 #endif
24704
24705 #undef dlopen
24706
24707 /* Override any gcc2 internal prototype to avoid an error.  */
24708 #ifdef __cplusplus
24709 extern "C"
24710 {
24711 #endif
24712 /* We use char because int might match the return type of a gcc2
24713    builtin and then its argument prototype would still apply.  */
24714 char dlopen ();
24715 /* The GNU C library defines this for functions which it implements
24716     to always fail with ENOSYS.  Some functions are actually named
24717     something starting with __ and the normal name is an alias.  */
24718 #if defined (__stub_dlopen) || defined (__stub___dlopen)
24719 choke me
24720 #else
24721 char (*f) () = dlopen;
24722 #endif
24723 #ifdef __cplusplus
24724 }
24725 #endif
24726
24727 int
24728 main ()
24729 {
24730 return f != dlopen;
24731   ;
24732   return 0;
24733 }
24734 _ACEOF
24735 rm -f conftest.$ac_objext conftest$ac_exeext
24736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24737   (eval $ac_link) 2>conftest.er1
24738   ac_status=$?
24739   grep -v '^ *+' conftest.er1 >conftest.err
24740   rm -f conftest.er1
24741   cat conftest.err >&5
24742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24743   (exit $ac_status); } &&
24744          { ac_try='test -z "$ac_c_werror_flag"
24745                          || test ! -s conftest.err'
24746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24747   (eval $ac_try) 2>&5
24748   ac_status=$?
24749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24750   (exit $ac_status); }; } &&
24751          { ac_try='test -s conftest$ac_exeext'
24752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24753   (eval $ac_try) 2>&5
24754   ac_status=$?
24755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24756   (exit $ac_status); }; }; then
24757   ac_cv_func_dlopen=yes
24758 else
24759   echo "$as_me: failed program was:" >&5
24760 sed 's/^/| /' conftest.$ac_ext >&5
24761
24762 ac_cv_func_dlopen=no
24763 fi
24764 rm -f conftest.err conftest.$ac_objext \
24765       conftest$ac_exeext conftest.$ac_ext
24766 fi
24767 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
24768 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
24769 if test $ac_cv_func_dlopen = yes; then
24770   lt_cv_dlopen="dlopen"
24771 else
24772   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
24773 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
24774 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
24775   echo $ECHO_N "(cached) $ECHO_C" >&6
24776 else
24777   ac_check_lib_save_LIBS=$LIBS
24778 LIBS="-ldl  $LIBS"
24779 cat >conftest.$ac_ext <<_ACEOF
24780 /* confdefs.h.  */
24781 _ACEOF
24782 cat confdefs.h >>conftest.$ac_ext
24783 cat >>conftest.$ac_ext <<_ACEOF
24784 /* end confdefs.h.  */
24785
24786 /* Override any gcc2 internal prototype to avoid an error.  */
24787 #ifdef __cplusplus
24788 extern "C"
24789 #endif
24790 /* We use char because int might match the return type of a gcc2
24791    builtin and then its argument prototype would still apply.  */
24792 char dlopen ();
24793 int
24794 main ()
24795 {
24796 dlopen ();
24797   ;
24798   return 0;
24799 }
24800 _ACEOF
24801 rm -f conftest.$ac_objext conftest$ac_exeext
24802 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24803   (eval $ac_link) 2>conftest.er1
24804   ac_status=$?
24805   grep -v '^ *+' conftest.er1 >conftest.err
24806   rm -f conftest.er1
24807   cat conftest.err >&5
24808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24809   (exit $ac_status); } &&
24810          { ac_try='test -z "$ac_c_werror_flag"
24811                          || test ! -s conftest.err'
24812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24813   (eval $ac_try) 2>&5
24814   ac_status=$?
24815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24816   (exit $ac_status); }; } &&
24817          { ac_try='test -s conftest$ac_exeext'
24818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24819   (eval $ac_try) 2>&5
24820   ac_status=$?
24821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24822   (exit $ac_status); }; }; then
24823   ac_cv_lib_dl_dlopen=yes
24824 else
24825   echo "$as_me: failed program was:" >&5
24826 sed 's/^/| /' conftest.$ac_ext >&5
24827
24828 ac_cv_lib_dl_dlopen=no
24829 fi
24830 rm -f conftest.err conftest.$ac_objext \
24831       conftest$ac_exeext conftest.$ac_ext
24832 LIBS=$ac_check_lib_save_LIBS
24833 fi
24834 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
24835 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
24836 if test $ac_cv_lib_dl_dlopen = yes; then
24837   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
24838 else
24839   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
24840 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
24841 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
24842   echo $ECHO_N "(cached) $ECHO_C" >&6
24843 else
24844   ac_check_lib_save_LIBS=$LIBS
24845 LIBS="-lsvld  $LIBS"
24846 cat >conftest.$ac_ext <<_ACEOF
24847 /* confdefs.h.  */
24848 _ACEOF
24849 cat confdefs.h >>conftest.$ac_ext
24850 cat >>conftest.$ac_ext <<_ACEOF
24851 /* end confdefs.h.  */
24852
24853 /* Override any gcc2 internal prototype to avoid an error.  */
24854 #ifdef __cplusplus
24855 extern "C"
24856 #endif
24857 /* We use char because int might match the return type of a gcc2
24858    builtin and then its argument prototype would still apply.  */
24859 char dlopen ();
24860 int
24861 main ()
24862 {
24863 dlopen ();
24864   ;
24865   return 0;
24866 }
24867 _ACEOF
24868 rm -f conftest.$ac_objext conftest$ac_exeext
24869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24870   (eval $ac_link) 2>conftest.er1
24871   ac_status=$?
24872   grep -v '^ *+' conftest.er1 >conftest.err
24873   rm -f conftest.er1
24874   cat conftest.err >&5
24875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24876   (exit $ac_status); } &&
24877          { ac_try='test -z "$ac_c_werror_flag"
24878                          || test ! -s conftest.err'
24879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24880   (eval $ac_try) 2>&5
24881   ac_status=$?
24882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24883   (exit $ac_status); }; } &&
24884          { ac_try='test -s conftest$ac_exeext'
24885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24886   (eval $ac_try) 2>&5
24887   ac_status=$?
24888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24889   (exit $ac_status); }; }; then
24890   ac_cv_lib_svld_dlopen=yes
24891 else
24892   echo "$as_me: failed program was:" >&5
24893 sed 's/^/| /' conftest.$ac_ext >&5
24894
24895 ac_cv_lib_svld_dlopen=no
24896 fi
24897 rm -f conftest.err conftest.$ac_objext \
24898       conftest$ac_exeext conftest.$ac_ext
24899 LIBS=$ac_check_lib_save_LIBS
24900 fi
24901 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
24902 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
24903 if test $ac_cv_lib_svld_dlopen = yes; then
24904   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
24905 else
24906   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
24907 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
24908 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
24909   echo $ECHO_N "(cached) $ECHO_C" >&6
24910 else
24911   ac_check_lib_save_LIBS=$LIBS
24912 LIBS="-ldld  $LIBS"
24913 cat >conftest.$ac_ext <<_ACEOF
24914 /* confdefs.h.  */
24915 _ACEOF
24916 cat confdefs.h >>conftest.$ac_ext
24917 cat >>conftest.$ac_ext <<_ACEOF
24918 /* end confdefs.h.  */
24919
24920 /* Override any gcc2 internal prototype to avoid an error.  */
24921 #ifdef __cplusplus
24922 extern "C"
24923 #endif
24924 /* We use char because int might match the return type of a gcc2
24925    builtin and then its argument prototype would still apply.  */
24926 char dld_link ();
24927 int
24928 main ()
24929 {
24930 dld_link ();
24931   ;
24932   return 0;
24933 }
24934 _ACEOF
24935 rm -f conftest.$ac_objext conftest$ac_exeext
24936 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24937   (eval $ac_link) 2>conftest.er1
24938   ac_status=$?
24939   grep -v '^ *+' conftest.er1 >conftest.err
24940   rm -f conftest.er1
24941   cat conftest.err >&5
24942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24943   (exit $ac_status); } &&
24944          { ac_try='test -z "$ac_c_werror_flag"
24945                          || test ! -s conftest.err'
24946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24947   (eval $ac_try) 2>&5
24948   ac_status=$?
24949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24950   (exit $ac_status); }; } &&
24951          { ac_try='test -s conftest$ac_exeext'
24952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24953   (eval $ac_try) 2>&5
24954   ac_status=$?
24955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24956   (exit $ac_status); }; }; then
24957   ac_cv_lib_dld_dld_link=yes
24958 else
24959   echo "$as_me: failed program was:" >&5
24960 sed 's/^/| /' conftest.$ac_ext >&5
24961
24962 ac_cv_lib_dld_dld_link=no
24963 fi
24964 rm -f conftest.err conftest.$ac_objext \
24965       conftest$ac_exeext conftest.$ac_ext
24966 LIBS=$ac_check_lib_save_LIBS
24967 fi
24968 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
24969 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
24970 if test $ac_cv_lib_dld_dld_link = yes; then
24971   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
24972 fi
24973
24974
24975 fi
24976
24977
24978 fi
24979
24980
24981 fi
24982
24983
24984 fi
24985
24986
24987 fi
24988
24989     ;;
24990   esac
24991
24992   if test "x$lt_cv_dlopen" != xno; then
24993     enable_dlopen=yes
24994   else
24995     enable_dlopen=no
24996   fi
24997
24998   case $lt_cv_dlopen in
24999   dlopen)
25000     save_CPPFLAGS="$CPPFLAGS"
25001     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
25002
25003     save_LDFLAGS="$LDFLAGS"
25004     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
25005
25006     save_LIBS="$LIBS"
25007     LIBS="$lt_cv_dlopen_libs $LIBS"
25008
25009     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
25010 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
25011 if test "${lt_cv_dlopen_self+set}" = set; then
25012   echo $ECHO_N "(cached) $ECHO_C" >&6
25013 else
25014           if test "$cross_compiling" = yes; then :
25015   lt_cv_dlopen_self=cross
25016 else
25017   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
25018   lt_status=$lt_dlunknown
25019   cat > conftest.$ac_ext <<EOF
25020 #line 25020 "configure"
25021 #include "confdefs.h"
25022
25023 #if HAVE_DLFCN_H
25024 #include <dlfcn.h>
25025 #endif
25026
25027 #include <stdio.h>
25028
25029 #ifdef RTLD_GLOBAL
25030 #  define LT_DLGLOBAL           RTLD_GLOBAL
25031 #else
25032 #  ifdef DL_GLOBAL
25033 #    define LT_DLGLOBAL         DL_GLOBAL
25034 #  else
25035 #    define LT_DLGLOBAL         0
25036 #  endif
25037 #endif
25038
25039 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
25040    find out it does not work in some platform. */
25041 #ifndef LT_DLLAZY_OR_NOW
25042 #  ifdef RTLD_LAZY
25043 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
25044 #  else
25045 #    ifdef DL_LAZY
25046 #      define LT_DLLAZY_OR_NOW          DL_LAZY
25047 #    else
25048 #      ifdef RTLD_NOW
25049 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
25050 #      else
25051 #        ifdef DL_NOW
25052 #          define LT_DLLAZY_OR_NOW      DL_NOW
25053 #        else
25054 #          define LT_DLLAZY_OR_NOW      0
25055 #        endif
25056 #      endif
25057 #    endif
25058 #  endif
25059 #endif
25060
25061 #ifdef __cplusplus
25062 extern "C" void exit (int);
25063 #endif
25064
25065 void fnord() { int i=42;}
25066 int main ()
25067 {
25068   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
25069   int status = $lt_dlunknown;
25070
25071   if (self)
25072     {
25073       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
25074       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
25075       /* dlclose (self); */
25076     }
25077
25078     exit (status);
25079 }
25080 EOF
25081   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25082   (eval $ac_link) 2>&5
25083   ac_status=$?
25084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25085   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
25086     (./conftest; exit; ) 2>/dev/null
25087     lt_status=$?
25088     case x$lt_status in
25089       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
25090       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
25091       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
25092     esac
25093   else :
25094     # compilation failed
25095     lt_cv_dlopen_self=no
25096   fi
25097 fi
25098 rm -fr conftest*
25099
25100
25101 fi
25102 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
25103 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
25104
25105     if test "x$lt_cv_dlopen_self" = xyes; then
25106       LDFLAGS="$LDFLAGS $link_static_flag"
25107       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
25108 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
25109 if test "${lt_cv_dlopen_self_static+set}" = set; then
25110   echo $ECHO_N "(cached) $ECHO_C" >&6
25111 else
25112           if test "$cross_compiling" = yes; then :
25113   lt_cv_dlopen_self_static=cross
25114 else
25115   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
25116   lt_status=$lt_dlunknown
25117   cat > conftest.$ac_ext <<EOF
25118 #line 25118 "configure"
25119 #include "confdefs.h"
25120
25121 #if HAVE_DLFCN_H
25122 #include <dlfcn.h>
25123 #endif
25124
25125 #include <stdio.h>
25126
25127 #ifdef RTLD_GLOBAL
25128 #  define LT_DLGLOBAL           RTLD_GLOBAL
25129 #else
25130 #  ifdef DL_GLOBAL
25131 #    define LT_DLGLOBAL         DL_GLOBAL
25132 #  else
25133 #    define LT_DLGLOBAL         0
25134 #  endif
25135 #endif
25136
25137 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
25138    find out it does not work in some platform. */
25139 #ifndef LT_DLLAZY_OR_NOW
25140 #  ifdef RTLD_LAZY
25141 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
25142 #  else
25143 #    ifdef DL_LAZY
25144 #      define LT_DLLAZY_OR_NOW          DL_LAZY
25145 #    else
25146 #      ifdef RTLD_NOW
25147 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
25148 #      else
25149 #        ifdef DL_NOW
25150 #          define LT_DLLAZY_OR_NOW      DL_NOW
25151 #        else
25152 #          define LT_DLLAZY_OR_NOW      0
25153 #        endif
25154 #      endif
25155 #    endif
25156 #  endif
25157 #endif
25158
25159 #ifdef __cplusplus
25160 extern "C" void exit (int);
25161 #endif
25162
25163 void fnord() { int i=42;}
25164 int main ()
25165 {
25166   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
25167   int status = $lt_dlunknown;
25168
25169   if (self)
25170     {
25171       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
25172       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
25173       /* dlclose (self); */
25174     }
25175
25176     exit (status);
25177 }
25178 EOF
25179   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25180   (eval $ac_link) 2>&5
25181   ac_status=$?
25182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25183   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
25184     (./conftest; exit; ) 2>/dev/null
25185     lt_status=$?
25186     case x$lt_status in
25187       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
25188       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
25189       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
25190     esac
25191   else :
25192     # compilation failed
25193     lt_cv_dlopen_self_static=no
25194   fi
25195 fi
25196 rm -fr conftest*
25197
25198
25199 fi
25200 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
25201 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
25202     fi
25203
25204     CPPFLAGS="$save_CPPFLAGS"
25205     LDFLAGS="$save_LDFLAGS"
25206     LIBS="$save_LIBS"
25207     ;;
25208   esac
25209
25210   case $lt_cv_dlopen_self in
25211   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
25212   *) enable_dlopen_self=unknown ;;
25213   esac
25214
25215   case $lt_cv_dlopen_self_static in
25216   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
25217   *) enable_dlopen_self_static=unknown ;;
25218   esac
25219 fi
25220
25221
25222 # The else clause should only fire when bootstrapping the
25223 # libtool distribution, otherwise you forgot to ship ltmain.sh
25224 # with your package, and you will get complaints that there are
25225 # no rules to generate ltmain.sh.
25226 if test -f "$ltmain"; then
25227   # See if we are running on zsh, and set the options which allow our commands through
25228   # without removal of \ escapes.
25229   if test -n "${ZSH_VERSION+set}" ; then
25230     setopt NO_GLOB_SUBST
25231   fi
25232   # Now quote all the things that may contain metacharacters while being
25233   # careful not to overquote the AC_SUBSTed values.  We take copies of the
25234   # variables and quote the copies for generation of the libtool script.
25235   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
25236     SED SHELL STRIP \
25237     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25238     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25239     deplibs_check_method reload_flag reload_cmds need_locks \
25240     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25241     lt_cv_sys_global_symbol_to_c_name_address \
25242     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25243     old_postinstall_cmds old_postuninstall_cmds \
25244     compiler_GCJ \
25245     CC_GCJ \
25246     LD_GCJ \
25247     lt_prog_compiler_wl_GCJ \
25248     lt_prog_compiler_pic_GCJ \
25249     lt_prog_compiler_static_GCJ \
25250     lt_prog_compiler_no_builtin_flag_GCJ \
25251     export_dynamic_flag_spec_GCJ \
25252     thread_safe_flag_spec_GCJ \
25253     whole_archive_flag_spec_GCJ \
25254     enable_shared_with_static_runtimes_GCJ \
25255     old_archive_cmds_GCJ \
25256     old_archive_from_new_cmds_GCJ \
25257     predep_objects_GCJ \
25258     postdep_objects_GCJ \
25259     predeps_GCJ \
25260     postdeps_GCJ \
25261     compiler_lib_search_path_GCJ \
25262     archive_cmds_GCJ \
25263     archive_expsym_cmds_GCJ \
25264     postinstall_cmds_GCJ \
25265     postuninstall_cmds_GCJ \
25266     old_archive_from_expsyms_cmds_GCJ \
25267     allow_undefined_flag_GCJ \
25268     no_undefined_flag_GCJ \
25269     export_symbols_cmds_GCJ \
25270     hardcode_libdir_flag_spec_GCJ \
25271     hardcode_libdir_flag_spec_ld_GCJ \
25272     hardcode_libdir_separator_GCJ \
25273     hardcode_automatic_GCJ \
25274     module_cmds_GCJ \
25275     module_expsym_cmds_GCJ \
25276     lt_cv_prog_compiler_c_o_GCJ \
25277     exclude_expsyms_GCJ \
25278     include_expsyms_GCJ; do
25279
25280     case $var in
25281     old_archive_cmds_GCJ | \
25282     old_archive_from_new_cmds_GCJ | \
25283     archive_cmds_GCJ | \
25284     archive_expsym_cmds_GCJ | \
25285     module_cmds_GCJ | \
25286     module_expsym_cmds_GCJ | \
25287     old_archive_from_expsyms_cmds_GCJ | \
25288     export_symbols_cmds_GCJ | \
25289     extract_expsyms_cmds | reload_cmds | finish_cmds | \
25290     postinstall_cmds | postuninstall_cmds | \
25291     old_postinstall_cmds | old_postuninstall_cmds | \
25292     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25293       # Double-quote double-evaled strings.
25294       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
25295       ;;
25296     *)
25297       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25298       ;;
25299     esac
25300   done
25301
25302   case $lt_echo in
25303   *'\$0 --fallback-echo"')
25304     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25305     ;;
25306   esac
25307
25308 cfgfile="$ofile"
25309
25310   cat <<__EOF__ >> "$cfgfile"
25311 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
25312
25313 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25314
25315 # Shell to use when invoking shell scripts.
25316 SHELL=$lt_SHELL
25317
25318 # Whether or not to build shared libraries.
25319 build_libtool_libs=$enable_shared
25320
25321 # Whether or not to build static libraries.
25322 build_old_libs=$enable_static
25323
25324 # Whether or not to add -lc for building shared libraries.
25325 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
25326
25327 # Whether or not to disallow shared libs when runtime libs are static
25328 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
25329
25330 # Whether or not to optimize for fast installation.
25331 fast_install=$enable_fast_install
25332
25333 # The host system.
25334 host_alias=$host_alias
25335 host=$host
25336 host_os=$host_os
25337
25338 # The build system.
25339 build_alias=$build_alias
25340 build=$build
25341 build_os=$build_os
25342
25343 # An echo program that does not interpret backslashes.
25344 echo=$lt_echo
25345
25346 # The archiver.
25347 AR=$lt_AR
25348 AR_FLAGS=$lt_AR_FLAGS
25349
25350 # A C compiler.
25351 LTCC=$lt_LTCC
25352
25353 # A language-specific compiler.
25354 CC=$lt_compiler_GCJ
25355
25356 # Is the compiler the GNU C compiler?
25357 with_gcc=$GCC_GCJ
25358
25359 # An ERE matcher.
25360 EGREP=$lt_EGREP
25361
25362 # The linker used to build libraries.
25363 LD=$lt_LD_GCJ
25364
25365 # Whether we need hard or soft links.
25366 LN_S=$lt_LN_S
25367
25368 # A BSD-compatible nm program.
25369 NM=$lt_NM
25370
25371 # A symbol stripping program
25372 STRIP=$lt_STRIP
25373
25374 # Used to examine libraries when file_magic_cmd begins "file"
25375 MAGIC_CMD=$MAGIC_CMD
25376
25377 # Used on cygwin: DLL creation program.
25378 DLLTOOL="$DLLTOOL"
25379
25380 # Used on cygwin: object dumper.
25381 OBJDUMP="$OBJDUMP"
25382
25383 # Used on cygwin: assembler.
25384 AS="$AS"
25385
25386 # The name of the directory that contains temporary libtool files.
25387 objdir=$objdir
25388
25389 # How to create reloadable object files.
25390 reload_flag=$lt_reload_flag
25391 reload_cmds=$lt_reload_cmds
25392
25393 # How to pass a linker flag through the compiler.
25394 wl=$lt_lt_prog_compiler_wl_GCJ
25395
25396 # Object file suffix (normally "o").
25397 objext="$ac_objext"
25398
25399 # Old archive suffix (normally "a").
25400 libext="$libext"
25401
25402 # Shared library suffix (normally ".so").
25403 shrext_cmds='$shrext_cmds'
25404
25405 # Executable file suffix (normally "").
25406 exeext="$exeext"
25407
25408 # Additional compiler flags for building library objects.
25409 pic_flag=$lt_lt_prog_compiler_pic_GCJ
25410 pic_mode=$pic_mode
25411
25412 # What is the maximum length of a command?
25413 max_cmd_len=$lt_cv_sys_max_cmd_len
25414
25415 # Does compiler simultaneously support -c and -o options?
25416 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
25417
25418 # Must we lock files when doing compilation?
25419 need_locks=$lt_need_locks
25420
25421 # Do we need the lib prefix for modules?
25422 need_lib_prefix=$need_lib_prefix
25423
25424 # Do we need a version for libraries?
25425 need_version=$need_version
25426
25427 # Whether dlopen is supported.
25428 dlopen_support=$enable_dlopen
25429
25430 # Whether dlopen of programs is supported.
25431 dlopen_self=$enable_dlopen_self
25432
25433 # Whether dlopen of statically linked programs is supported.
25434 dlopen_self_static=$enable_dlopen_self_static
25435
25436 # Compiler flag to prevent dynamic linking.
25437 link_static_flag=$lt_lt_prog_compiler_static_GCJ
25438
25439 # Compiler flag to turn off builtin functions.
25440 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
25441
25442 # Compiler flag to allow reflexive dlopens.
25443 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
25444
25445 # Compiler flag to generate shared objects directly from archives.
25446 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
25447
25448 # Compiler flag to generate thread-safe objects.
25449 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
25450
25451 # Library versioning type.
25452 version_type=$version_type
25453
25454 # Format of library name prefix.
25455 libname_spec=$lt_libname_spec
25456
25457 # List of archive names.  First name is the real one, the rest are links.
25458 # The last name is the one that the linker finds with -lNAME.
25459 library_names_spec=$lt_library_names_spec
25460
25461 # The coded name of the library, if different from the real name.
25462 soname_spec=$lt_soname_spec
25463
25464 # Commands used to build and install an old-style archive.
25465 RANLIB=$lt_RANLIB
25466 old_archive_cmds=$lt_old_archive_cmds_GCJ
25467 old_postinstall_cmds=$lt_old_postinstall_cmds
25468 old_postuninstall_cmds=$lt_old_postuninstall_cmds
25469
25470 # Create an old-style archive from a shared archive.
25471 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
25472
25473 # Create a temporary old-style archive to link instead of a shared archive.
25474 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
25475
25476 # Commands used to build and install a shared archive.
25477 archive_cmds=$lt_archive_cmds_GCJ
25478 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
25479 postinstall_cmds=$lt_postinstall_cmds
25480 postuninstall_cmds=$lt_postuninstall_cmds
25481
25482 # Commands used to build a loadable module (assumed same as above if empty)
25483 module_cmds=$lt_module_cmds_GCJ
25484 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
25485
25486 # Commands to strip libraries.
25487 old_striplib=$lt_old_striplib
25488 striplib=$lt_striplib
25489
25490 # Dependencies to place before the objects being linked to create a
25491 # shared library.
25492 predep_objects=$lt_predep_objects_GCJ
25493
25494 # Dependencies to place after the objects being linked to create a
25495 # shared library.
25496 postdep_objects=$lt_postdep_objects_GCJ
25497
25498 # Dependencies to place before the objects being linked to create a
25499 # shared library.
25500 predeps=$lt_predeps_GCJ
25501
25502 # Dependencies to place after the objects being linked to create a
25503 # shared library.
25504 postdeps=$lt_postdeps_GCJ
25505
25506 # The library search path used internally by the compiler when linking
25507 # a shared library.
25508 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
25509
25510 # Method to check whether dependent libraries are shared objects.
25511 deplibs_check_method=$lt_deplibs_check_method
25512
25513 # Command to use when deplibs_check_method == file_magic.
25514 file_magic_cmd=$lt_file_magic_cmd
25515
25516 # Flag that allows shared libraries with undefined symbols to be built.
25517 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
25518
25519 # Flag that forces no undefined symbols.
25520 no_undefined_flag=$lt_no_undefined_flag_GCJ
25521
25522 # Commands used to finish a libtool library installation in a directory.
25523 finish_cmds=$lt_finish_cmds
25524
25525 # Same as above, but a single script fragment to be evaled but not shown.
25526 finish_eval=$lt_finish_eval
25527
25528 # Take the output of nm and produce a listing of raw symbols and C names.
25529 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
25530
25531 # Transform the output of nm in a proper C declaration
25532 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
25533
25534 # Transform the output of nm in a C name address pair
25535 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
25536
25537 # This is the shared library runtime path variable.
25538 runpath_var=$runpath_var
25539
25540 # This is the shared library path variable.
25541 shlibpath_var=$shlibpath_var
25542
25543 # Is shlibpath searched before the hard-coded library search path?
25544 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
25545
25546 # How to hardcode a shared library path into an executable.
25547 hardcode_action=$hardcode_action_GCJ
25548
25549 # Whether we should hardcode library paths into libraries.
25550 hardcode_into_libs=$hardcode_into_libs
25551
25552 # Flag to hardcode \$libdir into a binary during linking.
25553 # This must work even if \$libdir does not exist.
25554 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
25555
25556 # If ld is used when linking, flag to hardcode \$libdir into
25557 # a binary during linking. This must work even if \$libdir does
25558 # not exist.
25559 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
25560
25561 # Whether we need a single -rpath flag with a separated argument.
25562 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
25563
25564 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
25565 # resulting binary.
25566 hardcode_direct=$hardcode_direct_GCJ
25567
25568 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
25569 # resulting binary.
25570 hardcode_minus_L=$hardcode_minus_L_GCJ
25571
25572 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
25573 # the resulting binary.
25574 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
25575
25576 # Set to yes if building a shared library automatically hardcodes DIR into the library
25577 # and all subsequent libraries and executables linked against it.
25578 hardcode_automatic=$hardcode_automatic_GCJ
25579
25580 # Variables whose values should be saved in libtool wrapper scripts and
25581 # restored at relink time.
25582 variables_saved_for_relink="$variables_saved_for_relink"
25583
25584 # Whether libtool must link a program against all its dependency libraries.
25585 link_all_deplibs=$link_all_deplibs_GCJ
25586
25587 # Compile-time system search path for libraries
25588 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
25589
25590 # Run-time system search path for libraries
25591 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
25592
25593 # Fix the shell variable \$srcfile for the compiler.
25594 fix_srcfile_path="$fix_srcfile_path_GCJ"
25595
25596 # Set to yes if exported symbols are required.
25597 always_export_symbols=$always_export_symbols_GCJ
25598
25599 # The commands to list exported symbols.
25600 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
25601
25602 # The commands to extract the exported symbol list from a shared archive.
25603 extract_expsyms_cmds=$lt_extract_expsyms_cmds
25604
25605 # Symbols that should not be listed in the preloaded symbols.
25606 exclude_expsyms=$lt_exclude_expsyms_GCJ
25607
25608 # Symbols that must always be exported.
25609 include_expsyms=$lt_include_expsyms_GCJ
25610
25611 # ### END LIBTOOL TAG CONFIG: $tagname
25612
25613 __EOF__
25614
25615
25616 else
25617   # If there is no Makefile yet, we rely on a make rule to execute
25618   # `config.status --recheck' to rerun these tests and create the
25619   # libtool script then.
25620   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
25621   if test -f "$ltmain_in"; then
25622     test -f Makefile && make "$ltmain"
25623   fi
25624 fi
25625
25626
25627 ac_ext=c
25628 ac_cpp='$CPP $CPPFLAGS'
25629 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25630 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25631 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25632
25633 CC="$lt_save_CC"
25634
25635         else
25636           tagname=""
25637         fi
25638         ;;
25639
25640       RC)
25641
25642
25643
25644 # Source file extension for RC test sources.
25645 ac_ext=rc
25646
25647 # Object file extension for compiled RC test sources.
25648 objext=o
25649 objext_RC=$objext
25650
25651 # Code to be used in simple compile tests
25652 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
25653
25654 # Code to be used in simple link tests
25655 lt_simple_link_test_code="$lt_simple_compile_test_code"
25656
25657 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
25658
25659 # If no C compiler was specified, use CC.
25660 LTCC=${LTCC-"$CC"}
25661
25662 # Allow CC to be a program name with arguments.
25663 compiler=$CC
25664
25665
25666 # save warnings/boilerplate of simple test code
25667 ac_outfile=conftest.$ac_objext
25668 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
25669 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
25670 _lt_compiler_boilerplate=`cat conftest.err`
25671 $rm conftest*
25672
25673 ac_outfile=conftest.$ac_objext
25674 printf "$lt_simple_link_test_code" >conftest.$ac_ext
25675 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
25676 _lt_linker_boilerplate=`cat conftest.err`
25677 $rm conftest*
25678
25679
25680 # Allow CC to be a program name with arguments.
25681 lt_save_CC="$CC"
25682 CC=${RC-"windres"}
25683 compiler=$CC
25684 compiler_RC=$CC
25685 for cc_temp in $compiler""; do
25686   case $cc_temp in
25687     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
25688     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
25689     \-*) ;;
25690     *) break;;
25691   esac
25692 done
25693 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
25694
25695 lt_cv_prog_compiler_c_o_RC=yes
25696
25697 # The else clause should only fire when bootstrapping the
25698 # libtool distribution, otherwise you forgot to ship ltmain.sh
25699 # with your package, and you will get complaints that there are
25700 # no rules to generate ltmain.sh.
25701 if test -f "$ltmain"; then
25702   # See if we are running on zsh, and set the options which allow our commands through
25703   # without removal of \ escapes.
25704   if test -n "${ZSH_VERSION+set}" ; then
25705     setopt NO_GLOB_SUBST
25706   fi
25707   # Now quote all the things that may contain metacharacters while being
25708   # careful not to overquote the AC_SUBSTed values.  We take copies of the
25709   # variables and quote the copies for generation of the libtool script.
25710   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
25711     SED SHELL STRIP \
25712     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25713     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25714     deplibs_check_method reload_flag reload_cmds need_locks \
25715     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25716     lt_cv_sys_global_symbol_to_c_name_address \
25717     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25718     old_postinstall_cmds old_postuninstall_cmds \
25719     compiler_RC \
25720     CC_RC \
25721     LD_RC \
25722     lt_prog_compiler_wl_RC \
25723     lt_prog_compiler_pic_RC \
25724     lt_prog_compiler_static_RC \
25725     lt_prog_compiler_no_builtin_flag_RC \
25726     export_dynamic_flag_spec_RC \
25727     thread_safe_flag_spec_RC \
25728     whole_archive_flag_spec_RC \
25729     enable_shared_with_static_runtimes_RC \
25730     old_archive_cmds_RC \
25731     old_archive_from_new_cmds_RC \
25732     predep_objects_RC \
25733     postdep_objects_RC \
25734     predeps_RC \
25735     postdeps_RC \
25736     compiler_lib_search_path_RC \
25737     archive_cmds_RC \
25738     archive_expsym_cmds_RC \
25739     postinstall_cmds_RC \
25740     postuninstall_cmds_RC \
25741     old_archive_from_expsyms_cmds_RC \
25742     allow_undefined_flag_RC \
25743     no_undefined_flag_RC \
25744     export_symbols_cmds_RC \
25745     hardcode_libdir_flag_spec_RC \
25746     hardcode_libdir_flag_spec_ld_RC \
25747     hardcode_libdir_separator_RC \
25748     hardcode_automatic_RC \
25749     module_cmds_RC \
25750     module_expsym_cmds_RC \
25751     lt_cv_prog_compiler_c_o_RC \
25752     exclude_expsyms_RC \
25753     include_expsyms_RC; do
25754
25755     case $var in
25756     old_archive_cmds_RC | \
25757     old_archive_from_new_cmds_RC | \
25758     archive_cmds_RC | \
25759     archive_expsym_cmds_RC | \
25760     module_cmds_RC | \
25761     module_expsym_cmds_RC | \
25762     old_archive_from_expsyms_cmds_RC | \
25763     export_symbols_cmds_RC | \
25764     extract_expsyms_cmds | reload_cmds | finish_cmds | \
25765     postinstall_cmds | postuninstall_cmds | \
25766     old_postinstall_cmds | old_postuninstall_cmds | \
25767     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25768       # Double-quote double-evaled strings.
25769       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
25770       ;;
25771     *)
25772       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25773       ;;
25774     esac
25775   done
25776
25777   case $lt_echo in
25778   *'\$0 --fallback-echo"')
25779     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25780     ;;
25781   esac
25782
25783 cfgfile="$ofile"
25784
25785   cat <<__EOF__ >> "$cfgfile"
25786 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
25787
25788 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25789
25790 # Shell to use when invoking shell scripts.
25791 SHELL=$lt_SHELL
25792
25793 # Whether or not to build shared libraries.
25794 build_libtool_libs=$enable_shared
25795
25796 # Whether or not to build static libraries.
25797 build_old_libs=$enable_static
25798
25799 # Whether or not to add -lc for building shared libraries.
25800 build_libtool_need_lc=$archive_cmds_need_lc_RC
25801
25802 # Whether or not to disallow shared libs when runtime libs are static
25803 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
25804
25805 # Whether or not to optimize for fast installation.
25806 fast_install=$enable_fast_install
25807
25808 # The host system.
25809 host_alias=$host_alias
25810 host=$host
25811 host_os=$host_os
25812
25813 # The build system.
25814 build_alias=$build_alias
25815 build=$build
25816 build_os=$build_os
25817
25818 # An echo program that does not interpret backslashes.
25819 echo=$lt_echo
25820
25821 # The archiver.
25822 AR=$lt_AR
25823 AR_FLAGS=$lt_AR_FLAGS
25824
25825 # A C compiler.
25826 LTCC=$lt_LTCC
25827
25828 # A language-specific compiler.
25829 CC=$lt_compiler_RC
25830
25831 # Is the compiler the GNU C compiler?
25832 with_gcc=$GCC_RC
25833
25834 # An ERE matcher.
25835 EGREP=$lt_EGREP
25836
25837 # The linker used to build libraries.
25838 LD=$lt_LD_RC
25839
25840 # Whether we need hard or soft links.
25841 LN_S=$lt_LN_S
25842
25843 # A BSD-compatible nm program.
25844 NM=$lt_NM
25845
25846 # A symbol stripping program
25847 STRIP=$lt_STRIP
25848
25849 # Used to examine libraries when file_magic_cmd begins "file"
25850 MAGIC_CMD=$MAGIC_CMD
25851
25852 # Used on cygwin: DLL creation program.
25853 DLLTOOL="$DLLTOOL"
25854
25855 # Used on cygwin: object dumper.
25856 OBJDUMP="$OBJDUMP"
25857
25858 # Used on cygwin: assembler.
25859 AS="$AS"
25860
25861 # The name of the directory that contains temporary libtool files.
25862 objdir=$objdir
25863
25864 # How to create reloadable object files.
25865 reload_flag=$lt_reload_flag
25866 reload_cmds=$lt_reload_cmds
25867
25868 # How to pass a linker flag through the compiler.
25869 wl=$lt_lt_prog_compiler_wl_RC
25870
25871 # Object file suffix (normally "o").
25872 objext="$ac_objext"
25873
25874 # Old archive suffix (normally "a").
25875 libext="$libext"
25876
25877 # Shared library suffix (normally ".so").
25878 shrext_cmds='$shrext_cmds'
25879
25880 # Executable file suffix (normally "").
25881 exeext="$exeext"
25882
25883 # Additional compiler flags for building library objects.
25884 pic_flag=$lt_lt_prog_compiler_pic_RC
25885 pic_mode=$pic_mode
25886
25887 # What is the maximum length of a command?
25888 max_cmd_len=$lt_cv_sys_max_cmd_len
25889
25890 # Does compiler simultaneously support -c and -o options?
25891 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
25892
25893 # Must we lock files when doing compilation?
25894 need_locks=$lt_need_locks
25895
25896 # Do we need the lib prefix for modules?
25897 need_lib_prefix=$need_lib_prefix
25898
25899 # Do we need a version for libraries?
25900 need_version=$need_version
25901
25902 # Whether dlopen is supported.
25903 dlopen_support=$enable_dlopen
25904
25905 # Whether dlopen of programs is supported.
25906 dlopen_self=$enable_dlopen_self
25907
25908 # Whether dlopen of statically linked programs is supported.
25909 dlopen_self_static=$enable_dlopen_self_static
25910
25911 # Compiler flag to prevent dynamic linking.
25912 link_static_flag=$lt_lt_prog_compiler_static_RC
25913
25914 # Compiler flag to turn off builtin functions.
25915 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
25916
25917 # Compiler flag to allow reflexive dlopens.
25918 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
25919
25920 # Compiler flag to generate shared objects directly from archives.
25921 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
25922
25923 # Compiler flag to generate thread-safe objects.
25924 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
25925
25926 # Library versioning type.
25927 version_type=$version_type
25928
25929 # Format of library name prefix.
25930 libname_spec=$lt_libname_spec
25931
25932 # List of archive names.  First name is the real one, the rest are links.
25933 # The last name is the one that the linker finds with -lNAME.
25934 library_names_spec=$lt_library_names_spec
25935
25936 # The coded name of the library, if different from the real name.
25937 soname_spec=$lt_soname_spec
25938
25939 # Commands used to build and install an old-style archive.
25940 RANLIB=$lt_RANLIB
25941 old_archive_cmds=$lt_old_archive_cmds_RC
25942 old_postinstall_cmds=$lt_old_postinstall_cmds
25943 old_postuninstall_cmds=$lt_old_postuninstall_cmds
25944
25945 # Create an old-style archive from a shared archive.
25946 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
25947
25948 # Create a temporary old-style archive to link instead of a shared archive.
25949 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
25950
25951 # Commands used to build and install a shared archive.
25952 archive_cmds=$lt_archive_cmds_RC
25953 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
25954 postinstall_cmds=$lt_postinstall_cmds
25955 postuninstall_cmds=$lt_postuninstall_cmds
25956
25957 # Commands used to build a loadable module (assumed same as above if empty)
25958 module_cmds=$lt_module_cmds_RC
25959 module_expsym_cmds=$lt_module_expsym_cmds_RC
25960
25961 # Commands to strip libraries.
25962 old_striplib=$lt_old_striplib
25963 striplib=$lt_striplib
25964
25965 # Dependencies to place before the objects being linked to create a
25966 # shared library.
25967 predep_objects=$lt_predep_objects_RC
25968
25969 # Dependencies to place after the objects being linked to create a
25970 # shared library.
25971 postdep_objects=$lt_postdep_objects_RC
25972
25973 # Dependencies to place before the objects being linked to create a
25974 # shared library.
25975 predeps=$lt_predeps_RC
25976
25977 # Dependencies to place after the objects being linked to create a
25978 # shared library.
25979 postdeps=$lt_postdeps_RC
25980
25981 # The library search path used internally by the compiler when linking
25982 # a shared library.
25983 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
25984
25985 # Method to check whether dependent libraries are shared objects.
25986 deplibs_check_method=$lt_deplibs_check_method
25987
25988 # Command to use when deplibs_check_method == file_magic.
25989 file_magic_cmd=$lt_file_magic_cmd
25990
25991 # Flag that allows shared libraries with undefined symbols to be built.
25992 allow_undefined_flag=$lt_allow_undefined_flag_RC
25993
25994 # Flag that forces no undefined symbols.
25995 no_undefined_flag=$lt_no_undefined_flag_RC
25996
25997 # Commands used to finish a libtool library installation in a directory.
25998 finish_cmds=$lt_finish_cmds
25999
26000 # Same as above, but a single script fragment to be evaled but not shown.
26001 finish_eval=$lt_finish_eval
26002
26003 # Take the output of nm and produce a listing of raw symbols and C names.
26004 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26005
26006 # Transform the output of nm in a proper C declaration
26007 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26008
26009 # Transform the output of nm in a C name address pair
26010 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26011
26012 # This is the shared library runtime path variable.
26013 runpath_var=$runpath_var
26014
26015 # This is the shared library path variable.
26016 shlibpath_var=$shlibpath_var
26017
26018 # Is shlibpath searched before the hard-coded library search path?
26019 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26020
26021 # How to hardcode a shared library path into an executable.
26022 hardcode_action=$hardcode_action_RC
26023
26024 # Whether we should hardcode library paths into libraries.
26025 hardcode_into_libs=$hardcode_into_libs
26026
26027 # Flag to hardcode \$libdir into a binary during linking.
26028 # This must work even if \$libdir does not exist.
26029 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26030
26031 # If ld is used when linking, flag to hardcode \$libdir into
26032 # a binary during linking. This must work even if \$libdir does
26033 # not exist.
26034 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26035
26036 # Whether we need a single -rpath flag with a separated argument.
26037 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26038
26039 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26040 # resulting binary.
26041 hardcode_direct=$hardcode_direct_RC
26042
26043 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26044 # resulting binary.
26045 hardcode_minus_L=$hardcode_minus_L_RC
26046
26047 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26048 # the resulting binary.
26049 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26050
26051 # Set to yes if building a shared library automatically hardcodes DIR into the library
26052 # and all subsequent libraries and executables linked against it.
26053 hardcode_automatic=$hardcode_automatic_RC
26054
26055 # Variables whose values should be saved in libtool wrapper scripts and
26056 # restored at relink time.
26057 variables_saved_for_relink="$variables_saved_for_relink"
26058
26059 # Whether libtool must link a program against all its dependency libraries.
26060 link_all_deplibs=$link_all_deplibs_RC
26061
26062 # Compile-time system search path for libraries
26063 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26064
26065 # Run-time system search path for libraries
26066 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26067
26068 # Fix the shell variable \$srcfile for the compiler.
26069 fix_srcfile_path="$fix_srcfile_path_RC"
26070
26071 # Set to yes if exported symbols are required.
26072 always_export_symbols=$always_export_symbols_RC
26073
26074 # The commands to list exported symbols.
26075 export_symbols_cmds=$lt_export_symbols_cmds_RC
26076
26077 # The commands to extract the exported symbol list from a shared archive.
26078 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26079
26080 # Symbols that should not be listed in the preloaded symbols.
26081 exclude_expsyms=$lt_exclude_expsyms_RC
26082
26083 # Symbols that must always be exported.
26084 include_expsyms=$lt_include_expsyms_RC
26085
26086 # ### END LIBTOOL TAG CONFIG: $tagname
26087
26088 __EOF__
26089
26090
26091 else
26092   # If there is no Makefile yet, we rely on a make rule to execute
26093   # `config.status --recheck' to rerun these tests and create the
26094   # libtool script then.
26095   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26096   if test -f "$ltmain_in"; then
26097     test -f Makefile && make "$ltmain"
26098   fi
26099 fi
26100
26101
26102 ac_ext=c
26103 ac_cpp='$CPP $CPPFLAGS'
26104 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26105 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26106 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26107
26108 CC="$lt_save_CC"
26109
26110         ;;
26111
26112       *)
26113         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
26114 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
26115    { (exit 1); exit 1; }; }
26116         ;;
26117       esac
26118
26119       # Append the new tag name to the list of available tags.
26120       if test -n "$tagname" ; then
26121       available_tags="$available_tags $tagname"
26122     fi
26123     fi
26124   done
26125   IFS="$lt_save_ifs"
26126
26127   # Now substitute the updated list of available tags.
26128   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
26129     mv "${ofile}T" "$ofile"
26130     chmod +x "$ofile"
26131   else
26132     rm -f "${ofile}T"
26133     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
26134 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
26135    { (exit 1); exit 1; }; }
26136   fi
26137 fi
26138
26139
26140
26141 # This can be used to rebuild libtool when needed
26142 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
26143
26144 # Always use our own libtool.
26145 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
26146
26147 # Prevent multiple expansion
26148
26149
26150
26151
26152
26153
26154
26155
26156
26157
26158
26159
26160
26161
26162
26163
26164
26165
26166
26167
26168
26169
26170 if test $ac_cv_c_compiler_gnu = yes; then
26171     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
26172 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
26173 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
26174   echo $ECHO_N "(cached) $ECHO_C" >&6
26175 else
26176     ac_pattern="Autoconf.*'x'"
26177   cat >conftest.$ac_ext <<_ACEOF
26178 /* confdefs.h.  */
26179 _ACEOF
26180 cat confdefs.h >>conftest.$ac_ext
26181 cat >>conftest.$ac_ext <<_ACEOF
26182 /* end confdefs.h.  */
26183 #include <sgtty.h>
26184 Autoconf TIOCGETP
26185 _ACEOF
26186 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26187   $EGREP "$ac_pattern" >/dev/null 2>&1; then
26188   ac_cv_prog_gcc_traditional=yes
26189 else
26190   ac_cv_prog_gcc_traditional=no
26191 fi
26192 rm -f conftest*
26193
26194
26195   if test $ac_cv_prog_gcc_traditional = no; then
26196     cat >conftest.$ac_ext <<_ACEOF
26197 /* confdefs.h.  */
26198 _ACEOF
26199 cat confdefs.h >>conftest.$ac_ext
26200 cat >>conftest.$ac_ext <<_ACEOF
26201 /* end confdefs.h.  */
26202 #include <termio.h>
26203 Autoconf TCGETA
26204 _ACEOF
26205 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26206   $EGREP "$ac_pattern" >/dev/null 2>&1; then
26207   ac_cv_prog_gcc_traditional=yes
26208 fi
26209 rm -f conftest*
26210
26211   fi
26212 fi
26213 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
26214 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
26215   if test $ac_cv_prog_gcc_traditional = yes; then
26216     CC="$CC -traditional"
26217   fi
26218 fi
26219
26220 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
26221 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
26222 if test "${ac_cv_c_const+set}" = set; then
26223   echo $ECHO_N "(cached) $ECHO_C" >&6
26224 else
26225   cat >conftest.$ac_ext <<_ACEOF
26226 /* confdefs.h.  */
26227 _ACEOF
26228 cat confdefs.h >>conftest.$ac_ext
26229 cat >>conftest.$ac_ext <<_ACEOF
26230 /* end confdefs.h.  */
26231
26232 int
26233 main ()
26234 {
26235 /* FIXME: Include the comments suggested by Paul. */
26236 #ifndef __cplusplus
26237   /* Ultrix mips cc rejects this.  */
26238   typedef int charset[2];
26239   const charset x;
26240   /* SunOS 4.1.1 cc rejects this.  */
26241   char const *const *ccp;
26242   char **p;
26243   /* NEC SVR4.0.2 mips cc rejects this.  */
26244   struct point {int x, y;};
26245   static struct point const zero = {0,0};
26246   /* AIX XL C 1.02.0.0 rejects this.
26247      It does not let you subtract one const X* pointer from another in
26248      an arm of an if-expression whose if-part is not a constant
26249      expression */
26250   const char *g = "string";
26251   ccp = &g + (g ? g-g : 0);
26252   /* HPUX 7.0 cc rejects these. */
26253   ++ccp;
26254   p = (char**) ccp;
26255   ccp = (char const *const *) p;
26256   { /* SCO 3.2v4 cc rejects this.  */
26257     char *t;
26258     char const *s = 0 ? (char *) 0 : (char const *) 0;
26259
26260     *t++ = 0;
26261   }
26262   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
26263     int x[] = {25, 17};
26264     const int *foo = &x[0];
26265     ++foo;
26266   }
26267   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
26268     typedef const int *iptr;
26269     iptr p = 0;
26270     ++p;
26271   }
26272   { /* AIX XL C 1.02.0.0 rejects this saying
26273        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
26274     struct s { int j; const int *ap[3]; };
26275     struct s *b; b->j = 5;
26276   }
26277   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
26278     const int foo = 10;
26279   }
26280 #endif
26281
26282   ;
26283   return 0;
26284 }
26285 _ACEOF
26286 rm -f conftest.$ac_objext
26287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26288   (eval $ac_compile) 2>conftest.er1
26289   ac_status=$?
26290   grep -v '^ *+' conftest.er1 >conftest.err
26291   rm -f conftest.er1
26292   cat conftest.err >&5
26293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26294   (exit $ac_status); } &&
26295          { ac_try='test -z "$ac_c_werror_flag"
26296                          || test ! -s conftest.err'
26297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26298   (eval $ac_try) 2>&5
26299   ac_status=$?
26300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26301   (exit $ac_status); }; } &&
26302          { ac_try='test -s conftest.$ac_objext'
26303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26304   (eval $ac_try) 2>&5
26305   ac_status=$?
26306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26307   (exit $ac_status); }; }; then
26308   ac_cv_c_const=yes
26309 else
26310   echo "$as_me: failed program was:" >&5
26311 sed 's/^/| /' conftest.$ac_ext >&5
26312
26313 ac_cv_c_const=no
26314 fi
26315 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26316 fi
26317 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
26318 echo "${ECHO_T}$ac_cv_c_const" >&6
26319 if test $ac_cv_c_const = no; then
26320
26321 cat >>confdefs.h <<\_ACEOF
26322 #define const
26323 _ACEOF
26324
26325 fi
26326
26327
26328         echo "$as_me:$LINENO: checking for working volatile" >&5
26329 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
26330 if test "${amanda_cv_c_volatile+set}" = set; then
26331   echo $ECHO_N "(cached) $ECHO_C" >&6
26332 else
26333
26334                 cat >conftest.$ac_ext <<_ACEOF
26335 /* confdefs.h.  */
26336 _ACEOF
26337 cat confdefs.h >>conftest.$ac_ext
26338 cat >>conftest.$ac_ext <<_ACEOF
26339 /* end confdefs.h.  */
26340
26341 int
26342 main ()
26343 {
26344
26345                         volatile int aaa = 0;
26346
26347   ;
26348   return 0;
26349 }
26350 _ACEOF
26351 rm -f conftest.$ac_objext
26352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26353   (eval $ac_compile) 2>conftest.er1
26354   ac_status=$?
26355   grep -v '^ *+' conftest.er1 >conftest.err
26356   rm -f conftest.er1
26357   cat conftest.err >&5
26358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26359   (exit $ac_status); } &&
26360          { ac_try='test -z "$ac_c_werror_flag"
26361                          || test ! -s conftest.err'
26362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26363   (eval $ac_try) 2>&5
26364   ac_status=$?
26365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26366   (exit $ac_status); }; } &&
26367          { ac_try='test -s conftest.$ac_objext'
26368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26369   (eval $ac_try) 2>&5
26370   ac_status=$?
26371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26372   (exit $ac_status); }; }; then
26373   amanda_cv_c_volatile=yes
26374 else
26375   echo "$as_me: failed program was:" >&5
26376 sed 's/^/| /' conftest.$ac_ext >&5
26377
26378 amanda_cv_c_volatile=no
26379
26380 fi
26381 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26382
26383
26384 fi
26385 echo "$as_me:$LINENO: result: $amanda_cv_c_volatile" >&5
26386 echo "${ECHO_T}$amanda_cv_c_volatile" >&6
26387         if test $amanda_cv_c_volatile = no; then
26388
26389 cat >>confdefs.h <<\_ACEOF
26390 #define volatile
26391 _ACEOF
26392
26393         fi
26394
26395
26396
26397         echo "$as_me:$LINENO: checking for working unsigned long constants" >&5
26398 echo $ECHO_N "checking for working unsigned long constants... $ECHO_C" >&6
26399 if test "${amanda_cv_c_unsigned_long_constants+set}" = set; then
26400   echo $ECHO_N "(cached) $ECHO_C" >&6
26401 else
26402
26403                 cat >conftest.$ac_ext <<_ACEOF
26404 /* confdefs.h.  */
26405 _ACEOF
26406 cat confdefs.h >>conftest.$ac_ext
26407 cat >>conftest.$ac_ext <<_ACEOF
26408 /* end confdefs.h.  */
26409
26410
26411 int
26412 main ()
26413 {
26414
26415                         long l = 1ul;
26416
26417   ;
26418   return 0;
26419 }
26420 _ACEOF
26421 rm -f conftest.$ac_objext
26422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26423   (eval $ac_compile) 2>conftest.er1
26424   ac_status=$?
26425   grep -v '^ *+' conftest.er1 >conftest.err
26426   rm -f conftest.er1
26427   cat conftest.err >&5
26428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26429   (exit $ac_status); } &&
26430          { ac_try='test -z "$ac_c_werror_flag"
26431                          || test ! -s conftest.err'
26432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26433   (eval $ac_try) 2>&5
26434   ac_status=$?
26435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26436   (exit $ac_status); }; } &&
26437          { ac_try='test -s conftest.$ac_objext'
26438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26439   (eval $ac_try) 2>&5
26440   ac_status=$?
26441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26442   (exit $ac_status); }; }; then
26443   amanda_cv_c_unsigned_long_constants=yes
26444 else
26445   echo "$as_me: failed program was:" >&5
26446 sed 's/^/| /' conftest.$ac_ext >&5
26447
26448 amanda_cv_c_unsigned_long_constants=no
26449
26450 fi
26451 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26452
26453
26454 fi
26455 echo "$as_me:$LINENO: result: $amanda_cv_c_unsigned_long_constants" >&5
26456 echo "${ECHO_T}$amanda_cv_c_unsigned_long_constants" >&6
26457         if test "$amanda_cv_c_unsigned_long_constants" = yes; then
26458
26459 cat >>confdefs.h <<\_ACEOF
26460 #define HAVE_UNSIGNED_LONG_CONSTANTS 1
26461 _ACEOF
26462
26463         fi
26464
26465
26466 echo "$as_me:$LINENO: checking for off_t" >&5
26467 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
26468 if test "${ac_cv_type_off_t+set}" = set; then
26469   echo $ECHO_N "(cached) $ECHO_C" >&6
26470 else
26471   cat >conftest.$ac_ext <<_ACEOF
26472 /* confdefs.h.  */
26473 _ACEOF
26474 cat confdefs.h >>conftest.$ac_ext
26475 cat >>conftest.$ac_ext <<_ACEOF
26476 /* end confdefs.h.  */
26477 $ac_includes_default
26478 int
26479 main ()
26480 {
26481 if ((off_t *) 0)
26482   return 0;
26483 if (sizeof (off_t))
26484   return 0;
26485   ;
26486   return 0;
26487 }
26488 _ACEOF
26489 rm -f conftest.$ac_objext
26490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26491   (eval $ac_compile) 2>conftest.er1
26492   ac_status=$?
26493   grep -v '^ *+' conftest.er1 >conftest.err
26494   rm -f conftest.er1
26495   cat conftest.err >&5
26496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26497   (exit $ac_status); } &&
26498          { ac_try='test -z "$ac_c_werror_flag"
26499                          || test ! -s conftest.err'
26500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26501   (eval $ac_try) 2>&5
26502   ac_status=$?
26503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26504   (exit $ac_status); }; } &&
26505          { ac_try='test -s conftest.$ac_objext'
26506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26507   (eval $ac_try) 2>&5
26508   ac_status=$?
26509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26510   (exit $ac_status); }; }; then
26511   ac_cv_type_off_t=yes
26512 else
26513   echo "$as_me: failed program was:" >&5
26514 sed 's/^/| /' conftest.$ac_ext >&5
26515
26516 ac_cv_type_off_t=no
26517 fi
26518 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26519 fi
26520 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
26521 echo "${ECHO_T}$ac_cv_type_off_t" >&6
26522 if test $ac_cv_type_off_t = yes; then
26523   :
26524 else
26525
26526 cat >>confdefs.h <<_ACEOF
26527 #define off_t long
26528 _ACEOF
26529
26530 fi
26531
26532 echo "$as_me:$LINENO: checking for pid_t" >&5
26533 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
26534 if test "${ac_cv_type_pid_t+set}" = set; then
26535   echo $ECHO_N "(cached) $ECHO_C" >&6
26536 else
26537   cat >conftest.$ac_ext <<_ACEOF
26538 /* confdefs.h.  */
26539 _ACEOF
26540 cat confdefs.h >>conftest.$ac_ext
26541 cat >>conftest.$ac_ext <<_ACEOF
26542 /* end confdefs.h.  */
26543 $ac_includes_default
26544 int
26545 main ()
26546 {
26547 if ((pid_t *) 0)
26548   return 0;
26549 if (sizeof (pid_t))
26550   return 0;
26551   ;
26552   return 0;
26553 }
26554 _ACEOF
26555 rm -f conftest.$ac_objext
26556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26557   (eval $ac_compile) 2>conftest.er1
26558   ac_status=$?
26559   grep -v '^ *+' conftest.er1 >conftest.err
26560   rm -f conftest.er1
26561   cat conftest.err >&5
26562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26563   (exit $ac_status); } &&
26564          { ac_try='test -z "$ac_c_werror_flag"
26565                          || test ! -s conftest.err'
26566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26567   (eval $ac_try) 2>&5
26568   ac_status=$?
26569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26570   (exit $ac_status); }; } &&
26571          { ac_try='test -s conftest.$ac_objext'
26572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26573   (eval $ac_try) 2>&5
26574   ac_status=$?
26575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26576   (exit $ac_status); }; }; then
26577   ac_cv_type_pid_t=yes
26578 else
26579   echo "$as_me: failed program was:" >&5
26580 sed 's/^/| /' conftest.$ac_ext >&5
26581
26582 ac_cv_type_pid_t=no
26583 fi
26584 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26585 fi
26586 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
26587 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
26588 if test $ac_cv_type_pid_t = yes; then
26589   :
26590 else
26591
26592 cat >>confdefs.h <<_ACEOF
26593 #define pid_t int
26594 _ACEOF
26595
26596 fi
26597
26598 echo "$as_me:$LINENO: checking for size_t" >&5
26599 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
26600 if test "${ac_cv_type_size_t+set}" = set; then
26601   echo $ECHO_N "(cached) $ECHO_C" >&6
26602 else
26603   cat >conftest.$ac_ext <<_ACEOF
26604 /* confdefs.h.  */
26605 _ACEOF
26606 cat confdefs.h >>conftest.$ac_ext
26607 cat >>conftest.$ac_ext <<_ACEOF
26608 /* end confdefs.h.  */
26609 $ac_includes_default
26610 int
26611 main ()
26612 {
26613 if ((size_t *) 0)
26614   return 0;
26615 if (sizeof (size_t))
26616   return 0;
26617   ;
26618   return 0;
26619 }
26620 _ACEOF
26621 rm -f conftest.$ac_objext
26622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26623   (eval $ac_compile) 2>conftest.er1
26624   ac_status=$?
26625   grep -v '^ *+' conftest.er1 >conftest.err
26626   rm -f conftest.er1
26627   cat conftest.err >&5
26628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26629   (exit $ac_status); } &&
26630          { ac_try='test -z "$ac_c_werror_flag"
26631                          || test ! -s conftest.err'
26632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26633   (eval $ac_try) 2>&5
26634   ac_status=$?
26635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26636   (exit $ac_status); }; } &&
26637          { ac_try='test -s conftest.$ac_objext'
26638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26639   (eval $ac_try) 2>&5
26640   ac_status=$?
26641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26642   (exit $ac_status); }; }; then
26643   ac_cv_type_size_t=yes
26644 else
26645   echo "$as_me: failed program was:" >&5
26646 sed 's/^/| /' conftest.$ac_ext >&5
26647
26648 ac_cv_type_size_t=no
26649 fi
26650 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26651 fi
26652 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
26653 echo "${ECHO_T}$ac_cv_type_size_t" >&6
26654 if test $ac_cv_type_size_t = yes; then
26655   :
26656 else
26657
26658 cat >>confdefs.h <<_ACEOF
26659 #define size_t unsigned
26660 _ACEOF
26661
26662 fi
26663
26664
26665
26666
26667
26668
26669 echo "$as_me:$LINENO: checking for ssize_t" >&5
26670 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
26671 if test "${ac_cv_type_ssize_t+set}" = set; then
26672   echo $ECHO_N "(cached) $ECHO_C" >&6
26673 else
26674   cat >conftest.$ac_ext <<_ACEOF
26675 /* confdefs.h.  */
26676 _ACEOF
26677 cat confdefs.h >>conftest.$ac_ext
26678 cat >>conftest.$ac_ext <<_ACEOF
26679 /* end confdefs.h.  */
26680 $ac_includes_default
26681 int
26682 main ()
26683 {
26684 if ((ssize_t *) 0)
26685   return 0;
26686 if (sizeof (ssize_t))
26687   return 0;
26688   ;
26689   return 0;
26690 }
26691 _ACEOF
26692 rm -f conftest.$ac_objext
26693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26694   (eval $ac_compile) 2>conftest.er1
26695   ac_status=$?
26696   grep -v '^ *+' conftest.er1 >conftest.err
26697   rm -f conftest.er1
26698   cat conftest.err >&5
26699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26700   (exit $ac_status); } &&
26701          { ac_try='test -z "$ac_c_werror_flag"
26702                          || test ! -s conftest.err'
26703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26704   (eval $ac_try) 2>&5
26705   ac_status=$?
26706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26707   (exit $ac_status); }; } &&
26708          { ac_try='test -s conftest.$ac_objext'
26709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26710   (eval $ac_try) 2>&5
26711   ac_status=$?
26712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26713   (exit $ac_status); }; }; then
26714   ac_cv_type_ssize_t=yes
26715 else
26716   echo "$as_me: failed program was:" >&5
26717 sed 's/^/| /' conftest.$ac_ext >&5
26718
26719 ac_cv_type_ssize_t=no
26720 fi
26721 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26722 fi
26723 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
26724 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
26725 if test $ac_cv_type_ssize_t = yes; then
26726   :
26727 else
26728
26729 cat >>confdefs.h <<_ACEOF
26730 #define ssize_t int
26731 _ACEOF
26732
26733 fi
26734
26735
26736 echo "$as_me:$LINENO: checking for unsigned long long" >&5
26737 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
26738 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
26739   echo $ECHO_N "(cached) $ECHO_C" >&6
26740 else
26741   cat >conftest.$ac_ext <<_ACEOF
26742 /* confdefs.h.  */
26743 _ACEOF
26744 cat confdefs.h >>conftest.$ac_ext
26745 cat >>conftest.$ac_ext <<_ACEOF
26746 /* end confdefs.h.  */
26747 $ac_includes_default
26748 int
26749 main ()
26750 {
26751 if ((unsigned long long *) 0)
26752   return 0;
26753 if (sizeof (unsigned long long))
26754   return 0;
26755   ;
26756   return 0;
26757 }
26758 _ACEOF
26759 rm -f conftest.$ac_objext
26760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26761   (eval $ac_compile) 2>conftest.er1
26762   ac_status=$?
26763   grep -v '^ *+' conftest.er1 >conftest.err
26764   rm -f conftest.er1
26765   cat conftest.err >&5
26766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26767   (exit $ac_status); } &&
26768          { ac_try='test -z "$ac_c_werror_flag"
26769                          || test ! -s conftest.err'
26770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26771   (eval $ac_try) 2>&5
26772   ac_status=$?
26773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26774   (exit $ac_status); }; } &&
26775          { ac_try='test -s conftest.$ac_objext'
26776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26777   (eval $ac_try) 2>&5
26778   ac_status=$?
26779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26780   (exit $ac_status); }; }; then
26781   ac_cv_type_unsigned_long_long=yes
26782 else
26783   echo "$as_me: failed program was:" >&5
26784 sed 's/^/| /' conftest.$ac_ext >&5
26785
26786 ac_cv_type_unsigned_long_long=no
26787 fi
26788 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26789 fi
26790 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
26791 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
26792 if test $ac_cv_type_unsigned_long_long = yes; then
26793
26794 cat >>confdefs.h <<_ACEOF
26795 #define HAVE_UNSIGNED_LONG_LONG 1
26796 _ACEOF
26797
26798
26799 fi
26800
26801
26802
26803
26804
26805
26806 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
26807 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
26808 if test "${ac_cv_type_uid_t+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 #include <sys/types.h>
26818
26819 _ACEOF
26820 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26821   $EGREP "uid_t" >/dev/null 2>&1; then
26822   ac_cv_type_uid_t=yes
26823 else
26824   ac_cv_type_uid_t=no
26825 fi
26826 rm -f conftest*
26827
26828 fi
26829 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
26830 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
26831 if test $ac_cv_type_uid_t = no; then
26832
26833 cat >>confdefs.h <<\_ACEOF
26834 #define uid_t int
26835 _ACEOF
26836
26837
26838 cat >>confdefs.h <<\_ACEOF
26839 #define gid_t int
26840 _ACEOF
26841
26842 fi
26843
26844 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
26845 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
26846 if test "${ac_cv_type_signal+set}" = set; then
26847   echo $ECHO_N "(cached) $ECHO_C" >&6
26848 else
26849   cat >conftest.$ac_ext <<_ACEOF
26850 /* confdefs.h.  */
26851 _ACEOF
26852 cat confdefs.h >>conftest.$ac_ext
26853 cat >>conftest.$ac_ext <<_ACEOF
26854 /* end confdefs.h.  */
26855 #include <sys/types.h>
26856 #include <signal.h>
26857 #ifdef signal
26858 # undef signal
26859 #endif
26860 #ifdef __cplusplus
26861 extern "C" void (*signal (int, void (*)(int)))(int);
26862 #else
26863 void (*signal ()) ();
26864 #endif
26865
26866 int
26867 main ()
26868 {
26869 int i;
26870   ;
26871   return 0;
26872 }
26873 _ACEOF
26874 rm -f conftest.$ac_objext
26875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26876   (eval $ac_compile) 2>conftest.er1
26877   ac_status=$?
26878   grep -v '^ *+' conftest.er1 >conftest.err
26879   rm -f conftest.er1
26880   cat conftest.err >&5
26881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26882   (exit $ac_status); } &&
26883          { ac_try='test -z "$ac_c_werror_flag"
26884                          || test ! -s conftest.err'
26885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26886   (eval $ac_try) 2>&5
26887   ac_status=$?
26888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26889   (exit $ac_status); }; } &&
26890          { ac_try='test -s conftest.$ac_objext'
26891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26892   (eval $ac_try) 2>&5
26893   ac_status=$?
26894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26895   (exit $ac_status); }; }; then
26896   ac_cv_type_signal=void
26897 else
26898   echo "$as_me: failed program was:" >&5
26899 sed 's/^/| /' conftest.$ac_ext >&5
26900
26901 ac_cv_type_signal=int
26902 fi
26903 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26904 fi
26905 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
26906 echo "${ECHO_T}$ac_cv_type_signal" >&6
26907
26908 cat >>confdefs.h <<_ACEOF
26909 #define RETSIGTYPE $ac_cv_type_signal
26910 _ACEOF
26911
26912
26913 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
26914 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
26915 if test "${ac_cv_struct_tm+set}" = set; then
26916   echo $ECHO_N "(cached) $ECHO_C" >&6
26917 else
26918   cat >conftest.$ac_ext <<_ACEOF
26919 /* confdefs.h.  */
26920 _ACEOF
26921 cat confdefs.h >>conftest.$ac_ext
26922 cat >>conftest.$ac_ext <<_ACEOF
26923 /* end confdefs.h.  */
26924 #include <sys/types.h>
26925 #include <time.h>
26926
26927 int
26928 main ()
26929 {
26930 struct tm *tp; tp->tm_sec;
26931   ;
26932   return 0;
26933 }
26934 _ACEOF
26935 rm -f conftest.$ac_objext
26936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26937   (eval $ac_compile) 2>conftest.er1
26938   ac_status=$?
26939   grep -v '^ *+' conftest.er1 >conftest.err
26940   rm -f conftest.er1
26941   cat conftest.err >&5
26942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26943   (exit $ac_status); } &&
26944          { ac_try='test -z "$ac_c_werror_flag"
26945                          || test ! -s conftest.err'
26946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26947   (eval $ac_try) 2>&5
26948   ac_status=$?
26949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26950   (exit $ac_status); }; } &&
26951          { ac_try='test -s conftest.$ac_objext'
26952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26953   (eval $ac_try) 2>&5
26954   ac_status=$?
26955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26956   (exit $ac_status); }; }; then
26957   ac_cv_struct_tm=time.h
26958 else
26959   echo "$as_me: failed program was:" >&5
26960 sed 's/^/| /' conftest.$ac_ext >&5
26961
26962 ac_cv_struct_tm=sys/time.h
26963 fi
26964 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26965 fi
26966 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
26967 echo "${ECHO_T}$ac_cv_struct_tm" >&6
26968 if test $ac_cv_struct_tm = sys/time.h; then
26969
26970 cat >>confdefs.h <<\_ACEOF
26971 #define TM_IN_SYS_TIME 1
26972 _ACEOF
26973
26974 fi
26975
26976 for ac_prog in flex lex
26977 do
26978   # Extract the first word of "$ac_prog", so it can be a program name with args.
26979 set dummy $ac_prog; ac_word=$2
26980 echo "$as_me:$LINENO: checking for $ac_word" >&5
26981 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
26982 if test "${ac_cv_prog_LEX+set}" = set; then
26983   echo $ECHO_N "(cached) $ECHO_C" >&6
26984 else
26985   if test -n "$LEX"; then
26986   ac_cv_prog_LEX="$LEX" # Let the user override the test.
26987 else
26988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26989 for as_dir in $PATH
26990 do
26991   IFS=$as_save_IFS
26992   test -z "$as_dir" && as_dir=.
26993   for ac_exec_ext in '' $ac_executable_extensions; do
26994   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26995     ac_cv_prog_LEX="$ac_prog"
26996     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26997     break 2
26998   fi
26999 done
27000 done
27001
27002 fi
27003 fi
27004 LEX=$ac_cv_prog_LEX
27005 if test -n "$LEX"; then
27006   echo "$as_me:$LINENO: result: $LEX" >&5
27007 echo "${ECHO_T}$LEX" >&6
27008 else
27009   echo "$as_me:$LINENO: result: no" >&5
27010 echo "${ECHO_T}no" >&6
27011 fi
27012
27013   test -n "$LEX" && break
27014 done
27015 test -n "$LEX" || LEX=":"
27016
27017 if test -z "$LEXLIB"
27018 then
27019   echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
27020 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
27021 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
27022   echo $ECHO_N "(cached) $ECHO_C" >&6
27023 else
27024   ac_check_lib_save_LIBS=$LIBS
27025 LIBS="-lfl  $LIBS"
27026 cat >conftest.$ac_ext <<_ACEOF
27027 /* confdefs.h.  */
27028 _ACEOF
27029 cat confdefs.h >>conftest.$ac_ext
27030 cat >>conftest.$ac_ext <<_ACEOF
27031 /* end confdefs.h.  */
27032
27033 /* Override any gcc2 internal prototype to avoid an error.  */
27034 #ifdef __cplusplus
27035 extern "C"
27036 #endif
27037 /* We use char because int might match the return type of a gcc2
27038    builtin and then its argument prototype would still apply.  */
27039 char yywrap ();
27040 int
27041 main ()
27042 {
27043 yywrap ();
27044   ;
27045   return 0;
27046 }
27047 _ACEOF
27048 rm -f conftest.$ac_objext conftest$ac_exeext
27049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27050   (eval $ac_link) 2>conftest.er1
27051   ac_status=$?
27052   grep -v '^ *+' conftest.er1 >conftest.err
27053   rm -f conftest.er1
27054   cat conftest.err >&5
27055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27056   (exit $ac_status); } &&
27057          { ac_try='test -z "$ac_c_werror_flag"
27058                          || test ! -s conftest.err'
27059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27060   (eval $ac_try) 2>&5
27061   ac_status=$?
27062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27063   (exit $ac_status); }; } &&
27064          { ac_try='test -s conftest$ac_exeext'
27065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27066   (eval $ac_try) 2>&5
27067   ac_status=$?
27068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27069   (exit $ac_status); }; }; then
27070   ac_cv_lib_fl_yywrap=yes
27071 else
27072   echo "$as_me: failed program was:" >&5
27073 sed 's/^/| /' conftest.$ac_ext >&5
27074
27075 ac_cv_lib_fl_yywrap=no
27076 fi
27077 rm -f conftest.err conftest.$ac_objext \
27078       conftest$ac_exeext conftest.$ac_ext
27079 LIBS=$ac_check_lib_save_LIBS
27080 fi
27081 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
27082 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
27083 if test $ac_cv_lib_fl_yywrap = yes; then
27084   LEXLIB="-lfl"
27085 else
27086   echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
27087 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
27088 if test "${ac_cv_lib_l_yywrap+set}" = set; then
27089   echo $ECHO_N "(cached) $ECHO_C" >&6
27090 else
27091   ac_check_lib_save_LIBS=$LIBS
27092 LIBS="-ll  $LIBS"
27093 cat >conftest.$ac_ext <<_ACEOF
27094 /* confdefs.h.  */
27095 _ACEOF
27096 cat confdefs.h >>conftest.$ac_ext
27097 cat >>conftest.$ac_ext <<_ACEOF
27098 /* end confdefs.h.  */
27099
27100 /* Override any gcc2 internal prototype to avoid an error.  */
27101 #ifdef __cplusplus
27102 extern "C"
27103 #endif
27104 /* We use char because int might match the return type of a gcc2
27105    builtin and then its argument prototype would still apply.  */
27106 char yywrap ();
27107 int
27108 main ()
27109 {
27110 yywrap ();
27111   ;
27112   return 0;
27113 }
27114 _ACEOF
27115 rm -f conftest.$ac_objext conftest$ac_exeext
27116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27117   (eval $ac_link) 2>conftest.er1
27118   ac_status=$?
27119   grep -v '^ *+' conftest.er1 >conftest.err
27120   rm -f conftest.er1
27121   cat conftest.err >&5
27122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27123   (exit $ac_status); } &&
27124          { ac_try='test -z "$ac_c_werror_flag"
27125                          || test ! -s conftest.err'
27126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27127   (eval $ac_try) 2>&5
27128   ac_status=$?
27129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27130   (exit $ac_status); }; } &&
27131          { ac_try='test -s conftest$ac_exeext'
27132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27133   (eval $ac_try) 2>&5
27134   ac_status=$?
27135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27136   (exit $ac_status); }; }; then
27137   ac_cv_lib_l_yywrap=yes
27138 else
27139   echo "$as_me: failed program was:" >&5
27140 sed 's/^/| /' conftest.$ac_ext >&5
27141
27142 ac_cv_lib_l_yywrap=no
27143 fi
27144 rm -f conftest.err conftest.$ac_objext \
27145       conftest$ac_exeext conftest.$ac_ext
27146 LIBS=$ac_check_lib_save_LIBS
27147 fi
27148 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
27149 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
27150 if test $ac_cv_lib_l_yywrap = yes; then
27151   LEXLIB="-ll"
27152 fi
27153
27154 fi
27155
27156 fi
27157
27158 if test "x$LEX" != "x:"; then
27159   echo "$as_me:$LINENO: checking lex output file root" >&5
27160 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
27161 if test "${ac_cv_prog_lex_root+set}" = set; then
27162   echo $ECHO_N "(cached) $ECHO_C" >&6
27163 else
27164   # The minimal lex program is just a single line: %%.  But some broken lexes
27165 # (Solaris, I think it was) want two %% lines, so accommodate them.
27166 cat >conftest.l <<_ACEOF
27167 %%
27168 %%
27169 _ACEOF
27170 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
27171   (eval $LEX conftest.l) 2>&5
27172   ac_status=$?
27173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27174   (exit $ac_status); }
27175 if test -f lex.yy.c; then
27176   ac_cv_prog_lex_root=lex.yy
27177 elif test -f lexyy.c; then
27178   ac_cv_prog_lex_root=lexyy
27179 else
27180   { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
27181 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
27182    { (exit 1); exit 1; }; }
27183 fi
27184 fi
27185 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
27186 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
27187 rm -f conftest.l
27188 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
27189
27190 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
27191 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
27192 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
27193   echo $ECHO_N "(cached) $ECHO_C" >&6
27194 else
27195   # POSIX says lex can declare yytext either as a pointer or an array; the
27196 # default is implementation-dependent. Figure out which it is, since
27197 # not all implementations provide the %pointer and %array declarations.
27198 ac_cv_prog_lex_yytext_pointer=no
27199 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
27200 ac_save_LIBS=$LIBS
27201 LIBS="$LIBS $LEXLIB"
27202 cat >conftest.$ac_ext <<_ACEOF
27203 `cat $LEX_OUTPUT_ROOT.c`
27204 _ACEOF
27205 rm -f conftest.$ac_objext conftest$ac_exeext
27206 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27207   (eval $ac_link) 2>conftest.er1
27208   ac_status=$?
27209   grep -v '^ *+' conftest.er1 >conftest.err
27210   rm -f conftest.er1
27211   cat conftest.err >&5
27212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27213   (exit $ac_status); } &&
27214          { ac_try='test -z "$ac_c_werror_flag"
27215                          || test ! -s conftest.err'
27216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27217   (eval $ac_try) 2>&5
27218   ac_status=$?
27219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27220   (exit $ac_status); }; } &&
27221          { ac_try='test -s conftest$ac_exeext'
27222   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27223   (eval $ac_try) 2>&5
27224   ac_status=$?
27225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27226   (exit $ac_status); }; }; then
27227   ac_cv_prog_lex_yytext_pointer=yes
27228 else
27229   echo "$as_me: failed program was:" >&5
27230 sed 's/^/| /' conftest.$ac_ext >&5
27231
27232 fi
27233 rm -f conftest.err conftest.$ac_objext \
27234       conftest$ac_exeext conftest.$ac_ext
27235 LIBS=$ac_save_LIBS
27236 rm -f "${LEX_OUTPUT_ROOT}.c"
27237
27238 fi
27239 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
27240 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
27241 if test $ac_cv_prog_lex_yytext_pointer = yes; then
27242
27243 cat >>confdefs.h <<\_ACEOF
27244 #define YYTEXT_POINTER 1
27245 _ACEOF
27246
27247 fi
27248
27249 fi
27250 if test "$LEX" = :; then
27251   LEX=${am_missing_run}flex
27252 fi
27253
27254
27255 echo "$as_me:$LINENO: checking for socklen_t" >&5
27256 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
27257 if test "${ac_cv_type_socklen_t+set}" = set; then
27258   echo $ECHO_N "(cached) $ECHO_C" >&6
27259 else
27260   cat >conftest.$ac_ext <<_ACEOF
27261 /* confdefs.h.  */
27262 _ACEOF
27263 cat confdefs.h >>conftest.$ac_ext
27264 cat >>conftest.$ac_ext <<_ACEOF
27265 /* end confdefs.h.  */
27266 #include <sys/types.h>
27267 #if STDC_HEADERS
27268 #include <stdlib.h>
27269 #include <stddef.h>
27270 #endif
27271 #include <sys/socket.h>
27272 _ACEOF
27273 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27274   $EGREP "(^|[^a-zA-Z_0-9])socklen_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
27275   ac_cv_type_socklen_t=yes
27276 else
27277   ac_cv_type_socklen_t=no
27278 fi
27279 rm -f conftest*
27280
27281 fi
27282 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
27283 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
27284 if test $ac_cv_type_socklen_t = no; then
27285
27286 cat >>confdefs.h <<\_ACEOF
27287 #define socklen_t int
27288 _ACEOF
27289
27290 fi
27291
27292
27293 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
27294 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
27295 if test "${ac_cv_header_stdc+set}" = set; then
27296   echo $ECHO_N "(cached) $ECHO_C" >&6
27297 else
27298   cat >conftest.$ac_ext <<_ACEOF
27299 /* confdefs.h.  */
27300 _ACEOF
27301 cat confdefs.h >>conftest.$ac_ext
27302 cat >>conftest.$ac_ext <<_ACEOF
27303 /* end confdefs.h.  */
27304 #include <stdlib.h>
27305 #include <stdarg.h>
27306 #include <string.h>
27307 #include <float.h>
27308
27309 int
27310 main ()
27311 {
27312
27313   ;
27314   return 0;
27315 }
27316 _ACEOF
27317 rm -f conftest.$ac_objext
27318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27319   (eval $ac_compile) 2>conftest.er1
27320   ac_status=$?
27321   grep -v '^ *+' conftest.er1 >conftest.err
27322   rm -f conftest.er1
27323   cat conftest.err >&5
27324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27325   (exit $ac_status); } &&
27326          { ac_try='test -z "$ac_c_werror_flag"
27327                          || test ! -s conftest.err'
27328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27329   (eval $ac_try) 2>&5
27330   ac_status=$?
27331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27332   (exit $ac_status); }; } &&
27333          { ac_try='test -s conftest.$ac_objext'
27334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27335   (eval $ac_try) 2>&5
27336   ac_status=$?
27337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27338   (exit $ac_status); }; }; then
27339   ac_cv_header_stdc=yes
27340 else
27341   echo "$as_me: failed program was:" >&5
27342 sed 's/^/| /' conftest.$ac_ext >&5
27343
27344 ac_cv_header_stdc=no
27345 fi
27346 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27347
27348 if test $ac_cv_header_stdc = yes; then
27349   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
27350   cat >conftest.$ac_ext <<_ACEOF
27351 /* confdefs.h.  */
27352 _ACEOF
27353 cat confdefs.h >>conftest.$ac_ext
27354 cat >>conftest.$ac_ext <<_ACEOF
27355 /* end confdefs.h.  */
27356 #include <string.h>
27357
27358 _ACEOF
27359 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27360   $EGREP "memchr" >/dev/null 2>&1; then
27361   :
27362 else
27363   ac_cv_header_stdc=no
27364 fi
27365 rm -f conftest*
27366
27367 fi
27368
27369 if test $ac_cv_header_stdc = yes; then
27370   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
27371   cat >conftest.$ac_ext <<_ACEOF
27372 /* confdefs.h.  */
27373 _ACEOF
27374 cat confdefs.h >>conftest.$ac_ext
27375 cat >>conftest.$ac_ext <<_ACEOF
27376 /* end confdefs.h.  */
27377 #include <stdlib.h>
27378
27379 _ACEOF
27380 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27381   $EGREP "free" >/dev/null 2>&1; then
27382   :
27383 else
27384   ac_cv_header_stdc=no
27385 fi
27386 rm -f conftest*
27387
27388 fi
27389
27390 if test $ac_cv_header_stdc = yes; then
27391   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
27392   if test "$cross_compiling" = yes; then
27393   :
27394 else
27395   cat >conftest.$ac_ext <<_ACEOF
27396 /* confdefs.h.  */
27397 _ACEOF
27398 cat confdefs.h >>conftest.$ac_ext
27399 cat >>conftest.$ac_ext <<_ACEOF
27400 /* end confdefs.h.  */
27401 #include <ctype.h>
27402 #if ((' ' & 0x0FF) == 0x020)
27403 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
27404 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
27405 #else
27406 # define ISLOWER(c) \
27407                    (('a' <= (c) && (c) <= 'i') \
27408                      || ('j' <= (c) && (c) <= 'r') \
27409                      || ('s' <= (c) && (c) <= 'z'))
27410 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
27411 #endif
27412
27413 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
27414 int
27415 main ()
27416 {
27417   int i;
27418   for (i = 0; i < 256; i++)
27419     if (XOR (islower (i), ISLOWER (i))
27420         || toupper (i) != TOUPPER (i))
27421       exit(2);
27422   exit (0);
27423 }
27424 _ACEOF
27425 rm -f conftest$ac_exeext
27426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27427   (eval $ac_link) 2>&5
27428   ac_status=$?
27429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27430   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27432   (eval $ac_try) 2>&5
27433   ac_status=$?
27434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27435   (exit $ac_status); }; }; then
27436   :
27437 else
27438   echo "$as_me: program exited with status $ac_status" >&5
27439 echo "$as_me: failed program was:" >&5
27440 sed 's/^/| /' conftest.$ac_ext >&5
27441
27442 ( exit $ac_status )
27443 ac_cv_header_stdc=no
27444 fi
27445 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27446 fi
27447 fi
27448 fi
27449 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
27450 echo "${ECHO_T}$ac_cv_header_stdc" >&6
27451 if test $ac_cv_header_stdc = yes; then
27452
27453 cat >>confdefs.h <<\_ACEOF
27454 #define STDC_HEADERS 1
27455 _ACEOF
27456
27457 fi
27458
27459
27460
27461
27462
27463
27464 ac_header_dirent=no
27465 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
27466   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
27467 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
27468 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
27469 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27470   echo $ECHO_N "(cached) $ECHO_C" >&6
27471 else
27472   cat >conftest.$ac_ext <<_ACEOF
27473 /* confdefs.h.  */
27474 _ACEOF
27475 cat confdefs.h >>conftest.$ac_ext
27476 cat >>conftest.$ac_ext <<_ACEOF
27477 /* end confdefs.h.  */
27478 #include <sys/types.h>
27479 #include <$ac_hdr>
27480
27481 int
27482 main ()
27483 {
27484 if ((DIR *) 0)
27485 return 0;
27486   ;
27487   return 0;
27488 }
27489 _ACEOF
27490 rm -f conftest.$ac_objext
27491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27492   (eval $ac_compile) 2>conftest.er1
27493   ac_status=$?
27494   grep -v '^ *+' conftest.er1 >conftest.err
27495   rm -f conftest.er1
27496   cat conftest.err >&5
27497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27498   (exit $ac_status); } &&
27499          { ac_try='test -z "$ac_c_werror_flag"
27500                          || test ! -s conftest.err'
27501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27502   (eval $ac_try) 2>&5
27503   ac_status=$?
27504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27505   (exit $ac_status); }; } &&
27506          { ac_try='test -s conftest.$ac_objext'
27507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27508   (eval $ac_try) 2>&5
27509   ac_status=$?
27510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27511   (exit $ac_status); }; }; then
27512   eval "$as_ac_Header=yes"
27513 else
27514   echo "$as_me: failed program was:" >&5
27515 sed 's/^/| /' conftest.$ac_ext >&5
27516
27517 eval "$as_ac_Header=no"
27518 fi
27519 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27520 fi
27521 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27522 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27523 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27524   cat >>confdefs.h <<_ACEOF
27525 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
27526 _ACEOF
27527
27528 ac_header_dirent=$ac_hdr; break
27529 fi
27530
27531 done
27532 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
27533 if test $ac_header_dirent = dirent.h; then
27534   echo "$as_me:$LINENO: checking for library containing opendir" >&5
27535 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
27536 if test "${ac_cv_search_opendir+set}" = set; then
27537   echo $ECHO_N "(cached) $ECHO_C" >&6
27538 else
27539   ac_func_search_save_LIBS=$LIBS
27540 ac_cv_search_opendir=no
27541 cat >conftest.$ac_ext <<_ACEOF
27542 /* confdefs.h.  */
27543 _ACEOF
27544 cat confdefs.h >>conftest.$ac_ext
27545 cat >>conftest.$ac_ext <<_ACEOF
27546 /* end confdefs.h.  */
27547
27548 /* Override any gcc2 internal prototype to avoid an error.  */
27549 #ifdef __cplusplus
27550 extern "C"
27551 #endif
27552 /* We use char because int might match the return type of a gcc2
27553    builtin and then its argument prototype would still apply.  */
27554 char opendir ();
27555 int
27556 main ()
27557 {
27558 opendir ();
27559   ;
27560   return 0;
27561 }
27562 _ACEOF
27563 rm -f conftest.$ac_objext conftest$ac_exeext
27564 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27565   (eval $ac_link) 2>conftest.er1
27566   ac_status=$?
27567   grep -v '^ *+' conftest.er1 >conftest.err
27568   rm -f conftest.er1
27569   cat conftest.err >&5
27570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27571   (exit $ac_status); } &&
27572          { ac_try='test -z "$ac_c_werror_flag"
27573                          || test ! -s conftest.err'
27574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27575   (eval $ac_try) 2>&5
27576   ac_status=$?
27577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27578   (exit $ac_status); }; } &&
27579          { ac_try='test -s conftest$ac_exeext'
27580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27581   (eval $ac_try) 2>&5
27582   ac_status=$?
27583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27584   (exit $ac_status); }; }; then
27585   ac_cv_search_opendir="none required"
27586 else
27587   echo "$as_me: failed program was:" >&5
27588 sed 's/^/| /' conftest.$ac_ext >&5
27589
27590 fi
27591 rm -f conftest.err conftest.$ac_objext \
27592       conftest$ac_exeext conftest.$ac_ext
27593 if test "$ac_cv_search_opendir" = no; then
27594   for ac_lib in dir; do
27595     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27596     cat >conftest.$ac_ext <<_ACEOF
27597 /* confdefs.h.  */
27598 _ACEOF
27599 cat confdefs.h >>conftest.$ac_ext
27600 cat >>conftest.$ac_ext <<_ACEOF
27601 /* end confdefs.h.  */
27602
27603 /* Override any gcc2 internal prototype to avoid an error.  */
27604 #ifdef __cplusplus
27605 extern "C"
27606 #endif
27607 /* We use char because int might match the return type of a gcc2
27608    builtin and then its argument prototype would still apply.  */
27609 char opendir ();
27610 int
27611 main ()
27612 {
27613 opendir ();
27614   ;
27615   return 0;
27616 }
27617 _ACEOF
27618 rm -f conftest.$ac_objext conftest$ac_exeext
27619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27620   (eval $ac_link) 2>conftest.er1
27621   ac_status=$?
27622   grep -v '^ *+' conftest.er1 >conftest.err
27623   rm -f conftest.er1
27624   cat conftest.err >&5
27625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27626   (exit $ac_status); } &&
27627          { ac_try='test -z "$ac_c_werror_flag"
27628                          || test ! -s conftest.err'
27629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27630   (eval $ac_try) 2>&5
27631   ac_status=$?
27632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27633   (exit $ac_status); }; } &&
27634          { ac_try='test -s conftest$ac_exeext'
27635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27636   (eval $ac_try) 2>&5
27637   ac_status=$?
27638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27639   (exit $ac_status); }; }; then
27640   ac_cv_search_opendir="-l$ac_lib"
27641 break
27642 else
27643   echo "$as_me: failed program was:" >&5
27644 sed 's/^/| /' conftest.$ac_ext >&5
27645
27646 fi
27647 rm -f conftest.err conftest.$ac_objext \
27648       conftest$ac_exeext conftest.$ac_ext
27649   done
27650 fi
27651 LIBS=$ac_func_search_save_LIBS
27652 fi
27653 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
27654 echo "${ECHO_T}$ac_cv_search_opendir" >&6
27655 if test "$ac_cv_search_opendir" != no; then
27656   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
27657
27658 fi
27659
27660 else
27661   echo "$as_me:$LINENO: checking for library containing opendir" >&5
27662 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
27663 if test "${ac_cv_search_opendir+set}" = set; then
27664   echo $ECHO_N "(cached) $ECHO_C" >&6
27665 else
27666   ac_func_search_save_LIBS=$LIBS
27667 ac_cv_search_opendir=no
27668 cat >conftest.$ac_ext <<_ACEOF
27669 /* confdefs.h.  */
27670 _ACEOF
27671 cat confdefs.h >>conftest.$ac_ext
27672 cat >>conftest.$ac_ext <<_ACEOF
27673 /* end confdefs.h.  */
27674
27675 /* Override any gcc2 internal prototype to avoid an error.  */
27676 #ifdef __cplusplus
27677 extern "C"
27678 #endif
27679 /* We use char because int might match the return type of a gcc2
27680    builtin and then its argument prototype would still apply.  */
27681 char opendir ();
27682 int
27683 main ()
27684 {
27685 opendir ();
27686   ;
27687   return 0;
27688 }
27689 _ACEOF
27690 rm -f conftest.$ac_objext conftest$ac_exeext
27691 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27692   (eval $ac_link) 2>conftest.er1
27693   ac_status=$?
27694   grep -v '^ *+' conftest.er1 >conftest.err
27695   rm -f conftest.er1
27696   cat conftest.err >&5
27697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27698   (exit $ac_status); } &&
27699          { ac_try='test -z "$ac_c_werror_flag"
27700                          || test ! -s conftest.err'
27701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27702   (eval $ac_try) 2>&5
27703   ac_status=$?
27704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27705   (exit $ac_status); }; } &&
27706          { ac_try='test -s conftest$ac_exeext'
27707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27708   (eval $ac_try) 2>&5
27709   ac_status=$?
27710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27711   (exit $ac_status); }; }; then
27712   ac_cv_search_opendir="none required"
27713 else
27714   echo "$as_me: failed program was:" >&5
27715 sed 's/^/| /' conftest.$ac_ext >&5
27716
27717 fi
27718 rm -f conftest.err conftest.$ac_objext \
27719       conftest$ac_exeext conftest.$ac_ext
27720 if test "$ac_cv_search_opendir" = no; then
27721   for ac_lib in x; do
27722     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27723     cat >conftest.$ac_ext <<_ACEOF
27724 /* confdefs.h.  */
27725 _ACEOF
27726 cat confdefs.h >>conftest.$ac_ext
27727 cat >>conftest.$ac_ext <<_ACEOF
27728 /* end confdefs.h.  */
27729
27730 /* Override any gcc2 internal prototype to avoid an error.  */
27731 #ifdef __cplusplus
27732 extern "C"
27733 #endif
27734 /* We use char because int might match the return type of a gcc2
27735    builtin and then its argument prototype would still apply.  */
27736 char opendir ();
27737 int
27738 main ()
27739 {
27740 opendir ();
27741   ;
27742   return 0;
27743 }
27744 _ACEOF
27745 rm -f conftest.$ac_objext conftest$ac_exeext
27746 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27747   (eval $ac_link) 2>conftest.er1
27748   ac_status=$?
27749   grep -v '^ *+' conftest.er1 >conftest.err
27750   rm -f conftest.er1
27751   cat conftest.err >&5
27752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27753   (exit $ac_status); } &&
27754          { ac_try='test -z "$ac_c_werror_flag"
27755                          || test ! -s conftest.err'
27756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27757   (eval $ac_try) 2>&5
27758   ac_status=$?
27759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27760   (exit $ac_status); }; } &&
27761          { ac_try='test -s conftest$ac_exeext'
27762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27763   (eval $ac_try) 2>&5
27764   ac_status=$?
27765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27766   (exit $ac_status); }; }; then
27767   ac_cv_search_opendir="-l$ac_lib"
27768 break
27769 else
27770   echo "$as_me: failed program was:" >&5
27771 sed 's/^/| /' conftest.$ac_ext >&5
27772
27773 fi
27774 rm -f conftest.err conftest.$ac_objext \
27775       conftest$ac_exeext conftest.$ac_ext
27776   done
27777 fi
27778 LIBS=$ac_func_search_save_LIBS
27779 fi
27780 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
27781 echo "${ECHO_T}$ac_cv_search_opendir" >&6
27782 if test "$ac_cv_search_opendir" != no; then
27783   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
27784
27785 fi
27786
27787 fi
27788
27789
27790
27791
27792
27793 for ac_header in sys/wait.h wait.h
27794 do
27795 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27796 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27797   echo "$as_me:$LINENO: checking for $ac_header" >&5
27798 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27799 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27800   echo $ECHO_N "(cached) $ECHO_C" >&6
27801 fi
27802 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27803 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27804 else
27805   # Is the header compilable?
27806 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27807 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27808 cat >conftest.$ac_ext <<_ACEOF
27809 /* confdefs.h.  */
27810 _ACEOF
27811 cat confdefs.h >>conftest.$ac_ext
27812 cat >>conftest.$ac_ext <<_ACEOF
27813 /* end confdefs.h.  */
27814 $ac_includes_default
27815 #include <$ac_header>
27816 _ACEOF
27817 rm -f conftest.$ac_objext
27818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27819   (eval $ac_compile) 2>conftest.er1
27820   ac_status=$?
27821   grep -v '^ *+' conftest.er1 >conftest.err
27822   rm -f conftest.er1
27823   cat conftest.err >&5
27824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27825   (exit $ac_status); } &&
27826          { ac_try='test -z "$ac_c_werror_flag"
27827                          || test ! -s conftest.err'
27828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27829   (eval $ac_try) 2>&5
27830   ac_status=$?
27831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27832   (exit $ac_status); }; } &&
27833          { ac_try='test -s conftest.$ac_objext'
27834   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27835   (eval $ac_try) 2>&5
27836   ac_status=$?
27837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27838   (exit $ac_status); }; }; then
27839   ac_header_compiler=yes
27840 else
27841   echo "$as_me: failed program was:" >&5
27842 sed 's/^/| /' conftest.$ac_ext >&5
27843
27844 ac_header_compiler=no
27845 fi
27846 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27847 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27848 echo "${ECHO_T}$ac_header_compiler" >&6
27849
27850 # Is the header present?
27851 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27852 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27853 cat >conftest.$ac_ext <<_ACEOF
27854 /* confdefs.h.  */
27855 _ACEOF
27856 cat confdefs.h >>conftest.$ac_ext
27857 cat >>conftest.$ac_ext <<_ACEOF
27858 /* end confdefs.h.  */
27859 #include <$ac_header>
27860 _ACEOF
27861 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27862   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27863   ac_status=$?
27864   grep -v '^ *+' conftest.er1 >conftest.err
27865   rm -f conftest.er1
27866   cat conftest.err >&5
27867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27868   (exit $ac_status); } >/dev/null; then
27869   if test -s conftest.err; then
27870     ac_cpp_err=$ac_c_preproc_warn_flag
27871     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27872   else
27873     ac_cpp_err=
27874   fi
27875 else
27876   ac_cpp_err=yes
27877 fi
27878 if test -z "$ac_cpp_err"; then
27879   ac_header_preproc=yes
27880 else
27881   echo "$as_me: failed program was:" >&5
27882 sed 's/^/| /' conftest.$ac_ext >&5
27883
27884   ac_header_preproc=no
27885 fi
27886 rm -f conftest.err conftest.$ac_ext
27887 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27888 echo "${ECHO_T}$ac_header_preproc" >&6
27889
27890 # So?  What about this header?
27891 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27892   yes:no: )
27893     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27894 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27895     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27896 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27897     ac_header_preproc=yes
27898     ;;
27899   no:yes:* )
27900     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27901 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27902     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27903 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27904     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27905 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27906     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27907 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27908     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27909 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27910     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27911 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27912     (
27913       cat <<\_ASBOX
27914 ## ------------------------------------------ ##
27915 ## Report this to the AC_PACKAGE_NAME lists.  ##
27916 ## ------------------------------------------ ##
27917 _ASBOX
27918     ) |
27919       sed "s/^/$as_me: WARNING:     /" >&2
27920     ;;
27921 esac
27922 echo "$as_me:$LINENO: checking for $ac_header" >&5
27923 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27924 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27925   echo $ECHO_N "(cached) $ECHO_C" >&6
27926 else
27927   eval "$as_ac_Header=\$ac_header_preproc"
27928 fi
27929 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27930 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27931
27932 fi
27933 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27934   cat >>confdefs.h <<_ACEOF
27935 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27936 _ACEOF
27937
27938 fi
27939
27940 done
27941
27942 echo "$as_me:$LINENO: checking whether wait uses union wait" >&5
27943 echo $ECHO_N "checking whether wait uses union wait... $ECHO_C" >&6
27944 if test "${cf_cv_arg_union_wait+set}" = set; then
27945   echo $ECHO_N "(cached) $ECHO_C" >&6
27946 else
27947   cat >conftest.$ac_ext <<_ACEOF
27948 /* confdefs.h.  */
27949 _ACEOF
27950 cat confdefs.h >>conftest.$ac_ext
27951 cat >>conftest.$ac_ext <<_ACEOF
27952 /* end confdefs.h.  */
27953
27954 #include <sys/types.h>
27955
27956 #if HAVE_SYS_WAIT_H
27957 # include <sys/wait.h>
27958 #else
27959 # if HAVE_WAIT_H
27960 #  include <wait.h>
27961 # endif
27962 #endif
27963
27964 #ifdef __STDC__
27965 pid_t wait(union wait *);
27966 #endif
27967
27968 int
27969 main ()
27970 {
27971
27972   union wait x; int i;
27973   wait(&x); i = WIFEXITED(x)
27974
27975   ;
27976   return 0;
27977 }
27978 _ACEOF
27979 rm -f conftest.$ac_objext
27980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27981   (eval $ac_compile) 2>conftest.er1
27982   ac_status=$?
27983   grep -v '^ *+' conftest.er1 >conftest.err
27984   rm -f conftest.er1
27985   cat conftest.err >&5
27986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27987   (exit $ac_status); } &&
27988          { ac_try='test -z "$ac_c_werror_flag"
27989                          || test ! -s conftest.err'
27990   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27991   (eval $ac_try) 2>&5
27992   ac_status=$?
27993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27994   (exit $ac_status); }; } &&
27995          { ac_try='test -s conftest.$ac_objext'
27996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27997   (eval $ac_try) 2>&5
27998   ac_status=$?
27999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28000   (exit $ac_status); }; }; then
28001   cf_cv_arg_union_wait=yes
28002 else
28003   echo "$as_me: failed program was:" >&5
28004 sed 's/^/| /' conftest.$ac_ext >&5
28005
28006 cf_cv_arg_union_wait=no
28007 fi
28008 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28009 fi
28010 echo "$as_me:$LINENO: result: $cf_cv_arg_union_wait" >&5
28011 echo "${ECHO_T}$cf_cv_arg_union_wait" >&6
28012 if test $cf_cv_arg_union_wait = yes; then
28013
28014 cat >>confdefs.h <<\_ACEOF
28015 #define WAIT_USES_UNION 1
28016 _ACEOF
28017
28018 fi
28019
28020
28021
28022
28023
28024 for ac_header in sys/wait.h wait.h
28025 do
28026 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28027 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28028   echo "$as_me:$LINENO: checking for $ac_header" >&5
28029 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28030 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28031   echo $ECHO_N "(cached) $ECHO_C" >&6
28032 fi
28033 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28034 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28035 else
28036   # Is the header compilable?
28037 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28038 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28039 cat >conftest.$ac_ext <<_ACEOF
28040 /* confdefs.h.  */
28041 _ACEOF
28042 cat confdefs.h >>conftest.$ac_ext
28043 cat >>conftest.$ac_ext <<_ACEOF
28044 /* end confdefs.h.  */
28045 $ac_includes_default
28046 #include <$ac_header>
28047 _ACEOF
28048 rm -f conftest.$ac_objext
28049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28050   (eval $ac_compile) 2>conftest.er1
28051   ac_status=$?
28052   grep -v '^ *+' conftest.er1 >conftest.err
28053   rm -f conftest.er1
28054   cat conftest.err >&5
28055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28056   (exit $ac_status); } &&
28057          { ac_try='test -z "$ac_c_werror_flag"
28058                          || test ! -s conftest.err'
28059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28060   (eval $ac_try) 2>&5
28061   ac_status=$?
28062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28063   (exit $ac_status); }; } &&
28064          { ac_try='test -s conftest.$ac_objext'
28065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28066   (eval $ac_try) 2>&5
28067   ac_status=$?
28068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28069   (exit $ac_status); }; }; then
28070   ac_header_compiler=yes
28071 else
28072   echo "$as_me: failed program was:" >&5
28073 sed 's/^/| /' conftest.$ac_ext >&5
28074
28075 ac_header_compiler=no
28076 fi
28077 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28078 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28079 echo "${ECHO_T}$ac_header_compiler" >&6
28080
28081 # Is the header present?
28082 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28083 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28084 cat >conftest.$ac_ext <<_ACEOF
28085 /* confdefs.h.  */
28086 _ACEOF
28087 cat confdefs.h >>conftest.$ac_ext
28088 cat >>conftest.$ac_ext <<_ACEOF
28089 /* end confdefs.h.  */
28090 #include <$ac_header>
28091 _ACEOF
28092 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28093   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28094   ac_status=$?
28095   grep -v '^ *+' conftest.er1 >conftest.err
28096   rm -f conftest.er1
28097   cat conftest.err >&5
28098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28099   (exit $ac_status); } >/dev/null; then
28100   if test -s conftest.err; then
28101     ac_cpp_err=$ac_c_preproc_warn_flag
28102     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28103   else
28104     ac_cpp_err=
28105   fi
28106 else
28107   ac_cpp_err=yes
28108 fi
28109 if test -z "$ac_cpp_err"; then
28110   ac_header_preproc=yes
28111 else
28112   echo "$as_me: failed program was:" >&5
28113 sed 's/^/| /' conftest.$ac_ext >&5
28114
28115   ac_header_preproc=no
28116 fi
28117 rm -f conftest.err conftest.$ac_ext
28118 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28119 echo "${ECHO_T}$ac_header_preproc" >&6
28120
28121 # So?  What about this header?
28122 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28123   yes:no: )
28124     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28125 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28126     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28127 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28128     ac_header_preproc=yes
28129     ;;
28130   no:yes:* )
28131     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28132 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28133     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28134 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28135     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28136 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28137     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28138 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28139     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28140 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28141     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28142 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28143     (
28144       cat <<\_ASBOX
28145 ## ------------------------------------------ ##
28146 ## Report this to the AC_PACKAGE_NAME lists.  ##
28147 ## ------------------------------------------ ##
28148 _ASBOX
28149     ) |
28150       sed "s/^/$as_me: WARNING:     /" >&2
28151     ;;
28152 esac
28153 echo "$as_me:$LINENO: checking for $ac_header" >&5
28154 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28155 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28156   echo $ECHO_N "(cached) $ECHO_C" >&6
28157 else
28158   eval "$as_ac_Header=\$ac_header_preproc"
28159 fi
28160 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28161 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28162
28163 fi
28164 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28165   cat >>confdefs.h <<_ACEOF
28166 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28167 _ACEOF
28168
28169 fi
28170
28171 done
28172
28173 echo "$as_me:$LINENO: checking whether wait uses int" >&5
28174 echo $ECHO_N "checking whether wait uses int... $ECHO_C" >&6
28175 if test "${cf_cv_arg_int+set}" = set; then
28176   echo $ECHO_N "(cached) $ECHO_C" >&6
28177 else
28178   cat >conftest.$ac_ext <<_ACEOF
28179 /* confdefs.h.  */
28180 _ACEOF
28181 cat confdefs.h >>conftest.$ac_ext
28182 cat >>conftest.$ac_ext <<_ACEOF
28183 /* end confdefs.h.  */
28184
28185 #include <sys/types.h>
28186
28187 #if HAVE_SYS_WAIT_H
28188 # include <sys/wait.h>
28189 #else
28190 # if HAVE_WAIT_H
28191 #  include <wait.h>
28192 # endif
28193 #endif
28194
28195 #ifdef __STDC__
28196 pid_t wait(int *);
28197 #endif
28198
28199 int
28200 main ()
28201 {
28202
28203   int x; int i;
28204   wait(&x); i = WIFEXITED(x)
28205
28206   ;
28207   return 0;
28208 }
28209 _ACEOF
28210 rm -f conftest.$ac_objext
28211 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28212   (eval $ac_compile) 2>conftest.er1
28213   ac_status=$?
28214   grep -v '^ *+' conftest.er1 >conftest.err
28215   rm -f conftest.er1
28216   cat conftest.err >&5
28217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28218   (exit $ac_status); } &&
28219          { ac_try='test -z "$ac_c_werror_flag"
28220                          || test ! -s conftest.err'
28221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28222   (eval $ac_try) 2>&5
28223   ac_status=$?
28224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28225   (exit $ac_status); }; } &&
28226          { ac_try='test -s conftest.$ac_objext'
28227   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28228   (eval $ac_try) 2>&5
28229   ac_status=$?
28230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28231   (exit $ac_status); }; }; then
28232   cf_cv_arg_int=yes
28233 else
28234   echo "$as_me: failed program was:" >&5
28235 sed 's/^/| /' conftest.$ac_ext >&5
28236
28237 cf_cv_arg_int=no
28238 fi
28239 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28240 fi
28241 echo "$as_me:$LINENO: result: $cf_cv_arg_int" >&5
28242 echo "${ECHO_T}$cf_cv_arg_int" >&6
28243 if test $cf_cv_arg_int = yes; then
28244
28245 cat >>confdefs.h <<\_ACEOF
28246 #define WAIT_USES_INT 1
28247 _ACEOF
28248
28249 fi
28250
28251 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
28252 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
28253 if test "${ac_cv_header_time+set}" = set; then
28254   echo $ECHO_N "(cached) $ECHO_C" >&6
28255 else
28256   cat >conftest.$ac_ext <<_ACEOF
28257 /* confdefs.h.  */
28258 _ACEOF
28259 cat confdefs.h >>conftest.$ac_ext
28260 cat >>conftest.$ac_ext <<_ACEOF
28261 /* end confdefs.h.  */
28262 #include <sys/types.h>
28263 #include <sys/time.h>
28264 #include <time.h>
28265
28266 int
28267 main ()
28268 {
28269 if ((struct tm *) 0)
28270 return 0;
28271   ;
28272   return 0;
28273 }
28274 _ACEOF
28275 rm -f conftest.$ac_objext
28276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28277   (eval $ac_compile) 2>conftest.er1
28278   ac_status=$?
28279   grep -v '^ *+' conftest.er1 >conftest.err
28280   rm -f conftest.er1
28281   cat conftest.err >&5
28282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28283   (exit $ac_status); } &&
28284          { ac_try='test -z "$ac_c_werror_flag"
28285                          || test ! -s conftest.err'
28286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28287   (eval $ac_try) 2>&5
28288   ac_status=$?
28289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28290   (exit $ac_status); }; } &&
28291          { ac_try='test -s conftest.$ac_objext'
28292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28293   (eval $ac_try) 2>&5
28294   ac_status=$?
28295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28296   (exit $ac_status); }; }; then
28297   ac_cv_header_time=yes
28298 else
28299   echo "$as_me: failed program was:" >&5
28300 sed 's/^/| /' conftest.$ac_ext >&5
28301
28302 ac_cv_header_time=no
28303 fi
28304 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28305 fi
28306 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
28307 echo "${ECHO_T}$ac_cv_header_time" >&6
28308 if test $ac_cv_header_time = yes; then
28309
28310 cat >>confdefs.h <<\_ACEOF
28311 #define TIME_WITH_SYS_TIME 1
28312 _ACEOF
28313
28314 fi
28315
28316
28317
28318
28319
28320
28321
28322
28323
28324
28325
28326
28327
28328
28329
28330
28331
28332
28333
28334
28335
28336
28337
28338
28339
28340
28341
28342
28343
28344
28345
28346
28347
28348
28349
28350
28351
28352
28353
28354
28355
28356
28357
28358
28359
28360
28361
28362
28363
28364
28365
28366
28367
28368
28369
28370
28371
28372
28373 for ac_header in \
28374         arpa/inet.h \
28375         camlib.h \
28376         cam/cam.h \
28377         cam/scsi/scsi_message.h \
28378         chio.h \
28379         db.h \
28380         dbm.h \
28381         fcntl.h \
28382         fnmatch.h \
28383         fstab.h \
28384         grp.h \
28385         history.h \
28386         libc.h \
28387         limits.h \
28388         linux/zftape.h \
28389         mntent.h \
28390         mnttab.h \
28391         ndbm.h \
28392         netdb.h \
28393         netinet/in_systm.h \
28394         readline.h \
28395         readline/history.h \
28396         readline/readline.h \
28397         scsi/sg.h \
28398         scsi/scsi_ioctl.h \
28399         stdlib.h \
28400         string.h \
28401         strings.h \
28402         sys/chio.h \
28403         sys/dsreq.h \
28404         sys/fcntl.h \
28405         sys/file.h \
28406         sys/ioctl.h \
28407         sys/ipc.h \
28408         sys/mman.h \
28409         sys/mntent.h \
28410         sys/mtio.h \
28411         sys/param.h \
28412         sys/scarray.h \
28413         sys/gscdds.h \
28414         sys/scsiio.h \
28415         sys/scsi.h \
28416         sys/scsi/impl/uscsi.h \
28417         sys/scsi/scsi/ioctl.h \
28418         sys/select.h \
28419         sys/shm.h \
28420         sys/stat.h \
28421         sys/statfs.h \
28422         sys/statvfs.h \
28423         sys/tape.h \
28424         sys/time.h \
28425         sys/types.h \
28426         sys/vfs.h \
28427         sys/vfstab.h \
28428         syslog.h \
28429         unistd.h \
28430         vtblc.h \
28431
28432 do
28433 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28434 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28435   echo "$as_me:$LINENO: checking for $ac_header" >&5
28436 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28437 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28438   echo $ECHO_N "(cached) $ECHO_C" >&6
28439 fi
28440 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28441 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28442 else
28443   # Is the header compilable?
28444 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28445 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28446 cat >conftest.$ac_ext <<_ACEOF
28447 /* confdefs.h.  */
28448 _ACEOF
28449 cat confdefs.h >>conftest.$ac_ext
28450 cat >>conftest.$ac_ext <<_ACEOF
28451 /* end confdefs.h.  */
28452 $ac_includes_default
28453 #include <$ac_header>
28454 _ACEOF
28455 rm -f conftest.$ac_objext
28456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28457   (eval $ac_compile) 2>conftest.er1
28458   ac_status=$?
28459   grep -v '^ *+' conftest.er1 >conftest.err
28460   rm -f conftest.er1
28461   cat conftest.err >&5
28462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28463   (exit $ac_status); } &&
28464          { ac_try='test -z "$ac_c_werror_flag"
28465                          || test ! -s conftest.err'
28466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28467   (eval $ac_try) 2>&5
28468   ac_status=$?
28469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28470   (exit $ac_status); }; } &&
28471          { ac_try='test -s conftest.$ac_objext'
28472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28473   (eval $ac_try) 2>&5
28474   ac_status=$?
28475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28476   (exit $ac_status); }; }; then
28477   ac_header_compiler=yes
28478 else
28479   echo "$as_me: failed program was:" >&5
28480 sed 's/^/| /' conftest.$ac_ext >&5
28481
28482 ac_header_compiler=no
28483 fi
28484 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28485 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28486 echo "${ECHO_T}$ac_header_compiler" >&6
28487
28488 # Is the header present?
28489 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28490 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28491 cat >conftest.$ac_ext <<_ACEOF
28492 /* confdefs.h.  */
28493 _ACEOF
28494 cat confdefs.h >>conftest.$ac_ext
28495 cat >>conftest.$ac_ext <<_ACEOF
28496 /* end confdefs.h.  */
28497 #include <$ac_header>
28498 _ACEOF
28499 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28500   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28501   ac_status=$?
28502   grep -v '^ *+' conftest.er1 >conftest.err
28503   rm -f conftest.er1
28504   cat conftest.err >&5
28505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28506   (exit $ac_status); } >/dev/null; then
28507   if test -s conftest.err; then
28508     ac_cpp_err=$ac_c_preproc_warn_flag
28509     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28510   else
28511     ac_cpp_err=
28512   fi
28513 else
28514   ac_cpp_err=yes
28515 fi
28516 if test -z "$ac_cpp_err"; then
28517   ac_header_preproc=yes
28518 else
28519   echo "$as_me: failed program was:" >&5
28520 sed 's/^/| /' conftest.$ac_ext >&5
28521
28522   ac_header_preproc=no
28523 fi
28524 rm -f conftest.err conftest.$ac_ext
28525 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28526 echo "${ECHO_T}$ac_header_preproc" >&6
28527
28528 # So?  What about this header?
28529 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28530   yes:no: )
28531     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28532 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28533     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28534 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28535     ac_header_preproc=yes
28536     ;;
28537   no:yes:* )
28538     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28539 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28540     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28541 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28542     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28543 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28544     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28545 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28546     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28547 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28548     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28549 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28550     (
28551       cat <<\_ASBOX
28552 ## ------------------------------------------ ##
28553 ## Report this to the AC_PACKAGE_NAME lists.  ##
28554 ## ------------------------------------------ ##
28555 _ASBOX
28556     ) |
28557       sed "s/^/$as_me: WARNING:     /" >&2
28558     ;;
28559 esac
28560 echo "$as_me:$LINENO: checking for $ac_header" >&5
28561 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28562 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28563   echo $ECHO_N "(cached) $ECHO_C" >&6
28564 else
28565   eval "$as_ac_Header=\$ac_header_preproc"
28566 fi
28567 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28568 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28569
28570 fi
28571 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28572   cat >>confdefs.h <<_ACEOF
28573 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28574 _ACEOF
28575
28576 fi
28577
28578 done
28579
28580
28581
28582 for ac_header in netinet/ip.h
28583 do
28584 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28585 echo "$as_me:$LINENO: checking for $ac_header" >&5
28586 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28587 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28588   echo $ECHO_N "(cached) $ECHO_C" >&6
28589 else
28590   cat >conftest.$ac_ext <<_ACEOF
28591 /* confdefs.h.  */
28592 _ACEOF
28593 cat confdefs.h >>conftest.$ac_ext
28594 cat >>conftest.$ac_ext <<_ACEOF
28595 /* end confdefs.h.  */
28596 #include <sys/socket.h>
28597 #if HAVE_SYS_TYPES_H
28598 #include <sys/types.h>
28599 #endif
28600 #ifdef HAVE_NETINET_IN_SYSTM_H
28601 #include <netinet/in_systm.h>
28602 #endif
28603 #include <netinet/in.h>
28604
28605
28606 #include <$ac_header>
28607 _ACEOF
28608 rm -f conftest.$ac_objext
28609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28610   (eval $ac_compile) 2>conftest.er1
28611   ac_status=$?
28612   grep -v '^ *+' conftest.er1 >conftest.err
28613   rm -f conftest.er1
28614   cat conftest.err >&5
28615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28616   (exit $ac_status); } &&
28617          { ac_try='test -z "$ac_c_werror_flag"
28618                          || test ! -s conftest.err'
28619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28620   (eval $ac_try) 2>&5
28621   ac_status=$?
28622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28623   (exit $ac_status); }; } &&
28624          { ac_try='test -s conftest.$ac_objext'
28625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28626   (eval $ac_try) 2>&5
28627   ac_status=$?
28628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28629   (exit $ac_status); }; }; then
28630   eval "$as_ac_Header=yes"
28631 else
28632   echo "$as_me: failed program was:" >&5
28633 sed 's/^/| /' conftest.$ac_ext >&5
28634
28635 eval "$as_ac_Header=no"
28636 fi
28637 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28638 fi
28639 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28640 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28641 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28642   cat >>confdefs.h <<_ACEOF
28643 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28644 _ACEOF
28645
28646 fi
28647
28648 done
28649
28650
28651
28652 for ac_header in sys/mount.h
28653 do
28654 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28655 echo "$as_me:$LINENO: checking for $ac_header" >&5
28656 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28657 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28658   echo $ECHO_N "(cached) $ECHO_C" >&6
28659 else
28660   cat >conftest.$ac_ext <<_ACEOF
28661 /* confdefs.h.  */
28662 _ACEOF
28663 cat confdefs.h >>conftest.$ac_ext
28664 cat >>conftest.$ac_ext <<_ACEOF
28665 /* end confdefs.h.  */
28666 #ifdef HAVE_SYS_PARAM_H
28667 #include <sys/param.h>
28668 #endif
28669
28670
28671 #include <$ac_header>
28672 _ACEOF
28673 rm -f conftest.$ac_objext
28674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28675   (eval $ac_compile) 2>conftest.er1
28676   ac_status=$?
28677   grep -v '^ *+' conftest.er1 >conftest.err
28678   rm -f conftest.er1
28679   cat conftest.err >&5
28680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28681   (exit $ac_status); } &&
28682          { ac_try='test -z "$ac_c_werror_flag"
28683                          || test ! -s conftest.err'
28684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28685   (eval $ac_try) 2>&5
28686   ac_status=$?
28687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28688   (exit $ac_status); }; } &&
28689          { ac_try='test -s conftest.$ac_objext'
28690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28691   (eval $ac_try) 2>&5
28692   ac_status=$?
28693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28694   (exit $ac_status); }; }; then
28695   eval "$as_ac_Header=yes"
28696 else
28697   echo "$as_me: failed program was:" >&5
28698 sed 's/^/| /' conftest.$ac_ext >&5
28699
28700 eval "$as_ac_Header=no"
28701 fi
28702 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28703 fi
28704 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28705 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28706 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28707   cat >>confdefs.h <<_ACEOF
28708 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28709 _ACEOF
28710
28711 fi
28712
28713 done
28714
28715
28716 NO_SCSI_CHANGER_MODE=true
28717 NO_CHIO_CHANGER_MODE=true
28718
28719 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
28720 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
28721 if test "${ac_cv_c_bigendian+set}" = set; then
28722   echo $ECHO_N "(cached) $ECHO_C" >&6
28723 else
28724   # See if sys/param.h defines the BYTE_ORDER macro.
28725 cat >conftest.$ac_ext <<_ACEOF
28726 /* confdefs.h.  */
28727 _ACEOF
28728 cat confdefs.h >>conftest.$ac_ext
28729 cat >>conftest.$ac_ext <<_ACEOF
28730 /* end confdefs.h.  */
28731 #include <sys/types.h>
28732 #include <sys/param.h>
28733
28734 int
28735 main ()
28736 {
28737 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
28738  bogus endian macros
28739 #endif
28740
28741   ;
28742   return 0;
28743 }
28744 _ACEOF
28745 rm -f conftest.$ac_objext
28746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28747   (eval $ac_compile) 2>conftest.er1
28748   ac_status=$?
28749   grep -v '^ *+' conftest.er1 >conftest.err
28750   rm -f conftest.er1
28751   cat conftest.err >&5
28752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28753   (exit $ac_status); } &&
28754          { ac_try='test -z "$ac_c_werror_flag"
28755                          || test ! -s conftest.err'
28756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28757   (eval $ac_try) 2>&5
28758   ac_status=$?
28759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28760   (exit $ac_status); }; } &&
28761          { ac_try='test -s conftest.$ac_objext'
28762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28763   (eval $ac_try) 2>&5
28764   ac_status=$?
28765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28766   (exit $ac_status); }; }; then
28767   # It does; now see whether it defined to BIG_ENDIAN or not.
28768 cat >conftest.$ac_ext <<_ACEOF
28769 /* confdefs.h.  */
28770 _ACEOF
28771 cat confdefs.h >>conftest.$ac_ext
28772 cat >>conftest.$ac_ext <<_ACEOF
28773 /* end confdefs.h.  */
28774 #include <sys/types.h>
28775 #include <sys/param.h>
28776
28777 int
28778 main ()
28779 {
28780 #if BYTE_ORDER != BIG_ENDIAN
28781  not big endian
28782 #endif
28783
28784   ;
28785   return 0;
28786 }
28787 _ACEOF
28788 rm -f conftest.$ac_objext
28789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28790   (eval $ac_compile) 2>conftest.er1
28791   ac_status=$?
28792   grep -v '^ *+' conftest.er1 >conftest.err
28793   rm -f conftest.er1
28794   cat conftest.err >&5
28795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28796   (exit $ac_status); } &&
28797          { ac_try='test -z "$ac_c_werror_flag"
28798                          || test ! -s conftest.err'
28799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28800   (eval $ac_try) 2>&5
28801   ac_status=$?
28802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28803   (exit $ac_status); }; } &&
28804          { ac_try='test -s conftest.$ac_objext'
28805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28806   (eval $ac_try) 2>&5
28807   ac_status=$?
28808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28809   (exit $ac_status); }; }; then
28810   ac_cv_c_bigendian=yes
28811 else
28812   echo "$as_me: failed program was:" >&5
28813 sed 's/^/| /' conftest.$ac_ext >&5
28814
28815 ac_cv_c_bigendian=no
28816 fi
28817 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28818 else
28819   echo "$as_me: failed program was:" >&5
28820 sed 's/^/| /' conftest.$ac_ext >&5
28821
28822 # It does not; compile a test program.
28823 if test "$cross_compiling" = yes; then
28824   # try to guess the endianness by grepping values into an object file
28825   ac_cv_c_bigendian=unknown
28826   cat >conftest.$ac_ext <<_ACEOF
28827 /* confdefs.h.  */
28828 _ACEOF
28829 cat confdefs.h >>conftest.$ac_ext
28830 cat >>conftest.$ac_ext <<_ACEOF
28831 /* end confdefs.h.  */
28832 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
28833 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
28834 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
28835 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
28836 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
28837 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
28838 int
28839 main ()
28840 {
28841  _ascii (); _ebcdic ();
28842   ;
28843   return 0;
28844 }
28845 _ACEOF
28846 rm -f conftest.$ac_objext
28847 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28848   (eval $ac_compile) 2>conftest.er1
28849   ac_status=$?
28850   grep -v '^ *+' conftest.er1 >conftest.err
28851   rm -f conftest.er1
28852   cat conftest.err >&5
28853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28854   (exit $ac_status); } &&
28855          { ac_try='test -z "$ac_c_werror_flag"
28856                          || test ! -s conftest.err'
28857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28858   (eval $ac_try) 2>&5
28859   ac_status=$?
28860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28861   (exit $ac_status); }; } &&
28862          { ac_try='test -s conftest.$ac_objext'
28863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28864   (eval $ac_try) 2>&5
28865   ac_status=$?
28866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28867   (exit $ac_status); }; }; then
28868   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
28869   ac_cv_c_bigendian=yes
28870 fi
28871 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
28872   if test "$ac_cv_c_bigendian" = unknown; then
28873     ac_cv_c_bigendian=no
28874   else
28875     # finding both strings is unlikely to happen, but who knows?
28876     ac_cv_c_bigendian=unknown
28877   fi
28878 fi
28879 else
28880   echo "$as_me: failed program was:" >&5
28881 sed 's/^/| /' conftest.$ac_ext >&5
28882
28883 fi
28884 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28885 else
28886   cat >conftest.$ac_ext <<_ACEOF
28887 /* confdefs.h.  */
28888 _ACEOF
28889 cat confdefs.h >>conftest.$ac_ext
28890 cat >>conftest.$ac_ext <<_ACEOF
28891 /* end confdefs.h.  */
28892 int
28893 main ()
28894 {
28895   /* Are we little or big endian?  From Harbison&Steele.  */
28896   union
28897   {
28898     long l;
28899     char c[sizeof (long)];
28900   } u;
28901   u.l = 1;
28902   exit (u.c[sizeof (long) - 1] == 1);
28903 }
28904 _ACEOF
28905 rm -f conftest$ac_exeext
28906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28907   (eval $ac_link) 2>&5
28908   ac_status=$?
28909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28910   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28912   (eval $ac_try) 2>&5
28913   ac_status=$?
28914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28915   (exit $ac_status); }; }; then
28916   ac_cv_c_bigendian=no
28917 else
28918   echo "$as_me: program exited with status $ac_status" >&5
28919 echo "$as_me: failed program was:" >&5
28920 sed 's/^/| /' conftest.$ac_ext >&5
28921
28922 ( exit $ac_status )
28923 ac_cv_c_bigendian=yes
28924 fi
28925 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28926 fi
28927 fi
28928 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28929 fi
28930 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
28931 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
28932 case $ac_cv_c_bigendian in
28933   yes)
28934
28935 cat >>confdefs.h <<\_ACEOF
28936 #define WORDS_BIGENDIAN 1
28937 _ACEOF
28938  ;;
28939   no)
28940      ;;
28941   *)
28942     { { echo "$as_me:$LINENO: error: unknown endianness
28943 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
28944 echo "$as_me: error: unknown endianness
28945 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
28946    { (exit 1); exit 1; }; } ;;
28947 esac
28948
28949
28950 if test x"$ac_cv_header_sys_scsi_h" = x"yes"; then
28951     echo "$as_me:$LINENO: checking for HP/UX-like scsi changer support" >&5
28952 echo $ECHO_N "checking for HP/UX-like scsi changer support... $ECHO_C" >&6
28953 if test "${amanda_cv_hpux_scsi_chio+set}" = set; then
28954   echo $ECHO_N "(cached) $ECHO_C" >&6
28955 else
28956   cat >conftest.$ac_ext <<_ACEOF
28957 /* confdefs.h.  */
28958 _ACEOF
28959 cat confdefs.h >>conftest.$ac_ext
28960 cat >>conftest.$ac_ext <<_ACEOF
28961 /* end confdefs.h.  */
28962
28963 #include <sys/scsi.h>
28964
28965 int
28966 main ()
28967 {
28968
28969         static struct element_addresses changer_info;
28970         int i = SIOC_ELEMENT_ADDRESSES;
28971         int j = SIOC_ELEMENT_STATUS;
28972         int k = SIOC_MOVE_MEDIUM;
28973
28974   ;
28975   return 0;
28976 }
28977 _ACEOF
28978 rm -f conftest.$ac_objext
28979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28980   (eval $ac_compile) 2>conftest.er1
28981   ac_status=$?
28982   grep -v '^ *+' conftest.er1 >conftest.err
28983   rm -f conftest.er1
28984   cat conftest.err >&5
28985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28986   (exit $ac_status); } &&
28987          { ac_try='test -z "$ac_c_werror_flag"
28988                          || test ! -s conftest.err'
28989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28990   (eval $ac_try) 2>&5
28991   ac_status=$?
28992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28993   (exit $ac_status); }; } &&
28994          { ac_try='test -s conftest.$ac_objext'
28995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28996   (eval $ac_try) 2>&5
28997   ac_status=$?
28998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28999   (exit $ac_status); }; }; then
29000   amanda_cv_hpux_scsi_chio=yes
29001 else
29002   echo "$as_me: failed program was:" >&5
29003 sed 's/^/| /' conftest.$ac_ext >&5
29004
29005 amanda_cv_hpux_scsi_chio=no
29006 fi
29007 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29008 fi
29009 echo "$as_me:$LINENO: result: $amanda_cv_hpux_scsi_chio" >&5
29010 echo "${ECHO_T}$amanda_cv_hpux_scsi_chio" >&6
29011     if test x"$amanda_cv_hpux_scsi_chio" = x"yes"; then
29012
29013 cat >>confdefs.h <<\_ACEOF
29014 #define HAVE_HPUX_SCSI_CHIO 1
29015 _ACEOF
29016
29017         NO_SCSI_CHANGER_MODE=false
29018     fi
29019 fi
29020
29021 if test x"$ac_cv_header_sys_mtio_h" = x"yes" &&
29022    test x"$ac_cv_header_scsi_scsi_ioctl_h" = x"yes"; then
29023         echo "$as_me:$LINENO: checking for Linux like scsi support (ioctl)" >&5
29024 echo $ECHO_N "checking for Linux like scsi support (ioctl)... $ECHO_C" >&6
29025 if test "${amanda_cv_linux_scsi+set}" = set; then
29026   echo $ECHO_N "(cached) $ECHO_C" >&6
29027 else
29028   cat >conftest.$ac_ext <<_ACEOF
29029 /* confdefs.h.  */
29030 _ACEOF
29031 cat confdefs.h >>conftest.$ac_ext
29032 cat >>conftest.$ac_ext <<_ACEOF
29033 /* end confdefs.h.  */
29034
29035 #include <scsi/scsi_ioctl.h>
29036 #include <sys/mtio.h>
29037
29038 int
29039 main ()
29040 {
29041
29042         int device;
29043         char *Command;
29044         ioctl(device, SCSI_IOCTL_SEND_COMMAND, Command);
29045
29046   ;
29047   return 0;
29048 }
29049 _ACEOF
29050 rm -f conftest.$ac_objext
29051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29052   (eval $ac_compile) 2>conftest.er1
29053   ac_status=$?
29054   grep -v '^ *+' conftest.er1 >conftest.err
29055   rm -f conftest.er1
29056   cat conftest.err >&5
29057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29058   (exit $ac_status); } &&
29059          { ac_try='test -z "$ac_c_werror_flag"
29060                          || test ! -s conftest.err'
29061   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29062   (eval $ac_try) 2>&5
29063   ac_status=$?
29064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29065   (exit $ac_status); }; } &&
29066          { ac_try='test -s conftest.$ac_objext'
29067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29068   (eval $ac_try) 2>&5
29069   ac_status=$?
29070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29071   (exit $ac_status); }; }; then
29072   amanda_cv_linux_scsi=yes
29073 else
29074   echo "$as_me: failed program was:" >&5
29075 sed 's/^/| /' conftest.$ac_ext >&5
29076
29077 amanda_cv_linux_scsi=no
29078 fi
29079 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29080 fi
29081 echo "$as_me:$LINENO: result: $amanda_cv_linux_scsi" >&5
29082 echo "${ECHO_T}$amanda_cv_linux_scsi" >&6
29083 fi
29084
29085 if test x"$ac_cv_header_sys_mtio_h" = x"yes" &&
29086    test x"$ac_cv_header_scsi_sg_h" = x"yes"; then
29087         echo "$as_me:$LINENO: checking for Linux like scsi support (sg)" >&5
29088 echo $ECHO_N "checking for Linux like scsi support (sg)... $ECHO_C" >&6
29089 if test "${amanda_cv_linux_sg_scsi+set}" = set; then
29090   echo $ECHO_N "(cached) $ECHO_C" >&6
29091 else
29092   cat >conftest.$ac_ext <<_ACEOF
29093 /* confdefs.h.  */
29094 _ACEOF
29095 cat confdefs.h >>conftest.$ac_ext
29096 cat >>conftest.$ac_ext <<_ACEOF
29097 /* end confdefs.h.  */
29098
29099 #include <sys/types.h>
29100 #include <scsi/sg.h>
29101 #include <sys/mtio.h>
29102
29103 int
29104 main ()
29105 {
29106
29107         int device;
29108         struct sg_header *psg_header;
29109         char *buffer;
29110         write(device, buffer, 1);
29111
29112   ;
29113   return 0;
29114 }
29115 _ACEOF
29116 rm -f conftest.$ac_objext
29117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29118   (eval $ac_compile) 2>conftest.er1
29119   ac_status=$?
29120   grep -v '^ *+' conftest.er1 >conftest.err
29121   rm -f conftest.er1
29122   cat conftest.err >&5
29123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29124   (exit $ac_status); } &&
29125          { ac_try='test -z "$ac_c_werror_flag"
29126                          || test ! -s conftest.err'
29127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29128   (eval $ac_try) 2>&5
29129   ac_status=$?
29130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29131   (exit $ac_status); }; } &&
29132          { ac_try='test -s conftest.$ac_objext'
29133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29134   (eval $ac_try) 2>&5
29135   ac_status=$?
29136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29137   (exit $ac_status); }; }; then
29138   amanda_cv_linux_sg_scsi=yes
29139 else
29140   echo "$as_me: failed program was:" >&5
29141 sed 's/^/| /' conftest.$ac_ext >&5
29142
29143 amanda_cv_linux_sg_scsi=no
29144 fi
29145 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29146 fi
29147 echo "$as_me:$LINENO: result: $amanda_cv_linux_sg_scsi" >&5
29148 echo "${ECHO_T}$amanda_cv_linux_sg_scsi" >&6
29149 fi
29150
29151 if test x"$amanda_cv_linux_scsi" = x"yes" ||
29152  test x"$amanda_cv_linux_sg_scsi" = x"yes";then
29153
29154 cat >>confdefs.h <<\_ACEOF
29155 #define HAVE_LINUX_LIKE_SCSI 1
29156 _ACEOF
29157
29158         NO_SCSI_CHANGER_MODE=false
29159 fi
29160
29161 if test x"$ac_cv_header_sys_mtio_h" = x"yes" &&
29162    test x"$ac_cv_header_sys_scsi_h" = x"yes"; then
29163         echo "$as_me:$LINENO: checking for HP-UX like scsi support" >&5
29164 echo $ECHO_N "checking for HP-UX like scsi support... $ECHO_C" >&6
29165 if test "${amanda_cv_hpux_scsi+set}" = set; then
29166   echo $ECHO_N "(cached) $ECHO_C" >&6
29167 else
29168   cat >conftest.$ac_ext <<_ACEOF
29169 /* confdefs.h.  */
29170 _ACEOF
29171 cat confdefs.h >>conftest.$ac_ext
29172 cat >>conftest.$ac_ext <<_ACEOF
29173 /* end confdefs.h.  */
29174
29175 #include <stdio.h>
29176 #include <sys/ioctl.h>
29177 #include <sys/scsi.h>
29178 #include <sys/mtio.h>
29179
29180 int
29181 main ()
29182 {
29183
29184         int device;
29185         char *Command;
29186         ioctl(device, SIOC_IO, Command);
29187
29188   ;
29189   return 0;
29190 }
29191 _ACEOF
29192 rm -f conftest.$ac_objext
29193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29194   (eval $ac_compile) 2>conftest.er1
29195   ac_status=$?
29196   grep -v '^ *+' conftest.er1 >conftest.err
29197   rm -f conftest.er1
29198   cat conftest.err >&5
29199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29200   (exit $ac_status); } &&
29201          { ac_try='test -z "$ac_c_werror_flag"
29202                          || test ! -s conftest.err'
29203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29204   (eval $ac_try) 2>&5
29205   ac_status=$?
29206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29207   (exit $ac_status); }; } &&
29208          { ac_try='test -s conftest.$ac_objext'
29209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29210   (eval $ac_try) 2>&5
29211   ac_status=$?
29212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29213   (exit $ac_status); }; }; then
29214   amanda_cv_hpux_scsi=yes
29215 else
29216   echo "$as_me: failed program was:" >&5
29217 sed 's/^/| /' conftest.$ac_ext >&5
29218
29219 amanda_cv_hpux_scsi=no
29220 fi
29221 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29222 fi
29223 echo "$as_me:$LINENO: result: $amanda_cv_hpux_scsi" >&5
29224 echo "${ECHO_T}$amanda_cv_hpux_scsi" >&6
29225         if test x"$amanda_cv_hpux_scsi" = x"yes";then
29226
29227 cat >>confdefs.h <<\_ACEOF
29228 #define HAVE_HPUX_LIKE_SCSI 1
29229 _ACEOF
29230
29231                 NO_SCSI_CHANGER_MODE=false
29232                 NO_CHIO_CHANGER_MODE=false
29233         fi
29234 fi
29235
29236 if test x"$ac_cv_header_sys_mtio_h" = x"yes" &&
29237    test x"$ac_cv_header_sys_dsreq_h" = x"yes"; then
29238         echo "$as_me:$LINENO: checking for Irix like scsi support" >&5
29239 echo $ECHO_N "checking for Irix like scsi support... $ECHO_C" >&6
29240 if test "${amanda_cv_irix_scsi+set}" = set; then
29241   echo $ECHO_N "(cached) $ECHO_C" >&6
29242 else
29243   cat >conftest.$ac_ext <<_ACEOF
29244 /* confdefs.h.  */
29245 _ACEOF
29246 cat confdefs.h >>conftest.$ac_ext
29247 cat >>conftest.$ac_ext <<_ACEOF
29248 /* end confdefs.h.  */
29249
29250 #include <sys/types.h>
29251 #include <sys/dsreq.h>
29252 #include <sys/mtio.h>
29253
29254 int
29255 main ()
29256 {
29257
29258         int device=1;
29259         char Command;
29260         ioctl(device, DS_ENTER, &Command);
29261
29262   ;
29263   return 0;
29264 }
29265 _ACEOF
29266 rm -f conftest.$ac_objext
29267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29268   (eval $ac_compile) 2>conftest.er1
29269   ac_status=$?
29270   grep -v '^ *+' conftest.er1 >conftest.err
29271   rm -f conftest.er1
29272   cat conftest.err >&5
29273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29274   (exit $ac_status); } &&
29275          { ac_try='test -z "$ac_c_werror_flag"
29276                          || test ! -s conftest.err'
29277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29278   (eval $ac_try) 2>&5
29279   ac_status=$?
29280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29281   (exit $ac_status); }; } &&
29282          { ac_try='test -s conftest.$ac_objext'
29283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29284   (eval $ac_try) 2>&5
29285   ac_status=$?
29286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29287   (exit $ac_status); }; }; then
29288   amanda_cv_irix_scsi=yes
29289 else
29290   echo "$as_me: failed program was:" >&5
29291 sed 's/^/| /' conftest.$ac_ext >&5
29292
29293 amanda_cv_irix_scsi=no
29294 fi
29295 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29296 fi
29297 echo "$as_me:$LINENO: result: $amanda_cv_irix_scsi" >&5
29298 echo "${ECHO_T}$amanda_cv_irix_scsi" >&6
29299         if test x"$amanda_cv_irix_scsi" = x"yes";then
29300
29301 cat >>confdefs.h <<\_ACEOF
29302 #define HAVE_IRIX_LIKE_SCSI 1
29303 _ACEOF
29304
29305                 NO_SCSI_CHANGER_MODE=false
29306         fi
29307 fi
29308
29309 if test x"$ac_cv_header_sys_mtio_h" = x"yes" &&
29310    test x"$ac_cv_header_sys_scsi_impl_uscsi_h" = x"yes"; then
29311         echo "$as_me:$LINENO: checking for Solaris like scsi support" >&5
29312 echo $ECHO_N "checking for Solaris like scsi support... $ECHO_C" >&6
29313 if test "${amanda_cv_solaris_scsi+set}" = set; then
29314   echo $ECHO_N "(cached) $ECHO_C" >&6
29315 else
29316   cat >conftest.$ac_ext <<_ACEOF
29317 /* confdefs.h.  */
29318 _ACEOF
29319 cat confdefs.h >>conftest.$ac_ext
29320 cat >>conftest.$ac_ext <<_ACEOF
29321 /* end confdefs.h.  */
29322
29323 #include <sys/types.h>
29324 #include <sys/scsi/impl/uscsi.h>
29325 #include <sys/mtio.h>
29326
29327 int
29328 main ()
29329 {
29330
29331         int device;
29332         char *Command;
29333         ioctl(device, USCSICMD, Command);
29334
29335   ;
29336   return 0;
29337 }
29338 _ACEOF
29339 rm -f conftest.$ac_objext
29340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29341   (eval $ac_compile) 2>conftest.er1
29342   ac_status=$?
29343   grep -v '^ *+' conftest.er1 >conftest.err
29344   rm -f conftest.er1
29345   cat conftest.err >&5
29346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29347   (exit $ac_status); } &&
29348          { ac_try='test -z "$ac_c_werror_flag"
29349                          || test ! -s conftest.err'
29350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29351   (eval $ac_try) 2>&5
29352   ac_status=$?
29353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29354   (exit $ac_status); }; } &&
29355          { ac_try='test -s conftest.$ac_objext'
29356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29357   (eval $ac_try) 2>&5
29358   ac_status=$?
29359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29360   (exit $ac_status); }; }; then
29361   amanda_cv_solaris_scsi=yes
29362 else
29363   echo "$as_me: failed program was:" >&5
29364 sed 's/^/| /' conftest.$ac_ext >&5
29365
29366 amanda_cv_solaris_scsi=no
29367 fi
29368 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29369 fi
29370 echo "$as_me:$LINENO: result: $amanda_cv_solaris_scsi" >&5
29371 echo "${ECHO_T}$amanda_cv_solaris_scsi" >&6
29372         if test x"$amanda_cv_solaris_scsi" = x"yes";then
29373
29374 cat >>confdefs.h <<\_ACEOF
29375 #define HAVE_SOLARIS_LIKE_SCSI 1
29376 _ACEOF
29377
29378                 NO_SCSI_CHANGER_MODE=false
29379         fi
29380 fi
29381
29382 if test x"$ac_cv_header_sys_tape_h" = x"yes" &&
29383    test x"$ac_cv_header_sys_scarray_h" = x"yes" &&
29384    test x"$ac_cv_header_sys_gscdds_h" = x"yes"; then
29385         echo "$as_me:$LINENO: checking for AIX like scsi support" >&5
29386 echo $ECHO_N "checking for AIX like scsi support... $ECHO_C" >&6
29387 if test "${amanda_cv_aix_scsi+set}" = set; then
29388   echo $ECHO_N "(cached) $ECHO_C" >&6
29389 else
29390   cat >conftest.$ac_ext <<_ACEOF
29391 /* confdefs.h.  */
29392 _ACEOF
29393 cat confdefs.h >>conftest.$ac_ext
29394 cat >>conftest.$ac_ext <<_ACEOF
29395 /* end confdefs.h.  */
29396
29397 #include <sys/types.h>
29398 #include <sys/scarray.h>
29399 #include <sys/tape.h>
29400
29401 int
29402 main ()
29403 {
29404
29405         int device;
29406         char *Command;
29407         ioctl(device, STIOCMD, Command);
29408
29409   ;
29410   return 0;
29411 }
29412 _ACEOF
29413 rm -f conftest.$ac_objext
29414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29415   (eval $ac_compile) 2>conftest.er1
29416   ac_status=$?
29417   grep -v '^ *+' conftest.er1 >conftest.err
29418   rm -f conftest.er1
29419   cat conftest.err >&5
29420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29421   (exit $ac_status); } &&
29422          { ac_try='test -z "$ac_c_werror_flag"
29423                          || test ! -s conftest.err'
29424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29425   (eval $ac_try) 2>&5
29426   ac_status=$?
29427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29428   (exit $ac_status); }; } &&
29429          { ac_try='test -s conftest.$ac_objext'
29430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29431   (eval $ac_try) 2>&5
29432   ac_status=$?
29433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29434   (exit $ac_status); }; }; then
29435   amanda_cv_aix_scsi=yes
29436 else
29437   echo "$as_me: failed program was:" >&5
29438 sed 's/^/| /' conftest.$ac_ext >&5
29439
29440 amanda_cv_aix_scsi=no
29441 fi
29442 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29443 fi
29444 echo "$as_me:$LINENO: result: $amanda_cv_aix_scsi" >&5
29445 echo "${ECHO_T}$amanda_cv_aix_scsi" >&6
29446         if test x"$amanda_cv_aix_scsi" = x"yes";then
29447
29448 cat >>confdefs.h <<\_ACEOF
29449 #define HAVE_AIX_LIKE_SCSI 1
29450 _ACEOF
29451
29452                 NO_SCSI_CHANGER_MODE=false
29453         fi
29454 fi
29455 if test x"$ac_cv_header_cam_cam_h" = x"yes";then
29456         echo "$as_me:$LINENO: checking for CAM like scsi support" >&5
29457 echo $ECHO_N "checking for CAM like scsi support... $ECHO_C" >&6
29458 if test "${amanda_cv_cam_scsi+set}" = set; then
29459   echo $ECHO_N "(cached) $ECHO_C" >&6
29460 else
29461   cat >conftest.$ac_ext <<_ACEOF
29462 /* confdefs.h.  */
29463 _ACEOF
29464 cat confdefs.h >>conftest.$ac_ext
29465 cat >>conftest.$ac_ext <<_ACEOF
29466 /* end confdefs.h.  */
29467
29468 #include <stdio.h>
29469 # include <fcntl.h>
29470 # include <cam/cam.h>
29471 # include <cam/cam_ccb.h>
29472 # include <cam/scsi/scsi_message.h>
29473 # include <cam/scsi/scsi_pass.h>
29474 # include <camlib.h>
29475
29476 int
29477 main ()
29478 {
29479
29480         struct cam_device *curdev;
29481
29482         curdev = cam_open_pass("", O_RDWR, NULL);
29483
29484   ;
29485   return 0;
29486 }
29487 _ACEOF
29488 rm -f conftest.$ac_objext
29489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29490   (eval $ac_compile) 2>conftest.er1
29491   ac_status=$?
29492   grep -v '^ *+' conftest.er1 >conftest.err
29493   rm -f conftest.er1
29494   cat conftest.err >&5
29495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29496   (exit $ac_status); } &&
29497          { ac_try='test -z "$ac_c_werror_flag"
29498                          || test ! -s conftest.err'
29499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29500   (eval $ac_try) 2>&5
29501   ac_status=$?
29502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29503   (exit $ac_status); }; } &&
29504          { ac_try='test -s conftest.$ac_objext'
29505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29506   (eval $ac_try) 2>&5
29507   ac_status=$?
29508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29509   (exit $ac_status); }; }; then
29510   amanda_cv_cam_scsi=yes
29511 else
29512   echo "$as_me: failed program was:" >&5
29513 sed 's/^/| /' conftest.$ac_ext >&5
29514
29515 amanda_cv_cam_scsi=no
29516 fi
29517 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29518 fi
29519 echo "$as_me:$LINENO: result: $amanda_cv_cam_scsi" >&5
29520 echo "${ECHO_T}$amanda_cv_cam_scsi" >&6
29521         if test x"$amanda_cv_cam_scsi" = x"yes";then
29522
29523 cat >>confdefs.h <<\_ACEOF
29524 #define HAVE_CAM_LIKE_SCSI 1
29525 _ACEOF
29526
29527                 NO_SCSI_CHANGER_MODE=false
29528
29529 echo "$as_me:$LINENO: checking for main in -lcam" >&5
29530 echo $ECHO_N "checking for main in -lcam... $ECHO_C" >&6
29531 if test "${ac_cv_lib_cam_main+set}" = set; then
29532   echo $ECHO_N "(cached) $ECHO_C" >&6
29533 else
29534   ac_check_lib_save_LIBS=$LIBS
29535 LIBS="-lcam  $LIBS"
29536 cat >conftest.$ac_ext <<_ACEOF
29537 /* confdefs.h.  */
29538 _ACEOF
29539 cat confdefs.h >>conftest.$ac_ext
29540 cat >>conftest.$ac_ext <<_ACEOF
29541 /* end confdefs.h.  */
29542
29543
29544 int
29545 main ()
29546 {
29547 main ();
29548   ;
29549   return 0;
29550 }
29551 _ACEOF
29552 rm -f conftest.$ac_objext conftest$ac_exeext
29553 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29554   (eval $ac_link) 2>conftest.er1
29555   ac_status=$?
29556   grep -v '^ *+' conftest.er1 >conftest.err
29557   rm -f conftest.er1
29558   cat conftest.err >&5
29559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29560   (exit $ac_status); } &&
29561          { ac_try='test -z "$ac_c_werror_flag"
29562                          || test ! -s conftest.err'
29563   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29564   (eval $ac_try) 2>&5
29565   ac_status=$?
29566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29567   (exit $ac_status); }; } &&
29568          { ac_try='test -s conftest$ac_exeext'
29569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29570   (eval $ac_try) 2>&5
29571   ac_status=$?
29572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29573   (exit $ac_status); }; }; then
29574   ac_cv_lib_cam_main=yes
29575 else
29576   echo "$as_me: failed program was:" >&5
29577 sed 's/^/| /' conftest.$ac_ext >&5
29578
29579 ac_cv_lib_cam_main=no
29580 fi
29581 rm -f conftest.err conftest.$ac_objext \
29582       conftest$ac_exeext conftest.$ac_ext
29583 LIBS=$ac_check_lib_save_LIBS
29584 fi
29585 echo "$as_me:$LINENO: result: $ac_cv_lib_cam_main" >&5
29586 echo "${ECHO_T}$ac_cv_lib_cam_main" >&6
29587 if test $ac_cv_lib_cam_main = yes; then
29588   cat >>confdefs.h <<_ACEOF
29589 #define HAVE_LIBCAM 1
29590 _ACEOF
29591
29592   LIBS="-lcam $LIBS"
29593
29594 fi
29595
29596         fi
29597 fi
29598
29599 if test x"$ac_cv_header_sys_mtio_h" = x"yes" &&
29600    test x"$ac_cv_header_sys_scsiio_h" = x"yes"; then
29601     echo "$as_me:$LINENO: checking for BSD like scsi support" >&5
29602 echo $ECHO_N "checking for BSD like scsi support... $ECHO_C" >&6
29603 if test "${amanda_cv_bsd_scsi+set}" = set; then
29604   echo $ECHO_N "(cached) $ECHO_C" >&6
29605 else
29606   cat >conftest.$ac_ext <<_ACEOF
29607 /* confdefs.h.  */
29608 _ACEOF
29609 cat confdefs.h >>conftest.$ac_ext
29610 cat >>conftest.$ac_ext <<_ACEOF
29611 /* end confdefs.h.  */
29612
29613 #include <sys/types.h>
29614 #include <sys/scsiio.h>
29615 #include <sys/mtio.h>
29616
29617 int
29618 main ()
29619 {
29620
29621     int device=1;
29622     char Command;
29623     ioctl(device, SCIOCCOMMAND, &Command);
29624
29625   ;
29626   return 0;
29627 }
29628 _ACEOF
29629 rm -f conftest.$ac_objext
29630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29631   (eval $ac_compile) 2>conftest.er1
29632   ac_status=$?
29633   grep -v '^ *+' conftest.er1 >conftest.err
29634   rm -f conftest.er1
29635   cat conftest.err >&5
29636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29637   (exit $ac_status); } &&
29638          { ac_try='test -z "$ac_c_werror_flag"
29639                          || test ! -s conftest.err'
29640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29641   (eval $ac_try) 2>&5
29642   ac_status=$?
29643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29644   (exit $ac_status); }; } &&
29645          { ac_try='test -s conftest.$ac_objext'
29646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29647   (eval $ac_try) 2>&5
29648   ac_status=$?
29649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29650   (exit $ac_status); }; }; then
29651   amanda_cv_bsd_scsi=yes
29652 else
29653   echo "$as_me: failed program was:" >&5
29654 sed 's/^/| /' conftest.$ac_ext >&5
29655
29656 amanda_cv_bsd_scsi=no
29657 fi
29658 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29659 fi
29660 echo "$as_me:$LINENO: result: $amanda_cv_bsd_scsi" >&5
29661 echo "${ECHO_T}$amanda_cv_bsd_scsi" >&6
29662     if test x"$amanda_cv_bsd_scsi" = x"yes";then
29663
29664 cat >>confdefs.h <<\_ACEOF
29665 #define HAVE_BSD_LIKE_SCSI 1
29666 _ACEOF
29667
29668        NO_SCSI_CHANGER_MODE=false
29669     fi
29670 fi
29671
29672 if test x"$ac_cv_header_chio_h" = x"yes" ||
29673    test x"$ac_cv_header_sys_chio_h" = x"yes"; then
29674          if test x"$ac_cv_header_camlib_h" != x"yes"; then
29675      if $NO_SCSI_CHANGER_MODE; then
29676        NO_SCSI_CHANGER_MODE=false
29677      else
29678        NO_CHIO_CHANGER_MODE=false
29679      fi
29680    fi
29681 fi
29682
29683
29684 echo "$as_me:$LINENO: checking for main in -lcur_colr" >&5
29685 echo $ECHO_N "checking for main in -lcur_colr... $ECHO_C" >&6
29686 if test "${ac_cv_lib_cur_colr_main+set}" = set; then
29687   echo $ECHO_N "(cached) $ECHO_C" >&6
29688 else
29689   ac_check_lib_save_LIBS=$LIBS
29690 LIBS="-lcur_colr  $LIBS"
29691 cat >conftest.$ac_ext <<_ACEOF
29692 /* confdefs.h.  */
29693 _ACEOF
29694 cat confdefs.h >>conftest.$ac_ext
29695 cat >>conftest.$ac_ext <<_ACEOF
29696 /* end confdefs.h.  */
29697
29698
29699 int
29700 main ()
29701 {
29702 main ();
29703   ;
29704   return 0;
29705 }
29706 _ACEOF
29707 rm -f conftest.$ac_objext conftest$ac_exeext
29708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29709   (eval $ac_link) 2>conftest.er1
29710   ac_status=$?
29711   grep -v '^ *+' conftest.er1 >conftest.err
29712   rm -f conftest.er1
29713   cat conftest.err >&5
29714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29715   (exit $ac_status); } &&
29716          { ac_try='test -z "$ac_c_werror_flag"
29717                          || test ! -s conftest.err'
29718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29719   (eval $ac_try) 2>&5
29720   ac_status=$?
29721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29722   (exit $ac_status); }; } &&
29723          { ac_try='test -s conftest$ac_exeext'
29724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29725   (eval $ac_try) 2>&5
29726   ac_status=$?
29727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29728   (exit $ac_status); }; }; then
29729   ac_cv_lib_cur_colr_main=yes
29730 else
29731   echo "$as_me: failed program was:" >&5
29732 sed 's/^/| /' conftest.$ac_ext >&5
29733
29734 ac_cv_lib_cur_colr_main=no
29735 fi
29736 rm -f conftest.err conftest.$ac_objext \
29737       conftest$ac_exeext conftest.$ac_ext
29738 LIBS=$ac_check_lib_save_LIBS
29739 fi
29740 echo "$as_me:$LINENO: result: $ac_cv_lib_cur_colr_main" >&5
29741 echo "${ECHO_T}$ac_cv_lib_cur_colr_main" >&6
29742 if test $ac_cv_lib_cur_colr_main = yes; then
29743   cat >>confdefs.h <<_ACEOF
29744 #define HAVE_LIBCUR_COLR 1
29745 _ACEOF
29746
29747   LIBS="-lcur_colr $LIBS"
29748
29749 fi
29750
29751
29752
29753 echo "$as_me:$LINENO: checking for main in -lintl" >&5
29754 echo $ECHO_N "checking for main in -lintl... $ECHO_C" >&6
29755 if test "${ac_cv_lib_intl_main+set}" = set; then
29756   echo $ECHO_N "(cached) $ECHO_C" >&6
29757 else
29758   ac_check_lib_save_LIBS=$LIBS
29759 LIBS="-lintl  $LIBS"
29760 cat >conftest.$ac_ext <<_ACEOF
29761 /* confdefs.h.  */
29762 _ACEOF
29763 cat confdefs.h >>conftest.$ac_ext
29764 cat >>conftest.$ac_ext <<_ACEOF
29765 /* end confdefs.h.  */
29766
29767
29768 int
29769 main ()
29770 {
29771 main ();
29772   ;
29773   return 0;
29774 }
29775 _ACEOF
29776 rm -f conftest.$ac_objext conftest$ac_exeext
29777 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29778   (eval $ac_link) 2>conftest.er1
29779   ac_status=$?
29780   grep -v '^ *+' conftest.er1 >conftest.err
29781   rm -f conftest.er1
29782   cat conftest.err >&5
29783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29784   (exit $ac_status); } &&
29785          { ac_try='test -z "$ac_c_werror_flag"
29786                          || test ! -s conftest.err'
29787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29788   (eval $ac_try) 2>&5
29789   ac_status=$?
29790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29791   (exit $ac_status); }; } &&
29792          { ac_try='test -s conftest$ac_exeext'
29793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29794   (eval $ac_try) 2>&5
29795   ac_status=$?
29796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29797   (exit $ac_status); }; }; then
29798   ac_cv_lib_intl_main=yes
29799 else
29800   echo "$as_me: failed program was:" >&5
29801 sed 's/^/| /' conftest.$ac_ext >&5
29802
29803 ac_cv_lib_intl_main=no
29804 fi
29805 rm -f conftest.err conftest.$ac_objext \
29806       conftest$ac_exeext conftest.$ac_ext
29807 LIBS=$ac_check_lib_save_LIBS
29808 fi
29809 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_main" >&5
29810 echo "${ECHO_T}$ac_cv_lib_intl_main" >&6
29811 if test $ac_cv_lib_intl_main = yes; then
29812   cat >>confdefs.h <<_ACEOF
29813 #define HAVE_LIBINTL 1
29814 _ACEOF
29815
29816   LIBS="-lintl $LIBS"
29817
29818 fi
29819
29820
29821 case "$target" in
29822     *sgi-irix*)
29823
29824 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
29825 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
29826 if test "${ac_cv_lib_socket_main+set}" = set; then
29827   echo $ECHO_N "(cached) $ECHO_C" >&6
29828 else
29829   ac_check_lib_save_LIBS=$LIBS
29830 LIBS="-lsocket  $LIBS"
29831 cat >conftest.$ac_ext <<_ACEOF
29832 /* confdefs.h.  */
29833 _ACEOF
29834 cat confdefs.h >>conftest.$ac_ext
29835 cat >>conftest.$ac_ext <<_ACEOF
29836 /* end confdefs.h.  */
29837
29838
29839 int
29840 main ()
29841 {
29842 main ();
29843   ;
29844   return 0;
29845 }
29846 _ACEOF
29847 rm -f conftest.$ac_objext conftest$ac_exeext
29848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29849   (eval $ac_link) 2>conftest.er1
29850   ac_status=$?
29851   grep -v '^ *+' conftest.er1 >conftest.err
29852   rm -f conftest.er1
29853   cat conftest.err >&5
29854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29855   (exit $ac_status); } &&
29856          { ac_try='test -z "$ac_c_werror_flag"
29857                          || test ! -s conftest.err'
29858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29859   (eval $ac_try) 2>&5
29860   ac_status=$?
29861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29862   (exit $ac_status); }; } &&
29863          { ac_try='test -s conftest$ac_exeext'
29864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29865   (eval $ac_try) 2>&5
29866   ac_status=$?
29867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29868   (exit $ac_status); }; }; then
29869   ac_cv_lib_socket_main=yes
29870 else
29871   echo "$as_me: failed program was:" >&5
29872 sed 's/^/| /' conftest.$ac_ext >&5
29873
29874 ac_cv_lib_socket_main=no
29875 fi
29876 rm -f conftest.err conftest.$ac_objext \
29877       conftest$ac_exeext conftest.$ac_ext
29878 LIBS=$ac_check_lib_save_LIBS
29879 fi
29880 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
29881 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
29882 if test $ac_cv_lib_socket_main = yes; then
29883   cat >>confdefs.h <<_ACEOF
29884 #define HAVE_LIBSOCKET 1
29885 _ACEOF
29886
29887   LIBS="-lsocket $LIBS"
29888
29889 fi
29890
29891                         ;;
29892     *)
29893
29894 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
29895 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
29896 if test "${ac_cv_lib_nsl_main+set}" = set; then
29897   echo $ECHO_N "(cached) $ECHO_C" >&6
29898 else
29899   ac_check_lib_save_LIBS=$LIBS
29900 LIBS="-lnsl  $LIBS"
29901 cat >conftest.$ac_ext <<_ACEOF
29902 /* confdefs.h.  */
29903 _ACEOF
29904 cat confdefs.h >>conftest.$ac_ext
29905 cat >>conftest.$ac_ext <<_ACEOF
29906 /* end confdefs.h.  */
29907
29908
29909 int
29910 main ()
29911 {
29912 main ();
29913   ;
29914   return 0;
29915 }
29916 _ACEOF
29917 rm -f conftest.$ac_objext conftest$ac_exeext
29918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29919   (eval $ac_link) 2>conftest.er1
29920   ac_status=$?
29921   grep -v '^ *+' conftest.er1 >conftest.err
29922   rm -f conftest.er1
29923   cat conftest.err >&5
29924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29925   (exit $ac_status); } &&
29926          { ac_try='test -z "$ac_c_werror_flag"
29927                          || test ! -s conftest.err'
29928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29929   (eval $ac_try) 2>&5
29930   ac_status=$?
29931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29932   (exit $ac_status); }; } &&
29933          { ac_try='test -s conftest$ac_exeext'
29934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29935   (eval $ac_try) 2>&5
29936   ac_status=$?
29937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29938   (exit $ac_status); }; }; then
29939   ac_cv_lib_nsl_main=yes
29940 else
29941   echo "$as_me: failed program was:" >&5
29942 sed 's/^/| /' conftest.$ac_ext >&5
29943
29944 ac_cv_lib_nsl_main=no
29945 fi
29946 rm -f conftest.err conftest.$ac_objext \
29947       conftest$ac_exeext conftest.$ac_ext
29948 LIBS=$ac_check_lib_save_LIBS
29949 fi
29950 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
29951 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
29952 if test $ac_cv_lib_nsl_main = yes; then
29953   cat >>confdefs.h <<_ACEOF
29954 #define HAVE_LIBNSL 1
29955 _ACEOF
29956
29957   LIBS="-lnsl $LIBS"
29958
29959 fi
29960
29961
29962 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
29963 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
29964 if test "${ac_cv_lib_socket_main+set}" = set; then
29965   echo $ECHO_N "(cached) $ECHO_C" >&6
29966 else
29967   ac_check_lib_save_LIBS=$LIBS
29968 LIBS="-lsocket  $LIBS"
29969 cat >conftest.$ac_ext <<_ACEOF
29970 /* confdefs.h.  */
29971 _ACEOF
29972 cat confdefs.h >>conftest.$ac_ext
29973 cat >>conftest.$ac_ext <<_ACEOF
29974 /* end confdefs.h.  */
29975
29976
29977 int
29978 main ()
29979 {
29980 main ();
29981   ;
29982   return 0;
29983 }
29984 _ACEOF
29985 rm -f conftest.$ac_objext conftest$ac_exeext
29986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29987   (eval $ac_link) 2>conftest.er1
29988   ac_status=$?
29989   grep -v '^ *+' conftest.er1 >conftest.err
29990   rm -f conftest.er1
29991   cat conftest.err >&5
29992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29993   (exit $ac_status); } &&
29994          { ac_try='test -z "$ac_c_werror_flag"
29995                          || test ! -s conftest.err'
29996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29997   (eval $ac_try) 2>&5
29998   ac_status=$?
29999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30000   (exit $ac_status); }; } &&
30001          { ac_try='test -s conftest$ac_exeext'
30002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30003   (eval $ac_try) 2>&5
30004   ac_status=$?
30005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30006   (exit $ac_status); }; }; then
30007   ac_cv_lib_socket_main=yes
30008 else
30009   echo "$as_me: failed program was:" >&5
30010 sed 's/^/| /' conftest.$ac_ext >&5
30011
30012 ac_cv_lib_socket_main=no
30013 fi
30014 rm -f conftest.err conftest.$ac_objext \
30015       conftest$ac_exeext conftest.$ac_ext
30016 LIBS=$ac_check_lib_save_LIBS
30017 fi
30018 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
30019 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
30020 if test $ac_cv_lib_socket_main = yes; then
30021   cat >>confdefs.h <<_ACEOF
30022 #define HAVE_LIBSOCKET 1
30023 _ACEOF
30024
30025   LIBS="-lsocket $LIBS"
30026
30027 fi
30028
30029
30030 echo "$as_me:$LINENO: checking for main in -lsun" >&5
30031 echo $ECHO_N "checking for main in -lsun... $ECHO_C" >&6
30032 if test "${ac_cv_lib_sun_main+set}" = set; then
30033   echo $ECHO_N "(cached) $ECHO_C" >&6
30034 else
30035   ac_check_lib_save_LIBS=$LIBS
30036 LIBS="-lsun  $LIBS"
30037 cat >conftest.$ac_ext <<_ACEOF
30038 /* confdefs.h.  */
30039 _ACEOF
30040 cat confdefs.h >>conftest.$ac_ext
30041 cat >>conftest.$ac_ext <<_ACEOF
30042 /* end confdefs.h.  */
30043
30044
30045 int
30046 main ()
30047 {
30048 main ();
30049   ;
30050   return 0;
30051 }
30052 _ACEOF
30053 rm -f conftest.$ac_objext conftest$ac_exeext
30054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30055   (eval $ac_link) 2>conftest.er1
30056   ac_status=$?
30057   grep -v '^ *+' conftest.er1 >conftest.err
30058   rm -f conftest.er1
30059   cat conftest.err >&5
30060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30061   (exit $ac_status); } &&
30062          { ac_try='test -z "$ac_c_werror_flag"
30063                          || test ! -s conftest.err'
30064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30065   (eval $ac_try) 2>&5
30066   ac_status=$?
30067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30068   (exit $ac_status); }; } &&
30069          { ac_try='test -s conftest$ac_exeext'
30070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30071   (eval $ac_try) 2>&5
30072   ac_status=$?
30073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30074   (exit $ac_status); }; }; then
30075   ac_cv_lib_sun_main=yes
30076 else
30077   echo "$as_me: failed program was:" >&5
30078 sed 's/^/| /' conftest.$ac_ext >&5
30079
30080 ac_cv_lib_sun_main=no
30081 fi
30082 rm -f conftest.err conftest.$ac_objext \
30083       conftest$ac_exeext conftest.$ac_ext
30084 LIBS=$ac_check_lib_save_LIBS
30085 fi
30086 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_main" >&5
30087 echo "${ECHO_T}$ac_cv_lib_sun_main" >&6
30088 if test $ac_cv_lib_sun_main = yes; then
30089   cat >>confdefs.h <<_ACEOF
30090 #define HAVE_LIBSUN 1
30091 _ACEOF
30092
30093   LIBS="-lsun $LIBS"
30094
30095 fi
30096
30097                         ;;
30098 esac
30099
30100
30101 echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
30102 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
30103 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
30104   echo $ECHO_N "(cached) $ECHO_C" >&6
30105 else
30106   ac_check_lib_save_LIBS=$LIBS
30107 LIBS="-ltermcap  $LIBS"
30108 cat >conftest.$ac_ext <<_ACEOF
30109 /* confdefs.h.  */
30110 _ACEOF
30111 cat confdefs.h >>conftest.$ac_ext
30112 cat >>conftest.$ac_ext <<_ACEOF
30113 /* end confdefs.h.  */
30114
30115 /* Override any gcc2 internal prototype to avoid an error.  */
30116 #ifdef __cplusplus
30117 extern "C"
30118 #endif
30119 /* We use char because int might match the return type of a gcc2
30120    builtin and then its argument prototype would still apply.  */
30121 char tgetent ();
30122 int
30123 main ()
30124 {
30125 tgetent ();
30126   ;
30127   return 0;
30128 }
30129 _ACEOF
30130 rm -f conftest.$ac_objext conftest$ac_exeext
30131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30132   (eval $ac_link) 2>conftest.er1
30133   ac_status=$?
30134   grep -v '^ *+' conftest.er1 >conftest.err
30135   rm -f conftest.er1
30136   cat conftest.err >&5
30137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30138   (exit $ac_status); } &&
30139          { ac_try='test -z "$ac_c_werror_flag"
30140                          || test ! -s conftest.err'
30141   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30142   (eval $ac_try) 2>&5
30143   ac_status=$?
30144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30145   (exit $ac_status); }; } &&
30146          { ac_try='test -s conftest$ac_exeext'
30147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30148   (eval $ac_try) 2>&5
30149   ac_status=$?
30150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30151   (exit $ac_status); }; }; then
30152   ac_cv_lib_termcap_tgetent=yes
30153 else
30154   echo "$as_me: failed program was:" >&5
30155 sed 's/^/| /' conftest.$ac_ext >&5
30156
30157 ac_cv_lib_termcap_tgetent=no
30158 fi
30159 rm -f conftest.err conftest.$ac_objext \
30160       conftest$ac_exeext conftest.$ac_ext
30161 LIBS=$ac_check_lib_save_LIBS
30162 fi
30163 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
30164 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
30165 if test $ac_cv_lib_termcap_tgetent = yes; then
30166   cat >>confdefs.h <<_ACEOF
30167 #define HAVE_LIBTERMCAP 1
30168 _ACEOF
30169
30170   LIBS="-ltermcap $LIBS"
30171
30172 fi
30173
30174 if test "$ac_cv_lib_termcap_tgetent" != yes; then
30175
30176 echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
30177 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6
30178 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
30179   echo $ECHO_N "(cached) $ECHO_C" >&6
30180 else
30181   ac_check_lib_save_LIBS=$LIBS
30182 LIBS="-lcurses  $LIBS"
30183 cat >conftest.$ac_ext <<_ACEOF
30184 /* confdefs.h.  */
30185 _ACEOF
30186 cat confdefs.h >>conftest.$ac_ext
30187 cat >>conftest.$ac_ext <<_ACEOF
30188 /* end confdefs.h.  */
30189
30190 /* Override any gcc2 internal prototype to avoid an error.  */
30191 #ifdef __cplusplus
30192 extern "C"
30193 #endif
30194 /* We use char because int might match the return type of a gcc2
30195    builtin and then its argument prototype would still apply.  */
30196 char tgetent ();
30197 int
30198 main ()
30199 {
30200 tgetent ();
30201   ;
30202   return 0;
30203 }
30204 _ACEOF
30205 rm -f conftest.$ac_objext conftest$ac_exeext
30206 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30207   (eval $ac_link) 2>conftest.er1
30208   ac_status=$?
30209   grep -v '^ *+' conftest.er1 >conftest.err
30210   rm -f conftest.er1
30211   cat conftest.err >&5
30212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30213   (exit $ac_status); } &&
30214          { ac_try='test -z "$ac_c_werror_flag"
30215                          || test ! -s conftest.err'
30216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30217   (eval $ac_try) 2>&5
30218   ac_status=$?
30219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30220   (exit $ac_status); }; } &&
30221          { ac_try='test -s conftest$ac_exeext'
30222   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30223   (eval $ac_try) 2>&5
30224   ac_status=$?
30225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30226   (exit $ac_status); }; }; then
30227   ac_cv_lib_curses_tgetent=yes
30228 else
30229   echo "$as_me: failed program was:" >&5
30230 sed 's/^/| /' conftest.$ac_ext >&5
30231
30232 ac_cv_lib_curses_tgetent=no
30233 fi
30234 rm -f conftest.err conftest.$ac_objext \
30235       conftest$ac_exeext conftest.$ac_ext
30236 LIBS=$ac_check_lib_save_LIBS
30237 fi
30238 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
30239 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6
30240 if test $ac_cv_lib_curses_tgetent = yes; then
30241   cat >>confdefs.h <<_ACEOF
30242 #define HAVE_LIBCURSES 1
30243 _ACEOF
30244
30245   LIBS="-lcurses $LIBS"
30246
30247 fi
30248
30249     if test "$ac_cv_lib_curses_tgetent" != yes; then
30250
30251 echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
30252 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
30253 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
30254   echo $ECHO_N "(cached) $ECHO_C" >&6
30255 else
30256   ac_check_lib_save_LIBS=$LIBS
30257 LIBS="-lncurses  $LIBS"
30258 cat >conftest.$ac_ext <<_ACEOF
30259 /* confdefs.h.  */
30260 _ACEOF
30261 cat confdefs.h >>conftest.$ac_ext
30262 cat >>conftest.$ac_ext <<_ACEOF
30263 /* end confdefs.h.  */
30264
30265 /* Override any gcc2 internal prototype to avoid an error.  */
30266 #ifdef __cplusplus
30267 extern "C"
30268 #endif
30269 /* We use char because int might match the return type of a gcc2
30270    builtin and then its argument prototype would still apply.  */
30271 char tgetent ();
30272 int
30273 main ()
30274 {
30275 tgetent ();
30276   ;
30277   return 0;
30278 }
30279 _ACEOF
30280 rm -f conftest.$ac_objext conftest$ac_exeext
30281 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30282   (eval $ac_link) 2>conftest.er1
30283   ac_status=$?
30284   grep -v '^ *+' conftest.er1 >conftest.err
30285   rm -f conftest.er1
30286   cat conftest.err >&5
30287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30288   (exit $ac_status); } &&
30289          { ac_try='test -z "$ac_c_werror_flag"
30290                          || test ! -s conftest.err'
30291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30292   (eval $ac_try) 2>&5
30293   ac_status=$?
30294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30295   (exit $ac_status); }; } &&
30296          { ac_try='test -s conftest$ac_exeext'
30297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30298   (eval $ac_try) 2>&5
30299   ac_status=$?
30300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30301   (exit $ac_status); }; }; then
30302   ac_cv_lib_ncurses_tgetent=yes
30303 else
30304   echo "$as_me: failed program was:" >&5
30305 sed 's/^/| /' conftest.$ac_ext >&5
30306
30307 ac_cv_lib_ncurses_tgetent=no
30308 fi
30309 rm -f conftest.err conftest.$ac_objext \
30310       conftest$ac_exeext conftest.$ac_ext
30311 LIBS=$ac_check_lib_save_LIBS
30312 fi
30313 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
30314 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
30315 if test $ac_cv_lib_ncurses_tgetent = yes; then
30316   cat >>confdefs.h <<_ACEOF
30317 #define HAVE_LIBNCURSES 1
30318 _ACEOF
30319
30320   LIBS="-lncurses $LIBS"
30321
30322 fi
30323
30324     fi
30325 fi
30326 if test "$ac_cv_lib_termcap_tgetent" = yes ||
30327    test "$ac_cv_lib_curses_tgetent" = yes ||
30328    test "$ac_cv_lib_ncurses_tgetent" = yes; then
30329
30330 echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
30331 echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6
30332 if test "${ac_cv_lib_readline_readline+set}" = set; then
30333   echo $ECHO_N "(cached) $ECHO_C" >&6
30334 else
30335   ac_check_lib_save_LIBS=$LIBS
30336 LIBS="-lreadline  $LIBS"
30337 cat >conftest.$ac_ext <<_ACEOF
30338 /* confdefs.h.  */
30339 _ACEOF
30340 cat confdefs.h >>conftest.$ac_ext
30341 cat >>conftest.$ac_ext <<_ACEOF
30342 /* end confdefs.h.  */
30343
30344 /* Override any gcc2 internal prototype to avoid an error.  */
30345 #ifdef __cplusplus
30346 extern "C"
30347 #endif
30348 /* We use char because int might match the return type of a gcc2
30349    builtin and then its argument prototype would still apply.  */
30350 char readline ();
30351 int
30352 main ()
30353 {
30354 readline ();
30355   ;
30356   return 0;
30357 }
30358 _ACEOF
30359 rm -f conftest.$ac_objext conftest$ac_exeext
30360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30361   (eval $ac_link) 2>conftest.er1
30362   ac_status=$?
30363   grep -v '^ *+' conftest.er1 >conftest.err
30364   rm -f conftest.er1
30365   cat conftest.err >&5
30366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30367   (exit $ac_status); } &&
30368          { ac_try='test -z "$ac_c_werror_flag"
30369                          || test ! -s conftest.err'
30370   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30371   (eval $ac_try) 2>&5
30372   ac_status=$?
30373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30374   (exit $ac_status); }; } &&
30375          { ac_try='test -s conftest$ac_exeext'
30376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30377   (eval $ac_try) 2>&5
30378   ac_status=$?
30379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30380   (exit $ac_status); }; }; then
30381   ac_cv_lib_readline_readline=yes
30382 else
30383   echo "$as_me: failed program was:" >&5
30384 sed 's/^/| /' conftest.$ac_ext >&5
30385
30386 ac_cv_lib_readline_readline=no
30387 fi
30388 rm -f conftest.err conftest.$ac_objext \
30389       conftest$ac_exeext conftest.$ac_ext
30390 LIBS=$ac_check_lib_save_LIBS
30391 fi
30392 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
30393 echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6
30394 if test $ac_cv_lib_readline_readline = yes; then
30395   cat >>confdefs.h <<_ACEOF
30396 #define HAVE_LIBREADLINE 1
30397 _ACEOF
30398
30399   LIBS="-lreadline $LIBS"
30400
30401 fi
30402
30403     if test "$ac_cv_lib_readline_readline" != yes; then
30404         { echo "$as_me:$LINENO: WARNING: *** No readline library, no history and command line editing in amrecover!" >&5
30405 echo "$as_me: WARNING: *** No readline library, no history and command line editing in amrecover!" >&2;}
30406     fi
30407 else
30408     { echo "$as_me:$LINENO: WARNING: *** No terminal library, no history and command line editing in amrecover!" >&5
30409 echo "$as_me: WARNING: *** No terminal library, no history and command line editing in amrecover!" >&2;}
30410 fi
30411
30412 if test "$ac_cv_lib_readline_readline" = yes; then
30413     READLINE_LIBS=-lreadline
30414     LIBS=`echo $LIBS | sed s/-lreadline//`
30415
30416 fi
30417
30418 if test "$ac_cv_header_linux_zftape_h" = yes; then
30419     if test "$ac_cv_header_vtblc_h" = yes; then
30420
30421 echo "$as_me:$LINENO: checking for main in -lvtblc" >&5
30422 echo $ECHO_N "checking for main in -lvtblc... $ECHO_C" >&6
30423 if test "${ac_cv_lib_vtblc_main+set}" = set; then
30424   echo $ECHO_N "(cached) $ECHO_C" >&6
30425 else
30426   ac_check_lib_save_LIBS=$LIBS
30427 LIBS="-lvtblc  $LIBS"
30428 cat >conftest.$ac_ext <<_ACEOF
30429 /* confdefs.h.  */
30430 _ACEOF
30431 cat confdefs.h >>conftest.$ac_ext
30432 cat >>conftest.$ac_ext <<_ACEOF
30433 /* end confdefs.h.  */
30434
30435
30436 int
30437 main ()
30438 {
30439 main ();
30440   ;
30441   return 0;
30442 }
30443 _ACEOF
30444 rm -f conftest.$ac_objext conftest$ac_exeext
30445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30446   (eval $ac_link) 2>conftest.er1
30447   ac_status=$?
30448   grep -v '^ *+' conftest.er1 >conftest.err
30449   rm -f conftest.er1
30450   cat conftest.err >&5
30451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30452   (exit $ac_status); } &&
30453          { ac_try='test -z "$ac_c_werror_flag"
30454                          || test ! -s conftest.err'
30455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30456   (eval $ac_try) 2>&5
30457   ac_status=$?
30458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30459   (exit $ac_status); }; } &&
30460          { ac_try='test -s conftest$ac_exeext'
30461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30462   (eval $ac_try) 2>&5
30463   ac_status=$?
30464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30465   (exit $ac_status); }; }; then
30466   ac_cv_lib_vtblc_main=yes
30467 else
30468   echo "$as_me: failed program was:" >&5
30469 sed 's/^/| /' conftest.$ac_ext >&5
30470
30471 ac_cv_lib_vtblc_main=no
30472 fi
30473 rm -f conftest.err conftest.$ac_objext \
30474       conftest$ac_exeext conftest.$ac_ext
30475 LIBS=$ac_check_lib_save_LIBS
30476 fi
30477 echo "$as_me:$LINENO: result: $ac_cv_lib_vtblc_main" >&5
30478 echo "${ECHO_T}$ac_cv_lib_vtblc_main" >&6
30479 if test $ac_cv_lib_vtblc_main = yes; then
30480   cat >>confdefs.h <<_ACEOF
30481 #define HAVE_LIBVTBLC 1
30482 _ACEOF
30483
30484   LIBS="-lvtblc $LIBS"
30485
30486 fi
30487
30488         if test "$ac_cv_lib_vtblc_main" != yes; then
30489             { echo "$as_me:$LINENO: WARNING: *** vtblc library not found - no QIC volume table support!" >&5
30490 echo "$as_me: WARNING: *** vtblc library not found - no QIC volume table support!" >&2;}
30491         fi
30492     else
30493         { echo "$as_me:$LINENO: WARNING: *** vtblc headers not found - no QIC volume table support!" >&5
30494 echo "$as_me: WARNING: *** vtblc headers not found - no QIC volume table support!" >&2;}
30495     fi
30496 fi
30497
30498
30499 echo "$as_me:$LINENO: checking for modf in -lm" >&5
30500 echo $ECHO_N "checking for modf in -lm... $ECHO_C" >&6
30501 if test "${ac_cv_lib_m_modf+set}" = set; then
30502   echo $ECHO_N "(cached) $ECHO_C" >&6
30503 else
30504   ac_check_lib_save_LIBS=$LIBS
30505 LIBS="-lm  $LIBS"
30506 cat >conftest.$ac_ext <<_ACEOF
30507 /* confdefs.h.  */
30508 _ACEOF
30509 cat confdefs.h >>conftest.$ac_ext
30510 cat >>conftest.$ac_ext <<_ACEOF
30511 /* end confdefs.h.  */
30512
30513 /* Override any gcc2 internal prototype to avoid an error.  */
30514 #ifdef __cplusplus
30515 extern "C"
30516 #endif
30517 /* We use char because int might match the return type of a gcc2
30518    builtin and then its argument prototype would still apply.  */
30519 char modf ();
30520 int
30521 main ()
30522 {
30523 modf ();
30524   ;
30525   return 0;
30526 }
30527 _ACEOF
30528 rm -f conftest.$ac_objext conftest$ac_exeext
30529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30530   (eval $ac_link) 2>conftest.er1
30531   ac_status=$?
30532   grep -v '^ *+' conftest.er1 >conftest.err
30533   rm -f conftest.er1
30534   cat conftest.err >&5
30535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30536   (exit $ac_status); } &&
30537          { ac_try='test -z "$ac_c_werror_flag"
30538                          || test ! -s conftest.err'
30539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30540   (eval $ac_try) 2>&5
30541   ac_status=$?
30542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30543   (exit $ac_status); }; } &&
30544          { ac_try='test -s conftest$ac_exeext'
30545   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30546   (eval $ac_try) 2>&5
30547   ac_status=$?
30548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30549   (exit $ac_status); }; }; then
30550   ac_cv_lib_m_modf=yes
30551 else
30552   echo "$as_me: failed program was:" >&5
30553 sed 's/^/| /' conftest.$ac_ext >&5
30554
30555 ac_cv_lib_m_modf=no
30556 fi
30557 rm -f conftest.err conftest.$ac_objext \
30558       conftest$ac_exeext conftest.$ac_ext
30559 LIBS=$ac_check_lib_save_LIBS
30560 fi
30561 echo "$as_me:$LINENO: result: $ac_cv_lib_m_modf" >&5
30562 echo "${ECHO_T}$ac_cv_lib_m_modf" >&6
30563 if test $ac_cv_lib_m_modf = yes; then
30564   cat >>confdefs.h <<_ACEOF
30565 #define HAVE_LIBM 1
30566 _ACEOF
30567
30568   LIBS="-lm $LIBS"
30569
30570 fi
30571
30572
30573
30574 echo "$as_me:$LINENO: checking for mt_flags mtget structure element" >&5
30575 echo $ECHO_N "checking for mt_flags mtget structure element... $ECHO_C" >&6
30576 mt_flags_result="found"
30577 cat >conftest.$ac_ext <<_ACEOF
30578 /* confdefs.h.  */
30579 _ACEOF
30580 cat confdefs.h >>conftest.$ac_ext
30581 cat >>conftest.$ac_ext <<_ACEOF
30582 /* end confdefs.h.  */
30583
30584 #include <stdio.h>
30585 #include <sys/types.h>
30586 #include <sys/mtio.h>
30587
30588 int
30589 main ()
30590 {
30591
30592     struct mtget buf;
30593     long ds;
30594
30595     ds = buf.mt_flags;
30596
30597   ;
30598   return 0;
30599 }
30600 _ACEOF
30601 rm -f conftest.$ac_objext
30602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30603   (eval $ac_compile) 2>conftest.er1
30604   ac_status=$?
30605   grep -v '^ *+' conftest.er1 >conftest.err
30606   rm -f conftest.er1
30607   cat conftest.err >&5
30608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30609   (exit $ac_status); } &&
30610          { ac_try='test -z "$ac_c_werror_flag"
30611                          || test ! -s conftest.err'
30612   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30613   (eval $ac_try) 2>&5
30614   ac_status=$?
30615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30616   (exit $ac_status); }; } &&
30617          { ac_try='test -s conftest.$ac_objext'
30618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30619   (eval $ac_try) 2>&5
30620   ac_status=$?
30621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30622   (exit $ac_status); }; }; then
30623
30624 cat >>confdefs.h <<\_ACEOF
30625 #define HAVE_MT_FLAGS 1
30626 _ACEOF
30627
30628 else
30629   echo "$as_me: failed program was:" >&5
30630 sed 's/^/| /' conftest.$ac_ext >&5
30631
30632 mt_flags_result="not found"
30633 fi
30634 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30635 echo "$as_me:$LINENO: result: $mt_flags_result" >&5
30636 echo "${ECHO_T}$mt_flags_result" >&6
30637
30638 echo "$as_me:$LINENO: checking for mt_fileno mtget structure element" >&5
30639 echo $ECHO_N "checking for mt_fileno mtget structure element... $ECHO_C" >&6
30640 mt_fileno_result="found"
30641 cat >conftest.$ac_ext <<_ACEOF
30642 /* confdefs.h.  */
30643 _ACEOF
30644 cat confdefs.h >>conftest.$ac_ext
30645 cat >>conftest.$ac_ext <<_ACEOF
30646 /* end confdefs.h.  */
30647
30648 #include <stdio.h>
30649 #include <sys/types.h>
30650 #include <sys/mtio.h>
30651
30652 int
30653 main ()
30654 {
30655
30656     struct mtget buf;
30657     long ds;
30658
30659     ds = buf.mt_fileno;
30660
30661   ;
30662   return 0;
30663 }
30664 _ACEOF
30665 rm -f conftest.$ac_objext
30666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30667   (eval $ac_compile) 2>conftest.er1
30668   ac_status=$?
30669   grep -v '^ *+' conftest.er1 >conftest.err
30670   rm -f conftest.er1
30671   cat conftest.err >&5
30672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30673   (exit $ac_status); } &&
30674          { ac_try='test -z "$ac_c_werror_flag"
30675                          || test ! -s conftest.err'
30676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30677   (eval $ac_try) 2>&5
30678   ac_status=$?
30679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30680   (exit $ac_status); }; } &&
30681          { ac_try='test -s conftest.$ac_objext'
30682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30683   (eval $ac_try) 2>&5
30684   ac_status=$?
30685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30686   (exit $ac_status); }; }; then
30687
30688 cat >>confdefs.h <<\_ACEOF
30689 #define HAVE_MT_FILENO 1
30690 _ACEOF
30691
30692 else
30693   echo "$as_me: failed program was:" >&5
30694 sed 's/^/| /' conftest.$ac_ext >&5
30695
30696 mt_fileno_result="not found"
30697 fi
30698 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30699 echo "$as_me:$LINENO: result: $mt_fileno_result" >&5
30700 echo "${ECHO_T}$mt_fileno_result" >&6
30701
30702 echo "$as_me:$LINENO: checking for mt_blkno mtget structure element" >&5
30703 echo $ECHO_N "checking for mt_blkno mtget structure element... $ECHO_C" >&6
30704 mt_blkno_result="found"
30705 cat >conftest.$ac_ext <<_ACEOF
30706 /* confdefs.h.  */
30707 _ACEOF
30708 cat confdefs.h >>conftest.$ac_ext
30709 cat >>conftest.$ac_ext <<_ACEOF
30710 /* end confdefs.h.  */
30711
30712 #include <stdio.h>
30713 #include <sys/types.h>
30714 #include <sys/mtio.h>
30715
30716 int
30717 main ()
30718 {
30719
30720     struct mtget buf;
30721     long ds;
30722
30723     ds = buf.mt_blkno;
30724
30725   ;
30726   return 0;
30727 }
30728 _ACEOF
30729 rm -f conftest.$ac_objext
30730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30731   (eval $ac_compile) 2>conftest.er1
30732   ac_status=$?
30733   grep -v '^ *+' conftest.er1 >conftest.err
30734   rm -f conftest.er1
30735   cat conftest.err >&5
30736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30737   (exit $ac_status); } &&
30738          { ac_try='test -z "$ac_c_werror_flag"
30739                          || test ! -s conftest.err'
30740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30741   (eval $ac_try) 2>&5
30742   ac_status=$?
30743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30744   (exit $ac_status); }; } &&
30745          { ac_try='test -s conftest.$ac_objext'
30746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30747   (eval $ac_try) 2>&5
30748   ac_status=$?
30749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30750   (exit $ac_status); }; }; then
30751
30752 cat >>confdefs.h <<\_ACEOF
30753 #define HAVE_MT_BLKNO 1
30754 _ACEOF
30755
30756 else
30757   echo "$as_me: failed program was:" >&5
30758 sed 's/^/| /' conftest.$ac_ext >&5
30759
30760 mt_blkno_result="not found"
30761 fi
30762 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30763 echo "$as_me:$LINENO: result: $mt_blkno_result" >&5
30764 echo "${ECHO_T}$mt_blkno_result" >&6
30765
30766 echo "$as_me:$LINENO: checking for mt_dsreg mtget structure element" >&5
30767 echo $ECHO_N "checking for mt_dsreg mtget structure element... $ECHO_C" >&6
30768 mt_dsreg_result="found"
30769 cat >conftest.$ac_ext <<_ACEOF
30770 /* confdefs.h.  */
30771 _ACEOF
30772 cat confdefs.h >>conftest.$ac_ext
30773 cat >>conftest.$ac_ext <<_ACEOF
30774 /* end confdefs.h.  */
30775
30776 #include <stdio.h>
30777 #include <sys/types.h>
30778 #include <sys/mtio.h>
30779
30780 int
30781 main ()
30782 {
30783
30784     struct mtget buf;
30785     long ds;
30786
30787     ds = buf.mt_dsreg;
30788
30789   ;
30790   return 0;
30791 }
30792 _ACEOF
30793 rm -f conftest.$ac_objext
30794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30795   (eval $ac_compile) 2>conftest.er1
30796   ac_status=$?
30797   grep -v '^ *+' conftest.er1 >conftest.err
30798   rm -f conftest.er1
30799   cat conftest.err >&5
30800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30801   (exit $ac_status); } &&
30802          { ac_try='test -z "$ac_c_werror_flag"
30803                          || test ! -s conftest.err'
30804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30805   (eval $ac_try) 2>&5
30806   ac_status=$?
30807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30808   (exit $ac_status); }; } &&
30809          { ac_try='test -s conftest.$ac_objext'
30810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30811   (eval $ac_try) 2>&5
30812   ac_status=$?
30813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30814   (exit $ac_status); }; }; then
30815
30816 cat >>confdefs.h <<\_ACEOF
30817 #define HAVE_MT_DSREG 1
30818 _ACEOF
30819
30820 else
30821   echo "$as_me: failed program was:" >&5
30822 sed 's/^/| /' conftest.$ac_ext >&5
30823
30824 mt_dsreg_result="not found"
30825 fi
30826 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30827 echo "$as_me:$LINENO: result: $mt_dsreg_result" >&5
30828 echo "${ECHO_T}$mt_dsreg_result" >&6
30829
30830 echo "$as_me:$LINENO: checking for mt_erreg mtget structure element" >&5
30831 echo $ECHO_N "checking for mt_erreg mtget structure element... $ECHO_C" >&6
30832 mt_erreg_result="found"
30833 cat >conftest.$ac_ext <<_ACEOF
30834 /* confdefs.h.  */
30835 _ACEOF
30836 cat confdefs.h >>conftest.$ac_ext
30837 cat >>conftest.$ac_ext <<_ACEOF
30838 /* end confdefs.h.  */
30839
30840 #include <stdio.h>
30841 #include <sys/types.h>
30842 #include <sys/mtio.h>
30843
30844 int
30845 main ()
30846 {
30847
30848     struct mtget buf;
30849     long ds;
30850
30851     ds = buf.mt_erreg;
30852
30853   ;
30854   return 0;
30855 }
30856 _ACEOF
30857 rm -f conftest.$ac_objext
30858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30859   (eval $ac_compile) 2>conftest.er1
30860   ac_status=$?
30861   grep -v '^ *+' conftest.er1 >conftest.err
30862   rm -f conftest.er1
30863   cat conftest.err >&5
30864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30865   (exit $ac_status); } &&
30866          { ac_try='test -z "$ac_c_werror_flag"
30867                          || test ! -s conftest.err'
30868   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30869   (eval $ac_try) 2>&5
30870   ac_status=$?
30871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30872   (exit $ac_status); }; } &&
30873          { ac_try='test -s conftest.$ac_objext'
30874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30875   (eval $ac_try) 2>&5
30876   ac_status=$?
30877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30878   (exit $ac_status); }; }; then
30879
30880 cat >>confdefs.h <<\_ACEOF
30881 #define HAVE_MT_ERREG 1
30882 _ACEOF
30883
30884 else
30885   echo "$as_me: failed program was:" >&5
30886 sed 's/^/| /' conftest.$ac_ext >&5
30887
30888 mt_erreg_result="not found"
30889 fi
30890 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30891 echo "$as_me:$LINENO: result: $mt_erreg_result" >&5
30892 echo "${ECHO_T}$mt_erreg_result" >&6
30893
30894
30895 DB_HEADER=
30896 DB_LIB=
30897
30898 save_LIBS="$LIBS"
30899
30900 echo "$as_me:$LINENO: checking for dbm_open in -lc" >&5
30901 echo $ECHO_N "checking for dbm_open in -lc... $ECHO_C" >&6
30902 if test "${ac_cv_lib_c_dbm_open+set}" = set; then
30903   echo $ECHO_N "(cached) $ECHO_C" >&6
30904 else
30905   ac_check_lib_save_LIBS=$LIBS
30906 LIBS="-lc  $LIBS"
30907 cat >conftest.$ac_ext <<_ACEOF
30908 /* confdefs.h.  */
30909 _ACEOF
30910 cat confdefs.h >>conftest.$ac_ext
30911 cat >>conftest.$ac_ext <<_ACEOF
30912 /* end confdefs.h.  */
30913
30914 /* Override any gcc2 internal prototype to avoid an error.  */
30915 #ifdef __cplusplus
30916 extern "C"
30917 #endif
30918 /* We use char because int might match the return type of a gcc2
30919    builtin and then its argument prototype would still apply.  */
30920 char dbm_open ();
30921 int
30922 main ()
30923 {
30924 dbm_open ();
30925   ;
30926   return 0;
30927 }
30928 _ACEOF
30929 rm -f conftest.$ac_objext conftest$ac_exeext
30930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30931   (eval $ac_link) 2>conftest.er1
30932   ac_status=$?
30933   grep -v '^ *+' conftest.er1 >conftest.err
30934   rm -f conftest.er1
30935   cat conftest.err >&5
30936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30937   (exit $ac_status); } &&
30938          { ac_try='test -z "$ac_c_werror_flag"
30939                          || test ! -s conftest.err'
30940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30941   (eval $ac_try) 2>&5
30942   ac_status=$?
30943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30944   (exit $ac_status); }; } &&
30945          { ac_try='test -s conftest$ac_exeext'
30946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30947   (eval $ac_try) 2>&5
30948   ac_status=$?
30949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30950   (exit $ac_status); }; }; then
30951   ac_cv_lib_c_dbm_open=yes
30952 else
30953   echo "$as_me: failed program was:" >&5
30954 sed 's/^/| /' conftest.$ac_ext >&5
30955
30956 ac_cv_lib_c_dbm_open=no
30957 fi
30958 rm -f conftest.err conftest.$ac_objext \
30959       conftest$ac_exeext conftest.$ac_ext
30960 LIBS=$ac_check_lib_save_LIBS
30961 fi
30962 echo "$as_me:$LINENO: result: $ac_cv_lib_c_dbm_open" >&5
30963 echo "${ECHO_T}$ac_cv_lib_c_dbm_open" >&6
30964 if test $ac_cv_lib_c_dbm_open = yes; then
30965   cat >>confdefs.h <<_ACEOF
30966 #define HAVE_LIBC 1
30967 _ACEOF
30968
30969   LIBS="-lc $LIBS"
30970
30971 fi
30972
30973 LIBS="$save_LIBS"
30974
30975 case "$DB_STYLE" in
30976     db)
30977         if test "$ac_cv_header_db_h" = yes; then
30978
30979 echo "$as_me:$LINENO: checking for main in -ldb" >&5
30980 echo $ECHO_N "checking for main in -ldb... $ECHO_C" >&6
30981 if test "${ac_cv_lib_db_main+set}" = set; then
30982   echo $ECHO_N "(cached) $ECHO_C" >&6
30983 else
30984   ac_check_lib_save_LIBS=$LIBS
30985 LIBS="-ldb  $LIBS"
30986 cat >conftest.$ac_ext <<_ACEOF
30987 /* confdefs.h.  */
30988 _ACEOF
30989 cat confdefs.h >>conftest.$ac_ext
30990 cat >>conftest.$ac_ext <<_ACEOF
30991 /* end confdefs.h.  */
30992
30993
30994 int
30995 main ()
30996 {
30997 main ();
30998   ;
30999   return 0;
31000 }
31001 _ACEOF
31002 rm -f conftest.$ac_objext conftest$ac_exeext
31003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31004   (eval $ac_link) 2>conftest.er1
31005   ac_status=$?
31006   grep -v '^ *+' conftest.er1 >conftest.err
31007   rm -f conftest.er1
31008   cat conftest.err >&5
31009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31010   (exit $ac_status); } &&
31011          { ac_try='test -z "$ac_c_werror_flag"
31012                          || test ! -s conftest.err'
31013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31014   (eval $ac_try) 2>&5
31015   ac_status=$?
31016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31017   (exit $ac_status); }; } &&
31018          { ac_try='test -s conftest$ac_exeext'
31019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31020   (eval $ac_try) 2>&5
31021   ac_status=$?
31022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31023   (exit $ac_status); }; }; then
31024   ac_cv_lib_db_main=yes
31025 else
31026   echo "$as_me: failed program was:" >&5
31027 sed 's/^/| /' conftest.$ac_ext >&5
31028
31029 ac_cv_lib_db_main=no
31030 fi
31031 rm -f conftest.err conftest.$ac_objext \
31032       conftest$ac_exeext conftest.$ac_ext
31033 LIBS=$ac_check_lib_save_LIBS
31034 fi
31035 echo "$as_me:$LINENO: result: $ac_cv_lib_db_main" >&5
31036 echo "${ECHO_T}$ac_cv_lib_db_main" >&6
31037 if test $ac_cv_lib_db_main = yes; then
31038   cat >>confdefs.h <<_ACEOF
31039 #define HAVE_LIBDB 1
31040 _ACEOF
31041
31042   LIBS="-ldb $LIBS"
31043
31044 fi
31045
31046             if test "$ac_cv_lib_db_main" = yes; then
31047
31048 echo "$as_me:$LINENO: checking for dbm_open in -ldb" >&5
31049 echo $ECHO_N "checking for dbm_open in -ldb... $ECHO_C" >&6
31050 if test "${ac_cv_lib_db_dbm_open+set}" = set; then
31051   echo $ECHO_N "(cached) $ECHO_C" >&6
31052 else
31053   ac_check_lib_save_LIBS=$LIBS
31054 LIBS="-ldb  $LIBS"
31055 cat >conftest.$ac_ext <<_ACEOF
31056 /* confdefs.h.  */
31057 _ACEOF
31058 cat confdefs.h >>conftest.$ac_ext
31059 cat >>conftest.$ac_ext <<_ACEOF
31060 /* end confdefs.h.  */
31061
31062 /* Override any gcc2 internal prototype to avoid an error.  */
31063 #ifdef __cplusplus
31064 extern "C"
31065 #endif
31066 /* We use char because int might match the return type of a gcc2
31067    builtin and then its argument prototype would still apply.  */
31068 char dbm_open ();
31069 int
31070 main ()
31071 {
31072 dbm_open ();
31073   ;
31074   return 0;
31075 }
31076 _ACEOF
31077 rm -f conftest.$ac_objext conftest$ac_exeext
31078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31079   (eval $ac_link) 2>conftest.er1
31080   ac_status=$?
31081   grep -v '^ *+' conftest.er1 >conftest.err
31082   rm -f conftest.er1
31083   cat conftest.err >&5
31084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31085   (exit $ac_status); } &&
31086          { ac_try='test -z "$ac_c_werror_flag"
31087                          || test ! -s conftest.err'
31088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31089   (eval $ac_try) 2>&5
31090   ac_status=$?
31091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31092   (exit $ac_status); }; } &&
31093          { ac_try='test -s conftest$ac_exeext'
31094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31095   (eval $ac_try) 2>&5
31096   ac_status=$?
31097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31098   (exit $ac_status); }; }; then
31099   ac_cv_lib_db_dbm_open=yes
31100 else
31101   echo "$as_me: failed program was:" >&5
31102 sed 's/^/| /' conftest.$ac_ext >&5
31103
31104 ac_cv_lib_db_dbm_open=no
31105 fi
31106 rm -f conftest.err conftest.$ac_objext \
31107       conftest$ac_exeext conftest.$ac_ext
31108 LIBS=$ac_check_lib_save_LIBS
31109 fi
31110 echo "$as_me:$LINENO: result: $ac_cv_lib_db_dbm_open" >&5
31111 echo "${ECHO_T}$ac_cv_lib_db_dbm_open" >&6
31112 if test $ac_cv_lib_db_dbm_open = yes; then
31113   cat >>confdefs.h <<_ACEOF
31114 #define HAVE_LIBDB 1
31115 _ACEOF
31116
31117   LIBS="-ldb $LIBS"
31118
31119 fi
31120
31121                 if test "$ac_cv_lib_db_dbm_open" = yes; then
31122                     DB_HEADER=db.h
31123                     DB_LIB=db
31124                 else
31125                     DB_STYLE=
31126                     { echo "$as_me:$LINENO: WARNING: *** db database library requested but dbm_open not found in -ldb." >&5
31127 echo "$as_me: WARNING: *** db database library requested but dbm_open not found in -ldb." >&2;}
31128                 fi
31129             else
31130                 if test "$ac_cv_lib_c_dbm_open" = yes; then
31131                     DB_HEADER=db.h
31132                     DB_LIB=c
31133                 else
31134                     DB_STYLE=
31135                     { echo "$as_me:$LINENO: WARNING: *** db library requested but -ldb doesn't exist and dbm_open cannot be found." >&5
31136 echo "$as_me: WARNING: *** db library requested but -ldb doesn't exist and dbm_open cannot be found." >&2;}
31137                 fi
31138             fi
31139         else
31140             DB_STYLE=
31141             { echo "$as_me:$LINENO: WARNING: *** db database library requested but db.h not found." >&5
31142 echo "$as_me: WARNING: *** db database library requested but db.h not found." >&2;}
31143         fi
31144         ;;
31145
31146     dbm)
31147         if test "$ac_cv_header_dbm_h" = yes; then
31148
31149 echo "$as_me:$LINENO: checking for main in -ldbm" >&5
31150 echo $ECHO_N "checking for main in -ldbm... $ECHO_C" >&6
31151 if test "${ac_cv_lib_dbm_main+set}" = set; then
31152   echo $ECHO_N "(cached) $ECHO_C" >&6
31153 else
31154   ac_check_lib_save_LIBS=$LIBS
31155 LIBS="-ldbm  $LIBS"
31156 cat >conftest.$ac_ext <<_ACEOF
31157 /* confdefs.h.  */
31158 _ACEOF
31159 cat confdefs.h >>conftest.$ac_ext
31160 cat >>conftest.$ac_ext <<_ACEOF
31161 /* end confdefs.h.  */
31162
31163
31164 int
31165 main ()
31166 {
31167 main ();
31168   ;
31169   return 0;
31170 }
31171 _ACEOF
31172 rm -f conftest.$ac_objext conftest$ac_exeext
31173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31174   (eval $ac_link) 2>conftest.er1
31175   ac_status=$?
31176   grep -v '^ *+' conftest.er1 >conftest.err
31177   rm -f conftest.er1
31178   cat conftest.err >&5
31179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31180   (exit $ac_status); } &&
31181          { ac_try='test -z "$ac_c_werror_flag"
31182                          || test ! -s conftest.err'
31183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31184   (eval $ac_try) 2>&5
31185   ac_status=$?
31186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31187   (exit $ac_status); }; } &&
31188          { ac_try='test -s conftest$ac_exeext'
31189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31190   (eval $ac_try) 2>&5
31191   ac_status=$?
31192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31193   (exit $ac_status); }; }; then
31194   ac_cv_lib_dbm_main=yes
31195 else
31196   echo "$as_me: failed program was:" >&5
31197 sed 's/^/| /' conftest.$ac_ext >&5
31198
31199 ac_cv_lib_dbm_main=no
31200 fi
31201 rm -f conftest.err conftest.$ac_objext \
31202       conftest$ac_exeext conftest.$ac_ext
31203 LIBS=$ac_check_lib_save_LIBS
31204 fi
31205 echo "$as_me:$LINENO: result: $ac_cv_lib_dbm_main" >&5
31206 echo "${ECHO_T}$ac_cv_lib_dbm_main" >&6
31207 if test $ac_cv_lib_dbm_main = yes; then
31208   cat >>confdefs.h <<_ACEOF
31209 #define HAVE_LIBDBM 1
31210 _ACEOF
31211
31212   LIBS="-ldbm $LIBS"
31213
31214 fi
31215
31216             if test "$ac_cv_lib_dbm_main" = yes; then
31217
31218 echo "$as_me:$LINENO: checking for dbm_open in -ldbm" >&5
31219 echo $ECHO_N "checking for dbm_open in -ldbm... $ECHO_C" >&6
31220 if test "${ac_cv_lib_dbm_dbm_open+set}" = set; then
31221   echo $ECHO_N "(cached) $ECHO_C" >&6
31222 else
31223   ac_check_lib_save_LIBS=$LIBS
31224 LIBS="-ldbm  $LIBS"
31225 cat >conftest.$ac_ext <<_ACEOF
31226 /* confdefs.h.  */
31227 _ACEOF
31228 cat confdefs.h >>conftest.$ac_ext
31229 cat >>conftest.$ac_ext <<_ACEOF
31230 /* end confdefs.h.  */
31231
31232 /* Override any gcc2 internal prototype to avoid an error.  */
31233 #ifdef __cplusplus
31234 extern "C"
31235 #endif
31236 /* We use char because int might match the return type of a gcc2
31237    builtin and then its argument prototype would still apply.  */
31238 char dbm_open ();
31239 int
31240 main ()
31241 {
31242 dbm_open ();
31243   ;
31244   return 0;
31245 }
31246 _ACEOF
31247 rm -f conftest.$ac_objext conftest$ac_exeext
31248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31249   (eval $ac_link) 2>conftest.er1
31250   ac_status=$?
31251   grep -v '^ *+' conftest.er1 >conftest.err
31252   rm -f conftest.er1
31253   cat conftest.err >&5
31254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31255   (exit $ac_status); } &&
31256          { ac_try='test -z "$ac_c_werror_flag"
31257                          || test ! -s conftest.err'
31258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31259   (eval $ac_try) 2>&5
31260   ac_status=$?
31261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31262   (exit $ac_status); }; } &&
31263          { ac_try='test -s conftest$ac_exeext'
31264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31265   (eval $ac_try) 2>&5
31266   ac_status=$?
31267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31268   (exit $ac_status); }; }; then
31269   ac_cv_lib_dbm_dbm_open=yes
31270 else
31271   echo "$as_me: failed program was:" >&5
31272 sed 's/^/| /' conftest.$ac_ext >&5
31273
31274 ac_cv_lib_dbm_dbm_open=no
31275 fi
31276 rm -f conftest.err conftest.$ac_objext \
31277       conftest$ac_exeext conftest.$ac_ext
31278 LIBS=$ac_check_lib_save_LIBS
31279 fi
31280 echo "$as_me:$LINENO: result: $ac_cv_lib_dbm_dbm_open" >&5
31281 echo "${ECHO_T}$ac_cv_lib_dbm_dbm_open" >&6
31282 if test $ac_cv_lib_dbm_dbm_open = yes; then
31283   cat >>confdefs.h <<_ACEOF
31284 #define HAVE_LIBDBM 1
31285 _ACEOF
31286
31287   LIBS="-ldbm $LIBS"
31288
31289 fi
31290
31291                 if test "$ac_cv_lib_dbm_dbm_open" = yes; then
31292                     DB_HEADER=dbm.h
31293                     DB_LIB=dbm
31294                 else
31295                     DB_STYLE=
31296                     { echo "$as_me:$LINENO: WARNING: *** dbm database library requested but dbm_open not found in -ldbm." >&5
31297 echo "$as_me: WARNING: *** dbm database library requested but dbm_open not found in -ldbm." >&2;}
31298                 fi
31299             else
31300                 if test "$ac_cv_lib_c_dbm_open" = yes; then
31301                     DB_HEADER=dbm.h
31302                     DB_LIB=c
31303                 else
31304                     DB_STYLE=
31305                     { echo "$as_me:$LINENO: WARNING: *** dbm library requested but -ldbm doesn't exist and dbm_open cannot be found." >&5
31306 echo "$as_me: WARNING: *** dbm library requested but -ldbm doesn't exist and dbm_open cannot be found." >&2;}
31307                 fi
31308             fi
31309         else
31310             DB_STYLE=
31311             { echo "$as_me:$LINENO: WARNING: *** dbm database library requested but dbm.h not found." >&5
31312 echo "$as_me: WARNING: *** dbm database library requested but dbm.h not found." >&2;}
31313         fi
31314         ;;
31315
31316     gdbm)
31317         if test "$ac_cv_header_ndbm_h" = yes; then
31318
31319 echo "$as_me:$LINENO: checking for main in -lgdbm" >&5
31320 echo $ECHO_N "checking for main in -lgdbm... $ECHO_C" >&6
31321 if test "${ac_cv_lib_gdbm_main+set}" = set; then
31322   echo $ECHO_N "(cached) $ECHO_C" >&6
31323 else
31324   ac_check_lib_save_LIBS=$LIBS
31325 LIBS="-lgdbm  $LIBS"
31326 cat >conftest.$ac_ext <<_ACEOF
31327 /* confdefs.h.  */
31328 _ACEOF
31329 cat confdefs.h >>conftest.$ac_ext
31330 cat >>conftest.$ac_ext <<_ACEOF
31331 /* end confdefs.h.  */
31332
31333
31334 int
31335 main ()
31336 {
31337 main ();
31338   ;
31339   return 0;
31340 }
31341 _ACEOF
31342 rm -f conftest.$ac_objext conftest$ac_exeext
31343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31344   (eval $ac_link) 2>conftest.er1
31345   ac_status=$?
31346   grep -v '^ *+' conftest.er1 >conftest.err
31347   rm -f conftest.er1
31348   cat conftest.err >&5
31349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31350   (exit $ac_status); } &&
31351          { ac_try='test -z "$ac_c_werror_flag"
31352                          || test ! -s conftest.err'
31353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31354   (eval $ac_try) 2>&5
31355   ac_status=$?
31356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31357   (exit $ac_status); }; } &&
31358          { ac_try='test -s conftest$ac_exeext'
31359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31360   (eval $ac_try) 2>&5
31361   ac_status=$?
31362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31363   (exit $ac_status); }; }; then
31364   ac_cv_lib_gdbm_main=yes
31365 else
31366   echo "$as_me: failed program was:" >&5
31367 sed 's/^/| /' conftest.$ac_ext >&5
31368
31369 ac_cv_lib_gdbm_main=no
31370 fi
31371 rm -f conftest.err conftest.$ac_objext \
31372       conftest$ac_exeext conftest.$ac_ext
31373 LIBS=$ac_check_lib_save_LIBS
31374 fi
31375 echo "$as_me:$LINENO: result: $ac_cv_lib_gdbm_main" >&5
31376 echo "${ECHO_T}$ac_cv_lib_gdbm_main" >&6
31377 if test $ac_cv_lib_gdbm_main = yes; then
31378   cat >>confdefs.h <<_ACEOF
31379 #define HAVE_LIBGDBM 1
31380 _ACEOF
31381
31382   LIBS="-lgdbm $LIBS"
31383
31384 fi
31385
31386             if test "$ac_cv_lib_gdbm_main" = yes; then
31387
31388 echo "$as_me:$LINENO: checking for dbm_open in -lgdbm" >&5
31389 echo $ECHO_N "checking for dbm_open in -lgdbm... $ECHO_C" >&6
31390 if test "${ac_cv_lib_gdbm_dbm_open+set}" = set; then
31391   echo $ECHO_N "(cached) $ECHO_C" >&6
31392 else
31393   ac_check_lib_save_LIBS=$LIBS
31394 LIBS="-lgdbm  $LIBS"
31395 cat >conftest.$ac_ext <<_ACEOF
31396 /* confdefs.h.  */
31397 _ACEOF
31398 cat confdefs.h >>conftest.$ac_ext
31399 cat >>conftest.$ac_ext <<_ACEOF
31400 /* end confdefs.h.  */
31401
31402 /* Override any gcc2 internal prototype to avoid an error.  */
31403 #ifdef __cplusplus
31404 extern "C"
31405 #endif
31406 /* We use char because int might match the return type of a gcc2
31407    builtin and then its argument prototype would still apply.  */
31408 char dbm_open ();
31409 int
31410 main ()
31411 {
31412 dbm_open ();
31413   ;
31414   return 0;
31415 }
31416 _ACEOF
31417 rm -f conftest.$ac_objext conftest$ac_exeext
31418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31419   (eval $ac_link) 2>conftest.er1
31420   ac_status=$?
31421   grep -v '^ *+' conftest.er1 >conftest.err
31422   rm -f conftest.er1
31423   cat conftest.err >&5
31424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31425   (exit $ac_status); } &&
31426          { ac_try='test -z "$ac_c_werror_flag"
31427                          || test ! -s conftest.err'
31428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31429   (eval $ac_try) 2>&5
31430   ac_status=$?
31431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31432   (exit $ac_status); }; } &&
31433          { ac_try='test -s conftest$ac_exeext'
31434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31435   (eval $ac_try) 2>&5
31436   ac_status=$?
31437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31438   (exit $ac_status); }; }; then
31439   ac_cv_lib_gdbm_dbm_open=yes
31440 else
31441   echo "$as_me: failed program was:" >&5
31442 sed 's/^/| /' conftest.$ac_ext >&5
31443
31444 ac_cv_lib_gdbm_dbm_open=no
31445 fi
31446 rm -f conftest.err conftest.$ac_objext \
31447       conftest$ac_exeext conftest.$ac_ext
31448 LIBS=$ac_check_lib_save_LIBS
31449 fi
31450 echo "$as_me:$LINENO: result: $ac_cv_lib_gdbm_dbm_open" >&5
31451 echo "${ECHO_T}$ac_cv_lib_gdbm_dbm_open" >&6
31452 if test $ac_cv_lib_gdbm_dbm_open = yes; then
31453   cat >>confdefs.h <<_ACEOF
31454 #define HAVE_LIBGDBM 1
31455 _ACEOF
31456
31457   LIBS="-lgdbm $LIBS"
31458
31459 fi
31460
31461                 if test "$ac_cv_lib_gdbm_dbm_open" = yes; then
31462                     DB_HEADER=ndbm.h
31463                     DB_LIB=gdbm
31464                 else
31465                     DB_STYLE=
31466                     { echo "$as_me:$LINENO: WARNING: *** gdbm database library requested but -lgdbm not found." >&5
31467 echo "$as_me: WARNING: *** gdbm database library requested but -lgdbm not found." >&2;}
31468                 fi
31469             else
31470                 if test "$ac_cv_lib_c_dbm_open" = yes; then
31471                     DB_HEADER=ndbm.h
31472                     DB_LIB=c
31473                 else
31474                     DB_STYLE=
31475                     { echo "$as_me:$LINENO: WARNING: *** gdbm library requested but -lgdbm doesn't exist and dbm_open cannot be found." >&5
31476 echo "$as_me: WARNING: *** gdbm library requested but -lgdbm doesn't exist and dbm_open cannot be found." >&2;}
31477                 fi
31478             fi
31479         else
31480             DB_STYLE=
31481             { echo "$as_me:$LINENO: WARNING: *** gdbm database library requested but ndbm.h not found." >&5
31482 echo "$as_me: WARNING: *** gdbm database library requested but ndbm.h not found." >&2;}
31483         fi
31484         ;;
31485
31486     ndbm)
31487         if test "$ac_cv_header_ndbm_h" = yes; then
31488
31489 echo "$as_me:$LINENO: checking for main in -lndbm" >&5
31490 echo $ECHO_N "checking for main in -lndbm... $ECHO_C" >&6
31491 if test "${ac_cv_lib_ndbm_main+set}" = set; then
31492   echo $ECHO_N "(cached) $ECHO_C" >&6
31493 else
31494   ac_check_lib_save_LIBS=$LIBS
31495 LIBS="-lndbm  $LIBS"
31496 cat >conftest.$ac_ext <<_ACEOF
31497 /* confdefs.h.  */
31498 _ACEOF
31499 cat confdefs.h >>conftest.$ac_ext
31500 cat >>conftest.$ac_ext <<_ACEOF
31501 /* end confdefs.h.  */
31502
31503
31504 int
31505 main ()
31506 {
31507 main ();
31508   ;
31509   return 0;
31510 }
31511 _ACEOF
31512 rm -f conftest.$ac_objext conftest$ac_exeext
31513 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31514   (eval $ac_link) 2>conftest.er1
31515   ac_status=$?
31516   grep -v '^ *+' conftest.er1 >conftest.err
31517   rm -f conftest.er1
31518   cat conftest.err >&5
31519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31520   (exit $ac_status); } &&
31521          { ac_try='test -z "$ac_c_werror_flag"
31522                          || test ! -s conftest.err'
31523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31524   (eval $ac_try) 2>&5
31525   ac_status=$?
31526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31527   (exit $ac_status); }; } &&
31528          { ac_try='test -s conftest$ac_exeext'
31529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31530   (eval $ac_try) 2>&5
31531   ac_status=$?
31532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31533   (exit $ac_status); }; }; then
31534   ac_cv_lib_ndbm_main=yes
31535 else
31536   echo "$as_me: failed program was:" >&5
31537 sed 's/^/| /' conftest.$ac_ext >&5
31538
31539 ac_cv_lib_ndbm_main=no
31540 fi
31541 rm -f conftest.err conftest.$ac_objext \
31542       conftest$ac_exeext conftest.$ac_ext
31543 LIBS=$ac_check_lib_save_LIBS
31544 fi
31545 echo "$as_me:$LINENO: result: $ac_cv_lib_ndbm_main" >&5
31546 echo "${ECHO_T}$ac_cv_lib_ndbm_main" >&6
31547 if test $ac_cv_lib_ndbm_main = yes; then
31548   cat >>confdefs.h <<_ACEOF
31549 #define HAVE_LIBNDBM 1
31550 _ACEOF
31551
31552   LIBS="-lndbm $LIBS"
31553
31554 fi
31555
31556             if test "$ac_cv_lib_ndbm_main" = yes; then
31557
31558 echo "$as_me:$LINENO: checking for dbm_open in -lndbm" >&5
31559 echo $ECHO_N "checking for dbm_open in -lndbm... $ECHO_C" >&6
31560 if test "${ac_cv_lib_ndbm_dbm_open+set}" = set; then
31561   echo $ECHO_N "(cached) $ECHO_C" >&6
31562 else
31563   ac_check_lib_save_LIBS=$LIBS
31564 LIBS="-lndbm  $LIBS"
31565 cat >conftest.$ac_ext <<_ACEOF
31566 /* confdefs.h.  */
31567 _ACEOF
31568 cat confdefs.h >>conftest.$ac_ext
31569 cat >>conftest.$ac_ext <<_ACEOF
31570 /* end confdefs.h.  */
31571
31572 /* Override any gcc2 internal prototype to avoid an error.  */
31573 #ifdef __cplusplus
31574 extern "C"
31575 #endif
31576 /* We use char because int might match the return type of a gcc2
31577    builtin and then its argument prototype would still apply.  */
31578 char dbm_open ();
31579 int
31580 main ()
31581 {
31582 dbm_open ();
31583   ;
31584   return 0;
31585 }
31586 _ACEOF
31587 rm -f conftest.$ac_objext conftest$ac_exeext
31588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31589   (eval $ac_link) 2>conftest.er1
31590   ac_status=$?
31591   grep -v '^ *+' conftest.er1 >conftest.err
31592   rm -f conftest.er1
31593   cat conftest.err >&5
31594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31595   (exit $ac_status); } &&
31596          { ac_try='test -z "$ac_c_werror_flag"
31597                          || test ! -s conftest.err'
31598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31599   (eval $ac_try) 2>&5
31600   ac_status=$?
31601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31602   (exit $ac_status); }; } &&
31603          { ac_try='test -s conftest$ac_exeext'
31604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31605   (eval $ac_try) 2>&5
31606   ac_status=$?
31607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31608   (exit $ac_status); }; }; then
31609   ac_cv_lib_ndbm_dbm_open=yes
31610 else
31611   echo "$as_me: failed program was:" >&5
31612 sed 's/^/| /' conftest.$ac_ext >&5
31613
31614 ac_cv_lib_ndbm_dbm_open=no
31615 fi
31616 rm -f conftest.err conftest.$ac_objext \
31617       conftest$ac_exeext conftest.$ac_ext
31618 LIBS=$ac_check_lib_save_LIBS
31619 fi
31620 echo "$as_me:$LINENO: result: $ac_cv_lib_ndbm_dbm_open" >&5
31621 echo "${ECHO_T}$ac_cv_lib_ndbm_dbm_open" >&6
31622 if test $ac_cv_lib_ndbm_dbm_open = yes; then
31623   cat >>confdefs.h <<_ACEOF
31624 #define HAVE_LIBNDBM 1
31625 _ACEOF
31626
31627   LIBS="-lndbm $LIBS"
31628
31629 fi
31630
31631                 if test "$ac_cv_lib_ndbm_dbm_open" = yes; then
31632                     DB_HEADER=ndbm.h
31633                     DB_LIB=ndbm
31634                 else
31635                     DB_STYLE=
31636                     { echo "$as_me:$LINENO: WARNING: *** ndbm database library requested but -lndbm not found." >&5
31637 echo "$as_me: WARNING: *** ndbm database library requested but -lndbm not found." >&2;}
31638                 fi
31639             else
31640                 if test "$ac_cv_lib_c_dbm_open" = yes; then
31641                     DB_HEADER=ndbm.h
31642                     DB_LIB=c
31643                 else
31644                     DB_STYLE=
31645                     { echo "$as_me:$LINENO: WARNING: *** ndbm library requested but -lndbm doesn't exist and dbm_open cannot be found." >&5
31646 echo "$as_me: WARNING: *** ndbm library requested but -lndbm doesn't exist and dbm_open cannot be found." >&2;}
31647                 fi
31648             fi
31649         else
31650             DB_STYLE=
31651             { echo "$as_me:$LINENO: WARNING: *** ndbm database library requested but ndbm.h not found." >&5
31652 echo "$as_me: WARNING: *** ndbm database library requested but ndbm.h not found." >&2;}
31653         fi
31654         ;;
31655     text)
31656         DB_HEADER=
31657         DB_LIB=
31658         ;;
31659 esac
31660
31661
31662 if test -z "$DB_STYLE"; then
31663     DB_STYLE=text
31664     DB_HEADER=
31665     DB_LIB=
31666 fi
31667
31668
31669 if test "$DB_STYLE" = text; then
31670
31671 cat >>confdefs.h <<\_ACEOF
31672 #define TEXTDB 1
31673 _ACEOF
31674
31675 else
31676     echo "$as_me:$LINENO: checking for database" >&5
31677 echo $ECHO_N "checking for database... $ECHO_C" >&6
31678     echo "$as_me:$LINENO: result: header is $DB_HEADER, linking against -l$DB_LIB" >&5
31679 echo "${ECHO_T}header is $DB_HEADER, linking against -l$DB_LIB" >&6
31680     case "$DB_STYLE" in
31681         db)
31682 cat >>confdefs.h <<\_ACEOF
31683 #define USE_DB_H 1
31684 _ACEOF
31685    ;;
31686         dbm)
31687 cat >>confdefs.h <<\_ACEOF
31688 #define USE_DBM_H 1
31689 _ACEOF
31690   ;;
31691         gdbm)
31692 cat >>confdefs.h <<\_ACEOF
31693 #define USE_GDBM_H 1
31694 _ACEOF
31695  ;;
31696         ndbm)
31697 cat >>confdefs.h <<\_ACEOF
31698 #define USE_NDBM_H 1
31699 _ACEOF
31700  ;;
31701     esac
31702
31703     echo "$as_me:$LINENO: checking for struct datum declared in header files" >&5
31704 echo $ECHO_N "checking for struct datum declared in header files... $ECHO_C" >&6
31705 if test "${amanda_cv_struct_datum+set}" = set; then
31706   echo $ECHO_N "(cached) $ECHO_C" >&6
31707 else
31708
31709             cat >conftest.$ac_ext <<_ACEOF
31710 /* confdefs.h.  */
31711 _ACEOF
31712 cat confdefs.h >>conftest.$ac_ext
31713 cat >>conftest.$ac_ext <<_ACEOF
31714 /* end confdefs.h.  */
31715
31716 #if defined(USE_DB_H)
31717 #  include <db.h>
31718 #else
31719 #  if defined(USE_DBM_H)
31720 #    include <dbm.h>
31721 #  else
31722 #    if defined(USE_NDBM_H)
31723 #      include <ndbm.h>
31724 #    endif
31725 #  endif
31726 #endif
31727
31728 int
31729 main ()
31730 {
31731
31732                     datum a;
31733
31734   ;
31735   return 0;
31736 }
31737 _ACEOF
31738 rm -f conftest.$ac_objext
31739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31740   (eval $ac_compile) 2>conftest.er1
31741   ac_status=$?
31742   grep -v '^ *+' conftest.er1 >conftest.err
31743   rm -f conftest.er1
31744   cat conftest.err >&5
31745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31746   (exit $ac_status); } &&
31747          { ac_try='test -z "$ac_c_werror_flag"
31748                          || test ! -s conftest.err'
31749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31750   (eval $ac_try) 2>&5
31751   ac_status=$?
31752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31753   (exit $ac_status); }; } &&
31754          { ac_try='test -s conftest.$ac_objext'
31755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31756   (eval $ac_try) 2>&5
31757   ac_status=$?
31758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31759   (exit $ac_status); }; }; then
31760   amanda_cv_struct_datum=yes
31761 else
31762   echo "$as_me: failed program was:" >&5
31763 sed 's/^/| /' conftest.$ac_ext >&5
31764
31765 amanda_cv_struct_datum=no
31766
31767 fi
31768 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31769
31770 fi
31771 echo "$as_me:$LINENO: result: $amanda_cv_struct_datum" >&5
31772 echo "${ECHO_T}$amanda_cv_struct_datum" >&6
31773     if test "$amanda_cv_struct_datum" = yes; then
31774
31775 cat >>confdefs.h <<\_ACEOF
31776 #define HAVE_STRUCT_DATUM 1
31777 _ACEOF
31778
31779     fi
31780 fi
31781
31782 case "$DB_STYLE" in
31783     db) DB_EXT=.db;;
31784     gdbm) DB_EXT='""';;
31785     dbm | ndbm) DB_EXT=".dir .pag";;
31786     text) DB_EXT='""';;
31787     *) DB_EXT=;;
31788 esac
31789
31790
31791 echo "$as_me:$LINENO: checking whether _POSIX2_RE_DUP_MAX is defined" >&5
31792 echo $ECHO_N "checking whether _POSIX2_RE_DUP_MAX is defined... $ECHO_C" >&6
31793 if test "${amanda_cv_have__posix2_re_dup_max+set}" = set; then
31794   echo $ECHO_N "(cached) $ECHO_C" >&6
31795 else
31796   cat >conftest.$ac_ext <<_ACEOF
31797 /* confdefs.h.  */
31798 _ACEOF
31799 cat confdefs.h >>conftest.$ac_ext
31800 cat >>conftest.$ac_ext <<_ACEOF
31801 /* end confdefs.h.  */
31802
31803 #include <limits.h>
31804 #ifdef _POSIX2_RE_DUP_MAX
31805   yes
31806 #endif
31807
31808 _ACEOF
31809 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31810   $EGREP "yes" >/dev/null 2>&1; then
31811   amanda_cv_have__posix2_re_dup_max=yes
31812 else
31813   amanda_cv_have__posix2_re_dup_max=no
31814 fi
31815 rm -f conftest*
31816
31817 fi
31818 echo "$as_me:$LINENO: result: $amanda_cv_have__posix2_re_dup_max" >&5
31819 echo "${ECHO_T}$amanda_cv_have__posix2_re_dup_max" >&6
31820 if test "$amanda_cv_have__posix2_re_dup_max" = yes; then
31821
31822 cat >>confdefs.h <<\_ACEOF
31823 #define HAVE__POSIX2_RE_DUP_MAX 1
31824 _ACEOF
31825
31826 fi
31827
31828 echo "$as_me:$LINENO: checking whether CHAR_MIN is defined" >&5
31829 echo $ECHO_N "checking whether CHAR_MIN is defined... $ECHO_C" >&6
31830 if test "${amanda_cv_have_char_min+set}" = set; then
31831   echo $ECHO_N "(cached) $ECHO_C" >&6
31832 else
31833   cat >conftest.$ac_ext <<_ACEOF
31834 /* confdefs.h.  */
31835 _ACEOF
31836 cat confdefs.h >>conftest.$ac_ext
31837 cat >>conftest.$ac_ext <<_ACEOF
31838 /* end confdefs.h.  */
31839
31840 #include <limits.h>
31841 #ifdef CHAR_MIN
31842   yes
31843 #endif
31844
31845 _ACEOF
31846 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31847   $EGREP "yes" >/dev/null 2>&1; then
31848   amanda_cv_have_char_min=yes
31849 else
31850   amanda_cv_have_char_min=no
31851 fi
31852 rm -f conftest*
31853
31854 fi
31855 echo "$as_me:$LINENO: result: $amanda_cv_have_char_min" >&5
31856 echo "${ECHO_T}$amanda_cv_have_char_min" >&6
31857 if test "$amanda_cv_have_char_min" = yes; then
31858
31859 cat >>confdefs.h <<\_ACEOF
31860 #define HAVE_CHAR_MIN 1
31861 _ACEOF
31862
31863 fi
31864
31865 echo "$as_me:$LINENO: checking whether CHAR_MAX is defined" >&5
31866 echo $ECHO_N "checking whether CHAR_MAX is defined... $ECHO_C" >&6
31867 if test "${amanda_cv_have_char_max+set}" = set; then
31868   echo $ECHO_N "(cached) $ECHO_C" >&6
31869 else
31870   cat >conftest.$ac_ext <<_ACEOF
31871 /* confdefs.h.  */
31872 _ACEOF
31873 cat confdefs.h >>conftest.$ac_ext
31874 cat >>conftest.$ac_ext <<_ACEOF
31875 /* end confdefs.h.  */
31876
31877 #include <limits.h>
31878 #ifdef CHAR_MAX
31879   yes
31880 #endif
31881
31882 _ACEOF
31883 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31884   $EGREP "yes" >/dev/null 2>&1; then
31885   amanda_cv_have_char_max=yes
31886 else
31887   amanda_cv_have_char_max=no
31888 fi
31889 rm -f conftest*
31890
31891 fi
31892 echo "$as_me:$LINENO: result: $amanda_cv_have_char_max" >&5
31893 echo "${ECHO_T}$amanda_cv_have_char_max" >&6
31894 if test "$amanda_cv_have_char_max" = yes; then
31895
31896 cat >>confdefs.h <<\_ACEOF
31897 #define HAVE_CHAR_MAX 1
31898 _ACEOF
31899
31900 fi
31901
31902 echo "$as_me:$LINENO: checking whether CHAR_BIT is defined" >&5
31903 echo $ECHO_N "checking whether CHAR_BIT is defined... $ECHO_C" >&6
31904 if test "${amanda_cv_have_char_bit+set}" = set; then
31905   echo $ECHO_N "(cached) $ECHO_C" >&6
31906 else
31907   cat >conftest.$ac_ext <<_ACEOF
31908 /* confdefs.h.  */
31909 _ACEOF
31910 cat confdefs.h >>conftest.$ac_ext
31911 cat >>conftest.$ac_ext <<_ACEOF
31912 /* end confdefs.h.  */
31913
31914 #include <limits.h>
31915 #ifdef CHAR_BIT
31916   yes
31917 #endif
31918
31919 _ACEOF
31920 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31921   $EGREP "yes" >/dev/null 2>&1; then
31922   amanda_cv_have_char_bit=yes
31923 else
31924   amanda_cv_have_char_bit=no
31925 fi
31926 rm -f conftest*
31927
31928 fi
31929 echo "$as_me:$LINENO: result: $amanda_cv_have_char_bit" >&5
31930 echo "${ECHO_T}$amanda_cv_have_char_bit" >&6
31931 if test "$amanda_cv_have_char_bit" = yes; then
31932
31933 cat >>confdefs.h <<\_ACEOF
31934 #define HAVE_CHAR_BIT 1
31935 _ACEOF
31936
31937 fi
31938
31939
31940 ice_have_accept=no
31941
31942 for ac_func in accept
31943 do
31944 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31945 echo "$as_me:$LINENO: checking for $ac_func" >&5
31946 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31947 if eval "test \"\${$as_ac_var+set}\" = set"; then
31948   echo $ECHO_N "(cached) $ECHO_C" >&6
31949 else
31950   cat >conftest.$ac_ext <<_ACEOF
31951 /* confdefs.h.  */
31952 _ACEOF
31953 cat confdefs.h >>conftest.$ac_ext
31954 cat >>conftest.$ac_ext <<_ACEOF
31955 /* end confdefs.h.  */
31956 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31957    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31958 #define $ac_func innocuous_$ac_func
31959
31960 /* System header to define __stub macros and hopefully few prototypes,
31961     which can conflict with char $ac_func (); below.
31962     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31963     <limits.h> exists even on freestanding compilers.  */
31964
31965 #ifdef __STDC__
31966 # include <limits.h>
31967 #else
31968 # include <assert.h>
31969 #endif
31970
31971 #undef $ac_func
31972
31973 /* Override any gcc2 internal prototype to avoid an error.  */
31974 #ifdef __cplusplus
31975 extern "C"
31976 {
31977 #endif
31978 /* We use char because int might match the return type of a gcc2
31979    builtin and then its argument prototype would still apply.  */
31980 char $ac_func ();
31981 /* The GNU C library defines this for functions which it implements
31982     to always fail with ENOSYS.  Some functions are actually named
31983     something starting with __ and the normal name is an alias.  */
31984 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31985 choke me
31986 #else
31987 char (*f) () = $ac_func;
31988 #endif
31989 #ifdef __cplusplus
31990 }
31991 #endif
31992
31993 int
31994 main ()
31995 {
31996 return f != $ac_func;
31997   ;
31998   return 0;
31999 }
32000 _ACEOF
32001 rm -f conftest.$ac_objext conftest$ac_exeext
32002 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32003   (eval $ac_link) 2>conftest.er1
32004   ac_status=$?
32005   grep -v '^ *+' conftest.er1 >conftest.err
32006   rm -f conftest.er1
32007   cat conftest.err >&5
32008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32009   (exit $ac_status); } &&
32010          { ac_try='test -z "$ac_c_werror_flag"
32011                          || test ! -s conftest.err'
32012   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32013   (eval $ac_try) 2>&5
32014   ac_status=$?
32015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32016   (exit $ac_status); }; } &&
32017          { ac_try='test -s conftest$ac_exeext'
32018   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32019   (eval $ac_try) 2>&5
32020   ac_status=$?
32021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32022   (exit $ac_status); }; }; then
32023   eval "$as_ac_var=yes"
32024 else
32025   echo "$as_me: failed program was:" >&5
32026 sed 's/^/| /' conftest.$ac_ext >&5
32027
32028 eval "$as_ac_var=no"
32029 fi
32030 rm -f conftest.err conftest.$ac_objext \
32031       conftest$ac_exeext conftest.$ac_ext
32032 fi
32033 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32034 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32035 if test `eval echo '${'$as_ac_var'}'` = yes; then
32036   cat >>confdefs.h <<_ACEOF
32037 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32038 _ACEOF
32039  ice_have_accept=yes
32040 fi
32041 done
32042
32043 if test "${ice_have_accept}" = yes; then
32044 echo "$as_me:$LINENO: checking for accept declaration in sys/types.h sys/socket.h" >&5
32045 echo $ECHO_N "checking for accept declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
32046 if test "${ice_cv_have_accept_decl+set}" = set; then
32047   echo $ECHO_N "(cached) $ECHO_C" >&6
32048 else
32049
32050 ice_cv_have_accept_decl=no
32051 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
32052 ice_re_word='(^|[^a-zA-Z0-9_])'
32053 for header in sys/types.h sys/socket.h; do
32054 # Check for ordinary declaration
32055 cat >conftest.$ac_ext <<_ACEOF
32056 /* confdefs.h.  */
32057 _ACEOF
32058 cat confdefs.h >>conftest.$ac_ext
32059 cat >>conftest.$ac_ext <<_ACEOF
32060 /* end confdefs.h.  */
32061 #include <$header>
32062
32063 _ACEOF
32064 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32065   $EGREP "${ice_re_word}accept[         ]*\(" >/dev/null 2>&1; then
32066   ice_cv_have_accept_decl=yes
32067 fi
32068 rm -f conftest*
32069
32070 if test "$ice_cv_have_accept_decl" = yes; then
32071         break
32072 fi
32073 # Check for "fixed" declaration like "getpid _PARAMS((int))"
32074 cat >conftest.$ac_ext <<_ACEOF
32075 /* confdefs.h.  */
32076 _ACEOF
32077 cat confdefs.h >>conftest.$ac_ext
32078 cat >>conftest.$ac_ext <<_ACEOF
32079 /* end confdefs.h.  */
32080 #include <$header>
32081
32082 _ACEOF
32083 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32084   $EGREP "${ice_re_word}accept[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
32085   ice_cv_have_accept_decl=yes
32086 fi
32087 rm -f conftest*
32088
32089 if test "$ice_cv_have_accept_decl" = yes; then
32090         break
32091 fi
32092 done
32093
32094 fi
32095
32096 echo "$as_me:$LINENO: result: $ice_cv_have_accept_decl" >&5
32097 echo "${ECHO_T}$ice_cv_have_accept_decl" >&6
32098 if test "$ice_cv_have_accept_decl" = yes; then
32099
32100 cat >>confdefs.h <<_ACEOF
32101 #define HAVE_ACCEPT_DECL 1
32102 _ACEOF
32103
32104 fi
32105 fi
32106
32107 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
32108 # for constant arguments.  Useless!
32109 echo "$as_me:$LINENO: checking for working alloca.h" >&5
32110 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
32111 if test "${ac_cv_working_alloca_h+set}" = set; then
32112   echo $ECHO_N "(cached) $ECHO_C" >&6
32113 else
32114   cat >conftest.$ac_ext <<_ACEOF
32115 /* confdefs.h.  */
32116 _ACEOF
32117 cat confdefs.h >>conftest.$ac_ext
32118 cat >>conftest.$ac_ext <<_ACEOF
32119 /* end confdefs.h.  */
32120 #include <alloca.h>
32121 int
32122 main ()
32123 {
32124 char *p = (char *) alloca (2 * sizeof (int));
32125   ;
32126   return 0;
32127 }
32128 _ACEOF
32129 rm -f conftest.$ac_objext conftest$ac_exeext
32130 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32131   (eval $ac_link) 2>conftest.er1
32132   ac_status=$?
32133   grep -v '^ *+' conftest.er1 >conftest.err
32134   rm -f conftest.er1
32135   cat conftest.err >&5
32136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32137   (exit $ac_status); } &&
32138          { ac_try='test -z "$ac_c_werror_flag"
32139                          || test ! -s conftest.err'
32140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32141   (eval $ac_try) 2>&5
32142   ac_status=$?
32143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32144   (exit $ac_status); }; } &&
32145          { ac_try='test -s conftest$ac_exeext'
32146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32147   (eval $ac_try) 2>&5
32148   ac_status=$?
32149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32150   (exit $ac_status); }; }; then
32151   ac_cv_working_alloca_h=yes
32152 else
32153   echo "$as_me: failed program was:" >&5
32154 sed 's/^/| /' conftest.$ac_ext >&5
32155
32156 ac_cv_working_alloca_h=no
32157 fi
32158 rm -f conftest.err conftest.$ac_objext \
32159       conftest$ac_exeext conftest.$ac_ext
32160 fi
32161 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
32162 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
32163 if test $ac_cv_working_alloca_h = yes; then
32164
32165 cat >>confdefs.h <<\_ACEOF
32166 #define HAVE_ALLOCA_H 1
32167 _ACEOF
32168
32169 fi
32170
32171 echo "$as_me:$LINENO: checking for alloca" >&5
32172 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
32173 if test "${ac_cv_func_alloca_works+set}" = set; then
32174   echo $ECHO_N "(cached) $ECHO_C" >&6
32175 else
32176   cat >conftest.$ac_ext <<_ACEOF
32177 /* confdefs.h.  */
32178 _ACEOF
32179 cat confdefs.h >>conftest.$ac_ext
32180 cat >>conftest.$ac_ext <<_ACEOF
32181 /* end confdefs.h.  */
32182 #ifdef __GNUC__
32183 # define alloca __builtin_alloca
32184 #else
32185 # ifdef _MSC_VER
32186 #  include <malloc.h>
32187 #  define alloca _alloca
32188 # else
32189 #  if HAVE_ALLOCA_H
32190 #   include <alloca.h>
32191 #  else
32192 #   ifdef _AIX
32193  #pragma alloca
32194 #   else
32195 #    ifndef alloca /* predefined by HP cc +Olibcalls */
32196 char *alloca ();
32197 #    endif
32198 #   endif
32199 #  endif
32200 # endif
32201 #endif
32202
32203 int
32204 main ()
32205 {
32206 char *p = (char *) alloca (1);
32207   ;
32208   return 0;
32209 }
32210 _ACEOF
32211 rm -f conftest.$ac_objext conftest$ac_exeext
32212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32213   (eval $ac_link) 2>conftest.er1
32214   ac_status=$?
32215   grep -v '^ *+' conftest.er1 >conftest.err
32216   rm -f conftest.er1
32217   cat conftest.err >&5
32218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32219   (exit $ac_status); } &&
32220          { ac_try='test -z "$ac_c_werror_flag"
32221                          || test ! -s conftest.err'
32222   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32223   (eval $ac_try) 2>&5
32224   ac_status=$?
32225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32226   (exit $ac_status); }; } &&
32227          { ac_try='test -s conftest$ac_exeext'
32228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32229   (eval $ac_try) 2>&5
32230   ac_status=$?
32231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32232   (exit $ac_status); }; }; then
32233   ac_cv_func_alloca_works=yes
32234 else
32235   echo "$as_me: failed program was:" >&5
32236 sed 's/^/| /' conftest.$ac_ext >&5
32237
32238 ac_cv_func_alloca_works=no
32239 fi
32240 rm -f conftest.err conftest.$ac_objext \
32241       conftest$ac_exeext conftest.$ac_ext
32242 fi
32243 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
32244 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
32245
32246 if test $ac_cv_func_alloca_works = yes; then
32247
32248 cat >>confdefs.h <<\_ACEOF
32249 #define HAVE_ALLOCA 1
32250 _ACEOF
32251
32252 else
32253   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
32254 # that cause trouble.  Some versions do not even contain alloca or
32255 # contain a buggy version.  If you still want to use their alloca,
32256 # use ar to extract alloca.o from them instead of compiling alloca.c.
32257
32258 ALLOCA=alloca.$ac_objext
32259
32260 cat >>confdefs.h <<\_ACEOF
32261 #define C_ALLOCA 1
32262 _ACEOF
32263
32264
32265 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
32266 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
32267 if test "${ac_cv_os_cray+set}" = set; then
32268   echo $ECHO_N "(cached) $ECHO_C" >&6
32269 else
32270   cat >conftest.$ac_ext <<_ACEOF
32271 /* confdefs.h.  */
32272 _ACEOF
32273 cat confdefs.h >>conftest.$ac_ext
32274 cat >>conftest.$ac_ext <<_ACEOF
32275 /* end confdefs.h.  */
32276 #if defined(CRAY) && ! defined(CRAY2)
32277 webecray
32278 #else
32279 wenotbecray
32280 #endif
32281
32282 _ACEOF
32283 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32284   $EGREP "webecray" >/dev/null 2>&1; then
32285   ac_cv_os_cray=yes
32286 else
32287   ac_cv_os_cray=no
32288 fi
32289 rm -f conftest*
32290
32291 fi
32292 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
32293 echo "${ECHO_T}$ac_cv_os_cray" >&6
32294 if test $ac_cv_os_cray = yes; then
32295   for ac_func in _getb67 GETB67 getb67; do
32296     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32297 echo "$as_me:$LINENO: checking for $ac_func" >&5
32298 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32299 if eval "test \"\${$as_ac_var+set}\" = set"; then
32300   echo $ECHO_N "(cached) $ECHO_C" >&6
32301 else
32302   cat >conftest.$ac_ext <<_ACEOF
32303 /* confdefs.h.  */
32304 _ACEOF
32305 cat confdefs.h >>conftest.$ac_ext
32306 cat >>conftest.$ac_ext <<_ACEOF
32307 /* end confdefs.h.  */
32308 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32309    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32310 #define $ac_func innocuous_$ac_func
32311
32312 /* System header to define __stub macros and hopefully few prototypes,
32313     which can conflict with char $ac_func (); below.
32314     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32315     <limits.h> exists even on freestanding compilers.  */
32316
32317 #ifdef __STDC__
32318 # include <limits.h>
32319 #else
32320 # include <assert.h>
32321 #endif
32322
32323 #undef $ac_func
32324
32325 /* Override any gcc2 internal prototype to avoid an error.  */
32326 #ifdef __cplusplus
32327 extern "C"
32328 {
32329 #endif
32330 /* We use char because int might match the return type of a gcc2
32331    builtin and then its argument prototype would still apply.  */
32332 char $ac_func ();
32333 /* The GNU C library defines this for functions which it implements
32334     to always fail with ENOSYS.  Some functions are actually named
32335     something starting with __ and the normal name is an alias.  */
32336 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32337 choke me
32338 #else
32339 char (*f) () = $ac_func;
32340 #endif
32341 #ifdef __cplusplus
32342 }
32343 #endif
32344
32345 int
32346 main ()
32347 {
32348 return f != $ac_func;
32349   ;
32350   return 0;
32351 }
32352 _ACEOF
32353 rm -f conftest.$ac_objext conftest$ac_exeext
32354 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32355   (eval $ac_link) 2>conftest.er1
32356   ac_status=$?
32357   grep -v '^ *+' conftest.er1 >conftest.err
32358   rm -f conftest.er1
32359   cat conftest.err >&5
32360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32361   (exit $ac_status); } &&
32362          { ac_try='test -z "$ac_c_werror_flag"
32363                          || test ! -s conftest.err'
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); }; } &&
32369          { ac_try='test -s conftest$ac_exeext'
32370   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32371   (eval $ac_try) 2>&5
32372   ac_status=$?
32373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32374   (exit $ac_status); }; }; then
32375   eval "$as_ac_var=yes"
32376 else
32377   echo "$as_me: failed program was:" >&5
32378 sed 's/^/| /' conftest.$ac_ext >&5
32379
32380 eval "$as_ac_var=no"
32381 fi
32382 rm -f conftest.err conftest.$ac_objext \
32383       conftest$ac_exeext conftest.$ac_ext
32384 fi
32385 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32386 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32387 if test `eval echo '${'$as_ac_var'}'` = yes; then
32388
32389 cat >>confdefs.h <<_ACEOF
32390 #define CRAY_STACKSEG_END $ac_func
32391 _ACEOF
32392
32393     break
32394 fi
32395
32396   done
32397 fi
32398
32399 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
32400 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
32401 if test "${ac_cv_c_stack_direction+set}" = set; then
32402   echo $ECHO_N "(cached) $ECHO_C" >&6
32403 else
32404   if test "$cross_compiling" = yes; then
32405   ac_cv_c_stack_direction=0
32406 else
32407   cat >conftest.$ac_ext <<_ACEOF
32408 /* confdefs.h.  */
32409 _ACEOF
32410 cat confdefs.h >>conftest.$ac_ext
32411 cat >>conftest.$ac_ext <<_ACEOF
32412 /* end confdefs.h.  */
32413 int
32414 find_stack_direction ()
32415 {
32416   static char *addr = 0;
32417   auto char dummy;
32418   if (addr == 0)
32419     {
32420       addr = &dummy;
32421       return find_stack_direction ();
32422     }
32423   else
32424     return (&dummy > addr) ? 1 : -1;
32425 }
32426
32427 int
32428 main ()
32429 {
32430   exit (find_stack_direction () < 0);
32431 }
32432 _ACEOF
32433 rm -f conftest$ac_exeext
32434 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32435   (eval $ac_link) 2>&5
32436   ac_status=$?
32437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32438   (exit $ac_status); } && { ac_try='./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_c_stack_direction=1
32445 else
32446   echo "$as_me: program exited with status $ac_status" >&5
32447 echo "$as_me: failed program was:" >&5
32448 sed 's/^/| /' conftest.$ac_ext >&5
32449
32450 ( exit $ac_status )
32451 ac_cv_c_stack_direction=-1
32452 fi
32453 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32454 fi
32455 fi
32456 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
32457 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
32458
32459 cat >>confdefs.h <<_ACEOF
32460 #define STACK_DIRECTION $ac_cv_c_stack_direction
32461 _ACEOF
32462
32463
32464 fi
32465
32466
32467 for ac_func in atexit
32468 do
32469 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32470 echo "$as_me:$LINENO: checking for $ac_func" >&5
32471 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32472 if eval "test \"\${$as_ac_var+set}\" = set"; then
32473   echo $ECHO_N "(cached) $ECHO_C" >&6
32474 else
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 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32482    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32483 #define $ac_func innocuous_$ac_func
32484
32485 /* System header to define __stub macros and hopefully few prototypes,
32486     which can conflict with char $ac_func (); below.
32487     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32488     <limits.h> exists even on freestanding compilers.  */
32489
32490 #ifdef __STDC__
32491 # include <limits.h>
32492 #else
32493 # include <assert.h>
32494 #endif
32495
32496 #undef $ac_func
32497
32498 /* Override any gcc2 internal prototype to avoid an error.  */
32499 #ifdef __cplusplus
32500 extern "C"
32501 {
32502 #endif
32503 /* We use char because int might match the return type of a gcc2
32504    builtin and then its argument prototype would still apply.  */
32505 char $ac_func ();
32506 /* The GNU C library defines this for functions which it implements
32507     to always fail with ENOSYS.  Some functions are actually named
32508     something starting with __ and the normal name is an alias.  */
32509 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32510 choke me
32511 #else
32512 char (*f) () = $ac_func;
32513 #endif
32514 #ifdef __cplusplus
32515 }
32516 #endif
32517
32518 int
32519 main ()
32520 {
32521 return f != $ac_func;
32522   ;
32523   return 0;
32524 }
32525 _ACEOF
32526 rm -f conftest.$ac_objext conftest$ac_exeext
32527 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32528   (eval $ac_link) 2>conftest.er1
32529   ac_status=$?
32530   grep -v '^ *+' conftest.er1 >conftest.err
32531   rm -f conftest.er1
32532   cat conftest.err >&5
32533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32534   (exit $ac_status); } &&
32535          { ac_try='test -z "$ac_c_werror_flag"
32536                          || test ! -s conftest.err'
32537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32538   (eval $ac_try) 2>&5
32539   ac_status=$?
32540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32541   (exit $ac_status); }; } &&
32542          { ac_try='test -s conftest$ac_exeext'
32543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32544   (eval $ac_try) 2>&5
32545   ac_status=$?
32546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32547   (exit $ac_status); }; }; then
32548   eval "$as_ac_var=yes"
32549 else
32550   echo "$as_me: failed program was:" >&5
32551 sed 's/^/| /' conftest.$ac_ext >&5
32552
32553 eval "$as_ac_var=no"
32554 fi
32555 rm -f conftest.err conftest.$ac_objext \
32556       conftest$ac_exeext conftest.$ac_ext
32557 fi
32558 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32559 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32560 if test `eval echo '${'$as_ac_var'}'` = yes; then
32561   cat >>confdefs.h <<_ACEOF
32562 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32563 _ACEOF
32564
32565 fi
32566 done
32567
32568
32569 ice_have_atof=no
32570
32571 for ac_func in atof
32572 do
32573 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32574 echo "$as_me:$LINENO: checking for $ac_func" >&5
32575 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32576 if eval "test \"\${$as_ac_var+set}\" = set"; then
32577   echo $ECHO_N "(cached) $ECHO_C" >&6
32578 else
32579   cat >conftest.$ac_ext <<_ACEOF
32580 /* confdefs.h.  */
32581 _ACEOF
32582 cat confdefs.h >>conftest.$ac_ext
32583 cat >>conftest.$ac_ext <<_ACEOF
32584 /* end confdefs.h.  */
32585 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32586    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32587 #define $ac_func innocuous_$ac_func
32588
32589 /* System header to define __stub macros and hopefully few prototypes,
32590     which can conflict with char $ac_func (); below.
32591     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32592     <limits.h> exists even on freestanding compilers.  */
32593
32594 #ifdef __STDC__
32595 # include <limits.h>
32596 #else
32597 # include <assert.h>
32598 #endif
32599
32600 #undef $ac_func
32601
32602 /* Override any gcc2 internal prototype to avoid an error.  */
32603 #ifdef __cplusplus
32604 extern "C"
32605 {
32606 #endif
32607 /* We use char because int might match the return type of a gcc2
32608    builtin and then its argument prototype would still apply.  */
32609 char $ac_func ();
32610 /* The GNU C library defines this for functions which it implements
32611     to always fail with ENOSYS.  Some functions are actually named
32612     something starting with __ and the normal name is an alias.  */
32613 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32614 choke me
32615 #else
32616 char (*f) () = $ac_func;
32617 #endif
32618 #ifdef __cplusplus
32619 }
32620 #endif
32621
32622 int
32623 main ()
32624 {
32625 return f != $ac_func;
32626   ;
32627   return 0;
32628 }
32629 _ACEOF
32630 rm -f conftest.$ac_objext conftest$ac_exeext
32631 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32632   (eval $ac_link) 2>conftest.er1
32633   ac_status=$?
32634   grep -v '^ *+' conftest.er1 >conftest.err
32635   rm -f conftest.er1
32636   cat conftest.err >&5
32637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32638   (exit $ac_status); } &&
32639          { ac_try='test -z "$ac_c_werror_flag"
32640                          || test ! -s conftest.err'
32641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32642   (eval $ac_try) 2>&5
32643   ac_status=$?
32644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32645   (exit $ac_status); }; } &&
32646          { ac_try='test -s conftest$ac_exeext'
32647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32648   (eval $ac_try) 2>&5
32649   ac_status=$?
32650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32651   (exit $ac_status); }; }; then
32652   eval "$as_ac_var=yes"
32653 else
32654   echo "$as_me: failed program was:" >&5
32655 sed 's/^/| /' conftest.$ac_ext >&5
32656
32657 eval "$as_ac_var=no"
32658 fi
32659 rm -f conftest.err conftest.$ac_objext \
32660       conftest$ac_exeext conftest.$ac_ext
32661 fi
32662 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32663 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32664 if test `eval echo '${'$as_ac_var'}'` = yes; then
32665   cat >>confdefs.h <<_ACEOF
32666 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32667 _ACEOF
32668  ice_have_atof=yes
32669 fi
32670 done
32671
32672 if test "${ice_have_atof}" = yes; then
32673 echo "$as_me:$LINENO: checking for atof declaration in stdlib.h" >&5
32674 echo $ECHO_N "checking for atof declaration in stdlib.h... $ECHO_C" >&6
32675 if test "${ice_cv_have_atof_decl+set}" = set; then
32676   echo $ECHO_N "(cached) $ECHO_C" >&6
32677 else
32678
32679 ice_cv_have_atof_decl=no
32680 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
32681 ice_re_word='(^|[^a-zA-Z0-9_])'
32682 for header in stdlib.h; do
32683 # Check for ordinary declaration
32684 cat >conftest.$ac_ext <<_ACEOF
32685 /* confdefs.h.  */
32686 _ACEOF
32687 cat confdefs.h >>conftest.$ac_ext
32688 cat >>conftest.$ac_ext <<_ACEOF
32689 /* end confdefs.h.  */
32690 #include <$header>
32691
32692 _ACEOF
32693 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32694   $EGREP "${ice_re_word}atof[   ]*\(" >/dev/null 2>&1; then
32695   ice_cv_have_atof_decl=yes
32696 fi
32697 rm -f conftest*
32698
32699 if test "$ice_cv_have_atof_decl" = yes; then
32700         break
32701 fi
32702 # Check for "fixed" declaration like "getpid _PARAMS((int))"
32703 cat >conftest.$ac_ext <<_ACEOF
32704 /* confdefs.h.  */
32705 _ACEOF
32706 cat confdefs.h >>conftest.$ac_ext
32707 cat >>conftest.$ac_ext <<_ACEOF
32708 /* end confdefs.h.  */
32709 #include <$header>
32710
32711 _ACEOF
32712 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32713   $EGREP "${ice_re_word}atof[   ]*$ice_re_params\(\(" >/dev/null 2>&1; then
32714   ice_cv_have_atof_decl=yes
32715 fi
32716 rm -f conftest*
32717
32718 if test "$ice_cv_have_atof_decl" = yes; then
32719         break
32720 fi
32721 done
32722
32723 fi
32724
32725 echo "$as_me:$LINENO: result: $ice_cv_have_atof_decl" >&5
32726 echo "${ECHO_T}$ice_cv_have_atof_decl" >&6
32727 if test "$ice_cv_have_atof_decl" = yes; then
32728
32729 cat >>confdefs.h <<_ACEOF
32730 #define HAVE_ATOF_DECL 1
32731 _ACEOF
32732
32733 fi
32734 fi
32735
32736
32737 for ac_func in basename
32738 do
32739 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32740 echo "$as_me:$LINENO: checking for $ac_func" >&5
32741 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32742 if eval "test \"\${$as_ac_var+set}\" = set"; then
32743   echo $ECHO_N "(cached) $ECHO_C" >&6
32744 else
32745   cat >conftest.$ac_ext <<_ACEOF
32746 /* confdefs.h.  */
32747 _ACEOF
32748 cat confdefs.h >>conftest.$ac_ext
32749 cat >>conftest.$ac_ext <<_ACEOF
32750 /* end confdefs.h.  */
32751 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32752    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32753 #define $ac_func innocuous_$ac_func
32754
32755 /* System header to define __stub macros and hopefully few prototypes,
32756     which can conflict with char $ac_func (); below.
32757     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32758     <limits.h> exists even on freestanding compilers.  */
32759
32760 #ifdef __STDC__
32761 # include <limits.h>
32762 #else
32763 # include <assert.h>
32764 #endif
32765
32766 #undef $ac_func
32767
32768 /* Override any gcc2 internal prototype to avoid an error.  */
32769 #ifdef __cplusplus
32770 extern "C"
32771 {
32772 #endif
32773 /* We use char because int might match the return type of a gcc2
32774    builtin and then its argument prototype would still apply.  */
32775 char $ac_func ();
32776 /* The GNU C library defines this for functions which it implements
32777     to always fail with ENOSYS.  Some functions are actually named
32778     something starting with __ and the normal name is an alias.  */
32779 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32780 choke me
32781 #else
32782 char (*f) () = $ac_func;
32783 #endif
32784 #ifdef __cplusplus
32785 }
32786 #endif
32787
32788 int
32789 main ()
32790 {
32791 return f != $ac_func;
32792   ;
32793   return 0;
32794 }
32795 _ACEOF
32796 rm -f conftest.$ac_objext conftest$ac_exeext
32797 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32798   (eval $ac_link) 2>conftest.er1
32799   ac_status=$?
32800   grep -v '^ *+' conftest.er1 >conftest.err
32801   rm -f conftest.er1
32802   cat conftest.err >&5
32803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32804   (exit $ac_status); } &&
32805          { ac_try='test -z "$ac_c_werror_flag"
32806                          || test ! -s conftest.err'
32807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32808   (eval $ac_try) 2>&5
32809   ac_status=$?
32810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32811   (exit $ac_status); }; } &&
32812          { ac_try='test -s conftest$ac_exeext'
32813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32814   (eval $ac_try) 2>&5
32815   ac_status=$?
32816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32817   (exit $ac_status); }; }; then
32818   eval "$as_ac_var=yes"
32819 else
32820   echo "$as_me: failed program was:" >&5
32821 sed 's/^/| /' conftest.$ac_ext >&5
32822
32823 eval "$as_ac_var=no"
32824 fi
32825 rm -f conftest.err conftest.$ac_objext \
32826       conftest$ac_exeext conftest.$ac_ext
32827 fi
32828 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32829 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32830 if test `eval echo '${'$as_ac_var'}'` = yes; then
32831   cat >>confdefs.h <<_ACEOF
32832 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32833 _ACEOF
32834
32835 fi
32836 done
32837
32838
32839 ice_have_bind=no
32840
32841 for ac_func in bind
32842 do
32843 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32844 echo "$as_me:$LINENO: checking for $ac_func" >&5
32845 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32846 if eval "test \"\${$as_ac_var+set}\" = set"; then
32847   echo $ECHO_N "(cached) $ECHO_C" >&6
32848 else
32849   cat >conftest.$ac_ext <<_ACEOF
32850 /* confdefs.h.  */
32851 _ACEOF
32852 cat confdefs.h >>conftest.$ac_ext
32853 cat >>conftest.$ac_ext <<_ACEOF
32854 /* end confdefs.h.  */
32855 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32856    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32857 #define $ac_func innocuous_$ac_func
32858
32859 /* System header to define __stub macros and hopefully few prototypes,
32860     which can conflict with char $ac_func (); below.
32861     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32862     <limits.h> exists even on freestanding compilers.  */
32863
32864 #ifdef __STDC__
32865 # include <limits.h>
32866 #else
32867 # include <assert.h>
32868 #endif
32869
32870 #undef $ac_func
32871
32872 /* Override any gcc2 internal prototype to avoid an error.  */
32873 #ifdef __cplusplus
32874 extern "C"
32875 {
32876 #endif
32877 /* We use char because int might match the return type of a gcc2
32878    builtin and then its argument prototype would still apply.  */
32879 char $ac_func ();
32880 /* The GNU C library defines this for functions which it implements
32881     to always fail with ENOSYS.  Some functions are actually named
32882     something starting with __ and the normal name is an alias.  */
32883 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32884 choke me
32885 #else
32886 char (*f) () = $ac_func;
32887 #endif
32888 #ifdef __cplusplus
32889 }
32890 #endif
32891
32892 int
32893 main ()
32894 {
32895 return f != $ac_func;
32896   ;
32897   return 0;
32898 }
32899 _ACEOF
32900 rm -f conftest.$ac_objext conftest$ac_exeext
32901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32902   (eval $ac_link) 2>conftest.er1
32903   ac_status=$?
32904   grep -v '^ *+' conftest.er1 >conftest.err
32905   rm -f conftest.er1
32906   cat conftest.err >&5
32907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32908   (exit $ac_status); } &&
32909          { ac_try='test -z "$ac_c_werror_flag"
32910                          || test ! -s conftest.err'
32911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32912   (eval $ac_try) 2>&5
32913   ac_status=$?
32914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32915   (exit $ac_status); }; } &&
32916          { ac_try='test -s conftest$ac_exeext'
32917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32918   (eval $ac_try) 2>&5
32919   ac_status=$?
32920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32921   (exit $ac_status); }; }; then
32922   eval "$as_ac_var=yes"
32923 else
32924   echo "$as_me: failed program was:" >&5
32925 sed 's/^/| /' conftest.$ac_ext >&5
32926
32927 eval "$as_ac_var=no"
32928 fi
32929 rm -f conftest.err conftest.$ac_objext \
32930       conftest$ac_exeext conftest.$ac_ext
32931 fi
32932 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32933 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32934 if test `eval echo '${'$as_ac_var'}'` = yes; then
32935   cat >>confdefs.h <<_ACEOF
32936 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32937 _ACEOF
32938  ice_have_bind=yes
32939 fi
32940 done
32941
32942 if test "${ice_have_bind}" = yes; then
32943 echo "$as_me:$LINENO: checking for bind declaration in sys/types.h sys/socket.h" >&5
32944 echo $ECHO_N "checking for bind declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
32945 if test "${ice_cv_have_bind_decl+set}" = set; then
32946   echo $ECHO_N "(cached) $ECHO_C" >&6
32947 else
32948
32949 ice_cv_have_bind_decl=no
32950 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
32951 ice_re_word='(^|[^a-zA-Z0-9_])'
32952 for header in sys/types.h sys/socket.h; do
32953 # Check for ordinary declaration
32954 cat >conftest.$ac_ext <<_ACEOF
32955 /* confdefs.h.  */
32956 _ACEOF
32957 cat confdefs.h >>conftest.$ac_ext
32958 cat >>conftest.$ac_ext <<_ACEOF
32959 /* end confdefs.h.  */
32960 #include <$header>
32961
32962 _ACEOF
32963 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32964   $EGREP "${ice_re_word}bind[   ]*\(" >/dev/null 2>&1; then
32965   ice_cv_have_bind_decl=yes
32966 fi
32967 rm -f conftest*
32968
32969 if test "$ice_cv_have_bind_decl" = yes; then
32970         break
32971 fi
32972 # Check for "fixed" declaration like "getpid _PARAMS((int))"
32973 cat >conftest.$ac_ext <<_ACEOF
32974 /* confdefs.h.  */
32975 _ACEOF
32976 cat confdefs.h >>conftest.$ac_ext
32977 cat >>conftest.$ac_ext <<_ACEOF
32978 /* end confdefs.h.  */
32979 #include <$header>
32980
32981 _ACEOF
32982 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32983   $EGREP "${ice_re_word}bind[   ]*$ice_re_params\(\(" >/dev/null 2>&1; then
32984   ice_cv_have_bind_decl=yes
32985 fi
32986 rm -f conftest*
32987
32988 if test "$ice_cv_have_bind_decl" = yes; then
32989         break
32990 fi
32991 done
32992
32993 fi
32994
32995 echo "$as_me:$LINENO: result: $ice_cv_have_bind_decl" >&5
32996 echo "${ECHO_T}$ice_cv_have_bind_decl" >&6
32997 if test "$ice_cv_have_bind_decl" = yes; then
32998
32999 cat >>confdefs.h <<_ACEOF
33000 #define HAVE_BIND_DECL 1
33001 _ACEOF
33002
33003 fi
33004 fi
33005
33006
33007 ice_have_bcopy=no
33008
33009 for ac_func in bcopy
33010 do
33011 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33012 echo "$as_me:$LINENO: checking for $ac_func" >&5
33013 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33014 if eval "test \"\${$as_ac_var+set}\" = set"; then
33015   echo $ECHO_N "(cached) $ECHO_C" >&6
33016 else
33017   cat >conftest.$ac_ext <<_ACEOF
33018 /* confdefs.h.  */
33019 _ACEOF
33020 cat confdefs.h >>conftest.$ac_ext
33021 cat >>conftest.$ac_ext <<_ACEOF
33022 /* end confdefs.h.  */
33023 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33024    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33025 #define $ac_func innocuous_$ac_func
33026
33027 /* System header to define __stub macros and hopefully few prototypes,
33028     which can conflict with char $ac_func (); below.
33029     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33030     <limits.h> exists even on freestanding compilers.  */
33031
33032 #ifdef __STDC__
33033 # include <limits.h>
33034 #else
33035 # include <assert.h>
33036 #endif
33037
33038 #undef $ac_func
33039
33040 /* Override any gcc2 internal prototype to avoid an error.  */
33041 #ifdef __cplusplus
33042 extern "C"
33043 {
33044 #endif
33045 /* We use char because int might match the return type of a gcc2
33046    builtin and then its argument prototype would still apply.  */
33047 char $ac_func ();
33048 /* The GNU C library defines this for functions which it implements
33049     to always fail with ENOSYS.  Some functions are actually named
33050     something starting with __ and the normal name is an alias.  */
33051 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33052 choke me
33053 #else
33054 char (*f) () = $ac_func;
33055 #endif
33056 #ifdef __cplusplus
33057 }
33058 #endif
33059
33060 int
33061 main ()
33062 {
33063 return f != $ac_func;
33064   ;
33065   return 0;
33066 }
33067 _ACEOF
33068 rm -f conftest.$ac_objext conftest$ac_exeext
33069 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33070   (eval $ac_link) 2>conftest.er1
33071   ac_status=$?
33072   grep -v '^ *+' conftest.er1 >conftest.err
33073   rm -f conftest.er1
33074   cat conftest.err >&5
33075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33076   (exit $ac_status); } &&
33077          { ac_try='test -z "$ac_c_werror_flag"
33078                          || test ! -s conftest.err'
33079   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33080   (eval $ac_try) 2>&5
33081   ac_status=$?
33082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33083   (exit $ac_status); }; } &&
33084          { ac_try='test -s conftest$ac_exeext'
33085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33086   (eval $ac_try) 2>&5
33087   ac_status=$?
33088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33089   (exit $ac_status); }; }; then
33090   eval "$as_ac_var=yes"
33091 else
33092   echo "$as_me: failed program was:" >&5
33093 sed 's/^/| /' conftest.$ac_ext >&5
33094
33095 eval "$as_ac_var=no"
33096 fi
33097 rm -f conftest.err conftest.$ac_objext \
33098       conftest$ac_exeext conftest.$ac_ext
33099 fi
33100 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33101 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33102 if test `eval echo '${'$as_ac_var'}'` = yes; then
33103   cat >>confdefs.h <<_ACEOF
33104 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33105 _ACEOF
33106  ice_have_bcopy=yes
33107 fi
33108 done
33109
33110 if test "${ice_have_bcopy}" = yes; then
33111 echo "$as_me:$LINENO: checking for bcopy declaration in string.h strings.h stdlib.h" >&5
33112 echo $ECHO_N "checking for bcopy declaration in string.h strings.h stdlib.h... $ECHO_C" >&6
33113 if test "${ice_cv_have_bcopy_decl+set}" = set; then
33114   echo $ECHO_N "(cached) $ECHO_C" >&6
33115 else
33116
33117 ice_cv_have_bcopy_decl=no
33118 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
33119 ice_re_word='(^|[^a-zA-Z0-9_])'
33120 for header in string.h strings.h stdlib.h; do
33121 # Check for ordinary declaration
33122 cat >conftest.$ac_ext <<_ACEOF
33123 /* confdefs.h.  */
33124 _ACEOF
33125 cat confdefs.h >>conftest.$ac_ext
33126 cat >>conftest.$ac_ext <<_ACEOF
33127 /* end confdefs.h.  */
33128 #include <$header>
33129
33130 _ACEOF
33131 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33132   $EGREP "${ice_re_word}bcopy[  ]*\(" >/dev/null 2>&1; then
33133   ice_cv_have_bcopy_decl=yes
33134 fi
33135 rm -f conftest*
33136
33137 if test "$ice_cv_have_bcopy_decl" = yes; then
33138         break
33139 fi
33140 # Check for "fixed" declaration like "getpid _PARAMS((int))"
33141 cat >conftest.$ac_ext <<_ACEOF
33142 /* confdefs.h.  */
33143 _ACEOF
33144 cat confdefs.h >>conftest.$ac_ext
33145 cat >>conftest.$ac_ext <<_ACEOF
33146 /* end confdefs.h.  */
33147 #include <$header>
33148
33149 _ACEOF
33150 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33151   $EGREP "${ice_re_word}bcopy[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
33152   ice_cv_have_bcopy_decl=yes
33153 fi
33154 rm -f conftest*
33155
33156 if test "$ice_cv_have_bcopy_decl" = yes; then
33157         break
33158 fi
33159 done
33160
33161 fi
33162
33163 echo "$as_me:$LINENO: result: $ice_cv_have_bcopy_decl" >&5
33164 echo "${ECHO_T}$ice_cv_have_bcopy_decl" >&6
33165 if test "$ice_cv_have_bcopy_decl" = yes; then
33166
33167 cat >>confdefs.h <<_ACEOF
33168 #define HAVE_BCOPY_DECL 1
33169 _ACEOF
33170
33171 fi
33172 fi
33173
33174
33175 ice_have_bzero=no
33176
33177 for ac_func in bzero
33178 do
33179 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33180 echo "$as_me:$LINENO: checking for $ac_func" >&5
33181 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33182 if eval "test \"\${$as_ac_var+set}\" = set"; then
33183   echo $ECHO_N "(cached) $ECHO_C" >&6
33184 else
33185   cat >conftest.$ac_ext <<_ACEOF
33186 /* confdefs.h.  */
33187 _ACEOF
33188 cat confdefs.h >>conftest.$ac_ext
33189 cat >>conftest.$ac_ext <<_ACEOF
33190 /* end confdefs.h.  */
33191 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33192    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33193 #define $ac_func innocuous_$ac_func
33194
33195 /* System header to define __stub macros and hopefully few prototypes,
33196     which can conflict with char $ac_func (); below.
33197     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33198     <limits.h> exists even on freestanding compilers.  */
33199
33200 #ifdef __STDC__
33201 # include <limits.h>
33202 #else
33203 # include <assert.h>
33204 #endif
33205
33206 #undef $ac_func
33207
33208 /* Override any gcc2 internal prototype to avoid an error.  */
33209 #ifdef __cplusplus
33210 extern "C"
33211 {
33212 #endif
33213 /* We use char because int might match the return type of a gcc2
33214    builtin and then its argument prototype would still apply.  */
33215 char $ac_func ();
33216 /* The GNU C library defines this for functions which it implements
33217     to always fail with ENOSYS.  Some functions are actually named
33218     something starting with __ and the normal name is an alias.  */
33219 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33220 choke me
33221 #else
33222 char (*f) () = $ac_func;
33223 #endif
33224 #ifdef __cplusplus
33225 }
33226 #endif
33227
33228 int
33229 main ()
33230 {
33231 return f != $ac_func;
33232   ;
33233   return 0;
33234 }
33235 _ACEOF
33236 rm -f conftest.$ac_objext conftest$ac_exeext
33237 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33238   (eval $ac_link) 2>conftest.er1
33239   ac_status=$?
33240   grep -v '^ *+' conftest.er1 >conftest.err
33241   rm -f conftest.er1
33242   cat conftest.err >&5
33243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33244   (exit $ac_status); } &&
33245          { ac_try='test -z "$ac_c_werror_flag"
33246                          || test ! -s conftest.err'
33247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33248   (eval $ac_try) 2>&5
33249   ac_status=$?
33250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33251   (exit $ac_status); }; } &&
33252          { ac_try='test -s conftest$ac_exeext'
33253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33254   (eval $ac_try) 2>&5
33255   ac_status=$?
33256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33257   (exit $ac_status); }; }; then
33258   eval "$as_ac_var=yes"
33259 else
33260   echo "$as_me: failed program was:" >&5
33261 sed 's/^/| /' conftest.$ac_ext >&5
33262
33263 eval "$as_ac_var=no"
33264 fi
33265 rm -f conftest.err conftest.$ac_objext \
33266       conftest$ac_exeext conftest.$ac_ext
33267 fi
33268 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33269 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33270 if test `eval echo '${'$as_ac_var'}'` = yes; then
33271   cat >>confdefs.h <<_ACEOF
33272 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33273 _ACEOF
33274  ice_have_bzero=yes
33275 fi
33276 done
33277
33278 if test "${ice_have_bzero}" = yes; then
33279 echo "$as_me:$LINENO: checking for bzero declaration in string.h strings.h stdlib.h" >&5
33280 echo $ECHO_N "checking for bzero declaration in string.h strings.h stdlib.h... $ECHO_C" >&6
33281 if test "${ice_cv_have_bzero_decl+set}" = set; then
33282   echo $ECHO_N "(cached) $ECHO_C" >&6
33283 else
33284
33285 ice_cv_have_bzero_decl=no
33286 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
33287 ice_re_word='(^|[^a-zA-Z0-9_])'
33288 for header in string.h strings.h stdlib.h; do
33289 # Check for ordinary declaration
33290 cat >conftest.$ac_ext <<_ACEOF
33291 /* confdefs.h.  */
33292 _ACEOF
33293 cat confdefs.h >>conftest.$ac_ext
33294 cat >>conftest.$ac_ext <<_ACEOF
33295 /* end confdefs.h.  */
33296 #include <$header>
33297
33298 _ACEOF
33299 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33300   $EGREP "${ice_re_word}bzero[  ]*\(" >/dev/null 2>&1; then
33301   ice_cv_have_bzero_decl=yes
33302 fi
33303 rm -f conftest*
33304
33305 if test "$ice_cv_have_bzero_decl" = yes; then
33306         break
33307 fi
33308 # Check for "fixed" declaration like "getpid _PARAMS((int))"
33309 cat >conftest.$ac_ext <<_ACEOF
33310 /* confdefs.h.  */
33311 _ACEOF
33312 cat confdefs.h >>conftest.$ac_ext
33313 cat >>conftest.$ac_ext <<_ACEOF
33314 /* end confdefs.h.  */
33315 #include <$header>
33316
33317 _ACEOF
33318 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33319   $EGREP "${ice_re_word}bzero[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
33320   ice_cv_have_bzero_decl=yes
33321 fi
33322 rm -f conftest*
33323
33324 if test "$ice_cv_have_bzero_decl" = yes; then
33325         break
33326 fi
33327 done
33328
33329 fi
33330
33331 echo "$as_me:$LINENO: result: $ice_cv_have_bzero_decl" >&5
33332 echo "${ECHO_T}$ice_cv_have_bzero_decl" >&6
33333 if test "$ice_cv_have_bzero_decl" = yes; then
33334
33335 cat >>confdefs.h <<_ACEOF
33336 #define HAVE_BZERO_DECL 1
33337 _ACEOF
33338
33339 fi
33340 fi
33341
33342 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
33343 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
33344 if test "${ac_cv_func_closedir_void+set}" = set; then
33345   echo $ECHO_N "(cached) $ECHO_C" >&6
33346 else
33347   if test "$cross_compiling" = yes; then
33348   ac_cv_func_closedir_void=yes
33349 else
33350   cat >conftest.$ac_ext <<_ACEOF
33351 /* confdefs.h.  */
33352 _ACEOF
33353 cat confdefs.h >>conftest.$ac_ext
33354 cat >>conftest.$ac_ext <<_ACEOF
33355 /* end confdefs.h.  */
33356 $ac_includes_default
33357 #include <$ac_header_dirent>
33358 #ifndef __cplusplus
33359 int closedir ();
33360 #endif
33361
33362 int
33363 main ()
33364 {
33365 exit (closedir (opendir (".")) != 0);
33366   ;
33367   return 0;
33368 }
33369 _ACEOF
33370 rm -f conftest$ac_exeext
33371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33372   (eval $ac_link) 2>&5
33373   ac_status=$?
33374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33375   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33377   (eval $ac_try) 2>&5
33378   ac_status=$?
33379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33380   (exit $ac_status); }; }; then
33381   ac_cv_func_closedir_void=no
33382 else
33383   echo "$as_me: program exited with status $ac_status" >&5
33384 echo "$as_me: failed program was:" >&5
33385 sed 's/^/| /' conftest.$ac_ext >&5
33386
33387 ( exit $ac_status )
33388 ac_cv_func_closedir_void=yes
33389 fi
33390 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33391 fi
33392 fi
33393 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
33394 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
33395 if test $ac_cv_func_closedir_void = yes; then
33396
33397 cat >>confdefs.h <<\_ACEOF
33398 #define CLOSEDIR_VOID 1
33399 _ACEOF
33400
33401 fi
33402
33403
33404 ice_have_closelog=no
33405
33406 for ac_func in closelog
33407 do
33408 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33409 echo "$as_me:$LINENO: checking for $ac_func" >&5
33410 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33411 if eval "test \"\${$as_ac_var+set}\" = set"; then
33412   echo $ECHO_N "(cached) $ECHO_C" >&6
33413 else
33414   cat >conftest.$ac_ext <<_ACEOF
33415 /* confdefs.h.  */
33416 _ACEOF
33417 cat confdefs.h >>conftest.$ac_ext
33418 cat >>conftest.$ac_ext <<_ACEOF
33419 /* end confdefs.h.  */
33420 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33421    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33422 #define $ac_func innocuous_$ac_func
33423
33424 /* System header to define __stub macros and hopefully few prototypes,
33425     which can conflict with char $ac_func (); below.
33426     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33427     <limits.h> exists even on freestanding compilers.  */
33428
33429 #ifdef __STDC__
33430 # include <limits.h>
33431 #else
33432 # include <assert.h>
33433 #endif
33434
33435 #undef $ac_func
33436
33437 /* Override any gcc2 internal prototype to avoid an error.  */
33438 #ifdef __cplusplus
33439 extern "C"
33440 {
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 $ac_func ();
33445 /* The GNU C library defines this for functions which it implements
33446     to always fail with ENOSYS.  Some functions are actually named
33447     something starting with __ and the normal name is an alias.  */
33448 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33449 choke me
33450 #else
33451 char (*f) () = $ac_func;
33452 #endif
33453 #ifdef __cplusplus
33454 }
33455 #endif
33456
33457 int
33458 main ()
33459 {
33460 return f != $ac_func;
33461   ;
33462   return 0;
33463 }
33464 _ACEOF
33465 rm -f conftest.$ac_objext conftest$ac_exeext
33466 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33467   (eval $ac_link) 2>conftest.er1
33468   ac_status=$?
33469   grep -v '^ *+' conftest.er1 >conftest.err
33470   rm -f conftest.er1
33471   cat conftest.err >&5
33472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33473   (exit $ac_status); } &&
33474          { ac_try='test -z "$ac_c_werror_flag"
33475                          || test ! -s conftest.err'
33476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33477   (eval $ac_try) 2>&5
33478   ac_status=$?
33479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33480   (exit $ac_status); }; } &&
33481          { ac_try='test -s conftest$ac_exeext'
33482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33483   (eval $ac_try) 2>&5
33484   ac_status=$?
33485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33486   (exit $ac_status); }; }; then
33487   eval "$as_ac_var=yes"
33488 else
33489   echo "$as_me: failed program was:" >&5
33490 sed 's/^/| /' conftest.$ac_ext >&5
33491
33492 eval "$as_ac_var=no"
33493 fi
33494 rm -f conftest.err conftest.$ac_objext \
33495       conftest$ac_exeext conftest.$ac_ext
33496 fi
33497 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33498 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33499 if test `eval echo '${'$as_ac_var'}'` = yes; then
33500   cat >>confdefs.h <<_ACEOF
33501 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33502 _ACEOF
33503  ice_have_closelog=yes
33504 fi
33505 done
33506
33507 if test "${ice_have_closelog}" = yes; then
33508 echo "$as_me:$LINENO: checking for closelog declaration in syslog.h" >&5
33509 echo $ECHO_N "checking for closelog declaration in syslog.h... $ECHO_C" >&6
33510 if test "${ice_cv_have_closelog_decl+set}" = set; then
33511   echo $ECHO_N "(cached) $ECHO_C" >&6
33512 else
33513
33514 ice_cv_have_closelog_decl=no
33515 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
33516 ice_re_word='(^|[^a-zA-Z0-9_])'
33517 for header in syslog.h; do
33518 # Check for ordinary declaration
33519 cat >conftest.$ac_ext <<_ACEOF
33520 /* confdefs.h.  */
33521 _ACEOF
33522 cat confdefs.h >>conftest.$ac_ext
33523 cat >>conftest.$ac_ext <<_ACEOF
33524 /* end confdefs.h.  */
33525 #include <$header>
33526
33527 _ACEOF
33528 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33529   $EGREP "${ice_re_word}closelog[       ]*\(" >/dev/null 2>&1; then
33530   ice_cv_have_closelog_decl=yes
33531 fi
33532 rm -f conftest*
33533
33534 if test "$ice_cv_have_closelog_decl" = yes; then
33535         break
33536 fi
33537 # Check for "fixed" declaration like "getpid _PARAMS((int))"
33538 cat >conftest.$ac_ext <<_ACEOF
33539 /* confdefs.h.  */
33540 _ACEOF
33541 cat confdefs.h >>conftest.$ac_ext
33542 cat >>conftest.$ac_ext <<_ACEOF
33543 /* end confdefs.h.  */
33544 #include <$header>
33545
33546 _ACEOF
33547 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33548   $EGREP "${ice_re_word}closelog[       ]*$ice_re_params\(\(" >/dev/null 2>&1; then
33549   ice_cv_have_closelog_decl=yes
33550 fi
33551 rm -f conftest*
33552
33553 if test "$ice_cv_have_closelog_decl" = yes; then
33554         break
33555 fi
33556 done
33557
33558 fi
33559
33560 echo "$as_me:$LINENO: result: $ice_cv_have_closelog_decl" >&5
33561 echo "${ECHO_T}$ice_cv_have_closelog_decl" >&6
33562 if test "$ice_cv_have_closelog_decl" = yes; then
33563
33564 cat >>confdefs.h <<_ACEOF
33565 #define HAVE_CLOSELOG_DECL 1
33566 _ACEOF
33567
33568 fi
33569 fi
33570
33571
33572 ice_have_connect=no
33573
33574 for ac_func in connect
33575 do
33576 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33577 echo "$as_me:$LINENO: checking for $ac_func" >&5
33578 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33579 if eval "test \"\${$as_ac_var+set}\" = set"; then
33580   echo $ECHO_N "(cached) $ECHO_C" >&6
33581 else
33582   cat >conftest.$ac_ext <<_ACEOF
33583 /* confdefs.h.  */
33584 _ACEOF
33585 cat confdefs.h >>conftest.$ac_ext
33586 cat >>conftest.$ac_ext <<_ACEOF
33587 /* end confdefs.h.  */
33588 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33589    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33590 #define $ac_func innocuous_$ac_func
33591
33592 /* System header to define __stub macros and hopefully few prototypes,
33593     which can conflict with char $ac_func (); below.
33594     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33595     <limits.h> exists even on freestanding compilers.  */
33596
33597 #ifdef __STDC__
33598 # include <limits.h>
33599 #else
33600 # include <assert.h>
33601 #endif
33602
33603 #undef $ac_func
33604
33605 /* Override any gcc2 internal prototype to avoid an error.  */
33606 #ifdef __cplusplus
33607 extern "C"
33608 {
33609 #endif
33610 /* We use char because int might match the return type of a gcc2
33611    builtin and then its argument prototype would still apply.  */
33612 char $ac_func ();
33613 /* The GNU C library defines this for functions which it implements
33614     to always fail with ENOSYS.  Some functions are actually named
33615     something starting with __ and the normal name is an alias.  */
33616 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33617 choke me
33618 #else
33619 char (*f) () = $ac_func;
33620 #endif
33621 #ifdef __cplusplus
33622 }
33623 #endif
33624
33625 int
33626 main ()
33627 {
33628 return f != $ac_func;
33629   ;
33630   return 0;
33631 }
33632 _ACEOF
33633 rm -f conftest.$ac_objext conftest$ac_exeext
33634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33635   (eval $ac_link) 2>conftest.er1
33636   ac_status=$?
33637   grep -v '^ *+' conftest.er1 >conftest.err
33638   rm -f conftest.er1
33639   cat conftest.err >&5
33640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33641   (exit $ac_status); } &&
33642          { ac_try='test -z "$ac_c_werror_flag"
33643                          || test ! -s conftest.err'
33644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33645   (eval $ac_try) 2>&5
33646   ac_status=$?
33647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33648   (exit $ac_status); }; } &&
33649          { ac_try='test -s conftest$ac_exeext'
33650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33651   (eval $ac_try) 2>&5
33652   ac_status=$?
33653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33654   (exit $ac_status); }; }; then
33655   eval "$as_ac_var=yes"
33656 else
33657   echo "$as_me: failed program was:" >&5
33658 sed 's/^/| /' conftest.$ac_ext >&5
33659
33660 eval "$as_ac_var=no"
33661 fi
33662 rm -f conftest.err conftest.$ac_objext \
33663       conftest$ac_exeext conftest.$ac_ext
33664 fi
33665 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33666 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33667 if test `eval echo '${'$as_ac_var'}'` = yes; then
33668   cat >>confdefs.h <<_ACEOF
33669 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33670 _ACEOF
33671  ice_have_connect=yes
33672 fi
33673 done
33674
33675 if test "${ice_have_connect}" = yes; then
33676 echo "$as_me:$LINENO: checking for connect declaration in sys/types.h sys/socket.h" >&5
33677 echo $ECHO_N "checking for connect declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
33678 if test "${ice_cv_have_connect_decl+set}" = set; then
33679   echo $ECHO_N "(cached) $ECHO_C" >&6
33680 else
33681
33682 ice_cv_have_connect_decl=no
33683 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
33684 ice_re_word='(^|[^a-zA-Z0-9_])'
33685 for header in sys/types.h sys/socket.h; do
33686 # Check for ordinary declaration
33687 cat >conftest.$ac_ext <<_ACEOF
33688 /* confdefs.h.  */
33689 _ACEOF
33690 cat confdefs.h >>conftest.$ac_ext
33691 cat >>conftest.$ac_ext <<_ACEOF
33692 /* end confdefs.h.  */
33693 #include <$header>
33694
33695 _ACEOF
33696 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33697   $EGREP "${ice_re_word}connect[        ]*\(" >/dev/null 2>&1; then
33698   ice_cv_have_connect_decl=yes
33699 fi
33700 rm -f conftest*
33701
33702 if test "$ice_cv_have_connect_decl" = yes; then
33703         break
33704 fi
33705 # Check for "fixed" declaration like "getpid _PARAMS((int))"
33706 cat >conftest.$ac_ext <<_ACEOF
33707 /* confdefs.h.  */
33708 _ACEOF
33709 cat confdefs.h >>conftest.$ac_ext
33710 cat >>conftest.$ac_ext <<_ACEOF
33711 /* end confdefs.h.  */
33712 #include <$header>
33713
33714 _ACEOF
33715 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33716   $EGREP "${ice_re_word}connect[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
33717   ice_cv_have_connect_decl=yes
33718 fi
33719 rm -f conftest*
33720
33721 if test "$ice_cv_have_connect_decl" = yes; then
33722         break
33723 fi
33724 done
33725
33726 fi
33727
33728 echo "$as_me:$LINENO: result: $ice_cv_have_connect_decl" >&5
33729 echo "${ECHO_T}$ice_cv_have_connect_decl" >&6
33730 if test "$ice_cv_have_connect_decl" = yes; then
33731
33732 cat >>confdefs.h <<_ACEOF
33733 #define HAVE_CONNECT_DECL 1
33734 _ACEOF
33735
33736 fi
33737 fi
33738
33739
33740 ice_have_dbm_open=no
33741
33742 for ac_func in dbm_open
33743 do
33744 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33745 echo "$as_me:$LINENO: checking for $ac_func" >&5
33746 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33747 if eval "test \"\${$as_ac_var+set}\" = set"; then
33748   echo $ECHO_N "(cached) $ECHO_C" >&6
33749 else
33750   cat >conftest.$ac_ext <<_ACEOF
33751 /* confdefs.h.  */
33752 _ACEOF
33753 cat confdefs.h >>conftest.$ac_ext
33754 cat >>conftest.$ac_ext <<_ACEOF
33755 /* end confdefs.h.  */
33756 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33757    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33758 #define $ac_func innocuous_$ac_func
33759
33760 /* System header to define __stub macros and hopefully few prototypes,
33761     which can conflict with char $ac_func (); below.
33762     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33763     <limits.h> exists even on freestanding compilers.  */
33764
33765 #ifdef __STDC__
33766 # include <limits.h>
33767 #else
33768 # include <assert.h>
33769 #endif
33770
33771 #undef $ac_func
33772
33773 /* Override any gcc2 internal prototype to avoid an error.  */
33774 #ifdef __cplusplus
33775 extern "C"
33776 {
33777 #endif
33778 /* We use char because int might match the return type of a gcc2
33779    builtin and then its argument prototype would still apply.  */
33780 char $ac_func ();
33781 /* The GNU C library defines this for functions which it implements
33782     to always fail with ENOSYS.  Some functions are actually named
33783     something starting with __ and the normal name is an alias.  */
33784 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33785 choke me
33786 #else
33787 char (*f) () = $ac_func;
33788 #endif
33789 #ifdef __cplusplus
33790 }
33791 #endif
33792
33793 int
33794 main ()
33795 {
33796 return f != $ac_func;
33797   ;
33798   return 0;
33799 }
33800 _ACEOF
33801 rm -f conftest.$ac_objext conftest$ac_exeext
33802 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33803   (eval $ac_link) 2>conftest.er1
33804   ac_status=$?
33805   grep -v '^ *+' conftest.er1 >conftest.err
33806   rm -f conftest.er1
33807   cat conftest.err >&5
33808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33809   (exit $ac_status); } &&
33810          { ac_try='test -z "$ac_c_werror_flag"
33811                          || test ! -s conftest.err'
33812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33813   (eval $ac_try) 2>&5
33814   ac_status=$?
33815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33816   (exit $ac_status); }; } &&
33817          { ac_try='test -s conftest$ac_exeext'
33818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33819   (eval $ac_try) 2>&5
33820   ac_status=$?
33821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33822   (exit $ac_status); }; }; then
33823   eval "$as_ac_var=yes"
33824 else
33825   echo "$as_me: failed program was:" >&5
33826 sed 's/^/| /' conftest.$ac_ext >&5
33827
33828 eval "$as_ac_var=no"
33829 fi
33830 rm -f conftest.err conftest.$ac_objext \
33831       conftest$ac_exeext conftest.$ac_ext
33832 fi
33833 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33834 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33835 if test `eval echo '${'$as_ac_var'}'` = yes; then
33836   cat >>confdefs.h <<_ACEOF
33837 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33838 _ACEOF
33839  ice_have_dbm_open=yes
33840 fi
33841 done
33842
33843 if test "${ice_have_dbm_open}" = yes; then
33844 echo "$as_me:$LINENO: checking for dbm_open declaration in ${DB_HEADER-no/db/header/file}" >&5
33845 echo $ECHO_N "checking for dbm_open declaration in ${DB_HEADER-no/db/header/file}... $ECHO_C" >&6
33846 if test "${ice_cv_have_dbm_open_decl+set}" = set; then
33847   echo $ECHO_N "(cached) $ECHO_C" >&6
33848 else
33849
33850 ice_cv_have_dbm_open_decl=no
33851 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
33852 ice_re_word='(^|[^a-zA-Z0-9_])'
33853 for header in ${DB_HEADER-no/db/header/file}; do
33854 # Check for ordinary declaration
33855 cat >conftest.$ac_ext <<_ACEOF
33856 /* confdefs.h.  */
33857 _ACEOF
33858 cat confdefs.h >>conftest.$ac_ext
33859 cat >>conftest.$ac_ext <<_ACEOF
33860 /* end confdefs.h.  */
33861 #include <$header>
33862
33863 _ACEOF
33864 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33865   $EGREP "${ice_re_word}dbm_open[       ]*\(" >/dev/null 2>&1; then
33866   ice_cv_have_dbm_open_decl=yes
33867 fi
33868 rm -f conftest*
33869
33870 if test "$ice_cv_have_dbm_open_decl" = yes; then
33871         break
33872 fi
33873 # Check for "fixed" declaration like "getpid _PARAMS((int))"
33874 cat >conftest.$ac_ext <<_ACEOF
33875 /* confdefs.h.  */
33876 _ACEOF
33877 cat confdefs.h >>conftest.$ac_ext
33878 cat >>conftest.$ac_ext <<_ACEOF
33879 /* end confdefs.h.  */
33880 #include <$header>
33881
33882 _ACEOF
33883 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33884   $EGREP "${ice_re_word}dbm_open[       ]*$ice_re_params\(\(" >/dev/null 2>&1; then
33885   ice_cv_have_dbm_open_decl=yes
33886 fi
33887 rm -f conftest*
33888
33889 if test "$ice_cv_have_dbm_open_decl" = yes; then
33890         break
33891 fi
33892 done
33893
33894 fi
33895
33896 echo "$as_me:$LINENO: result: $ice_cv_have_dbm_open_decl" >&5
33897 echo "${ECHO_T}$ice_cv_have_dbm_open_decl" >&6
33898 if test "$ice_cv_have_dbm_open_decl" = yes; then
33899
33900 cat >>confdefs.h <<_ACEOF
33901 #define HAVE_DBM_OPEN_DECL 1
33902 _ACEOF
33903
33904 fi
33905 fi
33906
33907
33908 for ac_func in endmntent
33909 do
33910 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33911 echo "$as_me:$LINENO: checking for $ac_func" >&5
33912 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33913 if eval "test \"\${$as_ac_var+set}\" = set"; then
33914   echo $ECHO_N "(cached) $ECHO_C" >&6
33915 else
33916   cat >conftest.$ac_ext <<_ACEOF
33917 /* confdefs.h.  */
33918 _ACEOF
33919 cat confdefs.h >>conftest.$ac_ext
33920 cat >>conftest.$ac_ext <<_ACEOF
33921 /* end confdefs.h.  */
33922 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33923    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33924 #define $ac_func innocuous_$ac_func
33925
33926 /* System header to define __stub macros and hopefully few prototypes,
33927     which can conflict with char $ac_func (); below.
33928     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33929     <limits.h> exists even on freestanding compilers.  */
33930
33931 #ifdef __STDC__
33932 # include <limits.h>
33933 #else
33934 # include <assert.h>
33935 #endif
33936
33937 #undef $ac_func
33938
33939 /* Override any gcc2 internal prototype to avoid an error.  */
33940 #ifdef __cplusplus
33941 extern "C"
33942 {
33943 #endif
33944 /* We use char because int might match the return type of a gcc2
33945    builtin and then its argument prototype would still apply.  */
33946 char $ac_func ();
33947 /* The GNU C library defines this for functions which it implements
33948     to always fail with ENOSYS.  Some functions are actually named
33949     something starting with __ and the normal name is an alias.  */
33950 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33951 choke me
33952 #else
33953 char (*f) () = $ac_func;
33954 #endif
33955 #ifdef __cplusplus
33956 }
33957 #endif
33958
33959 int
33960 main ()
33961 {
33962 return f != $ac_func;
33963   ;
33964   return 0;
33965 }
33966 _ACEOF
33967 rm -f conftest.$ac_objext conftest$ac_exeext
33968 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33969   (eval $ac_link) 2>conftest.er1
33970   ac_status=$?
33971   grep -v '^ *+' conftest.er1 >conftest.err
33972   rm -f conftest.er1
33973   cat conftest.err >&5
33974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33975   (exit $ac_status); } &&
33976          { ac_try='test -z "$ac_c_werror_flag"
33977                          || test ! -s conftest.err'
33978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33979   (eval $ac_try) 2>&5
33980   ac_status=$?
33981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33982   (exit $ac_status); }; } &&
33983          { ac_try='test -s conftest$ac_exeext'
33984   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33985   (eval $ac_try) 2>&5
33986   ac_status=$?
33987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33988   (exit $ac_status); }; }; then
33989   eval "$as_ac_var=yes"
33990 else
33991   echo "$as_me: failed program was:" >&5
33992 sed 's/^/| /' conftest.$ac_ext >&5
33993
33994 eval "$as_ac_var=no"
33995 fi
33996 rm -f conftest.err conftest.$ac_objext \
33997       conftest$ac_exeext conftest.$ac_ext
33998 fi
33999 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34000 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34001 if test `eval echo '${'$as_ac_var'}'` = yes; then
34002   cat >>confdefs.h <<_ACEOF
34003 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34004 _ACEOF
34005
34006 fi
34007 done
34008
34009
34010 ice_have_fclose=no
34011
34012 for ac_func in fclose
34013 do
34014 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34015 echo "$as_me:$LINENO: checking for $ac_func" >&5
34016 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34017 if eval "test \"\${$as_ac_var+set}\" = set"; then
34018   echo $ECHO_N "(cached) $ECHO_C" >&6
34019 else
34020   cat >conftest.$ac_ext <<_ACEOF
34021 /* confdefs.h.  */
34022 _ACEOF
34023 cat confdefs.h >>conftest.$ac_ext
34024 cat >>conftest.$ac_ext <<_ACEOF
34025 /* end confdefs.h.  */
34026 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34027    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34028 #define $ac_func innocuous_$ac_func
34029
34030 /* System header to define __stub macros and hopefully few prototypes,
34031     which can conflict with char $ac_func (); below.
34032     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34033     <limits.h> exists even on freestanding compilers.  */
34034
34035 #ifdef __STDC__
34036 # include <limits.h>
34037 #else
34038 # include <assert.h>
34039 #endif
34040
34041 #undef $ac_func
34042
34043 /* Override any gcc2 internal prototype to avoid an error.  */
34044 #ifdef __cplusplus
34045 extern "C"
34046 {
34047 #endif
34048 /* We use char because int might match the return type of a gcc2
34049    builtin and then its argument prototype would still apply.  */
34050 char $ac_func ();
34051 /* The GNU C library defines this for functions which it implements
34052     to always fail with ENOSYS.  Some functions are actually named
34053     something starting with __ and the normal name is an alias.  */
34054 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34055 choke me
34056 #else
34057 char (*f) () = $ac_func;
34058 #endif
34059 #ifdef __cplusplus
34060 }
34061 #endif
34062
34063 int
34064 main ()
34065 {
34066 return f != $ac_func;
34067   ;
34068   return 0;
34069 }
34070 _ACEOF
34071 rm -f conftest.$ac_objext conftest$ac_exeext
34072 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34073   (eval $ac_link) 2>conftest.er1
34074   ac_status=$?
34075   grep -v '^ *+' conftest.er1 >conftest.err
34076   rm -f conftest.er1
34077   cat conftest.err >&5
34078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34079   (exit $ac_status); } &&
34080          { ac_try='test -z "$ac_c_werror_flag"
34081                          || test ! -s conftest.err'
34082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34083   (eval $ac_try) 2>&5
34084   ac_status=$?
34085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34086   (exit $ac_status); }; } &&
34087          { ac_try='test -s conftest$ac_exeext'
34088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34089   (eval $ac_try) 2>&5
34090   ac_status=$?
34091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34092   (exit $ac_status); }; }; then
34093   eval "$as_ac_var=yes"
34094 else
34095   echo "$as_me: failed program was:" >&5
34096 sed 's/^/| /' conftest.$ac_ext >&5
34097
34098 eval "$as_ac_var=no"
34099 fi
34100 rm -f conftest.err conftest.$ac_objext \
34101       conftest$ac_exeext conftest.$ac_ext
34102 fi
34103 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34104 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34105 if test `eval echo '${'$as_ac_var'}'` = yes; then
34106   cat >>confdefs.h <<_ACEOF
34107 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34108 _ACEOF
34109  ice_have_fclose=yes
34110 fi
34111 done
34112
34113 if test "${ice_have_fclose}" = yes; then
34114 echo "$as_me:$LINENO: checking for fclose declaration in stdio.h" >&5
34115 echo $ECHO_N "checking for fclose declaration in stdio.h... $ECHO_C" >&6
34116 if test "${ice_cv_have_fclose_decl+set}" = set; then
34117   echo $ECHO_N "(cached) $ECHO_C" >&6
34118 else
34119
34120 ice_cv_have_fclose_decl=no
34121 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
34122 ice_re_word='(^|[^a-zA-Z0-9_])'
34123 for header in stdio.h; do
34124 # Check for ordinary declaration
34125 cat >conftest.$ac_ext <<_ACEOF
34126 /* confdefs.h.  */
34127 _ACEOF
34128 cat confdefs.h >>conftest.$ac_ext
34129 cat >>conftest.$ac_ext <<_ACEOF
34130 /* end confdefs.h.  */
34131 #include <$header>
34132
34133 _ACEOF
34134 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34135   $EGREP "${ice_re_word}fclose[         ]*\(" >/dev/null 2>&1; then
34136   ice_cv_have_fclose_decl=yes
34137 fi
34138 rm -f conftest*
34139
34140 if test "$ice_cv_have_fclose_decl" = yes; then
34141         break
34142 fi
34143 # Check for "fixed" declaration like "getpid _PARAMS((int))"
34144 cat >conftest.$ac_ext <<_ACEOF
34145 /* confdefs.h.  */
34146 _ACEOF
34147 cat confdefs.h >>conftest.$ac_ext
34148 cat >>conftest.$ac_ext <<_ACEOF
34149 /* end confdefs.h.  */
34150 #include <$header>
34151
34152 _ACEOF
34153 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34154   $EGREP "${ice_re_word}fclose[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
34155   ice_cv_have_fclose_decl=yes
34156 fi
34157 rm -f conftest*
34158
34159 if test "$ice_cv_have_fclose_decl" = yes; then
34160         break
34161 fi
34162 done
34163
34164 fi
34165
34166 echo "$as_me:$LINENO: result: $ice_cv_have_fclose_decl" >&5
34167 echo "${ECHO_T}$ice_cv_have_fclose_decl" >&6
34168 if test "$ice_cv_have_fclose_decl" = yes; then
34169
34170 cat >>confdefs.h <<_ACEOF
34171 #define HAVE_FCLOSE_DECL 1
34172 _ACEOF
34173
34174 fi
34175 fi
34176
34177
34178 ice_have_fflush=no
34179
34180 for ac_func in fflush
34181 do
34182 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34183 echo "$as_me:$LINENO: checking for $ac_func" >&5
34184 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34185 if eval "test \"\${$as_ac_var+set}\" = set"; then
34186   echo $ECHO_N "(cached) $ECHO_C" >&6
34187 else
34188   cat >conftest.$ac_ext <<_ACEOF
34189 /* confdefs.h.  */
34190 _ACEOF
34191 cat confdefs.h >>conftest.$ac_ext
34192 cat >>conftest.$ac_ext <<_ACEOF
34193 /* end confdefs.h.  */
34194 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34195    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34196 #define $ac_func innocuous_$ac_func
34197
34198 /* System header to define __stub macros and hopefully few prototypes,
34199     which can conflict with char $ac_func (); below.
34200     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34201     <limits.h> exists even on freestanding compilers.  */
34202
34203 #ifdef __STDC__
34204 # include <limits.h>
34205 #else
34206 # include <assert.h>
34207 #endif
34208
34209 #undef $ac_func
34210
34211 /* Override any gcc2 internal prototype to avoid an error.  */
34212 #ifdef __cplusplus
34213 extern "C"
34214 {
34215 #endif
34216 /* We use char because int might match the return type of a gcc2
34217    builtin and then its argument prototype would still apply.  */
34218 char $ac_func ();
34219 /* The GNU C library defines this for functions which it implements
34220     to always fail with ENOSYS.  Some functions are actually named
34221     something starting with __ and the normal name is an alias.  */
34222 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34223 choke me
34224 #else
34225 char (*f) () = $ac_func;
34226 #endif
34227 #ifdef __cplusplus
34228 }
34229 #endif
34230
34231 int
34232 main ()
34233 {
34234 return f != $ac_func;
34235   ;
34236   return 0;
34237 }
34238 _ACEOF
34239 rm -f conftest.$ac_objext conftest$ac_exeext
34240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34241   (eval $ac_link) 2>conftest.er1
34242   ac_status=$?
34243   grep -v '^ *+' conftest.er1 >conftest.err
34244   rm -f conftest.er1
34245   cat conftest.err >&5
34246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34247   (exit $ac_status); } &&
34248          { ac_try='test -z "$ac_c_werror_flag"
34249                          || test ! -s conftest.err'
34250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34251   (eval $ac_try) 2>&5
34252   ac_status=$?
34253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34254   (exit $ac_status); }; } &&
34255          { ac_try='test -s conftest$ac_exeext'
34256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34257   (eval $ac_try) 2>&5
34258   ac_status=$?
34259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34260   (exit $ac_status); }; }; then
34261   eval "$as_ac_var=yes"
34262 else
34263   echo "$as_me: failed program was:" >&5
34264 sed 's/^/| /' conftest.$ac_ext >&5
34265
34266 eval "$as_ac_var=no"
34267 fi
34268 rm -f conftest.err conftest.$ac_objext \
34269       conftest$ac_exeext conftest.$ac_ext
34270 fi
34271 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34272 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34273 if test `eval echo '${'$as_ac_var'}'` = yes; then
34274   cat >>confdefs.h <<_ACEOF
34275 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34276 _ACEOF
34277  ice_have_fflush=yes
34278 fi
34279 done
34280
34281 if test "${ice_have_fflush}" = yes; then
34282 echo "$as_me:$LINENO: checking for fflush declaration in stdio.h" >&5
34283 echo $ECHO_N "checking for fflush declaration in stdio.h... $ECHO_C" >&6
34284 if test "${ice_cv_have_fflush_decl+set}" = set; then
34285   echo $ECHO_N "(cached) $ECHO_C" >&6
34286 else
34287
34288 ice_cv_have_fflush_decl=no
34289 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
34290 ice_re_word='(^|[^a-zA-Z0-9_])'
34291 for header in stdio.h; do
34292 # Check for ordinary declaration
34293 cat >conftest.$ac_ext <<_ACEOF
34294 /* confdefs.h.  */
34295 _ACEOF
34296 cat confdefs.h >>conftest.$ac_ext
34297 cat >>conftest.$ac_ext <<_ACEOF
34298 /* end confdefs.h.  */
34299 #include <$header>
34300
34301 _ACEOF
34302 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34303   $EGREP "${ice_re_word}fflush[         ]*\(" >/dev/null 2>&1; then
34304   ice_cv_have_fflush_decl=yes
34305 fi
34306 rm -f conftest*
34307
34308 if test "$ice_cv_have_fflush_decl" = yes; then
34309         break
34310 fi
34311 # Check for "fixed" declaration like "getpid _PARAMS((int))"
34312 cat >conftest.$ac_ext <<_ACEOF
34313 /* confdefs.h.  */
34314 _ACEOF
34315 cat confdefs.h >>conftest.$ac_ext
34316 cat >>conftest.$ac_ext <<_ACEOF
34317 /* end confdefs.h.  */
34318 #include <$header>
34319
34320 _ACEOF
34321 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34322   $EGREP "${ice_re_word}fflush[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
34323   ice_cv_have_fflush_decl=yes
34324 fi
34325 rm -f conftest*
34326
34327 if test "$ice_cv_have_fflush_decl" = yes; then
34328         break
34329 fi
34330 done
34331
34332 fi
34333
34334 echo "$as_me:$LINENO: result: $ice_cv_have_fflush_decl" >&5
34335 echo "${ECHO_T}$ice_cv_have_fflush_decl" >&6
34336 if test "$ice_cv_have_fflush_decl" = yes; then
34337
34338 cat >>confdefs.h <<_ACEOF
34339 #define HAVE_FFLUSH_DECL 1
34340 _ACEOF
34341
34342 fi
34343 fi
34344
34345
34346 ice_have_flock=no
34347
34348 for ac_func in flock
34349 do
34350 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34351 echo "$as_me:$LINENO: checking for $ac_func" >&5
34352 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34353 if eval "test \"\${$as_ac_var+set}\" = set"; then
34354   echo $ECHO_N "(cached) $ECHO_C" >&6
34355 else
34356   cat >conftest.$ac_ext <<_ACEOF
34357 /* confdefs.h.  */
34358 _ACEOF
34359 cat confdefs.h >>conftest.$ac_ext
34360 cat >>conftest.$ac_ext <<_ACEOF
34361 /* end confdefs.h.  */
34362 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34363    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34364 #define $ac_func innocuous_$ac_func
34365
34366 /* System header to define __stub macros and hopefully few prototypes,
34367     which can conflict with char $ac_func (); below.
34368     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34369     <limits.h> exists even on freestanding compilers.  */
34370
34371 #ifdef __STDC__
34372 # include <limits.h>
34373 #else
34374 # include <assert.h>
34375 #endif
34376
34377 #undef $ac_func
34378
34379 /* Override any gcc2 internal prototype to avoid an error.  */
34380 #ifdef __cplusplus
34381 extern "C"
34382 {
34383 #endif
34384 /* We use char because int might match the return type of a gcc2
34385    builtin and then its argument prototype would still apply.  */
34386 char $ac_func ();
34387 /* The GNU C library defines this for functions which it implements
34388     to always fail with ENOSYS.  Some functions are actually named
34389     something starting with __ and the normal name is an alias.  */
34390 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34391 choke me
34392 #else
34393 char (*f) () = $ac_func;
34394 #endif
34395 #ifdef __cplusplus
34396 }
34397 #endif
34398
34399 int
34400 main ()
34401 {
34402 return f != $ac_func;
34403   ;
34404   return 0;
34405 }
34406 _ACEOF
34407 rm -f conftest.$ac_objext conftest$ac_exeext
34408 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34409   (eval $ac_link) 2>conftest.er1
34410   ac_status=$?
34411   grep -v '^ *+' conftest.er1 >conftest.err
34412   rm -f conftest.er1
34413   cat conftest.err >&5
34414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34415   (exit $ac_status); } &&
34416          { ac_try='test -z "$ac_c_werror_flag"
34417                          || test ! -s conftest.err'
34418   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34419   (eval $ac_try) 2>&5
34420   ac_status=$?
34421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34422   (exit $ac_status); }; } &&
34423          { ac_try='test -s conftest$ac_exeext'
34424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34425   (eval $ac_try) 2>&5
34426   ac_status=$?
34427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34428   (exit $ac_status); }; }; then
34429   eval "$as_ac_var=yes"
34430 else
34431   echo "$as_me: failed program was:" >&5
34432 sed 's/^/| /' conftest.$ac_ext >&5
34433
34434 eval "$as_ac_var=no"
34435 fi
34436 rm -f conftest.err conftest.$ac_objext \
34437       conftest$ac_exeext conftest.$ac_ext
34438 fi
34439 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34440 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34441 if test `eval echo '${'$as_ac_var'}'` = yes; then
34442   cat >>confdefs.h <<_ACEOF
34443 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34444 _ACEOF
34445  ice_have_flock=yes
34446 fi
34447 done
34448
34449 if test "${ice_have_flock}" = yes; then
34450 echo "$as_me:$LINENO: checking for flock declaration in sys/file.h" >&5
34451 echo $ECHO_N "checking for flock declaration in sys/file.h... $ECHO_C" >&6
34452 if test "${ice_cv_have_flock_decl+set}" = set; then
34453   echo $ECHO_N "(cached) $ECHO_C" >&6
34454 else
34455
34456 ice_cv_have_flock_decl=no
34457 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
34458 ice_re_word='(^|[^a-zA-Z0-9_])'
34459 for header in sys/file.h; do
34460 # Check for ordinary declaration
34461 cat >conftest.$ac_ext <<_ACEOF
34462 /* confdefs.h.  */
34463 _ACEOF
34464 cat confdefs.h >>conftest.$ac_ext
34465 cat >>conftest.$ac_ext <<_ACEOF
34466 /* end confdefs.h.  */
34467 #include <$header>
34468
34469 _ACEOF
34470 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34471   $EGREP "${ice_re_word}flock[  ]*\(" >/dev/null 2>&1; then
34472   ice_cv_have_flock_decl=yes
34473 fi
34474 rm -f conftest*
34475
34476 if test "$ice_cv_have_flock_decl" = yes; then
34477         break
34478 fi
34479 # Check for "fixed" declaration like "getpid _PARAMS((int))"
34480 cat >conftest.$ac_ext <<_ACEOF
34481 /* confdefs.h.  */
34482 _ACEOF
34483 cat confdefs.h >>conftest.$ac_ext
34484 cat >>conftest.$ac_ext <<_ACEOF
34485 /* end confdefs.h.  */
34486 #include <$header>
34487
34488 _ACEOF
34489 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34490   $EGREP "${ice_re_word}flock[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
34491   ice_cv_have_flock_decl=yes
34492 fi
34493 rm -f conftest*
34494
34495 if test "$ice_cv_have_flock_decl" = yes; then
34496         break
34497 fi
34498 done
34499
34500 fi
34501
34502 echo "$as_me:$LINENO: result: $ice_cv_have_flock_decl" >&5
34503 echo "${ECHO_T}$ice_cv_have_flock_decl" >&6
34504 if test "$ice_cv_have_flock_decl" = yes; then
34505
34506 cat >>confdefs.h <<_ACEOF
34507 #define HAVE_FLOCK_DECL 1
34508 _ACEOF
34509
34510 fi
34511 fi
34512
34513
34514 ice_have_fprintf=no
34515
34516 for ac_func in fprintf
34517 do
34518 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34519 echo "$as_me:$LINENO: checking for $ac_func" >&5
34520 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34521 if eval "test \"\${$as_ac_var+set}\" = set"; then
34522   echo $ECHO_N "(cached) $ECHO_C" >&6
34523 else
34524   cat >conftest.$ac_ext <<_ACEOF
34525 /* confdefs.h.  */
34526 _ACEOF
34527 cat confdefs.h >>conftest.$ac_ext
34528 cat >>conftest.$ac_ext <<_ACEOF
34529 /* end confdefs.h.  */
34530 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34531    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34532 #define $ac_func innocuous_$ac_func
34533
34534 /* System header to define __stub macros and hopefully few prototypes,
34535     which can conflict with char $ac_func (); below.
34536     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34537     <limits.h> exists even on freestanding compilers.  */
34538
34539 #ifdef __STDC__
34540 # include <limits.h>
34541 #else
34542 # include <assert.h>
34543 #endif
34544
34545 #undef $ac_func
34546
34547 /* Override any gcc2 internal prototype to avoid an error.  */
34548 #ifdef __cplusplus
34549 extern "C"
34550 {
34551 #endif
34552 /* We use char because int might match the return type of a gcc2
34553    builtin and then its argument prototype would still apply.  */
34554 char $ac_func ();
34555 /* The GNU C library defines this for functions which it implements
34556     to always fail with ENOSYS.  Some functions are actually named
34557     something starting with __ and the normal name is an alias.  */
34558 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34559 choke me
34560 #else
34561 char (*f) () = $ac_func;
34562 #endif
34563 #ifdef __cplusplus
34564 }
34565 #endif
34566
34567 int
34568 main ()
34569 {
34570 return f != $ac_func;
34571   ;
34572   return 0;
34573 }
34574 _ACEOF
34575 rm -f conftest.$ac_objext conftest$ac_exeext
34576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34577   (eval $ac_link) 2>conftest.er1
34578   ac_status=$?
34579   grep -v '^ *+' conftest.er1 >conftest.err
34580   rm -f conftest.er1
34581   cat conftest.err >&5
34582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34583   (exit $ac_status); } &&
34584          { ac_try='test -z "$ac_c_werror_flag"
34585                          || test ! -s conftest.err'
34586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34587   (eval $ac_try) 2>&5
34588   ac_status=$?
34589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34590   (exit $ac_status); }; } &&
34591          { ac_try='test -s conftest$ac_exeext'
34592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34593   (eval $ac_try) 2>&5
34594   ac_status=$?
34595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34596   (exit $ac_status); }; }; then
34597   eval "$as_ac_var=yes"
34598 else
34599   echo "$as_me: failed program was:" >&5
34600 sed 's/^/| /' conftest.$ac_ext >&5
34601
34602 eval "$as_ac_var=no"
34603 fi
34604 rm -f conftest.err conftest.$ac_objext \
34605       conftest$ac_exeext conftest.$ac_ext
34606 fi
34607 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34608 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34609 if test `eval echo '${'$as_ac_var'}'` = yes; then
34610   cat >>confdefs.h <<_ACEOF
34611 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34612 _ACEOF
34613  ice_have_fprintf=yes
34614 fi
34615 done
34616
34617 if test "${ice_have_fprintf}" = yes; then
34618 echo "$as_me:$LINENO: checking for fprintf declaration in stdio.h" >&5
34619 echo $ECHO_N "checking for fprintf declaration in stdio.h... $ECHO_C" >&6
34620 if test "${ice_cv_have_fprintf_decl+set}" = set; then
34621   echo $ECHO_N "(cached) $ECHO_C" >&6
34622 else
34623
34624 ice_cv_have_fprintf_decl=no
34625 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
34626 ice_re_word='(^|[^a-zA-Z0-9_])'
34627 for header in stdio.h; do
34628 # Check for ordinary declaration
34629 cat >conftest.$ac_ext <<_ACEOF
34630 /* confdefs.h.  */
34631 _ACEOF
34632 cat confdefs.h >>conftest.$ac_ext
34633 cat >>conftest.$ac_ext <<_ACEOF
34634 /* end confdefs.h.  */
34635 #include <$header>
34636
34637 _ACEOF
34638 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34639   $EGREP "${ice_re_word}fprintf[        ]*\(" >/dev/null 2>&1; then
34640   ice_cv_have_fprintf_decl=yes
34641 fi
34642 rm -f conftest*
34643
34644 if test "$ice_cv_have_fprintf_decl" = yes; then
34645         break
34646 fi
34647 # Check for "fixed" declaration like "getpid _PARAMS((int))"
34648 cat >conftest.$ac_ext <<_ACEOF
34649 /* confdefs.h.  */
34650 _ACEOF
34651 cat confdefs.h >>conftest.$ac_ext
34652 cat >>conftest.$ac_ext <<_ACEOF
34653 /* end confdefs.h.  */
34654 #include <$header>
34655
34656 _ACEOF
34657 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34658   $EGREP "${ice_re_word}fprintf[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
34659   ice_cv_have_fprintf_decl=yes
34660 fi
34661 rm -f conftest*
34662
34663 if test "$ice_cv_have_fprintf_decl" = yes; then
34664         break
34665 fi
34666 done
34667
34668 fi
34669
34670 echo "$as_me:$LINENO: result: $ice_cv_have_fprintf_decl" >&5
34671 echo "${ECHO_T}$ice_cv_have_fprintf_decl" >&6
34672 if test "$ice_cv_have_fprintf_decl" = yes; then
34673
34674 cat >>confdefs.h <<_ACEOF
34675 #define HAVE_FPRINTF_DECL 1
34676 _ACEOF
34677
34678 fi
34679 fi
34680
34681
34682 ice_have_fputc=no
34683
34684 for ac_func in fputc
34685 do
34686 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34687 echo "$as_me:$LINENO: checking for $ac_func" >&5
34688 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34689 if eval "test \"\${$as_ac_var+set}\" = set"; then
34690   echo $ECHO_N "(cached) $ECHO_C" >&6
34691 else
34692   cat >conftest.$ac_ext <<_ACEOF
34693 /* confdefs.h.  */
34694 _ACEOF
34695 cat confdefs.h >>conftest.$ac_ext
34696 cat >>conftest.$ac_ext <<_ACEOF
34697 /* end confdefs.h.  */
34698 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34699    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34700 #define $ac_func innocuous_$ac_func
34701
34702 /* System header to define __stub macros and hopefully few prototypes,
34703     which can conflict with char $ac_func (); below.
34704     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34705     <limits.h> exists even on freestanding compilers.  */
34706
34707 #ifdef __STDC__
34708 # include <limits.h>
34709 #else
34710 # include <assert.h>
34711 #endif
34712
34713 #undef $ac_func
34714
34715 /* Override any gcc2 internal prototype to avoid an error.  */
34716 #ifdef __cplusplus
34717 extern "C"
34718 {
34719 #endif
34720 /* We use char because int might match the return type of a gcc2
34721    builtin and then its argument prototype would still apply.  */
34722 char $ac_func ();
34723 /* The GNU C library defines this for functions which it implements
34724     to always fail with ENOSYS.  Some functions are actually named
34725     something starting with __ and the normal name is an alias.  */
34726 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34727 choke me
34728 #else
34729 char (*f) () = $ac_func;
34730 #endif
34731 #ifdef __cplusplus
34732 }
34733 #endif
34734
34735 int
34736 main ()
34737 {
34738 return f != $ac_func;
34739   ;
34740   return 0;
34741 }
34742 _ACEOF
34743 rm -f conftest.$ac_objext conftest$ac_exeext
34744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34745   (eval $ac_link) 2>conftest.er1
34746   ac_status=$?
34747   grep -v '^ *+' conftest.er1 >conftest.err
34748   rm -f conftest.er1
34749   cat conftest.err >&5
34750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34751   (exit $ac_status); } &&
34752          { ac_try='test -z "$ac_c_werror_flag"
34753                          || test ! -s conftest.err'
34754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34755   (eval $ac_try) 2>&5
34756   ac_status=$?
34757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34758   (exit $ac_status); }; } &&
34759          { ac_try='test -s conftest$ac_exeext'
34760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34761   (eval $ac_try) 2>&5
34762   ac_status=$?
34763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34764   (exit $ac_status); }; }; then
34765   eval "$as_ac_var=yes"
34766 else
34767   echo "$as_me: failed program was:" >&5
34768 sed 's/^/| /' conftest.$ac_ext >&5
34769
34770 eval "$as_ac_var=no"
34771 fi
34772 rm -f conftest.err conftest.$ac_objext \
34773       conftest$ac_exeext conftest.$ac_ext
34774 fi
34775 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34776 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34777 if test `eval echo '${'$as_ac_var'}'` = yes; then
34778   cat >>confdefs.h <<_ACEOF
34779 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34780 _ACEOF
34781  ice_have_fputc=yes
34782 fi
34783 done
34784
34785 if test "${ice_have_fputc}" = yes; then
34786 echo "$as_me:$LINENO: checking for fputc declaration in stdio.h" >&5
34787 echo $ECHO_N "checking for fputc declaration in stdio.h... $ECHO_C" >&6
34788 if test "${ice_cv_have_fputc_decl+set}" = set; then
34789   echo $ECHO_N "(cached) $ECHO_C" >&6
34790 else
34791
34792 ice_cv_have_fputc_decl=no
34793 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
34794 ice_re_word='(^|[^a-zA-Z0-9_])'
34795 for header in stdio.h; do
34796 # Check for ordinary declaration
34797 cat >conftest.$ac_ext <<_ACEOF
34798 /* confdefs.h.  */
34799 _ACEOF
34800 cat confdefs.h >>conftest.$ac_ext
34801 cat >>conftest.$ac_ext <<_ACEOF
34802 /* end confdefs.h.  */
34803 #include <$header>
34804
34805 _ACEOF
34806 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34807   $EGREP "${ice_re_word}fputc[  ]*\(" >/dev/null 2>&1; then
34808   ice_cv_have_fputc_decl=yes
34809 fi
34810 rm -f conftest*
34811
34812 if test "$ice_cv_have_fputc_decl" = yes; then
34813         break
34814 fi
34815 # Check for "fixed" declaration like "getpid _PARAMS((int))"
34816 cat >conftest.$ac_ext <<_ACEOF
34817 /* confdefs.h.  */
34818 _ACEOF
34819 cat confdefs.h >>conftest.$ac_ext
34820 cat >>conftest.$ac_ext <<_ACEOF
34821 /* end confdefs.h.  */
34822 #include <$header>
34823
34824 _ACEOF
34825 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34826   $EGREP "${ice_re_word}fputc[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
34827   ice_cv_have_fputc_decl=yes
34828 fi
34829 rm -f conftest*
34830
34831 if test "$ice_cv_have_fputc_decl" = yes; then
34832         break
34833 fi
34834 done
34835
34836 fi
34837
34838 echo "$as_me:$LINENO: result: $ice_cv_have_fputc_decl" >&5
34839 echo "${ECHO_T}$ice_cv_have_fputc_decl" >&6
34840 if test "$ice_cv_have_fputc_decl" = yes; then
34841
34842 cat >>confdefs.h <<_ACEOF
34843 #define HAVE_FPUTC_DECL 1
34844 _ACEOF
34845
34846 fi
34847 fi
34848
34849
34850 ice_have_fputs=no
34851
34852 for ac_func in fputs
34853 do
34854 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34855 echo "$as_me:$LINENO: checking for $ac_func" >&5
34856 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34857 if eval "test \"\${$as_ac_var+set}\" = set"; then
34858   echo $ECHO_N "(cached) $ECHO_C" >&6
34859 else
34860   cat >conftest.$ac_ext <<_ACEOF
34861 /* confdefs.h.  */
34862 _ACEOF
34863 cat confdefs.h >>conftest.$ac_ext
34864 cat >>conftest.$ac_ext <<_ACEOF
34865 /* end confdefs.h.  */
34866 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34867    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34868 #define $ac_func innocuous_$ac_func
34869
34870 /* System header to define __stub macros and hopefully few prototypes,
34871     which can conflict with char $ac_func (); below.
34872     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34873     <limits.h> exists even on freestanding compilers.  */
34874
34875 #ifdef __STDC__
34876 # include <limits.h>
34877 #else
34878 # include <assert.h>
34879 #endif
34880
34881 #undef $ac_func
34882
34883 /* Override any gcc2 internal prototype to avoid an error.  */
34884 #ifdef __cplusplus
34885 extern "C"
34886 {
34887 #endif
34888 /* We use char because int might match the return type of a gcc2
34889    builtin and then its argument prototype would still apply.  */
34890 char $ac_func ();
34891 /* The GNU C library defines this for functions which it implements
34892     to always fail with ENOSYS.  Some functions are actually named
34893     something starting with __ and the normal name is an alias.  */
34894 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34895 choke me
34896 #else
34897 char (*f) () = $ac_func;
34898 #endif
34899 #ifdef __cplusplus
34900 }
34901 #endif
34902
34903 int
34904 main ()
34905 {
34906 return f != $ac_func;
34907   ;
34908   return 0;
34909 }
34910 _ACEOF
34911 rm -f conftest.$ac_objext conftest$ac_exeext
34912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34913   (eval $ac_link) 2>conftest.er1
34914   ac_status=$?
34915   grep -v '^ *+' conftest.er1 >conftest.err
34916   rm -f conftest.er1
34917   cat conftest.err >&5
34918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34919   (exit $ac_status); } &&
34920          { ac_try='test -z "$ac_c_werror_flag"
34921                          || test ! -s conftest.err'
34922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34923   (eval $ac_try) 2>&5
34924   ac_status=$?
34925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34926   (exit $ac_status); }; } &&
34927          { ac_try='test -s conftest$ac_exeext'
34928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34929   (eval $ac_try) 2>&5
34930   ac_status=$?
34931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34932   (exit $ac_status); }; }; then
34933   eval "$as_ac_var=yes"
34934 else
34935   echo "$as_me: failed program was:" >&5
34936 sed 's/^/| /' conftest.$ac_ext >&5
34937
34938 eval "$as_ac_var=no"
34939 fi
34940 rm -f conftest.err conftest.$ac_objext \
34941       conftest$ac_exeext conftest.$ac_ext
34942 fi
34943 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34944 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34945 if test `eval echo '${'$as_ac_var'}'` = yes; then
34946   cat >>confdefs.h <<_ACEOF
34947 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34948 _ACEOF
34949  ice_have_fputs=yes
34950 fi
34951 done
34952
34953 if test "${ice_have_fputs}" = yes; then
34954 echo "$as_me:$LINENO: checking for fputs declaration in stdio.h" >&5
34955 echo $ECHO_N "checking for fputs declaration in stdio.h... $ECHO_C" >&6
34956 if test "${ice_cv_have_fputs_decl+set}" = set; then
34957   echo $ECHO_N "(cached) $ECHO_C" >&6
34958 else
34959
34960 ice_cv_have_fputs_decl=no
34961 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
34962 ice_re_word='(^|[^a-zA-Z0-9_])'
34963 for header in stdio.h; do
34964 # Check for ordinary declaration
34965 cat >conftest.$ac_ext <<_ACEOF
34966 /* confdefs.h.  */
34967 _ACEOF
34968 cat confdefs.h >>conftest.$ac_ext
34969 cat >>conftest.$ac_ext <<_ACEOF
34970 /* end confdefs.h.  */
34971 #include <$header>
34972
34973 _ACEOF
34974 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34975   $EGREP "${ice_re_word}fputs[  ]*\(" >/dev/null 2>&1; then
34976   ice_cv_have_fputs_decl=yes
34977 fi
34978 rm -f conftest*
34979
34980 if test "$ice_cv_have_fputs_decl" = yes; then
34981         break
34982 fi
34983 # Check for "fixed" declaration like "getpid _PARAMS((int))"
34984 cat >conftest.$ac_ext <<_ACEOF
34985 /* confdefs.h.  */
34986 _ACEOF
34987 cat confdefs.h >>conftest.$ac_ext
34988 cat >>conftest.$ac_ext <<_ACEOF
34989 /* end confdefs.h.  */
34990 #include <$header>
34991
34992 _ACEOF
34993 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34994   $EGREP "${ice_re_word}fputs[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
34995   ice_cv_have_fputs_decl=yes
34996 fi
34997 rm -f conftest*
34998
34999 if test "$ice_cv_have_fputs_decl" = yes; then
35000         break
35001 fi
35002 done
35003
35004 fi
35005
35006 echo "$as_me:$LINENO: result: $ice_cv_have_fputs_decl" >&5
35007 echo "${ECHO_T}$ice_cv_have_fputs_decl" >&6
35008 if test "$ice_cv_have_fputs_decl" = yes; then
35009
35010 cat >>confdefs.h <<_ACEOF
35011 #define HAVE_FPUTS_DECL 1
35012 _ACEOF
35013
35014 fi
35015 fi
35016
35017
35018 ice_have_fread=no
35019
35020 for ac_func in fread
35021 do
35022 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35023 echo "$as_me:$LINENO: checking for $ac_func" >&5
35024 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35025 if eval "test \"\${$as_ac_var+set}\" = set"; then
35026   echo $ECHO_N "(cached) $ECHO_C" >&6
35027 else
35028   cat >conftest.$ac_ext <<_ACEOF
35029 /* confdefs.h.  */
35030 _ACEOF
35031 cat confdefs.h >>conftest.$ac_ext
35032 cat >>conftest.$ac_ext <<_ACEOF
35033 /* end confdefs.h.  */
35034 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35035    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35036 #define $ac_func innocuous_$ac_func
35037
35038 /* System header to define __stub macros and hopefully few prototypes,
35039     which can conflict with char $ac_func (); below.
35040     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35041     <limits.h> exists even on freestanding compilers.  */
35042
35043 #ifdef __STDC__
35044 # include <limits.h>
35045 #else
35046 # include <assert.h>
35047 #endif
35048
35049 #undef $ac_func
35050
35051 /* Override any gcc2 internal prototype to avoid an error.  */
35052 #ifdef __cplusplus
35053 extern "C"
35054 {
35055 #endif
35056 /* We use char because int might match the return type of a gcc2
35057    builtin and then its argument prototype would still apply.  */
35058 char $ac_func ();
35059 /* The GNU C library defines this for functions which it implements
35060     to always fail with ENOSYS.  Some functions are actually named
35061     something starting with __ and the normal name is an alias.  */
35062 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35063 choke me
35064 #else
35065 char (*f) () = $ac_func;
35066 #endif
35067 #ifdef __cplusplus
35068 }
35069 #endif
35070
35071 int
35072 main ()
35073 {
35074 return f != $ac_func;
35075   ;
35076   return 0;
35077 }
35078 _ACEOF
35079 rm -f conftest.$ac_objext conftest$ac_exeext
35080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35081   (eval $ac_link) 2>conftest.er1
35082   ac_status=$?
35083   grep -v '^ *+' conftest.er1 >conftest.err
35084   rm -f conftest.er1
35085   cat conftest.err >&5
35086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35087   (exit $ac_status); } &&
35088          { ac_try='test -z "$ac_c_werror_flag"
35089                          || test ! -s conftest.err'
35090   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35091   (eval $ac_try) 2>&5
35092   ac_status=$?
35093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35094   (exit $ac_status); }; } &&
35095          { ac_try='test -s conftest$ac_exeext'
35096   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35097   (eval $ac_try) 2>&5
35098   ac_status=$?
35099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35100   (exit $ac_status); }; }; then
35101   eval "$as_ac_var=yes"
35102 else
35103   echo "$as_me: failed program was:" >&5
35104 sed 's/^/| /' conftest.$ac_ext >&5
35105
35106 eval "$as_ac_var=no"
35107 fi
35108 rm -f conftest.err conftest.$ac_objext \
35109       conftest$ac_exeext conftest.$ac_ext
35110 fi
35111 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35112 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35113 if test `eval echo '${'$as_ac_var'}'` = yes; then
35114   cat >>confdefs.h <<_ACEOF
35115 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35116 _ACEOF
35117  ice_have_fread=yes
35118 fi
35119 done
35120
35121 if test "${ice_have_fread}" = yes; then
35122 echo "$as_me:$LINENO: checking for fread declaration in stdio.h stdlib.h" >&5
35123 echo $ECHO_N "checking for fread declaration in stdio.h stdlib.h... $ECHO_C" >&6
35124 if test "${ice_cv_have_fread_decl+set}" = set; then
35125   echo $ECHO_N "(cached) $ECHO_C" >&6
35126 else
35127
35128 ice_cv_have_fread_decl=no
35129 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
35130 ice_re_word='(^|[^a-zA-Z0-9_])'
35131 for header in stdio.h stdlib.h; do
35132 # Check for ordinary declaration
35133 cat >conftest.$ac_ext <<_ACEOF
35134 /* confdefs.h.  */
35135 _ACEOF
35136 cat confdefs.h >>conftest.$ac_ext
35137 cat >>conftest.$ac_ext <<_ACEOF
35138 /* end confdefs.h.  */
35139 #include <$header>
35140
35141 _ACEOF
35142 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35143   $EGREP "${ice_re_word}fread[  ]*\(" >/dev/null 2>&1; then
35144   ice_cv_have_fread_decl=yes
35145 fi
35146 rm -f conftest*
35147
35148 if test "$ice_cv_have_fread_decl" = yes; then
35149         break
35150 fi
35151 # Check for "fixed" declaration like "getpid _PARAMS((int))"
35152 cat >conftest.$ac_ext <<_ACEOF
35153 /* confdefs.h.  */
35154 _ACEOF
35155 cat confdefs.h >>conftest.$ac_ext
35156 cat >>conftest.$ac_ext <<_ACEOF
35157 /* end confdefs.h.  */
35158 #include <$header>
35159
35160 _ACEOF
35161 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35162   $EGREP "${ice_re_word}fread[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
35163   ice_cv_have_fread_decl=yes
35164 fi
35165 rm -f conftest*
35166
35167 if test "$ice_cv_have_fread_decl" = yes; then
35168         break
35169 fi
35170 done
35171
35172 fi
35173
35174 echo "$as_me:$LINENO: result: $ice_cv_have_fread_decl" >&5
35175 echo "${ECHO_T}$ice_cv_have_fread_decl" >&6
35176 if test "$ice_cv_have_fread_decl" = yes; then
35177
35178 cat >>confdefs.h <<_ACEOF
35179 #define HAVE_FREAD_DECL 1
35180 _ACEOF
35181
35182 fi
35183 fi
35184
35185
35186 ice_have_fseek=no
35187
35188 for ac_func in fseek
35189 do
35190 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35191 echo "$as_me:$LINENO: checking for $ac_func" >&5
35192 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35193 if eval "test \"\${$as_ac_var+set}\" = set"; then
35194   echo $ECHO_N "(cached) $ECHO_C" >&6
35195 else
35196   cat >conftest.$ac_ext <<_ACEOF
35197 /* confdefs.h.  */
35198 _ACEOF
35199 cat confdefs.h >>conftest.$ac_ext
35200 cat >>conftest.$ac_ext <<_ACEOF
35201 /* end confdefs.h.  */
35202 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35203    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35204 #define $ac_func innocuous_$ac_func
35205
35206 /* System header to define __stub macros and hopefully few prototypes,
35207     which can conflict with char $ac_func (); below.
35208     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35209     <limits.h> exists even on freestanding compilers.  */
35210
35211 #ifdef __STDC__
35212 # include <limits.h>
35213 #else
35214 # include <assert.h>
35215 #endif
35216
35217 #undef $ac_func
35218
35219 /* Override any gcc2 internal prototype to avoid an error.  */
35220 #ifdef __cplusplus
35221 extern "C"
35222 {
35223 #endif
35224 /* We use char because int might match the return type of a gcc2
35225    builtin and then its argument prototype would still apply.  */
35226 char $ac_func ();
35227 /* The GNU C library defines this for functions which it implements
35228     to always fail with ENOSYS.  Some functions are actually named
35229     something starting with __ and the normal name is an alias.  */
35230 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35231 choke me
35232 #else
35233 char (*f) () = $ac_func;
35234 #endif
35235 #ifdef __cplusplus
35236 }
35237 #endif
35238
35239 int
35240 main ()
35241 {
35242 return f != $ac_func;
35243   ;
35244   return 0;
35245 }
35246 _ACEOF
35247 rm -f conftest.$ac_objext conftest$ac_exeext
35248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35249   (eval $ac_link) 2>conftest.er1
35250   ac_status=$?
35251   grep -v '^ *+' conftest.er1 >conftest.err
35252   rm -f conftest.er1
35253   cat conftest.err >&5
35254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35255   (exit $ac_status); } &&
35256          { ac_try='test -z "$ac_c_werror_flag"
35257                          || test ! -s conftest.err'
35258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35259   (eval $ac_try) 2>&5
35260   ac_status=$?
35261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35262   (exit $ac_status); }; } &&
35263          { ac_try='test -s conftest$ac_exeext'
35264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35265   (eval $ac_try) 2>&5
35266   ac_status=$?
35267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35268   (exit $ac_status); }; }; then
35269   eval "$as_ac_var=yes"
35270 else
35271   echo "$as_me: failed program was:" >&5
35272 sed 's/^/| /' conftest.$ac_ext >&5
35273
35274 eval "$as_ac_var=no"
35275 fi
35276 rm -f conftest.err conftest.$ac_objext \
35277       conftest$ac_exeext conftest.$ac_ext
35278 fi
35279 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35280 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35281 if test `eval echo '${'$as_ac_var'}'` = yes; then
35282   cat >>confdefs.h <<_ACEOF
35283 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35284 _ACEOF
35285  ice_have_fseek=yes
35286 fi
35287 done
35288
35289 if test "${ice_have_fseek}" = yes; then
35290 echo "$as_me:$LINENO: checking for fseek declaration in stdio.h" >&5
35291 echo $ECHO_N "checking for fseek declaration in stdio.h... $ECHO_C" >&6
35292 if test "${ice_cv_have_fseek_decl+set}" = set; then
35293   echo $ECHO_N "(cached) $ECHO_C" >&6
35294 else
35295
35296 ice_cv_have_fseek_decl=no
35297 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
35298 ice_re_word='(^|[^a-zA-Z0-9_])'
35299 for header in stdio.h; do
35300 # Check for ordinary declaration
35301 cat >conftest.$ac_ext <<_ACEOF
35302 /* confdefs.h.  */
35303 _ACEOF
35304 cat confdefs.h >>conftest.$ac_ext
35305 cat >>conftest.$ac_ext <<_ACEOF
35306 /* end confdefs.h.  */
35307 #include <$header>
35308
35309 _ACEOF
35310 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35311   $EGREP "${ice_re_word}fseek[  ]*\(" >/dev/null 2>&1; then
35312   ice_cv_have_fseek_decl=yes
35313 fi
35314 rm -f conftest*
35315
35316 if test "$ice_cv_have_fseek_decl" = yes; then
35317         break
35318 fi
35319 # Check for "fixed" declaration like "getpid _PARAMS((int))"
35320 cat >conftest.$ac_ext <<_ACEOF
35321 /* confdefs.h.  */
35322 _ACEOF
35323 cat confdefs.h >>conftest.$ac_ext
35324 cat >>conftest.$ac_ext <<_ACEOF
35325 /* end confdefs.h.  */
35326 #include <$header>
35327
35328 _ACEOF
35329 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35330   $EGREP "${ice_re_word}fseek[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
35331   ice_cv_have_fseek_decl=yes
35332 fi
35333 rm -f conftest*
35334
35335 if test "$ice_cv_have_fseek_decl" = yes; then
35336         break
35337 fi
35338 done
35339
35340 fi
35341
35342 echo "$as_me:$LINENO: result: $ice_cv_have_fseek_decl" >&5
35343 echo "${ECHO_T}$ice_cv_have_fseek_decl" >&6
35344 if test "$ice_cv_have_fseek_decl" = yes; then
35345
35346 cat >>confdefs.h <<_ACEOF
35347 #define HAVE_FSEEK_DECL 1
35348 _ACEOF
35349
35350 fi
35351 fi
35352
35353
35354 ice_have_fwrite=no
35355
35356 for ac_func in fwrite
35357 do
35358 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35359 echo "$as_me:$LINENO: checking for $ac_func" >&5
35360 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35361 if eval "test \"\${$as_ac_var+set}\" = set"; then
35362   echo $ECHO_N "(cached) $ECHO_C" >&6
35363 else
35364   cat >conftest.$ac_ext <<_ACEOF
35365 /* confdefs.h.  */
35366 _ACEOF
35367 cat confdefs.h >>conftest.$ac_ext
35368 cat >>conftest.$ac_ext <<_ACEOF
35369 /* end confdefs.h.  */
35370 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35371    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35372 #define $ac_func innocuous_$ac_func
35373
35374 /* System header to define __stub macros and hopefully few prototypes,
35375     which can conflict with char $ac_func (); below.
35376     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35377     <limits.h> exists even on freestanding compilers.  */
35378
35379 #ifdef __STDC__
35380 # include <limits.h>
35381 #else
35382 # include <assert.h>
35383 #endif
35384
35385 #undef $ac_func
35386
35387 /* Override any gcc2 internal prototype to avoid an error.  */
35388 #ifdef __cplusplus
35389 extern "C"
35390 {
35391 #endif
35392 /* We use char because int might match the return type of a gcc2
35393    builtin and then its argument prototype would still apply.  */
35394 char $ac_func ();
35395 /* The GNU C library defines this for functions which it implements
35396     to always fail with ENOSYS.  Some functions are actually named
35397     something starting with __ and the normal name is an alias.  */
35398 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35399 choke me
35400 #else
35401 char (*f) () = $ac_func;
35402 #endif
35403 #ifdef __cplusplus
35404 }
35405 #endif
35406
35407 int
35408 main ()
35409 {
35410 return f != $ac_func;
35411   ;
35412   return 0;
35413 }
35414 _ACEOF
35415 rm -f conftest.$ac_objext conftest$ac_exeext
35416 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35417   (eval $ac_link) 2>conftest.er1
35418   ac_status=$?
35419   grep -v '^ *+' conftest.er1 >conftest.err
35420   rm -f conftest.er1
35421   cat conftest.err >&5
35422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35423   (exit $ac_status); } &&
35424          { ac_try='test -z "$ac_c_werror_flag"
35425                          || test ! -s conftest.err'
35426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35427   (eval $ac_try) 2>&5
35428   ac_status=$?
35429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35430   (exit $ac_status); }; } &&
35431          { ac_try='test -s conftest$ac_exeext'
35432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35433   (eval $ac_try) 2>&5
35434   ac_status=$?
35435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35436   (exit $ac_status); }; }; then
35437   eval "$as_ac_var=yes"
35438 else
35439   echo "$as_me: failed program was:" >&5
35440 sed 's/^/| /' conftest.$ac_ext >&5
35441
35442 eval "$as_ac_var=no"
35443 fi
35444 rm -f conftest.err conftest.$ac_objext \
35445       conftest$ac_exeext conftest.$ac_ext
35446 fi
35447 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35448 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35449 if test `eval echo '${'$as_ac_var'}'` = yes; then
35450   cat >>confdefs.h <<_ACEOF
35451 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35452 _ACEOF
35453  ice_have_fwrite=yes
35454 fi
35455 done
35456
35457 if test "${ice_have_fwrite}" = yes; then
35458 echo "$as_me:$LINENO: checking for fwrite declaration in stdio.h stdlib.h" >&5
35459 echo $ECHO_N "checking for fwrite declaration in stdio.h stdlib.h... $ECHO_C" >&6
35460 if test "${ice_cv_have_fwrite_decl+set}" = set; then
35461   echo $ECHO_N "(cached) $ECHO_C" >&6
35462 else
35463
35464 ice_cv_have_fwrite_decl=no
35465 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
35466 ice_re_word='(^|[^a-zA-Z0-9_])'
35467 for header in stdio.h stdlib.h; do
35468 # Check for ordinary declaration
35469 cat >conftest.$ac_ext <<_ACEOF
35470 /* confdefs.h.  */
35471 _ACEOF
35472 cat confdefs.h >>conftest.$ac_ext
35473 cat >>conftest.$ac_ext <<_ACEOF
35474 /* end confdefs.h.  */
35475 #include <$header>
35476
35477 _ACEOF
35478 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35479   $EGREP "${ice_re_word}fwrite[         ]*\(" >/dev/null 2>&1; then
35480   ice_cv_have_fwrite_decl=yes
35481 fi
35482 rm -f conftest*
35483
35484 if test "$ice_cv_have_fwrite_decl" = yes; then
35485         break
35486 fi
35487 # Check for "fixed" declaration like "getpid _PARAMS((int))"
35488 cat >conftest.$ac_ext <<_ACEOF
35489 /* confdefs.h.  */
35490 _ACEOF
35491 cat confdefs.h >>conftest.$ac_ext
35492 cat >>conftest.$ac_ext <<_ACEOF
35493 /* end confdefs.h.  */
35494 #include <$header>
35495
35496 _ACEOF
35497 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35498   $EGREP "${ice_re_word}fwrite[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
35499   ice_cv_have_fwrite_decl=yes
35500 fi
35501 rm -f conftest*
35502
35503 if test "$ice_cv_have_fwrite_decl" = yes; then
35504         break
35505 fi
35506 done
35507
35508 fi
35509
35510 echo "$as_me:$LINENO: result: $ice_cv_have_fwrite_decl" >&5
35511 echo "${ECHO_T}$ice_cv_have_fwrite_decl" >&6
35512 if test "$ice_cv_have_fwrite_decl" = yes; then
35513
35514 cat >>confdefs.h <<_ACEOF
35515 #define HAVE_FWRITE_DECL 1
35516 _ACEOF
35517
35518 fi
35519 fi
35520
35521
35522 for ac_func in getcwd
35523 do
35524 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35525 echo "$as_me:$LINENO: checking for $ac_func" >&5
35526 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35527 if eval "test \"\${$as_ac_var+set}\" = set"; then
35528   echo $ECHO_N "(cached) $ECHO_C" >&6
35529 else
35530   cat >conftest.$ac_ext <<_ACEOF
35531 /* confdefs.h.  */
35532 _ACEOF
35533 cat confdefs.h >>conftest.$ac_ext
35534 cat >>conftest.$ac_ext <<_ACEOF
35535 /* end confdefs.h.  */
35536 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35537    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35538 #define $ac_func innocuous_$ac_func
35539
35540 /* System header to define __stub macros and hopefully few prototypes,
35541     which can conflict with char $ac_func (); below.
35542     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35543     <limits.h> exists even on freestanding compilers.  */
35544
35545 #ifdef __STDC__
35546 # include <limits.h>
35547 #else
35548 # include <assert.h>
35549 #endif
35550
35551 #undef $ac_func
35552
35553 /* Override any gcc2 internal prototype to avoid an error.  */
35554 #ifdef __cplusplus
35555 extern "C"
35556 {
35557 #endif
35558 /* We use char because int might match the return type of a gcc2
35559    builtin and then its argument prototype would still apply.  */
35560 char $ac_func ();
35561 /* The GNU C library defines this for functions which it implements
35562     to always fail with ENOSYS.  Some functions are actually named
35563     something starting with __ and the normal name is an alias.  */
35564 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35565 choke me
35566 #else
35567 char (*f) () = $ac_func;
35568 #endif
35569 #ifdef __cplusplus
35570 }
35571 #endif
35572
35573 int
35574 main ()
35575 {
35576 return f != $ac_func;
35577   ;
35578   return 0;
35579 }
35580 _ACEOF
35581 rm -f conftest.$ac_objext conftest$ac_exeext
35582 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35583   (eval $ac_link) 2>conftest.er1
35584   ac_status=$?
35585   grep -v '^ *+' conftest.er1 >conftest.err
35586   rm -f conftest.er1
35587   cat conftest.err >&5
35588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35589   (exit $ac_status); } &&
35590          { ac_try='test -z "$ac_c_werror_flag"
35591                          || test ! -s conftest.err'
35592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35593   (eval $ac_try) 2>&5
35594   ac_status=$?
35595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35596   (exit $ac_status); }; } &&
35597          { ac_try='test -s conftest$ac_exeext'
35598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35599   (eval $ac_try) 2>&5
35600   ac_status=$?
35601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35602   (exit $ac_status); }; }; then
35603   eval "$as_ac_var=yes"
35604 else
35605   echo "$as_me: failed program was:" >&5
35606 sed 's/^/| /' conftest.$ac_ext >&5
35607
35608 eval "$as_ac_var=no"
35609 fi
35610 rm -f conftest.err conftest.$ac_objext \
35611       conftest$ac_exeext conftest.$ac_ext
35612 fi
35613 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35614 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35615 if test `eval echo '${'$as_ac_var'}'` = yes; then
35616   cat >>confdefs.h <<_ACEOF
35617 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35618 _ACEOF
35619
35620 else
35621   case $LIBOBJS in
35622     "$ac_func.$ac_objext"   | \
35623   *" $ac_func.$ac_objext"   | \
35624     "$ac_func.$ac_objext "* | \
35625   *" $ac_func.$ac_objext "* ) ;;
35626   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
35627 esac
35628
35629 fi
35630 done
35631
35632
35633
35634 for ac_func in getfsent
35635 do
35636 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35637 echo "$as_me:$LINENO: checking for $ac_func" >&5
35638 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35639 if eval "test \"\${$as_ac_var+set}\" = set"; then
35640   echo $ECHO_N "(cached) $ECHO_C" >&6
35641 else
35642   cat >conftest.$ac_ext <<_ACEOF
35643 /* confdefs.h.  */
35644 _ACEOF
35645 cat confdefs.h >>conftest.$ac_ext
35646 cat >>conftest.$ac_ext <<_ACEOF
35647 /* end confdefs.h.  */
35648 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35649    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35650 #define $ac_func innocuous_$ac_func
35651
35652 /* System header to define __stub macros and hopefully few prototypes,
35653     which can conflict with char $ac_func (); below.
35654     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35655     <limits.h> exists even on freestanding compilers.  */
35656
35657 #ifdef __STDC__
35658 # include <limits.h>
35659 #else
35660 # include <assert.h>
35661 #endif
35662
35663 #undef $ac_func
35664
35665 /* Override any gcc2 internal prototype to avoid an error.  */
35666 #ifdef __cplusplus
35667 extern "C"
35668 {
35669 #endif
35670 /* We use char because int might match the return type of a gcc2
35671    builtin and then its argument prototype would still apply.  */
35672 char $ac_func ();
35673 /* The GNU C library defines this for functions which it implements
35674     to always fail with ENOSYS.  Some functions are actually named
35675     something starting with __ and the normal name is an alias.  */
35676 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35677 choke me
35678 #else
35679 char (*f) () = $ac_func;
35680 #endif
35681 #ifdef __cplusplus
35682 }
35683 #endif
35684
35685 int
35686 main ()
35687 {
35688 return f != $ac_func;
35689   ;
35690   return 0;
35691 }
35692 _ACEOF
35693 rm -f conftest.$ac_objext conftest$ac_exeext
35694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35695   (eval $ac_link) 2>conftest.er1
35696   ac_status=$?
35697   grep -v '^ *+' conftest.er1 >conftest.err
35698   rm -f conftest.er1
35699   cat conftest.err >&5
35700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35701   (exit $ac_status); } &&
35702          { ac_try='test -z "$ac_c_werror_flag"
35703                          || test ! -s conftest.err'
35704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35705   (eval $ac_try) 2>&5
35706   ac_status=$?
35707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35708   (exit $ac_status); }; } &&
35709          { ac_try='test -s conftest$ac_exeext'
35710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35711   (eval $ac_try) 2>&5
35712   ac_status=$?
35713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35714   (exit $ac_status); }; }; then
35715   eval "$as_ac_var=yes"
35716 else
35717   echo "$as_me: failed program was:" >&5
35718 sed 's/^/| /' conftest.$ac_ext >&5
35719
35720 eval "$as_ac_var=no"
35721 fi
35722 rm -f conftest.err conftest.$ac_objext \
35723       conftest$ac_exeext conftest.$ac_ext
35724 fi
35725 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35726 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35727 if test `eval echo '${'$as_ac_var'}'` = yes; then
35728   cat >>confdefs.h <<_ACEOF
35729 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35730 _ACEOF
35731
35732 fi
35733 done
35734
35735
35736 ice_have_gethostname=no
35737
35738 for ac_func in gethostname
35739 do
35740 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35741 echo "$as_me:$LINENO: checking for $ac_func" >&5
35742 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35743 if eval "test \"\${$as_ac_var+set}\" = set"; then
35744   echo $ECHO_N "(cached) $ECHO_C" >&6
35745 else
35746   cat >conftest.$ac_ext <<_ACEOF
35747 /* confdefs.h.  */
35748 _ACEOF
35749 cat confdefs.h >>conftest.$ac_ext
35750 cat >>conftest.$ac_ext <<_ACEOF
35751 /* end confdefs.h.  */
35752 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35753    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35754 #define $ac_func innocuous_$ac_func
35755
35756 /* System header to define __stub macros and hopefully few prototypes,
35757     which can conflict with char $ac_func (); below.
35758     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35759     <limits.h> exists even on freestanding compilers.  */
35760
35761 #ifdef __STDC__
35762 # include <limits.h>
35763 #else
35764 # include <assert.h>
35765 #endif
35766
35767 #undef $ac_func
35768
35769 /* Override any gcc2 internal prototype to avoid an error.  */
35770 #ifdef __cplusplus
35771 extern "C"
35772 {
35773 #endif
35774 /* We use char because int might match the return type of a gcc2
35775    builtin and then its argument prototype would still apply.  */
35776 char $ac_func ();
35777 /* The GNU C library defines this for functions which it implements
35778     to always fail with ENOSYS.  Some functions are actually named
35779     something starting with __ and the normal name is an alias.  */
35780 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35781 choke me
35782 #else
35783 char (*f) () = $ac_func;
35784 #endif
35785 #ifdef __cplusplus
35786 }
35787 #endif
35788
35789 int
35790 main ()
35791 {
35792 return f != $ac_func;
35793   ;
35794   return 0;
35795 }
35796 _ACEOF
35797 rm -f conftest.$ac_objext conftest$ac_exeext
35798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35799   (eval $ac_link) 2>conftest.er1
35800   ac_status=$?
35801   grep -v '^ *+' conftest.er1 >conftest.err
35802   rm -f conftest.er1
35803   cat conftest.err >&5
35804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35805   (exit $ac_status); } &&
35806          { ac_try='test -z "$ac_c_werror_flag"
35807                          || test ! -s conftest.err'
35808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35809   (eval $ac_try) 2>&5
35810   ac_status=$?
35811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35812   (exit $ac_status); }; } &&
35813          { ac_try='test -s conftest$ac_exeext'
35814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35815   (eval $ac_try) 2>&5
35816   ac_status=$?
35817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35818   (exit $ac_status); }; }; then
35819   eval "$as_ac_var=yes"
35820 else
35821   echo "$as_me: failed program was:" >&5
35822 sed 's/^/| /' conftest.$ac_ext >&5
35823
35824 eval "$as_ac_var=no"
35825 fi
35826 rm -f conftest.err conftest.$ac_objext \
35827       conftest$ac_exeext conftest.$ac_ext
35828 fi
35829 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35830 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35831 if test `eval echo '${'$as_ac_var'}'` = yes; then
35832   cat >>confdefs.h <<_ACEOF
35833 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35834 _ACEOF
35835  ice_have_gethostname=yes
35836 fi
35837 done
35838
35839 if test "${ice_have_gethostname}" = yes; then
35840 echo "$as_me:$LINENO: checking for gethostname declaration in unistd.h" >&5
35841 echo $ECHO_N "checking for gethostname declaration in unistd.h... $ECHO_C" >&6
35842 if test "${ice_cv_have_gethostname_decl+set}" = set; then
35843   echo $ECHO_N "(cached) $ECHO_C" >&6
35844 else
35845
35846 ice_cv_have_gethostname_decl=no
35847 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
35848 ice_re_word='(^|[^a-zA-Z0-9_])'
35849 for header in unistd.h; do
35850 # Check for ordinary declaration
35851 cat >conftest.$ac_ext <<_ACEOF
35852 /* confdefs.h.  */
35853 _ACEOF
35854 cat confdefs.h >>conftest.$ac_ext
35855 cat >>conftest.$ac_ext <<_ACEOF
35856 /* end confdefs.h.  */
35857 #include <$header>
35858
35859 _ACEOF
35860 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35861   $EGREP "${ice_re_word}gethostname[    ]*\(" >/dev/null 2>&1; then
35862   ice_cv_have_gethostname_decl=yes
35863 fi
35864 rm -f conftest*
35865
35866 if test "$ice_cv_have_gethostname_decl" = yes; then
35867         break
35868 fi
35869 # Check for "fixed" declaration like "getpid _PARAMS((int))"
35870 cat >conftest.$ac_ext <<_ACEOF
35871 /* confdefs.h.  */
35872 _ACEOF
35873 cat confdefs.h >>conftest.$ac_ext
35874 cat >>conftest.$ac_ext <<_ACEOF
35875 /* end confdefs.h.  */
35876 #include <$header>
35877
35878 _ACEOF
35879 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35880   $EGREP "${ice_re_word}gethostname[    ]*$ice_re_params\(\(" >/dev/null 2>&1; then
35881   ice_cv_have_gethostname_decl=yes
35882 fi
35883 rm -f conftest*
35884
35885 if test "$ice_cv_have_gethostname_decl" = yes; then
35886         break
35887 fi
35888 done
35889
35890 fi
35891
35892 echo "$as_me:$LINENO: result: $ice_cv_have_gethostname_decl" >&5
35893 echo "${ECHO_T}$ice_cv_have_gethostname_decl" >&6
35894 if test "$ice_cv_have_gethostname_decl" = yes; then
35895
35896 cat >>confdefs.h <<_ACEOF
35897 #define HAVE_GETHOSTNAME_DECL 1
35898 _ACEOF
35899
35900 fi
35901 fi
35902
35903 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
35904 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
35905 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
35906 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
35907   echo $ECHO_N "(cached) $ECHO_C" >&6
35908 else
35909   ac_check_lib_save_LIBS=$LIBS
35910 LIBS="-lsun  $LIBS"
35911 cat >conftest.$ac_ext <<_ACEOF
35912 /* confdefs.h.  */
35913 _ACEOF
35914 cat confdefs.h >>conftest.$ac_ext
35915 cat >>conftest.$ac_ext <<_ACEOF
35916 /* end confdefs.h.  */
35917
35918 /* Override any gcc2 internal prototype to avoid an error.  */
35919 #ifdef __cplusplus
35920 extern "C"
35921 #endif
35922 /* We use char because int might match the return type of a gcc2
35923    builtin and then its argument prototype would still apply.  */
35924 char getmntent ();
35925 int
35926 main ()
35927 {
35928 getmntent ();
35929   ;
35930   return 0;
35931 }
35932 _ACEOF
35933 rm -f conftest.$ac_objext conftest$ac_exeext
35934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35935   (eval $ac_link) 2>conftest.er1
35936   ac_status=$?
35937   grep -v '^ *+' conftest.er1 >conftest.err
35938   rm -f conftest.er1
35939   cat conftest.err >&5
35940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35941   (exit $ac_status); } &&
35942          { ac_try='test -z "$ac_c_werror_flag"
35943                          || test ! -s conftest.err'
35944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35945   (eval $ac_try) 2>&5
35946   ac_status=$?
35947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35948   (exit $ac_status); }; } &&
35949          { ac_try='test -s conftest$ac_exeext'
35950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35951   (eval $ac_try) 2>&5
35952   ac_status=$?
35953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35954   (exit $ac_status); }; }; then
35955   ac_cv_lib_sun_getmntent=yes
35956 else
35957   echo "$as_me: failed program was:" >&5
35958 sed 's/^/| /' conftest.$ac_ext >&5
35959
35960 ac_cv_lib_sun_getmntent=no
35961 fi
35962 rm -f conftest.err conftest.$ac_objext \
35963       conftest$ac_exeext conftest.$ac_ext
35964 LIBS=$ac_check_lib_save_LIBS
35965 fi
35966 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
35967 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
35968 if test $ac_cv_lib_sun_getmntent = yes; then
35969   LIBS="-lsun $LIBS"
35970 else
35971   echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
35972 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
35973 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
35974   echo $ECHO_N "(cached) $ECHO_C" >&6
35975 else
35976   ac_check_lib_save_LIBS=$LIBS
35977 LIBS="-lseq  $LIBS"
35978 cat >conftest.$ac_ext <<_ACEOF
35979 /* confdefs.h.  */
35980 _ACEOF
35981 cat confdefs.h >>conftest.$ac_ext
35982 cat >>conftest.$ac_ext <<_ACEOF
35983 /* end confdefs.h.  */
35984
35985 /* Override any gcc2 internal prototype to avoid an error.  */
35986 #ifdef __cplusplus
35987 extern "C"
35988 #endif
35989 /* We use char because int might match the return type of a gcc2
35990    builtin and then its argument prototype would still apply.  */
35991 char getmntent ();
35992 int
35993 main ()
35994 {
35995 getmntent ();
35996   ;
35997   return 0;
35998 }
35999 _ACEOF
36000 rm -f conftest.$ac_objext conftest$ac_exeext
36001 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36002   (eval $ac_link) 2>conftest.er1
36003   ac_status=$?
36004   grep -v '^ *+' conftest.er1 >conftest.err
36005   rm -f conftest.er1
36006   cat conftest.err >&5
36007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36008   (exit $ac_status); } &&
36009          { ac_try='test -z "$ac_c_werror_flag"
36010                          || test ! -s conftest.err'
36011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36012   (eval $ac_try) 2>&5
36013   ac_status=$?
36014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36015   (exit $ac_status); }; } &&
36016          { ac_try='test -s conftest$ac_exeext'
36017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36018   (eval $ac_try) 2>&5
36019   ac_status=$?
36020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36021   (exit $ac_status); }; }; then
36022   ac_cv_lib_seq_getmntent=yes
36023 else
36024   echo "$as_me: failed program was:" >&5
36025 sed 's/^/| /' conftest.$ac_ext >&5
36026
36027 ac_cv_lib_seq_getmntent=no
36028 fi
36029 rm -f conftest.err conftest.$ac_objext \
36030       conftest$ac_exeext conftest.$ac_ext
36031 LIBS=$ac_check_lib_save_LIBS
36032 fi
36033 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
36034 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
36035 if test $ac_cv_lib_seq_getmntent = yes; then
36036   LIBS="-lseq $LIBS"
36037 else
36038   echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
36039 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
36040 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
36041   echo $ECHO_N "(cached) $ECHO_C" >&6
36042 else
36043   ac_check_lib_save_LIBS=$LIBS
36044 LIBS="-lgen  $LIBS"
36045 cat >conftest.$ac_ext <<_ACEOF
36046 /* confdefs.h.  */
36047 _ACEOF
36048 cat confdefs.h >>conftest.$ac_ext
36049 cat >>conftest.$ac_ext <<_ACEOF
36050 /* end confdefs.h.  */
36051
36052 /* Override any gcc2 internal prototype to avoid an error.  */
36053 #ifdef __cplusplus
36054 extern "C"
36055 #endif
36056 /* We use char because int might match the return type of a gcc2
36057    builtin and then its argument prototype would still apply.  */
36058 char getmntent ();
36059 int
36060 main ()
36061 {
36062 getmntent ();
36063   ;
36064   return 0;
36065 }
36066 _ACEOF
36067 rm -f conftest.$ac_objext conftest$ac_exeext
36068 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36069   (eval $ac_link) 2>conftest.er1
36070   ac_status=$?
36071   grep -v '^ *+' conftest.er1 >conftest.err
36072   rm -f conftest.er1
36073   cat conftest.err >&5
36074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36075   (exit $ac_status); } &&
36076          { ac_try='test -z "$ac_c_werror_flag"
36077                          || test ! -s conftest.err'
36078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36079   (eval $ac_try) 2>&5
36080   ac_status=$?
36081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36082   (exit $ac_status); }; } &&
36083          { ac_try='test -s conftest$ac_exeext'
36084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36085   (eval $ac_try) 2>&5
36086   ac_status=$?
36087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36088   (exit $ac_status); }; }; then
36089   ac_cv_lib_gen_getmntent=yes
36090 else
36091   echo "$as_me: failed program was:" >&5
36092 sed 's/^/| /' conftest.$ac_ext >&5
36093
36094 ac_cv_lib_gen_getmntent=no
36095 fi
36096 rm -f conftest.err conftest.$ac_objext \
36097       conftest$ac_exeext conftest.$ac_ext
36098 LIBS=$ac_check_lib_save_LIBS
36099 fi
36100 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
36101 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
36102 if test $ac_cv_lib_gen_getmntent = yes; then
36103   LIBS="-lgen $LIBS"
36104 fi
36105
36106 fi
36107
36108 fi
36109
36110
36111 for ac_func in getmntent
36112 do
36113 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36114 echo "$as_me:$LINENO: checking for $ac_func" >&5
36115 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36116 if eval "test \"\${$as_ac_var+set}\" = set"; then
36117   echo $ECHO_N "(cached) $ECHO_C" >&6
36118 else
36119   cat >conftest.$ac_ext <<_ACEOF
36120 /* confdefs.h.  */
36121 _ACEOF
36122 cat confdefs.h >>conftest.$ac_ext
36123 cat >>conftest.$ac_ext <<_ACEOF
36124 /* end confdefs.h.  */
36125 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36126    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36127 #define $ac_func innocuous_$ac_func
36128
36129 /* System header to define __stub macros and hopefully few prototypes,
36130     which can conflict with char $ac_func (); below.
36131     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36132     <limits.h> exists even on freestanding compilers.  */
36133
36134 #ifdef __STDC__
36135 # include <limits.h>
36136 #else
36137 # include <assert.h>
36138 #endif
36139
36140 #undef $ac_func
36141
36142 /* Override any gcc2 internal prototype to avoid an error.  */
36143 #ifdef __cplusplus
36144 extern "C"
36145 {
36146 #endif
36147 /* We use char because int might match the return type of a gcc2
36148    builtin and then its argument prototype would still apply.  */
36149 char $ac_func ();
36150 /* The GNU C library defines this for functions which it implements
36151     to always fail with ENOSYS.  Some functions are actually named
36152     something starting with __ and the normal name is an alias.  */
36153 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36154 choke me
36155 #else
36156 char (*f) () = $ac_func;
36157 #endif
36158 #ifdef __cplusplus
36159 }
36160 #endif
36161
36162 int
36163 main ()
36164 {
36165 return f != $ac_func;
36166   ;
36167   return 0;
36168 }
36169 _ACEOF
36170 rm -f conftest.$ac_objext conftest$ac_exeext
36171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36172   (eval $ac_link) 2>conftest.er1
36173   ac_status=$?
36174   grep -v '^ *+' conftest.er1 >conftest.err
36175   rm -f conftest.er1
36176   cat conftest.err >&5
36177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36178   (exit $ac_status); } &&
36179          { ac_try='test -z "$ac_c_werror_flag"
36180                          || test ! -s conftest.err'
36181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36182   (eval $ac_try) 2>&5
36183   ac_status=$?
36184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36185   (exit $ac_status); }; } &&
36186          { ac_try='test -s conftest$ac_exeext'
36187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36188   (eval $ac_try) 2>&5
36189   ac_status=$?
36190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36191   (exit $ac_status); }; }; then
36192   eval "$as_ac_var=yes"
36193 else
36194   echo "$as_me: failed program was:" >&5
36195 sed 's/^/| /' conftest.$ac_ext >&5
36196
36197 eval "$as_ac_var=no"
36198 fi
36199 rm -f conftest.err conftest.$ac_objext \
36200       conftest$ac_exeext conftest.$ac_ext
36201 fi
36202 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36203 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36204 if test `eval echo '${'$as_ac_var'}'` = yes; then
36205   cat >>confdefs.h <<_ACEOF
36206 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36207 _ACEOF
36208
36209 fi
36210 done
36211
36212
36213
36214 ice_have_getopt=no
36215
36216 for ac_func in getopt
36217 do
36218 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36219 echo "$as_me:$LINENO: checking for $ac_func" >&5
36220 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36221 if eval "test \"\${$as_ac_var+set}\" = set"; then
36222   echo $ECHO_N "(cached) $ECHO_C" >&6
36223 else
36224   cat >conftest.$ac_ext <<_ACEOF
36225 /* confdefs.h.  */
36226 _ACEOF
36227 cat confdefs.h >>conftest.$ac_ext
36228 cat >>conftest.$ac_ext <<_ACEOF
36229 /* end confdefs.h.  */
36230 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36231    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36232 #define $ac_func innocuous_$ac_func
36233
36234 /* System header to define __stub macros and hopefully few prototypes,
36235     which can conflict with char $ac_func (); below.
36236     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36237     <limits.h> exists even on freestanding compilers.  */
36238
36239 #ifdef __STDC__
36240 # include <limits.h>
36241 #else
36242 # include <assert.h>
36243 #endif
36244
36245 #undef $ac_func
36246
36247 /* Override any gcc2 internal prototype to avoid an error.  */
36248 #ifdef __cplusplus
36249 extern "C"
36250 {
36251 #endif
36252 /* We use char because int might match the return type of a gcc2
36253    builtin and then its argument prototype would still apply.  */
36254 char $ac_func ();
36255 /* The GNU C library defines this for functions which it implements
36256     to always fail with ENOSYS.  Some functions are actually named
36257     something starting with __ and the normal name is an alias.  */
36258 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36259 choke me
36260 #else
36261 char (*f) () = $ac_func;
36262 #endif
36263 #ifdef __cplusplus
36264 }
36265 #endif
36266
36267 int
36268 main ()
36269 {
36270 return f != $ac_func;
36271   ;
36272   return 0;
36273 }
36274 _ACEOF
36275 rm -f conftest.$ac_objext conftest$ac_exeext
36276 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36277   (eval $ac_link) 2>conftest.er1
36278   ac_status=$?
36279   grep -v '^ *+' conftest.er1 >conftest.err
36280   rm -f conftest.er1
36281   cat conftest.err >&5
36282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36283   (exit $ac_status); } &&
36284          { ac_try='test -z "$ac_c_werror_flag"
36285                          || test ! -s conftest.err'
36286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36287   (eval $ac_try) 2>&5
36288   ac_status=$?
36289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36290   (exit $ac_status); }; } &&
36291          { ac_try='test -s conftest$ac_exeext'
36292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36293   (eval $ac_try) 2>&5
36294   ac_status=$?
36295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36296   (exit $ac_status); }; }; then
36297   eval "$as_ac_var=yes"
36298 else
36299   echo "$as_me: failed program was:" >&5
36300 sed 's/^/| /' conftest.$ac_ext >&5
36301
36302 eval "$as_ac_var=no"
36303 fi
36304 rm -f conftest.err conftest.$ac_objext \
36305       conftest$ac_exeext conftest.$ac_ext
36306 fi
36307 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36308 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36309 if test `eval echo '${'$as_ac_var'}'` = yes; then
36310   cat >>confdefs.h <<_ACEOF
36311 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36312 _ACEOF
36313  ice_have_getopt=yes
36314 fi
36315 done
36316
36317 if test "${ice_have_getopt}" = yes; then
36318 echo "$as_me:$LINENO: checking for getopt declaration in stdlib.h unistd.h libc.h" >&5
36319 echo $ECHO_N "checking for getopt declaration in stdlib.h unistd.h libc.h... $ECHO_C" >&6
36320 if test "${ice_cv_have_getopt_decl+set}" = set; then
36321   echo $ECHO_N "(cached) $ECHO_C" >&6
36322 else
36323
36324 ice_cv_have_getopt_decl=no
36325 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
36326 ice_re_word='(^|[^a-zA-Z0-9_])'
36327 for header in stdlib.h unistd.h libc.h; do
36328 # Check for ordinary declaration
36329 cat >conftest.$ac_ext <<_ACEOF
36330 /* confdefs.h.  */
36331 _ACEOF
36332 cat confdefs.h >>conftest.$ac_ext
36333 cat >>conftest.$ac_ext <<_ACEOF
36334 /* end confdefs.h.  */
36335 #include <$header>
36336
36337 _ACEOF
36338 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36339   $EGREP "${ice_re_word}getopt[         ]*\(" >/dev/null 2>&1; then
36340   ice_cv_have_getopt_decl=yes
36341 fi
36342 rm -f conftest*
36343
36344 if test "$ice_cv_have_getopt_decl" = yes; then
36345         break
36346 fi
36347 # Check for "fixed" declaration like "getpid _PARAMS((int))"
36348 cat >conftest.$ac_ext <<_ACEOF
36349 /* confdefs.h.  */
36350 _ACEOF
36351 cat confdefs.h >>conftest.$ac_ext
36352 cat >>conftest.$ac_ext <<_ACEOF
36353 /* end confdefs.h.  */
36354 #include <$header>
36355
36356 _ACEOF
36357 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36358   $EGREP "${ice_re_word}getopt[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
36359   ice_cv_have_getopt_decl=yes
36360 fi
36361 rm -f conftest*
36362
36363 if test "$ice_cv_have_getopt_decl" = yes; then
36364         break
36365 fi
36366 done
36367
36368 fi
36369
36370 echo "$as_me:$LINENO: result: $ice_cv_have_getopt_decl" >&5
36371 echo "${ECHO_T}$ice_cv_have_getopt_decl" >&6
36372 if test "$ice_cv_have_getopt_decl" = yes; then
36373
36374 cat >>confdefs.h <<_ACEOF
36375 #define HAVE_GETOPT_DECL 1
36376 _ACEOF
36377
36378 fi
36379 fi
36380
36381
36382 ice_have_getpeername=no
36383
36384 for ac_func in getpeername
36385 do
36386 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36387 echo "$as_me:$LINENO: checking for $ac_func" >&5
36388 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36389 if eval "test \"\${$as_ac_var+set}\" = set"; then
36390   echo $ECHO_N "(cached) $ECHO_C" >&6
36391 else
36392   cat >conftest.$ac_ext <<_ACEOF
36393 /* confdefs.h.  */
36394 _ACEOF
36395 cat confdefs.h >>conftest.$ac_ext
36396 cat >>conftest.$ac_ext <<_ACEOF
36397 /* end confdefs.h.  */
36398 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36399    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36400 #define $ac_func innocuous_$ac_func
36401
36402 /* System header to define __stub macros and hopefully few prototypes,
36403     which can conflict with char $ac_func (); below.
36404     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36405     <limits.h> exists even on freestanding compilers.  */
36406
36407 #ifdef __STDC__
36408 # include <limits.h>
36409 #else
36410 # include <assert.h>
36411 #endif
36412
36413 #undef $ac_func
36414
36415 /* Override any gcc2 internal prototype to avoid an error.  */
36416 #ifdef __cplusplus
36417 extern "C"
36418 {
36419 #endif
36420 /* We use char because int might match the return type of a gcc2
36421    builtin and then its argument prototype would still apply.  */
36422 char $ac_func ();
36423 /* The GNU C library defines this for functions which it implements
36424     to always fail with ENOSYS.  Some functions are actually named
36425     something starting with __ and the normal name is an alias.  */
36426 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36427 choke me
36428 #else
36429 char (*f) () = $ac_func;
36430 #endif
36431 #ifdef __cplusplus
36432 }
36433 #endif
36434
36435 int
36436 main ()
36437 {
36438 return f != $ac_func;
36439   ;
36440   return 0;
36441 }
36442 _ACEOF
36443 rm -f conftest.$ac_objext conftest$ac_exeext
36444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36445   (eval $ac_link) 2>conftest.er1
36446   ac_status=$?
36447   grep -v '^ *+' conftest.er1 >conftest.err
36448   rm -f conftest.er1
36449   cat conftest.err >&5
36450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36451   (exit $ac_status); } &&
36452          { ac_try='test -z "$ac_c_werror_flag"
36453                          || test ! -s conftest.err'
36454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36455   (eval $ac_try) 2>&5
36456   ac_status=$?
36457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36458   (exit $ac_status); }; } &&
36459          { ac_try='test -s conftest$ac_exeext'
36460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36461   (eval $ac_try) 2>&5
36462   ac_status=$?
36463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36464   (exit $ac_status); }; }; then
36465   eval "$as_ac_var=yes"
36466 else
36467   echo "$as_me: failed program was:" >&5
36468 sed 's/^/| /' conftest.$ac_ext >&5
36469
36470 eval "$as_ac_var=no"
36471 fi
36472 rm -f conftest.err conftest.$ac_objext \
36473       conftest$ac_exeext conftest.$ac_ext
36474 fi
36475 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36476 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36477 if test `eval echo '${'$as_ac_var'}'` = yes; then
36478   cat >>confdefs.h <<_ACEOF
36479 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36480 _ACEOF
36481  ice_have_getpeername=yes
36482 fi
36483 done
36484
36485 if test "${ice_have_getpeername}" = yes; then
36486 echo "$as_me:$LINENO: checking for getpeername declaration in sys/types.h sys/socket.h" >&5
36487 echo $ECHO_N "checking for getpeername declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
36488 if test "${ice_cv_have_getpeername_decl+set}" = set; then
36489   echo $ECHO_N "(cached) $ECHO_C" >&6
36490 else
36491
36492 ice_cv_have_getpeername_decl=no
36493 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
36494 ice_re_word='(^|[^a-zA-Z0-9_])'
36495 for header in sys/types.h sys/socket.h; do
36496 # Check for ordinary declaration
36497 cat >conftest.$ac_ext <<_ACEOF
36498 /* confdefs.h.  */
36499 _ACEOF
36500 cat confdefs.h >>conftest.$ac_ext
36501 cat >>conftest.$ac_ext <<_ACEOF
36502 /* end confdefs.h.  */
36503 #include <$header>
36504
36505 _ACEOF
36506 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36507   $EGREP "${ice_re_word}getpeername[    ]*\(" >/dev/null 2>&1; then
36508   ice_cv_have_getpeername_decl=yes
36509 fi
36510 rm -f conftest*
36511
36512 if test "$ice_cv_have_getpeername_decl" = yes; then
36513         break
36514 fi
36515 # Check for "fixed" declaration like "getpid _PARAMS((int))"
36516 cat >conftest.$ac_ext <<_ACEOF
36517 /* confdefs.h.  */
36518 _ACEOF
36519 cat confdefs.h >>conftest.$ac_ext
36520 cat >>conftest.$ac_ext <<_ACEOF
36521 /* end confdefs.h.  */
36522 #include <$header>
36523
36524 _ACEOF
36525 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36526   $EGREP "${ice_re_word}getpeername[    ]*$ice_re_params\(\(" >/dev/null 2>&1; then
36527   ice_cv_have_getpeername_decl=yes
36528 fi
36529 rm -f conftest*
36530
36531 if test "$ice_cv_have_getpeername_decl" = yes; then
36532         break
36533 fi
36534 done
36535
36536 fi
36537
36538 echo "$as_me:$LINENO: result: $ice_cv_have_getpeername_decl" >&5
36539 echo "${ECHO_T}$ice_cv_have_getpeername_decl" >&6
36540 if test "$ice_cv_have_getpeername_decl" = yes; then
36541
36542 cat >>confdefs.h <<_ACEOF
36543 #define HAVE_GETPEERNAME_DECL 1
36544 _ACEOF
36545
36546 fi
36547 fi
36548
36549
36550 for ac_func in getpgrp
36551 do
36552 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36553 echo "$as_me:$LINENO: checking for $ac_func" >&5
36554 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36555 if eval "test \"\${$as_ac_var+set}\" = set"; then
36556   echo $ECHO_N "(cached) $ECHO_C" >&6
36557 else
36558   cat >conftest.$ac_ext <<_ACEOF
36559 /* confdefs.h.  */
36560 _ACEOF
36561 cat confdefs.h >>conftest.$ac_ext
36562 cat >>conftest.$ac_ext <<_ACEOF
36563 /* end confdefs.h.  */
36564 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36565    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36566 #define $ac_func innocuous_$ac_func
36567
36568 /* System header to define __stub macros and hopefully few prototypes,
36569     which can conflict with char $ac_func (); below.
36570     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36571     <limits.h> exists even on freestanding compilers.  */
36572
36573 #ifdef __STDC__
36574 # include <limits.h>
36575 #else
36576 # include <assert.h>
36577 #endif
36578
36579 #undef $ac_func
36580
36581 /* Override any gcc2 internal prototype to avoid an error.  */
36582 #ifdef __cplusplus
36583 extern "C"
36584 {
36585 #endif
36586 /* We use char because int might match the return type of a gcc2
36587    builtin and then its argument prototype would still apply.  */
36588 char $ac_func ();
36589 /* The GNU C library defines this for functions which it implements
36590     to always fail with ENOSYS.  Some functions are actually named
36591     something starting with __ and the normal name is an alias.  */
36592 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36593 choke me
36594 #else
36595 char (*f) () = $ac_func;
36596 #endif
36597 #ifdef __cplusplus
36598 }
36599 #endif
36600
36601 int
36602 main ()
36603 {
36604 return f != $ac_func;
36605   ;
36606   return 0;
36607 }
36608 _ACEOF
36609 rm -f conftest.$ac_objext conftest$ac_exeext
36610 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36611   (eval $ac_link) 2>conftest.er1
36612   ac_status=$?
36613   grep -v '^ *+' conftest.er1 >conftest.err
36614   rm -f conftest.er1
36615   cat conftest.err >&5
36616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36617   (exit $ac_status); } &&
36618          { ac_try='test -z "$ac_c_werror_flag"
36619                          || test ! -s conftest.err'
36620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36621   (eval $ac_try) 2>&5
36622   ac_status=$?
36623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36624   (exit $ac_status); }; } &&
36625          { ac_try='test -s conftest$ac_exeext'
36626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36627   (eval $ac_try) 2>&5
36628   ac_status=$?
36629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36630   (exit $ac_status); }; }; then
36631   eval "$as_ac_var=yes"
36632 else
36633   echo "$as_me: failed program was:" >&5
36634 sed 's/^/| /' conftest.$ac_ext >&5
36635
36636 eval "$as_ac_var=no"
36637 fi
36638 rm -f conftest.err conftest.$ac_objext \
36639       conftest$ac_exeext conftest.$ac_ext
36640 fi
36641 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36642 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36643 if test `eval echo '${'$as_ac_var'}'` = yes; then
36644   cat >>confdefs.h <<_ACEOF
36645 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36646 _ACEOF
36647
36648 fi
36649 done
36650
36651 echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
36652 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
36653 if test "${ac_cv_func_getpgrp_void+set}" = set; then
36654   echo $ECHO_N "(cached) $ECHO_C" >&6
36655 else
36656   # Use it with a single arg.
36657 cat >conftest.$ac_ext <<_ACEOF
36658 /* confdefs.h.  */
36659 _ACEOF
36660 cat confdefs.h >>conftest.$ac_ext
36661 cat >>conftest.$ac_ext <<_ACEOF
36662 /* end confdefs.h.  */
36663 $ac_includes_default
36664 int
36665 main ()
36666 {
36667 getpgrp (0);
36668   ;
36669   return 0;
36670 }
36671 _ACEOF
36672 rm -f conftest.$ac_objext
36673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36674   (eval $ac_compile) 2>conftest.er1
36675   ac_status=$?
36676   grep -v '^ *+' conftest.er1 >conftest.err
36677   rm -f conftest.er1
36678   cat conftest.err >&5
36679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36680   (exit $ac_status); } &&
36681          { ac_try='test -z "$ac_c_werror_flag"
36682                          || test ! -s conftest.err'
36683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36684   (eval $ac_try) 2>&5
36685   ac_status=$?
36686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36687   (exit $ac_status); }; } &&
36688          { ac_try='test -s conftest.$ac_objext'
36689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36690   (eval $ac_try) 2>&5
36691   ac_status=$?
36692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36693   (exit $ac_status); }; }; then
36694   ac_cv_func_getpgrp_void=no
36695 else
36696   echo "$as_me: failed program was:" >&5
36697 sed 's/^/| /' conftest.$ac_ext >&5
36698
36699 ac_cv_func_getpgrp_void=yes
36700 fi
36701 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36702
36703 fi
36704 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
36705 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
36706 if test $ac_cv_func_getpgrp_void = yes; then
36707
36708 cat >>confdefs.h <<\_ACEOF
36709 #define GETPGRP_VOID 1
36710 _ACEOF
36711
36712 fi
36713
36714
36715 ice_have_getsockname=no
36716
36717 for ac_func in getsockname
36718 do
36719 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36720 echo "$as_me:$LINENO: checking for $ac_func" >&5
36721 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36722 if eval "test \"\${$as_ac_var+set}\" = set"; then
36723   echo $ECHO_N "(cached) $ECHO_C" >&6
36724 else
36725   cat >conftest.$ac_ext <<_ACEOF
36726 /* confdefs.h.  */
36727 _ACEOF
36728 cat confdefs.h >>conftest.$ac_ext
36729 cat >>conftest.$ac_ext <<_ACEOF
36730 /* end confdefs.h.  */
36731 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36732    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36733 #define $ac_func innocuous_$ac_func
36734
36735 /* System header to define __stub macros and hopefully few prototypes,
36736     which can conflict with char $ac_func (); below.
36737     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36738     <limits.h> exists even on freestanding compilers.  */
36739
36740 #ifdef __STDC__
36741 # include <limits.h>
36742 #else
36743 # include <assert.h>
36744 #endif
36745
36746 #undef $ac_func
36747
36748 /* Override any gcc2 internal prototype to avoid an error.  */
36749 #ifdef __cplusplus
36750 extern "C"
36751 {
36752 #endif
36753 /* We use char because int might match the return type of a gcc2
36754    builtin and then its argument prototype would still apply.  */
36755 char $ac_func ();
36756 /* The GNU C library defines this for functions which it implements
36757     to always fail with ENOSYS.  Some functions are actually named
36758     something starting with __ and the normal name is an alias.  */
36759 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36760 choke me
36761 #else
36762 char (*f) () = $ac_func;
36763 #endif
36764 #ifdef __cplusplus
36765 }
36766 #endif
36767
36768 int
36769 main ()
36770 {
36771 return f != $ac_func;
36772   ;
36773   return 0;
36774 }
36775 _ACEOF
36776 rm -f conftest.$ac_objext conftest$ac_exeext
36777 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36778   (eval $ac_link) 2>conftest.er1
36779   ac_status=$?
36780   grep -v '^ *+' conftest.er1 >conftest.err
36781   rm -f conftest.er1
36782   cat conftest.err >&5
36783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36784   (exit $ac_status); } &&
36785          { ac_try='test -z "$ac_c_werror_flag"
36786                          || test ! -s conftest.err'
36787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36788   (eval $ac_try) 2>&5
36789   ac_status=$?
36790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36791   (exit $ac_status); }; } &&
36792          { ac_try='test -s conftest$ac_exeext'
36793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36794   (eval $ac_try) 2>&5
36795   ac_status=$?
36796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36797   (exit $ac_status); }; }; then
36798   eval "$as_ac_var=yes"
36799 else
36800   echo "$as_me: failed program was:" >&5
36801 sed 's/^/| /' conftest.$ac_ext >&5
36802
36803 eval "$as_ac_var=no"
36804 fi
36805 rm -f conftest.err conftest.$ac_objext \
36806       conftest$ac_exeext conftest.$ac_ext
36807 fi
36808 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36809 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36810 if test `eval echo '${'$as_ac_var'}'` = yes; then
36811   cat >>confdefs.h <<_ACEOF
36812 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36813 _ACEOF
36814  ice_have_getsockname=yes
36815 fi
36816 done
36817
36818 if test "${ice_have_getsockname}" = yes; then
36819 echo "$as_me:$LINENO: checking for getsockname declaration in sys/types.h sys/socket.h" >&5
36820 echo $ECHO_N "checking for getsockname declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
36821 if test "${ice_cv_have_getsockname_decl+set}" = set; then
36822   echo $ECHO_N "(cached) $ECHO_C" >&6
36823 else
36824
36825 ice_cv_have_getsockname_decl=no
36826 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
36827 ice_re_word='(^|[^a-zA-Z0-9_])'
36828 for header in sys/types.h sys/socket.h; do
36829 # Check for ordinary declaration
36830 cat >conftest.$ac_ext <<_ACEOF
36831 /* confdefs.h.  */
36832 _ACEOF
36833 cat confdefs.h >>conftest.$ac_ext
36834 cat >>conftest.$ac_ext <<_ACEOF
36835 /* end confdefs.h.  */
36836 #include <$header>
36837
36838 _ACEOF
36839 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36840   $EGREP "${ice_re_word}getsockname[    ]*\(" >/dev/null 2>&1; then
36841   ice_cv_have_getsockname_decl=yes
36842 fi
36843 rm -f conftest*
36844
36845 if test "$ice_cv_have_getsockname_decl" = yes; then
36846         break
36847 fi
36848 # Check for "fixed" declaration like "getpid _PARAMS((int))"
36849 cat >conftest.$ac_ext <<_ACEOF
36850 /* confdefs.h.  */
36851 _ACEOF
36852 cat confdefs.h >>conftest.$ac_ext
36853 cat >>conftest.$ac_ext <<_ACEOF
36854 /* end confdefs.h.  */
36855 #include <$header>
36856
36857 _ACEOF
36858 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36859   $EGREP "${ice_re_word}getsockname[    ]*$ice_re_params\(\(" >/dev/null 2>&1; then
36860   ice_cv_have_getsockname_decl=yes
36861 fi
36862 rm -f conftest*
36863
36864 if test "$ice_cv_have_getsockname_decl" = yes; then
36865         break
36866 fi
36867 done
36868
36869 fi
36870
36871 echo "$as_me:$LINENO: result: $ice_cv_have_getsockname_decl" >&5
36872 echo "${ECHO_T}$ice_cv_have_getsockname_decl" >&6
36873 if test "$ice_cv_have_getsockname_decl" = yes; then
36874
36875 cat >>confdefs.h <<_ACEOF
36876 #define HAVE_GETSOCKNAME_DECL 1
36877 _ACEOF
36878
36879 fi
36880 fi
36881
36882
36883 ice_have_getsockopt=no
36884
36885 for ac_func in getsockopt
36886 do
36887 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36888 echo "$as_me:$LINENO: checking for $ac_func" >&5
36889 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36890 if eval "test \"\${$as_ac_var+set}\" = set"; then
36891   echo $ECHO_N "(cached) $ECHO_C" >&6
36892 else
36893   cat >conftest.$ac_ext <<_ACEOF
36894 /* confdefs.h.  */
36895 _ACEOF
36896 cat confdefs.h >>conftest.$ac_ext
36897 cat >>conftest.$ac_ext <<_ACEOF
36898 /* end confdefs.h.  */
36899 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36900    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36901 #define $ac_func innocuous_$ac_func
36902
36903 /* System header to define __stub macros and hopefully few prototypes,
36904     which can conflict with char $ac_func (); below.
36905     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36906     <limits.h> exists even on freestanding compilers.  */
36907
36908 #ifdef __STDC__
36909 # include <limits.h>
36910 #else
36911 # include <assert.h>
36912 #endif
36913
36914 #undef $ac_func
36915
36916 /* Override any gcc2 internal prototype to avoid an error.  */
36917 #ifdef __cplusplus
36918 extern "C"
36919 {
36920 #endif
36921 /* We use char because int might match the return type of a gcc2
36922    builtin and then its argument prototype would still apply.  */
36923 char $ac_func ();
36924 /* The GNU C library defines this for functions which it implements
36925     to always fail with ENOSYS.  Some functions are actually named
36926     something starting with __ and the normal name is an alias.  */
36927 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36928 choke me
36929 #else
36930 char (*f) () = $ac_func;
36931 #endif
36932 #ifdef __cplusplus
36933 }
36934 #endif
36935
36936 int
36937 main ()
36938 {
36939 return f != $ac_func;
36940   ;
36941   return 0;
36942 }
36943 _ACEOF
36944 rm -f conftest.$ac_objext conftest$ac_exeext
36945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36946   (eval $ac_link) 2>conftest.er1
36947   ac_status=$?
36948   grep -v '^ *+' conftest.er1 >conftest.err
36949   rm -f conftest.er1
36950   cat conftest.err >&5
36951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36952   (exit $ac_status); } &&
36953          { ac_try='test -z "$ac_c_werror_flag"
36954                          || test ! -s conftest.err'
36955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36956   (eval $ac_try) 2>&5
36957   ac_status=$?
36958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36959   (exit $ac_status); }; } &&
36960          { ac_try='test -s conftest$ac_exeext'
36961   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36962   (eval $ac_try) 2>&5
36963   ac_status=$?
36964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36965   (exit $ac_status); }; }; then
36966   eval "$as_ac_var=yes"
36967 else
36968   echo "$as_me: failed program was:" >&5
36969 sed 's/^/| /' conftest.$ac_ext >&5
36970
36971 eval "$as_ac_var=no"
36972 fi
36973 rm -f conftest.err conftest.$ac_objext \
36974       conftest$ac_exeext conftest.$ac_ext
36975 fi
36976 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36977 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36978 if test `eval echo '${'$as_ac_var'}'` = yes; then
36979   cat >>confdefs.h <<_ACEOF
36980 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36981 _ACEOF
36982  ice_have_getsockopt=yes
36983 fi
36984 done
36985
36986 if test "${ice_have_getsockopt}" = yes; then
36987 echo "$as_me:$LINENO: checking for getsockopt declaration in sys/types.h sys/socket.h" >&5
36988 echo $ECHO_N "checking for getsockopt declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
36989 if test "${ice_cv_have_getsockopt_decl+set}" = set; then
36990   echo $ECHO_N "(cached) $ECHO_C" >&6
36991 else
36992
36993 ice_cv_have_getsockopt_decl=no
36994 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
36995 ice_re_word='(^|[^a-zA-Z0-9_])'
36996 for header in sys/types.h sys/socket.h; do
36997 # Check for ordinary declaration
36998 cat >conftest.$ac_ext <<_ACEOF
36999 /* confdefs.h.  */
37000 _ACEOF
37001 cat confdefs.h >>conftest.$ac_ext
37002 cat >>conftest.$ac_ext <<_ACEOF
37003 /* end confdefs.h.  */
37004 #include <$header>
37005
37006 _ACEOF
37007 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37008   $EGREP "${ice_re_word}getsockopt[     ]*\(" >/dev/null 2>&1; then
37009   ice_cv_have_getsockopt_decl=yes
37010 fi
37011 rm -f conftest*
37012
37013 if test "$ice_cv_have_getsockopt_decl" = yes; then
37014         break
37015 fi
37016 # Check for "fixed" declaration like "getpid _PARAMS((int))"
37017 cat >conftest.$ac_ext <<_ACEOF
37018 /* confdefs.h.  */
37019 _ACEOF
37020 cat confdefs.h >>conftest.$ac_ext
37021 cat >>conftest.$ac_ext <<_ACEOF
37022 /* end confdefs.h.  */
37023 #include <$header>
37024
37025 _ACEOF
37026 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37027   $EGREP "${ice_re_word}getsockopt[     ]*$ice_re_params\(\(" >/dev/null 2>&1; then
37028   ice_cv_have_getsockopt_decl=yes
37029 fi
37030 rm -f conftest*
37031
37032 if test "$ice_cv_have_getsockopt_decl" = yes; then
37033         break
37034 fi
37035 done
37036
37037 fi
37038
37039 echo "$as_me:$LINENO: result: $ice_cv_have_getsockopt_decl" >&5
37040 echo "${ECHO_T}$ice_cv_have_getsockopt_decl" >&6
37041 if test "$ice_cv_have_getsockopt_decl" = yes; then
37042
37043 cat >>confdefs.h <<_ACEOF
37044 #define HAVE_GETSOCKOPT_DECL 1
37045 _ACEOF
37046
37047 fi
37048 fi
37049
37050
37051 ice_have_gettimeofday=no
37052
37053 for ac_func in gettimeofday
37054 do
37055 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37056 echo "$as_me:$LINENO: checking for $ac_func" >&5
37057 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37058 if eval "test \"\${$as_ac_var+set}\" = set"; then
37059   echo $ECHO_N "(cached) $ECHO_C" >&6
37060 else
37061   cat >conftest.$ac_ext <<_ACEOF
37062 /* confdefs.h.  */
37063 _ACEOF
37064 cat confdefs.h >>conftest.$ac_ext
37065 cat >>conftest.$ac_ext <<_ACEOF
37066 /* end confdefs.h.  */
37067 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37068    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37069 #define $ac_func innocuous_$ac_func
37070
37071 /* System header to define __stub macros and hopefully few prototypes,
37072     which can conflict with char $ac_func (); below.
37073     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37074     <limits.h> exists even on freestanding compilers.  */
37075
37076 #ifdef __STDC__
37077 # include <limits.h>
37078 #else
37079 # include <assert.h>
37080 #endif
37081
37082 #undef $ac_func
37083
37084 /* Override any gcc2 internal prototype to avoid an error.  */
37085 #ifdef __cplusplus
37086 extern "C"
37087 {
37088 #endif
37089 /* We use char because int might match the return type of a gcc2
37090    builtin and then its argument prototype would still apply.  */
37091 char $ac_func ();
37092 /* The GNU C library defines this for functions which it implements
37093     to always fail with ENOSYS.  Some functions are actually named
37094     something starting with __ and the normal name is an alias.  */
37095 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37096 choke me
37097 #else
37098 char (*f) () = $ac_func;
37099 #endif
37100 #ifdef __cplusplus
37101 }
37102 #endif
37103
37104 int
37105 main ()
37106 {
37107 return f != $ac_func;
37108   ;
37109   return 0;
37110 }
37111 _ACEOF
37112 rm -f conftest.$ac_objext conftest$ac_exeext
37113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37114   (eval $ac_link) 2>conftest.er1
37115   ac_status=$?
37116   grep -v '^ *+' conftest.er1 >conftest.err
37117   rm -f conftest.er1
37118   cat conftest.err >&5
37119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37120   (exit $ac_status); } &&
37121          { ac_try='test -z "$ac_c_werror_flag"
37122                          || test ! -s conftest.err'
37123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37124   (eval $ac_try) 2>&5
37125   ac_status=$?
37126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37127   (exit $ac_status); }; } &&
37128          { ac_try='test -s conftest$ac_exeext'
37129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37130   (eval $ac_try) 2>&5
37131   ac_status=$?
37132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37133   (exit $ac_status); }; }; then
37134   eval "$as_ac_var=yes"
37135 else
37136   echo "$as_me: failed program was:" >&5
37137 sed 's/^/| /' conftest.$ac_ext >&5
37138
37139 eval "$as_ac_var=no"
37140 fi
37141 rm -f conftest.err conftest.$ac_objext \
37142       conftest$ac_exeext conftest.$ac_ext
37143 fi
37144 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37145 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37146 if test `eval echo '${'$as_ac_var'}'` = yes; then
37147   cat >>confdefs.h <<_ACEOF
37148 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37149 _ACEOF
37150  ice_have_gettimeofday=yes
37151 fi
37152 done
37153
37154 if test "${ice_have_gettimeofday}" = yes; then
37155 echo "$as_me:$LINENO: checking for gettimeofday declaration in time.h sys/time.h" >&5
37156 echo $ECHO_N "checking for gettimeofday declaration in time.h sys/time.h... $ECHO_C" >&6
37157 if test "${ice_cv_have_gettimeofday_decl+set}" = set; then
37158   echo $ECHO_N "(cached) $ECHO_C" >&6
37159 else
37160
37161 ice_cv_have_gettimeofday_decl=no
37162 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
37163 ice_re_word='(^|[^a-zA-Z0-9_])'
37164 for header in time.h sys/time.h; do
37165 # Check for ordinary declaration
37166 cat >conftest.$ac_ext <<_ACEOF
37167 /* confdefs.h.  */
37168 _ACEOF
37169 cat confdefs.h >>conftest.$ac_ext
37170 cat >>conftest.$ac_ext <<_ACEOF
37171 /* end confdefs.h.  */
37172 #include <$header>
37173
37174 _ACEOF
37175 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37176   $EGREP "${ice_re_word}gettimeofday[   ]*\(" >/dev/null 2>&1; then
37177   ice_cv_have_gettimeofday_decl=yes
37178 fi
37179 rm -f conftest*
37180
37181 if test "$ice_cv_have_gettimeofday_decl" = yes; then
37182         break
37183 fi
37184 # Check for "fixed" declaration like "getpid _PARAMS((int))"
37185 cat >conftest.$ac_ext <<_ACEOF
37186 /* confdefs.h.  */
37187 _ACEOF
37188 cat confdefs.h >>conftest.$ac_ext
37189 cat >>conftest.$ac_ext <<_ACEOF
37190 /* end confdefs.h.  */
37191 #include <$header>
37192
37193 _ACEOF
37194 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37195   $EGREP "${ice_re_word}gettimeofday[   ]*$ice_re_params\(\(" >/dev/null 2>&1; then
37196   ice_cv_have_gettimeofday_decl=yes
37197 fi
37198 rm -f conftest*
37199
37200 if test "$ice_cv_have_gettimeofday_decl" = yes; then
37201         break
37202 fi
37203 done
37204
37205 fi
37206
37207 echo "$as_me:$LINENO: result: $ice_cv_have_gettimeofday_decl" >&5
37208 echo "${ECHO_T}$ice_cv_have_gettimeofday_decl" >&6
37209 if test "$ice_cv_have_gettimeofday_decl" = yes; then
37210
37211 cat >>confdefs.h <<_ACEOF
37212 #define HAVE_GETTIMEOFDAY_DECL 1
37213 _ACEOF
37214
37215 fi
37216 fi
37217
37218
37219
37220         echo "$as_me:$LINENO: checking for gettimeofday number of arguments" >&5
37221 echo $ECHO_N "checking for gettimeofday number of arguments... $ECHO_C" >&6
37222 if test "${amanda_cv_gettimeofday_args+set}" = set; then
37223   echo $ECHO_N "(cached) $ECHO_C" >&6
37224 else
37225
37226                 cat >conftest.$ac_ext <<_ACEOF
37227 /* confdefs.h.  */
37228 _ACEOF
37229 cat confdefs.h >>conftest.$ac_ext
37230 cat >>conftest.$ac_ext <<_ACEOF
37231 /* end confdefs.h.  */
37232
37233 #ifdef TIME_WITH_SYS_TIME
37234 #  include <sys/time.h>
37235 #  include <time.h>
37236 #else
37237 #  ifdef HAVE_SYS_TIME_H
37238 #    include <sys/time.h>
37239 #  else
37240 #    include <time.h>
37241 #  endif
37242 #endif
37243
37244 int
37245 main ()
37246 {
37247
37248                         struct timeval val;
37249                         struct timezone zone;
37250                         gettimeofday(&val, &zone);
37251
37252   ;
37253   return 0;
37254 }
37255 _ACEOF
37256 rm -f conftest.$ac_objext
37257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37258   (eval $ac_compile) 2>conftest.er1
37259   ac_status=$?
37260   grep -v '^ *+' conftest.er1 >conftest.err
37261   rm -f conftest.er1
37262   cat conftest.err >&5
37263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37264   (exit $ac_status); } &&
37265          { ac_try='test -z "$ac_c_werror_flag"
37266                          || test ! -s conftest.err'
37267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37268   (eval $ac_try) 2>&5
37269   ac_status=$?
37270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37271   (exit $ac_status); }; } &&
37272          { ac_try='test -s conftest.$ac_objext'
37273   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37274   (eval $ac_try) 2>&5
37275   ac_status=$?
37276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37277   (exit $ac_status); }; }; then
37278   amanda_cv_gettimeofday_args=2
37279 else
37280   echo "$as_me: failed program was:" >&5
37281 sed 's/^/| /' conftest.$ac_ext >&5
37282
37283 amanda_cv_gettimeofday_args=1
37284
37285 fi
37286 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37287
37288
37289 fi
37290 echo "$as_me:$LINENO: result: $amanda_cv_gettimeofday_args" >&5
37291 echo "${ECHO_T}$amanda_cv_gettimeofday_args" >&6
37292         if test "$amanda_cv_gettimeofday_args" = 2; then
37293
37294 cat >>confdefs.h <<\_ACEOF
37295 #define HAVE_TWO_ARG_GETTIMEOFDAY 1
37296 _ACEOF
37297
37298         fi
37299
37300
37301
37302
37303
37304 for ac_func in getvfsent initgroups isascii
37305 do
37306 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37307 echo "$as_me:$LINENO: checking for $ac_func" >&5
37308 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37309 if eval "test \"\${$as_ac_var+set}\" = set"; then
37310   echo $ECHO_N "(cached) $ECHO_C" >&6
37311 else
37312   cat >conftest.$ac_ext <<_ACEOF
37313 /* confdefs.h.  */
37314 _ACEOF
37315 cat confdefs.h >>conftest.$ac_ext
37316 cat >>conftest.$ac_ext <<_ACEOF
37317 /* end confdefs.h.  */
37318 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37319    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37320 #define $ac_func innocuous_$ac_func
37321
37322 /* System header to define __stub macros and hopefully few prototypes,
37323     which can conflict with char $ac_func (); below.
37324     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37325     <limits.h> exists even on freestanding compilers.  */
37326
37327 #ifdef __STDC__
37328 # include <limits.h>
37329 #else
37330 # include <assert.h>
37331 #endif
37332
37333 #undef $ac_func
37334
37335 /* Override any gcc2 internal prototype to avoid an error.  */
37336 #ifdef __cplusplus
37337 extern "C"
37338 {
37339 #endif
37340 /* We use char because int might match the return type of a gcc2
37341    builtin and then its argument prototype would still apply.  */
37342 char $ac_func ();
37343 /* The GNU C library defines this for functions which it implements
37344     to always fail with ENOSYS.  Some functions are actually named
37345     something starting with __ and the normal name is an alias.  */
37346 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37347 choke me
37348 #else
37349 char (*f) () = $ac_func;
37350 #endif
37351 #ifdef __cplusplus
37352 }
37353 #endif
37354
37355 int
37356 main ()
37357 {
37358 return f != $ac_func;
37359   ;
37360   return 0;
37361 }
37362 _ACEOF
37363 rm -f conftest.$ac_objext conftest$ac_exeext
37364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37365   (eval $ac_link) 2>conftest.er1
37366   ac_status=$?
37367   grep -v '^ *+' conftest.er1 >conftest.err
37368   rm -f conftest.er1
37369   cat conftest.err >&5
37370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37371   (exit $ac_status); } &&
37372          { ac_try='test -z "$ac_c_werror_flag"
37373                          || test ! -s conftest.err'
37374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37375   (eval $ac_try) 2>&5
37376   ac_status=$?
37377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37378   (exit $ac_status); }; } &&
37379          { ac_try='test -s conftest$ac_exeext'
37380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37381   (eval $ac_try) 2>&5
37382   ac_status=$?
37383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37384   (exit $ac_status); }; }; then
37385   eval "$as_ac_var=yes"
37386 else
37387   echo "$as_me: failed program was:" >&5
37388 sed 's/^/| /' conftest.$ac_ext >&5
37389
37390 eval "$as_ac_var=no"
37391 fi
37392 rm -f conftest.err conftest.$ac_objext \
37393       conftest$ac_exeext conftest.$ac_ext
37394 fi
37395 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37396 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37397 if test `eval echo '${'$as_ac_var'}'` = yes; then
37398   cat >>confdefs.h <<_ACEOF
37399 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37400 _ACEOF
37401
37402 fi
37403 done
37404
37405
37406 ice_have_initgroups=no
37407
37408 for ac_func in initgroups
37409 do
37410 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37411 echo "$as_me:$LINENO: checking for $ac_func" >&5
37412 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37413 if eval "test \"\${$as_ac_var+set}\" = set"; then
37414   echo $ECHO_N "(cached) $ECHO_C" >&6
37415 else
37416   cat >conftest.$ac_ext <<_ACEOF
37417 /* confdefs.h.  */
37418 _ACEOF
37419 cat confdefs.h >>conftest.$ac_ext
37420 cat >>conftest.$ac_ext <<_ACEOF
37421 /* end confdefs.h.  */
37422 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37423    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37424 #define $ac_func innocuous_$ac_func
37425
37426 /* System header to define __stub macros and hopefully few prototypes,
37427     which can conflict with char $ac_func (); below.
37428     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37429     <limits.h> exists even on freestanding compilers.  */
37430
37431 #ifdef __STDC__
37432 # include <limits.h>
37433 #else
37434 # include <assert.h>
37435 #endif
37436
37437 #undef $ac_func
37438
37439 /* Override any gcc2 internal prototype to avoid an error.  */
37440 #ifdef __cplusplus
37441 extern "C"
37442 {
37443 #endif
37444 /* We use char because int might match the return type of a gcc2
37445    builtin and then its argument prototype would still apply.  */
37446 char $ac_func ();
37447 /* The GNU C library defines this for functions which it implements
37448     to always fail with ENOSYS.  Some functions are actually named
37449     something starting with __ and the normal name is an alias.  */
37450 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37451 choke me
37452 #else
37453 char (*f) () = $ac_func;
37454 #endif
37455 #ifdef __cplusplus
37456 }
37457 #endif
37458
37459 int
37460 main ()
37461 {
37462 return f != $ac_func;
37463   ;
37464   return 0;
37465 }
37466 _ACEOF
37467 rm -f conftest.$ac_objext conftest$ac_exeext
37468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37469   (eval $ac_link) 2>conftest.er1
37470   ac_status=$?
37471   grep -v '^ *+' conftest.er1 >conftest.err
37472   rm -f conftest.er1
37473   cat conftest.err >&5
37474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37475   (exit $ac_status); } &&
37476          { ac_try='test -z "$ac_c_werror_flag"
37477                          || test ! -s conftest.err'
37478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37479   (eval $ac_try) 2>&5
37480   ac_status=$?
37481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37482   (exit $ac_status); }; } &&
37483          { ac_try='test -s conftest$ac_exeext'
37484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37485   (eval $ac_try) 2>&5
37486   ac_status=$?
37487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37488   (exit $ac_status); }; }; then
37489   eval "$as_ac_var=yes"
37490 else
37491   echo "$as_me: failed program was:" >&5
37492 sed 's/^/| /' conftest.$ac_ext >&5
37493
37494 eval "$as_ac_var=no"
37495 fi
37496 rm -f conftest.err conftest.$ac_objext \
37497       conftest$ac_exeext conftest.$ac_ext
37498 fi
37499 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37500 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37501 if test `eval echo '${'$as_ac_var'}'` = yes; then
37502   cat >>confdefs.h <<_ACEOF
37503 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37504 _ACEOF
37505  ice_have_initgroups=yes
37506 fi
37507 done
37508
37509 if test "${ice_have_initgroups}" = yes; then
37510 echo "$as_me:$LINENO: checking for initgroups declaration in grp.h sys/types.h unistd.h libc.h" >&5
37511 echo $ECHO_N "checking for initgroups declaration in grp.h sys/types.h unistd.h libc.h... $ECHO_C" >&6
37512 if test "${ice_cv_have_initgroups_decl+set}" = set; then
37513   echo $ECHO_N "(cached) $ECHO_C" >&6
37514 else
37515
37516 ice_cv_have_initgroups_decl=no
37517 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
37518 ice_re_word='(^|[^a-zA-Z0-9_])'
37519 for header in grp.h sys/types.h unistd.h libc.h; do
37520 # Check for ordinary declaration
37521 cat >conftest.$ac_ext <<_ACEOF
37522 /* confdefs.h.  */
37523 _ACEOF
37524 cat confdefs.h >>conftest.$ac_ext
37525 cat >>conftest.$ac_ext <<_ACEOF
37526 /* end confdefs.h.  */
37527 #include <$header>
37528
37529 _ACEOF
37530 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37531   $EGREP "${ice_re_word}initgroups[     ]*\(" >/dev/null 2>&1; then
37532   ice_cv_have_initgroups_decl=yes
37533 fi
37534 rm -f conftest*
37535
37536 if test "$ice_cv_have_initgroups_decl" = yes; then
37537         break
37538 fi
37539 # Check for "fixed" declaration like "getpid _PARAMS((int))"
37540 cat >conftest.$ac_ext <<_ACEOF
37541 /* confdefs.h.  */
37542 _ACEOF
37543 cat confdefs.h >>conftest.$ac_ext
37544 cat >>conftest.$ac_ext <<_ACEOF
37545 /* end confdefs.h.  */
37546 #include <$header>
37547
37548 _ACEOF
37549 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37550   $EGREP "${ice_re_word}initgroups[     ]*$ice_re_params\(\(" >/dev/null 2>&1; then
37551   ice_cv_have_initgroups_decl=yes
37552 fi
37553 rm -f conftest*
37554
37555 if test "$ice_cv_have_initgroups_decl" = yes; then
37556         break
37557 fi
37558 done
37559
37560 fi
37561
37562 echo "$as_me:$LINENO: result: $ice_cv_have_initgroups_decl" >&5
37563 echo "${ECHO_T}$ice_cv_have_initgroups_decl" >&6
37564 if test "$ice_cv_have_initgroups_decl" = yes; then
37565
37566 cat >>confdefs.h <<_ACEOF
37567 #define HAVE_INITGROUPS_DECL 1
37568 _ACEOF
37569
37570 fi
37571 fi
37572
37573
37574 ice_have_ioctl=no
37575
37576 for ac_func in ioctl
37577 do
37578 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37579 echo "$as_me:$LINENO: checking for $ac_func" >&5
37580 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37581 if eval "test \"\${$as_ac_var+set}\" = set"; then
37582   echo $ECHO_N "(cached) $ECHO_C" >&6
37583 else
37584   cat >conftest.$ac_ext <<_ACEOF
37585 /* confdefs.h.  */
37586 _ACEOF
37587 cat confdefs.h >>conftest.$ac_ext
37588 cat >>conftest.$ac_ext <<_ACEOF
37589 /* end confdefs.h.  */
37590 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37591    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37592 #define $ac_func innocuous_$ac_func
37593
37594 /* System header to define __stub macros and hopefully few prototypes,
37595     which can conflict with char $ac_func (); below.
37596     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37597     <limits.h> exists even on freestanding compilers.  */
37598
37599 #ifdef __STDC__
37600 # include <limits.h>
37601 #else
37602 # include <assert.h>
37603 #endif
37604
37605 #undef $ac_func
37606
37607 /* Override any gcc2 internal prototype to avoid an error.  */
37608 #ifdef __cplusplus
37609 extern "C"
37610 {
37611 #endif
37612 /* We use char because int might match the return type of a gcc2
37613    builtin and then its argument prototype would still apply.  */
37614 char $ac_func ();
37615 /* The GNU C library defines this for functions which it implements
37616     to always fail with ENOSYS.  Some functions are actually named
37617     something starting with __ and the normal name is an alias.  */
37618 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37619 choke me
37620 #else
37621 char (*f) () = $ac_func;
37622 #endif
37623 #ifdef __cplusplus
37624 }
37625 #endif
37626
37627 int
37628 main ()
37629 {
37630 return f != $ac_func;
37631   ;
37632   return 0;
37633 }
37634 _ACEOF
37635 rm -f conftest.$ac_objext conftest$ac_exeext
37636 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37637   (eval $ac_link) 2>conftest.er1
37638   ac_status=$?
37639   grep -v '^ *+' conftest.er1 >conftest.err
37640   rm -f conftest.er1
37641   cat conftest.err >&5
37642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37643   (exit $ac_status); } &&
37644          { ac_try='test -z "$ac_c_werror_flag"
37645                          || test ! -s conftest.err'
37646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37647   (eval $ac_try) 2>&5
37648   ac_status=$?
37649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37650   (exit $ac_status); }; } &&
37651          { ac_try='test -s conftest$ac_exeext'
37652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37653   (eval $ac_try) 2>&5
37654   ac_status=$?
37655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37656   (exit $ac_status); }; }; then
37657   eval "$as_ac_var=yes"
37658 else
37659   echo "$as_me: failed program was:" >&5
37660 sed 's/^/| /' conftest.$ac_ext >&5
37661
37662 eval "$as_ac_var=no"
37663 fi
37664 rm -f conftest.err conftest.$ac_objext \
37665       conftest$ac_exeext conftest.$ac_ext
37666 fi
37667 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37668 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37669 if test `eval echo '${'$as_ac_var'}'` = yes; then
37670   cat >>confdefs.h <<_ACEOF
37671 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37672 _ACEOF
37673  ice_have_ioctl=yes
37674 fi
37675 done
37676
37677 if test "${ice_have_ioctl}" = yes; then
37678 echo "$as_me:$LINENO: checking for ioctl declaration in sys/ioctl.h unistd.h libc.h" >&5
37679 echo $ECHO_N "checking for ioctl declaration in sys/ioctl.h unistd.h libc.h... $ECHO_C" >&6
37680 if test "${ice_cv_have_ioctl_decl+set}" = set; then
37681   echo $ECHO_N "(cached) $ECHO_C" >&6
37682 else
37683
37684 ice_cv_have_ioctl_decl=no
37685 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
37686 ice_re_word='(^|[^a-zA-Z0-9_])'
37687 for header in sys/ioctl.h unistd.h libc.h; do
37688 # Check for ordinary declaration
37689 cat >conftest.$ac_ext <<_ACEOF
37690 /* confdefs.h.  */
37691 _ACEOF
37692 cat confdefs.h >>conftest.$ac_ext
37693 cat >>conftest.$ac_ext <<_ACEOF
37694 /* end confdefs.h.  */
37695 #include <$header>
37696
37697 _ACEOF
37698 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37699   $EGREP "${ice_re_word}ioctl[  ]*\(" >/dev/null 2>&1; then
37700   ice_cv_have_ioctl_decl=yes
37701 fi
37702 rm -f conftest*
37703
37704 if test "$ice_cv_have_ioctl_decl" = yes; then
37705         break
37706 fi
37707 # Check for "fixed" declaration like "getpid _PARAMS((int))"
37708 cat >conftest.$ac_ext <<_ACEOF
37709 /* confdefs.h.  */
37710 _ACEOF
37711 cat confdefs.h >>conftest.$ac_ext
37712 cat >>conftest.$ac_ext <<_ACEOF
37713 /* end confdefs.h.  */
37714 #include <$header>
37715
37716 _ACEOF
37717 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37718   $EGREP "${ice_re_word}ioctl[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
37719   ice_cv_have_ioctl_decl=yes
37720 fi
37721 rm -f conftest*
37722
37723 if test "$ice_cv_have_ioctl_decl" = yes; then
37724         break
37725 fi
37726 done
37727
37728 fi
37729
37730 echo "$as_me:$LINENO: result: $ice_cv_have_ioctl_decl" >&5
37731 echo "${ECHO_T}$ice_cv_have_ioctl_decl" >&6
37732 if test "$ice_cv_have_ioctl_decl" = yes; then
37733
37734 cat >>confdefs.h <<_ACEOF
37735 #define HAVE_IOCTL_DECL 1
37736 _ACEOF
37737
37738 fi
37739 fi
37740
37741
37742 ice_have_listen=no
37743
37744 for ac_func in listen
37745 do
37746 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37747 echo "$as_me:$LINENO: checking for $ac_func" >&5
37748 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37749 if eval "test \"\${$as_ac_var+set}\" = set"; then
37750   echo $ECHO_N "(cached) $ECHO_C" >&6
37751 else
37752   cat >conftest.$ac_ext <<_ACEOF
37753 /* confdefs.h.  */
37754 _ACEOF
37755 cat confdefs.h >>conftest.$ac_ext
37756 cat >>conftest.$ac_ext <<_ACEOF
37757 /* end confdefs.h.  */
37758 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37759    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37760 #define $ac_func innocuous_$ac_func
37761
37762 /* System header to define __stub macros and hopefully few prototypes,
37763     which can conflict with char $ac_func (); below.
37764     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37765     <limits.h> exists even on freestanding compilers.  */
37766
37767 #ifdef __STDC__
37768 # include <limits.h>
37769 #else
37770 # include <assert.h>
37771 #endif
37772
37773 #undef $ac_func
37774
37775 /* Override any gcc2 internal prototype to avoid an error.  */
37776 #ifdef __cplusplus
37777 extern "C"
37778 {
37779 #endif
37780 /* We use char because int might match the return type of a gcc2
37781    builtin and then its argument prototype would still apply.  */
37782 char $ac_func ();
37783 /* The GNU C library defines this for functions which it implements
37784     to always fail with ENOSYS.  Some functions are actually named
37785     something starting with __ and the normal name is an alias.  */
37786 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37787 choke me
37788 #else
37789 char (*f) () = $ac_func;
37790 #endif
37791 #ifdef __cplusplus
37792 }
37793 #endif
37794
37795 int
37796 main ()
37797 {
37798 return f != $ac_func;
37799   ;
37800   return 0;
37801 }
37802 _ACEOF
37803 rm -f conftest.$ac_objext conftest$ac_exeext
37804 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37805   (eval $ac_link) 2>conftest.er1
37806   ac_status=$?
37807   grep -v '^ *+' conftest.er1 >conftest.err
37808   rm -f conftest.er1
37809   cat conftest.err >&5
37810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37811   (exit $ac_status); } &&
37812          { ac_try='test -z "$ac_c_werror_flag"
37813                          || test ! -s conftest.err'
37814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37815   (eval $ac_try) 2>&5
37816   ac_status=$?
37817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37818   (exit $ac_status); }; } &&
37819          { ac_try='test -s conftest$ac_exeext'
37820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37821   (eval $ac_try) 2>&5
37822   ac_status=$?
37823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37824   (exit $ac_status); }; }; then
37825   eval "$as_ac_var=yes"
37826 else
37827   echo "$as_me: failed program was:" >&5
37828 sed 's/^/| /' conftest.$ac_ext >&5
37829
37830 eval "$as_ac_var=no"
37831 fi
37832 rm -f conftest.err conftest.$ac_objext \
37833       conftest$ac_exeext conftest.$ac_ext
37834 fi
37835 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37836 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37837 if test `eval echo '${'$as_ac_var'}'` = yes; then
37838   cat >>confdefs.h <<_ACEOF
37839 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37840 _ACEOF
37841  ice_have_listen=yes
37842 fi
37843 done
37844
37845 if test "${ice_have_listen}" = yes; then
37846 echo "$as_me:$LINENO: checking for listen declaration in sys/types.h sys/socket.h" >&5
37847 echo $ECHO_N "checking for listen declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
37848 if test "${ice_cv_have_listen_decl+set}" = set; then
37849   echo $ECHO_N "(cached) $ECHO_C" >&6
37850 else
37851
37852 ice_cv_have_listen_decl=no
37853 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
37854 ice_re_word='(^|[^a-zA-Z0-9_])'
37855 for header in sys/types.h sys/socket.h; do
37856 # Check for ordinary declaration
37857 cat >conftest.$ac_ext <<_ACEOF
37858 /* confdefs.h.  */
37859 _ACEOF
37860 cat confdefs.h >>conftest.$ac_ext
37861 cat >>conftest.$ac_ext <<_ACEOF
37862 /* end confdefs.h.  */
37863 #include <$header>
37864
37865 _ACEOF
37866 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37867   $EGREP "${ice_re_word}listen[         ]*\(" >/dev/null 2>&1; then
37868   ice_cv_have_listen_decl=yes
37869 fi
37870 rm -f conftest*
37871
37872 if test "$ice_cv_have_listen_decl" = yes; then
37873         break
37874 fi
37875 # Check for "fixed" declaration like "getpid _PARAMS((int))"
37876 cat >conftest.$ac_ext <<_ACEOF
37877 /* confdefs.h.  */
37878 _ACEOF
37879 cat confdefs.h >>conftest.$ac_ext
37880 cat >>conftest.$ac_ext <<_ACEOF
37881 /* end confdefs.h.  */
37882 #include <$header>
37883
37884 _ACEOF
37885 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37886   $EGREP "${ice_re_word}listen[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
37887   ice_cv_have_listen_decl=yes
37888 fi
37889 rm -f conftest*
37890
37891 if test "$ice_cv_have_listen_decl" = yes; then
37892         break
37893 fi
37894 done
37895
37896 fi
37897
37898 echo "$as_me:$LINENO: result: $ice_cv_have_listen_decl" >&5
37899 echo "${ECHO_T}$ice_cv_have_listen_decl" >&6
37900 if test "$ice_cv_have_listen_decl" = yes; then
37901
37902 cat >>confdefs.h <<_ACEOF
37903 #define HAVE_LISTEN_DECL 1
37904 _ACEOF
37905
37906 fi
37907 fi
37908
37909
37910 ice_have_lstat=no
37911
37912 for ac_func in lstat
37913 do
37914 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37915 echo "$as_me:$LINENO: checking for $ac_func" >&5
37916 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37917 if eval "test \"\${$as_ac_var+set}\" = set"; then
37918   echo $ECHO_N "(cached) $ECHO_C" >&6
37919 else
37920   cat >conftest.$ac_ext <<_ACEOF
37921 /* confdefs.h.  */
37922 _ACEOF
37923 cat confdefs.h >>conftest.$ac_ext
37924 cat >>conftest.$ac_ext <<_ACEOF
37925 /* end confdefs.h.  */
37926 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37927    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37928 #define $ac_func innocuous_$ac_func
37929
37930 /* System header to define __stub macros and hopefully few prototypes,
37931     which can conflict with char $ac_func (); below.
37932     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37933     <limits.h> exists even on freestanding compilers.  */
37934
37935 #ifdef __STDC__
37936 # include <limits.h>
37937 #else
37938 # include <assert.h>
37939 #endif
37940
37941 #undef $ac_func
37942
37943 /* Override any gcc2 internal prototype to avoid an error.  */
37944 #ifdef __cplusplus
37945 extern "C"
37946 {
37947 #endif
37948 /* We use char because int might match the return type of a gcc2
37949    builtin and then its argument prototype would still apply.  */
37950 char $ac_func ();
37951 /* The GNU C library defines this for functions which it implements
37952     to always fail with ENOSYS.  Some functions are actually named
37953     something starting with __ and the normal name is an alias.  */
37954 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37955 choke me
37956 #else
37957 char (*f) () = $ac_func;
37958 #endif
37959 #ifdef __cplusplus
37960 }
37961 #endif
37962
37963 int
37964 main ()
37965 {
37966 return f != $ac_func;
37967   ;
37968   return 0;
37969 }
37970 _ACEOF
37971 rm -f conftest.$ac_objext conftest$ac_exeext
37972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37973   (eval $ac_link) 2>conftest.er1
37974   ac_status=$?
37975   grep -v '^ *+' conftest.er1 >conftest.err
37976   rm -f conftest.er1
37977   cat conftest.err >&5
37978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37979   (exit $ac_status); } &&
37980          { ac_try='test -z "$ac_c_werror_flag"
37981                          || test ! -s conftest.err'
37982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37983   (eval $ac_try) 2>&5
37984   ac_status=$?
37985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37986   (exit $ac_status); }; } &&
37987          { ac_try='test -s conftest$ac_exeext'
37988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37989   (eval $ac_try) 2>&5
37990   ac_status=$?
37991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37992   (exit $ac_status); }; }; then
37993   eval "$as_ac_var=yes"
37994 else
37995   echo "$as_me: failed program was:" >&5
37996 sed 's/^/| /' conftest.$ac_ext >&5
37997
37998 eval "$as_ac_var=no"
37999 fi
38000 rm -f conftest.err conftest.$ac_objext \
38001       conftest$ac_exeext conftest.$ac_ext
38002 fi
38003 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38004 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38005 if test `eval echo '${'$as_ac_var'}'` = yes; then
38006   cat >>confdefs.h <<_ACEOF
38007 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38008 _ACEOF
38009  ice_have_lstat=yes
38010 fi
38011 done
38012
38013 if test "${ice_have_lstat}" = yes; then
38014 echo "$as_me:$LINENO: checking for lstat declaration in sys/types.h sys/stat.h" >&5
38015 echo $ECHO_N "checking for lstat declaration in sys/types.h sys/stat.h... $ECHO_C" >&6
38016 if test "${ice_cv_have_lstat_decl+set}" = set; then
38017   echo $ECHO_N "(cached) $ECHO_C" >&6
38018 else
38019
38020 ice_cv_have_lstat_decl=no
38021 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
38022 ice_re_word='(^|[^a-zA-Z0-9_])'
38023 for header in sys/types.h sys/stat.h; do
38024 # Check for ordinary declaration
38025 cat >conftest.$ac_ext <<_ACEOF
38026 /* confdefs.h.  */
38027 _ACEOF
38028 cat confdefs.h >>conftest.$ac_ext
38029 cat >>conftest.$ac_ext <<_ACEOF
38030 /* end confdefs.h.  */
38031 #include <$header>
38032
38033 _ACEOF
38034 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38035   $EGREP "${ice_re_word}lstat[  ]*\(" >/dev/null 2>&1; then
38036   ice_cv_have_lstat_decl=yes
38037 fi
38038 rm -f conftest*
38039
38040 if test "$ice_cv_have_lstat_decl" = yes; then
38041         break
38042 fi
38043 # Check for "fixed" declaration like "getpid _PARAMS((int))"
38044 cat >conftest.$ac_ext <<_ACEOF
38045 /* confdefs.h.  */
38046 _ACEOF
38047 cat confdefs.h >>conftest.$ac_ext
38048 cat >>conftest.$ac_ext <<_ACEOF
38049 /* end confdefs.h.  */
38050 #include <$header>
38051
38052 _ACEOF
38053 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38054   $EGREP "${ice_re_word}lstat[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
38055   ice_cv_have_lstat_decl=yes
38056 fi
38057 rm -f conftest*
38058
38059 if test "$ice_cv_have_lstat_decl" = yes; then
38060         break
38061 fi
38062 done
38063
38064 fi
38065
38066 echo "$as_me:$LINENO: result: $ice_cv_have_lstat_decl" >&5
38067 echo "${ECHO_T}$ice_cv_have_lstat_decl" >&6
38068 if test "$ice_cv_have_lstat_decl" = yes; then
38069
38070 cat >>confdefs.h <<_ACEOF
38071 #define HAVE_LSTAT_DECL 1
38072 _ACEOF
38073
38074 fi
38075 fi
38076
38077
38078 ice_have_malloc=no
38079
38080 for ac_func in malloc
38081 do
38082 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38083 echo "$as_me:$LINENO: checking for $ac_func" >&5
38084 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38085 if eval "test \"\${$as_ac_var+set}\" = set"; then
38086   echo $ECHO_N "(cached) $ECHO_C" >&6
38087 else
38088   cat >conftest.$ac_ext <<_ACEOF
38089 /* confdefs.h.  */
38090 _ACEOF
38091 cat confdefs.h >>conftest.$ac_ext
38092 cat >>conftest.$ac_ext <<_ACEOF
38093 /* end confdefs.h.  */
38094 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38095    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38096 #define $ac_func innocuous_$ac_func
38097
38098 /* System header to define __stub macros and hopefully few prototypes,
38099     which can conflict with char $ac_func (); below.
38100     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38101     <limits.h> exists even on freestanding compilers.  */
38102
38103 #ifdef __STDC__
38104 # include <limits.h>
38105 #else
38106 # include <assert.h>
38107 #endif
38108
38109 #undef $ac_func
38110
38111 /* Override any gcc2 internal prototype to avoid an error.  */
38112 #ifdef __cplusplus
38113 extern "C"
38114 {
38115 #endif
38116 /* We use char because int might match the return type of a gcc2
38117    builtin and then its argument prototype would still apply.  */
38118 char $ac_func ();
38119 /* The GNU C library defines this for functions which it implements
38120     to always fail with ENOSYS.  Some functions are actually named
38121     something starting with __ and the normal name is an alias.  */
38122 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38123 choke me
38124 #else
38125 char (*f) () = $ac_func;
38126 #endif
38127 #ifdef __cplusplus
38128 }
38129 #endif
38130
38131 int
38132 main ()
38133 {
38134 return f != $ac_func;
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   eval "$as_ac_var=yes"
38162 else
38163   echo "$as_me: failed program was:" >&5
38164 sed 's/^/| /' conftest.$ac_ext >&5
38165
38166 eval "$as_ac_var=no"
38167 fi
38168 rm -f conftest.err conftest.$ac_objext \
38169       conftest$ac_exeext conftest.$ac_ext
38170 fi
38171 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38172 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38173 if test `eval echo '${'$as_ac_var'}'` = yes; then
38174   cat >>confdefs.h <<_ACEOF
38175 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38176 _ACEOF
38177  ice_have_malloc=yes
38178 fi
38179 done
38180
38181 if test "${ice_have_malloc}" = yes; then
38182 echo "$as_me:$LINENO: checking for malloc declaration in stdlib.h" >&5
38183 echo $ECHO_N "checking for malloc declaration in stdlib.h... $ECHO_C" >&6
38184 if test "${ice_cv_have_malloc_decl+set}" = set; then
38185   echo $ECHO_N "(cached) $ECHO_C" >&6
38186 else
38187
38188 ice_cv_have_malloc_decl=no
38189 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
38190 ice_re_word='(^|[^a-zA-Z0-9_])'
38191 for header in stdlib.h; do
38192 # Check for ordinary declaration
38193 cat >conftest.$ac_ext <<_ACEOF
38194 /* confdefs.h.  */
38195 _ACEOF
38196 cat confdefs.h >>conftest.$ac_ext
38197 cat >>conftest.$ac_ext <<_ACEOF
38198 /* end confdefs.h.  */
38199 #include <$header>
38200
38201 _ACEOF
38202 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38203   $EGREP "${ice_re_word}malloc[         ]*\(" >/dev/null 2>&1; then
38204   ice_cv_have_malloc_decl=yes
38205 fi
38206 rm -f conftest*
38207
38208 if test "$ice_cv_have_malloc_decl" = yes; then
38209         break
38210 fi
38211 # Check for "fixed" declaration like "getpid _PARAMS((int))"
38212 cat >conftest.$ac_ext <<_ACEOF
38213 /* confdefs.h.  */
38214 _ACEOF
38215 cat confdefs.h >>conftest.$ac_ext
38216 cat >>conftest.$ac_ext <<_ACEOF
38217 /* end confdefs.h.  */
38218 #include <$header>
38219
38220 _ACEOF
38221 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38222   $EGREP "${ice_re_word}malloc[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
38223   ice_cv_have_malloc_decl=yes
38224 fi
38225 rm -f conftest*
38226
38227 if test "$ice_cv_have_malloc_decl" = yes; then
38228         break
38229 fi
38230 done
38231
38232 fi
38233
38234 echo "$as_me:$LINENO: result: $ice_cv_have_malloc_decl" >&5
38235 echo "${ECHO_T}$ice_cv_have_malloc_decl" >&6
38236 if test "$ice_cv_have_malloc_decl" = yes; then
38237
38238 cat >>confdefs.h <<_ACEOF
38239 #define HAVE_MALLOC_DECL 1
38240 _ACEOF
38241
38242 fi
38243 fi
38244
38245
38246 for ac_func in memmove
38247 do
38248 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38249 echo "$as_me:$LINENO: checking for $ac_func" >&5
38250 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38251 if eval "test \"\${$as_ac_var+set}\" = set"; then
38252   echo $ECHO_N "(cached) $ECHO_C" >&6
38253 else
38254   cat >conftest.$ac_ext <<_ACEOF
38255 /* confdefs.h.  */
38256 _ACEOF
38257 cat confdefs.h >>conftest.$ac_ext
38258 cat >>conftest.$ac_ext <<_ACEOF
38259 /* end confdefs.h.  */
38260 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38261    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38262 #define $ac_func innocuous_$ac_func
38263
38264 /* System header to define __stub macros and hopefully few prototypes,
38265     which can conflict with char $ac_func (); below.
38266     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38267     <limits.h> exists even on freestanding compilers.  */
38268
38269 #ifdef __STDC__
38270 # include <limits.h>
38271 #else
38272 # include <assert.h>
38273 #endif
38274
38275 #undef $ac_func
38276
38277 /* Override any gcc2 internal prototype to avoid an error.  */
38278 #ifdef __cplusplus
38279 extern "C"
38280 {
38281 #endif
38282 /* We use char because int might match the return type of a gcc2
38283    builtin and then its argument prototype would still apply.  */
38284 char $ac_func ();
38285 /* The GNU C library defines this for functions which it implements
38286     to always fail with ENOSYS.  Some functions are actually named
38287     something starting with __ and the normal name is an alias.  */
38288 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38289 choke me
38290 #else
38291 char (*f) () = $ac_func;
38292 #endif
38293 #ifdef __cplusplus
38294 }
38295 #endif
38296
38297 int
38298 main ()
38299 {
38300 return f != $ac_func;
38301   ;
38302   return 0;
38303 }
38304 _ACEOF
38305 rm -f conftest.$ac_objext conftest$ac_exeext
38306 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38307   (eval $ac_link) 2>conftest.er1
38308   ac_status=$?
38309   grep -v '^ *+' conftest.er1 >conftest.err
38310   rm -f conftest.er1
38311   cat conftest.err >&5
38312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38313   (exit $ac_status); } &&
38314          { ac_try='test -z "$ac_c_werror_flag"
38315                          || test ! -s conftest.err'
38316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38317   (eval $ac_try) 2>&5
38318   ac_status=$?
38319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38320   (exit $ac_status); }; } &&
38321          { ac_try='test -s conftest$ac_exeext'
38322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38323   (eval $ac_try) 2>&5
38324   ac_status=$?
38325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38326   (exit $ac_status); }; }; then
38327   eval "$as_ac_var=yes"
38328 else
38329   echo "$as_me: failed program was:" >&5
38330 sed 's/^/| /' conftest.$ac_ext >&5
38331
38332 eval "$as_ac_var=no"
38333 fi
38334 rm -f conftest.err conftest.$ac_objext \
38335       conftest$ac_exeext conftest.$ac_ext
38336 fi
38337 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38338 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38339 if test `eval echo '${'$as_ac_var'}'` = yes; then
38340   cat >>confdefs.h <<_ACEOF
38341 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38342 _ACEOF
38343
38344 else
38345   case $LIBOBJS in
38346     "$ac_func.$ac_objext"   | \
38347   *" $ac_func.$ac_objext"   | \
38348     "$ac_func.$ac_objext "* | \
38349   *" $ac_func.$ac_objext "* ) ;;
38350   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
38351 esac
38352
38353 fi
38354 done
38355
38356
38357
38358 ice_have_memmove=no
38359
38360 for ac_func in memmove
38361 do
38362 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38363 echo "$as_me:$LINENO: checking for $ac_func" >&5
38364 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38365 if eval "test \"\${$as_ac_var+set}\" = set"; then
38366   echo $ECHO_N "(cached) $ECHO_C" >&6
38367 else
38368   cat >conftest.$ac_ext <<_ACEOF
38369 /* confdefs.h.  */
38370 _ACEOF
38371 cat confdefs.h >>conftest.$ac_ext
38372 cat >>conftest.$ac_ext <<_ACEOF
38373 /* end confdefs.h.  */
38374 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38375    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38376 #define $ac_func innocuous_$ac_func
38377
38378 /* System header to define __stub macros and hopefully few prototypes,
38379     which can conflict with char $ac_func (); below.
38380     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38381     <limits.h> exists even on freestanding compilers.  */
38382
38383 #ifdef __STDC__
38384 # include <limits.h>
38385 #else
38386 # include <assert.h>
38387 #endif
38388
38389 #undef $ac_func
38390
38391 /* Override any gcc2 internal prototype to avoid an error.  */
38392 #ifdef __cplusplus
38393 extern "C"
38394 {
38395 #endif
38396 /* We use char because int might match the return type of a gcc2
38397    builtin and then its argument prototype would still apply.  */
38398 char $ac_func ();
38399 /* The GNU C library defines this for functions which it implements
38400     to always fail with ENOSYS.  Some functions are actually named
38401     something starting with __ and the normal name is an alias.  */
38402 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38403 choke me
38404 #else
38405 char (*f) () = $ac_func;
38406 #endif
38407 #ifdef __cplusplus
38408 }
38409 #endif
38410
38411 int
38412 main ()
38413 {
38414 return f != $ac_func;
38415   ;
38416   return 0;
38417 }
38418 _ACEOF
38419 rm -f conftest.$ac_objext conftest$ac_exeext
38420 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38421   (eval $ac_link) 2>conftest.er1
38422   ac_status=$?
38423   grep -v '^ *+' conftest.er1 >conftest.err
38424   rm -f conftest.er1
38425   cat conftest.err >&5
38426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38427   (exit $ac_status); } &&
38428          { ac_try='test -z "$ac_c_werror_flag"
38429                          || test ! -s conftest.err'
38430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38431   (eval $ac_try) 2>&5
38432   ac_status=$?
38433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38434   (exit $ac_status); }; } &&
38435          { ac_try='test -s conftest$ac_exeext'
38436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38437   (eval $ac_try) 2>&5
38438   ac_status=$?
38439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38440   (exit $ac_status); }; }; then
38441   eval "$as_ac_var=yes"
38442 else
38443   echo "$as_me: failed program was:" >&5
38444 sed 's/^/| /' conftest.$ac_ext >&5
38445
38446 eval "$as_ac_var=no"
38447 fi
38448 rm -f conftest.err conftest.$ac_objext \
38449       conftest$ac_exeext conftest.$ac_ext
38450 fi
38451 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38452 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38453 if test `eval echo '${'$as_ac_var'}'` = yes; then
38454   cat >>confdefs.h <<_ACEOF
38455 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38456 _ACEOF
38457  ice_have_memmove=yes
38458 fi
38459 done
38460
38461 if test "${ice_have_memmove}" = yes; then
38462 echo "$as_me:$LINENO: checking for memmove declaration in string.h strings.h" >&5
38463 echo $ECHO_N "checking for memmove declaration in string.h strings.h... $ECHO_C" >&6
38464 if test "${ice_cv_have_memmove_decl+set}" = set; then
38465   echo $ECHO_N "(cached) $ECHO_C" >&6
38466 else
38467
38468 ice_cv_have_memmove_decl=no
38469 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
38470 ice_re_word='(^|[^a-zA-Z0-9_])'
38471 for header in string.h strings.h; do
38472 # Check for ordinary declaration
38473 cat >conftest.$ac_ext <<_ACEOF
38474 /* confdefs.h.  */
38475 _ACEOF
38476 cat confdefs.h >>conftest.$ac_ext
38477 cat >>conftest.$ac_ext <<_ACEOF
38478 /* end confdefs.h.  */
38479 #include <$header>
38480
38481 _ACEOF
38482 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38483   $EGREP "${ice_re_word}memmove[        ]*\(" >/dev/null 2>&1; then
38484   ice_cv_have_memmove_decl=yes
38485 fi
38486 rm -f conftest*
38487
38488 if test "$ice_cv_have_memmove_decl" = yes; then
38489         break
38490 fi
38491 # Check for "fixed" declaration like "getpid _PARAMS((int))"
38492 cat >conftest.$ac_ext <<_ACEOF
38493 /* confdefs.h.  */
38494 _ACEOF
38495 cat confdefs.h >>conftest.$ac_ext
38496 cat >>conftest.$ac_ext <<_ACEOF
38497 /* end confdefs.h.  */
38498 #include <$header>
38499
38500 _ACEOF
38501 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38502   $EGREP "${ice_re_word}memmove[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
38503   ice_cv_have_memmove_decl=yes
38504 fi
38505 rm -f conftest*
38506
38507 if test "$ice_cv_have_memmove_decl" = yes; then
38508         break
38509 fi
38510 done
38511
38512 fi
38513
38514 echo "$as_me:$LINENO: result: $ice_cv_have_memmove_decl" >&5
38515 echo "${ECHO_T}$ice_cv_have_memmove_decl" >&6
38516 if test "$ice_cv_have_memmove_decl" = yes; then
38517
38518 cat >>confdefs.h <<_ACEOF
38519 #define HAVE_MEMMOVE_DECL 1
38520 _ACEOF
38521
38522 fi
38523 fi
38524
38525
38526 ice_have_memset=no
38527
38528 for ac_func in memset
38529 do
38530 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38531 echo "$as_me:$LINENO: checking for $ac_func" >&5
38532 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38533 if eval "test \"\${$as_ac_var+set}\" = set"; then
38534   echo $ECHO_N "(cached) $ECHO_C" >&6
38535 else
38536   cat >conftest.$ac_ext <<_ACEOF
38537 /* confdefs.h.  */
38538 _ACEOF
38539 cat confdefs.h >>conftest.$ac_ext
38540 cat >>conftest.$ac_ext <<_ACEOF
38541 /* end confdefs.h.  */
38542 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38543    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38544 #define $ac_func innocuous_$ac_func
38545
38546 /* System header to define __stub macros and hopefully few prototypes,
38547     which can conflict with char $ac_func (); below.
38548     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38549     <limits.h> exists even on freestanding compilers.  */
38550
38551 #ifdef __STDC__
38552 # include <limits.h>
38553 #else
38554 # include <assert.h>
38555 #endif
38556
38557 #undef $ac_func
38558
38559 /* Override any gcc2 internal prototype to avoid an error.  */
38560 #ifdef __cplusplus
38561 extern "C"
38562 {
38563 #endif
38564 /* We use char because int might match the return type of a gcc2
38565    builtin and then its argument prototype would still apply.  */
38566 char $ac_func ();
38567 /* The GNU C library defines this for functions which it implements
38568     to always fail with ENOSYS.  Some functions are actually named
38569     something starting with __ and the normal name is an alias.  */
38570 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38571 choke me
38572 #else
38573 char (*f) () = $ac_func;
38574 #endif
38575 #ifdef __cplusplus
38576 }
38577 #endif
38578
38579 int
38580 main ()
38581 {
38582 return f != $ac_func;
38583   ;
38584   return 0;
38585 }
38586 _ACEOF
38587 rm -f conftest.$ac_objext conftest$ac_exeext
38588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38589   (eval $ac_link) 2>conftest.er1
38590   ac_status=$?
38591   grep -v '^ *+' conftest.er1 >conftest.err
38592   rm -f conftest.er1
38593   cat conftest.err >&5
38594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38595   (exit $ac_status); } &&
38596          { ac_try='test -z "$ac_c_werror_flag"
38597                          || test ! -s conftest.err'
38598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38599   (eval $ac_try) 2>&5
38600   ac_status=$?
38601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38602   (exit $ac_status); }; } &&
38603          { ac_try='test -s conftest$ac_exeext'
38604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38605   (eval $ac_try) 2>&5
38606   ac_status=$?
38607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38608   (exit $ac_status); }; }; then
38609   eval "$as_ac_var=yes"
38610 else
38611   echo "$as_me: failed program was:" >&5
38612 sed 's/^/| /' conftest.$ac_ext >&5
38613
38614 eval "$as_ac_var=no"
38615 fi
38616 rm -f conftest.err conftest.$ac_objext \
38617       conftest$ac_exeext conftest.$ac_ext
38618 fi
38619 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38620 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38621 if test `eval echo '${'$as_ac_var'}'` = yes; then
38622   cat >>confdefs.h <<_ACEOF
38623 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38624 _ACEOF
38625  ice_have_memset=yes
38626 fi
38627 done
38628
38629 if test "${ice_have_memset}" = yes; then
38630 echo "$as_me:$LINENO: checking for memset declaration in string.h strings.h" >&5
38631 echo $ECHO_N "checking for memset declaration in string.h strings.h... $ECHO_C" >&6
38632 if test "${ice_cv_have_memset_decl+set}" = set; then
38633   echo $ECHO_N "(cached) $ECHO_C" >&6
38634 else
38635
38636 ice_cv_have_memset_decl=no
38637 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
38638 ice_re_word='(^|[^a-zA-Z0-9_])'
38639 for header in string.h strings.h; do
38640 # Check for ordinary declaration
38641 cat >conftest.$ac_ext <<_ACEOF
38642 /* confdefs.h.  */
38643 _ACEOF
38644 cat confdefs.h >>conftest.$ac_ext
38645 cat >>conftest.$ac_ext <<_ACEOF
38646 /* end confdefs.h.  */
38647 #include <$header>
38648
38649 _ACEOF
38650 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38651   $EGREP "${ice_re_word}memset[         ]*\(" >/dev/null 2>&1; then
38652   ice_cv_have_memset_decl=yes
38653 fi
38654 rm -f conftest*
38655
38656 if test "$ice_cv_have_memset_decl" = yes; then
38657         break
38658 fi
38659 # Check for "fixed" declaration like "getpid _PARAMS((int))"
38660 cat >conftest.$ac_ext <<_ACEOF
38661 /* confdefs.h.  */
38662 _ACEOF
38663 cat confdefs.h >>conftest.$ac_ext
38664 cat >>conftest.$ac_ext <<_ACEOF
38665 /* end confdefs.h.  */
38666 #include <$header>
38667
38668 _ACEOF
38669 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38670   $EGREP "${ice_re_word}memset[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
38671   ice_cv_have_memset_decl=yes
38672 fi
38673 rm -f conftest*
38674
38675 if test "$ice_cv_have_memset_decl" = yes; then
38676         break
38677 fi
38678 done
38679
38680 fi
38681
38682 echo "$as_me:$LINENO: result: $ice_cv_have_memset_decl" >&5
38683 echo "${ECHO_T}$ice_cv_have_memset_decl" >&6
38684 if test "$ice_cv_have_memset_decl" = yes; then
38685
38686 cat >>confdefs.h <<_ACEOF
38687 #define HAVE_MEMSET_DECL 1
38688 _ACEOF
38689
38690 fi
38691 fi
38692
38693
38694 for ac_func in mkdir
38695 do
38696 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38697 echo "$as_me:$LINENO: checking for $ac_func" >&5
38698 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38699 if eval "test \"\${$as_ac_var+set}\" = set"; then
38700   echo $ECHO_N "(cached) $ECHO_C" >&6
38701 else
38702   cat >conftest.$ac_ext <<_ACEOF
38703 /* confdefs.h.  */
38704 _ACEOF
38705 cat confdefs.h >>conftest.$ac_ext
38706 cat >>conftest.$ac_ext <<_ACEOF
38707 /* end confdefs.h.  */
38708 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38709    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38710 #define $ac_func innocuous_$ac_func
38711
38712 /* System header to define __stub macros and hopefully few prototypes,
38713     which can conflict with char $ac_func (); below.
38714     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38715     <limits.h> exists even on freestanding compilers.  */
38716
38717 #ifdef __STDC__
38718 # include <limits.h>
38719 #else
38720 # include <assert.h>
38721 #endif
38722
38723 #undef $ac_func
38724
38725 /* Override any gcc2 internal prototype to avoid an error.  */
38726 #ifdef __cplusplus
38727 extern "C"
38728 {
38729 #endif
38730 /* We use char because int might match the return type of a gcc2
38731    builtin and then its argument prototype would still apply.  */
38732 char $ac_func ();
38733 /* The GNU C library defines this for functions which it implements
38734     to always fail with ENOSYS.  Some functions are actually named
38735     something starting with __ and the normal name is an alias.  */
38736 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38737 choke me
38738 #else
38739 char (*f) () = $ac_func;
38740 #endif
38741 #ifdef __cplusplus
38742 }
38743 #endif
38744
38745 int
38746 main ()
38747 {
38748 return f != $ac_func;
38749   ;
38750   return 0;
38751 }
38752 _ACEOF
38753 rm -f conftest.$ac_objext conftest$ac_exeext
38754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38755   (eval $ac_link) 2>conftest.er1
38756   ac_status=$?
38757   grep -v '^ *+' conftest.er1 >conftest.err
38758   rm -f conftest.er1
38759   cat conftest.err >&5
38760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38761   (exit $ac_status); } &&
38762          { ac_try='test -z "$ac_c_werror_flag"
38763                          || test ! -s conftest.err'
38764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38765   (eval $ac_try) 2>&5
38766   ac_status=$?
38767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38768   (exit $ac_status); }; } &&
38769          { ac_try='test -s conftest$ac_exeext'
38770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38771   (eval $ac_try) 2>&5
38772   ac_status=$?
38773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38774   (exit $ac_status); }; }; then
38775   eval "$as_ac_var=yes"
38776 else
38777   echo "$as_me: failed program was:" >&5
38778 sed 's/^/| /' conftest.$ac_ext >&5
38779
38780 eval "$as_ac_var=no"
38781 fi
38782 rm -f conftest.err conftest.$ac_objext \
38783       conftest$ac_exeext conftest.$ac_ext
38784 fi
38785 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38786 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38787 if test `eval echo '${'$as_ac_var'}'` = yes; then
38788   cat >>confdefs.h <<_ACEOF
38789 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38790 _ACEOF
38791
38792 fi
38793 done
38794
38795
38796 ice_have_mktemp=no
38797
38798 for ac_func in mktemp
38799 do
38800 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38801 echo "$as_me:$LINENO: checking for $ac_func" >&5
38802 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38803 if eval "test \"\${$as_ac_var+set}\" = set"; then
38804   echo $ECHO_N "(cached) $ECHO_C" >&6
38805 else
38806   cat >conftest.$ac_ext <<_ACEOF
38807 /* confdefs.h.  */
38808 _ACEOF
38809 cat confdefs.h >>conftest.$ac_ext
38810 cat >>conftest.$ac_ext <<_ACEOF
38811 /* end confdefs.h.  */
38812 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38813    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38814 #define $ac_func innocuous_$ac_func
38815
38816 /* System header to define __stub macros and hopefully few prototypes,
38817     which can conflict with char $ac_func (); below.
38818     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38819     <limits.h> exists even on freestanding compilers.  */
38820
38821 #ifdef __STDC__
38822 # include <limits.h>
38823 #else
38824 # include <assert.h>
38825 #endif
38826
38827 #undef $ac_func
38828
38829 /* Override any gcc2 internal prototype to avoid an error.  */
38830 #ifdef __cplusplus
38831 extern "C"
38832 {
38833 #endif
38834 /* We use char because int might match the return type of a gcc2
38835    builtin and then its argument prototype would still apply.  */
38836 char $ac_func ();
38837 /* The GNU C library defines this for functions which it implements
38838     to always fail with ENOSYS.  Some functions are actually named
38839     something starting with __ and the normal name is an alias.  */
38840 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38841 choke me
38842 #else
38843 char (*f) () = $ac_func;
38844 #endif
38845 #ifdef __cplusplus
38846 }
38847 #endif
38848
38849 int
38850 main ()
38851 {
38852 return f != $ac_func;
38853   ;
38854   return 0;
38855 }
38856 _ACEOF
38857 rm -f conftest.$ac_objext conftest$ac_exeext
38858 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38859   (eval $ac_link) 2>conftest.er1
38860   ac_status=$?
38861   grep -v '^ *+' conftest.er1 >conftest.err
38862   rm -f conftest.er1
38863   cat conftest.err >&5
38864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38865   (exit $ac_status); } &&
38866          { ac_try='test -z "$ac_c_werror_flag"
38867                          || test ! -s conftest.err'
38868   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38869   (eval $ac_try) 2>&5
38870   ac_status=$?
38871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38872   (exit $ac_status); }; } &&
38873          { ac_try='test -s conftest$ac_exeext'
38874   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38875   (eval $ac_try) 2>&5
38876   ac_status=$?
38877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38878   (exit $ac_status); }; }; then
38879   eval "$as_ac_var=yes"
38880 else
38881   echo "$as_me: failed program was:" >&5
38882 sed 's/^/| /' conftest.$ac_ext >&5
38883
38884 eval "$as_ac_var=no"
38885 fi
38886 rm -f conftest.err conftest.$ac_objext \
38887       conftest$ac_exeext conftest.$ac_ext
38888 fi
38889 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38890 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38891 if test `eval echo '${'$as_ac_var'}'` = yes; then
38892   cat >>confdefs.h <<_ACEOF
38893 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38894 _ACEOF
38895  ice_have_mktemp=yes
38896 fi
38897 done
38898
38899 if test "${ice_have_mktemp}" = yes; then
38900 echo "$as_me:$LINENO: checking for mktemp declaration in stdlib.h" >&5
38901 echo $ECHO_N "checking for mktemp declaration in stdlib.h... $ECHO_C" >&6
38902 if test "${ice_cv_have_mktemp_decl+set}" = set; then
38903   echo $ECHO_N "(cached) $ECHO_C" >&6
38904 else
38905
38906 ice_cv_have_mktemp_decl=no
38907 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
38908 ice_re_word='(^|[^a-zA-Z0-9_])'
38909 for header in stdlib.h; do
38910 # Check for ordinary declaration
38911 cat >conftest.$ac_ext <<_ACEOF
38912 /* confdefs.h.  */
38913 _ACEOF
38914 cat confdefs.h >>conftest.$ac_ext
38915 cat >>conftest.$ac_ext <<_ACEOF
38916 /* end confdefs.h.  */
38917 #include <$header>
38918
38919 _ACEOF
38920 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38921   $EGREP "${ice_re_word}mktemp[         ]*\(" >/dev/null 2>&1; then
38922   ice_cv_have_mktemp_decl=yes
38923 fi
38924 rm -f conftest*
38925
38926 if test "$ice_cv_have_mktemp_decl" = yes; then
38927         break
38928 fi
38929 # Check for "fixed" declaration like "getpid _PARAMS((int))"
38930 cat >conftest.$ac_ext <<_ACEOF
38931 /* confdefs.h.  */
38932 _ACEOF
38933 cat confdefs.h >>conftest.$ac_ext
38934 cat >>conftest.$ac_ext <<_ACEOF
38935 /* end confdefs.h.  */
38936 #include <$header>
38937
38938 _ACEOF
38939 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38940   $EGREP "${ice_re_word}mktemp[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
38941   ice_cv_have_mktemp_decl=yes
38942 fi
38943 rm -f conftest*
38944
38945 if test "$ice_cv_have_mktemp_decl" = yes; then
38946         break
38947 fi
38948 done
38949
38950 fi
38951
38952 echo "$as_me:$LINENO: result: $ice_cv_have_mktemp_decl" >&5
38953 echo "${ECHO_T}$ice_cv_have_mktemp_decl" >&6
38954 if test "$ice_cv_have_mktemp_decl" = yes; then
38955
38956 cat >>confdefs.h <<_ACEOF
38957 #define HAVE_MKTEMP_DECL 1
38958 _ACEOF
38959
38960 fi
38961 fi
38962
38963
38964 for ac_func in mktime
38965 do
38966 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38967 echo "$as_me:$LINENO: checking for $ac_func" >&5
38968 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38969 if eval "test \"\${$as_ac_var+set}\" = set"; then
38970   echo $ECHO_N "(cached) $ECHO_C" >&6
38971 else
38972   cat >conftest.$ac_ext <<_ACEOF
38973 /* confdefs.h.  */
38974 _ACEOF
38975 cat confdefs.h >>conftest.$ac_ext
38976 cat >>conftest.$ac_ext <<_ACEOF
38977 /* end confdefs.h.  */
38978 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38979    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38980 #define $ac_func innocuous_$ac_func
38981
38982 /* System header to define __stub macros and hopefully few prototypes,
38983     which can conflict with char $ac_func (); below.
38984     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38985     <limits.h> exists even on freestanding compilers.  */
38986
38987 #ifdef __STDC__
38988 # include <limits.h>
38989 #else
38990 # include <assert.h>
38991 #endif
38992
38993 #undef $ac_func
38994
38995 /* Override any gcc2 internal prototype to avoid an error.  */
38996 #ifdef __cplusplus
38997 extern "C"
38998 {
38999 #endif
39000 /* We use char because int might match the return type of a gcc2
39001    builtin and then its argument prototype would still apply.  */
39002 char $ac_func ();
39003 /* The GNU C library defines this for functions which it implements
39004     to always fail with ENOSYS.  Some functions are actually named
39005     something starting with __ and the normal name is an alias.  */
39006 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39007 choke me
39008 #else
39009 char (*f) () = $ac_func;
39010 #endif
39011 #ifdef __cplusplus
39012 }
39013 #endif
39014
39015 int
39016 main ()
39017 {
39018 return f != $ac_func;
39019   ;
39020   return 0;
39021 }
39022 _ACEOF
39023 rm -f conftest.$ac_objext conftest$ac_exeext
39024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39025   (eval $ac_link) 2>conftest.er1
39026   ac_status=$?
39027   grep -v '^ *+' conftest.er1 >conftest.err
39028   rm -f conftest.er1
39029   cat conftest.err >&5
39030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39031   (exit $ac_status); } &&
39032          { ac_try='test -z "$ac_c_werror_flag"
39033                          || test ! -s conftest.err'
39034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39035   (eval $ac_try) 2>&5
39036   ac_status=$?
39037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39038   (exit $ac_status); }; } &&
39039          { ac_try='test -s conftest$ac_exeext'
39040   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39041   (eval $ac_try) 2>&5
39042   ac_status=$?
39043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39044   (exit $ac_status); }; }; then
39045   eval "$as_ac_var=yes"
39046 else
39047   echo "$as_me: failed program was:" >&5
39048 sed 's/^/| /' conftest.$ac_ext >&5
39049
39050 eval "$as_ac_var=no"
39051 fi
39052 rm -f conftest.err conftest.$ac_objext \
39053       conftest$ac_exeext conftest.$ac_ext
39054 fi
39055 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39056 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39057 if test `eval echo '${'$as_ac_var'}'` = yes; then
39058   cat >>confdefs.h <<_ACEOF
39059 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39060 _ACEOF
39061
39062 else
39063   case $LIBOBJS in
39064     "$ac_func.$ac_objext"   | \
39065   *" $ac_func.$ac_objext"   | \
39066     "$ac_func.$ac_objext "* | \
39067   *" $ac_func.$ac_objext "* ) ;;
39068   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
39069 esac
39070
39071 fi
39072 done
39073
39074
39075
39076 ice_have_mktime=no
39077
39078 for ac_func in mktime
39079 do
39080 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39081 echo "$as_me:$LINENO: checking for $ac_func" >&5
39082 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39083 if eval "test \"\${$as_ac_var+set}\" = set"; then
39084   echo $ECHO_N "(cached) $ECHO_C" >&6
39085 else
39086   cat >conftest.$ac_ext <<_ACEOF
39087 /* confdefs.h.  */
39088 _ACEOF
39089 cat confdefs.h >>conftest.$ac_ext
39090 cat >>conftest.$ac_ext <<_ACEOF
39091 /* end confdefs.h.  */
39092 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39093    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39094 #define $ac_func innocuous_$ac_func
39095
39096 /* System header to define __stub macros and hopefully few prototypes,
39097     which can conflict with char $ac_func (); below.
39098     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39099     <limits.h> exists even on freestanding compilers.  */
39100
39101 #ifdef __STDC__
39102 # include <limits.h>
39103 #else
39104 # include <assert.h>
39105 #endif
39106
39107 #undef $ac_func
39108
39109 /* Override any gcc2 internal prototype to avoid an error.  */
39110 #ifdef __cplusplus
39111 extern "C"
39112 {
39113 #endif
39114 /* We use char because int might match the return type of a gcc2
39115    builtin and then its argument prototype would still apply.  */
39116 char $ac_func ();
39117 /* The GNU C library defines this for functions which it implements
39118     to always fail with ENOSYS.  Some functions are actually named
39119     something starting with __ and the normal name is an alias.  */
39120 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39121 choke me
39122 #else
39123 char (*f) () = $ac_func;
39124 #endif
39125 #ifdef __cplusplus
39126 }
39127 #endif
39128
39129 int
39130 main ()
39131 {
39132 return f != $ac_func;
39133   ;
39134   return 0;
39135 }
39136 _ACEOF
39137 rm -f conftest.$ac_objext conftest$ac_exeext
39138 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39139   (eval $ac_link) 2>conftest.er1
39140   ac_status=$?
39141   grep -v '^ *+' conftest.er1 >conftest.err
39142   rm -f conftest.er1
39143   cat conftest.err >&5
39144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39145   (exit $ac_status); } &&
39146          { ac_try='test -z "$ac_c_werror_flag"
39147                          || test ! -s conftest.err'
39148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39149   (eval $ac_try) 2>&5
39150   ac_status=$?
39151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39152   (exit $ac_status); }; } &&
39153          { ac_try='test -s conftest$ac_exeext'
39154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39155   (eval $ac_try) 2>&5
39156   ac_status=$?
39157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39158   (exit $ac_status); }; }; then
39159   eval "$as_ac_var=yes"
39160 else
39161   echo "$as_me: failed program was:" >&5
39162 sed 's/^/| /' conftest.$ac_ext >&5
39163
39164 eval "$as_ac_var=no"
39165 fi
39166 rm -f conftest.err conftest.$ac_objext \
39167       conftest$ac_exeext conftest.$ac_ext
39168 fi
39169 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39170 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39171 if test `eval echo '${'$as_ac_var'}'` = yes; then
39172   cat >>confdefs.h <<_ACEOF
39173 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39174 _ACEOF
39175  ice_have_mktime=yes
39176 fi
39177 done
39178
39179 if test "${ice_have_mktime}" = yes; then
39180 echo "$as_me:$LINENO: checking for mktime declaration in time.h sys/time.h" >&5
39181 echo $ECHO_N "checking for mktime declaration in time.h sys/time.h... $ECHO_C" >&6
39182 if test "${ice_cv_have_mktime_decl+set}" = set; then
39183   echo $ECHO_N "(cached) $ECHO_C" >&6
39184 else
39185
39186 ice_cv_have_mktime_decl=no
39187 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
39188 ice_re_word='(^|[^a-zA-Z0-9_])'
39189 for header in time.h sys/time.h; do
39190 # Check for ordinary declaration
39191 cat >conftest.$ac_ext <<_ACEOF
39192 /* confdefs.h.  */
39193 _ACEOF
39194 cat confdefs.h >>conftest.$ac_ext
39195 cat >>conftest.$ac_ext <<_ACEOF
39196 /* end confdefs.h.  */
39197 #include <$header>
39198
39199 _ACEOF
39200 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39201   $EGREP "${ice_re_word}mktime[         ]*\(" >/dev/null 2>&1; then
39202   ice_cv_have_mktime_decl=yes
39203 fi
39204 rm -f conftest*
39205
39206 if test "$ice_cv_have_mktime_decl" = yes; then
39207         break
39208 fi
39209 # Check for "fixed" declaration like "getpid _PARAMS((int))"
39210 cat >conftest.$ac_ext <<_ACEOF
39211 /* confdefs.h.  */
39212 _ACEOF
39213 cat confdefs.h >>conftest.$ac_ext
39214 cat >>conftest.$ac_ext <<_ACEOF
39215 /* end confdefs.h.  */
39216 #include <$header>
39217
39218 _ACEOF
39219 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39220   $EGREP "${ice_re_word}mktime[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
39221   ice_cv_have_mktime_decl=yes
39222 fi
39223 rm -f conftest*
39224
39225 if test "$ice_cv_have_mktime_decl" = yes; then
39226         break
39227 fi
39228 done
39229
39230 fi
39231
39232 echo "$as_me:$LINENO: result: $ice_cv_have_mktime_decl" >&5
39233 echo "${ECHO_T}$ice_cv_have_mktime_decl" >&6
39234 if test "$ice_cv_have_mktime_decl" = yes; then
39235
39236 cat >>confdefs.h <<_ACEOF
39237 #define HAVE_MKTIME_DECL 1
39238 _ACEOF
39239
39240 fi
39241 fi
39242
39243
39244
39245 for ac_header in stdlib.h unistd.h
39246 do
39247 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
39248 if eval "test \"\${$as_ac_Header+set}\" = set"; then
39249   echo "$as_me:$LINENO: checking for $ac_header" >&5
39250 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39251 if eval "test \"\${$as_ac_Header+set}\" = set"; then
39252   echo $ECHO_N "(cached) $ECHO_C" >&6
39253 fi
39254 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39255 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39256 else
39257   # Is the header compilable?
39258 echo "$as_me:$LINENO: checking $ac_header usability" >&5
39259 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
39260 cat >conftest.$ac_ext <<_ACEOF
39261 /* confdefs.h.  */
39262 _ACEOF
39263 cat confdefs.h >>conftest.$ac_ext
39264 cat >>conftest.$ac_ext <<_ACEOF
39265 /* end confdefs.h.  */
39266 $ac_includes_default
39267 #include <$ac_header>
39268 _ACEOF
39269 rm -f conftest.$ac_objext
39270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39271   (eval $ac_compile) 2>conftest.er1
39272   ac_status=$?
39273   grep -v '^ *+' conftest.er1 >conftest.err
39274   rm -f conftest.er1
39275   cat conftest.err >&5
39276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39277   (exit $ac_status); } &&
39278          { ac_try='test -z "$ac_c_werror_flag"
39279                          || test ! -s conftest.err'
39280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39281   (eval $ac_try) 2>&5
39282   ac_status=$?
39283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39284   (exit $ac_status); }; } &&
39285          { ac_try='test -s conftest.$ac_objext'
39286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39287   (eval $ac_try) 2>&5
39288   ac_status=$?
39289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39290   (exit $ac_status); }; }; then
39291   ac_header_compiler=yes
39292 else
39293   echo "$as_me: failed program was:" >&5
39294 sed 's/^/| /' conftest.$ac_ext >&5
39295
39296 ac_header_compiler=no
39297 fi
39298 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39299 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39300 echo "${ECHO_T}$ac_header_compiler" >&6
39301
39302 # Is the header present?
39303 echo "$as_me:$LINENO: checking $ac_header presence" >&5
39304 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
39305 cat >conftest.$ac_ext <<_ACEOF
39306 /* confdefs.h.  */
39307 _ACEOF
39308 cat confdefs.h >>conftest.$ac_ext
39309 cat >>conftest.$ac_ext <<_ACEOF
39310 /* end confdefs.h.  */
39311 #include <$ac_header>
39312 _ACEOF
39313 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
39314   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
39315   ac_status=$?
39316   grep -v '^ *+' conftest.er1 >conftest.err
39317   rm -f conftest.er1
39318   cat conftest.err >&5
39319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39320   (exit $ac_status); } >/dev/null; then
39321   if test -s conftest.err; then
39322     ac_cpp_err=$ac_c_preproc_warn_flag
39323     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
39324   else
39325     ac_cpp_err=
39326   fi
39327 else
39328   ac_cpp_err=yes
39329 fi
39330 if test -z "$ac_cpp_err"; then
39331   ac_header_preproc=yes
39332 else
39333   echo "$as_me: failed program was:" >&5
39334 sed 's/^/| /' conftest.$ac_ext >&5
39335
39336   ac_header_preproc=no
39337 fi
39338 rm -f conftest.err conftest.$ac_ext
39339 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39340 echo "${ECHO_T}$ac_header_preproc" >&6
39341
39342 # So?  What about this header?
39343 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
39344   yes:no: )
39345     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
39346 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
39347     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
39348 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
39349     ac_header_preproc=yes
39350     ;;
39351   no:yes:* )
39352     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
39353 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
39354     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
39355 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
39356     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
39357 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
39358     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
39359 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
39360     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
39361 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
39362     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
39363 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
39364     (
39365       cat <<\_ASBOX
39366 ## ------------------------------------------ ##
39367 ## Report this to the AC_PACKAGE_NAME lists.  ##
39368 ## ------------------------------------------ ##
39369 _ASBOX
39370     ) |
39371       sed "s/^/$as_me: WARNING:     /" >&2
39372     ;;
39373 esac
39374 echo "$as_me:$LINENO: checking for $ac_header" >&5
39375 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39376 if eval "test \"\${$as_ac_Header+set}\" = set"; then
39377   echo $ECHO_N "(cached) $ECHO_C" >&6
39378 else
39379   eval "$as_ac_Header=\$ac_header_preproc"
39380 fi
39381 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39382 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39383
39384 fi
39385 if test `eval echo '${'$as_ac_Header'}'` = yes; then
39386   cat >>confdefs.h <<_ACEOF
39387 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
39388 _ACEOF
39389
39390 fi
39391
39392 done
39393
39394
39395 for ac_func in getpagesize
39396 do
39397 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39398 echo "$as_me:$LINENO: checking for $ac_func" >&5
39399 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39400 if eval "test \"\${$as_ac_var+set}\" = set"; then
39401   echo $ECHO_N "(cached) $ECHO_C" >&6
39402 else
39403   cat >conftest.$ac_ext <<_ACEOF
39404 /* confdefs.h.  */
39405 _ACEOF
39406 cat confdefs.h >>conftest.$ac_ext
39407 cat >>conftest.$ac_ext <<_ACEOF
39408 /* end confdefs.h.  */
39409 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39410    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39411 #define $ac_func innocuous_$ac_func
39412
39413 /* System header to define __stub macros and hopefully few prototypes,
39414     which can conflict with char $ac_func (); below.
39415     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39416     <limits.h> exists even on freestanding compilers.  */
39417
39418 #ifdef __STDC__
39419 # include <limits.h>
39420 #else
39421 # include <assert.h>
39422 #endif
39423
39424 #undef $ac_func
39425
39426 /* Override any gcc2 internal prototype to avoid an error.  */
39427 #ifdef __cplusplus
39428 extern "C"
39429 {
39430 #endif
39431 /* We use char because int might match the return type of a gcc2
39432    builtin and then its argument prototype would still apply.  */
39433 char $ac_func ();
39434 /* The GNU C library defines this for functions which it implements
39435     to always fail with ENOSYS.  Some functions are actually named
39436     something starting with __ and the normal name is an alias.  */
39437 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39438 choke me
39439 #else
39440 char (*f) () = $ac_func;
39441 #endif
39442 #ifdef __cplusplus
39443 }
39444 #endif
39445
39446 int
39447 main ()
39448 {
39449 return f != $ac_func;
39450   ;
39451   return 0;
39452 }
39453 _ACEOF
39454 rm -f conftest.$ac_objext conftest$ac_exeext
39455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39456   (eval $ac_link) 2>conftest.er1
39457   ac_status=$?
39458   grep -v '^ *+' conftest.er1 >conftest.err
39459   rm -f conftest.er1
39460   cat conftest.err >&5
39461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39462   (exit $ac_status); } &&
39463          { ac_try='test -z "$ac_c_werror_flag"
39464                          || test ! -s conftest.err'
39465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39466   (eval $ac_try) 2>&5
39467   ac_status=$?
39468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39469   (exit $ac_status); }; } &&
39470          { ac_try='test -s conftest$ac_exeext'
39471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39472   (eval $ac_try) 2>&5
39473   ac_status=$?
39474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39475   (exit $ac_status); }; }; then
39476   eval "$as_ac_var=yes"
39477 else
39478   echo "$as_me: failed program was:" >&5
39479 sed 's/^/| /' conftest.$ac_ext >&5
39480
39481 eval "$as_ac_var=no"
39482 fi
39483 rm -f conftest.err conftest.$ac_objext \
39484       conftest$ac_exeext conftest.$ac_ext
39485 fi
39486 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39487 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39488 if test `eval echo '${'$as_ac_var'}'` = yes; then
39489   cat >>confdefs.h <<_ACEOF
39490 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39491 _ACEOF
39492
39493 fi
39494 done
39495
39496 echo "$as_me:$LINENO: checking for working mmap" >&5
39497 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
39498 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
39499   echo $ECHO_N "(cached) $ECHO_C" >&6
39500 else
39501   if test "$cross_compiling" = yes; then
39502   ac_cv_func_mmap_fixed_mapped=no
39503 else
39504   cat >conftest.$ac_ext <<_ACEOF
39505 /* confdefs.h.  */
39506 _ACEOF
39507 cat confdefs.h >>conftest.$ac_ext
39508 cat >>conftest.$ac_ext <<_ACEOF
39509 /* end confdefs.h.  */
39510 $ac_includes_default
39511 /* malloc might have been renamed as rpl_malloc. */
39512 #undef malloc
39513
39514 /* Thanks to Mike Haertel and Jim Avera for this test.
39515    Here is a matrix of mmap possibilities:
39516         mmap private not fixed
39517         mmap private fixed at somewhere currently unmapped
39518         mmap private fixed at somewhere already mapped
39519         mmap shared not fixed
39520         mmap shared fixed at somewhere currently unmapped
39521         mmap shared fixed at somewhere already mapped
39522    For private mappings, we should verify that changes cannot be read()
39523    back from the file, nor mmap's back from the file at a different
39524    address.  (There have been systems where private was not correctly
39525    implemented like the infamous i386 svr4.0, and systems where the
39526    VM page cache was not coherent with the file system buffer cache
39527    like early versions of FreeBSD and possibly contemporary NetBSD.)
39528    For shared mappings, we should conversely verify that changes get
39529    propagated back to all the places they're supposed to be.
39530
39531    Grep wants private fixed already mapped.
39532    The main things grep needs to know about mmap are:
39533    * does it exist and is it safe to write into the mmap'd area
39534    * how to use it (BSD variants)  */
39535
39536 #include <fcntl.h>
39537 #include <sys/mman.h>
39538
39539 #if !STDC_HEADERS && !HAVE_STDLIB_H
39540 char *malloc ();
39541 #endif
39542
39543 /* This mess was copied from the GNU getpagesize.h.  */
39544 #if !HAVE_GETPAGESIZE
39545 /* Assume that all systems that can run configure have sys/param.h.  */
39546 # if !HAVE_SYS_PARAM_H
39547 #  define HAVE_SYS_PARAM_H 1
39548 # endif
39549
39550 # ifdef _SC_PAGESIZE
39551 #  define getpagesize() sysconf(_SC_PAGESIZE)
39552 # else /* no _SC_PAGESIZE */
39553 #  if HAVE_SYS_PARAM_H
39554 #   include <sys/param.h>
39555 #   ifdef EXEC_PAGESIZE
39556 #    define getpagesize() EXEC_PAGESIZE
39557 #   else /* no EXEC_PAGESIZE */
39558 #    ifdef NBPG
39559 #     define getpagesize() NBPG * CLSIZE
39560 #     ifndef CLSIZE
39561 #      define CLSIZE 1
39562 #     endif /* no CLSIZE */
39563 #    else /* no NBPG */
39564 #     ifdef NBPC
39565 #      define getpagesize() NBPC
39566 #     else /* no NBPC */
39567 #      ifdef PAGESIZE
39568 #       define getpagesize() PAGESIZE
39569 #      endif /* PAGESIZE */
39570 #     endif /* no NBPC */
39571 #    endif /* no NBPG */
39572 #   endif /* no EXEC_PAGESIZE */
39573 #  else /* no HAVE_SYS_PARAM_H */
39574 #   define getpagesize() 8192   /* punt totally */
39575 #  endif /* no HAVE_SYS_PARAM_H */
39576 # endif /* no _SC_PAGESIZE */
39577
39578 #endif /* no HAVE_GETPAGESIZE */
39579
39580 int
39581 main ()
39582 {
39583   char *data, *data2, *data3;
39584   int i, pagesize;
39585   int fd;
39586
39587   pagesize = getpagesize ();
39588
39589   /* First, make a file with some known garbage in it. */
39590   data = (char *) malloc (pagesize);
39591   if (!data)
39592     exit (1);
39593   for (i = 0; i < pagesize; ++i)
39594     *(data + i) = rand ();
39595   umask (0);
39596   fd = creat ("conftest.mmap", 0600);
39597   if (fd < 0)
39598     exit (1);
39599   if (write (fd, data, pagesize) != pagesize)
39600     exit (1);
39601   close (fd);
39602
39603   /* Next, try to mmap the file at a fixed address which already has
39604      something else allocated at it.  If we can, also make sure that
39605      we see the same garbage.  */
39606   fd = open ("conftest.mmap", O_RDWR);
39607   if (fd < 0)
39608     exit (1);
39609   data2 = (char *) malloc (2 * pagesize);
39610   if (!data2)
39611     exit (1);
39612   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
39613   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
39614                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
39615     exit (1);
39616   for (i = 0; i < pagesize; ++i)
39617     if (*(data + i) != *(data2 + i))
39618       exit (1);
39619
39620   /* Finally, make sure that changes to the mapped area do not
39621      percolate back to the file as seen by read().  (This is a bug on
39622      some variants of i386 svr4.0.)  */
39623   for (i = 0; i < pagesize; ++i)
39624     *(data2 + i) = *(data2 + i) + 1;
39625   data3 = (char *) malloc (pagesize);
39626   if (!data3)
39627     exit (1);
39628   if (read (fd, data3, pagesize) != pagesize)
39629     exit (1);
39630   for (i = 0; i < pagesize; ++i)
39631     if (*(data + i) != *(data3 + i))
39632       exit (1);
39633   close (fd);
39634   exit (0);
39635 }
39636 _ACEOF
39637 rm -f conftest$ac_exeext
39638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39639   (eval $ac_link) 2>&5
39640   ac_status=$?
39641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39642   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39643   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39644   (eval $ac_try) 2>&5
39645   ac_status=$?
39646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39647   (exit $ac_status); }; }; then
39648   ac_cv_func_mmap_fixed_mapped=yes
39649 else
39650   echo "$as_me: program exited with status $ac_status" >&5
39651 echo "$as_me: failed program was:" >&5
39652 sed 's/^/| /' conftest.$ac_ext >&5
39653
39654 ( exit $ac_status )
39655 ac_cv_func_mmap_fixed_mapped=no
39656 fi
39657 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39658 fi
39659 fi
39660 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
39661 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
39662 if test $ac_cv_func_mmap_fixed_mapped = yes; then
39663
39664 cat >>confdefs.h <<\_ACEOF
39665 #define HAVE_MMAP 1
39666 _ACEOF
39667
39668 fi
39669 rm -f conftest.mmap
39670
39671
39672 for ac_func in on_exit
39673 do
39674 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39675 echo "$as_me:$LINENO: checking for $ac_func" >&5
39676 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39677 if eval "test \"\${$as_ac_var+set}\" = set"; then
39678   echo $ECHO_N "(cached) $ECHO_C" >&6
39679 else
39680   cat >conftest.$ac_ext <<_ACEOF
39681 /* confdefs.h.  */
39682 _ACEOF
39683 cat confdefs.h >>conftest.$ac_ext
39684 cat >>conftest.$ac_ext <<_ACEOF
39685 /* end confdefs.h.  */
39686 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39687    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39688 #define $ac_func innocuous_$ac_func
39689
39690 /* System header to define __stub macros and hopefully few prototypes,
39691     which can conflict with char $ac_func (); below.
39692     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39693     <limits.h> exists even on freestanding compilers.  */
39694
39695 #ifdef __STDC__
39696 # include <limits.h>
39697 #else
39698 # include <assert.h>
39699 #endif
39700
39701 #undef $ac_func
39702
39703 /* Override any gcc2 internal prototype to avoid an error.  */
39704 #ifdef __cplusplus
39705 extern "C"
39706 {
39707 #endif
39708 /* We use char because int might match the return type of a gcc2
39709    builtin and then its argument prototype would still apply.  */
39710 char $ac_func ();
39711 /* The GNU C library defines this for functions which it implements
39712     to always fail with ENOSYS.  Some functions are actually named
39713     something starting with __ and the normal name is an alias.  */
39714 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39715 choke me
39716 #else
39717 char (*f) () = $ac_func;
39718 #endif
39719 #ifdef __cplusplus
39720 }
39721 #endif
39722
39723 int
39724 main ()
39725 {
39726 return f != $ac_func;
39727   ;
39728   return 0;
39729 }
39730 _ACEOF
39731 rm -f conftest.$ac_objext conftest$ac_exeext
39732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39733   (eval $ac_link) 2>conftest.er1
39734   ac_status=$?
39735   grep -v '^ *+' conftest.er1 >conftest.err
39736   rm -f conftest.er1
39737   cat conftest.err >&5
39738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39739   (exit $ac_status); } &&
39740          { ac_try='test -z "$ac_c_werror_flag"
39741                          || test ! -s conftest.err'
39742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39743   (eval $ac_try) 2>&5
39744   ac_status=$?
39745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39746   (exit $ac_status); }; } &&
39747          { ac_try='test -s conftest$ac_exeext'
39748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39749   (eval $ac_try) 2>&5
39750   ac_status=$?
39751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39752   (exit $ac_status); }; }; then
39753   eval "$as_ac_var=yes"
39754 else
39755   echo "$as_me: failed program was:" >&5
39756 sed 's/^/| /' conftest.$ac_ext >&5
39757
39758 eval "$as_ac_var=no"
39759 fi
39760 rm -f conftest.err conftest.$ac_objext \
39761       conftest$ac_exeext conftest.$ac_ext
39762 fi
39763 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39764 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39765 if test `eval echo '${'$as_ac_var'}'` = yes; then
39766   cat >>confdefs.h <<_ACEOF
39767 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39768 _ACEOF
39769
39770 fi
39771 done
39772
39773
39774 ice_have_openlog=no
39775
39776 for ac_func in openlog
39777 do
39778 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39779 echo "$as_me:$LINENO: checking for $ac_func" >&5
39780 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39781 if eval "test \"\${$as_ac_var+set}\" = set"; then
39782   echo $ECHO_N "(cached) $ECHO_C" >&6
39783 else
39784   cat >conftest.$ac_ext <<_ACEOF
39785 /* confdefs.h.  */
39786 _ACEOF
39787 cat confdefs.h >>conftest.$ac_ext
39788 cat >>conftest.$ac_ext <<_ACEOF
39789 /* end confdefs.h.  */
39790 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39791    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39792 #define $ac_func innocuous_$ac_func
39793
39794 /* System header to define __stub macros and hopefully few prototypes,
39795     which can conflict with char $ac_func (); below.
39796     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39797     <limits.h> exists even on freestanding compilers.  */
39798
39799 #ifdef __STDC__
39800 # include <limits.h>
39801 #else
39802 # include <assert.h>
39803 #endif
39804
39805 #undef $ac_func
39806
39807 /* Override any gcc2 internal prototype to avoid an error.  */
39808 #ifdef __cplusplus
39809 extern "C"
39810 {
39811 #endif
39812 /* We use char because int might match the return type of a gcc2
39813    builtin and then its argument prototype would still apply.  */
39814 char $ac_func ();
39815 /* The GNU C library defines this for functions which it implements
39816     to always fail with ENOSYS.  Some functions are actually named
39817     something starting with __ and the normal name is an alias.  */
39818 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39819 choke me
39820 #else
39821 char (*f) () = $ac_func;
39822 #endif
39823 #ifdef __cplusplus
39824 }
39825 #endif
39826
39827 int
39828 main ()
39829 {
39830 return f != $ac_func;
39831   ;
39832   return 0;
39833 }
39834 _ACEOF
39835 rm -f conftest.$ac_objext conftest$ac_exeext
39836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39837   (eval $ac_link) 2>conftest.er1
39838   ac_status=$?
39839   grep -v '^ *+' conftest.er1 >conftest.err
39840   rm -f conftest.er1
39841   cat conftest.err >&5
39842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39843   (exit $ac_status); } &&
39844          { ac_try='test -z "$ac_c_werror_flag"
39845                          || test ! -s conftest.err'
39846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39847   (eval $ac_try) 2>&5
39848   ac_status=$?
39849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39850   (exit $ac_status); }; } &&
39851          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
39857   eval "$as_ac_var=yes"
39858 else
39859   echo "$as_me: failed program was:" >&5
39860 sed 's/^/| /' conftest.$ac_ext >&5
39861
39862 eval "$as_ac_var=no"
39863 fi
39864 rm -f conftest.err conftest.$ac_objext \
39865       conftest$ac_exeext conftest.$ac_ext
39866 fi
39867 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39868 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39869 if test `eval echo '${'$as_ac_var'}'` = yes; then
39870   cat >>confdefs.h <<_ACEOF
39871 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39872 _ACEOF
39873  ice_have_openlog=yes
39874 fi
39875 done
39876
39877 if test "${ice_have_openlog}" = yes; then
39878 echo "$as_me:$LINENO: checking for openlog declaration in syslog.h" >&5
39879 echo $ECHO_N "checking for openlog declaration in syslog.h... $ECHO_C" >&6
39880 if test "${ice_cv_have_openlog_decl+set}" = set; then
39881   echo $ECHO_N "(cached) $ECHO_C" >&6
39882 else
39883
39884 ice_cv_have_openlog_decl=no
39885 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
39886 ice_re_word='(^|[^a-zA-Z0-9_])'
39887 for header in syslog.h; do
39888 # Check for ordinary declaration
39889 cat >conftest.$ac_ext <<_ACEOF
39890 /* confdefs.h.  */
39891 _ACEOF
39892 cat confdefs.h >>conftest.$ac_ext
39893 cat >>conftest.$ac_ext <<_ACEOF
39894 /* end confdefs.h.  */
39895 #include <$header>
39896
39897 _ACEOF
39898 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39899   $EGREP "${ice_re_word}openlog[        ]*\(" >/dev/null 2>&1; then
39900   ice_cv_have_openlog_decl=yes
39901 fi
39902 rm -f conftest*
39903
39904 if test "$ice_cv_have_openlog_decl" = yes; then
39905         break
39906 fi
39907 # Check for "fixed" declaration like "getpid _PARAMS((int))"
39908 cat >conftest.$ac_ext <<_ACEOF
39909 /* confdefs.h.  */
39910 _ACEOF
39911 cat confdefs.h >>conftest.$ac_ext
39912 cat >>conftest.$ac_ext <<_ACEOF
39913 /* end confdefs.h.  */
39914 #include <$header>
39915
39916 _ACEOF
39917 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39918   $EGREP "${ice_re_word}openlog[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
39919   ice_cv_have_openlog_decl=yes
39920 fi
39921 rm -f conftest*
39922
39923 if test "$ice_cv_have_openlog_decl" = yes; then
39924         break
39925 fi
39926 done
39927
39928 fi
39929
39930 echo "$as_me:$LINENO: result: $ice_cv_have_openlog_decl" >&5
39931 echo "${ECHO_T}$ice_cv_have_openlog_decl" >&6
39932 if test "$ice_cv_have_openlog_decl" = yes; then
39933
39934 cat >>confdefs.h <<_ACEOF
39935 #define HAVE_OPENLOG_DECL 1
39936 _ACEOF
39937
39938 fi
39939 fi
39940
39941
39942 ice_have_pclose=no
39943
39944 for ac_func in pclose
39945 do
39946 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39947 echo "$as_me:$LINENO: checking for $ac_func" >&5
39948 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39949 if eval "test \"\${$as_ac_var+set}\" = set"; then
39950   echo $ECHO_N "(cached) $ECHO_C" >&6
39951 else
39952   cat >conftest.$ac_ext <<_ACEOF
39953 /* confdefs.h.  */
39954 _ACEOF
39955 cat confdefs.h >>conftest.$ac_ext
39956 cat >>conftest.$ac_ext <<_ACEOF
39957 /* end confdefs.h.  */
39958 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39959    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39960 #define $ac_func innocuous_$ac_func
39961
39962 /* System header to define __stub macros and hopefully few prototypes,
39963     which can conflict with char $ac_func (); below.
39964     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39965     <limits.h> exists even on freestanding compilers.  */
39966
39967 #ifdef __STDC__
39968 # include <limits.h>
39969 #else
39970 # include <assert.h>
39971 #endif
39972
39973 #undef $ac_func
39974
39975 /* Override any gcc2 internal prototype to avoid an error.  */
39976 #ifdef __cplusplus
39977 extern "C"
39978 {
39979 #endif
39980 /* We use char because int might match the return type of a gcc2
39981    builtin and then its argument prototype would still apply.  */
39982 char $ac_func ();
39983 /* The GNU C library defines this for functions which it implements
39984     to always fail with ENOSYS.  Some functions are actually named
39985     something starting with __ and the normal name is an alias.  */
39986 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39987 choke me
39988 #else
39989 char (*f) () = $ac_func;
39990 #endif
39991 #ifdef __cplusplus
39992 }
39993 #endif
39994
39995 int
39996 main ()
39997 {
39998 return f != $ac_func;
39999   ;
40000   return 0;
40001 }
40002 _ACEOF
40003 rm -f conftest.$ac_objext conftest$ac_exeext
40004 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40005   (eval $ac_link) 2>conftest.er1
40006   ac_status=$?
40007   grep -v '^ *+' conftest.er1 >conftest.err
40008   rm -f conftest.er1
40009   cat conftest.err >&5
40010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40011   (exit $ac_status); } &&
40012          { ac_try='test -z "$ac_c_werror_flag"
40013                          || test ! -s conftest.err'
40014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40015   (eval $ac_try) 2>&5
40016   ac_status=$?
40017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40018   (exit $ac_status); }; } &&
40019          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
40025   eval "$as_ac_var=yes"
40026 else
40027   echo "$as_me: failed program was:" >&5
40028 sed 's/^/| /' conftest.$ac_ext >&5
40029
40030 eval "$as_ac_var=no"
40031 fi
40032 rm -f conftest.err conftest.$ac_objext \
40033       conftest$ac_exeext conftest.$ac_ext
40034 fi
40035 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40036 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40037 if test `eval echo '${'$as_ac_var'}'` = yes; then
40038   cat >>confdefs.h <<_ACEOF
40039 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40040 _ACEOF
40041  ice_have_pclose=yes
40042 fi
40043 done
40044
40045 if test "${ice_have_pclose}" = yes; then
40046 echo "$as_me:$LINENO: checking for pclose declaration in stdio.h" >&5
40047 echo $ECHO_N "checking for pclose declaration in stdio.h... $ECHO_C" >&6
40048 if test "${ice_cv_have_pclose_decl+set}" = set; then
40049   echo $ECHO_N "(cached) $ECHO_C" >&6
40050 else
40051
40052 ice_cv_have_pclose_decl=no
40053 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
40054 ice_re_word='(^|[^a-zA-Z0-9_])'
40055 for header in stdio.h; do
40056 # Check for ordinary declaration
40057 cat >conftest.$ac_ext <<_ACEOF
40058 /* confdefs.h.  */
40059 _ACEOF
40060 cat confdefs.h >>conftest.$ac_ext
40061 cat >>conftest.$ac_ext <<_ACEOF
40062 /* end confdefs.h.  */
40063 #include <$header>
40064
40065 _ACEOF
40066 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40067   $EGREP "${ice_re_word}pclose[         ]*\(" >/dev/null 2>&1; then
40068   ice_cv_have_pclose_decl=yes
40069 fi
40070 rm -f conftest*
40071
40072 if test "$ice_cv_have_pclose_decl" = yes; then
40073         break
40074 fi
40075 # Check for "fixed" declaration like "getpid _PARAMS((int))"
40076 cat >conftest.$ac_ext <<_ACEOF
40077 /* confdefs.h.  */
40078 _ACEOF
40079 cat confdefs.h >>conftest.$ac_ext
40080 cat >>conftest.$ac_ext <<_ACEOF
40081 /* end confdefs.h.  */
40082 #include <$header>
40083
40084 _ACEOF
40085 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40086   $EGREP "${ice_re_word}pclose[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
40087   ice_cv_have_pclose_decl=yes
40088 fi
40089 rm -f conftest*
40090
40091 if test "$ice_cv_have_pclose_decl" = yes; then
40092         break
40093 fi
40094 done
40095
40096 fi
40097
40098 echo "$as_me:$LINENO: result: $ice_cv_have_pclose_decl" >&5
40099 echo "${ECHO_T}$ice_cv_have_pclose_decl" >&6
40100 if test "$ice_cv_have_pclose_decl" = yes; then
40101
40102 cat >>confdefs.h <<_ACEOF
40103 #define HAVE_PCLOSE_DECL 1
40104 _ACEOF
40105
40106 fi
40107 fi
40108
40109
40110 ice_have_perror=no
40111
40112 for ac_func in perror
40113 do
40114 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40115 echo "$as_me:$LINENO: checking for $ac_func" >&5
40116 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40117 if eval "test \"\${$as_ac_var+set}\" = set"; then
40118   echo $ECHO_N "(cached) $ECHO_C" >&6
40119 else
40120   cat >conftest.$ac_ext <<_ACEOF
40121 /* confdefs.h.  */
40122 _ACEOF
40123 cat confdefs.h >>conftest.$ac_ext
40124 cat >>conftest.$ac_ext <<_ACEOF
40125 /* end confdefs.h.  */
40126 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40127    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40128 #define $ac_func innocuous_$ac_func
40129
40130 /* System header to define __stub macros and hopefully few prototypes,
40131     which can conflict with char $ac_func (); below.
40132     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40133     <limits.h> exists even on freestanding compilers.  */
40134
40135 #ifdef __STDC__
40136 # include <limits.h>
40137 #else
40138 # include <assert.h>
40139 #endif
40140
40141 #undef $ac_func
40142
40143 /* Override any gcc2 internal prototype to avoid an error.  */
40144 #ifdef __cplusplus
40145 extern "C"
40146 {
40147 #endif
40148 /* We use char because int might match the return type of a gcc2
40149    builtin and then its argument prototype would still apply.  */
40150 char $ac_func ();
40151 /* The GNU C library defines this for functions which it implements
40152     to always fail with ENOSYS.  Some functions are actually named
40153     something starting with __ and the normal name is an alias.  */
40154 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40155 choke me
40156 #else
40157 char (*f) () = $ac_func;
40158 #endif
40159 #ifdef __cplusplus
40160 }
40161 #endif
40162
40163 int
40164 main ()
40165 {
40166 return f != $ac_func;
40167   ;
40168   return 0;
40169 }
40170 _ACEOF
40171 rm -f conftest.$ac_objext conftest$ac_exeext
40172 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40173   (eval $ac_link) 2>conftest.er1
40174   ac_status=$?
40175   grep -v '^ *+' conftest.er1 >conftest.err
40176   rm -f conftest.er1
40177   cat conftest.err >&5
40178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40179   (exit $ac_status); } &&
40180          { ac_try='test -z "$ac_c_werror_flag"
40181                          || test ! -s conftest.err'
40182   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40183   (eval $ac_try) 2>&5
40184   ac_status=$?
40185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40186   (exit $ac_status); }; } &&
40187          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
40193   eval "$as_ac_var=yes"
40194 else
40195   echo "$as_me: failed program was:" >&5
40196 sed 's/^/| /' conftest.$ac_ext >&5
40197
40198 eval "$as_ac_var=no"
40199 fi
40200 rm -f conftest.err conftest.$ac_objext \
40201       conftest$ac_exeext conftest.$ac_ext
40202 fi
40203 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40204 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40205 if test `eval echo '${'$as_ac_var'}'` = yes; then
40206   cat >>confdefs.h <<_ACEOF
40207 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40208 _ACEOF
40209  ice_have_perror=yes
40210 fi
40211 done
40212
40213 if test "${ice_have_perror}" = yes; then
40214 echo "$as_me:$LINENO: checking for perror declaration in stdio.h" >&5
40215 echo $ECHO_N "checking for perror declaration in stdio.h... $ECHO_C" >&6
40216 if test "${ice_cv_have_perror_decl+set}" = set; then
40217   echo $ECHO_N "(cached) $ECHO_C" >&6
40218 else
40219
40220 ice_cv_have_perror_decl=no
40221 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
40222 ice_re_word='(^|[^a-zA-Z0-9_])'
40223 for header in stdio.h; do
40224 # Check for ordinary declaration
40225 cat >conftest.$ac_ext <<_ACEOF
40226 /* confdefs.h.  */
40227 _ACEOF
40228 cat confdefs.h >>conftest.$ac_ext
40229 cat >>conftest.$ac_ext <<_ACEOF
40230 /* end confdefs.h.  */
40231 #include <$header>
40232
40233 _ACEOF
40234 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40235   $EGREP "${ice_re_word}perror[         ]*\(" >/dev/null 2>&1; then
40236   ice_cv_have_perror_decl=yes
40237 fi
40238 rm -f conftest*
40239
40240 if test "$ice_cv_have_perror_decl" = yes; then
40241         break
40242 fi
40243 # Check for "fixed" declaration like "getpid _PARAMS((int))"
40244 cat >conftest.$ac_ext <<_ACEOF
40245 /* confdefs.h.  */
40246 _ACEOF
40247 cat confdefs.h >>conftest.$ac_ext
40248 cat >>conftest.$ac_ext <<_ACEOF
40249 /* end confdefs.h.  */
40250 #include <$header>
40251
40252 _ACEOF
40253 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40254   $EGREP "${ice_re_word}perror[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
40255   ice_cv_have_perror_decl=yes
40256 fi
40257 rm -f conftest*
40258
40259 if test "$ice_cv_have_perror_decl" = yes; then
40260         break
40261 fi
40262 done
40263
40264 fi
40265
40266 echo "$as_me:$LINENO: result: $ice_cv_have_perror_decl" >&5
40267 echo "${ECHO_T}$ice_cv_have_perror_decl" >&6
40268 if test "$ice_cv_have_perror_decl" = yes; then
40269
40270 cat >>confdefs.h <<_ACEOF
40271 #define HAVE_PERROR_DECL 1
40272 _ACEOF
40273
40274 fi
40275 fi
40276
40277
40278 ice_have_printf=no
40279
40280 for ac_func in printf
40281 do
40282 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40283 echo "$as_me:$LINENO: checking for $ac_func" >&5
40284 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40285 if eval "test \"\${$as_ac_var+set}\" = set"; then
40286   echo $ECHO_N "(cached) $ECHO_C" >&6
40287 else
40288   cat >conftest.$ac_ext <<_ACEOF
40289 /* confdefs.h.  */
40290 _ACEOF
40291 cat confdefs.h >>conftest.$ac_ext
40292 cat >>conftest.$ac_ext <<_ACEOF
40293 /* end confdefs.h.  */
40294 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40295    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40296 #define $ac_func innocuous_$ac_func
40297
40298 /* System header to define __stub macros and hopefully few prototypes,
40299     which can conflict with char $ac_func (); below.
40300     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40301     <limits.h> exists even on freestanding compilers.  */
40302
40303 #ifdef __STDC__
40304 # include <limits.h>
40305 #else
40306 # include <assert.h>
40307 #endif
40308
40309 #undef $ac_func
40310
40311 /* Override any gcc2 internal prototype to avoid an error.  */
40312 #ifdef __cplusplus
40313 extern "C"
40314 {
40315 #endif
40316 /* We use char because int might match the return type of a gcc2
40317    builtin and then its argument prototype would still apply.  */
40318 char $ac_func ();
40319 /* The GNU C library defines this for functions which it implements
40320     to always fail with ENOSYS.  Some functions are actually named
40321     something starting with __ and the normal name is an alias.  */
40322 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40323 choke me
40324 #else
40325 char (*f) () = $ac_func;
40326 #endif
40327 #ifdef __cplusplus
40328 }
40329 #endif
40330
40331 int
40332 main ()
40333 {
40334 return f != $ac_func;
40335   ;
40336   return 0;
40337 }
40338 _ACEOF
40339 rm -f conftest.$ac_objext conftest$ac_exeext
40340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40341   (eval $ac_link) 2>conftest.er1
40342   ac_status=$?
40343   grep -v '^ *+' conftest.er1 >conftest.err
40344   rm -f conftest.er1
40345   cat conftest.err >&5
40346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40347   (exit $ac_status); } &&
40348          { ac_try='test -z "$ac_c_werror_flag"
40349                          || test ! -s conftest.err'
40350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40351   (eval $ac_try) 2>&5
40352   ac_status=$?
40353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40354   (exit $ac_status); }; } &&
40355          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
40361   eval "$as_ac_var=yes"
40362 else
40363   echo "$as_me: failed program was:" >&5
40364 sed 's/^/| /' conftest.$ac_ext >&5
40365
40366 eval "$as_ac_var=no"
40367 fi
40368 rm -f conftest.err conftest.$ac_objext \
40369       conftest$ac_exeext conftest.$ac_ext
40370 fi
40371 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40372 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40373 if test `eval echo '${'$as_ac_var'}'` = yes; then
40374   cat >>confdefs.h <<_ACEOF
40375 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40376 _ACEOF
40377  ice_have_printf=yes
40378 fi
40379 done
40380
40381 if test "${ice_have_printf}" = yes; then
40382 echo "$as_me:$LINENO: checking for printf declaration in stdio.h" >&5
40383 echo $ECHO_N "checking for printf declaration in stdio.h... $ECHO_C" >&6
40384 if test "${ice_cv_have_printf_decl+set}" = set; then
40385   echo $ECHO_N "(cached) $ECHO_C" >&6
40386 else
40387
40388 ice_cv_have_printf_decl=no
40389 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
40390 ice_re_word='(^|[^a-zA-Z0-9_])'
40391 for header in stdio.h; do
40392 # Check for ordinary declaration
40393 cat >conftest.$ac_ext <<_ACEOF
40394 /* confdefs.h.  */
40395 _ACEOF
40396 cat confdefs.h >>conftest.$ac_ext
40397 cat >>conftest.$ac_ext <<_ACEOF
40398 /* end confdefs.h.  */
40399 #include <$header>
40400
40401 _ACEOF
40402 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40403   $EGREP "${ice_re_word}printf[         ]*\(" >/dev/null 2>&1; then
40404   ice_cv_have_printf_decl=yes
40405 fi
40406 rm -f conftest*
40407
40408 if test "$ice_cv_have_printf_decl" = yes; then
40409         break
40410 fi
40411 # Check for "fixed" declaration like "getpid _PARAMS((int))"
40412 cat >conftest.$ac_ext <<_ACEOF
40413 /* confdefs.h.  */
40414 _ACEOF
40415 cat confdefs.h >>conftest.$ac_ext
40416 cat >>conftest.$ac_ext <<_ACEOF
40417 /* end confdefs.h.  */
40418 #include <$header>
40419
40420 _ACEOF
40421 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40422   $EGREP "${ice_re_word}printf[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
40423   ice_cv_have_printf_decl=yes
40424 fi
40425 rm -f conftest*
40426
40427 if test "$ice_cv_have_printf_decl" = yes; then
40428         break
40429 fi
40430 done
40431
40432 fi
40433
40434 echo "$as_me:$LINENO: result: $ice_cv_have_printf_decl" >&5
40435 echo "${ECHO_T}$ice_cv_have_printf_decl" >&6
40436 if test "$ice_cv_have_printf_decl" = yes; then
40437
40438 cat >>confdefs.h <<_ACEOF
40439 #define HAVE_PRINTF_DECL 1
40440 _ACEOF
40441
40442 fi
40443 fi
40444
40445
40446 for ac_func in putenv
40447 do
40448 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40449 echo "$as_me:$LINENO: checking for $ac_func" >&5
40450 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40451 if eval "test \"\${$as_ac_var+set}\" = set"; then
40452   echo $ECHO_N "(cached) $ECHO_C" >&6
40453 else
40454   cat >conftest.$ac_ext <<_ACEOF
40455 /* confdefs.h.  */
40456 _ACEOF
40457 cat confdefs.h >>conftest.$ac_ext
40458 cat >>conftest.$ac_ext <<_ACEOF
40459 /* end confdefs.h.  */
40460 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40461    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40462 #define $ac_func innocuous_$ac_func
40463
40464 /* System header to define __stub macros and hopefully few prototypes,
40465     which can conflict with char $ac_func (); below.
40466     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40467     <limits.h> exists even on freestanding compilers.  */
40468
40469 #ifdef __STDC__
40470 # include <limits.h>
40471 #else
40472 # include <assert.h>
40473 #endif
40474
40475 #undef $ac_func
40476
40477 /* Override any gcc2 internal prototype to avoid an error.  */
40478 #ifdef __cplusplus
40479 extern "C"
40480 {
40481 #endif
40482 /* We use char because int might match the return type of a gcc2
40483    builtin and then its argument prototype would still apply.  */
40484 char $ac_func ();
40485 /* The GNU C library defines this for functions which it implements
40486     to always fail with ENOSYS.  Some functions are actually named
40487     something starting with __ and the normal name is an alias.  */
40488 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40489 choke me
40490 #else
40491 char (*f) () = $ac_func;
40492 #endif
40493 #ifdef __cplusplus
40494 }
40495 #endif
40496
40497 int
40498 main ()
40499 {
40500 return f != $ac_func;
40501   ;
40502   return 0;
40503 }
40504 _ACEOF
40505 rm -f conftest.$ac_objext conftest$ac_exeext
40506 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40507   (eval $ac_link) 2>conftest.er1
40508   ac_status=$?
40509   grep -v '^ *+' conftest.er1 >conftest.err
40510   rm -f conftest.er1
40511   cat conftest.err >&5
40512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40513   (exit $ac_status); } &&
40514          { ac_try='test -z "$ac_c_werror_flag"
40515                          || test ! -s conftest.err'
40516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40517   (eval $ac_try) 2>&5
40518   ac_status=$?
40519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40520   (exit $ac_status); }; } &&
40521          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
40527   eval "$as_ac_var=yes"
40528 else
40529   echo "$as_me: failed program was:" >&5
40530 sed 's/^/| /' conftest.$ac_ext >&5
40531
40532 eval "$as_ac_var=no"
40533 fi
40534 rm -f conftest.err conftest.$ac_objext \
40535       conftest$ac_exeext conftest.$ac_ext
40536 fi
40537 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40538 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40539 if test `eval echo '${'$as_ac_var'}'` = yes; then
40540   cat >>confdefs.h <<_ACEOF
40541 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40542 _ACEOF
40543
40544 fi
40545 done
40546
40547
40548 ice_have_puts=no
40549
40550 for ac_func in puts
40551 do
40552 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40553 echo "$as_me:$LINENO: checking for $ac_func" >&5
40554 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40555 if eval "test \"\${$as_ac_var+set}\" = set"; then
40556   echo $ECHO_N "(cached) $ECHO_C" >&6
40557 else
40558   cat >conftest.$ac_ext <<_ACEOF
40559 /* confdefs.h.  */
40560 _ACEOF
40561 cat confdefs.h >>conftest.$ac_ext
40562 cat >>conftest.$ac_ext <<_ACEOF
40563 /* end confdefs.h.  */
40564 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40565    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40566 #define $ac_func innocuous_$ac_func
40567
40568 /* System header to define __stub macros and hopefully few prototypes,
40569     which can conflict with char $ac_func (); below.
40570     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40571     <limits.h> exists even on freestanding compilers.  */
40572
40573 #ifdef __STDC__
40574 # include <limits.h>
40575 #else
40576 # include <assert.h>
40577 #endif
40578
40579 #undef $ac_func
40580
40581 /* Override any gcc2 internal prototype to avoid an error.  */
40582 #ifdef __cplusplus
40583 extern "C"
40584 {
40585 #endif
40586 /* We use char because int might match the return type of a gcc2
40587    builtin and then its argument prototype would still apply.  */
40588 char $ac_func ();
40589 /* The GNU C library defines this for functions which it implements
40590     to always fail with ENOSYS.  Some functions are actually named
40591     something starting with __ and the normal name is an alias.  */
40592 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40593 choke me
40594 #else
40595 char (*f) () = $ac_func;
40596 #endif
40597 #ifdef __cplusplus
40598 }
40599 #endif
40600
40601 int
40602 main ()
40603 {
40604 return f != $ac_func;
40605   ;
40606   return 0;
40607 }
40608 _ACEOF
40609 rm -f conftest.$ac_objext conftest$ac_exeext
40610 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40611   (eval $ac_link) 2>conftest.er1
40612   ac_status=$?
40613   grep -v '^ *+' conftest.er1 >conftest.err
40614   rm -f conftest.er1
40615   cat conftest.err >&5
40616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40617   (exit $ac_status); } &&
40618          { ac_try='test -z "$ac_c_werror_flag"
40619                          || test ! -s conftest.err'
40620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40621   (eval $ac_try) 2>&5
40622   ac_status=$?
40623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40624   (exit $ac_status); }; } &&
40625          { ac_try='test -s conftest$ac_exeext'
40626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40627   (eval $ac_try) 2>&5
40628   ac_status=$?
40629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40630   (exit $ac_status); }; }; then
40631   eval "$as_ac_var=yes"
40632 else
40633   echo "$as_me: failed program was:" >&5
40634 sed 's/^/| /' conftest.$ac_ext >&5
40635
40636 eval "$as_ac_var=no"
40637 fi
40638 rm -f conftest.err conftest.$ac_objext \
40639       conftest$ac_exeext conftest.$ac_ext
40640 fi
40641 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40642 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40643 if test `eval echo '${'$as_ac_var'}'` = yes; then
40644   cat >>confdefs.h <<_ACEOF
40645 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40646 _ACEOF
40647  ice_have_puts=yes
40648 fi
40649 done
40650
40651 if test "${ice_have_puts}" = yes; then
40652 echo "$as_me:$LINENO: checking for puts declaration in stdio.h" >&5
40653 echo $ECHO_N "checking for puts declaration in stdio.h... $ECHO_C" >&6
40654 if test "${ice_cv_have_puts_decl+set}" = set; then
40655   echo $ECHO_N "(cached) $ECHO_C" >&6
40656 else
40657
40658 ice_cv_have_puts_decl=no
40659 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
40660 ice_re_word='(^|[^a-zA-Z0-9_])'
40661 for header in stdio.h; do
40662 # Check for ordinary declaration
40663 cat >conftest.$ac_ext <<_ACEOF
40664 /* confdefs.h.  */
40665 _ACEOF
40666 cat confdefs.h >>conftest.$ac_ext
40667 cat >>conftest.$ac_ext <<_ACEOF
40668 /* end confdefs.h.  */
40669 #include <$header>
40670
40671 _ACEOF
40672 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40673   $EGREP "${ice_re_word}puts[   ]*\(" >/dev/null 2>&1; then
40674   ice_cv_have_puts_decl=yes
40675 fi
40676 rm -f conftest*
40677
40678 if test "$ice_cv_have_puts_decl" = yes; then
40679         break
40680 fi
40681 # Check for "fixed" declaration like "getpid _PARAMS((int))"
40682 cat >conftest.$ac_ext <<_ACEOF
40683 /* confdefs.h.  */
40684 _ACEOF
40685 cat confdefs.h >>conftest.$ac_ext
40686 cat >>conftest.$ac_ext <<_ACEOF
40687 /* end confdefs.h.  */
40688 #include <$header>
40689
40690 _ACEOF
40691 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40692   $EGREP "${ice_re_word}puts[   ]*$ice_re_params\(\(" >/dev/null 2>&1; then
40693   ice_cv_have_puts_decl=yes
40694 fi
40695 rm -f conftest*
40696
40697 if test "$ice_cv_have_puts_decl" = yes; then
40698         break
40699 fi
40700 done
40701
40702 fi
40703
40704 echo "$as_me:$LINENO: result: $ice_cv_have_puts_decl" >&5
40705 echo "${ECHO_T}$ice_cv_have_puts_decl" >&6
40706 if test "$ice_cv_have_puts_decl" = yes; then
40707
40708 cat >>confdefs.h <<_ACEOF
40709 #define HAVE_PUTS_DECL 1
40710 _ACEOF
40711
40712 fi
40713 fi
40714
40715
40716 ice_have_realloc=no
40717
40718 for ac_func in realloc
40719 do
40720 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40721 echo "$as_me:$LINENO: checking for $ac_func" >&5
40722 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40723 if eval "test \"\${$as_ac_var+set}\" = set"; then
40724   echo $ECHO_N "(cached) $ECHO_C" >&6
40725 else
40726   cat >conftest.$ac_ext <<_ACEOF
40727 /* confdefs.h.  */
40728 _ACEOF
40729 cat confdefs.h >>conftest.$ac_ext
40730 cat >>conftest.$ac_ext <<_ACEOF
40731 /* end confdefs.h.  */
40732 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40733    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40734 #define $ac_func innocuous_$ac_func
40735
40736 /* System header to define __stub macros and hopefully few prototypes,
40737     which can conflict with char $ac_func (); below.
40738     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40739     <limits.h> exists even on freestanding compilers.  */
40740
40741 #ifdef __STDC__
40742 # include <limits.h>
40743 #else
40744 # include <assert.h>
40745 #endif
40746
40747 #undef $ac_func
40748
40749 /* Override any gcc2 internal prototype to avoid an error.  */
40750 #ifdef __cplusplus
40751 extern "C"
40752 {
40753 #endif
40754 /* We use char because int might match the return type of a gcc2
40755    builtin and then its argument prototype would still apply.  */
40756 char $ac_func ();
40757 /* The GNU C library defines this for functions which it implements
40758     to always fail with ENOSYS.  Some functions are actually named
40759     something starting with __ and the normal name is an alias.  */
40760 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40761 choke me
40762 #else
40763 char (*f) () = $ac_func;
40764 #endif
40765 #ifdef __cplusplus
40766 }
40767 #endif
40768
40769 int
40770 main ()
40771 {
40772 return f != $ac_func;
40773   ;
40774   return 0;
40775 }
40776 _ACEOF
40777 rm -f conftest.$ac_objext conftest$ac_exeext
40778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40779   (eval $ac_link) 2>conftest.er1
40780   ac_status=$?
40781   grep -v '^ *+' conftest.er1 >conftest.err
40782   rm -f conftest.er1
40783   cat conftest.err >&5
40784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40785   (exit $ac_status); } &&
40786          { ac_try='test -z "$ac_c_werror_flag"
40787                          || test ! -s conftest.err'
40788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40789   (eval $ac_try) 2>&5
40790   ac_status=$?
40791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40792   (exit $ac_status); }; } &&
40793          { ac_try='test -s conftest$ac_exeext'
40794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40795   (eval $ac_try) 2>&5
40796   ac_status=$?
40797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40798   (exit $ac_status); }; }; then
40799   eval "$as_ac_var=yes"
40800 else
40801   echo "$as_me: failed program was:" >&5
40802 sed 's/^/| /' conftest.$ac_ext >&5
40803
40804 eval "$as_ac_var=no"
40805 fi
40806 rm -f conftest.err conftest.$ac_objext \
40807       conftest$ac_exeext conftest.$ac_ext
40808 fi
40809 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40810 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40811 if test `eval echo '${'$as_ac_var'}'` = yes; then
40812   cat >>confdefs.h <<_ACEOF
40813 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40814 _ACEOF
40815  ice_have_realloc=yes
40816 fi
40817 done
40818
40819 if test "${ice_have_realloc}" = yes; then
40820 echo "$as_me:$LINENO: checking for realloc declaration in stdlib.h" >&5
40821 echo $ECHO_N "checking for realloc declaration in stdlib.h... $ECHO_C" >&6
40822 if test "${ice_cv_have_realloc_decl+set}" = set; then
40823   echo $ECHO_N "(cached) $ECHO_C" >&6
40824 else
40825
40826 ice_cv_have_realloc_decl=no
40827 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
40828 ice_re_word='(^|[^a-zA-Z0-9_])'
40829 for header in stdlib.h; do
40830 # Check for ordinary declaration
40831 cat >conftest.$ac_ext <<_ACEOF
40832 /* confdefs.h.  */
40833 _ACEOF
40834 cat confdefs.h >>conftest.$ac_ext
40835 cat >>conftest.$ac_ext <<_ACEOF
40836 /* end confdefs.h.  */
40837 #include <$header>
40838
40839 _ACEOF
40840 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40841   $EGREP "${ice_re_word}realloc[        ]*\(" >/dev/null 2>&1; then
40842   ice_cv_have_realloc_decl=yes
40843 fi
40844 rm -f conftest*
40845
40846 if test "$ice_cv_have_realloc_decl" = yes; then
40847         break
40848 fi
40849 # Check for "fixed" declaration like "getpid _PARAMS((int))"
40850 cat >conftest.$ac_ext <<_ACEOF
40851 /* confdefs.h.  */
40852 _ACEOF
40853 cat confdefs.h >>conftest.$ac_ext
40854 cat >>conftest.$ac_ext <<_ACEOF
40855 /* end confdefs.h.  */
40856 #include <$header>
40857
40858 _ACEOF
40859 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40860   $EGREP "${ice_re_word}realloc[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
40861   ice_cv_have_realloc_decl=yes
40862 fi
40863 rm -f conftest*
40864
40865 if test "$ice_cv_have_realloc_decl" = yes; then
40866         break
40867 fi
40868 done
40869
40870 fi
40871
40872 echo "$as_me:$LINENO: result: $ice_cv_have_realloc_decl" >&5
40873 echo "${ECHO_T}$ice_cv_have_realloc_decl" >&6
40874 if test "$ice_cv_have_realloc_decl" = yes; then
40875
40876 cat >>confdefs.h <<_ACEOF
40877 #define HAVE_REALLOC_DECL 1
40878 _ACEOF
40879
40880 fi
40881 fi
40882
40883
40884 ice_have_recvfrom=no
40885
40886 for ac_func in recvfrom
40887 do
40888 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40889 echo "$as_me:$LINENO: checking for $ac_func" >&5
40890 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40891 if eval "test \"\${$as_ac_var+set}\" = set"; then
40892   echo $ECHO_N "(cached) $ECHO_C" >&6
40893 else
40894   cat >conftest.$ac_ext <<_ACEOF
40895 /* confdefs.h.  */
40896 _ACEOF
40897 cat confdefs.h >>conftest.$ac_ext
40898 cat >>conftest.$ac_ext <<_ACEOF
40899 /* end confdefs.h.  */
40900 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40901    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40902 #define $ac_func innocuous_$ac_func
40903
40904 /* System header to define __stub macros and hopefully few prototypes,
40905     which can conflict with char $ac_func (); below.
40906     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40907     <limits.h> exists even on freestanding compilers.  */
40908
40909 #ifdef __STDC__
40910 # include <limits.h>
40911 #else
40912 # include <assert.h>
40913 #endif
40914
40915 #undef $ac_func
40916
40917 /* Override any gcc2 internal prototype to avoid an error.  */
40918 #ifdef __cplusplus
40919 extern "C"
40920 {
40921 #endif
40922 /* We use char because int might match the return type of a gcc2
40923    builtin and then its argument prototype would still apply.  */
40924 char $ac_func ();
40925 /* The GNU C library defines this for functions which it implements
40926     to always fail with ENOSYS.  Some functions are actually named
40927     something starting with __ and the normal name is an alias.  */
40928 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40929 choke me
40930 #else
40931 char (*f) () = $ac_func;
40932 #endif
40933 #ifdef __cplusplus
40934 }
40935 #endif
40936
40937 int
40938 main ()
40939 {
40940 return f != $ac_func;
40941   ;
40942   return 0;
40943 }
40944 _ACEOF
40945 rm -f conftest.$ac_objext conftest$ac_exeext
40946 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40947   (eval $ac_link) 2>conftest.er1
40948   ac_status=$?
40949   grep -v '^ *+' conftest.er1 >conftest.err
40950   rm -f conftest.er1
40951   cat conftest.err >&5
40952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40953   (exit $ac_status); } &&
40954          { ac_try='test -z "$ac_c_werror_flag"
40955                          || test ! -s conftest.err'
40956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40957   (eval $ac_try) 2>&5
40958   ac_status=$?
40959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40960   (exit $ac_status); }; } &&
40961          { ac_try='test -s conftest$ac_exeext'
40962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40963   (eval $ac_try) 2>&5
40964   ac_status=$?
40965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40966   (exit $ac_status); }; }; then
40967   eval "$as_ac_var=yes"
40968 else
40969   echo "$as_me: failed program was:" >&5
40970 sed 's/^/| /' conftest.$ac_ext >&5
40971
40972 eval "$as_ac_var=no"
40973 fi
40974 rm -f conftest.err conftest.$ac_objext \
40975       conftest$ac_exeext conftest.$ac_ext
40976 fi
40977 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40978 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40979 if test `eval echo '${'$as_ac_var'}'` = yes; then
40980   cat >>confdefs.h <<_ACEOF
40981 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40982 _ACEOF
40983  ice_have_recvfrom=yes
40984 fi
40985 done
40986
40987 if test "${ice_have_recvfrom}" = yes; then
40988 echo "$as_me:$LINENO: checking for recvfrom declaration in sys/types.h sys/socket.h" >&5
40989 echo $ECHO_N "checking for recvfrom declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
40990 if test "${ice_cv_have_recvfrom_decl+set}" = set; then
40991   echo $ECHO_N "(cached) $ECHO_C" >&6
40992 else
40993
40994 ice_cv_have_recvfrom_decl=no
40995 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
40996 ice_re_word='(^|[^a-zA-Z0-9_])'
40997 for header in sys/types.h sys/socket.h; do
40998 # Check for ordinary declaration
40999 cat >conftest.$ac_ext <<_ACEOF
41000 /* confdefs.h.  */
41001 _ACEOF
41002 cat confdefs.h >>conftest.$ac_ext
41003 cat >>conftest.$ac_ext <<_ACEOF
41004 /* end confdefs.h.  */
41005 #include <$header>
41006
41007 _ACEOF
41008 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41009   $EGREP "${ice_re_word}recvfrom[       ]*\(" >/dev/null 2>&1; then
41010   ice_cv_have_recvfrom_decl=yes
41011 fi
41012 rm -f conftest*
41013
41014 if test "$ice_cv_have_recvfrom_decl" = yes; then
41015         break
41016 fi
41017 # Check for "fixed" declaration like "getpid _PARAMS((int))"
41018 cat >conftest.$ac_ext <<_ACEOF
41019 /* confdefs.h.  */
41020 _ACEOF
41021 cat confdefs.h >>conftest.$ac_ext
41022 cat >>conftest.$ac_ext <<_ACEOF
41023 /* end confdefs.h.  */
41024 #include <$header>
41025
41026 _ACEOF
41027 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41028   $EGREP "${ice_re_word}recvfrom[       ]*$ice_re_params\(\(" >/dev/null 2>&1; then
41029   ice_cv_have_recvfrom_decl=yes
41030 fi
41031 rm -f conftest*
41032
41033 if test "$ice_cv_have_recvfrom_decl" = yes; then
41034         break
41035 fi
41036 done
41037
41038 fi
41039
41040 echo "$as_me:$LINENO: result: $ice_cv_have_recvfrom_decl" >&5
41041 echo "${ECHO_T}$ice_cv_have_recvfrom_decl" >&6
41042 if test "$ice_cv_have_recvfrom_decl" = yes; then
41043
41044 cat >>confdefs.h <<_ACEOF
41045 #define HAVE_RECVFROM_DECL 1
41046 _ACEOF
41047
41048 fi
41049 fi
41050
41051
41052 ice_have_remove=no
41053
41054 for ac_func in remove
41055 do
41056 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41057 echo "$as_me:$LINENO: checking for $ac_func" >&5
41058 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41059 if eval "test \"\${$as_ac_var+set}\" = set"; then
41060   echo $ECHO_N "(cached) $ECHO_C" >&6
41061 else
41062   cat >conftest.$ac_ext <<_ACEOF
41063 /* confdefs.h.  */
41064 _ACEOF
41065 cat confdefs.h >>conftest.$ac_ext
41066 cat >>conftest.$ac_ext <<_ACEOF
41067 /* end confdefs.h.  */
41068 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41069    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41070 #define $ac_func innocuous_$ac_func
41071
41072 /* System header to define __stub macros and hopefully few prototypes,
41073     which can conflict with char $ac_func (); below.
41074     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41075     <limits.h> exists even on freestanding compilers.  */
41076
41077 #ifdef __STDC__
41078 # include <limits.h>
41079 #else
41080 # include <assert.h>
41081 #endif
41082
41083 #undef $ac_func
41084
41085 /* Override any gcc2 internal prototype to avoid an error.  */
41086 #ifdef __cplusplus
41087 extern "C"
41088 {
41089 #endif
41090 /* We use char because int might match the return type of a gcc2
41091    builtin and then its argument prototype would still apply.  */
41092 char $ac_func ();
41093 /* The GNU C library defines this for functions which it implements
41094     to always fail with ENOSYS.  Some functions are actually named
41095     something starting with __ and the normal name is an alias.  */
41096 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41097 choke me
41098 #else
41099 char (*f) () = $ac_func;
41100 #endif
41101 #ifdef __cplusplus
41102 }
41103 #endif
41104
41105 int
41106 main ()
41107 {
41108 return f != $ac_func;
41109   ;
41110   return 0;
41111 }
41112 _ACEOF
41113 rm -f conftest.$ac_objext conftest$ac_exeext
41114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41115   (eval $ac_link) 2>conftest.er1
41116   ac_status=$?
41117   grep -v '^ *+' conftest.er1 >conftest.err
41118   rm -f conftest.er1
41119   cat conftest.err >&5
41120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41121   (exit $ac_status); } &&
41122          { ac_try='test -z "$ac_c_werror_flag"
41123                          || test ! -s conftest.err'
41124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41125   (eval $ac_try) 2>&5
41126   ac_status=$?
41127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41128   (exit $ac_status); }; } &&
41129          { ac_try='test -s conftest$ac_exeext'
41130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41131   (eval $ac_try) 2>&5
41132   ac_status=$?
41133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41134   (exit $ac_status); }; }; then
41135   eval "$as_ac_var=yes"
41136 else
41137   echo "$as_me: failed program was:" >&5
41138 sed 's/^/| /' conftest.$ac_ext >&5
41139
41140 eval "$as_ac_var=no"
41141 fi
41142 rm -f conftest.err conftest.$ac_objext \
41143       conftest$ac_exeext conftest.$ac_ext
41144 fi
41145 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41146 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41147 if test `eval echo '${'$as_ac_var'}'` = yes; then
41148   cat >>confdefs.h <<_ACEOF
41149 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41150 _ACEOF
41151  ice_have_remove=yes
41152 fi
41153 done
41154
41155 if test "${ice_have_remove}" = yes; then
41156 echo "$as_me:$LINENO: checking for remove declaration in stdio.h" >&5
41157 echo $ECHO_N "checking for remove declaration in stdio.h... $ECHO_C" >&6
41158 if test "${ice_cv_have_remove_decl+set}" = set; then
41159   echo $ECHO_N "(cached) $ECHO_C" >&6
41160 else
41161
41162 ice_cv_have_remove_decl=no
41163 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
41164 ice_re_word='(^|[^a-zA-Z0-9_])'
41165 for header in stdio.h; do
41166 # Check for ordinary declaration
41167 cat >conftest.$ac_ext <<_ACEOF
41168 /* confdefs.h.  */
41169 _ACEOF
41170 cat confdefs.h >>conftest.$ac_ext
41171 cat >>conftest.$ac_ext <<_ACEOF
41172 /* end confdefs.h.  */
41173 #include <$header>
41174
41175 _ACEOF
41176 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41177   $EGREP "${ice_re_word}remove[         ]*\(" >/dev/null 2>&1; then
41178   ice_cv_have_remove_decl=yes
41179 fi
41180 rm -f conftest*
41181
41182 if test "$ice_cv_have_remove_decl" = yes; then
41183         break
41184 fi
41185 # Check for "fixed" declaration like "getpid _PARAMS((int))"
41186 cat >conftest.$ac_ext <<_ACEOF
41187 /* confdefs.h.  */
41188 _ACEOF
41189 cat confdefs.h >>conftest.$ac_ext
41190 cat >>conftest.$ac_ext <<_ACEOF
41191 /* end confdefs.h.  */
41192 #include <$header>
41193
41194 _ACEOF
41195 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41196   $EGREP "${ice_re_word}remove[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
41197   ice_cv_have_remove_decl=yes
41198 fi
41199 rm -f conftest*
41200
41201 if test "$ice_cv_have_remove_decl" = yes; then
41202         break
41203 fi
41204 done
41205
41206 fi
41207
41208 echo "$as_me:$LINENO: result: $ice_cv_have_remove_decl" >&5
41209 echo "${ECHO_T}$ice_cv_have_remove_decl" >&6
41210 if test "$ice_cv_have_remove_decl" = yes; then
41211
41212 cat >>confdefs.h <<_ACEOF
41213 #define HAVE_REMOVE_DECL 1
41214 _ACEOF
41215
41216 fi
41217 fi
41218
41219
41220 ice_have_rename=no
41221
41222 for ac_func in rename
41223 do
41224 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41225 echo "$as_me:$LINENO: checking for $ac_func" >&5
41226 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41227 if eval "test \"\${$as_ac_var+set}\" = set"; then
41228   echo $ECHO_N "(cached) $ECHO_C" >&6
41229 else
41230   cat >conftest.$ac_ext <<_ACEOF
41231 /* confdefs.h.  */
41232 _ACEOF
41233 cat confdefs.h >>conftest.$ac_ext
41234 cat >>conftest.$ac_ext <<_ACEOF
41235 /* end confdefs.h.  */
41236 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41237    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41238 #define $ac_func innocuous_$ac_func
41239
41240 /* System header to define __stub macros and hopefully few prototypes,
41241     which can conflict with char $ac_func (); below.
41242     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41243     <limits.h> exists even on freestanding compilers.  */
41244
41245 #ifdef __STDC__
41246 # include <limits.h>
41247 #else
41248 # include <assert.h>
41249 #endif
41250
41251 #undef $ac_func
41252
41253 /* Override any gcc2 internal prototype to avoid an error.  */
41254 #ifdef __cplusplus
41255 extern "C"
41256 {
41257 #endif
41258 /* We use char because int might match the return type of a gcc2
41259    builtin and then its argument prototype would still apply.  */
41260 char $ac_func ();
41261 /* The GNU C library defines this for functions which it implements
41262     to always fail with ENOSYS.  Some functions are actually named
41263     something starting with __ and the normal name is an alias.  */
41264 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41265 choke me
41266 #else
41267 char (*f) () = $ac_func;
41268 #endif
41269 #ifdef __cplusplus
41270 }
41271 #endif
41272
41273 int
41274 main ()
41275 {
41276 return f != $ac_func;
41277   ;
41278   return 0;
41279 }
41280 _ACEOF
41281 rm -f conftest.$ac_objext conftest$ac_exeext
41282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41283   (eval $ac_link) 2>conftest.er1
41284   ac_status=$?
41285   grep -v '^ *+' conftest.er1 >conftest.err
41286   rm -f conftest.er1
41287   cat conftest.err >&5
41288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41289   (exit $ac_status); } &&
41290          { ac_try='test -z "$ac_c_werror_flag"
41291                          || test ! -s conftest.err'
41292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41293   (eval $ac_try) 2>&5
41294   ac_status=$?
41295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41296   (exit $ac_status); }; } &&
41297          { ac_try='test -s conftest$ac_exeext'
41298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41299   (eval $ac_try) 2>&5
41300   ac_status=$?
41301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41302   (exit $ac_status); }; }; then
41303   eval "$as_ac_var=yes"
41304 else
41305   echo "$as_me: failed program was:" >&5
41306 sed 's/^/| /' conftest.$ac_ext >&5
41307
41308 eval "$as_ac_var=no"
41309 fi
41310 rm -f conftest.err conftest.$ac_objext \
41311       conftest$ac_exeext conftest.$ac_ext
41312 fi
41313 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41314 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41315 if test `eval echo '${'$as_ac_var'}'` = yes; then
41316   cat >>confdefs.h <<_ACEOF
41317 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41318 _ACEOF
41319  ice_have_rename=yes
41320 fi
41321 done
41322
41323 if test "${ice_have_rename}" = yes; then
41324 echo "$as_me:$LINENO: checking for rename declaration in stdio.h" >&5
41325 echo $ECHO_N "checking for rename declaration in stdio.h... $ECHO_C" >&6
41326 if test "${ice_cv_have_rename_decl+set}" = set; then
41327   echo $ECHO_N "(cached) $ECHO_C" >&6
41328 else
41329
41330 ice_cv_have_rename_decl=no
41331 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
41332 ice_re_word='(^|[^a-zA-Z0-9_])'
41333 for header in stdio.h; do
41334 # Check for ordinary declaration
41335 cat >conftest.$ac_ext <<_ACEOF
41336 /* confdefs.h.  */
41337 _ACEOF
41338 cat confdefs.h >>conftest.$ac_ext
41339 cat >>conftest.$ac_ext <<_ACEOF
41340 /* end confdefs.h.  */
41341 #include <$header>
41342
41343 _ACEOF
41344 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41345   $EGREP "${ice_re_word}rename[         ]*\(" >/dev/null 2>&1; then
41346   ice_cv_have_rename_decl=yes
41347 fi
41348 rm -f conftest*
41349
41350 if test "$ice_cv_have_rename_decl" = yes; then
41351         break
41352 fi
41353 # Check for "fixed" declaration like "getpid _PARAMS((int))"
41354 cat >conftest.$ac_ext <<_ACEOF
41355 /* confdefs.h.  */
41356 _ACEOF
41357 cat confdefs.h >>conftest.$ac_ext
41358 cat >>conftest.$ac_ext <<_ACEOF
41359 /* end confdefs.h.  */
41360 #include <$header>
41361
41362 _ACEOF
41363 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41364   $EGREP "${ice_re_word}rename[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
41365   ice_cv_have_rename_decl=yes
41366 fi
41367 rm -f conftest*
41368
41369 if test "$ice_cv_have_rename_decl" = yes; then
41370         break
41371 fi
41372 done
41373
41374 fi
41375
41376 echo "$as_me:$LINENO: result: $ice_cv_have_rename_decl" >&5
41377 echo "${ECHO_T}$ice_cv_have_rename_decl" >&6
41378 if test "$ice_cv_have_rename_decl" = yes; then
41379
41380 cat >>confdefs.h <<_ACEOF
41381 #define HAVE_RENAME_DECL 1
41382 _ACEOF
41383
41384 fi
41385 fi
41386
41387
41388 ice_have_rewind=no
41389
41390 for ac_func in rewind
41391 do
41392 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41393 echo "$as_me:$LINENO: checking for $ac_func" >&5
41394 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41395 if eval "test \"\${$as_ac_var+set}\" = set"; then
41396   echo $ECHO_N "(cached) $ECHO_C" >&6
41397 else
41398   cat >conftest.$ac_ext <<_ACEOF
41399 /* confdefs.h.  */
41400 _ACEOF
41401 cat confdefs.h >>conftest.$ac_ext
41402 cat >>conftest.$ac_ext <<_ACEOF
41403 /* end confdefs.h.  */
41404 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41405    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41406 #define $ac_func innocuous_$ac_func
41407
41408 /* System header to define __stub macros and hopefully few prototypes,
41409     which can conflict with char $ac_func (); below.
41410     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41411     <limits.h> exists even on freestanding compilers.  */
41412
41413 #ifdef __STDC__
41414 # include <limits.h>
41415 #else
41416 # include <assert.h>
41417 #endif
41418
41419 #undef $ac_func
41420
41421 /* Override any gcc2 internal prototype to avoid an error.  */
41422 #ifdef __cplusplus
41423 extern "C"
41424 {
41425 #endif
41426 /* We use char because int might match the return type of a gcc2
41427    builtin and then its argument prototype would still apply.  */
41428 char $ac_func ();
41429 /* The GNU C library defines this for functions which it implements
41430     to always fail with ENOSYS.  Some functions are actually named
41431     something starting with __ and the normal name is an alias.  */
41432 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41433 choke me
41434 #else
41435 char (*f) () = $ac_func;
41436 #endif
41437 #ifdef __cplusplus
41438 }
41439 #endif
41440
41441 int
41442 main ()
41443 {
41444 return f != $ac_func;
41445   ;
41446   return 0;
41447 }
41448 _ACEOF
41449 rm -f conftest.$ac_objext conftest$ac_exeext
41450 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41451   (eval $ac_link) 2>conftest.er1
41452   ac_status=$?
41453   grep -v '^ *+' conftest.er1 >conftest.err
41454   rm -f conftest.er1
41455   cat conftest.err >&5
41456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41457   (exit $ac_status); } &&
41458          { ac_try='test -z "$ac_c_werror_flag"
41459                          || test ! -s conftest.err'
41460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41461   (eval $ac_try) 2>&5
41462   ac_status=$?
41463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41464   (exit $ac_status); }; } &&
41465          { ac_try='test -s conftest$ac_exeext'
41466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41467   (eval $ac_try) 2>&5
41468   ac_status=$?
41469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41470   (exit $ac_status); }; }; then
41471   eval "$as_ac_var=yes"
41472 else
41473   echo "$as_me: failed program was:" >&5
41474 sed 's/^/| /' conftest.$ac_ext >&5
41475
41476 eval "$as_ac_var=no"
41477 fi
41478 rm -f conftest.err conftest.$ac_objext \
41479       conftest$ac_exeext conftest.$ac_ext
41480 fi
41481 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41482 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41483 if test `eval echo '${'$as_ac_var'}'` = yes; then
41484   cat >>confdefs.h <<_ACEOF
41485 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41486 _ACEOF
41487  ice_have_rewind=yes
41488 fi
41489 done
41490
41491 if test "${ice_have_rewind}" = yes; then
41492 echo "$as_me:$LINENO: checking for rewind declaration in stdio.h" >&5
41493 echo $ECHO_N "checking for rewind declaration in stdio.h... $ECHO_C" >&6
41494 if test "${ice_cv_have_rewind_decl+set}" = set; then
41495   echo $ECHO_N "(cached) $ECHO_C" >&6
41496 else
41497
41498 ice_cv_have_rewind_decl=no
41499 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
41500 ice_re_word='(^|[^a-zA-Z0-9_])'
41501 for header in stdio.h; do
41502 # Check for ordinary declaration
41503 cat >conftest.$ac_ext <<_ACEOF
41504 /* confdefs.h.  */
41505 _ACEOF
41506 cat confdefs.h >>conftest.$ac_ext
41507 cat >>conftest.$ac_ext <<_ACEOF
41508 /* end confdefs.h.  */
41509 #include <$header>
41510
41511 _ACEOF
41512 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41513   $EGREP "${ice_re_word}rewind[         ]*\(" >/dev/null 2>&1; then
41514   ice_cv_have_rewind_decl=yes
41515 fi
41516 rm -f conftest*
41517
41518 if test "$ice_cv_have_rewind_decl" = yes; then
41519         break
41520 fi
41521 # Check for "fixed" declaration like "getpid _PARAMS((int))"
41522 cat >conftest.$ac_ext <<_ACEOF
41523 /* confdefs.h.  */
41524 _ACEOF
41525 cat confdefs.h >>conftest.$ac_ext
41526 cat >>conftest.$ac_ext <<_ACEOF
41527 /* end confdefs.h.  */
41528 #include <$header>
41529
41530 _ACEOF
41531 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41532   $EGREP "${ice_re_word}rewind[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
41533   ice_cv_have_rewind_decl=yes
41534 fi
41535 rm -f conftest*
41536
41537 if test "$ice_cv_have_rewind_decl" = yes; then
41538         break
41539 fi
41540 done
41541
41542 fi
41543
41544 echo "$as_me:$LINENO: result: $ice_cv_have_rewind_decl" >&5
41545 echo "${ECHO_T}$ice_cv_have_rewind_decl" >&6
41546 if test "$ice_cv_have_rewind_decl" = yes; then
41547
41548 cat >>confdefs.h <<_ACEOF
41549 #define HAVE_REWIND_DECL 1
41550 _ACEOF
41551
41552 fi
41553 fi
41554
41555
41556 for ac_func in rmdir
41557 do
41558 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41559 echo "$as_me:$LINENO: checking for $ac_func" >&5
41560 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41561 if eval "test \"\${$as_ac_var+set}\" = set"; then
41562   echo $ECHO_N "(cached) $ECHO_C" >&6
41563 else
41564   cat >conftest.$ac_ext <<_ACEOF
41565 /* confdefs.h.  */
41566 _ACEOF
41567 cat confdefs.h >>conftest.$ac_ext
41568 cat >>conftest.$ac_ext <<_ACEOF
41569 /* end confdefs.h.  */
41570 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41571    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41572 #define $ac_func innocuous_$ac_func
41573
41574 /* System header to define __stub macros and hopefully few prototypes,
41575     which can conflict with char $ac_func (); below.
41576     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41577     <limits.h> exists even on freestanding compilers.  */
41578
41579 #ifdef __STDC__
41580 # include <limits.h>
41581 #else
41582 # include <assert.h>
41583 #endif
41584
41585 #undef $ac_func
41586
41587 /* Override any gcc2 internal prototype to avoid an error.  */
41588 #ifdef __cplusplus
41589 extern "C"
41590 {
41591 #endif
41592 /* We use char because int might match the return type of a gcc2
41593    builtin and then its argument prototype would still apply.  */
41594 char $ac_func ();
41595 /* The GNU C library defines this for functions which it implements
41596     to always fail with ENOSYS.  Some functions are actually named
41597     something starting with __ and the normal name is an alias.  */
41598 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41599 choke me
41600 #else
41601 char (*f) () = $ac_func;
41602 #endif
41603 #ifdef __cplusplus
41604 }
41605 #endif
41606
41607 int
41608 main ()
41609 {
41610 return f != $ac_func;
41611   ;
41612   return 0;
41613 }
41614 _ACEOF
41615 rm -f conftest.$ac_objext conftest$ac_exeext
41616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41617   (eval $ac_link) 2>conftest.er1
41618   ac_status=$?
41619   grep -v '^ *+' conftest.er1 >conftest.err
41620   rm -f conftest.er1
41621   cat conftest.err >&5
41622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41623   (exit $ac_status); } &&
41624          { ac_try='test -z "$ac_c_werror_flag"
41625                          || test ! -s conftest.err'
41626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41627   (eval $ac_try) 2>&5
41628   ac_status=$?
41629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41630   (exit $ac_status); }; } &&
41631          { ac_try='test -s conftest$ac_exeext'
41632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41633   (eval $ac_try) 2>&5
41634   ac_status=$?
41635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41636   (exit $ac_status); }; }; then
41637   eval "$as_ac_var=yes"
41638 else
41639   echo "$as_me: failed program was:" >&5
41640 sed 's/^/| /' conftest.$ac_ext >&5
41641
41642 eval "$as_ac_var=no"
41643 fi
41644 rm -f conftest.err conftest.$ac_objext \
41645       conftest$ac_exeext conftest.$ac_ext
41646 fi
41647 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41648 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41649 if test `eval echo '${'$as_ac_var'}'` = yes; then
41650   cat >>confdefs.h <<_ACEOF
41651 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41652 _ACEOF
41653
41654 fi
41655 done
41656
41657
41658 ice_have_ruserok=no
41659
41660 for ac_func in ruserok
41661 do
41662 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41663 echo "$as_me:$LINENO: checking for $ac_func" >&5
41664 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41665 if eval "test \"\${$as_ac_var+set}\" = set"; then
41666   echo $ECHO_N "(cached) $ECHO_C" >&6
41667 else
41668   cat >conftest.$ac_ext <<_ACEOF
41669 /* confdefs.h.  */
41670 _ACEOF
41671 cat confdefs.h >>conftest.$ac_ext
41672 cat >>conftest.$ac_ext <<_ACEOF
41673 /* end confdefs.h.  */
41674 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41675    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41676 #define $ac_func innocuous_$ac_func
41677
41678 /* System header to define __stub macros and hopefully few prototypes,
41679     which can conflict with char $ac_func (); below.
41680     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41681     <limits.h> exists even on freestanding compilers.  */
41682
41683 #ifdef __STDC__
41684 # include <limits.h>
41685 #else
41686 # include <assert.h>
41687 #endif
41688
41689 #undef $ac_func
41690
41691 /* Override any gcc2 internal prototype to avoid an error.  */
41692 #ifdef __cplusplus
41693 extern "C"
41694 {
41695 #endif
41696 /* We use char because int might match the return type of a gcc2
41697    builtin and then its argument prototype would still apply.  */
41698 char $ac_func ();
41699 /* The GNU C library defines this for functions which it implements
41700     to always fail with ENOSYS.  Some functions are actually named
41701     something starting with __ and the normal name is an alias.  */
41702 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41703 choke me
41704 #else
41705 char (*f) () = $ac_func;
41706 #endif
41707 #ifdef __cplusplus
41708 }
41709 #endif
41710
41711 int
41712 main ()
41713 {
41714 return f != $ac_func;
41715   ;
41716   return 0;
41717 }
41718 _ACEOF
41719 rm -f conftest.$ac_objext conftest$ac_exeext
41720 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41721   (eval $ac_link) 2>conftest.er1
41722   ac_status=$?
41723   grep -v '^ *+' conftest.er1 >conftest.err
41724   rm -f conftest.er1
41725   cat conftest.err >&5
41726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41727   (exit $ac_status); } &&
41728          { ac_try='test -z "$ac_c_werror_flag"
41729                          || test ! -s conftest.err'
41730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41731   (eval $ac_try) 2>&5
41732   ac_status=$?
41733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41734   (exit $ac_status); }; } &&
41735          { ac_try='test -s conftest$ac_exeext'
41736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41737   (eval $ac_try) 2>&5
41738   ac_status=$?
41739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41740   (exit $ac_status); }; }; then
41741   eval "$as_ac_var=yes"
41742 else
41743   echo "$as_me: failed program was:" >&5
41744 sed 's/^/| /' conftest.$ac_ext >&5
41745
41746 eval "$as_ac_var=no"
41747 fi
41748 rm -f conftest.err conftest.$ac_objext \
41749       conftest$ac_exeext conftest.$ac_ext
41750 fi
41751 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41752 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41753 if test `eval echo '${'$as_ac_var'}'` = yes; then
41754   cat >>confdefs.h <<_ACEOF
41755 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41756 _ACEOF
41757  ice_have_ruserok=yes
41758 fi
41759 done
41760
41761 if test "${ice_have_ruserok}" = yes; then
41762 echo "$as_me:$LINENO: checking for ruserok declaration in netdb.h sys/socket.h libc.h unistd.h" >&5
41763 echo $ECHO_N "checking for ruserok declaration in netdb.h sys/socket.h libc.h unistd.h... $ECHO_C" >&6
41764 if test "${ice_cv_have_ruserok_decl+set}" = set; then
41765   echo $ECHO_N "(cached) $ECHO_C" >&6
41766 else
41767
41768 ice_cv_have_ruserok_decl=no
41769 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
41770 ice_re_word='(^|[^a-zA-Z0-9_])'
41771 for header in netdb.h sys/socket.h libc.h unistd.h; do
41772 # Check for ordinary declaration
41773 cat >conftest.$ac_ext <<_ACEOF
41774 /* confdefs.h.  */
41775 _ACEOF
41776 cat confdefs.h >>conftest.$ac_ext
41777 cat >>conftest.$ac_ext <<_ACEOF
41778 /* end confdefs.h.  */
41779 #include <$header>
41780
41781 _ACEOF
41782 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41783   $EGREP "${ice_re_word}ruserok[        ]*\(" >/dev/null 2>&1; then
41784   ice_cv_have_ruserok_decl=yes
41785 fi
41786 rm -f conftest*
41787
41788 if test "$ice_cv_have_ruserok_decl" = yes; then
41789         break
41790 fi
41791 # Check for "fixed" declaration like "getpid _PARAMS((int))"
41792 cat >conftest.$ac_ext <<_ACEOF
41793 /* confdefs.h.  */
41794 _ACEOF
41795 cat confdefs.h >>conftest.$ac_ext
41796 cat >>conftest.$ac_ext <<_ACEOF
41797 /* end confdefs.h.  */
41798 #include <$header>
41799
41800 _ACEOF
41801 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41802   $EGREP "${ice_re_word}ruserok[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
41803   ice_cv_have_ruserok_decl=yes
41804 fi
41805 rm -f conftest*
41806
41807 if test "$ice_cv_have_ruserok_decl" = yes; then
41808         break
41809 fi
41810 done
41811
41812 fi
41813
41814 echo "$as_me:$LINENO: result: $ice_cv_have_ruserok_decl" >&5
41815 echo "${ECHO_T}$ice_cv_have_ruserok_decl" >&6
41816 if test "$ice_cv_have_ruserok_decl" = yes; then
41817
41818 cat >>confdefs.h <<_ACEOF
41819 #define HAVE_RUSEROK_DECL 1
41820 _ACEOF
41821
41822 fi
41823 fi
41824
41825
41826 ice_have_select=no
41827
41828 for ac_func in select
41829 do
41830 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41831 echo "$as_me:$LINENO: checking for $ac_func" >&5
41832 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41833 if eval "test \"\${$as_ac_var+set}\" = set"; then
41834   echo $ECHO_N "(cached) $ECHO_C" >&6
41835 else
41836   cat >conftest.$ac_ext <<_ACEOF
41837 /* confdefs.h.  */
41838 _ACEOF
41839 cat confdefs.h >>conftest.$ac_ext
41840 cat >>conftest.$ac_ext <<_ACEOF
41841 /* end confdefs.h.  */
41842 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41843    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41844 #define $ac_func innocuous_$ac_func
41845
41846 /* System header to define __stub macros and hopefully few prototypes,
41847     which can conflict with char $ac_func (); below.
41848     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41849     <limits.h> exists even on freestanding compilers.  */
41850
41851 #ifdef __STDC__
41852 # include <limits.h>
41853 #else
41854 # include <assert.h>
41855 #endif
41856
41857 #undef $ac_func
41858
41859 /* Override any gcc2 internal prototype to avoid an error.  */
41860 #ifdef __cplusplus
41861 extern "C"
41862 {
41863 #endif
41864 /* We use char because int might match the return type of a gcc2
41865    builtin and then its argument prototype would still apply.  */
41866 char $ac_func ();
41867 /* The GNU C library defines this for functions which it implements
41868     to always fail with ENOSYS.  Some functions are actually named
41869     something starting with __ and the normal name is an alias.  */
41870 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41871 choke me
41872 #else
41873 char (*f) () = $ac_func;
41874 #endif
41875 #ifdef __cplusplus
41876 }
41877 #endif
41878
41879 int
41880 main ()
41881 {
41882 return f != $ac_func;
41883   ;
41884   return 0;
41885 }
41886 _ACEOF
41887 rm -f conftest.$ac_objext conftest$ac_exeext
41888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41889   (eval $ac_link) 2>conftest.er1
41890   ac_status=$?
41891   grep -v '^ *+' conftest.er1 >conftest.err
41892   rm -f conftest.er1
41893   cat conftest.err >&5
41894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41895   (exit $ac_status); } &&
41896          { ac_try='test -z "$ac_c_werror_flag"
41897                          || test ! -s conftest.err'
41898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41899   (eval $ac_try) 2>&5
41900   ac_status=$?
41901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41902   (exit $ac_status); }; } &&
41903          { ac_try='test -s conftest$ac_exeext'
41904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41905   (eval $ac_try) 2>&5
41906   ac_status=$?
41907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41908   (exit $ac_status); }; }; then
41909   eval "$as_ac_var=yes"
41910 else
41911   echo "$as_me: failed program was:" >&5
41912 sed 's/^/| /' conftest.$ac_ext >&5
41913
41914 eval "$as_ac_var=no"
41915 fi
41916 rm -f conftest.err conftest.$ac_objext \
41917       conftest$ac_exeext conftest.$ac_ext
41918 fi
41919 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41920 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41921 if test `eval echo '${'$as_ac_var'}'` = yes; then
41922   cat >>confdefs.h <<_ACEOF
41923 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41924 _ACEOF
41925  ice_have_select=yes
41926 fi
41927 done
41928
41929 if test "${ice_have_select}" = yes; then
41930 echo "$as_me:$LINENO: checking for select declaration in sys/types.h sys/socket.h sys/select.h time.h sys/time.h" >&5
41931 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
41932 if test "${ice_cv_have_select_decl+set}" = set; then
41933   echo $ECHO_N "(cached) $ECHO_C" >&6
41934 else
41935
41936 ice_cv_have_select_decl=no
41937 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
41938 ice_re_word='(^|[^a-zA-Z0-9_])'
41939 for header in sys/types.h sys/socket.h sys/select.h time.h sys/time.h; do
41940 # Check for ordinary declaration
41941 cat >conftest.$ac_ext <<_ACEOF
41942 /* confdefs.h.  */
41943 _ACEOF
41944 cat confdefs.h >>conftest.$ac_ext
41945 cat >>conftest.$ac_ext <<_ACEOF
41946 /* end confdefs.h.  */
41947 #include <$header>
41948
41949 _ACEOF
41950 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41951   $EGREP "${ice_re_word}select[         ]*\(" >/dev/null 2>&1; then
41952   ice_cv_have_select_decl=yes
41953 fi
41954 rm -f conftest*
41955
41956 if test "$ice_cv_have_select_decl" = yes; then
41957         break
41958 fi
41959 # Check for "fixed" declaration like "getpid _PARAMS((int))"
41960 cat >conftest.$ac_ext <<_ACEOF
41961 /* confdefs.h.  */
41962 _ACEOF
41963 cat confdefs.h >>conftest.$ac_ext
41964 cat >>conftest.$ac_ext <<_ACEOF
41965 /* end confdefs.h.  */
41966 #include <$header>
41967
41968 _ACEOF
41969 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41970   $EGREP "${ice_re_word}select[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
41971   ice_cv_have_select_decl=yes
41972 fi
41973 rm -f conftest*
41974
41975 if test "$ice_cv_have_select_decl" = yes; then
41976         break
41977 fi
41978 done
41979
41980 fi
41981
41982 echo "$as_me:$LINENO: result: $ice_cv_have_select_decl" >&5
41983 echo "${ECHO_T}$ice_cv_have_select_decl" >&6
41984 if test "$ice_cv_have_select_decl" = yes; then
41985
41986 cat >>confdefs.h <<_ACEOF
41987 #define HAVE_SELECT_DECL 1
41988 _ACEOF
41989
41990 fi
41991 fi
41992
41993
41994         echo "$as_me:$LINENO: checking for select() argument type" >&5
41995 echo $ECHO_N "checking for select() argument type... $ECHO_C" >&6
41996 if test "${amanda_cv_select_arg_type+set}" = set; then
41997   echo $ECHO_N "(cached) $ECHO_C" >&6
41998 else
41999
42000                 rm -f conftest.c
42001                 cat <<EOF >conftest.$ac_ext
42002 #include "confdefs.h"
42003 #ifdef HAVE_SYS_TIME_H
42004 # include <sys/time.h>
42005 #endif
42006 #ifdef HAVE_SYS_TYPES_H
42007 # include <sys/types.h>
42008 #endif
42009 #ifdef HAVE_SYS_SELECT_H
42010 #  include <sys/select.h>
42011 #endif
42012 #ifdef HAVE_SYS_SOCKET_H
42013 #  include <sys/socket.h>
42014 #endif
42015 #ifdef HAVE_UNISTD_H
42016 # include <unistd.h>
42017 #endif
42018
42019 int main()
42020 {
42021 #ifdef FD_SET_POINTER
42022         (void)select(0, (fd_set *) 0, (fd_set *) 0, (fd_set *) 0, 0);
42023 #else
42024         (void)select(0, (int *) 0, (int *) 0, (int *) 0, 0);
42025 #endif
42026         return 0;
42027 }
42028 EOF
42029
42030                                                                                                                                 amanda_cv_select_arg_type=no
42031                 select_compile="${CC-cc} -c $CFLAGS $CPPFLAGS"
42032                 $select_compile -DFD_SET_POINTER conftest.$ac_ext 1>conftest.fd_set 2>&1
42033                 if test $? -ne 0; then
42034                     amanda_cv_select_arg_type=int
42035                 fi
42036                 if test "$amanda_cv_select_arg_type" = no; then
42037                     $select_compile conftest.$ac_ext 1>conftest.int 2>&1
42038                     if test $? -ne 0; then
42039                         amanda_cv_select_arg_type=fd_set
42040                     fi
42041                 fi
42042                 if test "$amanda_cv_select_arg_type" = no; then
42043                     wc_fdset=`wc -l <conftest.fd_set`
42044                     wc_int=`wc -l <conftest.int`
42045                     if test "$wc_fdset" -le "$wc_int"; then
42046                         amanda_cv_select_arg_type=fd_set
42047                     else
42048                         amanda_cv_select_arg_type=int
42049                     fi
42050                 fi
42051                 rm -f conftest*
42052
42053
42054 fi
42055 echo "$as_me:$LINENO: result: $amanda_cv_select_arg_type" >&5
42056 echo "${ECHO_T}$amanda_cv_select_arg_type" >&6
42057
42058 cat >>confdefs.h <<_ACEOF
42059 #define SELECT_ARG_TYPE $amanda_cv_select_arg_type
42060 _ACEOF
42061
42062
42063
42064
42065 ice_have_sendto=no
42066
42067 for ac_func in sendto
42068 do
42069 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42070 echo "$as_me:$LINENO: checking for $ac_func" >&5
42071 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42072 if eval "test \"\${$as_ac_var+set}\" = set"; then
42073   echo $ECHO_N "(cached) $ECHO_C" >&6
42074 else
42075   cat >conftest.$ac_ext <<_ACEOF
42076 /* confdefs.h.  */
42077 _ACEOF
42078 cat confdefs.h >>conftest.$ac_ext
42079 cat >>conftest.$ac_ext <<_ACEOF
42080 /* end confdefs.h.  */
42081 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42082    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42083 #define $ac_func innocuous_$ac_func
42084
42085 /* System header to define __stub macros and hopefully few prototypes,
42086     which can conflict with char $ac_func (); below.
42087     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42088     <limits.h> exists even on freestanding compilers.  */
42089
42090 #ifdef __STDC__
42091 # include <limits.h>
42092 #else
42093 # include <assert.h>
42094 #endif
42095
42096 #undef $ac_func
42097
42098 /* Override any gcc2 internal prototype to avoid an error.  */
42099 #ifdef __cplusplus
42100 extern "C"
42101 {
42102 #endif
42103 /* We use char because int might match the return type of a gcc2
42104    builtin and then its argument prototype would still apply.  */
42105 char $ac_func ();
42106 /* The GNU C library defines this for functions which it implements
42107     to always fail with ENOSYS.  Some functions are actually named
42108     something starting with __ and the normal name is an alias.  */
42109 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42110 choke me
42111 #else
42112 char (*f) () = $ac_func;
42113 #endif
42114 #ifdef __cplusplus
42115 }
42116 #endif
42117
42118 int
42119 main ()
42120 {
42121 return f != $ac_func;
42122   ;
42123   return 0;
42124 }
42125 _ACEOF
42126 rm -f conftest.$ac_objext conftest$ac_exeext
42127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42128   (eval $ac_link) 2>conftest.er1
42129   ac_status=$?
42130   grep -v '^ *+' conftest.er1 >conftest.err
42131   rm -f conftest.er1
42132   cat conftest.err >&5
42133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42134   (exit $ac_status); } &&
42135          { ac_try='test -z "$ac_c_werror_flag"
42136                          || test ! -s conftest.err'
42137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42138   (eval $ac_try) 2>&5
42139   ac_status=$?
42140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42141   (exit $ac_status); }; } &&
42142          { ac_try='test -s conftest$ac_exeext'
42143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42144   (eval $ac_try) 2>&5
42145   ac_status=$?
42146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42147   (exit $ac_status); }; }; then
42148   eval "$as_ac_var=yes"
42149 else
42150   echo "$as_me: failed program was:" >&5
42151 sed 's/^/| /' conftest.$ac_ext >&5
42152
42153 eval "$as_ac_var=no"
42154 fi
42155 rm -f conftest.err conftest.$ac_objext \
42156       conftest$ac_exeext conftest.$ac_ext
42157 fi
42158 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42159 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42160 if test `eval echo '${'$as_ac_var'}'` = yes; then
42161   cat >>confdefs.h <<_ACEOF
42162 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42163 _ACEOF
42164  ice_have_sendto=yes
42165 fi
42166 done
42167
42168 if test "${ice_have_sendto}" = yes; then
42169 echo "$as_me:$LINENO: checking for sendto declaration in sys/types.h sys/socket.h" >&5
42170 echo $ECHO_N "checking for sendto declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
42171 if test "${ice_cv_have_sendto_decl+set}" = set; then
42172   echo $ECHO_N "(cached) $ECHO_C" >&6
42173 else
42174
42175 ice_cv_have_sendto_decl=no
42176 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
42177 ice_re_word='(^|[^a-zA-Z0-9_])'
42178 for header in sys/types.h sys/socket.h; do
42179 # Check for ordinary declaration
42180 cat >conftest.$ac_ext <<_ACEOF
42181 /* confdefs.h.  */
42182 _ACEOF
42183 cat confdefs.h >>conftest.$ac_ext
42184 cat >>conftest.$ac_ext <<_ACEOF
42185 /* end confdefs.h.  */
42186 #include <$header>
42187
42188 _ACEOF
42189 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42190   $EGREP "${ice_re_word}sendto[         ]*\(" >/dev/null 2>&1; then
42191   ice_cv_have_sendto_decl=yes
42192 fi
42193 rm -f conftest*
42194
42195 if test "$ice_cv_have_sendto_decl" = yes; then
42196         break
42197 fi
42198 # Check for "fixed" declaration like "getpid _PARAMS((int))"
42199 cat >conftest.$ac_ext <<_ACEOF
42200 /* confdefs.h.  */
42201 _ACEOF
42202 cat confdefs.h >>conftest.$ac_ext
42203 cat >>conftest.$ac_ext <<_ACEOF
42204 /* end confdefs.h.  */
42205 #include <$header>
42206
42207 _ACEOF
42208 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42209   $EGREP "${ice_re_word}sendto[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
42210   ice_cv_have_sendto_decl=yes
42211 fi
42212 rm -f conftest*
42213
42214 if test "$ice_cv_have_sendto_decl" = yes; then
42215         break
42216 fi
42217 done
42218
42219 fi
42220
42221 echo "$as_me:$LINENO: result: $ice_cv_have_sendto_decl" >&5
42222 echo "${ECHO_T}$ice_cv_have_sendto_decl" >&6
42223 if test "$ice_cv_have_sendto_decl" = yes; then
42224
42225 cat >>confdefs.h <<_ACEOF
42226 #define HAVE_SENDTO_DECL 1
42227 _ACEOF
42228
42229 fi
42230 fi
42231
42232
42233 ice_have_setegid=no
42234
42235 for ac_func in setegid
42236 do
42237 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42238 echo "$as_me:$LINENO: checking for $ac_func" >&5
42239 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42240 if eval "test \"\${$as_ac_var+set}\" = set"; then
42241   echo $ECHO_N "(cached) $ECHO_C" >&6
42242 else
42243   cat >conftest.$ac_ext <<_ACEOF
42244 /* confdefs.h.  */
42245 _ACEOF
42246 cat confdefs.h >>conftest.$ac_ext
42247 cat >>conftest.$ac_ext <<_ACEOF
42248 /* end confdefs.h.  */
42249 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42250    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42251 #define $ac_func innocuous_$ac_func
42252
42253 /* System header to define __stub macros and hopefully few prototypes,
42254     which can conflict with char $ac_func (); below.
42255     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42256     <limits.h> exists even on freestanding compilers.  */
42257
42258 #ifdef __STDC__
42259 # include <limits.h>
42260 #else
42261 # include <assert.h>
42262 #endif
42263
42264 #undef $ac_func
42265
42266 /* Override any gcc2 internal prototype to avoid an error.  */
42267 #ifdef __cplusplus
42268 extern "C"
42269 {
42270 #endif
42271 /* We use char because int might match the return type of a gcc2
42272    builtin and then its argument prototype would still apply.  */
42273 char $ac_func ();
42274 /* The GNU C library defines this for functions which it implements
42275     to always fail with ENOSYS.  Some functions are actually named
42276     something starting with __ and the normal name is an alias.  */
42277 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42278 choke me
42279 #else
42280 char (*f) () = $ac_func;
42281 #endif
42282 #ifdef __cplusplus
42283 }
42284 #endif
42285
42286 int
42287 main ()
42288 {
42289 return f != $ac_func;
42290   ;
42291   return 0;
42292 }
42293 _ACEOF
42294 rm -f conftest.$ac_objext conftest$ac_exeext
42295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42296   (eval $ac_link) 2>conftest.er1
42297   ac_status=$?
42298   grep -v '^ *+' conftest.er1 >conftest.err
42299   rm -f conftest.er1
42300   cat conftest.err >&5
42301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42302   (exit $ac_status); } &&
42303          { ac_try='test -z "$ac_c_werror_flag"
42304                          || test ! -s conftest.err'
42305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42306   (eval $ac_try) 2>&5
42307   ac_status=$?
42308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42309   (exit $ac_status); }; } &&
42310          { ac_try='test -s conftest$ac_exeext'
42311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42312   (eval $ac_try) 2>&5
42313   ac_status=$?
42314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42315   (exit $ac_status); }; }; then
42316   eval "$as_ac_var=yes"
42317 else
42318   echo "$as_me: failed program was:" >&5
42319 sed 's/^/| /' conftest.$ac_ext >&5
42320
42321 eval "$as_ac_var=no"
42322 fi
42323 rm -f conftest.err conftest.$ac_objext \
42324       conftest$ac_exeext conftest.$ac_ext
42325 fi
42326 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42327 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42328 if test `eval echo '${'$as_ac_var'}'` = yes; then
42329   cat >>confdefs.h <<_ACEOF
42330 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42331 _ACEOF
42332  ice_have_setegid=yes
42333 fi
42334 done
42335
42336 if test "${ice_have_setegid}" = yes; then
42337 echo "$as_me:$LINENO: checking for setegid declaration in unistd.h" >&5
42338 echo $ECHO_N "checking for setegid declaration in unistd.h... $ECHO_C" >&6
42339 if test "${ice_cv_have_setegid_decl+set}" = set; then
42340   echo $ECHO_N "(cached) $ECHO_C" >&6
42341 else
42342
42343 ice_cv_have_setegid_decl=no
42344 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
42345 ice_re_word='(^|[^a-zA-Z0-9_])'
42346 for header in unistd.h; do
42347 # Check for ordinary declaration
42348 cat >conftest.$ac_ext <<_ACEOF
42349 /* confdefs.h.  */
42350 _ACEOF
42351 cat confdefs.h >>conftest.$ac_ext
42352 cat >>conftest.$ac_ext <<_ACEOF
42353 /* end confdefs.h.  */
42354 #include <$header>
42355
42356 _ACEOF
42357 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42358   $EGREP "${ice_re_word}setegid[        ]*\(" >/dev/null 2>&1; then
42359   ice_cv_have_setegid_decl=yes
42360 fi
42361 rm -f conftest*
42362
42363 if test "$ice_cv_have_setegid_decl" = yes; then
42364         break
42365 fi
42366 # Check for "fixed" declaration like "getpid _PARAMS((int))"
42367 cat >conftest.$ac_ext <<_ACEOF
42368 /* confdefs.h.  */
42369 _ACEOF
42370 cat confdefs.h >>conftest.$ac_ext
42371 cat >>conftest.$ac_ext <<_ACEOF
42372 /* end confdefs.h.  */
42373 #include <$header>
42374
42375 _ACEOF
42376 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42377   $EGREP "${ice_re_word}setegid[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
42378   ice_cv_have_setegid_decl=yes
42379 fi
42380 rm -f conftest*
42381
42382 if test "$ice_cv_have_setegid_decl" = yes; then
42383         break
42384 fi
42385 done
42386
42387 fi
42388
42389 echo "$as_me:$LINENO: result: $ice_cv_have_setegid_decl" >&5
42390 echo "${ECHO_T}$ice_cv_have_setegid_decl" >&6
42391 if test "$ice_cv_have_setegid_decl" = yes; then
42392
42393 cat >>confdefs.h <<_ACEOF
42394 #define HAVE_SETEGID_DECL 1
42395 _ACEOF
42396
42397 fi
42398 fi
42399
42400
42401 ice_have_seteuid=no
42402
42403 for ac_func in seteuid
42404 do
42405 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42406 echo "$as_me:$LINENO: checking for $ac_func" >&5
42407 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42408 if eval "test \"\${$as_ac_var+set}\" = set"; then
42409   echo $ECHO_N "(cached) $ECHO_C" >&6
42410 else
42411   cat >conftest.$ac_ext <<_ACEOF
42412 /* confdefs.h.  */
42413 _ACEOF
42414 cat confdefs.h >>conftest.$ac_ext
42415 cat >>conftest.$ac_ext <<_ACEOF
42416 /* end confdefs.h.  */
42417 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42418    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42419 #define $ac_func innocuous_$ac_func
42420
42421 /* System header to define __stub macros and hopefully few prototypes,
42422     which can conflict with char $ac_func (); below.
42423     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42424     <limits.h> exists even on freestanding compilers.  */
42425
42426 #ifdef __STDC__
42427 # include <limits.h>
42428 #else
42429 # include <assert.h>
42430 #endif
42431
42432 #undef $ac_func
42433
42434 /* Override any gcc2 internal prototype to avoid an error.  */
42435 #ifdef __cplusplus
42436 extern "C"
42437 {
42438 #endif
42439 /* We use char because int might match the return type of a gcc2
42440    builtin and then its argument prototype would still apply.  */
42441 char $ac_func ();
42442 /* The GNU C library defines this for functions which it implements
42443     to always fail with ENOSYS.  Some functions are actually named
42444     something starting with __ and the normal name is an alias.  */
42445 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42446 choke me
42447 #else
42448 char (*f) () = $ac_func;
42449 #endif
42450 #ifdef __cplusplus
42451 }
42452 #endif
42453
42454 int
42455 main ()
42456 {
42457 return f != $ac_func;
42458   ;
42459   return 0;
42460 }
42461 _ACEOF
42462 rm -f conftest.$ac_objext conftest$ac_exeext
42463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42464   (eval $ac_link) 2>conftest.er1
42465   ac_status=$?
42466   grep -v '^ *+' conftest.er1 >conftest.err
42467   rm -f conftest.er1
42468   cat conftest.err >&5
42469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42470   (exit $ac_status); } &&
42471          { ac_try='test -z "$ac_c_werror_flag"
42472                          || test ! -s conftest.err'
42473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42474   (eval $ac_try) 2>&5
42475   ac_status=$?
42476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42477   (exit $ac_status); }; } &&
42478          { ac_try='test -s conftest$ac_exeext'
42479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42480   (eval $ac_try) 2>&5
42481   ac_status=$?
42482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42483   (exit $ac_status); }; }; then
42484   eval "$as_ac_var=yes"
42485 else
42486   echo "$as_me: failed program was:" >&5
42487 sed 's/^/| /' conftest.$ac_ext >&5
42488
42489 eval "$as_ac_var=no"
42490 fi
42491 rm -f conftest.err conftest.$ac_objext \
42492       conftest$ac_exeext conftest.$ac_ext
42493 fi
42494 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42495 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42496 if test `eval echo '${'$as_ac_var'}'` = yes; then
42497   cat >>confdefs.h <<_ACEOF
42498 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42499 _ACEOF
42500  ice_have_seteuid=yes
42501 fi
42502 done
42503
42504 if test "${ice_have_seteuid}" = yes; then
42505 echo "$as_me:$LINENO: checking for seteuid declaration in unistd.h" >&5
42506 echo $ECHO_N "checking for seteuid declaration in unistd.h... $ECHO_C" >&6
42507 if test "${ice_cv_have_seteuid_decl+set}" = set; then
42508   echo $ECHO_N "(cached) $ECHO_C" >&6
42509 else
42510
42511 ice_cv_have_seteuid_decl=no
42512 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
42513 ice_re_word='(^|[^a-zA-Z0-9_])'
42514 for header in unistd.h; do
42515 # Check for ordinary declaration
42516 cat >conftest.$ac_ext <<_ACEOF
42517 /* confdefs.h.  */
42518 _ACEOF
42519 cat confdefs.h >>conftest.$ac_ext
42520 cat >>conftest.$ac_ext <<_ACEOF
42521 /* end confdefs.h.  */
42522 #include <$header>
42523
42524 _ACEOF
42525 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42526   $EGREP "${ice_re_word}seteuid[        ]*\(" >/dev/null 2>&1; then
42527   ice_cv_have_seteuid_decl=yes
42528 fi
42529 rm -f conftest*
42530
42531 if test "$ice_cv_have_seteuid_decl" = yes; then
42532         break
42533 fi
42534 # Check for "fixed" declaration like "getpid _PARAMS((int))"
42535 cat >conftest.$ac_ext <<_ACEOF
42536 /* confdefs.h.  */
42537 _ACEOF
42538 cat confdefs.h >>conftest.$ac_ext
42539 cat >>conftest.$ac_ext <<_ACEOF
42540 /* end confdefs.h.  */
42541 #include <$header>
42542
42543 _ACEOF
42544 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42545   $EGREP "${ice_re_word}seteuid[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
42546   ice_cv_have_seteuid_decl=yes
42547 fi
42548 rm -f conftest*
42549
42550 if test "$ice_cv_have_seteuid_decl" = yes; then
42551         break
42552 fi
42553 done
42554
42555 fi
42556
42557 echo "$as_me:$LINENO: result: $ice_cv_have_seteuid_decl" >&5
42558 echo "${ECHO_T}$ice_cv_have_seteuid_decl" >&6
42559 if test "$ice_cv_have_seteuid_decl" = yes; then
42560
42561 cat >>confdefs.h <<_ACEOF
42562 #define HAVE_SETEUID_DECL 1
42563 _ACEOF
42564
42565 fi
42566 fi
42567
42568
42569 for ac_func in setmntent
42570 do
42571 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42572 echo "$as_me:$LINENO: checking for $ac_func" >&5
42573 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42574 if eval "test \"\${$as_ac_var+set}\" = set"; then
42575   echo $ECHO_N "(cached) $ECHO_C" >&6
42576 else
42577   cat >conftest.$ac_ext <<_ACEOF
42578 /* confdefs.h.  */
42579 _ACEOF
42580 cat confdefs.h >>conftest.$ac_ext
42581 cat >>conftest.$ac_ext <<_ACEOF
42582 /* end confdefs.h.  */
42583 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42584    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42585 #define $ac_func innocuous_$ac_func
42586
42587 /* System header to define __stub macros and hopefully few prototypes,
42588     which can conflict with char $ac_func (); below.
42589     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42590     <limits.h> exists even on freestanding compilers.  */
42591
42592 #ifdef __STDC__
42593 # include <limits.h>
42594 #else
42595 # include <assert.h>
42596 #endif
42597
42598 #undef $ac_func
42599
42600 /* Override any gcc2 internal prototype to avoid an error.  */
42601 #ifdef __cplusplus
42602 extern "C"
42603 {
42604 #endif
42605 /* We use char because int might match the return type of a gcc2
42606    builtin and then its argument prototype would still apply.  */
42607 char $ac_func ();
42608 /* The GNU C library defines this for functions which it implements
42609     to always fail with ENOSYS.  Some functions are actually named
42610     something starting with __ and the normal name is an alias.  */
42611 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42612 choke me
42613 #else
42614 char (*f) () = $ac_func;
42615 #endif
42616 #ifdef __cplusplus
42617 }
42618 #endif
42619
42620 int
42621 main ()
42622 {
42623 return f != $ac_func;
42624   ;
42625   return 0;
42626 }
42627 _ACEOF
42628 rm -f conftest.$ac_objext conftest$ac_exeext
42629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42630   (eval $ac_link) 2>conftest.er1
42631   ac_status=$?
42632   grep -v '^ *+' conftest.er1 >conftest.err
42633   rm -f conftest.er1
42634   cat conftest.err >&5
42635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42636   (exit $ac_status); } &&
42637          { ac_try='test -z "$ac_c_werror_flag"
42638                          || test ! -s conftest.err'
42639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42640   (eval $ac_try) 2>&5
42641   ac_status=$?
42642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42643   (exit $ac_status); }; } &&
42644          { ac_try='test -s conftest$ac_exeext'
42645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42646   (eval $ac_try) 2>&5
42647   ac_status=$?
42648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42649   (exit $ac_status); }; }; then
42650   eval "$as_ac_var=yes"
42651 else
42652   echo "$as_me: failed program was:" >&5
42653 sed 's/^/| /' conftest.$ac_ext >&5
42654
42655 eval "$as_ac_var=no"
42656 fi
42657 rm -f conftest.err conftest.$ac_objext \
42658       conftest$ac_exeext conftest.$ac_ext
42659 fi
42660 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42661 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42662 if test `eval echo '${'$as_ac_var'}'` = yes; then
42663   cat >>confdefs.h <<_ACEOF
42664 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42665 _ACEOF
42666
42667 fi
42668 done
42669
42670
42671 ice_have_setresgid=no
42672
42673 for ac_func in setresgid
42674 do
42675 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42676 echo "$as_me:$LINENO: checking for $ac_func" >&5
42677 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42678 if eval "test \"\${$as_ac_var+set}\" = set"; then
42679   echo $ECHO_N "(cached) $ECHO_C" >&6
42680 else
42681   cat >conftest.$ac_ext <<_ACEOF
42682 /* confdefs.h.  */
42683 _ACEOF
42684 cat confdefs.h >>conftest.$ac_ext
42685 cat >>conftest.$ac_ext <<_ACEOF
42686 /* end confdefs.h.  */
42687 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42688    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42689 #define $ac_func innocuous_$ac_func
42690
42691 /* System header to define __stub macros and hopefully few prototypes,
42692     which can conflict with char $ac_func (); below.
42693     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42694     <limits.h> exists even on freestanding compilers.  */
42695
42696 #ifdef __STDC__
42697 # include <limits.h>
42698 #else
42699 # include <assert.h>
42700 #endif
42701
42702 #undef $ac_func
42703
42704 /* Override any gcc2 internal prototype to avoid an error.  */
42705 #ifdef __cplusplus
42706 extern "C"
42707 {
42708 #endif
42709 /* We use char because int might match the return type of a gcc2
42710    builtin and then its argument prototype would still apply.  */
42711 char $ac_func ();
42712 /* The GNU C library defines this for functions which it implements
42713     to always fail with ENOSYS.  Some functions are actually named
42714     something starting with __ and the normal name is an alias.  */
42715 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42716 choke me
42717 #else
42718 char (*f) () = $ac_func;
42719 #endif
42720 #ifdef __cplusplus
42721 }
42722 #endif
42723
42724 int
42725 main ()
42726 {
42727 return f != $ac_func;
42728   ;
42729   return 0;
42730 }
42731 _ACEOF
42732 rm -f conftest.$ac_objext conftest$ac_exeext
42733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42734   (eval $ac_link) 2>conftest.er1
42735   ac_status=$?
42736   grep -v '^ *+' conftest.er1 >conftest.err
42737   rm -f conftest.er1
42738   cat conftest.err >&5
42739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42740   (exit $ac_status); } &&
42741          { ac_try='test -z "$ac_c_werror_flag"
42742                          || test ! -s conftest.err'
42743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42744   (eval $ac_try) 2>&5
42745   ac_status=$?
42746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42747   (exit $ac_status); }; } &&
42748          { ac_try='test -s conftest$ac_exeext'
42749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42750   (eval $ac_try) 2>&5
42751   ac_status=$?
42752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42753   (exit $ac_status); }; }; then
42754   eval "$as_ac_var=yes"
42755 else
42756   echo "$as_me: failed program was:" >&5
42757 sed 's/^/| /' conftest.$ac_ext >&5
42758
42759 eval "$as_ac_var=no"
42760 fi
42761 rm -f conftest.err conftest.$ac_objext \
42762       conftest$ac_exeext conftest.$ac_ext
42763 fi
42764 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42765 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42766 if test `eval echo '${'$as_ac_var'}'` = yes; then
42767   cat >>confdefs.h <<_ACEOF
42768 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42769 _ACEOF
42770  ice_have_setresgid=yes
42771 fi
42772 done
42773
42774 if test "${ice_have_setresgid}" = yes; then
42775 echo "$as_me:$LINENO: checking for setresgid declaration in unistd.h" >&5
42776 echo $ECHO_N "checking for setresgid declaration in unistd.h... $ECHO_C" >&6
42777 if test "${ice_cv_have_setresgid_decl+set}" = set; then
42778   echo $ECHO_N "(cached) $ECHO_C" >&6
42779 else
42780
42781 ice_cv_have_setresgid_decl=no
42782 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
42783 ice_re_word='(^|[^a-zA-Z0-9_])'
42784 for header in unistd.h; do
42785 # Check for ordinary declaration
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}setresgid[      ]*\(" >/dev/null 2>&1; then
42797   ice_cv_have_setresgid_decl=yes
42798 fi
42799 rm -f conftest*
42800
42801 if test "$ice_cv_have_setresgid_decl" = yes; then
42802         break
42803 fi
42804 # Check for "fixed" declaration like "getpid _PARAMS((int))"
42805 cat >conftest.$ac_ext <<_ACEOF
42806 /* confdefs.h.  */
42807 _ACEOF
42808 cat confdefs.h >>conftest.$ac_ext
42809 cat >>conftest.$ac_ext <<_ACEOF
42810 /* end confdefs.h.  */
42811 #include <$header>
42812
42813 _ACEOF
42814 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42815   $EGREP "${ice_re_word}setresgid[      ]*$ice_re_params\(\(" >/dev/null 2>&1; then
42816   ice_cv_have_setresgid_decl=yes
42817 fi
42818 rm -f conftest*
42819
42820 if test "$ice_cv_have_setresgid_decl" = yes; then
42821         break
42822 fi
42823 done
42824
42825 fi
42826
42827 echo "$as_me:$LINENO: result: $ice_cv_have_setresgid_decl" >&5
42828 echo "${ECHO_T}$ice_cv_have_setresgid_decl" >&6
42829 if test "$ice_cv_have_setresgid_decl" = yes; then
42830
42831 cat >>confdefs.h <<_ACEOF
42832 #define HAVE_SETRESGID_DECL 1
42833 _ACEOF
42834
42835 fi
42836 fi
42837
42838
42839 ice_have_setresuid=no
42840
42841 for ac_func in setresuid
42842 do
42843 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42844 echo "$as_me:$LINENO: checking for $ac_func" >&5
42845 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42846 if eval "test \"\${$as_ac_var+set}\" = set"; then
42847   echo $ECHO_N "(cached) $ECHO_C" >&6
42848 else
42849   cat >conftest.$ac_ext <<_ACEOF
42850 /* confdefs.h.  */
42851 _ACEOF
42852 cat confdefs.h >>conftest.$ac_ext
42853 cat >>conftest.$ac_ext <<_ACEOF
42854 /* end confdefs.h.  */
42855 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42856    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42857 #define $ac_func innocuous_$ac_func
42858
42859 /* System header to define __stub macros and hopefully few prototypes,
42860     which can conflict with char $ac_func (); below.
42861     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42862     <limits.h> exists even on freestanding compilers.  */
42863
42864 #ifdef __STDC__
42865 # include <limits.h>
42866 #else
42867 # include <assert.h>
42868 #endif
42869
42870 #undef $ac_func
42871
42872 /* Override any gcc2 internal prototype to avoid an error.  */
42873 #ifdef __cplusplus
42874 extern "C"
42875 {
42876 #endif
42877 /* We use char because int might match the return type of a gcc2
42878    builtin and then its argument prototype would still apply.  */
42879 char $ac_func ();
42880 /* The GNU C library defines this for functions which it implements
42881     to always fail with ENOSYS.  Some functions are actually named
42882     something starting with __ and the normal name is an alias.  */
42883 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42884 choke me
42885 #else
42886 char (*f) () = $ac_func;
42887 #endif
42888 #ifdef __cplusplus
42889 }
42890 #endif
42891
42892 int
42893 main ()
42894 {
42895 return f != $ac_func;
42896   ;
42897   return 0;
42898 }
42899 _ACEOF
42900 rm -f conftest.$ac_objext conftest$ac_exeext
42901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42902   (eval $ac_link) 2>conftest.er1
42903   ac_status=$?
42904   grep -v '^ *+' conftest.er1 >conftest.err
42905   rm -f conftest.er1
42906   cat conftest.err >&5
42907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42908   (exit $ac_status); } &&
42909          { ac_try='test -z "$ac_c_werror_flag"
42910                          || test ! -s conftest.err'
42911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42912   (eval $ac_try) 2>&5
42913   ac_status=$?
42914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42915   (exit $ac_status); }; } &&
42916          { ac_try='test -s conftest$ac_exeext'
42917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42918   (eval $ac_try) 2>&5
42919   ac_status=$?
42920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42921   (exit $ac_status); }; }; then
42922   eval "$as_ac_var=yes"
42923 else
42924   echo "$as_me: failed program was:" >&5
42925 sed 's/^/| /' conftest.$ac_ext >&5
42926
42927 eval "$as_ac_var=no"
42928 fi
42929 rm -f conftest.err conftest.$ac_objext \
42930       conftest$ac_exeext conftest.$ac_ext
42931 fi
42932 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42933 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42934 if test `eval echo '${'$as_ac_var'}'` = yes; then
42935   cat >>confdefs.h <<_ACEOF
42936 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42937 _ACEOF
42938  ice_have_setresuid=yes
42939 fi
42940 done
42941
42942 if test "${ice_have_setresuid}" = yes; then
42943 echo "$as_me:$LINENO: checking for setresuid declaration in unistd.h" >&5
42944 echo $ECHO_N "checking for setresuid declaration in unistd.h... $ECHO_C" >&6
42945 if test "${ice_cv_have_setresuid_decl+set}" = set; then
42946   echo $ECHO_N "(cached) $ECHO_C" >&6
42947 else
42948
42949 ice_cv_have_setresuid_decl=no
42950 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
42951 ice_re_word='(^|[^a-zA-Z0-9_])'
42952 for header in unistd.h; do
42953 # Check for ordinary declaration
42954 cat >conftest.$ac_ext <<_ACEOF
42955 /* confdefs.h.  */
42956 _ACEOF
42957 cat confdefs.h >>conftest.$ac_ext
42958 cat >>conftest.$ac_ext <<_ACEOF
42959 /* end confdefs.h.  */
42960 #include <$header>
42961
42962 _ACEOF
42963 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42964   $EGREP "${ice_re_word}setresuid[      ]*\(" >/dev/null 2>&1; then
42965   ice_cv_have_setresuid_decl=yes
42966 fi
42967 rm -f conftest*
42968
42969 if test "$ice_cv_have_setresuid_decl" = yes; then
42970         break
42971 fi
42972 # Check for "fixed" declaration like "getpid _PARAMS((int))"
42973 cat >conftest.$ac_ext <<_ACEOF
42974 /* confdefs.h.  */
42975 _ACEOF
42976 cat confdefs.h >>conftest.$ac_ext
42977 cat >>conftest.$ac_ext <<_ACEOF
42978 /* end confdefs.h.  */
42979 #include <$header>
42980
42981 _ACEOF
42982 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42983   $EGREP "${ice_re_word}setresuid[      ]*$ice_re_params\(\(" >/dev/null 2>&1; then
42984   ice_cv_have_setresuid_decl=yes
42985 fi
42986 rm -f conftest*
42987
42988 if test "$ice_cv_have_setresuid_decl" = yes; then
42989         break
42990 fi
42991 done
42992
42993 fi
42994
42995 echo "$as_me:$LINENO: result: $ice_cv_have_setresuid_decl" >&5
42996 echo "${ECHO_T}$ice_cv_have_setresuid_decl" >&6
42997 if test "$ice_cv_have_setresuid_decl" = yes; then
42998
42999 cat >>confdefs.h <<_ACEOF
43000 #define HAVE_SETRESUID_DECL 1
43001 _ACEOF
43002
43003 fi
43004 fi
43005
43006
43007 echo "$as_me:$LINENO: checking for setpgid" >&5
43008 echo $ECHO_N "checking for setpgid... $ECHO_C" >&6
43009 if test "${ac_cv_func_setpgid+set}" = set; then
43010   echo $ECHO_N "(cached) $ECHO_C" >&6
43011 else
43012   cat >conftest.$ac_ext <<_ACEOF
43013 /* confdefs.h.  */
43014 _ACEOF
43015 cat confdefs.h >>conftest.$ac_ext
43016 cat >>conftest.$ac_ext <<_ACEOF
43017 /* end confdefs.h.  */
43018 /* Define setpgid to an innocuous variant, in case <limits.h> declares setpgid.
43019    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43020 #define setpgid innocuous_setpgid
43021
43022 /* System header to define __stub macros and hopefully few prototypes,
43023     which can conflict with char setpgid (); below.
43024     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43025     <limits.h> exists even on freestanding compilers.  */
43026
43027 #ifdef __STDC__
43028 # include <limits.h>
43029 #else
43030 # include <assert.h>
43031 #endif
43032
43033 #undef setpgid
43034
43035 /* Override any gcc2 internal prototype to avoid an error.  */
43036 #ifdef __cplusplus
43037 extern "C"
43038 {
43039 #endif
43040 /* We use char because int might match the return type of a gcc2
43041    builtin and then its argument prototype would still apply.  */
43042 char setpgid ();
43043 /* The GNU C library defines this for functions which it implements
43044     to always fail with ENOSYS.  Some functions are actually named
43045     something starting with __ and the normal name is an alias.  */
43046 #if defined (__stub_setpgid) || defined (__stub___setpgid)
43047 choke me
43048 #else
43049 char (*f) () = setpgid;
43050 #endif
43051 #ifdef __cplusplus
43052 }
43053 #endif
43054
43055 int
43056 main ()
43057 {
43058 return f != setpgid;
43059   ;
43060   return 0;
43061 }
43062 _ACEOF
43063 rm -f conftest.$ac_objext conftest$ac_exeext
43064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43065   (eval $ac_link) 2>conftest.er1
43066   ac_status=$?
43067   grep -v '^ *+' conftest.er1 >conftest.err
43068   rm -f conftest.er1
43069   cat conftest.err >&5
43070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43071   (exit $ac_status); } &&
43072          { ac_try='test -z "$ac_c_werror_flag"
43073                          || test ! -s conftest.err'
43074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43075   (eval $ac_try) 2>&5
43076   ac_status=$?
43077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43078   (exit $ac_status); }; } &&
43079          { ac_try='test -s conftest$ac_exeext'
43080   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43081   (eval $ac_try) 2>&5
43082   ac_status=$?
43083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43084   (exit $ac_status); }; }; then
43085   ac_cv_func_setpgid=yes
43086 else
43087   echo "$as_me: failed program was:" >&5
43088 sed 's/^/| /' conftest.$ac_ext >&5
43089
43090 ac_cv_func_setpgid=no
43091 fi
43092 rm -f conftest.err conftest.$ac_objext \
43093       conftest$ac_exeext conftest.$ac_ext
43094 fi
43095 echo "$as_me:$LINENO: result: $ac_cv_func_setpgid" >&5
43096 echo "${ECHO_T}$ac_cv_func_setpgid" >&6
43097 if test $ac_cv_func_setpgid = yes; then
43098
43099
43100 cat >>confdefs.h <<\_ACEOF
43101 #define HAVE_SETPGID 1
43102 _ACEOF
43103
43104
43105 ice_have_setpgid=no
43106
43107 for ac_func in setpgid
43108 do
43109 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43110 echo "$as_me:$LINENO: checking for $ac_func" >&5
43111 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43112 if eval "test \"\${$as_ac_var+set}\" = set"; then
43113   echo $ECHO_N "(cached) $ECHO_C" >&6
43114 else
43115   cat >conftest.$ac_ext <<_ACEOF
43116 /* confdefs.h.  */
43117 _ACEOF
43118 cat confdefs.h >>conftest.$ac_ext
43119 cat >>conftest.$ac_ext <<_ACEOF
43120 /* end confdefs.h.  */
43121 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43122    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43123 #define $ac_func innocuous_$ac_func
43124
43125 /* System header to define __stub macros and hopefully few prototypes,
43126     which can conflict with char $ac_func (); below.
43127     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43128     <limits.h> exists even on freestanding compilers.  */
43129
43130 #ifdef __STDC__
43131 # include <limits.h>
43132 #else
43133 # include <assert.h>
43134 #endif
43135
43136 #undef $ac_func
43137
43138 /* Override any gcc2 internal prototype to avoid an error.  */
43139 #ifdef __cplusplus
43140 extern "C"
43141 {
43142 #endif
43143 /* We use char because int might match the return type of a gcc2
43144    builtin and then its argument prototype would still apply.  */
43145 char $ac_func ();
43146 /* The GNU C library defines this for functions which it implements
43147     to always fail with ENOSYS.  Some functions are actually named
43148     something starting with __ and the normal name is an alias.  */
43149 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43150 choke me
43151 #else
43152 char (*f) () = $ac_func;
43153 #endif
43154 #ifdef __cplusplus
43155 }
43156 #endif
43157
43158 int
43159 main ()
43160 {
43161 return f != $ac_func;
43162   ;
43163   return 0;
43164 }
43165 _ACEOF
43166 rm -f conftest.$ac_objext conftest$ac_exeext
43167 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43168   (eval $ac_link) 2>conftest.er1
43169   ac_status=$?
43170   grep -v '^ *+' conftest.er1 >conftest.err
43171   rm -f conftest.er1
43172   cat conftest.err >&5
43173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43174   (exit $ac_status); } &&
43175          { ac_try='test -z "$ac_c_werror_flag"
43176                          || test ! -s conftest.err'
43177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43178   (eval $ac_try) 2>&5
43179   ac_status=$?
43180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43181   (exit $ac_status); }; } &&
43182          { ac_try='test -s conftest$ac_exeext'
43183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43184   (eval $ac_try) 2>&5
43185   ac_status=$?
43186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43187   (exit $ac_status); }; }; then
43188   eval "$as_ac_var=yes"
43189 else
43190   echo "$as_me: failed program was:" >&5
43191 sed 's/^/| /' conftest.$ac_ext >&5
43192
43193 eval "$as_ac_var=no"
43194 fi
43195 rm -f conftest.err conftest.$ac_objext \
43196       conftest$ac_exeext conftest.$ac_ext
43197 fi
43198 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43199 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43200 if test `eval echo '${'$as_ac_var'}'` = yes; then
43201   cat >>confdefs.h <<_ACEOF
43202 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43203 _ACEOF
43204  ice_have_setpgid=yes
43205 fi
43206 done
43207
43208 if test "${ice_have_setpgid}" = yes; then
43209 echo "$as_me:$LINENO: checking for setpgid declaration in sys/types.h unistd.h" >&5
43210 echo $ECHO_N "checking for setpgid declaration in sys/types.h unistd.h... $ECHO_C" >&6
43211 if test "${ice_cv_have_setpgid_decl+set}" = set; then
43212   echo $ECHO_N "(cached) $ECHO_C" >&6
43213 else
43214
43215 ice_cv_have_setpgid_decl=no
43216 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
43217 ice_re_word='(^|[^a-zA-Z0-9_])'
43218 for header in sys/types.h unistd.h; do
43219 # Check for ordinary declaration
43220 cat >conftest.$ac_ext <<_ACEOF
43221 /* confdefs.h.  */
43222 _ACEOF
43223 cat confdefs.h >>conftest.$ac_ext
43224 cat >>conftest.$ac_ext <<_ACEOF
43225 /* end confdefs.h.  */
43226 #include <$header>
43227
43228 _ACEOF
43229 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43230   $EGREP "${ice_re_word}setpgid[        ]*\(" >/dev/null 2>&1; then
43231   ice_cv_have_setpgid_decl=yes
43232 fi
43233 rm -f conftest*
43234
43235 if test "$ice_cv_have_setpgid_decl" = yes; then
43236         break
43237 fi
43238 # Check for "fixed" declaration like "getpid _PARAMS((int))"
43239 cat >conftest.$ac_ext <<_ACEOF
43240 /* confdefs.h.  */
43241 _ACEOF
43242 cat confdefs.h >>conftest.$ac_ext
43243 cat >>conftest.$ac_ext <<_ACEOF
43244 /* end confdefs.h.  */
43245 #include <$header>
43246
43247 _ACEOF
43248 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43249   $EGREP "${ice_re_word}setpgid[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
43250   ice_cv_have_setpgid_decl=yes
43251 fi
43252 rm -f conftest*
43253
43254 if test "$ice_cv_have_setpgid_decl" = yes; then
43255         break
43256 fi
43257 done
43258
43259 fi
43260
43261 echo "$as_me:$LINENO: result: $ice_cv_have_setpgid_decl" >&5
43262 echo "${ECHO_T}$ice_cv_have_setpgid_decl" >&6
43263 if test "$ice_cv_have_setpgid_decl" = yes; then
43264
43265 cat >>confdefs.h <<_ACEOF
43266 #define HAVE_SETPGID_DECL 1
43267 _ACEOF
43268
43269 fi
43270 fi
43271
43272
43273 fi
43274
43275 echo "$as_me:$LINENO: checking for setpgrp" >&5
43276 echo $ECHO_N "checking for setpgrp... $ECHO_C" >&6
43277 if test "${ac_cv_func_setpgrp+set}" = set; then
43278   echo $ECHO_N "(cached) $ECHO_C" >&6
43279 else
43280   cat >conftest.$ac_ext <<_ACEOF
43281 /* confdefs.h.  */
43282 _ACEOF
43283 cat confdefs.h >>conftest.$ac_ext
43284 cat >>conftest.$ac_ext <<_ACEOF
43285 /* end confdefs.h.  */
43286 /* Define setpgrp to an innocuous variant, in case <limits.h> declares setpgrp.
43287    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43288 #define setpgrp innocuous_setpgrp
43289
43290 /* System header to define __stub macros and hopefully few prototypes,
43291     which can conflict with char setpgrp (); below.
43292     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43293     <limits.h> exists even on freestanding compilers.  */
43294
43295 #ifdef __STDC__
43296 # include <limits.h>
43297 #else
43298 # include <assert.h>
43299 #endif
43300
43301 #undef setpgrp
43302
43303 /* Override any gcc2 internal prototype to avoid an error.  */
43304 #ifdef __cplusplus
43305 extern "C"
43306 {
43307 #endif
43308 /* We use char because int might match the return type of a gcc2
43309    builtin and then its argument prototype would still apply.  */
43310 char setpgrp ();
43311 /* The GNU C library defines this for functions which it implements
43312     to always fail with ENOSYS.  Some functions are actually named
43313     something starting with __ and the normal name is an alias.  */
43314 #if defined (__stub_setpgrp) || defined (__stub___setpgrp)
43315 choke me
43316 #else
43317 char (*f) () = setpgrp;
43318 #endif
43319 #ifdef __cplusplus
43320 }
43321 #endif
43322
43323 int
43324 main ()
43325 {
43326 return f != setpgrp;
43327   ;
43328   return 0;
43329 }
43330 _ACEOF
43331 rm -f conftest.$ac_objext conftest$ac_exeext
43332 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43333   (eval $ac_link) 2>conftest.er1
43334   ac_status=$?
43335   grep -v '^ *+' conftest.er1 >conftest.err
43336   rm -f conftest.er1
43337   cat conftest.err >&5
43338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43339   (exit $ac_status); } &&
43340          { ac_try='test -z "$ac_c_werror_flag"
43341                          || test ! -s conftest.err'
43342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43343   (eval $ac_try) 2>&5
43344   ac_status=$?
43345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43346   (exit $ac_status); }; } &&
43347          { ac_try='test -s conftest$ac_exeext'
43348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43349   (eval $ac_try) 2>&5
43350   ac_status=$?
43351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43352   (exit $ac_status); }; }; then
43353   ac_cv_func_setpgrp=yes
43354 else
43355   echo "$as_me: failed program was:" >&5
43356 sed 's/^/| /' conftest.$ac_ext >&5
43357
43358 ac_cv_func_setpgrp=no
43359 fi
43360 rm -f conftest.err conftest.$ac_objext \
43361       conftest$ac_exeext conftest.$ac_ext
43362 fi
43363 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp" >&5
43364 echo "${ECHO_T}$ac_cv_func_setpgrp" >&6
43365 if test $ac_cv_func_setpgrp = yes; then
43366   echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
43367 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
43368 if test "${ac_cv_func_setpgrp_void+set}" = set; then
43369   echo $ECHO_N "(cached) $ECHO_C" >&6
43370 else
43371   if test "$cross_compiling" = yes; then
43372   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
43373 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
43374    { (exit 1); exit 1; }; }
43375 else
43376   cat >conftest.$ac_ext <<_ACEOF
43377 /* confdefs.h.  */
43378 _ACEOF
43379 cat confdefs.h >>conftest.$ac_ext
43380 cat >>conftest.$ac_ext <<_ACEOF
43381 /* end confdefs.h.  */
43382 #if HAVE_UNISTD_H
43383 # include <unistd.h>
43384 #endif
43385
43386 int
43387 main ()
43388 {
43389 /* If this system has a BSD-style setpgrp which takes arguments,
43390   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
43391   exit successfully. */
43392   exit (setpgrp (1,1) == -1 ? 0 : 1);
43393   ;
43394   return 0;
43395 }
43396 _ACEOF
43397 rm -f conftest$ac_exeext
43398 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43399   (eval $ac_link) 2>&5
43400   ac_status=$?
43401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43402   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
43403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43404   (eval $ac_try) 2>&5
43405   ac_status=$?
43406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43407   (exit $ac_status); }; }; then
43408   ac_cv_func_setpgrp_void=no
43409 else
43410   echo "$as_me: program exited with status $ac_status" >&5
43411 echo "$as_me: failed program was:" >&5
43412 sed 's/^/| /' conftest.$ac_ext >&5
43413
43414 ( exit $ac_status )
43415 ac_cv_func_setpgrp_void=yes
43416 fi
43417 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
43418 fi
43419 fi
43420 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
43421 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
43422 if test $ac_cv_func_setpgrp_void = yes; then
43423
43424 cat >>confdefs.h <<\_ACEOF
43425 #define SETPGRP_VOID 1
43426 _ACEOF
43427
43428 fi
43429
43430 fi
43431
43432
43433 ice_have_setpgrp=no
43434
43435 for ac_func in setpgrp
43436 do
43437 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43438 echo "$as_me:$LINENO: checking for $ac_func" >&5
43439 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43440 if eval "test \"\${$as_ac_var+set}\" = set"; then
43441   echo $ECHO_N "(cached) $ECHO_C" >&6
43442 else
43443   cat >conftest.$ac_ext <<_ACEOF
43444 /* confdefs.h.  */
43445 _ACEOF
43446 cat confdefs.h >>conftest.$ac_ext
43447 cat >>conftest.$ac_ext <<_ACEOF
43448 /* end confdefs.h.  */
43449 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43450    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43451 #define $ac_func innocuous_$ac_func
43452
43453 /* System header to define __stub macros and hopefully few prototypes,
43454     which can conflict with char $ac_func (); below.
43455     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43456     <limits.h> exists even on freestanding compilers.  */
43457
43458 #ifdef __STDC__
43459 # include <limits.h>
43460 #else
43461 # include <assert.h>
43462 #endif
43463
43464 #undef $ac_func
43465
43466 /* Override any gcc2 internal prototype to avoid an error.  */
43467 #ifdef __cplusplus
43468 extern "C"
43469 {
43470 #endif
43471 /* We use char because int might match the return type of a gcc2
43472    builtin and then its argument prototype would still apply.  */
43473 char $ac_func ();
43474 /* The GNU C library defines this for functions which it implements
43475     to always fail with ENOSYS.  Some functions are actually named
43476     something starting with __ and the normal name is an alias.  */
43477 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43478 choke me
43479 #else
43480 char (*f) () = $ac_func;
43481 #endif
43482 #ifdef __cplusplus
43483 }
43484 #endif
43485
43486 int
43487 main ()
43488 {
43489 return f != $ac_func;
43490   ;
43491   return 0;
43492 }
43493 _ACEOF
43494 rm -f conftest.$ac_objext conftest$ac_exeext
43495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43496   (eval $ac_link) 2>conftest.er1
43497   ac_status=$?
43498   grep -v '^ *+' conftest.er1 >conftest.err
43499   rm -f conftest.er1
43500   cat conftest.err >&5
43501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43502   (exit $ac_status); } &&
43503          { ac_try='test -z "$ac_c_werror_flag"
43504                          || test ! -s conftest.err'
43505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43506   (eval $ac_try) 2>&5
43507   ac_status=$?
43508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43509   (exit $ac_status); }; } &&
43510          { ac_try='test -s conftest$ac_exeext'
43511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43512   (eval $ac_try) 2>&5
43513   ac_status=$?
43514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43515   (exit $ac_status); }; }; then
43516   eval "$as_ac_var=yes"
43517 else
43518   echo "$as_me: failed program was:" >&5
43519 sed 's/^/| /' conftest.$ac_ext >&5
43520
43521 eval "$as_ac_var=no"
43522 fi
43523 rm -f conftest.err conftest.$ac_objext \
43524       conftest$ac_exeext conftest.$ac_ext
43525 fi
43526 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43527 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43528 if test `eval echo '${'$as_ac_var'}'` = yes; then
43529   cat >>confdefs.h <<_ACEOF
43530 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43531 _ACEOF
43532  ice_have_setpgrp=yes
43533 fi
43534 done
43535
43536 if test "${ice_have_setpgrp}" = yes; then
43537 echo "$as_me:$LINENO: checking for setpgrp declaration in sys/types.h unistd.h libc.h" >&5
43538 echo $ECHO_N "checking for setpgrp declaration in sys/types.h unistd.h libc.h... $ECHO_C" >&6
43539 if test "${ice_cv_have_setpgrp_decl+set}" = set; then
43540   echo $ECHO_N "(cached) $ECHO_C" >&6
43541 else
43542
43543 ice_cv_have_setpgrp_decl=no
43544 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
43545 ice_re_word='(^|[^a-zA-Z0-9_])'
43546 for header in sys/types.h unistd.h libc.h; do
43547 # Check for ordinary declaration
43548 cat >conftest.$ac_ext <<_ACEOF
43549 /* confdefs.h.  */
43550 _ACEOF
43551 cat confdefs.h >>conftest.$ac_ext
43552 cat >>conftest.$ac_ext <<_ACEOF
43553 /* end confdefs.h.  */
43554 #include <$header>
43555
43556 _ACEOF
43557 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43558   $EGREP "${ice_re_word}setpgrp[        ]*\(" >/dev/null 2>&1; then
43559   ice_cv_have_setpgrp_decl=yes
43560 fi
43561 rm -f conftest*
43562
43563 if test "$ice_cv_have_setpgrp_decl" = yes; then
43564         break
43565 fi
43566 # Check for "fixed" declaration like "getpid _PARAMS((int))"
43567 cat >conftest.$ac_ext <<_ACEOF
43568 /* confdefs.h.  */
43569 _ACEOF
43570 cat confdefs.h >>conftest.$ac_ext
43571 cat >>conftest.$ac_ext <<_ACEOF
43572 /* end confdefs.h.  */
43573 #include <$header>
43574
43575 _ACEOF
43576 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43577   $EGREP "${ice_re_word}setpgrp[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
43578   ice_cv_have_setpgrp_decl=yes
43579 fi
43580 rm -f conftest*
43581
43582 if test "$ice_cv_have_setpgrp_decl" = yes; then
43583         break
43584 fi
43585 done
43586
43587 fi
43588
43589 echo "$as_me:$LINENO: result: $ice_cv_have_setpgrp_decl" >&5
43590 echo "${ECHO_T}$ice_cv_have_setpgrp_decl" >&6
43591 if test "$ice_cv_have_setpgrp_decl" = yes; then
43592
43593 cat >>confdefs.h <<_ACEOF
43594 #define HAVE_SETPGRP_DECL 1
43595 _ACEOF
43596
43597 fi
43598 fi
43599
43600
43601
43602 ice_have_setsockopt=no
43603
43604 for ac_func in setsockopt
43605 do
43606 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43607 echo "$as_me:$LINENO: checking for $ac_func" >&5
43608 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43609 if eval "test \"\${$as_ac_var+set}\" = set"; then
43610   echo $ECHO_N "(cached) $ECHO_C" >&6
43611 else
43612   cat >conftest.$ac_ext <<_ACEOF
43613 /* confdefs.h.  */
43614 _ACEOF
43615 cat confdefs.h >>conftest.$ac_ext
43616 cat >>conftest.$ac_ext <<_ACEOF
43617 /* end confdefs.h.  */
43618 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43619    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43620 #define $ac_func innocuous_$ac_func
43621
43622 /* System header to define __stub macros and hopefully few prototypes,
43623     which can conflict with char $ac_func (); below.
43624     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43625     <limits.h> exists even on freestanding compilers.  */
43626
43627 #ifdef __STDC__
43628 # include <limits.h>
43629 #else
43630 # include <assert.h>
43631 #endif
43632
43633 #undef $ac_func
43634
43635 /* Override any gcc2 internal prototype to avoid an error.  */
43636 #ifdef __cplusplus
43637 extern "C"
43638 {
43639 #endif
43640 /* We use char because int might match the return type of a gcc2
43641    builtin and then its argument prototype would still apply.  */
43642 char $ac_func ();
43643 /* The GNU C library defines this for functions which it implements
43644     to always fail with ENOSYS.  Some functions are actually named
43645     something starting with __ and the normal name is an alias.  */
43646 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43647 choke me
43648 #else
43649 char (*f) () = $ac_func;
43650 #endif
43651 #ifdef __cplusplus
43652 }
43653 #endif
43654
43655 int
43656 main ()
43657 {
43658 return f != $ac_func;
43659   ;
43660   return 0;
43661 }
43662 _ACEOF
43663 rm -f conftest.$ac_objext conftest$ac_exeext
43664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43665   (eval $ac_link) 2>conftest.er1
43666   ac_status=$?
43667   grep -v '^ *+' conftest.er1 >conftest.err
43668   rm -f conftest.er1
43669   cat conftest.err >&5
43670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43671   (exit $ac_status); } &&
43672          { ac_try='test -z "$ac_c_werror_flag"
43673                          || test ! -s conftest.err'
43674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43675   (eval $ac_try) 2>&5
43676   ac_status=$?
43677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43678   (exit $ac_status); }; } &&
43679          { ac_try='test -s conftest$ac_exeext'
43680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43681   (eval $ac_try) 2>&5
43682   ac_status=$?
43683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43684   (exit $ac_status); }; }; then
43685   eval "$as_ac_var=yes"
43686 else
43687   echo "$as_me: failed program was:" >&5
43688 sed 's/^/| /' conftest.$ac_ext >&5
43689
43690 eval "$as_ac_var=no"
43691 fi
43692 rm -f conftest.err conftest.$ac_objext \
43693       conftest$ac_exeext conftest.$ac_ext
43694 fi
43695 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43696 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43697 if test `eval echo '${'$as_ac_var'}'` = yes; then
43698   cat >>confdefs.h <<_ACEOF
43699 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43700 _ACEOF
43701  ice_have_setsockopt=yes
43702 fi
43703 done
43704
43705 if test "${ice_have_setsockopt}" = yes; then
43706 echo "$as_me:$LINENO: checking for setsockopt declaration in sys/types.h sys/socket.h" >&5
43707 echo $ECHO_N "checking for setsockopt declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
43708 if test "${ice_cv_have_setsockopt_decl+set}" = set; then
43709   echo $ECHO_N "(cached) $ECHO_C" >&6
43710 else
43711
43712 ice_cv_have_setsockopt_decl=no
43713 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
43714 ice_re_word='(^|[^a-zA-Z0-9_])'
43715 for header in sys/types.h sys/socket.h; do
43716 # Check for ordinary declaration
43717 cat >conftest.$ac_ext <<_ACEOF
43718 /* confdefs.h.  */
43719 _ACEOF
43720 cat confdefs.h >>conftest.$ac_ext
43721 cat >>conftest.$ac_ext <<_ACEOF
43722 /* end confdefs.h.  */
43723 #include <$header>
43724
43725 _ACEOF
43726 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43727   $EGREP "${ice_re_word}setsockopt[     ]*\(" >/dev/null 2>&1; then
43728   ice_cv_have_setsockopt_decl=yes
43729 fi
43730 rm -f conftest*
43731
43732 if test "$ice_cv_have_setsockopt_decl" = yes; then
43733         break
43734 fi
43735 # Check for "fixed" declaration like "getpid _PARAMS((int))"
43736 cat >conftest.$ac_ext <<_ACEOF
43737 /* confdefs.h.  */
43738 _ACEOF
43739 cat confdefs.h >>conftest.$ac_ext
43740 cat >>conftest.$ac_ext <<_ACEOF
43741 /* end confdefs.h.  */
43742 #include <$header>
43743
43744 _ACEOF
43745 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43746   $EGREP "${ice_re_word}setsockopt[     ]*$ice_re_params\(\(" >/dev/null 2>&1; then
43747   ice_cv_have_setsockopt_decl=yes
43748 fi
43749 rm -f conftest*
43750
43751 if test "$ice_cv_have_setsockopt_decl" = yes; then
43752         break
43753 fi
43754 done
43755
43756 fi
43757
43758 echo "$as_me:$LINENO: result: $ice_cv_have_setsockopt_decl" >&5
43759 echo "${ECHO_T}$ice_cv_have_setsockopt_decl" >&6
43760 if test "$ice_cv_have_setsockopt_decl" = yes; then
43761
43762 cat >>confdefs.h <<_ACEOF
43763 #define HAVE_SETSOCKOPT_DECL 1
43764 _ACEOF
43765
43766 fi
43767 fi
43768
43769
43770
43771 for ac_func in shmget
43772 do
43773 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43774 echo "$as_me:$LINENO: checking for $ac_func" >&5
43775 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43776 if eval "test \"\${$as_ac_var+set}\" = set"; then
43777   echo $ECHO_N "(cached) $ECHO_C" >&6
43778 else
43779   cat >conftest.$ac_ext <<_ACEOF
43780 /* confdefs.h.  */
43781 _ACEOF
43782 cat confdefs.h >>conftest.$ac_ext
43783 cat >>conftest.$ac_ext <<_ACEOF
43784 /* end confdefs.h.  */
43785 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43786    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43787 #define $ac_func innocuous_$ac_func
43788
43789 /* System header to define __stub macros and hopefully few prototypes,
43790     which can conflict with char $ac_func (); below.
43791     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43792     <limits.h> exists even on freestanding compilers.  */
43793
43794 #ifdef __STDC__
43795 # include <limits.h>
43796 #else
43797 # include <assert.h>
43798 #endif
43799
43800 #undef $ac_func
43801
43802 /* Override any gcc2 internal prototype to avoid an error.  */
43803 #ifdef __cplusplus
43804 extern "C"
43805 {
43806 #endif
43807 /* We use char because int might match the return type of a gcc2
43808    builtin and then its argument prototype would still apply.  */
43809 char $ac_func ();
43810 /* The GNU C library defines this for functions which it implements
43811     to always fail with ENOSYS.  Some functions are actually named
43812     something starting with __ and the normal name is an alias.  */
43813 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43814 choke me
43815 #else
43816 char (*f) () = $ac_func;
43817 #endif
43818 #ifdef __cplusplus
43819 }
43820 #endif
43821
43822 int
43823 main ()
43824 {
43825 return f != $ac_func;
43826   ;
43827   return 0;
43828 }
43829 _ACEOF
43830 rm -f conftest.$ac_objext conftest$ac_exeext
43831 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43832   (eval $ac_link) 2>conftest.er1
43833   ac_status=$?
43834   grep -v '^ *+' conftest.er1 >conftest.err
43835   rm -f conftest.er1
43836   cat conftest.err >&5
43837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43838   (exit $ac_status); } &&
43839          { ac_try='test -z "$ac_c_werror_flag"
43840                          || test ! -s conftest.err'
43841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43842   (eval $ac_try) 2>&5
43843   ac_status=$?
43844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43845   (exit $ac_status); }; } &&
43846          { ac_try='test -s conftest$ac_exeext'
43847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43848   (eval $ac_try) 2>&5
43849   ac_status=$?
43850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43851   (exit $ac_status); }; }; then
43852   eval "$as_ac_var=yes"
43853 else
43854   echo "$as_me: failed program was:" >&5
43855 sed 's/^/| /' conftest.$ac_ext >&5
43856
43857 eval "$as_ac_var=no"
43858 fi
43859 rm -f conftest.err conftest.$ac_objext \
43860       conftest$ac_exeext conftest.$ac_ext
43861 fi
43862 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43863 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43864 if test `eval echo '${'$as_ac_var'}'` = yes; then
43865   cat >>confdefs.h <<_ACEOF
43866 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43867 _ACEOF
43868
43869
43870         echo "$as_me:$LINENO: checking for shmdt() argument type" >&5
43871 echo $ECHO_N "checking for shmdt() argument type... $ECHO_C" >&6
43872 if test "${amanda_cv_shmdt_arg_type+set}" = set; then
43873   echo $ECHO_N "(cached) $ECHO_C" >&6
43874 else
43875
43876                 if test "$ac_cv_func_shmget" = yes; then
43877                     cat <<EOF >conftest.$ac_ext
43878 #include "confdefs.h"
43879 #ifdef HAVE_SYS_TYPES_H
43880 # include <sys/types.h>
43881 #endif
43882 #ifdef HAVE_SYS_IPC_H
43883 # include <sys/ipc.h>
43884 #endif
43885 #ifdef HAVE_SYS_SHM_H
43886 # include <sys/shm.h>
43887 #endif
43888
43889 #ifdef __cplusplus
43890 extern "C" void *shmat(int, void *, int);
43891 #else
43892 void *shmat();
43893 #endif
43894
43895 int main()
43896 {
43897     int i;
43898     return 0;
43899 }
43900 EOF
43901                     ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext >/dev/null 2>/dev/null
43902                     if test $? = 0; then
43903                         amanda_cv_shmdt_arg_type=void
43904                     else
43905                         amanda_cv_shmdt_arg_type=char
43906                     fi
43907                     rm -f conftest*
43908                 else
43909                     amanda_cv_shmdt_arg_type=nothing
43910                 fi
43911
43912
43913 fi
43914 echo "$as_me:$LINENO: result: $amanda_cv_shmdt_arg_type" >&5
43915 echo "${ECHO_T}$amanda_cv_shmdt_arg_type" >&6
43916
43917 cat >>confdefs.h <<_ACEOF
43918 #define SHM_ARG_TYPE $amanda_cv_shmdt_arg_type
43919 _ACEOF
43920
43921
43922
43923         case "$FORCE_MMAP" in
43924         n | no)
43925
43926 cat >>confdefs.h <<\_ACEOF
43927 #define HAVE_SYSVSHM 1
43928 _ACEOF
43929
43930           ;;
43931         esac
43932
43933
43934 fi
43935 done
43936
43937
43938 ice_have_shmat=no
43939
43940 for ac_func in shmat
43941 do
43942 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43943 echo "$as_me:$LINENO: checking for $ac_func" >&5
43944 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43945 if eval "test \"\${$as_ac_var+set}\" = set"; then
43946   echo $ECHO_N "(cached) $ECHO_C" >&6
43947 else
43948   cat >conftest.$ac_ext <<_ACEOF
43949 /* confdefs.h.  */
43950 _ACEOF
43951 cat confdefs.h >>conftest.$ac_ext
43952 cat >>conftest.$ac_ext <<_ACEOF
43953 /* end confdefs.h.  */
43954 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43955    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43956 #define $ac_func innocuous_$ac_func
43957
43958 /* System header to define __stub macros and hopefully few prototypes,
43959     which can conflict with char $ac_func (); below.
43960     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43961     <limits.h> exists even on freestanding compilers.  */
43962
43963 #ifdef __STDC__
43964 # include <limits.h>
43965 #else
43966 # include <assert.h>
43967 #endif
43968
43969 #undef $ac_func
43970
43971 /* Override any gcc2 internal prototype to avoid an error.  */
43972 #ifdef __cplusplus
43973 extern "C"
43974 {
43975 #endif
43976 /* We use char because int might match the return type of a gcc2
43977    builtin and then its argument prototype would still apply.  */
43978 char $ac_func ();
43979 /* The GNU C library defines this for functions which it implements
43980     to always fail with ENOSYS.  Some functions are actually named
43981     something starting with __ and the normal name is an alias.  */
43982 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43983 choke me
43984 #else
43985 char (*f) () = $ac_func;
43986 #endif
43987 #ifdef __cplusplus
43988 }
43989 #endif
43990
43991 int
43992 main ()
43993 {
43994 return f != $ac_func;
43995   ;
43996   return 0;
43997 }
43998 _ACEOF
43999 rm -f conftest.$ac_objext conftest$ac_exeext
44000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44001   (eval $ac_link) 2>conftest.er1
44002   ac_status=$?
44003   grep -v '^ *+' conftest.er1 >conftest.err
44004   rm -f conftest.er1
44005   cat conftest.err >&5
44006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44007   (exit $ac_status); } &&
44008          { ac_try='test -z "$ac_c_werror_flag"
44009                          || test ! -s conftest.err'
44010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44011   (eval $ac_try) 2>&5
44012   ac_status=$?
44013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44014   (exit $ac_status); }; } &&
44015          { ac_try='test -s conftest$ac_exeext'
44016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44017   (eval $ac_try) 2>&5
44018   ac_status=$?
44019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44020   (exit $ac_status); }; }; then
44021   eval "$as_ac_var=yes"
44022 else
44023   echo "$as_me: failed program was:" >&5
44024 sed 's/^/| /' conftest.$ac_ext >&5
44025
44026 eval "$as_ac_var=no"
44027 fi
44028 rm -f conftest.err conftest.$ac_objext \
44029       conftest$ac_exeext conftest.$ac_ext
44030 fi
44031 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44032 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44033 if test `eval echo '${'$as_ac_var'}'` = yes; then
44034   cat >>confdefs.h <<_ACEOF
44035 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44036 _ACEOF
44037  ice_have_shmat=yes
44038 fi
44039 done
44040
44041 if test "${ice_have_shmat}" = yes; then
44042 echo "$as_me:$LINENO: checking for shmat declaration in sys/types.h sys/ipc.h sys/shm.h" >&5
44043 echo $ECHO_N "checking for shmat declaration in sys/types.h sys/ipc.h sys/shm.h... $ECHO_C" >&6
44044 if test "${ice_cv_have_shmat_decl+set}" = set; then
44045   echo $ECHO_N "(cached) $ECHO_C" >&6
44046 else
44047
44048 ice_cv_have_shmat_decl=no
44049 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
44050 ice_re_word='(^|[^a-zA-Z0-9_])'
44051 for header in sys/types.h sys/ipc.h sys/shm.h; do
44052 # Check for ordinary declaration
44053 cat >conftest.$ac_ext <<_ACEOF
44054 /* confdefs.h.  */
44055 _ACEOF
44056 cat confdefs.h >>conftest.$ac_ext
44057 cat >>conftest.$ac_ext <<_ACEOF
44058 /* end confdefs.h.  */
44059 #include <$header>
44060
44061 _ACEOF
44062 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44063   $EGREP "${ice_re_word}shmat[  ]*\(" >/dev/null 2>&1; then
44064   ice_cv_have_shmat_decl=yes
44065 fi
44066 rm -f conftest*
44067
44068 if test "$ice_cv_have_shmat_decl" = yes; then
44069         break
44070 fi
44071 # Check for "fixed" declaration like "getpid _PARAMS((int))"
44072 cat >conftest.$ac_ext <<_ACEOF
44073 /* confdefs.h.  */
44074 _ACEOF
44075 cat confdefs.h >>conftest.$ac_ext
44076 cat >>conftest.$ac_ext <<_ACEOF
44077 /* end confdefs.h.  */
44078 #include <$header>
44079
44080 _ACEOF
44081 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44082   $EGREP "${ice_re_word}shmat[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
44083   ice_cv_have_shmat_decl=yes
44084 fi
44085 rm -f conftest*
44086
44087 if test "$ice_cv_have_shmat_decl" = yes; then
44088         break
44089 fi
44090 done
44091
44092 fi
44093
44094 echo "$as_me:$LINENO: result: $ice_cv_have_shmat_decl" >&5
44095 echo "${ECHO_T}$ice_cv_have_shmat_decl" >&6
44096 if test "$ice_cv_have_shmat_decl" = yes; then
44097
44098 cat >>confdefs.h <<_ACEOF
44099 #define HAVE_SHMAT_DECL 1
44100 _ACEOF
44101
44102 fi
44103 fi
44104
44105
44106 ice_have_shmctl=no
44107
44108 for ac_func in shmctl
44109 do
44110 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44111 echo "$as_me:$LINENO: checking for $ac_func" >&5
44112 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44113 if eval "test \"\${$as_ac_var+set}\" = set"; then
44114   echo $ECHO_N "(cached) $ECHO_C" >&6
44115 else
44116   cat >conftest.$ac_ext <<_ACEOF
44117 /* confdefs.h.  */
44118 _ACEOF
44119 cat confdefs.h >>conftest.$ac_ext
44120 cat >>conftest.$ac_ext <<_ACEOF
44121 /* end confdefs.h.  */
44122 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44123    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44124 #define $ac_func innocuous_$ac_func
44125
44126 /* System header to define __stub macros and hopefully few prototypes,
44127     which can conflict with char $ac_func (); below.
44128     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44129     <limits.h> exists even on freestanding compilers.  */
44130
44131 #ifdef __STDC__
44132 # include <limits.h>
44133 #else
44134 # include <assert.h>
44135 #endif
44136
44137 #undef $ac_func
44138
44139 /* Override any gcc2 internal prototype to avoid an error.  */
44140 #ifdef __cplusplus
44141 extern "C"
44142 {
44143 #endif
44144 /* We use char because int might match the return type of a gcc2
44145    builtin and then its argument prototype would still apply.  */
44146 char $ac_func ();
44147 /* The GNU C library defines this for functions which it implements
44148     to always fail with ENOSYS.  Some functions are actually named
44149     something starting with __ and the normal name is an alias.  */
44150 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44151 choke me
44152 #else
44153 char (*f) () = $ac_func;
44154 #endif
44155 #ifdef __cplusplus
44156 }
44157 #endif
44158
44159 int
44160 main ()
44161 {
44162 return f != $ac_func;
44163   ;
44164   return 0;
44165 }
44166 _ACEOF
44167 rm -f conftest.$ac_objext conftest$ac_exeext
44168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44169   (eval $ac_link) 2>conftest.er1
44170   ac_status=$?
44171   grep -v '^ *+' conftest.er1 >conftest.err
44172   rm -f conftest.er1
44173   cat conftest.err >&5
44174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44175   (exit $ac_status); } &&
44176          { ac_try='test -z "$ac_c_werror_flag"
44177                          || test ! -s conftest.err'
44178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44179   (eval $ac_try) 2>&5
44180   ac_status=$?
44181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44182   (exit $ac_status); }; } &&
44183          { ac_try='test -s conftest$ac_exeext'
44184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44185   (eval $ac_try) 2>&5
44186   ac_status=$?
44187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44188   (exit $ac_status); }; }; then
44189   eval "$as_ac_var=yes"
44190 else
44191   echo "$as_me: failed program was:" >&5
44192 sed 's/^/| /' conftest.$ac_ext >&5
44193
44194 eval "$as_ac_var=no"
44195 fi
44196 rm -f conftest.err conftest.$ac_objext \
44197       conftest$ac_exeext conftest.$ac_ext
44198 fi
44199 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44200 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44201 if test `eval echo '${'$as_ac_var'}'` = yes; then
44202   cat >>confdefs.h <<_ACEOF
44203 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44204 _ACEOF
44205  ice_have_shmctl=yes
44206 fi
44207 done
44208
44209 if test "${ice_have_shmctl}" = yes; then
44210 echo "$as_me:$LINENO: checking for shmctl declaration in sys/types.h sys/ipc.h sys/shm.h" >&5
44211 echo $ECHO_N "checking for shmctl declaration in sys/types.h sys/ipc.h sys/shm.h... $ECHO_C" >&6
44212 if test "${ice_cv_have_shmctl_decl+set}" = set; then
44213   echo $ECHO_N "(cached) $ECHO_C" >&6
44214 else
44215
44216 ice_cv_have_shmctl_decl=no
44217 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
44218 ice_re_word='(^|[^a-zA-Z0-9_])'
44219 for header in sys/types.h sys/ipc.h sys/shm.h; do
44220 # Check for ordinary declaration
44221 cat >conftest.$ac_ext <<_ACEOF
44222 /* confdefs.h.  */
44223 _ACEOF
44224 cat confdefs.h >>conftest.$ac_ext
44225 cat >>conftest.$ac_ext <<_ACEOF
44226 /* end confdefs.h.  */
44227 #include <$header>
44228
44229 _ACEOF
44230 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44231   $EGREP "${ice_re_word}shmctl[         ]*\(" >/dev/null 2>&1; then
44232   ice_cv_have_shmctl_decl=yes
44233 fi
44234 rm -f conftest*
44235
44236 if test "$ice_cv_have_shmctl_decl" = yes; then
44237         break
44238 fi
44239 # Check for "fixed" declaration like "getpid _PARAMS((int))"
44240 cat >conftest.$ac_ext <<_ACEOF
44241 /* confdefs.h.  */
44242 _ACEOF
44243 cat confdefs.h >>conftest.$ac_ext
44244 cat >>conftest.$ac_ext <<_ACEOF
44245 /* end confdefs.h.  */
44246 #include <$header>
44247
44248 _ACEOF
44249 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44250   $EGREP "${ice_re_word}shmctl[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
44251   ice_cv_have_shmctl_decl=yes
44252 fi
44253 rm -f conftest*
44254
44255 if test "$ice_cv_have_shmctl_decl" = yes; then
44256         break
44257 fi
44258 done
44259
44260 fi
44261
44262 echo "$as_me:$LINENO: result: $ice_cv_have_shmctl_decl" >&5
44263 echo "${ECHO_T}$ice_cv_have_shmctl_decl" >&6
44264 if test "$ice_cv_have_shmctl_decl" = yes; then
44265
44266 cat >>confdefs.h <<_ACEOF
44267 #define HAVE_SHMCTL_DECL 1
44268 _ACEOF
44269
44270 fi
44271 fi
44272
44273
44274 ice_have_shmdt=no
44275
44276 for ac_func in shmdt
44277 do
44278 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44279 echo "$as_me:$LINENO: checking for $ac_func" >&5
44280 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44281 if eval "test \"\${$as_ac_var+set}\" = set"; then
44282   echo $ECHO_N "(cached) $ECHO_C" >&6
44283 else
44284   cat >conftest.$ac_ext <<_ACEOF
44285 /* confdefs.h.  */
44286 _ACEOF
44287 cat confdefs.h >>conftest.$ac_ext
44288 cat >>conftest.$ac_ext <<_ACEOF
44289 /* end confdefs.h.  */
44290 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44291    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44292 #define $ac_func innocuous_$ac_func
44293
44294 /* System header to define __stub macros and hopefully few prototypes,
44295     which can conflict with char $ac_func (); below.
44296     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44297     <limits.h> exists even on freestanding compilers.  */
44298
44299 #ifdef __STDC__
44300 # include <limits.h>
44301 #else
44302 # include <assert.h>
44303 #endif
44304
44305 #undef $ac_func
44306
44307 /* Override any gcc2 internal prototype to avoid an error.  */
44308 #ifdef __cplusplus
44309 extern "C"
44310 {
44311 #endif
44312 /* We use char because int might match the return type of a gcc2
44313    builtin and then its argument prototype would still apply.  */
44314 char $ac_func ();
44315 /* The GNU C library defines this for functions which it implements
44316     to always fail with ENOSYS.  Some functions are actually named
44317     something starting with __ and the normal name is an alias.  */
44318 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44319 choke me
44320 #else
44321 char (*f) () = $ac_func;
44322 #endif
44323 #ifdef __cplusplus
44324 }
44325 #endif
44326
44327 int
44328 main ()
44329 {
44330 return f != $ac_func;
44331   ;
44332   return 0;
44333 }
44334 _ACEOF
44335 rm -f conftest.$ac_objext conftest$ac_exeext
44336 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44337   (eval $ac_link) 2>conftest.er1
44338   ac_status=$?
44339   grep -v '^ *+' conftest.er1 >conftest.err
44340   rm -f conftest.er1
44341   cat conftest.err >&5
44342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44343   (exit $ac_status); } &&
44344          { ac_try='test -z "$ac_c_werror_flag"
44345                          || test ! -s conftest.err'
44346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44347   (eval $ac_try) 2>&5
44348   ac_status=$?
44349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44350   (exit $ac_status); }; } &&
44351          { ac_try='test -s conftest$ac_exeext'
44352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44353   (eval $ac_try) 2>&5
44354   ac_status=$?
44355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44356   (exit $ac_status); }; }; then
44357   eval "$as_ac_var=yes"
44358 else
44359   echo "$as_me: failed program was:" >&5
44360 sed 's/^/| /' conftest.$ac_ext >&5
44361
44362 eval "$as_ac_var=no"
44363 fi
44364 rm -f conftest.err conftest.$ac_objext \
44365       conftest$ac_exeext conftest.$ac_ext
44366 fi
44367 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44368 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44369 if test `eval echo '${'$as_ac_var'}'` = yes; then
44370   cat >>confdefs.h <<_ACEOF
44371 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44372 _ACEOF
44373  ice_have_shmdt=yes
44374 fi
44375 done
44376
44377 if test "${ice_have_shmdt}" = yes; then
44378 echo "$as_me:$LINENO: checking for shmdt declaration in sys/types.h sys/ipc.h sys/shm.h" >&5
44379 echo $ECHO_N "checking for shmdt declaration in sys/types.h sys/ipc.h sys/shm.h... $ECHO_C" >&6
44380 if test "${ice_cv_have_shmdt_decl+set}" = set; then
44381   echo $ECHO_N "(cached) $ECHO_C" >&6
44382 else
44383
44384 ice_cv_have_shmdt_decl=no
44385 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
44386 ice_re_word='(^|[^a-zA-Z0-9_])'
44387 for header in sys/types.h sys/ipc.h sys/shm.h; do
44388 # Check for ordinary declaration
44389 cat >conftest.$ac_ext <<_ACEOF
44390 /* confdefs.h.  */
44391 _ACEOF
44392 cat confdefs.h >>conftest.$ac_ext
44393 cat >>conftest.$ac_ext <<_ACEOF
44394 /* end confdefs.h.  */
44395 #include <$header>
44396
44397 _ACEOF
44398 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44399   $EGREP "${ice_re_word}shmdt[  ]*\(" >/dev/null 2>&1; then
44400   ice_cv_have_shmdt_decl=yes
44401 fi
44402 rm -f conftest*
44403
44404 if test "$ice_cv_have_shmdt_decl" = yes; then
44405         break
44406 fi
44407 # Check for "fixed" declaration like "getpid _PARAMS((int))"
44408 cat >conftest.$ac_ext <<_ACEOF
44409 /* confdefs.h.  */
44410 _ACEOF
44411 cat confdefs.h >>conftest.$ac_ext
44412 cat >>conftest.$ac_ext <<_ACEOF
44413 /* end confdefs.h.  */
44414 #include <$header>
44415
44416 _ACEOF
44417 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44418   $EGREP "${ice_re_word}shmdt[  ]*$ice_re_params\(\(" >/dev/null 2>&1; then
44419   ice_cv_have_shmdt_decl=yes
44420 fi
44421 rm -f conftest*
44422
44423 if test "$ice_cv_have_shmdt_decl" = yes; then
44424         break
44425 fi
44426 done
44427
44428 fi
44429
44430 echo "$as_me:$LINENO: result: $ice_cv_have_shmdt_decl" >&5
44431 echo "${ECHO_T}$ice_cv_have_shmdt_decl" >&6
44432 if test "$ice_cv_have_shmdt_decl" = yes; then
44433
44434 cat >>confdefs.h <<_ACEOF
44435 #define HAVE_SHMDT_DECL 1
44436 _ACEOF
44437
44438 fi
44439 fi
44440
44441
44442 ice_have_shmget=no
44443
44444 for ac_func in shmget
44445 do
44446 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44447 echo "$as_me:$LINENO: checking for $ac_func" >&5
44448 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44449 if eval "test \"\${$as_ac_var+set}\" = set"; then
44450   echo $ECHO_N "(cached) $ECHO_C" >&6
44451 else
44452   cat >conftest.$ac_ext <<_ACEOF
44453 /* confdefs.h.  */
44454 _ACEOF
44455 cat confdefs.h >>conftest.$ac_ext
44456 cat >>conftest.$ac_ext <<_ACEOF
44457 /* end confdefs.h.  */
44458 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44459    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44460 #define $ac_func innocuous_$ac_func
44461
44462 /* System header to define __stub macros and hopefully few prototypes,
44463     which can conflict with char $ac_func (); below.
44464     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44465     <limits.h> exists even on freestanding compilers.  */
44466
44467 #ifdef __STDC__
44468 # include <limits.h>
44469 #else
44470 # include <assert.h>
44471 #endif
44472
44473 #undef $ac_func
44474
44475 /* Override any gcc2 internal prototype to avoid an error.  */
44476 #ifdef __cplusplus
44477 extern "C"
44478 {
44479 #endif
44480 /* We use char because int might match the return type of a gcc2
44481    builtin and then its argument prototype would still apply.  */
44482 char $ac_func ();
44483 /* The GNU C library defines this for functions which it implements
44484     to always fail with ENOSYS.  Some functions are actually named
44485     something starting with __ and the normal name is an alias.  */
44486 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44487 choke me
44488 #else
44489 char (*f) () = $ac_func;
44490 #endif
44491 #ifdef __cplusplus
44492 }
44493 #endif
44494
44495 int
44496 main ()
44497 {
44498 return f != $ac_func;
44499   ;
44500   return 0;
44501 }
44502 _ACEOF
44503 rm -f conftest.$ac_objext conftest$ac_exeext
44504 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44505   (eval $ac_link) 2>conftest.er1
44506   ac_status=$?
44507   grep -v '^ *+' conftest.er1 >conftest.err
44508   rm -f conftest.er1
44509   cat conftest.err >&5
44510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44511   (exit $ac_status); } &&
44512          { ac_try='test -z "$ac_c_werror_flag"
44513                          || test ! -s conftest.err'
44514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44515   (eval $ac_try) 2>&5
44516   ac_status=$?
44517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44518   (exit $ac_status); }; } &&
44519          { ac_try='test -s conftest$ac_exeext'
44520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44521   (eval $ac_try) 2>&5
44522   ac_status=$?
44523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44524   (exit $ac_status); }; }; then
44525   eval "$as_ac_var=yes"
44526 else
44527   echo "$as_me: failed program was:" >&5
44528 sed 's/^/| /' conftest.$ac_ext >&5
44529
44530 eval "$as_ac_var=no"
44531 fi
44532 rm -f conftest.err conftest.$ac_objext \
44533       conftest$ac_exeext conftest.$ac_ext
44534 fi
44535 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44536 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44537 if test `eval echo '${'$as_ac_var'}'` = yes; then
44538   cat >>confdefs.h <<_ACEOF
44539 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44540 _ACEOF
44541  ice_have_shmget=yes
44542 fi
44543 done
44544
44545 if test "${ice_have_shmget}" = yes; then
44546 echo "$as_me:$LINENO: checking for shmget declaration in sys/types.h sys/ipc.h sys/shm.h" >&5
44547 echo $ECHO_N "checking for shmget declaration in sys/types.h sys/ipc.h sys/shm.h... $ECHO_C" >&6
44548 if test "${ice_cv_have_shmget_decl+set}" = set; then
44549   echo $ECHO_N "(cached) $ECHO_C" >&6
44550 else
44551
44552 ice_cv_have_shmget_decl=no
44553 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
44554 ice_re_word='(^|[^a-zA-Z0-9_])'
44555 for header in sys/types.h sys/ipc.h sys/shm.h; do
44556 # Check for ordinary declaration
44557 cat >conftest.$ac_ext <<_ACEOF
44558 /* confdefs.h.  */
44559 _ACEOF
44560 cat confdefs.h >>conftest.$ac_ext
44561 cat >>conftest.$ac_ext <<_ACEOF
44562 /* end confdefs.h.  */
44563 #include <$header>
44564
44565 _ACEOF
44566 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44567   $EGREP "${ice_re_word}shmget[         ]*\(" >/dev/null 2>&1; then
44568   ice_cv_have_shmget_decl=yes
44569 fi
44570 rm -f conftest*
44571
44572 if test "$ice_cv_have_shmget_decl" = yes; then
44573         break
44574 fi
44575 # Check for "fixed" declaration like "getpid _PARAMS((int))"
44576 cat >conftest.$ac_ext <<_ACEOF
44577 /* confdefs.h.  */
44578 _ACEOF
44579 cat confdefs.h >>conftest.$ac_ext
44580 cat >>conftest.$ac_ext <<_ACEOF
44581 /* end confdefs.h.  */
44582 #include <$header>
44583
44584 _ACEOF
44585 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44586   $EGREP "${ice_re_word}shmget[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
44587   ice_cv_have_shmget_decl=yes
44588 fi
44589 rm -f conftest*
44590
44591 if test "$ice_cv_have_shmget_decl" = yes; then
44592         break
44593 fi
44594 done
44595
44596 fi
44597
44598 echo "$as_me:$LINENO: result: $ice_cv_have_shmget_decl" >&5
44599 echo "${ECHO_T}$ice_cv_have_shmget_decl" >&6
44600 if test "$ice_cv_have_shmget_decl" = yes; then
44601
44602 cat >>confdefs.h <<_ACEOF
44603 #define HAVE_SHMGET_DECL 1
44604 _ACEOF
44605
44606 fi
44607 fi
44608
44609
44610 if test "$ac_cv_func_mmap_fixed_mapped" != yes; then
44611     case "$FORCE_MMAP" in
44612     n | no)
44613         if test "$ac_cv_func_shmget" != yes; then
44614             { echo "$as_me:$LINENO: WARNING: *** Neither shmget() nor mmap() found!" >&5
44615 echo "$as_me: WARNING: *** Neither shmget() nor mmap() found!" >&2;}
44616             { echo "$as_me:$LINENO: WARNING: *** This system will not support the Amanda server." >&5
44617 echo "$as_me: WARNING: *** This system will not support the Amanda server." >&2;}
44618             NO_SERVER_MODE=true
44619         fi
44620       ;;
44621     y | ye | yes)
44622         { echo "$as_me:$LINENO: WARNING: *** --with-mmap used on a system with no mmap() support!" >&5
44623 echo "$as_me: WARNING: *** --with-mmap used on a system with no mmap() support!" >&2;}
44624         { echo "$as_me:$LINENO: WARNING: *** This system will not support the Amanda server." >&5
44625 echo "$as_me: WARNING: *** This system will not support the Amanda server." >&2;}
44626         NO_SERVER_MODE=true
44627       ;;
44628     esac
44629 fi
44630
44631
44632 ice_have_shquote=no
44633
44634 for ac_func in shquote
44635 do
44636 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44637 echo "$as_me:$LINENO: checking for $ac_func" >&5
44638 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44639 if eval "test \"\${$as_ac_var+set}\" = set"; then
44640   echo $ECHO_N "(cached) $ECHO_C" >&6
44641 else
44642   cat >conftest.$ac_ext <<_ACEOF
44643 /* confdefs.h.  */
44644 _ACEOF
44645 cat confdefs.h >>conftest.$ac_ext
44646 cat >>conftest.$ac_ext <<_ACEOF
44647 /* end confdefs.h.  */
44648 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44649    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44650 #define $ac_func innocuous_$ac_func
44651
44652 /* System header to define __stub macros and hopefully few prototypes,
44653     which can conflict with char $ac_func (); below.
44654     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44655     <limits.h> exists even on freestanding compilers.  */
44656
44657 #ifdef __STDC__
44658 # include <limits.h>
44659 #else
44660 # include <assert.h>
44661 #endif
44662
44663 #undef $ac_func
44664
44665 /* Override any gcc2 internal prototype to avoid an error.  */
44666 #ifdef __cplusplus
44667 extern "C"
44668 {
44669 #endif
44670 /* We use char because int might match the return type of a gcc2
44671    builtin and then its argument prototype would still apply.  */
44672 char $ac_func ();
44673 /* The GNU C library defines this for functions which it implements
44674     to always fail with ENOSYS.  Some functions are actually named
44675     something starting with __ and the normal name is an alias.  */
44676 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44677 choke me
44678 #else
44679 char (*f) () = $ac_func;
44680 #endif
44681 #ifdef __cplusplus
44682 }
44683 #endif
44684
44685 int
44686 main ()
44687 {
44688 return f != $ac_func;
44689   ;
44690   return 0;
44691 }
44692 _ACEOF
44693 rm -f conftest.$ac_objext conftest$ac_exeext
44694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44695   (eval $ac_link) 2>conftest.er1
44696   ac_status=$?
44697   grep -v '^ *+' conftest.er1 >conftest.err
44698   rm -f conftest.er1
44699   cat conftest.err >&5
44700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44701   (exit $ac_status); } &&
44702          { ac_try='test -z "$ac_c_werror_flag"
44703                          || test ! -s conftest.err'
44704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44705   (eval $ac_try) 2>&5
44706   ac_status=$?
44707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44708   (exit $ac_status); }; } &&
44709          { ac_try='test -s conftest$ac_exeext'
44710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44711   (eval $ac_try) 2>&5
44712   ac_status=$?
44713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44714   (exit $ac_status); }; }; then
44715   eval "$as_ac_var=yes"
44716 else
44717   echo "$as_me: failed program was:" >&5
44718 sed 's/^/| /' conftest.$ac_ext >&5
44719
44720 eval "$as_ac_var=no"
44721 fi
44722 rm -f conftest.err conftest.$ac_objext \
44723       conftest$ac_exeext conftest.$ac_ext
44724 fi
44725 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44726 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44727 if test `eval echo '${'$as_ac_var'}'` = yes; then
44728   cat >>confdefs.h <<_ACEOF
44729 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44730 _ACEOF
44731  ice_have_shquote=yes
44732 fi
44733 done
44734
44735 if test "${ice_have_shquote}" = yes; then
44736 echo "$as_me:$LINENO: checking for shquote declaration in stdlib.h" >&5
44737 echo $ECHO_N "checking for shquote declaration in stdlib.h... $ECHO_C" >&6
44738 if test "${ice_cv_have_shquote_decl+set}" = set; then
44739   echo $ECHO_N "(cached) $ECHO_C" >&6
44740 else
44741
44742 ice_cv_have_shquote_decl=no
44743 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
44744 ice_re_word='(^|[^a-zA-Z0-9_])'
44745 for header in stdlib.h; do
44746 # Check for ordinary declaration
44747 cat >conftest.$ac_ext <<_ACEOF
44748 /* confdefs.h.  */
44749 _ACEOF
44750 cat confdefs.h >>conftest.$ac_ext
44751 cat >>conftest.$ac_ext <<_ACEOF
44752 /* end confdefs.h.  */
44753 #include <$header>
44754
44755 _ACEOF
44756 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44757   $EGREP "${ice_re_word}shquote[        ]*\(" >/dev/null 2>&1; then
44758   ice_cv_have_shquote_decl=yes
44759 fi
44760 rm -f conftest*
44761
44762 if test "$ice_cv_have_shquote_decl" = yes; then
44763         break
44764 fi
44765 # Check for "fixed" declaration like "getpid _PARAMS((int))"
44766 cat >conftest.$ac_ext <<_ACEOF
44767 /* confdefs.h.  */
44768 _ACEOF
44769 cat confdefs.h >>conftest.$ac_ext
44770 cat >>conftest.$ac_ext <<_ACEOF
44771 /* end confdefs.h.  */
44772 #include <$header>
44773
44774 _ACEOF
44775 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44776   $EGREP "${ice_re_word}shquote[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
44777   ice_cv_have_shquote_decl=yes
44778 fi
44779 rm -f conftest*
44780
44781 if test "$ice_cv_have_shquote_decl" = yes; then
44782         break
44783 fi
44784 done
44785
44786 fi
44787
44788 echo "$as_me:$LINENO: result: $ice_cv_have_shquote_decl" >&5
44789 echo "${ECHO_T}$ice_cv_have_shquote_decl" >&6
44790 if test "$ice_cv_have_shquote_decl" = yes; then
44791
44792 cat >>confdefs.h <<_ACEOF
44793 #define HAVE_SHQUOTE_DECL 1
44794 _ACEOF
44795
44796 fi
44797 fi
44798
44799
44800
44801 ice_have_snprintf=no
44802
44803 for ac_func in snprintf
44804 do
44805 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44806 echo "$as_me:$LINENO: checking for $ac_func" >&5
44807 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44808 if eval "test \"\${$as_ac_var+set}\" = set"; then
44809   echo $ECHO_N "(cached) $ECHO_C" >&6
44810 else
44811   cat >conftest.$ac_ext <<_ACEOF
44812 /* confdefs.h.  */
44813 _ACEOF
44814 cat confdefs.h >>conftest.$ac_ext
44815 cat >>conftest.$ac_ext <<_ACEOF
44816 /* end confdefs.h.  */
44817 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44818    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44819 #define $ac_func innocuous_$ac_func
44820
44821 /* System header to define __stub macros and hopefully few prototypes,
44822     which can conflict with char $ac_func (); below.
44823     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44824     <limits.h> exists even on freestanding compilers.  */
44825
44826 #ifdef __STDC__
44827 # include <limits.h>
44828 #else
44829 # include <assert.h>
44830 #endif
44831
44832 #undef $ac_func
44833
44834 /* Override any gcc2 internal prototype to avoid an error.  */
44835 #ifdef __cplusplus
44836 extern "C"
44837 {
44838 #endif
44839 /* We use char because int might match the return type of a gcc2
44840    builtin and then its argument prototype would still apply.  */
44841 char $ac_func ();
44842 /* The GNU C library defines this for functions which it implements
44843     to always fail with ENOSYS.  Some functions are actually named
44844     something starting with __ and the normal name is an alias.  */
44845 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44846 choke me
44847 #else
44848 char (*f) () = $ac_func;
44849 #endif
44850 #ifdef __cplusplus
44851 }
44852 #endif
44853
44854 int
44855 main ()
44856 {
44857 return f != $ac_func;
44858   ;
44859   return 0;
44860 }
44861 _ACEOF
44862 rm -f conftest.$ac_objext conftest$ac_exeext
44863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44864   (eval $ac_link) 2>conftest.er1
44865   ac_status=$?
44866   grep -v '^ *+' conftest.er1 >conftest.err
44867   rm -f conftest.er1
44868   cat conftest.err >&5
44869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44870   (exit $ac_status); } &&
44871          { ac_try='test -z "$ac_c_werror_flag"
44872                          || test ! -s conftest.err'
44873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44874   (eval $ac_try) 2>&5
44875   ac_status=$?
44876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44877   (exit $ac_status); }; } &&
44878          { ac_try='test -s conftest$ac_exeext'
44879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44880   (eval $ac_try) 2>&5
44881   ac_status=$?
44882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44883   (exit $ac_status); }; }; then
44884   eval "$as_ac_var=yes"
44885 else
44886   echo "$as_me: failed program was:" >&5
44887 sed 's/^/| /' conftest.$ac_ext >&5
44888
44889 eval "$as_ac_var=no"
44890 fi
44891 rm -f conftest.err conftest.$ac_objext \
44892       conftest$ac_exeext conftest.$ac_ext
44893 fi
44894 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44895 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44896 if test `eval echo '${'$as_ac_var'}'` = yes; then
44897   cat >>confdefs.h <<_ACEOF
44898 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44899 _ACEOF
44900  ice_have_snprintf=yes
44901 fi
44902 done
44903
44904 if test "${ice_have_snprintf}" = yes; then
44905 echo "$as_me:$LINENO: checking for snprintf declaration in stdio.h" >&5
44906 echo $ECHO_N "checking for snprintf declaration in stdio.h... $ECHO_C" >&6
44907 if test "${ice_cv_have_snprintf_decl+set}" = set; then
44908   echo $ECHO_N "(cached) $ECHO_C" >&6
44909 else
44910
44911 ice_cv_have_snprintf_decl=no
44912 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
44913 ice_re_word='(^|[^a-zA-Z0-9_])'
44914 for header in stdio.h; do
44915 # Check for ordinary declaration
44916 cat >conftest.$ac_ext <<_ACEOF
44917 /* confdefs.h.  */
44918 _ACEOF
44919 cat confdefs.h >>conftest.$ac_ext
44920 cat >>conftest.$ac_ext <<_ACEOF
44921 /* end confdefs.h.  */
44922 #include <$header>
44923
44924 _ACEOF
44925 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44926   $EGREP "${ice_re_word}snprintf[       ]*\(" >/dev/null 2>&1; then
44927   ice_cv_have_snprintf_decl=yes
44928 fi
44929 rm -f conftest*
44930
44931 if test "$ice_cv_have_snprintf_decl" = yes; then
44932         break
44933 fi
44934 # Check for "fixed" declaration like "getpid _PARAMS((int))"
44935 cat >conftest.$ac_ext <<_ACEOF
44936 /* confdefs.h.  */
44937 _ACEOF
44938 cat confdefs.h >>conftest.$ac_ext
44939 cat >>conftest.$ac_ext <<_ACEOF
44940 /* end confdefs.h.  */
44941 #include <$header>
44942
44943 _ACEOF
44944 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44945   $EGREP "${ice_re_word}snprintf[       ]*$ice_re_params\(\(" >/dev/null 2>&1; then
44946   ice_cv_have_snprintf_decl=yes
44947 fi
44948 rm -f conftest*
44949
44950 if test "$ice_cv_have_snprintf_decl" = yes; then
44951         break
44952 fi
44953 done
44954
44955 fi
44956
44957 echo "$as_me:$LINENO: result: $ice_cv_have_snprintf_decl" >&5
44958 echo "${ECHO_T}$ice_cv_have_snprintf_decl" >&6
44959 if test "$ice_cv_have_snprintf_decl" = yes; then
44960
44961 cat >>confdefs.h <<_ACEOF
44962 #define HAVE_SNPRINTF_DECL 1
44963 _ACEOF
44964
44965 fi
44966 fi
44967
44968
44969 ice_have_vsnprintf=no
44970
44971 for ac_func in vsnprintf
44972 do
44973 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44974 echo "$as_me:$LINENO: checking for $ac_func" >&5
44975 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44976 if eval "test \"\${$as_ac_var+set}\" = set"; then
44977   echo $ECHO_N "(cached) $ECHO_C" >&6
44978 else
44979   cat >conftest.$ac_ext <<_ACEOF
44980 /* confdefs.h.  */
44981 _ACEOF
44982 cat confdefs.h >>conftest.$ac_ext
44983 cat >>conftest.$ac_ext <<_ACEOF
44984 /* end confdefs.h.  */
44985 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44986    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44987 #define $ac_func innocuous_$ac_func
44988
44989 /* System header to define __stub macros and hopefully few prototypes,
44990     which can conflict with char $ac_func (); below.
44991     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44992     <limits.h> exists even on freestanding compilers.  */
44993
44994 #ifdef __STDC__
44995 # include <limits.h>
44996 #else
44997 # include <assert.h>
44998 #endif
44999
45000 #undef $ac_func
45001
45002 /* Override any gcc2 internal prototype to avoid an error.  */
45003 #ifdef __cplusplus
45004 extern "C"
45005 {
45006 #endif
45007 /* We use char because int might match the return type of a gcc2
45008    builtin and then its argument prototype would still apply.  */
45009 char $ac_func ();
45010 /* The GNU C library defines this for functions which it implements
45011     to always fail with ENOSYS.  Some functions are actually named
45012     something starting with __ and the normal name is an alias.  */
45013 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45014 choke me
45015 #else
45016 char (*f) () = $ac_func;
45017 #endif
45018 #ifdef __cplusplus
45019 }
45020 #endif
45021
45022 int
45023 main ()
45024 {
45025 return f != $ac_func;
45026   ;
45027   return 0;
45028 }
45029 _ACEOF
45030 rm -f conftest.$ac_objext conftest$ac_exeext
45031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45032   (eval $ac_link) 2>conftest.er1
45033   ac_status=$?
45034   grep -v '^ *+' conftest.er1 >conftest.err
45035   rm -f conftest.er1
45036   cat conftest.err >&5
45037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45038   (exit $ac_status); } &&
45039          { ac_try='test -z "$ac_c_werror_flag"
45040                          || test ! -s conftest.err'
45041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45042   (eval $ac_try) 2>&5
45043   ac_status=$?
45044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45045   (exit $ac_status); }; } &&
45046          { ac_try='test -s conftest$ac_exeext'
45047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45048   (eval $ac_try) 2>&5
45049   ac_status=$?
45050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45051   (exit $ac_status); }; }; then
45052   eval "$as_ac_var=yes"
45053 else
45054   echo "$as_me: failed program was:" >&5
45055 sed 's/^/| /' conftest.$ac_ext >&5
45056
45057 eval "$as_ac_var=no"
45058 fi
45059 rm -f conftest.err conftest.$ac_objext \
45060       conftest$ac_exeext conftest.$ac_ext
45061 fi
45062 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45063 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45064 if test `eval echo '${'$as_ac_var'}'` = yes; then
45065   cat >>confdefs.h <<_ACEOF
45066 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45067 _ACEOF
45068  ice_have_vsnprintf=yes
45069 fi
45070 done
45071
45072 if test "${ice_have_vsnprintf}" = yes; then
45073 echo "$as_me:$LINENO: checking for vsnprintf declaration in stdio.h" >&5
45074 echo $ECHO_N "checking for vsnprintf declaration in stdio.h... $ECHO_C" >&6
45075 if test "${ice_cv_have_vsnprintf_decl+set}" = set; then
45076   echo $ECHO_N "(cached) $ECHO_C" >&6
45077 else
45078
45079 ice_cv_have_vsnprintf_decl=no
45080 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
45081 ice_re_word='(^|[^a-zA-Z0-9_])'
45082 for header in stdio.h; do
45083 # Check for ordinary declaration
45084 cat >conftest.$ac_ext <<_ACEOF
45085 /* confdefs.h.  */
45086 _ACEOF
45087 cat confdefs.h >>conftest.$ac_ext
45088 cat >>conftest.$ac_ext <<_ACEOF
45089 /* end confdefs.h.  */
45090 #include <$header>
45091
45092 _ACEOF
45093 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45094   $EGREP "${ice_re_word}vsnprintf[      ]*\(" >/dev/null 2>&1; then
45095   ice_cv_have_vsnprintf_decl=yes
45096 fi
45097 rm -f conftest*
45098
45099 if test "$ice_cv_have_vsnprintf_decl" = yes; then
45100         break
45101 fi
45102 # Check for "fixed" declaration like "getpid _PARAMS((int))"
45103 cat >conftest.$ac_ext <<_ACEOF
45104 /* confdefs.h.  */
45105 _ACEOF
45106 cat confdefs.h >>conftest.$ac_ext
45107 cat >>conftest.$ac_ext <<_ACEOF
45108 /* end confdefs.h.  */
45109 #include <$header>
45110
45111 _ACEOF
45112 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45113   $EGREP "${ice_re_word}vsnprintf[      ]*$ice_re_params\(\(" >/dev/null 2>&1; then
45114   ice_cv_have_vsnprintf_decl=yes
45115 fi
45116 rm -f conftest*
45117
45118 if test "$ice_cv_have_vsnprintf_decl" = yes; then
45119         break
45120 fi
45121 done
45122
45123 fi
45124
45125 echo "$as_me:$LINENO: result: $ice_cv_have_vsnprintf_decl" >&5
45126 echo "${ECHO_T}$ice_cv_have_vsnprintf_decl" >&6
45127 if test "$ice_cv_have_vsnprintf_decl" = yes; then
45128
45129 cat >>confdefs.h <<_ACEOF
45130 #define HAVE_VSNPRINTF_DECL 1
45131 _ACEOF
45132
45133 fi
45134 fi
45135
45136 if test x"$ice_have_snprintf" != x"yes" ||
45137    test x"$ice_have_vsnprintf" != x"yes"; then
45138     case $LIBOBJS in
45139     "snprintf.$ac_objext"   | \
45140   *" snprintf.$ac_objext"   | \
45141     "snprintf.$ac_objext "* | \
45142   *" snprintf.$ac_objext "* ) ;;
45143   *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" ;;
45144 esac
45145
45146     if false; then :
45147
45148 for ac_func in snprintf
45149 do
45150 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45151 echo "$as_me:$LINENO: checking for $ac_func" >&5
45152 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45153 if eval "test \"\${$as_ac_var+set}\" = set"; then
45154   echo $ECHO_N "(cached) $ECHO_C" >&6
45155 else
45156   cat >conftest.$ac_ext <<_ACEOF
45157 /* confdefs.h.  */
45158 _ACEOF
45159 cat confdefs.h >>conftest.$ac_ext
45160 cat >>conftest.$ac_ext <<_ACEOF
45161 /* end confdefs.h.  */
45162 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45163    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45164 #define $ac_func innocuous_$ac_func
45165
45166 /* System header to define __stub macros and hopefully few prototypes,
45167     which can conflict with char $ac_func (); below.
45168     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45169     <limits.h> exists even on freestanding compilers.  */
45170
45171 #ifdef __STDC__
45172 # include <limits.h>
45173 #else
45174 # include <assert.h>
45175 #endif
45176
45177 #undef $ac_func
45178
45179 /* Override any gcc2 internal prototype to avoid an error.  */
45180 #ifdef __cplusplus
45181 extern "C"
45182 {
45183 #endif
45184 /* We use char because int might match the return type of a gcc2
45185    builtin and then its argument prototype would still apply.  */
45186 char $ac_func ();
45187 /* The GNU C library defines this for functions which it implements
45188     to always fail with ENOSYS.  Some functions are actually named
45189     something starting with __ and the normal name is an alias.  */
45190 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45191 choke me
45192 #else
45193 char (*f) () = $ac_func;
45194 #endif
45195 #ifdef __cplusplus
45196 }
45197 #endif
45198
45199 int
45200 main ()
45201 {
45202 return f != $ac_func;
45203   ;
45204   return 0;
45205 }
45206 _ACEOF
45207 rm -f conftest.$ac_objext conftest$ac_exeext
45208 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45209   (eval $ac_link) 2>conftest.er1
45210   ac_status=$?
45211   grep -v '^ *+' conftest.er1 >conftest.err
45212   rm -f conftest.er1
45213   cat conftest.err >&5
45214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45215   (exit $ac_status); } &&
45216          { ac_try='test -z "$ac_c_werror_flag"
45217                          || test ! -s conftest.err'
45218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45219   (eval $ac_try) 2>&5
45220   ac_status=$?
45221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45222   (exit $ac_status); }; } &&
45223          { ac_try='test -s conftest$ac_exeext'
45224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45225   (eval $ac_try) 2>&5
45226   ac_status=$?
45227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45228   (exit $ac_status); }; }; then
45229   eval "$as_ac_var=yes"
45230 else
45231   echo "$as_me: failed program was:" >&5
45232 sed 's/^/| /' conftest.$ac_ext >&5
45233
45234 eval "$as_ac_var=no"
45235 fi
45236 rm -f conftest.err conftest.$ac_objext \
45237       conftest$ac_exeext conftest.$ac_ext
45238 fi
45239 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45240 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45241 if test `eval echo '${'$as_ac_var'}'` = yes; then
45242   cat >>confdefs.h <<_ACEOF
45243 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45244 _ACEOF
45245
45246 else
45247   case $LIBOBJS in
45248     "$ac_func.$ac_objext"   | \
45249   *" $ac_func.$ac_objext"   | \
45250     "$ac_func.$ac_objext "* | \
45251   *" $ac_func.$ac_objext "* ) ;;
45252   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
45253 esac
45254
45255 fi
45256 done
45257
45258
45259     fi
45260 fi
45261
45262
45263
45264
45265 for ac_func in sigaction sigemptyset sigvec
45266 do
45267 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45268 echo "$as_me:$LINENO: checking for $ac_func" >&5
45269 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45270 if eval "test \"\${$as_ac_var+set}\" = set"; then
45271   echo $ECHO_N "(cached) $ECHO_C" >&6
45272 else
45273   cat >conftest.$ac_ext <<_ACEOF
45274 /* confdefs.h.  */
45275 _ACEOF
45276 cat confdefs.h >>conftest.$ac_ext
45277 cat >>conftest.$ac_ext <<_ACEOF
45278 /* end confdefs.h.  */
45279 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45280    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45281 #define $ac_func innocuous_$ac_func
45282
45283 /* System header to define __stub macros and hopefully few prototypes,
45284     which can conflict with char $ac_func (); below.
45285     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45286     <limits.h> exists even on freestanding compilers.  */
45287
45288 #ifdef __STDC__
45289 # include <limits.h>
45290 #else
45291 # include <assert.h>
45292 #endif
45293
45294 #undef $ac_func
45295
45296 /* Override any gcc2 internal prototype to avoid an error.  */
45297 #ifdef __cplusplus
45298 extern "C"
45299 {
45300 #endif
45301 /* We use char because int might match the return type of a gcc2
45302    builtin and then its argument prototype would still apply.  */
45303 char $ac_func ();
45304 /* The GNU C library defines this for functions which it implements
45305     to always fail with ENOSYS.  Some functions are actually named
45306     something starting with __ and the normal name is an alias.  */
45307 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45308 choke me
45309 #else
45310 char (*f) () = $ac_func;
45311 #endif
45312 #ifdef __cplusplus
45313 }
45314 #endif
45315
45316 int
45317 main ()
45318 {
45319 return f != $ac_func;
45320   ;
45321   return 0;
45322 }
45323 _ACEOF
45324 rm -f conftest.$ac_objext conftest$ac_exeext
45325 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45326   (eval $ac_link) 2>conftest.er1
45327   ac_status=$?
45328   grep -v '^ *+' conftest.er1 >conftest.err
45329   rm -f conftest.er1
45330   cat conftest.err >&5
45331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45332   (exit $ac_status); } &&
45333          { ac_try='test -z "$ac_c_werror_flag"
45334                          || test ! -s conftest.err'
45335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45336   (eval $ac_try) 2>&5
45337   ac_status=$?
45338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45339   (exit $ac_status); }; } &&
45340          { ac_try='test -s conftest$ac_exeext'
45341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45342   (eval $ac_try) 2>&5
45343   ac_status=$?
45344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45345   (exit $ac_status); }; }; then
45346   eval "$as_ac_var=yes"
45347 else
45348   echo "$as_me: failed program was:" >&5
45349 sed 's/^/| /' conftest.$ac_ext >&5
45350
45351 eval "$as_ac_var=no"
45352 fi
45353 rm -f conftest.err conftest.$ac_objext \
45354       conftest$ac_exeext conftest.$ac_ext
45355 fi
45356 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45357 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45358 if test `eval echo '${'$as_ac_var'}'` = yes; then
45359   cat >>confdefs.h <<_ACEOF
45360 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45361 _ACEOF
45362
45363 fi
45364 done
45365
45366
45367 ice_have_socket=no
45368
45369 for ac_func in socket
45370 do
45371 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45372 echo "$as_me:$LINENO: checking for $ac_func" >&5
45373 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45374 if eval "test \"\${$as_ac_var+set}\" = set"; then
45375   echo $ECHO_N "(cached) $ECHO_C" >&6
45376 else
45377   cat >conftest.$ac_ext <<_ACEOF
45378 /* confdefs.h.  */
45379 _ACEOF
45380 cat confdefs.h >>conftest.$ac_ext
45381 cat >>conftest.$ac_ext <<_ACEOF
45382 /* end confdefs.h.  */
45383 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45384    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45385 #define $ac_func innocuous_$ac_func
45386
45387 /* System header to define __stub macros and hopefully few prototypes,
45388     which can conflict with char $ac_func (); below.
45389     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45390     <limits.h> exists even on freestanding compilers.  */
45391
45392 #ifdef __STDC__
45393 # include <limits.h>
45394 #else
45395 # include <assert.h>
45396 #endif
45397
45398 #undef $ac_func
45399
45400 /* Override any gcc2 internal prototype to avoid an error.  */
45401 #ifdef __cplusplus
45402 extern "C"
45403 {
45404 #endif
45405 /* We use char because int might match the return type of a gcc2
45406    builtin and then its argument prototype would still apply.  */
45407 char $ac_func ();
45408 /* The GNU C library defines this for functions which it implements
45409     to always fail with ENOSYS.  Some functions are actually named
45410     something starting with __ and the normal name is an alias.  */
45411 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45412 choke me
45413 #else
45414 char (*f) () = $ac_func;
45415 #endif
45416 #ifdef __cplusplus
45417 }
45418 #endif
45419
45420 int
45421 main ()
45422 {
45423 return f != $ac_func;
45424   ;
45425   return 0;
45426 }
45427 _ACEOF
45428 rm -f conftest.$ac_objext conftest$ac_exeext
45429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45430   (eval $ac_link) 2>conftest.er1
45431   ac_status=$?
45432   grep -v '^ *+' conftest.er1 >conftest.err
45433   rm -f conftest.er1
45434   cat conftest.err >&5
45435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45436   (exit $ac_status); } &&
45437          { ac_try='test -z "$ac_c_werror_flag"
45438                          || test ! -s conftest.err'
45439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45440   (eval $ac_try) 2>&5
45441   ac_status=$?
45442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45443   (exit $ac_status); }; } &&
45444          { ac_try='test -s conftest$ac_exeext'
45445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45446   (eval $ac_try) 2>&5
45447   ac_status=$?
45448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45449   (exit $ac_status); }; }; then
45450   eval "$as_ac_var=yes"
45451 else
45452   echo "$as_me: failed program was:" >&5
45453 sed 's/^/| /' conftest.$ac_ext >&5
45454
45455 eval "$as_ac_var=no"
45456 fi
45457 rm -f conftest.err conftest.$ac_objext \
45458       conftest$ac_exeext conftest.$ac_ext
45459 fi
45460 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45461 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45462 if test `eval echo '${'$as_ac_var'}'` = yes; then
45463   cat >>confdefs.h <<_ACEOF
45464 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45465 _ACEOF
45466  ice_have_socket=yes
45467 fi
45468 done
45469
45470 if test "${ice_have_socket}" = yes; then
45471 echo "$as_me:$LINENO: checking for socket declaration in sys/types.h sys/socket.h" >&5
45472 echo $ECHO_N "checking for socket declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
45473 if test "${ice_cv_have_socket_decl+set}" = set; then
45474   echo $ECHO_N "(cached) $ECHO_C" >&6
45475 else
45476
45477 ice_cv_have_socket_decl=no
45478 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
45479 ice_re_word='(^|[^a-zA-Z0-9_])'
45480 for header in sys/types.h sys/socket.h; do
45481 # Check for ordinary declaration
45482 cat >conftest.$ac_ext <<_ACEOF
45483 /* confdefs.h.  */
45484 _ACEOF
45485 cat confdefs.h >>conftest.$ac_ext
45486 cat >>conftest.$ac_ext <<_ACEOF
45487 /* end confdefs.h.  */
45488 #include <$header>
45489
45490 _ACEOF
45491 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45492   $EGREP "${ice_re_word}socket[         ]*\(" >/dev/null 2>&1; then
45493   ice_cv_have_socket_decl=yes
45494 fi
45495 rm -f conftest*
45496
45497 if test "$ice_cv_have_socket_decl" = yes; then
45498         break
45499 fi
45500 # Check for "fixed" declaration like "getpid _PARAMS((int))"
45501 cat >conftest.$ac_ext <<_ACEOF
45502 /* confdefs.h.  */
45503 _ACEOF
45504 cat confdefs.h >>conftest.$ac_ext
45505 cat >>conftest.$ac_ext <<_ACEOF
45506 /* end confdefs.h.  */
45507 #include <$header>
45508
45509 _ACEOF
45510 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45511   $EGREP "${ice_re_word}socket[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
45512   ice_cv_have_socket_decl=yes
45513 fi
45514 rm -f conftest*
45515
45516 if test "$ice_cv_have_socket_decl" = yes; then
45517         break
45518 fi
45519 done
45520
45521 fi
45522
45523 echo "$as_me:$LINENO: result: $ice_cv_have_socket_decl" >&5
45524 echo "${ECHO_T}$ice_cv_have_socket_decl" >&6
45525 if test "$ice_cv_have_socket_decl" = yes; then
45526
45527 cat >>confdefs.h <<_ACEOF
45528 #define HAVE_SOCKET_DECL 1
45529 _ACEOF
45530
45531 fi
45532 fi
45533
45534
45535 ice_have_socketpair=no
45536
45537 for ac_func in socketpair
45538 do
45539 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45540 echo "$as_me:$LINENO: checking for $ac_func" >&5
45541 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45542 if eval "test \"\${$as_ac_var+set}\" = set"; then
45543   echo $ECHO_N "(cached) $ECHO_C" >&6
45544 else
45545   cat >conftest.$ac_ext <<_ACEOF
45546 /* confdefs.h.  */
45547 _ACEOF
45548 cat confdefs.h >>conftest.$ac_ext
45549 cat >>conftest.$ac_ext <<_ACEOF
45550 /* end confdefs.h.  */
45551 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45552    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45553 #define $ac_func innocuous_$ac_func
45554
45555 /* System header to define __stub macros and hopefully few prototypes,
45556     which can conflict with char $ac_func (); below.
45557     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45558     <limits.h> exists even on freestanding compilers.  */
45559
45560 #ifdef __STDC__
45561 # include <limits.h>
45562 #else
45563 # include <assert.h>
45564 #endif
45565
45566 #undef $ac_func
45567
45568 /* Override any gcc2 internal prototype to avoid an error.  */
45569 #ifdef __cplusplus
45570 extern "C"
45571 {
45572 #endif
45573 /* We use char because int might match the return type of a gcc2
45574    builtin and then its argument prototype would still apply.  */
45575 char $ac_func ();
45576 /* The GNU C library defines this for functions which it implements
45577     to always fail with ENOSYS.  Some functions are actually named
45578     something starting with __ and the normal name is an alias.  */
45579 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45580 choke me
45581 #else
45582 char (*f) () = $ac_func;
45583 #endif
45584 #ifdef __cplusplus
45585 }
45586 #endif
45587
45588 int
45589 main ()
45590 {
45591 return f != $ac_func;
45592   ;
45593   return 0;
45594 }
45595 _ACEOF
45596 rm -f conftest.$ac_objext conftest$ac_exeext
45597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45598   (eval $ac_link) 2>conftest.er1
45599   ac_status=$?
45600   grep -v '^ *+' conftest.er1 >conftest.err
45601   rm -f conftest.er1
45602   cat conftest.err >&5
45603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45604   (exit $ac_status); } &&
45605          { ac_try='test -z "$ac_c_werror_flag"
45606                          || test ! -s conftest.err'
45607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45608   (eval $ac_try) 2>&5
45609   ac_status=$?
45610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45611   (exit $ac_status); }; } &&
45612          { ac_try='test -s conftest$ac_exeext'
45613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45614   (eval $ac_try) 2>&5
45615   ac_status=$?
45616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45617   (exit $ac_status); }; }; then
45618   eval "$as_ac_var=yes"
45619 else
45620   echo "$as_me: failed program was:" >&5
45621 sed 's/^/| /' conftest.$ac_ext >&5
45622
45623 eval "$as_ac_var=no"
45624 fi
45625 rm -f conftest.err conftest.$ac_objext \
45626       conftest$ac_exeext conftest.$ac_ext
45627 fi
45628 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45629 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45630 if test `eval echo '${'$as_ac_var'}'` = yes; then
45631   cat >>confdefs.h <<_ACEOF
45632 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45633 _ACEOF
45634  ice_have_socketpair=yes
45635 fi
45636 done
45637
45638 if test "${ice_have_socketpair}" = yes; then
45639 echo "$as_me:$LINENO: checking for socketpair declaration in sys/types.h sys/socket.h" >&5
45640 echo $ECHO_N "checking for socketpair declaration in sys/types.h sys/socket.h... $ECHO_C" >&6
45641 if test "${ice_cv_have_socketpair_decl+set}" = set; then
45642   echo $ECHO_N "(cached) $ECHO_C" >&6
45643 else
45644
45645 ice_cv_have_socketpair_decl=no
45646 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
45647 ice_re_word='(^|[^a-zA-Z0-9_])'
45648 for header in sys/types.h sys/socket.h; do
45649 # Check for ordinary declaration
45650 cat >conftest.$ac_ext <<_ACEOF
45651 /* confdefs.h.  */
45652 _ACEOF
45653 cat confdefs.h >>conftest.$ac_ext
45654 cat >>conftest.$ac_ext <<_ACEOF
45655 /* end confdefs.h.  */
45656 #include <$header>
45657
45658 _ACEOF
45659 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45660   $EGREP "${ice_re_word}socketpair[     ]*\(" >/dev/null 2>&1; then
45661   ice_cv_have_socketpair_decl=yes
45662 fi
45663 rm -f conftest*
45664
45665 if test "$ice_cv_have_socketpair_decl" = yes; then
45666         break
45667 fi
45668 # Check for "fixed" declaration like "getpid _PARAMS((int))"
45669 cat >conftest.$ac_ext <<_ACEOF
45670 /* confdefs.h.  */
45671 _ACEOF
45672 cat confdefs.h >>conftest.$ac_ext
45673 cat >>conftest.$ac_ext <<_ACEOF
45674 /* end confdefs.h.  */
45675 #include <$header>
45676
45677 _ACEOF
45678 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45679   $EGREP "${ice_re_word}socketpair[     ]*$ice_re_params\(\(" >/dev/null 2>&1; then
45680   ice_cv_have_socketpair_decl=yes
45681 fi
45682 rm -f conftest*
45683
45684 if test "$ice_cv_have_socketpair_decl" = yes; then
45685         break
45686 fi
45687 done
45688
45689 fi
45690
45691 echo "$as_me:$LINENO: result: $ice_cv_have_socketpair_decl" >&5
45692 echo "${ECHO_T}$ice_cv_have_socketpair_decl" >&6
45693 if test "$ice_cv_have_socketpair_decl" = yes; then
45694
45695 cat >>confdefs.h <<_ACEOF
45696 #define HAVE_SOCKETPAIR_DECL 1
45697 _ACEOF
45698
45699 fi
45700 fi
45701
45702
45703 ice_have_sscanf=no
45704
45705 for ac_func in sscanf
45706 do
45707 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45708 echo "$as_me:$LINENO: checking for $ac_func" >&5
45709 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45710 if eval "test \"\${$as_ac_var+set}\" = set"; then
45711   echo $ECHO_N "(cached) $ECHO_C" >&6
45712 else
45713   cat >conftest.$ac_ext <<_ACEOF
45714 /* confdefs.h.  */
45715 _ACEOF
45716 cat confdefs.h >>conftest.$ac_ext
45717 cat >>conftest.$ac_ext <<_ACEOF
45718 /* end confdefs.h.  */
45719 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45720    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45721 #define $ac_func innocuous_$ac_func
45722
45723 /* System header to define __stub macros and hopefully few prototypes,
45724     which can conflict with char $ac_func (); below.
45725     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45726     <limits.h> exists even on freestanding compilers.  */
45727
45728 #ifdef __STDC__
45729 # include <limits.h>
45730 #else
45731 # include <assert.h>
45732 #endif
45733
45734 #undef $ac_func
45735
45736 /* Override any gcc2 internal prototype to avoid an error.  */
45737 #ifdef __cplusplus
45738 extern "C"
45739 {
45740 #endif
45741 /* We use char because int might match the return type of a gcc2
45742    builtin and then its argument prototype would still apply.  */
45743 char $ac_func ();
45744 /* The GNU C library defines this for functions which it implements
45745     to always fail with ENOSYS.  Some functions are actually named
45746     something starting with __ and the normal name is an alias.  */
45747 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45748 choke me
45749 #else
45750 char (*f) () = $ac_func;
45751 #endif
45752 #ifdef __cplusplus
45753 }
45754 #endif
45755
45756 int
45757 main ()
45758 {
45759 return f != $ac_func;
45760   ;
45761   return 0;
45762 }
45763 _ACEOF
45764 rm -f conftest.$ac_objext conftest$ac_exeext
45765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45766   (eval $ac_link) 2>conftest.er1
45767   ac_status=$?
45768   grep -v '^ *+' conftest.er1 >conftest.err
45769   rm -f conftest.er1
45770   cat conftest.err >&5
45771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45772   (exit $ac_status); } &&
45773          { ac_try='test -z "$ac_c_werror_flag"
45774                          || test ! -s conftest.err'
45775   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45776   (eval $ac_try) 2>&5
45777   ac_status=$?
45778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45779   (exit $ac_status); }; } &&
45780          { ac_try='test -s conftest$ac_exeext'
45781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45782   (eval $ac_try) 2>&5
45783   ac_status=$?
45784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45785   (exit $ac_status); }; }; then
45786   eval "$as_ac_var=yes"
45787 else
45788   echo "$as_me: failed program was:" >&5
45789 sed 's/^/| /' conftest.$ac_ext >&5
45790
45791 eval "$as_ac_var=no"
45792 fi
45793 rm -f conftest.err conftest.$ac_objext \
45794       conftest$ac_exeext conftest.$ac_ext
45795 fi
45796 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45797 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45798 if test `eval echo '${'$as_ac_var'}'` = yes; then
45799   cat >>confdefs.h <<_ACEOF
45800 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45801 _ACEOF
45802  ice_have_sscanf=yes
45803 fi
45804 done
45805
45806 if test "${ice_have_sscanf}" = yes; then
45807 echo "$as_me:$LINENO: checking for sscanf declaration in stdio.h" >&5
45808 echo $ECHO_N "checking for sscanf declaration in stdio.h... $ECHO_C" >&6
45809 if test "${ice_cv_have_sscanf_decl+set}" = set; then
45810   echo $ECHO_N "(cached) $ECHO_C" >&6
45811 else
45812
45813 ice_cv_have_sscanf_decl=no
45814 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
45815 ice_re_word='(^|[^a-zA-Z0-9_])'
45816 for header in stdio.h; do
45817 # Check for ordinary declaration
45818 cat >conftest.$ac_ext <<_ACEOF
45819 /* confdefs.h.  */
45820 _ACEOF
45821 cat confdefs.h >>conftest.$ac_ext
45822 cat >>conftest.$ac_ext <<_ACEOF
45823 /* end confdefs.h.  */
45824 #include <$header>
45825
45826 _ACEOF
45827 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45828   $EGREP "${ice_re_word}sscanf[         ]*\(" >/dev/null 2>&1; then
45829   ice_cv_have_sscanf_decl=yes
45830 fi
45831 rm -f conftest*
45832
45833 if test "$ice_cv_have_sscanf_decl" = yes; then
45834         break
45835 fi
45836 # Check for "fixed" declaration like "getpid _PARAMS((int))"
45837 cat >conftest.$ac_ext <<_ACEOF
45838 /* confdefs.h.  */
45839 _ACEOF
45840 cat confdefs.h >>conftest.$ac_ext
45841 cat >>conftest.$ac_ext <<_ACEOF
45842 /* end confdefs.h.  */
45843 #include <$header>
45844
45845 _ACEOF
45846 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45847   $EGREP "${ice_re_word}sscanf[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
45848   ice_cv_have_sscanf_decl=yes
45849 fi
45850 rm -f conftest*
45851
45852 if test "$ice_cv_have_sscanf_decl" = yes; then
45853         break
45854 fi
45855 done
45856
45857 fi
45858
45859 echo "$as_me:$LINENO: result: $ice_cv_have_sscanf_decl" >&5
45860 echo "${ECHO_T}$ice_cv_have_sscanf_decl" >&6
45861 if test "$ice_cv_have_sscanf_decl" = yes; then
45862
45863 cat >>confdefs.h <<_ACEOF
45864 #define HAVE_SSCANF_DECL 1
45865 _ACEOF
45866
45867 fi
45868 fi
45869
45870
45871
45872 for ac_func in statfs statvfs
45873 do
45874 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45875 echo "$as_me:$LINENO: checking for $ac_func" >&5
45876 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45877 if eval "test \"\${$as_ac_var+set}\" = set"; then
45878   echo $ECHO_N "(cached) $ECHO_C" >&6
45879 else
45880   cat >conftest.$ac_ext <<_ACEOF
45881 /* confdefs.h.  */
45882 _ACEOF
45883 cat confdefs.h >>conftest.$ac_ext
45884 cat >>conftest.$ac_ext <<_ACEOF
45885 /* end confdefs.h.  */
45886 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45887    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45888 #define $ac_func innocuous_$ac_func
45889
45890 /* System header to define __stub macros and hopefully few prototypes,
45891     which can conflict with char $ac_func (); below.
45892     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45893     <limits.h> exists even on freestanding compilers.  */
45894
45895 #ifdef __STDC__
45896 # include <limits.h>
45897 #else
45898 # include <assert.h>
45899 #endif
45900
45901 #undef $ac_func
45902
45903 /* Override any gcc2 internal prototype to avoid an error.  */
45904 #ifdef __cplusplus
45905 extern "C"
45906 {
45907 #endif
45908 /* We use char because int might match the return type of a gcc2
45909    builtin and then its argument prototype would still apply.  */
45910 char $ac_func ();
45911 /* The GNU C library defines this for functions which it implements
45912     to always fail with ENOSYS.  Some functions are actually named
45913     something starting with __ and the normal name is an alias.  */
45914 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
45915 choke me
45916 #else
45917 char (*f) () = $ac_func;
45918 #endif
45919 #ifdef __cplusplus
45920 }
45921 #endif
45922
45923 int
45924 main ()
45925 {
45926 return f != $ac_func;
45927   ;
45928   return 0;
45929 }
45930 _ACEOF
45931 rm -f conftest.$ac_objext conftest$ac_exeext
45932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45933   (eval $ac_link) 2>conftest.er1
45934   ac_status=$?
45935   grep -v '^ *+' conftest.er1 >conftest.err
45936   rm -f conftest.er1
45937   cat conftest.err >&5
45938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45939   (exit $ac_status); } &&
45940          { ac_try='test -z "$ac_c_werror_flag"
45941                          || test ! -s conftest.err'
45942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45943   (eval $ac_try) 2>&5
45944   ac_status=$?
45945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45946   (exit $ac_status); }; } &&
45947          { ac_try='test -s conftest$ac_exeext'
45948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45949   (eval $ac_try) 2>&5
45950   ac_status=$?
45951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45952   (exit $ac_status); }; }; then
45953   eval "$as_ac_var=yes"
45954 else
45955   echo "$as_me: failed program was:" >&5
45956 sed 's/^/| /' conftest.$ac_ext >&5
45957
45958 eval "$as_ac_var=no"
45959 fi
45960 rm -f conftest.err conftest.$ac_objext \
45961       conftest$ac_exeext conftest.$ac_ext
45962 fi
45963 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
45964 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
45965 if test `eval echo '${'$as_ac_var'}'` = yes; then
45966   cat >>confdefs.h <<_ACEOF
45967 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45968 _ACEOF
45969
45970 fi
45971 done
45972
45973
45974 for ac_func in strerror
45975 do
45976 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45977 echo "$as_me:$LINENO: checking for $ac_func" >&5
45978 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
45979 if eval "test \"\${$as_ac_var+set}\" = set"; then
45980   echo $ECHO_N "(cached) $ECHO_C" >&6
45981 else
45982   cat >conftest.$ac_ext <<_ACEOF
45983 /* confdefs.h.  */
45984 _ACEOF
45985 cat confdefs.h >>conftest.$ac_ext
45986 cat >>conftest.$ac_ext <<_ACEOF
45987 /* end confdefs.h.  */
45988 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45989    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45990 #define $ac_func innocuous_$ac_func
45991
45992 /* System header to define __stub macros and hopefully few prototypes,
45993     which can conflict with char $ac_func (); below.
45994     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45995     <limits.h> exists even on freestanding compilers.  */
45996
45997 #ifdef __STDC__
45998 # include <limits.h>
45999 #else
46000 # include <assert.h>
46001 #endif
46002
46003 #undef $ac_func
46004
46005 /* Override any gcc2 internal prototype to avoid an error.  */
46006 #ifdef __cplusplus
46007 extern "C"
46008 {
46009 #endif
46010 /* We use char because int might match the return type of a gcc2
46011    builtin and then its argument prototype would still apply.  */
46012 char $ac_func ();
46013 /* The GNU C library defines this for functions which it implements
46014     to always fail with ENOSYS.  Some functions are actually named
46015     something starting with __ and the normal name is an alias.  */
46016 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46017 choke me
46018 #else
46019 char (*f) () = $ac_func;
46020 #endif
46021 #ifdef __cplusplus
46022 }
46023 #endif
46024
46025 int
46026 main ()
46027 {
46028 return f != $ac_func;
46029   ;
46030   return 0;
46031 }
46032 _ACEOF
46033 rm -f conftest.$ac_objext conftest$ac_exeext
46034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46035   (eval $ac_link) 2>conftest.er1
46036   ac_status=$?
46037   grep -v '^ *+' conftest.er1 >conftest.err
46038   rm -f conftest.er1
46039   cat conftest.err >&5
46040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46041   (exit $ac_status); } &&
46042          { ac_try='test -z "$ac_c_werror_flag"
46043                          || test ! -s conftest.err'
46044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46045   (eval $ac_try) 2>&5
46046   ac_status=$?
46047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46048   (exit $ac_status); }; } &&
46049          { ac_try='test -s conftest$ac_exeext'
46050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46051   (eval $ac_try) 2>&5
46052   ac_status=$?
46053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46054   (exit $ac_status); }; }; then
46055   eval "$as_ac_var=yes"
46056 else
46057   echo "$as_me: failed program was:" >&5
46058 sed 's/^/| /' conftest.$ac_ext >&5
46059
46060 eval "$as_ac_var=no"
46061 fi
46062 rm -f conftest.err conftest.$ac_objext \
46063       conftest$ac_exeext conftest.$ac_ext
46064 fi
46065 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46066 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46067 if test `eval echo '${'$as_ac_var'}'` = yes; then
46068   cat >>confdefs.h <<_ACEOF
46069 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46070 _ACEOF
46071
46072 else
46073   case $LIBOBJS in
46074     "$ac_func.$ac_objext"   | \
46075   *" $ac_func.$ac_objext"   | \
46076     "$ac_func.$ac_objext "* | \
46077   *" $ac_func.$ac_objext "* ) ;;
46078   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
46079 esac
46080
46081 fi
46082 done
46083
46084
46085
46086 ice_have_strerror=no
46087
46088 for ac_func in strerror
46089 do
46090 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46091 echo "$as_me:$LINENO: checking for $ac_func" >&5
46092 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46093 if eval "test \"\${$as_ac_var+set}\" = set"; then
46094   echo $ECHO_N "(cached) $ECHO_C" >&6
46095 else
46096   cat >conftest.$ac_ext <<_ACEOF
46097 /* confdefs.h.  */
46098 _ACEOF
46099 cat confdefs.h >>conftest.$ac_ext
46100 cat >>conftest.$ac_ext <<_ACEOF
46101 /* end confdefs.h.  */
46102 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46103    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46104 #define $ac_func innocuous_$ac_func
46105
46106 /* System header to define __stub macros and hopefully few prototypes,
46107     which can conflict with char $ac_func (); below.
46108     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46109     <limits.h> exists even on freestanding compilers.  */
46110
46111 #ifdef __STDC__
46112 # include <limits.h>
46113 #else
46114 # include <assert.h>
46115 #endif
46116
46117 #undef $ac_func
46118
46119 /* Override any gcc2 internal prototype to avoid an error.  */
46120 #ifdef __cplusplus
46121 extern "C"
46122 {
46123 #endif
46124 /* We use char because int might match the return type of a gcc2
46125    builtin and then its argument prototype would still apply.  */
46126 char $ac_func ();
46127 /* The GNU C library defines this for functions which it implements
46128     to always fail with ENOSYS.  Some functions are actually named
46129     something starting with __ and the normal name is an alias.  */
46130 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46131 choke me
46132 #else
46133 char (*f) () = $ac_func;
46134 #endif
46135 #ifdef __cplusplus
46136 }
46137 #endif
46138
46139 int
46140 main ()
46141 {
46142 return f != $ac_func;
46143   ;
46144   return 0;
46145 }
46146 _ACEOF
46147 rm -f conftest.$ac_objext conftest$ac_exeext
46148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46149   (eval $ac_link) 2>conftest.er1
46150   ac_status=$?
46151   grep -v '^ *+' conftest.er1 >conftest.err
46152   rm -f conftest.er1
46153   cat conftest.err >&5
46154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46155   (exit $ac_status); } &&
46156          { ac_try='test -z "$ac_c_werror_flag"
46157                          || test ! -s conftest.err'
46158   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46159   (eval $ac_try) 2>&5
46160   ac_status=$?
46161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46162   (exit $ac_status); }; } &&
46163          { ac_try='test -s conftest$ac_exeext'
46164   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46165   (eval $ac_try) 2>&5
46166   ac_status=$?
46167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46168   (exit $ac_status); }; }; then
46169   eval "$as_ac_var=yes"
46170 else
46171   echo "$as_me: failed program was:" >&5
46172 sed 's/^/| /' conftest.$ac_ext >&5
46173
46174 eval "$as_ac_var=no"
46175 fi
46176 rm -f conftest.err conftest.$ac_objext \
46177       conftest$ac_exeext conftest.$ac_ext
46178 fi
46179 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46180 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46181 if test `eval echo '${'$as_ac_var'}'` = yes; then
46182   cat >>confdefs.h <<_ACEOF
46183 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46184 _ACEOF
46185  ice_have_strerror=yes
46186 fi
46187 done
46188
46189 if test "${ice_have_strerror}" = yes; then
46190 echo "$as_me:$LINENO: checking for strerror declaration in string.h strings.h" >&5
46191 echo $ECHO_N "checking for strerror declaration in string.h strings.h... $ECHO_C" >&6
46192 if test "${ice_cv_have_strerror_decl+set}" = set; then
46193   echo $ECHO_N "(cached) $ECHO_C" >&6
46194 else
46195
46196 ice_cv_have_strerror_decl=no
46197 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
46198 ice_re_word='(^|[^a-zA-Z0-9_])'
46199 for header in string.h strings.h; do
46200 # Check for ordinary declaration
46201 cat >conftest.$ac_ext <<_ACEOF
46202 /* confdefs.h.  */
46203 _ACEOF
46204 cat confdefs.h >>conftest.$ac_ext
46205 cat >>conftest.$ac_ext <<_ACEOF
46206 /* end confdefs.h.  */
46207 #include <$header>
46208
46209 _ACEOF
46210 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46211   $EGREP "${ice_re_word}strerror[       ]*\(" >/dev/null 2>&1; then
46212   ice_cv_have_strerror_decl=yes
46213 fi
46214 rm -f conftest*
46215
46216 if test "$ice_cv_have_strerror_decl" = yes; then
46217         break
46218 fi
46219 # Check for "fixed" declaration like "getpid _PARAMS((int))"
46220 cat >conftest.$ac_ext <<_ACEOF
46221 /* confdefs.h.  */
46222 _ACEOF
46223 cat confdefs.h >>conftest.$ac_ext
46224 cat >>conftest.$ac_ext <<_ACEOF
46225 /* end confdefs.h.  */
46226 #include <$header>
46227
46228 _ACEOF
46229 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46230   $EGREP "${ice_re_word}strerror[       ]*$ice_re_params\(\(" >/dev/null 2>&1; then
46231   ice_cv_have_strerror_decl=yes
46232 fi
46233 rm -f conftest*
46234
46235 if test "$ice_cv_have_strerror_decl" = yes; then
46236         break
46237 fi
46238 done
46239
46240 fi
46241
46242 echo "$as_me:$LINENO: result: $ice_cv_have_strerror_decl" >&5
46243 echo "${ECHO_T}$ice_cv_have_strerror_decl" >&6
46244 if test "$ice_cv_have_strerror_decl" = yes; then
46245
46246 cat >>confdefs.h <<_ACEOF
46247 #define HAVE_STRERROR_DECL 1
46248 _ACEOF
46249
46250 fi
46251 fi
46252
46253
46254 for ac_func in strftime
46255 do
46256 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46257 echo "$as_me:$LINENO: checking for $ac_func" >&5
46258 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46259 if eval "test \"\${$as_ac_var+set}\" = set"; then
46260   echo $ECHO_N "(cached) $ECHO_C" >&6
46261 else
46262   cat >conftest.$ac_ext <<_ACEOF
46263 /* confdefs.h.  */
46264 _ACEOF
46265 cat confdefs.h >>conftest.$ac_ext
46266 cat >>conftest.$ac_ext <<_ACEOF
46267 /* end confdefs.h.  */
46268 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46269    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46270 #define $ac_func innocuous_$ac_func
46271
46272 /* System header to define __stub macros and hopefully few prototypes,
46273     which can conflict with char $ac_func (); below.
46274     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46275     <limits.h> exists even on freestanding compilers.  */
46276
46277 #ifdef __STDC__
46278 # include <limits.h>
46279 #else
46280 # include <assert.h>
46281 #endif
46282
46283 #undef $ac_func
46284
46285 /* Override any gcc2 internal prototype to avoid an error.  */
46286 #ifdef __cplusplus
46287 extern "C"
46288 {
46289 #endif
46290 /* We use char because int might match the return type of a gcc2
46291    builtin and then its argument prototype would still apply.  */
46292 char $ac_func ();
46293 /* The GNU C library defines this for functions which it implements
46294     to always fail with ENOSYS.  Some functions are actually named
46295     something starting with __ and the normal name is an alias.  */
46296 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46297 choke me
46298 #else
46299 char (*f) () = $ac_func;
46300 #endif
46301 #ifdef __cplusplus
46302 }
46303 #endif
46304
46305 int
46306 main ()
46307 {
46308 return f != $ac_func;
46309   ;
46310   return 0;
46311 }
46312 _ACEOF
46313 rm -f conftest.$ac_objext conftest$ac_exeext
46314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46315   (eval $ac_link) 2>conftest.er1
46316   ac_status=$?
46317   grep -v '^ *+' conftest.er1 >conftest.err
46318   rm -f conftest.er1
46319   cat conftest.err >&5
46320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46321   (exit $ac_status); } &&
46322          { ac_try='test -z "$ac_c_werror_flag"
46323                          || test ! -s conftest.err'
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); }; } &&
46329          { ac_try='test -s conftest$ac_exeext'
46330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46331   (eval $ac_try) 2>&5
46332   ac_status=$?
46333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46334   (exit $ac_status); }; }; then
46335   eval "$as_ac_var=yes"
46336 else
46337   echo "$as_me: failed program was:" >&5
46338 sed 's/^/| /' conftest.$ac_ext >&5
46339
46340 eval "$as_ac_var=no"
46341 fi
46342 rm -f conftest.err conftest.$ac_objext \
46343       conftest$ac_exeext conftest.$ac_ext
46344 fi
46345 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46346 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46347 if test `eval echo '${'$as_ac_var'}'` = yes; then
46348   cat >>confdefs.h <<_ACEOF
46349 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46350 _ACEOF
46351
46352 else
46353   # strftime is in -lintl on SCO UNIX.
46354 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
46355 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
46356 if test "${ac_cv_lib_intl_strftime+set}" = set; then
46357   echo $ECHO_N "(cached) $ECHO_C" >&6
46358 else
46359   ac_check_lib_save_LIBS=$LIBS
46360 LIBS="-lintl  $LIBS"
46361 cat >conftest.$ac_ext <<_ACEOF
46362 /* confdefs.h.  */
46363 _ACEOF
46364 cat confdefs.h >>conftest.$ac_ext
46365 cat >>conftest.$ac_ext <<_ACEOF
46366 /* end confdefs.h.  */
46367
46368 /* Override any gcc2 internal prototype to avoid an error.  */
46369 #ifdef __cplusplus
46370 extern "C"
46371 #endif
46372 /* We use char because int might match the return type of a gcc2
46373    builtin and then its argument prototype would still apply.  */
46374 char strftime ();
46375 int
46376 main ()
46377 {
46378 strftime ();
46379   ;
46380   return 0;
46381 }
46382 _ACEOF
46383 rm -f conftest.$ac_objext conftest$ac_exeext
46384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46385   (eval $ac_link) 2>conftest.er1
46386   ac_status=$?
46387   grep -v '^ *+' conftest.er1 >conftest.err
46388   rm -f conftest.er1
46389   cat conftest.err >&5
46390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46391   (exit $ac_status); } &&
46392          { ac_try='test -z "$ac_c_werror_flag"
46393                          || test ! -s conftest.err'
46394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46395   (eval $ac_try) 2>&5
46396   ac_status=$?
46397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46398   (exit $ac_status); }; } &&
46399          { ac_try='test -s conftest$ac_exeext'
46400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46401   (eval $ac_try) 2>&5
46402   ac_status=$?
46403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46404   (exit $ac_status); }; }; then
46405   ac_cv_lib_intl_strftime=yes
46406 else
46407   echo "$as_me: failed program was:" >&5
46408 sed 's/^/| /' conftest.$ac_ext >&5
46409
46410 ac_cv_lib_intl_strftime=no
46411 fi
46412 rm -f conftest.err conftest.$ac_objext \
46413       conftest$ac_exeext conftest.$ac_ext
46414 LIBS=$ac_check_lib_save_LIBS
46415 fi
46416 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
46417 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
46418 if test $ac_cv_lib_intl_strftime = yes; then
46419   cat >>confdefs.h <<\_ACEOF
46420 #define HAVE_STRFTIME 1
46421 _ACEOF
46422
46423 LIBS="-lintl $LIBS"
46424 fi
46425
46426 fi
46427 done
46428
46429
46430 for ac_func in strftime
46431 do
46432 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46433 echo "$as_me:$LINENO: checking for $ac_func" >&5
46434 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46435 if eval "test \"\${$as_ac_var+set}\" = set"; then
46436   echo $ECHO_N "(cached) $ECHO_C" >&6
46437 else
46438   cat >conftest.$ac_ext <<_ACEOF
46439 /* confdefs.h.  */
46440 _ACEOF
46441 cat confdefs.h >>conftest.$ac_ext
46442 cat >>conftest.$ac_ext <<_ACEOF
46443 /* end confdefs.h.  */
46444 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46445    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46446 #define $ac_func innocuous_$ac_func
46447
46448 /* System header to define __stub macros and hopefully few prototypes,
46449     which can conflict with char $ac_func (); below.
46450     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46451     <limits.h> exists even on freestanding compilers.  */
46452
46453 #ifdef __STDC__
46454 # include <limits.h>
46455 #else
46456 # include <assert.h>
46457 #endif
46458
46459 #undef $ac_func
46460
46461 /* Override any gcc2 internal prototype to avoid an error.  */
46462 #ifdef __cplusplus
46463 extern "C"
46464 {
46465 #endif
46466 /* We use char because int might match the return type of a gcc2
46467    builtin and then its argument prototype would still apply.  */
46468 char $ac_func ();
46469 /* The GNU C library defines this for functions which it implements
46470     to always fail with ENOSYS.  Some functions are actually named
46471     something starting with __ and the normal name is an alias.  */
46472 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46473 choke me
46474 #else
46475 char (*f) () = $ac_func;
46476 #endif
46477 #ifdef __cplusplus
46478 }
46479 #endif
46480
46481 int
46482 main ()
46483 {
46484 return f != $ac_func;
46485   ;
46486   return 0;
46487 }
46488 _ACEOF
46489 rm -f conftest.$ac_objext conftest$ac_exeext
46490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46491   (eval $ac_link) 2>conftest.er1
46492   ac_status=$?
46493   grep -v '^ *+' conftest.er1 >conftest.err
46494   rm -f conftest.er1
46495   cat conftest.err >&5
46496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46497   (exit $ac_status); } &&
46498          { ac_try='test -z "$ac_c_werror_flag"
46499                          || test ! -s conftest.err'
46500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46501   (eval $ac_try) 2>&5
46502   ac_status=$?
46503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46504   (exit $ac_status); }; } &&
46505          { ac_try='test -s conftest$ac_exeext'
46506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46507   (eval $ac_try) 2>&5
46508   ac_status=$?
46509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46510   (exit $ac_status); }; }; then
46511   eval "$as_ac_var=yes"
46512 else
46513   echo "$as_me: failed program was:" >&5
46514 sed 's/^/| /' conftest.$ac_ext >&5
46515
46516 eval "$as_ac_var=no"
46517 fi
46518 rm -f conftest.err conftest.$ac_objext \
46519       conftest$ac_exeext conftest.$ac_ext
46520 fi
46521 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46522 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46523 if test `eval echo '${'$as_ac_var'}'` = yes; then
46524   cat >>confdefs.h <<_ACEOF
46525 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46526 _ACEOF
46527
46528 else
46529   case $LIBOBJS in
46530     "$ac_func.$ac_objext"   | \
46531   *" $ac_func.$ac_objext"   | \
46532     "$ac_func.$ac_objext "* | \
46533   *" $ac_func.$ac_objext "* ) ;;
46534   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
46535 esac
46536
46537 fi
46538 done
46539
46540
46541
46542 ice_have_strftime=no
46543
46544 for ac_func in strftime
46545 do
46546 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46547 echo "$as_me:$LINENO: checking for $ac_func" >&5
46548 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46549 if eval "test \"\${$as_ac_var+set}\" = set"; then
46550   echo $ECHO_N "(cached) $ECHO_C" >&6
46551 else
46552   cat >conftest.$ac_ext <<_ACEOF
46553 /* confdefs.h.  */
46554 _ACEOF
46555 cat confdefs.h >>conftest.$ac_ext
46556 cat >>conftest.$ac_ext <<_ACEOF
46557 /* end confdefs.h.  */
46558 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46559    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46560 #define $ac_func innocuous_$ac_func
46561
46562 /* System header to define __stub macros and hopefully few prototypes,
46563     which can conflict with char $ac_func (); below.
46564     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46565     <limits.h> exists even on freestanding compilers.  */
46566
46567 #ifdef __STDC__
46568 # include <limits.h>
46569 #else
46570 # include <assert.h>
46571 #endif
46572
46573 #undef $ac_func
46574
46575 /* Override any gcc2 internal prototype to avoid an error.  */
46576 #ifdef __cplusplus
46577 extern "C"
46578 {
46579 #endif
46580 /* We use char because int might match the return type of a gcc2
46581    builtin and then its argument prototype would still apply.  */
46582 char $ac_func ();
46583 /* The GNU C library defines this for functions which it implements
46584     to always fail with ENOSYS.  Some functions are actually named
46585     something starting with __ and the normal name is an alias.  */
46586 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46587 choke me
46588 #else
46589 char (*f) () = $ac_func;
46590 #endif
46591 #ifdef __cplusplus
46592 }
46593 #endif
46594
46595 int
46596 main ()
46597 {
46598 return f != $ac_func;
46599   ;
46600   return 0;
46601 }
46602 _ACEOF
46603 rm -f conftest.$ac_objext conftest$ac_exeext
46604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46605   (eval $ac_link) 2>conftest.er1
46606   ac_status=$?
46607   grep -v '^ *+' conftest.er1 >conftest.err
46608   rm -f conftest.er1
46609   cat conftest.err >&5
46610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46611   (exit $ac_status); } &&
46612          { ac_try='test -z "$ac_c_werror_flag"
46613                          || test ! -s conftest.err'
46614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46615   (eval $ac_try) 2>&5
46616   ac_status=$?
46617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46618   (exit $ac_status); }; } &&
46619          { ac_try='test -s conftest$ac_exeext'
46620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46621   (eval $ac_try) 2>&5
46622   ac_status=$?
46623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46624   (exit $ac_status); }; }; then
46625   eval "$as_ac_var=yes"
46626 else
46627   echo "$as_me: failed program was:" >&5
46628 sed 's/^/| /' conftest.$ac_ext >&5
46629
46630 eval "$as_ac_var=no"
46631 fi
46632 rm -f conftest.err conftest.$ac_objext \
46633       conftest$ac_exeext conftest.$ac_ext
46634 fi
46635 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46636 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46637 if test `eval echo '${'$as_ac_var'}'` = yes; then
46638   cat >>confdefs.h <<_ACEOF
46639 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46640 _ACEOF
46641  ice_have_strftime=yes
46642 fi
46643 done
46644
46645 if test "${ice_have_strftime}" = yes; then
46646 echo "$as_me:$LINENO: checking for strftime declaration in time.h sys/time.h" >&5
46647 echo $ECHO_N "checking for strftime declaration in time.h sys/time.h... $ECHO_C" >&6
46648 if test "${ice_cv_have_strftime_decl+set}" = set; then
46649   echo $ECHO_N "(cached) $ECHO_C" >&6
46650 else
46651
46652 ice_cv_have_strftime_decl=no
46653 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
46654 ice_re_word='(^|[^a-zA-Z0-9_])'
46655 for header in time.h sys/time.h; do
46656 # Check for ordinary declaration
46657 cat >conftest.$ac_ext <<_ACEOF
46658 /* confdefs.h.  */
46659 _ACEOF
46660 cat confdefs.h >>conftest.$ac_ext
46661 cat >>conftest.$ac_ext <<_ACEOF
46662 /* end confdefs.h.  */
46663 #include <$header>
46664
46665 _ACEOF
46666 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46667   $EGREP "${ice_re_word}strftime[       ]*\(" >/dev/null 2>&1; then
46668   ice_cv_have_strftime_decl=yes
46669 fi
46670 rm -f conftest*
46671
46672 if test "$ice_cv_have_strftime_decl" = yes; then
46673         break
46674 fi
46675 # Check for "fixed" declaration like "getpid _PARAMS((int))"
46676 cat >conftest.$ac_ext <<_ACEOF
46677 /* confdefs.h.  */
46678 _ACEOF
46679 cat confdefs.h >>conftest.$ac_ext
46680 cat >>conftest.$ac_ext <<_ACEOF
46681 /* end confdefs.h.  */
46682 #include <$header>
46683
46684 _ACEOF
46685 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46686   $EGREP "${ice_re_word}strftime[       ]*$ice_re_params\(\(" >/dev/null 2>&1; then
46687   ice_cv_have_strftime_decl=yes
46688 fi
46689 rm -f conftest*
46690
46691 if test "$ice_cv_have_strftime_decl" = yes; then
46692         break
46693 fi
46694 done
46695
46696 fi
46697
46698 echo "$as_me:$LINENO: result: $ice_cv_have_strftime_decl" >&5
46699 echo "${ECHO_T}$ice_cv_have_strftime_decl" >&6
46700 if test "$ice_cv_have_strftime_decl" = yes; then
46701
46702 cat >>confdefs.h <<_ACEOF
46703 #define HAVE_STRFTIME_DECL 1
46704 _ACEOF
46705
46706 fi
46707 fi
46708
46709
46710 for ac_func in strncasecmp
46711 do
46712 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46713 echo "$as_me:$LINENO: checking for $ac_func" >&5
46714 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46715 if eval "test \"\${$as_ac_var+set}\" = set"; then
46716   echo $ECHO_N "(cached) $ECHO_C" >&6
46717 else
46718   cat >conftest.$ac_ext <<_ACEOF
46719 /* confdefs.h.  */
46720 _ACEOF
46721 cat confdefs.h >>conftest.$ac_ext
46722 cat >>conftest.$ac_ext <<_ACEOF
46723 /* end confdefs.h.  */
46724 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46725    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46726 #define $ac_func innocuous_$ac_func
46727
46728 /* System header to define __stub macros and hopefully few prototypes,
46729     which can conflict with char $ac_func (); below.
46730     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46731     <limits.h> exists even on freestanding compilers.  */
46732
46733 #ifdef __STDC__
46734 # include <limits.h>
46735 #else
46736 # include <assert.h>
46737 #endif
46738
46739 #undef $ac_func
46740
46741 /* Override any gcc2 internal prototype to avoid an error.  */
46742 #ifdef __cplusplus
46743 extern "C"
46744 {
46745 #endif
46746 /* We use char because int might match the return type of a gcc2
46747    builtin and then its argument prototype would still apply.  */
46748 char $ac_func ();
46749 /* The GNU C library defines this for functions which it implements
46750     to always fail with ENOSYS.  Some functions are actually named
46751     something starting with __ and the normal name is an alias.  */
46752 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46753 choke me
46754 #else
46755 char (*f) () = $ac_func;
46756 #endif
46757 #ifdef __cplusplus
46758 }
46759 #endif
46760
46761 int
46762 main ()
46763 {
46764 return f != $ac_func;
46765   ;
46766   return 0;
46767 }
46768 _ACEOF
46769 rm -f conftest.$ac_objext conftest$ac_exeext
46770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46771   (eval $ac_link) 2>conftest.er1
46772   ac_status=$?
46773   grep -v '^ *+' conftest.er1 >conftest.err
46774   rm -f conftest.er1
46775   cat conftest.err >&5
46776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46777   (exit $ac_status); } &&
46778          { ac_try='test -z "$ac_c_werror_flag"
46779                          || test ! -s conftest.err'
46780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46781   (eval $ac_try) 2>&5
46782   ac_status=$?
46783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46784   (exit $ac_status); }; } &&
46785          { ac_try='test -s conftest$ac_exeext'
46786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46787   (eval $ac_try) 2>&5
46788   ac_status=$?
46789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46790   (exit $ac_status); }; }; then
46791   eval "$as_ac_var=yes"
46792 else
46793   echo "$as_me: failed program was:" >&5
46794 sed 's/^/| /' conftest.$ac_ext >&5
46795
46796 eval "$as_ac_var=no"
46797 fi
46798 rm -f conftest.err conftest.$ac_objext \
46799       conftest$ac_exeext conftest.$ac_ext
46800 fi
46801 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46802 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46803 if test `eval echo '${'$as_ac_var'}'` = yes; then
46804   cat >>confdefs.h <<_ACEOF
46805 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46806 _ACEOF
46807
46808 else
46809   case $LIBOBJS in
46810     "$ac_func.$ac_objext"   | \
46811   *" $ac_func.$ac_objext"   | \
46812     "$ac_func.$ac_objext "* | \
46813   *" $ac_func.$ac_objext "* ) ;;
46814   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
46815 esac
46816
46817 fi
46818 done
46819
46820
46821
46822 ice_have_strncasecmp=no
46823
46824 for ac_func in strncasecmp
46825 do
46826 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46827 echo "$as_me:$LINENO: checking for $ac_func" >&5
46828 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46829 if eval "test \"\${$as_ac_var+set}\" = set"; then
46830   echo $ECHO_N "(cached) $ECHO_C" >&6
46831 else
46832   cat >conftest.$ac_ext <<_ACEOF
46833 /* confdefs.h.  */
46834 _ACEOF
46835 cat confdefs.h >>conftest.$ac_ext
46836 cat >>conftest.$ac_ext <<_ACEOF
46837 /* end confdefs.h.  */
46838 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46839    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46840 #define $ac_func innocuous_$ac_func
46841
46842 /* System header to define __stub macros and hopefully few prototypes,
46843     which can conflict with char $ac_func (); below.
46844     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46845     <limits.h> exists even on freestanding compilers.  */
46846
46847 #ifdef __STDC__
46848 # include <limits.h>
46849 #else
46850 # include <assert.h>
46851 #endif
46852
46853 #undef $ac_func
46854
46855 /* Override any gcc2 internal prototype to avoid an error.  */
46856 #ifdef __cplusplus
46857 extern "C"
46858 {
46859 #endif
46860 /* We use char because int might match the return type of a gcc2
46861    builtin and then its argument prototype would still apply.  */
46862 char $ac_func ();
46863 /* The GNU C library defines this for functions which it implements
46864     to always fail with ENOSYS.  Some functions are actually named
46865     something starting with __ and the normal name is an alias.  */
46866 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
46867 choke me
46868 #else
46869 char (*f) () = $ac_func;
46870 #endif
46871 #ifdef __cplusplus
46872 }
46873 #endif
46874
46875 int
46876 main ()
46877 {
46878 return f != $ac_func;
46879   ;
46880   return 0;
46881 }
46882 _ACEOF
46883 rm -f conftest.$ac_objext conftest$ac_exeext
46884 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46885   (eval $ac_link) 2>conftest.er1
46886   ac_status=$?
46887   grep -v '^ *+' conftest.er1 >conftest.err
46888   rm -f conftest.er1
46889   cat conftest.err >&5
46890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46891   (exit $ac_status); } &&
46892          { ac_try='test -z "$ac_c_werror_flag"
46893                          || test ! -s conftest.err'
46894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46895   (eval $ac_try) 2>&5
46896   ac_status=$?
46897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46898   (exit $ac_status); }; } &&
46899          { ac_try='test -s conftest$ac_exeext'
46900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46901   (eval $ac_try) 2>&5
46902   ac_status=$?
46903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46904   (exit $ac_status); }; }; then
46905   eval "$as_ac_var=yes"
46906 else
46907   echo "$as_me: failed program was:" >&5
46908 sed 's/^/| /' conftest.$ac_ext >&5
46909
46910 eval "$as_ac_var=no"
46911 fi
46912 rm -f conftest.err conftest.$ac_objext \
46913       conftest$ac_exeext conftest.$ac_ext
46914 fi
46915 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
46916 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
46917 if test `eval echo '${'$as_ac_var'}'` = yes; then
46918   cat >>confdefs.h <<_ACEOF
46919 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46920 _ACEOF
46921  ice_have_strncasecmp=yes
46922 fi
46923 done
46924
46925 if test "${ice_have_strncasecmp}" = yes; then
46926 echo "$as_me:$LINENO: checking for strncasecmp declaration in string.h strings.h" >&5
46927 echo $ECHO_N "checking for strncasecmp declaration in string.h strings.h... $ECHO_C" >&6
46928 if test "${ice_cv_have_strncasecmp_decl+set}" = set; then
46929   echo $ECHO_N "(cached) $ECHO_C" >&6
46930 else
46931
46932 ice_cv_have_strncasecmp_decl=no
46933 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
46934 ice_re_word='(^|[^a-zA-Z0-9_])'
46935 for header in string.h strings.h; do
46936 # Check for ordinary declaration
46937 cat >conftest.$ac_ext <<_ACEOF
46938 /* confdefs.h.  */
46939 _ACEOF
46940 cat confdefs.h >>conftest.$ac_ext
46941 cat >>conftest.$ac_ext <<_ACEOF
46942 /* end confdefs.h.  */
46943 #include <$header>
46944
46945 _ACEOF
46946 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46947   $EGREP "${ice_re_word}strncasecmp[    ]*\(" >/dev/null 2>&1; then
46948   ice_cv_have_strncasecmp_decl=yes
46949 fi
46950 rm -f conftest*
46951
46952 if test "$ice_cv_have_strncasecmp_decl" = yes; then
46953         break
46954 fi
46955 # Check for "fixed" declaration like "getpid _PARAMS((int))"
46956 cat >conftest.$ac_ext <<_ACEOF
46957 /* confdefs.h.  */
46958 _ACEOF
46959 cat confdefs.h >>conftest.$ac_ext
46960 cat >>conftest.$ac_ext <<_ACEOF
46961 /* end confdefs.h.  */
46962 #include <$header>
46963
46964 _ACEOF
46965 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46966   $EGREP "${ice_re_word}strncasecmp[    ]*$ice_re_params\(\(" >/dev/null 2>&1; then
46967   ice_cv_have_strncasecmp_decl=yes
46968 fi
46969 rm -f conftest*
46970
46971 if test "$ice_cv_have_strncasecmp_decl" = yes; then
46972         break
46973 fi
46974 done
46975
46976 fi
46977
46978 echo "$as_me:$LINENO: result: $ice_cv_have_strncasecmp_decl" >&5
46979 echo "${ECHO_T}$ice_cv_have_strncasecmp_decl" >&6
46980 if test "$ice_cv_have_strncasecmp_decl" = yes; then
46981
46982 cat >>confdefs.h <<_ACEOF
46983 #define HAVE_STRNCASECMP_DECL 1
46984 _ACEOF
46985
46986 fi
46987 fi
46988
46989
46990 for ac_func in strstr
46991 do
46992 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46993 echo "$as_me:$LINENO: checking for $ac_func" >&5
46994 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
46995 if eval "test \"\${$as_ac_var+set}\" = set"; then
46996   echo $ECHO_N "(cached) $ECHO_C" >&6
46997 else
46998   cat >conftest.$ac_ext <<_ACEOF
46999 /* confdefs.h.  */
47000 _ACEOF
47001 cat confdefs.h >>conftest.$ac_ext
47002 cat >>conftest.$ac_ext <<_ACEOF
47003 /* end confdefs.h.  */
47004 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47005    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
47006 #define $ac_func innocuous_$ac_func
47007
47008 /* System header to define __stub macros and hopefully few prototypes,
47009     which can conflict with char $ac_func (); below.
47010     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47011     <limits.h> exists even on freestanding compilers.  */
47012
47013 #ifdef __STDC__
47014 # include <limits.h>
47015 #else
47016 # include <assert.h>
47017 #endif
47018
47019 #undef $ac_func
47020
47021 /* Override any gcc2 internal prototype to avoid an error.  */
47022 #ifdef __cplusplus
47023 extern "C"
47024 {
47025 #endif
47026 /* We use char because int might match the return type of a gcc2
47027    builtin and then its argument prototype would still apply.  */
47028 char $ac_func ();
47029 /* The GNU C library defines this for functions which it implements
47030     to always fail with ENOSYS.  Some functions are actually named
47031     something starting with __ and the normal name is an alias.  */
47032 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47033 choke me
47034 #else
47035 char (*f) () = $ac_func;
47036 #endif
47037 #ifdef __cplusplus
47038 }
47039 #endif
47040
47041 int
47042 main ()
47043 {
47044 return f != $ac_func;
47045   ;
47046   return 0;
47047 }
47048 _ACEOF
47049 rm -f conftest.$ac_objext conftest$ac_exeext
47050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47051   (eval $ac_link) 2>conftest.er1
47052   ac_status=$?
47053   grep -v '^ *+' conftest.er1 >conftest.err
47054   rm -f conftest.er1
47055   cat conftest.err >&5
47056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47057   (exit $ac_status); } &&
47058          { ac_try='test -z "$ac_c_werror_flag"
47059                          || test ! -s conftest.err'
47060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47061   (eval $ac_try) 2>&5
47062   ac_status=$?
47063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47064   (exit $ac_status); }; } &&
47065          { ac_try='test -s conftest$ac_exeext'
47066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47067   (eval $ac_try) 2>&5
47068   ac_status=$?
47069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47070   (exit $ac_status); }; }; then
47071   eval "$as_ac_var=yes"
47072 else
47073   echo "$as_me: failed program was:" >&5
47074 sed 's/^/| /' conftest.$ac_ext >&5
47075
47076 eval "$as_ac_var=no"
47077 fi
47078 rm -f conftest.err conftest.$ac_objext \
47079       conftest$ac_exeext conftest.$ac_ext
47080 fi
47081 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47082 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47083 if test `eval echo '${'$as_ac_var'}'` = yes; then
47084   cat >>confdefs.h <<_ACEOF
47085 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47086 _ACEOF
47087
47088 else
47089   case $LIBOBJS in
47090     "$ac_func.$ac_objext"   | \
47091   *" $ac_func.$ac_objext"   | \
47092     "$ac_func.$ac_objext "* | \
47093   *" $ac_func.$ac_objext "* ) ;;
47094   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
47095 esac
47096
47097 fi
47098 done
47099
47100
47101
47102 ice_have_syslog=no
47103
47104 for ac_func in syslog
47105 do
47106 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47107 echo "$as_me:$LINENO: checking for $ac_func" >&5
47108 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47109 if eval "test \"\${$as_ac_var+set}\" = set"; then
47110   echo $ECHO_N "(cached) $ECHO_C" >&6
47111 else
47112   cat >conftest.$ac_ext <<_ACEOF
47113 /* confdefs.h.  */
47114 _ACEOF
47115 cat confdefs.h >>conftest.$ac_ext
47116 cat >>conftest.$ac_ext <<_ACEOF
47117 /* end confdefs.h.  */
47118 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47119    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
47120 #define $ac_func innocuous_$ac_func
47121
47122 /* System header to define __stub macros and hopefully few prototypes,
47123     which can conflict with char $ac_func (); below.
47124     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47125     <limits.h> exists even on freestanding compilers.  */
47126
47127 #ifdef __STDC__
47128 # include <limits.h>
47129 #else
47130 # include <assert.h>
47131 #endif
47132
47133 #undef $ac_func
47134
47135 /* Override any gcc2 internal prototype to avoid an error.  */
47136 #ifdef __cplusplus
47137 extern "C"
47138 {
47139 #endif
47140 /* We use char because int might match the return type of a gcc2
47141    builtin and then its argument prototype would still apply.  */
47142 char $ac_func ();
47143 /* The GNU C library defines this for functions which it implements
47144     to always fail with ENOSYS.  Some functions are actually named
47145     something starting with __ and the normal name is an alias.  */
47146 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47147 choke me
47148 #else
47149 char (*f) () = $ac_func;
47150 #endif
47151 #ifdef __cplusplus
47152 }
47153 #endif
47154
47155 int
47156 main ()
47157 {
47158 return f != $ac_func;
47159   ;
47160   return 0;
47161 }
47162 _ACEOF
47163 rm -f conftest.$ac_objext conftest$ac_exeext
47164 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47165   (eval $ac_link) 2>conftest.er1
47166   ac_status=$?
47167   grep -v '^ *+' conftest.er1 >conftest.err
47168   rm -f conftest.er1
47169   cat conftest.err >&5
47170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47171   (exit $ac_status); } &&
47172          { ac_try='test -z "$ac_c_werror_flag"
47173                          || test ! -s conftest.err'
47174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47175   (eval $ac_try) 2>&5
47176   ac_status=$?
47177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47178   (exit $ac_status); }; } &&
47179          { ac_try='test -s conftest$ac_exeext'
47180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47181   (eval $ac_try) 2>&5
47182   ac_status=$?
47183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47184   (exit $ac_status); }; }; then
47185   eval "$as_ac_var=yes"
47186 else
47187   echo "$as_me: failed program was:" >&5
47188 sed 's/^/| /' conftest.$ac_ext >&5
47189
47190 eval "$as_ac_var=no"
47191 fi
47192 rm -f conftest.err conftest.$ac_objext \
47193       conftest$ac_exeext conftest.$ac_ext
47194 fi
47195 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47196 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47197 if test `eval echo '${'$as_ac_var'}'` = yes; then
47198   cat >>confdefs.h <<_ACEOF
47199 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47200 _ACEOF
47201  ice_have_syslog=yes
47202 fi
47203 done
47204
47205 if test "${ice_have_syslog}" = yes; then
47206 echo "$as_me:$LINENO: checking for syslog declaration in syslog.h" >&5
47207 echo $ECHO_N "checking for syslog declaration in syslog.h... $ECHO_C" >&6
47208 if test "${ice_cv_have_syslog_decl+set}" = set; then
47209   echo $ECHO_N "(cached) $ECHO_C" >&6
47210 else
47211
47212 ice_cv_have_syslog_decl=no
47213 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
47214 ice_re_word='(^|[^a-zA-Z0-9_])'
47215 for header in syslog.h; do
47216 # Check for ordinary declaration
47217 cat >conftest.$ac_ext <<_ACEOF
47218 /* confdefs.h.  */
47219 _ACEOF
47220 cat confdefs.h >>conftest.$ac_ext
47221 cat >>conftest.$ac_ext <<_ACEOF
47222 /* end confdefs.h.  */
47223 #include <$header>
47224
47225 _ACEOF
47226 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47227   $EGREP "${ice_re_word}syslog[         ]*\(" >/dev/null 2>&1; then
47228   ice_cv_have_syslog_decl=yes
47229 fi
47230 rm -f conftest*
47231
47232 if test "$ice_cv_have_syslog_decl" = yes; then
47233         break
47234 fi
47235 # Check for "fixed" declaration like "getpid _PARAMS((int))"
47236 cat >conftest.$ac_ext <<_ACEOF
47237 /* confdefs.h.  */
47238 _ACEOF
47239 cat confdefs.h >>conftest.$ac_ext
47240 cat >>conftest.$ac_ext <<_ACEOF
47241 /* end confdefs.h.  */
47242 #include <$header>
47243
47244 _ACEOF
47245 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47246   $EGREP "${ice_re_word}syslog[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
47247   ice_cv_have_syslog_decl=yes
47248 fi
47249 rm -f conftest*
47250
47251 if test "$ice_cv_have_syslog_decl" = yes; then
47252         break
47253 fi
47254 done
47255
47256 fi
47257
47258 echo "$as_me:$LINENO: result: $ice_cv_have_syslog_decl" >&5
47259 echo "${ECHO_T}$ice_cv_have_syslog_decl" >&6
47260 if test "$ice_cv_have_syslog_decl" = yes; then
47261
47262 cat >>confdefs.h <<_ACEOF
47263 #define HAVE_SYSLOG_DECL 1
47264 _ACEOF
47265
47266 fi
47267 fi
47268
47269
47270 ice_have_system=no
47271
47272 for ac_func in system
47273 do
47274 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47275 echo "$as_me:$LINENO: checking for $ac_func" >&5
47276 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47277 if eval "test \"\${$as_ac_var+set}\" = set"; then
47278   echo $ECHO_N "(cached) $ECHO_C" >&6
47279 else
47280   cat >conftest.$ac_ext <<_ACEOF
47281 /* confdefs.h.  */
47282 _ACEOF
47283 cat confdefs.h >>conftest.$ac_ext
47284 cat >>conftest.$ac_ext <<_ACEOF
47285 /* end confdefs.h.  */
47286 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47287    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
47288 #define $ac_func innocuous_$ac_func
47289
47290 /* System header to define __stub macros and hopefully few prototypes,
47291     which can conflict with char $ac_func (); below.
47292     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47293     <limits.h> exists even on freestanding compilers.  */
47294
47295 #ifdef __STDC__
47296 # include <limits.h>
47297 #else
47298 # include <assert.h>
47299 #endif
47300
47301 #undef $ac_func
47302
47303 /* Override any gcc2 internal prototype to avoid an error.  */
47304 #ifdef __cplusplus
47305 extern "C"
47306 {
47307 #endif
47308 /* We use char because int might match the return type of a gcc2
47309    builtin and then its argument prototype would still apply.  */
47310 char $ac_func ();
47311 /* The GNU C library defines this for functions which it implements
47312     to always fail with ENOSYS.  Some functions are actually named
47313     something starting with __ and the normal name is an alias.  */
47314 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47315 choke me
47316 #else
47317 char (*f) () = $ac_func;
47318 #endif
47319 #ifdef __cplusplus
47320 }
47321 #endif
47322
47323 int
47324 main ()
47325 {
47326 return f != $ac_func;
47327   ;
47328   return 0;
47329 }
47330 _ACEOF
47331 rm -f conftest.$ac_objext conftest$ac_exeext
47332 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47333   (eval $ac_link) 2>conftest.er1
47334   ac_status=$?
47335   grep -v '^ *+' conftest.er1 >conftest.err
47336   rm -f conftest.er1
47337   cat conftest.err >&5
47338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47339   (exit $ac_status); } &&
47340          { ac_try='test -z "$ac_c_werror_flag"
47341                          || test ! -s conftest.err'
47342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47343   (eval $ac_try) 2>&5
47344   ac_status=$?
47345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47346   (exit $ac_status); }; } &&
47347          { ac_try='test -s conftest$ac_exeext'
47348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47349   (eval $ac_try) 2>&5
47350   ac_status=$?
47351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47352   (exit $ac_status); }; }; then
47353   eval "$as_ac_var=yes"
47354 else
47355   echo "$as_me: failed program was:" >&5
47356 sed 's/^/| /' conftest.$ac_ext >&5
47357
47358 eval "$as_ac_var=no"
47359 fi
47360 rm -f conftest.err conftest.$ac_objext \
47361       conftest$ac_exeext conftest.$ac_ext
47362 fi
47363 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47364 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47365 if test `eval echo '${'$as_ac_var'}'` = yes; then
47366   cat >>confdefs.h <<_ACEOF
47367 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47368 _ACEOF
47369  ice_have_system=yes
47370 fi
47371 done
47372
47373 if test "${ice_have_system}" = yes; then
47374 echo "$as_me:$LINENO: checking for system declaration in stdlib.h" >&5
47375 echo $ECHO_N "checking for system declaration in stdlib.h... $ECHO_C" >&6
47376 if test "${ice_cv_have_system_decl+set}" = set; then
47377   echo $ECHO_N "(cached) $ECHO_C" >&6
47378 else
47379
47380 ice_cv_have_system_decl=no
47381 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
47382 ice_re_word='(^|[^a-zA-Z0-9_])'
47383 for header in stdlib.h; do
47384 # Check for ordinary declaration
47385 cat >conftest.$ac_ext <<_ACEOF
47386 /* confdefs.h.  */
47387 _ACEOF
47388 cat confdefs.h >>conftest.$ac_ext
47389 cat >>conftest.$ac_ext <<_ACEOF
47390 /* end confdefs.h.  */
47391 #include <$header>
47392
47393 _ACEOF
47394 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47395   $EGREP "${ice_re_word}system[         ]*\(" >/dev/null 2>&1; then
47396   ice_cv_have_system_decl=yes
47397 fi
47398 rm -f conftest*
47399
47400 if test "$ice_cv_have_system_decl" = yes; then
47401         break
47402 fi
47403 # Check for "fixed" declaration like "getpid _PARAMS((int))"
47404 cat >conftest.$ac_ext <<_ACEOF
47405 /* confdefs.h.  */
47406 _ACEOF
47407 cat confdefs.h >>conftest.$ac_ext
47408 cat >>conftest.$ac_ext <<_ACEOF
47409 /* end confdefs.h.  */
47410 #include <$header>
47411
47412 _ACEOF
47413 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47414   $EGREP "${ice_re_word}system[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
47415   ice_cv_have_system_decl=yes
47416 fi
47417 rm -f conftest*
47418
47419 if test "$ice_cv_have_system_decl" = yes; then
47420         break
47421 fi
47422 done
47423
47424 fi
47425
47426 echo "$as_me:$LINENO: result: $ice_cv_have_system_decl" >&5
47427 echo "${ECHO_T}$ice_cv_have_system_decl" >&6
47428 if test "$ice_cv_have_system_decl" = yes; then
47429
47430 cat >>confdefs.h <<_ACEOF
47431 #define HAVE_SYSTEM_DECL 1
47432 _ACEOF
47433
47434 fi
47435 fi
47436
47437
47438 ice_have_time=no
47439
47440 for ac_func in time
47441 do
47442 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47443 echo "$as_me:$LINENO: checking for $ac_func" >&5
47444 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47445 if eval "test \"\${$as_ac_var+set}\" = set"; then
47446   echo $ECHO_N "(cached) $ECHO_C" >&6
47447 else
47448   cat >conftest.$ac_ext <<_ACEOF
47449 /* confdefs.h.  */
47450 _ACEOF
47451 cat confdefs.h >>conftest.$ac_ext
47452 cat >>conftest.$ac_ext <<_ACEOF
47453 /* end confdefs.h.  */
47454 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47455    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
47456 #define $ac_func innocuous_$ac_func
47457
47458 /* System header to define __stub macros and hopefully few prototypes,
47459     which can conflict with char $ac_func (); below.
47460     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47461     <limits.h> exists even on freestanding compilers.  */
47462
47463 #ifdef __STDC__
47464 # include <limits.h>
47465 #else
47466 # include <assert.h>
47467 #endif
47468
47469 #undef $ac_func
47470
47471 /* Override any gcc2 internal prototype to avoid an error.  */
47472 #ifdef __cplusplus
47473 extern "C"
47474 {
47475 #endif
47476 /* We use char because int might match the return type of a gcc2
47477    builtin and then its argument prototype would still apply.  */
47478 char $ac_func ();
47479 /* The GNU C library defines this for functions which it implements
47480     to always fail with ENOSYS.  Some functions are actually named
47481     something starting with __ and the normal name is an alias.  */
47482 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47483 choke me
47484 #else
47485 char (*f) () = $ac_func;
47486 #endif
47487 #ifdef __cplusplus
47488 }
47489 #endif
47490
47491 int
47492 main ()
47493 {
47494 return f != $ac_func;
47495   ;
47496   return 0;
47497 }
47498 _ACEOF
47499 rm -f conftest.$ac_objext conftest$ac_exeext
47500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47501   (eval $ac_link) 2>conftest.er1
47502   ac_status=$?
47503   grep -v '^ *+' conftest.er1 >conftest.err
47504   rm -f conftest.er1
47505   cat conftest.err >&5
47506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47507   (exit $ac_status); } &&
47508          { ac_try='test -z "$ac_c_werror_flag"
47509                          || test ! -s conftest.err'
47510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47511   (eval $ac_try) 2>&5
47512   ac_status=$?
47513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47514   (exit $ac_status); }; } &&
47515          { ac_try='test -s conftest$ac_exeext'
47516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47517   (eval $ac_try) 2>&5
47518   ac_status=$?
47519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47520   (exit $ac_status); }; }; then
47521   eval "$as_ac_var=yes"
47522 else
47523   echo "$as_me: failed program was:" >&5
47524 sed 's/^/| /' conftest.$ac_ext >&5
47525
47526 eval "$as_ac_var=no"
47527 fi
47528 rm -f conftest.err conftest.$ac_objext \
47529       conftest$ac_exeext conftest.$ac_ext
47530 fi
47531 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47532 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47533 if test `eval echo '${'$as_ac_var'}'` = yes; then
47534   cat >>confdefs.h <<_ACEOF
47535 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47536 _ACEOF
47537  ice_have_time=yes
47538 fi
47539 done
47540
47541 if test "${ice_have_time}" = yes; then
47542 echo "$as_me:$LINENO: checking for time declaration in time.h sys/time.h" >&5
47543 echo $ECHO_N "checking for time declaration in time.h sys/time.h... $ECHO_C" >&6
47544 if test "${ice_cv_have_time_decl+set}" = set; then
47545   echo $ECHO_N "(cached) $ECHO_C" >&6
47546 else
47547
47548 ice_cv_have_time_decl=no
47549 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
47550 ice_re_word='(^|[^a-zA-Z0-9_])'
47551 for header in time.h sys/time.h; do
47552 # Check for ordinary declaration
47553 cat >conftest.$ac_ext <<_ACEOF
47554 /* confdefs.h.  */
47555 _ACEOF
47556 cat confdefs.h >>conftest.$ac_ext
47557 cat >>conftest.$ac_ext <<_ACEOF
47558 /* end confdefs.h.  */
47559 #include <$header>
47560
47561 _ACEOF
47562 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47563   $EGREP "${ice_re_word}time[   ]*\(" >/dev/null 2>&1; then
47564   ice_cv_have_time_decl=yes
47565 fi
47566 rm -f conftest*
47567
47568 if test "$ice_cv_have_time_decl" = yes; then
47569         break
47570 fi
47571 # Check for "fixed" declaration like "getpid _PARAMS((int))"
47572 cat >conftest.$ac_ext <<_ACEOF
47573 /* confdefs.h.  */
47574 _ACEOF
47575 cat confdefs.h >>conftest.$ac_ext
47576 cat >>conftest.$ac_ext <<_ACEOF
47577 /* end confdefs.h.  */
47578 #include <$header>
47579
47580 _ACEOF
47581 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47582   $EGREP "${ice_re_word}time[   ]*$ice_re_params\(\(" >/dev/null 2>&1; then
47583   ice_cv_have_time_decl=yes
47584 fi
47585 rm -f conftest*
47586
47587 if test "$ice_cv_have_time_decl" = yes; then
47588         break
47589 fi
47590 done
47591
47592 fi
47593
47594 echo "$as_me:$LINENO: result: $ice_cv_have_time_decl" >&5
47595 echo "${ECHO_T}$ice_cv_have_time_decl" >&6
47596 if test "$ice_cv_have_time_decl" = yes; then
47597
47598 cat >>confdefs.h <<_ACEOF
47599 #define HAVE_TIME_DECL 1
47600 _ACEOF
47601
47602 fi
47603 fi
47604
47605
47606 ice_have_tolower=no
47607
47608 for ac_func in tolower
47609 do
47610 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47611 echo "$as_me:$LINENO: checking for $ac_func" >&5
47612 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47613 if eval "test \"\${$as_ac_var+set}\" = set"; then
47614   echo $ECHO_N "(cached) $ECHO_C" >&6
47615 else
47616   cat >conftest.$ac_ext <<_ACEOF
47617 /* confdefs.h.  */
47618 _ACEOF
47619 cat confdefs.h >>conftest.$ac_ext
47620 cat >>conftest.$ac_ext <<_ACEOF
47621 /* end confdefs.h.  */
47622 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47623    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
47624 #define $ac_func innocuous_$ac_func
47625
47626 /* System header to define __stub macros and hopefully few prototypes,
47627     which can conflict with char $ac_func (); below.
47628     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47629     <limits.h> exists even on freestanding compilers.  */
47630
47631 #ifdef __STDC__
47632 # include <limits.h>
47633 #else
47634 # include <assert.h>
47635 #endif
47636
47637 #undef $ac_func
47638
47639 /* Override any gcc2 internal prototype to avoid an error.  */
47640 #ifdef __cplusplus
47641 extern "C"
47642 {
47643 #endif
47644 /* We use char because int might match the return type of a gcc2
47645    builtin and then its argument prototype would still apply.  */
47646 char $ac_func ();
47647 /* The GNU C library defines this for functions which it implements
47648     to always fail with ENOSYS.  Some functions are actually named
47649     something starting with __ and the normal name is an alias.  */
47650 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47651 choke me
47652 #else
47653 char (*f) () = $ac_func;
47654 #endif
47655 #ifdef __cplusplus
47656 }
47657 #endif
47658
47659 int
47660 main ()
47661 {
47662 return f != $ac_func;
47663   ;
47664   return 0;
47665 }
47666 _ACEOF
47667 rm -f conftest.$ac_objext conftest$ac_exeext
47668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47669   (eval $ac_link) 2>conftest.er1
47670   ac_status=$?
47671   grep -v '^ *+' conftest.er1 >conftest.err
47672   rm -f conftest.er1
47673   cat conftest.err >&5
47674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47675   (exit $ac_status); } &&
47676          { ac_try='test -z "$ac_c_werror_flag"
47677                          || test ! -s conftest.err'
47678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47679   (eval $ac_try) 2>&5
47680   ac_status=$?
47681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47682   (exit $ac_status); }; } &&
47683          { ac_try='test -s conftest$ac_exeext'
47684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47685   (eval $ac_try) 2>&5
47686   ac_status=$?
47687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47688   (exit $ac_status); }; }; then
47689   eval "$as_ac_var=yes"
47690 else
47691   echo "$as_me: failed program was:" >&5
47692 sed 's/^/| /' conftest.$ac_ext >&5
47693
47694 eval "$as_ac_var=no"
47695 fi
47696 rm -f conftest.err conftest.$ac_objext \
47697       conftest$ac_exeext conftest.$ac_ext
47698 fi
47699 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47700 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47701 if test `eval echo '${'$as_ac_var'}'` = yes; then
47702   cat >>confdefs.h <<_ACEOF
47703 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47704 _ACEOF
47705  ice_have_tolower=yes
47706 fi
47707 done
47708
47709 if test "${ice_have_tolower}" = yes; then
47710 echo "$as_me:$LINENO: checking for tolower declaration in ctype.h" >&5
47711 echo $ECHO_N "checking for tolower declaration in ctype.h... $ECHO_C" >&6
47712 if test "${ice_cv_have_tolower_decl+set}" = set; then
47713   echo $ECHO_N "(cached) $ECHO_C" >&6
47714 else
47715
47716 ice_cv_have_tolower_decl=no
47717 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
47718 ice_re_word='(^|[^a-zA-Z0-9_])'
47719 for header in ctype.h; do
47720 # Check for ordinary declaration
47721 cat >conftest.$ac_ext <<_ACEOF
47722 /* confdefs.h.  */
47723 _ACEOF
47724 cat confdefs.h >>conftest.$ac_ext
47725 cat >>conftest.$ac_ext <<_ACEOF
47726 /* end confdefs.h.  */
47727 #include <$header>
47728
47729 _ACEOF
47730 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47731   $EGREP "${ice_re_word}tolower[        ]*\(" >/dev/null 2>&1; then
47732   ice_cv_have_tolower_decl=yes
47733 fi
47734 rm -f conftest*
47735
47736 if test "$ice_cv_have_tolower_decl" = yes; then
47737         break
47738 fi
47739 # Check for "fixed" declaration like "getpid _PARAMS((int))"
47740 cat >conftest.$ac_ext <<_ACEOF
47741 /* confdefs.h.  */
47742 _ACEOF
47743 cat confdefs.h >>conftest.$ac_ext
47744 cat >>conftest.$ac_ext <<_ACEOF
47745 /* end confdefs.h.  */
47746 #include <$header>
47747
47748 _ACEOF
47749 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47750   $EGREP "${ice_re_word}tolower[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
47751   ice_cv_have_tolower_decl=yes
47752 fi
47753 rm -f conftest*
47754
47755 if test "$ice_cv_have_tolower_decl" = yes; then
47756         break
47757 fi
47758 done
47759
47760 fi
47761
47762 echo "$as_me:$LINENO: result: $ice_cv_have_tolower_decl" >&5
47763 echo "${ECHO_T}$ice_cv_have_tolower_decl" >&6
47764 if test "$ice_cv_have_tolower_decl" = yes; then
47765
47766 cat >>confdefs.h <<_ACEOF
47767 #define HAVE_TOLOWER_DECL 1
47768 _ACEOF
47769
47770 fi
47771 fi
47772
47773
47774 ice_have_toupper=no
47775
47776 for ac_func in toupper
47777 do
47778 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47779 echo "$as_me:$LINENO: checking for $ac_func" >&5
47780 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47781 if eval "test \"\${$as_ac_var+set}\" = set"; then
47782   echo $ECHO_N "(cached) $ECHO_C" >&6
47783 else
47784   cat >conftest.$ac_ext <<_ACEOF
47785 /* confdefs.h.  */
47786 _ACEOF
47787 cat confdefs.h >>conftest.$ac_ext
47788 cat >>conftest.$ac_ext <<_ACEOF
47789 /* end confdefs.h.  */
47790 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47791    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
47792 #define $ac_func innocuous_$ac_func
47793
47794 /* System header to define __stub macros and hopefully few prototypes,
47795     which can conflict with char $ac_func (); below.
47796     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47797     <limits.h> exists even on freestanding compilers.  */
47798
47799 #ifdef __STDC__
47800 # include <limits.h>
47801 #else
47802 # include <assert.h>
47803 #endif
47804
47805 #undef $ac_func
47806
47807 /* Override any gcc2 internal prototype to avoid an error.  */
47808 #ifdef __cplusplus
47809 extern "C"
47810 {
47811 #endif
47812 /* We use char because int might match the return type of a gcc2
47813    builtin and then its argument prototype would still apply.  */
47814 char $ac_func ();
47815 /* The GNU C library defines this for functions which it implements
47816     to always fail with ENOSYS.  Some functions are actually named
47817     something starting with __ and the normal name is an alias.  */
47818 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47819 choke me
47820 #else
47821 char (*f) () = $ac_func;
47822 #endif
47823 #ifdef __cplusplus
47824 }
47825 #endif
47826
47827 int
47828 main ()
47829 {
47830 return f != $ac_func;
47831   ;
47832   return 0;
47833 }
47834 _ACEOF
47835 rm -f conftest.$ac_objext conftest$ac_exeext
47836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
47837   (eval $ac_link) 2>conftest.er1
47838   ac_status=$?
47839   grep -v '^ *+' conftest.er1 >conftest.err
47840   rm -f conftest.er1
47841   cat conftest.err >&5
47842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47843   (exit $ac_status); } &&
47844          { ac_try='test -z "$ac_c_werror_flag"
47845                          || test ! -s conftest.err'
47846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47847   (eval $ac_try) 2>&5
47848   ac_status=$?
47849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47850   (exit $ac_status); }; } &&
47851          { ac_try='test -s conftest$ac_exeext'
47852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47853   (eval $ac_try) 2>&5
47854   ac_status=$?
47855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47856   (exit $ac_status); }; }; then
47857   eval "$as_ac_var=yes"
47858 else
47859   echo "$as_me: failed program was:" >&5
47860 sed 's/^/| /' conftest.$ac_ext >&5
47861
47862 eval "$as_ac_var=no"
47863 fi
47864 rm -f conftest.err conftest.$ac_objext \
47865       conftest$ac_exeext conftest.$ac_ext
47866 fi
47867 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
47868 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
47869 if test `eval echo '${'$as_ac_var'}'` = yes; then
47870   cat >>confdefs.h <<_ACEOF
47871 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47872 _ACEOF
47873  ice_have_toupper=yes
47874 fi
47875 done
47876
47877 if test "${ice_have_toupper}" = yes; then
47878 echo "$as_me:$LINENO: checking for toupper declaration in ctype.h" >&5
47879 echo $ECHO_N "checking for toupper declaration in ctype.h... $ECHO_C" >&6
47880 if test "${ice_cv_have_toupper_decl+set}" = set; then
47881   echo $ECHO_N "(cached) $ECHO_C" >&6
47882 else
47883
47884 ice_cv_have_toupper_decl=no
47885 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
47886 ice_re_word='(^|[^a-zA-Z0-9_])'
47887 for header in ctype.h; do
47888 # Check for ordinary declaration
47889 cat >conftest.$ac_ext <<_ACEOF
47890 /* confdefs.h.  */
47891 _ACEOF
47892 cat confdefs.h >>conftest.$ac_ext
47893 cat >>conftest.$ac_ext <<_ACEOF
47894 /* end confdefs.h.  */
47895 #include <$header>
47896
47897 _ACEOF
47898 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47899   $EGREP "${ice_re_word}toupper[        ]*\(" >/dev/null 2>&1; then
47900   ice_cv_have_toupper_decl=yes
47901 fi
47902 rm -f conftest*
47903
47904 if test "$ice_cv_have_toupper_decl" = yes; then
47905         break
47906 fi
47907 # Check for "fixed" declaration like "getpid _PARAMS((int))"
47908 cat >conftest.$ac_ext <<_ACEOF
47909 /* confdefs.h.  */
47910 _ACEOF
47911 cat confdefs.h >>conftest.$ac_ext
47912 cat >>conftest.$ac_ext <<_ACEOF
47913 /* end confdefs.h.  */
47914 #include <$header>
47915
47916 _ACEOF
47917 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47918   $EGREP "${ice_re_word}toupper[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
47919   ice_cv_have_toupper_decl=yes
47920 fi
47921 rm -f conftest*
47922
47923 if test "$ice_cv_have_toupper_decl" = yes; then
47924         break
47925 fi
47926 done
47927
47928 fi
47929
47930 echo "$as_me:$LINENO: result: $ice_cv_have_toupper_decl" >&5
47931 echo "${ECHO_T}$ice_cv_have_toupper_decl" >&6
47932 if test "$ice_cv_have_toupper_decl" = yes; then
47933
47934 cat >>confdefs.h <<_ACEOF
47935 #define HAVE_TOUPPER_DECL 1
47936 _ACEOF
47937
47938 fi
47939 fi
47940
47941
47942 ice_have_ungetc=no
47943
47944 for ac_func in ungetc
47945 do
47946 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47947 echo "$as_me:$LINENO: checking for $ac_func" >&5
47948 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
47949 if eval "test \"\${$as_ac_var+set}\" = set"; then
47950   echo $ECHO_N "(cached) $ECHO_C" >&6
47951 else
47952   cat >conftest.$ac_ext <<_ACEOF
47953 /* confdefs.h.  */
47954 _ACEOF
47955 cat confdefs.h >>conftest.$ac_ext
47956 cat >>conftest.$ac_ext <<_ACEOF
47957 /* end confdefs.h.  */
47958 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47959    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
47960 #define $ac_func innocuous_$ac_func
47961
47962 /* System header to define __stub macros and hopefully few prototypes,
47963     which can conflict with char $ac_func (); below.
47964     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47965     <limits.h> exists even on freestanding compilers.  */
47966
47967 #ifdef __STDC__
47968 # include <limits.h>
47969 #else
47970 # include <assert.h>
47971 #endif
47972
47973 #undef $ac_func
47974
47975 /* Override any gcc2 internal prototype to avoid an error.  */
47976 #ifdef __cplusplus
47977 extern "C"
47978 {
47979 #endif
47980 /* We use char because int might match the return type of a gcc2
47981    builtin and then its argument prototype would still apply.  */
47982 char $ac_func ();
47983 /* The GNU C library defines this for functions which it implements
47984     to always fail with ENOSYS.  Some functions are actually named
47985     something starting with __ and the normal name is an alias.  */
47986 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
47987 choke me
47988 #else
47989 char (*f) () = $ac_func;
47990 #endif
47991 #ifdef __cplusplus
47992 }
47993 #endif
47994
47995 int
47996 main ()
47997 {
47998 return f != $ac_func;
47999   ;
48000   return 0;
48001 }
48002 _ACEOF
48003 rm -f conftest.$ac_objext conftest$ac_exeext
48004 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48005   (eval $ac_link) 2>conftest.er1
48006   ac_status=$?
48007   grep -v '^ *+' conftest.er1 >conftest.err
48008   rm -f conftest.er1
48009   cat conftest.err >&5
48010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48011   (exit $ac_status); } &&
48012          { ac_try='test -z "$ac_c_werror_flag"
48013                          || test ! -s conftest.err'
48014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48015   (eval $ac_try) 2>&5
48016   ac_status=$?
48017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48018   (exit $ac_status); }; } &&
48019          { ac_try='test -s conftest$ac_exeext'
48020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48021   (eval $ac_try) 2>&5
48022   ac_status=$?
48023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48024   (exit $ac_status); }; }; then
48025   eval "$as_ac_var=yes"
48026 else
48027   echo "$as_me: failed program was:" >&5
48028 sed 's/^/| /' conftest.$ac_ext >&5
48029
48030 eval "$as_ac_var=no"
48031 fi
48032 rm -f conftest.err conftest.$ac_objext \
48033       conftest$ac_exeext conftest.$ac_ext
48034 fi
48035 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
48036 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
48037 if test `eval echo '${'$as_ac_var'}'` = yes; then
48038   cat >>confdefs.h <<_ACEOF
48039 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48040 _ACEOF
48041  ice_have_ungetc=yes
48042 fi
48043 done
48044
48045 if test "${ice_have_ungetc}" = yes; then
48046 echo "$as_me:$LINENO: checking for ungetc declaration in stdio.h" >&5
48047 echo $ECHO_N "checking for ungetc declaration in stdio.h... $ECHO_C" >&6
48048 if test "${ice_cv_have_ungetc_decl+set}" = set; then
48049   echo $ECHO_N "(cached) $ECHO_C" >&6
48050 else
48051
48052 ice_cv_have_ungetc_decl=no
48053 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
48054 ice_re_word='(^|[^a-zA-Z0-9_])'
48055 for header in stdio.h; do
48056 # Check for ordinary declaration
48057 cat >conftest.$ac_ext <<_ACEOF
48058 /* confdefs.h.  */
48059 _ACEOF
48060 cat confdefs.h >>conftest.$ac_ext
48061 cat >>conftest.$ac_ext <<_ACEOF
48062 /* end confdefs.h.  */
48063 #include <$header>
48064
48065 _ACEOF
48066 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48067   $EGREP "${ice_re_word}ungetc[         ]*\(" >/dev/null 2>&1; then
48068   ice_cv_have_ungetc_decl=yes
48069 fi
48070 rm -f conftest*
48071
48072 if test "$ice_cv_have_ungetc_decl" = yes; then
48073         break
48074 fi
48075 # Check for "fixed" declaration like "getpid _PARAMS((int))"
48076 cat >conftest.$ac_ext <<_ACEOF
48077 /* confdefs.h.  */
48078 _ACEOF
48079 cat confdefs.h >>conftest.$ac_ext
48080 cat >>conftest.$ac_ext <<_ACEOF
48081 /* end confdefs.h.  */
48082 #include <$header>
48083
48084 _ACEOF
48085 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48086   $EGREP "${ice_re_word}ungetc[         ]*$ice_re_params\(\(" >/dev/null 2>&1; then
48087   ice_cv_have_ungetc_decl=yes
48088 fi
48089 rm -f conftest*
48090
48091 if test "$ice_cv_have_ungetc_decl" = yes; then
48092         break
48093 fi
48094 done
48095
48096 fi
48097
48098 echo "$as_me:$LINENO: result: $ice_cv_have_ungetc_decl" >&5
48099 echo "${ECHO_T}$ice_cv_have_ungetc_decl" >&6
48100 if test "$ice_cv_have_ungetc_decl" = yes; then
48101
48102 cat >>confdefs.h <<_ACEOF
48103 #define HAVE_UNGETC_DECL 1
48104 _ACEOF
48105
48106 fi
48107 fi
48108
48109
48110 for ac_func in vprintf
48111 do
48112 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48113 echo "$as_me:$LINENO: checking for $ac_func" >&5
48114 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
48115 if eval "test \"\${$as_ac_var+set}\" = set"; then
48116   echo $ECHO_N "(cached) $ECHO_C" >&6
48117 else
48118   cat >conftest.$ac_ext <<_ACEOF
48119 /* confdefs.h.  */
48120 _ACEOF
48121 cat confdefs.h >>conftest.$ac_ext
48122 cat >>conftest.$ac_ext <<_ACEOF
48123 /* end confdefs.h.  */
48124 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48125    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
48126 #define $ac_func innocuous_$ac_func
48127
48128 /* System header to define __stub macros and hopefully few prototypes,
48129     which can conflict with char $ac_func (); below.
48130     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48131     <limits.h> exists even on freestanding compilers.  */
48132
48133 #ifdef __STDC__
48134 # include <limits.h>
48135 #else
48136 # include <assert.h>
48137 #endif
48138
48139 #undef $ac_func
48140
48141 /* Override any gcc2 internal prototype to avoid an error.  */
48142 #ifdef __cplusplus
48143 extern "C"
48144 {
48145 #endif
48146 /* We use char because int might match the return type of a gcc2
48147    builtin and then its argument prototype would still apply.  */
48148 char $ac_func ();
48149 /* The GNU C library defines this for functions which it implements
48150     to always fail with ENOSYS.  Some functions are actually named
48151     something starting with __ and the normal name is an alias.  */
48152 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
48153 choke me
48154 #else
48155 char (*f) () = $ac_func;
48156 #endif
48157 #ifdef __cplusplus
48158 }
48159 #endif
48160
48161 int
48162 main ()
48163 {
48164 return f != $ac_func;
48165   ;
48166   return 0;
48167 }
48168 _ACEOF
48169 rm -f conftest.$ac_objext conftest$ac_exeext
48170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48171   (eval $ac_link) 2>conftest.er1
48172   ac_status=$?
48173   grep -v '^ *+' conftest.er1 >conftest.err
48174   rm -f conftest.er1
48175   cat conftest.err >&5
48176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48177   (exit $ac_status); } &&
48178          { ac_try='test -z "$ac_c_werror_flag"
48179                          || test ! -s conftest.err'
48180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48181   (eval $ac_try) 2>&5
48182   ac_status=$?
48183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48184   (exit $ac_status); }; } &&
48185          { ac_try='test -s conftest$ac_exeext'
48186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48187   (eval $ac_try) 2>&5
48188   ac_status=$?
48189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48190   (exit $ac_status); }; }; then
48191   eval "$as_ac_var=yes"
48192 else
48193   echo "$as_me: failed program was:" >&5
48194 sed 's/^/| /' conftest.$ac_ext >&5
48195
48196 eval "$as_ac_var=no"
48197 fi
48198 rm -f conftest.err conftest.$ac_objext \
48199       conftest$ac_exeext conftest.$ac_ext
48200 fi
48201 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
48202 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
48203 if test `eval echo '${'$as_ac_var'}'` = yes; then
48204   cat >>confdefs.h <<_ACEOF
48205 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48206 _ACEOF
48207
48208 echo "$as_me:$LINENO: checking for _doprnt" >&5
48209 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
48210 if test "${ac_cv_func__doprnt+set}" = set; then
48211   echo $ECHO_N "(cached) $ECHO_C" >&6
48212 else
48213   cat >conftest.$ac_ext <<_ACEOF
48214 /* confdefs.h.  */
48215 _ACEOF
48216 cat confdefs.h >>conftest.$ac_ext
48217 cat >>conftest.$ac_ext <<_ACEOF
48218 /* end confdefs.h.  */
48219 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
48220    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
48221 #define _doprnt innocuous__doprnt
48222
48223 /* System header to define __stub macros and hopefully few prototypes,
48224     which can conflict with char _doprnt (); below.
48225     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48226     <limits.h> exists even on freestanding compilers.  */
48227
48228 #ifdef __STDC__
48229 # include <limits.h>
48230 #else
48231 # include <assert.h>
48232 #endif
48233
48234 #undef _doprnt
48235
48236 /* Override any gcc2 internal prototype to avoid an error.  */
48237 #ifdef __cplusplus
48238 extern "C"
48239 {
48240 #endif
48241 /* We use char because int might match the return type of a gcc2
48242    builtin and then its argument prototype would still apply.  */
48243 char _doprnt ();
48244 /* The GNU C library defines this for functions which it implements
48245     to always fail with ENOSYS.  Some functions are actually named
48246     something starting with __ and the normal name is an alias.  */
48247 #if defined (__stub__doprnt) || defined (__stub____doprnt)
48248 choke me
48249 #else
48250 char (*f) () = _doprnt;
48251 #endif
48252 #ifdef __cplusplus
48253 }
48254 #endif
48255
48256 int
48257 main ()
48258 {
48259 return f != _doprnt;
48260   ;
48261   return 0;
48262 }
48263 _ACEOF
48264 rm -f conftest.$ac_objext conftest$ac_exeext
48265 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48266   (eval $ac_link) 2>conftest.er1
48267   ac_status=$?
48268   grep -v '^ *+' conftest.er1 >conftest.err
48269   rm -f conftest.er1
48270   cat conftest.err >&5
48271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48272   (exit $ac_status); } &&
48273          { ac_try='test -z "$ac_c_werror_flag"
48274                          || test ! -s conftest.err'
48275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48276   (eval $ac_try) 2>&5
48277   ac_status=$?
48278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48279   (exit $ac_status); }; } &&
48280          { ac_try='test -s conftest$ac_exeext'
48281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48282   (eval $ac_try) 2>&5
48283   ac_status=$?
48284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48285   (exit $ac_status); }; }; then
48286   ac_cv_func__doprnt=yes
48287 else
48288   echo "$as_me: failed program was:" >&5
48289 sed 's/^/| /' conftest.$ac_ext >&5
48290
48291 ac_cv_func__doprnt=no
48292 fi
48293 rm -f conftest.err conftest.$ac_objext \
48294       conftest$ac_exeext conftest.$ac_ext
48295 fi
48296 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
48297 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
48298 if test $ac_cv_func__doprnt = yes; then
48299
48300 cat >>confdefs.h <<\_ACEOF
48301 #define HAVE_DOPRNT 1
48302 _ACEOF
48303
48304 fi
48305
48306 fi
48307 done
48308
48309
48310
48311 ice_have_vfprintf=no
48312
48313 for ac_func in vfprintf
48314 do
48315 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48316 echo "$as_me:$LINENO: checking for $ac_func" >&5
48317 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
48318 if eval "test \"\${$as_ac_var+set}\" = set"; then
48319   echo $ECHO_N "(cached) $ECHO_C" >&6
48320 else
48321   cat >conftest.$ac_ext <<_ACEOF
48322 /* confdefs.h.  */
48323 _ACEOF
48324 cat confdefs.h >>conftest.$ac_ext
48325 cat >>conftest.$ac_ext <<_ACEOF
48326 /* end confdefs.h.  */
48327 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48328    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
48329 #define $ac_func innocuous_$ac_func
48330
48331 /* System header to define __stub macros and hopefully few prototypes,
48332     which can conflict with char $ac_func (); below.
48333     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48334     <limits.h> exists even on freestanding compilers.  */
48335
48336 #ifdef __STDC__
48337 # include <limits.h>
48338 #else
48339 # include <assert.h>
48340 #endif
48341
48342 #undef $ac_func
48343
48344 /* Override any gcc2 internal prototype to avoid an error.  */
48345 #ifdef __cplusplus
48346 extern "C"
48347 {
48348 #endif
48349 /* We use char because int might match the return type of a gcc2
48350    builtin and then its argument prototype would still apply.  */
48351 char $ac_func ();
48352 /* The GNU C library defines this for functions which it implements
48353     to always fail with ENOSYS.  Some functions are actually named
48354     something starting with __ and the normal name is an alias.  */
48355 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
48356 choke me
48357 #else
48358 char (*f) () = $ac_func;
48359 #endif
48360 #ifdef __cplusplus
48361 }
48362 #endif
48363
48364 int
48365 main ()
48366 {
48367 return f != $ac_func;
48368   ;
48369   return 0;
48370 }
48371 _ACEOF
48372 rm -f conftest.$ac_objext conftest$ac_exeext
48373 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48374   (eval $ac_link) 2>conftest.er1
48375   ac_status=$?
48376   grep -v '^ *+' conftest.er1 >conftest.err
48377   rm -f conftest.er1
48378   cat conftest.err >&5
48379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48380   (exit $ac_status); } &&
48381          { ac_try='test -z "$ac_c_werror_flag"
48382                          || test ! -s conftest.err'
48383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48384   (eval $ac_try) 2>&5
48385   ac_status=$?
48386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48387   (exit $ac_status); }; } &&
48388          { ac_try='test -s conftest$ac_exeext'
48389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48390   (eval $ac_try) 2>&5
48391   ac_status=$?
48392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48393   (exit $ac_status); }; }; then
48394   eval "$as_ac_var=yes"
48395 else
48396   echo "$as_me: failed program was:" >&5
48397 sed 's/^/| /' conftest.$ac_ext >&5
48398
48399 eval "$as_ac_var=no"
48400 fi
48401 rm -f conftest.err conftest.$ac_objext \
48402       conftest$ac_exeext conftest.$ac_ext
48403 fi
48404 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
48405 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
48406 if test `eval echo '${'$as_ac_var'}'` = yes; then
48407   cat >>confdefs.h <<_ACEOF
48408 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48409 _ACEOF
48410  ice_have_vfprintf=yes
48411 fi
48412 done
48413
48414 if test "${ice_have_vfprintf}" = yes; then
48415 echo "$as_me:$LINENO: checking for vfprintf declaration in stdio.h stdlib.h" >&5
48416 echo $ECHO_N "checking for vfprintf declaration in stdio.h stdlib.h... $ECHO_C" >&6
48417 if test "${ice_cv_have_vfprintf_decl+set}" = set; then
48418   echo $ECHO_N "(cached) $ECHO_C" >&6
48419 else
48420
48421 ice_cv_have_vfprintf_decl=no
48422 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
48423 ice_re_word='(^|[^a-zA-Z0-9_])'
48424 for header in stdio.h stdlib.h; do
48425 # Check for ordinary declaration
48426 cat >conftest.$ac_ext <<_ACEOF
48427 /* confdefs.h.  */
48428 _ACEOF
48429 cat confdefs.h >>conftest.$ac_ext
48430 cat >>conftest.$ac_ext <<_ACEOF
48431 /* end confdefs.h.  */
48432 #include <$header>
48433
48434 _ACEOF
48435 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48436   $EGREP "${ice_re_word}vfprintf[       ]*\(" >/dev/null 2>&1; then
48437   ice_cv_have_vfprintf_decl=yes
48438 fi
48439 rm -f conftest*
48440
48441 if test "$ice_cv_have_vfprintf_decl" = yes; then
48442         break
48443 fi
48444 # Check for "fixed" declaration like "getpid _PARAMS((int))"
48445 cat >conftest.$ac_ext <<_ACEOF
48446 /* confdefs.h.  */
48447 _ACEOF
48448 cat confdefs.h >>conftest.$ac_ext
48449 cat >>conftest.$ac_ext <<_ACEOF
48450 /* end confdefs.h.  */
48451 #include <$header>
48452
48453 _ACEOF
48454 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48455   $EGREP "${ice_re_word}vfprintf[       ]*$ice_re_params\(\(" >/dev/null 2>&1; then
48456   ice_cv_have_vfprintf_decl=yes
48457 fi
48458 rm -f conftest*
48459
48460 if test "$ice_cv_have_vfprintf_decl" = yes; then
48461         break
48462 fi
48463 done
48464
48465 fi
48466
48467 echo "$as_me:$LINENO: result: $ice_cv_have_vfprintf_decl" >&5
48468 echo "${ECHO_T}$ice_cv_have_vfprintf_decl" >&6
48469 if test "$ice_cv_have_vfprintf_decl" = yes; then
48470
48471 cat >>confdefs.h <<_ACEOF
48472 #define HAVE_VFPRINTF_DECL 1
48473 _ACEOF
48474
48475 fi
48476 fi
48477
48478
48479 ice_have_vprintf=no
48480
48481 for ac_func in vprintf
48482 do
48483 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48484 echo "$as_me:$LINENO: checking for $ac_func" >&5
48485 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
48486 if eval "test \"\${$as_ac_var+set}\" = set"; then
48487   echo $ECHO_N "(cached) $ECHO_C" >&6
48488 else
48489   cat >conftest.$ac_ext <<_ACEOF
48490 /* confdefs.h.  */
48491 _ACEOF
48492 cat confdefs.h >>conftest.$ac_ext
48493 cat >>conftest.$ac_ext <<_ACEOF
48494 /* end confdefs.h.  */
48495 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48496    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
48497 #define $ac_func innocuous_$ac_func
48498
48499 /* System header to define __stub macros and hopefully few prototypes,
48500     which can conflict with char $ac_func (); below.
48501     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48502     <limits.h> exists even on freestanding compilers.  */
48503
48504 #ifdef __STDC__
48505 # include <limits.h>
48506 #else
48507 # include <assert.h>
48508 #endif
48509
48510 #undef $ac_func
48511
48512 /* Override any gcc2 internal prototype to avoid an error.  */
48513 #ifdef __cplusplus
48514 extern "C"
48515 {
48516 #endif
48517 /* We use char because int might match the return type of a gcc2
48518    builtin and then its argument prototype would still apply.  */
48519 char $ac_func ();
48520 /* The GNU C library defines this for functions which it implements
48521     to always fail with ENOSYS.  Some functions are actually named
48522     something starting with __ and the normal name is an alias.  */
48523 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
48524 choke me
48525 #else
48526 char (*f) () = $ac_func;
48527 #endif
48528 #ifdef __cplusplus
48529 }
48530 #endif
48531
48532 int
48533 main ()
48534 {
48535 return f != $ac_func;
48536   ;
48537   return 0;
48538 }
48539 _ACEOF
48540 rm -f conftest.$ac_objext conftest$ac_exeext
48541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48542   (eval $ac_link) 2>conftest.er1
48543   ac_status=$?
48544   grep -v '^ *+' conftest.er1 >conftest.err
48545   rm -f conftest.er1
48546   cat conftest.err >&5
48547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48548   (exit $ac_status); } &&
48549          { ac_try='test -z "$ac_c_werror_flag"
48550                          || test ! -s conftest.err'
48551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48552   (eval $ac_try) 2>&5
48553   ac_status=$?
48554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48555   (exit $ac_status); }; } &&
48556          { ac_try='test -s conftest$ac_exeext'
48557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48558   (eval $ac_try) 2>&5
48559   ac_status=$?
48560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48561   (exit $ac_status); }; }; then
48562   eval "$as_ac_var=yes"
48563 else
48564   echo "$as_me: failed program was:" >&5
48565 sed 's/^/| /' conftest.$ac_ext >&5
48566
48567 eval "$as_ac_var=no"
48568 fi
48569 rm -f conftest.err conftest.$ac_objext \
48570       conftest$ac_exeext conftest.$ac_ext
48571 fi
48572 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
48573 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
48574 if test `eval echo '${'$as_ac_var'}'` = yes; then
48575   cat >>confdefs.h <<_ACEOF
48576 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48577 _ACEOF
48578  ice_have_vprintf=yes
48579 fi
48580 done
48581
48582 if test "${ice_have_vprintf}" = yes; then
48583 echo "$as_me:$LINENO: checking for vprintf declaration in stdio.h stdlib.h" >&5
48584 echo $ECHO_N "checking for vprintf declaration in stdio.h stdlib.h... $ECHO_C" >&6
48585 if test "${ice_cv_have_vprintf_decl+set}" = set; then
48586   echo $ECHO_N "(cached) $ECHO_C" >&6
48587 else
48588
48589 ice_cv_have_vprintf_decl=no
48590 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
48591 ice_re_word='(^|[^a-zA-Z0-9_])'
48592 for header in stdio.h stdlib.h; do
48593 # Check for ordinary declaration
48594 cat >conftest.$ac_ext <<_ACEOF
48595 /* confdefs.h.  */
48596 _ACEOF
48597 cat confdefs.h >>conftest.$ac_ext
48598 cat >>conftest.$ac_ext <<_ACEOF
48599 /* end confdefs.h.  */
48600 #include <$header>
48601
48602 _ACEOF
48603 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48604   $EGREP "${ice_re_word}vprintf[        ]*\(" >/dev/null 2>&1; then
48605   ice_cv_have_vprintf_decl=yes
48606 fi
48607 rm -f conftest*
48608
48609 if test "$ice_cv_have_vprintf_decl" = yes; then
48610         break
48611 fi
48612 # Check for "fixed" declaration like "getpid _PARAMS((int))"
48613 cat >conftest.$ac_ext <<_ACEOF
48614 /* confdefs.h.  */
48615 _ACEOF
48616 cat confdefs.h >>conftest.$ac_ext
48617 cat >>conftest.$ac_ext <<_ACEOF
48618 /* end confdefs.h.  */
48619 #include <$header>
48620
48621 _ACEOF
48622 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48623   $EGREP "${ice_re_word}vprintf[        ]*$ice_re_params\(\(" >/dev/null 2>&1; then
48624   ice_cv_have_vprintf_decl=yes
48625 fi
48626 rm -f conftest*
48627
48628 if test "$ice_cv_have_vprintf_decl" = yes; then
48629         break
48630 fi
48631 done
48632
48633 fi
48634
48635 echo "$as_me:$LINENO: result: $ice_cv_have_vprintf_decl" >&5
48636 echo "${ECHO_T}$ice_cv_have_vprintf_decl" >&6
48637 if test "$ice_cv_have_vprintf_decl" = yes; then
48638
48639 cat >>confdefs.h <<_ACEOF
48640 #define HAVE_VPRINTF_DECL 1
48641 _ACEOF
48642
48643 fi
48644 fi
48645
48646
48647 ice_have_vsprintf=no
48648
48649 for ac_func in vsprintf
48650 do
48651 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48652 echo "$as_me:$LINENO: checking for $ac_func" >&5
48653 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
48654 if eval "test \"\${$as_ac_var+set}\" = set"; then
48655   echo $ECHO_N "(cached) $ECHO_C" >&6
48656 else
48657   cat >conftest.$ac_ext <<_ACEOF
48658 /* confdefs.h.  */
48659 _ACEOF
48660 cat confdefs.h >>conftest.$ac_ext
48661 cat >>conftest.$ac_ext <<_ACEOF
48662 /* end confdefs.h.  */
48663 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48664    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
48665 #define $ac_func innocuous_$ac_func
48666
48667 /* System header to define __stub macros and hopefully few prototypes,
48668     which can conflict with char $ac_func (); below.
48669     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48670     <limits.h> exists even on freestanding compilers.  */
48671
48672 #ifdef __STDC__
48673 # include <limits.h>
48674 #else
48675 # include <assert.h>
48676 #endif
48677
48678 #undef $ac_func
48679
48680 /* Override any gcc2 internal prototype to avoid an error.  */
48681 #ifdef __cplusplus
48682 extern "C"
48683 {
48684 #endif
48685 /* We use char because int might match the return type of a gcc2
48686    builtin and then its argument prototype would still apply.  */
48687 char $ac_func ();
48688 /* The GNU C library defines this for functions which it implements
48689     to always fail with ENOSYS.  Some functions are actually named
48690     something starting with __ and the normal name is an alias.  */
48691 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
48692 choke me
48693 #else
48694 char (*f) () = $ac_func;
48695 #endif
48696 #ifdef __cplusplus
48697 }
48698 #endif
48699
48700 int
48701 main ()
48702 {
48703 return f != $ac_func;
48704   ;
48705   return 0;
48706 }
48707 _ACEOF
48708 rm -f conftest.$ac_objext conftest$ac_exeext
48709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48710   (eval $ac_link) 2>conftest.er1
48711   ac_status=$?
48712   grep -v '^ *+' conftest.er1 >conftest.err
48713   rm -f conftest.er1
48714   cat conftest.err >&5
48715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48716   (exit $ac_status); } &&
48717          { ac_try='test -z "$ac_c_werror_flag"
48718                          || test ! -s conftest.err'
48719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48720   (eval $ac_try) 2>&5
48721   ac_status=$?
48722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48723   (exit $ac_status); }; } &&
48724          { ac_try='test -s conftest$ac_exeext'
48725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48726   (eval $ac_try) 2>&5
48727   ac_status=$?
48728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48729   (exit $ac_status); }; }; then
48730   eval "$as_ac_var=yes"
48731 else
48732   echo "$as_me: failed program was:" >&5
48733 sed 's/^/| /' conftest.$ac_ext >&5
48734
48735 eval "$as_ac_var=no"
48736 fi
48737 rm -f conftest.err conftest.$ac_objext \
48738       conftest$ac_exeext conftest.$ac_ext
48739 fi
48740 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
48741 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
48742 if test `eval echo '${'$as_ac_var'}'` = yes; then
48743   cat >>confdefs.h <<_ACEOF
48744 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
48745 _ACEOF
48746  ice_have_vsprintf=yes
48747 fi
48748 done
48749
48750 if test "${ice_have_vsprintf}" = yes; then
48751 echo "$as_me:$LINENO: checking for vsprintf declaration in stdio.h stdlib.h" >&5
48752 echo $ECHO_N "checking for vsprintf declaration in stdio.h stdlib.h... $ECHO_C" >&6
48753 if test "${ice_cv_have_vsprintf_decl+set}" = set; then
48754   echo $ECHO_N "(cached) $ECHO_C" >&6
48755 else
48756
48757 ice_cv_have_vsprintf_decl=no
48758 ice_re_params='[a-zA-Z_][a-zA-Z0-9_]*'
48759 ice_re_word='(^|[^a-zA-Z0-9_])'
48760 for header in stdio.h stdlib.h; do
48761 # Check for ordinary declaration
48762 cat >conftest.$ac_ext <<_ACEOF
48763 /* confdefs.h.  */
48764 _ACEOF
48765 cat confdefs.h >>conftest.$ac_ext
48766 cat >>conftest.$ac_ext <<_ACEOF
48767 /* end confdefs.h.  */
48768 #include <$header>
48769
48770 _ACEOF
48771 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48772   $EGREP "${ice_re_word}vsprintf[       ]*\(" >/dev/null 2>&1; then
48773   ice_cv_have_vsprintf_decl=yes
48774 fi
48775 rm -f conftest*
48776
48777 if test "$ice_cv_have_vsprintf_decl" = yes; then
48778         break
48779 fi
48780 # Check for "fixed" declaration like "getpid _PARAMS((int))"
48781 cat >conftest.$ac_ext <<_ACEOF
48782 /* confdefs.h.  */
48783 _ACEOF
48784 cat confdefs.h >>conftest.$ac_ext
48785 cat >>conftest.$ac_ext <<_ACEOF
48786 /* end confdefs.h.  */
48787 #include <$header>
48788
48789 _ACEOF
48790 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48791   $EGREP "${ice_re_word}vsprintf[       ]*$ice_re_params\(\(" >/dev/null 2>&1; then
48792   ice_cv_have_vsprintf_decl=yes
48793 fi
48794 rm -f conftest*
48795
48796 if test "$ice_cv_have_vsprintf_decl" = yes; then
48797         break
48798 fi
48799 done
48800
48801 fi
48802
48803 echo "$as_me:$LINENO: result: $ice_cv_have_vsprintf_decl" >&5
48804 echo "${ECHO_T}$ice_cv_have_vsprintf_decl" >&6
48805 if test "$ice_cv_have_vsprintf_decl" = yes; then
48806
48807 cat >>confdefs.h <<_ACEOF
48808 #define HAVE_VSPRINTF_DECL 1
48809 _ACEOF
48810
48811 fi
48812 fi
48813
48814 echo "$as_me:$LINENO: checking for wait4" >&5
48815 echo $ECHO_N "checking for wait4... $ECHO_C" >&6
48816 if test "${ac_cv_func_wait4+set}" = set; then
48817   echo $ECHO_N "(cached) $ECHO_C" >&6
48818 else
48819   cat >conftest.$ac_ext <<_ACEOF
48820 /* confdefs.h.  */
48821 _ACEOF
48822 cat confdefs.h >>conftest.$ac_ext
48823 cat >>conftest.$ac_ext <<_ACEOF
48824 /* end confdefs.h.  */
48825 /* Define wait4 to an innocuous variant, in case <limits.h> declares wait4.
48826    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
48827 #define wait4 innocuous_wait4
48828
48829 /* System header to define __stub macros and hopefully few prototypes,
48830     which can conflict with char wait4 (); below.
48831     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48832     <limits.h> exists even on freestanding compilers.  */
48833
48834 #ifdef __STDC__
48835 # include <limits.h>
48836 #else
48837 # include <assert.h>
48838 #endif
48839
48840 #undef wait4
48841
48842 /* Override any gcc2 internal prototype to avoid an error.  */
48843 #ifdef __cplusplus
48844 extern "C"
48845 {
48846 #endif
48847 /* We use char because int might match the return type of a gcc2
48848    builtin and then its argument prototype would still apply.  */
48849 char wait4 ();
48850 /* The GNU C library defines this for functions which it implements
48851     to always fail with ENOSYS.  Some functions are actually named
48852     something starting with __ and the normal name is an alias.  */
48853 #if defined (__stub_wait4) || defined (__stub___wait4)
48854 choke me
48855 #else
48856 char (*f) () = wait4;
48857 #endif
48858 #ifdef __cplusplus
48859 }
48860 #endif
48861
48862 int
48863 main ()
48864 {
48865 return f != wait4;
48866   ;
48867   return 0;
48868 }
48869 _ACEOF
48870 rm -f conftest.$ac_objext conftest$ac_exeext
48871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48872   (eval $ac_link) 2>conftest.er1
48873   ac_status=$?
48874   grep -v '^ *+' conftest.er1 >conftest.err
48875   rm -f conftest.er1
48876   cat conftest.err >&5
48877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48878   (exit $ac_status); } &&
48879          { ac_try='test -z "$ac_c_werror_flag"
48880                          || test ! -s conftest.err'
48881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48882   (eval $ac_try) 2>&5
48883   ac_status=$?
48884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48885   (exit $ac_status); }; } &&
48886          { ac_try='test -s conftest$ac_exeext'
48887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48888   (eval $ac_try) 2>&5
48889   ac_status=$?
48890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48891   (exit $ac_status); }; }; then
48892   ac_cv_func_wait4=yes
48893 else
48894   echo "$as_me: failed program was:" >&5
48895 sed 's/^/| /' conftest.$ac_ext >&5
48896
48897 ac_cv_func_wait4=no
48898 fi
48899 rm -f conftest.err conftest.$ac_objext \
48900       conftest$ac_exeext conftest.$ac_ext
48901 fi
48902 echo "$as_me:$LINENO: result: $ac_cv_func_wait4" >&5
48903 echo "${ECHO_T}$ac_cv_func_wait4" >&6
48904
48905
48906 for ac_func in waitpid
48907 do
48908 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48909 echo "$as_me:$LINENO: checking for $ac_func" >&5
48910 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
48911 if eval "test \"\${$as_ac_var+set}\" = set"; then
48912   echo $ECHO_N "(cached) $ECHO_C" >&6
48913 else
48914   cat >conftest.$ac_ext <<_ACEOF
48915 /* confdefs.h.  */
48916 _ACEOF
48917 cat confdefs.h >>conftest.$ac_ext
48918 cat >>conftest.$ac_ext <<_ACEOF
48919 /* end confdefs.h.  */
48920 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48921    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
48922 #define $ac_func innocuous_$ac_func
48923
48924 /* System header to define __stub macros and hopefully few prototypes,
48925     which can conflict with char $ac_func (); below.
48926     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48927     <limits.h> exists even on freestanding compilers.  */
48928
48929 #ifdef __STDC__
48930 # include <limits.h>
48931 #else
48932 # include <assert.h>
48933 #endif
48934
48935 #undef $ac_func
48936
48937 /* Override any gcc2 internal prototype to avoid an error.  */
48938 #ifdef __cplusplus
48939 extern "C"
48940 {
48941 #endif
48942 /* We use char because int might match the return type of a gcc2
48943    builtin and then its argument prototype would still apply.  */
48944 char $ac_func ();
48945 /* The GNU C library defines this for functions which it implements
48946     to always fail with ENOSYS.  Some functions are actually named
48947     something starting with __ and the normal name is an alias.  */
48948 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
48949 choke me
48950 #else
48951 char (*f) () = $ac_func;
48952 #endif
48953 #ifdef __cplusplus
48954 }
48955 #endif
48956
48957 int
48958 main ()
48959 {
48960 return f != $ac_func;
48961   ;
48962   return 0;
48963 }
48964 _ACEOF
48965 rm -f conftest.$ac_objext conftest$ac_exeext
48966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48967   (eval $ac_link) 2>conftest.er1
48968   ac_status=$?
48969   grep -v '^ *+' conftest.er1 >conftest.err
48970   rm -f conftest.er1
48971   cat conftest.err >&5
48972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48973   (exit $ac_status); } &&
48974          { ac_try='test -z "$ac_c_werror_flag"
48975                          || test ! -s conftest.err'
48976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48977   (eval $ac_try) 2>&5
48978   ac_status=$?
48979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48980   (exit $ac_status); }; } &&
48981          { ac_try='test -s conftest$ac_exeext'
48982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48983   (eval $ac_try) 2>&5
48984   ac_status=$?
48985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48986   (exit $ac_status); }; }; then
48987   eval "$as_ac_var=yes"
48988 else
48989   echo "$as_me: failed program was:" >&5
48990 sed 's/^/| /' conftest.$ac_ext >&5
48991
48992 eval "$as_ac_var=no"
48993 fi
48994 rm -f conftest.err conftest.$ac_objext \
48995       conftest$ac_exeext conftest.$ac_ext
48996 fi
48997 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
48998 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
48999 if test `eval echo '${'$as_ac_var'}'` = yes; then
49000   cat >>confdefs.h <<_ACEOF
49001 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49002 _ACEOF
49003
49004 else
49005   case $LIBOBJS in
49006     "$ac_func.$ac_objext"   | \
49007   *" $ac_func.$ac_objext"   | \
49008     "$ac_func.$ac_objext "* | \
49009   *" $ac_func.$ac_objext "* ) ;;
49010   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
49011 esac
49012
49013 fi
49014 done
49015
49016
49017
49018 for ac_func in strcasecmp
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_strcasecmp=no
49131
49132 for ac_func in strcasecmp
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_strcasecmp=yes
49230 fi
49231 done
49232
49233 if test "${ice_have_strcasecmp}" = yes; then
49234 echo "$as_me:$LINENO: checking for strcasecmp declaration in string.h strings.h" >&5
49235 echo $ECHO_N "checking for strcasecmp declaration in string.h strings.h... $ECHO_C" >&6
49236 if test "${ice_cv_have_strcasecmp_decl+set}" = set; then
49237   echo $ECHO_N "(cached) $ECHO_C" >&6
49238 else
49239
49240 ice_cv_have_strcasecmp_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}strcasecmp[     ]*\(" >/dev/null 2>&1; then
49256   ice_cv_have_strcasecmp_decl=yes
49257 fi
49258 rm -f conftest*
49259
49260 if test "$ice_cv_have_strcasecmp_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}strcasecmp[     ]*$ice_re_params\(\(" >/dev/null 2>&1; then
49275   ice_cv_have_strcasecmp_decl=yes
49276 fi
49277 rm -f conftest*
49278
49279 if test "$ice_cv_have_strcasecmp_decl" = yes; then
49280         break
49281 fi
49282 done
49283
49284 fi
49285
49286 echo "$as_me:$LINENO: result: $ice_cv_have_strcasecmp_decl" >&5
49287 echo "${ECHO_T}$ice_cv_have_strcasecmp_decl" >&6
49288 if test "$ice_cv_have_strcasecmp_decl" = yes; then
49289
49290 cat >>confdefs.h <<_ACEOF
49291 #define HAVE_STRCASECMP_DECL 1
49292 _ACEOF
49293
49294 fi
49295 fi
49296
49297
49298
49299 for ac_func in fnmatch
49300 do
49301 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49302 echo "$as_me:$LINENO: checking for $ac_func" >&5
49303 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
49304 if eval "test \"\${$as_ac_var+set}\" = set"; then
49305   echo $ECHO_N "(cached) $ECHO_C" >&6
49306 else
49307   cat >conftest.$ac_ext <<_ACEOF
49308 /* confdefs.h.  */
49309 _ACEOF
49310 cat confdefs.h >>conftest.$ac_ext
49311 cat >>conftest.$ac_ext <<_ACEOF
49312 /* end confdefs.h.  */
49313 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
49314    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
49315 #define $ac_func innocuous_$ac_func
49316
49317 /* System header to define __stub macros and hopefully few prototypes,
49318     which can conflict with char $ac_func (); below.
49319     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49320     <limits.h> exists even on freestanding compilers.  */
49321
49322 #ifdef __STDC__
49323 # include <limits.h>
49324 #else
49325 # include <assert.h>
49326 #endif
49327
49328 #undef $ac_func
49329
49330 /* Override any gcc2 internal prototype to avoid an error.  */
49331 #ifdef __cplusplus
49332 extern "C"
49333 {
49334 #endif
49335 /* We use char because int might match the return type of a gcc2
49336    builtin and then its argument prototype would still apply.  */
49337 char $ac_func ();
49338 /* The GNU C library defines this for functions which it implements
49339     to always fail with ENOSYS.  Some functions are actually named
49340     something starting with __ and the normal name is an alias.  */
49341 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
49342 choke me
49343 #else
49344 char (*f) () = $ac_func;
49345 #endif
49346 #ifdef __cplusplus
49347 }
49348 #endif
49349
49350 int
49351 main ()
49352 {
49353 return f != $ac_func;
49354   ;
49355   return 0;
49356 }
49357 _ACEOF
49358 rm -f conftest.$ac_objext conftest$ac_exeext
49359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49360   (eval $ac_link) 2>conftest.er1
49361   ac_status=$?
49362   grep -v '^ *+' conftest.er1 >conftest.err
49363   rm -f conftest.er1
49364   cat conftest.err >&5
49365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49366   (exit $ac_status); } &&
49367          { ac_try='test -z "$ac_c_werror_flag"
49368                          || test ! -s conftest.err'
49369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49370   (eval $ac_try) 2>&5
49371   ac_status=$?
49372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49373   (exit $ac_status); }; } &&
49374          { ac_try='test -s conftest$ac_exeext'
49375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49376   (eval $ac_try) 2>&5
49377   ac_status=$?
49378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49379   (exit $ac_status); }; }; then
49380   eval "$as_ac_var=yes"
49381 else
49382   echo "$as_me: failed program was:" >&5
49383 sed 's/^/| /' conftest.$ac_ext >&5
49384
49385 eval "$as_ac_var=no"
49386 fi
49387 rm -f conftest.err conftest.$ac_objext \
49388       conftest$ac_exeext conftest.$ac_ext
49389 fi
49390 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
49391 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
49392 if test `eval echo '${'$as_ac_var'}'` = yes; then
49393   cat >>confdefs.h <<_ACEOF
49394 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49395 _ACEOF
49396
49397 fi
49398 done
49399
49400
49401 if test "$ac_cv_func_fnmatch" != yes -a "$USE_QUICK_AND_DIRTY_ESTIMATES" != yes ; then
49402     { echo "$as_me:$LINENO: WARNING: --with-qde and no fnmatch -- gnutar exclude files will not work" >&5
49403 echo "$as_me: WARNING: --with-qde and no fnmatch -- gnutar exclude files will not work" >&2;}
49404 fi
49405
49406 echo "$as_me:$LINENO: checking disk device prefixes" >&5
49407 echo $ECHO_N "checking disk device prefixes... $ECHO_C" >&6
49408 dfline=`(
49409     df / | while read line; do
49410         set -- $line
49411         while test $# -gt 0; do
49412             if test "$1" = "/"; then
49413                 echo $line
49414                 break 2
49415             fi
49416             shift
49417         done
49418     done
49419 ) | sed 's/(//' | sed 's/)//' `
49420
49421 mount=`(
49422     set -- $dfline
49423     while test $# -gt 0; do
49424         if expr "$1" : '.*dev' >/dev/null 2>&1; then
49425             echo $1
49426             break
49427         fi
49428         shift
49429     done
49430 )`
49431
49432 if test "$DEV_PREFIX" && test "$RDEV_PREFIX"; then
49433     echo "$as_me:$LINENO: result: (predefined) $DEV_PREFIX - $RDEV_PREFIX" >&5
49434 echo "${ECHO_T}(predefined) $DEV_PREFIX - $RDEV_PREFIX" >&6
49435 else
49436     if test -d /dev/dsk; then
49437         DEV_PREFIX=/dev/dsk/
49438         if test -d /dev/rdsk; then
49439             RDEV_PREFIX=/dev/rdsk/
49440         else
49441             RDEV_PREFIX=/dev/dsk/
49442         fi
49443     elif test -d /dev; then
49444         case "$target" in
49445             *-sni-sysv4)
49446                 dev_prefix=/dev/dsk/
49447                 rdev_prefix=/dev/rdsk/
49448                 { echo "$as_me:$LINENO: WARNING: \"*** Run amsinixfixdevs on Sinix systems using VxFS.\"" >&5
49449 echo "$as_me: WARNING: \"*** Run amsinixfixdevs on Sinix systems using VxFS.\"" >&2;}
49450                 ;;
49451
49452             *)
49453                 DEV_PREFIX=/dev/
49454                 # Some systems, notably Linux, do not have raw disk devices
49455                 # names.  Check this by trying to see if a raw disk device name
49456                 # exists using the normal raw device path prepended to the
49457                 # mount point of the root filesystem.
49458                 if test "$mount"; then
49459                     dev_name="/dev/r`basename $mount`"
49460                     if test -b $dev_name -o -c $dev_name; then
49461                         RDEV_PREFIX=/dev/r
49462                     else
49463                         RDEV_PREFIX=/dev/
49464                     fi
49465                 else
49466                     RDEV_PREFIX=/dev/r
49467                 fi
49468                 ;;
49469         esac
49470     else
49471         DEV_PREFIX=/
49472         RDEV_PREFIX=/
49473     fi
49474     echo "$as_me:$LINENO: result: $DEV_PREFIX - $RDEV_PREFIX" >&5
49475 echo "${ECHO_T}$DEV_PREFIX - $RDEV_PREFIX" >&6
49476 fi
49477
49478
49479 cat >>confdefs.h <<_ACEOF
49480 #define DEV_PREFIX "${DEV_PREFIX}"
49481 _ACEOF
49482
49483
49484 cat >>confdefs.h <<_ACEOF
49485 #define RDEV_PREFIX "${RDEV_PREFIX}"
49486 _ACEOF
49487
49488
49489 case $mount in
49490     /dev/vg*)
49491         { echo "$as_me:$LINENO: WARNING: \"*** Run amhpfixdevs on HP-UX systems using /dev/vg??.\"" >&5
49492 echo "$as_me: WARNING: \"*** Run amhpfixdevs on HP-UX systems using /dev/vg??.\"" >&2;}
49493         ;;
49494 esac
49495
49496 echo "$as_me:$LINENO: checking whether posix fcntl locking works" >&5
49497 echo $ECHO_N "checking whether posix fcntl locking works... $ECHO_C" >&6
49498 if test "${amanda_cv_posix_filelocking+set}" = set; then
49499   echo $ECHO_N "(cached) $ECHO_C" >&6
49500 else
49501
49502         if test "$cross_compiling" = yes; then
49503
49504         amanda_cv_posix_filelocking="no (cannot run test)"
49505
49506 else
49507   cat >conftest.$ac_ext <<_ACEOF
49508 /* confdefs.h.  */
49509 _ACEOF
49510 cat confdefs.h >>conftest.$ac_ext
49511 cat >>conftest.$ac_ext <<_ACEOF
49512 /* end confdefs.h.  */
49513
49514 #undef  ASSERTIONS
49515 #define CONFIGURE_TEST
49516 #define USE_POSIX_FCNTL
49517 #include "${srcdir-.}/common-src/amflock.c"
49518
49519 _ACEOF
49520 rm -f conftest$ac_exeext
49521 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49522   (eval $ac_link) 2>&5
49523   ac_status=$?
49524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49525   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
49526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49527   (eval $ac_try) 2>&5
49528   ac_status=$?
49529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49530   (exit $ac_status); }; }; then
49531
49532         amanda_cv_posix_filelocking=yes
49533
49534 else
49535   echo "$as_me: program exited with status $ac_status" >&5
49536 echo "$as_me: failed program was:" >&5
49537 sed 's/^/| /' conftest.$ac_ext >&5
49538
49539 ( exit $ac_status )
49540
49541         amanda_cv_posix_filelocking="no"
49542
49543 fi
49544 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
49545 fi
49546     rm -f /tmp/conftest.lock
49547
49548 fi
49549 echo "$as_me:$LINENO: result: $amanda_cv_posix_filelocking" >&5
49550 echo "${ECHO_T}$amanda_cv_posix_filelocking" >&6
49551 if test "$amanda_cv_posix_filelocking" = yes; then
49552
49553 cat >>confdefs.h <<\_ACEOF
49554 #define USE_POSIX_FCNTL 1
49555 _ACEOF
49556
49557     HAS_WORKING_FILE_LOCK=1
49558 fi
49559
49560 if test -z "$HAS_WORKING_FILE_LOCK"; then
49561     echo "$as_me:$LINENO: checking whether flock locking works" >&5
49562 echo $ECHO_N "checking whether flock locking works... $ECHO_C" >&6
49563 if test "${amanda_cv_flock_filelocking+set}" = set; then
49564   echo $ECHO_N "(cached) $ECHO_C" >&6
49565 else
49566
49567             if test "$cross_compiling" = yes; then
49568
49569                     amanda_cv_flock_filelocking="no (cannot run test)"
49570
49571 else
49572   cat >conftest.$ac_ext <<_ACEOF
49573 /* confdefs.h.  */
49574 _ACEOF
49575 cat confdefs.h >>conftest.$ac_ext
49576 cat >>conftest.$ac_ext <<_ACEOF
49577 /* end confdefs.h.  */
49578
49579 #undef  ASSERTIONS
49580 #define CONFIGURE_TEST
49581 #define USE_FLOCK
49582 #include "${srcdir-.}/common-src/amflock.c"
49583
49584 _ACEOF
49585 rm -f conftest$ac_exeext
49586 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49587   (eval $ac_link) 2>&5
49588   ac_status=$?
49589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49590   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
49591   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49592   (eval $ac_try) 2>&5
49593   ac_status=$?
49594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49595   (exit $ac_status); }; }; then
49596
49597                     amanda_cv_flock_filelocking="yes"
49598
49599 else
49600   echo "$as_me: program exited with status $ac_status" >&5
49601 echo "$as_me: failed program was:" >&5
49602 sed 's/^/| /' conftest.$ac_ext >&5
49603
49604 ( exit $ac_status )
49605
49606                     amanda_cv_flock_filelocking="no"
49607
49608 fi
49609 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
49610 fi
49611         rm -f /tmp/conftest.lock
49612
49613 fi
49614 echo "$as_me:$LINENO: result: $amanda_cv_flock_filelocking" >&5
49615 echo "${ECHO_T}$amanda_cv_flock_filelocking" >&6
49616     if test "$amanda_cv_flock_filelocking" = yes; then
49617
49618 cat >>confdefs.h <<\_ACEOF
49619 #define USE_FLOCK 1
49620 _ACEOF
49621
49622         HAS_WORKING_FILE_LOCK=1
49623     fi
49624 fi
49625
49626 if test -z "$HAS_WORKING_FILE_LOCK"; then
49627     echo "$as_me:$LINENO: checking whether lockf locking works" >&5
49628 echo $ECHO_N "checking whether lockf locking works... $ECHO_C" >&6
49629 if test "${amanda_cv_lockf_filelocking+set}" = set; then
49630   echo $ECHO_N "(cached) $ECHO_C" >&6
49631 else
49632
49633             if test "$cross_compiling" = yes; then
49634
49635                     amanda_cv_lockf_filelocking="no (cannot run test)"
49636
49637 else
49638   cat >conftest.$ac_ext <<_ACEOF
49639 /* confdefs.h.  */
49640 _ACEOF
49641 cat confdefs.h >>conftest.$ac_ext
49642 cat >>conftest.$ac_ext <<_ACEOF
49643 /* end confdefs.h.  */
49644
49645 #undef  ASSERTIONS
49646 #define CONFIGURE_TEST
49647 #define USE_LOCKF
49648 #include "${srcdir-.}/common-src/amflock.c"
49649
49650 _ACEOF
49651 rm -f conftest$ac_exeext
49652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49653   (eval $ac_link) 2>&5
49654   ac_status=$?
49655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49656   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
49657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49658   (eval $ac_try) 2>&5
49659   ac_status=$?
49660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49661   (exit $ac_status); }; }; then
49662
49663                     amanda_cv_lockf_filelocking="yes"
49664
49665 else
49666   echo "$as_me: program exited with status $ac_status" >&5
49667 echo "$as_me: failed program was:" >&5
49668 sed 's/^/| /' conftest.$ac_ext >&5
49669
49670 ( exit $ac_status )
49671
49672                     amanda_cv_lockf_filelocking="no"
49673
49674 fi
49675 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
49676 fi
49677         rm -f /tmp/conftest.lock
49678
49679 fi
49680 echo "$as_me:$LINENO: result: $amanda_cv_lockf_filelocking" >&5
49681 echo "${ECHO_T}$amanda_cv_lockf_filelocking" >&6
49682     if test "$amanda_cv_lockf_filelocking" = yes; then
49683
49684 cat >>confdefs.h <<\_ACEOF
49685 #define USE_LOCKF 1
49686 _ACEOF
49687
49688         HAS_WORKING_FILE_LOCK=1
49689     fi
49690 fi
49691
49692 if test -z "$HAS_WORKING_FILE_LOCK"; then
49693     echo "$as_me:$LINENO: checking whether lnlock locking works" >&5
49694 echo $ECHO_N "checking whether lnlock locking works... $ECHO_C" >&6
49695 if test "${amanda_cv_lnlock_filelocking+set}" = set; then
49696   echo $ECHO_N "(cached) $ECHO_C" >&6
49697 else
49698
49699             if test "$cross_compiling" = yes; then
49700
49701                     amanda_cv_lnlock_filelocking="no (cannot run test)"
49702
49703 else
49704   cat >conftest.$ac_ext <<_ACEOF
49705 /* confdefs.h.  */
49706 _ACEOF
49707 cat confdefs.h >>conftest.$ac_ext
49708 cat >>conftest.$ac_ext <<_ACEOF
49709 /* end confdefs.h.  */
49710
49711 #undef  ASSERTIONS
49712 #define CONFIGURE_TEST
49713 #define USE_LNLOCK
49714 #include "${srcdir-.}/common-src/amflock.c"
49715 #include "${srcdir-.}/common-src/alloc.c"
49716 #include "${srcdir-.}/common-src/error.c"
49717 #include "${srcdir-.}/common-src/snprintf.c"
49718
49719 _ACEOF
49720 rm -f conftest$ac_exeext
49721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49722   (eval $ac_link) 2>&5
49723   ac_status=$?
49724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49725   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
49726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49727   (eval $ac_try) 2>&5
49728   ac_status=$?
49729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49730   (exit $ac_status); }; }; then
49731
49732                     amanda_cv_lnlock_filelocking="yes"
49733
49734 else
49735   echo "$as_me: program exited with status $ac_status" >&5
49736 echo "$as_me: failed program was:" >&5
49737 sed 's/^/| /' conftest.$ac_ext >&5
49738
49739 ( exit $ac_status )
49740
49741                     amanda_cv_lnlock_filelocking="no"
49742
49743 fi
49744 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
49745 fi
49746         rm -f /tmp/conftest.lock
49747
49748 fi
49749 echo "$as_me:$LINENO: result: $amanda_cv_lnlock_filelocking" >&5
49750 echo "${ECHO_T}$amanda_cv_lnlock_filelocking" >&6
49751     if test "$amanda_cv_lnlock_filelocking" = yes; then
49752
49753 cat >>confdefs.h <<\_ACEOF
49754 #define USE_LNLOCK 1
49755 _ACEOF
49756
49757         HAS_WORKING_FILE_LOCK=1
49758     fi
49759 fi
49760
49761 if test -z "$HAS_WORKING_FILE_LOCK"; then
49762     { echo "$as_me:$LINENO: WARNING: *** No working file locking capability found!" >&5
49763 echo "$as_me: WARNING: *** No working file locking capability found!" >&2;}
49764     { echo "$as_me:$LINENO: WARNING: *** Be VERY VERY careful." >&5
49765 echo "$as_me: WARNING: *** Be VERY VERY careful." >&2;}
49766 fi
49767
49768
49769
49770
49771
49772
49773
49774
49775
49776 if test x"$NO_CLIENT_MODE" != x"true"; then
49777   WANT_CLIENT_TRUE=
49778   WANT_CLIENT_FALSE='#'
49779 else
49780   WANT_CLIENT_TRUE='#'
49781   WANT_CLIENT_FALSE=
49782 fi
49783
49784
49785
49786 if test ! -z "$SAMBA_CLIENT"; then
49787   WANT_SAMBA_TRUE=
49788   WANT_SAMBA_FALSE='#'
49789 else
49790   WANT_SAMBA_TRUE='#'
49791   WANT_SAMBA_FALSE=
49792 fi
49793
49794
49795
49796 if test x"$NO_RESTORE_MODE" != x"true"; then
49797   WANT_RESTORE_TRUE=
49798   WANT_RESTORE_FALSE='#'
49799 else
49800   WANT_RESTORE_TRUE='#'
49801   WANT_RESTORE_FALSE=
49802 fi
49803
49804
49805
49806 if test x"$NO_SERVER_MODE" != x"true"; then
49807   WANT_SERVER_TRUE=
49808   WANT_SERVER_FALSE='#'
49809 else
49810   WANT_SERVER_TRUE='#'
49811   WANT_SERVER_FALSE=
49812 fi
49813
49814
49815
49816 if test x"$NO_RECOVER_MODE" != x"true" && test x"$NO_CLIENT_MODE" != x"true"; then
49817   WANT_RECOVER_TRUE=
49818   WANT_RECOVER_FALSE='#'
49819 else
49820   WANT_RECOVER_TRUE='#'
49821   WANT_RECOVER_FALSE=
49822 fi
49823
49824
49825
49826 if test x"$NO_SERVER_MODE" != x"true" || test x"$NO_RESTORE_MODE" != x"true"; then
49827   WANT_TAPE_TRUE=
49828   WANT_TAPE_FALSE='#'
49829 else
49830   WANT_TAPE_TRUE='#'
49831   WANT_TAPE_FALSE=
49832 fi
49833
49834
49835
49836 if test x"$NO_AMPLOT_MODE" != x"true"; then
49837   WANT_AMPLOT_TRUE=
49838   WANT_AMPLOT_FALSE='#'
49839 else
49840   WANT_AMPLOT_TRUE='#'
49841   WANT_AMPLOT_FALSE=
49842 fi
49843
49844
49845
49846 if test x"$NO_SCSI_CHANGER_MODE" != x"true"; then
49847   WANT_CHG_SCSI_TRUE=
49848   WANT_CHG_SCSI_FALSE='#'
49849 else
49850   WANT_CHG_SCSI_TRUE='#'
49851   WANT_CHG_SCSI_FALSE=
49852 fi
49853
49854
49855
49856 if test x"$NO_CHIO_CHANGER_MODE" != x"true"; then
49857   WANT_CHIO_SCSI_TRUE=
49858   WANT_CHIO_SCSI_FALSE='#'
49859 else
49860   WANT_CHIO_SCSI_TRUE='#'
49861   WANT_CHIO_SCSI_FALSE=
49862 fi
49863
49864
49865
49866 if test x"$NEED_RUNTIME_PSEUDO_RELOC" = x"true"; then
49867   WANT_RUNTIME_PSEUDO_RELOC_TRUE=
49868   WANT_RUNTIME_PSEUDO_RELOC_FALSE='#'
49869 else
49870   WANT_RUNTIME_PSEUDO_RELOC_TRUE='#'
49871   WANT_RUNTIME_PSEUDO_RELOC_FALSE=
49872 fi
49873
49874
49875
49876 if test x"$NEED_SETUID_CLIENT" != x"false"; then
49877   WANT_SETUID_CLIENT_TRUE=
49878   WANT_SETUID_CLIENT_FALSE='#'
49879 else
49880   WANT_SETUID_CLIENT_TRUE='#'
49881   WANT_SETUID_CLIENT_FALSE=
49882 fi
49883
49884
49885 case "${FORCE_USE_RUNDUMP-${USE_RUNDUMP}}" in
49886 y |  ye | yes)
49887 cat >>confdefs.h <<\_ACEOF
49888 #define USE_RUNDUMP 1
49889 _ACEOF
49890 ;;
49891 esac
49892
49893 # This is necessary so that .o files in LIBOBJS are also built via
49894 # the ANSI2KNR-filtering rules.
49895 LIBOBJS=`echo "$LIBOBJS" |
49896              sed 's,\.[^.]* ,$U&,g;s,\.[^.]*$,$U&,'`
49897 LTLIBOBJS=`echo "$LIBOBJS" |
49898            sed 's,\.[^.]* ,.lo ,g;s,\.[^.]*$,.lo,'`
49899
49900
49901 LTALLOCA=`echo "$ALLOCA" | sed 's/\.'"${ac_objext}"'/\.lo/g'`
49902
49903
49904                                                                                                                                                                                                                                                                                                                                                                                                                                                                             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 common-src/versuff.c common-src/Makefile example/amanda.conf example/Makefile example/amanda.conf.chg-scsi example/chg-scsi-linux.conf example/chg-scsi-solaris.conf example/chg-scsi-hpux.conf 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 tape-src/Makefile config/Makefile Makefile"
49905
49906 cat >confcache <<\_ACEOF
49907 # This file is a shell script that caches the results of configure
49908 # tests run on this system so they can be shared between configure
49909 # scripts and configure runs, see configure's option --config-cache.
49910 # It is not useful on other systems.  If it contains results you don't
49911 # want to keep, you may remove or edit it.
49912 #
49913 # config.status only pays attention to the cache file if you give it
49914 # the --recheck option to rerun configure.
49915 #
49916 # `ac_cv_env_foo' variables (set or unset) will be overridden when
49917 # loading this file, other *unset* `ac_cv_foo' will be assigned the
49918 # following values.
49919
49920 _ACEOF
49921
49922 # The following way of writing the cache mishandles newlines in values,
49923 # but we know of no workaround that is simple, portable, and efficient.
49924 # So, don't put newlines in cache variables' values.
49925 # Ultrix sh set writes to stderr and can't be redirected directly,
49926 # and sets the high bit in the cache file unless we assign to the vars.
49927 {
49928   (set) 2>&1 |
49929     case `(ac_space=' '; set | grep ac_space) 2>&1` in
49930     *ac_space=\ *)
49931       # `set' does not quote correctly, so add quotes (double-quote
49932       # substitution turns \\\\ into \\, and sed turns \\ into \).
49933       sed -n \
49934         "s/'/'\\\\''/g;
49935           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
49936       ;;
49937     *)
49938       # `set' quotes correctly as required by POSIX, so do not add quotes.
49939       sed -n \
49940         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
49941       ;;
49942     esac;
49943 } |
49944   sed '
49945      t clear
49946      : clear
49947      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
49948      t end
49949      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
49950      : end' >>confcache
49951 if diff $cache_file confcache >/dev/null 2>&1; then :; else
49952   if test -w $cache_file; then
49953     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
49954     cat confcache >$cache_file
49955   else
49956     echo "not updating unwritable cache $cache_file"
49957   fi
49958 fi
49959 rm -f confcache
49960
49961 test "x$prefix" = xNONE && prefix=$ac_default_prefix
49962 # Let make expand exec_prefix.
49963 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
49964
49965 # VPATH may cause trouble with some makes, so we remove $(srcdir),
49966 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
49967 # trailing colons and then remove the whole line if VPATH becomes empty
49968 # (actually we leave an empty line to preserve line numbers).
49969 if test "x$srcdir" = x.; then
49970   ac_vpsub='/^[  ]*VPATH[        ]*=/{
49971 s/:*\$(srcdir):*/:/;
49972 s/:*\${srcdir}:*/:/;
49973 s/:*@srcdir@:*/:/;
49974 s/^\([^=]*=[     ]*\):*/\1/;
49975 s/:*$//;
49976 s/^[^=]*=[       ]*$//;
49977 }'
49978 fi
49979
49980 DEFS=-DHAVE_CONFIG_H
49981
49982 ac_libobjs=
49983 ac_ltlibobjs=
49984 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
49985   # 1. Remove the extension, and $U if already installed.
49986   ac_i=`echo "$ac_i" |
49987          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
49988   # 2. Add them.
49989   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
49990   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
49991 done
49992 LIBOBJS=$ac_libobjs
49993
49994 LTLIBOBJS=$ac_ltlibobjs
49995
49996
49997 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
49998   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
49999 Usually this means the macro was only invoked conditionally." >&5
50000 echo "$as_me: error: conditional \"AMDEP\" was never defined.
50001 Usually this means the macro was only invoked conditionally." >&2;}
50002    { (exit 1); exit 1; }; }
50003 fi
50004 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
50005   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
50006 Usually this means the macro was only invoked conditionally." >&5
50007 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
50008 Usually this means the macro was only invoked conditionally." >&2;}
50009    { (exit 1); exit 1; }; }
50010 fi
50011 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
50012   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
50013 Usually this means the macro was only invoked conditionally." >&5
50014 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
50015 Usually this means the macro was only invoked conditionally." >&2;}
50016    { (exit 1); exit 1; }; }
50017 fi
50018 if test -z "${WANT_CLIENT_TRUE}" && test -z "${WANT_CLIENT_FALSE}"; then
50019   { { echo "$as_me:$LINENO: error: conditional \"WANT_CLIENT\" was never defined.
50020 Usually this means the macro was only invoked conditionally." >&5
50021 echo "$as_me: error: conditional \"WANT_CLIENT\" was never defined.
50022 Usually this means the macro was only invoked conditionally." >&2;}
50023    { (exit 1); exit 1; }; }
50024 fi
50025 if test -z "${WANT_SAMBA_TRUE}" && test -z "${WANT_SAMBA_FALSE}"; then
50026   { { echo "$as_me:$LINENO: error: conditional \"WANT_SAMBA\" was never defined.
50027 Usually this means the macro was only invoked conditionally." >&5
50028 echo "$as_me: error: conditional \"WANT_SAMBA\" was never defined.
50029 Usually this means the macro was only invoked conditionally." >&2;}
50030    { (exit 1); exit 1; }; }
50031 fi
50032 if test -z "${WANT_RESTORE_TRUE}" && test -z "${WANT_RESTORE_FALSE}"; then
50033   { { echo "$as_me:$LINENO: error: conditional \"WANT_RESTORE\" was never defined.
50034 Usually this means the macro was only invoked conditionally." >&5
50035 echo "$as_me: error: conditional \"WANT_RESTORE\" was never defined.
50036 Usually this means the macro was only invoked conditionally." >&2;}
50037    { (exit 1); exit 1; }; }
50038 fi
50039 if test -z "${WANT_SERVER_TRUE}" && test -z "${WANT_SERVER_FALSE}"; then
50040   { { echo "$as_me:$LINENO: error: conditional \"WANT_SERVER\" was never defined.
50041 Usually this means the macro was only invoked conditionally." >&5
50042 echo "$as_me: error: conditional \"WANT_SERVER\" was never defined.
50043 Usually this means the macro was only invoked conditionally." >&2;}
50044    { (exit 1); exit 1; }; }
50045 fi
50046 if test -z "${WANT_RECOVER_TRUE}" && test -z "${WANT_RECOVER_FALSE}"; then
50047   { { echo "$as_me:$LINENO: error: conditional \"WANT_RECOVER\" was never defined.
50048 Usually this means the macro was only invoked conditionally." >&5
50049 echo "$as_me: error: conditional \"WANT_RECOVER\" was never defined.
50050 Usually this means the macro was only invoked conditionally." >&2;}
50051    { (exit 1); exit 1; }; }
50052 fi
50053 if test -z "${WANT_TAPE_TRUE}" && test -z "${WANT_TAPE_FALSE}"; then
50054   { { echo "$as_me:$LINENO: error: conditional \"WANT_TAPE\" was never defined.
50055 Usually this means the macro was only invoked conditionally." >&5
50056 echo "$as_me: error: conditional \"WANT_TAPE\" was never defined.
50057 Usually this means the macro was only invoked conditionally." >&2;}
50058    { (exit 1); exit 1; }; }
50059 fi
50060 if test -z "${WANT_AMPLOT_TRUE}" && test -z "${WANT_AMPLOT_FALSE}"; then
50061   { { echo "$as_me:$LINENO: error: conditional \"WANT_AMPLOT\" was never defined.
50062 Usually this means the macro was only invoked conditionally." >&5
50063 echo "$as_me: error: conditional \"WANT_AMPLOT\" was never defined.
50064 Usually this means the macro was only invoked conditionally." >&2;}
50065    { (exit 1); exit 1; }; }
50066 fi
50067 if test -z "${WANT_CHG_SCSI_TRUE}" && test -z "${WANT_CHG_SCSI_FALSE}"; then
50068   { { echo "$as_me:$LINENO: error: conditional \"WANT_CHG_SCSI\" was never defined.
50069 Usually this means the macro was only invoked conditionally." >&5
50070 echo "$as_me: error: conditional \"WANT_CHG_SCSI\" was never defined.
50071 Usually this means the macro was only invoked conditionally." >&2;}
50072    { (exit 1); exit 1; }; }
50073 fi
50074 if test -z "${WANT_CHIO_SCSI_TRUE}" && test -z "${WANT_CHIO_SCSI_FALSE}"; then
50075   { { echo "$as_me:$LINENO: error: conditional \"WANT_CHIO_SCSI\" was never defined.
50076 Usually this means the macro was only invoked conditionally." >&5
50077 echo "$as_me: error: conditional \"WANT_CHIO_SCSI\" was never defined.
50078 Usually this means the macro was only invoked conditionally." >&2;}
50079    { (exit 1); exit 1; }; }
50080 fi
50081 if test -z "${WANT_RUNTIME_PSEUDO_RELOC_TRUE}" && test -z "${WANT_RUNTIME_PSEUDO_RELOC_FALSE}"; then
50082   { { echo "$as_me:$LINENO: error: conditional \"WANT_RUNTIME_PSEUDO_RELOC\" was never defined.
50083 Usually this means the macro was only invoked conditionally." >&5
50084 echo "$as_me: error: conditional \"WANT_RUNTIME_PSEUDO_RELOC\" was never defined.
50085 Usually this means the macro was only invoked conditionally." >&2;}
50086    { (exit 1); exit 1; }; }
50087 fi
50088 if test -z "${WANT_SETUID_CLIENT_TRUE}" && test -z "${WANT_SETUID_CLIENT_FALSE}"; then
50089   { { echo "$as_me:$LINENO: error: conditional \"WANT_SETUID_CLIENT\" was never defined.
50090 Usually this means the macro was only invoked conditionally." >&5
50091 echo "$as_me: error: conditional \"WANT_SETUID_CLIENT\" was never defined.
50092 Usually this means the macro was only invoked conditionally." >&2;}
50093    { (exit 1); exit 1; }; }
50094 fi
50095
50096 : ${CONFIG_STATUS=./config.status}
50097 ac_clean_files_save=$ac_clean_files
50098 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
50099 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
50100 echo "$as_me: creating $CONFIG_STATUS" >&6;}
50101 cat >$CONFIG_STATUS <<_ACEOF
50102 #! $SHELL
50103 # Generated by $as_me.
50104 # Run this file to recreate the current configuration.
50105 # Compiler output produced by configure, useful for debugging
50106 # configure, is in config.log if it exists.
50107
50108 debug=false
50109 ac_cs_recheck=false
50110 ac_cs_silent=false
50111 SHELL=\${CONFIG_SHELL-$SHELL}
50112 _ACEOF
50113
50114 cat >>$CONFIG_STATUS <<\_ACEOF
50115 ## --------------------- ##
50116 ## M4sh Initialization.  ##
50117 ## --------------------- ##
50118
50119 # Be Bourne compatible
50120 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
50121   emulate sh
50122   NULLCMD=:
50123   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
50124   # is contrary to our usage.  Disable this feature.
50125   alias -g '${1+"$@"}'='"$@"'
50126 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
50127   set -o posix
50128 fi
50129 DUALCASE=1; export DUALCASE # for MKS sh
50130
50131 # Support unset when possible.
50132 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
50133   as_unset=unset
50134 else
50135   as_unset=false
50136 fi
50137
50138
50139 # Work around bugs in pre-3.0 UWIN ksh.
50140 $as_unset ENV MAIL MAILPATH
50141 PS1='$ '
50142 PS2='> '
50143 PS4='+ '
50144
50145 # NLS nuisances.
50146 for as_var in \
50147   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
50148   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50149   LC_TELEPHONE LC_TIME
50150 do
50151   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
50152     eval $as_var=C; export $as_var
50153   else
50154     $as_unset $as_var
50155   fi
50156 done
50157
50158 # Required to use basename.
50159 if expr a : '\(a\)' >/dev/null 2>&1; then
50160   as_expr=expr
50161 else
50162   as_expr=false
50163 fi
50164
50165 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
50166   as_basename=basename
50167 else
50168   as_basename=false
50169 fi
50170
50171
50172 # Name of the executable.
50173 as_me=`$as_basename "$0" ||
50174 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
50175          X"$0" : 'X\(//\)$' \| \
50176          X"$0" : 'X\(/\)$' \| \
50177          .     : '\(.\)' 2>/dev/null ||
50178 echo X/"$0" |
50179     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
50180           /^X\/\(\/\/\)$/{ s//\1/; q; }
50181           /^X\/\(\/\).*/{ s//\1/; q; }
50182           s/.*/./; q'`
50183
50184
50185 # PATH needs CR, and LINENO needs CR and PATH.
50186 # Avoid depending upon Character Ranges.
50187 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
50188 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
50189 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
50190 as_cr_digits='0123456789'
50191 as_cr_alnum=$as_cr_Letters$as_cr_digits
50192
50193 # The user is always right.
50194 if test "${PATH_SEPARATOR+set}" != set; then
50195   echo "#! /bin/sh" >conf$$.sh
50196   echo  "exit 0"   >>conf$$.sh
50197   chmod +x conf$$.sh
50198   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
50199     PATH_SEPARATOR=';'
50200   else
50201     PATH_SEPARATOR=:
50202   fi
50203   rm -f conf$$.sh
50204 fi
50205
50206
50207   as_lineno_1=$LINENO
50208   as_lineno_2=$LINENO
50209   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
50210   test "x$as_lineno_1" != "x$as_lineno_2" &&
50211   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
50212   # Find who we are.  Look in the path if we contain no path at all
50213   # relative or not.
50214   case $0 in
50215     *[\\/]* ) as_myself=$0 ;;
50216     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50217 for as_dir in $PATH
50218 do
50219   IFS=$as_save_IFS
50220   test -z "$as_dir" && as_dir=.
50221   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
50222 done
50223
50224        ;;
50225   esac
50226   # We did not find ourselves, most probably we were run as `sh COMMAND'
50227   # in which case we are not to be found in the path.
50228   if test "x$as_myself" = x; then
50229     as_myself=$0
50230   fi
50231   if test ! -f "$as_myself"; then
50232     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
50233 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
50234    { (exit 1); exit 1; }; }
50235   fi
50236   case $CONFIG_SHELL in
50237   '')
50238     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50239 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
50240 do
50241   IFS=$as_save_IFS
50242   test -z "$as_dir" && as_dir=.
50243   for as_base in sh bash ksh sh5; do
50244          case $as_dir in
50245          /*)
50246            if ("$as_dir/$as_base" -c '
50247   as_lineno_1=$LINENO
50248   as_lineno_2=$LINENO
50249   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
50250   test "x$as_lineno_1" != "x$as_lineno_2" &&
50251   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
50252              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
50253              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
50254              CONFIG_SHELL=$as_dir/$as_base
50255              export CONFIG_SHELL
50256              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
50257            fi;;
50258          esac
50259        done
50260 done
50261 ;;
50262   esac
50263
50264   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
50265   # uniformly replaced by the line number.  The first 'sed' inserts a
50266   # line-number line before each line; the second 'sed' does the real
50267   # work.  The second script uses 'N' to pair each line-number line
50268   # with the numbered line, and appends trailing '-' during
50269   # substitution so that $LINENO is not a special case at line end.
50270   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
50271   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
50272   sed '=' <$as_myself |
50273     sed '
50274       N
50275       s,$,-,
50276       : loop
50277       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
50278       t loop
50279       s,-$,,
50280       s,^['$as_cr_digits']*\n,,
50281     ' >$as_me.lineno &&
50282   chmod +x $as_me.lineno ||
50283     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
50284 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
50285    { (exit 1); exit 1; }; }
50286
50287   # Don't try to exec as it changes $[0], causing all sort of problems
50288   # (the dirname of $[0] is not the place where we might find the
50289   # original and so on.  Autoconf is especially sensible to this).
50290   . ./$as_me.lineno
50291   # Exit status is that of the last command.
50292   exit
50293 }
50294
50295
50296 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
50297   *c*,-n*) ECHO_N= ECHO_C='
50298 ' ECHO_T='      ' ;;
50299   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
50300   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
50301 esac
50302
50303 if expr a : '\(a\)' >/dev/null 2>&1; then
50304   as_expr=expr
50305 else
50306   as_expr=false
50307 fi
50308
50309 rm -f conf$$ conf$$.exe conf$$.file
50310 echo >conf$$.file
50311 if ln -s conf$$.file conf$$ 2>/dev/null; then
50312   # We could just check for DJGPP; but this test a) works b) is more generic
50313   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
50314   if test -f conf$$.exe; then
50315     # Don't use ln at all; we don't have any links
50316     as_ln_s='cp -p'
50317   else
50318     as_ln_s='ln -s'
50319   fi
50320 elif ln conf$$.file conf$$ 2>/dev/null; then
50321   as_ln_s=ln
50322 else
50323   as_ln_s='cp -p'
50324 fi
50325 rm -f conf$$ conf$$.exe conf$$.file
50326
50327 if mkdir -p . 2>/dev/null; then
50328   as_mkdir_p=:
50329 else
50330   test -d ./-p && rmdir ./-p
50331   as_mkdir_p=false
50332 fi
50333
50334 as_executable_p="test -f"
50335
50336 # Sed expression to map a string onto a valid CPP name.
50337 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
50338
50339 # Sed expression to map a string onto a valid variable name.
50340 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
50341
50342
50343 # IFS
50344 # We need space, tab and new line, in precisely that order.
50345 as_nl='
50346 '
50347 IFS="   $as_nl"
50348
50349 # CDPATH.
50350 $as_unset CDPATH
50351
50352 exec 6>&1
50353
50354 # Open the log real soon, to keep \$[0] and so on meaningful, and to
50355 # report actual input values of CONFIG_FILES etc. instead of their
50356 # values after options handling.  Logging --version etc. is OK.
50357 exec 5>>config.log
50358 {
50359   echo
50360   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
50361 ## Running $as_me. ##
50362 _ASBOX
50363 } >&5
50364 cat >&5 <<_CSEOF
50365
50366 This file was extended by $as_me, which was
50367 generated by GNU Autoconf 2.59.  Invocation command line was
50368
50369   CONFIG_FILES    = $CONFIG_FILES
50370   CONFIG_HEADERS  = $CONFIG_HEADERS
50371   CONFIG_LINKS    = $CONFIG_LINKS
50372   CONFIG_COMMANDS = $CONFIG_COMMANDS
50373   $ $0 $@
50374
50375 _CSEOF
50376 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
50377 echo >&5
50378 _ACEOF
50379
50380 # Files that config.status was made for.
50381 if test -n "$ac_config_files"; then
50382   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
50383 fi
50384
50385 if test -n "$ac_config_headers"; then
50386   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
50387 fi
50388
50389 if test -n "$ac_config_links"; then
50390   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
50391 fi
50392
50393 if test -n "$ac_config_commands"; then
50394   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
50395 fi
50396
50397 cat >>$CONFIG_STATUS <<\_ACEOF
50398
50399 ac_cs_usage="\
50400 \`$as_me' instantiates files from templates according to the
50401 current configuration.
50402
50403 Usage: $0 [OPTIONS] [FILE]...
50404
50405   -h, --help       print this help, then exit
50406   -V, --version    print version number, then exit
50407   -q, --quiet      do not print progress messages
50408   -d, --debug      don't remove temporary files
50409       --recheck    update $as_me by reconfiguring in the same conditions
50410   --file=FILE[:TEMPLATE]
50411                    instantiate the configuration file FILE
50412   --header=FILE[:TEMPLATE]
50413                    instantiate the configuration header FILE
50414
50415 Configuration files:
50416 $config_files
50417
50418 Configuration headers:
50419 $config_headers
50420
50421 Configuration commands:
50422 $config_commands
50423
50424 Report bugs to <bug-autoconf@gnu.org>."
50425 _ACEOF
50426
50427 cat >>$CONFIG_STATUS <<_ACEOF
50428 ac_cs_version="\\
50429 config.status
50430 configured by $0, generated by GNU Autoconf 2.59,
50431   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
50432
50433 Copyright (C) 2003 Free Software Foundation, Inc.
50434 This config.status script is free software; the Free Software Foundation
50435 gives unlimited permission to copy, distribute and modify it."
50436 srcdir=$srcdir
50437 INSTALL="$INSTALL"
50438 _ACEOF
50439
50440 cat >>$CONFIG_STATUS <<\_ACEOF
50441 # If no file are specified by the user, then we need to provide default
50442 # value.  By we need to know if files were specified by the user.
50443 ac_need_defaults=:
50444 while test $# != 0
50445 do
50446   case $1 in
50447   --*=*)
50448     ac_option=`expr "x$1" : 'x\([^=]*\)='`
50449     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
50450     ac_shift=:
50451     ;;
50452   -*)
50453     ac_option=$1
50454     ac_optarg=$2
50455     ac_shift=shift
50456     ;;
50457   *) # This is not an option, so the user has probably given explicit
50458      # arguments.
50459      ac_option=$1
50460      ac_need_defaults=false;;
50461   esac
50462
50463   case $ac_option in
50464   # Handling of the options.
50465 _ACEOF
50466 cat >>$CONFIG_STATUS <<\_ACEOF
50467   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
50468     ac_cs_recheck=: ;;
50469   --version | --vers* | -V )
50470     echo "$ac_cs_version"; exit 0 ;;
50471   --he | --h)
50472     # Conflict between --help and --header
50473     { { echo "$as_me:$LINENO: error: ambiguous option: $1
50474 Try \`$0 --help' for more information." >&5
50475 echo "$as_me: error: ambiguous option: $1
50476 Try \`$0 --help' for more information." >&2;}
50477    { (exit 1); exit 1; }; };;
50478   --help | --hel | -h )
50479     echo "$ac_cs_usage"; exit 0 ;;
50480   --debug | --d* | -d )
50481     debug=: ;;
50482   --file | --fil | --fi | --f )
50483     $ac_shift
50484     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
50485     ac_need_defaults=false;;
50486   --header | --heade | --head | --hea )
50487     $ac_shift
50488     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
50489     ac_need_defaults=false;;
50490   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
50491   | -silent | --silent | --silen | --sile | --sil | --si | --s)
50492     ac_cs_silent=: ;;
50493
50494   # This is an error.
50495   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
50496 Try \`$0 --help' for more information." >&5
50497 echo "$as_me: error: unrecognized option: $1
50498 Try \`$0 --help' for more information." >&2;}
50499    { (exit 1); exit 1; }; } ;;
50500
50501   *) ac_config_targets="$ac_config_targets $1" ;;
50502
50503   esac
50504   shift
50505 done
50506
50507 ac_configure_extra_args=
50508
50509 if $ac_cs_silent; then
50510   exec 6>/dev/null
50511   ac_configure_extra_args="$ac_configure_extra_args --silent"
50512 fi
50513
50514 _ACEOF
50515 cat >>$CONFIG_STATUS <<_ACEOF
50516 if \$ac_cs_recheck; then
50517   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
50518   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
50519 fi
50520
50521 _ACEOF
50522
50523 cat >>$CONFIG_STATUS <<_ACEOF
50524 #
50525 # INIT-COMMANDS section.
50526 #
50527
50528 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
50529 # variables for create stdint.h replacement
50530 PACKAGE="$PACKAGE"
50531 VERSION="$VERSION"
50532 ac_stdint_h="$ac_stdint_h"
50533 _ac_stdint_h=`echo "_$PACKAGE-$ac_stdint_h" | $as_tr_cpp`
50534 ac_cv_stdint_message="$ac_cv_stdint_message"
50535 ac_cv_header_stdint_t="$ac_cv_header_stdint_t"
50536 ac_cv_header_stdint_x="$ac_cv_header_stdint_x"
50537 ac_cv_header_stdint_o="$ac_cv_header_stdint_o"
50538 ac_cv_header_stdint_u="$ac_cv_header_stdint_u"
50539 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
50540 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
50541 ac_cv_stdint_char_model="$ac_cv_stdint_char_model"
50542 ac_cv_stdint_long_model="$ac_cv_stdint_long_model"
50543 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
50544 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
50545 ac_cv_type_intmax_t="$ac_cv_type_intmax_t"
50546
50547
50548 _ACEOF
50549
50550
50551
50552 cat >>$CONFIG_STATUS <<\_ACEOF
50553 for ac_config_target in $ac_config_targets
50554 do
50555   case "$ac_config_target" in
50556   # Handling of arguments.
50557   "amplot/amcat.awk" ) CONFIG_FILES="$CONFIG_FILES amplot/amcat.awk" ;;
50558   "amplot/amplot.sh" ) CONFIG_FILES="$CONFIG_FILES amplot/amplot.sh" ;;
50559   "amplot/Makefile" ) CONFIG_FILES="$CONFIG_FILES amplot/Makefile" ;;
50560   "changer-src/chg-manual.sh" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-manual.sh" ;;
50561   "changer-src/chg-multi.sh" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-multi.sh" ;;
50562   "changer-src/chg-mtx.sh" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-mtx.sh" ;;
50563   "changer-src/chg-chs.sh" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-chs.sh" ;;
50564   "changer-src/chg-rth.pl" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-rth.pl" ;;
50565   "changer-src/chg-chio.pl" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-chio.pl" ;;
50566   "changer-src/chg-zd-mtx.sh" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-zd-mtx.sh" ;;
50567   "changer-src/Makefile" ) CONFIG_FILES="$CONFIG_FILES changer-src/Makefile" ;;
50568   "changer-src/chg-juke.sh" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-juke.sh" ;;
50569   "changer-src/chg-rait.sh" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-rait.sh" ;;
50570   "changer-src/chg-null.sh" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-null.sh" ;;
50571   "changer-src/chg-mcutil.sh" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-mcutil.sh" ;;
50572   "changer-src/chg-disk.sh" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-disk.sh" ;;
50573   "changer-src/chg-iomega.pl" ) CONFIG_FILES="$CONFIG_FILES changer-src/chg-iomega.pl" ;;
50574   "client-src/patch-system.sh" ) CONFIG_FILES="$CONFIG_FILES client-src/patch-system.sh" ;;
50575   "client-src/Makefile" ) CONFIG_FILES="$CONFIG_FILES client-src/Makefile" ;;
50576   "common-src/versuff.c" ) CONFIG_FILES="$CONFIG_FILES common-src/versuff.c" ;;
50577   "common-src/Makefile" ) CONFIG_FILES="$CONFIG_FILES common-src/Makefile" ;;
50578   "example/amanda.conf" ) CONFIG_FILES="$CONFIG_FILES example/amanda.conf" ;;
50579   "example/Makefile" ) CONFIG_FILES="$CONFIG_FILES example/Makefile" ;;
50580   "example/amanda.conf.chg-scsi" ) CONFIG_FILES="$CONFIG_FILES example/amanda.conf.chg-scsi" ;;
50581   "example/chg-scsi-linux.conf" ) CONFIG_FILES="$CONFIG_FILES example/chg-scsi-linux.conf" ;;
50582   "example/chg-scsi-solaris.conf" ) CONFIG_FILES="$CONFIG_FILES example/chg-scsi-solaris.conf" ;;
50583   "example/chg-scsi-hpux.conf" ) CONFIG_FILES="$CONFIG_FILES example/chg-scsi-hpux.conf" ;;
50584   "example/chg-mcutil.conf" ) CONFIG_FILES="$CONFIG_FILES example/chg-mcutil.conf" ;;
50585   "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
50586   "docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
50587   "recover-src/Makefile" ) CONFIG_FILES="$CONFIG_FILES recover-src/Makefile" ;;
50588   "restore-src/Makefile" ) CONFIG_FILES="$CONFIG_FILES restore-src/Makefile" ;;
50589   "server-src/amcheckdb.sh" ) CONFIG_FILES="$CONFIG_FILES server-src/amcheckdb.sh" ;;
50590   "server-src/amcleanup.sh" ) CONFIG_FILES="$CONFIG_FILES server-src/amcleanup.sh" ;;
50591   "server-src/amdump.sh" ) CONFIG_FILES="$CONFIG_FILES server-src/amdump.sh" ;;
50592   "server-src/amfreetapes.sh" ) CONFIG_FILES="$CONFIG_FILES server-src/amfreetapes.sh" ;;
50593   "server-src/amoverview.pl" ) CONFIG_FILES="$CONFIG_FILES server-src/amoverview.pl" ;;
50594   "server-src/amrmtape.sh" ) CONFIG_FILES="$CONFIG_FILES server-src/amrmtape.sh" ;;
50595   "server-src/amtoc.pl" ) CONFIG_FILES="$CONFIG_FILES server-src/amtoc.pl" ;;
50596   "server-src/amverify.sh" ) CONFIG_FILES="$CONFIG_FILES server-src/amverify.sh" ;;
50597   "server-src/Makefile" ) CONFIG_FILES="$CONFIG_FILES server-src/Makefile" ;;
50598   "server-src/amstatus.pl" ) CONFIG_FILES="$CONFIG_FILES server-src/amstatus.pl" ;;
50599   "server-src/amverifyrun.sh" ) CONFIG_FILES="$CONFIG_FILES server-src/amverifyrun.sh" ;;
50600   "tape-src/Makefile" ) CONFIG_FILES="$CONFIG_FILES tape-src/Makefile" ;;
50601   "config/Makefile" ) CONFIG_FILES="$CONFIG_FILES config/Makefile" ;;
50602   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
50603   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
50604   "$ac_stdint_h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS $ac_stdint_h" ;;
50605   "config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
50606   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
50607 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
50608    { (exit 1); exit 1; }; };;
50609   esac
50610 done
50611
50612 # If the user did not use the arguments to specify the items to instantiate,
50613 # then the envvar interface is used.  Set only those that are not.
50614 # We use the long form for the default assignment because of an extremely
50615 # bizarre bug on SunOS 4.1.3.
50616 if $ac_need_defaults; then
50617   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
50618   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
50619   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
50620 fi
50621
50622 # Have a temporary directory for convenience.  Make it in the build tree
50623 # simply because there is no reason to put it here, and in addition,
50624 # creating and moving files from /tmp can sometimes cause problems.
50625 # Create a temporary directory, and hook for its removal unless debugging.
50626 $debug ||
50627 {
50628   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
50629   trap '{ (exit 1); exit 1; }' 1 2 13 15
50630 }
50631
50632 # Create a (secure) tmp directory for tmp files.
50633
50634 {
50635   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
50636   test -n "$tmp" && test -d "$tmp"
50637 }  ||
50638 {
50639   tmp=./confstat$$-$RANDOM
50640   (umask 077 && mkdir $tmp)
50641 } ||
50642 {
50643    echo "$me: cannot create a temporary directory in ." >&2
50644    { (exit 1); exit 1; }
50645 }
50646
50647 _ACEOF
50648
50649 cat >>$CONFIG_STATUS <<_ACEOF
50650
50651 #
50652 # CONFIG_FILES section.
50653 #
50654
50655 # No need to generate the scripts if there are no CONFIG_FILES.
50656 # This happens for instance when ./config.status config.h
50657 if test -n "\$CONFIG_FILES"; then
50658   # Protect against being on the right side of a sed subst in config.status.
50659   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
50660    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
50661 s,@SHELL@,$SHELL,;t t
50662 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
50663 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
50664 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
50665 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
50666 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
50667 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
50668 s,@exec_prefix@,$exec_prefix,;t t
50669 s,@prefix@,$prefix,;t t
50670 s,@program_transform_name@,$program_transform_name,;t t
50671 s,@bindir@,$bindir,;t t
50672 s,@sbindir@,$sbindir,;t t
50673 s,@libexecdir@,$libexecdir,;t t
50674 s,@datadir@,$datadir,;t t
50675 s,@sysconfdir@,$sysconfdir,;t t
50676 s,@sharedstatedir@,$sharedstatedir,;t t
50677 s,@localstatedir@,$localstatedir,;t t
50678 s,@libdir@,$libdir,;t t
50679 s,@includedir@,$includedir,;t t
50680 s,@oldincludedir@,$oldincludedir,;t t
50681 s,@infodir@,$infodir,;t t
50682 s,@mandir@,$mandir,;t t
50683 s,@build_alias@,$build_alias,;t t
50684 s,@host_alias@,$host_alias,;t t
50685 s,@target_alias@,$target_alias,;t t
50686 s,@DEFS@,$DEFS,;t t
50687 s,@ECHO_C@,$ECHO_C,;t t
50688 s,@ECHO_N@,$ECHO_N,;t t
50689 s,@ECHO_T@,$ECHO_T,;t t
50690 s,@LIBS@,$LIBS,;t t
50691 s,@build@,$build,;t t
50692 s,@build_cpu@,$build_cpu,;t t
50693 s,@build_vendor@,$build_vendor,;t t
50694 s,@build_os@,$build_os,;t t
50695 s,@host@,$host,;t t
50696 s,@host_cpu@,$host_cpu,;t t
50697 s,@host_vendor@,$host_vendor,;t t
50698 s,@host_os@,$host_os,;t t
50699 s,@target@,$target,;t t
50700 s,@target_cpu@,$target_cpu,;t t
50701 s,@target_vendor@,$target_vendor,;t t
50702 s,@target_os@,$target_os,;t t
50703 s,@CONFIGURE_COMMAND@,$CONFIGURE_COMMAND,;t t
50704 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
50705 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
50706 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
50707 s,@CYGPATH_W@,$CYGPATH_W,;t t
50708 s,@PACKAGE@,$PACKAGE,;t t
50709 s,@VERSION@,$VERSION,;t t
50710 s,@ACLOCAL@,$ACLOCAL,;t t
50711 s,@AUTOCONF@,$AUTOCONF,;t t
50712 s,@AUTOMAKE@,$AUTOMAKE,;t t
50713 s,@AUTOHEADER@,$AUTOHEADER,;t t
50714 s,@MAKEINFO@,$MAKEINFO,;t t
50715 s,@install_sh@,$install_sh,;t t
50716 s,@STRIP@,$STRIP,;t t
50717 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
50718 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
50719 s,@mkdir_p@,$mkdir_p,;t t
50720 s,@AWK@,$AWK,;t t
50721 s,@SET_MAKE@,$SET_MAKE,;t t
50722 s,@am__leading_dot@,$am__leading_dot,;t t
50723 s,@AMTAR@,$AMTAR,;t t
50724 s,@am__tar@,$am__tar,;t t
50725 s,@am__untar@,$am__untar,;t t
50726 s,@SNAPSHOT_STAMP@,$SNAPSHOT_STAMP,;t t
50727 s,@VERSION_MAJOR@,$VERSION_MAJOR,;t t
50728 s,@VERSION_MINOR@,$VERSION_MINOR,;t t
50729 s,@VERSION_PATCH@,$VERSION_PATCH,;t t
50730 s,@VERSION_COMMENT@,$VERSION_COMMENT,;t t
50731 s,@VERSION_SUFFIX@,$VERSION_SUFFIX,;t t
50732 s,@CONFIG_DIR@,$CONFIG_DIR,;t t
50733 s,@USE_VERSION_SUFFIXES@,$USE_VERSION_SUFFIXES,;t t
50734 s,@CLIENT_SCRIPTS_OPT@,$CLIENT_SCRIPTS_OPT,;t t
50735 s,@DEFAULT_SERVER@,$DEFAULT_SERVER,;t t
50736 s,@CLIENT_LOGIN@,$CLIENT_LOGIN,;t t
50737 s,@SETUID_GROUP@,$SETUID_GROUP,;t t
50738 s,@BINARY_OWNER@,$BINARY_OWNER,;t t
50739 s,@DEFAULT_CONFIG@,$DEFAULT_CONFIG,;t t
50740 s,@DEFAULT_TAPE_SERVER@,$DEFAULT_TAPE_SERVER,;t t
50741 s,@DEFAULT_TAPE_DEVICE@,$DEFAULT_TAPE_DEVICE,;t t
50742 s,@DEFAULT_RAW_TAPE_DEVICE@,$DEFAULT_RAW_TAPE_DEVICE,;t t
50743 s,@DEFAULT_CHANGER_DEVICE@,$DEFAULT_CHANGER_DEVICE,;t t
50744 s,@GNUTAR_LISTED_INCREMENTAL_DIRX@,$GNUTAR_LISTED_INCREMENTAL_DIRX,;t t
50745 s,@MAXTAPEBLOCKSIZE@,$MAXTAPEBLOCKSIZE,;t t
50746 s,@AMANDA_TMPDIR@,$AMANDA_TMPDIR,;t t
50747 s,@AMANDA_DBGDIR@,$AMANDA_DBGDIR,;t t
50748 s,@AMANDA_DEBUG_DAYS@,$AMANDA_DEBUG_DAYS,;t t
50749 s,@SERVICE_SUFFIX@,$SERVICE_SUFFIX,;t t
50750 s,@CC@,$CC,;t t
50751 s,@CFLAGS@,$CFLAGS,;t t
50752 s,@LDFLAGS@,$LDFLAGS,;t t
50753 s,@CPPFLAGS@,$CPPFLAGS,;t t
50754 s,@ac_ct_CC@,$ac_ct_CC,;t t
50755 s,@EXEEXT@,$EXEEXT,;t t
50756 s,@OBJEXT@,$OBJEXT,;t t
50757 s,@DEPDIR@,$DEPDIR,;t t
50758 s,@am__include@,$am__include,;t t
50759 s,@am__quote@,$am__quote,;t t
50760 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
50761 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
50762 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
50763 s,@CCDEPMODE@,$CCDEPMODE,;t t
50764 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
50765 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
50766 s,@MT_FILE_FLAG@,$MT_FILE_FLAG,;t t
50767 s,@CPP@,$CPP,;t t
50768 s,@EGREP@,$EGREP,;t t
50769 s,@AR@,$AR,;t t
50770 s,@AWK_VAR_ASSIGNMENT_OPT@,$AWK_VAR_ASSIGNMENT_OPT,;t t
50771 s,@YACC@,$YACC,;t t
50772 s,@CAT@,$CAT,;t t
50773 s,@COMPRESS@,$COMPRESS,;t t
50774 s,@DD@,$DD,;t t
50775 s,@GETCONF@,$GETCONF,;t t
50776 s,@GNUPLOT@,$GNUPLOT,;t t
50777 s,@GREP@,$GREP,;t t
50778 s,@GNUTAR@,$GNUTAR,;t t
50779 s,@SAMBA_CLIENT@,$SAMBA_CLIENT,;t t
50780 s,@GZIP@,$GZIP,;t t
50781 s,@MAILER@,$MAILER,;t t
50782 s,@MT@,$MT,;t t
50783 s,@CHIO@,$CHIO,;t t
50784 s,@CHS@,$CHS,;t t
50785 s,@MTX@,$MTX,;t t
50786 s,@MCUTIL@,$MCUTIL,;t t
50787 s,@PRINT@,$PRINT,;t t
50788 s,@PCAT@,$PCAT,;t t
50789 s,@PERL@,$PERL,;t t
50790 s,@DUMP@,$DUMP,;t t
50791 s,@RESTORE@,$RESTORE,;t t
50792 s,@XFSDUMP@,$XFSDUMP,;t t
50793 s,@XFSRESTORE@,$XFSRESTORE,;t t
50794 s,@VXDUMP@,$VXDUMP,;t t
50795 s,@VXRESTORE@,$VXRESTORE,;t t
50796 s,@VDUMP@,$VDUMP,;t t
50797 s,@VRESTORE@,$VRESTORE,;t t
50798 s,@AMPLOT_COMPRESS@,$AMPLOT_COMPRESS,;t t
50799 s,@AMPLOT_CAT_GZIP@,$AMPLOT_CAT_GZIP,;t t
50800 s,@AMPLOT_CAT_COMPRESS@,$AMPLOT_CAT_COMPRESS,;t t
50801 s,@AMPLOT_CAT_PACK@,$AMPLOT_CAT_PACK,;t t
50802 s,@LN_S@,$LN_S,;t t
50803 s,@ECHO@,$ECHO,;t t
50804 s,@ac_ct_AR@,$ac_ct_AR,;t t
50805 s,@RANLIB@,$RANLIB,;t t
50806 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
50807 s,@CXX@,$CXX,;t t
50808 s,@CXXFLAGS@,$CXXFLAGS,;t t
50809 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
50810 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
50811 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
50812 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
50813 s,@CXXCPP@,$CXXCPP,;t t
50814 s,@F77@,$F77,;t t
50815 s,@FFLAGS@,$FFLAGS,;t t
50816 s,@ac_ct_F77@,$ac_ct_F77,;t t
50817 s,@LIBTOOL@,$LIBTOOL,;t t
50818 s,@LIBTOOL_DEPS@,$LIBTOOL_DEPS,;t t
50819 s,@LEX@,$LEX,;t t
50820 s,@LEXLIB@,$LEXLIB,;t t
50821 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
50822 s,@READLINE_LIBS@,$READLINE_LIBS,;t t
50823 s,@DB_EXT@,$DB_EXT,;t t
50824 s,@ALLOCA@,$ALLOCA,;t t
50825 s,@LIBOBJS@,$LIBOBJS,;t t
50826 s,@ac_n@,$ac_n,;t t
50827 s,@ac_c@,$ac_c,;t t
50828 s,@WANT_CLIENT_TRUE@,$WANT_CLIENT_TRUE,;t t
50829 s,@WANT_CLIENT_FALSE@,$WANT_CLIENT_FALSE,;t t
50830 s,@WANT_SAMBA_TRUE@,$WANT_SAMBA_TRUE,;t t
50831 s,@WANT_SAMBA_FALSE@,$WANT_SAMBA_FALSE,;t t
50832 s,@WANT_RESTORE_TRUE@,$WANT_RESTORE_TRUE,;t t
50833 s,@WANT_RESTORE_FALSE@,$WANT_RESTORE_FALSE,;t t
50834 s,@WANT_SERVER_TRUE@,$WANT_SERVER_TRUE,;t t
50835 s,@WANT_SERVER_FALSE@,$WANT_SERVER_FALSE,;t t
50836 s,@WANT_RECOVER_TRUE@,$WANT_RECOVER_TRUE,;t t
50837 s,@WANT_RECOVER_FALSE@,$WANT_RECOVER_FALSE,;t t
50838 s,@WANT_TAPE_TRUE@,$WANT_TAPE_TRUE,;t t
50839 s,@WANT_TAPE_FALSE@,$WANT_TAPE_FALSE,;t t
50840 s,@WANT_AMPLOT_TRUE@,$WANT_AMPLOT_TRUE,;t t
50841 s,@WANT_AMPLOT_FALSE@,$WANT_AMPLOT_FALSE,;t t
50842 s,@WANT_CHG_SCSI_TRUE@,$WANT_CHG_SCSI_TRUE,;t t
50843 s,@WANT_CHG_SCSI_FALSE@,$WANT_CHG_SCSI_FALSE,;t t
50844 s,@WANT_CHIO_SCSI_TRUE@,$WANT_CHIO_SCSI_TRUE,;t t
50845 s,@WANT_CHIO_SCSI_FALSE@,$WANT_CHIO_SCSI_FALSE,;t t
50846 s,@WANT_RUNTIME_PSEUDO_RELOC_TRUE@,$WANT_RUNTIME_PSEUDO_RELOC_TRUE,;t t
50847 s,@WANT_RUNTIME_PSEUDO_RELOC_FALSE@,$WANT_RUNTIME_PSEUDO_RELOC_FALSE,;t t
50848 s,@WANT_SETUID_CLIENT_TRUE@,$WANT_SETUID_CLIENT_TRUE,;t t
50849 s,@WANT_SETUID_CLIENT_FALSE@,$WANT_SETUID_CLIENT_FALSE,;t t
50850 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
50851 s,@LTALLOCA@,$LTALLOCA,;t t
50852 CEOF
50853
50854 _ACEOF
50855
50856   cat >>$CONFIG_STATUS <<\_ACEOF
50857   # Split the substitutions into bite-sized pieces for seds with
50858   # small command number limits, like on Digital OSF/1 and HP-UX.
50859   ac_max_sed_lines=48
50860   ac_sed_frag=1 # Number of current file.
50861   ac_beg=1 # First line for current file.
50862   ac_end=$ac_max_sed_lines # Line after last line for current file.
50863   ac_more_lines=:
50864   ac_sed_cmds=
50865   while $ac_more_lines; do
50866     if test $ac_beg -gt 1; then
50867       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
50868     else
50869       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
50870     fi
50871     if test ! -s $tmp/subs.frag; then
50872       ac_more_lines=false
50873     else
50874       # The purpose of the label and of the branching condition is to
50875       # speed up the sed processing (if there are no `@' at all, there
50876       # is no need to browse any of the substitutions).
50877       # These are the two extra sed commands mentioned above.
50878       (echo ':t
50879   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
50880       if test -z "$ac_sed_cmds"; then
50881         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
50882       else
50883         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
50884       fi
50885       ac_sed_frag=`expr $ac_sed_frag + 1`
50886       ac_beg=$ac_end
50887       ac_end=`expr $ac_end + $ac_max_sed_lines`
50888     fi
50889   done
50890   if test -z "$ac_sed_cmds"; then
50891     ac_sed_cmds=cat
50892   fi
50893 fi # test -n "$CONFIG_FILES"
50894
50895 _ACEOF
50896 cat >>$CONFIG_STATUS <<\_ACEOF
50897 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
50898   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
50899   case $ac_file in
50900   - | *:- | *:-:* ) # input from stdin
50901         cat >$tmp/stdin
50902         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
50903         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
50904   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
50905         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
50906   * )   ac_file_in=$ac_file.in ;;
50907   esac
50908
50909   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
50910   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
50911 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
50912          X"$ac_file" : 'X\(//\)[^/]' \| \
50913          X"$ac_file" : 'X\(//\)$' \| \
50914          X"$ac_file" : 'X\(/\)' \| \
50915          .     : '\(.\)' 2>/dev/null ||
50916 echo X"$ac_file" |
50917     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50918           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50919           /^X\(\/\/\)$/{ s//\1/; q; }
50920           /^X\(\/\).*/{ s//\1/; q; }
50921           s/.*/./; q'`
50922   { if $as_mkdir_p; then
50923     mkdir -p "$ac_dir"
50924   else
50925     as_dir="$ac_dir"
50926     as_dirs=
50927     while test ! -d "$as_dir"; do
50928       as_dirs="$as_dir $as_dirs"
50929       as_dir=`(dirname "$as_dir") 2>/dev/null ||
50930 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
50931          X"$as_dir" : 'X\(//\)[^/]' \| \
50932          X"$as_dir" : 'X\(//\)$' \| \
50933          X"$as_dir" : 'X\(/\)' \| \
50934          .     : '\(.\)' 2>/dev/null ||
50935 echo X"$as_dir" |
50936     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50937           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50938           /^X\(\/\/\)$/{ s//\1/; q; }
50939           /^X\(\/\).*/{ s//\1/; q; }
50940           s/.*/./; q'`
50941     done
50942     test ! -n "$as_dirs" || mkdir $as_dirs
50943   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
50944 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
50945    { (exit 1); exit 1; }; }; }
50946
50947   ac_builddir=.
50948
50949 if test "$ac_dir" != .; then
50950   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
50951   # A "../" for each directory in $ac_dir_suffix.
50952   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
50953 else
50954   ac_dir_suffix= ac_top_builddir=
50955 fi
50956
50957 case $srcdir in
50958   .)  # No --srcdir option.  We are building in place.
50959     ac_srcdir=.
50960     if test -z "$ac_top_builddir"; then
50961        ac_top_srcdir=.
50962     else
50963        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
50964     fi ;;
50965   [\\/]* | ?:[\\/]* )  # Absolute path.
50966     ac_srcdir=$srcdir$ac_dir_suffix;
50967     ac_top_srcdir=$srcdir ;;
50968   *) # Relative path.
50969     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
50970     ac_top_srcdir=$ac_top_builddir$srcdir ;;
50971 esac
50972
50973 # Do not use `cd foo && pwd` to compute absolute paths, because
50974 # the directories may not exist.
50975 case `pwd` in
50976 .) ac_abs_builddir="$ac_dir";;
50977 *)
50978   case "$ac_dir" in
50979   .) ac_abs_builddir=`pwd`;;
50980   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
50981   *) ac_abs_builddir=`pwd`/"$ac_dir";;
50982   esac;;
50983 esac
50984 case $ac_abs_builddir in
50985 .) ac_abs_top_builddir=${ac_top_builddir}.;;
50986 *)
50987   case ${ac_top_builddir}. in
50988   .) ac_abs_top_builddir=$ac_abs_builddir;;
50989   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
50990   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
50991   esac;;
50992 esac
50993 case $ac_abs_builddir in
50994 .) ac_abs_srcdir=$ac_srcdir;;
50995 *)
50996   case $ac_srcdir in
50997   .) ac_abs_srcdir=$ac_abs_builddir;;
50998   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
50999   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
51000   esac;;
51001 esac
51002 case $ac_abs_builddir in
51003 .) ac_abs_top_srcdir=$ac_top_srcdir;;
51004 *)
51005   case $ac_top_srcdir in
51006   .) ac_abs_top_srcdir=$ac_abs_builddir;;
51007   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
51008   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
51009   esac;;
51010 esac
51011
51012
51013   case $INSTALL in
51014   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
51015   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
51016   esac
51017
51018   if test x"$ac_file" != x-; then
51019     { echo "$as_me:$LINENO: creating $ac_file" >&5
51020 echo "$as_me: creating $ac_file" >&6;}
51021     rm -f "$ac_file"
51022   fi
51023   # Let's still pretend it is `configure' which instantiates (i.e., don't
51024   # use $as_me), people would be surprised to read:
51025   #    /* config.h.  Generated by config.status.  */
51026   if test x"$ac_file" = x-; then
51027     configure_input=
51028   else
51029     configure_input="$ac_file.  "
51030   fi
51031   configure_input=$configure_input"Generated from `echo $ac_file_in |
51032                                      sed 's,.*/,,'` by configure."
51033
51034   # First look for the input files in the build tree, otherwise in the
51035   # src tree.
51036   ac_file_inputs=`IFS=:
51037     for f in $ac_file_in; do
51038       case $f in
51039       -) echo $tmp/stdin ;;
51040       [\\/$]*)
51041          # Absolute (can't be DOS-style, as IFS=:)
51042          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
51043 echo "$as_me: error: cannot find input file: $f" >&2;}
51044    { (exit 1); exit 1; }; }
51045          echo "$f";;
51046       *) # Relative
51047          if test -f "$f"; then
51048            # Build tree
51049            echo "$f"
51050          elif test -f "$srcdir/$f"; then
51051            # Source tree
51052            echo "$srcdir/$f"
51053          else
51054            # /dev/null tree
51055            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
51056 echo "$as_me: error: cannot find input file: $f" >&2;}
51057    { (exit 1); exit 1; }; }
51058          fi;;
51059       esac
51060     done` || { (exit 1); exit 1; }
51061 _ACEOF
51062 cat >>$CONFIG_STATUS <<_ACEOF
51063   sed "$ac_vpsub
51064 $extrasub
51065 _ACEOF
51066 cat >>$CONFIG_STATUS <<\_ACEOF
51067 :t
51068 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
51069 s,@configure_input@,$configure_input,;t t
51070 s,@srcdir@,$ac_srcdir,;t t
51071 s,@abs_srcdir@,$ac_abs_srcdir,;t t
51072 s,@top_srcdir@,$ac_top_srcdir,;t t
51073 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
51074 s,@builddir@,$ac_builddir,;t t
51075 s,@abs_builddir@,$ac_abs_builddir,;t t
51076 s,@top_builddir@,$ac_top_builddir,;t t
51077 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
51078 s,@INSTALL@,$ac_INSTALL,;t t
51079 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
51080   rm -f $tmp/stdin
51081   if test x"$ac_file" != x-; then
51082     mv $tmp/out $ac_file
51083   else
51084     cat $tmp/out
51085     rm -f $tmp/out
51086   fi
51087
51088 done
51089 _ACEOF
51090 cat >>$CONFIG_STATUS <<\_ACEOF
51091
51092 #
51093 # CONFIG_HEADER section.
51094 #
51095
51096 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
51097 # NAME is the cpp macro being defined and VALUE is the value it is being given.
51098 #
51099 # ac_d sets the value in "#define NAME VALUE" lines.
51100 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
51101 ac_dB='[         ].*$,\1#\2'
51102 ac_dC=' '
51103 ac_dD=',;t'
51104 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
51105 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
51106 ac_uB='$,\1#\2define\3'
51107 ac_uC=' '
51108 ac_uD=',;t'
51109
51110 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
51111   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
51112   case $ac_file in
51113   - | *:- | *:-:* ) # input from stdin
51114         cat >$tmp/stdin
51115         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
51116         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
51117   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
51118         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
51119   * )   ac_file_in=$ac_file.in ;;
51120   esac
51121
51122   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
51123 echo "$as_me: creating $ac_file" >&6;}
51124
51125   # First look for the input files in the build tree, otherwise in the
51126   # src tree.
51127   ac_file_inputs=`IFS=:
51128     for f in $ac_file_in; do
51129       case $f in
51130       -) echo $tmp/stdin ;;
51131       [\\/$]*)
51132          # Absolute (can't be DOS-style, as IFS=:)
51133          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
51134 echo "$as_me: error: cannot find input file: $f" >&2;}
51135    { (exit 1); exit 1; }; }
51136          # Do quote $f, to prevent DOS paths from being IFS'd.
51137          echo "$f";;
51138       *) # Relative
51139          if test -f "$f"; then
51140            # Build tree
51141            echo "$f"
51142          elif test -f "$srcdir/$f"; then
51143            # Source tree
51144            echo "$srcdir/$f"
51145          else
51146            # /dev/null tree
51147            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
51148 echo "$as_me: error: cannot find input file: $f" >&2;}
51149    { (exit 1); exit 1; }; }
51150          fi;;
51151       esac
51152     done` || { (exit 1); exit 1; }
51153   # Remove the trailing spaces.
51154   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
51155
51156 _ACEOF
51157
51158 # Transform confdefs.h into two sed scripts, `conftest.defines' and
51159 # `conftest.undefs', that substitutes the proper values into
51160 # config.h.in to produce config.h.  The first handles `#define'
51161 # templates, and the second `#undef' templates.
51162 # And first: Protect against being on the right side of a sed subst in
51163 # config.status.  Protect against being in an unquoted here document
51164 # in config.status.
51165 rm -f conftest.defines conftest.undefs
51166 # Using a here document instead of a string reduces the quoting nightmare.
51167 # Putting comments in sed scripts is not portable.
51168 #
51169 # `end' is used to avoid that the second main sed command (meant for
51170 # 0-ary CPP macros) applies to n-ary macro definitions.
51171 # See the Autoconf documentation for `clear'.
51172 cat >confdef2sed.sed <<\_ACEOF
51173 s/[\\&,]/\\&/g
51174 s,[\\$`],\\&,g
51175 t clear
51176 : clear
51177 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
51178 t end
51179 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
51180 : end
51181 _ACEOF
51182 # If some macros were called several times there might be several times
51183 # the same #defines, which is useless.  Nevertheless, we may not want to
51184 # sort them, since we want the *last* AC-DEFINE to be honored.
51185 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
51186 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
51187 rm -f confdef2sed.sed
51188
51189 # This sed command replaces #undef with comments.  This is necessary, for
51190 # example, in the case of _POSIX_SOURCE, which is predefined and required
51191 # on some systems where configure will not decide to define it.
51192 cat >>conftest.undefs <<\_ACEOF
51193 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
51194 _ACEOF
51195
51196 # Break up conftest.defines because some shells have a limit on the size
51197 # of here documents, and old seds have small limits too (100 cmds).
51198 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
51199 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
51200 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
51201 echo '  :' >>$CONFIG_STATUS
51202 rm -f conftest.tail
51203 while grep . conftest.defines >/dev/null
51204 do
51205   # Write a limited-size here document to $tmp/defines.sed.
51206   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
51207   # Speed up: don't consider the non `#define' lines.
51208   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
51209   # Work around the forget-to-reset-the-flag bug.
51210   echo 't clr' >>$CONFIG_STATUS
51211   echo ': clr' >>$CONFIG_STATUS
51212   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
51213   echo 'CEOF
51214   sed -f $tmp/defines.sed $tmp/in >$tmp/out
51215   rm -f $tmp/in
51216   mv $tmp/out $tmp/in
51217 ' >>$CONFIG_STATUS
51218   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
51219   rm -f conftest.defines
51220   mv conftest.tail conftest.defines
51221 done
51222 rm -f conftest.defines
51223 echo '  fi # grep' >>$CONFIG_STATUS
51224 echo >>$CONFIG_STATUS
51225
51226 # Break up conftest.undefs because some shells have a limit on the size
51227 # of here documents, and old seds have small limits too (100 cmds).
51228 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
51229 rm -f conftest.tail
51230 while grep . conftest.undefs >/dev/null
51231 do
51232   # Write a limited-size here document to $tmp/undefs.sed.
51233   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
51234   # Speed up: don't consider the non `#undef'
51235   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
51236   # Work around the forget-to-reset-the-flag bug.
51237   echo 't clr' >>$CONFIG_STATUS
51238   echo ': clr' >>$CONFIG_STATUS
51239   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
51240   echo 'CEOF
51241   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
51242   rm -f $tmp/in
51243   mv $tmp/out $tmp/in
51244 ' >>$CONFIG_STATUS
51245   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
51246   rm -f conftest.undefs
51247   mv conftest.tail conftest.undefs
51248 done
51249 rm -f conftest.undefs
51250
51251 cat >>$CONFIG_STATUS <<\_ACEOF
51252   # Let's still pretend it is `configure' which instantiates (i.e., don't
51253   # use $as_me), people would be surprised to read:
51254   #    /* config.h.  Generated by config.status.  */
51255   if test x"$ac_file" = x-; then
51256     echo "/* Generated by configure.  */" >$tmp/config.h
51257   else
51258     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
51259   fi
51260   cat $tmp/in >>$tmp/config.h
51261   rm -f $tmp/in
51262   if test x"$ac_file" != x-; then
51263     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
51264       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
51265 echo "$as_me: $ac_file is unchanged" >&6;}
51266     else
51267       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
51268 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
51269          X"$ac_file" : 'X\(//\)[^/]' \| \
51270          X"$ac_file" : 'X\(//\)$' \| \
51271          X"$ac_file" : 'X\(/\)' \| \
51272          .     : '\(.\)' 2>/dev/null ||
51273 echo X"$ac_file" |
51274     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
51275           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
51276           /^X\(\/\/\)$/{ s//\1/; q; }
51277           /^X\(\/\).*/{ s//\1/; q; }
51278           s/.*/./; q'`
51279       { if $as_mkdir_p; then
51280     mkdir -p "$ac_dir"
51281   else
51282     as_dir="$ac_dir"
51283     as_dirs=
51284     while test ! -d "$as_dir"; do
51285       as_dirs="$as_dir $as_dirs"
51286       as_dir=`(dirname "$as_dir") 2>/dev/null ||
51287 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
51288          X"$as_dir" : 'X\(//\)[^/]' \| \
51289          X"$as_dir" : 'X\(//\)$' \| \
51290          X"$as_dir" : 'X\(/\)' \| \
51291          .     : '\(.\)' 2>/dev/null ||
51292 echo X"$as_dir" |
51293     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
51294           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
51295           /^X\(\/\/\)$/{ s//\1/; q; }
51296           /^X\(\/\).*/{ s//\1/; q; }
51297           s/.*/./; q'`
51298     done
51299     test ! -n "$as_dirs" || mkdir $as_dirs
51300   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
51301 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
51302    { (exit 1); exit 1; }; }; }
51303
51304       rm -f $ac_file
51305       mv $tmp/config.h $ac_file
51306     fi
51307   else
51308     cat $tmp/config.h
51309     rm -f $tmp/config.h
51310   fi
51311 # Compute $ac_file's index in $config_headers.
51312 _am_stamp_count=1
51313 for _am_header in $config_headers :; do
51314   case $_am_header in
51315     $ac_file | $ac_file:* )
51316       break ;;
51317     * )
51318       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
51319   esac
51320 done
51321 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
51322 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
51323          X$ac_file : 'X\(//\)[^/]' \| \
51324          X$ac_file : 'X\(//\)$' \| \
51325          X$ac_file : 'X\(/\)' \| \
51326          .     : '\(.\)' 2>/dev/null ||
51327 echo X$ac_file |
51328     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
51329           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
51330           /^X\(\/\/\)$/{ s//\1/; q; }
51331           /^X\(\/\).*/{ s//\1/; q; }
51332           s/.*/./; q'`/stamp-h$_am_stamp_count
51333 done
51334 _ACEOF
51335 cat >>$CONFIG_STATUS <<\_ACEOF
51336
51337 #
51338 # CONFIG_COMMANDS section.
51339 #
51340 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
51341   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
51342   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
51343   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
51344 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
51345          X"$ac_dest" : 'X\(//\)[^/]' \| \
51346          X"$ac_dest" : 'X\(//\)$' \| \
51347          X"$ac_dest" : 'X\(/\)' \| \
51348          .     : '\(.\)' 2>/dev/null ||
51349 echo X"$ac_dest" |
51350     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
51351           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
51352           /^X\(\/\/\)$/{ s//\1/; q; }
51353           /^X\(\/\).*/{ s//\1/; q; }
51354           s/.*/./; q'`
51355   { if $as_mkdir_p; then
51356     mkdir -p "$ac_dir"
51357   else
51358     as_dir="$ac_dir"
51359     as_dirs=
51360     while test ! -d "$as_dir"; do
51361       as_dirs="$as_dir $as_dirs"
51362       as_dir=`(dirname "$as_dir") 2>/dev/null ||
51363 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
51364          X"$as_dir" : 'X\(//\)[^/]' \| \
51365          X"$as_dir" : 'X\(//\)$' \| \
51366          X"$as_dir" : 'X\(/\)' \| \
51367          .     : '\(.\)' 2>/dev/null ||
51368 echo X"$as_dir" |
51369     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
51370           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
51371           /^X\(\/\/\)$/{ s//\1/; q; }
51372           /^X\(\/\).*/{ s//\1/; q; }
51373           s/.*/./; q'`
51374     done
51375     test ! -n "$as_dirs" || mkdir $as_dirs
51376   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
51377 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
51378    { (exit 1); exit 1; }; }; }
51379
51380   ac_builddir=.
51381
51382 if test "$ac_dir" != .; then
51383   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
51384   # A "../" for each directory in $ac_dir_suffix.
51385   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
51386 else
51387   ac_dir_suffix= ac_top_builddir=
51388 fi
51389
51390 case $srcdir in
51391   .)  # No --srcdir option.  We are building in place.
51392     ac_srcdir=.
51393     if test -z "$ac_top_builddir"; then
51394        ac_top_srcdir=.
51395     else
51396        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
51397     fi ;;
51398   [\\/]* | ?:[\\/]* )  # Absolute path.
51399     ac_srcdir=$srcdir$ac_dir_suffix;
51400     ac_top_srcdir=$srcdir ;;
51401   *) # Relative path.
51402     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
51403     ac_top_srcdir=$ac_top_builddir$srcdir ;;
51404 esac
51405
51406 # Do not use `cd foo && pwd` to compute absolute paths, because
51407 # the directories may not exist.
51408 case `pwd` in
51409 .) ac_abs_builddir="$ac_dir";;
51410 *)
51411   case "$ac_dir" in
51412   .) ac_abs_builddir=`pwd`;;
51413   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
51414   *) ac_abs_builddir=`pwd`/"$ac_dir";;
51415   esac;;
51416 esac
51417 case $ac_abs_builddir in
51418 .) ac_abs_top_builddir=${ac_top_builddir}.;;
51419 *)
51420   case ${ac_top_builddir}. in
51421   .) ac_abs_top_builddir=$ac_abs_builddir;;
51422   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
51423   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
51424   esac;;
51425 esac
51426 case $ac_abs_builddir in
51427 .) ac_abs_srcdir=$ac_srcdir;;
51428 *)
51429   case $ac_srcdir in
51430   .) ac_abs_srcdir=$ac_abs_builddir;;
51431   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
51432   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
51433   esac;;
51434 esac
51435 case $ac_abs_builddir in
51436 .) ac_abs_top_srcdir=$ac_top_srcdir;;
51437 *)
51438   case $ac_top_srcdir in
51439   .) ac_abs_top_srcdir=$ac_abs_builddir;;
51440   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
51441   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
51442   esac;;
51443 esac
51444
51445
51446   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
51447 echo "$as_me: executing $ac_dest commands" >&6;}
51448   case $ac_dest in
51449     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
51450   # Strip MF so we end up with the name of the file.
51451   mf=`echo "$mf" | sed -e 's/:.*$//'`
51452   # Check whether this is an Automake generated Makefile or not.
51453   # We used to match only the files named `Makefile.in', but
51454   # some people rename them; so instead we look at the file content.
51455   # Grep'ing the first line is not enough: some people post-process
51456   # each Makefile.in and add a new line on top of each file to say so.
51457   # So let's grep whole file.
51458   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
51459     dirpart=`(dirname "$mf") 2>/dev/null ||
51460 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
51461          X"$mf" : 'X\(//\)[^/]' \| \
51462          X"$mf" : 'X\(//\)$' \| \
51463          X"$mf" : 'X\(/\)' \| \
51464          .     : '\(.\)' 2>/dev/null ||
51465 echo X"$mf" |
51466     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
51467           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
51468           /^X\(\/\/\)$/{ s//\1/; q; }
51469           /^X\(\/\).*/{ s//\1/; q; }
51470           s/.*/./; q'`
51471   else
51472     continue
51473   fi
51474   # Extract the definition of DEPDIR, am__include, and am__quote
51475   # from the Makefile without running `make'.
51476   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
51477   test -z "$DEPDIR" && continue
51478   am__include=`sed -n 's/^am__include = //p' < "$mf"`
51479   test -z "am__include" && continue
51480   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
51481   # When using ansi2knr, U may be empty or an underscore; expand it
51482   U=`sed -n 's/^U = //p' < "$mf"`
51483   # Find all dependency output files, they are included files with
51484   # $(DEPDIR) in their names.  We invoke sed twice because it is the
51485   # simplest approach to changing $(DEPDIR) to its actual value in the
51486   # expansion.
51487   for file in `sed -n "
51488     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
51489        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
51490     # Make sure the directory exists.
51491     test -f "$dirpart/$file" && continue
51492     fdir=`(dirname "$file") 2>/dev/null ||
51493 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
51494          X"$file" : 'X\(//\)[^/]' \| \
51495          X"$file" : 'X\(//\)$' \| \
51496          X"$file" : 'X\(/\)' \| \
51497          .     : '\(.\)' 2>/dev/null ||
51498 echo X"$file" |
51499     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
51500           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
51501           /^X\(\/\/\)$/{ s//\1/; q; }
51502           /^X\(\/\).*/{ s//\1/; q; }
51503           s/.*/./; q'`
51504     { if $as_mkdir_p; then
51505     mkdir -p $dirpart/$fdir
51506   else
51507     as_dir=$dirpart/$fdir
51508     as_dirs=
51509     while test ! -d "$as_dir"; do
51510       as_dirs="$as_dir $as_dirs"
51511       as_dir=`(dirname "$as_dir") 2>/dev/null ||
51512 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
51513          X"$as_dir" : 'X\(//\)[^/]' \| \
51514          X"$as_dir" : 'X\(//\)$' \| \
51515          X"$as_dir" : 'X\(/\)' \| \
51516          .     : '\(.\)' 2>/dev/null ||
51517 echo X"$as_dir" |
51518     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
51519           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
51520           /^X\(\/\/\)$/{ s//\1/; q; }
51521           /^X\(\/\).*/{ s//\1/; q; }
51522           s/.*/./; q'`
51523     done
51524     test ! -n "$as_dirs" || mkdir $as_dirs
51525   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
51526 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
51527    { (exit 1); exit 1; }; }; }
51528
51529     # echo "creating $dirpart/$file"
51530     echo '# dummy' > "$dirpart/$file"
51531   done
51532 done
51533  ;;
51534     $ac_stdint_h )
51535 { echo "$as_me:$LINENO: creating $ac_stdint_h : $_ac_stdint_h" >&5
51536 echo "$as_me: creating $ac_stdint_h : $_ac_stdint_h" >&6;}
51537 ac_stdint=$tmp/_stdint.h
51538
51539 echo "#ifndef" $_ac_stdint_h >$ac_stdint
51540 echo "#define" $_ac_stdint_h "1" >>$ac_stdint
51541 echo "#ifndef" _GENERATED_STDINT_H >>$ac_stdint
51542 echo "#define" _GENERATED_STDINT_H '"'$PACKAGE $VERSION'"' >>$ac_stdint
51543 echo "/* generated $ac_cv_stdint_message */" >>$ac_stdint
51544 if test "_$ac_cv_header_stdint_t" != "_" ; then
51545 echo "#define _STDINT_HAVE_STDINT_H" "1" >>$ac_stdint
51546 fi
51547
51548 cat >>$ac_stdint <<STDINT_EOF
51549
51550 /* ................... shortcircuit part ........................... */
51551
51552 #if defined HAVE_STDINT_H || defined _STDINT_HAVE_STDINT_H
51553 #include <stdint.h>
51554 #else
51555 #include <stddef.h>
51556
51557 /* .................... configured part ............................ */
51558
51559 STDINT_EOF
51560
51561 echo "/* whether we have a C99 compatible stdint header file */" >>$ac_stdint
51562 if test "_$ac_cv_header_stdint_x" != "_" ; then
51563   ac_header="$ac_cv_header_stdint_x"
51564   echo "#define _STDINT_HEADER_INTPTR" '"'"$ac_header"'"' >>$ac_stdint
51565 else
51566   echo "/* #undef _STDINT_HEADER_INTPTR */" >>$ac_stdint
51567 fi
51568
51569 echo "/* whether we have a C96 compatible inttypes header file */" >>$ac_stdint
51570 if  test "_$ac_cv_header_stdint_o" != "_" ; then
51571   ac_header="$ac_cv_header_stdint_o"
51572   echo "#define _STDINT_HEADER_UINT32" '"'"$ac_header"'"' >>$ac_stdint
51573 else
51574   echo "/* #undef _STDINT_HEADER_UINT32 */" >>$ac_stdint
51575 fi
51576
51577 echo "/* whether we have a BSD compatible inet types header */" >>$ac_stdint
51578 if  test "_$ac_cv_header_stdint_u" != "_" ; then
51579   ac_header="$ac_cv_header_stdint_u"
51580   echo "#define _STDINT_HEADER_U_INT32" '"'"$ac_header"'"' >>$ac_stdint
51581 else
51582   echo "/* #undef _STDINT_HEADER_U_INT32 */" >>$ac_stdint
51583 fi
51584
51585 echo "" >>$ac_stdint
51586
51587 if test "_$ac_header" != "_" ; then if test "$ac_header" != "stddef.h" ; then
51588   echo "#include <$ac_header>" >>$ac_stdint
51589   echo "" >>$ac_stdint
51590 fi fi
51591
51592 echo "/* which 64bit typedef has been found */" >>$ac_stdint
51593 if test "$ac_cv_type_uint64_t" = "yes" ; then
51594 echo "#define   _STDINT_HAVE_UINT64_T" "1"  >>$ac_stdint
51595 else
51596 echo "/* #undef _STDINT_HAVE_UINT64_T */" >>$ac_stdint
51597 fi
51598 if test "$ac_cv_type_u_int64_t" = "yes" ; then
51599 echo "#define   _STDINT_HAVE_U_INT64_T" "1"  >>$ac_stdint
51600 else
51601 echo "/* #undef _STDINT_HAVE_U_INT64_T */" >>$ac_stdint
51602 fi
51603 echo "" >>$ac_stdint
51604
51605 echo "/* which type model has been detected */" >>$ac_stdint
51606 if test "_$ac_cv_stdint_char_model" != "_" ; then
51607 echo "#define   _STDINT_CHAR_MODEL" "$ac_cv_stdint_char_model" >>$ac_stdint
51608 echo "#define   _STDINT_LONG_MODEL" "$ac_cv_stdint_long_model" >>$ac_stdint
51609 else
51610 echo "/* #undef _STDINT_CHAR_MODEL // skipped */" >>$ac_stdint
51611 echo "/* #undef _STDINT_LONG_MODEL // skipped */" >>$ac_stdint
51612 fi
51613 echo "" >>$ac_stdint
51614
51615 echo "/* whether int_least types were detected */" >>$ac_stdint
51616 if test "$ac_cv_type_int_least32_t" = "yes"; then
51617 echo "#define   _STDINT_HAVE_INT_LEAST32_T" "1"  >>$ac_stdint
51618 else
51619 echo "/* #undef _STDINT_HAVE_INT_LEAST32_T */" >>$ac_stdint
51620 fi
51621 echo "/* whether int_fast types were detected */" >>$ac_stdint
51622 if test "$ac_cv_type_int_fast32_t" = "yes"; then
51623 echo "#define   _STDINT_HAVE_INT_FAST32_T" "1" >>$ac_stdint
51624 else
51625 echo "/* #undef _STDINT_HAVE_INT_FAST32_T */" >>$ac_stdint
51626 fi
51627 echo "/* whether intmax_t type was detected */" >>$ac_stdint
51628 if test "$ac_cv_type_intmax_t" = "yes"; then
51629 echo "#define   _STDINT_HAVE_INTMAX_T" "1" >>$ac_stdint
51630 else
51631 echo "/* #undef _STDINT_HAVE_INTMAX_T */" >>$ac_stdint
51632 fi
51633 echo "" >>$ac_stdint
51634
51635   cat >>$ac_stdint <<STDINT_EOF
51636 /* .................... detections part ............................ */
51637
51638 /* whether we need to define bitspecific types from compiler base types */
51639 #ifndef _STDINT_HEADER_INTPTR
51640 #ifndef _STDINT_HEADER_UINT32
51641 #ifndef _STDINT_HEADER_U_INT32
51642 #define _STDINT_NEED_INT_MODEL_T
51643 #else
51644 #define _STDINT_HAVE_U_INT_TYPES
51645 #endif
51646 #endif
51647 #endif
51648
51649 #ifdef _STDINT_HAVE_U_INT_TYPES
51650 #undef _STDINT_NEED_INT_MODEL_T
51651 #endif
51652
51653 #ifdef  _STDINT_CHAR_MODEL
51654 #if     _STDINT_CHAR_MODEL+0 == 122 || _STDINT_CHAR_MODEL+0 == 124
51655 #ifndef _STDINT_BYTE_MODEL
51656 #define _STDINT_BYTE_MODEL 12
51657 #endif
51658 #endif
51659 #endif
51660
51661 #ifndef _STDINT_HAVE_INT_LEAST32_T
51662 #define _STDINT_NEED_INT_LEAST_T
51663 #endif
51664
51665 #ifndef _STDINT_HAVE_INT_FAST32_T
51666 #define _STDINT_NEED_INT_FAST_T
51667 #endif
51668
51669 #ifndef _STDINT_HEADER_INTPTR
51670 #define _STDINT_NEED_INTPTR_T
51671 #ifndef _STDINT_HAVE_INTMAX_T
51672 #define _STDINT_NEED_INTMAX_T
51673 #endif
51674 #endif
51675
51676
51677 /* .................... definition part ............................ */
51678
51679 /* some system headers have good uint64_t */
51680 #ifndef _HAVE_UINT64_T
51681 #if     defined _STDINT_HAVE_UINT64_T  || defined HAVE_UINT64_T
51682 #define _HAVE_UINT64_T
51683 #elif   defined _STDINT_HAVE_U_INT64_T || defined HAVE_U_INT64_T
51684 #define _HAVE_UINT64_T
51685 typedef u_int64_t uint64_t;
51686 #endif
51687 #endif
51688
51689 #ifndef _HAVE_UINT64_T
51690 /* .. here are some common heuristics using compiler runtime specifics */
51691 #if defined __STDC_VERSION__ && defined __STDC_VERSION__ >= 199901L
51692 #define _HAVE_UINT64_T
51693 typedef long long int64_t;
51694 typedef unsigned long long uint64_t;
51695
51696 #elif !defined __STRICT_ANSI__
51697 #if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
51698 #define _HAVE_UINT64_T
51699 typedef __int64 int64_t;
51700 typedef unsigned __int64 uint64_t;
51701
51702 #elif defined __GNUC__ || defined __MWERKS__ || defined __ELF__
51703 /* note: all ELF-systems seem to have loff-support which needs 64-bit */
51704 #if !defined _NO_LONGLONG
51705 #define _HAVE_UINT64_T
51706 typedef long long int64_t;
51707 typedef unsigned long long uint64_t;
51708 #endif
51709
51710 #elif defined __alpha || (defined __mips && defined _ABIN32)
51711 #if !defined _NO_LONGLONG
51712 typedef long int64_t;
51713 typedef unsigned long uint64_t;
51714 #endif
51715   /* compiler/cpu type to define int64_t */
51716 #endif
51717 #endif
51718 #endif
51719
51720 #if defined _STDINT_HAVE_U_INT_TYPES
51721 /* int8_t int16_t int32_t defined by inet code, redeclare the u_intXX types */
51722 typedef u_int8_t uint8_t;
51723 typedef u_int16_t uint16_t;
51724 typedef u_int32_t uint32_t;
51725
51726 /* glibc compatibility */
51727 #ifndef __int8_t_defined
51728 #define __int8_t_defined
51729 #endif
51730 #endif
51731
51732 #ifdef _STDINT_NEED_INT_MODEL_T
51733 /* we must guess all the basic types. Apart from byte-adressable system, */
51734 /* there a few 32-bit-only dsp-systems that we guard with BYTE_MODEL 8-} */
51735 /* (btw, those nibble-addressable systems are way off, or so we assume) */
51736
51737
51738 #if defined _STDINT_BYTE_MODEL
51739 #if _STDINT_LONG_MODEL+0 == 242
51740 /* 2:4:2 =  IP16 = a normal 16-bit system                */
51741 typedef unsigned char   uint8_t;
51742 typedef unsigned short  uint16_t;
51743 typedef unsigned long   uint32_t;
51744 #ifndef __int8_t_defined
51745 #define __int8_t_defined
51746 typedef          char    int8_t;
51747 typedef          short   int16_t;
51748 typedef          long    int32_t;
51749 #endif
51750 #elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL == 444
51751 /* 2:4:4 =  LP32 = a 32-bit system derived from a 16-bit */
51752 /* 4:4:4 = ILP32 = a normal 32-bit system                */
51753 typedef unsigned char   uint8_t;
51754 typedef unsigned short  uint16_t;
51755 typedef unsigned int    uint32_t;
51756 #ifndef __int8_t_defined
51757 #define __int8_t_defined
51758 typedef          char    int8_t;
51759 typedef          short   int16_t;
51760 typedef          int     int32_t;
51761 #endif
51762 #elif _STDINT_LONG_MODEL+0 == 484 || _STDINT_LONG_MODEL+0 == 488
51763 /* 4:8:4 =  IP32 = a 32-bit system prepared for 64-bit    */
51764 /* 4:8:8 =  LP64 = a normal 64-bit system                 */
51765 typedef unsigned char   uint8_t;
51766 typedef unsigned short  uint16_t;
51767 typedef unsigned int    uint32_t;
51768 #ifndef __int8_t_defined
51769 #define __int8_t_defined
51770 typedef          char    int8_t;
51771 typedef          short   int16_t;
51772 typedef          int     int32_t;
51773 #endif
51774 /* this system has a "long" of 64bit */
51775 #ifndef _HAVE_UINT64_T
51776 #define _HAVE_UINT64_T
51777 typedef unsigned long   uint64_t;
51778 typedef          long    int64_t;
51779 #endif
51780 #elif _STDINT_LONG_MODEL+0 == 448
51781 /*      LLP64   a 64-bit system derived from a 32-bit system */
51782 typedef unsigned char   uint8_t;
51783 typedef unsigned short  uint16_t;
51784 typedef unsigned int    uint32_t;
51785 #ifndef __int8_t_defined
51786 #define __int8_t_defined
51787 typedef          char    int8_t;
51788 typedef          short   int16_t;
51789 typedef          int     int32_t;
51790 #endif
51791 /* assuming the system has a "long long" */
51792 #ifndef _HAVE_UINT64_T
51793 #define _HAVE_UINT64_T
51794 typedef unsigned long long uint64_t;
51795 typedef          long long  int64_t;
51796 #endif
51797 #else
51798 #define _STDINT_NO_INT32_T
51799 #endif
51800 #else
51801 #define _STDINT_NO_INT8_T
51802 #define _STDINT_NO_INT32_T
51803 #endif
51804 #endif
51805
51806 /*
51807  * quote from SunOS-5.8 sys/inttypes.h:
51808  * Use at your own risk.  As of February 1996, the committee is squarely
51809  * behind the fixed sized types; the "least" and "fast" types are still being
51810  * discussed.  The probability that the "fast" types may be removed before
51811  * the standard is finalized is high enough that they are not currently
51812  * implemented.
51813  */
51814
51815 #if defined _STDINT_NEED_INT_LEAST_T
51816 typedef  int8_t    int_least8_t;
51817 typedef  int16_t   int_least16_t;
51818 typedef  int32_t   int_least32_t;
51819 #ifdef _HAVE_UINT64_T
51820 typedef  int64_t   int_least64_t;
51821 #endif
51822
51823 typedef uint8_t   uint_least8_t;
51824 typedef uint16_t  uint_least16_t;
51825 typedef uint32_t  uint_least32_t;
51826 #ifdef _HAVE_UINT64_T
51827 typedef uint64_t  uint_least64_t;
51828 #endif
51829   /* least types */
51830 #endif
51831
51832 #if defined _STDINT_NEED_INT_FAST_T
51833 typedef  int8_t    int_fast8_t;
51834 typedef  int       int_fast16_t;
51835 typedef  int32_t   int_fast32_t;
51836 #ifdef _HAVE_UINT64_T
51837 typedef  int64_t   int_fast64_t;
51838 #endif
51839
51840 typedef uint8_t   uint_fast8_t;
51841 typedef unsigned  uint_fast16_t;
51842 typedef uint32_t  uint_fast32_t;
51843 #ifdef _HAVE_UINT64_T
51844 typedef uint64_t  uint_fast64_t;
51845 #endif
51846   /* fast types */
51847 #endif
51848
51849 #ifdef _STDINT_NEED_INTMAX_T
51850 #ifdef _HAVE_UINT64_T
51851 typedef  int64_t       intmax_t;
51852 typedef uint64_t      uintmax_t;
51853 #else
51854 typedef          long  intmax_t;
51855 typedef unsigned long uintmax_t;
51856 #endif
51857 #endif
51858
51859 #ifdef _STDINT_NEED_INTPTR_T
51860 #ifndef __intptr_t_defined
51861 #define __intptr_t_defined
51862 /* we encourage using "long" to store pointer values, never use "int" ! */
51863 #if   _STDINT_LONG_MODEL+0 == 242 || _STDINT_LONG_MODEL+0 == 484
51864 typedef  unsinged int   uintptr_t;
51865 typedef           int    intptr_t;
51866 #elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL+0 == 444
51867 typedef  unsigned long  uintptr_t;
51868 typedef           long   intptr_t;
51869 #elif _STDINT_LONG_MODEL+0 == 448 && defined _HAVE_UINT64_T
51870 typedef        uint64_t uintptr_t;
51871 typedef         int64_t  intptr_t;
51872 #else /* matches typical system types ILP32 and LP64 - but not IP16 or LLP64 */
51873 typedef  unsigned long  uintptr_t;
51874 typedef           long   intptr_t;
51875 #endif
51876 #endif
51877 #endif
51878
51879   /* shortcircuit*/
51880 #endif
51881   /* once */
51882 #endif
51883 #endif
51884 STDINT_EOF
51885     if cmp -s $ac_stdint_h $ac_stdint 2>/dev/null; then
51886       { echo "$as_me:$LINENO: $ac_stdint_h is unchanged" >&5
51887 echo "$as_me: $ac_stdint_h is unchanged" >&6;}
51888     else
51889       ac_dir=`(dirname "$ac_stdint_h") 2>/dev/null ||
51890 $as_expr X"$ac_stdint_h" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
51891          X"$ac_stdint_h" : 'X\(//\)[^/]' \| \
51892          X"$ac_stdint_h" : 'X\(//\)$' \| \
51893          X"$ac_stdint_h" : 'X\(/\)' \| \
51894          .     : '\(.\)' 2>/dev/null ||
51895 echo X"$ac_stdint_h" |
51896     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
51897           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
51898           /^X\(\/\/\)$/{ s//\1/; q; }
51899           /^X\(\/\).*/{ s//\1/; q; }
51900           s/.*/./; q'`
51901       { if $as_mkdir_p; then
51902     mkdir -p "$ac_dir"
51903   else
51904     as_dir="$ac_dir"
51905     as_dirs=
51906     while test ! -d "$as_dir"; do
51907       as_dirs="$as_dir $as_dirs"
51908       as_dir=`(dirname "$as_dir") 2>/dev/null ||
51909 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
51910          X"$as_dir" : 'X\(//\)[^/]' \| \
51911          X"$as_dir" : 'X\(//\)$' \| \
51912          X"$as_dir" : 'X\(/\)' \| \
51913          .     : '\(.\)' 2>/dev/null ||
51914 echo X"$as_dir" |
51915     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
51916           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
51917           /^X\(\/\/\)$/{ s//\1/; q; }
51918           /^X\(\/\).*/{ s//\1/; q; }
51919           s/.*/./; q'`
51920     done
51921     test ! -n "$as_dirs" || mkdir $as_dirs
51922   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
51923 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
51924    { (exit 1); exit 1; }; }; }
51925
51926       rm -f $ac_stdint_h
51927       mv $ac_stdint $ac_stdint_h
51928     fi
51929  ;;
51930   esac
51931 done
51932 _ACEOF
51933
51934 cat >>$CONFIG_STATUS <<\_ACEOF
51935
51936 { (exit 0); exit 0; }
51937 _ACEOF
51938 chmod +x $CONFIG_STATUS
51939 ac_clean_files=$ac_clean_files_save
51940
51941
51942 # configure is writing to config.log, and then calls config.status.
51943 # config.status does its own redirection, appending to config.log.
51944 # Unfortunately, on DOS this fails, as config.log is still kept open
51945 # by configure, so config.status won't be able to write to it; its
51946 # output is simply discarded.  So we exec the FD to /dev/null,
51947 # effectively closing config.log, so it can be properly (re)opened and
51948 # appended to by config.status.  When coming back to configure, we
51949 # need to make the FD available again.
51950 if test "$no_create" != yes; then
51951   ac_cs_success=:
51952   ac_config_status_args=
51953   test "$silent" = yes &&
51954     ac_config_status_args="$ac_config_status_args --quiet"
51955   exec 5>/dev/null
51956   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
51957   exec 5>>config.log
51958   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
51959   # would make configure fail if this is the last instruction.
51960   $ac_cs_success || { (exit 1); exit 1; }
51961 fi
51962