Annotation of parser3/configure, revision 1.64
1.1 paf 1: #! /bin/sh
2: # Guess values for system-dependent variables and create Makefiles.
1.62 paf 3: # Generated by GNU Autoconf 2.57.
1.1 paf 4: #
1.62 paf 5: # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6: # Free Software Foundation, Inc.
1.1 paf 7: # This configure script is free software; the Free Software Foundation
8: # gives unlimited permission to copy, distribute and modify it.
1.62 paf 9: ## --------------------- ##
10: ## M4sh Initialization. ##
11: ## --------------------- ##
12:
13: # Be Bourne compatible
14: if 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+"$@"}'='"$@"'
20: elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21: set -o posix
22: fi
23:
24: # Support unset when possible.
25: if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
26: as_unset=unset
27: else
28: as_unset=false
29: fi
30:
31:
32: # Work around bugs in pre-3.0 UWIN ksh.
33: $as_unset ENV MAIL MAILPATH
34: PS1='$ '
35: PS2='> '
36: PS4='+ '
37:
38: # NLS nuisances.
39: for as_var in \
40: LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41: LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42: LC_TELEPHONE LC_TIME
43: do
44: if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
45: eval $as_var=C; export $as_var
46: else
47: $as_unset $as_var
48: fi
49: done
50:
51: # Required to use basename.
52: if expr a : '\(a\)' >/dev/null 2>&1; then
53: as_expr=expr
54: else
55: as_expr=false
56: fi
57:
58: if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59: as_basename=basename
60: else
61: as_basename=false
62: fi
63:
64:
65: # Name of the executable.
66: as_me=`$as_basename "$0" ||
67: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68: X"$0" : 'X\(//\)$' \| \
69: X"$0" : 'X\(/\)$' \| \
70: . : '\(.\)' 2>/dev/null ||
71: echo X/"$0" |
72: sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73: /^X\/\(\/\/\)$/{ s//\1/; q; }
74: /^X\/\(\/\).*/{ s//\1/; q; }
75: s/.*/./; q'`
76:
77:
78: # PATH needs CR, and LINENO needs CR and PATH.
79: # Avoid depending upon Character Ranges.
80: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83: as_cr_digits='0123456789'
84: as_cr_alnum=$as_cr_Letters$as_cr_digits
85:
86: # The user is always right.
87: if test "${PATH_SEPARATOR+set}" != set; then
88: echo "#! /bin/sh" >conf$$.sh
89: echo "exit 0" >>conf$$.sh
90: chmod +x conf$$.sh
91: if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92: PATH_SEPARATOR=';'
93: else
94: PATH_SEPARATOR=:
95: fi
96: rm -f conf$$.sh
97: fi
98:
99:
100: as_lineno_1=$LINENO
101: as_lineno_2=$LINENO
102: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103: test "x$as_lineno_1" != "x$as_lineno_2" &&
104: test "x$as_lineno_3" = "x$as_lineno_2" || {
105: # Find who we are. Look in the path if we contain no path at all
106: # relative or not.
107: case $0 in
108: *[\\/]* ) as_myself=$0 ;;
109: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110: for as_dir in $PATH
111: do
112: IFS=$as_save_IFS
113: test -z "$as_dir" && as_dir=.
114: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115: done
116:
117: ;;
118: esac
119: # We did not find ourselves, most probably we were run as `sh COMMAND'
120: # in which case we are not to be found in the path.
121: if test "x$as_myself" = x; then
122: as_myself=$0
123: fi
124: if test ! -f "$as_myself"; then
125: { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126: { (exit 1); exit 1; }; }
127: fi
128: case $CONFIG_SHELL in
129: '')
130: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132: do
133: IFS=$as_save_IFS
134: test -z "$as_dir" && as_dir=.
135: for as_base in sh bash ksh sh5; do
136: case $as_dir in
137: /*)
138: if ("$as_dir/$as_base" -c '
139: as_lineno_1=$LINENO
140: as_lineno_2=$LINENO
141: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142: test "x$as_lineno_1" != "x$as_lineno_2" &&
143: test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144: $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145: $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146: CONFIG_SHELL=$as_dir/$as_base
147: export CONFIG_SHELL
148: exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149: fi;;
150: esac
151: done
152: done
153: ;;
154: esac
155:
156: # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157: # uniformly replaced by the line number. The first 'sed' inserts a
158: # line-number line before each line; the second 'sed' does the real
159: # work. The second script uses 'N' to pair each line-number line
160: # with the numbered line, and appends trailing '-' during
161: # substitution so that $LINENO is not a special case at line end.
162: # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163: # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164: sed '=' <$as_myself |
165: sed '
166: N
167: s,$,-,
168: : loop
169: s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170: t loop
171: s,-$,,
172: s,^['$as_cr_digits']*\n,,
173: ' >$as_me.lineno &&
174: chmod +x $as_me.lineno ||
175: { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176: { (exit 1); exit 1; }; }
177:
178: # Don't try to exec as it changes $[0], causing all sort of problems
179: # (the dirname of $[0] is not the place where we might find the
180: # original and so on. Autoconf is especially sensible to this).
181: . ./$as_me.lineno
182: # Exit status is that of the last command.
183: exit
184: }
185:
186:
187: case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188: *c*,-n*) ECHO_N= ECHO_C='
189: ' ECHO_T=' ' ;;
190: *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191: *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192: esac
193:
194: if expr a : '\(a\)' >/dev/null 2>&1; then
195: as_expr=expr
196: else
197: as_expr=false
198: fi
199:
200: rm -f conf$$ conf$$.exe conf$$.file
201: echo >conf$$.file
202: if ln -s conf$$.file conf$$ 2>/dev/null; then
203: # We could just check for DJGPP; but this test a) works b) is more generic
204: # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205: if test -f conf$$.exe; then
206: # Don't use ln at all; we don't have any links
207: as_ln_s='cp -p'
208: else
209: as_ln_s='ln -s'
210: fi
211: elif ln conf$$.file conf$$ 2>/dev/null; then
212: as_ln_s=ln
213: else
214: as_ln_s='cp -p'
215: fi
216: rm -f conf$$ conf$$.exe conf$$.file
217:
218: if mkdir -p . 2>/dev/null; then
219: as_mkdir_p=:
220: else
221: as_mkdir_p=false
222: fi
223:
224: as_executable_p="test -f"
225:
226: # Sed expression to map a string onto a valid CPP name.
227: as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
228:
229: # Sed expression to map a string onto a valid variable name.
230: as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
231:
232:
233: # IFS
234: # We need space, tab and new line, in precisely that order.
235: as_nl='
236: '
237: IFS=" $as_nl"
238:
239: # CDPATH.
240: $as_unset CDPATH
241:
1.1 paf 242:
1.62 paf 243: # Name of the host.
244: # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245: # so uname gets run too.
246: ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
247:
248: exec 6>&1
249:
250: #
251: # Initializations.
252: #
1.1 paf 253: ac_default_prefix=/usr/local
1.62 paf 254: ac_config_libobj_dir=.
255: cross_compiling=no
256: subdirs=
257: MFLAGS=
258: MAKEFLAGS=
259: SHELL=${CONFIG_SHELL-/bin/sh}
260:
261: # Maximum number of lines to put in a shell here document.
262: # This variable seems obsolete. It should probably be removed, and
263: # only ac_max_sed_lines should be used.
264: : ${ac_max_here_lines=38}
265:
266: # Identity of this package.
267: PACKAGE_NAME=
268: PACKAGE_TARNAME=
269: PACKAGE_VERSION=
270: PACKAGE_STRING=
271: PACKAGE_BUGREPORT=
272:
273: ac_unique_file="README"
274: ac_subdirs_all="$ac_subdirs_all src/lib/ltdl"
275: # Factoring default headers for most tests.
276: ac_includes_default="\
277: #include <stdio.h>
278: #if HAVE_SYS_TYPES_H
279: # include <sys/types.h>
280: #endif
281: #if HAVE_SYS_STAT_H
282: # include <sys/stat.h>
283: #endif
284: #if STDC_HEADERS
285: # include <stdlib.h>
286: # include <stddef.h>
287: #else
288: # if HAVE_STDLIB_H
289: # include <stdlib.h>
290: # endif
291: #endif
292: #if HAVE_STRING_H
293: # if !STDC_HEADERS && HAVE_MEMORY_H
294: # include <memory.h>
295: # endif
296: # include <string.h>
297: #endif
298: #if HAVE_STRINGS_H
299: # include <strings.h>
300: #endif
301: #if HAVE_INTTYPES_H
302: # include <inttypes.h>
303: #else
304: # if HAVE_STDINT_H
305: # include <stdint.h>
306: # endif
307: #endif
308: #if HAVE_UNISTD_H
309: # include <unistd.h>
310: #endif"
311:
312: ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE P3S build build_cpu build_vendor build_os host host_cpu host_vendor host_os RANLIB ac_ct_RANLIB YACC CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE commentcharset_windows1251 commentcharset_windows1250 commentcharset_windows1257 commentcharset_koi8r dll_extension mysql_client pgsql_client oracle_client DO_NOT_LINK_LIBSTDCPP_TRUE DO_NOT_LINK_LIBSTDCPP_FALSE XML_INCLUDES XML_LIBS MIME_INCLUDES MIME_LIBS APACHE13 COMPILE_APACHE13_MODULE_TRUE COMPILE_APACHE13_MODULE_FALSE INCLTDL LIBLTDL subdirs LIBADD_DL CXXCPP EGREP APACHE_LIBS charsetsdir sqldriversdir LIBOBJS LTLIBOBJS'
313: ac_subst_files=''
1.1 paf 314:
315: # Initialize some variables set by options.
1.62 paf 316: ac_init_help=
317: ac_init_version=false
1.1 paf 318: # The variables have the same names as the options, with
319: # dashes changed to underlines.
1.62 paf 320: cache_file=/dev/null
1.1 paf 321: exec_prefix=NONE
322: no_create=
323: no_recursion=
324: prefix=NONE
325: program_prefix=NONE
326: program_suffix=NONE
327: program_transform_name=s,x,x,
328: silent=
329: site=
330: srcdir=
331: verbose=
332: x_includes=NONE
333: x_libraries=NONE
1.62 paf 334:
335: # Installation directory options.
336: # These are left unexpanded so users can "make install exec_prefix=/foo"
337: # and all the variables that are supposed to be based on exec_prefix
338: # by default will actually change.
339: # Use braces instead of parens because sh, perl, etc. also accept them.
1.1 paf 340: bindir='${exec_prefix}/bin'
341: sbindir='${exec_prefix}/sbin'
342: libexecdir='${exec_prefix}/libexec'
343: datadir='${prefix}/share'
344: sysconfdir='${prefix}/etc'
345: sharedstatedir='${prefix}/com'
346: localstatedir='${prefix}/var'
347: libdir='${exec_prefix}/lib'
348: includedir='${prefix}/include'
349: oldincludedir='/usr/include'
350: infodir='${prefix}/info'
351: mandir='${prefix}/man'
352:
353: ac_prev=
354: for ac_option
355: do
356: # If the previous option needs an argument, assign it.
357: if test -n "$ac_prev"; then
358: eval "$ac_prev=\$ac_option"
359: ac_prev=
360: continue
361: fi
362:
1.62 paf 363: ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
1.1 paf 364:
365: # Accept the important Cygnus configure options, so we can diagnose typos.
366:
1.62 paf 367: case $ac_option in
1.1 paf 368:
369: -bindir | --bindir | --bindi | --bind | --bin | --bi)
370: ac_prev=bindir ;;
371: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1.62 paf 372: bindir=$ac_optarg ;;
1.1 paf 373:
374: -build | --build | --buil | --bui | --bu)
1.62 paf 375: ac_prev=build_alias ;;
1.1 paf 376: -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1.62 paf 377: build_alias=$ac_optarg ;;
1.1 paf 378:
379: -cache-file | --cache-file | --cache-fil | --cache-fi \
380: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381: ac_prev=cache_file ;;
382: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1.62 paf 384: cache_file=$ac_optarg ;;
385:
386: --config-cache | -C)
387: cache_file=config.cache ;;
1.1 paf 388:
389: -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390: ac_prev=datadir ;;
391: -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392: | --da=*)
1.62 paf 393: datadir=$ac_optarg ;;
1.1 paf 394:
395: -disable-* | --disable-*)
1.62 paf 396: ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1.1 paf 397: # Reject names that are not valid shell variable names.
1.62 paf 398: expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399: { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400: { (exit 1); exit 1; }; }
401: ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402: eval "enable_$ac_feature=no" ;;
1.1 paf 403:
404: -enable-* | --enable-*)
1.62 paf 405: ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1.1 paf 406: # Reject names that are not valid shell variable names.
1.62 paf 407: expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408: { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409: { (exit 1); exit 1; }; }
410: ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411: case $ac_option in
412: *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
1.1 paf 413: *) ac_optarg=yes ;;
414: esac
1.62 paf 415: eval "enable_$ac_feature='$ac_optarg'" ;;
1.1 paf 416:
417: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419: | --exec | --exe | --ex)
420: ac_prev=exec_prefix ;;
421: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423: | --exec=* | --exe=* | --ex=*)
1.62 paf 424: exec_prefix=$ac_optarg ;;
1.1 paf 425:
426: -gas | --gas | --ga | --g)
427: # Obsolete; use --with-gas.
428: with_gas=yes ;;
429:
1.62 paf 430: -help | --help | --hel | --he | -h)
431: ac_init_help=long ;;
432: -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433: ac_init_help=recursive ;;
434: -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435: ac_init_help=short ;;
1.1 paf 436:
437: -host | --host | --hos | --ho)
1.62 paf 438: ac_prev=host_alias ;;
1.1 paf 439: -host=* | --host=* | --hos=* | --ho=*)
1.62 paf 440: host_alias=$ac_optarg ;;
1.1 paf 441:
442: -includedir | --includedir | --includedi | --included | --include \
443: | --includ | --inclu | --incl | --inc)
444: ac_prev=includedir ;;
445: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446: | --includ=* | --inclu=* | --incl=* | --inc=*)
1.62 paf 447: includedir=$ac_optarg ;;
1.1 paf 448:
449: -infodir | --infodir | --infodi | --infod | --info | --inf)
450: ac_prev=infodir ;;
451: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1.62 paf 452: infodir=$ac_optarg ;;
1.1 paf 453:
454: -libdir | --libdir | --libdi | --libd)
455: ac_prev=libdir ;;
456: -libdir=* | --libdir=* | --libdi=* | --libd=*)
1.62 paf 457: libdir=$ac_optarg ;;
1.1 paf 458:
459: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460: | --libexe | --libex | --libe)
461: ac_prev=libexecdir ;;
462: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463: | --libexe=* | --libex=* | --libe=*)
1.62 paf 464: libexecdir=$ac_optarg ;;
1.1 paf 465:
466: -localstatedir | --localstatedir | --localstatedi | --localstated \
467: | --localstate | --localstat | --localsta | --localst \
468: | --locals | --local | --loca | --loc | --lo)
469: ac_prev=localstatedir ;;
470: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471: | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472: | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
1.62 paf 473: localstatedir=$ac_optarg ;;
1.1 paf 474:
475: -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476: ac_prev=mandir ;;
477: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1.62 paf 478: mandir=$ac_optarg ;;
1.1 paf 479:
480: -nfp | --nfp | --nf)
481: # Obsolete; use --without-fp.
482: with_fp=no ;;
483:
484: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1.62 paf 485: | --no-cr | --no-c | -n)
1.1 paf 486: no_create=yes ;;
487:
488: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490: no_recursion=yes ;;
491:
492: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494: | --oldin | --oldi | --old | --ol | --o)
495: ac_prev=oldincludedir ;;
496: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1.62 paf 499: oldincludedir=$ac_optarg ;;
1.1 paf 500:
501: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502: ac_prev=prefix ;;
503: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1.62 paf 504: prefix=$ac_optarg ;;
1.1 paf 505:
506: -program-prefix | --program-prefix | --program-prefi | --program-pref \
507: | --program-pre | --program-pr | --program-p)
508: ac_prev=program_prefix ;;
509: -program-prefix=* | --program-prefix=* | --program-prefi=* \
510: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1.62 paf 511: program_prefix=$ac_optarg ;;
1.1 paf 512:
513: -program-suffix | --program-suffix | --program-suffi | --program-suff \
514: | --program-suf | --program-su | --program-s)
515: ac_prev=program_suffix ;;
516: -program-suffix=* | --program-suffix=* | --program-suffi=* \
517: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1.62 paf 518: program_suffix=$ac_optarg ;;
1.1 paf 519:
520: -program-transform-name | --program-transform-name \
521: | --program-transform-nam | --program-transform-na \
522: | --program-transform-n | --program-transform- \
523: | --program-transform | --program-transfor \
524: | --program-transfo | --program-transf \
525: | --program-trans | --program-tran \
526: | --progr-tra | --program-tr | --program-t)
527: ac_prev=program_transform_name ;;
528: -program-transform-name=* | --program-transform-name=* \
529: | --program-transform-nam=* | --program-transform-na=* \
530: | --program-transform-n=* | --program-transform-=* \
531: | --program-transform=* | --program-transfor=* \
532: | --program-transfo=* | --program-transf=* \
533: | --program-trans=* | --program-tran=* \
534: | --progr-tra=* | --program-tr=* | --program-t=*)
1.62 paf 535: program_transform_name=$ac_optarg ;;
1.1 paf 536:
537: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538: | -silent | --silent | --silen | --sile | --sil)
539: silent=yes ;;
540:
541: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542: ac_prev=sbindir ;;
543: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544: | --sbi=* | --sb=*)
1.62 paf 545: sbindir=$ac_optarg ;;
1.1 paf 546:
547: -sharedstatedir | --sharedstatedir | --sharedstatedi \
548: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549: | --sharedst | --shareds | --shared | --share | --shar \
550: | --sha | --sh)
551: ac_prev=sharedstatedir ;;
552: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555: | --sha=* | --sh=*)
1.62 paf 556: sharedstatedir=$ac_optarg ;;
1.1 paf 557:
558: -site | --site | --sit)
559: ac_prev=site ;;
560: -site=* | --site=* | --sit=*)
1.62 paf 561: site=$ac_optarg ;;
1.1 paf 562:
563: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564: ac_prev=srcdir ;;
565: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1.62 paf 566: srcdir=$ac_optarg ;;
1.1 paf 567:
568: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569: | --syscon | --sysco | --sysc | --sys | --sy)
570: ac_prev=sysconfdir ;;
571: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1.62 paf 573: sysconfdir=$ac_optarg ;;
1.1 paf 574:
575: -target | --target | --targe | --targ | --tar | --ta | --t)
1.62 paf 576: ac_prev=target_alias ;;
1.1 paf 577: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1.62 paf 578: target_alias=$ac_optarg ;;
1.1 paf 579:
580: -v | -verbose | --verbose | --verbos | --verbo | --verb)
581: verbose=yes ;;
582:
1.62 paf 583: -version | --version | --versio | --versi | --vers | -V)
584: ac_init_version=: ;;
1.1 paf 585:
586: -with-* | --with-*)
1.62 paf 587: ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1.1 paf 588: # Reject names that are not valid shell variable names.
1.62 paf 589: expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590: { echo "$as_me: error: invalid package name: $ac_package" >&2
591: { (exit 1); exit 1; }; }
1.1 paf 592: ac_package=`echo $ac_package| sed 's/-/_/g'`
1.62 paf 593: case $ac_option in
594: *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
1.1 paf 595: *) ac_optarg=yes ;;
596: esac
1.62 paf 597: eval "with_$ac_package='$ac_optarg'" ;;
1.1 paf 598:
599: -without-* | --without-*)
1.62 paf 600: ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1.1 paf 601: # Reject names that are not valid shell variable names.
1.62 paf 602: expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603: { echo "$as_me: error: invalid package name: $ac_package" >&2
604: { (exit 1); exit 1; }; }
605: ac_package=`echo $ac_package | sed 's/-/_/g'`
606: eval "with_$ac_package=no" ;;
1.1 paf 607:
608: --x)
609: # Obsolete; use --with-x.
610: with_x=yes ;;
611:
612: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613: | --x-incl | --x-inc | --x-in | --x-i)
614: ac_prev=x_includes ;;
615: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1.62 paf 617: x_includes=$ac_optarg ;;
1.1 paf 618:
619: -x-libraries | --x-libraries | --x-librarie | --x-librari \
620: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621: ac_prev=x_libraries ;;
622: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1.62 paf 624: x_libraries=$ac_optarg ;;
1.1 paf 625:
1.62 paf 626: -*) { echo "$as_me: error: unrecognized option: $ac_option
627: Try \`$0 --help' for more information." >&2
628: { (exit 1); exit 1; }; }
1.1 paf 629: ;;
630:
1.62 paf 631: *=*)
632: ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633: # Reject names that are not valid shell variable names.
634: expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635: { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636: { (exit 1); exit 1; }; }
637: ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638: eval "$ac_envvar='$ac_optarg'"
639: export $ac_envvar ;;
640:
1.1 paf 641: *)
1.62 paf 642: # FIXME: should be removed in autoconf 3.0.
643: echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644: expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645: echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646: : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1.1 paf 647: ;;
648:
649: esac
650: done
651:
652: if test -n "$ac_prev"; then
1.62 paf 653: ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654: { echo "$as_me: error: missing argument to $ac_option" >&2
655: { (exit 1); exit 1; }; }
1.1 paf 656: fi
657:
1.62 paf 658: # Be sure to have absolute paths.
659: for ac_var in exec_prefix prefix
660: do
661: eval ac_val=$`echo $ac_var`
662: case $ac_val in
663: [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664: *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665: { (exit 1); exit 1; }; };;
666: esac
667: done
1.1 paf 668:
1.62 paf 669: # Be sure to have absolute paths.
670: for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671: localstatedir libdir includedir oldincludedir infodir mandir
1.1 paf 672: do
1.62 paf 673: eval ac_val=$`echo $ac_var`
674: case $ac_val in
675: [\\/$]* | ?:[\\/]* ) ;;
676: *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677: { (exit 1); exit 1; }; };;
1.1 paf 678: esac
679: done
680:
1.62 paf 681: # There might be people who depend on the old broken behavior: `$host'
682: # used to hold the argument of --host etc.
683: # FIXME: To remove some day.
684: build=$build_alias
685: host=$host_alias
686: target=$target_alias
687:
688: # FIXME: To remove some day.
689: if test "x$host_alias" != x; then
690: if test "x$build_alias" = x; then
691: cross_compiling=maybe
692: echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693: If a cross compiler is detected then cross compile mode will be used." >&2
694: elif test "x$build_alias" != "x$host_alias"; then
695: cross_compiling=yes
696: fi
697: fi
698:
699: ac_tool_prefix=
700: test -n "$host_alias" && ac_tool_prefix=$host_alias-
1.1 paf 701:
1.62 paf 702: test "$silent" = yes && exec 6>/dev/null
1.1 paf 703:
704:
705: # Find the source files, if location was not specified.
706: if test -z "$srcdir"; then
707: ac_srcdir_defaulted=yes
708: # Try the directory containing this script, then its parent.
1.62 paf 709: ac_confdir=`(dirname "$0") 2>/dev/null ||
710: $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711: X"$0" : 'X\(//\)[^/]' \| \
712: X"$0" : 'X\(//\)$' \| \
713: X"$0" : 'X\(/\)' \| \
714: . : '\(.\)' 2>/dev/null ||
715: echo X"$0" |
716: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718: /^X\(\/\/\)$/{ s//\1/; q; }
719: /^X\(\/\).*/{ s//\1/; q; }
720: s/.*/./; q'`
1.1 paf 721: srcdir=$ac_confdir
722: if test ! -r $srcdir/$ac_unique_file; then
723: srcdir=..
724: fi
725: else
726: ac_srcdir_defaulted=no
727: fi
728: if test ! -r $srcdir/$ac_unique_file; then
729: if test "$ac_srcdir_defaulted" = yes; then
1.62 paf 730: { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731: { (exit 1); exit 1; }; }
1.1 paf 732: else
1.62 paf 733: { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734: { (exit 1); exit 1; }; }
1.1 paf 735: fi
736: fi
1.62 paf 737: (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738: { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739: { (exit 1); exit 1; }; }
740: srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741: ac_env_build_alias_set=${build_alias+set}
742: ac_env_build_alias_value=$build_alias
743: ac_cv_env_build_alias_set=${build_alias+set}
744: ac_cv_env_build_alias_value=$build_alias
745: ac_env_host_alias_set=${host_alias+set}
746: ac_env_host_alias_value=$host_alias
747: ac_cv_env_host_alias_set=${host_alias+set}
748: ac_cv_env_host_alias_value=$host_alias
749: ac_env_target_alias_set=${target_alias+set}
750: ac_env_target_alias_value=$target_alias
751: ac_cv_env_target_alias_set=${target_alias+set}
752: ac_cv_env_target_alias_value=$target_alias
753: ac_env_CC_set=${CC+set}
754: ac_env_CC_value=$CC
755: ac_cv_env_CC_set=${CC+set}
756: ac_cv_env_CC_value=$CC
757: ac_env_CFLAGS_set=${CFLAGS+set}
758: ac_env_CFLAGS_value=$CFLAGS
759: ac_cv_env_CFLAGS_set=${CFLAGS+set}
760: ac_cv_env_CFLAGS_value=$CFLAGS
761: ac_env_LDFLAGS_set=${LDFLAGS+set}
762: ac_env_LDFLAGS_value=$LDFLAGS
763: ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764: ac_cv_env_LDFLAGS_value=$LDFLAGS
765: ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766: ac_env_CPPFLAGS_value=$CPPFLAGS
767: ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768: ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769: ac_env_CXX_set=${CXX+set}
770: ac_env_CXX_value=$CXX
771: ac_cv_env_CXX_set=${CXX+set}
772: ac_cv_env_CXX_value=$CXX
773: ac_env_CXXFLAGS_set=${CXXFLAGS+set}
774: ac_env_CXXFLAGS_value=$CXXFLAGS
775: ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
776: ac_cv_env_CXXFLAGS_value=$CXXFLAGS
777: ac_env_CXXCPP_set=${CXXCPP+set}
778: ac_env_CXXCPP_value=$CXXCPP
779: ac_cv_env_CXXCPP_set=${CXXCPP+set}
780: ac_cv_env_CXXCPP_value=$CXXCPP
781:
782: #
783: # Report the --help message.
784: #
785: if test "$ac_init_help" = "long"; then
786: # Omit some internal or obsolete options to make the list less imposing.
787: # This message is too long to be a string in the A/UX 3.1 sh.
788: cat <<_ACEOF
789: \`configure' configures this package to adapt to many kinds of systems.
790:
791: Usage: $0 [OPTION]... [VAR=VALUE]...
792:
793: To assign environment variables (e.g., CC, CFLAGS...), specify them as
794: VAR=VALUE. See below for descriptions of some of the useful variables.
795:
796: Defaults for the options are specified in brackets.
797:
798: Configuration:
799: -h, --help display this help and exit
800: --help=short display options specific to this package
801: --help=recursive display the short help of all the included packages
802: -V, --version display version information and exit
803: -q, --quiet, --silent do not print \`checking...' messages
804: --cache-file=FILE cache test results in FILE [disabled]
805: -C, --config-cache alias for \`--cache-file=config.cache'
806: -n, --no-create do not create output files
807: --srcdir=DIR find the sources in DIR [configure dir or \`..']
808:
809: _ACEOF
810:
811: cat <<_ACEOF
812: Installation directories:
813: --prefix=PREFIX install architecture-independent files in PREFIX
814: [$ac_default_prefix]
815: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
816: [PREFIX]
817:
818: By default, \`make install' will install all the files in
819: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
820: an installation prefix other than \`$ac_default_prefix' using \`--prefix',
821: for instance \`--prefix=\$HOME'.
822:
823: For better control, use the options below.
824:
825: Fine tuning of the installation directories:
826: --bindir=DIR user executables [EPREFIX/bin]
827: --sbindir=DIR system admin executables [EPREFIX/sbin]
828: --libexecdir=DIR program executables [EPREFIX/libexec]
829: --datadir=DIR read-only architecture-independent data [PREFIX/share]
830: --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
831: --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
832: --localstatedir=DIR modifiable single-machine data [PREFIX/var]
833: --libdir=DIR object code libraries [EPREFIX/lib]
834: --includedir=DIR C header files [PREFIX/include]
835: --oldincludedir=DIR C header files for non-gcc [/usr/include]
836: --infodir=DIR info documentation [PREFIX/info]
837: --mandir=DIR man documentation [PREFIX/man]
838: _ACEOF
839:
840: cat <<\_ACEOF
841:
842: Program names:
843: --program-prefix=PREFIX prepend PREFIX to installed program names
844: --program-suffix=SUFFIX append SUFFIX to installed program names
845: --program-transform-name=PROGRAM run sed PROGRAM on installed program names
846:
847: System types:
848: --build=BUILD configure for building on BUILD [guessed]
849: --host=HOST cross-compile to build programs to run on HOST [BUILD]
850: _ACEOF
851: fi
852:
853: if test -n "$ac_init_help"; then
854:
855: cat <<\_ACEOF
856:
857: Optional Features:
858: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
859: --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
860: --disable-dependency-tracking Speeds up one-time builds
861: --enable-dependency-tracking Do not reject slow dependency extractors
862: --disable-safe-mode to enable reading and executing
863: files belonging to group+user other then effective
864: --disable-execs to disable any execs
865: (file::exec, file::cgi, unix mail:send)
866: --disable-string-origins to switch off string origin tracking
867:
868: Optional Packages:
869: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
870: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
871: --with-charsets=CHARSET,CHARSET,... Enables charsets in root config (windows-1251,
872: windows-1250 windows-1257 koi8-r; Default is windows-1251)
873: --with-mysql-client=mysqlclientlib?withparams
874: MySQL client dynamic library to root config
875: --with-pgsql-client=pgsqlclientlib?withparams
876: PgSQL client dynamic library to root config
877: --with-oracle-client=oracleclientlib?withparams
878: Oracle client dynamic library
879: --with-pathlink=LKEY put dynamic libraries paths to binary
880: using linker key (-R, -rpath-link)
881: --with-link-stdcpp=PATH to directory with libstdc++
882: --without-link-stdcpp to disable libstdc++ linkage,
883: if you belive you do not need one
884: --with-sjlj-exceptions enable simple 'throw' from dynamic library
885: --with-glib-config=FILE FILE is glib library
886: configuration file (search for glib*-config)
887: --with-shared-xml=D D is the directory where
888: Gnome XML libraries are installed (shared libs)
889: --with-static-xml=D D is the directory where
890: Gnome XML libraries are installed (static libs)
891: --with-shared-mailreceive=D is the directory where
892: Gnome MIME library is installed (shared lib)
893: --with-static-mailreceive=D is the directory where
894: Gnome MIME library is installed (static lib)
895: \"--with-sendmail=COMMAND\" forces this command to send mail.
896: example: \"--with-sendmail=/usr/sbin/sendmail -t\"
897: (makes parser ignore user-defined sendmail commands)
898: --with-apache13=D D is the Apache13 source distribution directory
899: builds library for apache_module using that dir
900: (do not add /src)
901:
902: Some influential environment variables:
903: CC C compiler command
904: CFLAGS C compiler flags
905: LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
906: nonstandard directory <lib dir>
907: CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
908: headers in a nonstandard directory <include dir>
909: CXX C++ compiler command
910: CXXFLAGS C++ compiler flags
911: CXXCPP C++ preprocessor
912:
913: Use these variables to override the choices made by `configure' or to help
914: it to find libraries and programs with nonstandard names/locations.
915:
916: _ACEOF
917: fi
918:
919: if test "$ac_init_help" = "recursive"; then
920: # If there are subdirs, report their specific --help.
921: ac_popdir=`pwd`
922: for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
923: test -d $ac_dir || continue
924: ac_builddir=.
925:
926: if test "$ac_dir" != .; then
927: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
928: # A "../" for each directory in $ac_dir_suffix.
929: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
930: else
931: ac_dir_suffix= ac_top_builddir=
932: fi
933:
934: case $srcdir in
935: .) # No --srcdir option. We are building in place.
936: ac_srcdir=.
937: if test -z "$ac_top_builddir"; then
938: ac_top_srcdir=.
939: else
940: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
941: fi ;;
942: [\\/]* | ?:[\\/]* ) # Absolute path.
943: ac_srcdir=$srcdir$ac_dir_suffix;
944: ac_top_srcdir=$srcdir ;;
945: *) # Relative path.
946: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
947: ac_top_srcdir=$ac_top_builddir$srcdir ;;
948: esac
949: # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
950: # absolute.
951: ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
952: ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
953: ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
954: ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
955:
956: cd $ac_dir
957: # Check for guested configure; otherwise get Cygnus style configure.
958: if test -f $ac_srcdir/configure.gnu; then
959: echo
960: $SHELL $ac_srcdir/configure.gnu --help=recursive
961: elif test -f $ac_srcdir/configure; then
962: echo
963: $SHELL $ac_srcdir/configure --help=recursive
964: elif test -f $ac_srcdir/configure.ac ||
965: test -f $ac_srcdir/configure.in; then
966: echo
967: $ac_configure --help
968: else
969: echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
970: fi
971: cd $ac_popdir
972: done
973: fi
974:
975: test -n "$ac_init_help" && exit 0
976: if $ac_init_version; then
977: cat <<\_ACEOF
978:
979: Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
980: Free Software Foundation, Inc.
981: This configure script is free software; the Free Software Foundation
982: gives unlimited permission to copy, distribute and modify it.
983: _ACEOF
984: exit 0
985: fi
986: exec 5>config.log
987: cat >&5 <<_ACEOF
988: This file contains any messages produced by compilers while
989: running configure, to aid debugging if configure makes a mistake.
990:
991: It was created by $as_me, which was
992: generated by GNU Autoconf 2.57. Invocation command line was
993:
994: $ $0 $@
995:
996: _ACEOF
997: {
998: cat <<_ASUNAME
999: ## --------- ##
1000: ## Platform. ##
1001: ## --------- ##
1002:
1003: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1004: uname -m = `(uname -m) 2>/dev/null || echo unknown`
1005: uname -r = `(uname -r) 2>/dev/null || echo unknown`
1006: uname -s = `(uname -s) 2>/dev/null || echo unknown`
1007: uname -v = `(uname -v) 2>/dev/null || echo unknown`
1008:
1009: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1010: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1011:
1012: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1013: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1014: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1015: hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1016: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1017: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1018: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1019:
1020: _ASUNAME
1021:
1022: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1023: for as_dir in $PATH
1024: do
1025: IFS=$as_save_IFS
1026: test -z "$as_dir" && as_dir=.
1027: echo "PATH: $as_dir"
1028: done
1.1 paf 1029:
1.62 paf 1030: } >&5
1031:
1032: cat >&5 <<_ACEOF
1033:
1034:
1035: ## ----------- ##
1036: ## Core tests. ##
1037: ## ----------- ##
1038:
1039: _ACEOF
1040:
1041:
1042: # Keep a trace of the command line.
1043: # Strip out --no-create and --no-recursion so they do not pile up.
1044: # Strip out --silent because we don't want to record it for future runs.
1045: # Also quote any args containing shell meta-characters.
1046: # Make two passes to allow for proper duplicate-argument suppression.
1047: ac_configure_args=
1048: ac_configure_args0=
1049: ac_configure_args1=
1050: ac_sep=
1051: ac_must_keep_next=false
1052: for ac_pass in 1 2
1053: do
1054: for ac_arg
1055: do
1056: case $ac_arg in
1057: -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1058: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1059: | -silent | --silent | --silen | --sile | --sil)
1060: continue ;;
1061: *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1062: ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1063: esac
1064: case $ac_pass in
1065: 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1066: 2)
1067: ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1068: if test $ac_must_keep_next = true; then
1069: ac_must_keep_next=false # Got value, back to normal.
1070: else
1071: case $ac_arg in
1072: *=* | --config-cache | -C | -disable-* | --disable-* \
1073: | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1074: | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1075: | -with-* | --with-* | -without-* | --without-* | --x)
1076: case "$ac_configure_args0 " in
1077: "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1078: esac
1079: ;;
1080: -* ) ac_must_keep_next=true ;;
1081: esac
1082: fi
1083: ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1084: # Get rid of the leading space.
1085: ac_sep=" "
1086: ;;
1087: esac
1088: done
1089: done
1090: $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1091: $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1092:
1093: # When interrupted or exit'd, cleanup temporary files, and complete
1094: # config.log. We remove comments because anyway the quotes in there
1095: # would cause problems or look ugly.
1096: # WARNING: Be sure not to use single quotes in there, as some shells,
1097: # such as our DU 5.0 friend, will then `close' the trap.
1098: trap 'exit_status=$?
1099: # Save into config.log some information that might help in debugging.
1100: {
1101: echo
1102:
1103: cat <<\_ASBOX
1104: ## ---------------- ##
1105: ## Cache variables. ##
1106: ## ---------------- ##
1107: _ASBOX
1108: echo
1109: # The following way of writing the cache mishandles newlines in values,
1110: {
1111: (set) 2>&1 |
1112: case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1113: *ac_space=\ *)
1114: sed -n \
1115: "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1116: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1117: ;;
1118: *)
1119: sed -n \
1120: "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1121: ;;
1122: esac;
1123: }
1124: echo
1125:
1126: cat <<\_ASBOX
1127: ## ----------------- ##
1128: ## Output variables. ##
1129: ## ----------------- ##
1130: _ASBOX
1131: echo
1132: for ac_var in $ac_subst_vars
1133: do
1134: eval ac_val=$`echo $ac_var`
1135: echo "$ac_var='"'"'$ac_val'"'"'"
1136: done | sort
1137: echo
1138:
1139: if test -n "$ac_subst_files"; then
1140: cat <<\_ASBOX
1141: ## ------------- ##
1142: ## Output files. ##
1143: ## ------------- ##
1144: _ASBOX
1145: echo
1146: for ac_var in $ac_subst_files
1147: do
1148: eval ac_val=$`echo $ac_var`
1149: echo "$ac_var='"'"'$ac_val'"'"'"
1150: done | sort
1151: echo
1152: fi
1153:
1154: if test -s confdefs.h; then
1155: cat <<\_ASBOX
1156: ## ----------- ##
1157: ## confdefs.h. ##
1158: ## ----------- ##
1159: _ASBOX
1160: echo
1161: sed "/^$/d" confdefs.h | sort
1162: echo
1163: fi
1164: test "$ac_signal" != 0 &&
1165: echo "$as_me: caught signal $ac_signal"
1166: echo "$as_me: exit $exit_status"
1167: } >&5
1168: rm -f core core.* *.core &&
1169: rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1170: exit $exit_status
1171: ' 0
1172: for ac_signal in 1 2 13 15; do
1173: trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1174: done
1175: ac_signal=0
1176:
1177: # confdefs.h avoids OS command line length limits that DEFS can exceed.
1178: rm -rf conftest* confdefs.h
1179: # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1180: echo >confdefs.h
1181:
1182: # Predefined preprocessor variables.
1183:
1184: cat >>confdefs.h <<_ACEOF
1185: #define PACKAGE_NAME "$PACKAGE_NAME"
1186: _ACEOF
1187:
1188:
1189: cat >>confdefs.h <<_ACEOF
1190: #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1191: _ACEOF
1192:
1193:
1194: cat >>confdefs.h <<_ACEOF
1195: #define PACKAGE_VERSION "$PACKAGE_VERSION"
1196: _ACEOF
1197:
1198:
1199: cat >>confdefs.h <<_ACEOF
1200: #define PACKAGE_STRING "$PACKAGE_STRING"
1201: _ACEOF
1202:
1203:
1204: cat >>confdefs.h <<_ACEOF
1205: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1206: _ACEOF
1207:
1208:
1209: # Let the site file select an alternate cache file if it wants to.
1.1 paf 1210: # Prefer explicitly selected file to automatically selected ones.
1211: if test -z "$CONFIG_SITE"; then
1212: if test "x$prefix" != xNONE; then
1213: CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1214: else
1215: CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1216: fi
1217: fi
1218: for ac_site_file in $CONFIG_SITE; do
1219: if test -r "$ac_site_file"; then
1.62 paf 1220: { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1221: echo "$as_me: loading site script $ac_site_file" >&6;}
1222: sed 's/^/| /' "$ac_site_file" >&5
1.1 paf 1223: . "$ac_site_file"
1224: fi
1225: done
1226:
1227: if test -r "$cache_file"; then
1.62 paf 1228: # Some versions of bash will fail to source /dev/null (special
1229: # files actually), so we avoid doing that.
1230: if test -f "$cache_file"; then
1231: { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1232: echo "$as_me: loading cache $cache_file" >&6;}
1233: case $cache_file in
1234: [\\/]* | ?:[\\/]* ) . $cache_file;;
1235: *) . ./$cache_file;;
1236: esac
1237: fi
1.1 paf 1238: else
1.62 paf 1239: { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1240: echo "$as_me: creating cache $cache_file" >&6;}
1241: >$cache_file
1242: fi
1243:
1244: # Check that the precious variables saved in the cache have kept the same
1245: # value.
1246: ac_cache_corrupted=false
1247: for ac_var in `(set) 2>&1 |
1248: sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1249: eval ac_old_set=\$ac_cv_env_${ac_var}_set
1250: eval ac_new_set=\$ac_env_${ac_var}_set
1251: eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1252: eval ac_new_val="\$ac_env_${ac_var}_value"
1253: case $ac_old_set,$ac_new_set in
1254: set,)
1255: { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1256: echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1257: ac_cache_corrupted=: ;;
1258: ,set)
1259: { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1260: echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1261: ac_cache_corrupted=: ;;
1262: ,);;
1263: *)
1264: if test "x$ac_old_val" != "x$ac_new_val"; then
1265: { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1266: echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1267: { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1268: echo "$as_me: former value: $ac_old_val" >&2;}
1269: { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1270: echo "$as_me: current value: $ac_new_val" >&2;}
1271: ac_cache_corrupted=:
1272: fi;;
1273: esac
1274: # Pass precious variables to config.status.
1275: if test "$ac_new_set" = set; then
1276: case $ac_new_val in
1277: *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1278: ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1279: *) ac_arg=$ac_var=$ac_new_val ;;
1280: esac
1281: case " $ac_configure_args " in
1282: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1283: *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1284: esac
1285: fi
1286: done
1287: if $ac_cache_corrupted; then
1288: { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1289: echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1290: { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1291: echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1292: { (exit 1); exit 1; }; }
1.1 paf 1293: fi
1294:
1295: ac_ext=c
1296: ac_cpp='$CPP $CPPFLAGS'
1.62 paf 1297: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1298: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1299: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1300:
1301:
1302:
1303:
1304:
1305:
1306:
1307:
1308:
1309:
1310:
1.1 paf 1311:
1312:
1.62 paf 1313:
1314:
1315:
1316:
1317:
1318:
1.63 paf 1319:
1320:
1.62 paf 1321: am__api_version="1.7"
1.1 paf 1322: ac_aux_dir=
1323: for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1324: if test -f $ac_dir/install-sh; then
1325: ac_aux_dir=$ac_dir
1326: ac_install_sh="$ac_aux_dir/install-sh -c"
1327: break
1328: elif test -f $ac_dir/install.sh; then
1329: ac_aux_dir=$ac_dir
1330: ac_install_sh="$ac_aux_dir/install.sh -c"
1331: break
1.62 paf 1332: elif test -f $ac_dir/shtool; then
1333: ac_aux_dir=$ac_dir
1334: ac_install_sh="$ac_aux_dir/shtool install -c"
1335: break
1.1 paf 1336: fi
1337: done
1338: if test -z "$ac_aux_dir"; then
1.62 paf 1339: { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1340: echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1341: { (exit 1); exit 1; }; }
1342: fi
1343: ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1344: ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1345: ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1.1 paf 1346:
1347: # Find a good install program. We prefer a C program (faster),
1348: # so one script is as good as another. But avoid the broken or
1349: # incompatible versions:
1350: # SysV /etc/install, /usr/sbin/install
1351: # SunOS /usr/etc/install
1352: # IRIX /sbin/install
1353: # AIX /bin/install
1.62 paf 1354: # AmigaOS /C/install, which installs bootblocks on floppy discs
1.1 paf 1355: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1356: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1357: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1358: # ./install, which can be erroneously created by make from ./install.sh.
1.62 paf 1359: echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1360: echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1.1 paf 1361: if test -z "$INSTALL"; then
1.62 paf 1362: if test "${ac_cv_path_install+set}" = set; then
1363: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 paf 1364: else
1.62 paf 1365: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1366: for as_dir in $PATH
1367: do
1368: IFS=$as_save_IFS
1369: test -z "$as_dir" && as_dir=.
1370: # Account for people who put trailing slashes in PATH elements.
1371: case $as_dir/ in
1372: ./ | .// | /cC/* | \
1373: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1374: /usr/ucb/* ) ;;
1375: *)
1376: # OSF1 and SCO ODT 3.0 have their own names for install.
1377: # Don't use installbsd from OSF since it installs stuff as root
1378: # by default.
1379: for ac_prog in ginstall scoinst install; do
1380: for ac_exec_ext in '' $ac_executable_extensions; do
1381: if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1382: if test $ac_prog = install &&
1383: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1384: # AIX install. It has an incompatible calling convention.
1385: :
1386: elif test $ac_prog = install &&
1387: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1388: # program-specific install script used by HP pwplus--don't use.
1389: :
1390: else
1391: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1392: break 3
1393: fi
1394: fi
1.1 paf 1395: done
1.62 paf 1396: done
1397: ;;
1398: esac
1399: done
1400:
1.1 paf 1401:
1402: fi
1403: if test "${ac_cv_path_install+set}" = set; then
1.62 paf 1404: INSTALL=$ac_cv_path_install
1.1 paf 1405: else
1406: # As a last resort, use the slow shell script. We don't cache a
1407: # path for INSTALL within a source directory, because that will
1408: # break other packages using the cache if that directory is
1409: # removed, or if the path is relative.
1.62 paf 1410: INSTALL=$ac_install_sh
1.1 paf 1411: fi
1412: fi
1.62 paf 1413: echo "$as_me:$LINENO: result: $INSTALL" >&5
1414: echo "${ECHO_T}$INSTALL" >&6
1.1 paf 1415:
1416: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1417: # It thinks the first close brace ends the variable substitution.
1418: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1419:
1.62 paf 1420: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1.1 paf 1421:
1422: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1423:
1.62 paf 1424: echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1425: echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1.1 paf 1426: # Just in case
1427: sleep 1
1.62 paf 1428: echo timestamp > conftest.file
1.1 paf 1429: # Do `set' in a subshell so we don't clobber the current shell's
1430: # arguments. Must try -L first in case configure is actually a
1431: # symlink; some systems play weird games with the mod time of symlinks
1432: # (eg FreeBSD returns the mod time of the symlink's containing
1433: # directory).
1434: if (
1.62 paf 1435: set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1.1 paf 1436: if test "$*" = "X"; then
1437: # -L didn't work.
1.62 paf 1438: set X `ls -t $srcdir/configure conftest.file`
1.1 paf 1439: fi
1.62 paf 1440: rm -f conftest.file
1441: if test "$*" != "X $srcdir/configure conftest.file" \
1442: && test "$*" != "X conftest.file $srcdir/configure"; then
1.1 paf 1443:
1444: # If neither matched, then we have a broken ls. This can happen
1445: # if, for instance, CONFIG_SHELL is bash and it inherits a
1446: # broken ls alias from the environment. This has actually
1447: # happened. Such a system could not be considered "sane".
1.62 paf 1448: { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1449: alias in your environment" >&5
1450: echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1451: alias in your environment" >&2;}
1452: { (exit 1); exit 1; }; }
1.1 paf 1453: fi
1454:
1.62 paf 1455: test "$2" = conftest.file
1.1 paf 1456: )
1457: then
1458: # Ok.
1459: :
1460: else
1.62 paf 1461: { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1462: Check your system clock" >&5
1463: echo "$as_me: error: newly created file is older than distributed files!
1464: Check your system clock" >&2;}
1465: { (exit 1); exit 1; }; }
1.1 paf 1466: fi
1.62 paf 1467: echo "$as_me:$LINENO: result: yes" >&5
1468: echo "${ECHO_T}yes" >&6
1.1 paf 1469: test "$program_prefix" != NONE &&
1.62 paf 1470: program_transform_name="s,^,$program_prefix,;$program_transform_name"
1.1 paf 1471: # Use a double $ so make ignores it.
1472: test "$program_suffix" != NONE &&
1.62 paf 1473: program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1474: # Double any \ or $. echo might interpret backslashes.
1475: # By default was `s,x,x', remove it if useless.
1476: cat <<\_ACEOF >conftest.sed
1477: s/[\\$]/&&/g;s/;s,x,x,$//
1478: _ACEOF
1479: program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1480: rm conftest.sed
1481:
1482:
1483: # expand $ac_aux_dir to an absolute path
1484: am_aux_dir=`cd $ac_aux_dir && pwd`
1485:
1486: test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1487: # Use eval to expand $SHELL
1488: if eval "$MISSING --run true"; then
1489: am_missing_run="$MISSING --run "
1490: else
1491: am_missing_run=
1492: { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1493: echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1494: fi
1495:
1496: for ac_prog in gawk mawk nawk awk
1497: do
1498: # Extract the first word of "$ac_prog", so it can be a program name with args.
1499: set dummy $ac_prog; ac_word=$2
1500: echo "$as_me:$LINENO: checking for $ac_word" >&5
1501: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1502: if test "${ac_cv_prog_AWK+set}" = set; then
1503: echo $ECHO_N "(cached) $ECHO_C" >&6
1504: else
1505: if test -n "$AWK"; then
1506: ac_cv_prog_AWK="$AWK" # Let the user override the test.
1507: else
1508: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1509: for as_dir in $PATH
1510: do
1511: IFS=$as_save_IFS
1512: test -z "$as_dir" && as_dir=.
1513: for ac_exec_ext in '' $ac_executable_extensions; do
1514: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1515: ac_cv_prog_AWK="$ac_prog"
1516: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1517: break 2
1518: fi
1519: done
1520: done
1521:
1522: fi
1523: fi
1524: AWK=$ac_cv_prog_AWK
1525: if test -n "$AWK"; then
1526: echo "$as_me:$LINENO: result: $AWK" >&5
1527: echo "${ECHO_T}$AWK" >&6
1528: else
1529: echo "$as_me:$LINENO: result: no" >&5
1530: echo "${ECHO_T}no" >&6
1531: fi
1.1 paf 1532:
1.62 paf 1533: test -n "$AWK" && break
1534: done
1.1 paf 1535:
1.62 paf 1536: echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1537: echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1538: set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1539: if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1540: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 paf 1541: else
1.62 paf 1542: cat >conftest.make <<\_ACEOF
1.1 paf 1543: all:
1.62 paf 1544: @echo 'ac_maketemp="$(MAKE)"'
1545: _ACEOF
1.1 paf 1546: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1.62 paf 1547: eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1.1 paf 1548: if test -n "$ac_maketemp"; then
1549: eval ac_cv_prog_make_${ac_make}_set=yes
1550: else
1551: eval ac_cv_prog_make_${ac_make}_set=no
1552: fi
1.62 paf 1553: rm -f conftest.make
1.1 paf 1554: fi
1555: if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1.62 paf 1556: echo "$as_me:$LINENO: result: yes" >&5
1557: echo "${ECHO_T}yes" >&6
1.1 paf 1558: SET_MAKE=
1559: else
1.62 paf 1560: echo "$as_me:$LINENO: result: no" >&5
1561: echo "${ECHO_T}no" >&6
1.1 paf 1562: SET_MAKE="MAKE=${MAKE-make}"
1563: fi
1564:
1.62 paf 1565: # test to see if srcdir already configured
1566: if test "`cd $srcdir && pwd`" != "`pwd`" &&
1567: test -f $srcdir/config.status; then
1568: { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1569: echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1570: { (exit 1); exit 1; }; }
1571: fi
1572:
1573: # test whether we have cygpath
1574: if test -z "$CYGPATH_W"; then
1575: if (cygpath --version) >/dev/null 2>/dev/null; then
1576: CYGPATH_W='cygpath -w'
1577: else
1578: CYGPATH_W=echo
1579: fi
1580: fi
1581:
1582:
1583: # Define the identity of the package.
1584: PACKAGE=parser
1585: VERSION=3.0.HEAD
1.1 paf 1586:
1587:
1.62 paf 1588: # Some tools Automake needs.
1589:
1590: ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1591:
1592:
1593: AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1594:
1595:
1596: AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1597:
1598:
1599: AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1600:
1601:
1602: MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1.1 paf 1603:
1604:
1.62 paf 1605: AMTAR=${AMTAR-"${am_missing_run}tar"}
1.1 paf 1606:
1.62 paf 1607: install_sh=${install_sh-"$am_aux_dir/install-sh"}
1.1 paf 1608:
1.62 paf 1609: # Installed binaries are usually stripped using `strip' when the user
1610: # run `make install-strip'. However `strip' might not be the right
1611: # tool to use in cross-compilation environments, therefore Automake
1612: # will honor the `STRIP' environment variable to overrule this program.
1613: if test "$cross_compiling" != no; then
1614: if test -n "$ac_tool_prefix"; then
1615: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1616: set dummy ${ac_tool_prefix}strip; ac_word=$2
1617: echo "$as_me:$LINENO: checking for $ac_word" >&5
1618: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1619: if test "${ac_cv_prog_STRIP+set}" = set; then
1620: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 paf 1621: else
1.62 paf 1622: if test -n "$STRIP"; then
1623: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1624: else
1625: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1626: for as_dir in $PATH
1627: do
1628: IFS=$as_save_IFS
1629: test -z "$as_dir" && as_dir=.
1630: for ac_exec_ext in '' $ac_executable_extensions; do
1631: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1632: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1633: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1634: break 2
1635: fi
1636: done
1637: done
1638:
1639: fi
1640: fi
1641: STRIP=$ac_cv_prog_STRIP
1642: if test -n "$STRIP"; then
1643: echo "$as_me:$LINENO: result: $STRIP" >&5
1644: echo "${ECHO_T}$STRIP" >&6
1645: else
1646: echo "$as_me:$LINENO: result: no" >&5
1647: echo "${ECHO_T}no" >&6
1.1 paf 1648: fi
1649:
1.62 paf 1650: fi
1651: if test -z "$ac_cv_prog_STRIP"; then
1652: ac_ct_STRIP=$STRIP
1653: # Extract the first word of "strip", so it can be a program name with args.
1654: set dummy strip; ac_word=$2
1655: echo "$as_me:$LINENO: checking for $ac_word" >&5
1656: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1657: if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1658: echo $ECHO_N "(cached) $ECHO_C" >&6
1659: else
1660: if test -n "$ac_ct_STRIP"; then
1661: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1.1 paf 1662: else
1.62 paf 1663: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1664: for as_dir in $PATH
1665: do
1666: IFS=$as_save_IFS
1667: test -z "$as_dir" && as_dir=.
1668: for ac_exec_ext in '' $ac_executable_extensions; do
1669: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1670: ac_cv_prog_ac_ct_STRIP="strip"
1671: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1672: break 2
1673: fi
1674: done
1675: done
1676:
1677: test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1678: fi
1.1 paf 1679: fi
1.62 paf 1680: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1681: if test -n "$ac_ct_STRIP"; then
1682: echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1683: echo "${ECHO_T}$ac_ct_STRIP" >&6
1.1 paf 1684: else
1.62 paf 1685: echo "$as_me:$LINENO: result: no" >&5
1686: echo "${ECHO_T}no" >&6
1.1 paf 1687: fi
1688:
1.62 paf 1689: STRIP=$ac_ct_STRIP
1.1 paf 1690: else
1.62 paf 1691: STRIP="$ac_cv_prog_STRIP"
1.1 paf 1692: fi
1693:
1694: fi
1.62 paf 1695: INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1696:
1697: # We need awk for the "check" target. The system "awk" is bad on
1698: # some platforms.
1699:
1.1 paf 1700:
1701:
1702:
1.12 paf 1703: P3S=`cd $srcdir/src ; pwd`
1.1 paf 1704:
1705:
1706: PARSER_VERSION=$VERSION
1.6 paf 1707: echo "/* automatically generated by configure */" > $srcdir/src/include/pa_version.h.new
1708: echo "/* edit configure.in to change version number */" >> $srcdir/src/include/pa_version.h.new
1709: echo "#define PARSER_VERSION \"$PARSER_VERSION\"" >> $srcdir/src/include/pa_version.h.new
1710: cmp $srcdir/src/include/pa_version.h.new $srcdir/src/include/pa_version.h >/dev/null 2>&1
1.1 paf 1711: if test $? -ne 0 ; then
1.6 paf 1712: rm -f $srcdir/src/include/pa_version.h && mv $srcdir/src/include/pa_version.h.new $srcdir/src/include/pa_version.h && \
1713: echo Updated $srcdir/src/include/pa_version.h
1.1 paf 1714: else
1.6 paf 1715: rm -f $srcdir/src/include/pa_version.h.new
1.1 paf 1716: fi
1717:
1.41 paf 1718:
1719: # Make sure we can run config.sub.
1.62 paf 1720: $ac_config_sub sun4 >/dev/null 2>&1 ||
1721: { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1722: echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1723: { (exit 1); exit 1; }; }
1724:
1725: echo "$as_me:$LINENO: checking build system type" >&5
1726: echo $ECHO_N "checking build system type... $ECHO_C" >&6
1727: if test "${ac_cv_build+set}" = set; then
1728: echo $ECHO_N "(cached) $ECHO_C" >&6
1729: else
1730: ac_cv_build_alias=$build_alias
1731: test -z "$ac_cv_build_alias" &&
1732: ac_cv_build_alias=`$ac_config_guess`
1733: test -z "$ac_cv_build_alias" &&
1734: { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1735: echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1736: { (exit 1); exit 1; }; }
1737: ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1738: { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1739: echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1740: { (exit 1); exit 1; }; }
1741:
1742: fi
1743: echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1744: echo "${ECHO_T}$ac_cv_build" >&6
1745: build=$ac_cv_build
1746: build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1747: build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1748: build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1749:
1750:
1751: echo "$as_me:$LINENO: checking host system type" >&5
1752: echo $ECHO_N "checking host system type... $ECHO_C" >&6
1753: if test "${ac_cv_host+set}" = set; then
1754: echo $ECHO_N "(cached) $ECHO_C" >&6
1755: else
1756: ac_cv_host_alias=$host_alias
1757: test -z "$ac_cv_host_alias" &&
1758: ac_cv_host_alias=$ac_cv_build_alias
1759: ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1760: { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1761: echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1762: { (exit 1); exit 1; }; }
1763:
1764: fi
1765: echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1766: echo "${ECHO_T}$ac_cv_host" >&6
1767: host=$ac_cv_host
1768: host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1769: host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1770: host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1.41 paf 1771:
1772:
1773:
1774:
1.1 paf 1775: # Find a good install program. We prefer a C program (faster),
1776: # so one script is as good as another. But avoid the broken or
1777: # incompatible versions:
1778: # SysV /etc/install, /usr/sbin/install
1779: # SunOS /usr/etc/install
1780: # IRIX /sbin/install
1781: # AIX /bin/install
1.62 paf 1782: # AmigaOS /C/install, which installs bootblocks on floppy discs
1.1 paf 1783: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1784: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1785: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1786: # ./install, which can be erroneously created by make from ./install.sh.
1.62 paf 1787: echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1788: echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1.1 paf 1789: if test -z "$INSTALL"; then
1.62 paf 1790: if test "${ac_cv_path_install+set}" = set; then
1791: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 paf 1792: else
1.62 paf 1793: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1794: for as_dir in $PATH
1795: do
1796: IFS=$as_save_IFS
1797: test -z "$as_dir" && as_dir=.
1798: # Account for people who put trailing slashes in PATH elements.
1799: case $as_dir/ in
1800: ./ | .// | /cC/* | \
1801: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1802: /usr/ucb/* ) ;;
1803: *)
1804: # OSF1 and SCO ODT 3.0 have their own names for install.
1805: # Don't use installbsd from OSF since it installs stuff as root
1806: # by default.
1807: for ac_prog in ginstall scoinst install; do
1808: for ac_exec_ext in '' $ac_executable_extensions; do
1809: if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1810: if test $ac_prog = install &&
1811: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1812: # AIX install. It has an incompatible calling convention.
1813: :
1814: elif test $ac_prog = install &&
1815: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1816: # program-specific install script used by HP pwplus--don't use.
1817: :
1818: else
1819: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1820: break 3
1821: fi
1822: fi
1.1 paf 1823: done
1.62 paf 1824: done
1825: ;;
1826: esac
1827: done
1828:
1.1 paf 1829:
1830: fi
1831: if test "${ac_cv_path_install+set}" = set; then
1.62 paf 1832: INSTALL=$ac_cv_path_install
1.1 paf 1833: else
1834: # As a last resort, use the slow shell script. We don't cache a
1835: # path for INSTALL within a source directory, because that will
1836: # break other packages using the cache if that directory is
1837: # removed, or if the path is relative.
1.62 paf 1838: INSTALL=$ac_install_sh
1.1 paf 1839: fi
1840: fi
1.62 paf 1841: echo "$as_me:$LINENO: result: $INSTALL" >&5
1842: echo "${ECHO_T}$INSTALL" >&6
1.1 paf 1843:
1844: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1845: # It thinks the first close brace ends the variable substitution.
1846: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1847:
1.62 paf 1848: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1.1 paf 1849:
1850: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1851:
1.62 paf 1852: echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1853: echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1854: set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1855: if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1856: echo $ECHO_N "(cached) $ECHO_C" >&6
1.41 paf 1857: else
1.62 paf 1858: cat >conftest.make <<\_ACEOF
1.41 paf 1859: all:
1.62 paf 1860: @echo 'ac_maketemp="$(MAKE)"'
1861: _ACEOF
1.41 paf 1862: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1.62 paf 1863: eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1.41 paf 1864: if test -n "$ac_maketemp"; then
1865: eval ac_cv_prog_make_${ac_make}_set=yes
1866: else
1867: eval ac_cv_prog_make_${ac_make}_set=no
1868: fi
1.62 paf 1869: rm -f conftest.make
1.41 paf 1870: fi
1871: if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1.62 paf 1872: echo "$as_me:$LINENO: result: yes" >&5
1873: echo "${ECHO_T}yes" >&6
1.41 paf 1874: SET_MAKE=
1875: else
1.62 paf 1876: echo "$as_me:$LINENO: result: no" >&5
1877: echo "${ECHO_T}no" >&6
1.41 paf 1878: SET_MAKE="MAKE=${MAKE-make}"
1879: fi
1880:
1.62 paf 1881: if test -n "$ac_tool_prefix"; then
1882: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1883: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1884: echo "$as_me:$LINENO: checking for $ac_word" >&5
1885: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1886: if test "${ac_cv_prog_RANLIB+set}" = set; then
1887: echo $ECHO_N "(cached) $ECHO_C" >&6
1.41 paf 1888: else
1889: if test -n "$RANLIB"; then
1890: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1891: else
1.62 paf 1892: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1893: for as_dir in $PATH
1894: do
1895: IFS=$as_save_IFS
1896: test -z "$as_dir" && as_dir=.
1897: for ac_exec_ext in '' $ac_executable_extensions; do
1898: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1899: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1900: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1901: break 2
1902: fi
1903: done
1904: done
1905:
1.41 paf 1906: fi
1907: fi
1.62 paf 1908: RANLIB=$ac_cv_prog_RANLIB
1.41 paf 1909: if test -n "$RANLIB"; then
1.62 paf 1910: echo "$as_me:$LINENO: result: $RANLIB" >&5
1911: echo "${ECHO_T}$RANLIB" >&6
1912: else
1913: echo "$as_me:$LINENO: result: no" >&5
1914: echo "${ECHO_T}no" >&6
1915: fi
1916:
1917: fi
1918: if test -z "$ac_cv_prog_RANLIB"; then
1919: ac_ct_RANLIB=$RANLIB
1920: # Extract the first word of "ranlib", so it can be a program name with args.
1921: set dummy ranlib; ac_word=$2
1922: echo "$as_me:$LINENO: checking for $ac_word" >&5
1923: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1924: if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
1925: echo $ECHO_N "(cached) $ECHO_C" >&6
1926: else
1927: if test -n "$ac_ct_RANLIB"; then
1928: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
1929: else
1930: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1931: for as_dir in $PATH
1932: do
1933: IFS=$as_save_IFS
1934: test -z "$as_dir" && as_dir=.
1935: for ac_exec_ext in '' $ac_executable_extensions; do
1936: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1937: ac_cv_prog_ac_ct_RANLIB="ranlib"
1938: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1939: break 2
1940: fi
1941: done
1942: done
1943:
1944: test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
1945: fi
1946: fi
1947: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
1948: if test -n "$ac_ct_RANLIB"; then
1949: echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
1950: echo "${ECHO_T}$ac_ct_RANLIB" >&6
1951: else
1952: echo "$as_me:$LINENO: result: no" >&5
1953: echo "${ECHO_T}no" >&6
1954: fi
1955:
1956: RANLIB=$ac_ct_RANLIB
1.41 paf 1957: else
1.62 paf 1958: RANLIB="$ac_cv_prog_RANLIB"
1.41 paf 1959: fi
1960:
1.62 paf 1961: for ac_prog in gawk mawk nawk awk
1.41 paf 1962: do
1.62 paf 1963: # Extract the first word of "$ac_prog", so it can be a program name with args.
1.41 paf 1964: set dummy $ac_prog; ac_word=$2
1.62 paf 1965: echo "$as_me:$LINENO: checking for $ac_word" >&5
1966: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1967: if test "${ac_cv_prog_AWK+set}" = set; then
1968: echo $ECHO_N "(cached) $ECHO_C" >&6
1.41 paf 1969: else
1970: if test -n "$AWK"; then
1971: ac_cv_prog_AWK="$AWK" # Let the user override the test.
1972: else
1.62 paf 1973: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1974: for as_dir in $PATH
1975: do
1976: IFS=$as_save_IFS
1977: test -z "$as_dir" && as_dir=.
1978: for ac_exec_ext in '' $ac_executable_extensions; do
1979: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1980: ac_cv_prog_AWK="$ac_prog"
1981: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1982: break 2
1983: fi
1984: done
1985: done
1986:
1.41 paf 1987: fi
1988: fi
1.62 paf 1989: AWK=$ac_cv_prog_AWK
1.41 paf 1990: if test -n "$AWK"; then
1.62 paf 1991: echo "$as_me:$LINENO: result: $AWK" >&5
1992: echo "${ECHO_T}$AWK" >&6
1.41 paf 1993: else
1.62 paf 1994: echo "$as_me:$LINENO: result: no" >&5
1995: echo "${ECHO_T}no" >&6
1.41 paf 1996: fi
1997:
1.62 paf 1998: test -n "$AWK" && break
1.41 paf 1999: done
2000:
2001:
2002: for ac_prog in 'bison -y' byacc
2003: do
1.62 paf 2004: # Extract the first word of "$ac_prog", so it can be a program name with args.
1.41 paf 2005: set dummy $ac_prog; ac_word=$2
1.62 paf 2006: echo "$as_me:$LINENO: checking for $ac_word" >&5
2007: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2008: if test "${ac_cv_prog_YACC+set}" = set; then
2009: echo $ECHO_N "(cached) $ECHO_C" >&6
1.41 paf 2010: else
2011: if test -n "$YACC"; then
2012: ac_cv_prog_YACC="$YACC" # Let the user override the test.
2013: else
1.62 paf 2014: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2015: for as_dir in $PATH
2016: do
2017: IFS=$as_save_IFS
2018: test -z "$as_dir" && as_dir=.
2019: for ac_exec_ext in '' $ac_executable_extensions; do
2020: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2021: ac_cv_prog_YACC="$ac_prog"
2022: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2023: break 2
2024: fi
2025: done
2026: done
2027:
1.41 paf 2028: fi
2029: fi
1.62 paf 2030: YACC=$ac_cv_prog_YACC
1.41 paf 2031: if test -n "$YACC"; then
1.62 paf 2032: echo "$as_me:$LINENO: result: $YACC" >&5
2033: echo "${ECHO_T}$YACC" >&6
1.41 paf 2034: else
1.62 paf 2035: echo "$as_me:$LINENO: result: no" >&5
2036: echo "${ECHO_T}no" >&6
1.41 paf 2037: fi
2038:
1.62 paf 2039: test -n "$YACC" && break
1.41 paf 2040: done
2041: test -n "$YACC" || YACC="yacc"
2042:
2043: if test "$YACC" != "bison -y"; then
1.62 paf 2044: { echo "$as_me:$LINENO: WARNING: to regenerate Parser grammar YOU WOULD NEED BISON" >&5
2045: echo "$as_me: WARNING: to regenerate Parser grammar YOU WOULD NEED BISON" >&2;}
1.41 paf 2046: else
1.62 paf 2047: echo "$as_me:$LINENO: checking bison version" >&5
2048: echo $ECHO_N "checking bison version... $ECHO_C" >&6
1.41 paf 2049: oldIFS=$IFS; IFS=.
2050: set `bison -V | sed -e 's/^GNU Bison version //'`
2051: IFS=$oldIFS
2052: if test "$1" = "1" -a "$2" -lt "25"; then
1.62 paf 2053: { echo "$as_me:$LINENO: WARNING: Bison 1.25 or newer needed to regenerate Parser compiler (found $1.$2)." >&5
2054: echo "$as_me: WARNING: Bison 1.25 or newer needed to regenerate Parser compiler (found $1.$2)." >&2;}
1.41 paf 2055: fi
1.62 paf 2056: echo "$as_me:$LINENO: result: $1.$2 (ok)" >&5
2057: echo "${ECHO_T}$1.$2 (ok)" >&6
2058: fi
2059:
2060: ac_ext=c
2061: ac_cpp='$CPP $CPPFLAGS'
2062: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2063: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2064: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2065: if test -n "$ac_tool_prefix"; then
2066: # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2067: set dummy ${ac_tool_prefix}gcc; ac_word=$2
2068: echo "$as_me:$LINENO: checking for $ac_word" >&5
2069: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2070: if test "${ac_cv_prog_CC+set}" = set; then
2071: echo $ECHO_N "(cached) $ECHO_C" >&6
2072: else
2073: if test -n "$CC"; then
2074: ac_cv_prog_CC="$CC" # Let the user override the test.
2075: else
2076: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2077: for as_dir in $PATH
2078: do
2079: IFS=$as_save_IFS
2080: test -z "$as_dir" && as_dir=.
2081: for ac_exec_ext in '' $ac_executable_extensions; do
2082: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2083: ac_cv_prog_CC="${ac_tool_prefix}gcc"
2084: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2085: break 2
2086: fi
2087: done
2088: done
2089:
2090: fi
2091: fi
2092: CC=$ac_cv_prog_CC
2093: if test -n "$CC"; then
2094: echo "$as_me:$LINENO: result: $CC" >&5
2095: echo "${ECHO_T}$CC" >&6
2096: else
2097: echo "$as_me:$LINENO: result: no" >&5
2098: echo "${ECHO_T}no" >&6
1.41 paf 2099: fi
2100:
1.62 paf 2101: fi
2102: if test -z "$ac_cv_prog_CC"; then
2103: ac_ct_CC=$CC
2104: # Extract the first word of "gcc", so it can be a program name with args.
1.1 paf 2105: set dummy gcc; ac_word=$2
1.62 paf 2106: echo "$as_me:$LINENO: checking for $ac_word" >&5
2107: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2108: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2109: echo $ECHO_N "(cached) $ECHO_C" >&6
2110: else
2111: if test -n "$ac_ct_CC"; then
2112: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2113: else
2114: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2115: for as_dir in $PATH
2116: do
2117: IFS=$as_save_IFS
2118: test -z "$as_dir" && as_dir=.
2119: for ac_exec_ext in '' $ac_executable_extensions; do
2120: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2121: ac_cv_prog_ac_ct_CC="gcc"
2122: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2123: break 2
2124: fi
2125: done
2126: done
2127:
2128: fi
2129: fi
2130: ac_ct_CC=$ac_cv_prog_ac_ct_CC
2131: if test -n "$ac_ct_CC"; then
2132: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2133: echo "${ECHO_T}$ac_ct_CC" >&6
2134: else
2135: echo "$as_me:$LINENO: result: no" >&5
2136: echo "${ECHO_T}no" >&6
2137: fi
2138:
2139: CC=$ac_ct_CC
2140: else
2141: CC="$ac_cv_prog_CC"
2142: fi
2143:
2144: if test -z "$CC"; then
2145: if test -n "$ac_tool_prefix"; then
2146: # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2147: set dummy ${ac_tool_prefix}cc; ac_word=$2
2148: echo "$as_me:$LINENO: checking for $ac_word" >&5
2149: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2150: if test "${ac_cv_prog_CC+set}" = set; then
2151: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 paf 2152: else
2153: if test -n "$CC"; then
2154: ac_cv_prog_CC="$CC" # Let the user override the test.
2155: else
1.62 paf 2156: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2157: for as_dir in $PATH
2158: do
2159: IFS=$as_save_IFS
2160: test -z "$as_dir" && as_dir=.
2161: for ac_exec_ext in '' $ac_executable_extensions; do
2162: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2163: ac_cv_prog_CC="${ac_tool_prefix}cc"
2164: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2165: break 2
2166: fi
2167: done
2168: done
2169:
1.1 paf 2170: fi
2171: fi
1.62 paf 2172: CC=$ac_cv_prog_CC
1.1 paf 2173: if test -n "$CC"; then
1.62 paf 2174: echo "$as_me:$LINENO: result: $CC" >&5
2175: echo "${ECHO_T}$CC" >&6
2176: else
2177: echo "$as_me:$LINENO: result: no" >&5
2178: echo "${ECHO_T}no" >&6
2179: fi
2180:
2181: fi
2182: if test -z "$ac_cv_prog_CC"; then
2183: ac_ct_CC=$CC
2184: # Extract the first word of "cc", so it can be a program name with args.
2185: set dummy cc; ac_word=$2
2186: echo "$as_me:$LINENO: checking for $ac_word" >&5
2187: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2188: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2189: echo $ECHO_N "(cached) $ECHO_C" >&6
2190: else
2191: if test -n "$ac_ct_CC"; then
2192: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2193: else
2194: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2195: for as_dir in $PATH
2196: do
2197: IFS=$as_save_IFS
2198: test -z "$as_dir" && as_dir=.
2199: for ac_exec_ext in '' $ac_executable_extensions; do
2200: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2201: ac_cv_prog_ac_ct_CC="cc"
2202: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2203: break 2
2204: fi
2205: done
2206: done
2207:
2208: fi
2209: fi
2210: ac_ct_CC=$ac_cv_prog_ac_ct_CC
2211: if test -n "$ac_ct_CC"; then
2212: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2213: echo "${ECHO_T}$ac_ct_CC" >&6
2214: else
2215: echo "$as_me:$LINENO: result: no" >&5
2216: echo "${ECHO_T}no" >&6
2217: fi
2218:
2219: CC=$ac_ct_CC
1.1 paf 2220: else
1.62 paf 2221: CC="$ac_cv_prog_CC"
1.1 paf 2222: fi
2223:
1.62 paf 2224: fi
1.1 paf 2225: if test -z "$CC"; then
2226: # Extract the first word of "cc", so it can be a program name with args.
2227: set dummy cc; ac_word=$2
1.62 paf 2228: echo "$as_me:$LINENO: checking for $ac_word" >&5
2229: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2230: if test "${ac_cv_prog_CC+set}" = set; then
2231: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 paf 2232: else
2233: if test -n "$CC"; then
2234: ac_cv_prog_CC="$CC" # Let the user override the test.
2235: else
2236: ac_prog_rejected=no
1.62 paf 2237: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2238: for as_dir in $PATH
2239: do
2240: IFS=$as_save_IFS
2241: test -z "$as_dir" && as_dir=.
2242: for ac_exec_ext in '' $ac_executable_extensions; do
2243: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2244: if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2245: ac_prog_rejected=yes
2246: continue
2247: fi
2248: ac_cv_prog_CC="cc"
2249: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2250: break 2
2251: fi
2252: done
2253: done
2254:
1.1 paf 2255: if test $ac_prog_rejected = yes; then
2256: # We found a bogon in the path, so make sure we never use it.
2257: set dummy $ac_cv_prog_CC
2258: shift
1.62 paf 2259: if test $# != 0; then
1.1 paf 2260: # We chose a different compiler from the bogus one.
2261: # However, it has the same basename, so the bogon will be chosen
2262: # first if we set CC to just the basename; use the full file name.
2263: shift
1.62 paf 2264: ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1.1 paf 2265: fi
2266: fi
2267: fi
2268: fi
1.62 paf 2269: CC=$ac_cv_prog_CC
1.1 paf 2270: if test -n "$CC"; then
1.62 paf 2271: echo "$as_me:$LINENO: result: $CC" >&5
2272: echo "${ECHO_T}$CC" >&6
1.1 paf 2273: else
1.62 paf 2274: echo "$as_me:$LINENO: result: no" >&5
2275: echo "${ECHO_T}no" >&6
1.1 paf 2276: fi
2277:
1.62 paf 2278: fi
2279: if test -z "$CC"; then
2280: if test -n "$ac_tool_prefix"; then
2281: for ac_prog in cl
2282: do
2283: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2284: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2285: echo "$as_me:$LINENO: checking for $ac_word" >&5
2286: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2287: if test "${ac_cv_prog_CC+set}" = set; then
2288: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 paf 2289: else
2290: if test -n "$CC"; then
2291: ac_cv_prog_CC="$CC" # Let the user override the test.
2292: else
1.62 paf 2293: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2294: for as_dir in $PATH
2295: do
2296: IFS=$as_save_IFS
2297: test -z "$as_dir" && as_dir=.
2298: for ac_exec_ext in '' $ac_executable_extensions; do
2299: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2300: ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2301: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2302: break 2
2303: fi
2304: done
2305: done
2306:
1.1 paf 2307: fi
2308: fi
1.62 paf 2309: CC=$ac_cv_prog_CC
1.1 paf 2310: if test -n "$CC"; then
1.62 paf 2311: echo "$as_me:$LINENO: result: $CC" >&5
2312: echo "${ECHO_T}$CC" >&6
1.1 paf 2313: else
1.62 paf 2314: echo "$as_me:$LINENO: result: no" >&5
2315: echo "${ECHO_T}no" >&6
2316: fi
2317:
2318: test -n "$CC" && break
2319: done
1.1 paf 2320: fi
1.62 paf 2321: if test -z "$CC"; then
2322: ac_ct_CC=$CC
2323: for ac_prog in cl
2324: do
2325: # Extract the first word of "$ac_prog", so it can be a program name with args.
2326: set dummy $ac_prog; ac_word=$2
2327: echo "$as_me:$LINENO: checking for $ac_word" >&5
2328: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2329: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2330: echo $ECHO_N "(cached) $ECHO_C" >&6
2331: else
2332: if test -n "$ac_ct_CC"; then
2333: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2334: else
2335: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2336: for as_dir in $PATH
2337: do
2338: IFS=$as_save_IFS
2339: test -z "$as_dir" && as_dir=.
2340: for ac_exec_ext in '' $ac_executable_extensions; do
2341: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2342: ac_cv_prog_ac_ct_CC="$ac_prog"
2343: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2344: break 2
1.1 paf 2345: fi
1.62 paf 2346: done
2347: done
1.1 paf 2348:
2349: fi
2350: fi
1.62 paf 2351: ac_ct_CC=$ac_cv_prog_ac_ct_CC
2352: if test -n "$ac_ct_CC"; then
2353: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2354: echo "${ECHO_T}$ac_ct_CC" >&6
1.1 paf 2355: else
1.62 paf 2356: echo "$as_me:$LINENO: result: no" >&5
2357: echo "${ECHO_T}no" >&6
1.1 paf 2358: fi
2359:
1.62 paf 2360: test -n "$ac_ct_CC" && break
2361: done
1.1 paf 2362:
1.62 paf 2363: CC=$ac_ct_CC
1.1 paf 2364: fi
2365:
2366: fi
2367:
2368:
1.62 paf 2369: test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2370: See \`config.log' for more details." >&5
2371: echo "$as_me: error: no acceptable C compiler found in \$PATH
2372: See \`config.log' for more details." >&2;}
2373: { (exit 1); exit 1; }; }
2374:
2375: # Provide some information about the compiler.
2376: echo "$as_me:$LINENO:" \
2377: "checking for C compiler version" >&5
2378: ac_compiler=`set X $ac_compile; echo $2`
2379: { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2380: (eval $ac_compiler --version </dev/null >&5) 2>&5
2381: ac_status=$?
2382: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2383: (exit $ac_status); }
2384: { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2385: (eval $ac_compiler -v </dev/null >&5) 2>&5
2386: ac_status=$?
2387: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2388: (exit $ac_status); }
2389: { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2390: (eval $ac_compiler -V </dev/null >&5) 2>&5
2391: ac_status=$?
2392: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2393: (exit $ac_status); }
2394:
2395: cat >conftest.$ac_ext <<_ACEOF
2396: #line $LINENO "configure"
2397: /* confdefs.h. */
2398: _ACEOF
2399: cat confdefs.h >>conftest.$ac_ext
2400: cat >>conftest.$ac_ext <<_ACEOF
2401: /* end confdefs.h. */
2402:
2403: int
2404: main ()
2405: {
2406:
2407: ;
2408: return 0;
2409: }
2410: _ACEOF
2411: ac_clean_files_save=$ac_clean_files
2412: ac_clean_files="$ac_clean_files a.out a.exe b.out"
2413: # Try to create an executable without -o first, disregard a.out.
2414: # It will help us diagnose broken compilers, and finding out an intuition
2415: # of exeext.
2416: echo "$as_me:$LINENO: checking for C compiler default output" >&5
2417: echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2418: ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2419: if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2420: (eval $ac_link_default) 2>&5
2421: ac_status=$?
2422: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2423: (exit $ac_status); }; then
2424: # Find the output, starting from the most likely. This scheme is
2425: # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2426: # resort.
2427:
2428: # Be careful to initialize this variable, since it used to be cached.
2429: # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2430: ac_cv_exeext=
2431: # b.out is created by i960 compilers.
2432: for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2433: do
2434: test -f "$ac_file" || continue
2435: case $ac_file in
2436: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2437: ;;
2438: conftest.$ac_ext )
2439: # This is the source file.
2440: ;;
2441: [ab].out )
2442: # We found the default executable, but exeext='' is most
2443: # certainly right.
2444: break;;
2445: *.* )
2446: ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2447: # FIXME: I believe we export ac_cv_exeext for Libtool,
2448: # but it would be cool to find out if it's true. Does anybody
2449: # maintain Libtool? --akim.
2450: export ac_cv_exeext
2451: break;;
2452: * )
2453: break;;
2454: esac
2455: done
2456: else
2457: echo "$as_me: failed program was:" >&5
2458: sed 's/^/| /' conftest.$ac_ext >&5
2459:
2460: { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2461: See \`config.log' for more details." >&5
2462: echo "$as_me: error: C compiler cannot create executables
2463: See \`config.log' for more details." >&2;}
2464: { (exit 77); exit 77; }; }
2465: fi
2466:
2467: ac_exeext=$ac_cv_exeext
2468: echo "$as_me:$LINENO: result: $ac_file" >&5
2469: echo "${ECHO_T}$ac_file" >&6
2470:
2471: # Check the compiler produces executables we can run. If not, either
2472: # the compiler is broken, or we cross compile.
2473: echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2474: echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2475: # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2476: # If not cross compiling, check that we can run a simple program.
2477: if test "$cross_compiling" != yes; then
2478: if { ac_try='./$ac_file'
2479: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2480: (eval $ac_try) 2>&5
2481: ac_status=$?
2482: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2483: (exit $ac_status); }; }; then
2484: cross_compiling=no
2485: else
2486: if test "$cross_compiling" = maybe; then
2487: cross_compiling=yes
2488: else
2489: { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2490: If you meant to cross compile, use \`--host'.
2491: See \`config.log' for more details." >&5
2492: echo "$as_me: error: cannot run C compiled programs.
2493: If you meant to cross compile, use \`--host'.
2494: See \`config.log' for more details." >&2;}
2495: { (exit 1); exit 1; }; }
2496: fi
2497: fi
2498: fi
2499: echo "$as_me:$LINENO: result: yes" >&5
2500: echo "${ECHO_T}yes" >&6
2501:
2502: rm -f a.out a.exe conftest$ac_cv_exeext b.out
2503: ac_clean_files=$ac_clean_files_save
2504: # Check the compiler produces executables we can run. If not, either
2505: # the compiler is broken, or we cross compile.
2506: echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2507: echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2508: echo "$as_me:$LINENO: result: $cross_compiling" >&5
2509: echo "${ECHO_T}$cross_compiling" >&6
2510:
2511: echo "$as_me:$LINENO: checking for suffix of executables" >&5
2512: echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2513: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2514: (eval $ac_link) 2>&5
2515: ac_status=$?
2516: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2517: (exit $ac_status); }; then
2518: # If both `conftest.exe' and `conftest' are `present' (well, observable)
2519: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2520: # work properly (i.e., refer to `conftest.exe'), while it won't with
2521: # `rm'.
2522: for ac_file in conftest.exe conftest conftest.*; do
2523: test -f "$ac_file" || continue
2524: case $ac_file in
2525: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2526: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2527: export ac_cv_exeext
2528: break;;
2529: * ) break;;
2530: esac
2531: done
2532: else
2533: { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2534: See \`config.log' for more details." >&5
2535: echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2536: See \`config.log' for more details." >&2;}
2537: { (exit 1); exit 1; }; }
2538: fi
2539:
2540: rm -f conftest$ac_cv_exeext
2541: echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2542: echo "${ECHO_T}$ac_cv_exeext" >&6
2543:
2544: rm -f conftest.$ac_ext
2545: EXEEXT=$ac_cv_exeext
2546: ac_exeext=$EXEEXT
2547: echo "$as_me:$LINENO: checking for suffix of object files" >&5
2548: echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2549: if test "${ac_cv_objext+set}" = set; then
2550: echo $ECHO_N "(cached) $ECHO_C" >&6
2551: else
2552: cat >conftest.$ac_ext <<_ACEOF
2553: #line $LINENO "configure"
2554: /* confdefs.h. */
2555: _ACEOF
2556: cat confdefs.h >>conftest.$ac_ext
2557: cat >>conftest.$ac_ext <<_ACEOF
2558: /* end confdefs.h. */
2559:
2560: int
2561: main ()
2562: {
2563:
2564: ;
2565: return 0;
2566: }
2567: _ACEOF
2568: rm -f conftest.o conftest.obj
2569: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2570: (eval $ac_compile) 2>&5
2571: ac_status=$?
2572: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2573: (exit $ac_status); }; then
2574: for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2575: case $ac_file in
2576: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2577: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2578: break;;
2579: esac
2580: done
2581: else
2582: echo "$as_me: failed program was:" >&5
2583: sed 's/^/| /' conftest.$ac_ext >&5
2584:
2585: { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2586: See \`config.log' for more details." >&5
2587: echo "$as_me: error: cannot compute suffix of object files: cannot compile
2588: See \`config.log' for more details." >&2;}
2589: { (exit 1); exit 1; }; }
2590: fi
2591:
2592: rm -f conftest.$ac_cv_objext conftest.$ac_ext
2593: fi
2594: echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2595: echo "${ECHO_T}$ac_cv_objext" >&6
2596: OBJEXT=$ac_cv_objext
2597: ac_objext=$OBJEXT
2598: echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2599: echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2600: if test "${ac_cv_c_compiler_gnu+set}" = set; then
2601: echo $ECHO_N "(cached) $ECHO_C" >&6
2602: else
2603: cat >conftest.$ac_ext <<_ACEOF
2604: #line $LINENO "configure"
2605: /* confdefs.h. */
2606: _ACEOF
2607: cat confdefs.h >>conftest.$ac_ext
2608: cat >>conftest.$ac_ext <<_ACEOF
2609: /* end confdefs.h. */
2610:
2611: int
2612: main ()
2613: {
2614: #ifndef __GNUC__
2615: choke me
2616: #endif
2617:
2618: ;
2619: return 0;
2620: }
2621: _ACEOF
2622: rm -f conftest.$ac_objext
2623: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2624: (eval $ac_compile) 2>&5
2625: ac_status=$?
2626: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2627: (exit $ac_status); } &&
2628: { ac_try='test -s conftest.$ac_objext'
2629: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2630: (eval $ac_try) 2>&5
2631: ac_status=$?
2632: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2633: (exit $ac_status); }; }; then
2634: ac_compiler_gnu=yes
2635: else
2636: echo "$as_me: failed program was:" >&5
2637: sed 's/^/| /' conftest.$ac_ext >&5
2638:
2639: ac_compiler_gnu=no
2640: fi
2641: rm -f conftest.$ac_objext conftest.$ac_ext
2642: ac_cv_c_compiler_gnu=$ac_compiler_gnu
2643:
2644: fi
2645: echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2646: echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2647: GCC=`test $ac_compiler_gnu = yes && echo yes`
2648: ac_test_CFLAGS=${CFLAGS+set}
2649: ac_save_CFLAGS=$CFLAGS
2650: CFLAGS="-g"
2651: echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2652: echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2653: if test "${ac_cv_prog_cc_g+set}" = set; then
2654: echo $ECHO_N "(cached) $ECHO_C" >&6
2655: else
2656: cat >conftest.$ac_ext <<_ACEOF
2657: #line $LINENO "configure"
2658: /* confdefs.h. */
2659: _ACEOF
2660: cat confdefs.h >>conftest.$ac_ext
2661: cat >>conftest.$ac_ext <<_ACEOF
2662: /* end confdefs.h. */
2663:
2664: int
2665: main ()
2666: {
2667:
2668: ;
2669: return 0;
2670: }
2671: _ACEOF
2672: rm -f conftest.$ac_objext
2673: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2674: (eval $ac_compile) 2>&5
2675: ac_status=$?
2676: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2677: (exit $ac_status); } &&
2678: { ac_try='test -s conftest.$ac_objext'
2679: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2680: (eval $ac_try) 2>&5
2681: ac_status=$?
2682: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2683: (exit $ac_status); }; }; then
2684: ac_cv_prog_cc_g=yes
2685: else
2686: echo "$as_me: failed program was:" >&5
2687: sed 's/^/| /' conftest.$ac_ext >&5
2688:
2689: ac_cv_prog_cc_g=no
2690: fi
2691: rm -f conftest.$ac_objext conftest.$ac_ext
2692: fi
2693: echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2694: echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1.1 paf 2695: if test "$ac_test_CFLAGS" = set; then
1.62 paf 2696: CFLAGS=$ac_save_CFLAGS
1.1 paf 2697: elif test $ac_cv_prog_cc_g = yes; then
2698: if test "$GCC" = yes; then
2699: CFLAGS="-g -O2"
2700: else
2701: CFLAGS="-g"
2702: fi
2703: else
2704: if test "$GCC" = yes; then
2705: CFLAGS="-O2"
2706: else
2707: CFLAGS=
2708: fi
2709: fi
1.62 paf 2710: echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2711: echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2712: if test "${ac_cv_prog_cc_stdc+set}" = set; then
2713: echo $ECHO_N "(cached) $ECHO_C" >&6
2714: else
2715: ac_cv_prog_cc_stdc=no
2716: ac_save_CC=$CC
2717: cat >conftest.$ac_ext <<_ACEOF
2718: #line $LINENO "configure"
2719: /* confdefs.h. */
2720: _ACEOF
2721: cat confdefs.h >>conftest.$ac_ext
2722: cat >>conftest.$ac_ext <<_ACEOF
2723: /* end confdefs.h. */
2724: #include <stdarg.h>
2725: #include <stdio.h>
2726: #include <sys/types.h>
2727: #include <sys/stat.h>
2728: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2729: struct buf { int x; };
2730: FILE * (*rcsopen) (struct buf *, struct stat *, int);
2731: static char *e (p, i)
2732: char **p;
2733: int i;
2734: {
2735: return p[i];
2736: }
2737: static char *f (char * (*g) (char **, int), char **p, ...)
2738: {
2739: char *s;
2740: va_list v;
2741: va_start (v,p);
2742: s = g (p, va_arg (v,int));
2743: va_end (v);
2744: return s;
2745: }
2746: int test (int i, double x);
2747: struct s1 {int (*f) (int a);};
2748: struct s2 {int (*f) (double a);};
2749: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2750: int argc;
2751: char **argv;
2752: int
2753: main ()
2754: {
2755: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2756: ;
2757: return 0;
2758: }
2759: _ACEOF
2760: # Don't try gcc -ansi; that turns off useful extensions and
2761: # breaks some systems' header files.
2762: # AIX -qlanglvl=ansi
2763: # Ultrix and OSF/1 -std1
2764: # HP-UX 10.20 and later -Ae
2765: # HP-UX older versions -Aa -D_HPUX_SOURCE
2766: # SVR4 -Xc -D__EXTENSIONS__
2767: for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2768: do
2769: CC="$ac_save_CC $ac_arg"
2770: rm -f conftest.$ac_objext
2771: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2772: (eval $ac_compile) 2>&5
2773: ac_status=$?
2774: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2775: (exit $ac_status); } &&
2776: { ac_try='test -s conftest.$ac_objext'
2777: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2778: (eval $ac_try) 2>&5
2779: ac_status=$?
2780: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2781: (exit $ac_status); }; }; then
2782: ac_cv_prog_cc_stdc=$ac_arg
2783: break
2784: else
2785: echo "$as_me: failed program was:" >&5
2786: sed 's/^/| /' conftest.$ac_ext >&5
1.1 paf 2787:
2788: fi
1.62 paf 2789: rm -f conftest.$ac_objext
1.1 paf 2790: done
1.62 paf 2791: rm -f conftest.$ac_ext conftest.$ac_objext
2792: CC=$ac_save_CC
1.1 paf 2793:
2794: fi
2795:
1.62 paf 2796: case "x$ac_cv_prog_cc_stdc" in
2797: x|xno)
2798: echo "$as_me:$LINENO: result: none needed" >&5
2799: echo "${ECHO_T}none needed" >&6 ;;
2800: *)
2801: echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2802: echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2803: CC="$CC $ac_cv_prog_cc_stdc" ;;
1.1 paf 2804: esac
2805:
1.62 paf 2806: # Some people use a C++ compiler to compile C. Since we use `exit',
2807: # in C++ we need to declare it. In case someone uses the same compiler
2808: # for both compiling C and C++ we need to have the C++ compiler decide
2809: # the declaration of exit, since it's the most demanding environment.
2810: cat >conftest.$ac_ext <<_ACEOF
2811: #ifndef __cplusplus
2812: choke me
2813: #endif
2814: _ACEOF
2815: rm -f conftest.$ac_objext
2816: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2817: (eval $ac_compile) 2>&5
2818: ac_status=$?
2819: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2820: (exit $ac_status); } &&
2821: { ac_try='test -s conftest.$ac_objext'
2822: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2823: (eval $ac_try) 2>&5
2824: ac_status=$?
2825: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2826: (exit $ac_status); }; }; then
2827: for ac_declaration in \
2828: ''\
2829: '#include <stdlib.h>' \
2830: 'extern "C" void std::exit (int) throw (); using std::exit;' \
2831: 'extern "C" void std::exit (int); using std::exit;' \
2832: 'extern "C" void exit (int) throw ();' \
2833: 'extern "C" void exit (int);' \
2834: 'void exit (int);'
1.1 paf 2835: do
1.62 paf 2836: cat >conftest.$ac_ext <<_ACEOF
2837: #line $LINENO "configure"
2838: /* confdefs.h. */
2839: _ACEOF
2840: cat confdefs.h >>conftest.$ac_ext
2841: cat >>conftest.$ac_ext <<_ACEOF
2842: /* end confdefs.h. */
2843: #include <stdlib.h>
2844: $ac_declaration
2845: int
2846: main ()
2847: {
2848: exit (42);
2849: ;
2850: return 0;
2851: }
2852: _ACEOF
2853: rm -f conftest.$ac_objext
2854: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2855: (eval $ac_compile) 2>&5
2856: ac_status=$?
2857: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2858: (exit $ac_status); } &&
2859: { ac_try='test -s conftest.$ac_objext'
2860: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2861: (eval $ac_try) 2>&5
2862: ac_status=$?
2863: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2864: (exit $ac_status); }; }; then
2865: :
1.1 paf 2866: else
1.62 paf 2867: echo "$as_me: failed program was:" >&5
2868: sed 's/^/| /' conftest.$ac_ext >&5
2869:
2870: continue
2871: fi
2872: rm -f conftest.$ac_objext conftest.$ac_ext
2873: cat >conftest.$ac_ext <<_ACEOF
2874: #line $LINENO "configure"
2875: /* confdefs.h. */
2876: _ACEOF
2877: cat confdefs.h >>conftest.$ac_ext
2878: cat >>conftest.$ac_ext <<_ACEOF
2879: /* end confdefs.h. */
2880: $ac_declaration
2881: int
2882: main ()
2883: {
2884: exit (42);
2885: ;
2886: return 0;
2887: }
2888: _ACEOF
2889: rm -f conftest.$ac_objext
2890: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2891: (eval $ac_compile) 2>&5
2892: ac_status=$?
2893: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2894: (exit $ac_status); } &&
2895: { ac_try='test -s conftest.$ac_objext'
2896: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2897: (eval $ac_try) 2>&5
2898: ac_status=$?
2899: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2900: (exit $ac_status); }; }; then
2901: break
1.1 paf 2902: else
1.62 paf 2903: echo "$as_me: failed program was:" >&5
2904: sed 's/^/| /' conftest.$ac_ext >&5
2905:
1.1 paf 2906: fi
1.62 paf 2907: rm -f conftest.$ac_objext conftest.$ac_ext
2908: done
2909: rm -f conftest*
2910: if test -n "$ac_declaration"; then
2911: echo '#ifdef __cplusplus' >>confdefs.h
2912: echo $ac_declaration >>confdefs.h
2913: echo '#endif' >>confdefs.h
1.1 paf 2914: fi
1.62 paf 2915:
1.1 paf 2916: else
1.62 paf 2917: echo "$as_me: failed program was:" >&5
2918: sed 's/^/| /' conftest.$ac_ext >&5
2919:
2920: fi
2921: rm -f conftest.$ac_objext conftest.$ac_ext
2922: ac_ext=c
2923: ac_cpp='$CPP $CPPFLAGS'
2924: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2925: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2926: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2927: rm -f .deps 2>/dev/null
2928: mkdir .deps 2>/dev/null
2929: if test -d .deps; then
2930: DEPDIR=.deps
2931: else
2932: # MS-DOS does not allow filenames that begin with a dot.
2933: DEPDIR=_deps
2934: fi
2935: rmdir .deps 2>/dev/null
2936:
2937:
2938: ac_config_commands="$ac_config_commands depfiles"
2939:
2940:
2941: am_make=${MAKE-make}
2942: cat > confinc << 'END'
2943: doit:
2944: @echo done
2945: END
2946: # If we don't find an include directive, just comment out the code.
2947: echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2948: echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2949: am__include="#"
2950: am__quote=
2951: _am_result=none
2952: # First try GNU make style include.
2953: echo "include confinc" > confmf
2954: # We grep out `Entering directory' and `Leaving directory'
2955: # messages which can occur if `w' ends up in MAKEFLAGS.
2956: # In particular we don't look at `^make:' because GNU make might
2957: # be invoked under some other name (usually "gmake"), in which
2958: # case it prints its new name instead of `make'.
2959: if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2960: am__include=include
2961: am__quote=
2962: _am_result=GNU
2963: fi
2964: # Now try BSD make style include.
2965: if test "$am__include" = "#"; then
2966: echo '.include "confinc"' > confmf
2967: if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2968: am__include=.include
2969: am__quote="\""
2970: _am_result=BSD
2971: fi
2972: fi
2973:
2974:
2975: echo "$as_me:$LINENO: result: $_am_result" >&5
2976: echo "${ECHO_T}$_am_result" >&6
2977: rm -f confinc confmf
2978:
2979: # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2980: if test "${enable_dependency_tracking+set}" = set; then
2981: enableval="$enable_dependency_tracking"
2982:
2983: fi;
2984: if test "x$enable_dependency_tracking" != xno; then
2985: am_depcomp="$ac_aux_dir/depcomp"
2986: AMDEPBACKSLASH='\'
1.1 paf 2987: fi
2988:
1.62 paf 2989:
2990: if test "x$enable_dependency_tracking" != xno; then
2991: AMDEP_TRUE=
2992: AMDEP_FALSE='#'
2993: else
2994: AMDEP_TRUE='#'
2995: AMDEP_FALSE=
2996: fi
1.1 paf 2997:
2998:
2999:
3000:
1.62 paf 3001: depcc="$CC" am_compiler_list=
1.1 paf 3002:
1.62 paf 3003: echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3004: echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3005: if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3006: echo $ECHO_N "(cached) $ECHO_C" >&6
3007: else
3008: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3009: # We make a subdir and do the tests there. Otherwise we can end up
3010: # making bogus files that we don't know about and never remove. For
3011: # instance it was reported that on HP-UX the gcc test will end up
3012: # making a dummy file named `D' -- because `-MD' means `put the output
3013: # in D'.
3014: mkdir conftest.dir
3015: # Copy depcomp to subdir because otherwise we won't find it if we're
3016: # using a relative directory.
3017: cp "$am_depcomp" conftest.dir
3018: cd conftest.dir
1.1 paf 3019:
1.62 paf 3020: am_cv_CC_dependencies_compiler_type=none
3021: if test "$am_compiler_list" = ""; then
3022: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
1.1 paf 3023: fi
1.62 paf 3024: for depmode in $am_compiler_list; do
3025: # We need to recreate these files for each test, as the compiler may
3026: # overwrite some of them when testing with obscure command lines.
3027: # This happens at least with the AIX C compiler.
3028: echo '#include "conftest.h"' > conftest.c
3029: echo 'int i;' > conftest.h
3030: echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
3031:
3032: case $depmode in
3033: nosideeffect)
3034: # after this tag, mechanisms are not by side-effect, so they'll
3035: # only be used when explicitly requested
3036: if test "x$enable_dependency_tracking" = xyes; then
3037: continue
3038: else
3039: break
3040: fi
3041: ;;
3042: none) break ;;
3043: esac
3044: # We check with `-c' and `-o' for the sake of the "dashmstdout"
3045: # mode. It turns out that the SunPro C++ compiler does not properly
3046: # handle `-M -o', and we need to detect this.
3047: if depmode=$depmode \
3048: source=conftest.c object=conftest.o \
3049: depfile=conftest.Po tmpdepfile=conftest.TPo \
3050: $SHELL ./depcomp $depcc -c -o conftest.o conftest.c >/dev/null 2>&1 &&
3051: grep conftest.h conftest.Po > /dev/null 2>&1 &&
3052: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3053: am_cv_CC_dependencies_compiler_type=$depmode
3054: break
3055: fi
3056: done
3057:
3058: cd ..
3059: rm -rf conftest.dir
1.1 paf 3060: else
1.62 paf 3061: am_cv_CC_dependencies_compiler_type=none
3062: fi
3063:
1.1 paf 3064: fi
1.62 paf 3065: echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3066: echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3067: CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3068:
3069:
1.1 paf 3070:
1.62 paf 3071: if
3072: test "x$enable_dependency_tracking" != xno \
3073: && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3074: am__fastdepCC_TRUE=
3075: am__fastdepCC_FALSE='#'
3076: else
3077: am__fastdepCC_TRUE='#'
3078: am__fastdepCC_FALSE=
1.1 paf 3079: fi
3080:
1.62 paf 3081:
3082: ac_ext=c
3083: ac_cpp='$CPP $CPPFLAGS'
3084: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3085: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3086: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3087:
3088: echo "$as_me:$LINENO: checking for inline" >&5
3089: echo $ECHO_N "checking for inline... $ECHO_C" >&6
3090: if test "${ac_cv_c_inline+set}" = set; then
3091: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 paf 3092: else
1.62 paf 3093: ac_cv_c_inline=no
3094: for ac_kw in inline __inline__ __inline; do
3095: cat >conftest.$ac_ext <<_ACEOF
3096: #line $LINENO "configure"
3097: /* confdefs.h. */
3098: _ACEOF
3099: cat confdefs.h >>conftest.$ac_ext
3100: cat >>conftest.$ac_ext <<_ACEOF
3101: /* end confdefs.h. */
3102: #ifndef __cplusplus
3103: typedef int foo_t;
3104: static $ac_kw foo_t static_foo () {return 0; }
3105: $ac_kw foo_t foo () {return 0; }
1.1 paf 3106: #endif
1.62 paf 3107:
3108: _ACEOF
3109: rm -f conftest.$ac_objext
3110: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3111: (eval $ac_compile) 2>&5
3112: ac_status=$?
3113: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3114: (exit $ac_status); } &&
3115: { ac_try='test -s conftest.$ac_objext'
3116: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3117: (eval $ac_try) 2>&5
3118: ac_status=$?
3119: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3120: (exit $ac_status); }; }; then
3121: ac_cv_c_inline=$ac_kw; break
1.1 paf 3122: else
1.62 paf 3123: echo "$as_me: failed program was:" >&5
3124: sed 's/^/| /' conftest.$ac_ext >&5
3125:
1.1 paf 3126: fi
1.62 paf 3127: rm -f conftest.$ac_objext conftest.$ac_ext
3128: done
3129:
1.1 paf 3130: fi
1.62 paf 3131: echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3132: echo "${ECHO_T}$ac_cv_c_inline" >&6
3133: case $ac_cv_c_inline in
3134: inline | yes) ;;
3135: no)
3136: cat >>confdefs.h <<\_ACEOF
3137: #define inline
3138: _ACEOF
3139: ;;
3140: *) cat >>confdefs.h <<_ACEOF
3141: #define inline $ac_cv_c_inline
3142: _ACEOF
3143: ;;
3144: esac
1.1 paf 3145:
1.62 paf 3146: ac_ext=cc
3147: ac_cpp='$CXXCPP $CPPFLAGS'
3148: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3149: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3150: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3151: if test -n "$ac_tool_prefix"; then
3152: for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3153: do
3154: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3155: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3156: echo "$as_me:$LINENO: checking for $ac_word" >&5
3157: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3158: if test "${ac_cv_prog_CXX+set}" = set; then
3159: echo $ECHO_N "(cached) $ECHO_C" >&6
3160: else
3161: if test -n "$CXX"; then
3162: ac_cv_prog_CXX="$CXX" # Let the user override the test.
3163: else
3164: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3165: for as_dir in $PATH
3166: do
3167: IFS=$as_save_IFS
3168: test -z "$as_dir" && as_dir=.
3169: for ac_exec_ext in '' $ac_executable_extensions; do
3170: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3171: ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3172: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3173: break 2
3174: fi
3175: done
3176: done
1.1 paf 3177:
1.62 paf 3178: fi
3179: fi
3180: CXX=$ac_cv_prog_CXX
3181: if test -n "$CXX"; then
3182: echo "$as_me:$LINENO: result: $CXX" >&5
3183: echo "${ECHO_T}$CXX" >&6
1.1 paf 3184: else
1.62 paf 3185: echo "$as_me:$LINENO: result: no" >&5
3186: echo "${ECHO_T}no" >&6
1.1 paf 3187: fi
3188:
1.62 paf 3189: test -n "$CXX" && break
3190: done
3191: fi
3192: if test -z "$CXX"; then
3193: ac_ct_CXX=$CXX
3194: for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3195: do
3196: # Extract the first word of "$ac_prog", so it can be a program name with args.
3197: set dummy $ac_prog; ac_word=$2
3198: echo "$as_me:$LINENO: checking for $ac_word" >&5
3199: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3200: if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3201: echo $ECHO_N "(cached) $ECHO_C" >&6
3202: else
3203: if test -n "$ac_ct_CXX"; then
3204: ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1.1 paf 3205: else
1.62 paf 3206: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3207: for as_dir in $PATH
3208: do
3209: IFS=$as_save_IFS
3210: test -z "$as_dir" && as_dir=.
3211: for ac_exec_ext in '' $ac_executable_extensions; do
3212: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3213: ac_cv_prog_ac_ct_CXX="$ac_prog"
3214: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3215: break 2
3216: fi
3217: done
3218: done
3219:
3220: fi
3221: fi
3222: ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3223: if test -n "$ac_ct_CXX"; then
3224: echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3225: echo "${ECHO_T}$ac_ct_CXX" >&6
1.1 paf 3226: else
1.62 paf 3227: echo "$as_me:$LINENO: result: no" >&5
3228: echo "${ECHO_T}no" >&6
1.1 paf 3229: fi
3230:
1.62 paf 3231: test -n "$ac_ct_CXX" && break
3232: done
3233: test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3234:
3235: CXX=$ac_ct_CXX
1.1 paf 3236: fi
3237:
1.62 paf 3238:
3239: # Provide some information about the compiler.
3240: echo "$as_me:$LINENO:" \
3241: "checking for C++ compiler version" >&5
3242: ac_compiler=`set X $ac_compile; echo $2`
3243: { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3244: (eval $ac_compiler --version </dev/null >&5) 2>&5
3245: ac_status=$?
3246: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3247: (exit $ac_status); }
3248: { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3249: (eval $ac_compiler -v </dev/null >&5) 2>&5
3250: ac_status=$?
3251: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3252: (exit $ac_status); }
3253: { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3254: (eval $ac_compiler -V </dev/null >&5) 2>&5
3255: ac_status=$?
3256: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3257: (exit $ac_status); }
3258:
3259: echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3260: echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3261: if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3262: echo $ECHO_N "(cached) $ECHO_C" >&6
3263: else
3264: cat >conftest.$ac_ext <<_ACEOF
3265: #line $LINENO "configure"
3266: /* confdefs.h. */
3267: _ACEOF
3268: cat confdefs.h >>conftest.$ac_ext
3269: cat >>conftest.$ac_ext <<_ACEOF
3270: /* end confdefs.h. */
3271:
3272: int
3273: main ()
3274: {
3275: #ifndef __GNUC__
3276: choke me
3277: #endif
3278:
3279: ;
3280: return 0;
3281: }
3282: _ACEOF
3283: rm -f conftest.$ac_objext
3284: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3285: (eval $ac_compile) 2>&5
3286: ac_status=$?
3287: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3288: (exit $ac_status); } &&
3289: { ac_try='test -s conftest.$ac_objext'
3290: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3291: (eval $ac_try) 2>&5
3292: ac_status=$?
3293: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3294: (exit $ac_status); }; }; then
3295: ac_compiler_gnu=yes
3296: else
3297: echo "$as_me: failed program was:" >&5
3298: sed 's/^/| /' conftest.$ac_ext >&5
3299:
3300: ac_compiler_gnu=no
3301: fi
3302: rm -f conftest.$ac_objext conftest.$ac_ext
3303: ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3304:
3305: fi
3306: echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3307: echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3308: GXX=`test $ac_compiler_gnu = yes && echo yes`
3309: ac_test_CXXFLAGS=${CXXFLAGS+set}
3310: ac_save_CXXFLAGS=$CXXFLAGS
3311: CXXFLAGS="-g"
3312: echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3313: echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3314: if test "${ac_cv_prog_cxx_g+set}" = set; then
3315: echo $ECHO_N "(cached) $ECHO_C" >&6
3316: else
3317: cat >conftest.$ac_ext <<_ACEOF
3318: #line $LINENO "configure"
3319: /* confdefs.h. */
3320: _ACEOF
3321: cat confdefs.h >>conftest.$ac_ext
3322: cat >>conftest.$ac_ext <<_ACEOF
3323: /* end confdefs.h. */
3324:
3325: int
3326: main ()
3327: {
3328:
3329: ;
3330: return 0;
3331: }
3332: _ACEOF
3333: rm -f conftest.$ac_objext
3334: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3335: (eval $ac_compile) 2>&5
3336: ac_status=$?
3337: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3338: (exit $ac_status); } &&
3339: { ac_try='test -s conftest.$ac_objext'
3340: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3341: (eval $ac_try) 2>&5
3342: ac_status=$?
3343: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3344: (exit $ac_status); }; }; then
3345: ac_cv_prog_cxx_g=yes
3346: else
3347: echo "$as_me: failed program was:" >&5
3348: sed 's/^/| /' conftest.$ac_ext >&5
3349:
3350: ac_cv_prog_cxx_g=no
3351: fi
3352: rm -f conftest.$ac_objext conftest.$ac_ext
3353: fi
3354: echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3355: echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
1.1 paf 3356: if test "$ac_test_CXXFLAGS" = set; then
1.62 paf 3357: CXXFLAGS=$ac_save_CXXFLAGS
1.1 paf 3358: elif test $ac_cv_prog_cxx_g = yes; then
3359: if test "$GXX" = yes; then
3360: CXXFLAGS="-g -O2"
3361: else
3362: CXXFLAGS="-g"
3363: fi
3364: else
3365: if test "$GXX" = yes; then
3366: CXXFLAGS="-O2"
3367: else
3368: CXXFLAGS=
3369: fi
3370: fi
1.62 paf 3371: for ac_declaration in \
3372: ''\
3373: '#include <stdlib.h>' \
3374: 'extern "C" void std::exit (int) throw (); using std::exit;' \
3375: 'extern "C" void std::exit (int); using std::exit;' \
3376: 'extern "C" void exit (int) throw ();' \
3377: 'extern "C" void exit (int);' \
3378: 'void exit (int);'
3379: do
3380: cat >conftest.$ac_ext <<_ACEOF
3381: #line $LINENO "configure"
3382: /* confdefs.h. */
3383: _ACEOF
3384: cat confdefs.h >>conftest.$ac_ext
3385: cat >>conftest.$ac_ext <<_ACEOF
3386: /* end confdefs.h. */
3387: #include <stdlib.h>
3388: $ac_declaration
3389: int
3390: main ()
3391: {
3392: exit (42);
3393: ;
3394: return 0;
3395: }
3396: _ACEOF
3397: rm -f conftest.$ac_objext
3398: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3399: (eval $ac_compile) 2>&5
3400: ac_status=$?
3401: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3402: (exit $ac_status); } &&
3403: { ac_try='test -s conftest.$ac_objext'
3404: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3405: (eval $ac_try) 2>&5
3406: ac_status=$?
3407: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3408: (exit $ac_status); }; }; then
3409: :
3410: else
3411: echo "$as_me: failed program was:" >&5
3412: sed 's/^/| /' conftest.$ac_ext >&5
3413:
3414: continue
3415: fi
3416: rm -f conftest.$ac_objext conftest.$ac_ext
3417: cat >conftest.$ac_ext <<_ACEOF
3418: #line $LINENO "configure"
3419: /* confdefs.h. */
3420: _ACEOF
3421: cat confdefs.h >>conftest.$ac_ext
3422: cat >>conftest.$ac_ext <<_ACEOF
3423: /* end confdefs.h. */
3424: $ac_declaration
3425: int
3426: main ()
3427: {
3428: exit (42);
3429: ;
3430: return 0;
3431: }
3432: _ACEOF
3433: rm -f conftest.$ac_objext
3434: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3435: (eval $ac_compile) 2>&5
3436: ac_status=$?
3437: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3438: (exit $ac_status); } &&
3439: { ac_try='test -s conftest.$ac_objext'
3440: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3441: (eval $ac_try) 2>&5
3442: ac_status=$?
3443: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3444: (exit $ac_status); }; }; then
3445: break
3446: else
3447: echo "$as_me: failed program was:" >&5
3448: sed 's/^/| /' conftest.$ac_ext >&5
3449:
3450: fi
3451: rm -f conftest.$ac_objext conftest.$ac_ext
3452: done
3453: rm -f conftest*
3454: if test -n "$ac_declaration"; then
3455: echo '#ifdef __cplusplus' >>confdefs.h
3456: echo $ac_declaration >>confdefs.h
3457: echo '#endif' >>confdefs.h
3458: fi
3459:
3460: ac_ext=c
3461: ac_cpp='$CPP $CPPFLAGS'
3462: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3463: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3464: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3465:
3466: depcc="$CXX" am_compiler_list=
3467:
3468: echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3469: echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3470: if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3471: echo $ECHO_N "(cached) $ECHO_C" >&6
3472: else
3473: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3474: # We make a subdir and do the tests there. Otherwise we can end up
3475: # making bogus files that we don't know about and never remove. For
3476: # instance it was reported that on HP-UX the gcc test will end up
3477: # making a dummy file named `D' -- because `-MD' means `put the output
3478: # in D'.
3479: mkdir conftest.dir
3480: # Copy depcomp to subdir because otherwise we won't find it if we're
3481: # using a relative directory.
3482: cp "$am_depcomp" conftest.dir
3483: cd conftest.dir
3484:
3485: am_cv_CXX_dependencies_compiler_type=none
3486: if test "$am_compiler_list" = ""; then
3487: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3488: fi
3489: for depmode in $am_compiler_list; do
3490: # We need to recreate these files for each test, as the compiler may
3491: # overwrite some of them when testing with obscure command lines.
3492: # This happens at least with the AIX C compiler.
3493: echo '#include "conftest.h"' > conftest.c
3494: echo 'int i;' > conftest.h
3495: echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
3496:
3497: case $depmode in
3498: nosideeffect)
3499: # after this tag, mechanisms are not by side-effect, so they'll
3500: # only be used when explicitly requested
3501: if test "x$enable_dependency_tracking" = xyes; then
3502: continue
3503: else
3504: break
3505: fi
3506: ;;
3507: none) break ;;
3508: esac
3509: # We check with `-c' and `-o' for the sake of the "dashmstdout"
3510: # mode. It turns out that the SunPro C++ compiler does not properly
3511: # handle `-M -o', and we need to detect this.
3512: if depmode=$depmode \
3513: source=conftest.c object=conftest.o \
3514: depfile=conftest.Po tmpdepfile=conftest.TPo \
3515: $SHELL ./depcomp $depcc -c -o conftest.o conftest.c >/dev/null 2>&1 &&
3516: grep conftest.h conftest.Po > /dev/null 2>&1 &&
3517: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3518: am_cv_CXX_dependencies_compiler_type=$depmode
3519: break
3520: fi
3521: done
3522:
3523: cd ..
3524: rm -rf conftest.dir
3525: else
3526: am_cv_CXX_dependencies_compiler_type=none
3527: fi
3528:
3529: fi
3530: echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3531: echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3532: CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3533:
3534:
3535:
3536: if
3537: test "x$enable_dependency_tracking" != xno \
3538: && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3539: am__fastdepCXX_TRUE=
3540: am__fastdepCXX_FALSE='#'
3541: else
3542: am__fastdepCXX_TRUE='#'
3543: am__fastdepCXX_FALSE=
3544: fi
3545:
1.1 paf 3546:
1.62 paf 3547: ac_ext=cc
1.1 paf 3548: ac_cpp='$CXXCPP $CPPFLAGS'
1.62 paf 3549: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3550: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3551: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1.1 paf 3552:
3553:
3554:
1.60 paf 3555: # Check whether --enable-safe-mode or --disable-safe-mode was given.
3556: if test "${enable_safe_mode+set}" = set; then
3557: enableval="$enable_safe_mode"
1.62 paf 3558:
1.60 paf 3559: SAFE_MODE=$enableval
3560:
1.1 paf 3561:
1.62 paf 3562: fi;
1.60 paf 3563: if test "$SAFE_MODE" = "no"; then
1.62 paf 3564: { echo "$as_me:$LINENO: WARNING: enabling reading of files belonging to group+user other then effective" >&5
3565: echo "$as_me: WARNING: enabling reading of files belonging to group+user other then effective" >&2;}
1.60 paf 3566: else
1.62 paf 3567:
3568: cat >>confdefs.h <<\_ACEOF
3569: #define PA_SAFE_MODE
3570: _ACEOF
1.1 paf 3571:
3572: fi
3573:
1.13 paf 3574: # Check whether --enable-execs or --disable-execs was given.
3575: if test "${enable_execs+set}" = set; then
3576: enableval="$enable_execs"
1.62 paf 3577:
1.13 paf 3578: if test "$enableval" = "no"; then
1.62 paf 3579: { echo "$as_me:$LINENO: WARNING: disabling file execs" >&5
3580: echo "$as_me: WARNING: disabling file execs" >&2;}
3581:
3582: cat >>confdefs.h <<\_ACEOF
3583: #define NO_PA_EXECS
3584: _ACEOF
1.13 paf 3585:
3586: fi
3587:
3588:
1.62 paf 3589: fi;
1.13 paf 3590:
1.60 paf 3591: # Check whether --enable-string-origins or --disable-string-origins was given.
3592: if test "${enable_string_origins+set}" = set; then
3593: enableval="$enable_string_origins"
1.62 paf 3594:
1.14 paf 3595: if test "$enableval" = "no"; then
1.62 paf 3596: { echo "$as_me:$LINENO: WARNING: disabling string origin tracking" >&5
3597: echo "$as_me: WARNING: disabling string origin tracking" >&2;}
3598:
3599: cat >>confdefs.h <<\_ACEOF
3600: #define NO_STRING_ORIGIN
3601: _ACEOF
1.14 paf 3602:
3603: fi
3604:
3605:
1.62 paf 3606: fi;
1.60 paf 3607:
3608:
1.18 paf 3609: srccharsetsdir=$srcdir/etc/parser3.charsets
1.17 paf 3610: CHARSETS_REQUESTED="windows-1251"
1.62 paf 3611:
1.17 paf 3612: # Check whether --with-charsets or --without-charsets was given.
3613: if test "${with_charsets+set}" = set; then
3614: withval="$with_charsets"
3615: CHARSETS_REQUESTED=`echo $withval | sed -e 's/,/ /g'`
1.62 paf 3616: fi;
1.17 paf 3617:
1.18 paf 3618: # Checking whether all requested charsets have corresponding .cfg files
3619: for c in $CHARSETS_REQUESTED; do
3620: if test \! -f $srccharsetsdir/$c.cfg; then
1.62 paf 3621: { { echo "$as_me:$LINENO: error: bad charset requested \"$c\" - file $srccharsetsdir/$c.cfg not found" >&5
3622: echo "$as_me: error: bad charset requested \"$c\" - file $srccharsetsdir/$c.cfg not found" >&2;}
3623: { (exit 1); exit 1; }; }
1.18 paf 3624: fi
3625: done
1.17 paf 3626:
1.18 paf 3627: # Switching on commentcharset_XXX='#'
1.17 paf 3628:
3629:
3630: commentcharset_windows1251='#'
1.18 paf 3631: for c in $CHARSETS_REQUESTED; do
1.17 paf 3632: if test "windows-1251" = "$c"; then
1.62 paf 3633: { echo "$as_me:$LINENO: WARNING: enabling charset windows-1251" >&5
3634: echo "$as_me: WARNING: enabling charset windows-1251" >&2;}
1.18 paf 3635: commentcharset_windows1251=
1.17 paf 3636: fi
3637: done
1.62 paf 3638:
1.17 paf 3639:
3640:
3641: commentcharset_windows1250='#'
1.18 paf 3642: for c in $CHARSETS_REQUESTED; do
1.17 paf 3643: if test "windows-1250" = "$c"; then
1.62 paf 3644: { echo "$as_me:$LINENO: WARNING: enabling charset windows-1250" >&5
3645: echo "$as_me: WARNING: enabling charset windows-1250" >&2;}
1.18 paf 3646: commentcharset_windows1250=
1.17 paf 3647: fi
3648: done
1.62 paf 3649:
1.17 paf 3650:
3651:
3652: commentcharset_windows1257='#'
1.18 paf 3653: for c in $CHARSETS_REQUESTED; do
1.17 paf 3654: if test "windows-1257" = "$c"; then
1.62 paf 3655: { echo "$as_me:$LINENO: WARNING: enabling charset windows-1257" >&5
3656: echo "$as_me: WARNING: enabling charset windows-1257" >&2;}
1.18 paf 3657: commentcharset_windows1257=
1.17 paf 3658: fi
3659: done
1.62 paf 3660:
1.17 paf 3661:
3662:
3663: commentcharset_koi8r='#'
1.18 paf 3664: for c in $CHARSETS_REQUESTED; do
1.17 paf 3665: if test "koi8-r" = "$c"; then
1.62 paf 3666: { echo "$as_me:$LINENO: WARNING: enabling charset koi8-r" >&5
3667: echo "$as_me: WARNING: enabling charset koi8-r" >&2;}
1.18 paf 3668: commentcharset_koi8r=
1.17 paf 3669: fi
3670: done
3671:
3672:
3673:
1.62 paf 3674:
3675: echo "$as_me:$LINENO: checking for dynamic-link library extension" >&5
3676: echo $ECHO_N "checking for dynamic-link library extension... $ECHO_C" >&6
1.40 paf 3677: case "$host_os" in
3678: hpux9* | hpux10* | hpux11*)
3679: dll_extension=sl
3680: ;;
3681: cygwin)
3682: dll_extension=dll
3683: ;;
3684: *)
3685: dll_extension=so
3686: esac
1.62 paf 3687: echo "$as_me:$LINENO: result: $dll_extension" >&5
3688: echo "${ECHO_T}$dll_extension" >&6
3689:
1.40 paf 3690:
3691:
1.17 paf 3692: # Check whether --with-mysql-client or --without-mysql-client was given.
3693: if test "${with_mysql_client+set}" = set; then
3694: withval="$with_mysql_client"
3695: mysql_client=$withval
3696:
3697: else
1.62 paf 3698: echo "$as_me:$LINENO: checking for mysql client" >&5
3699: echo $ECHO_N "checking for mysql client... $ECHO_C" >&6
1.17 paf 3700: for lib in \
1.40 paf 3701: /usr/local/lib/mysql/libmysqlclient.$dll_extension \
3702: /usr/local/lib/libmysqlclient.$dll_extension \
3703: /usr/lib/libmysqlclient.$dll_extension; do
1.17 paf 3704: if test -f $lib; then mysql_client=$lib; fi
3705: done
3706:
3707: if test -z "$mysql_client"; then
3708: mysql_client="-configure could not guess-"
1.62 paf 3709: { echo "$as_me:$LINENO: WARNING: could not guess mysql client" >&5
3710: echo "$as_me: WARNING: could not guess mysql client" >&2;}
1.17 paf 3711: else
1.62 paf 3712: echo "$as_me:$LINENO: result: $mysql_client" >&5
3713: echo "${ECHO_T}$mysql_client" >&6
1.17 paf 3714: fi
3715:
3716:
1.62 paf 3717: fi;
1.17 paf 3718:
3719:
3720:
3721: # Check whether --with-pgsql-client or --without-pgsql-client was given.
3722: if test "${with_pgsql_client+set}" = set; then
3723: withval="$with_pgsql_client"
3724: mysql_client=$withval
3725:
3726: else
1.62 paf 3727: echo "$as_me:$LINENO: checking for pgsql client" >&5
3728: echo $ECHO_N "checking for pgsql client... $ECHO_C" >&6
1.17 paf 3729: for lib in \
1.40 paf 3730: /usr/local/pgsql/lib/libpq.$dll_extension \
3731: /usr/local/lib/libpq.$dll_extension \
3732: /usr/lib/libpq.$dll_extension; do
1.17 paf 3733: if test -f $lib; then pgsql_client=$lib; fi
3734: done
3735:
3736: if test -z "$pgsql_client"; then
3737: pgsql_client="-configure could not guess-"
1.62 paf 3738: { echo "$as_me:$LINENO: WARNING: could not guess pgsql client" >&5
3739: echo "$as_me: WARNING: could not guess pgsql client" >&2;}
1.17 paf 3740: else
1.62 paf 3741: echo "$as_me:$LINENO: result: $pgsql_client" >&5
3742: echo "${ECHO_T}$pgsql_client" >&6
1.17 paf 3743: fi
3744:
3745:
1.62 paf 3746: fi;
1.17 paf 3747:
3748:
3749:
3750: # Check whether --with-oracle-client or --without-oracle-client was given.
3751: if test "${with_oracle_client+set}" = set; then
3752: withval="$with_oracle_client"
3753: oracle_client=$withval
3754:
3755: else
1.62 paf 3756: echo "$as_me:$LINENO: checking for oracle client" >&5
3757: echo $ECHO_N "checking for oracle client... $ECHO_C" >&6
1.40 paf 3758: lib=$ORACLE_HOME/lib/libclntsh.$dll_extension
1.17 paf 3759: if test -f $lib; then oracle_client=$lib; fi
3760:
3761: if test -z "$oracle_client"; then
3762: oracle_client="-configure could not guess-"
1.62 paf 3763: { echo "$as_me:$LINENO: WARNING: could not guess oracle client" >&5
3764: echo "$as_me: WARNING: could not guess oracle client" >&2;}
1.17 paf 3765: else
3766: oracle_client="$oracle_client?ORACLE_HOME=$ORACLE_HOME&ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data"
1.62 paf 3767: echo "$as_me:$LINENO: result: $oracle_client" >&5
3768: echo "${ECHO_T}$oracle_client" >&6
1.17 paf 3769: fi
3770:
3771:
1.62 paf 3772: fi;
1.17 paf 3773:
3774:
3775:
3776:
1.14 paf 3777:
1.1 paf 3778: # Check whether --with-pathlink or --without-pathlink was given.
3779: if test "${with_pathlink+set}" = set; then
3780: withval="$with_pathlink"
3781: LD_PATHLINK=$withval
3782:
1.62 paf 3783: fi;
1.1 paf 3784:
1.59 paf 3785: # Check whether --with-link-stdcpp or --without-link-stdcpp was given.
3786: if test "${with_link_stdcpp+set}" = set; then
3787: withval="$with_link_stdcpp"
1.62 paf 3788:
1.59 paf 3789: LIBSTDCPP_PATH=$withval
3790: if test "$LIBSTDCPP_PATH" = "no"; then
1.62 paf 3791: { echo "$as_me:$LINENO: WARNING: disabling libstdc++ linkage" >&5
3792: echo "$as_me: WARNING: disabling libstdc++ linkage" >&2;}
1.59 paf 3793: else
3794: if test -z "$LD_PATHLINK"; then
1.62 paf 3795: { { echo "$as_me:$LINENO: error: when using --with-link-stdcpp one must specify --with-pathlink" >&5
3796: echo "$as_me: error: when using --with-link-stdcpp one must specify --with-pathlink" >&2;}
3797: { (exit 1); exit 1; }; }
1.59 paf 3798: fi
3799: LIBS="$LIBS -Wl,$LD_PATHLINK -Wl,$LIBSTDCPP_PATH"
3800: fi
3801:
3802: else
3803: #pseudo path, meaning still link libstdcpp. value needed to trick next _CONDITIONAL
3804: LIBSTDCPP_PATH=" "
3805:
1.62 paf 3806: fi;
1.59 paf 3807:
3808:
3809: if test "$LIBSTDCPP_PATH" = "no"; then
3810: DO_NOT_LINK_LIBSTDCPP_TRUE=
3811: DO_NOT_LINK_LIBSTDCPP_FALSE='#'
3812: else
3813: DO_NOT_LINK_LIBSTDCPP_TRUE='#'
3814: DO_NOT_LINK_LIBSTDCPP_FALSE=
3815: fi
3816:
3817:
3818:
1.62 paf 3819:
3820:
1.37 paf 3821: # Check whether --with-sjlj-exceptions or --without-sjlj-exceptions was given.
3822: if test "${with_sjlj_exceptions+set}" = set; then
3823: withval="$with_sjlj_exceptions"
1.62 paf 3824:
3825: cat >>confdefs.h <<\_ACEOF
3826: #define PA_WITH_SJLJ_EXCEPTIONS
3827: _ACEOF
1.37 paf 3828:
3829:
1.62 paf 3830: fi;
1.37 paf 3831:
1.1 paf 3832:
1.15 paf 3833:
1.7 paf 3834: # Check whether --with-glib-config or --without-glib-config was given.
3835: if test "${with_glib_config+set}" = set; then
3836: withval="$with_glib_config"
3837: GLIB_CONFIG=$withval
3838:
1.62 paf 3839: fi;
1.7 paf 3840:
3841:
1.10 paf 3842: # Check whether --with-shared-xml or --without-shared-xml was given.
3843: if test "${with_shared_xml+set}" = set; then
3844: withval="$with_shared_xml"
1.62 paf 3845:
1.1 paf 3846: GNOME_XML=$withval
1.11 paf 3847: XMLBIN="$GNOME_XML/bin"
3848: XMLINC="$GNOME_XML/include"
3849: XMLLIB="$GNOME_XML/lib"
1.1 paf 3850:
1.11 paf 3851: if test \! -d $XMLBIN -o \! -d $XMLINC -o \! -d $XMLLIB; then
1.62 paf 3852: { { echo "$as_me:$LINENO: error: $GNOME_XML does not seem to be valid Gnome installation directory" >&5
3853: echo "$as_me: error: $GNOME_XML does not seem to be valid Gnome installation directory" >&2;}
3854: { (exit 1); exit 1; }; }
1.1 paf 3855: fi
3856:
3857:
1.62 paf 3858: cat >>confdefs.h <<\_ACEOF
3859: #define XML
3860: _ACEOF
3861:
3862:
1.11 paf 3863: LIBXML2_SO_NAME=`cd $XMLLIB ; ls libxml2.?? libxml2.??? 2>/dev/null | grep -v \.la$ | sed 's/lib//' | sed 's/\..*//'`
3864: LIBGDOME_SO_NAME=`cd $XMLLIB ; ls libgdome.?? libgdome.??? 2>/dev/null | grep -v \.la$ | sed 's/lib//' | sed 's/\..*//'`
3865: LIBXSLT_SO_NAME=`cd $XMLLIB ; ls libxslt.?? libxslt.??? 2>/dev/null | grep -v \.la$ | sed 's/lib//' | sed 's/\..*//'`
3866: LIBEXSLT_SO_NAME=`cd $XMLLIB ; ls libexslt.?? libexslt.??? 2>/dev/null | grep -v \.la$ | sed 's/lib//' | sed 's/\..*//'`
1.7 paf 3867:
3868: if test -z "$GLIB_CONFIG"; then
1.11 paf 3869: GLIB_CONFIG=$XMLBIN/glib-config
1.7 paf 3870: if test \! -x $GLIB_CONFIG; then
3871: GLIB_CONFIG=glib-config
3872: fi
1.1 paf 3873: fi
3874: GLIB_CFLAGS=`$GLIB_CONFIG --cflags`
3875: GLIB_LIBS=`$GLIB_CONFIG --libs`
3876:
1.11 paf 3877: XML_INCLUDES="$GLIB_CFLAGS -I$XMLINC -I$XMLINC/libgdome -I$XMLINC/libxml2"
3878: XML_LIBS="$GLIB_LIBS -L$XMLLIB -l$LIBXML2_SO_NAME -l$LIBGDOME_SO_NAME -l$LIBXSLT_SO_NAME -l$LIBEXSLT_SO_NAME"
1.1 paf 3879: if test \! -z "$LD_PATHLINK"; then
1.11 paf 3880: XML_LIBS="$XML_LIBS -Wl,$LD_PATHLINK -Wl,$XMLLIB"
1.1 paf 3881: fi
3882:
1.62 paf 3883: fi;
1.1 paf 3884:
1.10 paf 3885: # Check whether --with-static-xml or --without-static-xml was given.
3886: if test "${with_static_xml+set}" = set; then
3887: withval="$with_static_xml"
1.62 paf 3888:
1.10 paf 3889: GNOME_XML=$withval
1.11 paf 3890: XMLBIN="$GNOME_XML/bin"
3891: XMLINC="$GNOME_XML/include"
3892: XMLLIB="$GNOME_XML/lib"
1.10 paf 3893:
1.11 paf 3894: if test \! -d $XMLBIN -o \! -d $XMLINC -o \! -d $XMLLIB; then
1.62 paf 3895: { { echo "$as_me:$LINENO: error: $GNOME_XML does not seem to be valid Gnome installation directory" >&5
3896: echo "$as_me: error: $GNOME_XML does not seem to be valid Gnome installation directory" >&2;}
3897: { (exit 1); exit 1; }; }
1.10 paf 3898: fi
3899:
1.62 paf 3900:
3901: cat >>confdefs.h <<\_ACEOF
3902: #define XML
3903: _ACEOF
1.10 paf 3904:
3905:
3906: if test -z "$GLIB_CONFIG"; then
1.11 paf 3907: GLIB_CONFIG=$XMLBIN/glib-config
1.10 paf 3908: if test \! -x $GLIB_CONFIG; then
3909: GLIB_CONFIG=glib-config
3910: fi
3911: fi
3912: GLIB_CFLAGS=`$GLIB_CONFIG --cflags`
3913:
1.11 paf 3914: GLIB_DIR=`$GLIB_CONFIG --libs | sed 's/.*-L\([^ ]*\).*/\1/'`
3915: GLIB_NAME=`$GLIB_CONFIG --libs | sed 's/.*-l\([^ ]*\).*/\1/'`
3916: XML_INCLUDES="$GLIB_CFLAGS -I$XMLINC -I$XMLINC/libgdome -I$XMLINC/libxml2"
3917: XML_LIBS="$XMLLIB/libgdome.a $XMLLIB/libxslt.a $XMLLIB/libexslt.a $XMLLIB/libxml2.a $GLIB_DIR/lib$GLIB_NAME.a"
1.10 paf 3918:
1.62 paf 3919: fi;
1.10 paf 3920:
3921:
1.1 paf 3922:
3923:
1.29 paf 3924: # Check whether --with-shared-mailreceive or --without-shared-mailreceive was given.
3925: if test "${with_shared_mailreceive+set}" = set; then
3926: withval="$with_shared_mailreceive"
1.62 paf 3927:
1.29 paf 3928: GNOME_MIME=$withval
3929: MIMEBIN="$GNOME_MIME/bin"
3930: MIMEINC="$GNOME_MIME/include"
3931: MIMELIB="$GNOME_MIME/lib"
3932:
3933: if test \! -d $MIMEBIN -o \! -d $MIMEINC -o \! -d $MIMELIB; then
1.62 paf 3934: { { echo "$as_me:$LINENO: error: $GNOME_MIME does not seem to be valid Gnome installation directory" >&5
3935: echo "$as_me: error: $GNOME_MIME does not seem to be valid Gnome installation directory" >&2;}
3936: { (exit 1); exit 1; }; }
1.29 paf 3937: fi
3938:
3939:
1.62 paf 3940: cat >>confdefs.h <<\_ACEOF
3941: #define WITH_MAILRECEIVE
3942: _ACEOF
3943:
3944:
1.29 paf 3945: LIBMIME_SO_NAME=`cd $MIMELIB ; ls libgmime.?? libgmime.??? 2>/dev/null | grep -v \.la$ | sed 's/lib//' | sed 's/\..*//'`
3946:
3947: if test -z "$GLIB_CONFIG"; then
3948: GLIB_CONFIG=$MIMEBIN/glib-config
3949: if test \! -x $GLIB_CONFIG; then
3950: GLIB_CONFIG=glib-config
3951: fi
3952: fi
3953: GLIB_CFLAGS=`$GLIB_CONFIG --cflags`
3954: GLIB_LIBS=`$GLIB_CONFIG --libs`
3955:
3956: MIME_INCLUDES="$GLIB_CFLAGS -I$MIMEINC/gmime"
3957: MIME_LIBS="$GLIB_LIBS -L$MIMELIB -l$LIBMIME_SO_NAME"
3958: if test \! -z "$LD_PATHLINK"; then
3959: MIME_LIBS="$MIME_LIBS -Wl,$LD_PATHLINK -Wl,$MIMELIB"
3960: fi
3961:
1.62 paf 3962: fi;
1.29 paf 3963:
3964: # Check whether --with-static-mailreceive or --without-static-mailreceive was given.
3965: if test "${with_static_mailreceive+set}" = set; then
3966: withval="$with_static_mailreceive"
1.62 paf 3967:
1.29 paf 3968: GNOME_MIME=$withval
3969: MIMEBIN="$GNOME_MIME/bin"
3970: MIMEINC="$GNOME_MIME/include"
3971: MIMELIB="$GNOME_MIME/lib"
3972:
3973: if test \! -d $MIMEBIN -o \! -d $MIMEINC -o \! -d $MIMELIB; then
1.62 paf 3974: { { echo "$as_me:$LINENO: error: $GNOME_MIME does not seem to be valid Gnome installation directory" >&5
3975: echo "$as_me: error: $GNOME_MIME does not seem to be valid Gnome installation directory" >&2;}
3976: { (exit 1); exit 1; }; }
1.29 paf 3977: fi
3978:
1.62 paf 3979:
3980: cat >>confdefs.h <<\_ACEOF
3981: #define WITH_MAILRECEIVE
3982: _ACEOF
1.29 paf 3983:
3984:
3985: if test -z "$GLIB_CONFIG"; then
3986: GLIB_CONFIG=$MIMEBIN/glib-config
3987: if test \! -x $GLIB_CONFIG; then
3988: GLIB_CONFIG=glib-config
3989: fi
3990: fi
3991: GLIB_CFLAGS=`$GLIB_CONFIG --cflags`
3992:
3993: GLIB_DIR=`$GLIB_CONFIG --libs | sed 's/.*-L\([^ ]*\).*/\1/'`
3994: GLIB_NAME=`$GLIB_CONFIG --libs | sed 's/.*-l\([^ ]*\).*/\1/'`
3995: MIME_INCLUDES="$GLIB_CFLAGS -I$MIMEINC/gmime"
3996: MIME_LIBS="$MIMELIB/libgmime.a $GLIB_DIR/lib$GLIB_NAME.a"
3997:
1.62 paf 3998: fi;
1.29 paf 3999:
4000:
4001:
4002:
1.16 paf 4003:
4004: # Check whether --with-sendmail or --without-sendmail was given.
4005: if test "${with_sendmail+set}" = set; then
4006: withval="$with_sendmail"
1.62 paf 4007:
4008: cat >>confdefs.h <<_ACEOF
1.16 paf 4009: #define PA_FORCED_SENDMAIL "$withval"
1.62 paf 4010: _ACEOF
1.16 paf 4011:
4012:
1.62 paf 4013: fi;
1.16 paf 4014:
4015:
4016:
1.12 paf 4017: # Check whether --with-apache13 or --without-apache13 was given.
4018: if test "${with_apache13+set}" = set; then
4019: withval="$with_apache13"
4020: APACHE13=$withval
4021: if test \! -f "$APACHE13/src/include/httpd.h"; then
1.62 paf 4022: { { echo "$as_me:$LINENO: error: $APACHE13 does not seem to be valid Apache13 source distribution directory" >&5
4023: echo "$as_me: error: $APACHE13 does not seem to be valid Apache13 source distribution directory" >&2;}
4024: { (exit 1); exit 1; }; }
1.12 paf 4025: fi
4026:
1.62 paf 4027: fi;
1.12 paf 4028:
4029:
4030:
4031: if test -n "$APACHE13"; then
4032: COMPILE_APACHE13_MODULE_TRUE=
4033: COMPILE_APACHE13_MODULE_FALSE='#'
4034: else
4035: COMPILE_APACHE13_MODULE_TRUE='#'
4036: COMPILE_APACHE13_MODULE_FALSE=
4037: fi
4038:
4039:
1.62 paf 4040:
1.54 paf 4041: LIBLTDL='${top_builddir}/'src/lib/ltdl/libltdlc.a
4042: INCLTDL='-I${top_srcdir}/'src/lib/ltdl
1.1 paf 4043:
4044:
4045:
4046:
1.62 paf 4047:
4048:
4049: subdirs="$subdirs src/lib/ltdl"
1.8 paf 4050:
1.64 ! paf 4051:
! 4052:
1.8 paf 4053: LIBADD_DL=
1.62 paf 4054:
1.64 ! paf 4055:
! 4056: echo "$as_me:$LINENO: checking for shl_load" >&5
! 4057: echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
! 4058: if test "${ac_cv_func_shl_load+set}" = set; then
1.62 paf 4059: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 paf 4060: else
1.64 ! paf 4061: cat >conftest.$ac_ext <<_ACEOF
1.62 paf 4062: #line $LINENO "configure"
4063: /* confdefs.h. */
4064: _ACEOF
4065: cat confdefs.h >>conftest.$ac_ext
4066: cat >>conftest.$ac_ext <<_ACEOF
4067: /* end confdefs.h. */
1.64 ! paf 4068: /* System header to define __stub macros and hopefully few prototypes,
! 4069: which can conflict with char shl_load (); below.
! 4070: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 4071: <limits.h> exists even on freestanding compilers. */
! 4072: #ifdef __STDC__
! 4073: # include <limits.h>
! 4074: #else
! 4075: # include <assert.h>
! 4076: #endif
1.8 paf 4077: /* Override any gcc2 internal prototype to avoid an error. */
4078: #ifdef __cplusplus
4079: extern "C"
1.64 ! paf 4080: {
1.8 paf 4081: #endif
4082: /* We use char because int might match the return type of a gcc2
1.62 paf 4083: builtin and then its argument prototype would still apply. */
1.64 ! paf 4084: char shl_load ();
! 4085: /* The GNU C library defines this for functions which it implements
! 4086: to always fail with ENOSYS. Some functions are actually named
! 4087: something starting with __ and the normal name is an alias. */
! 4088: #if defined (__stub_shl_load) || defined (__stub___shl_load)
! 4089: choke me
! 4090: #else
! 4091: char (*f) () = shl_load;
! 4092: #endif
! 4093: #ifdef __cplusplus
! 4094: }
! 4095: #endif
! 4096:
1.62 paf 4097: int
4098: main ()
4099: {
1.64 ! paf 4100: return f != shl_load;
1.62 paf 4101: ;
4102: return 0;
4103: }
4104: _ACEOF
4105: rm -f conftest.$ac_objext conftest$ac_exeext
4106: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4107: (eval $ac_link) 2>&5
4108: ac_status=$?
4109: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4110: (exit $ac_status); } &&
4111: { ac_try='test -s conftest$ac_exeext'
4112: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4113: (eval $ac_try) 2>&5
4114: ac_status=$?
4115: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4116: (exit $ac_status); }; }; then
1.64 ! paf 4117: ac_cv_func_shl_load=yes
1.62 paf 4118: else
4119: echo "$as_me: failed program was:" >&5
4120: sed 's/^/| /' conftest.$ac_ext >&5
4121:
1.64 ! paf 4122: ac_cv_func_shl_load=no
1.62 paf 4123: fi
4124: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4125: fi
1.64 ! paf 4126: echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
! 4127: echo "${ECHO_T}$ac_cv_func_shl_load" >&6
! 4128: if test $ac_cv_func_shl_load = yes; then
! 4129:
! 4130: cat >>confdefs.h <<\_ACEOF
! 4131: #define HAVE_SHL_LOAD 1
1.62 paf 4132: _ACEOF
1.64 ! paf 4133:
1.8 paf 4134: else
1.64 ! paf 4135: echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
! 4136: echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
! 4137: if test "${ac_cv_lib_dld_shl_load+set}" = set; then
1.62 paf 4138: echo $ECHO_N "(cached) $ECHO_C" >&6
4139: else
1.64 ! paf 4140: ac_check_lib_save_LIBS=$LIBS
! 4141: LIBS="-ldld $LIBS"
! 4142: cat >conftest.$ac_ext <<_ACEOF
1.62 paf 4143: #line $LINENO "configure"
4144: /* confdefs.h. */
4145: _ACEOF
4146: cat confdefs.h >>conftest.$ac_ext
4147: cat >>conftest.$ac_ext <<_ACEOF
4148: /* end confdefs.h. */
1.64 ! paf 4149:
1.8 paf 4150: /* Override any gcc2 internal prototype to avoid an error. */
4151: #ifdef __cplusplus
4152: extern "C"
4153: #endif
4154: /* We use char because int might match the return type of a gcc2
1.62 paf 4155: builtin and then its argument prototype would still apply. */
1.64 ! paf 4156: char shl_load ();
1.62 paf 4157: int
4158: main ()
4159: {
1.64 ! paf 4160: shl_load ();
1.62 paf 4161: ;
4162: return 0;
4163: }
4164: _ACEOF
4165: rm -f conftest.$ac_objext conftest$ac_exeext
4166: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4167: (eval $ac_link) 2>&5
4168: ac_status=$?
4169: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4170: (exit $ac_status); } &&
4171: { ac_try='test -s conftest$ac_exeext'
4172: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4173: (eval $ac_try) 2>&5
4174: ac_status=$?
4175: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4176: (exit $ac_status); }; }; then
1.64 ! paf 4177: ac_cv_lib_dld_shl_load=yes
1.62 paf 4178: else
4179: echo "$as_me: failed program was:" >&5
4180: sed 's/^/| /' conftest.$ac_ext >&5
4181:
1.64 ! paf 4182: ac_cv_lib_dld_shl_load=no
1.62 paf 4183: fi
4184: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
1.64 ! paf 4185: LIBS=$ac_check_lib_save_LIBS
1.62 paf 4186: fi
1.64 ! paf 4187: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
! 4188: echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
! 4189: if test $ac_cv_lib_dld_shl_load = yes; then
! 4190:
! 4191: cat >>confdefs.h <<\_ACEOF
! 4192: #define HAVE_SHL_LOAD 1
1.62 paf 4193: _ACEOF
1.8 paf 4194:
1.64 ! paf 4195: LIBADD_DL="$LIBADD_DL -ldld"
! 4196: else
! 4197: echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
! 4198: echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
! 4199: if test "${ac_cv_lib_dl_dlopen+set}" = set; then
1.62 paf 4200: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 paf 4201: else
1.64 ! paf 4202: ac_check_lib_save_LIBS=$LIBS
! 4203: LIBS="-ldl $LIBS"
! 4204: cat >conftest.$ac_ext <<_ACEOF
1.62 paf 4205: #line $LINENO "configure"
4206: /* confdefs.h. */
4207: _ACEOF
4208: cat confdefs.h >>conftest.$ac_ext
4209: cat >>conftest.$ac_ext <<_ACEOF
4210: /* end confdefs.h. */
1.64 ! paf 4211:
1.8 paf 4212: /* Override any gcc2 internal prototype to avoid an error. */
4213: #ifdef __cplusplus
4214: extern "C"
4215: #endif
4216: /* We use char because int might match the return type of a gcc2
1.62 paf 4217: builtin and then its argument prototype would still apply. */
1.64 ! paf 4218: char dlopen ();
1.62 paf 4219: int
4220: main ()
4221: {
1.64 ! paf 4222: dlopen ();
1.62 paf 4223: ;
4224: return 0;
4225: }
4226: _ACEOF
4227: rm -f conftest.$ac_objext conftest$ac_exeext
4228: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4229: (eval $ac_link) 2>&5
4230: ac_status=$?
4231: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4232: (exit $ac_status); } &&
4233: { ac_try='test -s conftest$ac_exeext'
4234: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4235: (eval $ac_try) 2>&5
4236: ac_status=$?
4237: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4238: (exit $ac_status); }; }; then
1.64 ! paf 4239: ac_cv_lib_dl_dlopen=yes
1.62 paf 4240: else
4241: echo "$as_me: failed program was:" >&5
4242: sed 's/^/| /' conftest.$ac_ext >&5
4243:
1.64 ! paf 4244: ac_cv_lib_dl_dlopen=no
1.62 paf 4245: fi
4246: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
1.64 ! paf 4247: LIBS=$ac_check_lib_save_LIBS
1.62 paf 4248: fi
1.64 ! paf 4249: echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
! 4250: echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
! 4251: if test $ac_cv_lib_dl_dlopen = yes; then
! 4252:
! 4253: cat >>confdefs.h <<\_ACEOF
! 4254: #define HAVE_LIBDL 1
! 4255: _ACEOF
! 4256:
! 4257: LIBADD_DL="-ldl"
! 4258: else
! 4259: cat >conftest.$ac_ext <<_ACEOF
! 4260: #line $LINENO "configure"
! 4261: /* confdefs.h. */
! 4262: _ACEOF
! 4263: cat confdefs.h >>conftest.$ac_ext
! 4264: cat >>conftest.$ac_ext <<_ACEOF
! 4265: /* end confdefs.h. */
! 4266: #if HAVE_DLFCN_H
! 4267: # include <dlfcn.h>
! 4268: #endif
! 4269:
! 4270: int
! 4271: main ()
! 4272: {
! 4273: dlopen(0, 0);
! 4274: ;
! 4275: return 0;
! 4276: }
! 4277: _ACEOF
! 4278: rm -f conftest.$ac_objext conftest$ac_exeext
! 4279: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 4280: (eval $ac_link) 2>&5
! 4281: ac_status=$?
! 4282: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 4283: (exit $ac_status); } &&
! 4284: { ac_try='test -s conftest$ac_exeext'
! 4285: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 4286: (eval $ac_try) 2>&5
! 4287: ac_status=$?
! 4288: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 4289: (exit $ac_status); }; }; then
! 4290:
! 4291: cat >>confdefs.h <<\_ACEOF
! 4292: #define HAVE_LIBDL 1
1.62 paf 4293: _ACEOF
4294:
4295: else
1.64 ! paf 4296: echo "$as_me: failed program was:" >&5
! 4297: sed 's/^/| /' conftest.$ac_ext >&5
! 4298:
! 4299: echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
! 4300: echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
! 4301: if test "${ac_cv_lib_svld_dlopen+set}" = set; then
1.62 paf 4302: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 paf 4303: else
1.62 paf 4304: ac_check_lib_save_LIBS=$LIBS
1.64 ! paf 4305: LIBS="-lsvld $LIBS"
1.62 paf 4306: cat >conftest.$ac_ext <<_ACEOF
4307: #line $LINENO "configure"
4308: /* confdefs.h. */
4309: _ACEOF
4310: cat confdefs.h >>conftest.$ac_ext
4311: cat >>conftest.$ac_ext <<_ACEOF
4312: /* end confdefs.h. */
4313:
1.8 paf 4314: /* Override any gcc2 internal prototype to avoid an error. */
4315: #ifdef __cplusplus
4316: extern "C"
4317: #endif
4318: /* We use char because int might match the return type of a gcc2
1.62 paf 4319: builtin and then its argument prototype would still apply. */
1.64 ! paf 4320: char dlopen ();
1.62 paf 4321: int
4322: main ()
4323: {
1.64 ! paf 4324: dlopen ();
1.62 paf 4325: ;
4326: return 0;
4327: }
4328: _ACEOF
4329: rm -f conftest.$ac_objext conftest$ac_exeext
4330: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4331: (eval $ac_link) 2>&5
4332: ac_status=$?
4333: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4334: (exit $ac_status); } &&
4335: { ac_try='test -s conftest$ac_exeext'
4336: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4337: (eval $ac_try) 2>&5
4338: ac_status=$?
4339: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4340: (exit $ac_status); }; }; then
1.64 ! paf 4341: ac_cv_lib_svld_dlopen=yes
1.62 paf 4342: else
4343: echo "$as_me: failed program was:" >&5
4344: sed 's/^/| /' conftest.$ac_ext >&5
4345:
1.64 ! paf 4346: ac_cv_lib_svld_dlopen=no
1.62 paf 4347: fi
4348: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4349: LIBS=$ac_check_lib_save_LIBS
4350: fi
1.64 ! paf 4351: echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
! 4352: echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
! 4353: if test $ac_cv_lib_svld_dlopen = yes; then
! 4354:
! 4355: cat >>confdefs.h <<\_ACEOF
! 4356: #define HAVE_LIBDL 1
1.62 paf 4357: _ACEOF
1.1 paf 4358:
1.64 ! paf 4359: LIBADD_DL="-lsvld"
! 4360: else
! 4361: echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
1.62 paf 4362: echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
4363: if test "${ac_cv_lib_dld_dld_link+set}" = set; then
4364: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 paf 4365: else
1.62 paf 4366: ac_check_lib_save_LIBS=$LIBS
1.8 paf 4367: LIBS="-ldld $LIBS"
1.62 paf 4368: cat >conftest.$ac_ext <<_ACEOF
4369: #line $LINENO "configure"
4370: /* confdefs.h. */
4371: _ACEOF
4372: cat confdefs.h >>conftest.$ac_ext
4373: cat >>conftest.$ac_ext <<_ACEOF
4374: /* end confdefs.h. */
4375:
1.8 paf 4376: /* Override any gcc2 internal prototype to avoid an error. */
4377: #ifdef __cplusplus
4378: extern "C"
4379: #endif
4380: /* We use char because int might match the return type of a gcc2
1.62 paf 4381: builtin and then its argument prototype would still apply. */
4382: char dld_link ();
4383: int
4384: main ()
4385: {
4386: dld_link ();
4387: ;
4388: return 0;
4389: }
4390: _ACEOF
4391: rm -f conftest.$ac_objext conftest$ac_exeext
4392: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4393: (eval $ac_link) 2>&5
4394: ac_status=$?
4395: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4396: (exit $ac_status); } &&
4397: { ac_try='test -s conftest$ac_exeext'
4398: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4399: (eval $ac_try) 2>&5
4400: ac_status=$?
4401: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4402: (exit $ac_status); }; }; then
4403: ac_cv_lib_dld_dld_link=yes
4404: else
4405: echo "$as_me: failed program was:" >&5
4406: sed 's/^/| /' conftest.$ac_ext >&5
4407:
4408: ac_cv_lib_dld_dld_link=no
4409: fi
4410: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4411: LIBS=$ac_check_lib_save_LIBS
4412: fi
4413: echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
4414: echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
4415: if test $ac_cv_lib_dld_dld_link = yes; then
1.64 ! paf 4416:
! 4417: cat >>confdefs.h <<\_ACEOF
1.8 paf 4418: #define HAVE_DLD 1
1.62 paf 4419: _ACEOF
1.64 ! paf 4420:
! 4421: LIBADD_DL="$LIBADD_DL -ldld"
! 4422:
! 4423: fi
! 4424:
! 4425:
! 4426: fi
! 4427:
! 4428:
! 4429: fi
! 4430: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 4431:
! 4432: fi
! 4433:
! 4434:
! 4435: fi
! 4436:
! 4437:
! 4438: fi
! 4439:
! 4440:
! 4441: if test "x$ac_cv_func_dlopen" = xyes || test "x$ac_cv_lib_dl_dlopen" = xyes; then
! 4442: LIBS_SAVE="$LIBS"
! 4443: LIBS="$LIBS $LIBADD_DL"
! 4444:
! 4445: for ac_func in dlerror
! 4446: do
! 4447: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
! 4448: echo "$as_me:$LINENO: checking for $ac_func" >&5
! 4449: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
! 4450: if eval "test \"\${$as_ac_var+set}\" = set"; then
! 4451: echo $ECHO_N "(cached) $ECHO_C" >&6
! 4452: else
! 4453: cat >conftest.$ac_ext <<_ACEOF
! 4454: #line $LINENO "configure"
! 4455: /* confdefs.h. */
! 4456: _ACEOF
! 4457: cat confdefs.h >>conftest.$ac_ext
! 4458: cat >>conftest.$ac_ext <<_ACEOF
! 4459: /* end confdefs.h. */
! 4460: /* System header to define __stub macros and hopefully few prototypes,
! 4461: which can conflict with char $ac_func (); below.
! 4462: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 4463: <limits.h> exists even on freestanding compilers. */
! 4464: #ifdef __STDC__
! 4465: # include <limits.h>
! 4466: #else
! 4467: # include <assert.h>
! 4468: #endif
! 4469: /* Override any gcc2 internal prototype to avoid an error. */
! 4470: #ifdef __cplusplus
! 4471: extern "C"
! 4472: {
! 4473: #endif
! 4474: /* We use char because int might match the return type of a gcc2
! 4475: builtin and then its argument prototype would still apply. */
! 4476: char $ac_func ();
! 4477: /* The GNU C library defines this for functions which it implements
! 4478: to always fail with ENOSYS. Some functions are actually named
! 4479: something starting with __ and the normal name is an alias. */
! 4480: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
! 4481: choke me
! 4482: #else
! 4483: char (*f) () = $ac_func;
! 4484: #endif
! 4485: #ifdef __cplusplus
! 4486: }
! 4487: #endif
! 4488:
! 4489: int
! 4490: main ()
! 4491: {
! 4492: return f != $ac_func;
! 4493: ;
! 4494: return 0;
! 4495: }
! 4496: _ACEOF
! 4497: rm -f conftest.$ac_objext conftest$ac_exeext
! 4498: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 4499: (eval $ac_link) 2>&5
! 4500: ac_status=$?
! 4501: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 4502: (exit $ac_status); } &&
! 4503: { ac_try='test -s conftest$ac_exeext'
! 4504: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 4505: (eval $ac_try) 2>&5
! 4506: ac_status=$?
! 4507: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 4508: (exit $ac_status); }; }; then
! 4509: eval "$as_ac_var=yes"
! 4510: else
! 4511: echo "$as_me: failed program was:" >&5
! 4512: sed 's/^/| /' conftest.$ac_ext >&5
! 4513:
! 4514: eval "$as_ac_var=no"
! 4515: fi
! 4516: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
! 4517: fi
! 4518: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
! 4519: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
! 4520: if test `eval echo '${'$as_ac_var'}'` = yes; then
! 4521: cat >>confdefs.h <<_ACEOF
! 4522: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
! 4523: _ACEOF
! 4524:
! 4525: fi
! 4526: done
! 4527:
! 4528: LIBS="$LIBS_SAVE"
1.1 paf 4529: fi
4530:
4531:
4532:
1.8 paf 4533: if test "x$ac_cv_func_dlopen" = xyes || test "x$ac_cv_lib_dl_dlopen" = xyes; then
4534: LIBS_SAVE="$LIBS"
4535: LIBS="$LIBS $LIBADD_DL"
1.62 paf 4536:
4537: for ac_func in dlerror
1.8 paf 4538: do
1.62 paf 4539: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4540: echo "$as_me:$LINENO: checking for $ac_func" >&5
4541: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4542: if eval "test \"\${$as_ac_var+set}\" = set"; then
4543: echo $ECHO_N "(cached) $ECHO_C" >&6
4544: else
4545: cat >conftest.$ac_ext <<_ACEOF
4546: #line $LINENO "configure"
4547: /* confdefs.h. */
4548: _ACEOF
4549: cat confdefs.h >>conftest.$ac_ext
4550: cat >>conftest.$ac_ext <<_ACEOF
4551: /* end confdefs.h. */
1.8 paf 4552: /* System header to define __stub macros and hopefully few prototypes,
1.62 paf 4553: which can conflict with char $ac_func (); below.
4554: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4555: <limits.h> exists even on freestanding compilers. */
4556: #ifdef __STDC__
4557: # include <limits.h>
4558: #else
4559: # include <assert.h>
4560: #endif
1.8 paf 4561: /* Override any gcc2 internal prototype to avoid an error. */
4562: #ifdef __cplusplus
4563: extern "C"
1.62 paf 4564: {
1.8 paf 4565: #endif
4566: /* We use char because int might match the return type of a gcc2
1.62 paf 4567: builtin and then its argument prototype would still apply. */
4568: char $ac_func ();
1.8 paf 4569: /* The GNU C library defines this for functions which it implements
4570: to always fail with ENOSYS. Some functions are actually named
4571: something starting with __ and the normal name is an alias. */
4572: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4573: choke me
4574: #else
1.62 paf 4575: char (*f) () = $ac_func;
4576: #endif
4577: #ifdef __cplusplus
4578: }
1.8 paf 4579: #endif
4580:
1.62 paf 4581: int
4582: main ()
4583: {
4584: return f != $ac_func;
4585: ;
4586: return 0;
4587: }
4588: _ACEOF
4589: rm -f conftest.$ac_objext conftest$ac_exeext
4590: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4591: (eval $ac_link) 2>&5
4592: ac_status=$?
4593: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4594: (exit $ac_status); } &&
4595: { ac_try='test -s conftest$ac_exeext'
4596: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4597: (eval $ac_try) 2>&5
4598: ac_status=$?
4599: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4600: (exit $ac_status); }; }; then
4601: eval "$as_ac_var=yes"
4602: else
4603: echo "$as_me: failed program was:" >&5
4604: sed 's/^/| /' conftest.$ac_ext >&5
4605:
4606: eval "$as_ac_var=no"
4607: fi
4608: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4609: fi
4610: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4611: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4612: if test `eval echo '${'$as_ac_var'}'` = yes; then
4613: cat >>confdefs.h <<_ACEOF
4614: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4615: _ACEOF
4616:
4617: fi
4618: done
4619:
4620: LIBS="$LIBS_SAVE"
4621: fi
4622:
4623:
4624: ac_ext=cc
4625: ac_cpp='$CXXCPP $CPPFLAGS'
4626: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4627: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4628: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4629: echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4630: echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4631: if test -z "$CXXCPP"; then
4632: if test "${ac_cv_prog_CXXCPP+set}" = set; then
4633: echo $ECHO_N "(cached) $ECHO_C" >&6
4634: else
4635: # Double quotes because CXXCPP needs to be expanded
4636: for CXXCPP in "$CXX -E" "/lib/cpp"
4637: do
4638: ac_preproc_ok=false
4639: for ac_cxx_preproc_warn_flag in '' yes
4640: do
4641: # Use a header file that comes with gcc, so configuring glibc
4642: # with a fresh cross-compiler works.
4643: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4644: # <limits.h> exists even on freestanding compilers.
4645: # On the NeXT, cc -E runs the code through the compiler's parser,
4646: # not just through cpp. "Syntax error" is here to catch this case.
4647: cat >conftest.$ac_ext <<_ACEOF
4648: #line $LINENO "configure"
4649: /* confdefs.h. */
4650: _ACEOF
4651: cat confdefs.h >>conftest.$ac_ext
4652: cat >>conftest.$ac_ext <<_ACEOF
4653: /* end confdefs.h. */
4654: #ifdef __STDC__
4655: # include <limits.h>
4656: #else
4657: # include <assert.h>
4658: #endif
4659: Syntax error
4660: _ACEOF
4661: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4662: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4663: ac_status=$?
4664: grep -v '^ *+' conftest.er1 >conftest.err
4665: rm -f conftest.er1
4666: cat conftest.err >&5
4667: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4668: (exit $ac_status); } >/dev/null; then
4669: if test -s conftest.err; then
4670: ac_cpp_err=$ac_cxx_preproc_warn_flag
4671: else
4672: ac_cpp_err=
4673: fi
4674: else
4675: ac_cpp_err=yes
1.1 paf 4676: fi
1.62 paf 4677: if test -z "$ac_cpp_err"; then
4678: :
4679: else
4680: echo "$as_me: failed program was:" >&5
4681: sed 's/^/| /' conftest.$ac_ext >&5
4682:
4683: # Broken: fails on valid input.
4684: continue
1.1 paf 4685: fi
1.62 paf 4686: rm -f conftest.err conftest.$ac_ext
1.1 paf 4687:
1.62 paf 4688: # OK, works on sane cases. Now check whether non-existent headers
4689: # can be detected and how.
4690: cat >conftest.$ac_ext <<_ACEOF
4691: #line $LINENO "configure"
4692: /* confdefs.h. */
4693: _ACEOF
4694: cat confdefs.h >>conftest.$ac_ext
4695: cat >>conftest.$ac_ext <<_ACEOF
4696: /* end confdefs.h. */
4697: #include <ac_nonexistent.h>
4698: _ACEOF
4699: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4700: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4701: ac_status=$?
4702: grep -v '^ *+' conftest.er1 >conftest.err
4703: rm -f conftest.er1
4704: cat conftest.err >&5
4705: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4706: (exit $ac_status); } >/dev/null; then
4707: if test -s conftest.err; then
4708: ac_cpp_err=$ac_cxx_preproc_warn_flag
4709: else
4710: ac_cpp_err=
4711: fi
4712: else
4713: ac_cpp_err=yes
4714: fi
4715: if test -z "$ac_cpp_err"; then
4716: # Broken: success on invalid input.
4717: continue
1.1 paf 4718: else
1.62 paf 4719: echo "$as_me: failed program was:" >&5
4720: sed 's/^/| /' conftest.$ac_ext >&5
4721:
4722: # Passes both tests.
4723: ac_preproc_ok=:
4724: break
1.1 paf 4725: fi
1.62 paf 4726: rm -f conftest.err conftest.$ac_ext
4727:
1.8 paf 4728: done
1.62 paf 4729: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4730: rm -f conftest.err conftest.$ac_ext
4731: if $ac_preproc_ok; then
4732: break
4733: fi
1.1 paf 4734:
1.62 paf 4735: done
4736: ac_cv_prog_CXXCPP=$CXXCPP
4737:
4738: fi
4739: CXXCPP=$ac_cv_prog_CXXCPP
4740: else
4741: ac_cv_prog_CXXCPP=$CXXCPP
4742: fi
4743: echo "$as_me:$LINENO: result: $CXXCPP" >&5
4744: echo "${ECHO_T}$CXXCPP" >&6
4745: ac_preproc_ok=false
4746: for ac_cxx_preproc_warn_flag in '' yes
4747: do
4748: # Use a header file that comes with gcc, so configuring glibc
4749: # with a fresh cross-compiler works.
4750: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4751: # <limits.h> exists even on freestanding compilers.
4752: # On the NeXT, cc -E runs the code through the compiler's parser,
4753: # not just through cpp. "Syntax error" is here to catch this case.
4754: cat >conftest.$ac_ext <<_ACEOF
4755: #line $LINENO "configure"
4756: /* confdefs.h. */
4757: _ACEOF
4758: cat confdefs.h >>conftest.$ac_ext
4759: cat >>conftest.$ac_ext <<_ACEOF
4760: /* end confdefs.h. */
4761: #ifdef __STDC__
4762: # include <limits.h>
4763: #else
4764: # include <assert.h>
4765: #endif
4766: Syntax error
4767: _ACEOF
4768: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4769: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4770: ac_status=$?
4771: grep -v '^ *+' conftest.er1 >conftest.err
4772: rm -f conftest.er1
4773: cat conftest.err >&5
4774: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4775: (exit $ac_status); } >/dev/null; then
4776: if test -s conftest.err; then
4777: ac_cpp_err=$ac_cxx_preproc_warn_flag
4778: else
4779: ac_cpp_err=
4780: fi
4781: else
4782: ac_cpp_err=yes
1.1 paf 4783: fi
1.62 paf 4784: if test -z "$ac_cpp_err"; then
4785: :
4786: else
4787: echo "$as_me: failed program was:" >&5
4788: sed 's/^/| /' conftest.$ac_ext >&5
1.1 paf 4789:
1.62 paf 4790: # Broken: fails on valid input.
4791: continue
4792: fi
4793: rm -f conftest.err conftest.$ac_ext
1.1 paf 4794:
1.62 paf 4795: # OK, works on sane cases. Now check whether non-existent headers
4796: # can be detected and how.
4797: cat >conftest.$ac_ext <<_ACEOF
4798: #line $LINENO "configure"
4799: /* confdefs.h. */
4800: _ACEOF
4801: cat confdefs.h >>conftest.$ac_ext
4802: cat >>conftest.$ac_ext <<_ACEOF
4803: /* end confdefs.h. */
4804: #include <ac_nonexistent.h>
4805: _ACEOF
4806: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4807: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4808: ac_status=$?
4809: grep -v '^ *+' conftest.er1 >conftest.err
4810: rm -f conftest.er1
4811: cat conftest.err >&5
4812: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4813: (exit $ac_status); } >/dev/null; then
4814: if test -s conftest.err; then
4815: ac_cpp_err=$ac_cxx_preproc_warn_flag
4816: else
4817: ac_cpp_err=
4818: fi
4819: else
4820: ac_cpp_err=yes
4821: fi
4822: if test -z "$ac_cpp_err"; then
4823: # Broken: success on invalid input.
4824: continue
1.1 paf 4825: else
1.62 paf 4826: echo "$as_me: failed program was:" >&5
4827: sed 's/^/| /' conftest.$ac_ext >&5
4828:
4829: # Passes both tests.
4830: ac_preproc_ok=:
4831: break
4832: fi
4833: rm -f conftest.err conftest.$ac_ext
4834:
4835: done
4836: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4837: rm -f conftest.err conftest.$ac_ext
4838: if $ac_preproc_ok; then
1.1 paf 4839: :
4840: else
1.62 paf 4841: { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4842: See \`config.log' for more details." >&5
4843: echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4844: See \`config.log' for more details." >&2;}
4845: { (exit 1); exit 1; }; }
1.1 paf 4846: fi
1.62 paf 4847:
4848: ac_ext=cc
1.1 paf 4849: ac_cpp='$CXXCPP $CPPFLAGS'
1.62 paf 4850: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4851: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4852: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4853:
4854:
4855: echo "$as_me:$LINENO: checking for egrep" >&5
4856: echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4857: if test "${ac_cv_prog_egrep+set}" = set; then
4858: echo $ECHO_N "(cached) $ECHO_C" >&6
4859: else
4860: if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4861: then ac_cv_prog_egrep='grep -E'
4862: else ac_cv_prog_egrep='egrep'
4863: fi
4864: fi
4865: echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4866: echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4867: EGREP=$ac_cv_prog_egrep
4868:
4869:
4870: echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4871: echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4872: if test "${ac_cv_header_stdc+set}" = set; then
4873: echo $ECHO_N "(cached) $ECHO_C" >&6
4874: else
4875: cat >conftest.$ac_ext <<_ACEOF
4876: #line $LINENO "configure"
4877: /* confdefs.h. */
4878: _ACEOF
4879: cat confdefs.h >>conftest.$ac_ext
4880: cat >>conftest.$ac_ext <<_ACEOF
4881: /* end confdefs.h. */
1.1 paf 4882: #include <stdlib.h>
4883: #include <stdarg.h>
4884: #include <string.h>
4885: #include <float.h>
1.62 paf 4886:
4887: int
4888: main ()
4889: {
4890:
4891: ;
4892: return 0;
4893: }
4894: _ACEOF
4895: rm -f conftest.$ac_objext
4896: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4897: (eval $ac_compile) 2>&5
4898: ac_status=$?
4899: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4900: (exit $ac_status); } &&
4901: { ac_try='test -s conftest.$ac_objext'
4902: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4903: (eval $ac_try) 2>&5
4904: ac_status=$?
4905: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4906: (exit $ac_status); }; }; then
1.1 paf 4907: ac_cv_header_stdc=yes
4908: else
1.62 paf 4909: echo "$as_me: failed program was:" >&5
4910: sed 's/^/| /' conftest.$ac_ext >&5
4911:
4912: ac_cv_header_stdc=no
1.1 paf 4913: fi
1.62 paf 4914: rm -f conftest.$ac_objext conftest.$ac_ext
1.1 paf 4915:
4916: if test $ac_cv_header_stdc = yes; then
4917: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1.62 paf 4918: cat >conftest.$ac_ext <<_ACEOF
4919: #line $LINENO "configure"
4920: /* confdefs.h. */
4921: _ACEOF
4922: cat confdefs.h >>conftest.$ac_ext
4923: cat >>conftest.$ac_ext <<_ACEOF
4924: /* end confdefs.h. */
1.1 paf 4925: #include <string.h>
1.62 paf 4926:
4927: _ACEOF
1.1 paf 4928: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.62 paf 4929: $EGREP "memchr" >/dev/null 2>&1; then
1.1 paf 4930: :
4931: else
4932: ac_cv_header_stdc=no
4933: fi
4934: rm -f conftest*
4935:
4936: fi
4937:
4938: if test $ac_cv_header_stdc = yes; then
4939: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1.62 paf 4940: cat >conftest.$ac_ext <<_ACEOF
4941: #line $LINENO "configure"
4942: /* confdefs.h. */
4943: _ACEOF
4944: cat confdefs.h >>conftest.$ac_ext
4945: cat >>conftest.$ac_ext <<_ACEOF
4946: /* end confdefs.h. */
1.1 paf 4947: #include <stdlib.h>
1.62 paf 4948:
4949: _ACEOF
1.1 paf 4950: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.62 paf 4951: $EGREP "free" >/dev/null 2>&1; then
1.1 paf 4952: :
4953: else
4954: ac_cv_header_stdc=no
4955: fi
4956: rm -f conftest*
4957:
4958: fi
4959:
4960: if test $ac_cv_header_stdc = yes; then
4961: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1.62 paf 4962: if test "$cross_compiling" = yes; then
1.1 paf 4963: :
4964: else
1.62 paf 4965: cat >conftest.$ac_ext <<_ACEOF
4966: #line $LINENO "configure"
4967: /* confdefs.h. */
4968: _ACEOF
4969: cat confdefs.h >>conftest.$ac_ext
4970: cat >>conftest.$ac_ext <<_ACEOF
4971: /* end confdefs.h. */
4972: #include <ctype.h>
4973: #if ((' ' & 0x0FF) == 0x020)
4974: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4975: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4976: #else
4977: # define ISLOWER(c) \
4978: (('a' <= (c) && (c) <= 'i') \
4979: || ('j' <= (c) && (c) <= 'r') \
4980: || ('s' <= (c) && (c) <= 'z'))
4981: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
1.1 paf 4982: #endif
1.62 paf 4983:
1.1 paf 4984: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1.62 paf 4985: int
4986: main ()
4987: {
4988: int i;
4989: for (i = 0; i < 256; i++)
4990: if (XOR (islower (i), ISLOWER (i))
4991: || toupper (i) != TOUPPER (i))
4992: exit(2);
4993: exit (0);
4994: }
4995: _ACEOF
4996: rm -f conftest$ac_exeext
4997: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4998: (eval $ac_link) 2>&5
4999: ac_status=$?
5000: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5001: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5002: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5003: (eval $ac_try) 2>&5
5004: ac_status=$?
5005: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5006: (exit $ac_status); }; }; then
1.1 paf 5007: :
5008: else
1.62 paf 5009: echo "$as_me: program exited with status $ac_status" >&5
5010: echo "$as_me: failed program was:" >&5
5011: sed 's/^/| /' conftest.$ac_ext >&5
5012:
5013: ( exit $ac_status )
5014: ac_cv_header_stdc=no
1.1 paf 5015: fi
1.62 paf 5016: rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 paf 5017: fi
5018: fi
5019: fi
1.62 paf 5020: echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5021: echo "${ECHO_T}$ac_cv_header_stdc" >&6
5022: if test $ac_cv_header_stdc = yes; then
1.1 paf 5023:
1.62 paf 5024: cat >>confdefs.h <<\_ACEOF
1.1 paf 5025: #define STDC_HEADERS 1
1.62 paf 5026: _ACEOF
5027:
5028: fi
5029:
5030: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5031:
5032:
5033:
5034:
5035:
5036:
5037:
5038:
5039:
5040: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5041: inttypes.h stdint.h unistd.h
5042: do
5043: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5044: echo "$as_me:$LINENO: checking for $ac_header" >&5
5045: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5046: if eval "test \"\${$as_ac_Header+set}\" = set"; then
5047: echo $ECHO_N "(cached) $ECHO_C" >&6
5048: else
5049: cat >conftest.$ac_ext <<_ACEOF
5050: #line $LINENO "configure"
5051: /* confdefs.h. */
5052: _ACEOF
5053: cat confdefs.h >>conftest.$ac_ext
5054: cat >>conftest.$ac_ext <<_ACEOF
5055: /* end confdefs.h. */
5056: $ac_includes_default
5057:
5058: #include <$ac_header>
5059: _ACEOF
5060: rm -f conftest.$ac_objext
5061: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5062: (eval $ac_compile) 2>&5
5063: ac_status=$?
5064: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5065: (exit $ac_status); } &&
5066: { ac_try='test -s conftest.$ac_objext'
5067: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5068: (eval $ac_try) 2>&5
5069: ac_status=$?
5070: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5071: (exit $ac_status); }; }; then
5072: eval "$as_ac_Header=yes"
5073: else
5074: echo "$as_me: failed program was:" >&5
5075: sed 's/^/| /' conftest.$ac_ext >&5
5076:
5077: eval "$as_ac_Header=no"
5078: fi
5079: rm -f conftest.$ac_objext conftest.$ac_ext
5080: fi
5081: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5082: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5083: if test `eval echo '${'$as_ac_Header'}'` = yes; then
5084: cat >>confdefs.h <<_ACEOF
5085: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5086: _ACEOF
1.1 paf 5087:
5088: fi
5089:
1.62 paf 5090: done
5091:
5092:
5093: echo "$as_me:$LINENO: checking for size_t" >&5
5094: echo $ECHO_N "checking for size_t... $ECHO_C" >&6
5095: if test "${ac_cv_type_size_t+set}" = set; then
5096: echo $ECHO_N "(cached) $ECHO_C" >&6
5097: else
5098: cat >conftest.$ac_ext <<_ACEOF
5099: #line $LINENO "configure"
5100: /* confdefs.h. */
5101: _ACEOF
5102: cat confdefs.h >>conftest.$ac_ext
5103: cat >>conftest.$ac_ext <<_ACEOF
5104: /* end confdefs.h. */
5105: $ac_includes_default
5106: int
5107: main ()
5108: {
5109: if ((size_t *) 0)
5110: return 0;
5111: if (sizeof (size_t))
5112: return 0;
5113: ;
5114: return 0;
5115: }
5116: _ACEOF
5117: rm -f conftest.$ac_objext
5118: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5119: (eval $ac_compile) 2>&5
5120: ac_status=$?
5121: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5122: (exit $ac_status); } &&
5123: { ac_try='test -s conftest.$ac_objext'
5124: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5125: (eval $ac_try) 2>&5
5126: ac_status=$?
5127: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5128: (exit $ac_status); }; }; then
1.1 paf 5129: ac_cv_type_size_t=yes
5130: else
1.62 paf 5131: echo "$as_me: failed program was:" >&5
5132: sed 's/^/| /' conftest.$ac_ext >&5
5133:
5134: ac_cv_type_size_t=no
1.1 paf 5135: fi
1.62 paf 5136: rm -f conftest.$ac_objext conftest.$ac_ext
5137: fi
5138: echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5139: echo "${ECHO_T}$ac_cv_type_size_t" >&6
5140: if test $ac_cv_type_size_t = yes; then
5141: :
5142: else
1.1 paf 5143:
1.62 paf 5144: cat >>confdefs.h <<_ACEOF
1.1 paf 5145: #define size_t unsigned
1.62 paf 5146: _ACEOF
1.1 paf 5147:
5148: fi
5149:
1.62 paf 5150: echo "$as_me:$LINENO: checking for off_t" >&5
5151: echo $ECHO_N "checking for off_t... $ECHO_C" >&6
5152: if test "${ac_cv_type_off_t+set}" = set; then
5153: echo $ECHO_N "(cached) $ECHO_C" >&6
5154: else
5155: cat >conftest.$ac_ext <<_ACEOF
5156: #line $LINENO "configure"
5157: /* confdefs.h. */
5158: _ACEOF
5159: cat confdefs.h >>conftest.$ac_ext
5160: cat >>conftest.$ac_ext <<_ACEOF
5161: /* end confdefs.h. */
5162: $ac_includes_default
5163: int
5164: main ()
5165: {
5166: if ((off_t *) 0)
5167: return 0;
5168: if (sizeof (off_t))
5169: return 0;
5170: ;
5171: return 0;
5172: }
5173: _ACEOF
5174: rm -f conftest.$ac_objext
5175: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5176: (eval $ac_compile) 2>&5
5177: ac_status=$?
5178: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5179: (exit $ac_status); } &&
5180: { ac_try='test -s conftest.$ac_objext'
5181: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5182: (eval $ac_try) 2>&5
5183: ac_status=$?
5184: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5185: (exit $ac_status); }; }; then
1.30 paf 5186: ac_cv_type_off_t=yes
5187: else
1.62 paf 5188: echo "$as_me: failed program was:" >&5
5189: sed 's/^/| /' conftest.$ac_ext >&5
5190:
5191: ac_cv_type_off_t=no
1.30 paf 5192: fi
1.62 paf 5193: rm -f conftest.$ac_objext conftest.$ac_ext
5194: fi
5195: echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5196: echo "${ECHO_T}$ac_cv_type_off_t" >&6
5197: if test $ac_cv_type_off_t = yes; then
5198: :
5199: else
1.30 paf 5200:
1.62 paf 5201: cat >>confdefs.h <<_ACEOF
1.30 paf 5202: #define off_t long
1.62 paf 5203: _ACEOF
1.30 paf 5204:
5205: fi
5206:
1.62 paf 5207: echo "$as_me:$LINENO: checking for ssize_t" >&5
5208: echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
5209: if test "${ac_cv_type_ssize_t+set}" = set; then
5210: echo $ECHO_N "(cached) $ECHO_C" >&6
5211: else
5212: cat >conftest.$ac_ext <<_ACEOF
5213: #line $LINENO "configure"
5214: /* confdefs.h. */
5215: _ACEOF
5216: cat confdefs.h >>conftest.$ac_ext
5217: cat >>conftest.$ac_ext <<_ACEOF
5218: /* end confdefs.h. */
5219: $ac_includes_default
5220: int
5221: main ()
5222: {
5223: if ((ssize_t *) 0)
5224: return 0;
5225: if (sizeof (ssize_t))
5226: return 0;
5227: ;
5228: return 0;
5229: }
5230: _ACEOF
5231: rm -f conftest.$ac_objext
5232: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5233: (eval $ac_compile) 2>&5
5234: ac_status=$?
5235: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5236: (exit $ac_status); } &&
5237: { ac_try='test -s conftest.$ac_objext'
5238: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5239: (eval $ac_try) 2>&5
5240: ac_status=$?
5241: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5242: (exit $ac_status); }; }; then
1.30 paf 5243: ac_cv_type_ssize_t=yes
5244: else
1.62 paf 5245: echo "$as_me: failed program was:" >&5
5246: sed 's/^/| /' conftest.$ac_ext >&5
5247:
5248: ac_cv_type_ssize_t=no
1.30 paf 5249: fi
1.62 paf 5250: rm -f conftest.$ac_objext conftest.$ac_ext
5251: fi
5252: echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
5253: echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
5254: if test $ac_cv_type_ssize_t = yes; then
5255: :
5256: else
1.30 paf 5257:
1.62 paf 5258: cat >>confdefs.h <<_ACEOF
1.30 paf 5259: #define ssize_t int
1.62 paf 5260: _ACEOF
1.30 paf 5261:
5262: fi
5263:
5264:
1.1 paf 5265:
5266:
1.62 paf 5267: echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5268: echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
5269: if test "${ac_cv_header_time+set}" = set; then
5270: echo $ECHO_N "(cached) $ECHO_C" >&6
1.8 paf 5271: else
1.62 paf 5272: cat >conftest.$ac_ext <<_ACEOF
5273: #line $LINENO "configure"
5274: /* confdefs.h. */
5275: _ACEOF
5276: cat confdefs.h >>conftest.$ac_ext
5277: cat >>conftest.$ac_ext <<_ACEOF
5278: /* end confdefs.h. */
1.8 paf 5279: #include <sys/types.h>
5280: #include <sys/time.h>
5281: #include <time.h>
1.62 paf 5282:
5283: int
5284: main ()
5285: {
5286: if ((struct tm *) 0)
5287: return 0;
5288: ;
5289: return 0;
5290: }
5291: _ACEOF
5292: rm -f conftest.$ac_objext
5293: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5294: (eval $ac_compile) 2>&5
5295: ac_status=$?
5296: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5297: (exit $ac_status); } &&
5298: { ac_try='test -s conftest.$ac_objext'
5299: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5300: (eval $ac_try) 2>&5
5301: ac_status=$?
5302: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5303: (exit $ac_status); }; }; then
1.8 paf 5304: ac_cv_header_time=yes
5305: else
1.62 paf 5306: echo "$as_me: failed program was:" >&5
5307: sed 's/^/| /' conftest.$ac_ext >&5
5308:
5309: ac_cv_header_time=no
1.8 paf 5310: fi
1.62 paf 5311: rm -f conftest.$ac_objext conftest.$ac_ext
1.8 paf 5312: fi
1.62 paf 5313: echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5314: echo "${ECHO_T}$ac_cv_header_time" >&6
5315: if test $ac_cv_header_time = yes; then
1.8 paf 5316:
1.62 paf 5317: cat >>confdefs.h <<\_ACEOF
1.8 paf 5318: #define TIME_WITH_SYS_TIME 1
1.62 paf 5319: _ACEOF
1.8 paf 5320:
5321: fi
5322:
5323:
1.62 paf 5324:
5325:
5326:
5327:
5328:
5329:
5330:
5331:
5332:
5333:
5334:
5335:
5336:
5337:
5338:
5339:
5340:
5341:
5342:
5343:
5344:
5345:
5346:
5347:
5348:
5349:
5350:
5351:
5352:
5353:
5354:
5355: for ac_header in signal.h \
1.51 paf 5356: unistd.h \
1.1 paf 5357: process.h \
5358: stddef.h \
5359: stdarg.h \
5360: fcntl.h \
5361: sys/stat.h \
5362: io.h \
5363: stdio.h \
5364: errno.h \
5365: ctype.h \
5366: math.h \
1.31 paf 5367: crypt.h \
1.3 paf 5368: time.h sys/time.h \
1.1 paf 5369: stdlib.h \
5370: string.h \
5371: direct.h \
5372: setjmp.h \
5373: memory.h \
5374: new \
5375: sys/file.h \
5376: sys/locking.h \
1.3 paf 5377: sys/types.h \
5378: sys/select.h \
1.39 paf 5379: sys/resource.h \
1.52 paf 5380: winsock.h \
5381: sys/socket.h \
5382: netinet/in.h \
5383: arpa/inet.h \
5384: netdb.h
1.1 paf 5385:
5386: do
1.62 paf 5387: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5388: if eval "test \"\${$as_ac_Header+set}\" = set"; then
5389: echo "$as_me:$LINENO: checking for $ac_header" >&5
5390: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5391: if eval "test \"\${$as_ac_Header+set}\" = set"; then
5392: echo $ECHO_N "(cached) $ECHO_C" >&6
5393: fi
5394: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5395: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5396: else
5397: # Is the header compilable?
5398: echo "$as_me:$LINENO: checking $ac_header usability" >&5
5399: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5400: cat >conftest.$ac_ext <<_ACEOF
5401: #line $LINENO "configure"
5402: /* confdefs.h. */
5403: _ACEOF
5404: cat confdefs.h >>conftest.$ac_ext
5405: cat >>conftest.$ac_ext <<_ACEOF
5406: /* end confdefs.h. */
5407: $ac_includes_default
5408: #include <$ac_header>
5409: _ACEOF
5410: rm -f conftest.$ac_objext
5411: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5412: (eval $ac_compile) 2>&5
5413: ac_status=$?
5414: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5415: (exit $ac_status); } &&
5416: { ac_try='test -s conftest.$ac_objext'
5417: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5418: (eval $ac_try) 2>&5
5419: ac_status=$?
5420: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5421: (exit $ac_status); }; }; then
5422: ac_header_compiler=yes
5423: else
5424: echo "$as_me: failed program was:" >&5
5425: sed 's/^/| /' conftest.$ac_ext >&5
5426:
5427: ac_header_compiler=no
5428: fi
5429: rm -f conftest.$ac_objext conftest.$ac_ext
5430: echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5431: echo "${ECHO_T}$ac_header_compiler" >&6
5432:
5433: # Is the header present?
5434: echo "$as_me:$LINENO: checking $ac_header presence" >&5
5435: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5436: cat >conftest.$ac_ext <<_ACEOF
5437: #line $LINENO "configure"
5438: /* confdefs.h. */
5439: _ACEOF
5440: cat confdefs.h >>conftest.$ac_ext
5441: cat >>conftest.$ac_ext <<_ACEOF
5442: /* end confdefs.h. */
5443: #include <$ac_header>
5444: _ACEOF
5445: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5446: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5447: ac_status=$?
5448: grep -v '^ *+' conftest.er1 >conftest.err
5449: rm -f conftest.er1
5450: cat conftest.err >&5
5451: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5452: (exit $ac_status); } >/dev/null; then
5453: if test -s conftest.err; then
5454: ac_cpp_err=$ac_cxx_preproc_warn_flag
5455: else
5456: ac_cpp_err=
5457: fi
5458: else
5459: ac_cpp_err=yes
5460: fi
5461: if test -z "$ac_cpp_err"; then
5462: ac_header_preproc=yes
5463: else
5464: echo "$as_me: failed program was:" >&5
5465: sed 's/^/| /' conftest.$ac_ext >&5
5466:
5467: ac_header_preproc=no
5468: fi
5469: rm -f conftest.err conftest.$ac_ext
5470: echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5471: echo "${ECHO_T}$ac_header_preproc" >&6
5472:
5473: # So? What about this header?
5474: case $ac_header_compiler:$ac_header_preproc in
5475: yes:no )
5476: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5477: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5478: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5479: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5480: (
5481: cat <<\_ASBOX
5482: ## ------------------------------------ ##
5483: ## Report this to bug-autoconf@gnu.org. ##
5484: ## ------------------------------------ ##
5485: _ASBOX
5486: ) |
5487: sed "s/^/$as_me: WARNING: /" >&2
5488: ;;
5489: no:yes )
5490: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5491: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5492: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5493: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5494: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5495: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5496: (
5497: cat <<\_ASBOX
5498: ## ------------------------------------ ##
5499: ## Report this to bug-autoconf@gnu.org. ##
5500: ## ------------------------------------ ##
5501: _ASBOX
5502: ) |
5503: sed "s/^/$as_me: WARNING: /" >&2
5504: ;;
5505: esac
5506: echo "$as_me:$LINENO: checking for $ac_header" >&5
5507: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5508: if eval "test \"\${$as_ac_Header+set}\" = set"; then
5509: echo $ECHO_N "(cached) $ECHO_C" >&6
5510: else
5511: eval "$as_ac_Header=$ac_header_preproc"
1.1 paf 5512: fi
1.62 paf 5513: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5514: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5515:
1.1 paf 5516: fi
1.62 paf 5517: if test `eval echo '${'$as_ac_Header'}'` = yes; then
5518: cat >>confdefs.h <<_ACEOF
5519: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5520: _ACEOF
5521:
1.1 paf 5522: fi
1.62 paf 5523:
1.1 paf 5524: done
5525:
5526:
5527:
5528: case "$host" in
5529: *-sunos5.6* | *-solaris2.6*)
1.62 paf 5530:
5531: echo "$as_me:$LINENO: checking for main in -lxnet" >&5
5532: echo $ECHO_N "checking for main in -lxnet... $ECHO_C" >&6
5533: if test "${ac_cv_lib_xnet_main+set}" = set; then
5534: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 paf 5535: else
1.62 paf 5536: ac_check_lib_save_LIBS=$LIBS
1.1 paf 5537: LIBS="-lxnet $LIBS"
1.62 paf 5538: cat >conftest.$ac_ext <<_ACEOF
5539: #line $LINENO "configure"
5540: /* confdefs.h. */
5541: _ACEOF
5542: cat confdefs.h >>conftest.$ac_ext
5543: cat >>conftest.$ac_ext <<_ACEOF
5544: /* end confdefs.h. */
5545:
5546:
5547: int
5548: main ()
5549: {
5550: main ();
5551: ;
5552: return 0;
5553: }
5554: _ACEOF
5555: rm -f conftest.$ac_objext conftest$ac_exeext
5556: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5557: (eval $ac_link) 2>&5
5558: ac_status=$?
5559: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5560: (exit $ac_status); } &&
5561: { ac_try='test -s conftest$ac_exeext'
5562: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5563: (eval $ac_try) 2>&5
5564: ac_status=$?
5565: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5566: (exit $ac_status); }; }; then
5567: ac_cv_lib_xnet_main=yes
5568: else
5569: echo "$as_me: failed program was:" >&5
5570: sed 's/^/| /' conftest.$ac_ext >&5
5571:
5572: ac_cv_lib_xnet_main=no
5573: fi
5574: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5575: LIBS=$ac_check_lib_save_LIBS
5576: fi
5577: echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_main" >&5
5578: echo "${ECHO_T}$ac_cv_lib_xnet_main" >&6
5579: if test $ac_cv_lib_xnet_main = yes; then
5580: cat >>confdefs.h <<_ACEOF
5581: #define HAVE_LIBXNET 1
5582: _ACEOF
1.1 paf 5583:
5584: LIBS="-lxnet $LIBS"
5585:
5586: fi
5587:
5588: ;;
5589: *-sunos5* | *-solaris2*)
1.62 paf 5590:
5591: echo "$as_me:$LINENO: checking for main in -lsocket" >&5
5592: echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
5593: if test "${ac_cv_lib_socket_main+set}" = set; then
5594: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 paf 5595: else
1.62 paf 5596: ac_check_lib_save_LIBS=$LIBS
1.1 paf 5597: LIBS="-lsocket $LIBS"
1.62 paf 5598: cat >conftest.$ac_ext <<_ACEOF
5599: #line $LINENO "configure"
5600: /* confdefs.h. */
5601: _ACEOF
5602: cat confdefs.h >>conftest.$ac_ext
5603: cat >>conftest.$ac_ext <<_ACEOF
5604: /* end confdefs.h. */
5605:
5606:
5607: int
5608: main ()
5609: {
5610: main ();
5611: ;
5612: return 0;
5613: }
5614: _ACEOF
5615: rm -f conftest.$ac_objext conftest$ac_exeext
5616: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5617: (eval $ac_link) 2>&5
5618: ac_status=$?
5619: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5620: (exit $ac_status); } &&
5621: { ac_try='test -s conftest$ac_exeext'
5622: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5623: (eval $ac_try) 2>&5
5624: ac_status=$?
5625: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5626: (exit $ac_status); }; }; then
5627: ac_cv_lib_socket_main=yes
5628: else
5629: echo "$as_me: failed program was:" >&5
5630: sed 's/^/| /' conftest.$ac_ext >&5
5631:
5632: ac_cv_lib_socket_main=no
5633: fi
5634: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5635: LIBS=$ac_check_lib_save_LIBS
5636: fi
5637: echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
5638: echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
5639: if test $ac_cv_lib_socket_main = yes; then
5640: cat >>confdefs.h <<_ACEOF
5641: #define HAVE_LIBSOCKET 1
5642: _ACEOF
1.1 paf 5643:
5644: LIBS="-lsocket $LIBS"
5645:
5646: fi
5647:
1.62 paf 5648:
5649: echo "$as_me:$LINENO: checking for main in -lnsl" >&5
5650: echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
5651: if test "${ac_cv_lib_nsl_main+set}" = set; then
5652: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 paf 5653: else
1.62 paf 5654: ac_check_lib_save_LIBS=$LIBS
1.1 paf 5655: LIBS="-lnsl $LIBS"
1.62 paf 5656: cat >conftest.$ac_ext <<_ACEOF
5657: #line $LINENO "configure"
5658: /* confdefs.h. */
5659: _ACEOF
5660: cat confdefs.h >>conftest.$ac_ext
5661: cat >>conftest.$ac_ext <<_ACEOF
5662: /* end confdefs.h. */
5663:
5664:
5665: int
5666: main ()
5667: {
5668: main ();
5669: ;
5670: return 0;
5671: }
5672: _ACEOF
5673: rm -f conftest.$ac_objext conftest$ac_exeext
5674: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5675: (eval $ac_link) 2>&5
5676: ac_status=$?
5677: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5678: (exit $ac_status); } &&
5679: { ac_try='test -s conftest$ac_exeext'
5680: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5681: (eval $ac_try) 2>&5
5682: ac_status=$?
5683: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5684: (exit $ac_status); }; }; then
5685: ac_cv_lib_nsl_main=yes
5686: else
5687: echo "$as_me: failed program was:" >&5
5688: sed 's/^/| /' conftest.$ac_ext >&5
5689:
5690: ac_cv_lib_nsl_main=no
5691: fi
5692: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5693: LIBS=$ac_check_lib_save_LIBS
5694: fi
5695: echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
5696: echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
5697: if test $ac_cv_lib_nsl_main = yes; then
5698: cat >>confdefs.h <<_ACEOF
5699: #define HAVE_LIBNSL 1
5700: _ACEOF
1.1 paf 5701:
5702: LIBS="-lnsl $LIBS"
5703:
5704: fi
5705:
5706: ;;
5707: *-nec-sysv4*)
1.62 paf 5708:
5709: echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5710: echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
5711: if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5712: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 paf 5713: else
1.62 paf 5714: ac_check_lib_save_LIBS=$LIBS
1.1 paf 5715: LIBS="-lnsl $LIBS"
1.62 paf 5716: cat >conftest.$ac_ext <<_ACEOF
5717: #line $LINENO "configure"
5718: /* confdefs.h. */
5719: _ACEOF
5720: cat confdefs.h >>conftest.$ac_ext
5721: cat >>conftest.$ac_ext <<_ACEOF
5722: /* end confdefs.h. */
5723:
1.1 paf 5724: /* Override any gcc2 internal prototype to avoid an error. */
5725: #ifdef __cplusplus
5726: extern "C"
5727: #endif
5728: /* We use char because int might match the return type of a gcc2
1.62 paf 5729: builtin and then its argument prototype would still apply. */
5730: char gethostbyname ();
5731: int
5732: main ()
5733: {
5734: gethostbyname ();
5735: ;
5736: return 0;
5737: }
5738: _ACEOF
5739: rm -f conftest.$ac_objext conftest$ac_exeext
5740: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5741: (eval $ac_link) 2>&5
5742: ac_status=$?
5743: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5744: (exit $ac_status); } &&
5745: { ac_try='test -s conftest$ac_exeext'
5746: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5747: (eval $ac_try) 2>&5
5748: ac_status=$?
5749: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5750: (exit $ac_status); }; }; then
5751: ac_cv_lib_nsl_gethostbyname=yes
5752: else
5753: echo "$as_me: failed program was:" >&5
5754: sed 's/^/| /' conftest.$ac_ext >&5
5755:
5756: ac_cv_lib_nsl_gethostbyname=no
5757: fi
5758: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5759: LIBS=$ac_check_lib_save_LIBS
5760: fi
5761: echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5762: echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
5763: if test $ac_cv_lib_nsl_gethostbyname = yes; then
5764: cat >>confdefs.h <<_ACEOF
5765: #define HAVE_LIBNSL 1
5766: _ACEOF
1.1 paf 5767:
1.62 paf 5768: LIBS="-lnsl $LIBS"
1.1 paf 5769:
5770: fi
5771:
5772:
1.62 paf 5773: echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
5774: echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
5775: if test "${ac_cv_lib_socket_socket+set}" = set; then
5776: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 paf 5777: else
1.62 paf 5778: ac_check_lib_save_LIBS=$LIBS
1.1 paf 5779: LIBS="-lsocket $LIBS"
1.62 paf 5780: cat >conftest.$ac_ext <<_ACEOF
5781: #line $LINENO "configure"
5782: /* confdefs.h. */
5783: _ACEOF
5784: cat confdefs.h >>conftest.$ac_ext
5785: cat >>conftest.$ac_ext <<_ACEOF
5786: /* end confdefs.h. */
5787:
1.1 paf 5788: /* Override any gcc2 internal prototype to avoid an error. */
5789: #ifdef __cplusplus
5790: extern "C"
5791: #endif
5792: /* We use char because int might match the return type of a gcc2
1.62 paf 5793: builtin and then its argument prototype would still apply. */
5794: char socket ();
5795: int
5796: main ()
5797: {
5798: socket ();
5799: ;
5800: return 0;
5801: }
5802: _ACEOF
5803: rm -f conftest.$ac_objext conftest$ac_exeext
5804: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5805: (eval $ac_link) 2>&5
5806: ac_status=$?
5807: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5808: (exit $ac_status); } &&
5809: { ac_try='test -s conftest$ac_exeext'
5810: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5811: (eval $ac_try) 2>&5
5812: ac_status=$?
5813: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5814: (exit $ac_status); }; }; then
5815: ac_cv_lib_socket_socket=yes
5816: else
5817: echo "$as_me: failed program was:" >&5
5818: sed 's/^/| /' conftest.$ac_ext >&5
5819:
5820: ac_cv_lib_socket_socket=no
5821: fi
5822: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5823: LIBS=$ac_check_lib_save_LIBS
5824: fi
5825: echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
5826: echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
5827: if test $ac_cv_lib_socket_socket = yes; then
5828: cat >>confdefs.h <<_ACEOF
5829: #define HAVE_LIBSOCKET 1
5830: _ACEOF
1.1 paf 5831:
5832: LIBS="-lsocket $LIBS"
5833:
5834: fi
5835:
5836: ;;
5837: *-cygwin*)
1.62 paf 5838:
5839: cat >>confdefs.h <<\_ACEOF
5840: #define WIN32
5841: _ACEOF
5842:
5843:
5844: echo "$as_me:$LINENO: checking for socket in -lwsock32" >&5
5845: echo $ECHO_N "checking for socket in -lwsock32... $ECHO_C" >&6
5846: if test "${ac_cv_lib_wsock32_socket+set}" = set; then
5847: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 paf 5848: else
1.62 paf 5849: ac_check_lib_save_LIBS=$LIBS
1.1 paf 5850: LIBS="-lwsock32 $LIBS"
1.62 paf 5851: cat >conftest.$ac_ext <<_ACEOF
5852: #line $LINENO "configure"
5853: /* confdefs.h. */
5854: _ACEOF
5855: cat confdefs.h >>conftest.$ac_ext
5856: cat >>conftest.$ac_ext <<_ACEOF
5857: /* end confdefs.h. */
5858:
1.1 paf 5859: /* Override any gcc2 internal prototype to avoid an error. */
5860: #ifdef __cplusplus
5861: extern "C"
5862: #endif
5863: /* We use char because int might match the return type of a gcc2
1.62 paf 5864: builtin and then its argument prototype would still apply. */
5865: char socket ();
5866: int
5867: main ()
5868: {
5869: socket ();
5870: ;
5871: return 0;
5872: }
5873: _ACEOF
5874: rm -f conftest.$ac_objext conftest$ac_exeext
5875: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5876: (eval $ac_link) 2>&5
5877: ac_status=$?
5878: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5879: (exit $ac_status); } &&
5880: { ac_try='test -s conftest$ac_exeext'
5881: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5882: (eval $ac_try) 2>&5
5883: ac_status=$?
5884: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5885: (exit $ac_status); }; }; then
5886: ac_cv_lib_wsock32_socket=yes
5887: else
5888: echo "$as_me: failed program was:" >&5
5889: sed 's/^/| /' conftest.$ac_ext >&5
5890:
5891: ac_cv_lib_wsock32_socket=no
5892: fi
5893: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5894: LIBS=$ac_check_lib_save_LIBS
5895: fi
5896: echo "$as_me:$LINENO: result: $ac_cv_lib_wsock32_socket" >&5
5897: echo "${ECHO_T}$ac_cv_lib_wsock32_socket" >&6
5898: if test $ac_cv_lib_wsock32_socket = yes; then
5899: cat >>confdefs.h <<_ACEOF
5900: #define HAVE_LIBWSOCK32 1
5901: _ACEOF
1.1 paf 5902:
5903: LIBS="-lwsock32 $LIBS"
5904:
5905: fi
5906:
5907: ;;
1.22 paf 5908: # never tested this, only theoretically by letter from demos about parser2 build
1.23 paf 5909: *-hpux*)
1.62 paf 5910:
5911: echo "$as_me:$LINENO: checking for main in -lnsl" >&5
5912: echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
5913: if test "${ac_cv_lib_nsl_main+set}" = set; then
5914: echo $ECHO_N "(cached) $ECHO_C" >&6
1.22 paf 5915: else
1.62 paf 5916: ac_check_lib_save_LIBS=$LIBS
1.22 paf 5917: LIBS="-lnsl $LIBS"
1.62 paf 5918: cat >conftest.$ac_ext <<_ACEOF
5919: #line $LINENO "configure"
5920: /* confdefs.h. */
5921: _ACEOF
5922: cat confdefs.h >>conftest.$ac_ext
5923: cat >>conftest.$ac_ext <<_ACEOF
5924: /* end confdefs.h. */
5925:
5926:
5927: int
5928: main ()
5929: {
5930: main ();
5931: ;
5932: return 0;
5933: }
5934: _ACEOF
5935: rm -f conftest.$ac_objext conftest$ac_exeext
5936: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5937: (eval $ac_link) 2>&5
5938: ac_status=$?
5939: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5940: (exit $ac_status); } &&
5941: { ac_try='test -s conftest$ac_exeext'
5942: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5943: (eval $ac_try) 2>&5
5944: ac_status=$?
5945: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5946: (exit $ac_status); }; }; then
5947: ac_cv_lib_nsl_main=yes
5948: else
5949: echo "$as_me: failed program was:" >&5
5950: sed 's/^/| /' conftest.$ac_ext >&5
5951:
5952: ac_cv_lib_nsl_main=no
5953: fi
5954: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5955: LIBS=$ac_check_lib_save_LIBS
5956: fi
5957: echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
5958: echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
5959: if test $ac_cv_lib_nsl_main = yes; then
5960: cat >>confdefs.h <<_ACEOF
5961: #define HAVE_LIBNSL 1
5962: _ACEOF
5963:
5964: LIBS="-lnsl $LIBS"
5965:
1.22 paf 5966: fi
5967:
5968: ;;
1.1 paf 5969: esac
5970:
1.62 paf 5971:
5972: echo "$as_me:$LINENO: checking for sin in -lm" >&5
5973: echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
5974: if test "${ac_cv_lib_m_sin+set}" = set; then
5975: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 paf 5976: else
1.62 paf 5977: ac_check_lib_save_LIBS=$LIBS
1.1 paf 5978: LIBS="-lm $LIBS"
1.62 paf 5979: cat >conftest.$ac_ext <<_ACEOF
5980: #line $LINENO "configure"
5981: /* confdefs.h. */
5982: _ACEOF
5983: cat confdefs.h >>conftest.$ac_ext
5984: cat >>conftest.$ac_ext <<_ACEOF
5985: /* end confdefs.h. */
5986:
1.1 paf 5987: /* Override any gcc2 internal prototype to avoid an error. */
5988: #ifdef __cplusplus
5989: extern "C"
5990: #endif
5991: /* We use char because int might match the return type of a gcc2
1.62 paf 5992: builtin and then its argument prototype would still apply. */
5993: char sin ();
5994: int
5995: main ()
5996: {
5997: sin ();
5998: ;
5999: return 0;
6000: }
6001: _ACEOF
6002: rm -f conftest.$ac_objext conftest$ac_exeext
6003: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6004: (eval $ac_link) 2>&5
6005: ac_status=$?
6006: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6007: (exit $ac_status); } &&
6008: { ac_try='test -s conftest$ac_exeext'
6009: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6010: (eval $ac_try) 2>&5
6011: ac_status=$?
6012: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6013: (exit $ac_status); }; }; then
6014: ac_cv_lib_m_sin=yes
6015: else
6016: echo "$as_me: failed program was:" >&5
6017: sed 's/^/| /' conftest.$ac_ext >&5
6018:
6019: ac_cv_lib_m_sin=no
6020: fi
6021: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6022: LIBS=$ac_check_lib_save_LIBS
6023: fi
6024: echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
6025: echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
6026: if test $ac_cv_lib_m_sin = yes; then
6027: cat >>confdefs.h <<_ACEOF
6028: #define HAVE_LIBM 1
6029: _ACEOF
1.1 paf 6030:
1.62 paf 6031: LIBS="-lm $LIBS"
1.1 paf 6032:
6033: fi
6034:
6035:
6036:
1.62 paf 6037: echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
6038: echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
6039: if test "${ac_cv_lib_crypt_crypt+set}" = set; then
6040: echo $ECHO_N "(cached) $ECHO_C" >&6
1.31 paf 6041: else
1.62 paf 6042: ac_check_lib_save_LIBS=$LIBS
1.31 paf 6043: LIBS="-lcrypt $LIBS"
1.62 paf 6044: cat >conftest.$ac_ext <<_ACEOF
6045: #line $LINENO "configure"
6046: /* confdefs.h. */
6047: _ACEOF
6048: cat confdefs.h >>conftest.$ac_ext
6049: cat >>conftest.$ac_ext <<_ACEOF
6050: /* end confdefs.h. */
6051:
1.31 paf 6052: /* Override any gcc2 internal prototype to avoid an error. */
6053: #ifdef __cplusplus
6054: extern "C"
6055: #endif
6056: /* We use char because int might match the return type of a gcc2
1.62 paf 6057: builtin and then its argument prototype would still apply. */
6058: char crypt ();
6059: int
6060: main ()
6061: {
6062: crypt ();
6063: ;
6064: return 0;
6065: }
6066: _ACEOF
6067: rm -f conftest.$ac_objext conftest$ac_exeext
6068: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6069: (eval $ac_link) 2>&5
6070: ac_status=$?
6071: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6072: (exit $ac_status); } &&
6073: { ac_try='test -s conftest$ac_exeext'
6074: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6075: (eval $ac_try) 2>&5
6076: ac_status=$?
6077: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6078: (exit $ac_status); }; }; then
6079: ac_cv_lib_crypt_crypt=yes
6080: else
6081: echo "$as_me: failed program was:" >&5
6082: sed 's/^/| /' conftest.$ac_ext >&5
6083:
6084: ac_cv_lib_crypt_crypt=no
6085: fi
6086: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6087: LIBS=$ac_check_lib_save_LIBS
6088: fi
6089: echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
6090: echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
6091: if test $ac_cv_lib_crypt_crypt = yes; then
6092: cat >>confdefs.h <<_ACEOF
6093: #define HAVE_LIBCRYPT 1
6094: _ACEOF
6095:
6096: LIBS="-lcrypt $LIBS"
1.31 paf 6097:
6098: fi
6099:
6100:
6101:
1.62 paf 6102:
6103:
6104:
6105:
6106:
6107:
6108:
6109:
6110:
6111:
1.31 paf 6112:
6113:
1.1 paf 6114:
6115: for ac_func in trunc \
6116: round \
6117: sign \
6118: flock \
6119: _locking \
1.5 paf 6120: fcntl \
1.3 paf 6121: lockf \
1.56 paf 6122: ftruncate \
1.31 paf 6123: getrusage \
1.49 paf 6124: gettimeofday \
1.52 paf 6125: crypt \
6126: sigsetjmp siglongjmp
1.1 paf 6127:
6128: do
1.62 paf 6129: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6130: echo "$as_me:$LINENO: checking for $ac_func" >&5
6131: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6132: if eval "test \"\${$as_ac_var+set}\" = set"; then
6133: echo $ECHO_N "(cached) $ECHO_C" >&6
6134: else
6135: cat >conftest.$ac_ext <<_ACEOF
6136: #line $LINENO "configure"
6137: /* confdefs.h. */
6138: _ACEOF
6139: cat confdefs.h >>conftest.$ac_ext
6140: cat >>conftest.$ac_ext <<_ACEOF
6141: /* end confdefs.h. */
1.1 paf 6142: /* System header to define __stub macros and hopefully few prototypes,
1.62 paf 6143: which can conflict with char $ac_func (); below.
6144: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6145: <limits.h> exists even on freestanding compilers. */
6146: #ifdef __STDC__
6147: # include <limits.h>
6148: #else
6149: # include <assert.h>
6150: #endif
1.1 paf 6151: /* Override any gcc2 internal prototype to avoid an error. */
6152: #ifdef __cplusplus
6153: extern "C"
1.62 paf 6154: {
1.1 paf 6155: #endif
6156: /* We use char because int might match the return type of a gcc2
1.62 paf 6157: builtin and then its argument prototype would still apply. */
6158: char $ac_func ();
1.1 paf 6159: /* The GNU C library defines this for functions which it implements
6160: to always fail with ENOSYS. Some functions are actually named
6161: something starting with __ and the normal name is an alias. */
6162: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6163: choke me
6164: #else
1.62 paf 6165: char (*f) () = $ac_func;
6166: #endif
6167: #ifdef __cplusplus
6168: }
1.1 paf 6169: #endif
6170:
1.62 paf 6171: int
6172: main ()
6173: {
6174: return f != $ac_func;
6175: ;
6176: return 0;
6177: }
6178: _ACEOF
6179: rm -f conftest.$ac_objext conftest$ac_exeext
6180: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6181: (eval $ac_link) 2>&5
6182: ac_status=$?
6183: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6184: (exit $ac_status); } &&
6185: { ac_try='test -s conftest$ac_exeext'
6186: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6187: (eval $ac_try) 2>&5
6188: ac_status=$?
6189: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6190: (exit $ac_status); }; }; then
6191: eval "$as_ac_var=yes"
6192: else
6193: echo "$as_me: failed program was:" >&5
6194: sed 's/^/| /' conftest.$ac_ext >&5
6195:
6196: eval "$as_ac_var=no"
6197: fi
6198: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6199: fi
6200: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6201: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6202: if test `eval echo '${'$as_ac_var'}'` = yes; then
6203: cat >>confdefs.h <<_ACEOF
6204: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6205: _ACEOF
1.1 paf 6206:
6207: fi
6208: done
6209:
6210:
1.3 paf 6211:
1.62 paf 6212:
1.3 paf 6213: for ac_func in qsort
6214: do
1.62 paf 6215: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6216: echo "$as_me:$LINENO: checking for $ac_func" >&5
6217: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6218: if eval "test \"\${$as_ac_var+set}\" = set"; then
6219: echo $ECHO_N "(cached) $ECHO_C" >&6
6220: else
6221: cat >conftest.$ac_ext <<_ACEOF
6222: #line $LINENO "configure"
6223: /* confdefs.h. */
6224: _ACEOF
6225: cat confdefs.h >>conftest.$ac_ext
6226: cat >>conftest.$ac_ext <<_ACEOF
6227: /* end confdefs.h. */
1.3 paf 6228: /* System header to define __stub macros and hopefully few prototypes,
1.62 paf 6229: which can conflict with char $ac_func (); below.
6230: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6231: <limits.h> exists even on freestanding compilers. */
6232: #ifdef __STDC__
6233: # include <limits.h>
6234: #else
6235: # include <assert.h>
6236: #endif
1.3 paf 6237: /* Override any gcc2 internal prototype to avoid an error. */
6238: #ifdef __cplusplus
6239: extern "C"
1.62 paf 6240: {
1.3 paf 6241: #endif
6242: /* We use char because int might match the return type of a gcc2
1.62 paf 6243: builtin and then its argument prototype would still apply. */
6244: char $ac_func ();
1.3 paf 6245: /* The GNU C library defines this for functions which it implements
6246: to always fail with ENOSYS. Some functions are actually named
6247: something starting with __ and the normal name is an alias. */
6248: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6249: choke me
6250: #else
1.62 paf 6251: char (*f) () = $ac_func;
6252: #endif
6253: #ifdef __cplusplus
6254: }
1.3 paf 6255: #endif
6256:
1.62 paf 6257: int
6258: main ()
6259: {
6260: return f != $ac_func;
6261: ;
6262: return 0;
6263: }
6264: _ACEOF
6265: rm -f conftest.$ac_objext conftest$ac_exeext
6266: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6267: (eval $ac_link) 2>&5
6268: ac_status=$?
6269: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6270: (exit $ac_status); } &&
6271: { ac_try='test -s conftest$ac_exeext'
6272: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6273: (eval $ac_try) 2>&5
6274: ac_status=$?
6275: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6276: (exit $ac_status); }; }; then
6277: eval "$as_ac_var=yes"
6278: else
6279: echo "$as_me: failed program was:" >&5
6280: sed 's/^/| /' conftest.$ac_ext >&5
6281:
6282: eval "$as_ac_var=no"
6283: fi
6284: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6285: fi
6286: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6287: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6288: if test `eval echo '${'$as_ac_var'}'` = yes; then
6289: cat >>confdefs.h <<_ACEOF
6290: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6291: _ACEOF
6292:
6293: else
6294: { { echo "$as_me:$LINENO: error: No qsort library function." >&5
6295: echo "$as_me: error: No qsort library function." >&2;}
6296: { (exit 1); exit 1; }; }
1.3 paf 6297: fi
1.62 paf 6298: done
1.3 paf 6299:
6300:
6301: for ac_func in select
6302: do
1.62 paf 6303: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6304: echo "$as_me:$LINENO: checking for $ac_func" >&5
6305: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6306: if eval "test \"\${$as_ac_var+set}\" = set"; then
6307: echo $ECHO_N "(cached) $ECHO_C" >&6
6308: else
6309: cat >conftest.$ac_ext <<_ACEOF
6310: #line $LINENO "configure"
6311: /* confdefs.h. */
6312: _ACEOF
6313: cat confdefs.h >>conftest.$ac_ext
6314: cat >>conftest.$ac_ext <<_ACEOF
6315: /* end confdefs.h. */
1.3 paf 6316: /* System header to define __stub macros and hopefully few prototypes,
1.62 paf 6317: which can conflict with char $ac_func (); below.
6318: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6319: <limits.h> exists even on freestanding compilers. */
6320: #ifdef __STDC__
6321: # include <limits.h>
6322: #else
6323: # include <assert.h>
6324: #endif
1.3 paf 6325: /* Override any gcc2 internal prototype to avoid an error. */
6326: #ifdef __cplusplus
6327: extern "C"
1.62 paf 6328: {
1.3 paf 6329: #endif
6330: /* We use char because int might match the return type of a gcc2
1.62 paf 6331: builtin and then its argument prototype would still apply. */
6332: char $ac_func ();
1.3 paf 6333: /* The GNU C library defines this for functions which it implements
6334: to always fail with ENOSYS. Some functions are actually named
6335: something starting with __ and the normal name is an alias. */
6336: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6337: choke me
6338: #else
1.62 paf 6339: char (*f) () = $ac_func;
6340: #endif
6341: #ifdef __cplusplus
6342: }
1.3 paf 6343: #endif
6344:
1.62 paf 6345: int
6346: main ()
6347: {
6348: return f != $ac_func;
6349: ;
6350: return 0;
6351: }
6352: _ACEOF
6353: rm -f conftest.$ac_objext conftest$ac_exeext
6354: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6355: (eval $ac_link) 2>&5
6356: ac_status=$?
6357: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6358: (exit $ac_status); } &&
6359: { ac_try='test -s conftest$ac_exeext'
6360: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6361: (eval $ac_try) 2>&5
6362: ac_status=$?
6363: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6364: (exit $ac_status); }; }; then
6365: eval "$as_ac_var=yes"
6366: else
6367: echo "$as_me: failed program was:" >&5
6368: sed 's/^/| /' conftest.$ac_ext >&5
6369:
6370: eval "$as_ac_var=no"
6371: fi
6372: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6373: fi
6374: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6375: echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6376: if test `eval echo '${'$as_ac_var'}'` = yes; then
6377: cat >>confdefs.h <<_ACEOF
6378: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6379: _ACEOF
6380:
6381: else
6382: { { echo "$as_me:$LINENO: error: No select library function." >&5
6383: echo "$as_me: error: No select library function." >&2;}
6384: { (exit 1); exit 1; }; }
1.3 paf 6385: fi
6386: done
6387:
6388:
1.47 paf 6389:
1.62 paf 6390: echo "$as_me:$LINENO: checking for timezone variable" >&5
6391: echo $ECHO_N "checking for timezone variable... $ECHO_C" >&6
6392: cat >conftest.$ac_ext <<_ACEOF
6393: #line $LINENO "configure"
6394: /* confdefs.h. */
6395: _ACEOF
6396: cat confdefs.h >>conftest.$ac_ext
6397: cat >>conftest.$ac_ext <<_ACEOF
6398: /* end confdefs.h. */
1.47 paf 6399: #include <time.h>
1.62 paf 6400: int
6401: main ()
6402: {
1.47 paf 6403:
6404: time_t test=timezone;
6405:
1.62 paf 6406: ;
6407: return 0;
6408: }
6409: _ACEOF
6410: rm -f conftest.$ac_objext
6411: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6412: (eval $ac_compile) 2>&5
6413: ac_status=$?
6414: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6415: (exit $ac_status); } &&
6416: { ac_try='test -s conftest.$ac_objext'
6417: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6418: (eval $ac_try) 2>&5
6419: ac_status=$?
6420: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6421: (exit $ac_status); }; }; then
6422: cat >>confdefs.h <<\_ACEOF
1.47 paf 6423: #define HAVE_TIMEZONE 1
1.62 paf 6424: _ACEOF
6425:
6426: echo "$as_me:$LINENO: result: yes" >&5
6427: echo "${ECHO_T}yes" >&6
6428: else
6429: echo "$as_me: failed program was:" >&5
6430: sed 's/^/| /' conftest.$ac_ext >&5
6431:
6432: echo "$as_me:$LINENO: result: no" >&5
6433: echo "${ECHO_T}no" >&6
6434: fi
6435: rm -f conftest.$ac_objext conftest.$ac_ext
6436:
6437: echo "$as_me:$LINENO: checking for daylight variable" >&5
6438: echo $ECHO_N "checking for daylight variable... $ECHO_C" >&6
6439: cat >conftest.$ac_ext <<_ACEOF
6440: #line $LINENO "configure"
6441: /* confdefs.h. */
6442: _ACEOF
6443: cat confdefs.h >>conftest.$ac_ext
6444: cat >>conftest.$ac_ext <<_ACEOF
6445: /* end confdefs.h. */
1.47 paf 6446: #include <time.h>
1.62 paf 6447: int
6448: main ()
6449: {
1.47 paf 6450:
6451: int test=daylight;
6452:
1.62 paf 6453: ;
6454: return 0;
6455: }
6456: _ACEOF
6457: rm -f conftest.$ac_objext
6458: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6459: (eval $ac_compile) 2>&5
6460: ac_status=$?
6461: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6462: (exit $ac_status); } &&
6463: { ac_try='test -s conftest.$ac_objext'
6464: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6465: (eval $ac_try) 2>&5
6466: ac_status=$?
6467: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6468: (exit $ac_status); }; }; then
6469: cat >>confdefs.h <<\_ACEOF
1.47 paf 6470: #define HAVE_DAYLIGHT 1
1.62 paf 6471: _ACEOF
6472:
6473: echo "$as_me:$LINENO: result: yes" >&5
6474: echo "${ECHO_T}yes" >&6
6475: else
6476: echo "$as_me: failed program was:" >&5
6477: sed 's/^/| /' conftest.$ac_ext >&5
6478:
6479: echo "$as_me:$LINENO: result: no" >&5
6480: echo "${ECHO_T}no" >&6
6481: fi
6482: rm -f conftest.$ac_objext conftest.$ac_ext
6483:
6484: echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
6485: echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
6486: cat >conftest.$ac_ext <<_ACEOF
6487: #line $LINENO "configure"
6488: /* confdefs.h. */
6489: _ACEOF
6490: cat confdefs.h >>conftest.$ac_ext
6491: cat >>conftest.$ac_ext <<_ACEOF
6492: /* end confdefs.h. */
1.47 paf 6493: #include <time.h>
1.62 paf 6494: int
6495: main ()
6496: {
6497: struct tm tm;
6498: tm.tm_gmtoff=0;
6499:
6500: ;
6501: return 0;
6502: }
6503: _ACEOF
6504: rm -f conftest.$ac_objext
6505: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6506: (eval $ac_compile) 2>&5
6507: ac_status=$?
6508: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6509: (exit $ac_status); } &&
6510: { ac_try='test -s conftest.$ac_objext'
6511: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6512: (eval $ac_try) 2>&5
6513: ac_status=$?
6514: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6515: (exit $ac_status); }; }; then
6516: cat >>confdefs.h <<\_ACEOF
1.47 paf 6517: #define HAVE_TM_GMTOFF 1
1.62 paf 6518: _ACEOF
6519:
6520: echo "$as_me:$LINENO: result: yes" >&5
6521: echo "${ECHO_T}yes" >&6
6522: else
6523: echo "$as_me: failed program was:" >&5
6524: sed 's/^/| /' conftest.$ac_ext >&5
6525:
6526: echo "$as_me:$LINENO: result: no" >&5
6527: echo "${ECHO_T}no" >&6
6528: fi
6529: rm -f conftest.$ac_objext conftest.$ac_ext
6530:
6531: echo "$as_me:$LINENO: checking for tm_tzadj in struct tm" >&5
6532: echo $ECHO_N "checking for tm_tzadj in struct tm... $ECHO_C" >&6
6533: cat >conftest.$ac_ext <<_ACEOF
6534: #line $LINENO "configure"
6535: /* confdefs.h. */
6536: _ACEOF
6537: cat confdefs.h >>conftest.$ac_ext
6538: cat >>conftest.$ac_ext <<_ACEOF
6539: /* end confdefs.h. */
1.47 paf 6540: #include <time.h>
1.62 paf 6541: int
6542: main ()
6543: {
6544: struct tm tm;
6545: tm.tm_tzadj=0;
6546:
6547: ;
6548: return 0;
6549: }
6550: _ACEOF
6551: rm -f conftest.$ac_objext
6552: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6553: (eval $ac_compile) 2>&5
6554: ac_status=$?
6555: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6556: (exit $ac_status); } &&
6557: { ac_try='test -s conftest.$ac_objext'
6558: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6559: (eval $ac_try) 2>&5
6560: ac_status=$?
6561: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6562: (exit $ac_status); }; }; then
6563: cat >>confdefs.h <<\_ACEOF
1.47 paf 6564: #define HAVE_TM_TZADJ 1
1.62 paf 6565: _ACEOF
6566:
6567: echo "$as_me:$LINENO: result: yes" >&5
6568: echo "${ECHO_T}yes" >&6
6569: else
6570: echo "$as_me: failed program was:" >&5
6571: sed 's/^/| /' conftest.$ac_ext >&5
6572:
6573: echo "$as_me:$LINENO: result: no" >&5
6574: echo "${ECHO_T}no" >&6
6575: fi
6576: rm -f conftest.$ac_objext conftest.$ac_ext
6577:
6578:
6579: echo "$as_me:$LINENO: checking whether compiler supports pragma pack" >&5
6580: echo $ECHO_N "checking whether compiler supports pragma pack... $ECHO_C" >&6
6581: cat >conftest.$ac_ext <<_ACEOF
6582: #line $LINENO "configure"
6583: /* confdefs.h. */
6584: _ACEOF
6585: cat confdefs.h >>conftest.$ac_ext
6586: cat >>conftest.$ac_ext <<_ACEOF
6587: /* end confdefs.h. */
1.1 paf 6588: #pragma pack(1)
1.25 paf 6589: struct _1_byte {
1.1 paf 6590: char c;
1.25 paf 6591: };
1.1 paf 6592: #pragma pack()
1.25 paf 6593:
1.62 paf 6594: int
6595: main ()
6596: {
6597:
6598: ;
6599: return 0;
6600: }
6601: _ACEOF
6602: rm -f conftest.$ac_objext
6603: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6604: (eval $ac_compile) 2>&5
6605: ac_status=$?
6606: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6607: (exit $ac_status); } &&
6608: { ac_try='test -s conftest.$ac_objext'
6609: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6610: (eval $ac_try) 2>&5
6611: ac_status=$?
6612: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6613: (exit $ac_status); }; }; then
6614:
6615: echo "$as_me:$LINENO: result: yes" >&5
6616: echo "${ECHO_T}yes" >&6
6617:
6618: cat >>confdefs.h <<\_ACEOF
6619: #define HAVE_PRAGMA_PACK
6620: _ACEOF
1.1 paf 6621:
6622:
6623: else
1.62 paf 6624: echo "$as_me: failed program was:" >&5
6625: sed 's/^/| /' conftest.$ac_ext >&5
6626:
6627: echo "$as_me:$LINENO: result: no" >&5
6628: echo "${ECHO_T}no" >&6
6629:
6630: fi
6631: rm -f conftest.$ac_objext conftest.$ac_ext
6632:
6633: echo "$as_me:$LINENO: checking for set_new_handler" >&5
6634: echo $ECHO_N "checking for set_new_handler... $ECHO_C" >&6
6635: cat >conftest.$ac_ext <<_ACEOF
6636: #line $LINENO "configure"
6637: /* confdefs.h. */
6638: _ACEOF
6639: cat confdefs.h >>conftest.$ac_ext
6640: cat >>conftest.$ac_ext <<_ACEOF
6641: /* end confdefs.h. */
1.1 paf 6642: #ifdef HAVE_NEW
6643: #include <new>
6644: #endif
6645: void failed_new() {}
6646:
1.62 paf 6647: int
6648: main ()
6649: {
1.1 paf 6650: std::set_new_handler(failed_new);
6651:
1.62 paf 6652: ;
6653: return 0;
6654: }
6655: _ACEOF
6656: rm -f conftest.$ac_objext
6657: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6658: (eval $ac_compile) 2>&5
6659: ac_status=$?
6660: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6661: (exit $ac_status); } &&
6662: { ac_try='test -s conftest.$ac_objext'
6663: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6664: (eval $ac_try) 2>&5
6665: ac_status=$?
6666: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6667: (exit $ac_status); }; }; then
6668:
6669: echo "$as_me:$LINENO: result: yes" >&5
6670: echo "${ECHO_T}yes" >&6
6671:
6672: cat >>confdefs.h <<\_ACEOF
6673: #define HAVE_SET_NEW_HANDLER
6674: _ACEOF
1.1 paf 6675:
6676:
6677: else
1.62 paf 6678: echo "$as_me: failed program was:" >&5
6679: sed 's/^/| /' conftest.$ac_ext >&5
6680:
6681: echo "$as_me:$LINENO: result: no" >&5
6682: echo "${ECHO_T}no" >&6
1.1 paf 6683:
6684: fi
1.62 paf 6685: rm -f conftest.$ac_objext conftest.$ac_ext
1.1 paf 6686:
6687:
6688:
1.15 paf 6689:
1.8 paf 6690: APACHE_LIBS="$LIBS $LIBADD_DL"
1.1 paf 6691:
6692:
6693:
6694:
6695: # expand apostrophed
1.4 paf 6696: e_prefix=$prefix
6697: test "x$e_prefix" = xNONE && e_prefix=$ac_default_prefix
6698:
1.1 paf 6699: e_sysconfdir=$sysconfdir
1.4 paf 6700: test "$e_sysconfdir" = "\${prefix}/etc" && e_sysconfdir="${e_prefix}/etc"
1.1 paf 6701:
6702:
6703: charsetsdir=$e_sysconfdir/parser3.charsets
6704:
6705:
6706: # expand apostrophed
6707: e_libdir=$libdir
6708: if test "$e_libdir" = "\${exec_prefix}/lib"; then
6709:
6710: # Let make expand exec_prefix.
6711: e_exec_prefix=$exec_prefix
1.10 paf 6712: test "x$e_exec_prefix" = xNONE && e_exec_prefix=$e_prefix
1.1 paf 6713:
6714: # expand apostrophed
6715: test "$e_libdir" = "\${exec_prefix}/lib" && e_libdir="${e_exec_prefix}/lib"
6716: fi
6717:
6718: sqldriversdir=$e_libdir
6719:
6720:
6721:
6722:
6723:
6724:
6725:
1.62 paf 6726:
6727:
6728:
6729:
6730:
6731:
6732:
6733:
6734:
6735:
6736:
6737:
6738:
6739:
6740:
6741:
6742:
6743:
6744:
6745:
6746:
6747:
6748:
6749:
6750:
6751:
6752: ac_config_headers="$ac_config_headers src/include/pa_config_auto.h"
6753:
6754: ac_config_files="$ac_config_files Makefile src/Makefile src/types/Makefile src/classes/Makefile src/classes/gd/Makefile src/classes/smtp/Makefile src/include/Makefile src/main/Makefile src/sql/Makefile src/lib/Makefile src/lib/ltdl/Makefile src/lib/pcre/Makefile src/lib/md5/Makefile src/lib/patches/Makefile src/targets/Makefile src/targets/cgi/Makefile src/targets/apache13/Makefile src/targets/apache13/hook/Makefile src/targets/apache13/p3runConfigure src/targets/isapi/Makefile etc/Makefile etc/parser3.charsets/Makefile bin/Makefile bin/auto.p.dist"
6755: cat >confcache <<\_ACEOF
1.1 paf 6756: # This file is a shell script that caches the results of configure
6757: # tests run on this system so they can be shared between configure
1.62 paf 6758: # scripts and configure runs, see configure's option --config-cache.
6759: # It is not useful on other systems. If it contains results you don't
6760: # want to keep, you may remove or edit it.
1.1 paf 6761: #
1.62 paf 6762: # config.status only pays attention to the cache file if you give it
6763: # the --recheck option to rerun configure.
1.1 paf 6764: #
1.62 paf 6765: # `ac_cv_env_foo' variables (set or unset) will be overridden when
6766: # loading this file, other *unset* `ac_cv_foo' will be assigned the
6767: # following values.
6768:
6769: _ACEOF
6770:
1.1 paf 6771: # The following way of writing the cache mishandles newlines in values,
6772: # but we know of no workaround that is simple, portable, and efficient.
6773: # So, don't put newlines in cache variables' values.
6774: # Ultrix sh set writes to stderr and can't be redirected directly,
6775: # and sets the high bit in the cache file unless we assign to the vars.
1.62 paf 6776: {
6777: (set) 2>&1 |
6778: case `(ac_space=' '; set | grep ac_space) 2>&1` in
6779: *ac_space=\ *)
6780: # `set' does not quote correctly, so add quotes (double-quote
6781: # substitution turns \\\\ into \\, and sed turns \\ into \).
6782: sed -n \
6783: "s/'/'\\\\''/g;
6784: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6785: ;;
6786: *)
6787: # `set' quotes correctly as required by POSIX, so do not add quotes.
6788: sed -n \
6789: "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6790: ;;
6791: esac;
6792: } |
6793: sed '
6794: t clear
6795: : clear
6796: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6797: t end
6798: /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6799: : end' >>confcache
6800: if diff $cache_file confcache >/dev/null 2>&1; then :; else
1.1 paf 6801: if test -w $cache_file; then
1.62 paf 6802: test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6803: cat confcache >$cache_file
1.1 paf 6804: else
6805: echo "not updating unwritable cache $cache_file"
6806: fi
6807: fi
6808: rm -f confcache
6809:
6810: test "x$prefix" = xNONE && prefix=$ac_default_prefix
6811: # Let make expand exec_prefix.
6812: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6813:
1.62 paf 6814: # VPATH may cause trouble with some makes, so we remove $(srcdir),
6815: # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6816: # trailing colons and then remove the whole line if VPATH becomes empty
6817: # (actually we leave an empty line to preserve line numbers).
1.1 paf 6818: if test "x$srcdir" = x.; then
1.62 paf 6819: ac_vpsub='/^[ ]*VPATH[ ]*=/{
6820: s/:*\$(srcdir):*/:/;
6821: s/:*\${srcdir}:*/:/;
6822: s/:*@srcdir@:*/:/;
6823: s/^\([^=]*=[ ]*\):*/\1/;
6824: s/:*$//;
6825: s/^[^=]*=[ ]*$//;
6826: }'
1.1 paf 6827: fi
6828:
1.62 paf 6829: DEFS=-DHAVE_CONFIG_H
6830:
6831: ac_libobjs=
6832: ac_ltlibobjs=
6833: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6834: # 1. Remove the extension, and $U if already installed.
6835: ac_i=`echo "$ac_i" |
6836: sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
6837: # 2. Add them.
6838: ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
6839: ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
6840: done
6841: LIBOBJS=$ac_libobjs
6842:
6843: LTLIBOBJS=$ac_ltlibobjs
1.1 paf 6844:
6845:
1.62 paf 6846: if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
6847: { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
6848: Usually this means the macro was only invoked conditionally." >&5
6849: echo "$as_me: error: conditional \"AMDEP\" was never defined.
6850: Usually this means the macro was only invoked conditionally." >&2;}
6851: { (exit 1); exit 1; }; }
6852: fi
6853: if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
6854: { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
6855: Usually this means the macro was only invoked conditionally." >&5
6856: echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
6857: Usually this means the macro was only invoked conditionally." >&2;}
6858: { (exit 1); exit 1; }; }
6859: fi
6860: if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
6861: { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
6862: Usually this means the macro was only invoked conditionally." >&5
6863: echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
6864: Usually this means the macro was only invoked conditionally." >&2;}
6865: { (exit 1); exit 1; }; }
6866: fi
6867: if test -z "${DO_NOT_LINK_LIBSTDCPP_TRUE}" && test -z "${DO_NOT_LINK_LIBSTDCPP_FALSE}"; then
6868: { { echo "$as_me:$LINENO: error: conditional \"DO_NOT_LINK_LIBSTDCPP\" was never defined.
6869: Usually this means the macro was only invoked conditionally." >&5
6870: echo "$as_me: error: conditional \"DO_NOT_LINK_LIBSTDCPP\" was never defined.
6871: Usually this means the macro was only invoked conditionally." >&2;}
6872: { (exit 1); exit 1; }; }
6873: fi
6874: if test -z "${COMPILE_APACHE13_MODULE_TRUE}" && test -z "${COMPILE_APACHE13_MODULE_FALSE}"; then
6875: { { echo "$as_me:$LINENO: error: conditional \"COMPILE_APACHE13_MODULE\" was never defined.
6876: Usually this means the macro was only invoked conditionally." >&5
6877: echo "$as_me: error: conditional \"COMPILE_APACHE13_MODULE\" was never defined.
6878: Usually this means the macro was only invoked conditionally." >&2;}
6879: { (exit 1); exit 1; }; }
6880: fi
6881:
1.1 paf 6882: : ${CONFIG_STATUS=./config.status}
1.62 paf 6883: ac_clean_files_save=$ac_clean_files
6884: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6885: { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6886: echo "$as_me: creating $CONFIG_STATUS" >&6;}
6887: cat >$CONFIG_STATUS <<_ACEOF
6888: #! $SHELL
6889: # Generated by $as_me.
6890: # Run this file to recreate the current configuration.
6891: # Compiler output produced by configure, useful for debugging
6892: # configure, is in config.log if it exists.
6893:
6894: debug=false
6895: ac_cs_recheck=false
6896: ac_cs_silent=false
6897: SHELL=\${CONFIG_SHELL-$SHELL}
6898: _ACEOF
6899:
6900: cat >>$CONFIG_STATUS <<\_ACEOF
6901: ## --------------------- ##
6902: ## M4sh Initialization. ##
6903: ## --------------------- ##
6904:
6905: # Be Bourne compatible
6906: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6907: emulate sh
6908: NULLCMD=:
6909: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6910: # is contrary to our usage. Disable this feature.
6911: alias -g '${1+"$@"}'='"$@"'
6912: elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6913: set -o posix
6914: fi
6915:
6916: # Support unset when possible.
6917: if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
6918: as_unset=unset
6919: else
6920: as_unset=false
6921: fi
6922:
6923:
6924: # Work around bugs in pre-3.0 UWIN ksh.
6925: $as_unset ENV MAIL MAILPATH
6926: PS1='$ '
6927: PS2='> '
6928: PS4='+ '
6929:
6930: # NLS nuisances.
6931: for as_var in \
6932: LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6933: LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6934: LC_TELEPHONE LC_TIME
6935: do
6936: if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
6937: eval $as_var=C; export $as_var
6938: else
6939: $as_unset $as_var
6940: fi
6941: done
1.1 paf 6942:
1.62 paf 6943: # Required to use basename.
6944: if expr a : '\(a\)' >/dev/null 2>&1; then
6945: as_expr=expr
6946: else
6947: as_expr=false
6948: fi
6949:
6950: if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
6951: as_basename=basename
6952: else
6953: as_basename=false
6954: fi
6955:
6956:
6957: # Name of the executable.
6958: as_me=`$as_basename "$0" ||
6959: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6960: X"$0" : 'X\(//\)$' \| \
6961: X"$0" : 'X\(/\)$' \| \
6962: . : '\(.\)' 2>/dev/null ||
6963: echo X/"$0" |
6964: sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6965: /^X\/\(\/\/\)$/{ s//\1/; q; }
6966: /^X\/\(\/\).*/{ s//\1/; q; }
6967: s/.*/./; q'`
6968:
6969:
6970: # PATH needs CR, and LINENO needs CR and PATH.
6971: # Avoid depending upon Character Ranges.
6972: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6973: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6974: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6975: as_cr_digits='0123456789'
6976: as_cr_alnum=$as_cr_Letters$as_cr_digits
6977:
6978: # The user is always right.
6979: if test "${PATH_SEPARATOR+set}" != set; then
6980: echo "#! /bin/sh" >conf$$.sh
6981: echo "exit 0" >>conf$$.sh
6982: chmod +x conf$$.sh
6983: if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6984: PATH_SEPARATOR=';'
6985: else
6986: PATH_SEPARATOR=:
6987: fi
6988: rm -f conf$$.sh
6989: fi
6990:
6991:
6992: as_lineno_1=$LINENO
6993: as_lineno_2=$LINENO
6994: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6995: test "x$as_lineno_1" != "x$as_lineno_2" &&
6996: test "x$as_lineno_3" = "x$as_lineno_2" || {
6997: # Find who we are. Look in the path if we contain no path at all
6998: # relative or not.
6999: case $0 in
7000: *[\\/]* ) as_myself=$0 ;;
7001: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7002: for as_dir in $PATH
7003: do
7004: IFS=$as_save_IFS
7005: test -z "$as_dir" && as_dir=.
7006: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7007: done
7008:
7009: ;;
7010: esac
7011: # We did not find ourselves, most probably we were run as `sh COMMAND'
7012: # in which case we are not to be found in the path.
7013: if test "x$as_myself" = x; then
7014: as_myself=$0
7015: fi
7016: if test ! -f "$as_myself"; then
7017: { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
7018: echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
7019: { (exit 1); exit 1; }; }
7020: fi
7021: case $CONFIG_SHELL in
7022: '')
7023: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7024: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
7025: do
7026: IFS=$as_save_IFS
7027: test -z "$as_dir" && as_dir=.
7028: for as_base in sh bash ksh sh5; do
7029: case $as_dir in
7030: /*)
7031: if ("$as_dir/$as_base" -c '
7032: as_lineno_1=$LINENO
7033: as_lineno_2=$LINENO
7034: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7035: test "x$as_lineno_1" != "x$as_lineno_2" &&
7036: test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
7037: $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
7038: $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
7039: CONFIG_SHELL=$as_dir/$as_base
7040: export CONFIG_SHELL
7041: exec "$CONFIG_SHELL" "$0" ${1+"$@"}
7042: fi;;
7043: esac
7044: done
7045: done
7046: ;;
7047: esac
7048:
7049: # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7050: # uniformly replaced by the line number. The first 'sed' inserts a
7051: # line-number line before each line; the second 'sed' does the real
7052: # work. The second script uses 'N' to pair each line-number line
7053: # with the numbered line, and appends trailing '-' during
7054: # substitution so that $LINENO is not a special case at line end.
7055: # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7056: # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
7057: sed '=' <$as_myself |
7058: sed '
7059: N
7060: s,$,-,
7061: : loop
7062: s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
7063: t loop
7064: s,-$,,
7065: s,^['$as_cr_digits']*\n,,
7066: ' >$as_me.lineno &&
7067: chmod +x $as_me.lineno ||
7068: { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
7069: echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
7070: { (exit 1); exit 1; }; }
7071:
7072: # Don't try to exec as it changes $[0], causing all sort of problems
7073: # (the dirname of $[0] is not the place where we might find the
7074: # original and so on. Autoconf is especially sensible to this).
7075: . ./$as_me.lineno
7076: # Exit status is that of the last command.
7077: exit
7078: }
7079:
7080:
7081: case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
7082: *c*,-n*) ECHO_N= ECHO_C='
7083: ' ECHO_T=' ' ;;
7084: *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
7085: *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
7086: esac
7087:
7088: if expr a : '\(a\)' >/dev/null 2>&1; then
7089: as_expr=expr
7090: else
7091: as_expr=false
7092: fi
7093:
7094: rm -f conf$$ conf$$.exe conf$$.file
7095: echo >conf$$.file
7096: if ln -s conf$$.file conf$$ 2>/dev/null; then
7097: # We could just check for DJGPP; but this test a) works b) is more generic
7098: # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
7099: if test -f conf$$.exe; then
7100: # Don't use ln at all; we don't have any links
7101: as_ln_s='cp -p'
7102: else
7103: as_ln_s='ln -s'
7104: fi
7105: elif ln conf$$.file conf$$ 2>/dev/null; then
7106: as_ln_s=ln
7107: else
7108: as_ln_s='cp -p'
7109: fi
7110: rm -f conf$$ conf$$.exe conf$$.file
7111:
7112: if mkdir -p . 2>/dev/null; then
7113: as_mkdir_p=:
7114: else
7115: as_mkdir_p=false
7116: fi
7117:
7118: as_executable_p="test -f"
7119:
7120: # Sed expression to map a string onto a valid CPP name.
7121: as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
7122:
7123: # Sed expression to map a string onto a valid variable name.
7124: as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
7125:
7126:
7127: # IFS
7128: # We need space, tab and new line, in precisely that order.
7129: as_nl='
7130: '
7131: IFS=" $as_nl"
7132:
7133: # CDPATH.
7134: $as_unset CDPATH
7135:
7136: exec 6>&1
7137:
7138: # Open the log real soon, to keep \$[0] and so on meaningful, and to
7139: # report actual input values of CONFIG_FILES etc. instead of their
7140: # values after options handling. Logging --version etc. is OK.
7141: exec 5>>config.log
7142: {
7143: echo
7144: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7145: ## Running $as_me. ##
7146: _ASBOX
7147: } >&5
7148: cat >&5 <<_CSEOF
7149:
7150: This file was extended by $as_me, which was
7151: generated by GNU Autoconf 2.57. Invocation command line was
7152:
7153: CONFIG_FILES = $CONFIG_FILES
7154: CONFIG_HEADERS = $CONFIG_HEADERS
7155: CONFIG_LINKS = $CONFIG_LINKS
7156: CONFIG_COMMANDS = $CONFIG_COMMANDS
7157: $ $0 $@
7158:
7159: _CSEOF
7160: echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
7161: echo >&5
7162: _ACEOF
7163:
7164: # Files that config.status was made for.
7165: if test -n "$ac_config_files"; then
7166: echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
7167: fi
7168:
7169: if test -n "$ac_config_headers"; then
7170: echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
7171: fi
7172:
7173: if test -n "$ac_config_links"; then
7174: echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
7175: fi
7176:
7177: if test -n "$ac_config_commands"; then
7178: echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7179: fi
7180:
7181: cat >>$CONFIG_STATUS <<\_ACEOF
7182:
7183: ac_cs_usage="\
7184: \`$as_me' instantiates files from templates according to the
7185: current configuration.
7186:
7187: Usage: $0 [OPTIONS] [FILE]...
7188:
7189: -h, --help print this help, then exit
7190: -V, --version print version number, then exit
7191: -q, --quiet do not print progress messages
7192: -d, --debug don't remove temporary files
7193: --recheck update $as_me by reconfiguring in the same conditions
7194: --file=FILE[:TEMPLATE]
7195: instantiate the configuration file FILE
7196: --header=FILE[:TEMPLATE]
7197: instantiate the configuration header FILE
7198:
7199: Configuration files:
7200: $config_files
7201:
7202: Configuration headers:
7203: $config_headers
7204:
7205: Configuration commands:
7206: $config_commands
7207:
7208: Report bugs to <bug-autoconf@gnu.org>."
7209: _ACEOF
7210:
7211: cat >>$CONFIG_STATUS <<_ACEOF
7212: ac_cs_version="\\
7213: config.status
7214: configured by $0, generated by GNU Autoconf 2.57,
7215: with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7216:
7217: Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
7218: Free Software Foundation, Inc.
7219: This config.status script is free software; the Free Software Foundation
7220: gives unlimited permission to copy, distribute and modify it."
7221: srcdir=$srcdir
7222: INSTALL="$INSTALL"
7223: _ACEOF
7224:
7225: cat >>$CONFIG_STATUS <<\_ACEOF
7226: # If no file are specified by the user, then we need to provide default
7227: # value. By we need to know if files were specified by the user.
7228: ac_need_defaults=:
7229: while test $# != 0
7230: do
7231: case $1 in
7232: --*=*)
7233: ac_option=`expr "x$1" : 'x\([^=]*\)='`
7234: ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
7235: ac_shift=:
7236: ;;
7237: -*)
7238: ac_option=$1
7239: ac_optarg=$2
7240: ac_shift=shift
7241: ;;
7242: *) # This is not an option, so the user has probably given explicit
7243: # arguments.
7244: ac_option=$1
7245: ac_need_defaults=false;;
7246: esac
7247:
7248: case $ac_option in
7249: # Handling of the options.
7250: _ACEOF
7251: cat >>$CONFIG_STATUS <<\_ACEOF
7252: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7253: ac_cs_recheck=: ;;
7254: --version | --vers* | -V )
7255: echo "$ac_cs_version"; exit 0 ;;
7256: --he | --h)
7257: # Conflict between --help and --header
7258: { { echo "$as_me:$LINENO: error: ambiguous option: $1
7259: Try \`$0 --help' for more information." >&5
7260: echo "$as_me: error: ambiguous option: $1
7261: Try \`$0 --help' for more information." >&2;}
7262: { (exit 1); exit 1; }; };;
7263: --help | --hel | -h )
7264: echo "$ac_cs_usage"; exit 0 ;;
7265: --debug | --d* | -d )
7266: debug=: ;;
7267: --file | --fil | --fi | --f )
7268: $ac_shift
7269: CONFIG_FILES="$CONFIG_FILES $ac_optarg"
7270: ac_need_defaults=false;;
7271: --header | --heade | --head | --hea )
7272: $ac_shift
7273: CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
7274: ac_need_defaults=false;;
7275: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7276: | -silent | --silent | --silen | --sile | --sil | --si | --s)
7277: ac_cs_silent=: ;;
7278:
7279: # This is an error.
7280: -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
7281: Try \`$0 --help' for more information." >&5
7282: echo "$as_me: error: unrecognized option: $1
7283: Try \`$0 --help' for more information." >&2;}
7284: { (exit 1); exit 1; }; } ;;
7285:
7286: *) ac_config_targets="$ac_config_targets $1" ;;
7287:
7288: esac
7289: shift
7290: done
7291:
7292: ac_configure_extra_args=
7293:
7294: if $ac_cs_silent; then
7295: exec 6>/dev/null
7296: ac_configure_extra_args="$ac_configure_extra_args --silent"
7297: fi
7298:
7299: _ACEOF
7300: cat >>$CONFIG_STATUS <<_ACEOF
7301: if \$ac_cs_recheck; then
7302: echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7303: exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7304: fi
7305:
7306: _ACEOF
7307:
7308: cat >>$CONFIG_STATUS <<_ACEOF
1.1 paf 7309: #
1.62 paf 7310: # INIT-COMMANDS section.
1.1 paf 7311: #
7312:
1.62 paf 7313: AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
7314:
7315: _ACEOF
7316:
7317:
7318:
7319: cat >>$CONFIG_STATUS <<\_ACEOF
7320: for ac_config_target in $ac_config_targets
1.1 paf 7321: do
1.62 paf 7322: case "$ac_config_target" in
7323: # Handling of arguments.
7324: "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7325: "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
7326: "src/types/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/types/Makefile" ;;
7327: "src/classes/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/classes/Makefile" ;;
7328: "src/classes/gd/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/classes/gd/Makefile" ;;
7329: "src/classes/smtp/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/classes/smtp/Makefile" ;;
7330: "src/include/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/include/Makefile" ;;
7331: "src/main/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/main/Makefile" ;;
7332: "src/sql/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/sql/Makefile" ;;
7333: "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
7334: "src/lib/ltdl/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/ltdl/Makefile" ;;
7335: "src/lib/pcre/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/pcre/Makefile" ;;
7336: "src/lib/md5/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/md5/Makefile" ;;
7337: "src/lib/patches/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/patches/Makefile" ;;
7338: "src/targets/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/targets/Makefile" ;;
7339: "src/targets/cgi/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/targets/cgi/Makefile" ;;
7340: "src/targets/apache13/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/targets/apache13/Makefile" ;;
7341: "src/targets/apache13/hook/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/targets/apache13/hook/Makefile" ;;
7342: "src/targets/apache13/p3runConfigure" ) CONFIG_FILES="$CONFIG_FILES src/targets/apache13/p3runConfigure" ;;
7343: "src/targets/isapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/targets/isapi/Makefile" ;;
7344: "etc/Makefile" ) CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;;
7345: "etc/parser3.charsets/Makefile" ) CONFIG_FILES="$CONFIG_FILES etc/parser3.charsets/Makefile" ;;
7346: "bin/Makefile" ) CONFIG_FILES="$CONFIG_FILES bin/Makefile" ;;
7347: "bin/auto.p.dist" ) CONFIG_FILES="$CONFIG_FILES bin/auto.p.dist" ;;
7348: "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
7349: "src/include/pa_config_auto.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/include/pa_config_auto.h" ;;
7350: *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7351: echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7352: { (exit 1); exit 1; }; };;
1.1 paf 7353: esac
7354: done
7355:
1.62 paf 7356: # If the user did not use the arguments to specify the items to instantiate,
7357: # then the envvar interface is used. Set only those that are not.
7358: # We use the long form for the default assignment because of an extremely
7359: # bizarre bug on SunOS 4.1.3.
7360: if $ac_need_defaults; then
7361: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7362: test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7363: test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7364: fi
7365:
7366: # Have a temporary directory for convenience. Make it in the build tree
7367: # simply because there is no reason to put it here, and in addition,
7368: # creating and moving files from /tmp can sometimes cause problems.
7369: # Create a temporary directory, and hook for its removal unless debugging.
7370: $debug ||
7371: {
7372: trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7373: trap '{ (exit 1); exit 1; }' 1 2 13 15
7374: }
7375:
7376: # Create a (secure) tmp directory for tmp files.
7377:
7378: {
7379: tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
7380: test -n "$tmp" && test -d "$tmp"
7381: } ||
7382: {
7383: tmp=./confstat$$-$RANDOM
7384: (umask 077 && mkdir $tmp)
7385: } ||
7386: {
7387: echo "$me: cannot create a temporary directory in ." >&2
7388: { (exit 1); exit 1; }
7389: }
7390:
7391: _ACEOF
1.1 paf 7392:
1.62 paf 7393: cat >>$CONFIG_STATUS <<_ACEOF
7394:
7395: #
7396: # CONFIG_FILES section.
7397: #
1.1 paf 7398:
1.62 paf 7399: # No need to generate the scripts if there are no CONFIG_FILES.
7400: # This happens for instance when ./config.status config.h
7401: if test -n "\$CONFIG_FILES"; then
7402: # Protect against being on the right side of a sed subst in config.status.
7403: sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7404: s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7405: s,@SHELL@,$SHELL,;t t
7406: s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7407: s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7408: s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7409: s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7410: s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7411: s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7412: s,@exec_prefix@,$exec_prefix,;t t
7413: s,@prefix@,$prefix,;t t
7414: s,@program_transform_name@,$program_transform_name,;t t
7415: s,@bindir@,$bindir,;t t
7416: s,@sbindir@,$sbindir,;t t
7417: s,@libexecdir@,$libexecdir,;t t
7418: s,@datadir@,$datadir,;t t
7419: s,@sysconfdir@,$sysconfdir,;t t
7420: s,@sharedstatedir@,$sharedstatedir,;t t
7421: s,@localstatedir@,$localstatedir,;t t
7422: s,@libdir@,$libdir,;t t
7423: s,@includedir@,$includedir,;t t
7424: s,@oldincludedir@,$oldincludedir,;t t
7425: s,@infodir@,$infodir,;t t
7426: s,@mandir@,$mandir,;t t
7427: s,@build_alias@,$build_alias,;t t
7428: s,@host_alias@,$host_alias,;t t
7429: s,@target_alias@,$target_alias,;t t
7430: s,@DEFS@,$DEFS,;t t
7431: s,@ECHO_C@,$ECHO_C,;t t
7432: s,@ECHO_N@,$ECHO_N,;t t
7433: s,@ECHO_T@,$ECHO_T,;t t
7434: s,@LIBS@,$LIBS,;t t
7435: s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7436: s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7437: s,@INSTALL_DATA@,$INSTALL_DATA,;t t
7438: s,@CYGPATH_W@,$CYGPATH_W,;t t
7439: s,@PACKAGE@,$PACKAGE,;t t
7440: s,@VERSION@,$VERSION,;t t
7441: s,@ACLOCAL@,$ACLOCAL,;t t
7442: s,@AUTOCONF@,$AUTOCONF,;t t
7443: s,@AUTOMAKE@,$AUTOMAKE,;t t
7444: s,@AUTOHEADER@,$AUTOHEADER,;t t
7445: s,@MAKEINFO@,$MAKEINFO,;t t
7446: s,@AMTAR@,$AMTAR,;t t
7447: s,@install_sh@,$install_sh,;t t
7448: s,@STRIP@,$STRIP,;t t
7449: s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
7450: s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
7451: s,@AWK@,$AWK,;t t
7452: s,@SET_MAKE@,$SET_MAKE,;t t
7453: s,@P3S@,$P3S,;t t
7454: s,@build@,$build,;t t
7455: s,@build_cpu@,$build_cpu,;t t
7456: s,@build_vendor@,$build_vendor,;t t
7457: s,@build_os@,$build_os,;t t
7458: s,@host@,$host,;t t
7459: s,@host_cpu@,$host_cpu,;t t
7460: s,@host_vendor@,$host_vendor,;t t
7461: s,@host_os@,$host_os,;t t
7462: s,@RANLIB@,$RANLIB,;t t
7463: s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
7464: s,@YACC@,$YACC,;t t
7465: s,@CC@,$CC,;t t
7466: s,@CFLAGS@,$CFLAGS,;t t
7467: s,@LDFLAGS@,$LDFLAGS,;t t
7468: s,@CPPFLAGS@,$CPPFLAGS,;t t
7469: s,@ac_ct_CC@,$ac_ct_CC,;t t
7470: s,@EXEEXT@,$EXEEXT,;t t
7471: s,@OBJEXT@,$OBJEXT,;t t
7472: s,@DEPDIR@,$DEPDIR,;t t
7473: s,@am__include@,$am__include,;t t
7474: s,@am__quote@,$am__quote,;t t
7475: s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
7476: s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
7477: s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
7478: s,@CCDEPMODE@,$CCDEPMODE,;t t
7479: s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
7480: s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
7481: s,@CXX@,$CXX,;t t
7482: s,@CXXFLAGS@,$CXXFLAGS,;t t
7483: s,@ac_ct_CXX@,$ac_ct_CXX,;t t
7484: s,@CXXDEPMODE@,$CXXDEPMODE,;t t
7485: s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
7486: s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
7487: s,@commentcharset_windows1251@,$commentcharset_windows1251,;t t
7488: s,@commentcharset_windows1250@,$commentcharset_windows1250,;t t
7489: s,@commentcharset_windows1257@,$commentcharset_windows1257,;t t
7490: s,@commentcharset_koi8r@,$commentcharset_koi8r,;t t
7491: s,@dll_extension@,$dll_extension,;t t
7492: s,@mysql_client@,$mysql_client,;t t
7493: s,@pgsql_client@,$pgsql_client,;t t
7494: s,@oracle_client@,$oracle_client,;t t
7495: s,@DO_NOT_LINK_LIBSTDCPP_TRUE@,$DO_NOT_LINK_LIBSTDCPP_TRUE,;t t
7496: s,@DO_NOT_LINK_LIBSTDCPP_FALSE@,$DO_NOT_LINK_LIBSTDCPP_FALSE,;t t
7497: s,@XML_INCLUDES@,$XML_INCLUDES,;t t
7498: s,@XML_LIBS@,$XML_LIBS,;t t
7499: s,@MIME_INCLUDES@,$MIME_INCLUDES,;t t
7500: s,@MIME_LIBS@,$MIME_LIBS,;t t
7501: s,@APACHE13@,$APACHE13,;t t
7502: s,@COMPILE_APACHE13_MODULE_TRUE@,$COMPILE_APACHE13_MODULE_TRUE,;t t
7503: s,@COMPILE_APACHE13_MODULE_FALSE@,$COMPILE_APACHE13_MODULE_FALSE,;t t
7504: s,@INCLTDL@,$INCLTDL,;t t
7505: s,@LIBLTDL@,$LIBLTDL,;t t
7506: s,@subdirs@,$subdirs,;t t
7507: s,@LIBADD_DL@,$LIBADD_DL,;t t
7508: s,@CXXCPP@,$CXXCPP,;t t
7509: s,@EGREP@,$EGREP,;t t
7510: s,@APACHE_LIBS@,$APACHE_LIBS,;t t
7511: s,@charsetsdir@,$charsetsdir,;t t
7512: s,@sqldriversdir@,$sqldriversdir,;t t
7513: s,@LIBOBJS@,$LIBOBJS,;t t
7514: s,@LTLIBOBJS@,$LTLIBOBJS,;t t
1.1 paf 7515: CEOF
7516:
1.62 paf 7517: _ACEOF
1.1 paf 7518:
1.62 paf 7519: cat >>$CONFIG_STATUS <<\_ACEOF
7520: # Split the substitutions into bite-sized pieces for seds with
7521: # small command number limits, like on Digital OSF/1 and HP-UX.
7522: ac_max_sed_lines=48
7523: ac_sed_frag=1 # Number of current file.
7524: ac_beg=1 # First line for current file.
7525: ac_end=$ac_max_sed_lines # Line after last line for current file.
7526: ac_more_lines=:
7527: ac_sed_cmds=
7528: while $ac_more_lines; do
7529: if test $ac_beg -gt 1; then
7530: sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7531: else
7532: sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7533: fi
7534: if test ! -s $tmp/subs.frag; then
7535: ac_more_lines=false
1.1 paf 7536: else
1.62 paf 7537: # The purpose of the label and of the branching condition is to
7538: # speed up the sed processing (if there are no `@' at all, there
7539: # is no need to browse any of the substitutions).
7540: # These are the two extra sed commands mentioned above.
7541: (echo ':t
7542: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
7543: if test -z "$ac_sed_cmds"; then
7544: ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
7545: else
7546: ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7547: fi
7548: ac_sed_frag=`expr $ac_sed_frag + 1`
7549: ac_beg=$ac_end
7550: ac_end=`expr $ac_end + $ac_max_sed_lines`
1.1 paf 7551: fi
1.62 paf 7552: done
7553: if test -z "$ac_sed_cmds"; then
7554: ac_sed_cmds=cat
1.1 paf 7555: fi
1.62 paf 7556: fi # test -n "$CONFIG_FILES"
1.1 paf 7557:
1.62 paf 7558: _ACEOF
7559: cat >>$CONFIG_STATUS <<\_ACEOF
7560: for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
1.1 paf 7561: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1.62 paf 7562: case $ac_file in
7563: - | *:- | *:-:* ) # input from stdin
7564: cat >$tmp/stdin
7565: ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7566: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7567: *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7568: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7569: * ) ac_file_in=$ac_file.in ;;
1.1 paf 7570: esac
7571:
1.62 paf 7572: # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7573: ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7574: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7575: X"$ac_file" : 'X\(//\)[^/]' \| \
7576: X"$ac_file" : 'X\(//\)$' \| \
7577: X"$ac_file" : 'X\(/\)' \| \
7578: . : '\(.\)' 2>/dev/null ||
7579: echo X"$ac_file" |
7580: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7581: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7582: /^X\(\/\/\)$/{ s//\1/; q; }
7583: /^X\(\/\).*/{ s//\1/; q; }
7584: s/.*/./; q'`
7585: { if $as_mkdir_p; then
7586: mkdir -p "$ac_dir"
7587: else
7588: as_dir="$ac_dir"
7589: as_dirs=
7590: while test ! -d "$as_dir"; do
7591: as_dirs="$as_dir $as_dirs"
7592: as_dir=`(dirname "$as_dir") 2>/dev/null ||
7593: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7594: X"$as_dir" : 'X\(//\)[^/]' \| \
7595: X"$as_dir" : 'X\(//\)$' \| \
7596: X"$as_dir" : 'X\(/\)' \| \
7597: . : '\(.\)' 2>/dev/null ||
7598: echo X"$as_dir" |
7599: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7600: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7601: /^X\(\/\/\)$/{ s//\1/; q; }
7602: /^X\(\/\).*/{ s//\1/; q; }
7603: s/.*/./; q'`
7604: done
7605: test ! -n "$as_dirs" || mkdir $as_dirs
7606: fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7607: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7608: { (exit 1); exit 1; }; }; }
7609:
7610: ac_builddir=.
7611:
7612: if test "$ac_dir" != .; then
7613: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7614: # A "../" for each directory in $ac_dir_suffix.
7615: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7616: else
7617: ac_dir_suffix= ac_top_builddir=
7618: fi
7619:
7620: case $srcdir in
7621: .) # No --srcdir option. We are building in place.
7622: ac_srcdir=.
7623: if test -z "$ac_top_builddir"; then
7624: ac_top_srcdir=.
7625: else
7626: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7627: fi ;;
7628: [\\/]* | ?:[\\/]* ) # Absolute path.
7629: ac_srcdir=$srcdir$ac_dir_suffix;
7630: ac_top_srcdir=$srcdir ;;
7631: *) # Relative path.
7632: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7633: ac_top_srcdir=$ac_top_builddir$srcdir ;;
7634: esac
7635: # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
7636: # absolute.
7637: ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
7638: ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
7639: ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
7640: ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
7641:
1.1 paf 7642:
1.62 paf 7643: case $INSTALL in
7644: [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7645: *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
1.1 paf 7646: esac
7647:
1.62 paf 7648: if test x"$ac_file" != x-; then
7649: { echo "$as_me:$LINENO: creating $ac_file" >&5
7650: echo "$as_me: creating $ac_file" >&6;}
7651: rm -f "$ac_file"
7652: fi
7653: # Let's still pretend it is `configure' which instantiates (i.e., don't
7654: # use $as_me), people would be surprised to read:
7655: # /* config.h. Generated by config.status. */
7656: if test x"$ac_file" = x-; then
7657: configure_input=
7658: else
7659: configure_input="$ac_file. "
7660: fi
7661: configure_input=$configure_input"Generated from `echo $ac_file_in |
7662: sed 's,.*/,,'` by configure."
7663:
7664: # First look for the input files in the build tree, otherwise in the
7665: # src tree.
7666: ac_file_inputs=`IFS=:
7667: for f in $ac_file_in; do
7668: case $f in
7669: -) echo $tmp/stdin ;;
7670: [\\/$]*)
7671: # Absolute (can't be DOS-style, as IFS=:)
7672: test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7673: echo "$as_me: error: cannot find input file: $f" >&2;}
7674: { (exit 1); exit 1; }; }
7675: echo $f;;
7676: *) # Relative
7677: if test -f "$f"; then
7678: # Build tree
7679: echo $f
7680: elif test -f "$srcdir/$f"; then
7681: # Source tree
7682: echo $srcdir/$f
7683: else
7684: # /dev/null tree
7685: { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7686: echo "$as_me: error: cannot find input file: $f" >&2;}
7687: { (exit 1); exit 1; }; }
7688: fi;;
7689: esac
7690: done` || { (exit 1); exit 1; }
7691: _ACEOF
7692: cat >>$CONFIG_STATUS <<_ACEOF
7693: sed "$ac_vpsub
7694: $extrasub
7695: _ACEOF
7696: cat >>$CONFIG_STATUS <<\_ACEOF
7697: :t
7698: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7699: s,@configure_input@,$configure_input,;t t
7700: s,@srcdir@,$ac_srcdir,;t t
7701: s,@abs_srcdir@,$ac_abs_srcdir,;t t
7702: s,@top_srcdir@,$ac_top_srcdir,;t t
7703: s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
7704: s,@builddir@,$ac_builddir,;t t
7705: s,@abs_builddir@,$ac_abs_builddir,;t t
7706: s,@top_builddir@,$ac_top_builddir,;t t
7707: s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
7708: s,@INSTALL@,$ac_INSTALL,;t t
7709: " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7710: rm -f $tmp/stdin
7711: if test x"$ac_file" != x-; then
7712: mv $tmp/out $ac_file
7713: else
7714: cat $tmp/out
7715: rm -f $tmp/out
7716: fi
1.1 paf 7717:
1.62 paf 7718: done
7719: _ACEOF
7720: cat >>$CONFIG_STATUS <<\_ACEOF
1.1 paf 7721:
1.62 paf 7722: #
7723: # CONFIG_HEADER section.
7724: #
1.1 paf 7725:
7726: # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7727: # NAME is the cpp macro being defined and VALUE is the value it is being given.
7728: #
7729: # ac_d sets the value in "#define NAME VALUE" lines.
1.62 paf 7730: ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7731: ac_dB='[ ].*$,\1#\2'
7732: ac_dC=' '
7733: ac_dD=',;t'
7734: # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7735: ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7736: ac_uB='$,\1#\2define\3'
1.1 paf 7737: ac_uC=' '
1.62 paf 7738: ac_uD=',;t'
7739:
7740: for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
1.1 paf 7741: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1.62 paf 7742: case $ac_file in
7743: - | *:- | *:-:* ) # input from stdin
7744: cat >$tmp/stdin
7745: ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7746: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7747: *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7748: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7749: * ) ac_file_in=$ac_file.in ;;
1.1 paf 7750: esac
7751:
1.62 paf 7752: test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
7753: echo "$as_me: creating $ac_file" >&6;}
1.1 paf 7754:
1.62 paf 7755: # First look for the input files in the build tree, otherwise in the
7756: # src tree.
7757: ac_file_inputs=`IFS=:
7758: for f in $ac_file_in; do
7759: case $f in
7760: -) echo $tmp/stdin ;;
7761: [\\/$]*)
7762: # Absolute (can't be DOS-style, as IFS=:)
7763: test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7764: echo "$as_me: error: cannot find input file: $f" >&2;}
7765: { (exit 1); exit 1; }; }
7766: echo $f;;
7767: *) # Relative
7768: if test -f "$f"; then
7769: # Build tree
7770: echo $f
7771: elif test -f "$srcdir/$f"; then
7772: # Source tree
7773: echo $srcdir/$f
7774: else
7775: # /dev/null tree
7776: { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7777: echo "$as_me: error: cannot find input file: $f" >&2;}
7778: { (exit 1); exit 1; }; }
7779: fi;;
7780: esac
7781: done` || { (exit 1); exit 1; }
7782: # Remove the trailing spaces.
7783: sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
7784:
7785: _ACEOF
7786:
7787: # Transform confdefs.h into two sed scripts, `conftest.defines' and
7788: # `conftest.undefs', that substitutes the proper values into
7789: # config.h.in to produce config.h. The first handles `#define'
7790: # templates, and the second `#undef' templates.
7791: # And first: Protect against being on the right side of a sed subst in
7792: # config.status. Protect against being in an unquoted here document
7793: # in config.status.
7794: rm -f conftest.defines conftest.undefs
7795: # Using a here document instead of a string reduces the quoting nightmare.
7796: # Putting comments in sed scripts is not portable.
7797: #
7798: # `end' is used to avoid that the second main sed command (meant for
7799: # 0-ary CPP macros) applies to n-ary macro definitions.
7800: # See the Autoconf documentation for `clear'.
7801: cat >confdef2sed.sed <<\_ACEOF
7802: s/[\\&,]/\\&/g
7803: s,[\\$`],\\&,g
7804: t clear
7805: : clear
7806: s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
7807: t end
7808: s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
7809: : end
7810: _ACEOF
7811: # If some macros were called several times there might be several times
7812: # the same #defines, which is useless. Nevertheless, we may not want to
7813: # sort them, since we want the *last* AC-DEFINE to be honored.
7814: uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
7815: sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
7816: rm -f confdef2sed.sed
1.1 paf 7817:
7818: # This sed command replaces #undef with comments. This is necessary, for
7819: # example, in the case of _POSIX_SOURCE, which is predefined and required
7820: # on some systems where configure will not decide to define it.
1.62 paf 7821: cat >>conftest.undefs <<\_ACEOF
7822: s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
7823: _ACEOF
7824:
7825: # Break up conftest.defines because some shells have a limit on the size
7826: # of here documents, and old seds have small limits too (100 cmds).
7827: echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
7828: echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
7829: echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
7830: echo ' :' >>$CONFIG_STATUS
7831: rm -f conftest.tail
7832: while grep . conftest.defines >/dev/null
7833: do
7834: # Write a limited-size here document to $tmp/defines.sed.
7835: echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
7836: # Speed up: don't consider the non `#define' lines.
7837: echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
7838: # Work around the forget-to-reset-the-flag bug.
7839: echo 't clr' >>$CONFIG_STATUS
7840: echo ': clr' >>$CONFIG_STATUS
7841: sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
7842: echo 'CEOF
7843: sed -f $tmp/defines.sed $tmp/in >$tmp/out
7844: rm -f $tmp/in
7845: mv $tmp/out $tmp/in
7846: ' >>$CONFIG_STATUS
7847: sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
7848: rm -f conftest.defines
7849: mv conftest.tail conftest.defines
7850: done
7851: rm -f conftest.defines
7852: echo ' fi # grep' >>$CONFIG_STATUS
7853: echo >>$CONFIG_STATUS
7854:
7855: # Break up conftest.undefs because some shells have a limit on the size
7856: # of here documents, and old seds have small limits too (100 cmds).
7857: echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
1.1 paf 7858: rm -f conftest.tail
1.62 paf 7859: while grep . conftest.undefs >/dev/null
1.1 paf 7860: do
1.62 paf 7861: # Write a limited-size here document to $tmp/undefs.sed.
7862: echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
7863: # Speed up: don't consider the non `#undef'
7864: echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
7865: # Work around the forget-to-reset-the-flag bug.
7866: echo 't clr' >>$CONFIG_STATUS
7867: echo ': clr' >>$CONFIG_STATUS
7868: sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
1.1 paf 7869: echo 'CEOF
1.62 paf 7870: sed -f $tmp/undefs.sed $tmp/in >$tmp/out
7871: rm -f $tmp/in
7872: mv $tmp/out $tmp/in
7873: ' >>$CONFIG_STATUS
7874: sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
7875: rm -f conftest.undefs
7876: mv conftest.tail conftest.undefs
7877: done
7878: rm -f conftest.undefs
7879:
7880: cat >>$CONFIG_STATUS <<\_ACEOF
7881: # Let's still pretend it is `configure' which instantiates (i.e., don't
7882: # use $as_me), people would be surprised to read:
7883: # /* config.h. Generated by config.status. */
7884: if test x"$ac_file" = x-; then
7885: echo "/* Generated by configure. */" >$tmp/config.h
7886: else
7887: echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
7888: fi
7889: cat $tmp/in >>$tmp/config.h
7890: rm -f $tmp/in
7891: if test x"$ac_file" != x-; then
7892: if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
7893: { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7894: echo "$as_me: $ac_file is unchanged" >&6;}
7895: else
7896: ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7897: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7898: X"$ac_file" : 'X\(//\)[^/]' \| \
7899: X"$ac_file" : 'X\(//\)$' \| \
7900: X"$ac_file" : 'X\(/\)' \| \
7901: . : '\(.\)' 2>/dev/null ||
7902: echo X"$ac_file" |
7903: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7904: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7905: /^X\(\/\/\)$/{ s//\1/; q; }
7906: /^X\(\/\).*/{ s//\1/; q; }
7907: s/.*/./; q'`
7908: { if $as_mkdir_p; then
7909: mkdir -p "$ac_dir"
7910: else
7911: as_dir="$ac_dir"
7912: as_dirs=
7913: while test ! -d "$as_dir"; do
7914: as_dirs="$as_dir $as_dirs"
7915: as_dir=`(dirname "$as_dir") 2>/dev/null ||
7916: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7917: X"$as_dir" : 'X\(//\)[^/]' \| \
7918: X"$as_dir" : 'X\(//\)$' \| \
7919: X"$as_dir" : 'X\(/\)' \| \
7920: . : '\(.\)' 2>/dev/null ||
7921: echo X"$as_dir" |
7922: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7923: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7924: /^X\(\/\/\)$/{ s//\1/; q; }
7925: /^X\(\/\).*/{ s//\1/; q; }
7926: s/.*/./; q'`
7927: done
7928: test ! -n "$as_dirs" || mkdir $as_dirs
7929: fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7930: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7931: { (exit 1); exit 1; }; }; }
7932:
7933: rm -f $ac_file
7934: mv $tmp/config.h $ac_file
7935: fi
7936: else
7937: cat $tmp/config.h
7938: rm -f $tmp/config.h
7939: fi
7940: _am_stamp_count=`expr ${_am_stamp_count-0} + 1`
7941: echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
7942: $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7943: X$ac_file : 'X\(//\)[^/]' \| \
7944: X$ac_file : 'X\(//\)$' \| \
7945: X$ac_file : 'X\(/\)' \| \
7946: . : '\(.\)' 2>/dev/null ||
7947: echo X$ac_file |
7948: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7949: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7950: /^X\(\/\/\)$/{ s//\1/; q; }
7951: /^X\(\/\).*/{ s//\1/; q; }
7952: s/.*/./; q'`/stamp-h$_am_stamp_count
7953: done
7954: _ACEOF
7955: cat >>$CONFIG_STATUS <<\_ACEOF
7956:
7957: #
7958: # CONFIG_COMMANDS section.
7959: #
7960: for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
7961: ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
7962: ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
7963: ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
7964: $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7965: X"$ac_dest" : 'X\(//\)[^/]' \| \
7966: X"$ac_dest" : 'X\(//\)$' \| \
7967: X"$ac_dest" : 'X\(/\)' \| \
7968: . : '\(.\)' 2>/dev/null ||
7969: echo X"$ac_dest" |
7970: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7971: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7972: /^X\(\/\/\)$/{ s//\1/; q; }
7973: /^X\(\/\).*/{ s//\1/; q; }
7974: s/.*/./; q'`
7975: ac_builddir=.
7976:
7977: if test "$ac_dir" != .; then
7978: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7979: # A "../" for each directory in $ac_dir_suffix.
7980: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7981: else
7982: ac_dir_suffix= ac_top_builddir=
7983: fi
7984:
7985: case $srcdir in
7986: .) # No --srcdir option. We are building in place.
7987: ac_srcdir=.
7988: if test -z "$ac_top_builddir"; then
7989: ac_top_srcdir=.
7990: else
7991: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7992: fi ;;
7993: [\\/]* | ?:[\\/]* ) # Absolute path.
7994: ac_srcdir=$srcdir$ac_dir_suffix;
7995: ac_top_srcdir=$srcdir ;;
7996: *) # Relative path.
7997: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7998: ac_top_srcdir=$ac_top_builddir$srcdir ;;
7999: esac
8000: # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
8001: # absolute.
8002: ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
8003: ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
8004: ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
8005: ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
8006:
8007:
8008: { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
8009: echo "$as_me: executing $ac_dest commands" >&6;}
8010: case $ac_dest in
8011: depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
8012: # Strip MF so we end up with the name of the file.
8013: mf=`echo "$mf" | sed -e 's/:.*$//'`
8014: # Check whether this is an Automake generated Makefile or not.
8015: # We used to match only the files named `Makefile.in', but
8016: # some people rename them; so instead we look at the file content.
8017: # Grep'ing the first line is not enough: some people post-process
8018: # each Makefile.in and add a new line on top of each file to say so.
8019: # So let's grep whole file.
8020: if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
8021: dirpart=`(dirname "$mf") 2>/dev/null ||
8022: $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8023: X"$mf" : 'X\(//\)[^/]' \| \
8024: X"$mf" : 'X\(//\)$' \| \
8025: X"$mf" : 'X\(/\)' \| \
8026: . : '\(.\)' 2>/dev/null ||
8027: echo X"$mf" |
8028: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8029: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8030: /^X\(\/\/\)$/{ s//\1/; q; }
8031: /^X\(\/\).*/{ s//\1/; q; }
8032: s/.*/./; q'`
8033: else
8034: continue
8035: fi
8036: grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
8037: # Extract the definition of DEP_FILES from the Makefile without
8038: # running `make'.
8039: DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
8040: test -z "$DEPDIR" && continue
8041: # When using ansi2knr, U may be empty or an underscore; expand it
8042: U=`sed -n -e '/^U = / s///p' < "$mf"`
8043: test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
8044: # We invoke sed twice because it is the simplest approach to
8045: # changing $(DEPDIR) to its actual value in the expansion.
8046: for file in `sed -n -e '
8047: /^DEP_FILES = .*\\\\$/ {
8048: s/^DEP_FILES = //
8049: :loop
8050: s/\\\\$//
8051: p
8052: n
8053: /\\\\$/ b loop
8054: p
8055: }
8056: /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
8057: sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
8058: # Make sure the directory exists.
8059: test -f "$dirpart/$file" && continue
8060: fdir=`(dirname "$file") 2>/dev/null ||
8061: $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8062: X"$file" : 'X\(//\)[^/]' \| \
8063: X"$file" : 'X\(//\)$' \| \
8064: X"$file" : 'X\(/\)' \| \
8065: . : '\(.\)' 2>/dev/null ||
8066: echo X"$file" |
8067: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8068: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8069: /^X\(\/\/\)$/{ s//\1/; q; }
8070: /^X\(\/\).*/{ s//\1/; q; }
8071: s/.*/./; q'`
8072: { if $as_mkdir_p; then
8073: mkdir -p $dirpart/$fdir
8074: else
8075: as_dir=$dirpart/$fdir
8076: as_dirs=
8077: while test ! -d "$as_dir"; do
8078: as_dirs="$as_dir $as_dirs"
8079: as_dir=`(dirname "$as_dir") 2>/dev/null ||
8080: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8081: X"$as_dir" : 'X\(//\)[^/]' \| \
8082: X"$as_dir" : 'X\(//\)$' \| \
8083: X"$as_dir" : 'X\(/\)' \| \
8084: . : '\(.\)' 2>/dev/null ||
8085: echo X"$as_dir" |
8086: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8087: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8088: /^X\(\/\/\)$/{ s//\1/; q; }
8089: /^X\(\/\).*/{ s//\1/; q; }
8090: s/.*/./; q'`
8091: done
8092: test ! -n "$as_dirs" || mkdir $as_dirs
8093: fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
8094: echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
8095: { (exit 1); exit 1; }; }; }
1.1 paf 8096:
1.62 paf 8097: # echo "creating $dirpart/$file"
8098: echo '# dummy' > "$dirpart/$file"
8099: done
8100: done
8101: ;;
8102: esac
8103: done
8104: _ACEOF
8105:
8106: cat >>$CONFIG_STATUS <<\_ACEOF
8107:
8108: { (exit 0); exit 0; }
8109: _ACEOF
1.1 paf 8110: chmod +x $CONFIG_STATUS
1.62 paf 8111: ac_clean_files=$ac_clean_files_save
8112:
1.1 paf 8113:
1.62 paf 8114: # configure is writing to config.log, and then calls config.status.
8115: # config.status does its own redirection, appending to config.log.
8116: # Unfortunately, on DOS this fails, as config.log is still kept open
8117: # by configure, so config.status won't be able to write to it; its
8118: # output is simply discarded. So we exec the FD to /dev/null,
8119: # effectively closing config.log, so it can be properly (re)opened and
8120: # appended to by config.status. When coming back to configure, we
8121: # need to make the FD available again.
8122: if test "$no_create" != yes; then
8123: ac_cs_success=:
8124: ac_config_status_args=
8125: test "$silent" = yes &&
8126: ac_config_status_args="$ac_config_status_args --quiet"
8127: exec 5>/dev/null
8128: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8129: exec 5>>config.log
8130: # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8131: # would make configure fail if this is the last instruction.
8132: $ac_cs_success || { (exit 1); exit 1; }
8133: fi
8134:
8135: #
8136: # CONFIG_SUBDIRS section.
8137: #
1.1 paf 8138: if test "$no_recursion" != yes; then
8139:
8140: # Remove --cache-file and --srcdir arguments so they do not pile up.
8141: ac_sub_configure_args=
8142: ac_prev=
8143: for ac_arg in $ac_configure_args; do
8144: if test -n "$ac_prev"; then
8145: ac_prev=
8146: continue
8147: fi
1.62 paf 8148: case $ac_arg in
1.1 paf 8149: -cache-file | --cache-file | --cache-fil | --cache-fi \
8150: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
8151: ac_prev=cache_file ;;
8152: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1.62 paf 8153: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
8154: | --c=*)
8155: ;;
8156: --config-cache | -C)
1.1 paf 8157: ;;
8158: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
8159: ac_prev=srcdir ;;
8160: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
8161: ;;
1.62 paf 8162: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
8163: ac_prev=prefix ;;
8164: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
8165: ;;
1.1 paf 8166: *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
8167: esac
8168: done
8169:
1.62 paf 8170: # Always prepend --prefix to ensure using the same prefix
8171: # in subdir configurations.
8172: ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
8173:
8174: ac_popdir=`pwd`
8175: for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
1.1 paf 8176:
8177: # Do not complain, so a configure script can configure whichever
8178: # parts of a large source tree are present.
1.62 paf 8179: test -d $srcdir/$ac_dir || continue
1.1 paf 8180:
1.62 paf 8181: { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
8182: echo "$as_me: configuring in $ac_dir" >&6;}
8183: { if $as_mkdir_p; then
8184: mkdir -p "$ac_dir"
8185: else
8186: as_dir="$ac_dir"
8187: as_dirs=
8188: while test ! -d "$as_dir"; do
8189: as_dirs="$as_dir $as_dirs"
8190: as_dir=`(dirname "$as_dir") 2>/dev/null ||
8191: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8192: X"$as_dir" : 'X\(//\)[^/]' \| \
8193: X"$as_dir" : 'X\(//\)$' \| \
8194: X"$as_dir" : 'X\(/\)' \| \
8195: . : '\(.\)' 2>/dev/null ||
8196: echo X"$as_dir" |
8197: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8198: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8199: /^X\(\/\/\)$/{ s//\1/; q; }
8200: /^X\(\/\).*/{ s//\1/; q; }
8201: s/.*/./; q'`
8202: done
8203: test ! -n "$as_dirs" || mkdir $as_dirs
8204: fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8205: echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8206: { (exit 1); exit 1; }; }; }
8207:
8208: ac_builddir=.
8209:
8210: if test "$ac_dir" != .; then
8211: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8212: # A "../" for each directory in $ac_dir_suffix.
8213: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8214: else
8215: ac_dir_suffix= ac_top_builddir=
8216: fi
8217:
8218: case $srcdir in
8219: .) # No --srcdir option. We are building in place.
8220: ac_srcdir=.
8221: if test -z "$ac_top_builddir"; then
8222: ac_top_srcdir=.
8223: else
8224: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8225: fi ;;
8226: [\\/]* | ?:[\\/]* ) # Absolute path.
8227: ac_srcdir=$srcdir$ac_dir_suffix;
8228: ac_top_srcdir=$srcdir ;;
8229: *) # Relative path.
8230: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8231: ac_top_srcdir=$ac_top_builddir$srcdir ;;
8232: esac
8233: # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
8234: # absolute.
8235: ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
8236: ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
8237: ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
8238: ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1.1 paf 8239:
8240:
1.62 paf 8241: cd $ac_dir
1.1 paf 8242:
8243: # Check for guested configure; otherwise get Cygnus style configure.
1.62 paf 8244: if test -f $ac_srcdir/configure.gnu; then
8245: ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
8246: elif test -f $ac_srcdir/configure; then
8247: ac_sub_configure="$SHELL '$ac_srcdir/configure'"
8248: elif test -f $ac_srcdir/configure.in; then
1.1 paf 8249: ac_sub_configure=$ac_configure
8250: else
1.62 paf 8251: { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
8252: echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
1.1 paf 8253: ac_sub_configure=
8254: fi
8255:
8256: # The recursion is here.
8257: if test -n "$ac_sub_configure"; then
8258: # Make the cache file name correct relative to the subdirectory.
1.62 paf 8259: case $cache_file in
8260: [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
1.1 paf 8261: *) # Relative path.
1.62 paf 8262: ac_sub_cache_file=$ac_top_builddir$cache_file ;;
1.1 paf 8263: esac
8264:
1.62 paf 8265: { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
8266: echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
1.1 paf 8267: # The eval makes quoting arguments work.
1.62 paf 8268: eval $ac_sub_configure $ac_sub_configure_args \
8269: --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
8270: { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
8271: echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
8272: { (exit 1); exit 1; }; }
1.1 paf 8273: fi
8274:
8275: cd $ac_popdir
8276: done
8277: fi
8278:
E-mail: