source: trunk/gsdl3/src/packages/javagdbm/configure@ 10737

Last change on this file since 10737 was 10737, checked in by kjdon, 19 years ago

Java Wrapper for GDBM, from Martin Pool. Original website gone, so added it all in here. I have modified the Makefiles to work in greenstone, and on macs, and added windows makefiles

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 146.9 KB
Line 
1#! /bin/sh
2# From configure.in Revision: 1.5 .
3# Guess values for system-dependent variables and create Makefiles.
4# Generated by GNU Autoconf 2.59.
5#
6# Copyright (C) 2003 Free Software Foundation, Inc.
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9## --------------------- ##
10## M4sh Initialization. ##
11## --------------------- ##
12
13# Be Bourne compatible
14if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15 emulate sh
16 NULLCMD=:
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21 set -o posix
22fi
23DUALCASE=1; export DUALCASE # for MKS sh
24
25# Support unset when possible.
26if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
27 as_unset=unset
28else
29 as_unset=false
30fi
31
32
33# Work around bugs in pre-3.0 UWIN ksh.
34$as_unset ENV MAIL MAILPATH
35PS1='$ '
36PS2='> '
37PS4='+ '
38
39# NLS nuisances.
40for as_var in \
41 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
42 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
43 LC_TELEPHONE LC_TIME
44do
45 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
46 eval $as_var=C; export $as_var
47 else
48 $as_unset $as_var
49 fi
50done
51
52# Required to use basename.
53if expr a : '\(a\)' >/dev/null 2>&1; then
54 as_expr=expr
55else
56 as_expr=false
57fi
58
59if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
60 as_basename=basename
61else
62 as_basename=false
63fi
64
65
66# Name of the executable.
67as_me=`$as_basename "$0" ||
68$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
69 X"$0" : 'X\(//\)$' \| \
70 X"$0" : 'X\(/\)$' \| \
71 . : '\(.\)' 2>/dev/null ||
72echo X/"$0" |
73 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
74 /^X\/\(\/\/\)$/{ s//\1/; q; }
75 /^X\/\(\/\).*/{ s//\1/; q; }
76 s/.*/./; q'`
77
78
79# PATH needs CR, and LINENO needs CR and PATH.
80# Avoid depending upon Character Ranges.
81as_cr_letters='abcdefghijklmnopqrstuvwxyz'
82as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
83as_cr_Letters=$as_cr_letters$as_cr_LETTERS
84as_cr_digits='0123456789'
85as_cr_alnum=$as_cr_Letters$as_cr_digits
86
87# The user is always right.
88if test "${PATH_SEPARATOR+set}" != set; then
89 echo "#! /bin/sh" >conf$$.sh
90 echo "exit 0" >>conf$$.sh
91 chmod +x conf$$.sh
92 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
93 PATH_SEPARATOR=';'
94 else
95 PATH_SEPARATOR=:
96 fi
97 rm -f conf$$.sh
98fi
99
100
101 as_lineno_1=$LINENO
102 as_lineno_2=$LINENO
103 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
104 test "x$as_lineno_1" != "x$as_lineno_2" &&
105 test "x$as_lineno_3" = "x$as_lineno_2" || {
106 # Find who we are. Look in the path if we contain no path at all
107 # relative or not.
108 case $0 in
109 *[\\/]* ) as_myself=$0 ;;
110 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
111for as_dir in $PATH
112do
113 IFS=$as_save_IFS
114 test -z "$as_dir" && as_dir=.
115 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
116done
117
118 ;;
119 esac
120 # We did not find ourselves, most probably we were run as `sh COMMAND'
121 # in which case we are not to be found in the path.
122 if test "x$as_myself" = x; then
123 as_myself=$0
124 fi
125 if test ! -f "$as_myself"; then
126 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
127 { (exit 1); exit 1; }; }
128 fi
129 case $CONFIG_SHELL in
130 '')
131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
132for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133do
134 IFS=$as_save_IFS
135 test -z "$as_dir" && as_dir=.
136 for as_base in sh bash ksh sh5; do
137 case $as_dir in
138 /*)
139 if ("$as_dir/$as_base" -c '
140 as_lineno_1=$LINENO
141 as_lineno_2=$LINENO
142 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
143 test "x$as_lineno_1" != "x$as_lineno_2" &&
144 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
145 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
146 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
147 CONFIG_SHELL=$as_dir/$as_base
148 export CONFIG_SHELL
149 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
150 fi;;
151 esac
152 done
153done
154;;
155 esac
156
157 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
158 # uniformly replaced by the line number. The first 'sed' inserts a
159 # line-number line before each line; the second 'sed' does the real
160 # work. The second script uses 'N' to pair each line-number line
161 # with the numbered line, and appends trailing '-' during
162 # substitution so that $LINENO is not a special case at line end.
163 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
164 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
165 sed '=' <$as_myself |
166 sed '
167 N
168 s,$,-,
169 : loop
170 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
171 t loop
172 s,-$,,
173 s,^['$as_cr_digits']*\n,,
174 ' >$as_me.lineno &&
175 chmod +x $as_me.lineno ||
176 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
177 { (exit 1); exit 1; }; }
178
179 # Don't try to exec as it changes $[0], causing all sort of problems
180 # (the dirname of $[0] is not the place where we might find the
181 # original and so on. Autoconf is especially sensible to this).
182 . ./$as_me.lineno
183 # Exit status is that of the last command.
184 exit
185}
186
187
188case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
189 *c*,-n*) ECHO_N= ECHO_C='
190' ECHO_T=' ' ;;
191 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
192 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
193esac
194
195if expr a : '\(a\)' >/dev/null 2>&1; then
196 as_expr=expr
197else
198 as_expr=false
199fi
200
201rm -f conf$$ conf$$.exe conf$$.file
202echo >conf$$.file
203if ln -s conf$$.file conf$$ 2>/dev/null; then
204 # We could just check for DJGPP; but this test a) works b) is more generic
205 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
206 if test -f conf$$.exe; then
207 # Don't use ln at all; we don't have any links
208 as_ln_s='cp -p'
209 else
210 as_ln_s='ln -s'
211 fi
212elif ln conf$$.file conf$$ 2>/dev/null; then
213 as_ln_s=ln
214else
215 as_ln_s='cp -p'
216fi
217rm -f conf$$ conf$$.exe conf$$.file
218
219if mkdir -p . 2>/dev/null; then
220 as_mkdir_p=:
221else
222 test -d ./-p && rmdir ./-p
223 as_mkdir_p=false
224fi
225
226as_executable_p="test -f"
227
228# Sed expression to map a string onto a valid CPP name.
229as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230
231# Sed expression to map a string onto a valid variable name.
232as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
233
234
235# IFS
236# We need space, tab and new line, in precisely that order.
237as_nl='
238'
239IFS=" $as_nl"
240
241# CDPATH.
242$as_unset CDPATH
243
244
245# Name of the host.
246# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
247# so uname gets run too.
248ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
249
250exec 6>&1
251
252#
253# Initializations.
254#
255ac_default_prefix=/usr/local
256ac_config_libobj_dir=.
257cross_compiling=no
258subdirs=
259MFLAGS=
260MAKEFLAGS=
261SHELL=${CONFIG_SHELL-/bin/sh}
262
263# Maximum number of lines to put in a shell here document.
264# This variable seems obsolete. It should probably be removed, and
265# only ac_max_sed_lines should be used.
266: ${ac_max_here_lines=38}
267
268# Identity of this package.
269PACKAGE_NAME=
270PACKAGE_TARNAME=
271PACKAGE_VERSION=
272PACKAGE_STRING=
273PACKAGE_BUGREPORT=
274
275ac_unique_file="jni/gdbmjava.c"
276# Factoring default headers for most tests.
277ac_includes_default="\
278#include <stdio.h>
279#if HAVE_SYS_TYPES_H
280# include <sys/types.h>
281#endif
282#if HAVE_SYS_STAT_H
283# include <sys/stat.h>
284#endif
285#if STDC_HEADERS
286# include <stdlib.h>
287# include <stddef.h>
288#else
289# if HAVE_STDLIB_H
290# include <stdlib.h>
291# endif
292#endif
293#if HAVE_STRING_H
294# if !STDC_HEADERS && HAVE_MEMORY_H
295# include <memory.h>
296# endif
297# include <string.h>
298#endif
299#if HAVE_STRINGS_H
300# include <strings.h>
301#endif
302#if HAVE_INTTYPES_H
303# include <inttypes.h>
304#else
305# if HAVE_STDINT_H
306# include <stdint.h>
307# endif
308#endif
309#if HAVE_UNISTD_H
310# include <unistd.h>
311#endif"
312
313ac_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 CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S CPP EGREP JAVA_HOME javagdbm_cv_path_javah javagdbm_cv_path_java PKG JNIINC JNISUFFIX JNIFLAGS LIBOBJS LTLIBOBJS'
314ac_subst_files=''
315
316# Initialize some variables set by options.
317ac_init_help=
318ac_init_version=false
319# The variables have the same names as the options, with
320# dashes changed to underlines.
321cache_file=/dev/null
322exec_prefix=NONE
323no_create=
324no_recursion=
325prefix=NONE
326program_prefix=NONE
327program_suffix=NONE
328program_transform_name=s,x,x,
329silent=
330site=
331srcdir=
332verbose=
333x_includes=NONE
334x_libraries=NONE
335
336# Installation directory options.
337# These are left unexpanded so users can "make install exec_prefix=/foo"
338# and all the variables that are supposed to be based on exec_prefix
339# by default will actually change.
340# Use braces instead of parens because sh, perl, etc. also accept them.
341bindir='${exec_prefix}/bin'
342sbindir='${exec_prefix}/sbin'
343libexecdir='${exec_prefix}/libexec'
344datadir='${prefix}/share'
345sysconfdir='${prefix}/etc'
346sharedstatedir='${prefix}/com'
347localstatedir='${prefix}/var'
348libdir='${exec_prefix}/lib'
349includedir='${prefix}/include'
350oldincludedir='/usr/include'
351infodir='${prefix}/info'
352mandir='${prefix}/man'
353
354ac_prev=
355for ac_option
356do
357 # If the previous option needs an argument, assign it.
358 if test -n "$ac_prev"; then
359 eval "$ac_prev=\$ac_option"
360 ac_prev=
361 continue
362 fi
363
364 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365
366 # Accept the important Cygnus configure options, so we can diagnose typos.
367
368 case $ac_option in
369
370 -bindir | --bindir | --bindi | --bind | --bin | --bi)
371 ac_prev=bindir ;;
372 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373 bindir=$ac_optarg ;;
374
375 -build | --build | --buil | --bui | --bu)
376 ac_prev=build_alias ;;
377 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
378 build_alias=$ac_optarg ;;
379
380 -cache-file | --cache-file | --cache-fil | --cache-fi \
381 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
382 ac_prev=cache_file ;;
383 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
384 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
385 cache_file=$ac_optarg ;;
386
387 --config-cache | -C)
388 cache_file=config.cache ;;
389
390 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391 ac_prev=datadir ;;
392 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393 | --da=*)
394 datadir=$ac_optarg ;;
395
396 -disable-* | --disable-*)
397 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398 # Reject names that are not valid shell variable names.
399 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401 { (exit 1); exit 1; }; }
402 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
403 eval "enable_$ac_feature=no" ;;
404
405 -enable-* | --enable-*)
406 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407 # Reject names that are not valid shell variable names.
408 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410 { (exit 1); exit 1; }; }
411 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412 case $ac_option in
413 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414 *) ac_optarg=yes ;;
415 esac
416 eval "enable_$ac_feature='$ac_optarg'" ;;
417
418 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420 | --exec | --exe | --ex)
421 ac_prev=exec_prefix ;;
422 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424 | --exec=* | --exe=* | --ex=*)
425 exec_prefix=$ac_optarg ;;
426
427 -gas | --gas | --ga | --g)
428 # Obsolete; use --with-gas.
429 with_gas=yes ;;
430
431 -help | --help | --hel | --he | -h)
432 ac_init_help=long ;;
433 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
434 ac_init_help=recursive ;;
435 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
436 ac_init_help=short ;;
437
438 -host | --host | --hos | --ho)
439 ac_prev=host_alias ;;
440 -host=* | --host=* | --hos=* | --ho=*)
441 host_alias=$ac_optarg ;;
442
443 -includedir | --includedir | --includedi | --included | --include \
444 | --includ | --inclu | --incl | --inc)
445 ac_prev=includedir ;;
446 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
447 | --includ=* | --inclu=* | --incl=* | --inc=*)
448 includedir=$ac_optarg ;;
449
450 -infodir | --infodir | --infodi | --infod | --info | --inf)
451 ac_prev=infodir ;;
452 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
453 infodir=$ac_optarg ;;
454
455 -libdir | --libdir | --libdi | --libd)
456 ac_prev=libdir ;;
457 -libdir=* | --libdir=* | --libdi=* | --libd=*)
458 libdir=$ac_optarg ;;
459
460 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461 | --libexe | --libex | --libe)
462 ac_prev=libexecdir ;;
463 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464 | --libexe=* | --libex=* | --libe=*)
465 libexecdir=$ac_optarg ;;
466
467 -localstatedir | --localstatedir | --localstatedi | --localstated \
468 | --localstate | --localstat | --localsta | --localst \
469 | --locals | --local | --loca | --loc | --lo)
470 ac_prev=localstatedir ;;
471 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
472 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
473 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
474 localstatedir=$ac_optarg ;;
475
476 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477 ac_prev=mandir ;;
478 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
479 mandir=$ac_optarg ;;
480
481 -nfp | --nfp | --nf)
482 # Obsolete; use --without-fp.
483 with_fp=no ;;
484
485 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486 | --no-cr | --no-c | -n)
487 no_create=yes ;;
488
489 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491 no_recursion=yes ;;
492
493 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
494 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
495 | --oldin | --oldi | --old | --ol | --o)
496 ac_prev=oldincludedir ;;
497 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
498 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
499 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
500 oldincludedir=$ac_optarg ;;
501
502 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503 ac_prev=prefix ;;
504 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505 prefix=$ac_optarg ;;
506
507 -program-prefix | --program-prefix | --program-prefi | --program-pref \
508 | --program-pre | --program-pr | --program-p)
509 ac_prev=program_prefix ;;
510 -program-prefix=* | --program-prefix=* | --program-prefi=* \
511 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
512 program_prefix=$ac_optarg ;;
513
514 -program-suffix | --program-suffix | --program-suffi | --program-suff \
515 | --program-suf | --program-su | --program-s)
516 ac_prev=program_suffix ;;
517 -program-suffix=* | --program-suffix=* | --program-suffi=* \
518 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
519 program_suffix=$ac_optarg ;;
520
521 -program-transform-name | --program-transform-name \
522 | --program-transform-nam | --program-transform-na \
523 | --program-transform-n | --program-transform- \
524 | --program-transform | --program-transfor \
525 | --program-transfo | --program-transf \
526 | --program-trans | --program-tran \
527 | --progr-tra | --program-tr | --program-t)
528 ac_prev=program_transform_name ;;
529 -program-transform-name=* | --program-transform-name=* \
530 | --program-transform-nam=* | --program-transform-na=* \
531 | --program-transform-n=* | --program-transform-=* \
532 | --program-transform=* | --program-transfor=* \
533 | --program-transfo=* | --program-transf=* \
534 | --program-trans=* | --program-tran=* \
535 | --progr-tra=* | --program-tr=* | --program-t=*)
536 program_transform_name=$ac_optarg ;;
537
538 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539 | -silent | --silent | --silen | --sile | --sil)
540 silent=yes ;;
541
542 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543 ac_prev=sbindir ;;
544 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545 | --sbi=* | --sb=*)
546 sbindir=$ac_optarg ;;
547
548 -sharedstatedir | --sharedstatedir | --sharedstatedi \
549 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550 | --sharedst | --shareds | --shared | --share | --shar \
551 | --sha | --sh)
552 ac_prev=sharedstatedir ;;
553 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556 | --sha=* | --sh=*)
557 sharedstatedir=$ac_optarg ;;
558
559 -site | --site | --sit)
560 ac_prev=site ;;
561 -site=* | --site=* | --sit=*)
562 site=$ac_optarg ;;
563
564 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565 ac_prev=srcdir ;;
566 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567 srcdir=$ac_optarg ;;
568
569 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
570 | --syscon | --sysco | --sysc | --sys | --sy)
571 ac_prev=sysconfdir ;;
572 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
573 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
574 sysconfdir=$ac_optarg ;;
575
576 -target | --target | --targe | --targ | --tar | --ta | --t)
577 ac_prev=target_alias ;;
578 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
579 target_alias=$ac_optarg ;;
580
581 -v | -verbose | --verbose | --verbos | --verbo | --verb)
582 verbose=yes ;;
583
584 -version | --version | --versio | --versi | --vers | -V)
585 ac_init_version=: ;;
586
587 -with-* | --with-*)
588 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589 # Reject names that are not valid shell variable names.
590 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591 { echo "$as_me: error: invalid package name: $ac_package" >&2
592 { (exit 1); exit 1; }; }
593 ac_package=`echo $ac_package| sed 's/-/_/g'`
594 case $ac_option in
595 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596 *) ac_optarg=yes ;;
597 esac
598 eval "with_$ac_package='$ac_optarg'" ;;
599
600 -without-* | --without-*)
601 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602 # Reject names that are not valid shell variable names.
603 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
604 { echo "$as_me: error: invalid package name: $ac_package" >&2
605 { (exit 1); exit 1; }; }
606 ac_package=`echo $ac_package | sed 's/-/_/g'`
607 eval "with_$ac_package=no" ;;
608
609 --x)
610 # Obsolete; use --with-x.
611 with_x=yes ;;
612
613 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
614 | --x-incl | --x-inc | --x-in | --x-i)
615 ac_prev=x_includes ;;
616 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
617 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
618 x_includes=$ac_optarg ;;
619
620 -x-libraries | --x-libraries | --x-librarie | --x-librari \
621 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
622 ac_prev=x_libraries ;;
623 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
624 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
625 x_libraries=$ac_optarg ;;
626
627 -*) { echo "$as_me: error: unrecognized option: $ac_option
628Try \`$0 --help' for more information." >&2
629 { (exit 1); exit 1; }; }
630 ;;
631
632 *=*)
633 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
634 # Reject names that are not valid shell variable names.
635 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
636 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637 { (exit 1); exit 1; }; }
638 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639 eval "$ac_envvar='$ac_optarg'"
640 export $ac_envvar ;;
641
642 *)
643 # FIXME: should be removed in autoconf 3.0.
644 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
646 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
648 ;;
649
650 esac
651done
652
653if test -n "$ac_prev"; then
654 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
655 { echo "$as_me: error: missing argument to $ac_option" >&2
656 { (exit 1); exit 1; }; }
657fi
658
659# Be sure to have absolute paths.
660for ac_var in exec_prefix prefix
661do
662 eval ac_val=$`echo $ac_var`
663 case $ac_val in
664 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
665 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666 { (exit 1); exit 1; }; };;
667 esac
668done
669
670# Be sure to have absolute paths.
671for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672 localstatedir libdir includedir oldincludedir infodir mandir
673do
674 eval ac_val=$`echo $ac_var`
675 case $ac_val in
676 [\\/$]* | ?:[\\/]* ) ;;
677 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678 { (exit 1); exit 1; }; };;
679 esac
680done
681
682# There might be people who depend on the old broken behavior: `$host'
683# used to hold the argument of --host etc.
684# FIXME: To remove some day.
685build=$build_alias
686host=$host_alias
687target=$target_alias
688
689# FIXME: To remove some day.
690if test "x$host_alias" != x; then
691 if test "x$build_alias" = x; then
692 cross_compiling=maybe
693 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694 If a cross compiler is detected then cross compile mode will be used." >&2
695 elif test "x$build_alias" != "x$host_alias"; then
696 cross_compiling=yes
697 fi
698fi
699
700ac_tool_prefix=
701test -n "$host_alias" && ac_tool_prefix=$host_alias-
702
703test "$silent" = yes && exec 6>/dev/null
704
705
706# Find the source files, if location was not specified.
707if test -z "$srcdir"; then
708 ac_srcdir_defaulted=yes
709 # Try the directory containing this script, then its parent.
710 ac_confdir=`(dirname "$0") 2>/dev/null ||
711$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712 X"$0" : 'X\(//\)[^/]' \| \
713 X"$0" : 'X\(//\)$' \| \
714 X"$0" : 'X\(/\)' \| \
715 . : '\(.\)' 2>/dev/null ||
716echo X"$0" |
717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719 /^X\(\/\/\)$/{ s//\1/; q; }
720 /^X\(\/\).*/{ s//\1/; q; }
721 s/.*/./; q'`
722 srcdir=$ac_confdir
723 if test ! -r $srcdir/$ac_unique_file; then
724 srcdir=..
725 fi
726else
727 ac_srcdir_defaulted=no
728fi
729if test ! -r $srcdir/$ac_unique_file; then
730 if test "$ac_srcdir_defaulted" = yes; then
731 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732 { (exit 1); exit 1; }; }
733 else
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735 { (exit 1); exit 1; }; }
736 fi
737fi
738(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
739 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740 { (exit 1); exit 1; }; }
741srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742ac_env_build_alias_set=${build_alias+set}
743ac_env_build_alias_value=$build_alias
744ac_cv_env_build_alias_set=${build_alias+set}
745ac_cv_env_build_alias_value=$build_alias
746ac_env_host_alias_set=${host_alias+set}
747ac_env_host_alias_value=$host_alias
748ac_cv_env_host_alias_set=${host_alias+set}
749ac_cv_env_host_alias_value=$host_alias
750ac_env_target_alias_set=${target_alias+set}
751ac_env_target_alias_value=$target_alias
752ac_cv_env_target_alias_set=${target_alias+set}
753ac_cv_env_target_alias_value=$target_alias
754ac_env_CC_set=${CC+set}
755ac_env_CC_value=$CC
756ac_cv_env_CC_set=${CC+set}
757ac_cv_env_CC_value=$CC
758ac_env_CFLAGS_set=${CFLAGS+set}
759ac_env_CFLAGS_value=$CFLAGS
760ac_cv_env_CFLAGS_set=${CFLAGS+set}
761ac_cv_env_CFLAGS_value=$CFLAGS
762ac_env_LDFLAGS_set=${LDFLAGS+set}
763ac_env_LDFLAGS_value=$LDFLAGS
764ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
765ac_cv_env_LDFLAGS_value=$LDFLAGS
766ac_env_CPPFLAGS_set=${CPPFLAGS+set}
767ac_env_CPPFLAGS_value=$CPPFLAGS
768ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
769ac_cv_env_CPPFLAGS_value=$CPPFLAGS
770ac_env_CPP_set=${CPP+set}
771ac_env_CPP_value=$CPP
772ac_cv_env_CPP_set=${CPP+set}
773ac_cv_env_CPP_value=$CPP
774
775#
776# Report the --help message.
777#
778if test "$ac_init_help" = "long"; then
779 # Omit some internal or obsolete options to make the list less imposing.
780 # This message is too long to be a string in the A/UX 3.1 sh.
781 cat <<_ACEOF
782\`configure' configures this package to adapt to many kinds of systems.
783
784Usage: $0 [OPTION]... [VAR=VALUE]...
785
786To assign environment variables (e.g., CC, CFLAGS...), specify them as
787VAR=VALUE. See below for descriptions of some of the useful variables.
788
789Defaults for the options are specified in brackets.
790
791Configuration:
792 -h, --help display this help and exit
793 --help=short display options specific to this package
794 --help=recursive display the short help of all the included packages
795 -V, --version display version information and exit
796 -q, --quiet, --silent do not print \`checking...' messages
797 --cache-file=FILE cache test results in FILE [disabled]
798 -C, --config-cache alias for \`--cache-file=config.cache'
799 -n, --no-create do not create output files
800 --srcdir=DIR find the sources in DIR [configure dir or \`..']
801
802_ACEOF
803
804 cat <<_ACEOF
805Installation directories:
806 --prefix=PREFIX install architecture-independent files in PREFIX
807 [$ac_default_prefix]
808 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
809 [PREFIX]
810
811By default, \`make install' will install all the files in
812\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
813an installation prefix other than \`$ac_default_prefix' using \`--prefix',
814for instance \`--prefix=\$HOME'.
815
816For better control, use the options below.
817
818Fine tuning of the installation directories:
819 --bindir=DIR user executables [EPREFIX/bin]
820 --sbindir=DIR system admin executables [EPREFIX/sbin]
821 --libexecdir=DIR program executables [EPREFIX/libexec]
822 --datadir=DIR read-only architecture-independent data [PREFIX/share]
823 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
824 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
825 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
826 --libdir=DIR object code libraries [EPREFIX/lib]
827 --includedir=DIR C header files [PREFIX/include]
828 --oldincludedir=DIR C header files for non-gcc [/usr/include]
829 --infodir=DIR info documentation [PREFIX/info]
830 --mandir=DIR man documentation [PREFIX/man]
831_ACEOF
832
833 cat <<\_ACEOF
834_ACEOF
835fi
836
837if test -n "$ac_init_help"; then
838
839 cat <<\_ACEOF
840
841Some influential environment variables:
842 CC C compiler command
843 CFLAGS C compiler flags
844 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
845 nonstandard directory <lib dir>
846 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
847 headers in a nonstandard directory <include dir>
848 CPP C preprocessor
849
850Use these variables to override the choices made by `configure' or to help
851it to find libraries and programs with nonstandard names/locations.
852
853_ACEOF
854fi
855
856if test "$ac_init_help" = "recursive"; then
857 # If there are subdirs, report their specific --help.
858 ac_popdir=`pwd`
859 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
860 test -d $ac_dir || continue
861 ac_builddir=.
862
863if test "$ac_dir" != .; then
864 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
865 # A "../" for each directory in $ac_dir_suffix.
866 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
867else
868 ac_dir_suffix= ac_top_builddir=
869fi
870
871case $srcdir in
872 .) # No --srcdir option. We are building in place.
873 ac_srcdir=.
874 if test -z "$ac_top_builddir"; then
875 ac_top_srcdir=.
876 else
877 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
878 fi ;;
879 [\\/]* | ?:[\\/]* ) # Absolute path.
880 ac_srcdir=$srcdir$ac_dir_suffix;
881 ac_top_srcdir=$srcdir ;;
882 *) # Relative path.
883 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
884 ac_top_srcdir=$ac_top_builddir$srcdir ;;
885esac
886
887# Do not use `cd foo && pwd` to compute absolute paths, because
888# the directories may not exist.
889case `pwd` in
890.) ac_abs_builddir="$ac_dir";;
891*)
892 case "$ac_dir" in
893 .) ac_abs_builddir=`pwd`;;
894 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
895 *) ac_abs_builddir=`pwd`/"$ac_dir";;
896 esac;;
897esac
898case $ac_abs_builddir in
899.) ac_abs_top_builddir=${ac_top_builddir}.;;
900*)
901 case ${ac_top_builddir}. in
902 .) ac_abs_top_builddir=$ac_abs_builddir;;
903 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
904 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
905 esac;;
906esac
907case $ac_abs_builddir in
908.) ac_abs_srcdir=$ac_srcdir;;
909*)
910 case $ac_srcdir in
911 .) ac_abs_srcdir=$ac_abs_builddir;;
912 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
913 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
914 esac;;
915esac
916case $ac_abs_builddir in
917.) ac_abs_top_srcdir=$ac_top_srcdir;;
918*)
919 case $ac_top_srcdir in
920 .) ac_abs_top_srcdir=$ac_abs_builddir;;
921 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
922 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
923 esac;;
924esac
925
926 cd $ac_dir
927 # Check for guested configure; otherwise get Cygnus style configure.
928 if test -f $ac_srcdir/configure.gnu; then
929 echo
930 $SHELL $ac_srcdir/configure.gnu --help=recursive
931 elif test -f $ac_srcdir/configure; then
932 echo
933 $SHELL $ac_srcdir/configure --help=recursive
934 elif test -f $ac_srcdir/configure.ac ||
935 test -f $ac_srcdir/configure.in; then
936 echo
937 $ac_configure --help
938 else
939 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
940 fi
941 cd $ac_popdir
942 done
943fi
944
945test -n "$ac_init_help" && exit 0
946if $ac_init_version; then
947 cat <<\_ACEOF
948
949Copyright (C) 2003 Free Software Foundation, Inc.
950This configure script is free software; the Free Software Foundation
951gives unlimited permission to copy, distribute and modify it.
952_ACEOF
953 exit 0
954fi
955exec 5>config.log
956cat >&5 <<_ACEOF
957This file contains any messages produced by compilers while
958running configure, to aid debugging if configure makes a mistake.
959
960It was created by $as_me, which was
961generated by GNU Autoconf 2.59. Invocation command line was
962
963 $ $0 $@
964
965_ACEOF
966{
967cat <<_ASUNAME
968## --------- ##
969## Platform. ##
970## --------- ##
971
972hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
973uname -m = `(uname -m) 2>/dev/null || echo unknown`
974uname -r = `(uname -r) 2>/dev/null || echo unknown`
975uname -s = `(uname -s) 2>/dev/null || echo unknown`
976uname -v = `(uname -v) 2>/dev/null || echo unknown`
977
978/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
979/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
980
981/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
982/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
983/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
984hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
985/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
986/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
987/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
988
989_ASUNAME
990
991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
992for as_dir in $PATH
993do
994 IFS=$as_save_IFS
995 test -z "$as_dir" && as_dir=.
996 echo "PATH: $as_dir"
997done
998
999} >&5
1000
1001cat >&5 <<_ACEOF
1002
1003
1004## ----------- ##
1005## Core tests. ##
1006## ----------- ##
1007
1008_ACEOF
1009
1010
1011# Keep a trace of the command line.
1012# Strip out --no-create and --no-recursion so they do not pile up.
1013# Strip out --silent because we don't want to record it for future runs.
1014# Also quote any args containing shell meta-characters.
1015# Make two passes to allow for proper duplicate-argument suppression.
1016ac_configure_args=
1017ac_configure_args0=
1018ac_configure_args1=
1019ac_sep=
1020ac_must_keep_next=false
1021for ac_pass in 1 2
1022do
1023 for ac_arg
1024 do
1025 case $ac_arg in
1026 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1027 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1028 | -silent | --silent | --silen | --sile | --sil)
1029 continue ;;
1030 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1031 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1032 esac
1033 case $ac_pass in
1034 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1035 2)
1036 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1037 if test $ac_must_keep_next = true; then
1038 ac_must_keep_next=false # Got value, back to normal.
1039 else
1040 case $ac_arg in
1041 *=* | --config-cache | -C | -disable-* | --disable-* \
1042 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1043 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1044 | -with-* | --with-* | -without-* | --without-* | --x)
1045 case "$ac_configure_args0 " in
1046 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1047 esac
1048 ;;
1049 -* ) ac_must_keep_next=true ;;
1050 esac
1051 fi
1052 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1053 # Get rid of the leading space.
1054 ac_sep=" "
1055 ;;
1056 esac
1057 done
1058done
1059$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1060$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1061
1062# When interrupted or exit'd, cleanup temporary files, and complete
1063# config.log. We remove comments because anyway the quotes in there
1064# would cause problems or look ugly.
1065# WARNING: Be sure not to use single quotes in there, as some shells,
1066# such as our DU 5.0 friend, will then `close' the trap.
1067trap 'exit_status=$?
1068 # Save into config.log some information that might help in debugging.
1069 {
1070 echo
1071
1072 cat <<\_ASBOX
1073## ---------------- ##
1074## Cache variables. ##
1075## ---------------- ##
1076_ASBOX
1077 echo
1078 # The following way of writing the cache mishandles newlines in values,
1079{
1080 (set) 2>&1 |
1081 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1082 *ac_space=\ *)
1083 sed -n \
1084 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1085 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1086 ;;
1087 *)
1088 sed -n \
1089 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1090 ;;
1091 esac;
1092}
1093 echo
1094
1095 cat <<\_ASBOX
1096## ----------------- ##
1097## Output variables. ##
1098## ----------------- ##
1099_ASBOX
1100 echo
1101 for ac_var in $ac_subst_vars
1102 do
1103 eval ac_val=$`echo $ac_var`
1104 echo "$ac_var='"'"'$ac_val'"'"'"
1105 done | sort
1106 echo
1107
1108 if test -n "$ac_subst_files"; then
1109 cat <<\_ASBOX
1110## ------------- ##
1111## Output files. ##
1112## ------------- ##
1113_ASBOX
1114 echo
1115 for ac_var in $ac_subst_files
1116 do
1117 eval ac_val=$`echo $ac_var`
1118 echo "$ac_var='"'"'$ac_val'"'"'"
1119 done | sort
1120 echo
1121 fi
1122
1123 if test -s confdefs.h; then
1124 cat <<\_ASBOX
1125## ----------- ##
1126## confdefs.h. ##
1127## ----------- ##
1128_ASBOX
1129 echo
1130 sed "/^$/d" confdefs.h | sort
1131 echo
1132 fi
1133 test "$ac_signal" != 0 &&
1134 echo "$as_me: caught signal $ac_signal"
1135 echo "$as_me: exit $exit_status"
1136 } >&5
1137 rm -f core *.core &&
1138 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1139 exit $exit_status
1140 ' 0
1141for ac_signal in 1 2 13 15; do
1142 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1143done
1144ac_signal=0
1145
1146# confdefs.h avoids OS command line length limits that DEFS can exceed.
1147rm -rf conftest* confdefs.h
1148# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1149echo >confdefs.h
1150
1151# Predefined preprocessor variables.
1152
1153cat >>confdefs.h <<_ACEOF
1154#define PACKAGE_NAME "$PACKAGE_NAME"
1155_ACEOF
1156
1157
1158cat >>confdefs.h <<_ACEOF
1159#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1160_ACEOF
1161
1162
1163cat >>confdefs.h <<_ACEOF
1164#define PACKAGE_VERSION "$PACKAGE_VERSION"
1165_ACEOF
1166
1167
1168cat >>confdefs.h <<_ACEOF
1169#define PACKAGE_STRING "$PACKAGE_STRING"
1170_ACEOF
1171
1172
1173cat >>confdefs.h <<_ACEOF
1174#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1175_ACEOF
1176
1177
1178# Let the site file select an alternate cache file if it wants to.
1179# Prefer explicitly selected file to automatically selected ones.
1180if test -z "$CONFIG_SITE"; then
1181 if test "x$prefix" != xNONE; then
1182 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1183 else
1184 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1185 fi
1186fi
1187for ac_site_file in $CONFIG_SITE; do
1188 if test -r "$ac_site_file"; then
1189 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1190echo "$as_me: loading site script $ac_site_file" >&6;}
1191 sed 's/^/| /' "$ac_site_file" >&5
1192 . "$ac_site_file"
1193 fi
1194done
1195
1196if test -r "$cache_file"; then
1197 # Some versions of bash will fail to source /dev/null (special
1198 # files actually), so we avoid doing that.
1199 if test -f "$cache_file"; then
1200 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1201echo "$as_me: loading cache $cache_file" >&6;}
1202 case $cache_file in
1203 [\\/]* | ?:[\\/]* ) . $cache_file;;
1204 *) . ./$cache_file;;
1205 esac
1206 fi
1207else
1208 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1209echo "$as_me: creating cache $cache_file" >&6;}
1210 >$cache_file
1211fi
1212
1213# Check that the precious variables saved in the cache have kept the same
1214# value.
1215ac_cache_corrupted=false
1216for ac_var in `(set) 2>&1 |
1217 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1218 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1219 eval ac_new_set=\$ac_env_${ac_var}_set
1220 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1221 eval ac_new_val="\$ac_env_${ac_var}_value"
1222 case $ac_old_set,$ac_new_set in
1223 set,)
1224 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1225echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1226 ac_cache_corrupted=: ;;
1227 ,set)
1228 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1229echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1230 ac_cache_corrupted=: ;;
1231 ,);;
1232 *)
1233 if test "x$ac_old_val" != "x$ac_new_val"; then
1234 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1235echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1236 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1237echo "$as_me: former value: $ac_old_val" >&2;}
1238 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1239echo "$as_me: current value: $ac_new_val" >&2;}
1240 ac_cache_corrupted=:
1241 fi;;
1242 esac
1243 # Pass precious variables to config.status.
1244 if test "$ac_new_set" = set; then
1245 case $ac_new_val in
1246 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1247 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1248 *) ac_arg=$ac_var=$ac_new_val ;;
1249 esac
1250 case " $ac_configure_args " in
1251 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1252 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1253 esac
1254 fi
1255done
1256if $ac_cache_corrupted; then
1257 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1258echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1259 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1260echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1261 { (exit 1); exit 1; }; }
1262fi
1263
1264ac_ext=c
1265ac_cpp='$CPP $CPPFLAGS'
1266ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1267ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1268ac_compiler_gnu=$ac_cv_c_compiler_gnu
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289# TODO: allow the user to specify whether they want a debugging
1290# library or not?
1291
1292# check for compilers and other tools
1293ac_ext=c
1294ac_cpp='$CPP $CPPFLAGS'
1295ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1296ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1297ac_compiler_gnu=$ac_cv_c_compiler_gnu
1298if test -n "$ac_tool_prefix"; then
1299 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1300set dummy ${ac_tool_prefix}gcc; ac_word=$2
1301echo "$as_me:$LINENO: checking for $ac_word" >&5
1302echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1303if test "${ac_cv_prog_CC+set}" = set; then
1304 echo $ECHO_N "(cached) $ECHO_C" >&6
1305else
1306 if test -n "$CC"; then
1307 ac_cv_prog_CC="$CC" # Let the user override the test.
1308else
1309as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1310for as_dir in $PATH
1311do
1312 IFS=$as_save_IFS
1313 test -z "$as_dir" && as_dir=.
1314 for ac_exec_ext in '' $ac_executable_extensions; do
1315 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1316 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1317 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1318 break 2
1319 fi
1320done
1321done
1322
1323fi
1324fi
1325CC=$ac_cv_prog_CC
1326if test -n "$CC"; then
1327 echo "$as_me:$LINENO: result: $CC" >&5
1328echo "${ECHO_T}$CC" >&6
1329else
1330 echo "$as_me:$LINENO: result: no" >&5
1331echo "${ECHO_T}no" >&6
1332fi
1333
1334fi
1335if test -z "$ac_cv_prog_CC"; then
1336 ac_ct_CC=$CC
1337 # Extract the first word of "gcc", so it can be a program name with args.
1338set dummy gcc; ac_word=$2
1339echo "$as_me:$LINENO: checking for $ac_word" >&5
1340echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1341if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1342 echo $ECHO_N "(cached) $ECHO_C" >&6
1343else
1344 if test -n "$ac_ct_CC"; then
1345 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1346else
1347as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1348for as_dir in $PATH
1349do
1350 IFS=$as_save_IFS
1351 test -z "$as_dir" && as_dir=.
1352 for ac_exec_ext in '' $ac_executable_extensions; do
1353 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1354 ac_cv_prog_ac_ct_CC="gcc"
1355 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1356 break 2
1357 fi
1358done
1359done
1360
1361fi
1362fi
1363ac_ct_CC=$ac_cv_prog_ac_ct_CC
1364if test -n "$ac_ct_CC"; then
1365 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1366echo "${ECHO_T}$ac_ct_CC" >&6
1367else
1368 echo "$as_me:$LINENO: result: no" >&5
1369echo "${ECHO_T}no" >&6
1370fi
1371
1372 CC=$ac_ct_CC
1373else
1374 CC="$ac_cv_prog_CC"
1375fi
1376
1377if test -z "$CC"; then
1378 if test -n "$ac_tool_prefix"; then
1379 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1380set dummy ${ac_tool_prefix}cc; ac_word=$2
1381echo "$as_me:$LINENO: checking for $ac_word" >&5
1382echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1383if test "${ac_cv_prog_CC+set}" = set; then
1384 echo $ECHO_N "(cached) $ECHO_C" >&6
1385else
1386 if test -n "$CC"; then
1387 ac_cv_prog_CC="$CC" # Let the user override the test.
1388else
1389as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1390for as_dir in $PATH
1391do
1392 IFS=$as_save_IFS
1393 test -z "$as_dir" && as_dir=.
1394 for ac_exec_ext in '' $ac_executable_extensions; do
1395 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1396 ac_cv_prog_CC="${ac_tool_prefix}cc"
1397 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1398 break 2
1399 fi
1400done
1401done
1402
1403fi
1404fi
1405CC=$ac_cv_prog_CC
1406if test -n "$CC"; then
1407 echo "$as_me:$LINENO: result: $CC" >&5
1408echo "${ECHO_T}$CC" >&6
1409else
1410 echo "$as_me:$LINENO: result: no" >&5
1411echo "${ECHO_T}no" >&6
1412fi
1413
1414fi
1415if test -z "$ac_cv_prog_CC"; then
1416 ac_ct_CC=$CC
1417 # Extract the first word of "cc", so it can be a program name with args.
1418set dummy cc; ac_word=$2
1419echo "$as_me:$LINENO: checking for $ac_word" >&5
1420echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1421if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1422 echo $ECHO_N "(cached) $ECHO_C" >&6
1423else
1424 if test -n "$ac_ct_CC"; then
1425 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1426else
1427as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1428for as_dir in $PATH
1429do
1430 IFS=$as_save_IFS
1431 test -z "$as_dir" && as_dir=.
1432 for ac_exec_ext in '' $ac_executable_extensions; do
1433 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1434 ac_cv_prog_ac_ct_CC="cc"
1435 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1436 break 2
1437 fi
1438done
1439done
1440
1441fi
1442fi
1443ac_ct_CC=$ac_cv_prog_ac_ct_CC
1444if test -n "$ac_ct_CC"; then
1445 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1446echo "${ECHO_T}$ac_ct_CC" >&6
1447else
1448 echo "$as_me:$LINENO: result: no" >&5
1449echo "${ECHO_T}no" >&6
1450fi
1451
1452 CC=$ac_ct_CC
1453else
1454 CC="$ac_cv_prog_CC"
1455fi
1456
1457fi
1458if test -z "$CC"; then
1459 # Extract the first word of "cc", so it can be a program name with args.
1460set dummy cc; ac_word=$2
1461echo "$as_me:$LINENO: checking for $ac_word" >&5
1462echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1463if test "${ac_cv_prog_CC+set}" = set; then
1464 echo $ECHO_N "(cached) $ECHO_C" >&6
1465else
1466 if test -n "$CC"; then
1467 ac_cv_prog_CC="$CC" # Let the user override the test.
1468else
1469 ac_prog_rejected=no
1470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1471for as_dir in $PATH
1472do
1473 IFS=$as_save_IFS
1474 test -z "$as_dir" && as_dir=.
1475 for ac_exec_ext in '' $ac_executable_extensions; do
1476 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1477 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1478 ac_prog_rejected=yes
1479 continue
1480 fi
1481 ac_cv_prog_CC="cc"
1482 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1483 break 2
1484 fi
1485done
1486done
1487
1488if test $ac_prog_rejected = yes; then
1489 # We found a bogon in the path, so make sure we never use it.
1490 set dummy $ac_cv_prog_CC
1491 shift
1492 if test $# != 0; then
1493 # We chose a different compiler from the bogus one.
1494 # However, it has the same basename, so the bogon will be chosen
1495 # first if we set CC to just the basename; use the full file name.
1496 shift
1497 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1498 fi
1499fi
1500fi
1501fi
1502CC=$ac_cv_prog_CC
1503if test -n "$CC"; then
1504 echo "$as_me:$LINENO: result: $CC" >&5
1505echo "${ECHO_T}$CC" >&6
1506else
1507 echo "$as_me:$LINENO: result: no" >&5
1508echo "${ECHO_T}no" >&6
1509fi
1510
1511fi
1512if test -z "$CC"; then
1513 if test -n "$ac_tool_prefix"; then
1514 for ac_prog in cl
1515 do
1516 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1517set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1518echo "$as_me:$LINENO: checking for $ac_word" >&5
1519echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1520if test "${ac_cv_prog_CC+set}" = set; then
1521 echo $ECHO_N "(cached) $ECHO_C" >&6
1522else
1523 if test -n "$CC"; then
1524 ac_cv_prog_CC="$CC" # Let the user override the test.
1525else
1526as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1527for as_dir in $PATH
1528do
1529 IFS=$as_save_IFS
1530 test -z "$as_dir" && as_dir=.
1531 for ac_exec_ext in '' $ac_executable_extensions; do
1532 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1533 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1534 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1535 break 2
1536 fi
1537done
1538done
1539
1540fi
1541fi
1542CC=$ac_cv_prog_CC
1543if test -n "$CC"; then
1544 echo "$as_me:$LINENO: result: $CC" >&5
1545echo "${ECHO_T}$CC" >&6
1546else
1547 echo "$as_me:$LINENO: result: no" >&5
1548echo "${ECHO_T}no" >&6
1549fi
1550
1551 test -n "$CC" && break
1552 done
1553fi
1554if test -z "$CC"; then
1555 ac_ct_CC=$CC
1556 for ac_prog in cl
1557do
1558 # Extract the first word of "$ac_prog", so it can be a program name with args.
1559set dummy $ac_prog; ac_word=$2
1560echo "$as_me:$LINENO: checking for $ac_word" >&5
1561echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1562if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1563 echo $ECHO_N "(cached) $ECHO_C" >&6
1564else
1565 if test -n "$ac_ct_CC"; then
1566 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1567else
1568as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1569for as_dir in $PATH
1570do
1571 IFS=$as_save_IFS
1572 test -z "$as_dir" && as_dir=.
1573 for ac_exec_ext in '' $ac_executable_extensions; do
1574 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1575 ac_cv_prog_ac_ct_CC="$ac_prog"
1576 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1577 break 2
1578 fi
1579done
1580done
1581
1582fi
1583fi
1584ac_ct_CC=$ac_cv_prog_ac_ct_CC
1585if test -n "$ac_ct_CC"; then
1586 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1587echo "${ECHO_T}$ac_ct_CC" >&6
1588else
1589 echo "$as_me:$LINENO: result: no" >&5
1590echo "${ECHO_T}no" >&6
1591fi
1592
1593 test -n "$ac_ct_CC" && break
1594done
1595
1596 CC=$ac_ct_CC
1597fi
1598
1599fi
1600
1601
1602test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1603See \`config.log' for more details." >&5
1604echo "$as_me: error: no acceptable C compiler found in \$PATH
1605See \`config.log' for more details." >&2;}
1606 { (exit 1); exit 1; }; }
1607
1608# Provide some information about the compiler.
1609echo "$as_me:$LINENO:" \
1610 "checking for C compiler version" >&5
1611ac_compiler=`set X $ac_compile; echo $2`
1612{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1613 (eval $ac_compiler --version </dev/null >&5) 2>&5
1614 ac_status=$?
1615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1616 (exit $ac_status); }
1617{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1618 (eval $ac_compiler -v </dev/null >&5) 2>&5
1619 ac_status=$?
1620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1621 (exit $ac_status); }
1622{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1623 (eval $ac_compiler -V </dev/null >&5) 2>&5
1624 ac_status=$?
1625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1626 (exit $ac_status); }
1627
1628cat >conftest.$ac_ext <<_ACEOF
1629/* confdefs.h. */
1630_ACEOF
1631cat confdefs.h >>conftest.$ac_ext
1632cat >>conftest.$ac_ext <<_ACEOF
1633/* end confdefs.h. */
1634
1635int
1636main ()
1637{
1638
1639 ;
1640 return 0;
1641}
1642_ACEOF
1643ac_clean_files_save=$ac_clean_files
1644ac_clean_files="$ac_clean_files a.out a.exe b.out"
1645# Try to create an executable without -o first, disregard a.out.
1646# It will help us diagnose broken compilers, and finding out an intuition
1647# of exeext.
1648echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1649echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1650ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1651if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1652 (eval $ac_link_default) 2>&5
1653 ac_status=$?
1654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1655 (exit $ac_status); }; then
1656 # Find the output, starting from the most likely. This scheme is
1657# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1658# resort.
1659
1660# Be careful to initialize this variable, since it used to be cached.
1661# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1662ac_cv_exeext=
1663# b.out is created by i960 compilers.
1664for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1665do
1666 test -f "$ac_file" || continue
1667 case $ac_file in
1668 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1669 ;;
1670 conftest.$ac_ext )
1671 # This is the source file.
1672 ;;
1673 [ab].out )
1674 # We found the default executable, but exeext='' is most
1675 # certainly right.
1676 break;;
1677 *.* )
1678 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1679 # FIXME: I believe we export ac_cv_exeext for Libtool,
1680 # but it would be cool to find out if it's true. Does anybody
1681 # maintain Libtool? --akim.
1682 export ac_cv_exeext
1683 break;;
1684 * )
1685 break;;
1686 esac
1687done
1688else
1689 echo "$as_me: failed program was:" >&5
1690sed 's/^/| /' conftest.$ac_ext >&5
1691
1692{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1693See \`config.log' for more details." >&5
1694echo "$as_me: error: C compiler cannot create executables
1695See \`config.log' for more details." >&2;}
1696 { (exit 77); exit 77; }; }
1697fi
1698
1699ac_exeext=$ac_cv_exeext
1700echo "$as_me:$LINENO: result: $ac_file" >&5
1701echo "${ECHO_T}$ac_file" >&6
1702
1703# Check the compiler produces executables we can run. If not, either
1704# the compiler is broken, or we cross compile.
1705echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1706echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1707# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1708# If not cross compiling, check that we can run a simple program.
1709if test "$cross_compiling" != yes; then
1710 if { ac_try='./$ac_file'
1711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1712 (eval $ac_try) 2>&5
1713 ac_status=$?
1714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1715 (exit $ac_status); }; }; then
1716 cross_compiling=no
1717 else
1718 if test "$cross_compiling" = maybe; then
1719 cross_compiling=yes
1720 else
1721 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1722If you meant to cross compile, use \`--host'.
1723See \`config.log' for more details." >&5
1724echo "$as_me: error: cannot run C compiled programs.
1725If you meant to cross compile, use \`--host'.
1726See \`config.log' for more details." >&2;}
1727 { (exit 1); exit 1; }; }
1728 fi
1729 fi
1730fi
1731echo "$as_me:$LINENO: result: yes" >&5
1732echo "${ECHO_T}yes" >&6
1733
1734rm -f a.out a.exe conftest$ac_cv_exeext b.out
1735ac_clean_files=$ac_clean_files_save
1736# Check the compiler produces executables we can run. If not, either
1737# the compiler is broken, or we cross compile.
1738echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1739echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1740echo "$as_me:$LINENO: result: $cross_compiling" >&5
1741echo "${ECHO_T}$cross_compiling" >&6
1742
1743echo "$as_me:$LINENO: checking for suffix of executables" >&5
1744echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1745if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1746 (eval $ac_link) 2>&5
1747 ac_status=$?
1748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1749 (exit $ac_status); }; then
1750 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1751# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1752# work properly (i.e., refer to `conftest.exe'), while it won't with
1753# `rm'.
1754for ac_file in conftest.exe conftest conftest.*; do
1755 test -f "$ac_file" || continue
1756 case $ac_file in
1757 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1758 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1759 export ac_cv_exeext
1760 break;;
1761 * ) break;;
1762 esac
1763done
1764else
1765 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1766See \`config.log' for more details." >&5
1767echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1768See \`config.log' for more details." >&2;}
1769 { (exit 1); exit 1; }; }
1770fi
1771
1772rm -f conftest$ac_cv_exeext
1773echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1774echo "${ECHO_T}$ac_cv_exeext" >&6
1775
1776rm -f conftest.$ac_ext
1777EXEEXT=$ac_cv_exeext
1778ac_exeext=$EXEEXT
1779echo "$as_me:$LINENO: checking for suffix of object files" >&5
1780echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1781if test "${ac_cv_objext+set}" = set; then
1782 echo $ECHO_N "(cached) $ECHO_C" >&6
1783else
1784 cat >conftest.$ac_ext <<_ACEOF
1785/* confdefs.h. */
1786_ACEOF
1787cat confdefs.h >>conftest.$ac_ext
1788cat >>conftest.$ac_ext <<_ACEOF
1789/* end confdefs.h. */
1790
1791int
1792main ()
1793{
1794
1795 ;
1796 return 0;
1797}
1798_ACEOF
1799rm -f conftest.o conftest.obj
1800if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1801 (eval $ac_compile) 2>&5
1802 ac_status=$?
1803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1804 (exit $ac_status); }; then
1805 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1806 case $ac_file in
1807 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1808 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1809 break;;
1810 esac
1811done
1812else
1813 echo "$as_me: failed program was:" >&5
1814sed 's/^/| /' conftest.$ac_ext >&5
1815
1816{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1817See \`config.log' for more details." >&5
1818echo "$as_me: error: cannot compute suffix of object files: cannot compile
1819See \`config.log' for more details." >&2;}
1820 { (exit 1); exit 1; }; }
1821fi
1822
1823rm -f conftest.$ac_cv_objext conftest.$ac_ext
1824fi
1825echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1826echo "${ECHO_T}$ac_cv_objext" >&6
1827OBJEXT=$ac_cv_objext
1828ac_objext=$OBJEXT
1829echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1830echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1831if test "${ac_cv_c_compiler_gnu+set}" = set; then
1832 echo $ECHO_N "(cached) $ECHO_C" >&6
1833else
1834 cat >conftest.$ac_ext <<_ACEOF
1835/* confdefs.h. */
1836_ACEOF
1837cat confdefs.h >>conftest.$ac_ext
1838cat >>conftest.$ac_ext <<_ACEOF
1839/* end confdefs.h. */
1840
1841int
1842main ()
1843{
1844#ifndef __GNUC__
1845 choke me
1846#endif
1847
1848 ;
1849 return 0;
1850}
1851_ACEOF
1852rm -f conftest.$ac_objext
1853if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1854 (eval $ac_compile) 2>conftest.er1
1855 ac_status=$?
1856 grep -v '^ *+' conftest.er1 >conftest.err
1857 rm -f conftest.er1
1858 cat conftest.err >&5
1859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1860 (exit $ac_status); } &&
1861 { ac_try='test -z "$ac_c_werror_flag"
1862 || test ! -s conftest.err'
1863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1864 (eval $ac_try) 2>&5
1865 ac_status=$?
1866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1867 (exit $ac_status); }; } &&
1868 { ac_try='test -s conftest.$ac_objext'
1869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1870 (eval $ac_try) 2>&5
1871 ac_status=$?
1872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1873 (exit $ac_status); }; }; then
1874 ac_compiler_gnu=yes
1875else
1876 echo "$as_me: failed program was:" >&5
1877sed 's/^/| /' conftest.$ac_ext >&5
1878
1879ac_compiler_gnu=no
1880fi
1881rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1882ac_cv_c_compiler_gnu=$ac_compiler_gnu
1883
1884fi
1885echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1886echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1887GCC=`test $ac_compiler_gnu = yes && echo yes`
1888ac_test_CFLAGS=${CFLAGS+set}
1889ac_save_CFLAGS=$CFLAGS
1890CFLAGS="-g"
1891echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1892echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1893if test "${ac_cv_prog_cc_g+set}" = set; then
1894 echo $ECHO_N "(cached) $ECHO_C" >&6
1895else
1896 cat >conftest.$ac_ext <<_ACEOF
1897/* confdefs.h. */
1898_ACEOF
1899cat confdefs.h >>conftest.$ac_ext
1900cat >>conftest.$ac_ext <<_ACEOF
1901/* end confdefs.h. */
1902
1903int
1904main ()
1905{
1906
1907 ;
1908 return 0;
1909}
1910_ACEOF
1911rm -f conftest.$ac_objext
1912if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1913 (eval $ac_compile) 2>conftest.er1
1914 ac_status=$?
1915 grep -v '^ *+' conftest.er1 >conftest.err
1916 rm -f conftest.er1
1917 cat conftest.err >&5
1918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1919 (exit $ac_status); } &&
1920 { ac_try='test -z "$ac_c_werror_flag"
1921 || test ! -s conftest.err'
1922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1923 (eval $ac_try) 2>&5
1924 ac_status=$?
1925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1926 (exit $ac_status); }; } &&
1927 { ac_try='test -s conftest.$ac_objext'
1928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1929 (eval $ac_try) 2>&5
1930 ac_status=$?
1931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1932 (exit $ac_status); }; }; then
1933 ac_cv_prog_cc_g=yes
1934else
1935 echo "$as_me: failed program was:" >&5
1936sed 's/^/| /' conftest.$ac_ext >&5
1937
1938ac_cv_prog_cc_g=no
1939fi
1940rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1941fi
1942echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1943echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1944if test "$ac_test_CFLAGS" = set; then
1945 CFLAGS=$ac_save_CFLAGS
1946elif test $ac_cv_prog_cc_g = yes; then
1947 if test "$GCC" = yes; then
1948 CFLAGS="-g -O2"
1949 else
1950 CFLAGS="-g"
1951 fi
1952else
1953 if test "$GCC" = yes; then
1954 CFLAGS="-O2"
1955 else
1956 CFLAGS=
1957 fi
1958fi
1959echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
1960echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1961if test "${ac_cv_prog_cc_stdc+set}" = set; then
1962 echo $ECHO_N "(cached) $ECHO_C" >&6
1963else
1964 ac_cv_prog_cc_stdc=no
1965ac_save_CC=$CC
1966cat >conftest.$ac_ext <<_ACEOF
1967/* confdefs.h. */
1968_ACEOF
1969cat confdefs.h >>conftest.$ac_ext
1970cat >>conftest.$ac_ext <<_ACEOF
1971/* end confdefs.h. */
1972#include <stdarg.h>
1973#include <stdio.h>
1974#include <sys/types.h>
1975#include <sys/stat.h>
1976/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1977struct buf { int x; };
1978FILE * (*rcsopen) (struct buf *, struct stat *, int);
1979static char *e (p, i)
1980 char **p;
1981 int i;
1982{
1983 return p[i];
1984}
1985static char *f (char * (*g) (char **, int), char **p, ...)
1986{
1987 char *s;
1988 va_list v;
1989 va_start (v,p);
1990 s = g (p, va_arg (v,int));
1991 va_end (v);
1992 return s;
1993}
1994
1995/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
1996 function prototypes and stuff, but not '\xHH' hex character constants.
1997 These don't provoke an error unfortunately, instead are silently treated
1998 as 'x'. The following induces an error, until -std1 is added to get
1999 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2000 array size at least. It's necessary to write '\x00'==0 to get something
2001 that's true only with -std1. */
2002int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2003
2004int test (int i, double x);
2005struct s1 {int (*f) (int a);};
2006struct s2 {int (*f) (double a);};
2007int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2008int argc;
2009char **argv;
2010int
2011main ()
2012{
2013return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2014 ;
2015 return 0;
2016}
2017_ACEOF
2018# Don't try gcc -ansi; that turns off useful extensions and
2019# breaks some systems' header files.
2020# AIX -qlanglvl=ansi
2021# Ultrix and OSF/1 -std1
2022# HP-UX 10.20 and later -Ae
2023# HP-UX older versions -Aa -D_HPUX_SOURCE
2024# SVR4 -Xc -D__EXTENSIONS__
2025for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2026do
2027 CC="$ac_save_CC $ac_arg"
2028 rm -f conftest.$ac_objext
2029if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2030 (eval $ac_compile) 2>conftest.er1
2031 ac_status=$?
2032 grep -v '^ *+' conftest.er1 >conftest.err
2033 rm -f conftest.er1
2034 cat conftest.err >&5
2035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2036 (exit $ac_status); } &&
2037 { ac_try='test -z "$ac_c_werror_flag"
2038 || test ! -s conftest.err'
2039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2040 (eval $ac_try) 2>&5
2041 ac_status=$?
2042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2043 (exit $ac_status); }; } &&
2044 { ac_try='test -s conftest.$ac_objext'
2045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2046 (eval $ac_try) 2>&5
2047 ac_status=$?
2048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2049 (exit $ac_status); }; }; then
2050 ac_cv_prog_cc_stdc=$ac_arg
2051break
2052else
2053 echo "$as_me: failed program was:" >&5
2054sed 's/^/| /' conftest.$ac_ext >&5
2055
2056fi
2057rm -f conftest.err conftest.$ac_objext
2058done
2059rm -f conftest.$ac_ext conftest.$ac_objext
2060CC=$ac_save_CC
2061
2062fi
2063
2064case "x$ac_cv_prog_cc_stdc" in
2065 x|xno)
2066 echo "$as_me:$LINENO: result: none needed" >&5
2067echo "${ECHO_T}none needed" >&6 ;;
2068 *)
2069 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2070echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2071 CC="$CC $ac_cv_prog_cc_stdc" ;;
2072esac
2073
2074# Some people use a C++ compiler to compile C. Since we use `exit',
2075# in C++ we need to declare it. In case someone uses the same compiler
2076# for both compiling C and C++ we need to have the C++ compiler decide
2077# the declaration of exit, since it's the most demanding environment.
2078cat >conftest.$ac_ext <<_ACEOF
2079#ifndef __cplusplus
2080 choke me
2081#endif
2082_ACEOF
2083rm -f conftest.$ac_objext
2084if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2085 (eval $ac_compile) 2>conftest.er1
2086 ac_status=$?
2087 grep -v '^ *+' conftest.er1 >conftest.err
2088 rm -f conftest.er1
2089 cat conftest.err >&5
2090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2091 (exit $ac_status); } &&
2092 { ac_try='test -z "$ac_c_werror_flag"
2093 || test ! -s conftest.err'
2094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2095 (eval $ac_try) 2>&5
2096 ac_status=$?
2097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2098 (exit $ac_status); }; } &&
2099 { ac_try='test -s conftest.$ac_objext'
2100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2101 (eval $ac_try) 2>&5
2102 ac_status=$?
2103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2104 (exit $ac_status); }; }; then
2105 for ac_declaration in \
2106 '' \
2107 'extern "C" void std::exit (int) throw (); using std::exit;' \
2108 'extern "C" void std::exit (int); using std::exit;' \
2109 'extern "C" void exit (int) throw ();' \
2110 'extern "C" void exit (int);' \
2111 'void exit (int);'
2112do
2113 cat >conftest.$ac_ext <<_ACEOF
2114/* confdefs.h. */
2115_ACEOF
2116cat confdefs.h >>conftest.$ac_ext
2117cat >>conftest.$ac_ext <<_ACEOF
2118/* end confdefs.h. */
2119$ac_declaration
2120#include <stdlib.h>
2121int
2122main ()
2123{
2124exit (42);
2125 ;
2126 return 0;
2127}
2128_ACEOF
2129rm -f conftest.$ac_objext
2130if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2131 (eval $ac_compile) 2>conftest.er1
2132 ac_status=$?
2133 grep -v '^ *+' conftest.er1 >conftest.err
2134 rm -f conftest.er1
2135 cat conftest.err >&5
2136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2137 (exit $ac_status); } &&
2138 { ac_try='test -z "$ac_c_werror_flag"
2139 || test ! -s conftest.err'
2140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2141 (eval $ac_try) 2>&5
2142 ac_status=$?
2143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2144 (exit $ac_status); }; } &&
2145 { ac_try='test -s conftest.$ac_objext'
2146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2147 (eval $ac_try) 2>&5
2148 ac_status=$?
2149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2150 (exit $ac_status); }; }; then
2151 :
2152else
2153 echo "$as_me: failed program was:" >&5
2154sed 's/^/| /' conftest.$ac_ext >&5
2155
2156continue
2157fi
2158rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2159 cat >conftest.$ac_ext <<_ACEOF
2160/* confdefs.h. */
2161_ACEOF
2162cat confdefs.h >>conftest.$ac_ext
2163cat >>conftest.$ac_ext <<_ACEOF
2164/* end confdefs.h. */
2165$ac_declaration
2166int
2167main ()
2168{
2169exit (42);
2170 ;
2171 return 0;
2172}
2173_ACEOF
2174rm -f conftest.$ac_objext
2175if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2176 (eval $ac_compile) 2>conftest.er1
2177 ac_status=$?
2178 grep -v '^ *+' conftest.er1 >conftest.err
2179 rm -f conftest.er1
2180 cat conftest.err >&5
2181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2182 (exit $ac_status); } &&
2183 { ac_try='test -z "$ac_c_werror_flag"
2184 || test ! -s conftest.err'
2185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2186 (eval $ac_try) 2>&5
2187 ac_status=$?
2188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2189 (exit $ac_status); }; } &&
2190 { ac_try='test -s conftest.$ac_objext'
2191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2192 (eval $ac_try) 2>&5
2193 ac_status=$?
2194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2195 (exit $ac_status); }; }; then
2196 break
2197else
2198 echo "$as_me: failed program was:" >&5
2199sed 's/^/| /' conftest.$ac_ext >&5
2200
2201fi
2202rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2203done
2204rm -f conftest*
2205if test -n "$ac_declaration"; then
2206 echo '#ifdef __cplusplus' >>confdefs.h
2207 echo $ac_declaration >>confdefs.h
2208 echo '#endif' >>confdefs.h
2209fi
2210
2211else
2212 echo "$as_me: failed program was:" >&5
2213sed 's/^/| /' conftest.$ac_ext >&5
2214
2215fi
2216rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2217ac_ext=c
2218ac_cpp='$CPP $CPPFLAGS'
2219ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2220ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2221ac_compiler_gnu=$ac_cv_c_compiler_gnu
2222
2223ac_aux_dir=
2224for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2225 if test -f $ac_dir/install-sh; then
2226 ac_aux_dir=$ac_dir
2227 ac_install_sh="$ac_aux_dir/install-sh -c"
2228 break
2229 elif test -f $ac_dir/install.sh; then
2230 ac_aux_dir=$ac_dir
2231 ac_install_sh="$ac_aux_dir/install.sh -c"
2232 break
2233 elif test -f $ac_dir/shtool; then
2234 ac_aux_dir=$ac_dir
2235 ac_install_sh="$ac_aux_dir/shtool install -c"
2236 break
2237 fi
2238done
2239if test -z "$ac_aux_dir"; then
2240 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2241echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2242 { (exit 1); exit 1; }; }
2243fi
2244ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2245ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2246ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2247
2248# Find a good install program. We prefer a C program (faster),
2249# so one script is as good as another. But avoid the broken or
2250# incompatible versions:
2251# SysV /etc/install, /usr/sbin/install
2252# SunOS /usr/etc/install
2253# IRIX /sbin/install
2254# AIX /bin/install
2255# AmigaOS /C/install, which installs bootblocks on floppy discs
2256# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2257# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2258# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2259# OS/2's system install, which has a completely different semantic
2260# ./install, which can be erroneously created by make from ./install.sh.
2261echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2262echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2263if test -z "$INSTALL"; then
2264if test "${ac_cv_path_install+set}" = set; then
2265 echo $ECHO_N "(cached) $ECHO_C" >&6
2266else
2267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2268for as_dir in $PATH
2269do
2270 IFS=$as_save_IFS
2271 test -z "$as_dir" && as_dir=.
2272 # Account for people who put trailing slashes in PATH elements.
2273case $as_dir/ in
2274 ./ | .// | /cC/* | \
2275 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2276 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2277 /usr/ucb/* ) ;;
2278 *)
2279 # OSF1 and SCO ODT 3.0 have their own names for install.
2280 # Don't use installbsd from OSF since it installs stuff as root
2281 # by default.
2282 for ac_prog in ginstall scoinst install; do
2283 for ac_exec_ext in '' $ac_executable_extensions; do
2284 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2285 if test $ac_prog = install &&
2286 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2287 # AIX install. It has an incompatible calling convention.
2288 :
2289 elif test $ac_prog = install &&
2290 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2291 # program-specific install script used by HP pwplus--don't use.
2292 :
2293 else
2294 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2295 break 3
2296 fi
2297 fi
2298 done
2299 done
2300 ;;
2301esac
2302done
2303
2304
2305fi
2306 if test "${ac_cv_path_install+set}" = set; then
2307 INSTALL=$ac_cv_path_install
2308 else
2309 # As a last resort, use the slow shell script. We don't cache a
2310 # path for INSTALL within a source directory, because that will
2311 # break other packages using the cache if that directory is
2312 # removed, or if the path is relative.
2313 INSTALL=$ac_install_sh
2314 fi
2315fi
2316echo "$as_me:$LINENO: result: $INSTALL" >&5
2317echo "${ECHO_T}$INSTALL" >&6
2318
2319# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2320# It thinks the first close brace ends the variable substitution.
2321test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2322
2323test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2324
2325test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2326
2327echo "$as_me:$LINENO: checking whether ln -s works" >&5
2328echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2329LN_S=$as_ln_s
2330if test "$LN_S" = "ln -s"; then
2331 echo "$as_me:$LINENO: result: yes" >&5
2332echo "${ECHO_T}yes" >&6
2333else
2334 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2335echo "${ECHO_T}no, using $LN_S" >&6
2336fi
2337
2338
2339
2340ac_ext=c
2341ac_cpp='$CPP $CPPFLAGS'
2342ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2343ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2344ac_compiler_gnu=$ac_cv_c_compiler_gnu
2345echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2346echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2347# On Suns, sometimes $CPP names a directory.
2348if test -n "$CPP" && test -d "$CPP"; then
2349 CPP=
2350fi
2351if test -z "$CPP"; then
2352 if test "${ac_cv_prog_CPP+set}" = set; then
2353 echo $ECHO_N "(cached) $ECHO_C" >&6
2354else
2355 # Double quotes because CPP needs to be expanded
2356 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2357 do
2358 ac_preproc_ok=false
2359for ac_c_preproc_warn_flag in '' yes
2360do
2361 # Use a header file that comes with gcc, so configuring glibc
2362 # with a fresh cross-compiler works.
2363 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2364 # <limits.h> exists even on freestanding compilers.
2365 # On the NeXT, cc -E runs the code through the compiler's parser,
2366 # not just through cpp. "Syntax error" is here to catch this case.
2367 cat >conftest.$ac_ext <<_ACEOF
2368/* confdefs.h. */
2369_ACEOF
2370cat confdefs.h >>conftest.$ac_ext
2371cat >>conftest.$ac_ext <<_ACEOF
2372/* end confdefs.h. */
2373#ifdef __STDC__
2374# include <limits.h>
2375#else
2376# include <assert.h>
2377#endif
2378 Syntax error
2379_ACEOF
2380if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2381 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2382 ac_status=$?
2383 grep -v '^ *+' conftest.er1 >conftest.err
2384 rm -f conftest.er1
2385 cat conftest.err >&5
2386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2387 (exit $ac_status); } >/dev/null; then
2388 if test -s conftest.err; then
2389 ac_cpp_err=$ac_c_preproc_warn_flag
2390 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2391 else
2392 ac_cpp_err=
2393 fi
2394else
2395 ac_cpp_err=yes
2396fi
2397if test -z "$ac_cpp_err"; then
2398 :
2399else
2400 echo "$as_me: failed program was:" >&5
2401sed 's/^/| /' conftest.$ac_ext >&5
2402
2403 # Broken: fails on valid input.
2404continue
2405fi
2406rm -f conftest.err conftest.$ac_ext
2407
2408 # OK, works on sane cases. Now check whether non-existent headers
2409 # can be detected and how.
2410 cat >conftest.$ac_ext <<_ACEOF
2411/* confdefs.h. */
2412_ACEOF
2413cat confdefs.h >>conftest.$ac_ext
2414cat >>conftest.$ac_ext <<_ACEOF
2415/* end confdefs.h. */
2416#include <ac_nonexistent.h>
2417_ACEOF
2418if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2419 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2420 ac_status=$?
2421 grep -v '^ *+' conftest.er1 >conftest.err
2422 rm -f conftest.er1
2423 cat conftest.err >&5
2424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2425 (exit $ac_status); } >/dev/null; then
2426 if test -s conftest.err; then
2427 ac_cpp_err=$ac_c_preproc_warn_flag
2428 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2429 else
2430 ac_cpp_err=
2431 fi
2432else
2433 ac_cpp_err=yes
2434fi
2435if test -z "$ac_cpp_err"; then
2436 # Broken: success on invalid input.
2437continue
2438else
2439 echo "$as_me: failed program was:" >&5
2440sed 's/^/| /' conftest.$ac_ext >&5
2441
2442 # Passes both tests.
2443ac_preproc_ok=:
2444break
2445fi
2446rm -f conftest.err conftest.$ac_ext
2447
2448done
2449# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2450rm -f conftest.err conftest.$ac_ext
2451if $ac_preproc_ok; then
2452 break
2453fi
2454
2455 done
2456 ac_cv_prog_CPP=$CPP
2457
2458fi
2459 CPP=$ac_cv_prog_CPP
2460else
2461 ac_cv_prog_CPP=$CPP
2462fi
2463echo "$as_me:$LINENO: result: $CPP" >&5
2464echo "${ECHO_T}$CPP" >&6
2465ac_preproc_ok=false
2466for ac_c_preproc_warn_flag in '' yes
2467do
2468 # Use a header file that comes with gcc, so configuring glibc
2469 # with a fresh cross-compiler works.
2470 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2471 # <limits.h> exists even on freestanding compilers.
2472 # On the NeXT, cc -E runs the code through the compiler's parser,
2473 # not just through cpp. "Syntax error" is here to catch this case.
2474 cat >conftest.$ac_ext <<_ACEOF
2475/* confdefs.h. */
2476_ACEOF
2477cat confdefs.h >>conftest.$ac_ext
2478cat >>conftest.$ac_ext <<_ACEOF
2479/* end confdefs.h. */
2480#ifdef __STDC__
2481# include <limits.h>
2482#else
2483# include <assert.h>
2484#endif
2485 Syntax error
2486_ACEOF
2487if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2488 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2489 ac_status=$?
2490 grep -v '^ *+' conftest.er1 >conftest.err
2491 rm -f conftest.er1
2492 cat conftest.err >&5
2493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2494 (exit $ac_status); } >/dev/null; then
2495 if test -s conftest.err; then
2496 ac_cpp_err=$ac_c_preproc_warn_flag
2497 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2498 else
2499 ac_cpp_err=
2500 fi
2501else
2502 ac_cpp_err=yes
2503fi
2504if test -z "$ac_cpp_err"; then
2505 :
2506else
2507 echo "$as_me: failed program was:" >&5
2508sed 's/^/| /' conftest.$ac_ext >&5
2509
2510 # Broken: fails on valid input.
2511continue
2512fi
2513rm -f conftest.err conftest.$ac_ext
2514
2515 # OK, works on sane cases. Now check whether non-existent headers
2516 # can be detected and how.
2517 cat >conftest.$ac_ext <<_ACEOF
2518/* confdefs.h. */
2519_ACEOF
2520cat confdefs.h >>conftest.$ac_ext
2521cat >>conftest.$ac_ext <<_ACEOF
2522/* end confdefs.h. */
2523#include <ac_nonexistent.h>
2524_ACEOF
2525if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2526 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2527 ac_status=$?
2528 grep -v '^ *+' conftest.er1 >conftest.err
2529 rm -f conftest.er1
2530 cat conftest.err >&5
2531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2532 (exit $ac_status); } >/dev/null; then
2533 if test -s conftest.err; then
2534 ac_cpp_err=$ac_c_preproc_warn_flag
2535 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2536 else
2537 ac_cpp_err=
2538 fi
2539else
2540 ac_cpp_err=yes
2541fi
2542if test -z "$ac_cpp_err"; then
2543 # Broken: success on invalid input.
2544continue
2545else
2546 echo "$as_me: failed program was:" >&5
2547sed 's/^/| /' conftest.$ac_ext >&5
2548
2549 # Passes both tests.
2550ac_preproc_ok=:
2551break
2552fi
2553rm -f conftest.err conftest.$ac_ext
2554
2555done
2556# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2557rm -f conftest.err conftest.$ac_ext
2558if $ac_preproc_ok; then
2559 :
2560else
2561 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2562See \`config.log' for more details." >&5
2563echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2564See \`config.log' for more details." >&2;}
2565 { (exit 1); exit 1; }; }
2566fi
2567
2568ac_ext=c
2569ac_cpp='$CPP $CPPFLAGS'
2570ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2571ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2572ac_compiler_gnu=$ac_cv_c_compiler_gnu
2573
2574
2575echo "$as_me:$LINENO: checking for egrep" >&5
2576echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2577if test "${ac_cv_prog_egrep+set}" = set; then
2578 echo $ECHO_N "(cached) $ECHO_C" >&6
2579else
2580 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2581 then ac_cv_prog_egrep='grep -E'
2582 else ac_cv_prog_egrep='egrep'
2583 fi
2584fi
2585echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2586echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2587 EGREP=$ac_cv_prog_egrep
2588
2589
2590echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2591echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2592if test "${ac_cv_header_stdc+set}" = set; then
2593 echo $ECHO_N "(cached) $ECHO_C" >&6
2594else
2595 cat >conftest.$ac_ext <<_ACEOF
2596/* confdefs.h. */
2597_ACEOF
2598cat confdefs.h >>conftest.$ac_ext
2599cat >>conftest.$ac_ext <<_ACEOF
2600/* end confdefs.h. */
2601#include <stdlib.h>
2602#include <stdarg.h>
2603#include <string.h>
2604#include <float.h>
2605
2606int
2607main ()
2608{
2609
2610 ;
2611 return 0;
2612}
2613_ACEOF
2614rm -f conftest.$ac_objext
2615if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2616 (eval $ac_compile) 2>conftest.er1
2617 ac_status=$?
2618 grep -v '^ *+' conftest.er1 >conftest.err
2619 rm -f conftest.er1
2620 cat conftest.err >&5
2621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2622 (exit $ac_status); } &&
2623 { ac_try='test -z "$ac_c_werror_flag"
2624 || test ! -s conftest.err'
2625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2626 (eval $ac_try) 2>&5
2627 ac_status=$?
2628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2629 (exit $ac_status); }; } &&
2630 { ac_try='test -s conftest.$ac_objext'
2631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2632 (eval $ac_try) 2>&5
2633 ac_status=$?
2634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2635 (exit $ac_status); }; }; then
2636 ac_cv_header_stdc=yes
2637else
2638 echo "$as_me: failed program was:" >&5
2639sed 's/^/| /' conftest.$ac_ext >&5
2640
2641ac_cv_header_stdc=no
2642fi
2643rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2644
2645if test $ac_cv_header_stdc = yes; then
2646 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2647 cat >conftest.$ac_ext <<_ACEOF
2648/* confdefs.h. */
2649_ACEOF
2650cat confdefs.h >>conftest.$ac_ext
2651cat >>conftest.$ac_ext <<_ACEOF
2652/* end confdefs.h. */
2653#include <string.h>
2654
2655_ACEOF
2656if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2657 $EGREP "memchr" >/dev/null 2>&1; then
2658 :
2659else
2660 ac_cv_header_stdc=no
2661fi
2662rm -f conftest*
2663
2664fi
2665
2666if test $ac_cv_header_stdc = yes; then
2667 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2668 cat >conftest.$ac_ext <<_ACEOF
2669/* confdefs.h. */
2670_ACEOF
2671cat confdefs.h >>conftest.$ac_ext
2672cat >>conftest.$ac_ext <<_ACEOF
2673/* end confdefs.h. */
2674#include <stdlib.h>
2675
2676_ACEOF
2677if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2678 $EGREP "free" >/dev/null 2>&1; then
2679 :
2680else
2681 ac_cv_header_stdc=no
2682fi
2683rm -f conftest*
2684
2685fi
2686
2687if test $ac_cv_header_stdc = yes; then
2688 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2689 if test "$cross_compiling" = yes; then
2690 :
2691else
2692 cat >conftest.$ac_ext <<_ACEOF
2693/* confdefs.h. */
2694_ACEOF
2695cat confdefs.h >>conftest.$ac_ext
2696cat >>conftest.$ac_ext <<_ACEOF
2697/* end confdefs.h. */
2698#include <ctype.h>
2699#if ((' ' & 0x0FF) == 0x020)
2700# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2701# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2702#else
2703# define ISLOWER(c) \
2704 (('a' <= (c) && (c) <= 'i') \
2705 || ('j' <= (c) && (c) <= 'r') \
2706 || ('s' <= (c) && (c) <= 'z'))
2707# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2708#endif
2709
2710#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2711int
2712main ()
2713{
2714 int i;
2715 for (i = 0; i < 256; i++)
2716 if (XOR (islower (i), ISLOWER (i))
2717 || toupper (i) != TOUPPER (i))
2718 exit(2);
2719 exit (0);
2720}
2721_ACEOF
2722rm -f conftest$ac_exeext
2723if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2724 (eval $ac_link) 2>&5
2725 ac_status=$?
2726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2729 (eval $ac_try) 2>&5
2730 ac_status=$?
2731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2732 (exit $ac_status); }; }; then
2733 :
2734else
2735 echo "$as_me: program exited with status $ac_status" >&5
2736echo "$as_me: failed program was:" >&5
2737sed 's/^/| /' conftest.$ac_ext >&5
2738
2739( exit $ac_status )
2740ac_cv_header_stdc=no
2741fi
2742rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2743fi
2744fi
2745fi
2746echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2747echo "${ECHO_T}$ac_cv_header_stdc" >&6
2748if test $ac_cv_header_stdc = yes; then
2749
2750cat >>confdefs.h <<\_ACEOF
2751#define STDC_HEADERS 1
2752_ACEOF
2753
2754fi
2755
2756# On IRIX 5.3, sys/types and inttypes.h are conflicting.
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2767 inttypes.h stdint.h unistd.h
2768do
2769as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2770echo "$as_me:$LINENO: checking for $ac_header" >&5
2771echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2772if eval "test \"\${$as_ac_Header+set}\" = set"; then
2773 echo $ECHO_N "(cached) $ECHO_C" >&6
2774else
2775 cat >conftest.$ac_ext <<_ACEOF
2776/* confdefs.h. */
2777_ACEOF
2778cat confdefs.h >>conftest.$ac_ext
2779cat >>conftest.$ac_ext <<_ACEOF
2780/* end confdefs.h. */
2781$ac_includes_default
2782
2783#include <$ac_header>
2784_ACEOF
2785rm -f conftest.$ac_objext
2786if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2787 (eval $ac_compile) 2>conftest.er1
2788 ac_status=$?
2789 grep -v '^ *+' conftest.er1 >conftest.err
2790 rm -f conftest.er1
2791 cat conftest.err >&5
2792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2793 (exit $ac_status); } &&
2794 { ac_try='test -z "$ac_c_werror_flag"
2795 || test ! -s conftest.err'
2796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2797 (eval $ac_try) 2>&5
2798 ac_status=$?
2799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2800 (exit $ac_status); }; } &&
2801 { ac_try='test -s conftest.$ac_objext'
2802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2803 (eval $ac_try) 2>&5
2804 ac_status=$?
2805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2806 (exit $ac_status); }; }; then
2807 eval "$as_ac_Header=yes"
2808else
2809 echo "$as_me: failed program was:" >&5
2810sed 's/^/| /' conftest.$ac_ext >&5
2811
2812eval "$as_ac_Header=no"
2813fi
2814rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2815fi
2816echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2817echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2818if test `eval echo '${'$as_ac_Header'}'` = yes; then
2819 cat >>confdefs.h <<_ACEOF
2820#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2821_ACEOF
2822
2823fi
2824
2825done
2826
2827
2828echo "$as_me:$LINENO: checking for void *" >&5
2829echo $ECHO_N "checking for void *... $ECHO_C" >&6
2830if test "${ac_cv_type_void_p+set}" = set; then
2831 echo $ECHO_N "(cached) $ECHO_C" >&6
2832else
2833 cat >conftest.$ac_ext <<_ACEOF
2834/* confdefs.h. */
2835_ACEOF
2836cat confdefs.h >>conftest.$ac_ext
2837cat >>conftest.$ac_ext <<_ACEOF
2838/* end confdefs.h. */
2839$ac_includes_default
2840int
2841main ()
2842{
2843if ((void * *) 0)
2844 return 0;
2845if (sizeof (void *))
2846 return 0;
2847 ;
2848 return 0;
2849}
2850_ACEOF
2851rm -f conftest.$ac_objext
2852if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2853 (eval $ac_compile) 2>conftest.er1
2854 ac_status=$?
2855 grep -v '^ *+' conftest.er1 >conftest.err
2856 rm -f conftest.er1
2857 cat conftest.err >&5
2858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2859 (exit $ac_status); } &&
2860 { ac_try='test -z "$ac_c_werror_flag"
2861 || test ! -s conftest.err'
2862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2863 (eval $ac_try) 2>&5
2864 ac_status=$?
2865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2866 (exit $ac_status); }; } &&
2867 { ac_try='test -s conftest.$ac_objext'
2868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2869 (eval $ac_try) 2>&5
2870 ac_status=$?
2871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2872 (exit $ac_status); }; }; then
2873 ac_cv_type_void_p=yes
2874else
2875 echo "$as_me: failed program was:" >&5
2876sed 's/^/| /' conftest.$ac_ext >&5
2877
2878ac_cv_type_void_p=no
2879fi
2880rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2881fi
2882echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
2883echo "${ECHO_T}$ac_cv_type_void_p" >&6
2884
2885echo "$as_me:$LINENO: checking size of void *" >&5
2886echo $ECHO_N "checking size of void *... $ECHO_C" >&6
2887if test "${ac_cv_sizeof_void_p+set}" = set; then
2888 echo $ECHO_N "(cached) $ECHO_C" >&6
2889else
2890 if test "$ac_cv_type_void_p" = yes; then
2891 # The cast to unsigned long works around a bug in the HP C Compiler
2892 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
2893 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
2894 # This bug is HP SR number 8606223364.
2895 if test "$cross_compiling" = yes; then
2896 # Depending upon the size, compute the lo and hi bounds.
2897cat >conftest.$ac_ext <<_ACEOF
2898/* confdefs.h. */
2899_ACEOF
2900cat confdefs.h >>conftest.$ac_ext
2901cat >>conftest.$ac_ext <<_ACEOF
2902/* end confdefs.h. */
2903$ac_includes_default
2904int
2905main ()
2906{
2907static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
2908test_array [0] = 0
2909
2910 ;
2911 return 0;
2912}
2913_ACEOF
2914rm -f conftest.$ac_objext
2915if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2916 (eval $ac_compile) 2>conftest.er1
2917 ac_status=$?
2918 grep -v '^ *+' conftest.er1 >conftest.err
2919 rm -f conftest.er1
2920 cat conftest.err >&5
2921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2922 (exit $ac_status); } &&
2923 { ac_try='test -z "$ac_c_werror_flag"
2924 || test ! -s conftest.err'
2925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2926 (eval $ac_try) 2>&5
2927 ac_status=$?
2928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2929 (exit $ac_status); }; } &&
2930 { ac_try='test -s conftest.$ac_objext'
2931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2932 (eval $ac_try) 2>&5
2933 ac_status=$?
2934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2935 (exit $ac_status); }; }; then
2936 ac_lo=0 ac_mid=0
2937 while :; do
2938 cat >conftest.$ac_ext <<_ACEOF
2939/* confdefs.h. */
2940_ACEOF
2941cat confdefs.h >>conftest.$ac_ext
2942cat >>conftest.$ac_ext <<_ACEOF
2943/* end confdefs.h. */
2944$ac_includes_default
2945int
2946main ()
2947{
2948static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
2949test_array [0] = 0
2950
2951 ;
2952 return 0;
2953}
2954_ACEOF
2955rm -f conftest.$ac_objext
2956if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2957 (eval $ac_compile) 2>conftest.er1
2958 ac_status=$?
2959 grep -v '^ *+' conftest.er1 >conftest.err
2960 rm -f conftest.er1
2961 cat conftest.err >&5
2962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2963 (exit $ac_status); } &&
2964 { ac_try='test -z "$ac_c_werror_flag"
2965 || test ! -s conftest.err'
2966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2967 (eval $ac_try) 2>&5
2968 ac_status=$?
2969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2970 (exit $ac_status); }; } &&
2971 { ac_try='test -s conftest.$ac_objext'
2972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2973 (eval $ac_try) 2>&5
2974 ac_status=$?
2975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2976 (exit $ac_status); }; }; then
2977 ac_hi=$ac_mid; break
2978else
2979 echo "$as_me: failed program was:" >&5
2980sed 's/^/| /' conftest.$ac_ext >&5
2981
2982ac_lo=`expr $ac_mid + 1`
2983 if test $ac_lo -le $ac_mid; then
2984 ac_lo= ac_hi=
2985 break
2986 fi
2987 ac_mid=`expr 2 '*' $ac_mid + 1`
2988fi
2989rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2990 done
2991else
2992 echo "$as_me: failed program was:" >&5
2993sed 's/^/| /' conftest.$ac_ext >&5
2994
2995cat >conftest.$ac_ext <<_ACEOF
2996/* confdefs.h. */
2997_ACEOF
2998cat confdefs.h >>conftest.$ac_ext
2999cat >>conftest.$ac_ext <<_ACEOF
3000/* end confdefs.h. */
3001$ac_includes_default
3002int
3003main ()
3004{
3005static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
3006test_array [0] = 0
3007
3008 ;
3009 return 0;
3010}
3011_ACEOF
3012rm -f conftest.$ac_objext
3013if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3014 (eval $ac_compile) 2>conftest.er1
3015 ac_status=$?
3016 grep -v '^ *+' conftest.er1 >conftest.err
3017 rm -f conftest.er1
3018 cat conftest.err >&5
3019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3020 (exit $ac_status); } &&
3021 { ac_try='test -z "$ac_c_werror_flag"
3022 || test ! -s conftest.err'
3023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3024 (eval $ac_try) 2>&5
3025 ac_status=$?
3026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3027 (exit $ac_status); }; } &&
3028 { ac_try='test -s conftest.$ac_objext'
3029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3030 (eval $ac_try) 2>&5
3031 ac_status=$?
3032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3033 (exit $ac_status); }; }; then
3034 ac_hi=-1 ac_mid=-1
3035 while :; do
3036 cat >conftest.$ac_ext <<_ACEOF
3037/* confdefs.h. */
3038_ACEOF
3039cat confdefs.h >>conftest.$ac_ext
3040cat >>conftest.$ac_ext <<_ACEOF
3041/* end confdefs.h. */
3042$ac_includes_default
3043int
3044main ()
3045{
3046static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
3047test_array [0] = 0
3048
3049 ;
3050 return 0;
3051}
3052_ACEOF
3053rm -f conftest.$ac_objext
3054if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3055 (eval $ac_compile) 2>conftest.er1
3056 ac_status=$?
3057 grep -v '^ *+' conftest.er1 >conftest.err
3058 rm -f conftest.er1
3059 cat conftest.err >&5
3060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3061 (exit $ac_status); } &&
3062 { ac_try='test -z "$ac_c_werror_flag"
3063 || test ! -s conftest.err'
3064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3065 (eval $ac_try) 2>&5
3066 ac_status=$?
3067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3068 (exit $ac_status); }; } &&
3069 { ac_try='test -s conftest.$ac_objext'
3070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3071 (eval $ac_try) 2>&5
3072 ac_status=$?
3073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3074 (exit $ac_status); }; }; then
3075 ac_lo=$ac_mid; break
3076else
3077 echo "$as_me: failed program was:" >&5
3078sed 's/^/| /' conftest.$ac_ext >&5
3079
3080ac_hi=`expr '(' $ac_mid ')' - 1`
3081 if test $ac_mid -le $ac_hi; then
3082 ac_lo= ac_hi=
3083 break
3084 fi
3085 ac_mid=`expr 2 '*' $ac_mid`
3086fi
3087rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3088 done
3089else
3090 echo "$as_me: failed program was:" >&5
3091sed 's/^/| /' conftest.$ac_ext >&5
3092
3093ac_lo= ac_hi=
3094fi
3095rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3096fi
3097rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3098# Binary search between lo and hi bounds.
3099while test "x$ac_lo" != "x$ac_hi"; do
3100 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3101 cat >conftest.$ac_ext <<_ACEOF
3102/* confdefs.h. */
3103_ACEOF
3104cat confdefs.h >>conftest.$ac_ext
3105cat >>conftest.$ac_ext <<_ACEOF
3106/* end confdefs.h. */
3107$ac_includes_default
3108int
3109main ()
3110{
3111static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3112test_array [0] = 0
3113
3114 ;
3115 return 0;
3116}
3117_ACEOF
3118rm -f conftest.$ac_objext
3119if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3120 (eval $ac_compile) 2>conftest.er1
3121 ac_status=$?
3122 grep -v '^ *+' conftest.er1 >conftest.err
3123 rm -f conftest.er1
3124 cat conftest.err >&5
3125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3126 (exit $ac_status); } &&
3127 { ac_try='test -z "$ac_c_werror_flag"
3128 || test ! -s conftest.err'
3129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3130 (eval $ac_try) 2>&5
3131 ac_status=$?
3132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3133 (exit $ac_status); }; } &&
3134 { ac_try='test -s conftest.$ac_objext'
3135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3136 (eval $ac_try) 2>&5
3137 ac_status=$?
3138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3139 (exit $ac_status); }; }; then
3140 ac_hi=$ac_mid
3141else
3142 echo "$as_me: failed program was:" >&5
3143sed 's/^/| /' conftest.$ac_ext >&5
3144
3145ac_lo=`expr '(' $ac_mid ')' + 1`
3146fi
3147rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3148done
3149case $ac_lo in
3150?*) ac_cv_sizeof_void_p=$ac_lo;;
3151'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3152See \`config.log' for more details." >&5
3153echo "$as_me: error: cannot compute sizeof (void *), 77
3154See \`config.log' for more details." >&2;}
3155 { (exit 1); exit 1; }; } ;;
3156esac
3157else
3158 if test "$cross_compiling" = yes; then
3159 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
3160See \`config.log' for more details." >&5
3161echo "$as_me: error: cannot run test program while cross compiling
3162See \`config.log' for more details." >&2;}
3163 { (exit 1); exit 1; }; }
3164else
3165 cat >conftest.$ac_ext <<_ACEOF
3166/* confdefs.h. */
3167_ACEOF
3168cat confdefs.h >>conftest.$ac_ext
3169cat >>conftest.$ac_ext <<_ACEOF
3170/* end confdefs.h. */
3171$ac_includes_default
3172long longval () { return (long) (sizeof (void *)); }
3173unsigned long ulongval () { return (long) (sizeof (void *)); }
3174#include <stdio.h>
3175#include <stdlib.h>
3176int
3177main ()
3178{
3179
3180 FILE *f = fopen ("conftest.val", "w");
3181 if (! f)
3182 exit (1);
3183 if (((long) (sizeof (void *))) < 0)
3184 {
3185 long i = longval ();
3186 if (i != ((long) (sizeof (void *))))
3187 exit (1);
3188 fprintf (f, "%ld\n", i);
3189 }
3190 else
3191 {
3192 unsigned long i = ulongval ();
3193 if (i != ((long) (sizeof (void *))))
3194 exit (1);
3195 fprintf (f, "%lu\n", i);
3196 }
3197 exit (ferror (f) || fclose (f) != 0);
3198
3199 ;
3200 return 0;
3201}
3202_ACEOF
3203rm -f conftest$ac_exeext
3204if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3205 (eval $ac_link) 2>&5
3206 ac_status=$?
3207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3208 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3210 (eval $ac_try) 2>&5
3211 ac_status=$?
3212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3213 (exit $ac_status); }; }; then
3214 ac_cv_sizeof_void_p=`cat conftest.val`
3215else
3216 echo "$as_me: program exited with status $ac_status" >&5
3217echo "$as_me: failed program was:" >&5
3218sed 's/^/| /' conftest.$ac_ext >&5
3219
3220( exit $ac_status )
3221{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3222See \`config.log' for more details." >&5
3223echo "$as_me: error: cannot compute sizeof (void *), 77
3224See \`config.log' for more details." >&2;}
3225 { (exit 1); exit 1; }; }
3226fi
3227rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3228fi
3229fi
3230rm -f conftest.val
3231else
3232 ac_cv_sizeof_void_p=0
3233fi
3234fi
3235echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
3236echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
3237cat >>confdefs.h <<_ACEOF
3238#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
3239_ACEOF
3240
3241
3242echo "$as_me:$LINENO: checking for int" >&5
3243echo $ECHO_N "checking for int... $ECHO_C" >&6
3244if test "${ac_cv_type_int+set}" = set; then
3245 echo $ECHO_N "(cached) $ECHO_C" >&6
3246else
3247 cat >conftest.$ac_ext <<_ACEOF
3248/* confdefs.h. */
3249_ACEOF
3250cat confdefs.h >>conftest.$ac_ext
3251cat >>conftest.$ac_ext <<_ACEOF
3252/* end confdefs.h. */
3253$ac_includes_default
3254int
3255main ()
3256{
3257if ((int *) 0)
3258 return 0;
3259if (sizeof (int))
3260 return 0;
3261 ;
3262 return 0;
3263}
3264_ACEOF
3265rm -f conftest.$ac_objext
3266if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3267 (eval $ac_compile) 2>conftest.er1
3268 ac_status=$?
3269 grep -v '^ *+' conftest.er1 >conftest.err
3270 rm -f conftest.er1
3271 cat conftest.err >&5
3272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3273 (exit $ac_status); } &&
3274 { ac_try='test -z "$ac_c_werror_flag"
3275 || test ! -s conftest.err'
3276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3277 (eval $ac_try) 2>&5
3278 ac_status=$?
3279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3280 (exit $ac_status); }; } &&
3281 { ac_try='test -s conftest.$ac_objext'
3282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3283 (eval $ac_try) 2>&5
3284 ac_status=$?
3285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3286 (exit $ac_status); }; }; then
3287 ac_cv_type_int=yes
3288else
3289 echo "$as_me: failed program was:" >&5
3290sed 's/^/| /' conftest.$ac_ext >&5
3291
3292ac_cv_type_int=no
3293fi
3294rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3295fi
3296echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
3297echo "${ECHO_T}$ac_cv_type_int" >&6
3298
3299echo "$as_me:$LINENO: checking size of int" >&5
3300echo $ECHO_N "checking size of int... $ECHO_C" >&6
3301if test "${ac_cv_sizeof_int+set}" = set; then
3302 echo $ECHO_N "(cached) $ECHO_C" >&6
3303else
3304 if test "$ac_cv_type_int" = yes; then
3305 # The cast to unsigned long works around a bug in the HP C Compiler
3306 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3307 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3308 # This bug is HP SR number 8606223364.
3309 if test "$cross_compiling" = yes; then
3310 # Depending upon the size, compute the lo and hi bounds.
3311cat >conftest.$ac_ext <<_ACEOF
3312/* confdefs.h. */
3313_ACEOF
3314cat confdefs.h >>conftest.$ac_ext
3315cat >>conftest.$ac_ext <<_ACEOF
3316/* end confdefs.h. */
3317$ac_includes_default
3318int
3319main ()
3320{
3321static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
3322test_array [0] = 0
3323
3324 ;
3325 return 0;
3326}
3327_ACEOF
3328rm -f conftest.$ac_objext
3329if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3330 (eval $ac_compile) 2>conftest.er1
3331 ac_status=$?
3332 grep -v '^ *+' conftest.er1 >conftest.err
3333 rm -f conftest.er1
3334 cat conftest.err >&5
3335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3336 (exit $ac_status); } &&
3337 { ac_try='test -z "$ac_c_werror_flag"
3338 || test ! -s conftest.err'
3339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3340 (eval $ac_try) 2>&5
3341 ac_status=$?
3342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3343 (exit $ac_status); }; } &&
3344 { ac_try='test -s conftest.$ac_objext'
3345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3346 (eval $ac_try) 2>&5
3347 ac_status=$?
3348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3349 (exit $ac_status); }; }; then
3350 ac_lo=0 ac_mid=0
3351 while :; do
3352 cat >conftest.$ac_ext <<_ACEOF
3353/* confdefs.h. */
3354_ACEOF
3355cat confdefs.h >>conftest.$ac_ext
3356cat >>conftest.$ac_ext <<_ACEOF
3357/* end confdefs.h. */
3358$ac_includes_default
3359int
3360main ()
3361{
3362static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
3363test_array [0] = 0
3364
3365 ;
3366 return 0;
3367}
3368_ACEOF
3369rm -f conftest.$ac_objext
3370if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3371 (eval $ac_compile) 2>conftest.er1
3372 ac_status=$?
3373 grep -v '^ *+' conftest.er1 >conftest.err
3374 rm -f conftest.er1
3375 cat conftest.err >&5
3376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3377 (exit $ac_status); } &&
3378 { ac_try='test -z "$ac_c_werror_flag"
3379 || test ! -s conftest.err'
3380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3381 (eval $ac_try) 2>&5
3382 ac_status=$?
3383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3384 (exit $ac_status); }; } &&
3385 { ac_try='test -s conftest.$ac_objext'
3386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3387 (eval $ac_try) 2>&5
3388 ac_status=$?
3389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3390 (exit $ac_status); }; }; then
3391 ac_hi=$ac_mid; break
3392else
3393 echo "$as_me: failed program was:" >&5
3394sed 's/^/| /' conftest.$ac_ext >&5
3395
3396ac_lo=`expr $ac_mid + 1`
3397 if test $ac_lo -le $ac_mid; then
3398 ac_lo= ac_hi=
3399 break
3400 fi
3401 ac_mid=`expr 2 '*' $ac_mid + 1`
3402fi
3403rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3404 done
3405else
3406 echo "$as_me: failed program was:" >&5
3407sed 's/^/| /' conftest.$ac_ext >&5
3408
3409cat >conftest.$ac_ext <<_ACEOF
3410/* confdefs.h. */
3411_ACEOF
3412cat confdefs.h >>conftest.$ac_ext
3413cat >>conftest.$ac_ext <<_ACEOF
3414/* end confdefs.h. */
3415$ac_includes_default
3416int
3417main ()
3418{
3419static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
3420test_array [0] = 0
3421
3422 ;
3423 return 0;
3424}
3425_ACEOF
3426rm -f conftest.$ac_objext
3427if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3428 (eval $ac_compile) 2>conftest.er1
3429 ac_status=$?
3430 grep -v '^ *+' conftest.er1 >conftest.err
3431 rm -f conftest.er1
3432 cat conftest.err >&5
3433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3434 (exit $ac_status); } &&
3435 { ac_try='test -z "$ac_c_werror_flag"
3436 || test ! -s conftest.err'
3437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3438 (eval $ac_try) 2>&5
3439 ac_status=$?
3440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3441 (exit $ac_status); }; } &&
3442 { ac_try='test -s conftest.$ac_objext'
3443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3444 (eval $ac_try) 2>&5
3445 ac_status=$?
3446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3447 (exit $ac_status); }; }; then
3448 ac_hi=-1 ac_mid=-1
3449 while :; do
3450 cat >conftest.$ac_ext <<_ACEOF
3451/* confdefs.h. */
3452_ACEOF
3453cat confdefs.h >>conftest.$ac_ext
3454cat >>conftest.$ac_ext <<_ACEOF
3455/* end confdefs.h. */
3456$ac_includes_default
3457int
3458main ()
3459{
3460static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
3461test_array [0] = 0
3462
3463 ;
3464 return 0;
3465}
3466_ACEOF
3467rm -f conftest.$ac_objext
3468if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3469 (eval $ac_compile) 2>conftest.er1
3470 ac_status=$?
3471 grep -v '^ *+' conftest.er1 >conftest.err
3472 rm -f conftest.er1
3473 cat conftest.err >&5
3474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3475 (exit $ac_status); } &&
3476 { ac_try='test -z "$ac_c_werror_flag"
3477 || test ! -s conftest.err'
3478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3479 (eval $ac_try) 2>&5
3480 ac_status=$?
3481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3482 (exit $ac_status); }; } &&
3483 { ac_try='test -s conftest.$ac_objext'
3484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3485 (eval $ac_try) 2>&5
3486 ac_status=$?
3487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3488 (exit $ac_status); }; }; then
3489 ac_lo=$ac_mid; break
3490else
3491 echo "$as_me: failed program was:" >&5
3492sed 's/^/| /' conftest.$ac_ext >&5
3493
3494ac_hi=`expr '(' $ac_mid ')' - 1`
3495 if test $ac_mid -le $ac_hi; then
3496 ac_lo= ac_hi=
3497 break
3498 fi
3499 ac_mid=`expr 2 '*' $ac_mid`
3500fi
3501rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3502 done
3503else
3504 echo "$as_me: failed program was:" >&5
3505sed 's/^/| /' conftest.$ac_ext >&5
3506
3507ac_lo= ac_hi=
3508fi
3509rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3510fi
3511rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3512# Binary search between lo and hi bounds.
3513while test "x$ac_lo" != "x$ac_hi"; do
3514 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3515 cat >conftest.$ac_ext <<_ACEOF
3516/* confdefs.h. */
3517_ACEOF
3518cat confdefs.h >>conftest.$ac_ext
3519cat >>conftest.$ac_ext <<_ACEOF
3520/* end confdefs.h. */
3521$ac_includes_default
3522int
3523main ()
3524{
3525static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
3526test_array [0] = 0
3527
3528 ;
3529 return 0;
3530}
3531_ACEOF
3532rm -f conftest.$ac_objext
3533if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3534 (eval $ac_compile) 2>conftest.er1
3535 ac_status=$?
3536 grep -v '^ *+' conftest.er1 >conftest.err
3537 rm -f conftest.er1
3538 cat conftest.err >&5
3539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3540 (exit $ac_status); } &&
3541 { ac_try='test -z "$ac_c_werror_flag"
3542 || test ! -s conftest.err'
3543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3544 (eval $ac_try) 2>&5
3545 ac_status=$?
3546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3547 (exit $ac_status); }; } &&
3548 { ac_try='test -s conftest.$ac_objext'
3549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3550 (eval $ac_try) 2>&5
3551 ac_status=$?
3552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3553 (exit $ac_status); }; }; then
3554 ac_hi=$ac_mid
3555else
3556 echo "$as_me: failed program was:" >&5
3557sed 's/^/| /' conftest.$ac_ext >&5
3558
3559ac_lo=`expr '(' $ac_mid ')' + 1`
3560fi
3561rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3562done
3563case $ac_lo in
3564?*) ac_cv_sizeof_int=$ac_lo;;
3565'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
3566See \`config.log' for more details." >&5
3567echo "$as_me: error: cannot compute sizeof (int), 77
3568See \`config.log' for more details." >&2;}
3569 { (exit 1); exit 1; }; } ;;
3570esac
3571else
3572 if test "$cross_compiling" = yes; then
3573 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
3574See \`config.log' for more details." >&5
3575echo "$as_me: error: cannot run test program while cross compiling
3576See \`config.log' for more details." >&2;}
3577 { (exit 1); exit 1; }; }
3578else
3579 cat >conftest.$ac_ext <<_ACEOF
3580/* confdefs.h. */
3581_ACEOF
3582cat confdefs.h >>conftest.$ac_ext
3583cat >>conftest.$ac_ext <<_ACEOF
3584/* end confdefs.h. */
3585$ac_includes_default
3586long longval () { return (long) (sizeof (int)); }
3587unsigned long ulongval () { return (long) (sizeof (int)); }
3588#include <stdio.h>
3589#include <stdlib.h>
3590int
3591main ()
3592{
3593
3594 FILE *f = fopen ("conftest.val", "w");
3595 if (! f)
3596 exit (1);
3597 if (((long) (sizeof (int))) < 0)
3598 {
3599 long i = longval ();
3600 if (i != ((long) (sizeof (int))))
3601 exit (1);
3602 fprintf (f, "%ld\n", i);
3603 }
3604 else
3605 {
3606 unsigned long i = ulongval ();
3607 if (i != ((long) (sizeof (int))))
3608 exit (1);
3609 fprintf (f, "%lu\n", i);
3610 }
3611 exit (ferror (f) || fclose (f) != 0);
3612
3613 ;
3614 return 0;
3615}
3616_ACEOF
3617rm -f conftest$ac_exeext
3618if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3619 (eval $ac_link) 2>&5
3620 ac_status=$?
3621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3622 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3624 (eval $ac_try) 2>&5
3625 ac_status=$?
3626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3627 (exit $ac_status); }; }; then
3628 ac_cv_sizeof_int=`cat conftest.val`
3629else
3630 echo "$as_me: program exited with status $ac_status" >&5
3631echo "$as_me: failed program was:" >&5
3632sed 's/^/| /' conftest.$ac_ext >&5
3633
3634( exit $ac_status )
3635{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
3636See \`config.log' for more details." >&5
3637echo "$as_me: error: cannot compute sizeof (int), 77
3638See \`config.log' for more details." >&2;}
3639 { (exit 1); exit 1; }; }
3640fi
3641rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3642fi
3643fi
3644rm -f conftest.val
3645else
3646 ac_cv_sizeof_int=0
3647fi
3648fi
3649echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
3650echo "${ECHO_T}$ac_cv_sizeof_int" >&6
3651cat >>confdefs.h <<_ACEOF
3652#define SIZEOF_INT $ac_cv_sizeof_int
3653_ACEOF
3654
3655
3656echo "$as_me:$LINENO: checking for long" >&5
3657echo $ECHO_N "checking for long... $ECHO_C" >&6
3658if test "${ac_cv_type_long+set}" = set; then
3659 echo $ECHO_N "(cached) $ECHO_C" >&6
3660else
3661 cat >conftest.$ac_ext <<_ACEOF
3662/* confdefs.h. */
3663_ACEOF
3664cat confdefs.h >>conftest.$ac_ext
3665cat >>conftest.$ac_ext <<_ACEOF
3666/* end confdefs.h. */
3667$ac_includes_default
3668int
3669main ()
3670{
3671if ((long *) 0)
3672 return 0;
3673if (sizeof (long))
3674 return 0;
3675 ;
3676 return 0;
3677}
3678_ACEOF
3679rm -f conftest.$ac_objext
3680if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3681 (eval $ac_compile) 2>conftest.er1
3682 ac_status=$?
3683 grep -v '^ *+' conftest.er1 >conftest.err
3684 rm -f conftest.er1
3685 cat conftest.err >&5
3686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3687 (exit $ac_status); } &&
3688 { ac_try='test -z "$ac_c_werror_flag"
3689 || test ! -s conftest.err'
3690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3691 (eval $ac_try) 2>&5
3692 ac_status=$?
3693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3694 (exit $ac_status); }; } &&
3695 { ac_try='test -s conftest.$ac_objext'
3696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3697 (eval $ac_try) 2>&5
3698 ac_status=$?
3699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3700 (exit $ac_status); }; }; then
3701 ac_cv_type_long=yes
3702else
3703 echo "$as_me: failed program was:" >&5
3704sed 's/^/| /' conftest.$ac_ext >&5
3705
3706ac_cv_type_long=no
3707fi
3708rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3709fi
3710echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
3711echo "${ECHO_T}$ac_cv_type_long" >&6
3712
3713echo "$as_me:$LINENO: checking size of long" >&5
3714echo $ECHO_N "checking size of long... $ECHO_C" >&6
3715if test "${ac_cv_sizeof_long+set}" = set; then
3716 echo $ECHO_N "(cached) $ECHO_C" >&6
3717else
3718 if test "$ac_cv_type_long" = yes; then
3719 # The cast to unsigned long works around a bug in the HP C Compiler
3720 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3721 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3722 # This bug is HP SR number 8606223364.
3723 if test "$cross_compiling" = yes; then
3724 # Depending upon the size, compute the lo and hi bounds.
3725cat >conftest.$ac_ext <<_ACEOF
3726/* confdefs.h. */
3727_ACEOF
3728cat confdefs.h >>conftest.$ac_ext
3729cat >>conftest.$ac_ext <<_ACEOF
3730/* end confdefs.h. */
3731$ac_includes_default
3732int
3733main ()
3734{
3735static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
3736test_array [0] = 0
3737
3738 ;
3739 return 0;
3740}
3741_ACEOF
3742rm -f conftest.$ac_objext
3743if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3744 (eval $ac_compile) 2>conftest.er1
3745 ac_status=$?
3746 grep -v '^ *+' conftest.er1 >conftest.err
3747 rm -f conftest.er1
3748 cat conftest.err >&5
3749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3750 (exit $ac_status); } &&
3751 { ac_try='test -z "$ac_c_werror_flag"
3752 || test ! -s conftest.err'
3753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3754 (eval $ac_try) 2>&5
3755 ac_status=$?
3756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3757 (exit $ac_status); }; } &&
3758 { ac_try='test -s conftest.$ac_objext'
3759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3760 (eval $ac_try) 2>&5
3761 ac_status=$?
3762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3763 (exit $ac_status); }; }; then
3764 ac_lo=0 ac_mid=0
3765 while :; do
3766 cat >conftest.$ac_ext <<_ACEOF
3767/* confdefs.h. */
3768_ACEOF
3769cat confdefs.h >>conftest.$ac_ext
3770cat >>conftest.$ac_ext <<_ACEOF
3771/* end confdefs.h. */
3772$ac_includes_default
3773int
3774main ()
3775{
3776static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
3777test_array [0] = 0
3778
3779 ;
3780 return 0;
3781}
3782_ACEOF
3783rm -f conftest.$ac_objext
3784if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3785 (eval $ac_compile) 2>conftest.er1
3786 ac_status=$?
3787 grep -v '^ *+' conftest.er1 >conftest.err
3788 rm -f conftest.er1
3789 cat conftest.err >&5
3790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3791 (exit $ac_status); } &&
3792 { ac_try='test -z "$ac_c_werror_flag"
3793 || test ! -s conftest.err'
3794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3795 (eval $ac_try) 2>&5
3796 ac_status=$?
3797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3798 (exit $ac_status); }; } &&
3799 { ac_try='test -s conftest.$ac_objext'
3800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3801 (eval $ac_try) 2>&5
3802 ac_status=$?
3803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3804 (exit $ac_status); }; }; then
3805 ac_hi=$ac_mid; break
3806else
3807 echo "$as_me: failed program was:" >&5
3808sed 's/^/| /' conftest.$ac_ext >&5
3809
3810ac_lo=`expr $ac_mid + 1`
3811 if test $ac_lo -le $ac_mid; then
3812 ac_lo= ac_hi=
3813 break
3814 fi
3815 ac_mid=`expr 2 '*' $ac_mid + 1`
3816fi
3817rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3818 done
3819else
3820 echo "$as_me: failed program was:" >&5
3821sed 's/^/| /' conftest.$ac_ext >&5
3822
3823cat >conftest.$ac_ext <<_ACEOF
3824/* confdefs.h. */
3825_ACEOF
3826cat confdefs.h >>conftest.$ac_ext
3827cat >>conftest.$ac_ext <<_ACEOF
3828/* end confdefs.h. */
3829$ac_includes_default
3830int
3831main ()
3832{
3833static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
3834test_array [0] = 0
3835
3836 ;
3837 return 0;
3838}
3839_ACEOF
3840rm -f conftest.$ac_objext
3841if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3842 (eval $ac_compile) 2>conftest.er1
3843 ac_status=$?
3844 grep -v '^ *+' conftest.er1 >conftest.err
3845 rm -f conftest.er1
3846 cat conftest.err >&5
3847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3848 (exit $ac_status); } &&
3849 { ac_try='test -z "$ac_c_werror_flag"
3850 || test ! -s conftest.err'
3851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3852 (eval $ac_try) 2>&5
3853 ac_status=$?
3854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3855 (exit $ac_status); }; } &&
3856 { ac_try='test -s conftest.$ac_objext'
3857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3858 (eval $ac_try) 2>&5
3859 ac_status=$?
3860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3861 (exit $ac_status); }; }; then
3862 ac_hi=-1 ac_mid=-1
3863 while :; do
3864 cat >conftest.$ac_ext <<_ACEOF
3865/* confdefs.h. */
3866_ACEOF
3867cat confdefs.h >>conftest.$ac_ext
3868cat >>conftest.$ac_ext <<_ACEOF
3869/* end confdefs.h. */
3870$ac_includes_default
3871int
3872main ()
3873{
3874static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
3875test_array [0] = 0
3876
3877 ;
3878 return 0;
3879}
3880_ACEOF
3881rm -f conftest.$ac_objext
3882if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3883 (eval $ac_compile) 2>conftest.er1
3884 ac_status=$?
3885 grep -v '^ *+' conftest.er1 >conftest.err
3886 rm -f conftest.er1
3887 cat conftest.err >&5
3888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3889 (exit $ac_status); } &&
3890 { ac_try='test -z "$ac_c_werror_flag"
3891 || test ! -s conftest.err'
3892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3893 (eval $ac_try) 2>&5
3894 ac_status=$?
3895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3896 (exit $ac_status); }; } &&
3897 { ac_try='test -s conftest.$ac_objext'
3898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3899 (eval $ac_try) 2>&5
3900 ac_status=$?
3901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3902 (exit $ac_status); }; }; then
3903 ac_lo=$ac_mid; break
3904else
3905 echo "$as_me: failed program was:" >&5
3906sed 's/^/| /' conftest.$ac_ext >&5
3907
3908ac_hi=`expr '(' $ac_mid ')' - 1`
3909 if test $ac_mid -le $ac_hi; then
3910 ac_lo= ac_hi=
3911 break
3912 fi
3913 ac_mid=`expr 2 '*' $ac_mid`
3914fi
3915rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3916 done
3917else
3918 echo "$as_me: failed program was:" >&5
3919sed 's/^/| /' conftest.$ac_ext >&5
3920
3921ac_lo= ac_hi=
3922fi
3923rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3924fi
3925rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3926# Binary search between lo and hi bounds.
3927while test "x$ac_lo" != "x$ac_hi"; do
3928 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3929 cat >conftest.$ac_ext <<_ACEOF
3930/* confdefs.h. */
3931_ACEOF
3932cat confdefs.h >>conftest.$ac_ext
3933cat >>conftest.$ac_ext <<_ACEOF
3934/* end confdefs.h. */
3935$ac_includes_default
3936int
3937main ()
3938{
3939static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
3940test_array [0] = 0
3941
3942 ;
3943 return 0;
3944}
3945_ACEOF
3946rm -f conftest.$ac_objext
3947if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3948 (eval $ac_compile) 2>conftest.er1
3949 ac_status=$?
3950 grep -v '^ *+' conftest.er1 >conftest.err
3951 rm -f conftest.er1
3952 cat conftest.err >&5
3953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3954 (exit $ac_status); } &&
3955 { ac_try='test -z "$ac_c_werror_flag"
3956 || test ! -s conftest.err'
3957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3958 (eval $ac_try) 2>&5
3959 ac_status=$?
3960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3961 (exit $ac_status); }; } &&
3962 { ac_try='test -s conftest.$ac_objext'
3963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3964 (eval $ac_try) 2>&5
3965 ac_status=$?
3966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3967 (exit $ac_status); }; }; then
3968 ac_hi=$ac_mid
3969else
3970 echo "$as_me: failed program was:" >&5
3971sed 's/^/| /' conftest.$ac_ext >&5
3972
3973ac_lo=`expr '(' $ac_mid ')' + 1`
3974fi
3975rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3976done
3977case $ac_lo in
3978?*) ac_cv_sizeof_long=$ac_lo;;
3979'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
3980See \`config.log' for more details." >&5
3981echo "$as_me: error: cannot compute sizeof (long), 77
3982See \`config.log' for more details." >&2;}
3983 { (exit 1); exit 1; }; } ;;
3984esac
3985else
3986 if test "$cross_compiling" = yes; then
3987 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
3988See \`config.log' for more details." >&5
3989echo "$as_me: error: cannot run test program while cross compiling
3990See \`config.log' for more details." >&2;}
3991 { (exit 1); exit 1; }; }
3992else
3993 cat >conftest.$ac_ext <<_ACEOF
3994/* confdefs.h. */
3995_ACEOF
3996cat confdefs.h >>conftest.$ac_ext
3997cat >>conftest.$ac_ext <<_ACEOF
3998/* end confdefs.h. */
3999$ac_includes_default
4000long longval () { return (long) (sizeof (long)); }
4001unsigned long ulongval () { return (long) (sizeof (long)); }
4002#include <stdio.h>
4003#include <stdlib.h>
4004int
4005main ()
4006{
4007
4008 FILE *f = fopen ("conftest.val", "w");
4009 if (! f)
4010 exit (1);
4011 if (((long) (sizeof (long))) < 0)
4012 {
4013 long i = longval ();
4014 if (i != ((long) (sizeof (long))))
4015 exit (1);
4016 fprintf (f, "%ld\n", i);
4017 }
4018 else
4019 {
4020 unsigned long i = ulongval ();
4021 if (i != ((long) (sizeof (long))))
4022 exit (1);
4023 fprintf (f, "%lu\n", i);
4024 }
4025 exit (ferror (f) || fclose (f) != 0);
4026
4027 ;
4028 return 0;
4029}
4030_ACEOF
4031rm -f conftest$ac_exeext
4032if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4033 (eval $ac_link) 2>&5
4034 ac_status=$?
4035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4036 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4038 (eval $ac_try) 2>&5
4039 ac_status=$?
4040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4041 (exit $ac_status); }; }; then
4042 ac_cv_sizeof_long=`cat conftest.val`
4043else
4044 echo "$as_me: program exited with status $ac_status" >&5
4045echo "$as_me: failed program was:" >&5
4046sed 's/^/| /' conftest.$ac_ext >&5
4047
4048( exit $ac_status )
4049{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4050See \`config.log' for more details." >&5
4051echo "$as_me: error: cannot compute sizeof (long), 77
4052See \`config.log' for more details." >&2;}
4053 { (exit 1); exit 1; }; }
4054fi
4055rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4056fi
4057fi
4058rm -f conftest.val
4059else
4060 ac_cv_sizeof_long=0
4061fi
4062fi
4063echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
4064echo "${ECHO_T}$ac_cv_sizeof_long" >&6
4065cat >>confdefs.h <<_ACEOF
4066#define SIZEOF_LONG $ac_cv_sizeof_long
4067_ACEOF
4068
4069
4070
4071######## check for the JDK and tools within the JDK
4072######## look in the JAVA_HOME environment variable at configure-time
4073echo "$as_me:$LINENO: checking for the JDK" >&5
4074echo $ECHO_N "checking for the JDK... $ECHO_C" >&6
4075if test "z$JAVA_HOME" != z &&
4076 test -d $JAVA_HOME &&
4077 test -d $JAVA_HOME/include
4078then
4079
4080 echo "$as_me:$LINENO: result: found in $JAVA_HOME" >&5
4081echo "${ECHO_T}found in $JAVA_HOME" >&6
4082else
4083 { { echo "$as_me:$LINENO: error: not found in \$JAVA_HOME" >&5
4084echo "$as_me: error: not found in \$JAVA_HOME" >&2;}
4085 { (exit 1); exit 1; }; }
4086fi
4087
4088# TODO: Check for specific header files in the JDK, or
4089# functions/definitions within those headers?
4090
4091# TODO: guess which include directory to use under the JDK
4092
4093# Extract the first word of "javah", so it can be a program name with args.
4094set dummy javah; ac_word=$2
4095echo "$as_me:$LINENO: checking for $ac_word" >&5
4096echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4097if test "${ac_cv_path_javagdbm_cv_path_javah+set}" = set; then
4098 echo $ECHO_N "(cached) $ECHO_C" >&6
4099else
4100 case $javagdbm_cv_path_javah in
4101 [\\/]* | ?:[\\/]*)
4102 ac_cv_path_javagdbm_cv_path_javah="$javagdbm_cv_path_javah" # Let the user override the test with a path.
4103 ;;
4104 *)
4105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4106for as_dir in $PATH
4107do
4108 IFS=$as_save_IFS
4109 test -z "$as_dir" && as_dir=.
4110 for ac_exec_ext in '' $ac_executable_extensions; do
4111 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4112 ac_cv_path_javagdbm_cv_path_javah="$as_dir/$ac_word$ac_exec_ext"
4113 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4114 break 2
4115 fi
4116done
4117done
4118
4119 test -z "$ac_cv_path_javagdbm_cv_path_javah" && ac_cv_path_javagdbm_cv_path_javah="missing_javah"
4120 ;;
4121esac
4122fi
4123javagdbm_cv_path_javah=$ac_cv_path_javagdbm_cv_path_javah
4124
4125if test -n "$javagdbm_cv_path_javah"; then
4126 echo "$as_me:$LINENO: result: $javagdbm_cv_path_javah" >&5
4127echo "${ECHO_T}$javagdbm_cv_path_javah" >&6
4128else
4129 echo "$as_me:$LINENO: result: no" >&5
4130echo "${ECHO_T}no" >&6
4131fi
4132
4133if test "$javagdbm_cv_path_javah" = missing_javah; then
4134 { { echo "$as_me:$LINENO: error: javah not found." >&5
4135echo "$as_me: error: javah not found." >&2;}
4136 { (exit 1); exit 1; }; }
4137fi
4138
4139# Extract the first word of "java", so it can be a program name with args.
4140set dummy java; ac_word=$2
4141echo "$as_me:$LINENO: checking for $ac_word" >&5
4142echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4143if test "${ac_cv_path_javagdbm_cv_path_java+set}" = set; then
4144 echo $ECHO_N "(cached) $ECHO_C" >&6
4145else
4146 case $javagdbm_cv_path_java in
4147 [\\/]* | ?:[\\/]*)
4148 ac_cv_path_javagdbm_cv_path_java="$javagdbm_cv_path_java" # Let the user override the test with a path.
4149 ;;
4150 *)
4151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4152for as_dir in $PATH
4153do
4154 IFS=$as_save_IFS
4155 test -z "$as_dir" && as_dir=.
4156 for ac_exec_ext in '' $ac_executable_extensions; do
4157 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4158 ac_cv_path_javagdbm_cv_path_java="$as_dir/$ac_word$ac_exec_ext"
4159 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4160 break 2
4161 fi
4162done
4163done
4164
4165 test -z "$ac_cv_path_javagdbm_cv_path_java" && ac_cv_path_javagdbm_cv_path_java="missing"
4166 ;;
4167esac
4168fi
4169javagdbm_cv_path_java=$ac_cv_path_javagdbm_cv_path_java
4170
4171if test -n "$javagdbm_cv_path_java"; then
4172 echo "$as_me:$LINENO: result: $javagdbm_cv_path_java" >&5
4173echo "${ECHO_T}$javagdbm_cv_path_java" >&6
4174else
4175 echo "$as_me:$LINENO: result: no" >&5
4176echo "${ECHO_T}no" >&6
4177fi
4178
4179if test "$javagdbm_cv_path_java" = missing; then
4180 { { echo "$as_me:$LINENO: error: java not found." >&5
4181echo "$as_me: error: java not found." >&2;}
4182 { (exit 1); exit 1; }; }
4183fi
4184
4185# check for gdbm library
4186echo "$as_me:$LINENO: checking for gdbm_open in -lgdbm" >&5
4187echo $ECHO_N "checking for gdbm_open in -lgdbm... $ECHO_C" >&6
4188if test "${ac_cv_lib_gdbm_gdbm_open+set}" = set; then
4189 echo $ECHO_N "(cached) $ECHO_C" >&6
4190else
4191 ac_check_lib_save_LIBS=$LIBS
4192LIBS="-lgdbm $LIBS"
4193cat >conftest.$ac_ext <<_ACEOF
4194/* confdefs.h. */
4195_ACEOF
4196cat confdefs.h >>conftest.$ac_ext
4197cat >>conftest.$ac_ext <<_ACEOF
4198/* end confdefs.h. */
4199
4200/* Override any gcc2 internal prototype to avoid an error. */
4201#ifdef __cplusplus
4202extern "C"
4203#endif
4204/* We use char because int might match the return type of a gcc2
4205 builtin and then its argument prototype would still apply. */
4206char gdbm_open ();
4207int
4208main ()
4209{
4210gdbm_open ();
4211 ;
4212 return 0;
4213}
4214_ACEOF
4215rm -f conftest.$ac_objext conftest$ac_exeext
4216if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4217 (eval $ac_link) 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_exeext'
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_cv_lib_gdbm_gdbm_open=yes
4238else
4239 echo "$as_me: failed program was:" >&5
4240sed 's/^/| /' conftest.$ac_ext >&5
4241
4242ac_cv_lib_gdbm_gdbm_open=no
4243fi
4244rm -f conftest.err conftest.$ac_objext \
4245 conftest$ac_exeext conftest.$ac_ext
4246LIBS=$ac_check_lib_save_LIBS
4247fi
4248echo "$as_me:$LINENO: result: $ac_cv_lib_gdbm_gdbm_open" >&5
4249echo "${ECHO_T}$ac_cv_lib_gdbm_gdbm_open" >&6
4250if test $ac_cv_lib_gdbm_gdbm_open = yes; then
4251 javagdbm_cv_lib_gdbm="-lgdbm"
4252else
4253 javagdbm_cv_lib_gdbm=no
4254fi
4255
4256if test "$javagdbm_cv_lib_gdbm" = "no"; then
4257 { { echo "$as_me:$LINENO: error: no native gdbm library found." >&5
4258echo "$as_me: error: no native gdbm library found." >&2;}
4259 { (exit 1); exit 1; }; }
4260fi
4261LIBS="$javagdbm_cv_lib_gdbm"
4262
4263########## set compiler options
4264# TODO: is there a more appropriate way to guess which switches to use
4265# with which systems/compilers?
4266CFLAGS="-Wall -O2 -fpic"
4267PKG="au.com.pharos.gdbm"
4268
4269
4270
4271
4272# we need to set an extended JNI path for Mac OS/Darwin, as jni.h is on
4273# a non-standard Path
4274echo "$as_me:$LINENO: checking for Apple MacOS X/Darwin" >&5
4275echo $ECHO_N "checking for Apple MacOS X/Darwin... $ECHO_C" >&6
4276if test "`(uname -s) 2> /dev/null`" = 'Darwin'; then
4277 echo "$as_me:$LINENO: result: yes" >&5
4278echo "${ECHO_T}yes" >&6
4279 JNIINC="-I/System/Library/Frameworks/JavaVM.framework/Headers/ "
4280 JNISUFFIX="jnilib"
4281 JNIFLAGS="-dynamiclib -fno-common"
4282 LDFLAGS="-framework JavaVM"
4283else
4284 echo "$as_me:$LINENO: result: no" >&5
4285echo "${ECHO_T}no" >&6
4286 JNIINC=""
4287 JNISUFFIX="so"
4288 JNIFLAGS="-shared"
4289fi
4290
4291
4292
4293
4294# write the output
4295 ac_config_files="$ac_config_files Makefile jni/Makefile java/Makefile"
4296cat >confcache <<\_ACEOF
4297# This file is a shell script that caches the results of configure
4298# tests run on this system so they can be shared between configure
4299# scripts and configure runs, see configure's option --config-cache.
4300# It is not useful on other systems. If it contains results you don't
4301# want to keep, you may remove or edit it.
4302#
4303# config.status only pays attention to the cache file if you give it
4304# the --recheck option to rerun configure.
4305#
4306# `ac_cv_env_foo' variables (set or unset) will be overridden when
4307# loading this file, other *unset* `ac_cv_foo' will be assigned the
4308# following values.
4309
4310_ACEOF
4311
4312# The following way of writing the cache mishandles newlines in values,
4313# but we know of no workaround that is simple, portable, and efficient.
4314# So, don't put newlines in cache variables' values.
4315# Ultrix sh set writes to stderr and can't be redirected directly,
4316# and sets the high bit in the cache file unless we assign to the vars.
4317{
4318 (set) 2>&1 |
4319 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4320 *ac_space=\ *)
4321 # `set' does not quote correctly, so add quotes (double-quote
4322 # substitution turns \\\\ into \\, and sed turns \\ into \).
4323 sed -n \
4324 "s/'/'\\\\''/g;
4325 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4326 ;;
4327 *)
4328 # `set' quotes correctly as required by POSIX, so do not add quotes.
4329 sed -n \
4330 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4331 ;;
4332 esac;
4333} |
4334 sed '
4335 t clear
4336 : clear
4337 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4338 t end
4339 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4340 : end' >>confcache
4341if diff $cache_file confcache >/dev/null 2>&1; then :; else
4342 if test -w $cache_file; then
4343 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4344 cat confcache >$cache_file
4345 else
4346 echo "not updating unwritable cache $cache_file"
4347 fi
4348fi
4349rm -f confcache
4350
4351test "x$prefix" = xNONE && prefix=$ac_default_prefix
4352# Let make expand exec_prefix.
4353test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4354
4355# VPATH may cause trouble with some makes, so we remove $(srcdir),
4356# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4357# trailing colons and then remove the whole line if VPATH becomes empty
4358# (actually we leave an empty line to preserve line numbers).
4359if test "x$srcdir" = x.; then
4360 ac_vpsub='/^[ ]*VPATH[ ]*=/{
4361s/:*\$(srcdir):*/:/;
4362s/:*\${srcdir}:*/:/;
4363s/:*@srcdir@:*/:/;
4364s/^\([^=]*=[ ]*\):*/\1/;
4365s/:*$//;
4366s/^[^=]*=[ ]*$//;
4367}'
4368fi
4369
4370# Transform confdefs.h into DEFS.
4371# Protect against shell expansion while executing Makefile rules.
4372# Protect against Makefile macro expansion.
4373#
4374# If the first sed substitution is executed (which looks for macros that
4375# take arguments), then we branch to the quote section. Otherwise,
4376# look for a macro that doesn't take arguments.
4377cat >confdef2opt.sed <<\_ACEOF
4378t clear
4379: clear
4380s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
4381t quote
4382s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
4383t quote
4384d
4385: quote
4386s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
4387s,\[,\\&,g
4388s,\],\\&,g
4389s,\$,$$,g
4390p
4391_ACEOF
4392# We use echo to avoid assuming a particular line-breaking character.
4393# The extra dot is to prevent the shell from consuming trailing
4394# line-breaks from the sub-command output. A line-break within
4395# single-quotes doesn't work because, if this script is created in a
4396# platform that uses two characters for line-breaks (e.g., DOS), tr
4397# would break.
4398ac_LF_and_DOT=`echo; echo .`
4399DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
4400rm -f confdef2opt.sed
4401
4402
4403ac_libobjs=
4404ac_ltlibobjs=
4405for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4406 # 1. Remove the extension, and $U if already installed.
4407 ac_i=`echo "$ac_i" |
4408 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
4409 # 2. Add them.
4410 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
4411 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
4412done
4413LIBOBJS=$ac_libobjs
4414
4415LTLIBOBJS=$ac_ltlibobjs
4416
4417
4418
4419: ${CONFIG_STATUS=./config.status}
4420ac_clean_files_save=$ac_clean_files
4421ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4422{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
4423echo "$as_me: creating $CONFIG_STATUS" >&6;}
4424cat >$CONFIG_STATUS <<_ACEOF
4425#! $SHELL
4426# Generated by $as_me.
4427# Run this file to recreate the current configuration.
4428# Compiler output produced by configure, useful for debugging
4429# configure, is in config.log if it exists.
4430
4431debug=false
4432ac_cs_recheck=false
4433ac_cs_silent=false
4434SHELL=\${CONFIG_SHELL-$SHELL}
4435_ACEOF
4436
4437cat >>$CONFIG_STATUS <<\_ACEOF
4438## --------------------- ##
4439## M4sh Initialization. ##
4440## --------------------- ##
4441
4442# Be Bourne compatible
4443if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
4444 emulate sh
4445 NULLCMD=:
4446 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
4447 # is contrary to our usage. Disable this feature.
4448 alias -g '${1+"$@"}'='"$@"'
4449elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
4450 set -o posix
4451fi
4452DUALCASE=1; export DUALCASE # for MKS sh
4453
4454# Support unset when possible.
4455if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4456 as_unset=unset
4457else
4458 as_unset=false
4459fi
4460
4461
4462# Work around bugs in pre-3.0 UWIN ksh.
4463$as_unset ENV MAIL MAILPATH
4464PS1='$ '
4465PS2='> '
4466PS4='+ '
4467
4468# NLS nuisances.
4469for as_var in \
4470 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
4471 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
4472 LC_TELEPHONE LC_TIME
4473do
4474 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
4475 eval $as_var=C; export $as_var
4476 else
4477 $as_unset $as_var
4478 fi
4479done
4480
4481# Required to use basename.
4482if expr a : '\(a\)' >/dev/null 2>&1; then
4483 as_expr=expr
4484else
4485 as_expr=false
4486fi
4487
4488if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
4489 as_basename=basename
4490else
4491 as_basename=false
4492fi
4493
4494
4495# Name of the executable.
4496as_me=`$as_basename "$0" ||
4497$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4498 X"$0" : 'X\(//\)$' \| \
4499 X"$0" : 'X\(/\)$' \| \
4500 . : '\(.\)' 2>/dev/null ||
4501echo X/"$0" |
4502 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
4503 /^X\/\(\/\/\)$/{ s//\1/; q; }
4504 /^X\/\(\/\).*/{ s//\1/; q; }
4505 s/.*/./; q'`
4506
4507
4508# PATH needs CR, and LINENO needs CR and PATH.
4509# Avoid depending upon Character Ranges.
4510as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4511as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4512as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4513as_cr_digits='0123456789'
4514as_cr_alnum=$as_cr_Letters$as_cr_digits
4515
4516# The user is always right.
4517if test "${PATH_SEPARATOR+set}" != set; then
4518 echo "#! /bin/sh" >conf$$.sh
4519 echo "exit 0" >>conf$$.sh
4520 chmod +x conf$$.sh
4521 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4522 PATH_SEPARATOR=';'
4523 else
4524 PATH_SEPARATOR=:
4525 fi
4526 rm -f conf$$.sh
4527fi
4528
4529
4530 as_lineno_1=$LINENO
4531 as_lineno_2=$LINENO
4532 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4533 test "x$as_lineno_1" != "x$as_lineno_2" &&
4534 test "x$as_lineno_3" = "x$as_lineno_2" || {
4535 # Find who we are. Look in the path if we contain no path at all
4536 # relative or not.
4537 case $0 in
4538 *[\\/]* ) as_myself=$0 ;;
4539 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4540for as_dir in $PATH
4541do
4542 IFS=$as_save_IFS
4543 test -z "$as_dir" && as_dir=.
4544 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4545done
4546
4547 ;;
4548 esac
4549 # We did not find ourselves, most probably we were run as `sh COMMAND'
4550 # in which case we are not to be found in the path.
4551 if test "x$as_myself" = x; then
4552 as_myself=$0
4553 fi
4554 if test ! -f "$as_myself"; then
4555 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
4556echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
4557 { (exit 1); exit 1; }; }
4558 fi
4559 case $CONFIG_SHELL in
4560 '')
4561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4562for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
4563do
4564 IFS=$as_save_IFS
4565 test -z "$as_dir" && as_dir=.
4566 for as_base in sh bash ksh sh5; do
4567 case $as_dir in
4568 /*)
4569 if ("$as_dir/$as_base" -c '
4570 as_lineno_1=$LINENO
4571 as_lineno_2=$LINENO
4572 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4573 test "x$as_lineno_1" != "x$as_lineno_2" &&
4574 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
4575 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
4576 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
4577 CONFIG_SHELL=$as_dir/$as_base
4578 export CONFIG_SHELL
4579 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
4580 fi;;
4581 esac
4582 done
4583done
4584;;
4585 esac
4586
4587 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
4588 # uniformly replaced by the line number. The first 'sed' inserts a
4589 # line-number line before each line; the second 'sed' does the real
4590 # work. The second script uses 'N' to pair each line-number line
4591 # with the numbered line, and appends trailing '-' during
4592 # substitution so that $LINENO is not a special case at line end.
4593 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
4594 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
4595 sed '=' <$as_myself |
4596 sed '
4597 N
4598 s,$,-,
4599 : loop
4600 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
4601 t loop
4602 s,-$,,
4603 s,^['$as_cr_digits']*\n,,
4604 ' >$as_me.lineno &&
4605 chmod +x $as_me.lineno ||
4606 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
4607echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
4608 { (exit 1); exit 1; }; }
4609
4610 # Don't try to exec as it changes $[0], causing all sort of problems
4611 # (the dirname of $[0] is not the place where we might find the
4612 # original and so on. Autoconf is especially sensible to this).
4613 . ./$as_me.lineno
4614 # Exit status is that of the last command.
4615 exit
4616}
4617
4618
4619case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
4620 *c*,-n*) ECHO_N= ECHO_C='
4621' ECHO_T=' ' ;;
4622 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
4623 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
4624esac
4625
4626if expr a : '\(a\)' >/dev/null 2>&1; then
4627 as_expr=expr
4628else
4629 as_expr=false
4630fi
4631
4632rm -f conf$$ conf$$.exe conf$$.file
4633echo >conf$$.file
4634if ln -s conf$$.file conf$$ 2>/dev/null; then
4635 # We could just check for DJGPP; but this test a) works b) is more generic
4636 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
4637 if test -f conf$$.exe; then
4638 # Don't use ln at all; we don't have any links
4639 as_ln_s='cp -p'
4640 else
4641 as_ln_s='ln -s'
4642 fi
4643elif ln conf$$.file conf$$ 2>/dev/null; then
4644 as_ln_s=ln
4645else
4646 as_ln_s='cp -p'
4647fi
4648rm -f conf$$ conf$$.exe conf$$.file
4649
4650if mkdir -p . 2>/dev/null; then
4651 as_mkdir_p=:
4652else
4653 test -d ./-p && rmdir ./-p
4654 as_mkdir_p=false
4655fi
4656
4657as_executable_p="test -f"
4658
4659# Sed expression to map a string onto a valid CPP name.
4660as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4661
4662# Sed expression to map a string onto a valid variable name.
4663as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4664
4665
4666# IFS
4667# We need space, tab and new line, in precisely that order.
4668as_nl='
4669'
4670IFS=" $as_nl"
4671
4672# CDPATH.
4673$as_unset CDPATH
4674
4675exec 6>&1
4676
4677# Open the log real soon, to keep \$[0] and so on meaningful, and to
4678# report actual input values of CONFIG_FILES etc. instead of their
4679# values after options handling. Logging --version etc. is OK.
4680exec 5>>config.log
4681{
4682 echo
4683 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4684## Running $as_me. ##
4685_ASBOX
4686} >&5
4687cat >&5 <<_CSEOF
4688
4689This file was extended by $as_me, which was
4690generated by GNU Autoconf 2.59. Invocation command line was
4691
4692 CONFIG_FILES = $CONFIG_FILES
4693 CONFIG_HEADERS = $CONFIG_HEADERS
4694 CONFIG_LINKS = $CONFIG_LINKS
4695 CONFIG_COMMANDS = $CONFIG_COMMANDS
4696 $ $0 $@
4697
4698_CSEOF
4699echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
4700echo >&5
4701_ACEOF
4702
4703# Files that config.status was made for.
4704if test -n "$ac_config_files"; then
4705 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
4706fi
4707
4708if test -n "$ac_config_headers"; then
4709 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
4710fi
4711
4712if test -n "$ac_config_links"; then
4713 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
4714fi
4715
4716if test -n "$ac_config_commands"; then
4717 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
4718fi
4719
4720cat >>$CONFIG_STATUS <<\_ACEOF
4721
4722ac_cs_usage="\
4723\`$as_me' instantiates files from templates according to the
4724current configuration.
4725
4726Usage: $0 [OPTIONS] [FILE]...
4727
4728 -h, --help print this help, then exit
4729 -V, --version print version number, then exit
4730 -q, --quiet do not print progress messages
4731 -d, --debug don't remove temporary files
4732 --recheck update $as_me by reconfiguring in the same conditions
4733 --file=FILE[:TEMPLATE]
4734 instantiate the configuration file FILE
4735
4736Configuration files:
4737$config_files
4738
4739Report bugs to <[email protected]>."
4740_ACEOF
4741
4742cat >>$CONFIG_STATUS <<_ACEOF
4743ac_cs_version="\\
4744config.status
4745configured by $0, generated by GNU Autoconf 2.59,
4746 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
4747
4748Copyright (C) 2003 Free Software Foundation, Inc.
4749This config.status script is free software; the Free Software Foundation
4750gives unlimited permission to copy, distribute and modify it."
4751srcdir=$srcdir
4752INSTALL="$INSTALL"
4753_ACEOF
4754
4755cat >>$CONFIG_STATUS <<\_ACEOF
4756# If no file are specified by the user, then we need to provide default
4757# value. By we need to know if files were specified by the user.
4758ac_need_defaults=:
4759while test $# != 0
4760do
4761 case $1 in
4762 --*=*)
4763 ac_option=`expr "x$1" : 'x\([^=]*\)='`
4764 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
4765 ac_shift=:
4766 ;;
4767 -*)
4768 ac_option=$1
4769 ac_optarg=$2
4770 ac_shift=shift
4771 ;;
4772 *) # This is not an option, so the user has probably given explicit
4773 # arguments.
4774 ac_option=$1
4775 ac_need_defaults=false;;
4776 esac
4777
4778 case $ac_option in
4779 # Handling of the options.
4780_ACEOF
4781cat >>$CONFIG_STATUS <<\_ACEOF
4782 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4783 ac_cs_recheck=: ;;
4784 --version | --vers* | -V )
4785 echo "$ac_cs_version"; exit 0 ;;
4786 --he | --h)
4787 # Conflict between --help and --header
4788 { { echo "$as_me:$LINENO: error: ambiguous option: $1
4789Try \`$0 --help' for more information." >&5
4790echo "$as_me: error: ambiguous option: $1
4791Try \`$0 --help' for more information." >&2;}
4792 { (exit 1); exit 1; }; };;
4793 --help | --hel | -h )
4794 echo "$ac_cs_usage"; exit 0 ;;
4795 --debug | --d* | -d )
4796 debug=: ;;
4797 --file | --fil | --fi | --f )
4798 $ac_shift
4799 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
4800 ac_need_defaults=false;;
4801 --header | --heade | --head | --hea )
4802 $ac_shift
4803 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
4804 ac_need_defaults=false;;
4805 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4806 | -silent | --silent | --silen | --sile | --sil | --si | --s)
4807 ac_cs_silent=: ;;
4808
4809 # This is an error.
4810 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
4811Try \`$0 --help' for more information." >&5
4812echo "$as_me: error: unrecognized option: $1
4813Try \`$0 --help' for more information." >&2;}
4814 { (exit 1); exit 1; }; } ;;
4815
4816 *) ac_config_targets="$ac_config_targets $1" ;;
4817
4818 esac
4819 shift
4820done
4821
4822ac_configure_extra_args=
4823
4824if $ac_cs_silent; then
4825 exec 6>/dev/null
4826 ac_configure_extra_args="$ac_configure_extra_args --silent"
4827fi
4828
4829_ACEOF
4830cat >>$CONFIG_STATUS <<_ACEOF
4831if \$ac_cs_recheck; then
4832 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
4833 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4834fi
4835
4836_ACEOF
4837
4838
4839
4840
4841
4842cat >>$CONFIG_STATUS <<\_ACEOF
4843for ac_config_target in $ac_config_targets
4844do
4845 case "$ac_config_target" in
4846 # Handling of arguments.
4847 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4848 "jni/Makefile" ) CONFIG_FILES="$CONFIG_FILES jni/Makefile" ;;
4849 "java/Makefile" ) CONFIG_FILES="$CONFIG_FILES java/Makefile" ;;
4850 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
4851echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
4852 { (exit 1); exit 1; }; };;
4853 esac
4854done
4855
4856# If the user did not use the arguments to specify the items to instantiate,
4857# then the envvar interface is used. Set only those that are not.
4858# We use the long form for the default assignment because of an extremely
4859# bizarre bug on SunOS 4.1.3.
4860if $ac_need_defaults; then
4861 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4862fi
4863
4864# Have a temporary directory for convenience. Make it in the build tree
4865# simply because there is no reason to put it here, and in addition,
4866# creating and moving files from /tmp can sometimes cause problems.
4867# Create a temporary directory, and hook for its removal unless debugging.
4868$debug ||
4869{
4870 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
4871 trap '{ (exit 1); exit 1; }' 1 2 13 15
4872}
4873
4874# Create a (secure) tmp directory for tmp files.
4875
4876{
4877 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
4878 test -n "$tmp" && test -d "$tmp"
4879} ||
4880{
4881 tmp=./confstat$$-$RANDOM
4882 (umask 077 && mkdir $tmp)
4883} ||
4884{
4885 echo "$me: cannot create a temporary directory in ." >&2
4886 { (exit 1); exit 1; }
4887}
4888
4889_ACEOF
4890
4891cat >>$CONFIG_STATUS <<_ACEOF
4892
4893#
4894# CONFIG_FILES section.
4895#
4896
4897# No need to generate the scripts if there are no CONFIG_FILES.
4898# This happens for instance when ./config.status config.h
4899if test -n "\$CONFIG_FILES"; then
4900 # Protect against being on the right side of a sed subst in config.status.
4901 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
4902 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
4903s,@SHELL@,$SHELL,;t t
4904s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
4905s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
4906s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
4907s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
4908s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
4909s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
4910s,@exec_prefix@,$exec_prefix,;t t
4911s,@prefix@,$prefix,;t t
4912s,@program_transform_name@,$program_transform_name,;t t
4913s,@bindir@,$bindir,;t t
4914s,@sbindir@,$sbindir,;t t
4915s,@libexecdir@,$libexecdir,;t t
4916s,@datadir@,$datadir,;t t
4917s,@sysconfdir@,$sysconfdir,;t t
4918s,@sharedstatedir@,$sharedstatedir,;t t
4919s,@localstatedir@,$localstatedir,;t t
4920s,@libdir@,$libdir,;t t
4921s,@includedir@,$includedir,;t t
4922s,@oldincludedir@,$oldincludedir,;t t
4923s,@infodir@,$infodir,;t t
4924s,@mandir@,$mandir,;t t
4925s,@build_alias@,$build_alias,;t t
4926s,@host_alias@,$host_alias,;t t
4927s,@target_alias@,$target_alias,;t t
4928s,@DEFS@,$DEFS,;t t
4929s,@ECHO_C@,$ECHO_C,;t t
4930s,@ECHO_N@,$ECHO_N,;t t
4931s,@ECHO_T@,$ECHO_T,;t t
4932s,@LIBS@,$LIBS,;t t
4933s,@CC@,$CC,;t t
4934s,@CFLAGS@,$CFLAGS,;t t
4935s,@LDFLAGS@,$LDFLAGS,;t t
4936s,@CPPFLAGS@,$CPPFLAGS,;t t
4937s,@ac_ct_CC@,$ac_ct_CC,;t t
4938s,@EXEEXT@,$EXEEXT,;t t
4939s,@OBJEXT@,$OBJEXT,;t t
4940s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
4941s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
4942s,@INSTALL_DATA@,$INSTALL_DATA,;t t
4943s,@LN_S@,$LN_S,;t t
4944s,@CPP@,$CPP,;t t
4945s,@EGREP@,$EGREP,;t t
4946s,@JAVA_HOME@,$JAVA_HOME,;t t
4947s,@javagdbm_cv_path_javah@,$javagdbm_cv_path_javah,;t t
4948s,@javagdbm_cv_path_java@,$javagdbm_cv_path_java,;t t
4949s,@PKG@,$PKG,;t t
4950s,@JNIINC@,$JNIINC,;t t
4951s,@JNISUFFIX@,$JNISUFFIX,;t t
4952s,@JNIFLAGS@,$JNIFLAGS,;t t
4953s,@LIBOBJS@,$LIBOBJS,;t t
4954s,@LTLIBOBJS@,$LTLIBOBJS,;t t
4955CEOF
4956
4957_ACEOF
4958
4959 cat >>$CONFIG_STATUS <<\_ACEOF
4960 # Split the substitutions into bite-sized pieces for seds with
4961 # small command number limits, like on Digital OSF/1 and HP-UX.
4962 ac_max_sed_lines=48
4963 ac_sed_frag=1 # Number of current file.
4964 ac_beg=1 # First line for current file.
4965 ac_end=$ac_max_sed_lines # Line after last line for current file.
4966 ac_more_lines=:
4967 ac_sed_cmds=
4968 while $ac_more_lines; do
4969 if test $ac_beg -gt 1; then
4970 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4971 else
4972 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4973 fi
4974 if test ! -s $tmp/subs.frag; then
4975 ac_more_lines=false
4976 else
4977 # The purpose of the label and of the branching condition is to
4978 # speed up the sed processing (if there are no `@' at all, there
4979 # is no need to browse any of the substitutions).
4980 # These are the two extra sed commands mentioned above.
4981 (echo ':t
4982 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
4983 if test -z "$ac_sed_cmds"; then
4984 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
4985 else
4986 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
4987 fi
4988 ac_sed_frag=`expr $ac_sed_frag + 1`
4989 ac_beg=$ac_end
4990 ac_end=`expr $ac_end + $ac_max_sed_lines`
4991 fi
4992 done
4993 if test -z "$ac_sed_cmds"; then
4994 ac_sed_cmds=cat
4995 fi
4996fi # test -n "$CONFIG_FILES"
4997
4998_ACEOF
4999cat >>$CONFIG_STATUS <<\_ACEOF
5000for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
5001 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5002 case $ac_file in
5003 - | *:- | *:-:* ) # input from stdin
5004 cat >$tmp/stdin
5005 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5006 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5007 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5008 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5009 * ) ac_file_in=$ac_file.in ;;
5010 esac
5011
5012 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
5013 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5014$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5015 X"$ac_file" : 'X\(//\)[^/]' \| \
5016 X"$ac_file" : 'X\(//\)$' \| \
5017 X"$ac_file" : 'X\(/\)' \| \
5018 . : '\(.\)' 2>/dev/null ||
5019echo X"$ac_file" |
5020 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5021 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5022 /^X\(\/\/\)$/{ s//\1/; q; }
5023 /^X\(\/\).*/{ s//\1/; q; }
5024 s/.*/./; q'`
5025 { if $as_mkdir_p; then
5026 mkdir -p "$ac_dir"
5027 else
5028 as_dir="$ac_dir"
5029 as_dirs=
5030 while test ! -d "$as_dir"; do
5031 as_dirs="$as_dir $as_dirs"
5032 as_dir=`(dirname "$as_dir") 2>/dev/null ||
5033$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5034 X"$as_dir" : 'X\(//\)[^/]' \| \
5035 X"$as_dir" : 'X\(//\)$' \| \
5036 X"$as_dir" : 'X\(/\)' \| \
5037 . : '\(.\)' 2>/dev/null ||
5038echo X"$as_dir" |
5039 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5040 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5041 /^X\(\/\/\)$/{ s//\1/; q; }
5042 /^X\(\/\).*/{ s//\1/; q; }
5043 s/.*/./; q'`
5044 done
5045 test ! -n "$as_dirs" || mkdir $as_dirs
5046 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5047echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5048 { (exit 1); exit 1; }; }; }
5049
5050 ac_builddir=.
5051
5052if test "$ac_dir" != .; then
5053 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5054 # A "../" for each directory in $ac_dir_suffix.
5055 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5056else
5057 ac_dir_suffix= ac_top_builddir=
5058fi
5059
5060case $srcdir in
5061 .) # No --srcdir option. We are building in place.
5062 ac_srcdir=.
5063 if test -z "$ac_top_builddir"; then
5064 ac_top_srcdir=.
5065 else
5066 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5067 fi ;;
5068 [\\/]* | ?:[\\/]* ) # Absolute path.
5069 ac_srcdir=$srcdir$ac_dir_suffix;
5070 ac_top_srcdir=$srcdir ;;
5071 *) # Relative path.
5072 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5073 ac_top_srcdir=$ac_top_builddir$srcdir ;;
5074esac
5075
5076# Do not use `cd foo && pwd` to compute absolute paths, because
5077# the directories may not exist.
5078case `pwd` in
5079.) ac_abs_builddir="$ac_dir";;
5080*)
5081 case "$ac_dir" in
5082 .) ac_abs_builddir=`pwd`;;
5083 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
5084 *) ac_abs_builddir=`pwd`/"$ac_dir";;
5085 esac;;
5086esac
5087case $ac_abs_builddir in
5088.) ac_abs_top_builddir=${ac_top_builddir}.;;
5089*)
5090 case ${ac_top_builddir}. in
5091 .) ac_abs_top_builddir=$ac_abs_builddir;;
5092 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
5093 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
5094 esac;;
5095esac
5096case $ac_abs_builddir in
5097.) ac_abs_srcdir=$ac_srcdir;;
5098*)
5099 case $ac_srcdir in
5100 .) ac_abs_srcdir=$ac_abs_builddir;;
5101 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
5102 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
5103 esac;;
5104esac
5105case $ac_abs_builddir in
5106.) ac_abs_top_srcdir=$ac_top_srcdir;;
5107*)
5108 case $ac_top_srcdir in
5109 .) ac_abs_top_srcdir=$ac_abs_builddir;;
5110 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
5111 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
5112 esac;;
5113esac
5114
5115
5116 case $INSTALL in
5117 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5118 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
5119 esac
5120
5121 if test x"$ac_file" != x-; then
5122 { echo "$as_me:$LINENO: creating $ac_file" >&5
5123echo "$as_me: creating $ac_file" >&6;}
5124 rm -f "$ac_file"
5125 fi
5126 # Let's still pretend it is `configure' which instantiates (i.e., don't
5127 # use $as_me), people would be surprised to read:
5128 # /* config.h. Generated by config.status. */
5129 if test x"$ac_file" = x-; then
5130 configure_input=
5131 else
5132 configure_input="$ac_file. "
5133 fi
5134 configure_input=$configure_input"Generated from `echo $ac_file_in |
5135 sed 's,.*/,,'` by configure."
5136
5137 # First look for the input files in the build tree, otherwise in the
5138 # src tree.
5139 ac_file_inputs=`IFS=:
5140 for f in $ac_file_in; do
5141 case $f in
5142 -) echo $tmp/stdin ;;
5143 [\\/$]*)
5144 # Absolute (can't be DOS-style, as IFS=:)
5145 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5146echo "$as_me: error: cannot find input file: $f" >&2;}
5147 { (exit 1); exit 1; }; }
5148 echo "$f";;
5149 *) # Relative
5150 if test -f "$f"; then
5151 # Build tree
5152 echo "$f"
5153 elif test -f "$srcdir/$f"; then
5154 # Source tree
5155 echo "$srcdir/$f"
5156 else
5157 # /dev/null tree
5158 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5159echo "$as_me: error: cannot find input file: $f" >&2;}
5160 { (exit 1); exit 1; }; }
5161 fi;;
5162 esac
5163 done` || { (exit 1); exit 1; }
5164_ACEOF
5165cat >>$CONFIG_STATUS <<_ACEOF
5166 sed "$ac_vpsub
5167$extrasub
5168_ACEOF
5169cat >>$CONFIG_STATUS <<\_ACEOF
5170:t
5171/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5172s,@configure_input@,$configure_input,;t t
5173s,@srcdir@,$ac_srcdir,;t t
5174s,@abs_srcdir@,$ac_abs_srcdir,;t t
5175s,@top_srcdir@,$ac_top_srcdir,;t t
5176s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
5177s,@builddir@,$ac_builddir,;t t
5178s,@abs_builddir@,$ac_abs_builddir,;t t
5179s,@top_builddir@,$ac_top_builddir,;t t
5180s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
5181s,@INSTALL@,$ac_INSTALL,;t t
5182" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
5183 rm -f $tmp/stdin
5184 if test x"$ac_file" != x-; then
5185 mv $tmp/out $ac_file
5186 else
5187 cat $tmp/out
5188 rm -f $tmp/out
5189 fi
5190
5191done
5192_ACEOF
5193
5194cat >>$CONFIG_STATUS <<\_ACEOF
5195
5196{ (exit 0); exit 0; }
5197_ACEOF
5198chmod +x $CONFIG_STATUS
5199ac_clean_files=$ac_clean_files_save
5200
5201
5202# configure is writing to config.log, and then calls config.status.
5203# config.status does its own redirection, appending to config.log.
5204# Unfortunately, on DOS this fails, as config.log is still kept open
5205# by configure, so config.status won't be able to write to it; its
5206# output is simply discarded. So we exec the FD to /dev/null,
5207# effectively closing config.log, so it can be properly (re)opened and
5208# appended to by config.status. When coming back to configure, we
5209# need to make the FD available again.
5210if test "$no_create" != yes; then
5211 ac_cs_success=:
5212 ac_config_status_args=
5213 test "$silent" = yes &&
5214 ac_config_status_args="$ac_config_status_args --quiet"
5215 exec 5>/dev/null
5216 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5217 exec 5>>config.log
5218 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5219 # would make configure fail if this is the last instruction.
5220 $ac_cs_success || { (exit 1); exit 1; }
5221fi
5222
Note: See TracBrowser for help on using the repository browser.